@seamly/web-ui 21.0.7 → 21.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/lib/components.js +224 -231
- package/build/dist/lib/components.min.js +1 -1
- package/build/dist/lib/hooks.js +116 -16
- package/build/dist/lib/hooks.min.js +1 -1
- package/build/dist/lib/index.debug.js +50 -39
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +5 -1
- package/build/dist/lib/index.js +208 -220
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +215 -251
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +194 -191
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/utils.js +192 -189
- package/build/dist/lib/utils.min.js +1 -1
- package/package.json +1 -1
- package/src/javascripts/domains/forms/provider.tsx +1 -1
- package/src/javascripts/domains/i18n/slice.ts +2 -0
- package/src/javascripts/domains/interrupt/hooks.ts +15 -7
- package/src/javascripts/domains/interrupt/middleware.ts +7 -14
- package/src/javascripts/domains/interrupt/selectors.ts +4 -0
- package/src/javascripts/domains/interrupt/slice.ts +2 -2
- package/src/javascripts/domains/translations/components/translation-status.tsx +4 -3
- package/src/javascripts/domains/translations/slice.ts +2 -0
- package/src/javascripts/ui/components/app-options/index.js +4 -3
- package/src/javascripts/ui/components/core/seamly-event-subscriber.ts +9 -13
- package/src/javascripts/ui/components/core/seamly-instance-functions-loader.js +5 -5
- package/src/javascripts/ui/components/entry/deprecated-toggle-button.js +4 -3
- package/src/javascripts/ui/components/faq/faq.js +5 -4
- package/src/javascripts/ui/components/layout/agent-info.js +4 -3
- package/src/javascripts/ui/components/layout/chat-frame.js +7 -8
- package/src/javascripts/ui/components/layout/deprecated-chat-frame.js +7 -8
- package/src/javascripts/ui/components/layout/interrupt.js +6 -15
- package/src/javascripts/ui/components/layout/pre-chat-messages.js +4 -3
- package/src/javascripts/ui/components/suggestions/index.js +5 -4
- package/src/javascripts/ui/components/translation-chat-status/index.tsx +4 -3
- package/src/javascripts/ui/components/view/app-view.js +1 -2
- package/src/javascripts/ui/components/view/deprecated-view.js +1 -2
- package/src/javascripts/ui/components/view/inline-view.js +1 -11
- package/src/javascripts/ui/components/view/window-view/index.js +1 -9
- package/src/javascripts/ui/components/view/window-view/window-open-button.js +4 -3
- package/src/javascripts/ui/hooks/{use-seamly-chat.js → use-seamly-chat.ts} +5 -1
- package/src/javascripts/ui/hooks/use-session-expired-command.ts +17 -0
- package/src/.DS_Store +0 -0
|
@@ -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={2574:function(t,e,n){"use strict";var r=n(3733),o=n(9389),i=n(8309),a=n(4278),s=n(5110);function c(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 l(){this._defaults=[]}for(var u=0,f=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];u<f.length;u++){const t=f[u];l.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}}l.prototype._setDefaults=function(t){var e,n=function(t,e){var n=void 0!==r&&o(t)||t["@@iterator"];if(!n){if(i(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return c(t,e);var r=a(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?s(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var l=0,u=function(){};return{s:u,n:function(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function(t){throw t},f:u}}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 f,p=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return p=t.done,t},e:function(t){d=!0,f=t},f:function(){try{p||null==n.return||n.return()}finally{if(d)throw f}}}}(this._defaults);try{for(n.s();!(e=n.n()).done;){const n=e.value;t[n.fn](...n.args)}}catch(t){n.e(t)}finally{n.f()}},t.exports=l},8158:function(t,e,n){"use strict";var r=n(3733),o=n(9389),i=n(8309),a=n(4278),s=n(5110),c=n(1607),l=n(1882),u=n(7198),f=n(1189);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}let d;"undefined"!=typeof window?d=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),d=void 0):d=self;const h=n(8767),v=n(4445),y=n(129),m=n(8842),g=n(6244),b=g.isObject,_=g.mixin,w=g.hasOwn,x=n(1253),S=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)};const C=e=t.exports;e.Request=P,C.getXHR=()=>{if(d.XMLHttpRequest)return new d.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const E=c("")?t=>c(t).call(t):t=>t.replace(/(^\s*|\s*$)/g,"");function T(t){if(!b(t))return t;const e=[];for(const n in t)w(t,n)&&A(e,n,t[n]);return e.join("&")}function A(t,e,n){if(void 0!==n)if(null!==n)if(i(n)){var c,l=function(t,e){var n=void 0!==r&&o(t)||t["@@iterator"];if(!n){if(i(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return p(t,e);var r=a(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?s(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 c=0,l=function(){};return{s:l,n:function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},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}}}}(n);try{for(l.s();!(c=l.n()).done;)A(t,e,c.value)}catch(t){l.e(t)}finally{l.f()}}else if(b(n))for(const r in n)w(n,r)&&A(t,`${e}[${r}]`,n[r]);else t.push(encodeURI(e)+"="+encodeURIComponent(n));else t.push(encodeURI(e))}function j(t){const e={},n=t.split("&");let r,o;for(let t=0,i=n.length;t<i;++t)r=n[t],o=l(r).call(r,"="),-1===o?e[decodeURIComponent(r)]="":e[decodeURIComponent(a(r).call(r,0,o))]=decodeURIComponent(a(r).call(r,o+1));return e}function I(t){return/[/+]json($|[^-\w])/i.test(t)}function k(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;let e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){const e=t.split(/\r?\n/),n={};let r,o,i,s;for(let t=0,c=e.length;t<c;++t)o=e[t],r=l(o).call(o,":"),-1!==r&&(i=a(o).call(o,0,r).toLowerCase(),s=E(a(o).call(o,r+1)),n[i]=s);return n}(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 P(t,e){const n=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(()=>{let t,e=null,r=null;try{r=new k(n)}catch(t){return e=new Error("Parser is unable to parse the response"),e.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=T,C.parseString=j,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":y.stringify,"application/json":v},C.parse={"application/x-www-form-urlencoded":j,"application/json":JSON.parse},_(k.prototype,x.prototype),k.prototype._parseBody=function(t){let e=C.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&I(this.type)&&(e=C.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},k.prototype.toError=function(){const t=this.req,e=t.method,n=t.url,r=`cannot ${e} ${n} (${this.status})`,o=new Error(r);return o.status=this.status,o.method=e,o.url=n,o},C.Response=k,h(P.prototype),_(P.prototype,m.prototype),P.prototype.type=function(t){return this.set("Content-Type",C.types[t]||t),this},P.prototype.accept=function(t){return this.set("Accept",C.types[t]||t),this},P.prototype.auth=function(t,e,n){1===arguments.length&&(e=""),"object"==typeof e&&null!==e&&(n=e,e=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});const r=n.encoder?n.encoder: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)},P.prototype.query=function(t){return"string"!=typeof t&&(t=T(t)),t&&this._query.push(t),this},P.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},P.prototype._getFormData=function(){return this._formData||(this._formData=new d.FormData),this._formData},P.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();const n=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),n(t,e)},P.prototype.crossDomainError=function(){const 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)},P.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},P.prototype.ca=P.prototype.agent,P.prototype.buffer=P.prototype.ca,P.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},P.prototype.pipe=P.prototype.write,P.prototype._isHost=function(t){return t&&"object"==typeof t&&!i(t)&&"[object Object]"!==Object.prototype.toString.call(t)},P.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()},P.prototype._setUploadTimeout=function(){const t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=u((()=>{t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},P.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const t=this;this.xhr=C.getXHR();const e=this.xhr;let n=this._formData||this._data;this._setTimeouts(),e.addEventListener("readystatechange",(()=>{const n=e.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4!==n)return;let r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}));const r=(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",f(r).call(r,null,"download")),e.upload&&e.upload.addEventListener("progress",f(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)){const t=this._header["content-type"];let e=this._serializer||C.serialize[t?t.split(";")[0]:""];!e&&I(t)&&(e=C.serialize["application/json"]),e&&(n=e(n))}for(const t in this.header)null!==this.header[t]&&w(this.header,t)&&e.setRequestHeader(t,this.header[t]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===n?null:n)},C.agent=()=>new S;for(var N=0,R=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];N<R.length;N++){const t=R[N];S.prototype[t.toLowerCase()]=function(e,n){const r=new C.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}}function M(t,e,n){const r=C("DELETE",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}S.prototype.del=S.prototype.delete,C.get=(t,e,n)=>{const r=C("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},C.head=(t,e,n)=>{const r=C("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},C.options=(t,e,n)=>{const r=C("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},C.del=M,C.delete=M,C.patch=(t,e,n)=>{const r=C("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},C.post=(t,e,n)=>{const r=C("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},C.put=(t,e,n)=>{const 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(7724),o=n(6226),i=n(8309),a=n(1607),s=n(8118),c=n(1882),l=n(4278),u=n(2578),f=n(7198);const p=n(3695),d=n(6244),h=d.isObject,v=d.hasOwn;function y(){}t.exports=y,y.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},y.prototype.parse=function(t){return this._parser=t,this},y.prototype.responseType=function(t){return this._responseType=t,this},y.prototype.serialize=function(t){return this._serializer=t,this},y.prototype.timeout=function(t){if(!t||"object"!=typeof t)return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(const e in t)if(v(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},y.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};const m=new r(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),g=new r([408,413,429,500,502,503,504,521,522,524]);y.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(t){console.error(t)}if(e&&e.status&&g.has(e.status))return!0;if(t){if(t.code&&m.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},y.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()},y.prototype.then=function(t,e){if(!this._fullfilledPromise){const t=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 o(((e,n)=>{t.on("abort",(()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError)return void n(this.timedoutError);const t=new Error("Aborted");t.code="ABORTED",t.status=this.status,t.method=this.method,t.url=this.url,n(t)})),t.end(((t,r)=>{t?n(t):e(r)}))}))}return this._fullfilledPromise.then(t,e)},y.prototype.catch=function(t){return this.then(void 0,t)},y.prototype.use=function(t){return t(this),this},y.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},y.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},y.prototype.get=function(t){return this._header[t.toLowerCase()]},y.prototype.getHeader=y.prototype.get,y.prototype.set=function(t,e){if(h(t)){for(const e in t)v(t,e)&&this.set(e,t[e]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},y.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},y.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(h(t)){for(const e in t)v(t,e)&&this.field(e,t[e]);return this}if(i(e)){for(const n in e)v(e,n)&&this.field(t,e[n]);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},y.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(p.gte(process.version,"v13.0.0")&&p.lt(process.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");p.gte(process.version,"v14.0.0")&&(this.req.destroyed=!0),this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},y.prototype._auth=function(t,e,n,r){switch(n.type){case"basic":this.set("Authorization",`Basic ${r(`${t}:${e}`)}`);break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization",`Bearer ${t}`)}return this},y.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},y.prototype.redirects=function(t){return this._maxRedirects=t,this},y.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},y.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},y.prototype.send=function(t){const e=h(t);let 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)i(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&&h(this._data))for(const e in t)v(t,e)&&(this._data[e]=t[e]);else if("string"==typeof t){var r;n||this.type("form"),n=this._header["content-type"],n&&(n=a(r=n.toLowerCase()).call(r)),this._data="application/x-www-form-urlencoded"===n?this._data?`${this._data}&${t}`:t:(this._data||"")+t}else this._data=t;return!e||this._isHost(t)||n||this.type("json"),this},y.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},y.prototype._finalizeQueryString=function(){const t=this._query.join("&");var e;if(t&&(this.url+=(s(e=this.url).call(e,"?")?"&":"?")+t),this._query.length=0,this._sort){var n;const t=c(n=this.url).call(n,"?");if(t>=0){var r,o;const e=l(r=this.url).call(r,t+1).split("&");"function"==typeof this._sort?u(e).call(e,this._sort):u(e).call(e),this.url=l(o=this.url).call(o,0,t)+"?"+e.join("&")}}},y.prototype._appendQueryString=()=>{console.warn("Unsupported")},y.prototype._timeoutError=function(t,e,n){if(this._aborted)return;const r=new Error(`${t+e}ms exceeded`);r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)},y.prototype._setTimeouts=function(){const t=this;this._timeout&&!this._timer&&(this._timer=f((()=>{t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=f((()=>{t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},1253:function(t,e,n){"use strict";var r=n(4157);const o=n(6244);function i(){}t.exports=i,i.prototype.get=function(t){return this.header[t.toLowerCase()]},i.prototype._setHeaderProperties=function(t){const e=t["content-type"]||"";this.type=o.type(e);const n=o.params(e);for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(this[t]=n[t]);this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},i.prototype._setStatusProperties=function(t){const 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(3733),o=n(9389),i=n(8309),a=n(4278),s=n(5110);function c(t,e){var n=void 0!==r&&o(t)||t["@@iterator"];if(!n){if(i(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return l(t,e);var r=a(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?s(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var c=0,u=function(){};return{s:u,n:function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function(t){throw t},f:u}}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 f,p=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return p=t.done,t},e:function(t){d=!0,f=t},f:function(){try{p||null==n.return||n.return()}finally{if(d)throw f}}}}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}e.type=t=>t.split(/ *; */).shift(),e.params=t=>{const e={};var n,r=c(t.split(/ *; */));try{for(r.s();!(n=r.n()).done;){const t=n.value.split(/ *= */),r=t.shift(),o=t.shift();r&&o&&(e[r]=o)}}catch(t){r.e(t)}finally{r.f()}return e},e.parseLinks=t=>{const e={};var n,r=c(t.split(/ *, */));try{for(r.s();!(n=r.n()).done;){var o,i;const t=n.value.split(/ *; */),r=a(o=t[0]).call(o,1,-1);e[a(i=t[1].split(/ *= */)[1]).call(i,1,-1)]=r}}catch(t){r.e(t)}finally{r.f()}return e},e.cleanHeader=(t,e)=>(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=t=>null!==t&&"object"==typeof 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=(t,n)=>{for(const r in n)e.hasOwn(n,r)&&(t[r]=n[r])}},1905: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 f=function(){return s(r,i,arguments)};l?l(t.exports,"apply",{value:f}):t.exports.apply=f},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},281:function(t,e,n){var r=n(2547);t.exports=r},31:function(t,e,n){var r=n(6509);t.exports=r},7487:function(t,e,n){var r=n(5774);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},1461:function(t,e,n){n(8851);var r=n(5703);t.exports=r("Array").every},4162: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},8209:function(t,e,n){n(8611);var r=n(5703);t.exports=r("Array").splice},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(1461),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(4162),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}},8339:function(t,e,n){var r=n(7046),o=n(8209),i=Array.prototype;t.exports=function(t){var e=t.splice;return t===i||r(i,t)&&e===i.splice?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},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},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(6371);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(1766),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")},2978:function(t,e,n){n(8084),n(3131);var r=n(1477);t.exports=r.f("toPrimitive")},2304:function(t,e,n){n(6274),n(5967),n(4334);var r=n(4058);t.exports=r.WeakMap},9567:function(t,e,n){n(6274),n(5967),n(1773);var r=n(4058);t.exports=r.WeakSet},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)},6600:function(t,e,n){t.exports=n(2201)},9759:function(t,e,n){t.exports=n(7398)},1384:function(t,e,n){t.exports=n(6189)},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},2201:function(t,e,n){var r=n(281);n(8783),n(3975),n(5799),n(1943),n(6774),n(5414),n(620),n(6172),t.exports=r},7398:function(t,e,n){var r=n(31);t.exports=r},6189:function(t,e,n){var r=n(7487);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),f=n(3476),p=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,x,S=p(e),O=0;if(!S||this===d&&s(S))for(m=l(e),g=n?new this(m):d(m);m>O;O++)x=y?v(e[O],O):e[O],u(g,O,x);else for(w=(_=f(e,S)).next,g=n?new this:[];!(b=o(w,_)).done;O++)x=y?a(_,v,[b.value,O],!0):b.value,u(g,O,x);return g.length=O,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,f=6==t,p=7==t,d=5==t||f;return function(h,v,y,m){for(var g,b,_=a(h),w=i(_),x=r(v,y),S=s(w),O=0,C=m||c,E=e?C(h,S):n||p?C(h,0):void 0;S>O;O++)if((d||O in w)&&(b=x(g=w[O],O,_),t))if(e)E[O]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return O;case 2:l(E,g)}else switch(t){case 4:return!1;case 7:l(E,g)}return f?-1:o||u?u:E}};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),f=i(u),p=a(u),d=t?p-1:0,h=t?-1:1;if(c<2)for(;;){if(d in f){l=f[d],d+=h;break}if(d+=h,t?d<0:p<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:p>d;d+=h)d in f&&(l=n(l,f[d],d,u));return l}};t.exports={left:c(!1),right:c(!0)}},9779:function(t,e,n){"use strict";var r=n(5746),o=n(1052),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(o(t)&&!a(t,"length").writable)throw i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},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),f=a(s(u-l,0)),p=0;l<u;l++,p++)i(f,p,t[l]);return f.length=p,f}},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}},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(2119),l=n(3091),u=n(5105),f=n(3538),p=n(4431),d=n(5746),h=n(1647).fastKey,v=n(5402),y=v.set,m=v.getterFor;t.exports={getConstructor:function(t,e,n,u){var f=t((function(t,r){s(t,p),y(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),d||(t.size=0),c(r)||l(r,t[u],{that:t,AS_ENTRIES:n})})),p=f.prototype,v=m(e),g=function(t,e,n){var r,o,i=v(t),a=b(t,e);return a?a.value=n:(i.last=a={index:o=h(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),d?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},b=function(t,e){var n,r=v(t),o=h(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(p,{clear:function(){for(var t=v(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,d?t.size=0:this.size=0},delete:function(t){var e=this,n=v(e),r=b(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),d?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=v(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!!b(this,t)}}),i(p,n?{get:function(t){var e=b(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)}}),d&&r(p,"size",{get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=m(e),i=m(r);u(t,e,(function(t,e){y(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)?f("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),p(e)}}},8850:function(t,e,n){"use strict";var r=n(5329),o=n(4380),i=n(1647).getWeakData,a=n(5743),s=n(6059),c=n(2119),l=n(941),u=n(3091),f=n(3610),p=n(953),d=n(5402),h=d.set,v=d.getterFor,y=f.find,m=f.findIndex,g=r([].splice),b=0,_=function(t){return t.frozen||(t.frozen=new w)},w=function(){this.entries=[]},x=function(t,e){return y(t.entries,(function(t){return t[0]===e}))};w.prototype={get:function(t){var e=x(this,t);if(e)return e[1]},has:function(t){return!!x(this,t)},set:function(t,e){var n=x(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=m(this.entries,(function(e){return e[0]===t}));return~e&&g(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var f=t((function(t,o){a(t,d),h(t,{type:e,id:b++,frozen:void 0}),c(o)||u(o,t[r],{that:t,AS_ENTRIES:n})})),d=f.prototype,y=v(e),m=function(t,e,n){var r=y(t),o=i(s(e),!0);return!0===o?_(r).set(e,n):o[r.id]=n,t};return o(d,{delete:function(t){var e=y(this);if(!l(t))return!1;var n=i(t);return!0===n?_(e).delete(t):n&&p(n,e.id)&&delete n[e.id]},has:function(t){var e=y(this);if(!l(t))return!1;var n=i(t);return!0===n?_(e).has(t):n&&p(n,e.id)}}),o(d,n?{get:function(t){var e=y(this);if(l(t)){var n=i(t);return!0===n?_(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return m(this,t,e)}}:{add:function(t){return m(this,t,!0)}}),f}}},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),f=n(941),p=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,b=-1!==t.indexOf("Map"),_=-1!==t.indexOf("Weak"),w=b?"set":"add",x=o[t],S=x&&x.prototype,O={};if(v&&u(x)&&(_||S.forEach&&!a((function(){(new x).entries().next()})))){var C=(y=e((function(e,n){m(l(e,C),{type:t,collection:new x}),null!=n&&c(n,e[w],{that:e,AS_ENTRIES:b})}))).prototype,E=g(t);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in S)||_&&"clear"==t||s(C,t,(function(n,r){var o=E(this).collection;if(!e&&_&&!f(n))return"get"==t&&void 0;var i=o[t](0===n?0:n,r);return e?this:i}))})),_||d(C,"size",{configurable:!0,get:function(){return E(this).collection.size}})}else y=n.getConstructor(e,t,b,w),i.enable();return p(y,t,!1,!0),O[t]=y,r({global:!0,forced:!0},O),_||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 f=s[u];r(t,f)||n&&r(n,f)||c(t,f,l(e,f))}}},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}))},3538:function(t){t.exports=function(t,e){return{value:t,done:e}}},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}},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]}))},6616:function(t){var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},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,e,n){var r=n(8501),o=n(6049);t.exports=!r&&!o&&"object"==typeof window&&"object"==typeof document},8501:function(t){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},1046: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"]},3995: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}},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(7484),a=n(7475),s=n(9677).f,c=n(7252),l=n(4058),u=n(6843),f=n(2029),p=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,x=t.stat,S=t.proto,O=w?r:x?r[_]:(r[_]||{}).prototype,C=w?l:l[_]||f(l,_,{})[_],E=C.prototype;for(h in e)n=!c(w?h:_+(x?".":"#")+h,t.forced)&&O&&p(O,h),y=C[h],n&&(m=t.dontCallGetSet?(b=s(O,h))&&b.value:O[h]),v=n&&m?m:e[h],n&&typeof y==typeof v||(g=t.bind&&n?u(v,r):t.wrap&&n?d(v):S&&a(v)?i(v):v,(t.sham||v&&v.sham||y&&y.sham)&&f(g,"sham",!0),f(C,h,g),S&&(p(l,o=_+"Prototype")||f(l,o,{}),f(l[o],h,v),t.real&&E&&!E[h]&&f(E,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,f,p){for(var d,h,v=l,y=0,m=!!f&&a(f,p);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(7484),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),f=r([].join),p={},d=function(t,e,n){if(!a(p,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";p[e]=l("C,a","return new C("+f(r,",")+")")}return p[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}},7484:function(t,e,n){var r=n(2532),o=n(5329);t.exports=function(t){if("Function"===r(t))return o(t)}},5329:function(t,e,n){var r=n(8285),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.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(2119),a=n(2077),s=n(9813)("iterator");t.exports=function(t){if(!i(t))return o(t,s)||o(t,"@@iterator")||a[r(t)]}},3476: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),o=n(2119);t.exports=function(t,e){var n=t[e];return o(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),f=n(1584),p=n(9418),d=n(5602),h=!1,v=p("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(!f(t))return"F";if(!e)return"E";m(t)}return t[v].objectID},getWeakData:function(t,e){if(!s(t,v)){if(!f(t))return!0;if(!e)return!1;m(t)}return t[v].weakData},onFreeze:function(t){return d&&h&&f(t)&&!s(t,v)&&m(t),t}};i[v]=!0},5402:function(t,e,n){var r,o,i,a=n(7093),s=n(1899),c=n(941),l=n(2029),u=n(953),f=n(3030),p=n(4262),d=n(7748),h="Object already initialized",v=s.TypeError,y=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new y);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw v(h);return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var g=p("state");d[g]=!0,r=function(t,e){if(u(t,g))throw v(h);return e.facade=t,l(t,g,e),e},o=function(t){return u(t,g)?t[g]:{}},i=function(t){return u(t,g)}}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(!c(e)||(n=o(e)).type!==t)throw v("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,e,n){var r=n(6616),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}: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=[],f=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),h=!p.exec(l),v=function(t){if(!i(t))return!1;try{return f(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(p,c(t))}catch(t){return!0}};y.sham=!0,t.exports=!f||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},2119:function(t){t.exports=function(t){return null==t}},941:function(t,e,n){var r=n(7475),o=n(6616),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}: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(3476),f=n(2902),p=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,x,S=n&&n.that,O=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),A=r(e,S),j=function(t){return y&&p(y,"normal",t),new h(!0,t)},I=function(t){return O?(i(t),T?A(t[0],t[1],j):A(t[0],t[1])):T?A(t,j):A(t)};if(C)y=t.iterator;else if(E)y=t;else{if(!(m=f(t)))throw d(a(t)+" is not iterable");if(s(m)){for(g=0,b=c(t);b>g;g++)if((_=I(t[g]))&&l(v,_))return _;return new h(!1)}y=u(t,m)}for(w=C?t.next:y.next;!(x=o(w,y)).done;){try{_=I(x.value)}catch(t){p(y,"throw",t)}if("object"==typeof _&&_&&l(v,_))return _}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}},3847: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}},5105:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(2529),a=n(9417),s=n(7475),c=n(3847),l=n(249),u=n(8929),f=n(904),p=n(2029),d=n(5929),h=n(9813),v=n(2077),y=n(5143),m=a.PROPER,g=a.CONFIGURABLE,b=y.IteratorPrototype,_=y.BUGGY_SAFARI_ITERATORS,w=h("iterator"),x="keys",S="values",O="entries",C=function(){return this};t.exports=function(t,e,n,a,h,y,E){c(n,e,a);var T,A,j,I=function(t){if(t===h&&M)return M;if(!_&&t in N)return N[t];switch(t){case x:case S:case O:return function(){return new n(this,t)}}return function(){return new n(this)}},k=e+" Iterator",P=!1,N=t.prototype,R=N[w]||N["@@iterator"]||h&&N[h],M=!_&&R||I(h),D="Array"==e&&N.entries||R;if(D&&(T=l(D.call(new t)))!==Object.prototype&&T.next&&(i||l(T)===b||(u?u(T,b):s(T[w])||d(T,w,C)),f(T,k,!0,!0),i&&(v[k]=C)),m&&h==S&&R&&R.name!==S&&(!i&&g?p(N,"name",S):(P=!0,M=function(){return o(R,this)})),h)if(A={values:I(S),keys:y?M:I(x),entries:I(O)},E)for(j in A)(_||P||!(j in N))&&d(N,j,A[j]);else r({target:e,proto:!0,forced:_||P},A);return i&&!E||N[w]===M||d(N,w,M,{name:h}),v[e]=M,A}},5143:function(t,e,n){"use strict";var r,o,i,a=n(5981),s=n(7475),c=n(941),l=n(9290),u=n(249),f=n(5929),p=n(9813),d=n(2529),h=p("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):v=!0),!c(r)||a((function(){var t={};return r[h].call(t)!==t}))?r={}:d&&(r=l(r)),s(r[h])||f(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},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,f=n(1899),p=n(6843),d=n(9677).f,h=n(2941).set,v=n(2749),y=n(4470),m=n(8045),g=n(6049),b=f.MutationObserver||f.WebKitMutationObserver,_=f.document,w=f.process,x=f.Promise,S=d(f,"queueMicrotask"),O=S&&S.value;O||(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&&x&&x.resolve?((l=x.resolve(void 0)).constructor=x,u=p(l.then,l),a=function(){u(r)}):g?a=function(){w.nextTick(r)}:(h=p(h,f),a=function(){h(r)}):(s=!0,c=_.createTextNode(""),new b(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),t.exports=O||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},9520:function(t,e,n){"use strict";var r=n(4883),o=TypeError,i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw o("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(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}},1942: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,f=r.Symbol,p=f&&f.iterator,d=1/u(c+"-0")!=-1/0||p&&!o((function(){u(Object(p))}));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,f=u&&u.iterator,p=/^[+-]?0x/i,d=i(p.exec),h=8!==l(c+"08")||22!==l(c+"0x16")||f&&!o((function(){l(Object(f))}));t.exports=h?function(t,e){var n=s(a(t));return l(n,e>>>0||(d(p,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),f=n(7026),p=Object.assign,d=Object.defineProperty,h=o([].concat);t.exports=!p||a((function(){if(r&&1!==p({b:1},p(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!=p({},t)[n]||s(p({},e)).join("")!=o}))?function(t,e){for(var n=u(t),o=arguments.length,a=1,p=c.f,d=l.f;o>a;)for(var v,y=f(arguments[a++]),m=p?h(s(y),p(y)):s(y),g=m.length,b=0;g>b;)v=m[b++],r&&!i(d,y,v)||(n[v]=y[v]);return n}:p},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),f="prototype",p="script",d=u("IE_PROTO"),h=function(){},v=function(t){return"<"+p+">"+t+"</"+p+">"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;m="undefined"!=typeof document?document.domain&&r?y(r):(e=l("iframe"),n="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(r);for(var o=a.length;o--;)delete m[f][a[o]];return m()};s[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[f]=o(t),n=new h,h[f]=null,n[d]=t):n=m(),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,f="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=u(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:f in n?n[f]:r[f],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),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=c(e),u)try{return f(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,f=0,p=[];u>f;)n=l[f++],r&&!s(o,n)||c(p,t?[n,o[n]]:o[n]);return p}};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(8501),f=n(2529),p=n(3385),d=o&&o.prototype,h=c("species"),v=!1,y=i(r.PromiseRejectionEvent),m=a("Promise",(function(){var t=s(o),e=t!==String(o);if(!e&&66===p)return!0;if(f&&(!d.catch||!d.finally))return!0;if(!p||p<51||!/native code/.test(t)){var n=new o((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(v=n.then((function(){}))instanceof r))return!0}return!e&&(l||u)&&!y}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:y,SUBCLASSING:v}},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,e,n){var r=n(2119),o=TypeError;t.exports=function(t){if(r(t))throw o("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,f=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:f(r.setTimeout),setInterval:f(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.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},487:function(t,e,n){var r=n(6059),o=n(174),i=n(2119),a=n(9813)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||i(n=r(s)[a])?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,f=i(a(e)),p=o(n),d=f.length;return p<0||p>=d?t?"":void 0:(r=c(f,p))<55296||r>56319||p+1===d||(u=c(f,p+1))<56320||u>57343?t?s(f,p):r:t?l(f,p,p+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+"*$"),f=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:f(1),end:f(2),trim:f(3)}},3405: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}))},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})}},4680:function(t,e,n){var r=n(3405);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},2941:function(t,e,n){var r,o,i,a,s=n(1899),c=n(9730),l=n(6843),u=n(7475),f=n(953),p=n(5981),d=n(5463),h=n(3765),v=n(1333),y=n(8348),m=n(2749),g=n(6049),b=s.setImmediate,_=s.clearImmediate,w=s.process,x=s.Dispatch,S=s.Function,O=s.MessageChannel,C=s.String,E=0,T={},A="onreadystatechange";try{r=s.location}catch(t){}var j=function(t){if(f(T,t)){var e=T[t];delete T[t],e()}},I=function(t){return function(){j(t)}},k=function(t){j(t.data)},P=function(t){s.postMessage(C(t),r.protocol+"//"+r.host)};b&&_||(b=function(t){y(arguments.length,1);var e=u(t)?t:S(t),n=h(arguments,1);return T[++E]=function(){c(e,void 0,n)},o(E),E},_=function(t){delete T[t]},g?o=function(t){w.nextTick(I(t))}:x&&x.now?o=function(t){x.now(I(t))}:O&&!m?(a=(i=new O).port2,i.port1.onmessage=k,o=l(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!p(P)?(o=P,s.addEventListener("message",k,!1)):o=A in v("script")?function(t){d.appendChild(v("script"))[A]=function(){d.removeChild(this),j(t)}}:function(t){setTimeout(I(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(3405);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}},7093:function(t,e,n){var r=n(1899),o=n(7475),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},3464: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)})}},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(3405),c=n(2302),l=o("wks"),u=r.Symbol,f=u&&u.for,p=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&&f?f(e):p(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),f=n(3995),p=n(3794),d=n(3091),h=n(4649),v=n(9813),y=n(8780),m=v("toStringTag"),g=Error,b=[].push,_=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,s=o(w,this);a?n=a(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",f(n.stack,1)),p(n,r);var u=[];return d(t,b,{that:u}),l(n,"errors",u),n};a?a(_,g):s(_,g,{name:!0});var w=_.prototype=c(g.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),f=n(4692),p=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=p("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),p=f(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(p,d,i[n]);else l(d+1),u(p,d++,i);return p.length=d,p}})},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)[a]((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)[a]((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(7484),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(5105),l=n(3538),u=n(2529),f=n(5746),p="Array Iterator",d=a.set,h=a.getterFor(p);t.exports=c(Array,"Array",(function(t,e){d(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,l(void 0,!0)):l("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!u&&f&&"values"!==v.name)try{s(v,"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),f=n(9813),p=n(568),d=n(3765),h=p("slice"),v=f("species"),y=Array,m=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,r,f,p=l(this),h=c(p),g=s(t,h),b=s(void 0===e?h:e,h);if(o(p)&&(n=p.constructor,(i(n)&&(n===y||o(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===y||void 0===n))return d(p,g,b);for(r=new(void 0===n?y:n)(m(b-g,0)),f=0;g<b;g++,f++)g in p&&u(r,f,p[g]);return r.length=f,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),f=n(1388),p=n(4194),d=n(4342),h=n(1046),v=n(3385),y=n(8938),m=[],g=o(m.sort),b=o(m.push),_=u((function(){m.sort(void 0)})),w=u((function(){m.sort(null)})),x=p("sort"),S=!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:_||!w||!x||!S},{sort:function(t){void 0!==t&&i(t);var e=a(this);if(S)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&&b(o,e[r]);for(f(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=s(o),r=0;r<n;)e[r]=o[r++];for(;r<u;)c(e,r++);return e}})},8611:function(t,e,n){"use strict";var r=n(6887),o=n(9678),i=n(9413),a=n(2435),s=n(623),c=n(9779),l=n(6796),u=n(4692),f=n(5449),p=n(5863),d=n(568)("splice"),h=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,r,d,y,m,g,b=o(this),_=s(b),w=i(t,_),x=arguments.length;for(0===x?n=r=0:1===x?(n=0,r=_-w):(n=x-2,r=v(h(a(e),0),_-w)),l(_+n-r),d=u(b,r),y=0;y<r;y++)(m=w+y)in b&&f(d,y,b[m]);if(d.length=r,n<r){for(y=w;y<_-r;y++)g=y+n,(m=y+r)in b?b[g]=b[m]:p(b,g);for(y=_;y>_-r+n;y--)p(b,y-1)}else if(n>r)for(y=_-r;y>w;y--)g=y+n-1,(m=y+r-1)in b?b[g]=b[m]:p(b,g);for(y=0;y<n;y++)b[y+w]=arguments[y+2];return c(b,_-r+n),d}})},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)}})},8084:function(){},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),f=n(941),p=n(6664),d=n(3765),h=n(3405),v=o("JSON","stringify"),y=s(/./.exec),m=s("".charAt),g=s("".charCodeAt),b=s("".replace),_=s(1..toString),w=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,O=!h||c((function(){var t=o("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),C=c((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),E=function(t,e){var n=d(arguments),r=e;if((f(e)||void 0!==t)&&!p(t))return l(e)||(e=function(t,e){if(u(r)&&(e=a(r,this,t,e)),!p(e))return e}),n[1]=e,i(v,null,n)},T=function(t,e,n){var r=m(n,e-1),o=m(n,e+1);return y(x,t)&&!y(S,o)||y(S,t)&&!y(x,r)?"\\u"+_(g(t,0),16):t};v&&r({target:"JSON",stat:!0,arity:3,forced:O||C},{stringify:function(t,e,n){var r=d(arguments),o=i(O?E:v,null,r);return C&&"string"==typeof o?b(o,w,T):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})},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={},f=0;l.length>f;)void 0!==(n=o(r,e=l[f++]))&&c(u,e,n);return u}})},7144:function(t,e,n){var r=n(6887),o=n(3405),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(1942);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),f=r.resolve,p=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,f(t))}),(function(t){l||d||(l=!0,a[i]=t,--c||p(new n(a,u)))}))})),--c||p(new n(a,u))}));return d.error&&p(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 f=s("Promise").prototype.catch;u.catch!==f&&l(u,"catch",f,{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),f=n(5929),p=n(8929),d=n(904),h=n(4431),v=n(4883),y=n(7475),m=n(941),g=n(5743),b=n(487),_=n(2941).set,w=n(6132),x=n(4845),S=n(2),O=n(8397),C=n(5402),E=n(6991),T=n(7742),A=n(9520),j="Promise",I=T.CONSTRUCTOR,k=T.REJECTION_EVENT,P=T.SUBCLASSING,N=C.getterFor(j),R=C.set,M=E&&E.prototype,D=E,L=M,U=l.TypeError,F=l.document,z=l.process,B=A.f,H=B,$=!!(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,f=t.domain;try{s?(a||(2===e.rejection&&X(e),e.rejection=1),!0===s?n=i:(f&&f.enter(),n=s(i),f&&(f.exit(),o=!0)),n===t.promise?l(U("Promise-chain cycle")):(r=q(n))?u(r,n,c,l):c(n)):l(i)}catch(t){f&&!o&&f.exit(),l(t)}},Y=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&&K(t)})))},G=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},!k&&(o=l["on"+t])?o(r):t===V&&x("Unhandled promise rejection",n)},K=function(t){u(_,l,(function(){var e,n=t.facade,r=t.value;if(J(t)&&(e=S((function(){c?z.emit("unhandledRejection",r,n):G(V,n,r)})),t.rejection=c||J(t)?2:1,e.error))throw e.value}))},J=function(t){return 1!==t.rejection&&!t.parent},X=function(t){u(_,l,(function(){var e=t.facade;c?z.emit("rejectionHandled",e):G("rejectionhandled",e,t.value)}))},Q=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,Y(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw U("Promise can't be resolved itself");var r=q(e);r?w((function(){var n={done:!1};try{u(r,e,Q(tt,n,t),Q(Z,n,t))}catch(e){Z(n,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){Z({done:!1},e,t)}}};if(I&&(L=(D=function(t){g(this,L),v(t),u(r,this);var e=N(this);try{t(Q(tt,e),Q(Z,e))}catch(t){Z(e,t)}}).prototype,(r=function(t){R(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:void 0})}).prototype=f(L,"then",(function(t,e){var n=N(this),r=B(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=N(t);this.promise=t,this.resolve=Q(tt,e),this.reject=Q(Z,e)},A.f=B=function(t){return t===D||void 0===t?new o(t):H(t)},!s&&y(E)&&M!==Object.prototype)){i=M.then,P||f(M,"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 M.constructor}catch(t){}p&&p(M,L)}a({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:D}),d(D,j,!1,!0),h(j)},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),f=n(5929),p=i&&i.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){p.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;p.finally!==d&&f(p,"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(5105),s=n(3538),c="String Iterator",l=i.set,u=i.getterFor(c);a(String,"String",(function(t){l(this,{type:c,string:o(t),index:0})}),(function(){var t,e=u(this),n=e.string,o=e.index;return o>=n.length?s(void 0,!0):(t=r(n,o),e.index+=t.length,s(t,!1))}))},6371: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(3464)("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(3405),u=n(5981),f=n(953),p=n(7046),d=n(6059),h=n(4529),v=n(3894),y=n(5803),m=n(1887),g=n(9290),b=n(4771),_=n(946),w=n(684),x=n(7857),S=n(9677),O=n(5988),C=n(9938),E=n(6760),T=n(5929),A=n(8726),j=n(4262),I=n(7748),k=n(9418),P=n(9813),N=n(1477),R=n(3464),M=n(9630),D=n(904),L=n(5402),U=n(3610).forEach,F=j("hidden"),z="Symbol",B="prototype",H=L.set,$=L.getterFor(z),V=Object[B],q=o.Symbol,W=q&&q[B],Y=o.TypeError,G=o.QObject,K=S.f,J=O.f,X=w.f,Q=E.f,Z=a([].push),tt=A("symbols"),et=A("op-symbols"),nt=A("wks"),rt=!G||!G[B]||!G[B].findChild,ot=c&&u((function(){return 7!=g(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=K(V,e);r&&delete V[e],J(t,e,n),r&&t!==V&&J(V,e,r)}:J,it=function(t,e){var n=tt[t]=g(W);return H(n,{type:z,tag:t,description:e}),c||(n.description=e),n},at=function(t,e,n){t===V&&at(et,e,n),d(t);var r=v(e);return d(n),f(tt,r)?(n.enumerable?(f(t,F)&&t[F][r]&&(t[F][r]=!1),n=g(n,{enumerable:m(0,!1)})):(f(t,F)||J(t,F,m(1,{})),t[F][r]=!0),ot(t,r,n)):J(t,r,n)},st=function(t,e){d(t);var n=h(e),r=b(n).concat(ft(n));return U(r,(function(e){c&&!i(ct,n,e)||at(t,e,n[e])})),t},ct=function(t){var e=v(t),n=i(Q,this,e);return!(this===V&&f(tt,e)&&!f(et,e))&&(!(n||!f(this,e)||!f(tt,e)||f(this,F)&&this[F][e])||n)},lt=function(t,e){var n=h(t),r=v(e);if(n!==V||!f(tt,r)||f(et,r)){var o=K(n,r);return!o||!f(tt,r)||f(n,F)&&n[F][r]||(o.enumerable=!0),o}},ut=function(t){var e=X(h(t)),n=[];return U(e,(function(t){f(tt,t)||f(I,t)||Z(n,t)})),n},ft=function(t){var e=t===V,n=X(e?et:h(t)),r=[];return U(n,(function(t){!f(tt,t)||e&&!f(V,t)||Z(r,tt[t])})),r};l||(q=function(){if(p(W,this))throw Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=k(t),n=function(t){this===V&&i(n,et,t),f(this,F)&&f(this[F],e)&&(this[F][e]=!1),ot(this,e,m(1,t))};return c&&rt&&ot(V,e,{configurable:!0,set:n}),it(e,t)},T(W=q[B],"toString",(function(){return $(this).tag})),T(q,"withoutSetter",(function(t){return it(k(t),t)})),E.f=ct,O.f=at,C.f=st,S.f=lt,_.f=w.f=ut,x.f=ft,N.f=function(t){return it(P(t),t)},c&&(J(W,"description",{configurable:!0,get:function(){return $(this).description}}),s||T(V,"propertyIsEnumerable",ct,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),U(b(nt),(function(t){R(t)})),r({target:z,stat:!0,forced:!l},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(t,e){return void 0===e?g(t):st(g(t),e)},defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ut}),M(),D(q,z),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(4680),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(3464)("hasInstance")},5903:function(t,e,n){n(3464)("isConcatSpreadable")},1825:function(t,e,n){n(3464)("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(4680),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(3464)("matchAll")},8394:function(t,e,n){n(3464)("match")},1766:function(t,e,n){n(3464)("replace")},9791:function(t,e,n){n(3464)("search")},9911:function(t,e,n){n(3464)("species")},4315:function(t,e,n){n(3464)("split")},3131:function(t,e,n){var r=n(3464),o=n(9630);r("toPrimitive"),o()},4714:function(t,e,n){var r=n(626),o=n(3464),i=n(904);o("toStringTag"),i(r("Symbol"),"Symbol")},659:function(t,e,n){n(3464)("unscopables")},4776:function(t,e,n){"use strict";var r,o=n(1899),i=n(5329),a=n(4380),s=n(1647),c=n(4683),l=n(8850),u=n(941),f=n(1584),p=n(5402).enforce,d=n(7093),h=!o.ActiveXObject&&"ActiveXObject"in o,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},y=c("WeakMap",v,l);if(d&&h){r=l.getConstructor(v,"WeakMap",!0),s.enable();var m=y.prototype,g=i(m.delete),b=i(m.has),_=i(m.get),w=i(m.set);a(m,{delete:function(t){if(u(t)&&!f(t)){var e=p(this);return e.frozen||(e.frozen=new r),g(this,t)||e.frozen.delete(t)}return g(this,t)},has:function(t){if(u(t)&&!f(t)){var e=p(this);return e.frozen||(e.frozen=new r),b(this,t)||e.frozen.has(t)}return b(this,t)},get:function(t){if(u(t)&&!f(t)){var e=p(this);return e.frozen||(e.frozen=new r),b(this,t)?_(this,t):e.frozen.get(t)}return _(this,t)},set:function(t,e){if(u(t)&&!f(t)){var n=p(this);n.frozen||(n.frozen=new r),b(this,t)?w(this,t,e):n.frozen.set(t,e)}else w(this,t,e);return this}})}},4334:function(t,e,n){n(4776)},1115:function(t,e,n){"use strict";n(4683)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(8850))},1773:function(t,e,n){n(1115)},8783:function(t,e,n){n(3464)("asyncDispose")},3975:function(t,e,n){n(3464)("dispose")},5799:function(t,e,n){n(3464)("matcher")},1943:function(t,e,n){n(3464)("metadataKey")},5414:function(t,e,n){n(3464)("metadata")},6774:function(t,e,n){n(3464)("observable")},620:function(t,e,n){n(3464)("patternMatch")},6172:function(t,e,n){n(3464)("replaceAll")},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],f=u&&u.prototype;f&&i(f)!==c&&a(f,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},2348:function(t,e,n){var r=n(8339);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},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},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},5774:function(t,e,n){var r=n(2978);t.exports=r},2010:function(t,e,n){var r=n(2304);n(7634),t.exports=r},3726:function(t,e,n){var r=n(9567);n(7634),t.exports=r},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,p(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 f;if(l+=1,"object"==typeof t&&null!==t){for(f=0;f<i.length;f++)if(i[f]===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(f=0;f<t.length;f++)c(t[f],f,f,i,t,l,u);else{var p=Object.keys(t);for(f=0;f<p.length;f++){var d=p[f];c(t[d],d,f,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=f(t,"",0,[],void 0,0,a)||t;try{s=0===o.length?JSON.stringify(c,e,n):JSON.stringify(c,p(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 f(t,o,i,a,c,u,p){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!==p.depthLimit&&u>p.depthLimit)return void s(e,t,o,c);if(void 0!==p.edgesLimit&&i+1>p.edgesLimit)return void s(e,t,o,c);if(a.push(t),Array.isArray(t))for(d=0;d<t.length;d++)f(t[d],d,d,a,t,u,p);else{var h={},v=Object.keys(t).sort(l);for(d=0;d<v.length;d++){var y=v[d];f(t[y],y,d,a,t,u,p),h[y]=t[y]}if(void 0===c)return h;r.push([c,o,t]),c[o]=h}a.pop()}}function p(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=[],f=0;f<l;f++)u.push("$"+f);if(a=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var p=function(){};p.prototype=i.prototype,a.prototype=new p,p.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,f=n(1405)(),p=Object.getPrototypeOf||function(t){return t.__proto__},d={},h="undefined"==typeof Uint8Array?r:p(Uint8Array),v={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][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%":f?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p((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&&f?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):r,"%Symbol%":f?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=p(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),b=n(7642),_=g.call(Function.call,Array.prototype.concat),w=g.call(Function.apply,Array.prototype.splice),x=g.call(Function.call,String.prototype.replace),S=g.call(Function.call,String.prototype.slice),O=g.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,T=function(t){var e=S(t,0,1),n=S(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,C,(function(t,e,n,o){r[r.length]=n?x(o,E,"$1"):e||t})),r},A=function(t,e){var n,r=t;if(b(m,r)&&(r="%"+(n=m[r])[0]+"%"),b(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===O(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=T(t),r=n.length>0?n[0]:"",i=A("%"+r+"%",e),s=i.name,l=i.value,u=!1,f=i.alias;f&&(r=f[0],w(n,_([0,1],f)));for(var p=1,d=!0;p<n.length;p+=1){var h=n[p],y=S(h,0,1),m=S(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),b(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&&p+1>=n.length){var g=c(l,h);l=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else d=b(l,h),l=l[h];d&&!u&&(v[s]=l)}}return l}},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)},8679:function(t,e,n){"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(t){return r.isMemo(t)?a:s[t.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&t(e,o,r)}var a=u(n);f&&(a=a.concat(f(n)));for(var s=c(e),v=c(n),y=0;y<a.length;++y){var m=a[y];if(!(i[m]||r&&r[m]||v&&v[m]||s&&s[m])){var g=p(n,m);try{l(e,m,g)}catch(t){}}}}return e}},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,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="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,b=String.prototype.replace,_=String.prototype.toUpperCase,w=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,O=Array.prototype.join,C=Array.prototype.slice,E=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,k="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function R(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?-E(-t):E(t);if(r!==t){var o=String(r),i=g.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 M=n(4654),D=M.custom,L=H(D)?D:null;function U(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function F(t){return b.call(String(t),/"/g,""")}function z(t){return!("[object Array]"!==q(t)||k&&"object"==typeof t&&k in t)}function B(t){return!("[object RegExp]"!==q(t)||k&&"object"==typeof t&&k in t)}function H(t){if(I)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!j)return!1;try{return j.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 Y(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var _=String(e);return v?R(e,_):_}if("bigint"==typeof e){var x=String(e)+"n";return v?R(e,x):x}var E=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=E&&E>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=O.call(Array(t.indent+1)," ")}return{base:n,prev:O.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=C.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&&!B(e)){var G=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"+(G?": "+G:" (anonymous)")+"]"+(tt.length>0?" { "+O.call(tt,", ")+" }":"")}if(H(e)){var et=I?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(e);return"object"!=typeof e||I?et:K(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+"="+U(F(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=Z(e,$);return D&&!function(t){for(var e=0;e<t.length;e++)if(W(t[e],"\n")>=0)return!1;return!0}(it)?"["+Q(it,D)+"]":"[ "+O.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==q(t)||k&&"object"==typeof t&&k in t)}(e)){var at=Z(e,$);return"cause"in Error.prototype||!("cause"in e)||P.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(at,", ")+" }":"{ ["+String(e)+"] "+O.call(S.call("[cause]: "+$(e.cause),at),", ")+" }"}if("object"==typeof e&&c){if(L&&"function"==typeof e[L]&&M)return M(e,{depth:E-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))})),X("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($(t,e))})),X("Set",l.call(e),ct,D)}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 WeakMap}catch(t){}return!1}(e))return J("WeakMap");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 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)||k&&"object"==typeof t&&k in t)}(e))return K($(Number(e)));if(function(t){if(!t||"object"!=typeof t||!T)return!1;try{return T.call(t),!0}catch(t){}return!1}(e))return K($(T.call(e)));if(function(t){return!("[object Boolean]"!==q(t)||k&&"object"==typeof t&&k in t)}(e))return K(h.call(e));if(function(t){return!("[object String]"!==q(t)||k&&"object"==typeof t&&k in t)}(e))return K($(String(e)));if(!function(t){return!("[object Date]"!==q(t)||k&&"object"==typeof t&&k in t)}(e)&&!B(e)){var lt=Z(e,$),ut=N?N(e)===Object.prototype:e instanceof Object||e.constructor===Object,ft=e instanceof Object?"":"null prototype",pt=!ut&&k&&Object(e)===e&&k in e?g.call(q(e),8,-1):ft?"Object":"",dt=(ut||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(pt||ft?"["+O.call(S.call([],pt||[],ft||[]),": ")+"] ":"");return 0===lt.length?dt+"{}":D?dt+"{"+Q(lt,D)+"}":dt+"{ "+O.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 Y(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(g.call(t,0,e.maxStringLength),e)+r}return U(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",e)}function G(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 K(t){return"Object("+t+")"}function J(t){return t+" { ? }"}function X(t,e,n,r){return t+" ("+e+") {"+(r?Q(n,r):O.call(n,", "))+"}"}function Q(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+O.call(t,","+n)+"\n"+e.prev}function Z(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++)P.call(t,a[l])&&r.push("["+e(a[l])+"]: "+e(t[a[l]],t));return r}},8661:function(t,e,n){"use strict";n.r(e),n.d(e,{Children:function(){return h},Component:function(){return r.wA},Fragment:function(){return r.HY},PureComponent:function(){return c},StrictMode:function(){return J},Suspense:function(){return b},SuspenseList:function(){return x},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return B},cloneElement:function(){return q},createContext:function(){return r.kr},createElement:function(){return r.az},createFactory:function(){return $},createPortal:function(){return E},createRef:function(){return r.Vf},default:function(){return nt},findDOMNode:function(){return Y},flushSync:function(){return K},forwardRef:function(){return p},hydrate:function(){return P},isValidElement:function(){return V},lazy:function(){return w},memo:function(){return l},render:function(){return k},startTransition:function(){return X},unmountComponentAtNode:function(){return W},unstable_batchedUpdates:function(){return G},useCallback:function(){return o.I4},useContext:function(){return o.qp},useDebugValue:function(){return o.Qb},useDeferredValue:function(){return Q},useEffect:function(){return o.d4},useErrorBoundary:function(){return o.cO},useId:function(){return o.Me},useImperativeHandle:function(){return o.aP},useInsertionEffect:function(){return tt},useLayoutEffect:function(){return o.bt},useMemo:function(){return o.Ye},useReducer:function(){return o._Y},useRef:function(){return o.sO},useState:function(){return o.eJ},useSyncExternalStore:function(){return et},useTransition:function(){return Z},version:function(){return H}});var r=n(6400),o=n(396);function i(t,e){for(var n in e)t[n]=e[n];return t}function a(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 s(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e}function c(t){this.props=t}function l(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:a(this.props,t)}function o(e){return this.shouldComponentUpdate=n,(0,r.az)(t,e)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(c.prototype=new r.wA).isPureReactComponent=!0,c.prototype.shouldComponentUpdate=function(t,e){return a(this.props,t)||a(this.state,e)};var u=r.YM.__b;r.YM.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),u&&u(t)};var f="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function p(t){function e(e){var n=i({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=f,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var d=function(t,e){return null==t?null:(0,r.bR)((0,r.bR)(t).map(e))},h={map:d,forEach:d,count:function(t){return t?(0,r.bR)(t).length:0},only:function(t){var e=(0,r.bR)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:r.bR},v=r.YM.__e;r.YM.__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);v(t,e,n,r)};var y=r.YM.unmount;function m(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=i({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return m(t,e,n)}))),t}function g(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return g(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function b(){this.__u=0,this.t=null,this.__b=null}function _(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function w(t){var e,n,o;function i(i){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){o=t})),o)throw o;if(!n)throw e;return(0,r.az)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function x(){this.u=null,this.o=null}r.YM.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),y&&y(t)},(b.prototype=new r.wA).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=_(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.__a){var t=r.state.__a;r.__v.__k[0]=g(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__a:r.__b=null});e=r.t.pop();)e.forceUpdate()}},c=!0===e.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(a,a)},b.prototype.componentWillUnmount=function(){this.t=[]},b.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=m(this.__b,n,o.__O=o.__P)}this.__b=null}var i=e.__a&&(0,r.az)(r.HY,null,t.fallback);return i&&(i.__h=null),[(0,r.az)(r.HY,null,e.__a?null:t.children),i]};var S=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]}};function O(t){return this.getChildContext=function(){return t.context},t.children}function C(t){var e=this,n=t.i;e.componentWillUnmount=function(){(0,r.sY)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),(0,r.sY)((0,r.az)(O,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function E(t,e){var n=(0,r.az)(C,{__v:t,i:e});return n.containerInfo=e,n}(x.prototype=new r.wA).__a=function(t){var e=this,n=_(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),S(e,t,r)):o()};n?n(i):i()}},x.prototype.render=function(t){this.u=null,this.o=new Map;var e=(0,r.bR)(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},x.prototype.componentDidUpdate=x.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){S(t,n,e)}))};var T="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,A=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,j="undefined"!=typeof document,I=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};function k(t,e,n){return null==e.__k&&(e.textContent=""),(0,r.sY)(t,e),"function"==typeof n&&n(),t?t.__c:null}function P(t,e,n){return(0,r.ZB)(t,e),"function"==typeof n&&n(),t?t.__c:null}r.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(r.wA.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var N=r.YM.event;function R(){}function M(){return this.cancelBubble}function D(){return this.defaultPrevented}r.YM.event=function(t){return N&&(t=N(t)),t.persist=R,t.isPropagationStopped=M,t.isDefaultPrevented=D,t.nativeEvent=t};var L,U={configurable:!0,get:function(){return this.class}},F=r.YM.vnode;r.YM.vnode=function(t){var e=t.type,n=t.props,o=n;if("string"==typeof e){var i=-1===e.indexOf("-");for(var a in o={},n){var s=n[a];j&&"children"===a&&"noscript"===e||"value"===a&&"defaultValue"in n&&null==s||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===s?s="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+e)&&!I(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&A.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),o[a]&&(a="oninputCapture")),o[a]=s)}"select"==e&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.bR)(n.children).forEach((function(t){t.props.selected=-1!=o.value.indexOf(t.props.value)}))),"select"==e&&null!=o.defaultValue&&(o.value=(0,r.bR)(n.children).forEach((function(t){t.props.selected=o.multiple?-1!=o.defaultValue.indexOf(t.props.value):o.defaultValue==t.props.value}))),t.props=o,n.class!=n.className&&(U.enumerable="className"in n,null!=n.className&&(o.class=n.className),Object.defineProperty(o,"className",U))}t.$$typeof=T,F&&F(t)};var z=r.YM.__r;r.YM.__r=function(t){z&&z(t),L=t.__c};var B={ReactCurrentDispatcher:{current:{readContext:function(t){return L.__n[t.__c].props.value}}}},H="17.0.2";function $(t){return r.az.bind(null,t)}function V(t){return!!t&&t.$$typeof===T}function q(t){return V(t)?r.Tm.apply(null,arguments):t}function W(t){return!!t.__k&&((0,r.sY)(null,t),!0)}function Y(t){return t&&(t.base||1===t.nodeType&&t)||null}var G=function(t,e){return t(e)},K=function(t,e){return t(e)},J=r.HY;function X(t){t()}function Q(t){return t}function Z(){return[!1,X]}var tt=o.bt;function et(t,e){var n=e(),r=(0,o.eJ)({h:{__:n,v:e}}),i=r[0].h,a=r[1];return(0,o.bt)((function(){i.__=n,i.v=e,s(i.__,e())||a({h:i})}),[t,n,e]),(0,o.d4)((function(){return s(i.__,i.v())||a({h:i}),t((function(){s(i.__,i.v())||a({h:i})}))}),[t]),n}var nt={useState:o.eJ,useId:o.Me,useReducer:o._Y,useEffect:o.d4,useLayoutEffect:o.bt,useInsertionEffect:tt,useTransition:Z,useDeferredValue:Q,useSyncExternalStore:et,startTransition:X,useRef:o.sO,useImperativeHandle:o.aP,useMemo:o.Ye,useCallback:o.I4,useContext:o.qp,useDebugValue:o.Qb,version:"17.0.2",Children:h,render:k,hydrate:P,unmountComponentAtNode:W,createPortal:E,createElement:r.az,createContext:r.kr,createFactory:$,cloneElement:q,createRef:r.Vf,Fragment:r.HY,isValidElement:V,findDOMNode:Y,Component:r.wA,PureComponent:c,memo:l,forwardRef:p,flushSync:K,unstable_batchedUpdates:G,StrictMode:J,Suspense:b,SuspenseList:x,lazy:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:B}},6400:function(t,e,n){"use strict";n.d(e,{HY:function(){return m},Tm:function(){return F},Vf:function(){return y},YM:function(){return o},ZB:function(){return U},az:function(){return h},bR:function(){return C},kr:function(){return z},sY:function(){return L},wA:function(){return g}});var r,o,i,a,s,c,l={},u=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var n in e)t[n]=e[n];return t}function d(t){var e=t.parentNode;e&&e.removeChild(t)}function h(t,e,n){var o,i,a,s={};for(a in e)"key"==a?o=e[a]:"ref"==a?i=e[a]:s[a]=e[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return v(t,s,o,i,null)}function v(t,e,n,r,a){var s={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==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function y(){return{current:null}}function m(t){return t.children}function g(t,e){this.props=t,this.context=e}function b(t,e){if(null==e)return t.__?b(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?b(t):null}function _(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 _(t)}}function w(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!x.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||setTimeout)(x)}function x(){for(var t;x.__r=a.length;)t=a.sort((function(t,e){return t.__v.__b-e.__v.__b})),a=[],t.some((function(t){var e,n,r,o,i,a;t.__d&&(i=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,k(a,o,r,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),P(n,o),o.__e!=i&&_(o)))}))}function S(t,e,n,r,o,i,a,s,c,f){var p,d,h,y,g,_,w,x=r&&r.__k||u,S=x.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(y=n.__k[p]=null==(y=e[p])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?v(null,y,null,null,y):Array.isArray(y)?v(m,{children:y},null,null,null):y.__b>0?v(y.type,y.props,y.key,y.ref?y.ref:null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(h=x[p])||h&&y.key==h.key&&y.type===h.type)x[p]=void 0;else for(d=0;d<S;d++){if((h=x[d])&&y.key==h.key&&y.type===h.type){x[d]=void 0;break}h=null}k(t,y,h=h||l,o,i,a,s,c,f),g=y.__e,(d=y.ref)&&h.ref!=d&&(w||(w=[]),h.ref&&w.push(h.ref,null,y),w.push(d,y.__c||g,y)),null!=g?(null==_&&(_=g),"function"==typeof y.type&&y.__k===h.__k?y.__d=c=O(y,c,t):c=E(t,y,h,x,g,c),"function"==typeof n.type&&(n.__d=c)):c&&h.__e==c&&c.parentNode!=t&&(c=b(h))}for(n.__e=_,p=S;p--;)null!=x[p]&&M(x[p],x[p]);if(w)for(p=0;p<w.length;p++)R(w[p],w[++p],w[++p])}function O(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?O(r,e,n):E(n,r,r,o,r.__e,e));return e}function C(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){C(t,e)})):e.push(t)),e}function E(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+=1)if(s==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function T(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||f.test(e)?n:n+"px"}function A(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||T(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||T(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?I:j,i):t.removeEventListener(e,i?I:j,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&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,n))}}function j(t){this.l[t.type+!1](o.event?o.event(t):t)}function I(t){this.l[t.type+!0](o.event?o.event(t):t)}function k(t,e,n,r,i,a,s,c,l){var u,f,d,h,v,y,b,_,w,x,O,C,E,T,A,j=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(l=n.__h,c=e.__e=n.__e,e.__h=null,a=[c]),(u=o.__b)&&u(e);try{t:if("function"==typeof j){if(_=e.props,w=(u=j.contextType)&&r[u.__c],x=u?w?w.props.value:u.__:r,n.__c?b=(f=e.__c=n.__c).__=f.__E:("prototype"in j&&j.prototype.render?e.__c=f=new j(_,x):(e.__c=f=new g(_,x),f.constructor=j,f.render=D),w&&w.sub(f),f.props=_,f.state||(f.state={}),f.context=x,f.__n=r,d=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=j.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,j.getDerivedStateFromProps(_,f.__s))),h=f.props,v=f.state,d)null==j.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==j.getDerivedStateFromProps&&_!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(_,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(_,f.__s,x)||e.__v===n.__v){for(f.props=_,f.state=f.__s,e.__v!==n.__v&&(f.__d=!1),f.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),O=0;O<f._sb.length;O++)f.__h.push(f._sb[O]);f._sb=[],f.__h.length&&s.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(_,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,v,y)}))}if(f.context=x,f.props=_,f.__v=e,f.__P=t,C=o.__r,E=0,"prototype"in j&&j.prototype.render){for(f.state=f.__s,f.__d=!1,C&&C(e),u=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do{f.__d=!1,C&&C(e),u=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++E<25);f.state=f.__s,null!=f.getChildContext&&(r=p(p({},r),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(y=f.getSnapshotBeforeUpdate(h,v)),A=null!=u&&u.type===m&&null==u.key?u.props.children:u,S(t,Array.isArray(A)?A:[A],e,n,r,i,a,s,c,l),f.base=e.__e,e.__h=null,f.__h.length&&s.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=N(n.__e,e,n,r,i,a,s,l);(u=o.diffed)&&u(e)}catch(t){e.__v=null,(l||null!=a)&&(e.__e=c,e.__h=!!l,a[a.indexOf(c)]=null),o.__e(t,e,n)}}function P(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function N(t,e,n,o,i,a,s,c){var u,f,p,h=n.props,v=e.props,y=e.type,m=0;if("svg"===y&&(i=!0),null!=a)for(;m<a.length;m++)if((u=a[m])&&"setAttribute"in u==!!y&&(y?u.localName===y:3===u.nodeType)){t=u,a[m]=null;break}if(null==t){if(null===y)return document.createTextNode(v);t=i?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,v.is&&v),a=null,c=!1}if(null===y)h===v||c&&t.data===v||(t.data=v);else{if(a=a&&r.call(t.childNodes),f=(h=n.props||l).dangerouslySetInnerHTML,p=v.dangerouslySetInnerHTML,!c){if(null!=a)for(h={},m=0;m<t.attributes.length;m++)h[t.attributes[m].name]=t.attributes[m].value;(p||f)&&(p&&(f&&p.__html==f.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||A(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]||A(t,i,e[i],n[i],r)}(t,v,h,i,c),p)e.__k=[];else if(m=e.props.children,S(t,Array.isArray(m)?m:[m],e,n,o,i&&"foreignObject"!==y,a,s,a?a[0]:n.__k&&b(n,0),c),null!=a)for(m=a.length;m--;)null!=a[m]&&d(a[m]);c||("value"in v&&void 0!==(m=v.value)&&(m!==t.value||"progress"===y&&!m||"option"===y&&m!==h.value)&&A(t,"value",m,h.value,!1),"checked"in v&&void 0!==(m=v.checked)&&m!==t.checked&&A(t,"checked",m,h.checked,!1))}return t}function R(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function M(t,e,n){var r,i;if(o.unmount&&o.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||R(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){o.__e(t,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&M(r[i],e,n||"function"!=typeof t.type);n||null==t.__e||d(t.__e),t.__=t.__e=t.__d=void 0}function D(t,e,n){return this.constructor(t,n)}function L(t,e,n){var i,a,s;o.__&&o.__(t,e),a=(i="function"==typeof n)?null:n&&n.__k||e.__k,s=[],k(e,t=(!i&&n||e).__k=h(m,null,[t]),a||l,l,void 0!==e.ownerSVGElement,!i&&n?[n]:a?null:e.firstChild?r.call(e.childNodes):null,s,!i&&n?n:a?a.__e:e.firstChild,i),P(s,t)}function U(t,e){L(t,e,U)}function F(t,e,n){var o,i,a,s=p({},t.props);for(a in e)"key"==a?o=e[a]:"ref"==a?i=e[a]:s[a]=e[a];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),v(t.type,s,o||t.key,i||t.ref,null)}function z(t,e){var n={__c:e="__cC"+c++,__: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(w)},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}r=u.slice,o={__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}},i=0,g.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof t&&(t=t(p({},n),this.props)),t&&p(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),w(this))},g.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),w(this))},g.prototype.render=m,a=[],x.__r=0,c=0},396:function(t,e,n){"use strict";n.d(e,{I4:function(){return O},Me:function(){return A},Qb:function(){return E},Ye:function(){return S},_Y:function(){return g},aP:function(){return x},bt:function(){return _},cO:function(){return T},d4:function(){return b},eJ:function(){return m},qp:function(){return C},sO:function(){return w}});var r,o,i,a,s=n(6400),c=0,l=[],u=[],f=s.YM.__b,p=s.YM.__r,d=s.YM.diffed,h=s.YM.__c,v=s.YM.unmount;function y(t,e){s.YM.__h&&s.YM.__h(o,t,c||e),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:u}),n.__[t]}function m(t){return c=1,g(M,t)}function g(t,e,n){var i=y(r++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):M(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){o.u=!0;var a=o.shouldComponentUpdate;o.shouldComponentUpdate=function(t,e,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!a||a.call(this,t,e,n);var o=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(o=!0)}})),!(!o&&i.__c.props===t)&&(!a||a.call(this,t,e,n))}}return i.__N||i.__}function b(t,e){var n=y(r++,3);!s.YM.__s&&R(n.__H,e)&&(n.__=t,n.i=e,o.__H.__h.push(n))}function _(t,e){var n=y(r++,4);!s.YM.__s&&R(n.__H,e)&&(n.__=t,n.i=e,o.__h.push(n))}function w(t){return c=5,S((function(){return{current:t}}),[])}function x(t,e,n){c=6,_((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function S(t,e){var n=y(r++,7);return R(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function O(t,e){return c=8,S((function(){return t}),e)}function C(t){var e=o.context[t.__c],n=y(r++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(o)),e.props.value):t.__}function E(t,e){s.YM.useDebugValue&&s.YM.useDebugValue(e?e(t):t)}function T(t){var e=y(r++,10),n=m();return e.__=t,o.componentDidCatch||(o.componentDidCatch=function(t,r){e.__&&e.__(t,r),n[1](t)}),[n[0],function(){n[1](void 0)}]}function A(){var t=y(r++,11);if(!t.__){for(var e=o.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function j(){for(var t;t=l.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(P),t.__H.__h.forEach(N),t.__H.__h=[]}catch(e){t.__H.__h=[],s.YM.__e(e,t.__v)}}s.YM.__b=function(t){o=null,f&&f(t)},s.YM.__r=function(t){p&&p(t),r=0;var e=(o=t.__c).__H;e&&(i===o?(e.__h=[],o.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=u,t.__N=t.i=void 0}))):(e.__h.forEach(P),e.__h.forEach(N),e.__h=[])),i=o},s.YM.diffed=function(t){d&&d(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==l.push(e)&&a===s.YM.requestAnimationFrame||((a=s.YM.requestAnimationFrame)||k)(j)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==u&&(t.__=t.__V),t.i=void 0,t.__V=u}))),i=o=null},s.YM.__c=function(t,e){e.some((function(t){try{t.__h.forEach(P),t.__h=t.__h.filter((function(t){return!t.__||N(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],s.YM.__e(n,t.__v)}})),h&&h(t,e)},s.YM.unmount=function(t){v&&v(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{P(t)}catch(t){e=t}})),n.__H=void 0,e&&s.YM.__e(e,n.__v))};var I="function"==typeof requestAnimationFrame;function k(t){var e,n=function(){clearTimeout(r),I&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);I&&(e=requestAnimationFrame(n))}function P(t){var e=o,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),o=e}function N(t){var e=o;t.__c=t.__(),o=e}function R(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function M(t,e){return"function"==typeof e?e(t):e}},5798: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}},129:function(t,e,n){"use strict";var r=n(8261),o=n(5235),i=n(5798);t.exports={formats:i,parse:o,stringify:r}},5235:function(t,e,n){"use strict";var r=n(2769),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},l=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,u=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&null!==(s=a.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),function(t,e,n,r){for(var o=r?e:c(e,n),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=o:"__proto__"!==l&&(a[l]=o):a={0:o}}o=a}return o}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return a;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?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,l={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,p=u.split(e.delimiter,f),d=-1,h=e.charset;if(e.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?h="utf-8":"utf8=%26%2310003%3B"===p[n]&&(h="iso-8859-1"),d=n,n=p.length);for(n=0;n<p.length;++n)if(n!==d){var v,y,m=p[n],g=m.indexOf("]="),b=-1===g?m.indexOf("="):g+1;-1===b?(v=e.decoder(m,a.decoder,h,"key"),y=e.strictNullHandling?null:""):(v=e.decoder(m.slice(0,b),a.decoder,h,"key"),y=r.maybeMap(c(m.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,h,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(y)),m.indexOf("[]=")>-1&&(y=i(y)?[y]:y),o.call(l,v)?l[v]=r.combine(l[v],y):l[v]=y}return l}(t,n):t,f=n.plainObjects?Object.create(null):{},p=Object.keys(u),d=0;d<p.length;++d){var h=p[d],v=l(h,u[h],n,"string"==typeof t);f=r.merge(f,v,n)}return!0===n.allowSparse?f:r.compact(f)}},8261:function(t,e,n){"use strict";var r=n(7478),o=n(2769),i=n(5798),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,l=String.prototype.split,u=Array.prototype.push,f=function(t,e){u.apply(t,c(e)?e:[e])},p=Date.prototype.toISOString,d=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1},v={},y=function t(e,n,i,a,s,u,p,d,y,m,g,b,_,w,x,S){for(var O,C=e,E=S,T=0,A=!1;void 0!==(E=E.get(v))&&!A;){var j=E.get(e);if(T+=1,void 0!==j){if(j===T)throw new RangeError("Cyclic object value");A=!0}void 0===E.get(v)&&(T=0)}if("function"==typeof d?C=d(n,C):C instanceof Date?C=g(C):"comma"===i&&c(C)&&(C=o.maybeMap(C,(function(t){return t instanceof Date?g(t):t}))),null===C){if(s)return p&&!w?p(n,h.encoder,x,"key",b):n;C=""}if("string"==typeof(O=C)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||o.isBuffer(C)){if(p){var I=w?n:p(n,h.encoder,x,"key",b);if("comma"===i&&w){for(var k=l.call(String(C),","),P="",N=0;N<k.length;++N)P+=(0===N?"":",")+_(p(k[N],h.encoder,x,"value",b));return[_(I)+(a&&c(C)&&1===k.length?"[]":"")+"="+P]}return[_(I)+"="+_(p(C,h.encoder,x,"value",b))]}return[_(n)+"="+_(String(C))]}var R,M=[];if(void 0===C)return M;if("comma"===i&&c(C))R=[{value:C.length>0?C.join(",")||null:void 0}];else if(c(d))R=d;else{var D=Object.keys(C);R=y?D.sort(y):D}for(var L=a&&c(C)&&1===C.length?n+"[]":n,U=0;U<R.length;++U){var F=R[U],z="object"==typeof F&&void 0!==F.value?F.value:C[F];if(!u||null!==z){var B=c(C)?"function"==typeof i?i(L,F):L:L+(m?"."+F:"["+F+"]");S.set(e,T);var H=r();H.set(v,S),f(M,t(z,B,i,a,s,u,p,d,y,m,g,b,_,w,x,H))}}return M};t.exports=function(t,e){var n,o=t,l=function(t){if(!t)return h;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||h.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=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],o=h.filter;return("function"==typeof t.filter||c(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof l.filter?o=(0,l.filter)("",o):c(l.filter)&&(n=l.filter);var u,p=[];if("object"!=typeof o||null===o)return"";u=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=s[u];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var v="comma"===d&&e&&e.commaRoundTrip;n||(n=Object.keys(o)),l.sort&&n.sort(l.sort);for(var m=r(),g=0;g<n.length;++g){var b=n[g];l.skipNulls&&null===o[b]||f(p,y(o[b],b,d,v,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,m))}var _=p.join(l.delimiter),w=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),_.length>0?w+_:""}},2769:function(t,e,n){"use strict";var r=n(5798),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(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],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:a,prop:l}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(i(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,o,i){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;++l){var u=s.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?c+=s.charAt(l):u<128?c+=a[u]:u<2048?c+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?c+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(l)),c+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return c},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(i(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){if(!n)return e;if("object"!=typeof n){if(i(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var a=e;return i(e)&&!i(n)&&(a=s(e,r)),i(e)&&i(n)?(n.forEach((function(n,i){if(o.call(e,i)){var a=e[i];a&&"object"==typeof a&&n&&"object"==typeof n?e[i]=t(a,n,r):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var a=n[i];return o.call(e,i)?e[i]=t(e[i],a,r):e[i]=a,e}),a)}}},9921:function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case u:case f:case i:case s:case a:case d:return t;default:switch(t=t&&t.$$typeof){case l:case p:case y:case v:case c:return t;default:return e}}case o:return e}}}function x(t){return w(t)===f}e.AsyncMode=u,e.ConcurrentMode=f,e.ContextConsumer=l,e.ContextProvider=c,e.Element=r,e.ForwardRef=p,e.Fragment=i,e.Lazy=y,e.Memo=v,e.Portal=o,e.Profiler=s,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(t){return x(t)||w(t)===u},e.isConcurrentMode=x,e.isContextConsumer=function(t){return w(t)===l},e.isContextProvider=function(t){return w(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return w(t)===p},e.isFragment=function(t){return w(t)===i},e.isLazy=function(t){return w(t)===y},e.isMemo=function(t){return w(t)===v},e.isPortal=function(t){return w(t)===o},e.isProfiler=function(t){return w(t)===s},e.isStrictMode=function(t){return w(t)===a},e.isSuspense=function(t){return w(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===f||t===s||t===a||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===c||t.$$typeof===l||t.$$typeof===p||t.$$typeof===g||t.$$typeof===b||t.$$typeof===_||t.$$typeof===m)},e.typeOf=w},9864:function(t,e,n){"use strict";t.exports=n(9921)},8359:function(t,e){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},2973:function(t,e,n){"use strict";n(8359)},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),f=o("WeakMap.prototype.has",!0),p=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 p(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 f(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}},3250:function(t,e,n){"use strict";var r=n(8661),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(t){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=i({inst:{value:n,getSnapshot:e}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=e,l(o)&&u({inst:o})}),[t,n,e]),a((function(){return l(o)&&u({inst:o}),t((function(){l(o)&&u({inst:o})}))}),[t]),c(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:function(t,e,n){"use strict";var r=n(8661),o=n(1688),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=o.useSyncExternalStore,s=r.useRef,c=r.useEffect,l=r.useMemo,u=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,o){var f=s(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=l((function(){function t(t){if(!c){if(c=!0,a=t,t=r(t),void 0!==o&&p.hasValue){var e=p.value;if(o(e,t))return s=e}return s=t}if(e=s,i(a,t))return e;var n=r(t);return void 0!==o&&o(e,n)?e:(a=t,s=n)}var a,s,c=!1,l=void 0===n?null:n;return[function(){return t(e())},null===l?void 0:function(){return t(l())}]}),[e,n,r,o]);var d=a(t,f[0],f[1]);return c((function(){p.hasValue=!0,p.value=d}),[d]),u(d),d}},1688:function(t,e,n){"use strict";t.exports=n(3250)},2798:function(t,e,n){"use strict";t.exports=n(139)},4654:function(){},3695:function(){},5110:function(t,e,n){t.exports=n(7698)},8309:function(t,e,n){t.exports=n(3363)},586:function(t,e,n){t.exports=n(7784)},1189:function(t,e,n){t.exports=n(8196)},9022:function(t,e,n){t.exports=n(8065)},2250:function(t,e,n){t.exports=n(9455)},2320:function(t,e,n){t.exports=n(9743)},4418:function(t,e,n){t.exports=n(1955)},2373:function(t,e,n){t.exports=n(6064)},1679:function(t,e,n){t.exports=n(1577)},3356:function(t,e,n){t.exports=n(4913)},86:function(t,e,n){t.exports=n(6279)},8118:function(t,e,n){t.exports=n(3778)},1882:function(t,e,n){t.exports=n(9373)},7606:function(t,e,n){t.exports=n(1798)},4282:function(t,e,n){t.exports=n(2527)},1459:function(t,e,n){t.exports=n(8427)},4278:function(t,e,n){t.exports=n(2073)},2039:function(t,e,n){t.exports=n(5286)},2578:function(t,e,n){t.exports=n(2856)},9940:function(t,e,n){t.exports=n(2348)},1607:function(t,e,n){t.exports=n(6361)},5627:function(t,e,n){t.exports=n(8933)},4157:function(t,e,n){t.exports=n(5838)},6986:function(t,e,n){t.exports=n(3383)},9747:function(t,e,n){t.exports=n(7396)},6718:function(t,e,n){t.exports=n(1910)},2018:function(t,e,n){t.exports=n(6209)},8446:function(t,e,n){t.exports=n(9427)},6870:function(t,e,n){t.exports=n(2857)},222:function(t,e,n){t.exports=n(9534)},8922:function(t,e,n){t.exports=n(6507)},8222:function(t,e,n){t.exports=n(3059)},3665:function(t,e,n){t.exports=n(7795)},2357:function(t,e,n){t.exports=n(6877)},40:function(t,e,n){t.exports=n(4888)},6226:function(t,e,n){t.exports=n(7460)},7293:function(t,e,n){t.exports=n(3474)},7198:function(t,e,n){t.exports=n(7989)},7724:function(t,e,n){t.exports=n(5519)},3733:function(t,e,n){t.exports=n(2547)},8886:function(t,e,n){t.exports=n(2010)},9030:function(t,e,n){t.exports=n(3726)},9389:function(t,e,n){t.exports=n(2209)},8216:function(t,e,n){t.exports=n(4122)},1791:function(t,e,n){t.exports=n(9447)},7552:function(t,e,n){t.exports=n(269)},7445:function(t,e,n){t.exports=n(3685)},2020:function(t,e,n){t.exports=n(4710)},2079:function(t,e,n){t.exports=n(3799)},2472:function(t,e,n){t.exports=n(6600)},8994:function(t,e,n){t.exports=n(9759)},24:function(t,e,n){t.exports=n(1384)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](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 Ie},AgentInfo:function(){return Wp},Chat:function(){return nf},ChatFrame:function(){return Cp},ComponentFilter:function(){return Ou},Conversation:function(){return Yu},DeprecatedToggleButton:function(){return qp},DeprecatedView:function(){return nd},Engine:function(){return Fp},EntryContainer:function(){return mp},EventParticipant:function(){return Tc},ExternalApi:function(){return Vp},Header:function(){return Yp},Icon:function(){return $c},Interrupt:function(){return Ep},MessageContainer:function(){return kc},SeamlyApiContext:function(){return nn},SeamlyEventBusContext:function(){return rn},SeamlyGeneralError:function(){return lt},SeamlyLiveRegionContext:function(){return Us},SeamlyOfflineError:function(){return ga},SeamlyStoreProvider:function(){return Ge},Text:function(){return uu},View:function(){return Rp},calculateVisibility:function(){return Yo},className:function(){return Ec},default:function(){return od},eventTypes:function(){return on},randomId:function(){return kt},useChoicePrompt:function(){return el},useEvents:function(){return Uo},useGeneratedId:function(){return mc},useI18n:function(){return Ls},useSeamlyActions:function(){return rd},useSeamlyChat:function(){return zs},useSeamlyCommands:function(){return ms},useSeamlyConfig:function(){return Po},useSeamlyEventStream:function(){return bc},useSeamlyIdleDetachCountdown:function(){return vc},useSeamlyMessageContainerClassNames:function(){return Gs},useSeamlyOptions:function(){return lc},useSeamlyVisibility:function(){return ls},useTranslatedEventData:function(){return wc},useTranslations:function(){return _c},useTranslationsContainer:function(){return xc},visibilityStates:function(){return Io}});var t=n(8309),e=n.n(t),o=n(1189),i=n.n(o),a=n(222),s=n.n(a),c=n(8446),l=n.n(c),u=n(6870),f=n.n(u),p=n(9747),d=n.n(p),h=n(6718),v=n.n(h),y=n(7445),m=n(2472),g=n(8994);function b(t){return b="function"==typeof m&&"symbol"==typeof g?function(t){return typeof t}:function(t){return t&&"function"==typeof m&&t.constructor===m&&t!==m.prototype?"symbol":typeof t},b(t)}var _=n(24);function w(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==b(t)||null===t)return t;var n=t[_];if(void 0!==n){var r=n.call(t,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===b(e)?e:String(e)}(e))in t?y(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x=n(7606),S=n.n(x),O=n(4418),C=n.n(O),E=n(86),T=n.n(E),A=n(8222),j=n.n(A),I=n(8118),k=n.n(I),P=n(3665),N=n.n(P),R=n(2039),M=n.n(R),D=n(2018),L=n.n(D),U=n(6400),F=0;function z(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:--F,__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.YM.vnode&&U.YM.vnode(c),c}var B=n(6226),H=n.n(B),$=n(1882),V=n.n($),q=n(6986),W=n.n(q),Y=n(8886),G=n.n(Y),K=n(9030),J=n.n(K),X=n(4282),Q=n.n(X),Z=n(8158),tt=n.n(Z);const et="cvco",nt="2",rt="seamly-client-participant",ot=300;var it=n(8922),at=n.n(it);class st extends Error{action="";langKey="";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];if(super(...n),Error.captureStackTrace&&Error.captureStackTrace(this,at()(this)),this.originalError=t,t?.payload&&(this.originalEvent=t,this.originalError=t.payload.error,this.message=`Event of type ${t.payload.type} encountered`),!this.message&&t?.message){const e=function(t){try{return JSON.parse(t).error}catch(e){return t}}(t.message);this.message=e}t?.error&&(this.originalError=t.error)}}class ct extends st{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 lt extends st{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 ut extends st{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"}}class ft extends st{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"}}var pt=n(7198),dt=n.n(pt),ht=n(2357),vt=n.n(ht);const yt=(t,e)=>{let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a=!1;return clearTimeout(n),n=dt()((()=>{n=null,a||t.apply(this,o),a=!1}),e),e=>{a=!0,e&&t.apply(this,o)}}},mt=t=>Math.ceil(t/1e3),gt=t=>{const e=Math.floor(t/60);return{minutes:e,seconds:t-60*e}},bt=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`${vt()((t/n**i).toFixed(r))} ${o[i]}`},_t={27:"Escape",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown"},wt={Escape:"Escape",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"},xt=t=>t.code?wt[t.code]:_t[t.keyCode],St=t=>{t&&t.focus()},Ot=(t,e)=>{t&&(t.contains(document.activeElement)||t===document.activeElement)&&e()};var Ct=n(1905),Et=n.n(Ct),Tt=n(4278),At=n.n(Tt),jt=n(586),It=n.n(jt);function kt(){var t;return`_${(Number(At()(t=String(Math.random())).call(t,2))+It()()+Math.round(performance.now())).toString(36)}`}var Pt=n(5627),Nt=n.n(Pt);function Rt(t){const e=`cvco.${t}`;return{get(){var t;const n=[e,At()(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,Nt()(t))}}}var Mt=t=>"function"==typeof t?t:function(){return t},Dt="undefined"!=typeof self?self:null,Lt="undefined"!=typeof window?window:null,Ut=Dt||Lt||Ut,Ft="closed",zt="errored",Bt="joined",Ht="joining",$t="leaving",Vt="phx_close",qt="phx_error",Wt="phx_reply",Yt="phx_leave",Gt="websocket",Kt=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({status:t,response:e,_ref:n}){this.recHooks.filter((e=>e.status===t)).forEach((t=>t.callback(e)))}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=setTimeout((()=>{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})}},Jt=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=setTimeout((()=>{this.tries=this.tries+1,this.callback()}),this.timerCalc(this.tries+1))}},Xt=class{static request(t,e,n,r,o,i,a){if(Ut.XDomainRequest){let n=new Ut.XDomainRequest;return this.xdomainRequest(n,t,e,r,o,i,a)}{let s=new Ut.XMLHttpRequest;return this.xhrRequest(s,t,e,n,r,o,i,a)}}static xdomainRequest(t,e,n,r,o,i,a){return 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),t}static xhrRequest(t,e,n,r,o,i,a,s){return 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),t}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===Object.keys(e).length)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}},Qt=class{constructor(t){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,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("(.*)/"+Gt),"$1/longpoll")}endpointURL(){return Xt.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,n){this.close(t,e,n),this.readyState=0}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return 1===this.readyState||0===this.readyState}poll(){this.ajax("GET",null,(()=>this.ontimeout()),(t=>{if(t){var{status:e,token:n,messages:r}=t;this.token=n}else e=0;switch(e){case 200:r.forEach((t=>{setTimeout((()=>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(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${e}`)}}))}send(t){this.ajax("POST",t,(()=>this.onerror("timeout")),(t=>{t&&200===t.status||(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1))}))}close(t,e,n){for(let t of this.reqs)t.abort();this.readyState=3;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:n});"undefined"!=typeof CloseEvent?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(t,e,n,r){let o;o=Xt.request(t,this.endpointURL(),"application/json",e,this.timeout,(()=>{this.reqs.delete(o),n()}),(t=>{this.reqs.delete(o),this.isActive()&&r(t)})),this.reqs.add(o)}},Zt={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(JSON.stringify(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),Array.from(e,(t=>c.setUint8(l++,t.charCodeAt(0)))),Array.from(n,(t=>c.setUint8(l++,t.charCodeAt(0)))),Array.from(o,(t=>c.setUint8(l++,t.charCodeAt(0)))),Array.from(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(t.slice(a,a+r));a+=r;let c=n.decode(t.slice(a,a+o));a+=o;let l=n.decode(t.slice(a,a+i));return a+=i,{join_ref:s,ref:null,topic:c,event:l,payload:t.slice(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(t.slice(s,s+r));s+=r;let l=n.decode(t.slice(s,s+o));s+=o;let u=n.decode(t.slice(s,s+i));s+=i;let f=n.decode(t.slice(s,s+a));s+=a;let p=t.slice(s,t.byteLength);return{join_ref:c,ref:l,topic:u,event:Wt,payload:{status:f,response:p}}},decodeBroadcast(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=this.HEADER_LENGTH+2,a=n.decode(t.slice(i,i+r));i+=r;let s=n.decode(t.slice(i,i+o));return i+=o,{join_ref:null,ref:null,topic:a,event:s,payload:t.slice(i,t.byteLength)}}};function te(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=te(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=te(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var ne,re,oe,ie,ae=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},se=function(t,e,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,n):o?o.value=n:e.set(t,n),n};const ce=Et()("seamly");class le{constructor(){ne.add(this),re.set(this,[])}connect(t,e,n,r){return function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){this.url=t,this.accessToken=r,this.channelName=e,this.channelTopic=n;const{url:o,params:i}=(t=>{var e;const n=V()(t).call(t,"?");return n<0?{url:t,params:{}}:{url:At()(t).call(t,0,n),params:Q()(e=At()(t).call(t,n+1).split("&")).call(e,(function(t,e){const[n,r]=e.split("=");return ee(ee({},t),{},{[n]:decodeURIComponent(r)})}),{})}})(this.url);this.socket=new class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=e.timeout||1e4,this.transport=e.transport||Ut.WebSocket||Qt,this.establishedConnections=0,this.defaultEncoder=Zt.encode.bind(Zt),this.defaultDecoder=Zt.decode.bind(Zt),this.closeWasClean=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Qt?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;Lt&&Lt.addEventListener&&(Lt.addEventListener("pagehide",(t=>{this.conn&&(this.disconnect(),n=this.connectClock)})),Lt.addEventListener("pageshow",(t=>{n===this.connectClock&&(n=null,this.connect())}))),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=t=>e.rejoinAfterMs?e.rejoinAfterMs(t):[1e3,2e3,5e3][t-1]||1e4,this.reconnectAfterMs=t=>e.reconnectAfterMs?e.reconnectAfterMs(t):[10,50,100,150,200,250,500,1e3,2e3][t-1]||5e3,this.logger=e.logger||null,this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=Mt(e.params||{}),this.endPoint=`${t}/${Gt}`,this.vsn=e.vsn||"2.0.0",this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Jt((()=>{this.teardown((()=>this.connect()))}),this.reconnectAfterMs)}getLongPollTransport(){return Qt}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Xt.appendParams(Xt.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){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Mt(t)),this.conn||(this.connectClock++,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}ping(t){if(!this.isConnected())return!1;let e=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let r=this.onMessage((o=>{o.ref===e&&(this.off([r]),t(Date.now()-n))}));return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach((([,t])=>t()))}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown((()=>this.reconnectTimer.scheduleTimeout()),1e3,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout((()=>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.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()}))}))}waitForBufferDone(t,e=1){5!==e&&this.conn&&this.conn.bufferedAmount?setTimeout((()=>{this.waitForBufferDone(t,e+1)}),150*e):t()}waitForSocketClosed(t,e=1){5!==e&&this.conn&&3!==this.conn.readyState?setTimeout((()=>{this.waitForSocketClosed(t,e+1)}),150*e):t()}onConnClose(t){let e=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||1e3===e||this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach((([,e])=>e(t)))}onConnError(t){this.hasLogger()&&this.log("transport",t);let e=this.transport,n=this.establishedConnections;this.stateChangeCallbacks.error.forEach((([,r])=>{r(t,e,n)})),(e===this.transport||n>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach((t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(qt)}))}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){this.off(t.stateChangeRefs),this.channels=this.channels.filter((e=>e.joinRef()!==t.joinRef()))}off(t){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter((([e])=>-1===t.indexOf(e)))}channel(t,e={}){let n=new class{constructor(t,e,n){this.state=Ft,this.topic=t,this.params=Mt(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Kt(this,"phx_join",this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Jt((()=>{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",(()=>{this.state=Bt,this.rejoinTimer.reset(),this.pushBuffer.forEach((t=>t.send())),this.pushBuffer=[]})),this.joinPush.receive("error",(()=>{this.state=zt,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=Ft,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=zt,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 Kt(this,Yt,Mt({}),this.timeout).send(),this.state=zt,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.on(Wt,((t,e)=>{this.trigger(this.replyEventName(e),t)}))}join(t=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(Vt,t)}onError(t){return this.on(qt,(e=>t(e)))}on(t,e){let n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}off(t,e){this.bindings=this.bindings.filter((n=>!(n.event===t&&(void 0===e||e===n.ref))))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,n=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 Kt(this,t,(function(){return e}),n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=$t;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Vt,"leave")},n=new Kt(this,Yt,Mt({}),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(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Ht,this.joinPush.resend(t))}trigger(t,e,n,r){let o=this.onMessage(t,e,n,r);if(e&&!o)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter((e=>e.event===t));for(let t=0;t<i.length;t++)i[t].callback(o,n,r||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===Ft}isErrored(){return this.state===zt}isJoined(){return this.state===Bt}isJoining(){return this.state===Ht}isLeaving(){return this.state===$t}}(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.heartbeatTimeoutTimer=setTimeout((()=>this.heartbeatTimeout()),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach((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&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout((()=>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){let e=this.channels.find((e=>e.topic===t&&(e.isJoined()||e.isJoining())));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}}(o,{params:W()(W()({},i),{v:nt})}),this.socket.connect(),this.channel=this.socket.channel(this.channelTopic,{authorization:`Bearer ${this.accessToken}`,channelName:this.channelName}),this.start(),this.socket.onError((t=>{ce("[SOCKET][ERROR]",t)})),this.socket.onOpen((()=>{ce("[SOCKET]OPEN")})),this.channel.on("system",(t=>{"attach_channel_succeeded"===t.type&&ae(this,ne,"m",ie).call(this,{connected:!0,ready:!0,currentState:"attach_channel_succeeded"})})),this.socket.onClose((()=>{ce("[SOCKET]CLOSE"),ae(this,ne,"m",ie).call(this,{connected:!1,ready:!1,currentState:"socket_closed"})})),this.channel.onClose((()=>{ce("[CHANNEL]CLOSE"),ae(this,ne,"m",ie).call(this,{connected:!1,ready:!1,currentState:"channel_closed"})})),this.channel.onError((t=>{ce("[CHANNEL][ERROR]",t),ae(this,ne,"m",ie).call(this,{connected:!1,ready:!1,currentState:"channel_erred"})})),ae(this,ne,"m",oe).call(this,"ack","ui","error","participant","message","service_data","system","info","sync")}))}start(){this.channel.join().receive("ok",(()=>{ce("[CHANNEL][JOIN] OK"),ae(this,ne,"m",ie).call(this,{connected:!0,ready:!1,currentState:"join_channel_succeeded"})})).receive("error",(t=>{ce("[CHANNEL][JOIN] ERROR",t),ae(this,ne,"m",ie).call(this,{connected:!1,ready:!1,currentState:"join_channel_erred"}),this.channel.socket.disconnect()})).receive("timeout",(()=>{ce("[CHANEL][JOIN] Networking issue. Still waiting...")}))}disconnect(){var t,e,n;null===(t=this.channel)||void 0===t||t.leave(),null===(e=this.socket)||void 0===e||e.remove(this.channel),null===(n=this.socket)||void 0===n||n.disconnect(),se(this,re,[],"f")}onConnection(t){ae(this,re,"f").push(t)}pushToChannel(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;this.channel.push(t,e,n)}}re=new(G()),ne=new(J()),oe=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];T()(e).call(e,(t=>{this.channel.on(t,(e=>{ce("[RECEIVE]",t,e)}))}))},ie=function(t){var e;se(this,re,C()(e=ae(this,re,"f")).call(e,(e=>!e(t))),"f")};var ue,fe,pe,de,he,ve,ye,me,ge,be,_e,we,xe,Se,Oe,Ce=function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},Ee=function(t,e,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,n):o?o.value=n:e.set(t,n),n},Te=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};const Ae=Et()("seamly");function je(){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&&(V()(e).call(e,"/")>-1||"UTC"===e)?e:null}class Ie{constructor(t){let{layoutMode:e,namespace:n,config:r,context:o}=t;var i;ue.add(this),fe.set(this,void 0),pe.set(this,void 0),de.set(this,void 0),he.set(this,void 0),this.conversation=new le,_e.set(this,(t=>t||this.locale)),this.store=function(t,e){const n=e(t),r=n.get()||{};return{get(t){return void 0===t?r:r[t]},set(t,e){return r[t]=e,n.set(r),e},delete(t){const e=this.get(t);return delete r[t],n.set(r),e}}}(`${n}.connection${o.locale?`.${o.locale}`:""}`,r.storageProvider||Rt),this.connectionInfo={apiKey:r.key,domain:r.domain||"api.seamly-app.com",secure:!1!==r.secure&&(r.secure||!0)},Ee(this,he,W()(W()({},r),{sendEnvironment:null===(i=r.sendEnvironment)||void 0===i||i,context:W()(W()({},o),{channelName:o.channelName||"web"})}),"f"),Ee(this,fe,!1,"f"),this.connected=!1,this.configReady=!1,Ee(this,pe,r.externalId,"f"),Ee(this,de,e,"f"),this.userResponded=!1,this.URLS={},window.addEventListener("pageshow",(t=>{t.persisted&&this.connected&&this.connect()}))}getConversationUrl(){return this.store.get("conversationUrl")}hasConversation(){return!!this.getConversationUrl()}clearStore(){this.store.delete("accessToken"),this.store.delete("conversationUrl"),this.store.delete("channelName"),this.store.delete("channelTopic")}reset(){return Ce(this,void 0,void 0,(function*(){return yield this.disconnect(),this.clearStore(),this.getConfig()}))}disconnect(){var t;return Ce(this,void 0,void 0,(function*(){(null===(t=this.conversation)||void 0===t?void 0:t.disconnect)&&this.conversation.disconnect(),this.connected=!1,this.configReady=!1}))}getConfig(){return tt().post(`${Te(this,ue,"m",we).call(this,"http")}/client/${this.connectionInfo.apiKey}/configs`).set("Content-Type","application/json").query({v:nt}).send({context:W()(W()({},Te(this,he,"f").context),{environment:!0===Te(this,he,"f").sendEnvironment?Te(this,ue,"m",Oe).call(this):Te(this,he,"f").sendEnvironment})}).then((t=>{let{body:e}=t;return Te(this,ue,"m",xe).call(this,e),this.configReady=!0,e.config})).catch((t=>{if(404===t.status)throw new ct(t);if(t.status>=500)throw new lt(t);throw t}))}getConversation(){return Ce(this,void 0,void 0,(function*(){if(!this.hasConversation())return null;try{const{body:t}=yield tt().get(`${Te(this,ue,"m",we).call(this,"http")}${this.URLS.history}`).set("Authorization",`Bearer ${Te(this,ue,"m",ve).call(this)}`).query({v:nt});Te(this,ue,"m",xe).call(this,t);const{messages:e,participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,ui:a,translation:s}=t.history;return{events:S()(e).call(e,(t=>{let[e,n]=t;return{type:e,payload:W()(W()({},n),{type:"participant"===e?e:n.type})}})),participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,resumeConversationPrompt:!!a&&Boolean(a.resumeConversationPrompt),translationProposal:a.translationProposal,translation:s}}catch(t){if(401===t.status)throw new ft(t);if(404===t.status)throw new ut(t);if(t.status>=500)throw new lt(t);throw t}}))}connect(){return Ce(this,void 0,void 0,(function*(){this.connected=!1;let t={};return this.hasConversation()||(t=yield Te(this,ue,"m",Se).call(this)),this.conversation.connect(`${Te(this,ue,"m",we).call(this,"ws")}${this.URLS.socket}`,Te(this,he,"f").context.channelName,Te(this,ue,"m",ge).call(this),Te(this,ue,"m",ve).call(this)),this.conversation.onConnection((t=>{let{connected:e,ready:n}=t;this.connected=e,Ee(this,fe,n,"f")})),Te(this,he,"f").sendEnvironment&&this.send("context",{environment:!0===Te(this,he,"f").sendEnvironment?Te(this,ue,"m",Oe).call(this):Te(this,he,"f").sendEnvironment},!1),t}))}uploadFile(t,e,n,r){const o=new FormData;o.append("upload",t);const i=tt().post(`${Te(this,ue,"m",we).call(this,"http")}${this.URLS.uploads}`).set("Authorization",`Bearer ${Te(this,ue,"m",ve).call(this)}`).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 tt().get(`${Te(this,ue,"m",we).call(this,"http")}${this.getConversationUrl()}`).set("Authorization",`Bearer ${Te(this,ue,"m",ve).call(this)}`).query({v:nt}).then((t=>{let{body:e}=t;return Te(this,ue,"m",xe).call(this,e),this.userResponded=e.conversation.userResponded,((t,e)=>{var n;return Q()(n=j()(t)).call(n,((n,r)=>(k()(e).call(e,r)||(n[r]=t[r]),n)),{})})(e.conversation,["accessToken","channelTopic"])})).catch((t=>{if(401===t.status)throw new ft(t);if(404===t.status)throw new ut(t);if(t.status>=500)throw new lt(t);throw t}))}getTranslations(t){return Ce(this,void 0,void 0,(function*(){try{if(!this.URLS.translations)throw new ct;const e=`${Te(this,ue,"m",we).call(this,"http")}${this.URLS.translations}`.replace("{version}",String(2)).replace("{locale}",Te(this,_e,"f").call(this,t)),n=tt().get(e),{body:r}=yield n;return r.translations}catch(t){if(t.status>=500)throw new lt(t);throw t}}))}send(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var r;!this.connected||n&&!Te(this,fe,"f")?null===(r=this.conversation)||void 0===r||r.onConnection((r=>{let{connected:o,ready:i}=r;return this.connected=o,Ee(this,fe,i,"f"),!!(n?i:o)&&(this.send(t,e,n),!0)})):(Ae("[SEND]",t,e),this.conversation.pushToChannel(t,function(t,e){if("message"!==t)return e;const{type:n,body:r}=e;let{transactionId:o}=e;return o||(o=kt()),{type:n,body:r,transactionId:o}}(t,e),1e4))}sendContext(t){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===j()(r).length&&r.constructor===Object||this.send("context",r,!1)}}fe=new(G()),pe=new(G()),de=new(G()),he=new(G()),_e=new(G()),ue=new(J()),ve=function(){return this.store.get("accessToken")},ye=function(t){this.store.set("accessToken",t)},me=function(t){this.store.set("conversationUrl",t)},ge=function(){return this.store.get("channelTopic")||this.store.get("channelName")},be=function(t){this.store.set("channelTopic",t)},we=function(t){return`${this.connectionInfo.secure?`${t}s`:t}://${this.connectionInfo.domain}`},xe=function(t){var e,n;let{_links:r}=t;this.URLS=Q()(e=C()(n=L()(r)).call(n,(t=>{let[e]=t;return"self"!==e}))).call(e,((t,e)=>{let[n,{href:r}]=e;return W()(W()({},t),{[n]:r})}),this.URLS)},Se=function(){var t;return Ce(this,void 0,void 0,(function*(){try{const e=tt().post(`${Te(this,ue,"m",we).call(this,"http")}${this.URLS.conversations}`).set("Content-Type","application/json").query({v:nt}).withCredentials().send({externalId:Te(this,pe,"f")||void 0}),{body:n}=yield e,{conversation:r}=n,o=W()({},r);return delete o.accessToken,delete o.channelTopic,Te(this,ue,"m",ye).call(this,r.accessToken),Te(this,ue,"m",be).call(this,r.channelTopic),Te(this,ue,"m",xe).call(this,n),Te(this,ue,"m",me).call(this,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 lt(t);throw t}}))},Oe=function(){return{clientName:"@seamly/web-ui",clientVariant:Te(this,de,"f"),clientVersion:"21.0.7",currentUrl:window.location.toString(),screenResolution:`${window.screen.width}x${window.screen.height}`,timezone:je(),userAgent:navigator.userAgent,preferredLocale:navigator.language}};var ke=n(679),Pe=n.n(ke),Ne=n(396),Re=n(1688),Me=n(2798),De=n(8661);let Le=function(t){t()};const Ue=()=>Le,Fe=(0,De.createContext)(null);function ze(){return(0,De.useContext)(Fe)}let Be=()=>{throw new Error("uSES not initialized!")};const He=(t,e)=>t===e;function $e(t=Fe){const e=t===Fe?ze:()=>(0,De.useContext)(t);return function(t,n=He){const{store:r,subscription:o,getServerState:i}=e(),a=Be(o.addNestedSub,r.getState,i||r.getState,t,n);return(0,De.useDebugValue)(a),a}}const Ve=$e();n(8679),n(2973);const qe={notify(){},get:()=>[]};const We="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?De.useLayoutEffect:De.useEffect;let Ye=null;var Ge=function({store:t,context:e,children:n,serverState:r}){const o=(0,De.useMemo)((()=>{const e=function(t,e){let n,r=qe;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=e?e.addNestedSub(o):t.subscribe(o),r=function(){const t=Ue();let e=null,n=null;return{clear(){e=null,n=null},notify(){t((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(t){let r=!0,o=n={callback:t,next:null,prev:n};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}const a={addNestedSub:function(t){return i(),r.subscribe(t)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=qe)},getListeners:()=>r};return a}(t);return{store:t,subscription:e,getServerState:r?()=>r:void 0}}),[t,r]),i=(0,De.useMemo)((()=>t.getState()),[t]);We((()=>{const{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[o,i]);const a=e||Fe;return De.default.createElement(a.Provider,{value:o},n)};function Ke(t=Fe){const e=t===Fe?ze:()=>(0,De.useContext)(t);return function(){const{store:t}=e();return t}}const Je=Ke();function Xe(t=Fe){const e=t===Fe?Je:Ke(t);return function(){return e().dispatch}}const Qe=Xe();var Ze;(t=>{Be=t})(Me.useSyncExternalStoreWithSelector),(t=>{Ye=t})(Re.useSyncExternalStore),Ze=De.unstable_batchedUpdates,Le=Ze;var tn=n(1607),en=n.n(tn);const nn=(0,U.kr)(null),rn=(0,U.kr)(null),on={info:"info",message:"message",participant:"participant",system:"system"},an="text",sn="text",cn="upload",ln="received",un="read",fn="custom",pn="typing",dn="read",hn="detach_service",vn="dismiss",yn="set_topic",mn="set_translation",gn="click_cta",bn="translation_proposal",_n=bn,wn="translation_choice",xn="assertive",Sn="polite",On={new_topic:"newTopic",new_translation:"newTranslation"},Cn="uploads",En="navigate";function Tn(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function An(t){return!!t&&!!t[hr]}function jn(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===vr}(t)||Array.isArray(t)||!!t[dr]||!!(null===(e=t.constructor)||void 0===e?void 0:e[dr])||Mn(t)||Dn(t))}function In(t,e,n){void 0===n&&(n=!1),0===kn(t)?(n?Object.keys:yr)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(n,r){return e(r,n,t)}))}function kn(t){var e=t[hr];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Mn(t)?2:Dn(t)?3:0}function Pn(t,e){return 2===kn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Nn(t,e,n){var r=kn(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function Rn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Mn(t){return lr&&t instanceof Map}function Dn(t){return ur&&t instanceof Set}function Ln(t){return t.o||t.t}function Un(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=mr(t);delete e[hr];for(var n=yr(e),r=0;r<n.length;r++){var o=n[r],i=e[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Fn(t,e){return void 0===e&&(e=!1),Bn(t)||An(t)||!jn(t)||(kn(t)>1&&(t.set=t.add=t.clear=t.delete=zn),Object.freeze(t),e&&In(t,(function(t,e){return Fn(e,!0)}),!0)),t}function zn(){Tn(2)}function Bn(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Hn(t){var e=gr[t];return e||Tn(18,t),e}function $n(){return sr}function Vn(t,e){e&&(Hn("Patches"),t.u=[],t.s=[],t.v=e)}function qn(t){Wn(t),t.p.forEach(Gn),t.p=null}function Wn(t){t===sr&&(sr=t.l)}function Yn(t){return sr={p:[],l:sr,h:t,m:!0,_:0}}function Gn(t){var e=t[hr];0===e.i||1===e.i?e.j():e.O=!0}function Kn(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||Hn("ES5").S(e,t,r),r?(n[hr].P&&(qn(e),Tn(4)),jn(t)&&(t=Jn(e,t),e.l||Qn(e,t)),e.u&&Hn("Patches").M(n[hr].t,t,e.u,e.s)):t=Jn(e,n,[]),qn(e),e.u&&e.v(e.u,e.s),t!==pr?t:void 0}function Jn(t,e,n){if(Bn(e))return e;var r=e[hr];if(!r)return In(e,(function(o,i){return Xn(t,r,e,o,i,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return Qn(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Un(r.k):r.o;In(3===r.i?new Set(o):o,(function(e,i){return Xn(t,r,o,e,i,n)})),Qn(t,o,!1),n&&t.u&&Hn("Patches").R(r,n,t.u,t.s)}return r.o}function Xn(t,e,n,r,o,i){if(An(o)){var a=Jn(t,o,i&&e&&3!==e.i&&!Pn(e.D,r)?i.concat(r):void 0);if(Nn(n,r,a),!An(a))return;t.m=!1}if(jn(o)&&!Bn(o)){if(!t.h.F&&t._<1)return;Jn(t,o),e&&e.A.l||Qn(t,o)}}function Qn(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&Fn(e,n)}function Zn(t,e){var n=t[hr];return(n?Ln(n):t)[e]}function tr(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function er(t){t.P||(t.P=!0,t.l&&er(t.l))}function nr(t){t.o||(t.o=Un(t.t))}function rr(t,e,n){var r=Mn(e)?Hn("MapSet").N(e,n):Dn(e)?Hn("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:$n(),P:!1,I:!1,D:{},l:e,t:t,k:null,o:null,j:null,C:!1},o=r,i=br;n&&(o=[r],i=_r);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,n):Hn("ES5").J(e,n);return(n?n.A:$n()).p.push(r),r}function or(t){return An(t)||Tn(22,t),function t(e){if(!jn(e))return e;var n,r=e[hr],o=kn(e);if(r){if(!r.P&&(r.i<4||!Hn("ES5").K(r)))return r.t;r.I=!0,n=ir(e,o),r.I=!1}else n=ir(e,o);return In(n,(function(e,o){r&&function(t,e){return 2===kn(t)?t.get(e):t[e]}(r.t,e)===o||Nn(n,e,t(o))})),3===o?new Set(n):n}(t)}function ir(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Un(t)}var ar,sr,cr="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),lr="undefined"!=typeof Map,ur="undefined"!=typeof Set,fr="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,pr=cr?Symbol.for("immer-nothing"):((ar={})["immer-nothing"]=!0,ar),dr=cr?Symbol.for("immer-draftable"):"__$immer_draftable",hr=cr?Symbol.for("immer-state"):"__$immer_state",vr=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),yr="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,mr=Object.getOwnPropertyDescriptors||function(t){var e={};return yr(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},gr={},br={get:function(t,e){if(e===hr)return t;var n=Ln(t);if(!Pn(n,e))return function(t,e,n){var r,o=tr(e,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!jn(r)?r:r===Zn(t.t,e)?(nr(t),t.o[e]=rr(t.A.h,r,t)):r},has:function(t,e){return e in Ln(t)},ownKeys:function(t){return Reflect.ownKeys(Ln(t))},set:function(t,e,n){var r=tr(Ln(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=Zn(Ln(t),e),i=null==o?void 0:o[hr];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(Rn(n,o)&&(void 0!==n||Pn(t.t,e)))return!0;nr(t),er(t)}return t.o[e]===n&&"number"!=typeof n&&(void 0!==n||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==Zn(t.t,e)||e in t.t?(t.D[e]=!1,nr(t),er(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=Ln(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){Tn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Tn(12)}},_r={};In(br,(function(t,e){_r[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),_r.deleteProperty=function(t,e){return _r.set.call(this,t,e,void 0)},_r.set=function(t,e,n){return br.set.call(this,t[0],e,n,t[0])};var wr=function(){function t(t){var e=this;this.g=fr,this.F=!0,this.produce=function(t,n,r){if("function"==typeof t&&"function"!=typeof n){var o=n;n=t;var i=e;return function(t){var e=this;void 0===t&&(t=o);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(t,(function(t){var r;return(r=n).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof n&&Tn(6),void 0!==r&&"function"!=typeof r&&Tn(7),jn(t)){var s=Yn(e),c=rr(e,t,void 0),l=!0;try{a=n(c),l=!1}finally{l?qn(s):Wn(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Vn(s,r),Kn(t,s)}),(function(t){throw qn(s),t})):(Vn(s,r),Kn(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=n(t))&&(a=t),a===pr&&(a=void 0),e.F&&Fn(a,!0),r){var u=[],f=[];Hn("Patches").M(t,a,u,f),r(u,f)}return a}Tn(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(o))}))};var r,o,i=e.produce(t,n,(function(t,e){r=t,o=e}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,o]})):[i,r,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){jn(t)||Tn(8),An(t)&&(t=or(t));var e=Yn(this),n=rr(this,t,void 0);return n[hr].C=!0,Wn(e),n},e.finishDraft=function(t,e){var n=(t&&t[hr]).A;return Vn(n,e),Kn(void 0,n)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!fr&&Tn(20),this.g=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var o=Hn("Patches").$;return An(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),xr=new wr,Sr=xr.produce,Or=(xr.produceWithPatches.bind(xr),xr.setAutoFreeze.bind(xr),xr.setUseProxies.bind(xr),xr.applyPatches.bind(xr),xr.createDraft.bind(xr),xr.finishDraft.bind(xr),Sr);function Cr(t){return Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(t)}function Er(t){var e=function(t,e){if("object"!==Cr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Cr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Cr(e)?e:String(e)}function Tr(t,e,n){return(e=Er(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ar(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 jr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ar(Object(n),!0).forEach((function(e){Tr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ir(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 kr="function"==typeof Symbol&&Symbol.observable||"@@observable",Pr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Nr={INIT:"@@redux/INIT"+Pr(),REPLACE:"@@redux/REPLACE"+Pr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Pr()}};function Rr(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 Mr(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ir(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ir(1));return n(Mr)(t,e)}if("function"!=typeof t)throw new Error(Ir(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(Ir(3));return i}function f(t){if("function"!=typeof t)throw new Error(Ir(4));if(c)throw new Error(Ir(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(Ir(6));e=!1,l();var n=s.indexOf(t);s.splice(n,1),a=null}}}function p(t){if(!Rr(t))throw new Error(Ir(7));if(void 0===t.type)throw new Error(Ir(8));if(c)throw new Error(Ir(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(Ir(10));o=t,p({type:Nr.REPLACE})}function h(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ir(11));function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[kr]=function(){return this},t}return p({type:Nr.INIT}),(r={dispatch:p,subscribe:f,getState:u,replaceReducer:d})[kr]=h,r}function Dr(){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 Lr(){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(Ir(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(o)}));return r=Dr.apply(void 0,i)(n.dispatch),jr(jr({},n),{},{dispatch:r})}}}function Ur(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 Fr=Ur();Fr.withExtraArgument=Ur;var zr,Br=Fr,Hr=(zr=function(t,e){return zr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},zr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}zr(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),$r=function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},Vr=Object.defineProperty,qr=Object.defineProperties,Wr=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,Gr=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable,Jr=function(t,e,n){return e in t?Vr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Xr=function(t,e){for(var n in e||(e={}))Gr.call(e,n)&&Jr(t,n,e[n]);if(Yr)for(var r=0,o=Yr(e);r<o.length;r++)n=o[r],Kr.call(e,n)&&Jr(t,n,e[n]);return t},Qr=function(t,e){return qr(t,Wr(e))},Zr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Dr:Dr.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var to=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.apply(this,n)||this;return Object.setPrototypeOf(o,e.prototype),o}return Hr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,$r([void 0],t[0].concat(this)))):new(e.bind.apply(e,$r([void 0],t.concat(this))))},e}(Array);function eo(t){return jn(t)?Or(t,(function(){})):t}function no(t){var e,n=function(t){return function(t){void 0===t&&(t={});var e=t.thunk,n=void 0===e||e,r=(t.immutableCheck,t.serializableCheck,new to);return n&&(function(t){return"boolean"==typeof t}(n)?r.push(Br):r.push(Br.withExtraArgument(n.extraArgument))),r}(t)},r=t||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,s=void 0===a?n():a,c=r.devTools,l=void 0===c||c,u=r.preloadedState,f=void 0===u?void 0:u,p=r.enhancers,d=void 0===p?void 0:p;if("function"==typeof i)e=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return e===n}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=function(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:Nr.INIT}))throw new Error(Ir(12));if(void 0===n(void 0,{type:Nr.PROBE_UNKNOWN_ACTION()}))throw new Error(Ir(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],f=l(u,e);if(void 0===f)throw e&&e.type,new Error(Ir(14));o[c]=f,r=r||f!==u}return(r=r||a.length!==Object.keys(t).length)?o:t}}(i)}var h=s;"function"==typeof h&&(h=h(n));var v=Lr.apply(void 0,h),y=Dr;l&&(y=Zr(Xr({trace:!1},"object"==typeof l&&l)));var m=[v];return Array.isArray(d)?m=$r([v],d):"function"==typeof d&&(m=d(m)),Mr(e,f,y.apply(void 0,m))}function ro(t,e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(e){var o=e.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return Xr(Xr({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:n[0]}}return n.toString=function(){return""+t},n.type=t,n.match=function(e){return e.type===t},n}function oo(t){var e,n={},r=[],o={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=e,o},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[n,r,e]}function io(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof t.initialState?t.initialState:eo(t.initialState),o=t.reducers||{},i=Object.keys(o),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?oo(t.extraReducers):[t.extraReducers],n=e[0],o=void 0===n?{}:n,i=e[1],a=void 0===i?[]:i,c=e[2],l=void 0===c?void 0:c,u=Xr(Xr({},o),s);return function(t,e,n,r){void 0===n&&(n=[]);var o,i=oo(e),a=i[0],s=i[1],c=i[2];if(function(t){return"function"==typeof t}(t))o=function(){return eo(t())};else{var l=eo(t);o=function(){return l}}function u(t,e){void 0===t&&(t=o());var n=$r([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===n.filter((function(t){return!!t})).length&&(n=[c]),n.reduce((function(t,n){if(n){var r;if(An(t))return void 0===(r=n(t,e))?t:r;if(jn(t))return Or(t,(function(t){return n(t,e)}));if(void 0===(r=n(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return u.getInitialState=o,u}(r,(function(t){for(var e in u)t.addCase(e,u[e]);for(var n=0,r=a;n<r.length;n++){var o=r[n];t.addMatcher(o.matcher,o.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var n,r,i=o[t],l=function(t,e){return t+"/"+e}(e,t);"reducer"in i?(n=i.reducer,r=i.prepare):n=i,a[t]=n,s[l]=n,c[t]=r?ro(l,r):ro(l)})),{name:e,reducer:function(t,e){return n||(n=l()),n(t,e)},actions:c,caseReducers:a,getInitialState:function(){return n||(n=l()),n.getInitialState()}}}var ao=function(t){void 0===t&&(t=21);for(var e="",n=t;n--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e},so=["name","message","stack","code"],co=function(t,e){this.payload=t,this.meta=e},lo=function(t,e){this.payload=t,this.meta=e},uo=function(t){if("object"==typeof t&&null!==t){for(var e={},n=0,r=so;n<r.length;n++){var o=r[n];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}},fo=function(){function t(t,e,n){var r=ro(t+"/fulfilled",(function(t,e,n,r){return{payload:t,meta:Qr(Xr({},r||{}),{arg:n,requestId:e,requestStatus:"fulfilled"})}})),o=ro(t+"/pending",(function(t,e,n){return{payload:void 0,meta:Qr(Xr({},n||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),i=ro(t+"/rejected",(function(t,e,r,o,i){return{payload:o,error:(n&&n.serializeError||uo)(t||"Rejected"),meta:Qr(Xr({},i||{}),{arg:r,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var u,f=(null==n?void 0:n.idGenerator)?n.idGenerator(t):ao(),p=new a;function d(t){u=t,p.abort()}var h=function(){return a=this,h=null,v=function(){var a,h,v,y,m,g;return function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),null===(_=y=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,t,{getState:c,extra:l}))||"object"!=typeof _||"function"!=typeof _.then?[3,2]:[4,y];case 1:y=b.sent(),b.label=2;case 2:if(!1===y||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return m=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),s(o(f,t,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:f,arg:t},{getState:c,extra:l}))),[4,Promise.race([m,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:f,signal:p.signal,abort:d,rejectWithValue:function(t,e){return new co(t,e)},fulfillWithValue:function(t,e){return new lo(t,e)}})).then((function(e){if(e instanceof co)throw e;return e instanceof lo?r(e.payload,f,t,e.meta):r(e,f,t)}))])];case 3:return v=b.sent(),[3,5];case 4:return g=b.sent(),v=g instanceof co?i(null,f,t,g.payload,g.meta):i(g,f,t),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(v)&&v.meta.condition||s(v),[2,v]}var _}))},new Promise((function(t,e){var n=function(t){try{o(v.next(t))}catch(t){e(t)}},r=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(n,r)};o((v=v.apply(a,h)).next())}));var a,h,v}();return Object.assign(h,{abort:d,requestId:f,arg:t,unwrap:function(){return h.then(po)}})}}),{pending:o,rejected:i,fulfilled:r,typePrefix:t})}return t.withTypes=function(){return t},t}();function po(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}var ho=function(t,e){return function(t){return t&&"function"==typeof t.match}(t)?t.match(e):t(e)};function vo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.some((function(t){return ho(t,e)}))}}Object.assign;var yo="listenerMiddleware";ro(yo+"/add"),ro(yo+"/removeAll"),ro(yo+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:void 0!==n.g?n.g:globalThis);"undefined"!=typeof window&&window.requestAnimationFrame&&window.requestAnimationFrame,function(){function t(t,e){var n=o[t];return n?n.enumerable=e:o[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[hr];return br.get(e,t)},set:function(e){var n=this[hr];br.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][hr];if(!o.P)switch(o.i){case 5:r(o)&&er(o);break;case 4:n(o)&&er(o)}}}function n(t){for(var e=t.t,n=t.k,r=yr(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==hr){var a=e[i];if(void 0===a&&!Pn(e,i))return!0;var s=n[i],c=s&&s[hr];if(c?c.t!==a:!Rn(s,a))return!0}}var l=!!e[hr];return r.length!==yr(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var o={};!function(t,e){gr[t]||(gr[t]=e)}("ES5",{J:function(e,n){var r=Array.isArray(e),o=function(e,n){if(e){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,t(o,!0));return r}var i=mr(n);delete i[hr];for(var a=yr(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,e||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,e),i={i:r?5:4,A:n?n.A:$n(),P:!1,I:!1,D:{},l:n,t:e,k:o,o:null,O:!1,C:!1};return Object.defineProperty(o,hr,{value:i,writable:!0}),o},S:function(t,n,o){o?An(n)&&n[hr].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[hr];if(n){var o=n.t,i=n.k,a=n.D,s=n.i;if(4===s)In(i,(function(e){e!==hr&&(void 0!==o[e]||Pn(o,e)?a[e]||t(i[e]):(a[e]=!0,er(n)))})),In(o,(function(t){void 0!==i[t]||Pn(i,t)||(a[t]=!1,er(n))}));else if(5===s){if(r(n)&&(er(n),a.length=!0),i.length<o.length)for(var c=i.length;c<o.length;c++)a[c]=!1;else for(var l=o.length;l<i.length;l++)a[l]=!0;for(var u=Math.min(i.length,o.length),f=0;f<u;f++)i.hasOwnProperty(f)||(a[f]=!0),void 0===a[f]&&t(i[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?n(t):r(t)}})}();class mo extends st{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="SeamlyUnavailableError",this.langKey="errors.seamlyUnavailable"}}var go=function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};const bo=fo("initializeConfig",((t,e)=>{let{extra:{api:n,config:r},rejectWithValue:o}=e;return go(void 0,void 0,void 0,(function*(){var t;try{const{features:e,defaultLocale:o,preChat:i,agentParticipant:a,userParticipant:s,startChatIcon:c}=yield n.getConfig(),l=(null===(t=null==r?void 0:r.context)||void 0===t?void 0:t.locale)||o,{connectWhenInView:u}=r;return{features:e,defaultLocale:o,preChat:i,agentParticipant:a,userParticipant:s,startChatIcon:c,locale:l,connectWhenInView:u}}catch(t){return o(t)}}))})),_o=fo("resetConfig",((t,e)=>{let{extra:{config:n}}=e;return go(void 0,void 0,void 0,(function*(){return n}))}));const wo=fo("setLocale",((t,e)=>{let{extra:{api:n},rejectWithValue:r}=e;return function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}(void 0,void 0,void 0,(function*(){try{return{translations:yield n.getTranslations(t),locale:t}}catch(t){return r(t)}}))}),{condition:(t,e)=>{let{getState:n}=e;const{i18n:{isLoading:r,locale:o}}=n();return t!==o&&!r}});var xo="NOT_FOUND",So=function(t,e){return t===e};function Oo(t,e){var n,r,o="object"==typeof e?e:{equalityCheck:e},i=o.equalityCheck,a=void 0===i?So: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),f=1===c?(n=u,{get:function(t){return r&&n(r.key,t)?r.value:xo},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 xo}return{get:r,put:function(e,o){r(e)===xo&&(n.unshift({key:e,value:o}),n.length>t&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(c,u);function p(){var e=f.get(arguments);if(e===xo){if(e=t.apply(null,arguments),l){var n=f.getEntries(),r=n.find((function(t){return l(t.value,e)}));r&&(e=r.value)}f.put(arguments,e)}return e}return p.clearCache=function(){return f.clear()},p}function Co(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 Eo(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,f=void 0===u?n:u,p=Array.isArray(f)?f:[f],d=Co(r),h=t.apply(void 0,[function(){return a++,c.apply(null,arguments)}].concat(p)),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 To=Eo(Oo);const Ao=To((t=>{let{app:e}=t;return e}),(t=>{let{userHasResponded:e}=t;return e})),jo="visibility",Io={hidden:"hidden",minimized:"minimized",open:"open",initialize:null},ko=To((t=>{let{config:e}=t;return e}),(t=>{let e=W()({visible:"inline"===(null==t?void 0:t.layoutMode)?Io.open:Io.minimized,appContainerClassNames:t.appContainerClassNames||[]},t);return"function"==typeof e.appContainerClassNames&&(e=W()(W()({},e),{appContainerClassNames:e.appContainerClassNames(e)})),e})),Po=()=>Ve(ko);function No(){const{startChatIcon:t}=Po();return t}const Ro=t=>{let{state:e}=t;return e},Mo=()=>Ve(Ro),Do=To(Ro,ko,Ao,((t,e,n)=>{let{events:r,serviceData:o}=t;var i;if(n||"inline"===e.layoutMode||!(null==o?void 0:o.suggestion)||!(null===(i=null==o?void 0:o.suggestion)||void 0===i?void 0:i.body.length))return r;const a={type:"service_data",payload:o.suggestion};return[...r,a]})),Lo=To(Do,ko,((t,e)=>{var n,r;const{enabled:o,threshold:i}=null!==(r=null===(n=null==e?void 0:e.messages)||void 0===n?void 0:n.timeIndicator)&&void 0!==r?r:{};if(!o)return t;const a=[];let s=null;return T()(t).call(t,((t,e)=>{if(0===e)a.push(W()(W()({},t),{timeIndicator:t.payload.occurredAt}));else{const e=s&&mt(t.payload.occurredAt-s.payload.occurredAt)>=i?t.payload.occurredAt:void 0;a.push(W()(W()({},t),{timeIndicator:e}))}s=t})),a})),Uo=()=>Ve(Lo),Fo=(To(Lo,(t=>S()(t).call(t,(t=>t.payload.id)))),()=>Mo().isLoading),zo=()=>Mo().headerTitles,Bo=()=>Mo().unreadEvents,Ho=()=>Mo().skiplinkTargetId,$o=To(Lo,(t=>{var e;const n=C()(t).call(t,(t=>"message"===t.type));return null===(e=n[n.length-1])||void 0===e?void 0:e.payload.id})),Vo=()=>{const{participants:t,currentAgent:e}=Mo().participantInfo;return e?t[e]:null},qo=t=>Mo().serviceData[t],Wo=()=>{const{layoutMode:t}=Po();return{isInline:"inline"===t,isWindow:"window"===t,isApp:"app"===t,isResolving:!t}},Yo=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 Io.open;if("window"===a&&s&&r!==Io.open)return e?r||n||Io.open:Io.hidden;if("inline"===a&&e&&!r)return n||Io.open;const l=Io.minimized;return r||n||c||l},Go=To((t=>{let{visibility:e}=t;return e}),(t=>t.visibility)),Ko=To((t=>{let{visibility:e}=t;return e}),(t=>t.showInlineView));const Jo=[Io.open,Io.minimized,Io.hidden],Xo=fo("setVisibility",((t,e)=>{let{getState:n,extra:{api:r,eventBus:o}}=e;const i=n(),a=Go(i),s=Ao(i),c=r.hasConversation(),l=ko(i),{visibilityCallback:u=Yo,layoutMode:f}=l,{unreadEvents:p}=Ro(i),d=u({hasResponded:s,previousVisibility:a,requestedVisibility:t,config:l});if(k()(Jo).call(Jo,d)){if(a!==d)return r.store.set(jo,W()(W()({},r.store.get(jo)||{}),{[f]:t})),t&&o.emit("ui.visible",t,{visibility:t,hasConversation:c,hasResponded:s,unreadMessageCount:p}),d}else console.error('The visibilityCallback function should return "open", "minimized" or "hidden".')})),Qo=fo("initialize",((t,e)=>{let{dispatch:n,getState:r,extra:{api:o}}=e;return function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}(void 0,void 0,void 0,(function*(){var t;const{layoutMode:e}=ko(r()),i=(null===(t=o.store.get(jo))||void 0===t?void 0:t[e])||Io.initialize;return n(Xo(i)),i}))}));var Zo=function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};const ti=fo("initializeApp",((t,e)=>{let{extra:{api:n,config:r},rejectWithValue:o}=e;return Zo(void 0,void 0,void 0,(function*(){var t,e,i,a;let s=null===(t=null==r?void 0:r.context)||void 0===t?void 0:t.locale;try{if(n.hasConversation()){const t=yield n.getConversationIntitialState();return s=(null===(e=t.translation)||void 0===e?void 0:e.locale)||s,{initialState:t,locale:s,config:r}}return(null===(i=null==r?void 0:r.context)||void 0===i?void 0:i.topic)&&n.send("action",{type:yn,body:{name:r.context.topic,fallbackMessage:r.context.topic}}),(null===(a=null==r?void 0:r.context)||void 0===a?void 0:a.translationLocale)&&(s=r.context.translationLocale,n.send("action",{type:mn,body:{enabled:!0,locale:s}},!1)),{initialState:void 0,locale:s,config:r}}catch(t){if(t instanceof ut){const t=new ut;return o({name:t.name,message:t.message,originalEvent:t.originalEvent,originalError:t.originalError,action:t.action})}const e=new mo;return o({name:e.name,message:e.message,langKey:e.langKey})}}))})),ei=fo("resetApp",((t,e)=>{let{dispatch:n,extra:{api:r}}=e;return Zo(void 0,void 0,void 0,(function*(){yield r.disconnect(),yield r.clearStore(),n(_o()),yield n(bo());try{const{locale:t}=yield n(ti()).unwrap();yield n(wo(t))}catch(t){}n(Qo())}))})),ni=()=>Ve(Ao),ri={userHasResponded:!1},oi=io({name:"app",initialState:ri,reducers:{setHasResponded:(t,e)=>{let{payload:n}=e;t.userHasResponded=n}},extraReducers:t=>{t.addCase(ei.pending,(()=>ri)).addCase(ti.fulfilled,((t,e)=>{let{payload:n}=e;var r;n.initialState&&"userResponded"in n.initialState&&(t.userHasResponded=null===(r=n.initialState)||void 0===r?void 0:r.userResponded)}))}}),{setHasResponded:ii}=oi.actions;var ai=oi.reducer;const si={error:void 0},ci=io({name:"interrupt",initialState:si,reducers:{setInterrupt:(t,e)=>{t.error=e.payload},clearInterrupt:()=>si},extraReducers:t=>{t.addCase(ei.fulfilled,(()=>si)).addMatcher(vo(ti.rejected,bo.rejected,wo.rejected,Xo.rejected,Qo.rejected),((t,e)=>{let{payload:n}=e;t.error=n}))}}),{setInterrupt:li,clearInterrupt:ui}=ci.actions;var fi=ci.reducer,pi=n(2578),di=n.n(pi),hi=n(1459),vi=n.n(hi),yi=n(1679),mi=n.n(yi);const gi=t=>{let{type:e,payload:n}=t;return e===on.message&&!n.fromClient||e===on.info&&n.type===an},bi=t=>di()(t).call(t,((t,e)=>{let{payload:{occurredAt:n}}=t,{payload:{occurredAt:r}}=e;return n-r})),_i=(t,e)=>{if(!t)return{participants:{},currentAgent:""};const{participants:n}=t||{participants:{}},{id:r,avatar:o,name:i,introduction:a}=e.participant,s=n[r],c=W()(W()({},n),{[r]:s?W()(W()(W()(W()({},s),o?{avatar:o}:{}),i?{name:i}:{}),a?{introduction:a}:{}):e.participant});return W()(W()({},t),{participants:c,currentAgent:t.currentAgent===r||e.fromClient?t.currentAgent:r})},wi=(t,e)=>{const n="message"===(null==e?void 0:e.type)?null==e?void 0:e.payload.entry:{},{blockAutoEntrySwitch:r}=t;if(!n)return W()(W()({},t),{optionsOverride:{}});const{type:o,options:i}=n;let a=t.active;return r||o===t.userSelected||(a=o),W()(W()({},t),{active:a,optionsOverride:W()(W()({},t.optionsOverride),{[o]:i||{}})})},xi={events:[],isLastEventFromClient:!1,initialState:{userResponded:!1},unreadEvents:0,userHasResponded:!1,loadedImageEventIds:[],isLoading:!1,idleDetachCountdown:{hasCountdown:!1,isActive:!1,remaining:void 0,wasStopped:void 0,count:void 0,timer:void 0},resumeConversationPrompt:!1,serviceInfo:{activeServiceSessionId:""},participantInfo:{participants:{},currentAgent:""},headerTitles:{title:null,subTitle:""},historyLoaded:!1,skiplinkTargetId:kt(),optionsButtonId:kt(),headerCollapseButtonId:kt(),serviceData:{},options:{features:{},panelActive:!1,optionActive:"",userSelectedOptions:{}},showFileUpload:!1,currentUploads:[],entryMeta:{default:sn,active:sn,userSelected:null,blockAutoEntrySwitch:!1,options:{},optionsOverride:{}},seamlyContainerElement:null},Si=io({name:"store",initialState:xi,reducers:{addEvent:(t,e)=>{var n,r,o;const{type:i,payload:a}=e.payload,s=t.options.features.hasOwnProperty(Cn);let c=W()({},t.options);if(s&&(i===on.message||i===on.participant)&&!a.fromClient){const t="message"===i?null===(r=a.entry)||void 0===r?void 0:r.type:{};c=W()(W()({},c),{features:W()(W()({},c.features),{uploads:W()(W()({},null===(o=c.features)||void 0===o?void 0:o.uploads),{enabledFromEntry:t===cn})})})}const l=gi(e.payload);if(mi()(n=t.events).call(n,(t=>t.payload.id===a.id)))return;const u=wi(t.entryMeta,e.payload);t.entryMeta=s||u.active!==cn?u:W()({},t.entryMeta),t.options=c,l&&(t.unreadEvents+=1,"service_data"!==i&&(e.payload.payload.messageStatus=a.fromClient?un:ln)),e.payload.payload.key=kt(),t.events.push(e.payload),t.isLastEventFromClient=a.fromClient},ackEvent:(t,e)=>{var n;let{payload:{payload:r}}=e;if(!r.transactionId)return void console.warn("ACK received without transaction ID.");const o=mi()(n=t.events).call(n,(t=>t.payload.transactionId===r.transactionId&&(!r.type||t.type===r.type))),{id:i,occurredAt:a}=r;o&&(o.payload.id=i,o.payload.occurredAt=a,t.events=bi(t.events))},clearEvents:t=>{t.unreadEvents=0,t.loadedImageEventIds=[],t.events=[]},setEventsRead:(t,e)=>{var n;let{payload:r}=e;t.unreadEvents=0,T()(n=t.events).call(n,(t=>(-1!==V()(r).call(r,t.payload.id)&&(t.payload=W()(W()({},t.payload),"service_data"!==t.type&&t.payload.messageStatus===ln&&{messageStatus:un})),t)))},setLoadedImageEventIds:(t,e)=>{let{payload:n}=e;t.loadedImageEventIds.push(n)},setHistory:(t,e)=>{var n,r;let{payload:{events:o,participants:i,activeServiceSessionId:a,activeServiceSettings:s={},serviceData:c,resumeConversationPrompt:l}}=e;var u,f;const p=((t,e)=>{var n;const r=C()(t).call(t,(t=>!M()(e).call(e,(e=>e.payload.id===t.payload.id)))),o=vi()(n=C()(e).call(e,(t=>!("participant"===t.type&&!t.payload.participant.introduction)))).call(n);return bi([...o,...r])})(t.events,o),d=W()(W()({},t.participantInfo.participants),i),h=mi()(n=vi()(r=At()(p).call(p)).call(r)).call(n,(t=>("message"===t.type||"participant"===t.type)&&!t.payload.fromClient));let v=null;h&&("message"===h.type&&(v=h.payload.participant),"participant"===h.type&&(v=h.payload.participant.id));const{entry:y}=s,m=null===(u=null==y?void 0:y.options)||void 0===u?void 0:u.upload,g=wi(W()(W()(W()({},t.entryMeta),y),{active:(null==y?void 0:y.default)||an,options:W()({},(null==y?void 0:y.options)?y.options:{})}),p[p.length-1]);let b=W()({},t.options.features);const _=b.hasOwnProperty(Cn);if(_&&"message"===(null==h?void 0:h.type)){const{payload:t}=h,e=(null===(f=null==t?void 0:t.entry)||void 0===f?void 0:f.type)||{};b=W()(W()({},b),{uploads:{enabled:!(!m||!(null==m?void 0:m.enabled)),enabledFromEntry:e===cn}})}t.unreadEvents=C()(p).call(p,(t=>"message"===t.type&&t.payload.messageStatus===ln)).length,t.events=C()(p).call(p,(t=>"participant"!==t.type||!!t.payload.participant.introduction)),t.participantInfo=W()(W()(W()({},t.participantInfo),v?_i(t.participantInfo,{participant:d[v]}):{}),{participants:d}),t.historyLoaded=!0,t.serviceInfo=W()(W()({},t.serviceInfo),{activeServiceSessionId:a}),t.serviceData=W()(W()({},t.serviceData),c),t.options=W()(W()({},t.options),{features:b||{}}),t.entryMeta=_||g.active!==cn?g:W()({},t.entryMeta),t.resumeConversationPrompt=l||!1,v&&(t.headerTitles.subTitle=d[v].name)},resetHistoryLoadedFlag:t=>{t.historyLoaded=!1},setIsLoading:(t,e)=>{let{payload:n}=e;t.isLoading=n},initIdleDetachCountdown:(t,e)=>{let{payload:n}=e;const{delaySeconds:r,delayTime:o}=n;t.idleDetachCountdown={hasCountdown:!0,isActive:!0,wasStopped:!1,count:r,remaining:r,timer:o}},decrementIdleDetachCountdownCounter:t=>{const{idleDetachCountdown:e}=t,{remaining:n}=e,r=n-1;t.idleDetachCountdown.remaining=r,t.idleDetachCountdown.timer=gt(r)},stopIdleDetachCountdownCounter:t=>{t.idleDetachCountdown.isActive=!1,t.idleDetachCountdown.wasStopped=!0},clearIdleDetachCountdown:t=>{t.idleDetachCountdown.hasCountdown=!1,t.idleDetachCountdown.isActive=!1},initResumeConversationPrompt:t=>{t.resumeConversationPrompt=!0},clearResumeConversationPrompt:t=>{t.resumeConversationPrompt=!1},setParticipant:(t,e)=>{let{payload:n}=e;t.participantInfo=_i(t.participantInfo,{participant:n.participant,fromClient:n.fromClient})},setActiveService:(t,e)=>{let{payload:n}=e;t.serviceInfo.activeServiceSessionId!==n&&(t.serviceInfo.activeServiceSessionId=n)},setHeaderTitle:(t,e)=>{let{payload:n}=e;t.headerTitles.title=n},setHeaderSubTitle:(t,e)=>{let{payload:n}=e;t.headerTitles.subTitle=n},setInitialState:(t,e)=>{let{payload:n}=e;t.initialState=n.initialState,t.unreadEvents=xi.unreadEvents},setServiceDataItem:(t,e)=>{let{payload:n}=e;t.serviceData[n.type]=n},setFeatures:(t,e)=>{let{payload:n}=e;n.features&&(t.options.features=n.features)},setFeatureEnabledState:(t,e)=>{let{payload:n}=e;t.options.features.hasOwnProperty(n.key)&&(t.options.features[n.key].enabled=n.enabled)},clearFeatures:t=>{t.options.features={}},showOption:(t,e)=>{let{payload:n}=e;t.options.panelActive=!0,t.options.optionActive=n},hideOption:t=>{t.options.panelActive=!1,t.options.optionActive=""},setUserSelectedOptions:(t,e)=>{let{payload:n}=e;t.options.userSelectedOptions=n},setUserSelectedOption:(t,e)=>{let{payload:n}=e;const{option:r,value:o}=n;t.options.userSelectedOptions[r]=o},setBlockAutoEntrySwitch:(t,e)=>{let{payload:n}=e;t.entryMeta.blockAutoEntrySwitch=n},setServiceEntryMetadata:(t,e)=>{let{payload:n}=e;t.entryMeta.active=n.default,t.entryMeta.options=n.options||{},t.entryMeta.optionsOverride={}},setActiveEntryType:(t,e)=>{let{payload:n}=e;t.entryMeta.active=n},setUserEntryType:(t,e)=>{let{payload:n}=e;t.entryMeta.userSelected=n},registerUpload:(t,e)=>{let{payload:n}=e;t.currentUploads.push({id:n.fileId,name:n.fileName,progress:1,uploading:!0,complete:!1,error:"",uploadHandle:n.uploadHandle})},setUploadProgress:(t,e)=>{var n;let{payload:r}=e;t.currentUploads=S()(n=t.currentUploads).call(n,(t=>t.id===r.fileId?W()(W()({},t),{progress:r.progress,uploading:100!==r.progress,uploadHandle:100===r.progress?null:t.uploadHandle}):t))},setUploadError:(t,e)=>{var n;let{payload:r}=e;t.currentUploads=S()(n=t.currentUploads).call(n,(t=>t.id===r.fileId?W()(W()({},t),{error:r.errorText,progress:0,uploading:!1,uploadHandle:null}):t))},setUploadComplete:(t,e)=>{var n;let{payload:r}=e;t.currentUploads=S()(n=t.currentUploads).call(n,(t=>t.id===r?W()(W()({},t),{complete:!0}):t))},clearAllUploads:t=>{t.currentUploads=[]},setSeamlyContainerElement:(t,e)=>{let{payload:n}=e;t.seamlyContainerElement=n}},extraReducers:t=>{t.addCase(ei.pending,(()=>xi)).addCase(bo.fulfilled,((t,e)=>{let{payload:n}=e;var r;t.headerTitles.subTitle=null===(r=n.agentParticipant)||void 0===r?void 0:r.name,n.features&&(t.options.features=n.features)})).addCase(ti.fulfilled,((t,e)=>{let{payload:n}=e;n.initialState&&(t.initialState=n.initialState)})).addMatcher(vo(Ni,Ri),(t=>{t.isLastEventFromClient=!1}))}}),{ackEvent:Oi,addEvent:Ci,clearAllUploads:Ei,clearEvents:Ti,clearFeatures:Ai,clearIdleDetachCountdown:ji,clearResumeConversationPrompt:Ii,decrementIdleDetachCountdownCounter:ki,hideOption:Pi,initIdleDetachCountdown:Ni,initResumeConversationPrompt:Ri,registerUpload:Mi,resetHistoryLoadedFlag:Di,setActiveEntryType:Li,setActiveService:Ui,setBlockAutoEntrySwitch:Fi,setEventsRead:zi,setFeatureEnabledState:Bi,setFeatures:Hi,setHeaderSubTitle:$i,setHeaderTitle:Vi,setHistory:qi,setInitialState:Wi,setIsLoading:Yi,setLoadedImageEventIds:Gi,setParticipant:Ki,setSeamlyContainerElement:Ji,setServiceDataItem:Xi,setServiceEntryMetadata:Qi,setUploadComplete:Zi,setUploadError:ta,setUploadProgress:ea,setUserEntryType:na,setUserSelectedOption:ra,setUserSelectedOptions:oa,showOption:ia,stopIdleDetachCountdownCounter:aa}=Si.actions;var sa=Si.reducer,ca=n(9022),la=n.n(ca);const ua=W()(W()({},{namespace:"default",layoutMode:"window",messages:{agent:{showAvatar:!1,showName:!1},user:{showAvatar:!1,showName:!1},timeIndicator:{enabled:!1,threshold:36e5}}}),{api:{domain:"",key:"",secure:!0},hideOnNoUserResponse:!1,connectWhenInView:!0,showDisclaimer:!1,showFaq:!1,showSuggestions:!0,customComponents:{},defaults:{visible:null},preChatEvents:[]}),fa=["hideOnNoUserResponse","connectWhenInView","showDisclaimer","showFaq","showSuggestions","namespace","customComponents","defaults","layoutMode","api","zIndex","context","appContainerClassNames","messages","visible","visibilityCallback","errorCallback","agentParticipant","userParticipant","startChatIcon"],pa=(t,e)=>{const n=((t,e)=>Q()(e).call(e,((e,n)=>(n in t&&(e[n]=t[n]),e)),{}))(e,fa),{messages:r}=n,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&V()(e).call(e,r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof s()){var o=0;for(r=s()(t);o<r.length;o++)V()(e).call(e,r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(n,["messages"]);let i=t;return j()(o).length>0&&(i=W()(W()({},i),o)),r&&(i=W()(W()({},i),{messages:W()(W()({},i.messages),r)})),i},da=io({name:"config",initialState:ua,reducers:{setConfig:(t,e)=>{let{payload:n}=e;return pa(t,n)},updateConfig:(t,e)=>{let{payload:n}=e;return pa(t,n)},setPreChatEvents:(t,e)=>{let{payload:n}=e;t.preChatEvents=n}},extraReducers:t=>{t.addCase(_o.fulfilled,(t=>t)).addCase(bo.fulfilled,((t,e)=>{let{payload:{preChat:n,agentParticipant:r,userParticipant:o,startChatIcon:i}}=e;t.preChatEvents=S()(n).call(n,(t=>({type:"message",payload:t}))),t.agentParticipant=r,t.userParticipant=o,t.startChatIcon=i}))}}),{setConfig:ha,updateConfig:va,setPreChatEvents:ya}=da.actions;var ma=da.reducer;class ga extends st{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"}}const ba={SeamlyGeneralError:lt,SeamlyConfigurationError:ct,SeamlySessionExpiredError:ut,SeamlyOfflineError:ga,SeamlyUnauthorizedError:ft,SeamlyUnavailableError:mo},_a=ro("catch-error",(t=>({payload:t})));function wa(t){let{api:e}=t;return t=>{let{getState:n}=t;const r=t=>{const{errorCallback:r,namespace:o,api:i,layoutMode:a}=ko(n()),{error:s,type:c}=t,l=ba[null==s?void 0:s.name]?new ba[s.name](s):new st(s);null==r||r(l,{namespace:o,api:i,layoutMode:a,conversationUrl:e.getConversationUrl(),action:c?t:void 0})};return t=>e=>{var n,o,i,a,s,c;try{return(null===(o=null===(n=e.payload)||void 0===n?void 0:n.originalEvent)||void 0===o?void 0:o.payload)?r({error:e.payload,type:null===(s=null===(a=null===(i=e.payload)||void 0===i?void 0:i.originalEvent)||void 0===a?void 0:a.payload)||void 0===s?void 0:s.type}):(null===(c=e.payload)||void 0===c?void 0:c.originalError)&&r({error:e.payload,type:void 0}),t(e)}catch(t){throw r({error:t}),t}}}}const xa={controls:{}},Sa={value:"",touched:!1},Oa={controls:Sa},Ca=io({name:"forms",initialState:Oa,reducers:{registerForm:(t,e)=>{let{payload:{persistData:n,formId:r}}=e;var o;const i=n&&null!==(o=t[r])&&void 0!==o?o:W()(W()({},xa),{persistData:n});t[r]=i},deregisterForm:(t,e)=>{let{payload:{formId:n}}=e;var r;return(null===(r=t[n])||void 0===r?void 0:r.persistData)||delete t[n],t},registerControl:(t,e)=>{let{payload:{name:n,formId:r}}=e;t[r].controls={[n]:Sa}},deregisterControl:(t,e)=>{let{payload:{name:n,formId:r}}=e;const o=t[r];if(!o)return t;if(o.persistData)return t;const i=W()({},o.controls);return delete i[n],W()(W()({},t),{[r]:W()(W()({},o),{controls:i})})},updateControlValue:(t,e)=>{let{payload:{formId:n,name:r,value:o}}=e;var i;(null===(i=t[n])||void 0===i?void 0:i.controls)&&(t[n].controls[r].value=o)},updateControlTouched:(t,e)=>{let{payload:{formId:n,name:r,touched:o}}=e;var i;(null===(i=t[n])||void 0===i?void 0:i.controls[r])&&(t[n].controls[r].touched=o)}},extraReducers:t=>{t.addCase(ei.pending,(()=>Oa))}}),{registerForm:Ea,deregisterForm:Ta,registerControl:Aa,deregisterControl:ja,updateControlValue:Ia,updateControlTouched:ka}=Ca.actions;var Pa=Ca.reducer;const Na=io({name:"app",initialState:{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,locale:void 0},reducers:{setInitialLocale:(t,e)=>{t.initialLocale=e.payload},setTranslations:(t,e)=>{let{payload:n}=e;t.translations=n}},extraReducers:t=>{t.addCase(bo.fulfilled,((t,e)=>{let{payload:n}=e;t.initialLocale=n.locale})).addCase(wo.pending,(t=>{t.isLoading=!0})).addCase(wo.rejected,(t=>{t.isLoading=!1})).addCase(wo.fulfilled,((t,e)=>{var n,r;let{payload:o}=e;t.isLoading=!1,(null==o?void 0:o.translations)&&(t.locale=o.locale,t.translations=Q()(n=di()(r=j()(o.translations)).call(r)).call(n,((t,e)=>W()(W()({},t),{[e]:o.translations[e]})),{}))}))}}),{setInitialLocale:Ra,setTranslations:Ma}=Na.actions;var Da=Na.reducer;const La=[lt,ct,ut,ga,ft,mo];function Ua(t){let{api:e}=t;return()=>t=>n=>{const{payload:r,type:o}=n;if(o===li.type){if(!M()(La).call(La,(t=>r.name===t.name)))throw new lt(r);"reset"===r.action&&e.disconnect().then((()=>{e.clearStore()}))}return t(n)}}function Fa(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function za(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Fa(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Fa(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Ba(t){let{api:e}=t;return()=>t=>n=>{const r=t(n);switch(n.type){case oa.toString():e.store.set("options",n.payload);break;case ra.toString():e.store.set("options",za(za({},e.store.get("options")||{}),{},{[n.payload.option]:n.payload.value}))}return r}}const Ha=To((t=>{let{i18n:e}=t;return e}),(t=>{let{translations:e}=t;return e})),$a=To((t=>{let{i18n:e}=t;return e}),(t=>{let{initialLocale:e}=t;return e})),Va=To((t=>{let{i18n:e}=t;return e}),(t=>{let{locale:e}=t;return e})),qa=To((t=>{let{i18n:e}=t;return e}),(t=>{let{isLoading:e}=t;return e}));var Wa=n(9940),Ya=n.n(Wa);const Ga={isActive:!1,currentLocale:void 0,isAvailable:!1,languages:[],containerId:ao(),translatedEventGroups:{},translationProposal:null},Ka=(t,e)=>{var n,r;const o=Q()(n=[...t]).call(n,((t,n,r,o)=>{let{payload:i}=n;var a;if(t[e]){if("divider"===(null==i?void 0:i.type)&&(null===(a=null==i?void 0:i.body)||void 0===a?void 0:a.translationEnabled))return Ya()(o).call(o,0),t;t[e].push(i.id)}return i.id===e&&(t[e]=[]),t}),{}),[[i,a]]=L()(o);return{lastGroupId:S()(r=C()(t).call(t,(t=>{var e;return"divider"===(null===(e=t.payload)||void 0===e?void 0:e.type)}))).call(r,(t=>t.payload.id)).at(-1),groupId:i,eventIds:a}},Ja=io({name:"translation",initialState:Ga,reducers:{enableTranslation:(t,e)=>{let{payload:n}=e;t.isActive=!0,t.currentLocale=n},disableTranslation:t=>{t.isActive=!1,t.currentLocale=void 0},enableEventsTranslation:(t,e)=>{let{payload:{events:n,id:r}}=e;delete t.translatedEventGroups[r];const{lastGroupId:o}=Ka(n,r);t.lastGroupId=o},disableEventsTranslation:(t,e)=>{let{payload:{events:n,id:r}}=e;const{lastGroupId:o,groupId:i,eventIds:a}=Ka(n,r);t.lastGroupId=o,t.translatedEventGroups[i]=a},disableTranslationProposalPrompt:t=>{t.translationProposal=null},setTranslationProposalPrompt:(t,e)=>{let{payload:n}=e;t.translationProposal=n}},extraReducers:t=>{t.addCase(bo.fulfilled,((t,e)=>{let{payload:n}=e;var r;const o=null===(r=null==n?void 0:n.features)||void 0===r?void 0:r.translation;o&&(t.isAvailable=!0===o.enabled,t.languages=o.languages)})).addCase(qi,((t,e)=>{let{payload:n}=e;t.translationProposal=n.translationProposal})).addCase(Ci,((t,e)=>{let{payload:n}=e;t.translatedEventGroups[t.lastGroupId]&&t.translatedEventGroups[t.lastGroupId].push(n.payload.id)}))}}),{enableTranslation:Xa,disableTranslation:Qa,enableEventsTranslation:Za,disableEventsTranslation:ts,setTranslationProposalPrompt:es,disableTranslationProposalPrompt:ns}=Ja.actions;var rs=Ja.reducer;function os(t){let{dispatch:e,getState:n}=t;return t=>r=>{const o=t(r),{payload:i}=r;switch(r.type){case qi.type:i?.translation?.enabled&&(e(Xa(i.translation.locale)),e(wo(i.translation.locale)));break;case bo.fulfilled.type:i.locale&&e(wo(i.locale));break;case Wi.type:i?.translation?.enabled&&(e(Xa(i.translation.locale)),e(wo(i.locale)));break;case Ci.type:"info"===i.type&&"new_translation"===i?.payload?.body?.subtype&&i.payload.body.translationEnabled&&e(wo(i.payload.body.translationLocale));break;case Qa.type:const t=$a(n());e(wo(t))}return o}}const is=io({name:"visibility",initialState:{visibility:Io.initialize,showInlineView:!1},reducers:{setShowInlineView:t=>{t.showInlineView=!0}},extraReducers:t=>{t.addCase(Xo.fulfilled,((t,e)=>{let{payload:n}=e;n&&(t.visibility=n)})).addCase(bo.fulfilled,((t,e)=>{let{payload:n}=e;n.connectWhenInView||(t.showInlineView=!n.connectWhenInView)}))}}),{setShowInlineView:as}=is.actions;var ss=is.reducer;const cs=Qe,ls=()=>{const t=cs(),e=Ve(Go),n=!!e&&e!==Io.hidden,r=e===Io.open,o=e===Io.minimized,i=(0,Ne.I4)((e=>t(Xo(e))),[t]);return{isVisible:n,isOpen:r,isMinimized:o,visible:e,setVisibility:i,openChat:()=>{i(Io.open)},closeChat:()=>{i(Io.minimized)}}},us=t=>{let{freezeOnceVisible:e=!1,enabled:n=!0,containerRef:r=(0,U.Vf)()}=t;const[o,i]=(0,Ne.eJ)(null),a=!!(null==o?void 0:o.isIntersecting)||!n,s=a&&e,c=t=>{let[e]=t;return i(e)};return(0,Ne.d4)((()=>{const t=null==r?void 0:r.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()}),[r,n,s]),{isVisible:a,containerRef:r}},fs=()=>{const t=Qe(),{connectWhenInView:e}=Po(),n=Ve(Ko),{containerRef:r,isVisible:o}=us({enabled:e,freezeOnceVisible:!0});return(0,Ne.d4)((()=>{o&&t(as())}),[t,o]),{containerRef:r,showInlineView:n}},ps=()=>(0,Ne.qp)(nn),ds=()=>ps().store||{},hs=()=>{const t=ps();return(0,Ne.I4)((()=>t.hasConversation()),[t])};function vs(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ys(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=vs(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=vs(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var ms=()=>{const t=ps(),e=Po(),n=Qe(),r=(0,Ne.qp)(rn),o=ni(),i=hs(),{visible:a,setVisibility:s}=ls(),c=Bo(),l=(0,Ne.I4)((function(){r.emit(...arguments)}),[r]),u=(0,Ne.I4)((()=>{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})}),[t,e.context,l,i,o,c,a]),f=(0,Ne.I4)((async()=>{n(ei())}),[n]),p=(0,Ne.I4)((t=>({type:t,id:kt(),transactionId:kt(),participant:rt,fromClient:!0,occurredAt:1e3*It()(),meta:{}})),[]),d=(0,Ne.I4)((t=>ys(ys({},p("text")),{},{body:{text:t}})),[p]),h=(0,Ne.I4)((e=>{let{body:r,config:o={}}=e;if(""===en()(r).call(r))return;const i=ys(ys({},d(r)),o);t.send("message",i),l("message",i),n(Ci({type:"message",payload:ys(ys({},i),{},{optimisticallyInjected:!0})}))}),[t,n,l,d]),v=(0,Ne.I4)((function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt();n(Ci({type:"message",payload:ys(ys({},d(t)),{},{transactionId:e})}))}),[n,d]),y=(0,Ne.I4)(((t,e,r,o,i,a,s)=>{n(Ci({type:"message",payload:{type:"upload",id:t,transactionId:e,participant:rt,fromClient:!0,occurredAt:r,meta:{},body:{contentType:o,filename:i,filesize:a,url:s}}}))}),[n]),m=(0,Ne.I4)((function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt();const r={body:{subtype:t,type:"divider"},fromClient:!1,fromHistory:!0,id:kt(),transactionId:e,type:"divider"};n(Ci({type:"info",payload:r}))}),[n]),g=(0,Ne.I4)((e=>{if(!e)return;t.send("action",e);const{type:n}=e;n!==pn&&n!==dn&&l(`action.${n}`,e)}),[t,l]),b=(0,Ne.I4)((e=>{t.sendContext(e)}),[t]),_=(0,Ne.I4)((()=>t.connected?H().reject(new Error("The API is already connected")):t.connect().then((t=>{t&&(n(Wi(t)),t.userResponded&&(n(ii(t.userResponded)),s(Io.open)))})).catch((t=>{n(li({name:t?.name,message:t?.message,langKey:t?.langKey,action:t?.action,originalEvent:t?.originalEvent,originalError:t?.originalError}))}))),[t,n,s]);return{connect:_,start:u,sendMessage:h,sendAction:g,sendContext:b,reset:f,emitEvent:l,addMessageBubble:v,addUploadBubble:y,addDivider:m,apiConnected:t.connected,apiConfigReady:t.configReady}};function gs(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 bs(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,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return gs(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)?gs(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 _s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ws(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,Er(r.key),r)}}function xs(t){return t.reduce((function(t,e){return t.concat(Array.isArray(e)?xs(e):e)}),[])}function Ss(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 Os(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=Cs(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 Cs(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 Es(t){return Ts(t.slice(1,-1),",",3)}function Ts(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),Ts(a,e,n-1,r)}var As,js=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_s(this,t),Tr(this,"format",Ss((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return xs(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=Cs(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=Es(o),c=bs(s,3),l=c[0],u=c[1],f=c[2],p=e[l];null==p&&(p="");var d=u&&this.typeHandlers[u];i.push(d?d(p,f,this.locale,e,this.process.bind(this)):p);var h=t.substring(r+1);return h&&i.push(this.process(h,e)),i}}return[t]}}],n&&ws(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Is(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 ks(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Is(Object(n),!0).forEach((function(e){Tr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Is(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ps=0,Ns="other";function Rs(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(Ps++);r+="{".concat(a,", number}"),i[a]=e}"{"===t[n]?o++:"}"===t[n]&&o--,n++}return{caseBody:r,numberValues:i}}var Ms="other";const Ds=new js("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=Os(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!==As&&As.resolvedOptions().locale===n||(As=new Intl.PluralRules(n));var u=As.select(c);u!==Ns&&l.push(u)}1===c&&l.push("one"),l.push("=".concat(c),Ns);for(var f=0;f<l.length;f++){var p=l[f];if(p in s){var d=Rs(s[p],c),h=d.caseBody,v=d.numberValues;return o(h,ks(ks({},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=Os(e),i=o.cases;return t in i?r(i[t],n):Ms in i?r(i[Ms],n):t}});function Ls(){const t=Ve(Ha),e=Ve(Va),n=Ve($a),r=Ve(qa),o=(0,Ne.I4)((function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=t[n];return i?Ds.format(i,o):(r||console.warn(`Translation key: ${n} is missing in locale: ${e}`),null)}),[t,e,r]);return{t:o,locale:e,initialLocale:n}}const Us=(0,U.kr)(null),Fs=()=>{const t=(0,Ne.qp)(Us);return{sendPolite:(0,Ne.I4)((e=>{e&&t({ariaLive:Sn,messageText:e})}),[t]),sendAssertive:(0,Ne.I4)((e=>{e&&t({ariaLive:xn,messageText:e})}),[t])}};var zs=()=>{const t=Uo(),{t:e}=Ls(),{isInline:n,isWindow:r,isApp:o}=Wo(),{isOpen:i,isVisible:a}=ls(),s=Ve(Ko),c=Qe(),l=(0,Ne.sO)(null),{start:u,connect:f,apiConfigReady:p,apiConnected:d}=ms(),h=hs(),v=(0,Ne.sO)(!1),{sendAssertive:y}=Fs();(0,Ne.d4)((()=>{a&&dt()((()=>{y(e("window.srTexts.onLoad"))}),500)}),[a,y,e]),(0,Ne.d4)((()=>{a&&y(e(i?"window.srTexts.onOpen":"window.srTexts.onClose"))}),[i,a,y,e]),(0,Ne.d4)((()=>(l.current=dt()((()=>{c(Yi(!0))}),500),()=>{clearTimeout(l.current)})),[c]),(0,Ne.d4)((()=>(t.length&&(l.current=dt()((()=>{c(Yi(!1))}),5e3)),()=>{clearTimeout(l.current)})),[t,c]),(0,Ne.d4)((()=>{p&&d||(v.current=!1)}),[p,d]);const m=(0,Ne.I4)((async()=>{d||(v.current=!0,await f()),(o||i||a&&n)&&u()}),[d,f,o,n,i,a,u]);(0,Ne.d4)((()=>{p&&!v.current&&(!r||i||h())&&(!n||a&&s)&&(h()&&i&&(clearTimeout(l.current),c(Yi(!1))),m())}),[p,m,c,h,n,i,r,a,s])},Bs=({children:t})=>(zs(),z(U.HY,{children:t})),Hs=(0,U.kr)({}),$s=n(2020),Vs=n(1791),qs=n(2079);function Ws(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=qs(t);for(r=0;r<i.length;r++)n=i[r],Vs(e).call(e,n)>=0||(o[n]=t[n]);return o}(t,e);if($s){var i=$s(t);for(r=0;r<i.length;r++)n=i[r],Vs(e).call(e,n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}const Ys=()=>Po().appContainerClassNames,Gs=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},Ks=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new(H())((e=>{dt()(e,t)}))},Js=t=>{requestAnimationFrame((async()=>{await Ks(180);const e="string"==typeof t?document.getElementById(t):t;St(e)}))},Xs=()=>{const{seamlyContainerElement:t}=Mo(),e=Qe();return[t,(0,Ne.I4)((t=>{e(Ji(t))}),[e])]},Qs=t=>(0,Ne.I4)((()=>{Js(t)}),[t]),Zs=()=>{const t=Ho();return Qs(t)};var tc=n(2250),ec=n.n(tc),nc=(0,U.kr)({});function rc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=rc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=rc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const ic=()=>{const{showFileUpload:t,entryMeta:{options:e,optionsOverride:n},options:{features:{uploads:r}}}=Mo(),{allowedMimeTypes:o,maxSize:i}=n.upload||{},{enabled:a,enabledFromEntry:s}=r||{},{allowedMimeTypes:c,maxSize:l}=oc(oc(oc({},e.upload||{allowedMimeTypes:[],maxSize:0}),o?{allowedMimeTypes:o}:{}),i?{maxSize:i}:{});return{showFileUpload:t,accountAllowsUploads:!!r,serviceAllowsUploads:s||a,allowedMimeTypes:c,maxSize:l}},ac=()=>{const{currentUploads:t}=Mo(),e=Qe(),n=(0,Ne.qp)(nc);return{uploadFile:(0,Ne.I4)((t=>{n(t)}),[n]),clearUploads:(0,Ne.I4)((()=>{e(Ei())}),[e]),currentUploads:t,isUploading:M()(t).call(t,(t=>t.uploading)),isComplete:ec()(t).call(t,(t=>t.complete))}};function sc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=sc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=sc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const lc=()=>{var t,e;const{t:n}=Ls(),{options:r}=Mo(),{panelActive:o,optionActive:i,userSelectedOptions:a,features:s}=r,{extraMenuItem:c,sendTranscript:l}=s,u={extraMenuItem:c,sendTranscript:l},f=t=>"extraMenuItem"===t?"Extra menu item":n(`options.${t}.menuTitle`),p=S()(t=C()(e=j()(u)).call(e,(t=>u[t]))).call(t,(t=>({name:t,title:f(t),available:u[t].enabled}))),d=c||l,h=Qe(),{get:v,set:y}=ds();return{allowOptionSelection:d,userSelectedOptions:a,features:s,menuOptions:p,initUserSelectedOptions:(0,Ne.I4)((()=>{const t=v("options")||{};h(oa(t))}),[v,h]),setUserSelectedOptions:(0,Ne.I4)((t=>{h(oa(t)),y("options",t)}),[y,h]),setUserSelectedOption:(0,Ne.I4)(((t,e)=>{const n=v("options")||{};y("options",cc(cc({},n),{},{[t]:e})),h(ra({option:t,value:e}))}),[h,v,y]),showOption:t=>{h(ia(t))},hideOption:()=>{h(Pi())},panelActive:o,optionActive:i}},uc=()=>{const{optionsButtonId:t}=Mo();return{id:t,focusButton:Qs(t)}};var fc=(0,U.kr)(null),pc=()=>(0,Ne.qp)(fc);function dc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function hc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=dc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=dc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var vc=()=>{const t=Qe(),{idleDetachCountdown:e}=Mo(),{isOpen:n}=ls(),r=(0,Ne.sO)({});r.current={hasCountdown:e.hasCountdown,isActive:e.isActive,remaining:e.remaining,wasStopped:e.wasStopped,isOpen:n};const{emitEvent:o,sendAction:i}=ms(),{t:a}=Ls(),{sendAssertive:s,sendPolite:c}=Fs(),l=(0,Ne.I4)((t=>{const{isOpen:e}=r.current;e&&s(t)}),[s]),u=(0,Ne.I4)((t=>{const{isOpen:e}=r.current;e&&c(t)}),[c]),f=(0,Ne.I4)((e=>{const n=(t=>Math.ceil(t/1e3))(e),r=gt(n);t(Ni({delaySeconds:n,delayTime:r})),o("idleTimer.start"),l(`${a("idleDetachWarning.countdownTitle")} ${a("idleDetachWarning.countdownText")} ${a("idleDetachWarning.countdownTimer",r)}`)}),[t,o,l,a]),p=(0,Ne.I4)(((e,n)=>{const{hasCountdown:s,wasStopped:c}=r.current;s&&(e||(n||i({type:hn}),l(a("idleDetachWarning.notifyTransferText"))),c||o("idleTimer.stop"),t(ji()))}),[t,i,o,l,a]),d=(0,Ne.I4)((()=>{const{remaining:e}=r.current;if(e<=0)return;const n=e-1;n%10==0&&l(`${a("idleDetachWarning.countdownText")} ${a("idleDetachWarning.countdownTimer",gt(n))}`),t(ki())}),[t,l,a]),h=(0,Ne.I4)((()=>{const{isActive:e,remaining:n}=r.current;e&&(t(aa()),n&&(o("idleTimer.stop"),u(a("idleDetachWarning.srCountDownStoppedText"))))}),[t,o,u,a]);return hc(hc({},e),{},{initCountdown:f,endCountdown:p,decrementCountdown:d,stopCountdown:h})},yc=()=>{const t=Qe(),e=Mo().resumeConversationPrompt,{sendAction:n}=ms(),{t:r}=Ls(),{sendAssertive:o}=Fs();return{continueChat:()=>{n({type:vn,body:{type:"resume_conversation_prompt"}}),t(Ii())},hasPrompt:e,restartChat:()=>{o(r("resumeConversationPrompt.srNotifyRestartText")),n({type:hn}),t(Ii())}}};const mc=()=>{const[t]=(0,Ne.eJ)((()=>kt()));return t},gc=t=>{const e=(0,Ne.sO)(null);e.current=t;const n="function"==typeof t;return(0,Ne.Ye)((()=>n?function(){return e.current(...arguments)}:void 0),[n])},bc=(t,e)=>{const n=ps();(0,Ne.d4)((()=>{if(n.connectionInfo&&n.conversation?.channel){const{channel:r}=n.conversation;r.onMessage=(n,r)=>(e&&!e({type:n,payload:r})||t({type:n,payload:r}),r)}}),[t,e,n.connectionInfo,n.conversation])};function _c(){const{sendAction:t}=ms(),e=Qe(),n=(0,Ne.I4)((function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn;t({type:mn,body:{enabled:!0,locale:n,source:r}}),e(Xa(n)),e(ns())}),[t,e]),r=(0,Ne.I4)((()=>{t({type:mn,body:{enabled:!1}}),e(Qa())}),[t,e]),{languages:o,isActive:i,isAvailable:a,currentLocale:s}=Ve((t=>{let{translations:e}=t;return e}));return{languages:o,isActive:i,isAvailable:a,currentLocale:s,enableTranslations:n,disableTranslations:r}}function wc(t){const{translatedBody:e,body:n}=t.payload?"participant"===t.type?{body:null===(r=t.payload)||void 0===r?void 0:r.participant.introduction,translatedBody:null===(i=null===(o=t.payload)||void 0===o?void 0:o.participant)||void 0===i?void 0:i.translatedIntroduction}:{body:t.payload.body,translatedBody:t.payload.translatedBody}:{body:void 0,translatedBody:void 0};var r,o,i;const a=!!e,s=Ve((t=>To((t=>t.translations.translatedEventGroups),(e=>{var n;return ec()(n=N()(e)).call(n,(e=>{var n;return!k()(e).call(e,null===(n=null==t?void 0:t.payload)||void 0===n?void 0:n.id)}))})))(t));return{body:a&&s?null==e?void 0:e.data:n,hasTranslation:a,isTranslated:s&&a,locale:null==e?void 0:e.locale}}function xc(){const t=Ve((t=>{let{translations:e}=t;return e.containerId}));return{id:t,focusContainer:Qs(t)}}function Sc(t){const{languages:e}=_c();return(0,Ne.Ye)((()=>{var n;return null===(n=null==e?void 0:mi()(e).call(e,(e=>e.locale===t)))||void 0===n?void 0:n.nativeName}),[t,e])}var Oc=n(3356),Cc=n.n(Oc);const Ec=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 S()(t=C()(e=Cc()(n=S()(r=C()(o=S()(i=Cc()(s).call(s)).call(i,(t=>{var e;return"object"==typeof t?S()(e=L()(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=>V()(t).call(t,et)>-1?t:[et,t].join("-"))).join(" ")};var Tc=t=>{let{eventPayload:e}=t;const{t:n}=Ls(),{fromClient:r,participant:o}=e,i=(t=>Mo().participantInfo.participants[t])(o)||{},{messages:a}=Po(),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(z("span",{className:Ec("message__avatar"),children:z("img",{src:i.avatar,className:Ec("avatar"),alt:""})})),l&&u.push(z("span",{className:Ec("message__author-name"),children:s})),u.length>0&&z("div",{className:Ec("message__author"),children:u})};const Ac=["showParticipant","event","type","modifiers","children","bodyProps","info"];function jc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ic(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=jc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=jc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var kc=function(t){let{showParticipant:e=!0,event:n,type:r,modifiers:o,children:i,bodyProps:a={},info:s}=t,c=Ws(t,Ac);const l=Gs(n),{hasTranslation:u,isTranslated:f,locale:p}=wc(n);var d;(r&&l.push(`message--type-${r}`),o)&&("string"==typeof o&&(o=C()(d=o.split(" ")).call(d,(t=>t.length))),T()(o).call(o,(t=>{l.push(`message--${t}`)})));return f&&l.push("message--is-translated"),u&&l.push("message--has-translation"),f&&(a=Ic(Ic({},a),{},{lang:p})),z(U.HY,{children:z("div",Ic(Ic({className:Ec(l)},c),{},{children:[e&&z(Tc,{eventPayload:n.payload}),z("div",Ic(Ic({className:Ec("message__body")},a),{},{children:i})),s&&z("div",{"aria-hidden":"true",className:Ec("message__info"),children:s})]}))})};function Pc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=Pc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Pc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Rc=t=>{let{id:e,action:n,buttonText:r,description:o,hasFocus:i,image:a,title:s,isCarouselItem:c}=t;const l=(0,Ne.sO)(null),{sendMessage:u,sendAction:f,emitEvent:p}=ms(),d=mc(),h=(0,Ne.sO)(),v=n.type===En?"a":"button",y=(0,Ne.I4)((()=>p("action.click_card",{type:gn,originMessage:e,action:n})),[p,e,n]),m=(0,Ne.I4)((()=>{if(y(),"ask"===n.type)u({body:n.ask});else if("topic"===n.type){const{topic:t,fallbackMessage:e}=n;f({type:yn,body:{name:t,fallbackMessage:e}})}}),[u,n,f,y]),g=(0,Ne.Ye)((()=>n.type===En?{href:n.link,rel:"noopener noreferrer",target:n.newTab?"_blank":"_self",onClick:y}:{onClick:m}),[n,m,y]);return(0,Ne.d4)((()=>{c&&(i&&h.current?window.requestAnimationFrame((()=>l.current.focus())):l.current.blur()),h.current=!0}),[i,c]),z("div",{className:Ec("card__wrapper"),id:e,tabIndex:"-1",ref:l,children:[z("img",{className:Ec("card__image"),src:a,alt:""}),z("div",{className:Ec("card__content"),id:e,children:[s&&z("h2",{className:Ec("card__title"),children:s}),o&&z("div",{className:Ec("card__description"),dangerouslySetInnerHTML:{__html:o}}),z(v,Nc(Nc({tabIndex:c&&!i?"-1":void 0,className:Ec("button","button--primary"),"aria-describedby":d},g),{},{children:r}))]})]})};function Mc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Mc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Mc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Lc=n(2320),Uc=n.n(Lc);function Fc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function zc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Fc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Fc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Bc(t){let{item:e,items:n,index:r,isActive:o}=t;const{t:i}=Ls();return z("div",{className:Ec("carousel-item",`carousel-item--${e.type}`),role:"group","aria-roledescription":"slide","aria-label":i("carousel.slide.label",{index:r+1,total:n.length}),children:z(Rc,zc(zc({},e),{},{isCarouselItem:!0,hasFocus:o}))})}const Hc={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 version="1.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 32 32" enable-background="new 0 0 32 32" xml:space="preserve">\n<path fill="#4A48C1" d="M10,14.8c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S11.1,14.8,10,14.8z M15.9,14.8c1.1,0,2-0.9,2-2s-0.9-2-2-2\n\ts-2,0.9-2,2S14.8,14.8,15.9,14.8z M21.8,10.8c-1.1,0-2,0.9-2,2s0.9,2,2,2s2-0.9,2-2S22.9,10.8,21.8,10.8z M21.3,18.1H10.7\n\tC11.7,23.9,20.2,23.9,21.3,18.1z"/>\n</svg>\n',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',check32:'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="32px"\n height="32px"\n x="0px"\n y="0px"\n viewBox="0 0 32 32"\n>\n <path\n fill="currentColor"\n d="M22.9,9.3l-9.3,9.3l-3.2-3.2c-0.9-0.9-2.3-0.9-3.2,0l0,0c-0.9,0.9-0.9,2.3,0,3.2l3.2,3.2l0,0l1.6,1.6\n\tc0.9,0.9,2.3,0.9,3.2,0l1.6-1.6l9.3-9.3c0.9-0.9,0.9-2.3,0-3.2l0,0C25.2,8.4,23.7,8.4,22.9,9.3z"\n />\n</svg>\n',check16:'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="16px"\n height="16px"\n x="0px"\n y="0px"\n viewBox="0 0 16 16"\n>\n <path\n fill="currentColor"\n d="M11.6,4.3l-5,5L4.9,7.5C4.4,7,3.7,7,3.2,7.5l0,0C2.8,8,2.8,8.7,3.2,9.2l1.7,1.7l0,0l0.8,0.8\n\tc0.5,0.5,1.2,0.5,1.7,0l0.8-0.8l5-5c0.5-0.5,0.5-1.2,0-1.7l0,0C12.8,3.8,12.1,3.8,11.6,4.3z"\n />\n</svg>\n'};var $c=t=>{let{name:e,size:n="32",className:r,alt:o}=t;const i=`${e}${n}`;return z(U.HY,{children:[z("div",{"aria-hidden":"true",className:r||Ec("icon"),dangerouslySetInnerHTML:{__html:Hc[i]}}),o&&z("span",{className:Ec("visually-hidden"),children:o})]})};function Vc(t){let{items:e,currentIndex:n,onChange:r,children:o}=t;const{t:i}=Ls(),a=e.length;return z("div",{className:Ec("carousel-controls"),children:[z("button",{className:Ec("button","button--previous"),"aria-label":i("carousel.controls.previous"),onClick:()=>{r((n-1+a)%a)},children:z($c,{name:"arrowLeft",size:"16"})}),o,z("button",{className:Ec("button","button--next"),"aria-label":i("carousel.controls.next"),onClick:()=>{r((n+1)%a)},children:z($c,{name:"arrowRight",size:"16"})})]})}function qc(t){let{items:e,currentIndex:n,onChange:r,getItemKey:o,getItemLabel:i}=t;const a=e.length,s=(0,Ne.I4)((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 z("div",{className:Ec("carousel-pagination__wrapper"),role:"group",children:z("ul",{className:Ec("carousel-pagination"),children:S()(e).call(e,((t,e)=>{const r=n===e;return z("li",{className:Ec("carousel-pagination__item",r?"is-active":void 0),children:z("button",{className:Ec("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-"))}))})})}const Wc=(t,e,n)=>`${n}${e}`,Yc=t=>t.label,Gc=t=>{let{target:e}=t;e.scrollLeft=0};function Kc(t){let{currentIndex:e,onChange:n,getItemKey:r=Wc,getItemLabel:o=Yc,items:i}=t;const a=mc(),s=i.length,[c,l]=(0,Ne.eJ)(Number(e||"0"));(0,Ne.d4)((()=>{l(Number(e||"0"))}),[l,e]);const u=(0,Ne.sO)([]);u.current=(0,Ne.Ye)((()=>{var t,e;return S()(t=Uc()(e=Array(s)).call(e,1)).call(t,(()=>(0,U.Vf)()))}),[s]);const f=(0,Ne.sO)(!0),p=(0,Ne.sO)();return p.current=n,(0,Ne.d4)((()=>{f.current?f.current=!1:p.current&&p.current(c)}),[c]),z("div",{className:Ec("carousel"),role:"group","aria-roledescription":"carousel",children:[z("div",{className:Ec("carousel__slides-wrapper"),onScroll:Gc,children:z("div",{id:a,className:Ec("carousel__slides"),style:{width:100*s+"%",left:-100*c+"%"},"aria-live":"polite","aria-atomic":"false",children:S()(i).call(i,((t,e)=>{const n=c===e;return z("div",{ref:u.current[e],className:Ec("carousel__slide",n?"is-active":void 0),"aria-hidden":n?void 0:"true",children:z(Bc,{item:t,items:i,currentIndex:c,index:e,isActive:n})},r(t,e,"item-"))}))})}),z("div",{className:Ec("carousel__controls"),children:z(Vc,{currentIndex:c,items:i,onChange:l,controlId:a,children:z("div",{className:Ec("carousel__pagination"),children:z(qc,{currentIndex:c,items:i,onChange:l,getItemKey:r,getItemLabel:o})})})})]})}const Jc=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return`${n}${t.title}:${e}`},Xc=t=>t.title;const Qc=["event","children"];function Zc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function tl(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Zc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Zc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const el=t=>{const{payload:e}=t,[n,r]=(0,Ne.eJ)(!1),{sendAction:o,addMessageBubble:i,addDivider:a}=ms(),{activeServiceSessionId:s}=Mo().serviceInfo,c=Ve($o),{body:l}=wc(t),{service:u}=e,f=(0,Ne.Ye)((()=>tl(tl({},t),{},{payload:tl(tl({},t.payload),{},{body:t.payload.body?.prompt,translatedBody:t.payload.translatedBody&&tl(tl({},t.payload.translatedBody),{},{data:t.payload.translatedBody.data.prompt})})})),[t]),p=l.chooseAgain&&s===u.serviceSessionId&&e.id!==c;return(0,Ne.d4)((()=>{r(e.id===c)}),[e,c]),{body:l,subEvent:f,showOptions:n,chooseAgain:p,onChoiceClickHandler:t=>{const n=kt();p&&a("new_topic",n),i(t.text,n),o({type:"pick_choice",originMessage:e.id,choice:{id:t.id,text:t.text,chooseAgain:p},transactionId:n}),r(!1)},onChooseAgainClickHandler:()=>{r((t=>!t))}}};const nl=t=>`suggestions__item--${String(t).toLowerCase().replace(/[^a-z0-9_\\-]/,"")}`;var rl=t=>{let{id:e,categories:n=[],question:r,onClick:o,hasIcon:i}=t;const a=(0,Ne.Ye)((()=>["suggestions__item",...S()(n).call(n,nl)]),[n]),s=(0,Ne.I4)((()=>{o&&o({id:e,question:r})}),[e,r,o]);return z("li",{className:Ec(a),children:z("button",{type:"button",onClick:s,className:Ec("button","button--primary"),children:[i&&z($c,{name:"chevronRight",size:"8"}),r]})})};function ol(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var il=t=>{let{className:e,suggestions:n=[],onClickSuggestion:r,hasIcon:o=!0}=t;return z("ul",{className:Ec("suggestions__list",e),children:S()(n).call(n,(t=>z(rl,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=ol(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=ol(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({hasIcon:o,onClick:r},t),t.id)))})};const al=["event"];function sl(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function cl(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=sl(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=sl(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var ll=t=>{const{sendAction:e}=ms();return n=>{n.target&&n.target.dataset.linkId&&e({type:"navigate",originMessage:t,link:{id:n.target.dataset.linkId,url:n.target.getAttribute("href")}})}};function ul(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function fl(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=ul(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=ul(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function pl(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),f=n?{dangerouslySetInnerHTML:{__html:n}}:{children:e};return z("div",{className:Ec("divider",l&&`divider--type-${l}`,r),children:[u&&z("span",{className:Ec("divider__graphic"),children:a?z($c,{name:a,size:s,className:c}):z("img",{src:o,className:Ec({icon:"icon"===i,avatar:"avatar"===i},c)})}),z("div",fl({className:Ec("divider__body")},f))]})}const dl={[On.new_topic]:"newtopic"};const hl=["event"];function vl(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}const yl={default:t=>{let{event:e}=t;const{t:n}=Ls(),{subtype:r}=e.payload.body;return z(pl,{dividerType:dl[On[r]],iconName:On[r],children:z("p",{children:n(`dividerKeys.${On[r]}`)})})},[On.new_translation]:t=>{let{event:e}=t;const{t:n}=Ls(),r=Uo(),{body:{restartButtonText:o,translationEnabled:i,translationLocale:a,text:s,title:c},id:l}=e.payload,{enableTranslations:u}=_c(),f=Ve((t=>t.translations.translatedEventGroups)),p=Qe(),d=(0,Ne.I4)((()=>{f[l]?p(Za({events:r,id:l})):p(ts({events:r,id:l}))}),[p,r,l,f]);return z(pl,{iconName:"newTranslation",dividerType:"newtranslation",children:[z("p",{className:Ec("divider__title"),children:c}),s&&z("p",{children:s}),i?z(U.HY,{children:z("button",{className:Ec("button","button--secondary"),onClick:d,children:n(f[l]?"translations.toggle.showTranslationsButtonText":"translations.toggle.hideTranslationsButtonText")})}):z("button",{className:Ec("button","button--secondary"),onClick:()=>{u(a)},children:o})]})}};const ml={month:"long",day:"numeric",year:"numeric"},gl={hour:"numeric",minute:"numeric"};var bl=t=>{let{event:e}=t;const n=(()=>{const[t,e]=(0,Ne._Y)((t=>t+1),0);return(0,Ne.I4)((()=>{dt()((()=>{e()}))}),[])})(),{date:r,time:o,timeUntilMidnight:i,srText:a}=(t=>{const{t:e}=Ls(),n=Po()?.context?.locale??[],r=new Date(t),o=new Date,i=new Date(o);i.setHours(24,0,0,0);const a=i-o,s=r.toString(),c=new Intl.DateTimeFormat(n,gl).format(r);let l=((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})(r,o);switch(l){case"today":l=e("dateTime.today");break;case"yesterday":l=e("dateTime.yesterday");break;default:l=new Intl.DateTimeFormat(n,ml).format(r)}return{date:l,srText:e("dateTime.srText",{date:l,time:c}),time:c,fullDateTime:s,timeUntilMidnight:a}})(mt(e.timeIndicator));return(0,Ne.d4)((()=>{const t=dt()((()=>{n()}),i);return()=>{clearTimeout(t)}}),[n,i]),z(pl,{dividerType:"time-indicator",children:[z("p",{className:Ec("divider__time"),"aria-hidden":"true",children:[z("span",{children:r}),z("span",{children:o})]}),z("p",{className:Ec("visually-hidden"),children:a})]})},_l=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],wl=_l.join(","),xl="undefined"==typeof Element,Sl=xl?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ol=!xl&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},Cl=function(t,e,n){var r=Array.prototype.slice.apply(t.querySelectorAll(wl));return e&&Sl.call(t,wl)&&r.unshift(t),r.filter(n)},El=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({scopeParent:a,candidates:c})}else{Sl.call(a,wl)&&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 f=t(!0===l?a.children:l.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:a,candidates:f})}else i.unshift.apply(i,a.children)}}return o},Tl=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},Al=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},jl=function(t){return"INPUT"===t.tagName},Il=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height;return 0===n&&0===r},kl=function(t,e){return!(e.disabled||function(t){return jl(t)&&"hidden"===t.type}(e)||function(t,e){var n=e.displayCheck,r=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var o=Sl.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Sl.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Il(t)}else{if("function"==typeof r){for(var i=t;t;){var a=t.parentElement,s=Ol(t);if(a&&!a.shadowRoot&&!0===r(a))return Il(t);t=t.assignedSlot?t.assignedSlot:a||s===t.ownerDocument?a:s.host}t=i}if(function(t){for(var e,n=Ol(t).host,r=!!(null!==(e=n)&&void 0!==e&&e.ownerDocument.contains(n)||t.ownerDocument.contains(t));!r&&n;){var o;r=!(null===(o=n=Ol(n).host)||void 0===o||!o.ownerDocument.contains(n))}return r}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}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!!Sl.call(e,"fieldset[disabled] *")||!r.contains(t)}return!0}e=e.parentElement}return!1}(e))},Pl=function(t,e){return!(function(t){return function(t){return jl(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||Ol(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)||Tl(e)<0||!kl(t,e))},Nl=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Rl=function t(e){var n=[],r=[];return e.forEach((function(e,o){var i=!!e.scopeParent,a=i?e.scopeParent:e,s=Tl(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(Al).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},Ml=function(t,e){var n;return n=(e=e||{}).getShadowRoot?El([t],e.includeContainer,{filter:Pl.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Nl}):Cl(t,e.includeContainer,Pl.bind(null,e)),Rl(n)},Dl=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Sl.call(t,wl)&&Pl(e,t)},Ll=_l.concat("iframe").join(","),Ul=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Sl.call(t,Ll)&&kl(e,t)};function Fl(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 zl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fl(Object(n),!0).forEach((function(e){Bl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bl(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hl=function(t){return"Tab"===t.key||9===t.keyCode},$l=function(t){return Hl(t)&&!t.shiftKey},Vl=function(t){return Hl(t)&&t.shiftKey},ql=function(t){return setTimeout(t,0)},Wl=function(t,e){var n=-1;return t.every((function(t,r){return!e(t)||(n=r,!1)})),n},Yl=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},Gl=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target},Kl=[];function Jl(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=Jl(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Jl(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Ql=t=>{var e;let{children:n,onClose:r,"aria-label":o,"aria-labelledby":i,fallBackFocusRef:a}=t;const s=mc(),c=(0,Ne.sO)(null),l=(0,Ne.sO)(null),[u,f]=(0,Ne.eJ)(!1);return(0,Ne.d4)((()=>{return u&&(l.current=(t=c.current,e={initialFocus:a&&a.current?a.current:null},r=(null==e?void 0:e.document)||document,o=(null==e?void 0:e.trapStack)||Kl,i=zl({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:$l,isKeyBackward:Vl},e),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},f=function(t,e,n){return t&&void 0!==t[e]?t[e]:i[n||e]},p=function(t){return s.containerGroups.findIndex((function(e){var n=e.container,r=e.tabbableNodes;return n.contains(t)||r.find((function(e){return e===t}))}))},d=function(t){var e=i[t];if("function"==typeof e){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];e=e.apply(void 0,o)}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=d("initialFocus");if(!1===t)return!1;if(void 0===t)if(p(r.activeElement)>=0)t=r.activeElement;else{var e=s.tabbableGroups[0];t=e&&e.firstTabbableNode||d("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},v=function(){if(s.containerGroups=s.containers.map((function(t){var e=Ml(t,i.tabbableOptions),n=function(t,e){return(e=e||{}).getShadowRoot?El([t],e.includeContainer,{filter:kl.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):Cl(t,e.includeContainer,kl.bind(null,e))}(t,i.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 Dl(t,i.tabbableOptions)})):n.slice(0,r).reverse().find((function(t){return Dl(t,i.tabbableOptions)}))}}})),s.tabbableGroups=s.containerGroups.filter((function(t){return t.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},y=function t(e){!1!==e&&e!==r.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!i.preventScroll}),s.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(h()))},m=function(t){var e=d("setReturnFocus",t);return e||!1!==e&&t},g=function(t){var e=Gl(t);p(e)>=0||(Yl(i.clickOutsideDeactivates,t)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Ul(e,i.tabbableOptions)}):Yl(i.allowOutsideClick,t)||t.preventDefault())},b=function(t){var e=Gl(t),n=p(e)>=0;n||e instanceof Document?n&&(s.mostRecentlyFocusedNode=e):(t.stopImmediatePropagation(),y(s.mostRecentlyFocusedNode||h()))},_=function(t){if(("Escape"===(e=t).key||"Esc"===e.key||27===e.keyCode)&&!1!==Yl(i.escapeDeactivates,t))return t.preventDefault(),void n.deactivate();var e;(i.isKeyForward(t)||i.isKeyBackward(t))&&function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Gl(t);v();var r=null;if(s.tabbableGroups.length>0){var o=p(n),a=o>=0?s.containerGroups[o]:void 0;if(o<0)r=e?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(e){var c=Wl(s.tabbableGroups,(function(t){var e=t.firstTabbableNode;return n===e}));if(c<0&&(a.container===n||Ul(n,i.tabbableOptions)&&!Dl(n,i.tabbableOptions)&&!a.nextTabbableNode(n,!1))&&(c=o),c>=0){var l=0===c?s.tabbableGroups.length-1:c-1;r=s.tabbableGroups[l].lastTabbableNode}else Hl(t)||(r=a.nextTabbableNode(n,!1))}else{var u=Wl(s.tabbableGroups,(function(t){var e=t.lastTabbableNode;return n===e}));if(u<0&&(a.container===n||Ul(n,i.tabbableOptions)&&!Dl(n,i.tabbableOptions)&&!a.nextTabbableNode(n))&&(u=o),u>=0){var f=u===s.tabbableGroups.length-1?0:u+1;r=s.tabbableGroups[f].firstTabbableNode}else Hl(t)||(r=a.nextTabbableNode(n))}}else r=d("fallbackFocus");r&&(Hl(t)&&t.preventDefault(),y(r))}(t,i.isKeyBackward(t))},w=function(t){var e=Gl(t);p(e)>=0||Yl(i.clickOutsideDeactivates,t)||Yl(i.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},x=function(){if(s.active)return function(t,e){if(t.length>0){var n=t[t.length-1];n!==e&&n.pause()}var r=t.indexOf(e);-1===r||t.splice(r,1),t.push(e)}(o,n),s.delayInitialFocusTimer=i.delayInitialFocus?ql((function(){y(h())})):y(h()),r.addEventListener("focusin",b,!0),r.addEventListener("mousedown",g,{capture:!0,passive:!1}),r.addEventListener("touchstart",g,{capture:!0,passive:!1}),r.addEventListener("click",w,{capture:!0,passive:!1}),r.addEventListener("keydown",_,{capture:!0,passive:!1}),n},S=function(){if(s.active)return r.removeEventListener("focusin",b,!0),r.removeEventListener("mousedown",g,!0),r.removeEventListener("touchstart",g,!0),r.removeEventListener("click",w,!0),r.removeEventListener("keydown",_,!0),n},n={get active(){return s.active},get paused(){return s.paused},activate:function(t){if(s.active)return this;var e=f(t,"onActivate"),n=f(t,"onPostActivate"),o=f(t,"checkCanFocusTrap");o||v(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=r.activeElement,e&&e();var i=function(){o&&v(),x(),n&&n()};return o?(o(s.containers.concat()).then(i,i),this):(i(),this)},deactivate:function(t){if(!s.active)return this;var e=zl({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},t);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,S(),s.active=!1,s.paused=!1,function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1),t.length>0&&t[t.length-1].unpause()}(o,n);var r=f(e,"onDeactivate"),a=f(e,"onPostDeactivate"),c=f(e,"checkCanReturnFocus"),l=f(e,"returnFocus","returnFocusOnDeactivate");r&&r();var u=function(){ql((function(){l&&y(m(s.nodeFocusedBeforeActivation)),a&&a()}))};return l&&c?(c(m(s.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(){return s.paused||!s.active||(s.paused=!0,S()),this},unpause:function(){return s.paused&&s.active?(s.paused=!1,v(),x(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return s.containers=e.map((function(t){return"string"==typeof t?r.querySelector(t):t})),s.active&&v(),this}},n.updateContainerElements(t),n),l.current.activate()),()=>{l.current&&l.current.deactivate()};var t,e,n,r,o,i,s,f,p,d,h,v,y,m,g,b,_,w,x,S}),[u,a]),(0,Ne.d4)((()=>{const t=(()=>{var t;const e=[],n=[];return T()(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"))})),()=>{T()(n).call(n,((t,n)=>{const r=e[n];null===r?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",r)}))}})();return()=>{t()}}),[u]),(0,Ne.d4)((()=>{u&&c.current.addEventListener("keydown",(t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&r()}))}),[u,r]),(0,Ne.bt)((()=>{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,f(!0),()=>{c.current&&(t.removeChild(c.current),c.current=null)}}),[o,i,s]),"function"==typeof n?n({onClose:r,modalRenderFn:t=>c.current&&(0,U.sY)(t,c.current)}):c.current&&(0,U.sY)(S()(e=(0,U.bR)(n)).call(e,(t=>(t.props=Xl(Xl({},t.props),{},{onClose:r}),t))),c.current)},Zl=t=>{let{url:e,description:n,onClose:r}=t;const{zIndex:o,layoutMode:i,namespace:a}=Po(),s=pc(),c=Ys(),l=(0,Ne.sO)(null),{t:u}=Ls(),f=["modal",`app--layout-${i}`,`namespace--${a}`,...c],p=t=>{t.stopPropagation()},d=()=>{r()},h=o?{zIndex:o+1}:void 0;return z(Ql,{onClose:r,"aria-label":u("lightbox.heading"),fallBackFocusRef:l,children:t=>{let{onClose:r,modalRenderFn:o}=t;return o((t=>z("div",{className:Ec(f),onClick:d,style:h,children:z("div",{className:Ec("modal__float"),tabIndex:"-1",onMouseDown:s,onKeyDown:s,onTouchStart:s,onMouseMove:s,onWheel:s,onPointerDown:s,onPointerMove:s,ref:l,children:[z("div",{className:Ec("modal__inner"),onClick:p,children:z("img",{className:Ec("modal__image"),src:e,alt:n})}),z("button",{type:"button",className:Ec("modal__close"),onClick:t,children:[z($c,{name:"close",size:"16"}),u("lightbox.closeLabel")]})]})}))(r))}})},tu=t=>{let{description:e,url:n}=t;const{t:r}=Ls(),[o,i]=(0,Ne.eJ)(!1);return z(U.HY,{children:[z("button",{type:"button",className:Ec("modal__enlarge"),onClick:()=>{i(!0)},children:[r("message.image.srTextEnlargeButtonLabel",{description:e}),z($c,{name:"enlarge",size:"32"})]}),o&&z(Zl,{url:n,description:e,onClose:()=>{i(!1)}})]})};const eu=["event","descriptorId"];function nu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ru(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=nu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=nu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const ou=["event"];function iu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function au(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=iu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=iu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const su=["event"];function cu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=cu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=cu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var uu=t=>{let{event:e}=t,n=Ws(t,su);const{body:r}=wc(e),o=ll(e.payload.id),i=(0,Ne.Ye)((()=>e.payload.optimisticallyInjected?{children:z("p",{children:r.text})}:{bodyProps:{dangerouslySetInnerHTML:{__html:r.text}}}),[r,e]);return z(kc,lu(lu({type:"text",event:e,onClick:o},n),i))};const fu=["event"];function pu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function du(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=pu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=pu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const hu=["event"];function vu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function yu(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=vu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=vu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const mu=t=>{let{children:e,url:n,target:r}=t;return n?z("a",{href:n,download:!0,target:r||void 0,className:Ec(["download","download-link"]),children:e}):z("span",{className:Ec("download"),children:e})};const gu=["event","descriptorId"];function bu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=bu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=bu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function wu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function xu(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=wu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=wu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Su={message:{choice_prompt:t=>{var e,n;let{event:r,children:o}=t,i=Ws(t,Qc);const{t:a}=Ls(),s=mc(),{body:c,subEvent:l,showOptions:u,chooseAgain:f,onChoiceClickHandler:p,onChooseAgainClickHandler:d}=el(r);return z(U.HY,{children:[S()(e=(0,U.bR)(o)).call(e,(t=>(t.props=tl(tl({},t.props),{},{event:l,descriptorId:s,showTranslationToggle:!1}),t))),f&&z("button",{type:"button",className:Ec("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"),z($c,{name:"chevronDown",size:"8"})]}),u&&z(kc,tl(tl({type:"choice-prompt",showParticipant:!1,event:r},i),{},{children:z("ul",{className:Ec("choice-prompt","choice-prompt--many"),children:S()(n=c.choices).call(n,(t=>z("li",{className:Ec("choice-prompt__item",{[`choice-prompt__item--${t.category}`]:t.category}),children:z("button",{type:"button",className:Ec("button","button--primary"),onClick:()=>{p(t)},children:t.text})},t.id)))})}))]})},text:uu,image:t=>{let{event:e,descriptorId:n}=t,r=Ws(t,eu);const{body:o}=wc(e),{description:i,url:a,isZoomable:s}=o,[c,l]=(0,Ne.eJ)(!1),u=Qe();return z(kc,ru(ru({event:e,type:"image"},r),{},{children:[z("img",{src:a,id:n,alt:i,onLoad:()=>{u(Gi(e.payload.id)),l(!0)}}),s&&c&&z(tu,{description:i,url:a})]}))},splash:t=>{let{event:e}=t,n=Ws(t,ou);const{payload:r}=e,{body:o}=wc(e),i=ll(r.id);return z(kc,au(au({type:"splash",event:e,onClick:i},n),{},{bodyProps:{dangerouslySetInnerHTML:{__html:o.text}}}))},video:t=>{let{event:e,descriptorId:n}=t,r=Ws(t,gu);const{body:o}=wc(e),{description:i,url:a}=o;return Gs(e).push("message--type-video"),z(kc,_u(_u({event:e,type:"video"},r),{},{children:[z("div",{id:n,className:Ec("visually-hidden"),children:i}),z("iframe",{title:i,src:a,allow:"autoplay; encrypted-media",allowFullScreen:!0})]}))},upload:t=>{let{event:e}=t,n=Ws(t,hu);const{t:r}=Ls(),{body:o}=wc(e),{fromClient:i}=e.payload,{filename:a,url:s}=o,c=(0,Ne.Ye)((()=>r(s?"fileUpload.srFileDownloadText":"fileUpload.srFileUploadedText",{fileName:a})),[s,a,r]);return z(kc,yu(yu({event:e,type:"upload"},n),{},{children:z(mu,{url:s,target:i?void 0:"_blank",children:[z($c,{name:"download",size:"16"}),z("span",{"aria-hidden":"true",className:Ec("file-download"),children:a}),z("span",{className:Ec("visually-hidden"),children:c})]})}))},cta:t=>{let{event:e}=t;const{body:n}=wc(e),r=ll(e.payload.id),{emitEvent:o}=ms(),i=mc(),a=(0,Ne.I4)((()=>o(`action.${gn}`,{type:gn,originMessage:e.payload.id,link:{url:n.buttonLink}})),[o,n,e]);return z(kc,{type:"cta",event:e,children:[z("div",{className:Ec("cta__content"),id:i,dangerouslySetInnerHTML:{__html:n.description},onClick:r}),z("a",{className:Ec("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{body:n}=wc(e),r=n.cards;return z(kc,{event:e,modifiers:"type-carousel",children:z(Kc,{items:r,ItemComponent:Bc,getItemKey:Jc,getItemLabel:Xc})})},card:t=>{let{event:e}=t;const{body:n}=wc(e),r=mc();return z(kc,{type:"card",event:e,children:z(Rc,Dc({id:r},n))})}},info:{text:uu,divider:t=>{let{event:e}=t,n=Ws(t,hl);return z(yl[On[e.payload.body.subtype]]||yl.default,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=vl(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=vl(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({event:e},n))},translation:t=>{let{event:e}=t,n=Ws(t,fu);const{t:r}=Ls(),{body:o}=wc(e);return z(kc,du(du({type:"text",event:e},n),{},{children:r(o.key.join("."),o.variables)}))},timeIndicator:bl},participant:{participant:t=>{let{event:e}=t;const{participant:n}=e.payload,{body:r}=wc(e);return r?z(pl,{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=Ws(t,al);const[r,o]=(0,Ne.eJ)(!0),i=Qe(),a=ni(),{sendAction:s,addMessageBubble:c}=ms(),{suggestions:l,payload:u}=(t=>{const{payload:e}=t,{body:n}=wc(t);return{suggestions:n,payload:e}})(e),{showSuggestions:f}=Po(),p=Uo(),{t:d}=Ls(),h=d("suggestions.headingText"),v=d("suggestions.footerText"),y=(0,Ne.Ye)((()=>M()(p).call(p,(t=>{let{payload:e}=t;return e?.transactionLast}))),[p]),m=(0,Ne.I4)((t=>{let{id:e,question:n}=t;o(!1),i(ii(!0)),s({type:fn,originMessage:u.id,body:{type:"faqclick",body:{faqId:e,faqQuestion:n}}}),c(n)}),[i,s,u.id,c]);return r&&!a&&y&&f?z("div",{className:Ec("suggestions","suggestions--conversation"),children:[h&&z("p",{className:Ec("suggestions__heading"),children:h}),z(kc,cl(cl({type:"suggestions",showParticipant:!1,event:e},n),{},{children:[z(il,{className:"suggestions__list--conversation",onClickSuggestion:m,suggestions:l}),v&&z("p",{className:Ec("suggestions__footer"),children:v})]}))]}):null}}};var Ou=t=>{let{children:e}=t;const{customComponents:n}=Po(),r=(0,Ne.Ye)((()=>{var t;return Q()(t=j()(Su)).call(t,((t,e)=>xu(xu({},t),{},{[e]:xu(xu({},Su[e]),n?n[e]:{})})),{fallback:uu})}),[n]);return z(Hs.Provider,{value:r,children:e})},Cu=({children:t})=>{const{isMinimized:e}=ls(),n=(0,Ne.sO)(0),{sendAction:r}=ms(),{hasCountdown:o,isActive:i,stopCountdown:a}=vc(),s=(0,Ne.I4)((()=>{if(e)return;const t=(new Date).getTime(),s=()=>{r({type:"interactivity_update"}),n.current=t};o&&i&&(s(),a()),t-n.current>15e3&&s()}),[r,o,i,a,e]);return z("div",Object.assign({className:Ec("activity-monitor"),tabIndex:-1,onMouseDown:s,onKeyUp:s,onTouchStart:s,onMouseMove:s,onWheel:s,onPointerDown:s,onPointerMove:s},{children:z(fc.Provider,Object.assign({value:s},{children:t}))}))};const Eu=["text","choice_prompt","image","video"];var Tu=()=>{const t=ps(),e=(0,Ne.sO)(),n=(0,Ne.sO)(),r=Qe(),o=Uo(),i=(0,Ne.qp)(rn),a=(0,Ne.sO)(null),{initCountdown:c,endCountdown:l}=vc(),{emitEvent:u}=ms();return(0,Ne.d4)((()=>{if(t.connectionInfo&&t.conversation.socket){const{socket:e}=t.conversation;e.onError((t=>{const e=new ga(t);r(li({name:e.name,message:e.message,langKey:e.langKey,originalEvent:e.originalEvent,originalError:e.originalError})),r(Ti())})),e.onOpen((()=>{r(ui())}))}}),[t,t.connectionInfo,t.conversation.socket,r]),(0,Ne.d4)((()=>{if(t.connectionInfo&&t.conversation.channel){const{channel:e}=t.conversation;return()=>{null==e||e.leave()}}return()=>{}}),[t,t.connectionInfo,t.conversation]),(0,Ne.d4)((()=>{t.conversation.onConnection((t=>{let{currentState:e}=t;if("join_channel_erred"===e){const t=new lt;r(li({name:t.name,message:t.message,langKey:t.langKey,originalEvent:t.originalEvent,originalError:t.originalError,action:t.action}))}}))}),[t.conversation,r]),(0,Ne.d4)((()=>{t.connectionInfo&&t.conversation.onConnection((e=>{let{connected:n}=e;if(!n)return!1;const{channel:o}=t.conversation,a=t=>{const{payload:e}=t;if(!e||!e.participant)return;const{fromClient:n,participant:o}=e;!n&&"string"!=typeof o&&(null==o?void 0:o.name)&&r($i(o.name)),r(Ki({participant:o,fromClient:n})),"string"!=typeof o&&o.introduction&&r(Ci(W()(W()({},t),{payload:W()(W()({},e),{type:"participant"})})))};return o.onMessage=(t,e)=>{const n={type:t,payload:e};switch(t){case"ui":switch(e.state&&e.state.hasOwnProperty("loading")&&r(Yi(e.state.loading)),e.type){case"idle_detach_countdown":c(e.body.duration);break;case"idle_detach_countdown_elapsed":l(void 0,!0);break;case"resume_conversation_prompt":r(Ri());break;case"translation_proposal":r(es(e.body));break;case"user_first_response":r(ii(!0)),i.emit("system.userFirstResponse",e.body)}break;case"message":switch(a(e),e.type){case"text":case"choice_prompt":case"splash":case"image":case"upload":case"video":case"cta":case"custom":case"carousel":case"card":e.service&&e.service.serviceSessionId&&r(Ui(e.service.serviceSessionId)),r(Ci(n))}break;case"participant":a(n);break;case"service_data":e.persist&&r(Xi(e));break;case"ack":r(Oi(n));break;case"system":if("service_changed"===e.type){const{serviceSettings:t}=e,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&V()(e).call(e,r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof s()){var o=0;for(r=s()(t);o<r.length;o++)V()(e).call(e,r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(e,["serviceSettings"]),{entry:o}=t,{upload:i}=o.options;r(Bi({key:Cn,enabled:!(!i||!i.enabled)})),r(Qi(o)),e.serviceSessionId&&r(Ui(e.serviceSessionId)),u("system.serviceChanged",n)}break;case"info":"divider"!==e.type&&"text"!==e.type&&"translation"!==e.type||r(Ci(n));break;case"error":switch(e.type){case"find_conversation_erred":const t=new ut(n);r(li({name:t.name,action:t.action,message:t.message,originalEvent:t.originalEvent,originalError:t.originalError}));break;case"conversation_erred":const e=new lt(n);r(li({name:e.name,message:e.message,langKey:e.langKey,originalEvent:e.originalEvent,originalError:e.originalError,action:e.action}))}}return e},!0}))}),[t,t.connectionInfo,t.conversation.channel,r,u,l,i,c]),(0,Ne.d4)((()=>t.connectionInfo?(t.conversation.onConnection((e=>{let{connected:r}=e;if(!r)return!1;const{channel:o}=t.conversation;return n.current=o.on("message",(t=>k()(Eu).call(Eu,t.type)?(t.id!==a.current&&i.emit("message",t),a.current=t.id,t):t)),!0})),()=>{var e;null===(e=t.conversation.channel)||void 0===e||e.off("message",n.current)}):()=>{}),[t,t.connectionInfo,t.conversation.channel,i]),(0,Ne.d4)((()=>t.connectionInfo?(t.conversation.onConnection((n=>{let{connected:i}=n;return!!i&&(e.current=t.conversation.channel.on("sync",(e=>{var n;const i=o[o.length-1],a=null===(n=null==e?void 0:e.lastEvent)||void 0===n?void 0:n.id;return i&&a===i.payload.id?e:t.getConversation().then((t=>{t&&r(qi(t))})).catch((t=>{r(li({name:null==t?void 0:t.name,message:null==t?void 0:t.message,langKey:null==t?void 0:t.langKey,action:null==t?void 0:t.action,originalEvent:null==t?void 0:t.originalEvent,originalError:null==t?void 0:t.originalError}))}))})),!0)})),()=>{var n;null===(n=t.conversation.channel)||void 0===n||n.off("sync",e.current)}):()=>{}),[t,t.connectionInfo,t.conversation.channel,o,r]),null},Au=t=>{let{children:e}=t;const{t:n}=Ls(),r=Qe(),o=ps(),{addUploadBubble:i}=ms();return z(nc.Provider,{value:t=>{const e=kt(),a=o.uploadFile(t,(t=>{r(ea({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(Zi(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(ta({fileId:e,errorText:o}))}));r(Mi({fileId:e,fileName:t.name,uploadHandle:a}))},children:e})},ju=n(7293),Iu=n.n(ju),ku=()=>{const{hasCountdown:t,isActive:e,remaining:n,decrementCountdown:r}=vc();return((t,e)=>{const n=(0,Ne.sO)(t);(0,Ne.d4)((()=>{n.current=t}),[t]),(0,Ne.d4)((()=>{if(null!==e){const t=Iu()((function(){n.current()}),e);return()=>clearInterval(t)}}),[e])})((()=>{r()}),t&&e&&n>0?1e3:null),null},Pu=()=>{const{initUserSelectedOptions:t}=lc(),e=(0,Ne.sO)(!1),n=Po();return(0,Ne.d4)((()=>{n.api&&!e.current&&(e.current=!0,t())}),[t,n]),null};const Nu=To((t=>{let{interrupt:e}=t;return e}),(t=>{let{error:e}=t;return e}));function Ru(){const{t:t}=Ls(),e=Ve(Nu);return{hasInterrupt:Boolean(e),meta:(0,Ne.Ye)((()=>{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 W()(W()(W()(W()({},n?{title:o,message:i,srText:a}:{}),r?{action:r}:{}),r&&n?{buttonText:s}:{}),{originalError:e})}),[t,e]),error:e}}function Mu(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=(0,Ne.qp)(rn),o=(0,Ne.sO)();o.current=e,(0,Ne.d4)((()=>{if(!ec()(n).call(n,Boolean))return;const e=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return o.current?.(...e)};return r.emit("function.register",t,e),()=>r.emit("function.unregister",t,e)}),[r,t,...n])}var Du=()=>{const t=Po(),{sendMessage:e,sendContext:n,sendAction:r}=ms(),o=Qe(),{setVisibility:i,visible:a}=ls(),s=(0,Ne.sO)(a),c=(0,Ne.qp)(rn),l=ps(),u=Bo(),f=(0,Ne.sO)(null),p=(0,Ne.sO)(null),{isInline:d,isResolving:h}=Wo(),{hasInterrupt:v}=Ru(),y=(()=>{const{get:t}=ds();return t?t("conversationUrl"):null})(),m=(0,Ne.sO)(null),g=pc(),{enableTranslations:b,disableTranslations:_}=_c();return(0,Ne.d4)((()=>{s.current=a}),[a]),Mu("askText",(t=>{e({body:t})}),[l?.send]),Mu("setVariables",(t=>{n({variables:t})}),[l?.send]),Mu("getVisibility",(t=>{t?t(s.current):console.warn("A callback function is required for the getVisibility action.")})),Mu("setVisibility",(t=>{var e;k()(e=N()(Io)).call(e,t)?(g(),i(t)):console.error('Requested visibility states should be "open", "minimized" ,"hidden" or null.')}),[t?.api]),Mu("sendCustomAction",((t,e)=>{r({type:"custom",body:{type:t,body:e}})}),[l.send]),Mu("setTopic",(t=>{let{name:e,fallbackMessage:n,userTriggered:i}=t;i&&o(va({showSuggestions:!1})),e&&n?r({type:yn,body:{name:e,fallbackMessage:n,participant:i?rt:void 0}}):console.warn("A name and a fallbackMessage are required for the setTopic action.")}),[l.send]),Mu("setTranslation",(t=>{let{enabled:e,locale:n}=t;e?b(n,"window_api"):_()}),[l.send]),(0,Ne.d4)((()=>{h||v||(m.current&&m.current!==y&&c.emit("unreadMessageCount",u),a===Io.open&&a!==p.current&&0!==f.current&&c.emit("unreadMessageCount",0),a!==Io.open&&u!==f.current&&c.emit("unreadMessageCount",u),p.current=a,f.current=u,m.current=y)}),[u,a,c,d,h,v,y]),null},Lu=t=>{let{children:e}=t;const n=(0,Ne.qp)(rn),[r,o]=(0,Ne.eJ)({}),i=(0,Ne.sO)(!0),a=(0,Ne.I4)((t=>{i.current&&(o(t),n.emit("aria-live",t))}),[o,n]);(0,Ne.d4)((()=>{let t=null;return r&&r.messageText&&(t=dt()((()=>{a({}),clearTimeout(t)}),500)),()=>{clearTimeout(t)}}),[r,a]),(0,Ne.d4)((()=>()=>{i.current=!1}),[]);const{ariaLive:s,messageText:c}=r;return z(Us.Provider,{value:a,children:[e,z("div",{className:Ec("app__live-container"),children:[z("div",{"aria-live":"assertive","aria-atomic":"true",className:Ec("visually-hidden"),children:s===xn?c:null}),z("div",{"aria-live":"polite","aria-atomic":"true",className:Ec("visually-hidden"),children:s===Sn?c:null})]})]})},Uu=()=>{const{t:t}=Ls(),e=Uo(),n=(0,Ne.sO)(0),r=(0,Ne.sO)(0),o=Mo().historyLoaded,{sendPolite:i}=Fs(),{isOpen:a}=ls(),s=(0,Ne.sO)(null),c=(0,Ne.sO)(null),l=(0,Ne.Ye)((()=>yt((e=>{const n=C()(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(0,Ne.d4)((()=>{e.length>n.current&&(a&&(c.current=l(e)),n.current=e.length)}),[e,l,a]),(0,Ne.d4)((()=>{s.current&&!a&&c.current&&(c.current(!0),c.current=null)}),[a]),(0,Ne.d4)((()=>{o&&dt()((()=>{i(t("window.srTexts.onHistoryLoad"))}),500)}),[o,t,i]),null},Fu=()=>{const{t:t}=Ls(),{isOpen:e,isVisible:n}=ls(),r=Bo(),{sendPolite:o}=Fs(),i=(0,Ne.Ye)((()=>yt(o,2e3)),[o]),a=(0,Ne.sO)(null),s=(0,Ne.sO)(null);return(0,Ne.d4)((()=>{a.current!==n&&!n&&s.current&&s.current(),0!==r&&!e&&n&&(s.current=i(t("message.srTextUnreadCount",{unreadCount:r}))),a.current=n}),[r,e,n,i,t]),null},zu=({store:t,children:e,eventBus:n,api:r})=>((0,Ne.cO)((e=>{t.dispatch(_a(e))})),z(Ge,Object.assign({store:t},{children:z(rn.Provider,Object.assign({value:n},{children:z(nn.Provider,Object.assign({value:r},{children:z(Lu,{children:z(Bs,{children:z(Ou,{children:[z(Pu,{}),z(Tu,{}),z(Fu,{}),z(Uu,{}),z(ku,{}),z(Cu,{children:[z(Du,{}),z(Au,{children:e})]})]})})})}))}))}))),Bu=()=>{const{t:t}=Ls(),{showDisclaimer:e}=Po();return e&&z("div",{className:Ec("disclaimer"),tabIndex:"0",children:[z("h2",{className:Ec("disclaimer__title"),children:t("disclaimer.title")}),z("div",{className:Ec("disclaimer__message"),dangerouslySetInnerHTML:{__html:t("disclaimer.content")}})]})},Hu=(0,U.kr)(null),$u=t=>{const e=(0,Ne.qp)(Hs),n=e[t.type];let r=n[t.payload.type],o=null;return"choice_prompt"===t.payload.type&&(o=n[t.payload.body.prompt.type]),"participant"===t.type&&(r=n[t.type]),r&&"function"!=typeof r&&(r=r[t.payload.body.type]),[r||e.fallback,o]},Vu=({event:t,newParticipant:e})=>{const{eventRefs:n,unreadIds:r}=(0,De.useContext)(Hu),{sendAction:o}=ms(),i=n[t.payload.id],{containerRef:a,isVisible:s}=us({containerRef:i,freezeOnceVisible:!0}),c=Qe(),[l,u]=$u(t);if((0,De.useEffect)((()=>{if(s&&(null==r?void 0:r.includes(t.payload.id))){const e=r.reduce(((e,n)=>e.includes(t.payload.id)?e:e.concat(n)),[]);c(zi(e)),o({type:dn,events:e})}}),[c,t.payload.id,s,o,r]),!l)return null;const f=["conversation__item"];return"info"===t.type?f.push("conversation__item--source-info"):t.payload.fromClient?f.push("conversation__item--source-user"):f.push("conversation__item--source-agent"),e&&f.push("conversation__item--new-participant"),z("li",Object.assign({className:Ec(f),ref:a},{children:[t.timeIndicator&&z(bl,{event:t}),z(l,Object.assign({event:t},{children:z(u,{event:t})}))]}))},qu=()=>{const{id:t}=Vo()||{};return z("li",{className:Ec("conversation__item","conversation__item--source-agent"),children:z("div",{className:Ec("message","message--source-agent","message--type-loading"),children:[z(Tc,{eventPayload:{fromClient:!1,participant:t}}),z("div",{className:Ec("message__body"),children:z("span",{className:Ec("loader"),children:[z("span",{className:Ec("loader__part","one")}),z("span",{className:Ec("loader__part","two")}),z("span",{className:Ec("loader__part","three")}),z("span",{className:Ec("loader__part","four")})]})})]})})};const Wu=()=>{const t=Uo();let e=null;return z(U.HY,{children:t.map((t=>{const{type:n,payload:r}=t;let o=!1;if("participant"!==n&&"service_data"!==n){const{participant:n,fromClient:i}=r,a=i?"seamly-client-participant":n;"info"!==t.type&&e!==a&&(o=!0),e=a}return z(Vu,{event:t,newParticipant:o},t.payload.key||t.payload.id)}))})};var Yu=()=>{const{t:t}=Ls(),e=Fo(),{isOpen:n}=ls(),r=Ho(),o=Zs();return z(U.HY,{children:[n&&z("a",Object.assign({className:Ec("skip-link"),href:`#${r}`,onClick:t=>{t.preventDefault(),o()}},{children:t("skiplinkText")})),z("div",Object.assign({className:Ec("chat__body")},{children:z("div",Object.assign({className:Ec("conversation__container")},{children:[z(Bu,{}),z("ol",Object.assign({className:Ec("conversation")},{children:[z(Ou,{children:z(Wu,{})}),e&&z(qu,{})]}))]}))}))]})},Gu=n(40),Ku=n.n(Gu);const Ju={visible:Ec("transition--visible"),in:Ec("transition--in"),visuallyHidden:Ec("visually-hidden")},Xu=N()(Ju),Qu={notRendered:"notRendered",rendered:"rendered",visuallyHidden:"visuallyHidden"};var Zu=t=>{var e;let{children:n,isActive:r,timeout:o=ot,transitionStartState:i=Qu.notRendered,onInTransitionComplete:a=(()=>{}),onOutTransitionComplete:s=(()=>{})}=t;const c=(0,Ne.sO)(!1),l=Ku()(o,10),u=gc(a),f=gc(s),p=i===Qu.visuallyHidden,[d,h]=(0,Ne.eJ)((()=>p?[Ju.visuallyHidden]:[])),v="notRendered"!==i||d.length>0;return(0,Ne.d4)((()=>{let t=null,e=null;return c.current&&!r&&(h([Ju.visible]),t=dt()((()=>{h([...p?[Ju.visuallyHidden]:[]]),f&&(e=requestAnimationFrame((()=>{f()})))}),l)),!c.current&&r&&(h([Ju.visible]),e=requestAnimationFrame((()=>{e=requestAnimationFrame((()=>{h([Ju.visible,Ju.in]),u&&(t=dt()((()=>{u()}),l))}))}))),c.current=r,()=>{clearTimeout(t),cancelAnimationFrame(e)}}),[r,p,l,u,f]),z(U.HY,{children:v&&S()(e=(0,U.bR)(n)).call(e,(t=>{var e;const{className:n=""}=t.props,r=C()(e=n.split(" ")).call(e,(t=>!k()(Xu).call(Xu,t)));return(0,U.Tm)(t,{className:[...r,...d].join(" ")})}))})},tf=t=>{let{isAside:e=!1}=t;const{isInline:n}=Wo(),{t:r}=Ls(),{sendAction:o,addMessageBubble:i}=ms(),{isOpen:a,setVisibility:s}=ls(),{showSuggestions:c}=Po(),l=mc(),u=Zs(),f=(0,Ne.sO)(null),{sendPolite:p}=Fs(),{hasInterrupt:d}=Ru(),{hasCountdown:h,endCountdown:v}=vc(),{hasPrompt:y,continueChat:m}=yc(),g=ni(),b=qo("suggestion"),{body:_}=wc({payload:b}),w=(0,Ne.Ye)((()=>b&&!d?_:[]),[b,d,_]),x=(0,Ne.sO)(null),S=(0,Ne.sO)(!1),O=(0,Ne.sO)([]),C=!!w.length,E=n?(g||a)&&!e:g,T=(0,Ne.sO)(E),A=C&&!E&&c,j=C?w:O.current;O.current=j;const I=(0,Ne.Ye)((()=>{const t=["suggestions"];return e&&t.push("suggestions--aside"),Ec(t)}),[e]),k=(0,Ne.I4)((t=>{let{id:e,question:n}=t;h&&v(!0),y&&m(),o({type:fn,originMessage:b.id,body:{type:"faqclick",body:{faqId:e,faqQuestion:n}}}),i(n),a||s(Io.open),u()}),[i,m,v,u,h,y,b,o,s,a]);(0,Ne.d4)((()=>{if(x.current!==w&&!E){if(C){const t=S.current?r("suggestions.srUpdatedText"):r("suggestions.srAvailableText");dt()((()=>{p(t)}),30)}else S.current&&p(r("suggestions.srUnavailableText"));x.current=w}!T.current&&E?(Ot(f.current,u),p(r("suggestions.srUnavailableText"))):!C&&S.current&&Ot(f.current,u),S.current=C,T.current=E}),[w,C,E,u,p,r]);const P=r("suggestions.headingText"),N=r("suggestions.footerText"),R=P?"section":"div";return z(Zu,{isActive:A,transitionStartState:Qu.notRendered,children:z(R,{className:I,"aria-labelledby":P?l:null,ref:f,children:[P&&z("p",{id:l,className:Ec("suggestions__heading"),children:P}),!!j.length&&z(il,{suggestions:j,onClickSuggestion:k}),N&&!a&&z("p",{className:Ec("suggestions__footer"),children:N})]})})};const ef=(0,De.forwardRef)(((t,e)=>{let{children:n,className:r=""}=t;const{isOpen:o,isVisible:i,setVisibility:a}=ls(),{namespace:s,layoutMode:c}=Po(),{isInline:l}=Wo(),u=Ys(),f=ni(),{t:p}=Ls(),d=["chat",`chat--layout-${c}`,`namespace--${s}`,...u,r];return o||"app"===c||d.push("chat--collapsed"),f&&d.push("chat--user-responded"),i&&z("section",{className:Ec(d),onKeyDown:t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&!l&&o&&a(Io.minimized)},tabIndex:"-1",ref:e,"aria-label":p("chat.srLabel"),children:[z("div",{className:Ec("chat-wrapper"),children:n}),"inline"===c&&o&&z(tf,{isAside:!0})]})}));var nf=ef,rf=n(5110),of=n.n(rf),af=n(2373),sf=n.n(af),cf=({className:t,children:e,onCancel:n,headingText:r,description:o,descriptionId:i,cancelButtonText:a,cancelButtonRef:s,disableButtonFocusing:c,position:l={horizontal:"left",vertical:"top"}})=>{const u=mc(),{hideOption:f}=lc(),{focusButton:p}=uc(),d=(0,Ne.I4)((()=>{f(),c||p()}),[c,p,f]),h=(0,Ne.I4)((()=>{n&&n(),d()}),[d,n]),v=(t=>{const e=(0,Ne.sO)(null);return(0,Ne.d4)((()=>{const n=n=>{let{target:r}=n;e.current&&r instanceof HTMLElement&&!e.current.contains(r)&&t()};return document.addEventListener("click",n,!0),document.addEventListener("touchstart",n,!0),()=>{document.removeEventListener("click",n,!0),document.removeEventListener("touchstart",n,!0)}}),[t,e]),e})(h);return(0,Ne.d4)((()=>{St(v.current)}),[v]),z("section",Object.assign({className:Ec("options",{"options--right":"right"===l.horizontal,"options--left":"left"===l.horizontal,"options--top":"top"===l.vertical,"options--bottom":"bottom"===l.vertical},t),"aria-labelledby":u,tabIndex:-1,ref:v},{children:z("div",Object.assign({className:Ec("options__body")},{children:[z("h2",Object.assign({id:u,className:Ec("options__title")},{children:r})),z("button",Object.assign({type:"button",onClick:h,"aria-describedby":u,className:Ec("button","options__close"),ref:t=>{s&&(s.current=t)}},{children:[z($c,{name:"close",size:"16",alt:""}),z("span",{children:a})]})),o?z("p",Object.assign({className:Ec("options__description"),id:i},{children:o})):null,z("div",Object.assign({className:Ec("options__wrapper")},{children:e}))]}))}))};const lf=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{fn:t,errorText:e,compareValue:n}},uf=(t,e)=>{let n=!0;for(let r=0;r<t.length;r++)t[r].size>e&&(n=!1);return n},ff=t=>!!t?.length>0,pf=t=>{const e=t&&en()(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))},df=t=>!!t,hf=(0,U.kr)({handleSubmit:()=>{},isSubmitted:!1,isValid:!1,updateControlValue:()=>{},updateControlTouched:()=>{},errors:void 0});var vf=hf;const{Provider:yf,Consumer:mf}=hf,gf=To((t=>{let{forms:e}=t;return e}),((t,e)=>{let{formId:n}=e;return n}),((t,e)=>t[e])),bf=To(gf,(t=>(null==t?void 0:t.controls)||{})),_f=To(bf,(t=>{var e;const n={};return T()(e=L()(t)).call(e,(t=>{let[e,{value:r}]=t;n[e]=r})),n})),wf=To(bf,((t,e)=>{let{name:n}=e;return n}),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.value})),xf=To(bf,((t,e)=>{let{name:n}=e;return n}),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.touched}));function Sf(){return(0,Ne.qp)(vf)}function Of(t){const e=Qe(),{formId:n,updateControlValue:r,updateControlTouched:o,errors:i}=Sf(),a=!!Ve((t=>gf(t,{formId:n}))),s=Ve((e=>wf(e,{formId:n,name:t}))),c=Ve((e=>xf(e,{formId:n,name:t}))),l=null==i?void 0:i[t],u=!l;(0,Ne.d4)((()=>{a&&e(Aa({formId:n,name:t}))}),[a,n,t,e]),(0,Ne.bt)((()=>()=>{e(ja({formId:n,name:t}))}),[a,n,t,e]);const f=(0,Ne.I4)((e=>r(t,e.target.value)),[t,r]),p=(0,Ne.I4)((()=>{o(t,!0)}),[o,t]);return[(0,Ne.Ye)((()=>({name:t,onInput:f,onBlur:p,value:s})),[t,f,p,s]),(0,Ne.Ye)((()=>({isValid:u,error:l,touched:c})),[u,l,c])]}function Cf(t){var{children:n,formId:r,persistData:o,onError:i,onSubmit:a,validationSchema:s}=t,c=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["children","formId","persistData","onError","onSubmit","validationSchema"]);const l=Qe(),u=Ve((t=>_f(t,{formId:r}))),[f,p]=(0,Ne.eJ)(!1),[d,h]=(0,Ne.eJ)({}),{isValid:v,errors:y}=function(t,n){const r=(0,Ne.Ye)((()=>function(t){var n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Q()(n=L()(r)).call(n,((n,r)=>{let[o,i]=r;var a;const s=e()(i)?i:[i];for(let e=0;null!==(a=e<(null==s?void 0:s.length))&&void 0!==a&&a;e++)if(!s[e].fn(t[o],s[e].compareValue)){n[o]=s[e].errorText;break}return n}),{})}(t,n)),[t,n]);return{isValid:0===j()(r).length,errors:r}}(u,s),m=(0,Ne.Ye)((()=>Object.assign(Object.assign({},y),d)),[y,d]);(0,Ne.bt)((()=>{l(Ea({formId:r,persistData:o}))}),[r,o,l]),(0,Ne.d4)((()=>()=>{l(Ta({formId:r}))}),[r,o,l]);const g=(0,Ne.I4)(((t,e)=>{l(Ia({formId:r,name:t,value:e}))}),[r,l]),b=(0,Ne.I4)(((t,e)=>{l(ka({formId:r,name:t,touched:e}))}),[l,r]),_=(0,Ne.I4)(((t,e)=>{h((n=>Object.assign(Object.assign({},n),{[t]:e})))}),[h]),w=(0,Ne.I4)((t=>{var e;t.preventDefault();const n="true"===(null===(e=t.submitter)||void 0===e?void 0:e.ariaDisabled);p(!n),!n&&v&&(l(ii(!0)),a(u,{updateControlValue:g,setError:_}))}),[v,l,a,u,g,_]);(0,Ne.d4)((()=>{i&&i({errors:m,isSubmitted:f,isValid:0===Object.keys(m).length})}),[f,m,i]);const x=(0,Ne.Ye)((()=>({formId:r,values:u,errors:m,isValid:0===Object.keys(m).length,isSubmitted:f,handleSubmit:w,validationSchema:s,updateControlValue:g,updateControlTouched:b})),[r,u,m,f,w,s,g,b]);return r?a?z(yf,Object.assign({},c,{value:x},{children:n})):(console.error('"onSubmit" is required.'),null):(console.error('"formId" is required.'),null)}const Ef=["className","disableValidationClasses"];function Tf(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var Af=function(t){let{className:e,disableValidationClasses:n}=t,r=Ws(t,Ef);const{handleSubmit:o,isValid:i,isSubmitted:a}=function(){const{handleSubmit:t,isSubmitted:e,isValid:n}=Sf();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")),z("form",function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Tf(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Tf(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({onSubmit:o,className:Ec([...s,e])},r))};function jf(t){let{id:e,error:n}=t;const[r,o]=(0,Ne.eJ)(!1);return(0,Ne.d4)((()=>{const t=dt()((()=>o(!0)),300);return()=>clearTimeout(t)}),[]),z("div",{className:Ec("error"),"aria-live":"assertive","aria-atomic":"true",children:r&&n&&z("span",{id:e,className:Ec("error__message"),children:[z($c,{name:"error",size:"16"}),n]})})}var If=t=>{let{contentHint:e,id:n,labelText:r,labelClass:o=Ec("label"),validity:i,errorText:a,children:s}=t;return z(U.HY,{children:[z("label",{htmlFor:n,className:o,children:r}),e&&z("span",{id:`${n}-content-hint`,className:Ec("input__content-hint"),children:e}),z(jf,{id:`${n}-error`,error:!i&&a}),s]})};const kf=["id","name","type","labelText","labelClass","contentHint","aria-describedby"];function Pf(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nf(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Pf(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Pf(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Rf=function(t){let{id:e,name:n,type:r,labelText:o,labelClass:i,contentHint:a,"aria-describedby":s}=t,c=Ws(t,kf);const{isSubmitted:l}=Sf(),[u,{error:f}]=Of(n),p=l&&f,d=[];return s&&d.push(s),a&&d.push(`${e}-content-hint`),p&&d.push(`${e}-error`),z(If,{id:e,contentHint:a,validity:!p,errorText:f,labelText:o,labelClass:i,children:z("input",Nf(Nf({id:e,name:n,type:r,"aria-invalid":p?"true":"false","aria-describedby":d.join(" ")||null},u),c))})};function Mf(t){let{controlName:e,describedById:n}=t;const{t:r}=Ls();return z(Af,{noValidate:"true",className:Ec("options__form"),children:[z(Rf,{name:e,type:"email",className:Ec("transcript__input"),"aria-describedby":n,labelClass:Ec("label"),labelText:r("options.sendTranscript.label")}),z("div",{className:Ec("options__actions"),children:z("button",{type:"submit",className:Ec("button","button--primary","options__submit"),children:r("options.sendTranscript.sendButtonText")})})]})}const Df="email";const Lf={sendTranscript:()=>{const[t,e]=(0,Ne.eJ)(void 0),{hideOption:n}=lc(),{focusButton:r}=uc(),{t:o}=Ls(),i=mc(),{sendAction:a}=ms(),s=(0,Ne.Ye)((()=>({[Df]:[lf(df,o("options.sendTranscript.noEmailText")),lf(pf,o("options.sendTranscript.invalidEmailText"))]})),[o]),c=(0,Ne.I4)((t=>{var e;const o=en()(e=t[Df]).call(e);a({type:"send_transcript",body:{emailAddress:o}}),n(),r()}),[a,n,r]),l=(0,Ne.I4)((t=>{let{isValid:n,isSubmitted:r}=t;e(r&&!n?"options--error":void 0)}),[e]);return z(cf,{className:t,headingText:o("options.sendTranscript.title"),cancelButtonText:o("options.cancelButtonText"),description:o("options.sendTranscript.description"),descriptionId:i,position:{vertical:"top",horizontal:"right"},children:z(Cf,{formId:"sendTranscript",onSubmit:c,validationSchema:s,onError:l,children:z(Mf,{controlName:Df,describedById:i})})})}};var Uf=()=>{const{optionActive:t}=lc(),e=(0,Ne.sO)(null),n=Lf[t||e.current];return t&&(e.current=t),n?z(n,{}):null},Ff=()=>{const{t:t}=Ls(),{menuOptions:e,showOption:n,panelActive:r,hideOption:o}=lc(),{id:i}=uc(),a=(0,Ne.sO)(null),[s,c]=(0,Ne.eJ)(!1),l=(0,Ne.sO)(null),u=e.length,f=(0,Ne.sO)(of()({length:u},(()=>(0,U.Vf)()))),p=(0,Ne.sO)(!1),d=u>1,h=e[0],v=(0,Ne.Ye)((()=>h?.name?.trim().replace(/\s+/g,"")),[h]);return(0,Ne.d4)((()=>()=>{clearTimeout(a.current)}),[]),(0,Ne.d4)((()=>{s&&!p.current&&requestAnimationFrame((async()=>{await Ks(60);const t=sf()(e).call(e,(t=>t.available)),n=-1===t?0:t;St(f.current[n])})),p.current=s}),[s,e]),u?z("div",{className:Ec("options__container"),onKeyDown:t=>{s&&(xt(t)===wt.Escape&&(c(!1),St(l.current)),xt(t)===wt.Home&&(St(f.current[0]),t.preventDefault()),xt(t)===wt.End&&(St(f.current[u-1]),t.preventDefault()))},onfocusout:()=>{d&&(a.current=dt()((()=>{c(!1)}),200))},onfocusin:()=>{clearTimeout(a.current)},children:[z(Zu,{transitionStartState:Qu.notRendered,isActive:r,children:z("div",{className:Ec("options__dialog"),children:z(Uf,{})})}),d&&z(Zu,{isActive:s,transitionStartState:Qu.notRendered,children:z("ul",{className:Ec(["options__menu"]),role:"menu",tabIndex:"-1","aria-labelledby":i,children:S()(e).call(e,((r,o)=>{let{name:i,title:a,available:s}=r;return z("li",{className:Ec("options__menu__item"),role:"menuitem",children:z("button",{type:"button",ref:t=>{f.current[o]=t},className:Ec(["button","button--secondary"]),onKeyDown:t=>((t,e)=>{if(xt(t)===wt.ArrowDown){const n=Math.min(u-1,e+1);St(f.current[e===n?0:n]),t.preventDefault()}if(xt(t)===wt.ArrowUp){const n=Math.max(0,e-1);St(f.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;T()(e).call(e,((t,e)=>{e>n&&t.title.charAt(0).toLowerCase()===r.toLowerCase()&&-1===o&&(o=e)})),-1!==o&&St(f.current[o])})(t,o),onClick:()=>((t,e)=>{e&&(c(!1),n(t))})(i,s),"aria-disabled":s?null:"true",children:[z("span",{className:Ec("button__text"),children:[a,!s&&" "]}),!s&&z("span",{className:Ec("button__state"),children:t("options.unavailableText")})]})},i)}))})}),z("button",{type:"button",className:Ec(["button","button--secondary","chat__options__button",...!d&&v?[`chat__options__button--${v}`]:[]]),id:i,onClick:()=>{r&&o(),d?c((t=>!t)):h.available&&!r&&n(h.name)},onKeyDown:d?t=>{xt(t)===wt.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&&z($c,{name:"options",size:"32"}),z("span",{className:Ec("button__text"),children:d?t("options.openButtonText"):`${h.title}${h.available?"":" "}`}),!d&&!h.available&&z("span",{className:Ec("button__state"),children:t("options.unavailableText")})]})]}):null},zf=({label:t,checked:e,description:n,onChange:r,id:o})=>z("li",Object.assign({className:Ec("translation-options__item"),"aria-selected":e,role:"option",tabIndex:0,onClick:r,onKeyDown:t=>{"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),r())},id:o},{children:[z($c,{alt:"",name:"check",size:"16"}),t," ",n&&z("span",{children:["(",n,")"]})]})),Bf=({onChange:t,describedById:e})=>{const{context:{locale:n}}=Po(),{t:r}=Ls(),{focusContainer:o}=xc(),{languages:i,currentLocale:a,enableTranslations:s,disableTranslations:c}=_c(),l=({locale:e})=>()=>{e===a||n===e?c():s(e),t(),o()},u=(0,Ne.Ye)((()=>[...i].sort(((t,e)=>t.locale===n?-1:e.locale===n?1:t.nativeName.localeCompare(e.nativeName,void 0,{sensitivity:"base"})))),[i,n]);return z("ul",Object.assign({"aria-describedby":e,role:"listbox",tabIndex:-1,className:Ec("translation-options")},{children:u.map(((t,e)=>{const n=0===e,o=a===t.locale||!a&&n;return z(zf,{id:t.locale,label:t.nativeName,checked:o,description:n&&r("translations.settings.original"),onChange:l(t)},t.locale)}))}))},Hf=function({onClose:t,position:e}){const{t:n}=Ls(),r=mc();return z(cf,Object.assign({onCancel:t,headingText:n("translations.menu.title"),cancelButtonText:n("translations.settings.cancelButtonText"),description:n("translations.menu.description"),descriptionId:r,position:e,disableButtonFocusing:!0},{children:z(Bf,{describedById:r,onChange:t})}))};function $f({children:t,position:e={horizontal:"left",vertical:"top"},classNames:n}){const[r,o]=(0,Ne.eJ)(!1),i=(0,Ne.sO)(null),a=mc();return z("div",Object.assign({className:Ec("translations__container"),onKeyDown:t=>{r&&xt(t)===wt.Escape&&(o(!1),St(i.current))}},{children:[z(Zu,Object.assign({onOutTransitionComplete:()=>{},onInTransitionComplete:()=>{},timeout:0,transitionStartState:Qu.notRendered,isActive:r},{children:z("div",Object.assign({className:Ec("options__dialog"),role:"dialog"},{children:z(Hf,{onClose:()=>{o(!1)},position:e})}))})),z("button",Object.assign({type:"button",className:Ec(["button","chat__options__button",...n]),id:a,onClick:()=>{o(!r)},onKeyDown:t=>{xt(t)===wt.ArrowDown&&(o(!0),t.preventDefault())},ref:i,"aria-haspopup":"dialog","aria-expanded":r.toString()},{children:t}))]}))}function Vf(){const{menuOptions:t,allowOptionSelection:e}=lc(),{isAvailable:n}=_c(),{hasInterrupt:r}=Ru(),{t:o,locale:i}=Ls(),a=Sc(i);if(!n&&(!e||!t.length)||r)return null;const s=o("translations.settings.openButtonText",{hasLanguage:!!a,language:a});return z("div",{className:Ec("chat__options"),children:[n&&z("div",{className:Ec("chat__options-item","chat__options-item--left"),children:z($f,{classNames:["button--secondary"],children:[z($c,{alt:s,name:"newTranslation",size:"16"}),z("span",{className:Ec("button__text"),children:s})]})}),e&&z("div",{className:Ec("chat__options-item","chat__options-item--right"),children:z(Ff,{})})]})}var qf=()=>{const{scrollToRef:t,unreadIds:e}=(0,Ne.qp)(Hu),{isMinimized:n}=ls(),{t:r}=Ls();return z(Zu,Object.assign({isActive:!!e.length&&!n},{children:z("div",Object.assign({className:Ec("unread-messages")},{children:z("button",Object.assign({type:"button",className:Ec("button","button--primary"),onClick:t},{children:[r("message.unreadMessagesCount",{unreadCount:e.length}),z($c,{name:"chevronDown",size:"32",alt:""})]}))}))}))};const Wf=To(Lo,(t=>{var e;return S()(e=C()(t).call(t,(t=>{var e;return gi(t)&&"service_data"!==t.type&&(null===(e=t.payload)||void 0===e?void 0:e.messageStatus)===ln}))).call(e,(t=>t.payload.id))}));var Yf=t=>{const e=(0,Ne.sO)(),[n,r]=(0,Ne.eJ)(!0),o=Ve(Wf),i=Uo(),a=Fo(),{isOpen:s}=ls(),c=Mo().loadedImageEventIds,l=Ve((t=>t.state.isLastEventFromClient));(0,Ne.d4)((()=>{const t=e.current,n=()=>{const{scrollHeight:e,scrollTop:n,clientHeight:o}=t,i=Math.abs(e-n-o)>10;r(!i)};return t.addEventListener("scroll",n),()=>t.removeEventListener("scroll",n)}),[]);const u=(0,Ne.I4)((()=>{requestAnimationFrame((()=>function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}(void 0,void 0,void 0,(function*(){var t,n;yield Ks(30),null===(t=e.current)||void 0===t||t.scrollTo({top:null===(n=e.current)||void 0===n?void 0:n.scrollHeight,left:0,behavior:"auto"})}))))}),[]);return(0,Ne.d4)((()=>{l&&u()}),[l,u]),(0,Ne.d4)((()=>{n&&u()}),[n,o,i,a,s,c,u]),{containerRef:e,unreadIds:o,scrollToRef:()=>{var n,r;const i=null===(n=t[null==o?void 0:o.at(0)])||void 0===n?void 0:n.current;null===(r=e.current)||void 0===r||r.scrollTo({top:null==i?void 0:i.offsetTop,behavior:"auto",left:0})},scrollToBottom:u}},Gf=({children:t})=>{const e=Uo(),n=(0,Ne.Ye)((()=>e.reduce(((t,e)=>(t[e.payload.id]=(0,U.Vf)(),t)),{})),[e]),{scrollToRef:r,scrollToBottom:o,containerRef:i,unreadIds:a}=Yf(n);return z(Hu.Provider,Object.assign({value:{eventRefs:n,unreadIds:a,scrollToRef:r,scrollToBottom:o,containerRef:i}},{children:z("div",Object.assign({className:Ec("chat__container")},{children:[z("div",Object.assign({className:Ec("chat__container__scroll-area"),ref:i},{children:t})),z(qf,{})]}))}))},Kf=t=>{let{baseClassName:e,children:n,title:r}=t;const o=Ho(),i=mc();return z("section",{id:o,className:Ec(e),"aria-describedby":i,tabIndex:"-1",children:[z("h2",{className:Ec(`${e}__title`),id:i,children:r}),n]})},Jf=()=>{const{t:t}=Ls(),e=Zs(),n=pc(),{emitEvent:r}=ms(),{isActive:o,remaining:i,timer:a,endCountdown:s}=vc(),c=i>0,l=t(c?"idleDetachWarning.countdownTitle":"idleDetachWarning.notifyTransferText");return z(Kf,{baseClassName:"idle",title:l,children:c&&z(U.HY,{children:[z("div",{className:Ec("idle__count-container"),children:o&&z(U.HY,{children:[z("span",{className:Ec("idle__count-text"),children:t("idleDetachWarning.countdownText")}),z("span",{className:Ec("idle__count-timer"),children:t("idleDetachWarning.countdownTimer",a)})]})}),z("div",{className:Ec("idle__options"),children:[z("button",{type:"button",className:Ec("button","button--primary"),onClick:()=>{n(),s(!0),e(),r("idleTimer.selectContinue")},children:t("idleDetachWarning.continueButton")}),z("button",{type:"button",className:Ec("button","button--primary"),onClick:()=>{s(),e(),r("idleTimer.selectEnd")},children:t("idleDetachWarning.detachButton")})]})]})})},Xf=()=>{const{t:t}=Ls(),e=pc(),{name:n}=Vo()||{},{continueChat:r,restartChat:o}=yc();return z(Kf,{baseClassName:"prompt",title:t("resumeConversationPrompt.title",{name:n}),children:z("div",{className:Ec("prompt__options"),children:[z("button",{type:"button",className:Ec("button","button--primary"),onClick:()=>{e(),r()},children:t("resumeConversationPrompt.continueButton")}),z("button",{type:"button",className:Ec("button","button--primary"),onClick:o,children:t("resumeConversationPrompt.detachButton")})]})})};function Qf(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}const Zf=()=>{const{default:t,active:e,userSelected:n,options:r,optionsOverride:o}=Mo().entryMeta,i=Qe(),a=n||e||t,s=o[a]||r[a]||{},c=(0,Ne.I4)((t=>{i(Fi(t))}),[i]),l=(0,Ne.I4)((t=>{i(Li(t))}),[i]),u=(0,Ne.I4)((t=>{i(na(t))}),[i]),f=(0,Ne.I4)((()=>{n?u(null):l(t)}),[n,t,u,l]);return{activeEntry:a,activeEntryOptions:s,setActiveEntryType:l,setUserEntryType:u,cancelEntrySelection:f,setBlockAutoEntrySwitch:c}};var tp=n(7552),ep=n(8216);function np(){var t;return np=tp?ep(t=tp).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},np.apply(this,arguments)}function rp(t){let{controlName:e,skipLinkId:n}=t;const{t:r}=Ls(),{sendAssertive:o}=Fs(),{emitEvent:i}=ms(),a=(()=>{const{sendAction:t}=ms(),{features:e}=lc(),{typingPeekahead:n}=e||{},r=(0,Ne.sO)(null),o=(0,Ne.sO)(null),i=(0,Ne.sO)(!1),a=(0,Ne.sO)(null);(0,Ne.d4)((()=>()=>{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?T()(n=Qf(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Qf(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({type:pn,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=Iu()((()=>{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=dt()((()=>{i.current=!1}),300),o.current=dt()((()=>{s(!1,t.target.value)}),2e3))}})(),{setBlockAutoEntrySwitch:s}=Zf(),{hasCharacterLimit:c,characterLimit:u,reachedCharacterWarning:p,reachedCharacterLimit:h,remainingChars:y}=function(t){const{t:e}=Ls(),{sendAssertive:n}=Fs(),{hasLimit:r,limit:o}=(()=>{const{entryMeta:{options:{text:t},optionsOverride:{text:e}}}=Mo(),{limit:n}=e||t||{limit:null};return{hasLimit:null!==n,limit:null!==n?n:null}})(),i=(0,Ne.Ye)((()=>yt(n,300)),[n]),a=(0,Ne.Ye)((()=>yt(((t,n)=>{t&&i(e("input.srCharacterLimitText",{limit:n}))}),300)),[i,e]),[{value:s}]=Of(t),c=r&&s?o-s.length:o,l=!!r&&c<=50,u=!!r&&c<0;return(0,Ne.d4)((()=>{a(l,c)}),[l,c,a]),{hasCharacterLimit:r,characterLimit:o,reachedCharacterWarning:l,reachedCharacterLimit:u,remainingChars:c}}(e),[{value:m}]=Of(e),g=!!m,b=(0,Ne.I4)((()=>{p&&o(r("input.srCharacterLimitText",{limit:y})),i("ui.inputFocus")}),[r,o,p,y,i]),_=(0,Ne.Ye)((()=>r("input.inputPlaceholder",{hasLimit:c,limit:c?u:null})),[r,c,u]),x=(0,Ne.Ye)((()=>r("input.inputLabel",{hasLimit:c,limit:c?u:null})),[r,c,u]);return(0,Ne.bt)((()=>(s(g),()=>{s(!1)})),[s,g]),z(Af,{className:Ec("entry-form"),disableValidationClasses:!0,noValidate:"true",children:[z("div",{className:Ec(["input--text__container",...p&&!h?["character-warning"]:[],...h?["character-exceeded"]:[]]),children:[z(Rf,{id:n,type:"text",name:e,className:Ec("input__text"),autocomplete:"off",placeholder:_,labelText:x,labelClass:Ec("visually-hidden"),"aria-invalid":c?h:null,onKeyUp:a,onFocus:b}),z("div",{className:Ec("character-count"),children:p&&z("span",{children:y})})]}),z("button",{className:Ec("button","input__submit"),type:"submit",onPointerDown:t=>{t.preventDefault()},"aria-disabled":!g||h?"true":null,children:z($c,{name:"send",size:"32",alt:r("input.sendMessage")})})]})}function op(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=op(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=op(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const ap="textMessageEntry";function sp(t){let e=np({},(function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(t),t));const{isOpen:n,setVisibility:r}=ls(),o=Ho(),i=Zs(),{sendMessage:a}=ms(),s=(0,Ne.I4)(((t,e)=>{let{updateControlValue:o}=e;a({body:t[ap]}),o(ap,""),i(),n||r(Io.open)}),[a,i,n,r]);return z(Cf,ip(ip({},e),{},{formId:"textEntry",persistData:!0,onSubmit:s,children:z(rp,{controlName:ap,skipLinkId:o})}))}var cp=()=>{const{t:t}=Ls(),{currentUploads:e}=ac();return z("div",{className:Ec("progress"),children:S()(e).call(e,(e=>{let{id:n,name:r,progress:o,uploading:i,error:a}=e;return z("div",{className:Ec("progress_container"),children:[z("div",{className:Ec("progress__text"),children:[z("span",{className:Ec("progress__text--file-name"),children:r}),z("span",{className:Ec("progress__text--percentage"),children:`${o}%`})]}),z(jf,{error:a}),z("progress",{className:Ec("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 lp(t){let{id:e,name:n,labelText:r,contentHint:o,outputText:i,accept:a}=t;const{isSubmitted:s}=Sf(),[c,l]=(0,Ne.eJ)(!1),[{onInput:u,onBlur:f},{error:p}]=Of(n),d=mc(),h=mc(),v=mc(),y=s&&p,m=[v];o&&m.push(h),y&&m.push(d);const g=(0,Ne.I4)((()=>{l(!0)}),[l]),b=(0,Ne.I4)((()=>{l(!1),f()}),[l,f]),_=(0,Ne.I4)((t=>{const e={target:{value:t.target.files}};u(e)}),[u]);return z("div",{className:Ec("upload__container"),children:[o&&z("span",{className:Ec("upload__content-hint"),id:h,children:o}),z(jf,{id:d,error:y&&p}),z("div",{className:Ec(["file-upload",...c?["focus-within"]:[]]),children:z("label",{htmlFor:e,className:Ec("upload__label"),children:[z($c,{name:"upload",size:"32"}),z("div",{children:[z("span",{className:Ec(["upload__label--text"]),children:r}),z("input",{id:e,className:Ec("upload__input"),type:"file",name:n,onChange:_,"aria-invalid":y?"true":"false","aria-describedby":m.join(" "),accept:a||null,onFocus:g,onBlur:b}),z("span",{className:Ec("upload__output"),"aria-hidden":"true",id:v,children:i})]})]})})]})}function up(t){let{skiplinkId:e,controlName:n,accept:r,contentHint:o,isUploading:i,isComplete:a,onClickCancel:s}=t;const{t:c}=Ls(),[{value:l}]=Of(n),u=l&&l.length>0,f=u?l[0].name:"";return z(Af,{className:Ec("upload-form"),children:[z(lp,{name:n,id:e,accept:r,labelText:c("fileUpload.labelText"),outputText:c("fileUpload.selectedText",{hasFile:u,filename:f}),contentHint:o}),z("div",{className:Ec("upload__button-container"),children:[z("button",{id:i||!a?e:void 0,type:"button",onClick:s,className:Ec("button","button--secondary","upload__cancel"),children:c("fileUpload.cancelButtonText")}),z("button",{className:Ec("button","button--primary"),type:"submit",children:c("fileUpload.uploadButtonText")})]})]})}const fp="fileListForm",pp="fileList";var dp=()=>{const{t:t}=Ls(),{sendPolite:e,sendAssertive:n}=Fs(),r=Ho(),o=Zs(),{serviceAllowsUploads:i,allowedMimeTypes:a,maxSize:s}=ic(),c=(0,Ne.sO)(null),l=(0,Ne.sO)(i),{cancelEntrySelection:u}=Zf(),{uploadFile:f,clearUploads:p,isUploading:d,isComplete:h}=ac(),{hasFile:v,selectedFileName:y,uploadHandle:m,hasServerError:g,progress:b}=((t,e)=>{const n=Ve((n=>wf(n,{formId:t,name:e}))),{currentUploads:r}=ac(),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}})(fp,pp),_=mc(),w=(0,Ne.sO)(!0),x=t("fileUpload.contentHint",{size:bt(s)}),S=(0,Ne.sO)(""),O=(0,Ne.sO)(null);(0,Ne.d4)((()=>{S.current&&O.current?.contains(document.activeElement)&&"INPUT"===document.activeElement.tagName&&n(x),S.current=x}),[x,n]),(0,Ne.d4)((()=>{b>0&&e(1===b?t("fileUpload.srStartedText"):`${b}%`)}),[b,e,t]),(0,Ne.d4)((()=>{w.current||d||!h||(p(),u(),o(),dt()((()=>{e(t("fileUpload.srCompleteText"))}),300)),w.current=h}),[d,h,p,u,o,e,t]);const C=(0,Ne.I4)((t=>{let{fileList:e}=t;f(e[0]),o()}),[f,!1,o]),E=(0,Ne.I4)((()=>{m&&m.abort(),p(),u(),o()}),[m,p,u,o]),T=(0,Ne.Ye)((()=>({[pp]:[lf((()=>i),t("fileUpload.errors.unavailable")),lf(ff,t("fileUpload.errors.noFile")),lf(uf,t("fileUpload.errors.tooLarge"),s)]})),[s,i,t]);return z("div",{className:Ec(["upload",...g?["upload--error"]:[]]),ref:O,children:z(Cf,{formId:fp,persistData:!0,onSubmit:C,validationSchema:T,children:[(d||!h)&&z(U.HY,{children:[z(cp,{}),z("div",{className:Ec("upload__button-container"),children:z("button",{id:d||!h?r:void 0,type:"button",onClick:E,ref:c,className:Ec("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]}),!d&&h&&z(up,{controlName:pp,skiplinkId:r,accept:a.join(", "),contentHint:x,isComplete:h,isUploading:d,outputText:t("fileUpload.selectedText",{hasFile:v,filename:y}),onClickCancel:E}),!l.current&&z(U.HY,{children:[z("span",{className:Ec("notification"),id:_,children:t("fileUpload.unavailableText")}),z("div",{className:Ec("upload__button-container"),children:z("button",{id:d||!h?r:void 0,type:"button",onClick:E,className:Ec("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]})]})})},hp=()=>{const{t:t}=Ls(),{showFileUpload:e,serviceAllowsUploads:n}=ic(),[r,o]=(0,Ne.eJ)(n),i=Zs(),a=(0,Ne.sO)(null),{setUserEntryType:s,activeEntry:c}=Zf(),l=(0,Ne.sO)(null),{sendPolite:u}=Fs(),f=!!Vo();return(0,Ne.d4)((()=>{Ot(l.current,(()=>{n||i()})),o(n)}),[n,i]),(0,Ne.d4)((()=>{a.current&&!n&&u(t("fileUpload.srUnavailableText")),!1===a.current&&n&&u(t("fileUpload.srAvailableText")),f&&(a.current=n)}),[n,f,u,t]),!e&&c!==cn&&z(Zu,{isActive:r,transitionStartState:Qu.rendered,children:z("div",{className:Ec("upload-toggle-wrapper"),children:z(Zu,{isActive:r,transitionStartState:Qu.visuallyHidden,children:z("button",{className:Ec(["button","button--secondary","upload-toggle"]),ref:l,"aria-disabled":r?null:"true",type:"button",onClick:r?()=>{s(cn),i()}:null,children:z($c,{name:"file",size:"32",alt:t("fileUpload.toggleButtonText")})})})})})};function vp(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function yp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=vp(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=vp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var mp=()=>{const{isOpen:t}=ls(),e=(0,Ne.sO)(null),{hasCountdown:n}=vc(),[r,o]=(0,Ne.eJ)(n),{hasPrompt:i}=yc(),[a,s]=(0,Ne.eJ)(i),c=Zs(),l=(0,Ne.sO)(!1),{activeEntry:u}=Zf(),[f,p]=(0,Ne.eJ)({text:sp,upload:dp}),[d,h]=(0,Ne.eJ)((()=>u)),v=Po(),{accountAllowsUploads:y}=ic(),m=(0,Ne.I4)((()=>{Ot(e.current,c)}),[c]);(0,Ne.d4)((()=>{const{customComponents:t}=v,{entry:e}=t||{};e&&p((t=>yp(yp({},t),e)))}),[v]),(0,Ne.d4)((()=>{m(),o(n),s(i)}),[n,i,m]),(0,Ne.d4)((()=>{h(u),m()}),[u,m,e]),l.current=!(!e.current||!e.current.contains(document.activeElement));const g=f[d];return z("div",{className:Ec("chat__entry"),ref:e,children:[r&&z(Jf,{}),a&&z(Xf,{}),z("div",{className:Ec(["entry__body",...n||i?["entry__body--hidden"]:[]]),children:[d!==cn&&y&&t&&z(hp,{}),z(g,{})]})]})},gp=()=>{const{t:t}=Ls(),{isOpen:e,closeChat:n}=ls(),{isWindow:r}=Wo();return e&&r?z("button",{type:"button",className:Ec("button","collapse-button"),onClick:n,children:z($c,{name:"chevronDown",size:"32",alt:t("window.srCollapseButton")})}):null},bp=({children:t,handleClose:e,title:n,closeButtonText:r,srCloseButtonText:o,id:i})=>{const a=mc();return z("section",Object.assign({tabIndex:-1,id:i,"aria-labelledby":n?a:void 0,className:Ec("chat-status",!n&&"chat-status--condensed")},{children:[z("div",Object.assign({className:Ec("chat-status__body")},{children:[n?z("h2",Object.assign({className:Ec("chat-status__title"),id:a},{children:n})):null,t]})),"function"==typeof e&&z("button",Object.assign({type:"button",onClick:e,className:Ec("button","button--tertiary","chat-status__close")},{children:[r||z($c,{name:"close",size:"16",alt:""}),o&&z("span",Object.assign({className:Ec("visually-hidden")},{children:o}))]}))]}))};function _p(){const{t:t}=Ls(),{id:e}=xc(),{hasInterrupt:n}=Ru(),{disableTranslations:r,currentLocale:o}=_c(),i=Sc(o),a=Zs(),s=t("translations.status.label",{language:i}),c=(0,Ne.I4)((()=>{r(),a()}),[r,a]);return n?null:z(bp,{handleClose:c,title:s,id:e,closeButtonText:t("translations.status.stopText"),srCloseButtonText:t("translations.status.srStopText")})}var wp=({handleClick:t,icon:e,title:n,srButtonText:r})=>z("button",Object.assign({type:"button",onClick:t,className:Ec("button","button--primary","chat-status__button")},{children:[z($c,{name:e,size:"16",alt:""}),n,r&&z("span",Object.assign({className:Ec("visually-hidden")},{children:r}))]}));function xp(){const{showProposal:t,translationProposal:e,dismissTranslationProposal:n,activateTranslationProposal:r}=(()=>{const{isActive:t,languages:e}=_c(),n=Qe(),{sendAction:r}=ms(),{translationProposal:o}=Ve((t=>t.translations)),{enableTranslations:i}=_c(),{isOpen:a}=ls(),{locale:s}=Ls(),c=null==o?void 0:o.proposedLocale,l=Sc(c),u=(0,Ne.Ye)((()=>null!==o&&!t&&a&&s!==c&&M()(e).call(e,(t=>t.locale===c))),[o,t,a,s,c,e]);return{activateTranslationProposal:()=>{i(null==o?void 0:o.proposedLocale,_n)},dismissTranslationProposal:()=>{r({type:vn,body:{type:bn}}),n(ns())},proposedLocale:c,proposedLocaleNativeName:l,showProposal:u,translationProposal:o}})(),{id:o}=xc();return t?z(bp,Object.assign({handleClose:n,srCloseButtonText:e.srDismissButtonText,id:o,title:e.titleLabel},{children:z(wp,{handleClick:r,icon:"newTranslation",title:e.buttonLabel})})):null}function Sp(){const{hasInterrupt:t}=Ru(),{isActive:e}=_c();return t?null:z(e?_p:xp,{})}function Op(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var Cp=function(t){let{children:e,interruptComponent:n}=t;const{hasInterrupt:r,meta:o}=Ru(),{isOpen:i}=ls();return r?i?z(n,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Op(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Op(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({},o)):null:z(U.HY,{children:[z(Gf,{children:[z("div",{className:Ec("chat__container__header"),children:[z(Sp,{}),z(gp,{})]}),e]}),z(mp,{}),i&&z(Vf,{})]})},Ep=t=>{let{originalError:e,title:n,message:r,buttonText:o,action:i,srText:a}=t;const s=ms(),c=mc(),{sendPolite:l}=Fs(),u=Zs(),f="SeamlySessionExpiredError"===e.name;return(0,Ne.d4)((()=>{f&&s[i]&&s[i]()}),[i,s,f]),(0,Ne.d4)((()=>{!f&&a&&dt()((()=>{l(a)}),200)}),[l,a,f]),f?z(U.HY,{}):z("section",{className:Ec("interrupt"),"aria-labelledby":c,children:[z(gp,{}),z("div",{className:Ec("interrupt__body"),children:[z("h2",{id:c,className:Ec("interrupt__title"),children:n}),z("p",{className:Ec("interrupt__message"),children:r}),o&&i&&z("div",{className:Ec("interrupt__actions"),children:z("button",{type:"button",className:Ec("button","button--primary"),onClick:()=>{s[i]&&s[i](),u()},children:o})})]})]})};function Tp(t){let{event:e}=t;const[n]=$u(e);return z(n,{event:e})}function Ap(){const{preChatEvents:t,layoutMode:e}=Po(),{hasInterrupt:n}=Ru(),{isOpen:r}=ls(),o=!(n||!t?.length||r);return o&&z("ul",{className:Ec("pre-chat-messages",`pre-chat-messages--${e}`),"aria-hidden":!o,children:S()(t).call(t,(t=>z("li",{className:Ec("pre-chat-messages__message"),children:z(Tp,{event:t})},t.payload.id)))})}function jp(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}const Ip=()=>{const t=No(),e=Vo(),{hasInterrupt:n}=Ru(),r=e&&!n,o=r?e.avatar:t;return o?z("img",{className:Ec(r?"avatar":"icon"),src:o,alt:""}):z($c,{name:"avatar",size:"32"})};var kp=t=>{let{onClick:e}=t;const n=hs(),{t:r}=Ls(),o=n()?r("window.openButton.srContinue"):r("window.openButton.srStart"),i=Zs(),{isOpen:a}=ls(),s=Bo(),c=(0,Ne.I4)((()=>{e(),i()}),[i,e]);return z(Zu,{isActive:!a,transitionStartState:Qu.rendered,children:z("button",{className:Ec("window-open-button"),"aria-label":o,"aria-hidden":a,onClick:c,children:[z("span",{className:Ec("message-count"),"aria-hidden":"true",children:!!s&&s}),z(Ip,{})]})})};function Pp(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}const Np={app:()=>z(nf,{children:z(Cp,{interruptComponent:Ep,children:z(Yu,{})})}),inline:()=>{const{showInlineView:t,containerRef:e}=fs(),{isOpen:n}=ls(),{hasInterrupt:r,meta:o}=Ru();return r&&!n?z(Ep,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=jp(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=jp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({},o)):z(U.HY,{children:[z(Zu,{isActive:!n,transitionStartState:Qu.rendered,children:z("div",{ref:e,className:Ec("unstarted-wrapper","unstarted-wrapper--inline"),children:[z(Ap,{}),z(tf,{})]})}),z(Zu,{isActive:n,transitionStartState:Qu.rendered,children:z(nf,{ref:e,children:t&&z(Cp,{interruptComponent:Ep,children:n&&z(Yu,{})})})})]})},window:()=>{const{isOpen:t,openChat:e}=ls(),n=ni(),{hasInterrupt:r,meta:o}=Ru(),{t:i}=Ls(),a=i("window.chat.continue"),s=(0,Ne.Ye)((()=>({payload:{body:{text:a}}})),[a]);return r&&!t?z(Ep,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Pp(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Pp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({},o)):z(U.HY,{children:[z(kp,{onClick:e}),z(Zu,{isActive:!t&&!n,transitionStartState:Qu.rendered,children:z("div",{className:Ec("unstarted-wrapper","unstarted-wrapper--window"),children:z(Ap,{})})}),z(Zu,{isActive:!t&&n,transitionStartState:Qu.notRendered,children:z("div",{className:Ec("unstarted-wrapper","unstarted-wrapper--window","unstarted-wrapper--continue"),children:z(uu,{event:s})})}),z(Zu,{isActive:t,transitionStartState:Qu.notRendered,children:z(nf,{children:z(Cp,{interruptComponent:Ep,children:z(Yu,{})})})})]})}};var Rp=t=>{let{children:e}=t;const[,n]=Xs(),{namespace:r,layoutMode:o,zIndex:i}=Po(),{isOpen:a,isVisible:s}=ls(),c=Ys(),l=ni(),{locale:u}=Ls(),f=Np[o],p=(0,Ne.I4)((t=>{n(t)}),[n]),d=(0,Ne.Ye)((()=>{if(u&&document.querySelector("html").getAttribute("lang")!==u)return u}),[u]);if(!f)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&&z("div",{className:Ec(h),lang:d,tabIndex:"-1","data-nosnippet":!0,style:{zIndex:i},ref:p,children:e||z(f,{})})};function Mp(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Mp(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Mp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Lp=t=>z(zu,Dp(Dp({},t),{},{children:z(Rp,{})})),Up=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};class Fp{constructor(t,e){const{namespace:n="",parentElement:r,showFaq:o}=t,i=Up(t,["namespace","parentElement","showFaq"]);this.config=Object.assign(Object.assign({},i),{namespace:n,showFaq:!1!==o}),this.namespace=n,this.parentElement=r,this.externalApi=e,this.api=new Ie({layoutMode:t.layoutMode,namespace:t.namespace,config:t.api,context:t.context}),this.eventBus=new(Pe()),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)))}render(){return function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){const t=this.config.customComponents||{},{view:e}=t,n=Up(t,["view"]),r=Object.assign(Object.assign({},this.config),{customComponents:Object.keys(n).length?n:void 0}),o=function(t){let{initialState:e,api:n,eventBus:r,config:o}=t;return no({reducer:{state:sa,app:ai,config:ma,i18n:Da,translations:rs,visibility:ss,forms:Pa,interrupt:fi},preloadedState:e,middleware:t=>{var e;return la()(e=t({thunk:{extraArgument:{api:n,eventBus:r,config:o}},serializableCheck:!1})).call(e,[wa({api:n}),Ua({api:n}),Ba({api:n}),os])}})}({api:this.api,eventBus:this.eventBus,config:r,initialState:void 0});o.dispatch(ha(r)),yield o.dispatch(bo());try{const{locale:t}=yield o.dispatch(ti()).unwrap();yield o.dispatch(wo(t))}catch(t){}o.dispatch(Qo()),e?(0,U.sY)(z(zu,Object.assign({eventBus:this.eventBus,store:o,api:this.api},{children:z(e,{})})),this.parentElement):(0,U.sY)(z(Lp,{config:r,eventBus:this.eventBus,store:o,api:this.api}),this.parentElement)}))}destroy(){(0,U.sY)(null,this.parentElement),this.eventBus.off(),this.api.disconnect(),delete this.functions}registerFunctions(t){Object.entries(t).forEach((([t,e])=>{this.registerFunction(t,e)}))}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]=n.filter((t=>t!==e)))}execFunction(t,...e){const n=this.functions[t];return!(!n||!n.length||(n.forEach((n=>{try{n(...e)}catch(e){console.error(`Action(${t}) failed: `,e)}})),0))}}function zp(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=zp(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=zp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Hp=t=>"object"==typeof t&&"action"in t,$p=t=>Bp(Bp({},t),{},{args:e()(t.args)?t.args:[t.args]});var Vp=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=S()(t=C()(n).call(n,Hp)).call(t,$p)).length&&(this._waitingActions.push(...n),this.handleActions())}handleActions(){const t=this._waitingActions;this._waitingActions=[],T()(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)}}))}instanceInitializing(t){const e=j()(this._instances);return!t&&e.length>0||k()(e).call(e,t)}setContext(t,e){const{instance:n}=e;if(this.instanceInitializing(n))return!1;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 j()(e).length>0&&(this.context.variables=Bp({},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?T()(i=N()(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=N()(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=S()(o).call(o,(t=>(!n||t.namespace===n)&&t.execFunction(e,...r)));return M()(i).call(i,Boolean)}createInstance(t){return new Fp(t,this)}destroy(t){var e;t?("string"==typeof t&&(t=this._instances[t]),t&&(t.destroy(),delete this._instances[t.namespace])):T()(e=L()(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=Bp(Bp({},t.context||this.appConfig.context),this.context),n=this.getMergedVariables(t);j()(n).length>0&&(e.variables=n);const r=Bp(Bp({},this.appConfig.defaults),t.defaults),o=Bp(Bp(Bp({},this.appConfig),t),{},{api:Bp(Bp({},this.appConfig.api),t.api),context:j()(e).length?e:void 0,defaults:j()(r).length?r:void 0});return"function"==typeof this.appConfig?this.appConfig(o):o}getMergedVariables(t){return Bp(Bp(Bp({},this.appConfig.context?.variables||{}),t.context?.variables||{}),this.context.variables||{})}},qp=t=>{let{onOpenChat:e}=t;const{t:n}=Ls(),r=mc(),{isOpen:o}=ls(),i=(0,Ne.sO)(null),a=(0,Ne.sO)(null),s=(0,Ne.sO)(),c=Zs(),l=(()=>{const t=(0,Ne.sO)(null),[e]=Xs();return t.current=e,(0,Ne.I4)((e=>{Ot(t.current,(()=>{Js(e)}))}),[])})(),u=Vo(),f=zo().subTitle,{hasInterrupt:p}=Ru(),{headerCollapseButtonId:d}=Mo(),h=u&&!p;return(0,Ne.bt)((()=>{!1===o&&!0===i.current&&l(a.current),i.current=o}),[o,l]),z("div",{className:Ec("toggle-button"),children:[z("div",{id:r,children:[z("p",{className:Ec("toggle-button__title"),children:n(h?"toggleButton.resumeTitle":"toggleButton.title")}),z("p",{className:Ec("toggle-button__subtitle"),children:h?f:n("toggleButton.subtitle")})]}),z("button",{type:"button","aria-labelledby":r,className:Ec("toggle-button__button"),ref:a,onMouseUp:()=>{s.current="mouse"},onKeyUp:()=>{s.current="key"},onClick:()=>{e(),"mouse"===s.current?c():"key"===s.current&&l(d)}})]})},Wp=()=>{const{t:t}=Ls(),{title:e,subTitle:n}=zo(),r=Bo(),{isOpen:o}=ls(),i=Vo(),{hasInterrupt:a}=Ru(),s=No(),c=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)&&z("div",{className:Ec("agent-info"),children:[z("div",{className:Ec("agent-info__graphic"),children:[c?z("img",{className:Ec(i?.avatar?"avatar":"icon"),src:c,alt:""}):z($c,{name:"avatar",size:"32"}),z("span",{className:Ec(u),"aria-hidden":"true",children:r})]}),z("div",{className:Ec("agent-info__body"),children:[z("p",{className:Ec("agent-info__heading"),children:e??t("header.title")}),z("p",{className:Ec("agent-info__text"),children:l})]})]})},Yp=t=>{let{children:e,onCloseChat:n}=t;const{headerCollapseButtonId:r}=Mo(),o=(0,Ne.sO)(null),{t:i}=Ls();return z("header",{className:Ec("chat__header"),children:[e,z("div",{className:Ec("header-controls"),children:z("button",{type:"button",className:Ec("button","header-controls__collapse"),onClick:n,ref:o,id:r,children:z($c,{name:"chevronDown",size:"32",alt:i("header.collapseApp")})})})]})};function Gp(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var Kp=function(t){let{children:e,interruptComponent:n}=t;const{hasInterrupt:r,meta:o}=Ru(),{isOpen:i}=ls();return r?i?z(n,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Gp(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Gp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({},o)):null:z(U.HY,{children:[z(Gf,{children:[z("div",{className:Ec("chat__container__header"),children:z(Sp,{})}),e]}),z(mp,{}),i&&z(Vf,{})]})};const Jp=["categories"];function Xp(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Xp(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Xp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Zp=()=>{const{t:t}=Ls(),{sendAction:e,addMessageBubble:n}=ms(),r=mc(),o=Zs(),{sendPolite:i}=Fs(),{hasInterrupt:a}=Ru(),{hasCountdown:s,endCountdown:c}=vc(),{hasPrompt:l,continueChat:u}=yc(),f=qo("suggestion"),{body:p}=wc({payload:f}),d=(0,Ne.Ye)((()=>{const t=f&&!a?p:[];return S()(t).call(t,(t=>{let{categories:e=[]}=t;return Qp(Qp({},Ws(t,Jp)),{},{categories:e,classNames:["faqs__item",...S()(e).call(e,(t=>`faqs__item--${String(t).toLowerCase().replace(/[^a-z0-9_\\-]/,"")}`))]})}))}),[f,a,p]),h=(0,Ne.sO)(null),v=(0,Ne.sO)(!1),{isInline:y}=Wo(),m=ni(),g=!y&&m,b=(0,Ne.sO)(g),_=!!d.length,w=_&&!g,x=(0,Ne.sO)([]),O=_?d:x.current;x.current=O;const C=(0,Ne.sO)(null);(0,Ne.d4)((()=>{if(h.current!==d&&!g){if(_){const e=v.current?t("faq.srUpdatedText"):t("faq.srAvailableText");dt()((()=>{i(e)}),30)}else v.current&&i(t("faq.srUnavailableText"));h.current=d}!b.current&&g?(Ot(C.current,o),i(t("faq.srUnavailableText"))):!_&&v.current&&Ot(C.current,o),v.current=_,b.current=g}),[_,d,g,o,i,t]);const E=t("faq.headingText"),T=E?"section":"div";return z(Zu,{isActive:w,transitionStartState:Qu.notRendered,children:z(T,{className:Ec("faqs"),"aria-labelledby":E?r:null,ref:C,children:[E&&z("h2",{id:r,className:Ec("faqs__heading"),children:E}),!!O.length&&z("ul",{className:Ec("faqs__list"),children:S()(O).call(O,(t=>z("li",{className:Ec(t.classNames),children:z("button",{type:"button",onClick:()=>{(t=>{let{id:r,question:i}=t;s&&c(!0),l&&u(),e({type:fn,originMessage:f.id,body:{type:"faqclick",body:{faqId:r,faqQuestion:i}}}),n(i),o()})(t)},className:Ec("button","button--secondary"),children:[z($c,{name:"chevronRight",size:"8"}),t.question]})},t.id.toString())))})]})})},td=t=>{let{children:e}=t;const[,n]=Xs(),{isOpen:r,isVisible:o,setVisibility:i}=ls(),{zIndex:a,showFaq:s,layoutMode:c}=Po(),{isInline:l}=Wo(),u=Ys(),f=ni(),{locale:p}=Ls(),d=(0,Ne.I4)((t=>{n(t)}),[n]),h=(0,Ne.Ye)((()=>{if(p&&document.querySelector("html").getAttribute("lang")!==p)return p}),[p]),v=["app","app--deprecated",...u];return r||"window"!==c||v.push("app--collapsed"),f&&v.push("app--user-responded"),v.push(`app--layout-${c}`),o&&z("section",{className:Ec(v),onKeyDown:t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&!l&&r&&i(Io.minimized)},lang:h,tabIndex:"-1",ref:d,style:{zIndex:a},"data-nosnippet":!0,children:[z("div",{className:Ec("app-wrapper"),children:e}),s&&z(Zp,{})]})};const ed=t=>{let{children:e}=t;const{showInlineView:n,containerRef:r}=fs();return z("div",{ref:r,children:n&&e})};var nd=()=>{const{isVisible:t,openChat:e,closeChat:n}=ls();return t&&z(ed,{children:z(td,{children:[z(qp,{onOpenChat:e}),z(Yp,{onCloseChat:n,children:z(Wp,{})}),z(Kp,{interruptComponent:Ep,children:z(Yu,{})})]})})};const rd=()=>{const t=Qe();return{addEvent:e=>t(Ci(e)),clearEvents:()=>t(Ti()),setHistory:e=>t(qi(e)),setEventsRead:e=>t(zi(e)),setLoadedImageEventIds:e=>t(Gi(e)),ackEvent:e=>t(Oi(e)),setIsLoading:e=>t(Yi(e)),setParticipant:e=>t(Ki(e)),setHeaderTitle:e=>t(Vi(e)),setHeaderSubTitle:e=>t($i(e)),resetHistoryLoadedFlag:()=>t(Di()),setActiveService:()=>t(Ui()),initIdleDetachCountdown:e=>t(Ni(e)),decrementIdleDetachCountdownCounter:()=>t(ki()),stopIdleDetachCountdownCounter:()=>t(aa()),clearIdleDetachCountdown:()=>t(ji()),initResumeConversationPrompt:()=>t(Ri()),clearResumeConversationPrompt:()=>t(Ii()),setServiceDataItem:e=>t(Xi(e)),setFeatures:e=>t(Hi(e)),setFeatureEnabledState:e=>t(Bi(e)),clearFeatures:()=>t(Ai()),setInitialState:e=>t(Wi(e)),setUserSelectedOptions:e=>t(oa(e)),setUserSelectedOption:e=>t(ra(e)),showOption:e=>t(ia(e)),hideOption:()=>t(Pi()),setServiceEntryMetadata:e=>t(Qi(e)),setBlockAutoEntrySwitch:e=>t(Fi(e)),setActiveEntryType:e=>t(Li(e)),setUserEntryType:e=>t(na(e)),registerUpload:e=>t(Mi(e)),setUploadProgress:e=>t(ea(e)),setUploadComplete:e=>t(Zi(e)),setUploadError:e=>t(ta(e)),clearAllUploads:()=>t(Ei()),setSeamlyContainerElement:e=>t(Ji(e))}};var od=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 Vp(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={2574:function(t,e,n){"use strict";var r=n(3733),o=n(9389),i=n(8309),a=n(4278),s=n(5110);function c(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 l(){this._defaults=[]}for(var u=0,f=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];u<f.length;u++){const t=f[u];l.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}}l.prototype._setDefaults=function(t){var e,n=function(t,e){var n=void 0!==r&&o(t)||t["@@iterator"];if(!n){if(i(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return c(t,e);var r=a(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?s(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var l=0,u=function(){};return{s:u,n:function(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function(t){throw t},f:u}}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 f,p=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return p=t.done,t},e:function(t){d=!0,f=t},f:function(){try{p||null==n.return||n.return()}finally{if(d)throw f}}}}(this._defaults);try{for(n.s();!(e=n.n()).done;){const n=e.value;t[n.fn](...n.args)}}catch(t){n.e(t)}finally{n.f()}},t.exports=l},8158:function(t,e,n){"use strict";var r=n(3733),o=n(9389),i=n(8309),a=n(4278),s=n(5110),c=n(1607),l=n(1882),u=n(7198),f=n(1189);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}let d;"undefined"!=typeof window?d=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),d=void 0):d=self;const h=n(8767),v=n(4445),y=n(129),m=n(8842),g=n(6244),b=g.isObject,_=g.mixin,w=g.hasOwn,x=n(1253),S=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)};const C=e=t.exports;e.Request=P,C.getXHR=()=>{if(d.XMLHttpRequest)return new d.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const E=c("")?t=>c(t).call(t):t=>t.replace(/(^\s*|\s*$)/g,"");function T(t){if(!b(t))return t;const e=[];for(const n in t)w(t,n)&&A(e,n,t[n]);return e.join("&")}function A(t,e,n){if(void 0!==n)if(null!==n)if(i(n)){var c,l=function(t,e){var n=void 0!==r&&o(t)||t["@@iterator"];if(!n){if(i(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return p(t,e);var r=a(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?s(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 c=0,l=function(){};return{s:l,n:function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},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}}}}(n);try{for(l.s();!(c=l.n()).done;)A(t,e,c.value)}catch(t){l.e(t)}finally{l.f()}}else if(b(n))for(const r in n)w(n,r)&&A(t,`${e}[${r}]`,n[r]);else t.push(encodeURI(e)+"="+encodeURIComponent(n));else t.push(encodeURI(e))}function j(t){const e={},n=t.split("&");let r,o;for(let t=0,i=n.length;t<i;++t)r=n[t],o=l(r).call(r,"="),-1===o?e[decodeURIComponent(r)]="":e[decodeURIComponent(a(r).call(r,0,o))]=decodeURIComponent(a(r).call(r,o+1));return e}function I(t){return/[/+]json($|[^-\w])/i.test(t)}function k(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;let e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){const e=t.split(/\r?\n/),n={};let r,o,i,s;for(let t=0,c=e.length;t<c;++t)o=e[t],r=l(o).call(o,":"),-1!==r&&(i=a(o).call(o,0,r).toLowerCase(),s=E(a(o).call(o,r+1)),n[i]=s);return n}(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 P(t,e){const n=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(()=>{let t,e=null,r=null;try{r=new k(n)}catch(t){return e=new Error("Parser is unable to parse the response"),e.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=T,C.parseString=j,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":y.stringify,"application/json":v},C.parse={"application/x-www-form-urlencoded":j,"application/json":JSON.parse},_(k.prototype,x.prototype),k.prototype._parseBody=function(t){let e=C.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&I(this.type)&&(e=C.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},k.prototype.toError=function(){const t=this.req,e=t.method,n=t.url,r=`cannot ${e} ${n} (${this.status})`,o=new Error(r);return o.status=this.status,o.method=e,o.url=n,o},C.Response=k,h(P.prototype),_(P.prototype,m.prototype),P.prototype.type=function(t){return this.set("Content-Type",C.types[t]||t),this},P.prototype.accept=function(t){return this.set("Accept",C.types[t]||t),this},P.prototype.auth=function(t,e,n){1===arguments.length&&(e=""),"object"==typeof e&&null!==e&&(n=e,e=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});const r=n.encoder?n.encoder: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)},P.prototype.query=function(t){return"string"!=typeof t&&(t=T(t)),t&&this._query.push(t),this},P.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},P.prototype._getFormData=function(){return this._formData||(this._formData=new d.FormData),this._formData},P.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();const n=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),n(t,e)},P.prototype.crossDomainError=function(){const 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)},P.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},P.prototype.ca=P.prototype.agent,P.prototype.buffer=P.prototype.ca,P.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},P.prototype.pipe=P.prototype.write,P.prototype._isHost=function(t){return t&&"object"==typeof t&&!i(t)&&"[object Object]"!==Object.prototype.toString.call(t)},P.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()},P.prototype._setUploadTimeout=function(){const t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=u((()=>{t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},P.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const t=this;this.xhr=C.getXHR();const e=this.xhr;let n=this._formData||this._data;this._setTimeouts(),e.addEventListener("readystatechange",(()=>{const n=e.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4!==n)return;let r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}));const r=(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",f(r).call(r,null,"download")),e.upload&&e.upload.addEventListener("progress",f(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)){const t=this._header["content-type"];let e=this._serializer||C.serialize[t?t.split(";")[0]:""];!e&&I(t)&&(e=C.serialize["application/json"]),e&&(n=e(n))}for(const t in this.header)null!==this.header[t]&&w(this.header,t)&&e.setRequestHeader(t,this.header[t]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===n?null:n)},C.agent=()=>new S;for(var N=0,R=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];N<R.length;N++){const t=R[N];S.prototype[t.toLowerCase()]=function(e,n){const r=new C.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}}function M(t,e,n){const r=C("DELETE",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}S.prototype.del=S.prototype.delete,C.get=(t,e,n)=>{const r=C("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},C.head=(t,e,n)=>{const r=C("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},C.options=(t,e,n)=>{const r=C("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},C.del=M,C.delete=M,C.patch=(t,e,n)=>{const r=C("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},C.post=(t,e,n)=>{const r=C("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},C.put=(t,e,n)=>{const 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(7724),o=n(6226),i=n(8309),a=n(1607),s=n(8118),c=n(1882),l=n(4278),u=n(2578),f=n(7198);const p=n(3695),d=n(6244),h=d.isObject,v=d.hasOwn;function y(){}t.exports=y,y.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},y.prototype.parse=function(t){return this._parser=t,this},y.prototype.responseType=function(t){return this._responseType=t,this},y.prototype.serialize=function(t){return this._serializer=t,this},y.prototype.timeout=function(t){if(!t||"object"!=typeof t)return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(const e in t)if(v(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},y.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};const m=new r(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),g=new r([408,413,429,500,502,503,504,521,522,524]);y.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(t){console.error(t)}if(e&&e.status&&g.has(e.status))return!0;if(t){if(t.code&&m.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},y.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()},y.prototype.then=function(t,e){if(!this._fullfilledPromise){const t=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 o(((e,n)=>{t.on("abort",(()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError)return void n(this.timedoutError);const t=new Error("Aborted");t.code="ABORTED",t.status=this.status,t.method=this.method,t.url=this.url,n(t)})),t.end(((t,r)=>{t?n(t):e(r)}))}))}return this._fullfilledPromise.then(t,e)},y.prototype.catch=function(t){return this.then(void 0,t)},y.prototype.use=function(t){return t(this),this},y.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},y.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},y.prototype.get=function(t){return this._header[t.toLowerCase()]},y.prototype.getHeader=y.prototype.get,y.prototype.set=function(t,e){if(h(t)){for(const e in t)v(t,e)&&this.set(e,t[e]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},y.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},y.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(h(t)){for(const e in t)v(t,e)&&this.field(e,t[e]);return this}if(i(e)){for(const n in e)v(e,n)&&this.field(t,e[n]);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},y.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(p.gte(process.version,"v13.0.0")&&p.lt(process.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");p.gte(process.version,"v14.0.0")&&(this.req.destroyed=!0),this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},y.prototype._auth=function(t,e,n,r){switch(n.type){case"basic":this.set("Authorization",`Basic ${r(`${t}:${e}`)}`);break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization",`Bearer ${t}`)}return this},y.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},y.prototype.redirects=function(t){return this._maxRedirects=t,this},y.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},y.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},y.prototype.send=function(t){const e=h(t);let 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)i(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&&h(this._data))for(const e in t)v(t,e)&&(this._data[e]=t[e]);else if("string"==typeof t){var r;n||this.type("form"),n=this._header["content-type"],n&&(n=a(r=n.toLowerCase()).call(r)),this._data="application/x-www-form-urlencoded"===n?this._data?`${this._data}&${t}`:t:(this._data||"")+t}else this._data=t;return!e||this._isHost(t)||n||this.type("json"),this},y.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},y.prototype._finalizeQueryString=function(){const t=this._query.join("&");var e;if(t&&(this.url+=(s(e=this.url).call(e,"?")?"&":"?")+t),this._query.length=0,this._sort){var n;const t=c(n=this.url).call(n,"?");if(t>=0){var r,o;const e=l(r=this.url).call(r,t+1).split("&");"function"==typeof this._sort?u(e).call(e,this._sort):u(e).call(e),this.url=l(o=this.url).call(o,0,t)+"?"+e.join("&")}}},y.prototype._appendQueryString=()=>{console.warn("Unsupported")},y.prototype._timeoutError=function(t,e,n){if(this._aborted)return;const r=new Error(`${t+e}ms exceeded`);r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)},y.prototype._setTimeouts=function(){const t=this;this._timeout&&!this._timer&&(this._timer=f((()=>{t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=f((()=>{t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},1253:function(t,e,n){"use strict";var r=n(4157);const o=n(6244);function i(){}t.exports=i,i.prototype.get=function(t){return this.header[t.toLowerCase()]},i.prototype._setHeaderProperties=function(t){const e=t["content-type"]||"";this.type=o.type(e);const n=o.params(e);for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(this[t]=n[t]);this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},i.prototype._setStatusProperties=function(t){const 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(3733),o=n(9389),i=n(8309),a=n(4278),s=n(5110);function c(t,e){var n=void 0!==r&&o(t)||t["@@iterator"];if(!n){if(i(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return l(t,e);var r=a(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?s(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var c=0,u=function(){};return{s:u,n:function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function(t){throw t},f:u}}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 f,p=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return p=t.done,t},e:function(t){d=!0,f=t},f:function(){try{p||null==n.return||n.return()}finally{if(d)throw f}}}}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}e.type=t=>t.split(/ *; */).shift(),e.params=t=>{const e={};var n,r=c(t.split(/ *; */));try{for(r.s();!(n=r.n()).done;){const t=n.value.split(/ *= */),r=t.shift(),o=t.shift();r&&o&&(e[r]=o)}}catch(t){r.e(t)}finally{r.f()}return e},e.parseLinks=t=>{const e={};var n,r=c(t.split(/ *, */));try{for(r.s();!(n=r.n()).done;){var o,i;const t=n.value.split(/ *; */),r=a(o=t[0]).call(o,1,-1);e[a(i=t[1].split(/ *= */)[1]).call(i,1,-1)]=r}}catch(t){r.e(t)}finally{r.f()}return e},e.cleanHeader=(t,e)=>(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=t=>null!==t&&"object"==typeof 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=(t,n)=>{for(const r in n)e.hasOwn(n,r)&&(t[r]=n[r])}},1905: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 f=function(){return s(r,i,arguments)};l?l(t.exports,"apply",{value:f}):t.exports.apply=f},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},281:function(t,e,n){var r=n(2547);t.exports=r},31:function(t,e,n){var r=n(6509);t.exports=r},7487:function(t,e,n){var r=n(5774);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},1461:function(t,e,n){n(8851);var r=n(5703);t.exports=r("Array").every},4162: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},8209:function(t,e,n){n(8611);var r=n(5703);t.exports=r("Array").splice},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(1461),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(4162),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}},8339:function(t,e,n){var r=n(7046),o=n(8209),i=Array.prototype;t.exports=function(t){var e=t.splice;return t===i||r(i,t)&&e===i.splice?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},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},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(6371);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(1766),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")},2978:function(t,e,n){n(8084),n(3131);var r=n(1477);t.exports=r.f("toPrimitive")},2304:function(t,e,n){n(6274),n(5967),n(4334);var r=n(4058);t.exports=r.WeakMap},9567:function(t,e,n){n(6274),n(5967),n(1773);var r=n(4058);t.exports=r.WeakSet},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)},6600:function(t,e,n){t.exports=n(2201)},9759:function(t,e,n){t.exports=n(7398)},1384:function(t,e,n){t.exports=n(6189)},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},2201:function(t,e,n){var r=n(281);n(8783),n(3975),n(5799),n(1943),n(6774),n(5414),n(620),n(6172),t.exports=r},7398:function(t,e,n){var r=n(31);t.exports=r},6189:function(t,e,n){var r=n(7487);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),f=n(3476),p=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,x,S=p(e),O=0;if(!S||this===d&&s(S))for(m=l(e),g=n?new this(m):d(m);m>O;O++)x=y?v(e[O],O):e[O],u(g,O,x);else for(w=(_=f(e,S)).next,g=n?new this:[];!(b=o(w,_)).done;O++)x=y?a(_,v,[b.value,O],!0):b.value,u(g,O,x);return g.length=O,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,f=6==t,p=7==t,d=5==t||f;return function(h,v,y,m){for(var g,b,_=a(h),w=i(_),x=r(v,y),S=s(w),O=0,C=m||c,E=e?C(h,S):n||p?C(h,0):void 0;S>O;O++)if((d||O in w)&&(b=x(g=w[O],O,_),t))if(e)E[O]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return O;case 2:l(E,g)}else switch(t){case 4:return!1;case 7:l(E,g)}return f?-1:o||u?u:E}};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),f=i(u),p=a(u),d=t?p-1:0,h=t?-1:1;if(c<2)for(;;){if(d in f){l=f[d],d+=h;break}if(d+=h,t?d<0:p<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:p>d;d+=h)d in f&&(l=n(l,f[d],d,u));return l}};t.exports={left:c(!1),right:c(!0)}},9779:function(t,e,n){"use strict";var r=n(5746),o=n(1052),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(o(t)&&!a(t,"length").writable)throw i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},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),f=a(s(u-l,0)),p=0;l<u;l++,p++)i(f,p,t[l]);return f.length=p,f}},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}},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(2119),l=n(3091),u=n(5105),f=n(3538),p=n(4431),d=n(5746),h=n(1647).fastKey,v=n(5402),y=v.set,m=v.getterFor;t.exports={getConstructor:function(t,e,n,u){var f=t((function(t,r){s(t,p),y(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),d||(t.size=0),c(r)||l(r,t[u],{that:t,AS_ENTRIES:n})})),p=f.prototype,v=m(e),g=function(t,e,n){var r,o,i=v(t),a=b(t,e);return a?a.value=n:(i.last=a={index:o=h(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),d?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},b=function(t,e){var n,r=v(t),o=h(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(p,{clear:function(){for(var t=v(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,d?t.size=0:this.size=0},delete:function(t){var e=this,n=v(e),r=b(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),d?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=v(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!!b(this,t)}}),i(p,n?{get:function(t){var e=b(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)}}),d&&r(p,"size",{get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=m(e),i=m(r);u(t,e,(function(t,e){y(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)?f("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),p(e)}}},8850:function(t,e,n){"use strict";var r=n(5329),o=n(4380),i=n(1647).getWeakData,a=n(5743),s=n(6059),c=n(2119),l=n(941),u=n(3091),f=n(3610),p=n(953),d=n(5402),h=d.set,v=d.getterFor,y=f.find,m=f.findIndex,g=r([].splice),b=0,_=function(t){return t.frozen||(t.frozen=new w)},w=function(){this.entries=[]},x=function(t,e){return y(t.entries,(function(t){return t[0]===e}))};w.prototype={get:function(t){var e=x(this,t);if(e)return e[1]},has:function(t){return!!x(this,t)},set:function(t,e){var n=x(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=m(this.entries,(function(e){return e[0]===t}));return~e&&g(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var f=t((function(t,o){a(t,d),h(t,{type:e,id:b++,frozen:void 0}),c(o)||u(o,t[r],{that:t,AS_ENTRIES:n})})),d=f.prototype,y=v(e),m=function(t,e,n){var r=y(t),o=i(s(e),!0);return!0===o?_(r).set(e,n):o[r.id]=n,t};return o(d,{delete:function(t){var e=y(this);if(!l(t))return!1;var n=i(t);return!0===n?_(e).delete(t):n&&p(n,e.id)&&delete n[e.id]},has:function(t){var e=y(this);if(!l(t))return!1;var n=i(t);return!0===n?_(e).has(t):n&&p(n,e.id)}}),o(d,n?{get:function(t){var e=y(this);if(l(t)){var n=i(t);return!0===n?_(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return m(this,t,e)}}:{add:function(t){return m(this,t,!0)}}),f}}},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),f=n(941),p=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,b=-1!==t.indexOf("Map"),_=-1!==t.indexOf("Weak"),w=b?"set":"add",x=o[t],S=x&&x.prototype,O={};if(v&&u(x)&&(_||S.forEach&&!a((function(){(new x).entries().next()})))){var C=(y=e((function(e,n){m(l(e,C),{type:t,collection:new x}),null!=n&&c(n,e[w],{that:e,AS_ENTRIES:b})}))).prototype,E=g(t);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in S)||_&&"clear"==t||s(C,t,(function(n,r){var o=E(this).collection;if(!e&&_&&!f(n))return"get"==t&&void 0;var i=o[t](0===n?0:n,r);return e?this:i}))})),_||d(C,"size",{configurable:!0,get:function(){return E(this).collection.size}})}else y=n.getConstructor(e,t,b,w),i.enable();return p(y,t,!1,!0),O[t]=y,r({global:!0,forced:!0},O),_||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 f=s[u];r(t,f)||n&&r(n,f)||c(t,f,l(e,f))}}},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}))},3538:function(t){t.exports=function(t,e){return{value:t,done:e}}},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}},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]}))},6616:function(t){var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},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,e,n){var r=n(8501),o=n(6049);t.exports=!r&&!o&&"object"==typeof window&&"object"==typeof document},8501:function(t){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},1046: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"]},3995: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}},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(7484),a=n(7475),s=n(9677).f,c=n(7252),l=n(4058),u=n(6843),f=n(2029),p=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,x=t.stat,S=t.proto,O=w?r:x?r[_]:(r[_]||{}).prototype,C=w?l:l[_]||f(l,_,{})[_],E=C.prototype;for(h in e)n=!c(w?h:_+(x?".":"#")+h,t.forced)&&O&&p(O,h),y=C[h],n&&(m=t.dontCallGetSet?(b=s(O,h))&&b.value:O[h]),v=n&&m?m:e[h],n&&typeof y==typeof v||(g=t.bind&&n?u(v,r):t.wrap&&n?d(v):S&&a(v)?i(v):v,(t.sham||v&&v.sham||y&&y.sham)&&f(g,"sham",!0),f(C,h,g),S&&(p(l,o=_+"Prototype")||f(l,o,{}),f(l[o],h,v),t.real&&E&&!E[h]&&f(E,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,f,p){for(var d,h,v=l,y=0,m=!!f&&a(f,p);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(7484),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),f=r([].join),p={},d=function(t,e,n){if(!a(p,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";p[e]=l("C,a","return new C("+f(r,",")+")")}return p[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}},7484:function(t,e,n){var r=n(2532),o=n(5329);t.exports=function(t){if("Function"===r(t))return o(t)}},5329:function(t,e,n){var r=n(8285),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.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(2119),a=n(2077),s=n(9813)("iterator");t.exports=function(t){if(!i(t))return o(t,s)||o(t,"@@iterator")||a[r(t)]}},3476: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),o=n(2119);t.exports=function(t,e){var n=t[e];return o(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),f=n(1584),p=n(9418),d=n(5602),h=!1,v=p("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(!f(t))return"F";if(!e)return"E";m(t)}return t[v].objectID},getWeakData:function(t,e){if(!s(t,v)){if(!f(t))return!0;if(!e)return!1;m(t)}return t[v].weakData},onFreeze:function(t){return d&&h&&f(t)&&!s(t,v)&&m(t),t}};i[v]=!0},5402:function(t,e,n){var r,o,i,a=n(7093),s=n(1899),c=n(941),l=n(2029),u=n(953),f=n(3030),p=n(4262),d=n(7748),h="Object already initialized",v=s.TypeError,y=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new y);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw v(h);return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var g=p("state");d[g]=!0,r=function(t,e){if(u(t,g))throw v(h);return e.facade=t,l(t,g,e),e},o=function(t){return u(t,g)?t[g]:{}},i=function(t){return u(t,g)}}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(!c(e)||(n=o(e)).type!==t)throw v("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,e,n){var r=n(6616),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}: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=[],f=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),h=!p.exec(l),v=function(t){if(!i(t))return!1;try{return f(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(p,c(t))}catch(t){return!0}};y.sham=!0,t.exports=!f||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},2119:function(t){t.exports=function(t){return null==t}},941:function(t,e,n){var r=n(7475),o=n(6616),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}: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(3476),f=n(2902),p=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,x,S=n&&n.that,O=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),A=r(e,S),j=function(t){return y&&p(y,"normal",t),new h(!0,t)},I=function(t){return O?(i(t),T?A(t[0],t[1],j):A(t[0],t[1])):T?A(t,j):A(t)};if(C)y=t.iterator;else if(E)y=t;else{if(!(m=f(t)))throw d(a(t)+" is not iterable");if(s(m)){for(g=0,b=c(t);b>g;g++)if((_=I(t[g]))&&l(v,_))return _;return new h(!1)}y=u(t,m)}for(w=C?t.next:y.next;!(x=o(w,y)).done;){try{_=I(x.value)}catch(t){p(y,"throw",t)}if("object"==typeof _&&_&&l(v,_))return _}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}},3847: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}},5105:function(t,e,n){"use strict";var r=n(6887),o=n(8834),i=n(2529),a=n(9417),s=n(7475),c=n(3847),l=n(249),u=n(8929),f=n(904),p=n(2029),d=n(5929),h=n(9813),v=n(2077),y=n(5143),m=a.PROPER,g=a.CONFIGURABLE,b=y.IteratorPrototype,_=y.BUGGY_SAFARI_ITERATORS,w=h("iterator"),x="keys",S="values",O="entries",C=function(){return this};t.exports=function(t,e,n,a,h,y,E){c(n,e,a);var T,A,j,I=function(t){if(t===h&&M)return M;if(!_&&t in N)return N[t];switch(t){case x:case S:case O:return function(){return new n(this,t)}}return function(){return new n(this)}},k=e+" Iterator",P=!1,N=t.prototype,R=N[w]||N["@@iterator"]||h&&N[h],M=!_&&R||I(h),D="Array"==e&&N.entries||R;if(D&&(T=l(D.call(new t)))!==Object.prototype&&T.next&&(i||l(T)===b||(u?u(T,b):s(T[w])||d(T,w,C)),f(T,k,!0,!0),i&&(v[k]=C)),m&&h==S&&R&&R.name!==S&&(!i&&g?p(N,"name",S):(P=!0,M=function(){return o(R,this)})),h)if(A={values:I(S),keys:y?M:I(x),entries:I(O)},E)for(j in A)(_||P||!(j in N))&&d(N,j,A[j]);else r({target:e,proto:!0,forced:_||P},A);return i&&!E||N[w]===M||d(N,w,M,{name:h}),v[e]=M,A}},5143:function(t,e,n){"use strict";var r,o,i,a=n(5981),s=n(7475),c=n(941),l=n(9290),u=n(249),f=n(5929),p=n(9813),d=n(2529),h=p("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):v=!0),!c(r)||a((function(){var t={};return r[h].call(t)!==t}))?r={}:d&&(r=l(r)),s(r[h])||f(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},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,f=n(1899),p=n(6843),d=n(9677).f,h=n(2941).set,v=n(2749),y=n(4470),m=n(8045),g=n(6049),b=f.MutationObserver||f.WebKitMutationObserver,_=f.document,w=f.process,x=f.Promise,S=d(f,"queueMicrotask"),O=S&&S.value;O||(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&&x&&x.resolve?((l=x.resolve(void 0)).constructor=x,u=p(l.then,l),a=function(){u(r)}):g?a=function(){w.nextTick(r)}:(h=p(h,f),a=function(){h(r)}):(s=!0,c=_.createTextNode(""),new b(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),t.exports=O||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},9520:function(t,e,n){"use strict";var r=n(4883),o=TypeError,i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw o("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(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}},1942: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,f=r.Symbol,p=f&&f.iterator,d=1/u(c+"-0")!=-1/0||p&&!o((function(){u(Object(p))}));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,f=u&&u.iterator,p=/^[+-]?0x/i,d=i(p.exec),h=8!==l(c+"08")||22!==l(c+"0x16")||f&&!o((function(){l(Object(f))}));t.exports=h?function(t,e){var n=s(a(t));return l(n,e>>>0||(d(p,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),f=n(7026),p=Object.assign,d=Object.defineProperty,h=o([].concat);t.exports=!p||a((function(){if(r&&1!==p({b:1},p(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!=p({},t)[n]||s(p({},e)).join("")!=o}))?function(t,e){for(var n=u(t),o=arguments.length,a=1,p=c.f,d=l.f;o>a;)for(var v,y=f(arguments[a++]),m=p?h(s(y),p(y)):s(y),g=m.length,b=0;g>b;)v=m[b++],r&&!i(d,y,v)||(n[v]=y[v]);return n}:p},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),f="prototype",p="script",d=u("IE_PROTO"),h=function(){},v=function(t){return"<"+p+">"+t+"</"+p+">"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;m="undefined"!=typeof document?document.domain&&r?y(r):(e=l("iframe"),n="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(r);for(var o=a.length;o--;)delete m[f][a[o]];return m()};s[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[f]=o(t),n=new h,h[f]=null,n[d]=t):n=m(),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,f="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=u(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:f in n?n[f]:r[f],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),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=c(e),u)try{return f(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,f=0,p=[];u>f;)n=l[f++],r&&!s(o,n)||c(p,t?[n,o[n]]:o[n]);return p}};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(8501),f=n(2529),p=n(3385),d=o&&o.prototype,h=c("species"),v=!1,y=i(r.PromiseRejectionEvent),m=a("Promise",(function(){var t=s(o),e=t!==String(o);if(!e&&66===p)return!0;if(f&&(!d.catch||!d.finally))return!0;if(!p||p<51||!/native code/.test(t)){var n=new o((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(v=n.then((function(){}))instanceof r))return!0}return!e&&(l||u)&&!y}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:y,SUBCLASSING:v}},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,e,n){var r=n(2119),o=TypeError;t.exports=function(t){if(r(t))throw o("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,f=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:f(r.setTimeout),setInterval:f(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.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},487:function(t,e,n){var r=n(6059),o=n(174),i=n(2119),a=n(9813)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||i(n=r(s)[a])?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,f=i(a(e)),p=o(n),d=f.length;return p<0||p>=d?t?"":void 0:(r=c(f,p))<55296||r>56319||p+1===d||(u=c(f,p+1))<56320||u>57343?t?s(f,p):r:t?l(f,p,p+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+"*$"),f=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:f(1),end:f(2),trim:f(3)}},3405: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}))},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})}},4680:function(t,e,n){var r=n(3405);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},2941:function(t,e,n){var r,o,i,a,s=n(1899),c=n(9730),l=n(6843),u=n(7475),f=n(953),p=n(5981),d=n(5463),h=n(3765),v=n(1333),y=n(8348),m=n(2749),g=n(6049),b=s.setImmediate,_=s.clearImmediate,w=s.process,x=s.Dispatch,S=s.Function,O=s.MessageChannel,C=s.String,E=0,T={},A="onreadystatechange";try{r=s.location}catch(t){}var j=function(t){if(f(T,t)){var e=T[t];delete T[t],e()}},I=function(t){return function(){j(t)}},k=function(t){j(t.data)},P=function(t){s.postMessage(C(t),r.protocol+"//"+r.host)};b&&_||(b=function(t){y(arguments.length,1);var e=u(t)?t:S(t),n=h(arguments,1);return T[++E]=function(){c(e,void 0,n)},o(E),E},_=function(t){delete T[t]},g?o=function(t){w.nextTick(I(t))}:x&&x.now?o=function(t){x.now(I(t))}:O&&!m?(a=(i=new O).port2,i.port1.onmessage=k,o=l(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!p(P)?(o=P,s.addEventListener("message",k,!1)):o=A in v("script")?function(t){d.appendChild(v("script"))[A]=function(){d.removeChild(this),j(t)}}:function(t){setTimeout(I(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(3405);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}},7093:function(t,e,n){var r=n(1899),o=n(7475),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},3464: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)})}},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(3405),c=n(2302),l=o("wks"),u=r.Symbol,f=u&&u.for,p=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&&f?f(e):p(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),f=n(3995),p=n(3794),d=n(3091),h=n(4649),v=n(9813),y=n(8780),m=v("toStringTag"),g=Error,b=[].push,_=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,s=o(w,this);a?n=a(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",f(n.stack,1)),p(n,r);var u=[];return d(t,b,{that:u}),l(n,"errors",u),n};a?a(_,g):s(_,g,{name:!0});var w=_.prototype=c(g.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),f=n(4692),p=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=p("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),p=f(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(p,d,i[n]);else l(d+1),u(p,d++,i);return p.length=d,p}})},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)[a]((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)[a]((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(7484),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(5105),l=n(3538),u=n(2529),f=n(5746),p="Array Iterator",d=a.set,h=a.getterFor(p);t.exports=c(Array,"Array",(function(t,e){d(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,l(void 0,!0)):l("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!u&&f&&"values"!==v.name)try{s(v,"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),f=n(9813),p=n(568),d=n(3765),h=p("slice"),v=f("species"),y=Array,m=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,r,f,p=l(this),h=c(p),g=s(t,h),b=s(void 0===e?h:e,h);if(o(p)&&(n=p.constructor,(i(n)&&(n===y||o(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===y||void 0===n))return d(p,g,b);for(r=new(void 0===n?y:n)(m(b-g,0)),f=0;g<b;g++,f++)g in p&&u(r,f,p[g]);return r.length=f,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),f=n(1388),p=n(4194),d=n(4342),h=n(1046),v=n(3385),y=n(8938),m=[],g=o(m.sort),b=o(m.push),_=u((function(){m.sort(void 0)})),w=u((function(){m.sort(null)})),x=p("sort"),S=!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:_||!w||!x||!S},{sort:function(t){void 0!==t&&i(t);var e=a(this);if(S)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&&b(o,e[r]);for(f(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=s(o),r=0;r<n;)e[r]=o[r++];for(;r<u;)c(e,r++);return e}})},8611:function(t,e,n){"use strict";var r=n(6887),o=n(9678),i=n(9413),a=n(2435),s=n(623),c=n(9779),l=n(6796),u=n(4692),f=n(5449),p=n(5863),d=n(568)("splice"),h=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,r,d,y,m,g,b=o(this),_=s(b),w=i(t,_),x=arguments.length;for(0===x?n=r=0:1===x?(n=0,r=_-w):(n=x-2,r=v(h(a(e),0),_-w)),l(_+n-r),d=u(b,r),y=0;y<r;y++)(m=w+y)in b&&f(d,y,b[m]);if(d.length=r,n<r){for(y=w;y<_-r;y++)g=y+n,(m=y+r)in b?b[g]=b[m]:p(b,g);for(y=_;y>_-r+n;y--)p(b,y-1)}else if(n>r)for(y=_-r;y>w;y--)g=y+n-1,(m=y+r-1)in b?b[g]=b[m]:p(b,g);for(y=0;y<n;y++)b[y+w]=arguments[y+2];return c(b,_-r+n),d}})},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)}})},8084:function(){},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),f=n(941),p=n(6664),d=n(3765),h=n(3405),v=o("JSON","stringify"),y=s(/./.exec),m=s("".charAt),g=s("".charCodeAt),b=s("".replace),_=s(1..toString),w=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,O=!h||c((function(){var t=o("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),C=c((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),E=function(t,e){var n=d(arguments),r=e;if((f(e)||void 0!==t)&&!p(t))return l(e)||(e=function(t,e){if(u(r)&&(e=a(r,this,t,e)),!p(e))return e}),n[1]=e,i(v,null,n)},T=function(t,e,n){var r=m(n,e-1),o=m(n,e+1);return y(x,t)&&!y(S,o)||y(S,t)&&!y(x,r)?"\\u"+_(g(t,0),16):t};v&&r({target:"JSON",stat:!0,arity:3,forced:O||C},{stringify:function(t,e,n){var r=d(arguments),o=i(O?E:v,null,r);return C&&"string"==typeof o?b(o,w,T):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})},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={},f=0;l.length>f;)void 0!==(n=o(r,e=l[f++]))&&c(u,e,n);return u}})},7144:function(t,e,n){var r=n(6887),o=n(3405),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(1942);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),f=r.resolve,p=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,f(t))}),(function(t){l||d||(l=!0,a[i]=t,--c||p(new n(a,u)))}))})),--c||p(new n(a,u))}));return d.error&&p(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 f=s("Promise").prototype.catch;u.catch!==f&&l(u,"catch",f,{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),f=n(5929),p=n(8929),d=n(904),h=n(4431),v=n(4883),y=n(7475),m=n(941),g=n(5743),b=n(487),_=n(2941).set,w=n(6132),x=n(4845),S=n(2),O=n(8397),C=n(5402),E=n(6991),T=n(7742),A=n(9520),j="Promise",I=T.CONSTRUCTOR,k=T.REJECTION_EVENT,P=T.SUBCLASSING,N=C.getterFor(j),R=C.set,M=E&&E.prototype,D=E,L=M,U=l.TypeError,F=l.document,z=l.process,B=A.f,H=B,$=!!(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,f=t.domain;try{s?(a||(2===e.rejection&&X(e),e.rejection=1),!0===s?n=i:(f&&f.enter(),n=s(i),f&&(f.exit(),o=!0)),n===t.promise?l(U("Promise-chain cycle")):(r=q(n))?u(r,n,c,l):c(n)):l(i)}catch(t){f&&!o&&f.exit(),l(t)}},Y=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&&K(t)})))},G=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},!k&&(o=l["on"+t])?o(r):t===V&&x("Unhandled promise rejection",n)},K=function(t){u(_,l,(function(){var e,n=t.facade,r=t.value;if(J(t)&&(e=S((function(){c?z.emit("unhandledRejection",r,n):G(V,n,r)})),t.rejection=c||J(t)?2:1,e.error))throw e.value}))},J=function(t){return 1!==t.rejection&&!t.parent},X=function(t){u(_,l,(function(){var e=t.facade;c?z.emit("rejectionHandled",e):G("rejectionhandled",e,t.value)}))},Q=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,Y(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw U("Promise can't be resolved itself");var r=q(e);r?w((function(){var n={done:!1};try{u(r,e,Q(tt,n,t),Q(Z,n,t))}catch(e){Z(n,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){Z({done:!1},e,t)}}};if(I&&(L=(D=function(t){g(this,L),v(t),u(r,this);var e=N(this);try{t(Q(tt,e),Q(Z,e))}catch(t){Z(e,t)}}).prototype,(r=function(t){R(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:void 0})}).prototype=f(L,"then",(function(t,e){var n=N(this),r=B(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=N(t);this.promise=t,this.resolve=Q(tt,e),this.reject=Q(Z,e)},A.f=B=function(t){return t===D||void 0===t?new o(t):H(t)},!s&&y(E)&&M!==Object.prototype)){i=M.then,P||f(M,"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 M.constructor}catch(t){}p&&p(M,L)}a({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:D}),d(D,j,!1,!0),h(j)},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),f=n(5929),p=i&&i.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){p.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;p.finally!==d&&f(p,"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(5105),s=n(3538),c="String Iterator",l=i.set,u=i.getterFor(c);a(String,"String",(function(t){l(this,{type:c,string:o(t),index:0})}),(function(){var t,e=u(this),n=e.string,o=e.index;return o>=n.length?s(void 0,!0):(t=r(n,o),e.index+=t.length,s(t,!1))}))},6371: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(3464)("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(3405),u=n(5981),f=n(953),p=n(7046),d=n(6059),h=n(4529),v=n(3894),y=n(5803),m=n(1887),g=n(9290),b=n(4771),_=n(946),w=n(684),x=n(7857),S=n(9677),O=n(5988),C=n(9938),E=n(6760),T=n(5929),A=n(8726),j=n(4262),I=n(7748),k=n(9418),P=n(9813),N=n(1477),R=n(3464),M=n(9630),D=n(904),L=n(5402),U=n(3610).forEach,F=j("hidden"),z="Symbol",B="prototype",H=L.set,$=L.getterFor(z),V=Object[B],q=o.Symbol,W=q&&q[B],Y=o.TypeError,G=o.QObject,K=S.f,J=O.f,X=w.f,Q=E.f,Z=a([].push),tt=A("symbols"),et=A("op-symbols"),nt=A("wks"),rt=!G||!G[B]||!G[B].findChild,ot=c&&u((function(){return 7!=g(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=K(V,e);r&&delete V[e],J(t,e,n),r&&t!==V&&J(V,e,r)}:J,it=function(t,e){var n=tt[t]=g(W);return H(n,{type:z,tag:t,description:e}),c||(n.description=e),n},at=function(t,e,n){t===V&&at(et,e,n),d(t);var r=v(e);return d(n),f(tt,r)?(n.enumerable?(f(t,F)&&t[F][r]&&(t[F][r]=!1),n=g(n,{enumerable:m(0,!1)})):(f(t,F)||J(t,F,m(1,{})),t[F][r]=!0),ot(t,r,n)):J(t,r,n)},st=function(t,e){d(t);var n=h(e),r=b(n).concat(ft(n));return U(r,(function(e){c&&!i(ct,n,e)||at(t,e,n[e])})),t},ct=function(t){var e=v(t),n=i(Q,this,e);return!(this===V&&f(tt,e)&&!f(et,e))&&(!(n||!f(this,e)||!f(tt,e)||f(this,F)&&this[F][e])||n)},lt=function(t,e){var n=h(t),r=v(e);if(n!==V||!f(tt,r)||f(et,r)){var o=K(n,r);return!o||!f(tt,r)||f(n,F)&&n[F][r]||(o.enumerable=!0),o}},ut=function(t){var e=X(h(t)),n=[];return U(e,(function(t){f(tt,t)||f(I,t)||Z(n,t)})),n},ft=function(t){var e=t===V,n=X(e?et:h(t)),r=[];return U(n,(function(t){!f(tt,t)||e&&!f(V,t)||Z(r,tt[t])})),r};l||(q=function(){if(p(W,this))throw Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=k(t),n=function(t){this===V&&i(n,et,t),f(this,F)&&f(this[F],e)&&(this[F][e]=!1),ot(this,e,m(1,t))};return c&&rt&&ot(V,e,{configurable:!0,set:n}),it(e,t)},T(W=q[B],"toString",(function(){return $(this).tag})),T(q,"withoutSetter",(function(t){return it(k(t),t)})),E.f=ct,O.f=at,C.f=st,S.f=lt,_.f=w.f=ut,x.f=ft,N.f=function(t){return it(P(t),t)},c&&(J(W,"description",{configurable:!0,get:function(){return $(this).description}}),s||T(V,"propertyIsEnumerable",ct,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),U(b(nt),(function(t){R(t)})),r({target:z,stat:!0,forced:!l},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(t,e){return void 0===e?g(t):st(g(t),e)},defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ut}),M(),D(q,z),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(4680),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(3464)("hasInstance")},5903:function(t,e,n){n(3464)("isConcatSpreadable")},1825:function(t,e,n){n(3464)("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(4680),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(3464)("matchAll")},8394:function(t,e,n){n(3464)("match")},1766:function(t,e,n){n(3464)("replace")},9791:function(t,e,n){n(3464)("search")},9911:function(t,e,n){n(3464)("species")},4315:function(t,e,n){n(3464)("split")},3131:function(t,e,n){var r=n(3464),o=n(9630);r("toPrimitive"),o()},4714:function(t,e,n){var r=n(626),o=n(3464),i=n(904);o("toStringTag"),i(r("Symbol"),"Symbol")},659:function(t,e,n){n(3464)("unscopables")},4776:function(t,e,n){"use strict";var r,o=n(1899),i=n(5329),a=n(4380),s=n(1647),c=n(4683),l=n(8850),u=n(941),f=n(1584),p=n(5402).enforce,d=n(7093),h=!o.ActiveXObject&&"ActiveXObject"in o,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},y=c("WeakMap",v,l);if(d&&h){r=l.getConstructor(v,"WeakMap",!0),s.enable();var m=y.prototype,g=i(m.delete),b=i(m.has),_=i(m.get),w=i(m.set);a(m,{delete:function(t){if(u(t)&&!f(t)){var e=p(this);return e.frozen||(e.frozen=new r),g(this,t)||e.frozen.delete(t)}return g(this,t)},has:function(t){if(u(t)&&!f(t)){var e=p(this);return e.frozen||(e.frozen=new r),b(this,t)||e.frozen.has(t)}return b(this,t)},get:function(t){if(u(t)&&!f(t)){var e=p(this);return e.frozen||(e.frozen=new r),b(this,t)?_(this,t):e.frozen.get(t)}return _(this,t)},set:function(t,e){if(u(t)&&!f(t)){var n=p(this);n.frozen||(n.frozen=new r),b(this,t)?w(this,t,e):n.frozen.set(t,e)}else w(this,t,e);return this}})}},4334:function(t,e,n){n(4776)},1115:function(t,e,n){"use strict";n(4683)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(8850))},1773:function(t,e,n){n(1115)},8783:function(t,e,n){n(3464)("asyncDispose")},3975:function(t,e,n){n(3464)("dispose")},5799:function(t,e,n){n(3464)("matcher")},1943:function(t,e,n){n(3464)("metadataKey")},5414:function(t,e,n){n(3464)("metadata")},6774:function(t,e,n){n(3464)("observable")},620:function(t,e,n){n(3464)("patternMatch")},6172:function(t,e,n){n(3464)("replaceAll")},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],f=u&&u.prototype;f&&i(f)!==c&&a(f,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},2348:function(t,e,n){var r=n(8339);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},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},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},5774:function(t,e,n){var r=n(2978);t.exports=r},2010:function(t,e,n){var r=n(2304);n(7634),t.exports=r},3726:function(t,e,n){var r=n(9567);n(7634),t.exports=r},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,p(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 f;if(l+=1,"object"==typeof t&&null!==t){for(f=0;f<i.length;f++)if(i[f]===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(f=0;f<t.length;f++)c(t[f],f,f,i,t,l,u);else{var p=Object.keys(t);for(f=0;f<p.length;f++){var d=p[f];c(t[d],d,f,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=f(t,"",0,[],void 0,0,a)||t;try{s=0===o.length?JSON.stringify(c,e,n):JSON.stringify(c,p(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 f(t,o,i,a,c,u,p){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!==p.depthLimit&&u>p.depthLimit)return void s(e,t,o,c);if(void 0!==p.edgesLimit&&i+1>p.edgesLimit)return void s(e,t,o,c);if(a.push(t),Array.isArray(t))for(d=0;d<t.length;d++)f(t[d],d,d,a,t,u,p);else{var h={},v=Object.keys(t).sort(l);for(d=0;d<v.length;d++){var y=v[d];f(t[y],y,d,a,t,u,p),h[y]=t[y]}if(void 0===c)return h;r.push([c,o,t]),c[o]=h}a.pop()}}function p(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=[],f=0;f<l;f++)u.push("$"+f);if(a=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(c),i.prototype){var p=function(){};p.prototype=i.prototype,a.prototype=new p,p.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,f=n(1405)(),p=Object.getPrototypeOf||function(t){return t.__proto__},d={},h="undefined"==typeof Uint8Array?r:p(Uint8Array),v={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][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%":f?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p((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&&f?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):r,"%Symbol%":f?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=p(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),b=n(7642),_=g.call(Function.call,Array.prototype.concat),w=g.call(Function.apply,Array.prototype.splice),x=g.call(Function.call,String.prototype.replace),S=g.call(Function.call,String.prototype.slice),O=g.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,T=function(t){var e=S(t,0,1),n=S(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,C,(function(t,e,n,o){r[r.length]=n?x(o,E,"$1"):e||t})),r},A=function(t,e){var n,r=t;if(b(m,r)&&(r="%"+(n=m[r])[0]+"%"),b(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===O(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=T(t),r=n.length>0?n[0]:"",i=A("%"+r+"%",e),s=i.name,l=i.value,u=!1,f=i.alias;f&&(r=f[0],w(n,_([0,1],f)));for(var p=1,d=!0;p<n.length;p+=1){var h=n[p],y=S(h,0,1),m=S(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),b(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&&p+1>=n.length){var g=c(l,h);l=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else d=b(l,h),l=l[h];d&&!u&&(v[s]=l)}}return l}},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)},8679:function(t,e,n){"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(t){return r.isMemo(t)?a:s[t.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&t(e,o,r)}var a=u(n);f&&(a=a.concat(f(n)));for(var s=c(e),v=c(n),y=0;y<a.length;++y){var m=a[y];if(!(i[m]||r&&r[m]||v&&v[m]||s&&s[m])){var g=p(n,m);try{l(e,m,g)}catch(t){}}}}return e}},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,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="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,b=String.prototype.replace,_=String.prototype.toUpperCase,w=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,O=Array.prototype.join,C=Array.prototype.slice,E=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,k="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function R(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?-E(-t):E(t);if(r!==t){var o=String(r),i=g.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 M=n(4654),D=M.custom,L=H(D)?D:null;function U(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function F(t){return b.call(String(t),/"/g,""")}function z(t){return!("[object Array]"!==q(t)||k&&"object"==typeof t&&k in t)}function B(t){return!("[object RegExp]"!==q(t)||k&&"object"==typeof t&&k in t)}function H(t){if(I)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!j)return!1;try{return j.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 Y(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var _=String(e);return v?R(e,_):_}if("bigint"==typeof e){var x=String(e)+"n";return v?R(e,x):x}var E=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=E&&E>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=O.call(Array(t.indent+1)," ")}return{base:n,prev:O.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=C.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&&!B(e)){var G=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"+(G?": "+G:" (anonymous)")+"]"+(tt.length>0?" { "+O.call(tt,", ")+" }":"")}if(H(e)){var et=I?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(e);return"object"!=typeof e||I?et:K(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+"="+U(F(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=Z(e,$);return D&&!function(t){for(var e=0;e<t.length;e++)if(W(t[e],"\n")>=0)return!1;return!0}(it)?"["+Q(it,D)+"]":"[ "+O.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==q(t)||k&&"object"==typeof t&&k in t)}(e)){var at=Z(e,$);return"cause"in Error.prototype||!("cause"in e)||P.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(at,", ")+" }":"{ ["+String(e)+"] "+O.call(S.call("[cause]: "+$(e.cause),at),", ")+" }"}if("object"==typeof e&&c){if(L&&"function"==typeof e[L]&&M)return M(e,{depth:E-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))})),X("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($(t,e))})),X("Set",l.call(e),ct,D)}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 WeakMap}catch(t){}return!1}(e))return J("WeakMap");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 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)||k&&"object"==typeof t&&k in t)}(e))return K($(Number(e)));if(function(t){if(!t||"object"!=typeof t||!T)return!1;try{return T.call(t),!0}catch(t){}return!1}(e))return K($(T.call(e)));if(function(t){return!("[object Boolean]"!==q(t)||k&&"object"==typeof t&&k in t)}(e))return K(h.call(e));if(function(t){return!("[object String]"!==q(t)||k&&"object"==typeof t&&k in t)}(e))return K($(String(e)));if(!function(t){return!("[object Date]"!==q(t)||k&&"object"==typeof t&&k in t)}(e)&&!B(e)){var lt=Z(e,$),ut=N?N(e)===Object.prototype:e instanceof Object||e.constructor===Object,ft=e instanceof Object?"":"null prototype",pt=!ut&&k&&Object(e)===e&&k in e?g.call(q(e),8,-1):ft?"Object":"",dt=(ut||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(pt||ft?"["+O.call(S.call([],pt||[],ft||[]),": ")+"] ":"");return 0===lt.length?dt+"{}":D?dt+"{"+Q(lt,D)+"}":dt+"{ "+O.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 Y(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(g.call(t,0,e.maxStringLength),e)+r}return U(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",e)}function G(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 K(t){return"Object("+t+")"}function J(t){return t+" { ? }"}function X(t,e,n,r){return t+" ("+e+") {"+(r?Q(n,r):O.call(n,", "))+"}"}function Q(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+O.call(t,","+n)+"\n"+e.prev}function Z(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++)P.call(t,a[l])&&r.push("["+e(a[l])+"]: "+e(t[a[l]],t));return r}},8661:function(t,e,n){"use strict";n.r(e),n.d(e,{Children:function(){return h},Component:function(){return r.wA},Fragment:function(){return r.HY},PureComponent:function(){return c},StrictMode:function(){return J},Suspense:function(){return b},SuspenseList:function(){return x},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return B},cloneElement:function(){return q},createContext:function(){return r.kr},createElement:function(){return r.az},createFactory:function(){return $},createPortal:function(){return E},createRef:function(){return r.Vf},default:function(){return nt},findDOMNode:function(){return Y},flushSync:function(){return K},forwardRef:function(){return p},hydrate:function(){return P},isValidElement:function(){return V},lazy:function(){return w},memo:function(){return l},render:function(){return k},startTransition:function(){return X},unmountComponentAtNode:function(){return W},unstable_batchedUpdates:function(){return G},useCallback:function(){return o.I4},useContext:function(){return o.qp},useDebugValue:function(){return o.Qb},useDeferredValue:function(){return Q},useEffect:function(){return o.d4},useErrorBoundary:function(){return o.cO},useId:function(){return o.Me},useImperativeHandle:function(){return o.aP},useInsertionEffect:function(){return tt},useLayoutEffect:function(){return o.bt},useMemo:function(){return o.Ye},useReducer:function(){return o._Y},useRef:function(){return o.sO},useState:function(){return o.eJ},useSyncExternalStore:function(){return et},useTransition:function(){return Z},version:function(){return H}});var r=n(6400),o=n(396);function i(t,e){for(var n in e)t[n]=e[n];return t}function a(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 s(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e}function c(t){this.props=t}function l(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:a(this.props,t)}function o(e){return this.shouldComponentUpdate=n,(0,r.az)(t,e)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(c.prototype=new r.wA).isPureReactComponent=!0,c.prototype.shouldComponentUpdate=function(t,e){return a(this.props,t)||a(this.state,e)};var u=r.YM.__b;r.YM.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),u&&u(t)};var f="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function p(t){function e(e){var n=i({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=f,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var d=function(t,e){return null==t?null:(0,r.bR)((0,r.bR)(t).map(e))},h={map:d,forEach:d,count:function(t){return t?(0,r.bR)(t).length:0},only:function(t){var e=(0,r.bR)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:r.bR},v=r.YM.__e;r.YM.__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);v(t,e,n,r)};var y=r.YM.unmount;function m(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=i({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return m(t,e,n)}))),t}function g(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return g(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function b(){this.__u=0,this.t=null,this.__b=null}function _(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function w(t){var e,n,o;function i(i){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){o=t})),o)throw o;if(!n)throw e;return(0,r.az)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function x(){this.u=null,this.o=null}r.YM.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),y&&y(t)},(b.prototype=new r.wA).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=_(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.__a){var t=r.state.__a;r.__v.__k[0]=g(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__a:r.__b=null});e=r.t.pop();)e.forceUpdate()}},c=!0===e.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(a,a)},b.prototype.componentWillUnmount=function(){this.t=[]},b.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=m(this.__b,n,o.__O=o.__P)}this.__b=null}var i=e.__a&&(0,r.az)(r.HY,null,t.fallback);return i&&(i.__h=null),[(0,r.az)(r.HY,null,e.__a?null:t.children),i]};var S=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]}};function O(t){return this.getChildContext=function(){return t.context},t.children}function C(t){var e=this,n=t.i;e.componentWillUnmount=function(){(0,r.sY)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),(0,r.sY)((0,r.az)(O,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function E(t,e){var n=(0,r.az)(C,{__v:t,i:e});return n.containerInfo=e,n}(x.prototype=new r.wA).__a=function(t){var e=this,n=_(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),S(e,t,r)):o()};n?n(i):i()}},x.prototype.render=function(t){this.u=null,this.o=new Map;var e=(0,r.bR)(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},x.prototype.componentDidUpdate=x.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){S(t,n,e)}))};var T="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,A=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,j="undefined"!=typeof document,I=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};function k(t,e,n){return null==e.__k&&(e.textContent=""),(0,r.sY)(t,e),"function"==typeof n&&n(),t?t.__c:null}function P(t,e,n){return(0,r.ZB)(t,e),"function"==typeof n&&n(),t?t.__c:null}r.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(r.wA.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var N=r.YM.event;function R(){}function M(){return this.cancelBubble}function D(){return this.defaultPrevented}r.YM.event=function(t){return N&&(t=N(t)),t.persist=R,t.isPropagationStopped=M,t.isDefaultPrevented=D,t.nativeEvent=t};var L,U={configurable:!0,get:function(){return this.class}},F=r.YM.vnode;r.YM.vnode=function(t){var e=t.type,n=t.props,o=n;if("string"==typeof e){var i=-1===e.indexOf("-");for(var a in o={},n){var s=n[a];j&&"children"===a&&"noscript"===e||"value"===a&&"defaultValue"in n&&null==s||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===s?s="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+e)&&!I(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&A.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),o[a]&&(a="oninputCapture")),o[a]=s)}"select"==e&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.bR)(n.children).forEach((function(t){t.props.selected=-1!=o.value.indexOf(t.props.value)}))),"select"==e&&null!=o.defaultValue&&(o.value=(0,r.bR)(n.children).forEach((function(t){t.props.selected=o.multiple?-1!=o.defaultValue.indexOf(t.props.value):o.defaultValue==t.props.value}))),t.props=o,n.class!=n.className&&(U.enumerable="className"in n,null!=n.className&&(o.class=n.className),Object.defineProperty(o,"className",U))}t.$$typeof=T,F&&F(t)};var z=r.YM.__r;r.YM.__r=function(t){z&&z(t),L=t.__c};var B={ReactCurrentDispatcher:{current:{readContext:function(t){return L.__n[t.__c].props.value}}}},H="17.0.2";function $(t){return r.az.bind(null,t)}function V(t){return!!t&&t.$$typeof===T}function q(t){return V(t)?r.Tm.apply(null,arguments):t}function W(t){return!!t.__k&&((0,r.sY)(null,t),!0)}function Y(t){return t&&(t.base||1===t.nodeType&&t)||null}var G=function(t,e){return t(e)},K=function(t,e){return t(e)},J=r.HY;function X(t){t()}function Q(t){return t}function Z(){return[!1,X]}var tt=o.bt;function et(t,e){var n=e(),r=(0,o.eJ)({h:{__:n,v:e}}),i=r[0].h,a=r[1];return(0,o.bt)((function(){i.__=n,i.v=e,s(i.__,e())||a({h:i})}),[t,n,e]),(0,o.d4)((function(){return s(i.__,i.v())||a({h:i}),t((function(){s(i.__,i.v())||a({h:i})}))}),[t]),n}var nt={useState:o.eJ,useId:o.Me,useReducer:o._Y,useEffect:o.d4,useLayoutEffect:o.bt,useInsertionEffect:tt,useTransition:Z,useDeferredValue:Q,useSyncExternalStore:et,startTransition:X,useRef:o.sO,useImperativeHandle:o.aP,useMemo:o.Ye,useCallback:o.I4,useContext:o.qp,useDebugValue:o.Qb,version:"17.0.2",Children:h,render:k,hydrate:P,unmountComponentAtNode:W,createPortal:E,createElement:r.az,createContext:r.kr,createFactory:$,cloneElement:q,createRef:r.Vf,Fragment:r.HY,isValidElement:V,findDOMNode:Y,Component:r.wA,PureComponent:c,memo:l,forwardRef:p,flushSync:K,unstable_batchedUpdates:G,StrictMode:J,Suspense:b,SuspenseList:x,lazy:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:B}},6400:function(t,e,n){"use strict";n.d(e,{HY:function(){return m},Tm:function(){return F},Vf:function(){return y},YM:function(){return o},ZB:function(){return U},az:function(){return h},bR:function(){return C},kr:function(){return z},sY:function(){return L},wA:function(){return g}});var r,o,i,a,s,c,l={},u=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var n in e)t[n]=e[n];return t}function d(t){var e=t.parentNode;e&&e.removeChild(t)}function h(t,e,n){var o,i,a,s={};for(a in e)"key"==a?o=e[a]:"ref"==a?i=e[a]:s[a]=e[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return v(t,s,o,i,null)}function v(t,e,n,r,a){var s={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==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function y(){return{current:null}}function m(t){return t.children}function g(t,e){this.props=t,this.context=e}function b(t,e){if(null==e)return t.__?b(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?b(t):null}function _(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 _(t)}}function w(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!x.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||setTimeout)(x)}function x(){for(var t;x.__r=a.length;)t=a.sort((function(t,e){return t.__v.__b-e.__v.__b})),a=[],t.some((function(t){var e,n,r,o,i,a;t.__d&&(i=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,k(a,o,r,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),P(n,o),o.__e!=i&&_(o)))}))}function S(t,e,n,r,o,i,a,s,c,f){var p,d,h,y,g,_,w,x=r&&r.__k||u,S=x.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(y=n.__k[p]=null==(y=e[p])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?v(null,y,null,null,y):Array.isArray(y)?v(m,{children:y},null,null,null):y.__b>0?v(y.type,y.props,y.key,y.ref?y.ref:null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(h=x[p])||h&&y.key==h.key&&y.type===h.type)x[p]=void 0;else for(d=0;d<S;d++){if((h=x[d])&&y.key==h.key&&y.type===h.type){x[d]=void 0;break}h=null}k(t,y,h=h||l,o,i,a,s,c,f),g=y.__e,(d=y.ref)&&h.ref!=d&&(w||(w=[]),h.ref&&w.push(h.ref,null,y),w.push(d,y.__c||g,y)),null!=g?(null==_&&(_=g),"function"==typeof y.type&&y.__k===h.__k?y.__d=c=O(y,c,t):c=E(t,y,h,x,g,c),"function"==typeof n.type&&(n.__d=c)):c&&h.__e==c&&c.parentNode!=t&&(c=b(h))}for(n.__e=_,p=S;p--;)null!=x[p]&&M(x[p],x[p]);if(w)for(p=0;p<w.length;p++)R(w[p],w[++p],w[++p])}function O(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?O(r,e,n):E(n,r,r,o,r.__e,e));return e}function C(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){C(t,e)})):e.push(t)),e}function E(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+=1)if(s==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function T(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||f.test(e)?n:n+"px"}function A(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||T(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||T(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?I:j,i):t.removeEventListener(e,i?I:j,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&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,n))}}function j(t){this.l[t.type+!1](o.event?o.event(t):t)}function I(t){this.l[t.type+!0](o.event?o.event(t):t)}function k(t,e,n,r,i,a,s,c,l){var u,f,d,h,v,y,b,_,w,x,O,C,E,T,A,j=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(l=n.__h,c=e.__e=n.__e,e.__h=null,a=[c]),(u=o.__b)&&u(e);try{t:if("function"==typeof j){if(_=e.props,w=(u=j.contextType)&&r[u.__c],x=u?w?w.props.value:u.__:r,n.__c?b=(f=e.__c=n.__c).__=f.__E:("prototype"in j&&j.prototype.render?e.__c=f=new j(_,x):(e.__c=f=new g(_,x),f.constructor=j,f.render=D),w&&w.sub(f),f.props=_,f.state||(f.state={}),f.context=x,f.__n=r,d=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=j.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,j.getDerivedStateFromProps(_,f.__s))),h=f.props,v=f.state,d)null==j.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==j.getDerivedStateFromProps&&_!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(_,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(_,f.__s,x)||e.__v===n.__v){for(f.props=_,f.state=f.__s,e.__v!==n.__v&&(f.__d=!1),f.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),O=0;O<f._sb.length;O++)f.__h.push(f._sb[O]);f._sb=[],f.__h.length&&s.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(_,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,v,y)}))}if(f.context=x,f.props=_,f.__v=e,f.__P=t,C=o.__r,E=0,"prototype"in j&&j.prototype.render){for(f.state=f.__s,f.__d=!1,C&&C(e),u=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do{f.__d=!1,C&&C(e),u=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++E<25);f.state=f.__s,null!=f.getChildContext&&(r=p(p({},r),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(y=f.getSnapshotBeforeUpdate(h,v)),A=null!=u&&u.type===m&&null==u.key?u.props.children:u,S(t,Array.isArray(A)?A:[A],e,n,r,i,a,s,c,l),f.base=e.__e,e.__h=null,f.__h.length&&s.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=N(n.__e,e,n,r,i,a,s,l);(u=o.diffed)&&u(e)}catch(t){e.__v=null,(l||null!=a)&&(e.__e=c,e.__h=!!l,a[a.indexOf(c)]=null),o.__e(t,e,n)}}function P(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function N(t,e,n,o,i,a,s,c){var u,f,p,h=n.props,v=e.props,y=e.type,m=0;if("svg"===y&&(i=!0),null!=a)for(;m<a.length;m++)if((u=a[m])&&"setAttribute"in u==!!y&&(y?u.localName===y:3===u.nodeType)){t=u,a[m]=null;break}if(null==t){if(null===y)return document.createTextNode(v);t=i?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,v.is&&v),a=null,c=!1}if(null===y)h===v||c&&t.data===v||(t.data=v);else{if(a=a&&r.call(t.childNodes),f=(h=n.props||l).dangerouslySetInnerHTML,p=v.dangerouslySetInnerHTML,!c){if(null!=a)for(h={},m=0;m<t.attributes.length;m++)h[t.attributes[m].name]=t.attributes[m].value;(p||f)&&(p&&(f&&p.__html==f.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||A(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]||A(t,i,e[i],n[i],r)}(t,v,h,i,c),p)e.__k=[];else if(m=e.props.children,S(t,Array.isArray(m)?m:[m],e,n,o,i&&"foreignObject"!==y,a,s,a?a[0]:n.__k&&b(n,0),c),null!=a)for(m=a.length;m--;)null!=a[m]&&d(a[m]);c||("value"in v&&void 0!==(m=v.value)&&(m!==t.value||"progress"===y&&!m||"option"===y&&m!==h.value)&&A(t,"value",m,h.value,!1),"checked"in v&&void 0!==(m=v.checked)&&m!==t.checked&&A(t,"checked",m,h.checked,!1))}return t}function R(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function M(t,e,n){var r,i;if(o.unmount&&o.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||R(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){o.__e(t,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&M(r[i],e,n||"function"!=typeof t.type);n||null==t.__e||d(t.__e),t.__=t.__e=t.__d=void 0}function D(t,e,n){return this.constructor(t,n)}function L(t,e,n){var i,a,s;o.__&&o.__(t,e),a=(i="function"==typeof n)?null:n&&n.__k||e.__k,s=[],k(e,t=(!i&&n||e).__k=h(m,null,[t]),a||l,l,void 0!==e.ownerSVGElement,!i&&n?[n]:a?null:e.firstChild?r.call(e.childNodes):null,s,!i&&n?n:a?a.__e:e.firstChild,i),P(s,t)}function U(t,e){L(t,e,U)}function F(t,e,n){var o,i,a,s=p({},t.props);for(a in e)"key"==a?o=e[a]:"ref"==a?i=e[a]:s[a]=e[a];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),v(t.type,s,o||t.key,i||t.ref,null)}function z(t,e){var n={__c:e="__cC"+c++,__: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(w)},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}r=u.slice,o={__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}},i=0,g.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof t&&(t=t(p({},n),this.props)),t&&p(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),w(this))},g.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),w(this))},g.prototype.render=m,a=[],x.__r=0,c=0},396:function(t,e,n){"use strict";n.d(e,{I4:function(){return O},Me:function(){return A},Qb:function(){return E},Ye:function(){return S},_Y:function(){return g},aP:function(){return x},bt:function(){return _},cO:function(){return T},d4:function(){return b},eJ:function(){return m},qp:function(){return C},sO:function(){return w}});var r,o,i,a,s=n(6400),c=0,l=[],u=[],f=s.YM.__b,p=s.YM.__r,d=s.YM.diffed,h=s.YM.__c,v=s.YM.unmount;function y(t,e){s.YM.__h&&s.YM.__h(o,t,c||e),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:u}),n.__[t]}function m(t){return c=1,g(M,t)}function g(t,e,n){var i=y(r++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):M(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){o.u=!0;var a=o.shouldComponentUpdate;o.shouldComponentUpdate=function(t,e,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!a||a.call(this,t,e,n);var o=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(o=!0)}})),!(!o&&i.__c.props===t)&&(!a||a.call(this,t,e,n))}}return i.__N||i.__}function b(t,e){var n=y(r++,3);!s.YM.__s&&R(n.__H,e)&&(n.__=t,n.i=e,o.__H.__h.push(n))}function _(t,e){var n=y(r++,4);!s.YM.__s&&R(n.__H,e)&&(n.__=t,n.i=e,o.__h.push(n))}function w(t){return c=5,S((function(){return{current:t}}),[])}function x(t,e,n){c=6,_((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function S(t,e){var n=y(r++,7);return R(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function O(t,e){return c=8,S((function(){return t}),e)}function C(t){var e=o.context[t.__c],n=y(r++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(o)),e.props.value):t.__}function E(t,e){s.YM.useDebugValue&&s.YM.useDebugValue(e?e(t):t)}function T(t){var e=y(r++,10),n=m();return e.__=t,o.componentDidCatch||(o.componentDidCatch=function(t,r){e.__&&e.__(t,r),n[1](t)}),[n[0],function(){n[1](void 0)}]}function A(){var t=y(r++,11);if(!t.__){for(var e=o.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function j(){for(var t;t=l.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(P),t.__H.__h.forEach(N),t.__H.__h=[]}catch(e){t.__H.__h=[],s.YM.__e(e,t.__v)}}s.YM.__b=function(t){o=null,f&&f(t)},s.YM.__r=function(t){p&&p(t),r=0;var e=(o=t.__c).__H;e&&(i===o?(e.__h=[],o.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=u,t.__N=t.i=void 0}))):(e.__h.forEach(P),e.__h.forEach(N),e.__h=[])),i=o},s.YM.diffed=function(t){d&&d(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==l.push(e)&&a===s.YM.requestAnimationFrame||((a=s.YM.requestAnimationFrame)||k)(j)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==u&&(t.__=t.__V),t.i=void 0,t.__V=u}))),i=o=null},s.YM.__c=function(t,e){e.some((function(t){try{t.__h.forEach(P),t.__h=t.__h.filter((function(t){return!t.__||N(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],s.YM.__e(n,t.__v)}})),h&&h(t,e)},s.YM.unmount=function(t){v&&v(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{P(t)}catch(t){e=t}})),n.__H=void 0,e&&s.YM.__e(e,n.__v))};var I="function"==typeof requestAnimationFrame;function k(t){var e,n=function(){clearTimeout(r),I&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);I&&(e=requestAnimationFrame(n))}function P(t){var e=o,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),o=e}function N(t){var e=o;t.__c=t.__(),o=e}function R(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function M(t,e){return"function"==typeof e?e(t):e}},5798: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}},129:function(t,e,n){"use strict";var r=n(8261),o=n(5235),i=n(5798);t.exports={formats:i,parse:o,stringify:r}},5235:function(t,e,n){"use strict";var r=n(2769),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},l=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,u=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&null!==(s=a.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),function(t,e,n,r){for(var o=r?e:c(e,n),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=o:"__proto__"!==l&&(a[l]=o):a={0:o}}o=a}return o}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return a;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?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,l={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,p=u.split(e.delimiter,f),d=-1,h=e.charset;if(e.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?h="utf-8":"utf8=%26%2310003%3B"===p[n]&&(h="iso-8859-1"),d=n,n=p.length);for(n=0;n<p.length;++n)if(n!==d){var v,y,m=p[n],g=m.indexOf("]="),b=-1===g?m.indexOf("="):g+1;-1===b?(v=e.decoder(m,a.decoder,h,"key"),y=e.strictNullHandling?null:""):(v=e.decoder(m.slice(0,b),a.decoder,h,"key"),y=r.maybeMap(c(m.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,h,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(y)),m.indexOf("[]=")>-1&&(y=i(y)?[y]:y),o.call(l,v)?l[v]=r.combine(l[v],y):l[v]=y}return l}(t,n):t,f=n.plainObjects?Object.create(null):{},p=Object.keys(u),d=0;d<p.length;++d){var h=p[d],v=l(h,u[h],n,"string"==typeof t);f=r.merge(f,v,n)}return!0===n.allowSparse?f:r.compact(f)}},8261:function(t,e,n){"use strict";var r=n(7478),o=n(2769),i=n(5798),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,l=String.prototype.split,u=Array.prototype.push,f=function(t,e){u.apply(t,c(e)?e:[e])},p=Date.prototype.toISOString,d=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1},v={},y=function t(e,n,i,a,s,u,p,d,y,m,g,b,_,w,x,S){for(var O,C=e,E=S,T=0,A=!1;void 0!==(E=E.get(v))&&!A;){var j=E.get(e);if(T+=1,void 0!==j){if(j===T)throw new RangeError("Cyclic object value");A=!0}void 0===E.get(v)&&(T=0)}if("function"==typeof d?C=d(n,C):C instanceof Date?C=g(C):"comma"===i&&c(C)&&(C=o.maybeMap(C,(function(t){return t instanceof Date?g(t):t}))),null===C){if(s)return p&&!w?p(n,h.encoder,x,"key",b):n;C=""}if("string"==typeof(O=C)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||o.isBuffer(C)){if(p){var I=w?n:p(n,h.encoder,x,"key",b);if("comma"===i&&w){for(var k=l.call(String(C),","),P="",N=0;N<k.length;++N)P+=(0===N?"":",")+_(p(k[N],h.encoder,x,"value",b));return[_(I)+(a&&c(C)&&1===k.length?"[]":"")+"="+P]}return[_(I)+"="+_(p(C,h.encoder,x,"value",b))]}return[_(n)+"="+_(String(C))]}var R,M=[];if(void 0===C)return M;if("comma"===i&&c(C))R=[{value:C.length>0?C.join(",")||null:void 0}];else if(c(d))R=d;else{var D=Object.keys(C);R=y?D.sort(y):D}for(var L=a&&c(C)&&1===C.length?n+"[]":n,U=0;U<R.length;++U){var F=R[U],z="object"==typeof F&&void 0!==F.value?F.value:C[F];if(!u||null!==z){var B=c(C)?"function"==typeof i?i(L,F):L:L+(m?"."+F:"["+F+"]");S.set(e,T);var H=r();H.set(v,S),f(M,t(z,B,i,a,s,u,p,d,y,m,g,b,_,w,x,H))}}return M};t.exports=function(t,e){var n,o=t,l=function(t){if(!t)return h;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||h.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=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],o=h.filter;return("function"==typeof t.filter||c(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof l.filter?o=(0,l.filter)("",o):c(l.filter)&&(n=l.filter);var u,p=[];if("object"!=typeof o||null===o)return"";u=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=s[u];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var v="comma"===d&&e&&e.commaRoundTrip;n||(n=Object.keys(o)),l.sort&&n.sort(l.sort);for(var m=r(),g=0;g<n.length;++g){var b=n[g];l.skipNulls&&null===o[b]||f(p,y(o[b],b,d,v,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,m))}var _=p.join(l.delimiter),w=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),_.length>0?w+_:""}},2769:function(t,e,n){"use strict";var r=n(5798),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(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],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:a,prop:l}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(i(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,o,i){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;++l){var u=s.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?c+=s.charAt(l):u<128?c+=a[u]:u<2048?c+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?c+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(l)),c+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return c},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(i(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){if(!n)return e;if("object"!=typeof n){if(i(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var a=e;return i(e)&&!i(n)&&(a=s(e,r)),i(e)&&i(n)?(n.forEach((function(n,i){if(o.call(e,i)){var a=e[i];a&&"object"==typeof a&&n&&"object"==typeof n?e[i]=t(a,n,r):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var a=n[i];return o.call(e,i)?e[i]=t(e[i],a,r):e[i]=a,e}),a)}}},9921:function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case u:case f:case i:case s:case a:case d:return t;default:switch(t=t&&t.$$typeof){case l:case p:case y:case v:case c:return t;default:return e}}case o:return e}}}function x(t){return w(t)===f}e.AsyncMode=u,e.ConcurrentMode=f,e.ContextConsumer=l,e.ContextProvider=c,e.Element=r,e.ForwardRef=p,e.Fragment=i,e.Lazy=y,e.Memo=v,e.Portal=o,e.Profiler=s,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(t){return x(t)||w(t)===u},e.isConcurrentMode=x,e.isContextConsumer=function(t){return w(t)===l},e.isContextProvider=function(t){return w(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return w(t)===p},e.isFragment=function(t){return w(t)===i},e.isLazy=function(t){return w(t)===y},e.isMemo=function(t){return w(t)===v},e.isPortal=function(t){return w(t)===o},e.isProfiler=function(t){return w(t)===s},e.isStrictMode=function(t){return w(t)===a},e.isSuspense=function(t){return w(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===f||t===s||t===a||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===c||t.$$typeof===l||t.$$typeof===p||t.$$typeof===g||t.$$typeof===b||t.$$typeof===_||t.$$typeof===m)},e.typeOf=w},9864:function(t,e,n){"use strict";t.exports=n(9921)},8359:function(t,e){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},2973:function(t,e,n){"use strict";n(8359)},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),f=o("WeakMap.prototype.has",!0),p=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 p(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 f(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}},3250:function(t,e,n){"use strict";var r=n(8661),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(t){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=i({inst:{value:n,getSnapshot:e}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=e,l(o)&&u({inst:o})}),[t,n,e]),a((function(){return l(o)&&u({inst:o}),t((function(){l(o)&&u({inst:o})}))}),[t]),c(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:function(t,e,n){"use strict";var r=n(8661),o=n(1688),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=o.useSyncExternalStore,s=r.useRef,c=r.useEffect,l=r.useMemo,u=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,o){var f=s(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=l((function(){function t(t){if(!c){if(c=!0,a=t,t=r(t),void 0!==o&&p.hasValue){var e=p.value;if(o(e,t))return s=e}return s=t}if(e=s,i(a,t))return e;var n=r(t);return void 0!==o&&o(e,n)?e:(a=t,s=n)}var a,s,c=!1,l=void 0===n?null:n;return[function(){return t(e())},null===l?void 0:function(){return t(l())}]}),[e,n,r,o]);var d=a(t,f[0],f[1]);return c((function(){p.hasValue=!0,p.value=d}),[d]),u(d),d}},1688:function(t,e,n){"use strict";t.exports=n(3250)},2798:function(t,e,n){"use strict";t.exports=n(139)},4654:function(){},3695:function(){},5110:function(t,e,n){t.exports=n(7698)},8309:function(t,e,n){t.exports=n(3363)},586:function(t,e,n){t.exports=n(7784)},1189:function(t,e,n){t.exports=n(8196)},9022:function(t,e,n){t.exports=n(8065)},2250:function(t,e,n){t.exports=n(9455)},2320:function(t,e,n){t.exports=n(9743)},4418:function(t,e,n){t.exports=n(1955)},2373:function(t,e,n){t.exports=n(6064)},1679:function(t,e,n){t.exports=n(1577)},3356:function(t,e,n){t.exports=n(4913)},86:function(t,e,n){t.exports=n(6279)},8118:function(t,e,n){t.exports=n(3778)},1882:function(t,e,n){t.exports=n(9373)},7606:function(t,e,n){t.exports=n(1798)},4282:function(t,e,n){t.exports=n(2527)},1459:function(t,e,n){t.exports=n(8427)},4278:function(t,e,n){t.exports=n(2073)},2039:function(t,e,n){t.exports=n(5286)},2578:function(t,e,n){t.exports=n(2856)},9940:function(t,e,n){t.exports=n(2348)},1607:function(t,e,n){t.exports=n(6361)},5627:function(t,e,n){t.exports=n(8933)},4157:function(t,e,n){t.exports=n(5838)},6986:function(t,e,n){t.exports=n(3383)},9747:function(t,e,n){t.exports=n(7396)},6718:function(t,e,n){t.exports=n(1910)},2018:function(t,e,n){t.exports=n(6209)},8446:function(t,e,n){t.exports=n(9427)},6870:function(t,e,n){t.exports=n(2857)},222:function(t,e,n){t.exports=n(9534)},8922:function(t,e,n){t.exports=n(6507)},8222:function(t,e,n){t.exports=n(3059)},3665:function(t,e,n){t.exports=n(7795)},2357:function(t,e,n){t.exports=n(6877)},40:function(t,e,n){t.exports=n(4888)},6226:function(t,e,n){t.exports=n(7460)},7293:function(t,e,n){t.exports=n(3474)},7198:function(t,e,n){t.exports=n(7989)},7724:function(t,e,n){t.exports=n(5519)},3733:function(t,e,n){t.exports=n(2547)},8886:function(t,e,n){t.exports=n(2010)},9030:function(t,e,n){t.exports=n(3726)},9389:function(t,e,n){t.exports=n(2209)},8216:function(t,e,n){t.exports=n(4122)},1791:function(t,e,n){t.exports=n(9447)},7552:function(t,e,n){t.exports=n(269)},7445:function(t,e,n){t.exports=n(3685)},2020:function(t,e,n){t.exports=n(4710)},2079:function(t,e,n){t.exports=n(3799)},2472:function(t,e,n){t.exports=n(6600)},8994:function(t,e,n){t.exports=n(9759)},24:function(t,e,n){t.exports=n(1384)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](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 Ie},AgentInfo:function(){return qp},Chat:function(){return of},ChatFrame:function(){return Tp},ComponentFilter:function(){return Au},Conversation:function(){return Ku},DeprecatedToggleButton:function(){return Vp},DeprecatedView:function(){return td},Engine:function(){return Up},EntryContainer:function(){return bp},EventParticipant:function(){return kc},ExternalApi:function(){return $p},Header:function(){return Wp},Icon:function(){return Yc},Interrupt:function(){return Ep},MessageContainer:function(){return Mc},SeamlyApiContext:function(){return nn},SeamlyEventBusContext:function(){return rn},SeamlyGeneralError:function(){return lt},SeamlyLiveRegionContext:function(){return Fs},SeamlyOfflineError:function(){return ga},SeamlyStoreProvider:function(){return Ge},Text:function(){return hu},View:function(){return Np},calculateVisibility:function(){return Yo},className:function(){return Ic},default:function(){return nd},eventTypes:function(){return on},randomId:function(){return kt},useChoicePrompt:function(){return il},useEvents:function(){return Uo},useGeneratedId:function(){return wc},useI18n:function(){return Us},useSeamlyActions:function(){return ed},useSeamlyChat:function(){return Vs},useSeamlyCommands:function(){return gs},useSeamlyConfig:function(){return Po},useSeamlyEventStream:function(){return Sc},useSeamlyIdleDetachCountdown:function(){return bc},useSeamlyMessageContainerClassNames:function(){return Qs},useSeamlyOptions:function(){return dc},useSeamlyVisibility:function(){return us},useTranslatedEventData:function(){return Cc},useTranslations:function(){return Oc},useTranslationsContainer:function(){return Ec},visibilityStates:function(){return Io}});var t=n(8309),e=n.n(t),o=n(1189),i=n.n(o),a=n(222),s=n.n(a),c=n(8446),l=n.n(c),u=n(6870),f=n.n(u),p=n(9747),d=n.n(p),h=n(6718),v=n.n(h),y=n(7445),m=n(2472),g=n(8994);function b(t){return b="function"==typeof m&&"symbol"==typeof g?function(t){return typeof t}:function(t){return t&&"function"==typeof m&&t.constructor===m&&t!==m.prototype?"symbol":typeof t},b(t)}var _=n(24);function w(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==b(t)||null===t)return t;var n=t[_];if(void 0!==n){var r=n.call(t,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===b(e)?e:String(e)}(e))in t?y(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x=n(7606),S=n.n(x),O=n(4418),C=n.n(O),E=n(86),T=n.n(E),A=n(8222),j=n.n(A),I=n(8118),k=n.n(I),P=n(3665),N=n.n(P),R=n(2039),M=n.n(R),D=n(2018),L=n.n(D),U=n(6400),F=0;function z(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:--F,__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.YM.vnode&&U.YM.vnode(c),c}var B=n(6226),H=n.n(B),$=n(1882),V=n.n($),q=n(6986),W=n.n(q),Y=n(8886),G=n.n(Y),K=n(9030),J=n.n(K),X=n(4282),Q=n.n(X),Z=n(8158),tt=n.n(Z);const et="cvco",nt="2",rt="seamly-client-participant",ot=300;var it=n(8922),at=n.n(it);class st extends Error{action="";langKey="";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];if(super(...n),Error.captureStackTrace&&Error.captureStackTrace(this,at()(this)),this.originalError=t,t?.payload&&(this.originalEvent=t,this.originalError=t.payload.error,this.message=`Event of type ${t.payload.type} encountered`),!this.message&&t?.message){const e=function(t){try{return JSON.parse(t).error}catch(e){return t}}(t.message);this.message=e}t?.error&&(this.originalError=t.error)}}class ct extends st{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 lt extends st{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 ut extends st{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"}}class ft extends st{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"}}var pt=n(7198),dt=n.n(pt),ht=n(2357),vt=n.n(ht);const yt=(t,e)=>{let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a=!1;return clearTimeout(n),n=dt()((()=>{n=null,a||t.apply(this,o),a=!1}),e),e=>{a=!0,e&&t.apply(this,o)}}},mt=t=>Math.ceil(t/1e3),gt=t=>{const e=Math.floor(t/60);return{minutes:e,seconds:t-60*e}},bt=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`${vt()((t/n**i).toFixed(r))} ${o[i]}`},_t={27:"Escape",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown"},wt={Escape:"Escape",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"},xt=t=>t.code?wt[t.code]:_t[t.keyCode],St=t=>{t&&t.focus()},Ot=(t,e)=>{t&&(t.contains(document.activeElement)||t===document.activeElement)&&e()};var Ct=n(1905),Et=n.n(Ct),Tt=n(4278),At=n.n(Tt),jt=n(586),It=n.n(jt);function kt(){var t;return`_${(Number(At()(t=String(Math.random())).call(t,2))+It()()+Math.round(performance.now())).toString(36)}`}var Pt=n(5627),Nt=n.n(Pt);function Rt(t){const e=`cvco.${t}`;return{get(){var t;const n=[e,At()(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,Nt()(t))}}}var Mt=t=>"function"==typeof t?t:function(){return t},Dt="undefined"!=typeof self?self:null,Lt="undefined"!=typeof window?window:null,Ut=Dt||Lt||Ut,Ft="closed",zt="errored",Bt="joined",Ht="joining",$t="leaving",Vt="phx_close",qt="phx_error",Wt="phx_reply",Yt="phx_leave",Gt="websocket",Kt=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({status:t,response:e,_ref:n}){this.recHooks.filter((e=>e.status===t)).forEach((t=>t.callback(e)))}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=setTimeout((()=>{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})}},Jt=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=setTimeout((()=>{this.tries=this.tries+1,this.callback()}),this.timerCalc(this.tries+1))}},Xt=class{static request(t,e,n,r,o,i,a){if(Ut.XDomainRequest){let n=new Ut.XDomainRequest;return this.xdomainRequest(n,t,e,r,o,i,a)}{let s=new Ut.XMLHttpRequest;return this.xhrRequest(s,t,e,n,r,o,i,a)}}static xdomainRequest(t,e,n,r,o,i,a){return 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),t}static xhrRequest(t,e,n,r,o,i,a,s){return 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),t}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===Object.keys(e).length)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}},Qt=class{constructor(t){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,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("(.*)/"+Gt),"$1/longpoll")}endpointURL(){return Xt.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,n){this.close(t,e,n),this.readyState=0}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return 1===this.readyState||0===this.readyState}poll(){this.ajax("GET",null,(()=>this.ontimeout()),(t=>{if(t){var{status:e,token:n,messages:r}=t;this.token=n}else e=0;switch(e){case 200:r.forEach((t=>{setTimeout((()=>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(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${e}`)}}))}send(t){this.ajax("POST",t,(()=>this.onerror("timeout")),(t=>{t&&200===t.status||(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1))}))}close(t,e,n){for(let t of this.reqs)t.abort();this.readyState=3;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:n});"undefined"!=typeof CloseEvent?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(t,e,n,r){let o;o=Xt.request(t,this.endpointURL(),"application/json",e,this.timeout,(()=>{this.reqs.delete(o),n()}),(t=>{this.reqs.delete(o),this.isActive()&&r(t)})),this.reqs.add(o)}},Zt={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(JSON.stringify(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),Array.from(e,(t=>c.setUint8(l++,t.charCodeAt(0)))),Array.from(n,(t=>c.setUint8(l++,t.charCodeAt(0)))),Array.from(o,(t=>c.setUint8(l++,t.charCodeAt(0)))),Array.from(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(t.slice(a,a+r));a+=r;let c=n.decode(t.slice(a,a+o));a+=o;let l=n.decode(t.slice(a,a+i));return a+=i,{join_ref:s,ref:null,topic:c,event:l,payload:t.slice(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(t.slice(s,s+r));s+=r;let l=n.decode(t.slice(s,s+o));s+=o;let u=n.decode(t.slice(s,s+i));s+=i;let f=n.decode(t.slice(s,s+a));s+=a;let p=t.slice(s,t.byteLength);return{join_ref:c,ref:l,topic:u,event:Wt,payload:{status:f,response:p}}},decodeBroadcast(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=this.HEADER_LENGTH+2,a=n.decode(t.slice(i,i+r));i+=r;let s=n.decode(t.slice(i,i+o));return i+=o,{join_ref:null,ref:null,topic:a,event:s,payload:t.slice(i,t.byteLength)}}};function te(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=te(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=te(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var ne,re,oe,ie,ae=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},se=function(t,e,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,n):o?o.value=n:e.set(t,n),n};const ce=Et()("seamly");class le{constructor(){ne.add(this),re.set(this,[])}connect(t,e,n,r){return function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){this.url=t,this.accessToken=r,this.channelName=e,this.channelTopic=n;const{url:o,params:i}=(t=>{var e;const n=V()(t).call(t,"?");return n<0?{url:t,params:{}}:{url:At()(t).call(t,0,n),params:Q()(e=At()(t).call(t,n+1).split("&")).call(e,(function(t,e){const[n,r]=e.split("=");return ee(ee({},t),{},{[n]:decodeURIComponent(r)})}),{})}})(this.url);this.socket=new class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=e.timeout||1e4,this.transport=e.transport||Ut.WebSocket||Qt,this.establishedConnections=0,this.defaultEncoder=Zt.encode.bind(Zt),this.defaultDecoder=Zt.decode.bind(Zt),this.closeWasClean=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Qt?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;Lt&&Lt.addEventListener&&(Lt.addEventListener("pagehide",(t=>{this.conn&&(this.disconnect(),n=this.connectClock)})),Lt.addEventListener("pageshow",(t=>{n===this.connectClock&&(n=null,this.connect())}))),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=t=>e.rejoinAfterMs?e.rejoinAfterMs(t):[1e3,2e3,5e3][t-1]||1e4,this.reconnectAfterMs=t=>e.reconnectAfterMs?e.reconnectAfterMs(t):[10,50,100,150,200,250,500,1e3,2e3][t-1]||5e3,this.logger=e.logger||null,this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=Mt(e.params||{}),this.endPoint=`${t}/${Gt}`,this.vsn=e.vsn||"2.0.0",this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Jt((()=>{this.teardown((()=>this.connect()))}),this.reconnectAfterMs)}getLongPollTransport(){return Qt}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Xt.appendParams(Xt.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){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Mt(t)),this.conn||(this.connectClock++,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}ping(t){if(!this.isConnected())return!1;let e=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let r=this.onMessage((o=>{o.ref===e&&(this.off([r]),t(Date.now()-n))}));return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach((([,t])=>t()))}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown((()=>this.reconnectTimer.scheduleTimeout()),1e3,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout((()=>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.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()}))}))}waitForBufferDone(t,e=1){5!==e&&this.conn&&this.conn.bufferedAmount?setTimeout((()=>{this.waitForBufferDone(t,e+1)}),150*e):t()}waitForSocketClosed(t,e=1){5!==e&&this.conn&&3!==this.conn.readyState?setTimeout((()=>{this.waitForSocketClosed(t,e+1)}),150*e):t()}onConnClose(t){let e=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||1e3===e||this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach((([,e])=>e(t)))}onConnError(t){this.hasLogger()&&this.log("transport",t);let e=this.transport,n=this.establishedConnections;this.stateChangeCallbacks.error.forEach((([,r])=>{r(t,e,n)})),(e===this.transport||n>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach((t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(qt)}))}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){this.off(t.stateChangeRefs),this.channels=this.channels.filter((e=>e.joinRef()!==t.joinRef()))}off(t){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter((([e])=>-1===t.indexOf(e)))}channel(t,e={}){let n=new class{constructor(t,e,n){this.state=Ft,this.topic=t,this.params=Mt(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Kt(this,"phx_join",this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Jt((()=>{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",(()=>{this.state=Bt,this.rejoinTimer.reset(),this.pushBuffer.forEach((t=>t.send())),this.pushBuffer=[]})),this.joinPush.receive("error",(()=>{this.state=zt,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=Ft,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=zt,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 Kt(this,Yt,Mt({}),this.timeout).send(),this.state=zt,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.on(Wt,((t,e)=>{this.trigger(this.replyEventName(e),t)}))}join(t=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(Vt,t)}onError(t){return this.on(qt,(e=>t(e)))}on(t,e){let n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}off(t,e){this.bindings=this.bindings.filter((n=>!(n.event===t&&(void 0===e||e===n.ref))))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,n=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 Kt(this,t,(function(){return e}),n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=$t;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Vt,"leave")},n=new Kt(this,Yt,Mt({}),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(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Ht,this.joinPush.resend(t))}trigger(t,e,n,r){let o=this.onMessage(t,e,n,r);if(e&&!o)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter((e=>e.event===t));for(let t=0;t<i.length;t++)i[t].callback(o,n,r||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===Ft}isErrored(){return this.state===zt}isJoined(){return this.state===Bt}isJoining(){return this.state===Ht}isLeaving(){return this.state===$t}}(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.heartbeatTimeoutTimer=setTimeout((()=>this.heartbeatTimeout()),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach((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&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout((()=>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){let e=this.channels.find((e=>e.topic===t&&(e.isJoined()||e.isJoining())));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}}(o,{params:W()(W()({},i),{v:nt})}),this.socket.connect(),this.channel=this.socket.channel(this.channelTopic,{authorization:`Bearer ${this.accessToken}`,channelName:this.channelName}),this.start(),this.socket.onError((t=>{ce("[SOCKET][ERROR]",t)})),this.socket.onOpen((()=>{ce("[SOCKET]OPEN")})),this.channel.on("system",(t=>{"attach_channel_succeeded"===t.type&&ae(this,ne,"m",ie).call(this,{connected:!0,ready:!0,currentState:"attach_channel_succeeded"})})),this.socket.onClose((()=>{ce("[SOCKET]CLOSE"),ae(this,ne,"m",ie).call(this,{connected:!1,ready:!1,currentState:"socket_closed"})})),this.channel.onClose((()=>{ce("[CHANNEL]CLOSE"),ae(this,ne,"m",ie).call(this,{connected:!1,ready:!1,currentState:"channel_closed"})})),this.channel.onError((t=>{ce("[CHANNEL][ERROR]",t),ae(this,ne,"m",ie).call(this,{connected:!1,ready:!1,currentState:"channel_erred"})})),ae(this,ne,"m",oe).call(this,"ack","ui","error","participant","message","service_data","system","info","sync")}))}start(){this.channel.join().receive("ok",(()=>{ce("[CHANNEL][JOIN] OK"),ae(this,ne,"m",ie).call(this,{connected:!0,ready:!1,currentState:"join_channel_succeeded"})})).receive("error",(t=>{ce("[CHANNEL][JOIN] ERROR",t),ae(this,ne,"m",ie).call(this,{connected:!1,ready:!1,currentState:"join_channel_erred"}),this.channel.socket.disconnect()})).receive("timeout",(()=>{ce("[CHANEL][JOIN] Networking issue. Still waiting...")}))}disconnect(){var t,e,n;null===(t=this.channel)||void 0===t||t.leave(),null===(e=this.socket)||void 0===e||e.remove(this.channel),null===(n=this.socket)||void 0===n||n.disconnect(),se(this,re,[],"f")}onConnection(t){ae(this,re,"f").push(t)}pushToChannel(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;this.channel.push(t,e,n)}}re=new(G()),ne=new(J()),oe=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];T()(e).call(e,(t=>{this.channel.on(t,(e=>{ce("[RECEIVE]",t,e)}))}))},ie=function(t){var e;se(this,re,C()(e=ae(this,re,"f")).call(e,(e=>!e(t))),"f")};var ue,fe,pe,de,he,ve,ye,me,ge,be,_e,we,xe,Se,Oe,Ce=function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},Ee=function(t,e,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,n):o?o.value=n:e.set(t,n),n},Te=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};const Ae=Et()("seamly");function je(){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&&(V()(e).call(e,"/")>-1||"UTC"===e)?e:null}class Ie{constructor(t){let{layoutMode:e,namespace:n,config:r,context:o}=t;var i;ue.add(this),fe.set(this,void 0),pe.set(this,void 0),de.set(this,void 0),he.set(this,void 0),this.conversation=new le,_e.set(this,(t=>t||this.locale)),this.store=function(t,e){const n=e(t),r=n.get()||{};return{get(t){return void 0===t?r:r[t]},set(t,e){return r[t]=e,n.set(r),e},delete(t){const e=this.get(t);return delete r[t],n.set(r),e}}}(`${n}.connection${o.locale?`.${o.locale}`:""}`,r.storageProvider||Rt),this.connectionInfo={apiKey:r.key,domain:r.domain||"api.seamly-app.com",secure:!1!==r.secure&&(r.secure||!0)},Ee(this,he,W()(W()({},r),{sendEnvironment:null===(i=r.sendEnvironment)||void 0===i||i,context:W()(W()({},o),{channelName:o.channelName||"web"})}),"f"),Ee(this,fe,!1,"f"),this.connected=!1,this.configReady=!1,Ee(this,pe,r.externalId,"f"),Ee(this,de,e,"f"),this.userResponded=!1,this.URLS={},window.addEventListener("pageshow",(t=>{t.persisted&&this.connected&&this.connect()}))}getConversationUrl(){return this.store.get("conversationUrl")}hasConversation(){return!!this.getConversationUrl()}clearStore(){this.store.delete("accessToken"),this.store.delete("conversationUrl"),this.store.delete("channelName"),this.store.delete("channelTopic")}reset(){return Ce(this,void 0,void 0,(function*(){return yield this.disconnect(),this.clearStore(),this.getConfig()}))}disconnect(){var t;return Ce(this,void 0,void 0,(function*(){(null===(t=this.conversation)||void 0===t?void 0:t.disconnect)&&this.conversation.disconnect(),this.connected=!1,this.configReady=!1}))}getConfig(){return tt().post(`${Te(this,ue,"m",we).call(this,"http")}/client/${this.connectionInfo.apiKey}/configs`).set("Content-Type","application/json").query({v:nt}).send({context:W()(W()({},Te(this,he,"f").context),{environment:!0===Te(this,he,"f").sendEnvironment?Te(this,ue,"m",Oe).call(this):Te(this,he,"f").sendEnvironment})}).then((t=>{let{body:e}=t;return Te(this,ue,"m",xe).call(this,e),this.configReady=!0,e.config})).catch((t=>{if(404===t.status)throw new ct(t);if(t.status>=500)throw new lt(t);throw t}))}getConversation(){return Ce(this,void 0,void 0,(function*(){if(!this.hasConversation())return null;try{const{body:t}=yield tt().get(`${Te(this,ue,"m",we).call(this,"http")}${this.URLS.history}`).set("Authorization",`Bearer ${Te(this,ue,"m",ve).call(this)}`).query({v:nt});Te(this,ue,"m",xe).call(this,t);const{messages:e,participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,ui:a,translation:s}=t.history;return{events:S()(e).call(e,(t=>{let[e,n]=t;return{type:e,payload:W()(W()({},n),{type:"participant"===e?e:n.type})}})),participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,resumeConversationPrompt:!!a&&Boolean(a.resumeConversationPrompt),translationProposal:a.translationProposal,translation:s}}catch(t){if(401===t.status)throw new ft(t);if(404===t.status)throw new ut(t);if(t.status>=500)throw new lt(t);throw t}}))}connect(){return Ce(this,void 0,void 0,(function*(){this.connected=!1;let t={};return this.hasConversation()||(t=yield Te(this,ue,"m",Se).call(this)),this.conversation.connect(`${Te(this,ue,"m",we).call(this,"ws")}${this.URLS.socket}`,Te(this,he,"f").context.channelName,Te(this,ue,"m",ge).call(this),Te(this,ue,"m",ve).call(this)),this.conversation.onConnection((t=>{let{connected:e,ready:n}=t;this.connected=e,Ee(this,fe,n,"f")})),Te(this,he,"f").sendEnvironment&&this.send("context",{environment:!0===Te(this,he,"f").sendEnvironment?Te(this,ue,"m",Oe).call(this):Te(this,he,"f").sendEnvironment},!1),t}))}uploadFile(t,e,n,r){const o=new FormData;o.append("upload",t);const i=tt().post(`${Te(this,ue,"m",we).call(this,"http")}${this.URLS.uploads}`).set("Authorization",`Bearer ${Te(this,ue,"m",ve).call(this)}`).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 tt().get(`${Te(this,ue,"m",we).call(this,"http")}${this.getConversationUrl()}`).set("Authorization",`Bearer ${Te(this,ue,"m",ve).call(this)}`).query({v:nt}).then((t=>{let{body:e}=t;return Te(this,ue,"m",xe).call(this,e),this.userResponded=e.conversation.userResponded,((t,e)=>{var n;return Q()(n=j()(t)).call(n,((n,r)=>(k()(e).call(e,r)||(n[r]=t[r]),n)),{})})(e.conversation,["accessToken","channelTopic"])})).catch((t=>{if(401===t.status)throw new ft(t);if(404===t.status)throw new ut(t);if(t.status>=500)throw new lt(t);throw t}))}getTranslations(t){return Ce(this,void 0,void 0,(function*(){try{if(!this.URLS.translations)throw new ct;const e=`${Te(this,ue,"m",we).call(this,"http")}${this.URLS.translations}`.replace("{version}",String(2)).replace("{locale}",Te(this,_e,"f").call(this,t)),n=tt().get(e),{body:r}=yield n;return r.translations}catch(t){if(t.status>=500)throw new lt(t);throw t}}))}send(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var r;!this.connected||n&&!Te(this,fe,"f")?null===(r=this.conversation)||void 0===r||r.onConnection((r=>{let{connected:o,ready:i}=r;return this.connected=o,Ee(this,fe,i,"f"),!!(n?i:o)&&(this.send(t,e,n),!0)})):(Ae("[SEND]",t,e),this.conversation.pushToChannel(t,function(t,e){if("message"!==t)return e;const{type:n,body:r}=e;let{transactionId:o}=e;return o||(o=kt()),{type:n,body:r,transactionId:o}}(t,e),1e4))}sendContext(t){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===j()(r).length&&r.constructor===Object||this.send("context",r,!1)}}fe=new(G()),pe=new(G()),de=new(G()),he=new(G()),_e=new(G()),ue=new(J()),ve=function(){return this.store.get("accessToken")},ye=function(t){this.store.set("accessToken",t)},me=function(t){this.store.set("conversationUrl",t)},ge=function(){return this.store.get("channelTopic")||this.store.get("channelName")},be=function(t){this.store.set("channelTopic",t)},we=function(t){return`${this.connectionInfo.secure?`${t}s`:t}://${this.connectionInfo.domain}`},xe=function(t){var e,n;let{_links:r}=t;this.URLS=Q()(e=C()(n=L()(r)).call(n,(t=>{let[e]=t;return"self"!==e}))).call(e,((t,e)=>{let[n,{href:r}]=e;return W()(W()({},t),{[n]:r})}),this.URLS)},Se=function(){var t;return Ce(this,void 0,void 0,(function*(){try{const e=tt().post(`${Te(this,ue,"m",we).call(this,"http")}${this.URLS.conversations}`).set("Content-Type","application/json").query({v:nt}).withCredentials().send({externalId:Te(this,pe,"f")||void 0}),{body:n}=yield e,{conversation:r}=n,o=W()({},r);return delete o.accessToken,delete o.channelTopic,Te(this,ue,"m",ye).call(this,r.accessToken),Te(this,ue,"m",be).call(this,r.channelTopic),Te(this,ue,"m",xe).call(this,n),Te(this,ue,"m",me).call(this,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 lt(t);throw t}}))},Oe=function(){return{clientName:"@seamly/web-ui",clientVariant:Te(this,de,"f"),clientVersion:"21.0.9",currentUrl:window.location.toString(),screenResolution:`${window.screen.width}x${window.screen.height}`,timezone:je(),userAgent:navigator.userAgent,preferredLocale:navigator.language}};var ke=n(679),Pe=n.n(ke),Ne=n(396),Re=n(1688),Me=n(2798),De=n(8661);let Le=function(t){t()};const Ue=()=>Le,Fe=(0,De.createContext)(null);function ze(){return(0,De.useContext)(Fe)}let Be=()=>{throw new Error("uSES not initialized!")};const He=(t,e)=>t===e;function $e(t=Fe){const e=t===Fe?ze:()=>(0,De.useContext)(t);return function(t,n=He){const{store:r,subscription:o,getServerState:i}=e(),a=Be(o.addNestedSub,r.getState,i||r.getState,t,n);return(0,De.useDebugValue)(a),a}}const Ve=$e();n(8679),n(2973);const qe={notify(){},get:()=>[]};const We="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?De.useLayoutEffect:De.useEffect;let Ye=null;var Ge=function({store:t,context:e,children:n,serverState:r}){const o=(0,De.useMemo)((()=>{const e=function(t,e){let n,r=qe;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=e?e.addNestedSub(o):t.subscribe(o),r=function(){const t=Ue();let e=null,n=null;return{clear(){e=null,n=null},notify(){t((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(t){let r=!0,o=n={callback:t,next:null,prev:n};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}const a={addNestedSub:function(t){return i(),r.subscribe(t)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=qe)},getListeners:()=>r};return a}(t);return{store:t,subscription:e,getServerState:r?()=>r:void 0}}),[t,r]),i=(0,De.useMemo)((()=>t.getState()),[t]);We((()=>{const{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[o,i]);const a=e||Fe;return De.default.createElement(a.Provider,{value:o},n)};function Ke(t=Fe){const e=t===Fe?ze:()=>(0,De.useContext)(t);return function(){const{store:t}=e();return t}}const Je=Ke();function Xe(t=Fe){const e=t===Fe?Je:Ke(t);return function(){return e().dispatch}}const Qe=Xe();var Ze;(t=>{Be=t})(Me.useSyncExternalStoreWithSelector),(t=>{Ye=t})(Re.useSyncExternalStore),Ze=De.unstable_batchedUpdates,Le=Ze;var tn=n(1607),en=n.n(tn);const nn=(0,U.kr)(null),rn=(0,U.kr)(null),on={info:"info",message:"message",participant:"participant",system:"system"},an="text",sn="text",cn="upload",ln="received",un="read",fn="custom",pn="typing",dn="read",hn="detach_service",vn="dismiss",yn="set_topic",mn="set_translation",gn="click_cta",bn="translation_proposal",_n=bn,wn="translation_choice",xn="assertive",Sn="polite",On={new_topic:"newTopic",new_translation:"newTranslation"},Cn="uploads",En="navigate";function Tn(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function An(t){return!!t&&!!t[hr]}function jn(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===vr}(t)||Array.isArray(t)||!!t[dr]||!!(null===(e=t.constructor)||void 0===e?void 0:e[dr])||Mn(t)||Dn(t))}function In(t,e,n){void 0===n&&(n=!1),0===kn(t)?(n?Object.keys:yr)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(n,r){return e(r,n,t)}))}function kn(t){var e=t[hr];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Mn(t)?2:Dn(t)?3:0}function Pn(t,e){return 2===kn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Nn(t,e,n){var r=kn(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function Rn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Mn(t){return lr&&t instanceof Map}function Dn(t){return ur&&t instanceof Set}function Ln(t){return t.o||t.t}function Un(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=mr(t);delete e[hr];for(var n=yr(e),r=0;r<n.length;r++){var o=n[r],i=e[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Fn(t,e){return void 0===e&&(e=!1),Bn(t)||An(t)||!jn(t)||(kn(t)>1&&(t.set=t.add=t.clear=t.delete=zn),Object.freeze(t),e&&In(t,(function(t,e){return Fn(e,!0)}),!0)),t}function zn(){Tn(2)}function Bn(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Hn(t){var e=gr[t];return e||Tn(18,t),e}function $n(){return sr}function Vn(t,e){e&&(Hn("Patches"),t.u=[],t.s=[],t.v=e)}function qn(t){Wn(t),t.p.forEach(Gn),t.p=null}function Wn(t){t===sr&&(sr=t.l)}function Yn(t){return sr={p:[],l:sr,h:t,m:!0,_:0}}function Gn(t){var e=t[hr];0===e.i||1===e.i?e.j():e.O=!0}function Kn(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||Hn("ES5").S(e,t,r),r?(n[hr].P&&(qn(e),Tn(4)),jn(t)&&(t=Jn(e,t),e.l||Qn(e,t)),e.u&&Hn("Patches").M(n[hr].t,t,e.u,e.s)):t=Jn(e,n,[]),qn(e),e.u&&e.v(e.u,e.s),t!==pr?t:void 0}function Jn(t,e,n){if(Bn(e))return e;var r=e[hr];if(!r)return In(e,(function(o,i){return Xn(t,r,e,o,i,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return Qn(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Un(r.k):r.o;In(3===r.i?new Set(o):o,(function(e,i){return Xn(t,r,o,e,i,n)})),Qn(t,o,!1),n&&t.u&&Hn("Patches").R(r,n,t.u,t.s)}return r.o}function Xn(t,e,n,r,o,i){if(An(o)){var a=Jn(t,o,i&&e&&3!==e.i&&!Pn(e.D,r)?i.concat(r):void 0);if(Nn(n,r,a),!An(a))return;t.m=!1}if(jn(o)&&!Bn(o)){if(!t.h.F&&t._<1)return;Jn(t,o),e&&e.A.l||Qn(t,o)}}function Qn(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&Fn(e,n)}function Zn(t,e){var n=t[hr];return(n?Ln(n):t)[e]}function tr(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function er(t){t.P||(t.P=!0,t.l&&er(t.l))}function nr(t){t.o||(t.o=Un(t.t))}function rr(t,e,n){var r=Mn(e)?Hn("MapSet").N(e,n):Dn(e)?Hn("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:$n(),P:!1,I:!1,D:{},l:e,t:t,k:null,o:null,j:null,C:!1},o=r,i=br;n&&(o=[r],i=_r);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,n):Hn("ES5").J(e,n);return(n?n.A:$n()).p.push(r),r}function or(t){return An(t)||Tn(22,t),function t(e){if(!jn(e))return e;var n,r=e[hr],o=kn(e);if(r){if(!r.P&&(r.i<4||!Hn("ES5").K(r)))return r.t;r.I=!0,n=ir(e,o),r.I=!1}else n=ir(e,o);return In(n,(function(e,o){r&&function(t,e){return 2===kn(t)?t.get(e):t[e]}(r.t,e)===o||Nn(n,e,t(o))})),3===o?new Set(n):n}(t)}function ir(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Un(t)}var ar,sr,cr="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),lr="undefined"!=typeof Map,ur="undefined"!=typeof Set,fr="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,pr=cr?Symbol.for("immer-nothing"):((ar={})["immer-nothing"]=!0,ar),dr=cr?Symbol.for("immer-draftable"):"__$immer_draftable",hr=cr?Symbol.for("immer-state"):"__$immer_state",vr=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),yr="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,mr=Object.getOwnPropertyDescriptors||function(t){var e={};return yr(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},gr={},br={get:function(t,e){if(e===hr)return t;var n=Ln(t);if(!Pn(n,e))return function(t,e,n){var r,o=tr(e,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!jn(r)?r:r===Zn(t.t,e)?(nr(t),t.o[e]=rr(t.A.h,r,t)):r},has:function(t,e){return e in Ln(t)},ownKeys:function(t){return Reflect.ownKeys(Ln(t))},set:function(t,e,n){var r=tr(Ln(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=Zn(Ln(t),e),i=null==o?void 0:o[hr];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(Rn(n,o)&&(void 0!==n||Pn(t.t,e)))return!0;nr(t),er(t)}return t.o[e]===n&&"number"!=typeof n&&(void 0!==n||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==Zn(t.t,e)||e in t.t?(t.D[e]=!1,nr(t),er(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=Ln(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){Tn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Tn(12)}},_r={};In(br,(function(t,e){_r[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),_r.deleteProperty=function(t,e){return _r.set.call(this,t,e,void 0)},_r.set=function(t,e,n){return br.set.call(this,t[0],e,n,t[0])};var wr=function(){function t(t){var e=this;this.g=fr,this.F=!0,this.produce=function(t,n,r){if("function"==typeof t&&"function"!=typeof n){var o=n;n=t;var i=e;return function(t){var e=this;void 0===t&&(t=o);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(t,(function(t){var r;return(r=n).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof n&&Tn(6),void 0!==r&&"function"!=typeof r&&Tn(7),jn(t)){var s=Yn(e),c=rr(e,t,void 0),l=!0;try{a=n(c),l=!1}finally{l?qn(s):Wn(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Vn(s,r),Kn(t,s)}),(function(t){throw qn(s),t})):(Vn(s,r),Kn(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=n(t))&&(a=t),a===pr&&(a=void 0),e.F&&Fn(a,!0),r){var u=[],f=[];Hn("Patches").M(t,a,u,f),r(u,f)}return a}Tn(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(o))}))};var r,o,i=e.produce(t,n,(function(t,e){r=t,o=e}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,o]})):[i,r,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){jn(t)||Tn(8),An(t)&&(t=or(t));var e=Yn(this),n=rr(this,t,void 0);return n[hr].C=!0,Wn(e),n},e.finishDraft=function(t,e){var n=(t&&t[hr]).A;return Vn(n,e),Kn(void 0,n)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!fr&&Tn(20),this.g=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var o=Hn("Patches").$;return An(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),xr=new wr,Sr=xr.produce,Or=(xr.produceWithPatches.bind(xr),xr.setAutoFreeze.bind(xr),xr.setUseProxies.bind(xr),xr.applyPatches.bind(xr),xr.createDraft.bind(xr),xr.finishDraft.bind(xr),Sr);function Cr(t){return Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(t)}function Er(t){var e=function(t,e){if("object"!==Cr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Cr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Cr(e)?e:String(e)}function Tr(t,e,n){return(e=Er(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ar(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 jr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ar(Object(n),!0).forEach((function(e){Tr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ir(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 kr="function"==typeof Symbol&&Symbol.observable||"@@observable",Pr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Nr={INIT:"@@redux/INIT"+Pr(),REPLACE:"@@redux/REPLACE"+Pr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Pr()}};function Rr(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 Mr(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ir(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ir(1));return n(Mr)(t,e)}if("function"!=typeof t)throw new Error(Ir(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(Ir(3));return i}function f(t){if("function"!=typeof t)throw new Error(Ir(4));if(c)throw new Error(Ir(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(Ir(6));e=!1,l();var n=s.indexOf(t);s.splice(n,1),a=null}}}function p(t){if(!Rr(t))throw new Error(Ir(7));if(void 0===t.type)throw new Error(Ir(8));if(c)throw new Error(Ir(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(Ir(10));o=t,p({type:Nr.REPLACE})}function h(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ir(11));function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[kr]=function(){return this},t}return p({type:Nr.INIT}),(r={dispatch:p,subscribe:f,getState:u,replaceReducer:d})[kr]=h,r}function Dr(){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 Lr(){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(Ir(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(o)}));return r=Dr.apply(void 0,i)(n.dispatch),jr(jr({},n),{},{dispatch:r})}}}function Ur(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 Fr=Ur();Fr.withExtraArgument=Ur;var zr,Br=Fr,Hr=(zr=function(t,e){return zr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},zr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}zr(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),$r=function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},Vr=Object.defineProperty,qr=Object.defineProperties,Wr=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,Gr=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable,Jr=function(t,e,n){return e in t?Vr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Xr=function(t,e){for(var n in e||(e={}))Gr.call(e,n)&&Jr(t,n,e[n]);if(Yr)for(var r=0,o=Yr(e);r<o.length;r++)n=o[r],Kr.call(e,n)&&Jr(t,n,e[n]);return t},Qr=function(t,e){return qr(t,Wr(e))},Zr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Dr:Dr.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var to=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.apply(this,n)||this;return Object.setPrototypeOf(o,e.prototype),o}return Hr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,$r([void 0],t[0].concat(this)))):new(e.bind.apply(e,$r([void 0],t.concat(this))))},e}(Array);function eo(t){return jn(t)?Or(t,(function(){})):t}function no(t){var e,n=function(t){return function(t){void 0===t&&(t={});var e=t.thunk,n=void 0===e||e,r=(t.immutableCheck,t.serializableCheck,new to);return n&&(function(t){return"boolean"==typeof t}(n)?r.push(Br):r.push(Br.withExtraArgument(n.extraArgument))),r}(t)},r=t||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,s=void 0===a?n():a,c=r.devTools,l=void 0===c||c,u=r.preloadedState,f=void 0===u?void 0:u,p=r.enhancers,d=void 0===p?void 0:p;if("function"==typeof i)e=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return e===n}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=function(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:Nr.INIT}))throw new Error(Ir(12));if(void 0===n(void 0,{type:Nr.PROBE_UNKNOWN_ACTION()}))throw new Error(Ir(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],f=l(u,e);if(void 0===f)throw e&&e.type,new Error(Ir(14));o[c]=f,r=r||f!==u}return(r=r||a.length!==Object.keys(t).length)?o:t}}(i)}var h=s;"function"==typeof h&&(h=h(n));var v=Lr.apply(void 0,h),y=Dr;l&&(y=Zr(Xr({trace:!1},"object"==typeof l&&l)));var m=[v];return Array.isArray(d)?m=$r([v],d):"function"==typeof d&&(m=d(m)),Mr(e,f,y.apply(void 0,m))}function ro(t,e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(e){var o=e.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return Xr(Xr({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:n[0]}}return n.toString=function(){return""+t},n.type=t,n.match=function(e){return e.type===t},n}function oo(t){var e,n={},r=[],o={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=e,o},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[n,r,e]}function io(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof t.initialState?t.initialState:eo(t.initialState),o=t.reducers||{},i=Object.keys(o),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?oo(t.extraReducers):[t.extraReducers],n=e[0],o=void 0===n?{}:n,i=e[1],a=void 0===i?[]:i,c=e[2],l=void 0===c?void 0:c,u=Xr(Xr({},o),s);return function(t,e,n,r){void 0===n&&(n=[]);var o,i=oo(e),a=i[0],s=i[1],c=i[2];if(function(t){return"function"==typeof t}(t))o=function(){return eo(t())};else{var l=eo(t);o=function(){return l}}function u(t,e){void 0===t&&(t=o());var n=$r([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===n.filter((function(t){return!!t})).length&&(n=[c]),n.reduce((function(t,n){if(n){var r;if(An(t))return void 0===(r=n(t,e))?t:r;if(jn(t))return Or(t,(function(t){return n(t,e)}));if(void 0===(r=n(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return u.getInitialState=o,u}(r,(function(t){for(var e in u)t.addCase(e,u[e]);for(var n=0,r=a;n<r.length;n++){var o=r[n];t.addMatcher(o.matcher,o.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var n,r,i=o[t],l=function(t,e){return t+"/"+e}(e,t);"reducer"in i?(n=i.reducer,r=i.prepare):n=i,a[t]=n,s[l]=n,c[t]=r?ro(l,r):ro(l)})),{name:e,reducer:function(t,e){return n||(n=l()),n(t,e)},actions:c,caseReducers:a,getInitialState:function(){return n||(n=l()),n.getInitialState()}}}var ao=function(t){void 0===t&&(t=21);for(var e="",n=t;n--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e},so=["name","message","stack","code"],co=function(t,e){this.payload=t,this.meta=e},lo=function(t,e){this.payload=t,this.meta=e},uo=function(t){if("object"==typeof t&&null!==t){for(var e={},n=0,r=so;n<r.length;n++){var o=r[n];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}},fo=function(){function t(t,e,n){var r=ro(t+"/fulfilled",(function(t,e,n,r){return{payload:t,meta:Qr(Xr({},r||{}),{arg:n,requestId:e,requestStatus:"fulfilled"})}})),o=ro(t+"/pending",(function(t,e,n){return{payload:void 0,meta:Qr(Xr({},n||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),i=ro(t+"/rejected",(function(t,e,r,o,i){return{payload:o,error:(n&&n.serializeError||uo)(t||"Rejected"),meta:Qr(Xr({},i||{}),{arg:r,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var u,f=(null==n?void 0:n.idGenerator)?n.idGenerator(t):ao(),p=new a;function d(t){u=t,p.abort()}var h=function(){return a=this,h=null,v=function(){var a,h,v,y,m,g;return function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),null===(_=y=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,t,{getState:c,extra:l}))||"object"!=typeof _||"function"!=typeof _.then?[3,2]:[4,y];case 1:y=b.sent(),b.label=2;case 2:if(!1===y||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return m=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),s(o(f,t,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:f,arg:t},{getState:c,extra:l}))),[4,Promise.race([m,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:f,signal:p.signal,abort:d,rejectWithValue:function(t,e){return new co(t,e)},fulfillWithValue:function(t,e){return new lo(t,e)}})).then((function(e){if(e instanceof co)throw e;return e instanceof lo?r(e.payload,f,t,e.meta):r(e,f,t)}))])];case 3:return v=b.sent(),[3,5];case 4:return g=b.sent(),v=g instanceof co?i(null,f,t,g.payload,g.meta):i(g,f,t),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(v)&&v.meta.condition||s(v),[2,v]}var _}))},new Promise((function(t,e){var n=function(t){try{o(v.next(t))}catch(t){e(t)}},r=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(n,r)};o((v=v.apply(a,h)).next())}));var a,h,v}();return Object.assign(h,{abort:d,requestId:f,arg:t,unwrap:function(){return h.then(po)}})}}),{pending:o,rejected:i,fulfilled:r,typePrefix:t})}return t.withTypes=function(){return t},t}();function po(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}var ho=function(t,e){return function(t){return t&&"function"==typeof t.match}(t)?t.match(e):t(e)};function vo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.some((function(t){return ho(t,e)}))}}Object.assign;var yo="listenerMiddleware";ro(yo+"/add"),ro(yo+"/removeAll"),ro(yo+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:void 0!==n.g?n.g:globalThis);"undefined"!=typeof window&&window.requestAnimationFrame&&window.requestAnimationFrame,function(){function t(t,e){var n=o[t];return n?n.enumerable=e:o[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[hr];return br.get(e,t)},set:function(e){var n=this[hr];br.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][hr];if(!o.P)switch(o.i){case 5:r(o)&&er(o);break;case 4:n(o)&&er(o)}}}function n(t){for(var e=t.t,n=t.k,r=yr(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==hr){var a=e[i];if(void 0===a&&!Pn(e,i))return!0;var s=n[i],c=s&&s[hr];if(c?c.t!==a:!Rn(s,a))return!0}}var l=!!e[hr];return r.length!==yr(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var o={};!function(t,e){gr[t]||(gr[t]=e)}("ES5",{J:function(e,n){var r=Array.isArray(e),o=function(e,n){if(e){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,t(o,!0));return r}var i=mr(n);delete i[hr];for(var a=yr(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,e||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,e),i={i:r?5:4,A:n?n.A:$n(),P:!1,I:!1,D:{},l:n,t:e,k:o,o:null,O:!1,C:!1};return Object.defineProperty(o,hr,{value:i,writable:!0}),o},S:function(t,n,o){o?An(n)&&n[hr].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[hr];if(n){var o=n.t,i=n.k,a=n.D,s=n.i;if(4===s)In(i,(function(e){e!==hr&&(void 0!==o[e]||Pn(o,e)?a[e]||t(i[e]):(a[e]=!0,er(n)))})),In(o,(function(t){void 0!==i[t]||Pn(i,t)||(a[t]=!1,er(n))}));else if(5===s){if(r(n)&&(er(n),a.length=!0),i.length<o.length)for(var c=i.length;c<o.length;c++)a[c]=!1;else for(var l=o.length;l<i.length;l++)a[l]=!0;for(var u=Math.min(i.length,o.length),f=0;f<u;f++)i.hasOwnProperty(f)||(a[f]=!0),void 0===a[f]&&t(i[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?n(t):r(t)}})}();class mo extends st{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="SeamlyUnavailableError",this.langKey="errors.seamlyUnavailable"}}var go=function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};const bo=fo("initializeConfig",((t,e)=>{let{extra:{api:n,config:r},rejectWithValue:o}=e;return go(void 0,void 0,void 0,(function*(){var t;try{const{features:e,defaultLocale:o,preChat:i,agentParticipant:a,userParticipant:s,startChatIcon:c}=yield n.getConfig(),l=(null===(t=null==r?void 0:r.context)||void 0===t?void 0:t.locale)||o,{connectWhenInView:u}=r;return{features:e,defaultLocale:o,preChat:i,agentParticipant:a,userParticipant:s,startChatIcon:c,locale:l,connectWhenInView:u}}catch(t){return o(t)}}))})),_o=fo("resetConfig",((t,e)=>{let{extra:{config:n}}=e;return go(void 0,void 0,void 0,(function*(){return n}))}));const wo=fo("setLocale",((t,e)=>{let{extra:{api:n},rejectWithValue:r}=e;return function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}(void 0,void 0,void 0,(function*(){try{return{translations:yield n.getTranslations(t),locale:t}}catch(t){return r(t)}}))}),{condition:(t,e)=>{let{getState:n}=e;const{i18n:{isLoading:r,locale:o}}=n();return t!==o&&!r}});var xo="NOT_FOUND",So=function(t,e){return t===e};function Oo(t,e){var n,r,o="object"==typeof e?e:{equalityCheck:e},i=o.equalityCheck,a=void 0===i?So: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),f=1===c?(n=u,{get:function(t){return r&&n(r.key,t)?r.value:xo},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 xo}return{get:r,put:function(e,o){r(e)===xo&&(n.unshift({key:e,value:o}),n.length>t&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(c,u);function p(){var e=f.get(arguments);if(e===xo){if(e=t.apply(null,arguments),l){var n=f.getEntries(),r=n.find((function(t){return l(t.value,e)}));r&&(e=r.value)}f.put(arguments,e)}return e}return p.clearCache=function(){return f.clear()},p}function Co(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 Eo(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,f=void 0===u?n:u,p=Array.isArray(f)?f:[f],d=Co(r),h=t.apply(void 0,[function(){return a++,c.apply(null,arguments)}].concat(p)),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 To=Eo(Oo);const Ao=To((t=>{let{app:e}=t;return e}),(t=>{let{userHasResponded:e}=t;return e})),jo="visibility",Io={hidden:"hidden",minimized:"minimized",open:"open",initialize:null},ko=To((t=>{let{config:e}=t;return e}),(t=>{let e=W()({visible:"inline"===(null==t?void 0:t.layoutMode)?Io.open:Io.minimized,appContainerClassNames:t.appContainerClassNames||[]},t);return"function"==typeof e.appContainerClassNames&&(e=W()(W()({},e),{appContainerClassNames:e.appContainerClassNames(e)})),e})),Po=()=>Ve(ko);function No(){const{startChatIcon:t}=Po();return t}const Ro=t=>{let{state:e}=t;return e},Mo=()=>Ve(Ro),Do=To(Ro,ko,Ao,((t,e,n)=>{let{events:r,serviceData:o}=t;var i;if(n||"inline"===e.layoutMode||!(null==o?void 0:o.suggestion)||!(null===(i=null==o?void 0:o.suggestion)||void 0===i?void 0:i.body.length))return r;const a={type:"service_data",payload:o.suggestion};return[...r,a]})),Lo=To(Do,ko,((t,e)=>{var n,r;const{enabled:o,threshold:i}=null!==(r=null===(n=null==e?void 0:e.messages)||void 0===n?void 0:n.timeIndicator)&&void 0!==r?r:{};if(!o)return t;const a=[];let s=null;return T()(t).call(t,((t,e)=>{if(0===e)a.push(W()(W()({},t),{timeIndicator:t.payload.occurredAt}));else{const e=s&&mt(t.payload.occurredAt-s.payload.occurredAt)>=i?t.payload.occurredAt:void 0;a.push(W()(W()({},t),{timeIndicator:e}))}s=t})),a})),Uo=()=>Ve(Lo),Fo=(To(Lo,(t=>S()(t).call(t,(t=>t.payload.id)))),()=>Mo().isLoading),zo=()=>Mo().headerTitles,Bo=()=>Mo().unreadEvents,Ho=()=>Mo().skiplinkTargetId,$o=To(Lo,(t=>{var e;const n=C()(t).call(t,(t=>"message"===t.type));return null===(e=n[n.length-1])||void 0===e?void 0:e.payload.id})),Vo=()=>{const{participants:t,currentAgent:e}=Mo().participantInfo;return e?t[e]:null},qo=t=>Mo().serviceData[t],Wo=()=>{const{layoutMode:t}=Po();return{isInline:"inline"===t,isWindow:"window"===t,isApp:"app"===t,isResolving:!t}},Yo=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 Io.open;if("window"===a&&s&&r!==Io.open)return e?r||n||Io.open:Io.hidden;if("inline"===a&&e&&!r)return n||Io.open;const l=Io.minimized;return r||n||c||l},Go=To((t=>{let{visibility:e}=t;return e}),(t=>t.visibility)),Ko=To((t=>{let{visibility:e}=t;return e}),(t=>t.showInlineView));const Jo=[Io.open,Io.minimized,Io.hidden],Xo=fo("setVisibility",((t,e)=>{let{getState:n,extra:{api:r,eventBus:o}}=e;const i=n(),a=Go(i),s=Ao(i),c=r.hasConversation(),l=ko(i),{visibilityCallback:u=Yo,layoutMode:f}=l,{unreadEvents:p}=Ro(i),d=u({hasResponded:s,previousVisibility:a,requestedVisibility:t,config:l});if(k()(Jo).call(Jo,d)){if(a!==d)return r.store.set(jo,W()(W()({},r.store.get(jo)||{}),{[f]:t})),t&&o.emit("ui.visible",t,{visibility:t,hasConversation:c,hasResponded:s,unreadMessageCount:p}),d}else console.error('The visibilityCallback function should return "open", "minimized" or "hidden".')})),Qo=fo("initialize",((t,e)=>{let{dispatch:n,getState:r,extra:{api:o}}=e;return function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}(void 0,void 0,void 0,(function*(){var t;const{layoutMode:e}=ko(r()),i=(null===(t=o.store.get(jo))||void 0===t?void 0:t[e])||Io.initialize;return n(Xo(i)),i}))}));var Zo=function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};const ti=fo("initializeApp",((t,e)=>{let{extra:{api:n,config:r},rejectWithValue:o}=e;return Zo(void 0,void 0,void 0,(function*(){var t,e,i,a;let s=null===(t=null==r?void 0:r.context)||void 0===t?void 0:t.locale;try{if(n.hasConversation()){const t=yield n.getConversationIntitialState();return s=(null===(e=t.translation)||void 0===e?void 0:e.locale)||s,{initialState:t,locale:s,config:r}}return(null===(i=null==r?void 0:r.context)||void 0===i?void 0:i.topic)&&n.send("action",{type:yn,body:{name:r.context.topic,fallbackMessage:r.context.topic}}),(null===(a=null==r?void 0:r.context)||void 0===a?void 0:a.translationLocale)&&(s=r.context.translationLocale,n.send("action",{type:mn,body:{enabled:!0,locale:s}},!1)),{initialState:void 0,locale:s,config:r}}catch(t){if(t instanceof ut){const t=new ut;return o({name:t.name,message:t.message,originalEvent:t.originalEvent,originalError:t.originalError,action:t.action})}const e=new mo;return o({name:e.name,message:e.message,langKey:e.langKey})}}))})),ei=fo("resetApp",((t,e)=>{let{dispatch:n,extra:{api:r}}=e;return Zo(void 0,void 0,void 0,(function*(){yield r.disconnect(),yield r.clearStore(),n(_o()),yield n(bo());try{const{locale:t}=yield n(ti()).unwrap();yield n(wo(t))}catch(t){}n(Qo())}))})),ni=()=>Ve(Ao),ri={userHasResponded:!1},oi=io({name:"app",initialState:ri,reducers:{setHasResponded:(t,e)=>{let{payload:n}=e;t.userHasResponded=n}},extraReducers:t=>{t.addCase(ei.pending,(()=>ri)).addCase(ti.fulfilled,((t,e)=>{let{payload:n}=e;var r;n.initialState&&"userResponded"in n.initialState&&(t.userHasResponded=null===(r=n.initialState)||void 0===r?void 0:r.userResponded)}))}}),{setHasResponded:ii}=oi.actions;var ai=oi.reducer;const si={error:void 0},ci=io({name:"interrupt",initialState:si,reducers:{setInterrupt:(t,e)=>{t.error=e.payload},clearInterrupt:()=>si},extraReducers:t=>{t.addCase(bo.pending,(()=>si)).addMatcher(vo(ti.rejected,bo.rejected,wo.rejected,Xo.rejected,Qo.rejected),((t,e)=>{let{payload:n}=e;t.error=n}))}}),{setInterrupt:li,clearInterrupt:ui}=ci.actions;var fi=ci.reducer,pi=n(2578),di=n.n(pi),hi=n(1459),vi=n.n(hi),yi=n(1679),mi=n.n(yi);const gi=t=>{let{type:e,payload:n}=t;return e===on.message&&!n.fromClient||e===on.info&&n.type===an},bi=t=>di()(t).call(t,((t,e)=>{let{payload:{occurredAt:n}}=t,{payload:{occurredAt:r}}=e;return n-r})),_i=(t,e)=>{if(!t)return{participants:{},currentAgent:""};const{participants:n}=t||{participants:{}},{id:r,avatar:o,name:i,introduction:a}=e.participant,s=n[r],c=W()(W()({},n),{[r]:s?W()(W()(W()(W()({},s),o?{avatar:o}:{}),i?{name:i}:{}),a?{introduction:a}:{}):e.participant});return W()(W()({},t),{participants:c,currentAgent:t.currentAgent===r||e.fromClient?t.currentAgent:r})},wi=(t,e)=>{const n="message"===(null==e?void 0:e.type)?null==e?void 0:e.payload.entry:{},{blockAutoEntrySwitch:r}=t;if(!n)return W()(W()({},t),{optionsOverride:{}});const{type:o,options:i}=n;let a=t.active;return r||o===t.userSelected||(a=o),W()(W()({},t),{active:a,optionsOverride:W()(W()({},t.optionsOverride),{[o]:i||{}})})},xi={events:[],isLastEventFromClient:!1,initialState:{userResponded:!1},unreadEvents:0,userHasResponded:!1,loadedImageEventIds:[],isLoading:!1,idleDetachCountdown:{hasCountdown:!1,isActive:!1,remaining:void 0,wasStopped:void 0,count:void 0,timer:void 0},resumeConversationPrompt:!1,serviceInfo:{activeServiceSessionId:""},participantInfo:{participants:{},currentAgent:""},headerTitles:{title:null,subTitle:""},historyLoaded:!1,skiplinkTargetId:kt(),optionsButtonId:kt(),headerCollapseButtonId:kt(),serviceData:{},options:{features:{},panelActive:!1,optionActive:"",userSelectedOptions:{}},showFileUpload:!1,currentUploads:[],entryMeta:{default:sn,active:sn,userSelected:null,blockAutoEntrySwitch:!1,options:{},optionsOverride:{}},seamlyContainerElement:null},Si=io({name:"store",initialState:xi,reducers:{addEvent:(t,e)=>{var n,r,o;const{type:i,payload:a}=e.payload,s=t.options.features.hasOwnProperty(Cn);let c=W()({},t.options);if(s&&(i===on.message||i===on.participant)&&!a.fromClient){const t="message"===i?null===(r=a.entry)||void 0===r?void 0:r.type:{};c=W()(W()({},c),{features:W()(W()({},c.features),{uploads:W()(W()({},null===(o=c.features)||void 0===o?void 0:o.uploads),{enabledFromEntry:t===cn})})})}const l=gi(e.payload);if(mi()(n=t.events).call(n,(t=>t.payload.id===a.id)))return;const u=wi(t.entryMeta,e.payload);t.entryMeta=s||u.active!==cn?u:W()({},t.entryMeta),t.options=c,l&&(t.unreadEvents+=1,"service_data"!==i&&(e.payload.payload.messageStatus=a.fromClient?un:ln)),e.payload.payload.key=kt(),t.events.push(e.payload),t.isLastEventFromClient=a.fromClient},ackEvent:(t,e)=>{var n;let{payload:{payload:r}}=e;if(!r.transactionId)return void console.warn("ACK received without transaction ID.");const o=mi()(n=t.events).call(n,(t=>t.payload.transactionId===r.transactionId&&(!r.type||t.type===r.type))),{id:i,occurredAt:a}=r;o&&(o.payload.id=i,o.payload.occurredAt=a,t.events=bi(t.events))},clearEvents:t=>{t.unreadEvents=0,t.loadedImageEventIds=[],t.events=[]},setEventsRead:(t,e)=>{var n;let{payload:r}=e;t.unreadEvents=0,T()(n=t.events).call(n,(t=>(-1!==V()(r).call(r,t.payload.id)&&(t.payload=W()(W()({},t.payload),"service_data"!==t.type&&t.payload.messageStatus===ln&&{messageStatus:un})),t)))},setLoadedImageEventIds:(t,e)=>{let{payload:n}=e;t.loadedImageEventIds.push(n)},setHistory:(t,e)=>{var n,r;let{payload:{events:o,participants:i,activeServiceSessionId:a,activeServiceSettings:s={},serviceData:c,resumeConversationPrompt:l}}=e;var u,f;const p=((t,e)=>{var n;const r=C()(t).call(t,(t=>!M()(e).call(e,(e=>e.payload.id===t.payload.id)))),o=vi()(n=C()(e).call(e,(t=>!("participant"===t.type&&!t.payload.participant.introduction)))).call(n);return bi([...o,...r])})(t.events,o),d=W()(W()({},t.participantInfo.participants),i),h=mi()(n=vi()(r=At()(p).call(p)).call(r)).call(n,(t=>("message"===t.type||"participant"===t.type)&&!t.payload.fromClient));let v=null;h&&("message"===h.type&&(v=h.payload.participant),"participant"===h.type&&(v=h.payload.participant.id));const{entry:y}=s,m=null===(u=null==y?void 0:y.options)||void 0===u?void 0:u.upload,g=wi(W()(W()(W()({},t.entryMeta),y),{active:(null==y?void 0:y.default)||an,options:W()({},(null==y?void 0:y.options)?y.options:{})}),p[p.length-1]);let b=W()({},t.options.features);const _=b.hasOwnProperty(Cn);if(_&&"message"===(null==h?void 0:h.type)){const{payload:t}=h,e=(null===(f=null==t?void 0:t.entry)||void 0===f?void 0:f.type)||{};b=W()(W()({},b),{uploads:{enabled:!(!m||!(null==m?void 0:m.enabled)),enabledFromEntry:e===cn}})}t.unreadEvents=C()(p).call(p,(t=>"message"===t.type&&t.payload.messageStatus===ln)).length,t.events=C()(p).call(p,(t=>"participant"!==t.type||!!t.payload.participant.introduction)),t.participantInfo=W()(W()(W()({},t.participantInfo),v?_i(t.participantInfo,{participant:d[v]}):{}),{participants:d}),t.historyLoaded=!0,t.serviceInfo=W()(W()({},t.serviceInfo),{activeServiceSessionId:a}),t.serviceData=W()(W()({},t.serviceData),c),t.options=W()(W()({},t.options),{features:b||{}}),t.entryMeta=_||g.active!==cn?g:W()({},t.entryMeta),t.resumeConversationPrompt=l||!1,v&&(t.headerTitles.subTitle=d[v].name)},resetHistoryLoadedFlag:t=>{t.historyLoaded=!1},setIsLoading:(t,e)=>{let{payload:n}=e;t.isLoading=n},initIdleDetachCountdown:(t,e)=>{let{payload:n}=e;const{delaySeconds:r,delayTime:o}=n;t.idleDetachCountdown={hasCountdown:!0,isActive:!0,wasStopped:!1,count:r,remaining:r,timer:o}},decrementIdleDetachCountdownCounter:t=>{const{idleDetachCountdown:e}=t,{remaining:n}=e,r=n-1;t.idleDetachCountdown.remaining=r,t.idleDetachCountdown.timer=gt(r)},stopIdleDetachCountdownCounter:t=>{t.idleDetachCountdown.isActive=!1,t.idleDetachCountdown.wasStopped=!0},clearIdleDetachCountdown:t=>{t.idleDetachCountdown.hasCountdown=!1,t.idleDetachCountdown.isActive=!1},initResumeConversationPrompt:t=>{t.resumeConversationPrompt=!0},clearResumeConversationPrompt:t=>{t.resumeConversationPrompt=!1},setParticipant:(t,e)=>{let{payload:n}=e;t.participantInfo=_i(t.participantInfo,{participant:n.participant,fromClient:n.fromClient})},setActiveService:(t,e)=>{let{payload:n}=e;t.serviceInfo.activeServiceSessionId!==n&&(t.serviceInfo.activeServiceSessionId=n)},setHeaderTitle:(t,e)=>{let{payload:n}=e;t.headerTitles.title=n},setHeaderSubTitle:(t,e)=>{let{payload:n}=e;t.headerTitles.subTitle=n},setInitialState:(t,e)=>{let{payload:n}=e;t.initialState=n.initialState,t.unreadEvents=xi.unreadEvents},setServiceDataItem:(t,e)=>{let{payload:n}=e;t.serviceData[n.type]=n},setFeatures:(t,e)=>{let{payload:n}=e;n.features&&(t.options.features=n.features)},setFeatureEnabledState:(t,e)=>{let{payload:n}=e;t.options.features.hasOwnProperty(n.key)&&(t.options.features[n.key].enabled=n.enabled)},clearFeatures:t=>{t.options.features={}},showOption:(t,e)=>{let{payload:n}=e;t.options.panelActive=!0,t.options.optionActive=n},hideOption:t=>{t.options.panelActive=!1,t.options.optionActive=""},setUserSelectedOptions:(t,e)=>{let{payload:n}=e;t.options.userSelectedOptions=n},setUserSelectedOption:(t,e)=>{let{payload:n}=e;const{option:r,value:o}=n;t.options.userSelectedOptions[r]=o},setBlockAutoEntrySwitch:(t,e)=>{let{payload:n}=e;t.entryMeta.blockAutoEntrySwitch=n},setServiceEntryMetadata:(t,e)=>{let{payload:n}=e;t.entryMeta.active=n.default,t.entryMeta.options=n.options||{},t.entryMeta.optionsOverride={}},setActiveEntryType:(t,e)=>{let{payload:n}=e;t.entryMeta.active=n},setUserEntryType:(t,e)=>{let{payload:n}=e;t.entryMeta.userSelected=n},registerUpload:(t,e)=>{let{payload:n}=e;t.currentUploads.push({id:n.fileId,name:n.fileName,progress:1,uploading:!0,complete:!1,error:"",uploadHandle:n.uploadHandle})},setUploadProgress:(t,e)=>{var n;let{payload:r}=e;t.currentUploads=S()(n=t.currentUploads).call(n,(t=>t.id===r.fileId?W()(W()({},t),{progress:r.progress,uploading:100!==r.progress,uploadHandle:100===r.progress?null:t.uploadHandle}):t))},setUploadError:(t,e)=>{var n;let{payload:r}=e;t.currentUploads=S()(n=t.currentUploads).call(n,(t=>t.id===r.fileId?W()(W()({},t),{error:r.errorText,progress:0,uploading:!1,uploadHandle:null}):t))},setUploadComplete:(t,e)=>{var n;let{payload:r}=e;t.currentUploads=S()(n=t.currentUploads).call(n,(t=>t.id===r?W()(W()({},t),{complete:!0}):t))},clearAllUploads:t=>{t.currentUploads=[]},setSeamlyContainerElement:(t,e)=>{let{payload:n}=e;t.seamlyContainerElement=n}},extraReducers:t=>{t.addCase(ei.pending,(()=>xi)).addCase(bo.fulfilled,((t,e)=>{let{payload:n}=e;var r;t.headerTitles.subTitle=null===(r=n.agentParticipant)||void 0===r?void 0:r.name,n.features&&(t.options.features=n.features)})).addCase(ti.fulfilled,((t,e)=>{let{payload:n}=e;n.initialState&&(t.initialState=n.initialState)})).addMatcher(vo(Ni,Ri),(t=>{t.isLastEventFromClient=!1}))}}),{ackEvent:Oi,addEvent:Ci,clearAllUploads:Ei,clearEvents:Ti,clearFeatures:Ai,clearIdleDetachCountdown:ji,clearResumeConversationPrompt:Ii,decrementIdleDetachCountdownCounter:ki,hideOption:Pi,initIdleDetachCountdown:Ni,initResumeConversationPrompt:Ri,registerUpload:Mi,resetHistoryLoadedFlag:Di,setActiveEntryType:Li,setActiveService:Ui,setBlockAutoEntrySwitch:Fi,setEventsRead:zi,setFeatureEnabledState:Bi,setFeatures:Hi,setHeaderSubTitle:$i,setHeaderTitle:Vi,setHistory:qi,setInitialState:Wi,setIsLoading:Yi,setLoadedImageEventIds:Gi,setParticipant:Ki,setSeamlyContainerElement:Ji,setServiceDataItem:Xi,setServiceEntryMetadata:Qi,setUploadComplete:Zi,setUploadError:ta,setUploadProgress:ea,setUserEntryType:na,setUserSelectedOption:ra,setUserSelectedOptions:oa,showOption:ia,stopIdleDetachCountdownCounter:aa}=Si.actions;var sa=Si.reducer,ca=n(9022),la=n.n(ca);const ua=W()(W()({},{namespace:"default",layoutMode:"window",messages:{agent:{showAvatar:!1,showName:!1},user:{showAvatar:!1,showName:!1},timeIndicator:{enabled:!1,threshold:36e5}}}),{api:{domain:"",key:"",secure:!0},hideOnNoUserResponse:!1,connectWhenInView:!0,showDisclaimer:!1,showFaq:!1,showSuggestions:!0,customComponents:{},defaults:{visible:null},preChatEvents:[]}),fa=["hideOnNoUserResponse","connectWhenInView","showDisclaimer","showFaq","showSuggestions","namespace","customComponents","defaults","layoutMode","api","zIndex","context","appContainerClassNames","messages","visible","visibilityCallback","errorCallback","agentParticipant","userParticipant","startChatIcon"],pa=(t,e)=>{const n=((t,e)=>Q()(e).call(e,((e,n)=>(n in t&&(e[n]=t[n]),e)),{}))(e,fa),{messages:r}=n,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&V()(e).call(e,r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof s()){var o=0;for(r=s()(t);o<r.length;o++)V()(e).call(e,r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(n,["messages"]);let i=t;return j()(o).length>0&&(i=W()(W()({},i),o)),r&&(i=W()(W()({},i),{messages:W()(W()({},i.messages),r)})),i},da=io({name:"config",initialState:ua,reducers:{setConfig:(t,e)=>{let{payload:n}=e;return pa(t,n)},updateConfig:(t,e)=>{let{payload:n}=e;return pa(t,n)},setPreChatEvents:(t,e)=>{let{payload:n}=e;t.preChatEvents=n}},extraReducers:t=>{t.addCase(_o.fulfilled,(t=>t)).addCase(bo.fulfilled,((t,e)=>{let{payload:{preChat:n,agentParticipant:r,userParticipant:o,startChatIcon:i}}=e;t.preChatEvents=S()(n).call(n,(t=>({type:"message",payload:t}))),t.agentParticipant=r,t.userParticipant=o,t.startChatIcon=i}))}}),{setConfig:ha,updateConfig:va,setPreChatEvents:ya}=da.actions;var ma=da.reducer;class ga extends st{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"}}const ba={SeamlyGeneralError:lt,SeamlyConfigurationError:ct,SeamlySessionExpiredError:ut,SeamlyOfflineError:ga,SeamlyUnauthorizedError:ft,SeamlyUnavailableError:mo},_a=ro("catch-error",(t=>({payload:t})));function wa(t){let{api:e}=t;return t=>{let{getState:n}=t;const r=t=>{const{errorCallback:r,namespace:o,api:i,layoutMode:a}=ko(n()),{error:s,type:c}=t,l=ba[null==s?void 0:s.name]?new ba[s.name](s):new st(s);null==r||r(l,{namespace:o,api:i,layoutMode:a,conversationUrl:e.getConversationUrl(),action:c?t:void 0})};return t=>e=>{var n,o,i,a,s,c;try{return(null===(o=null===(n=e.payload)||void 0===n?void 0:n.originalEvent)||void 0===o?void 0:o.payload)?r({error:e.payload,type:null===(s=null===(a=null===(i=e.payload)||void 0===i?void 0:i.originalEvent)||void 0===a?void 0:a.payload)||void 0===s?void 0:s.type}):(null===(c=e.payload)||void 0===c?void 0:c.originalError)&&r({error:e.payload,type:void 0}),t(e)}catch(t){throw r({error:t}),t}}}}const xa={controls:{}},Sa={value:"",touched:!1},Oa={controls:Sa},Ca=io({name:"forms",initialState:Oa,reducers:{registerForm:(t,e)=>{let{payload:{persistData:n,formId:r}}=e;var o;const i=n&&null!==(o=t[r])&&void 0!==o?o:W()(W()({},xa),{persistData:n});t[r]=i},deregisterForm:(t,e)=>{let{payload:{formId:n}}=e;var r;return(null===(r=t[n])||void 0===r?void 0:r.persistData)||delete t[n],t},registerControl:(t,e)=>{let{payload:{name:n,formId:r}}=e;t[r].controls={[n]:Sa}},deregisterControl:(t,e)=>{let{payload:{name:n,formId:r}}=e;const o=t[r];if(!o)return t;if(o.persistData)return t;const i=W()({},o.controls);return delete i[n],W()(W()({},t),{[r]:W()(W()({},o),{controls:i})})},updateControlValue:(t,e)=>{let{payload:{formId:n,name:r,value:o}}=e;var i;(null===(i=t[n])||void 0===i?void 0:i.controls)&&(t[n].controls[r].value=o)},updateControlTouched:(t,e)=>{let{payload:{formId:n,name:r,touched:o}}=e;var i;(null===(i=t[n])||void 0===i?void 0:i.controls[r])&&(t[n].controls[r].touched=o)}},extraReducers:t=>{t.addCase(ei.pending,(()=>Oa))}}),{registerForm:Ea,deregisterForm:Ta,registerControl:Aa,deregisterControl:ja,updateControlValue:Ia,updateControlTouched:ka}=Ca.actions;var Pa=Ca.reducer;const Na={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,locale:void 0},Ra=io({name:"app",initialState:Na,reducers:{setInitialLocale:(t,e)=>{t.initialLocale=e.payload},setTranslations:(t,e)=>{let{payload:n}=e;t.translations=n}},extraReducers:t=>{t.addCase(ei.pending,(()=>Na)).addCase(bo.fulfilled,((t,e)=>{let{payload:n}=e;t.initialLocale=n.locale})).addCase(wo.pending,(t=>{t.isLoading=!0})).addCase(wo.rejected,(t=>{t.isLoading=!1})).addCase(wo.fulfilled,((t,e)=>{var n,r;let{payload:o}=e;t.isLoading=!1,(null==o?void 0:o.translations)&&(t.locale=o.locale,t.translations=Q()(n=di()(r=j()(o.translations)).call(r)).call(n,((t,e)=>W()(W()({},t),{[e]:o.translations[e]})),{}))}))}}),{setInitialLocale:Ma,setTranslations:Da}=Ra.actions;var La=Ra.reducer;const Ua=["SeamlyGeneralError","SeamlyConfigurationError","SeamlySessionExpiredError","SeamlyOfflineError","SeamlyUnauthorizedError","SeamlyUnavailableError"];function Fa(t){let{api:e}=t;return()=>t=>n=>{const{payload:r,type:o}=n;if(o===li.type){if(!k()(Ua).call(Ua,r.name))throw new lt(r);"reset"===r.action&&e.disconnect().then((()=>{e.clearStore()}))}return t(n)}}function za(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ba(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=za(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=za(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Ha(t){let{api:e}=t;return()=>t=>n=>{const r=t(n);switch(n.type){case oa.toString():e.store.set("options",n.payload);break;case ra.toString():e.store.set("options",Ba(Ba({},e.store.get("options")||{}),{},{[n.payload.option]:n.payload.value}))}return r}}const $a=To((t=>{let{i18n:e}=t;return e}),(t=>{let{translations:e}=t;return e})),Va=To((t=>{let{i18n:e}=t;return e}),(t=>{let{initialLocale:e}=t;return e})),qa=To((t=>{let{i18n:e}=t;return e}),(t=>{let{locale:e}=t;return e})),Wa=To((t=>{let{i18n:e}=t;return e}),(t=>{let{isLoading:e}=t;return e}));var Ya=n(9940),Ga=n.n(Ya);const Ka={isActive:!1,currentLocale:void 0,isAvailable:!1,languages:[],containerId:ao(),translatedEventGroups:{},translationProposal:null},Ja=(t,e)=>{var n,r;const o=Q()(n=[...t]).call(n,((t,n,r,o)=>{let{payload:i}=n;var a;if(t[e]){if("divider"===(null==i?void 0:i.type)&&(null===(a=null==i?void 0:i.body)||void 0===a?void 0:a.translationEnabled))return Ga()(o).call(o,0),t;t[e].push(i.id)}return i.id===e&&(t[e]=[]),t}),{}),[[i,a]]=L()(o);return{lastGroupId:S()(r=C()(t).call(t,(t=>{var e;return"divider"===(null===(e=t.payload)||void 0===e?void 0:e.type)}))).call(r,(t=>t.payload.id)).at(-1),groupId:i,eventIds:a}},Xa=io({name:"translation",initialState:Ka,reducers:{enableTranslation:(t,e)=>{let{payload:n}=e;t.isActive=!0,t.currentLocale=n},disableTranslation:t=>{t.isActive=!1,t.currentLocale=void 0},enableEventsTranslation:(t,e)=>{let{payload:{events:n,id:r}}=e;delete t.translatedEventGroups[r];const{lastGroupId:o}=Ja(n,r);t.lastGroupId=o},disableEventsTranslation:(t,e)=>{let{payload:{events:n,id:r}}=e;const{lastGroupId:o,groupId:i,eventIds:a}=Ja(n,r);t.lastGroupId=o,t.translatedEventGroups[i]=a},disableTranslationProposalPrompt:t=>{t.translationProposal=null},setTranslationProposalPrompt:(t,e)=>{let{payload:n}=e;t.translationProposal=n}},extraReducers:t=>{t.addCase(ei.pending,(()=>Ka)).addCase(bo.fulfilled,((t,e)=>{let{payload:n}=e;var r;const o=null===(r=null==n?void 0:n.features)||void 0===r?void 0:r.translation;o&&(t.isAvailable=!0===o.enabled,t.languages=o.languages)})).addCase(qi,((t,e)=>{let{payload:n}=e;t.translationProposal=n.translationProposal})).addCase(Ci,((t,e)=>{let{payload:n}=e;t.translatedEventGroups[t.lastGroupId]&&t.translatedEventGroups[t.lastGroupId].push(n.payload.id)}))}}),{enableTranslation:Qa,disableTranslation:Za,enableEventsTranslation:ts,disableEventsTranslation:es,setTranslationProposalPrompt:ns,disableTranslationProposalPrompt:rs}=Xa.actions;var os=Xa.reducer;function is(t){let{dispatch:e,getState:n}=t;return t=>r=>{const o=t(r),{payload:i}=r;switch(r.type){case qi.type:i?.translation?.enabled&&(e(Qa(i.translation.locale)),e(wo(i.translation.locale)));break;case bo.fulfilled.type:i.locale&&e(wo(i.locale));break;case Wi.type:i?.translation?.enabled&&(e(Qa(i.translation.locale)),e(wo(i.locale)));break;case Ci.type:"info"===i.type&&"new_translation"===i?.payload?.body?.subtype&&i.payload.body.translationEnabled&&e(wo(i.payload.body.translationLocale));break;case Za.type:const t=Va(n());e(wo(t))}return o}}const as=io({name:"visibility",initialState:{visibility:Io.initialize,showInlineView:!1},reducers:{setShowInlineView:t=>{t.showInlineView=!0}},extraReducers:t=>{t.addCase(Xo.fulfilled,((t,e)=>{let{payload:n}=e;n&&(t.visibility=n)})).addCase(bo.fulfilled,((t,e)=>{let{payload:n}=e;n.connectWhenInView||(t.showInlineView=!n.connectWhenInView)}))}}),{setShowInlineView:ss}=as.actions;var cs=as.reducer;const ls=Qe,us=()=>{const t=ls(),e=Ve(Go),n=!!e&&e!==Io.hidden,r=e===Io.open,o=e===Io.minimized,i=(0,Ne.I4)((e=>t(Xo(e))),[t]);return{isVisible:n,isOpen:r,isMinimized:o,visible:e,setVisibility:i,openChat:()=>{i(Io.open)},closeChat:()=>{i(Io.minimized)}}},fs=t=>{let{freezeOnceVisible:e=!1,enabled:n=!0,containerRef:r=(0,U.Vf)()}=t;const[o,i]=(0,Ne.eJ)(null),a=!!(null==o?void 0:o.isIntersecting)||!n,s=a&&e,c=t=>{let[e]=t;return i(e)};return(0,Ne.d4)((()=>{const t=null==r?void 0:r.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()}),[r,n,s]),{isVisible:a,containerRef:r}},ps=()=>{const t=Qe(),{connectWhenInView:e}=Po(),n=Ve(Ko),{containerRef:r,isVisible:o}=fs({enabled:e,freezeOnceVisible:!0});return(0,Ne.d4)((()=>{o&&t(ss())}),[t,o]),{containerRef:r,showInlineView:n}},ds=()=>(0,Ne.qp)(nn),hs=()=>ds().store||{},vs=()=>{const t=ds();return(0,Ne.I4)((()=>t.hasConversation()),[t])};function ys(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ms(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=ys(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=ys(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var gs=()=>{const t=ds(),e=Po(),n=Qe(),r=(0,Ne.qp)(rn),o=ni(),i=vs(),{visible:a,setVisibility:s}=us(),c=Bo(),l=(0,Ne.I4)((function(){r.emit(...arguments)}),[r]),u=(0,Ne.I4)((()=>{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})}),[t,e.context,l,i,o,c,a]),f=(0,Ne.I4)((async()=>{n(ei())}),[n]),p=(0,Ne.I4)((t=>({type:t,id:kt(),transactionId:kt(),participant:rt,fromClient:!0,occurredAt:1e3*It()(),meta:{}})),[]),d=(0,Ne.I4)((t=>ms(ms({},p("text")),{},{body:{text:t}})),[p]),h=(0,Ne.I4)((e=>{let{body:r,config:o={}}=e;if(""===en()(r).call(r))return;const i=ms(ms({},d(r)),o);t.send("message",i),l("message",i),n(Ci({type:"message",payload:ms(ms({},i),{},{optimisticallyInjected:!0})}))}),[t,n,l,d]),v=(0,Ne.I4)((function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt();n(Ci({type:"message",payload:ms(ms({},d(t)),{},{transactionId:e})}))}),[n,d]),y=(0,Ne.I4)(((t,e,r,o,i,a,s)=>{n(Ci({type:"message",payload:{type:"upload",id:t,transactionId:e,participant:rt,fromClient:!0,occurredAt:r,meta:{},body:{contentType:o,filename:i,filesize:a,url:s}}}))}),[n]),m=(0,Ne.I4)((function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt();const r={body:{subtype:t,type:"divider"},fromClient:!1,fromHistory:!0,id:kt(),transactionId:e,type:"divider"};n(Ci({type:"info",payload:r}))}),[n]),g=(0,Ne.I4)((e=>{if(!e)return;t.send("action",e);const{type:n}=e;n!==pn&&n!==dn&&l(`action.${n}`,e)}),[t,l]),b=(0,Ne.I4)((e=>{t.sendContext(e)}),[t]),_=(0,Ne.I4)((()=>t.connected?H().reject(new Error("The API is already connected")):t.connect().then((t=>{t&&(n(Wi(t)),t.userResponded&&(n(ii(t.userResponded)),s(Io.open)))})).catch((t=>{n(li({name:t?.name,message:t?.message,langKey:t?.langKey,action:t?.action,originalEvent:t?.originalEvent,originalError:t?.originalError}))}))),[t,n,s]);return{connect:_,start:u,sendMessage:h,sendAction:g,sendContext:b,reset:f,emitEvent:l,addMessageBubble:v,addUploadBubble:y,addDivider:m,apiConnected:t.connected,apiConfigReady:t.configReady}};function bs(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 _s(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,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return bs(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)?bs(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 ws(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xs(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,Er(r.key),r)}}function Ss(t){return t.reduce((function(t,e){return t.concat(Array.isArray(e)?Ss(e):e)}),[])}function Os(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 Cs(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=Es(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 Es(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 Ts(t){return As(t.slice(1,-1),",",3)}function As(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),As(a,e,n-1,r)}var js,Is=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ws(this,t),Tr(this,"format",Os((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ss(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=Es(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=Ts(o),c=_s(s,3),l=c[0],u=c[1],f=c[2],p=e[l];null==p&&(p="");var d=u&&this.typeHandlers[u];i.push(d?d(p,f,this.locale,e,this.process.bind(this)):p);var h=t.substring(r+1);return h&&i.push(this.process(h,e)),i}}return[t]}}],n&&xs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ks(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 Ps(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ks(Object(n),!0).forEach((function(e){Tr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ns=0,Rs="other";function Ms(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(Ns++);r+="{".concat(a,", number}"),i[a]=e}"{"===t[n]?o++:"}"===t[n]&&o--,n++}return{caseBody:r,numberValues:i}}var Ds="other";const Ls=new Is("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=Cs(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!==js&&js.resolvedOptions().locale===n||(js=new Intl.PluralRules(n));var u=js.select(c);u!==Rs&&l.push(u)}1===c&&l.push("one"),l.push("=".concat(c),Rs);for(var f=0;f<l.length;f++){var p=l[f];if(p in s){var d=Ms(s[p],c),h=d.caseBody,v=d.numberValues;return o(h,Ps(Ps({},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=Cs(e),i=o.cases;return t in i?r(i[t],n):Ds in i?r(i[Ds],n):t}});function Us(){const t=Ve($a),e=Ve(qa),n=Ve(Va),r=Ve(Wa),o=(0,Ne.I4)((function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=t[n];return i?Ls.format(i,o):(r||console.warn(`Translation key: ${n} is missing in locale: ${e}`),null)}),[t,e,r]);return{t:o,locale:e,initialLocale:n}}const Fs=(0,U.kr)(null),zs=()=>{const t=(0,Ne.qp)(Fs);return{sendPolite:(0,Ne.I4)((e=>{e&&t({ariaLive:Sn,messageText:e})}),[t]),sendAssertive:(0,Ne.I4)((e=>{e&&t({ariaLive:xn,messageText:e})}),[t])}},Bs=To((t=>{let{interrupt:e}=t;return e}),(t=>{let{error:e}=t;return e})),Hs=To(Bs,(t=>Boolean(t)));function $s(){const{t:t}=Us(),e=Ve(Bs),n=Ve(Hs),r=(0,Ne.Ye)((()=>{if(!n)return{title:void 0,message:void 0,srText:void 0,buttonText:void 0,originalError:void 0};const{langKey:r,action:o}=e,i=t(`${r}.title`),a=t(`${r}.message`),s=t(`${r}.srText`),c=t(`${r}.buttonText`);return W()(W()(W()(W()({},r?{title:i,message:a,srText:s}:{}),o?{action:o}:{}),o&&r?{buttonText:c}:{}),{originalError:e})}),[n,e,t]);return{hasError:n,meta:r,error:e}}var Vs=()=>{const t=Uo(),{t:e}=Us(),{isInline:n,isWindow:r,isApp:o}=Wo(),{isOpen:i,isVisible:a}=us(),s=Ve(Ko),c=Qe(),l=(0,Ne.sO)(null),{start:u,connect:f,apiConfigReady:p,apiConnected:d}=gs(),h=vs(),v=(0,Ne.sO)(!1),{sendAssertive:y}=zs();!function(){const{meta:{originalError:t,action:e}}=$s(),n=gs(),r="SeamlySessionExpiredError"===(null==t?void 0:t.name);(0,Ne.d4)((()=>{r&&n[e]&&n[e]()}),[e,n,r])}(),(0,Ne.d4)((()=>{a&&dt()((()=>{y(e("window.srTexts.onLoad"))}),500)}),[a,y,e]),(0,Ne.d4)((()=>{a&&y(e(i?"window.srTexts.onOpen":"window.srTexts.onClose"))}),[i,a,y,e]),(0,Ne.d4)((()=>(l.current=dt()((()=>{c(Yi(!0))}),500),()=>{clearTimeout(l.current)})),[c]),(0,Ne.d4)((()=>(t.length&&(l.current=dt()((()=>{c(Yi(!1))}),5e3)),()=>{clearTimeout(l.current)})),[t,c]),(0,Ne.d4)((()=>{p&&d||(v.current=!1)}),[p,d]);const m=(0,Ne.I4)((()=>function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}(void 0,void 0,void 0,(function*(){d||(v.current=!0,yield f()),(o||i||a&&n)&&u()}))),[d,f,o,n,i,a,u]);(0,Ne.d4)((()=>{!p||v.current||r&&!i||!(!n||a&&s)||(h()&&i&&(clearTimeout(l.current),c(Yi(!1))),m())}),[p,m,c,h,n,i,r,a,s])},qs=({children:t})=>(Vs(),z(U.HY,{children:t})),Ws=(0,U.kr)({}),Ys=n(2020),Gs=n(1791),Ks=n(2079);function Js(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Ks(t);for(r=0;r<i.length;r++)n=i[r],Gs(e).call(e,n)>=0||(o[n]=t[n]);return o}(t,e);if(Ys){var i=Ys(t);for(r=0;r<i.length;r++)n=i[r],Gs(e).call(e,n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}const Xs=()=>Po().appContainerClassNames,Qs=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},Zs=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new(H())((e=>{dt()(e,t)}))},tc=t=>{requestAnimationFrame((async()=>{await Zs(180);const e="string"==typeof t?document.getElementById(t):t;St(e)}))},ec=()=>{const{seamlyContainerElement:t}=Mo(),e=Qe();return[t,(0,Ne.I4)((t=>{e(Ji(t))}),[e])]},nc=t=>(0,Ne.I4)((()=>{tc(t)}),[t]),rc=()=>{const t=Ho();return nc(t)};var oc=n(2250),ic=n.n(oc),ac=(0,U.kr)({});function sc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=sc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=sc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const lc=()=>{const{showFileUpload:t,entryMeta:{options:e,optionsOverride:n},options:{features:{uploads:r}}}=Mo(),{allowedMimeTypes:o,maxSize:i}=n.upload||{},{enabled:a,enabledFromEntry:s}=r||{},{allowedMimeTypes:c,maxSize:l}=cc(cc(cc({},e.upload||{allowedMimeTypes:[],maxSize:0}),o?{allowedMimeTypes:o}:{}),i?{maxSize:i}:{});return{showFileUpload:t,accountAllowsUploads:!!r,serviceAllowsUploads:s||a,allowedMimeTypes:c,maxSize:l}},uc=()=>{const{currentUploads:t}=Mo(),e=Qe(),n=(0,Ne.qp)(ac);return{uploadFile:(0,Ne.I4)((t=>{n(t)}),[n]),clearUploads:(0,Ne.I4)((()=>{e(Ei())}),[e]),currentUploads:t,isUploading:M()(t).call(t,(t=>t.uploading)),isComplete:ic()(t).call(t,(t=>t.complete))}};function fc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function pc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=fc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=fc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const dc=()=>{var t,e;const{t:n}=Us(),{options:r}=Mo(),{panelActive:o,optionActive:i,userSelectedOptions:a,features:s}=r,{extraMenuItem:c,sendTranscript:l}=s,u={extraMenuItem:c,sendTranscript:l},f=t=>"extraMenuItem"===t?"Extra menu item":n(`options.${t}.menuTitle`),p=S()(t=C()(e=j()(u)).call(e,(t=>u[t]))).call(t,(t=>({name:t,title:f(t),available:u[t].enabled}))),d=c||l,h=Qe(),{get:v,set:y}=hs();return{allowOptionSelection:d,userSelectedOptions:a,features:s,menuOptions:p,initUserSelectedOptions:(0,Ne.I4)((()=>{const t=v("options")||{};h(oa(t))}),[v,h]),setUserSelectedOptions:(0,Ne.I4)((t=>{h(oa(t)),y("options",t)}),[y,h]),setUserSelectedOption:(0,Ne.I4)(((t,e)=>{const n=v("options")||{};y("options",pc(pc({},n),{},{[t]:e})),h(ra({option:t,value:e}))}),[h,v,y]),showOption:t=>{h(ia(t))},hideOption:()=>{h(Pi())},panelActive:o,optionActive:i}},hc=()=>{const{optionsButtonId:t}=Mo();return{id:t,focusButton:nc(t)}};var vc=(0,U.kr)(null),yc=()=>(0,Ne.qp)(vc);function mc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function gc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=mc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=mc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var bc=()=>{const t=Qe(),{idleDetachCountdown:e}=Mo(),{isOpen:n}=us(),r=(0,Ne.sO)({});r.current={hasCountdown:e.hasCountdown,isActive:e.isActive,remaining:e.remaining,wasStopped:e.wasStopped,isOpen:n};const{emitEvent:o,sendAction:i}=gs(),{t:a}=Us(),{sendAssertive:s,sendPolite:c}=zs(),l=(0,Ne.I4)((t=>{const{isOpen:e}=r.current;e&&s(t)}),[s]),u=(0,Ne.I4)((t=>{const{isOpen:e}=r.current;e&&c(t)}),[c]),f=(0,Ne.I4)((e=>{const n=(t=>Math.ceil(t/1e3))(e),r=gt(n);t(Ni({delaySeconds:n,delayTime:r})),o("idleTimer.start"),l(`${a("idleDetachWarning.countdownTitle")} ${a("idleDetachWarning.countdownText")} ${a("idleDetachWarning.countdownTimer",r)}`)}),[t,o,l,a]),p=(0,Ne.I4)(((e,n)=>{const{hasCountdown:s,wasStopped:c}=r.current;s&&(e||(n||i({type:hn}),l(a("idleDetachWarning.notifyTransferText"))),c||o("idleTimer.stop"),t(ji()))}),[t,i,o,l,a]),d=(0,Ne.I4)((()=>{const{remaining:e}=r.current;if(e<=0)return;const n=e-1;n%10==0&&l(`${a("idleDetachWarning.countdownText")} ${a("idleDetachWarning.countdownTimer",gt(n))}`),t(ki())}),[t,l,a]),h=(0,Ne.I4)((()=>{const{isActive:e,remaining:n}=r.current;e&&(t(aa()),n&&(o("idleTimer.stop"),u(a("idleDetachWarning.srCountDownStoppedText"))))}),[t,o,u,a]);return gc(gc({},e),{},{initCountdown:f,endCountdown:p,decrementCountdown:d,stopCountdown:h})},_c=()=>{const t=Qe(),e=Mo().resumeConversationPrompt,{sendAction:n}=gs(),{t:r}=Us(),{sendAssertive:o}=zs();return{continueChat:()=>{n({type:vn,body:{type:"resume_conversation_prompt"}}),t(Ii())},hasPrompt:e,restartChat:()=>{o(r("resumeConversationPrompt.srNotifyRestartText")),n({type:hn}),t(Ii())}}};const wc=()=>{const[t]=(0,Ne.eJ)((()=>kt()));return t},xc=t=>{const e=(0,Ne.sO)(null);e.current=t;const n="function"==typeof t;return(0,Ne.Ye)((()=>n?function(){return e.current(...arguments)}:void 0),[n])},Sc=(t,e)=>{const n=ds();(0,Ne.d4)((()=>{if(n.connectionInfo&&n.conversation?.channel){const{channel:r}=n.conversation;r.onMessage=(n,r)=>(e&&!e({type:n,payload:r})||t({type:n,payload:r}),r)}}),[t,e,n.connectionInfo,n.conversation])};function Oc(){const{sendAction:t}=gs(),e=Qe(),n=(0,Ne.I4)((function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn;t({type:mn,body:{enabled:!0,locale:n,source:r}}),e(Qa(n)),e(rs())}),[t,e]),r=(0,Ne.I4)((()=>{t({type:mn,body:{enabled:!1}}),e(Za())}),[t,e]),{languages:o,isActive:i,isAvailable:a,currentLocale:s}=Ve((t=>{let{translations:e}=t;return e}));return{languages:o,isActive:i,isAvailable:a,currentLocale:s,enableTranslations:n,disableTranslations:r}}function Cc(t){const{translatedBody:e,body:n}=t.payload?"participant"===t.type?{body:null===(r=t.payload)||void 0===r?void 0:r.participant.introduction,translatedBody:null===(i=null===(o=t.payload)||void 0===o?void 0:o.participant)||void 0===i?void 0:i.translatedIntroduction}:{body:t.payload.body,translatedBody:t.payload.translatedBody}:{body:void 0,translatedBody:void 0};var r,o,i;const a=!!e,s=Ve((t=>To((t=>t.translations.translatedEventGroups),(e=>{var n;return ic()(n=N()(e)).call(n,(e=>{var n;return!k()(e).call(e,null===(n=null==t?void 0:t.payload)||void 0===n?void 0:n.id)}))})))(t));return{body:a&&s?null==e?void 0:e.data:n,hasTranslation:a,isTranslated:s&&a,locale:null==e?void 0:e.locale}}function Ec(){const t=Ve((t=>{let{translations:e}=t;return e.containerId}));return{id:t,focusContainer:nc(t)}}function Tc(t){const{languages:e}=Oc();return(0,Ne.Ye)((()=>{var n;return null===(n=null==e?void 0:mi()(e).call(e,(e=>e.locale===t)))||void 0===n?void 0:n.nativeName}),[t,e])}var Ac=n(3356),jc=n.n(Ac);const Ic=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 S()(t=C()(e=jc()(n=S()(r=C()(o=S()(i=jc()(s).call(s)).call(i,(t=>{var e;return"object"==typeof t?S()(e=L()(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=>V()(t).call(t,et)>-1?t:[et,t].join("-"))).join(" ")};var kc=t=>{let{eventPayload:e}=t;const{t:n}=Us(),{fromClient:r,participant:o}=e,i=(t=>Mo().participantInfo.participants[t])(o)||{},{messages:a}=Po(),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(z("span",{className:Ic("message__avatar"),children:z("img",{src:i.avatar,className:Ic("avatar"),alt:""})})),l&&u.push(z("span",{className:Ic("message__author-name"),children:s})),u.length>0&&z("div",{className:Ic("message__author"),children:u})};const Pc=["showParticipant","event","type","modifiers","children","bodyProps","info"];function Nc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Nc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Nc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Mc=function(t){let{showParticipant:e=!0,event:n,type:r,modifiers:o,children:i,bodyProps:a={},info:s}=t,c=Js(t,Pc);const l=Qs(n),{hasTranslation:u,isTranslated:f,locale:p}=Cc(n);var d;(r&&l.push(`message--type-${r}`),o)&&("string"==typeof o&&(o=C()(d=o.split(" ")).call(d,(t=>t.length))),T()(o).call(o,(t=>{l.push(`message--${t}`)})));return f&&l.push("message--is-translated"),u&&l.push("message--has-translation"),f&&(a=Rc(Rc({},a),{},{lang:p})),z(U.HY,{children:z("div",Rc(Rc({className:Ic(l)},c),{},{children:[e&&z(kc,{eventPayload:n.payload}),z("div",Rc(Rc({className:Ic("message__body")},a),{},{children:i})),s&&z("div",{"aria-hidden":"true",className:Ic("message__info"),children:s})]}))})};function Dc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Dc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Dc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Uc=t=>{let{id:e,action:n,buttonText:r,description:o,hasFocus:i,image:a,title:s,isCarouselItem:c}=t;const l=(0,Ne.sO)(null),{sendMessage:u,sendAction:f,emitEvent:p}=gs(),d=wc(),h=(0,Ne.sO)(),v=n.type===En?"a":"button",y=(0,Ne.I4)((()=>p("action.click_card",{type:gn,originMessage:e,action:n})),[p,e,n]),m=(0,Ne.I4)((()=>{if(y(),"ask"===n.type)u({body:n.ask});else if("topic"===n.type){const{topic:t,fallbackMessage:e}=n;f({type:yn,body:{name:t,fallbackMessage:e}})}}),[u,n,f,y]),g=(0,Ne.Ye)((()=>n.type===En?{href:n.link,rel:"noopener noreferrer",target:n.newTab?"_blank":"_self",onClick:y}:{onClick:m}),[n,m,y]);return(0,Ne.d4)((()=>{c&&(i&&h.current?window.requestAnimationFrame((()=>l.current.focus())):l.current.blur()),h.current=!0}),[i,c]),z("div",{className:Ic("card__wrapper"),id:e,tabIndex:"-1",ref:l,children:[z("img",{className:Ic("card__image"),src:a,alt:""}),z("div",{className:Ic("card__content"),id:e,children:[s&&z("h2",{className:Ic("card__title"),children:s}),o&&z("div",{className:Ic("card__description"),dangerouslySetInnerHTML:{__html:o}}),z(v,Lc(Lc({tabIndex:c&&!i?"-1":void 0,className:Ic("button","button--primary"),"aria-describedby":d},g),{},{children:r}))]})]})};function Fc(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function zc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Fc(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Fc(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Bc=n(2320),Hc=n.n(Bc);function $c(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vc(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=$c(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=$c(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function qc(t){let{item:e,items:n,index:r,isActive:o}=t;const{t:i}=Us();return z("div",{className:Ic("carousel-item",`carousel-item--${e.type}`),role:"group","aria-roledescription":"slide","aria-label":i("carousel.slide.label",{index:r+1,total:n.length}),children:z(Uc,Vc(Vc({},e),{},{isCarouselItem:!0,hasFocus:o}))})}const Wc={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 version="1.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 32 32" enable-background="new 0 0 32 32" xml:space="preserve">\n<path fill="#4A48C1" d="M10,14.8c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S11.1,14.8,10,14.8z M15.9,14.8c1.1,0,2-0.9,2-2s-0.9-2-2-2\n\ts-2,0.9-2,2S14.8,14.8,15.9,14.8z M21.8,10.8c-1.1,0-2,0.9-2,2s0.9,2,2,2s2-0.9,2-2S22.9,10.8,21.8,10.8z M21.3,18.1H10.7\n\tC11.7,23.9,20.2,23.9,21.3,18.1z"/>\n</svg>\n',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',check32:'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="32px"\n height="32px"\n x="0px"\n y="0px"\n viewBox="0 0 32 32"\n>\n <path\n fill="currentColor"\n d="M22.9,9.3l-9.3,9.3l-3.2-3.2c-0.9-0.9-2.3-0.9-3.2,0l0,0c-0.9,0.9-0.9,2.3,0,3.2l3.2,3.2l0,0l1.6,1.6\n\tc0.9,0.9,2.3,0.9,3.2,0l1.6-1.6l9.3-9.3c0.9-0.9,0.9-2.3,0-3.2l0,0C25.2,8.4,23.7,8.4,22.9,9.3z"\n />\n</svg>\n',check16:'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="16px"\n height="16px"\n x="0px"\n y="0px"\n viewBox="0 0 16 16"\n>\n <path\n fill="currentColor"\n d="M11.6,4.3l-5,5L4.9,7.5C4.4,7,3.7,7,3.2,7.5l0,0C2.8,8,2.8,8.7,3.2,9.2l1.7,1.7l0,0l0.8,0.8\n\tc0.5,0.5,1.2,0.5,1.7,0l0.8-0.8l5-5c0.5-0.5,0.5-1.2,0-1.7l0,0C12.8,3.8,12.1,3.8,11.6,4.3z"\n />\n</svg>\n'};var Yc=t=>{let{name:e,size:n="32",className:r,alt:o}=t;const i=`${e}${n}`;return z(U.HY,{children:[z("div",{"aria-hidden":"true",className:r||Ic("icon"),dangerouslySetInnerHTML:{__html:Wc[i]}}),o&&z("span",{className:Ic("visually-hidden"),children:o})]})};function Gc(t){let{items:e,currentIndex:n,onChange:r,children:o}=t;const{t:i}=Us(),a=e.length;return z("div",{className:Ic("carousel-controls"),children:[z("button",{className:Ic("button","button--previous"),"aria-label":i("carousel.controls.previous"),onClick:()=>{r((n-1+a)%a)},children:z(Yc,{name:"arrowLeft",size:"16"})}),o,z("button",{className:Ic("button","button--next"),"aria-label":i("carousel.controls.next"),onClick:()=>{r((n+1)%a)},children:z(Yc,{name:"arrowRight",size:"16"})})]})}function Kc(t){let{items:e,currentIndex:n,onChange:r,getItemKey:o,getItemLabel:i}=t;const a=e.length,s=(0,Ne.I4)((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 z("div",{className:Ic("carousel-pagination__wrapper"),role:"group",children:z("ul",{className:Ic("carousel-pagination"),children:S()(e).call(e,((t,e)=>{const r=n===e;return z("li",{className:Ic("carousel-pagination__item",r?"is-active":void 0),children:z("button",{className:Ic("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-"))}))})})}const Jc=(t,e,n)=>`${n}${e}`,Xc=t=>t.label,Qc=t=>{let{target:e}=t;e.scrollLeft=0};function Zc(t){let{currentIndex:e,onChange:n,getItemKey:r=Jc,getItemLabel:o=Xc,items:i}=t;const a=wc(),s=i.length,[c,l]=(0,Ne.eJ)(Number(e||"0"));(0,Ne.d4)((()=>{l(Number(e||"0"))}),[l,e]);const u=(0,Ne.sO)([]);u.current=(0,Ne.Ye)((()=>{var t,e;return S()(t=Hc()(e=Array(s)).call(e,1)).call(t,(()=>(0,U.Vf)()))}),[s]);const f=(0,Ne.sO)(!0),p=(0,Ne.sO)();return p.current=n,(0,Ne.d4)((()=>{f.current?f.current=!1:p.current&&p.current(c)}),[c]),z("div",{className:Ic("carousel"),role:"group","aria-roledescription":"carousel",children:[z("div",{className:Ic("carousel__slides-wrapper"),onScroll:Qc,children:z("div",{id:a,className:Ic("carousel__slides"),style:{width:100*s+"%",left:-100*c+"%"},"aria-live":"polite","aria-atomic":"false",children:S()(i).call(i,((t,e)=>{const n=c===e;return z("div",{ref:u.current[e],className:Ic("carousel__slide",n?"is-active":void 0),"aria-hidden":n?void 0:"true",children:z(qc,{item:t,items:i,currentIndex:c,index:e,isActive:n})},r(t,e,"item-"))}))})}),z("div",{className:Ic("carousel__controls"),children:z(Gc,{currentIndex:c,items:i,onChange:l,controlId:a,children:z("div",{className:Ic("carousel__pagination"),children:z(Kc,{currentIndex:c,items:i,onChange:l,getItemKey:r,getItemLabel:o})})})})]})}const tl=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return`${n}${t.title}:${e}`},el=t=>t.title;const nl=["event","children"];function rl(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ol(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=rl(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=rl(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const il=t=>{const{payload:e}=t,[n,r]=(0,Ne.eJ)(!1),{sendAction:o,addMessageBubble:i,addDivider:a}=gs(),{activeServiceSessionId:s}=Mo().serviceInfo,c=Ve($o),{body:l}=Cc(t),{service:u}=e,f=(0,Ne.Ye)((()=>ol(ol({},t),{},{payload:ol(ol({},t.payload),{},{body:t.payload.body?.prompt,translatedBody:t.payload.translatedBody&&ol(ol({},t.payload.translatedBody),{},{data:t.payload.translatedBody.data.prompt})})})),[t]),p=l.chooseAgain&&s===u.serviceSessionId&&e.id!==c;return(0,Ne.d4)((()=>{r(e.id===c)}),[e,c]),{body:l,subEvent:f,showOptions:n,chooseAgain:p,onChoiceClickHandler:t=>{const n=kt();p&&a("new_topic",n),i(t.text,n),o({type:"pick_choice",originMessage:e.id,choice:{id:t.id,text:t.text,chooseAgain:p},transactionId:n}),r(!1)},onChooseAgainClickHandler:()=>{r((t=>!t))}}};const al=t=>`suggestions__item--${String(t).toLowerCase().replace(/[^a-z0-9_\\-]/,"")}`;var sl=t=>{let{id:e,categories:n=[],question:r,onClick:o,hasIcon:i}=t;const a=(0,Ne.Ye)((()=>["suggestions__item",...S()(n).call(n,al)]),[n]),s=(0,Ne.I4)((()=>{o&&o({id:e,question:r})}),[e,r,o]);return z("li",{className:Ic(a),children:z("button",{type:"button",onClick:s,className:Ic("button","button--primary"),children:[i&&z(Yc,{name:"chevronRight",size:"8"}),r]})})};function cl(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var ll=t=>{let{className:e,suggestions:n=[],onClickSuggestion:r,hasIcon:o=!0}=t;return z("ul",{className:Ic("suggestions__list",e),children:S()(n).call(n,(t=>z(sl,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=cl(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=cl(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({hasIcon:o,onClick:r},t),t.id)))})};const ul=["event"];function fl(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function pl(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=fl(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=fl(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var dl=t=>{const{sendAction:e}=gs();return n=>{n.target&&n.target.dataset.linkId&&e({type:"navigate",originMessage:t,link:{id:n.target.dataset.linkId,url:n.target.getAttribute("href")}})}};function hl(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function vl(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=hl(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=hl(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function yl(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),f=n?{dangerouslySetInnerHTML:{__html:n}}:{children:e};return z("div",{className:Ic("divider",l&&`divider--type-${l}`,r),children:[u&&z("span",{className:Ic("divider__graphic"),children:a?z(Yc,{name:a,size:s,className:c}):z("img",{src:o,className:Ic({icon:"icon"===i,avatar:"avatar"===i},c)})}),z("div",vl({className:Ic("divider__body")},f))]})}const ml={[On.new_topic]:"newtopic"};const gl=["event"];function bl(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}const _l={default:t=>{let{event:e}=t;const{t:n}=Us(),{subtype:r}=e.payload.body;return z(yl,{dividerType:ml[On[r]],iconName:On[r],children:z("p",{children:n(`dividerKeys.${On[r]}`)})})},[On.new_translation]:t=>{let{event:e}=t;const{t:n}=Us(),r=Uo(),{body:{restartButtonText:o,translationEnabled:i,translationLocale:a,text:s,title:c},id:l}=e.payload,{enableTranslations:u}=Oc(),f=Ve((t=>t.translations.translatedEventGroups)),p=Qe(),d=(0,Ne.I4)((()=>{f[l]?p(ts({events:r,id:l})):p(es({events:r,id:l}))}),[p,r,l,f]);return z(yl,{iconName:"newTranslation",dividerType:"newtranslation",children:[z("p",{className:Ic("divider__title"),children:c}),s&&z("p",{children:s}),i?z(U.HY,{children:z("button",{className:Ic("button","button--secondary"),onClick:d,children:n(f[l]?"translations.toggle.showTranslationsButtonText":"translations.toggle.hideTranslationsButtonText")})}):z("button",{className:Ic("button","button--secondary"),onClick:()=>{u(a)},children:o})]})}};const wl={month:"long",day:"numeric",year:"numeric"},xl={hour:"numeric",minute:"numeric"};var Sl=t=>{let{event:e}=t;const n=(()=>{const[t,e]=(0,Ne._Y)((t=>t+1),0);return(0,Ne.I4)((()=>{dt()((()=>{e()}))}),[])})(),{date:r,time:o,timeUntilMidnight:i,srText:a}=(t=>{const{t:e}=Us(),n=Po()?.context?.locale??[],r=new Date(t),o=new Date,i=new Date(o);i.setHours(24,0,0,0);const a=i-o,s=r.toString(),c=new Intl.DateTimeFormat(n,xl).format(r);let l=((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})(r,o);switch(l){case"today":l=e("dateTime.today");break;case"yesterday":l=e("dateTime.yesterday");break;default:l=new Intl.DateTimeFormat(n,wl).format(r)}return{date:l,srText:e("dateTime.srText",{date:l,time:c}),time:c,fullDateTime:s,timeUntilMidnight:a}})(mt(e.timeIndicator));return(0,Ne.d4)((()=>{const t=dt()((()=>{n()}),i);return()=>{clearTimeout(t)}}),[n,i]),z(yl,{dividerType:"time-indicator",children:[z("p",{className:Ic("divider__time"),"aria-hidden":"true",children:[z("span",{children:r}),z("span",{children:o})]}),z("p",{className:Ic("visually-hidden"),children:a})]})},Ol=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Cl=Ol.join(","),El="undefined"==typeof Element,Tl=El?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Al=!El&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},jl=function(t,e,n){var r=Array.prototype.slice.apply(t.querySelectorAll(Cl));return e&&Tl.call(t,Cl)&&r.unshift(t),r.filter(n)},Il=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({scopeParent:a,candidates:c})}else{Tl.call(a,Cl)&&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 f=t(!0===l?a.children:l.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:a,candidates:f})}else i.unshift.apply(i,a.children)}}return o},kl=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},Pl=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Nl=function(t){return"INPUT"===t.tagName},Rl=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height;return 0===n&&0===r},Ml=function(t,e){return!(e.disabled||function(t){return Nl(t)&&"hidden"===t.type}(e)||function(t,e){var n=e.displayCheck,r=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var o=Tl.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Tl.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Rl(t)}else{if("function"==typeof r){for(var i=t;t;){var a=t.parentElement,s=Al(t);if(a&&!a.shadowRoot&&!0===r(a))return Rl(t);t=t.assignedSlot?t.assignedSlot:a||s===t.ownerDocument?a:s.host}t=i}if(function(t){for(var e,n=Al(t).host,r=!!(null!==(e=n)&&void 0!==e&&e.ownerDocument.contains(n)||t.ownerDocument.contains(t));!r&&n;){var o;r=!(null===(o=n=Al(n).host)||void 0===o||!o.ownerDocument.contains(n))}return r}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}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!!Tl.call(e,"fieldset[disabled] *")||!r.contains(t)}return!0}e=e.parentElement}return!1}(e))},Dl=function(t,e){return!(function(t){return function(t){return Nl(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||Al(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)||kl(e)<0||!Ml(t,e))},Ll=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Ul=function t(e){var n=[],r=[];return e.forEach((function(e,o){var i=!!e.scopeParent,a=i?e.scopeParent:e,s=kl(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(Pl).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},Fl=function(t,e){var n;return n=(e=e||{}).getShadowRoot?Il([t],e.includeContainer,{filter:Dl.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Ll}):jl(t,e.includeContainer,Dl.bind(null,e)),Ul(n)},zl=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Tl.call(t,Cl)&&Dl(e,t)},Bl=Ol.concat("iframe").join(","),Hl=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Tl.call(t,Bl)&&Ml(e,t)};function $l(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 Vl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$l(Object(n),!0).forEach((function(e){ql(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ql(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Wl=function(t){return"Tab"===t.key||9===t.keyCode},Yl=function(t){return Wl(t)&&!t.shiftKey},Gl=function(t){return Wl(t)&&t.shiftKey},Kl=function(t){return setTimeout(t,0)},Jl=function(t,e){var n=-1;return t.every((function(t,r){return!e(t)||(n=r,!1)})),n},Xl=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},Ql=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target},Zl=[];function tu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function eu(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=tu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=tu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var nu=t=>{var e;let{children:n,onClose:r,"aria-label":o,"aria-labelledby":i,fallBackFocusRef:a}=t;const s=wc(),c=(0,Ne.sO)(null),l=(0,Ne.sO)(null),[u,f]=(0,Ne.eJ)(!1);return(0,Ne.d4)((()=>{return u&&(l.current=(t=c.current,e={initialFocus:a&&a.current?a.current:null},r=(null==e?void 0:e.document)||document,o=(null==e?void 0:e.trapStack)||Zl,i=Vl({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Yl,isKeyBackward:Gl},e),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},f=function(t,e,n){return t&&void 0!==t[e]?t[e]:i[n||e]},p=function(t){return s.containerGroups.findIndex((function(e){var n=e.container,r=e.tabbableNodes;return n.contains(t)||r.find((function(e){return e===t}))}))},d=function(t){var e=i[t];if("function"==typeof e){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];e=e.apply(void 0,o)}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=d("initialFocus");if(!1===t)return!1;if(void 0===t)if(p(r.activeElement)>=0)t=r.activeElement;else{var e=s.tabbableGroups[0];t=e&&e.firstTabbableNode||d("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},v=function(){if(s.containerGroups=s.containers.map((function(t){var e=Fl(t,i.tabbableOptions),n=function(t,e){return(e=e||{}).getShadowRoot?Il([t],e.includeContainer,{filter:Ml.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):jl(t,e.includeContainer,Ml.bind(null,e))}(t,i.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 zl(t,i.tabbableOptions)})):n.slice(0,r).reverse().find((function(t){return zl(t,i.tabbableOptions)}))}}})),s.tabbableGroups=s.containerGroups.filter((function(t){return t.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},y=function t(e){!1!==e&&e!==r.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!i.preventScroll}),s.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(h()))},m=function(t){var e=d("setReturnFocus",t);return e||!1!==e&&t},g=function(t){var e=Ql(t);p(e)>=0||(Xl(i.clickOutsideDeactivates,t)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Hl(e,i.tabbableOptions)}):Xl(i.allowOutsideClick,t)||t.preventDefault())},b=function(t){var e=Ql(t),n=p(e)>=0;n||e instanceof Document?n&&(s.mostRecentlyFocusedNode=e):(t.stopImmediatePropagation(),y(s.mostRecentlyFocusedNode||h()))},_=function(t){if(("Escape"===(e=t).key||"Esc"===e.key||27===e.keyCode)&&!1!==Xl(i.escapeDeactivates,t))return t.preventDefault(),void n.deactivate();var e;(i.isKeyForward(t)||i.isKeyBackward(t))&&function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ql(t);v();var r=null;if(s.tabbableGroups.length>0){var o=p(n),a=o>=0?s.containerGroups[o]:void 0;if(o<0)r=e?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(e){var c=Jl(s.tabbableGroups,(function(t){var e=t.firstTabbableNode;return n===e}));if(c<0&&(a.container===n||Hl(n,i.tabbableOptions)&&!zl(n,i.tabbableOptions)&&!a.nextTabbableNode(n,!1))&&(c=o),c>=0){var l=0===c?s.tabbableGroups.length-1:c-1;r=s.tabbableGroups[l].lastTabbableNode}else Wl(t)||(r=a.nextTabbableNode(n,!1))}else{var u=Jl(s.tabbableGroups,(function(t){var e=t.lastTabbableNode;return n===e}));if(u<0&&(a.container===n||Hl(n,i.tabbableOptions)&&!zl(n,i.tabbableOptions)&&!a.nextTabbableNode(n))&&(u=o),u>=0){var f=u===s.tabbableGroups.length-1?0:u+1;r=s.tabbableGroups[f].firstTabbableNode}else Wl(t)||(r=a.nextTabbableNode(n))}}else r=d("fallbackFocus");r&&(Wl(t)&&t.preventDefault(),y(r))}(t,i.isKeyBackward(t))},w=function(t){var e=Ql(t);p(e)>=0||Xl(i.clickOutsideDeactivates,t)||Xl(i.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},x=function(){if(s.active)return function(t,e){if(t.length>0){var n=t[t.length-1];n!==e&&n.pause()}var r=t.indexOf(e);-1===r||t.splice(r,1),t.push(e)}(o,n),s.delayInitialFocusTimer=i.delayInitialFocus?Kl((function(){y(h())})):y(h()),r.addEventListener("focusin",b,!0),r.addEventListener("mousedown",g,{capture:!0,passive:!1}),r.addEventListener("touchstart",g,{capture:!0,passive:!1}),r.addEventListener("click",w,{capture:!0,passive:!1}),r.addEventListener("keydown",_,{capture:!0,passive:!1}),n},S=function(){if(s.active)return r.removeEventListener("focusin",b,!0),r.removeEventListener("mousedown",g,!0),r.removeEventListener("touchstart",g,!0),r.removeEventListener("click",w,!0),r.removeEventListener("keydown",_,!0),n},n={get active(){return s.active},get paused(){return s.paused},activate:function(t){if(s.active)return this;var e=f(t,"onActivate"),n=f(t,"onPostActivate"),o=f(t,"checkCanFocusTrap");o||v(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=r.activeElement,e&&e();var i=function(){o&&v(),x(),n&&n()};return o?(o(s.containers.concat()).then(i,i),this):(i(),this)},deactivate:function(t){if(!s.active)return this;var e=Vl({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},t);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,S(),s.active=!1,s.paused=!1,function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1),t.length>0&&t[t.length-1].unpause()}(o,n);var r=f(e,"onDeactivate"),a=f(e,"onPostDeactivate"),c=f(e,"checkCanReturnFocus"),l=f(e,"returnFocus","returnFocusOnDeactivate");r&&r();var u=function(){Kl((function(){l&&y(m(s.nodeFocusedBeforeActivation)),a&&a()}))};return l&&c?(c(m(s.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(){return s.paused||!s.active||(s.paused=!0,S()),this},unpause:function(){return s.paused&&s.active?(s.paused=!1,v(),x(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return s.containers=e.map((function(t){return"string"==typeof t?r.querySelector(t):t})),s.active&&v(),this}},n.updateContainerElements(t),n),l.current.activate()),()=>{l.current&&l.current.deactivate()};var t,e,n,r,o,i,s,f,p,d,h,v,y,m,g,b,_,w,x,S}),[u,a]),(0,Ne.d4)((()=>{const t=(()=>{var t;const e=[],n=[];return T()(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"))})),()=>{T()(n).call(n,((t,n)=>{const r=e[n];null===r?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",r)}))}})();return()=>{t()}}),[u]),(0,Ne.d4)((()=>{u&&c.current.addEventListener("keydown",(t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&r()}))}),[u,r]),(0,Ne.bt)((()=>{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,f(!0),()=>{c.current&&(t.removeChild(c.current),c.current=null)}}),[o,i,s]),"function"==typeof n?n({onClose:r,modalRenderFn:t=>c.current&&(0,U.sY)(t,c.current)}):c.current&&(0,U.sY)(S()(e=(0,U.bR)(n)).call(e,(t=>(t.props=eu(eu({},t.props),{},{onClose:r}),t))),c.current)},ru=t=>{let{url:e,description:n,onClose:r}=t;const{zIndex:o,layoutMode:i,namespace:a}=Po(),s=yc(),c=Xs(),l=(0,Ne.sO)(null),{t:u}=Us(),f=["modal",`app--layout-${i}`,`namespace--${a}`,...c],p=t=>{t.stopPropagation()},d=()=>{r()},h=o?{zIndex:o+1}:void 0;return z(nu,{onClose:r,"aria-label":u("lightbox.heading"),fallBackFocusRef:l,children:t=>{let{onClose:r,modalRenderFn:o}=t;return o((t=>z("div",{className:Ic(f),onClick:d,style:h,children:z("div",{className:Ic("modal__float"),tabIndex:"-1",onMouseDown:s,onKeyDown:s,onTouchStart:s,onMouseMove:s,onWheel:s,onPointerDown:s,onPointerMove:s,ref:l,children:[z("div",{className:Ic("modal__inner"),onClick:p,children:z("img",{className:Ic("modal__image"),src:e,alt:n})}),z("button",{type:"button",className:Ic("modal__close"),onClick:t,children:[z(Yc,{name:"close",size:"16"}),u("lightbox.closeLabel")]})]})}))(r))}})},ou=t=>{let{description:e,url:n}=t;const{t:r}=Us(),[o,i]=(0,Ne.eJ)(!1);return z(U.HY,{children:[z("button",{type:"button",className:Ic("modal__enlarge"),onClick:()=>{i(!0)},children:[r("message.image.srTextEnlargeButtonLabel",{description:e}),z(Yc,{name:"enlarge",size:"32"})]}),o&&z(ru,{url:n,description:e,onClose:()=>{i(!1)}})]})};const iu=["event","descriptorId"];function au(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=au(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=au(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const cu=["event"];function lu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function uu(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=lu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=lu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const fu=["event"];function pu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function du(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=pu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=pu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var hu=t=>{let{event:e}=t,n=Js(t,fu);const{body:r}=Cc(e),o=dl(e.payload.id),i=(0,Ne.Ye)((()=>e.payload.optimisticallyInjected?{children:z("p",{children:r.text})}:{bodyProps:{dangerouslySetInnerHTML:{__html:r.text}}}),[r,e]);return z(Mc,du(du({type:"text",event:e,onClick:o},n),i))};const vu=["event"];function yu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function mu(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=yu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=yu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const gu=["event"];function bu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=bu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=bu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const wu=t=>{let{children:e,url:n,target:r}=t;return n?z("a",{href:n,download:!0,target:r||void 0,className:Ic(["download","download-link"]),children:e}):z("span",{className:Ic("download"),children:e})};const xu=["event","descriptorId"];function Su(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ou(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Su(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Su(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}function Cu(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Eu(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Cu(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Cu(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Tu={message:{choice_prompt:t=>{var e,n;let{event:r,children:o}=t,i=Js(t,nl);const{t:a}=Us(),s=wc(),{body:c,subEvent:l,showOptions:u,chooseAgain:f,onChoiceClickHandler:p,onChooseAgainClickHandler:d}=il(r);return z(U.HY,{children:[S()(e=(0,U.bR)(o)).call(e,(t=>(t.props=ol(ol({},t.props),{},{event:l,descriptorId:s,showTranslationToggle:!1}),t))),f&&z("button",{type:"button",className:Ic("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"),z(Yc,{name:"chevronDown",size:"8"})]}),u&&z(Mc,ol(ol({type:"choice-prompt",showParticipant:!1,event:r},i),{},{children:z("ul",{className:Ic("choice-prompt","choice-prompt--many"),children:S()(n=c.choices).call(n,(t=>z("li",{className:Ic("choice-prompt__item",{[`choice-prompt__item--${t.category}`]:t.category}),children:z("button",{type:"button",className:Ic("button","button--primary"),onClick:()=>{p(t)},children:t.text})},t.id)))})}))]})},text:hu,image:t=>{let{event:e,descriptorId:n}=t,r=Js(t,iu);const{body:o}=Cc(e),{description:i,url:a,isZoomable:s}=o,[c,l]=(0,Ne.eJ)(!1),u=Qe();return z(Mc,su(su({event:e,type:"image"},r),{},{children:[z("img",{src:a,id:n,alt:i,onLoad:()=>{u(Gi(e.payload.id)),l(!0)}}),s&&c&&z(ou,{description:i,url:a})]}))},splash:t=>{let{event:e}=t,n=Js(t,cu);const{payload:r}=e,{body:o}=Cc(e),i=dl(r.id);return z(Mc,uu(uu({type:"splash",event:e,onClick:i},n),{},{bodyProps:{dangerouslySetInnerHTML:{__html:o.text}}}))},video:t=>{let{event:e,descriptorId:n}=t,r=Js(t,xu);const{body:o}=Cc(e),{description:i,url:a}=o;return Qs(e).push("message--type-video"),z(Mc,Ou(Ou({event:e,type:"video"},r),{},{children:[z("div",{id:n,className:Ic("visually-hidden"),children:i}),z("iframe",{title:i,src:a,allow:"autoplay; encrypted-media",allowFullScreen:!0})]}))},upload:t=>{let{event:e}=t,n=Js(t,gu);const{t:r}=Us(),{body:o}=Cc(e),{fromClient:i}=e.payload,{filename:a,url:s}=o,c=(0,Ne.Ye)((()=>r(s?"fileUpload.srFileDownloadText":"fileUpload.srFileUploadedText",{fileName:a})),[s,a,r]);return z(Mc,_u(_u({event:e,type:"upload"},n),{},{children:z(wu,{url:s,target:i?void 0:"_blank",children:[z(Yc,{name:"download",size:"16"}),z("span",{"aria-hidden":"true",className:Ic("file-download"),children:a}),z("span",{className:Ic("visually-hidden"),children:c})]})}))},cta:t=>{let{event:e}=t;const{body:n}=Cc(e),r=dl(e.payload.id),{emitEvent:o}=gs(),i=wc(),a=(0,Ne.I4)((()=>o(`action.${gn}`,{type:gn,originMessage:e.payload.id,link:{url:n.buttonLink}})),[o,n,e]);return z(Mc,{type:"cta",event:e,children:[z("div",{className:Ic("cta__content"),id:i,dangerouslySetInnerHTML:{__html:n.description},onClick:r}),z("a",{className:Ic("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{body:n}=Cc(e),r=n.cards;return z(Mc,{event:e,modifiers:"type-carousel",children:z(Zc,{items:r,ItemComponent:qc,getItemKey:tl,getItemLabel:el})})},card:t=>{let{event:e}=t;const{body:n}=Cc(e),r=wc();return z(Mc,{type:"card",event:e,children:z(Uc,zc({id:r},n))})}},info:{text:hu,divider:t=>{let{event:e}=t,n=Js(t,gl);return z(_l[On[e.payload.body.subtype]]||_l.default,function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=bl(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=bl(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({event:e},n))},translation:t=>{let{event:e}=t,n=Js(t,vu);const{t:r}=Us(),{body:o}=Cc(e);return z(Mc,mu(mu({type:"text",event:e},n),{},{children:r(o.key.join("."),o.variables)}))},timeIndicator:Sl},participant:{participant:t=>{let{event:e}=t;const{participant:n}=e.payload,{body:r}=Cc(e);return r?z(yl,{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=Js(t,ul);const[r,o]=(0,Ne.eJ)(!0),i=Qe(),a=ni(),{sendAction:s,addMessageBubble:c}=gs(),{suggestions:l,payload:u}=(t=>{const{payload:e}=t,{body:n}=Cc(t);return{suggestions:n,payload:e}})(e),{showSuggestions:f}=Po(),p=Uo(),{t:d}=Us(),h=d("suggestions.headingText"),v=d("suggestions.footerText"),y=(0,Ne.Ye)((()=>M()(p).call(p,(t=>{let{payload:e}=t;return e?.transactionLast}))),[p]),m=(0,Ne.I4)((t=>{let{id:e,question:n}=t;o(!1),i(ii(!0)),s({type:fn,originMessage:u.id,body:{type:"faqclick",body:{faqId:e,faqQuestion:n}}}),c(n)}),[i,s,u.id,c]);return r&&!a&&y&&f?z("div",{className:Ic("suggestions","suggestions--conversation"),children:[h&&z("p",{className:Ic("suggestions__heading"),children:h}),z(Mc,pl(pl({type:"suggestions",showParticipant:!1,event:e},n),{},{children:[z(ll,{className:"suggestions__list--conversation",onClickSuggestion:m,suggestions:l}),v&&z("p",{className:Ic("suggestions__footer"),children:v})]}))]}):null}}};var Au=t=>{let{children:e}=t;const{customComponents:n}=Po(),r=(0,Ne.Ye)((()=>{var t;return Q()(t=j()(Tu)).call(t,((t,e)=>Eu(Eu({},t),{},{[e]:Eu(Eu({},Tu[e]),n?n[e]:{})})),{fallback:hu})}),[n]);return z(Ws.Provider,{value:r,children:e})},ju=({children:t})=>{const{isMinimized:e}=us(),n=(0,Ne.sO)(0),{sendAction:r}=gs(),{hasCountdown:o,isActive:i,stopCountdown:a}=bc(),s=(0,Ne.I4)((()=>{if(e)return;const t=(new Date).getTime(),s=()=>{r({type:"interactivity_update"}),n.current=t};o&&i&&(s(),a()),t-n.current>15e3&&s()}),[r,o,i,a,e]);return z("div",Object.assign({className:Ic("activity-monitor"),tabIndex:-1,onMouseDown:s,onKeyUp:s,onTouchStart:s,onMouseMove:s,onWheel:s,onPointerDown:s,onPointerMove:s},{children:z(vc.Provider,Object.assign({value:s},{children:t}))}))};const Iu=["text","choice_prompt","image","video"];var ku=()=>{const t=ds(),e=(0,Ne.sO)(),n=(0,Ne.sO)(),r=Qe(),o=Uo(),i=(0,Ne.qp)(rn),a=(0,Ne.sO)(null),{initCountdown:c,endCountdown:l}=bc(),{emitEvent:u}=gs();return(0,Ne.d4)((()=>{if(t.connectionInfo&&t.conversation.socket){const{socket:e}=t.conversation;e.onError((t=>{const e=new ga(t);r(li({name:e.name,message:e.message,langKey:e.langKey,originalEvent:e.originalEvent,originalError:e.originalError})),r(Ti())})),e.onOpen((()=>{r(ui())}))}}),[t,t.connectionInfo,t.conversation.socket,r]),(0,Ne.d4)((()=>{if(t.connectionInfo&&t.conversation.channel){const{channel:e}=t.conversation;return()=>{null==e||e.leave()}}return()=>{}}),[t,t.connectionInfo,t.conversation]),(0,Ne.d4)((()=>{t.conversation.onConnection((t=>{let{currentState:e}=t;if("join_channel_erred"===e){const t=new lt;r(li({name:t.name,message:t.message,langKey:t.langKey,originalEvent:t.originalEvent,originalError:t.originalError,action:t.action}))}}))}),[t.conversation,r]),(0,Ne.d4)((()=>{t.connectionInfo&&t.conversation.onConnection((e=>{let{connected:n}=e;if(!n)return!1;const{channel:o}=t.conversation,a=t=>{const{payload:e}=t;if(!e||!e.participant)return;const{fromClient:n,participant:o}=e;!n&&"string"!=typeof o&&(null==o?void 0:o.name)&&r($i(o.name)),r(Ki({participant:o,fromClient:n})),"string"!=typeof o&&o.introduction&&r(Ci(W()(W()({},t),{payload:W()(W()({},e),{type:"participant"})})))};return o.onMessage=(t,e)=>{const n={type:t,payload:e};switch(t){case"ui":switch(e.state&&e.state.hasOwnProperty("loading")&&r(Yi(e.state.loading)),e.type){case"idle_detach_countdown":c(e.body.duration);break;case"idle_detach_countdown_elapsed":l(void 0,!0);break;case"resume_conversation_prompt":r(Ri());break;case"translation_proposal":r(ns(e.body));break;case"user_first_response":r(ii(!0)),i.emit("system.userFirstResponse",e.body)}break;case"message":switch(a(e),e.type){case"text":case"choice_prompt":case"splash":case"image":case"upload":case"video":case"cta":case"custom":case"carousel":case"card":e.service&&e.service.serviceSessionId&&r(Ui(e.service.serviceSessionId)),r(Ci(n))}break;case"participant":a(n);break;case"service_data":e.persist&&r(Xi(e));break;case"ack":r(Oi(n));break;case"system":if("service_changed"===e.type){const{serviceSettings:t}=e,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&V()(e).call(e,r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof s()){var o=0;for(r=s()(t);o<r.length;o++)V()(e).call(e,r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(e,["serviceSettings"]),{entry:o}=t,{upload:i}=o.options;r(Bi({key:Cn,enabled:!(!i||!i.enabled)})),r(Qi(o)),e.serviceSessionId&&r(Ui(e.serviceSessionId)),u("system.serviceChanged",n)}break;case"info":"divider"!==e.type&&"text"!==e.type&&"translation"!==e.type||r(Ci(n));break;case"error":switch(e.type){case"find_conversation_erred":const t=new ut(n);r(li({name:t.name,action:t.action,message:t.message,originalEvent:t.originalEvent,originalError:t.originalError}));break;case"conversation_erred":const e=new lt(n);r(li({name:e.name,message:e.message,langKey:e.langKey,originalEvent:e.originalEvent,originalError:e.originalError,action:e.action}))}}return e},!0}))}),[t,t.connectionInfo,t.conversation.channel,r,u,l,i,c]),(0,Ne.d4)((()=>{t.connectionInfo&&t.conversation.onConnection((e=>{let{connected:r}=e;if(!r)return!1;const{channel:o}=t.conversation;return n.current&&(null==o||o.off("message",n.current)),n.current=o.on("message",(t=>k()(Iu).call(Iu,t.type)?(t.id!==a.current&&i.emit("message",t),a.current=t.id,t):t)),!0}))}),[t,t.connectionInfo,t.conversation.channel,i]),(0,Ne.d4)((()=>{t.connectionInfo&&t.conversation.onConnection((n=>{let{connected:i}=n;var a;return!!i&&(e.current&&(null===(a=t.conversation.channel)||void 0===a||a.off("sync",e.current)),e.current=t.conversation.channel.on("sync",(e=>{var n;const i=o[o.length-1],a=null===(n=null==e?void 0:e.lastEvent)||void 0===n?void 0:n.id;return i&&a===i.payload.id?e:t.getConversation().then((t=>{t&&r(qi(t))})).catch((t=>{r(li({name:null==t?void 0:t.name,message:null==t?void 0:t.message,langKey:null==t?void 0:t.langKey,action:null==t?void 0:t.action,originalEvent:null==t?void 0:t.originalEvent,originalError:null==t?void 0:t.originalError}))}))})),!0)}))}),[t,t.connectionInfo,t.conversation.channel,o,r]),null},Pu=t=>{let{children:e}=t;const{t:n}=Us(),r=Qe(),o=ds(),{addUploadBubble:i}=gs();return z(ac.Provider,{value:t=>{const e=kt(),a=o.uploadFile(t,(t=>{r(ea({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(Zi(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(ta({fileId:e,errorText:o}))}));r(Mi({fileId:e,fileName:t.name,uploadHandle:a}))},children:e})},Nu=n(7293),Ru=n.n(Nu),Mu=()=>{const{hasCountdown:t,isActive:e,remaining:n,decrementCountdown:r}=bc();return((t,e)=>{const n=(0,Ne.sO)(t);(0,Ne.d4)((()=>{n.current=t}),[t]),(0,Ne.d4)((()=>{if(null!==e){const t=Ru()((function(){n.current()}),e);return()=>clearInterval(t)}}),[e])})((()=>{r()}),t&&e&&n>0?1e3:null),null},Du=()=>{const{initUserSelectedOptions:t}=dc(),e=(0,Ne.sO)(!1),n=Po();return(0,Ne.d4)((()=>{n.api&&!e.current&&(e.current=!0,t())}),[t,n]),null};function Lu(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=(0,Ne.qp)(rn),o=(0,Ne.sO)();o.current=e,(0,Ne.d4)((()=>{if(!ic()(n).call(n,Boolean))return;const e=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return o.current?.(...e)};return r.emit("function.register",t,e),()=>r.emit("function.unregister",t,e)}),[r,t,...n])}var Uu=()=>{const t=Po(),{sendMessage:e,sendContext:n,sendAction:r}=gs(),o=Qe(),{setVisibility:i,visible:a}=us(),s=(0,Ne.sO)(a),c=(0,Ne.qp)(rn),l=ds(),u=Bo(),f=(0,Ne.sO)(null),p=(0,Ne.sO)(null),{isInline:d,isResolving:h}=Wo(),v=Ve(Hs),y=(()=>{const{get:t}=hs();return t?t("conversationUrl"):null})(),m=(0,Ne.sO)(null),g=yc(),{enableTranslations:b,disableTranslations:_}=Oc();return(0,Ne.d4)((()=>{s.current=a}),[a]),Lu("askText",(t=>{e({body:t})}),[l?.send]),Lu("setVariables",(t=>{n({variables:t})}),[l?.send]),Lu("getVisibility",(t=>{t?t(s.current):console.warn("A callback function is required for the getVisibility action.")})),Lu("setVisibility",(t=>{var e;k()(e=N()(Io)).call(e,t)?(g(),i(t)):console.error('Requested visibility states should be "open", "minimized" ,"hidden" or null.')}),[t?.api]),Lu("sendCustomAction",((t,e)=>{r({type:"custom",body:{type:t,body:e}})}),[l.send]),Lu("setTopic",(t=>{let{name:e,fallbackMessage:n,userTriggered:i}=t;i&&o(va({showSuggestions:!1})),e&&n?r({type:yn,body:{name:e,fallbackMessage:n,participant:i?rt:void 0}}):console.warn("A name and a fallbackMessage are required for the setTopic action.")}),[l.send]),Lu("setTranslation",(t=>{let{enabled:e,locale:n}=t;e?b(n,"window_api"):_()}),[l.send]),(0,Ne.d4)((()=>{h||v||(m.current&&m.current!==y&&c.emit("unreadMessageCount",u),a===Io.open&&a!==p.current&&0!==f.current&&c.emit("unreadMessageCount",0),a!==Io.open&&u!==f.current&&c.emit("unreadMessageCount",u),p.current=a,f.current=u,m.current=y)}),[u,a,c,d,h,v,y]),null},Fu=t=>{let{children:e}=t;const n=(0,Ne.qp)(rn),[r,o]=(0,Ne.eJ)({}),i=(0,Ne.sO)(!0),a=(0,Ne.I4)((t=>{i.current&&(o(t),n.emit("aria-live",t))}),[o,n]);(0,Ne.d4)((()=>{let t=null;return r&&r.messageText&&(t=dt()((()=>{a({}),clearTimeout(t)}),500)),()=>{clearTimeout(t)}}),[r,a]),(0,Ne.d4)((()=>()=>{i.current=!1}),[]);const{ariaLive:s,messageText:c}=r;return z(Fs.Provider,{value:a,children:[e,z("div",{className:Ic("app__live-container"),children:[z("div",{"aria-live":"assertive","aria-atomic":"true",className:Ic("visually-hidden"),children:s===xn?c:null}),z("div",{"aria-live":"polite","aria-atomic":"true",className:Ic("visually-hidden"),children:s===Sn?c:null})]})]})},zu=()=>{const{t:t}=Us(),e=Uo(),n=(0,Ne.sO)(0),r=(0,Ne.sO)(0),o=Mo().historyLoaded,{sendPolite:i}=zs(),{isOpen:a}=us(),s=(0,Ne.sO)(null),c=(0,Ne.sO)(null),l=(0,Ne.Ye)((()=>yt((e=>{const n=C()(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(0,Ne.d4)((()=>{e.length>n.current&&(a&&(c.current=l(e)),n.current=e.length)}),[e,l,a]),(0,Ne.d4)((()=>{s.current&&!a&&c.current&&(c.current(!0),c.current=null)}),[a]),(0,Ne.d4)((()=>{o&&dt()((()=>{i(t("window.srTexts.onHistoryLoad"))}),500)}),[o,t,i]),null},Bu=()=>{const{t:t}=Us(),{isOpen:e,isVisible:n}=us(),r=Bo(),{sendPolite:o}=zs(),i=(0,Ne.Ye)((()=>yt(o,2e3)),[o]),a=(0,Ne.sO)(null),s=(0,Ne.sO)(null);return(0,Ne.d4)((()=>{a.current!==n&&!n&&s.current&&s.current(),0!==r&&!e&&n&&(s.current=i(t("message.srTextUnreadCount",{unreadCount:r}))),a.current=n}),[r,e,n,i,t]),null},Hu=({store:t,children:e,eventBus:n,api:r})=>((0,Ne.cO)((e=>{t.dispatch(_a(e))})),z(Ge,Object.assign({store:t},{children:z(rn.Provider,Object.assign({value:n},{children:z(nn.Provider,Object.assign({value:r},{children:z(Fu,{children:z(qs,{children:z(Au,{children:[z(Du,{}),z(ku,{}),z(Bu,{}),z(zu,{}),z(Mu,{}),z(ju,{children:[z(Uu,{}),z(Pu,{children:e})]})]})})})}))}))}))),$u=()=>{const{t:t}=Us(),{showDisclaimer:e}=Po();return e&&z("div",{className:Ic("disclaimer"),tabIndex:"0",children:[z("h2",{className:Ic("disclaimer__title"),children:t("disclaimer.title")}),z("div",{className:Ic("disclaimer__message"),dangerouslySetInnerHTML:{__html:t("disclaimer.content")}})]})},Vu=(0,U.kr)(null),qu=t=>{const e=(0,Ne.qp)(Ws),n=e[t.type];let r=n[t.payload.type],o=null;return"choice_prompt"===t.payload.type&&(o=n[t.payload.body.prompt.type]),"participant"===t.type&&(r=n[t.type]),r&&"function"!=typeof r&&(r=r[t.payload.body.type]),[r||e.fallback,o]},Wu=({event:t,newParticipant:e})=>{const{eventRefs:n,unreadIds:r}=(0,De.useContext)(Vu),{sendAction:o}=gs(),i=n[t.payload.id],{containerRef:a,isVisible:s}=fs({containerRef:i,freezeOnceVisible:!0}),c=Qe(),[l,u]=qu(t);if((0,De.useEffect)((()=>{if(s&&(null==r?void 0:r.includes(t.payload.id))){const e=r.reduce(((e,n)=>e.includes(t.payload.id)?e:e.concat(n)),[]);c(zi(e)),o({type:dn,events:e})}}),[c,t.payload.id,s,o,r]),!l)return null;const f=["conversation__item"];return"info"===t.type?f.push("conversation__item--source-info"):t.payload.fromClient?f.push("conversation__item--source-user"):f.push("conversation__item--source-agent"),e&&f.push("conversation__item--new-participant"),z("li",Object.assign({className:Ic(f),ref:a},{children:[t.timeIndicator&&z(Sl,{event:t}),z(l,Object.assign({event:t},{children:z(u,{event:t})}))]}))},Yu=()=>{const{id:t}=Vo()||{};return z("li",{className:Ic("conversation__item","conversation__item--source-agent"),children:z("div",{className:Ic("message","message--source-agent","message--type-loading"),children:[z(kc,{eventPayload:{fromClient:!1,participant:t}}),z("div",{className:Ic("message__body"),children:z("span",{className:Ic("loader"),children:[z("span",{className:Ic("loader__part","one")}),z("span",{className:Ic("loader__part","two")}),z("span",{className:Ic("loader__part","three")}),z("span",{className:Ic("loader__part","four")})]})})]})})};const Gu=()=>{const t=Uo();let e=null;return z(U.HY,{children:t.map((t=>{const{type:n,payload:r}=t;let o=!1;if("participant"!==n&&"service_data"!==n){const{participant:n,fromClient:i}=r,a=i?"seamly-client-participant":n;"info"!==t.type&&e!==a&&(o=!0),e=a}return z(Wu,{event:t,newParticipant:o},t.payload.key||t.payload.id)}))})};var Ku=()=>{const{t:t}=Us(),e=Fo(),{isOpen:n}=us(),r=Ho(),o=rc();return z(U.HY,{children:[n&&z("a",Object.assign({className:Ic("skip-link"),href:`#${r}`,onClick:t=>{t.preventDefault(),o()}},{children:t("skiplinkText")})),z("div",Object.assign({className:Ic("chat__body")},{children:z("div",Object.assign({className:Ic("conversation__container")},{children:[z($u,{}),z("ol",Object.assign({className:Ic("conversation")},{children:[z(Au,{children:z(Gu,{})}),e&&z(Yu,{})]}))]}))}))]})},Ju=n(40),Xu=n.n(Ju);const Qu={visible:Ic("transition--visible"),in:Ic("transition--in"),visuallyHidden:Ic("visually-hidden")},Zu=N()(Qu),tf={notRendered:"notRendered",rendered:"rendered",visuallyHidden:"visuallyHidden"};var ef=t=>{var e;let{children:n,isActive:r,timeout:o=ot,transitionStartState:i=tf.notRendered,onInTransitionComplete:a=(()=>{}),onOutTransitionComplete:s=(()=>{})}=t;const c=(0,Ne.sO)(!1),l=Xu()(o,10),u=xc(a),f=xc(s),p=i===tf.visuallyHidden,[d,h]=(0,Ne.eJ)((()=>p?[Qu.visuallyHidden]:[])),v="notRendered"!==i||d.length>0;return(0,Ne.d4)((()=>{let t=null,e=null;return c.current&&!r&&(h([Qu.visible]),t=dt()((()=>{h([...p?[Qu.visuallyHidden]:[]]),f&&(e=requestAnimationFrame((()=>{f()})))}),l)),!c.current&&r&&(h([Qu.visible]),e=requestAnimationFrame((()=>{e=requestAnimationFrame((()=>{h([Qu.visible,Qu.in]),u&&(t=dt()((()=>{u()}),l))}))}))),c.current=r,()=>{clearTimeout(t),cancelAnimationFrame(e)}}),[r,p,l,u,f]),z(U.HY,{children:v&&S()(e=(0,U.bR)(n)).call(e,(t=>{var e;const{className:n=""}=t.props,r=C()(e=n.split(" ")).call(e,(t=>!k()(Zu).call(Zu,t)));return(0,U.Tm)(t,{className:[...r,...d].join(" ")})}))})},nf=t=>{let{isAside:e=!1}=t;const{isInline:n}=Wo(),{t:r}=Us(),{sendAction:o,addMessageBubble:i}=gs(),{isOpen:a,setVisibility:s}=us(),{showSuggestions:c}=Po(),l=wc(),u=rc(),f=(0,Ne.sO)(null),{sendPolite:p}=zs(),d=Ve(Hs),{hasCountdown:h,endCountdown:v}=bc(),{hasPrompt:y,continueChat:m}=_c(),g=ni(),b=qo("suggestion"),{body:_}=Cc({payload:b}),w=(0,Ne.Ye)((()=>b&&!d?_:[]),[b,d,_]),x=(0,Ne.sO)(null),S=(0,Ne.sO)(!1),O=(0,Ne.sO)([]),C=!!w.length,E=n?(g||a)&&!e:g,T=(0,Ne.sO)(E),A=C&&!E&&c,j=C?w:O.current;O.current=j;const I=(0,Ne.Ye)((()=>{const t=["suggestions"];return e&&t.push("suggestions--aside"),Ic(t)}),[e]),k=(0,Ne.I4)((t=>{let{id:e,question:n}=t;h&&v(!0),y&&m(),o({type:fn,originMessage:b.id,body:{type:"faqclick",body:{faqId:e,faqQuestion:n}}}),i(n),a||s(Io.open),u()}),[i,m,v,u,h,y,b,o,s,a]);(0,Ne.d4)((()=>{if(x.current!==w&&!E){if(C){const t=S.current?r("suggestions.srUpdatedText"):r("suggestions.srAvailableText");dt()((()=>{p(t)}),30)}else S.current&&p(r("suggestions.srUnavailableText"));x.current=w}!T.current&&E?(Ot(f.current,u),p(r("suggestions.srUnavailableText"))):!C&&S.current&&Ot(f.current,u),S.current=C,T.current=E}),[w,C,E,u,p,r]);const P=r("suggestions.headingText"),N=r("suggestions.footerText"),R=P?"section":"div";return z(ef,{isActive:A,transitionStartState:tf.notRendered,children:z(R,{className:I,"aria-labelledby":P?l:null,ref:f,children:[P&&z("p",{id:l,className:Ic("suggestions__heading"),children:P}),!!j.length&&z(ll,{suggestions:j,onClickSuggestion:k}),N&&!a&&z("p",{className:Ic("suggestions__footer"),children:N})]})})};const rf=(0,De.forwardRef)(((t,e)=>{let{children:n,className:r=""}=t;const{isOpen:o,isVisible:i,setVisibility:a}=us(),{namespace:s,layoutMode:c}=Po(),{isInline:l}=Wo(),u=Xs(),f=ni(),{t:p}=Us(),d=["chat",`chat--layout-${c}`,`namespace--${s}`,...u,r];return o||"app"===c||d.push("chat--collapsed"),f&&d.push("chat--user-responded"),i&&z("section",{className:Ic(d),onKeyDown:t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&!l&&o&&a(Io.minimized)},tabIndex:"-1",ref:e,"aria-label":p("chat.srLabel"),children:[z("div",{className:Ic("chat-wrapper"),children:n}),"inline"===c&&o&&z(nf,{isAside:!0})]})}));var of=rf,af=n(5110),sf=n.n(af),cf=n(2373),lf=n.n(cf),uf=({className:t,children:e,onCancel:n,headingText:r,description:o,descriptionId:i,cancelButtonText:a,cancelButtonRef:s,disableButtonFocusing:c,position:l={horizontal:"left",vertical:"top"}})=>{const u=wc(),{hideOption:f}=dc(),{focusButton:p}=hc(),d=(0,Ne.I4)((()=>{f(),c||p()}),[c,p,f]),h=(0,Ne.I4)((()=>{n&&n(),d()}),[d,n]),v=(t=>{const e=(0,Ne.sO)(null);return(0,Ne.d4)((()=>{const n=n=>{let{target:r}=n;e.current&&r instanceof HTMLElement&&!e.current.contains(r)&&t()};return document.addEventListener("click",n,!0),document.addEventListener("touchstart",n,!0),()=>{document.removeEventListener("click",n,!0),document.removeEventListener("touchstart",n,!0)}}),[t,e]),e})(h);return(0,Ne.d4)((()=>{St(v.current)}),[v]),z("section",Object.assign({className:Ic("options",{"options--right":"right"===l.horizontal,"options--left":"left"===l.horizontal,"options--top":"top"===l.vertical,"options--bottom":"bottom"===l.vertical},t),"aria-labelledby":u,tabIndex:-1,ref:v},{children:z("div",Object.assign({className:Ic("options__body")},{children:[z("h2",Object.assign({id:u,className:Ic("options__title")},{children:r})),z("button",Object.assign({type:"button",onClick:h,"aria-describedby":u,className:Ic("button","options__close"),ref:t=>{s&&(s.current=t)}},{children:[z(Yc,{name:"close",size:"16",alt:""}),z("span",{children:a})]})),o?z("p",Object.assign({className:Ic("options__description"),id:i},{children:o})):null,z("div",Object.assign({className:Ic("options__wrapper")},{children:e}))]}))}))};const ff=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{fn:t,errorText:e,compareValue:n}},pf=(t,e)=>{let n=!0;for(let r=0;r<t.length;r++)t[r].size>e&&(n=!1);return n},df=t=>!!t?.length>0,hf=t=>{const e=t&&en()(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))},vf=t=>!!t,yf=(0,U.kr)({handleSubmit:()=>{},isSubmitted:!1,isValid:!1,updateControlValue:()=>{},updateControlTouched:()=>{},errors:void 0});var mf=yf;const{Provider:gf,Consumer:bf}=yf,_f=To((t=>{let{forms:e}=t;return e}),((t,e)=>{let{formId:n}=e;return n}),((t,e)=>t[e])),wf=To(_f,(t=>(null==t?void 0:t.controls)||{})),xf=To(wf,(t=>{var e;const n={};return T()(e=L()(t)).call(e,(t=>{let[e,{value:r}]=t;n[e]=r})),n})),Sf=To(wf,((t,e)=>{let{name:n}=e;return n}),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.value})),Of=To(wf,((t,e)=>{let{name:n}=e;return n}),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.touched}));function Cf(){return(0,Ne.qp)(mf)}function Ef(t){const e=Qe(),{formId:n,updateControlValue:r,updateControlTouched:o,errors:i}=Cf(),a=!!Ve((t=>_f(t,{formId:n}))),s=Ve((e=>Sf(e,{formId:n,name:t}))),c=Ve((e=>Of(e,{formId:n,name:t}))),l=null==i?void 0:i[t],u=!l;(0,Ne.d4)((()=>{a&&e(Aa({formId:n,name:t}))}),[a,n,t,e]),(0,Ne.bt)((()=>()=>{e(ja({formId:n,name:t}))}),[a,n,t,e]);const f=(0,Ne.I4)((e=>r(t,e.target.value)),[t,r]),p=(0,Ne.I4)((()=>{o(t,!0)}),[o,t]);return[(0,Ne.Ye)((()=>({name:t,onInput:f,onBlur:p,value:s})),[t,f,p,s]),(0,Ne.Ye)((()=>({isValid:u,error:l,touched:c})),[u,l,c])]}function Tf(t){var{children:n,formId:r,persistData:o,onError:i,onSubmit:a,validationSchema:s}=t,c=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["children","formId","persistData","onError","onSubmit","validationSchema"]);const l=Qe(),u=Ve((t=>xf(t,{formId:r}))),[f,p]=(0,Ne.eJ)(!1),[d,h]=(0,Ne.eJ)({}),{isValid:v,errors:y}=function(t,n){const r=(0,Ne.Ye)((()=>function(t){var n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Q()(n=L()(r)).call(n,((n,r)=>{let[o,i]=r;var a;const s=e()(i)?i:[i];for(let e=0;null!==(a=e<(null==s?void 0:s.length))&&void 0!==a&&a;e++)if(!s[e].fn(t[o],s[e].compareValue)){n[o]=s[e].errorText;break}return n}),{})}(t,n)),[t,n]);return{isValid:0===j()(r).length,errors:r}}(u,s),m=(0,Ne.Ye)((()=>Object.assign(Object.assign({},y),d)),[y,d]);(0,Ne.bt)((()=>{l(Ea({formId:r,persistData:o}))}),[r,o,l]),(0,Ne.d4)((()=>()=>{l(Ta({formId:r}))}),[r,o,l]);const g=(0,Ne.I4)(((t,e)=>{l(Ia({formId:r,name:t,value:e}))}),[r,l]),b=(0,Ne.I4)(((t,e)=>{l(ka({formId:r,name:t,touched:e}))}),[l,r]),_=(0,Ne.I4)(((t,e)=>{h((n=>Object.assign(Object.assign({},n),{[t]:e})))}),[h]),w=(0,Ne.I4)((t=>{t.preventDefault();const e="true"===t.submitter.getAttribute("aria-disabled");p(!e),!e&&v&&(l(ii(!0)),a(u,{updateControlValue:g,setError:_}))}),[v,l,a,u,g,_]);(0,Ne.d4)((()=>{i&&i({errors:m,isSubmitted:f,isValid:0===Object.keys(m).length})}),[f,m,i]);const x=(0,Ne.Ye)((()=>({formId:r,values:u,errors:m,isValid:0===Object.keys(m).length,isSubmitted:f,handleSubmit:w,validationSchema:s,updateControlValue:g,updateControlTouched:b})),[r,u,m,f,w,s,g,b]);return r?a?z(gf,Object.assign({},c,{value:x},{children:n})):(console.error('"onSubmit" is required.'),null):(console.error('"formId" is required.'),null)}const Af=["className","disableValidationClasses"];function jf(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}var If=function(t){let{className:e,disableValidationClasses:n}=t,r=Js(t,Af);const{handleSubmit:o,isValid:i,isSubmitted:a}=function(){const{handleSubmit:t,isSubmitted:e,isValid:n}=Cf();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")),z("form",function(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=jf(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=jf(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({onSubmit:o,className:Ic([...s,e])},r))};function kf(t){let{id:e,error:n}=t;const[r,o]=(0,Ne.eJ)(!1);return(0,Ne.d4)((()=>{const t=dt()((()=>o(!0)),300);return()=>clearTimeout(t)}),[]),z("div",{className:Ic("error"),"aria-live":"assertive","aria-atomic":"true",children:r&&n&&z("span",{id:e,className:Ic("error__message"),children:[z(Yc,{name:"error",size:"16"}),n]})})}var Pf=t=>{let{contentHint:e,id:n,labelText:r,labelClass:o=Ic("label"),validity:i,errorText:a,children:s}=t;return z(U.HY,{children:[z("label",{htmlFor:n,className:o,children:r}),e&&z("span",{id:`${n}-content-hint`,className:Ic("input__content-hint"),children:e}),z(kf,{id:`${n}-error`,error:!i&&a}),s]})};const Nf=["id","name","type","labelText","labelClass","contentHint","aria-describedby"];function Rf(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mf(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Rf(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Rf(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Df=function(t){let{id:e,name:n,type:r,labelText:o,labelClass:i,contentHint:a,"aria-describedby":s}=t,c=Js(t,Nf);const{isSubmitted:l}=Cf(),[u,{error:f}]=Ef(n),p=l&&f,d=[];return s&&d.push(s),a&&d.push(`${e}-content-hint`),p&&d.push(`${e}-error`),z(Pf,{id:e,contentHint:a,validity:!p,errorText:f,labelText:o,labelClass:i,children:z("input",Mf(Mf({id:e,name:n,type:r,"aria-invalid":p?"true":"false","aria-describedby":d.join(" ")||null},u),c))})};function Lf(t){let{controlName:e,describedById:n}=t;const{t:r}=Us();return z(If,{noValidate:"true",className:Ic("options__form"),children:[z(Df,{name:e,type:"email",className:Ic("transcript__input"),"aria-describedby":n,labelClass:Ic("label"),labelText:r("options.sendTranscript.label")}),z("div",{className:Ic("options__actions"),children:z("button",{type:"submit",className:Ic("button","button--primary","options__submit"),children:r("options.sendTranscript.sendButtonText")})})]})}const Uf="email";const Ff={sendTranscript:()=>{const[t,e]=(0,Ne.eJ)(void 0),{hideOption:n}=dc(),{focusButton:r}=hc(),{t:o}=Us(),i=wc(),{sendAction:a}=gs(),s=(0,Ne.Ye)((()=>({[Uf]:[ff(vf,o("options.sendTranscript.noEmailText")),ff(hf,o("options.sendTranscript.invalidEmailText"))]})),[o]),c=(0,Ne.I4)((t=>{var e;const o=en()(e=t[Uf]).call(e);a({type:"send_transcript",body:{emailAddress:o}}),n(),r()}),[a,n,r]),l=(0,Ne.I4)((t=>{let{isValid:n,isSubmitted:r}=t;e(r&&!n?"options--error":void 0)}),[e]);return z(uf,{className:t,headingText:o("options.sendTranscript.title"),cancelButtonText:o("options.cancelButtonText"),description:o("options.sendTranscript.description"),descriptionId:i,position:{vertical:"top",horizontal:"right"},children:z(Tf,{formId:"sendTranscript",onSubmit:c,validationSchema:s,onError:l,children:z(Lf,{controlName:Uf,describedById:i})})})}};var zf=()=>{const{optionActive:t}=dc(),e=(0,Ne.sO)(null),n=Ff[t||e.current];return t&&(e.current=t),n?z(n,{}):null},Bf=()=>{const{t:t}=Us(),{menuOptions:e,showOption:n,panelActive:r,hideOption:o}=dc(),{id:i}=hc(),a=(0,Ne.sO)(null),[s,c]=(0,Ne.eJ)(!1),l=(0,Ne.sO)(null),u=e.length,f=(0,Ne.sO)(sf()({length:u},(()=>(0,U.Vf)()))),p=(0,Ne.sO)(!1),d=u>1,h=e[0],v=(0,Ne.Ye)((()=>h?.name?.trim().replace(/\s+/g,"")),[h]);return(0,Ne.d4)((()=>()=>{clearTimeout(a.current)}),[]),(0,Ne.d4)((()=>{s&&!p.current&&requestAnimationFrame((async()=>{await Zs(60);const t=lf()(e).call(e,(t=>t.available)),n=-1===t?0:t;St(f.current[n])})),p.current=s}),[s,e]),u?z("div",{className:Ic("options__container"),onKeyDown:t=>{s&&(xt(t)===wt.Escape&&(c(!1),St(l.current)),xt(t)===wt.Home&&(St(f.current[0]),t.preventDefault()),xt(t)===wt.End&&(St(f.current[u-1]),t.preventDefault()))},onfocusout:()=>{d&&(a.current=dt()((()=>{c(!1)}),200))},onfocusin:()=>{clearTimeout(a.current)},children:[z(ef,{transitionStartState:tf.notRendered,isActive:r,children:z("div",{className:Ic("options__dialog"),children:z(zf,{})})}),d&&z(ef,{isActive:s,transitionStartState:tf.notRendered,children:z("ul",{className:Ic(["options__menu"]),role:"menu",tabIndex:"-1","aria-labelledby":i,children:S()(e).call(e,((r,o)=>{let{name:i,title:a,available:s}=r;return z("li",{className:Ic("options__menu__item"),role:"menuitem",children:z("button",{type:"button",ref:t=>{f.current[o]=t},className:Ic(["button","button--secondary"]),onKeyDown:t=>((t,e)=>{if(xt(t)===wt.ArrowDown){const n=Math.min(u-1,e+1);St(f.current[e===n?0:n]),t.preventDefault()}if(xt(t)===wt.ArrowUp){const n=Math.max(0,e-1);St(f.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;T()(e).call(e,((t,e)=>{e>n&&t.title.charAt(0).toLowerCase()===r.toLowerCase()&&-1===o&&(o=e)})),-1!==o&&St(f.current[o])})(t,o),onClick:()=>((t,e)=>{e&&(c(!1),n(t))})(i,s),"aria-disabled":s?null:"true",children:[z("span",{className:Ic("button__text"),children:[a,!s&&" "]}),!s&&z("span",{className:Ic("button__state"),children:t("options.unavailableText")})]})},i)}))})}),z("button",{type:"button",className:Ic(["button","button--secondary","chat__options__button",...!d&&v?[`chat__options__button--${v}`]:[]]),id:i,onClick:()=>{r&&o(),d?c((t=>!t)):h.available&&!r&&n(h.name)},onKeyDown:d?t=>{xt(t)===wt.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&&z(Yc,{name:"options",size:"32"}),z("span",{className:Ic("button__text"),children:d?t("options.openButtonText"):`${h.title}${h.available?"":" "}`}),!d&&!h.available&&z("span",{className:Ic("button__state"),children:t("options.unavailableText")})]})]}):null},Hf=({label:t,checked:e,description:n,onChange:r,id:o})=>z("li",Object.assign({className:Ic("translation-options__item"),"aria-selected":e,role:"option",tabIndex:0,onClick:r,onKeyDown:t=>{"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),r())},id:o},{children:[z(Yc,{alt:"",name:"check",size:"16"}),t," ",n&&z("span",{children:["(",n,")"]})]})),$f=({onChange:t,describedById:e})=>{const{context:{locale:n}}=Po(),{t:r}=Us(),{focusContainer:o}=Ec(),{languages:i,currentLocale:a,enableTranslations:s,disableTranslations:c}=Oc(),l=({locale:e})=>()=>{e===a||n===e?c():s(e),t(),o()},u=(0,Ne.Ye)((()=>[...i].sort(((t,e)=>t.locale===n?-1:e.locale===n?1:t.nativeName.localeCompare(e.nativeName,void 0,{sensitivity:"base"})))),[i,n]);return z("ul",Object.assign({"aria-describedby":e,role:"listbox",tabIndex:-1,className:Ic("translation-options")},{children:u.map(((t,e)=>{const n=0===e,o=a===t.locale||!a&&n;return z(Hf,{id:t.locale,label:t.nativeName,checked:o,description:n&&r("translations.settings.original"),onChange:l(t)},t.locale)}))}))},Vf=function({onClose:t,position:e}){const{t:n}=Us(),r=wc();return z(uf,Object.assign({onCancel:t,headingText:n("translations.menu.title"),cancelButtonText:n("translations.settings.cancelButtonText"),description:n("translations.menu.description"),descriptionId:r,position:e,disableButtonFocusing:!0},{children:z($f,{describedById:r,onChange:t})}))};function qf({children:t,position:e={horizontal:"left",vertical:"top"},classNames:n}){const[r,o]=(0,Ne.eJ)(!1),i=(0,Ne.sO)(null),a=wc();return z("div",Object.assign({className:Ic("translations__container"),onKeyDown:t=>{r&&xt(t)===wt.Escape&&(o(!1),St(i.current))}},{children:[z(ef,Object.assign({onOutTransitionComplete:()=>{},onInTransitionComplete:()=>{},timeout:0,transitionStartState:tf.notRendered,isActive:r},{children:z("div",Object.assign({className:Ic("options__dialog"),role:"dialog"},{children:z(Vf,{onClose:()=>{o(!1)},position:e})}))})),z("button",Object.assign({type:"button",className:Ic(["button","chat__options__button",...n]),id:a,onClick:()=>{o(!r)},onKeyDown:t=>{xt(t)===wt.ArrowDown&&(o(!0),t.preventDefault())},ref:i,"aria-haspopup":"dialog","aria-expanded":r.toString()},{children:t}))]}))}function Wf(){const{menuOptions:t,allowOptionSelection:e}=dc(),{isAvailable:n}=Oc(),r=Ve(Hs),{t:o,locale:i}=Us(),a=Tc(i);if(!n&&(!e||!t.length)||r)return null;const s=o("translations.settings.openButtonText",{hasLanguage:!!a,language:a});return z("div",{className:Ic("chat__options"),children:[n&&z("div",{className:Ic("chat__options-item","chat__options-item--left"),children:z(qf,{classNames:["button--secondary"],children:[z(Yc,{alt:s,name:"newTranslation",size:"16"}),z("span",{className:Ic("button__text"),children:s})]})}),e&&z("div",{className:Ic("chat__options-item","chat__options-item--right"),children:z(Bf,{})})]})}var Yf=()=>{const{scrollToRef:t,unreadIds:e}=(0,Ne.qp)(Vu),{isMinimized:n}=us(),{t:r}=Us();return z(ef,Object.assign({isActive:!!e.length&&!n},{children:z("div",Object.assign({className:Ic("unread-messages")},{children:z("button",Object.assign({type:"button",className:Ic("button","button--primary"),onClick:t},{children:[r("message.unreadMessagesCount",{unreadCount:e.length}),z(Yc,{name:"chevronDown",size:"32",alt:""})]}))}))}))};const Gf=To(Lo,(t=>{var e;return S()(e=C()(t).call(t,(t=>{var e;return gi(t)&&"service_data"!==t.type&&(null===(e=t.payload)||void 0===e?void 0:e.messageStatus)===ln}))).call(e,(t=>t.payload.id))}));var Kf=t=>{const e=(0,Ne.sO)(),[n,r]=(0,Ne.eJ)(!0),o=Ve(Gf),i=Uo(),a=Fo(),{isOpen:s}=us(),c=Mo().loadedImageEventIds,l=Ve((t=>t.state.isLastEventFromClient));(0,Ne.d4)((()=>{const t=e.current,n=()=>{const{scrollHeight:e,scrollTop:n,clientHeight:o}=t,i=Math.abs(e-n-o)>10;r(!i)};return t.addEventListener("scroll",n),()=>t.removeEventListener("scroll",n)}),[]);const u=(0,Ne.I4)((()=>{requestAnimationFrame((()=>function(t,e,n,r){return new(n||(n=H()))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}(void 0,void 0,void 0,(function*(){var t,n;yield Zs(30),null===(t=e.current)||void 0===t||t.scrollTo({top:null===(n=e.current)||void 0===n?void 0:n.scrollHeight,left:0,behavior:"auto"})}))))}),[]);return(0,Ne.d4)((()=>{l&&u()}),[l,u]),(0,Ne.d4)((()=>{n&&u()}),[n,o,i,a,s,c,u]),{containerRef:e,unreadIds:o,scrollToRef:()=>{var n,r;const i=null===(n=t[null==o?void 0:o.at(0)])||void 0===n?void 0:n.current;null===(r=e.current)||void 0===r||r.scrollTo({top:null==i?void 0:i.offsetTop,behavior:"auto",left:0})},scrollToBottom:u}},Jf=({children:t})=>{const e=Uo(),n=(0,Ne.Ye)((()=>e.reduce(((t,e)=>(t[e.payload.id]=(0,U.Vf)(),t)),{})),[e]),{scrollToRef:r,scrollToBottom:o,containerRef:i,unreadIds:a}=Kf(n);return z(Vu.Provider,Object.assign({value:{eventRefs:n,unreadIds:a,scrollToRef:r,scrollToBottom:o,containerRef:i}},{children:z("div",Object.assign({className:Ic("chat__container")},{children:[z("div",Object.assign({className:Ic("chat__container__scroll-area"),ref:i},{children:t})),z(Yf,{})]}))}))},Xf=t=>{let{baseClassName:e,children:n,title:r}=t;const o=Ho(),i=wc();return z("section",{id:o,className:Ic(e),"aria-describedby":i,tabIndex:"-1",children:[z("h2",{className:Ic(`${e}__title`),id:i,children:r}),n]})},Qf=()=>{const{t:t}=Us(),e=rc(),n=yc(),{emitEvent:r}=gs(),{isActive:o,remaining:i,timer:a,endCountdown:s}=bc(),c=i>0,l=t(c?"idleDetachWarning.countdownTitle":"idleDetachWarning.notifyTransferText");return z(Xf,{baseClassName:"idle",title:l,children:c&&z(U.HY,{children:[z("div",{className:Ic("idle__count-container"),children:o&&z(U.HY,{children:[z("span",{className:Ic("idle__count-text"),children:t("idleDetachWarning.countdownText")}),z("span",{className:Ic("idle__count-timer"),children:t("idleDetachWarning.countdownTimer",a)})]})}),z("div",{className:Ic("idle__options"),children:[z("button",{type:"button",className:Ic("button","button--primary"),onClick:()=>{n(),s(!0),e(),r("idleTimer.selectContinue")},children:t("idleDetachWarning.continueButton")}),z("button",{type:"button",className:Ic("button","button--primary"),onClick:()=>{s(),e(),r("idleTimer.selectEnd")},children:t("idleDetachWarning.detachButton")})]})]})})},Zf=()=>{const{t:t}=Us(),e=yc(),{name:n}=Vo()||{},{continueChat:r,restartChat:o}=_c();return z(Xf,{baseClassName:"prompt",title:t("resumeConversationPrompt.title",{name:n}),children:z("div",{className:Ic("prompt__options"),children:[z("button",{type:"button",className:Ic("button","button--primary"),onClick:()=>{e(),r()},children:t("resumeConversationPrompt.continueButton")}),z("button",{type:"button",className:Ic("button","button--primary"),onClick:o,children:t("resumeConversationPrompt.detachButton")})]})})};function tp(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}const ep=()=>{const{default:t,active:e,userSelected:n,options:r,optionsOverride:o}=Mo().entryMeta,i=Qe(),a=n||e||t,s=o[a]||r[a]||{},c=(0,Ne.I4)((t=>{i(Fi(t))}),[i]),l=(0,Ne.I4)((t=>{i(Li(t))}),[i]),u=(0,Ne.I4)((t=>{i(na(t))}),[i]),f=(0,Ne.I4)((()=>{n?u(null):l(t)}),[n,t,u,l]);return{activeEntry:a,activeEntryOptions:s,setActiveEntryType:l,setUserEntryType:u,cancelEntrySelection:f,setBlockAutoEntrySwitch:c}};var np=n(7552),rp=n(8216);function op(){var t;return op=np?rp(t=np).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},op.apply(this,arguments)}function ip(t){let{controlName:e,skipLinkId:n}=t;const{t:r}=Us(),{sendAssertive:o}=zs(),{emitEvent:i}=gs(),a=(()=>{const{sendAction:t}=gs(),{features:e}=dc(),{typingPeekahead:n}=e||{},r=(0,Ne.sO)(null),o=(0,Ne.sO)(null),i=(0,Ne.sO)(!1),a=(0,Ne.sO)(null);(0,Ne.d4)((()=>()=>{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?T()(n=tp(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=tp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}({type:pn,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=Ru()((()=>{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=dt()((()=>{i.current=!1}),300),o.current=dt()((()=>{s(!1,t.target.value)}),2e3))}})(),{setBlockAutoEntrySwitch:s}=ep(),{hasCharacterLimit:c,characterLimit:u,reachedCharacterWarning:p,reachedCharacterLimit:h,remainingChars:y}=function(t){const{t:e}=Us(),{sendAssertive:n}=zs(),{hasLimit:r,limit:o}=(()=>{const{entryMeta:{options:{text:t},optionsOverride:{text:e}}}=Mo(),{limit:n}=e||t||{limit:null};return{hasLimit:null!==n,limit:null!==n?n:null}})(),i=(0,Ne.Ye)((()=>yt(n,300)),[n]),a=(0,Ne.Ye)((()=>yt(((t,n)=>{t&&i(e("input.srCharacterLimitText",{limit:n}))}),300)),[i,e]),[{value:s}]=Ef(t),c=r&&s?o-s.length:o,l=!!r&&c<=50,u=!!r&&c<0;return(0,Ne.d4)((()=>{a(l,c)}),[l,c,a]),{hasCharacterLimit:r,characterLimit:o,reachedCharacterWarning:l,reachedCharacterLimit:u,remainingChars:c}}(e),[{value:m}]=Ef(e),g=!!m,b=(0,Ne.I4)((()=>{p&&o(r("input.srCharacterLimitText",{limit:y})),i("ui.inputFocus")}),[r,o,p,y,i]),_=(0,Ne.Ye)((()=>r("input.inputPlaceholder",{hasLimit:c,limit:c?u:null})),[r,c,u]),x=(0,Ne.Ye)((()=>r("input.inputLabel",{hasLimit:c,limit:c?u:null})),[r,c,u]);return(0,Ne.bt)((()=>(s(g),()=>{s(!1)})),[s,g]),z(If,{className:Ic("entry-form"),disableValidationClasses:!0,noValidate:"true",children:[z("div",{className:Ic(["input--text__container",...p&&!h?["character-warning"]:[],...h?["character-exceeded"]:[]]),children:[z(Df,{id:n,type:"text",name:e,className:Ic("input__text"),autocomplete:"off",placeholder:_,labelText:x,labelClass:Ic("visually-hidden"),"aria-invalid":c?h:null,onKeyUp:a,onFocus:b}),z("div",{className:Ic("character-count"),children:p&&z("span",{children:y})})]}),z("button",{className:Ic("button","input__submit"),type:"submit",onPointerDown:t=>{t.preventDefault()},"aria-disabled":!g||h?"true":null,children:z(Yc,{name:"send",size:"32",alt:r("input.sendMessage")})})]})}function ap(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=ap(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=ap(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const cp="textMessageEntry";function lp(t){let e=op({},(function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(t),t));const{isOpen:n,setVisibility:r}=us(),o=Ho(),i=rc(),{sendMessage:a}=gs(),s=(0,Ne.I4)(((t,e)=>{let{updateControlValue:o}=e;a({body:t[cp]}),o(cp,""),i(),n||r(Io.open)}),[a,i,n,r]);return z(Tf,sp(sp({},e),{},{formId:"textEntry",persistData:!0,onSubmit:s,children:z(ip,{controlName:cp,skipLinkId:o})}))}var up=()=>{const{t:t}=Us(),{currentUploads:e}=uc();return z("div",{className:Ic("progress"),children:S()(e).call(e,(e=>{let{id:n,name:r,progress:o,uploading:i,error:a}=e;return z("div",{className:Ic("progress_container"),children:[z("div",{className:Ic("progress__text"),children:[z("span",{className:Ic("progress__text--file-name"),children:r}),z("span",{className:Ic("progress__text--percentage"),children:`${o}%`})]}),z(kf,{error:a}),z("progress",{className:Ic("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 fp(t){let{id:e,name:n,labelText:r,contentHint:o,outputText:i,accept:a}=t;const{isSubmitted:s}=Cf(),[c,l]=(0,Ne.eJ)(!1),[{onInput:u,onBlur:f},{error:p}]=Ef(n),d=wc(),h=wc(),v=wc(),y=s&&p,m=[v];o&&m.push(h),y&&m.push(d);const g=(0,Ne.I4)((()=>{l(!0)}),[l]),b=(0,Ne.I4)((()=>{l(!1),f()}),[l,f]),_=(0,Ne.I4)((t=>{const e={target:{value:t.target.files}};u(e)}),[u]);return z("div",{className:Ic("upload__container"),children:[o&&z("span",{className:Ic("upload__content-hint"),id:h,children:o}),z(kf,{id:d,error:y&&p}),z("div",{className:Ic(["file-upload",...c?["focus-within"]:[]]),children:z("label",{htmlFor:e,className:Ic("upload__label"),children:[z(Yc,{name:"upload",size:"32"}),z("div",{children:[z("span",{className:Ic(["upload__label--text"]),children:r}),z("input",{id:e,className:Ic("upload__input"),type:"file",name:n,onChange:_,"aria-invalid":y?"true":"false","aria-describedby":m.join(" "),accept:a||null,onFocus:g,onBlur:b}),z("span",{className:Ic("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}=Us(),[{value:l}]=Ef(n),u=l&&l.length>0,f=u?l[0].name:"";return z(If,{className:Ic("upload-form"),children:[z(fp,{name:n,id:e,accept:r,labelText:c("fileUpload.labelText"),outputText:c("fileUpload.selectedText",{hasFile:u,filename:f}),contentHint:o}),z("div",{className:Ic("upload__button-container"),children:[z("button",{id:i||!a?e:void 0,type:"button",onClick:s,className:Ic("button","button--secondary","upload__cancel"),children:c("fileUpload.cancelButtonText")}),z("button",{className:Ic("button","button--primary"),type:"submit",children:c("fileUpload.uploadButtonText")})]})]})}const dp="fileListForm",hp="fileList";var vp=()=>{const{t:t}=Us(),{sendPolite:e,sendAssertive:n}=zs(),r=Ho(),o=rc(),{serviceAllowsUploads:i,allowedMimeTypes:a,maxSize:s}=lc(),c=(0,Ne.sO)(null),l=(0,Ne.sO)(i),{cancelEntrySelection:u}=ep(),{uploadFile:f,clearUploads:p,isUploading:d,isComplete:h}=uc(),{hasFile:v,selectedFileName:y,uploadHandle:m,hasServerError:g,progress:b}=((t,e)=>{const n=Ve((n=>Sf(n,{formId:t,name:e}))),{currentUploads:r}=uc(),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,hp),_=wc(),w=(0,Ne.sO)(!0),x=t("fileUpload.contentHint",{size:bt(s)}),S=(0,Ne.sO)(""),O=(0,Ne.sO)(null);(0,Ne.d4)((()=>{S.current&&O.current?.contains(document.activeElement)&&"INPUT"===document.activeElement.tagName&&n(x),S.current=x}),[x,n]),(0,Ne.d4)((()=>{b>0&&e(1===b?t("fileUpload.srStartedText"):`${b}%`)}),[b,e,t]),(0,Ne.d4)((()=>{w.current||d||!h||(p(),u(),o(),dt()((()=>{e(t("fileUpload.srCompleteText"))}),300)),w.current=h}),[d,h,p,u,o,e,t]);const C=(0,Ne.I4)((t=>{let{fileList:e}=t;f(e[0]),o()}),[f,!1,o]),E=(0,Ne.I4)((()=>{m&&m.abort(),p(),u(),o()}),[m,p,u,o]),T=(0,Ne.Ye)((()=>({[hp]:[ff((()=>i),t("fileUpload.errors.unavailable")),ff(df,t("fileUpload.errors.noFile")),ff(pf,t("fileUpload.errors.tooLarge"),s)]})),[s,i,t]);return z("div",{className:Ic(["upload",...g?["upload--error"]:[]]),ref:O,children:z(Tf,{formId:dp,persistData:!0,onSubmit:C,validationSchema:T,children:[(d||!h)&&z(U.HY,{children:[z(up,{}),z("div",{className:Ic("upload__button-container"),children:z("button",{id:d||!h?r:void 0,type:"button",onClick:E,ref:c,className:Ic("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]}),!d&&h&&z(pp,{controlName:hp,skiplinkId:r,accept:a.join(", "),contentHint:x,isComplete:h,isUploading:d,outputText:t("fileUpload.selectedText",{hasFile:v,filename:y}),onClickCancel:E}),!l.current&&z(U.HY,{children:[z("span",{className:Ic("notification"),id:_,children:t("fileUpload.unavailableText")}),z("div",{className:Ic("upload__button-container"),children:z("button",{id:d||!h?r:void 0,type:"button",onClick:E,className:Ic("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]})]})})},yp=()=>{const{t:t}=Us(),{showFileUpload:e,serviceAllowsUploads:n}=lc(),[r,o]=(0,Ne.eJ)(n),i=rc(),a=(0,Ne.sO)(null),{setUserEntryType:s,activeEntry:c}=ep(),l=(0,Ne.sO)(null),{sendPolite:u}=zs(),f=!!Vo();return(0,Ne.d4)((()=>{Ot(l.current,(()=>{n||i()})),o(n)}),[n,i]),(0,Ne.d4)((()=>{a.current&&!n&&u(t("fileUpload.srUnavailableText")),!1===a.current&&n&&u(t("fileUpload.srAvailableText")),f&&(a.current=n)}),[n,f,u,t]),!e&&c!==cn&&z(ef,{isActive:r,transitionStartState:tf.rendered,children:z("div",{className:Ic("upload-toggle-wrapper"),children:z(ef,{isActive:r,transitionStartState:tf.visuallyHidden,children:z("button",{className:Ic(["button","button--secondary","upload-toggle"]),ref:l,"aria-disabled":r?null:"true",type:"button",onClick:r?()=>{s(cn),i()}:null,children:z(Yc,{name:"file",size:"32",alt:t("fileUpload.toggleButtonText")})})})})})};function mp(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function gp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=mp(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=mp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var bp=()=>{const{isOpen:t}=us(),e=(0,Ne.sO)(null),{hasCountdown:n}=bc(),[r,o]=(0,Ne.eJ)(n),{hasPrompt:i}=_c(),[a,s]=(0,Ne.eJ)(i),c=rc(),l=(0,Ne.sO)(!1),{activeEntry:u}=ep(),[f,p]=(0,Ne.eJ)({text:lp,upload:vp}),[d,h]=(0,Ne.eJ)((()=>u)),v=Po(),{accountAllowsUploads:y}=lc(),m=(0,Ne.I4)((()=>{Ot(e.current,c)}),[c]);(0,Ne.d4)((()=>{const{customComponents:t}=v,{entry:e}=t||{};e&&p((t=>gp(gp({},t),e)))}),[v]),(0,Ne.d4)((()=>{m(),o(n),s(i)}),[n,i,m]),(0,Ne.d4)((()=>{h(u),m()}),[u,m,e]),l.current=!(!e.current||!e.current.contains(document.activeElement));const g=f[d];return z("div",{className:Ic("chat__entry"),ref:e,children:[r&&z(Qf,{}),a&&z(Zf,{}),z("div",{className:Ic(["entry__body",...n||i?["entry__body--hidden"]:[]]),children:[d!==cn&&y&&t&&z(yp,{}),z(g,{})]})]})},_p=()=>{const{t:t}=Us(),{isOpen:e,closeChat:n}=us(),{isWindow:r}=Wo();return e&&r?z("button",{type:"button",className:Ic("button","collapse-button"),onClick:n,children:z(Yc,{name:"chevronDown",size:"32",alt:t("window.srCollapseButton")})}):null},wp=({children:t,handleClose:e,title:n,closeButtonText:r,srCloseButtonText:o,id:i})=>{const a=wc();return z("section",Object.assign({tabIndex:-1,id:i,"aria-labelledby":n?a:void 0,className:Ic("chat-status",!n&&"chat-status--condensed")},{children:[z("div",Object.assign({className:Ic("chat-status__body")},{children:[n?z("h2",Object.assign({className:Ic("chat-status__title"),id:a},{children:n})):null,t]})),"function"==typeof e&&z("button",Object.assign({type:"button",onClick:e,className:Ic("button","button--tertiary","chat-status__close")},{children:[r||z(Yc,{name:"close",size:"16",alt:""}),o&&z("span",Object.assign({className:Ic("visually-hidden")},{children:o}))]}))]}))};function xp(){const{t:t}=Us(),{id:e}=Ec(),n=Ve(Hs),{disableTranslations:r,currentLocale:o}=Oc(),i=Tc(o),a=rc(),s=t("translations.status.label",{language:i}),c=(0,Ne.I4)((()=>{r(),a()}),[r,a]);return n?null:z(wp,{handleClose:c,title:s,id:e,closeButtonText:t("translations.status.stopText"),srCloseButtonText:t("translations.status.srStopText")})}var Sp=({handleClick:t,icon:e,title:n,srButtonText:r})=>z("button",Object.assign({type:"button",onClick:t,className:Ic("button","button--primary","chat-status__button")},{children:[z(Yc,{name:e,size:"16",alt:""}),n,r&&z("span",Object.assign({className:Ic("visually-hidden")},{children:r}))]}));function Op(){const{showProposal:t,translationProposal:e,dismissTranslationProposal:n,activateTranslationProposal:r}=(()=>{const{isActive:t,languages:e}=Oc(),n=Qe(),{sendAction:r}=gs(),{translationProposal:o}=Ve((t=>t.translations)),{enableTranslations:i}=Oc(),{isOpen:a}=us(),{locale:s}=Us(),c=null==o?void 0:o.proposedLocale,l=Tc(c),u=(0,Ne.Ye)((()=>null!==o&&!t&&a&&s!==c&&M()(e).call(e,(t=>t.locale===c))),[o,t,a,s,c,e]);return{activateTranslationProposal:()=>{i(null==o?void 0:o.proposedLocale,_n)},dismissTranslationProposal:()=>{r({type:vn,body:{type:bn}}),n(rs())},proposedLocale:c,proposedLocaleNativeName:l,showProposal:u,translationProposal:o}})(),{id:o}=Ec();return t?z(wp,Object.assign({handleClose:n,srCloseButtonText:e.srDismissButtonText,id:o,title:e.titleLabel},{children:z(Sp,{handleClick:r,icon:"newTranslation",title:e.buttonLabel})})):null}function Cp(){const t=Ve(Hs),{isActive:e}=Oc();return t?null:z(e?xp:Op,{})}var Ep=()=>{const{meta:{originalError:t,title:e,message:n,buttonText:r,action:o,srText:i}}=$s(),a=gs(),s=wc(),{sendPolite:c}=zs(),l=rc(),u="SeamlySessionExpiredError"===t?.name;return(0,Ne.d4)((()=>{!u&&i&&dt()((()=>{c(i)}),200)}),[c,i,u]),u?z(U.HY,{}):z("section",{className:Ic("interrupt"),"aria-labelledby":s,children:[z(_p,{}),z("div",{className:Ic("interrupt__body"),children:[z("h2",{id:s,className:Ic("interrupt__title"),children:e}),z("p",{className:Ic("interrupt__message"),children:n}),r&&o&&z("div",{className:Ic("interrupt__actions"),children:z("button",{type:"button",className:Ic("button","button--primary"),onClick:()=>{a[o]&&a[o](),l()},children:r})})]})]})},Tp=function(t){let{children:e}=t;const n=Ve(Hs),{isOpen:r}=us();return n?z(Ep,{}):z(U.HY,{children:[z(Jf,{children:[z("div",{className:Ic("chat__container__header"),children:[z(Cp,{}),z(_p,{})]}),e]}),z(bp,{}),r&&z(Wf,{})]})};function Ap(t){let{event:e}=t;const[n]=qu(e);return z(n,{event:e})}function jp(){const{preChatEvents:t,layoutMode:e}=Po(),n=Ve(Hs),{isOpen:r}=us(),o=!(n||!t?.length||r);return o&&z("ul",{className:Ic("pre-chat-messages",`pre-chat-messages--${e}`),"aria-hidden":!o,children:S()(t).call(t,(t=>z("li",{className:Ic("pre-chat-messages__message"),children:z(Ap,{event:t})},t.payload.id)))})}const Ip=()=>{const t=No(),e=Vo(),n=Ve(Hs),r=e&&!n,o=r?e.avatar:t;return o?z("img",{className:Ic(r?"avatar":"icon"),src:o,alt:""}):z(Yc,{name:"avatar",size:"32"})};var kp=t=>{let{onClick:e}=t;const n=vs(),{t:r}=Us(),o=n()?r("window.openButton.srContinue"):r("window.openButton.srStart"),i=rc(),{isOpen:a}=us(),s=Bo(),c=(0,Ne.I4)((()=>{e(),i()}),[i,e]);return z(ef,{isActive:!a,transitionStartState:tf.rendered,children:z("button",{className:Ic("window-open-button"),"aria-label":o,"aria-hidden":a,onClick:c,children:[z("span",{className:Ic("message-count"),"aria-hidden":"true",children:!!s&&s}),z(Ip,{})]})})};const Pp={app:()=>z(of,{children:z(Tp,{children:z(Ku,{})})}),inline:()=>{const{showInlineView:t,containerRef:e}=ps(),{isOpen:n}=us();return z(U.HY,{children:[z(ef,{isActive:!n,transitionStartState:tf.rendered,children:z("div",{ref:e,className:Ic("unstarted-wrapper","unstarted-wrapper--inline"),children:[z(jp,{}),z(nf,{})]})}),z(ef,{isActive:n,transitionStartState:tf.rendered,children:z(of,{ref:e,children:t&&z(Tp,{children:n&&z(Ku,{})})})})]})},window:()=>{const{isOpen:t,openChat:e}=us(),n=ni(),{t:r}=Us(),o=r("window.chat.continue"),i=(0,Ne.Ye)((()=>({payload:{body:{text:o}}})),[o]);return z(U.HY,{children:[z(kp,{onClick:e}),z(ef,{isActive:!t&&!n,transitionStartState:tf.rendered,children:z("div",{className:Ic("unstarted-wrapper","unstarted-wrapper--window"),children:z(jp,{})})}),z(ef,{isActive:!t&&n,transitionStartState:tf.notRendered,children:z("div",{className:Ic("unstarted-wrapper","unstarted-wrapper--window","unstarted-wrapper--continue"),children:z(hu,{event:i})})}),z(ef,{isActive:t,transitionStartState:tf.notRendered,children:z(of,{children:z(Tp,{children:z(Ku,{})})})})]})}};var Np=t=>{let{children:e}=t;const[,n]=ec(),{namespace:r,layoutMode:o,zIndex:i}=Po(),{isOpen:a,isVisible:s}=us(),c=Xs(),l=ni(),{locale:u}=Us(),f=Pp[o],p=(0,Ne.I4)((t=>{n(t)}),[n]),d=(0,Ne.Ye)((()=>{if(u&&document.querySelector("html").getAttribute("lang")!==u)return u}),[u]);if(!f)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&&z("div",{className:Ic(h),lang:d,tabIndex:"-1","data-nosnippet":!0,style:{zIndex:i},ref:p,children:e||z(f,{})})};function Rp(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=Rp(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Rp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Dp=t=>z(Hu,Mp(Mp({},t),{},{children:z(Np,{})})),Lp=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};class Up{constructor(t,e){const{namespace:n="",parentElement:r,showFaq:o}=t,i=Lp(t,["namespace","parentElement","showFaq"]);this.config=Object.assign(Object.assign({},i),{namespace:n,showFaq:!1!==o}),this.namespace=n,this.parentElement=r,this.externalApi=e,this.api=new Ie({layoutMode:t.layoutMode,namespace:t.namespace,config:t.api,context:t.context}),this.eventBus=new(Pe()),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)))}render(){return function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){const t=this.config.customComponents||{},{view:e}=t,n=Lp(t,["view"]),r=Object.assign(Object.assign({},this.config),{customComponents:Object.keys(n).length?n:void 0}),o=function(t){let{initialState:e,api:n,eventBus:r,config:o}=t;return no({reducer:{state:sa,app:ai,config:ma,i18n:La,translations:os,visibility:cs,forms:Pa,interrupt:fi},preloadedState:e,middleware:t=>{var e;return la()(e=t({thunk:{extraArgument:{api:n,eventBus:r,config:o}},serializableCheck:!1})).call(e,[wa({api:n}),Fa({api:n}),Ha({api:n}),is])}})}({api:this.api,eventBus:this.eventBus,config:r,initialState:void 0});o.dispatch(ha(r)),yield o.dispatch(bo());try{const{locale:t}=yield o.dispatch(ti()).unwrap();yield o.dispatch(wo(t))}catch(t){}o.dispatch(Qo()),e?(0,U.sY)(z(Hu,Object.assign({eventBus:this.eventBus,store:o,api:this.api},{children:z(e,{})})),this.parentElement):(0,U.sY)(z(Dp,{config:r,eventBus:this.eventBus,store:o,api:this.api}),this.parentElement)}))}destroy(){(0,U.sY)(null,this.parentElement),this.eventBus.off(),this.api.disconnect(),delete this.functions}registerFunctions(t){Object.entries(t).forEach((([t,e])=>{this.registerFunction(t,e)}))}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]=n.filter((t=>t!==e)))}execFunction(t,...e){const n=this.functions[t];return!(!n||!n.length||(n.forEach((n=>{try{n(...e)}catch(e){console.error(`Action(${t}) failed: `,e)}})),0))}}function Fp(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(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?T()(n=Fp(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Fp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}const Bp=t=>"object"==typeof t&&"action"in t,Hp=t=>zp(zp({},t),{},{args:e()(t.args)?t.args:[t.args]});var $p=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=S()(t=C()(n).call(n,Bp)).call(t,Hp)).length&&(this._waitingActions.push(...n),this.handleActions())}handleActions(){const t=this._waitingActions;this._waitingActions=[],T()(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)}}))}instanceInitializing(t){const e=j()(this._instances);return!t&&e.length>0||k()(e).call(e,t)}setContext(t,e){const{instance:n}=e;if(this.instanceInitializing(n))return!1;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 j()(e).length>0&&(this.context.variables=zp({},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?T()(i=N()(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=N()(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=S()(o).call(o,(t=>(!n||t.namespace===n)&&t.execFunction(e,...r)));return M()(i).call(i,Boolean)}createInstance(t){return new Up(t,this)}destroy(t){var e;t?("string"==typeof t&&(t=this._instances[t]),t&&(t.destroy(),delete this._instances[t.namespace])):T()(e=L()(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=zp(zp({},t.context||this.appConfig.context),this.context),n=this.getMergedVariables(t);j()(n).length>0&&(e.variables=n);const r=zp(zp({},this.appConfig.defaults),t.defaults),o=zp(zp(zp({},this.appConfig),t),{},{api:zp(zp({},this.appConfig.api),t.api),context:j()(e).length?e:void 0,defaults:j()(r).length?r:void 0});return"function"==typeof this.appConfig?this.appConfig(o):o}getMergedVariables(t){return zp(zp(zp({},this.appConfig.context?.variables||{}),t.context?.variables||{}),this.context.variables||{})}},Vp=t=>{let{onOpenChat:e}=t;const{t:n}=Us(),r=wc(),{isOpen:o}=us(),i=(0,Ne.sO)(null),a=(0,Ne.sO)(null),s=(0,Ne.sO)(),c=rc(),l=(()=>{const t=(0,Ne.sO)(null),[e]=ec();return t.current=e,(0,Ne.I4)((e=>{Ot(t.current,(()=>{tc(e)}))}),[])})(),u=Vo(),f=zo().subTitle,p=Ve(Hs),{headerCollapseButtonId:d}=Mo(),h=u&&!p;return(0,Ne.bt)((()=>{!1===o&&!0===i.current&&l(a.current),i.current=o}),[o,l]),z("div",{className:Ic("toggle-button"),children:[z("div",{id:r,children:[z("p",{className:Ic("toggle-button__title"),children:n(h?"toggleButton.resumeTitle":"toggleButton.title")}),z("p",{className:Ic("toggle-button__subtitle"),children:h?f:n("toggleButton.subtitle")})]}),z("button",{type:"button","aria-labelledby":r,className:Ic("toggle-button__button"),ref:a,onMouseUp:()=>{s.current="mouse"},onKeyUp:()=>{s.current="key"},onClick:()=>{e(),"mouse"===s.current?c():"key"===s.current&&l(d)}})]})},qp=()=>{const{t:t}=Us(),{title:e,subTitle:n}=zo(),r=Bo(),{isOpen:o}=us(),i=Vo(),a=Ve(Hs),s=No(),c=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)&&z("div",{className:Ic("agent-info"),children:[z("div",{className:Ic("agent-info__graphic"),children:[c?z("img",{className:Ic(i?.avatar?"avatar":"icon"),src:c,alt:""}):z(Yc,{name:"avatar",size:"32"}),z("span",{className:Ic(u),"aria-hidden":"true",children:r})]}),z("div",{className:Ic("agent-info__body"),children:[z("p",{className:Ic("agent-info__heading"),children:e??t("header.title")}),z("p",{className:Ic("agent-info__text"),children:l})]})]})},Wp=t=>{let{children:e,onCloseChat:n}=t;const{headerCollapseButtonId:r}=Mo(),o=(0,Ne.sO)(null),{t:i}=Us();return z("header",{className:Ic("chat__header"),children:[e,z("div",{className:Ic("header-controls"),children:z("button",{type:"button",className:Ic("button","header-controls__collapse"),onClick:n,ref:o,id:r,children:z(Yc,{name:"chevronDown",size:"32",alt:i("header.collapseApp")})})})]})},Yp=function(t){let{children:e}=t;const{isOpen:n}=us();return Ve(Hs)?z(Ep,{}):z(U.HY,{children:[z(Jf,{children:[z("div",{className:Ic("chat__container__header"),children:z(Cp,{})}),e]}),z(bp,{}),n&&z(Wf,{})]})};const Gp=["categories"];function Kp(t,e){var n=j()(t);if(s()){var r=s()(t);e&&(r=C()(r).call(r,(function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jp(t){for(var e=1;e<arguments.length;e++){var n,r,o=null!=arguments[e]?arguments[e]:{};e%2?T()(n=Kp(Object(o),!0)).call(n,(function(e){w(t,e,o[e])})):f()?d()(t,f()(o)):T()(r=Kp(Object(o))).call(r,(function(e){v()(t,e,l()(o,e))}))}return t}var Xp=()=>{const{t:t}=Us(),{sendAction:e,addMessageBubble:n}=gs(),r=wc(),o=rc(),{sendPolite:i}=zs(),a=Ve(Hs),{hasCountdown:s,endCountdown:c}=bc(),{hasPrompt:l,continueChat:u}=_c(),f=qo("suggestion"),{body:p}=Cc({payload:f}),d=(0,Ne.Ye)((()=>{const t=f&&!a?p:[];return S()(t).call(t,(t=>{let{categories:e=[]}=t;return Jp(Jp({},Js(t,Gp)),{},{categories:e,classNames:["faqs__item",...S()(e).call(e,(t=>`faqs__item--${String(t).toLowerCase().replace(/[^a-z0-9_\\-]/,"")}`))]})}))}),[f,a,p]),h=(0,Ne.sO)(null),v=(0,Ne.sO)(!1),{isInline:y}=Wo(),m=ni(),g=!y&&m,b=(0,Ne.sO)(g),_=!!d.length,w=_&&!g,x=(0,Ne.sO)([]),O=_?d:x.current;x.current=O;const C=(0,Ne.sO)(null);(0,Ne.d4)((()=>{if(h.current!==d&&!g){if(_){const e=v.current?t("faq.srUpdatedText"):t("faq.srAvailableText");dt()((()=>{i(e)}),30)}else v.current&&i(t("faq.srUnavailableText"));h.current=d}!b.current&&g?(Ot(C.current,o),i(t("faq.srUnavailableText"))):!_&&v.current&&Ot(C.current,o),v.current=_,b.current=g}),[_,d,g,o,i,t]);const E=t("faq.headingText"),T=E?"section":"div";return z(ef,{isActive:w,transitionStartState:tf.notRendered,children:z(T,{className:Ic("faqs"),"aria-labelledby":E?r:null,ref:C,children:[E&&z("h2",{id:r,className:Ic("faqs__heading"),children:E}),!!O.length&&z("ul",{className:Ic("faqs__list"),children:S()(O).call(O,(t=>z("li",{className:Ic(t.classNames),children:z("button",{type:"button",onClick:()=>{(t=>{let{id:r,question:i}=t;s&&c(!0),l&&u(),e({type:fn,originMessage:f.id,body:{type:"faqclick",body:{faqId:r,faqQuestion:i}}}),n(i),o()})(t)},className:Ic("button","button--secondary"),children:[z(Yc,{name:"chevronRight",size:"8"}),t.question]})},t.id.toString())))})]})})},Qp=t=>{let{children:e}=t;const[,n]=ec(),{isOpen:r,isVisible:o,setVisibility:i}=us(),{zIndex:a,showFaq:s,layoutMode:c}=Po(),{isInline:l}=Wo(),u=Xs(),f=ni(),{locale:p}=Us(),d=(0,Ne.I4)((t=>{n(t)}),[n]),h=(0,Ne.Ye)((()=>{if(p&&document.querySelector("html").getAttribute("lang")!==p)return p}),[p]),v=["app","app--deprecated",...u];return r||"window"!==c||v.push("app--collapsed"),f&&v.push("app--user-responded"),v.push(`app--layout-${c}`),o&&z("section",{className:Ic(v),onKeyDown:t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&!l&&r&&i(Io.minimized)},lang:h,tabIndex:"-1",ref:d,style:{zIndex:a},"data-nosnippet":!0,children:[z("div",{className:Ic("app-wrapper"),children:e}),s&&z(Xp,{})]})};const Zp=t=>{let{children:e}=t;const{showInlineView:n,containerRef:r}=ps();return z("div",{ref:r,children:n&&e})};var td=()=>{const{isVisible:t,openChat:e,closeChat:n}=us();return t&&z(Zp,{children:z(Qp,{children:[z(Vp,{onOpenChat:e}),z(Wp,{onCloseChat:n,children:z(qp,{})}),z(Yp,{children:z(Ku,{})})]})})};const ed=()=>{const t=Qe();return{addEvent:e=>t(Ci(e)),clearEvents:()=>t(Ti()),setHistory:e=>t(qi(e)),setEventsRead:e=>t(zi(e)),setLoadedImageEventIds:e=>t(Gi(e)),ackEvent:e=>t(Oi(e)),setIsLoading:e=>t(Yi(e)),setParticipant:e=>t(Ki(e)),setHeaderTitle:e=>t(Vi(e)),setHeaderSubTitle:e=>t($i(e)),resetHistoryLoadedFlag:()=>t(Di()),setActiveService:()=>t(Ui()),initIdleDetachCountdown:e=>t(Ni(e)),decrementIdleDetachCountdownCounter:()=>t(ki()),stopIdleDetachCountdownCounter:()=>t(aa()),clearIdleDetachCountdown:()=>t(ji()),initResumeConversationPrompt:()=>t(Ri()),clearResumeConversationPrompt:()=>t(Ii()),setServiceDataItem:e=>t(Xi(e)),setFeatures:e=>t(Hi(e)),setFeatureEnabledState:e=>t(Bi(e)),clearFeatures:()=>t(Ai()),setInitialState:e=>t(Wi(e)),setUserSelectedOptions:e=>t(oa(e)),setUserSelectedOption:e=>t(ra(e)),showOption:e=>t(ia(e)),hideOption:()=>t(Pi()),setServiceEntryMetadata:e=>t(Qi(e)),setBlockAutoEntrySwitch:e=>t(Fi(e)),setActiveEntryType:e=>t(Li(e)),setUserEntryType:e=>t(na(e)),registerUpload:e=>t(Mi(e)),setUploadProgress:e=>t(ea(e)),setUploadComplete:e=>t(Zi(e)),setUploadError:e=>t(ta(e)),clearAllUploads:()=>t(Ei()),setSeamlyContainerElement:e=>t(Ji(e))}};var nd=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 $p(t);window.seamly={push:i()(n=o.push).call(n,o)},o.push(...r)}}(),r}()}));
|