!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,(function(){return function(e){var t={};if("function"==typeof jsonpScriptSrc){var n=jsonpScriptSrc;function r(){try{if("function"!=typeof replaceSrc)throw new Error("WebpackRequireFrom: 'replaceSrc' is not a function or not available at runtime. See https://github.com/agoldis/webpack-require-from#troubleshooting");var e=replaceSrc(n.apply(this,arguments));if(!e||"string"!=typeof e)throw new Error("WebpackRequireFrom: 'replaceSrc' does not return string. See https://github.com/agoldis/webpack-require-from#troubleshooting");return e}catch(e){return console.error(e),n.apply(this,arguments)}}jsonpScriptSrc=r}function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",Object.defineProperty(o,"p",{get:function(){return"elc-service-bus/"}}),o(o.s="./src/index.ts")}({"./node_modules/@estee/elc-logging/node_modules/debug/src/browser.js":function(e,t,n){(function(r){function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)}function s(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}}function u(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=Object({BROWSER:!0,NODE_ENV:"production"}).DEBUG),e}function c(){try{return localStorage}catch(e){}}t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage=c(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n("./node_modules/@estee/elc-logging/node_modules/debug/src/common.js")(t);const{formatters:a}=e.exports;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/@estee/elc-logging/node_modules/debug/src/common.js":function(e,t,n){function r(e){function t(e){let t=0;for(let n=0;n{if("%%"===t)return t;u++;const i=r.formatters[n];if("function"==typeof i){const n=e[u];t=i.call(o,n),e.splice(u,1),u--}return t}),r.formatArgs.call(o,e);(o.log||r.log).apply(o,e)}return n.namespace=e,n.enabled=r.enabled(e),n.useColors=r.useColors(),n.color=r.selectColor(e),n.destroy=o,n.extend=i,"function"==typeof r.init&&r.init(n),r.instances.push(n),n}function o(){const e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){const n=r(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function s(e){let t;r.save(e),r.names=[],r.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(t=0;t"-"+e)].join(",");return r.enable(""),e}function c(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=r.skips.length;t{r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}e.exports=r},"./node_modules/@estee/elc-logging/node_modules/debug/src/index.js":function(e,t,n){(function(t){void 0===t||"renderer"===t.type||!0===t.browser||t.__nwjs?e.exports=n("./node_modules/@estee/elc-logging/node_modules/debug/src/browser.js"):e.exports=n("./node_modules/@estee/elc-logging/node_modules/debug/src/node.js")}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/@estee/elc-logging/node_modules/debug/src/node.js":function(e,t,n){(function(r){const o=n("./node_modules/tty-browserify/index.js"),i=n("./node_modules/util/util.js");t.init=l,t.log=a,t.formatArgs=u,t.save=d,t.load=_,t.useColors=s,t.colors=[6,2,3,4,5,1];try{const e=n("./node_modules/supports-color/browser.js");e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function s(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):o.isatty(r.stderr.fd)}function u(t){const{namespace:n,useColors:r}=this;if(r){const r=this.color,o="[3"+(r<8?r:"8;5;"+r),i=` ${o};1m${n} `;t[0]=i+t[0].split("\n").join("\n"+i),t.push(o+"m+"+e.exports.humanize(this.diff)+"")}else t[0]=c()+n+" "+t[0]}function c(){return t.inspectOpts.hideDate?"":(new Date).toISOString()+" "}function a(...e){return r.stderr.write(i.format(...e)+"\n")}function d(e){e?Object({BROWSER:!0,NODE_ENV:"production"}).DEBUG=e:delete Object({BROWSER:!0,NODE_ENV:"production"}).DEBUG}function _(){return Object({BROWSER:!0,NODE_ENV:"production"}).DEBUG}function l(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r/^debug_/i.test(e)).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let r=Object({BROWSER:!0,NODE_ENV:"production"})[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e},{}),e.exports=n("./node_modules/@estee/elc-logging/node_modules/debug/src/common.js")(t);const{formatters:f}=e.exports;f.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).replace(/\s*\n\s*/g," ")},f.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}}).call(this,n("./node_modules/process/browser.js"))},"./node_modules/@estee/elc-scripts/node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/@estee/elc-scripts/node_modules/webpack/buildin/harmony-module.js":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"./node_modules/@estee/elc-universal-utils/src/UniversalUtils.ts":function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));"object"==typeof self&&(self.self,self);const r="undefined"==typeof window?e:window,o=e=>{const{name:t,...n}=e;r.serviceInfo=r.serviceInfo||{},r.serviceInfo[t]=n};var i;!function(e){e.LIVE="live",e.FEATURE="feature",e.DEV="dev",e.STAGE="stage",e.CMS="cms",e.PERSONAL="personal",e.PRODUCTION="production"}(i||(i={}));const s=()=>{let e=r.location.hostname.split(".");const{LIVE:t,FEATURE:n,DEV:o,STAGE:s,CMS:u,PERSONAL:c}=i;e=e.filter(e=>!["www","m"].includes(e));return!("c"===e[0]||"e"===e[0])?t:e.includes(n)?n:e.includes(o)?o:e.includes(s)?s:e.includes(u)?u:c}}).call(this,n("./node_modules/@estee/elc-scripts/node_modules/webpack/buildin/global.js"))},"./node_modules/@sentry/utils/esm/debug-build.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},"./node_modules/@sentry/utils/esm/env.js":function(e,t,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}n.d(t,"a",(function(){return r}))},"./node_modules/@sentry/utils/esm/is.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return E})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return _})),n.d(t,"i",(function(){return s})),n.d(t,"j",(function(){return f})),n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return T}));const r=Object.prototype.toString;function o(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return p(e,Error)}}function i(e,t){return r.call(e)===`[object ${t}]`}function s(e){return i(e,"String")}function u(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function c(e){return i(e,"Object")}function a(e){return"undefined"!=typeof Event&&p(e,Event)}function d(e){return"undefined"!=typeof Element&&p(e,Element)}function _(e){return i(e,"RegExp")}function l(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function f(e){return c(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function E(e){return"number"==typeof e&&e!=e}function p(e,t){try{return e instanceof t}catch(e){return!1}}function T(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},"./node_modules/@sentry/utils/esm/logger.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var r=n("./node_modules/@sentry/utils/esm/debug-build.js"),o=n("./node_modules/@sentry/utils/esm/worldwide.js");const i="Sentry Logger ",s=["debug","info","warn","error","log","assert","trace"],u={};function c(e){if(!("console"in o.a))return e();const t=o.a.console,n={},r=Object.keys(u);r.forEach(e=>{const r=u[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function a(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.a?s.forEach(n=>{t[n]=(...t)=>{e&&c(()=>{o.a.console[n](`${i}[${n}]:`,...t)})}}):s.forEach(e=>{t[e]=()=>{}}),t}const d=a()},"./node_modules/@sentry/utils/esm/memo.js":function(e,t,n){"use strict";function r(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];function n(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=s){p[e]="[MaxProperties ~]";break}const t=h[e];p[e]=c(e,t,f-1,s,u),T++}return _(t),p}function a(t,n){try{if("domain"===t&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==e&&n===e)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(Object(r.l)(n))return"[VueViewModel]";if(Object(r.j)(n))return"[SyntheticEvent]";if("number"==typeof n&&n!=n)return"[NaN]";if("function"==typeof n)return`[Function: ${Object(s.a)(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const o=d(n);return/^HTML(\w*)Element$/.test(o)?`[HTMLElement: ${o}]`:`[object ${o}]`}catch(e){return`**non-serializable** (${e})`}}function d(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}}).call(this,n("./node_modules/@estee/elc-scripts/node_modules/webpack/buildin/global.js"))},"./node_modules/@sentry/utils/esm/object.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return E}));var r=n("./node_modules/@sentry/utils/esm/is.js"),o=n("./node_modules/@sentry/utils/esm/worldwide.js");Object(o.b)();const i=80;function s(e,t={}){if(!e)return"";try{let n=e;const r=5,o=[];let s=0,c=0;const a=" > ",d=a.length;let _;const l=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||i;for(;n&&s++1&&c+o.length*d+_.length>=f));)o.push(_),c+=_.length,n=n.parentNode;return o.reverse().join(a)}catch(e){return""}}function u(e,t){const n=e,o=[];let i,s,u,c,a;if(!n||!n.tagName)return"";o.push(n.tagName.toLowerCase());const d=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(d&&d.length)d.forEach(e=>{o.push(`[${e[0]}="${e[1]}"]`)});else if(n.id&&o.push("#"+n.id),i=n.className,i&&Object(r.i)(i))for(s=i.split(/\s+/),a=0;a"}}function f(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function E(e){return p(e,new Map)}function p(e,t){if(Object(r.f)(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=p(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach(e=>{r.push(p(e,t))}),r}return e}},"./node_modules/@sentry/utils/esm/stacktrace.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const r="";function o(e){try{return e&&"function"==typeof e&&e.name||r}catch(e){return r}}},"./node_modules/@sentry/utils/esm/string.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));n("./node_modules/@sentry/utils/esm/is.js");function r(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:e.slice(0,t)+"..."}function o(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n="'{snip} "+n),iDate.now()/1e3};function u(){const{performance:e}=i;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}function c(){try{return Object(r.a)(e,"perf_hooks").performance}catch(e){return}}const a=Object(r.b)()?c():u(),d=void 0===a?s:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},_=s.nowSeconds.bind(s),l=d.nowSeconds.bind(d);let f;(()=>{const{performance:e}=i;if(!e||!e.now)return void(f="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*u;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function a(e){var t=Math.abs(e);return t>=i?Math.round(e/i)+"d":t>=o?Math.round(e/o)+"h":t>=r?Math.round(e/r)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}function d(e){var t=Math.abs(e);return t>=i?_(e,t,i,"day"):t>=o?_(e,t,o,"hour"):t>=r?_(e,t,r,"minute"):t>=n?_(e,t,n,"second"):e+" ms"}function _(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return c(e);if("number"===n&&isFinite(e))return t.long?d(e):a(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"./node_modules/process/browser.js":function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function c(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var a,d=[],_=!1,l=-1;function f(){_&&a&&(_=!1,a.length?d=a.concat(d):l=-1,d.length&&E())}function E(){if(!_){var e=u(f);_=!0;for(var t=d.length;t;){for(a=d,d=[];++l1)for(var n=1;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),O(n)?r.showHidden=n:n&&t._extend(r,n),R(r.showHidden)&&(r.showHidden=!1),R(r.depth)&&(r.depth=2),R(r.colors)&&(r.colors=!1),R(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),_(r,e,r.depth)}function c(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function a(e,t){return e}function d(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function _(e,n,r){if(e.customInspect&&n&&N(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return m(o)||(o=_(e,o,r)),o}var i=l(e,n);if(i)return i;var s=Object.keys(n),u=d(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),v(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(N(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(A(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(y(n))return e.stylize(Date.prototype.toString.call(n),"date");if(v(n))return f(n)}var a,O="",g=!1,S=["{","}"];(h(n)&&(g=!0,S=["[","]"]),N(n))&&(O=" [Function"+(n.name?": "+n.name:"")+"]");return A(n)&&(O=" "+RegExp.prototype.toString.call(n)),y(n)&&(O=" "+Date.prototype.toUTCString.call(n)),v(n)&&(O=" "+f(n)),0!==s.length||g&&0!=n.length?r<0?A(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),a=g?E(e,n,r,u,s):s.map((function(t){return p(e,n,r,u,t,g)})),e.seen.pop(),T(a,O,S)):S[0]+O+S[1]}function l(e,t){if(R(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return C(t)?e.stylize(""+t,"number"):O(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function E(e,t,n,r,o){for(var i=[],s=0,u=t.length;s-1&&(u=i?u.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+u.split("\n").map((function(e){return" "+e})).join("\n")):u=e.stylize("[Circular]","special")),R(s)){if(i&&o.match(/^\d+$/))return u;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+u}function T(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function O(e){return"boolean"==typeof e}function g(e){return null===e}function S(e){return null==e}function C(e){return"number"==typeof e}function m(e){return"string"==typeof e}function D(e){return"symbol"==typeof e}function R(e){return void 0===e}function A(e){return I(e)&&"[object RegExp]"===b(e)}function I(e){return"object"==typeof e&&null!==e}function y(e){return I(e)&&"[object Date]"===b(e)}function v(e){return I(e)&&("[object Error]"===b(e)||e instanceof Error)}function N(e){return"function"==typeof e}function L(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function b(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(R(i)&&(i=Object({BROWSER:!0,NODE_ENV:"production"}).NODE_DEBUG||""),n=n.toUpperCase(),!s[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=e.pid;s[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else s[n]=function(){};return s[n]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=O,t.isNull=g,t.isNullOrUndefined=S,t.isNumber=C,t.isString=m,t.isSymbol=D,t.isUndefined=R,t.isRegExp=A,t.isObject=I,t.isDate=y,t.isError=v,t.isFunction=N,t.isPrimitive=L,t.isBuffer=n("./node_modules/util/support/isBufferBrowser.js");var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),U[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",w(),t.format.apply(t,arguments))},t.inherits=n("./node_modules/util/node_modules/inherits/inherits.js"),t._extend=function(e,t){if(!t||!I(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var G="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function V(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function M(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r{function t(t,n){return(r,o,i)=>{i?e.on(t,e=>{i.value.call(r,e)},n):Object.defineProperty(r,o,{configurable:!0,enumerable:!1,get(){},set(o){e.on(t,e=>{o.call(r,e)},n)}})}}function n(t,...n){e.emit(t,n[0])}function r(t,...n){return e.query(t,n[0])}function o(t,...n){return e.command(t,n[0])}return{command:o,commandProvider:t=>(n,r,o)=>{const i=t;o||Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){},set(t){e.registerCommandProvider(i,e=>t.call(n,e))}})},query:r,watchQuery:t=>(n,r)=>{const o=t||r;n.__serviceBusDecorators__=n.__serviceBusDecorators__||{};n.__serviceBusDecorators__[o]||(n.__serviceBusDecorators__[o]=r),n.registerWatchers=function(){Object.keys(this.__serviceBusDecorators__).map(t=>{e.registerQueryWatcher(t,e=>{this[this.__serviceBusDecorators__[t]]=e})})}},queryProvider:t=>(n,r,o)=>{const i=t;o||Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){},set(t){e.registerQueryProvider(i,e=>t.call(n,e))}})},emit:n,on:t}},hu="confirm.registration.token",Ou="confirm.registration.url",gu="reset.password.url",Su="get.current.route",Cu="care.handler.url",mu="page.view.track.product-grid",Du="page.view.track.product-full",Ru="isCartValid",Au="choiceOfSkusItemsCounts",Iu="cart.items.subtotal",yu="cart.items.counter",vu="cart.digitalSignature",Nu="successful.offer.codes",Lu="cart.skus.ids",bu="get.cart",Pu="recommended.products.skuids.list",Uu="isShippingScreenValid",wu="email.opt.in",ku="get.manual.offer",Gu="get.manual.offer.code",Vu="first.order.date",Mu="first.order.value",Fu="last.order.date",ju="last.order.value",xu="orders.avg",Ku="total.count.of.orders",Bu="total.sum.of.revenue",Hu="order.shipping.address",Yu="get.order.data",Wu="isPasswordValid",qu="isPaymentScreenValid",Qu="getProductData",zu="getProducts",$u="getProductsV2",Ju="getProductsV3",Zu="getReviewProduct",Xu="get.selected.filters",ec="get.sortby.value",tc="getSkus",nc="getProdcatInventory",rc="getInventory";var oc;!function(e){e.ASCENDING="ASCENDING",e.DESCENDING="DESCENDING"}(oc||(oc={}));const ic="saveForLaterItemsCount",sc="isEmailJustVerified",uc="fullName",cc="basicUserDetails",ac="isSignInFormOpen",dc="isEmailVerified",_c="guestEmail",lc="email",fc="birth.date",Ec="get.user.creation.date",pc="get.user.formatted.address",Tc="get.user.account.id",hc="getUserAuthState";var Oc;!function(e){e[e.SIGNEDIN=0]="SIGNEDIN",e[e.ANONYMOUS=1]="ANONYMOUS",e[e.RECOGNIZED=2]="RECOGNIZED"}(Oc||(Oc={}));const gc="get.config",Sc="get.translations",Cc="GET_STORE_INVENTORY",mc="apptBooking.tokenAccess.get",Dc="apptBooking.counters.get",Rc="apptBooking.contentTemplates.get",Ac="legal.acceptance.token",Ic="content.templates.get",yc="getReviewSnippet",vc="get.bestMatchSkuId",Nc="get.userDetails",Lc="get.legacy.guestAuthtoken",bc="get.guestAuthtoken",Pc="isAuthenticated",Uc="get.accessToken",wc="userId",kc="isLoyaltyMember",Gc="points",Vc={...G,...V,...M,...F,...j,...x,...K,...B,...H,...Y,...W,...q,...Q,...z,...$,...J,...Z,...X,...ee,...te,...ne,...re,...oe,...ie},Mc="change.route.profile",Fc="change.route.settings",jc="change.route.orderHistory",xc="cart.addItem",Kc="cart.clearErrors",Bc="cart.clear",Hc="cart.setShippingMethod",Yc="cart.add.addresses",Wc="cart.save.for.later",qc="cart.overlay.show",Qc="cart.overlay.hide",zc="update.inventory",$c="updateReviewConfig",Jc="auth.update.data",Zc="set.sign.in.email",Xc="update.user.data",ea="clear.user.data",ta="account.overlay.show",na="account.overlay.hide",ra="account.add.user.address",oa="order.create",ia="order.check",sa="order.update",ua={...se,...ue,...le,...ce,...ae,...de,..._e};var ca=n("./node_modules/@estee/elc-universal-utils/src/UniversalUtils.ts");var aa;!function(e){function t(e){document.cookie="".concat(e,"=; Max-Age=-99999999;")}function n(e,t,n){let r="";if(n){const e="number"==typeof n?new Date(Date.now()+24*n*60*60*1e3):n;r="; expires=".concat(e.toUTCString())}document.cookie="".concat(e,"=").concat(t||"").concat(r,";path=/")}function r(e){const t="".concat(e,"="),n=document.cookie.split(";");for(let e=0;e{const r=o(e);n!==r&&(n=r,t(r))},2e3)}e.eraseCookie=t,e.setCookie=n,e.getCookie=r,e.getItem=o,e.setItem=i,e.removeItem=s,e.storagePolling=u}(aa||(aa={}));var da=n("./node_modules/@estee/elc-logging/node_modules/debug/src/index.js"),_a=n("./node_modules/@sentry/utils/esm/logger.js"),la=n("./node_modules/@sentry/utils/esm/object.js"),fa=(n("./node_modules/@sentry/utils/esm/string.js"),n("./node_modules/@sentry/utils/esm/worldwide.js"));function Ea(){const e=fa.a,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function pa(e){return Array.isArray(e)?e:[e]}var Ta=n("./node_modules/@sentry/utils/esm/time.js"),ha=n("./node_modules/@sentry/utils/esm/is.js");const Oa="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ga="production";var Sa;!function(e){const t=0;e[e.PENDING=t]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"}(Sa||(Sa={}));class Ca{constructor(e){Ca.prototype.__init.call(this),Ca.prototype.__init2.call(this),Ca.prototype.__init3.call(this),Ca.prototype.__init4.call(this),this._state=Sa.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Ca((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new Ca((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{o?n(r):t(r)})})}__init(){this._resolve=e=>{this._setResult(Sa.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Sa.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Sa.PENDING&&(Object(ha.k)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Sa.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===Sa.RESOLVED&&e[1](this._value),this._state===Sa.REJECTED&&e[2](this._value),e[0]=!0)})}}}function ma(){return Object(fa.c)("globalEventProcessors",()=>[])}function Da(e,t,n,r=0){return new Ca((o,i)=>{const s=e[r];if(null===t||"function"!=typeof s)o(t);else{const u=s({...t},n);Oa&&s.id&&null===u&&_a.b.log(`Event processor "${s.id}" dropped event`),Object(ha.k)(u)?u.then(t=>Da(e,t,n,r+1).then(o)).then(null,i):Da(e,u,n,r+1).then(o).then(null,i)}})}function Ra(e){const t=Object(Ta.b)(),n={sid:Ea(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>ya(n)};return e&&Aa(n,e),n}function Aa(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Object(Ta.b)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Ea()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=""+t.did),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Ia(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Aa(e,n)}function ya(e){return Object(la.c)({sid:""+e.sid,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?""+e.did:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const va=100;class Na{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=La()}static clone(e){const t=new Na;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata},t._propagationContext={...e._propagationContext}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Aa(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof Na?t:this}return e instanceof Na?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):Object(ha.f)(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=La(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:va;if(n<=0)return this;const r={timestamp:Object(Ta.a)(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={},n){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;n&&(e.tags={transaction:n,...e.tags})}}this._applyFingerprint(e);const r=this._getBreadcrumbs(),o=[...e.breadcrumbs||[],...r];return e.breadcrumbs=o.length>0?o:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},Da([...n||[],...ma(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?pa(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function La(){return{traceId:Ea(),spanId:Ea().substring(16)}}const ba=4,Pa=100;class Ua{constructor(e,t=new Na,n=ba){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version{o.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},i)}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Ea(),o=new Error(e);return this._withClient((i,s)=>{i.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},s)}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Ea();return e.type||(this._lastEventId=n),this._withClient((r,o)=>{r.captureEvent(e,{...t,event_id:n},o)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Pa}=r.getOptions&&r.getOptions()||{};if(i<=0)return;const s={timestamp:Object(Ta.a)(),...e},u=o?Object(_a.a)(()=>o(s,t)):s;null!==u&&(r.emit&&r.emit("beforeAddBreadcrumb",u,t),n.addBreadcrumb(u,i))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=ka(this);try{e(this)}finally{ka(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Oa&&_a.b.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(Oa&&!n){this.getClient()?_a.b.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):_a.b.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&Ia(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=ga}=n&&n.getOptions()||{},{userAgent:i}=fa.a.navigator||{},s=Ra({release:r,environment:o,user:t.getUser(),...i&&{userAgent:i},...e}),u=t.getSession&&t.getSession();return u&&"ok"===u.status&&Aa(u,{status:"exited"}),this.endSession(),t.setSession(s),s}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=wa().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Oa&&_a.b.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function wa(){return fa.a.__SENTRY__=fa.a.__SENTRY__||{extensions:{},hub:void 0},fa.a}function ka(e){const t=wa(),n=Fa(t);return ja(t,e),n}function Ga(){const e=wa();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return Va(e)}function Va(e=wa()){return Ma(e)&&!Fa(e).isOlderThan(ba)||ja(e,new Ua),Fa(e)}function Ma(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Fa(e){return Object(fa.c)("hub",()=>new Ua,e)}function ja(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}n("./node_modules/@sentry/utils/esm/normalize.js");new WeakMap;function xa(e,t){const n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return Ga().captureMessage(e,n,r)}var Ka;!function(e){e.runtimeError="runtimeError",e.api="api",e.graphqlApi="graphqlApi",e.render="render",e.serviceBus="serviceBus",e.config="config",e.translation="translation",e.other="other"}(Ka||(Ka={}));class Ba{constructor(e){this.error=async e=>{this.errorDebugger&&this.errorDebugger(this.enhanceLogData(e));const t=this.config.environment===ca.a.PRODUCTION||ca.c.env===ca.a.PRODUCTION;if(t&&Object(ca.b)()===ca.a.LIVE||!t)return this.sendLog(e,"error")},this.info=e=>{this.infoDebugger&&this.infoDebugger(this.enhanceLogData(e))},this.warning=e=>{this.warningDebugger&&this.warningDebugger(this.enhanceLogData(e))},this.event=e=>{this.eventDebugger&&this.eventDebugger(this.enhanceLogData(e))},this.query=e=>{this.queryDebugger&&this.queryDebugger(this.enhanceLogData(e))},this.command=e=>{this.commandDebugger&&this.commandDebugger(this.enhanceLogData(e))},this.enhanceLogData=e=>({...e,triggerSource:this.config.serviceName,date:(new Date).toUTCString()}),this.config=e;const t=Object(da.debug)(this.config.serviceName);this.errorDebugger=t.extend("error"),this.infoDebugger=t.extend("info"),this.warningDebugger=t.extend("warning"),this.eventDebugger=t.extend("event"),this.queryDebugger=t.extend("query"),this.commandDebugger=t.extend("command")}async sendLog(e,t){try{ca.c.__SENTRY__?xa(JSON.stringify(e)):console.info("Logging failed because Sentry is not available")}catch(t){this.errorDebugger&&this.errorDebugger(this.enhanceLogData({message:"Could not send log",triggerType:Ka.api,payload:{error:t,context:e}}))}}}const{name:Ha,version:Ya}={branchName:"release/2.93",commitHash:"1242d10a6b9a77cddcf8dc75afd3a4ff398c6b1a",version:"2.93.0",name:"@estee/elc-service-bus"},Wa={info:"info",error:"error"};class qa{constructor(){this.unsolvedQueries=[],this.hooks={},this.logger=new Ba({serviceName:Ha,serviceVersion:Ya,environment:ca.c.env,buid:ca.c.buid}),this.dummyHook=(e,t,n)=>n&&n(e,t),this.log=({message:e,payload:t,type:n=Wa.info})=>{(n===Wa.error?this.logger.error:this.logger.info)({message:e,payload:t,triggerType:Ka.serviceBus})},this.on=(e,t,n)=>{this.runHooks("beforeEventListenerRegister",e,t),this.runOn(e,t,n)},this.runOn=(e,t,n={})=>{const{replay:r=!1}=n;if(!e){const e=new Error("Event name cannot be undefined while subscribing to ServiceBus");throw this.logger.error({message:e.message,triggerType:Ka.serviceBus,payload:{error:e}}),e}if(!t){const t=new Error("A callback is necessary while subscribing to ServiceBus");throw this.logger.error({message:t.message,triggerType:Ka.serviceBus,payload:{error:t,context:{eventName:e}}}),t}let o=this.eventWatchers.get(e);if(o||(o=[],this.eventWatchers.set(e,o)),r&&this.eventsEmitted.has(e)&&t(this.eventsEmitted.get(e)),o){o.indexOf(t)<0&&o.push(t)}},this.off=(e,t)=>{if(t){const n=this.eventWatchers.get(e);if(n){const r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&this.eventWatchers.delete(e))}}else this.eventWatchers.delete(e)},this.applyHook=e=>{const t=e(this);Object.keys(t).forEach(e=>{const n=t[e];this.hooks[e]=this.hooks[e]||[];const r=this.hooks[e];n&&Array.isArray(r)&&r.unshift(n),this.solveQueries(e)})},this.solveQueries=e=>{"beforeQuery"===e&&this.hasUnsolvedQueries()&&this.unsolvedQueries.forEach(t=>{const{resolve:n,queryName:r,payload:o}=t,i=this.runHooks(e,r,o);return(e=>e&&e.then)(i)?i.then(e=>{n(e),this.unsolvedQueries=this.unsolvedQueries.filter(e=>e!==t)}):void 0})},this.hasUnsolvedQueries=()=>0!==this.unsolvedQueries.length,this.emit=(e,t)=>{this.runHooks("beforeEmit",e,t)},this.runEmit=(e,t)=>{const n=this.eventWatchers.get(e);this.eventsEmitted.set(e,t),n&&n.forEach(e=>{e(t)}),this.runHooks("afterEmit",e,t)},this.query=(e,t)=>this.runHooks("beforeQuery",e,t),this.command=(e,t)=>this.runHooks("beforeQuery",e,t),this.runQuery=(e,t)=>{const n=this.queryProviders.find(t=>t.queryName===e);if(!n){let n=function(e){};const r=new Promise(e=>{n=e});return this.unsolvedQueries.push({promise:r,resolve:n,payload:t,queryName:e}),r}return Promise.resolve(n.provider.call(n.context,t)).then(t=>this.afterQuery(n,t,e))},this.afterQuery=(e,t,n)=>(this.runHooks("afterQuery",e,t),t),this.registerQueryProvider=(e,t,n)=>this.runHooks("beforeQueryRegister",e,t,n),this.registerCommandProvider=(e,t,n)=>this.runHooks("beforeQueryRegister",e,t,n),this.runRegisterQueryProvider=(e,t,n)=>{if(this.queryProviders.filter(t=>t.queryName===e).length){const t=new Error("Trying to register a query providerm but there is already a provider for query ".concat(e));return void this.logger.warning({message:t.message,triggerType:Ka.serviceBus,payload:{error:t,context:n}})}this.queryProviders.push({queryName:e,provider:t,context:n});const r=this.unsolvedQueries.filter(t=>t.queryName===e);r.length&&(r.forEach(this.executeUnsolvedQuery),this.unsolvedQueries=this.unsolvedQueries.filter(t=>t.queryName!==e))},this.registerQueryWatcher=(e,t)=>{this.queryWatchers.push({queryName:e,queryWatcher:t}),e in this.queryCache&&t.call(null,this.queryCache[e])},this.runHooks=(e,...t)=>{const n=this.hooks[e]||[];return this.executeHook(n.slice(0),t)},this.executeUnsolvedQuery=({queryName:e,payload:t,resolve:n})=>{const r=this.queryProviders.find(t=>t.queryName===e);if(r)return Promise.resolve(r.provider.call(r.context,t)).then(t=>(n(this.afterQuery(r,t,e)),t))},this.dirtyCheckQueries=()=>{const e={};this.queryWatchers.forEach(t=>{const{queryName:n,queryWatcher:r}=t,o=this.queryProviders.find(e=>e.queryName===n),i=this.queryCache;if(o){Promise.resolve(e[n]||o.provider.call(o.context)).then(t=>{t!==i[n]&&r.call(null,t),e[n]=t})}}),this.queryCache=e},this.eventWatchers=new Map,this.eventsEmitted=new Map,this.queryProviders=[],this.queryWatchers=[],this.queryCache={},this.hooks={beforeEmit:[this.runEmit],beforeQuery:[this.runQuery],beforeEventListenerRegister:[this.dummyHook],beforeQueryRegister:[this.runRegisterQueryProvider]},setInterval(this.dirtyCheckQueries,200)}executeHook(e,t){const n=e.shift();if("function"==typeof n){const r=()=>this.executeHook(e.slice(0),t);return n(...0===e.length?t:t.concat([r]))}}}const Qa=new Ba({serviceName:"elc-service-bus"}),za=e=>({beforeEventListenerRegister:(e,t,n)=>{Qa.event({triggerType:Ka.serviceBus,message:"beforeEventListenerRegister ".concat(e)}),n(e,t)},beforeEmit:(e,t,n)=>{Qa.event({triggerType:Ka.serviceBus,payload:t,message:"beforeEmit ".concat(e)}),n(e,t)},afterEmit:(e,t)=>{Qa.event({triggerType:Ka.serviceBus,payload:t,message:"afterEmit ".concat(e)})},beforeQueryRegister:(e,t,n,r)=>{Qa.query({triggerType:Ka.serviceBus,message:"beforeQueryRegister ".concat(e)}),r&&r(e,t,n)},beforeQuery:(e,t,n)=>(Qa.query({triggerType:Ka.serviceBus,payload:t,message:"beforeQuery ".concat(e)}),n(e,t)),afterQuery:(e,t)=>{Qa.query({triggerType:Ka.serviceBus,payload:t,message:"afterQuery ".concat(e)})}});Object(ca.d)({branchName:"release/2.93",commitHash:"1242d10a6b9a77cddcf8dc75afd3a4ff398c6b1a",version:"2.93.0",name:"@estee/elc-service-bus"}),ca.c&&(ca.c.GlobalServiceBus=new qa,ca.c.ServiceBusTopics={commands:ua,events:pu,queries:Vc});const $a=ca.c.GlobalServiceBus,{command:Ja,commandProvider:Za,query:Xa,watchQuery:ed,queryProvider:td,emit:nd,on:rd}=Tu($a),od={GlobalServiceBus:$a,command:Ja,commandProvider:Za,query:Xa,watchQuery:ed,queryProvider:td,emit:nd,on:rd,serviceQueries:Vc,serviceCommands:ua,events:pu,ServiceBusLogHook:za}}})})); //# sourceMappingURL=bundle.js.map