qe-fe-automation
Version:
FE test automation framework using cypress
3 lines • 74.5 kB
JavaScript
!function(){function t(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function n(t){return t&&t.__esModule?t.default:t}var r={},i={},o=e.parcelRequire9fc0;function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){s(t,e,n[e])}))}return t}function c(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t){if(Array.isArray(t))return u(t)}function h(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function p(t){return l(t)||h(t)||d(t)||f()}null==o&&((o=function(t){if(t in r)return r[t].exports;if(t in i){var e=i[t];delete i[t];var n={id:t,exports:{}};return r[t]=n,e.call(n.exports,n,n.exports),n.exports}var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(t,e){i[t]=e},e.parcelRequire9fc0=o),o.register("6Y8Mx",(function(e,n){t(e.exports,"isNodeEnv",(function(){return s}),(function(t){return s=t})),t(e.exports,"dynamicRequire",(function(){return a}),(function(t){return a=t}));var r=o("hEVcD"),i=o("3stNZ");function s(){return!(0,r.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function a(t,e){return t.require(e)}})),o.register("hEVcD",(function(e,n){function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}t(e.exports,"isBrowserBundle",(function(){return r}))})),o.register("3stNZ",(function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,u=[],l=!1,h=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):h=-1,u.length&&d())}function d(){if(!l){var t=a(f);l=!0;for(var e=u.length;e;){for(c=u,u=[];++h<e;)c&&c[h].run();h=-1,e=u.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new p(t,e)),1!==u.length||l||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}})),o.register("7qD1E",(function(e,n){t(e.exports,"dateTimestampInSeconds",(function(){return u}),(function(t){return u=t})),t(e.exports,"timestampInSeconds",(function(){return l}),(function(t){return l=t}));var r=o("6Y8Mx"),i=(0,o("ej3uA").getGlobalObject)(),s={nowSeconds:function(){return Date.now()/1e3}};var a=(0,r.isNodeEnv)()?function(){try{return(0,r.dynamicRequire)(e,"perf_hooks").performance}catch(t){return}}():function(){var t=i.performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),c=void 0===a?s:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},u=s.nowSeconds.bind(s),l=c.nowSeconds.bind(c);!function(){var t=i.performance;if(t&&t.now){var e=36e5,n=t.now(),r=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,s=o<e,a=t.timing&&t.timing.navigationStart,c="number"==typeof a?Math.abs(a+n-r):e;return s||c<e?o<=c?("timeOrigin",t.timeOrigin):("navigationStart",a):("dateNow",r)}"none"}()})),o.register("ej3uA",(function(n,r){function i(t){return t&&t.Math==Math?t:void 0}t(n.exports,"GLOBAL_OBJ",(function(){return o})),t(n.exports,"getGlobalObject",(function(){return s})),t(n.exports,"getGlobalSingleton",(function(){return a}));var o="object"==typeof globalThis&&i(globalThis)||"object"==typeof window&&i(window)||"object"==typeof self&&i(self)||"object"==typeof e&&i(e)||function(){return this}()||{};function s(){return o}function a(t,e,n){var r=n||o,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=e())}}));var v="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==v&&v,y={searchParams:"URLSearchParams"in v,iterable:"Symbol"in v&&"iterator"in Symbol,blob:"FileReader"in v&&"Blob"in v&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in v,arrayBuffer:"ArrayBuffer"in v};if(y.arrayBuffer)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(t){return t&&m.indexOf(Object.prototype.toString.call(t))>-1};function b(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function _(t){return"string"!=typeof t&&(t=String(t)),t}function w(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return y.iterable&&(e[Symbol.iterator]=function(){return e}),e}function E(t){this.map={},t instanceof E?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function k(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function S(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function x(t){var e=new FileReader,n=S(e);return e.readAsArrayBuffer(t),n}function O(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:y.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:y.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:y.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():y.arrayBuffer&&y.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=O(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):y.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||g(t))?this._bodyArrayBuffer=O(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):y.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},y.blob&&(this.blob=function(){var t=k(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=k(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(x)}),this.text=function(){var t,e,n,r=k(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=S(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},y.formData&&(this.formData=function(){return this.text().then(R)}),this.json=function(){return this.text().then(JSON.parse)},this}E.prototype.append=function(t,e){t=b(t),e=_(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},E.prototype.delete=function(t){delete this.map[b(t)]},E.prototype.get=function(t){return t=b(t),this.has(t)?this.map[t]:null},E.prototype.has=function(t){return this.map.hasOwnProperty(b(t))},E.prototype.set=function(t,e){this.map[b(t)]=_(e)},E.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},E.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),w(t)},E.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),w(t)},E.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),w(t)},y.iterable&&(E.prototype[Symbol.iterator]=E.prototype.entries);var L=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function A(t,e){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(e=e||{}).body;if(t instanceof A){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new E(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new E(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),L.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function R(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function j(t,e){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new E(e.headers),this.url=e.url||"",this._initBody(t)}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})},T.call(A.prototype),T.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new E(this.headers),url:this.url})},j.error=function(){var t=new j(null,{status:0,statusText:""});return t.type="error",t};var P=[301,302,303,307,308];j.redirect=function(t,e){if(-1===P.indexOf(e))throw new RangeError("Invalid status code");return new j(null,{status:e,headers:{location:t}})};var D=v.DOMException;try{new D}catch(t){(D=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),D.prototype.constructor=D}function B(t,e){return new Promise((function(n,r){var i=function(){s.abort()},o=new A(t,e);if(o.signal&&o.signal.aborted)return r(new D("Aborted","AbortError"));var s=new XMLHttpRequest;s.onload=function(){var t,e,r={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new E,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;setTimeout((function(){n(new j(i,r))}),0)},s.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},s.onabort=function(){setTimeout((function(){r(new D("Aborted","AbortError"))}),0)},s.open(o.method,function(t){try{return""===t&&v.location.href?v.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(y.blob?s.responseType="blob":y.arrayBuffer&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof E?o.headers.forEach((function(t,e){s.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){s.setRequestHeader(t,_(e.headers[t]))})),o.signal&&(o.signal.addEventListener("abort",i),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",i)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}function C(t,e,n,r,i,o,s){try{var a=t[o](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function I(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function s(t){C(o,r,i,s,a,"next",t)}function a(t){C(o,r,i,s,a,"throw",t)}s(void 0)}))}}B.polyfill=!0,v.fetch||(v.fetch=B,v.Headers=E,v.Request=A,v.Response=j);var N={},U=function(t){"use strict";var e,n=function(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]},r=function(t,e,n,r){var i=e&&e.prototype instanceof o?e:o,s=Object.create(i.prototype),a=new d(r||[]);return g(s,"_invoke",{value:l(t,n,a)}),s},i=function(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}},o=function(){},s=function(){},a=function(){},c=function(t){["next","throw","return"].forEach((function(e){n(t,e,(function(t){return this._invoke(e,t)}))}))},u=function(t,e){function n(r,o,s,a){var c=i(t[r],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&m.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):e.resolve(l).then((function(t){u.value=t,s(u)}),(function(t){return n("throw",t,s,a)}))}a(c.arg)}var r;g(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}})},l=function(t,e,n){var r=k;return function(o,s){if(r===x)throw new Error("Generator is already running");if(r===O){if("throw"===o)throw s;return v()}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var c=P(a,n);if(c){if(c===T)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===k)throw r=O,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=x;var u=i(t,e,n);if("normal"===u.type){if(r=n.done?O:S,u.arg===T)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=O,n.method="throw",n.arg=u.arg)}}},h=function(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)},f=function(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e},d=function(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)},p=function(t){if(t){var n=t[_];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(m.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}return{next:v}},v=function(){return{value:e,done:!0}},y=Object.prototype,m=y.hasOwnProperty,g=Object.defineProperty||function(t,e,n){t[e]=n.value},b="function"==typeof Symbol?Symbol:{},_=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",E=b.toStringTag||"@@toStringTag";try{n({},"")}catch(t){n=function(t,e,n){return t[e]=n}}t.wrap=r;var k="suspendedStart",S="suspendedYield",x="executing",O="completed",T={},L={};n(L,_,(function(){return this}));var A=Object.getPrototypeOf,R=A&&A(A(p([])));R&&R!==y&&m.call(R,_)&&(L=R);var j=a.prototype=o.prototype=Object.create(L);function P(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),T;var s=i(o,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,T;var a=s.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,T):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,T)}return s.prototype=a,g(j,"constructor",{value:a,configurable:!0}),g(a,"constructor",{value:s,configurable:!0}),s.displayName=n(a,E,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===s||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,n(t,E,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},c(u.prototype),n(u.prototype,w,(function(){return this})),t.AsyncIterator=u,t.async=function(e,n,i,o,s){void 0===s&&(s=Promise);var a=new u(r(e,n,i,o),s);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},c(j),n(j,E,"Generator"),n(j,_,(function(){return this})),n(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=p,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(f),!t)for(var n in this)"t"===n.charAt(0)&&m.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){var n=function(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i};if(this.done)throw t;for(var r=this,i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=m.call(o,"catchLoc"),c=m.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&m.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,T):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),T},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),f(n),T}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;f(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:p(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),T}},t}(N);try{regeneratorRuntime=U}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=U:Function("r","regeneratorRuntime = r")(U)}var F,M=function(t,e){var n=e?".".concat(e):"";return"https://api".concat(n,".","chilipiper.com").concat(t)},G="CHILI_PIPER_CLUSTER",q=M("/api/v1/match-cluster/"),H=null,J=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="".concat(q).concat(t);return H||(H=B(e).then((function(t){return t.json()})).then((function(t){return function(t){try{var e={value:t,timestamp:(new Date).getTime(),version:"2.0"};window.localStorage.setItem(G,JSON.stringify(e))}catch(t){console.error("error set cluster")}}((null==t?void 0:t.clusterPrefix)||""),(null==t?void 0:t.clusterPrefix)||""})).catch((function(){return console.error("error CLUSTER request"),""}))),H},Y=function(t){try{var e=JSON.parse(window.localStorage.getItem(G)||"{}");if(e&&e.timestamp&&(e.timestamp,0)&&"2.0"===e.version)return H=null,Promise.resolve(e.value)}catch(t){console.error(t)}return J(t)},z=function(t){return{headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t),method:"POST"}},V=(F=I(n(N).mark((function t(e,r,i){var o;return n(N).wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Y(e);case 2:return o=t.sent,t.abrupt("return",B(M(r,o),a({credentials:"include"},i&&z(i))).then((function(t){return t.status>=200&&t.status<400?t.json():t.json().catch((function(){throw new Error(t.status.toString())})).then((function(e){var n=e.message;throw new Error(n||t.status)}))})));case 4:case"end":return t.stop()}}),t)}))),function(t,e,n){return F.apply(this,arguments)});function W(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Q(t,e,n){return e&&$(t.prototype,e),n&&$(t,n),t}var K=Object.prototype.toString;function Z(t){switch(K.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return at(t,Error)}}function X(t,e){return K.call(t)==="[object ".concat(e,"]")}function tt(t){return X(t,"DOMError")}function et(t){return X(t,"DOMException")}function nt(t){return X(t,"String")}function rt(t){return X(t,"Object")}function it(t){return"undefined"!=typeof Event&&at(t,Event)}function ot(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function st(t){return rt(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function at(t,e){try{return t instanceof e}catch(t){return!1}}var ct,ut=o("ej3uA"),lt=["debug","info","warn","error","log","assert","trace"];function ht(t){if(!("console"in ut.GLOBAL_OBJ))return t();var e=ut.GLOBAL_OBJ.console,n={};lt.forEach((function(t){var r=e[t]&&e[t].__sentry_original__;t in e&&r&&(n[t]=e[t],e[t]=r)}));try{return t()}finally{Object.keys(n).forEach((function(t){e[t]=n[t]}))}}function ft(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?lt.forEach((function(n){e[n]=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];t&&ht((function(){var t;(t=ut.GLOBAL_OBJ.console)[n].apply(t,["".concat("Sentry Logger ","[").concat(n,"]:")].concat(p(r)))}))}})):lt.forEach((function(t){e[t]=function(){}})),e}function dt(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}ct="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,ut.getGlobalSingleton)("logger",ft):ft();(0,(ut=o("ej3uA")).getGlobalObject)();var pt=80;function vt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{for(var n,r=t,i=[],o=0,s=0,a=Array.isArray(e)?e:e.keyAttrs,c=!Array.isArray(e)&&e.maxStringLength||pt;r&&o++<5&&!("html"===(n=yt(r,a))||o>1&&s+3*i.length+n.length>=c);)i.push(n),s+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(t){return"<unknown>"}}function yt(t,e){var n,r,i,o,s,a=t,c=[];if(!a||!a.tagName)return"";c.push(a.tagName.toLowerCase());var u=e&&e.length?e.filter((function(t){return a.getAttribute(t)})).map((function(t){return[t,a.getAttribute(t)]})):null;if(u&&u.length)u.forEach((function(t){c.push("[".concat(t[0],'="').concat(t[1],'"]'))}));else if(a.id&&c.push("#".concat(a.id)),(n=a.className)&&nt(n))for(r=n.split(/\s+/),s=0;s<r.length;s++)c.push(".".concat(r[s]));var l=["aria-label","type","name","title","alt"];for(s=0;s<l.length;s++)i=l[s],(o=a.getAttribute(i))&&c.push("[".concat(i,'="').concat(o,'"]'));return c.join("")}function mt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof t||0===e||t.length<=e?t:"".concat(t.slice(0,e),"...")}function gt(t){if(Z(t))return a({message:t.message,name:t.name,stack:t.stack},_t(t));if(it(t)){var e=a({type:t.type,target:bt(t.target),currentTarget:bt(t.currentTarget)},_t(t));return"undefined"!=typeof CustomEvent&&at(t,CustomEvent)&&(e.detail=t.detail),e}return t}function bt(t){try{return e=t,"undefined"!=typeof Element&&at(e,Element)?vt(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var e}function _t(t){if("object"==typeof t&&null!==t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function wt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=Object.keys(gt(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return mt(n[0],e);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length?i:mt(i,e)}return""}function Et(t){return kt(t,new Map)}function kt(t,e){if(rt(t)){var n=e.get(t);if(void 0!==n)return n;var r={};e.set(t,r);var i=!0,o=!1,s=void 0;try{for(var a,c=Object.keys(t)[Symbol.iterator]();!(i=(a=c.next()).done);i=!0){var u=a.value;void 0!==t[u]&&(r[u]=kt(t[u],e))}}catch(t){o=!0,s=t}finally{try{i||null==c.return||c.return()}finally{if(o)throw s}}return r}if(Array.isArray(t)){var l=e.get(t);if(void 0!==l)return l;var h=[];return e.set(t,h),t.forEach((function(t){h.push(kt(t,e))})),h}return t}ut=o("ej3uA");function St(){var t=ut.GLOBAL_OBJ,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");var n=e&&e.getRandomValues?function(){return e.getRandomValues(new Uint8Array(1))[0]}:function(){return 16*Math.random()};return"10000000100040008000100000000000".replace(/[018]/g,(function(t){return(t^(15&n())>>t/4).toString(16)}))}function xt(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Ot(t,e,n){var r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function Tt(t,e){var n=xt(t);if(n){var r=n.mechanism;if(n.mechanism=a({},{type:"generic",handled:!0},r,e),e&&"data"in e){var i=a({},r&&r.data,e.data);n.mechanism.data=i}}}function Lt(t){if(Array.isArray(t))return t}function At(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);s=!0);}catch(t){a=!0,i=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}function Rt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jt(t,e){return Lt(t)||At(t,e)||d(t,e)||Rt()}var Pt=50,Dt=/\(error: (.*)\)/;function Bt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.sort((function(t,e){return t[0]-e[0]})).map((function(t){return t[1]}));return function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=t.split("\n"),o=e;o<i.length;o++){var s=i[o];if(!(s.length>1024)){var u=Dt.test(s)?s.replace(Dt,"$1"):s,l=!0,h=!1,f=void 0;try{for(var d,p=r[Symbol.iterator]();!(l=(d=p.next()).done);l=!0){var v=(0,d.value)(u);if(v){n.push(v);break}}}catch(t){h=!0,f=t}finally{try{l||null==p.return||p.return()}finally{if(h)throw f}}if(n.length>=Pt)break}}return function(t){if(!t.length)return[];var e=t.slice(0,Pt),n=e[e.length-1].function;n&&/sentryWrapped/.test(n)&&e.pop();e.reverse();var r=e[e.length-1].function;r&&/captureMessage|captureException/.test(r)&&e.pop();return e.map((function(t){return c(a({},t),{filename:t.filename||e[e.length-1].filename,function:t.function||"?"})}))}(n)}}var Ct,It="<anonymous>";function Nt(t){try{return t&&"function"==typeof t&&t.name||It}catch(t){return It}}function Ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return Mt("",t,e,n)}catch(t){return{ERROR:"**non-serializable** (".concat(t,")")}}}function Ft(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,i=Ut(t,n);return e=i,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(e))>r?Ft(t,n-1,r):i}function Mt(t,n){var r,i,o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(r="function"==typeof WeakSet,i=r?new WeakSet:[],[function(t){if(r)return!!i.has(t)||(i.add(t),!1);for(var e=0;e<i.length;e++)if(i[e]===t)return!0;return i.push(t),!1},function(t){if(r)i.delete(t);else for(var e=0;e<i.length;e++)if(i[e]===t){i.splice(e,1);break}}]),u=jt(c,2),l=u[0],h=u[1];if(null===n||["number","boolean","string"].includes(void 0===n?"undefined":dt(n))&&("number"!=typeof(o=n)||o==o))return n;var f=function(t,n){try{return"domain"===t&&n&&"object"==typeof n&&n._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==e&&n===e?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":st(n)?"[SyntheticEvent]":"number"==typeof n&&n!=n?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: ".concat(Nt(n),"]"):"symbol"===(void 0===n?"undefined":dt(n))?"[".concat(String(n),"]"):"bigint"===(void 0===n?"undefined":dt(n))?"[BigInt: ".concat(String(n),"]"):"[object ".concat(function(t){var e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(n),"]")}catch(t){return"**non-serializable** (".concat(t,")")}}(t,n);if(!f.startsWith("[object "))return f;if(n.__sentry_skip_normalization__)return n;var d=s;if("number"==typeof n.__sentry_override_normalization_depth__&&(d=n.__sentry_override_normalization_depth__),0===d)return f.replace("object ","");if(l(n))return"[Circular ~]";var p=n;if(p&&"function"==typeof p.toJSON)try{return Mt("",p.toJSON(),d-1,a,c)}catch(t){}var v=Array.isArray(n)?[]:{},y=0,m=gt(n);for(var g in m)if(Object.prototype.hasOwnProperty.call(m,g)){if(y>=a){v[g]="[MaxProperties ~]";break}var b=m[g];v[g]=Mt(g,b,d-1,a,c),y++}return h(n),v}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(Ct||(Ct={}));var Gt=function(){"use strict";function t(e){W(this,t),t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),t.prototype.__init5.call(this),t.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}return Q(t,[{key:"__init",value:function(){this._state=Ct.PENDING}},{key:"__init2",value:function(){this._handlers=[]}},{key:"then",value:function(e,n){var r=this;return new t((function(t,i){r._handlers.push([!1,function(n){if(e)try{t(e(n))}catch(t){i(t)}else t(n)},function(e){if(n)try{t(n(e))}catch(t){i(t)}else i(e)}]),r._executeHandlers()}))}},{key:"catch",value:function(t){return this.then((function(t){return t}),t)}},{key:"finally",value:function(e){var n=this;return new t((function(t,r){var i,o;return n.then((function(t){o=!1,i=t,e&&e()}),(function(t){o=!0,i=t,e&&e()})).then((function(){o?r(i):t(i)}))}))}},{key:"__init3",value:function(){var t=this;this._resolve=function(e){t._setResult(Ct.RESOLVED,e)}}},{key:"__init4",value:function(){var t=this;this._reject=function(e){t._setResult(Ct.REJECTED,e)}}},{key:"__init5",value:function(){var t=this;this._setResult=function(e,n){t._state===Ct.PENDING&&(ot(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))}}},{key:"__init6",value:function(){var t=this;this._executeHandlers=function(){if(t._state!==Ct.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(t._state===Ct.RESOLVED&&e[1](t._value),t._state===Ct.REJECTED&&e[2](t._value),e[0]=!0)}))}}}}]),t}(),qt=o("7qD1E"),Ht=(ut=o("ej3uA"),o("6Y8Mx"));qt=o("7qD1E"),ut=o("ej3uA"),qt=o("7qD1E");function Jt(t){var e=(0,qt.timestampInSeconds)(),n={sid:St(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return function(t){return Et({sid:"".concat(t.sid),init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?"".concat(t.did):void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)}};return t&&Yt(n,t),n}function Yt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,qt.timestampInSeconds)(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:St()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did="".concat(e.did)),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{var n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function zt(t,e){var n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),Yt(t,n)}var Vt=function(){"use strict";function t(){W(this,t),this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return Q(t,[{key:"addScopeListener",value:function(t){this._scopeListeners.push(t)}},{key:"addEventProcessor",value:function(t){return this._eventProcessors.push(t),this}},{key:"setUser",value:function(t){return this._user=t||{},this._session&&Yt(this._session,{user:t}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"getRequestSession",value:function(){return this._requestSession}},{key:"setRequestSession",value:function(t){return this._requestSession=t,this}},{key:"setTags",value:function(t){return this._tags=a({},this._tags,t),this._notifyScopeListeners(),this}},{key:"setTag",value:function(t,e){return this._tags=c(a({},this._tags),s({},t,e)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function(t){return this._extra=a({},this._extra,t),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(t,e){return this._extra=c(a({},this._extra),s({},t,e)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(t){return this._fingerprint=t,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(t){return this._level=t,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(t){return this._transactionName=t,this._notifyScopeListeners(),this}},{key:"setContext",value:function(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}},{key:"setSpan",value:function(t){return this._span=t,this._notifyScopeListeners(),this}},{key:"getSpan",value:function(){return this._span}},{key:"getTransaction",value:function(){var t=this.getSpan();return t&&t.transaction}},{key:"setSession",value:function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=a({},this._tags,e._tags),this._extra=a({},this._extra,e._extra),this._contexts=a({},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)):rt(e)&&(this._tags=a({},this._tags,e.tags),this._extra=a({},this._extra,e.extra),this._contexts=a({},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)),this}},{key:"clear",value:function(){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}},{key:"addBreadcrumb",value:function(t,e){var n="number"==typeof e?e:100;if(n<=0)return this;var r=a({timestamp:(0,qt.dateTimestampInSeconds)()},t);return this._breadcrumbs=p(this._breadcrumbs).concat([r]).slice(-n),this._notifyScopeListeners(),this}},{key:"getLastBreadcrumb",value:function(){return this._breadcrumbs[this._breadcrumbs.length-1]}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(t){return this._attachments.push(t),this}},{key:"getAttachments",value:function(){return this._attachments}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"applyToEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._extra&&Object.keys(this._extra).length&&(t.extra=a({},this._extra,t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=a({},this._tags,t.tags)),this._user&&Object.keys(this._user).length&&(t.user=a({},this._user,t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=a({},this._contexts,t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=a({trace:this._span.getTraceContext()},t.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags=a({transaction:n},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=p(t.breadcrumbs||[]).concat(p(this._breadcrumbs)),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=a({},t.sdkProcessingMetadata,this._sdkProcessingMetadata),this._notifyEventProcessors(p(Wt()).concat(p(this._eventProcessors)),t,e)}},{key:"setSDKProcessingMetadata",value:function(t){return this._sdkProcessingMetadata=a({},this._sdkProcessingMetadata,t),this}},{key:"_notifyEventProcessors",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=this;return new Gt((function(o,s){var c=t[r];if(null===e||"function"!=typeof c)o(e);else{var u=c(a({},e),n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.id&&null===u&&ct.log('Event processor "'.concat(c.id,'" dropped event')),ot(u)?u.then((function(e){return i._notifyEventProcessors(t,e,n,r+1).then(o)})).then(null,s):i._notifyEventProcessors(t,u,n,r+1).then(o).then(null,s)}}))}},{key:"_notifyScopeListeners",value:function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)}},{key:"_applyFingerprint",value:function(t){var e;t.fingerprint=t.fingerprint?(e=t.fingerprint,Array.isArray(e)?e:[e]):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}],[{key:"clone",value:function(e){var n=new t;return e&&(n._breadcrumbs=p(e._breadcrumbs),n._tags=a({},e._tags),n._extra=a({},e._extra),n._contexts=a({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=p(e._eventProcessors),n._requestSession=e._requestSession,n._attachments=p(e._attachments),n._sdkProcessingMetadata=a({},e._sdkProcessingMetadata)),n}}]),t}();function Wt(){return(0,ut.getGlobalSingleton)("globalEventProcessors",(function(){return[]}))}var $t=4,Qt=function(){"use strict";function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Vt,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$t;W(this,t),this._version=r,this._stack=[{scope:n}],e&&this.bindClient(e)}return Q(t,[{key:"isOlderThan",value:function(t){return this._version<t}},{key:"bindClient",value:function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}},{key:"pushScope",value:function(){var t=Vt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}},{key:"popScope",value:function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}},{key:"withScope",value:function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getStack",value:function(){return this._stack}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"captureException",value:function(t,e){var n=this._lastEventId=e&&e.event_id?e.event_id:St(),r=new Error("Sentry syntheticException");return this._withClient((function(i,o){i.captureException(t,c(a({originalException:t,syntheticException:r},e),{event_id:n}),o)})),n}},{key:"captureMessage",value:function(t,e,n){var r=this._lastEventId=n&&n.event_id?n.event_id:St(),i=new Error(t);return this._withClient((function(o,s){o.captureMessage(t,e,c(a({originalException:t,syntheticException:i},n),{event_id:r}),s)})),r}},{key:"captureEvent",value:function(t,e){var n=e&&e.event_id?e.event_id:St();return t.type||(this._lastEventId=n),this._withClient((function(r,i){r.captureEvent(t,c(a({},e),{event_id:n}),i)})),n}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addBreadcrumb",value:function(t,e){var n=this.getStackTop(),r=n.scope,i=n.client;if(i){var o=i.getOptions&&i.getOptions()||{},s=o.beforeBreadcrumb,c=void 0===s?null:s,u=o.maxBreadcrumbs,l=void 0===u?100:u;if(!(l<=0)){var h=a({timestamp:(0,qt.dateTimestampInSeconds)()},t),f=c?ht((function(){return c(h,e)})):h;null!==f&&(i.emit&&i.emit("beforeAddBreadcrumb",f,e),r.addBreadcrumb(f,l))}}}},{key:"setUser",value:function(t){this.getScope().setUser(t)}},{key:"setTags",value:function(t){this.getScope().setTags(t)}},{key:"setExtras",value:function(t){this.getScope().setExtras(t)}},{key:"setTag",value:function(t,e){this.getScope().setTag(t,e)}},{key:"setExtra",value:function(t,e){this.getScope().setExtra(t,e)}},{key:"setContext",value:function(t,e){this.getScope().setContext(t,e)}},{key:"configureScope",value:function(t){var e=this.getStackTop(),n=e.scope;e.client&&t(n)}},{key:"run",value:function(t){var e=Zt(this);try{t(this)}finally{Zt(e)}}},{key:"getIntegration",value:function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ct.warn("Cannot retrieve integration ".concat(t.id," from the current Hub")),null}}},{key:"startTransaction",value:function(t,e){return this._callExtensionMethod("startTransaction",t,e)}},{key:"traceHeaders",value:function(){return this._callExtensionMethod("traceHeaders")}},{key:"captureSession",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.endSession();this._sendSessionUpdate()}},{key:"endSession",value:function(){var t=this.getStackTop().scope,e=t.getSession();e&&zt(e),this._sendSessionUpdate(),t.setSession()}},{key:"startSession",value:function(t){var e=this.getStackTop(),n=e.scope,r=e.client,i=r&&r.getOptions()||{},o=i.release,s=i.environment,c=void 0===s?"production":s,u=(ut.GLOBAL_OBJ.navigator||{}).userAgent,l=Jt(a({release:o,environment:c,user:n.getUser()},u&&{userAgent:u},t)),h=n.getSession&&n.getSession();return h&&"ok"===h.status&&Yt(h,{status:"exited"}),this.endSession(),n.setSession(l),l}},{key:"shouldSendDefaultPii",value:function(){var t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}},{key:"_sendSessionUpdate",value:function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}}},{key:"_withClient",value:function(t){var e=this.getStackTop(),n=e.scope,r=e.client;r&&t(r,n)}},{key:"_callExtensionMethod",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=Kt().__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ct.warn("Extension method ".concat(t," couldn't be found, doing nothing."))}}]),t}();function Kt(){return ut.GLOBAL_OBJ.__SENTRY__=ut.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},ut.GLOBAL_OBJ}function Zt(t){var e=Kt(),n=ee(e);return ne(e,t),n}function Xt(){var t=Kt();return te(t)&&!ee(t).isOlderThan($t)||ne(t,new Qt),(0,Ht.isNodeEnv)()?function(t){try{var e=Kt().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return ee(t);if(!te(n)||ee(n).isOlderThan($t)){var r=ee(t).getStackTop();ne(n,new Qt(r.client,Vt.clone(r.scope)))}return ee(n)}catch(e){return ee(t)}}(t):ee(t)}function te(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function ee(t){return(0,ut.getGlobalSingleton)("hub",(function(){return new Qt}),t)}function ne(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}function re(t,e){var n=oe(t,e),r={type:e&&e.name,value:ae(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ie(t,e){return{exception:{values:[re(t,e)]}}}function oe(t,e){var n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(se.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}var se=/Minified React error #\d+;/i;function ae(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function ce(t,e,n,r,i){var o;if(X(e,"ErrorEvent")&&e.error)return ie(t,e.error);if(tt(e)||et(e)){var s=e;if("stack"in e)o=ie(t,e);else{var u=s.name||(tt(s)?"DOMError":"DOMException"),l=s.message?"".concat(u,": ").concat(s.message):u;Ot(o=ue(t,l,n,r),l)}return"code"in s&&(o.tags=c(a({},o.tags),{"DOMException.code":"".concat(s.code)})),o}return Z(e)?ie(t,e):rt(e)||it(e)?(o=function(t,e,n,r){var i=Xt().getClient(),o=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:it(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error ".concat(r?"promise rejection":"exception"," captured with keys: ").concat(wt(e))}]},extra:{__serialized__:Ft(e,o)}};if(n){var a=oe(t,n);a.length&&(s.exception.values[0].stacktrace={frames:a})}return s}(t,e,n,i),Tt(o,{synthetic:!0}),o):(Ot(o=ue(t,e,n,r),"".concat(e),void 0),Tt(o,{synthetic:!0}),o)}function ue(t,e,n,r){var i={message:e};if(r&&n){var o=oe(t,n);o.length&&(i.exception={values:[{value:e,stacktrace:{frames:o}}]})}return i}var le="?";function he(t,e,n,r){var i={filename:t,abs_path:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var fe=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?(?:async )?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,de=/\((\S*)(?::(\d+))(?::(\d+))\)/,pe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ve=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ye=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,me=[[30,function(t){var e=fe.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var n=de.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}var r=jt(be(e[1]||le,e[2]),2),i=r[0];return he(r[1],i,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,function(t){var e=pe.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){var n=ve.exec(e[3]);n&&(e[1]=e[1]||"eval",e[3]=n[1],e[4]=n[2],e[5]="")}var r,i=e[3],o=e[1]||le;return o=(r=jt(be(o,i),2))[0],he(i=r[1],o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,function(t){var e=ye.exec(t);return e?he(e[2],e[1]||le,+e[3],e[4]?+e[4]:void 0):void 0}]],ge=Bt.apply(void 0,p(me)),be=function(t,e){var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:le,n?"safari-extension:".concat(e):"safari-web-extension:".concat(e)]:[t,e]},_e=function(t,e){return B("https://tracking.chilipiper.com"+t,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"post",body:JSON.stringify(e)})},we={sentry:new(function(){"use strict";function t(){W(this,t),s(this,"dsn",""),s(this,"version",""),s(this,"env","")}return Q(t,[{key:"init",value:function(){this.dsn="https://a12c625a4ae24dfdb7da7b5f52135e5c@o94797.ingest.sentry.io/5971989",this.version=void 0,this.env="production"}},{key:"captureException",value:function(t){_e("/sentry/capture",{dsn:this.dsn,version:this.version,env:this.env,error:ce(ge,t)}).catch((function(e){console.error("could not sent error report to tracking service",e,{error:t})}))}}]),t}())},Ee=function(t){if(!("concierge-demo"===document.body.getAttribute("data-page-id")))return t;var e,n,r=new URL(t),i=r.host.substring(0,r.host.indexOf(".")),o=(e=window.location.hash.split("?")[1]||window.location.search,n={},e.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),(function(t,e,r,i){return n[e]=i})),n),s="".concat(window.location.origin).concat(r.pathname).concat(r.search,"&domain=").concat(i);return o.withPhone&&(s+="&withPhone=true"),o.withVideo&&(s+="&withVideo=true"),s},ke=/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)/,Se=function(t){ke.test(t)?window.location.href=t:console.error("Invalid redirect URL")},xe=function(){"use strict";function t(e,n,r,i){var o=this;W(this,t),s(this,"redirect",{}),s(this,"globalEvents",[]),s(this,"onMessage",(function(t){"CP_BACK_PRESSED"===t.data.message&&("CLOSE_IFRAME"===t.data.action?o.close():"REDIRECT"===t.data.action&&Se(t.data.url))})),s(this,"setIframeSize",(function(t){var e=t.width,n=t.height;if(o.layout){var r=o.layout.querySelector(".chilipiper-popup-window"),i=window.innerWidth-20,s=window.innerHeight-20;r.style.borderRadius="8px",r.style.background="transparent",r.style.width="".concat(Math.min(Number(e),i),"px");r.style.height="".concat(Math.min(Number(n)+41,s),"px")}})),s(this,"removeGlobalListeners",(function(){o.globalEvents.forEach((function(t){return window.removeEventListener(t.event,t.callback)})),o.globalEvents=[]})),s(this,"addAndRegisterListener",(function(t,e){o.globalEvents.push({event:t,callback:e}),window.addEventListener(t,e)})),this.form=e,this.options=e.options,this.data=n,this.domElement=r,this.crmEvent=i,this.redirect={},window.addEventListener?this.addAndRegisterListener("message",this.onMessage):window.attachEvent&&window.attachEvent("onmessage",this.onMessage,!1),this.buildLayout()}return Q(t,[{key:"handleError",value:function(t){we.sentry.captureException(t),this.close(),this.form.onError(t)}},{key:"show",value:function(){var t=this,e="API request timed out",n=new Promise((function(t){setTimeout(t,3e4,e)})),r={form:this.data,options:this.form.formOptions,event:this.crmEvent};Promise.race([V(this.options.domain,"/marketing/".concat(this.options.domain),r),n]).then((function(n){n===e?t.handleError(e):t.showPopUp(n)})).catch((function(e){return t.handleError(e)}))}},{key:"close",value:function(){this.layout&&(this.getParentNode().removeChild(this.layout),this.layout=void 0)}},{key:"isDomElementSupplied",value:function(){return"string"==typeof this.domElement?!!document.querySelector(this.domElement):!!this.domElement}},{key:"getParentNode",value:function(){if(this.domElement){if("string"==typeof this.domElement){var t=document.querySelector(this.domElement);return t||document.body}return this.domElement}return document.body}},{key:"isLightning",value:function(t){return t.includes("lightning_")}},{key:"buildLayout",value:function(){if(!this.layout){this.loadCss();var t=document.createElement("div");t.className="chilipiper-popup ".concat(this.isDomElementSupplied()?"in-custom-element":""),t.innerHTML="\n <div class='chilipiper-close'> </div>\n <div class='chilipiper-popup-loading'> </div>\n ",this.getParentNode().appendChild(t),this.layout=t}}},{key:"resize",value:function(){if(this.layout){var t=this.layout.querySelector(".chilipiper-popup-window");t.style.height="".concat(window.innerHeight-20,"px"),t.style.width="".concat(window.innerWidth-20,"px")}}},{key:"onlineCalendarLink",value:function(t){var e=encodeURI(this.options.title||""),n=encodeURI(this.options.titleStyle||"").replace(/#/,""),r=t.realtimeUrl||t.url;return Ee("".concat(r,"&title=").concat(e,"&titleStyle=").concat(n))}},{key:"showAsRedirect",value:function(t){var e,n,r;this.close(),this.options.mobileRedirectLink?e=this.options.mobileRedirectLink:this.options.dynamicRedirectLink?e=this.options.dynamicRedirectLink:t.redirect&&t.redirect.enabled&&(t.redirect.link&&t.redirect.link.length>0&&(e=t.redirect.link,r=t.redirect.timeout),t.redirect.closeLink&&t.redirect.closeLink.length>0&&(n=t.redirect.closeLink)),n||(n=e);var i=e?"&processRedirect=".concat(encodeURIComponent(e)):"",o=n?"&closeRedirect=".concat(encodeURIComponent(n)):"",s=r?"&redirectTimeout=".concat(encodeURIComponent(r)):"";window.location.href="".concat(this.onlineCalendarLink(t)).concat(i).concat(o).concat(s)}},{key:"showPopUp",value:function(t){var e=this,n=!1,r=function(){var t,n=null===(t=e.layout)||void 0===t?void 0:t.querySelector("iframe");return null==n?void 0:n.focus()},i=function(){var t,i;e.removeGlobalListeners(),e.close(),e.form.onClose(n),null===(i=null===(t=e.layout)||void 0===t?void 0:t.querySelector("iframe"))||void 0===i||i.removeEventListener("load",r)};if(!t.error&&this.options.onRouted&&this.options.onRouted({router:t,data:this.data}),t.error)console.log("chilipiper >> error",t),this.handleError(t.error);else if(t.url||t.realtimeUrl){var o,s;this.redirect=t.redirect,this.loadCss();var a=this.layout,c=this.onlineCalendarLink(t);if(this.options.injectRootCss&&(c="".concat(c,"/&domain=").concat(this.options.domain)),c+="&fromSnippet=true",a){var u=document.createElement("script");u.innerHTML="\n document.getElementById('chilipiper-frame').onload = function () {\n var image = document.getElementById('loadImg')\n if (image) {\n image.style.display = 'none'\n }\n document.getElementById('chilipiper-frame').contentWindow.focus()\n }\n ",a.innerHTML=this.isLightning(c)?"\n <div class='chilipiper-popup-window' style='max-width: 560px; max-height: 840px'>\n <iframe class='chilipiper-frame' src='".concat(c,"' frameBorder='0' />\n </div>\n "):'\n <div class=\'chilipiper-popup-window\' style=\'max-width: 560px; max-height: 840px\'>\n <div id=\'loadImg\' class=\'routing-loader\'>\n <div data-test-id="DotsLoader"\n class="sc-bdvvtL sc-gsDKAQ sc-dkPtRN sc-nVkyK bgufkB bbwWsg cgynxk jJfaIE">\n <div data-chili-css="loader-dot" class="dots-loader dot1"></div>\n <div data-chili-css="loader-dot" class="dots-loader dot2"></div>\n <div data-chili-css="loader-dot" class="dots-loader dot3"></div>\n </div>\n </div>\n <iframe id=\'chilipiper-frame\' class=\'chilipiper-frame\' src=\''.concat(c,"' frameBorder='0' aria-description='Page with slots'/>\n </div>\n "),document.body.appendChild(u)}this.resize(),this.options.closeOnOutside&&(this.addAndRegisterListener("keydown",(function(t){"Escape"!==t.code&&"Escape"!==t.key&&27!==t.keyCode||i()})),this.addAndRegisterListener("click",(function(){return i()}))),this.addAndRegisterListener("resize",(function(){return e.resize()})),this.addAndRegisterListener("message",(function(t){"booked"===t.data.action?n=!0:"esc"===t.data.action&&e.options.closeOnOutside||"close"===t.data.action?i():"phoneClose"===t.data.action?e.close():"REDIRECT"===t.data.action?Se(t.data.url):"booking-confirmed"===t.data.action?e.form.onSuccess(t.data.args):"SetIframeSize"===t.data.action&&e.setIframeSize(t.data.args)})),null===(s=null===(o=this.layout)||void 0===o?void 0:o.querySelector("iframe"))||void 0===s||s.addEventListener("load",r)}else{if([8003,8007].includes(t.code)&&(t.redirect||{}).disqualifiedLink){var l=t.redirect.disqualifiedLink;l.startsWith("http")||(l="http://".concat(l)),window.location.href=l}else this.handleError(t.message)}}},{key:"loadCss",value:function(){if(!document.getElementById("chilipiper-css")){var t=document.getElementsByTagName("head")[0],e=document.createElement("style");e.textContent='\n.chilipiper-popup {\n background: rgba(0, 0, 0, 0.8);\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: fixed;\n z-index: 999999;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n .chilipiper-popup.in-custom-element {\n position: absolute;\n}\n .chilipiper-popup .chilipiper-close {\n top: 10px;\n right: 10px;\n position: absolute;\n width: 15px;\n height: 15px;\n cursor: pointer;\n overflow: hidden;\n text-indent: 1000px;\n}\n .chilipiper-popup .chilipiper-popup-window {\n width: 441px;\n height: 750px;\n border-radius: 8px;\n background: #fff;\n}\n .chilipiper-popup .chilipiper-popup-window .routing-loader {\n position: absolute;\n width: inherit;\n max-width: inherit;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: -50px;\n}\n .chilipiper-popup .chilipiper-popup-window .routing-loader .routing-loader-body {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n .chilipiper-popup .chilipiper-popup-window .routing-loader .routing-loader-body span {\n margin-bottom: 40px;\n font-weight: 500;\n font-size: 18px;\n color: #808284;\n}\n .chilipiper-popup .chilipiper-frame {\n overflow: hidden;\n border-radius: 8px;\n height: 100%;\n width: 1px;\n min-width: 100%;\n}\n .chilipiper-popup .fabe-first-loading-label {\n margin-top: 30px;\n margin-left: 30px;\n display: block;\n}\n\n.chilipiper-popup .chilipiper-popup-loading {\n width: 50px;\n height: 50px;\n background-image: url("https://js.chilipiper.com/images/loading.gif");\n background-size: 100%;\n}\n\n@keyframes bounce {\n 0%,\n 80%,\n 100% {\n transform: scale(0);\n }\n 40% {\n transform: scale(1);\n }\n}\n\n[data-chili-css="loader-dot"] {\n width: 1rem;\n height: 1rem;\n background: rgba(38,52,64,0.32);\n}\n\n.dot1,\n.dot2,\n.dot3 {\n border-radius: 100%;\n display: inline-block;\n animation: bounce 1.4s infinite ease-in-out both;\n}\n\n.dot1 {\n animation-delay: -0.32s;\n}\n\n.dot2 {\n animation-delay: -0.16s;\n}\n',t.appendChild(e)}}}]),t}(),Oe=function(){"use strict";function t(e){var n=this;W(this,t),s(this,"onError",(function(t){we.sentry.captureException(t)})),s(this,"redirect",{}),this.options=e.options;V(this.options.domain,"/marketing/inbound-router/redirect/".concat(this.options.domain,"/").concat(this.options.router)).then((function(t){t.error&&n.onError(t.error),n.redirect=t.redirect})).catch((function(t){e.onError(t)}))}return Q(t,[{key:"proceedRedirect",value:function(){var t=this;if(this.redirect&&this.redirect.enabled||this.options.dynamicRedirectLink){var e=(this.redirect||{}).timeout||5;setTimeout((function(){var e=t.options.dynamicRedirectLink?t.options.dynamicRedirectLink:t.redirect.link;t.navigate(e)}),1e3*e)}}},{key:"navigate",value:function(t){t&&t.length>0&&(t.startsWith("http")||(t="http://".concat(t)),window.location.href=t)}},{key:"proceedCloseRedirect",value:function(){if(this.redirect){var t=this.redirect.closeStrategy;if("Landing"===t){var e=this.options.dynamicRedirectLink?this.options.dynamicRedirectLink:this.redirect.link;this.navigate(e)}else if("Uri"===t){var n=this.options.dynamicRedirectLink?this.options.dynamicRedirectLink:this.redirect.closeLink;this.navigate(n)}}}}]),t}(),Te=function(){"use strict";function t(e){W(this,t);var n=function(){return!0};this.options=Object.freeze(Object.assign(e,{onError:e.onError||n,onSuccess:e.onSuccess||n,onClose:e.onClose||n})),this.redirect=new Oe(this)}return Q(t,[{key:"form",get:function(){return this.options.form}},{key:"formId",get:function(){return this.options.formId}},{key:"formOptions",get:function(){return{formId:this.options.formId,debug:!0===this.options.debug,map:void 0===this.options.map||this.options.map,domain:this.options.domain,router:this.options.router,locale:this.options.locale,ownerId:this.options.ownerId,accountId:this.options.accountId,type:this.options.type,skipOwnershipLogic:this.options.skipOwnershipLogic,webHook:this.options.webHook,disableRelation:this.options.disableRelation,skipFormFallbackUponAccountDQ:this.options.skipFormFallbackUponAccountDQ}}},{key:"showCalendar",value:function(t,e,n){new xe(t,e,n,this.options.event).show()}},{key:"onError",value:function(t){var e="An error has occured";t&&(e=t.responseText||t.response||t),console.error("chilipiper >> ",e);var n={message:e,error:t};this.options.onError&&(we.sentry.captureException(t),this.options.onError(n),this.redirect.proceedCloseRedirect())}},{key:"onSuccess",value:function(t){this.options.onSuccess&&(this.options.onSuccess(t),this.redirect.proceedRedirect())}},{key:"onClose",value:function(t){this.options.onClose&&!t&&(this.options.onClose(),this.redirect.proceedCloseRedirect())}},{key:"reduceForm",value:function(t){return t?Array.from(t.elements).filter((function(t){return("radio"!==t.type||"radio"===t.type&&!0===t.checked)&&"password"!==t.type})).filter((function(t){return t.name&&"password"!==t.name})).reduce((function(t,e){var n,r=(null===(n=e.name)||void 0===n?void 0:n.includes("."))?e.name.split(".").join(""):e.name;return"checkbox"===e.type?e.checked&&(t[r]=e.value):t[r]=e.value,t}),{}):{}}}]),t}();function Le(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=document.querySelectorAll(t);return r.length?(console.debug("form found: ".concat(t)),e(r)):n?e(r):void setTimeout((function(){Le(t,e)}),500)}function Ae(t){return t.query?t.query:t.formId?"#".concat(t.formId):"form"}function Re(t){return Re=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Re(t)}function je(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Re(t)););return t}function Pe(t,e,n){return Pe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=je(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n||t):i.value}},Pe(t,e,n||t)}function De(t,e){return De=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},De(t,e)}function Be(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&De(t,e)}function Ce(){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(t){return!1}}function Ie(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ne(t,e){return!e||"object"!==dt(e)&&"function"!=typeof e?Ie(t):e}function Ue(t){var e=Ce();return function(){var n,r=Re(t);if(e){var i=Re(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ne(this,n)}}var Fe=function(t){"use strict";Be(n,t);var e=Ue(n);function n(t){var r;return W(this,n),(r=e.call(this,t)).addSubmitHandler(),r}return Q(n,[{key:"addSubmitHandler",value:function(){var t,e=this;null===(t=this.form)||void 0===t||t.addEventListener("submit",(function(t){return e.handleSubmit(t)}))}},{key:"handleSubmit",value:function(t){t.preventDefault();var e=this.postUrl();e&&this.sendData(e,this.formData),this.showCalendar(this,this.formData)}},{key:"formData",get:function(){return this.reduceForm(this.form)}},{key:"sendData",value:function(t,e){var n=new FormData;for(var r in e)n.append(r,e[r]);B(t,{method:"POST",body:n,credentials:"include"})}},{key:"postUrl",value:function(){var t=document.getElementsByTagName("form")[0];if(void 0!==t&&t.action)return t.action}}]),n}(Te),Me=function(t){"use strict";Be(n,t);var e=Ue(n);function n(){return W(this,n),e.apply(this,arguments)}return Q(n,[{key:"addSubmitHandler",value:function(){this.instrumentMarketoForm(this.formId)}},{key:"instrumentMarketoForm",value:function(t){var e,n,r=this,i=(null===(e=window.MktoForms2)||void 0===e?void 0:e.getForm(t))||(null===(n=window.MktoForms2)||void 0===n?void 0:n.allForms()[0]);i&&i.getId()?(this.marketoForm=i,this.marketoButton=this.marketoForm.getFormElem().find(".mktoButton"),this.marketoButtonTitle=this.marketoButton.html(),i.onSuccess((function(t){return r.showCalendar(r,t),!1}))):setTimeout((function(){return r.instrumentMarketoForm(t)}),500)}},{key:"formOptions",get:function(){return{formId:this.options.formId,debug:!0===this.options.debug,domain:this.options.domain,router:this.options.router,locale:this.options.locale,accountId:this.options.accountId,type:this.options.type,ownerId:this.options.ownerId,skipOwnershipLogic:this.options.skipOwnershipLogic,webHook:this.options.webHook,disableRelation:this.options.disableRelation,skipFormFallbackUponAccountDQ:this.options.skipFormFallbackUponAccountDQ,map:Boolean(this.options.map)}}},{key:"onClose",value:function(t){Pe(Re(n.prototype),"onClose",this).call(this,t),this.marketoForm.submittable(!0),this.marketoButton.removeAttr("disabled").html(this.marketoButtonTitle)}}]),n}(Fe),Ge=function(t){"use strict";Be(n,t);var e=Ue(n);function n(t){var r;return W(this,n),(r=e.call(this,t)).addSubmitHandler(),r}return Q(n,[{key:"addSubmitHandler",value:function(){var t,e=this;null===(t=this.form)||void 0===t||t.addEventListener("submit",(function(){return e.handleSubmit()}))}},{key:"handleSubmit",value:function(){var t=this.formData;t.sender="form",window.localStorage.setItem("dataPardot",JSON.stringify(t))}},{key:"formData",get:function(){return this.reduceForm(this.form)}}]),n}(Te),qe=function(t){"use strict";Be(n,t);var e=Ue(n);function n(t){var r;return W(this,n),(r=e.call(this,t)).addSubmitHandler(),r}return Q(n,[{key:"addSubmitHandler",value:function(){var t,e=this;null===(t=this.form)||void 0===t||t.addEventListener("submit",(function(t){e.storeData(t),e.handleSubmit(t),e.postUrl()}))}},{key:"storeData",value:function(t){this.hubspotForm=t.target;var e=this.formData;window.localStorage.setItem("hubspotData",JSON.stringify(e))}},{key:"handleSubmit",value:function(t){t.target.id.includes("hsForm")&&(this.hubspotForm=t.target,this.hubspotForm.checkValidity()&&document.getElementsByClassName("hs_email")[0].childElementCount<4&&this.showCalendar(this,this.formData))}},{key:"formData",get:function(){return this.reduceForm(this.hubspotForm)}},{key:"sendData",value:function(t,e,n){var r=new FormData;for(var i in e)r.append(i,e[i]);r.set("meeting_booked_cp",String(n)),B(t,{method:"POST",body:r,mode:"no-cors",credentials:"include"})}},{key:"postUrl",value:function(){var t=document.getElementsByTagName("form")[0];void 0!==t&&t.action&&(this.actionUrl=t.action)}},{key:"onSuccess",value:function(){var t=this.formData,e=this.actionUrl;t.meeting_booked_cp&&e&&this.sendData(e,t,!0),this.options.onSuccess&&this.options.onSuccess(t)&&this.redirect.proceedRedirect()}},{key:"onClose",value:function(t){this.options.onClose&&this.options.onClose()&&!t&&this.redirect.proceedCloseRedirect()}}]),n}(Te);console.log("Concierge version","1.1.59"),we.sentry.init();var He=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domain:"",router:""},e=arguments.length>1?arguments[1]:void 0;V(t.domain,"/marketing/inbound-router/enabled/".concat(t.domain,"/").concat(t.router)).then((function(n){if(n.active)try{e(t)}catch(t){we.sentry.captureException(t)}else console.log("chilipiper >> router is not active")})).catch((function(t){we.sentry.captureException(t),console.log("chilipiper >> error on retriving router status",t)}))},Je=function(t,e){var n=Array.from(e).map((function(e){return function(t,e){var n,r=null!==(n=t.id)&&void 0!==n?n:"",i="undefined"!=typeof hbspt&&r.includes("hsForm"),o=r.includes("mktoForm")&&void 0!==window.MktoForms2,s="pardot-form"===r||r.includes("gform");return i?new qe(c(a({},e),{form:t})):o?new Me(a({form:t,formId:r},e)):s?new Ge(a({form:t},e)):new Fe(a({form:t},e))}(e,t)}));return n},Ye=20,ze=function(t,e){e.length>0?Je(t,e):window.location.href.includes("hsFormGuid")&&window.location.href.includes("submissionGuid")?function(t){var e=JSON.parse(window.localStorage.getItem("hubspotData")||""),n=new qe(a({},t));n.showCalendar(n,e,t.domElement)}(t):Ye>0?(Ye-=1,setTimeout((function(){ze(t,e)}),1e3)):console.log("chilipiper >> could not integrate [form absent]")},Ve=function(t,e){return function(n){var r=new Te(a({form:t},n));r.showCalendar(r,e,n.domElement)}},We=function(t,e){try{t.debug&&console.log("chilipiper >> ",t);var n=t.form||(e?e[0]:void 0);if(t.lead){t.map=t.map||!1;var r=new Te(a({form:n},t));r.showCalendar(r,t.lead,t.domElement)}else{var i;t.map=!0;var o=Array.from(null!==(i=null==n?void 0:n.elements)&&void 0!==i?i:[]).reduce((function(t,e){return t[e.name]=e.value,t}),{});t.shouldCheck?He(t,Ve(n,o)):Ve(n,o)(t)}}catch(t){we.sentry.captureException(t)}},$e=function(t,e){var n=JSON.parse(window.localStorage.getItem("dataPardot")||"{}"),r=t.form||(e?e[0]:void 0),i=new Te(a({form:r},t));i.showCalendar(i,n,t.domElement)},Qe=function(){for(var t=window.location.search.substring(1).split("&"),e={},n=0;n<t.length;n++){var r=t[n].split("=");e[r[0]]=decodeURIComponent(r[1])}return e},Ke=function(t){return Qe()[t]||!1},Ze=function(t){var e=Qe();return Object.keys(e).some((function(e){return e.toLowerCase().includes(t.toLowerCase())}))},Xe=function(t){(t.checkInclusive?Ze:Ke)(t.queryVariable||"email")&&We(c(a({},t),{map:void 0===t.map||t.map,lead:a({},t.lead,Qe())}))},tn=function(t){return function(e){return Le(Ae(e),(function(n){return t(c(a({},e),{shouldCheck:!0}),n)}),!!e.lead||!!e.form)}},en={getQuery:function(t,e){return He(a({domain:t,router:e},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),Xe)},bookMeeting:function(t,e){return He(a({domain:t,router:e},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),tn(ze))},scheduling:function(t,e){return He(a({domain:t,router:e},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),tn(ze))},showCalendar:function(t,e){return He(a({domain:t,router:e},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),$e)},submit:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return tn(We)(a({domain:t,router:e},n))}};window.ChiliPiper&&Object.keys(window.ChiliPiper).forEach((function(t){var e;window.ChiliPiper[t].q&&window.ChiliPiper[t].q.length&&window.ChiliPiper[t].q.forEach((function(n){return(e=en)[t].apply(e,p(n))}))})),e.ChiliPiper=en}();
//# sourceMappingURL=marketing.js.map