%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home1/dimen328/dimensaocondominios.com.br--/espace/verification/index/
Upload File :
Create Path :
Current File : //home1/dimen328/dimensaocondominios.com.br--/espace/verification/index/main.min.js.tВlВchargement

/*!
 * messenger
 * @version: 2.4.17
 * @license: Genesys Telecom Labs
 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("__Messenger",[],t):"object"==typeof exports?exports.__Messenger=t():e.__Messenger=t()}("undefined"!=typeof self?self:this,(function(){return function(e){function t(t){for(var r,a,s=t[0],u=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(l&&l(t);p.length;)p.shift()();return i.push.apply(i,c||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(i.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},o={29:0,3:0,34:0},i=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.e=function(e){var t=[],n=o[e];if(0!==n)if(n)t.push(n[2]);else{var r=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=r);var i,s=document.createElement("script");s.charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.src=function(e){return a.p+""+({2:"messagingservicemiddleware",6:"i18n/vendors/date-ar",7:"i18n/vendors/date-cs",8:"i18n/vendors/date-da",9:"i18n/vendors/date-de",10:"i18n/vendors/date-en",11:"i18n/vendors/date-es",12:"i18n/vendors/date-fi",13:"i18n/vendors/date-fr",14:"i18n/vendors/date-he",15:"i18n/vendors/date-it",16:"i18n/vendors/date-ja",17:"i18n/vendors/date-ko",18:"i18n/vendors/date-nb",19:"i18n/vendors/date-nl",20:"i18n/vendors/date-pl",21:"i18n/vendors/date-pt",22:"i18n/vendors/date-pt-br",23:"i18n/vendors/date-ru",24:"i18n/vendors/date-sv",25:"i18n/vendors/date-th",26:"i18n/vendors/date-tr",27:"i18n/vendors/date-zh-cn",28:"i18n/vendors/date-zh-tw",31:"messenger"}[e]||e)+".min.js"}(e);var u=new Error;i=function(t){s.onerror=s.onload=null,clearTimeout(c);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",u.name="ChunkLoadError",u.type=r,u.request=i,n[1](u)}o[e]=void 0}};var c=setTimeout((function(){i({type:"timeout",target:s})}),12e4);s.onerror=s.onload=i,document.head.appendChild(s)}return Promise.all(t)},a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var s=("undefined"!=typeof self?self:this).webpackJsonp_Messenger=("undefined"!=typeof self?self:this).webpackJsonp_Messenger||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var l=u;return i.push([555,0,1]),n()}({1:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},121:function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var d=0;d<s.length;d++)i.call(n,s[d])&&(u[s[d]]=n[s[d]])}}return u}},123:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},137:function(e,t,n){var r=n(138);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},138:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},139:function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),s=new O(o||[]);return r(a,"_invoke",{value:x(e,n,s)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function f(){}function h(){}var g={};u(g,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(S([])));v&&v!==t&&n.call(v,i)&&(g=v);var D=h.prototype=p.prototype=Object.create(g);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var o;r(this,"_invoke",{value:function(r,i){function a(){return new t((function(o,a){!function r(o,i,a,s){var u=l(e[o],e,i);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(r,i,o,a)}))}return o=o?o.then(a,a):a()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return F()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:F}}function F(){return{value:void 0,done:!0}}return f.prototype=h,r(D,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:f,configurable:!0}),f.displayName=u(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,s,"GeneratorFunction")),e.prototype=Object.create(D),e},e.awrap=function(e){return{__await:e}},b(y.prototype),u(y.prototype,a,(function(){return this})),e.AsyncIterator=y,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new y(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(D),u(D,s,"Generator"),u(D,i,(function(){return this})),u(D,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}(e.exports);try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},14:function(e,t,n){"use strict";n.d(t,"z",(function(){return r})),n.d(t,"y",(function(){return o})),n.d(t,"I",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"n",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"L",(function(){return f})),n.d(t,"B",(function(){return h})),n.d(t,"C",(function(){return g})),n.d(t,"A",(function(){return m})),n.d(t,"K",(function(){return v})),n.d(t,"j",(function(){return D})),n.d(t,"i",(function(){return b})),n.d(t,"o",(function(){return y})),n.d(t,"E",(function(){return x})),n.d(t,"q",(function(){return w})),n.d(t,"O",(function(){return C})),n.d(t,"p",(function(){return E})),n.d(t,"P",(function(){return O})),n.d(t,"F",(function(){return S})),n.d(t,"M",(function(){return F})),n.d(t,"k",(function(){return j})),n.d(t,"m",(function(){return k})),n.d(t,"f",(function(){return T})),n.d(t,"r",(function(){return A})),n.d(t,"H",(function(){return P})),n.d(t,"u",(function(){return I})),n.d(t,"t",(function(){return M})),n.d(t,"Q",(function(){return B})),n.d(t,"G",(function(){return L})),n.d(t,"x",(function(){return R})),n.d(t,"s",(function(){return _})),n.d(t,"w",(function(){return N})),n.d(t,"J",(function(){return z})),n.d(t,"v",(function(){return $})),n.d(t,"g",(function(){return H})),n.d(t,"h",(function(){return q})),n.d(t,"D",(function(){return V})),n.d(t,"N",(function(){return U}));var r="LauncherOpened",o="LauncherMinimized",i="MessengerClosed",a="AttachmentFromUser",s="AttachmentFromAgent",u="AttachmentRemoved",c="AttachmentClicked",l="AttachmentDownloaded",d="FetchedPastMessages",p="DesktopMode",f="MobileMode",h="MessageOnHover",g="MessageOnTouch",m="MessageOnFocus",v="Messenger Open",D="Conversation Setup",b="Conversation Restore",y="Fetching Previous Messages",x="Message RoundTrip",w="Fetch history failed",C="Unable to fetch history",E="Not able to fetch history",O="Unable to restore",S="Message only contains whitespaces",F="Cannot send messages to readOnly session",j="Cannot start conversation.",k="There is already an active conversation.",T="Error on Logout",A="Error on getting WebSocket data.",P="Messenger is already opened.",I="Invalid open command. Should specify supported plugin name.",M="Invalid open command. Should specify plugin name.",B="User is not authenticated",L="Messenger is already closed.",R="Launcher button is already visible",_="Invalid configuration of Launcher button",N="Launcher button is already hidden",z="No configuration is provided to Messenger",$="Error from knowledge component API",H="Messenger autostarted",q="Autostart first system message",V="Message received out of order",U="SessionCleared"},142:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},143:function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports},144:function(e,t){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},145:function(e,t,n){
/*!
 * @genesys/messenger-knowledge-components
 * @version: 0.10.1-dev-WEBMESS-949.1
 * @license: UNLICENSED
 */
e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}([function(e,t){e.exports=n(0)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(152)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(431)},function(e,t){e.exports=n(37)},function(e,t){(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{appTypes:()=>u,commandFactory:()=>we,genesysService:()=>O,initKnowledgeServicePlugin:()=>be,knowledgeServiceCommands:()=>h,knowledgeServiceEvents:()=>g});const r=JSON.parse('{"B":{"u":"KnowledgeService","i":60000}}');var o;!function(e){e.CONFIG_NOT_FOUND_ERROR="config.not.found",e.CONSTRAINT_VALIDATION_ERROR="constraint.validation",e.SESSION_NOT_FOUND_ERROR="session.not.found",e.APP_NOT_FOUND="app.not.found",e.KNOWLEDGE_BASE_NOT_ENABLED="messenger.knowledgeBase.not.enabled",e.KNOWLEDGE_BASE_ID_MISSING="messenger.knowledgeBase.id.not.set",e.NOT_FOUND="not.found",e.BAD_REQUEST="bad.request",e.PLUGIN_NAME_TAKEN="plugin.name.is.already.taken",e.UNKNOWN_ERROR="unknown.error"}(o||(o={}));var i=function(e){return-1!==(null==e?void 0:e.indexOf("The query for the search must contain at least 3 characters."))?"Your search must contain at least 3 characters.":-1!==(null==e?void 0:e.indexOf("not allowed to be empty"))?"Search query was empty. It must contain at least 3 characters.":"Something went wrong. Please try again later."},a=function(e){if(!e.data)return{code:o.UNKNOWN_ERROR,message:"Something went wrong. Please try again later."};var t=e.data,n=t.code,r=void 0===n?o.UNKNOWN_ERROR:n,a=t.message;switch(r){case o.CONFIG_NOT_FOUND_ERROR:return{code:o.CONFIG_NOT_FOUND_ERROR,message:"Config not found."};case o.CONSTRAINT_VALIDATION_ERROR:return{code:o.CONSTRAINT_VALIDATION_ERROR,message:i(a)};case o.SESSION_NOT_FOUND_ERROR:return{code:o.SESSION_NOT_FOUND_ERROR,message:"Invalid session please refresh."};case o.APP_NOT_FOUND:return{code:o.APP_NOT_FOUND,message:"Something went wrong. Please try again later."};case o.KNOWLEDGE_BASE_NOT_ENABLED:return{code:o.KNOWLEDGE_BASE_NOT_ENABLED,message:"Something went wrong. Please try again later."};case o.KNOWLEDGE_BASE_ID_MISSING:return{code:o.KNOWLEDGE_BASE_ID_MISSING,message:"Something went wrong. Please try again later."};case o.NOT_FOUND:return{code:o.NOT_FOUND,message:"Entity not found."};case o.BAD_REQUEST:return{code:o.BAD_REQUEST,message:a};case o.PLUGIN_NAME_TAKEN:return{code:o.PLUGIN_NAME_TAKEN,message:"Can't register plugin, name is already taken"};default:return{code:r,message:"Something went wrong. Please try again later."}}};const s=function(e,t,n){void 0===t&&(t=""),O.log({message:e,data:t,pluginName:n})};var u,c,l,d=r.B.u,p=function(e){return function(t){return"".concat(e,".").concat(t)}}(d);!function(e){e.supportCenter="SupportCenter",e.messenger="MessengerKnowledgeApp"}(u||(u={})),function(e){e.search="search",e.getSuggestions="getSuggestions",e.getCategories="getCategories",e.getArticle="getArticle",e.getArticlesByCategory="getArticlesByCategory",e.getTopViewedArticles="getTopViewedArticles",e.getSession="getSession",e.sendFeedback="sendFeedback"}(c||(c={})),function(e){e.error="error",e.suggestions="suggestions",e.noSuggestionsFound="noSuggestionsFound",e.searchResults="searchResults",e.noSearchResultsFound="noSearchResultsFound",e.article="article",e.noArticleFound="noArticleFound",e.categories="categories",e.noCategoriesFound="noCategoriesFound",e.articlesByCategory="articlesByCategory",e.noArticlesByCategoryFound="noArticlesByCategoryFound",e.topViewedArticles="topViewedArticles",e.noTopViewedArticlesFound="noTopViewedArticlesFound",e.feedbackSent="feedbackSent"}(l||(l={}));var f,h={search:p(c.search),getSuggestions:p(c.getSuggestions),getCategories:p(c.getCategories),getArticle:p(c.getArticle),getArticlesByCategory:p(c.getArticlesByCategory),getTopViewedArticles:p(c.getTopViewedArticles),getSession:p(c.getSession),sendFeedback:p(c.sendFeedback)},g={error:p(l.error),suggestions:p(l.suggestions),noSuggestionsFound:p(l.noSuggestionsFound),searchResults:p(l.searchResults),noSearchResultsFound:p(l.noSearchResultsFound),article:p(l.article),noArticleFound:p(l.noArticleFound),categories:p(l.categories),noCategoriesFound:p(l.noCategoriesFound),articlesByCategory:p(l.articlesByCategory),topViewedArticles:p(l.topViewedArticles),noArticlesByCategoryFound:p(l.noArticlesByCategoryFound),noTopViewedArticlesFound:p(l.noTopViewedArticlesFound),feedbackSent:p(l.feedbackSent)},m=function(){if(!f)throw a({data:{code:o.CONFIG_NOT_FOUND_ERROR}});return s("[service] get config",f,d),f};const v=function(){var e;return"".concat(null===(e=m())||void 0===e?void 0:e.apiEndpoint,"/api")},D=m;var b=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},y=function(e,t){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(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},x={},w=function(){var e,t=(null===(e=D())||void 0===e?void 0:e.storage)||"LocalStorage";return{get:"".concat(t,".get"),set:"".concat(t,".set")}},C=function(e,t){return b(void 0,void 0,void 0,(function(){return y(this,(function(n){if(!e)throw new Error("Mandatory parameter is missing: name");return x[e]||(x[e]=E(e,t)),[2,x[e]]}))}))},E=function(e,t){return void 0===t&&(t=function(e){return b(void 0,void 0,void 0,(function(){return y(this,(function(e){return[2]}))}))}),b(void 0,void 0,void 0,(function(){var n;return y(this,(function(i){return n=new Promise((function(n,r){Genesys("registerPlugin",e,(function(e){e.subscribe("Identifiers.ready",(function(){return b(void 0,void 0,void 0,(function(){return y(this,(function(r){switch(r.label){case 0:return[4,t(e)];case 1:return r.sent(),e.ready(),n(e),[2]}}))}))}))}),r)})),[2,(s=n,u=r.B.i,c="register ".concat(e," plugin timed out"),void 0===c&&(c="promise timeout error"),b(void 0,void 0,void 0,(function(){var e,t,n,r;return y(this,(function(i){switch(i.label){case 0:e=Symbol(c),n=new Promise((function(n,r){t=setTimeout(r,u,e)})),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,Promise.race([s,n])];case 2:return[2,i.sent()];case 3:if(r=i.sent(),e===r);else if("string"==typeof r&&-1!==r.indexOf("Name is already taken"))throw a({data:{code:o.PLUGIN_NAME_TAKEN}});throw a(r);case 4:return clearTimeout(t),[7];case 5:return[2]}}))})))];var s,u,c}))}))};const O={getFromStorage:function(e){var t=e.name,n=e.pluginName;return b(void 0,void 0,void 0,(function(){var e;return y(this,(function(r){switch(r.label){case 0:return[4,C(n)];case 1:return[4,r.sent().command(w().get,{name:t})];case 2:return[2,(e=r.sent())==="".concat(t," not found")?null:e]}}))}))},saveToStorage:function(e){var t=e.name,n=e.value,r=e.pluginName;return b(void 0,void 0,void 0,(function(){return y(this,(function(e){switch(e.label){case 0:return[4,C(r)];case 1:return[4,e.sent().command(w().set,{name:t,value:n})];case 2:return e.sent(),[2]}}))}))},sendRequest:function(e){var t=e.url,n=e.method,r=e.requestData,o=e.pluginName;return b(void 0,void 0,void 0,(function(){return y(this,(function(e){switch(e.label){case 0:return[4,C(o)];case 1:return[2,e.sent().command("MessengerHelper.makeRequest",{url:t,method:n,data:r})]}}))}))},getPlugin:C,initPlugin:C,getStorageCommands:w,publish:function(e){var t=e.message,n=e.data,r=e.pluginName;return b(void 0,void 0,void 0,(function(){return y(this,(function(e){switch(e.label){case 0:return[4,C(r)];case 1:return e.sent().publish(t,n),[2]}}))}))},log:function(e){var t=e.message,n=e.data,r=e.pluginName;return b(void 0,void 0,void 0,(function(){return y(this,(function(e){switch(e.label){case 0:return[4,C(r)];case 1:return e.sent().log(t,n),[2]}}))}))},sendCommand:function(e){var t=e.command,n=e.data,r=e.pluginName;return b(void 0,void 0,void 0,(function(){return y(this,(function(e){switch(e.label){case 0:return[4,C(r)];case 1:return[2,e.sent().command(t,n)]}}))}))}};var S=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},F=function(e,t){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(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},j=[],k=[],T=function(e){var t=e.interceptors,n=e.context;return S(void 0,void 0,void 0,(function(){var e,r,o;return F(this,(function(i){switch(i.label){case 0:e=n,r=0,o=t,i.label=1;case 1:return r<o.length?[4,(0,o[r])(e)]:[3,4];case 2:e=i.sent(),i.label=3;case 3:return r++,[3,1];case 4:return[2,e]}}))}))},A=[],P=["sessionId","orgId","kbId","articleId","categoryId","documentId","searchId","pageSize"];const I=function(e,t){void 0===t&&(t=""),s(e,t,r.B.u)};var M=function(){return(M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},B=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},L=function(e,t){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(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},R=function(e){return S(void 0,void 0,void 0,(function(){return F(this,(function(t){return[2,T({interceptors:k,context:e})]}))}))},_=function(e){var t=e.serviceUrl,n=e.serviceOperation,r=e.requestData,o=e.ids,i=void 0===o?{}:o;return B(void 0,void 0,void 0,(function(){var e,o,a,s,u,c,l,p;return L(this,(function(f){switch(f.label){case 0:e=function(e,t){return P.forEach((function(n){var r,o=null!==(r=t[n])&&void 0!==r?r:"";e=function(e,t,n){if(-1!==e.indexOf("{".concat(t,"}"))&&!n)throw new Error("".concat(t," is not defined, however its required by the operation"));return e.replace("{".concat(t,"}"),n)}(e,n,o)})),e}(n.url,i),o=t+e,a=n.method,s=0,u=3,c=null,f.label=1;case 1:if(!(s<u))return[3,6];f.label=2;case 2:return f.trys.push([2,4,,5]),I("[service] send request to: ".concat(a.toString().toUpperCase()," ").concat(o),JSON.stringify(r)),[4,O.sendRequest({url:o,method:a,requestData:r,pluginName:d})];case 3:return l=f.sent(),I("[service] response received",l.data),[2,l.data];case 4:return(p=f.sent()).data&&!function(e){for(var t=!0,n=0,r=A;n<r.length;n++)(0,r[n])(e)&&(t=!1);return t}(p.data)?[2,p.data]:(I("[service] http call failed on url ".concat(a.toString().toUpperCase()," ").concat(o," \n        with status ").concat(p.status,", Try ").concat(s+1),p),c=p,s++,[3,5]);case 5:return[3,1];case 6:throw c}}))}))};const N=function(e){var t=e.serviceUrl,n=e.serviceOperation,r=e.requestData,o=e.ids,i=e.appType;return B(void 0,void 0,void 0,(function(){var e,a;return L(this,(function(s){switch(s.label){case 0:return[4,(u={serviceUrl:t,serviceOperation:n,requestData:r,appType:i,ids:o},S(void 0,void 0,void 0,(function(){return F(this,(function(e){return[2,T({interceptors:j,context:u})]}))})))];case 1:return e=s.sent(),[4,_(e)];case 2:return a=s.sent(),[4,R(M({responseData:a},e))];case 3:return[2,s.sent().responseData]}var u}))}))},z=JSON.parse('{"J":{"ed":{"method":"POST","url":"/v2/knowledge/guest/sessions"},"yC":{"method":"POST","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/search?expand=documentAlternatives,documentVariations"},"JF":{"method":"POST","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/search/suggestions"},"tj":{"method":"GET","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}?useContext=true"},"Zd":{"method":"GET","url":"/v2/knowledge/guest/sessions/{sessionId}/documents?pageSize=100&categoryId={categoryId}&useContext=true"},"L4":{"method":"GET","url":"/v2/knowledge/guest/sessions/{sessionId}/documents?sortBy=ViewCount&sortOrder=Desc&pageSize={pageSize}&useContext=true"},"CP":{"method":"GET","url":"/v2/knowledge/guest/sessions/{sessionId}/categories?pageSize=100"},"fA":{"method":"POST","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/feedback"},"FG":{"method":"PATCH","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/search/{searchId}"},"jn":{"method":"POST","url":"/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/views"}},"S":{"MessengerKnowledgeApp":[{"id":"3519ec85-3ec2-4932-9e7c-483fa382a9b1","values":[{"id":"d49d6170-8e3b-47e2-9f1c-a030822c7f4f"}]}],"SupportCenter":[{"id":"3519ec85-3ec2-4932-9e7c-483fa382a9b1","values":[{"id":"bec0bb26-6b11-4917-94ff-4d7106e44ec1"}]}]}}');var $=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},H=function(e,t){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(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};const q=function(e){var t=e.sessionId,n=e.query,r=e.pageSize,o=void 0===r?3:r,i=e.appType;return $(void 0,void 0,void 0,(function(){var e,r,s,u,c;return H(this,(function(l){switch(l.label){case 0:e=v(),r={query:n,pageSize:o},l.label=1;case 1:return l.trys.push([1,3,,4]),[4,N({serviceUrl:e,serviceOperation:z.J.JF,requestData:r,appType:i,ids:{sessionId:t}})];case 2:return s=l.sent(),u=s.results?s.results:[],I("[service] autocomplete parsed results",u),[2,u];case 3:throw c=l.sent(),I("[service] autocomplete error",c),a(c);case 4:return[2]}}))}))},V=function(e){var t=e.sessionId,n=e.query,r=e.pageSize,o=void 0===r?3:r,i=e.appType,s=e.queryType;return $(void 0,void 0,void 0,(function(){var e,r,u,c,l,d,p;return H(this,(function(f){switch(f.label){case 0:e=v(),r={query:n,pageSize:o,pageNumber:1},s&&(r.queryType=s),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,N({serviceUrl:e,serviceOperation:z.J.yC,requestData:r,appType:i,ids:{sessionId:t}})];case 2:return u=f.sent(),c=u.results?u.results:[],l=u.searchId,I("[service] search parsed results",d={searchResults:c,searchId:l}),[2,d];case 3:throw p=f.sent(),I("[service] search error",p),a(p);case 4:return[2]}}))}))};var U=function(){return(U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},W=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},G=function(e){var t,n,r=e.ids,o=e.serviceUrl,i=e.serviceOperation,a=e.nextUrl,s=e.entities,u=e.appType;return n=function(){var e,t;return function(e,t){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(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,(function(n){switch(n.label){case 0:return a?[4,N({serviceUrl:o,serviceOperation:U(U({},i),{url:a}),ids:r,appType:u})]:[2,s];case 1:return e=n.sent(),[2,G({ids:r,serviceUrl:o,serviceOperation:i,nextUrl:null===(t=null==e?void 0:e.nextUri)||void 0===t?void 0:t.replace(/^\/api/g,""),entities:W(W([],s,!0),e.entities,!0),appType:u})]}}))},new((t=void 0)||(t=Promise))((function(e,r){function o(e){try{a(n.next(e))}catch(e){r(e)}}function i(e){try{a(n.throw(e))}catch(e){r(e)}}function a(n){var r;n.done?e(n.value):(r=n.value,r instanceof t?r:new t((function(e){e(r)}))).then(o,i)}a((n=n.apply(void 0,[])).next())}))};const K=function(e){var t,n,r=e.sessionId,o=e.appType;return n=function(){var e,t,n,i,s;return function(e,t){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(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,(function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),[4,v()];case 1:return e=u.sent(),t=z.J.CP,[4,G({ids:{sessionId:r},serviceUrl:e,serviceOperation:t,appType:o,nextUrl:t.url,entities:[]})];case 2:return n=u.sent(),i=function(e){return e.map((function(e){var t;return{id:e.id,name:e.name,description:e.description,parentId:null===(t=null==e?void 0:e.parentCategory)||void 0===t?void 0:t.id}}))}(n),I("[service] get categories return value",i),[2,i];case 3:throw s=u.sent(),I("[service] get categories error",s),a(s);case 4:return[2]}}))},new((t=void 0)||(t=Promise))((function(e,r){function o(e){try{a(n.next(e))}catch(e){r(e)}}function i(e){try{a(n.throw(e))}catch(e){r(e)}}function a(n){var r;n.done?e(n.value):(r=n.value,r instanceof t?r:new t((function(e){e(r)}))).then(o,i)}a((n=n.apply(void 0,[])).next())}))};var J=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},Y=function(e,t){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(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};const Q=function(e){var t=e.sessionId,n=e.articleId,r=e.appType;return J(void 0,void 0,void 0,(function(){var e,o,i;return Y(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),e=v(),[4,N({serviceUrl:e,serviceOperation:z.J.tj,ids:{sessionId:t,documentId:n},appType:r})];case 1:return o=s.sent(),I("[service] get article return value",o),[2,o];case 2:throw i=s.sent(),I("[service] get article error",i),a(i);case 3:return[2]}}))}))},Z=function(e){var t=e.sessionId,n=e.categoryId,r=e.appType;return J(void 0,void 0,void 0,(function(){var e,o,i,s;return Y(this,(function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),[4,v()];case 1:return e=u.sent(),[4,N({serviceUrl:e,serviceOperation:z.J.Zd,ids:{sessionId:t,categoryId:n},appType:r})];case 2:return o=u.sent(),i=o.entities.map((function(e){return{id:e.id,title:e.title}})),I("[service] get articles by category return value",i),[2,i];case 3:throw s=u.sent(),I("[service] get articles by category error",s),a(s);case 4:return[2]}}))}))},X=function(e){var t=e.sessionId,n=e.pageSize,r=void 0===n?5:n,o=e.appType;return J(void 0,void 0,void 0,(function(){var e,n,i,s;return Y(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),e=v(),[4,N({serviceUrl:e,serviceOperation:z.J.L4,ids:{sessionId:t,pageSize:r.toString()},appType:o})];case 1:return n=u.sent(),i=n.entities.map((function(e){return{id:e.id,title:e.title}})),I("[service] get top viewed articles return value",i),[2,i];case 2:throw s=u.sent(),I("[service] get top viewed articles error",s),a(s);case 3:return[2]}}))}))};var ee=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},te=function(e,t){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(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},ne=null,re=null,oe=function(e,t){switch(t){case u.messenger:return"".concat(e,":gcmksid");case u.supportCenter:return"".concat(e,":gcscsid")}},ie=function(e,t){return ee(void 0,void 0,void 0,(function(){var n;return te(this,(function(r){switch(r.label){case 0:return I("[service] checking session storage"),[4,O.getFromStorage({name:oe(e,t),pluginName:d})];case 1:return(n=r.sent())?(I("[service] session found in storage"),[2,{id:n}]):(I("[service] sessionId not found in storage"),[2,null])}}))}))},ae=function(e){var t=e.appId,n=e.appType,r=e.customerId;return ee(void 0,void 0,void 0,(function(){return te(this,(function(e){return I("[service] - new - renew session called"),[2,re||se({appId:t,appType:n,customerId:r})]}))}))},se=function(e){var t=e.appId,n=e.appType,r=e.customerId;return ee(void 0,void 0,void 0,(function(){var e,o,i,s;return te(this,(function(u){switch(u.label){case 0:e=v(),o=z.S[n],i={app:{deploymentId:t,type:n},customerId:r,pageUrl:window.location.href,contexts:o},u.label=1;case 1:return u.trys.push([1,3,,4]),[4,re=N({serviceUrl:e,serviceOperation:z.J.ed,requestData:i,appType:n})];case 2:return ne=u.sent(),re=null,function(e){var t=e.appId,n=e.session,r=e.appType;ee(void 0,void 0,void 0,(function(){return te(this,(function(e){return I("[service] saving session to session storage"),O.saveToStorage({name:oe(t,r),value:n.id,pluginName:d}),[2]}))}))}({appId:t,session:ne,appType:n}),[2,ne];case 3:throw s=u.sent(),a(s);case 4:return[2]}}))}))},ue=function(e){return"session.not.found"===(null==e?void 0:e.code)};(function(e){A.push(e)})(ue),function(e){(function(e,t){t.push(e)})(e,k)}((function(e){return ee(void 0,void 0,void 0,(function(){var t,n,r,o,i,s,u,c;return te(this,(function(l){switch(l.label){case 0:return(null==e?void 0:e.responseData)&&ue(e.responseData)?(t=D(),n=t.appId,r=t.customerId,o=e.appType,[4,ae({appId:n,appType:o,customerId:r})]):[3,6];case 1:i=l.sent(),(null===(c=null==e?void 0:e.ids)||void 0===c?void 0:c.sessionId)&&(e.ids.sessionId=i.id),l.label=2;case 2:return l.trys.push([2,5,,6]),(null==e?void 0:e.responseData)?(s=e,[4,N(e)]):[3,4];case 3:s.responseData=l.sent(),l.label=4;case 4:return[3,6];case 5:throw u=l.sent(),a(u);case 6:return[2,e]}}))}))}));const ce=function(e){var t=e.appId,n=e.appType,r=e.customerId;return ee(void 0,void 0,void 0,(function(){return te(this,(function(e){switch(e.label){case 0:return I("[service] - new - create session called"),[4,ie(t,n)];case 1:return[2,(ne=e.sent())||re||se({appId:t,appType:n,customerId:r})]}}))}))},le=function(e){var t,n,r=e.sessionId,o=e.documentId,i=e.documentVariationId,s=e.documentVersionId,u=e.rating,c=e.searchId,l=e.reason,d=e.comment,p=e.queryType,f=e.appType;return n=function(){var e,t,n,h;return function(e,t){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(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,(function(g){switch(g.label){case 0:return g.trys.push([0,3,,4]),[4,v()];case 1:return e=g.sent(),t={document:{versionId:s},documentVariation:{id:i},rating:u},c&&(t.search={id:c}),l&&(t.reason=l),d&&(t.comment=d),p&&(t.queryType=p),[4,N({serviceUrl:e,serviceOperation:z.J.fA,requestData:t,ids:{sessionId:r,documentId:o},appType:f})];case 2:return n=g.sent(),I("[service] send feedback successful",n),[2,n];case 3:throw h=g.sent(),I("[service] send feedback error",h),a(h);case 4:return[2]}}))},new((t=void 0)||(t=Promise))((function(e,r){function o(e){try{a(n.next(e))}catch(e){r(e)}}function i(e){try{a(n.throw(e))}catch(e){r(e)}}function a(n){var r;n.done?e(n.value):(r=n.value,r instanceof t?r:new t((function(e){e(r)}))).then(o,i)}a((n=n.apply(void 0,[])).next())}))};var de,pe;!function(e){e.Unknown="Unknown",e.Article="Article",e.AutoSearch="AutoSearch",e.Category="Category",e.ManualSearch="ManualSearch",e.Recommendation="Recommendation",e.Suggestion="Suggestion"}(de||(de={})),function(e){e.AutoSearch="AutoSearch",e.ManualSearch="ManualSearch",e.Suggestion="Suggestion"}(pe||(pe={}));var fe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},he=function(e,t){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(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},ge=function(){return(ge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},me=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},ve=function(e,t){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(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},De=!1;(null===window||void 0===window?void 0:window.Genesys)&&window.Genesys("subscribe","KnowledgeService.ready",(function(){De=!0}));var be=function(e){var t=e.deploymentId,n=e.apiEndpoint,r=e.appType;return me(void 0,void 0,void 0,(function(){return ve(this,(function(e){switch(e.label){case 0:if(!r)throw new Error("Mandatory field is missing: appType. Allowable values are: ".concat(Object.values(u)));if(!Object.values(u).includes(r))throw new Error('Value "'.concat(r,'" is not valid appType. Allowable values are: ').concat(Object.values(u)));if(De)throw new Error("KnowledgeService plugin already registered, skip initialization");return"function"!=typeof window.Genesys?[3,2]:[4,O.getPlugin(d,(function(e){return me(void 0,void 0,void 0,(function(){var i,p,h;return ve(this,(function(g){switch(g.label){case 0:return e?[4,e.command("Identifiers.getCustomerId")]:[2];case 1:if(i=g.sent(),!(t=t||(null===(p=e.data("GenesysJS.snippetConfig"))||void 0===p?void 0:p.deploymentId)))throw new Error("Mandatory field is missing: deploymentId");if(!(n=n||(null===(h=e.data("GenesysJS.deploymentConfig"))||void 0===h?void 0:h.apiEndpoint)))throw new Error("Mandatory field is missing: apiEndpoint");return s("[service] set config",m={customerId:i,deploymentId:t,apiEndpoint:n,appType:r,appId:t},d),f=m,function(e){var t=D();if(t){var n=t.customerId,r=t.deploymentId,i=function(e){var t=e.result,n=void 0===t?{}:t,o=e.meta,i=void 0===o?{}:o,a=e.sessionId;return me(void 0,void 0,void 0,(function(){return ve(this,(function(e){return[2,ge(ge({sessionId:a,deploymentId:r},i),{result:n})]}))}))},s=function(e){return me(void 0,void 0,void 0,(function(){var t;return ve(this,(function(o){switch(o.label){case 0:return t="SupportCenter"===e?u.supportCenter:u.messenger,[4,ce({appType:t,customerId:n,appId:r})];case 1:return[2,{sessionId:o.sent().id,appType:t}]}}))}))},d=function(t,n){void 0===n&&(n={}),e.publish(t,n)},p=function(e){return function(t){return me(void 0,void 0,void 0,(function(){var n;return ve(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t(e)];case 1:return r.sent(),[3,3];case 2:return n=r.sent(),d(l.error,n),e.reject(n),[3,3];case 3:return[2]}}))}))}};e.registerCommand(c.search,(function(e){return p(e)((function(e){return me(void 0,void 0,void 0,(function(){var t,n,r,o,a,u,c,p,f,h,g;return ve(this,(function(m){switch(m.label){case 0:return t=e.data,n=t.query,r=t.pageSize,o=t.queryType,[4,s(e.commander)];case 1:return a=m.sent(),u=a.sessionId,c=a.appType,[4,V({sessionId:u,query:n,pageSize:r,appType:c,queryType:o})];case 2:return p=m.sent(),f=p.searchResults,h=p.searchId,[4,i({result:f,meta:{searchId:h},sessionId:u})];case 3:return g=m.sent(),(null==f?void 0:f.length)?d(l.searchResults,g):d(l.noSearchResultsFound),e.resolve(g),[2]}}))}))}))})),e.registerCommand(c.getSuggestions,(function(e){return p(e)((function(e){return me(void 0,void 0,void 0,(function(){var t,n,r,o,a,u,c,p;return ve(this,(function(f){switch(f.label){case 0:return t=e.data,n=t.query,r=t.pageSize,[4,s(e.commander)];case 1:return o=f.sent(),a=o.sessionId,u=o.appType,[4,q({sessionId:a,query:n,pageSize:r,appType:u})];case 2:return c=f.sent(),[4,i({result:c,sessionId:a})];case 3:return p=f.sent(),(null==c?void 0:c.length)?d(l.suggestions,p):d(l.noSuggestionsFound),e.resolve(p),[2]}}))}))}))})),e.registerCommand(c.getCategories,(function(e){return p(e)((function(e){return me(void 0,void 0,void 0,(function(){var t,n,r,o,a;return ve(this,(function(u){switch(u.label){case 0:return[4,s(e.commander)];case 1:return t=u.sent(),n=t.sessionId,r=t.appType,[4,K({sessionId:n,appType:r})];case 2:return o=u.sent(),[4,i({result:o,sessionId:n})];case 3:return a=u.sent(),(null==o?void 0:o.length)?d(l.categories,a):d(l.noCategoriesFound),e.resolve(a),[2]}}))}))}))})),e.registerCommand(c.getArticle,(function(e){return p(e)((function(e){return me(void 0,void 0,void 0,(function(){var t,n,r,u,c,p,f,h,g,m,D;return ve(this,(function(b){switch(b.label){case 0:return t=e.data,n=t.searchId,r=t.articleId,u=t.queryType,[4,s(e.commander)];case 1:c=b.sent(),p=c.sessionId,f=c.appType,h={},g={},n&&function(e){var t=e.sessionId,n=e.searchId,r=e.documentId,o=e.appType;fe(void 0,void 0,void 0,(function(){var e,i,s;return he(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),e=v(),i={answered:!0,selectedAnswer:{document:{id:r}}},[4,N({serviceUrl:e,serviceOperation:z.J.FG,requestData:i,ids:{sessionId:t,searchId:n},appType:o})];case 1:return u.sent(),I("[service] submit searchAnswer analytics successful"),[2,{}];case 2:throw s=u.sent(),I("[service] submit searchAnswer analytics error",s),a(s);case 3:return[2]}}))}))}({sessionId:p,searchId:n,documentId:r,appType:f}),b.label=2;case 2:return b.trys.push([2,5,,6]),[4,Q({sessionId:p,articleId:r,appType:f})];case 3:return h=b.sent(),[4,i({result:h,sessionId:p})];case 4:return g=b.sent(),d(l.article,g),[3,6];case 5:throw(null==(m=b.sent())?void 0:m.code)===o.NOT_FOUND&&d(l.noArticleFound),m;case 6:return(D=(null==h?void 0:h.variations)&&h.variations[0])&&function(e){var t=e.sessionId,n=e.documentId,r=e.documentVariationId,o=e.documentVersionId,i=e.searchId,s=e.queryType,u=void 0===s?de.Unknown:s,c=e.appType;fe(void 0,void 0,void 0,(function(){var e,s,l;return he(this,(function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),e=v(),s={documentVariationId:r,documentVersionId:o,queryType:u},i&&(s.searchId=i),[4,N({serviceUrl:e,serviceOperation:z.J.jn,requestData:s,ids:{sessionId:t,documentId:n},appType:c})];case 1:return d.sent(),I("[service] submit sendViewEvent analytics successful"),[2,{}];case 2:throw l=d.sent(),I("[service] submit sendViewEvent analytics error",l),a(l);case 3:return[2]}}))}))}({sessionId:p,documentId:r,documentVariationId:D.id,documentVersionId:D.documentVersion.id,searchId:n,queryType:u,appType:f}),e.resolve(g),[2]}}))}))}))})),e.registerCommand(c.getArticlesByCategory,(function(e){return p(e)((function(e){return me(void 0,void 0,void 0,(function(){var t,n,r,o,a,u;return ve(this,(function(c){switch(c.label){case 0:return t=e.data.categoryId,[4,s(e.commander)];case 1:return n=c.sent(),r=n.sessionId,o=n.appType,[4,Z({sessionId:r,categoryId:t,appType:o})];case 2:return a=c.sent(),[4,i({result:a,sessionId:r})];case 3:return u=c.sent(),(null==a?void 0:a.length)?d(l.articlesByCategory,u):d(l.noArticlesByCategoryFound),e.resolve(u),[2]}}))}))}))})),e.registerCommand(c.sendFeedback,(function(e){return p(e)((function(e){return me(void 0,void 0,void 0,(function(){var t,n,r,o,a,u,c,p,f,h,g,m,v,D;return ve(this,(function(b){switch(b.label){case 0:return t=e.data,n=t.documentId,r=t.documentVariationId,o=t.documentVersionId,a=t.rating,u=t.comment,c=t.reason,p=t.searchId,f=t.queryType,[4,s(e.commander)];case 1:return h=b.sent(),g=h.sessionId,m=h.appType,[4,le({sessionId:g,documentId:n,documentVariationId:r,documentVersionId:o,rating:a,searchId:p,comment:u,reason:c,queryType:f,appType:m})];case 2:return v=b.sent(),[4,i({result:v,sessionId:g})];case 3:return D=b.sent(),d(l.feedbackSent,D),e.resolve(D),[2]}}))}))}))})),e.registerCommand(c.getSession,(function(e){return p(e)((function(e){return me(void 0,void 0,void 0,(function(){var t,n;return ve(this,(function(r){switch(r.label){case 0:return[4,s(e.commander)];case 1:return t=r.sent().sessionId,[4,i({sessionId:t})];case 2:return n=r.sent(),n=ge(ge({},n),{result:{sessionId:n.sessionId}}),e.resolve(n),[2]}}))}))}))})),e.registerCommand(c.getTopViewedArticles,(function(e){return p(e)((function(e){return me(void 0,void 0,void 0,(function(){var t,n,r,o,a,u;return ve(this,(function(c){switch(c.label){case 0:return t=e.data.pageSize,[4,s(e.commander)];case 1:return n=c.sent(),r=n.sessionId,o=n.appType,[4,X({sessionId:r,pageSize:t,appType:o})];case 2:return a=c.sent(),[4,i({result:a,sessionId:r})];case 3:return u=c.sent(),(null==a?void 0:a.length)?d(l.topViewedArticles,u):d(l.noTopViewedArticlesFound),e.resolve(u),[2]}}))}))}))}))}}(e),[2]}var m}))}))}))];case 1:return[2,e.sent()];case 2:throw new Error("GenesysJS is missing from the window")}}))}))},ye=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},xe=function(e,t){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(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},we={getCategories:function(){return function(e){var t=e.pluginName,n=e.data;return ye(void 0,void 0,void 0,(function(){return xe(this,(function(e){switch(e.label){case 0:return[4,O.sendCommand({command:c.getCategories,data:n,pluginName:t})];case 1:return[2,e.sent()]}}))}))}({pluginName:d,data:{}})},search:function(e){return function(e){var t=e.pluginName,n=e.data;return ye(void 0,void 0,void 0,(function(){return xe(this,(function(e){switch(e.label){case 0:return[4,O.sendCommand({command:c.search,data:n,pluginName:t})];case 1:return[2,e.sent()]}}))}))}({pluginName:d,data:e})},getSuggestions:function(e){return function(e){var t=e.pluginName,n=e.data;return ye(void 0,void 0,void 0,(function(){return xe(this,(function(e){switch(e.label){case 0:return[4,O.sendCommand({command:c.getSuggestions,data:n,pluginName:t})];case 1:return[2,e.sent()]}}))}))}({pluginName:d,data:e})},getArticle:function(e){return function(e){var t=e.pluginName,n=e.data;return ye(void 0,void 0,void 0,(function(){return xe(this,(function(e){switch(e.label){case 0:return[4,O.sendCommand({command:c.getArticle,data:n,pluginName:t})];case 1:return[2,e.sent()]}}))}))}({pluginName:d,data:e})},getArticlesByCategory:function(e){return function(e){var t=e.pluginName,n=e.data;return ye(void 0,void 0,void 0,(function(){return xe(this,(function(e){switch(e.label){case 0:return[4,O.sendCommand({command:c.getArticlesByCategory,data:n,pluginName:t})];case 1:return[2,e.sent()]}}))}))}({pluginName:d,data:e})},getTopViewedArticles:function(e){return function(e){var t=e.pluginName,n=e.data;return ye(void 0,void 0,void 0,(function(){return xe(this,(function(e){switch(e.label){case 0:return[4,O.sendCommand({command:c.getTopViewedArticles,data:n,pluginName:t})];case 1:return[2,e.sent()]}}))}))}({pluginName:d,data:e})},sendFeedback:function(e){return function(e){var t=e.pluginName,n=e.data;return ye(void 0,void 0,void 0,(function(){return xe(this,(function(e){switch(e.label){case 0:return[4,O.sendCommand({command:c.sendFeedback,data:n,pluginName:t})];case 1:return[2,e.sent()]}}))}))}({pluginName:d,data:e})},getSession:function(){return function(e){var t=e.pluginName,n=e.data;return ye(void 0,void 0,void 0,(function(){return xe(this,(function(e){switch(e.label){case 0:return[4,O.sendCommand({command:c.getSession,data:n,pluginName:t})];case 1:return[2,e.sent()]}}))}))}({pluginName:d,data:{}})}};e.exports=n})()},function(e,t){e.exports=n(71)},function(e,t){e.exports=n(432)},function(e){e.exports=JSON.parse('{"plugin":{"name":"Knowledge","registeringTimeout":60000}}')},function(e,t){e.exports=n(49)},function(e,t){e.exports=n(540)},function(e,t){e.exports=n(434)},function(e,t){e.exports=n(435)},function(e,t){e.exports=n(247)},function(e,t){e.exports=n(542)},function(e,t,n){"use strict";n.r(t),n.d(t,"KnowledgeCard",(function(){return T})),n.d(t,"KnowledgeArticle",(function(){return G})),n.d(t,"KnowledgeSearch",(function(){return Oe})),n.d(t,"KnowledgeResults",(function(){return $e})),n.d(t,"KnowledgeCategories",(function(){return Ye})),n.d(t,"initKnowledgeServicePlugin",(function(){return Qe}));var r=n(10),o=n.n(r),i=n(3),a=n.n(i),s=n(5),u=n.n(s),c=n(0),l=n.n(c),d=n(1),p=n.n(d),f=n(2),h=n(11),g=n.n(h),m=n(8),v=n.n(m),D=n(4),b=n.n(D),y=n(6),x=n(9),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x.plugin.name;y.genesysService.log({message:e,data:t,pluginName:n})},C=function(){var e=v()(b.a.mark((function e(t){var n,r,o,i;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.deploymentId,r=t.apiEndpoint,o=t.appType,!t.preview){e.next=4;break}return w("Abort plugin initialization in preview mode."),e.abrupt("return");case 4:return e.next=6,y.genesysService.initPlugin(x.plugin.name);case 6:return i=e.sent,e.prev=7,e.next=10,Object(y.initKnowledgeServicePlugin)({deploymentId:n,apiEndpoint:r,appType:o||y.appTypes.messenger});case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(7),w("Failed to load KnowledgeServicePlugin",e.t0);case 15:return e.abrupt("return",i);case 16:case"end":return e.stop()}}),e,null,[[7,12]])})));return function(t){return e.apply(this,arguments)}}(),E=function(e){var t=Object(c.useState)(null),n=u()(t,2),r=n[0],o=n[1],i=Object(c.useRef)(!0);return Object(c.useEffect)((function(){e&&!r&&v()(b.a.mark((function t(){var n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C(e);case 2:n=t.sent,i.current&&o(n);case 5:case"end":return t.stop()}}),t)})))()}),[e,r]),Object(c.useEffect)((function(){return function(){i.current=!1}}),[]),{pluginState:{plugin:r}}},O={container:{padding:"16px",width:"100%",boxSizing:"border-box",backgroundColor:"transparent!important"},searchBar:{marginTop:"16px",width:"100%"},searchInput:{width:"100%"},searchLabel:{display:"flex",flexDirection:"row"},searchIconStartAdorment:{paddingLeft:"8px",position:"relative"},cardContent:{position:"relative"},inputAdornedStart:{position:"relative",zIndex:1}},S=n(7);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=function(e){var t=e.openSearch,n=e.i18n,r=e.muiCardProps,i=e.setPlugin,a=e.setStore,s=e.config,d=Object(c.useState)(""),p=u()(d,2),h=p[0],m=p[1],v=E(s).pluginState,D=Object(c.useRef)(),b=function(e){e.ctrlKey||e.shiftKey||(e.preventDefault(),t({route:"knowledge.search"}))};Object(c.useEffect)((function(){v.plugin&&i&&i(x.plugin.name,v.plugin)}),[v.plugin]);var y=Object(S.styled)("form")((function(){return j(j({},O.cardContent),{},{"& .search-label":j({},O.searchLabel)})}));return l.a.createElement(f.Card,o()({sx:j({},O.container)},r,{onClick:b}),l.a.createElement(y,null,l.a.createElement("div",{className:"search-label",role:"region"},l.a.createElement(f.Typography,{variant:"h3"},n.searchInputTitle)),l.a.createElement(f.TextField,{id:"searchBar",size:"small",inputRef:D,placeholder:n.searchInputPlaceholder,variant:"outlined",autoComplete:"off",value:h,onChange:function(e){m(e.target.value),a({inputValue:h})},onPaste:function(e){e.preventDefault(),e.clipboardData.items[0].getAsString((function(e){a({inputValue:e}),m(e),D.current.focus()}))},sx:j({},O.searchBar),onKeyPress:b,InputProps:{role:"form",sx:{"&.Cx-MuiOutlinedInput-root":O.searchIconStartAdorment,"& .Cx-MuiOutlinedInput-input":O.inputAdornedStart},startAdornment:l.a.createElement(l.a.Fragment,null,l.a.createElement(f.Icon,{color:"inherit","aria-label":"search",fontSize:"small"},l.a.createElement(g.a,{fontSize:"small"})))}})))};k.propTypes={openSearch:p.a.func.isRequired,i18n:p.a.object.isRequired,setPlugin:p.a.func,muiCardProps:p.a.object,setStore:p.a.func.isRequired,store:p.a.object.isRequired,config:p.a.object.isRequired};var T=k,A=function(e,t){var n=e.blocks.map((function(e){return P(e)})).join("");return t?"<ol>".concat(n,"</ol>"):"<ul>".concat(n,"</ul>")},P=function(e){return"Text"===e.type?(o=(r=e.text).text,i=r.marks,a=r.hyperlink,s=i?i.reduce((function(e,t){return"Bold"===t?"<b>".concat(e,"</b>"):"Italic"===t?"<i>".concat(e,"</i>"):"Underline"===t?"<u>".concat(e,"</u>"):e}),o):o,a?'<a href="'.concat(a,'" target="_blank" rel="noreferrer">').concat(s,"</a>"):s):"Image"===e.type?(n=e.image,'<img src="'.concat(n.url,'" alt="" />')):"Video"===e.type?(t=e.video,'<iframe src="'.concat(t.url,'"></iframe>')):"Paragraph"===e.type?function(e){var t=e.blocks.map((function(e){return P(e)})).join("");return"<p>".concat(t,"</p>")}(e.paragraph):"OrderedList"===e.type?A(e.list,!0):"UnorderedList"===e.type?A(e.list,!1):"ListItem"===e.type?function(e){var t=e.blocks.map((function(e){return P(e)})).join("");return"<li>".concat(t,"</li>")}(e):null;var t,n,r,o,i,a,s},I=n(13),M=n.n(I),B=["errorCb","successCb"];function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _={pending:!1,error:!1,data:null},N=function(e){var t=Object(c.useState)(_),n=u()(t,2),r=n[0],o=n[1];return{state:r,actions:{execute:function(){var t=v()(b.a.mark((function t(){var n,r,i,a,s,u=arguments;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=u.length>0&&void 0!==u[0]?u[0]:{},r=n.errorCb,i=n.successCb,a=M()(n,B),o(R(R({},_),{},{pending:!0})),t.prev=3,t.next=6,y.genesysService.sendCommand({command:e,data:a,pluginName:x.plugin.name});case 6:return s=t.sent,o(R(R({},_),{},{data:s.result})),i&&i(s),t.abrupt("return",s.result);case 12:t.prev=12,t.t0=t.catch(3),o(R(R({},_),{},{error:t.t0})),r&&r(t.t0);case 16:case"end":return t.stop()}}),t,null,[[3,12]])})));return function(){return t.apply(this,arguments)}}(),clear:function(){o(_)},setData:function(e){o((function(t){return R(R({},t),{},{data:e})}))}}}},z=function(e,t){w(e,t,x.plugin.name)},$={},H=function(){var e=N(y.knowledgeServiceCommands.getArticle),t=e.state,n=e.actions,r=N(y.knowledgeServiceCommands.getArticlesByCategory),o=r.state,i=r.actions,a=function(){var e=v()(b.a.mark((function e(t){var r,o,i;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.articleId,o=t.queryType,i=t.searchId,e.next=3,n.execute({articleId:r,queryType:o,searchId:i});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=v()(b.a.mark((function e(t){var n,r,o;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.categoryId,!(r=$["".concat(n)])){e.next=5;break}return i.setData(r),e.abrupt("return");case 5:return i.clear(),e.next=8,i.execute({categoryId:n});case 8:o=e.sent,z("[hooks] getArticlesByCategory result",o),$["".concat(n)]=o;case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return{articleState:{articlePending:t.pending,articleError:t.error,article:t.data,articlesByCategoryPending:o.pending,articlesByCategoryError:o.error,articlesByCategory:o.data},articleActions:{getArticleById:a,getArticlesByCategory:s}}},q=function(e){var t=e.error,n=e.errorCallback;Object(c.useEffect)((function(){if(t&&n)if(t.code&&t.message)if("function"==typeof n){var e,r={type:"error",errorKey:(e=t).code,errorMessage:e.message};z("Error reported ".concat(JSON.stringify(r))),n(r)}else z("Invalid error callback");else z("Invalid error format to report")}),[t,n])},V={padding:"0px 16px",overflow:"auto",wordBreak:"break-word","& img":{width:"100%"},"& iframe":{width:"100%",border:"none"}};function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var W=function(e){var t=e.data,n=e.stopProgress,r=e.showProgress,o=e.openArticle,i=e.config,s=e.onError,d=e.store,p=e.setStore,h=t.documentId,g=H(),m=g.articleState,v=g.articleActions,D=m.article,b=Object(c.useState)(""),y=u()(b,2),x=y[0],w=y[1],C=E(i).pluginState,O=d.queryType,F=void 0===O?"Article":O,j=d.searchId,k=Object(S.styled)("div")((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},V)}));return q({error:m.articleError,errorCallback:s}),Object(c.useEffect)((function(){if(D)try{var e=D.variations?D.variations[0].body.blocks.map((function(e){return P(e)})).join(""):"";w(e)}catch(e){var r="We have encountered some problems displaying this article, sorry about that... :(";w(r),z(r,e)}finally{n(),o({data:t,route:"knowledge.article",showProgress:!1})}}),[D]),Object(c.useEffect)((function(){h&&C.plugin&&(r(),v.getArticleById({articleId:h,queryType:F,searchId:j}),p({searchId:null}))}),[h,C.plugin]),D?l.a.createElement(k,{role:"region",tabIndex:0,"aria-labelledby":"articleTitle articleString"},l.a.createElement("h2",{id:"articleTitle"},D.title),l.a.createElement(f.Typography,{id:"articleString",variant:"body2",dangerouslySetInnerHTML:{__html:x}})):null};W.propTypes={data:p.a.object.isRequired,stopProgress:p.a.func.isRequired,config:p.a.object.isRequired,showProgress:p.a.func.isRequired,i18n:p.a.object.isRequired,onError:p.a.func.isRequired,store:p.a.object.isRequired,setStore:p.a.func.isRequired};var G=W,K=n(14),J=n.n(K),Y=n(15),Q=n.n(Y),Z={display:"flex",flexDirection:"column",padding:"12px 16px 12px 16px",wordBreak:"break-word",width:"100%",height:"100%",boxSizing:"border-box"},X={width:"26px",height:"26px",display:"flex",alignItems:"inherit",justifyContent:"inherit"},ee={icon:X,searchCard:{padding:"0px"},searchCardItem:{display:"block",padding:"16px"},searchBar:{marginTop:"16px",width:"100%"},searchInput:{width:"100%"},searchLabel:{display:"flex",flexDirection:"row"},searchIcon:{padding:"2px"},cancelButton:{marginRight:"0px",padding:"0px"},autoCompletePaper:{margin:"4px 0!important"},autoCompleteInputRoot:{padding:"6px!important"},autoCompleteEndAdorment:{right:"0px!important",top:"3px!important",zIndex:1},autoCompleteClearIndicator:{marginRight:"0px"},autoCompleteOption:{display:"block !important"},searchIconStartAdorment:{position:"relative"},inputAdornedStart:{position:"relative",zIndex:1},searchInputLabel:{display:"none"}};function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re=function(e){var t=e.params,n=e.muiTextFieldProps,r=e.i18n,i=e.isLoading,a=e.onSearch,s=e.onInputChange,u=e.onClear,d=e.handleSearchBoxNavigation,p=e.clearIconRef,h=e.utility,m=t.inputProps.value,v=Object(c.useRef)(),D=(h||{}).isMobile,b="function"==typeof D&&D();return Object(c.useEffect)((function(){setTimeout((function(){v.current&&v.current.focus()}),100)}),[]),l.a.createElement(f.TextField,o()({},t,{size:"small",placeholder:r.searchInputPlaceholder,label:r.searchInputPlaceholder,InputLabelProps:{sx:{"&.Cx-MuiInputLabel-root":ee.searchInputLabel}},onChange:s,onKeyDown:a,variant:"outlined",inputRef:v,InputProps:ne(ne(ne({},t.InputProps),b&&{tabIndex:"0"}),{},{sx:{"&.Cx-MuiOutlinedInput-root":ee.searchIconStartAdorment,"& .Cx-MuiOutlinedInput-input":ee.inputAdornedStart},notched:!1,startAdornment:l.a.createElement(l.a.Fragment,null,l.a.createElement(f.Icon,{color:"inherit",fontSize:"small",sx:ne({},ee.searchIcon)},l.a.createElement(g.a,{fontSize:"small"}))),endAdornment:l.a.createElement(l.a.Fragment,null,i?l.a.createElement(f.CircularProgress,{color:"inherit",size:20,"aria-busy":"true",role:"alert","aria-label":r.ariaLoading}):null,!i&&m?l.a.createElement(f.IconButton,{edge:"end","data-testid":"end-adornment",sx:ne({},ee.cancelButton),color:"inherit","aria-label":"clear",tabIndex:0,ref:p,onClick:function(){return u(null,null,"clear")},onKeyDown:function(e){"Enter"===e.key?u(null,null,"clear"):"Tab"!==e.key||e.ctrlKey||e.shiftKey||!d||d(e)}},l.a.createElement(Q.a,{sx:ne({},ee.icon)})):null)})},n))},oe={fontWeight:700},ie={whiteSpace:"break-spaces",padding:"6px 16px",cursor:"pointer","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},ae={backgroundColor:"rgba(0, 0, 0, 0.04)"};function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ce=function(e){var t,n,r=e.displayedText,o=e.isActive,i=e.highlightedText,a=void 0===i?"":i,s=e.onClick,u=Object(S.styled)("span")((function(){return ue({},oe)})),c=Object(S.styled)("div")((function(e){return ue(ue({},ie),{},{backgroundColor:e.isActive&&ae.backgroundColor})})),d=""!==a?(t=r,n=a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),t.split(new RegExp("(".concat(n,")"),"gi")).map((function(e,t){return e.toLowerCase()===a.toLowerCase()?l.a.createElement(u,{key:t},e):l.a.createElement("span",{key:t},e)}))):r;return l.a.createElement(c,{isActive:o,onClick:s},d)};ce.propTypes={displayedText:p.a.string.isRequired,isActive:p.a.bool.isRequired,highlightedText:p.a.string,onClick:p.a.func.isRequired};var le=ce,de={position:"absolute",overflow:"hidden",left:"-10000px",top:"-10000px",width:"1px",height:"1px",textIndent:"-9999px",border:"0"};function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var fe="assertive",he=null,ge=Object(S.styled)("div")((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},de)})),me=function(e){var t=e.region,n=e.role,r=e.content,o=e.delay,i=t,a=Object(c.useState)(""),s=u()(a,2),d=s[0],p=s[1];return Object(c.useEffect)((function(){if(he&&clearTimeout(he),o)return he=setTimeout((function(){p(r)}),o),function(){clearTimeout(he)};p(r)}),[r,o]),"alert"===n&&(i=null),l.a.createElement(ge,{"aria-atomic":"true","aria-live":i,role:n},d)};function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}me.propTypes={region:p.a.string.isRequired,role:p.a.string.isRequired,content:p.a.node.isRequired,delay:p.a.number};var be={searchQuery:""},ye={autocompleteQuery:""};function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ce={freeSolo:!0,fullWidth:!0,autoHighlight:!1,disablePortal:!0},Ee=function(e){var t,n=e.showResults,r=e.i18n,i=e.config,a=e.muiAutoCompleteProps,s=e.muiTextFieldProps,d=e.store,p=e.setStore,f=e.showProgress,h=e.stopProgress,g=e.onError,m=e.knowledgeSearchBoxRef,D=e.handleSearchBoxNavigation,x=e.utility,w=function(){var e=Object(c.useState)(null),t=u()(e,2),n=t[0],r=t[1],o=Object(c.useState)(be),i=u()(o,2),a=i[0],s=i[1],l=Object(c.useState)(ye),d=u()(l,2),p=d[0],f=d[1],h=N(y.knowledgeServiceCommands.getSuggestions),g=h.state,m=h.actions,D=N(y.knowledgeServiceCommands.search),x=D.state,w=D.actions,C=function(){w.clear()},E=function(){m.clear()},O=function(){var e=v()(b.a.mark((function e(t){var n,r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.autocompleteQuery){e.next=3;break}return e.abrupt("return");case 3:return f((function(e){return De(De({},e),{},{autocompleteQuery:n})})),e.prev=4,e.next=7,m.execute({query:n});case 7:r=e.sent,z("[hooks] autocomplete result",r),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),z("Error in autocomplete",e.t0);case 14:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=v()(b.a.mark((function e(t){var n,r,o,i,a,u;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.searchQuery,r=t.pageSize,o=void 0===r?3:r,i=t.queryType,a=t.successCb,!((null==n?void 0:n.length)<3)){e.next=3;break}return e.abrupt("return");case 3:return s({searchQuery:n}),e.prev=4,e.next=7,w.execute({query:n,pageSize:o,queryType:i,successCb:a});case 7:u=e.sent,z("[hooks] search result",u),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),z("Error in search",e.t0);case 14:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(t){return e.apply(this,arguments)}}();return{searchState:De(De({inputText:n,autocompletePending:g.pending,autocompleteError:g.error,autocompleteResult:g.data,searchPending:x.pending,searchError:x.error,searchResult:x.data},a),p),searchActions:{autocomplete:O,search:S,setInputText:function(e){var t=e.text;r(t)},reset:function(){r(""),s(be),f(ye)},clearSearch:function(){s(be),C()},clearAutocomplete:function(){f(ye),E()},clearInputText:function(){r("")},resetAutoCompleteApi:E,resetSearchApi:C}}}(),C=w.searchState,O=w.searchActions,S=C.searchPending,F=C.autocompletePending,j=C.autocompleteResult,k=C.searchResult,T=d.inputValue,A=E(i).pluginState,P=l.a.useRef(null),I=l.a.useRef(!1),M=Object(c.useState)(null),B=u()(M,2),L=B[0],R=B[1];q({error:C.autocompleteError,errorCallback:function(e){g(e),O.resetAutoCompleteApi()}}),q({error:C.searchError,errorCallback:function(e){g(e),O.resetSearchApi()}});var _,$,H=Object(c.useCallback)((_=function(e){O.autocomplete({autocompleteQuery:e})},250,$=null,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];clearTimeout($),$=setTimeout((function(){_.apply(null,t)}),250)}),[]),V=function(e){var t=e.target.value;O.setInputText({text:t}),H(t)},U=function(e){13!==e.which||e.ctrlKey||e.shiftKey?9!==e.which||e.ctrlKey||e.shiftKey||!D||P&&!P.current&&D(e):(e.preventDefault(),e.stopPropagation(),L?(O.setInputText({text:L}),W({searchQuery:L,pageSize:1,queryType:"Suggestion"})):W({searchQuery:e.target.value,queryType:"ManualSearch"}))},W=function(e){var t=e.searchQuery,n=e.pageSize,r=e.queryType,o=e.isUserAction,i=void 0===o||o;O.search({searchQuery:t,pageSize:n,queryType:r,successCb:function(e){var t=e.searchId;p({queryType:r,searchId:t})}}),I.current=i},G=function(e,t,r){("clear"===r||"input"===r&&""===t)&&(O.clearInputText(),O.clearAutocomplete(),O.clearSearch(),n({},""))};Object(c.useEffect)((function(){if(Array.isArray(k)){var e=k.map((function(e){var t=e.document;return{document:we(we({},t),{},{primaryText:t.title})}}));1===e.length&&I.current&&(p({shouldAutoOpenArticle:!0}),I.current=!1),n({searchResult:e,searchQuery:C.searchQuery},C.searchQuery),O.clearAutocomplete()}}),[k]);var K=function(e){var t=e.inputText,n=e.autocompleteResult;return n&&r.ariaAutoCompleteResultsSummary?r.ariaAutoCompleteResultsSummary.replace("<%resultsCount%>",n.length).replace("<%searchInputText%>",t):""}({inputText:null==C?void 0:C.inputText,autocompleteResult:j});Object(c.useEffect)((function(){S?f():h()}),[S]),Object(c.useEffect)((function(){null===C.inputText&&null!=d&&d.inputValue?O.setInputText(null==d?void 0:d.inputValue):C.inputText!==(null==d?void 0:d.inputValue)&&p({inputValue:null==C?void 0:C.inputText})}),[C.inputText]),Object(c.useEffect)((function(){A.plugin&&d.inputValue&&(!C.inputText&&d.inputValue&&W({searchQuery:T,queryType:"ManualSearch",isUserAction:!1}),O.setInputText({text:T}))}),[A.plugin]);var Y=null!==(t=null==j?void 0:j.map((function(e){return e.matchedPhrase})))&&void 0!==t?t:[],Q=!!C.autocompleteQuery&&!!Y.length;return l.a.createElement(l.a.Fragment,null,l.a.createElement(J.a,o()({id:"searchInput",value:C.inputText,sx:{"& .MuiAutocomplete-inputRoot":ee.autoCompleteInputRoot,"& .MuiAutocomplete-endAdornment":ee.autoCompleteEndAdorment},componentsProps:{paper:{sx:we({},ee.autoCompletePaper)},clearIndicator:{sx:we({},ee.autoCompleteClearIndicator)},option:{sx:we({},ee.autoCompleteOption)}},loading:F,options:Y,onInputChange:G,onHighlightChange:function(e,t,n){"keyboard"===n&&R(t)},ref:m,renderInput:function(e){return l.a.createElement(re,{params:e,muiTextFieldProps:s,i18n:r,isLoading:F,onInputChange:V,onSearch:U,onClear:G,isAreaDescrptionEnabled:Q,handleSearchBoxNavigation:D,clearIconRef:P,utility:x})},renderOption:function(e,t,n){var r=n.inputValue;return l.a.createElement("li",e,l.a.createElement(le,{displayedText:t,highlightedText:r,isActive:L===t,onClick:function(){W({searchQuery:t,pageSize:1,queryType:"Suggestion"})}}))}},Ce,a,{open:Q})),Q&&l.a.createElement(me,{region:fe,role:"status",content:K,delay:2e3}))};Ee.propTypes={showResults:p.a.func.isRequired,i18n:p.a.object.isRequired,config:p.a.object.isRequired,muiAutoCompleteProps:p.a.object,muiTextFieldProps:p.a.object,store:p.a.object.isRequired,setStore:p.a.func.isRequired,showProgress:p.a.func.isRequired,stopProgress:p.a.func.isRequired,onError:p.a.func.isRequired};var Oe=Ee,Se=n(12),Fe=n.n(Se),je={display:"flex",boxSizing:"border-box",padding:"12px",flexGrow:"1",alignItems:"center",justifyContent:"center","& .message":{display:"flex",textAlign:"center",flexDirection:"column",flex:"1 1 0%"}};function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Te=function(e){var t=e.message,n=Object(S.styled)("div")((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},je)}));return l.a.createElement(n,{role:"alert"},l.a.createElement(f.Typography,{className:"message",variant:"caption"},t))};function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Te.propTypes={message:p.a.string.isRequired};var Pe=function(e){var t=e.icon,n=e.customStyle;return l.a.createElement(t,{sx:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({transform:"rtl"===e.direction?"scaleX(-1)":void 0},n)}})};Pe.propTypes={icon:p.a.elementType.isRequired};var Ie=Pe;function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Le={icon:X,listStyles:{"& .Cx-MuiListItemText-primary":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontSize:"0.9rem"},"& .Cx-MuiListItemText-root":{position:"relative"}},listItemSecondary:{"& .Cx-MuiListItemText-secondary":{clear:"both",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},listItemSecondaryActionResults:{"&.Cx-MuiListItem-secondaryAction":{padding:"6px 74px 6px 0px",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}},arrowIcon:{right:0},searchResults:Be(Be({},Z),{},{"& .search-result-summary":{paddingRight:"4px",display:"inline-block"},"& .search-result-inputText":{fontWeight:"bold"}})};function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ne=function(e){var t=e.document,n=e.openArticle,r=function(e){e.preventDefault();var r={documentId:t.id};n({route:"knowledge.article",data:r,showProgress:!0})};return l.a.createElement(l.a.Fragment,null,l.a.createElement(f.ListItem,{button:!0,sx:_e(_e(_e({},Le.listStyles),Le.listItemSecondary),Le.listItemSecondaryActionResults),onClick:r},l.a.createElement(f.ListItemText,{primary:t.primaryText||t.title}),l.a.createElement(f.ListItemSecondaryAction,{sx:_e({},Le.arrowIcon)},l.a.createElement(f.IconButton,{edge:"end",color:"inherit","aria-label":"open article",onClick:r},l.a.createElement(Ie,{icon:Fe.a,customStyle:Le.icon})))))},ze=function(e){var t=e||{},n=t.data,r=t.openArticle,o=t.i18n,i=t.articles,a=t.config,s=t.store,d=t.setStore,p=n||{},h=p.searchResult,g=p.searchQuery,m=Object(c.useState)(""),v=u()(m,2),D=v[0],b=v[1];Object(c.useEffect)((function(){if(h&&g){var e=o.ariaSearchResultSummary.replace("<%resultsCount%>",h.length).replace("<%searchQuery%>",g);b(e)}}),[n,g]),Object(c.useEffect)((function(){if(1===(null==h?void 0:h.length)){var e,t={documentId:null===(e=h[0].document)||void 0===e?void 0:e.id};t.documentId&&null!=s&&s.shouldAutoOpenArticle&&(d&&d({shouldAutoOpenArticle:!1}),r({route:"knowledge.article",data:t,showProgress:!0}))}}),[h]);var y=Object(S.styled)("div")((function(){return _e({},Le.searchResults)})),x=function(e){var t=e.searchResult;return t&&o.searchResultSummary?o.searchResultSummary.replace("<%resultsCount%>",t.length):""}({searchQuery:g,searchResult:h});return null!=i&&i.length?l.a.createElement(f.List,{dense:!0},i.map((function(e){return l.a.createElement(Ne,{key:e.id,document:e,openArticle:r,config:a})}))):!h||h.length<1?g?l.a.createElement(y,null,l.a.createElement(Te,{message:o.searchResultsEmpty})):null:l.a.createElement(y,null,l.a.createElement("div",null,l.a.createElement(f.Typography,{className:"search-result-summary",variant:"caption"},x),l.a.createElement(f.Typography,{className:"search-result-inputText",variant:"caption"},g)),l.a.createElement(f.List,{dense:!0},h.map((function(e){var t=e.document;return l.a.createElement(Ne,{key:t.id,document:t,openArticle:r,config:a})}))),l.a.createElement(me,{region:fe,role:"status",content:D,delay:2e3}))};ze.propTypes={config:p.a.object.isRequired,data:p.a.object.isRequired,openArticle:p.a.func.isRequired,i18n:p.a.object.isRequired,articles:p.a.array,store:p.a.object,setStore:p.a.func};var $e=ze;function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ve={directionIcon:qe({},X),categoryList:{"& .Cx-MuiListItemText-primary":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontSize:"0.9rem"},"& .Cx-MuiListItemText-root":{position:"relative"}},categoryListSecondaryAction:{"&.Cx-MuiListItem-secondaryAction":{padding:"6px 28px 6px 2px",borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}},categories:{padding:"12px 0 12px 0","& .search-categories-title":{display:"block",fontSize:"1rem",fontWeight:"500"}},categoriesContainer:qe(qe({},Z),{},{"& .categories-result-summary":{paddingRight:"4px",paddingTop:"10px",display:"inline-block",color:"#2E394C"}}),categoryArrowIcon:{right:0}};function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ge=function(e){var t=e.categories,n=e.parentCategoryId;return null==t?void 0:t.filter((function(e){return e.parentId===n}))},Ke=function(e){var t=e||{},n=t.category,r=t.i18n,o=t.openCategory,i=(n||"").name,a=i+".level"+Math.floor(1e3*Math.random()),s=function(e){e.preventDefault(),o({route:"knowledge.category."+a,data:n,showProgress:!0})};return l.a.createElement(l.a.Fragment,null,l.a.createElement(f.ListItem,{button:!0,sx:We(We({},Ve.categoryList),Ve.categoryListSecondaryAction),onClick:s},l.a.createElement(f.ListItemText,{primary:i}),l.a.createElement(f.ListItemSecondaryAction,{sx:We({},Ve.categoryArrowIcon)},l.a.createElement(f.IconButton,{edge:"end",color:"inherit","aria-label":r.ariaOpenSearchCategory,onClick:s},l.a.createElement(Ie,{icon:Fe.a,customStyle:Ve.directionIcon})))))},Je=function(e){var t,n,r,o,i=e||{},a=i.i18n,s=i.data,d=i.openArticle,p=i.openCategory,h=i.showProgress,g=i.stopProgress,m=i.config,D=i.setStore,x=(n=(t=N(y.knowledgeServiceCommands.getCategories)).state,r=t.actions,o=function(){var e=v()(b.a.mark((function e(){var t;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.execute();case 2:t=e.sent,z("[hooks] getCategories result",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),{categoriesState:{categoryPending:n.pending,categoryError:n.error,categories:n.data},categoriesActions:{getCategories:o}}),w=x.categoriesState,C=x.categoriesActions,O=w.categories,F=w.categoryPending,j=H(),k=j.articleState,T=j.articleActions,A=k.articlesByCategory,P=k.articlesByCategoryPending,I=s||"",M=I.id,B=I.name,L=Object(c.useState)(""),R=u()(L,2),_=R[0],$=R[1],q=E(m).pluginState,V=Object(c.useMemo)((function(){return function(e){var t=e.categories,n=e.categoryId;return n?Ge({categories:t,parentCategoryId:n}):function(e){var t=e.categories;return null==t?void 0:t.filter((function(e){var t=e.parentId,n=e.id;return!t&&n}))}({categories:t})}({categories:O,categoryId:M})}),[O,M]),U=null!=A?A:[];Object(c.useEffect)((function(){q.plugin&&!O&&C.getCategories()}),[q.plugin,O]),Object(c.useEffect)((function(){F||P?h():g()}),[F,P]),Object(c.useEffect)((function(){if(M&&B){var e=a.categoryResultsSummary.replace("<%category%>",'"'.concat(B,'"'));$(e),T.getArticlesByCategory({categoryId:M})}}),[M,B]);var W=Object(S.styled)("div")((function(){return We({},Ve.categories)})),G=Object(S.styled)("div")((function(){return We({},Ve.categories)})),K=Object(S.styled)("div")((function(){return We({},Ve.categoriesContainer)})),J=null!=V&&V.length?l.a.createElement(W,null,l.a.createElement(f.Typography,{variant:"h5",className:"search-categories-title"},a.searchCategoriesTitle),l.a.createElement(f.List,{dense:!0},V.map((function(e){var t=(e||"").id,n=Ge({categories:O,parentCategoryId:t});return l.a.createElement(Ke,{category:e,key:e.id,i18n:a,count:n.length,openCategory:p})})))):null,Y=M&&null!=U&&U.length?l.a.createElement(G,null,l.a.createElement(f.Typography,{variant:"h5",className:"search-categories-title"},a.searchArticlesTitle),l.a.createElement($e,{openArticle:function(e){D({queryType:"Category"}),d(e)},data:s,articles:U,i18n:a,config:m})):null;return!P&&null!=O&&O.length?l.a.createElement(K,null,s&&l.a.createElement(f.Typography,{className:"categories-result-summary",variant:"caption"},_),J||Y?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",null,J),l.a.createElement("div",null,Y)):l.a.createElement(Te,{message:a.searchResultsEmpty})):null};Je.propTypes={config:p.a.object.isRequired,i18n:p.a.object.isRequired,data:p.a.object,openCategory:p.a.func.isRequired,openArticle:p.a.func.isRequired,setPlugin:p.a.func,plugin:p.a.object,showProgress:p.a.func.isRequired,stopProgress:p.a.func.isRequired,onError:p.a.func.isRequired,setStore:p.a.func.isRequired};var Ye=Je;const Qe=({deploymentId:e,apiEndpoint:t})=>Object(y.initKnowledgeServicePlugin)({deploymentId:e,apiEndpoint:t,appType:y.appTypes.messenger})}])},16:function(e,t,n){"use strict";function r(){var e={},t=!1,n=0;"boolean"==typeof(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);for(var o=function(n){for(var o in n)n.hasOwnProperty(o)&&(t&&"[object Object]"===Object.prototype.toString.call(n[o])?e[o]=r(e[o],n[o]):e[o]=n[o])};n<arguments.length;n++)o(n<0||arguments.length<=n?void 0:arguments[n]);return e}function o(){var e=!1;return window.screen&&(e=window.screen.width>window.screen.height),e}function i(){var e=!1,t=document.getElementById("full-screen-indicator");window.getComputedStyle&&t&&(e="block"===window.getComputedStyle(t).display);return e}function a(){var e,t=!1,n=!1,r=document.getElementById("full-screen-indicator");window.getComputedStyle&&r?n="block"===window.getComputedStyle(r).display:n=!0;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))||/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e))&&(t=!0),t&&n}function s(){var e,t,n,r=window.navigator.userAgent,o=window.navigator.platform;return/MSIE/.test(r)||/Edge/.test(r)||/Trident\/7\./.test(r)?e="Internet Explorer":/Chrome/.test(r)?(/CrOS/.test(r)&&(o="CrOS"),e="Chrome"):/Opera/.test(r)?e="Opera":/Firefox/.test(r)?e="Firefox":/Safari/.test(r)?(e="Safari",(/iPhone/.test(r)||/iPad/.test(r)||/iPod/.test(r))&&(t="iOS",/FxiOS/.test(r)?e="Firefox":/CriOS/.test(r)&&(e="Chrome"))):/Android/.test(r)&&(e="Android Webkit Browser",(n=/Android\s[\.\d]+/.exec(r)||[]).length&&(t=n[0])),"MacIntel"===o||"MacPPC"===o?t="Mac OS X":"CrOS"===o?t="ChromeOS":"Win32"===o||"Win64"==o?t="Windows":!t&&/Android/.test(r)?t="Android":!t&&/Linux/.test(o)?t="Linux":!t&&/Windows/.test(r)&&(t="Windows"),{browser:e||"",os:t||""}}function u(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}function c(){var e=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage;return e&&"string"==typeof e?e.toLowerCase():""}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var n=1e3,r=t<0?0:t,o=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(r))+" "+o[i]}function d(e,t){var n=e.indexOf(t);return-1!==n&&e.splice(n,1),e}function p(e,t){return e.find((function(e){if(-1!==t.toLowerCase().indexOf(e))return!0}))}n.d(t,"m",(function(){return r})),n.d(t,"j",(function(){return o})),n.d(t,"i",(function(){return i})),n.d(t,"k",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"h",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"n",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"o",(function(){return g})),n.d(t,"c",(function(){return m})),n.d(t,"g",(function(){return v}));var f={"en-us":"en",cs:"cs",da:"da",de:"de",es:"es",fi:"fi",it:"it",ko:"ko",nl:"nl",no:"nb",pl:"pl","pt-br":"pt-BR",ru:"ru",sv:"sv",th:"th",tr:"tr","zh-cn":"zh-CN","zh-tw":"zh-TW",fr:"fr",ja:"ja",ar:"ar",he:"he","pt-pt":"pt-PT"},h={"conversations.home":{showHeaderTitle:!0,showHeaderSubTitle:!0,expandHeader:!0,backButton:!1,closeButton:!1},"conversations.conversations":{showHeaderTitle:!0,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,closeButton:!1},"knowledge.search":{showHeaderTitle:!1,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,closeButton:!1},"knowledge.article":{showHeaderTitle:!1,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,closeButton:!1},"knowledge.category":{showHeaderTitle:!1,showHeaderSubTitle:!1,expandHeader:!1,backButton:!0,closeButton:!1},"conversations.filePreview":{showHeaderTitle:!0,showHeaderSubTitle:!1,expandHeader:!1,backButton:!1,closeButton:!0}};function g(e,t){var n={text:e,truncated:!1};return e.length>t&&(n.text=e.slice(0,t)+"...",n.truncated=!0),n}function m(){return/^(\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F?|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD]))+$/g}function v(e){return e.storage||"LocalStorage"}},17:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},192:function(e,t,n){"use strict";var r=n(5),o=n(78),i=n(0),a=n.n(i),s=n(38),u=n.n(s),c=!1,l=n(45),d=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),"entering"===t){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[u.a.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u.a.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(l.a.Provider,{value:null},"function"==typeof n?n(e,o):a.a.cloneElement(a.a.Children.only(n),o))},t}(a.a.Component);function p(){}d.contextType=l.a,d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},d.UNMOUNTED="unmounted",d.EXITED="exited",d.ENTERING="entering",d.ENTERED="entered",d.EXITING="exiting";t.a=d},201:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(14),o=window.newrelic||{},i=o&&Object.keys(o).length;function a(){return{launcherOpened:function(){if(i)return o.addPageAction(r.z)},launcherMinimized:function(){if(i)return o.addPageAction(r.y)},messengerClosed:function(){if(i)return o.addPageAction(r.I)},attachmentFromUser:function(){if(i)return o.addPageAction(r.d)},attachmentFromAgent:function(){if(i)return o.addPageAction(r.c)},attachmentremoved:function(){if(i)return o.addPageAction(r.e)},attachmentClicked:function(){if(i)return o.addPageAction(r.a)},attachmentDownloaded:function(){if(i)return o.addPageAction(r.b)},historyFetched:function(){if(i)return o.addPageAction(r.n)},desktopMode:function(){if(i)return o.addPageAction(r.l)},mobileMode:function(){if(i)return o.addPageAction(r.L)},messageOnHover:function(){if(i)return o.addPageAction(r.B)},messageOnTouch:function(){if(i)return o.addPageAction(r.C)},messageOnFocus:function(){if(i)return o.addPageAction(r.A)},sessionCleared:function(){if(i)return o.addPageAction(r.N)},serviceCommandAction:function(e){if(i)return o.addPageAction(e)}}}},21:function(e,t,n){"use strict";n.d(t,"D",(function(){return r})),n.d(t,"n",(function(){return o})),n.d(t,"x",(function(){return i})),n.d(t,"y",(function(){return a})),n.d(t,"v",(function(){return s})),n.d(t,"w",(function(){return u})),n.d(t,"p",(function(){return c})),n.d(t,"o",(function(){return l})),n.d(t,"J",(function(){return d})),n.d(t,"I",(function(){return p})),n.d(t,"s",(function(){return f})),n.d(t,"r",(function(){return h})),n.d(t,"E",(function(){return g})),n.d(t,"t",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"j",(function(){return D})),n.d(t,"k",(function(){return b})),n.d(t,"l",(function(){return y})),n.d(t,"d",(function(){return x})),n.d(t,"z",(function(){return w})),n.d(t,"b",(function(){return C})),n.d(t,"a",(function(){return E})),n.d(t,"G",(function(){return O})),n.d(t,"q",(function(){return S})),n.d(t,"i",(function(){return F})),n.d(t,"B",(function(){return j})),n.d(t,"A",(function(){return k})),n.d(t,"C",(function(){return T})),n.d(t,"f",(function(){return A})),n.d(t,"e",(function(){return P})),n.d(t,"h",(function(){return I})),n.d(t,"g",(function(){return M})),n.d(t,"u",(function(){return B})),n.d(t,"H",(function(){return L})),n.d(t,"F",(function(){return R})),n.d(t,"m",(function(){return _}));var r=1e3,o=5e3,i="70%",a=426,s="90%",u=600,c=380,l=96,d=410,p=100,f=110,h=506,g="outbound",m="inbound",v="gcatkn",D="card",b="carousel",y=1800,x="CoBrowse",w="Offering",C="active",E="accepted",O="rejected",S="expired",F="cobrowse",j="OfferingExpired",k="OfferingAccepted",T="OfferingRejected",A="CobrowseOfferActive",P="CobrowseOfferAccepted",I="CobrowseOfferRejected",M="CobrowseOfferExpired",B=":gcmk",L="aid",R="presence",_="disconnect"},210:function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},211:function(e,t,n){"use strict";e.exports=n(212)},212:function(e,t,n){"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,D=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case p:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case v:case m:case c:return e;default:return t}}case i:return t}}}function C(e){return w(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=c,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||w(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===s||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===D)},t.typeOf=w},213:function(e,t,n){"use strict";var r=n(214);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},214:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},22:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d}));var r=n(0),o=n(70),i=(n(1),n(58),n(93),n(28)),a=n(36),s=n(35),u={}.hasOwnProperty,c=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)({key:"css"}):null);var l=c.Provider,d=function(e){return Object(r.forwardRef)((function(t,n){var o=Object(r.useContext)(c);return e(t,o,n)}))},p=Object(r.createContext)({});var f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",h=function(e,t){var n={};for(var r in t)u.call(t,r)&&(n[r]=t[r]);return n[f]=e,n},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Object(i.c)(t,n,r);Object(s.a)((function(){return Object(i.b)(t,n,r)}));return null},m=d((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[f],c=[o],l="";"string"==typeof e.className?l=Object(i.a)(t.registered,c,e.className):null!=e.className&&(l=e.className+" ");var d=Object(a.a)(c,void 0,Object(r.useContext)(p));l+=t.key+"-"+d.name;var h={};for(var m in e)u.call(e,m)&&"css"!==m&&m!==f&&(h[m]=e[m]);return h.ref=n,h.className=l,Object(r.createElement)(r.Fragment,null,Object(r.createElement)(g,{cache:t,serialized:d,isStringTag:"string"==typeof s}),Object(r.createElement)(s,h))}))},224:function(e,t,n){"use strict";n.r(t);var r=n(50),o=n.n(r),i=n(51),a=n.n(i),s=n(17),u=n.n(s),c=n(66),l=n.n(c),d=n(67),p=n.n(d),f=n(39),h=n.n(f),g=n(11),m=n.n(g),v=n(49),D=n.n(v),b=(n(139),n(0)),y=n.n(b),x=n(7),w=n.n(x),C=n(37),E=n.n(C),O=n(4),S=n(406),F=n(409),j=n(382),k=n(407),T=n(135),A=n(385),P=n(21),I=n(16);function M(e,t){var n=e||{},r=n.open,o=n.iToasterHeight,i=n.expandLauncher,a=n.bInvite,s=n.bFabVisible,u=n.expandedArticle,c=n.updateToasterBodyHeight,l=n.view,d=t||{},p=d.open,f=d.iToasterHeight,h=d.expandLauncher,g=d.bInvite,m=d.bFabVisible,v=d.expandedArticle,D=d.updateToasterBodyHeight,b=d.view;return r===p&&o===f&&i===h&&a===g&&s===m&&u===v&&c===D&&l===b}var B=Object(I.f)().browser||"",L=Object(I.f)().os||"";"Mac OS X"===L&&(L="mac");var R=!(!B||"Safari"!==B),_="iOS"===L,N="",z=Object(O.a)("div")((function(e){var t=e.theme,n=e.props;return{overflow:R||_||!n.messengerClosed?"hidden":"clip",borderRadius:"4px",boxShadow:t.palette.common.boxShadow,transition:"none!important",width:"100%"}})),$={toasterContainer:"".concat("toaster","-container"),root:"".concat("toaster","-root"),button:"".concat("toaster","-button"),unaryButton:"".concat("toaster","-unary-button"),buttonContainer:"".concat("toaster","-button-container"),message:"mxg-toaster-message",alertRoot:"mxg-alert-root"},H=Object(O.a)("div")((function(e){var t,n=e.theme,r=e.props;return t={},m()(t,"& .".concat($.root),{minWidth:"40%",width:"auto",zIndex:9999999,position:r.messengerClosed||"overflow"!==r.mode?"relative":"absolute",boxShadow:r.messengerClosed||"overflow"!==r.mode?"":n.palette.common.boxShadow,margin:r.messengerClosed||"overflow"!==r.mode?0:"16px",borderRadius:r.messengerClosed||"overflow"!==r.mode?0:"4px",maxWidth:"100%",bottom:r.expandLauncher?"bottom"===r.position?0:"initial":"12px",overflow:"hidden",height:"auto",flexDirection:"column-reverse"}),m()(t,"& .".concat($.buttonContainer),{float:"left",paddingTop:"16px"}),m()(t,"& .".concat($.button),{maxWidth:"48%",float:"left",marginRight:"16px",marginBottom:"0px"}),m()(t,"& .".concat($.unaryButton),{maxWidth:"100%"}),m()(t,"& .mxg-toaster-message",{height:"auto",minHeight:"80px",maxHeight:"192px",alignItems:"unset",overflow:"hidden",width:"100%",boxSizing:"border-box"}),m()(t,"& .mxg-alert-root",{width:"100%",boxSizing:"border-box",color:n.palette.common.darkGrey}),m()(t,"& .Cx-MuiButton-root",{"&:last-child":{marginLeft:"0px"}}),m()(t,"& .Cx-MuiTypography-subtitle1",{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),m()(t,"& .Cx-MuiTypography-subtitle2",{maxHeight:"96px",overflow:"hidden auto"}),m()(t,"& .Cx-MuiAlert-action",{padding:"0px"}),m()(t,"& .Cx-MuiAlert-icon",{padding:"10px 0"}),t})),q={},V=y.a.forwardRef((function(e,t){var n=e.open,r=e.key,o=e.content,i=e.config,a=e.oToaster,s=e.color,u=e.setToasterHeight,c=e.setToasterPosition,l=e.handleAcceptAction,d=e.handleDeclineAction,p=e.expandLauncher,f=e.updateToasterBodyHeight,h=o||{},g=h.title,m=h.body,v=h.buttons,D=v||{},x=D.type,w=D.primary,C=D.secondary,O=i||{},M=O.position,R=O.documentDirection,_=O.i18n,V=O.lang,U=M.alignment,W=_[V].toaster||{},G=W.acceptButton,K=W.rejectButton,J=W.ariaAcceptButton,Y=W.ariaRejectButton,Q=Object(b.useState)(!1),Z=E()(Q,2),X=Z[0],ee=Z[1],te=Object(b.useState)(!1),ne=E()(te,2),re=ne[0],oe=ne[1],ie=Object(b.useRef)(null),ae={left:"unset",right:"0px"},se={right:"unset",left:"0px"};q=f?{maxHeight:"46px"}:{};var ue=function(){ie&&ie.current&&ie.current.scrollWidth>ie.current.clientWidth?ee(!0):ee(!1)};if(Object(b.useEffect)((function(){window.addEventListener("resize",ue),re||setTimeout((function(){oe(!0)}))}),[re]),Object(b.useEffect)((function(){if(t&&t.current&&re){var e=t.current.clientHeight+26;u&&u(e),t.current.children[0]&&(t.current.children[0].style.maxHeight=e+"px"),a&&n&&!p&&a.command("MessengerHelper.setDimension",{toaster:{height:e,width:P.J,addClass:["genesys-mxg-toaster"]}}),ue()}return function(){window.removeEventListener("resize",ue)}})),U)switch(U){case"right":ae;break;case"left":se;break;case"auto":R&&("ltr"===R&&ae,"rtl"===R&&se)}c();var ce=function(e){13!==e.which&&32!==e.which||e.ctrlKey||e.shiftKey||(l(e),e.preventDefault())};return N=Object(I.k)()?"mxg-mobile-"+L.toLowerCase()+"-"+B.toLowerCase():"mxg-desktop-"+L.toLowerCase()+"-"+B.toLowerCase(),g||m||v?y.a.createElement(z,{props:e},y.a.createElement(H,{props:e,className:$.toasterContainer+" "+N},y.a.createElement(S.a,{open:n,ref:t,role:"alert",key:r,style:{right:"0px",left:"0px"},className:"".concat($.root+" "+(p?"mxg-expanded-toaster":""))},y.a.createElement(F.a,{severity:"info",onClose:d,classes:{message:$.message,root:$.alertRoot},componentsProps:{closeIcon:{sx:{width:"26px",height:"26px"}}}},g&&y.a.createElement(j.a,null,y.a.createElement(k.a,{componentsProps:{tooltip:{sx:{width:"93%",maxHeight:"100px",overflowY:"auto",margin:"10px 0"}}},title:g,PopperProps:{container:t&&t.current},disableHoverListener:!X,disableFocusListener:!X,disableTouchListener:!X},y.a.createElement(T.a,{variant:"subtitle1",variantMapping:{subtitle1:"h1"},gutterBottom:!0,"aria-label":g,dir:"auto",tabIndex:0,ref:ie},g))),m&&y.a.createElement(T.a,{style:q,className:"mxg-toaster-body",dir:"auto",variant:"subtitle2",variantMapping:{subtitle2:"h2"},tabIndex:0,"aria-label":m},m),v&&y.a.createElement("div",{className:$.buttonContainer},x&&"binary"===x&&y.a.createElement(y.a.Fragment,null,y.a.createElement(A.a,{className:$.button,variant:"contained",size:"small",dir:"auto",color:s,tabIndex:0,"aria-label":w||G+". "+J,onKeyPress:ce,onClick:l},w||G),y.a.createElement(A.a,{className:"mxg-decline-button ".concat($.button),variant:"contained",color:"secondary",size:"small",dir:"auto",tabIndex:0,"aria-label":C||K+". "+Y,onKeyPress:function(e){13!==e.which&&32!==e.which||e.ctrlKey||e.shiftKey||(d(e),e.preventDefault())},onClick:d},C||K)),x&&"unary"===x&&y.a.createElement(y.a.Fragment,null,y.a.createElement(A.a,{className:$.button+" "+$.unaryButton,variant:"contained",size:"small",dir:"auto",color:s,tabIndex:0,"aria-label":w||G+". "+J,onKeyPress:ce,onClick:l},w||G))))))):null}));V.propTypes={open:w.a.bool.isRequired,handleClose:w.a.func,config:w.a.object,showBottom:w.a.bool,key:w.a.any,color:w.a.string.isRequired,content:w.a.object};var U=y.a.memo(V,M),W=n(77);function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var o=h()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var K=function(e){l()(n,e);var t=G(n);function n(e){var r;o()(this,n),r=t.call(this,e),m()(u()(r),"handleToasterAccept",(function(e){var t=r.props||{},n=t.setToasterState,o=t.bToaster;"function"==typeof r.pToaster.resolve&&(r.pToaster.resolve("accepted"),r.pToaster=""),o&&(n&&n(!1),r.oToaster.publish("accepted"),"function"==typeof e.resolve&&e.resolve())})),m()(u()(r),"handleToasterDecline",(function(e){var t=r.props||{},n=t.setToasterState,o=t.bToaster;"function"==typeof r.pToaster.resolve&&(r.pToaster.resolve("declined"),r.pToaster=""),o&&(n&&n(!1),r.oToaster.publish("declined"),"function"==typeof e.resolve&&e.resolve())})),m()(u()(r),"initialize",(function(){var e=(r.props.config.headlessMode||{}).enabled,t=u()(r);r.oToaster&&Object.keys(r.oToaster).length&&(r.oToaster.registerCommand("open",(function(n){e&&Object.keys(t.pToaster).length?t.rejectToaster(n,"Toaster already exists"):t.openToaster(n,t)})),r.oToaster.registerCommand("accept",(function(n){e?Object.keys(t.pToaster).length?t.acceptToaster(n,t):t.rejectToaster(n,"Toaster not exists"):t.acceptToaster(n,t)})),r.oToaster.registerCommand("decline",(function(n){e?Object.keys(t.pToaster).length?t.declineToaster(n,t):t.rejectToaster(n,"Toaster not exists"):t.declineToaster(n,t)})),r.oToaster.ready())})),m()(u()(r),"setToasterPosition",(function(e){var t=r.props||{},n=t.expandLauncher,o=t.messengerClosed,i=t.config,a=t.bFabVisible,s=t.bInvite,u=(i||{}).position.sideSpace,c=0;if(o&&r.toasterRef&&r.toasterRef.current){if(r.toasterRef.current.style.bottom=n||s?"calc(88% - "+r.toasterRef.current.clientHeight+"px)":"0px",e&&e.type&&"orientationchange"===e.type&&(c=n?114:a?98:12,(Object(I.k)()||Object(I.i)())&&r.toasterRef.current.clientHeight+c>window.outerHeight&&!r.state.bUpdateToasterBodyHeight?r.setState({bUpdateToasterBodyHeight:!0}):r.setState({bUpdateToasterBodyHeight:!1})),u){var l=((r.toasterRef.current||{}).parentElement||{}).parentElement,d="calc(".concat(P.I,"% - ").concat(u,"px)");window.outerWidth-u<100*Math.round(P.J/P.I)&&(l?(r.toasterRef.current.parentElement.parentElement.style.maxWidth=d,r.toasterRef.current.parentElement.parentElement.style.position="relative",r.toasterRef.current.parentElement.parentElement.style.left="".concat(u,"px")):r.toasterRef.current.style.maxWidth=d)}r.toasterRef.current.style.right=n?(window.innerWidth-r.toasterRef.current.clientWidth)/2+"px":"0px"}}));var i=(e||{}).oPlugins;return r.state={bUpdateToasterBodyHeight:!1},r.sPluginName="Toaster",r.oToaster=i[r.sPluginName],r.pToaster="",r.position="top",r.mode="relative",r.toasterRef=Object(b.createRef)(),r}return a()(n,[{key:"handleToasterOpen",value:function(e,t){var n=this.props||{},r=n.setToasterState,o=n.bToaster,i=n.setToasterContent;Object.keys(e.data).length?(i(e.data),o||(r&&r(!0),t.oToaster.publish("opened"),e.resolve())):e.reject("Send Valid data.")}},{key:"rejectToaster",value:function(e,t){this.oToaster.publish("error",t),e.reject(t)}},{key:"openToaster",value:function(e,t){this.props.bToaster?t.rejectToaster(e,"Toaster already exists"):(t.pToaster=e,t.handleToasterOpen(e,t))}},{key:"acceptToaster",value:function(e,t){this.props.bToaster?(t.pToaster=e,t.handleToasterAccept(e)):t.rejectToaster(e,"Toaster not exists")}},{key:"declineToaster",value:function(e,t){this.props.bToaster?(t.pToaster=e,t.handleToasterDecline(e)):t.rejectToaster(e,"Toaster not exists")}},{key:"componentDidMount",value:function(){var e=this;this.initialize(),window.addEventListener("orientationchange",(function(t){setTimeout((function(){e.setToasterPosition(t)}),100)})),window.addEventListener("resize",this.setToasterPosition)}},{key:"componentDidUpdate",value:function(e){(((e||{}).config||{}).headlessMode||{}).enabled||!this.props.bToaster&&e.bToaster&&this.oToaster.command("MessengerHelper.setDimension",{toaster:{height:0,width:0}})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("orientationchange",this.setToasterPosition),window.removeEventListener("resize",this.setToasterPosition)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.bFabVisible,r=e.expandedArticle,o=e.expandLauncher,i=e.view,a=e.messengerClosed,s=e.bToaster,u=e.oToasterContent,c=t.theme.main,l=(t.headlessMode||{}).enabled;return"search"===i||"article"===i||"category"===i?(this.mode="overflow",this.position="bottom"):(this.mode="relative",this.position="top"),y.a.createElement("div",null,!l&&s&&y.a.createElement(U,{open:s,bInvite:this.props.bInvite,expandLauncher:o,messengerClosed:a,color:c,content:u,config:t,handleAcceptAction:this.handleToasterAccept,handleDeclineAction:this.handleToasterDecline,ref:this.toasterRef,oToaster:this.oToaster,iToasterHeight:this.props.iToasterHeight,setToasterHeight:this.props.setToasterHeight,setToasterPosition:this.setToasterPosition,bFabVisible:n,expandedArticle:r,updateToasterBodyHeight:this.state.bUpdateToasterBodyHeight,view:i,mode:this.mode,position:this.position}))}}]),n}(y.a.Component);K.propTypes={oPlugins:w.a.object.isRequired,config:w.a.object.isRequired,bFabVisible:w.a.bool.isRequired};var J;t.default=(J=K,function(e){return y.a.createElement(W.a.Consumer,null,(function(t){var n=t.oPlugins,r=t.expandLauncher,o=t.toggleLauncher,i=t.setToasterHeight,a=t.setToasterState,s=t.setToasterContent,u=t.oToasterContent,c=t.bToaster,l=t.bFabVisible,d=t.iToasterHeight,p=t.bInvite,f=t.expandedArticle,h=t.view,g=t.messengerClosed;return y.a.createElement(J,D()({},e,{oPlugins:n,expandLauncher:r,toggleLauncher:o,iToasterHeight:d,setToasterHeight:i,setToasterState:a,setToasterContent:s,oToasterContent:u,bToaster:c,bFabVisible:l,bInvite:p,expandedArticle:f,view:h,messengerClosed:g}))}))})},24:function(e,t,n){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",u="month",c="quarter",l="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,u),i=n-o<0,a=t.clone().add(r+(i?-1:1),u);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:s,d:a,D:d,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},D="en",b={};b[D]=g;var y=function(e){return e instanceof E},x=function e(t,n,r){var o;if(!t)return D;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,o=s}return!r&&o&&(D=o),o||!r&&D},w=function(e,t){if(y(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},C=v;C.l=x,C.i=y,C.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=x(e.locale,null,!0),this.parse(e)}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return C},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return w(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<w(e)},m.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,c=!!C.u(t)||t,p=C.p(e),f=function(e,t){var r=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,D="set"+(this.$u?"UTC":"");switch(p){case l:return c?f(1,0):f(31,11);case u:return c?f(1,m):f(0,m+1);case s:var b=this.$locale().weekStart||0,y=(g<b?g+7:g)-b;return f(c?v-y:v+(6-y),m);case a:case d:return h(D+"Hours",0);case i:return h(D+"Minutes",1);case o:return h(D+"Seconds",2);case r:return h(D+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var s,c=C.p(e),p="set"+(this.$u?"UTC":""),f=(s={},s[a]=p+"Date",s[d]=p+"Date",s[u]=p+"Month",s[l]=p+"FullYear",s[i]=p+"Hours",s[o]=p+"Minutes",s[r]=p+"Seconds",s[n]=p+"Milliseconds",s)[c],h=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var g=this.clone().set(d,1);g.$d[f](h),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[C.p(e)]()},m.add=function(n,c){var d,p=this;n=Number(n);var f=C.p(c),h=function(e){var t=w(p);return C.w(t.date(t.date()+Math.round(e*n)),p)};if(f===u)return this.set(u,this.$M+n);if(f===l)return this.set(l,this.$y+n);if(f===a)return h(1);if(f===s)return h(7);var g=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[f]||1,m=this.$d.getTime()+n*g;return C.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},d=function(e){return C.s(i%12||12,e,"0")},f=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},g={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:C.s(s+1,2,"0"),MMM:l(n.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,u,2),ddd:l(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:C.s(i,2,"0"),h:d(1),hh:d(2),a:f(i,a,!0),A:f(i,a,!1),m:String(a),mm:C.s(a,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:o};return r.replace(h,(function(e,t){return t||g[e]||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,p){var f,h=C.p(d),g=w(n),m=(g.utcOffset()-this.utcOffset())*e,v=this-g,D=C.m(this,g);return D=(f={},f[l]=D/12,f[u]=D,f[c]=D/3,f[s]=(v-m)/6048e5,f[a]=(v-m)/864e5,f[i]=v/t,f[o]=v/e,f[r]=v/1e3,f)[h]||v,p?D:C.a(D)},m.daysInMonth=function(){return this.endOf(u).$D},m.$locale=function(){return b[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return C.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),O=E.prototype;return w.prototype=O,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",d]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,E,w),e.$i=!0),w},w.locale=x,w.isDayjs=y,w.unix=function(e){return w(1e3*e)},w.en=b[D],w.Ls=b,w.p={},w}()},263:function(e,t,n){"use strict";n(49);var r=n(0),o=n(59),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=Object(o.a)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),s=n(1),u=n(22),c=n(28),l=n(36),d=n(35),p=a,f=function(e){return"theme"!==e},h=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:f},g=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Object(c.c)(t,n,r);Object(d.a)((function(){return Object(c.b)(t,n,r)}));return null},v=function e(t,n){var o,i,a=t.__emotion_real===t,d=a&&t.__emotion_base||t;void 0!==n&&(o=n.label,i=n.target);var p=g(t,n,a),f=p||h(d),v=!f("as");return function(){var D=arguments,b=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==D[0]||void 0===D[0].raw)b.push.apply(b,D);else{0,b.push(D[0][0]);for(var y=D.length,x=1;x<y;x++)b.push(D[x],D[0][x])}var w=Object(u.f)((function(e,t,n){var o=v&&e.as||d,a="",s=[],g=e;if(null==e.theme){for(var D in g={},e)g[D]=e[D];g.theme=Object(r.useContext)(u.c)}"string"==typeof e.className?a=Object(c.a)(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var y=Object(l.a)(b.concat(s),t.registered,g);a+=t.key+"-"+y.name,void 0!==i&&(a+=" "+i);var x=v&&void 0===p?h(o):f,w={};for(var C in e)v&&"as"===C||x(C)&&(w[C]=e[C]);return w.className=a,w.ref=n,Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m,{cache:t,serialized:y,isStringTag:"string"==typeof o}),Object(r.createElement)(o,w))}));return w.displayName=void 0!==o?o:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=d,w.__emotion_styles=b,w.__emotion_forwardProp=p,Object.defineProperty(w,"toString",{value:function(){return"."+i}}),w.withComponent=function(t,r){return e(t,Object(s.a)({},n,r,{shouldForwardProp:g(w,r,!0)})).apply(void 0,b)},w}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){v[e]=v(e)}));t.a=v},264:function(e,t,n){"use strict";n.r(t);var r=n(37),o=n.n(r),i=n(50),a=n.n(i),s=n(51),u=n.n(s),c=n(17),l=n.n(c),d=n(66),p=n.n(d),f=n(67),h=n.n(f),g=n(39),m=n.n(g),v=n(11),D=n.n(v),b=n(49),y=n.n(b),x=(n(139),n(0)),w=n.n(x),C=n(7),E=n.n(C),O=n(4),S=n(259),F=n.n(S),j=n(268),k=n(406),T=n(21),A={root:"".concat("Engage","-root"),rootBottom:"".concat("Engage","-rootBottom"),snackbarContent:"".concat("Engage","-snackbarContent"),content:"".concat("Engage","-content"),snackbarMessage:"".concat("Engage","-snackbarMessage"),snackbarAction:"".concat("Engage","-snackbarAction"),iconButton:"".concat("Engage","-iconButton")},P=Object(O.a)("div")((function(e){var t;e.theme;return t={},D()(t,"& .".concat(A.root),{maxWidth:"96%",minWidth:"40%",position:"absolute",bottom:"86px",height:"auto",minHeight:"50px",left:"auto"}),D()(t,"& .".concat(A.rootBottom),{bottom:"12px"}),D()(t,"& .".concat(A.snackbarContent),{padding:"0px",height:"auto",maxHeight:"120px",overflow:"hidden"}),D()(t,"& .".concat(A.content),{cursor:"pointer",padding:"14px 0px 14px 18px",fontSize:"1.05em",wordBreak:"break-word",boxSizing:"border-box"}),D()(t,"& .".concat(A.snackbarMessage),{maxWidth:"84%",padding:"4px 0"}),D()(t,"& .".concat(A.snackbarAction),{padding:"0px",margin:"0px"}),D()(t,"& .".concat(A.iconButton),{color:"#444444cf"}),t}));function I(e,t){return w.a.createElement(j.a,{className:A.iconButton,onClick:e,"aria-label":t.ariaClose},w.a.createElement(F.a,{alt:"",sx:{width:"26px",height:"26px",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}))}var M=w.a.forwardRef((function(e,t){var n=e.open,r=e.handleClose,o=e.key,i=e.message,a=e.handleClick,s=e.showBottom,u=e.config,c=e.oEngage,l=u||{},d=l.position,p=l.documentDirection,f=d.alignment,h=d.sideSpace,g="right",m={},v={left:"auto"},D={right:"auto"};if(Object(x.useEffect)((function(){setTimeout((function(){if(t&&t.current){var e=t.current.clientHeight+26;t.current.children[0].style.maxHeight=e+"px",c&&n&&c.command("MessengerHelper.setDimension",{engage:{height:e,width:T.p}})}}),100)})),f){switch(f){case"right":m=v,g="right";break;case"left":m=D,g="left";break;case"auto":p&&("ltr"===p&&(m=v,g="right"),"rtl"===p&&(m=D,g="left"))}h&&window.outerWidth-h<100*Math.round(T.p/T.o)&&(m.maxWidth="calc(".concat(T.o,"% - ").concat(h,"px)"))}return w.a.createElement(P,null,w.a.createElement(k.a,{ref:t,open:n,anchorOrigin:{vertical:"bottom",horizontal:g},action:I(r,e),transitionDuration:400,role:"alert",message:w.a.createElement("div",{className:A.content,role:"button",onClick:a,onKeyPress:function(e){13!==e.which&&32!==e.which||e.ctrlKey||e.shiftKey||(a(),e.preventDefault())},tabIndex:0,dir:"auto"},i),key:o,style:m,classes:{root:A.root},className:"".concat(s?A.rootBottom:""),ContentProps:{classes:{root:A.snackbarContent,message:A.snackbarMessage,action:A.snackbarAction}}}))}));M.propTypes={open:E.a.bool.isRequired,handleClose:E.a.func,handleClick:E.a.func,config:E.a.object,ariaClose:E.a.string,showBottom:E.a.bool,key:E.a.any,color:E.a.string.isRequired,message:E.a.string.isRequired};var B=M,L=n(77),R=n(16);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var N=function(e){p()(n,e);var t=_(n);function n(e){var r;a()(this,n),r=t.call(this,e),D()(l()(r),"resetMetadata",(function(){r.oMetaData.inviteOffered="",r.oMetaData.inviteAccepted="",r.oMetaData.inviteRejected="",r.oMetaData.inviteIgnored="",r.oMetaData.inviteError="",r.oMetaData.journeyContext=""})),D()(l()(r),"checkPersistentChat",(function(){r.bNewConversation||r.oEngage.command(r.storage+".get",{name:r.storagePrefix+r.subConversationStorage}).then((function(e){if(e){var t=e.split(" "),n=o()(t,1)[0];r.bConversationActive=!(!n||"string"!=typeof n||"true"!==n)}else r.bConversationActive=!1}))})),D()(l()(r),"checkAuthentication",(function(){return(r.props.config.auth||{}).enabled?new Promise((function(e,t){r.oEngage.command(r.storage+".get",{names:[T.c]}).then((function(n){var r=n[T.c];r&&"undefined"!==r?e():t()})).catch((function(){t()}))})):Promise.resolve()})),D()(l()(r),"inviteAccepted",(function(){r.setState({bShowInvite:!1}),r.oMetaData.inviteAccepted=(new Date).getTime(),"function"==typeof r.oEngageInvitePromise.resolve&&(r.oEngageInvitePromise.resolve("accepted"),r.oEngageInvitePromise=""),r.oEngageAcceptPromise&&"function"==typeof r.oEngageAcceptPromise.resolve&&r.oEngageAcceptPromise.resolve(r.oMetaData),r.oEngage.publish("inviteAccepted",r.oMetaData)})),D()(l()(r),"handleEngageClose",(function(e){r.setState({bShowInvite:!1}),r.props.setInviteState(!1),r.oMetaData.inviteRejected=(new Date).getTime(),"function"==typeof r.oEngageInvitePromise.resolve&&(r.oEngageInvitePromise.resolve("rejected"),r.oEngageInvitePromise=""),r.oEngageRejectPromise&&"function"==typeof r.oEngageRejectPromise.resolve&&r.oEngageRejectPromise.resolve(r.oMetaData),r.oEngage.publish("inviteRejected",r.oMetaData),setTimeout((function(){r.resetMetadata()}),0)})),D()(l()(r),"handleEngageClick",(function(e){(0,r.props.handleEngageClick)({journeyContext:r.oMetaData.journeyContext}),r.inviteAccepted()})),D()(l()(r),"showInvite",(function(e){e.setState({bShowInvite:!0}),e.props.setInviteState(!0),r.oMetaData.inviteOffered=(new Date).getTime(),r.oEngage.publish("inviteOffered",r.oMetaData)})),D()(l()(r),"initialize",(function(){var e=(r.props.config.headlessMode||{}).enabled,t=l()(r);r.oEngage&&Object.keys(r.oEngage).length&&(r.oEngage.registerCommand("invite",(function(n){e&&Object.keys(t.oEngageInvitePromise).length?t.rejectInvite(n,{code:"INVITEACTIVE",reason:"There is active invite already exits"}):t.registerInvite(n,t)})),r.oEngage.registerCommand("accept",(function(e){if(Object.keys(t.oEngageInvitePromise).length)t.oEngageAcceptPromise=e,t.handleEngageClick();else{t.rejectInvite(e,{code:"NOACTIVEINVITE",reason:"There is no active invite to accept"})}})),r.oEngage.registerCommand("reject",(function(e){if(Object.keys(t.oEngageInvitePromise).length)t.oEngageRejectPromise=e,t.handleEngageClose();else{t.rejectInvite(e,{code:"NOACTIVEINVITE",reason:"There is no active invite to reject"})}})),r.oEngage.subscribe("Messenger.visibilityChanged",(function(e){e.data.hidden&&t.state.bShowInvite&&(t.oMetaData.inviteIgnored=(new Date).getTime(),t.oEngage.publish("inviteIgnored",t.oMetaData))})),r.oEngage.subscribe("Identifiers.ready",(function(e){t.oEngage.command("Identifiers.getJourneyContext").then((function(e){var n=e.customer,r=e.customerSession;n&&Object.keys(n).length&&(t.oJourneyContext.customer=n),r&&Object.keys(r).length&&(t.oJourneyContext.customerSession=r),t.props.setJourneyContext(t.oJourneyContext)}))})),r.oEngage.subscribe("Journey.qualifiedWebMessagingOffer",(function(e){t.handleInvite(e,t)})),r.oEngage.subscribe("MessagingService.started",(function(e){if(t.bConversationActive=!0,e.data&&Object.keys(e.data).length){var n=(e.data||{}).newSession;t.bNewConversation=!!n}})),r.oEngage.subscribe("MessagingService.sessionExpired",(function(e){t.bNewConversation=!1,setTimeout((function(){t.checkPersistentChat()}),1e3)})),r.oEngage.subscribe("Auth.loggedOut",(function(){t.state.bShowInvite&&t.setState({bShowInvite:!1})})),r.oEngage.subscribe("Auth.data.authenticated",(function(e){(e.data||{}).value||t.state.bShowInvite&&t.setState({bShowInvite:!1})})),r.oEngage.subscribe("MessagingService.messagesReceived",(function(e){if(t.bNewConversation&&e.data&&Object.keys(e.data).length){var n=(e.data||{}).messages;n&&Object.keys(n).length&&(t.bNewConversation=!1)}})),r.oEngage.ready())})),r.state={bShowInvite:!1},r.sPluginName="Engage",r.oEngage=e.plugin,r.oEngageInvitePromise="",r.oEngageAcceptPromise="",r.oEngageRejectPromise="",r.oJourneyContext={},r.oMetaData={journeyContext:"",inviteOffered:"",inviteAccepted:"",inviteRejected:"",inviteIgnored:"",inviteError:"",customOfferText:""};var i=e.config,s=i.deploymentId;return r.storagePrefix=s?s+":gcmc":"_gcmc",r.subConversationStorage="sessionActive",r.bConversationActive=!1,r.bNewConversation=!1,r.maxMessageLength=70,r.engageRef=Object(x.createRef)(),r.storage=Object(R.g)(i),r}return u()(n,[{key:"rejectInvite",value:function(e,t){this.oMetaData.inviteError=t,this.oEngage.publish("inviteError",this.oMetaData),e.reject(t)}},{key:"registerInvite",value:function(e,t){t.oEngageInvitePromise=e,t.handleInvite(e,t)}},{key:"handleInvite",value:function(e,t){var n=this,r=this,o=this.props,i=o.expandLauncher,a=o.config,s=((a||{}).auth||{}).enabled,u=this.state.bShowInvite,c=e.data,l=c.journeyContext,d=(c.engageContent||{}).offerText,p=a.i18n[a.lang].launcher.inviteMessage,f=!1;this.checkPersistentChat(),this.checkAuthentication().then((function(){d&&!u?d.length>n.maxMessageLength||!d.trim()?(n.oMetaData.inviteError={code:"INVALIDOFFERTEXT",reason:"Custom offer message is invalid. Default invite message used instead"},n.oEngage.publish("inviteError",n.oMetaData),n.oMetaData.customOfferText=""):(n.oMetaData.customOfferText=d.trim(),f=!0):n.oMetaData.customOfferText&&!u&&(n.oMetaData.customOfferText=""),p&&(f=!(p.length>n.maxMessageLength)),n.oJourneyContext&&n.oJourneyContext.triggeringAction&&!u&&(n.oJourneyContext.triggeringAction={}),l&&(n.oJourneyContext=Object(R.m)(n.oJourneyContext,l),n.oMetaData.journeyContext=n.oJourneyContext),n.props.setJourneyContext(n.oJourneyContext),u?(n.oMetaData.inviteError={code:"INVITEACTIVE",reason:"There is active invite already exits"},n.oEngage.publish("inviteError",n.oMetaData)):f?i||n.bConversationActive&&!n.bNewConversation?n.bConversationActive?s&&!i&&n.bNewConversation?n.showInvite(t):n.bNewConversation?(n.oMetaData.inviteError={code:"ALREADYOPEN",reason:"Conversation application is already open"},n.oEngage.publish("inviteError",n.oMetaData)):(n.oMetaData.inviteError={code:"CONVERSATIONACTIVE",reason:"There is an active chat already exists"},n.oEngage.publish("inviteError",n.oMetaData)):(n.oMetaData.inviteError={code:"ALREADYOPEN",reason:"Conversation application is already open"},n.oEngage.publish("inviteError",n.oMetaData)):n.showInvite(t):(n.oMetaData.inviteError={code:"INVALIDINVITEMESSAGE",reason:"Offer message length exceeds 70 characters"},n.oEngage.publish("inviteError",n.oMetaData))}),(function(){r.oMetaData.inviteError={code:"UNAUTHENTICATED_USER",reason:"User must be authenticated to receive the offer"},r.oEngage.publish("inviteError",r.oMetaData),"function"==typeof e.reject&&e.reject("User must be authenticated to receive the offer")}))}},{key:"componentDidMount",value:function(){this.initialize(),this.props.setInviteAccepted(this.inviteAccepted),this.checkPersistentChat()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=(((e||{}).config||{}).headlessMode||{}).enabled;n.checkPersistentChat(),r||!this.state.bShowInvite&&t.bShowInvite&&setTimeout((function(){n.oEngage.command("MessengerHelper.setDimension",{engage:{height:0,width:0}})}),200)}},{key:"render",value:function(){var e=this.state.bShowInvite,t=this.props,n=t.expandLauncher,r=t.config,o=r.i18n,i=r.lang,a=r.theme.main,s=(r.headlessMode||{}).enabled,u=o[i].launcher,c=u.inviteMessage,l=u.ariaCloseInvite;return w.a.createElement("div",null,!s&&w.a.createElement(B,{open:e&&!n,showBottom:!this.props.bFabVisible,color:a,message:this.oMetaData.customOfferText||c,config:r,handleClose:this.handleEngageClose,handleClick:this.handleEngageClick,ariaClose:l,ref:this.engageRef,oEngage:this.oEngage}))}}]),n}(w.a.Component);N.propTypes={plugin:E.a.object.isRequired,config:E.a.object.isRequired,setInviteAccepted:E.a.func.isRequired,bFabVisible:E.a.bool.isRequired};var z;t.default=(z=N,function(e){return w.a.createElement(L.a.Consumer,null,(function(t){var n=t.expandLauncher,r=t.toggleLauncher,o=t.setInviteState,i=t.bFabVisible,a=t.setJourneyContext,s=t.handleEngageClick;return w.a.createElement(z,y()({},e,{expandLauncher:n,toggleLauncher:r,setInviteState:o,bFabVisible:i,setJourneyContext:a,handleEngageClick:s}))}))})},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}}},3:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return r})),n.d(t,"h",(function(){return s})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return i})),n.d(t,"k",(function(){return z})),n.d(t,"l",(function(){return x})),n.d(t,"m",(function(){return S})),n.d(t,"n",(function(){return G})),n.d(t,"o",(function(){return M})),n.d(t,"p",(function(){return $})),n.d(t,"q",(function(){return H})),n.d(t,"r",(function(){return h})),n.d(t,"s",(function(){return m})),n.d(t,"t",(function(){return y})),n.d(t,"u",(function(){return D})),n.d(t,"v",(function(){return X})),n.d(t,"w",(function(){return B})),n.d(t,"x",(function(){return L})),n.d(t,"y",(function(){return T})),n.d(t,"z",(function(){return b})),n.d(t,"A",(function(){return ee})),n.d(t,"B",(function(){return Q})),n.d(t,"C",(function(){return _})),n.d(t,"D",(function(){return Z})),n.d(t,"E",(function(){return C})),n.d(t,"F",(function(){return N}));var r="-ms-",o="-moz-",i="-webkit-",a="comm",s="rule",u="decl",c="@media",l="@import",d="@supports",p="@keyframes",f=Math.abs,h=String.fromCharCode,g=Object.assign;function m(e,t){return 45^x(e,0)?(((t<<2^x(e,0))<<2^x(e,1))<<2^x(e,2))<<2^x(e,3):0}function v(e){return e.trim()}function D(e,t){return(e=t.exec(e))?e[0]:e}function b(e,t,n){return e.replace(t,n)}function y(e,t){return e.indexOf(t)}function x(e,t){return 0|e.charCodeAt(t)}function w(e,t,n){return e.slice(t,n)}function C(e){return e.length}function E(e){return e.length}function O(e,t){return t.push(e),e}function S(e,t){return e.map(t).join("")}var F=1,j=1,k=0,T=0,A=0,P="";function I(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:F,column:j,length:a,return:""}}function M(e,t){return g(I("",null,null,"",null,null,0),e,{length:-e.length},t)}function B(){return A=T<k?x(P,T++):0,j++,10===A&&(j=1,F++),A}function L(){return x(P,T)}function R(){return T}function _(e,t){return w(P,e,t)}function N(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z(e){return F=j=1,k=C(P=e),T=0,[]}function $(e){return P="",e}function H(e){return v(_(T-1,function e(t){for(;B();)switch(A){case t:return T;case 34:case 39:34!==t&&39!==t&&e(A);break;case 40:41===t&&e(t);break;case 92:B()}return T}(91===e?e+2:40===e?e+1:e)))}function q(e){for(;(A=L())&&A<33;)B();return N(e)>2||N(A)>3?"":" "}function V(e,t){for(;--t&&B()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return _(e,R()+(t<6&&32==L()&&32==B()))}function U(e,t){for(;B()&&e+A!==57&&(e+A!==84||47!==L()););return"/*"+_(t,T-1)+"*"+h(47===e?e:B())}function W(e){for(;!N(L());)B();return _(e,T)}function G(e){return $(function e(t,n,r,o,i,a,s,u,c){var l=0,d=0,p=s,f=0,g=0,m=0,v=1,D=1,w=1,E=0,S="",k=i,I=a,M=o,_=S;for(;D;)switch(m=E,E=B()){case 40:if(108!=m&&58==x(_,p-1)){-1!=y(_+=b(H(E),"&","&\f"),"&\f")&&(w=-1);break}case 34:case 39:case 91:_+=H(E);break;case 9:case 10:case 13:case 32:_+=q(m);break;case 92:_+=V(R()-1,7);continue;case 47:switch(L()){case 42:case 47:O(J(U(B(),R()),n,r),c);break;default:_+="/"}break;case 123*v:u[l++]=C(_)*w;case 125*v:case 59:case 0:switch(E){case 0:case 125:D=0;case 59+d:g>0&&C(_)-p&&O(g>32?Y(_+";",o,r,p-1):Y(b(_," ","")+";",o,r,p-2),c);break;case 59:_+=";";default:if(O(M=K(_,n,r,l,d,i,u,S,k=[],I=[],p),a),123===E)if(0===d)e(_,n,M,M,k,a,p,u,I);else switch(99===f&&110===x(_,3)?100:f){case 100:case 109:case 115:e(t,M,M,o&&O(K(t,M,M,0,0,i,u,S,i,k=[],p),I),i,I,p,u,o?k:I);break;default:e(_,M,M,M,[""],I,0,u,I)}}l=d=g=0,v=w=1,S=_="",p=s;break;case 58:p=1+C(_),g=m;default:if(v<1)if(123==E)--v;else if(125==E&&0==v++&&125==(A=T>0?x(P,--T):0,j--,10===A&&(j=1,F--),A))continue;switch(_+=h(E),E*v){case 38:w=d>0?1:(_+="\f",-1);break;case 44:u[l++]=(C(_)-1)*w,w=1;break;case 64:45===L()&&(_+=H(B())),f=L(),d=p=C(S=_+=W(R())),E++;break;case 45:45===m&&2==C(_)&&(v=0)}}return a}("",null,null,null,[""],e=z(e),0,[0],e))}function K(e,t,n,r,o,i,a,u,c,l,d){for(var p=o-1,h=0===o?i:[""],g=E(h),m=0,D=0,y=0;m<r;++m)for(var x=0,C=w(e,p+1,p=f(D=a[m])),O=e;x<g;++x)(O=v(D>0?h[x]+" "+C:b(C,/&\f/g,h[x])))&&(c[y++]=O);return I(e,t,n,0===o?s:u,c,l,d)}function J(e,t,n){return I(e,t,n,a,h(A),w(e,2,-2),0)}function Y(e,t,n,r){return I(e,t,n,u,w(e,0,r),w(e,r+1,-1),r)}function Q(e,t){for(var n="",r=E(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Z(e,t,n,r){switch(e.type){case l:case u:return e.return=e.return||e.value;case a:return"";case p:return e.return=e.value+"{"+Q(e.children,r)+"}";case s:e.value=e.props.join(",")}return C(n=Q(e.children,r))?e.return=e.value+"{"+n+"}":""}function X(e){var t=E(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function ee(e){return function(t){t.root||(t=t.return)&&e(t)}}},32:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=window.newrelic||{},o=r&&Object.keys(r).length;function i(e){if(o){var t=e||{},n=t.errorName,i={error:t.errorMessage};return r.noticeError(n,i)}}},339:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return u}));var r=n(419),o=n.n(r);function i(e){return o.a.sanitize(e,{ADD_ATTR:["target"]})}function a(e,t,n){return t.filter((function(t){return!e.some((function(e){return t[n]==e[n]}))}))}function s(e,t,n){return e.some((function(e){return e[t]===n}))}function u(e){return!e||-1===e.indexOf("s3.amazonaws.com")}},34:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}));var r=n(0),o=(n(70),n(22)),i=(n(49),n(58),n(83),n(28)),a=n(36),s=n(35),u=Object(o.f)((function(e,t){var n=e.styles,u=Object(a.a)([n],void 0,Object(r.useContext)(o.c)),c=Object(r.useRef)();return Object(s.b)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+u.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,r],function(){n.flush()}}),[t]),Object(s.b)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==u.next&&Object(i.b)(t,u.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",u,n,!1)}}),[t,u.name]),null}));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(a.a)(t)}var l=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},340:function(e,t,n){"use strict";var r=n(11),o=n.n(r),i=n(0),a=n.n(i),s=n(7),u=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){var t=e.icon,n=(e||{}).customStyle;return a.a.createElement(t,{sx:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({transform:"rtl"===e.direction?"scaleX(-1)":void 0},n)}})}l.propTypes={icon:u.a.elementType},t.a=l},341:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var d=s(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:l,updater:m(p,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,d=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,g=0;function m(e,t){var n,r,o;if(t.singleton){var i=g++;n=h||(h=c(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=c(t),r=f.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=u(e,t),c=0;c<n.length;c++){var l=s(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},342:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,s,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},35:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(0),o=!!r.useInsertionEffect&&r.useInsertionEffect,i=o||function(e){return e()},a=o||r.useLayoutEffect},36:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(59),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},l=Object(i.a)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===o[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)f={name:r.name,styles:r.styles,next:f},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=p(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":c(a)&&(r+=l(i)+":"+d(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=p(e,t,a);switch(i){case"animation":case"animationName":r+=l(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)c(a[u])&&(r+=l(i)+":"+d(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=f,i=n(e);return f=o,p(e,t,i)}break;case"string":}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var f,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var g=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";f=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=p(n,t,a)):i+=a[0];for(var s=1;s<e.length;s++)i+=p(n,t,e[s]),o&&(i+=a[s]);h.lastIndex=0;for(var u,c="";null!==(u=h.exec(i));)c+="-"+u[1];return{name:r(i)+c,styles:i,next:f}}},37:function(e,t,n){var r=n(142),o=n(143),i=n(137),a=n(144);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},380:function(e,t,n){"use strict";var r=n(50),o=n.n(r),i=n(51),a=n.n(i),s=n(66),u=n.n(s),c=n(67),l=n.n(c),d=n(39),p=n.n(d),f=n(0),h=n.n(f),g=n(7),m=n.n(g),v=n(324);function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l()(this,n)}}var b={marginBottom:"12px",borderRadius:"4px"},y=function(e){u()(n,e);var t=D(n);function n(e){return o()(this,n),t.call(this,e)}return a()(n,[{key:"render",value:function(){for(var e=this.props,t=e.rows,n=e.heights,r=[],o=0;o<t;o++)r.push(h.a.createElement(v.a,{height:n[o]||80,variant:"rectangular",style:b,key:o.toString()}));return h.a.createElement("div",null,r)}}]),n}(h.a.Component);y.propTypes={rows:m.a.number.isRequired,heights:m.a.array},t.a=y},381:function(e,t,n){"use strict";n.r(t);var r=n(145);n.d(t,"KnowledgeCard",(function(){return r.KnowledgeCard})),n.d(t,"KnowledgeSearch",(function(){return r.KnowledgeSearch})),n.d(t,"KnowledgeArticle",(function(){return r.KnowledgeArticle})),n.d(t,"KnowledgeResults",(function(){return r.KnowledgeResults})),n.d(t,"KnowledgeCategories",(function(){return r.KnowledgeCategories})),n.d(t,"initKnowledgeServicePlugin",(function(){return r.initKnowledgeServicePlugin}))},39:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},412:function(e,t,n){"use strict";var r=n(5),o=n(1),i=n(123),a=n(78),s=n(0),u=n.n(s),c=n(45);function l(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(s.isValidElement)(e)?t(e):e}(e)})),n}function d(e,t,n){return null!=n[t]?n[t]:e.props[t]}function p(e,t,n){var r=l(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(Object(s.isValidElement)(a)){var u=i in t,c=i in r,l=t[i],p=Object(s.isValidElement)(l)&&!l.props.in;!c||u&&!p?c||!u||p?c&&u&&Object(s.isValidElement)(l)&&(o[i]=Object(s.cloneElement)(a,{onExited:n.bind(null,a),in:l.props.in,exit:d(a,"exit",e),enter:d(a,"enter",e)})):o[i]=Object(s.cloneElement)(a,{in:!1}):o[i]=Object(s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:d(a,"exit",e),enter:d(a,"enter",e)})}})),o}var f=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},h=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(i.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(a.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,l(n.children,(function(e){return Object(s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:d(e,"appear",n),enter:d(e,"enter",n),exit:d(e,"exit",n)})}))):p(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=l(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(o.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=Object(r.a)(e,["component","childFactory"]),i=this.state.contextValue,a=f(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?u.a.createElement(c.a.Provider,{value:i},a):u.a.createElement(c.a.Provider,{value:i},u.a.createElement(t,o,a))},t}(u.a.Component);h.propTypes={},h.defaultProps={component:"div",childFactory:function(e){return e}};t.a=h},413:function(e,t,n){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){var t={date:e,utc:!0,args:arguments};return new o(t)},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else u.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r)))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return p.call(this,e,t,n);var r=this.local(),o=i(e).local();return p.call(r,o,t,n)}}}()},414:function(e,t,n){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var o=n.prototype,i=o.format;r.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,o){var i=o&&o.toUpperCase();return r||n[o]||e[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return i.call(this,r)}}}()},424:function(e,t,n){
/*!
 * CSSJanus. https://github.com/cssjanus/cssjanus
 *
 * Copyright 2014 Trevor Parscal
 * Copyright 2010 Roan Kattouw
 * Copyright 2008 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var r;function o(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",t="(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+e+")",n="(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f]))(?:[_a-z0-9-]|[^\\u0020-\\u007e]|(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f]))*)?",r="((?:-?"+n+")|(?:inherit|auto))",i="(#?"+t+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",a="(?:[!#$%&*-~]|[^\\u0020-\\u007e]|"+e+")*?",s="(?!("+t+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|`COMMENT`)*?{)",u="(?!"+a+"['\"]?\\s*\\))",c="(?="+a+"['\"]?\\s*\\))",l="(\\s*(?:!important\\s*)?[;}])",d=/`TMP`/g,p=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),f=new RegExp("(\\/\\*\\!?\\s*@noflip\\s*\\*\\/"+s+"[^;}]+;?)","gi"),h=new RegExp("(\\/\\*\\!?\\s*@noflip\\s*\\*\\/[^\\}]*?})","gi"),g=new RegExp("(direction\\s*:\\s*)ltr","gi"),m=new RegExp("(direction\\s*:\\s*)rtl","gi"),v=new RegExp("(^|[^a-zA-Z])(left)(?![a-zA-Z])"+u+s,"gi"),D=new RegExp("(^|[^a-zA-Z])(right)(?![a-zA-Z])"+u+s,"gi"),b=new RegExp("(^|[^a-zA-Z])(left)"+c,"gi"),y=new RegExp("(^|[^a-zA-Z])(right)"+c,"gi"),x=new RegExp("(^|[^a-zA-Z])(ltr)"+c,"gi"),w=new RegExp("(^|[^a-zA-Z])(rtl)"+c,"gi"),C=new RegExp("(^|[^a-zA-Z])([ns]?)e-resize","gi"),E=new RegExp("(^|[^a-zA-Z])([ns]?)w-resize","gi"),O=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+r+"(\\s+)"+r+"(\\s+)"+r+"(\\s+)"+r+l,"gi"),S=new RegExp("((?:-color|border-style)\\s*:\\s*)"+i+"(\\s+)"+i+"(\\s+)"+i+"(\\s+)"+i+l,"gi"),F=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+n+")","gi"),j=new RegExp("(background-position-x\\s*:\\s*)(-?(?:[0-9]*\\.[0-9]+|[0-9]+)%)","gi"),k=new RegExp("(border-radius\\s*:\\s*)"+r+"(?:(?:\\s+"+r+")(?:\\s+"+r+")?(?:\\s+"+r+")?)?(?:(?:(?:\\s*\\/\\s*)"+r+")(?:\\s+"+r+")?(?:\\s+"+r+")?(?:\\s+"+r+")?)?"+l,"gi"),T=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+r,"gi"),A=new RegExp("(text-shadow\\s*:\\s*)"+r+"(\\s*)"+i,"gi"),P=new RegExp("(text-shadow\\s*:\\s*)"+i+"(\\s*)"+r,"gi"),I=new RegExp("(text-shadow\\s*:\\s*)"+r,"gi"),M=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+r+"(\\s*\\))","gi"),B=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+r+"((?:\\s*,\\s*"+r+"){0,2}\\s*\\))","gi");function L(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function R(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function _(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?R(r)+" / "+R(o):R(r))+i}function N(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function z(e,t,n){return t+N(n)}function $(e,t,n,r,o){return t+n+N(r)+o}function H(e,t,n,r,o){return t+n+r+N(o)}return{transform:function(e,t){var n=new o(f,"`NOFLIP_SINGLE`"),r=new o(h,"`NOFLIP_CLASS`"),i=new o(p,"`COMMENT`");return e=i.tokenize(r.tokenize(n.tokenize(e.replace("`","%60")))),t.transformDirInUrl&&(e=e.replace(x,"$1`TMP`").replace(w,"$1ltr").replace(d,"rtl")),t.transformEdgeInUrl&&(e=e.replace(b,"$1`TMP`").replace(y,"$1left").replace(d,"right")),e=e.replace(g,"$1`TMP`").replace(m,"$1ltr").replace(d,"rtl").replace(v,"$1`TMP`").replace(D,"$1left").replace(d,"right").replace(C,"$1$2`TMP`").replace(E,"$1$2e-resize").replace(d,"w-resize").replace(k,_).replace(T,z).replace(A,H).replace(P,H).replace(I,z).replace(M,$).replace(B,$).replace(O,"$1$2$3$8$5$6$7$4$9").replace(S,"$1$2$3$8$5$6$7$4$9").replace(F,L).replace(j,L),e=n.detokenize(r.detokenize(i.detokenize(e)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)},431:function(e,t,n){var r=n(539)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},432:function(e,t){function n(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},433:function(e,t){e.exports=messagingMiddleware},435:function(e,t,n){var r=n(541);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},436:function(e,t,n){var r=n(341),o=n(543);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},44:function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},45:function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=o.a.createContext(null)},49:function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},5:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},50:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},51:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},539:function(e,t,n){var r=n(54).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),s=new j(r||[]);return a(i,"_invoke",{value:E(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h={};function g(){}function m(){}function v(){}var D={};d(D,u,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(k([])));y&&y!==n&&i.call(y,u)&&(D=y);var x=v.prototype=g.prototype=Object.create(D);function w(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){var n;a(this,"_invoke",{value:function(o,a){function s(){return new t((function(n,s){!function n(o,a,s,u){var c=f(e[o],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}(o,a,n,s)}))}return n=n?n.then(s,s):s()}})}function E(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function F(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function k(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return m.prototype=v,a(x,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:m,configurable:!0}),m.displayName=d(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},w(C.prototype),d(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(x),d(x,l,"Generator"),d(x,u,(function(){return this})),d(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=k,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),F(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;F(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},54:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},541:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},543:function(e,t,n){(t=n(342)(!1)).push([e.i,'body{overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none;overflow-x:hidden}#full-screen-indicator{display:none}.cx-messenger-container{position:absolute;top:0px;bottom:12px;right:0;left:0}.cx-messenger{position:absolute;top:0px;height:100%;right:8px;min-height:195px;bottom:12px;width:96%;box-sizing:border-box;display:flex;flex-direction:column-reverse;transition:all 200ms cubic-bezier(0.4, 0, 0.2, 1) 2ms !important}.cx-messenger-with-fab{bottom:86px}.cx-messenger-open{display:block}.cx-messenger-close{display:none}.cx-messenger-screen-reader{width:1px;height:1px;overflow:hidden;text-indent:-9999px;border:0}.mxg-transcript a:-moz-focusring{outline-style:solid}.mxg-fullscreen.cx-messenger-container{z-index:99999;height:99.9%;width:99.5%;max-width:100% !important}.mxg-fullscreen .cx-messenger{bottom:0;right:0;left:0px;height:100%;width:100%}.mxg-fullscreen .cx-messenger .mxg-container-card{height:100%}.mxg-fullscreen .cx-messenger .mxg-input-container .Cx-MuiInputBase-formControl{padding:"12px 12px 1px!important"}.mxg-fullscreen-indicator{display:block !important}@media screen and (max-device-width: 600px),screen and (max-device-width: 768px)and (orientation: landscape),screen and (max-device-width: 823px)and (orientation: landscape),screen and (max-device-width: 1440px)and (orientation: landscape),screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 6)and (min-resolution: 192dpi),screen and (max-height: 240.5px)and (-ms-high-contrast: none),(-ms-high-contrast: active){.Cx-MuiContainer-root{z-index:999999;position:fixed}.cx-messenger-container{z-index:99999;height:100%;width:100%;max-width:100% !important}.cx-messenger-tablet{height:auto;width:96%}.cx-mxg-tablet-landscape{height:96%}.cx-messenger{bottom:0;right:0;left:0;height:100%;width:100%}.cx-messenger .mxg-container-card{height:100%}.cx-messenger .mxg-input-container .Cx-MuiInputBase-formControl{padding:"12px 12px 1px!important"}#full-screen-indicator{display:block}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 3.5)and (min-resolution: 192dpi){.mxg-desktop-windows-chrome .Cx-MuiContainer-root{z-index:999999;position:fixed}.mxg-desktop-windows-chrome .cx-messenger-container{z-index:99999;height:100%;width:100%;max-width:100% !important}.mxg-desktop-windows-chrome .cx-messenger{bottom:0;right:0;left:0;height:100%;width:100%}.mxg-desktop-windows-chrome .cx-messenger .mxg-container-card{height:100%}.mxg-desktop-windows-chrome .cx-messenger .mxg-input-container .Cx-MuiInputBase-formControl{padding:"12px 12px 1px!important"}#full-screen-indicator.mxg-desktop-windows-chrome{display:block}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 2)and (min-resolution: 192dpi){.mxg-desktop-windows-chrome .mxg-search-header{max-height:75%}.mxg-desktop-windows-chrome .mxg-home-header{max-height:75%}.mxg-desktop-windows-chrome .mxg-home-header .mxg-header-logo-img{margin-top:7px;padding-top:3px}.mxg-desktop-windows-chrome .mxg-header-logo-img{max-height:56px !important}.mxg-desktop-windows-chrome #searchInput-popup.Cx-MuiAutocomplete-listbox{max-height:18vh}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 4){.mxg-desktop-mac-chrome .mxg-search-header{max-height:75%}.mxg-desktop-mac-chrome .mxg-home-header{max-height:75%}.mxg-desktop-mac-chrome .mxg-home-header .mxg-header-logo-img{margin-top:7px;padding-top:3px}.mxg-desktop-mac-chrome .mxg-header-logo-img{max-height:56px !important}.mxg-desktop-mac-chrome #searchInput-popup.Cx-MuiAutocomplete-listbox{max-height:18vh}}@-moz-document url-prefix(){@media screen and (min--moz-device-pixel-ratio: 3)and (orientation: landscape){.mxg-image-preview{max-height:69%}.mxg-image-preview-footer{max-height:50%}.mxg-search-header{max-height:75%}.mxg-home-header{max-height:75%}.mxg-home-header .mxg-header-logo-img{margin-top:7px !important;padding-top:3px !important}#searchInput-popup.Cx-MuiAutocomplete-listbox{max-height:20vh}.mxg-header-logo-img{max-height:56px !important}}@media all and (-moz-device-pixel-ratio: 5){.cx-messenger{min-height:176px !important}.mxg-home-header{max-height:85%}.mxg-home-header .mxg-header-logo-img{margin-top:2px !important;padding-top:2px !important}.mxg-home-header .mxg-heading{margin-top:2px !important}.mxg-header-logo-img{max-height:56px !important}}}@media screen and (-ms-high-contrast: none)and (max-height: 365px),screen and (-ms-high-contrast: active)and (max-height: 365px){.mxg-image-preview{max-height:65%}.mxg-image-preview-footer{max-height:50%}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 1.75)and (orientation: portrait){.mxg-image-preview{max-height:65%}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (-webkit-min-device-pixel-ratio: 2)and (min-resolution: 192dpi){.mxg-image-preview{max-height:65%}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px){@media not all and (min-resolution: 0.001dpcm){@supports(-webkit-appearance: none){@media screen and (max-height: 390px){.mxg-image-preview{max-height:55%}.mxg-home-header{max-height:85%}.mxg-search-header{max-height:75%}.mxg-search-header .mxg-header-logo-container{padding-top:24px !important}#searchInput-popup.Cx-MuiAutocomplete-listbox{max-height:18vh}.mxg-header-logo-img{max-height:56px !important}}}}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (min-resolution: 192dpi)and (-webkit-device-pixel-ratio: 3){.cx-messenger{min-height:176px !important}.mxg-image-preview{max-height:65%}.mxg-image-preview-footer{max-height:50%}.mxg-toaster-body{max-height:36px !important}.mxg-toaster-message{padding:0}.toaster-button-container{padding-top:12px !important}.toaster-button{margin:0 !important}.mxg-desktop-windows-chrome #searchInput-popup.Cx-MuiAutocomplete-listbox{max-height:14vh}.mxg-desktop-windows-chrome .mxg-home-header{max-height:85% !important}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (min-resolution: 192dpi)and (-webkit-device-pixel-ratio: 3.125){.mxg-home-header{max-height:85% !important}.mxg-home-header .mxg-header-logo-img{margin-top:2px !important;padding-top:2px !important}.mxg-home-header .mxg-heading{margin-top:2px !important}#searchInput-popup.Cx-MuiAutocomplete-listbox{max-height:13vh !important}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (min-resolution: 192dpi)and (-webkit-device-pixel-ratio: 5){.cx-messenger{min-height:176px !important}.mxg-home-header{max-height:85% !important}.mxg-home-header .mxg-header-logo-img{margin-top:2px !important;padding-top:2px !important}.mxg-home-header .mxg-heading{margin-top:2px !important}}@media screen and (min-device-width: 1200px)and (max-device-width: 1920px)and (min-resolution: 192dpi)and (-webkit-device-pixel-ratio: 3.125){.cx-messenger{min-height:176px !important}.mxg-image-preview{max-height:65%}.mxg-image-preview-footer{max-height:50%}}',""]),e.exports=t},544:function(e,t,n){var r=n(341),o=n(545);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},545:function(e,t,n){(t=n(342)(!1)).push([e.i,"/* Apply a default color scheme */\n/* @media (prefers-color-scheme: no-preference) {\n  html {\n    background-color: green;\n  }\n} */\n/* Apply a light color scheme */\n/* @media (prefers-color-scheme: light) {\n  html {\n    background-color: orange;\n  }\n} */\n/* Apply a dark color scheme */\n/* @media (prefers-color-scheme: dark) {\n  html {\n    background-color: yellowgreen;\n  }\n} */\n",""]),e.exports=t},554:function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){return e instanceof r(e).Element||e instanceof Element}function i(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,"a",(function(){return ie}));var s=Math.max,u=Math.min,c=Math.round;function l(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(l())}function p(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),s=1,u=1;t&&i(e)&&(s=e.offsetWidth>0&&c(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&c(a.height)/e.offsetHeight||1);var l=(o(e)?r(e):window).visualViewport,p=!d()&&n,f=(a.left+(p&&l?l.offsetLeft:0))/s,h=(a.top+(p&&l?l.offsetTop:0))/u,g=a.width/s,m=a.height/u;return{width:g,height:m,top:h,right:f+g,bottom:h+m,left:f,x:f,y:h}}function f(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function g(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return p(g(e)).left+f(e).scrollLeft}function v(e){return r(e).getComputedStyle(e)}function D(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function b(e,t,n){void 0===n&&(n=!1);var o,a,s=i(t),u=i(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=g(t),d=p(e,u,n),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(s||!s&&!n)&&(("body"!==h(t)||D(l))&&(v=(o=t)!==r(o)&&i(o)?{scrollLeft:(a=o).scrollLeft,scrollTop:a.scrollTop}:f(o)),i(t)?((b=p(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):l&&(b.x=m(l))),{x:d.left+v.scrollLeft-b.x,y:d.top+v.scrollTop-b.y,width:d.width,height:d.height}}function y(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function x(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||g(e)}function w(e,t){var n;void 0===t&&(t=[]);var o=function e(t){return["html","body","#document"].indexOf(h(t))>=0?t.ownerDocument.body:i(t)&&D(t)?t:e(x(t))}(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),s=r(o),u=a?[s].concat(s.visualViewport||[],D(o)?o:[]):o,c=t.concat(u);return a?c:c.concat(w(x(u)))}function C(e){return["table","td","th"].indexOf(h(e))>=0}function E(e){return i(e)&&"fixed"!==v(e).position?e.offsetParent:null}function O(e){for(var t=r(e),n=E(e);n&&C(n)&&"static"===v(n).position;)n=E(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===v(n).position)?t:n||function(e){var t=/firefox/i.test(l());if(/Trident/i.test(l())&&i(e)&&"fixed"===v(e).position)return null;var n=x(e);for(a(n)&&(n=n.host);i(n)&&["html","body"].indexOf(h(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var S="top",F="bottom",j="right",k="left",T=[S,F,j,k],A=T.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),P=[].concat(T,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),I=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function M(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}var B={placement:"bottom",modifiers:[],strategy:"absolute"};function L(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function R(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?B:i;return function(e,t,n){void 0===n&&(n=a);var i,s,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},B,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,d={state:u,setOptions:function(n){var i="function"==typeof n?n(u.options):n;p(),u.options=Object.assign({},a,u.options,i),u.scrollParents={reference:o(e)?w(e):e.contextElement?w(e.contextElement):[],popper:w(t)};var s=function(e){var t=M(e);return I.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,u.options.modifiers)));return u.orderedModifiers=s.filter((function(e){return e.enabled})),u.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:u,name:t,instance:d,options:r});c.push(i||function(){})}})),d.update()},forceUpdate:function(){if(!l){var e=u.elements,t=e.reference,n=e.popper;if(L(t,n)){u.rects={reference:b(t,O(n),"fixed"===u.options.strategy),popper:y(n)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(e){return u.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var o=u.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,c=o.name;"function"==typeof i&&(u=i({state:u,options:s,name:c,instance:d})||u)}else u.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){d.forceUpdate(),e(u)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){p(),l=!0}};if(!L(e,t))return d;function p(){c.forEach((function(e){return e()})),c=[]}return d.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var _={passive:!0};function N(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function $(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function H(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?N(o):null,a=o?z(o):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case S:t={x:s,y:n.y-r.height};break;case F:t={x:s,y:n.y+n.height};break;case j:t={x:n.x+n.width,y:u};break;case k:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?$(i):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case"start":t[c]=t[c]-(n[l]/2-r[l]/2);break;case"end":t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}var q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function V(e){var t,n=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,u=e.position,l=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,f=e.isFixed,h=s.x,m=void 0===h?0:h,D=s.y,b=void 0===D?0:D,y="function"==typeof p?p({x:m,y:b}):{x:m,y:b};m=y.x,b=y.y;var x=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),C=k,E=S,T=window;if(d){var A=O(n),P="clientHeight",I="clientWidth";if(A===r(n)&&"static"!==v(A=g(n)).position&&"absolute"===u&&(P="scrollHeight",I="scrollWidth"),A=A,i===S||(i===k||i===j)&&"end"===a)E=F,b-=(f&&A===T&&T.visualViewport?T.visualViewport.height:A[P])-o.height,b*=l?1:-1;if(i===k||(i===S||i===F)&&"end"===a)C=j,m-=(f&&A===T&&T.visualViewport?T.visualViewport.width:A[I])-o.width,m*=l?1:-1}var M,B=Object.assign({position:u},d&&q),L=!0===p?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:c(t*r)/r||0,y:c(n*r)/r||0}}({x:m,y:b}):{x:m,y:b};return m=L.x,b=L.y,l?Object.assign({},B,((M={})[E]=w?"0":"",M[C]=x?"0":"",M.transform=(T.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",M)):Object.assign({},B,((t={})[E]=w?b+"px":"",t[C]=x?m+"px":"",t.transform="",t))}var U={left:"right",right:"left",bottom:"top",top:"bottom"};function W(e){return e.replace(/left|right|bottom|top/g,(function(e){return U[e]}))}var G={start:"end",end:"start"};function K(e){return e.replace(/start|end/g,(function(e){return G[e]}))}function J(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Y(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Q(e,t,n){return"viewport"===t?Y(function(e,t){var n=r(e),o=g(e),i=n.visualViewport,a=o.clientWidth,s=o.clientHeight,u=0,c=0;if(i){a=i.width,s=i.height;var l=d();(l||!l&&"fixed"===t)&&(u=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:u+m(e),y:c}}(e,n)):o(t)?function(e,t){var n=p(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Y(function(e){var t,n=g(e),r=f(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=s(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+m(e),c=-r.scrollTop;return"rtl"===v(o||n).direction&&(u+=s(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:c}}(g(e)))}function Z(e,t,n,r){var a="clippingParents"===t?function(e){var t=w(x(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&i(e)?O(e):e;return o(n)?t.filter((function(e){return o(e)&&J(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),c=[].concat(a,[n]),l=c[0],d=c.reduce((function(t,n){var o=Q(e,n,r);return t.top=s(o.top,t.top),t.right=u(o.right,t.right),t.bottom=u(o.bottom,t.bottom),t.left=s(o.left,t.left),t}),Q(e,l,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function X(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ee(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function te(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.strategy,s=void 0===a?e.strategy:a,u=n.boundary,c=void 0===u?"clippingParents":u,l=n.rootBoundary,d=void 0===l?"viewport":l,f=n.elementContext,h=void 0===f?"popper":f,m=n.altBoundary,v=void 0!==m&&m,D=n.padding,b=void 0===D?0:D,y=X("number"!=typeof b?b:ee(b,T)),x="popper"===h?"reference":"popper",w=e.rects.popper,C=e.elements[v?x:h],E=Z(o(C)?C:C.contextElement||g(e.elements.popper),c,d,s),O=p(e.elements.reference),k=H({reference:O,element:w,strategy:"absolute",placement:i}),A=Y(Object.assign({},w,k)),P="popper"===h?A:O,I={top:E.top-P.top+y.top,bottom:P.bottom-E.bottom+y.bottom,left:E.left-P.left+y.left,right:P.right-E.right+y.right},M=e.modifiersData.offset;if("popper"===h&&M){var B=M[i];Object.keys(I).forEach((function(e){var t=[j,F].indexOf(e)>=0?1:-1,n=[S,F].indexOf(e)>=0?"y":"x";I[e]+=B[n]*t}))}return I}function ne(e,t,n){return s(e,u(t,n))}function re(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function oe(e){return[S,j,F,k].some((function(t){return e[t]>=0}))}var ie=R({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,u=void 0===s||s,c=r(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,_)})),u&&c.addEventListener("resize",n.update,_),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,_)})),u&&c.removeEventListener("resize",n.update,_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=H({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s,c={placement:N(t.placement),variation:z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,V(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,V(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];i(o)&&h(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});i(r)&&h(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=P.reduce((function(e,n){return e[n]=function(e,t,n){var r=N(e),o=[k,S].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[k,j].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,v=N(m),D=u||(v===m||!h?[W(m)]:function(e){if("auto"===N(e))return[];var t=W(e);return[K(e),t,K(t)]}(m)),b=[m].concat(D).reduce((function(e,n){return e.concat("auto"===N(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?P:u,l=z(r),d=l?s?A:A.filter((function(e){return z(e)===l})):T,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=te(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[N(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:l,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),y=t.rects.reference,x=t.rects.popper,w=new Map,C=!0,E=b[0],O=0;O<b.length;O++){var I=b[O],M=N(I),B="start"===z(I),L=[S,F].indexOf(M)>=0,R=L?"width":"height",_=te(t,{placement:I,boundary:l,rootBoundary:d,altBoundary:p,padding:c}),$=L?B?j:k:B?F:S;y[R]>x[R]&&($=W($));var H=W($),q=[];if(i&&q.push(_[M]<=0),s&&q.push(_[$]<=0,_[H]<=0),q.every((function(e){return e}))){E=I,C=!1;break}w.set(I,q)}if(C)for(var V=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},U=h?3:1;U>0;U--){if("break"===V(U))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,l=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.padding,h=n.tether,g=void 0===h||h,m=n.tetherOffset,v=void 0===m?0:m,D=te(t,{boundary:l,rootBoundary:d,padding:f,altBoundary:p}),b=N(t.placement),x=z(t.placement),w=!x,C=$(b),E="x"===C?"y":"x",T=t.modifiersData.popperOffsets,A=t.rects.reference,P=t.rects.popper,I="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,M="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(T){if(i){var R,_="y"===C?S:k,H="y"===C?F:j,q="y"===C?"height":"width",V=T[C],U=V+D[_],W=V-D[H],G=g?-P[q]/2:0,K="start"===x?A[q]:P[q],J="start"===x?-P[q]:-A[q],Y=t.elements.arrow,Q=g&&Y?y(Y):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=Z[_],ee=Z[H],re=ne(0,A[q],Q[q]),oe=w?A[q]/2-G-re-X-M.mainAxis:K-re-X-M.mainAxis,ie=w?-A[q]/2+G+re+ee+M.mainAxis:J+re+ee+M.mainAxis,ae=t.elements.arrow&&O(t.elements.arrow),se=ae?"y"===C?ae.clientTop||0:ae.clientLeft||0:0,ue=null!=(R=null==B?void 0:B[C])?R:0,ce=V+ie-ue,le=ne(g?u(U,V+oe-ue-se):U,V,g?s(W,ce):W);T[C]=le,L[C]=le-V}if(c){var de,pe="x"===C?S:k,fe="x"===C?F:j,he=T[E],ge="y"===E?"height":"width",me=he+D[pe],ve=he-D[fe],De=-1!==[S,k].indexOf(b),be=null!=(de=null==B?void 0:B[E])?de:0,ye=De?me:he-A[ge]-P[ge]-be+M.altAxis,xe=De?he+A[ge]+P[ge]-be-M.altAxis:ve,we=g&&De?function(e,t,n){var r=ne(e,t,n);return r>n?n:r}(ye,he,xe):ne(g?ye:me,he,g?xe:ve);T[E]=we,L[E]=we-he}t.modifiersData[r]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=N(n.placement),u=$(s),c=[k,j].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return X("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ee(e,T))}(o.padding,n),d=y(i),p="y"===u?S:k,f="y"===u?F:j,h=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],g=a[u]-n.rects.reference[u],m=O(i),v=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,D=h/2-g/2,b=l[p],x=v-d[c]-l[f],w=v/2-d[c]/2+D,C=ne(b,w,x),E=u;n.modifiersData[r]=((t={})[E]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&J(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=te(t,{elementContext:"reference"}),s=te(t,{altBoundary:!0}),u=re(a,r),c=re(s,o,i),l=oe(u),d=oe(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]})},555:function(e,t,n){"use strict";n.r(t);var r=n(54),o=n.n(r),i=n(11),a=n.n(i),s=n(0),u=n.n(s),c=n(38),l=n.n(c),d=n(24),p=n.n(d),f=n(413),h=n.n(f),g=n(414),m=n.n(g),v=n(37),D=n.n(v),b=n(50),y=n.n(b),x=n(51),w=n.n(x),C=n(17),E=n.n(C),O=n(66),S=n.n(O),F=n(67),j=n.n(F),k=n(39),T=n.n(k),A=n(7),P=n.n(A),I=n(620),M=n(537),B=n(102),L=n(559),R=n(77),_=n(49),N=n.n(_),z=(n(139),n(397)),$=n(380),H=n(340),q=n(423),V=n.n(q),U=n(422),W=n.n(U),G=n(4),K=n(339),J={width:"1px",height:"1px",overflow:"hidden",textIndent:"-9999px",border:"0"};function Y(e){var t,n=e.i18n,r=e.lang,o=e.appName,i=e.showStatus,a=n[r][o],s=a.ariaMessengerOpenStatus,c=a.ariaMessengerMinimizeStatus;return u.a.createElement("div",{style:J,className:"cx-status","aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",tabIndex:-1,dangerouslySetInnerHTML:{__html:Object(K.b)((t="",i&&("true"==i?t=s:"false"==i&&(t=c)),t))}})}Y.propTypes={i18n:P.a.object.isRequired,lang:P.a.string.isRequired,appName:P.a.string.isRequired,showStatus:P.a.string};var Q=n(16),Z=n(14),X=n(32),ee=n(21),te=n(381);n(436);function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T()(e);if(t){var o=T()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j()(this,n)}}var ie={bottomSpace:0,sideSpace:0},ae=u.a.lazy((function(){return Promise.all([n.e(0),n.e(2),n.e(31)]).then(n.bind(null,665))})),se=Object(Q.f)().os||"";"Mac OS X"===se&&(se="mac");var ue=Object(Q.f)().browser||"",ce=!(!ue||"Internet Explorer"!==ue),le="",de=Object(G.a)("div")((function(e){var t,n=e.theme;return{"& .mxg-launcher-btn":(t={position:"fixed!important",cursor:"pointer",bottom:"12px!important",color:function(e){return n.palette[e.color].contrastText+"!important"},backgroundColor:function(e){return n.palette[e.color].main+"!important"}},a()(t,n.breakpoints.down("md"),{zIndex:9999}),a()(t,"boxShadow","0px 3px 5px -2px rgb(0 0 0 / 20%), 0px 1px 4px 2px rgb(0 0 0 / 14%), 0px 1px 4px 1px rgb(0 0 0 / 12%)"),t),"& .mxg-skeleton":{position:"fixed",bottom:"12px",borderRadius:"4px",right:"1em",width:"92%"},"& .mxg-skeleton-with-fab":{bottom:"86px"},"& .mxg-expand-more-icon":{width:ce?"100%!important":"38px!important",height:ce?"100%!important":"38px!important"}}})),pe=function(e){S()(n,e);var t=oe(n);function n(e){var r;y()(this,n),r=t.call(this,e),a()(E()(r),"fStore",(function(e){r.store=e})),a()(E()(r),"isTablet",(function(){var e=(r.props||{}).config.fullScreen,t=((r.messengerProps||{}).messengerProps||{}).messengerRef,n=Object(Q.k)(),o=[];return t&&t.current&&(o=t.current.classList.value.split(" ")),!e&&!(!o.includes("cx-messenger-tablet")||n)})),a()(E()(r),"handleLauncherClick",(function(e){var t=r.props,n=t.toggleLauncher,o=t.bInvite;r.checkActiveConversation().then((function(){n()})),o&&r.props.inviteAccepted()})),a()(E()(r),"handleLauncherKeyDown",(function(e){if(e&&9===e.which&&e.shiftKey){var t=r.props||{},n=t.config,o=t.sMessengerOpen,i=(((n||{}).apps||{}).knowledge||{}).enabled,a=(((E()(r)||{}).messengerProps||{}).messengerProps||{}).knowledgeWrapperRef;if(i&&"true"==o&&a&&a.current){var s=a.current.querySelectorAll('*[tabindex="0"]');s&&s.length&&(e.preventDefault(),s[s.length-1].focus())}}})),a()(E()(r),"fcStoreConvPluginRef",(function(e){e&&(r.oConversationPlugin=e)})),a()(E()(r),"onMouseLeave",(function(){r.props.expandLauncher||r.removeConvDimension})),a()(E()(r),"setHomeDimension",(function(){var e=r.props,t=e.iHomeScreenHeight,n=e.view,o=e.bAddTransition,i=e.expandLauncher,a=e.sMessengerOpen,s=e.bToaster,u=e.iToasterHeight,c=["genesys-mxg-conversation"],l=ee.x;return n&&("home"===n?(c=["genesys-mxg-homescreen",le],t&&(l="".concat(t,"px"),!o||!i&&"true"!==a||s||u||c.push("genesys-mxg-frame-transition"))):l=ee.x),{homeScreenHeight:l,aAddClassList:c}})),a()(E()(r),"setConvDimension",(function(){var e=r.props,t=e.expandLauncher,n=e.sMessengerOpen,o=e.config||{},i=o.position,a=o.headlessMode,s=o.home,u=o.fullScreen,c=(a||{}).enabled,l=ee.x,d=["genesys-mxg-conversation"],p=[];if(u?d.push("genesys-mxg-frame-fullscreen"):p.push("genesys-mxg-frame-fullscreen"),!c){if(t||"true"===n?r.oLauncher.command("MessengerHelper.setDirection",{position:!Object(Q.k)()&&!Object(Q.i)()||r.isTablet()?i:ie}):r.oLauncher.command("MessengerHelper.setDirection",{position:i}),s&&!Object(Q.k)()&&!Object(Q.i)()){var f=r.setHomeDimension();l=f.homeScreenHeight,d=f.aAddClassList}r.oLauncher.command("MessengerHelper.setDimension",{conversations:{height:l,width:ee.y,addClass:d,removeClass:p}})}})),a()(E()(r),"removeConvDimension",(function(){r.oLauncher.command("MessengerHelper.setDimension",{conversations:{height:0,width:0,removeClass:["genesys-mxg-conversation","genesys-mxg-homescreen"]}})})),a()(E()(r),"determineDimensions",(function(){var e=r.props.sMessengerOpen,t=r.props.config,n=t.launcherButton.visibility;(t.headlessMode||{}).enabled||("on"==n?r.setDimensions():"off"==n&&"true"==e?r.setConvDimension():r.resetDimensions())})),a()(E()(r),"determinePosition",(function(){var e=r.props,t=e.expandLauncher,n=e.sMessengerOpen,o=(e.config||{}).position;(t||"true"==n)&&r.oLauncher&&r.oLauncher.command("MessengerHelper.setDirection",{position:!Object(Q.k)()&&!Object(Q.i)()||r.isTablet()?o:ie})})),a()(E()(r),"setDimensions",(function(){if(r.oLauncher){var e=E()(r),t=r.props,n=t.expandLauncher,o=t.bInvite,i=t.sMessengerOpen,a=t.config,s=t.expandedArticle,u=t.setArticleExpanded,c=t.bToaster,l=t.iToasterHeight,d=a||{},p=d.position,f=d.home,h=d.fullScreen,g=0,m=ee.x,v=["genesys-mxg-conversation"],D=["genesys-mxg-conversation","genesys-mxg-expand","genesys-mxg-frame-transition","genesys-mxg-homescreen","genesys-mxg-toaster",le];if(h?v.push("genesys-mxg-frame-fullscreen"):D.push("genesys-mxg-frame-fullscreen"),e.oDimensions={launcher:{height:72,width:72,removeClass:D}},c&&l&&(e.oDimensions.toaster={height:l,width:ee.J,addClass:["genesys-mxg-toaster"]}),n||"true"===i){if(f&&!Object(Q.k)()&&!Object(Q.i)()){var b=r.setHomeDimension();m=b.homeScreenHeight,v=b.aAddClassList}e.oDimensions.conversations=s?{height:ee.v,width:ee.w,addClass:["genesys-mxg-conversation","genesys-mxg-expand"]}:{height:m,width:ee.y,addClass:v},e.oLauncher.command("MessengerHelper.setDirection",{position:!Object(Q.k)()&&!Object(Q.i)()||r.isTablet()?p:ie})}else"boolean"!=typeof n||!1!==n||"false"!==i||o||(g=50,e.oLauncher.command("MessengerHelper.setDirection",{position:p}),s&&u(!1));g>0?setTimeout((function(){e.oLauncher.command("MessengerHelper.setDimension",e.oDimensions)}),g):e.oLauncher.command("MessengerHelper.setDimension",e.oDimensions)}})),a()(E()(r),"resetDimensions",(function(){if(r.oLauncher){var e=r.props,t=e.config,n=e.bToaster,o=e.iToasterHeight,i=(t||{}).position,a={width:0,height:0};Object(Q.k)()&&r.oLauncher.command("MessengerHelper.setDirection",{position:i}),n&&o&&(a={height:o,width:ee.J,addClass:["genesys-mxg-toaster"]}),r.oLauncher.command("MessengerHelper.setDimension",{toaster:a,launcher:{height:0,width:0,removeClass:["genesys-mxg-conversation","genesys-mxg-homescreen"]}})}})),a()(E()(r),"showLauncher",(function(){((r.props.config||{}).headlessMode||{}).enabled||(r.setState({fabVisibility:"on"}),r.setDimensions(),r.props.setFabVisibility(!0),r.oLauncher&&r.oLauncher.publish("visible",{journeyContext:r.oJourneyContext}))})),a()(E()(r),"hideLauncher",(function(){r.setState({fabVisibility:"off"}),r.resetDimensions(),r.props.setFabVisibility(!1),r.oLauncher.publish("hidden",{journeyContext:r.oJourneyContext})})),a()(E()(r),"loadChatServicePlugin",(function(){var e=r.props,t=e.config,n=e.oPlugins,o=(t.headlessMode||{}).enabled;n.MessagingService||Genesys("loadPlugin","MessagingService",t,(function(){r.props.setPlugin("MessagingService",{}),o||r.setState({bConversationActive:!0})}))})),a()(E()(r),"initKnowledgeServicePlugin",(function(){var e=r.props,t=e.config;e.oPlugins.KnowledgeService||Object(te.initKnowledgeServicePlugin)(t).then((function(e){r.props.setPlugin("KnowledgeService",e)}))})),a()(E()(r),"checkActiveConversation",(function(){var e=E()(r),t=r.state.fabVisibility,n=r.props,o=n.config.preview,i=(n.sMessengerOpen,Object(Q.g)(r.props.config));return"ondemand"!==t&&r.setConvDimension(),new Promise((function(t,n){r.oLauncher.command(i+".get",{name:r.storagePrefix+r.subConversationStorage}).then((function(n){if(n){var i=n.split(" "),a=D()(i,1)[0];a&&"string"==typeof a&&"true"===a?(e.previousConversationExpired=!1,r.loadChatServicePlugin(),t()):(o||(e.previousConversationExpired=!0),t())}else o||(e.previousConversationExpired=!0),t()}),(function(e){}))}))})),a()(E()(r),"openConversation",(function(e){var t=(r.messengerProps||{}).openConversation;t&&t(e)})),a()(E()(r),"openSearch",(function(e){var t=(r.messengerProps||{}).openSearch;t&&t(e)})),a()(E()(r),"launcherPlugin",(function(){var e=r.props.config,t=e.launcherButton.visibility,n=(e.auth||{}).enabled;Genesys("registerPlugin","Launcher",(function(e){r.oLauncher=e,r.oLauncher&&("on"==t&&r.oLauncher.publish("visible"),r.oLauncher.registerCommand("show",(function(e){if("ondemand"===t.toLowerCase())if("on"===r.state.fabVisibility){var n={errorName:Z.x,errorMessage:Z.x};Object(X.a)(n),e.reject("Launcher button is already visible")}else r.showLauncher(),e.resolve();else{var o={errorName:Z.s,errorMessage:Z.s};Object(X.a)(o),e.reject("Invalid configuration of Launcher button")}})),r.oLauncher.registerCommand("hide",(function(e){if("ondemand"===t.toLowerCase()||n)if("off"===r.state.fabVisibility){var o={errorName:Z.w,errorMessage:Z.w};Object(X.a)(o),e.reject("Launcher button is already hidden")}else r.hideLauncher(),e.resolve();else{var i={errorName:Z.s,errorMessage:Z.s};Object(X.a)(i),e.reject("Invalid configuration of Launcher button")}})),r.checkActiveConversation(),r.determineDimensions(),n&&r.loadChatServicePlugin(),r.oLauncher.ready())}))}));var o=e.config,i=o.launcherButton.visibility,u=o.deploymentId,c=(o.auth||{}).enabled;r.state={ExternalComponent:"",fabVisibility:i||"on",bConversationActive:!1},r.sPluginName="Launcher",r.oLauncher="",r.oJourneyContext=e.journeyContext||{},r.customerId="",r.sessionId="",r.previousConversationExpired=!1,r.oConversationPlugin={},r.store={},r.oDisableInputs=e.oDisableInputs||{},r.launcherBtnRef=Object(s.createRef)(),r.statusRef=Object(s.createRef)(),r.messengerProps="",r.storagePrefix=u+":gcmc",r.subConversationStorage="sessionActive";var l=E()(r);return Genesys("subscribe","Identifiers.ready",(function(){Genesys("command","Identifiers.getAll",{},(function(e){e&&(e.customerId&&(l.customerId=e.customerId),e.sessionId&&(l.sessionId=e.sessionId))}))})),Genesys("subscribe","Auth.authenticated",(function(){if(c){var e=r.state.fabVisibility;"on"===i&&"off"===e&&r.showLauncher()}})),r}return w()(n,[{key:"componentDidMount",value:function(){var e=this.props.config,t=(e.launcherButton.visibility,e.auth),n=e.headlessMode,r=e.apps,o=((t||{}).enabled,(n||{}).enabled),i=((r||{}).knowledge||{}).enabled;this.props.getComponentMethods(this),o?(this.loadChatServicePlugin(),i&&this.initKnowledgeServicePlugin()):(window.addEventListener("resize",this.determinePosition),window.addEventListener("orientationchange",this.determinePosition),this.props.oPlugins&&this.props.oPlugins[this.sPluginName]?(this.oLauncher=this.props.oPlugins[this.sPluginName],this.checkActiveConversation(),this.determineDimensions()):this.launcherPlugin())}},{key:"componentDidUpdate",value:function(){var e=this.state.fabVisibility,t=this.props,n=t.sMessengerOpen;(t.headlessMode||{}).enabled||("on"==e?this.setDimensions():"off"==e&&"true"==n?this.setConvDimension():this.resetDimensions())}},{key:"getSnapshotBeforeUpdate",value:function(e,t){var n=this.props,r=n.bInvite,o=n.expandLauncher,i=n.bToaster,a=this.state.fabVisibility;return this.oLauncher&&"ondemand"===a&&(i||r||o)&&this.showLauncher(),null}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,r=n.bInvite,o=n.expandLauncher,i=n.bToaster,a=e.config||{},s=a.launcherButton,u=a.headlessMode,c=this.props.config||{},l=c.launcherButton,d=c.headlessMode,p=(u||{}).enabled,f=(d||{}).enabled;if(!f&&s&&l){var h=l.visibility,g=s.visibility;if(g===h)return!0;if(g&&"on"===g.toLowerCase())return this.showLauncher(),!0;if(g&&"off"===g.toLowerCase())return this.hideLauncher(),!0;if(g&&"ondemand"===g.toLowerCase())return r||o||i?(this.showLauncher(),!0):(this.hideLauncher(),!0)}return"boolean"==typeof p&&"boolean"==typeof f&&p!==f&&(this.launcherPlugin(),!0)}},{key:"componentWillUnmount",value:function(){this.props.setPlugin("Launcher",this.oLauncher),this.props.getComponentMethods(null),window.removeEventListener("orientationchange",this.determineDimensions),window.removeEventListener("resize",this.determineDimensions)}},{key:"render",value:function(){var e=this,t=this.props,n=t.config,r=t.color,o=t.expandLauncher,i=t.journeyContext,a=t.oPlugins,c=t.sMessengerOpen,l=t.messengerClosed,d=t.closeMessenger,p=t.store,f=t.Toaster,h=(t.bToaster,this.state),g=h.fabVisibility,m=h.bConversationActive,v=n.i18n,D=n.lang,b=n.position,y=n.documentDirection,x=n.home,w=n.knowledgeEnabled,C=(n.headlessMode||{}).enabled,E=v[D][this.sPluginName.toLowerCase()],O=E.ariaOpenButton,S=E.ariaMinimizeButton,F=b.alignment,j={},k=(this.state.ExternalComponent,"on"===g),T={right:"unset",left:"8px"},A={right:"8px",left:"unset"};if(F)switch(F){case"right":j=A;break;case"left":j=T;break;case"auto":y&&("ltr"===y&&(j=A),"rtl"===y&&(j=T))}i&&(this.oJourneyContext=re(re({},this.oJourneyContext),i)),this.customerId&&(this.oJourneyContext.customer=re(re({},this.oJourneyContext.customer),{},{id:this.customerId})),this.sessionId&&(this.oJourneyContext.customerSession=re(re({},this.oJourneyContext.customerSession),{},{id:this.sessionId})),le=Object(Q.k)()?"mxg-mobile-"+se.toLowerCase()+"-"+ue.toLowerCase():"mxg-desktop-"+se.toLowerCase()+"-"+ue.toLowerCase();return u.a.createElement(u.a.Fragment,null,!C&&u.a.createElement(de,{onMouseLeave:this.onMouseLeave,className:"".concat(le)},u.a.createElement(s.Suspense,{fallback:u.a.createElement("div",{className:"mxg-skeleton ".concat(k?"mxg-skeleton-with-fab":"")},o&&u.a.createElement($.a,{rows:2,heights:[60,180]}))},(o||m)&&u.a.createElement(ae,{open:o,activePreviousConversation:m,previousConversationExpired:this.previousConversationExpired,messengerClosed:l,closeMessenger:d,fabVisible:k,color:r,config:n,setClick:function(t){return e.fCLauncherClose=t},setConvPluginRef:this.fcStoreConvPluginRef,convPluginRef:this.oConversationPlugin,data:{journeyContext:this.oJourneyContext},fStore:this.fStore,store:p||this.store,Toaster:f,oLauncher:this.oLauncher,oMessenger:a.Messenger,launcherRef:this.launcherBtnRef,enableFocusControls:this.enableFocusControls,disableFocusControls:this.disableFocusControls,oDisableInputs:this.oDisableInputs,getComponentMethods:function(t){return e.messengerProps=t},sOSBrowser:le})),k&&u.a.createElement(z.a,{ref:this.launcherBtnRef,className:"mxg-launcher-btn",color:r,style:j,onClick:this.handleLauncherClick,onKeyDown:this.handleLauncherKeyDown,"aria-expanded":!!o,"aria-label":o?S:O},o?u.a.createElement(V.a,{fontSize:"large",alt:"",className:"mxg-expand-more-icon"}):u.a.createElement(H.a,{icon:W.a,customStyle:{width:"26px",height:"26px",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},alt:""})),u.a.createElement(Y,{i18n:v,lang:D,appName:"conversations",showStatus:!c||x||w?"false":"true"})))}}]),n}(u.a.Component);pe.propTypes={color:P.a.string.isRequired,config:P.a.object,expandLauncher:P.a.bool.isRequired,toggleLauncher:P.a.func.isRequired,Toaster:P.a.elementType.isRequired,oPlugins:P.a.object.isRequired,setPlugin:P.a.func.isRequired,bInvite:P.a.bool.isRequired,inviteAccepted:P.a.func.isRequired,setFabVisibility:P.a.func.isRequired,journeyContext:P.a.object,oDisableInputs:P.a.object.isRequired,enableFocusControls:P.a.func,disableFocusControls:P.a.func,getComponentMethods:P.a.func};var fe,he,ge,me=(fe=pe,function(e){return u.a.createElement(R.a.Consumer,null,(function(t){var n=t.expandLauncher,r=t.messengerClosed,o=t.closeMessenger,i=t.sMessengerOpen,a=t.toggleLauncher,s=t.logoutMessenger,c=t.oPlugins,l=t.setPlugin,d=t.bInvite,p=t.inviteAccepted,f=t.setFabVisibility,h=t.journeyContext,g=t.oDisableInputs,m=t.disableFocusControls,v=t.enableFocusControls,D=t.setArticleExpanded,b=t.expandedArticle,y=t.store,x=t.iHomeScreenHeight,w=t.view,C=t.bAddTransition,E=t.bToaster,O=t.iToasterHeight;return u.a.createElement(fe,N()({},e,{store:y,expandLauncher:n,sMessengerOpen:i,messengerClosed:r,closeMessenger:o,toggleLauncher:a,logoutMessenger:s,oPlugins:c,setPlugin:l,bInvite:d,bToaster:E,iToasterHeight:O,inviteAccepted:p,setFabVisibility:f,journeyContext:h,oDisableInputs:g,setArticleExpanded:D,expandedArticle:b,disableFocusControls:m,enableFocusControls:v,iHomeScreenHeight:x,view:w,bAddTransition:C}))}))}),ve=n(264),De=n(224),be="0px 3px 1px -2px rgba(0,0,0,0.2), 0px 1px 1px 1px rgba(0,0,0,0.14), 0px 1px 5px 1px rgba(0,0,0,0.12)",ye=Object(Q.k)(),xe={palette:{mode:"dark",common:{blue:"".concat("#0165A7"),red:"".concat("#D2ECFD"),white:"".concat("#FFFFFC"),darkGrey:"".concat("#A1A1A1"),mediumGrey:"".concat("#B0B0B0"),lightGrey:"".concat("#ECECEC"),boxShadow:"".concat(be),smokeGrey:"".concat("#7575754f"),textColor:"".concat("rgba(0, 0, 0, 0.87)")},primary:{main:"".concat("#0165A7")},secondary:{main:"".concat("#D2ECFD")}},typography:{fontSize:15,fontFamily:'"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", "sans-serif";',body1:{fontSize:"0.938rem",color:"textSecondary",fontWeight:400},body2:{fontSize:"0.938rem",fontWeight:400,"& pre":{fontSize:"0.813rem"}},h1:{fontSize:"1.3392857142857142rem",lineHeight:"1.6"},h2:{fontWeight:"300",fontSize:"1.25rem"},h3:{fontWeight:"300",fontSize:"1.1rem"},h6:{fontWeight:"300"}},components:(he={MuiCard:{defaultProps:{elevation:2}},MuiAutocomplete:{styleOverrides:{root:a()({transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 2ms"},"transition","opacity 700ms cubic-bezier(0.4, 0, 0.2, 1) 2ms"),elevation2:{boxShadow:"".concat(be)}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"unset",transition:"none!important"},elevation2:{boxShadow:"".concat(be)}}},MuiTypography:{styleOverrides:{subtitle2:{fontWeight:"300"}}},MuiButton:{styleOverrides:{root:{},containedPrimary:{margin:"0 auto 12px auto",display:"block"},containedSecondary:{margin:"0 auto 12px auto",display:"block",backgroundColor:"".concat("#ECECEC","!important"),boxShadow:"0px 3px 1px -3px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)","&:hover":{backgroundColor:"".concat("#7575754f","!important")}},outlinedInherit:{backgroundColor:"".concat("#ECECEC","!important"),borderColor:"transparent!important"}}},MuiChip:{styleOverrides:{outlinedPrimary:{"&:hover":{backgroundColor:"".concat("#ECECEC","!important")},"&:focus":{backgroundColor:"".concat("#ECECEC","!important")}}}},MuiLinearProgress:{styleOverrides:{root:{height:"5px"},query:{transform:"rotate(0deg)"},colorPrimary:{backgroundColor:"".concat("#B0B0B0")},barColorPrimary:{backgroundColor:"".concat("#ECECEC")}}},MuiIconButton:{styleOverrides:{root:{padding:"12px"}}},MuiAlert:{styleOverrides:{icon:{width:"1em",height:"1em"}}},MuiFab:{styleOverrides:{root:{borderRadius:"50%!important"}}},MuiTextField:{styleOverrides:{root:{backgroundColor:"".concat("#FFFFFC"),borderRadius:"4px"}}}},a()(he,"MuiAutocomplete",{styleOverrides:{option:{minHeight:"30px!important"},popper:{color:"".concat("rgba(0, 0, 0, 0.87)")}}}),a()(he,"MuiInputBase",{styleOverrides:{root:{fontSize:ye?"1rem":"0.938rem",lineHeight:"1.1876em"}}}),he),breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}}},we="0px 3px 1px -2px rgba(0,0,0,0.2), 0px 1px 1px 1px rgba(0,0,0,0.14), 0px 1px 5px 1px rgba(0,0,0,0.12)",Ce=Object(Q.k)(),Ee={palette:{mode:"light",common:{blue:"".concat("#0165A7"),red:"".concat("#D2ECFD"),white:"".concat("#FFFFFC"),darkGrey:"".concat("#444444d9"),mediumGrey:"".concat("#757575"),lightGrey:"".concat("#ECECEC"),boxShadow:"".concat(we),smokeGrey:"".concat("#7575754f"),textColor:"".concat("rgba(0, 0, 0, 0.87)")},primary:{main:"".concat("#0165A7")},secondary:{main:"".concat("#D2ECFD")},info:{main:"".concat("#FFFFFC")}},typography:{fontSize:15,fontFamily:'"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", "sans-serif";',body1:{fontSize:"0.938rem",color:"textSecondary",fontWeight:400},body2:{fontSize:"0.938rem",fontWeight:400,"& pre":{fontSize:"0.813rem"}},h1:{fontSize:"1.3392857142857142rem",lineHeight:"1.6",fontWeight:"400"},h2:{fontWeight:"300",fontSize:"1.25rem"},h3:{fontWeight:"400",fontSize:"1.1rem"},h6:{fontWeight:"300"}},components:(ge={MuiCard:{defaultProps:{elevation:2}},MuiAutocomplete:{styleOverrides:{root:a()({transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 2ms"},"transition","opacity 700ms cubic-bezier(0.4, 0, 0.2, 1) 2ms"),elevation2:{boxShadow:"".concat(we)}}},MuiPaper:{styleOverrides:{root:{transition:"none!important"},elevation2:{boxShadow:"".concat(we)}}},MuiTypography:{styleOverrides:{subtitle2:{fontWeight:"400"}}},MuiSnackbarContent:{styleOverrides:{root:{color:"#444444d9",backgroundColor:"#fff"}}},MuiButton:{styleOverrides:{root:{textTransform:"none"},containedPrimary:{margin:"0 auto 12px auto",display:"block"},containedSecondary:{margin:"0 auto 12px auto",display:"block",backgroundColor:"".concat("#ECECEC","!important"),boxShadow:"0px 3px 1px -3px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)","&:hover":{backgroundColor:"".concat("#7575754f","!important")}},outlinedInherit:{backgroundColor:"".concat("#ECECEC","!important"),borderColor:"transparent!important"}}},MuiChip:{styleOverrides:{outlinedPrimary:{"&:hover":{backgroundColor:"".concat("#ECECEC","!important")},"&:focus":{backgroundColor:"".concat("#ECECEC","!important")}}}},MuiLinearProgress:{styleOverrides:{root:{height:"5px"},query:{transform:"rotate(0deg)"},colorPrimary:{backgroundColor:"".concat("#757575")},barColorPrimary:{backgroundColor:"".concat("#ECECEC")}}},MuiIconButton:{styleOverrides:{root:{padding:"12px"}}},MuiAlert:{styleOverrides:{icon:{width:"1em",height:"1em"}}},MuiFab:{styleOverrides:{root:{borderRadius:"50%!important"}}},MuiTextField:{styleOverrides:{root:{backgroundColor:"".concat("#FFFFFC"),borderRadius:"4px"}}}},a()(ge,"MuiAutocomplete",{styleOverrides:{option:{minHeight:"30px!important"},popper:{color:"".concat("rgba(0, 0, 0, 0.87)")}}}),a()(ge,"MuiInputBase",{styleOverrides:{root:{fontSize:Ce?"1rem":"0.938rem",lineHeight:"1.1876em"}}}),ge),breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}}},Oe=(n(544),n(201)),Se=n(424),Fe=n.n(Se),je=n(3);function ke(e,t,n){switch(e.type){case je.c:case je.b:case je.a:return e.return=e.return||e.value;case je.h:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===je.a&&(e.children=e.value)}))}var r=Object(je.B)(Array.prototype.concat(e.children),ke);return Object(je.E)(r)?e.return=e.value+"{"+r+"}":""}function Te(e,t,n,r){if(e.type===je.d||e.type===je.i||e.type===je.h&&(!e.parent||e.parent.type===je.e||e.parent.type===je.h)){var o=Fe.a.transform(ke(e));e.children=o?Object(je.n)(o)[0].children:[],e.return=""}}Object.defineProperty(Te,"name",{value:"stylisRTLPlugin"});var Ae=Te,Pe=n(22),Ie=n(70);function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T()(e);if(t){var o=T()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j()(this,n)}}L.a.configure((function(e){return"Cx-".concat(e)}));var Re=["conversations"],_e=Ee,Ne=Object(Q.k)(),ze=Object(Q.f)().os||"";"Mac OS X"===ze&&(ze="mac");var $e=Object(Q.f)().browser||"",He="",qe=Object(Oe.a)(),Ve=function(e){S()(n,e);var t=Le(n);function n(e){var r;y()(this,n),r=t.call(this,e),a()(E()(r),"resetRoute",(function(){r.setState({route:""})})),a()(E()(r),"setView",(function(e){r.state.view!==e&&r.setState({view:e})})),a()(E()(r),"verifyStorageAndRemove",(function(){return new Promise((function(e,t){var n=r.props,o=n.oMessenger,i=(n.oConfig||{}).deploymentId,a=i+ee.u+ee.H;i?o.command(r.storage+".get",{name:a}).then((function(t){var n=t.split(":"),i=D()(n,2),s=i[0],u=i[1];s&&"string"==typeof s&&!u?o.command(r.storage+".remove",{name:a}).then((function(t){e()})):e()})):e()}))})),a()(E()(r),"openCommand",(function(e){var t=r.props.oMessenger,n=r.state,o=n.expandLauncher,i=n.bInvite,s=(e.data||{}).apps||[{name:"conversations"}],u=D()(s,1)[0];r.checkAuthentication().then((function(){if(u){var n=u.name,s=u.data;if(n&&Re.indexOf(n)>-1){var c=(r.launcherProps||{}).checkActiveConversation;if(o){var l={errorName:Z.H,errorMessage:Z.H};Object(X.a)(l),e.reject("Messenger is already opened.")}else c&&c().then((function(){i&&r.inviteAccepted(),r.setState((function(e){return{expandLauncher:!0,sMessengerOpen:"true",messengerClosed:!1,config:Be(Be({},e.config),{},{apps:Object(Q.m)(!0,e.config.apps,a()({},n,Be(Be({},e.config.apps[n]),s)))})}})),t.command(r.storage+".set",{name:r.messengerStorage+r.subOpenStorage,value:"true"}),e.resolve()}))}else{var d={errorName:Z.u,errorMessage:Z.u};Object(X.a)(d),e.reject("Invalid open command. Should specify supported plugin name.")}}else{var p={errorName:Z.t,errorMessage:Z.t};Object(X.a)(p),e.reject("Invalid open command. Should specify plugin name.")}}),(function(){var t={errorName:Z.Q,errorMessage:Z.Q};Object(X.a)(t),e.reject("User is not authenticated")}))})),a()(E()(r),"configure",(function(e){r.configureStyles(e),e&&(e.direction&&"rtl"===e.direction?r.selectedCache=r.emotionCache.RTL:r.selectedCache=r.emotionCache.LTR),e&&Object.keys(e).length&&r.setState((function(t){var n;return{config:Be(Be(Be({},t.config),e),{},{styles:Be(Be(Be({},t.config.styles),e.styles),{},{companyLogoSmall:Be(Be({},t.config.styles.companyLogoSmall),e.styles&&e.styles.companyLogoSmall)}),theme:Be(Be(Be({},t.config.theme),e.theme),{},{direction:e&&e.direction?e.direction:"ltr",palette:Be(Be(Be({},_e.palette),e.theme&&e.theme.palette),{},{primary:Be(Be({},_e.palette.primary),e.theme&&e.theme.palette&&e.theme.palette.primary)})}),launcherButton:Be(Be(Be({},t.config.launcherButton),e.launcherButton),{},{visibility:e.launcherButton&&e.launcherButton.visibility&&e.launcherButton.visibility.toLowerCase()||t.config.launcherButton.visibility,icon:Be(Be({},t.config.launcherButton.icon),e.launcherButton&&e.launcherButton.icon)}),position:Be(Be(Be({},t.config.position),e.position),{},{alignment:e.position&&e.position.alignment&&e.position.alignment.toLowerCase()||t.config.position.alignment}),apps:Be(Be(Be({},t.config.apps),e.apps),{},{conversations:Be(Be(Be({},t.config.apps.conversations),e.apps.conversations),{},{markdown:{enabled:null!==(n=e.apps.conversations.markdown.enabled)&&void 0!==n?n:t.config.apps.conversations.markdown.enabled}})})}),store:Be({},e.store),messengerClosed:t.messengerClosed}}))}));var o=e.oConfig,i=e.oMessenger,s=o.styles,u=o.launcherButton,c={visibility:"on",location:"right"},l=o.deploymentId;(r.emotionCache={LTR:Object(Ie.a)({key:"cx-messenger",prepend:!0}),RTL:Object(Ie.a)({key:"cx-messenger-rtl",stylisPlugins:[Ae],prepend:!0})},r.selectedCache=r.emotionCache.LTR,r.iHeaderHeight="",r.journeyContext={},r.oToasterContent={},r.expandedArticle=!1,r.inviteAccepted=function(){},r.launcherProps="",r.oCobrowseEvents={active:ee.f,accepted:ee.e,rejected:ee.h,expired:ee.g},r.storage=Object(Q.g)(o),r.messengerStorage=l?l+":gcmc":"_gcmc",r.subOpenStorage="opn",s&&s.modeType&&"auto"===s.modeType)&&(window.matchMedia("(prefers-color-scheme: dark)").matches&&(_e=xe));if(u){var d=u.visibility,p=u.location;"string"==typeof d&&(c.visibility=d.toLowerCase()),p&&"string"==typeof p&&(c.location=p.toLowerCase())}return Ne?qe.mobileMode():qe.desktopMode(),r.toggleLauncher=function(t,n){return new Promise((function(o,i){var a=n&&n.type?n.type:null;r.checkAuthentication().then((function(){var n=t||{},i=n.journeyContext,s=n.launcherRef,u=n.route;i&&(r.journeyContext=i),e.oMessenger.command(r.storage+".set",{name:r.messengerStorage+r.subOpenStorage,value:r.state.expandLauncher?"false":"true"}),r.state.expandLauncher?qe.launcherMinimized():qe.launcherOpened(),r.setState((function(e){return{expandLauncher:!e.expandLauncher,sMessengerOpen:e.expandLauncher?"false":"true",messengerClosed:!e.messengerClosed,bInvite:!e.bInvite&&e.bInvite,route:u||""}})),"keypress"==a&&s.current&&e.oMessenger.command(r.storage+".get",{name:r.messengerStorage+r.subOpenStorage}).then((function(e){e&&"string"==typeof e&&"false"===e&&r.state.bFabVisible&&s.current.focus()})),o()})).catch((function(e){i(e)}))}))},r.checkAuthentication=function(){return(r.state.config.auth||{}).enabled?new Promise((function(e,t){i.command(r.storage+".get",{names:[ee.c]}).then((function(n){var r=n[ee.c];r&&"undefined"!==r?e():t()})).catch((function(){t()}))})):Promise.resolve()},r.logoutMessenger=function(){e.oMessenger.command(r.storage+".set",{name:r.messengerStorage+r.subOpenStorage,value:"false"}),qe.launcherMinimized(),r.setState((function(){return{messengerClosed:!0,expandLauncher:!1,sMessengerOpen:"false",bFabVisible:!1}}))},r.handleEngageClick=function(e){var t=(r.launcherProps||{}).checkActiveConversation,n=(r.state||{}).config||{},o=n.home,i=(n.headlessMode||{}).enabled;t&&!i&&t().then((function(){o?r.toggleLauncher(Be({route:"conversations.conversations"},e)):r.toggleLauncher(e||{})}))},r.closeMessenger=function(e){r.setState((function(){return{messengerClosed:e,expandLauncher:!e,sMessengerOpen:e?"false":"true"}}))},r.setInviteState=function(e){r.setState((function(){return{bInvite:e}}))},r.setToasterState=function(e){r.setState((function(){return{bToaster:e,iToasterHeight:e?r.state.iToasterHeight:0}}))},r.setToasterHeight=function(e){r.setState((function(){return{iToasterHeight:e}}))},r.setToasterContent=function(e){r.oToasterContent=e},r.setFabVisibility=function(e){r.setState((function(){return{bFabVisible:e}}))},r.setHomeScreenHeight=function(e){var t=e||{},n=t.homeScreenHeight,o=t.bAddTransition;r.state.iHomeScreenHeight===n&&r.state.bAddTransition===o||r.setState((function(){return{iHomeScreenHeight:n,bAddTransition:o}}))},r.markdownMessages=[],r.setMarkdownMessages=function(e){r.markdownMessages=e},r.enableFocusControls=function(){r.setState((function(){return{oDisableInputs:{bHeaderMinimizeIcon:0,bTextField:!1,bAttachFileButton:!1,bSendIcon:!1,bMessageFocus:!1}}}))},r.disableFocusControls=function(){r.setState((function(){return{oDisableInputs:{bHeaderMinimizeIcon:-1,bTextField:!0,bAttachFileButton:!0,bSendIcon:!0,bMessageFocus:!0}}}))},r.getCobrowseOfferState=function(t){return new Promise((function(n,o){var i=t||{},a=i.sessionId,s=i.sessionJoinToken;a&&s?e.oMessenger.command("CobrowseService.offerState",{sessionId:a,joinCode:s}).then((function(t){if(t){var o=(t||{}).offerState;o&&e.oMessenger.publish(r.oCobrowseEvents[o],t),n(t)}}),(function(e){Object(X.a)(e),o(e)})).catch((function(e){Object(X.a)(e),o(e)})):o("SessionId and SessionJoinToken are required")}))},r.acceptCobrowseSession=function(t){var n=t||{},r=n.sessionId,o=n.sessionJoinToken;r&&o&&e.oMessenger.command("CobrowseService.acceptSession",{sessionId:r,joinToken:o})},r.declineCobrowseSession=function(t){var n=t||{},r=n.sessionId,o=n.sessionJoinToken;r&&o&&e.oMessenger.command("CobrowseService.declineSession",{sessionId:r,joinToken:o})},r.setJourneyContext=function(e){r.journeyContext=e},r.setArticleExpanded=function(e){r.expandedArticle=e},r.onHeaderUpdated=function(e){r.iHeaderHeight=e.height},r.oPlugins={Messenger:e.oMessenger,Toaster:e.oToaster},r.setPlugin=function(e,t){r.oPlugins[e]=t},r.oContextStore={},r.setContextStore=function(e){r.oContextStore=e},r.configureStyles(o),o&&o.direction&&(r.selectedCache="rtl"!==o.direction?r.emotionCache.LTR:r.emotionCache.RTL),r.state={config:Be(Be({},o),{},{theme:Be(Be(Be({},_e),o.theme),{},{direction:o&&o.direction?o.direction:"ltr",main:o.theme&&o.theme.main||"primary",palette:Be(Be(Be({},_e.palette),o.theme&&o.theme.palette),{},{primary:Be(Be({},_e.palette.primary),o.theme&&o.theme.palette&&o.theme.palette.primary)})}),styles:Be(Be({},o.styles),{},{companyLogoSmall:Be({},o.styles&&o.styles.companyLogoSmall)}),launcherButton:Be(Be(Be({},c),o.launcherButton),{},{visibility:o.launcherButton&&o.launcherButton.visibility&&o.launcherButton.visibility.toLowerCase()||"on"}),position:Be(Be({},o.position),{},{alignment:o.position&&o.position.alignment&&o.position.alignment.toLowerCase()||"auto"}),apps:Be(Be({},o.apps),{},{conversations:Be(Be({},o.apps.conversations),{},{markdown:{enabled:o.apps.conversations.markdown.enabled||!1}})})}),expandLauncher:!1,sMessengerOpen:"",route:"",bInvite:!1,bToaster:!1,iToasterHeight:0,oDisableInputs:{bHeaderMinimizeIcon:0,bTextField:!1,bAttachFileButton:!1,bSendIcon:!1,bMessageFocus:!1},bFabVisible:"on"===c.visibility,iHomeScreenHeight:0,bAddTransition:!1,view:"",toggleLauncher:r.toggleLauncher,logoutMessenger:r.logoutMessenger,messengerClosed:!0,closeMessenger:r.closeMessenger,getCobrowseOfferState:r.getCobrowseOfferState,acceptCobrowseSession:r.acceptCobrowseSession,declineCobrowseSession:r.declineCobrowseSession,store:o.store||{}},i.registerCommand("openConversation",(function(e){var t=r.launcherProps.openConversation,n=r.state,o=n.sMessengerOpen;((n.config||{}).headlessMode||{}).enabled?e.reject("Messenger user interface must be enabled in your configuration."):t&&"function"==typeof t?("true"===o?(r.setState({route:""}),t({route:"conversations.conversations"})):r.verifyStorageAndRemove().then((function(){r.toggleLauncher({route:"conversations.conversations"})})),e.resolve()):(r.setState({route:""}),e.reject())})),i.registerCommand("openSearch",(function(e){var t=r.state,n=t.sMessengerOpen,o=t.config||{},i=o.apps,a=o.headlessMode,s=((i||{}).knowledge||{}).enabled,u=r.launcherProps.openSearch;(a||{}).enabled?e.reject("Messenger user interface must be enabled in your configuration."):s&&u?("true"===n?(r.setState({route:""}),u({route:"knowledge.search"})):r.verifyStorageAndRemove().then((function(){r.toggleLauncher({route:"knowledge.search"})})),e.resolve()):(r.setState({route:""}),e.reject("Knowledge must be enabled in your configuration."))})),i.registerCommand("close",(function(e){var t=r.state,n=t.expandLauncher;t.sMessengerOpen;if(((t.config||{}).headlessMode||{}).enabled)e.reject("Messenger user interface must be enabled in your configuration.");else if(n)r.setState((function(){return{expandLauncher:!1,sMessengerOpen:"false",messengerClosed:!0}})),i.command(r.storage+".set",{name:r.messengerStorage+r.subOpenStorage,value:"false"}),e.resolve();else{var o={errorName:Z.G,errorMessage:Z.G};Object(X.a)(o),e.reject("Messenger is already closed.")}})),r}return w()(n,[{key:"configureStyles",value:function(e){if(e&&e.styles){var t=e.styles,n=t.primaryColor,r=t.secondaryColor,o=t.modeType,i=t.fontSize,a=t.fontFamily;t.companyLogoSmall;n&&"string"==typeof n&&(_e.palette.primary.main=n),r&&"string"==typeof r&&(_e.palette.secondary.main=r),o&&"string"==typeof o&&(_e.palette.mode=o.toLowerCase()),i&&"string"==typeof i&&(_e.typography.fontSize=Number(i.split("px")[0])),i&&"number"==typeof i&&(_e.typography.fontSize=i),a&&"string"==typeof a&&(_e.typography.fontFamily=a)}}},{key:"componentDidMount",value:function(){var e=this,t=(window._genesys?window._genesys.messenger:{}).onReady;t&&t(window.parent.Genesys),this.inviteAccepted=function(){"function"==typeof e.fInviteAccepted&&e.fInviteAccepted()}}},{key:"render",value:function(){var e=this,t=(this.state.config||{}).fullScreen,n=this.state||{},r=n.expandLauncher,o=n.bInvite,i=n.messengerClosed;return He=Object(Q.k)()?"mxg-mobile-"+ze.toLowerCase()+"-"+$e.toLowerCase():"mxg-desktop-"+ze.toLowerCase()+"-"+$e.toLowerCase(),u.a.createElement(M.a,{injectFirst:!0},u.a.createElement(I.a,{theme:Object(B.b)(this.state.config.theme)},u.a.createElement(Pe.a,{value:this.selectedCache},u.a.createElement(R.a.Provider,{value:Be(Be({},this.state),{},{oPlugins:this.oPlugins,setPlugin:this.setPlugin,oContextStore:this.oContextStore,setContextStore:this.setContextStore,bInvite:this.state.bInvite,bToaster:this.state.bToaster,oToasterContent:this.oToasterContent,iToasterHeight:this.state.iToasterHeight,setInviteState:this.setInviteState,setToasterState:this.setToasterState,setToasterHeight:this.setToasterHeight,setToasterContent:this.setToasterContent,inviteAccepted:this.inviteAccepted,bFabVisible:this.state.bFabVisible,setFabVisibility:this.setFabVisibility,markdownMessages:this.markdownMessages,setMarkdownMessages:this.setMarkdownMessages,journeyContext:this.journeyContext,setJourneyContext:this.setJourneyContext,setArticleExpanded:this.setArticleExpanded,expandedArticle:this.expandedArticle,oDisableInputs:this.state.oDisableInputs,disableFocusControls:this.disableFocusControls,enableFocusControls:this.enableFocusControls,handleEngageClick:this.handleEngageClick,iHeaderHeight:this.iHeaderHeight,onHeaderUpdated:this.onHeaderUpdated,resetRoute:this.resetRoute,verifyStorageAndRemove:this.verifyStorageAndRemove,iHomeScreenHeight:this.state.iHomeScreenHeight,bAddTransition:this.state.bAddTransition,setHomeScreenHeight:this.setHomeScreenHeight,view:this.state.view,setView:this.setView})},(!r&&i||o)&&u.a.createElement(De.default,{plugin:this.props.oToaster,config:this.state.config}),u.a.createElement(ve.default,{plugin:this.props.oEngage,config:this.state.config,setInviteAccepted:function(t){return e.fInviteAccepted=t}}),u.a.createElement(me,{color:this.state.config.theme.main,config:this.state.config,getComponentMethods:function(t){return e.launcherProps=t},Toaster:De.default}),u.a.createElement("div",{tabIndex:-1,id:"full-screen-indicator",className:"".concat(He," ").concat(t?"mxg-fullscreen-indicator":"")})))))}}]),n}(u.a.Component),Ue=Ve;Ve.propTypes={oMessenger:P.a.object.isRequired,oEngage:P.a.object.isRequired,oConfig:P.a.object.isRequired};var We={"en-us":"en",cs:"cs",da:"da",de:"de",es:"es",fi:"fi",it:"it",ko:"ko",nl:"nl",no:"nb",pl:"pl","pt-br":"pt-br",ru:"ru",sv:"sv",th:"th",tr:"tr","zh-cn":"zh-cn","zh-tw":"zh-tw",fr:"fr",ja:"ja",ar:"ar",he:"he","pt-pt":"pt-pt"};function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Je=Object(Q.f)().browser||"",Ye=Object(Q.f)().os||"",Qe=!(!Je||"Safari"!==Je),Ze="iOS"===Ye,Xe=document.createElement("div");document.body.appendChild(Xe);var et={position:{alignment:"auto",sideSpace:20,bottomSpace:12},lang:"en-us",fullScreen:!1,documentDirection:"ltr",styles:{modeType:"light"},apps:{conversations:{markdown:{enabled:!1},conversationDisconnect:{enabled:!1,type:""}}},i18n:{},customLabels:{},customI18NLabels:[],headlessMode:{enabled:!1}},tt="",nt="",rt="",ot=null,it=null;void 0!==document.hidden?(ot="hidden",it="visibilitychange"):void 0!==document.msHidden?(ot="msHidden",it="msvisibilitychange"):void 0!==document.webkitHidden&&(ot="webkitHidden",it="webkitvisibilitychange"),p.a.extend(m.a),p.a.extend(h.a),Genesys("registerPlugin","Messenger",(function(e){var t="",r="";function i(n,o){if(nt)nt.configure(Ke(Ke({},n.config),{},{store:n.store||{},direction:et.direction,i18n:et.i18n,lang:et.lang,fullScreen:n.config&&n.config.fullScreen,position:et.position,customLabels:et.customLabels,apps:Ke(Ke(Ke({},et.apps),n.config&&n.config.apps),{},{conversations:Ke(Ke({},et.apps.conversations),n.config.apps&&n.config.apps.conversations)})})),o.resolve();else{var i=Object(Q.m)(!0,et,n.config,{store:n.store},{apps:Ke(Ke(Ke({},et.apps),n.config&&n.config.apps),{},{conversations:Ke(Ke({},et.apps.conversations),n.config.apps&&n.config.apps.conversations)})},{deploymentId:n.deploymentId});l.a.render(u.a.createElement(u.a.StrictMode,null,u.a.createElement(Ue,{oConfig:i,oEngage:t,oToaster:r,oMessenger:e,ref:function(e){nt=e,window.messenger=e}})),Xe),o.resolve()}}function a(t){et.lang=t,document.documentElement.setAttribute("lang",Q.a[t]);-1!==["ar","arc","dv","fa","ha","he","khw","ks","ku","ps","ur","yi"].indexOf(et.lang)?(et.direction="rtl",document.documentElement.setAttribute("dir","rtl"),e.command("MessengerHelper.setDirection",{position:et.position})):(et.direction="",Qe||Ze?document.documentElement.setAttribute("dir","ltr"):document.documentElement.removeAttribute("dir"),e.command("MessengerHelper.setDirection",{position:et.position}))}function s(){return new Promise((function(t,n){var r=(et||{}).customI18NLabels,o={};r?r.forEach((function(r){var i=r.toLocaleLowerCase();et.customLabels&&-1!==Object.keys(et.customLabels).indexOf(i)?-1!==Object.keys(et.i18n).indexOf(i)&&(o[i]=Object(Q.m)(!0,et.i18n[i],et.customLabels[i]),t(o)):e.command("MessengerHelper.getCustomLabels",{language:i}).then((function(e){var n=e.customLangLabels;n&&Object.keys(n).length&&(et.customLabels[i]=n,-1!==Object.keys(et.i18n).indexOf(i)&&(o[i]=Object(Q.m)(!0,et.i18n[i],et.customLabels[i]),t(o)))})).catch((function(e){n(e)}))})):t(et.i18n)}))}document.addEventListener(it,(function(){e.publish("visibilityChanged",{visibilityChange:it,hidden:document[ot]})})),Genesys("registerPlugin","Engage",(function(e){t=e})),Genesys("registerPlugin","Toaster",(function(e){r=e})),e.registerCommand("open",(function(t){((et||{}).headlessMode||{}).enabled?t.reject("Messenger user interface must be enabled in your configuration."):nt?nt.openCommand(t):e.subscribe("Launcher.ready",(function(){var e=setTimeout((function(){nt.openCommand(t),clearTimeout(e)}),200)}))})),e.registerCommand("configure",(function(e){var t=e.data,r=t||{},u=r.snippetConfig,c=r.deploymentConfig,l=r.config,d=r.deploymentId,f=r.apiEndPoint,h=u||{},g=h.deploymentId,m=h.preview,v=(c||{}).defaultLanguage,D=c||l||{},b=D.cobrowse,y=D.customI18NLabels,x=D.preview,w=D.customLabels,C=D.headlessMode,E=D.fullScreen;if(y&&(et.customI18NLabels=y),w&&(et.customLabels=w),et.preview=x||m||!1,t.config=c&&c.messenger||l||{},t.config.defaultLanguage&&(tt=t.config.defaultLanguage),l&&l.documentDirection&&(t.config.documentDirection=l.documentDirection,et.documentDirection=l.documentDirection),v&&"string"==typeof v&&(t.config.defaultLanguage=v.toLowerCase(),tt=t.config.defaultLanguage),d&&"string"==typeof d&&d,g&&"string"==typeof g&&g,f&&"string"==typeof f&&(rt=f),c&&c.apiEndpoint&&"string"==typeof c.apiEndpoint&&(rt=c.apiEndpoint,t.config.apiEndpoint=rt),c&&c.auth&&"object"==o()(c.auth)&&(t.config.auth=c.auth||c.authenticationSettings),b&&(t.config.cobrowse=b),C&&(t.config.headlessMode=C,et.headlessMode=C),E&&"boolean"==typeof E&&(t.config.fullScreen=E),t&&t.config&&Object.keys(t.config).length){var O=c||t.config,S=O.position,F=(O.headlessMode,t.config),j=F.lang,k=F.apps,T=F.homeScreen,A=t.config.defaultLanguage||tt,P=k||{},I=P.knowledge,M=P.conversations,B=(M||{}).conversationDisconnect,L=(I||{}).enabled,R=(T||{}).enabled,_=((M||{}).markdown||{}).enabled;"boolean"==typeof L&&(t.config.home=L),"boolean"==typeof R&&(t.config.home=R),B&&Object.keys(B).length&&(t.config.conversationDisconnect=B,et.apps.conversations.conversationDisconnect=B);var N="",z=Object(Q.e)();if(S){var $=S||{},H=$.sideSpace,q=$.bottomSpace,V=$.alignment;H&&"number"==typeof H&&(et.position.sideSpace=H),q&&"number"==typeof q&&(et.position.bottomSpace=q),!V||"string"!=typeof V||"auto"!==V.toLowerCase()&&"left"!==V.toLowerCase()&&"right"!==V.toLowerCase()||(et.position.alignment=V.toLowerCase())}if("boolean"==typeof _&&(et.apps.conversations.markdown.enabled=_,Genesys("command","Markdown.configure",{enabled:_})),j&&"string"==typeof j)N=j;else if(z){var U=z.slice(0,2),W=(c||{}).languages;W&&(W=W.map((function(e){return e.toLowerCase()}))),W&&-1!==W.indexOf(z)?N=z:W&&-1!==W.indexOf(U)?N=U:A&&(N=A.toLowerCase())}et.i18n&&et.i18n[N]?(a(N),We[N]&&p.a.locale(We[N]),et.preview&&et.customLabels&&s().then((function(n){n&&n[N]&&(et.i18n[N]=n[N],i(t,e))})),i(t,e)):Genesys("loadJSON","./i18n/".concat(N,".json"),(function(r){r&&("string"==typeof r&&(r=JSON.parse(r)),"string"==typeof r&&(r=JSON.parse(r)),a(N),et.i18n[N]=r,s().then((function(n){n&&n[N]&&(et.i18n[N]=n[N],i(t,e))}))),function(e){return new Promise((function(t,r){switch(We[e]){case"pl":n.e(20).then(n.t.bind(null,642,7)).then((function(e){p.a.locale("pl"),t(p.a)}));break;case"fr":n.e(13).then(n.t.bind(null,643,7)).then((function(e){p.a.locale("fr"),t(p.a)}));break;case"ja":n.e(16).then(n.t.bind(null,644,7)).then((function(e){p.a.locale("ja"),t(p.a)}));break;case"cs":n.e(7).then(n.t.bind(null,645,7)).then((function(e){p.a.locale("cs"),t(p.a)}));break;case"da":n.e(8).then(n.t.bind(null,646,7)).then((function(e){p.a.locale("da"),t(p.a)}));break;case"de":n.e(9).then(n.t.bind(null,647,7)).then((function(e){p.a.locale("de"),t(p.a)}));break;case"es":n.e(11).then(n.t.bind(null,648,7)).then((function(e){p.a.locale("es"),t(p.a)}));break;case"fi":n.e(12).then(n.t.bind(null,649,7)).then((function(e){p.a.locale("fi"),t(p.a)}));break;case"it":n.e(15).then(n.t.bind(null,650,7)).then((function(e){p.a.locale("it"),t(p.a)}));break;case"ko":n.e(17).then(n.t.bind(null,651,7)).then((function(e){p.a.locale("ko"),t(p.a)}));break;case"nl":n.e(19).then(n.t.bind(null,652,7)).then((function(e){p.a.locale("nl"),t(p.a)}));break;case"nb":n.e(18).then(n.t.bind(null,653,7)).then((function(e){p.a.locale("nb"),t(p.a)}));break;case"pt-br":n.e(22).then(n.t.bind(null,654,7)).then((function(e){p.a.locale("pt-br"),t(p.a)}));break;case"ru":n.e(23).then(n.t.bind(null,655,7)).then((function(e){p.a.locale("ru"),t(p.a)}));break;case"ar":n.e(6).then(n.t.bind(null,656,7)).then((function(e){p.a.locale("ar"),t(p.a)}));break;case"sv":n.e(24).then(n.t.bind(null,657,7)).then((function(e){p.a.locale("sv"),t(p.a)}));break;case"th":n.e(25).then(n.t.bind(null,658,7)).then((function(e){p.a.locale("th"),t(p.a)}));break;case"tr":n.e(26).then(n.t.bind(null,659,7)).then((function(e){p.a.locale("tr"),t(p.a)}));break;case"zh-cn":n.e(27).then(n.t.bind(null,660,7)).then((function(e){p.a.locale("zh-cn"),t(p.a)}));break;case"zh-tw":n.e(28).then(n.t.bind(null,661,7)).then((function(e){p.a.locale("zh-tw"),t(p.a)}));break;case"he":n.e(14).then(n.t.bind(null,662,7)).then((function(e){p.a.locale("he"),t(p.a)}));break;case"pt-pt":n.e(21).then(n.t.bind(null,663,7)).then((function(e){p.a.locale("pt"),t(p.a)}));break;default:n.e(10).then(n.t.bind(null,664,7)).then((function(e){p.a.locale("en"),t(p.a)}))}}))}(N).then((function(){i(t,e)}))}))}else{var G={errorName:Z.J,errorMessage:Z.J};Object(X.a)(G),e.reject("No configuration is provided to Messenger")}})),e.ready()}))},58:function(e,t,n){"use strict";t.a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}},59:function(e,t,n){"use strict";t.a=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},6:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}t.a=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},66:function(e,t,n){var r=n(210);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},67:function(e,t,n){var r=n(54).default,o=n(17);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7:function(e,t,n){e.exports=n(213)()},70:function(e,t,n){"use strict";var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=n(3),i=(n(58),n(59),function(e,t,n){for(var r=0,i=0;r=i,i=Object(o.x)(),38===r&&12===i&&(t[n]=1),!Object(o.F)(i);)Object(o.w)();return Object(o.C)(e,o.y)}),a=function(e,t){return Object(o.p)(function(e,t){var n=-1,r=44;do{switch(Object(o.F)(r)){case 0:38===r&&12===Object(o.x)()&&(t[n]=1),e[n]+=i(o.y-1,t,n);break;case 2:e[n]+=Object(o.q)(r);break;case 4:if(44===r){e[++n]=58===Object(o.x)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Object(o.r)(r)}}while(r=Object(o.w)());return e}(Object(o.k)(e),t))},s=new WeakMap,u=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||s.get(n))&&!r){s.set(e,!0);for(var o=[],i=a(t,o),u=n.props,c=0,l=0;c<i.length;c++)for(var d=0;d<u.length;d++,l++)e.props[l]=o[c]?i[c].replace(/&\f/g,u[d]):u[d]+" "+i[c]}}},c=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};var l=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case o.b:e.return=function e(t,n){switch(Object(o.s)(t,n)){case 5103:return o.j+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return o.j+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return o.j+t+o.f+t+o.g+t+t;case 6828:case 4268:return o.j+t+o.g+t+t;case 6165:return o.j+t+o.g+"flex-"+t+t;case 5187:return o.j+t+Object(o.z)(t,/(\w+).+(:[^]+)/,o.j+"box-$1$2"+o.g+"flex-$1$2")+t;case 5443:return o.j+t+o.g+"flex-item-"+Object(o.z)(t,/flex-|-self/,"")+t;case 4675:return o.j+t+o.g+"flex-line-pack"+Object(o.z)(t,/align-content|flex-|-self/,"")+t;case 5548:return o.j+t+o.g+Object(o.z)(t,"shrink","negative")+t;case 5292:return o.j+t+o.g+Object(o.z)(t,"basis","preferred-size")+t;case 6060:return o.j+"box-"+Object(o.z)(t,"-grow","")+o.j+t+o.g+Object(o.z)(t,"grow","positive")+t;case 4554:return o.j+Object(o.z)(t,/([^-])(transform)/g,"$1"+o.j+"$2")+t;case 6187:return Object(o.z)(Object(o.z)(Object(o.z)(t,/(zoom-|grab)/,o.j+"$1"),/(image-set)/,o.j+"$1"),t,"")+t;case 5495:case 3959:return Object(o.z)(t,/(image-set\([^]*)/,o.j+"$1$`$1");case 4968:return Object(o.z)(Object(o.z)(t,/(.+:)(flex-)?(.*)/,o.j+"box-pack:$3"+o.g+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+o.j+t+t;case 4095:case 3583:case 4068:case 2532:return Object(o.z)(t,/(.+)-inline(.+)/,o.j+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Object(o.E)(t)-1-n>6)switch(Object(o.l)(t,n+1)){case 109:if(45!==Object(o.l)(t,n+4))break;case 102:return Object(o.z)(t,/(.+:)(.+)-([^]+)/,"$1"+o.j+"$2-$3$1"+o.f+(108==Object(o.l)(t,n+3)?"$3":"$2-$3"))+t;case 115:return~Object(o.t)(t,"stretch")?e(Object(o.z)(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==Object(o.l)(t,n+1))break;case 6444:switch(Object(o.l)(t,Object(o.E)(t)-3-(~Object(o.t)(t,"!important")&&10))){case 107:return Object(o.z)(t,":",":"+o.j)+t;case 101:return Object(o.z)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+o.j+(45===Object(o.l)(t,14)?"inline-":"")+"box$3$1"+o.j+"$2$3$1"+o.g+"$2box$3")+t}break;case 5936:switch(Object(o.l)(t,n+11)){case 114:return o.j+t+o.g+Object(o.z)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return o.j+t+o.g+Object(o.z)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return o.j+t+o.g+Object(o.z)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return o.j+t+o.g+t+t}return t}(e.value,e.length);break;case o.d:return Object(o.B)([Object(o.o)(e,{value:Object(o.z)(e.value,"@","@"+o.j)})],r);case o.h:if(e.length)return Object(o.m)(e.props,(function(t){switch(Object(o.u)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Object(o.B)([Object(o.o)(e,{props:[Object(o.z)(t,/:(read-\w+)/,":"+o.f+"$1")]})],r);case"::placeholder":return Object(o.B)([Object(o.o)(e,{props:[Object(o.z)(t,/:(plac\w+)/,":"+o.j+"input-$1")]}),Object(o.o)(e,{props:[Object(o.z)(t,/:(plac\w+)/,":"+o.f+"$1")]}),Object(o.o)(e,{props:[Object(o.z)(t,/:(plac\w+)/,o.g+"input-$1")]})],r)}return""}))}}];t.a=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||l;var a,s,d={},p=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)d[t[n]]=!0;p.push(e)}));var f=[u,c];var h,g=[o.D,Object(o.A)((function(e){h.insert(e)}))],m=Object(o.v)(f.concat(i,g));s=function(e,t,n,r){var i;h=n,i=e?e+"{"+t.styles+"}":t.styles,Object(o.B)(Object(o.n)(i),m),r&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new r({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:d,registered:{},insert:s};return v.sheet.hydrate(p),v}},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=n.n(r).a.createContext({expandLauncher:!1,toggleLauncher:function(){},logoutMessenger:function(){},messengerClosed:!1,closeMessenger:function(){},journeyContext:{},setJourneyContext:function(){},oPlugins:{},setPlugin:function(){},oContextStore:{},setContextStore:function(){},bInvite:!1,setInviteState:function(){},inviteAccepted:function(){},handleEngageClick:function(){},bToaster:!1,iToasterHeight:0,oToasterContent:{},setToasterState:function(){},setToasterHeight:function(){},setToasterContent:function(){},bFabVisible:!0,setFabVisibility:function(){},expandedArticle:!1,setArticleExpanded:function(){},markdownMessages:{},setMarkdownMessages:function(){},oDisableInputs:{bHeaderMinimizeIcon:0,bTextField:!1,bAttachFileButton:!1,bSendIcon:!1,bMessageFocus:!1},enableFocusControls:function(){},disableFocusControls:function(){},getCobrowseOfferState:function(){},acceptCobrowseSession:function(){},declineCobrowseSession:function(){}})},78:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return o}))},83:function(e,t,n){"use strict";var r=n(211),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 u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=u(t),g=u(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||r&&r[v]||g&&g[v]||s&&s[v])){var D=p(n,v);try{c(t,v,D)}catch(e){}}}}return t}},93:function(e,t,n){"use strict";var r=n(83),o=n.n(r);t.a=function(e,t){return o()(e,t)}}})}));

Zerion Mini Shell 1.0