diff --git a/build/cjs/index.js b/build/cjs/index.js index df70cee7..2e262bc9 100644 --- a/build/cjs/index.js +++ b/build/cjs/index.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Gleap=t():e.Gleap=t()}(this,(()=>(()=>{"use strict";var e={561:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["id","class","length"],n=e.attributes;return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t-1||e.push("["+n.nodeName+'="'+n.value+'"]'),e}),[])}},770:(e,t)=>{function n(e){if(!e.hasAttribute("class"))return[];try{return Array.prototype.slice.call(e.classList).filter((function(e){return/^[a-z_-][a-z\d_-]*$/i.test(e)?e:null}))}catch(n){var t=e.getAttribute("class");return(t=t.trim().replace(/\s+/g," ")).split(" ")}}Object.defineProperty(t,"__esModule",{value:!0}),t.getClasses=n,t.getClassSelectors=function(e){return n(e).filter(Boolean).map((function(e){return"."+e}))}},584:(e,t)=>{function n(e,t,o,r,i,a,s){if(a!==s)for(var c=r;c<=i&&i-c+1>=s-a;++c)o[a]=t[c],n(e,t,o,c+1,i,a+1,s);else e.push(o.slice(0,a).join(""))}Object.defineProperty(t,"__esModule",{value:!0}),t.getCombinations=function(e,t){for(var o=[],r=e.length,i=[],a=1;a<=t;++a)n(o,e,i,0,r-1,0,a);return o}},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getID=function(e){var t=e.getAttribute("id");if(null!==t&&""!==t)return t.match(/(?:^\d|:)/)?'[id="'+t+'"]':"#"+t;return null}},64:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getNthChild=function(e){var t=0,n=void 0,r=void 0,i=e.parentNode;if(Boolean(i)){var a=i.childNodes,s=a.length;for(n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.getParents=function(e){var t=[],n=e;for(;(0,o.isElement)(n);)t.push(n),n=n.parentNode;return t};var o=n(440)},970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTag=function(e){return e.tagName.toLowerCase().replace(/:/g,"\\:")}},924:(e,t,n)=>{t.A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selectorTypes,o=void 0===n?["ID","Class","Tag","NthChild"]:n,r=t.attributesToIgnore,i=void 0===r?["id","class","length"]:r,a=t.excludeRegex,s=void 0===a?null:a,c=[],d=(0,u.getParents)(e),p=!0,f=!1,v=void 0;try{for(var g,m=d[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=h(g.value,o,i,s);Boolean(b)&&c.push(b)}}catch(T){f=!0,v=T}finally{try{!p&&m.return&&m.return()}finally{if(f)throw v}}var y=[],w=!0,k=!1,x=void 0;try{for(var S,C=c[Symbol.iterator]();!(w=(S=C.next()).done);w=!0){var I=S.value;y.unshift(I);var L=y.join(" > ");if((0,l.isUnique)(e,L))return L}}catch(T){k=!0,x=T}finally{try{!w&&C.return&&C.return()}finally{if(k)throw x}}return null};var o=n(169),r=n(770),i=n(584),a=n(561),s=n(64),c=n(970),l=n(213),u=n(175);function d(e,t){var n=e.parentNode.querySelectorAll(t);return 1===n.length&&n[0]===e}function p(e,t){return t.find(d.bind(null,e))}function f(e,t,n){var o=(0,i.getCombinations)(t,3),r=p(e,o);return Boolean(r)||Boolean(n)&&(r=p(e,o=o.map((function(e){return n+e}))),Boolean(r))?r:null}function h(e,t,n,i){var l=void 0,u=function(e,t,n){var i={Tag:c.getTag,NthChild:s.getNthChild,Attributes:function(e){return(0,a.getAttributes)(e,n)},Class:r.getClassSelectors,ID:o.getID};return t.reduce((function(t,n){return t[n]=i[n](e),t}),{})}(e,t,n);i&&i instanceof RegExp&&(u.ID=i.test(u.ID)?null:u.ID,u.Class=u.Class.filter((function(e){return!i.test(e)})));var p=!0,h=!1,v=void 0;try{for(var g,m=t[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=g.value,y=u.ID,w=u.Tag,k=u.Class,x=u.Attributes,S=u.NthChild;switch(b){case"ID":if(Boolean(y)&&d(e,y))return y;break;case"Tag":if(Boolean(w)&&d(e,w))return w;break;case"Class":if(Boolean(k)&&k.length&&(l=f(e,k,w)))return l;break;case"Attributes":if(Boolean(x)&&x.length&&(l=f(e,x,w)))return l;break;case"NthChild":if(Boolean(S))return S}}}catch(C){h=!0,v=C}finally{try{!p&&m.return&&m.return()}finally{if(h)throw v}}return"*"}},440:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isElement=function(e){var t=void 0;t="object"===("undefined"==typeof HTMLElement?"undefined":n(HTMLElement))?e instanceof HTMLElement:!!e&&"object"===(void 0===e?"undefined":n(e))&&1===e.nodeType&&"string"==typeof e.nodeName;return t}},213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isUnique=function(e,t){if(!Boolean(t))return!1;var n=e.ownerDocument.querySelectorAll(t);return 1===n.length&&n[0]===e}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};return(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var n=0;nxi});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"feedbackButton",null),r(this,"injectedFeedbackButton",!1),r(this,"buttonHidden",null),r(this,"lastButtonIcon",null)}var n,o,i;return n=e,i=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(o=[{key:"toggleFeedbackButton",value:function(t){this.buttonHidden=!t,e.getInstance().updateFeedbackButtonState(),Ao.getInstance().updateContainerStyle()}},{key:"feedbackButtonPressed",value:function(){var e=Gt.getInstance();e.isOpened()?e.hideWidget():(e.setAppMode("widget"),e.showWidget())}},{key:"injectFeedbackButton",value:function(){var e=this;if(!this.injectedFeedbackButton){this.injectedFeedbackButton=!0;var t=document.createElement("div");t.addEventListener("click",(function(){e.feedbackButtonPressed()})),document.body.appendChild(t),this.feedbackButton=t,this.updateFeedbackButtonState()}}},{key:"updateNotificationBadge",value:function(e){var t=document.querySelector(".bb-notification-bubble");if(t){var n="bb-notification-bubble--hidden";e>0?(t.classList.remove(n),t.innerText=e):t.classList.add(n)}}},{key:"refresh",value:function(){document.querySelector(".bb-feedback-button")?(this.updateFeedbackButtonText(),this.updateFeedbackButtonState()):(this.injectedFeedbackButton=!1,this.feedbackButton=null,this.buttonHidden=null,this.lastButtonIcon=null,this.injectFeedbackButton())}},{key:"updateFeedbackButtonText",value:function(){var t=ut.getInstance().getFlowConfig();if(t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT){var n=document.querySelector(".bb-feedback-button-classic");n&&(n.innerText=t.widgetButtonText)}}},{key:"updateFeedbackButtonState",value:function(){if(null!==this.feedbackButton){var t=ut.getInstance().getFlowConfig(),n="";n=t.buttonLogo?''):p("button","#fff"),this.feedbackButton.className="bb-feedback-button gleap-font gl-block",this.feedbackButton.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT?(this.feedbackButton.classList.add("bb-feedback-button--classic-button-style"),this.feedbackButton.innerHTML='
').concat(t.widgetButtonText,"
")):n!==this.lastButtonIcon&&(this.feedbackButton.innerHTML='
'.concat(n).concat(p("arrowdown","#fff"),'
')),this.lastButtonIcon=n;var o=!1;null===e.getInstance().buttonHidden?t.feedbackButtonPosition===e.FEEDBACK_BUTTON_NONE&&(o=!0):e.getInstance().buttonHidden&&(o=!0),o&&this.feedbackButton.classList.add("bb-feedback-button--disabled"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_BOTTOM_LEFT&&this.feedbackButton.classList.add("bb-feedback-button--bottomleft"),Gt.getInstance().isOpened()&&this.feedbackButton.classList.add("bb-feedback-button--open");var r=Gt.getInstance().appMode;"survey"!==r&&"survey_full"!==r&&"survey_web"!==r||this.feedbackButton.classList.add("bb-feedback-button--survey"),!0!==t.hideForGuests||$e.getInstance().isUser()||this.feedbackButton.classList.add("bb-feedback-button--hidden")}}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=160?"#000000":"#ffffff"},p=function(e,t){return"button"===e?'':"drag"===e?'\x3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--\x3e':"unmute"===e?'':"mute"===e?'':"replay"===e?'\n \n ':"dismiss"===e?'':"blur"===e?'\n \n':"pen"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n':"rect"===e?'\n \n \n \n \n \n \n \n \n \n \n':"pointer"===e?'\n \n ':"clip"===e?'\n \n \n \n \n \n':"mic"===e?'\n \n \n \n \n ':"camera"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n':"recorderon"===e?'\n \n \n \n \n \n \n \n \n \n \n \n':"recorderoff"===e?'\n \n \n \n \n \n \n \n \n ':"arrowdown"===e?'\n \n '):"arrowleft"===e?'\n \n '):"close"===e?'\n \n '):"undo"===e?'\n \n \n \n \n \n \n \n \n \n ':"circle-dot"===e?''):"circle-question"===e?''):"circle-info"===e?''):"circle-exclamation"===e?''):"circle-up"===e?''):"circle-right"===e?''):""};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,t){for(var n=0;n0&&(e=e.concat(this.externalRequests)),this.filters&&this.filters.length>0)for(var t=0;t-1)&&!e.find((function(e){return e.url===s.name}))&&e.push({type:"RESOURCE",date:new Date(this.startTimestamp+s.startTime),url:s.name,duration:Math.round(s.duration),initiatorType:s.initiatorType})}}}catch(u){}var c=this.blacklist.concat(this.defaultBlacklist);if(c&&c.length>0)try{e=e.filter((function(e){for(var t=0;t70&&(e=70),this.maxRequests=e}},{key:"setStopped",value:function(e){this.stopped=e}},{key:"setFilters",value:function(e){this.filters=this.filters.concat(e||[])}},{key:"setBlacklist",value:function(e){this.blacklist=this.blacklist.concat(e||[])}},{key:"cleanRequests",value:function(){var e=Object.keys(this.requests);if(e.length>this.maxRequests)for(var t=e.slice(0,e.length-this.maxRequests),n=0;n.15?"":e}},{key:"cleanupPayload",value:function(e){if(null==e)return"{}";try{if(void 0!==("undefined"==typeof TextDecoder?"undefined":f(TextDecoder))&&ArrayBuffer.isView(e))return(new TextDecoder).decode(e)}catch(t){}return e}},{key:"preparePayload",value:function(e){var t=this.cleanupPayload(e);return this.cleanupContentSize(t)}},{key:"start",value:function(){var e=this;if(!this.initialized){this.initialized=!0;var t=this;this.interceptNetworkRequests({onFetch:function(n,o){if(!e.stopped&&o&&e.requests){if(n.length>0&&void 0!==n[0]&&void 0!==n[0].url)e.requests[o]={url:n[0].url,date:new Date,request:{payload:"",headers:void 0!==n[0].headers?Object.fromEntries(n[0].headers.entries()):{}},type:void 0!==n[0].method?n[0].method:""};else if(n.length>=2&&n[1]){var r=n[1]&&n[1].method?n[1].method:"GET";e.requests[o]={request:{payload:t.preparePayload(n[1].body),headers:n[1].headers},type:r,url:n[0],date:new Date}}else e.requests[o]={url:n[0],date:new Date};e.cleanRequests()}},onFetchLoad:function(n,o){if(!e.stopped&&o&&e.requests&&e.requests[o]){try{e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:"",responseText:""},e.calcRequestTime(o)}catch(i){}try{var r="";n.headers&&void 0!==n.headers.get&&(r=n.headers.get("content-type")),e.isContentTypeSupported(r)?n.text().then((function(r){e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:t.cleanupContentSize(r)}),e.calcRequestTime(o),e.cleanRequests()})).catch((function(t){e.cleanRequests()})):(e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:""}),e.calcRequestTime(o),e.cleanRequests())}catch(i){}}},onFetchFailed:function(t,n){!e.stopped&&n&&e.requests&&e.requests[n]&&(e.requests[n].success=!1,e.calcRequestTime(n),e.cleanRequests())},onOpen:function(t,n){e.stopped||(t&&t.bbRequestId&&n.length>=2&&e.requests&&(e.requests[t.bbRequestId]={type:n[0],url:n[1],date:new Date}),e.cleanRequests())},onSend:function(t,n){e.stopped||(t&&t.bbRequestId&&e.requests&&e.requests[t.bbRequestId]&&(e.requests[t.bbRequestId].request={payload:e.preparePayload(n.length>0?n[0]:"{}"),headers:t.requestHeaders}),e.cleanRequests())},onError:function(t,n){!e.stopped&&e.requests&&t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests[t.currentTarget.bbRequestId]&&(e.requests[t.currentTarget.bbRequestId].success=!1,e.calcRequestTime(t.bbRequestId)),e.cleanRequests()},onLoad:function(t,n){if(!e.stopped){if(t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests&&e.requests[t.currentTarget.bbRequestId]){var o=t.currentTarget,r=o.responseType,i="<"+r+">";""!==r&&"text"!==r||(i=e.cleanupContentSize(o.responseText)),e.requests[o.bbRequestId].success=!0,e.requests[o.bbRequestId].response={status:o.status,statusText:o.statusText,responseText:i},e.calcRequestTime(o.bbRequestId)}e.cleanRequests()}}})}}},{key:"interceptNetworkRequests",value:function(e){var t,n=this,o=XMLHttpRequest.prototype.open,r=XMLHttpRequest.prototype.send;return void 0===XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.gleapSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader),XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=function(e,t){this.requestHeaders||(this.requestHeaders={}),this.requestHeaders&&this.requestHeaders.hasOwnProperty(e)||(this.requestHeaders[e]||(this.requestHeaders[e]=[]),this.requestHeaders[e].push(t),this.gleapSetRequestHeader(e,t))}),XMLHttpRequest.prototype.open=function(){return this.bbRequestId=++n.requestId,e.onOpen&&e.onOpen(this,arguments),e.onLoad&&this.addEventListener("load",e.onLoad.bind(e)),e.onError&&this.addEventListener("error",e.onError.bind(e)),o.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){return e.onSend&&e.onSend(this,arguments),r.apply(this,arguments)},window.fetch&&(t=window.fetch,window.fetch=function(){var o=++n.requestId;return e.onFetch(arguments,o),t.apply(this,arguments).then((function(t){if(t&&"function"==typeof t.clone){var n=t.clone();e.onFetchLoad(n,o)}return t})).catch((function(t){throw e.onFetchFailed(t,o),t}))}),e}},{key:"blobToTextPromise",value:function(e){return new Promise((function(t,n){var o=new FileReader;o.onload=function(e){e&&e.target&&e.target.result?t(e.target.result):n()},o.onerror=function(e){n(e)},o.readAsText(e)}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&h(t.prototype,n),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();v(m,"instance",void 0);const b=m;var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400;return new Promise((function(o,r){var i=0===e.indexOf("data:image/jpeg"),a=new Image;a.src=e,a.onerror=function(){r()},a.onload=function(){var e=document.createElement("canvas"),r=t,s=n;t>a.width/1.5&&(r=a.width/1.5),n>a.height/1.5&&(s=a.height/1.5);var c=a.width,l=a.height;c>l?c>r&&(l*=r/c,c=r):l>s&&(c*=s/l,l=s),e.width=c,e.height=l,e.getContext("2d").drawImage(a,0,0,c,l),o(i?e.toDataURL("image/jpeg",.7):e.toDataURL())}}))},w=function(){return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))},k=function(e){if("string"==typeof e||e instanceof String)try{return JSON.parse(e)}catch(t){return{}}return e},x=function(e,t){return e.length>t?e.slice(0,t)+"...":e},S=function(e){try{var t=e.split("."),n=!1,o=t[t.length-2];return"co"!==o&&"com"!==o&&"gv"!==o&&"ac"!==o&&"edu"!==o&&"gov"!==o&&"mil"!==o&&"net"!==o&&"org"!==o||(n=!0),(t=t.slice(n?-3:-2)).join(".")}catch(r){}return e},C=function(e){try{var t=localStorage.getItem("gleap-widget-".concat(e));if(t)return JSON.parse(t)}catch(n){}return null},I=function(e,t){var n="gleap-widget-".concat(e);if(t)try{localStorage.setItem(n,JSON.stringify(t))}catch(o){}else localStorage.removeItem(n)},L=function(e){"complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",(function(){e()}))};function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function E(e,t){for(var n=0;n=200&&i.status<300)try{var e=i.responseText?JSON.parse(i.responseText):null;o(e)}catch(t){r({status:i.status,statusText:"JSON Parse Error",responseText:i.responseText,error:t})}else r({status:i.status,statusText:i.statusText,responseText:i.responseText})},i.onerror=function(){r({status:0,statusText:"Network Error",responseText:null})},i.send(n?JSON.stringify(n):null)}))}},{key:"_createCacheKey",value:function(e,t){return t?"".concat(e,"::").concat(t):e}},{key:"validateChecklist",value:function(e,t){var n=this,o=this._createCacheKey(e,t),r=this.validationCache.get(o);if(r)return r.status===A?Promise.resolve(r.internalId):Promise.reject(r.error);if(this.validationRequests.has(o))return this.validationRequests.get(o);var i=this._getApiUrl();if(!i){var a=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.validationCache.set(o,{status:P,error:a}),Promise.reject(a)}var s="".concat(i,"/outbound/checklists?").concat(this._getQueryParams()),c=this._makeRequest("POST",s,{outboundId:e,sharedKey:t}).then((function(e){if(e&&e.id)return n.validationCache.set(o,{status:A,internalId:e.id}),e.id;var t=new Error("Validation response missing checklist ID.");throw n.validationCache.set(o,{status:P,error:e||t}),t})).catch((function(e){throw n.validationCache.set(o,{status:P,error:e}),e})).finally((function(){n.validationRequests.delete(o)}));return this.validationRequests.set(o,c),c}},{key:"fetchChecklist",value:function(e){var t=this,n=this.fetchCache.get(e);if(n)return n.status===A?Promise.resolve(JSON.parse(JSON.stringify(n.data))):Promise.reject(n.error);if(this.fetchRequests.has(e))return this.fetchRequests.get(e).then((function(e){return JSON.parse(JSON.stringify(e))}));var o=this._getApiUrl();if(!o){var r=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.fetchCache.set(e,{status:P,error:r}),Promise.reject(r)}var i="".concat(o,"/outbound/checklists/").concat(e,"?convertTipTap=true&").concat(this._getQueryParams()),a=this._makeRequest("GET",i,null).then((function(n){if(n)return t.fetchCache.set(e,{status:A,data:n}),JSON.parse(JSON.stringify(n));var o=new Error("Empty response received for checklist fetch.");throw t.fetchCache.set(e,{status:P,error:n||o}),o})).catch((function(n){throw t.fetchCache.set(e,{status:P,error:n}),n})).finally((function(){t.fetchRequests.delete(e)}));return this.fetchRequests.set(e,a),a.then((function(e){return JSON.parse(JSON.stringify(e))}))}}])&&E(t.prototype,n),o&&E(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();O(R,"instance",null);const N=R,D=Math.min,j=Math.max,F=Math.round,_=Math.floor,B=e=>({x:e,y:e}),H={left:"right",right:"left",bottom:"top",top:"bottom"},q={start:"end",end:"start"};function U(e,t,n){return j(e,D(t,n))}function z(e,t){return"function"==typeof e?e(t):e}function W(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function V(e){return"x"===e?"y":"x"}function K(e){return"y"===e?"height":"width"}function X(e){return["top","bottom"].includes(W(e))?"y":"x"}function Z(e){return V(X(e))}function Y(e){return e.replace(/start|end/g,(e=>q[e]))}function J(e){return e.replace(/left|right|bottom|top/g,(e=>H[e]))}function Q(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ee(e,t,n){let{reference:o,floating:r}=e;const i=X(t),a=Z(t),s=K(a),c=W(t),l="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(c){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(G(t)){case"start":f[a]-=p*(n&&l?-1:1);break;case"end":f[a]+=p*(n&&l?-1:1)}return f}async function te(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=z(t,e),h=Q(f),v=s[p?"floating"===d?"reference":"floating":d],g=$(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),m="floating"===d?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=$(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:b,strategy:c}):m);return{top:(g.top-w.top+h.top)/y.y,bottom:(w.bottom-g.bottom+h.bottom)/y.y,left:(g.left-w.left+h.left)/y.x,right:(w.right-g.right+h.right)/y.x}}const ne=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=W(n),s=G(n),c="y"===X(n),l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=z(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),c?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}};function oe(e){return ae(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ie(e){var t;return null==(t=(ae(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ae(e){return e instanceof Node||e instanceof re(e).Node}function se(e){return e instanceof Element||e instanceof re(e).Element}function ce(e){return e instanceof HTMLElement||e instanceof re(e).HTMLElement}function le(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof re(e).ShadowRoot)}function ue(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function de(e){return["table","td","th"].includes(oe(e))}function pe(e){const t=fe(),n=ve(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function fe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function he(e){return["html","body","#document"].includes(oe(e))}function ve(e){return re(e).getComputedStyle(e)}function ge(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(e){if("html"===oe(e))return e;const t=e.assignedSlot||e.parentNode||le(e)&&e.host||ie(e);return le(t)?t.host:t}function be(e){const t=me(e);return he(t)?e.ownerDocument?e.ownerDocument.body:e.body:ce(t)&&ue(t)?t:be(t)}function ye(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=be(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=re(r);return i?t.concat(a,a.visualViewport||[],ue(r)?r:[],a.frameElement&&n?ye(a.frameElement):[]):t.concat(r,ye(r,[],n))}function we(e){const t=ve(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ce(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=F(n)!==i||F(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function ke(e){return se(e)?e:e.contextElement}function xe(e){const t=ke(e);if(!ce(t))return B(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=we(t);let a=(i?F(n.width):n.width)/o,s=(i?F(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Se=B(0);function Ce(e){const t=re(e);return fe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Se}function Ie(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=ke(e);let a=B(1);t&&(o?se(o)&&(a=xe(o)):a=xe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==re(e))&&t}(i,n,o)?Ce(i):B(0);let c=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=re(i),t=o&&se(o)?re(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=xe(r),t=r.getBoundingClientRect(),o=ve(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=a,n=re(r),r=n.frameElement}}return $({width:u,height:d,x:c,y:l})}const Le=[":popover-open",":modal"];function Te(e){return Le.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function Ee(e){return Ie(ie(e)).left+ge(e).scrollLeft}function Oe(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=re(e),o=ie(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;const e=fe();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=ie(e),n=ge(e),o=e.ownerDocument.body,r=j(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=j(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Ee(e);const s=-n.scrollTop;return"rtl"===ve(o).direction&&(a+=j(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(ie(e));else if(se(t))o=function(e,t){const n=Ie(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=ce(e)?xe(e):B(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Ce(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return $(o)}function Me(e,t){const n=me(e);return!(n===t||!se(n)||he(n))&&("fixed"===ve(n).position||Me(n,t))}function Ae(e,t,n){const o=ce(t),r=ie(t),i="fixed"===n,a=Ie(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=B(0);if(o||!o&&!i)if(("body"!==oe(t)||ue(r))&&(s=ge(t)),o){const e=Ie(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=Ee(r));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Pe(e,t){return ce(e)&&"fixed"!==ve(e).position?t?t(e):e.offsetParent:null}function Re(e,t){const n=re(e);if(!ce(e)||Te(e))return n;let o=Pe(e,t);for(;o&&de(o)&&"static"===ve(o).position;)o=Pe(o,t);return o&&("html"===oe(o)||"body"===oe(o)&&"static"===ve(o).position&&!pe(o))?n:o||function(e){let t=me(e);for(;ce(t)&&!he(t);){if(pe(t))return t;t=me(t)}return null}(e)||n}const Ne={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=ie(o),s=!!t&&Te(t.floating);if(o===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=B(1);const u=B(0),d=ce(o);if((d||!d&&!i)&&(("body"!==oe(o)||ue(a))&&(c=ge(o)),ce(o))){const e=Ie(o);l=xe(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:ie,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=ye(e,[],!1).filter((e=>se(e)&&"body"!==oe(e))),r=null;const i="fixed"===ve(e).position;let a=i?me(e):e;for(;se(a)&&!he(a);){const t=ve(a),n=pe(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||ue(a)&&!n&&Me(e,a))?o=o.filter((e=>e!==a)):r=t,a=me(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=Oe(t,n,r);return e.top=j(o.top,e.top),e.right=D(o.right,e.right),e.bottom=D(o.bottom,e.bottom),e.left=j(o.left,e.left),e}),Oe(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Re,getElementRects:async function(e){const t=this.getOffsetParent||Re,n=this.getDimensions;return{reference:Ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=we(e);return{width:t,height:n}},getScale:xe,isElement:se,isRTL:function(e){return"rtl"===ve(e).direction}};function De(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=ke(e),u=r||i?[...l?ye(l):[],...ye(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,o=null;const r=ie(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-_(u)+"px "+-_(r.clientWidth-(l+d))+"px "+-_(r.clientHeight-(u+p))+"px "+-_(l)+"px",threshold:j(0,D(1,c))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(v,{...f,root:r.ownerDocument})}catch(g){o=new IntersectionObserver(v,f)}o.observe(e)}(!0),i}(l,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!c&&h.observe(l),h.observe(t));let v=c?Ie(e):null;return c&&function t(){const o=Ie(e);!v||o.x===v.x&&o.y===v.y&&o.width===v.width&&o.height===v.height||n();v=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const je=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=z(e,t),l={x:n,y:o},u=await te(t,c),d=X(W(r)),p=V(d);let f=l[p],h=l[d];if(i){const e="y"===p?"bottom":"right";f=U(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=U(h+u["y"===d?"top":"left"],h,h-u[e])}const v=s.fn({...t,[p]:f,[d]:h});return{...v,data:{x:v.x-n,y:v.y-o}}}}},Fe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=z(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=W(r),b=W(s)===s,y=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=p||(b||!v?[J(s)]:function(e){const t=J(e);return[Y(e),t,Y(t)]}(s));p||"none"===h||w.push(...function(e,t,n,o){const r=G(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(W(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(Y)))),i}(s,v,h,y));const k=[s,...w],x=await te(t,g),S=[];let C=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&S.push(x[m]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=G(e),r=Z(e),i=K(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=J(a)),[a,J(a)]}(r,a,y);S.push(x[e[0]],x[e[1]])}if(C=[...C,{placement:r,overflows:S}],!S.every((e=>e<=0))){var I,L;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(L=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},_e=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=z(e,t)||{};if(null==l)return{};const d=Q(u),p={x:n,y:o},f=Z(r),h=K(f),v=await a.getDimensions(l),g="y"===f,m=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[f]-p[f]-i.floating[h],k=p[f]-i.reference[f],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=x?x[y]:0;S&&await(null==a.isElement?void 0:a.isElement(x))||(S=s.floating[y]||i.floating[h]);const C=w/2-k/2,I=S/2-v[h]/2-1,L=D(d[m],I),T=D(d[b],I),E=L,O=S-v[h]-T,M=S/2-v[h]/2+C,A=U(E,M,O),P=!c.arrow&&null!=G(r)&&M!==A&&i.reference[h]/2-(M{const o=new Map,r={platform:Ne,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=ee(l,o,c),p=o,f={},h=0;for(let v=0;ve.length)&&(t=e.length);for(var n=0,o=new Array(t);n'):""),i.appendChild(a),t.repositionHotspot(e,n),r=a,t.elementToTooltipMap.set(e,n)}else r=e;var s=t.createTooltip(r,n.html,n);t.elementToFloatingUIMap.set(e,s)}}})),We(this,"updateFilteredTooltips",(function(){t.filteredTooltips=t.getFilteredTooltips(),t.checkForTooltips()})),We(this,"getFilteredTooltips",(function(){if(!t.tooltips)return[];var e=window.location.href;return t.tooltips.filter((function(t){if(!t.page||0===t.page.length)return!0;var n=t.pageType,o=t.page;switch(n){case"is":return e===o;case"isnot":return e!==o;case"contains":return e.includes(o);case"notcontains":return!e.includes(o);case"startswith":return e.startsWith(o);case"endswith":return e.endsWith(o);default:return!1}}))})),We(this,"checkForTooltips",(function(){for(var e=0;e0&&this.filteredTooltips.forEach((function(n){n.selector&&e.matches(n.selector)&&t.linkTooltip(e,n)}))}},{key:"start",value:function(){var e=this,t=this;if(window){var n,o,r,i=(n=t.updateHotspotPositions.bind(t),o=250,r=null,function(){if(!r){var e=this,t=arguments;r=setTimeout((function(){n.call.apply(n,[e].concat(qe(t))),r=null}),o)}});window.addEventListener("resize",i),window.requestAnimationFrame((function(){e.observer=new MutationObserver((function(n){t.lastUrl!==window.location.href&&(t.lastUrl=window.location.href,t.filteredTooltips=t.getFilteredTooltips()),n.forEach((function(n){n.addedNodes.forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&t.processNodeInsertion(e)})),n.removedNodes.forEach((function(t){if(t.nodeType===Node.ELEMENT_NODE&&e.elementToFloatingUIMap.has(t)){var n=e.elementToFloatingUIMap.get(t);n&&(n.tooltip&&n.tooltip.remove(),n.cleanup(),e.elementToFloatingUIMap.delete(t))}e.elementToTooltipMap.has(t)&&e.elementToTooltipMap.delete(t)}))}))})),e.observer.observe(document.body,{childList:!0,subtree:!0})}))}}},{key:"updateHotspotPositions",value:function(){var e=this;document.querySelectorAll("[data-gleap-tooltip-mode='hotspot']").forEach((function(t){var n=e.elementToTooltipMap.get(t);n&&e.repositionHotspot(t,n)}))}},{key:"createTooltip",value:function(e,t,n){var o=document.createElement("div");o.className="gleap-tooltip",o.innerHTML='
\n '.concat(t,'\n
\n \n \n \n
\n
'),document.body.appendChild(o);var r,i=o.querySelector(".gleap-tooltip-arrow"),a=De(e,o,(function(){Be(e,o,{placement:"left"===n.posX?"left":"right",middleware:[ne(10),Fe(),je(),_e({element:i})]}).then((function(e){var t=e.x,n=e.y,r=e.middlewareData,a=e.placement;try{if(Object.assign(o.style,{left:"".concat(t,"px"),top:"".concat(n,"px")}),r.arrow){var s={left:"",top:"",transform:""};null!=r.arrow.x&&(s.left="".concat(r.arrow.x,"px"),"bottom"===a?(s.transform="translateY(-7px) rotate(180deg)",s.top="".concat(-20,"px")):"top"===a&&(s.transform="translateY(7px) rotate(0deg)",s.top="100%")),null!=r.arrow.y&&(s.top="".concat(r.arrow.y,"px"),"right"===a?(s.transform="translateX(-7px) rotate(90deg)",s.left="".concat(-20,"px")):"left"===a&&(s.transform="translateX(7px) rotate(270deg)",s.left="100%")),Object.assign(i.style,s)}}catch(c){}}))}));function s(){clearTimeout(r),o.style.visibility="visible",o.style.opacity="1",o.style.pointerEvents="auto"}function c(){r=setTimeout((function(){o.style.opacity="0",setTimeout((function(){o.style.visibility="hidden",o.style.pointerEvents="none"}),200)}),500)}return e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",c),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c),{cleanup:a,tooltip:o}}},{key:"canEmbed",value:function(e){var t=new Set(["area","base","br","embed","hr","img","input","source","track","wbr","canvas"]);return e&&!t.has(e.tagName.toLowerCase())}},{key:"destroy",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),document.querySelectorAll(".gleap-tooltip").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-anchor]").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-hotspot]").forEach((function(e){return e.remove()})),this.elementToFloatingUIMap=new WeakMap,this.elementToTooltipMap=new WeakMap,this.tooltips=[],this.filteredTooltips=[]}},{key:"repositionHotspot",value:function(e,t){if(e&&t){var n=e.getAttribute("data-gleap-tooltip");if(n){var o=document.querySelector('[data-gleap-tooltip-hotspot="'.concat(n,'"]'));if(o){t.posX||(t.posX="right"),t.posY||(t.posY="center"),t.offsetX||(t.offsetX=4),t.offsetY||(t.offsetY=0);var r=e.getBoundingClientRect();try{var i=document.createRange();i.selectNodeContents(e);var a=window.getComputedStyle(e),s=i.getBoundingClientRect().width+parseFloat(a.paddingLeft);s0&&void 0!==arguments[0]?arguments[0]:0,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash));try{I("session-".concat(t.sdkKey),null)}catch(r){}if(t.useCookies)try{!function(e){try{var t=S(window.location.host.split(":")[0]);document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Domain="+t}catch(r){}}("session-".concat(t.sdkKey))}catch(r){}if(t.ready=!1,t.session={gleapId:null,gleapHash:null,name:"",email:"",userId:"",phone:"",value:0},Gt.getInstance().sendMessage({name:"session-cleared"},!0),Ao.getInstance().clearAllNotifications(!1),Ao.getInstance().setNotificationCount(0),_o.getInstance().removeBannerUI(),Go.getInstance().hideModal(),n&&!isNaN(e)){var o=10*Math.pow(e,2);setTimeout((function(){t.startSession(e+1)}),1e3*o)}})),Je(this,"validateSession",(function(e){var n;if(e&&e.gleapId){var o=!1;(null===(n=t.session)||void 0===n?void 0:n.gleapId)!==(null==e?void 0:e.gleapId)&&(o=!0),t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),I("session-".concat(t.sdkKey),e),t.useCookies&&function(e,t,n){try{var o="";if(n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),o="; expires="+r.toUTCString()}var i=S(window.location.host.split(":")[0]);document.cookie=e+"="+(t||"")+o+"; path=/; domain="+i}catch(a){}}("session-".concat(t.sdkKey),encodeURIComponent(JSON.stringify(e)),365),t.session=e,t.ready=!0,t.session&&t.session.gleapHash&&kn.notifyEvent("register-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),o&&(setTimeout((function(){N.getInstance().clearCache(),rt.getInstance().restart();var e=Ve.getInstance();if(e){try{e.destroy()}catch(t){}e.load()}}),0),"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("session-updated"))),t.notifySessionReady()}})),Je(this,"startSession",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{if(t.useCookies){var n=function(e){try{for(var t=e+"=",n=document.cookie.split(";"),o=0;o0)){var r=C("session-".concat(t.sdkKey));r&&t.validateSession(r)}var i=t,a=new XMLHttpRequest;a.open("POST",i.apiUrl+"/sessions"),a.setRequestHeader("Content-Type","application/json;charset=UTF-8"),a.setRequestHeader("Api-Token",i.sdkKey);try{t.session&&t.session.gleapId&&t.session.gleapHash&&(a.setRequestHeader("Gleap-Id",t.session.gleapId),a.setRequestHeader("Gleap-Hash",t.session.gleapHash))}catch(s){}a.onreadystatechange=function(t){if(4===a.readyState)if(200===a.status||201===a.status)try{var n=JSON.parse(a.responseText);i.validateSession(n)}catch(s){}else 429!==a.status&&i.clearSession(e,!0)},a.send(JSON.stringify({lang:go.getInstance().getActiveLanguage()}))})),Je(this,"checkIfSessionNeedsUpdate",(function(e,n){if(!t.session||!t.session.userId||!e)return!0;try{if(t.session.userId.toString()!==e.toString())return!0}catch(o){}return t.checkIfSessionDataNeedsUpdate(n)})),Je(this,"checkIfSessionDataNeedsUpdate",(function(e){if(e)for(var n=Object.keys(e),o=0;o0)for(var e=0;e2)&&0!==t.streamedEventArray.length&&t.socket&&t.socket.readyState===t.socket.OPEN){var e=t;t.streamingEvents=!0;var n=new XMLHttpRequest;n.open("POST",$e.getInstance().apiUrl+"/sessions/ping"),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),$e.getInstance().injectSession(n),n.onerror=function(){e.errorCount++,e.streamingEvents=!1},n.onreadystatechange=function(t){4===n.readyState&&(200===n.status||201===n.status?e.errorCount=0:e.errorCount++,e.streamingEvents=!1)};var o=Yt.getInstance().getSessionDuration();n.send(JSON.stringify({time:o,events:t.streamedEventArray,opened:Gt.getInstance().isOpened(),type:"js",sdkVersion:"14.6.2",ws:!0})),t.streamedEventArray=[]}})),this.handleOpenBound=this.handleOpen.bind(this),this.handleErrorBound=this.handleError.bind(this),this.handleMessageBound=this.handleMessage.bind(this),this.handleCloseBound=this.handleClose.bind(this)}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"cleanupWebSocket",value:function(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null),this.pingWS&&clearInterval(this.pingWS),this.socket&&(this.socket.removeEventListener("open",this.handleOpenBound),this.socket.removeEventListener("error",this.handleErrorBound),this.socket.removeEventListener("message",this.handleMessageBound),this.socket.removeEventListener("close",this.handleCloseBound),this.socket.close(),this.socket=null)}},{key:"initWebSocket",value:function(){this.cleanupWebSocket(),this.connectedWebSocketGleapId=$e.getInstance().session.gleapId,$e.getInstance().session&&$e.getInstance().sdkKey&&(this.socket=new WebSocket("".concat($e.getInstance().wsApiUrl,"?gleapId=").concat($e.getInstance().session.gleapId,"&gleapHash=").concat($e.getInstance().session.gleapHash,"&apiKey=").concat($e.getInstance().sdkKey,"&sdkVersion=").concat("14.6.2")),this.socket.addEventListener("open",this.handleOpenBound),this.socket.addEventListener("message",this.handleMessageBound),this.socket.addEventListener("error",this.handleErrorBound),this.socket.addEventListener("close",this.handleCloseBound))}},{key:"handleOpen",value:function(e){var t=this;this.pingWS=setInterval((function(){t.socket.readyState===t.socket.OPEN&&(t.socket.send("PING"),t.socket.send(9))}),1e4),this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null)}},{key:"handleMessage",value:function(e){this.processMessage(JSON.parse(e.data))}},{key:"handleError",value:function(e){}},{key:"handleClose",value:function(e){var t=this;setTimeout((function(){t.initWebSocket()}),5e3)}},{key:"processMessage",value:function(e){try{if("update"===e.name){var t=e.data,n=t.a,o=t.u;Gt.getInstance().isOpened()||(n&&ki.getInstance().performActions(n),null!=o&&Ao.getInstance().setNotificationCount(o))}"checklist"===e.name&&null!=e&&e.data&&window&&"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("checkListUpdate",{detail:e.data}))}catch(r){}}},{key:"getEventArray",value:function(){return this.eventArray}},{key:"stop",value:function(){this.cleanupMainLoop()}},{key:"resetErrorCountLoop",value:function(){var e=this;setInterval((function(){e.errorCount=0}),6e4)}},{key:"cleanupMainLoop",value:function(){this.mainLoopTimeout&&(clearInterval(this.mainLoopTimeout),this.mainLoopTimeout=null)}},{key:"restart",value:function(){this.connectedWebSocketGleapId!==$e.getInstance().session.gleapId&&this.initWebSocket(),this.cleanupMainLoop(),this.trackInitialEvents(),this.runEventStreamLoop()}},{key:"start",value:function(){this.startPageListener(),this.resetErrorCountLoop()}},{key:"trackInitialEvents",value:function(){e.getInstance().logEvent("sessionStarted"),e.getInstance().logCurrentPage()}},{key:"logCurrentPage",value:function(){if(!ki.getInstance().disablePageTracking){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.logEvent("pageView",{page:e}))}}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"logEvent",value:function(e,t){var n={name:e,date:new Date};t&&(n.data=k(t)),this.eventArray.push(n),this.streamedEventArray.push(n),this.eventArray.length>this.eventMaxLength&&this.eventArray.shift(),this.streamedEventArray.length>this.eventMaxLength&&this.streamedEventArray.shift()}}])&&tt(t.prototype,n),o&&tt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function at(e,t){for(var n=0;n0)for(var e=0;e=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function ft(e,t,n,o,r,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(o,r)}function ht(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ft(i,o,r,a,s,"next",e)}function s(e){ft(i,o,r,a,s,"throw",e)}a(void 0)}))}}var vt=function(e){var t="",n=window.document.doctype;if(n&&(t=""),e&&e.childNodes&&e.childNodes.length>0)for(var o=0;o1?t-1:0),r=1;r0||t.scrollLeft>0)&&(s.setAttribute("bb-scrollpos",!0),s.setAttribute("bb-scrolltop",t.scrollTop),s.setAttribute("bb-scrollleft",t.scrollLeft)),"SELECT"!==d&&"TEXTAREA"!==d&&"INPUT"!==d||(f=t.value,("value"===t.getAttribute("gleap-ignore")||t.classList.contains("gl-mask"))&&(f=new Array(f.length+1).join("*")),s.setAttribute("bb-data-value",f),"checkbox"!==t.type&&"radio"!==t.type||!t.checked||s.setAttribute("bb-data-checked",!0))),r.appendChild(s),!t.shadowRoot){e.next=29;break}return h=n,n++,e.next=27,a(t.shadowRoot.firstChild,s,h);case 27:St(t.shadowRoot,s,h),void 0!==s.setAttribute&&s.setAttribute("bb-shadow-parent",h);case 29:return e.next=31,a(t.firstChild,s);case 31:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(t,n,o){return e.apply(this,arguments)}}(),r=document.createDocumentFragment(),e.next=5,o(t,r);case 5:return(i=r.querySelector("head"))||(i=r),St(window.document,i),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Lt=function(e){return new Promise(function(){var t=ht(pt().mark((function t(n,o){var r,i,a,s,c,l,u,d,p,f,h,v,g,m,b;return pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r=window.document.querySelectorAll("style, link"),i=0;i0){for(l=c.childNodes;l.length>0;)c.parentNode.insertBefore(l[0],c);c.remove()}for(u=a.querySelectorAll("script, noscript"),i=0;i0?r.innerHTML=n.formatTime(e):(r.innerHTML="2:00",n.stopScreenRecording())}),1e3),this.mediaRecorder.ondataavailable=function(e){e.data.size>0&&o.push(e.data)},t.getVideoTracks()[0].onended=function(){n.prepareRecording(o)},this.mediaRecorder.onstop=function(){n.prepareRecording(o)},this.mediaRecorder.start(200),n.rerender()})),Ot(this,"prepareRecording",(function(e){var t=new Blob(e,{type:this.getSupportedMimeType()}),n=this.getSupportedMimeType(),o=n.includes("mp4")?"mp4":"webm";this.file=new File([t],"screen-recording.".concat(o),{type:n});var r=document.querySelector(".bb-capture-preview video");r&&(r.src=URL.createObjectURL(t),this.audioAvailable=!0,this.isRecording=!1,this.rerender())})),this.rerender=t,this.permissionErrorText=n,navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia||(this.available=!1),setTimeout((function(){o.rerender()}),100)}var t,n,o;return t=e,(n=[{key:"getSupportedMimeType",value:function(){for(var e=0,t=["video/webm","audio/webm","video/webm;codecs=vp8","video/webm;codecs=daala","video/webm;codecs=h264","audio/webm;codecs=opus","video/mp4"];e0&&(e.tags=t),this.excludeData)for(var n=Object.keys(this.excludeData),o=0;oe.length)&&(t=e.length);for(var n=0,o=new Array(t);n0)if(t){var n=window.open(e,"_blank");!n||n.closed||void 0===n.closed?window.location.href=e:n.focus()}else window.location.href=e})),zt(this,"autoWhiteListCookieManager",(function(){window&&window.cmp_block_ignoredomains&&window.cmp_block_ignoredomains.concat(["messenger-app.gleap.io"])})),zt(this,"injectFrame",(function(){t.injectedFrame||(t.injectedFrame=!0,t.autoWhiteListCookieManager(),L((function(){ut.getInstance().onConfigLoaded((function(){ut.getInstance().applyStylesFromConfig();var e=document.createElement("div");e.className="gleap-frame-container gleap-frame-container--hidden gl-block",e.innerHTML='
'),document.body.appendChild(e),t.gleapFrameContainer=e,t.gleapFrame=document.querySelector(".gleap-frame"),t.updateFrameStyle(),"widget"===t.appMode&&t.showFrameContainer(!0)}))})))})),zt(this,"showImage",(function(e){L((function(){var t=document.createElement("div");t.className="gleap-image-view",t.innerHTML='
\n \n
'),document.body.appendChild(t);var n=function(){t.remove()};t.querySelector(".gleap-image-view-close").addEventListener("click",(function(){n()})),t.addEventListener("click",(function(e){e.target===t&&n()}))}))})),zt(this,"updateFrameStyle",(function(){if(t.gleapFrameContainer){for(var e="gleap-frame-container--survey",n="gleap-frame-container--extended",o="gleap-frame-container--survey-full",r="gleap-frame-container--classic",i="gleap-frame-container--classic-left",s="gleap-frame-container--modern-left",c="gleap-frame-container--no-button",l=[r,i,n,s,c,e,o],u=0;u1&&void 0!==arguments[1]&&arguments[1];try{this.gleapFrame=document.querySelector(".gleap-frame"),this.comReady&&this.gleapFrame&&this.gleapFrame.contentWindow?this.gleapFrame.contentWindow.postMessage(JSON.stringify(e),"*"):t&&this.queue.push(e)}catch(n){}}},{key:"sendSessionUpdate",value:function(){this.sendMessage({name:"session-update",data:{sessionData:$e.getInstance().getSession(),apiUrl:$e.getInstance().apiUrl,sdkKey:$e.getInstance().sdkKey}})}},{key:"sendConfigUpdate",value:function(){this.sendMessage({name:"config-update",data:{config:ut.getInstance().getFlowConfig(),aiTools:ut.getInstance().getAiTools(),overrideLanguage:go.getInstance().getOverrideLanguage()}}),this.updateFrameStyle()}},{key:"showDrawingScreen",value:function(e){var t=this;this.hideWidget(),this.markerManager=new uo(e),this.markerManager.show((function(e){e||t.hideMarkerManager(),t.showWidget()}))}},{key:"workThroughQueue",value:function(){var e=Ht(this.queue);this.queue=[];for(var t=0;t0&&(n.tags=o),e.sendMessage({name:"collect-ticket-data",data:n})}if("height-update"===t.name){e.frameHeight=t.data;var r=document.querySelector(".gleap-frame-container-inner");"survey"!==e.appMode&&"survey_full"!==e.appMode&&"survey_web"!==e.appMode||!r||(r.style.maxHeight="".concat(e.frameHeight,"px"))}if("notify-event"===t.name&&kn.notifyEvent(t.data.type,t.data.data),"cleanup-drawings"===t.name&&e.hideMarkerManager(),"open-url"===t.name){var i=t.data,a=!!t.newTab;e.urlHandler(i,a)}if("run-custom-action"===t.name&&En.triggerCustomAction(t.data,{shareToken:t.shareToken}),"close-widget"===t.name&&e.hideWidget(),"tool-execution"===t.name&&kn.notifyEvent("tool-execution",t.data),"send-feedback"===t.name){var s=t.data.formData,c=t.data.action,l=t.data.outboundId,u=t.data.spamToken;new _t(c.feedbackType,"MEDIUM",s,!1,c.excludeData,l,u).sendFeedback().then((function(t){if(e.sendMessage({name:"feedback-sent",data:t}),kn.notifyEvent("feedback-sent",s),l&&l.length>0){kn.notifyEvent("outbound-sent",{outboundId:l,outbound:c,formData:s});try{delete s.reportedBy}catch(n){}ki.trackEvent("outbound-".concat(l,"-submitted"),s)}})).catch((function(t){e.sendMessage({name:"feedback-sending-failed",data:"Something went wrong, please try again."}),kn.notifyEvent("error-while-sending")}))}"start-screen-drawing"===t.name&&e.showDrawingScreen(t.data)})),window.addEventListener("message",(function(t){if(t.origin===e.frameUrl||t.origin===_o.getInstance().bannerUrl)try{for(var n=JSON.parse(t.data),o=0;o1&&void 0!==arguments[1]?arguments[1]:"INFO";!e||e.length<=0||(this.logArray.push({log:x(e,1e3),date:new Date,priority:t}),this.logArray.length>this.logMaxLength&&this.logArray.shift())}},{key:"addLogWithArgs",value:function(e,t){if(e&&!(e.length<=0)){var n="";try{for(var o=0;o1&&void 0!==arguments[1])||arguments[1],n=x(e.innerText||"",40).replace(/(\r\n|\n|\r)/gm,"").replace(/ +(?= )/g,""),o="",r="";if(void 0!==e.getAttribute){var i=e.getAttribute("id");i&&(o=' id="'.concat(i,'"'));var a=e.getAttribute("class");a&&(r=' class="'.concat(a,'"'))}var s=(e.tagName||"").toLowerCase(),c="<",l=">";return t||(c="[",l="]"),"".concat(c).concat(s).concat(o).concat(r).concat(l).concat(n).concat(c,"/").concat(s).concat(l)}(e.target),"CLICK")}}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&an(t.prototype,n),o&&an(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function pn(e){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pn(e)}function fn(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if("flow-started"===e){var n=ki.getInstance();n.setGlobalDataItem("webReplay",null),n.setGlobalDataItem("screenRecordingData",null),n.takeCurrentReplay()}var o=this.getInstance().eventListeners[e];if(o)for(var r=0;r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||Rn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function An(e){return function(e){if(Array.isArray(e))return Nn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Rn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Rn(e,t){if(e){if("string"==typeof e)return Nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n=0;g--){var m=n.get(g);if(m){var b=t.mirror.getId(m.value.parentNode);if(-1===o(m.value))continue;if(-1!==b){f=m;break}var y=m.value;if(y.parentNode&&y.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=y.parentNode.host;if(-1!==t.mirror.getId(w)){f=m;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),r(f.value)}var k={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){return{id:t.mirror.getId(e.node),attributes:e.attributes}})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:e};!k.texts.length&&!k.attributes.length&&!k.removes.length&&!k.adds.length||(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(k))}},this.processMutation=function(e){if(!Ye(e.target,t.mirror))switch(e.type){case"characterData":var n=e.target.textContent;!Ze(e.target,t.blockClass,t.blockSelector,!1)&&n!==e.oldValue&&t.texts.push({value:Be(e.target,t.maskTextClass,t.maskTextSelector)&&n?t.maskTextFn?t.maskTextFn(n):n.replace(/[\S]/g,"*"):n,node:e.target});break;case"attributes":var o=e.target,r=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(r=Ae({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:r,maskInputFn:t.maskInputFn})),Ze(e.target,t.blockClass,t.blockSelector,!1)||r===e.oldValue)return;var i=t.attributes.find((function(t){return t.node===e.target}));if("IFRAME"===o.tagName&&"src"===e.attributeName&&!t.keepIframeSrcFn(r)){if(o.contentDocument)return;e.attributeName="rr_src"}if(i||(i={node:e.target,attributes:{}},t.attributes.push(i)),"style"===e.attributeName){var a=t.doc.createElement("span");e.oldValue&&a.setAttribute("style",e.oldValue),(void 0===i.attributes.style||null===i.attributes.style)&&(i.attributes.style={});for(var s=i.attributes.style,c=0,l=Array.from(o.style);c0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){if("rrweb"===e.data.type){if(!e.source)return;var t=this.crossOriginIframeMap.get(e.source);if(!t)return;var n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}}},{key:"transformCrossOriginEvent",value:function(e,t){var n,o=this;switch(t.type){case m.FullSnapshot:return this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e),{timestamp:t.timestamp,type:m.IncrementalSnapshot,data:{source:b.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case m.Meta:case m.Load:case m.DomContentLoaded:return!1;case m.Plugin:return t;case m.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case m.IncrementalSnapshot:switch(t.data.source){case b.Mutation:return t.data.adds.forEach((function(t){o.replaceIds(t,e,["parentId","nextId","previousId"]),o.replaceIdOnNode(t.node,e)})),t.data.removes.forEach((function(t){o.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){o.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.Drag:case b.TouchMove:case b.MouseMove:return t.data.positions.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.ViewportResize:return!1;case b.MediaInteraction:case b.MouseInteraction:case b.Scroll:case b.CanvasMutation:case b.Input:return this.replaceIds(t.data,e,["id"]),t;case b.StyleSheetRule:case b.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case b.Font:return t;case b.Selection:return t.data.ranges.forEach((function(t){o.replaceIds(t,e,["start","end"])})),t;case b.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach((function(t){o.replaceStyleIds(t,e,["styleId"])})),t}}}},{key:"replace",value:function(e,t,n,o){var r,i=Pn(o);try{for(i.s();!(r=i.n()).done;){var a=r.value;!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]))}}catch(s){i.e(s)}finally{i.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id"]),"childNodes"in e&&e.childNodes.forEach((function(e){n.replaceIdOnNode(e,t)}))}}]),e}(),W=Object.defineProperty,G=Object.defineProperties,V=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,Y=function(e,t,n){return t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},J=function(e,t){for(var n in t||(t={}))X.call(t,n)&&Y(e,n,t[n]);if(K){var o,r=Pn(K(t));try{for(r.s();!(o=r.n()).done;){n=o.value;Z.call(t,n)&&Y(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Q=function(e,t){return G(e,V(t))},$=function(){function e(t){Dn(this,e),this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var n=this;this.restorePatches.push(Ve(Element.prototype,"attachShadow",(function(e){return function(t){var o=e.call(this,t);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),o}})))}return Fn(e,[{key:"addShadowRoot",value:function(e,t){var n=this;!Ee(e)||this.shadowDoms.has(e)||(this.shadowDoms.add(e),lt(Q(J({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),dt(Q(J({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(e.host)),vt({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e)}),0))}},{key:"observeAttachShadow",value:function(e){if(e.contentWindow){var t=this;this.restorePatches.push(Ve(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(o){var r=n.call(this,o);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}})))}}},{key:"reset",value:function(){this.restorePatches.forEach((function(e){return e()})),this.shadowDoms=new WeakSet}}]),e}(),ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=("undefined"==typeof Uint8Array?"undefined":Bn(Uint8Array))>"u"?[]:new Uint8Array(256),ne=0;ne<64;ne++)te[ee.charCodeAt(ne)]=ne;var oe,re,ie,ae=new Map,se=function(e,t,n){if(e&&(le(e,t)||"object"==Bn(e))){var o=function(e,t){var n=ae.get(e);return n||(n=new Map,ae.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name),r=o.indexOf(e);return-1===r&&(r=o.length,o.push(e)),r}},ce=function(e,t,n){return An(e).map((function(e){return mt(e,t,n)}))},le=function(e,t){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(n.find((function(n){return e instanceof t[n]})))},ue=function(e,t,n){var o;return function(r){return o=o||wt(e,t,n),new Worker(o,r)}}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixwPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylwW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgdT1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCxsPW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gdihzLGUsbil7Y29uc3QgYT1gJHtzfS0ke2V9YDtpZigiT2Zmc2NyZWVuQ2FudmFzImluIGdsb2JhbFRoaXMpe2lmKGwuaGFzKGEpKXJldHVybiBsLmdldChhKTtjb25zdCB0PW5ldyBPZmZzY3JlZW5DYW52YXMocyxlKTt0LmdldENvbnRleHQoIjJkIik7Y29uc3QgZz1hd2FpdChhd2FpdCB0LmNvbnZlcnRUb0Jsb2IobikpLmFycmF5QnVmZmVyKCksZD11KGcpO3JldHVybiBsLnNldChhLGQpLGR9ZWxzZSByZXR1cm4iIn1jb25zdCBpPXNlbGY7aS5vbm1lc3NhZ2U9YXN5bmMgZnVuY3Rpb24ocyl7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtjb25zdHtpZDplLGJpdG1hcDpuLHdpZHRoOmEsaGVpZ2h0OnQsZGF0YVVSTE9wdGlvbnM6Z309cy5kYXRhLGQ9dihhLHQsZyksaD1uZXcgT2Zmc2NyZWVuQ2FudmFzKGEsdCk7aC5nZXRDb250ZXh0KCIyZCIpLmRyYXdJbWFnZShuLDAsMCksbi5jbG9zZSgpO2NvbnN0IHc9YXdhaXQgaC5jb252ZXJ0VG9CbG9iKGcpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89dShiKTtpZighYy5oYXMoZSkmJmF3YWl0IGQ9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX1lbHNlIHJldHVybiBpLnBvc3RNZXNzYWdlKHtpZDpzLmRhdGEuaWR9KX19KSgpOwoK",null,!1),de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,he=function(){function e(t){var n=this;Dn(this,e),this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(e)||n.pendingCanvasMutations.set(e,[]),n.pendingCanvasMutations.get(e).push(t)};var o=t.sampling,r=void 0===o?"all":o,i=t.win,a=t.blockClass,s=t.blockSelector,c=t.recordCanvas,l=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&"all"===r&&this.initCanvasMutationObserver(i,a,s),c&&"number"==typeof r&&this.initCanvasFPSObserver(r,i,a,s,{dataURLOptions:l})}return Fn(e,[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,t,n,o,r){var i=this,a=bt(t,n,o),s=new Map,c=new ue;c.onmessage=function(e){var t=e.data.id;if(s.set(t,!1),"base64"in e.data){var n=e.data,o=n.base64,r=n.type,a=n.width,c=n.height;i.mutationCb({id:t,type:w["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:r}]},0,0]}]})}};var l,u=1e3/e,d=0;l=requestAnimationFrame((function e(a){d&&a-d0&&(o.styles=r),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}(),ge=Object.defineProperty,me=Object.defineProperties,be=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,xe=function(e,t,n){return t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Se=function(e,t){for(var n in t||(t={}))we.call(t,n)&&xe(e,n,t[n]);if(ye){var o,r=Pn(ye(t));try{for(r.s();!(o=r.n()).done;){n=o.value;ke.call(t,n)&&xe(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Ce=function(e,t){return me(e,be(t))},Ie=!1,Le=new r;return xt.addCustomEvent=function(e,t){if(!Ie)throw new Error("please add custom event after start recording");oe(kt({type:m.Custom,data:{tag:e,payload:t}}))},xt.freezePage=function(){D.forEach((function(e){return e.freeze()}))},xt.takeFullSnapshot=function(e){if(!Ie)throw new Error("please take full snapshot after start recording");re(e)},xt.mirror=Le,xt}function Te(e){var t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function Ee(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Oe(e){try{var t=e.rules||e.cssRules;return t?function(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}(Array.from(t).map(Me).join("")):null}catch(n){return null}}function Me(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=Oe(e.styleSheet)||t}catch(n){}return t}function Ae(e){var t=e.maskInputOptions,n=e.tagName,o=e.type,r=e.value,i=e.maskInputFn,a=r||"";return(t[n.toLowerCase()]||t[o])&&(a=i?i(a):"*".repeat(a.length)),a}function Pe(){return a++}function Re(e,t){return(e||"").replace(l,(function(e,n,o,r,i,a){var s=o||i||a,c=n||r||"";if(!s)return e;if(!u.test(s)||d.test(s))return"url(".concat(c).concat(s).concat(c,")");if("/"===s[0])return"url(".concat(c).concat(function(e){return(e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(t)+s).concat(c,")");var l=t.split("/"),p=s.split("/");l.pop();for(var f=0,h=p;f=t.length);){var i=o(p);if(","===i.slice(-1))i=Ne(e,i.substring(0,i.length-1)),r.push(i);else{var a="";i=Ne(e,i);for(var s=!1;;){var c=t.charAt(n);if(""===c){r.push((i+a).trim());break}if(s)")"===c&&(s=!1);else{if(","===c){n+=1,r.push((i+a).trim());break}"("===c&&(s=!0)}a+=c,n+=1}}}return r.join(", ")}(e,o):"style"===n&&o?Re(o,je()):"object"===t&&"data"===n&&o?Ne(e,o):o}function _e(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&_e(e.parentNode,t,n);for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&_e(e.parentNode,t,n)}function Be(e,t,n){var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(o.classList.contains(t)||o.closest(".".concat(t)))return!0}else if(_e(o,t,!0))return!0;return!(!n||!o.matches(n)&&!o.closest(n))}function He(t,r){var a=r.doc,c=r.mirror,l=r.blockClass,u=r.blockSelector,d=r.maskTextClass,p=r.maskTextSelector,f=r.inlineStylesheet,h=r.maskInputOptions,v=void 0===h?{}:h,g=r.maskTextFn,m=r.maskInputFn,b=r.dataURLOptions,y=void 0===b?{}:b,w=r.inlineImages,k=r.recordCanvas,x=r.keepIframeSrcFn,S=r.newlyAddedElement,C=void 0!==S&&S,I=function(e,t){if(t.hasNode(e)){var n=t.getId(e);return 1===n?void 0:n}}(a,c);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode}:{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:I};case t.ELEMENT_NODE:return function(t,r){for(var a=r.doc,c=r.blockClass,l=r.blockSelector,u=r.inlineStylesheet,d=r.maskInputOptions,p=void 0===d?{}:d,f=r.maskInputFn,h=r.dataURLOptions,v=void 0===h?{}:h,g=r.inlineImages,m=r.recordCanvas,b=r.keepIframeSrcFn,y=r.newlyAddedElement,w=void 0!==y&&y,k=r.rootId,x=function(e,t,n){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&e.matches(n)}(t,c,l),S=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return s.test(t)?"div":t}(t),C={},I=t.attributes.length,L=0;L2&&void 0!==arguments[2]?arguments[2]:document,o={capture:!0,passive:!0};return n.addEventListener(e,t,o),function(){return n.removeEventListener(e,t,o)}}function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,r=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;st?(o&&(clearTimeout(o),o=null),r=c,e.apply(u,a)):!o&&!1!==n.trailing&&(o=setTimeout((function(){r=!1===n.leading?0:Date.now(),o=null,e.apply(u,a)}),l))}}function Ge(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,o?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),i&&i.set&&i.set.call(this,e)}}),function(){return Ge(e,t,i||{},!0)}}function Ve(e,t,n){try{if(!(t in e))return function(){};var o=e[t],r=n(o);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=r,function(){e[t]=o}}catch(i){return function(){}}}function Ke(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ze(e,t,n,o){if(!e)return!1;var r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!r)return!1;if("string"==typeof t){if(r.classList.contains(t)||o&&null!==r.closest("."+t))return!0}else if(_e(r,t,o))return!0;return!(!n||!(e.matches(n)||o&&null!==r.closest(n)))}function Ye(e,t){return t.getId(e)===c}function Je(e,t){if(Te(e))return!1;var n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Je(e.parentNode,t))}function Qe(e){return Boolean(e.changedTouches)}function $e(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function et(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function tt(e){return Boolean(null==e?void 0:e.shadowRoot)}function nt(e){return"__ln"in e}function ot(e,t){e.delete(t),t.childNodes.forEach((function(t){return ot(e,t)}))}function rt(e,t,n){return 0!==e.length&&it(e,t,n)}function it(e,t,n){var o=t.parentNode;if(!o)return!1;var r=n.getId(o);return!!e.some((function(e){return e.id===r}))||it(e,o,n)}function at(e,t){return 0!==e.size&&st(e,t)}function st(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||st(e,n))}function ct(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(n){return e.target}}function lt(e,t){var n,o,r,i=new I;D.push(i),i.init(e);var a=window.MutationObserver||window.__rrMutationObserver,s=null==(r=null==(o=null===(n=window)||void 0===n?void 0:n.Zone)?void 0:o.__symbol__)?void 0:r.call(o,"MutationObserver");s&&window[s]&&(a=window[s]);var c=new a(i.processMutations.bind(i));return c.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),c}function ut(e){var t=e.mouseInteractionCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.sampling;if(!1===a.mouseInteraction)return function(){};var s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];return Object.keys(y).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]})).forEach((function(e){var a=e.toLowerCase(),s=function(e){return function(n){var a=ct(n);if(!Ze(a,r,i,!0)){var s=Qe(n)?n.changedTouches[0]:n;if(s){var c=o.getId(a),l=s.clientX,u=s.clientY;t({type:y[e],id:c,x:l,y:u})}}}}(e);c.push(ze(a,s,n))})),function(){c.forEach((function(e){return e()}))}}function dt(e){var t=e.scrollCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=We((function(e){var a=ct(e);if(a&&!Ze(a,r,i,!0)){var s=o.getId(a);if(a===n){var c=n.scrollingElement||n.documentElement;t({id:s,x:c.scrollLeft,y:c.scrollTop})}else t({id:s,x:a.scrollLeft,y:a.scrollTop})}}),e.sampling.scroll||100);return ze("scroll",a,n)}function pt(e,t){var n=R({},e);return t||delete n.userTriggered,n}function ft(e){return function(e,t){if(j&&e.parentRule instanceof CSSGroupingRule||F&&e.parentRule instanceof CSSMediaRule||_&&e.parentRule instanceof CSSSupportsRule||B&&e.parentRule instanceof CSSConditionRule){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var o=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(o)}return t}(e,[])}function ht(e,t,n){var o,r;return e?(e.ownerNode?o=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:o}):{}}function vt(e,t){var n,o,r,i=e.mirror,a=e.stylesheetManager,s=null;s="#document"===t.nodeName?i.getId(t):i.getId(t.host);var c="#document"===t.nodeName?null==(n=t.defaultView)?void 0:n.Document:null==(r=null==(o=t.ownerDocument)?void 0:o.defaultView)?void 0:r.ShadowRoot,l=Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets");return null!==s&&-1!==s&&c&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var e;return null==(e=l.get)?void 0:e.call(this)},set:function(e){var t,n=null==(t=l.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{a.adoptStyleSheets(e,s)}catch(o){}return n}}),function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}):function(){}}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var n=e.mutationCb,o=e.mousemoveCb,r=e.mouseInteractionCb,i=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,l=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb;e.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),n.apply(void 0,arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),o.apply(void 0,arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),r.apply(void 0,arguments)},e.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),i.apply(void 0,arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),a.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),s.apply(void 0,arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),c.apply(void 0,arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),l.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),u.apply(void 0,arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),d.apply(void 0,arguments)},e.fontCb=function(){t.font&&t.font.apply(t,arguments),p.apply(void 0,arguments)},e.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),f.apply(void 0,arguments)}}(e,t);var o,r=lt(e,e.doc),i=function(e){var t=e.mousemoveCb,n=e.sampling,o=e.doc,r=e.mirror;if(!1===n.mousemove)return function(){};var i,a="number"==typeof n.mousemove?n.mousemove:50,s="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],l=We((function(e){var n=Date.now()-i;t(c.map((function(e){return e.timeOffset-=n,e})),e),c=[],i=null}),s),u=We((function(e){var t=ct(e),n=Qe(e)?e.changedTouches[0]:e,o=n.clientX,a=n.clientY;i||(i=Date.now()),c.push({x:o,y:a,id:r.getId(t),timeOffset:Date.now()-i}),l(("undefined"==typeof DragEvent?"undefined":Bn(DragEvent))<"u"&&e instanceof DragEvent?b.Drag:e instanceof MouseEvent?b.MouseMove:b.TouchMove)}),a,{trailing:!1}),d=[ze("mousemove",u,o),ze("touchmove",u,o),ze("drag",u,o)];return function(){d.forEach((function(e){return e()}))}}(e),a=ut(e),s=dt(e),c=function(e){var t=e.viewportResizeCb,n=-1,o=-1;return ze("resize",We((function(){var e=Ke(),r=Xe();(n!==e||o!==r)&&(t({width:Number(r),height:Number(e)}),n=e,o=r)}),200),window)}(e),l=function(e){var t=e.inputCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.ignoreClass,s=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,u=e.userTriggeredOnInput;function d(e){var t=ct(e),o=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(H.indexOf(t.tagName)<0)&&!Ze(t,r,i,!0)){var l=t.type;if(!t.classList.contains(a)){var d=t.value,f=!1;"radio"===l||"checkbox"===l?f=t.checked:(s[t.tagName.toLowerCase()]||s[l])&&(d=Ae({maskInputOptions:s,tagName:t.tagName,type:l,value:d,maskInputFn:c})),p(t,pt({text:d,isChecked:f,userTriggered:o},u));var h=t.name;"radio"===l&&h&&f&&n.querySelectorAll('input[type="radio"][name="'.concat(h,'"]')).forEach((function(e){e!==t&&p(e,pt({text:e.value,isChecked:!f,userTriggered:!1},u))}))}}}function p(e,n){var r=q.get(e);if(!r||r.text!==n.text||r.isChecked!==n.isChecked){q.set(e,n);var i=o.getId(e);t(N(R({},n),{id:i}))}}var f=("last"===l.input?["change"]:["input","change"]).map((function(e){return ze(e,d,n)})),h=n.defaultView;if(!h)return function(){f.forEach((function(e){return e()}))};var v=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),g=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&f.push.apply(f,An(g.map((function(e){return Ge(e[0],e[1],{set:function(){d({target:this})}},!1,h)})))),function(){f.forEach((function(e){return e()}))}}(e),u=function(e){var t=e.mediaInteractionCb,n=e.blockClass,o=e.blockSelector,r=e.mirror,i=e.sampling,a=function(e){return We((function(i){var a=ct(i);if(a&&!Ze(a,n,o,!0)){var s=a.currentTime,c=a.volume,l=a.muted,u=a.playbackRate;t({type:e,id:r.getId(a),currentTime:s,volume:c,muted:l,playbackRate:u})}}),i.media||500)},s=[ze("play",a(k.Play)),ze("pause",a(k.Pause)),ze("seeked",a(k.Seeked)),ze("volumechange",a(k.VolumeChange)),ze("ratechange",a(k.RateChange))];return function(){s.forEach((function(e){return e()}))}}(e),d=function(e,t){var n=e.styleSheetRuleCb,o=e.mirror,r=e.stylesheetManager,i=t.win,a=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(e,t){var i=ht(this,o,r.styleMirror),s=i.id,c=i.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:t}]}),a.apply(this,[e,t])};var s,c,l=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,removes:[{index:e}]}),l.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replace:e}),s.apply(this,[e])}),i.CSSStyleSheet.prototype.replaceSync&&(c=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replaceSync:e}),c.apply(this,[e])});var u={};j?u.CSSGroupingRule=i.CSSGroupingRule:(F&&(u.CSSMediaRule=i.CSSMediaRule),B&&(u.CSSConditionRule=i.CSSConditionRule),_&&(u.CSSSupportsRule=i.CSSSupportsRule));var d={};return Object.entries(u).forEach((function(e){var t=Mn(e,2),i=t[0],a=t[1];d[i]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=function(e,t){var a=ht(this.parentStyleSheet,o,r.styleMirror),s=a.id,c=a.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:[].concat(An(ft(this)),[t||0])}]}),d[i].insertRule.apply(this,[e,t])},a.prototype.deleteRule=function(e){var t=ht(this.parentStyleSheet,o,r.styleMirror),a=t.id,s=t.styleId;return(a&&-1!==a||s&&-1!==s)&&n({id:a,styleId:s,removes:[{index:[].concat(An(ft(this)),[e])}]}),d[i].deleteRule.apply(this,[e])}})),function(){i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=l,s&&(i.CSSStyleSheet.prototype.replace=s),c&&(i.CSSStyleSheet.prototype.replaceSync=c),Object.entries(u).forEach((function(e){var t=Mn(e,2),n=t[0],o=t[1];o.prototype.insertRule=d[n].insertRule,o.prototype.deleteRule=d[n].deleteRule}))}}(e,{win:n}),p=vt(e,e.doc),f=function(e,t){var n=e.styleDeclarationCb,o=e.mirror,r=e.ignoreCSSAttributes,i=e.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=function(e,t,a){var c;if(r.has(e))return s.apply(this,[e,t,a]);var l=ht(null==(c=this.parentRule)?void 0:c.parentStyleSheet,o,i.styleMirror),u=l.id,d=l.styleId;return(u&&-1!==u||d&&-1!==d)&&n({id:u,styleId:d,set:{property:e,value:t,priority:a},index:ft(this.parentRule)}),s.apply(this,[e,t,a])};var c=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=function(e){var t;if(r.has(e))return c.apply(this,[e]);var a=ht(null==(t=this.parentRule)?void 0:t.parentStyleSheet,o,i.styleMirror),s=a.id,l=a.styleId;return(s&&-1!==s||l&&-1!==l)&&n({id:s,styleId:l,remove:{property:e},index:ft(this.parentRule)}),c.apply(this,[e])},function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=c}}(e,{win:n}),h=e.collectFonts?function(e){var t=e.fontCb,n=e.doc,o=n.defaultView;if(!o)return function(){};var r=[],i=new WeakMap,a=o.FontFace;o.FontFace=function(e,t,n){var o=new a(e,t,n);return i.set(o,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),o};var s=Ve(n.fonts,"add",(function(e){return function(n){return setTimeout((function(){var e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}}));return r.push((function(){o.FontFace=a})),r.push(s),function(){r.forEach((function(e){return e()}))}}(e):function(){},v=function(e){var t=e.doc,n=e.mirror,o=e.blockClass,r=e.blockSelector,i=e.selectionCb,a=!0,s=function(){var e=t.getSelection();if(!(!e||a&&null!=e&&e.isCollapsed)){a=e.isCollapsed||!1;for(var s=[],c=e.rangeCount||0,l=0;l>2],r+=ee[(3&n[t])<<4|n[t+1]>>4],r+=ee[(15&n[t+1])<<2|n[t+2]>>6],r+=ee[63&n[t+2]];return o%3==2?r=r.substring(0,r.length-1)+"=":o%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(e);return{rr_type:o,base64:r}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[mt(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[mt(e.data,t,n),e.width,e.height]}:le(e,t)||"object"==Bn(e)?{rr_type:e.constructor.name,index:se(e,t,n)}:e}function bt(e,t,n){var o=[];try{var r=Ve(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,n=e.checkoutEveryNms,o=e.checkoutEveryNth,i=e.blockClass,a=void 0===i?"rr-block":i,s=e.blockSelector,c=void 0===s?null:s,l=e.ignoreClass,u=void 0===l?"rr-ignore":l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,f=e.maskTextSelector,h=void 0===f?null:f,v=e.inlineStylesheet,g=void 0===v||v,y=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,x=e.maskInputFn,S=e.maskTextFn,C=e.hooks,I=e.packFn,L=e.sampling,T=void 0===L?{}:L,E=e.dataURLOptions,O=void 0===E?{}:E,M=e.mousemoveWait,A=e.recordCanvas,P=void 0!==A&&A,R=e.recordCrossOriginIframes,N=void 0!==R&&R,j=e.userTriggeredOnInput,F=void 0!==j&&j,_=e.collectFonts,B=void 0!==_&&_,H=e.inlineImages,q=void 0!==H&&H,U=e.plugins,W=e.keepIframeSrcFn,G=void 0===W?function(){return!1}:W,V=e.ignoreCSSAttributes,K=void 0===V?new Set([]):V,X=!N||window.parent===window,Z=!1;if(!X)try{window.parent.document,Z=!1}catch(ye){Z=!0}if(X&&!t)throw new Error("emit function is required");void 0!==M&&void 0===T.mousemove&&(T.mousemove=M),Le.reset();var Y=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==w?w:{password:!0},J=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k}:k||{};!function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,n=new Array(t),o=0;o=o,c=n&&e.timestamp-Q.timestamp>n;(s||c)&&re(!0)}};var ne,ae=function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Mutation},e)}))},se=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Scroll},e)}))},ce=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.CanvasMutation},e)}))},le=new ve({mutationCb:ae,adoptedStyleSheetCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.AdoptedStyleSheet},e)}))}}),ue=new z({mirror:Le,mutationCb:ae,stylesheetManager:le,recordCrossOriginIframes:N,wrappedEmit:oe}),de=Pn(U||[]);try{for(de.s();!(ne=de.n()).done;){var pe=ne.value;pe.getMirror&&pe.getMirror({nodeMirror:Le,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}}catch(we){de.e(we)}finally{de.f()}ie=new he({recordCanvas:P,mutationCb:ce,win:window,blockClass:a,blockSelector:c,mirror:Le,sampling:T.canvas,dataURLOptions:O});var fe=new $({mutationCb:ae,scrollCb:se,bypassOptions:{blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskInputOptions:Y,dataURLOptions:O,maskTextFn:S,maskInputFn:x,recordCanvas:P,inlineImages:q,sampling:T,slimDOMOptions:J,iframeManager:ue,stylesheetManager:le,canvasManager:ie,keepIframeSrcFn:G},mirror:Le});re=function(){var e,t,n,o,i,s,l,u,d,f,v,b,y=arguments.length>0&&void 0!==arguments[0]&&arguments[0];oe(kt({type:m.Meta,data:{href:window.location.href,width:Xe(),height:Ke()}}),y),le.reset(),D.forEach((function(e){return e.lock()}));var w=function(e,t){var n=t||{},o=n.mirror,i=void 0===o?new r:o,a=n.blockClass,s=void 0===a?"rr-block":a,c=n.blockSelector,l=void 0===c?null:c,u=n.maskTextClass,d=void 0===u?"rr-mask":u,p=n.maskTextSelector,f=void 0===p?null:p,h=n.inlineStylesheet,v=void 0===h||h,g=n.inlineImages,m=void 0!==g&&g,b=n.recordCanvas,y=void 0!==b&&b,w=n.maskAllInputs,k=void 0!==w&&w,x=n.maskTextFn,S=n.maskInputFn,C=n.slimDOM,I=void 0!==C&&C,L=n.dataURLOptions,T=n.preserveWhiteSpace,E=n.onSerialize,O=n.onIframeLoad,M=n.iframeLoadTimeout,A=n.onStylesheetLoad,P=n.stylesheetLoadTimeout,R=n.keepIframeSrcFn;return Ue(e,{doc:e,mirror:i,blockClass:s,blockSelector:l,maskTextClass:d,maskTextSelector:f,skipChild:!1,inlineStylesheet:v,maskInputOptions:!0===k?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===k?{password:!0}:k,maskTextFn:x,maskInputFn:S,slimDOMOptions:!0===I||"all"===I?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===I,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===I?{}:I,dataURLOptions:L,inlineImages:m,recordCanvas:y,preserveWhiteSpace:T,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:void 0===R?function(){return!1}:R,newlyAddedElement:!1})}(document,{mirror:Le,blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskAllInputs:Y,maskTextFn:S,slimDOM:J,dataURLOptions:O,recordCanvas:P,inlineImages:q,onSerialize:function(e){$e(e,Le)&&ue.addIframe(e),et(e,Le)&&le.trackLinkElement(e),tt(e)&&fe.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),fe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:G});if(!w)return console.warn("Failed to snapshot the document");oe(kt({type:m.FullSnapshot,data:{node:w,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===(e=document)||void 0===e?void 0:e.documentElement.scrollLeft)||(null==(u=null==(l=null===(t=document)||void 0===t?void 0:t.body)?void 0:l.parentElement)?void 0:u.scrollLeft)||(null==(d=null===(n=document)||void 0===n?void 0:n.body)?void 0:d.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===(o=document)||void 0===o?void 0:o.documentElement.scrollTop)||(null==(v=null==(f=null===(i=document)||void 0===i?void 0:i.body)?void 0:f.parentElement)?void 0:v.scrollTop)||(null==(b=null===(s=document)||void 0===s?void 0:s.body)?void 0:b.scrollTop)||0}}})),D.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,Le.getId(document))};try{var ge=[];ge.push(ze("DOMContentLoaded",(function(){oe(kt({type:m.DomContentLoaded,data:{}}))})));var me=function(e){var t;return gt({mutationCb:ae,mousemoveCb:function(e,t){return oe(kt({type:m.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MouseInteraction},e)}))},scrollCb:se,viewportResizeCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.ViewportResize},e)}))},inputCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Input},e)}))},mediaInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleDeclaration},e)}))},canvasMutationCb:ce,fontCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Font},e)}))},selectionCb:function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Selection},e)}))},blockClass:a,ignoreClass:u,maskTextClass:p,maskTextSelector:h,maskInputOptions:Y,inlineStylesheet:g,sampling:T,recordCanvas:P,inlineImages:q,userTriggeredOnInput:F,collectFonts:B,doc:e,maskInputFn:x,maskTextFn:S,keepIframeSrcFn:G,blockSelector:c,slimDOMOptions:J,dataURLOptions:O,mirror:Le,iframeManager:ue,stylesheetManager:le,shadowDomManager:fe,canvasManager:ie,ignoreCSSAttributes:K,plugins:(null==(t=null==U?void 0:U.filter((function(e){return e.observer})))?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return oe(kt({type:m.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},C)};ue.addLoadListener((function(e){ge.push(me(e.contentDocument))}));var be=function(){re(),ge.push(me(document)),Ie=!0};return"interactive"===document.readyState||"complete"===document.readyState?be():ge.push(ze("load",(function(){oe(kt({type:m.Load,data:{}})),be()}),window)),function(){ge.forEach((function(e){return e()})),Ie=!1}}catch(ge){console.warn(ge)}}}();function qn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n4e6){var n,o=/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim,r=qn(t.matchAll(o));try{for(r.s();!(n=r.n()).done;){var i=n.value;t="image/"===i[1].toLocaleLowerCase().slice(0,6)?t.replace(i[0],"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAQSURBVHgBAQUA+v8ABRg5/wHSAVZN1mnaAAAAAElFTkSuQmCC"):t.replace(i[0],"")}}catch(a){r.e(a)}finally{r.f()}}return{event:JSON.parse(t),size:t.length}}(t).event;e.push(n)}}))}catch(t){console.error(t)}}},{key:"stop",value:function(){this.stopFunction&&this.stopFunction(),this.startDate=void 0,this.events=[],this.bufferSize=0}},{key:"getReplayData",value:function(){return{startDate:this.startDate,events:this.events,baseUrl:window.location.origin,width:window.innerWidth,height:window.innerHeight,isMobile:w(),type:"rrweb"}}}])&&Vn(t.prototype,n),o&&Vn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Jn(e,t){for(var n=0;nthis.startPoint.x&&(r=this.startPoint.x),t.y>this.startPoint.y&&(i=this.startPoint.y),this.path.setAttributeNS(null,"x",r),this.path.setAttributeNS(null,"y",i),this.path.setAttributeNS(null,"width",n),this.path.setAttributeNS(null,"height",o)}}},{key:"mouseDownRect",value:function(e){this.path=document.createElementNS("http://www.w3.org/2000/svg","rect"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",this.color),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",this.strokeWidthRect),this.startPoint=this.getMousePosition(e),this.appendPathToSvg(this.path)}},{key:"mouseDownPen",value:function(e){var t=this.color+"AA",n=this.strokeWidth;"blur"===this.tool&&(t="#000000",n=40),this.path=document.createElementNS("http://www.w3.org/2000/svg","path"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",t),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",n),this.buffer=[];var o=this.getMousePosition(e);this.appendToBuffer(o),this.strPath="M"+o.x+" "+o.y,this.path.setAttribute("d",this.strPath),this.appendPathToSvg(this.path)}},{key:"setTool",value:function(e){this.tool=e}},{key:"setColor",value:function(e){this.color=e}},{key:"getMousePosition",value:function(e){return e.touches&&e.touches.length>0?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}},{key:"getAveragePoint",value:function(e){var t=this.buffer.length;if(t%2==1||t>=this.bufferSize){var n,o,r=0,i=0,a=0;for(o=e;othis.bufferSize;)this.buffer.shift()}},{key:"appendPathToSvg",value:function(e){this.svgElement.appendChild(e),this.pathBuffer.push(e),this.rerender()}},{key:"removeLastAddedPathFromSvg",value:function(){this.pathBuffer.length<=0||!this.svgElement||(this.svgElement.removeChild(this.pathBuffer[this.pathBuffer.length-1]),this.pathBuffer.pop(),this.rerender())}},{key:"fadeOutToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=0,e.style.pointerEvents="none")}},{key:"fadeInToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=1,e.style.pointerEvents="auto")}}],n&&Jn(t.prototype,n),o&&Jn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function to(e){return to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},to(e)}function no(e,t){for(var n=0;n\n \n
'.concat(p("dismiss"),"
\n
").concat(p("rect"),'
\n
\n
\n ').concat(p("drag"),"\n
\n ").concat("capture"===this.type?'
\n '.concat(p("recorderon"),"\n ").concat(p("recorderoff"),'\n \n
\n
\n ').concat(p("mic"),'\n \n
\n
2:00
\n
\n
\n ').concat(p("pointer"),"\n
"):"",'\n
\n ').concat(p("rect"),'\n
\n
\n ').concat(p("pen"),'\n
\n
\n ').concat(p("blur"),'\n
\n
\n
\n ').concat(go.translateText("pickAColor"),'\n
\n
\n ').concat(p("undo"),'\n ').concat(go.translateText("undo"),"\n
\n ").concat("capture"!==this.type?'
'.concat(go.translateText("next"),"
"):"",'\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
').concat(go.translateText("retry"),'
\n
').concat(go.translateText("next"),"
\n
\n
\n
\n "),document.body.appendChild(e),e.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}},{key:"unregisterListeners",value:function(){this.escListener&&document.removeEventListener("keydown",this.escListener),this.pageLeaveListener&&window.removeEventListener("beforeunload",this.pageLeaveListener)}},{key:"registerListeners",value:function(){var e=this;this.escListener=function(t){var n=!1,o=!1;"key"in(t=t||window.event)&&(n="Escape"===t.key,o="Enter"===t.key),n&&e.dismiss(),"screenshot"===e.type&&o&&e.showNextStep()},document.addEventListener("keydown",this.escListener),this.pageLeaveListener=function(e){e.preventDefault(),e.returnValue=""},window.addEventListener("beforeunload",this.pageLeaveListener)}},{key:"show",value:function(e){this.callback=e,this.registerListeners(),this.hideWidgetUI(),this.createEditorUI(),this.setupMousePointer(),"screenshot"===this.type?(ki.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY}),io.disableScroll()):this.setupScreenRecording(),this.screenDrawer=new eo(this.captureScreenDrawerRerender.bind(this)),this.setupColorPicker(),this.setupToolbar()}},{key:"setupColorPicker",value:function(){for(var t=this,n=document.querySelector(".bb-capture-toolbar-item-selectedcolor"),o=document.querySelectorAll(".bb-capture-toolbar-item-color"),r=document.querySelector(".bb-capture-toolbar-item-colorpicker"),i=function(){var i=o[a],s=i.getAttribute("data-color");i.style.backgroundColor=s,i.onclick=function(){i&&(t.screenDrawer.setColor(s),r&&(r.style.display="none"),n.style.backgroundColor=i.style.backgroundColor,e.setPenColor(s))}},a=0;a0?o.classList.remove(e):o.classList.add(e))}}},{key:"captureRenderer",value:function(){if(this.screenRecorder){this.screenRecorder.file&&ki.getInstance().setGlobalDataItem("screenRecordingData",this.screenRecorder.file);var e="bb-capture-editor-item-inactive",t=document.querySelector(".bb-capture-toolbar-item-timer"),n=document.querySelectorAll(".bb-capture-toolbar-item"),o=document.querySelector(".bb-tooltip-screen-recording"),r=document.querySelector(".bb-tooltip-audio-recording"),i=document.querySelector(".bb-capture-editor"),a="bb-capture-editor-recording",s="bb-capture-editor-notrecording";this.screenRecorder.isRecording?(i.classList.add(a),i.classList.remove(s)):(i.classList.add(s),i.classList.remove(a));var c=document.querySelector(".bb-capture-toolbar");document.querySelector(".bb-capture-preview").style.display=this.screenRecorder.file?"flex":"none",c.style.display=this.screenRecorder.file?"none":"flex";for(var l=0;l0){var t=e.filter((function(e){return new Date(e.createdAt)>new Date(Date.now()-36e5)}));t.length>2?this.notifications=t.splice(0,t.length-2):this.notifications=t,this.renderNotifications()}}catch(n){}}},{key:"setNotificationCount",value:function(e){Gt.getInstance().isOpened()?(this.unreadCount=0,this.updateTabBarNotificationCount()):this.unreadCount=e,this.updateTabBarNotificationCount(),a.getInstance().updateNotificationBadge(this.unreadCount)}},{key:"showNotification",value:function(e){this.notificationContainer&&e&&e.data&&(this.notifications.find((function(t){return e.outbound===t.outbound}))||(this.notifications.push(e),e.sound&&Yo.ping()),this.notifications.length>2&&this.notifications.shift(),I(this.unreadNotificationsKey,this.notifications),this.renderNotifications())}},{key:"renderNotifications",value:function(){var e=this;if(this.notificationContainer){this.clearAllNotifications(!0);var t=document.createElement("div");t.onclick=function(){e.clearAllNotifications(),e.currentNewsIndex=0},t.className="gleap-notification-close",t.innerHTML=p("dismiss"),this.notificationContainer.appendChild(t);var n=this.notifications.filter((function(e){return e.data.news})).sort((function(e,t){return new Date(e.createdAt)-new Date(t.createdAt)})),o=this.notifications.filter((function(e){return!e.data.news}));if(n.length>0){var r=this.currentNewsIndex1){var v=document.createElement("div");v.className="gleap-news-pagination";var g=document.createElement("span");g.className="gleap-news-page-indicator",g.innerText="".concat(r+1," / ").concat(n.length),v.appendChild(g);var m=document.createElement("button");m.className="gleap-news-next-button",r\n
\n
\n '.concat(t.data.text,'\n
\n
\n
\n
\n
\n \n \n \n ').concat(t.data.nextStepTitle,"\n
\n
\n ")}else r.className="gleap-notification-item",r.innerHTML="\n ".concat(t.data.sender&&t.data.sender.profileImageUrl&&''),'\n
\n ').concat(t.data.sender?'
\n '.concat(t.data.sender.name,"\n
"):"",'\n
').concat(n,"
\n
");e.notificationContainer.appendChild(r)},y=0;y0||o.length>0||this.clearAllNotifications(!0)}}},{key:"openNews",value:function(e){e.data.news?ki.openNewsArticle(e.data.news.id,!0):ki.open()}},{key:"renderDescription",value:function(e){var t=e.data,n=t.previewText,o=t.sender;return n&&n.length>0?n:o?'\n
\n '.concat(o.profileImageUrl?'').concat(o.name,''):"","\n ").concat(o.name,"\n
\n "):""}},{key:"clearAllNotifications",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.notificationContainer)for(e||(this.notifications=[],this.currentNewsIndex=0,I(this.unreadNotificationsKey,this.notifications));this.notificationContainer.firstChild;)this.notificationContainer.removeChild(this.notificationContainer.firstChild)}},{key:"updateContainerStyle",value:function(){if(this.notificationContainer){var e=ut.getInstance().getFlowConfig(),t="gleap-notification-container--left",n="gleap-notification-container--no-button";this.notificationContainer.classList.remove(t),this.notificationContainer.classList.remove(n),e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_CLASSIC_LEFT&&e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_BOTTOM_LEFT||this.notificationContainer.classList.add(t),null===a.getInstance().buttonHidden?e.feedbackButtonPosition===a.FEEDBACK_BUTTON_NONE&&this.notificationContainer.classList.add(n):a.getInstance().buttonHidden&&this.notificationContainer.classList.add(n),this.notificationContainer.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Eo(t.prototype,n),o&&Eo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Po(e){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(e)}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function No(e){for(var t=1;t'),document.body.appendChild(t),this.bannerContainer=t}},{key:"sendMessage",value:function(e){try{var t=document.querySelector(".gleap-b-frame");t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(No(No({},e),{},{type:"banner"})),"*")}catch(n){}}},{key:"showBanner",value:function(e){this.injectBannerUI(e)}}])&&Do(t.prototype,n),o&&Do(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bo(e){return Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo(e)}function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function qo(e){for(var t=1;t\n
\n \n
\n '),document.body.appendChild(n),this.modalContainer=n,this.modalBackdropClickListener=this.modalContainer.querySelector(".gleap-modal-backdrop").addEventListener("click",(function(){var e,n;(null===(e=null===(n=t.modalData)||void 0===n?void 0:n.showCloseButton)||void 0===e||e)&&t.hideModal()})),document.body.classList.add("gleap-modal-open")}},{key:"_postMessage",value:function(e){try{var t=this.modalContainer.querySelector(".gleap-modal-frame");null!=t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(qo(qo({},e),{},{type:"modal"})),this.modalUrl)}catch(n){}}},{key:"showModal",value:function(e){e&&e.config&&this._injectModalUI(e.config)}},{key:"hideModal",value:function(){this.modalContainer&&(this.modalBackdropClickListener&&this.modalContainer.querySelector(".gleap-modal-backdrop").removeEventListener("click",this.modalBackdropClickListener),document.body.removeChild(this.modalContainer),this.modalContainer=null,document.body.classList.remove("gleap-modal-open"))}}])&&Uo(t.prototype,n),o&&Uo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function Ko(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0])||o(t.gleapCollapseUI,e)&&o(t.gleapFrameContainer,n))&&(t.gleapCollapseUI&&t.gleapCollapseUI.classList.toggle(e),t.gleapFrameContainer&&t.gleapFrameContainer.classList.toggle(n))})),wr(this,"injectCollapseUI",(function(){if(!t.injectedCollapseUI){t.injectedCollapseUI=!0;var e=document.createElement("div");e.className="gleap-admin-collapse-ui",e.innerHTML='
\n '.concat(p("arrowdown"),"\n
"),document.body.appendChild(e),t.gleapCollapseUI=e,e.addEventListener("click",(function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t.toggleCollapseUI()}))}})),wr(this,"injectFrame",(function(){var e;if(!t.injectedFrame){t.injectedFrame=!0;var n=document.createElement("div");n.className="gleap-admin-frame-container",n.innerHTML=''),document.body.appendChild(n),t.gleapFrameContainer=n,t.gleapFrame=document.querySelector(".gleap-admin-frame")}}))}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"logCurrentPage",value:function(){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.sendMessageToTourBuilder({name:"page-changed",data:{page:e}}))}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"initAdminHelper",value:function(){var e=this;Yr.getInstance().disable(),e.adminHelper=new vr;try{e.adminHelper.onElementPicked=function(t){e.toggleCollapseUI(!0),e.sendMessageToTourBuilder({name:"element-picked",data:{selector:t}})}}catch(t){console.log(t)}e.injectFrame(),e.injectCollapseUI(),e.setFrameHeight("loading")}},{key:"setFrameHeight",value:function(e){if(this.gleapFrameContainer){var t="";t="picker"===e||"navigate"===e?"65px":"editor"===e?"100vh":"0px",this.gleapFrameContainer.style.height=t}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!window.gleapAdminDisabled){var t=this;window.addEventListener("message",(function(n){if("https://app.gleap.io"===n.origin)try{var o=JSON.parse(n.data);if("admin"===o.type&&("load"===o.name&&(t.configData=o.data,t.initAdminHelper()),"smartlink-search-result"===o.name&&e.sendMessageToTourBuilder({name:"smartlink-search-result",data:o.data})),"tourbuilder"===o.type){var r;if("loaddata"===o.name&&e.sendMessageToTourBuilder({name:"data",data:br(br({},t.configData),{},{currentPage:window.location.href})}),"highlight-element"===o.name&&(document.querySelectorAll(".gleap-admin-highlight").forEach((function(e){e.classList.remove("gleap-admin-highlight")})),null!=o&&null!==(r=o.data)&&void 0!==r&&r.selector)){var i,a=document.querySelector(null==o||null===(i=o.data)||void 0===i?void 0:i.selector);a&&a.classList.add("gleap-admin-highlight")}if("smartlink-search"===o.name&&e.sendMessage({name:"smartlink-search",data:o.data}),"product-tour-started"===o.name&&e.sendMessage({name:"product-tour-started",data:o.data}),"save"===o.name&&e.sendMessage({name:"save",data:o.data}),"update-steps"===o.name&&e.sendMessage({name:"update-steps",data:o.data}),"click"===o.name)try{document.querySelector(o.data.selector).click()}catch(s){console.log(s)}"status-changed"===o.name&&(t.status=o.data,e.setFrameHeight(t.status),t.adminHelper.stopPicker(),"picker"===t.status&&t.adminHelper.startPicker())}}catch(c){}})),this.sendMessage({name:"init"}),this.startPageListener()}}},{key:"sendMessage",value:function(e){try{window&&window.opener&&window.opener.postMessage(JSON.stringify(br(br({},e),{},{type:"admin"})),"*")}catch(t){}}},{key:"sendMessageToTourBuilder",value:function(e){try{this.gleapFrame&&this.gleapFrame.contentWindow&&this.gleapFrame.contentWindow.postMessage(JSON.stringify(br(br({},e),{},{type:"tourbuilder"})),"*")}catch(t){}}}])&&yr(t.prototype,n),o&&yr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Cr(e){return function(e){if(Array.isArray(e))return Ir(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ir(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ir(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{})}function n(t){return t?e[t]:e}function o(e,t,n,o){return(e/=o/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function r(e){var t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap((function(e){var n=e.matches(t),o=Array.from(e.querySelectorAll(t));return[].concat(Cr(n?[e]:[]),o)})).filter((function(e){return"none"!==getComputedStyle(e).pointerEvents&&function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)}))}function i(e){if(e&&!function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e)){var t=n("smoothScroll");e.scrollIntoView({behavior:!t||a(e)?"auto":"smooth",inline:"center",block:"center"})}}function a(e){if(e&&e.parentElement){var t=e.parentElement;return t.scrollHeight>t.clientHeight}}var s={};function c(e,t){s[e]=t}function l(e){return e?s[e]:s}function u(){s={}}var d={};function p(e,t){d[e]=t}function f(e){var t;null==(t=d[e])||t.call(d)}function h(e){if(e){var t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};c("__activeStagePosition",n),g(n)}}function v(e){var t=function(e){var t=window.innerWidth,o=window.innerHeight,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.classList.add("gleap-tour-overlay","gleap-tour-overlay-animated"),r.setAttribute("viewBox","0 0 ".concat(t," ").concat(o)),r.setAttribute("xmlSpace","preserve"),r.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("preserveAspectRatio","xMinYMin slice"),r.style.fillRule="evenodd",r.style.clipRule="evenodd",r.style.strokeLinejoin="round",r.style.strokeMiterlimit="2",r.style.zIndex="10000",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%";var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",m(e)),i.style.fill=n("overlayColor")||"rgb(0,0,0)",i.style.opacity="".concat(n("overlayOpacity")),i.style.pointerEvents="auto",i.style.cursor="auto",r.appendChild(i),r}(e);document.body.appendChild(t),S(t,(function(e){"path"===e.target.tagName&&f("overlayClick")})),c("__overlaySvg",t)}function g(e){var t=l("__overlaySvg");if(t){var n=t.firstElementChild;if("path"!==(null==n?void 0:n.tagName))throw new Error("no path element found in stage svg");n.setAttribute("d",m(e))}else v(e)}function m(e){var t=window.innerWidth,o=window.innerHeight,r=n("stagePadding")||0,i=n("stageRadius")||0,a=e.width+2*r,s=e.height+2*r,c=Math.min(i,a/2,s/2),l=Math.floor(Math.max(c,0)),u=e.x-r+l,d=e.y-r,p=a-2*l,f=s-2*l;return"M".concat(t,",0L0,0L0,").concat(o,"L").concat(t,",").concat(o,"L").concat(t,",0Z\n M").concat(u,",").concat(d," h").concat(p," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",").concat(l," v").concat(f," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",").concat(l," h-").concat(p," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",-").concat(l," v-").concat(f," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",-").concat(l," z")}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,r=e.element,a=r;if("string"==typeof a)try{a=document.querySelector(r)}catch(u){var s=r.replace(/(#[^#\s]+)/g,(function(e){return e.replace(/:/g,"\\:")}));a=document.querySelector(s)}if(r&&!a&&t>=0)setTimeout((function(){C(),b(e,t-100)}),100);else{if(!a&&("INPUT"===e.mode||"CLICK"===e.mode))return n("onElementNotFound")(e);a||(a=function(){var e=document.getElementById("gleap-tour-dummy-element");if(e)return e;var t=document.createElement("div");return t.id="gleap-tour-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}()),function(e,t){var r,a,s=400,u=Date.now(),d=l("__activeStep"),p=l("__activeElement")||e,f=!p||p===e,v="gleap-tour-dummy-element"===e.id,m="gleap-tour-dummy-element"===p.id,b=n("animate"),y=t.onHighlightStarted||n("onHighlightStarted"),w=(null==t?void 0:t.onHighlighted)||n("onHighlighted"),k=(null==d?void 0:d.onDeselected)||n("onDeselected"),x=n(),S=l();!f&&k&&k(m?void 0:p,d,{config:x,state:S});y&&y(v?void 0:e,t,{config:x,state:S});var L=!f&&b,T=!1;C(),c("previousStep",d),c("previousElement",p),c("activeStep",t),c("activeElement",e);var E=function r(){if(l("__transitionCallback")===r){var i=Date.now()-u,a=s-i<=s/2;t.popover&&a&&!T&&L&&(I(e,t),T=!0),n("animate")&&i0&&R[0].focus()}function L(){var e=l("popover");if(null==e?void 0:e.wrapper){var t=e.wrapper.getBoundingClientRect(),o=n("stagePadding")||0,r=n("popoverOffset")||0;return{width:t.width+o+r,height:t.height+o+r,realWidth:t.width,realHeight:t.height}}}function T(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.top-r,window.innerHeight-o.realHeight-i.width),i.width):"end"===e?Math.max(Math.min(n.top-(null==o?void 0:o.realHeight)+n.height+r,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):"center"===e?Math.max(Math.min(n.top+n.height/2-(null==o?void 0:o.realHeight)/2,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):0}function E(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.left-r,window.innerWidth-o.realWidth-i.width),i.width):"end"===e?Math.max(Math.min(n.left-(null==o?void 0:o.realWidth)+n.width+r,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):"center"===e?Math.max(Math.min(n.left+n.width/2-(null==o?void 0:o.realWidth)/2,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):0}function O(e,t){var o=l("popover");if(o){var r=(null==t?void 0:t.popover)||{},i=r.align,a=void 0===i?"start":i,s=r.side,c=void 0===s?"left":s,u=a,d="gleap-tour-dummy-element"===e.id?"over":c,p=n("stagePadding")||0,f=L(),h=o.arrow.getBoundingClientRect(),v=e.getBoundingClientRect(),g=v.top-f.height,m=g>=0,b=window.innerHeight-(v.bottom+f.height),y=b>=0,w=v.left-f.width,k=w>=0,x=window.innerWidth-(v.right+f.width),S=x>=0,C=!(m||y||k||S),I=d;if("top"===d&&m?S=k=y=!1:"bottom"===d&&y?S=k=m=!1:"left"===d&&k?S=m=y=!1:"right"===d&&S&&(k=m=y=!1),"over"===d){var O=window.innerWidth/2-f.realWidth/2,M=window.innerHeight/2-f.realHeight/2;o.wrapper.style.left="".concat(O,"px"),o.wrapper.style.right="auto",o.wrapper.style.top="".concat(M,"px"),o.wrapper.style.bottom="auto"}else if(C){var A=window.innerWidth/2-(null==f?void 0:f.realWidth)/2;o.wrapper.style.left="".concat(A,"px"),o.wrapper.style.right="auto",o.wrapper.style.bottom="".concat(10,"px"),o.wrapper.style.top="auto"}else if(k){var P=Math.min(w,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),R=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(P,"px"),o.wrapper.style.top="".concat(R,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="left"}else if(S){var N=Math.min(x,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),D=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.right="".concat(N,"px"),o.wrapper.style.top="".concat(D,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.left="auto",I="right"}else if(m){var j=Math.min(g,window.innerHeight-f.realHeight-h.width),F=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.top="".concat(j,"px"),o.wrapper.style.left="".concat(F,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="top"}else if(y){var _=Math.min(b,window.innerHeight-(null==f?void 0:f.realHeight)-h.width),B=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(B,"px"),o.wrapper.style.bottom="".concat(_,"px"),o.wrapper.style.top="auto",o.wrapper.style.right="auto",I="bottom"}C?o.arrow.classList.add("gleap-tour-popover-arrow-none"):function(e,t,n){var o=l("popover");if(!o)return;var r=n.getBoundingClientRect(),i=L(),a=o.arrow,s=i.width,c=window.innerWidth,u=r.width,d=r.left,p=i.height,f=window.innerHeight,h=r.top,v=r.height;a.className="gleap-tour-popover-arrow";var g=t,m=e;"top"===t?(d+u<=0?(g="right",m="end"):d+u-s<=0&&(g="top",m="start"),d>=c?(g="left",m="end"):d+s>=c&&(g="top",m="end")):"bottom"===t?(d+u<=0?(g="right",m="start"):d+u-s<=0&&(g="bottom",m="start"),d>=c?(g="left",m="start"):d+s>=c&&(g="bottom",m="end")):"left"===t?(h+v<=0?(g="bottom",m="end"):h+v-p<=0&&(g="left",m="start"),h>=f?(g="top",m="end"):h+p>=f&&(g="left",m="end")):"right"===t&&(h+v<=0?(g="bottom",m="start"):h+v-p<=0&&(g="right",m="start"),h>=f?(g="top",m="start"):h+p>=f&&(g="right",m="end"));g?(a.classList.add("gleap-tour-popover-arrow-side-".concat(g)),a.classList.add("gleap-tour-popover-arrow-align-".concat(m))):a.classList.add("gleap-tour-popover-arrow-none")}(u,I,e)}}return function(){function e(){n("allowClose")&&h()}function o(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e+1;t[o]?f(o):h()}}function r(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e-1;t[o]?f(o):h()}}function i(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),o=l("__activeStep"),i=l("__activeElement");if("CLICK"!==o.mode)if(void 0!==t&&void 0!==o)if(void 0!==l("activeIndex")){var a=(null==(e=o.popover)?void 0:e.onPrevClick)||n("onPrevClick");if(a)return a(i,o,{config:n(),state:l()});r()}}}function a(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),r=l("__activeStep"),i=l("__activeElement");if("CLICK"!==r.mode&&void 0!==t&&void 0!==r){var a=(null==(e=r.popover)?void 0:e.onNextClick)||n("onNextClick");if(a)return a(i,r,{config:n(),state:l()});o()}}}function s(){l("isInitialized")||(c("isInitialized",!0),document.body.classList.add("gleap-tour-active",n("animate")?"gleap-tour-fade":"gleap-tour-simple"),window.addEventListener("keyup",x,!1),window.addEventListener("keydown",k,!1),window.addEventListener("resize",w),window.addEventListener("scroll",w),p("overlayClick",e),p("escapePress",e),p("arrowLeftPress",i),p("arrowRightPress",a))}function f(){var e,t,o,r,i,a,s,l,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,d=n("steps");if(!d)return console.error("No steps to drive through"),void h();if(d[u]){c("__activeOnDestroyed",document.activeElement),c("activeIndex",u);var p=d[u],v=d[u+1],g=d[u-1],m=(null==(e=p.popover)?void 0:e.doneBtnText)||n("doneBtnText")||"Done",y=n("allowClose"),w=void 0!==(null==(t=p.popover)?void 0:t.showProgress)?null==(o=p.popover)?void 0:o.showProgress:n("showProgress"),k=((null==(r=p.popover)?void 0:r.progressText)||n("progressText")||"{{current}} of {{total}}").replace("{{current}}","".concat(u+1)).replace("{{total}}","".concat(d.length)),x=(null==(i=p.popover)?void 0:i.showButtons)||n("showButtons"),S=["next","previous"].concat(Cr(y?["close"]:[])).filter((function(e){return!(null==x?void 0:x.length)||x.includes(e)})),C=(null==(a=p.popover)?void 0:a.onNextClick)||n("onNextClick"),I=(null==(s=p.popover)?void 0:s.onPrevClick)||n("onPrevClick"),L=(null==(l=p.popover)?void 0:l.onCloseClick)||n("onCloseClick");b(Tr(Tr({},p),{},{popover:Tr({showButtons:S,nextBtnText:v?void 0:m,disableButtons:Cr(g?[]:["previous"]),showProgress:w,progressText:k,onNextClick:C||function(){v?f(u+1):h()},onPrevClick:I||function(){f(u-1)},onCloseClick:L||function(){h()}},(null==p?void 0:p.popover)||{})}))}else h()}function h(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=l("__activeElement"),o=l("__activeStep"),r=l("__activeOnDestroyed"),i=n("onDestroyStarted");if(e&&i){i(!t||"gleap-tour-dummy-element"===(null==t?void 0:t.id)?void 0:t,o,{config:n(),state:l()})}else{var a,s,c,p=(null==o?void 0:o.onDeselected)||n("onDeselected"),f=n("onDestroyed");if(document.body.classList.remove("gleap-tour-active","gleap-tour-fade","gleap-tour-simple"),window.removeEventListener("keyup",x),window.removeEventListener("resize",w),window.removeEventListener("scroll",w),(s=l("popover"))&&(null==(a=s.wrapper.parentElement)||a.removeChild(s.wrapper)),function(){var e;null==(e=document.getElementById("gleap-tour-dummy-element"))||e.remove(),document.querySelectorAll(".gleap-tour-active-element").forEach((function(e){e.classList.remove("gleap-tour-active-element","gleap-tour-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}))}(),(c=l("__overlaySvg"))&&c.remove(),d={},u(),t&&o){var h="gleap-tour-dummy-element"===t.id;p&&p(h?void 0:t,o,{config:n(),state:l()}),f&&f(h?void 0:t,o,{config:n(),state:l()})}r&&r.focus()}}return t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{isActive:function(){return l("isInitialized")||!1},refresh:w,drive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;s(),f(e)},setConfig:t,setSteps:function(e){u(),t(Tr(Tr({},n()),{},{steps:e}))},getConfig:n,getState:l,getActiveIndex:function(){return l("activeIndex")},isFirstStep:function(){return 0===l("activeIndex")},isLastStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&t===e.length-1},getActiveStep:function(){return l("activeStep")},getActiveElement:function(){return l("activeElement")},getPreviousElement:function(){return l("previousElement")},getPreviousStep:function(){return l("previousStep")},moveNext:o,movePrevious:r,moveTo:function(e){(n("steps")||[])[e]?f(e):h()},hasNextStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t+1]},hasPreviousStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t-1]},highlight:function(e){s(),b(Tr(Tr({},e),{},{popover:e.popover?Tr({showButtons:[],showProgress:!1,progressText:""},e.popover):void 0}))},destroy:function(){h(!1)}}}}();const Mr=Or;function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}function Pr(){Pr=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new M(o||[]);return r(a,"_invoke",{value:L(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",v="completed",g={};function m(){}function b(){}function y(){}var w={};l(w,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&o.call(x,a)&&(w=x);var S=y.prototype=m.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(r,i,a,s){var c=d(e[r],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ar(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function L(t,n,o){var r=p;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var c=T(s,o);if(c){if(c===g)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===p)throw r=v,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var l=d(t,n,o);if("normal"===l.type){if(r=o.done?v:f,l.arg===g)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(r=v,o.method="throw",o.arg=l.arg)}}}function T(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.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,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];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=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Rr(e,t){for(var n=0;n=0&&t.productTourData&&t.productTourData.steps){var e=t.productTourData.steps[t.currentActiveIndex];e&&e.selector&&""!==e.selector&&t.updatePointerPosition(document.querySelector(e.selector),e)}})))}var t,n,o;return t=e,n=[{key:"disable",value:function(){this.disabled=!0,this.cleanup()}},{key:"startWithConfig",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;"undefined"!=typeof window&&(this.productTourId||this.disabled||(this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0,this.onCompleteCallback=n,this.start()))}},{key:"storeUncompletedTour",value:function(){if("undefined"!=typeof window)if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Fr,JSON.stringify(e))}catch(t){}else localStorage.removeItem(Fr)}},{key:"attachScrollListeners",value:function(e,t){var n=this;if("undefined"!=typeof window&&e){var o=function(e){if("undefined"!=typeof window){for(var t=[],n=e.parentElement;n;){var o=window.getComputedStyle(n);("auto"===o.overflowY||"scroll"===o.overflowY)&&n.scrollHeight>n.clientHeight&&t.push(n),n=n.parentElement}return t}}(e);o.push(window),o.forEach((function(o){var r=function(){clearTimeout(n._scrollDebounceTimer),n._scrollDebounceTimer=setTimeout((function(){n.updatePointerPosition(e,t)}),150)};o.addEventListener("scroll",r,{passive:!0}),n._scrollListeners.push({el:o,handler:r})}))}}},{key:"removeScrollListeners",value:function(){"undefined"!=typeof window&&(this._scrollListeners&&this._scrollListeners.length>0&&(this._scrollListeners.forEach((function(e){var t=e.el,n=e.handler;t.removeEventListener("scroll",n)})),this._scrollListeners=[]),this._scrollDebounceTimer&&(clearTimeout(this._scrollDebounceTimer),this._scrollDebounceTimer=null))}},{key:"updatePointerPosition",value:function(e,t){var n,o=this;if("undefined"!=typeof window)try{var r=this._pointerContainer||document.getElementById(_r);if(!r)return;if(!e)return r.style.position="fixed",r.style.left="50%",r.style.top="50%",r.style.transform="translate(-50%, -50%)",function(e){if("undefined"!=typeof window){var t=e-window.innerHeight/2;window.scrollTo({top:t,behavior:"smooth"})}}(window.innerHeight/2),this.removeScrollListeners(),this._currentAnchor=null,void(this._currentStep=null);n=e,"undefined"!=typeof window&&n&&n.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});var i=0;!function n(){if(function(e){if("undefined"!=typeof window){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}}(e)||i>=20){var a=e.getBoundingClientRect(),s=a.left+a.width/2,c=a.top+a.height/2+10;r.style.position="fixed",r.style.left="".concat(s,"px"),r.style.top="".concat(c,"px"),r.style.transform="translate(-50%, -50%)";var l=350;l>window.innerWidth-40&&(l=window.innerWidth-40),s+l>window.innerWidth-20?r.classList.add("copilot-pointer-container-right"):r.classList.remove("copilot-pointer-container-right"),o._currentAnchor===e&&o._currentStep===t||(o.removeScrollListeners(),o._currentAnchor=e,o._currentStep=t,o.attachScrollListeners(e,t))}else i++,setTimeout(n,100)}()}catch(a){}}},{key:"cleanup",value:function(){var e=this;"undefined"!=typeof window&&(document.body.classList.add("gl-copilot-fade-out"),setTimeout((function(){if(e._pointerContainer)e._pointerContainer.remove(),e._pointerContainer=null;else{var t=document.getElementById(_r);t&&t.remove()}var n=document.getElementById(Hr);n&&n.remove();var o=document.getElementById(Br);o&&o.remove(),document.body.classList.remove("gl-copilot-fade-out")}),800),this.removeScrollListeners())}},{key:"toggleAudio",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.audioMuted=e,this.currentAudio&&(this.currentAudio.muted=this.audioMuted),document.querySelector(".".concat(Hr,"-mute")).innerHTML=p(this.audioMuted?"unmute":"mute")}},{key:"setupCopilotTour",value:function(){var e,t,n,o,r,i,a=this;if("undefined"!=typeof window){var s,c,l=null!==(e=null===(t=ut.getInstance().flowConfig)||void 0===t?void 0:t.color)&&void 0!==e?e:"#485BFF",u=d(l),f=document.getElementById(Br);f||((f=document.createElement("style")).id=Br,f.type="text/css",f.textContent="\n #".concat(_r," {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n align-items: flex-start;\n pointer-events: none;\n z-index: 2147483610;\n transition: all 0.5s ease;\n }\n .").concat(_r,"-clickmode {\n cursor: pointer;\n pointer-events: all !important;\n }\n .").concat(_r,"-clickmode #copilot-info-bubble-content {\n display: flex !important;\n }\n .").concat(_r,"-clickmode svg {\n display: none !important;\n }\n #").concat(_r," svg {\n width: 20px;\n height: auto;\n fill: none;\n }\n #copilot-info-bubble {\n position: relative;\n }\n #copilot-info-bubble-content-container {\n position: absolute;\n top: 0px;\n left: 0px;\n min-width: min(300px, 80vw);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n .").concat(_r,"-right #copilot-info-bubble-content-container {\n left: auto !important;\n right: 0px !important;\n align-items: flex-end;\n }\n .").concat(_r,"-right .copilot-info-bubble-content {\n margin-right: 5px;\n }\n .").concat(_r,"-right svg {\n transform: scaleX(-1);\n }\n #copilot-info-bubble-content svg {\n width: 16px;\n height: 16px;\n display: inline-block !important;\n margin-left: 5px;\n }\n #copilot-info-bubble-content {\n margin-top: 18px;\n margin-left: 5px;\n padding: 10px 15px;\n border-radius: 20px;\n background-color: black;\n color: white;\n font-family: Arial, sans-serif;\n font-size: 14px;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);\n max-width: 100%;\n white-space: normal;\n overflow-wrap: break-word;\n word-break: normal;\n hyphens: none;\n }\n .").concat(_r,"-right #copilot-info-bubble-content {\n margin-top: 30px;\n margin-left: 0px;\n margin-right: 5px;\n }\n .click-wave {\n position: absolute;\n width: 34px;\n height: 34px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n pointer-events: none;\n z-index: 2147483611;\n animation: click-wave-animation 0.8s ease forwards;\n }\n @keyframes click-wave-animation {\n 0% {\n transform: scale(0.2);\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n }\n @keyframes slideInFromTop {\n 0% {\n transform: translateY(-100%);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n }\n .").concat(Hr," {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 2147483610;\n background: #fff;\n padding: 6px;\n border-radius: 10px;\n box-shadow: 0 0 20px 0 #C294F2;\n display: flex;\n align-items: center;\n gap: 8px;\n border: 1px solid rgba(192, 146, 242, 0.5);\n animation: slideInFromTop 0.5s ease-out forwards;\n }\n .").concat(Hr," span {\n font-size: 13px;\n color: #000;\n font-family: sans-serif;\n }\n .").concat(Hr,"-avatar {\n width: 24px;\n height: 24px;\n flex-shrink: 0;\n border-radius: 6px;\n }\n .").concat(Hr,"-mute {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .").concat(Hr,"-mute svg {\n width: 20px;\n height: auto;\n cursor: pointer;\n animation: pulsate 2s infinite;\n }\n .").concat(Hr,"-mute svg:hover {\n opacity: 0.8;\n }\n .").concat(Hr,"-dismiss {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-right: 3px;\n }\n .").concat(Hr,"-dismiss svg {\n width: 15px;\n height: auto;\n cursor: pointer;\n }\n .").concat(Hr,"-dismiss svg:hover {\n opacity: 0.8;\n }\n @keyframes pulsate {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n 50% {\n transform: scale(1.1);\n opacity: 0.8;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n }\n @keyframes glCoFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n @keyframes glCoFadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n .gleap-audio-unmute-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483620;\n }\n\n .gleap-audio-unmute-modal {\n background-color: #fff;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);\n text-align: center;\n max-width: 90%;\n width: 400px;\n }\n\n .gleap-audio-unmute-modal p {\n margin-bottom: 20px;\n font-size: 16px;\n line-height: 22px;\n font-weight: normal;\n }\n\n .gleap-audio-unmute-button {\n background: ").concat(l,";\n color: ").concat(u,";\n outline: none;\n border: none;\n padding: 10px 14px;\n border-radius: 12px;\n font-size: 14px;\n font-weight: bold;\n cursor: pointer;\n }\n\n .gleap-audio-unmute-button:hover {\n opacity: 0.8;\n }\n\n .gleap-tour-continue-button {\n color: ").concat(l,";\n text-decoration: none;\n cursor: pointer;\n font-size: 14px;\n font-weight: bold;\n border: none;\n background: none;\n padding: 0;\n margin: 0;\n margin-left: 20px;\n }\n\n .gleap-tour-continue-button:hover {\n opacity: 0.8;\n }\n\n body.gl-copilot-fade-out::before,\n body.gl-copilot-fade-out::after,\n body.gl-copilot-fade-out #").concat(Hr," {\n animation: glCoFadeOut 0.8s ease-out forwards;\n }\n ").concat(null===(s=null===(c=this.productTourData)||void 0===c?void 0:c.playVoice)||void 0===s||s?"":"\n .".concat(Hr,"-mute {\n display: none;\n }\n "),"\n ").concat(this.productTourData.gradient?'body::before {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n box-sizing: border-box;\n border: 18px solid transparent;\n filter: blur(25px);\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }\n \n body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0.5;\n box-sizing: border-box;\n border: 3px solid transparent;\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }':'body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0;\n }',"\n "),document.head.appendChild(f));var h=document.createElement("div");h.id=_r,h.style.opacity=0,this._pointerContainer=h;var v=document.createElementNS("http://www.w3.org/2000/svg","svg");v.setAttribute("viewBox","0 0 380 476"),v.innerHTML='';var g=document.createElement("div");g.id="copilot-info-bubble",g.innerHTML="
";var m=document.createElement("div");m.id=Hr,m.classList.add(Hr),m.innerHTML='\n \n ').concat(null===(o=this.productTourData)||void 0===o?void 0:o.kaiSlug,'\n
\n ').concat(p(this.audioMuted?"unmute":"mute"),"\n
\n ").concat(null!==(r=this.productTourData)&&void 0!==r&&r.allowClose?'
\n ').concat(p("dismiss"),"\n
"):"","\n "),document.body.appendChild(m),document.querySelector(".".concat(Hr,"-mute")).addEventListener("click",(function(){a.toggleAudio(!a.audioMuted)})),null!==(i=this.productTourData)&&void 0!==i&&i.allowClose&&document.querySelector(".".concat(Hr,"-dismiss")).addEventListener("click",(function(){a.completeTour(!1)})),h.appendChild(v),h.appendChild(g),document.body.appendChild(h)}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this.productTourData;t&&function(){return qr.apply(this,arguments)}().then((function(n){e.audioMuted=!n,e.setupCopilotTour(),e.audioMuted&&null!=t&&t.showUnmuteModal?e.showAudioUnmuteModal():setTimeout((function(){e.renderNextStep()}),1500)}))}}},{key:"showAudioUnmuteModal",value:function(){var e,t,n,o=this,r=document.createElement("div");r.classList.add("gleap-audio-unmute-modal-overlay");var i=document.createElement("div");i.classList.add("gleap-audio-unmute-modal");var a=document.createElement("p");a.textContent=null===(e=this.productTourData)||void 0===e?void 0:e.unmuteModalTitle,i.appendChild(a);var s=document.createElement("button");s.classList.add("gleap-audio-unmute-button"),s.textContent=null===(t=this.productTourData)||void 0===t?void 0:t.unmuteModalButton,s.addEventListener("click",(function(){o.toggleAudio(!1),r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(s);var c=document.createElement("button");c.classList.add("gleap-tour-continue-button"),c.textContent=null===(n=this.productTourData)||void 0===n?void 0:n.unmuteModalContinue,c.addEventListener("click",(function(){r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(c),r.appendChild(i),document.body.appendChild(r)}},{key:"completeTour",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];"undefined"!=typeof window&&(this.cleanup(),this.onCompleteCallback&&this.onCompleteCallback(e))}},{key:"renderNextStep",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this,n=this.productTourData.steps;if(this.currentActiveIndex>=n.length)setTimeout((function(){e.completeTour()}),500);else{var o=n[this.currentActiveIndex],r=function(n){if(e._pointerContainer.style.display="flex",o.selector&&o.selector.length>0&&!n)e.completeTour(!1);else{var r=function(){if("INPUT"===o.mode&&n){var e,r=function(){document.querySelector("#".concat(_r)).classList.remove("copilot-pointer-container-clickmode"),n.classList.remove("gleap-input-highlight"),document.getElementById(_r).style.display="none",t.currentActiveIndex++,t.storeUncompletedTour(),t.renderNextStep()};if("default"===(null!==(e=o.inputType)&&void 0!==e?e:"default")){var i=function e(t){var o;if(0!==(null==t||null===(o=t.target)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.length)){var i=document.getElementById("copilot-info-bubble-content");i&&(i.innerHTML="".concat(go.translateText("next"),' \n \n'),i.addEventListener("click",r,{once:!0}),n.classList.add("gleap-input-highlight"),document.querySelector("#".concat(_r)).classList.add("copilot-pointer-container-clickmode"),n.removeEventListener("input",e))}};n.addEventListener("input",i,{once:!1}),n.hasAttribute("contenteditable")&&n.addEventListener("keyup",i,{once:!1}),n.addEventListener("blur",(function(){n.focus()}),{once:!0}),n.focus()}else{var a,s=null!==(a=o.inputValue)&&void 0!==a?a:"",c=0;!function e(){c0})).length;return Math.ceil(t/3.6)+1}}(i),s=function(){e.currentAudio=void 0,setTimeout((function(){r()}),1e3*a)};o.voice&&o.voice.length>0?(e.currentAudio=new Audio(o.voice),e.audioMuted&&(e.currentAudio.muted=!0),e.currentAudio.addEventListener("ended",(function(){setTimeout((function(){r()}),1e3)})),e.currentAudio.play().then((function(){})).catch((function(e){s()}))):s()}},i=o.selector?function(e){if("undefined"!=typeof window){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3)/100,n=0;return new Promise((function(o,r){var i=setInterval((function(){var a=document.querySelector(e);a?(clearInterval(i),o(a)):n>=t&&(clearInterval(i),r(new Error("Element not found for selector: ".concat(e)))),n++}),100)}))}}(o.selector):Promise.resolve(null);i.then(r).catch((function(){return r(null)}))}}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Rr(t.prototype,n),o&&Rr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zr(e){return zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(e)}function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0;if(!this.productTourId&&!this.disabled){this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0;var r=this;$e.getInstance().validateProductTour(e).then((function(){return o>0?setTimeout((function(){r.start()}),o):n.start()})).catch((function(e){console.log("Product tour is not live. Cleaning up..."),console.error(e),r.onComplete(!1)}))}}},{key:"onComplete",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={tourId:this.productTourId};e?(kn.notifyEvent("productTourCompleted",t),ki.trackEvent("tour-".concat(this.productTourId,"-completed"),t)):(kn.notifyEvent("productTourQuit",t),ki.trackEvent("tour-".concat(this.productTourId,"-quit"),t)),this.gleapTourObj&&this.gleapTourObj.destroy(),this.gleapTourObj=void 0,this.productTourData=void 0,this.productTourId=void 0,this.currentActiveIndex=void 0,this.clearUncompletedTour()}},{key:"loadUncompletedTour",value:function(){try{var e=JSON.parse(localStorage.getItem(Zr));if(null!=e&&e.tourData&&null!=e&&e.tourId)return e}catch(t){}return null}},{key:"storeUncompletedTour",value:function(){if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Zr,JSON.stringify(e))}catch(t){}else this.clearUncompletedTour()}},{key:"clearUncompletedTour",value:function(){try{localStorage.removeItem(Zr)}catch(e){}}},{key:"start",value:function(){var e=this,t=this.productTourData;if(t){if("cobrowse"===t.tourType)return Ur.getInstance().startWithConfig(this.productTourId,t,(function(t){e.onComplete(t)}));this.unmuted=!1;for(var n=t.steps,o=this,r=[],i=0;i\n \n
').concat(p("unmute"),"
\n ");else{var d="";t.sender&&t.sender.firstName&&(u=!0,d='
\n
\n
').concat(t.sender.firstName,"
\n
")),l="".concat(d,'
').concat(a.message,"
")}var f={disableActiveInteraction:!s&&!c,mode:a.mode,popover:Gr({description:l,popoverClass:"gleap-tour-popover-".concat(a.type," ").concat(!u&&"gleap-tour-popover-no-sender"," ").concat(t.allowClose&&"gleap-tour-popover-can-close")},s?{showButtons:[]}:{})};a.selector&&a.selector.length>0&&(f.element=a.selector),r.push(f)}var h=["next","close"];t.backButton&&h.push("previous"),this.gleapTourObj=Mr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({showProgress:!0,allowKeyboardControl:!1,steps:r},"showProgress",n.length>1),"allowClose",t.allowClose),"nextBtnText",t.nextText),"doneBtnText",t.doneText),"prevBtnText",t.prevText),"showButtons",h),"onHighlightStarted",(function(t,n,o){var r;e.currentActiveIndex=null==o||null===(r=o.state)||void 0===r?void 0:r.activeIndex,e.storeUncompletedTour()})),"onElementNotFound",(function(t){document.removeEventListener("click",v),e.onComplete(!1)})),"onDestroyStarted",(function(){e.gleapTourObj.hasNextStep()?e.onComplete(!1):e.onComplete(!0),document.removeEventListener("click",v)})),"onPopoverRender",(function(t){if(t)for(var n=document.querySelectorAll(".gleap-tour-popover-description img, .gleap-tour-popover-description video"),r=function(){setTimeout((function(){e.gleapTourObj.refresh()}),500),setTimeout((function(){e.gleapTourObj.refresh()}),750)},i=0;ie.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return go.translateText(e)||t}},{key:"_translateWithVars",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return go.translateTextWithVars(e,t)||n}},{key:"getCheckIcon",value:function(){return'\n \n '}},{key:"loadChecklist",value:function(){if(this._isSessionReady&&this._networkManager){var e=this.getAttribute("checklistId");e?(this.activeStep=-1,this._initialActiveSet=!1,this.validateChecklist(e)):(this.renderResponse(),this.checklistData=null,this._hasLoaded=!1)}}},{key:"getQueryParams",value:function(){var e=this._getGleapSessionInstance();if(null==e||!e.session)return"";var t=e.session,n="en";try{void 0!==go&&(n=go.getInstance().getActiveLanguage()||"en")}catch(o){}return"gleapId=".concat(t.gleapId||"","&gleapHash=").concat(t.gleapHash||"","&lang=").concat(n)}},{key:"makeRequest",value:function(e,t,n,o){var r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=new XMLHttpRequest;i.open(e,t);try{r.injectSession(i)}catch(a){}n&&i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.onreadystatechange=function(){4===i.readyState&&o(i)},i.onerror=function(){o(i)},i.send(n?JSON.stringify(n):null)}else o({readyState:4,status:0,responseText:"Session unavailable",_isMock:!0})}},{key:"validateChecklist",value:function(e){var t=this;if(this._isSessionReady&&this._networkManager){this.checklistData=null,this._hasLoaded=!1,this.renderResponse();var n=this.getAttribute("sharedKey");this._networkManager.validateChecklist(e,n).then((function(e){t.isConnected&&t._isSessionReady&&e&&t.fetchChecklist(e)})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1}))}}},{key:"fetchChecklist",value:function(e){var t=this;this._isSessionReady&&this._networkManager&&(this._isInitialLoad=!this._hasLoaded,this._networkManager.fetchChecklist(e).then((function(e){if(!t.isConnected||!t._isSessionReady||!e)return t._hasLoaded=!1,t.checklistData=null,void t._checkSessionAndLoad();if(t.checklistData=e,t._hasLoaded=!0,"done"!==e.status){if(t._isInitialLoad&&!t._initialActiveSet){var n,o=(null===(n=e.outbound)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.steps)||[],r=e.completedSteps||[],i=o.findIndex((function(e){return!r.includes(e.id)}));t.activeStep=i>=0?i:-1,-1!==t.activeStep&&(t._initialActiveSet=!0)}t.renderChecklist(t.checklistData)}else t.renderResponse()})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1})))}},{key:"updateChecklist",value:function(e,t){var n,o,r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=r.apiUrl;if(i){var a=r.session,s=null!==(n=null==a?void 0:a.gleapId)&&void 0!==n?n:"",c=null!==(o=null==a?void 0:a.gleapHash)&&void 0!==o?o:"",l="en";try{void 0!==go&&(l=go.getInstance().getActiveLanguage()||"en")}catch(d){}var u="".concat(i,"/outbound/checklists/").concat(e);t.checkedStep&&(u+="/increment/".concat(t.checkedStep)),u+="?gleapId=".concat(s,"&gleapHash=").concat(c,"&lang=").concat(l),this.makeRequest("PUT",u,t,(function(e){e._isMock||200!==e.status&&e.status}))}}}},{key:"handleChecklistUpdate",value:function(e){if(this._hasLoaded&&this.checklistData){var t=e.detail;if(t&&t.id===this.checklistData.id){var n=$r(this.checklistData.completedSteps||[]),o=!1,r=!1,i=this.activeStep;if(t.completedSteps&&JSON.stringify(t.completedSteps)!==JSON.stringify(n)&&(this.checklistData.completedSteps=$r(t.completedSteps),o=!0,-1!==i)){var a,s=null===(a=this.checklistData.outbound)||void 0===a||null===(a=a.config)||void 0===a||null===(a=a.steps)||void 0===a||null===(a=a[i])||void 0===a?void 0:a.id;s&&this.checklistData.completedSteps.includes(s)&&!n.includes(s)&&(r=!0)}if(t.status&&t.status!==this.checklistData.status&&(this.checklistData.status=t.status,o=!0),r){for(var c,l=(null===(c=this.checklistData.outbound)||void 0===c||null===(c=c.config)||void 0===c?void 0:c.steps)||[],u=-1,d=i+1;d1&&void 0!==arguments[1]?arguments[1]:"checklist-floating",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(null===(t=e.config)||void 0===t?void 0:t.steps)||[],a=(null===(n=this.checklistData)||void 0===n?void 0:n.completedSteps)||[],s=0;if(this.progressbarEnabled&&i.length>0){var c=i.length,l=a.length;s=c>0?l/c*100:0}var u,d,p=i.find((function(e){return!a.includes(e.id)})),f=i.length>0?p?p.title||this._translateWithVars("stepDefaultTitle",{index:i.indexOf(p)+1},"Step ".concat(i.indexOf(p)+1)):"":e.subject||"",h=i.length>0?p&&p.description||"":e.message||"";r&&(f=(null===(u=e.config)||void 0===u?void 0:u.successTitle)||"",h=(null===(d=e.config)||void 0===d?void 0:d.successMessage)||"",s=100);var v=2*Math.PI*7,g=v-s/100*v,m="checklist-floating-header"===o,b=m?'\n \n \n ':'\n \n ';return'\n
\n
\n
\n \n \n \n \n
\n
').concat(f,"
\n ").concat(r?"":''.concat(b,""),'\n
\n
').concat(h,"
\n
\n ")}},{key:"renderInfoSection",value:function(e){var t;if(!this.infoEnabled||!e)return"";var n=e.subject||this._translate("checklistDefaultTitle","Checklist"),o=e.message||"",r="";return null!==(t=e.sender)&&void 0!==t&&t.profileImageUrl&&(r='\n
\n ').concat(e.sender.firstName||\n ').concat(e.sender.firstName||"","\n
")),'\n
\n '.concat(n?'
'.concat(n,"
"):"","\n ").concat(o?'
'.concat(o,"
"):"","\n ").concat(r,"\n
")}},{key:"renderProgressSection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!this.progressbarEnabled||!e.length)return"";var n=e.length,o=t.length,r=n>0?o/n*100:0,i=0;e.forEach((function(e){!t.includes(e.id)&&e.duration>0&&(i+=e.duration)}));var a=this._translateWithVars("taskProgress",{a:o,b:n},"".concat(o," of ").concat(n," done")),s=i>0?this._translateWithVars("aboutMinutes",{a:i},"About ".concat(i," min left")):"";return'\n
\n
'.concat(a,"
\n ").concat(s?'
'.concat(s,"
"):"",'\n
\n
\n
\n
')}},{key:"renderTasks",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&0!==t.length?t.map((function(t,o){var r=n.includes(t.id),i=e.activeStep===o,a=r?''.concat(e.getCheckIcon(),""):''.concat(o+1,""),s=t.title||e._translateWithVars("stepDefaultTitle",{index:o+1},"Step ".concat(o+1)),c=t.description||"",l=t.actionTitle||e._translate("actionDefaultTitle","Action"),u=t.action&&"none"!==t.action?'
\n \n
"):"",d=e._translate("markAsDone","Mark as done"),p=t.allowMarkDone&&!r?'
\n ').concat(e.getCheckIcon(),'\n
').concat(d,"
\n
"):"",f=["checklist-task",r?"checklist-task--done":"",i?"checklist-task--active":""].filter(Boolean).join(" ");return'\n
\n
\n ').concat(a,'\n
').concat(s,'
\n \n \n \n \n \n
\n
\n
\n ').concat(c?'
'.concat(c,"
"):"","\n ").concat(u,"\n ").concat(p,"\n
\n
\n
")})).join(""):"

".concat(this._translate("noStepsDefined","No steps defined."),"

")}},{key:"renderChecklist",value:function(e){var t;if(this._hasLoaded&&e&&e.outbound){var n=e.outbound,o=(null===(t=n.config)||void 0===t?void 0:t.steps)||[],r=e.completedSteps||[],i="";if("done"===e.status||o.length>0&&r.length>=o.length){var a,s,c=(null===(a=n.config)||void 0===a?void 0:a.successTitle)||"",l=(null===(s=n.config)||void 0===s?void 0:s.successMessage)||"";i=this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-launcher",!0):'\n
\n
\n '.concat(this.getCheckIcon(),'\n
\n
').concat(c,'
\n
').concat(l,"
\n
"),-1!==this.activeStep&&(this.activeStep=-1)}else i='\n
\n '.concat(this.floatingEnabled?"":this.renderInfoSection(n),"\n ").concat(this.floatingEnabled?"":this.renderProgressSection(o,r),"\n ").concat(this.floatingEnabled?this.renderFloatingLauncher(n):"",'\n
\n ').concat(this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-header"):"","\n ").concat(this.renderTasks(o,r),"\n
\n
");var u=ut.getInstance().getFlowConfig(),d=u.color?u.color:"#485BFF",p="\n \n ');this.shadowRoot.innerHTML=p+i,this.addTaskEventListeners(),this.floatingEnabled&&this.addFloatingClickListeners(),-1!==this.activeStep&&this.toggleTask(this.activeStep,!0)}else this._checkSessionAndLoad()}},{key:"updateActiveTaskMaxHeight",value:function(){if(-1!==this.activeStep){var e=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body-inner')),t=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body'));if(e&&t){var n=e.offsetHeight;t.style.setProperty("--task-body-active-height","".concat(n,"px"))}}}},{key:"addTaskEventListeners",value:function(){var e=this;this.shadowRoot.querySelectorAll(".checklist-task").forEach((function(t){var n=t.querySelector(".checklist-task-header"),o=parseInt(t.getAttribute("data-task-index"),10);n&&n.addEventListener("click",(function(){var t=e.activeStep===o?-1:o;e.setActiveStep(t)}));var r=t.querySelector(".checklist-task-body-markdone");r&&r.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps){var r=e.checklistData.outbound.config.steps[o];if(r){var i=e.activeStep;if(e.checklistData.completedSteps||(e.checklistData.completedSteps=[]),!e.checklistData.completedSteps.includes(r.id)){e.checklistData.completedSteps.push(r.id);var a=e.checklistData.outbound.config.steps,s=-1;if(i===o){for(var c=o+1;c0&&e.checklistData.completedSteps.length>=a.length&&(e.checklistData.status="done",l.status="done"),e.updateChecklist(e.checklistData.id,l)}}}}));var i=t.querySelector(".checklist-task-body-action .action-button");i&&i.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps&&void 0!==ki){var r=e.checklistData.outbound.config.steps[o];if(r&&r.action&&"none"!==r.action)try{"BOT"===r.action?ki.startBot(r.botId):"CUSTOM_ACTION"===r.action?ki.triggerCustomAction(r.actionBody):"REDIRECT_URL"===r.action?ki.openURL(r.actionBody,!!r.actionOpenInNewTab):"FEEDBACK_FLOW"===r.action?ki.startFeedbackFlow(r.formId):"NEWS_ARTICLE"===r.action?ki.openNewsArticle(r.articleId):"HELP_ARTICLE"===r.action?ki.openHelpCenterArticle(r.articleId):"CHECKLIST"===r.action&&ki.startChecklist(r.checklistId,!0,null==r?void 0:r.sharedKey)}catch(i){}}}))}))}},{key:"setActiveStep",value:function(e){var t=this,n=this.activeStep;this.activeStep=e;var o=[];-1!==n&&n!==this.activeStep&&o.push({index:n,open:!1}),-1!==this.activeStep&&this.activeStep!==n&&o.push({index:this.activeStep,open:!0}),o.forEach((function(e){var n=e.index,o=e.open;t.toggleTask(n,o)}))}},{key:"toggleTask",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(e,'"]'));if(n){var o=n.querySelector(".checklist-task-header");if(o){var r=n.classList.contains("checklist-task--active"),i=null!==t?t:!r;if(i&&!r){n.classList.add("checklist-task--active"),o.setAttribute("aria-expanded","true");var a=n.querySelector(".checklist-task-body-inner");if(a){var s=a.offsetHeight,c=n.querySelector(".checklist-task-body");c&&c.style.setProperty("--task-body-active-height","".concat(s,"px"))}}else!i&&r&&(n.classList.remove("checklist-task--active"),o.setAttribute("aria-expanded","false"))}}}}],r=[{key:"observedAttributes",get:function(){return["checklistId","info","progressbar","dark","floating","sharedKey"]}}],o&&ti(n.prototype,o),r&&ti(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ri(HTMLElement));"undefined"==typeof customElements||customElements.get("gleap-checklist")||customElements.define("gleap-checklist",e)}}();var gi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hi(this,"initialized",!1),hi(this,"offlineMode",!1),hi(this,"disablePageTracking",!1),hi(this,"disableInAppNotifications",!1),hi(this,"globalData",{screenRecordingData:null,webReplay:null,snapshotPosition:{x:0,y:0}}),"undefined"!=typeof window&&(Yt.getInstance(),on.getInstance().start(),dn.getInstance().start(),xr.getInstance().start())}var t,n,o;return t=e,n=[{key:"isLiveMode",value:function(){if(!0===this.offlineMode)return!1;var e=window.location.hostname;return!(["localhost","127.0.0.1","0.0.0.0","","::1"].includes(e)||e.startsWith("192.168.")||e.startsWith("10.0.")||e.endsWith(".local")||!e.includes("."))}},{key:"softReInitialize",value:function(){Gt.getInstance().destroy(),ut.getInstance().start().then((function(){a.getInstance().refresh(),Ao.getInstance().injectNotificationUI()})).catch((function(e){console.warn("Failed to initialize Gleap.")}))}},{key:"performActions",value:function(t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"INFO";on.getInstance().addLog(e,t)}},{key:"initialize",value:function(t){var n=this.getInstance();if(n.initialized)console.warn("Gleap already initialized.");else{n.initialized=!0;try{!function(){try{if("visualViewport"in window&&/iPad|iPhone|iPod/.test(navigator.userAgent)){var e=function(){try{var e=document.querySelector(".gleap-frame-container-inner iframe");if(!e)return;window.visualViewport.height1&&void 0!==arguments[1]&&arguments[1];Gt.getInstance().urlHandler(e,t)}},{key:"checkForUrlParams",value:function(){if("undefined"!=typeof window&&window.location.search)try{var t=new URLSearchParams(window.location.search),n=t.get("gleap_widget");n&&n.length>0&&e.open();var o=t.get("gleap_conversation");o&&o.length>0&&("true"===o?e.startConversation(!0):e.startBot(o,!0));var r=t.get("gleap_feedback");r&&r.length>0&&e.startFeedbackFlow(r);var i=t.get("gleap_survey"),a=t.get("gleap_survey_format");i&&i.length>0&&e.showSurvey(i,"survey_full"===a?"survey_full":"survey");var s=t.get("gleap_tour");if(s&&s.length>0){var c=parseInt(t.get("gleap_tour_delay"));isNaN(c)&&(c=2),setTimeout((function(){e.startProductTour(s)}),1e3*c)}}catch(l){}}},{key:"destroy",value:function(){Zn.getInstance().stop(),rt.getInstance().stop(),Gt.getInstance().destroy(),a.getInstance().toggleFeedbackButton(!1),Ao.getInstance().clearAllNotifications(!0),$e.getInstance().clearSession(0,!1),_o.getInstance().removeBannerUI()}},{key:"closeBanner",value:function(){_o.getInstance().removeBannerUI()}},{key:"closeModal",value:function(){Go.getInstance().hideModal()}},{key:"setUseCookies",value:function(e){$e.getInstance().useCookies=e}},{key:"identify",value:function(e,t,n){return $e.getInstance().identifySession(e,k(t),n)}},{key:"updateContact",value:function(e){return $e.getInstance().updateSession(k(e))}},{key:"clearIdentity",value:function(){$e.getInstance().clearSession()}},{key:"getIdentity",value:function(){return $e.getInstance().getSession()}},{key:"isUserIdentified",value:function(){var e=$e.getInstance().session;return!!(e&&e.userId&&e.userId.length>0)}},{key:"isOpened",value:function(){return Gt.getInstance().isOpened()}},{key:"hide",value:function(){Gt.getInstance().hideWidget()}},{key:"setMaxNetworkRequests",value:function(e){b.getInstance().setMaxRequests(e)}},{key:"startNetworkLogger",value:function(){b.getInstance().start()}},{key:"setNetworkLogsBlacklist",value:function(e){b.getInstance().setBlacklist(e)}},{key:"setNetworkLogPropsToIgnore",value:function(e){b.getInstance().setFilters(e)}},{key:"setReplayOptions",value:function(e){Zn.getInstance().setOptions(e)}},{key:"close",value:function(){Gt.getInstance().hideWidget()}},{key:"open",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().showWidget()}},{key:"trackEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"logEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"preFillForm",value:function(e){var t=k(e);Lo.getInstance().formPreFill=t,Gt.getInstance().sendMessage({name:"prefill-form-data",data:t},!0)}},{key:"on",value:function(e,t){kn.on(e,t)}},{key:"enableShortcuts",value:function(e){e?ko.getInstance().start():ko.getInstance().stop()}},{key:"showFeedbackButton",value:function(e){a.getInstance().toggleFeedbackButton(e)}},{key:"setAppVersionCode",value:function(e){Yt.setAppVersionCode(e)}},{key:"setAppBuildNumber",value:function(e){Yt.setAppBuildNumber(e)}},{key:"setWSApiUrl",value:function(e){$e.getInstance().wsApiUrl=e}},{key:"setApiUrl",value:function(e){$e.getInstance().apiUrl=e}},{key:"setBannerUrl",value:function(e){_o.getInstance().setBannerUrl(e)}},{key:"setModalUrl",value:function(e){Go.getInstance().setModalUrl(e)}},{key:"setFrameUrl",value:function(e){Gt.getInstance().frameUrl=e}},{key:"setTicketAttribute",value:function(e,t){gn.getInstance().setTicketAttribute(e,t)}},{key:"unsetTicketAttribute",value:function(e){gn.getInstance().unsetTicketAttribute(e)}},{key:"clearTicketAttributes",value:function(){gn.getInstance().clearTicketAttributes()}},{key:"attachCustomData",value:function(e){gn.getInstance().attachCustomData(e)}},{key:"setCustomData",value:function(e,t){gn.getInstance().setCustomData(e,t)}},{key:"removeCustomData",value:function(e){gn.getInstance().removeCustomData(e)}},{key:"clearCustomData",value:function(){gn.getInstance().clearCustomData()}},{key:"playSound",value:function(e){Yo.playSound(e)}},{key:"showTabNotificationBadge",value:function(e){var t=Ao.getInstance();t.showNotificationBadge=e,t.updateTabBarNotificationCount()}},{key:"setLanguage",value:function(t){go.getInstance().setOverrideLanguage(t),e.getInstance().initialized&&setTimeout((function(){e.getInstance().softReInitialize(),e.updateContact({lang:t})}),1e3)}},{key:"registerCustomAction",value:function(e){En.registerCustomAction(e)}},{key:"triggerCustomAction",value:function(e){En.triggerCustomAction(e)}},{key:"setStyles",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#ffffff",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:20,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:20,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:a.FEEDBACK_BUTTON_BOTTOM_LEFT;L((function(){!function(e,t,n,o,r,i,s,c){var l=d(e),p=d(n),f=d(r),h=d(t),v="#ffffff"===f,g=u(t,"#ffffff"===h?-35:-15),m=u(r,v?100:-120),b=u(r,v?30:-12),y=u(r,v?80:-30),w=(o=parseInt(o,10),Math.round(1.05*o)),k=Math.round(.8*o),x=Math.round(.6*o),S=Math.round(.4*o),C=Math.round(.25*o),I=57+s;c===a.FEEDBACK_BUTTON_CLASSIC_BOTTOM?I=s+15:(c&&c.includes("CLASSIC")||c===a.FEEDBACK_BUTTON_NONE)&&(I=s);var L='\n .gleap-font, .gleap-font * {\n font-style: normal;\n font-variant-caps: normal;\n font-variant-ligatures: normal;\n font-variant-numeric: normal;\n font-variant-east-asian: normal;\n font-weight: normal;\n font-stretch: normal;\n font-size: 100%;\n line-height: 1;\n font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n }\n .gleap-input-highlight {\n box-shadow: 0 0 0 3px '.concat(e," !important;\n }\n .gleap-frame-container {\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n width: calc(100% - 40px);\n max-width: 410px;\n position: fixed;\n z-index: ").concat(2147483631,";\n visibility: visible;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.16);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n animation-duration: .3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n user-select: none;\n pointer-events: none;\n transition: max-width 0.3s ease-out;\n }\n\n .gleap-admin-highlight {\n box-shadow: 0px 0px 0px 4px red;\n }\n\n :root {\n --gleap-margin-top: 50px;\n }\n\n .gleap-tooltip-anchor {\n position: relative;\n display: inline-block;\n float: left;\n max-width: 0px;\n width: 17px;\n }\n\n .gleap-tooltip-hotspot {\n position: absolute;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n }\n\n @keyframes gleap-pulse {\n 0% {\n transform: scale(0);\n opacity: 0.25;\n }\n 45% {\n transform: scale(2.5);\n opacity: 0;\n }\n 100% {\n transform: scale(0);\n opacity: 0;\n }\n }\n\n .gleap-tooltip-hotspot-animation {\n position: absolute;\n border-radius: 17px;\n opacity: 0.25;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n animation: gleap-pulse 5s infinite;\n }\n\n .gleap-tooltip-hotspot svg {\n width: 17px;\n height: 17px;\n object-fit: contain;\n display: block;\n }\n\n .gleap-tooltip-inner {\n position: relative;\n overflow: visible;\n font-size: 14px;\n font-weight: normal;\n color: #000;\n line-height: 1.3;\n }\n\n .gleap-tooltip {\n position: absolute;\n background-color: #fff;\n color: #000;\n font-size: 15px;\n line-height: 18px;\n padding: 16px;\n padding-top: 8px;\n padding-bottom: 8px;\n border-radius: 4px;\n max-width: min(350px, 80vw);\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.2s, visibility 0.2s;\n z-index: ").concat(2147483700,";\n }\n\n .gleap-tooltip a {\n color: ").concat(e,";\n text-decoration: underline;\n display: inline !important;\n margin: 0px !important;\n padding: 0px !important;\n word-break: break-word;\n }\n\n .gleap-tooltip ul {\n padding-left: 16px;\n }\n\n .gleap-tooltip b {\n font-weight: 600;\n }\n\n .gleap-tooltip h2 {\n font-size: 18px;\n line-height: 20px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip h3 {\n font-size: 16px;\n line-height: 18px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip p {\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip img {\n max-width: 100%;\n max-height: 300px;\n width: 100%;\n height: auto;\n object-fit: cover;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip iframe,\n .gleap-tooltip video {\n max-width: 100%;\n width: 100%;\n height: auto;\n min-height: 200px;\n display: block;\n border: none;\n outline: none;\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip-arrow {\n position: absolute;\n width: 20px;\n height: 20px;\n }\n\n .gleap-tooltip-arrow svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n\n .gleap-b-frame {\n width: 100%;\n height: 100%;\n border: none;\n pointer-events: auto;\n padding: 0px;\n margin: 0px;\n }\n\n .gleap-b-shown {\n transition: margin 0.3s ease-out;\n margin-top: var(--gleap-margin-top);\n position: relative;\n z-index: 10000;\n }\n\n .gleap-b-f {\n margin-top: 0px;\n }\n\n .gleap-b {\n display: none;\n position: absolute;\n top: calc(-1 * var(--gleap-margin-top));\n left: 0px;\n width: 100vw;\n height: var(--gleap-margin-top);\n z-index: ").concat(2147483699,";\n }\n\n @keyframes gleapSlideIn {\n from {\n top: calc(-1 * var(--gleap-margin-top));\n }\n to {\n top: 10px;\n }\n }\n\n .gleap-b-f .gleap-b {\n position: fixed;\n top: 10px;\n animation: gleapSlideIn .25s ease-out forwards;\n max-width: 800px;\n width: calc(100% - 20px);\n left: 50%;\n z-index: ").concat(2147483699,";\n transform: translateX(-50%);\n border-radius: ").concat(S,"px;\n overflow: hidden;\n box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15), 0px 5px 5px rgba(0, 0, 0, 0.05);\n }\n\n .gleap-b-shown .gleap-b {\n display: block;\n }\n\n .gleap-image-view {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n z-index: ").concat(2147483699,";\n background-color: ").concat(f,"cc;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-image-view-image {\n width: 90%;\n height: auto;\n max-width: 90%;\n max-height: 90%;\n object-fit: contain;\n }\n\n .gleap-image-view-close {\n position: fixed;\n top: 20px;\n right: 20px;\n width: 32px;\n height: 32px;\n opacity: 0.8;\n z-index: ").concat(2147483740,";\n box-shadow: 0px 5px 18px rgba(0, 0, 0, 0.16);\n cursor: pointer;\n }\n\n .gleap-image-view-close:hover {\n opacity: 1;\n }\n\n .gleap-image-view-close svg path {\n fill: ").concat(r,";\n }\n\n [dir=rtl].gleap-frame-container {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,'px;\n }\n\n .gleap-frame-container--loading iframe {\n opacity: 0;\n }\n\n .gleap-frame-container--loading::before {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 130deg,\n ').concat(g," 0%,\n ").concat(t,' 100%\n );\n }\n \n .gleap-frame-container--loading::after {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 180deg,\n transparent 60%,\n ').concat(r,"1A 70%,\n ").concat(r," 100%\n );\n }\n\n .gleap-frame-container--loading-nogradient::before {\n max-height: 340px;\n background: ").concat(t," !important;\n }\n\n .gleap-frame-container--loading-nofade::after {\n display: none !important;\n }\n\n .gleap-frame-container--survey {\n bottom: ").concat(s,"px !important;\n }\n\n .gleap-frame-container--extended {\n max-width: 690px !important;\n }\n\n .gleap-frame-container--survey-full {\n position: fixed;\n top: 0 !important;\n left: 0 !important;\n bottom: 0 !important;\n right: 0 !important;\n width: 100vw !important;\n max-width: 100vw !important;\n height: 100vh !important;\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(6px);\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n max-height: 100vh !important;\n border-radius: 0 !important;\n animation-name: none !important;\n }\n\n .gleap-frame-container--survey-full .gleap-frame-container-inner {\n max-width: 640px !important;\n width: calc(100% - 24px);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n }\n\n .gleap-frame-container--classic {\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--classic-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--modern-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n [dir=rtl].gleap-frame-container--modern-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n .gleap-frame-container--animate {\n pointer-events: auto !important;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n @keyframes gleapFadeInUpMobile {\n from {\n opacity: 0;\n transform: translate3d(0, 10%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n .gleap-notification-container {\n position: fixed;\n bottom: ").concat(I,"px;\n right: ").concat(i,"px;\n z-index: ").concat(2147483630,";\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n width: 100%;\n max-width: min(340px, 80vw);\n }\n\n .gleap-notification-container--left {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container--left {\n left: initial !important;\n right: ").concat(i,"px !important;\n align-items: flex-start !important;\n }\n\n .gleap-notification-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n .gleap-notification-item {\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n .gleap-notification-close {\n border-radius: 100%;\n width: 28px;\n height: 28px;\n background-color: ").concat(m,";\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 8px;\n cursor: pointer;\n visibility: hidden;\n pointer-events: none;\n }\n\n .gleap-notification-container:hover .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n }\n\n .gleap-notification-close svg {\n width: 45%;\n height: 45%;\n object-fit: contain;\n fill: ").concat(r,";\n }\n\n .gleap-notification-item-checklist-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n cursor: pointer;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-checklist-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n width: 100%;\n width: min(310px, 70vw);\n max-width: min(310px, 70vw);\n }\n\n .gleap-notification-item-checklist-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 10px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-checklist-content-progress {\n width: 100%;\n height: 8px;\n border-radius: 8px;\n background-color: ").concat(b,";\n }\n\n .gleap-notification-item-checklist-content-progress-inner {\n height: 100%;\n border-radius: 8px;\n background-color: ").concat(e,";\n }\n\n .gleap-notification-item-checklist-content-next {\n color: ").concat(m,";\n font-size: 15px;\n font-weight: normal;\n line-height: 21px;\n margin-top: 10px;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n }\n\n .gleap-notification-item-checklist-content-next svg {\n height: 18px;\n margin-right: 5px;\n width: auto;\n }\n\n .gleap-notification-item-checklist-content-next b {\n font-size: 15px;\n font-weight: normal;\n color: ").concat(f,";\n }\n\n .gleap-notification-item-news {\n width: 100%;\n }\n\n .gleap-news-pagination {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 10px;\n width: 100%;\n }\n\n .gleap-news-page-indicator {\n font-size: 12px;\n color: ").concat(m,";\n }\n\n .gleap-news-next-button {\n background-color: ").concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 5px 10px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;^\n }\n\n .gleap-notification-item-news-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n }\n\n .gleap-notification-item-news-preview {\n color: ").concat(m,";\n font-size: 14px;\n line-height: 21px;\n font-weight: 400;\n overflow-wrap: break-word;\n word-break: break-word;\n display: block;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-news-sender {\n display: flex;\n align-items: center;\n color: ").concat(m,";\n font-size: 15px;\n line-height: 21px;\n font-weight: 400;\n }\n \n .gleap-notification-item-news-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 6px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n cursor: pointer;\n }\n\n .gleap-notification-item-news-sender img {\n border-radius: 100%;\n height: 20px;\n margin-right: 8px;\n object-fit: cover;\n width: 20px;\n }\n\n [dir=rtl] .gleap-notification-item-news-sender img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-news-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-news-image {\n background-color: ").concat(m,";\n height: 170px;\n max-height: 170px;\n object-fit: cover;\n width: 100%;\n cursor: pointer;\n }\n \n .gleap-notification-item-news-content-title:hover {\n color: ").concat(e,";\n }\n\n .gleap-notification-item {\n display: flex;\n align-items: flex-end;\n cursor: pointer;\n }\n\n .gleap-notification-item img {\n width: 32px;\n height: 32px;\n min-width: 32px;\n border-radius: 100%;\n object-fit: cover;\n margin-right: 8px;\n margin-bottom: 12px;\n cursor: pointer;\n }\n\n [dir=rtl] .gleap-notification-item img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-container {\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n border-bottom-left-radius: 0px;\n padding: 20px;\n background-color: ").concat(r,";\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 15px;\n line-height: 21px;\n color: ").concat(f,';\n position: relative;\n }\n\n .gleap-notification-item-container::after {\n content: " ";\n position: absolute;\n bottom: 0px;\n width: 0px;\n height: 0px;\n left: -6px;\n border-style: solid;\n border-width: 0px 0px 10px 6px;\n border-color: transparent transparent ').concat(r,";\n }\n\n .gleap-notification-item-sender {\n color: ").concat(m,";\n line-height: 20px;\n }\n\n .gleap-notification-item-content {\n line-height: 20px;\n color: ").concat(f,";\n margin-top: 4px;\n min-width: min(200px, 50vw);\n word-wrap: break-word;\n word-break: break-word;\n }\n\n .gleap-frame-container-inner {\n position: relative;\n width: 100%;\n height: calc(100vh - ").concat(130+s,"px);\n max-height: ").concat(700,'px;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: calc(100vh - 40px);\n }\n \n .gleap-frame-container-inner:before {\n content: " ";\n position: absolute;\n width: 100%;\n height: calc(100% - ').concat(k,"px);\n top: ").concat(k,"px;\n background-color: ").concat(r,";\n z-index: -1;\n }\n \n .gleap-frame-container iframe {\n height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n display: block !important;\n pointer-events: auto !important;\n }\n \n .gleap-frame-container--hidden {\n display: none !important;\n pointer-events: none;\n animation: none !important;\n }\n \n .bb-feedback-button {\n margin: 0px;\n position: fixed;\n bottom: ").concat(s,"px;\n right: ").concat(i,"px;\n border-radius: 30px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n color: #000000;\n z-index: ").concat(2147483630,";\n box-sizing: border-box;\n display: flex;\n align-items: center;\n padding: 0px;\n }\n\n [dir=rtl].bb-feedback-button {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n \n .bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n\n [dir=rtl].bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: ").concat(i,'px;\n left: auto;\n }\n \n .bb-feedback-button--disabled {\n display: none !important;\n }\n\n .bb-feedback-button--hidden {\n display: none !important;\n }\n \n .bb-feedback-button-text {\n padding: 8px 12px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n background-color: #fff;\n border-radius: 8px;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.15);\n position: relative;\n z-index: 99;\n }\n \n .bb-feedback-button-text:before {\n content: "";\n position: absolute;\n box-shadow: rgba(0, 0, 0, 0.04) 6px 6px 5px;\n transform: rotate(315deg);\n bottom: 16px;\n right: -4px;\n border-width: 10px;\n border-style: solid;\n border-color: transparent #fff #fff transparent;\n }\n \n .bb-feedback-button--bottomleft .bb-feedback-button-text:before {\n display: none;\n }\n \n .bb-feedback-button-text:after {\n content: "";\n position: absolute;\n bottom: 12px;\n right: 0px;\n background-color: #fff;\n width: 5px;\n height: 30px;\n }\n \n .bb-feedback-button-text-title {\n font-family: sans-serif;\n font-size: 14px;\n color: #666;\n line-height: 18px;\n max-width: 220px;\n }\n \n .bb-feedback-button-text-title b {\n color: #000000;\n font-weight: 600;\n }\n\n .bb-notification-bubble {\n position: absolute;\n top: -5px;\n right: -5px;\n min-width: 12px;\n padding: 0px 4px;\n height: 20px;\n min-width: 20px;\n border-radius: 20px;\n background-color: red;\n color: #fff;\n font-size: 11px;\n font-family: sans-serif;\n text-align: center;\n line-height: 20px;\n }\n\n .bb-notification-bubble--hidden {\n display: none;\n }\n \n .bb-feedback-button-icon {\n width: 48px;\n height: 48px;\n border-radius: 48px;\n background-color: #485bff;\n transition: box-shadow, transform 0.2s ease-in-out;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n position: relative;\n }\n \n .bb-feedback-button-classic {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n top: 50%;\n right: 0px;\n position: fixed;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n padding: 9px 20px;\n text-align: center;\n background-color: #485bff;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n font-family: sans-serif;\n font-size: 16px;\n color: #fff;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.25);\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n \n .bb-feedback-button-classic--left {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--left {\n top: 50%;\n right: 0px;\n left: auto;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n }\n \n .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n right: ').concat(i,"px;\n left: auto;\n }\n \n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n left: ").concat(i,"px;\n right: auto;\n }\n\n .bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n \n .bb-feedback-button--open.bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeOutRight;\n }\n \n .bb-feedback-button .bb-logo-logo {\n position: absolute;\n width: 30px;\n height: 30px;\n top: 9px;\n left: 9px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n position: absolute;\n width: 14px;\n height: 14px;\n top: 17px;\n left: 17px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button--open .bb-logo-arrowdown {\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button--open .bb-logo-logo {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button-icon:hover {\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25), 0px 0px 20px rgba(0, 0, 0, 0.2);\n transform: scale(1.1);\n }\n \n .bb-feedback-button--open .bb-feedback-button-text {\n animation-name: bbFadeOutDown;\n }\n \n .bb-feedback-button--open .bb-feedback-button-icon {\n display: flex;\n }\n \n .bb-capture-svg {\n position: fixed;\n z-index: ").concat(2147483614,";\n top: 0px;\n left: 0px;\n right: 0px;\n width: 100%;\n height: 100%;\n padding: 0px;\n margin: 0px;\n cursor: crosshair;\n }\n\n .bb-capture-svg--preview {\n cursor: auto !important;\n }\n \n .bb-rec-on-circle {\n animation-name: bbRecIconFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-rec-on-cont {\n animation-name: bbRecIconContFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-capture-editor-drag-info {\n position: fixed;\n top: -200px;\n left: 0px;\n z-index: ").concat(2147483616,";\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-editor-drag-info svg {\n width: 24px;\n height: 24px;\n }\n \n .bb-capture-editor-borderlayer {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n border: 4px solid ").concat(e,";\n cursor: crosshair;\n z-index: ").concat(2147483610,";\n box-sizing: border-box;\n pointer-events: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-borderlayer {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n .bb-capture-editor-recording .bb-capture-editor-borderlayer {\n border: 4px solid #eb144c !important;\n }\n \n .bb-capture-editor-recording .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-editor-item-inactive {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-toolbar-drawingitem {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-svg {\n pointer-events: none !important;\n }\n \n .bb-capture-toolbar {\n position: fixed;\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,";\n background-color: #fff;\n padding: 5px;\n display: flex;\n align-items: center;\n border-radius: 8px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-dismiss {\n position: fixed;\n top: 0px;\n right: 0px;\n z-index: ").concat(2147483618,";\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n width: 36px;\n height: 36px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: ").concat(e,";\n border-bottom-left-radius: ").concat(C,"px;\n }\n\n [dir=rtl] .bb-capture-dismiss {\n top: 0px;\n left: 0px;\n right: auto;\n border-bottom-left-radius: 0px !important;\n border-bottom-right-radius: ").concat(C,"px;\n }\n \n .bb-capture-dismiss svg path {\n fill: ").concat(l,';\n }\n \n .bb-capture-dismiss svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n \n .bb-capture-button-next {\n font-family: sans-serif;\n box-sizing: border-box;\n font-weight: 600;\n text-align: center;\n width: auto;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n margin: 0px;\n line-height: 36px;\n padding: 0px 12px;\n font-size: 15px;\n margin-left: 12px;\n }\n\n [dir=rtl].bb-capture-editor .bb-capture-button-next {\n margin-left: auto;\n margin-right: 12px;\n }\n \n .bb-capture-toolbar-item-spacer {\n width: 1px;\n height: 38px;\n min-width: 1px;\n margin: 0px 5px;\n }\n \n .bb-capture-toolbar-item {\n width: 42px;\n height: 38px;\n min-width: 42px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n position: relative;\n margin-right: 5px;\n }\n\n .drag-handle-item {\n cursor: grab !important;\n width: 34px;\n min-width: 34px;\n }\n\n .drag-handle-item svg {\n width: 18px !important;\n height: 18px !important;\n }\n \n .bb-capture-toolbar-item svg {\n width: 23px;\n height: 23px;\n object-fit: contain;\n }\n \n .bb-capture-toolbar-item-selectedcolor {\n border-radius: 100%;\n width: 20px;\n height: 20px;\n background-color: #db4035;\n }\n \n .bb-capture-toolbar-item[data-type="undo"] svg {\n width: 18px;\n height: 18px;\n }\n \n .bb-capture-toolbar-item[data-active="true"] {\n position: relative;\n }\n \n .bb-capture-preview {\n display: none;\n background-color: rgba(0, 0, 0, 0.6);\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n justify-content: center;\n align-items: center;\n z-index: ').concat(2147483620,";\n }\n \n .bb-capture-preview-inner {\n background-color: #fff;\n padding: 0px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n flex-direction: column;\n max-width: 640px;\n width: 100%;\n margin: 20px;\n }\n \n .bb-capture-preview-inner video {\n border-radius: 8px 8px 0px 0px;\n display: block;\n border: 0px;\n outline: none;\n width: 100%;\n max-height: 60vh;\n }\n \n .bb-capture-preview-buttons {\n display: flex;\n justify-content: space-between;\n padding: 14px;\n }\n \n .bb-capture-preview-retrybutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-sendbutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-retrybutton:hover,\n .bb-capture-preview-sendbutton:hover {\n opacity: 0.9;\n }\n \n .bb-capture-toolbar-item-recording {\n margin-right: 0px;\n }\n \n .bb-capture-toolbar-item-recording svg {\n width: 33px;\n height: 33px;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n position: fixed;\n top: 70px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,';\n background-color: #fff;\n display: none;\n padding: 10px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n }\n \n .bb-capture-toolbar-item-color {\n width: 20px;\n height: 20px;\n border-radius: 100%;\n margin-right: 12px;\n box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-toolbar-item-color:hover {\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);\n }\n \n .bb-capture-toolbar-item-color:last-of-type {\n margin-right: 0px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color {\n margin-right: auto;\n margin-left: 12px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color:last-of-type {\n margin-right: auto;\n margin-left: 0px;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:first-of-type {\n display: none;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:nth-of-type(2) {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:first-of-type {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:nth-of-type(2) {\n display: none;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #eee;\n }\n \n .bb-capture-toolbar-item:hover svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #f8f8f8;\n }\n \n .bb-capture-toolbar-item--active svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--inactivecross::before {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 3px;\n width: 26px;\n margin: auto;\n border-radius: 4px;\n background-color: #e80000;\n transform: rotate(45deg);\n }\n \n .bb-capture-toolbar-item--inactivecross svg {\n fill: #eee;\n }\n \n .bb-capture-toolbar-item-timer {\n text-align: left;\n line-height: 32px;\n font-size: 14px;\n font-family: sans-serif;\n margin: 5px;\n min-width: 40px;\n display: none;\n }\n \n .bb-capture-toolbar-item .bb-tooltip {\n background-color: #555;\n color: #fff;\n visibility: hidden;\n font-size: 14px;\n font-family: sans-serif;\n text-align: center;\n padding: 5px 10px;\n position: absolute;\n z-index: 1;\n top: 45px;\n left: 0px;\n transform: translateX(calc(-50% + 21px));\n opacity: 0;\n transition: opacity 0.3s;\n white-space: nowrap;\n }\n \n .bb-capture-toolbar-item .bb-tooltip::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n transform: rotate(180deg);\n border-color: #555 transparent transparent transparent;\n }\n \n .bb-capture-toolbar-item:hover .bb-tooltip {\n visibility: visible;\n opacity: 1;\n }\n \n .bb-capture-options {\n display: none;\n }\n \n .bb-capture-options--active {\n display: flex;\n }\n\n @keyframes bbFadeOutRight {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbFadeOutDown {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n }\n \n @keyframes bbFadeInOpacity {\n from {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n @keyframes bbZoomOut {\n from {\n opacity: 1;\n }\n \n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbZoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n 50% {\n opacity: 1;\n }\n }\n \n @keyframes bbRecIconContFade {\n 0% {\n fill: #b10802;\n }\n 50% {\n fill: #ff0000;\n }\n 100% {\n fill: #b10802;\n }\n } \n .bb-capture-preview-retrybutton {\n color: ').concat(f,";\n border-radius: ").concat(w,"px;\n background-color: ").concat(b,";\n }\n .bb-capture-preview-retrybutton:hover {\n background-color: ").concat(y,";\n }\n @keyframes bb-suc-fill {\n 100% {\n box-shadow: inset 0px 0px 0px 30px ").concat(e,";\n }\n }\n .bb-capture-toolbar-item-spacer {\n background-color: ").concat(b,";\n }\n .bb-tooltip {\n border-radius: ").concat(S,"px;\n }\n @keyframes bbRecIconFade {\n 0% {\n fill: transparent;\n }\n 50% {\n fill: ").concat(y,";\n }\n 100% {\n fill: transparent;\n }\n }\n .bb-capture-preview-sendbutton {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(w,"px;\n }\n .bb-capture-button-next {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(C,"px;\n }\n .bb-capture-preview-inner {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-timer {\n color: ").concat(m,";\n }\n .bb-svg-path {\n fill: ").concat(f,";\n }\n .bb-capture-toolbar-item {\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-colorpicker {\n background-color: ").concat(r,";\n }\n .bb-capture-toolbar-item--active {\n background-color: ").concat(b,";\n }\n .bb-feedback-button-classic {\n border-top-left-radius: ").concat(S,"px;\n border-top-right-radius: ").concat(S,"px;\n }\n .bb-logo-logo--default path {\n fill: ").concat(p,";\n }\n .bb-logo-arrowdown {\n fill: ").concat(p,";\n }\n .bb-feedback-button-icon {\n background-color: ").concat(n,";\n }\n .bb-feedback-button-classic {\n background-color: ").concat(n,";\n color: ").concat(p,";\n }\n\n @media only screen and (max-width: 450px) {\n [dir=rtl].gleap-frame-container,\n .gleap-frame-container {\n left: 0px;\n right: 0px;\n width: 100vw;\n max-width: 100vw;\n min-height: 100vh;\n min-height: -webkit-fill-available;\n max-height: -webkit-fill-available;\n top: 0px;\n bottom: 0px;\n border-radius: 0px;\n animation-name: gleapFadeInUpMobile;\n }\n\n .gleap-frame-container-inner {\n width: 100vw;\n height: 100%;\n }\n\n .gleap-frame-container:not(.gleap-frame-container--survey):not(.gleap-frame-container--survey-full) .gleap-frame-container-inner {\n max-height: calc(var(--glvh, 1vh) * 100) !important;\n }\n\n .gleap-frame-container--survey {\n height: auto !important;\n top: initial !important;\n bottom: 0px !important;\n min-height: initial !important;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: 100vh !important;\n }\n\n .bb-tooltip {\n display: none !important;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n top: 75px;\n }\n \n .bb-capture-button-next {\n margin-left: auto;\n }\n \n .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-toolbar {\n top: 15px;\n right: 15px;\n left: 15px;\n width: auto;\n transform: none;\n }\n\n .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-borderlayer {\n border-width: 4px;\n }\n }\n \n @media print {\n .bb-feedback-button {\n display: none !important;\n }\n \n .gleap-frame-container {\n display: none !important;\n }\n }\n\n .gleap-tour-sender {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n margin-bottom: 10px;\n }\n\n .gleap-tour-sender-image {\n width: 32px;\n height: 32px;\n border-radius: 32px;\n margin-right: 10px;\n background-size: cover;\n background-repeat: no-repeat;\n }\n\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: 550px;\n max-width: 550px;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: calc(100vw - 40px);\n max-width: calc(100vw - 40px);\n }\n }\n\n .gleap-tour-message,\n .gleap-tour-message p,\n .gleap-tour-message ul {\n color: ").concat(f,";\n }\n\n .gleap-tour-message h2 {\n font-weight: 600;\n font-size: 22px;\n }\n\n .gleap-tour-message h3 {\n font-weight: 600;\n font-size: 18px;\n }\n\n .gleap-tour-message p {\n line-height: 1.3;\n margin-bottom: 10px !important;\n margin-top: 10px !important;\n }\n\n .gleap-tour-message ul {\n line-height: 1.3;\n padding-left: 20px;\n margin-top: 10px !important;\n margin-bottom: 10px !important;\n }\n\n .gleap-tour-message {\n max-height: calc(80vh - 100px) !important;\n overflow-y: auto;\n min-width: 270px;\n }\n\n .gleap-tour-message::-webkit-scrollbar {\n width: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-track {\n border-radius: 0px;\n }\n \n .gleap-tour-message::-webkit-scrollbar-thumb {\n background: ").concat(y,"; \n border-radius: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-thumb:hover {\n background: ").concat(m,";\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-message {\n min-width: auto !important;\n }\n }\n\n .gleap-tour-message iframe {\n width: 100%;\n height: 300px;\n margin-top: 10px;\n margin-bottom: 10px;\n border: none;\n outline: none;\n display: block;\n }\n\n .gleap-tour-sender-name {\n font-size: 15px;\n }\n\n .gleap-tour-video {\n width: 100%;\n max-width: 100%;\n }\n\n .gleap-tour-video-svg--fullscreen {\n width: 100% !important;\n height: 100% !important;\n top: 0px !important;\n left: 0px !important;\n right: 0px !important;\n bottom: 0px !important;\n }\n\n .gleap-tour-video--playing .gleap-tour-video-playpause {\n opacity: 0;\n }\n \n .gleap-tour-video--playing:hover .gleap-tour-video-playpause {\n opacity: 1;\n }\n\n .gleap-tour-popover-video-pointer {\n padding: 0px !important;\n border-radius: 8px;\n position: relative;\n background-color: transparent !important;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer {\n position: absolute;\n top: 0px;\n left: 20px;\n right: 20px;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer button {\n padding: 5px 12px;\n }\n\n .gleap-tour-popover-video-pointer.gleap-tour-popover-can-close .gleap-tour-popover-footer {\n right: 40px !important;\n }\n\n .gleap-tour-popover-video-pointer:hover .gleap-tour-popover-footer {\n opacity: 1;\n }\n\n .gleap-tour-popover-pointer.gleap-tour-popover-no-sender .gleap-tour-message {\n padding-right: 20px;\n }\n\n .gleap-tour-video video {\n width: 100%;\n max-width: 100%;\n height: auto;\n border: none;\n outline: none;\n display: block;\n border-radius: 8px;\n }\n\n .gleap-admin-collapse-ui {\n z-index: ").concat(2147483635,";\n cursor: pointer;\n position: fixed;\n bottom: 75px;\n right: 20px;\n width: 32px;\n height: 32px;\n border-radius: 100%;\n background-color: #fff;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;\n }\n\n .gleap-admin-collapse-ui svg {\n width: 20px;\n height: 14px;\n fill: #000 !important;\n }\n\n .gleap-admin-collapse-ui-active {\n bottom: 20px !important;\n }\n\n .gleap-admin-collapse-ui-active svg {\n transform: rotate(180deg);\n }\n\n .gleap-admin-frame-container-active {\n display: none !important;\n }\n\n .gleap-admin-frame-container {\n position: fixed;\n bottom: 0px;\n left: 0px;\n right: 0px;\n width: 100vw;\n z-index: ").concat(2147483640,";\n }\n\n .gleap-admin-frame {\n width: 100%;\n height: 100% !important;\n border: none;\n outline: none;\n display: block;\n }\n \n .gleap-tour-message .linktype-link {\n display: inline-block !important;\n background-color: transparent !important;\n color: ").concat(n," !important;\n }\n\n .gleap-tooltip .linktype-button,\n .gleap-tour-message .linktype-button {\n display: inline-block !important;\n border-radius: 5px;\n box-sizing: border-box;\n padding: 10px 20px !important;\n text-decoration: none !important;\n background-color: ").concat(n," !important;\n color: ").concat(p," !important;\n }\n\n .gleap-tour-message img {\n width: 100%;\n max-width: 100%;\n min-height: 260px;\n height: auto;\n margin-top: 10px;\n margin-bottom: 10px;\n object-fit: cover;\n }\n\n .gleap-tour-active .gleap-tour-overlay {\n pointer-events: none;\n }\n \n .gleap-tour-active * {\n pointer-events: none;\n }\n \n .gleap-tour-active .gleap-tour-active-element,\n .gleap-tour-active .gleap-tour-active-element *,\n .gleap-tour-popover,\n .gleap-tour-popover * {\n pointer-events: auto;\n }\n \n @keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n .gleap-tour-fade .gleap-tour-overlay {\n animation: animate-fade-in 200ms ease-in-out;\n }\n \n .gleap-tour-fade .gleap-tour-popover {\n animation: animate-fade-in 200ms;\n }\n\n .gleap-tour-video-playpause {\n position: absolute;\n bottom: 8px;\n left: 8px;\n width: 32px;\n height: 32px;\n padding: 4px;\n background-color: rgba(0,0,0,0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border-radius: 8px;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-arrow {\n display: none !important;\n }\n\n .gleap-tour-video-playpause svg {\n width: 34px;\n height: auto;\n fill: #fff;\n }\n \n /* Popover styles */\n .gleap-tour-popover {\n all: unset;\n box-sizing: border-box;\n color: #2d2d2d;\n margin: 0;\n padding: 15px;\n border-radius: ").concat(S,'px;\n min-width: 250px;\n max-width: 300px;\n box-shadow: 0 1px 10px #0006;\n z-index: 1000000000;\n position: fixed;\n top: 0;\n right: 0;\n background-color: #fff;\n }\n \n .gleap-tour-popover * {\n font-family: "Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif;\n }\n \n .gleap-tour-popover-title {\n font: 19px / normal sans-serif;\n font-weight: 700;\n display: block;\n position: relative;\n line-height: 1.5;\n zoom: 1;\n margin: 0;\n }\n \n .gleap-tour-popover-close-btn {\n all: unset;\n position: absolute;\n top: 5px;\n right: 5px;\n width: 32px;\n height: 32px;\n cursor: pointer;\n font-size: 30px;\n font-weight: 500;\n line-height: 32px;\n color: #d2d2d2;\n z-index: 1;\n text-align: center;\n transition: color;\n transition-duration: 200ms;\n }\n \n .gleap-tour-popover-close-btn:hover,\n .gleap-tour-popover-close-btn:focus {\n color: #2d2d2d;\n }\n \n .gleap-tour-popover-title[style*="block"] + .gleap-tour-popover-description {\n margin-top: 5px;\n }\n \n .gleap-tour-popover-description {\n margin-bottom: 0;\n font: 15px / normal sans-serif;\n line-height: 1.5;\n font-weight: 400;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer {\n margin-top: 15px;\n text-align: right;\n zoom: 1;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n \n .gleap-tour-popover-progress-text {\n font-size: 13px;\n font-weight: 400;\n color: #727272;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer button {\n background-color: ').concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 10px 20px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;\n }\n\n .gleap-tour-popover-prev-btn {\n color: ").concat(f," !important;\n background-color: ").concat(b," !important;\n margin-right: 3px;\n }\n\n .gleap-tour-popover-prev-btn:hover {\n background-color: ").concat(e,"22 !important;\n color: ").concat(e,' !important;\n }\n \n .gleap-tour-popover-footer .gleap-tour-popover-btn-disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n \n /* Disable the scrolling of parent element if it has an active element*/\n :not(body):has(> .gleap-tour-active-element) {\n overflow: hidden !important;\n }\n \n .gleap-tour-no-interaction, .gleap-tour-no-interaction * {\n pointer-events: none !important;\n }\n \n .gleap-tour-popover-navigation-btns {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n }\n \n .gleap-tour-popover-navigation-btns button + button {\n margin-left: 4px;\n }\n \n .gleap-tour-popover-arrow {\n content: "";\n position: absolute;\n border: 5px solid #fff;\n }\n \n .gleap-tour-popover-arrow-side-over {\n display: none;\n }\n \n /** Popover Arrow Sides **/\n .gleap-tour-popover-arrow-side-left {\n left: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-right {\n right: 100%;\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-top {\n top: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-bottom {\n bottom: 100%;\n border-left-color: transparent;\n border-top-color: transparent;\n border-right-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-center {\n display: none;\n }\n \n /* Left/Start + Right/Start */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-start {\n top: 15px;\n }\n \n /* Top/Start + Bottom/Start */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-start {\n left: 15px;\n }\n \n /* End/Left + End/Right */\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-left,\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-right {\n bottom: 15px;\n }\n \n /* Top/End + Bottom/End */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-end,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-end {\n right: 15px;\n }\n \n /* Left/Center + Right/Center */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-center {\n top: 50%;\n margin-top: -5px;\n }\n \n /* Top/Center + Bottom/Center */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-center {\n left: 50%;\n margin-left: -5px;\n }\n \n /* No arrow */\n .gleap-tour-popover-arrow-none {\n display: none;\n } \n\n /* Modal styles */\n .gleap-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: ').concat(2147483640,";\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-modal-backdrop {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: ").concat(2147483641,";\n }\n\n .gleap-modal {\n position: relative;\n width: 90%;\n max-width: 600px;\n max-height: 90vh;\n z-index: ").concat(2147483700,";\n background-color: ").concat(r,";\n border-radius: ").concat(k,"px;\n overflow: hidden;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n }\n\n .gleap-modal-frame {\n width: 100%;\n border: none;\n display: block;\n outline: none;\n }\n\n body.gleap-modal-open {\n overflow: hidden;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n "),T=document.querySelector(".gleap-styles");T&&T.remove();var E=document.createElement("style");E.innerHTML=L,E.className="gleap-styles",document.body.appendChild(E)}(e,t,n,r,o,i,s,c)}))}},{key:"sendSilentCrashReport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};return e.sendSilentCrashReportWithFormData({description:t},n,o)}},{key:"sendSilentCrashReportWithFormData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};if(!this.silentCrashReportSent){this.silentCrashReportSent=!0,setTimeout((function(){t.silentCrashReportSent=!1}),1e4);var r=o?k(o):{},i=$e.getInstance();if(i.ready){var a=e||{};i.session.email&&(a.reportedBy=i.session.email),new _t("CRASH",n,a,!0,r).sendFeedback().then((function(){})).catch((function(e){}))}}}},{key:"showSurvey",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"survey";e.startFeedbackFlowWithOptions(t,{hideBackButton:!0,format:n},!0)}},{key:"startClassicForm",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlow",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlowWithOptions",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.autostartDrawing,i=n.hideBackButton,a=n.format;if($e.getInstance().ready){e.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY});var s="start-feedbackflow";o&&(s="start-survey"),Gt.getInstance().setAppMode(o?a:"widget"),Gt.getInstance().sendMessage({name:s,data:{flow:t,hideBackButton:i,format:a}},!0),r?Gt.getInstance().showDrawingScreen("screenshot"):Gt.getInstance().showWidget()}}},{key:"openConversations",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversations",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openConversation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversation",data:{shareToken:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"startConversation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.startBot("",t)}},{key:"startBot",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-bot",data:{botId:e||"",hideBackButton:!t}},!0),Gt.getInstance().showWidget()}},{key:"openHelpCenterCollection",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-collection",data:{collectionId:e}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenterArticle",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-article",data:{articleId:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenter",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"searchHelpCenter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter-search",data:{term:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNewsArticle",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news-article",data:{id:e}},!0),Gt.getInstance().showWidget())}},{key:"openChecklists",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklists",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return!!e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-checklist",data:fi({outboundId:e,hideBackButton:!t},n?{sharedKey:n}:{})},!0),Gt.getInstance().showWidget(),!0)}},{key:"openChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklist",data:{id:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNews",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openFeatureRequests",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-feature-requests",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startProductTour",value:function(e){var t=this;$e.getInstance().startProductTourConfig(e).then((function(n){t.startProductTourWithConfig(e,n)})).catch((function(e){}))}},{key:"checkForUncompletedTour",value:function(){var e=Yr.getInstance().loadUncompletedTour();e&&Yr.getInstance().startWithConfig(e.tourId,e.tourData,500)}},{key:"startProductTourWithConfig",value:function(e,t){Yr.getInstance().startWithConfig(e,t)}},{key:"showBanner",value:function(e){try{_o.getInstance().showBanner(e)}catch(t){}}},{key:"showModal",value:function(e){try{Go.getInstance().showModal(e)}catch(t){}}},{key:"showNotification",value:function(e){Ao.getInstance().showNotification(e)}}],n&&di(t.prototype,n),o&&di(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();if(hi(gi,"invoked",!0),hi(gi,"silentCrashReportSent",!1),hi(gi,"instance",void 0),"undefined"!=typeof window){var mi=window.GleapActions;if(mi&&mi.length>0)for(var bi=0;bi(()=>{"use strict";var e={561:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["id","class","length"],n=e.attributes;return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t-1||e.push("["+n.nodeName+'="'+n.value+'"]'),e}),[])}},770:(e,t)=>{function n(e){if(!e.hasAttribute("class"))return[];try{return Array.prototype.slice.call(e.classList).filter((function(e){return/^[a-z_-][a-z\d_-]*$/i.test(e)?e:null}))}catch(n){var t=e.getAttribute("class");return(t=t.trim().replace(/\s+/g," ")).split(" ")}}Object.defineProperty(t,"__esModule",{value:!0}),t.getClasses=n,t.getClassSelectors=function(e){return n(e).filter(Boolean).map((function(e){return"."+e}))}},584:(e,t)=>{function n(e,t,o,r,i,a,s){if(a!==s)for(var c=r;c<=i&&i-c+1>=s-a;++c)o[a]=t[c],n(e,t,o,c+1,i,a+1,s);else e.push(o.slice(0,a).join(""))}Object.defineProperty(t,"__esModule",{value:!0}),t.getCombinations=function(e,t){for(var o=[],r=e.length,i=[],a=1;a<=t;++a)n(o,e,i,0,r-1,0,a);return o}},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getID=function(e){var t=e.getAttribute("id");if(null!==t&&""!==t)return t.match(/(?:^\d|:)/)?'[id="'+t+'"]':"#"+t;return null}},64:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getNthChild=function(e){var t=0,n=void 0,r=void 0,i=e.parentNode;if(Boolean(i)){var a=i.childNodes,s=a.length;for(n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.getParents=function(e){var t=[],n=e;for(;(0,o.isElement)(n);)t.push(n),n=n.parentNode;return t};var o=n(440)},970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTag=function(e){return e.tagName.toLowerCase().replace(/:/g,"\\:")}},924:(e,t,n)=>{t.A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selectorTypes,o=void 0===n?["ID","Class","Tag","NthChild"]:n,r=t.attributesToIgnore,i=void 0===r?["id","class","length"]:r,a=t.excludeRegex,s=void 0===a?null:a,c=[],d=(0,u.getParents)(e),p=!0,f=!1,v=void 0;try{for(var g,m=d[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=h(g.value,o,i,s);Boolean(b)&&c.push(b)}}catch(T){f=!0,v=T}finally{try{!p&&m.return&&m.return()}finally{if(f)throw v}}var y=[],w=!0,k=!1,x=void 0;try{for(var S,C=c[Symbol.iterator]();!(w=(S=C.next()).done);w=!0){var I=S.value;y.unshift(I);var L=y.join(" > ");if((0,l.isUnique)(e,L))return L}}catch(T){k=!0,x=T}finally{try{!w&&C.return&&C.return()}finally{if(k)throw x}}return null};var o=n(169),r=n(770),i=n(584),a=n(561),s=n(64),c=n(970),l=n(213),u=n(175);function d(e,t){var n=e.parentNode.querySelectorAll(t);return 1===n.length&&n[0]===e}function p(e,t){return t.find(d.bind(null,e))}function f(e,t,n){var o=(0,i.getCombinations)(t,3),r=p(e,o);return Boolean(r)||Boolean(n)&&(r=p(e,o=o.map((function(e){return n+e}))),Boolean(r))?r:null}function h(e,t,n,i){var l=void 0,u=function(e,t,n){var i={Tag:c.getTag,NthChild:s.getNthChild,Attributes:function(e){return(0,a.getAttributes)(e,n)},Class:r.getClassSelectors,ID:o.getID};return t.reduce((function(t,n){return t[n]=i[n](e),t}),{})}(e,t,n);i&&i instanceof RegExp&&(u.ID=i.test(u.ID)?null:u.ID,u.Class=u.Class.filter((function(e){return!i.test(e)})));var p=!0,h=!1,v=void 0;try{for(var g,m=t[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=g.value,y=u.ID,w=u.Tag,k=u.Class,x=u.Attributes,S=u.NthChild;switch(b){case"ID":if(Boolean(y)&&d(e,y))return y;break;case"Tag":if(Boolean(w)&&d(e,w))return w;break;case"Class":if(Boolean(k)&&k.length&&(l=f(e,k,w)))return l;break;case"Attributes":if(Boolean(x)&&x.length&&(l=f(e,x,w)))return l;break;case"NthChild":if(Boolean(S))return S}}}catch(C){h=!0,v=C}finally{try{!p&&m.return&&m.return()}finally{if(h)throw v}}return"*"}},440:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isElement=function(e){var t=void 0;t="object"===("undefined"==typeof HTMLElement?"undefined":n(HTMLElement))?e instanceof HTMLElement:!!e&&"object"===(void 0===e?"undefined":n(e))&&1===e.nodeType&&"string"==typeof e.nodeName;return t}},213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isUnique=function(e,t){if(!Boolean(t))return!1;var n=e.ownerDocument.querySelectorAll(t);return 1===n.length&&n[0]===e}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};return(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var n=0;nxi});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"feedbackButton",null),r(this,"injectedFeedbackButton",!1),r(this,"buttonHidden",null),r(this,"lastButtonIcon",null)}var n,o,i;return n=e,i=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(o=[{key:"toggleFeedbackButton",value:function(t){this.buttonHidden=!t,e.getInstance().updateFeedbackButtonState(),Ao.getInstance().updateContainerStyle()}},{key:"feedbackButtonPressed",value:function(){var e=Gt.getInstance();e.isOpened()?e.hideWidget():(e.setAppMode("widget"),e.showWidget())}},{key:"injectFeedbackButton",value:function(){var e=this;if(!this.injectedFeedbackButton){this.injectedFeedbackButton=!0;var t=document.createElement("div");t.addEventListener("click",(function(){e.feedbackButtonPressed()})),document.body.appendChild(t),this.feedbackButton=t,this.updateFeedbackButtonState()}}},{key:"updateNotificationBadge",value:function(e){var t=document.querySelector(".bb-notification-bubble");if(t){var n="bb-notification-bubble--hidden";e>0?(t.classList.remove(n),t.innerText=e):t.classList.add(n)}}},{key:"refresh",value:function(){document.querySelector(".bb-feedback-button")?(this.updateFeedbackButtonText(),this.updateFeedbackButtonState()):(this.injectedFeedbackButton=!1,this.feedbackButton=null,this.buttonHidden=null,this.lastButtonIcon=null,this.injectFeedbackButton())}},{key:"updateFeedbackButtonText",value:function(){var t=ut.getInstance().getFlowConfig();if(t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT){var n=document.querySelector(".bb-feedback-button-classic");n&&(n.innerText=t.widgetButtonText)}}},{key:"updateFeedbackButtonState",value:function(){if(null!==this.feedbackButton){var t=ut.getInstance().getFlowConfig(),n="";n=t.buttonLogo?''):p("button","#fff"),this.feedbackButton.className="bb-feedback-button gleap-font gl-block",this.feedbackButton.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT?(this.feedbackButton.classList.add("bb-feedback-button--classic-button-style"),this.feedbackButton.innerHTML='
').concat(t.widgetButtonText,"
")):n!==this.lastButtonIcon&&(this.feedbackButton.innerHTML='
'.concat(n).concat(p("arrowdown","#fff"),'
')),this.lastButtonIcon=n;var o=!1;null===e.getInstance().buttonHidden?t.feedbackButtonPosition===e.FEEDBACK_BUTTON_NONE&&(o=!0):e.getInstance().buttonHidden&&(o=!0),o&&this.feedbackButton.classList.add("bb-feedback-button--disabled"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_BOTTOM_LEFT&&this.feedbackButton.classList.add("bb-feedback-button--bottomleft"),Gt.getInstance().isOpened()&&this.feedbackButton.classList.add("bb-feedback-button--open");var r=Gt.getInstance().appMode;"survey"!==r&&"survey_full"!==r&&"survey_web"!==r||this.feedbackButton.classList.add("bb-feedback-button--survey"),!0!==t.hideForGuests||$e.getInstance().isUser()||this.feedbackButton.classList.add("bb-feedback-button--hidden")}}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=160?"#000000":"#ffffff"},p=function(e,t){return"button"===e?'':"drag"===e?'\x3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--\x3e':"unmute"===e?'':"mute"===e?'':"replay"===e?'\n \n ':"dismiss"===e?'':"blur"===e?'\n \n':"pen"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n':"rect"===e?'\n \n \n \n \n \n \n \n \n \n \n':"pointer"===e?'\n \n ':"clip"===e?'\n \n \n \n \n \n':"mic"===e?'\n \n \n \n \n ':"camera"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n':"recorderon"===e?'\n \n \n \n \n \n \n \n \n \n \n \n':"recorderoff"===e?'\n \n \n \n \n \n \n \n \n ':"arrowdown"===e?'\n \n '):"arrowleft"===e?'\n \n '):"close"===e?'\n \n '):"undo"===e?'\n \n \n \n \n \n \n \n \n \n ':"circle-dot"===e?''):"circle-question"===e?''):"circle-info"===e?''):"circle-exclamation"===e?''):"circle-up"===e?''):"circle-right"===e?''):""};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,t){for(var n=0;n0&&(e=e.concat(this.externalRequests)),this.filters&&this.filters.length>0)for(var t=0;t-1)&&!e.find((function(e){return e.url===s.name}))&&e.push({type:"RESOURCE",date:new Date(this.startTimestamp+s.startTime),url:s.name,duration:Math.round(s.duration),initiatorType:s.initiatorType})}}}catch(u){}var c=this.blacklist.concat(this.defaultBlacklist);if(c&&c.length>0)try{e=e.filter((function(e){for(var t=0;t70&&(e=70),this.maxRequests=e}},{key:"setStopped",value:function(e){this.stopped=e}},{key:"setFilters",value:function(e){this.filters=this.filters.concat(e||[])}},{key:"setBlacklist",value:function(e){this.blacklist=this.blacklist.concat(e||[])}},{key:"cleanRequests",value:function(){var e=Object.keys(this.requests);if(e.length>this.maxRequests)for(var t=e.slice(0,e.length-this.maxRequests),n=0;n.15?"":e}},{key:"cleanupPayload",value:function(e){if(null==e)return"{}";try{if(void 0!==("undefined"==typeof TextDecoder?"undefined":f(TextDecoder))&&ArrayBuffer.isView(e))return(new TextDecoder).decode(e)}catch(t){}return e}},{key:"preparePayload",value:function(e){var t=this.cleanupPayload(e);return this.cleanupContentSize(t)}},{key:"start",value:function(){var e=this;if(!this.initialized){this.initialized=!0;var t=this;this.interceptNetworkRequests({onFetch:function(n,o){if(!e.stopped&&o&&e.requests){if(n.length>0&&void 0!==n[0]&&void 0!==n[0].url)e.requests[o]={url:n[0].url,date:new Date,request:{payload:"",headers:void 0!==n[0].headers?Object.fromEntries(n[0].headers.entries()):{}},type:void 0!==n[0].method?n[0].method:""};else if(n.length>=2&&n[1]){var r=n[1]&&n[1].method?n[1].method:"GET";e.requests[o]={request:{payload:t.preparePayload(n[1].body),headers:n[1].headers},type:r,url:n[0],date:new Date}}else e.requests[o]={url:n[0],date:new Date};e.cleanRequests()}},onFetchLoad:function(n,o){if(!e.stopped&&o&&e.requests&&e.requests[o]){try{e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:"",responseText:""},e.calcRequestTime(o)}catch(i){}try{var r="";n.headers&&void 0!==n.headers.get&&(r=n.headers.get("content-type")),e.isContentTypeSupported(r)?n.text().then((function(r){e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:t.cleanupContentSize(r)}),e.calcRequestTime(o),e.cleanRequests()})).catch((function(t){e.cleanRequests()})):(e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:""}),e.calcRequestTime(o),e.cleanRequests())}catch(i){}}},onFetchFailed:function(t,n){!e.stopped&&n&&e.requests&&e.requests[n]&&(e.requests[n].success=!1,e.calcRequestTime(n),e.cleanRequests())},onOpen:function(t,n){e.stopped||(t&&t.bbRequestId&&n.length>=2&&e.requests&&(e.requests[t.bbRequestId]={type:n[0],url:n[1],date:new Date}),e.cleanRequests())},onSend:function(t,n){e.stopped||(t&&t.bbRequestId&&e.requests&&e.requests[t.bbRequestId]&&(e.requests[t.bbRequestId].request={payload:e.preparePayload(n.length>0?n[0]:"{}"),headers:t.requestHeaders}),e.cleanRequests())},onError:function(t,n){!e.stopped&&e.requests&&t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests[t.currentTarget.bbRequestId]&&(e.requests[t.currentTarget.bbRequestId].success=!1,e.calcRequestTime(t.bbRequestId)),e.cleanRequests()},onLoad:function(t,n){if(!e.stopped){if(t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests&&e.requests[t.currentTarget.bbRequestId]){var o=t.currentTarget,r=o.responseType,i="<"+r+">";""!==r&&"text"!==r||(i=e.cleanupContentSize(o.responseText)),e.requests[o.bbRequestId].success=!0,e.requests[o.bbRequestId].response={status:o.status,statusText:o.statusText,responseText:i},e.calcRequestTime(o.bbRequestId)}e.cleanRequests()}}})}}},{key:"interceptNetworkRequests",value:function(e){var t,n=this,o=XMLHttpRequest.prototype.open,r=XMLHttpRequest.prototype.send;return void 0===XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.gleapSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader),XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=function(e,t){this.requestHeaders||(this.requestHeaders={}),this.requestHeaders&&this.requestHeaders.hasOwnProperty(e)||(this.requestHeaders[e]||(this.requestHeaders[e]=[]),this.requestHeaders[e].push(t),this.gleapSetRequestHeader(e,t))}),XMLHttpRequest.prototype.open=function(){return this.bbRequestId=++n.requestId,e.onOpen&&e.onOpen(this,arguments),e.onLoad&&this.addEventListener("load",e.onLoad.bind(e)),e.onError&&this.addEventListener("error",e.onError.bind(e)),o.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){return e.onSend&&e.onSend(this,arguments),r.apply(this,arguments)},window.fetch&&(t=window.fetch,window.fetch=function(){var o=++n.requestId;return e.onFetch(arguments,o),t.apply(this,arguments).then((function(t){if(t&&"function"==typeof t.clone){var n=t.clone();e.onFetchLoad(n,o)}return t})).catch((function(t){throw e.onFetchFailed(t,o),t}))}),e}},{key:"blobToTextPromise",value:function(e){return new Promise((function(t,n){var o=new FileReader;o.onload=function(e){e&&e.target&&e.target.result?t(e.target.result):n()},o.onerror=function(e){n(e)},o.readAsText(e)}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&h(t.prototype,n),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();v(m,"instance",void 0);const b=m;var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400;return new Promise((function(o,r){var i=0===e.indexOf("data:image/jpeg"),a=new Image;a.src=e,a.onerror=function(){r()},a.onload=function(){var e=document.createElement("canvas"),r=t,s=n;t>a.width/1.5&&(r=a.width/1.5),n>a.height/1.5&&(s=a.height/1.5);var c=a.width,l=a.height;c>l?c>r&&(l*=r/c,c=r):l>s&&(c*=s/l,l=s),e.width=c,e.height=l,e.getContext("2d").drawImage(a,0,0,c,l),o(i?e.toDataURL("image/jpeg",.7):e.toDataURL())}}))},w=function(){return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))},k=function(e){if("string"==typeof e||e instanceof String)try{return JSON.parse(e)}catch(t){return{}}return e},x=function(e,t){return e.length>t?e.slice(0,t)+"...":e},S=function(e){try{var t=e.split("."),n=!1,o=t[t.length-2];return"co"!==o&&"com"!==o&&"gv"!==o&&"ac"!==o&&"edu"!==o&&"gov"!==o&&"mil"!==o&&"net"!==o&&"org"!==o||(n=!0),(t=t.slice(n?-3:-2)).join(".")}catch(r){}return e},C=function(e){try{var t=localStorage.getItem("gleap-widget-".concat(e));if(t)return JSON.parse(t)}catch(n){}return null},I=function(e,t){var n="gleap-widget-".concat(e);if(t)try{localStorage.setItem(n,JSON.stringify(t))}catch(o){}else localStorage.removeItem(n)},L=function(e){"complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",(function(){e()}))};function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function E(e,t){for(var n=0;n=200&&i.status<300)try{var e=i.responseText?JSON.parse(i.responseText):null;o(e)}catch(t){r({status:i.status,statusText:"JSON Parse Error",responseText:i.responseText,error:t})}else r({status:i.status,statusText:i.statusText,responseText:i.responseText})},i.onerror=function(){r({status:0,statusText:"Network Error",responseText:null})},i.send(n?JSON.stringify(n):null)}))}},{key:"_createCacheKey",value:function(e,t){return t?"".concat(e,"::").concat(t):e}},{key:"validateChecklist",value:function(e,t){var n=this,o=this._createCacheKey(e,t),r=this.validationCache.get(o);if(r)return r.status===A?Promise.resolve(r.internalId):Promise.reject(r.error);if(this.validationRequests.has(o))return this.validationRequests.get(o);var i=this._getApiUrl();if(!i){var a=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.validationCache.set(o,{status:P,error:a}),Promise.reject(a)}var s="".concat(i,"/outbound/checklists?").concat(this._getQueryParams()),c=this._makeRequest("POST",s,{outboundId:e,sharedKey:t}).then((function(e){if(e&&e.id)return n.validationCache.set(o,{status:A,internalId:e.id}),e.id;var t=new Error("Validation response missing checklist ID.");throw n.validationCache.set(o,{status:P,error:e||t}),t})).catch((function(e){throw n.validationCache.set(o,{status:P,error:e}),e})).finally((function(){n.validationRequests.delete(o)}));return this.validationRequests.set(o,c),c}},{key:"fetchChecklist",value:function(e){var t=this,n=this.fetchCache.get(e);if(n)return n.status===A?Promise.resolve(JSON.parse(JSON.stringify(n.data))):Promise.reject(n.error);if(this.fetchRequests.has(e))return this.fetchRequests.get(e).then((function(e){return JSON.parse(JSON.stringify(e))}));var o=this._getApiUrl();if(!o){var r=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.fetchCache.set(e,{status:P,error:r}),Promise.reject(r)}var i="".concat(o,"/outbound/checklists/").concat(e,"?convertTipTap=true&").concat(this._getQueryParams()),a=this._makeRequest("GET",i,null).then((function(n){if(n)return t.fetchCache.set(e,{status:A,data:n}),JSON.parse(JSON.stringify(n));var o=new Error("Empty response received for checklist fetch.");throw t.fetchCache.set(e,{status:P,error:n||o}),o})).catch((function(n){throw t.fetchCache.set(e,{status:P,error:n}),n})).finally((function(){t.fetchRequests.delete(e)}));return this.fetchRequests.set(e,a),a.then((function(e){return JSON.parse(JSON.stringify(e))}))}}])&&E(t.prototype,n),o&&E(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();O(R,"instance",null);const N=R,D=Math.min,j=Math.max,F=Math.round,_=Math.floor,B=e=>({x:e,y:e}),H={left:"right",right:"left",bottom:"top",top:"bottom"},q={start:"end",end:"start"};function U(e,t,n){return j(e,D(t,n))}function z(e,t){return"function"==typeof e?e(t):e}function W(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function V(e){return"x"===e?"y":"x"}function K(e){return"y"===e?"height":"width"}function X(e){return["top","bottom"].includes(W(e))?"y":"x"}function Z(e){return V(X(e))}function Y(e){return e.replace(/start|end/g,(e=>q[e]))}function J(e){return e.replace(/left|right|bottom|top/g,(e=>H[e]))}function Q(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ee(e,t,n){let{reference:o,floating:r}=e;const i=X(t),a=Z(t),s=K(a),c=W(t),l="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(c){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(G(t)){case"start":f[a]-=p*(n&&l?-1:1);break;case"end":f[a]+=p*(n&&l?-1:1)}return f}async function te(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=z(t,e),h=Q(f),v=s[p?"floating"===d?"reference":"floating":d],g=$(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),m="floating"===d?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=$(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:b,strategy:c}):m);return{top:(g.top-w.top+h.top)/y.y,bottom:(w.bottom-g.bottom+h.bottom)/y.y,left:(g.left-w.left+h.left)/y.x,right:(w.right-g.right+h.right)/y.x}}const ne=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=W(n),s=G(n),c="y"===X(n),l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=z(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),c?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}};function oe(e){return ae(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ie(e){var t;return null==(t=(ae(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ae(e){return e instanceof Node||e instanceof re(e).Node}function se(e){return e instanceof Element||e instanceof re(e).Element}function ce(e){return e instanceof HTMLElement||e instanceof re(e).HTMLElement}function le(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof re(e).ShadowRoot)}function ue(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function de(e){return["table","td","th"].includes(oe(e))}function pe(e){const t=fe(),n=ve(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function fe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function he(e){return["html","body","#document"].includes(oe(e))}function ve(e){return re(e).getComputedStyle(e)}function ge(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(e){if("html"===oe(e))return e;const t=e.assignedSlot||e.parentNode||le(e)&&e.host||ie(e);return le(t)?t.host:t}function be(e){const t=me(e);return he(t)?e.ownerDocument?e.ownerDocument.body:e.body:ce(t)&&ue(t)?t:be(t)}function ye(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=be(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=re(r);return i?t.concat(a,a.visualViewport||[],ue(r)?r:[],a.frameElement&&n?ye(a.frameElement):[]):t.concat(r,ye(r,[],n))}function we(e){const t=ve(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ce(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=F(n)!==i||F(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function ke(e){return se(e)?e:e.contextElement}function xe(e){const t=ke(e);if(!ce(t))return B(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=we(t);let a=(i?F(n.width):n.width)/o,s=(i?F(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Se=B(0);function Ce(e){const t=re(e);return fe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Se}function Ie(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=ke(e);let a=B(1);t&&(o?se(o)&&(a=xe(o)):a=xe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==re(e))&&t}(i,n,o)?Ce(i):B(0);let c=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=re(i),t=o&&se(o)?re(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=xe(r),t=r.getBoundingClientRect(),o=ve(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=a,n=re(r),r=n.frameElement}}return $({width:u,height:d,x:c,y:l})}const Le=[":popover-open",":modal"];function Te(e){return Le.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function Ee(e){return Ie(ie(e)).left+ge(e).scrollLeft}function Oe(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=re(e),o=ie(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;const e=fe();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=ie(e),n=ge(e),o=e.ownerDocument.body,r=j(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=j(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Ee(e);const s=-n.scrollTop;return"rtl"===ve(o).direction&&(a+=j(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(ie(e));else if(se(t))o=function(e,t){const n=Ie(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=ce(e)?xe(e):B(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Ce(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return $(o)}function Me(e,t){const n=me(e);return!(n===t||!se(n)||he(n))&&("fixed"===ve(n).position||Me(n,t))}function Ae(e,t,n){const o=ce(t),r=ie(t),i="fixed"===n,a=Ie(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=B(0);if(o||!o&&!i)if(("body"!==oe(t)||ue(r))&&(s=ge(t)),o){const e=Ie(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=Ee(r));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Pe(e,t){return ce(e)&&"fixed"!==ve(e).position?t?t(e):e.offsetParent:null}function Re(e,t){const n=re(e);if(!ce(e)||Te(e))return n;let o=Pe(e,t);for(;o&&de(o)&&"static"===ve(o).position;)o=Pe(o,t);return o&&("html"===oe(o)||"body"===oe(o)&&"static"===ve(o).position&&!pe(o))?n:o||function(e){let t=me(e);for(;ce(t)&&!he(t);){if(pe(t))return t;t=me(t)}return null}(e)||n}const Ne={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=ie(o),s=!!t&&Te(t.floating);if(o===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=B(1);const u=B(0),d=ce(o);if((d||!d&&!i)&&(("body"!==oe(o)||ue(a))&&(c=ge(o)),ce(o))){const e=Ie(o);l=xe(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:ie,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=ye(e,[],!1).filter((e=>se(e)&&"body"!==oe(e))),r=null;const i="fixed"===ve(e).position;let a=i?me(e):e;for(;se(a)&&!he(a);){const t=ve(a),n=pe(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||ue(a)&&!n&&Me(e,a))?o=o.filter((e=>e!==a)):r=t,a=me(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=Oe(t,n,r);return e.top=j(o.top,e.top),e.right=D(o.right,e.right),e.bottom=D(o.bottom,e.bottom),e.left=j(o.left,e.left),e}),Oe(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Re,getElementRects:async function(e){const t=this.getOffsetParent||Re,n=this.getDimensions;return{reference:Ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=we(e);return{width:t,height:n}},getScale:xe,isElement:se,isRTL:function(e){return"rtl"===ve(e).direction}};function De(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=ke(e),u=r||i?[...l?ye(l):[],...ye(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,o=null;const r=ie(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-_(u)+"px "+-_(r.clientWidth-(l+d))+"px "+-_(r.clientHeight-(u+p))+"px "+-_(l)+"px",threshold:j(0,D(1,c))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(v,{...f,root:r.ownerDocument})}catch(g){o=new IntersectionObserver(v,f)}o.observe(e)}(!0),i}(l,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!c&&h.observe(l),h.observe(t));let v=c?Ie(e):null;return c&&function t(){const o=Ie(e);!v||o.x===v.x&&o.y===v.y&&o.width===v.width&&o.height===v.height||n();v=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const je=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=z(e,t),l={x:n,y:o},u=await te(t,c),d=X(W(r)),p=V(d);let f=l[p],h=l[d];if(i){const e="y"===p?"bottom":"right";f=U(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=U(h+u["y"===d?"top":"left"],h,h-u[e])}const v=s.fn({...t,[p]:f,[d]:h});return{...v,data:{x:v.x-n,y:v.y-o}}}}},Fe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=z(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=W(r),b=W(s)===s,y=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=p||(b||!v?[J(s)]:function(e){const t=J(e);return[Y(e),t,Y(t)]}(s));p||"none"===h||w.push(...function(e,t,n,o){const r=G(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(W(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(Y)))),i}(s,v,h,y));const k=[s,...w],x=await te(t,g),S=[];let C=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&S.push(x[m]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=G(e),r=Z(e),i=K(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=J(a)),[a,J(a)]}(r,a,y);S.push(x[e[0]],x[e[1]])}if(C=[...C,{placement:r,overflows:S}],!S.every((e=>e<=0))){var I,L;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(L=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},_e=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=z(e,t)||{};if(null==l)return{};const d=Q(u),p={x:n,y:o},f=Z(r),h=K(f),v=await a.getDimensions(l),g="y"===f,m=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[f]-p[f]-i.floating[h],k=p[f]-i.reference[f],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=x?x[y]:0;S&&await(null==a.isElement?void 0:a.isElement(x))||(S=s.floating[y]||i.floating[h]);const C=w/2-k/2,I=S/2-v[h]/2-1,L=D(d[m],I),T=D(d[b],I),E=L,O=S-v[h]-T,M=S/2-v[h]/2+C,A=U(E,M,O),P=!c.arrow&&null!=G(r)&&M!==A&&i.reference[h]/2-(M{const o=new Map,r={platform:Ne,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=ee(l,o,c),p=o,f={},h=0;for(let v=0;ve.length)&&(t=e.length);for(var n=0,o=new Array(t);n'):""),i.appendChild(a),t.repositionHotspot(e,n),r=a,t.elementToTooltipMap.set(e,n)}else r=e;var s=t.createTooltip(r,n.html,n);t.elementToFloatingUIMap.set(e,s)}}})),We(this,"updateFilteredTooltips",(function(){t.filteredTooltips=t.getFilteredTooltips(),t.checkForTooltips()})),We(this,"getFilteredTooltips",(function(){if(!t.tooltips)return[];var e=window.location.href;return t.tooltips.filter((function(t){if(!t.page||0===t.page.length)return!0;var n=t.pageType,o=t.page;switch(n){case"is":return e===o;case"isnot":return e!==o;case"contains":return e.includes(o);case"notcontains":return!e.includes(o);case"startswith":return e.startsWith(o);case"endswith":return e.endsWith(o);default:return!1}}))})),We(this,"checkForTooltips",(function(){for(var e=0;e0&&this.filteredTooltips.forEach((function(n){n.selector&&e.matches(n.selector)&&t.linkTooltip(e,n)}))}},{key:"start",value:function(){var e=this,t=this;if(window){var n,o,r,i=(n=t.updateHotspotPositions.bind(t),o=250,r=null,function(){if(!r){var e=this,t=arguments;r=setTimeout((function(){n.call.apply(n,[e].concat(qe(t))),r=null}),o)}});window.addEventListener("resize",i),window.requestAnimationFrame((function(){e.observer=new MutationObserver((function(n){t.lastUrl!==window.location.href&&(t.lastUrl=window.location.href,t.filteredTooltips=t.getFilteredTooltips()),n.forEach((function(n){n.addedNodes.forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&t.processNodeInsertion(e)})),n.removedNodes.forEach((function(t){if(t.nodeType===Node.ELEMENT_NODE&&e.elementToFloatingUIMap.has(t)){var n=e.elementToFloatingUIMap.get(t);n&&(n.tooltip&&n.tooltip.remove(),n.cleanup(),e.elementToFloatingUIMap.delete(t))}e.elementToTooltipMap.has(t)&&e.elementToTooltipMap.delete(t)}))}))})),e.observer.observe(document.body,{childList:!0,subtree:!0})}))}}},{key:"updateHotspotPositions",value:function(){var e=this;document.querySelectorAll("[data-gleap-tooltip-mode='hotspot']").forEach((function(t){var n=e.elementToTooltipMap.get(t);n&&e.repositionHotspot(t,n)}))}},{key:"createTooltip",value:function(e,t,n){var o=document.createElement("div");o.className="gleap-tooltip",o.innerHTML='
\n '.concat(t,'\n
\n \n \n \n
\n
'),document.body.appendChild(o);var r,i=o.querySelector(".gleap-tooltip-arrow"),a=De(e,o,(function(){Be(e,o,{placement:"left"===n.posX?"left":"right",middleware:[ne(10),Fe(),je(),_e({element:i})]}).then((function(e){var t=e.x,n=e.y,r=e.middlewareData,a=e.placement;try{if(Object.assign(o.style,{left:"".concat(t,"px"),top:"".concat(n,"px")}),r.arrow){var s={left:"",top:"",transform:""};null!=r.arrow.x&&(s.left="".concat(r.arrow.x,"px"),"bottom"===a?(s.transform="translateY(-7px) rotate(180deg)",s.top="".concat(-20,"px")):"top"===a&&(s.transform="translateY(7px) rotate(0deg)",s.top="100%")),null!=r.arrow.y&&(s.top="".concat(r.arrow.y,"px"),"right"===a?(s.transform="translateX(-7px) rotate(90deg)",s.left="".concat(-20,"px")):"left"===a&&(s.transform="translateX(7px) rotate(270deg)",s.left="100%")),Object.assign(i.style,s)}}catch(c){}}))}));function s(){clearTimeout(r),o.style.visibility="visible",o.style.opacity="1",o.style.pointerEvents="auto"}function c(){r=setTimeout((function(){o.style.opacity="0",setTimeout((function(){o.style.visibility="hidden",o.style.pointerEvents="none"}),200)}),500)}return e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",c),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c),{cleanup:a,tooltip:o}}},{key:"canEmbed",value:function(e){var t=new Set(["area","base","br","embed","hr","img","input","source","track","wbr","canvas"]);return e&&!t.has(e.tagName.toLowerCase())}},{key:"destroy",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),document.querySelectorAll(".gleap-tooltip").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-anchor]").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-hotspot]").forEach((function(e){return e.remove()})),this.elementToFloatingUIMap=new WeakMap,this.elementToTooltipMap=new WeakMap,this.tooltips=[],this.filteredTooltips=[]}},{key:"repositionHotspot",value:function(e,t){if(e&&t){var n=e.getAttribute("data-gleap-tooltip");if(n){var o=document.querySelector('[data-gleap-tooltip-hotspot="'.concat(n,'"]'));if(o){t.posX||(t.posX="right"),t.posY||(t.posY="center"),t.offsetX||(t.offsetX=4),t.offsetY||(t.offsetY=0);var r=e.getBoundingClientRect();try{var i=document.createRange();i.selectNodeContents(e);var a=window.getComputedStyle(e),s=i.getBoundingClientRect().width+parseFloat(a.paddingLeft);s0&&void 0!==arguments[0]?arguments[0]:0,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash));try{I("session-".concat(t.sdkKey),null)}catch(r){}if(t.useCookies)try{!function(e){try{var t=S(window.location.host.split(":")[0]);document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Domain="+t}catch(r){}}("session-".concat(t.sdkKey))}catch(r){}if(t.ready=!1,t.session={gleapId:null,gleapHash:null,name:"",email:"",userId:"",phone:"",value:0},Gt.getInstance().sendMessage({name:"session-cleared"},!0),Ao.getInstance().clearAllNotifications(!1),Ao.getInstance().setNotificationCount(0),_o.getInstance().removeBannerUI(),Go.getInstance().hideModal(),n&&!isNaN(e)){var o=10*Math.pow(e,2);setTimeout((function(){t.startSession(e+1)}),1e3*o)}})),Je(this,"validateSession",(function(e){var n;if(e&&e.gleapId){var o=!1;(null===(n=t.session)||void 0===n?void 0:n.gleapId)!==(null==e?void 0:e.gleapId)&&(o=!0),t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),I("session-".concat(t.sdkKey),e),t.useCookies&&function(e,t,n){try{var o="";if(n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),o="; expires="+r.toUTCString()}var i=S(window.location.host.split(":")[0]);document.cookie=e+"="+(t||"")+o+"; path=/; domain="+i}catch(a){}}("session-".concat(t.sdkKey),encodeURIComponent(JSON.stringify(e)),365),t.session=e,t.ready=!0,t.session&&t.session.gleapHash&&kn.notifyEvent("register-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),o&&(setTimeout((function(){N.getInstance().clearCache(),rt.getInstance().restart();var e=Ve.getInstance();if(e){try{e.destroy()}catch(t){}e.load()}}),0),"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("session-updated"))),t.notifySessionReady()}})),Je(this,"startSession",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{if(t.useCookies){var n=function(e){try{for(var t=e+"=",n=document.cookie.split(";"),o=0;o0)){var r=C("session-".concat(t.sdkKey));r&&t.validateSession(r)}var i=t,a=new XMLHttpRequest;a.open("POST",i.apiUrl+"/sessions"),a.setRequestHeader("Content-Type","application/json;charset=UTF-8"),a.setRequestHeader("Api-Token",i.sdkKey);try{t.session&&t.session.gleapId&&t.session.gleapHash&&(a.setRequestHeader("Gleap-Id",t.session.gleapId),a.setRequestHeader("Gleap-Hash",t.session.gleapHash))}catch(s){}a.onreadystatechange=function(t){if(4===a.readyState)if(200===a.status||201===a.status)try{var n=JSON.parse(a.responseText);i.validateSession(n)}catch(s){}else 429!==a.status&&i.clearSession(e,!0)},a.send(JSON.stringify({lang:go.getInstance().getActiveLanguage()}))})),Je(this,"checkIfSessionNeedsUpdate",(function(e,n){if(!t.session||!t.session.userId||!e)return!0;try{if(t.session.userId.toString()!==e.toString())return!0}catch(o){}return t.checkIfSessionDataNeedsUpdate(n)})),Je(this,"checkIfSessionDataNeedsUpdate",(function(e){if(e)for(var n=Object.keys(e),o=0;o0)for(var e=0;e2)&&0!==t.streamedEventArray.length&&t.socket&&t.socket.readyState===t.socket.OPEN){var e=t;t.streamingEvents=!0;var n=new XMLHttpRequest;n.open("POST",$e.getInstance().apiUrl+"/sessions/ping"),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),$e.getInstance().injectSession(n),n.onerror=function(){e.errorCount++,e.streamingEvents=!1},n.onreadystatechange=function(t){4===n.readyState&&(200===n.status||201===n.status?e.errorCount=0:e.errorCount++,e.streamingEvents=!1)};var o=Yt.getInstance().getSessionDuration();n.send(JSON.stringify({time:o,events:t.streamedEventArray,opened:Gt.getInstance().isOpened(),type:"js",sdkVersion:"14.6.3",ws:!0})),t.streamedEventArray=[]}})),this.handleOpenBound=this.handleOpen.bind(this),this.handleErrorBound=this.handleError.bind(this),this.handleMessageBound=this.handleMessage.bind(this),this.handleCloseBound=this.handleClose.bind(this)}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"cleanupWebSocket",value:function(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null),this.pingWS&&clearInterval(this.pingWS),this.socket&&(this.socket.removeEventListener("open",this.handleOpenBound),this.socket.removeEventListener("error",this.handleErrorBound),this.socket.removeEventListener("message",this.handleMessageBound),this.socket.removeEventListener("close",this.handleCloseBound),this.socket.close(),this.socket=null)}},{key:"initWebSocket",value:function(){this.cleanupWebSocket(),this.connectedWebSocketGleapId=$e.getInstance().session.gleapId,$e.getInstance().session&&$e.getInstance().sdkKey&&(this.socket=new WebSocket("".concat($e.getInstance().wsApiUrl,"?gleapId=").concat($e.getInstance().session.gleapId,"&gleapHash=").concat($e.getInstance().session.gleapHash,"&apiKey=").concat($e.getInstance().sdkKey,"&sdkVersion=").concat("14.6.3")),this.socket.addEventListener("open",this.handleOpenBound),this.socket.addEventListener("message",this.handleMessageBound),this.socket.addEventListener("error",this.handleErrorBound),this.socket.addEventListener("close",this.handleCloseBound))}},{key:"handleOpen",value:function(e){var t=this;this.pingWS=setInterval((function(){t.socket.readyState===t.socket.OPEN&&(t.socket.send("PING"),t.socket.send(9))}),1e4),this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null)}},{key:"handleMessage",value:function(e){this.processMessage(JSON.parse(e.data))}},{key:"handleError",value:function(e){}},{key:"handleClose",value:function(e){var t=this;setTimeout((function(){t.initWebSocket()}),5e3)}},{key:"processMessage",value:function(e){try{if("update"===e.name){var t=e.data,n=t.a,o=t.u;Gt.getInstance().isOpened()||(n&&ki.getInstance().performActions(n),null!=o&&Ao.getInstance().setNotificationCount(o))}"checklist"===e.name&&null!=e&&e.data&&window&&"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("checkListUpdate",{detail:e.data}))}catch(r){}}},{key:"getEventArray",value:function(){return this.eventArray}},{key:"stop",value:function(){this.cleanupMainLoop()}},{key:"resetErrorCountLoop",value:function(){var e=this;setInterval((function(){e.errorCount=0}),6e4)}},{key:"cleanupMainLoop",value:function(){this.mainLoopTimeout&&(clearInterval(this.mainLoopTimeout),this.mainLoopTimeout=null)}},{key:"restart",value:function(){this.connectedWebSocketGleapId!==$e.getInstance().session.gleapId&&this.initWebSocket(),this.cleanupMainLoop(),this.trackInitialEvents(),this.runEventStreamLoop()}},{key:"start",value:function(){this.startPageListener(),this.resetErrorCountLoop()}},{key:"trackInitialEvents",value:function(){e.getInstance().logEvent("sessionStarted"),e.getInstance().logCurrentPage()}},{key:"logCurrentPage",value:function(){if(!ki.getInstance().disablePageTracking){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.logEvent("pageView",{page:e}))}}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"logEvent",value:function(e,t){var n={name:e,date:new Date};t&&(n.data=k(t)),this.eventArray.push(n),this.streamedEventArray.push(n),this.eventArray.length>this.eventMaxLength&&this.eventArray.shift(),this.streamedEventArray.length>this.eventMaxLength&&this.streamedEventArray.shift()}}])&&tt(t.prototype,n),o&&tt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function at(e,t){for(var n=0;n0)for(var e=0;e=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function ft(e,t,n,o,r,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(o,r)}function ht(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ft(i,o,r,a,s,"next",e)}function s(e){ft(i,o,r,a,s,"throw",e)}a(void 0)}))}}var vt=function(e){var t="",n=window.document.doctype;if(n&&(t=""),e&&e.childNodes&&e.childNodes.length>0)for(var o=0;o1?t-1:0),r=1;r0||t.scrollLeft>0)&&(s.setAttribute("bb-scrollpos",!0),s.setAttribute("bb-scrolltop",t.scrollTop),s.setAttribute("bb-scrollleft",t.scrollLeft)),"SELECT"!==d&&"TEXTAREA"!==d&&"INPUT"!==d||(f=t.value,("value"===t.getAttribute("gleap-ignore")||t.classList.contains("gl-mask"))&&(f=new Array(f.length+1).join("*")),s.setAttribute("bb-data-value",f),"checkbox"!==t.type&&"radio"!==t.type||!t.checked||s.setAttribute("bb-data-checked",!0))),r.appendChild(s),!t.shadowRoot){e.next=29;break}return h=n,n++,e.next=27,a(t.shadowRoot.firstChild,s,h);case 27:St(t.shadowRoot,s,h),void 0!==s.setAttribute&&s.setAttribute("bb-shadow-parent",h);case 29:return e.next=31,a(t.firstChild,s);case 31:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(t,n,o){return e.apply(this,arguments)}}(),r=document.createDocumentFragment(),e.next=5,o(t,r);case 5:return(i=r.querySelector("head"))||(i=r),St(window.document,i),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Lt=function(e){return new Promise(function(){var t=ht(pt().mark((function t(n,o){var r,i,a,s,c,l,u,d,p,f,h,v,g,m,b;return pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r=window.document.querySelectorAll("style, link"),i=0;i0){for(l=c.childNodes;l.length>0;)c.parentNode.insertBefore(l[0],c);c.remove()}for(u=a.querySelectorAll("script, noscript"),i=0;i0?r.innerHTML=n.formatTime(e):(r.innerHTML="2:00",n.stopScreenRecording())}),1e3),this.mediaRecorder.ondataavailable=function(e){e.data.size>0&&o.push(e.data)},t.getVideoTracks()[0].onended=function(){n.prepareRecording(o)},this.mediaRecorder.onstop=function(){n.prepareRecording(o)},this.mediaRecorder.start(200),n.rerender()})),Ot(this,"prepareRecording",(function(e){var t=new Blob(e,{type:this.getSupportedMimeType()}),n=this.getSupportedMimeType(),o=n.includes("mp4")?"mp4":"webm";this.file=new File([t],"screen-recording.".concat(o),{type:n});var r=document.querySelector(".bb-capture-preview video");r&&(r.src=URL.createObjectURL(t),this.audioAvailable=!0,this.isRecording=!1,this.rerender())})),this.rerender=t,this.permissionErrorText=n,navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia||(this.available=!1),setTimeout((function(){o.rerender()}),100)}var t,n,o;return t=e,(n=[{key:"getSupportedMimeType",value:function(){for(var e=0,t=["video/webm","audio/webm","video/webm;codecs=vp8","video/webm;codecs=daala","video/webm;codecs=h264","audio/webm;codecs=opus","video/mp4"];e0&&(e.tags=t),this.excludeData)for(var n=Object.keys(this.excludeData),o=0;oe.length)&&(t=e.length);for(var n=0,o=new Array(t);n0)if(t){var n=window.open(e,"_blank");n&&n.focus()}else window.location.href=e})),zt(this,"autoWhiteListCookieManager",(function(){window&&window.cmp_block_ignoredomains&&window.cmp_block_ignoredomains.concat(["messenger-app.gleap.io"])})),zt(this,"injectFrame",(function(){t.injectedFrame||(t.injectedFrame=!0,t.autoWhiteListCookieManager(),L((function(){ut.getInstance().onConfigLoaded((function(){ut.getInstance().applyStylesFromConfig();var e=document.createElement("div");e.className="gleap-frame-container gleap-frame-container--hidden gl-block",e.innerHTML='
'),document.body.appendChild(e),t.gleapFrameContainer=e,t.gleapFrame=document.querySelector(".gleap-frame"),t.updateFrameStyle(),"widget"===t.appMode&&t.showFrameContainer(!0)}))})))})),zt(this,"showImage",(function(e){L((function(){var t=document.createElement("div");t.className="gleap-image-view",t.innerHTML='
\n \n
'),document.body.appendChild(t);var n=function(){t.remove()};t.querySelector(".gleap-image-view-close").addEventListener("click",(function(){n()})),t.addEventListener("click",(function(e){e.target===t&&n()}))}))})),zt(this,"updateFrameStyle",(function(){if(t.gleapFrameContainer){for(var e="gleap-frame-container--survey",n="gleap-frame-container--extended",o="gleap-frame-container--survey-full",r="gleap-frame-container--classic",i="gleap-frame-container--classic-left",s="gleap-frame-container--modern-left",c="gleap-frame-container--no-button",l=[r,i,n,s,c,e,o],u=0;u1&&void 0!==arguments[1]&&arguments[1];try{this.gleapFrame=document.querySelector(".gleap-frame"),this.comReady&&this.gleapFrame&&this.gleapFrame.contentWindow?this.gleapFrame.contentWindow.postMessage(JSON.stringify(e),"*"):t&&this.queue.push(e)}catch(n){}}},{key:"sendSessionUpdate",value:function(){this.sendMessage({name:"session-update",data:{sessionData:$e.getInstance().getSession(),apiUrl:$e.getInstance().apiUrl,sdkKey:$e.getInstance().sdkKey}})}},{key:"sendConfigUpdate",value:function(){this.sendMessage({name:"config-update",data:{config:ut.getInstance().getFlowConfig(),aiTools:ut.getInstance().getAiTools(),overrideLanguage:go.getInstance().getOverrideLanguage()}}),this.updateFrameStyle()}},{key:"showDrawingScreen",value:function(e){var t=this;this.hideWidget(),this.markerManager=new uo(e),this.markerManager.show((function(e){e||t.hideMarkerManager(),t.showWidget()}))}},{key:"workThroughQueue",value:function(){var e=Ht(this.queue);this.queue=[];for(var t=0;t0&&(n.tags=o),e.sendMessage({name:"collect-ticket-data",data:n})}if("height-update"===t.name){e.frameHeight=t.data;var r=document.querySelector(".gleap-frame-container-inner");"survey"!==e.appMode&&"survey_full"!==e.appMode&&"survey_web"!==e.appMode||!r||(r.style.maxHeight="".concat(e.frameHeight,"px"))}if("notify-event"===t.name&&kn.notifyEvent(t.data.type,t.data.data),"cleanup-drawings"===t.name&&e.hideMarkerManager(),"open-url"===t.name){var i=t.data,a=!!t.newTab;e.urlHandler(i,a)}if("run-custom-action"===t.name&&En.triggerCustomAction(t.data,{shareToken:t.shareToken}),"close-widget"===t.name&&e.hideWidget(),"tool-execution"===t.name&&kn.notifyEvent("tool-execution",t.data),"send-feedback"===t.name){var s=t.data.formData,c=t.data.action,l=t.data.outboundId,u=t.data.spamToken;new _t(c.feedbackType,"MEDIUM",s,!1,c.excludeData,l,u).sendFeedback().then((function(t){if(e.sendMessage({name:"feedback-sent",data:t}),kn.notifyEvent("feedback-sent",s),l&&l.length>0){kn.notifyEvent("outbound-sent",{outboundId:l,outbound:c,formData:s});try{delete s.reportedBy}catch(n){}ki.trackEvent("outbound-".concat(l,"-submitted"),s)}})).catch((function(t){e.sendMessage({name:"feedback-sending-failed",data:"Something went wrong, please try again."}),kn.notifyEvent("error-while-sending")}))}"start-screen-drawing"===t.name&&e.showDrawingScreen(t.data)})),window.addEventListener("message",(function(t){if(t.origin===e.frameUrl||t.origin===_o.getInstance().bannerUrl)try{for(var n=JSON.parse(t.data),o=0;o1&&void 0!==arguments[1]?arguments[1]:"INFO";!e||e.length<=0||(this.logArray.push({log:x(e,1e3),date:new Date,priority:t}),this.logArray.length>this.logMaxLength&&this.logArray.shift())}},{key:"addLogWithArgs",value:function(e,t){if(e&&!(e.length<=0)){var n="";try{for(var o=0;o1&&void 0!==arguments[1])||arguments[1],n=x(e.innerText||"",40).replace(/(\r\n|\n|\r)/gm,"").replace(/ +(?= )/g,""),o="",r="";if(void 0!==e.getAttribute){var i=e.getAttribute("id");i&&(o=' id="'.concat(i,'"'));var a=e.getAttribute("class");a&&(r=' class="'.concat(a,'"'))}var s=(e.tagName||"").toLowerCase(),c="<",l=">";return t||(c="[",l="]"),"".concat(c).concat(s).concat(o).concat(r).concat(l).concat(n).concat(c,"/").concat(s).concat(l)}(e.target),"CLICK")}}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&an(t.prototype,n),o&&an(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function pn(e){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pn(e)}function fn(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if("flow-started"===e){var n=ki.getInstance();n.setGlobalDataItem("webReplay",null),n.setGlobalDataItem("screenRecordingData",null),n.takeCurrentReplay()}var o=this.getInstance().eventListeners[e];if(o)for(var r=0;r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||Rn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function An(e){return function(e){if(Array.isArray(e))return Nn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Rn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Rn(e,t){if(e){if("string"==typeof e)return Nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n=0;g--){var m=n.get(g);if(m){var b=t.mirror.getId(m.value.parentNode);if(-1===o(m.value))continue;if(-1!==b){f=m;break}var y=m.value;if(y.parentNode&&y.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=y.parentNode.host;if(-1!==t.mirror.getId(w)){f=m;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),r(f.value)}var k={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){return{id:t.mirror.getId(e.node),attributes:e.attributes}})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:e};!k.texts.length&&!k.attributes.length&&!k.removes.length&&!k.adds.length||(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(k))}},this.processMutation=function(e){if(!Ye(e.target,t.mirror))switch(e.type){case"characterData":var n=e.target.textContent;!Ze(e.target,t.blockClass,t.blockSelector,!1)&&n!==e.oldValue&&t.texts.push({value:Be(e.target,t.maskTextClass,t.maskTextSelector)&&n?t.maskTextFn?t.maskTextFn(n):n.replace(/[\S]/g,"*"):n,node:e.target});break;case"attributes":var o=e.target,r=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(r=Ae({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:r,maskInputFn:t.maskInputFn})),Ze(e.target,t.blockClass,t.blockSelector,!1)||r===e.oldValue)return;var i=t.attributes.find((function(t){return t.node===e.target}));if("IFRAME"===o.tagName&&"src"===e.attributeName&&!t.keepIframeSrcFn(r)){if(o.contentDocument)return;e.attributeName="rr_src"}if(i||(i={node:e.target,attributes:{}},t.attributes.push(i)),"style"===e.attributeName){var a=t.doc.createElement("span");e.oldValue&&a.setAttribute("style",e.oldValue),(void 0===i.attributes.style||null===i.attributes.style)&&(i.attributes.style={});for(var s=i.attributes.style,c=0,l=Array.from(o.style);c0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){if("rrweb"===e.data.type){if(!e.source)return;var t=this.crossOriginIframeMap.get(e.source);if(!t)return;var n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}}},{key:"transformCrossOriginEvent",value:function(e,t){var n,o=this;switch(t.type){case m.FullSnapshot:return this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e),{timestamp:t.timestamp,type:m.IncrementalSnapshot,data:{source:b.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case m.Meta:case m.Load:case m.DomContentLoaded:return!1;case m.Plugin:return t;case m.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case m.IncrementalSnapshot:switch(t.data.source){case b.Mutation:return t.data.adds.forEach((function(t){o.replaceIds(t,e,["parentId","nextId","previousId"]),o.replaceIdOnNode(t.node,e)})),t.data.removes.forEach((function(t){o.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){o.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.Drag:case b.TouchMove:case b.MouseMove:return t.data.positions.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.ViewportResize:return!1;case b.MediaInteraction:case b.MouseInteraction:case b.Scroll:case b.CanvasMutation:case b.Input:return this.replaceIds(t.data,e,["id"]),t;case b.StyleSheetRule:case b.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case b.Font:return t;case b.Selection:return t.data.ranges.forEach((function(t){o.replaceIds(t,e,["start","end"])})),t;case b.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach((function(t){o.replaceStyleIds(t,e,["styleId"])})),t}}}},{key:"replace",value:function(e,t,n,o){var r,i=Pn(o);try{for(i.s();!(r=i.n()).done;){var a=r.value;!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]))}}catch(s){i.e(s)}finally{i.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id"]),"childNodes"in e&&e.childNodes.forEach((function(e){n.replaceIdOnNode(e,t)}))}}]),e}(),W=Object.defineProperty,G=Object.defineProperties,V=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,Y=function(e,t,n){return t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},J=function(e,t){for(var n in t||(t={}))X.call(t,n)&&Y(e,n,t[n]);if(K){var o,r=Pn(K(t));try{for(r.s();!(o=r.n()).done;){n=o.value;Z.call(t,n)&&Y(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Q=function(e,t){return G(e,V(t))},$=function(){function e(t){Dn(this,e),this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var n=this;this.restorePatches.push(Ve(Element.prototype,"attachShadow",(function(e){return function(t){var o=e.call(this,t);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),o}})))}return Fn(e,[{key:"addShadowRoot",value:function(e,t){var n=this;!Ee(e)||this.shadowDoms.has(e)||(this.shadowDoms.add(e),lt(Q(J({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),dt(Q(J({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(e.host)),vt({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e)}),0))}},{key:"observeAttachShadow",value:function(e){if(e.contentWindow){var t=this;this.restorePatches.push(Ve(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(o){var r=n.call(this,o);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}})))}}},{key:"reset",value:function(){this.restorePatches.forEach((function(e){return e()})),this.shadowDoms=new WeakSet}}]),e}(),ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=("undefined"==typeof Uint8Array?"undefined":Bn(Uint8Array))>"u"?[]:new Uint8Array(256),ne=0;ne<64;ne++)te[ee.charCodeAt(ne)]=ne;var oe,re,ie,ae=new Map,se=function(e,t,n){if(e&&(le(e,t)||"object"==Bn(e))){var o=function(e,t){var n=ae.get(e);return n||(n=new Map,ae.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name),r=o.indexOf(e);return-1===r&&(r=o.length,o.push(e)),r}},ce=function(e,t,n){return An(e).map((function(e){return mt(e,t,n)}))},le=function(e,t){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(n.find((function(n){return e instanceof t[n]})))},ue=function(e,t,n){var o;return function(r){return o=o||wt(e,t,n),new Worker(o,r)}}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixwPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylwW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgdT1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCxsPW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gdihzLGUsbil7Y29uc3QgYT1gJHtzfS0ke2V9YDtpZigiT2Zmc2NyZWVuQ2FudmFzImluIGdsb2JhbFRoaXMpe2lmKGwuaGFzKGEpKXJldHVybiBsLmdldChhKTtjb25zdCB0PW5ldyBPZmZzY3JlZW5DYW52YXMocyxlKTt0LmdldENvbnRleHQoIjJkIik7Y29uc3QgZz1hd2FpdChhd2FpdCB0LmNvbnZlcnRUb0Jsb2IobikpLmFycmF5QnVmZmVyKCksZD11KGcpO3JldHVybiBsLnNldChhLGQpLGR9ZWxzZSByZXR1cm4iIn1jb25zdCBpPXNlbGY7aS5vbm1lc3NhZ2U9YXN5bmMgZnVuY3Rpb24ocyl7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtjb25zdHtpZDplLGJpdG1hcDpuLHdpZHRoOmEsaGVpZ2h0OnQsZGF0YVVSTE9wdGlvbnM6Z309cy5kYXRhLGQ9dihhLHQsZyksaD1uZXcgT2Zmc2NyZWVuQ2FudmFzKGEsdCk7aC5nZXRDb250ZXh0KCIyZCIpLmRyYXdJbWFnZShuLDAsMCksbi5jbG9zZSgpO2NvbnN0IHc9YXdhaXQgaC5jb252ZXJ0VG9CbG9iKGcpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89dShiKTtpZighYy5oYXMoZSkmJmF3YWl0IGQ9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX1lbHNlIHJldHVybiBpLnBvc3RNZXNzYWdlKHtpZDpzLmRhdGEuaWR9KX19KSgpOwoK",null,!1),de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,he=function(){function e(t){var n=this;Dn(this,e),this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(e)||n.pendingCanvasMutations.set(e,[]),n.pendingCanvasMutations.get(e).push(t)};var o=t.sampling,r=void 0===o?"all":o,i=t.win,a=t.blockClass,s=t.blockSelector,c=t.recordCanvas,l=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&"all"===r&&this.initCanvasMutationObserver(i,a,s),c&&"number"==typeof r&&this.initCanvasFPSObserver(r,i,a,s,{dataURLOptions:l})}return Fn(e,[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,t,n,o,r){var i=this,a=bt(t,n,o),s=new Map,c=new ue;c.onmessage=function(e){var t=e.data.id;if(s.set(t,!1),"base64"in e.data){var n=e.data,o=n.base64,r=n.type,a=n.width,c=n.height;i.mutationCb({id:t,type:w["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:r}]},0,0]}]})}};var l,u=1e3/e,d=0;l=requestAnimationFrame((function e(a){d&&a-d0&&(o.styles=r),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}(),ge=Object.defineProperty,me=Object.defineProperties,be=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,xe=function(e,t,n){return t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Se=function(e,t){for(var n in t||(t={}))we.call(t,n)&&xe(e,n,t[n]);if(ye){var o,r=Pn(ye(t));try{for(r.s();!(o=r.n()).done;){n=o.value;ke.call(t,n)&&xe(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Ce=function(e,t){return me(e,be(t))},Ie=!1,Le=new r;return xt.addCustomEvent=function(e,t){if(!Ie)throw new Error("please add custom event after start recording");oe(kt({type:m.Custom,data:{tag:e,payload:t}}))},xt.freezePage=function(){D.forEach((function(e){return e.freeze()}))},xt.takeFullSnapshot=function(e){if(!Ie)throw new Error("please take full snapshot after start recording");re(e)},xt.mirror=Le,xt}function Te(e){var t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function Ee(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Oe(e){try{var t=e.rules||e.cssRules;return t?function(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}(Array.from(t).map(Me).join("")):null}catch(n){return null}}function Me(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=Oe(e.styleSheet)||t}catch(n){}return t}function Ae(e){var t=e.maskInputOptions,n=e.tagName,o=e.type,r=e.value,i=e.maskInputFn,a=r||"";return(t[n.toLowerCase()]||t[o])&&(a=i?i(a):"*".repeat(a.length)),a}function Pe(){return a++}function Re(e,t){return(e||"").replace(l,(function(e,n,o,r,i,a){var s=o||i||a,c=n||r||"";if(!s)return e;if(!u.test(s)||d.test(s))return"url(".concat(c).concat(s).concat(c,")");if("/"===s[0])return"url(".concat(c).concat(function(e){return(e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(t)+s).concat(c,")");var l=t.split("/"),p=s.split("/");l.pop();for(var f=0,h=p;f=t.length);){var i=o(p);if(","===i.slice(-1))i=Ne(e,i.substring(0,i.length-1)),r.push(i);else{var a="";i=Ne(e,i);for(var s=!1;;){var c=t.charAt(n);if(""===c){r.push((i+a).trim());break}if(s)")"===c&&(s=!1);else{if(","===c){n+=1,r.push((i+a).trim());break}"("===c&&(s=!0)}a+=c,n+=1}}}return r.join(", ")}(e,o):"style"===n&&o?Re(o,je()):"object"===t&&"data"===n&&o?Ne(e,o):o}function _e(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&_e(e.parentNode,t,n);for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&_e(e.parentNode,t,n)}function Be(e,t,n){var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(o.classList.contains(t)||o.closest(".".concat(t)))return!0}else if(_e(o,t,!0))return!0;return!(!n||!o.matches(n)&&!o.closest(n))}function He(t,r){var a=r.doc,c=r.mirror,l=r.blockClass,u=r.blockSelector,d=r.maskTextClass,p=r.maskTextSelector,f=r.inlineStylesheet,h=r.maskInputOptions,v=void 0===h?{}:h,g=r.maskTextFn,m=r.maskInputFn,b=r.dataURLOptions,y=void 0===b?{}:b,w=r.inlineImages,k=r.recordCanvas,x=r.keepIframeSrcFn,S=r.newlyAddedElement,C=void 0!==S&&S,I=function(e,t){if(t.hasNode(e)){var n=t.getId(e);return 1===n?void 0:n}}(a,c);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode}:{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:I};case t.ELEMENT_NODE:return function(t,r){for(var a=r.doc,c=r.blockClass,l=r.blockSelector,u=r.inlineStylesheet,d=r.maskInputOptions,p=void 0===d?{}:d,f=r.maskInputFn,h=r.dataURLOptions,v=void 0===h?{}:h,g=r.inlineImages,m=r.recordCanvas,b=r.keepIframeSrcFn,y=r.newlyAddedElement,w=void 0!==y&&y,k=r.rootId,x=function(e,t,n){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&e.matches(n)}(t,c,l),S=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return s.test(t)?"div":t}(t),C={},I=t.attributes.length,L=0;L2&&void 0!==arguments[2]?arguments[2]:document,o={capture:!0,passive:!0};return n.addEventListener(e,t,o),function(){return n.removeEventListener(e,t,o)}}function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,r=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;st?(o&&(clearTimeout(o),o=null),r=c,e.apply(u,a)):!o&&!1!==n.trailing&&(o=setTimeout((function(){r=!1===n.leading?0:Date.now(),o=null,e.apply(u,a)}),l))}}function Ge(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,o?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),i&&i.set&&i.set.call(this,e)}}),function(){return Ge(e,t,i||{},!0)}}function Ve(e,t,n){try{if(!(t in e))return function(){};var o=e[t],r=n(o);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=r,function(){e[t]=o}}catch(i){return function(){}}}function Ke(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ze(e,t,n,o){if(!e)return!1;var r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!r)return!1;if("string"==typeof t){if(r.classList.contains(t)||o&&null!==r.closest("."+t))return!0}else if(_e(r,t,o))return!0;return!(!n||!(e.matches(n)||o&&null!==r.closest(n)))}function Ye(e,t){return t.getId(e)===c}function Je(e,t){if(Te(e))return!1;var n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Je(e.parentNode,t))}function Qe(e){return Boolean(e.changedTouches)}function $e(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function et(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function tt(e){return Boolean(null==e?void 0:e.shadowRoot)}function nt(e){return"__ln"in e}function ot(e,t){e.delete(t),t.childNodes.forEach((function(t){return ot(e,t)}))}function rt(e,t,n){return 0!==e.length&&it(e,t,n)}function it(e,t,n){var o=t.parentNode;if(!o)return!1;var r=n.getId(o);return!!e.some((function(e){return e.id===r}))||it(e,o,n)}function at(e,t){return 0!==e.size&&st(e,t)}function st(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||st(e,n))}function ct(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(n){return e.target}}function lt(e,t){var n,o,r,i=new I;D.push(i),i.init(e);var a=window.MutationObserver||window.__rrMutationObserver,s=null==(r=null==(o=null===(n=window)||void 0===n?void 0:n.Zone)?void 0:o.__symbol__)?void 0:r.call(o,"MutationObserver");s&&window[s]&&(a=window[s]);var c=new a(i.processMutations.bind(i));return c.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),c}function ut(e){var t=e.mouseInteractionCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.sampling;if(!1===a.mouseInteraction)return function(){};var s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];return Object.keys(y).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]})).forEach((function(e){var a=e.toLowerCase(),s=function(e){return function(n){var a=ct(n);if(!Ze(a,r,i,!0)){var s=Qe(n)?n.changedTouches[0]:n;if(s){var c=o.getId(a),l=s.clientX,u=s.clientY;t({type:y[e],id:c,x:l,y:u})}}}}(e);c.push(ze(a,s,n))})),function(){c.forEach((function(e){return e()}))}}function dt(e){var t=e.scrollCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=We((function(e){var a=ct(e);if(a&&!Ze(a,r,i,!0)){var s=o.getId(a);if(a===n){var c=n.scrollingElement||n.documentElement;t({id:s,x:c.scrollLeft,y:c.scrollTop})}else t({id:s,x:a.scrollLeft,y:a.scrollTop})}}),e.sampling.scroll||100);return ze("scroll",a,n)}function pt(e,t){var n=R({},e);return t||delete n.userTriggered,n}function ft(e){return function(e,t){if(j&&e.parentRule instanceof CSSGroupingRule||F&&e.parentRule instanceof CSSMediaRule||_&&e.parentRule instanceof CSSSupportsRule||B&&e.parentRule instanceof CSSConditionRule){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var o=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(o)}return t}(e,[])}function ht(e,t,n){var o,r;return e?(e.ownerNode?o=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:o}):{}}function vt(e,t){var n,o,r,i=e.mirror,a=e.stylesheetManager,s=null;s="#document"===t.nodeName?i.getId(t):i.getId(t.host);var c="#document"===t.nodeName?null==(n=t.defaultView)?void 0:n.Document:null==(r=null==(o=t.ownerDocument)?void 0:o.defaultView)?void 0:r.ShadowRoot,l=Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets");return null!==s&&-1!==s&&c&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var e;return null==(e=l.get)?void 0:e.call(this)},set:function(e){var t,n=null==(t=l.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{a.adoptStyleSheets(e,s)}catch(o){}return n}}),function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}):function(){}}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var n=e.mutationCb,o=e.mousemoveCb,r=e.mouseInteractionCb,i=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,l=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb;e.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),n.apply(void 0,arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),o.apply(void 0,arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),r.apply(void 0,arguments)},e.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),i.apply(void 0,arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),a.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),s.apply(void 0,arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),c.apply(void 0,arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),l.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),u.apply(void 0,arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),d.apply(void 0,arguments)},e.fontCb=function(){t.font&&t.font.apply(t,arguments),p.apply(void 0,arguments)},e.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),f.apply(void 0,arguments)}}(e,t);var o,r=lt(e,e.doc),i=function(e){var t=e.mousemoveCb,n=e.sampling,o=e.doc,r=e.mirror;if(!1===n.mousemove)return function(){};var i,a="number"==typeof n.mousemove?n.mousemove:50,s="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],l=We((function(e){var n=Date.now()-i;t(c.map((function(e){return e.timeOffset-=n,e})),e),c=[],i=null}),s),u=We((function(e){var t=ct(e),n=Qe(e)?e.changedTouches[0]:e,o=n.clientX,a=n.clientY;i||(i=Date.now()),c.push({x:o,y:a,id:r.getId(t),timeOffset:Date.now()-i}),l(("undefined"==typeof DragEvent?"undefined":Bn(DragEvent))<"u"&&e instanceof DragEvent?b.Drag:e instanceof MouseEvent?b.MouseMove:b.TouchMove)}),a,{trailing:!1}),d=[ze("mousemove",u,o),ze("touchmove",u,o),ze("drag",u,o)];return function(){d.forEach((function(e){return e()}))}}(e),a=ut(e),s=dt(e),c=function(e){var t=e.viewportResizeCb,n=-1,o=-1;return ze("resize",We((function(){var e=Ke(),r=Xe();(n!==e||o!==r)&&(t({width:Number(r),height:Number(e)}),n=e,o=r)}),200),window)}(e),l=function(e){var t=e.inputCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.ignoreClass,s=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,u=e.userTriggeredOnInput;function d(e){var t=ct(e),o=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(H.indexOf(t.tagName)<0)&&!Ze(t,r,i,!0)){var l=t.type;if(!t.classList.contains(a)){var d=t.value,f=!1;"radio"===l||"checkbox"===l?f=t.checked:(s[t.tagName.toLowerCase()]||s[l])&&(d=Ae({maskInputOptions:s,tagName:t.tagName,type:l,value:d,maskInputFn:c})),p(t,pt({text:d,isChecked:f,userTriggered:o},u));var h=t.name;"radio"===l&&h&&f&&n.querySelectorAll('input[type="radio"][name="'.concat(h,'"]')).forEach((function(e){e!==t&&p(e,pt({text:e.value,isChecked:!f,userTriggered:!1},u))}))}}}function p(e,n){var r=q.get(e);if(!r||r.text!==n.text||r.isChecked!==n.isChecked){q.set(e,n);var i=o.getId(e);t(N(R({},n),{id:i}))}}var f=("last"===l.input?["change"]:["input","change"]).map((function(e){return ze(e,d,n)})),h=n.defaultView;if(!h)return function(){f.forEach((function(e){return e()}))};var v=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),g=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&f.push.apply(f,An(g.map((function(e){return Ge(e[0],e[1],{set:function(){d({target:this})}},!1,h)})))),function(){f.forEach((function(e){return e()}))}}(e),u=function(e){var t=e.mediaInteractionCb,n=e.blockClass,o=e.blockSelector,r=e.mirror,i=e.sampling,a=function(e){return We((function(i){var a=ct(i);if(a&&!Ze(a,n,o,!0)){var s=a.currentTime,c=a.volume,l=a.muted,u=a.playbackRate;t({type:e,id:r.getId(a),currentTime:s,volume:c,muted:l,playbackRate:u})}}),i.media||500)},s=[ze("play",a(k.Play)),ze("pause",a(k.Pause)),ze("seeked",a(k.Seeked)),ze("volumechange",a(k.VolumeChange)),ze("ratechange",a(k.RateChange))];return function(){s.forEach((function(e){return e()}))}}(e),d=function(e,t){var n=e.styleSheetRuleCb,o=e.mirror,r=e.stylesheetManager,i=t.win,a=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(e,t){var i=ht(this,o,r.styleMirror),s=i.id,c=i.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:t}]}),a.apply(this,[e,t])};var s,c,l=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,removes:[{index:e}]}),l.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replace:e}),s.apply(this,[e])}),i.CSSStyleSheet.prototype.replaceSync&&(c=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replaceSync:e}),c.apply(this,[e])});var u={};j?u.CSSGroupingRule=i.CSSGroupingRule:(F&&(u.CSSMediaRule=i.CSSMediaRule),B&&(u.CSSConditionRule=i.CSSConditionRule),_&&(u.CSSSupportsRule=i.CSSSupportsRule));var d={};return Object.entries(u).forEach((function(e){var t=Mn(e,2),i=t[0],a=t[1];d[i]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=function(e,t){var a=ht(this.parentStyleSheet,o,r.styleMirror),s=a.id,c=a.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:[].concat(An(ft(this)),[t||0])}]}),d[i].insertRule.apply(this,[e,t])},a.prototype.deleteRule=function(e){var t=ht(this.parentStyleSheet,o,r.styleMirror),a=t.id,s=t.styleId;return(a&&-1!==a||s&&-1!==s)&&n({id:a,styleId:s,removes:[{index:[].concat(An(ft(this)),[e])}]}),d[i].deleteRule.apply(this,[e])}})),function(){i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=l,s&&(i.CSSStyleSheet.prototype.replace=s),c&&(i.CSSStyleSheet.prototype.replaceSync=c),Object.entries(u).forEach((function(e){var t=Mn(e,2),n=t[0],o=t[1];o.prototype.insertRule=d[n].insertRule,o.prototype.deleteRule=d[n].deleteRule}))}}(e,{win:n}),p=vt(e,e.doc),f=function(e,t){var n=e.styleDeclarationCb,o=e.mirror,r=e.ignoreCSSAttributes,i=e.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=function(e,t,a){var c;if(r.has(e))return s.apply(this,[e,t,a]);var l=ht(null==(c=this.parentRule)?void 0:c.parentStyleSheet,o,i.styleMirror),u=l.id,d=l.styleId;return(u&&-1!==u||d&&-1!==d)&&n({id:u,styleId:d,set:{property:e,value:t,priority:a},index:ft(this.parentRule)}),s.apply(this,[e,t,a])};var c=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=function(e){var t;if(r.has(e))return c.apply(this,[e]);var a=ht(null==(t=this.parentRule)?void 0:t.parentStyleSheet,o,i.styleMirror),s=a.id,l=a.styleId;return(s&&-1!==s||l&&-1!==l)&&n({id:s,styleId:l,remove:{property:e},index:ft(this.parentRule)}),c.apply(this,[e])},function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=c}}(e,{win:n}),h=e.collectFonts?function(e){var t=e.fontCb,n=e.doc,o=n.defaultView;if(!o)return function(){};var r=[],i=new WeakMap,a=o.FontFace;o.FontFace=function(e,t,n){var o=new a(e,t,n);return i.set(o,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),o};var s=Ve(n.fonts,"add",(function(e){return function(n){return setTimeout((function(){var e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}}));return r.push((function(){o.FontFace=a})),r.push(s),function(){r.forEach((function(e){return e()}))}}(e):function(){},v=function(e){var t=e.doc,n=e.mirror,o=e.blockClass,r=e.blockSelector,i=e.selectionCb,a=!0,s=function(){var e=t.getSelection();if(!(!e||a&&null!=e&&e.isCollapsed)){a=e.isCollapsed||!1;for(var s=[],c=e.rangeCount||0,l=0;l>2],r+=ee[(3&n[t])<<4|n[t+1]>>4],r+=ee[(15&n[t+1])<<2|n[t+2]>>6],r+=ee[63&n[t+2]];return o%3==2?r=r.substring(0,r.length-1)+"=":o%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(e);return{rr_type:o,base64:r}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[mt(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[mt(e.data,t,n),e.width,e.height]}:le(e,t)||"object"==Bn(e)?{rr_type:e.constructor.name,index:se(e,t,n)}:e}function bt(e,t,n){var o=[];try{var r=Ve(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,n=e.checkoutEveryNms,o=e.checkoutEveryNth,i=e.blockClass,a=void 0===i?"rr-block":i,s=e.blockSelector,c=void 0===s?null:s,l=e.ignoreClass,u=void 0===l?"rr-ignore":l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,f=e.maskTextSelector,h=void 0===f?null:f,v=e.inlineStylesheet,g=void 0===v||v,y=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,x=e.maskInputFn,S=e.maskTextFn,C=e.hooks,I=e.packFn,L=e.sampling,T=void 0===L?{}:L,E=e.dataURLOptions,O=void 0===E?{}:E,M=e.mousemoveWait,A=e.recordCanvas,P=void 0!==A&&A,R=e.recordCrossOriginIframes,N=void 0!==R&&R,j=e.userTriggeredOnInput,F=void 0!==j&&j,_=e.collectFonts,B=void 0!==_&&_,H=e.inlineImages,q=void 0!==H&&H,U=e.plugins,W=e.keepIframeSrcFn,G=void 0===W?function(){return!1}:W,V=e.ignoreCSSAttributes,K=void 0===V?new Set([]):V,X=!N||window.parent===window,Z=!1;if(!X)try{window.parent.document,Z=!1}catch(ye){Z=!0}if(X&&!t)throw new Error("emit function is required");void 0!==M&&void 0===T.mousemove&&(T.mousemove=M),Le.reset();var Y=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==w?w:{password:!0},J=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k}:k||{};!function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,n=new Array(t),o=0;o=o,c=n&&e.timestamp-Q.timestamp>n;(s||c)&&re(!0)}};var ne,ae=function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Mutation},e)}))},se=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Scroll},e)}))},ce=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.CanvasMutation},e)}))},le=new ve({mutationCb:ae,adoptedStyleSheetCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.AdoptedStyleSheet},e)}))}}),ue=new z({mirror:Le,mutationCb:ae,stylesheetManager:le,recordCrossOriginIframes:N,wrappedEmit:oe}),de=Pn(U||[]);try{for(de.s();!(ne=de.n()).done;){var pe=ne.value;pe.getMirror&&pe.getMirror({nodeMirror:Le,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}}catch(we){de.e(we)}finally{de.f()}ie=new he({recordCanvas:P,mutationCb:ce,win:window,blockClass:a,blockSelector:c,mirror:Le,sampling:T.canvas,dataURLOptions:O});var fe=new $({mutationCb:ae,scrollCb:se,bypassOptions:{blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskInputOptions:Y,dataURLOptions:O,maskTextFn:S,maskInputFn:x,recordCanvas:P,inlineImages:q,sampling:T,slimDOMOptions:J,iframeManager:ue,stylesheetManager:le,canvasManager:ie,keepIframeSrcFn:G},mirror:Le});re=function(){var e,t,n,o,i,s,l,u,d,f,v,b,y=arguments.length>0&&void 0!==arguments[0]&&arguments[0];oe(kt({type:m.Meta,data:{href:window.location.href,width:Xe(),height:Ke()}}),y),le.reset(),D.forEach((function(e){return e.lock()}));var w=function(e,t){var n=t||{},o=n.mirror,i=void 0===o?new r:o,a=n.blockClass,s=void 0===a?"rr-block":a,c=n.blockSelector,l=void 0===c?null:c,u=n.maskTextClass,d=void 0===u?"rr-mask":u,p=n.maskTextSelector,f=void 0===p?null:p,h=n.inlineStylesheet,v=void 0===h||h,g=n.inlineImages,m=void 0!==g&&g,b=n.recordCanvas,y=void 0!==b&&b,w=n.maskAllInputs,k=void 0!==w&&w,x=n.maskTextFn,S=n.maskInputFn,C=n.slimDOM,I=void 0!==C&&C,L=n.dataURLOptions,T=n.preserveWhiteSpace,E=n.onSerialize,O=n.onIframeLoad,M=n.iframeLoadTimeout,A=n.onStylesheetLoad,P=n.stylesheetLoadTimeout,R=n.keepIframeSrcFn;return Ue(e,{doc:e,mirror:i,blockClass:s,blockSelector:l,maskTextClass:d,maskTextSelector:f,skipChild:!1,inlineStylesheet:v,maskInputOptions:!0===k?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===k?{password:!0}:k,maskTextFn:x,maskInputFn:S,slimDOMOptions:!0===I||"all"===I?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===I,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===I?{}:I,dataURLOptions:L,inlineImages:m,recordCanvas:y,preserveWhiteSpace:T,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:void 0===R?function(){return!1}:R,newlyAddedElement:!1})}(document,{mirror:Le,blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskAllInputs:Y,maskTextFn:S,slimDOM:J,dataURLOptions:O,recordCanvas:P,inlineImages:q,onSerialize:function(e){$e(e,Le)&&ue.addIframe(e),et(e,Le)&&le.trackLinkElement(e),tt(e)&&fe.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),fe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:G});if(!w)return console.warn("Failed to snapshot the document");oe(kt({type:m.FullSnapshot,data:{node:w,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===(e=document)||void 0===e?void 0:e.documentElement.scrollLeft)||(null==(u=null==(l=null===(t=document)||void 0===t?void 0:t.body)?void 0:l.parentElement)?void 0:u.scrollLeft)||(null==(d=null===(n=document)||void 0===n?void 0:n.body)?void 0:d.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===(o=document)||void 0===o?void 0:o.documentElement.scrollTop)||(null==(v=null==(f=null===(i=document)||void 0===i?void 0:i.body)?void 0:f.parentElement)?void 0:v.scrollTop)||(null==(b=null===(s=document)||void 0===s?void 0:s.body)?void 0:b.scrollTop)||0}}})),D.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,Le.getId(document))};try{var ge=[];ge.push(ze("DOMContentLoaded",(function(){oe(kt({type:m.DomContentLoaded,data:{}}))})));var me=function(e){var t;return gt({mutationCb:ae,mousemoveCb:function(e,t){return oe(kt({type:m.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MouseInteraction},e)}))},scrollCb:se,viewportResizeCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.ViewportResize},e)}))},inputCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Input},e)}))},mediaInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleDeclaration},e)}))},canvasMutationCb:ce,fontCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Font},e)}))},selectionCb:function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Selection},e)}))},blockClass:a,ignoreClass:u,maskTextClass:p,maskTextSelector:h,maskInputOptions:Y,inlineStylesheet:g,sampling:T,recordCanvas:P,inlineImages:q,userTriggeredOnInput:F,collectFonts:B,doc:e,maskInputFn:x,maskTextFn:S,keepIframeSrcFn:G,blockSelector:c,slimDOMOptions:J,dataURLOptions:O,mirror:Le,iframeManager:ue,stylesheetManager:le,shadowDomManager:fe,canvasManager:ie,ignoreCSSAttributes:K,plugins:(null==(t=null==U?void 0:U.filter((function(e){return e.observer})))?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return oe(kt({type:m.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},C)};ue.addLoadListener((function(e){ge.push(me(e.contentDocument))}));var be=function(){re(),ge.push(me(document)),Ie=!0};return"interactive"===document.readyState||"complete"===document.readyState?be():ge.push(ze("load",(function(){oe(kt({type:m.Load,data:{}})),be()}),window)),function(){ge.forEach((function(e){return e()})),Ie=!1}}catch(ge){console.warn(ge)}}}();function qn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n4e6){var n,o=/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim,r=qn(t.matchAll(o));try{for(r.s();!(n=r.n()).done;){var i=n.value;t="image/"===i[1].toLocaleLowerCase().slice(0,6)?t.replace(i[0],"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAQSURBVHgBAQUA+v8ABRg5/wHSAVZN1mnaAAAAAElFTkSuQmCC"):t.replace(i[0],"")}}catch(a){r.e(a)}finally{r.f()}}return{event:JSON.parse(t),size:t.length}}(t).event;e.push(n)}}))}catch(t){console.error(t)}}},{key:"stop",value:function(){this.stopFunction&&this.stopFunction(),this.startDate=void 0,this.events=[],this.bufferSize=0}},{key:"getReplayData",value:function(){return{startDate:this.startDate,events:this.events,baseUrl:window.location.origin,width:window.innerWidth,height:window.innerHeight,isMobile:w(),type:"rrweb"}}}])&&Vn(t.prototype,n),o&&Vn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Jn(e,t){for(var n=0;nthis.startPoint.x&&(r=this.startPoint.x),t.y>this.startPoint.y&&(i=this.startPoint.y),this.path.setAttributeNS(null,"x",r),this.path.setAttributeNS(null,"y",i),this.path.setAttributeNS(null,"width",n),this.path.setAttributeNS(null,"height",o)}}},{key:"mouseDownRect",value:function(e){this.path=document.createElementNS("http://www.w3.org/2000/svg","rect"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",this.color),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",this.strokeWidthRect),this.startPoint=this.getMousePosition(e),this.appendPathToSvg(this.path)}},{key:"mouseDownPen",value:function(e){var t=this.color+"AA",n=this.strokeWidth;"blur"===this.tool&&(t="#000000",n=40),this.path=document.createElementNS("http://www.w3.org/2000/svg","path"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",t),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",n),this.buffer=[];var o=this.getMousePosition(e);this.appendToBuffer(o),this.strPath="M"+o.x+" "+o.y,this.path.setAttribute("d",this.strPath),this.appendPathToSvg(this.path)}},{key:"setTool",value:function(e){this.tool=e}},{key:"setColor",value:function(e){this.color=e}},{key:"getMousePosition",value:function(e){return e.touches&&e.touches.length>0?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}},{key:"getAveragePoint",value:function(e){var t=this.buffer.length;if(t%2==1||t>=this.bufferSize){var n,o,r=0,i=0,a=0;for(o=e;othis.bufferSize;)this.buffer.shift()}},{key:"appendPathToSvg",value:function(e){this.svgElement.appendChild(e),this.pathBuffer.push(e),this.rerender()}},{key:"removeLastAddedPathFromSvg",value:function(){this.pathBuffer.length<=0||!this.svgElement||(this.svgElement.removeChild(this.pathBuffer[this.pathBuffer.length-1]),this.pathBuffer.pop(),this.rerender())}},{key:"fadeOutToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=0,e.style.pointerEvents="none")}},{key:"fadeInToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=1,e.style.pointerEvents="auto")}}],n&&Jn(t.prototype,n),o&&Jn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function to(e){return to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},to(e)}function no(e,t){for(var n=0;n\n \n
'.concat(p("dismiss"),"
\n
").concat(p("rect"),'
\n
\n
\n ').concat(p("drag"),"\n
\n ").concat("capture"===this.type?'
\n '.concat(p("recorderon"),"\n ").concat(p("recorderoff"),'\n \n
\n
\n ').concat(p("mic"),'\n \n
\n
2:00
\n
\n
\n ').concat(p("pointer"),"\n
"):"",'\n
\n ').concat(p("rect"),'\n
\n
\n ').concat(p("pen"),'\n
\n
\n ').concat(p("blur"),'\n
\n
\n
\n ').concat(go.translateText("pickAColor"),'\n
\n
\n ').concat(p("undo"),'\n ').concat(go.translateText("undo"),"\n
\n ").concat("capture"!==this.type?'
'.concat(go.translateText("next"),"
"):"",'\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
').concat(go.translateText("retry"),'
\n
').concat(go.translateText("next"),"
\n
\n
\n
\n "),document.body.appendChild(e),e.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}},{key:"unregisterListeners",value:function(){this.escListener&&document.removeEventListener("keydown",this.escListener),this.pageLeaveListener&&window.removeEventListener("beforeunload",this.pageLeaveListener)}},{key:"registerListeners",value:function(){var e=this;this.escListener=function(t){var n=!1,o=!1;"key"in(t=t||window.event)&&(n="Escape"===t.key,o="Enter"===t.key),n&&e.dismiss(),"screenshot"===e.type&&o&&e.showNextStep()},document.addEventListener("keydown",this.escListener),this.pageLeaveListener=function(e){e.preventDefault(),e.returnValue=""},window.addEventListener("beforeunload",this.pageLeaveListener)}},{key:"show",value:function(e){this.callback=e,this.registerListeners(),this.hideWidgetUI(),this.createEditorUI(),this.setupMousePointer(),"screenshot"===this.type?(ki.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY}),io.disableScroll()):this.setupScreenRecording(),this.screenDrawer=new eo(this.captureScreenDrawerRerender.bind(this)),this.setupColorPicker(),this.setupToolbar()}},{key:"setupColorPicker",value:function(){for(var t=this,n=document.querySelector(".bb-capture-toolbar-item-selectedcolor"),o=document.querySelectorAll(".bb-capture-toolbar-item-color"),r=document.querySelector(".bb-capture-toolbar-item-colorpicker"),i=function(){var i=o[a],s=i.getAttribute("data-color");i.style.backgroundColor=s,i.onclick=function(){i&&(t.screenDrawer.setColor(s),r&&(r.style.display="none"),n.style.backgroundColor=i.style.backgroundColor,e.setPenColor(s))}},a=0;a0?o.classList.remove(e):o.classList.add(e))}}},{key:"captureRenderer",value:function(){if(this.screenRecorder){this.screenRecorder.file&&ki.getInstance().setGlobalDataItem("screenRecordingData",this.screenRecorder.file);var e="bb-capture-editor-item-inactive",t=document.querySelector(".bb-capture-toolbar-item-timer"),n=document.querySelectorAll(".bb-capture-toolbar-item"),o=document.querySelector(".bb-tooltip-screen-recording"),r=document.querySelector(".bb-tooltip-audio-recording"),i=document.querySelector(".bb-capture-editor"),a="bb-capture-editor-recording",s="bb-capture-editor-notrecording";this.screenRecorder.isRecording?(i.classList.add(a),i.classList.remove(s)):(i.classList.add(s),i.classList.remove(a));var c=document.querySelector(".bb-capture-toolbar");document.querySelector(".bb-capture-preview").style.display=this.screenRecorder.file?"flex":"none",c.style.display=this.screenRecorder.file?"none":"flex";for(var l=0;l0){var t=e.filter((function(e){return new Date(e.createdAt)>new Date(Date.now()-36e5)}));t.length>2?this.notifications=t.splice(0,t.length-2):this.notifications=t,this.renderNotifications()}}catch(n){}}},{key:"setNotificationCount",value:function(e){Gt.getInstance().isOpened()?(this.unreadCount=0,this.updateTabBarNotificationCount()):this.unreadCount=e,this.updateTabBarNotificationCount(),a.getInstance().updateNotificationBadge(this.unreadCount)}},{key:"showNotification",value:function(e){this.notificationContainer&&e&&e.data&&(this.notifications.find((function(t){return e.outbound===t.outbound}))||(this.notifications.push(e),e.sound&&Yo.ping()),this.notifications.length>2&&this.notifications.shift(),I(this.unreadNotificationsKey,this.notifications),this.renderNotifications())}},{key:"renderNotifications",value:function(){var e=this;if(this.notificationContainer){this.clearAllNotifications(!0);var t=document.createElement("div");t.onclick=function(){e.clearAllNotifications(),e.currentNewsIndex=0},t.className="gleap-notification-close",t.innerHTML=p("dismiss"),this.notificationContainer.appendChild(t);var n=this.notifications.filter((function(e){return e.data.news})).sort((function(e,t){return new Date(e.createdAt)-new Date(t.createdAt)})),o=this.notifications.filter((function(e){return!e.data.news}));if(n.length>0){var r=this.currentNewsIndex1){var v=document.createElement("div");v.className="gleap-news-pagination";var g=document.createElement("span");g.className="gleap-news-page-indicator",g.innerText="".concat(r+1," / ").concat(n.length),v.appendChild(g);var m=document.createElement("button");m.className="gleap-news-next-button",r\n
\n
\n '.concat(t.data.text,'\n
\n
\n
\n
\n
\n \n \n \n ').concat(t.data.nextStepTitle,"\n
\n
\n ")}else r.className="gleap-notification-item",r.innerHTML="\n ".concat(t.data.sender&&t.data.sender.profileImageUrl&&''),'\n
\n ').concat(t.data.sender?'
\n '.concat(t.data.sender.name,"\n
"):"",'\n
').concat(n,"
\n
");e.notificationContainer.appendChild(r)},y=0;y0||o.length>0||this.clearAllNotifications(!0)}}},{key:"openNews",value:function(e){e.data.news?ki.openNewsArticle(e.data.news.id,!0):ki.open()}},{key:"renderDescription",value:function(e){var t=e.data,n=t.previewText,o=t.sender;return n&&n.length>0?n:o?'\n
\n '.concat(o.profileImageUrl?'').concat(o.name,''):"","\n ").concat(o.name,"\n
\n "):""}},{key:"clearAllNotifications",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.notificationContainer)for(e||(this.notifications=[],this.currentNewsIndex=0,I(this.unreadNotificationsKey,this.notifications));this.notificationContainer.firstChild;)this.notificationContainer.removeChild(this.notificationContainer.firstChild)}},{key:"updateContainerStyle",value:function(){if(this.notificationContainer){var e=ut.getInstance().getFlowConfig(),t="gleap-notification-container--left",n="gleap-notification-container--no-button";this.notificationContainer.classList.remove(t),this.notificationContainer.classList.remove(n),e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_CLASSIC_LEFT&&e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_BOTTOM_LEFT||this.notificationContainer.classList.add(t),null===a.getInstance().buttonHidden?e.feedbackButtonPosition===a.FEEDBACK_BUTTON_NONE&&this.notificationContainer.classList.add(n):a.getInstance().buttonHidden&&this.notificationContainer.classList.add(n),this.notificationContainer.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Eo(t.prototype,n),o&&Eo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Po(e){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(e)}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function No(e){for(var t=1;t'),document.body.appendChild(t),this.bannerContainer=t}},{key:"sendMessage",value:function(e){try{var t=document.querySelector(".gleap-b-frame");t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(No(No({},e),{},{type:"banner"})),"*")}catch(n){}}},{key:"showBanner",value:function(e){this.injectBannerUI(e)}}])&&Do(t.prototype,n),o&&Do(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bo(e){return Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo(e)}function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function qo(e){for(var t=1;t\n
\n \n
\n '),document.body.appendChild(n),this.modalContainer=n,this.modalBackdropClickListener=this.modalContainer.querySelector(".gleap-modal-backdrop").addEventListener("click",(function(){var e,n;(null===(e=null===(n=t.modalData)||void 0===n?void 0:n.showCloseButton)||void 0===e||e)&&t.hideModal()})),document.body.classList.add("gleap-modal-open")}},{key:"_postMessage",value:function(e){try{var t=this.modalContainer.querySelector(".gleap-modal-frame");null!=t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(qo(qo({},e),{},{type:"modal"})),this.modalUrl)}catch(n){}}},{key:"showModal",value:function(e){e&&e.config&&this._injectModalUI(e.config)}},{key:"hideModal",value:function(){this.modalContainer&&(this.modalBackdropClickListener&&this.modalContainer.querySelector(".gleap-modal-backdrop").removeEventListener("click",this.modalBackdropClickListener),document.body.removeChild(this.modalContainer),this.modalContainer=null,document.body.classList.remove("gleap-modal-open"))}}])&&Uo(t.prototype,n),o&&Uo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function Ko(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0])||o(t.gleapCollapseUI,e)&&o(t.gleapFrameContainer,n))&&(t.gleapCollapseUI&&t.gleapCollapseUI.classList.toggle(e),t.gleapFrameContainer&&t.gleapFrameContainer.classList.toggle(n))})),wr(this,"injectCollapseUI",(function(){if(!t.injectedCollapseUI){t.injectedCollapseUI=!0;var e=document.createElement("div");e.className="gleap-admin-collapse-ui",e.innerHTML='
\n '.concat(p("arrowdown"),"\n
"),document.body.appendChild(e),t.gleapCollapseUI=e,e.addEventListener("click",(function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t.toggleCollapseUI()}))}})),wr(this,"injectFrame",(function(){var e;if(!t.injectedFrame){t.injectedFrame=!0;var n=document.createElement("div");n.className="gleap-admin-frame-container",n.innerHTML=''),document.body.appendChild(n),t.gleapFrameContainer=n,t.gleapFrame=document.querySelector(".gleap-admin-frame")}}))}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"logCurrentPage",value:function(){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.sendMessageToTourBuilder({name:"page-changed",data:{page:e}}))}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"initAdminHelper",value:function(){var e=this;Yr.getInstance().disable(),e.adminHelper=new vr;try{e.adminHelper.onElementPicked=function(t){e.toggleCollapseUI(!0),e.sendMessageToTourBuilder({name:"element-picked",data:{selector:t}})}}catch(t){console.log(t)}e.injectFrame(),e.injectCollapseUI(),e.setFrameHeight("loading")}},{key:"setFrameHeight",value:function(e){if(this.gleapFrameContainer){var t="";t="picker"===e||"navigate"===e?"65px":"editor"===e?"100vh":"0px",this.gleapFrameContainer.style.height=t}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!window.gleapAdminDisabled){var t=this;window.addEventListener("message",(function(n){if("https://app.gleap.io"===n.origin)try{var o=JSON.parse(n.data);if("admin"===o.type&&("load"===o.name&&(t.configData=o.data,t.initAdminHelper()),"smartlink-search-result"===o.name&&e.sendMessageToTourBuilder({name:"smartlink-search-result",data:o.data})),"tourbuilder"===o.type){var r;if("loaddata"===o.name&&e.sendMessageToTourBuilder({name:"data",data:br(br({},t.configData),{},{currentPage:window.location.href})}),"highlight-element"===o.name&&(document.querySelectorAll(".gleap-admin-highlight").forEach((function(e){e.classList.remove("gleap-admin-highlight")})),null!=o&&null!==(r=o.data)&&void 0!==r&&r.selector)){var i,a=document.querySelector(null==o||null===(i=o.data)||void 0===i?void 0:i.selector);a&&a.classList.add("gleap-admin-highlight")}if("smartlink-search"===o.name&&e.sendMessage({name:"smartlink-search",data:o.data}),"product-tour-started"===o.name&&e.sendMessage({name:"product-tour-started",data:o.data}),"save"===o.name&&e.sendMessage({name:"save",data:o.data}),"update-steps"===o.name&&e.sendMessage({name:"update-steps",data:o.data}),"click"===o.name)try{document.querySelector(o.data.selector).click()}catch(s){console.log(s)}"status-changed"===o.name&&(t.status=o.data,e.setFrameHeight(t.status),t.adminHelper.stopPicker(),"picker"===t.status&&t.adminHelper.startPicker())}}catch(c){}})),this.sendMessage({name:"init"}),this.startPageListener()}}},{key:"sendMessage",value:function(e){try{window&&window.opener&&window.opener.postMessage(JSON.stringify(br(br({},e),{},{type:"admin"})),"*")}catch(t){}}},{key:"sendMessageToTourBuilder",value:function(e){try{this.gleapFrame&&this.gleapFrame.contentWindow&&this.gleapFrame.contentWindow.postMessage(JSON.stringify(br(br({},e),{},{type:"tourbuilder"})),"*")}catch(t){}}}])&&yr(t.prototype,n),o&&yr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Cr(e){return function(e){if(Array.isArray(e))return Ir(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ir(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ir(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{})}function n(t){return t?e[t]:e}function o(e,t,n,o){return(e/=o/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function r(e){var t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap((function(e){var n=e.matches(t),o=Array.from(e.querySelectorAll(t));return[].concat(Cr(n?[e]:[]),o)})).filter((function(e){return"none"!==getComputedStyle(e).pointerEvents&&function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)}))}function i(e){if(e&&!function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e)){var t=n("smoothScroll");e.scrollIntoView({behavior:!t||a(e)?"auto":"smooth",inline:"center",block:"center"})}}function a(e){if(e&&e.parentElement){var t=e.parentElement;return t.scrollHeight>t.clientHeight}}var s={};function c(e,t){s[e]=t}function l(e){return e?s[e]:s}function u(){s={}}var d={};function p(e,t){d[e]=t}function f(e){var t;null==(t=d[e])||t.call(d)}function h(e){if(e){var t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};c("__activeStagePosition",n),g(n)}}function v(e){var t=function(e){var t=window.innerWidth,o=window.innerHeight,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.classList.add("gleap-tour-overlay","gleap-tour-overlay-animated"),r.setAttribute("viewBox","0 0 ".concat(t," ").concat(o)),r.setAttribute("xmlSpace","preserve"),r.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("preserveAspectRatio","xMinYMin slice"),r.style.fillRule="evenodd",r.style.clipRule="evenodd",r.style.strokeLinejoin="round",r.style.strokeMiterlimit="2",r.style.zIndex="10000",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%";var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",m(e)),i.style.fill=n("overlayColor")||"rgb(0,0,0)",i.style.opacity="".concat(n("overlayOpacity")),i.style.pointerEvents="auto",i.style.cursor="auto",r.appendChild(i),r}(e);document.body.appendChild(t),S(t,(function(e){"path"===e.target.tagName&&f("overlayClick")})),c("__overlaySvg",t)}function g(e){var t=l("__overlaySvg");if(t){var n=t.firstElementChild;if("path"!==(null==n?void 0:n.tagName))throw new Error("no path element found in stage svg");n.setAttribute("d",m(e))}else v(e)}function m(e){var t=window.innerWidth,o=window.innerHeight,r=n("stagePadding")||0,i=n("stageRadius")||0,a=e.width+2*r,s=e.height+2*r,c=Math.min(i,a/2,s/2),l=Math.floor(Math.max(c,0)),u=e.x-r+l,d=e.y-r,p=a-2*l,f=s-2*l;return"M".concat(t,",0L0,0L0,").concat(o,"L").concat(t,",").concat(o,"L").concat(t,",0Z\n M").concat(u,",").concat(d," h").concat(p," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",").concat(l," v").concat(f," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",").concat(l," h-").concat(p," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",-").concat(l," v-").concat(f," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",-").concat(l," z")}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,r=e.element,a=r;if("string"==typeof a)try{a=document.querySelector(r)}catch(u){var s=r.replace(/(#[^#\s]+)/g,(function(e){return e.replace(/:/g,"\\:")}));a=document.querySelector(s)}if(r&&!a&&t>=0)setTimeout((function(){C(),b(e,t-100)}),100);else{if(!a&&("INPUT"===e.mode||"CLICK"===e.mode))return n("onElementNotFound")(e);a||(a=function(){var e=document.getElementById("gleap-tour-dummy-element");if(e)return e;var t=document.createElement("div");return t.id="gleap-tour-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}()),function(e,t){var r,a,s=400,u=Date.now(),d=l("__activeStep"),p=l("__activeElement")||e,f=!p||p===e,v="gleap-tour-dummy-element"===e.id,m="gleap-tour-dummy-element"===p.id,b=n("animate"),y=t.onHighlightStarted||n("onHighlightStarted"),w=(null==t?void 0:t.onHighlighted)||n("onHighlighted"),k=(null==d?void 0:d.onDeselected)||n("onDeselected"),x=n(),S=l();!f&&k&&k(m?void 0:p,d,{config:x,state:S});y&&y(v?void 0:e,t,{config:x,state:S});var L=!f&&b,T=!1;C(),c("previousStep",d),c("previousElement",p),c("activeStep",t),c("activeElement",e);var E=function r(){if(l("__transitionCallback")===r){var i=Date.now()-u,a=s-i<=s/2;t.popover&&a&&!T&&L&&(I(e,t),T=!0),n("animate")&&i0&&R[0].focus()}function L(){var e=l("popover");if(null==e?void 0:e.wrapper){var t=e.wrapper.getBoundingClientRect(),o=n("stagePadding")||0,r=n("popoverOffset")||0;return{width:t.width+o+r,height:t.height+o+r,realWidth:t.width,realHeight:t.height}}}function T(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.top-r,window.innerHeight-o.realHeight-i.width),i.width):"end"===e?Math.max(Math.min(n.top-(null==o?void 0:o.realHeight)+n.height+r,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):"center"===e?Math.max(Math.min(n.top+n.height/2-(null==o?void 0:o.realHeight)/2,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):0}function E(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.left-r,window.innerWidth-o.realWidth-i.width),i.width):"end"===e?Math.max(Math.min(n.left-(null==o?void 0:o.realWidth)+n.width+r,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):"center"===e?Math.max(Math.min(n.left+n.width/2-(null==o?void 0:o.realWidth)/2,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):0}function O(e,t){var o=l("popover");if(o){var r=(null==t?void 0:t.popover)||{},i=r.align,a=void 0===i?"start":i,s=r.side,c=void 0===s?"left":s,u=a,d="gleap-tour-dummy-element"===e.id?"over":c,p=n("stagePadding")||0,f=L(),h=o.arrow.getBoundingClientRect(),v=e.getBoundingClientRect(),g=v.top-f.height,m=g>=0,b=window.innerHeight-(v.bottom+f.height),y=b>=0,w=v.left-f.width,k=w>=0,x=window.innerWidth-(v.right+f.width),S=x>=0,C=!(m||y||k||S),I=d;if("top"===d&&m?S=k=y=!1:"bottom"===d&&y?S=k=m=!1:"left"===d&&k?S=m=y=!1:"right"===d&&S&&(k=m=y=!1),"over"===d){var O=window.innerWidth/2-f.realWidth/2,M=window.innerHeight/2-f.realHeight/2;o.wrapper.style.left="".concat(O,"px"),o.wrapper.style.right="auto",o.wrapper.style.top="".concat(M,"px"),o.wrapper.style.bottom="auto"}else if(C){var A=window.innerWidth/2-(null==f?void 0:f.realWidth)/2;o.wrapper.style.left="".concat(A,"px"),o.wrapper.style.right="auto",o.wrapper.style.bottom="".concat(10,"px"),o.wrapper.style.top="auto"}else if(k){var P=Math.min(w,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),R=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(P,"px"),o.wrapper.style.top="".concat(R,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="left"}else if(S){var N=Math.min(x,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),D=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.right="".concat(N,"px"),o.wrapper.style.top="".concat(D,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.left="auto",I="right"}else if(m){var j=Math.min(g,window.innerHeight-f.realHeight-h.width),F=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.top="".concat(j,"px"),o.wrapper.style.left="".concat(F,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="top"}else if(y){var _=Math.min(b,window.innerHeight-(null==f?void 0:f.realHeight)-h.width),B=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(B,"px"),o.wrapper.style.bottom="".concat(_,"px"),o.wrapper.style.top="auto",o.wrapper.style.right="auto",I="bottom"}C?o.arrow.classList.add("gleap-tour-popover-arrow-none"):function(e,t,n){var o=l("popover");if(!o)return;var r=n.getBoundingClientRect(),i=L(),a=o.arrow,s=i.width,c=window.innerWidth,u=r.width,d=r.left,p=i.height,f=window.innerHeight,h=r.top,v=r.height;a.className="gleap-tour-popover-arrow";var g=t,m=e;"top"===t?(d+u<=0?(g="right",m="end"):d+u-s<=0&&(g="top",m="start"),d>=c?(g="left",m="end"):d+s>=c&&(g="top",m="end")):"bottom"===t?(d+u<=0?(g="right",m="start"):d+u-s<=0&&(g="bottom",m="start"),d>=c?(g="left",m="start"):d+s>=c&&(g="bottom",m="end")):"left"===t?(h+v<=0?(g="bottom",m="end"):h+v-p<=0&&(g="left",m="start"),h>=f?(g="top",m="end"):h+p>=f&&(g="left",m="end")):"right"===t&&(h+v<=0?(g="bottom",m="start"):h+v-p<=0&&(g="right",m="start"),h>=f?(g="top",m="start"):h+p>=f&&(g="right",m="end"));g?(a.classList.add("gleap-tour-popover-arrow-side-".concat(g)),a.classList.add("gleap-tour-popover-arrow-align-".concat(m))):a.classList.add("gleap-tour-popover-arrow-none")}(u,I,e)}}return function(){function e(){n("allowClose")&&h()}function o(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e+1;t[o]?f(o):h()}}function r(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e-1;t[o]?f(o):h()}}function i(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),o=l("__activeStep"),i=l("__activeElement");if("CLICK"!==o.mode)if(void 0!==t&&void 0!==o)if(void 0!==l("activeIndex")){var a=(null==(e=o.popover)?void 0:e.onPrevClick)||n("onPrevClick");if(a)return a(i,o,{config:n(),state:l()});r()}}}function a(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),r=l("__activeStep"),i=l("__activeElement");if("CLICK"!==r.mode&&void 0!==t&&void 0!==r){var a=(null==(e=r.popover)?void 0:e.onNextClick)||n("onNextClick");if(a)return a(i,r,{config:n(),state:l()});o()}}}function s(){l("isInitialized")||(c("isInitialized",!0),document.body.classList.add("gleap-tour-active",n("animate")?"gleap-tour-fade":"gleap-tour-simple"),window.addEventListener("keyup",x,!1),window.addEventListener("keydown",k,!1),window.addEventListener("resize",w),window.addEventListener("scroll",w),p("overlayClick",e),p("escapePress",e),p("arrowLeftPress",i),p("arrowRightPress",a))}function f(){var e,t,o,r,i,a,s,l,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,d=n("steps");if(!d)return console.error("No steps to drive through"),void h();if(d[u]){c("__activeOnDestroyed",document.activeElement),c("activeIndex",u);var p=d[u],v=d[u+1],g=d[u-1],m=(null==(e=p.popover)?void 0:e.doneBtnText)||n("doneBtnText")||"Done",y=n("allowClose"),w=void 0!==(null==(t=p.popover)?void 0:t.showProgress)?null==(o=p.popover)?void 0:o.showProgress:n("showProgress"),k=((null==(r=p.popover)?void 0:r.progressText)||n("progressText")||"{{current}} of {{total}}").replace("{{current}}","".concat(u+1)).replace("{{total}}","".concat(d.length)),x=(null==(i=p.popover)?void 0:i.showButtons)||n("showButtons"),S=["next","previous"].concat(Cr(y?["close"]:[])).filter((function(e){return!(null==x?void 0:x.length)||x.includes(e)})),C=(null==(a=p.popover)?void 0:a.onNextClick)||n("onNextClick"),I=(null==(s=p.popover)?void 0:s.onPrevClick)||n("onPrevClick"),L=(null==(l=p.popover)?void 0:l.onCloseClick)||n("onCloseClick");b(Tr(Tr({},p),{},{popover:Tr({showButtons:S,nextBtnText:v?void 0:m,disableButtons:Cr(g?[]:["previous"]),showProgress:w,progressText:k,onNextClick:C||function(){v?f(u+1):h()},onPrevClick:I||function(){f(u-1)},onCloseClick:L||function(){h()}},(null==p?void 0:p.popover)||{})}))}else h()}function h(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=l("__activeElement"),o=l("__activeStep"),r=l("__activeOnDestroyed"),i=n("onDestroyStarted");if(e&&i){i(!t||"gleap-tour-dummy-element"===(null==t?void 0:t.id)?void 0:t,o,{config:n(),state:l()})}else{var a,s,c,p=(null==o?void 0:o.onDeselected)||n("onDeselected"),f=n("onDestroyed");if(document.body.classList.remove("gleap-tour-active","gleap-tour-fade","gleap-tour-simple"),window.removeEventListener("keyup",x),window.removeEventListener("resize",w),window.removeEventListener("scroll",w),(s=l("popover"))&&(null==(a=s.wrapper.parentElement)||a.removeChild(s.wrapper)),function(){var e;null==(e=document.getElementById("gleap-tour-dummy-element"))||e.remove(),document.querySelectorAll(".gleap-tour-active-element").forEach((function(e){e.classList.remove("gleap-tour-active-element","gleap-tour-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}))}(),(c=l("__overlaySvg"))&&c.remove(),d={},u(),t&&o){var h="gleap-tour-dummy-element"===t.id;p&&p(h?void 0:t,o,{config:n(),state:l()}),f&&f(h?void 0:t,o,{config:n(),state:l()})}r&&r.focus()}}return t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{isActive:function(){return l("isInitialized")||!1},refresh:w,drive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;s(),f(e)},setConfig:t,setSteps:function(e){u(),t(Tr(Tr({},n()),{},{steps:e}))},getConfig:n,getState:l,getActiveIndex:function(){return l("activeIndex")},isFirstStep:function(){return 0===l("activeIndex")},isLastStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&t===e.length-1},getActiveStep:function(){return l("activeStep")},getActiveElement:function(){return l("activeElement")},getPreviousElement:function(){return l("previousElement")},getPreviousStep:function(){return l("previousStep")},moveNext:o,movePrevious:r,moveTo:function(e){(n("steps")||[])[e]?f(e):h()},hasNextStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t+1]},hasPreviousStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t-1]},highlight:function(e){s(),b(Tr(Tr({},e),{},{popover:e.popover?Tr({showButtons:[],showProgress:!1,progressText:""},e.popover):void 0}))},destroy:function(){h(!1)}}}}();const Mr=Or;function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}function Pr(){Pr=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new M(o||[]);return r(a,"_invoke",{value:L(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",v="completed",g={};function m(){}function b(){}function y(){}var w={};l(w,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&o.call(x,a)&&(w=x);var S=y.prototype=m.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(r,i,a,s){var c=d(e[r],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ar(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function L(t,n,o){var r=p;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var c=T(s,o);if(c){if(c===g)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===p)throw r=v,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var l=d(t,n,o);if("normal"===l.type){if(r=o.done?v:f,l.arg===g)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(r=v,o.method="throw",o.arg=l.arg)}}}function T(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.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,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];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=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Rr(e,t){for(var n=0;n=0&&t.productTourData&&t.productTourData.steps){var e=t.productTourData.steps[t.currentActiveIndex];e&&e.selector&&""!==e.selector&&t.updatePointerPosition(document.querySelector(e.selector),e)}})))}var t,n,o;return t=e,n=[{key:"disable",value:function(){this.disabled=!0,this.cleanup()}},{key:"startWithConfig",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;"undefined"!=typeof window&&(this.productTourId||this.disabled||(this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0,this.onCompleteCallback=n,this.start()))}},{key:"storeUncompletedTour",value:function(){if("undefined"!=typeof window)if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Fr,JSON.stringify(e))}catch(t){}else localStorage.removeItem(Fr)}},{key:"attachScrollListeners",value:function(e,t){var n=this;if("undefined"!=typeof window&&e){var o=function(e){if("undefined"!=typeof window){for(var t=[],n=e.parentElement;n;){var o=window.getComputedStyle(n);("auto"===o.overflowY||"scroll"===o.overflowY)&&n.scrollHeight>n.clientHeight&&t.push(n),n=n.parentElement}return t}}(e);o.push(window),o.forEach((function(o){var r=function(){clearTimeout(n._scrollDebounceTimer),n._scrollDebounceTimer=setTimeout((function(){n.updatePointerPosition(e,t)}),150)};o.addEventListener("scroll",r,{passive:!0}),n._scrollListeners.push({el:o,handler:r})}))}}},{key:"removeScrollListeners",value:function(){"undefined"!=typeof window&&(this._scrollListeners&&this._scrollListeners.length>0&&(this._scrollListeners.forEach((function(e){var t=e.el,n=e.handler;t.removeEventListener("scroll",n)})),this._scrollListeners=[]),this._scrollDebounceTimer&&(clearTimeout(this._scrollDebounceTimer),this._scrollDebounceTimer=null))}},{key:"updatePointerPosition",value:function(e,t){var n,o=this;if("undefined"!=typeof window)try{var r=this._pointerContainer||document.getElementById(_r);if(!r)return;if(!e)return r.style.position="fixed",r.style.left="50%",r.style.top="50%",r.style.transform="translate(-50%, -50%)",function(e){if("undefined"!=typeof window){var t=e-window.innerHeight/2;window.scrollTo({top:t,behavior:"smooth"})}}(window.innerHeight/2),this.removeScrollListeners(),this._currentAnchor=null,void(this._currentStep=null);n=e,"undefined"!=typeof window&&n&&n.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});var i=0;!function n(){if(function(e){if("undefined"!=typeof window){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}}(e)||i>=20){var a=e.getBoundingClientRect(),s=a.left+a.width/2,c=a.top+a.height/2+10;r.style.position="fixed",r.style.left="".concat(s,"px"),r.style.top="".concat(c,"px"),r.style.transform="translate(-50%, -50%)";var l=350;l>window.innerWidth-40&&(l=window.innerWidth-40),s+l>window.innerWidth-20?r.classList.add("copilot-pointer-container-right"):r.classList.remove("copilot-pointer-container-right"),o._currentAnchor===e&&o._currentStep===t||(o.removeScrollListeners(),o._currentAnchor=e,o._currentStep=t,o.attachScrollListeners(e,t))}else i++,setTimeout(n,100)}()}catch(a){}}},{key:"cleanup",value:function(){var e=this;"undefined"!=typeof window&&(document.body.classList.add("gl-copilot-fade-out"),setTimeout((function(){if(e._pointerContainer)e._pointerContainer.remove(),e._pointerContainer=null;else{var t=document.getElementById(_r);t&&t.remove()}var n=document.getElementById(Hr);n&&n.remove();var o=document.getElementById(Br);o&&o.remove(),document.body.classList.remove("gl-copilot-fade-out")}),800),this.removeScrollListeners())}},{key:"toggleAudio",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.audioMuted=e,this.currentAudio&&(this.currentAudio.muted=this.audioMuted),document.querySelector(".".concat(Hr,"-mute")).innerHTML=p(this.audioMuted?"unmute":"mute")}},{key:"setupCopilotTour",value:function(){var e,t,n,o,r,i,a=this;if("undefined"!=typeof window){var s,c,l=null!==(e=null===(t=ut.getInstance().flowConfig)||void 0===t?void 0:t.color)&&void 0!==e?e:"#485BFF",u=d(l),f=document.getElementById(Br);f||((f=document.createElement("style")).id=Br,f.type="text/css",f.textContent="\n #".concat(_r," {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n align-items: flex-start;\n pointer-events: none;\n z-index: 2147483610;\n transition: all 0.5s ease;\n }\n .").concat(_r,"-clickmode {\n cursor: pointer;\n pointer-events: all !important;\n }\n .").concat(_r,"-clickmode #copilot-info-bubble-content {\n display: flex !important;\n }\n .").concat(_r,"-clickmode svg {\n display: none !important;\n }\n #").concat(_r," svg {\n width: 20px;\n height: auto;\n fill: none;\n }\n #copilot-info-bubble {\n position: relative;\n }\n #copilot-info-bubble-content-container {\n position: absolute;\n top: 0px;\n left: 0px;\n min-width: min(300px, 80vw);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n .").concat(_r,"-right #copilot-info-bubble-content-container {\n left: auto !important;\n right: 0px !important;\n align-items: flex-end;\n }\n .").concat(_r,"-right .copilot-info-bubble-content {\n margin-right: 5px;\n }\n .").concat(_r,"-right svg {\n transform: scaleX(-1);\n }\n #copilot-info-bubble-content svg {\n width: 16px;\n height: 16px;\n display: inline-block !important;\n margin-left: 5px;\n }\n #copilot-info-bubble-content {\n margin-top: 18px;\n margin-left: 5px;\n padding: 10px 15px;\n border-radius: 20px;\n background-color: black;\n color: white;\n font-family: Arial, sans-serif;\n font-size: 14px;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);\n max-width: 100%;\n white-space: normal;\n overflow-wrap: break-word;\n word-break: normal;\n hyphens: none;\n }\n .").concat(_r,"-right #copilot-info-bubble-content {\n margin-top: 30px;\n margin-left: 0px;\n margin-right: 5px;\n }\n .click-wave {\n position: absolute;\n width: 34px;\n height: 34px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n pointer-events: none;\n z-index: 2147483611;\n animation: click-wave-animation 0.8s ease forwards;\n }\n @keyframes click-wave-animation {\n 0% {\n transform: scale(0.2);\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n }\n @keyframes slideInFromTop {\n 0% {\n transform: translateY(-100%);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n }\n .").concat(Hr," {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 2147483610;\n background: #fff;\n padding: 6px;\n border-radius: 10px;\n box-shadow: 0 0 20px 0 #C294F2;\n display: flex;\n align-items: center;\n gap: 8px;\n border: 1px solid rgba(192, 146, 242, 0.5);\n animation: slideInFromTop 0.5s ease-out forwards;\n }\n .").concat(Hr," span {\n font-size: 13px;\n color: #000;\n font-family: sans-serif;\n }\n .").concat(Hr,"-avatar {\n width: 24px;\n height: 24px;\n flex-shrink: 0;\n border-radius: 6px;\n }\n .").concat(Hr,"-mute {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .").concat(Hr,"-mute svg {\n width: 20px;\n height: auto;\n cursor: pointer;\n animation: pulsate 2s infinite;\n }\n .").concat(Hr,"-mute svg:hover {\n opacity: 0.8;\n }\n .").concat(Hr,"-dismiss {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-right: 3px;\n }\n .").concat(Hr,"-dismiss svg {\n width: 15px;\n height: auto;\n cursor: pointer;\n }\n .").concat(Hr,"-dismiss svg:hover {\n opacity: 0.8;\n }\n @keyframes pulsate {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n 50% {\n transform: scale(1.1);\n opacity: 0.8;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n }\n @keyframes glCoFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n @keyframes glCoFadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n .gleap-audio-unmute-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483620;\n }\n\n .gleap-audio-unmute-modal {\n background-color: #fff;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);\n text-align: center;\n max-width: 90%;\n width: 400px;\n }\n\n .gleap-audio-unmute-modal p {\n margin-bottom: 20px;\n font-size: 16px;\n line-height: 22px;\n font-weight: normal;\n }\n\n .gleap-audio-unmute-button {\n background: ").concat(l,";\n color: ").concat(u,";\n outline: none;\n border: none;\n padding: 10px 14px;\n border-radius: 12px;\n font-size: 14px;\n font-weight: bold;\n cursor: pointer;\n }\n\n .gleap-audio-unmute-button:hover {\n opacity: 0.8;\n }\n\n .gleap-tour-continue-button {\n color: ").concat(l,";\n text-decoration: none;\n cursor: pointer;\n font-size: 14px;\n font-weight: bold;\n border: none;\n background: none;\n padding: 0;\n margin: 0;\n margin-left: 20px;\n }\n\n .gleap-tour-continue-button:hover {\n opacity: 0.8;\n }\n\n body.gl-copilot-fade-out::before,\n body.gl-copilot-fade-out::after,\n body.gl-copilot-fade-out #").concat(Hr," {\n animation: glCoFadeOut 0.8s ease-out forwards;\n }\n ").concat(null===(s=null===(c=this.productTourData)||void 0===c?void 0:c.playVoice)||void 0===s||s?"":"\n .".concat(Hr,"-mute {\n display: none;\n }\n "),"\n ").concat(this.productTourData.gradient?'body::before {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n box-sizing: border-box;\n border: 18px solid transparent;\n filter: blur(25px);\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }\n \n body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0.5;\n box-sizing: border-box;\n border: 3px solid transparent;\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }':'body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0;\n }',"\n "),document.head.appendChild(f));var h=document.createElement("div");h.id=_r,h.style.opacity=0,this._pointerContainer=h;var v=document.createElementNS("http://www.w3.org/2000/svg","svg");v.setAttribute("viewBox","0 0 380 476"),v.innerHTML='';var g=document.createElement("div");g.id="copilot-info-bubble",g.innerHTML="
";var m=document.createElement("div");m.id=Hr,m.classList.add(Hr),m.innerHTML='\n \n ').concat(null===(o=this.productTourData)||void 0===o?void 0:o.kaiSlug,'\n
\n ').concat(p(this.audioMuted?"unmute":"mute"),"\n
\n ").concat(null!==(r=this.productTourData)&&void 0!==r&&r.allowClose?'
\n ').concat(p("dismiss"),"\n
"):"","\n "),document.body.appendChild(m),document.querySelector(".".concat(Hr,"-mute")).addEventListener("click",(function(){a.toggleAudio(!a.audioMuted)})),null!==(i=this.productTourData)&&void 0!==i&&i.allowClose&&document.querySelector(".".concat(Hr,"-dismiss")).addEventListener("click",(function(){a.completeTour(!1)})),h.appendChild(v),h.appendChild(g),document.body.appendChild(h)}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this.productTourData;t&&function(){return qr.apply(this,arguments)}().then((function(n){e.audioMuted=!n,e.setupCopilotTour(),e.audioMuted&&null!=t&&t.showUnmuteModal?e.showAudioUnmuteModal():setTimeout((function(){e.renderNextStep()}),1500)}))}}},{key:"showAudioUnmuteModal",value:function(){var e,t,n,o=this,r=document.createElement("div");r.classList.add("gleap-audio-unmute-modal-overlay");var i=document.createElement("div");i.classList.add("gleap-audio-unmute-modal");var a=document.createElement("p");a.textContent=null===(e=this.productTourData)||void 0===e?void 0:e.unmuteModalTitle,i.appendChild(a);var s=document.createElement("button");s.classList.add("gleap-audio-unmute-button"),s.textContent=null===(t=this.productTourData)||void 0===t?void 0:t.unmuteModalButton,s.addEventListener("click",(function(){o.toggleAudio(!1),r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(s);var c=document.createElement("button");c.classList.add("gleap-tour-continue-button"),c.textContent=null===(n=this.productTourData)||void 0===n?void 0:n.unmuteModalContinue,c.addEventListener("click",(function(){r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(c),r.appendChild(i),document.body.appendChild(r)}},{key:"completeTour",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];"undefined"!=typeof window&&(this.cleanup(),this.onCompleteCallback&&this.onCompleteCallback(e))}},{key:"renderNextStep",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this,n=this.productTourData.steps;if(this.currentActiveIndex>=n.length)setTimeout((function(){e.completeTour()}),500);else{var o=n[this.currentActiveIndex],r=function(n){if(e._pointerContainer.style.display="flex",o.selector&&o.selector.length>0&&!n)e.completeTour(!1);else{var r=function(){if("INPUT"===o.mode&&n){var e,r=function(){document.querySelector("#".concat(_r)).classList.remove("copilot-pointer-container-clickmode"),n.classList.remove("gleap-input-highlight"),document.getElementById(_r).style.display="none",t.currentActiveIndex++,t.storeUncompletedTour(),t.renderNextStep()};if("default"===(null!==(e=o.inputType)&&void 0!==e?e:"default")){var i=function e(t){var o;if(0!==(null==t||null===(o=t.target)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.length)){var i=document.getElementById("copilot-info-bubble-content");i&&(i.innerHTML="".concat(go.translateText("next"),' \n \n'),i.addEventListener("click",r,{once:!0}),n.classList.add("gleap-input-highlight"),document.querySelector("#".concat(_r)).classList.add("copilot-pointer-container-clickmode"),n.removeEventListener("input",e))}};n.addEventListener("input",i,{once:!1}),n.hasAttribute("contenteditable")&&n.addEventListener("keyup",i,{once:!1}),n.addEventListener("blur",(function(){n.focus()}),{once:!0}),n.focus()}else{var a,s=null!==(a=o.inputValue)&&void 0!==a?a:"",c=0;!function e(){c0})).length;return Math.ceil(t/3.6)+1}}(i),s=function(){e.currentAudio=void 0,setTimeout((function(){r()}),1e3*a)};o.voice&&o.voice.length>0?(e.currentAudio=new Audio(o.voice),e.audioMuted&&(e.currentAudio.muted=!0),e.currentAudio.addEventListener("ended",(function(){setTimeout((function(){r()}),1e3)})),e.currentAudio.play().then((function(){})).catch((function(e){s()}))):s()}},i=o.selector?function(e){if("undefined"!=typeof window){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3)/100,n=0;return new Promise((function(o,r){var i=setInterval((function(){var a=document.querySelector(e);a?(clearInterval(i),o(a)):n>=t&&(clearInterval(i),r(new Error("Element not found for selector: ".concat(e)))),n++}),100)}))}}(o.selector):Promise.resolve(null);i.then(r).catch((function(){return r(null)}))}}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Rr(t.prototype,n),o&&Rr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zr(e){return zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(e)}function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0;if(!this.productTourId&&!this.disabled){this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0;var r=this;$e.getInstance().validateProductTour(e).then((function(){return o>0?setTimeout((function(){r.start()}),o):n.start()})).catch((function(e){console.log("Product tour is not live. Cleaning up..."),console.error(e),r.onComplete(!1)}))}}},{key:"onComplete",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={tourId:this.productTourId};e?(kn.notifyEvent("productTourCompleted",t),ki.trackEvent("tour-".concat(this.productTourId,"-completed"),t)):(kn.notifyEvent("productTourQuit",t),ki.trackEvent("tour-".concat(this.productTourId,"-quit"),t)),this.gleapTourObj&&this.gleapTourObj.destroy(),this.gleapTourObj=void 0,this.productTourData=void 0,this.productTourId=void 0,this.currentActiveIndex=void 0,this.clearUncompletedTour()}},{key:"loadUncompletedTour",value:function(){try{var e=JSON.parse(localStorage.getItem(Zr));if(null!=e&&e.tourData&&null!=e&&e.tourId)return e}catch(t){}return null}},{key:"storeUncompletedTour",value:function(){if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Zr,JSON.stringify(e))}catch(t){}else this.clearUncompletedTour()}},{key:"clearUncompletedTour",value:function(){try{localStorage.removeItem(Zr)}catch(e){}}},{key:"start",value:function(){var e=this,t=this.productTourData;if(t){if("cobrowse"===t.tourType)return Ur.getInstance().startWithConfig(this.productTourId,t,(function(t){e.onComplete(t)}));this.unmuted=!1;for(var n=t.steps,o=this,r=[],i=0;i\n \n
').concat(p("unmute"),"
\n ");else{var d="";t.sender&&t.sender.firstName&&(u=!0,d='
\n
\n
').concat(t.sender.firstName,"
\n
")),l="".concat(d,'
').concat(a.message,"
")}var f={disableActiveInteraction:!s&&!c,mode:a.mode,popover:Gr({description:l,popoverClass:"gleap-tour-popover-".concat(a.type," ").concat(!u&&"gleap-tour-popover-no-sender"," ").concat(t.allowClose&&"gleap-tour-popover-can-close")},s?{showButtons:[]}:{})};a.selector&&a.selector.length>0&&(f.element=a.selector),r.push(f)}var h=["next","close"];t.backButton&&h.push("previous"),this.gleapTourObj=Mr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({showProgress:!0,allowKeyboardControl:!1,steps:r},"showProgress",n.length>1),"allowClose",t.allowClose),"nextBtnText",t.nextText),"doneBtnText",t.doneText),"prevBtnText",t.prevText),"showButtons",h),"onHighlightStarted",(function(t,n,o){var r;e.currentActiveIndex=null==o||null===(r=o.state)||void 0===r?void 0:r.activeIndex,e.storeUncompletedTour()})),"onElementNotFound",(function(t){document.removeEventListener("click",v),e.onComplete(!1)})),"onDestroyStarted",(function(){e.gleapTourObj.hasNextStep()?e.onComplete(!1):e.onComplete(!0),document.removeEventListener("click",v)})),"onPopoverRender",(function(t){if(t)for(var n=document.querySelectorAll(".gleap-tour-popover-description img, .gleap-tour-popover-description video"),r=function(){setTimeout((function(){e.gleapTourObj.refresh()}),500),setTimeout((function(){e.gleapTourObj.refresh()}),750)},i=0;ie.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return go.translateText(e)||t}},{key:"_translateWithVars",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return go.translateTextWithVars(e,t)||n}},{key:"getCheckIcon",value:function(){return'\n \n '}},{key:"loadChecklist",value:function(){if(this._isSessionReady&&this._networkManager){var e=this.getAttribute("checklistId");e?(this.activeStep=-1,this._initialActiveSet=!1,this.validateChecklist(e)):(this.renderResponse(),this.checklistData=null,this._hasLoaded=!1)}}},{key:"getQueryParams",value:function(){var e=this._getGleapSessionInstance();if(null==e||!e.session)return"";var t=e.session,n="en";try{void 0!==go&&(n=go.getInstance().getActiveLanguage()||"en")}catch(o){}return"gleapId=".concat(t.gleapId||"","&gleapHash=").concat(t.gleapHash||"","&lang=").concat(n)}},{key:"makeRequest",value:function(e,t,n,o){var r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=new XMLHttpRequest;i.open(e,t);try{r.injectSession(i)}catch(a){}n&&i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.onreadystatechange=function(){4===i.readyState&&o(i)},i.onerror=function(){o(i)},i.send(n?JSON.stringify(n):null)}else o({readyState:4,status:0,responseText:"Session unavailable",_isMock:!0})}},{key:"validateChecklist",value:function(e){var t=this;if(this._isSessionReady&&this._networkManager){this.checklistData=null,this._hasLoaded=!1,this.renderResponse();var n=this.getAttribute("sharedKey");this._networkManager.validateChecklist(e,n).then((function(e){t.isConnected&&t._isSessionReady&&e&&t.fetchChecklist(e)})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1}))}}},{key:"fetchChecklist",value:function(e){var t=this;this._isSessionReady&&this._networkManager&&(this._isInitialLoad=!this._hasLoaded,this._networkManager.fetchChecklist(e).then((function(e){if(!t.isConnected||!t._isSessionReady||!e)return t._hasLoaded=!1,t.checklistData=null,void t._checkSessionAndLoad();if(t.checklistData=e,t._hasLoaded=!0,"done"!==e.status){if(t._isInitialLoad&&!t._initialActiveSet){var n,o=(null===(n=e.outbound)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.steps)||[],r=e.completedSteps||[],i=o.findIndex((function(e){return!r.includes(e.id)}));t.activeStep=i>=0?i:-1,-1!==t.activeStep&&(t._initialActiveSet=!0)}t.renderChecklist(t.checklistData)}else t.renderResponse()})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1})))}},{key:"updateChecklist",value:function(e,t){var n,o,r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=r.apiUrl;if(i){var a=r.session,s=null!==(n=null==a?void 0:a.gleapId)&&void 0!==n?n:"",c=null!==(o=null==a?void 0:a.gleapHash)&&void 0!==o?o:"",l="en";try{void 0!==go&&(l=go.getInstance().getActiveLanguage()||"en")}catch(d){}var u="".concat(i,"/outbound/checklists/").concat(e);t.checkedStep&&(u+="/increment/".concat(t.checkedStep)),u+="?gleapId=".concat(s,"&gleapHash=").concat(c,"&lang=").concat(l),this.makeRequest("PUT",u,t,(function(e){e._isMock||200!==e.status&&e.status}))}}}},{key:"handleChecklistUpdate",value:function(e){if(this._hasLoaded&&this.checklistData){var t=e.detail;if(t&&t.id===this.checklistData.id){var n=$r(this.checklistData.completedSteps||[]),o=!1,r=!1,i=this.activeStep;if(t.completedSteps&&JSON.stringify(t.completedSteps)!==JSON.stringify(n)&&(this.checklistData.completedSteps=$r(t.completedSteps),o=!0,-1!==i)){var a,s=null===(a=this.checklistData.outbound)||void 0===a||null===(a=a.config)||void 0===a||null===(a=a.steps)||void 0===a||null===(a=a[i])||void 0===a?void 0:a.id;s&&this.checklistData.completedSteps.includes(s)&&!n.includes(s)&&(r=!0)}if(t.status&&t.status!==this.checklistData.status&&(this.checklistData.status=t.status,o=!0),r){for(var c,l=(null===(c=this.checklistData.outbound)||void 0===c||null===(c=c.config)||void 0===c?void 0:c.steps)||[],u=-1,d=i+1;d1&&void 0!==arguments[1]?arguments[1]:"checklist-floating",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(null===(t=e.config)||void 0===t?void 0:t.steps)||[],a=(null===(n=this.checklistData)||void 0===n?void 0:n.completedSteps)||[],s=0;if(this.progressbarEnabled&&i.length>0){var c=i.length,l=a.length;s=c>0?l/c*100:0}var u,d,p=i.find((function(e){return!a.includes(e.id)})),f=i.length>0?p?p.title||this._translateWithVars("stepDefaultTitle",{index:i.indexOf(p)+1},"Step ".concat(i.indexOf(p)+1)):"":e.subject||"",h=i.length>0?p&&p.description||"":e.message||"";r&&(f=(null===(u=e.config)||void 0===u?void 0:u.successTitle)||"",h=(null===(d=e.config)||void 0===d?void 0:d.successMessage)||"",s=100);var v=2*Math.PI*7,g=v-s/100*v,m="checklist-floating-header"===o,b=m?'\n \n \n ':'\n \n ';return'\n
\n
\n
\n \n \n \n \n
\n
').concat(f,"
\n ").concat(r?"":''.concat(b,""),'\n
\n
').concat(h,"
\n
\n ")}},{key:"renderInfoSection",value:function(e){var t;if(!this.infoEnabled||!e)return"";var n=e.subject||this._translate("checklistDefaultTitle","Checklist"),o=e.message||"",r="";return null!==(t=e.sender)&&void 0!==t&&t.profileImageUrl&&(r='\n
\n ').concat(e.sender.firstName||\n ').concat(e.sender.firstName||"","\n
")),'\n
\n '.concat(n?'
'.concat(n,"
"):"","\n ").concat(o?'
'.concat(o,"
"):"","\n ").concat(r,"\n
")}},{key:"renderProgressSection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!this.progressbarEnabled||!e.length)return"";var n=e.length,o=t.length,r=n>0?o/n*100:0,i=0;e.forEach((function(e){!t.includes(e.id)&&e.duration>0&&(i+=e.duration)}));var a=this._translateWithVars("taskProgress",{a:o,b:n},"".concat(o," of ").concat(n," done")),s=i>0?this._translateWithVars("aboutMinutes",{a:i},"About ".concat(i," min left")):"";return'\n
\n
'.concat(a,"
\n ").concat(s?'
'.concat(s,"
"):"",'\n
\n
\n
\n
')}},{key:"renderTasks",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&0!==t.length?t.map((function(t,o){var r=n.includes(t.id),i=e.activeStep===o,a=r?''.concat(e.getCheckIcon(),""):''.concat(o+1,""),s=t.title||e._translateWithVars("stepDefaultTitle",{index:o+1},"Step ".concat(o+1)),c=t.description||"",l=t.actionTitle||e._translate("actionDefaultTitle","Action"),u=t.action&&"none"!==t.action?'
\n \n
"):"",d=e._translate("markAsDone","Mark as done"),p=t.allowMarkDone&&!r?'
\n ').concat(e.getCheckIcon(),'\n
').concat(d,"
\n
"):"",f=["checklist-task",r?"checklist-task--done":"",i?"checklist-task--active":""].filter(Boolean).join(" ");return'\n
\n
\n ').concat(a,'\n
').concat(s,'
\n \n \n \n \n \n
\n
\n
\n ').concat(c?'
'.concat(c,"
"):"","\n ").concat(u,"\n ").concat(p,"\n
\n
\n
")})).join(""):"

".concat(this._translate("noStepsDefined","No steps defined."),"

")}},{key:"renderChecklist",value:function(e){var t;if(this._hasLoaded&&e&&e.outbound){var n=e.outbound,o=(null===(t=n.config)||void 0===t?void 0:t.steps)||[],r=e.completedSteps||[],i="";if("done"===e.status||o.length>0&&r.length>=o.length){var a,s,c=(null===(a=n.config)||void 0===a?void 0:a.successTitle)||"",l=(null===(s=n.config)||void 0===s?void 0:s.successMessage)||"";i=this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-launcher",!0):'\n
\n
\n '.concat(this.getCheckIcon(),'\n
\n
').concat(c,'
\n
').concat(l,"
\n
"),-1!==this.activeStep&&(this.activeStep=-1)}else i='\n
\n '.concat(this.floatingEnabled?"":this.renderInfoSection(n),"\n ").concat(this.floatingEnabled?"":this.renderProgressSection(o,r),"\n ").concat(this.floatingEnabled?this.renderFloatingLauncher(n):"",'\n
\n ').concat(this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-header"):"","\n ").concat(this.renderTasks(o,r),"\n
\n
");var u=ut.getInstance().getFlowConfig(),d=u.color?u.color:"#485BFF",p="\n \n ');this.shadowRoot.innerHTML=p+i,this.addTaskEventListeners(),this.floatingEnabled&&this.addFloatingClickListeners(),-1!==this.activeStep&&this.toggleTask(this.activeStep,!0)}else this._checkSessionAndLoad()}},{key:"updateActiveTaskMaxHeight",value:function(){if(-1!==this.activeStep){var e=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body-inner')),t=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body'));if(e&&t){var n=e.offsetHeight;t.style.setProperty("--task-body-active-height","".concat(n,"px"))}}}},{key:"addTaskEventListeners",value:function(){var e=this;this.shadowRoot.querySelectorAll(".checklist-task").forEach((function(t){var n=t.querySelector(".checklist-task-header"),o=parseInt(t.getAttribute("data-task-index"),10);n&&n.addEventListener("click",(function(){var t=e.activeStep===o?-1:o;e.setActiveStep(t)}));var r=t.querySelector(".checklist-task-body-markdone");r&&r.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps){var r=e.checklistData.outbound.config.steps[o];if(r){var i=e.activeStep;if(e.checklistData.completedSteps||(e.checklistData.completedSteps=[]),!e.checklistData.completedSteps.includes(r.id)){e.checklistData.completedSteps.push(r.id);var a=e.checklistData.outbound.config.steps,s=-1;if(i===o){for(var c=o+1;c0&&e.checklistData.completedSteps.length>=a.length&&(e.checklistData.status="done",l.status="done"),e.updateChecklist(e.checklistData.id,l)}}}}));var i=t.querySelector(".checklist-task-body-action .action-button");i&&i.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps&&void 0!==ki){var r=e.checklistData.outbound.config.steps[o];if(r&&r.action&&"none"!==r.action)try{"BOT"===r.action?ki.startBot(r.botId):"CUSTOM_ACTION"===r.action?ki.triggerCustomAction(r.actionBody):"REDIRECT_URL"===r.action?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),ki.openURL(r.actionBody,!!r.actionOpenInNewTab)):"FEEDBACK_FLOW"===r.action?ki.startFeedbackFlow(r.formId):"NEWS_ARTICLE"===r.action?ki.openNewsArticle(r.articleId):"HELP_ARTICLE"===r.action?ki.openHelpCenterArticle(r.articleId):"CHECKLIST"===r.action&&ki.startChecklist(r.checklistId,!0,null==r?void 0:r.sharedKey)}catch(i){}}}))}))}},{key:"setActiveStep",value:function(e){var t=this,n=this.activeStep;this.activeStep=e;var o=[];-1!==n&&n!==this.activeStep&&o.push({index:n,open:!1}),-1!==this.activeStep&&this.activeStep!==n&&o.push({index:this.activeStep,open:!0}),o.forEach((function(e){var n=e.index,o=e.open;t.toggleTask(n,o)}))}},{key:"toggleTask",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(e,'"]'));if(n){var o=n.querySelector(".checklist-task-header");if(o){var r=n.classList.contains("checklist-task--active"),i=null!==t?t:!r;if(i&&!r){n.classList.add("checklist-task--active"),o.setAttribute("aria-expanded","true");var a=n.querySelector(".checklist-task-body-inner");if(a){var s=a.offsetHeight,c=n.querySelector(".checklist-task-body");c&&c.style.setProperty("--task-body-active-height","".concat(s,"px"))}}else!i&&r&&(n.classList.remove("checklist-task--active"),o.setAttribute("aria-expanded","false"))}}}}],r=[{key:"observedAttributes",get:function(){return["checklistId","info","progressbar","dark","floating","sharedKey"]}}],o&&ti(n.prototype,o),r&&ti(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ri(HTMLElement));"undefined"==typeof customElements||customElements.get("gleap-checklist")||customElements.define("gleap-checklist",e)}}();var gi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hi(this,"initialized",!1),hi(this,"offlineMode",!1),hi(this,"disablePageTracking",!1),hi(this,"disableInAppNotifications",!1),hi(this,"globalData",{screenRecordingData:null,webReplay:null,snapshotPosition:{x:0,y:0}}),"undefined"!=typeof window&&(Yt.getInstance(),on.getInstance().start(),dn.getInstance().start(),xr.getInstance().start())}var t,n,o;return t=e,n=[{key:"isLiveMode",value:function(){if(!0===this.offlineMode)return!1;var e=window.location.hostname;return!(["localhost","127.0.0.1","0.0.0.0","","::1"].includes(e)||e.startsWith("192.168.")||e.startsWith("10.0.")||e.endsWith(".local")||!e.includes("."))}},{key:"softReInitialize",value:function(){Gt.getInstance().destroy(),ut.getInstance().start().then((function(){a.getInstance().refresh(),Ao.getInstance().injectNotificationUI()})).catch((function(e){console.warn("Failed to initialize Gleap.")}))}},{key:"performActions",value:function(t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"INFO";on.getInstance().addLog(e,t)}},{key:"initialize",value:function(t){var n=this.getInstance();if(n.initialized)console.warn("Gleap already initialized.");else{n.initialized=!0;try{!function(){try{if("visualViewport"in window&&/iPad|iPhone|iPod/.test(navigator.userAgent)){var e=function(){try{var e=document.querySelector(".gleap-frame-container-inner iframe");if(!e)return;window.visualViewport.height1&&void 0!==arguments[1]&&arguments[1];Gt.getInstance().urlHandler(e,t)}},{key:"checkForUrlParams",value:function(){if("undefined"!=typeof window&&window.location.search)try{var t=new URLSearchParams(window.location.search),n=t.get("gleap_widget");n&&n.length>0&&e.open();var o=t.get("gleap_conversation");o&&o.length>0&&("true"===o?e.startConversation(!0):e.startBot(o,!0));var r=t.get("gleap_feedback");r&&r.length>0&&e.startFeedbackFlow(r);var i=t.get("gleap_survey"),a=t.get("gleap_survey_format");i&&i.length>0&&e.showSurvey(i,"survey_full"===a?"survey_full":"survey");var s=t.get("gleap_tour");if(s&&s.length>0){var c=parseInt(t.get("gleap_tour_delay"));isNaN(c)&&(c=2),setTimeout((function(){e.startProductTour(s)}),1e3*c)}}catch(l){}}},{key:"destroy",value:function(){Zn.getInstance().stop(),rt.getInstance().stop(),Gt.getInstance().destroy(),a.getInstance().toggleFeedbackButton(!1),Ao.getInstance().clearAllNotifications(!0),$e.getInstance().clearSession(0,!1),_o.getInstance().removeBannerUI()}},{key:"closeBanner",value:function(){_o.getInstance().removeBannerUI()}},{key:"closeModal",value:function(){Go.getInstance().hideModal()}},{key:"setUseCookies",value:function(e){$e.getInstance().useCookies=e}},{key:"identify",value:function(e,t,n){return $e.getInstance().identifySession(e,k(t),n)}},{key:"updateContact",value:function(e){return $e.getInstance().updateSession(k(e))}},{key:"clearIdentity",value:function(){$e.getInstance().clearSession()}},{key:"getIdentity",value:function(){return $e.getInstance().getSession()}},{key:"isUserIdentified",value:function(){var e=$e.getInstance().session;return!!(e&&e.userId&&e.userId.length>0)}},{key:"isOpened",value:function(){return Gt.getInstance().isOpened()}},{key:"hide",value:function(){Gt.getInstance().hideWidget()}},{key:"setMaxNetworkRequests",value:function(e){b.getInstance().setMaxRequests(e)}},{key:"startNetworkLogger",value:function(){b.getInstance().start()}},{key:"setNetworkLogsBlacklist",value:function(e){b.getInstance().setBlacklist(e)}},{key:"setNetworkLogPropsToIgnore",value:function(e){b.getInstance().setFilters(e)}},{key:"setReplayOptions",value:function(e){Zn.getInstance().setOptions(e)}},{key:"close",value:function(){Gt.getInstance().hideWidget()}},{key:"open",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().showWidget()}},{key:"trackEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"logEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"preFillForm",value:function(e){var t=k(e);Lo.getInstance().formPreFill=t,Gt.getInstance().sendMessage({name:"prefill-form-data",data:t},!0)}},{key:"on",value:function(e,t){kn.on(e,t)}},{key:"enableShortcuts",value:function(e){e?ko.getInstance().start():ko.getInstance().stop()}},{key:"showFeedbackButton",value:function(e){a.getInstance().toggleFeedbackButton(e)}},{key:"setAppVersionCode",value:function(e){Yt.setAppVersionCode(e)}},{key:"setAppBuildNumber",value:function(e){Yt.setAppBuildNumber(e)}},{key:"setWSApiUrl",value:function(e){$e.getInstance().wsApiUrl=e}},{key:"setApiUrl",value:function(e){$e.getInstance().apiUrl=e}},{key:"setBannerUrl",value:function(e){_o.getInstance().setBannerUrl(e)}},{key:"setModalUrl",value:function(e){Go.getInstance().setModalUrl(e)}},{key:"setFrameUrl",value:function(e){Gt.getInstance().frameUrl=e}},{key:"setTicketAttribute",value:function(e,t){gn.getInstance().setTicketAttribute(e,t)}},{key:"unsetTicketAttribute",value:function(e){gn.getInstance().unsetTicketAttribute(e)}},{key:"clearTicketAttributes",value:function(){gn.getInstance().clearTicketAttributes()}},{key:"attachCustomData",value:function(e){gn.getInstance().attachCustomData(e)}},{key:"setCustomData",value:function(e,t){gn.getInstance().setCustomData(e,t)}},{key:"removeCustomData",value:function(e){gn.getInstance().removeCustomData(e)}},{key:"clearCustomData",value:function(){gn.getInstance().clearCustomData()}},{key:"playSound",value:function(e){Yo.playSound(e)}},{key:"showTabNotificationBadge",value:function(e){var t=Ao.getInstance();t.showNotificationBadge=e,t.updateTabBarNotificationCount()}},{key:"setLanguage",value:function(t){go.getInstance().setOverrideLanguage(t),e.getInstance().initialized&&setTimeout((function(){e.getInstance().softReInitialize(),e.updateContact({lang:t})}),1e3)}},{key:"registerCustomAction",value:function(e){En.registerCustomAction(e)}},{key:"triggerCustomAction",value:function(e){En.triggerCustomAction(e)}},{key:"setStyles",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#ffffff",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:20,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:20,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:a.FEEDBACK_BUTTON_BOTTOM_LEFT;L((function(){!function(e,t,n,o,r,i,s,c){var l=d(e),p=d(n),f=d(r),h=d(t),v="#ffffff"===f,g=u(t,"#ffffff"===h?-35:-15),m=u(r,v?100:-120),b=u(r,v?30:-12),y=u(r,v?80:-30),w=(o=parseInt(o,10),Math.round(1.05*o)),k=Math.round(.8*o),x=Math.round(.6*o),S=Math.round(.4*o),C=Math.round(.25*o),I=57+s;c===a.FEEDBACK_BUTTON_CLASSIC_BOTTOM?I=s+15:(c&&c.includes("CLASSIC")||c===a.FEEDBACK_BUTTON_NONE)&&(I=s);var L='\n .gleap-font, .gleap-font * {\n font-style: normal;\n font-variant-caps: normal;\n font-variant-ligatures: normal;\n font-variant-numeric: normal;\n font-variant-east-asian: normal;\n font-weight: normal;\n font-stretch: normal;\n font-size: 100%;\n line-height: 1;\n font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n }\n .gleap-input-highlight {\n box-shadow: 0 0 0 3px '.concat(e," !important;\n }\n .gleap-frame-container {\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n width: calc(100% - 40px);\n max-width: 410px;\n position: fixed;\n z-index: ").concat(2147483631,";\n visibility: visible;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.16);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n animation-duration: .3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n user-select: none;\n pointer-events: none;\n transition: max-width 0.3s ease-out;\n }\n\n .gleap-admin-highlight {\n box-shadow: 0px 0px 0px 4px red;\n }\n\n :root {\n --gleap-margin-top: 50px;\n }\n\n .gleap-tooltip-anchor {\n position: relative;\n display: inline-block;\n float: left;\n max-width: 0px;\n width: 17px;\n }\n\n .gleap-tooltip-hotspot {\n position: absolute;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n }\n\n @keyframes gleap-pulse {\n 0% {\n transform: scale(0);\n opacity: 0.25;\n }\n 45% {\n transform: scale(2.5);\n opacity: 0;\n }\n 100% {\n transform: scale(0);\n opacity: 0;\n }\n }\n\n .gleap-tooltip-hotspot-animation {\n position: absolute;\n border-radius: 17px;\n opacity: 0.25;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n animation: gleap-pulse 5s infinite;\n }\n\n .gleap-tooltip-hotspot svg {\n width: 17px;\n height: 17px;\n object-fit: contain;\n display: block;\n }\n\n .gleap-tooltip-inner {\n position: relative;\n overflow: visible;\n font-size: 14px;\n font-weight: normal;\n color: #000;\n line-height: 1.3;\n }\n\n .gleap-tooltip {\n position: absolute;\n background-color: #fff;\n color: #000;\n font-size: 15px;\n line-height: 18px;\n padding: 16px;\n padding-top: 8px;\n padding-bottom: 8px;\n border-radius: 4px;\n max-width: min(350px, 80vw);\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.2s, visibility 0.2s;\n z-index: ").concat(2147483700,";\n }\n\n .gleap-tooltip a {\n color: ").concat(e,";\n text-decoration: underline;\n display: inline !important;\n margin: 0px !important;\n padding: 0px !important;\n word-break: break-word;\n }\n\n .gleap-tooltip ul {\n padding-left: 16px;\n }\n\n .gleap-tooltip b {\n font-weight: 600;\n }\n\n .gleap-tooltip h2 {\n font-size: 18px;\n line-height: 20px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip h3 {\n font-size: 16px;\n line-height: 18px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip p {\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip img {\n max-width: 100%;\n max-height: 300px;\n width: 100%;\n height: auto;\n object-fit: cover;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip iframe,\n .gleap-tooltip video {\n max-width: 100%;\n width: 100%;\n height: auto;\n min-height: 200px;\n display: block;\n border: none;\n outline: none;\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip-arrow {\n position: absolute;\n width: 20px;\n height: 20px;\n }\n\n .gleap-tooltip-arrow svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n\n .gleap-b-frame {\n width: 100%;\n height: 100%;\n border: none;\n pointer-events: auto;\n padding: 0px;\n margin: 0px;\n }\n\n .gleap-b-shown {\n transition: margin 0.3s ease-out;\n margin-top: var(--gleap-margin-top);\n position: relative;\n z-index: 10000;\n }\n\n .gleap-b-f {\n margin-top: 0px;\n }\n\n .gleap-b {\n display: none;\n position: absolute;\n top: calc(-1 * var(--gleap-margin-top));\n left: 0px;\n width: 100vw;\n height: var(--gleap-margin-top);\n z-index: ").concat(2147483699,";\n }\n\n @keyframes gleapSlideIn {\n from {\n top: calc(-1 * var(--gleap-margin-top));\n }\n to {\n top: 10px;\n }\n }\n\n .gleap-b-f .gleap-b {\n position: fixed;\n top: 10px;\n animation: gleapSlideIn .25s ease-out forwards;\n max-width: 800px;\n width: calc(100% - 20px);\n left: 50%;\n z-index: ").concat(2147483699,";\n transform: translateX(-50%);\n border-radius: ").concat(S,"px;\n overflow: hidden;\n box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15), 0px 5px 5px rgba(0, 0, 0, 0.05);\n }\n\n .gleap-b-shown .gleap-b {\n display: block;\n }\n\n .gleap-image-view {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n z-index: ").concat(2147483699,";\n background-color: ").concat(f,"cc;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-image-view-image {\n width: 90%;\n height: auto;\n max-width: 90%;\n max-height: 90%;\n object-fit: contain;\n }\n\n .gleap-image-view-close {\n position: fixed;\n top: 20px;\n right: 20px;\n width: 32px;\n height: 32px;\n opacity: 0.8;\n z-index: ").concat(2147483740,";\n box-shadow: 0px 5px 18px rgba(0, 0, 0, 0.16);\n cursor: pointer;\n }\n\n .gleap-image-view-close:hover {\n opacity: 1;\n }\n\n .gleap-image-view-close svg path {\n fill: ").concat(r,";\n }\n\n [dir=rtl].gleap-frame-container {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,'px;\n }\n\n .gleap-frame-container--loading iframe {\n opacity: 0;\n }\n\n .gleap-frame-container--loading::before {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 130deg,\n ').concat(g," 0%,\n ").concat(t,' 100%\n );\n }\n \n .gleap-frame-container--loading::after {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 180deg,\n transparent 60%,\n ').concat(r,"1A 70%,\n ").concat(r," 100%\n );\n }\n\n .gleap-frame-container--loading-nogradient::before {\n max-height: 340px;\n background: ").concat(t," !important;\n }\n\n .gleap-frame-container--loading-nofade::after {\n display: none !important;\n }\n\n .gleap-frame-container--survey {\n bottom: ").concat(s,"px !important;\n }\n\n .gleap-frame-container--extended {\n max-width: 690px !important;\n }\n\n .gleap-frame-container--survey-full {\n position: fixed;\n top: 0 !important;\n left: 0 !important;\n bottom: 0 !important;\n right: 0 !important;\n width: 100vw !important;\n max-width: 100vw !important;\n height: 100vh !important;\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(6px);\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n max-height: 100vh !important;\n border-radius: 0 !important;\n animation-name: none !important;\n }\n\n .gleap-frame-container--survey-full .gleap-frame-container-inner {\n max-width: 640px !important;\n width: calc(100% - 24px);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n }\n\n .gleap-frame-container--classic {\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--classic-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--modern-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n [dir=rtl].gleap-frame-container--modern-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n .gleap-frame-container--animate {\n pointer-events: auto !important;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n @keyframes gleapFadeInUpMobile {\n from {\n opacity: 0;\n transform: translate3d(0, 10%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n .gleap-notification-container {\n position: fixed;\n bottom: ").concat(I,"px;\n right: ").concat(i,"px;\n z-index: ").concat(2147483630,";\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n width: 100%;\n max-width: min(340px, 80vw);\n }\n\n .gleap-notification-container--left {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container--left {\n left: initial !important;\n right: ").concat(i,"px !important;\n align-items: flex-start !important;\n }\n\n .gleap-notification-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n .gleap-notification-item {\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n .gleap-notification-close {\n border-radius: 100%;\n width: 28px;\n height: 28px;\n background-color: ").concat(m,";\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 8px;\n cursor: pointer;\n visibility: hidden;\n pointer-events: none;\n }\n\n .gleap-notification-container:hover .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n }\n\n .gleap-notification-close svg {\n width: 45%;\n height: 45%;\n object-fit: contain;\n fill: ").concat(r,";\n }\n\n .gleap-notification-item-checklist-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n cursor: pointer;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-checklist-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n width: 100%;\n width: min(310px, 70vw);\n max-width: min(310px, 70vw);\n }\n\n .gleap-notification-item-checklist-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 10px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-checklist-content-progress {\n width: 100%;\n height: 8px;\n border-radius: 8px;\n background-color: ").concat(b,";\n }\n\n .gleap-notification-item-checklist-content-progress-inner {\n height: 100%;\n border-radius: 8px;\n background-color: ").concat(e,";\n }\n\n .gleap-notification-item-checklist-content-next {\n color: ").concat(m,";\n font-size: 15px;\n font-weight: normal;\n line-height: 21px;\n margin-top: 10px;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n }\n\n .gleap-notification-item-checklist-content-next svg {\n height: 18px;\n margin-right: 5px;\n width: auto;\n }\n\n .gleap-notification-item-checklist-content-next b {\n font-size: 15px;\n font-weight: normal;\n color: ").concat(f,";\n }\n\n .gleap-notification-item-news {\n width: 100%;\n }\n\n .gleap-news-pagination {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 10px;\n width: 100%;\n }\n\n .gleap-news-page-indicator {\n font-size: 12px;\n color: ").concat(m,";\n }\n\n .gleap-news-next-button {\n background-color: ").concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 5px 10px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;^\n }\n\n .gleap-notification-item-news-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n }\n\n .gleap-notification-item-news-preview {\n color: ").concat(m,";\n font-size: 14px;\n line-height: 21px;\n font-weight: 400;\n overflow-wrap: break-word;\n word-break: break-word;\n display: block;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-news-sender {\n display: flex;\n align-items: center;\n color: ").concat(m,";\n font-size: 15px;\n line-height: 21px;\n font-weight: 400;\n }\n \n .gleap-notification-item-news-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 6px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n cursor: pointer;\n }\n\n .gleap-notification-item-news-sender img {\n border-radius: 100%;\n height: 20px;\n margin-right: 8px;\n object-fit: cover;\n width: 20px;\n }\n\n [dir=rtl] .gleap-notification-item-news-sender img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-news-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-news-image {\n background-color: ").concat(m,";\n height: 170px;\n max-height: 170px;\n object-fit: cover;\n width: 100%;\n cursor: pointer;\n }\n \n .gleap-notification-item-news-content-title:hover {\n color: ").concat(e,";\n }\n\n .gleap-notification-item {\n display: flex;\n align-items: flex-end;\n cursor: pointer;\n }\n\n .gleap-notification-item img {\n width: 32px;\n height: 32px;\n min-width: 32px;\n border-radius: 100%;\n object-fit: cover;\n margin-right: 8px;\n margin-bottom: 12px;\n cursor: pointer;\n }\n\n [dir=rtl] .gleap-notification-item img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-container {\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n border-bottom-left-radius: 0px;\n padding: 20px;\n background-color: ").concat(r,";\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 15px;\n line-height: 21px;\n color: ").concat(f,';\n position: relative;\n }\n\n .gleap-notification-item-container::after {\n content: " ";\n position: absolute;\n bottom: 0px;\n width: 0px;\n height: 0px;\n left: -6px;\n border-style: solid;\n border-width: 0px 0px 10px 6px;\n border-color: transparent transparent ').concat(r,";\n }\n\n .gleap-notification-item-sender {\n color: ").concat(m,";\n line-height: 20px;\n }\n\n .gleap-notification-item-content {\n line-height: 20px;\n color: ").concat(f,";\n margin-top: 4px;\n min-width: min(200px, 50vw);\n word-wrap: break-word;\n word-break: break-word;\n }\n\n .gleap-frame-container-inner {\n position: relative;\n width: 100%;\n height: calc(100vh - ").concat(130+s,"px);\n max-height: ").concat(700,'px;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: calc(100vh - 40px);\n }\n \n .gleap-frame-container-inner:before {\n content: " ";\n position: absolute;\n width: 100%;\n height: calc(100% - ').concat(k,"px);\n top: ").concat(k,"px;\n background-color: ").concat(r,";\n z-index: -1;\n }\n \n .gleap-frame-container iframe {\n height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n display: block !important;\n pointer-events: auto !important;\n }\n \n .gleap-frame-container--hidden {\n display: none !important;\n pointer-events: none;\n animation: none !important;\n }\n \n .bb-feedback-button {\n margin: 0px;\n position: fixed;\n bottom: ").concat(s,"px;\n right: ").concat(i,"px;\n border-radius: 30px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n color: #000000;\n z-index: ").concat(2147483630,";\n box-sizing: border-box;\n display: flex;\n align-items: center;\n padding: 0px;\n }\n\n [dir=rtl].bb-feedback-button {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n \n .bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n\n [dir=rtl].bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: ").concat(i,'px;\n left: auto;\n }\n \n .bb-feedback-button--disabled {\n display: none !important;\n }\n\n .bb-feedback-button--hidden {\n display: none !important;\n }\n \n .bb-feedback-button-text {\n padding: 8px 12px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n background-color: #fff;\n border-radius: 8px;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.15);\n position: relative;\n z-index: 99;\n }\n \n .bb-feedback-button-text:before {\n content: "";\n position: absolute;\n box-shadow: rgba(0, 0, 0, 0.04) 6px 6px 5px;\n transform: rotate(315deg);\n bottom: 16px;\n right: -4px;\n border-width: 10px;\n border-style: solid;\n border-color: transparent #fff #fff transparent;\n }\n \n .bb-feedback-button--bottomleft .bb-feedback-button-text:before {\n display: none;\n }\n \n .bb-feedback-button-text:after {\n content: "";\n position: absolute;\n bottom: 12px;\n right: 0px;\n background-color: #fff;\n width: 5px;\n height: 30px;\n }\n \n .bb-feedback-button-text-title {\n font-family: sans-serif;\n font-size: 14px;\n color: #666;\n line-height: 18px;\n max-width: 220px;\n }\n \n .bb-feedback-button-text-title b {\n color: #000000;\n font-weight: 600;\n }\n\n .bb-notification-bubble {\n position: absolute;\n top: -5px;\n right: -5px;\n min-width: 12px;\n padding: 0px 4px;\n height: 20px;\n min-width: 20px;\n border-radius: 20px;\n background-color: red;\n color: #fff;\n font-size: 11px;\n font-family: sans-serif;\n text-align: center;\n line-height: 20px;\n }\n\n .bb-notification-bubble--hidden {\n display: none;\n }\n \n .bb-feedback-button-icon {\n width: 48px;\n height: 48px;\n border-radius: 48px;\n background-color: #485bff;\n transition: box-shadow, transform 0.2s ease-in-out;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n position: relative;\n }\n \n .bb-feedback-button-classic {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n top: 50%;\n right: 0px;\n position: fixed;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n padding: 9px 20px;\n text-align: center;\n background-color: #485bff;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n font-family: sans-serif;\n font-size: 16px;\n color: #fff;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.25);\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n \n .bb-feedback-button-classic--left {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--left {\n top: 50%;\n right: 0px;\n left: auto;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n }\n \n .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n right: ').concat(i,"px;\n left: auto;\n }\n \n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n left: ").concat(i,"px;\n right: auto;\n }\n\n .bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n \n .bb-feedback-button--open.bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeOutRight;\n }\n \n .bb-feedback-button .bb-logo-logo {\n position: absolute;\n width: 30px;\n height: 30px;\n top: 9px;\n left: 9px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n position: absolute;\n width: 14px;\n height: 14px;\n top: 17px;\n left: 17px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button--open .bb-logo-arrowdown {\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button--open .bb-logo-logo {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button-icon:hover {\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25), 0px 0px 20px rgba(0, 0, 0, 0.2);\n transform: scale(1.1);\n }\n \n .bb-feedback-button--open .bb-feedback-button-text {\n animation-name: bbFadeOutDown;\n }\n \n .bb-feedback-button--open .bb-feedback-button-icon {\n display: flex;\n }\n \n .bb-capture-svg {\n position: fixed;\n z-index: ").concat(2147483614,";\n top: 0px;\n left: 0px;\n right: 0px;\n width: 100%;\n height: 100%;\n padding: 0px;\n margin: 0px;\n cursor: crosshair;\n }\n\n .bb-capture-svg--preview {\n cursor: auto !important;\n }\n \n .bb-rec-on-circle {\n animation-name: bbRecIconFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-rec-on-cont {\n animation-name: bbRecIconContFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-capture-editor-drag-info {\n position: fixed;\n top: -200px;\n left: 0px;\n z-index: ").concat(2147483616,";\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-editor-drag-info svg {\n width: 24px;\n height: 24px;\n }\n \n .bb-capture-editor-borderlayer {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n border: 4px solid ").concat(e,";\n cursor: crosshair;\n z-index: ").concat(2147483610,";\n box-sizing: border-box;\n pointer-events: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-borderlayer {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n .bb-capture-editor-recording .bb-capture-editor-borderlayer {\n border: 4px solid #eb144c !important;\n }\n \n .bb-capture-editor-recording .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-editor-item-inactive {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-toolbar-drawingitem {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-svg {\n pointer-events: none !important;\n }\n \n .bb-capture-toolbar {\n position: fixed;\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,";\n background-color: #fff;\n padding: 5px;\n display: flex;\n align-items: center;\n border-radius: 8px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-dismiss {\n position: fixed;\n top: 0px;\n right: 0px;\n z-index: ").concat(2147483618,";\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n width: 36px;\n height: 36px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: ").concat(e,";\n border-bottom-left-radius: ").concat(C,"px;\n }\n\n [dir=rtl] .bb-capture-dismiss {\n top: 0px;\n left: 0px;\n right: auto;\n border-bottom-left-radius: 0px !important;\n border-bottom-right-radius: ").concat(C,"px;\n }\n \n .bb-capture-dismiss svg path {\n fill: ").concat(l,';\n }\n \n .bb-capture-dismiss svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n \n .bb-capture-button-next {\n font-family: sans-serif;\n box-sizing: border-box;\n font-weight: 600;\n text-align: center;\n width: auto;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n margin: 0px;\n line-height: 36px;\n padding: 0px 12px;\n font-size: 15px;\n margin-left: 12px;\n }\n\n [dir=rtl].bb-capture-editor .bb-capture-button-next {\n margin-left: auto;\n margin-right: 12px;\n }\n \n .bb-capture-toolbar-item-spacer {\n width: 1px;\n height: 38px;\n min-width: 1px;\n margin: 0px 5px;\n }\n \n .bb-capture-toolbar-item {\n width: 42px;\n height: 38px;\n min-width: 42px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n position: relative;\n margin-right: 5px;\n }\n\n .drag-handle-item {\n cursor: grab !important;\n width: 34px;\n min-width: 34px;\n }\n\n .drag-handle-item svg {\n width: 18px !important;\n height: 18px !important;\n }\n \n .bb-capture-toolbar-item svg {\n width: 23px;\n height: 23px;\n object-fit: contain;\n }\n \n .bb-capture-toolbar-item-selectedcolor {\n border-radius: 100%;\n width: 20px;\n height: 20px;\n background-color: #db4035;\n }\n \n .bb-capture-toolbar-item[data-type="undo"] svg {\n width: 18px;\n height: 18px;\n }\n \n .bb-capture-toolbar-item[data-active="true"] {\n position: relative;\n }\n \n .bb-capture-preview {\n display: none;\n background-color: rgba(0, 0, 0, 0.6);\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n justify-content: center;\n align-items: center;\n z-index: ').concat(2147483620,";\n }\n \n .bb-capture-preview-inner {\n background-color: #fff;\n padding: 0px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n flex-direction: column;\n max-width: 640px;\n width: 100%;\n margin: 20px;\n }\n \n .bb-capture-preview-inner video {\n border-radius: 8px 8px 0px 0px;\n display: block;\n border: 0px;\n outline: none;\n width: 100%;\n max-height: 60vh;\n }\n \n .bb-capture-preview-buttons {\n display: flex;\n justify-content: space-between;\n padding: 14px;\n }\n \n .bb-capture-preview-retrybutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-sendbutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-retrybutton:hover,\n .bb-capture-preview-sendbutton:hover {\n opacity: 0.9;\n }\n \n .bb-capture-toolbar-item-recording {\n margin-right: 0px;\n }\n \n .bb-capture-toolbar-item-recording svg {\n width: 33px;\n height: 33px;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n position: fixed;\n top: 70px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,';\n background-color: #fff;\n display: none;\n padding: 10px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n }\n \n .bb-capture-toolbar-item-color {\n width: 20px;\n height: 20px;\n border-radius: 100%;\n margin-right: 12px;\n box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-toolbar-item-color:hover {\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);\n }\n \n .bb-capture-toolbar-item-color:last-of-type {\n margin-right: 0px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color {\n margin-right: auto;\n margin-left: 12px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color:last-of-type {\n margin-right: auto;\n margin-left: 0px;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:first-of-type {\n display: none;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:nth-of-type(2) {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:first-of-type {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:nth-of-type(2) {\n display: none;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #eee;\n }\n \n .bb-capture-toolbar-item:hover svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #f8f8f8;\n }\n \n .bb-capture-toolbar-item--active svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--inactivecross::before {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 3px;\n width: 26px;\n margin: auto;\n border-radius: 4px;\n background-color: #e80000;\n transform: rotate(45deg);\n }\n \n .bb-capture-toolbar-item--inactivecross svg {\n fill: #eee;\n }\n \n .bb-capture-toolbar-item-timer {\n text-align: left;\n line-height: 32px;\n font-size: 14px;\n font-family: sans-serif;\n margin: 5px;\n min-width: 40px;\n display: none;\n }\n \n .bb-capture-toolbar-item .bb-tooltip {\n background-color: #555;\n color: #fff;\n visibility: hidden;\n font-size: 14px;\n font-family: sans-serif;\n text-align: center;\n padding: 5px 10px;\n position: absolute;\n z-index: 1;\n top: 45px;\n left: 0px;\n transform: translateX(calc(-50% + 21px));\n opacity: 0;\n transition: opacity 0.3s;\n white-space: nowrap;\n }\n \n .bb-capture-toolbar-item .bb-tooltip::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n transform: rotate(180deg);\n border-color: #555 transparent transparent transparent;\n }\n \n .bb-capture-toolbar-item:hover .bb-tooltip {\n visibility: visible;\n opacity: 1;\n }\n \n .bb-capture-options {\n display: none;\n }\n \n .bb-capture-options--active {\n display: flex;\n }\n\n @keyframes bbFadeOutRight {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbFadeOutDown {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n }\n \n @keyframes bbFadeInOpacity {\n from {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n @keyframes bbZoomOut {\n from {\n opacity: 1;\n }\n \n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbZoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n 50% {\n opacity: 1;\n }\n }\n \n @keyframes bbRecIconContFade {\n 0% {\n fill: #b10802;\n }\n 50% {\n fill: #ff0000;\n }\n 100% {\n fill: #b10802;\n }\n } \n .bb-capture-preview-retrybutton {\n color: ').concat(f,";\n border-radius: ").concat(w,"px;\n background-color: ").concat(b,";\n }\n .bb-capture-preview-retrybutton:hover {\n background-color: ").concat(y,";\n }\n @keyframes bb-suc-fill {\n 100% {\n box-shadow: inset 0px 0px 0px 30px ").concat(e,";\n }\n }\n .bb-capture-toolbar-item-spacer {\n background-color: ").concat(b,";\n }\n .bb-tooltip {\n border-radius: ").concat(S,"px;\n }\n @keyframes bbRecIconFade {\n 0% {\n fill: transparent;\n }\n 50% {\n fill: ").concat(y,";\n }\n 100% {\n fill: transparent;\n }\n }\n .bb-capture-preview-sendbutton {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(w,"px;\n }\n .bb-capture-button-next {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(C,"px;\n }\n .bb-capture-preview-inner {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-timer {\n color: ").concat(m,";\n }\n .bb-svg-path {\n fill: ").concat(f,";\n }\n .bb-capture-toolbar-item {\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-colorpicker {\n background-color: ").concat(r,";\n }\n .bb-capture-toolbar-item--active {\n background-color: ").concat(b,";\n }\n .bb-feedback-button-classic {\n border-top-left-radius: ").concat(S,"px;\n border-top-right-radius: ").concat(S,"px;\n }\n .bb-logo-logo--default path {\n fill: ").concat(p,";\n }\n .bb-logo-arrowdown {\n fill: ").concat(p,";\n }\n .bb-feedback-button-icon {\n background-color: ").concat(n,";\n }\n .bb-feedback-button-classic {\n background-color: ").concat(n,";\n color: ").concat(p,";\n }\n\n @media only screen and (max-width: 450px) {\n [dir=rtl].gleap-frame-container,\n .gleap-frame-container {\n left: 0px;\n right: 0px;\n width: 100vw;\n max-width: 100vw;\n min-height: 100vh;\n min-height: -webkit-fill-available;\n max-height: -webkit-fill-available;\n top: 0px;\n bottom: 0px;\n border-radius: 0px;\n animation-name: gleapFadeInUpMobile;\n }\n\n .gleap-frame-container-inner {\n width: 100vw;\n height: 100%;\n }\n\n .gleap-frame-container:not(.gleap-frame-container--survey):not(.gleap-frame-container--survey-full) .gleap-frame-container-inner {\n max-height: calc(var(--glvh, 1vh) * 100) !important;\n }\n\n .gleap-frame-container--survey {\n height: auto !important;\n top: initial !important;\n bottom: 0px !important;\n min-height: initial !important;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: 100vh !important;\n }\n\n .bb-tooltip {\n display: none !important;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n top: 75px;\n }\n \n .bb-capture-button-next {\n margin-left: auto;\n }\n \n .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-toolbar {\n top: 15px;\n right: 15px;\n left: 15px;\n width: auto;\n transform: none;\n }\n\n .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-borderlayer {\n border-width: 4px;\n }\n }\n \n @media print {\n .bb-feedback-button {\n display: none !important;\n }\n \n .gleap-frame-container {\n display: none !important;\n }\n }\n\n .gleap-tour-sender {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n margin-bottom: 10px;\n }\n\n .gleap-tour-sender-image {\n width: 32px;\n height: 32px;\n border-radius: 32px;\n margin-right: 10px;\n background-size: cover;\n background-repeat: no-repeat;\n }\n\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: 550px;\n max-width: 550px;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: calc(100vw - 40px);\n max-width: calc(100vw - 40px);\n }\n }\n\n .gleap-tour-message,\n .gleap-tour-message p,\n .gleap-tour-message ul {\n color: ").concat(f,";\n }\n\n .gleap-tour-message h2 {\n font-weight: 600;\n font-size: 22px;\n }\n\n .gleap-tour-message h3 {\n font-weight: 600;\n font-size: 18px;\n }\n\n .gleap-tour-message p {\n line-height: 1.3;\n margin-bottom: 10px !important;\n margin-top: 10px !important;\n }\n\n .gleap-tour-message ul {\n line-height: 1.3;\n padding-left: 20px;\n margin-top: 10px !important;\n margin-bottom: 10px !important;\n }\n\n .gleap-tour-message {\n max-height: calc(80vh - 100px) !important;\n overflow-y: auto;\n min-width: 270px;\n }\n\n .gleap-tour-message::-webkit-scrollbar {\n width: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-track {\n border-radius: 0px;\n }\n \n .gleap-tour-message::-webkit-scrollbar-thumb {\n background: ").concat(y,"; \n border-radius: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-thumb:hover {\n background: ").concat(m,";\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-message {\n min-width: auto !important;\n }\n }\n\n .gleap-tour-message iframe {\n width: 100%;\n height: 300px;\n margin-top: 10px;\n margin-bottom: 10px;\n border: none;\n outline: none;\n display: block;\n }\n\n .gleap-tour-sender-name {\n font-size: 15px;\n }\n\n .gleap-tour-video {\n width: 100%;\n max-width: 100%;\n }\n\n .gleap-tour-video-svg--fullscreen {\n width: 100% !important;\n height: 100% !important;\n top: 0px !important;\n left: 0px !important;\n right: 0px !important;\n bottom: 0px !important;\n }\n\n .gleap-tour-video--playing .gleap-tour-video-playpause {\n opacity: 0;\n }\n \n .gleap-tour-video--playing:hover .gleap-tour-video-playpause {\n opacity: 1;\n }\n\n .gleap-tour-popover-video-pointer {\n padding: 0px !important;\n border-radius: 8px;\n position: relative;\n background-color: transparent !important;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer {\n position: absolute;\n top: 0px;\n left: 20px;\n right: 20px;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer button {\n padding: 5px 12px;\n }\n\n .gleap-tour-popover-video-pointer.gleap-tour-popover-can-close .gleap-tour-popover-footer {\n right: 40px !important;\n }\n\n .gleap-tour-popover-video-pointer:hover .gleap-tour-popover-footer {\n opacity: 1;\n }\n\n .gleap-tour-popover-pointer.gleap-tour-popover-no-sender .gleap-tour-message {\n padding-right: 20px;\n }\n\n .gleap-tour-video video {\n width: 100%;\n max-width: 100%;\n height: auto;\n border: none;\n outline: none;\n display: block;\n border-radius: 8px;\n }\n\n .gleap-admin-collapse-ui {\n z-index: ").concat(2147483635,";\n cursor: pointer;\n position: fixed;\n bottom: 75px;\n right: 20px;\n width: 32px;\n height: 32px;\n border-radius: 100%;\n background-color: #fff;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;\n }\n\n .gleap-admin-collapse-ui svg {\n width: 20px;\n height: 14px;\n fill: #000 !important;\n }\n\n .gleap-admin-collapse-ui-active {\n bottom: 20px !important;\n }\n\n .gleap-admin-collapse-ui-active svg {\n transform: rotate(180deg);\n }\n\n .gleap-admin-frame-container-active {\n display: none !important;\n }\n\n .gleap-admin-frame-container {\n position: fixed;\n bottom: 0px;\n left: 0px;\n right: 0px;\n width: 100vw;\n z-index: ").concat(2147483640,";\n }\n\n .gleap-admin-frame {\n width: 100%;\n height: 100% !important;\n border: none;\n outline: none;\n display: block;\n }\n \n .gleap-tour-message .linktype-link {\n display: inline-block !important;\n background-color: transparent !important;\n color: ").concat(n," !important;\n }\n\n .gleap-tooltip .linktype-button,\n .gleap-tour-message .linktype-button {\n display: inline-block !important;\n border-radius: 5px;\n box-sizing: border-box;\n padding: 10px 20px !important;\n text-decoration: none !important;\n background-color: ").concat(n," !important;\n color: ").concat(p," !important;\n }\n\n .gleap-tour-message img {\n width: 100%;\n max-width: 100%;\n min-height: 260px;\n height: auto;\n margin-top: 10px;\n margin-bottom: 10px;\n object-fit: cover;\n }\n\n .gleap-tour-active .gleap-tour-overlay {\n pointer-events: none;\n }\n \n .gleap-tour-active * {\n pointer-events: none;\n }\n \n .gleap-tour-active .gleap-tour-active-element,\n .gleap-tour-active .gleap-tour-active-element *,\n .gleap-tour-popover,\n .gleap-tour-popover * {\n pointer-events: auto;\n }\n \n @keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n .gleap-tour-fade .gleap-tour-overlay {\n animation: animate-fade-in 200ms ease-in-out;\n }\n \n .gleap-tour-fade .gleap-tour-popover {\n animation: animate-fade-in 200ms;\n }\n\n .gleap-tour-video-playpause {\n position: absolute;\n bottom: 8px;\n left: 8px;\n width: 32px;\n height: 32px;\n padding: 4px;\n background-color: rgba(0,0,0,0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border-radius: 8px;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-arrow {\n display: none !important;\n }\n\n .gleap-tour-video-playpause svg {\n width: 34px;\n height: auto;\n fill: #fff;\n }\n \n /* Popover styles */\n .gleap-tour-popover {\n all: unset;\n box-sizing: border-box;\n color: #2d2d2d;\n margin: 0;\n padding: 15px;\n border-radius: ").concat(S,'px;\n min-width: 250px;\n max-width: 300px;\n box-shadow: 0 1px 10px #0006;\n z-index: 1000000000;\n position: fixed;\n top: 0;\n right: 0;\n background-color: #fff;\n }\n \n .gleap-tour-popover * {\n font-family: "Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif;\n }\n \n .gleap-tour-popover-title {\n font: 19px / normal sans-serif;\n font-weight: 700;\n display: block;\n position: relative;\n line-height: 1.5;\n zoom: 1;\n margin: 0;\n }\n \n .gleap-tour-popover-close-btn {\n all: unset;\n position: absolute;\n top: 5px;\n right: 5px;\n width: 32px;\n height: 32px;\n cursor: pointer;\n font-size: 30px;\n font-weight: 500;\n line-height: 32px;\n color: #d2d2d2;\n z-index: 1;\n text-align: center;\n transition: color;\n transition-duration: 200ms;\n }\n \n .gleap-tour-popover-close-btn:hover,\n .gleap-tour-popover-close-btn:focus {\n color: #2d2d2d;\n }\n \n .gleap-tour-popover-title[style*="block"] + .gleap-tour-popover-description {\n margin-top: 5px;\n }\n \n .gleap-tour-popover-description {\n margin-bottom: 0;\n font: 15px / normal sans-serif;\n line-height: 1.5;\n font-weight: 400;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer {\n margin-top: 15px;\n text-align: right;\n zoom: 1;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n \n .gleap-tour-popover-progress-text {\n font-size: 13px;\n font-weight: 400;\n color: #727272;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer button {\n background-color: ').concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 10px 20px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;\n }\n\n .gleap-tour-popover-prev-btn {\n color: ").concat(f," !important;\n background-color: ").concat(b," !important;\n margin-right: 3px;\n }\n\n .gleap-tour-popover-prev-btn:hover {\n background-color: ").concat(e,"22 !important;\n color: ").concat(e,' !important;\n }\n \n .gleap-tour-popover-footer .gleap-tour-popover-btn-disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n \n /* Disable the scrolling of parent element if it has an active element*/\n :not(body):has(> .gleap-tour-active-element) {\n overflow: hidden !important;\n }\n \n .gleap-tour-no-interaction, .gleap-tour-no-interaction * {\n pointer-events: none !important;\n }\n \n .gleap-tour-popover-navigation-btns {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n }\n \n .gleap-tour-popover-navigation-btns button + button {\n margin-left: 4px;\n }\n \n .gleap-tour-popover-arrow {\n content: "";\n position: absolute;\n border: 5px solid #fff;\n }\n \n .gleap-tour-popover-arrow-side-over {\n display: none;\n }\n \n /** Popover Arrow Sides **/\n .gleap-tour-popover-arrow-side-left {\n left: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-right {\n right: 100%;\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-top {\n top: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-bottom {\n bottom: 100%;\n border-left-color: transparent;\n border-top-color: transparent;\n border-right-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-center {\n display: none;\n }\n \n /* Left/Start + Right/Start */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-start {\n top: 15px;\n }\n \n /* Top/Start + Bottom/Start */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-start {\n left: 15px;\n }\n \n /* End/Left + End/Right */\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-left,\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-right {\n bottom: 15px;\n }\n \n /* Top/End + Bottom/End */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-end,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-end {\n right: 15px;\n }\n \n /* Left/Center + Right/Center */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-center {\n top: 50%;\n margin-top: -5px;\n }\n \n /* Top/Center + Bottom/Center */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-center {\n left: 50%;\n margin-left: -5px;\n }\n \n /* No arrow */\n .gleap-tour-popover-arrow-none {\n display: none;\n } \n\n /* Modal styles */\n .gleap-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: ').concat(2147483640,";\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-modal-backdrop {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: ").concat(2147483641,";\n }\n\n .gleap-modal {\n position: relative;\n width: 90%;\n max-width: 600px;\n max-height: 90vh;\n z-index: ").concat(2147483700,";\n background-color: ").concat(r,";\n border-radius: ").concat(k,"px;\n overflow: hidden;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n }\n\n .gleap-modal-frame {\n width: 100%;\n border: none;\n display: block;\n outline: none;\n }\n\n body.gleap-modal-open {\n overflow: hidden;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n "),T=document.querySelector(".gleap-styles");T&&T.remove();var E=document.createElement("style");E.innerHTML=L,E.className="gleap-styles",document.body.appendChild(E)}(e,t,n,r,o,i,s,c)}))}},{key:"sendSilentCrashReport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};return e.sendSilentCrashReportWithFormData({description:t},n,o)}},{key:"sendSilentCrashReportWithFormData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};if(!this.silentCrashReportSent){this.silentCrashReportSent=!0,setTimeout((function(){t.silentCrashReportSent=!1}),1e4);var r=o?k(o):{},i=$e.getInstance();if(i.ready){var a=e||{};i.session.email&&(a.reportedBy=i.session.email),new _t("CRASH",n,a,!0,r).sendFeedback().then((function(){})).catch((function(e){}))}}}},{key:"showSurvey",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"survey";e.startFeedbackFlowWithOptions(t,{hideBackButton:!0,format:n},!0)}},{key:"startClassicForm",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlow",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlowWithOptions",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.autostartDrawing,i=n.hideBackButton,a=n.format;if($e.getInstance().ready){e.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY});var s="start-feedbackflow";o&&(s="start-survey"),Gt.getInstance().setAppMode(o?a:"widget"),Gt.getInstance().sendMessage({name:s,data:{flow:t,hideBackButton:i,format:a}},!0),r?Gt.getInstance().showDrawingScreen("screenshot"):Gt.getInstance().showWidget()}}},{key:"openConversations",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversations",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openConversation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversation",data:{shareToken:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"startConversation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.startBot("",t)}},{key:"startBot",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-bot",data:{botId:e||"",hideBackButton:!t}},!0),Gt.getInstance().showWidget()}},{key:"openHelpCenterCollection",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-collection",data:{collectionId:e}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenterArticle",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-article",data:{articleId:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenter",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"searchHelpCenter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter-search",data:{term:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNewsArticle",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news-article",data:{id:e}},!0),Gt.getInstance().showWidget())}},{key:"openChecklists",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklists",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return!!e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-checklist",data:fi({outboundId:e,hideBackButton:!t},n?{sharedKey:n}:{})},!0),Gt.getInstance().showWidget(),!0)}},{key:"openChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklist",data:{id:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNews",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openFeatureRequests",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-feature-requests",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startProductTour",value:function(e){var t=this;$e.getInstance().startProductTourConfig(e).then((function(n){t.startProductTourWithConfig(e,n)})).catch((function(e){}))}},{key:"checkForUncompletedTour",value:function(){var e=Yr.getInstance().loadUncompletedTour();e&&Yr.getInstance().startWithConfig(e.tourId,e.tourData,500)}},{key:"startProductTourWithConfig",value:function(e,t){Yr.getInstance().startWithConfig(e,t)}},{key:"showBanner",value:function(e){try{_o.getInstance().showBanner(e)}catch(t){}}},{key:"showModal",value:function(e){try{Go.getInstance().showModal(e)}catch(t){}}},{key:"showNotification",value:function(e){Ao.getInstance().showNotification(e)}}],n&&di(t.prototype,n),o&&di(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();if(hi(gi,"invoked",!0),hi(gi,"silentCrashReportSent",!1),hi(gi,"instance",void 0),"undefined"!=typeof window){var mi=window.GleapActions;if(mi&&mi.length>0)for(var bi=0;bi{Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["id","class","length"],n=e.attributes;return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t-1||e.push("["+n.nodeName+'="'+n.value+'"]'),e}),[])}},770:(e,t)=>{function n(e){if(!e.hasAttribute("class"))return[];try{return Array.prototype.slice.call(e.classList).filter((function(e){return/^[a-z_-][a-z\d_-]*$/i.test(e)?e:null}))}catch(n){var t=e.getAttribute("class");return(t=t.trim().replace(/\s+/g," ")).split(" ")}}Object.defineProperty(t,"__esModule",{value:!0}),t.getClasses=n,t.getClassSelectors=function(e){return n(e).filter(Boolean).map((function(e){return"."+e}))}},584:(e,t)=>{function n(e,t,o,r,i,a,s){if(a!==s)for(var c=r;c<=i&&i-c+1>=s-a;++c)o[a]=t[c],n(e,t,o,c+1,i,a+1,s);else e.push(o.slice(0,a).join(""))}Object.defineProperty(t,"__esModule",{value:!0}),t.getCombinations=function(e,t){for(var o=[],r=e.length,i=[],a=1;a<=t;++a)n(o,e,i,0,r-1,0,a);return o}},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getID=function(e){var t=e.getAttribute("id");if(null!==t&&""!==t)return t.match(/(?:^\d|:)/)?'[id="'+t+'"]':"#"+t;return null}},64:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getNthChild=function(e){var t=0,n=void 0,r=void 0,i=e.parentNode;if(Boolean(i)){var a=i.childNodes,s=a.length;for(n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.getParents=function(e){var t=[],n=e;for(;(0,o.isElement)(n);)t.push(n),n=n.parentNode;return t};var o=n(440)},970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTag=function(e){return e.tagName.toLowerCase().replace(/:/g,"\\:")}},924:(e,t,n)=>{t.A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selectorTypes,o=void 0===n?["ID","Class","Tag","NthChild"]:n,r=t.attributesToIgnore,i=void 0===r?["id","class","length"]:r,a=t.excludeRegex,s=void 0===a?null:a,c=[],d=(0,u.getParents)(e),p=!0,f=!1,v=void 0;try{for(var g,m=d[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=h(g.value,o,i,s);Boolean(b)&&c.push(b)}}catch(T){f=!0,v=T}finally{try{!p&&m.return&&m.return()}finally{if(f)throw v}}var y=[],w=!0,k=!1,x=void 0;try{for(var S,C=c[Symbol.iterator]();!(w=(S=C.next()).done);w=!0){var I=S.value;y.unshift(I);var L=y.join(" > ");if((0,l.isUnique)(e,L))return L}}catch(T){k=!0,x=T}finally{try{!w&&C.return&&C.return()}finally{if(k)throw x}}return null};var o=n(169),r=n(770),i=n(584),a=n(561),s=n(64),c=n(970),l=n(213),u=n(175);function d(e,t){var n=e.parentNode.querySelectorAll(t);return 1===n.length&&n[0]===e}function p(e,t){return t.find(d.bind(null,e))}function f(e,t,n){var o=(0,i.getCombinations)(t,3),r=p(e,o);return Boolean(r)||Boolean(n)&&(r=p(e,o=o.map((function(e){return n+e}))),Boolean(r))?r:null}function h(e,t,n,i){var l=void 0,u=function(e,t,n){var i={Tag:c.getTag,NthChild:s.getNthChild,Attributes:function(e){return(0,a.getAttributes)(e,n)},Class:r.getClassSelectors,ID:o.getID};return t.reduce((function(t,n){return t[n]=i[n](e),t}),{})}(e,t,n);i&&i instanceof RegExp&&(u.ID=i.test(u.ID)?null:u.ID,u.Class=u.Class.filter((function(e){return!i.test(e)})));var p=!0,h=!1,v=void 0;try{for(var g,m=t[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=g.value,y=u.ID,w=u.Tag,k=u.Class,x=u.Attributes,S=u.NthChild;switch(b){case"ID":if(Boolean(y)&&d(e,y))return y;break;case"Tag":if(Boolean(w)&&d(e,w))return w;break;case"Class":if(Boolean(k)&&k.length&&(l=f(e,k,w)))return l;break;case"Attributes":if(Boolean(x)&&x.length&&(l=f(e,x,w)))return l;break;case"NthChild":if(Boolean(S))return S}}}catch(C){h=!0,v=C}finally{try{!p&&m.return&&m.return()}finally{if(h)throw v}}return"*"}},440:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isElement=function(e){var t=void 0;t="object"===("undefined"==typeof HTMLElement?"undefined":n(HTMLElement))?e instanceof HTMLElement:!!e&&"object"===(void 0===e?"undefined":n(e))&&1===e.nodeType&&"string"==typeof e.nodeName;return t}},213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isUnique=function(e,t){if(!Boolean(t))return!1;var n=e.ownerDocument.querySelectorAll(t);return 1===n.length&&n[0]===e}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var n=0;nxi});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"feedbackButton",null),r(this,"injectedFeedbackButton",!1),r(this,"buttonHidden",null),r(this,"lastButtonIcon",null)}var n,o,i;return n=e,i=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(o=[{key:"toggleFeedbackButton",value:function(t){this.buttonHidden=!t,e.getInstance().updateFeedbackButtonState(),Ao.getInstance().updateContainerStyle()}},{key:"feedbackButtonPressed",value:function(){var e=Gt.getInstance();e.isOpened()?e.hideWidget():(e.setAppMode("widget"),e.showWidget())}},{key:"injectFeedbackButton",value:function(){var e=this;if(!this.injectedFeedbackButton){this.injectedFeedbackButton=!0;var t=document.createElement("div");t.addEventListener("click",(function(){e.feedbackButtonPressed()})),document.body.appendChild(t),this.feedbackButton=t,this.updateFeedbackButtonState()}}},{key:"updateNotificationBadge",value:function(e){var t=document.querySelector(".bb-notification-bubble");if(t){var n="bb-notification-bubble--hidden";e>0?(t.classList.remove(n),t.innerText=e):t.classList.add(n)}}},{key:"refresh",value:function(){document.querySelector(".bb-feedback-button")?(this.updateFeedbackButtonText(),this.updateFeedbackButtonState()):(this.injectedFeedbackButton=!1,this.feedbackButton=null,this.buttonHidden=null,this.lastButtonIcon=null,this.injectFeedbackButton())}},{key:"updateFeedbackButtonText",value:function(){var t=ut.getInstance().getFlowConfig();if(t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT){var n=document.querySelector(".bb-feedback-button-classic");n&&(n.innerText=t.widgetButtonText)}}},{key:"updateFeedbackButtonState",value:function(){if(null!==this.feedbackButton){var t=ut.getInstance().getFlowConfig(),n="";n=t.buttonLogo?''):p("button","#fff"),this.feedbackButton.className="bb-feedback-button gleap-font gl-block",this.feedbackButton.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT?(this.feedbackButton.classList.add("bb-feedback-button--classic-button-style"),this.feedbackButton.innerHTML='
').concat(t.widgetButtonText,"
")):n!==this.lastButtonIcon&&(this.feedbackButton.innerHTML='
'.concat(n).concat(p("arrowdown","#fff"),'
')),this.lastButtonIcon=n;var o=!1;null===e.getInstance().buttonHidden?t.feedbackButtonPosition===e.FEEDBACK_BUTTON_NONE&&(o=!0):e.getInstance().buttonHidden&&(o=!0),o&&this.feedbackButton.classList.add("bb-feedback-button--disabled"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_BOTTOM_LEFT&&this.feedbackButton.classList.add("bb-feedback-button--bottomleft"),Gt.getInstance().isOpened()&&this.feedbackButton.classList.add("bb-feedback-button--open");var r=Gt.getInstance().appMode;"survey"!==r&&"survey_full"!==r&&"survey_web"!==r||this.feedbackButton.classList.add("bb-feedback-button--survey"),!0!==t.hideForGuests||$e.getInstance().isUser()||this.feedbackButton.classList.add("bb-feedback-button--hidden")}}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=160?"#000000":"#ffffff"},p=function(e,t){return"button"===e?'':"drag"===e?'\x3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--\x3e':"unmute"===e?'':"mute"===e?'':"replay"===e?'\n \n ':"dismiss"===e?'':"blur"===e?'\n \n':"pen"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n':"rect"===e?'\n \n \n \n \n \n \n \n \n \n \n':"pointer"===e?'\n \n ':"clip"===e?'\n \n \n \n \n \n':"mic"===e?'\n \n \n \n \n ':"camera"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n':"recorderon"===e?'\n \n \n \n \n \n \n \n \n \n \n \n':"recorderoff"===e?'\n \n \n \n \n \n \n \n \n ':"arrowdown"===e?'\n \n '):"arrowleft"===e?'\n \n '):"close"===e?'\n \n '):"undo"===e?'\n \n \n \n \n \n \n \n \n \n ':"circle-dot"===e?''):"circle-question"===e?''):"circle-info"===e?''):"circle-exclamation"===e?''):"circle-up"===e?''):"circle-right"===e?''):""};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,t){for(var n=0;n0&&(e=e.concat(this.externalRequests)),this.filters&&this.filters.length>0)for(var t=0;t-1)&&!e.find((function(e){return e.url===s.name}))&&e.push({type:"RESOURCE",date:new Date(this.startTimestamp+s.startTime),url:s.name,duration:Math.round(s.duration),initiatorType:s.initiatorType})}}}catch(u){}var c=this.blacklist.concat(this.defaultBlacklist);if(c&&c.length>0)try{e=e.filter((function(e){for(var t=0;t70&&(e=70),this.maxRequests=e}},{key:"setStopped",value:function(e){this.stopped=e}},{key:"setFilters",value:function(e){this.filters=this.filters.concat(e||[])}},{key:"setBlacklist",value:function(e){this.blacklist=this.blacklist.concat(e||[])}},{key:"cleanRequests",value:function(){var e=Object.keys(this.requests);if(e.length>this.maxRequests)for(var t=e.slice(0,e.length-this.maxRequests),n=0;n.15?"":e}},{key:"cleanupPayload",value:function(e){if(null==e)return"{}";try{if(void 0!==("undefined"==typeof TextDecoder?"undefined":f(TextDecoder))&&ArrayBuffer.isView(e))return(new TextDecoder).decode(e)}catch(t){}return e}},{key:"preparePayload",value:function(e){var t=this.cleanupPayload(e);return this.cleanupContentSize(t)}},{key:"start",value:function(){var e=this;if(!this.initialized){this.initialized=!0;var t=this;this.interceptNetworkRequests({onFetch:function(n,o){if(!e.stopped&&o&&e.requests){if(n.length>0&&void 0!==n[0]&&void 0!==n[0].url)e.requests[o]={url:n[0].url,date:new Date,request:{payload:"",headers:void 0!==n[0].headers?Object.fromEntries(n[0].headers.entries()):{}},type:void 0!==n[0].method?n[0].method:""};else if(n.length>=2&&n[1]){var r=n[1]&&n[1].method?n[1].method:"GET";e.requests[o]={request:{payload:t.preparePayload(n[1].body),headers:n[1].headers},type:r,url:n[0],date:new Date}}else e.requests[o]={url:n[0],date:new Date};e.cleanRequests()}},onFetchLoad:function(n,o){if(!e.stopped&&o&&e.requests&&e.requests[o]){try{e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:"",responseText:""},e.calcRequestTime(o)}catch(i){}try{var r="";n.headers&&void 0!==n.headers.get&&(r=n.headers.get("content-type")),e.isContentTypeSupported(r)?n.text().then((function(r){e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:t.cleanupContentSize(r)}),e.calcRequestTime(o),e.cleanRequests()})).catch((function(t){e.cleanRequests()})):(e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:""}),e.calcRequestTime(o),e.cleanRequests())}catch(i){}}},onFetchFailed:function(t,n){!e.stopped&&n&&e.requests&&e.requests[n]&&(e.requests[n].success=!1,e.calcRequestTime(n),e.cleanRequests())},onOpen:function(t,n){e.stopped||(t&&t.bbRequestId&&n.length>=2&&e.requests&&(e.requests[t.bbRequestId]={type:n[0],url:n[1],date:new Date}),e.cleanRequests())},onSend:function(t,n){e.stopped||(t&&t.bbRequestId&&e.requests&&e.requests[t.bbRequestId]&&(e.requests[t.bbRequestId].request={payload:e.preparePayload(n.length>0?n[0]:"{}"),headers:t.requestHeaders}),e.cleanRequests())},onError:function(t,n){!e.stopped&&e.requests&&t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests[t.currentTarget.bbRequestId]&&(e.requests[t.currentTarget.bbRequestId].success=!1,e.calcRequestTime(t.bbRequestId)),e.cleanRequests()},onLoad:function(t,n){if(!e.stopped){if(t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests&&e.requests[t.currentTarget.bbRequestId]){var o=t.currentTarget,r=o.responseType,i="<"+r+">";""!==r&&"text"!==r||(i=e.cleanupContentSize(o.responseText)),e.requests[o.bbRequestId].success=!0,e.requests[o.bbRequestId].response={status:o.status,statusText:o.statusText,responseText:i},e.calcRequestTime(o.bbRequestId)}e.cleanRequests()}}})}}},{key:"interceptNetworkRequests",value:function(e){var t,n=this,o=XMLHttpRequest.prototype.open,r=XMLHttpRequest.prototype.send;return void 0===XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.gleapSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader),XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=function(e,t){this.requestHeaders||(this.requestHeaders={}),this.requestHeaders&&this.requestHeaders.hasOwnProperty(e)||(this.requestHeaders[e]||(this.requestHeaders[e]=[]),this.requestHeaders[e].push(t),this.gleapSetRequestHeader(e,t))}),XMLHttpRequest.prototype.open=function(){return this.bbRequestId=++n.requestId,e.onOpen&&e.onOpen(this,arguments),e.onLoad&&this.addEventListener("load",e.onLoad.bind(e)),e.onError&&this.addEventListener("error",e.onError.bind(e)),o.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){return e.onSend&&e.onSend(this,arguments),r.apply(this,arguments)},window.fetch&&(t=window.fetch,window.fetch=function(){var o=++n.requestId;return e.onFetch(arguments,o),t.apply(this,arguments).then((function(t){if(t&&"function"==typeof t.clone){var n=t.clone();e.onFetchLoad(n,o)}return t})).catch((function(t){throw e.onFetchFailed(t,o),t}))}),e}},{key:"blobToTextPromise",value:function(e){return new Promise((function(t,n){var o=new FileReader;o.onload=function(e){e&&e.target&&e.target.result?t(e.target.result):n()},o.onerror=function(e){n(e)},o.readAsText(e)}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&h(t.prototype,n),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();v(m,"instance",void 0);const b=m;var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400;return new Promise((function(o,r){var i=0===e.indexOf("data:image/jpeg"),a=new Image;a.src=e,a.onerror=function(){r()},a.onload=function(){var e=document.createElement("canvas"),r=t,s=n;t>a.width/1.5&&(r=a.width/1.5),n>a.height/1.5&&(s=a.height/1.5);var c=a.width,l=a.height;c>l?c>r&&(l*=r/c,c=r):l>s&&(c*=s/l,l=s),e.width=c,e.height=l,e.getContext("2d").drawImage(a,0,0,c,l),o(i?e.toDataURL("image/jpeg",.7):e.toDataURL())}}))},w=function(){return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))},k=function(e){if("string"==typeof e||e instanceof String)try{return JSON.parse(e)}catch(t){return{}}return e},x=function(e,t){return e.length>t?e.slice(0,t)+"...":e},S=function(e){try{var t=e.split("."),n=!1,o=t[t.length-2];return"co"!==o&&"com"!==o&&"gv"!==o&&"ac"!==o&&"edu"!==o&&"gov"!==o&&"mil"!==o&&"net"!==o&&"org"!==o||(n=!0),(t=t.slice(n?-3:-2)).join(".")}catch(r){}return e},C=function(e){try{var t=localStorage.getItem("gleap-widget-".concat(e));if(t)return JSON.parse(t)}catch(n){}return null},I=function(e,t){var n="gleap-widget-".concat(e);if(t)try{localStorage.setItem(n,JSON.stringify(t))}catch(o){}else localStorage.removeItem(n)},L=function(e){"complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",(function(){e()}))};function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function E(e,t){for(var n=0;n=200&&i.status<300)try{var e=i.responseText?JSON.parse(i.responseText):null;o(e)}catch(t){r({status:i.status,statusText:"JSON Parse Error",responseText:i.responseText,error:t})}else r({status:i.status,statusText:i.statusText,responseText:i.responseText})},i.onerror=function(){r({status:0,statusText:"Network Error",responseText:null})},i.send(n?JSON.stringify(n):null)}))}},{key:"_createCacheKey",value:function(e,t){return t?"".concat(e,"::").concat(t):e}},{key:"validateChecklist",value:function(e,t){var n=this,o=this._createCacheKey(e,t),r=this.validationCache.get(o);if(r)return r.status===A?Promise.resolve(r.internalId):Promise.reject(r.error);if(this.validationRequests.has(o))return this.validationRequests.get(o);var i=this._getApiUrl();if(!i){var a=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.validationCache.set(o,{status:P,error:a}),Promise.reject(a)}var s="".concat(i,"/outbound/checklists?").concat(this._getQueryParams()),c=this._makeRequest("POST",s,{outboundId:e,sharedKey:t}).then((function(e){if(e&&e.id)return n.validationCache.set(o,{status:A,internalId:e.id}),e.id;var t=new Error("Validation response missing checklist ID.");throw n.validationCache.set(o,{status:P,error:e||t}),t})).catch((function(e){throw n.validationCache.set(o,{status:P,error:e}),e})).finally((function(){n.validationRequests.delete(o)}));return this.validationRequests.set(o,c),c}},{key:"fetchChecklist",value:function(e){var t=this,n=this.fetchCache.get(e);if(n)return n.status===A?Promise.resolve(JSON.parse(JSON.stringify(n.data))):Promise.reject(n.error);if(this.fetchRequests.has(e))return this.fetchRequests.get(e).then((function(e){return JSON.parse(JSON.stringify(e))}));var o=this._getApiUrl();if(!o){var r=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.fetchCache.set(e,{status:P,error:r}),Promise.reject(r)}var i="".concat(o,"/outbound/checklists/").concat(e,"?convertTipTap=true&").concat(this._getQueryParams()),a=this._makeRequest("GET",i,null).then((function(n){if(n)return t.fetchCache.set(e,{status:A,data:n}),JSON.parse(JSON.stringify(n));var o=new Error("Empty response received for checklist fetch.");throw t.fetchCache.set(e,{status:P,error:n||o}),o})).catch((function(n){throw t.fetchCache.set(e,{status:P,error:n}),n})).finally((function(){t.fetchRequests.delete(e)}));return this.fetchRequests.set(e,a),a.then((function(e){return JSON.parse(JSON.stringify(e))}))}}])&&E(t.prototype,n),o&&E(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();O(R,"instance",null);const N=R,D=Math.min,j=Math.max,F=Math.round,_=Math.floor,B=e=>({x:e,y:e}),H={left:"right",right:"left",bottom:"top",top:"bottom"},q={start:"end",end:"start"};function U(e,t,n){return j(e,D(t,n))}function z(e,t){return"function"==typeof e?e(t):e}function W(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function V(e){return"x"===e?"y":"x"}function K(e){return"y"===e?"height":"width"}function X(e){return["top","bottom"].includes(W(e))?"y":"x"}function Z(e){return V(X(e))}function Y(e){return e.replace(/start|end/g,(e=>q[e]))}function J(e){return e.replace(/left|right|bottom|top/g,(e=>H[e]))}function Q(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ee(e,t,n){let{reference:o,floating:r}=e;const i=X(t),a=Z(t),s=K(a),c=W(t),l="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(c){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(G(t)){case"start":f[a]-=p*(n&&l?-1:1);break;case"end":f[a]+=p*(n&&l?-1:1)}return f}async function te(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=z(t,e),h=Q(f),v=s[p?"floating"===d?"reference":"floating":d],g=$(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),m="floating"===d?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=$(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:b,strategy:c}):m);return{top:(g.top-w.top+h.top)/y.y,bottom:(w.bottom-g.bottom+h.bottom)/y.y,left:(g.left-w.left+h.left)/y.x,right:(w.right-g.right+h.right)/y.x}}const ne=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=W(n),s=G(n),c="y"===X(n),l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=z(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),c?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}};function oe(e){return ae(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ie(e){var t;return null==(t=(ae(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ae(e){return e instanceof Node||e instanceof re(e).Node}function se(e){return e instanceof Element||e instanceof re(e).Element}function ce(e){return e instanceof HTMLElement||e instanceof re(e).HTMLElement}function le(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof re(e).ShadowRoot)}function ue(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function de(e){return["table","td","th"].includes(oe(e))}function pe(e){const t=fe(),n=ve(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function fe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function he(e){return["html","body","#document"].includes(oe(e))}function ve(e){return re(e).getComputedStyle(e)}function ge(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(e){if("html"===oe(e))return e;const t=e.assignedSlot||e.parentNode||le(e)&&e.host||ie(e);return le(t)?t.host:t}function be(e){const t=me(e);return he(t)?e.ownerDocument?e.ownerDocument.body:e.body:ce(t)&&ue(t)?t:be(t)}function ye(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=be(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=re(r);return i?t.concat(a,a.visualViewport||[],ue(r)?r:[],a.frameElement&&n?ye(a.frameElement):[]):t.concat(r,ye(r,[],n))}function we(e){const t=ve(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ce(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=F(n)!==i||F(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function ke(e){return se(e)?e:e.contextElement}function xe(e){const t=ke(e);if(!ce(t))return B(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=we(t);let a=(i?F(n.width):n.width)/o,s=(i?F(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Se=B(0);function Ce(e){const t=re(e);return fe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Se}function Ie(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=ke(e);let a=B(1);t&&(o?se(o)&&(a=xe(o)):a=xe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==re(e))&&t}(i,n,o)?Ce(i):B(0);let c=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=re(i),t=o&&se(o)?re(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=xe(r),t=r.getBoundingClientRect(),o=ve(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=a,n=re(r),r=n.frameElement}}return $({width:u,height:d,x:c,y:l})}const Le=[":popover-open",":modal"];function Te(e){return Le.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function Ee(e){return Ie(ie(e)).left+ge(e).scrollLeft}function Oe(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=re(e),o=ie(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;const e=fe();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=ie(e),n=ge(e),o=e.ownerDocument.body,r=j(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=j(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Ee(e);const s=-n.scrollTop;return"rtl"===ve(o).direction&&(a+=j(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(ie(e));else if(se(t))o=function(e,t){const n=Ie(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=ce(e)?xe(e):B(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Ce(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return $(o)}function Me(e,t){const n=me(e);return!(n===t||!se(n)||he(n))&&("fixed"===ve(n).position||Me(n,t))}function Ae(e,t,n){const o=ce(t),r=ie(t),i="fixed"===n,a=Ie(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=B(0);if(o||!o&&!i)if(("body"!==oe(t)||ue(r))&&(s=ge(t)),o){const e=Ie(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=Ee(r));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Pe(e,t){return ce(e)&&"fixed"!==ve(e).position?t?t(e):e.offsetParent:null}function Re(e,t){const n=re(e);if(!ce(e)||Te(e))return n;let o=Pe(e,t);for(;o&&de(o)&&"static"===ve(o).position;)o=Pe(o,t);return o&&("html"===oe(o)||"body"===oe(o)&&"static"===ve(o).position&&!pe(o))?n:o||function(e){let t=me(e);for(;ce(t)&&!he(t);){if(pe(t))return t;t=me(t)}return null}(e)||n}const Ne={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=ie(o),s=!!t&&Te(t.floating);if(o===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=B(1);const u=B(0),d=ce(o);if((d||!d&&!i)&&(("body"!==oe(o)||ue(a))&&(c=ge(o)),ce(o))){const e=Ie(o);l=xe(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:ie,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=ye(e,[],!1).filter((e=>se(e)&&"body"!==oe(e))),r=null;const i="fixed"===ve(e).position;let a=i?me(e):e;for(;se(a)&&!he(a);){const t=ve(a),n=pe(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||ue(a)&&!n&&Me(e,a))?o=o.filter((e=>e!==a)):r=t,a=me(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=Oe(t,n,r);return e.top=j(o.top,e.top),e.right=D(o.right,e.right),e.bottom=D(o.bottom,e.bottom),e.left=j(o.left,e.left),e}),Oe(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Re,getElementRects:async function(e){const t=this.getOffsetParent||Re,n=this.getDimensions;return{reference:Ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=we(e);return{width:t,height:n}},getScale:xe,isElement:se,isRTL:function(e){return"rtl"===ve(e).direction}};function De(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=ke(e),u=r||i?[...l?ye(l):[],...ye(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,o=null;const r=ie(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-_(u)+"px "+-_(r.clientWidth-(l+d))+"px "+-_(r.clientHeight-(u+p))+"px "+-_(l)+"px",threshold:j(0,D(1,c))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(v,{...f,root:r.ownerDocument})}catch(g){o=new IntersectionObserver(v,f)}o.observe(e)}(!0),i}(l,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!c&&h.observe(l),h.observe(t));let v=c?Ie(e):null;return c&&function t(){const o=Ie(e);!v||o.x===v.x&&o.y===v.y&&o.width===v.width&&o.height===v.height||n();v=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const je=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=z(e,t),l={x:n,y:o},u=await te(t,c),d=X(W(r)),p=V(d);let f=l[p],h=l[d];if(i){const e="y"===p?"bottom":"right";f=U(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=U(h+u["y"===d?"top":"left"],h,h-u[e])}const v=s.fn({...t,[p]:f,[d]:h});return{...v,data:{x:v.x-n,y:v.y-o}}}}},Fe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=z(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=W(r),b=W(s)===s,y=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=p||(b||!v?[J(s)]:function(e){const t=J(e);return[Y(e),t,Y(t)]}(s));p||"none"===h||w.push(...function(e,t,n,o){const r=G(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(W(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(Y)))),i}(s,v,h,y));const k=[s,...w],x=await te(t,g),S=[];let C=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&S.push(x[m]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=G(e),r=Z(e),i=K(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=J(a)),[a,J(a)]}(r,a,y);S.push(x[e[0]],x[e[1]])}if(C=[...C,{placement:r,overflows:S}],!S.every((e=>e<=0))){var I,L;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(L=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},_e=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=z(e,t)||{};if(null==l)return{};const d=Q(u),p={x:n,y:o},f=Z(r),h=K(f),v=await a.getDimensions(l),g="y"===f,m=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[f]-p[f]-i.floating[h],k=p[f]-i.reference[f],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=x?x[y]:0;S&&await(null==a.isElement?void 0:a.isElement(x))||(S=s.floating[y]||i.floating[h]);const C=w/2-k/2,I=S/2-v[h]/2-1,L=D(d[m],I),T=D(d[b],I),E=L,O=S-v[h]-T,M=S/2-v[h]/2+C,A=U(E,M,O),P=!c.arrow&&null!=G(r)&&M!==A&&i.reference[h]/2-(M{const o=new Map,r={platform:Ne,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=ee(l,o,c),p=o,f={},h=0;for(let v=0;ve.length)&&(t=e.length);for(var n=0,o=new Array(t);n'):""),i.appendChild(a),t.repositionHotspot(e,n),r=a,t.elementToTooltipMap.set(e,n)}else r=e;var s=t.createTooltip(r,n.html,n);t.elementToFloatingUIMap.set(e,s)}}})),We(this,"updateFilteredTooltips",(function(){t.filteredTooltips=t.getFilteredTooltips(),t.checkForTooltips()})),We(this,"getFilteredTooltips",(function(){if(!t.tooltips)return[];var e=window.location.href;return t.tooltips.filter((function(t){if(!t.page||0===t.page.length)return!0;var n=t.pageType,o=t.page;switch(n){case"is":return e===o;case"isnot":return e!==o;case"contains":return e.includes(o);case"notcontains":return!e.includes(o);case"startswith":return e.startsWith(o);case"endswith":return e.endsWith(o);default:return!1}}))})),We(this,"checkForTooltips",(function(){for(var e=0;e0&&this.filteredTooltips.forEach((function(n){n.selector&&e.matches(n.selector)&&t.linkTooltip(e,n)}))}},{key:"start",value:function(){var e=this,t=this;if(window){var n,o,r,i=(n=t.updateHotspotPositions.bind(t),o=250,r=null,function(){if(!r){var e=this,t=arguments;r=setTimeout((function(){n.call.apply(n,[e].concat(qe(t))),r=null}),o)}});window.addEventListener("resize",i),window.requestAnimationFrame((function(){e.observer=new MutationObserver((function(n){t.lastUrl!==window.location.href&&(t.lastUrl=window.location.href,t.filteredTooltips=t.getFilteredTooltips()),n.forEach((function(n){n.addedNodes.forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&t.processNodeInsertion(e)})),n.removedNodes.forEach((function(t){if(t.nodeType===Node.ELEMENT_NODE&&e.elementToFloatingUIMap.has(t)){var n=e.elementToFloatingUIMap.get(t);n&&(n.tooltip&&n.tooltip.remove(),n.cleanup(),e.elementToFloatingUIMap.delete(t))}e.elementToTooltipMap.has(t)&&e.elementToTooltipMap.delete(t)}))}))})),e.observer.observe(document.body,{childList:!0,subtree:!0})}))}}},{key:"updateHotspotPositions",value:function(){var e=this;document.querySelectorAll("[data-gleap-tooltip-mode='hotspot']").forEach((function(t){var n=e.elementToTooltipMap.get(t);n&&e.repositionHotspot(t,n)}))}},{key:"createTooltip",value:function(e,t,n){var o=document.createElement("div");o.className="gleap-tooltip",o.innerHTML='
\n '.concat(t,'\n
\n \n \n \n
\n
'),document.body.appendChild(o);var r,i=o.querySelector(".gleap-tooltip-arrow"),a=De(e,o,(function(){Be(e,o,{placement:"left"===n.posX?"left":"right",middleware:[ne(10),Fe(),je(),_e({element:i})]}).then((function(e){var t=e.x,n=e.y,r=e.middlewareData,a=e.placement;try{if(Object.assign(o.style,{left:"".concat(t,"px"),top:"".concat(n,"px")}),r.arrow){var s={left:"",top:"",transform:""};null!=r.arrow.x&&(s.left="".concat(r.arrow.x,"px"),"bottom"===a?(s.transform="translateY(-7px) rotate(180deg)",s.top="".concat(-20,"px")):"top"===a&&(s.transform="translateY(7px) rotate(0deg)",s.top="100%")),null!=r.arrow.y&&(s.top="".concat(r.arrow.y,"px"),"right"===a?(s.transform="translateX(-7px) rotate(90deg)",s.left="".concat(-20,"px")):"left"===a&&(s.transform="translateX(7px) rotate(270deg)",s.left="100%")),Object.assign(i.style,s)}}catch(c){}}))}));function s(){clearTimeout(r),o.style.visibility="visible",o.style.opacity="1",o.style.pointerEvents="auto"}function c(){r=setTimeout((function(){o.style.opacity="0",setTimeout((function(){o.style.visibility="hidden",o.style.pointerEvents="none"}),200)}),500)}return e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",c),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c),{cleanup:a,tooltip:o}}},{key:"canEmbed",value:function(e){var t=new Set(["area","base","br","embed","hr","img","input","source","track","wbr","canvas"]);return e&&!t.has(e.tagName.toLowerCase())}},{key:"destroy",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),document.querySelectorAll(".gleap-tooltip").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-anchor]").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-hotspot]").forEach((function(e){return e.remove()})),this.elementToFloatingUIMap=new WeakMap,this.elementToTooltipMap=new WeakMap,this.tooltips=[],this.filteredTooltips=[]}},{key:"repositionHotspot",value:function(e,t){if(e&&t){var n=e.getAttribute("data-gleap-tooltip");if(n){var o=document.querySelector('[data-gleap-tooltip-hotspot="'.concat(n,'"]'));if(o){t.posX||(t.posX="right"),t.posY||(t.posY="center"),t.offsetX||(t.offsetX=4),t.offsetY||(t.offsetY=0);var r=e.getBoundingClientRect();try{var i=document.createRange();i.selectNodeContents(e);var a=window.getComputedStyle(e),s=i.getBoundingClientRect().width+parseFloat(a.paddingLeft);s0&&void 0!==arguments[0]?arguments[0]:0,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash));try{I("session-".concat(t.sdkKey),null)}catch(r){}if(t.useCookies)try{!function(e){try{var t=S(window.location.host.split(":")[0]);document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Domain="+t}catch(r){}}("session-".concat(t.sdkKey))}catch(r){}if(t.ready=!1,t.session={gleapId:null,gleapHash:null,name:"",email:"",userId:"",phone:"",value:0},Gt.getInstance().sendMessage({name:"session-cleared"},!0),Ao.getInstance().clearAllNotifications(!1),Ao.getInstance().setNotificationCount(0),_o.getInstance().removeBannerUI(),Go.getInstance().hideModal(),n&&!isNaN(e)){var o=10*Math.pow(e,2);setTimeout((function(){t.startSession(e+1)}),1e3*o)}})),Je(this,"validateSession",(function(e){var n;if(e&&e.gleapId){var o=!1;(null===(n=t.session)||void 0===n?void 0:n.gleapId)!==(null==e?void 0:e.gleapId)&&(o=!0),t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),I("session-".concat(t.sdkKey),e),t.useCookies&&function(e,t,n){try{var o="";if(n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),o="; expires="+r.toUTCString()}var i=S(window.location.host.split(":")[0]);document.cookie=e+"="+(t||"")+o+"; path=/; domain="+i}catch(a){}}("session-".concat(t.sdkKey),encodeURIComponent(JSON.stringify(e)),365),t.session=e,t.ready=!0,t.session&&t.session.gleapHash&&kn.notifyEvent("register-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),o&&(setTimeout((function(){N.getInstance().clearCache(),rt.getInstance().restart();var e=Ve.getInstance();if(e){try{e.destroy()}catch(t){}e.load()}}),0),"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("session-updated"))),t.notifySessionReady()}})),Je(this,"startSession",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{if(t.useCookies){var n=function(e){try{for(var t=e+"=",n=document.cookie.split(";"),o=0;o0)){var r=C("session-".concat(t.sdkKey));r&&t.validateSession(r)}var i=t,a=new XMLHttpRequest;a.open("POST",i.apiUrl+"/sessions"),a.setRequestHeader("Content-Type","application/json;charset=UTF-8"),a.setRequestHeader("Api-Token",i.sdkKey);try{t.session&&t.session.gleapId&&t.session.gleapHash&&(a.setRequestHeader("Gleap-Id",t.session.gleapId),a.setRequestHeader("Gleap-Hash",t.session.gleapHash))}catch(s){}a.onreadystatechange=function(t){if(4===a.readyState)if(200===a.status||201===a.status)try{var n=JSON.parse(a.responseText);i.validateSession(n)}catch(s){}else 429!==a.status&&i.clearSession(e,!0)},a.send(JSON.stringify({lang:go.getInstance().getActiveLanguage()}))})),Je(this,"checkIfSessionNeedsUpdate",(function(e,n){if(!t.session||!t.session.userId||!e)return!0;try{if(t.session.userId.toString()!==e.toString())return!0}catch(o){}return t.checkIfSessionDataNeedsUpdate(n)})),Je(this,"checkIfSessionDataNeedsUpdate",(function(e){if(e)for(var n=Object.keys(e),o=0;o0)for(var e=0;e2)&&0!==t.streamedEventArray.length&&t.socket&&t.socket.readyState===t.socket.OPEN){var e=t;t.streamingEvents=!0;var n=new XMLHttpRequest;n.open("POST",$e.getInstance().apiUrl+"/sessions/ping"),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),$e.getInstance().injectSession(n),n.onerror=function(){e.errorCount++,e.streamingEvents=!1},n.onreadystatechange=function(t){4===n.readyState&&(200===n.status||201===n.status?e.errorCount=0:e.errorCount++,e.streamingEvents=!1)};var o=Yt.getInstance().getSessionDuration();n.send(JSON.stringify({time:o,events:t.streamedEventArray,opened:Gt.getInstance().isOpened(),type:"js",sdkVersion:"14.6.2",ws:!0})),t.streamedEventArray=[]}})),this.handleOpenBound=this.handleOpen.bind(this),this.handleErrorBound=this.handleError.bind(this),this.handleMessageBound=this.handleMessage.bind(this),this.handleCloseBound=this.handleClose.bind(this)}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"cleanupWebSocket",value:function(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null),this.pingWS&&clearInterval(this.pingWS),this.socket&&(this.socket.removeEventListener("open",this.handleOpenBound),this.socket.removeEventListener("error",this.handleErrorBound),this.socket.removeEventListener("message",this.handleMessageBound),this.socket.removeEventListener("close",this.handleCloseBound),this.socket.close(),this.socket=null)}},{key:"initWebSocket",value:function(){this.cleanupWebSocket(),this.connectedWebSocketGleapId=$e.getInstance().session.gleapId,$e.getInstance().session&&$e.getInstance().sdkKey&&(this.socket=new WebSocket("".concat($e.getInstance().wsApiUrl,"?gleapId=").concat($e.getInstance().session.gleapId,"&gleapHash=").concat($e.getInstance().session.gleapHash,"&apiKey=").concat($e.getInstance().sdkKey,"&sdkVersion=").concat("14.6.2")),this.socket.addEventListener("open",this.handleOpenBound),this.socket.addEventListener("message",this.handleMessageBound),this.socket.addEventListener("error",this.handleErrorBound),this.socket.addEventListener("close",this.handleCloseBound))}},{key:"handleOpen",value:function(e){var t=this;this.pingWS=setInterval((function(){t.socket.readyState===t.socket.OPEN&&(t.socket.send("PING"),t.socket.send(9))}),1e4),this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null)}},{key:"handleMessage",value:function(e){this.processMessage(JSON.parse(e.data))}},{key:"handleError",value:function(e){}},{key:"handleClose",value:function(e){var t=this;setTimeout((function(){t.initWebSocket()}),5e3)}},{key:"processMessage",value:function(e){try{if("update"===e.name){var t=e.data,n=t.a,o=t.u;Gt.getInstance().isOpened()||(n&&ki.getInstance().performActions(n),null!=o&&Ao.getInstance().setNotificationCount(o))}"checklist"===e.name&&null!=e&&e.data&&window&&"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("checkListUpdate",{detail:e.data}))}catch(r){}}},{key:"getEventArray",value:function(){return this.eventArray}},{key:"stop",value:function(){this.cleanupMainLoop()}},{key:"resetErrorCountLoop",value:function(){var e=this;setInterval((function(){e.errorCount=0}),6e4)}},{key:"cleanupMainLoop",value:function(){this.mainLoopTimeout&&(clearInterval(this.mainLoopTimeout),this.mainLoopTimeout=null)}},{key:"restart",value:function(){this.connectedWebSocketGleapId!==$e.getInstance().session.gleapId&&this.initWebSocket(),this.cleanupMainLoop(),this.trackInitialEvents(),this.runEventStreamLoop()}},{key:"start",value:function(){this.startPageListener(),this.resetErrorCountLoop()}},{key:"trackInitialEvents",value:function(){e.getInstance().logEvent("sessionStarted"),e.getInstance().logCurrentPage()}},{key:"logCurrentPage",value:function(){if(!ki.getInstance().disablePageTracking){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.logEvent("pageView",{page:e}))}}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"logEvent",value:function(e,t){var n={name:e,date:new Date};t&&(n.data=k(t)),this.eventArray.push(n),this.streamedEventArray.push(n),this.eventArray.length>this.eventMaxLength&&this.eventArray.shift(),this.streamedEventArray.length>this.eventMaxLength&&this.streamedEventArray.shift()}}])&&tt(t.prototype,n),o&&tt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function at(e,t){for(var n=0;n0)for(var e=0;e=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function ft(e,t,n,o,r,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(o,r)}function ht(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ft(i,o,r,a,s,"next",e)}function s(e){ft(i,o,r,a,s,"throw",e)}a(void 0)}))}}var vt=function(e){var t="",n=window.document.doctype;if(n&&(t=""),e&&e.childNodes&&e.childNodes.length>0)for(var o=0;o1?t-1:0),r=1;r0||t.scrollLeft>0)&&(s.setAttribute("bb-scrollpos",!0),s.setAttribute("bb-scrolltop",t.scrollTop),s.setAttribute("bb-scrollleft",t.scrollLeft)),"SELECT"!==d&&"TEXTAREA"!==d&&"INPUT"!==d||(f=t.value,("value"===t.getAttribute("gleap-ignore")||t.classList.contains("gl-mask"))&&(f=new Array(f.length+1).join("*")),s.setAttribute("bb-data-value",f),"checkbox"!==t.type&&"radio"!==t.type||!t.checked||s.setAttribute("bb-data-checked",!0))),r.appendChild(s),!t.shadowRoot){e.next=29;break}return h=n,n++,e.next=27,a(t.shadowRoot.firstChild,s,h);case 27:St(t.shadowRoot,s,h),void 0!==s.setAttribute&&s.setAttribute("bb-shadow-parent",h);case 29:return e.next=31,a(t.firstChild,s);case 31:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(t,n,o){return e.apply(this,arguments)}}(),r=document.createDocumentFragment(),e.next=5,o(t,r);case 5:return(i=r.querySelector("head"))||(i=r),St(window.document,i),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Lt=function(e){return new Promise(function(){var t=ht(pt().mark((function t(n,o){var r,i,a,s,c,l,u,d,p,f,h,v,g,m,b;return pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r=window.document.querySelectorAll("style, link"),i=0;i0){for(l=c.childNodes;l.length>0;)c.parentNode.insertBefore(l[0],c);c.remove()}for(u=a.querySelectorAll("script, noscript"),i=0;i0?r.innerHTML=n.formatTime(e):(r.innerHTML="2:00",n.stopScreenRecording())}),1e3),this.mediaRecorder.ondataavailable=function(e){e.data.size>0&&o.push(e.data)},t.getVideoTracks()[0].onended=function(){n.prepareRecording(o)},this.mediaRecorder.onstop=function(){n.prepareRecording(o)},this.mediaRecorder.start(200),n.rerender()})),Ot(this,"prepareRecording",(function(e){var t=new Blob(e,{type:this.getSupportedMimeType()}),n=this.getSupportedMimeType(),o=n.includes("mp4")?"mp4":"webm";this.file=new File([t],"screen-recording.".concat(o),{type:n});var r=document.querySelector(".bb-capture-preview video");r&&(r.src=URL.createObjectURL(t),this.audioAvailable=!0,this.isRecording=!1,this.rerender())})),this.rerender=t,this.permissionErrorText=n,navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia||(this.available=!1),setTimeout((function(){o.rerender()}),100)}var t,n,o;return t=e,(n=[{key:"getSupportedMimeType",value:function(){for(var e=0,t=["video/webm","audio/webm","video/webm;codecs=vp8","video/webm;codecs=daala","video/webm;codecs=h264","audio/webm;codecs=opus","video/mp4"];e0&&(e.tags=t),this.excludeData)for(var n=Object.keys(this.excludeData),o=0;oe.length)&&(t=e.length);for(var n=0,o=new Array(t);n0)if(t){var n=window.open(e,"_blank");!n||n.closed||void 0===n.closed?window.location.href=e:n.focus()}else window.location.href=e})),zt(this,"autoWhiteListCookieManager",(function(){window&&window.cmp_block_ignoredomains&&window.cmp_block_ignoredomains.concat(["messenger-app.gleap.io"])})),zt(this,"injectFrame",(function(){t.injectedFrame||(t.injectedFrame=!0,t.autoWhiteListCookieManager(),L((function(){ut.getInstance().onConfigLoaded((function(){ut.getInstance().applyStylesFromConfig();var e=document.createElement("div");e.className="gleap-frame-container gleap-frame-container--hidden gl-block",e.innerHTML='
'),document.body.appendChild(e),t.gleapFrameContainer=e,t.gleapFrame=document.querySelector(".gleap-frame"),t.updateFrameStyle(),"widget"===t.appMode&&t.showFrameContainer(!0)}))})))})),zt(this,"showImage",(function(e){L((function(){var t=document.createElement("div");t.className="gleap-image-view",t.innerHTML='
\n \n
'),document.body.appendChild(t);var n=function(){t.remove()};t.querySelector(".gleap-image-view-close").addEventListener("click",(function(){n()})),t.addEventListener("click",(function(e){e.target===t&&n()}))}))})),zt(this,"updateFrameStyle",(function(){if(t.gleapFrameContainer){for(var e="gleap-frame-container--survey",n="gleap-frame-container--extended",o="gleap-frame-container--survey-full",r="gleap-frame-container--classic",i="gleap-frame-container--classic-left",s="gleap-frame-container--modern-left",c="gleap-frame-container--no-button",l=[r,i,n,s,c,e,o],u=0;u1&&void 0!==arguments[1]&&arguments[1];try{this.gleapFrame=document.querySelector(".gleap-frame"),this.comReady&&this.gleapFrame&&this.gleapFrame.contentWindow?this.gleapFrame.contentWindow.postMessage(JSON.stringify(e),"*"):t&&this.queue.push(e)}catch(n){}}},{key:"sendSessionUpdate",value:function(){this.sendMessage({name:"session-update",data:{sessionData:$e.getInstance().getSession(),apiUrl:$e.getInstance().apiUrl,sdkKey:$e.getInstance().sdkKey}})}},{key:"sendConfigUpdate",value:function(){this.sendMessage({name:"config-update",data:{config:ut.getInstance().getFlowConfig(),aiTools:ut.getInstance().getAiTools(),overrideLanguage:go.getInstance().getOverrideLanguage()}}),this.updateFrameStyle()}},{key:"showDrawingScreen",value:function(e){var t=this;this.hideWidget(),this.markerManager=new uo(e),this.markerManager.show((function(e){e||t.hideMarkerManager(),t.showWidget()}))}},{key:"workThroughQueue",value:function(){var e=Ht(this.queue);this.queue=[];for(var t=0;t0&&(n.tags=o),e.sendMessage({name:"collect-ticket-data",data:n})}if("height-update"===t.name){e.frameHeight=t.data;var r=document.querySelector(".gleap-frame-container-inner");"survey"!==e.appMode&&"survey_full"!==e.appMode&&"survey_web"!==e.appMode||!r||(r.style.maxHeight="".concat(e.frameHeight,"px"))}if("notify-event"===t.name&&kn.notifyEvent(t.data.type,t.data.data),"cleanup-drawings"===t.name&&e.hideMarkerManager(),"open-url"===t.name){var i=t.data,a=!!t.newTab;e.urlHandler(i,a)}if("run-custom-action"===t.name&&En.triggerCustomAction(t.data,{shareToken:t.shareToken}),"close-widget"===t.name&&e.hideWidget(),"tool-execution"===t.name&&kn.notifyEvent("tool-execution",t.data),"send-feedback"===t.name){var s=t.data.formData,c=t.data.action,l=t.data.outboundId,u=t.data.spamToken;new _t(c.feedbackType,"MEDIUM",s,!1,c.excludeData,l,u).sendFeedback().then((function(t){if(e.sendMessage({name:"feedback-sent",data:t}),kn.notifyEvent("feedback-sent",s),l&&l.length>0){kn.notifyEvent("outbound-sent",{outboundId:l,outbound:c,formData:s});try{delete s.reportedBy}catch(n){}ki.trackEvent("outbound-".concat(l,"-submitted"),s)}})).catch((function(t){e.sendMessage({name:"feedback-sending-failed",data:"Something went wrong, please try again."}),kn.notifyEvent("error-while-sending")}))}"start-screen-drawing"===t.name&&e.showDrawingScreen(t.data)})),window.addEventListener("message",(function(t){if(t.origin===e.frameUrl||t.origin===_o.getInstance().bannerUrl)try{for(var n=JSON.parse(t.data),o=0;o1&&void 0!==arguments[1]?arguments[1]:"INFO";!e||e.length<=0||(this.logArray.push({log:x(e,1e3),date:new Date,priority:t}),this.logArray.length>this.logMaxLength&&this.logArray.shift())}},{key:"addLogWithArgs",value:function(e,t){if(e&&!(e.length<=0)){var n="";try{for(var o=0;o1&&void 0!==arguments[1])||arguments[1],n=x(e.innerText||"",40).replace(/(\r\n|\n|\r)/gm,"").replace(/ +(?= )/g,""),o="",r="";if(void 0!==e.getAttribute){var i=e.getAttribute("id");i&&(o=' id="'.concat(i,'"'));var a=e.getAttribute("class");a&&(r=' class="'.concat(a,'"'))}var s=(e.tagName||"").toLowerCase(),c="<",l=">";return t||(c="[",l="]"),"".concat(c).concat(s).concat(o).concat(r).concat(l).concat(n).concat(c,"/").concat(s).concat(l)}(e.target),"CLICK")}}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&an(t.prototype,n),o&&an(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function pn(e){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pn(e)}function fn(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if("flow-started"===e){var n=ki.getInstance();n.setGlobalDataItem("webReplay",null),n.setGlobalDataItem("screenRecordingData",null),n.takeCurrentReplay()}var o=this.getInstance().eventListeners[e];if(o)for(var r=0;r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||Rn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function An(e){return function(e){if(Array.isArray(e))return Nn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Rn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Rn(e,t){if(e){if("string"==typeof e)return Nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n=0;g--){var m=n.get(g);if(m){var b=t.mirror.getId(m.value.parentNode);if(-1===o(m.value))continue;if(-1!==b){f=m;break}var y=m.value;if(y.parentNode&&y.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=y.parentNode.host;if(-1!==t.mirror.getId(w)){f=m;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),r(f.value)}var k={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){return{id:t.mirror.getId(e.node),attributes:e.attributes}})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:e};!k.texts.length&&!k.attributes.length&&!k.removes.length&&!k.adds.length||(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(k))}},this.processMutation=function(e){if(!Ye(e.target,t.mirror))switch(e.type){case"characterData":var n=e.target.textContent;!Ze(e.target,t.blockClass,t.blockSelector,!1)&&n!==e.oldValue&&t.texts.push({value:Be(e.target,t.maskTextClass,t.maskTextSelector)&&n?t.maskTextFn?t.maskTextFn(n):n.replace(/[\S]/g,"*"):n,node:e.target});break;case"attributes":var o=e.target,r=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(r=Ae({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:r,maskInputFn:t.maskInputFn})),Ze(e.target,t.blockClass,t.blockSelector,!1)||r===e.oldValue)return;var i=t.attributes.find((function(t){return t.node===e.target}));if("IFRAME"===o.tagName&&"src"===e.attributeName&&!t.keepIframeSrcFn(r)){if(o.contentDocument)return;e.attributeName="rr_src"}if(i||(i={node:e.target,attributes:{}},t.attributes.push(i)),"style"===e.attributeName){var a=t.doc.createElement("span");e.oldValue&&a.setAttribute("style",e.oldValue),(void 0===i.attributes.style||null===i.attributes.style)&&(i.attributes.style={});for(var s=i.attributes.style,c=0,l=Array.from(o.style);c0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){if("rrweb"===e.data.type){if(!e.source)return;var t=this.crossOriginIframeMap.get(e.source);if(!t)return;var n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}}},{key:"transformCrossOriginEvent",value:function(e,t){var n,o=this;switch(t.type){case m.FullSnapshot:return this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e),{timestamp:t.timestamp,type:m.IncrementalSnapshot,data:{source:b.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case m.Meta:case m.Load:case m.DomContentLoaded:return!1;case m.Plugin:return t;case m.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case m.IncrementalSnapshot:switch(t.data.source){case b.Mutation:return t.data.adds.forEach((function(t){o.replaceIds(t,e,["parentId","nextId","previousId"]),o.replaceIdOnNode(t.node,e)})),t.data.removes.forEach((function(t){o.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){o.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.Drag:case b.TouchMove:case b.MouseMove:return t.data.positions.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.ViewportResize:return!1;case b.MediaInteraction:case b.MouseInteraction:case b.Scroll:case b.CanvasMutation:case b.Input:return this.replaceIds(t.data,e,["id"]),t;case b.StyleSheetRule:case b.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case b.Font:return t;case b.Selection:return t.data.ranges.forEach((function(t){o.replaceIds(t,e,["start","end"])})),t;case b.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach((function(t){o.replaceStyleIds(t,e,["styleId"])})),t}}}},{key:"replace",value:function(e,t,n,o){var r,i=Pn(o);try{for(i.s();!(r=i.n()).done;){var a=r.value;!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]))}}catch(s){i.e(s)}finally{i.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id"]),"childNodes"in e&&e.childNodes.forEach((function(e){n.replaceIdOnNode(e,t)}))}}]),e}(),W=Object.defineProperty,G=Object.defineProperties,V=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,Y=function(e,t,n){return t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},J=function(e,t){for(var n in t||(t={}))X.call(t,n)&&Y(e,n,t[n]);if(K){var o,r=Pn(K(t));try{for(r.s();!(o=r.n()).done;){n=o.value;Z.call(t,n)&&Y(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Q=function(e,t){return G(e,V(t))},$=function(){function e(t){Dn(this,e),this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var n=this;this.restorePatches.push(Ve(Element.prototype,"attachShadow",(function(e){return function(t){var o=e.call(this,t);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),o}})))}return Fn(e,[{key:"addShadowRoot",value:function(e,t){var n=this;!Ee(e)||this.shadowDoms.has(e)||(this.shadowDoms.add(e),lt(Q(J({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),dt(Q(J({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(e.host)),vt({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e)}),0))}},{key:"observeAttachShadow",value:function(e){if(e.contentWindow){var t=this;this.restorePatches.push(Ve(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(o){var r=n.call(this,o);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}})))}}},{key:"reset",value:function(){this.restorePatches.forEach((function(e){return e()})),this.shadowDoms=new WeakSet}}]),e}(),ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=("undefined"==typeof Uint8Array?"undefined":Bn(Uint8Array))>"u"?[]:new Uint8Array(256),ne=0;ne<64;ne++)te[ee.charCodeAt(ne)]=ne;var oe,re,ie,ae=new Map,se=function(e,t,n){if(e&&(le(e,t)||"object"==Bn(e))){var o=function(e,t){var n=ae.get(e);return n||(n=new Map,ae.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name),r=o.indexOf(e);return-1===r&&(r=o.length,o.push(e)),r}},ce=function(e,t,n){return An(e).map((function(e){return mt(e,t,n)}))},le=function(e,t){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(n.find((function(n){return e instanceof t[n]})))},ue=function(e,t,n){var o;return function(r){return o=o||wt(e,t,n),new Worker(o,r)}}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixwPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylwW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgdT1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCxsPW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gdihzLGUsbil7Y29uc3QgYT1gJHtzfS0ke2V9YDtpZigiT2Zmc2NyZWVuQ2FudmFzImluIGdsb2JhbFRoaXMpe2lmKGwuaGFzKGEpKXJldHVybiBsLmdldChhKTtjb25zdCB0PW5ldyBPZmZzY3JlZW5DYW52YXMocyxlKTt0LmdldENvbnRleHQoIjJkIik7Y29uc3QgZz1hd2FpdChhd2FpdCB0LmNvbnZlcnRUb0Jsb2IobikpLmFycmF5QnVmZmVyKCksZD11KGcpO3JldHVybiBsLnNldChhLGQpLGR9ZWxzZSByZXR1cm4iIn1jb25zdCBpPXNlbGY7aS5vbm1lc3NhZ2U9YXN5bmMgZnVuY3Rpb24ocyl7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtjb25zdHtpZDplLGJpdG1hcDpuLHdpZHRoOmEsaGVpZ2h0OnQsZGF0YVVSTE9wdGlvbnM6Z309cy5kYXRhLGQ9dihhLHQsZyksaD1uZXcgT2Zmc2NyZWVuQ2FudmFzKGEsdCk7aC5nZXRDb250ZXh0KCIyZCIpLmRyYXdJbWFnZShuLDAsMCksbi5jbG9zZSgpO2NvbnN0IHc9YXdhaXQgaC5jb252ZXJ0VG9CbG9iKGcpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89dShiKTtpZighYy5oYXMoZSkmJmF3YWl0IGQ9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX1lbHNlIHJldHVybiBpLnBvc3RNZXNzYWdlKHtpZDpzLmRhdGEuaWR9KX19KSgpOwoK",null,!1),de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,he=function(){function e(t){var n=this;Dn(this,e),this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(e)||n.pendingCanvasMutations.set(e,[]),n.pendingCanvasMutations.get(e).push(t)};var o=t.sampling,r=void 0===o?"all":o,i=t.win,a=t.blockClass,s=t.blockSelector,c=t.recordCanvas,l=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&"all"===r&&this.initCanvasMutationObserver(i,a,s),c&&"number"==typeof r&&this.initCanvasFPSObserver(r,i,a,s,{dataURLOptions:l})}return Fn(e,[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,t,n,o,r){var i=this,a=bt(t,n,o),s=new Map,c=new ue;c.onmessage=function(e){var t=e.data.id;if(s.set(t,!1),"base64"in e.data){var n=e.data,o=n.base64,r=n.type,a=n.width,c=n.height;i.mutationCb({id:t,type:w["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:r}]},0,0]}]})}};var l,u=1e3/e,d=0;l=requestAnimationFrame((function e(a){d&&a-d0&&(o.styles=r),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}(),ge=Object.defineProperty,me=Object.defineProperties,be=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,xe=function(e,t,n){return t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Se=function(e,t){for(var n in t||(t={}))we.call(t,n)&&xe(e,n,t[n]);if(ye){var o,r=Pn(ye(t));try{for(r.s();!(o=r.n()).done;){n=o.value;ke.call(t,n)&&xe(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Ce=function(e,t){return me(e,be(t))},Ie=!1,Le=new r;return xt.addCustomEvent=function(e,t){if(!Ie)throw new Error("please add custom event after start recording");oe(kt({type:m.Custom,data:{tag:e,payload:t}}))},xt.freezePage=function(){D.forEach((function(e){return e.freeze()}))},xt.takeFullSnapshot=function(e){if(!Ie)throw new Error("please take full snapshot after start recording");re(e)},xt.mirror=Le,xt}function Te(e){var t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function Ee(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Oe(e){try{var t=e.rules||e.cssRules;return t?function(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}(Array.from(t).map(Me).join("")):null}catch(n){return null}}function Me(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=Oe(e.styleSheet)||t}catch(n){}return t}function Ae(e){var t=e.maskInputOptions,n=e.tagName,o=e.type,r=e.value,i=e.maskInputFn,a=r||"";return(t[n.toLowerCase()]||t[o])&&(a=i?i(a):"*".repeat(a.length)),a}function Pe(){return a++}function Re(e,t){return(e||"").replace(l,(function(e,n,o,r,i,a){var s=o||i||a,c=n||r||"";if(!s)return e;if(!u.test(s)||d.test(s))return"url(".concat(c).concat(s).concat(c,")");if("/"===s[0])return"url(".concat(c).concat(function(e){return(e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(t)+s).concat(c,")");var l=t.split("/"),p=s.split("/");l.pop();for(var f=0,h=p;f=t.length);){var i=o(p);if(","===i.slice(-1))i=Ne(e,i.substring(0,i.length-1)),r.push(i);else{var a="";i=Ne(e,i);for(var s=!1;;){var c=t.charAt(n);if(""===c){r.push((i+a).trim());break}if(s)")"===c&&(s=!1);else{if(","===c){n+=1,r.push((i+a).trim());break}"("===c&&(s=!0)}a+=c,n+=1}}}return r.join(", ")}(e,o):"style"===n&&o?Re(o,je()):"object"===t&&"data"===n&&o?Ne(e,o):o}function _e(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&_e(e.parentNode,t,n);for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&_e(e.parentNode,t,n)}function Be(e,t,n){var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(o.classList.contains(t)||o.closest(".".concat(t)))return!0}else if(_e(o,t,!0))return!0;return!(!n||!o.matches(n)&&!o.closest(n))}function He(t,r){var a=r.doc,c=r.mirror,l=r.blockClass,u=r.blockSelector,d=r.maskTextClass,p=r.maskTextSelector,f=r.inlineStylesheet,h=r.maskInputOptions,v=void 0===h?{}:h,g=r.maskTextFn,m=r.maskInputFn,b=r.dataURLOptions,y=void 0===b?{}:b,w=r.inlineImages,k=r.recordCanvas,x=r.keepIframeSrcFn,S=r.newlyAddedElement,C=void 0!==S&&S,I=function(e,t){if(t.hasNode(e)){var n=t.getId(e);return 1===n?void 0:n}}(a,c);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode}:{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:I};case t.ELEMENT_NODE:return function(t,r){for(var a=r.doc,c=r.blockClass,l=r.blockSelector,u=r.inlineStylesheet,d=r.maskInputOptions,p=void 0===d?{}:d,f=r.maskInputFn,h=r.dataURLOptions,v=void 0===h?{}:h,g=r.inlineImages,m=r.recordCanvas,b=r.keepIframeSrcFn,y=r.newlyAddedElement,w=void 0!==y&&y,k=r.rootId,x=function(e,t,n){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&e.matches(n)}(t,c,l),S=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return s.test(t)?"div":t}(t),C={},I=t.attributes.length,L=0;L2&&void 0!==arguments[2]?arguments[2]:document,o={capture:!0,passive:!0};return n.addEventListener(e,t,o),function(){return n.removeEventListener(e,t,o)}}function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,r=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;st?(o&&(clearTimeout(o),o=null),r=c,e.apply(u,a)):!o&&!1!==n.trailing&&(o=setTimeout((function(){r=!1===n.leading?0:Date.now(),o=null,e.apply(u,a)}),l))}}function Ge(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,o?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),i&&i.set&&i.set.call(this,e)}}),function(){return Ge(e,t,i||{},!0)}}function Ve(e,t,n){try{if(!(t in e))return function(){};var o=e[t],r=n(o);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=r,function(){e[t]=o}}catch(i){return function(){}}}function Ke(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ze(e,t,n,o){if(!e)return!1;var r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!r)return!1;if("string"==typeof t){if(r.classList.contains(t)||o&&null!==r.closest("."+t))return!0}else if(_e(r,t,o))return!0;return!(!n||!(e.matches(n)||o&&null!==r.closest(n)))}function Ye(e,t){return t.getId(e)===c}function Je(e,t){if(Te(e))return!1;var n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Je(e.parentNode,t))}function Qe(e){return Boolean(e.changedTouches)}function $e(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function et(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function tt(e){return Boolean(null==e?void 0:e.shadowRoot)}function nt(e){return"__ln"in e}function ot(e,t){e.delete(t),t.childNodes.forEach((function(t){return ot(e,t)}))}function rt(e,t,n){return 0!==e.length&&it(e,t,n)}function it(e,t,n){var o=t.parentNode;if(!o)return!1;var r=n.getId(o);return!!e.some((function(e){return e.id===r}))||it(e,o,n)}function at(e,t){return 0!==e.size&&st(e,t)}function st(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||st(e,n))}function ct(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(n){return e.target}}function lt(e,t){var n,o,r,i=new I;D.push(i),i.init(e);var a=window.MutationObserver||window.__rrMutationObserver,s=null==(r=null==(o=null===(n=window)||void 0===n?void 0:n.Zone)?void 0:o.__symbol__)?void 0:r.call(o,"MutationObserver");s&&window[s]&&(a=window[s]);var c=new a(i.processMutations.bind(i));return c.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),c}function ut(e){var t=e.mouseInteractionCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.sampling;if(!1===a.mouseInteraction)return function(){};var s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];return Object.keys(y).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]})).forEach((function(e){var a=e.toLowerCase(),s=function(e){return function(n){var a=ct(n);if(!Ze(a,r,i,!0)){var s=Qe(n)?n.changedTouches[0]:n;if(s){var c=o.getId(a),l=s.clientX,u=s.clientY;t({type:y[e],id:c,x:l,y:u})}}}}(e);c.push(ze(a,s,n))})),function(){c.forEach((function(e){return e()}))}}function dt(e){var t=e.scrollCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=We((function(e){var a=ct(e);if(a&&!Ze(a,r,i,!0)){var s=o.getId(a);if(a===n){var c=n.scrollingElement||n.documentElement;t({id:s,x:c.scrollLeft,y:c.scrollTop})}else t({id:s,x:a.scrollLeft,y:a.scrollTop})}}),e.sampling.scroll||100);return ze("scroll",a,n)}function pt(e,t){var n=R({},e);return t||delete n.userTriggered,n}function ft(e){return function(e,t){if(j&&e.parentRule instanceof CSSGroupingRule||F&&e.parentRule instanceof CSSMediaRule||_&&e.parentRule instanceof CSSSupportsRule||B&&e.parentRule instanceof CSSConditionRule){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var o=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(o)}return t}(e,[])}function ht(e,t,n){var o,r;return e?(e.ownerNode?o=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:o}):{}}function vt(e,t){var n,o,r,i=e.mirror,a=e.stylesheetManager,s=null;s="#document"===t.nodeName?i.getId(t):i.getId(t.host);var c="#document"===t.nodeName?null==(n=t.defaultView)?void 0:n.Document:null==(r=null==(o=t.ownerDocument)?void 0:o.defaultView)?void 0:r.ShadowRoot,l=Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets");return null!==s&&-1!==s&&c&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var e;return null==(e=l.get)?void 0:e.call(this)},set:function(e){var t,n=null==(t=l.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{a.adoptStyleSheets(e,s)}catch(o){}return n}}),function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}):function(){}}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var n=e.mutationCb,o=e.mousemoveCb,r=e.mouseInteractionCb,i=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,l=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb;e.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),n.apply(void 0,arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),o.apply(void 0,arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),r.apply(void 0,arguments)},e.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),i.apply(void 0,arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),a.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),s.apply(void 0,arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),c.apply(void 0,arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),l.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),u.apply(void 0,arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),d.apply(void 0,arguments)},e.fontCb=function(){t.font&&t.font.apply(t,arguments),p.apply(void 0,arguments)},e.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),f.apply(void 0,arguments)}}(e,t);var o,r=lt(e,e.doc),i=function(e){var t=e.mousemoveCb,n=e.sampling,o=e.doc,r=e.mirror;if(!1===n.mousemove)return function(){};var i,a="number"==typeof n.mousemove?n.mousemove:50,s="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],l=We((function(e){var n=Date.now()-i;t(c.map((function(e){return e.timeOffset-=n,e})),e),c=[],i=null}),s),u=We((function(e){var t=ct(e),n=Qe(e)?e.changedTouches[0]:e,o=n.clientX,a=n.clientY;i||(i=Date.now()),c.push({x:o,y:a,id:r.getId(t),timeOffset:Date.now()-i}),l(("undefined"==typeof DragEvent?"undefined":Bn(DragEvent))<"u"&&e instanceof DragEvent?b.Drag:e instanceof MouseEvent?b.MouseMove:b.TouchMove)}),a,{trailing:!1}),d=[ze("mousemove",u,o),ze("touchmove",u,o),ze("drag",u,o)];return function(){d.forEach((function(e){return e()}))}}(e),a=ut(e),s=dt(e),c=function(e){var t=e.viewportResizeCb,n=-1,o=-1;return ze("resize",We((function(){var e=Ke(),r=Xe();(n!==e||o!==r)&&(t({width:Number(r),height:Number(e)}),n=e,o=r)}),200),window)}(e),l=function(e){var t=e.inputCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.ignoreClass,s=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,u=e.userTriggeredOnInput;function d(e){var t=ct(e),o=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(H.indexOf(t.tagName)<0)&&!Ze(t,r,i,!0)){var l=t.type;if(!t.classList.contains(a)){var d=t.value,f=!1;"radio"===l||"checkbox"===l?f=t.checked:(s[t.tagName.toLowerCase()]||s[l])&&(d=Ae({maskInputOptions:s,tagName:t.tagName,type:l,value:d,maskInputFn:c})),p(t,pt({text:d,isChecked:f,userTriggered:o},u));var h=t.name;"radio"===l&&h&&f&&n.querySelectorAll('input[type="radio"][name="'.concat(h,'"]')).forEach((function(e){e!==t&&p(e,pt({text:e.value,isChecked:!f,userTriggered:!1},u))}))}}}function p(e,n){var r=q.get(e);if(!r||r.text!==n.text||r.isChecked!==n.isChecked){q.set(e,n);var i=o.getId(e);t(N(R({},n),{id:i}))}}var f=("last"===l.input?["change"]:["input","change"]).map((function(e){return ze(e,d,n)})),h=n.defaultView;if(!h)return function(){f.forEach((function(e){return e()}))};var v=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),g=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&f.push.apply(f,An(g.map((function(e){return Ge(e[0],e[1],{set:function(){d({target:this})}},!1,h)})))),function(){f.forEach((function(e){return e()}))}}(e),u=function(e){var t=e.mediaInteractionCb,n=e.blockClass,o=e.blockSelector,r=e.mirror,i=e.sampling,a=function(e){return We((function(i){var a=ct(i);if(a&&!Ze(a,n,o,!0)){var s=a.currentTime,c=a.volume,l=a.muted,u=a.playbackRate;t({type:e,id:r.getId(a),currentTime:s,volume:c,muted:l,playbackRate:u})}}),i.media||500)},s=[ze("play",a(k.Play)),ze("pause",a(k.Pause)),ze("seeked",a(k.Seeked)),ze("volumechange",a(k.VolumeChange)),ze("ratechange",a(k.RateChange))];return function(){s.forEach((function(e){return e()}))}}(e),d=function(e,t){var n=e.styleSheetRuleCb,o=e.mirror,r=e.stylesheetManager,i=t.win,a=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(e,t){var i=ht(this,o,r.styleMirror),s=i.id,c=i.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:t}]}),a.apply(this,[e,t])};var s,c,l=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,removes:[{index:e}]}),l.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replace:e}),s.apply(this,[e])}),i.CSSStyleSheet.prototype.replaceSync&&(c=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replaceSync:e}),c.apply(this,[e])});var u={};j?u.CSSGroupingRule=i.CSSGroupingRule:(F&&(u.CSSMediaRule=i.CSSMediaRule),B&&(u.CSSConditionRule=i.CSSConditionRule),_&&(u.CSSSupportsRule=i.CSSSupportsRule));var d={};return Object.entries(u).forEach((function(e){var t=Mn(e,2),i=t[0],a=t[1];d[i]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=function(e,t){var a=ht(this.parentStyleSheet,o,r.styleMirror),s=a.id,c=a.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:[].concat(An(ft(this)),[t||0])}]}),d[i].insertRule.apply(this,[e,t])},a.prototype.deleteRule=function(e){var t=ht(this.parentStyleSheet,o,r.styleMirror),a=t.id,s=t.styleId;return(a&&-1!==a||s&&-1!==s)&&n({id:a,styleId:s,removes:[{index:[].concat(An(ft(this)),[e])}]}),d[i].deleteRule.apply(this,[e])}})),function(){i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=l,s&&(i.CSSStyleSheet.prototype.replace=s),c&&(i.CSSStyleSheet.prototype.replaceSync=c),Object.entries(u).forEach((function(e){var t=Mn(e,2),n=t[0],o=t[1];o.prototype.insertRule=d[n].insertRule,o.prototype.deleteRule=d[n].deleteRule}))}}(e,{win:n}),p=vt(e,e.doc),f=function(e,t){var n=e.styleDeclarationCb,o=e.mirror,r=e.ignoreCSSAttributes,i=e.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=function(e,t,a){var c;if(r.has(e))return s.apply(this,[e,t,a]);var l=ht(null==(c=this.parentRule)?void 0:c.parentStyleSheet,o,i.styleMirror),u=l.id,d=l.styleId;return(u&&-1!==u||d&&-1!==d)&&n({id:u,styleId:d,set:{property:e,value:t,priority:a},index:ft(this.parentRule)}),s.apply(this,[e,t,a])};var c=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=function(e){var t;if(r.has(e))return c.apply(this,[e]);var a=ht(null==(t=this.parentRule)?void 0:t.parentStyleSheet,o,i.styleMirror),s=a.id,l=a.styleId;return(s&&-1!==s||l&&-1!==l)&&n({id:s,styleId:l,remove:{property:e},index:ft(this.parentRule)}),c.apply(this,[e])},function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=c}}(e,{win:n}),h=e.collectFonts?function(e){var t=e.fontCb,n=e.doc,o=n.defaultView;if(!o)return function(){};var r=[],i=new WeakMap,a=o.FontFace;o.FontFace=function(e,t,n){var o=new a(e,t,n);return i.set(o,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),o};var s=Ve(n.fonts,"add",(function(e){return function(n){return setTimeout((function(){var e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}}));return r.push((function(){o.FontFace=a})),r.push(s),function(){r.forEach((function(e){return e()}))}}(e):function(){},v=function(e){var t=e.doc,n=e.mirror,o=e.blockClass,r=e.blockSelector,i=e.selectionCb,a=!0,s=function(){var e=t.getSelection();if(!(!e||a&&null!=e&&e.isCollapsed)){a=e.isCollapsed||!1;for(var s=[],c=e.rangeCount||0,l=0;l>2],r+=ee[(3&n[t])<<4|n[t+1]>>4],r+=ee[(15&n[t+1])<<2|n[t+2]>>6],r+=ee[63&n[t+2]];return o%3==2?r=r.substring(0,r.length-1)+"=":o%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(e);return{rr_type:o,base64:r}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[mt(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[mt(e.data,t,n),e.width,e.height]}:le(e,t)||"object"==Bn(e)?{rr_type:e.constructor.name,index:se(e,t,n)}:e}function bt(e,t,n){var o=[];try{var r=Ve(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,n=e.checkoutEveryNms,o=e.checkoutEveryNth,i=e.blockClass,a=void 0===i?"rr-block":i,s=e.blockSelector,c=void 0===s?null:s,l=e.ignoreClass,u=void 0===l?"rr-ignore":l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,f=e.maskTextSelector,h=void 0===f?null:f,v=e.inlineStylesheet,g=void 0===v||v,y=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,x=e.maskInputFn,S=e.maskTextFn,C=e.hooks,I=e.packFn,L=e.sampling,T=void 0===L?{}:L,E=e.dataURLOptions,O=void 0===E?{}:E,M=e.mousemoveWait,A=e.recordCanvas,P=void 0!==A&&A,R=e.recordCrossOriginIframes,N=void 0!==R&&R,j=e.userTriggeredOnInput,F=void 0!==j&&j,_=e.collectFonts,B=void 0!==_&&_,H=e.inlineImages,q=void 0!==H&&H,U=e.plugins,W=e.keepIframeSrcFn,G=void 0===W?function(){return!1}:W,V=e.ignoreCSSAttributes,K=void 0===V?new Set([]):V,X=!N||window.parent===window,Z=!1;if(!X)try{window.parent.document,Z=!1}catch(ye){Z=!0}if(X&&!t)throw new Error("emit function is required");void 0!==M&&void 0===T.mousemove&&(T.mousemove=M),Le.reset();var Y=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==w?w:{password:!0},J=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k}:k||{};!function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,n=new Array(t),o=0;o=o,c=n&&e.timestamp-Q.timestamp>n;(s||c)&&re(!0)}};var ne,ae=function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Mutation},e)}))},se=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Scroll},e)}))},ce=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.CanvasMutation},e)}))},le=new ve({mutationCb:ae,adoptedStyleSheetCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.AdoptedStyleSheet},e)}))}}),ue=new z({mirror:Le,mutationCb:ae,stylesheetManager:le,recordCrossOriginIframes:N,wrappedEmit:oe}),de=Pn(U||[]);try{for(de.s();!(ne=de.n()).done;){var pe=ne.value;pe.getMirror&&pe.getMirror({nodeMirror:Le,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}}catch(we){de.e(we)}finally{de.f()}ie=new he({recordCanvas:P,mutationCb:ce,win:window,blockClass:a,blockSelector:c,mirror:Le,sampling:T.canvas,dataURLOptions:O});var fe=new $({mutationCb:ae,scrollCb:se,bypassOptions:{blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskInputOptions:Y,dataURLOptions:O,maskTextFn:S,maskInputFn:x,recordCanvas:P,inlineImages:q,sampling:T,slimDOMOptions:J,iframeManager:ue,stylesheetManager:le,canvasManager:ie,keepIframeSrcFn:G},mirror:Le});re=function(){var e,t,n,o,i,s,l,u,d,f,v,b,y=arguments.length>0&&void 0!==arguments[0]&&arguments[0];oe(kt({type:m.Meta,data:{href:window.location.href,width:Xe(),height:Ke()}}),y),le.reset(),D.forEach((function(e){return e.lock()}));var w=function(e,t){var n=t||{},o=n.mirror,i=void 0===o?new r:o,a=n.blockClass,s=void 0===a?"rr-block":a,c=n.blockSelector,l=void 0===c?null:c,u=n.maskTextClass,d=void 0===u?"rr-mask":u,p=n.maskTextSelector,f=void 0===p?null:p,h=n.inlineStylesheet,v=void 0===h||h,g=n.inlineImages,m=void 0!==g&&g,b=n.recordCanvas,y=void 0!==b&&b,w=n.maskAllInputs,k=void 0!==w&&w,x=n.maskTextFn,S=n.maskInputFn,C=n.slimDOM,I=void 0!==C&&C,L=n.dataURLOptions,T=n.preserveWhiteSpace,E=n.onSerialize,O=n.onIframeLoad,M=n.iframeLoadTimeout,A=n.onStylesheetLoad,P=n.stylesheetLoadTimeout,R=n.keepIframeSrcFn;return Ue(e,{doc:e,mirror:i,blockClass:s,blockSelector:l,maskTextClass:d,maskTextSelector:f,skipChild:!1,inlineStylesheet:v,maskInputOptions:!0===k?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===k?{password:!0}:k,maskTextFn:x,maskInputFn:S,slimDOMOptions:!0===I||"all"===I?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===I,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===I?{}:I,dataURLOptions:L,inlineImages:m,recordCanvas:y,preserveWhiteSpace:T,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:void 0===R?function(){return!1}:R,newlyAddedElement:!1})}(document,{mirror:Le,blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskAllInputs:Y,maskTextFn:S,slimDOM:J,dataURLOptions:O,recordCanvas:P,inlineImages:q,onSerialize:function(e){$e(e,Le)&&ue.addIframe(e),et(e,Le)&&le.trackLinkElement(e),tt(e)&&fe.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),fe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:G});if(!w)return console.warn("Failed to snapshot the document");oe(kt({type:m.FullSnapshot,data:{node:w,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===(e=document)||void 0===e?void 0:e.documentElement.scrollLeft)||(null==(u=null==(l=null===(t=document)||void 0===t?void 0:t.body)?void 0:l.parentElement)?void 0:u.scrollLeft)||(null==(d=null===(n=document)||void 0===n?void 0:n.body)?void 0:d.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===(o=document)||void 0===o?void 0:o.documentElement.scrollTop)||(null==(v=null==(f=null===(i=document)||void 0===i?void 0:i.body)?void 0:f.parentElement)?void 0:v.scrollTop)||(null==(b=null===(s=document)||void 0===s?void 0:s.body)?void 0:b.scrollTop)||0}}})),D.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,Le.getId(document))};try{var ge=[];ge.push(ze("DOMContentLoaded",(function(){oe(kt({type:m.DomContentLoaded,data:{}}))})));var me=function(e){var t;return gt({mutationCb:ae,mousemoveCb:function(e,t){return oe(kt({type:m.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MouseInteraction},e)}))},scrollCb:se,viewportResizeCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.ViewportResize},e)}))},inputCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Input},e)}))},mediaInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleDeclaration},e)}))},canvasMutationCb:ce,fontCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Font},e)}))},selectionCb:function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Selection},e)}))},blockClass:a,ignoreClass:u,maskTextClass:p,maskTextSelector:h,maskInputOptions:Y,inlineStylesheet:g,sampling:T,recordCanvas:P,inlineImages:q,userTriggeredOnInput:F,collectFonts:B,doc:e,maskInputFn:x,maskTextFn:S,keepIframeSrcFn:G,blockSelector:c,slimDOMOptions:J,dataURLOptions:O,mirror:Le,iframeManager:ue,stylesheetManager:le,shadowDomManager:fe,canvasManager:ie,ignoreCSSAttributes:K,plugins:(null==(t=null==U?void 0:U.filter((function(e){return e.observer})))?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return oe(kt({type:m.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},C)};ue.addLoadListener((function(e){ge.push(me(e.contentDocument))}));var be=function(){re(),ge.push(me(document)),Ie=!0};return"interactive"===document.readyState||"complete"===document.readyState?be():ge.push(ze("load",(function(){oe(kt({type:m.Load,data:{}})),be()}),window)),function(){ge.forEach((function(e){return e()})),Ie=!1}}catch(ge){console.warn(ge)}}}();function qn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n4e6){var n,o=/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim,r=qn(t.matchAll(o));try{for(r.s();!(n=r.n()).done;){var i=n.value;t="image/"===i[1].toLocaleLowerCase().slice(0,6)?t.replace(i[0],"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAQSURBVHgBAQUA+v8ABRg5/wHSAVZN1mnaAAAAAElFTkSuQmCC"):t.replace(i[0],"")}}catch(a){r.e(a)}finally{r.f()}}return{event:JSON.parse(t),size:t.length}}(t).event;e.push(n)}}))}catch(t){console.error(t)}}},{key:"stop",value:function(){this.stopFunction&&this.stopFunction(),this.startDate=void 0,this.events=[],this.bufferSize=0}},{key:"getReplayData",value:function(){return{startDate:this.startDate,events:this.events,baseUrl:window.location.origin,width:window.innerWidth,height:window.innerHeight,isMobile:w(),type:"rrweb"}}}])&&Vn(t.prototype,n),o&&Vn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Jn(e,t){for(var n=0;nthis.startPoint.x&&(r=this.startPoint.x),t.y>this.startPoint.y&&(i=this.startPoint.y),this.path.setAttributeNS(null,"x",r),this.path.setAttributeNS(null,"y",i),this.path.setAttributeNS(null,"width",n),this.path.setAttributeNS(null,"height",o)}}},{key:"mouseDownRect",value:function(e){this.path=document.createElementNS("http://www.w3.org/2000/svg","rect"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",this.color),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",this.strokeWidthRect),this.startPoint=this.getMousePosition(e),this.appendPathToSvg(this.path)}},{key:"mouseDownPen",value:function(e){var t=this.color+"AA",n=this.strokeWidth;"blur"===this.tool&&(t="#000000",n=40),this.path=document.createElementNS("http://www.w3.org/2000/svg","path"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",t),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",n),this.buffer=[];var o=this.getMousePosition(e);this.appendToBuffer(o),this.strPath="M"+o.x+" "+o.y,this.path.setAttribute("d",this.strPath),this.appendPathToSvg(this.path)}},{key:"setTool",value:function(e){this.tool=e}},{key:"setColor",value:function(e){this.color=e}},{key:"getMousePosition",value:function(e){return e.touches&&e.touches.length>0?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}},{key:"getAveragePoint",value:function(e){var t=this.buffer.length;if(t%2==1||t>=this.bufferSize){var n,o,r=0,i=0,a=0;for(o=e;othis.bufferSize;)this.buffer.shift()}},{key:"appendPathToSvg",value:function(e){this.svgElement.appendChild(e),this.pathBuffer.push(e),this.rerender()}},{key:"removeLastAddedPathFromSvg",value:function(){this.pathBuffer.length<=0||!this.svgElement||(this.svgElement.removeChild(this.pathBuffer[this.pathBuffer.length-1]),this.pathBuffer.pop(),this.rerender())}},{key:"fadeOutToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=0,e.style.pointerEvents="none")}},{key:"fadeInToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=1,e.style.pointerEvents="auto")}}],n&&Jn(t.prototype,n),o&&Jn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function to(e){return to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},to(e)}function no(e,t){for(var n=0;n\n \n
'.concat(p("dismiss"),"
\n
").concat(p("rect"),'
\n
\n
\n ').concat(p("drag"),"\n
\n ").concat("capture"===this.type?'
\n '.concat(p("recorderon"),"\n ").concat(p("recorderoff"),'\n \n
\n
\n ').concat(p("mic"),'\n \n
\n
2:00
\n
\n
\n ').concat(p("pointer"),"\n
"):"",'\n
\n ').concat(p("rect"),'\n
\n
\n ').concat(p("pen"),'\n
\n
\n ').concat(p("blur"),'\n
\n
\n
\n ').concat(go.translateText("pickAColor"),'\n
\n
\n ').concat(p("undo"),'\n ').concat(go.translateText("undo"),"\n
\n ").concat("capture"!==this.type?'
'.concat(go.translateText("next"),"
"):"",'\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
').concat(go.translateText("retry"),'
\n
').concat(go.translateText("next"),"
\n
\n
\n
\n "),document.body.appendChild(e),e.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}},{key:"unregisterListeners",value:function(){this.escListener&&document.removeEventListener("keydown",this.escListener),this.pageLeaveListener&&window.removeEventListener("beforeunload",this.pageLeaveListener)}},{key:"registerListeners",value:function(){var e=this;this.escListener=function(t){var n=!1,o=!1;"key"in(t=t||window.event)&&(n="Escape"===t.key,o="Enter"===t.key),n&&e.dismiss(),"screenshot"===e.type&&o&&e.showNextStep()},document.addEventListener("keydown",this.escListener),this.pageLeaveListener=function(e){e.preventDefault(),e.returnValue=""},window.addEventListener("beforeunload",this.pageLeaveListener)}},{key:"show",value:function(e){this.callback=e,this.registerListeners(),this.hideWidgetUI(),this.createEditorUI(),this.setupMousePointer(),"screenshot"===this.type?(ki.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY}),io.disableScroll()):this.setupScreenRecording(),this.screenDrawer=new eo(this.captureScreenDrawerRerender.bind(this)),this.setupColorPicker(),this.setupToolbar()}},{key:"setupColorPicker",value:function(){for(var t=this,n=document.querySelector(".bb-capture-toolbar-item-selectedcolor"),o=document.querySelectorAll(".bb-capture-toolbar-item-color"),r=document.querySelector(".bb-capture-toolbar-item-colorpicker"),i=function(){var i=o[a],s=i.getAttribute("data-color");i.style.backgroundColor=s,i.onclick=function(){i&&(t.screenDrawer.setColor(s),r&&(r.style.display="none"),n.style.backgroundColor=i.style.backgroundColor,e.setPenColor(s))}},a=0;a0?o.classList.remove(e):o.classList.add(e))}}},{key:"captureRenderer",value:function(){if(this.screenRecorder){this.screenRecorder.file&&ki.getInstance().setGlobalDataItem("screenRecordingData",this.screenRecorder.file);var e="bb-capture-editor-item-inactive",t=document.querySelector(".bb-capture-toolbar-item-timer"),n=document.querySelectorAll(".bb-capture-toolbar-item"),o=document.querySelector(".bb-tooltip-screen-recording"),r=document.querySelector(".bb-tooltip-audio-recording"),i=document.querySelector(".bb-capture-editor"),a="bb-capture-editor-recording",s="bb-capture-editor-notrecording";this.screenRecorder.isRecording?(i.classList.add(a),i.classList.remove(s)):(i.classList.add(s),i.classList.remove(a));var c=document.querySelector(".bb-capture-toolbar");document.querySelector(".bb-capture-preview").style.display=this.screenRecorder.file?"flex":"none",c.style.display=this.screenRecorder.file?"none":"flex";for(var l=0;l0){var t=e.filter((function(e){return new Date(e.createdAt)>new Date(Date.now()-36e5)}));t.length>2?this.notifications=t.splice(0,t.length-2):this.notifications=t,this.renderNotifications()}}catch(n){}}},{key:"setNotificationCount",value:function(e){Gt.getInstance().isOpened()?(this.unreadCount=0,this.updateTabBarNotificationCount()):this.unreadCount=e,this.updateTabBarNotificationCount(),a.getInstance().updateNotificationBadge(this.unreadCount)}},{key:"showNotification",value:function(e){this.notificationContainer&&e&&e.data&&(this.notifications.find((function(t){return e.outbound===t.outbound}))||(this.notifications.push(e),e.sound&&Yo.ping()),this.notifications.length>2&&this.notifications.shift(),I(this.unreadNotificationsKey,this.notifications),this.renderNotifications())}},{key:"renderNotifications",value:function(){var e=this;if(this.notificationContainer){this.clearAllNotifications(!0);var t=document.createElement("div");t.onclick=function(){e.clearAllNotifications(),e.currentNewsIndex=0},t.className="gleap-notification-close",t.innerHTML=p("dismiss"),this.notificationContainer.appendChild(t);var n=this.notifications.filter((function(e){return e.data.news})).sort((function(e,t){return new Date(e.createdAt)-new Date(t.createdAt)})),o=this.notifications.filter((function(e){return!e.data.news}));if(n.length>0){var r=this.currentNewsIndex1){var v=document.createElement("div");v.className="gleap-news-pagination";var g=document.createElement("span");g.className="gleap-news-page-indicator",g.innerText="".concat(r+1," / ").concat(n.length),v.appendChild(g);var m=document.createElement("button");m.className="gleap-news-next-button",r\n
\n
\n '.concat(t.data.text,'\n
\n
\n
\n
\n
\n \n \n \n ').concat(t.data.nextStepTitle,"\n
\n
\n ")}else r.className="gleap-notification-item",r.innerHTML="\n ".concat(t.data.sender&&t.data.sender.profileImageUrl&&''),'\n
\n ').concat(t.data.sender?'
\n '.concat(t.data.sender.name,"\n
"):"",'\n
').concat(n,"
\n
");e.notificationContainer.appendChild(r)},y=0;y0||o.length>0||this.clearAllNotifications(!0)}}},{key:"openNews",value:function(e){e.data.news?ki.openNewsArticle(e.data.news.id,!0):ki.open()}},{key:"renderDescription",value:function(e){var t=e.data,n=t.previewText,o=t.sender;return n&&n.length>0?n:o?'\n
\n '.concat(o.profileImageUrl?'').concat(o.name,''):"","\n ").concat(o.name,"\n
\n "):""}},{key:"clearAllNotifications",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.notificationContainer)for(e||(this.notifications=[],this.currentNewsIndex=0,I(this.unreadNotificationsKey,this.notifications));this.notificationContainer.firstChild;)this.notificationContainer.removeChild(this.notificationContainer.firstChild)}},{key:"updateContainerStyle",value:function(){if(this.notificationContainer){var e=ut.getInstance().getFlowConfig(),t="gleap-notification-container--left",n="gleap-notification-container--no-button";this.notificationContainer.classList.remove(t),this.notificationContainer.classList.remove(n),e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_CLASSIC_LEFT&&e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_BOTTOM_LEFT||this.notificationContainer.classList.add(t),null===a.getInstance().buttonHidden?e.feedbackButtonPosition===a.FEEDBACK_BUTTON_NONE&&this.notificationContainer.classList.add(n):a.getInstance().buttonHidden&&this.notificationContainer.classList.add(n),this.notificationContainer.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Eo(t.prototype,n),o&&Eo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Po(e){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(e)}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function No(e){for(var t=1;t'),document.body.appendChild(t),this.bannerContainer=t}},{key:"sendMessage",value:function(e){try{var t=document.querySelector(".gleap-b-frame");t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(No(No({},e),{},{type:"banner"})),"*")}catch(n){}}},{key:"showBanner",value:function(e){this.injectBannerUI(e)}}])&&Do(t.prototype,n),o&&Do(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bo(e){return Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo(e)}function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function qo(e){for(var t=1;t\n
\n \n
\n '),document.body.appendChild(n),this.modalContainer=n,this.modalBackdropClickListener=this.modalContainer.querySelector(".gleap-modal-backdrop").addEventListener("click",(function(){var e,n;(null===(e=null===(n=t.modalData)||void 0===n?void 0:n.showCloseButton)||void 0===e||e)&&t.hideModal()})),document.body.classList.add("gleap-modal-open")}},{key:"_postMessage",value:function(e){try{var t=this.modalContainer.querySelector(".gleap-modal-frame");null!=t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(qo(qo({},e),{},{type:"modal"})),this.modalUrl)}catch(n){}}},{key:"showModal",value:function(e){e&&e.config&&this._injectModalUI(e.config)}},{key:"hideModal",value:function(){this.modalContainer&&(this.modalBackdropClickListener&&this.modalContainer.querySelector(".gleap-modal-backdrop").removeEventListener("click",this.modalBackdropClickListener),document.body.removeChild(this.modalContainer),this.modalContainer=null,document.body.classList.remove("gleap-modal-open"))}}])&&Uo(t.prototype,n),o&&Uo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function Ko(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0])||o(t.gleapCollapseUI,e)&&o(t.gleapFrameContainer,n))&&(t.gleapCollapseUI&&t.gleapCollapseUI.classList.toggle(e),t.gleapFrameContainer&&t.gleapFrameContainer.classList.toggle(n))})),wr(this,"injectCollapseUI",(function(){if(!t.injectedCollapseUI){t.injectedCollapseUI=!0;var e=document.createElement("div");e.className="gleap-admin-collapse-ui",e.innerHTML='
\n '.concat(p("arrowdown"),"\n
"),document.body.appendChild(e),t.gleapCollapseUI=e,e.addEventListener("click",(function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t.toggleCollapseUI()}))}})),wr(this,"injectFrame",(function(){var e;if(!t.injectedFrame){t.injectedFrame=!0;var n=document.createElement("div");n.className="gleap-admin-frame-container",n.innerHTML=''),document.body.appendChild(n),t.gleapFrameContainer=n,t.gleapFrame=document.querySelector(".gleap-admin-frame")}}))}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"logCurrentPage",value:function(){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.sendMessageToTourBuilder({name:"page-changed",data:{page:e}}))}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"initAdminHelper",value:function(){var e=this;Yr.getInstance().disable(),e.adminHelper=new vr;try{e.adminHelper.onElementPicked=function(t){e.toggleCollapseUI(!0),e.sendMessageToTourBuilder({name:"element-picked",data:{selector:t}})}}catch(t){console.log(t)}e.injectFrame(),e.injectCollapseUI(),e.setFrameHeight("loading")}},{key:"setFrameHeight",value:function(e){if(this.gleapFrameContainer){var t="";t="picker"===e||"navigate"===e?"65px":"editor"===e?"100vh":"0px",this.gleapFrameContainer.style.height=t}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!window.gleapAdminDisabled){var t=this;window.addEventListener("message",(function(n){if("https://app.gleap.io"===n.origin)try{var o=JSON.parse(n.data);if("admin"===o.type&&("load"===o.name&&(t.configData=o.data,t.initAdminHelper()),"smartlink-search-result"===o.name&&e.sendMessageToTourBuilder({name:"smartlink-search-result",data:o.data})),"tourbuilder"===o.type){var r;if("loaddata"===o.name&&e.sendMessageToTourBuilder({name:"data",data:br(br({},t.configData),{},{currentPage:window.location.href})}),"highlight-element"===o.name&&(document.querySelectorAll(".gleap-admin-highlight").forEach((function(e){e.classList.remove("gleap-admin-highlight")})),null!=o&&null!==(r=o.data)&&void 0!==r&&r.selector)){var i,a=document.querySelector(null==o||null===(i=o.data)||void 0===i?void 0:i.selector);a&&a.classList.add("gleap-admin-highlight")}if("smartlink-search"===o.name&&e.sendMessage({name:"smartlink-search",data:o.data}),"product-tour-started"===o.name&&e.sendMessage({name:"product-tour-started",data:o.data}),"save"===o.name&&e.sendMessage({name:"save",data:o.data}),"update-steps"===o.name&&e.sendMessage({name:"update-steps",data:o.data}),"click"===o.name)try{document.querySelector(o.data.selector).click()}catch(s){console.log(s)}"status-changed"===o.name&&(t.status=o.data,e.setFrameHeight(t.status),t.adminHelper.stopPicker(),"picker"===t.status&&t.adminHelper.startPicker())}}catch(c){}})),this.sendMessage({name:"init"}),this.startPageListener()}}},{key:"sendMessage",value:function(e){try{window&&window.opener&&window.opener.postMessage(JSON.stringify(br(br({},e),{},{type:"admin"})),"*")}catch(t){}}},{key:"sendMessageToTourBuilder",value:function(e){try{this.gleapFrame&&this.gleapFrame.contentWindow&&this.gleapFrame.contentWindow.postMessage(JSON.stringify(br(br({},e),{},{type:"tourbuilder"})),"*")}catch(t){}}}])&&yr(t.prototype,n),o&&yr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Cr(e){return function(e){if(Array.isArray(e))return Ir(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ir(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ir(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{})}function n(t){return t?e[t]:e}function o(e,t,n,o){return(e/=o/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function r(e){var t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap((function(e){var n=e.matches(t),o=Array.from(e.querySelectorAll(t));return[].concat(Cr(n?[e]:[]),o)})).filter((function(e){return"none"!==getComputedStyle(e).pointerEvents&&function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)}))}function i(e){if(e&&!function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e)){var t=n("smoothScroll");e.scrollIntoView({behavior:!t||a(e)?"auto":"smooth",inline:"center",block:"center"})}}function a(e){if(e&&e.parentElement){var t=e.parentElement;return t.scrollHeight>t.clientHeight}}var s={};function c(e,t){s[e]=t}function l(e){return e?s[e]:s}function u(){s={}}var d={};function p(e,t){d[e]=t}function f(e){var t;null==(t=d[e])||t.call(d)}function h(e){if(e){var t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};c("__activeStagePosition",n),g(n)}}function v(e){var t=function(e){var t=window.innerWidth,o=window.innerHeight,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.classList.add("gleap-tour-overlay","gleap-tour-overlay-animated"),r.setAttribute("viewBox","0 0 ".concat(t," ").concat(o)),r.setAttribute("xmlSpace","preserve"),r.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("preserveAspectRatio","xMinYMin slice"),r.style.fillRule="evenodd",r.style.clipRule="evenodd",r.style.strokeLinejoin="round",r.style.strokeMiterlimit="2",r.style.zIndex="10000",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%";var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",m(e)),i.style.fill=n("overlayColor")||"rgb(0,0,0)",i.style.opacity="".concat(n("overlayOpacity")),i.style.pointerEvents="auto",i.style.cursor="auto",r.appendChild(i),r}(e);document.body.appendChild(t),S(t,(function(e){"path"===e.target.tagName&&f("overlayClick")})),c("__overlaySvg",t)}function g(e){var t=l("__overlaySvg");if(t){var n=t.firstElementChild;if("path"!==(null==n?void 0:n.tagName))throw new Error("no path element found in stage svg");n.setAttribute("d",m(e))}else v(e)}function m(e){var t=window.innerWidth,o=window.innerHeight,r=n("stagePadding")||0,i=n("stageRadius")||0,a=e.width+2*r,s=e.height+2*r,c=Math.min(i,a/2,s/2),l=Math.floor(Math.max(c,0)),u=e.x-r+l,d=e.y-r,p=a-2*l,f=s-2*l;return"M".concat(t,",0L0,0L0,").concat(o,"L").concat(t,",").concat(o,"L").concat(t,",0Z\n M").concat(u,",").concat(d," h").concat(p," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",").concat(l," v").concat(f," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",").concat(l," h-").concat(p," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",-").concat(l," v-").concat(f," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",-").concat(l," z")}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,r=e.element,a=r;if("string"==typeof a)try{a=document.querySelector(r)}catch(u){var s=r.replace(/(#[^#\s]+)/g,(function(e){return e.replace(/:/g,"\\:")}));a=document.querySelector(s)}if(r&&!a&&t>=0)setTimeout((function(){C(),b(e,t-100)}),100);else{if(!a&&("INPUT"===e.mode||"CLICK"===e.mode))return n("onElementNotFound")(e);a||(a=function(){var e=document.getElementById("gleap-tour-dummy-element");if(e)return e;var t=document.createElement("div");return t.id="gleap-tour-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}()),function(e,t){var r,a,s=400,u=Date.now(),d=l("__activeStep"),p=l("__activeElement")||e,f=!p||p===e,v="gleap-tour-dummy-element"===e.id,m="gleap-tour-dummy-element"===p.id,b=n("animate"),y=t.onHighlightStarted||n("onHighlightStarted"),w=(null==t?void 0:t.onHighlighted)||n("onHighlighted"),k=(null==d?void 0:d.onDeselected)||n("onDeselected"),x=n(),S=l();!f&&k&&k(m?void 0:p,d,{config:x,state:S});y&&y(v?void 0:e,t,{config:x,state:S});var L=!f&&b,T=!1;C(),c("previousStep",d),c("previousElement",p),c("activeStep",t),c("activeElement",e);var E=function r(){if(l("__transitionCallback")===r){var i=Date.now()-u,a=s-i<=s/2;t.popover&&a&&!T&&L&&(I(e,t),T=!0),n("animate")&&i0&&R[0].focus()}function L(){var e=l("popover");if(null==e?void 0:e.wrapper){var t=e.wrapper.getBoundingClientRect(),o=n("stagePadding")||0,r=n("popoverOffset")||0;return{width:t.width+o+r,height:t.height+o+r,realWidth:t.width,realHeight:t.height}}}function T(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.top-r,window.innerHeight-o.realHeight-i.width),i.width):"end"===e?Math.max(Math.min(n.top-(null==o?void 0:o.realHeight)+n.height+r,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):"center"===e?Math.max(Math.min(n.top+n.height/2-(null==o?void 0:o.realHeight)/2,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):0}function E(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.left-r,window.innerWidth-o.realWidth-i.width),i.width):"end"===e?Math.max(Math.min(n.left-(null==o?void 0:o.realWidth)+n.width+r,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):"center"===e?Math.max(Math.min(n.left+n.width/2-(null==o?void 0:o.realWidth)/2,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):0}function O(e,t){var o=l("popover");if(o){var r=(null==t?void 0:t.popover)||{},i=r.align,a=void 0===i?"start":i,s=r.side,c=void 0===s?"left":s,u=a,d="gleap-tour-dummy-element"===e.id?"over":c,p=n("stagePadding")||0,f=L(),h=o.arrow.getBoundingClientRect(),v=e.getBoundingClientRect(),g=v.top-f.height,m=g>=0,b=window.innerHeight-(v.bottom+f.height),y=b>=0,w=v.left-f.width,k=w>=0,x=window.innerWidth-(v.right+f.width),S=x>=0,C=!(m||y||k||S),I=d;if("top"===d&&m?S=k=y=!1:"bottom"===d&&y?S=k=m=!1:"left"===d&&k?S=m=y=!1:"right"===d&&S&&(k=m=y=!1),"over"===d){var O=window.innerWidth/2-f.realWidth/2,M=window.innerHeight/2-f.realHeight/2;o.wrapper.style.left="".concat(O,"px"),o.wrapper.style.right="auto",o.wrapper.style.top="".concat(M,"px"),o.wrapper.style.bottom="auto"}else if(C){var A=window.innerWidth/2-(null==f?void 0:f.realWidth)/2;o.wrapper.style.left="".concat(A,"px"),o.wrapper.style.right="auto",o.wrapper.style.bottom="".concat(10,"px"),o.wrapper.style.top="auto"}else if(k){var P=Math.min(w,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),R=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(P,"px"),o.wrapper.style.top="".concat(R,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="left"}else if(S){var N=Math.min(x,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),D=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.right="".concat(N,"px"),o.wrapper.style.top="".concat(D,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.left="auto",I="right"}else if(m){var j=Math.min(g,window.innerHeight-f.realHeight-h.width),F=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.top="".concat(j,"px"),o.wrapper.style.left="".concat(F,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="top"}else if(y){var _=Math.min(b,window.innerHeight-(null==f?void 0:f.realHeight)-h.width),B=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(B,"px"),o.wrapper.style.bottom="".concat(_,"px"),o.wrapper.style.top="auto",o.wrapper.style.right="auto",I="bottom"}C?o.arrow.classList.add("gleap-tour-popover-arrow-none"):function(e,t,n){var o=l("popover");if(!o)return;var r=n.getBoundingClientRect(),i=L(),a=o.arrow,s=i.width,c=window.innerWidth,u=r.width,d=r.left,p=i.height,f=window.innerHeight,h=r.top,v=r.height;a.className="gleap-tour-popover-arrow";var g=t,m=e;"top"===t?(d+u<=0?(g="right",m="end"):d+u-s<=0&&(g="top",m="start"),d>=c?(g="left",m="end"):d+s>=c&&(g="top",m="end")):"bottom"===t?(d+u<=0?(g="right",m="start"):d+u-s<=0&&(g="bottom",m="start"),d>=c?(g="left",m="start"):d+s>=c&&(g="bottom",m="end")):"left"===t?(h+v<=0?(g="bottom",m="end"):h+v-p<=0&&(g="left",m="start"),h>=f?(g="top",m="end"):h+p>=f&&(g="left",m="end")):"right"===t&&(h+v<=0?(g="bottom",m="start"):h+v-p<=0&&(g="right",m="start"),h>=f?(g="top",m="start"):h+p>=f&&(g="right",m="end"));g?(a.classList.add("gleap-tour-popover-arrow-side-".concat(g)),a.classList.add("gleap-tour-popover-arrow-align-".concat(m))):a.classList.add("gleap-tour-popover-arrow-none")}(u,I,e)}}return function(){function e(){n("allowClose")&&h()}function o(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e+1;t[o]?f(o):h()}}function r(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e-1;t[o]?f(o):h()}}function i(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),o=l("__activeStep"),i=l("__activeElement");if("CLICK"!==o.mode)if(void 0!==t&&void 0!==o)if(void 0!==l("activeIndex")){var a=(null==(e=o.popover)?void 0:e.onPrevClick)||n("onPrevClick");if(a)return a(i,o,{config:n(),state:l()});r()}}}function a(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),r=l("__activeStep"),i=l("__activeElement");if("CLICK"!==r.mode&&void 0!==t&&void 0!==r){var a=(null==(e=r.popover)?void 0:e.onNextClick)||n("onNextClick");if(a)return a(i,r,{config:n(),state:l()});o()}}}function s(){l("isInitialized")||(c("isInitialized",!0),document.body.classList.add("gleap-tour-active",n("animate")?"gleap-tour-fade":"gleap-tour-simple"),window.addEventListener("keyup",x,!1),window.addEventListener("keydown",k,!1),window.addEventListener("resize",w),window.addEventListener("scroll",w),p("overlayClick",e),p("escapePress",e),p("arrowLeftPress",i),p("arrowRightPress",a))}function f(){var e,t,o,r,i,a,s,l,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,d=n("steps");if(!d)return console.error("No steps to drive through"),void h();if(d[u]){c("__activeOnDestroyed",document.activeElement),c("activeIndex",u);var p=d[u],v=d[u+1],g=d[u-1],m=(null==(e=p.popover)?void 0:e.doneBtnText)||n("doneBtnText")||"Done",y=n("allowClose"),w=void 0!==(null==(t=p.popover)?void 0:t.showProgress)?null==(o=p.popover)?void 0:o.showProgress:n("showProgress"),k=((null==(r=p.popover)?void 0:r.progressText)||n("progressText")||"{{current}} of {{total}}").replace("{{current}}","".concat(u+1)).replace("{{total}}","".concat(d.length)),x=(null==(i=p.popover)?void 0:i.showButtons)||n("showButtons"),S=["next","previous"].concat(Cr(y?["close"]:[])).filter((function(e){return!(null==x?void 0:x.length)||x.includes(e)})),C=(null==(a=p.popover)?void 0:a.onNextClick)||n("onNextClick"),I=(null==(s=p.popover)?void 0:s.onPrevClick)||n("onPrevClick"),L=(null==(l=p.popover)?void 0:l.onCloseClick)||n("onCloseClick");b(Tr(Tr({},p),{},{popover:Tr({showButtons:S,nextBtnText:v?void 0:m,disableButtons:Cr(g?[]:["previous"]),showProgress:w,progressText:k,onNextClick:C||function(){v?f(u+1):h()},onPrevClick:I||function(){f(u-1)},onCloseClick:L||function(){h()}},(null==p?void 0:p.popover)||{})}))}else h()}function h(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=l("__activeElement"),o=l("__activeStep"),r=l("__activeOnDestroyed"),i=n("onDestroyStarted");if(e&&i){i(!t||"gleap-tour-dummy-element"===(null==t?void 0:t.id)?void 0:t,o,{config:n(),state:l()})}else{var a,s,c,p=(null==o?void 0:o.onDeselected)||n("onDeselected"),f=n("onDestroyed");if(document.body.classList.remove("gleap-tour-active","gleap-tour-fade","gleap-tour-simple"),window.removeEventListener("keyup",x),window.removeEventListener("resize",w),window.removeEventListener("scroll",w),(s=l("popover"))&&(null==(a=s.wrapper.parentElement)||a.removeChild(s.wrapper)),function(){var e;null==(e=document.getElementById("gleap-tour-dummy-element"))||e.remove(),document.querySelectorAll(".gleap-tour-active-element").forEach((function(e){e.classList.remove("gleap-tour-active-element","gleap-tour-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}))}(),(c=l("__overlaySvg"))&&c.remove(),d={},u(),t&&o){var h="gleap-tour-dummy-element"===t.id;p&&p(h?void 0:t,o,{config:n(),state:l()}),f&&f(h?void 0:t,o,{config:n(),state:l()})}r&&r.focus()}}return t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{isActive:function(){return l("isInitialized")||!1},refresh:w,drive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;s(),f(e)},setConfig:t,setSteps:function(e){u(),t(Tr(Tr({},n()),{},{steps:e}))},getConfig:n,getState:l,getActiveIndex:function(){return l("activeIndex")},isFirstStep:function(){return 0===l("activeIndex")},isLastStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&t===e.length-1},getActiveStep:function(){return l("activeStep")},getActiveElement:function(){return l("activeElement")},getPreviousElement:function(){return l("previousElement")},getPreviousStep:function(){return l("previousStep")},moveNext:o,movePrevious:r,moveTo:function(e){(n("steps")||[])[e]?f(e):h()},hasNextStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t+1]},hasPreviousStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t-1]},highlight:function(e){s(),b(Tr(Tr({},e),{},{popover:e.popover?Tr({showButtons:[],showProgress:!1,progressText:""},e.popover):void 0}))},destroy:function(){h(!1)}}}}();const Mr=Or;function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}function Pr(){Pr=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new M(o||[]);return r(a,"_invoke",{value:L(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",v="completed",g={};function m(){}function b(){}function y(){}var w={};l(w,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&o.call(x,a)&&(w=x);var S=y.prototype=m.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(r,i,a,s){var c=d(e[r],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ar(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function L(t,n,o){var r=p;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var c=T(s,o);if(c){if(c===g)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===p)throw r=v,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var l=d(t,n,o);if("normal"===l.type){if(r=o.done?v:f,l.arg===g)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(r=v,o.method="throw",o.arg=l.arg)}}}function T(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.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,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];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=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Rr(e,t){for(var n=0;n=0&&t.productTourData&&t.productTourData.steps){var e=t.productTourData.steps[t.currentActiveIndex];e&&e.selector&&""!==e.selector&&t.updatePointerPosition(document.querySelector(e.selector),e)}})))}var t,n,o;return t=e,n=[{key:"disable",value:function(){this.disabled=!0,this.cleanup()}},{key:"startWithConfig",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;"undefined"!=typeof window&&(this.productTourId||this.disabled||(this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0,this.onCompleteCallback=n,this.start()))}},{key:"storeUncompletedTour",value:function(){if("undefined"!=typeof window)if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Fr,JSON.stringify(e))}catch(t){}else localStorage.removeItem(Fr)}},{key:"attachScrollListeners",value:function(e,t){var n=this;if("undefined"!=typeof window&&e){var o=function(e){if("undefined"!=typeof window){for(var t=[],n=e.parentElement;n;){var o=window.getComputedStyle(n);("auto"===o.overflowY||"scroll"===o.overflowY)&&n.scrollHeight>n.clientHeight&&t.push(n),n=n.parentElement}return t}}(e);o.push(window),o.forEach((function(o){var r=function(){clearTimeout(n._scrollDebounceTimer),n._scrollDebounceTimer=setTimeout((function(){n.updatePointerPosition(e,t)}),150)};o.addEventListener("scroll",r,{passive:!0}),n._scrollListeners.push({el:o,handler:r})}))}}},{key:"removeScrollListeners",value:function(){"undefined"!=typeof window&&(this._scrollListeners&&this._scrollListeners.length>0&&(this._scrollListeners.forEach((function(e){var t=e.el,n=e.handler;t.removeEventListener("scroll",n)})),this._scrollListeners=[]),this._scrollDebounceTimer&&(clearTimeout(this._scrollDebounceTimer),this._scrollDebounceTimer=null))}},{key:"updatePointerPosition",value:function(e,t){var n,o=this;if("undefined"!=typeof window)try{var r=this._pointerContainer||document.getElementById(_r);if(!r)return;if(!e)return r.style.position="fixed",r.style.left="50%",r.style.top="50%",r.style.transform="translate(-50%, -50%)",function(e){if("undefined"!=typeof window){var t=e-window.innerHeight/2;window.scrollTo({top:t,behavior:"smooth"})}}(window.innerHeight/2),this.removeScrollListeners(),this._currentAnchor=null,void(this._currentStep=null);n=e,"undefined"!=typeof window&&n&&n.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});var i=0;!function n(){if(function(e){if("undefined"!=typeof window){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}}(e)||i>=20){var a=e.getBoundingClientRect(),s=a.left+a.width/2,c=a.top+a.height/2+10;r.style.position="fixed",r.style.left="".concat(s,"px"),r.style.top="".concat(c,"px"),r.style.transform="translate(-50%, -50%)";var l=350;l>window.innerWidth-40&&(l=window.innerWidth-40),s+l>window.innerWidth-20?r.classList.add("copilot-pointer-container-right"):r.classList.remove("copilot-pointer-container-right"),o._currentAnchor===e&&o._currentStep===t||(o.removeScrollListeners(),o._currentAnchor=e,o._currentStep=t,o.attachScrollListeners(e,t))}else i++,setTimeout(n,100)}()}catch(a){}}},{key:"cleanup",value:function(){var e=this;"undefined"!=typeof window&&(document.body.classList.add("gl-copilot-fade-out"),setTimeout((function(){if(e._pointerContainer)e._pointerContainer.remove(),e._pointerContainer=null;else{var t=document.getElementById(_r);t&&t.remove()}var n=document.getElementById(Hr);n&&n.remove();var o=document.getElementById(Br);o&&o.remove(),document.body.classList.remove("gl-copilot-fade-out")}),800),this.removeScrollListeners())}},{key:"toggleAudio",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.audioMuted=e,this.currentAudio&&(this.currentAudio.muted=this.audioMuted),document.querySelector(".".concat(Hr,"-mute")).innerHTML=p(this.audioMuted?"unmute":"mute")}},{key:"setupCopilotTour",value:function(){var e,t,n,o,r,i,a=this;if("undefined"!=typeof window){var s,c,l=null!==(e=null===(t=ut.getInstance().flowConfig)||void 0===t?void 0:t.color)&&void 0!==e?e:"#485BFF",u=d(l),f=document.getElementById(Br);f||((f=document.createElement("style")).id=Br,f.type="text/css",f.textContent="\n #".concat(_r," {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n align-items: flex-start;\n pointer-events: none;\n z-index: 2147483610;\n transition: all 0.5s ease;\n }\n .").concat(_r,"-clickmode {\n cursor: pointer;\n pointer-events: all !important;\n }\n .").concat(_r,"-clickmode #copilot-info-bubble-content {\n display: flex !important;\n }\n .").concat(_r,"-clickmode svg {\n display: none !important;\n }\n #").concat(_r," svg {\n width: 20px;\n height: auto;\n fill: none;\n }\n #copilot-info-bubble {\n position: relative;\n }\n #copilot-info-bubble-content-container {\n position: absolute;\n top: 0px;\n left: 0px;\n min-width: min(300px, 80vw);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n .").concat(_r,"-right #copilot-info-bubble-content-container {\n left: auto !important;\n right: 0px !important;\n align-items: flex-end;\n }\n .").concat(_r,"-right .copilot-info-bubble-content {\n margin-right: 5px;\n }\n .").concat(_r,"-right svg {\n transform: scaleX(-1);\n }\n #copilot-info-bubble-content svg {\n width: 16px;\n height: 16px;\n display: inline-block !important;\n margin-left: 5px;\n }\n #copilot-info-bubble-content {\n margin-top: 18px;\n margin-left: 5px;\n padding: 10px 15px;\n border-radius: 20px;\n background-color: black;\n color: white;\n font-family: Arial, sans-serif;\n font-size: 14px;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);\n max-width: 100%;\n white-space: normal;\n overflow-wrap: break-word;\n word-break: normal;\n hyphens: none;\n }\n .").concat(_r,"-right #copilot-info-bubble-content {\n margin-top: 30px;\n margin-left: 0px;\n margin-right: 5px;\n }\n .click-wave {\n position: absolute;\n width: 34px;\n height: 34px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n pointer-events: none;\n z-index: 2147483611;\n animation: click-wave-animation 0.8s ease forwards;\n }\n @keyframes click-wave-animation {\n 0% {\n transform: scale(0.2);\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n }\n @keyframes slideInFromTop {\n 0% {\n transform: translateY(-100%);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n }\n .").concat(Hr," {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 2147483610;\n background: #fff;\n padding: 6px;\n border-radius: 10px;\n box-shadow: 0 0 20px 0 #C294F2;\n display: flex;\n align-items: center;\n gap: 8px;\n border: 1px solid rgba(192, 146, 242, 0.5);\n animation: slideInFromTop 0.5s ease-out forwards;\n }\n .").concat(Hr," span {\n font-size: 13px;\n color: #000;\n font-family: sans-serif;\n }\n .").concat(Hr,"-avatar {\n width: 24px;\n height: 24px;\n flex-shrink: 0;\n border-radius: 6px;\n }\n .").concat(Hr,"-mute {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .").concat(Hr,"-mute svg {\n width: 20px;\n height: auto;\n cursor: pointer;\n animation: pulsate 2s infinite;\n }\n .").concat(Hr,"-mute svg:hover {\n opacity: 0.8;\n }\n .").concat(Hr,"-dismiss {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-right: 3px;\n }\n .").concat(Hr,"-dismiss svg {\n width: 15px;\n height: auto;\n cursor: pointer;\n }\n .").concat(Hr,"-dismiss svg:hover {\n opacity: 0.8;\n }\n @keyframes pulsate {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n 50% {\n transform: scale(1.1);\n opacity: 0.8;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n }\n @keyframes glCoFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n @keyframes glCoFadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n .gleap-audio-unmute-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483620;\n }\n\n .gleap-audio-unmute-modal {\n background-color: #fff;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);\n text-align: center;\n max-width: 90%;\n width: 400px;\n }\n\n .gleap-audio-unmute-modal p {\n margin-bottom: 20px;\n font-size: 16px;\n line-height: 22px;\n font-weight: normal;\n }\n\n .gleap-audio-unmute-button {\n background: ").concat(l,";\n color: ").concat(u,";\n outline: none;\n border: none;\n padding: 10px 14px;\n border-radius: 12px;\n font-size: 14px;\n font-weight: bold;\n cursor: pointer;\n }\n\n .gleap-audio-unmute-button:hover {\n opacity: 0.8;\n }\n\n .gleap-tour-continue-button {\n color: ").concat(l,";\n text-decoration: none;\n cursor: pointer;\n font-size: 14px;\n font-weight: bold;\n border: none;\n background: none;\n padding: 0;\n margin: 0;\n margin-left: 20px;\n }\n\n .gleap-tour-continue-button:hover {\n opacity: 0.8;\n }\n\n body.gl-copilot-fade-out::before,\n body.gl-copilot-fade-out::after,\n body.gl-copilot-fade-out #").concat(Hr," {\n animation: glCoFadeOut 0.8s ease-out forwards;\n }\n ").concat(null===(s=null===(c=this.productTourData)||void 0===c?void 0:c.playVoice)||void 0===s||s?"":"\n .".concat(Hr,"-mute {\n display: none;\n }\n "),"\n ").concat(this.productTourData.gradient?'body::before {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n box-sizing: border-box;\n border: 18px solid transparent;\n filter: blur(25px);\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }\n \n body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0.5;\n box-sizing: border-box;\n border: 3px solid transparent;\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }':'body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0;\n }',"\n "),document.head.appendChild(f));var h=document.createElement("div");h.id=_r,h.style.opacity=0,this._pointerContainer=h;var v=document.createElementNS("http://www.w3.org/2000/svg","svg");v.setAttribute("viewBox","0 0 380 476"),v.innerHTML='';var g=document.createElement("div");g.id="copilot-info-bubble",g.innerHTML="
";var m=document.createElement("div");m.id=Hr,m.classList.add(Hr),m.innerHTML='\n \n ').concat(null===(o=this.productTourData)||void 0===o?void 0:o.kaiSlug,'\n
\n ').concat(p(this.audioMuted?"unmute":"mute"),"\n
\n ").concat(null!==(r=this.productTourData)&&void 0!==r&&r.allowClose?'
\n ').concat(p("dismiss"),"\n
"):"","\n "),document.body.appendChild(m),document.querySelector(".".concat(Hr,"-mute")).addEventListener("click",(function(){a.toggleAudio(!a.audioMuted)})),null!==(i=this.productTourData)&&void 0!==i&&i.allowClose&&document.querySelector(".".concat(Hr,"-dismiss")).addEventListener("click",(function(){a.completeTour(!1)})),h.appendChild(v),h.appendChild(g),document.body.appendChild(h)}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this.productTourData;t&&function(){return qr.apply(this,arguments)}().then((function(n){e.audioMuted=!n,e.setupCopilotTour(),e.audioMuted&&null!=t&&t.showUnmuteModal?e.showAudioUnmuteModal():setTimeout((function(){e.renderNextStep()}),1500)}))}}},{key:"showAudioUnmuteModal",value:function(){var e,t,n,o=this,r=document.createElement("div");r.classList.add("gleap-audio-unmute-modal-overlay");var i=document.createElement("div");i.classList.add("gleap-audio-unmute-modal");var a=document.createElement("p");a.textContent=null===(e=this.productTourData)||void 0===e?void 0:e.unmuteModalTitle,i.appendChild(a);var s=document.createElement("button");s.classList.add("gleap-audio-unmute-button"),s.textContent=null===(t=this.productTourData)||void 0===t?void 0:t.unmuteModalButton,s.addEventListener("click",(function(){o.toggleAudio(!1),r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(s);var c=document.createElement("button");c.classList.add("gleap-tour-continue-button"),c.textContent=null===(n=this.productTourData)||void 0===n?void 0:n.unmuteModalContinue,c.addEventListener("click",(function(){r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(c),r.appendChild(i),document.body.appendChild(r)}},{key:"completeTour",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];"undefined"!=typeof window&&(this.cleanup(),this.onCompleteCallback&&this.onCompleteCallback(e))}},{key:"renderNextStep",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this,n=this.productTourData.steps;if(this.currentActiveIndex>=n.length)setTimeout((function(){e.completeTour()}),500);else{var o=n[this.currentActiveIndex],r=function(n){if(e._pointerContainer.style.display="flex",o.selector&&o.selector.length>0&&!n)e.completeTour(!1);else{var r=function(){if("INPUT"===o.mode&&n){var e,r=function(){document.querySelector("#".concat(_r)).classList.remove("copilot-pointer-container-clickmode"),n.classList.remove("gleap-input-highlight"),document.getElementById(_r).style.display="none",t.currentActiveIndex++,t.storeUncompletedTour(),t.renderNextStep()};if("default"===(null!==(e=o.inputType)&&void 0!==e?e:"default")){var i=function e(t){var o;if(0!==(null==t||null===(o=t.target)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.length)){var i=document.getElementById("copilot-info-bubble-content");i&&(i.innerHTML="".concat(go.translateText("next"),' \n \n'),i.addEventListener("click",r,{once:!0}),n.classList.add("gleap-input-highlight"),document.querySelector("#".concat(_r)).classList.add("copilot-pointer-container-clickmode"),n.removeEventListener("input",e))}};n.addEventListener("input",i,{once:!1}),n.hasAttribute("contenteditable")&&n.addEventListener("keyup",i,{once:!1}),n.addEventListener("blur",(function(){n.focus()}),{once:!0}),n.focus()}else{var a,s=null!==(a=o.inputValue)&&void 0!==a?a:"",c=0;!function e(){c0})).length;return Math.ceil(t/3.6)+1}}(i),s=function(){e.currentAudio=void 0,setTimeout((function(){r()}),1e3*a)};o.voice&&o.voice.length>0?(e.currentAudio=new Audio(o.voice),e.audioMuted&&(e.currentAudio.muted=!0),e.currentAudio.addEventListener("ended",(function(){setTimeout((function(){r()}),1e3)})),e.currentAudio.play().then((function(){})).catch((function(e){s()}))):s()}},i=o.selector?function(e){if("undefined"!=typeof window){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3)/100,n=0;return new Promise((function(o,r){var i=setInterval((function(){var a=document.querySelector(e);a?(clearInterval(i),o(a)):n>=t&&(clearInterval(i),r(new Error("Element not found for selector: ".concat(e)))),n++}),100)}))}}(o.selector):Promise.resolve(null);i.then(r).catch((function(){return r(null)}))}}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Rr(t.prototype,n),o&&Rr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zr(e){return zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(e)}function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0;if(!this.productTourId&&!this.disabled){this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0;var r=this;$e.getInstance().validateProductTour(e).then((function(){return o>0?setTimeout((function(){r.start()}),o):n.start()})).catch((function(e){console.log("Product tour is not live. Cleaning up..."),console.error(e),r.onComplete(!1)}))}}},{key:"onComplete",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={tourId:this.productTourId};e?(kn.notifyEvent("productTourCompleted",t),ki.trackEvent("tour-".concat(this.productTourId,"-completed"),t)):(kn.notifyEvent("productTourQuit",t),ki.trackEvent("tour-".concat(this.productTourId,"-quit"),t)),this.gleapTourObj&&this.gleapTourObj.destroy(),this.gleapTourObj=void 0,this.productTourData=void 0,this.productTourId=void 0,this.currentActiveIndex=void 0,this.clearUncompletedTour()}},{key:"loadUncompletedTour",value:function(){try{var e=JSON.parse(localStorage.getItem(Zr));if(null!=e&&e.tourData&&null!=e&&e.tourId)return e}catch(t){}return null}},{key:"storeUncompletedTour",value:function(){if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Zr,JSON.stringify(e))}catch(t){}else this.clearUncompletedTour()}},{key:"clearUncompletedTour",value:function(){try{localStorage.removeItem(Zr)}catch(e){}}},{key:"start",value:function(){var e=this,t=this.productTourData;if(t){if("cobrowse"===t.tourType)return Ur.getInstance().startWithConfig(this.productTourId,t,(function(t){e.onComplete(t)}));this.unmuted=!1;for(var n=t.steps,o=this,r=[],i=0;i\n \n
').concat(p("unmute"),"
\n ");else{var d="";t.sender&&t.sender.firstName&&(u=!0,d='
\n
\n
').concat(t.sender.firstName,"
\n
")),l="".concat(d,'
').concat(a.message,"
")}var f={disableActiveInteraction:!s&&!c,mode:a.mode,popover:Gr({description:l,popoverClass:"gleap-tour-popover-".concat(a.type," ").concat(!u&&"gleap-tour-popover-no-sender"," ").concat(t.allowClose&&"gleap-tour-popover-can-close")},s?{showButtons:[]}:{})};a.selector&&a.selector.length>0&&(f.element=a.selector),r.push(f)}var h=["next","close"];t.backButton&&h.push("previous"),this.gleapTourObj=Mr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({showProgress:!0,allowKeyboardControl:!1,steps:r},"showProgress",n.length>1),"allowClose",t.allowClose),"nextBtnText",t.nextText),"doneBtnText",t.doneText),"prevBtnText",t.prevText),"showButtons",h),"onHighlightStarted",(function(t,n,o){var r;e.currentActiveIndex=null==o||null===(r=o.state)||void 0===r?void 0:r.activeIndex,e.storeUncompletedTour()})),"onElementNotFound",(function(t){document.removeEventListener("click",v),e.onComplete(!1)})),"onDestroyStarted",(function(){e.gleapTourObj.hasNextStep()?e.onComplete(!1):e.onComplete(!0),document.removeEventListener("click",v)})),"onPopoverRender",(function(t){if(t)for(var n=document.querySelectorAll(".gleap-tour-popover-description img, .gleap-tour-popover-description video"),r=function(){setTimeout((function(){e.gleapTourObj.refresh()}),500),setTimeout((function(){e.gleapTourObj.refresh()}),750)},i=0;ie.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return go.translateText(e)||t}},{key:"_translateWithVars",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return go.translateTextWithVars(e,t)||n}},{key:"getCheckIcon",value:function(){return'\n \n '}},{key:"loadChecklist",value:function(){if(this._isSessionReady&&this._networkManager){var e=this.getAttribute("checklistId");e?(this.activeStep=-1,this._initialActiveSet=!1,this.validateChecklist(e)):(this.renderResponse(),this.checklistData=null,this._hasLoaded=!1)}}},{key:"getQueryParams",value:function(){var e=this._getGleapSessionInstance();if(null==e||!e.session)return"";var t=e.session,n="en";try{void 0!==go&&(n=go.getInstance().getActiveLanguage()||"en")}catch(o){}return"gleapId=".concat(t.gleapId||"","&gleapHash=").concat(t.gleapHash||"","&lang=").concat(n)}},{key:"makeRequest",value:function(e,t,n,o){var r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=new XMLHttpRequest;i.open(e,t);try{r.injectSession(i)}catch(a){}n&&i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.onreadystatechange=function(){4===i.readyState&&o(i)},i.onerror=function(){o(i)},i.send(n?JSON.stringify(n):null)}else o({readyState:4,status:0,responseText:"Session unavailable",_isMock:!0})}},{key:"validateChecklist",value:function(e){var t=this;if(this._isSessionReady&&this._networkManager){this.checklistData=null,this._hasLoaded=!1,this.renderResponse();var n=this.getAttribute("sharedKey");this._networkManager.validateChecklist(e,n).then((function(e){t.isConnected&&t._isSessionReady&&e&&t.fetchChecklist(e)})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1}))}}},{key:"fetchChecklist",value:function(e){var t=this;this._isSessionReady&&this._networkManager&&(this._isInitialLoad=!this._hasLoaded,this._networkManager.fetchChecklist(e).then((function(e){if(!t.isConnected||!t._isSessionReady||!e)return t._hasLoaded=!1,t.checklistData=null,void t._checkSessionAndLoad();if(t.checklistData=e,t._hasLoaded=!0,"done"!==e.status){if(t._isInitialLoad&&!t._initialActiveSet){var n,o=(null===(n=e.outbound)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.steps)||[],r=e.completedSteps||[],i=o.findIndex((function(e){return!r.includes(e.id)}));t.activeStep=i>=0?i:-1,-1!==t.activeStep&&(t._initialActiveSet=!0)}t.renderChecklist(t.checklistData)}else t.renderResponse()})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1})))}},{key:"updateChecklist",value:function(e,t){var n,o,r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=r.apiUrl;if(i){var a=r.session,s=null!==(n=null==a?void 0:a.gleapId)&&void 0!==n?n:"",c=null!==(o=null==a?void 0:a.gleapHash)&&void 0!==o?o:"",l="en";try{void 0!==go&&(l=go.getInstance().getActiveLanguage()||"en")}catch(d){}var u="".concat(i,"/outbound/checklists/").concat(e);t.checkedStep&&(u+="/increment/".concat(t.checkedStep)),u+="?gleapId=".concat(s,"&gleapHash=").concat(c,"&lang=").concat(l),this.makeRequest("PUT",u,t,(function(e){e._isMock||200!==e.status&&e.status}))}}}},{key:"handleChecklistUpdate",value:function(e){if(this._hasLoaded&&this.checklistData){var t=e.detail;if(t&&t.id===this.checklistData.id){var n=$r(this.checklistData.completedSteps||[]),o=!1,r=!1,i=this.activeStep;if(t.completedSteps&&JSON.stringify(t.completedSteps)!==JSON.stringify(n)&&(this.checklistData.completedSteps=$r(t.completedSteps),o=!0,-1!==i)){var a,s=null===(a=this.checklistData.outbound)||void 0===a||null===(a=a.config)||void 0===a||null===(a=a.steps)||void 0===a||null===(a=a[i])||void 0===a?void 0:a.id;s&&this.checklistData.completedSteps.includes(s)&&!n.includes(s)&&(r=!0)}if(t.status&&t.status!==this.checklistData.status&&(this.checklistData.status=t.status,o=!0),r){for(var c,l=(null===(c=this.checklistData.outbound)||void 0===c||null===(c=c.config)||void 0===c?void 0:c.steps)||[],u=-1,d=i+1;d1&&void 0!==arguments[1]?arguments[1]:"checklist-floating",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(null===(t=e.config)||void 0===t?void 0:t.steps)||[],a=(null===(n=this.checklistData)||void 0===n?void 0:n.completedSteps)||[],s=0;if(this.progressbarEnabled&&i.length>0){var c=i.length,l=a.length;s=c>0?l/c*100:0}var u,d,p=i.find((function(e){return!a.includes(e.id)})),f=i.length>0?p?p.title||this._translateWithVars("stepDefaultTitle",{index:i.indexOf(p)+1},"Step ".concat(i.indexOf(p)+1)):"":e.subject||"",h=i.length>0?p&&p.description||"":e.message||"";r&&(f=(null===(u=e.config)||void 0===u?void 0:u.successTitle)||"",h=(null===(d=e.config)||void 0===d?void 0:d.successMessage)||"",s=100);var v=2*Math.PI*7,g=v-s/100*v,m="checklist-floating-header"===o,b=m?'\n \n \n ':'\n \n ';return'\n
\n
\n
\n \n \n \n \n
\n
').concat(f,"
\n ").concat(r?"":''.concat(b,""),'\n
\n
').concat(h,"
\n
\n ")}},{key:"renderInfoSection",value:function(e){var t;if(!this.infoEnabled||!e)return"";var n=e.subject||this._translate("checklistDefaultTitle","Checklist"),o=e.message||"",r="";return null!==(t=e.sender)&&void 0!==t&&t.profileImageUrl&&(r='\n
\n ').concat(e.sender.firstName||\n ').concat(e.sender.firstName||"","\n
")),'\n
\n '.concat(n?'
'.concat(n,"
"):"","\n ").concat(o?'
'.concat(o,"
"):"","\n ").concat(r,"\n
")}},{key:"renderProgressSection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!this.progressbarEnabled||!e.length)return"";var n=e.length,o=t.length,r=n>0?o/n*100:0,i=0;e.forEach((function(e){!t.includes(e.id)&&e.duration>0&&(i+=e.duration)}));var a=this._translateWithVars("taskProgress",{a:o,b:n},"".concat(o," of ").concat(n," done")),s=i>0?this._translateWithVars("aboutMinutes",{a:i},"About ".concat(i," min left")):"";return'\n
\n
'.concat(a,"
\n ").concat(s?'
'.concat(s,"
"):"",'\n
\n
\n
\n
')}},{key:"renderTasks",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&0!==t.length?t.map((function(t,o){var r=n.includes(t.id),i=e.activeStep===o,a=r?''.concat(e.getCheckIcon(),""):''.concat(o+1,""),s=t.title||e._translateWithVars("stepDefaultTitle",{index:o+1},"Step ".concat(o+1)),c=t.description||"",l=t.actionTitle||e._translate("actionDefaultTitle","Action"),u=t.action&&"none"!==t.action?'
\n \n
"):"",d=e._translate("markAsDone","Mark as done"),p=t.allowMarkDone&&!r?'
\n ').concat(e.getCheckIcon(),'\n
').concat(d,"
\n
"):"",f=["checklist-task",r?"checklist-task--done":"",i?"checklist-task--active":""].filter(Boolean).join(" ");return'\n
\n
\n ').concat(a,'\n
').concat(s,'
\n \n \n \n \n \n
\n
\n
\n ').concat(c?'
'.concat(c,"
"):"","\n ").concat(u,"\n ").concat(p,"\n
\n
\n
")})).join(""):"

".concat(this._translate("noStepsDefined","No steps defined."),"

")}},{key:"renderChecklist",value:function(e){var t;if(this._hasLoaded&&e&&e.outbound){var n=e.outbound,o=(null===(t=n.config)||void 0===t?void 0:t.steps)||[],r=e.completedSteps||[],i="";if("done"===e.status||o.length>0&&r.length>=o.length){var a,s,c=(null===(a=n.config)||void 0===a?void 0:a.successTitle)||"",l=(null===(s=n.config)||void 0===s?void 0:s.successMessage)||"";i=this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-launcher",!0):'\n
\n
\n '.concat(this.getCheckIcon(),'\n
\n
').concat(c,'
\n
').concat(l,"
\n
"),-1!==this.activeStep&&(this.activeStep=-1)}else i='\n
\n '.concat(this.floatingEnabled?"":this.renderInfoSection(n),"\n ").concat(this.floatingEnabled?"":this.renderProgressSection(o,r),"\n ").concat(this.floatingEnabled?this.renderFloatingLauncher(n):"",'\n
\n ').concat(this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-header"):"","\n ").concat(this.renderTasks(o,r),"\n
\n
");var u=ut.getInstance().getFlowConfig(),d=u.color?u.color:"#485BFF",p="\n \n ');this.shadowRoot.innerHTML=p+i,this.addTaskEventListeners(),this.floatingEnabled&&this.addFloatingClickListeners(),-1!==this.activeStep&&this.toggleTask(this.activeStep,!0)}else this._checkSessionAndLoad()}},{key:"updateActiveTaskMaxHeight",value:function(){if(-1!==this.activeStep){var e=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body-inner')),t=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body'));if(e&&t){var n=e.offsetHeight;t.style.setProperty("--task-body-active-height","".concat(n,"px"))}}}},{key:"addTaskEventListeners",value:function(){var e=this;this.shadowRoot.querySelectorAll(".checklist-task").forEach((function(t){var n=t.querySelector(".checklist-task-header"),o=parseInt(t.getAttribute("data-task-index"),10);n&&n.addEventListener("click",(function(){var t=e.activeStep===o?-1:o;e.setActiveStep(t)}));var r=t.querySelector(".checklist-task-body-markdone");r&&r.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps){var r=e.checklistData.outbound.config.steps[o];if(r){var i=e.activeStep;if(e.checklistData.completedSteps||(e.checklistData.completedSteps=[]),!e.checklistData.completedSteps.includes(r.id)){e.checklistData.completedSteps.push(r.id);var a=e.checklistData.outbound.config.steps,s=-1;if(i===o){for(var c=o+1;c0&&e.checklistData.completedSteps.length>=a.length&&(e.checklistData.status="done",l.status="done"),e.updateChecklist(e.checklistData.id,l)}}}}));var i=t.querySelector(".checklist-task-body-action .action-button");i&&i.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps&&void 0!==ki){var r=e.checklistData.outbound.config.steps[o];if(r&&r.action&&"none"!==r.action)try{"BOT"===r.action?ki.startBot(r.botId):"CUSTOM_ACTION"===r.action?ki.triggerCustomAction(r.actionBody):"REDIRECT_URL"===r.action?ki.openURL(r.actionBody,!!r.actionOpenInNewTab):"FEEDBACK_FLOW"===r.action?ki.startFeedbackFlow(r.formId):"NEWS_ARTICLE"===r.action?ki.openNewsArticle(r.articleId):"HELP_ARTICLE"===r.action?ki.openHelpCenterArticle(r.articleId):"CHECKLIST"===r.action&&ki.startChecklist(r.checklistId,!0,null==r?void 0:r.sharedKey)}catch(i){}}}))}))}},{key:"setActiveStep",value:function(e){var t=this,n=this.activeStep;this.activeStep=e;var o=[];-1!==n&&n!==this.activeStep&&o.push({index:n,open:!1}),-1!==this.activeStep&&this.activeStep!==n&&o.push({index:this.activeStep,open:!0}),o.forEach((function(e){var n=e.index,o=e.open;t.toggleTask(n,o)}))}},{key:"toggleTask",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(e,'"]'));if(n){var o=n.querySelector(".checklist-task-header");if(o){var r=n.classList.contains("checklist-task--active"),i=null!==t?t:!r;if(i&&!r){n.classList.add("checklist-task--active"),o.setAttribute("aria-expanded","true");var a=n.querySelector(".checklist-task-body-inner");if(a){var s=a.offsetHeight,c=n.querySelector(".checklist-task-body");c&&c.style.setProperty("--task-body-active-height","".concat(s,"px"))}}else!i&&r&&(n.classList.remove("checklist-task--active"),o.setAttribute("aria-expanded","false"))}}}}],r=[{key:"observedAttributes",get:function(){return["checklistId","info","progressbar","dark","floating","sharedKey"]}}],o&&ti(n.prototype,o),r&&ti(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ri(HTMLElement));"undefined"==typeof customElements||customElements.get("gleap-checklist")||customElements.define("gleap-checklist",e)}}();var gi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hi(this,"initialized",!1),hi(this,"offlineMode",!1),hi(this,"disablePageTracking",!1),hi(this,"disableInAppNotifications",!1),hi(this,"globalData",{screenRecordingData:null,webReplay:null,snapshotPosition:{x:0,y:0}}),"undefined"!=typeof window&&(Yt.getInstance(),on.getInstance().start(),dn.getInstance().start(),xr.getInstance().start())}var t,n,o;return t=e,n=[{key:"isLiveMode",value:function(){if(!0===this.offlineMode)return!1;var e=window.location.hostname;return!(["localhost","127.0.0.1","0.0.0.0","","::1"].includes(e)||e.startsWith("192.168.")||e.startsWith("10.0.")||e.endsWith(".local")||!e.includes("."))}},{key:"softReInitialize",value:function(){Gt.getInstance().destroy(),ut.getInstance().start().then((function(){a.getInstance().refresh(),Ao.getInstance().injectNotificationUI()})).catch((function(e){console.warn("Failed to initialize Gleap.")}))}},{key:"performActions",value:function(t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"INFO";on.getInstance().addLog(e,t)}},{key:"initialize",value:function(t){var n=this.getInstance();if(n.initialized)console.warn("Gleap already initialized.");else{n.initialized=!0;try{!function(){try{if("visualViewport"in window&&/iPad|iPhone|iPod/.test(navigator.userAgent)){var e=function(){try{var e=document.querySelector(".gleap-frame-container-inner iframe");if(!e)return;window.visualViewport.height1&&void 0!==arguments[1]&&arguments[1];Gt.getInstance().urlHandler(e,t)}},{key:"checkForUrlParams",value:function(){if("undefined"!=typeof window&&window.location.search)try{var t=new URLSearchParams(window.location.search),n=t.get("gleap_widget");n&&n.length>0&&e.open();var o=t.get("gleap_conversation");o&&o.length>0&&("true"===o?e.startConversation(!0):e.startBot(o,!0));var r=t.get("gleap_feedback");r&&r.length>0&&e.startFeedbackFlow(r);var i=t.get("gleap_survey"),a=t.get("gleap_survey_format");i&&i.length>0&&e.showSurvey(i,"survey_full"===a?"survey_full":"survey");var s=t.get("gleap_tour");if(s&&s.length>0){var c=parseInt(t.get("gleap_tour_delay"));isNaN(c)&&(c=2),setTimeout((function(){e.startProductTour(s)}),1e3*c)}}catch(l){}}},{key:"destroy",value:function(){Zn.getInstance().stop(),rt.getInstance().stop(),Gt.getInstance().destroy(),a.getInstance().toggleFeedbackButton(!1),Ao.getInstance().clearAllNotifications(!0),$e.getInstance().clearSession(0,!1),_o.getInstance().removeBannerUI()}},{key:"closeBanner",value:function(){_o.getInstance().removeBannerUI()}},{key:"closeModal",value:function(){Go.getInstance().hideModal()}},{key:"setUseCookies",value:function(e){$e.getInstance().useCookies=e}},{key:"identify",value:function(e,t,n){return $e.getInstance().identifySession(e,k(t),n)}},{key:"updateContact",value:function(e){return $e.getInstance().updateSession(k(e))}},{key:"clearIdentity",value:function(){$e.getInstance().clearSession()}},{key:"getIdentity",value:function(){return $e.getInstance().getSession()}},{key:"isUserIdentified",value:function(){var e=$e.getInstance().session;return!!(e&&e.userId&&e.userId.length>0)}},{key:"isOpened",value:function(){return Gt.getInstance().isOpened()}},{key:"hide",value:function(){Gt.getInstance().hideWidget()}},{key:"setMaxNetworkRequests",value:function(e){b.getInstance().setMaxRequests(e)}},{key:"startNetworkLogger",value:function(){b.getInstance().start()}},{key:"setNetworkLogsBlacklist",value:function(e){b.getInstance().setBlacklist(e)}},{key:"setNetworkLogPropsToIgnore",value:function(e){b.getInstance().setFilters(e)}},{key:"setReplayOptions",value:function(e){Zn.getInstance().setOptions(e)}},{key:"close",value:function(){Gt.getInstance().hideWidget()}},{key:"open",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().showWidget()}},{key:"trackEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"logEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"preFillForm",value:function(e){var t=k(e);Lo.getInstance().formPreFill=t,Gt.getInstance().sendMessage({name:"prefill-form-data",data:t},!0)}},{key:"on",value:function(e,t){kn.on(e,t)}},{key:"enableShortcuts",value:function(e){e?ko.getInstance().start():ko.getInstance().stop()}},{key:"showFeedbackButton",value:function(e){a.getInstance().toggleFeedbackButton(e)}},{key:"setAppVersionCode",value:function(e){Yt.setAppVersionCode(e)}},{key:"setAppBuildNumber",value:function(e){Yt.setAppBuildNumber(e)}},{key:"setWSApiUrl",value:function(e){$e.getInstance().wsApiUrl=e}},{key:"setApiUrl",value:function(e){$e.getInstance().apiUrl=e}},{key:"setBannerUrl",value:function(e){_o.getInstance().setBannerUrl(e)}},{key:"setModalUrl",value:function(e){Go.getInstance().setModalUrl(e)}},{key:"setFrameUrl",value:function(e){Gt.getInstance().frameUrl=e}},{key:"setTicketAttribute",value:function(e,t){gn.getInstance().setTicketAttribute(e,t)}},{key:"unsetTicketAttribute",value:function(e){gn.getInstance().unsetTicketAttribute(e)}},{key:"clearTicketAttributes",value:function(){gn.getInstance().clearTicketAttributes()}},{key:"attachCustomData",value:function(e){gn.getInstance().attachCustomData(e)}},{key:"setCustomData",value:function(e,t){gn.getInstance().setCustomData(e,t)}},{key:"removeCustomData",value:function(e){gn.getInstance().removeCustomData(e)}},{key:"clearCustomData",value:function(){gn.getInstance().clearCustomData()}},{key:"playSound",value:function(e){Yo.playSound(e)}},{key:"showTabNotificationBadge",value:function(e){var t=Ao.getInstance();t.showNotificationBadge=e,t.updateTabBarNotificationCount()}},{key:"setLanguage",value:function(t){go.getInstance().setOverrideLanguage(t),e.getInstance().initialized&&setTimeout((function(){e.getInstance().softReInitialize(),e.updateContact({lang:t})}),1e3)}},{key:"registerCustomAction",value:function(e){En.registerCustomAction(e)}},{key:"triggerCustomAction",value:function(e){En.triggerCustomAction(e)}},{key:"setStyles",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#ffffff",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:20,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:20,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:a.FEEDBACK_BUTTON_BOTTOM_LEFT;L((function(){!function(e,t,n,o,r,i,s,c){var l=d(e),p=d(n),f=d(r),h=d(t),v="#ffffff"===f,g=u(t,"#ffffff"===h?-35:-15),m=u(r,v?100:-120),b=u(r,v?30:-12),y=u(r,v?80:-30),w=(o=parseInt(o,10),Math.round(1.05*o)),k=Math.round(.8*o),x=Math.round(.6*o),S=Math.round(.4*o),C=Math.round(.25*o),I=57+s;c===a.FEEDBACK_BUTTON_CLASSIC_BOTTOM?I=s+15:(c&&c.includes("CLASSIC")||c===a.FEEDBACK_BUTTON_NONE)&&(I=s);var L='\n .gleap-font, .gleap-font * {\n font-style: normal;\n font-variant-caps: normal;\n font-variant-ligatures: normal;\n font-variant-numeric: normal;\n font-variant-east-asian: normal;\n font-weight: normal;\n font-stretch: normal;\n font-size: 100%;\n line-height: 1;\n font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n }\n .gleap-input-highlight {\n box-shadow: 0 0 0 3px '.concat(e," !important;\n }\n .gleap-frame-container {\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n width: calc(100% - 40px);\n max-width: 410px;\n position: fixed;\n z-index: ").concat(2147483631,";\n visibility: visible;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.16);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n animation-duration: .3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n user-select: none;\n pointer-events: none;\n transition: max-width 0.3s ease-out;\n }\n\n .gleap-admin-highlight {\n box-shadow: 0px 0px 0px 4px red;\n }\n\n :root {\n --gleap-margin-top: 50px;\n }\n\n .gleap-tooltip-anchor {\n position: relative;\n display: inline-block;\n float: left;\n max-width: 0px;\n width: 17px;\n }\n\n .gleap-tooltip-hotspot {\n position: absolute;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n }\n\n @keyframes gleap-pulse {\n 0% {\n transform: scale(0);\n opacity: 0.25;\n }\n 45% {\n transform: scale(2.5);\n opacity: 0;\n }\n 100% {\n transform: scale(0);\n opacity: 0;\n }\n }\n\n .gleap-tooltip-hotspot-animation {\n position: absolute;\n border-radius: 17px;\n opacity: 0.25;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n animation: gleap-pulse 5s infinite;\n }\n\n .gleap-tooltip-hotspot svg {\n width: 17px;\n height: 17px;\n object-fit: contain;\n display: block;\n }\n\n .gleap-tooltip-inner {\n position: relative;\n overflow: visible;\n font-size: 14px;\n font-weight: normal;\n color: #000;\n line-height: 1.3;\n }\n\n .gleap-tooltip {\n position: absolute;\n background-color: #fff;\n color: #000;\n font-size: 15px;\n line-height: 18px;\n padding: 16px;\n padding-top: 8px;\n padding-bottom: 8px;\n border-radius: 4px;\n max-width: min(350px, 80vw);\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.2s, visibility 0.2s;\n z-index: ").concat(2147483700,";\n }\n\n .gleap-tooltip a {\n color: ").concat(e,";\n text-decoration: underline;\n display: inline !important;\n margin: 0px !important;\n padding: 0px !important;\n word-break: break-word;\n }\n\n .gleap-tooltip ul {\n padding-left: 16px;\n }\n\n .gleap-tooltip b {\n font-weight: 600;\n }\n\n .gleap-tooltip h2 {\n font-size: 18px;\n line-height: 20px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip h3 {\n font-size: 16px;\n line-height: 18px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip p {\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip img {\n max-width: 100%;\n max-height: 300px;\n width: 100%;\n height: auto;\n object-fit: cover;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip iframe,\n .gleap-tooltip video {\n max-width: 100%;\n width: 100%;\n height: auto;\n min-height: 200px;\n display: block;\n border: none;\n outline: none;\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip-arrow {\n position: absolute;\n width: 20px;\n height: 20px;\n }\n\n .gleap-tooltip-arrow svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n\n .gleap-b-frame {\n width: 100%;\n height: 100%;\n border: none;\n pointer-events: auto;\n padding: 0px;\n margin: 0px;\n }\n\n .gleap-b-shown {\n transition: margin 0.3s ease-out;\n margin-top: var(--gleap-margin-top);\n position: relative;\n z-index: 10000;\n }\n\n .gleap-b-f {\n margin-top: 0px;\n }\n\n .gleap-b {\n display: none;\n position: absolute;\n top: calc(-1 * var(--gleap-margin-top));\n left: 0px;\n width: 100vw;\n height: var(--gleap-margin-top);\n z-index: ").concat(2147483699,";\n }\n\n @keyframes gleapSlideIn {\n from {\n top: calc(-1 * var(--gleap-margin-top));\n }\n to {\n top: 10px;\n }\n }\n\n .gleap-b-f .gleap-b {\n position: fixed;\n top: 10px;\n animation: gleapSlideIn .25s ease-out forwards;\n max-width: 800px;\n width: calc(100% - 20px);\n left: 50%;\n z-index: ").concat(2147483699,";\n transform: translateX(-50%);\n border-radius: ").concat(S,"px;\n overflow: hidden;\n box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15), 0px 5px 5px rgba(0, 0, 0, 0.05);\n }\n\n .gleap-b-shown .gleap-b {\n display: block;\n }\n\n .gleap-image-view {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n z-index: ").concat(2147483699,";\n background-color: ").concat(f,"cc;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-image-view-image {\n width: 90%;\n height: auto;\n max-width: 90%;\n max-height: 90%;\n object-fit: contain;\n }\n\n .gleap-image-view-close {\n position: fixed;\n top: 20px;\n right: 20px;\n width: 32px;\n height: 32px;\n opacity: 0.8;\n z-index: ").concat(2147483740,";\n box-shadow: 0px 5px 18px rgba(0, 0, 0, 0.16);\n cursor: pointer;\n }\n\n .gleap-image-view-close:hover {\n opacity: 1;\n }\n\n .gleap-image-view-close svg path {\n fill: ").concat(r,";\n }\n\n [dir=rtl].gleap-frame-container {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,'px;\n }\n\n .gleap-frame-container--loading iframe {\n opacity: 0;\n }\n\n .gleap-frame-container--loading::before {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 130deg,\n ').concat(g," 0%,\n ").concat(t,' 100%\n );\n }\n \n .gleap-frame-container--loading::after {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 180deg,\n transparent 60%,\n ').concat(r,"1A 70%,\n ").concat(r," 100%\n );\n }\n\n .gleap-frame-container--loading-nogradient::before {\n max-height: 340px;\n background: ").concat(t," !important;\n }\n\n .gleap-frame-container--loading-nofade::after {\n display: none !important;\n }\n\n .gleap-frame-container--survey {\n bottom: ").concat(s,"px !important;\n }\n\n .gleap-frame-container--extended {\n max-width: 690px !important;\n }\n\n .gleap-frame-container--survey-full {\n position: fixed;\n top: 0 !important;\n left: 0 !important;\n bottom: 0 !important;\n right: 0 !important;\n width: 100vw !important;\n max-width: 100vw !important;\n height: 100vh !important;\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(6px);\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n max-height: 100vh !important;\n border-radius: 0 !important;\n animation-name: none !important;\n }\n\n .gleap-frame-container--survey-full .gleap-frame-container-inner {\n max-width: 640px !important;\n width: calc(100% - 24px);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n }\n\n .gleap-frame-container--classic {\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--classic-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--modern-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n [dir=rtl].gleap-frame-container--modern-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n .gleap-frame-container--animate {\n pointer-events: auto !important;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n @keyframes gleapFadeInUpMobile {\n from {\n opacity: 0;\n transform: translate3d(0, 10%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n .gleap-notification-container {\n position: fixed;\n bottom: ").concat(I,"px;\n right: ").concat(i,"px;\n z-index: ").concat(2147483630,";\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n width: 100%;\n max-width: min(340px, 80vw);\n }\n\n .gleap-notification-container--left {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container--left {\n left: initial !important;\n right: ").concat(i,"px !important;\n align-items: flex-start !important;\n }\n\n .gleap-notification-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n .gleap-notification-item {\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n .gleap-notification-close {\n border-radius: 100%;\n width: 28px;\n height: 28px;\n background-color: ").concat(m,";\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 8px;\n cursor: pointer;\n visibility: hidden;\n pointer-events: none;\n }\n\n .gleap-notification-container:hover .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n }\n\n .gleap-notification-close svg {\n width: 45%;\n height: 45%;\n object-fit: contain;\n fill: ").concat(r,";\n }\n\n .gleap-notification-item-checklist-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n cursor: pointer;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-checklist-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n width: 100%;\n width: min(310px, 70vw);\n max-width: min(310px, 70vw);\n }\n\n .gleap-notification-item-checklist-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 10px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-checklist-content-progress {\n width: 100%;\n height: 8px;\n border-radius: 8px;\n background-color: ").concat(b,";\n }\n\n .gleap-notification-item-checklist-content-progress-inner {\n height: 100%;\n border-radius: 8px;\n background-color: ").concat(e,";\n }\n\n .gleap-notification-item-checklist-content-next {\n color: ").concat(m,";\n font-size: 15px;\n font-weight: normal;\n line-height: 21px;\n margin-top: 10px;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n }\n\n .gleap-notification-item-checklist-content-next svg {\n height: 18px;\n margin-right: 5px;\n width: auto;\n }\n\n .gleap-notification-item-checklist-content-next b {\n font-size: 15px;\n font-weight: normal;\n color: ").concat(f,";\n }\n\n .gleap-notification-item-news {\n width: 100%;\n }\n\n .gleap-news-pagination {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 10px;\n width: 100%;\n }\n\n .gleap-news-page-indicator {\n font-size: 12px;\n color: ").concat(m,";\n }\n\n .gleap-news-next-button {\n background-color: ").concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 5px 10px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;^\n }\n\n .gleap-notification-item-news-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n }\n\n .gleap-notification-item-news-preview {\n color: ").concat(m,";\n font-size: 14px;\n line-height: 21px;\n font-weight: 400;\n overflow-wrap: break-word;\n word-break: break-word;\n display: block;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-news-sender {\n display: flex;\n align-items: center;\n color: ").concat(m,";\n font-size: 15px;\n line-height: 21px;\n font-weight: 400;\n }\n \n .gleap-notification-item-news-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 6px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n cursor: pointer;\n }\n\n .gleap-notification-item-news-sender img {\n border-radius: 100%;\n height: 20px;\n margin-right: 8px;\n object-fit: cover;\n width: 20px;\n }\n\n [dir=rtl] .gleap-notification-item-news-sender img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-news-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-news-image {\n background-color: ").concat(m,";\n height: 170px;\n max-height: 170px;\n object-fit: cover;\n width: 100%;\n cursor: pointer;\n }\n \n .gleap-notification-item-news-content-title:hover {\n color: ").concat(e,";\n }\n\n .gleap-notification-item {\n display: flex;\n align-items: flex-end;\n cursor: pointer;\n }\n\n .gleap-notification-item img {\n width: 32px;\n height: 32px;\n min-width: 32px;\n border-radius: 100%;\n object-fit: cover;\n margin-right: 8px;\n margin-bottom: 12px;\n cursor: pointer;\n }\n\n [dir=rtl] .gleap-notification-item img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-container {\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n border-bottom-left-radius: 0px;\n padding: 20px;\n background-color: ").concat(r,";\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 15px;\n line-height: 21px;\n color: ").concat(f,';\n position: relative;\n }\n\n .gleap-notification-item-container::after {\n content: " ";\n position: absolute;\n bottom: 0px;\n width: 0px;\n height: 0px;\n left: -6px;\n border-style: solid;\n border-width: 0px 0px 10px 6px;\n border-color: transparent transparent ').concat(r,";\n }\n\n .gleap-notification-item-sender {\n color: ").concat(m,";\n line-height: 20px;\n }\n\n .gleap-notification-item-content {\n line-height: 20px;\n color: ").concat(f,";\n margin-top: 4px;\n min-width: min(200px, 50vw);\n word-wrap: break-word;\n word-break: break-word;\n }\n\n .gleap-frame-container-inner {\n position: relative;\n width: 100%;\n height: calc(100vh - ").concat(130+s,"px);\n max-height: ").concat(700,'px;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: calc(100vh - 40px);\n }\n \n .gleap-frame-container-inner:before {\n content: " ";\n position: absolute;\n width: 100%;\n height: calc(100% - ').concat(k,"px);\n top: ").concat(k,"px;\n background-color: ").concat(r,";\n z-index: -1;\n }\n \n .gleap-frame-container iframe {\n height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n display: block !important;\n pointer-events: auto !important;\n }\n \n .gleap-frame-container--hidden {\n display: none !important;\n pointer-events: none;\n animation: none !important;\n }\n \n .bb-feedback-button {\n margin: 0px;\n position: fixed;\n bottom: ").concat(s,"px;\n right: ").concat(i,"px;\n border-radius: 30px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n color: #000000;\n z-index: ").concat(2147483630,";\n box-sizing: border-box;\n display: flex;\n align-items: center;\n padding: 0px;\n }\n\n [dir=rtl].bb-feedback-button {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n \n .bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n\n [dir=rtl].bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: ").concat(i,'px;\n left: auto;\n }\n \n .bb-feedback-button--disabled {\n display: none !important;\n }\n\n .bb-feedback-button--hidden {\n display: none !important;\n }\n \n .bb-feedback-button-text {\n padding: 8px 12px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n background-color: #fff;\n border-radius: 8px;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.15);\n position: relative;\n z-index: 99;\n }\n \n .bb-feedback-button-text:before {\n content: "";\n position: absolute;\n box-shadow: rgba(0, 0, 0, 0.04) 6px 6px 5px;\n transform: rotate(315deg);\n bottom: 16px;\n right: -4px;\n border-width: 10px;\n border-style: solid;\n border-color: transparent #fff #fff transparent;\n }\n \n .bb-feedback-button--bottomleft .bb-feedback-button-text:before {\n display: none;\n }\n \n .bb-feedback-button-text:after {\n content: "";\n position: absolute;\n bottom: 12px;\n right: 0px;\n background-color: #fff;\n width: 5px;\n height: 30px;\n }\n \n .bb-feedback-button-text-title {\n font-family: sans-serif;\n font-size: 14px;\n color: #666;\n line-height: 18px;\n max-width: 220px;\n }\n \n .bb-feedback-button-text-title b {\n color: #000000;\n font-weight: 600;\n }\n\n .bb-notification-bubble {\n position: absolute;\n top: -5px;\n right: -5px;\n min-width: 12px;\n padding: 0px 4px;\n height: 20px;\n min-width: 20px;\n border-radius: 20px;\n background-color: red;\n color: #fff;\n font-size: 11px;\n font-family: sans-serif;\n text-align: center;\n line-height: 20px;\n }\n\n .bb-notification-bubble--hidden {\n display: none;\n }\n \n .bb-feedback-button-icon {\n width: 48px;\n height: 48px;\n border-radius: 48px;\n background-color: #485bff;\n transition: box-shadow, transform 0.2s ease-in-out;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n position: relative;\n }\n \n .bb-feedback-button-classic {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n top: 50%;\n right: 0px;\n position: fixed;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n padding: 9px 20px;\n text-align: center;\n background-color: #485bff;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n font-family: sans-serif;\n font-size: 16px;\n color: #fff;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.25);\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n \n .bb-feedback-button-classic--left {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--left {\n top: 50%;\n right: 0px;\n left: auto;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n }\n \n .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n right: ').concat(i,"px;\n left: auto;\n }\n \n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n left: ").concat(i,"px;\n right: auto;\n }\n\n .bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n \n .bb-feedback-button--open.bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeOutRight;\n }\n \n .bb-feedback-button .bb-logo-logo {\n position: absolute;\n width: 30px;\n height: 30px;\n top: 9px;\n left: 9px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n position: absolute;\n width: 14px;\n height: 14px;\n top: 17px;\n left: 17px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button--open .bb-logo-arrowdown {\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button--open .bb-logo-logo {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button-icon:hover {\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25), 0px 0px 20px rgba(0, 0, 0, 0.2);\n transform: scale(1.1);\n }\n \n .bb-feedback-button--open .bb-feedback-button-text {\n animation-name: bbFadeOutDown;\n }\n \n .bb-feedback-button--open .bb-feedback-button-icon {\n display: flex;\n }\n \n .bb-capture-svg {\n position: fixed;\n z-index: ").concat(2147483614,";\n top: 0px;\n left: 0px;\n right: 0px;\n width: 100%;\n height: 100%;\n padding: 0px;\n margin: 0px;\n cursor: crosshair;\n }\n\n .bb-capture-svg--preview {\n cursor: auto !important;\n }\n \n .bb-rec-on-circle {\n animation-name: bbRecIconFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-rec-on-cont {\n animation-name: bbRecIconContFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-capture-editor-drag-info {\n position: fixed;\n top: -200px;\n left: 0px;\n z-index: ").concat(2147483616,";\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-editor-drag-info svg {\n width: 24px;\n height: 24px;\n }\n \n .bb-capture-editor-borderlayer {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n border: 4px solid ").concat(e,";\n cursor: crosshair;\n z-index: ").concat(2147483610,";\n box-sizing: border-box;\n pointer-events: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-borderlayer {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n .bb-capture-editor-recording .bb-capture-editor-borderlayer {\n border: 4px solid #eb144c !important;\n }\n \n .bb-capture-editor-recording .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-editor-item-inactive {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-toolbar-drawingitem {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-svg {\n pointer-events: none !important;\n }\n \n .bb-capture-toolbar {\n position: fixed;\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,";\n background-color: #fff;\n padding: 5px;\n display: flex;\n align-items: center;\n border-radius: 8px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-dismiss {\n position: fixed;\n top: 0px;\n right: 0px;\n z-index: ").concat(2147483618,";\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n width: 36px;\n height: 36px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: ").concat(e,";\n border-bottom-left-radius: ").concat(C,"px;\n }\n\n [dir=rtl] .bb-capture-dismiss {\n top: 0px;\n left: 0px;\n right: auto;\n border-bottom-left-radius: 0px !important;\n border-bottom-right-radius: ").concat(C,"px;\n }\n \n .bb-capture-dismiss svg path {\n fill: ").concat(l,';\n }\n \n .bb-capture-dismiss svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n \n .bb-capture-button-next {\n font-family: sans-serif;\n box-sizing: border-box;\n font-weight: 600;\n text-align: center;\n width: auto;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n margin: 0px;\n line-height: 36px;\n padding: 0px 12px;\n font-size: 15px;\n margin-left: 12px;\n }\n\n [dir=rtl].bb-capture-editor .bb-capture-button-next {\n margin-left: auto;\n margin-right: 12px;\n }\n \n .bb-capture-toolbar-item-spacer {\n width: 1px;\n height: 38px;\n min-width: 1px;\n margin: 0px 5px;\n }\n \n .bb-capture-toolbar-item {\n width: 42px;\n height: 38px;\n min-width: 42px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n position: relative;\n margin-right: 5px;\n }\n\n .drag-handle-item {\n cursor: grab !important;\n width: 34px;\n min-width: 34px;\n }\n\n .drag-handle-item svg {\n width: 18px !important;\n height: 18px !important;\n }\n \n .bb-capture-toolbar-item svg {\n width: 23px;\n height: 23px;\n object-fit: contain;\n }\n \n .bb-capture-toolbar-item-selectedcolor {\n border-radius: 100%;\n width: 20px;\n height: 20px;\n background-color: #db4035;\n }\n \n .bb-capture-toolbar-item[data-type="undo"] svg {\n width: 18px;\n height: 18px;\n }\n \n .bb-capture-toolbar-item[data-active="true"] {\n position: relative;\n }\n \n .bb-capture-preview {\n display: none;\n background-color: rgba(0, 0, 0, 0.6);\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n justify-content: center;\n align-items: center;\n z-index: ').concat(2147483620,";\n }\n \n .bb-capture-preview-inner {\n background-color: #fff;\n padding: 0px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n flex-direction: column;\n max-width: 640px;\n width: 100%;\n margin: 20px;\n }\n \n .bb-capture-preview-inner video {\n border-radius: 8px 8px 0px 0px;\n display: block;\n border: 0px;\n outline: none;\n width: 100%;\n max-height: 60vh;\n }\n \n .bb-capture-preview-buttons {\n display: flex;\n justify-content: space-between;\n padding: 14px;\n }\n \n .bb-capture-preview-retrybutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-sendbutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-retrybutton:hover,\n .bb-capture-preview-sendbutton:hover {\n opacity: 0.9;\n }\n \n .bb-capture-toolbar-item-recording {\n margin-right: 0px;\n }\n \n .bb-capture-toolbar-item-recording svg {\n width: 33px;\n height: 33px;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n position: fixed;\n top: 70px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,';\n background-color: #fff;\n display: none;\n padding: 10px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n }\n \n .bb-capture-toolbar-item-color {\n width: 20px;\n height: 20px;\n border-radius: 100%;\n margin-right: 12px;\n box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-toolbar-item-color:hover {\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);\n }\n \n .bb-capture-toolbar-item-color:last-of-type {\n margin-right: 0px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color {\n margin-right: auto;\n margin-left: 12px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color:last-of-type {\n margin-right: auto;\n margin-left: 0px;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:first-of-type {\n display: none;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:nth-of-type(2) {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:first-of-type {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:nth-of-type(2) {\n display: none;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #eee;\n }\n \n .bb-capture-toolbar-item:hover svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #f8f8f8;\n }\n \n .bb-capture-toolbar-item--active svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--inactivecross::before {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 3px;\n width: 26px;\n margin: auto;\n border-radius: 4px;\n background-color: #e80000;\n transform: rotate(45deg);\n }\n \n .bb-capture-toolbar-item--inactivecross svg {\n fill: #eee;\n }\n \n .bb-capture-toolbar-item-timer {\n text-align: left;\n line-height: 32px;\n font-size: 14px;\n font-family: sans-serif;\n margin: 5px;\n min-width: 40px;\n display: none;\n }\n \n .bb-capture-toolbar-item .bb-tooltip {\n background-color: #555;\n color: #fff;\n visibility: hidden;\n font-size: 14px;\n font-family: sans-serif;\n text-align: center;\n padding: 5px 10px;\n position: absolute;\n z-index: 1;\n top: 45px;\n left: 0px;\n transform: translateX(calc(-50% + 21px));\n opacity: 0;\n transition: opacity 0.3s;\n white-space: nowrap;\n }\n \n .bb-capture-toolbar-item .bb-tooltip::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n transform: rotate(180deg);\n border-color: #555 transparent transparent transparent;\n }\n \n .bb-capture-toolbar-item:hover .bb-tooltip {\n visibility: visible;\n opacity: 1;\n }\n \n .bb-capture-options {\n display: none;\n }\n \n .bb-capture-options--active {\n display: flex;\n }\n\n @keyframes bbFadeOutRight {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbFadeOutDown {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n }\n \n @keyframes bbFadeInOpacity {\n from {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n @keyframes bbZoomOut {\n from {\n opacity: 1;\n }\n \n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbZoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n 50% {\n opacity: 1;\n }\n }\n \n @keyframes bbRecIconContFade {\n 0% {\n fill: #b10802;\n }\n 50% {\n fill: #ff0000;\n }\n 100% {\n fill: #b10802;\n }\n } \n .bb-capture-preview-retrybutton {\n color: ').concat(f,";\n border-radius: ").concat(w,"px;\n background-color: ").concat(b,";\n }\n .bb-capture-preview-retrybutton:hover {\n background-color: ").concat(y,";\n }\n @keyframes bb-suc-fill {\n 100% {\n box-shadow: inset 0px 0px 0px 30px ").concat(e,";\n }\n }\n .bb-capture-toolbar-item-spacer {\n background-color: ").concat(b,";\n }\n .bb-tooltip {\n border-radius: ").concat(S,"px;\n }\n @keyframes bbRecIconFade {\n 0% {\n fill: transparent;\n }\n 50% {\n fill: ").concat(y,";\n }\n 100% {\n fill: transparent;\n }\n }\n .bb-capture-preview-sendbutton {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(w,"px;\n }\n .bb-capture-button-next {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(C,"px;\n }\n .bb-capture-preview-inner {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-timer {\n color: ").concat(m,";\n }\n .bb-svg-path {\n fill: ").concat(f,";\n }\n .bb-capture-toolbar-item {\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-colorpicker {\n background-color: ").concat(r,";\n }\n .bb-capture-toolbar-item--active {\n background-color: ").concat(b,";\n }\n .bb-feedback-button-classic {\n border-top-left-radius: ").concat(S,"px;\n border-top-right-radius: ").concat(S,"px;\n }\n .bb-logo-logo--default path {\n fill: ").concat(p,";\n }\n .bb-logo-arrowdown {\n fill: ").concat(p,";\n }\n .bb-feedback-button-icon {\n background-color: ").concat(n,";\n }\n .bb-feedback-button-classic {\n background-color: ").concat(n,";\n color: ").concat(p,";\n }\n\n @media only screen and (max-width: 450px) {\n [dir=rtl].gleap-frame-container,\n .gleap-frame-container {\n left: 0px;\n right: 0px;\n width: 100vw;\n max-width: 100vw;\n min-height: 100vh;\n min-height: -webkit-fill-available;\n max-height: -webkit-fill-available;\n top: 0px;\n bottom: 0px;\n border-radius: 0px;\n animation-name: gleapFadeInUpMobile;\n }\n\n .gleap-frame-container-inner {\n width: 100vw;\n height: 100%;\n }\n\n .gleap-frame-container:not(.gleap-frame-container--survey):not(.gleap-frame-container--survey-full) .gleap-frame-container-inner {\n max-height: calc(var(--glvh, 1vh) * 100) !important;\n }\n\n .gleap-frame-container--survey {\n height: auto !important;\n top: initial !important;\n bottom: 0px !important;\n min-height: initial !important;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: 100vh !important;\n }\n\n .bb-tooltip {\n display: none !important;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n top: 75px;\n }\n \n .bb-capture-button-next {\n margin-left: auto;\n }\n \n .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-toolbar {\n top: 15px;\n right: 15px;\n left: 15px;\n width: auto;\n transform: none;\n }\n\n .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-borderlayer {\n border-width: 4px;\n }\n }\n \n @media print {\n .bb-feedback-button {\n display: none !important;\n }\n \n .gleap-frame-container {\n display: none !important;\n }\n }\n\n .gleap-tour-sender {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n margin-bottom: 10px;\n }\n\n .gleap-tour-sender-image {\n width: 32px;\n height: 32px;\n border-radius: 32px;\n margin-right: 10px;\n background-size: cover;\n background-repeat: no-repeat;\n }\n\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: 550px;\n max-width: 550px;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: calc(100vw - 40px);\n max-width: calc(100vw - 40px);\n }\n }\n\n .gleap-tour-message,\n .gleap-tour-message p,\n .gleap-tour-message ul {\n color: ").concat(f,";\n }\n\n .gleap-tour-message h2 {\n font-weight: 600;\n font-size: 22px;\n }\n\n .gleap-tour-message h3 {\n font-weight: 600;\n font-size: 18px;\n }\n\n .gleap-tour-message p {\n line-height: 1.3;\n margin-bottom: 10px !important;\n margin-top: 10px !important;\n }\n\n .gleap-tour-message ul {\n line-height: 1.3;\n padding-left: 20px;\n margin-top: 10px !important;\n margin-bottom: 10px !important;\n }\n\n .gleap-tour-message {\n max-height: calc(80vh - 100px) !important;\n overflow-y: auto;\n min-width: 270px;\n }\n\n .gleap-tour-message::-webkit-scrollbar {\n width: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-track {\n border-radius: 0px;\n }\n \n .gleap-tour-message::-webkit-scrollbar-thumb {\n background: ").concat(y,"; \n border-radius: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-thumb:hover {\n background: ").concat(m,";\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-message {\n min-width: auto !important;\n }\n }\n\n .gleap-tour-message iframe {\n width: 100%;\n height: 300px;\n margin-top: 10px;\n margin-bottom: 10px;\n border: none;\n outline: none;\n display: block;\n }\n\n .gleap-tour-sender-name {\n font-size: 15px;\n }\n\n .gleap-tour-video {\n width: 100%;\n max-width: 100%;\n }\n\n .gleap-tour-video-svg--fullscreen {\n width: 100% !important;\n height: 100% !important;\n top: 0px !important;\n left: 0px !important;\n right: 0px !important;\n bottom: 0px !important;\n }\n\n .gleap-tour-video--playing .gleap-tour-video-playpause {\n opacity: 0;\n }\n \n .gleap-tour-video--playing:hover .gleap-tour-video-playpause {\n opacity: 1;\n }\n\n .gleap-tour-popover-video-pointer {\n padding: 0px !important;\n border-radius: 8px;\n position: relative;\n background-color: transparent !important;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer {\n position: absolute;\n top: 0px;\n left: 20px;\n right: 20px;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer button {\n padding: 5px 12px;\n }\n\n .gleap-tour-popover-video-pointer.gleap-tour-popover-can-close .gleap-tour-popover-footer {\n right: 40px !important;\n }\n\n .gleap-tour-popover-video-pointer:hover .gleap-tour-popover-footer {\n opacity: 1;\n }\n\n .gleap-tour-popover-pointer.gleap-tour-popover-no-sender .gleap-tour-message {\n padding-right: 20px;\n }\n\n .gleap-tour-video video {\n width: 100%;\n max-width: 100%;\n height: auto;\n border: none;\n outline: none;\n display: block;\n border-radius: 8px;\n }\n\n .gleap-admin-collapse-ui {\n z-index: ").concat(2147483635,";\n cursor: pointer;\n position: fixed;\n bottom: 75px;\n right: 20px;\n width: 32px;\n height: 32px;\n border-radius: 100%;\n background-color: #fff;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;\n }\n\n .gleap-admin-collapse-ui svg {\n width: 20px;\n height: 14px;\n fill: #000 !important;\n }\n\n .gleap-admin-collapse-ui-active {\n bottom: 20px !important;\n }\n\n .gleap-admin-collapse-ui-active svg {\n transform: rotate(180deg);\n }\n\n .gleap-admin-frame-container-active {\n display: none !important;\n }\n\n .gleap-admin-frame-container {\n position: fixed;\n bottom: 0px;\n left: 0px;\n right: 0px;\n width: 100vw;\n z-index: ").concat(2147483640,";\n }\n\n .gleap-admin-frame {\n width: 100%;\n height: 100% !important;\n border: none;\n outline: none;\n display: block;\n }\n \n .gleap-tour-message .linktype-link {\n display: inline-block !important;\n background-color: transparent !important;\n color: ").concat(n," !important;\n }\n\n .gleap-tooltip .linktype-button,\n .gleap-tour-message .linktype-button {\n display: inline-block !important;\n border-radius: 5px;\n box-sizing: border-box;\n padding: 10px 20px !important;\n text-decoration: none !important;\n background-color: ").concat(n," !important;\n color: ").concat(p," !important;\n }\n\n .gleap-tour-message img {\n width: 100%;\n max-width: 100%;\n min-height: 260px;\n height: auto;\n margin-top: 10px;\n margin-bottom: 10px;\n object-fit: cover;\n }\n\n .gleap-tour-active .gleap-tour-overlay {\n pointer-events: none;\n }\n \n .gleap-tour-active * {\n pointer-events: none;\n }\n \n .gleap-tour-active .gleap-tour-active-element,\n .gleap-tour-active .gleap-tour-active-element *,\n .gleap-tour-popover,\n .gleap-tour-popover * {\n pointer-events: auto;\n }\n \n @keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n .gleap-tour-fade .gleap-tour-overlay {\n animation: animate-fade-in 200ms ease-in-out;\n }\n \n .gleap-tour-fade .gleap-tour-popover {\n animation: animate-fade-in 200ms;\n }\n\n .gleap-tour-video-playpause {\n position: absolute;\n bottom: 8px;\n left: 8px;\n width: 32px;\n height: 32px;\n padding: 4px;\n background-color: rgba(0,0,0,0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border-radius: 8px;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-arrow {\n display: none !important;\n }\n\n .gleap-tour-video-playpause svg {\n width: 34px;\n height: auto;\n fill: #fff;\n }\n \n /* Popover styles */\n .gleap-tour-popover {\n all: unset;\n box-sizing: border-box;\n color: #2d2d2d;\n margin: 0;\n padding: 15px;\n border-radius: ").concat(S,'px;\n min-width: 250px;\n max-width: 300px;\n box-shadow: 0 1px 10px #0006;\n z-index: 1000000000;\n position: fixed;\n top: 0;\n right: 0;\n background-color: #fff;\n }\n \n .gleap-tour-popover * {\n font-family: "Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif;\n }\n \n .gleap-tour-popover-title {\n font: 19px / normal sans-serif;\n font-weight: 700;\n display: block;\n position: relative;\n line-height: 1.5;\n zoom: 1;\n margin: 0;\n }\n \n .gleap-tour-popover-close-btn {\n all: unset;\n position: absolute;\n top: 5px;\n right: 5px;\n width: 32px;\n height: 32px;\n cursor: pointer;\n font-size: 30px;\n font-weight: 500;\n line-height: 32px;\n color: #d2d2d2;\n z-index: 1;\n text-align: center;\n transition: color;\n transition-duration: 200ms;\n }\n \n .gleap-tour-popover-close-btn:hover,\n .gleap-tour-popover-close-btn:focus {\n color: #2d2d2d;\n }\n \n .gleap-tour-popover-title[style*="block"] + .gleap-tour-popover-description {\n margin-top: 5px;\n }\n \n .gleap-tour-popover-description {\n margin-bottom: 0;\n font: 15px / normal sans-serif;\n line-height: 1.5;\n font-weight: 400;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer {\n margin-top: 15px;\n text-align: right;\n zoom: 1;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n \n .gleap-tour-popover-progress-text {\n font-size: 13px;\n font-weight: 400;\n color: #727272;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer button {\n background-color: ').concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 10px 20px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;\n }\n\n .gleap-tour-popover-prev-btn {\n color: ").concat(f," !important;\n background-color: ").concat(b," !important;\n margin-right: 3px;\n }\n\n .gleap-tour-popover-prev-btn:hover {\n background-color: ").concat(e,"22 !important;\n color: ").concat(e,' !important;\n }\n \n .gleap-tour-popover-footer .gleap-tour-popover-btn-disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n \n /* Disable the scrolling of parent element if it has an active element*/\n :not(body):has(> .gleap-tour-active-element) {\n overflow: hidden !important;\n }\n \n .gleap-tour-no-interaction, .gleap-tour-no-interaction * {\n pointer-events: none !important;\n }\n \n .gleap-tour-popover-navigation-btns {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n }\n \n .gleap-tour-popover-navigation-btns button + button {\n margin-left: 4px;\n }\n \n .gleap-tour-popover-arrow {\n content: "";\n position: absolute;\n border: 5px solid #fff;\n }\n \n .gleap-tour-popover-arrow-side-over {\n display: none;\n }\n \n /** Popover Arrow Sides **/\n .gleap-tour-popover-arrow-side-left {\n left: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-right {\n right: 100%;\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-top {\n top: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-bottom {\n bottom: 100%;\n border-left-color: transparent;\n border-top-color: transparent;\n border-right-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-center {\n display: none;\n }\n \n /* Left/Start + Right/Start */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-start {\n top: 15px;\n }\n \n /* Top/Start + Bottom/Start */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-start {\n left: 15px;\n }\n \n /* End/Left + End/Right */\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-left,\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-right {\n bottom: 15px;\n }\n \n /* Top/End + Bottom/End */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-end,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-end {\n right: 15px;\n }\n \n /* Left/Center + Right/Center */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-center {\n top: 50%;\n margin-top: -5px;\n }\n \n /* Top/Center + Bottom/Center */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-center {\n left: 50%;\n margin-left: -5px;\n }\n \n /* No arrow */\n .gleap-tour-popover-arrow-none {\n display: none;\n } \n\n /* Modal styles */\n .gleap-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: ').concat(2147483640,";\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-modal-backdrop {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: ").concat(2147483641,";\n }\n\n .gleap-modal {\n position: relative;\n width: 90%;\n max-width: 600px;\n max-height: 90vh;\n z-index: ").concat(2147483700,";\n background-color: ").concat(r,";\n border-radius: ").concat(k,"px;\n overflow: hidden;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n }\n\n .gleap-modal-frame {\n width: 100%;\n border: none;\n display: block;\n outline: none;\n }\n\n body.gleap-modal-open {\n overflow: hidden;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n "),T=document.querySelector(".gleap-styles");T&&T.remove();var E=document.createElement("style");E.innerHTML=L,E.className="gleap-styles",document.body.appendChild(E)}(e,t,n,r,o,i,s,c)}))}},{key:"sendSilentCrashReport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};return e.sendSilentCrashReportWithFormData({description:t},n,o)}},{key:"sendSilentCrashReportWithFormData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};if(!this.silentCrashReportSent){this.silentCrashReportSent=!0,setTimeout((function(){t.silentCrashReportSent=!1}),1e4);var r=o?k(o):{},i=$e.getInstance();if(i.ready){var a=e||{};i.session.email&&(a.reportedBy=i.session.email),new _t("CRASH",n,a,!0,r).sendFeedback().then((function(){})).catch((function(e){}))}}}},{key:"showSurvey",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"survey";e.startFeedbackFlowWithOptions(t,{hideBackButton:!0,format:n},!0)}},{key:"startClassicForm",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlow",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlowWithOptions",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.autostartDrawing,i=n.hideBackButton,a=n.format;if($e.getInstance().ready){e.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY});var s="start-feedbackflow";o&&(s="start-survey"),Gt.getInstance().setAppMode(o?a:"widget"),Gt.getInstance().sendMessage({name:s,data:{flow:t,hideBackButton:i,format:a}},!0),r?Gt.getInstance().showDrawingScreen("screenshot"):Gt.getInstance().showWidget()}}},{key:"openConversations",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversations",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openConversation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversation",data:{shareToken:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"startConversation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.startBot("",t)}},{key:"startBot",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-bot",data:{botId:e||"",hideBackButton:!t}},!0),Gt.getInstance().showWidget()}},{key:"openHelpCenterCollection",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-collection",data:{collectionId:e}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenterArticle",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-article",data:{articleId:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenter",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"searchHelpCenter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter-search",data:{term:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNewsArticle",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news-article",data:{id:e}},!0),Gt.getInstance().showWidget())}},{key:"openChecklists",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklists",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return!!e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-checklist",data:fi({outboundId:e,hideBackButton:!t},n?{sharedKey:n}:{})},!0),Gt.getInstance().showWidget(),!0)}},{key:"openChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklist",data:{id:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNews",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openFeatureRequests",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-feature-requests",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startProductTour",value:function(e){var t=this;$e.getInstance().startProductTourConfig(e).then((function(n){t.startProductTourWithConfig(e,n)})).catch((function(e){}))}},{key:"checkForUncompletedTour",value:function(){var e=Yr.getInstance().loadUncompletedTour();e&&Yr.getInstance().startWithConfig(e.tourId,e.tourData,500)}},{key:"startProductTourWithConfig",value:function(e,t){Yr.getInstance().startWithConfig(e,t)}},{key:"showBanner",value:function(e){try{_o.getInstance().showBanner(e)}catch(t){}}},{key:"showModal",value:function(e){try{Go.getInstance().showModal(e)}catch(t){}}},{key:"showNotification",value:function(e){Ao.getInstance().showNotification(e)}}],n&&di(t.prototype,n),o&&di(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();if(hi(gi,"invoked",!0),hi(gi,"silentCrashReportSent",!1),hi(gi,"instance",void 0),"undefined"!=typeof window){var mi=window.GleapActions;if(mi&&mi.length>0)for(var bi=0;bi{Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["id","class","length"],n=e.attributes;return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t-1||e.push("["+n.nodeName+'="'+n.value+'"]'),e}),[])}},770:(e,t)=>{function n(e){if(!e.hasAttribute("class"))return[];try{return Array.prototype.slice.call(e.classList).filter((function(e){return/^[a-z_-][a-z\d_-]*$/i.test(e)?e:null}))}catch(n){var t=e.getAttribute("class");return(t=t.trim().replace(/\s+/g," ")).split(" ")}}Object.defineProperty(t,"__esModule",{value:!0}),t.getClasses=n,t.getClassSelectors=function(e){return n(e).filter(Boolean).map((function(e){return"."+e}))}},584:(e,t)=>{function n(e,t,o,r,i,a,s){if(a!==s)for(var c=r;c<=i&&i-c+1>=s-a;++c)o[a]=t[c],n(e,t,o,c+1,i,a+1,s);else e.push(o.slice(0,a).join(""))}Object.defineProperty(t,"__esModule",{value:!0}),t.getCombinations=function(e,t){for(var o=[],r=e.length,i=[],a=1;a<=t;++a)n(o,e,i,0,r-1,0,a);return o}},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getID=function(e){var t=e.getAttribute("id");if(null!==t&&""!==t)return t.match(/(?:^\d|:)/)?'[id="'+t+'"]':"#"+t;return null}},64:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getNthChild=function(e){var t=0,n=void 0,r=void 0,i=e.parentNode;if(Boolean(i)){var a=i.childNodes,s=a.length;for(n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.getParents=function(e){var t=[],n=e;for(;(0,o.isElement)(n);)t.push(n),n=n.parentNode;return t};var o=n(440)},970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTag=function(e){return e.tagName.toLowerCase().replace(/:/g,"\\:")}},924:(e,t,n)=>{t.A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selectorTypes,o=void 0===n?["ID","Class","Tag","NthChild"]:n,r=t.attributesToIgnore,i=void 0===r?["id","class","length"]:r,a=t.excludeRegex,s=void 0===a?null:a,c=[],d=(0,u.getParents)(e),p=!0,f=!1,v=void 0;try{for(var g,m=d[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=h(g.value,o,i,s);Boolean(b)&&c.push(b)}}catch(T){f=!0,v=T}finally{try{!p&&m.return&&m.return()}finally{if(f)throw v}}var y=[],w=!0,k=!1,x=void 0;try{for(var S,C=c[Symbol.iterator]();!(w=(S=C.next()).done);w=!0){var I=S.value;y.unshift(I);var L=y.join(" > ");if((0,l.isUnique)(e,L))return L}}catch(T){k=!0,x=T}finally{try{!w&&C.return&&C.return()}finally{if(k)throw x}}return null};var o=n(169),r=n(770),i=n(584),a=n(561),s=n(64),c=n(970),l=n(213),u=n(175);function d(e,t){var n=e.parentNode.querySelectorAll(t);return 1===n.length&&n[0]===e}function p(e,t){return t.find(d.bind(null,e))}function f(e,t,n){var o=(0,i.getCombinations)(t,3),r=p(e,o);return Boolean(r)||Boolean(n)&&(r=p(e,o=o.map((function(e){return n+e}))),Boolean(r))?r:null}function h(e,t,n,i){var l=void 0,u=function(e,t,n){var i={Tag:c.getTag,NthChild:s.getNthChild,Attributes:function(e){return(0,a.getAttributes)(e,n)},Class:r.getClassSelectors,ID:o.getID};return t.reduce((function(t,n){return t[n]=i[n](e),t}),{})}(e,t,n);i&&i instanceof RegExp&&(u.ID=i.test(u.ID)?null:u.ID,u.Class=u.Class.filter((function(e){return!i.test(e)})));var p=!0,h=!1,v=void 0;try{for(var g,m=t[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=g.value,y=u.ID,w=u.Tag,k=u.Class,x=u.Attributes,S=u.NthChild;switch(b){case"ID":if(Boolean(y)&&d(e,y))return y;break;case"Tag":if(Boolean(w)&&d(e,w))return w;break;case"Class":if(Boolean(k)&&k.length&&(l=f(e,k,w)))return l;break;case"Attributes":if(Boolean(x)&&x.length&&(l=f(e,x,w)))return l;break;case"NthChild":if(Boolean(S))return S}}}catch(C){h=!0,v=C}finally{try{!p&&m.return&&m.return()}finally{if(h)throw v}}return"*"}},440:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isElement=function(e){var t=void 0;t="object"===("undefined"==typeof HTMLElement?"undefined":n(HTMLElement))?e instanceof HTMLElement:!!e&&"object"===(void 0===e?"undefined":n(e))&&1===e.nodeType&&"string"==typeof e.nodeName;return t}},213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isUnique=function(e,t){if(!Boolean(t))return!1;var n=e.ownerDocument.querySelectorAll(t);return 1===n.length&&n[0]===e}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var n=0;nxi});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"feedbackButton",null),r(this,"injectedFeedbackButton",!1),r(this,"buttonHidden",null),r(this,"lastButtonIcon",null)}var n,o,i;return n=e,i=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(o=[{key:"toggleFeedbackButton",value:function(t){this.buttonHidden=!t,e.getInstance().updateFeedbackButtonState(),Ao.getInstance().updateContainerStyle()}},{key:"feedbackButtonPressed",value:function(){var e=Gt.getInstance();e.isOpened()?e.hideWidget():(e.setAppMode("widget"),e.showWidget())}},{key:"injectFeedbackButton",value:function(){var e=this;if(!this.injectedFeedbackButton){this.injectedFeedbackButton=!0;var t=document.createElement("div");t.addEventListener("click",(function(){e.feedbackButtonPressed()})),document.body.appendChild(t),this.feedbackButton=t,this.updateFeedbackButtonState()}}},{key:"updateNotificationBadge",value:function(e){var t=document.querySelector(".bb-notification-bubble");if(t){var n="bb-notification-bubble--hidden";e>0?(t.classList.remove(n),t.innerText=e):t.classList.add(n)}}},{key:"refresh",value:function(){document.querySelector(".bb-feedback-button")?(this.updateFeedbackButtonText(),this.updateFeedbackButtonState()):(this.injectedFeedbackButton=!1,this.feedbackButton=null,this.buttonHidden=null,this.lastButtonIcon=null,this.injectFeedbackButton())}},{key:"updateFeedbackButtonText",value:function(){var t=ut.getInstance().getFlowConfig();if(t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT){var n=document.querySelector(".bb-feedback-button-classic");n&&(n.innerText=t.widgetButtonText)}}},{key:"updateFeedbackButtonState",value:function(){if(null!==this.feedbackButton){var t=ut.getInstance().getFlowConfig(),n="";n=t.buttonLogo?''):p("button","#fff"),this.feedbackButton.className="bb-feedback-button gleap-font gl-block",this.feedbackButton.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT?(this.feedbackButton.classList.add("bb-feedback-button--classic-button-style"),this.feedbackButton.innerHTML='
').concat(t.widgetButtonText,"
")):n!==this.lastButtonIcon&&(this.feedbackButton.innerHTML='
'.concat(n).concat(p("arrowdown","#fff"),'
')),this.lastButtonIcon=n;var o=!1;null===e.getInstance().buttonHidden?t.feedbackButtonPosition===e.FEEDBACK_BUTTON_NONE&&(o=!0):e.getInstance().buttonHidden&&(o=!0),o&&this.feedbackButton.classList.add("bb-feedback-button--disabled"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_BOTTOM_LEFT&&this.feedbackButton.classList.add("bb-feedback-button--bottomleft"),Gt.getInstance().isOpened()&&this.feedbackButton.classList.add("bb-feedback-button--open");var r=Gt.getInstance().appMode;"survey"!==r&&"survey_full"!==r&&"survey_web"!==r||this.feedbackButton.classList.add("bb-feedback-button--survey"),!0!==t.hideForGuests||$e.getInstance().isUser()||this.feedbackButton.classList.add("bb-feedback-button--hidden")}}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=160?"#000000":"#ffffff"},p=function(e,t){return"button"===e?'':"drag"===e?'\x3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--\x3e':"unmute"===e?'':"mute"===e?'':"replay"===e?'\n \n ':"dismiss"===e?'':"blur"===e?'\n \n':"pen"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n':"rect"===e?'\n \n \n \n \n \n \n \n \n \n \n':"pointer"===e?'\n \n ':"clip"===e?'\n \n \n \n \n \n':"mic"===e?'\n \n \n \n \n ':"camera"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n':"recorderon"===e?'\n \n \n \n \n \n \n \n \n \n \n \n':"recorderoff"===e?'\n \n \n \n \n \n \n \n \n ':"arrowdown"===e?'\n \n '):"arrowleft"===e?'\n \n '):"close"===e?'\n \n '):"undo"===e?'\n \n \n \n \n \n \n \n \n \n ':"circle-dot"===e?''):"circle-question"===e?''):"circle-info"===e?''):"circle-exclamation"===e?''):"circle-up"===e?''):"circle-right"===e?''):""};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,t){for(var n=0;n0&&(e=e.concat(this.externalRequests)),this.filters&&this.filters.length>0)for(var t=0;t-1)&&!e.find((function(e){return e.url===s.name}))&&e.push({type:"RESOURCE",date:new Date(this.startTimestamp+s.startTime),url:s.name,duration:Math.round(s.duration),initiatorType:s.initiatorType})}}}catch(u){}var c=this.blacklist.concat(this.defaultBlacklist);if(c&&c.length>0)try{e=e.filter((function(e){for(var t=0;t70&&(e=70),this.maxRequests=e}},{key:"setStopped",value:function(e){this.stopped=e}},{key:"setFilters",value:function(e){this.filters=this.filters.concat(e||[])}},{key:"setBlacklist",value:function(e){this.blacklist=this.blacklist.concat(e||[])}},{key:"cleanRequests",value:function(){var e=Object.keys(this.requests);if(e.length>this.maxRequests)for(var t=e.slice(0,e.length-this.maxRequests),n=0;n.15?"":e}},{key:"cleanupPayload",value:function(e){if(null==e)return"{}";try{if(void 0!==("undefined"==typeof TextDecoder?"undefined":f(TextDecoder))&&ArrayBuffer.isView(e))return(new TextDecoder).decode(e)}catch(t){}return e}},{key:"preparePayload",value:function(e){var t=this.cleanupPayload(e);return this.cleanupContentSize(t)}},{key:"start",value:function(){var e=this;if(!this.initialized){this.initialized=!0;var t=this;this.interceptNetworkRequests({onFetch:function(n,o){if(!e.stopped&&o&&e.requests){if(n.length>0&&void 0!==n[0]&&void 0!==n[0].url)e.requests[o]={url:n[0].url,date:new Date,request:{payload:"",headers:void 0!==n[0].headers?Object.fromEntries(n[0].headers.entries()):{}},type:void 0!==n[0].method?n[0].method:""};else if(n.length>=2&&n[1]){var r=n[1]&&n[1].method?n[1].method:"GET";e.requests[o]={request:{payload:t.preparePayload(n[1].body),headers:n[1].headers},type:r,url:n[0],date:new Date}}else e.requests[o]={url:n[0],date:new Date};e.cleanRequests()}},onFetchLoad:function(n,o){if(!e.stopped&&o&&e.requests&&e.requests[o]){try{e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:"",responseText:""},e.calcRequestTime(o)}catch(i){}try{var r="";n.headers&&void 0!==n.headers.get&&(r=n.headers.get("content-type")),e.isContentTypeSupported(r)?n.text().then((function(r){e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:t.cleanupContentSize(r)}),e.calcRequestTime(o),e.cleanRequests()})).catch((function(t){e.cleanRequests()})):(e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:""}),e.calcRequestTime(o),e.cleanRequests())}catch(i){}}},onFetchFailed:function(t,n){!e.stopped&&n&&e.requests&&e.requests[n]&&(e.requests[n].success=!1,e.calcRequestTime(n),e.cleanRequests())},onOpen:function(t,n){e.stopped||(t&&t.bbRequestId&&n.length>=2&&e.requests&&(e.requests[t.bbRequestId]={type:n[0],url:n[1],date:new Date}),e.cleanRequests())},onSend:function(t,n){e.stopped||(t&&t.bbRequestId&&e.requests&&e.requests[t.bbRequestId]&&(e.requests[t.bbRequestId].request={payload:e.preparePayload(n.length>0?n[0]:"{}"),headers:t.requestHeaders}),e.cleanRequests())},onError:function(t,n){!e.stopped&&e.requests&&t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests[t.currentTarget.bbRequestId]&&(e.requests[t.currentTarget.bbRequestId].success=!1,e.calcRequestTime(t.bbRequestId)),e.cleanRequests()},onLoad:function(t,n){if(!e.stopped){if(t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests&&e.requests[t.currentTarget.bbRequestId]){var o=t.currentTarget,r=o.responseType,i="<"+r+">";""!==r&&"text"!==r||(i=e.cleanupContentSize(o.responseText)),e.requests[o.bbRequestId].success=!0,e.requests[o.bbRequestId].response={status:o.status,statusText:o.statusText,responseText:i},e.calcRequestTime(o.bbRequestId)}e.cleanRequests()}}})}}},{key:"interceptNetworkRequests",value:function(e){var t,n=this,o=XMLHttpRequest.prototype.open,r=XMLHttpRequest.prototype.send;return void 0===XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.gleapSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader),XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=function(e,t){this.requestHeaders||(this.requestHeaders={}),this.requestHeaders&&this.requestHeaders.hasOwnProperty(e)||(this.requestHeaders[e]||(this.requestHeaders[e]=[]),this.requestHeaders[e].push(t),this.gleapSetRequestHeader(e,t))}),XMLHttpRequest.prototype.open=function(){return this.bbRequestId=++n.requestId,e.onOpen&&e.onOpen(this,arguments),e.onLoad&&this.addEventListener("load",e.onLoad.bind(e)),e.onError&&this.addEventListener("error",e.onError.bind(e)),o.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){return e.onSend&&e.onSend(this,arguments),r.apply(this,arguments)},window.fetch&&(t=window.fetch,window.fetch=function(){var o=++n.requestId;return e.onFetch(arguments,o),t.apply(this,arguments).then((function(t){if(t&&"function"==typeof t.clone){var n=t.clone();e.onFetchLoad(n,o)}return t})).catch((function(t){throw e.onFetchFailed(t,o),t}))}),e}},{key:"blobToTextPromise",value:function(e){return new Promise((function(t,n){var o=new FileReader;o.onload=function(e){e&&e.target&&e.target.result?t(e.target.result):n()},o.onerror=function(e){n(e)},o.readAsText(e)}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&h(t.prototype,n),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();v(m,"instance",void 0);const b=m;var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400;return new Promise((function(o,r){var i=0===e.indexOf("data:image/jpeg"),a=new Image;a.src=e,a.onerror=function(){r()},a.onload=function(){var e=document.createElement("canvas"),r=t,s=n;t>a.width/1.5&&(r=a.width/1.5),n>a.height/1.5&&(s=a.height/1.5);var c=a.width,l=a.height;c>l?c>r&&(l*=r/c,c=r):l>s&&(c*=s/l,l=s),e.width=c,e.height=l,e.getContext("2d").drawImage(a,0,0,c,l),o(i?e.toDataURL("image/jpeg",.7):e.toDataURL())}}))},w=function(){return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))},k=function(e){if("string"==typeof e||e instanceof String)try{return JSON.parse(e)}catch(t){return{}}return e},x=function(e,t){return e.length>t?e.slice(0,t)+"...":e},S=function(e){try{var t=e.split("."),n=!1,o=t[t.length-2];return"co"!==o&&"com"!==o&&"gv"!==o&&"ac"!==o&&"edu"!==o&&"gov"!==o&&"mil"!==o&&"net"!==o&&"org"!==o||(n=!0),(t=t.slice(n?-3:-2)).join(".")}catch(r){}return e},C=function(e){try{var t=localStorage.getItem("gleap-widget-".concat(e));if(t)return JSON.parse(t)}catch(n){}return null},I=function(e,t){var n="gleap-widget-".concat(e);if(t)try{localStorage.setItem(n,JSON.stringify(t))}catch(o){}else localStorage.removeItem(n)},L=function(e){"complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",(function(){e()}))};function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function E(e,t){for(var n=0;n=200&&i.status<300)try{var e=i.responseText?JSON.parse(i.responseText):null;o(e)}catch(t){r({status:i.status,statusText:"JSON Parse Error",responseText:i.responseText,error:t})}else r({status:i.status,statusText:i.statusText,responseText:i.responseText})},i.onerror=function(){r({status:0,statusText:"Network Error",responseText:null})},i.send(n?JSON.stringify(n):null)}))}},{key:"_createCacheKey",value:function(e,t){return t?"".concat(e,"::").concat(t):e}},{key:"validateChecklist",value:function(e,t){var n=this,o=this._createCacheKey(e,t),r=this.validationCache.get(o);if(r)return r.status===A?Promise.resolve(r.internalId):Promise.reject(r.error);if(this.validationRequests.has(o))return this.validationRequests.get(o);var i=this._getApiUrl();if(!i){var a=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.validationCache.set(o,{status:P,error:a}),Promise.reject(a)}var s="".concat(i,"/outbound/checklists?").concat(this._getQueryParams()),c=this._makeRequest("POST",s,{outboundId:e,sharedKey:t}).then((function(e){if(e&&e.id)return n.validationCache.set(o,{status:A,internalId:e.id}),e.id;var t=new Error("Validation response missing checklist ID.");throw n.validationCache.set(o,{status:P,error:e||t}),t})).catch((function(e){throw n.validationCache.set(o,{status:P,error:e}),e})).finally((function(){n.validationRequests.delete(o)}));return this.validationRequests.set(o,c),c}},{key:"fetchChecklist",value:function(e){var t=this,n=this.fetchCache.get(e);if(n)return n.status===A?Promise.resolve(JSON.parse(JSON.stringify(n.data))):Promise.reject(n.error);if(this.fetchRequests.has(e))return this.fetchRequests.get(e).then((function(e){return JSON.parse(JSON.stringify(e))}));var o=this._getApiUrl();if(!o){var r=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.fetchCache.set(e,{status:P,error:r}),Promise.reject(r)}var i="".concat(o,"/outbound/checklists/").concat(e,"?convertTipTap=true&").concat(this._getQueryParams()),a=this._makeRequest("GET",i,null).then((function(n){if(n)return t.fetchCache.set(e,{status:A,data:n}),JSON.parse(JSON.stringify(n));var o=new Error("Empty response received for checklist fetch.");throw t.fetchCache.set(e,{status:P,error:n||o}),o})).catch((function(n){throw t.fetchCache.set(e,{status:P,error:n}),n})).finally((function(){t.fetchRequests.delete(e)}));return this.fetchRequests.set(e,a),a.then((function(e){return JSON.parse(JSON.stringify(e))}))}}])&&E(t.prototype,n),o&&E(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();O(R,"instance",null);const N=R,D=Math.min,j=Math.max,F=Math.round,_=Math.floor,B=e=>({x:e,y:e}),H={left:"right",right:"left",bottom:"top",top:"bottom"},q={start:"end",end:"start"};function U(e,t,n){return j(e,D(t,n))}function z(e,t){return"function"==typeof e?e(t):e}function W(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function V(e){return"x"===e?"y":"x"}function K(e){return"y"===e?"height":"width"}function X(e){return["top","bottom"].includes(W(e))?"y":"x"}function Z(e){return V(X(e))}function Y(e){return e.replace(/start|end/g,(e=>q[e]))}function J(e){return e.replace(/left|right|bottom|top/g,(e=>H[e]))}function Q(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ee(e,t,n){let{reference:o,floating:r}=e;const i=X(t),a=Z(t),s=K(a),c=W(t),l="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(c){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(G(t)){case"start":f[a]-=p*(n&&l?-1:1);break;case"end":f[a]+=p*(n&&l?-1:1)}return f}async function te(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=z(t,e),h=Q(f),v=s[p?"floating"===d?"reference":"floating":d],g=$(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),m="floating"===d?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=$(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:b,strategy:c}):m);return{top:(g.top-w.top+h.top)/y.y,bottom:(w.bottom-g.bottom+h.bottom)/y.y,left:(g.left-w.left+h.left)/y.x,right:(w.right-g.right+h.right)/y.x}}const ne=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=W(n),s=G(n),c="y"===X(n),l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=z(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),c?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}};function oe(e){return ae(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ie(e){var t;return null==(t=(ae(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ae(e){return e instanceof Node||e instanceof re(e).Node}function se(e){return e instanceof Element||e instanceof re(e).Element}function ce(e){return e instanceof HTMLElement||e instanceof re(e).HTMLElement}function le(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof re(e).ShadowRoot)}function ue(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function de(e){return["table","td","th"].includes(oe(e))}function pe(e){const t=fe(),n=ve(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function fe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function he(e){return["html","body","#document"].includes(oe(e))}function ve(e){return re(e).getComputedStyle(e)}function ge(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(e){if("html"===oe(e))return e;const t=e.assignedSlot||e.parentNode||le(e)&&e.host||ie(e);return le(t)?t.host:t}function be(e){const t=me(e);return he(t)?e.ownerDocument?e.ownerDocument.body:e.body:ce(t)&&ue(t)?t:be(t)}function ye(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=be(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=re(r);return i?t.concat(a,a.visualViewport||[],ue(r)?r:[],a.frameElement&&n?ye(a.frameElement):[]):t.concat(r,ye(r,[],n))}function we(e){const t=ve(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ce(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=F(n)!==i||F(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function ke(e){return se(e)?e:e.contextElement}function xe(e){const t=ke(e);if(!ce(t))return B(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=we(t);let a=(i?F(n.width):n.width)/o,s=(i?F(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Se=B(0);function Ce(e){const t=re(e);return fe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Se}function Ie(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=ke(e);let a=B(1);t&&(o?se(o)&&(a=xe(o)):a=xe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==re(e))&&t}(i,n,o)?Ce(i):B(0);let c=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=re(i),t=o&&se(o)?re(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=xe(r),t=r.getBoundingClientRect(),o=ve(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=a,n=re(r),r=n.frameElement}}return $({width:u,height:d,x:c,y:l})}const Le=[":popover-open",":modal"];function Te(e){return Le.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function Ee(e){return Ie(ie(e)).left+ge(e).scrollLeft}function Oe(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=re(e),o=ie(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;const e=fe();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=ie(e),n=ge(e),o=e.ownerDocument.body,r=j(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=j(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Ee(e);const s=-n.scrollTop;return"rtl"===ve(o).direction&&(a+=j(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(ie(e));else if(se(t))o=function(e,t){const n=Ie(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=ce(e)?xe(e):B(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Ce(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return $(o)}function Me(e,t){const n=me(e);return!(n===t||!se(n)||he(n))&&("fixed"===ve(n).position||Me(n,t))}function Ae(e,t,n){const o=ce(t),r=ie(t),i="fixed"===n,a=Ie(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=B(0);if(o||!o&&!i)if(("body"!==oe(t)||ue(r))&&(s=ge(t)),o){const e=Ie(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=Ee(r));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Pe(e,t){return ce(e)&&"fixed"!==ve(e).position?t?t(e):e.offsetParent:null}function Re(e,t){const n=re(e);if(!ce(e)||Te(e))return n;let o=Pe(e,t);for(;o&&de(o)&&"static"===ve(o).position;)o=Pe(o,t);return o&&("html"===oe(o)||"body"===oe(o)&&"static"===ve(o).position&&!pe(o))?n:o||function(e){let t=me(e);for(;ce(t)&&!he(t);){if(pe(t))return t;t=me(t)}return null}(e)||n}const Ne={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=ie(o),s=!!t&&Te(t.floating);if(o===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=B(1);const u=B(0),d=ce(o);if((d||!d&&!i)&&(("body"!==oe(o)||ue(a))&&(c=ge(o)),ce(o))){const e=Ie(o);l=xe(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:ie,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=ye(e,[],!1).filter((e=>se(e)&&"body"!==oe(e))),r=null;const i="fixed"===ve(e).position;let a=i?me(e):e;for(;se(a)&&!he(a);){const t=ve(a),n=pe(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||ue(a)&&!n&&Me(e,a))?o=o.filter((e=>e!==a)):r=t,a=me(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=Oe(t,n,r);return e.top=j(o.top,e.top),e.right=D(o.right,e.right),e.bottom=D(o.bottom,e.bottom),e.left=j(o.left,e.left),e}),Oe(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Re,getElementRects:async function(e){const t=this.getOffsetParent||Re,n=this.getDimensions;return{reference:Ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=we(e);return{width:t,height:n}},getScale:xe,isElement:se,isRTL:function(e){return"rtl"===ve(e).direction}};function De(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=ke(e),u=r||i?[...l?ye(l):[],...ye(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,o=null;const r=ie(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-_(u)+"px "+-_(r.clientWidth-(l+d))+"px "+-_(r.clientHeight-(u+p))+"px "+-_(l)+"px",threshold:j(0,D(1,c))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(v,{...f,root:r.ownerDocument})}catch(g){o=new IntersectionObserver(v,f)}o.observe(e)}(!0),i}(l,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!c&&h.observe(l),h.observe(t));let v=c?Ie(e):null;return c&&function t(){const o=Ie(e);!v||o.x===v.x&&o.y===v.y&&o.width===v.width&&o.height===v.height||n();v=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const je=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=z(e,t),l={x:n,y:o},u=await te(t,c),d=X(W(r)),p=V(d);let f=l[p],h=l[d];if(i){const e="y"===p?"bottom":"right";f=U(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=U(h+u["y"===d?"top":"left"],h,h-u[e])}const v=s.fn({...t,[p]:f,[d]:h});return{...v,data:{x:v.x-n,y:v.y-o}}}}},Fe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=z(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=W(r),b=W(s)===s,y=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=p||(b||!v?[J(s)]:function(e){const t=J(e);return[Y(e),t,Y(t)]}(s));p||"none"===h||w.push(...function(e,t,n,o){const r=G(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(W(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(Y)))),i}(s,v,h,y));const k=[s,...w],x=await te(t,g),S=[];let C=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&S.push(x[m]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=G(e),r=Z(e),i=K(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=J(a)),[a,J(a)]}(r,a,y);S.push(x[e[0]],x[e[1]])}if(C=[...C,{placement:r,overflows:S}],!S.every((e=>e<=0))){var I,L;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(L=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},_e=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=z(e,t)||{};if(null==l)return{};const d=Q(u),p={x:n,y:o},f=Z(r),h=K(f),v=await a.getDimensions(l),g="y"===f,m=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[f]-p[f]-i.floating[h],k=p[f]-i.reference[f],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=x?x[y]:0;S&&await(null==a.isElement?void 0:a.isElement(x))||(S=s.floating[y]||i.floating[h]);const C=w/2-k/2,I=S/2-v[h]/2-1,L=D(d[m],I),T=D(d[b],I),E=L,O=S-v[h]-T,M=S/2-v[h]/2+C,A=U(E,M,O),P=!c.arrow&&null!=G(r)&&M!==A&&i.reference[h]/2-(M{const o=new Map,r={platform:Ne,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=ee(l,o,c),p=o,f={},h=0;for(let v=0;ve.length)&&(t=e.length);for(var n=0,o=new Array(t);n'):""),i.appendChild(a),t.repositionHotspot(e,n),r=a,t.elementToTooltipMap.set(e,n)}else r=e;var s=t.createTooltip(r,n.html,n);t.elementToFloatingUIMap.set(e,s)}}})),We(this,"updateFilteredTooltips",(function(){t.filteredTooltips=t.getFilteredTooltips(),t.checkForTooltips()})),We(this,"getFilteredTooltips",(function(){if(!t.tooltips)return[];var e=window.location.href;return t.tooltips.filter((function(t){if(!t.page||0===t.page.length)return!0;var n=t.pageType,o=t.page;switch(n){case"is":return e===o;case"isnot":return e!==o;case"contains":return e.includes(o);case"notcontains":return!e.includes(o);case"startswith":return e.startsWith(o);case"endswith":return e.endsWith(o);default:return!1}}))})),We(this,"checkForTooltips",(function(){for(var e=0;e0&&this.filteredTooltips.forEach((function(n){n.selector&&e.matches(n.selector)&&t.linkTooltip(e,n)}))}},{key:"start",value:function(){var e=this,t=this;if(window){var n,o,r,i=(n=t.updateHotspotPositions.bind(t),o=250,r=null,function(){if(!r){var e=this,t=arguments;r=setTimeout((function(){n.call.apply(n,[e].concat(qe(t))),r=null}),o)}});window.addEventListener("resize",i),window.requestAnimationFrame((function(){e.observer=new MutationObserver((function(n){t.lastUrl!==window.location.href&&(t.lastUrl=window.location.href,t.filteredTooltips=t.getFilteredTooltips()),n.forEach((function(n){n.addedNodes.forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&t.processNodeInsertion(e)})),n.removedNodes.forEach((function(t){if(t.nodeType===Node.ELEMENT_NODE&&e.elementToFloatingUIMap.has(t)){var n=e.elementToFloatingUIMap.get(t);n&&(n.tooltip&&n.tooltip.remove(),n.cleanup(),e.elementToFloatingUIMap.delete(t))}e.elementToTooltipMap.has(t)&&e.elementToTooltipMap.delete(t)}))}))})),e.observer.observe(document.body,{childList:!0,subtree:!0})}))}}},{key:"updateHotspotPositions",value:function(){var e=this;document.querySelectorAll("[data-gleap-tooltip-mode='hotspot']").forEach((function(t){var n=e.elementToTooltipMap.get(t);n&&e.repositionHotspot(t,n)}))}},{key:"createTooltip",value:function(e,t,n){var o=document.createElement("div");o.className="gleap-tooltip",o.innerHTML='
\n '.concat(t,'\n
\n \n \n \n
\n
'),document.body.appendChild(o);var r,i=o.querySelector(".gleap-tooltip-arrow"),a=De(e,o,(function(){Be(e,o,{placement:"left"===n.posX?"left":"right",middleware:[ne(10),Fe(),je(),_e({element:i})]}).then((function(e){var t=e.x,n=e.y,r=e.middlewareData,a=e.placement;try{if(Object.assign(o.style,{left:"".concat(t,"px"),top:"".concat(n,"px")}),r.arrow){var s={left:"",top:"",transform:""};null!=r.arrow.x&&(s.left="".concat(r.arrow.x,"px"),"bottom"===a?(s.transform="translateY(-7px) rotate(180deg)",s.top="".concat(-20,"px")):"top"===a&&(s.transform="translateY(7px) rotate(0deg)",s.top="100%")),null!=r.arrow.y&&(s.top="".concat(r.arrow.y,"px"),"right"===a?(s.transform="translateX(-7px) rotate(90deg)",s.left="".concat(-20,"px")):"left"===a&&(s.transform="translateX(7px) rotate(270deg)",s.left="100%")),Object.assign(i.style,s)}}catch(c){}}))}));function s(){clearTimeout(r),o.style.visibility="visible",o.style.opacity="1",o.style.pointerEvents="auto"}function c(){r=setTimeout((function(){o.style.opacity="0",setTimeout((function(){o.style.visibility="hidden",o.style.pointerEvents="none"}),200)}),500)}return e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",c),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c),{cleanup:a,tooltip:o}}},{key:"canEmbed",value:function(e){var t=new Set(["area","base","br","embed","hr","img","input","source","track","wbr","canvas"]);return e&&!t.has(e.tagName.toLowerCase())}},{key:"destroy",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),document.querySelectorAll(".gleap-tooltip").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-anchor]").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-hotspot]").forEach((function(e){return e.remove()})),this.elementToFloatingUIMap=new WeakMap,this.elementToTooltipMap=new WeakMap,this.tooltips=[],this.filteredTooltips=[]}},{key:"repositionHotspot",value:function(e,t){if(e&&t){var n=e.getAttribute("data-gleap-tooltip");if(n){var o=document.querySelector('[data-gleap-tooltip-hotspot="'.concat(n,'"]'));if(o){t.posX||(t.posX="right"),t.posY||(t.posY="center"),t.offsetX||(t.offsetX=4),t.offsetY||(t.offsetY=0);var r=e.getBoundingClientRect();try{var i=document.createRange();i.selectNodeContents(e);var a=window.getComputedStyle(e),s=i.getBoundingClientRect().width+parseFloat(a.paddingLeft);s0&&void 0!==arguments[0]?arguments[0]:0,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash));try{I("session-".concat(t.sdkKey),null)}catch(r){}if(t.useCookies)try{!function(e){try{var t=S(window.location.host.split(":")[0]);document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Domain="+t}catch(r){}}("session-".concat(t.sdkKey))}catch(r){}if(t.ready=!1,t.session={gleapId:null,gleapHash:null,name:"",email:"",userId:"",phone:"",value:0},Gt.getInstance().sendMessage({name:"session-cleared"},!0),Ao.getInstance().clearAllNotifications(!1),Ao.getInstance().setNotificationCount(0),_o.getInstance().removeBannerUI(),Go.getInstance().hideModal(),n&&!isNaN(e)){var o=10*Math.pow(e,2);setTimeout((function(){t.startSession(e+1)}),1e3*o)}})),Je(this,"validateSession",(function(e){var n;if(e&&e.gleapId){var o=!1;(null===(n=t.session)||void 0===n?void 0:n.gleapId)!==(null==e?void 0:e.gleapId)&&(o=!0),t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),I("session-".concat(t.sdkKey),e),t.useCookies&&function(e,t,n){try{var o="";if(n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),o="; expires="+r.toUTCString()}var i=S(window.location.host.split(":")[0]);document.cookie=e+"="+(t||"")+o+"; path=/; domain="+i}catch(a){}}("session-".concat(t.sdkKey),encodeURIComponent(JSON.stringify(e)),365),t.session=e,t.ready=!0,t.session&&t.session.gleapHash&&kn.notifyEvent("register-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),o&&(setTimeout((function(){N.getInstance().clearCache(),rt.getInstance().restart();var e=Ve.getInstance();if(e){try{e.destroy()}catch(t){}e.load()}}),0),"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("session-updated"))),t.notifySessionReady()}})),Je(this,"startSession",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{if(t.useCookies){var n=function(e){try{for(var t=e+"=",n=document.cookie.split(";"),o=0;o0)){var r=C("session-".concat(t.sdkKey));r&&t.validateSession(r)}var i=t,a=new XMLHttpRequest;a.open("POST",i.apiUrl+"/sessions"),a.setRequestHeader("Content-Type","application/json;charset=UTF-8"),a.setRequestHeader("Api-Token",i.sdkKey);try{t.session&&t.session.gleapId&&t.session.gleapHash&&(a.setRequestHeader("Gleap-Id",t.session.gleapId),a.setRequestHeader("Gleap-Hash",t.session.gleapHash))}catch(s){}a.onreadystatechange=function(t){if(4===a.readyState)if(200===a.status||201===a.status)try{var n=JSON.parse(a.responseText);i.validateSession(n)}catch(s){}else 429!==a.status&&i.clearSession(e,!0)},a.send(JSON.stringify({lang:go.getInstance().getActiveLanguage()}))})),Je(this,"checkIfSessionNeedsUpdate",(function(e,n){if(!t.session||!t.session.userId||!e)return!0;try{if(t.session.userId.toString()!==e.toString())return!0}catch(o){}return t.checkIfSessionDataNeedsUpdate(n)})),Je(this,"checkIfSessionDataNeedsUpdate",(function(e){if(e)for(var n=Object.keys(e),o=0;o0)for(var e=0;e2)&&0!==t.streamedEventArray.length&&t.socket&&t.socket.readyState===t.socket.OPEN){var e=t;t.streamingEvents=!0;var n=new XMLHttpRequest;n.open("POST",$e.getInstance().apiUrl+"/sessions/ping"),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),$e.getInstance().injectSession(n),n.onerror=function(){e.errorCount++,e.streamingEvents=!1},n.onreadystatechange=function(t){4===n.readyState&&(200===n.status||201===n.status?e.errorCount=0:e.errorCount++,e.streamingEvents=!1)};var o=Yt.getInstance().getSessionDuration();n.send(JSON.stringify({time:o,events:t.streamedEventArray,opened:Gt.getInstance().isOpened(),type:"js",sdkVersion:"14.6.3",ws:!0})),t.streamedEventArray=[]}})),this.handleOpenBound=this.handleOpen.bind(this),this.handleErrorBound=this.handleError.bind(this),this.handleMessageBound=this.handleMessage.bind(this),this.handleCloseBound=this.handleClose.bind(this)}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"cleanupWebSocket",value:function(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null),this.pingWS&&clearInterval(this.pingWS),this.socket&&(this.socket.removeEventListener("open",this.handleOpenBound),this.socket.removeEventListener("error",this.handleErrorBound),this.socket.removeEventListener("message",this.handleMessageBound),this.socket.removeEventListener("close",this.handleCloseBound),this.socket.close(),this.socket=null)}},{key:"initWebSocket",value:function(){this.cleanupWebSocket(),this.connectedWebSocketGleapId=$e.getInstance().session.gleapId,$e.getInstance().session&&$e.getInstance().sdkKey&&(this.socket=new WebSocket("".concat($e.getInstance().wsApiUrl,"?gleapId=").concat($e.getInstance().session.gleapId,"&gleapHash=").concat($e.getInstance().session.gleapHash,"&apiKey=").concat($e.getInstance().sdkKey,"&sdkVersion=").concat("14.6.3")),this.socket.addEventListener("open",this.handleOpenBound),this.socket.addEventListener("message",this.handleMessageBound),this.socket.addEventListener("error",this.handleErrorBound),this.socket.addEventListener("close",this.handleCloseBound))}},{key:"handleOpen",value:function(e){var t=this;this.pingWS=setInterval((function(){t.socket.readyState===t.socket.OPEN&&(t.socket.send("PING"),t.socket.send(9))}),1e4),this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null)}},{key:"handleMessage",value:function(e){this.processMessage(JSON.parse(e.data))}},{key:"handleError",value:function(e){}},{key:"handleClose",value:function(e){var t=this;setTimeout((function(){t.initWebSocket()}),5e3)}},{key:"processMessage",value:function(e){try{if("update"===e.name){var t=e.data,n=t.a,o=t.u;Gt.getInstance().isOpened()||(n&&ki.getInstance().performActions(n),null!=o&&Ao.getInstance().setNotificationCount(o))}"checklist"===e.name&&null!=e&&e.data&&window&&"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("checkListUpdate",{detail:e.data}))}catch(r){}}},{key:"getEventArray",value:function(){return this.eventArray}},{key:"stop",value:function(){this.cleanupMainLoop()}},{key:"resetErrorCountLoop",value:function(){var e=this;setInterval((function(){e.errorCount=0}),6e4)}},{key:"cleanupMainLoop",value:function(){this.mainLoopTimeout&&(clearInterval(this.mainLoopTimeout),this.mainLoopTimeout=null)}},{key:"restart",value:function(){this.connectedWebSocketGleapId!==$e.getInstance().session.gleapId&&this.initWebSocket(),this.cleanupMainLoop(),this.trackInitialEvents(),this.runEventStreamLoop()}},{key:"start",value:function(){this.startPageListener(),this.resetErrorCountLoop()}},{key:"trackInitialEvents",value:function(){e.getInstance().logEvent("sessionStarted"),e.getInstance().logCurrentPage()}},{key:"logCurrentPage",value:function(){if(!ki.getInstance().disablePageTracking){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.logEvent("pageView",{page:e}))}}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"logEvent",value:function(e,t){var n={name:e,date:new Date};t&&(n.data=k(t)),this.eventArray.push(n),this.streamedEventArray.push(n),this.eventArray.length>this.eventMaxLength&&this.eventArray.shift(),this.streamedEventArray.length>this.eventMaxLength&&this.streamedEventArray.shift()}}])&&tt(t.prototype,n),o&&tt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function at(e,t){for(var n=0;n0)for(var e=0;e=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function ft(e,t,n,o,r,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(o,r)}function ht(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ft(i,o,r,a,s,"next",e)}function s(e){ft(i,o,r,a,s,"throw",e)}a(void 0)}))}}var vt=function(e){var t="",n=window.document.doctype;if(n&&(t=""),e&&e.childNodes&&e.childNodes.length>0)for(var o=0;o1?t-1:0),r=1;r0||t.scrollLeft>0)&&(s.setAttribute("bb-scrollpos",!0),s.setAttribute("bb-scrolltop",t.scrollTop),s.setAttribute("bb-scrollleft",t.scrollLeft)),"SELECT"!==d&&"TEXTAREA"!==d&&"INPUT"!==d||(f=t.value,("value"===t.getAttribute("gleap-ignore")||t.classList.contains("gl-mask"))&&(f=new Array(f.length+1).join("*")),s.setAttribute("bb-data-value",f),"checkbox"!==t.type&&"radio"!==t.type||!t.checked||s.setAttribute("bb-data-checked",!0))),r.appendChild(s),!t.shadowRoot){e.next=29;break}return h=n,n++,e.next=27,a(t.shadowRoot.firstChild,s,h);case 27:St(t.shadowRoot,s,h),void 0!==s.setAttribute&&s.setAttribute("bb-shadow-parent",h);case 29:return e.next=31,a(t.firstChild,s);case 31:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(t,n,o){return e.apply(this,arguments)}}(),r=document.createDocumentFragment(),e.next=5,o(t,r);case 5:return(i=r.querySelector("head"))||(i=r),St(window.document,i),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Lt=function(e){return new Promise(function(){var t=ht(pt().mark((function t(n,o){var r,i,a,s,c,l,u,d,p,f,h,v,g,m,b;return pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r=window.document.querySelectorAll("style, link"),i=0;i0){for(l=c.childNodes;l.length>0;)c.parentNode.insertBefore(l[0],c);c.remove()}for(u=a.querySelectorAll("script, noscript"),i=0;i0?r.innerHTML=n.formatTime(e):(r.innerHTML="2:00",n.stopScreenRecording())}),1e3),this.mediaRecorder.ondataavailable=function(e){e.data.size>0&&o.push(e.data)},t.getVideoTracks()[0].onended=function(){n.prepareRecording(o)},this.mediaRecorder.onstop=function(){n.prepareRecording(o)},this.mediaRecorder.start(200),n.rerender()})),Ot(this,"prepareRecording",(function(e){var t=new Blob(e,{type:this.getSupportedMimeType()}),n=this.getSupportedMimeType(),o=n.includes("mp4")?"mp4":"webm";this.file=new File([t],"screen-recording.".concat(o),{type:n});var r=document.querySelector(".bb-capture-preview video");r&&(r.src=URL.createObjectURL(t),this.audioAvailable=!0,this.isRecording=!1,this.rerender())})),this.rerender=t,this.permissionErrorText=n,navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia||(this.available=!1),setTimeout((function(){o.rerender()}),100)}var t,n,o;return t=e,(n=[{key:"getSupportedMimeType",value:function(){for(var e=0,t=["video/webm","audio/webm","video/webm;codecs=vp8","video/webm;codecs=daala","video/webm;codecs=h264","audio/webm;codecs=opus","video/mp4"];e0&&(e.tags=t),this.excludeData)for(var n=Object.keys(this.excludeData),o=0;oe.length)&&(t=e.length);for(var n=0,o=new Array(t);n0)if(t){var n=window.open(e,"_blank");n&&n.focus()}else window.location.href=e})),zt(this,"autoWhiteListCookieManager",(function(){window&&window.cmp_block_ignoredomains&&window.cmp_block_ignoredomains.concat(["messenger-app.gleap.io"])})),zt(this,"injectFrame",(function(){t.injectedFrame||(t.injectedFrame=!0,t.autoWhiteListCookieManager(),L((function(){ut.getInstance().onConfigLoaded((function(){ut.getInstance().applyStylesFromConfig();var e=document.createElement("div");e.className="gleap-frame-container gleap-frame-container--hidden gl-block",e.innerHTML='
'),document.body.appendChild(e),t.gleapFrameContainer=e,t.gleapFrame=document.querySelector(".gleap-frame"),t.updateFrameStyle(),"widget"===t.appMode&&t.showFrameContainer(!0)}))})))})),zt(this,"showImage",(function(e){L((function(){var t=document.createElement("div");t.className="gleap-image-view",t.innerHTML='
\n \n
'),document.body.appendChild(t);var n=function(){t.remove()};t.querySelector(".gleap-image-view-close").addEventListener("click",(function(){n()})),t.addEventListener("click",(function(e){e.target===t&&n()}))}))})),zt(this,"updateFrameStyle",(function(){if(t.gleapFrameContainer){for(var e="gleap-frame-container--survey",n="gleap-frame-container--extended",o="gleap-frame-container--survey-full",r="gleap-frame-container--classic",i="gleap-frame-container--classic-left",s="gleap-frame-container--modern-left",c="gleap-frame-container--no-button",l=[r,i,n,s,c,e,o],u=0;u1&&void 0!==arguments[1]&&arguments[1];try{this.gleapFrame=document.querySelector(".gleap-frame"),this.comReady&&this.gleapFrame&&this.gleapFrame.contentWindow?this.gleapFrame.contentWindow.postMessage(JSON.stringify(e),"*"):t&&this.queue.push(e)}catch(n){}}},{key:"sendSessionUpdate",value:function(){this.sendMessage({name:"session-update",data:{sessionData:$e.getInstance().getSession(),apiUrl:$e.getInstance().apiUrl,sdkKey:$e.getInstance().sdkKey}})}},{key:"sendConfigUpdate",value:function(){this.sendMessage({name:"config-update",data:{config:ut.getInstance().getFlowConfig(),aiTools:ut.getInstance().getAiTools(),overrideLanguage:go.getInstance().getOverrideLanguage()}}),this.updateFrameStyle()}},{key:"showDrawingScreen",value:function(e){var t=this;this.hideWidget(),this.markerManager=new uo(e),this.markerManager.show((function(e){e||t.hideMarkerManager(),t.showWidget()}))}},{key:"workThroughQueue",value:function(){var e=Ht(this.queue);this.queue=[];for(var t=0;t0&&(n.tags=o),e.sendMessage({name:"collect-ticket-data",data:n})}if("height-update"===t.name){e.frameHeight=t.data;var r=document.querySelector(".gleap-frame-container-inner");"survey"!==e.appMode&&"survey_full"!==e.appMode&&"survey_web"!==e.appMode||!r||(r.style.maxHeight="".concat(e.frameHeight,"px"))}if("notify-event"===t.name&&kn.notifyEvent(t.data.type,t.data.data),"cleanup-drawings"===t.name&&e.hideMarkerManager(),"open-url"===t.name){var i=t.data,a=!!t.newTab;e.urlHandler(i,a)}if("run-custom-action"===t.name&&En.triggerCustomAction(t.data,{shareToken:t.shareToken}),"close-widget"===t.name&&e.hideWidget(),"tool-execution"===t.name&&kn.notifyEvent("tool-execution",t.data),"send-feedback"===t.name){var s=t.data.formData,c=t.data.action,l=t.data.outboundId,u=t.data.spamToken;new _t(c.feedbackType,"MEDIUM",s,!1,c.excludeData,l,u).sendFeedback().then((function(t){if(e.sendMessage({name:"feedback-sent",data:t}),kn.notifyEvent("feedback-sent",s),l&&l.length>0){kn.notifyEvent("outbound-sent",{outboundId:l,outbound:c,formData:s});try{delete s.reportedBy}catch(n){}ki.trackEvent("outbound-".concat(l,"-submitted"),s)}})).catch((function(t){e.sendMessage({name:"feedback-sending-failed",data:"Something went wrong, please try again."}),kn.notifyEvent("error-while-sending")}))}"start-screen-drawing"===t.name&&e.showDrawingScreen(t.data)})),window.addEventListener("message",(function(t){if(t.origin===e.frameUrl||t.origin===_o.getInstance().bannerUrl)try{for(var n=JSON.parse(t.data),o=0;o1&&void 0!==arguments[1]?arguments[1]:"INFO";!e||e.length<=0||(this.logArray.push({log:x(e,1e3),date:new Date,priority:t}),this.logArray.length>this.logMaxLength&&this.logArray.shift())}},{key:"addLogWithArgs",value:function(e,t){if(e&&!(e.length<=0)){var n="";try{for(var o=0;o1&&void 0!==arguments[1])||arguments[1],n=x(e.innerText||"",40).replace(/(\r\n|\n|\r)/gm,"").replace(/ +(?= )/g,""),o="",r="";if(void 0!==e.getAttribute){var i=e.getAttribute("id");i&&(o=' id="'.concat(i,'"'));var a=e.getAttribute("class");a&&(r=' class="'.concat(a,'"'))}var s=(e.tagName||"").toLowerCase(),c="<",l=">";return t||(c="[",l="]"),"".concat(c).concat(s).concat(o).concat(r).concat(l).concat(n).concat(c,"/").concat(s).concat(l)}(e.target),"CLICK")}}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&an(t.prototype,n),o&&an(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function pn(e){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pn(e)}function fn(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if("flow-started"===e){var n=ki.getInstance();n.setGlobalDataItem("webReplay",null),n.setGlobalDataItem("screenRecordingData",null),n.takeCurrentReplay()}var o=this.getInstance().eventListeners[e];if(o)for(var r=0;r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||Rn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function An(e){return function(e){if(Array.isArray(e))return Nn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Rn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Rn(e,t){if(e){if("string"==typeof e)return Nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n=0;g--){var m=n.get(g);if(m){var b=t.mirror.getId(m.value.parentNode);if(-1===o(m.value))continue;if(-1!==b){f=m;break}var y=m.value;if(y.parentNode&&y.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=y.parentNode.host;if(-1!==t.mirror.getId(w)){f=m;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),r(f.value)}var k={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){return{id:t.mirror.getId(e.node),attributes:e.attributes}})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:e};!k.texts.length&&!k.attributes.length&&!k.removes.length&&!k.adds.length||(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(k))}},this.processMutation=function(e){if(!Ye(e.target,t.mirror))switch(e.type){case"characterData":var n=e.target.textContent;!Ze(e.target,t.blockClass,t.blockSelector,!1)&&n!==e.oldValue&&t.texts.push({value:Be(e.target,t.maskTextClass,t.maskTextSelector)&&n?t.maskTextFn?t.maskTextFn(n):n.replace(/[\S]/g,"*"):n,node:e.target});break;case"attributes":var o=e.target,r=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(r=Ae({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:r,maskInputFn:t.maskInputFn})),Ze(e.target,t.blockClass,t.blockSelector,!1)||r===e.oldValue)return;var i=t.attributes.find((function(t){return t.node===e.target}));if("IFRAME"===o.tagName&&"src"===e.attributeName&&!t.keepIframeSrcFn(r)){if(o.contentDocument)return;e.attributeName="rr_src"}if(i||(i={node:e.target,attributes:{}},t.attributes.push(i)),"style"===e.attributeName){var a=t.doc.createElement("span");e.oldValue&&a.setAttribute("style",e.oldValue),(void 0===i.attributes.style||null===i.attributes.style)&&(i.attributes.style={});for(var s=i.attributes.style,c=0,l=Array.from(o.style);c0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){if("rrweb"===e.data.type){if(!e.source)return;var t=this.crossOriginIframeMap.get(e.source);if(!t)return;var n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}}},{key:"transformCrossOriginEvent",value:function(e,t){var n,o=this;switch(t.type){case m.FullSnapshot:return this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e),{timestamp:t.timestamp,type:m.IncrementalSnapshot,data:{source:b.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case m.Meta:case m.Load:case m.DomContentLoaded:return!1;case m.Plugin:return t;case m.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case m.IncrementalSnapshot:switch(t.data.source){case b.Mutation:return t.data.adds.forEach((function(t){o.replaceIds(t,e,["parentId","nextId","previousId"]),o.replaceIdOnNode(t.node,e)})),t.data.removes.forEach((function(t){o.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){o.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.Drag:case b.TouchMove:case b.MouseMove:return t.data.positions.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.ViewportResize:return!1;case b.MediaInteraction:case b.MouseInteraction:case b.Scroll:case b.CanvasMutation:case b.Input:return this.replaceIds(t.data,e,["id"]),t;case b.StyleSheetRule:case b.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case b.Font:return t;case b.Selection:return t.data.ranges.forEach((function(t){o.replaceIds(t,e,["start","end"])})),t;case b.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach((function(t){o.replaceStyleIds(t,e,["styleId"])})),t}}}},{key:"replace",value:function(e,t,n,o){var r,i=Pn(o);try{for(i.s();!(r=i.n()).done;){var a=r.value;!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]))}}catch(s){i.e(s)}finally{i.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id"]),"childNodes"in e&&e.childNodes.forEach((function(e){n.replaceIdOnNode(e,t)}))}}]),e}(),W=Object.defineProperty,G=Object.defineProperties,V=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,Y=function(e,t,n){return t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},J=function(e,t){for(var n in t||(t={}))X.call(t,n)&&Y(e,n,t[n]);if(K){var o,r=Pn(K(t));try{for(r.s();!(o=r.n()).done;){n=o.value;Z.call(t,n)&&Y(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Q=function(e,t){return G(e,V(t))},$=function(){function e(t){Dn(this,e),this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var n=this;this.restorePatches.push(Ve(Element.prototype,"attachShadow",(function(e){return function(t){var o=e.call(this,t);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),o}})))}return Fn(e,[{key:"addShadowRoot",value:function(e,t){var n=this;!Ee(e)||this.shadowDoms.has(e)||(this.shadowDoms.add(e),lt(Q(J({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),dt(Q(J({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(e.host)),vt({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e)}),0))}},{key:"observeAttachShadow",value:function(e){if(e.contentWindow){var t=this;this.restorePatches.push(Ve(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(o){var r=n.call(this,o);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}})))}}},{key:"reset",value:function(){this.restorePatches.forEach((function(e){return e()})),this.shadowDoms=new WeakSet}}]),e}(),ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=("undefined"==typeof Uint8Array?"undefined":Bn(Uint8Array))>"u"?[]:new Uint8Array(256),ne=0;ne<64;ne++)te[ee.charCodeAt(ne)]=ne;var oe,re,ie,ae=new Map,se=function(e,t,n){if(e&&(le(e,t)||"object"==Bn(e))){var o=function(e,t){var n=ae.get(e);return n||(n=new Map,ae.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name),r=o.indexOf(e);return-1===r&&(r=o.length,o.push(e)),r}},ce=function(e,t,n){return An(e).map((function(e){return mt(e,t,n)}))},le=function(e,t){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(n.find((function(n){return e instanceof t[n]})))},ue=function(e,t,n){var o;return function(r){return o=o||wt(e,t,n),new Worker(o,r)}}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixwPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylwW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgdT1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCxsPW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gdihzLGUsbil7Y29uc3QgYT1gJHtzfS0ke2V9YDtpZigiT2Zmc2NyZWVuQ2FudmFzImluIGdsb2JhbFRoaXMpe2lmKGwuaGFzKGEpKXJldHVybiBsLmdldChhKTtjb25zdCB0PW5ldyBPZmZzY3JlZW5DYW52YXMocyxlKTt0LmdldENvbnRleHQoIjJkIik7Y29uc3QgZz1hd2FpdChhd2FpdCB0LmNvbnZlcnRUb0Jsb2IobikpLmFycmF5QnVmZmVyKCksZD11KGcpO3JldHVybiBsLnNldChhLGQpLGR9ZWxzZSByZXR1cm4iIn1jb25zdCBpPXNlbGY7aS5vbm1lc3NhZ2U9YXN5bmMgZnVuY3Rpb24ocyl7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtjb25zdHtpZDplLGJpdG1hcDpuLHdpZHRoOmEsaGVpZ2h0OnQsZGF0YVVSTE9wdGlvbnM6Z309cy5kYXRhLGQ9dihhLHQsZyksaD1uZXcgT2Zmc2NyZWVuQ2FudmFzKGEsdCk7aC5nZXRDb250ZXh0KCIyZCIpLmRyYXdJbWFnZShuLDAsMCksbi5jbG9zZSgpO2NvbnN0IHc9YXdhaXQgaC5jb252ZXJ0VG9CbG9iKGcpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89dShiKTtpZighYy5oYXMoZSkmJmF3YWl0IGQ9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX1lbHNlIHJldHVybiBpLnBvc3RNZXNzYWdlKHtpZDpzLmRhdGEuaWR9KX19KSgpOwoK",null,!1),de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,he=function(){function e(t){var n=this;Dn(this,e),this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(e)||n.pendingCanvasMutations.set(e,[]),n.pendingCanvasMutations.get(e).push(t)};var o=t.sampling,r=void 0===o?"all":o,i=t.win,a=t.blockClass,s=t.blockSelector,c=t.recordCanvas,l=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&"all"===r&&this.initCanvasMutationObserver(i,a,s),c&&"number"==typeof r&&this.initCanvasFPSObserver(r,i,a,s,{dataURLOptions:l})}return Fn(e,[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,t,n,o,r){var i=this,a=bt(t,n,o),s=new Map,c=new ue;c.onmessage=function(e){var t=e.data.id;if(s.set(t,!1),"base64"in e.data){var n=e.data,o=n.base64,r=n.type,a=n.width,c=n.height;i.mutationCb({id:t,type:w["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:r}]},0,0]}]})}};var l,u=1e3/e,d=0;l=requestAnimationFrame((function e(a){d&&a-d0&&(o.styles=r),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}(),ge=Object.defineProperty,me=Object.defineProperties,be=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,xe=function(e,t,n){return t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Se=function(e,t){for(var n in t||(t={}))we.call(t,n)&&xe(e,n,t[n]);if(ye){var o,r=Pn(ye(t));try{for(r.s();!(o=r.n()).done;){n=o.value;ke.call(t,n)&&xe(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Ce=function(e,t){return me(e,be(t))},Ie=!1,Le=new r;return xt.addCustomEvent=function(e,t){if(!Ie)throw new Error("please add custom event after start recording");oe(kt({type:m.Custom,data:{tag:e,payload:t}}))},xt.freezePage=function(){D.forEach((function(e){return e.freeze()}))},xt.takeFullSnapshot=function(e){if(!Ie)throw new Error("please take full snapshot after start recording");re(e)},xt.mirror=Le,xt}function Te(e){var t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function Ee(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Oe(e){try{var t=e.rules||e.cssRules;return t?function(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}(Array.from(t).map(Me).join("")):null}catch(n){return null}}function Me(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=Oe(e.styleSheet)||t}catch(n){}return t}function Ae(e){var t=e.maskInputOptions,n=e.tagName,o=e.type,r=e.value,i=e.maskInputFn,a=r||"";return(t[n.toLowerCase()]||t[o])&&(a=i?i(a):"*".repeat(a.length)),a}function Pe(){return a++}function Re(e,t){return(e||"").replace(l,(function(e,n,o,r,i,a){var s=o||i||a,c=n||r||"";if(!s)return e;if(!u.test(s)||d.test(s))return"url(".concat(c).concat(s).concat(c,")");if("/"===s[0])return"url(".concat(c).concat(function(e){return(e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(t)+s).concat(c,")");var l=t.split("/"),p=s.split("/");l.pop();for(var f=0,h=p;f=t.length);){var i=o(p);if(","===i.slice(-1))i=Ne(e,i.substring(0,i.length-1)),r.push(i);else{var a="";i=Ne(e,i);for(var s=!1;;){var c=t.charAt(n);if(""===c){r.push((i+a).trim());break}if(s)")"===c&&(s=!1);else{if(","===c){n+=1,r.push((i+a).trim());break}"("===c&&(s=!0)}a+=c,n+=1}}}return r.join(", ")}(e,o):"style"===n&&o?Re(o,je()):"object"===t&&"data"===n&&o?Ne(e,o):o}function _e(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&_e(e.parentNode,t,n);for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&_e(e.parentNode,t,n)}function Be(e,t,n){var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(o.classList.contains(t)||o.closest(".".concat(t)))return!0}else if(_e(o,t,!0))return!0;return!(!n||!o.matches(n)&&!o.closest(n))}function He(t,r){var a=r.doc,c=r.mirror,l=r.blockClass,u=r.blockSelector,d=r.maskTextClass,p=r.maskTextSelector,f=r.inlineStylesheet,h=r.maskInputOptions,v=void 0===h?{}:h,g=r.maskTextFn,m=r.maskInputFn,b=r.dataURLOptions,y=void 0===b?{}:b,w=r.inlineImages,k=r.recordCanvas,x=r.keepIframeSrcFn,S=r.newlyAddedElement,C=void 0!==S&&S,I=function(e,t){if(t.hasNode(e)){var n=t.getId(e);return 1===n?void 0:n}}(a,c);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode}:{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:I};case t.ELEMENT_NODE:return function(t,r){for(var a=r.doc,c=r.blockClass,l=r.blockSelector,u=r.inlineStylesheet,d=r.maskInputOptions,p=void 0===d?{}:d,f=r.maskInputFn,h=r.dataURLOptions,v=void 0===h?{}:h,g=r.inlineImages,m=r.recordCanvas,b=r.keepIframeSrcFn,y=r.newlyAddedElement,w=void 0!==y&&y,k=r.rootId,x=function(e,t,n){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&e.matches(n)}(t,c,l),S=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return s.test(t)?"div":t}(t),C={},I=t.attributes.length,L=0;L2&&void 0!==arguments[2]?arguments[2]:document,o={capture:!0,passive:!0};return n.addEventListener(e,t,o),function(){return n.removeEventListener(e,t,o)}}function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,r=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;st?(o&&(clearTimeout(o),o=null),r=c,e.apply(u,a)):!o&&!1!==n.trailing&&(o=setTimeout((function(){r=!1===n.leading?0:Date.now(),o=null,e.apply(u,a)}),l))}}function Ge(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,o?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),i&&i.set&&i.set.call(this,e)}}),function(){return Ge(e,t,i||{},!0)}}function Ve(e,t,n){try{if(!(t in e))return function(){};var o=e[t],r=n(o);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=r,function(){e[t]=o}}catch(i){return function(){}}}function Ke(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ze(e,t,n,o){if(!e)return!1;var r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!r)return!1;if("string"==typeof t){if(r.classList.contains(t)||o&&null!==r.closest("."+t))return!0}else if(_e(r,t,o))return!0;return!(!n||!(e.matches(n)||o&&null!==r.closest(n)))}function Ye(e,t){return t.getId(e)===c}function Je(e,t){if(Te(e))return!1;var n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Je(e.parentNode,t))}function Qe(e){return Boolean(e.changedTouches)}function $e(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function et(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function tt(e){return Boolean(null==e?void 0:e.shadowRoot)}function nt(e){return"__ln"in e}function ot(e,t){e.delete(t),t.childNodes.forEach((function(t){return ot(e,t)}))}function rt(e,t,n){return 0!==e.length&&it(e,t,n)}function it(e,t,n){var o=t.parentNode;if(!o)return!1;var r=n.getId(o);return!!e.some((function(e){return e.id===r}))||it(e,o,n)}function at(e,t){return 0!==e.size&&st(e,t)}function st(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||st(e,n))}function ct(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(n){return e.target}}function lt(e,t){var n,o,r,i=new I;D.push(i),i.init(e);var a=window.MutationObserver||window.__rrMutationObserver,s=null==(r=null==(o=null===(n=window)||void 0===n?void 0:n.Zone)?void 0:o.__symbol__)?void 0:r.call(o,"MutationObserver");s&&window[s]&&(a=window[s]);var c=new a(i.processMutations.bind(i));return c.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),c}function ut(e){var t=e.mouseInteractionCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.sampling;if(!1===a.mouseInteraction)return function(){};var s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];return Object.keys(y).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]})).forEach((function(e){var a=e.toLowerCase(),s=function(e){return function(n){var a=ct(n);if(!Ze(a,r,i,!0)){var s=Qe(n)?n.changedTouches[0]:n;if(s){var c=o.getId(a),l=s.clientX,u=s.clientY;t({type:y[e],id:c,x:l,y:u})}}}}(e);c.push(ze(a,s,n))})),function(){c.forEach((function(e){return e()}))}}function dt(e){var t=e.scrollCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=We((function(e){var a=ct(e);if(a&&!Ze(a,r,i,!0)){var s=o.getId(a);if(a===n){var c=n.scrollingElement||n.documentElement;t({id:s,x:c.scrollLeft,y:c.scrollTop})}else t({id:s,x:a.scrollLeft,y:a.scrollTop})}}),e.sampling.scroll||100);return ze("scroll",a,n)}function pt(e,t){var n=R({},e);return t||delete n.userTriggered,n}function ft(e){return function(e,t){if(j&&e.parentRule instanceof CSSGroupingRule||F&&e.parentRule instanceof CSSMediaRule||_&&e.parentRule instanceof CSSSupportsRule||B&&e.parentRule instanceof CSSConditionRule){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var o=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(o)}return t}(e,[])}function ht(e,t,n){var o,r;return e?(e.ownerNode?o=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:o}):{}}function vt(e,t){var n,o,r,i=e.mirror,a=e.stylesheetManager,s=null;s="#document"===t.nodeName?i.getId(t):i.getId(t.host);var c="#document"===t.nodeName?null==(n=t.defaultView)?void 0:n.Document:null==(r=null==(o=t.ownerDocument)?void 0:o.defaultView)?void 0:r.ShadowRoot,l=Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets");return null!==s&&-1!==s&&c&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var e;return null==(e=l.get)?void 0:e.call(this)},set:function(e){var t,n=null==(t=l.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{a.adoptStyleSheets(e,s)}catch(o){}return n}}),function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}):function(){}}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var n=e.mutationCb,o=e.mousemoveCb,r=e.mouseInteractionCb,i=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,l=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb;e.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),n.apply(void 0,arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),o.apply(void 0,arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),r.apply(void 0,arguments)},e.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),i.apply(void 0,arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),a.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),s.apply(void 0,arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),c.apply(void 0,arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),l.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),u.apply(void 0,arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),d.apply(void 0,arguments)},e.fontCb=function(){t.font&&t.font.apply(t,arguments),p.apply(void 0,arguments)},e.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),f.apply(void 0,arguments)}}(e,t);var o,r=lt(e,e.doc),i=function(e){var t=e.mousemoveCb,n=e.sampling,o=e.doc,r=e.mirror;if(!1===n.mousemove)return function(){};var i,a="number"==typeof n.mousemove?n.mousemove:50,s="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],l=We((function(e){var n=Date.now()-i;t(c.map((function(e){return e.timeOffset-=n,e})),e),c=[],i=null}),s),u=We((function(e){var t=ct(e),n=Qe(e)?e.changedTouches[0]:e,o=n.clientX,a=n.clientY;i||(i=Date.now()),c.push({x:o,y:a,id:r.getId(t),timeOffset:Date.now()-i}),l(("undefined"==typeof DragEvent?"undefined":Bn(DragEvent))<"u"&&e instanceof DragEvent?b.Drag:e instanceof MouseEvent?b.MouseMove:b.TouchMove)}),a,{trailing:!1}),d=[ze("mousemove",u,o),ze("touchmove",u,o),ze("drag",u,o)];return function(){d.forEach((function(e){return e()}))}}(e),a=ut(e),s=dt(e),c=function(e){var t=e.viewportResizeCb,n=-1,o=-1;return ze("resize",We((function(){var e=Ke(),r=Xe();(n!==e||o!==r)&&(t({width:Number(r),height:Number(e)}),n=e,o=r)}),200),window)}(e),l=function(e){var t=e.inputCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.ignoreClass,s=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,u=e.userTriggeredOnInput;function d(e){var t=ct(e),o=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(H.indexOf(t.tagName)<0)&&!Ze(t,r,i,!0)){var l=t.type;if(!t.classList.contains(a)){var d=t.value,f=!1;"radio"===l||"checkbox"===l?f=t.checked:(s[t.tagName.toLowerCase()]||s[l])&&(d=Ae({maskInputOptions:s,tagName:t.tagName,type:l,value:d,maskInputFn:c})),p(t,pt({text:d,isChecked:f,userTriggered:o},u));var h=t.name;"radio"===l&&h&&f&&n.querySelectorAll('input[type="radio"][name="'.concat(h,'"]')).forEach((function(e){e!==t&&p(e,pt({text:e.value,isChecked:!f,userTriggered:!1},u))}))}}}function p(e,n){var r=q.get(e);if(!r||r.text!==n.text||r.isChecked!==n.isChecked){q.set(e,n);var i=o.getId(e);t(N(R({},n),{id:i}))}}var f=("last"===l.input?["change"]:["input","change"]).map((function(e){return ze(e,d,n)})),h=n.defaultView;if(!h)return function(){f.forEach((function(e){return e()}))};var v=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),g=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&f.push.apply(f,An(g.map((function(e){return Ge(e[0],e[1],{set:function(){d({target:this})}},!1,h)})))),function(){f.forEach((function(e){return e()}))}}(e),u=function(e){var t=e.mediaInteractionCb,n=e.blockClass,o=e.blockSelector,r=e.mirror,i=e.sampling,a=function(e){return We((function(i){var a=ct(i);if(a&&!Ze(a,n,o,!0)){var s=a.currentTime,c=a.volume,l=a.muted,u=a.playbackRate;t({type:e,id:r.getId(a),currentTime:s,volume:c,muted:l,playbackRate:u})}}),i.media||500)},s=[ze("play",a(k.Play)),ze("pause",a(k.Pause)),ze("seeked",a(k.Seeked)),ze("volumechange",a(k.VolumeChange)),ze("ratechange",a(k.RateChange))];return function(){s.forEach((function(e){return e()}))}}(e),d=function(e,t){var n=e.styleSheetRuleCb,o=e.mirror,r=e.stylesheetManager,i=t.win,a=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(e,t){var i=ht(this,o,r.styleMirror),s=i.id,c=i.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:t}]}),a.apply(this,[e,t])};var s,c,l=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,removes:[{index:e}]}),l.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replace:e}),s.apply(this,[e])}),i.CSSStyleSheet.prototype.replaceSync&&(c=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replaceSync:e}),c.apply(this,[e])});var u={};j?u.CSSGroupingRule=i.CSSGroupingRule:(F&&(u.CSSMediaRule=i.CSSMediaRule),B&&(u.CSSConditionRule=i.CSSConditionRule),_&&(u.CSSSupportsRule=i.CSSSupportsRule));var d={};return Object.entries(u).forEach((function(e){var t=Mn(e,2),i=t[0],a=t[1];d[i]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=function(e,t){var a=ht(this.parentStyleSheet,o,r.styleMirror),s=a.id,c=a.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:[].concat(An(ft(this)),[t||0])}]}),d[i].insertRule.apply(this,[e,t])},a.prototype.deleteRule=function(e){var t=ht(this.parentStyleSheet,o,r.styleMirror),a=t.id,s=t.styleId;return(a&&-1!==a||s&&-1!==s)&&n({id:a,styleId:s,removes:[{index:[].concat(An(ft(this)),[e])}]}),d[i].deleteRule.apply(this,[e])}})),function(){i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=l,s&&(i.CSSStyleSheet.prototype.replace=s),c&&(i.CSSStyleSheet.prototype.replaceSync=c),Object.entries(u).forEach((function(e){var t=Mn(e,2),n=t[0],o=t[1];o.prototype.insertRule=d[n].insertRule,o.prototype.deleteRule=d[n].deleteRule}))}}(e,{win:n}),p=vt(e,e.doc),f=function(e,t){var n=e.styleDeclarationCb,o=e.mirror,r=e.ignoreCSSAttributes,i=e.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=function(e,t,a){var c;if(r.has(e))return s.apply(this,[e,t,a]);var l=ht(null==(c=this.parentRule)?void 0:c.parentStyleSheet,o,i.styleMirror),u=l.id,d=l.styleId;return(u&&-1!==u||d&&-1!==d)&&n({id:u,styleId:d,set:{property:e,value:t,priority:a},index:ft(this.parentRule)}),s.apply(this,[e,t,a])};var c=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=function(e){var t;if(r.has(e))return c.apply(this,[e]);var a=ht(null==(t=this.parentRule)?void 0:t.parentStyleSheet,o,i.styleMirror),s=a.id,l=a.styleId;return(s&&-1!==s||l&&-1!==l)&&n({id:s,styleId:l,remove:{property:e},index:ft(this.parentRule)}),c.apply(this,[e])},function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=c}}(e,{win:n}),h=e.collectFonts?function(e){var t=e.fontCb,n=e.doc,o=n.defaultView;if(!o)return function(){};var r=[],i=new WeakMap,a=o.FontFace;o.FontFace=function(e,t,n){var o=new a(e,t,n);return i.set(o,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),o};var s=Ve(n.fonts,"add",(function(e){return function(n){return setTimeout((function(){var e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}}));return r.push((function(){o.FontFace=a})),r.push(s),function(){r.forEach((function(e){return e()}))}}(e):function(){},v=function(e){var t=e.doc,n=e.mirror,o=e.blockClass,r=e.blockSelector,i=e.selectionCb,a=!0,s=function(){var e=t.getSelection();if(!(!e||a&&null!=e&&e.isCollapsed)){a=e.isCollapsed||!1;for(var s=[],c=e.rangeCount||0,l=0;l>2],r+=ee[(3&n[t])<<4|n[t+1]>>4],r+=ee[(15&n[t+1])<<2|n[t+2]>>6],r+=ee[63&n[t+2]];return o%3==2?r=r.substring(0,r.length-1)+"=":o%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(e);return{rr_type:o,base64:r}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[mt(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[mt(e.data,t,n),e.width,e.height]}:le(e,t)||"object"==Bn(e)?{rr_type:e.constructor.name,index:se(e,t,n)}:e}function bt(e,t,n){var o=[];try{var r=Ve(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,n=e.checkoutEveryNms,o=e.checkoutEveryNth,i=e.blockClass,a=void 0===i?"rr-block":i,s=e.blockSelector,c=void 0===s?null:s,l=e.ignoreClass,u=void 0===l?"rr-ignore":l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,f=e.maskTextSelector,h=void 0===f?null:f,v=e.inlineStylesheet,g=void 0===v||v,y=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,x=e.maskInputFn,S=e.maskTextFn,C=e.hooks,I=e.packFn,L=e.sampling,T=void 0===L?{}:L,E=e.dataURLOptions,O=void 0===E?{}:E,M=e.mousemoveWait,A=e.recordCanvas,P=void 0!==A&&A,R=e.recordCrossOriginIframes,N=void 0!==R&&R,j=e.userTriggeredOnInput,F=void 0!==j&&j,_=e.collectFonts,B=void 0!==_&&_,H=e.inlineImages,q=void 0!==H&&H,U=e.plugins,W=e.keepIframeSrcFn,G=void 0===W?function(){return!1}:W,V=e.ignoreCSSAttributes,K=void 0===V?new Set([]):V,X=!N||window.parent===window,Z=!1;if(!X)try{window.parent.document,Z=!1}catch(ye){Z=!0}if(X&&!t)throw new Error("emit function is required");void 0!==M&&void 0===T.mousemove&&(T.mousemove=M),Le.reset();var Y=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==w?w:{password:!0},J=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k}:k||{};!function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,n=new Array(t),o=0;o=o,c=n&&e.timestamp-Q.timestamp>n;(s||c)&&re(!0)}};var ne,ae=function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Mutation},e)}))},se=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Scroll},e)}))},ce=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.CanvasMutation},e)}))},le=new ve({mutationCb:ae,adoptedStyleSheetCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.AdoptedStyleSheet},e)}))}}),ue=new z({mirror:Le,mutationCb:ae,stylesheetManager:le,recordCrossOriginIframes:N,wrappedEmit:oe}),de=Pn(U||[]);try{for(de.s();!(ne=de.n()).done;){var pe=ne.value;pe.getMirror&&pe.getMirror({nodeMirror:Le,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}}catch(we){de.e(we)}finally{de.f()}ie=new he({recordCanvas:P,mutationCb:ce,win:window,blockClass:a,blockSelector:c,mirror:Le,sampling:T.canvas,dataURLOptions:O});var fe=new $({mutationCb:ae,scrollCb:se,bypassOptions:{blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskInputOptions:Y,dataURLOptions:O,maskTextFn:S,maskInputFn:x,recordCanvas:P,inlineImages:q,sampling:T,slimDOMOptions:J,iframeManager:ue,stylesheetManager:le,canvasManager:ie,keepIframeSrcFn:G},mirror:Le});re=function(){var e,t,n,o,i,s,l,u,d,f,v,b,y=arguments.length>0&&void 0!==arguments[0]&&arguments[0];oe(kt({type:m.Meta,data:{href:window.location.href,width:Xe(),height:Ke()}}),y),le.reset(),D.forEach((function(e){return e.lock()}));var w=function(e,t){var n=t||{},o=n.mirror,i=void 0===o?new r:o,a=n.blockClass,s=void 0===a?"rr-block":a,c=n.blockSelector,l=void 0===c?null:c,u=n.maskTextClass,d=void 0===u?"rr-mask":u,p=n.maskTextSelector,f=void 0===p?null:p,h=n.inlineStylesheet,v=void 0===h||h,g=n.inlineImages,m=void 0!==g&&g,b=n.recordCanvas,y=void 0!==b&&b,w=n.maskAllInputs,k=void 0!==w&&w,x=n.maskTextFn,S=n.maskInputFn,C=n.slimDOM,I=void 0!==C&&C,L=n.dataURLOptions,T=n.preserveWhiteSpace,E=n.onSerialize,O=n.onIframeLoad,M=n.iframeLoadTimeout,A=n.onStylesheetLoad,P=n.stylesheetLoadTimeout,R=n.keepIframeSrcFn;return Ue(e,{doc:e,mirror:i,blockClass:s,blockSelector:l,maskTextClass:d,maskTextSelector:f,skipChild:!1,inlineStylesheet:v,maskInputOptions:!0===k?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===k?{password:!0}:k,maskTextFn:x,maskInputFn:S,slimDOMOptions:!0===I||"all"===I?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===I,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===I?{}:I,dataURLOptions:L,inlineImages:m,recordCanvas:y,preserveWhiteSpace:T,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:void 0===R?function(){return!1}:R,newlyAddedElement:!1})}(document,{mirror:Le,blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskAllInputs:Y,maskTextFn:S,slimDOM:J,dataURLOptions:O,recordCanvas:P,inlineImages:q,onSerialize:function(e){$e(e,Le)&&ue.addIframe(e),et(e,Le)&&le.trackLinkElement(e),tt(e)&&fe.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),fe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:G});if(!w)return console.warn("Failed to snapshot the document");oe(kt({type:m.FullSnapshot,data:{node:w,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===(e=document)||void 0===e?void 0:e.documentElement.scrollLeft)||(null==(u=null==(l=null===(t=document)||void 0===t?void 0:t.body)?void 0:l.parentElement)?void 0:u.scrollLeft)||(null==(d=null===(n=document)||void 0===n?void 0:n.body)?void 0:d.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===(o=document)||void 0===o?void 0:o.documentElement.scrollTop)||(null==(v=null==(f=null===(i=document)||void 0===i?void 0:i.body)?void 0:f.parentElement)?void 0:v.scrollTop)||(null==(b=null===(s=document)||void 0===s?void 0:s.body)?void 0:b.scrollTop)||0}}})),D.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,Le.getId(document))};try{var ge=[];ge.push(ze("DOMContentLoaded",(function(){oe(kt({type:m.DomContentLoaded,data:{}}))})));var me=function(e){var t;return gt({mutationCb:ae,mousemoveCb:function(e,t){return oe(kt({type:m.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MouseInteraction},e)}))},scrollCb:se,viewportResizeCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.ViewportResize},e)}))},inputCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Input},e)}))},mediaInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleDeclaration},e)}))},canvasMutationCb:ce,fontCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Font},e)}))},selectionCb:function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Selection},e)}))},blockClass:a,ignoreClass:u,maskTextClass:p,maskTextSelector:h,maskInputOptions:Y,inlineStylesheet:g,sampling:T,recordCanvas:P,inlineImages:q,userTriggeredOnInput:F,collectFonts:B,doc:e,maskInputFn:x,maskTextFn:S,keepIframeSrcFn:G,blockSelector:c,slimDOMOptions:J,dataURLOptions:O,mirror:Le,iframeManager:ue,stylesheetManager:le,shadowDomManager:fe,canvasManager:ie,ignoreCSSAttributes:K,plugins:(null==(t=null==U?void 0:U.filter((function(e){return e.observer})))?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return oe(kt({type:m.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},C)};ue.addLoadListener((function(e){ge.push(me(e.contentDocument))}));var be=function(){re(),ge.push(me(document)),Ie=!0};return"interactive"===document.readyState||"complete"===document.readyState?be():ge.push(ze("load",(function(){oe(kt({type:m.Load,data:{}})),be()}),window)),function(){ge.forEach((function(e){return e()})),Ie=!1}}catch(ge){console.warn(ge)}}}();function qn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n4e6){var n,o=/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim,r=qn(t.matchAll(o));try{for(r.s();!(n=r.n()).done;){var i=n.value;t="image/"===i[1].toLocaleLowerCase().slice(0,6)?t.replace(i[0],"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAQSURBVHgBAQUA+v8ABRg5/wHSAVZN1mnaAAAAAElFTkSuQmCC"):t.replace(i[0],"")}}catch(a){r.e(a)}finally{r.f()}}return{event:JSON.parse(t),size:t.length}}(t).event;e.push(n)}}))}catch(t){console.error(t)}}},{key:"stop",value:function(){this.stopFunction&&this.stopFunction(),this.startDate=void 0,this.events=[],this.bufferSize=0}},{key:"getReplayData",value:function(){return{startDate:this.startDate,events:this.events,baseUrl:window.location.origin,width:window.innerWidth,height:window.innerHeight,isMobile:w(),type:"rrweb"}}}])&&Vn(t.prototype,n),o&&Vn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Jn(e,t){for(var n=0;nthis.startPoint.x&&(r=this.startPoint.x),t.y>this.startPoint.y&&(i=this.startPoint.y),this.path.setAttributeNS(null,"x",r),this.path.setAttributeNS(null,"y",i),this.path.setAttributeNS(null,"width",n),this.path.setAttributeNS(null,"height",o)}}},{key:"mouseDownRect",value:function(e){this.path=document.createElementNS("http://www.w3.org/2000/svg","rect"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",this.color),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",this.strokeWidthRect),this.startPoint=this.getMousePosition(e),this.appendPathToSvg(this.path)}},{key:"mouseDownPen",value:function(e){var t=this.color+"AA",n=this.strokeWidth;"blur"===this.tool&&(t="#000000",n=40),this.path=document.createElementNS("http://www.w3.org/2000/svg","path"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",t),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",n),this.buffer=[];var o=this.getMousePosition(e);this.appendToBuffer(o),this.strPath="M"+o.x+" "+o.y,this.path.setAttribute("d",this.strPath),this.appendPathToSvg(this.path)}},{key:"setTool",value:function(e){this.tool=e}},{key:"setColor",value:function(e){this.color=e}},{key:"getMousePosition",value:function(e){return e.touches&&e.touches.length>0?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}},{key:"getAveragePoint",value:function(e){var t=this.buffer.length;if(t%2==1||t>=this.bufferSize){var n,o,r=0,i=0,a=0;for(o=e;othis.bufferSize;)this.buffer.shift()}},{key:"appendPathToSvg",value:function(e){this.svgElement.appendChild(e),this.pathBuffer.push(e),this.rerender()}},{key:"removeLastAddedPathFromSvg",value:function(){this.pathBuffer.length<=0||!this.svgElement||(this.svgElement.removeChild(this.pathBuffer[this.pathBuffer.length-1]),this.pathBuffer.pop(),this.rerender())}},{key:"fadeOutToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=0,e.style.pointerEvents="none")}},{key:"fadeInToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=1,e.style.pointerEvents="auto")}}],n&&Jn(t.prototype,n),o&&Jn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function to(e){return to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},to(e)}function no(e,t){for(var n=0;n\n \n
'.concat(p("dismiss"),"
\n
").concat(p("rect"),'
\n
\n
\n ').concat(p("drag"),"\n
\n ").concat("capture"===this.type?'
\n '.concat(p("recorderon"),"\n ").concat(p("recorderoff"),'\n \n
\n
\n ').concat(p("mic"),'\n \n
\n
2:00
\n
\n
\n ').concat(p("pointer"),"\n
"):"",'\n
\n ').concat(p("rect"),'\n
\n
\n ').concat(p("pen"),'\n
\n
\n ').concat(p("blur"),'\n
\n
\n
\n ').concat(go.translateText("pickAColor"),'\n
\n
\n ').concat(p("undo"),'\n ').concat(go.translateText("undo"),"\n
\n ").concat("capture"!==this.type?'
'.concat(go.translateText("next"),"
"):"",'\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
').concat(go.translateText("retry"),'
\n
').concat(go.translateText("next"),"
\n
\n
\n
\n "),document.body.appendChild(e),e.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}},{key:"unregisterListeners",value:function(){this.escListener&&document.removeEventListener("keydown",this.escListener),this.pageLeaveListener&&window.removeEventListener("beforeunload",this.pageLeaveListener)}},{key:"registerListeners",value:function(){var e=this;this.escListener=function(t){var n=!1,o=!1;"key"in(t=t||window.event)&&(n="Escape"===t.key,o="Enter"===t.key),n&&e.dismiss(),"screenshot"===e.type&&o&&e.showNextStep()},document.addEventListener("keydown",this.escListener),this.pageLeaveListener=function(e){e.preventDefault(),e.returnValue=""},window.addEventListener("beforeunload",this.pageLeaveListener)}},{key:"show",value:function(e){this.callback=e,this.registerListeners(),this.hideWidgetUI(),this.createEditorUI(),this.setupMousePointer(),"screenshot"===this.type?(ki.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY}),io.disableScroll()):this.setupScreenRecording(),this.screenDrawer=new eo(this.captureScreenDrawerRerender.bind(this)),this.setupColorPicker(),this.setupToolbar()}},{key:"setupColorPicker",value:function(){for(var t=this,n=document.querySelector(".bb-capture-toolbar-item-selectedcolor"),o=document.querySelectorAll(".bb-capture-toolbar-item-color"),r=document.querySelector(".bb-capture-toolbar-item-colorpicker"),i=function(){var i=o[a],s=i.getAttribute("data-color");i.style.backgroundColor=s,i.onclick=function(){i&&(t.screenDrawer.setColor(s),r&&(r.style.display="none"),n.style.backgroundColor=i.style.backgroundColor,e.setPenColor(s))}},a=0;a0?o.classList.remove(e):o.classList.add(e))}}},{key:"captureRenderer",value:function(){if(this.screenRecorder){this.screenRecorder.file&&ki.getInstance().setGlobalDataItem("screenRecordingData",this.screenRecorder.file);var e="bb-capture-editor-item-inactive",t=document.querySelector(".bb-capture-toolbar-item-timer"),n=document.querySelectorAll(".bb-capture-toolbar-item"),o=document.querySelector(".bb-tooltip-screen-recording"),r=document.querySelector(".bb-tooltip-audio-recording"),i=document.querySelector(".bb-capture-editor"),a="bb-capture-editor-recording",s="bb-capture-editor-notrecording";this.screenRecorder.isRecording?(i.classList.add(a),i.classList.remove(s)):(i.classList.add(s),i.classList.remove(a));var c=document.querySelector(".bb-capture-toolbar");document.querySelector(".bb-capture-preview").style.display=this.screenRecorder.file?"flex":"none",c.style.display=this.screenRecorder.file?"none":"flex";for(var l=0;l0){var t=e.filter((function(e){return new Date(e.createdAt)>new Date(Date.now()-36e5)}));t.length>2?this.notifications=t.splice(0,t.length-2):this.notifications=t,this.renderNotifications()}}catch(n){}}},{key:"setNotificationCount",value:function(e){Gt.getInstance().isOpened()?(this.unreadCount=0,this.updateTabBarNotificationCount()):this.unreadCount=e,this.updateTabBarNotificationCount(),a.getInstance().updateNotificationBadge(this.unreadCount)}},{key:"showNotification",value:function(e){this.notificationContainer&&e&&e.data&&(this.notifications.find((function(t){return e.outbound===t.outbound}))||(this.notifications.push(e),e.sound&&Yo.ping()),this.notifications.length>2&&this.notifications.shift(),I(this.unreadNotificationsKey,this.notifications),this.renderNotifications())}},{key:"renderNotifications",value:function(){var e=this;if(this.notificationContainer){this.clearAllNotifications(!0);var t=document.createElement("div");t.onclick=function(){e.clearAllNotifications(),e.currentNewsIndex=0},t.className="gleap-notification-close",t.innerHTML=p("dismiss"),this.notificationContainer.appendChild(t);var n=this.notifications.filter((function(e){return e.data.news})).sort((function(e,t){return new Date(e.createdAt)-new Date(t.createdAt)})),o=this.notifications.filter((function(e){return!e.data.news}));if(n.length>0){var r=this.currentNewsIndex1){var v=document.createElement("div");v.className="gleap-news-pagination";var g=document.createElement("span");g.className="gleap-news-page-indicator",g.innerText="".concat(r+1," / ").concat(n.length),v.appendChild(g);var m=document.createElement("button");m.className="gleap-news-next-button",r\n
\n
\n '.concat(t.data.text,'\n
\n
\n
\n
\n
\n \n \n \n ').concat(t.data.nextStepTitle,"\n
\n
\n ")}else r.className="gleap-notification-item",r.innerHTML="\n ".concat(t.data.sender&&t.data.sender.profileImageUrl&&''),'\n
\n ').concat(t.data.sender?'
\n '.concat(t.data.sender.name,"\n
"):"",'\n
').concat(n,"
\n
");e.notificationContainer.appendChild(r)},y=0;y0||o.length>0||this.clearAllNotifications(!0)}}},{key:"openNews",value:function(e){e.data.news?ki.openNewsArticle(e.data.news.id,!0):ki.open()}},{key:"renderDescription",value:function(e){var t=e.data,n=t.previewText,o=t.sender;return n&&n.length>0?n:o?'\n
\n '.concat(o.profileImageUrl?'').concat(o.name,''):"","\n ").concat(o.name,"\n
\n "):""}},{key:"clearAllNotifications",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.notificationContainer)for(e||(this.notifications=[],this.currentNewsIndex=0,I(this.unreadNotificationsKey,this.notifications));this.notificationContainer.firstChild;)this.notificationContainer.removeChild(this.notificationContainer.firstChild)}},{key:"updateContainerStyle",value:function(){if(this.notificationContainer){var e=ut.getInstance().getFlowConfig(),t="gleap-notification-container--left",n="gleap-notification-container--no-button";this.notificationContainer.classList.remove(t),this.notificationContainer.classList.remove(n),e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_CLASSIC_LEFT&&e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_BOTTOM_LEFT||this.notificationContainer.classList.add(t),null===a.getInstance().buttonHidden?e.feedbackButtonPosition===a.FEEDBACK_BUTTON_NONE&&this.notificationContainer.classList.add(n):a.getInstance().buttonHidden&&this.notificationContainer.classList.add(n),this.notificationContainer.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Eo(t.prototype,n),o&&Eo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Po(e){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(e)}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function No(e){for(var t=1;t'),document.body.appendChild(t),this.bannerContainer=t}},{key:"sendMessage",value:function(e){try{var t=document.querySelector(".gleap-b-frame");t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(No(No({},e),{},{type:"banner"})),"*")}catch(n){}}},{key:"showBanner",value:function(e){this.injectBannerUI(e)}}])&&Do(t.prototype,n),o&&Do(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bo(e){return Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo(e)}function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function qo(e){for(var t=1;t\n
\n \n
\n '),document.body.appendChild(n),this.modalContainer=n,this.modalBackdropClickListener=this.modalContainer.querySelector(".gleap-modal-backdrop").addEventListener("click",(function(){var e,n;(null===(e=null===(n=t.modalData)||void 0===n?void 0:n.showCloseButton)||void 0===e||e)&&t.hideModal()})),document.body.classList.add("gleap-modal-open")}},{key:"_postMessage",value:function(e){try{var t=this.modalContainer.querySelector(".gleap-modal-frame");null!=t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(qo(qo({},e),{},{type:"modal"})),this.modalUrl)}catch(n){}}},{key:"showModal",value:function(e){e&&e.config&&this._injectModalUI(e.config)}},{key:"hideModal",value:function(){this.modalContainer&&(this.modalBackdropClickListener&&this.modalContainer.querySelector(".gleap-modal-backdrop").removeEventListener("click",this.modalBackdropClickListener),document.body.removeChild(this.modalContainer),this.modalContainer=null,document.body.classList.remove("gleap-modal-open"))}}])&&Uo(t.prototype,n),o&&Uo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function Ko(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0])||o(t.gleapCollapseUI,e)&&o(t.gleapFrameContainer,n))&&(t.gleapCollapseUI&&t.gleapCollapseUI.classList.toggle(e),t.gleapFrameContainer&&t.gleapFrameContainer.classList.toggle(n))})),wr(this,"injectCollapseUI",(function(){if(!t.injectedCollapseUI){t.injectedCollapseUI=!0;var e=document.createElement("div");e.className="gleap-admin-collapse-ui",e.innerHTML='
\n '.concat(p("arrowdown"),"\n
"),document.body.appendChild(e),t.gleapCollapseUI=e,e.addEventListener("click",(function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t.toggleCollapseUI()}))}})),wr(this,"injectFrame",(function(){var e;if(!t.injectedFrame){t.injectedFrame=!0;var n=document.createElement("div");n.className="gleap-admin-frame-container",n.innerHTML=''),document.body.appendChild(n),t.gleapFrameContainer=n,t.gleapFrame=document.querySelector(".gleap-admin-frame")}}))}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"logCurrentPage",value:function(){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.sendMessageToTourBuilder({name:"page-changed",data:{page:e}}))}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"initAdminHelper",value:function(){var e=this;Yr.getInstance().disable(),e.adminHelper=new vr;try{e.adminHelper.onElementPicked=function(t){e.toggleCollapseUI(!0),e.sendMessageToTourBuilder({name:"element-picked",data:{selector:t}})}}catch(t){console.log(t)}e.injectFrame(),e.injectCollapseUI(),e.setFrameHeight("loading")}},{key:"setFrameHeight",value:function(e){if(this.gleapFrameContainer){var t="";t="picker"===e||"navigate"===e?"65px":"editor"===e?"100vh":"0px",this.gleapFrameContainer.style.height=t}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!window.gleapAdminDisabled){var t=this;window.addEventListener("message",(function(n){if("https://app.gleap.io"===n.origin)try{var o=JSON.parse(n.data);if("admin"===o.type&&("load"===o.name&&(t.configData=o.data,t.initAdminHelper()),"smartlink-search-result"===o.name&&e.sendMessageToTourBuilder({name:"smartlink-search-result",data:o.data})),"tourbuilder"===o.type){var r;if("loaddata"===o.name&&e.sendMessageToTourBuilder({name:"data",data:br(br({},t.configData),{},{currentPage:window.location.href})}),"highlight-element"===o.name&&(document.querySelectorAll(".gleap-admin-highlight").forEach((function(e){e.classList.remove("gleap-admin-highlight")})),null!=o&&null!==(r=o.data)&&void 0!==r&&r.selector)){var i,a=document.querySelector(null==o||null===(i=o.data)||void 0===i?void 0:i.selector);a&&a.classList.add("gleap-admin-highlight")}if("smartlink-search"===o.name&&e.sendMessage({name:"smartlink-search",data:o.data}),"product-tour-started"===o.name&&e.sendMessage({name:"product-tour-started",data:o.data}),"save"===o.name&&e.sendMessage({name:"save",data:o.data}),"update-steps"===o.name&&e.sendMessage({name:"update-steps",data:o.data}),"click"===o.name)try{document.querySelector(o.data.selector).click()}catch(s){console.log(s)}"status-changed"===o.name&&(t.status=o.data,e.setFrameHeight(t.status),t.adminHelper.stopPicker(),"picker"===t.status&&t.adminHelper.startPicker())}}catch(c){}})),this.sendMessage({name:"init"}),this.startPageListener()}}},{key:"sendMessage",value:function(e){try{window&&window.opener&&window.opener.postMessage(JSON.stringify(br(br({},e),{},{type:"admin"})),"*")}catch(t){}}},{key:"sendMessageToTourBuilder",value:function(e){try{this.gleapFrame&&this.gleapFrame.contentWindow&&this.gleapFrame.contentWindow.postMessage(JSON.stringify(br(br({},e),{},{type:"tourbuilder"})),"*")}catch(t){}}}])&&yr(t.prototype,n),o&&yr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Cr(e){return function(e){if(Array.isArray(e))return Ir(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ir(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ir(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{})}function n(t){return t?e[t]:e}function o(e,t,n,o){return(e/=o/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function r(e){var t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap((function(e){var n=e.matches(t),o=Array.from(e.querySelectorAll(t));return[].concat(Cr(n?[e]:[]),o)})).filter((function(e){return"none"!==getComputedStyle(e).pointerEvents&&function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)}))}function i(e){if(e&&!function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e)){var t=n("smoothScroll");e.scrollIntoView({behavior:!t||a(e)?"auto":"smooth",inline:"center",block:"center"})}}function a(e){if(e&&e.parentElement){var t=e.parentElement;return t.scrollHeight>t.clientHeight}}var s={};function c(e,t){s[e]=t}function l(e){return e?s[e]:s}function u(){s={}}var d={};function p(e,t){d[e]=t}function f(e){var t;null==(t=d[e])||t.call(d)}function h(e){if(e){var t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};c("__activeStagePosition",n),g(n)}}function v(e){var t=function(e){var t=window.innerWidth,o=window.innerHeight,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.classList.add("gleap-tour-overlay","gleap-tour-overlay-animated"),r.setAttribute("viewBox","0 0 ".concat(t," ").concat(o)),r.setAttribute("xmlSpace","preserve"),r.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("preserveAspectRatio","xMinYMin slice"),r.style.fillRule="evenodd",r.style.clipRule="evenodd",r.style.strokeLinejoin="round",r.style.strokeMiterlimit="2",r.style.zIndex="10000",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%";var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",m(e)),i.style.fill=n("overlayColor")||"rgb(0,0,0)",i.style.opacity="".concat(n("overlayOpacity")),i.style.pointerEvents="auto",i.style.cursor="auto",r.appendChild(i),r}(e);document.body.appendChild(t),S(t,(function(e){"path"===e.target.tagName&&f("overlayClick")})),c("__overlaySvg",t)}function g(e){var t=l("__overlaySvg");if(t){var n=t.firstElementChild;if("path"!==(null==n?void 0:n.tagName))throw new Error("no path element found in stage svg");n.setAttribute("d",m(e))}else v(e)}function m(e){var t=window.innerWidth,o=window.innerHeight,r=n("stagePadding")||0,i=n("stageRadius")||0,a=e.width+2*r,s=e.height+2*r,c=Math.min(i,a/2,s/2),l=Math.floor(Math.max(c,0)),u=e.x-r+l,d=e.y-r,p=a-2*l,f=s-2*l;return"M".concat(t,",0L0,0L0,").concat(o,"L").concat(t,",").concat(o,"L").concat(t,",0Z\n M").concat(u,",").concat(d," h").concat(p," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",").concat(l," v").concat(f," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",").concat(l," h-").concat(p," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",-").concat(l," v-").concat(f," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",-").concat(l," z")}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,r=e.element,a=r;if("string"==typeof a)try{a=document.querySelector(r)}catch(u){var s=r.replace(/(#[^#\s]+)/g,(function(e){return e.replace(/:/g,"\\:")}));a=document.querySelector(s)}if(r&&!a&&t>=0)setTimeout((function(){C(),b(e,t-100)}),100);else{if(!a&&("INPUT"===e.mode||"CLICK"===e.mode))return n("onElementNotFound")(e);a||(a=function(){var e=document.getElementById("gleap-tour-dummy-element");if(e)return e;var t=document.createElement("div");return t.id="gleap-tour-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}()),function(e,t){var r,a,s=400,u=Date.now(),d=l("__activeStep"),p=l("__activeElement")||e,f=!p||p===e,v="gleap-tour-dummy-element"===e.id,m="gleap-tour-dummy-element"===p.id,b=n("animate"),y=t.onHighlightStarted||n("onHighlightStarted"),w=(null==t?void 0:t.onHighlighted)||n("onHighlighted"),k=(null==d?void 0:d.onDeselected)||n("onDeselected"),x=n(),S=l();!f&&k&&k(m?void 0:p,d,{config:x,state:S});y&&y(v?void 0:e,t,{config:x,state:S});var L=!f&&b,T=!1;C(),c("previousStep",d),c("previousElement",p),c("activeStep",t),c("activeElement",e);var E=function r(){if(l("__transitionCallback")===r){var i=Date.now()-u,a=s-i<=s/2;t.popover&&a&&!T&&L&&(I(e,t),T=!0),n("animate")&&i0&&R[0].focus()}function L(){var e=l("popover");if(null==e?void 0:e.wrapper){var t=e.wrapper.getBoundingClientRect(),o=n("stagePadding")||0,r=n("popoverOffset")||0;return{width:t.width+o+r,height:t.height+o+r,realWidth:t.width,realHeight:t.height}}}function T(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.top-r,window.innerHeight-o.realHeight-i.width),i.width):"end"===e?Math.max(Math.min(n.top-(null==o?void 0:o.realHeight)+n.height+r,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):"center"===e?Math.max(Math.min(n.top+n.height/2-(null==o?void 0:o.realHeight)/2,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):0}function E(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.left-r,window.innerWidth-o.realWidth-i.width),i.width):"end"===e?Math.max(Math.min(n.left-(null==o?void 0:o.realWidth)+n.width+r,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):"center"===e?Math.max(Math.min(n.left+n.width/2-(null==o?void 0:o.realWidth)/2,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):0}function O(e,t){var o=l("popover");if(o){var r=(null==t?void 0:t.popover)||{},i=r.align,a=void 0===i?"start":i,s=r.side,c=void 0===s?"left":s,u=a,d="gleap-tour-dummy-element"===e.id?"over":c,p=n("stagePadding")||0,f=L(),h=o.arrow.getBoundingClientRect(),v=e.getBoundingClientRect(),g=v.top-f.height,m=g>=0,b=window.innerHeight-(v.bottom+f.height),y=b>=0,w=v.left-f.width,k=w>=0,x=window.innerWidth-(v.right+f.width),S=x>=0,C=!(m||y||k||S),I=d;if("top"===d&&m?S=k=y=!1:"bottom"===d&&y?S=k=m=!1:"left"===d&&k?S=m=y=!1:"right"===d&&S&&(k=m=y=!1),"over"===d){var O=window.innerWidth/2-f.realWidth/2,M=window.innerHeight/2-f.realHeight/2;o.wrapper.style.left="".concat(O,"px"),o.wrapper.style.right="auto",o.wrapper.style.top="".concat(M,"px"),o.wrapper.style.bottom="auto"}else if(C){var A=window.innerWidth/2-(null==f?void 0:f.realWidth)/2;o.wrapper.style.left="".concat(A,"px"),o.wrapper.style.right="auto",o.wrapper.style.bottom="".concat(10,"px"),o.wrapper.style.top="auto"}else if(k){var P=Math.min(w,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),R=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(P,"px"),o.wrapper.style.top="".concat(R,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="left"}else if(S){var N=Math.min(x,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),D=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.right="".concat(N,"px"),o.wrapper.style.top="".concat(D,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.left="auto",I="right"}else if(m){var j=Math.min(g,window.innerHeight-f.realHeight-h.width),F=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.top="".concat(j,"px"),o.wrapper.style.left="".concat(F,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="top"}else if(y){var _=Math.min(b,window.innerHeight-(null==f?void 0:f.realHeight)-h.width),B=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(B,"px"),o.wrapper.style.bottom="".concat(_,"px"),o.wrapper.style.top="auto",o.wrapper.style.right="auto",I="bottom"}C?o.arrow.classList.add("gleap-tour-popover-arrow-none"):function(e,t,n){var o=l("popover");if(!o)return;var r=n.getBoundingClientRect(),i=L(),a=o.arrow,s=i.width,c=window.innerWidth,u=r.width,d=r.left,p=i.height,f=window.innerHeight,h=r.top,v=r.height;a.className="gleap-tour-popover-arrow";var g=t,m=e;"top"===t?(d+u<=0?(g="right",m="end"):d+u-s<=0&&(g="top",m="start"),d>=c?(g="left",m="end"):d+s>=c&&(g="top",m="end")):"bottom"===t?(d+u<=0?(g="right",m="start"):d+u-s<=0&&(g="bottom",m="start"),d>=c?(g="left",m="start"):d+s>=c&&(g="bottom",m="end")):"left"===t?(h+v<=0?(g="bottom",m="end"):h+v-p<=0&&(g="left",m="start"),h>=f?(g="top",m="end"):h+p>=f&&(g="left",m="end")):"right"===t&&(h+v<=0?(g="bottom",m="start"):h+v-p<=0&&(g="right",m="start"),h>=f?(g="top",m="start"):h+p>=f&&(g="right",m="end"));g?(a.classList.add("gleap-tour-popover-arrow-side-".concat(g)),a.classList.add("gleap-tour-popover-arrow-align-".concat(m))):a.classList.add("gleap-tour-popover-arrow-none")}(u,I,e)}}return function(){function e(){n("allowClose")&&h()}function o(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e+1;t[o]?f(o):h()}}function r(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e-1;t[o]?f(o):h()}}function i(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),o=l("__activeStep"),i=l("__activeElement");if("CLICK"!==o.mode)if(void 0!==t&&void 0!==o)if(void 0!==l("activeIndex")){var a=(null==(e=o.popover)?void 0:e.onPrevClick)||n("onPrevClick");if(a)return a(i,o,{config:n(),state:l()});r()}}}function a(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),r=l("__activeStep"),i=l("__activeElement");if("CLICK"!==r.mode&&void 0!==t&&void 0!==r){var a=(null==(e=r.popover)?void 0:e.onNextClick)||n("onNextClick");if(a)return a(i,r,{config:n(),state:l()});o()}}}function s(){l("isInitialized")||(c("isInitialized",!0),document.body.classList.add("gleap-tour-active",n("animate")?"gleap-tour-fade":"gleap-tour-simple"),window.addEventListener("keyup",x,!1),window.addEventListener("keydown",k,!1),window.addEventListener("resize",w),window.addEventListener("scroll",w),p("overlayClick",e),p("escapePress",e),p("arrowLeftPress",i),p("arrowRightPress",a))}function f(){var e,t,o,r,i,a,s,l,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,d=n("steps");if(!d)return console.error("No steps to drive through"),void h();if(d[u]){c("__activeOnDestroyed",document.activeElement),c("activeIndex",u);var p=d[u],v=d[u+1],g=d[u-1],m=(null==(e=p.popover)?void 0:e.doneBtnText)||n("doneBtnText")||"Done",y=n("allowClose"),w=void 0!==(null==(t=p.popover)?void 0:t.showProgress)?null==(o=p.popover)?void 0:o.showProgress:n("showProgress"),k=((null==(r=p.popover)?void 0:r.progressText)||n("progressText")||"{{current}} of {{total}}").replace("{{current}}","".concat(u+1)).replace("{{total}}","".concat(d.length)),x=(null==(i=p.popover)?void 0:i.showButtons)||n("showButtons"),S=["next","previous"].concat(Cr(y?["close"]:[])).filter((function(e){return!(null==x?void 0:x.length)||x.includes(e)})),C=(null==(a=p.popover)?void 0:a.onNextClick)||n("onNextClick"),I=(null==(s=p.popover)?void 0:s.onPrevClick)||n("onPrevClick"),L=(null==(l=p.popover)?void 0:l.onCloseClick)||n("onCloseClick");b(Tr(Tr({},p),{},{popover:Tr({showButtons:S,nextBtnText:v?void 0:m,disableButtons:Cr(g?[]:["previous"]),showProgress:w,progressText:k,onNextClick:C||function(){v?f(u+1):h()},onPrevClick:I||function(){f(u-1)},onCloseClick:L||function(){h()}},(null==p?void 0:p.popover)||{})}))}else h()}function h(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=l("__activeElement"),o=l("__activeStep"),r=l("__activeOnDestroyed"),i=n("onDestroyStarted");if(e&&i){i(!t||"gleap-tour-dummy-element"===(null==t?void 0:t.id)?void 0:t,o,{config:n(),state:l()})}else{var a,s,c,p=(null==o?void 0:o.onDeselected)||n("onDeselected"),f=n("onDestroyed");if(document.body.classList.remove("gleap-tour-active","gleap-tour-fade","gleap-tour-simple"),window.removeEventListener("keyup",x),window.removeEventListener("resize",w),window.removeEventListener("scroll",w),(s=l("popover"))&&(null==(a=s.wrapper.parentElement)||a.removeChild(s.wrapper)),function(){var e;null==(e=document.getElementById("gleap-tour-dummy-element"))||e.remove(),document.querySelectorAll(".gleap-tour-active-element").forEach((function(e){e.classList.remove("gleap-tour-active-element","gleap-tour-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}))}(),(c=l("__overlaySvg"))&&c.remove(),d={},u(),t&&o){var h="gleap-tour-dummy-element"===t.id;p&&p(h?void 0:t,o,{config:n(),state:l()}),f&&f(h?void 0:t,o,{config:n(),state:l()})}r&&r.focus()}}return t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{isActive:function(){return l("isInitialized")||!1},refresh:w,drive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;s(),f(e)},setConfig:t,setSteps:function(e){u(),t(Tr(Tr({},n()),{},{steps:e}))},getConfig:n,getState:l,getActiveIndex:function(){return l("activeIndex")},isFirstStep:function(){return 0===l("activeIndex")},isLastStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&t===e.length-1},getActiveStep:function(){return l("activeStep")},getActiveElement:function(){return l("activeElement")},getPreviousElement:function(){return l("previousElement")},getPreviousStep:function(){return l("previousStep")},moveNext:o,movePrevious:r,moveTo:function(e){(n("steps")||[])[e]?f(e):h()},hasNextStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t+1]},hasPreviousStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t-1]},highlight:function(e){s(),b(Tr(Tr({},e),{},{popover:e.popover?Tr({showButtons:[],showProgress:!1,progressText:""},e.popover):void 0}))},destroy:function(){h(!1)}}}}();const Mr=Or;function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}function Pr(){Pr=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new M(o||[]);return r(a,"_invoke",{value:L(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",v="completed",g={};function m(){}function b(){}function y(){}var w={};l(w,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&o.call(x,a)&&(w=x);var S=y.prototype=m.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(r,i,a,s){var c=d(e[r],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ar(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function L(t,n,o){var r=p;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var c=T(s,o);if(c){if(c===g)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===p)throw r=v,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var l=d(t,n,o);if("normal"===l.type){if(r=o.done?v:f,l.arg===g)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(r=v,o.method="throw",o.arg=l.arg)}}}function T(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.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,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];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=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Rr(e,t){for(var n=0;n=0&&t.productTourData&&t.productTourData.steps){var e=t.productTourData.steps[t.currentActiveIndex];e&&e.selector&&""!==e.selector&&t.updatePointerPosition(document.querySelector(e.selector),e)}})))}var t,n,o;return t=e,n=[{key:"disable",value:function(){this.disabled=!0,this.cleanup()}},{key:"startWithConfig",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;"undefined"!=typeof window&&(this.productTourId||this.disabled||(this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0,this.onCompleteCallback=n,this.start()))}},{key:"storeUncompletedTour",value:function(){if("undefined"!=typeof window)if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Fr,JSON.stringify(e))}catch(t){}else localStorage.removeItem(Fr)}},{key:"attachScrollListeners",value:function(e,t){var n=this;if("undefined"!=typeof window&&e){var o=function(e){if("undefined"!=typeof window){for(var t=[],n=e.parentElement;n;){var o=window.getComputedStyle(n);("auto"===o.overflowY||"scroll"===o.overflowY)&&n.scrollHeight>n.clientHeight&&t.push(n),n=n.parentElement}return t}}(e);o.push(window),o.forEach((function(o){var r=function(){clearTimeout(n._scrollDebounceTimer),n._scrollDebounceTimer=setTimeout((function(){n.updatePointerPosition(e,t)}),150)};o.addEventListener("scroll",r,{passive:!0}),n._scrollListeners.push({el:o,handler:r})}))}}},{key:"removeScrollListeners",value:function(){"undefined"!=typeof window&&(this._scrollListeners&&this._scrollListeners.length>0&&(this._scrollListeners.forEach((function(e){var t=e.el,n=e.handler;t.removeEventListener("scroll",n)})),this._scrollListeners=[]),this._scrollDebounceTimer&&(clearTimeout(this._scrollDebounceTimer),this._scrollDebounceTimer=null))}},{key:"updatePointerPosition",value:function(e,t){var n,o=this;if("undefined"!=typeof window)try{var r=this._pointerContainer||document.getElementById(_r);if(!r)return;if(!e)return r.style.position="fixed",r.style.left="50%",r.style.top="50%",r.style.transform="translate(-50%, -50%)",function(e){if("undefined"!=typeof window){var t=e-window.innerHeight/2;window.scrollTo({top:t,behavior:"smooth"})}}(window.innerHeight/2),this.removeScrollListeners(),this._currentAnchor=null,void(this._currentStep=null);n=e,"undefined"!=typeof window&&n&&n.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});var i=0;!function n(){if(function(e){if("undefined"!=typeof window){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}}(e)||i>=20){var a=e.getBoundingClientRect(),s=a.left+a.width/2,c=a.top+a.height/2+10;r.style.position="fixed",r.style.left="".concat(s,"px"),r.style.top="".concat(c,"px"),r.style.transform="translate(-50%, -50%)";var l=350;l>window.innerWidth-40&&(l=window.innerWidth-40),s+l>window.innerWidth-20?r.classList.add("copilot-pointer-container-right"):r.classList.remove("copilot-pointer-container-right"),o._currentAnchor===e&&o._currentStep===t||(o.removeScrollListeners(),o._currentAnchor=e,o._currentStep=t,o.attachScrollListeners(e,t))}else i++,setTimeout(n,100)}()}catch(a){}}},{key:"cleanup",value:function(){var e=this;"undefined"!=typeof window&&(document.body.classList.add("gl-copilot-fade-out"),setTimeout((function(){if(e._pointerContainer)e._pointerContainer.remove(),e._pointerContainer=null;else{var t=document.getElementById(_r);t&&t.remove()}var n=document.getElementById(Hr);n&&n.remove();var o=document.getElementById(Br);o&&o.remove(),document.body.classList.remove("gl-copilot-fade-out")}),800),this.removeScrollListeners())}},{key:"toggleAudio",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.audioMuted=e,this.currentAudio&&(this.currentAudio.muted=this.audioMuted),document.querySelector(".".concat(Hr,"-mute")).innerHTML=p(this.audioMuted?"unmute":"mute")}},{key:"setupCopilotTour",value:function(){var e,t,n,o,r,i,a=this;if("undefined"!=typeof window){var s,c,l=null!==(e=null===(t=ut.getInstance().flowConfig)||void 0===t?void 0:t.color)&&void 0!==e?e:"#485BFF",u=d(l),f=document.getElementById(Br);f||((f=document.createElement("style")).id=Br,f.type="text/css",f.textContent="\n #".concat(_r," {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n align-items: flex-start;\n pointer-events: none;\n z-index: 2147483610;\n transition: all 0.5s ease;\n }\n .").concat(_r,"-clickmode {\n cursor: pointer;\n pointer-events: all !important;\n }\n .").concat(_r,"-clickmode #copilot-info-bubble-content {\n display: flex !important;\n }\n .").concat(_r,"-clickmode svg {\n display: none !important;\n }\n #").concat(_r," svg {\n width: 20px;\n height: auto;\n fill: none;\n }\n #copilot-info-bubble {\n position: relative;\n }\n #copilot-info-bubble-content-container {\n position: absolute;\n top: 0px;\n left: 0px;\n min-width: min(300px, 80vw);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n .").concat(_r,"-right #copilot-info-bubble-content-container {\n left: auto !important;\n right: 0px !important;\n align-items: flex-end;\n }\n .").concat(_r,"-right .copilot-info-bubble-content {\n margin-right: 5px;\n }\n .").concat(_r,"-right svg {\n transform: scaleX(-1);\n }\n #copilot-info-bubble-content svg {\n width: 16px;\n height: 16px;\n display: inline-block !important;\n margin-left: 5px;\n }\n #copilot-info-bubble-content {\n margin-top: 18px;\n margin-left: 5px;\n padding: 10px 15px;\n border-radius: 20px;\n background-color: black;\n color: white;\n font-family: Arial, sans-serif;\n font-size: 14px;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);\n max-width: 100%;\n white-space: normal;\n overflow-wrap: break-word;\n word-break: normal;\n hyphens: none;\n }\n .").concat(_r,"-right #copilot-info-bubble-content {\n margin-top: 30px;\n margin-left: 0px;\n margin-right: 5px;\n }\n .click-wave {\n position: absolute;\n width: 34px;\n height: 34px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n pointer-events: none;\n z-index: 2147483611;\n animation: click-wave-animation 0.8s ease forwards;\n }\n @keyframes click-wave-animation {\n 0% {\n transform: scale(0.2);\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n }\n @keyframes slideInFromTop {\n 0% {\n transform: translateY(-100%);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n }\n .").concat(Hr," {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 2147483610;\n background: #fff;\n padding: 6px;\n border-radius: 10px;\n box-shadow: 0 0 20px 0 #C294F2;\n display: flex;\n align-items: center;\n gap: 8px;\n border: 1px solid rgba(192, 146, 242, 0.5);\n animation: slideInFromTop 0.5s ease-out forwards;\n }\n .").concat(Hr," span {\n font-size: 13px;\n color: #000;\n font-family: sans-serif;\n }\n .").concat(Hr,"-avatar {\n width: 24px;\n height: 24px;\n flex-shrink: 0;\n border-radius: 6px;\n }\n .").concat(Hr,"-mute {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .").concat(Hr,"-mute svg {\n width: 20px;\n height: auto;\n cursor: pointer;\n animation: pulsate 2s infinite;\n }\n .").concat(Hr,"-mute svg:hover {\n opacity: 0.8;\n }\n .").concat(Hr,"-dismiss {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-right: 3px;\n }\n .").concat(Hr,"-dismiss svg {\n width: 15px;\n height: auto;\n cursor: pointer;\n }\n .").concat(Hr,"-dismiss svg:hover {\n opacity: 0.8;\n }\n @keyframes pulsate {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n 50% {\n transform: scale(1.1);\n opacity: 0.8;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n }\n @keyframes glCoFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n @keyframes glCoFadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n .gleap-audio-unmute-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483620;\n }\n\n .gleap-audio-unmute-modal {\n background-color: #fff;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);\n text-align: center;\n max-width: 90%;\n width: 400px;\n }\n\n .gleap-audio-unmute-modal p {\n margin-bottom: 20px;\n font-size: 16px;\n line-height: 22px;\n font-weight: normal;\n }\n\n .gleap-audio-unmute-button {\n background: ").concat(l,";\n color: ").concat(u,";\n outline: none;\n border: none;\n padding: 10px 14px;\n border-radius: 12px;\n font-size: 14px;\n font-weight: bold;\n cursor: pointer;\n }\n\n .gleap-audio-unmute-button:hover {\n opacity: 0.8;\n }\n\n .gleap-tour-continue-button {\n color: ").concat(l,";\n text-decoration: none;\n cursor: pointer;\n font-size: 14px;\n font-weight: bold;\n border: none;\n background: none;\n padding: 0;\n margin: 0;\n margin-left: 20px;\n }\n\n .gleap-tour-continue-button:hover {\n opacity: 0.8;\n }\n\n body.gl-copilot-fade-out::before,\n body.gl-copilot-fade-out::after,\n body.gl-copilot-fade-out #").concat(Hr," {\n animation: glCoFadeOut 0.8s ease-out forwards;\n }\n ").concat(null===(s=null===(c=this.productTourData)||void 0===c?void 0:c.playVoice)||void 0===s||s?"":"\n .".concat(Hr,"-mute {\n display: none;\n }\n "),"\n ").concat(this.productTourData.gradient?'body::before {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n box-sizing: border-box;\n border: 18px solid transparent;\n filter: blur(25px);\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }\n \n body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0.5;\n box-sizing: border-box;\n border: 3px solid transparent;\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }':'body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0;\n }',"\n "),document.head.appendChild(f));var h=document.createElement("div");h.id=_r,h.style.opacity=0,this._pointerContainer=h;var v=document.createElementNS("http://www.w3.org/2000/svg","svg");v.setAttribute("viewBox","0 0 380 476"),v.innerHTML='';var g=document.createElement("div");g.id="copilot-info-bubble",g.innerHTML="
";var m=document.createElement("div");m.id=Hr,m.classList.add(Hr),m.innerHTML='\n \n ').concat(null===(o=this.productTourData)||void 0===o?void 0:o.kaiSlug,'\n
\n ').concat(p(this.audioMuted?"unmute":"mute"),"\n
\n ").concat(null!==(r=this.productTourData)&&void 0!==r&&r.allowClose?'
\n ').concat(p("dismiss"),"\n
"):"","\n "),document.body.appendChild(m),document.querySelector(".".concat(Hr,"-mute")).addEventListener("click",(function(){a.toggleAudio(!a.audioMuted)})),null!==(i=this.productTourData)&&void 0!==i&&i.allowClose&&document.querySelector(".".concat(Hr,"-dismiss")).addEventListener("click",(function(){a.completeTour(!1)})),h.appendChild(v),h.appendChild(g),document.body.appendChild(h)}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this.productTourData;t&&function(){return qr.apply(this,arguments)}().then((function(n){e.audioMuted=!n,e.setupCopilotTour(),e.audioMuted&&null!=t&&t.showUnmuteModal?e.showAudioUnmuteModal():setTimeout((function(){e.renderNextStep()}),1500)}))}}},{key:"showAudioUnmuteModal",value:function(){var e,t,n,o=this,r=document.createElement("div");r.classList.add("gleap-audio-unmute-modal-overlay");var i=document.createElement("div");i.classList.add("gleap-audio-unmute-modal");var a=document.createElement("p");a.textContent=null===(e=this.productTourData)||void 0===e?void 0:e.unmuteModalTitle,i.appendChild(a);var s=document.createElement("button");s.classList.add("gleap-audio-unmute-button"),s.textContent=null===(t=this.productTourData)||void 0===t?void 0:t.unmuteModalButton,s.addEventListener("click",(function(){o.toggleAudio(!1),r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(s);var c=document.createElement("button");c.classList.add("gleap-tour-continue-button"),c.textContent=null===(n=this.productTourData)||void 0===n?void 0:n.unmuteModalContinue,c.addEventListener("click",(function(){r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(c),r.appendChild(i),document.body.appendChild(r)}},{key:"completeTour",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];"undefined"!=typeof window&&(this.cleanup(),this.onCompleteCallback&&this.onCompleteCallback(e))}},{key:"renderNextStep",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this,n=this.productTourData.steps;if(this.currentActiveIndex>=n.length)setTimeout((function(){e.completeTour()}),500);else{var o=n[this.currentActiveIndex],r=function(n){if(e._pointerContainer.style.display="flex",o.selector&&o.selector.length>0&&!n)e.completeTour(!1);else{var r=function(){if("INPUT"===o.mode&&n){var e,r=function(){document.querySelector("#".concat(_r)).classList.remove("copilot-pointer-container-clickmode"),n.classList.remove("gleap-input-highlight"),document.getElementById(_r).style.display="none",t.currentActiveIndex++,t.storeUncompletedTour(),t.renderNextStep()};if("default"===(null!==(e=o.inputType)&&void 0!==e?e:"default")){var i=function e(t){var o;if(0!==(null==t||null===(o=t.target)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.length)){var i=document.getElementById("copilot-info-bubble-content");i&&(i.innerHTML="".concat(go.translateText("next"),' \n \n'),i.addEventListener("click",r,{once:!0}),n.classList.add("gleap-input-highlight"),document.querySelector("#".concat(_r)).classList.add("copilot-pointer-container-clickmode"),n.removeEventListener("input",e))}};n.addEventListener("input",i,{once:!1}),n.hasAttribute("contenteditable")&&n.addEventListener("keyup",i,{once:!1}),n.addEventListener("blur",(function(){n.focus()}),{once:!0}),n.focus()}else{var a,s=null!==(a=o.inputValue)&&void 0!==a?a:"",c=0;!function e(){c0})).length;return Math.ceil(t/3.6)+1}}(i),s=function(){e.currentAudio=void 0,setTimeout((function(){r()}),1e3*a)};o.voice&&o.voice.length>0?(e.currentAudio=new Audio(o.voice),e.audioMuted&&(e.currentAudio.muted=!0),e.currentAudio.addEventListener("ended",(function(){setTimeout((function(){r()}),1e3)})),e.currentAudio.play().then((function(){})).catch((function(e){s()}))):s()}},i=o.selector?function(e){if("undefined"!=typeof window){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3)/100,n=0;return new Promise((function(o,r){var i=setInterval((function(){var a=document.querySelector(e);a?(clearInterval(i),o(a)):n>=t&&(clearInterval(i),r(new Error("Element not found for selector: ".concat(e)))),n++}),100)}))}}(o.selector):Promise.resolve(null);i.then(r).catch((function(){return r(null)}))}}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Rr(t.prototype,n),o&&Rr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zr(e){return zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(e)}function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0;if(!this.productTourId&&!this.disabled){this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0;var r=this;$e.getInstance().validateProductTour(e).then((function(){return o>0?setTimeout((function(){r.start()}),o):n.start()})).catch((function(e){console.log("Product tour is not live. Cleaning up..."),console.error(e),r.onComplete(!1)}))}}},{key:"onComplete",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={tourId:this.productTourId};e?(kn.notifyEvent("productTourCompleted",t),ki.trackEvent("tour-".concat(this.productTourId,"-completed"),t)):(kn.notifyEvent("productTourQuit",t),ki.trackEvent("tour-".concat(this.productTourId,"-quit"),t)),this.gleapTourObj&&this.gleapTourObj.destroy(),this.gleapTourObj=void 0,this.productTourData=void 0,this.productTourId=void 0,this.currentActiveIndex=void 0,this.clearUncompletedTour()}},{key:"loadUncompletedTour",value:function(){try{var e=JSON.parse(localStorage.getItem(Zr));if(null!=e&&e.tourData&&null!=e&&e.tourId)return e}catch(t){}return null}},{key:"storeUncompletedTour",value:function(){if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Zr,JSON.stringify(e))}catch(t){}else this.clearUncompletedTour()}},{key:"clearUncompletedTour",value:function(){try{localStorage.removeItem(Zr)}catch(e){}}},{key:"start",value:function(){var e=this,t=this.productTourData;if(t){if("cobrowse"===t.tourType)return Ur.getInstance().startWithConfig(this.productTourId,t,(function(t){e.onComplete(t)}));this.unmuted=!1;for(var n=t.steps,o=this,r=[],i=0;i\n \n
').concat(p("unmute"),"
\n ");else{var d="";t.sender&&t.sender.firstName&&(u=!0,d='
\n
\n
').concat(t.sender.firstName,"
\n
")),l="".concat(d,'
').concat(a.message,"
")}var f={disableActiveInteraction:!s&&!c,mode:a.mode,popover:Gr({description:l,popoverClass:"gleap-tour-popover-".concat(a.type," ").concat(!u&&"gleap-tour-popover-no-sender"," ").concat(t.allowClose&&"gleap-tour-popover-can-close")},s?{showButtons:[]}:{})};a.selector&&a.selector.length>0&&(f.element=a.selector),r.push(f)}var h=["next","close"];t.backButton&&h.push("previous"),this.gleapTourObj=Mr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({showProgress:!0,allowKeyboardControl:!1,steps:r},"showProgress",n.length>1),"allowClose",t.allowClose),"nextBtnText",t.nextText),"doneBtnText",t.doneText),"prevBtnText",t.prevText),"showButtons",h),"onHighlightStarted",(function(t,n,o){var r;e.currentActiveIndex=null==o||null===(r=o.state)||void 0===r?void 0:r.activeIndex,e.storeUncompletedTour()})),"onElementNotFound",(function(t){document.removeEventListener("click",v),e.onComplete(!1)})),"onDestroyStarted",(function(){e.gleapTourObj.hasNextStep()?e.onComplete(!1):e.onComplete(!0),document.removeEventListener("click",v)})),"onPopoverRender",(function(t){if(t)for(var n=document.querySelectorAll(".gleap-tour-popover-description img, .gleap-tour-popover-description video"),r=function(){setTimeout((function(){e.gleapTourObj.refresh()}),500),setTimeout((function(){e.gleapTourObj.refresh()}),750)},i=0;ie.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return go.translateText(e)||t}},{key:"_translateWithVars",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return go.translateTextWithVars(e,t)||n}},{key:"getCheckIcon",value:function(){return'\n \n '}},{key:"loadChecklist",value:function(){if(this._isSessionReady&&this._networkManager){var e=this.getAttribute("checklistId");e?(this.activeStep=-1,this._initialActiveSet=!1,this.validateChecklist(e)):(this.renderResponse(),this.checklistData=null,this._hasLoaded=!1)}}},{key:"getQueryParams",value:function(){var e=this._getGleapSessionInstance();if(null==e||!e.session)return"";var t=e.session,n="en";try{void 0!==go&&(n=go.getInstance().getActiveLanguage()||"en")}catch(o){}return"gleapId=".concat(t.gleapId||"","&gleapHash=").concat(t.gleapHash||"","&lang=").concat(n)}},{key:"makeRequest",value:function(e,t,n,o){var r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=new XMLHttpRequest;i.open(e,t);try{r.injectSession(i)}catch(a){}n&&i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.onreadystatechange=function(){4===i.readyState&&o(i)},i.onerror=function(){o(i)},i.send(n?JSON.stringify(n):null)}else o({readyState:4,status:0,responseText:"Session unavailable",_isMock:!0})}},{key:"validateChecklist",value:function(e){var t=this;if(this._isSessionReady&&this._networkManager){this.checklistData=null,this._hasLoaded=!1,this.renderResponse();var n=this.getAttribute("sharedKey");this._networkManager.validateChecklist(e,n).then((function(e){t.isConnected&&t._isSessionReady&&e&&t.fetchChecklist(e)})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1}))}}},{key:"fetchChecklist",value:function(e){var t=this;this._isSessionReady&&this._networkManager&&(this._isInitialLoad=!this._hasLoaded,this._networkManager.fetchChecklist(e).then((function(e){if(!t.isConnected||!t._isSessionReady||!e)return t._hasLoaded=!1,t.checklistData=null,void t._checkSessionAndLoad();if(t.checklistData=e,t._hasLoaded=!0,"done"!==e.status){if(t._isInitialLoad&&!t._initialActiveSet){var n,o=(null===(n=e.outbound)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.steps)||[],r=e.completedSteps||[],i=o.findIndex((function(e){return!r.includes(e.id)}));t.activeStep=i>=0?i:-1,-1!==t.activeStep&&(t._initialActiveSet=!0)}t.renderChecklist(t.checklistData)}else t.renderResponse()})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1})))}},{key:"updateChecklist",value:function(e,t){var n,o,r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=r.apiUrl;if(i){var a=r.session,s=null!==(n=null==a?void 0:a.gleapId)&&void 0!==n?n:"",c=null!==(o=null==a?void 0:a.gleapHash)&&void 0!==o?o:"",l="en";try{void 0!==go&&(l=go.getInstance().getActiveLanguage()||"en")}catch(d){}var u="".concat(i,"/outbound/checklists/").concat(e);t.checkedStep&&(u+="/increment/".concat(t.checkedStep)),u+="?gleapId=".concat(s,"&gleapHash=").concat(c,"&lang=").concat(l),this.makeRequest("PUT",u,t,(function(e){e._isMock||200!==e.status&&e.status}))}}}},{key:"handleChecklistUpdate",value:function(e){if(this._hasLoaded&&this.checklistData){var t=e.detail;if(t&&t.id===this.checklistData.id){var n=$r(this.checklistData.completedSteps||[]),o=!1,r=!1,i=this.activeStep;if(t.completedSteps&&JSON.stringify(t.completedSteps)!==JSON.stringify(n)&&(this.checklistData.completedSteps=$r(t.completedSteps),o=!0,-1!==i)){var a,s=null===(a=this.checklistData.outbound)||void 0===a||null===(a=a.config)||void 0===a||null===(a=a.steps)||void 0===a||null===(a=a[i])||void 0===a?void 0:a.id;s&&this.checklistData.completedSteps.includes(s)&&!n.includes(s)&&(r=!0)}if(t.status&&t.status!==this.checklistData.status&&(this.checklistData.status=t.status,o=!0),r){for(var c,l=(null===(c=this.checklistData.outbound)||void 0===c||null===(c=c.config)||void 0===c?void 0:c.steps)||[],u=-1,d=i+1;d1&&void 0!==arguments[1]?arguments[1]:"checklist-floating",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(null===(t=e.config)||void 0===t?void 0:t.steps)||[],a=(null===(n=this.checklistData)||void 0===n?void 0:n.completedSteps)||[],s=0;if(this.progressbarEnabled&&i.length>0){var c=i.length,l=a.length;s=c>0?l/c*100:0}var u,d,p=i.find((function(e){return!a.includes(e.id)})),f=i.length>0?p?p.title||this._translateWithVars("stepDefaultTitle",{index:i.indexOf(p)+1},"Step ".concat(i.indexOf(p)+1)):"":e.subject||"",h=i.length>0?p&&p.description||"":e.message||"";r&&(f=(null===(u=e.config)||void 0===u?void 0:u.successTitle)||"",h=(null===(d=e.config)||void 0===d?void 0:d.successMessage)||"",s=100);var v=2*Math.PI*7,g=v-s/100*v,m="checklist-floating-header"===o,b=m?'\n \n \n ':'\n \n ';return'\n
\n
\n
\n \n \n \n \n
\n
').concat(f,"
\n ").concat(r?"":''.concat(b,""),'\n
\n
').concat(h,"
\n
\n ")}},{key:"renderInfoSection",value:function(e){var t;if(!this.infoEnabled||!e)return"";var n=e.subject||this._translate("checklistDefaultTitle","Checklist"),o=e.message||"",r="";return null!==(t=e.sender)&&void 0!==t&&t.profileImageUrl&&(r='\n
\n ').concat(e.sender.firstName||\n ').concat(e.sender.firstName||"","\n
")),'\n
\n '.concat(n?'
'.concat(n,"
"):"","\n ").concat(o?'
'.concat(o,"
"):"","\n ").concat(r,"\n
")}},{key:"renderProgressSection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!this.progressbarEnabled||!e.length)return"";var n=e.length,o=t.length,r=n>0?o/n*100:0,i=0;e.forEach((function(e){!t.includes(e.id)&&e.duration>0&&(i+=e.duration)}));var a=this._translateWithVars("taskProgress",{a:o,b:n},"".concat(o," of ").concat(n," done")),s=i>0?this._translateWithVars("aboutMinutes",{a:i},"About ".concat(i," min left")):"";return'\n
\n
'.concat(a,"
\n ").concat(s?'
'.concat(s,"
"):"",'\n
\n
\n
\n
')}},{key:"renderTasks",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&0!==t.length?t.map((function(t,o){var r=n.includes(t.id),i=e.activeStep===o,a=r?''.concat(e.getCheckIcon(),""):''.concat(o+1,""),s=t.title||e._translateWithVars("stepDefaultTitle",{index:o+1},"Step ".concat(o+1)),c=t.description||"",l=t.actionTitle||e._translate("actionDefaultTitle","Action"),u=t.action&&"none"!==t.action?'
\n \n
"):"",d=e._translate("markAsDone","Mark as done"),p=t.allowMarkDone&&!r?'
\n ').concat(e.getCheckIcon(),'\n
').concat(d,"
\n
"):"",f=["checklist-task",r?"checklist-task--done":"",i?"checklist-task--active":""].filter(Boolean).join(" ");return'\n
\n
\n ').concat(a,'\n
').concat(s,'
\n \n \n \n \n \n
\n
\n
\n ').concat(c?'
'.concat(c,"
"):"","\n ").concat(u,"\n ").concat(p,"\n
\n
\n
")})).join(""):"

".concat(this._translate("noStepsDefined","No steps defined."),"

")}},{key:"renderChecklist",value:function(e){var t;if(this._hasLoaded&&e&&e.outbound){var n=e.outbound,o=(null===(t=n.config)||void 0===t?void 0:t.steps)||[],r=e.completedSteps||[],i="";if("done"===e.status||o.length>0&&r.length>=o.length){var a,s,c=(null===(a=n.config)||void 0===a?void 0:a.successTitle)||"",l=(null===(s=n.config)||void 0===s?void 0:s.successMessage)||"";i=this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-launcher",!0):'\n
\n
\n '.concat(this.getCheckIcon(),'\n
\n
').concat(c,'
\n
').concat(l,"
\n
"),-1!==this.activeStep&&(this.activeStep=-1)}else i='\n
\n '.concat(this.floatingEnabled?"":this.renderInfoSection(n),"\n ").concat(this.floatingEnabled?"":this.renderProgressSection(o,r),"\n ").concat(this.floatingEnabled?this.renderFloatingLauncher(n):"",'\n
\n ').concat(this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-header"):"","\n ").concat(this.renderTasks(o,r),"\n
\n
");var u=ut.getInstance().getFlowConfig(),d=u.color?u.color:"#485BFF",p="\n \n ');this.shadowRoot.innerHTML=p+i,this.addTaskEventListeners(),this.floatingEnabled&&this.addFloatingClickListeners(),-1!==this.activeStep&&this.toggleTask(this.activeStep,!0)}else this._checkSessionAndLoad()}},{key:"updateActiveTaskMaxHeight",value:function(){if(-1!==this.activeStep){var e=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body-inner')),t=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body'));if(e&&t){var n=e.offsetHeight;t.style.setProperty("--task-body-active-height","".concat(n,"px"))}}}},{key:"addTaskEventListeners",value:function(){var e=this;this.shadowRoot.querySelectorAll(".checklist-task").forEach((function(t){var n=t.querySelector(".checklist-task-header"),o=parseInt(t.getAttribute("data-task-index"),10);n&&n.addEventListener("click",(function(){var t=e.activeStep===o?-1:o;e.setActiveStep(t)}));var r=t.querySelector(".checklist-task-body-markdone");r&&r.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps){var r=e.checklistData.outbound.config.steps[o];if(r){var i=e.activeStep;if(e.checklistData.completedSteps||(e.checklistData.completedSteps=[]),!e.checklistData.completedSteps.includes(r.id)){e.checklistData.completedSteps.push(r.id);var a=e.checklistData.outbound.config.steps,s=-1;if(i===o){for(var c=o+1;c0&&e.checklistData.completedSteps.length>=a.length&&(e.checklistData.status="done",l.status="done"),e.updateChecklist(e.checklistData.id,l)}}}}));var i=t.querySelector(".checklist-task-body-action .action-button");i&&i.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps&&void 0!==ki){var r=e.checklistData.outbound.config.steps[o];if(r&&r.action&&"none"!==r.action)try{"BOT"===r.action?ki.startBot(r.botId):"CUSTOM_ACTION"===r.action?ki.triggerCustomAction(r.actionBody):"REDIRECT_URL"===r.action?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),ki.openURL(r.actionBody,!!r.actionOpenInNewTab)):"FEEDBACK_FLOW"===r.action?ki.startFeedbackFlow(r.formId):"NEWS_ARTICLE"===r.action?ki.openNewsArticle(r.articleId):"HELP_ARTICLE"===r.action?ki.openHelpCenterArticle(r.articleId):"CHECKLIST"===r.action&&ki.startChecklist(r.checklistId,!0,null==r?void 0:r.sharedKey)}catch(i){}}}))}))}},{key:"setActiveStep",value:function(e){var t=this,n=this.activeStep;this.activeStep=e;var o=[];-1!==n&&n!==this.activeStep&&o.push({index:n,open:!1}),-1!==this.activeStep&&this.activeStep!==n&&o.push({index:this.activeStep,open:!0}),o.forEach((function(e){var n=e.index,o=e.open;t.toggleTask(n,o)}))}},{key:"toggleTask",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(e,'"]'));if(n){var o=n.querySelector(".checklist-task-header");if(o){var r=n.classList.contains("checklist-task--active"),i=null!==t?t:!r;if(i&&!r){n.classList.add("checklist-task--active"),o.setAttribute("aria-expanded","true");var a=n.querySelector(".checklist-task-body-inner");if(a){var s=a.offsetHeight,c=n.querySelector(".checklist-task-body");c&&c.style.setProperty("--task-body-active-height","".concat(s,"px"))}}else!i&&r&&(n.classList.remove("checklist-task--active"),o.setAttribute("aria-expanded","false"))}}}}],r=[{key:"observedAttributes",get:function(){return["checklistId","info","progressbar","dark","floating","sharedKey"]}}],o&&ti(n.prototype,o),r&&ti(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ri(HTMLElement));"undefined"==typeof customElements||customElements.get("gleap-checklist")||customElements.define("gleap-checklist",e)}}();var gi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hi(this,"initialized",!1),hi(this,"offlineMode",!1),hi(this,"disablePageTracking",!1),hi(this,"disableInAppNotifications",!1),hi(this,"globalData",{screenRecordingData:null,webReplay:null,snapshotPosition:{x:0,y:0}}),"undefined"!=typeof window&&(Yt.getInstance(),on.getInstance().start(),dn.getInstance().start(),xr.getInstance().start())}var t,n,o;return t=e,n=[{key:"isLiveMode",value:function(){if(!0===this.offlineMode)return!1;var e=window.location.hostname;return!(["localhost","127.0.0.1","0.0.0.0","","::1"].includes(e)||e.startsWith("192.168.")||e.startsWith("10.0.")||e.endsWith(".local")||!e.includes("."))}},{key:"softReInitialize",value:function(){Gt.getInstance().destroy(),ut.getInstance().start().then((function(){a.getInstance().refresh(),Ao.getInstance().injectNotificationUI()})).catch((function(e){console.warn("Failed to initialize Gleap.")}))}},{key:"performActions",value:function(t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"INFO";on.getInstance().addLog(e,t)}},{key:"initialize",value:function(t){var n=this.getInstance();if(n.initialized)console.warn("Gleap already initialized.");else{n.initialized=!0;try{!function(){try{if("visualViewport"in window&&/iPad|iPhone|iPod/.test(navigator.userAgent)){var e=function(){try{var e=document.querySelector(".gleap-frame-container-inner iframe");if(!e)return;window.visualViewport.height1&&void 0!==arguments[1]&&arguments[1];Gt.getInstance().urlHandler(e,t)}},{key:"checkForUrlParams",value:function(){if("undefined"!=typeof window&&window.location.search)try{var t=new URLSearchParams(window.location.search),n=t.get("gleap_widget");n&&n.length>0&&e.open();var o=t.get("gleap_conversation");o&&o.length>0&&("true"===o?e.startConversation(!0):e.startBot(o,!0));var r=t.get("gleap_feedback");r&&r.length>0&&e.startFeedbackFlow(r);var i=t.get("gleap_survey"),a=t.get("gleap_survey_format");i&&i.length>0&&e.showSurvey(i,"survey_full"===a?"survey_full":"survey");var s=t.get("gleap_tour");if(s&&s.length>0){var c=parseInt(t.get("gleap_tour_delay"));isNaN(c)&&(c=2),setTimeout((function(){e.startProductTour(s)}),1e3*c)}}catch(l){}}},{key:"destroy",value:function(){Zn.getInstance().stop(),rt.getInstance().stop(),Gt.getInstance().destroy(),a.getInstance().toggleFeedbackButton(!1),Ao.getInstance().clearAllNotifications(!0),$e.getInstance().clearSession(0,!1),_o.getInstance().removeBannerUI()}},{key:"closeBanner",value:function(){_o.getInstance().removeBannerUI()}},{key:"closeModal",value:function(){Go.getInstance().hideModal()}},{key:"setUseCookies",value:function(e){$e.getInstance().useCookies=e}},{key:"identify",value:function(e,t,n){return $e.getInstance().identifySession(e,k(t),n)}},{key:"updateContact",value:function(e){return $e.getInstance().updateSession(k(e))}},{key:"clearIdentity",value:function(){$e.getInstance().clearSession()}},{key:"getIdentity",value:function(){return $e.getInstance().getSession()}},{key:"isUserIdentified",value:function(){var e=$e.getInstance().session;return!!(e&&e.userId&&e.userId.length>0)}},{key:"isOpened",value:function(){return Gt.getInstance().isOpened()}},{key:"hide",value:function(){Gt.getInstance().hideWidget()}},{key:"setMaxNetworkRequests",value:function(e){b.getInstance().setMaxRequests(e)}},{key:"startNetworkLogger",value:function(){b.getInstance().start()}},{key:"setNetworkLogsBlacklist",value:function(e){b.getInstance().setBlacklist(e)}},{key:"setNetworkLogPropsToIgnore",value:function(e){b.getInstance().setFilters(e)}},{key:"setReplayOptions",value:function(e){Zn.getInstance().setOptions(e)}},{key:"close",value:function(){Gt.getInstance().hideWidget()}},{key:"open",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().showWidget()}},{key:"trackEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"logEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"preFillForm",value:function(e){var t=k(e);Lo.getInstance().formPreFill=t,Gt.getInstance().sendMessage({name:"prefill-form-data",data:t},!0)}},{key:"on",value:function(e,t){kn.on(e,t)}},{key:"enableShortcuts",value:function(e){e?ko.getInstance().start():ko.getInstance().stop()}},{key:"showFeedbackButton",value:function(e){a.getInstance().toggleFeedbackButton(e)}},{key:"setAppVersionCode",value:function(e){Yt.setAppVersionCode(e)}},{key:"setAppBuildNumber",value:function(e){Yt.setAppBuildNumber(e)}},{key:"setWSApiUrl",value:function(e){$e.getInstance().wsApiUrl=e}},{key:"setApiUrl",value:function(e){$e.getInstance().apiUrl=e}},{key:"setBannerUrl",value:function(e){_o.getInstance().setBannerUrl(e)}},{key:"setModalUrl",value:function(e){Go.getInstance().setModalUrl(e)}},{key:"setFrameUrl",value:function(e){Gt.getInstance().frameUrl=e}},{key:"setTicketAttribute",value:function(e,t){gn.getInstance().setTicketAttribute(e,t)}},{key:"unsetTicketAttribute",value:function(e){gn.getInstance().unsetTicketAttribute(e)}},{key:"clearTicketAttributes",value:function(){gn.getInstance().clearTicketAttributes()}},{key:"attachCustomData",value:function(e){gn.getInstance().attachCustomData(e)}},{key:"setCustomData",value:function(e,t){gn.getInstance().setCustomData(e,t)}},{key:"removeCustomData",value:function(e){gn.getInstance().removeCustomData(e)}},{key:"clearCustomData",value:function(){gn.getInstance().clearCustomData()}},{key:"playSound",value:function(e){Yo.playSound(e)}},{key:"showTabNotificationBadge",value:function(e){var t=Ao.getInstance();t.showNotificationBadge=e,t.updateTabBarNotificationCount()}},{key:"setLanguage",value:function(t){go.getInstance().setOverrideLanguage(t),e.getInstance().initialized&&setTimeout((function(){e.getInstance().softReInitialize(),e.updateContact({lang:t})}),1e3)}},{key:"registerCustomAction",value:function(e){En.registerCustomAction(e)}},{key:"triggerCustomAction",value:function(e){En.triggerCustomAction(e)}},{key:"setStyles",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#ffffff",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:20,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:20,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:a.FEEDBACK_BUTTON_BOTTOM_LEFT;L((function(){!function(e,t,n,o,r,i,s,c){var l=d(e),p=d(n),f=d(r),h=d(t),v="#ffffff"===f,g=u(t,"#ffffff"===h?-35:-15),m=u(r,v?100:-120),b=u(r,v?30:-12),y=u(r,v?80:-30),w=(o=parseInt(o,10),Math.round(1.05*o)),k=Math.round(.8*o),x=Math.round(.6*o),S=Math.round(.4*o),C=Math.round(.25*o),I=57+s;c===a.FEEDBACK_BUTTON_CLASSIC_BOTTOM?I=s+15:(c&&c.includes("CLASSIC")||c===a.FEEDBACK_BUTTON_NONE)&&(I=s);var L='\n .gleap-font, .gleap-font * {\n font-style: normal;\n font-variant-caps: normal;\n font-variant-ligatures: normal;\n font-variant-numeric: normal;\n font-variant-east-asian: normal;\n font-weight: normal;\n font-stretch: normal;\n font-size: 100%;\n line-height: 1;\n font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n }\n .gleap-input-highlight {\n box-shadow: 0 0 0 3px '.concat(e," !important;\n }\n .gleap-frame-container {\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n width: calc(100% - 40px);\n max-width: 410px;\n position: fixed;\n z-index: ").concat(2147483631,";\n visibility: visible;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.16);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n animation-duration: .3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n user-select: none;\n pointer-events: none;\n transition: max-width 0.3s ease-out;\n }\n\n .gleap-admin-highlight {\n box-shadow: 0px 0px 0px 4px red;\n }\n\n :root {\n --gleap-margin-top: 50px;\n }\n\n .gleap-tooltip-anchor {\n position: relative;\n display: inline-block;\n float: left;\n max-width: 0px;\n width: 17px;\n }\n\n .gleap-tooltip-hotspot {\n position: absolute;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n }\n\n @keyframes gleap-pulse {\n 0% {\n transform: scale(0);\n opacity: 0.25;\n }\n 45% {\n transform: scale(2.5);\n opacity: 0;\n }\n 100% {\n transform: scale(0);\n opacity: 0;\n }\n }\n\n .gleap-tooltip-hotspot-animation {\n position: absolute;\n border-radius: 17px;\n opacity: 0.25;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n animation: gleap-pulse 5s infinite;\n }\n\n .gleap-tooltip-hotspot svg {\n width: 17px;\n height: 17px;\n object-fit: contain;\n display: block;\n }\n\n .gleap-tooltip-inner {\n position: relative;\n overflow: visible;\n font-size: 14px;\n font-weight: normal;\n color: #000;\n line-height: 1.3;\n }\n\n .gleap-tooltip {\n position: absolute;\n background-color: #fff;\n color: #000;\n font-size: 15px;\n line-height: 18px;\n padding: 16px;\n padding-top: 8px;\n padding-bottom: 8px;\n border-radius: 4px;\n max-width: min(350px, 80vw);\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.2s, visibility 0.2s;\n z-index: ").concat(2147483700,";\n }\n\n .gleap-tooltip a {\n color: ").concat(e,";\n text-decoration: underline;\n display: inline !important;\n margin: 0px !important;\n padding: 0px !important;\n word-break: break-word;\n }\n\n .gleap-tooltip ul {\n padding-left: 16px;\n }\n\n .gleap-tooltip b {\n font-weight: 600;\n }\n\n .gleap-tooltip h2 {\n font-size: 18px;\n line-height: 20px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip h3 {\n font-size: 16px;\n line-height: 18px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip p {\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip img {\n max-width: 100%;\n max-height: 300px;\n width: 100%;\n height: auto;\n object-fit: cover;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip iframe,\n .gleap-tooltip video {\n max-width: 100%;\n width: 100%;\n height: auto;\n min-height: 200px;\n display: block;\n border: none;\n outline: none;\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip-arrow {\n position: absolute;\n width: 20px;\n height: 20px;\n }\n\n .gleap-tooltip-arrow svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n\n .gleap-b-frame {\n width: 100%;\n height: 100%;\n border: none;\n pointer-events: auto;\n padding: 0px;\n margin: 0px;\n }\n\n .gleap-b-shown {\n transition: margin 0.3s ease-out;\n margin-top: var(--gleap-margin-top);\n position: relative;\n z-index: 10000;\n }\n\n .gleap-b-f {\n margin-top: 0px;\n }\n\n .gleap-b {\n display: none;\n position: absolute;\n top: calc(-1 * var(--gleap-margin-top));\n left: 0px;\n width: 100vw;\n height: var(--gleap-margin-top);\n z-index: ").concat(2147483699,";\n }\n\n @keyframes gleapSlideIn {\n from {\n top: calc(-1 * var(--gleap-margin-top));\n }\n to {\n top: 10px;\n }\n }\n\n .gleap-b-f .gleap-b {\n position: fixed;\n top: 10px;\n animation: gleapSlideIn .25s ease-out forwards;\n max-width: 800px;\n width: calc(100% - 20px);\n left: 50%;\n z-index: ").concat(2147483699,";\n transform: translateX(-50%);\n border-radius: ").concat(S,"px;\n overflow: hidden;\n box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15), 0px 5px 5px rgba(0, 0, 0, 0.05);\n }\n\n .gleap-b-shown .gleap-b {\n display: block;\n }\n\n .gleap-image-view {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n z-index: ").concat(2147483699,";\n background-color: ").concat(f,"cc;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-image-view-image {\n width: 90%;\n height: auto;\n max-width: 90%;\n max-height: 90%;\n object-fit: contain;\n }\n\n .gleap-image-view-close {\n position: fixed;\n top: 20px;\n right: 20px;\n width: 32px;\n height: 32px;\n opacity: 0.8;\n z-index: ").concat(2147483740,";\n box-shadow: 0px 5px 18px rgba(0, 0, 0, 0.16);\n cursor: pointer;\n }\n\n .gleap-image-view-close:hover {\n opacity: 1;\n }\n\n .gleap-image-view-close svg path {\n fill: ").concat(r,";\n }\n\n [dir=rtl].gleap-frame-container {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,'px;\n }\n\n .gleap-frame-container--loading iframe {\n opacity: 0;\n }\n\n .gleap-frame-container--loading::before {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 130deg,\n ').concat(g," 0%,\n ").concat(t,' 100%\n );\n }\n \n .gleap-frame-container--loading::after {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 180deg,\n transparent 60%,\n ').concat(r,"1A 70%,\n ").concat(r," 100%\n );\n }\n\n .gleap-frame-container--loading-nogradient::before {\n max-height: 340px;\n background: ").concat(t," !important;\n }\n\n .gleap-frame-container--loading-nofade::after {\n display: none !important;\n }\n\n .gleap-frame-container--survey {\n bottom: ").concat(s,"px !important;\n }\n\n .gleap-frame-container--extended {\n max-width: 690px !important;\n }\n\n .gleap-frame-container--survey-full {\n position: fixed;\n top: 0 !important;\n left: 0 !important;\n bottom: 0 !important;\n right: 0 !important;\n width: 100vw !important;\n max-width: 100vw !important;\n height: 100vh !important;\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(6px);\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n max-height: 100vh !important;\n border-radius: 0 !important;\n animation-name: none !important;\n }\n\n .gleap-frame-container--survey-full .gleap-frame-container-inner {\n max-width: 640px !important;\n width: calc(100% - 24px);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n }\n\n .gleap-frame-container--classic {\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--classic-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--modern-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n [dir=rtl].gleap-frame-container--modern-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n .gleap-frame-container--animate {\n pointer-events: auto !important;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n @keyframes gleapFadeInUpMobile {\n from {\n opacity: 0;\n transform: translate3d(0, 10%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n .gleap-notification-container {\n position: fixed;\n bottom: ").concat(I,"px;\n right: ").concat(i,"px;\n z-index: ").concat(2147483630,";\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n width: 100%;\n max-width: min(340px, 80vw);\n }\n\n .gleap-notification-container--left {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container--left {\n left: initial !important;\n right: ").concat(i,"px !important;\n align-items: flex-start !important;\n }\n\n .gleap-notification-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n .gleap-notification-item {\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n .gleap-notification-close {\n border-radius: 100%;\n width: 28px;\n height: 28px;\n background-color: ").concat(m,";\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 8px;\n cursor: pointer;\n visibility: hidden;\n pointer-events: none;\n }\n\n .gleap-notification-container:hover .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n }\n\n .gleap-notification-close svg {\n width: 45%;\n height: 45%;\n object-fit: contain;\n fill: ").concat(r,";\n }\n\n .gleap-notification-item-checklist-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n cursor: pointer;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-checklist-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n width: 100%;\n width: min(310px, 70vw);\n max-width: min(310px, 70vw);\n }\n\n .gleap-notification-item-checklist-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 10px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-checklist-content-progress {\n width: 100%;\n height: 8px;\n border-radius: 8px;\n background-color: ").concat(b,";\n }\n\n .gleap-notification-item-checklist-content-progress-inner {\n height: 100%;\n border-radius: 8px;\n background-color: ").concat(e,";\n }\n\n .gleap-notification-item-checklist-content-next {\n color: ").concat(m,";\n font-size: 15px;\n font-weight: normal;\n line-height: 21px;\n margin-top: 10px;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n }\n\n .gleap-notification-item-checklist-content-next svg {\n height: 18px;\n margin-right: 5px;\n width: auto;\n }\n\n .gleap-notification-item-checklist-content-next b {\n font-size: 15px;\n font-weight: normal;\n color: ").concat(f,";\n }\n\n .gleap-notification-item-news {\n width: 100%;\n }\n\n .gleap-news-pagination {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 10px;\n width: 100%;\n }\n\n .gleap-news-page-indicator {\n font-size: 12px;\n color: ").concat(m,";\n }\n\n .gleap-news-next-button {\n background-color: ").concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 5px 10px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;^\n }\n\n .gleap-notification-item-news-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n }\n\n .gleap-notification-item-news-preview {\n color: ").concat(m,";\n font-size: 14px;\n line-height: 21px;\n font-weight: 400;\n overflow-wrap: break-word;\n word-break: break-word;\n display: block;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-news-sender {\n display: flex;\n align-items: center;\n color: ").concat(m,";\n font-size: 15px;\n line-height: 21px;\n font-weight: 400;\n }\n \n .gleap-notification-item-news-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 6px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n cursor: pointer;\n }\n\n .gleap-notification-item-news-sender img {\n border-radius: 100%;\n height: 20px;\n margin-right: 8px;\n object-fit: cover;\n width: 20px;\n }\n\n [dir=rtl] .gleap-notification-item-news-sender img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-news-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-news-image {\n background-color: ").concat(m,";\n height: 170px;\n max-height: 170px;\n object-fit: cover;\n width: 100%;\n cursor: pointer;\n }\n \n .gleap-notification-item-news-content-title:hover {\n color: ").concat(e,";\n }\n\n .gleap-notification-item {\n display: flex;\n align-items: flex-end;\n cursor: pointer;\n }\n\n .gleap-notification-item img {\n width: 32px;\n height: 32px;\n min-width: 32px;\n border-radius: 100%;\n object-fit: cover;\n margin-right: 8px;\n margin-bottom: 12px;\n cursor: pointer;\n }\n\n [dir=rtl] .gleap-notification-item img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-container {\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n border-bottom-left-radius: 0px;\n padding: 20px;\n background-color: ").concat(r,";\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 15px;\n line-height: 21px;\n color: ").concat(f,';\n position: relative;\n }\n\n .gleap-notification-item-container::after {\n content: " ";\n position: absolute;\n bottom: 0px;\n width: 0px;\n height: 0px;\n left: -6px;\n border-style: solid;\n border-width: 0px 0px 10px 6px;\n border-color: transparent transparent ').concat(r,";\n }\n\n .gleap-notification-item-sender {\n color: ").concat(m,";\n line-height: 20px;\n }\n\n .gleap-notification-item-content {\n line-height: 20px;\n color: ").concat(f,";\n margin-top: 4px;\n min-width: min(200px, 50vw);\n word-wrap: break-word;\n word-break: break-word;\n }\n\n .gleap-frame-container-inner {\n position: relative;\n width: 100%;\n height: calc(100vh - ").concat(130+s,"px);\n max-height: ").concat(700,'px;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: calc(100vh - 40px);\n }\n \n .gleap-frame-container-inner:before {\n content: " ";\n position: absolute;\n width: 100%;\n height: calc(100% - ').concat(k,"px);\n top: ").concat(k,"px;\n background-color: ").concat(r,";\n z-index: -1;\n }\n \n .gleap-frame-container iframe {\n height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n display: block !important;\n pointer-events: auto !important;\n }\n \n .gleap-frame-container--hidden {\n display: none !important;\n pointer-events: none;\n animation: none !important;\n }\n \n .bb-feedback-button {\n margin: 0px;\n position: fixed;\n bottom: ").concat(s,"px;\n right: ").concat(i,"px;\n border-radius: 30px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n color: #000000;\n z-index: ").concat(2147483630,";\n box-sizing: border-box;\n display: flex;\n align-items: center;\n padding: 0px;\n }\n\n [dir=rtl].bb-feedback-button {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n \n .bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n\n [dir=rtl].bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: ").concat(i,'px;\n left: auto;\n }\n \n .bb-feedback-button--disabled {\n display: none !important;\n }\n\n .bb-feedback-button--hidden {\n display: none !important;\n }\n \n .bb-feedback-button-text {\n padding: 8px 12px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n background-color: #fff;\n border-radius: 8px;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.15);\n position: relative;\n z-index: 99;\n }\n \n .bb-feedback-button-text:before {\n content: "";\n position: absolute;\n box-shadow: rgba(0, 0, 0, 0.04) 6px 6px 5px;\n transform: rotate(315deg);\n bottom: 16px;\n right: -4px;\n border-width: 10px;\n border-style: solid;\n border-color: transparent #fff #fff transparent;\n }\n \n .bb-feedback-button--bottomleft .bb-feedback-button-text:before {\n display: none;\n }\n \n .bb-feedback-button-text:after {\n content: "";\n position: absolute;\n bottom: 12px;\n right: 0px;\n background-color: #fff;\n width: 5px;\n height: 30px;\n }\n \n .bb-feedback-button-text-title {\n font-family: sans-serif;\n font-size: 14px;\n color: #666;\n line-height: 18px;\n max-width: 220px;\n }\n \n .bb-feedback-button-text-title b {\n color: #000000;\n font-weight: 600;\n }\n\n .bb-notification-bubble {\n position: absolute;\n top: -5px;\n right: -5px;\n min-width: 12px;\n padding: 0px 4px;\n height: 20px;\n min-width: 20px;\n border-radius: 20px;\n background-color: red;\n color: #fff;\n font-size: 11px;\n font-family: sans-serif;\n text-align: center;\n line-height: 20px;\n }\n\n .bb-notification-bubble--hidden {\n display: none;\n }\n \n .bb-feedback-button-icon {\n width: 48px;\n height: 48px;\n border-radius: 48px;\n background-color: #485bff;\n transition: box-shadow, transform 0.2s ease-in-out;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n position: relative;\n }\n \n .bb-feedback-button-classic {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n top: 50%;\n right: 0px;\n position: fixed;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n padding: 9px 20px;\n text-align: center;\n background-color: #485bff;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n font-family: sans-serif;\n font-size: 16px;\n color: #fff;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.25);\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n \n .bb-feedback-button-classic--left {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--left {\n top: 50%;\n right: 0px;\n left: auto;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n }\n \n .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n right: ').concat(i,"px;\n left: auto;\n }\n \n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n left: ").concat(i,"px;\n right: auto;\n }\n\n .bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n \n .bb-feedback-button--open.bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeOutRight;\n }\n \n .bb-feedback-button .bb-logo-logo {\n position: absolute;\n width: 30px;\n height: 30px;\n top: 9px;\n left: 9px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n position: absolute;\n width: 14px;\n height: 14px;\n top: 17px;\n left: 17px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button--open .bb-logo-arrowdown {\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button--open .bb-logo-logo {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button-icon:hover {\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25), 0px 0px 20px rgba(0, 0, 0, 0.2);\n transform: scale(1.1);\n }\n \n .bb-feedback-button--open .bb-feedback-button-text {\n animation-name: bbFadeOutDown;\n }\n \n .bb-feedback-button--open .bb-feedback-button-icon {\n display: flex;\n }\n \n .bb-capture-svg {\n position: fixed;\n z-index: ").concat(2147483614,";\n top: 0px;\n left: 0px;\n right: 0px;\n width: 100%;\n height: 100%;\n padding: 0px;\n margin: 0px;\n cursor: crosshair;\n }\n\n .bb-capture-svg--preview {\n cursor: auto !important;\n }\n \n .bb-rec-on-circle {\n animation-name: bbRecIconFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-rec-on-cont {\n animation-name: bbRecIconContFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-capture-editor-drag-info {\n position: fixed;\n top: -200px;\n left: 0px;\n z-index: ").concat(2147483616,";\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-editor-drag-info svg {\n width: 24px;\n height: 24px;\n }\n \n .bb-capture-editor-borderlayer {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n border: 4px solid ").concat(e,";\n cursor: crosshair;\n z-index: ").concat(2147483610,";\n box-sizing: border-box;\n pointer-events: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-borderlayer {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n .bb-capture-editor-recording .bb-capture-editor-borderlayer {\n border: 4px solid #eb144c !important;\n }\n \n .bb-capture-editor-recording .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-editor-item-inactive {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-toolbar-drawingitem {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-svg {\n pointer-events: none !important;\n }\n \n .bb-capture-toolbar {\n position: fixed;\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,";\n background-color: #fff;\n padding: 5px;\n display: flex;\n align-items: center;\n border-radius: 8px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-dismiss {\n position: fixed;\n top: 0px;\n right: 0px;\n z-index: ").concat(2147483618,";\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n width: 36px;\n height: 36px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: ").concat(e,";\n border-bottom-left-radius: ").concat(C,"px;\n }\n\n [dir=rtl] .bb-capture-dismiss {\n top: 0px;\n left: 0px;\n right: auto;\n border-bottom-left-radius: 0px !important;\n border-bottom-right-radius: ").concat(C,"px;\n }\n \n .bb-capture-dismiss svg path {\n fill: ").concat(l,';\n }\n \n .bb-capture-dismiss svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n \n .bb-capture-button-next {\n font-family: sans-serif;\n box-sizing: border-box;\n font-weight: 600;\n text-align: center;\n width: auto;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n margin: 0px;\n line-height: 36px;\n padding: 0px 12px;\n font-size: 15px;\n margin-left: 12px;\n }\n\n [dir=rtl].bb-capture-editor .bb-capture-button-next {\n margin-left: auto;\n margin-right: 12px;\n }\n \n .bb-capture-toolbar-item-spacer {\n width: 1px;\n height: 38px;\n min-width: 1px;\n margin: 0px 5px;\n }\n \n .bb-capture-toolbar-item {\n width: 42px;\n height: 38px;\n min-width: 42px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n position: relative;\n margin-right: 5px;\n }\n\n .drag-handle-item {\n cursor: grab !important;\n width: 34px;\n min-width: 34px;\n }\n\n .drag-handle-item svg {\n width: 18px !important;\n height: 18px !important;\n }\n \n .bb-capture-toolbar-item svg {\n width: 23px;\n height: 23px;\n object-fit: contain;\n }\n \n .bb-capture-toolbar-item-selectedcolor {\n border-radius: 100%;\n width: 20px;\n height: 20px;\n background-color: #db4035;\n }\n \n .bb-capture-toolbar-item[data-type="undo"] svg {\n width: 18px;\n height: 18px;\n }\n \n .bb-capture-toolbar-item[data-active="true"] {\n position: relative;\n }\n \n .bb-capture-preview {\n display: none;\n background-color: rgba(0, 0, 0, 0.6);\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n justify-content: center;\n align-items: center;\n z-index: ').concat(2147483620,";\n }\n \n .bb-capture-preview-inner {\n background-color: #fff;\n padding: 0px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n flex-direction: column;\n max-width: 640px;\n width: 100%;\n margin: 20px;\n }\n \n .bb-capture-preview-inner video {\n border-radius: 8px 8px 0px 0px;\n display: block;\n border: 0px;\n outline: none;\n width: 100%;\n max-height: 60vh;\n }\n \n .bb-capture-preview-buttons {\n display: flex;\n justify-content: space-between;\n padding: 14px;\n }\n \n .bb-capture-preview-retrybutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-sendbutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-retrybutton:hover,\n .bb-capture-preview-sendbutton:hover {\n opacity: 0.9;\n }\n \n .bb-capture-toolbar-item-recording {\n margin-right: 0px;\n }\n \n .bb-capture-toolbar-item-recording svg {\n width: 33px;\n height: 33px;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n position: fixed;\n top: 70px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,';\n background-color: #fff;\n display: none;\n padding: 10px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n }\n \n .bb-capture-toolbar-item-color {\n width: 20px;\n height: 20px;\n border-radius: 100%;\n margin-right: 12px;\n box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-toolbar-item-color:hover {\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);\n }\n \n .bb-capture-toolbar-item-color:last-of-type {\n margin-right: 0px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color {\n margin-right: auto;\n margin-left: 12px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color:last-of-type {\n margin-right: auto;\n margin-left: 0px;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:first-of-type {\n display: none;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:nth-of-type(2) {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:first-of-type {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:nth-of-type(2) {\n display: none;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #eee;\n }\n \n .bb-capture-toolbar-item:hover svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #f8f8f8;\n }\n \n .bb-capture-toolbar-item--active svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--inactivecross::before {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 3px;\n width: 26px;\n margin: auto;\n border-radius: 4px;\n background-color: #e80000;\n transform: rotate(45deg);\n }\n \n .bb-capture-toolbar-item--inactivecross svg {\n fill: #eee;\n }\n \n .bb-capture-toolbar-item-timer {\n text-align: left;\n line-height: 32px;\n font-size: 14px;\n font-family: sans-serif;\n margin: 5px;\n min-width: 40px;\n display: none;\n }\n \n .bb-capture-toolbar-item .bb-tooltip {\n background-color: #555;\n color: #fff;\n visibility: hidden;\n font-size: 14px;\n font-family: sans-serif;\n text-align: center;\n padding: 5px 10px;\n position: absolute;\n z-index: 1;\n top: 45px;\n left: 0px;\n transform: translateX(calc(-50% + 21px));\n opacity: 0;\n transition: opacity 0.3s;\n white-space: nowrap;\n }\n \n .bb-capture-toolbar-item .bb-tooltip::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n transform: rotate(180deg);\n border-color: #555 transparent transparent transparent;\n }\n \n .bb-capture-toolbar-item:hover .bb-tooltip {\n visibility: visible;\n opacity: 1;\n }\n \n .bb-capture-options {\n display: none;\n }\n \n .bb-capture-options--active {\n display: flex;\n }\n\n @keyframes bbFadeOutRight {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbFadeOutDown {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n }\n \n @keyframes bbFadeInOpacity {\n from {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n @keyframes bbZoomOut {\n from {\n opacity: 1;\n }\n \n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbZoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n 50% {\n opacity: 1;\n }\n }\n \n @keyframes bbRecIconContFade {\n 0% {\n fill: #b10802;\n }\n 50% {\n fill: #ff0000;\n }\n 100% {\n fill: #b10802;\n }\n } \n .bb-capture-preview-retrybutton {\n color: ').concat(f,";\n border-radius: ").concat(w,"px;\n background-color: ").concat(b,";\n }\n .bb-capture-preview-retrybutton:hover {\n background-color: ").concat(y,";\n }\n @keyframes bb-suc-fill {\n 100% {\n box-shadow: inset 0px 0px 0px 30px ").concat(e,";\n }\n }\n .bb-capture-toolbar-item-spacer {\n background-color: ").concat(b,";\n }\n .bb-tooltip {\n border-radius: ").concat(S,"px;\n }\n @keyframes bbRecIconFade {\n 0% {\n fill: transparent;\n }\n 50% {\n fill: ").concat(y,";\n }\n 100% {\n fill: transparent;\n }\n }\n .bb-capture-preview-sendbutton {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(w,"px;\n }\n .bb-capture-button-next {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(C,"px;\n }\n .bb-capture-preview-inner {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-timer {\n color: ").concat(m,";\n }\n .bb-svg-path {\n fill: ").concat(f,";\n }\n .bb-capture-toolbar-item {\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-colorpicker {\n background-color: ").concat(r,";\n }\n .bb-capture-toolbar-item--active {\n background-color: ").concat(b,";\n }\n .bb-feedback-button-classic {\n border-top-left-radius: ").concat(S,"px;\n border-top-right-radius: ").concat(S,"px;\n }\n .bb-logo-logo--default path {\n fill: ").concat(p,";\n }\n .bb-logo-arrowdown {\n fill: ").concat(p,";\n }\n .bb-feedback-button-icon {\n background-color: ").concat(n,";\n }\n .bb-feedback-button-classic {\n background-color: ").concat(n,";\n color: ").concat(p,";\n }\n\n @media only screen and (max-width: 450px) {\n [dir=rtl].gleap-frame-container,\n .gleap-frame-container {\n left: 0px;\n right: 0px;\n width: 100vw;\n max-width: 100vw;\n min-height: 100vh;\n min-height: -webkit-fill-available;\n max-height: -webkit-fill-available;\n top: 0px;\n bottom: 0px;\n border-radius: 0px;\n animation-name: gleapFadeInUpMobile;\n }\n\n .gleap-frame-container-inner {\n width: 100vw;\n height: 100%;\n }\n\n .gleap-frame-container:not(.gleap-frame-container--survey):not(.gleap-frame-container--survey-full) .gleap-frame-container-inner {\n max-height: calc(var(--glvh, 1vh) * 100) !important;\n }\n\n .gleap-frame-container--survey {\n height: auto !important;\n top: initial !important;\n bottom: 0px !important;\n min-height: initial !important;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: 100vh !important;\n }\n\n .bb-tooltip {\n display: none !important;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n top: 75px;\n }\n \n .bb-capture-button-next {\n margin-left: auto;\n }\n \n .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-toolbar {\n top: 15px;\n right: 15px;\n left: 15px;\n width: auto;\n transform: none;\n }\n\n .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-borderlayer {\n border-width: 4px;\n }\n }\n \n @media print {\n .bb-feedback-button {\n display: none !important;\n }\n \n .gleap-frame-container {\n display: none !important;\n }\n }\n\n .gleap-tour-sender {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n margin-bottom: 10px;\n }\n\n .gleap-tour-sender-image {\n width: 32px;\n height: 32px;\n border-radius: 32px;\n margin-right: 10px;\n background-size: cover;\n background-repeat: no-repeat;\n }\n\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: 550px;\n max-width: 550px;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: calc(100vw - 40px);\n max-width: calc(100vw - 40px);\n }\n }\n\n .gleap-tour-message,\n .gleap-tour-message p,\n .gleap-tour-message ul {\n color: ").concat(f,";\n }\n\n .gleap-tour-message h2 {\n font-weight: 600;\n font-size: 22px;\n }\n\n .gleap-tour-message h3 {\n font-weight: 600;\n font-size: 18px;\n }\n\n .gleap-tour-message p {\n line-height: 1.3;\n margin-bottom: 10px !important;\n margin-top: 10px !important;\n }\n\n .gleap-tour-message ul {\n line-height: 1.3;\n padding-left: 20px;\n margin-top: 10px !important;\n margin-bottom: 10px !important;\n }\n\n .gleap-tour-message {\n max-height: calc(80vh - 100px) !important;\n overflow-y: auto;\n min-width: 270px;\n }\n\n .gleap-tour-message::-webkit-scrollbar {\n width: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-track {\n border-radius: 0px;\n }\n \n .gleap-tour-message::-webkit-scrollbar-thumb {\n background: ").concat(y,"; \n border-radius: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-thumb:hover {\n background: ").concat(m,";\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-message {\n min-width: auto !important;\n }\n }\n\n .gleap-tour-message iframe {\n width: 100%;\n height: 300px;\n margin-top: 10px;\n margin-bottom: 10px;\n border: none;\n outline: none;\n display: block;\n }\n\n .gleap-tour-sender-name {\n font-size: 15px;\n }\n\n .gleap-tour-video {\n width: 100%;\n max-width: 100%;\n }\n\n .gleap-tour-video-svg--fullscreen {\n width: 100% !important;\n height: 100% !important;\n top: 0px !important;\n left: 0px !important;\n right: 0px !important;\n bottom: 0px !important;\n }\n\n .gleap-tour-video--playing .gleap-tour-video-playpause {\n opacity: 0;\n }\n \n .gleap-tour-video--playing:hover .gleap-tour-video-playpause {\n opacity: 1;\n }\n\n .gleap-tour-popover-video-pointer {\n padding: 0px !important;\n border-radius: 8px;\n position: relative;\n background-color: transparent !important;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer {\n position: absolute;\n top: 0px;\n left: 20px;\n right: 20px;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer button {\n padding: 5px 12px;\n }\n\n .gleap-tour-popover-video-pointer.gleap-tour-popover-can-close .gleap-tour-popover-footer {\n right: 40px !important;\n }\n\n .gleap-tour-popover-video-pointer:hover .gleap-tour-popover-footer {\n opacity: 1;\n }\n\n .gleap-tour-popover-pointer.gleap-tour-popover-no-sender .gleap-tour-message {\n padding-right: 20px;\n }\n\n .gleap-tour-video video {\n width: 100%;\n max-width: 100%;\n height: auto;\n border: none;\n outline: none;\n display: block;\n border-radius: 8px;\n }\n\n .gleap-admin-collapse-ui {\n z-index: ").concat(2147483635,";\n cursor: pointer;\n position: fixed;\n bottom: 75px;\n right: 20px;\n width: 32px;\n height: 32px;\n border-radius: 100%;\n background-color: #fff;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;\n }\n\n .gleap-admin-collapse-ui svg {\n width: 20px;\n height: 14px;\n fill: #000 !important;\n }\n\n .gleap-admin-collapse-ui-active {\n bottom: 20px !important;\n }\n\n .gleap-admin-collapse-ui-active svg {\n transform: rotate(180deg);\n }\n\n .gleap-admin-frame-container-active {\n display: none !important;\n }\n\n .gleap-admin-frame-container {\n position: fixed;\n bottom: 0px;\n left: 0px;\n right: 0px;\n width: 100vw;\n z-index: ").concat(2147483640,";\n }\n\n .gleap-admin-frame {\n width: 100%;\n height: 100% !important;\n border: none;\n outline: none;\n display: block;\n }\n \n .gleap-tour-message .linktype-link {\n display: inline-block !important;\n background-color: transparent !important;\n color: ").concat(n," !important;\n }\n\n .gleap-tooltip .linktype-button,\n .gleap-tour-message .linktype-button {\n display: inline-block !important;\n border-radius: 5px;\n box-sizing: border-box;\n padding: 10px 20px !important;\n text-decoration: none !important;\n background-color: ").concat(n," !important;\n color: ").concat(p," !important;\n }\n\n .gleap-tour-message img {\n width: 100%;\n max-width: 100%;\n min-height: 260px;\n height: auto;\n margin-top: 10px;\n margin-bottom: 10px;\n object-fit: cover;\n }\n\n .gleap-tour-active .gleap-tour-overlay {\n pointer-events: none;\n }\n \n .gleap-tour-active * {\n pointer-events: none;\n }\n \n .gleap-tour-active .gleap-tour-active-element,\n .gleap-tour-active .gleap-tour-active-element *,\n .gleap-tour-popover,\n .gleap-tour-popover * {\n pointer-events: auto;\n }\n \n @keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n .gleap-tour-fade .gleap-tour-overlay {\n animation: animate-fade-in 200ms ease-in-out;\n }\n \n .gleap-tour-fade .gleap-tour-popover {\n animation: animate-fade-in 200ms;\n }\n\n .gleap-tour-video-playpause {\n position: absolute;\n bottom: 8px;\n left: 8px;\n width: 32px;\n height: 32px;\n padding: 4px;\n background-color: rgba(0,0,0,0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border-radius: 8px;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-arrow {\n display: none !important;\n }\n\n .gleap-tour-video-playpause svg {\n width: 34px;\n height: auto;\n fill: #fff;\n }\n \n /* Popover styles */\n .gleap-tour-popover {\n all: unset;\n box-sizing: border-box;\n color: #2d2d2d;\n margin: 0;\n padding: 15px;\n border-radius: ").concat(S,'px;\n min-width: 250px;\n max-width: 300px;\n box-shadow: 0 1px 10px #0006;\n z-index: 1000000000;\n position: fixed;\n top: 0;\n right: 0;\n background-color: #fff;\n }\n \n .gleap-tour-popover * {\n font-family: "Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif;\n }\n \n .gleap-tour-popover-title {\n font: 19px / normal sans-serif;\n font-weight: 700;\n display: block;\n position: relative;\n line-height: 1.5;\n zoom: 1;\n margin: 0;\n }\n \n .gleap-tour-popover-close-btn {\n all: unset;\n position: absolute;\n top: 5px;\n right: 5px;\n width: 32px;\n height: 32px;\n cursor: pointer;\n font-size: 30px;\n font-weight: 500;\n line-height: 32px;\n color: #d2d2d2;\n z-index: 1;\n text-align: center;\n transition: color;\n transition-duration: 200ms;\n }\n \n .gleap-tour-popover-close-btn:hover,\n .gleap-tour-popover-close-btn:focus {\n color: #2d2d2d;\n }\n \n .gleap-tour-popover-title[style*="block"] + .gleap-tour-popover-description {\n margin-top: 5px;\n }\n \n .gleap-tour-popover-description {\n margin-bottom: 0;\n font: 15px / normal sans-serif;\n line-height: 1.5;\n font-weight: 400;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer {\n margin-top: 15px;\n text-align: right;\n zoom: 1;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n \n .gleap-tour-popover-progress-text {\n font-size: 13px;\n font-weight: 400;\n color: #727272;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer button {\n background-color: ').concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 10px 20px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;\n }\n\n .gleap-tour-popover-prev-btn {\n color: ").concat(f," !important;\n background-color: ").concat(b," !important;\n margin-right: 3px;\n }\n\n .gleap-tour-popover-prev-btn:hover {\n background-color: ").concat(e,"22 !important;\n color: ").concat(e,' !important;\n }\n \n .gleap-tour-popover-footer .gleap-tour-popover-btn-disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n \n /* Disable the scrolling of parent element if it has an active element*/\n :not(body):has(> .gleap-tour-active-element) {\n overflow: hidden !important;\n }\n \n .gleap-tour-no-interaction, .gleap-tour-no-interaction * {\n pointer-events: none !important;\n }\n \n .gleap-tour-popover-navigation-btns {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n }\n \n .gleap-tour-popover-navigation-btns button + button {\n margin-left: 4px;\n }\n \n .gleap-tour-popover-arrow {\n content: "";\n position: absolute;\n border: 5px solid #fff;\n }\n \n .gleap-tour-popover-arrow-side-over {\n display: none;\n }\n \n /** Popover Arrow Sides **/\n .gleap-tour-popover-arrow-side-left {\n left: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-right {\n right: 100%;\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-top {\n top: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-bottom {\n bottom: 100%;\n border-left-color: transparent;\n border-top-color: transparent;\n border-right-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-center {\n display: none;\n }\n \n /* Left/Start + Right/Start */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-start {\n top: 15px;\n }\n \n /* Top/Start + Bottom/Start */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-start {\n left: 15px;\n }\n \n /* End/Left + End/Right */\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-left,\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-right {\n bottom: 15px;\n }\n \n /* Top/End + Bottom/End */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-end,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-end {\n right: 15px;\n }\n \n /* Left/Center + Right/Center */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-center {\n top: 50%;\n margin-top: -5px;\n }\n \n /* Top/Center + Bottom/Center */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-center {\n left: 50%;\n margin-left: -5px;\n }\n \n /* No arrow */\n .gleap-tour-popover-arrow-none {\n display: none;\n } \n\n /* Modal styles */\n .gleap-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: ').concat(2147483640,";\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-modal-backdrop {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: ").concat(2147483641,";\n }\n\n .gleap-modal {\n position: relative;\n width: 90%;\n max-width: 600px;\n max-height: 90vh;\n z-index: ").concat(2147483700,";\n background-color: ").concat(r,";\n border-radius: ").concat(k,"px;\n overflow: hidden;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n }\n\n .gleap-modal-frame {\n width: 100%;\n border: none;\n display: block;\n outline: none;\n }\n\n body.gleap-modal-open {\n overflow: hidden;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n "),T=document.querySelector(".gleap-styles");T&&T.remove();var E=document.createElement("style");E.innerHTML=L,E.className="gleap-styles",document.body.appendChild(E)}(e,t,n,r,o,i,s,c)}))}},{key:"sendSilentCrashReport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};return e.sendSilentCrashReportWithFormData({description:t},n,o)}},{key:"sendSilentCrashReportWithFormData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};if(!this.silentCrashReportSent){this.silentCrashReportSent=!0,setTimeout((function(){t.silentCrashReportSent=!1}),1e4);var r=o?k(o):{},i=$e.getInstance();if(i.ready){var a=e||{};i.session.email&&(a.reportedBy=i.session.email),new _t("CRASH",n,a,!0,r).sendFeedback().then((function(){})).catch((function(e){}))}}}},{key:"showSurvey",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"survey";e.startFeedbackFlowWithOptions(t,{hideBackButton:!0,format:n},!0)}},{key:"startClassicForm",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlow",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlowWithOptions",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.autostartDrawing,i=n.hideBackButton,a=n.format;if($e.getInstance().ready){e.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY});var s="start-feedbackflow";o&&(s="start-survey"),Gt.getInstance().setAppMode(o?a:"widget"),Gt.getInstance().sendMessage({name:s,data:{flow:t,hideBackButton:i,format:a}},!0),r?Gt.getInstance().showDrawingScreen("screenshot"):Gt.getInstance().showWidget()}}},{key:"openConversations",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversations",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openConversation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversation",data:{shareToken:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"startConversation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.startBot("",t)}},{key:"startBot",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-bot",data:{botId:e||"",hideBackButton:!t}},!0),Gt.getInstance().showWidget()}},{key:"openHelpCenterCollection",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-collection",data:{collectionId:e}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenterArticle",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-article",data:{articleId:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenter",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"searchHelpCenter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter-search",data:{term:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNewsArticle",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news-article",data:{id:e}},!0),Gt.getInstance().showWidget())}},{key:"openChecklists",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklists",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return!!e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-checklist",data:fi({outboundId:e,hideBackButton:!t},n?{sharedKey:n}:{})},!0),Gt.getInstance().showWidget(),!0)}},{key:"openChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklist",data:{id:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNews",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openFeatureRequests",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-feature-requests",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startProductTour",value:function(e){var t=this;$e.getInstance().startProductTourConfig(e).then((function(n){t.startProductTourWithConfig(e,n)})).catch((function(e){}))}},{key:"checkForUncompletedTour",value:function(){var e=Yr.getInstance().loadUncompletedTour();e&&Yr.getInstance().startWithConfig(e.tourId,e.tourData,500)}},{key:"startProductTourWithConfig",value:function(e,t){Yr.getInstance().startWithConfig(e,t)}},{key:"showBanner",value:function(e){try{_o.getInstance().showBanner(e)}catch(t){}}},{key:"showModal",value:function(e){try{Go.getInstance().showModal(e)}catch(t){}}},{key:"showNotification",value:function(e){Ao.getInstance().showNotification(e)}}],n&&di(t.prototype,n),o&&di(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();if(hi(gi,"invoked",!0),hi(gi,"silentCrashReportSent",!1),hi(gi,"instance",void 0),"undefined"!=typeof window){var mi=window.GleapActions;if(mi&&mi.length>0)for(var bi=0;bi(()=>{"use strict";var e={561:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["id","class","length"],n=e.attributes;return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t-1||e.push("["+n.nodeName+'="'+n.value+'"]'),e}),[])}},770:(e,t)=>{function n(e){if(!e.hasAttribute("class"))return[];try{return Array.prototype.slice.call(e.classList).filter((function(e){return/^[a-z_-][a-z\d_-]*$/i.test(e)?e:null}))}catch(n){var t=e.getAttribute("class");return(t=t.trim().replace(/\s+/g," ")).split(" ")}}Object.defineProperty(t,"__esModule",{value:!0}),t.getClasses=n,t.getClassSelectors=function(e){return n(e).filter(Boolean).map((function(e){return"."+e}))}},584:(e,t)=>{function n(e,t,o,r,i,a,s){if(a!==s)for(var c=r;c<=i&&i-c+1>=s-a;++c)o[a]=t[c],n(e,t,o,c+1,i,a+1,s);else e.push(o.slice(0,a).join(""))}Object.defineProperty(t,"__esModule",{value:!0}),t.getCombinations=function(e,t){for(var o=[],r=e.length,i=[],a=1;a<=t;++a)n(o,e,i,0,r-1,0,a);return o}},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getID=function(e){var t=e.getAttribute("id");if(null!==t&&""!==t)return t.match(/(?:^\d|:)/)?'[id="'+t+'"]':"#"+t;return null}},64:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getNthChild=function(e){var t=0,n=void 0,r=void 0,i=e.parentNode;if(Boolean(i)){var a=i.childNodes,s=a.length;for(n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.getParents=function(e){var t=[],n=e;for(;(0,o.isElement)(n);)t.push(n),n=n.parentNode;return t};var o=n(440)},970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTag=function(e){return e.tagName.toLowerCase().replace(/:/g,"\\:")}},924:(e,t,n)=>{t.A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selectorTypes,o=void 0===n?["ID","Class","Tag","NthChild"]:n,r=t.attributesToIgnore,i=void 0===r?["id","class","length"]:r,a=t.excludeRegex,s=void 0===a?null:a,c=[],d=(0,u.getParents)(e),p=!0,f=!1,v=void 0;try{for(var g,m=d[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=h(g.value,o,i,s);Boolean(b)&&c.push(b)}}catch(T){f=!0,v=T}finally{try{!p&&m.return&&m.return()}finally{if(f)throw v}}var y=[],w=!0,k=!1,x=void 0;try{for(var S,C=c[Symbol.iterator]();!(w=(S=C.next()).done);w=!0){var I=S.value;y.unshift(I);var L=y.join(" > ");if((0,l.isUnique)(e,L))return L}}catch(T){k=!0,x=T}finally{try{!w&&C.return&&C.return()}finally{if(k)throw x}}return null};var o=n(169),r=n(770),i=n(584),a=n(561),s=n(64),c=n(970),l=n(213),u=n(175);function d(e,t){var n=e.parentNode.querySelectorAll(t);return 1===n.length&&n[0]===e}function p(e,t){return t.find(d.bind(null,e))}function f(e,t,n){var o=(0,i.getCombinations)(t,3),r=p(e,o);return Boolean(r)||Boolean(n)&&(r=p(e,o=o.map((function(e){return n+e}))),Boolean(r))?r:null}function h(e,t,n,i){var l=void 0,u=function(e,t,n){var i={Tag:c.getTag,NthChild:s.getNthChild,Attributes:function(e){return(0,a.getAttributes)(e,n)},Class:r.getClassSelectors,ID:o.getID};return t.reduce((function(t,n){return t[n]=i[n](e),t}),{})}(e,t,n);i&&i instanceof RegExp&&(u.ID=i.test(u.ID)?null:u.ID,u.Class=u.Class.filter((function(e){return!i.test(e)})));var p=!0,h=!1,v=void 0;try{for(var g,m=t[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=g.value,y=u.ID,w=u.Tag,k=u.Class,x=u.Attributes,S=u.NthChild;switch(b){case"ID":if(Boolean(y)&&d(e,y))return y;break;case"Tag":if(Boolean(w)&&d(e,w))return w;break;case"Class":if(Boolean(k)&&k.length&&(l=f(e,k,w)))return l;break;case"Attributes":if(Boolean(x)&&x.length&&(l=f(e,x,w)))return l;break;case"NthChild":if(Boolean(S))return S}}}catch(C){h=!0,v=C}finally{try{!p&&m.return&&m.return()}finally{if(h)throw v}}return"*"}},440:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isElement=function(e){var t=void 0;t="object"===("undefined"==typeof HTMLElement?"undefined":n(HTMLElement))?e instanceof HTMLElement:!!e&&"object"===(void 0===e?"undefined":n(e))&&1===e.nodeType&&"string"==typeof e.nodeName;return t}},213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isUnique=function(e,t){if(!Boolean(t))return!1;var n=e.ownerDocument.querySelectorAll(t);return 1===n.length&&n[0]===e}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};return(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var n=0;nxi});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"feedbackButton",null),r(this,"injectedFeedbackButton",!1),r(this,"buttonHidden",null),r(this,"lastButtonIcon",null)}var n,o,i;return n=e,i=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(o=[{key:"toggleFeedbackButton",value:function(t){this.buttonHidden=!t,e.getInstance().updateFeedbackButtonState(),Ao.getInstance().updateContainerStyle()}},{key:"feedbackButtonPressed",value:function(){var e=Gt.getInstance();e.isOpened()?e.hideWidget():(e.setAppMode("widget"),e.showWidget())}},{key:"injectFeedbackButton",value:function(){var e=this;if(!this.injectedFeedbackButton){this.injectedFeedbackButton=!0;var t=document.createElement("div");t.addEventListener("click",(function(){e.feedbackButtonPressed()})),document.body.appendChild(t),this.feedbackButton=t,this.updateFeedbackButtonState()}}},{key:"updateNotificationBadge",value:function(e){var t=document.querySelector(".bb-notification-bubble");if(t){var n="bb-notification-bubble--hidden";e>0?(t.classList.remove(n),t.innerText=e):t.classList.add(n)}}},{key:"refresh",value:function(){document.querySelector(".bb-feedback-button")?(this.updateFeedbackButtonText(),this.updateFeedbackButtonState()):(this.injectedFeedbackButton=!1,this.feedbackButton=null,this.buttonHidden=null,this.lastButtonIcon=null,this.injectFeedbackButton())}},{key:"updateFeedbackButtonText",value:function(){var t=ut.getInstance().getFlowConfig();if(t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT){var n=document.querySelector(".bb-feedback-button-classic");n&&(n.innerText=t.widgetButtonText)}}},{key:"updateFeedbackButtonState",value:function(){if(null!==this.feedbackButton){var t=ut.getInstance().getFlowConfig(),n="";n=t.buttonLogo?''):p("button","#fff"),this.feedbackButton.className="bb-feedback-button gleap-font gl-block",this.feedbackButton.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT?(this.feedbackButton.classList.add("bb-feedback-button--classic-button-style"),this.feedbackButton.innerHTML='
').concat(t.widgetButtonText,"
")):n!==this.lastButtonIcon&&(this.feedbackButton.innerHTML='
'.concat(n).concat(p("arrowdown","#fff"),'
')),this.lastButtonIcon=n;var o=!1;null===e.getInstance().buttonHidden?t.feedbackButtonPosition===e.FEEDBACK_BUTTON_NONE&&(o=!0):e.getInstance().buttonHidden&&(o=!0),o&&this.feedbackButton.classList.add("bb-feedback-button--disabled"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_BOTTOM_LEFT&&this.feedbackButton.classList.add("bb-feedback-button--bottomleft"),Gt.getInstance().isOpened()&&this.feedbackButton.classList.add("bb-feedback-button--open");var r=Gt.getInstance().appMode;"survey"!==r&&"survey_full"!==r&&"survey_web"!==r||this.feedbackButton.classList.add("bb-feedback-button--survey"),!0!==t.hideForGuests||$e.getInstance().isUser()||this.feedbackButton.classList.add("bb-feedback-button--hidden")}}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=160?"#000000":"#ffffff"},p=function(e,t){return"button"===e?'':"drag"===e?'\x3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--\x3e':"unmute"===e?'':"mute"===e?'':"replay"===e?'\n \n ':"dismiss"===e?'':"blur"===e?'\n \n':"pen"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n':"rect"===e?'\n \n \n \n \n \n \n \n \n \n \n':"pointer"===e?'\n \n ':"clip"===e?'\n \n \n \n \n \n':"mic"===e?'\n \n \n \n \n ':"camera"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n':"recorderon"===e?'\n \n \n \n \n \n \n \n \n \n \n \n':"recorderoff"===e?'\n \n \n \n \n \n \n \n \n ':"arrowdown"===e?'\n \n '):"arrowleft"===e?'\n \n '):"close"===e?'\n \n '):"undo"===e?'\n \n \n \n \n \n \n \n \n \n ':"circle-dot"===e?''):"circle-question"===e?''):"circle-info"===e?''):"circle-exclamation"===e?''):"circle-up"===e?''):"circle-right"===e?''):""};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,t){for(var n=0;n0&&(e=e.concat(this.externalRequests)),this.filters&&this.filters.length>0)for(var t=0;t-1)&&!e.find((function(e){return e.url===s.name}))&&e.push({type:"RESOURCE",date:new Date(this.startTimestamp+s.startTime),url:s.name,duration:Math.round(s.duration),initiatorType:s.initiatorType})}}}catch(u){}var c=this.blacklist.concat(this.defaultBlacklist);if(c&&c.length>0)try{e=e.filter((function(e){for(var t=0;t70&&(e=70),this.maxRequests=e}},{key:"setStopped",value:function(e){this.stopped=e}},{key:"setFilters",value:function(e){this.filters=this.filters.concat(e||[])}},{key:"setBlacklist",value:function(e){this.blacklist=this.blacklist.concat(e||[])}},{key:"cleanRequests",value:function(){var e=Object.keys(this.requests);if(e.length>this.maxRequests)for(var t=e.slice(0,e.length-this.maxRequests),n=0;n.15?"":e}},{key:"cleanupPayload",value:function(e){if(null==e)return"{}";try{if(void 0!==("undefined"==typeof TextDecoder?"undefined":f(TextDecoder))&&ArrayBuffer.isView(e))return(new TextDecoder).decode(e)}catch(t){}return e}},{key:"preparePayload",value:function(e){var t=this.cleanupPayload(e);return this.cleanupContentSize(t)}},{key:"start",value:function(){var e=this;if(!this.initialized){this.initialized=!0;var t=this;this.interceptNetworkRequests({onFetch:function(n,o){if(!e.stopped&&o&&e.requests){if(n.length>0&&void 0!==n[0]&&void 0!==n[0].url)e.requests[o]={url:n[0].url,date:new Date,request:{payload:"",headers:void 0!==n[0].headers?Object.fromEntries(n[0].headers.entries()):{}},type:void 0!==n[0].method?n[0].method:""};else if(n.length>=2&&n[1]){var r=n[1]&&n[1].method?n[1].method:"GET";e.requests[o]={request:{payload:t.preparePayload(n[1].body),headers:n[1].headers},type:r,url:n[0],date:new Date}}else e.requests[o]={url:n[0],date:new Date};e.cleanRequests()}},onFetchLoad:function(n,o){if(!e.stopped&&o&&e.requests&&e.requests[o]){try{e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:"",responseText:""},e.calcRequestTime(o)}catch(i){}try{var r="";n.headers&&void 0!==n.headers.get&&(r=n.headers.get("content-type")),e.isContentTypeSupported(r)?n.text().then((function(r){e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:t.cleanupContentSize(r)}),e.calcRequestTime(o),e.cleanRequests()})).catch((function(t){e.cleanRequests()})):(e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:""}),e.calcRequestTime(o),e.cleanRequests())}catch(i){}}},onFetchFailed:function(t,n){!e.stopped&&n&&e.requests&&e.requests[n]&&(e.requests[n].success=!1,e.calcRequestTime(n),e.cleanRequests())},onOpen:function(t,n){e.stopped||(t&&t.bbRequestId&&n.length>=2&&e.requests&&(e.requests[t.bbRequestId]={type:n[0],url:n[1],date:new Date}),e.cleanRequests())},onSend:function(t,n){e.stopped||(t&&t.bbRequestId&&e.requests&&e.requests[t.bbRequestId]&&(e.requests[t.bbRequestId].request={payload:e.preparePayload(n.length>0?n[0]:"{}"),headers:t.requestHeaders}),e.cleanRequests())},onError:function(t,n){!e.stopped&&e.requests&&t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests[t.currentTarget.bbRequestId]&&(e.requests[t.currentTarget.bbRequestId].success=!1,e.calcRequestTime(t.bbRequestId)),e.cleanRequests()},onLoad:function(t,n){if(!e.stopped){if(t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests&&e.requests[t.currentTarget.bbRequestId]){var o=t.currentTarget,r=o.responseType,i="<"+r+">";""!==r&&"text"!==r||(i=e.cleanupContentSize(o.responseText)),e.requests[o.bbRequestId].success=!0,e.requests[o.bbRequestId].response={status:o.status,statusText:o.statusText,responseText:i},e.calcRequestTime(o.bbRequestId)}e.cleanRequests()}}})}}},{key:"interceptNetworkRequests",value:function(e){var t,n=this,o=XMLHttpRequest.prototype.open,r=XMLHttpRequest.prototype.send;return void 0===XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.gleapSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader),XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=function(e,t){this.requestHeaders||(this.requestHeaders={}),this.requestHeaders&&this.requestHeaders.hasOwnProperty(e)||(this.requestHeaders[e]||(this.requestHeaders[e]=[]),this.requestHeaders[e].push(t),this.gleapSetRequestHeader(e,t))}),XMLHttpRequest.prototype.open=function(){return this.bbRequestId=++n.requestId,e.onOpen&&e.onOpen(this,arguments),e.onLoad&&this.addEventListener("load",e.onLoad.bind(e)),e.onError&&this.addEventListener("error",e.onError.bind(e)),o.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){return e.onSend&&e.onSend(this,arguments),r.apply(this,arguments)},window.fetch&&(t=window.fetch,window.fetch=function(){var o=++n.requestId;return e.onFetch(arguments,o),t.apply(this,arguments).then((function(t){if(t&&"function"==typeof t.clone){var n=t.clone();e.onFetchLoad(n,o)}return t})).catch((function(t){throw e.onFetchFailed(t,o),t}))}),e}},{key:"blobToTextPromise",value:function(e){return new Promise((function(t,n){var o=new FileReader;o.onload=function(e){e&&e.target&&e.target.result?t(e.target.result):n()},o.onerror=function(e){n(e)},o.readAsText(e)}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&h(t.prototype,n),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();v(m,"instance",void 0);const b=m;var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400;return new Promise((function(o,r){var i=0===e.indexOf("data:image/jpeg"),a=new Image;a.src=e,a.onerror=function(){r()},a.onload=function(){var e=document.createElement("canvas"),r=t,s=n;t>a.width/1.5&&(r=a.width/1.5),n>a.height/1.5&&(s=a.height/1.5);var c=a.width,l=a.height;c>l?c>r&&(l*=r/c,c=r):l>s&&(c*=s/l,l=s),e.width=c,e.height=l,e.getContext("2d").drawImage(a,0,0,c,l),o(i?e.toDataURL("image/jpeg",.7):e.toDataURL())}}))},w=function(){return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))},k=function(e){if("string"==typeof e||e instanceof String)try{return JSON.parse(e)}catch(t){return{}}return e},x=function(e,t){return e.length>t?e.slice(0,t)+"...":e},S=function(e){try{var t=e.split("."),n=!1,o=t[t.length-2];return"co"!==o&&"com"!==o&&"gv"!==o&&"ac"!==o&&"edu"!==o&&"gov"!==o&&"mil"!==o&&"net"!==o&&"org"!==o||(n=!0),(t=t.slice(n?-3:-2)).join(".")}catch(r){}return e},C=function(e){try{var t=localStorage.getItem("gleap-widget-".concat(e));if(t)return JSON.parse(t)}catch(n){}return null},I=function(e,t){var n="gleap-widget-".concat(e);if(t)try{localStorage.setItem(n,JSON.stringify(t))}catch(o){}else localStorage.removeItem(n)},L=function(e){"complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",(function(){e()}))};function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function E(e,t){for(var n=0;n=200&&i.status<300)try{var e=i.responseText?JSON.parse(i.responseText):null;o(e)}catch(t){r({status:i.status,statusText:"JSON Parse Error",responseText:i.responseText,error:t})}else r({status:i.status,statusText:i.statusText,responseText:i.responseText})},i.onerror=function(){r({status:0,statusText:"Network Error",responseText:null})},i.send(n?JSON.stringify(n):null)}))}},{key:"_createCacheKey",value:function(e,t){return t?"".concat(e,"::").concat(t):e}},{key:"validateChecklist",value:function(e,t){var n=this,o=this._createCacheKey(e,t),r=this.validationCache.get(o);if(r)return r.status===A?Promise.resolve(r.internalId):Promise.reject(r.error);if(this.validationRequests.has(o))return this.validationRequests.get(o);var i=this._getApiUrl();if(!i){var a=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.validationCache.set(o,{status:P,error:a}),Promise.reject(a)}var s="".concat(i,"/outbound/checklists?").concat(this._getQueryParams()),c=this._makeRequest("POST",s,{outboundId:e,sharedKey:t}).then((function(e){if(e&&e.id)return n.validationCache.set(o,{status:A,internalId:e.id}),e.id;var t=new Error("Validation response missing checklist ID.");throw n.validationCache.set(o,{status:P,error:e||t}),t})).catch((function(e){throw n.validationCache.set(o,{status:P,error:e}),e})).finally((function(){n.validationRequests.delete(o)}));return this.validationRequests.set(o,c),c}},{key:"fetchChecklist",value:function(e){var t=this,n=this.fetchCache.get(e);if(n)return n.status===A?Promise.resolve(JSON.parse(JSON.stringify(n.data))):Promise.reject(n.error);if(this.fetchRequests.has(e))return this.fetchRequests.get(e).then((function(e){return JSON.parse(JSON.stringify(e))}));var o=this._getApiUrl();if(!o){var r=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.fetchCache.set(e,{status:P,error:r}),Promise.reject(r)}var i="".concat(o,"/outbound/checklists/").concat(e,"?convertTipTap=true&").concat(this._getQueryParams()),a=this._makeRequest("GET",i,null).then((function(n){if(n)return t.fetchCache.set(e,{status:A,data:n}),JSON.parse(JSON.stringify(n));var o=new Error("Empty response received for checklist fetch.");throw t.fetchCache.set(e,{status:P,error:n||o}),o})).catch((function(n){throw t.fetchCache.set(e,{status:P,error:n}),n})).finally((function(){t.fetchRequests.delete(e)}));return this.fetchRequests.set(e,a),a.then((function(e){return JSON.parse(JSON.stringify(e))}))}}])&&E(t.prototype,n),o&&E(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();O(R,"instance",null);const N=R,D=Math.min,j=Math.max,F=Math.round,_=Math.floor,B=e=>({x:e,y:e}),H={left:"right",right:"left",bottom:"top",top:"bottom"},q={start:"end",end:"start"};function U(e,t,n){return j(e,D(t,n))}function z(e,t){return"function"==typeof e?e(t):e}function W(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function V(e){return"x"===e?"y":"x"}function K(e){return"y"===e?"height":"width"}function X(e){return["top","bottom"].includes(W(e))?"y":"x"}function Z(e){return V(X(e))}function Y(e){return e.replace(/start|end/g,(e=>q[e]))}function J(e){return e.replace(/left|right|bottom|top/g,(e=>H[e]))}function Q(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ee(e,t,n){let{reference:o,floating:r}=e;const i=X(t),a=Z(t),s=K(a),c=W(t),l="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(c){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(G(t)){case"start":f[a]-=p*(n&&l?-1:1);break;case"end":f[a]+=p*(n&&l?-1:1)}return f}async function te(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=z(t,e),h=Q(f),v=s[p?"floating"===d?"reference":"floating":d],g=$(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),m="floating"===d?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=$(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:b,strategy:c}):m);return{top:(g.top-w.top+h.top)/y.y,bottom:(w.bottom-g.bottom+h.bottom)/y.y,left:(g.left-w.left+h.left)/y.x,right:(w.right-g.right+h.right)/y.x}}const ne=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=W(n),s=G(n),c="y"===X(n),l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=z(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),c?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}};function oe(e){return ae(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ie(e){var t;return null==(t=(ae(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ae(e){return e instanceof Node||e instanceof re(e).Node}function se(e){return e instanceof Element||e instanceof re(e).Element}function ce(e){return e instanceof HTMLElement||e instanceof re(e).HTMLElement}function le(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof re(e).ShadowRoot)}function ue(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function de(e){return["table","td","th"].includes(oe(e))}function pe(e){const t=fe(),n=ve(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function fe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function he(e){return["html","body","#document"].includes(oe(e))}function ve(e){return re(e).getComputedStyle(e)}function ge(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(e){if("html"===oe(e))return e;const t=e.assignedSlot||e.parentNode||le(e)&&e.host||ie(e);return le(t)?t.host:t}function be(e){const t=me(e);return he(t)?e.ownerDocument?e.ownerDocument.body:e.body:ce(t)&&ue(t)?t:be(t)}function ye(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=be(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=re(r);return i?t.concat(a,a.visualViewport||[],ue(r)?r:[],a.frameElement&&n?ye(a.frameElement):[]):t.concat(r,ye(r,[],n))}function we(e){const t=ve(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ce(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=F(n)!==i||F(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function ke(e){return se(e)?e:e.contextElement}function xe(e){const t=ke(e);if(!ce(t))return B(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=we(t);let a=(i?F(n.width):n.width)/o,s=(i?F(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Se=B(0);function Ce(e){const t=re(e);return fe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Se}function Ie(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=ke(e);let a=B(1);t&&(o?se(o)&&(a=xe(o)):a=xe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==re(e))&&t}(i,n,o)?Ce(i):B(0);let c=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=re(i),t=o&&se(o)?re(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=xe(r),t=r.getBoundingClientRect(),o=ve(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=a,n=re(r),r=n.frameElement}}return $({width:u,height:d,x:c,y:l})}const Le=[":popover-open",":modal"];function Te(e){return Le.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function Ee(e){return Ie(ie(e)).left+ge(e).scrollLeft}function Oe(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=re(e),o=ie(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;const e=fe();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=ie(e),n=ge(e),o=e.ownerDocument.body,r=j(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=j(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Ee(e);const s=-n.scrollTop;return"rtl"===ve(o).direction&&(a+=j(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(ie(e));else if(se(t))o=function(e,t){const n=Ie(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=ce(e)?xe(e):B(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Ce(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return $(o)}function Me(e,t){const n=me(e);return!(n===t||!se(n)||he(n))&&("fixed"===ve(n).position||Me(n,t))}function Ae(e,t,n){const o=ce(t),r=ie(t),i="fixed"===n,a=Ie(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=B(0);if(o||!o&&!i)if(("body"!==oe(t)||ue(r))&&(s=ge(t)),o){const e=Ie(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=Ee(r));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Pe(e,t){return ce(e)&&"fixed"!==ve(e).position?t?t(e):e.offsetParent:null}function Re(e,t){const n=re(e);if(!ce(e)||Te(e))return n;let o=Pe(e,t);for(;o&&de(o)&&"static"===ve(o).position;)o=Pe(o,t);return o&&("html"===oe(o)||"body"===oe(o)&&"static"===ve(o).position&&!pe(o))?n:o||function(e){let t=me(e);for(;ce(t)&&!he(t);){if(pe(t))return t;t=me(t)}return null}(e)||n}const Ne={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=ie(o),s=!!t&&Te(t.floating);if(o===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=B(1);const u=B(0),d=ce(o);if((d||!d&&!i)&&(("body"!==oe(o)||ue(a))&&(c=ge(o)),ce(o))){const e=Ie(o);l=xe(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:ie,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=ye(e,[],!1).filter((e=>se(e)&&"body"!==oe(e))),r=null;const i="fixed"===ve(e).position;let a=i?me(e):e;for(;se(a)&&!he(a);){const t=ve(a),n=pe(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||ue(a)&&!n&&Me(e,a))?o=o.filter((e=>e!==a)):r=t,a=me(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=Oe(t,n,r);return e.top=j(o.top,e.top),e.right=D(o.right,e.right),e.bottom=D(o.bottom,e.bottom),e.left=j(o.left,e.left),e}),Oe(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Re,getElementRects:async function(e){const t=this.getOffsetParent||Re,n=this.getDimensions;return{reference:Ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=we(e);return{width:t,height:n}},getScale:xe,isElement:se,isRTL:function(e){return"rtl"===ve(e).direction}};function De(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=ke(e),u=r||i?[...l?ye(l):[],...ye(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,o=null;const r=ie(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-_(u)+"px "+-_(r.clientWidth-(l+d))+"px "+-_(r.clientHeight-(u+p))+"px "+-_(l)+"px",threshold:j(0,D(1,c))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(v,{...f,root:r.ownerDocument})}catch(g){o=new IntersectionObserver(v,f)}o.observe(e)}(!0),i}(l,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!c&&h.observe(l),h.observe(t));let v=c?Ie(e):null;return c&&function t(){const o=Ie(e);!v||o.x===v.x&&o.y===v.y&&o.width===v.width&&o.height===v.height||n();v=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const je=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=z(e,t),l={x:n,y:o},u=await te(t,c),d=X(W(r)),p=V(d);let f=l[p],h=l[d];if(i){const e="y"===p?"bottom":"right";f=U(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=U(h+u["y"===d?"top":"left"],h,h-u[e])}const v=s.fn({...t,[p]:f,[d]:h});return{...v,data:{x:v.x-n,y:v.y-o}}}}},Fe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=z(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=W(r),b=W(s)===s,y=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=p||(b||!v?[J(s)]:function(e){const t=J(e);return[Y(e),t,Y(t)]}(s));p||"none"===h||w.push(...function(e,t,n,o){const r=G(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(W(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(Y)))),i}(s,v,h,y));const k=[s,...w],x=await te(t,g),S=[];let C=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&S.push(x[m]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=G(e),r=Z(e),i=K(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=J(a)),[a,J(a)]}(r,a,y);S.push(x[e[0]],x[e[1]])}if(C=[...C,{placement:r,overflows:S}],!S.every((e=>e<=0))){var I,L;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(L=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},_e=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=z(e,t)||{};if(null==l)return{};const d=Q(u),p={x:n,y:o},f=Z(r),h=K(f),v=await a.getDimensions(l),g="y"===f,m=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[f]-p[f]-i.floating[h],k=p[f]-i.reference[f],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=x?x[y]:0;S&&await(null==a.isElement?void 0:a.isElement(x))||(S=s.floating[y]||i.floating[h]);const C=w/2-k/2,I=S/2-v[h]/2-1,L=D(d[m],I),T=D(d[b],I),E=L,O=S-v[h]-T,M=S/2-v[h]/2+C,A=U(E,M,O),P=!c.arrow&&null!=G(r)&&M!==A&&i.reference[h]/2-(M{const o=new Map,r={platform:Ne,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=ee(l,o,c),p=o,f={},h=0;for(let v=0;ve.length)&&(t=e.length);for(var n=0,o=new Array(t);n'):""),i.appendChild(a),t.repositionHotspot(e,n),r=a,t.elementToTooltipMap.set(e,n)}else r=e;var s=t.createTooltip(r,n.html,n);t.elementToFloatingUIMap.set(e,s)}}})),We(this,"updateFilteredTooltips",(function(){t.filteredTooltips=t.getFilteredTooltips(),t.checkForTooltips()})),We(this,"getFilteredTooltips",(function(){if(!t.tooltips)return[];var e=window.location.href;return t.tooltips.filter((function(t){if(!t.page||0===t.page.length)return!0;var n=t.pageType,o=t.page;switch(n){case"is":return e===o;case"isnot":return e!==o;case"contains":return e.includes(o);case"notcontains":return!e.includes(o);case"startswith":return e.startsWith(o);case"endswith":return e.endsWith(o);default:return!1}}))})),We(this,"checkForTooltips",(function(){for(var e=0;e0&&this.filteredTooltips.forEach((function(n){n.selector&&e.matches(n.selector)&&t.linkTooltip(e,n)}))}},{key:"start",value:function(){var e=this,t=this;if(window){var n,o,r,i=(n=t.updateHotspotPositions.bind(t),o=250,r=null,function(){if(!r){var e=this,t=arguments;r=setTimeout((function(){n.call.apply(n,[e].concat(qe(t))),r=null}),o)}});window.addEventListener("resize",i),window.requestAnimationFrame((function(){e.observer=new MutationObserver((function(n){t.lastUrl!==window.location.href&&(t.lastUrl=window.location.href,t.filteredTooltips=t.getFilteredTooltips()),n.forEach((function(n){n.addedNodes.forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&t.processNodeInsertion(e)})),n.removedNodes.forEach((function(t){if(t.nodeType===Node.ELEMENT_NODE&&e.elementToFloatingUIMap.has(t)){var n=e.elementToFloatingUIMap.get(t);n&&(n.tooltip&&n.tooltip.remove(),n.cleanup(),e.elementToFloatingUIMap.delete(t))}e.elementToTooltipMap.has(t)&&e.elementToTooltipMap.delete(t)}))}))})),e.observer.observe(document.body,{childList:!0,subtree:!0})}))}}},{key:"updateHotspotPositions",value:function(){var e=this;document.querySelectorAll("[data-gleap-tooltip-mode='hotspot']").forEach((function(t){var n=e.elementToTooltipMap.get(t);n&&e.repositionHotspot(t,n)}))}},{key:"createTooltip",value:function(e,t,n){var o=document.createElement("div");o.className="gleap-tooltip",o.innerHTML='
\n '.concat(t,'\n
\n \n \n \n
\n
'),document.body.appendChild(o);var r,i=o.querySelector(".gleap-tooltip-arrow"),a=De(e,o,(function(){Be(e,o,{placement:"left"===n.posX?"left":"right",middleware:[ne(10),Fe(),je(),_e({element:i})]}).then((function(e){var t=e.x,n=e.y,r=e.middlewareData,a=e.placement;try{if(Object.assign(o.style,{left:"".concat(t,"px"),top:"".concat(n,"px")}),r.arrow){var s={left:"",top:"",transform:""};null!=r.arrow.x&&(s.left="".concat(r.arrow.x,"px"),"bottom"===a?(s.transform="translateY(-7px) rotate(180deg)",s.top="".concat(-20,"px")):"top"===a&&(s.transform="translateY(7px) rotate(0deg)",s.top="100%")),null!=r.arrow.y&&(s.top="".concat(r.arrow.y,"px"),"right"===a?(s.transform="translateX(-7px) rotate(90deg)",s.left="".concat(-20,"px")):"left"===a&&(s.transform="translateX(7px) rotate(270deg)",s.left="100%")),Object.assign(i.style,s)}}catch(c){}}))}));function s(){clearTimeout(r),o.style.visibility="visible",o.style.opacity="1",o.style.pointerEvents="auto"}function c(){r=setTimeout((function(){o.style.opacity="0",setTimeout((function(){o.style.visibility="hidden",o.style.pointerEvents="none"}),200)}),500)}return e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",c),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c),{cleanup:a,tooltip:o}}},{key:"canEmbed",value:function(e){var t=new Set(["area","base","br","embed","hr","img","input","source","track","wbr","canvas"]);return e&&!t.has(e.tagName.toLowerCase())}},{key:"destroy",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),document.querySelectorAll(".gleap-tooltip").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-anchor]").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-hotspot]").forEach((function(e){return e.remove()})),this.elementToFloatingUIMap=new WeakMap,this.elementToTooltipMap=new WeakMap,this.tooltips=[],this.filteredTooltips=[]}},{key:"repositionHotspot",value:function(e,t){if(e&&t){var n=e.getAttribute("data-gleap-tooltip");if(n){var o=document.querySelector('[data-gleap-tooltip-hotspot="'.concat(n,'"]'));if(o){t.posX||(t.posX="right"),t.posY||(t.posY="center"),t.offsetX||(t.offsetX=4),t.offsetY||(t.offsetY=0);var r=e.getBoundingClientRect();try{var i=document.createRange();i.selectNodeContents(e);var a=window.getComputedStyle(e),s=i.getBoundingClientRect().width+parseFloat(a.paddingLeft);s0&&void 0!==arguments[0]?arguments[0]:0,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash));try{I("session-".concat(t.sdkKey),null)}catch(r){}if(t.useCookies)try{!function(e){try{var t=S(window.location.host.split(":")[0]);document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Domain="+t}catch(r){}}("session-".concat(t.sdkKey))}catch(r){}if(t.ready=!1,t.session={gleapId:null,gleapHash:null,name:"",email:"",userId:"",phone:"",value:0},Gt.getInstance().sendMessage({name:"session-cleared"},!0),Ao.getInstance().clearAllNotifications(!1),Ao.getInstance().setNotificationCount(0),_o.getInstance().removeBannerUI(),Go.getInstance().hideModal(),n&&!isNaN(e)){var o=10*Math.pow(e,2);setTimeout((function(){t.startSession(e+1)}),1e3*o)}})),Je(this,"validateSession",(function(e){var n;if(e&&e.gleapId){var o=!1;(null===(n=t.session)||void 0===n?void 0:n.gleapId)!==(null==e?void 0:e.gleapId)&&(o=!0),t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),I("session-".concat(t.sdkKey),e),t.useCookies&&function(e,t,n){try{var o="";if(n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),o="; expires="+r.toUTCString()}var i=S(window.location.host.split(":")[0]);document.cookie=e+"="+(t||"")+o+"; path=/; domain="+i}catch(a){}}("session-".concat(t.sdkKey),encodeURIComponent(JSON.stringify(e)),365),t.session=e,t.ready=!0,t.session&&t.session.gleapHash&&kn.notifyEvent("register-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),o&&(setTimeout((function(){N.getInstance().clearCache(),rt.getInstance().restart();var e=Ve.getInstance();if(e){try{e.destroy()}catch(t){}e.load()}}),0),"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("session-updated"))),t.notifySessionReady()}})),Je(this,"startSession",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{if(t.useCookies){var n=function(e){try{for(var t=e+"=",n=document.cookie.split(";"),o=0;o0)){var r=C("session-".concat(t.sdkKey));r&&t.validateSession(r)}var i=t,a=new XMLHttpRequest;a.open("POST",i.apiUrl+"/sessions"),a.setRequestHeader("Content-Type","application/json;charset=UTF-8"),a.setRequestHeader("Api-Token",i.sdkKey);try{t.session&&t.session.gleapId&&t.session.gleapHash&&(a.setRequestHeader("Gleap-Id",t.session.gleapId),a.setRequestHeader("Gleap-Hash",t.session.gleapHash))}catch(s){}a.onreadystatechange=function(t){if(4===a.readyState)if(200===a.status||201===a.status)try{var n=JSON.parse(a.responseText);i.validateSession(n)}catch(s){}else 429!==a.status&&i.clearSession(e,!0)},a.send(JSON.stringify({lang:go.getInstance().getActiveLanguage()}))})),Je(this,"checkIfSessionNeedsUpdate",(function(e,n){if(!t.session||!t.session.userId||!e)return!0;try{if(t.session.userId.toString()!==e.toString())return!0}catch(o){}return t.checkIfSessionDataNeedsUpdate(n)})),Je(this,"checkIfSessionDataNeedsUpdate",(function(e){if(e)for(var n=Object.keys(e),o=0;o0)for(var e=0;e2)&&0!==t.streamedEventArray.length&&t.socket&&t.socket.readyState===t.socket.OPEN){var e=t;t.streamingEvents=!0;var n=new XMLHttpRequest;n.open("POST",$e.getInstance().apiUrl+"/sessions/ping"),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),$e.getInstance().injectSession(n),n.onerror=function(){e.errorCount++,e.streamingEvents=!1},n.onreadystatechange=function(t){4===n.readyState&&(200===n.status||201===n.status?e.errorCount=0:e.errorCount++,e.streamingEvents=!1)};var o=Yt.getInstance().getSessionDuration();n.send(JSON.stringify({time:o,events:t.streamedEventArray,opened:Gt.getInstance().isOpened(),type:"js",sdkVersion:"14.6.3",ws:!0})),t.streamedEventArray=[]}})),this.handleOpenBound=this.handleOpen.bind(this),this.handleErrorBound=this.handleError.bind(this),this.handleMessageBound=this.handleMessage.bind(this),this.handleCloseBound=this.handleClose.bind(this)}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"cleanupWebSocket",value:function(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null),this.pingWS&&clearInterval(this.pingWS),this.socket&&(this.socket.removeEventListener("open",this.handleOpenBound),this.socket.removeEventListener("error",this.handleErrorBound),this.socket.removeEventListener("message",this.handleMessageBound),this.socket.removeEventListener("close",this.handleCloseBound),this.socket.close(),this.socket=null)}},{key:"initWebSocket",value:function(){this.cleanupWebSocket(),this.connectedWebSocketGleapId=$e.getInstance().session.gleapId,$e.getInstance().session&&$e.getInstance().sdkKey&&(this.socket=new WebSocket("".concat($e.getInstance().wsApiUrl,"?gleapId=").concat($e.getInstance().session.gleapId,"&gleapHash=").concat($e.getInstance().session.gleapHash,"&apiKey=").concat($e.getInstance().sdkKey,"&sdkVersion=").concat("14.6.3")),this.socket.addEventListener("open",this.handleOpenBound),this.socket.addEventListener("message",this.handleMessageBound),this.socket.addEventListener("error",this.handleErrorBound),this.socket.addEventListener("close",this.handleCloseBound))}},{key:"handleOpen",value:function(e){var t=this;this.pingWS=setInterval((function(){t.socket.readyState===t.socket.OPEN&&(t.socket.send("PING"),t.socket.send(9))}),1e4),this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null)}},{key:"handleMessage",value:function(e){this.processMessage(JSON.parse(e.data))}},{key:"handleError",value:function(e){}},{key:"handleClose",value:function(e){var t=this;setTimeout((function(){t.initWebSocket()}),5e3)}},{key:"processMessage",value:function(e){try{if("update"===e.name){var t=e.data,n=t.a,o=t.u;Gt.getInstance().isOpened()||(n&&ki.getInstance().performActions(n),null!=o&&Ao.getInstance().setNotificationCount(o))}"checklist"===e.name&&null!=e&&e.data&&window&&"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("checkListUpdate",{detail:e.data}))}catch(r){}}},{key:"getEventArray",value:function(){return this.eventArray}},{key:"stop",value:function(){this.cleanupMainLoop()}},{key:"resetErrorCountLoop",value:function(){var e=this;setInterval((function(){e.errorCount=0}),6e4)}},{key:"cleanupMainLoop",value:function(){this.mainLoopTimeout&&(clearInterval(this.mainLoopTimeout),this.mainLoopTimeout=null)}},{key:"restart",value:function(){this.connectedWebSocketGleapId!==$e.getInstance().session.gleapId&&this.initWebSocket(),this.cleanupMainLoop(),this.trackInitialEvents(),this.runEventStreamLoop()}},{key:"start",value:function(){this.startPageListener(),this.resetErrorCountLoop()}},{key:"trackInitialEvents",value:function(){e.getInstance().logEvent("sessionStarted"),e.getInstance().logCurrentPage()}},{key:"logCurrentPage",value:function(){if(!ki.getInstance().disablePageTracking){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.logEvent("pageView",{page:e}))}}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"logEvent",value:function(e,t){var n={name:e,date:new Date};t&&(n.data=k(t)),this.eventArray.push(n),this.streamedEventArray.push(n),this.eventArray.length>this.eventMaxLength&&this.eventArray.shift(),this.streamedEventArray.length>this.eventMaxLength&&this.streamedEventArray.shift()}}])&&tt(t.prototype,n),o&&tt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function at(e,t){for(var n=0;n0)for(var e=0;e=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function ft(e,t,n,o,r,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(o,r)}function ht(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ft(i,o,r,a,s,"next",e)}function s(e){ft(i,o,r,a,s,"throw",e)}a(void 0)}))}}var vt=function(e){var t="",n=window.document.doctype;if(n&&(t=""),e&&e.childNodes&&e.childNodes.length>0)for(var o=0;o1?t-1:0),r=1;r0||t.scrollLeft>0)&&(s.setAttribute("bb-scrollpos",!0),s.setAttribute("bb-scrolltop",t.scrollTop),s.setAttribute("bb-scrollleft",t.scrollLeft)),"SELECT"!==d&&"TEXTAREA"!==d&&"INPUT"!==d||(f=t.value,("value"===t.getAttribute("gleap-ignore")||t.classList.contains("gl-mask"))&&(f=new Array(f.length+1).join("*")),s.setAttribute("bb-data-value",f),"checkbox"!==t.type&&"radio"!==t.type||!t.checked||s.setAttribute("bb-data-checked",!0))),r.appendChild(s),!t.shadowRoot){e.next=29;break}return h=n,n++,e.next=27,a(t.shadowRoot.firstChild,s,h);case 27:St(t.shadowRoot,s,h),void 0!==s.setAttribute&&s.setAttribute("bb-shadow-parent",h);case 29:return e.next=31,a(t.firstChild,s);case 31:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(t,n,o){return e.apply(this,arguments)}}(),r=document.createDocumentFragment(),e.next=5,o(t,r);case 5:return(i=r.querySelector("head"))||(i=r),St(window.document,i),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Lt=function(e){return new Promise(function(){var t=ht(pt().mark((function t(n,o){var r,i,a,s,c,l,u,d,p,f,h,v,g,m,b;return pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r=window.document.querySelectorAll("style, link"),i=0;i0){for(l=c.childNodes;l.length>0;)c.parentNode.insertBefore(l[0],c);c.remove()}for(u=a.querySelectorAll("script, noscript"),i=0;i0?r.innerHTML=n.formatTime(e):(r.innerHTML="2:00",n.stopScreenRecording())}),1e3),this.mediaRecorder.ondataavailable=function(e){e.data.size>0&&o.push(e.data)},t.getVideoTracks()[0].onended=function(){n.prepareRecording(o)},this.mediaRecorder.onstop=function(){n.prepareRecording(o)},this.mediaRecorder.start(200),n.rerender()})),Ot(this,"prepareRecording",(function(e){var t=new Blob(e,{type:this.getSupportedMimeType()}),n=this.getSupportedMimeType(),o=n.includes("mp4")?"mp4":"webm";this.file=new File([t],"screen-recording.".concat(o),{type:n});var r=document.querySelector(".bb-capture-preview video");r&&(r.src=URL.createObjectURL(t),this.audioAvailable=!0,this.isRecording=!1,this.rerender())})),this.rerender=t,this.permissionErrorText=n,navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia||(this.available=!1),setTimeout((function(){o.rerender()}),100)}var t,n,o;return t=e,(n=[{key:"getSupportedMimeType",value:function(){for(var e=0,t=["video/webm","audio/webm","video/webm;codecs=vp8","video/webm;codecs=daala","video/webm;codecs=h264","audio/webm;codecs=opus","video/mp4"];e0&&(e.tags=t),this.excludeData)for(var n=Object.keys(this.excludeData),o=0;oe.length)&&(t=e.length);for(var n=0,o=new Array(t);n0)if(t){var n=window.open(e,"_blank");n&&n.focus()}else window.location.href=e})),zt(this,"autoWhiteListCookieManager",(function(){window&&window.cmp_block_ignoredomains&&window.cmp_block_ignoredomains.concat(["messenger-app.gleap.io"])})),zt(this,"injectFrame",(function(){t.injectedFrame||(t.injectedFrame=!0,t.autoWhiteListCookieManager(),L((function(){ut.getInstance().onConfigLoaded((function(){ut.getInstance().applyStylesFromConfig();var e=document.createElement("div");e.className="gleap-frame-container gleap-frame-container--hidden gl-block",e.innerHTML='
'),document.body.appendChild(e),t.gleapFrameContainer=e,t.gleapFrame=document.querySelector(".gleap-frame"),t.updateFrameStyle(),"widget"===t.appMode&&t.showFrameContainer(!0)}))})))})),zt(this,"showImage",(function(e){L((function(){var t=document.createElement("div");t.className="gleap-image-view",t.innerHTML='
\n \n
'),document.body.appendChild(t);var n=function(){t.remove()};t.querySelector(".gleap-image-view-close").addEventListener("click",(function(){n()})),t.addEventListener("click",(function(e){e.target===t&&n()}))}))})),zt(this,"updateFrameStyle",(function(){if(t.gleapFrameContainer){for(var e="gleap-frame-container--survey",n="gleap-frame-container--extended",o="gleap-frame-container--survey-full",r="gleap-frame-container--classic",i="gleap-frame-container--classic-left",s="gleap-frame-container--modern-left",c="gleap-frame-container--no-button",l=[r,i,n,s,c,e,o],u=0;u1&&void 0!==arguments[1]&&arguments[1];try{this.gleapFrame=document.querySelector(".gleap-frame"),this.comReady&&this.gleapFrame&&this.gleapFrame.contentWindow?this.gleapFrame.contentWindow.postMessage(JSON.stringify(e),"*"):t&&this.queue.push(e)}catch(n){}}},{key:"sendSessionUpdate",value:function(){this.sendMessage({name:"session-update",data:{sessionData:$e.getInstance().getSession(),apiUrl:$e.getInstance().apiUrl,sdkKey:$e.getInstance().sdkKey}})}},{key:"sendConfigUpdate",value:function(){this.sendMessage({name:"config-update",data:{config:ut.getInstance().getFlowConfig(),aiTools:ut.getInstance().getAiTools(),overrideLanguage:go.getInstance().getOverrideLanguage()}}),this.updateFrameStyle()}},{key:"showDrawingScreen",value:function(e){var t=this;this.hideWidget(),this.markerManager=new uo(e),this.markerManager.show((function(e){e||t.hideMarkerManager(),t.showWidget()}))}},{key:"workThroughQueue",value:function(){var e=Ht(this.queue);this.queue=[];for(var t=0;t0&&(n.tags=o),e.sendMessage({name:"collect-ticket-data",data:n})}if("height-update"===t.name){e.frameHeight=t.data;var r=document.querySelector(".gleap-frame-container-inner");"survey"!==e.appMode&&"survey_full"!==e.appMode&&"survey_web"!==e.appMode||!r||(r.style.maxHeight="".concat(e.frameHeight,"px"))}if("notify-event"===t.name&&kn.notifyEvent(t.data.type,t.data.data),"cleanup-drawings"===t.name&&e.hideMarkerManager(),"open-url"===t.name){var i=t.data,a=!!t.newTab;e.urlHandler(i,a)}if("run-custom-action"===t.name&&En.triggerCustomAction(t.data,{shareToken:t.shareToken}),"close-widget"===t.name&&e.hideWidget(),"tool-execution"===t.name&&kn.notifyEvent("tool-execution",t.data),"send-feedback"===t.name){var s=t.data.formData,c=t.data.action,l=t.data.outboundId,u=t.data.spamToken;new _t(c.feedbackType,"MEDIUM",s,!1,c.excludeData,l,u).sendFeedback().then((function(t){if(e.sendMessage({name:"feedback-sent",data:t}),kn.notifyEvent("feedback-sent",s),l&&l.length>0){kn.notifyEvent("outbound-sent",{outboundId:l,outbound:c,formData:s});try{delete s.reportedBy}catch(n){}ki.trackEvent("outbound-".concat(l,"-submitted"),s)}})).catch((function(t){e.sendMessage({name:"feedback-sending-failed",data:"Something went wrong, please try again."}),kn.notifyEvent("error-while-sending")}))}"start-screen-drawing"===t.name&&e.showDrawingScreen(t.data)})),window.addEventListener("message",(function(t){if(t.origin===e.frameUrl||t.origin===_o.getInstance().bannerUrl)try{for(var n=JSON.parse(t.data),o=0;o1&&void 0!==arguments[1]?arguments[1]:"INFO";!e||e.length<=0||(this.logArray.push({log:x(e,1e3),date:new Date,priority:t}),this.logArray.length>this.logMaxLength&&this.logArray.shift())}},{key:"addLogWithArgs",value:function(e,t){if(e&&!(e.length<=0)){var n="";try{for(var o=0;o1&&void 0!==arguments[1])||arguments[1],n=x(e.innerText||"",40).replace(/(\r\n|\n|\r)/gm,"").replace(/ +(?= )/g,""),o="",r="";if(void 0!==e.getAttribute){var i=e.getAttribute("id");i&&(o=' id="'.concat(i,'"'));var a=e.getAttribute("class");a&&(r=' class="'.concat(a,'"'))}var s=(e.tagName||"").toLowerCase(),c="<",l=">";return t||(c="[",l="]"),"".concat(c).concat(s).concat(o).concat(r).concat(l).concat(n).concat(c,"/").concat(s).concat(l)}(e.target),"CLICK")}}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&an(t.prototype,n),o&&an(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function pn(e){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pn(e)}function fn(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if("flow-started"===e){var n=ki.getInstance();n.setGlobalDataItem("webReplay",null),n.setGlobalDataItem("screenRecordingData",null),n.takeCurrentReplay()}var o=this.getInstance().eventListeners[e];if(o)for(var r=0;r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||Rn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function An(e){return function(e){if(Array.isArray(e))return Nn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Rn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Rn(e,t){if(e){if("string"==typeof e)return Nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n=0;g--){var m=n.get(g);if(m){var b=t.mirror.getId(m.value.parentNode);if(-1===o(m.value))continue;if(-1!==b){f=m;break}var y=m.value;if(y.parentNode&&y.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=y.parentNode.host;if(-1!==t.mirror.getId(w)){f=m;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),r(f.value)}var k={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){return{id:t.mirror.getId(e.node),attributes:e.attributes}})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:e};!k.texts.length&&!k.attributes.length&&!k.removes.length&&!k.adds.length||(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(k))}},this.processMutation=function(e){if(!Ye(e.target,t.mirror))switch(e.type){case"characterData":var n=e.target.textContent;!Ze(e.target,t.blockClass,t.blockSelector,!1)&&n!==e.oldValue&&t.texts.push({value:Be(e.target,t.maskTextClass,t.maskTextSelector)&&n?t.maskTextFn?t.maskTextFn(n):n.replace(/[\S]/g,"*"):n,node:e.target});break;case"attributes":var o=e.target,r=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(r=Ae({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:r,maskInputFn:t.maskInputFn})),Ze(e.target,t.blockClass,t.blockSelector,!1)||r===e.oldValue)return;var i=t.attributes.find((function(t){return t.node===e.target}));if("IFRAME"===o.tagName&&"src"===e.attributeName&&!t.keepIframeSrcFn(r)){if(o.contentDocument)return;e.attributeName="rr_src"}if(i||(i={node:e.target,attributes:{}},t.attributes.push(i)),"style"===e.attributeName){var a=t.doc.createElement("span");e.oldValue&&a.setAttribute("style",e.oldValue),(void 0===i.attributes.style||null===i.attributes.style)&&(i.attributes.style={});for(var s=i.attributes.style,c=0,l=Array.from(o.style);c0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){if("rrweb"===e.data.type){if(!e.source)return;var t=this.crossOriginIframeMap.get(e.source);if(!t)return;var n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}}},{key:"transformCrossOriginEvent",value:function(e,t){var n,o=this;switch(t.type){case m.FullSnapshot:return this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e),{timestamp:t.timestamp,type:m.IncrementalSnapshot,data:{source:b.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case m.Meta:case m.Load:case m.DomContentLoaded:return!1;case m.Plugin:return t;case m.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case m.IncrementalSnapshot:switch(t.data.source){case b.Mutation:return t.data.adds.forEach((function(t){o.replaceIds(t,e,["parentId","nextId","previousId"]),o.replaceIdOnNode(t.node,e)})),t.data.removes.forEach((function(t){o.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){o.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.Drag:case b.TouchMove:case b.MouseMove:return t.data.positions.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.ViewportResize:return!1;case b.MediaInteraction:case b.MouseInteraction:case b.Scroll:case b.CanvasMutation:case b.Input:return this.replaceIds(t.data,e,["id"]),t;case b.StyleSheetRule:case b.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case b.Font:return t;case b.Selection:return t.data.ranges.forEach((function(t){o.replaceIds(t,e,["start","end"])})),t;case b.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach((function(t){o.replaceStyleIds(t,e,["styleId"])})),t}}}},{key:"replace",value:function(e,t,n,o){var r,i=Pn(o);try{for(i.s();!(r=i.n()).done;){var a=r.value;!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]))}}catch(s){i.e(s)}finally{i.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id"]),"childNodes"in e&&e.childNodes.forEach((function(e){n.replaceIdOnNode(e,t)}))}}]),e}(),W=Object.defineProperty,G=Object.defineProperties,V=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,Y=function(e,t,n){return t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},J=function(e,t){for(var n in t||(t={}))X.call(t,n)&&Y(e,n,t[n]);if(K){var o,r=Pn(K(t));try{for(r.s();!(o=r.n()).done;){n=o.value;Z.call(t,n)&&Y(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Q=function(e,t){return G(e,V(t))},$=function(){function e(t){Dn(this,e),this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var n=this;this.restorePatches.push(Ve(Element.prototype,"attachShadow",(function(e){return function(t){var o=e.call(this,t);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),o}})))}return Fn(e,[{key:"addShadowRoot",value:function(e,t){var n=this;!Ee(e)||this.shadowDoms.has(e)||(this.shadowDoms.add(e),lt(Q(J({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),dt(Q(J({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(e.host)),vt({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e)}),0))}},{key:"observeAttachShadow",value:function(e){if(e.contentWindow){var t=this;this.restorePatches.push(Ve(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(o){var r=n.call(this,o);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}})))}}},{key:"reset",value:function(){this.restorePatches.forEach((function(e){return e()})),this.shadowDoms=new WeakSet}}]),e}(),ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=("undefined"==typeof Uint8Array?"undefined":Bn(Uint8Array))>"u"?[]:new Uint8Array(256),ne=0;ne<64;ne++)te[ee.charCodeAt(ne)]=ne;var oe,re,ie,ae=new Map,se=function(e,t,n){if(e&&(le(e,t)||"object"==Bn(e))){var o=function(e,t){var n=ae.get(e);return n||(n=new Map,ae.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name),r=o.indexOf(e);return-1===r&&(r=o.length,o.push(e)),r}},ce=function(e,t,n){return An(e).map((function(e){return mt(e,t,n)}))},le=function(e,t){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(n.find((function(n){return e instanceof t[n]})))},ue=function(e,t,n){var o;return function(r){return o=o||wt(e,t,n),new Worker(o,r)}}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixwPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylwW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgdT1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCxsPW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gdihzLGUsbil7Y29uc3QgYT1gJHtzfS0ke2V9YDtpZigiT2Zmc2NyZWVuQ2FudmFzImluIGdsb2JhbFRoaXMpe2lmKGwuaGFzKGEpKXJldHVybiBsLmdldChhKTtjb25zdCB0PW5ldyBPZmZzY3JlZW5DYW52YXMocyxlKTt0LmdldENvbnRleHQoIjJkIik7Y29uc3QgZz1hd2FpdChhd2FpdCB0LmNvbnZlcnRUb0Jsb2IobikpLmFycmF5QnVmZmVyKCksZD11KGcpO3JldHVybiBsLnNldChhLGQpLGR9ZWxzZSByZXR1cm4iIn1jb25zdCBpPXNlbGY7aS5vbm1lc3NhZ2U9YXN5bmMgZnVuY3Rpb24ocyl7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtjb25zdHtpZDplLGJpdG1hcDpuLHdpZHRoOmEsaGVpZ2h0OnQsZGF0YVVSTE9wdGlvbnM6Z309cy5kYXRhLGQ9dihhLHQsZyksaD1uZXcgT2Zmc2NyZWVuQ2FudmFzKGEsdCk7aC5nZXRDb250ZXh0KCIyZCIpLmRyYXdJbWFnZShuLDAsMCksbi5jbG9zZSgpO2NvbnN0IHc9YXdhaXQgaC5jb252ZXJ0VG9CbG9iKGcpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89dShiKTtpZighYy5oYXMoZSkmJmF3YWl0IGQ9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX1lbHNlIHJldHVybiBpLnBvc3RNZXNzYWdlKHtpZDpzLmRhdGEuaWR9KX19KSgpOwoK",null,!1),de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,he=function(){function e(t){var n=this;Dn(this,e),this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(e)||n.pendingCanvasMutations.set(e,[]),n.pendingCanvasMutations.get(e).push(t)};var o=t.sampling,r=void 0===o?"all":o,i=t.win,a=t.blockClass,s=t.blockSelector,c=t.recordCanvas,l=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&"all"===r&&this.initCanvasMutationObserver(i,a,s),c&&"number"==typeof r&&this.initCanvasFPSObserver(r,i,a,s,{dataURLOptions:l})}return Fn(e,[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,t,n,o,r){var i=this,a=bt(t,n,o),s=new Map,c=new ue;c.onmessage=function(e){var t=e.data.id;if(s.set(t,!1),"base64"in e.data){var n=e.data,o=n.base64,r=n.type,a=n.width,c=n.height;i.mutationCb({id:t,type:w["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:r}]},0,0]}]})}};var l,u=1e3/e,d=0;l=requestAnimationFrame((function e(a){d&&a-d0&&(o.styles=r),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}(),ge=Object.defineProperty,me=Object.defineProperties,be=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,xe=function(e,t,n){return t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Se=function(e,t){for(var n in t||(t={}))we.call(t,n)&&xe(e,n,t[n]);if(ye){var o,r=Pn(ye(t));try{for(r.s();!(o=r.n()).done;){n=o.value;ke.call(t,n)&&xe(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Ce=function(e,t){return me(e,be(t))},Ie=!1,Le=new r;return xt.addCustomEvent=function(e,t){if(!Ie)throw new Error("please add custom event after start recording");oe(kt({type:m.Custom,data:{tag:e,payload:t}}))},xt.freezePage=function(){D.forEach((function(e){return e.freeze()}))},xt.takeFullSnapshot=function(e){if(!Ie)throw new Error("please take full snapshot after start recording");re(e)},xt.mirror=Le,xt}function Te(e){var t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function Ee(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Oe(e){try{var t=e.rules||e.cssRules;return t?function(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}(Array.from(t).map(Me).join("")):null}catch(n){return null}}function Me(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=Oe(e.styleSheet)||t}catch(n){}return t}function Ae(e){var t=e.maskInputOptions,n=e.tagName,o=e.type,r=e.value,i=e.maskInputFn,a=r||"";return(t[n.toLowerCase()]||t[o])&&(a=i?i(a):"*".repeat(a.length)),a}function Pe(){return a++}function Re(e,t){return(e||"").replace(l,(function(e,n,o,r,i,a){var s=o||i||a,c=n||r||"";if(!s)return e;if(!u.test(s)||d.test(s))return"url(".concat(c).concat(s).concat(c,")");if("/"===s[0])return"url(".concat(c).concat(function(e){return(e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(t)+s).concat(c,")");var l=t.split("/"),p=s.split("/");l.pop();for(var f=0,h=p;f=t.length);){var i=o(p);if(","===i.slice(-1))i=Ne(e,i.substring(0,i.length-1)),r.push(i);else{var a="";i=Ne(e,i);for(var s=!1;;){var c=t.charAt(n);if(""===c){r.push((i+a).trim());break}if(s)")"===c&&(s=!1);else{if(","===c){n+=1,r.push((i+a).trim());break}"("===c&&(s=!0)}a+=c,n+=1}}}return r.join(", ")}(e,o):"style"===n&&o?Re(o,je()):"object"===t&&"data"===n&&o?Ne(e,o):o}function _e(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&_e(e.parentNode,t,n);for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&_e(e.parentNode,t,n)}function Be(e,t,n){var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(o.classList.contains(t)||o.closest(".".concat(t)))return!0}else if(_e(o,t,!0))return!0;return!(!n||!o.matches(n)&&!o.closest(n))}function He(t,r){var a=r.doc,c=r.mirror,l=r.blockClass,u=r.blockSelector,d=r.maskTextClass,p=r.maskTextSelector,f=r.inlineStylesheet,h=r.maskInputOptions,v=void 0===h?{}:h,g=r.maskTextFn,m=r.maskInputFn,b=r.dataURLOptions,y=void 0===b?{}:b,w=r.inlineImages,k=r.recordCanvas,x=r.keepIframeSrcFn,S=r.newlyAddedElement,C=void 0!==S&&S,I=function(e,t){if(t.hasNode(e)){var n=t.getId(e);return 1===n?void 0:n}}(a,c);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode}:{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:I};case t.ELEMENT_NODE:return function(t,r){for(var a=r.doc,c=r.blockClass,l=r.blockSelector,u=r.inlineStylesheet,d=r.maskInputOptions,p=void 0===d?{}:d,f=r.maskInputFn,h=r.dataURLOptions,v=void 0===h?{}:h,g=r.inlineImages,m=r.recordCanvas,b=r.keepIframeSrcFn,y=r.newlyAddedElement,w=void 0!==y&&y,k=r.rootId,x=function(e,t,n){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&e.matches(n)}(t,c,l),S=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return s.test(t)?"div":t}(t),C={},I=t.attributes.length,L=0;L2&&void 0!==arguments[2]?arguments[2]:document,o={capture:!0,passive:!0};return n.addEventListener(e,t,o),function(){return n.removeEventListener(e,t,o)}}function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,r=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;st?(o&&(clearTimeout(o),o=null),r=c,e.apply(u,a)):!o&&!1!==n.trailing&&(o=setTimeout((function(){r=!1===n.leading?0:Date.now(),o=null,e.apply(u,a)}),l))}}function Ge(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,o?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),i&&i.set&&i.set.call(this,e)}}),function(){return Ge(e,t,i||{},!0)}}function Ve(e,t,n){try{if(!(t in e))return function(){};var o=e[t],r=n(o);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=r,function(){e[t]=o}}catch(i){return function(){}}}function Ke(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ze(e,t,n,o){if(!e)return!1;var r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!r)return!1;if("string"==typeof t){if(r.classList.contains(t)||o&&null!==r.closest("."+t))return!0}else if(_e(r,t,o))return!0;return!(!n||!(e.matches(n)||o&&null!==r.closest(n)))}function Ye(e,t){return t.getId(e)===c}function Je(e,t){if(Te(e))return!1;var n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Je(e.parentNode,t))}function Qe(e){return Boolean(e.changedTouches)}function $e(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function et(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function tt(e){return Boolean(null==e?void 0:e.shadowRoot)}function nt(e){return"__ln"in e}function ot(e,t){e.delete(t),t.childNodes.forEach((function(t){return ot(e,t)}))}function rt(e,t,n){return 0!==e.length&&it(e,t,n)}function it(e,t,n){var o=t.parentNode;if(!o)return!1;var r=n.getId(o);return!!e.some((function(e){return e.id===r}))||it(e,o,n)}function at(e,t){return 0!==e.size&&st(e,t)}function st(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||st(e,n))}function ct(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(n){return e.target}}function lt(e,t){var n,o,r,i=new I;D.push(i),i.init(e);var a=window.MutationObserver||window.__rrMutationObserver,s=null==(r=null==(o=null===(n=window)||void 0===n?void 0:n.Zone)?void 0:o.__symbol__)?void 0:r.call(o,"MutationObserver");s&&window[s]&&(a=window[s]);var c=new a(i.processMutations.bind(i));return c.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),c}function ut(e){var t=e.mouseInteractionCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.sampling;if(!1===a.mouseInteraction)return function(){};var s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];return Object.keys(y).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]})).forEach((function(e){var a=e.toLowerCase(),s=function(e){return function(n){var a=ct(n);if(!Ze(a,r,i,!0)){var s=Qe(n)?n.changedTouches[0]:n;if(s){var c=o.getId(a),l=s.clientX,u=s.clientY;t({type:y[e],id:c,x:l,y:u})}}}}(e);c.push(ze(a,s,n))})),function(){c.forEach((function(e){return e()}))}}function dt(e){var t=e.scrollCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=We((function(e){var a=ct(e);if(a&&!Ze(a,r,i,!0)){var s=o.getId(a);if(a===n){var c=n.scrollingElement||n.documentElement;t({id:s,x:c.scrollLeft,y:c.scrollTop})}else t({id:s,x:a.scrollLeft,y:a.scrollTop})}}),e.sampling.scroll||100);return ze("scroll",a,n)}function pt(e,t){var n=R({},e);return t||delete n.userTriggered,n}function ft(e){return function(e,t){if(j&&e.parentRule instanceof CSSGroupingRule||F&&e.parentRule instanceof CSSMediaRule||_&&e.parentRule instanceof CSSSupportsRule||B&&e.parentRule instanceof CSSConditionRule){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var o=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(o)}return t}(e,[])}function ht(e,t,n){var o,r;return e?(e.ownerNode?o=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:o}):{}}function vt(e,t){var n,o,r,i=e.mirror,a=e.stylesheetManager,s=null;s="#document"===t.nodeName?i.getId(t):i.getId(t.host);var c="#document"===t.nodeName?null==(n=t.defaultView)?void 0:n.Document:null==(r=null==(o=t.ownerDocument)?void 0:o.defaultView)?void 0:r.ShadowRoot,l=Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets");return null!==s&&-1!==s&&c&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var e;return null==(e=l.get)?void 0:e.call(this)},set:function(e){var t,n=null==(t=l.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{a.adoptStyleSheets(e,s)}catch(o){}return n}}),function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}):function(){}}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var n=e.mutationCb,o=e.mousemoveCb,r=e.mouseInteractionCb,i=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,l=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb;e.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),n.apply(void 0,arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),o.apply(void 0,arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),r.apply(void 0,arguments)},e.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),i.apply(void 0,arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),a.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),s.apply(void 0,arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),c.apply(void 0,arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),l.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),u.apply(void 0,arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),d.apply(void 0,arguments)},e.fontCb=function(){t.font&&t.font.apply(t,arguments),p.apply(void 0,arguments)},e.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),f.apply(void 0,arguments)}}(e,t);var o,r=lt(e,e.doc),i=function(e){var t=e.mousemoveCb,n=e.sampling,o=e.doc,r=e.mirror;if(!1===n.mousemove)return function(){};var i,a="number"==typeof n.mousemove?n.mousemove:50,s="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],l=We((function(e){var n=Date.now()-i;t(c.map((function(e){return e.timeOffset-=n,e})),e),c=[],i=null}),s),u=We((function(e){var t=ct(e),n=Qe(e)?e.changedTouches[0]:e,o=n.clientX,a=n.clientY;i||(i=Date.now()),c.push({x:o,y:a,id:r.getId(t),timeOffset:Date.now()-i}),l(("undefined"==typeof DragEvent?"undefined":Bn(DragEvent))<"u"&&e instanceof DragEvent?b.Drag:e instanceof MouseEvent?b.MouseMove:b.TouchMove)}),a,{trailing:!1}),d=[ze("mousemove",u,o),ze("touchmove",u,o),ze("drag",u,o)];return function(){d.forEach((function(e){return e()}))}}(e),a=ut(e),s=dt(e),c=function(e){var t=e.viewportResizeCb,n=-1,o=-1;return ze("resize",We((function(){var e=Ke(),r=Xe();(n!==e||o!==r)&&(t({width:Number(r),height:Number(e)}),n=e,o=r)}),200),window)}(e),l=function(e){var t=e.inputCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.ignoreClass,s=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,u=e.userTriggeredOnInput;function d(e){var t=ct(e),o=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(H.indexOf(t.tagName)<0)&&!Ze(t,r,i,!0)){var l=t.type;if(!t.classList.contains(a)){var d=t.value,f=!1;"radio"===l||"checkbox"===l?f=t.checked:(s[t.tagName.toLowerCase()]||s[l])&&(d=Ae({maskInputOptions:s,tagName:t.tagName,type:l,value:d,maskInputFn:c})),p(t,pt({text:d,isChecked:f,userTriggered:o},u));var h=t.name;"radio"===l&&h&&f&&n.querySelectorAll('input[type="radio"][name="'.concat(h,'"]')).forEach((function(e){e!==t&&p(e,pt({text:e.value,isChecked:!f,userTriggered:!1},u))}))}}}function p(e,n){var r=q.get(e);if(!r||r.text!==n.text||r.isChecked!==n.isChecked){q.set(e,n);var i=o.getId(e);t(N(R({},n),{id:i}))}}var f=("last"===l.input?["change"]:["input","change"]).map((function(e){return ze(e,d,n)})),h=n.defaultView;if(!h)return function(){f.forEach((function(e){return e()}))};var v=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),g=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&f.push.apply(f,An(g.map((function(e){return Ge(e[0],e[1],{set:function(){d({target:this})}},!1,h)})))),function(){f.forEach((function(e){return e()}))}}(e),u=function(e){var t=e.mediaInteractionCb,n=e.blockClass,o=e.blockSelector,r=e.mirror,i=e.sampling,a=function(e){return We((function(i){var a=ct(i);if(a&&!Ze(a,n,o,!0)){var s=a.currentTime,c=a.volume,l=a.muted,u=a.playbackRate;t({type:e,id:r.getId(a),currentTime:s,volume:c,muted:l,playbackRate:u})}}),i.media||500)},s=[ze("play",a(k.Play)),ze("pause",a(k.Pause)),ze("seeked",a(k.Seeked)),ze("volumechange",a(k.VolumeChange)),ze("ratechange",a(k.RateChange))];return function(){s.forEach((function(e){return e()}))}}(e),d=function(e,t){var n=e.styleSheetRuleCb,o=e.mirror,r=e.stylesheetManager,i=t.win,a=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(e,t){var i=ht(this,o,r.styleMirror),s=i.id,c=i.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:t}]}),a.apply(this,[e,t])};var s,c,l=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,removes:[{index:e}]}),l.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replace:e}),s.apply(this,[e])}),i.CSSStyleSheet.prototype.replaceSync&&(c=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replaceSync:e}),c.apply(this,[e])});var u={};j?u.CSSGroupingRule=i.CSSGroupingRule:(F&&(u.CSSMediaRule=i.CSSMediaRule),B&&(u.CSSConditionRule=i.CSSConditionRule),_&&(u.CSSSupportsRule=i.CSSSupportsRule));var d={};return Object.entries(u).forEach((function(e){var t=Mn(e,2),i=t[0],a=t[1];d[i]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=function(e,t){var a=ht(this.parentStyleSheet,o,r.styleMirror),s=a.id,c=a.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:[].concat(An(ft(this)),[t||0])}]}),d[i].insertRule.apply(this,[e,t])},a.prototype.deleteRule=function(e){var t=ht(this.parentStyleSheet,o,r.styleMirror),a=t.id,s=t.styleId;return(a&&-1!==a||s&&-1!==s)&&n({id:a,styleId:s,removes:[{index:[].concat(An(ft(this)),[e])}]}),d[i].deleteRule.apply(this,[e])}})),function(){i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=l,s&&(i.CSSStyleSheet.prototype.replace=s),c&&(i.CSSStyleSheet.prototype.replaceSync=c),Object.entries(u).forEach((function(e){var t=Mn(e,2),n=t[0],o=t[1];o.prototype.insertRule=d[n].insertRule,o.prototype.deleteRule=d[n].deleteRule}))}}(e,{win:n}),p=vt(e,e.doc),f=function(e,t){var n=e.styleDeclarationCb,o=e.mirror,r=e.ignoreCSSAttributes,i=e.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=function(e,t,a){var c;if(r.has(e))return s.apply(this,[e,t,a]);var l=ht(null==(c=this.parentRule)?void 0:c.parentStyleSheet,o,i.styleMirror),u=l.id,d=l.styleId;return(u&&-1!==u||d&&-1!==d)&&n({id:u,styleId:d,set:{property:e,value:t,priority:a},index:ft(this.parentRule)}),s.apply(this,[e,t,a])};var c=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=function(e){var t;if(r.has(e))return c.apply(this,[e]);var a=ht(null==(t=this.parentRule)?void 0:t.parentStyleSheet,o,i.styleMirror),s=a.id,l=a.styleId;return(s&&-1!==s||l&&-1!==l)&&n({id:s,styleId:l,remove:{property:e},index:ft(this.parentRule)}),c.apply(this,[e])},function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=c}}(e,{win:n}),h=e.collectFonts?function(e){var t=e.fontCb,n=e.doc,o=n.defaultView;if(!o)return function(){};var r=[],i=new WeakMap,a=o.FontFace;o.FontFace=function(e,t,n){var o=new a(e,t,n);return i.set(o,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),o};var s=Ve(n.fonts,"add",(function(e){return function(n){return setTimeout((function(){var e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}}));return r.push((function(){o.FontFace=a})),r.push(s),function(){r.forEach((function(e){return e()}))}}(e):function(){},v=function(e){var t=e.doc,n=e.mirror,o=e.blockClass,r=e.blockSelector,i=e.selectionCb,a=!0,s=function(){var e=t.getSelection();if(!(!e||a&&null!=e&&e.isCollapsed)){a=e.isCollapsed||!1;for(var s=[],c=e.rangeCount||0,l=0;l>2],r+=ee[(3&n[t])<<4|n[t+1]>>4],r+=ee[(15&n[t+1])<<2|n[t+2]>>6],r+=ee[63&n[t+2]];return o%3==2?r=r.substring(0,r.length-1)+"=":o%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(e);return{rr_type:o,base64:r}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[mt(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[mt(e.data,t,n),e.width,e.height]}:le(e,t)||"object"==Bn(e)?{rr_type:e.constructor.name,index:se(e,t,n)}:e}function bt(e,t,n){var o=[];try{var r=Ve(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,n=e.checkoutEveryNms,o=e.checkoutEveryNth,i=e.blockClass,a=void 0===i?"rr-block":i,s=e.blockSelector,c=void 0===s?null:s,l=e.ignoreClass,u=void 0===l?"rr-ignore":l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,f=e.maskTextSelector,h=void 0===f?null:f,v=e.inlineStylesheet,g=void 0===v||v,y=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,x=e.maskInputFn,S=e.maskTextFn,C=e.hooks,I=e.packFn,L=e.sampling,T=void 0===L?{}:L,E=e.dataURLOptions,O=void 0===E?{}:E,M=e.mousemoveWait,A=e.recordCanvas,P=void 0!==A&&A,R=e.recordCrossOriginIframes,N=void 0!==R&&R,j=e.userTriggeredOnInput,F=void 0!==j&&j,_=e.collectFonts,B=void 0!==_&&_,H=e.inlineImages,q=void 0!==H&&H,U=e.plugins,W=e.keepIframeSrcFn,G=void 0===W?function(){return!1}:W,V=e.ignoreCSSAttributes,K=void 0===V?new Set([]):V,X=!N||window.parent===window,Z=!1;if(!X)try{window.parent.document,Z=!1}catch(ye){Z=!0}if(X&&!t)throw new Error("emit function is required");void 0!==M&&void 0===T.mousemove&&(T.mousemove=M),Le.reset();var Y=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==w?w:{password:!0},J=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k}:k||{};!function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,n=new Array(t),o=0;o=o,c=n&&e.timestamp-Q.timestamp>n;(s||c)&&re(!0)}};var ne,ae=function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Mutation},e)}))},se=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Scroll},e)}))},ce=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.CanvasMutation},e)}))},le=new ve({mutationCb:ae,adoptedStyleSheetCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.AdoptedStyleSheet},e)}))}}),ue=new z({mirror:Le,mutationCb:ae,stylesheetManager:le,recordCrossOriginIframes:N,wrappedEmit:oe}),de=Pn(U||[]);try{for(de.s();!(ne=de.n()).done;){var pe=ne.value;pe.getMirror&&pe.getMirror({nodeMirror:Le,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}}catch(we){de.e(we)}finally{de.f()}ie=new he({recordCanvas:P,mutationCb:ce,win:window,blockClass:a,blockSelector:c,mirror:Le,sampling:T.canvas,dataURLOptions:O});var fe=new $({mutationCb:ae,scrollCb:se,bypassOptions:{blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskInputOptions:Y,dataURLOptions:O,maskTextFn:S,maskInputFn:x,recordCanvas:P,inlineImages:q,sampling:T,slimDOMOptions:J,iframeManager:ue,stylesheetManager:le,canvasManager:ie,keepIframeSrcFn:G},mirror:Le});re=function(){var e,t,n,o,i,s,l,u,d,f,v,b,y=arguments.length>0&&void 0!==arguments[0]&&arguments[0];oe(kt({type:m.Meta,data:{href:window.location.href,width:Xe(),height:Ke()}}),y),le.reset(),D.forEach((function(e){return e.lock()}));var w=function(e,t){var n=t||{},o=n.mirror,i=void 0===o?new r:o,a=n.blockClass,s=void 0===a?"rr-block":a,c=n.blockSelector,l=void 0===c?null:c,u=n.maskTextClass,d=void 0===u?"rr-mask":u,p=n.maskTextSelector,f=void 0===p?null:p,h=n.inlineStylesheet,v=void 0===h||h,g=n.inlineImages,m=void 0!==g&&g,b=n.recordCanvas,y=void 0!==b&&b,w=n.maskAllInputs,k=void 0!==w&&w,x=n.maskTextFn,S=n.maskInputFn,C=n.slimDOM,I=void 0!==C&&C,L=n.dataURLOptions,T=n.preserveWhiteSpace,E=n.onSerialize,O=n.onIframeLoad,M=n.iframeLoadTimeout,A=n.onStylesheetLoad,P=n.stylesheetLoadTimeout,R=n.keepIframeSrcFn;return Ue(e,{doc:e,mirror:i,blockClass:s,blockSelector:l,maskTextClass:d,maskTextSelector:f,skipChild:!1,inlineStylesheet:v,maskInputOptions:!0===k?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===k?{password:!0}:k,maskTextFn:x,maskInputFn:S,slimDOMOptions:!0===I||"all"===I?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===I,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===I?{}:I,dataURLOptions:L,inlineImages:m,recordCanvas:y,preserveWhiteSpace:T,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:void 0===R?function(){return!1}:R,newlyAddedElement:!1})}(document,{mirror:Le,blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskAllInputs:Y,maskTextFn:S,slimDOM:J,dataURLOptions:O,recordCanvas:P,inlineImages:q,onSerialize:function(e){$e(e,Le)&&ue.addIframe(e),et(e,Le)&&le.trackLinkElement(e),tt(e)&&fe.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),fe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:G});if(!w)return console.warn("Failed to snapshot the document");oe(kt({type:m.FullSnapshot,data:{node:w,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===(e=document)||void 0===e?void 0:e.documentElement.scrollLeft)||(null==(u=null==(l=null===(t=document)||void 0===t?void 0:t.body)?void 0:l.parentElement)?void 0:u.scrollLeft)||(null==(d=null===(n=document)||void 0===n?void 0:n.body)?void 0:d.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===(o=document)||void 0===o?void 0:o.documentElement.scrollTop)||(null==(v=null==(f=null===(i=document)||void 0===i?void 0:i.body)?void 0:f.parentElement)?void 0:v.scrollTop)||(null==(b=null===(s=document)||void 0===s?void 0:s.body)?void 0:b.scrollTop)||0}}})),D.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,Le.getId(document))};try{var ge=[];ge.push(ze("DOMContentLoaded",(function(){oe(kt({type:m.DomContentLoaded,data:{}}))})));var me=function(e){var t;return gt({mutationCb:ae,mousemoveCb:function(e,t){return oe(kt({type:m.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MouseInteraction},e)}))},scrollCb:se,viewportResizeCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.ViewportResize},e)}))},inputCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Input},e)}))},mediaInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleDeclaration},e)}))},canvasMutationCb:ce,fontCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Font},e)}))},selectionCb:function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Selection},e)}))},blockClass:a,ignoreClass:u,maskTextClass:p,maskTextSelector:h,maskInputOptions:Y,inlineStylesheet:g,sampling:T,recordCanvas:P,inlineImages:q,userTriggeredOnInput:F,collectFonts:B,doc:e,maskInputFn:x,maskTextFn:S,keepIframeSrcFn:G,blockSelector:c,slimDOMOptions:J,dataURLOptions:O,mirror:Le,iframeManager:ue,stylesheetManager:le,shadowDomManager:fe,canvasManager:ie,ignoreCSSAttributes:K,plugins:(null==(t=null==U?void 0:U.filter((function(e){return e.observer})))?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return oe(kt({type:m.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},C)};ue.addLoadListener((function(e){ge.push(me(e.contentDocument))}));var be=function(){re(),ge.push(me(document)),Ie=!0};return"interactive"===document.readyState||"complete"===document.readyState?be():ge.push(ze("load",(function(){oe(kt({type:m.Load,data:{}})),be()}),window)),function(){ge.forEach((function(e){return e()})),Ie=!1}}catch(ge){console.warn(ge)}}}();function qn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n4e6){var n,o=/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim,r=qn(t.matchAll(o));try{for(r.s();!(n=r.n()).done;){var i=n.value;t="image/"===i[1].toLocaleLowerCase().slice(0,6)?t.replace(i[0],"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAQSURBVHgBAQUA+v8ABRg5/wHSAVZN1mnaAAAAAElFTkSuQmCC"):t.replace(i[0],"")}}catch(a){r.e(a)}finally{r.f()}}return{event:JSON.parse(t),size:t.length}}(t).event;e.push(n)}}))}catch(t){console.error(t)}}},{key:"stop",value:function(){this.stopFunction&&this.stopFunction(),this.startDate=void 0,this.events=[],this.bufferSize=0}},{key:"getReplayData",value:function(){return{startDate:this.startDate,events:this.events,baseUrl:window.location.origin,width:window.innerWidth,height:window.innerHeight,isMobile:w(),type:"rrweb"}}}])&&Vn(t.prototype,n),o&&Vn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Jn(e,t){for(var n=0;nthis.startPoint.x&&(r=this.startPoint.x),t.y>this.startPoint.y&&(i=this.startPoint.y),this.path.setAttributeNS(null,"x",r),this.path.setAttributeNS(null,"y",i),this.path.setAttributeNS(null,"width",n),this.path.setAttributeNS(null,"height",o)}}},{key:"mouseDownRect",value:function(e){this.path=document.createElementNS("http://www.w3.org/2000/svg","rect"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",this.color),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",this.strokeWidthRect),this.startPoint=this.getMousePosition(e),this.appendPathToSvg(this.path)}},{key:"mouseDownPen",value:function(e){var t=this.color+"AA",n=this.strokeWidth;"blur"===this.tool&&(t="#000000",n=40),this.path=document.createElementNS("http://www.w3.org/2000/svg","path"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",t),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",n),this.buffer=[];var o=this.getMousePosition(e);this.appendToBuffer(o),this.strPath="M"+o.x+" "+o.y,this.path.setAttribute("d",this.strPath),this.appendPathToSvg(this.path)}},{key:"setTool",value:function(e){this.tool=e}},{key:"setColor",value:function(e){this.color=e}},{key:"getMousePosition",value:function(e){return e.touches&&e.touches.length>0?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}},{key:"getAveragePoint",value:function(e){var t=this.buffer.length;if(t%2==1||t>=this.bufferSize){var n,o,r=0,i=0,a=0;for(o=e;othis.bufferSize;)this.buffer.shift()}},{key:"appendPathToSvg",value:function(e){this.svgElement.appendChild(e),this.pathBuffer.push(e),this.rerender()}},{key:"removeLastAddedPathFromSvg",value:function(){this.pathBuffer.length<=0||!this.svgElement||(this.svgElement.removeChild(this.pathBuffer[this.pathBuffer.length-1]),this.pathBuffer.pop(),this.rerender())}},{key:"fadeOutToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=0,e.style.pointerEvents="none")}},{key:"fadeInToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=1,e.style.pointerEvents="auto")}}],n&&Jn(t.prototype,n),o&&Jn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function to(e){return to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},to(e)}function no(e,t){for(var n=0;n\n \n
'.concat(p("dismiss"),"
\n
").concat(p("rect"),'
\n
\n
\n ').concat(p("drag"),"\n
\n ").concat("capture"===this.type?'
\n '.concat(p("recorderon"),"\n ").concat(p("recorderoff"),'\n \n
\n
\n ').concat(p("mic"),'\n \n
\n
2:00
\n
\n
\n ').concat(p("pointer"),"\n
"):"",'\n
\n ').concat(p("rect"),'\n
\n
\n ').concat(p("pen"),'\n
\n
\n ').concat(p("blur"),'\n
\n
\n
\n ').concat(go.translateText("pickAColor"),'\n
\n
\n ').concat(p("undo"),'\n ').concat(go.translateText("undo"),"\n
\n ").concat("capture"!==this.type?'
'.concat(go.translateText("next"),"
"):"",'\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
').concat(go.translateText("retry"),'
\n
').concat(go.translateText("next"),"
\n
\n
\n
\n "),document.body.appendChild(e),e.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}},{key:"unregisterListeners",value:function(){this.escListener&&document.removeEventListener("keydown",this.escListener),this.pageLeaveListener&&window.removeEventListener("beforeunload",this.pageLeaveListener)}},{key:"registerListeners",value:function(){var e=this;this.escListener=function(t){var n=!1,o=!1;"key"in(t=t||window.event)&&(n="Escape"===t.key,o="Enter"===t.key),n&&e.dismiss(),"screenshot"===e.type&&o&&e.showNextStep()},document.addEventListener("keydown",this.escListener),this.pageLeaveListener=function(e){e.preventDefault(),e.returnValue=""},window.addEventListener("beforeunload",this.pageLeaveListener)}},{key:"show",value:function(e){this.callback=e,this.registerListeners(),this.hideWidgetUI(),this.createEditorUI(),this.setupMousePointer(),"screenshot"===this.type?(ki.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY}),io.disableScroll()):this.setupScreenRecording(),this.screenDrawer=new eo(this.captureScreenDrawerRerender.bind(this)),this.setupColorPicker(),this.setupToolbar()}},{key:"setupColorPicker",value:function(){for(var t=this,n=document.querySelector(".bb-capture-toolbar-item-selectedcolor"),o=document.querySelectorAll(".bb-capture-toolbar-item-color"),r=document.querySelector(".bb-capture-toolbar-item-colorpicker"),i=function(){var i=o[a],s=i.getAttribute("data-color");i.style.backgroundColor=s,i.onclick=function(){i&&(t.screenDrawer.setColor(s),r&&(r.style.display="none"),n.style.backgroundColor=i.style.backgroundColor,e.setPenColor(s))}},a=0;a0?o.classList.remove(e):o.classList.add(e))}}},{key:"captureRenderer",value:function(){if(this.screenRecorder){this.screenRecorder.file&&ki.getInstance().setGlobalDataItem("screenRecordingData",this.screenRecorder.file);var e="bb-capture-editor-item-inactive",t=document.querySelector(".bb-capture-toolbar-item-timer"),n=document.querySelectorAll(".bb-capture-toolbar-item"),o=document.querySelector(".bb-tooltip-screen-recording"),r=document.querySelector(".bb-tooltip-audio-recording"),i=document.querySelector(".bb-capture-editor"),a="bb-capture-editor-recording",s="bb-capture-editor-notrecording";this.screenRecorder.isRecording?(i.classList.add(a),i.classList.remove(s)):(i.classList.add(s),i.classList.remove(a));var c=document.querySelector(".bb-capture-toolbar");document.querySelector(".bb-capture-preview").style.display=this.screenRecorder.file?"flex":"none",c.style.display=this.screenRecorder.file?"none":"flex";for(var l=0;l0){var t=e.filter((function(e){return new Date(e.createdAt)>new Date(Date.now()-36e5)}));t.length>2?this.notifications=t.splice(0,t.length-2):this.notifications=t,this.renderNotifications()}}catch(n){}}},{key:"setNotificationCount",value:function(e){Gt.getInstance().isOpened()?(this.unreadCount=0,this.updateTabBarNotificationCount()):this.unreadCount=e,this.updateTabBarNotificationCount(),a.getInstance().updateNotificationBadge(this.unreadCount)}},{key:"showNotification",value:function(e){this.notificationContainer&&e&&e.data&&(this.notifications.find((function(t){return e.outbound===t.outbound}))||(this.notifications.push(e),e.sound&&Yo.ping()),this.notifications.length>2&&this.notifications.shift(),I(this.unreadNotificationsKey,this.notifications),this.renderNotifications())}},{key:"renderNotifications",value:function(){var e=this;if(this.notificationContainer){this.clearAllNotifications(!0);var t=document.createElement("div");t.onclick=function(){e.clearAllNotifications(),e.currentNewsIndex=0},t.className="gleap-notification-close",t.innerHTML=p("dismiss"),this.notificationContainer.appendChild(t);var n=this.notifications.filter((function(e){return e.data.news})).sort((function(e,t){return new Date(e.createdAt)-new Date(t.createdAt)})),o=this.notifications.filter((function(e){return!e.data.news}));if(n.length>0){var r=this.currentNewsIndex1){var v=document.createElement("div");v.className="gleap-news-pagination";var g=document.createElement("span");g.className="gleap-news-page-indicator",g.innerText="".concat(r+1," / ").concat(n.length),v.appendChild(g);var m=document.createElement("button");m.className="gleap-news-next-button",r\n
\n
\n '.concat(t.data.text,'\n
\n
\n
\n
\n
\n \n \n \n ').concat(t.data.nextStepTitle,"\n
\n
\n ")}else r.className="gleap-notification-item",r.innerHTML="\n ".concat(t.data.sender&&t.data.sender.profileImageUrl&&''),'\n
\n ').concat(t.data.sender?'
\n '.concat(t.data.sender.name,"\n
"):"",'\n
').concat(n,"
\n
");e.notificationContainer.appendChild(r)},y=0;y0||o.length>0||this.clearAllNotifications(!0)}}},{key:"openNews",value:function(e){e.data.news?ki.openNewsArticle(e.data.news.id,!0):ki.open()}},{key:"renderDescription",value:function(e){var t=e.data,n=t.previewText,o=t.sender;return n&&n.length>0?n:o?'\n
\n '.concat(o.profileImageUrl?'').concat(o.name,''):"","\n ").concat(o.name,"\n
\n "):""}},{key:"clearAllNotifications",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.notificationContainer)for(e||(this.notifications=[],this.currentNewsIndex=0,I(this.unreadNotificationsKey,this.notifications));this.notificationContainer.firstChild;)this.notificationContainer.removeChild(this.notificationContainer.firstChild)}},{key:"updateContainerStyle",value:function(){if(this.notificationContainer){var e=ut.getInstance().getFlowConfig(),t="gleap-notification-container--left",n="gleap-notification-container--no-button";this.notificationContainer.classList.remove(t),this.notificationContainer.classList.remove(n),e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_CLASSIC_LEFT&&e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_BOTTOM_LEFT||this.notificationContainer.classList.add(t),null===a.getInstance().buttonHidden?e.feedbackButtonPosition===a.FEEDBACK_BUTTON_NONE&&this.notificationContainer.classList.add(n):a.getInstance().buttonHidden&&this.notificationContainer.classList.add(n),this.notificationContainer.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Eo(t.prototype,n),o&&Eo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Po(e){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(e)}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function No(e){for(var t=1;t'),document.body.appendChild(t),this.bannerContainer=t}},{key:"sendMessage",value:function(e){try{var t=document.querySelector(".gleap-b-frame");t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(No(No({},e),{},{type:"banner"})),"*")}catch(n){}}},{key:"showBanner",value:function(e){this.injectBannerUI(e)}}])&&Do(t.prototype,n),o&&Do(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bo(e){return Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo(e)}function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function qo(e){for(var t=1;t\n
\n \n
\n '),document.body.appendChild(n),this.modalContainer=n,this.modalBackdropClickListener=this.modalContainer.querySelector(".gleap-modal-backdrop").addEventListener("click",(function(){var e,n;(null===(e=null===(n=t.modalData)||void 0===n?void 0:n.showCloseButton)||void 0===e||e)&&t.hideModal()})),document.body.classList.add("gleap-modal-open")}},{key:"_postMessage",value:function(e){try{var t=this.modalContainer.querySelector(".gleap-modal-frame");null!=t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(qo(qo({},e),{},{type:"modal"})),this.modalUrl)}catch(n){}}},{key:"showModal",value:function(e){e&&e.config&&this._injectModalUI(e.config)}},{key:"hideModal",value:function(){this.modalContainer&&(this.modalBackdropClickListener&&this.modalContainer.querySelector(".gleap-modal-backdrop").removeEventListener("click",this.modalBackdropClickListener),document.body.removeChild(this.modalContainer),this.modalContainer=null,document.body.classList.remove("gleap-modal-open"))}}])&&Uo(t.prototype,n),o&&Uo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function Ko(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0])||o(t.gleapCollapseUI,e)&&o(t.gleapFrameContainer,n))&&(t.gleapCollapseUI&&t.gleapCollapseUI.classList.toggle(e),t.gleapFrameContainer&&t.gleapFrameContainer.classList.toggle(n))})),wr(this,"injectCollapseUI",(function(){if(!t.injectedCollapseUI){t.injectedCollapseUI=!0;var e=document.createElement("div");e.className="gleap-admin-collapse-ui",e.innerHTML='
\n '.concat(p("arrowdown"),"\n
"),document.body.appendChild(e),t.gleapCollapseUI=e,e.addEventListener("click",(function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t.toggleCollapseUI()}))}})),wr(this,"injectFrame",(function(){var e;if(!t.injectedFrame){t.injectedFrame=!0;var n=document.createElement("div");n.className="gleap-admin-frame-container",n.innerHTML=''),document.body.appendChild(n),t.gleapFrameContainer=n,t.gleapFrame=document.querySelector(".gleap-admin-frame")}}))}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"logCurrentPage",value:function(){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.sendMessageToTourBuilder({name:"page-changed",data:{page:e}}))}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"initAdminHelper",value:function(){var e=this;Yr.getInstance().disable(),e.adminHelper=new vr;try{e.adminHelper.onElementPicked=function(t){e.toggleCollapseUI(!0),e.sendMessageToTourBuilder({name:"element-picked",data:{selector:t}})}}catch(t){console.log(t)}e.injectFrame(),e.injectCollapseUI(),e.setFrameHeight("loading")}},{key:"setFrameHeight",value:function(e){if(this.gleapFrameContainer){var t="";t="picker"===e||"navigate"===e?"65px":"editor"===e?"100vh":"0px",this.gleapFrameContainer.style.height=t}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!window.gleapAdminDisabled){var t=this;window.addEventListener("message",(function(n){if("https://app.gleap.io"===n.origin)try{var o=JSON.parse(n.data);if("admin"===o.type&&("load"===o.name&&(t.configData=o.data,t.initAdminHelper()),"smartlink-search-result"===o.name&&e.sendMessageToTourBuilder({name:"smartlink-search-result",data:o.data})),"tourbuilder"===o.type){var r;if("loaddata"===o.name&&e.sendMessageToTourBuilder({name:"data",data:br(br({},t.configData),{},{currentPage:window.location.href})}),"highlight-element"===o.name&&(document.querySelectorAll(".gleap-admin-highlight").forEach((function(e){e.classList.remove("gleap-admin-highlight")})),null!=o&&null!==(r=o.data)&&void 0!==r&&r.selector)){var i,a=document.querySelector(null==o||null===(i=o.data)||void 0===i?void 0:i.selector);a&&a.classList.add("gleap-admin-highlight")}if("smartlink-search"===o.name&&e.sendMessage({name:"smartlink-search",data:o.data}),"product-tour-started"===o.name&&e.sendMessage({name:"product-tour-started",data:o.data}),"save"===o.name&&e.sendMessage({name:"save",data:o.data}),"update-steps"===o.name&&e.sendMessage({name:"update-steps",data:o.data}),"click"===o.name)try{document.querySelector(o.data.selector).click()}catch(s){console.log(s)}"status-changed"===o.name&&(t.status=o.data,e.setFrameHeight(t.status),t.adminHelper.stopPicker(),"picker"===t.status&&t.adminHelper.startPicker())}}catch(c){}})),this.sendMessage({name:"init"}),this.startPageListener()}}},{key:"sendMessage",value:function(e){try{window&&window.opener&&window.opener.postMessage(JSON.stringify(br(br({},e),{},{type:"admin"})),"*")}catch(t){}}},{key:"sendMessageToTourBuilder",value:function(e){try{this.gleapFrame&&this.gleapFrame.contentWindow&&this.gleapFrame.contentWindow.postMessage(JSON.stringify(br(br({},e),{},{type:"tourbuilder"})),"*")}catch(t){}}}])&&yr(t.prototype,n),o&&yr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Cr(e){return function(e){if(Array.isArray(e))return Ir(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ir(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ir(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{})}function n(t){return t?e[t]:e}function o(e,t,n,o){return(e/=o/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function r(e){var t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap((function(e){var n=e.matches(t),o=Array.from(e.querySelectorAll(t));return[].concat(Cr(n?[e]:[]),o)})).filter((function(e){return"none"!==getComputedStyle(e).pointerEvents&&function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)}))}function i(e){if(e&&!function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e)){var t=n("smoothScroll");e.scrollIntoView({behavior:!t||a(e)?"auto":"smooth",inline:"center",block:"center"})}}function a(e){if(e&&e.parentElement){var t=e.parentElement;return t.scrollHeight>t.clientHeight}}var s={};function c(e,t){s[e]=t}function l(e){return e?s[e]:s}function u(){s={}}var d={};function p(e,t){d[e]=t}function f(e){var t;null==(t=d[e])||t.call(d)}function h(e){if(e){var t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};c("__activeStagePosition",n),g(n)}}function v(e){var t=function(e){var t=window.innerWidth,o=window.innerHeight,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.classList.add("gleap-tour-overlay","gleap-tour-overlay-animated"),r.setAttribute("viewBox","0 0 ".concat(t," ").concat(o)),r.setAttribute("xmlSpace","preserve"),r.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("preserveAspectRatio","xMinYMin slice"),r.style.fillRule="evenodd",r.style.clipRule="evenodd",r.style.strokeLinejoin="round",r.style.strokeMiterlimit="2",r.style.zIndex="10000",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%";var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",m(e)),i.style.fill=n("overlayColor")||"rgb(0,0,0)",i.style.opacity="".concat(n("overlayOpacity")),i.style.pointerEvents="auto",i.style.cursor="auto",r.appendChild(i),r}(e);document.body.appendChild(t),S(t,(function(e){"path"===e.target.tagName&&f("overlayClick")})),c("__overlaySvg",t)}function g(e){var t=l("__overlaySvg");if(t){var n=t.firstElementChild;if("path"!==(null==n?void 0:n.tagName))throw new Error("no path element found in stage svg");n.setAttribute("d",m(e))}else v(e)}function m(e){var t=window.innerWidth,o=window.innerHeight,r=n("stagePadding")||0,i=n("stageRadius")||0,a=e.width+2*r,s=e.height+2*r,c=Math.min(i,a/2,s/2),l=Math.floor(Math.max(c,0)),u=e.x-r+l,d=e.y-r,p=a-2*l,f=s-2*l;return"M".concat(t,",0L0,0L0,").concat(o,"L").concat(t,",").concat(o,"L").concat(t,",0Z\n M").concat(u,",").concat(d," h").concat(p," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",").concat(l," v").concat(f," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",").concat(l," h-").concat(p," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",-").concat(l," v-").concat(f," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",-").concat(l," z")}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,r=e.element,a=r;if("string"==typeof a)try{a=document.querySelector(r)}catch(u){var s=r.replace(/(#[^#\s]+)/g,(function(e){return e.replace(/:/g,"\\:")}));a=document.querySelector(s)}if(r&&!a&&t>=0)setTimeout((function(){C(),b(e,t-100)}),100);else{if(!a&&("INPUT"===e.mode||"CLICK"===e.mode))return n("onElementNotFound")(e);a||(a=function(){var e=document.getElementById("gleap-tour-dummy-element");if(e)return e;var t=document.createElement("div");return t.id="gleap-tour-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}()),function(e,t){var r,a,s=400,u=Date.now(),d=l("__activeStep"),p=l("__activeElement")||e,f=!p||p===e,v="gleap-tour-dummy-element"===e.id,m="gleap-tour-dummy-element"===p.id,b=n("animate"),y=t.onHighlightStarted||n("onHighlightStarted"),w=(null==t?void 0:t.onHighlighted)||n("onHighlighted"),k=(null==d?void 0:d.onDeselected)||n("onDeselected"),x=n(),S=l();!f&&k&&k(m?void 0:p,d,{config:x,state:S});y&&y(v?void 0:e,t,{config:x,state:S});var L=!f&&b,T=!1;C(),c("previousStep",d),c("previousElement",p),c("activeStep",t),c("activeElement",e);var E=function r(){if(l("__transitionCallback")===r){var i=Date.now()-u,a=s-i<=s/2;t.popover&&a&&!T&&L&&(I(e,t),T=!0),n("animate")&&i0&&R[0].focus()}function L(){var e=l("popover");if(null==e?void 0:e.wrapper){var t=e.wrapper.getBoundingClientRect(),o=n("stagePadding")||0,r=n("popoverOffset")||0;return{width:t.width+o+r,height:t.height+o+r,realWidth:t.width,realHeight:t.height}}}function T(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.top-r,window.innerHeight-o.realHeight-i.width),i.width):"end"===e?Math.max(Math.min(n.top-(null==o?void 0:o.realHeight)+n.height+r,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):"center"===e?Math.max(Math.min(n.top+n.height/2-(null==o?void 0:o.realHeight)/2,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):0}function E(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.left-r,window.innerWidth-o.realWidth-i.width),i.width):"end"===e?Math.max(Math.min(n.left-(null==o?void 0:o.realWidth)+n.width+r,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):"center"===e?Math.max(Math.min(n.left+n.width/2-(null==o?void 0:o.realWidth)/2,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):0}function O(e,t){var o=l("popover");if(o){var r=(null==t?void 0:t.popover)||{},i=r.align,a=void 0===i?"start":i,s=r.side,c=void 0===s?"left":s,u=a,d="gleap-tour-dummy-element"===e.id?"over":c,p=n("stagePadding")||0,f=L(),h=o.arrow.getBoundingClientRect(),v=e.getBoundingClientRect(),g=v.top-f.height,m=g>=0,b=window.innerHeight-(v.bottom+f.height),y=b>=0,w=v.left-f.width,k=w>=0,x=window.innerWidth-(v.right+f.width),S=x>=0,C=!(m||y||k||S),I=d;if("top"===d&&m?S=k=y=!1:"bottom"===d&&y?S=k=m=!1:"left"===d&&k?S=m=y=!1:"right"===d&&S&&(k=m=y=!1),"over"===d){var O=window.innerWidth/2-f.realWidth/2,M=window.innerHeight/2-f.realHeight/2;o.wrapper.style.left="".concat(O,"px"),o.wrapper.style.right="auto",o.wrapper.style.top="".concat(M,"px"),o.wrapper.style.bottom="auto"}else if(C){var A=window.innerWidth/2-(null==f?void 0:f.realWidth)/2;o.wrapper.style.left="".concat(A,"px"),o.wrapper.style.right="auto",o.wrapper.style.bottom="".concat(10,"px"),o.wrapper.style.top="auto"}else if(k){var P=Math.min(w,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),R=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(P,"px"),o.wrapper.style.top="".concat(R,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="left"}else if(S){var N=Math.min(x,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),D=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.right="".concat(N,"px"),o.wrapper.style.top="".concat(D,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.left="auto",I="right"}else if(m){var j=Math.min(g,window.innerHeight-f.realHeight-h.width),F=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.top="".concat(j,"px"),o.wrapper.style.left="".concat(F,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="top"}else if(y){var _=Math.min(b,window.innerHeight-(null==f?void 0:f.realHeight)-h.width),B=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(B,"px"),o.wrapper.style.bottom="".concat(_,"px"),o.wrapper.style.top="auto",o.wrapper.style.right="auto",I="bottom"}C?o.arrow.classList.add("gleap-tour-popover-arrow-none"):function(e,t,n){var o=l("popover");if(!o)return;var r=n.getBoundingClientRect(),i=L(),a=o.arrow,s=i.width,c=window.innerWidth,u=r.width,d=r.left,p=i.height,f=window.innerHeight,h=r.top,v=r.height;a.className="gleap-tour-popover-arrow";var g=t,m=e;"top"===t?(d+u<=0?(g="right",m="end"):d+u-s<=0&&(g="top",m="start"),d>=c?(g="left",m="end"):d+s>=c&&(g="top",m="end")):"bottom"===t?(d+u<=0?(g="right",m="start"):d+u-s<=0&&(g="bottom",m="start"),d>=c?(g="left",m="start"):d+s>=c&&(g="bottom",m="end")):"left"===t?(h+v<=0?(g="bottom",m="end"):h+v-p<=0&&(g="left",m="start"),h>=f?(g="top",m="end"):h+p>=f&&(g="left",m="end")):"right"===t&&(h+v<=0?(g="bottom",m="start"):h+v-p<=0&&(g="right",m="start"),h>=f?(g="top",m="start"):h+p>=f&&(g="right",m="end"));g?(a.classList.add("gleap-tour-popover-arrow-side-".concat(g)),a.classList.add("gleap-tour-popover-arrow-align-".concat(m))):a.classList.add("gleap-tour-popover-arrow-none")}(u,I,e)}}return function(){function e(){n("allowClose")&&h()}function o(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e+1;t[o]?f(o):h()}}function r(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e-1;t[o]?f(o):h()}}function i(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),o=l("__activeStep"),i=l("__activeElement");if("CLICK"!==o.mode)if(void 0!==t&&void 0!==o)if(void 0!==l("activeIndex")){var a=(null==(e=o.popover)?void 0:e.onPrevClick)||n("onPrevClick");if(a)return a(i,o,{config:n(),state:l()});r()}}}function a(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),r=l("__activeStep"),i=l("__activeElement");if("CLICK"!==r.mode&&void 0!==t&&void 0!==r){var a=(null==(e=r.popover)?void 0:e.onNextClick)||n("onNextClick");if(a)return a(i,r,{config:n(),state:l()});o()}}}function s(){l("isInitialized")||(c("isInitialized",!0),document.body.classList.add("gleap-tour-active",n("animate")?"gleap-tour-fade":"gleap-tour-simple"),window.addEventListener("keyup",x,!1),window.addEventListener("keydown",k,!1),window.addEventListener("resize",w),window.addEventListener("scroll",w),p("overlayClick",e),p("escapePress",e),p("arrowLeftPress",i),p("arrowRightPress",a))}function f(){var e,t,o,r,i,a,s,l,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,d=n("steps");if(!d)return console.error("No steps to drive through"),void h();if(d[u]){c("__activeOnDestroyed",document.activeElement),c("activeIndex",u);var p=d[u],v=d[u+1],g=d[u-1],m=(null==(e=p.popover)?void 0:e.doneBtnText)||n("doneBtnText")||"Done",y=n("allowClose"),w=void 0!==(null==(t=p.popover)?void 0:t.showProgress)?null==(o=p.popover)?void 0:o.showProgress:n("showProgress"),k=((null==(r=p.popover)?void 0:r.progressText)||n("progressText")||"{{current}} of {{total}}").replace("{{current}}","".concat(u+1)).replace("{{total}}","".concat(d.length)),x=(null==(i=p.popover)?void 0:i.showButtons)||n("showButtons"),S=["next","previous"].concat(Cr(y?["close"]:[])).filter((function(e){return!(null==x?void 0:x.length)||x.includes(e)})),C=(null==(a=p.popover)?void 0:a.onNextClick)||n("onNextClick"),I=(null==(s=p.popover)?void 0:s.onPrevClick)||n("onPrevClick"),L=(null==(l=p.popover)?void 0:l.onCloseClick)||n("onCloseClick");b(Tr(Tr({},p),{},{popover:Tr({showButtons:S,nextBtnText:v?void 0:m,disableButtons:Cr(g?[]:["previous"]),showProgress:w,progressText:k,onNextClick:C||function(){v?f(u+1):h()},onPrevClick:I||function(){f(u-1)},onCloseClick:L||function(){h()}},(null==p?void 0:p.popover)||{})}))}else h()}function h(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=l("__activeElement"),o=l("__activeStep"),r=l("__activeOnDestroyed"),i=n("onDestroyStarted");if(e&&i){i(!t||"gleap-tour-dummy-element"===(null==t?void 0:t.id)?void 0:t,o,{config:n(),state:l()})}else{var a,s,c,p=(null==o?void 0:o.onDeselected)||n("onDeselected"),f=n("onDestroyed");if(document.body.classList.remove("gleap-tour-active","gleap-tour-fade","gleap-tour-simple"),window.removeEventListener("keyup",x),window.removeEventListener("resize",w),window.removeEventListener("scroll",w),(s=l("popover"))&&(null==(a=s.wrapper.parentElement)||a.removeChild(s.wrapper)),function(){var e;null==(e=document.getElementById("gleap-tour-dummy-element"))||e.remove(),document.querySelectorAll(".gleap-tour-active-element").forEach((function(e){e.classList.remove("gleap-tour-active-element","gleap-tour-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}))}(),(c=l("__overlaySvg"))&&c.remove(),d={},u(),t&&o){var h="gleap-tour-dummy-element"===t.id;p&&p(h?void 0:t,o,{config:n(),state:l()}),f&&f(h?void 0:t,o,{config:n(),state:l()})}r&&r.focus()}}return t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{isActive:function(){return l("isInitialized")||!1},refresh:w,drive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;s(),f(e)},setConfig:t,setSteps:function(e){u(),t(Tr(Tr({},n()),{},{steps:e}))},getConfig:n,getState:l,getActiveIndex:function(){return l("activeIndex")},isFirstStep:function(){return 0===l("activeIndex")},isLastStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&t===e.length-1},getActiveStep:function(){return l("activeStep")},getActiveElement:function(){return l("activeElement")},getPreviousElement:function(){return l("previousElement")},getPreviousStep:function(){return l("previousStep")},moveNext:o,movePrevious:r,moveTo:function(e){(n("steps")||[])[e]?f(e):h()},hasNextStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t+1]},hasPreviousStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t-1]},highlight:function(e){s(),b(Tr(Tr({},e),{},{popover:e.popover?Tr({showButtons:[],showProgress:!1,progressText:""},e.popover):void 0}))},destroy:function(){h(!1)}}}}();const Mr=Or;function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}function Pr(){Pr=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new M(o||[]);return r(a,"_invoke",{value:L(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",v="completed",g={};function m(){}function b(){}function y(){}var w={};l(w,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&o.call(x,a)&&(w=x);var S=y.prototype=m.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(r,i,a,s){var c=d(e[r],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ar(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function L(t,n,o){var r=p;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var c=T(s,o);if(c){if(c===g)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===p)throw r=v,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var l=d(t,n,o);if("normal"===l.type){if(r=o.done?v:f,l.arg===g)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(r=v,o.method="throw",o.arg=l.arg)}}}function T(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.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,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];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=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Rr(e,t){for(var n=0;n=0&&t.productTourData&&t.productTourData.steps){var e=t.productTourData.steps[t.currentActiveIndex];e&&e.selector&&""!==e.selector&&t.updatePointerPosition(document.querySelector(e.selector),e)}})))}var t,n,o;return t=e,n=[{key:"disable",value:function(){this.disabled=!0,this.cleanup()}},{key:"startWithConfig",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;"undefined"!=typeof window&&(this.productTourId||this.disabled||(this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0,this.onCompleteCallback=n,this.start()))}},{key:"storeUncompletedTour",value:function(){if("undefined"!=typeof window)if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Fr,JSON.stringify(e))}catch(t){}else localStorage.removeItem(Fr)}},{key:"attachScrollListeners",value:function(e,t){var n=this;if("undefined"!=typeof window&&e){var o=function(e){if("undefined"!=typeof window){for(var t=[],n=e.parentElement;n;){var o=window.getComputedStyle(n);("auto"===o.overflowY||"scroll"===o.overflowY)&&n.scrollHeight>n.clientHeight&&t.push(n),n=n.parentElement}return t}}(e);o.push(window),o.forEach((function(o){var r=function(){clearTimeout(n._scrollDebounceTimer),n._scrollDebounceTimer=setTimeout((function(){n.updatePointerPosition(e,t)}),150)};o.addEventListener("scroll",r,{passive:!0}),n._scrollListeners.push({el:o,handler:r})}))}}},{key:"removeScrollListeners",value:function(){"undefined"!=typeof window&&(this._scrollListeners&&this._scrollListeners.length>0&&(this._scrollListeners.forEach((function(e){var t=e.el,n=e.handler;t.removeEventListener("scroll",n)})),this._scrollListeners=[]),this._scrollDebounceTimer&&(clearTimeout(this._scrollDebounceTimer),this._scrollDebounceTimer=null))}},{key:"updatePointerPosition",value:function(e,t){var n,o=this;if("undefined"!=typeof window)try{var r=this._pointerContainer||document.getElementById(_r);if(!r)return;if(!e)return r.style.position="fixed",r.style.left="50%",r.style.top="50%",r.style.transform="translate(-50%, -50%)",function(e){if("undefined"!=typeof window){var t=e-window.innerHeight/2;window.scrollTo({top:t,behavior:"smooth"})}}(window.innerHeight/2),this.removeScrollListeners(),this._currentAnchor=null,void(this._currentStep=null);n=e,"undefined"!=typeof window&&n&&n.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});var i=0;!function n(){if(function(e){if("undefined"!=typeof window){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}}(e)||i>=20){var a=e.getBoundingClientRect(),s=a.left+a.width/2,c=a.top+a.height/2+10;r.style.position="fixed",r.style.left="".concat(s,"px"),r.style.top="".concat(c,"px"),r.style.transform="translate(-50%, -50%)";var l=350;l>window.innerWidth-40&&(l=window.innerWidth-40),s+l>window.innerWidth-20?r.classList.add("copilot-pointer-container-right"):r.classList.remove("copilot-pointer-container-right"),o._currentAnchor===e&&o._currentStep===t||(o.removeScrollListeners(),o._currentAnchor=e,o._currentStep=t,o.attachScrollListeners(e,t))}else i++,setTimeout(n,100)}()}catch(a){}}},{key:"cleanup",value:function(){var e=this;"undefined"!=typeof window&&(document.body.classList.add("gl-copilot-fade-out"),setTimeout((function(){if(e._pointerContainer)e._pointerContainer.remove(),e._pointerContainer=null;else{var t=document.getElementById(_r);t&&t.remove()}var n=document.getElementById(Hr);n&&n.remove();var o=document.getElementById(Br);o&&o.remove(),document.body.classList.remove("gl-copilot-fade-out")}),800),this.removeScrollListeners())}},{key:"toggleAudio",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.audioMuted=e,this.currentAudio&&(this.currentAudio.muted=this.audioMuted),document.querySelector(".".concat(Hr,"-mute")).innerHTML=p(this.audioMuted?"unmute":"mute")}},{key:"setupCopilotTour",value:function(){var e,t,n,o,r,i,a=this;if("undefined"!=typeof window){var s,c,l=null!==(e=null===(t=ut.getInstance().flowConfig)||void 0===t?void 0:t.color)&&void 0!==e?e:"#485BFF",u=d(l),f=document.getElementById(Br);f||((f=document.createElement("style")).id=Br,f.type="text/css",f.textContent="\n #".concat(_r," {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n align-items: flex-start;\n pointer-events: none;\n z-index: 2147483610;\n transition: all 0.5s ease;\n }\n .").concat(_r,"-clickmode {\n cursor: pointer;\n pointer-events: all !important;\n }\n .").concat(_r,"-clickmode #copilot-info-bubble-content {\n display: flex !important;\n }\n .").concat(_r,"-clickmode svg {\n display: none !important;\n }\n #").concat(_r," svg {\n width: 20px;\n height: auto;\n fill: none;\n }\n #copilot-info-bubble {\n position: relative;\n }\n #copilot-info-bubble-content-container {\n position: absolute;\n top: 0px;\n left: 0px;\n min-width: min(300px, 80vw);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n .").concat(_r,"-right #copilot-info-bubble-content-container {\n left: auto !important;\n right: 0px !important;\n align-items: flex-end;\n }\n .").concat(_r,"-right .copilot-info-bubble-content {\n margin-right: 5px;\n }\n .").concat(_r,"-right svg {\n transform: scaleX(-1);\n }\n #copilot-info-bubble-content svg {\n width: 16px;\n height: 16px;\n display: inline-block !important;\n margin-left: 5px;\n }\n #copilot-info-bubble-content {\n margin-top: 18px;\n margin-left: 5px;\n padding: 10px 15px;\n border-radius: 20px;\n background-color: black;\n color: white;\n font-family: Arial, sans-serif;\n font-size: 14px;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);\n max-width: 100%;\n white-space: normal;\n overflow-wrap: break-word;\n word-break: normal;\n hyphens: none;\n }\n .").concat(_r,"-right #copilot-info-bubble-content {\n margin-top: 30px;\n margin-left: 0px;\n margin-right: 5px;\n }\n .click-wave {\n position: absolute;\n width: 34px;\n height: 34px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n pointer-events: none;\n z-index: 2147483611;\n animation: click-wave-animation 0.8s ease forwards;\n }\n @keyframes click-wave-animation {\n 0% {\n transform: scale(0.2);\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n }\n @keyframes slideInFromTop {\n 0% {\n transform: translateY(-100%);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n }\n .").concat(Hr," {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 2147483610;\n background: #fff;\n padding: 6px;\n border-radius: 10px;\n box-shadow: 0 0 20px 0 #C294F2;\n display: flex;\n align-items: center;\n gap: 8px;\n border: 1px solid rgba(192, 146, 242, 0.5);\n animation: slideInFromTop 0.5s ease-out forwards;\n }\n .").concat(Hr," span {\n font-size: 13px;\n color: #000;\n font-family: sans-serif;\n }\n .").concat(Hr,"-avatar {\n width: 24px;\n height: 24px;\n flex-shrink: 0;\n border-radius: 6px;\n }\n .").concat(Hr,"-mute {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .").concat(Hr,"-mute svg {\n width: 20px;\n height: auto;\n cursor: pointer;\n animation: pulsate 2s infinite;\n }\n .").concat(Hr,"-mute svg:hover {\n opacity: 0.8;\n }\n .").concat(Hr,"-dismiss {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-right: 3px;\n }\n .").concat(Hr,"-dismiss svg {\n width: 15px;\n height: auto;\n cursor: pointer;\n }\n .").concat(Hr,"-dismiss svg:hover {\n opacity: 0.8;\n }\n @keyframes pulsate {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n 50% {\n transform: scale(1.1);\n opacity: 0.8;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n }\n @keyframes glCoFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n @keyframes glCoFadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n .gleap-audio-unmute-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483620;\n }\n\n .gleap-audio-unmute-modal {\n background-color: #fff;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);\n text-align: center;\n max-width: 90%;\n width: 400px;\n }\n\n .gleap-audio-unmute-modal p {\n margin-bottom: 20px;\n font-size: 16px;\n line-height: 22px;\n font-weight: normal;\n }\n\n .gleap-audio-unmute-button {\n background: ").concat(l,";\n color: ").concat(u,";\n outline: none;\n border: none;\n padding: 10px 14px;\n border-radius: 12px;\n font-size: 14px;\n font-weight: bold;\n cursor: pointer;\n }\n\n .gleap-audio-unmute-button:hover {\n opacity: 0.8;\n }\n\n .gleap-tour-continue-button {\n color: ").concat(l,";\n text-decoration: none;\n cursor: pointer;\n font-size: 14px;\n font-weight: bold;\n border: none;\n background: none;\n padding: 0;\n margin: 0;\n margin-left: 20px;\n }\n\n .gleap-tour-continue-button:hover {\n opacity: 0.8;\n }\n\n body.gl-copilot-fade-out::before,\n body.gl-copilot-fade-out::after,\n body.gl-copilot-fade-out #").concat(Hr," {\n animation: glCoFadeOut 0.8s ease-out forwards;\n }\n ").concat(null===(s=null===(c=this.productTourData)||void 0===c?void 0:c.playVoice)||void 0===s||s?"":"\n .".concat(Hr,"-mute {\n display: none;\n }\n "),"\n ").concat(this.productTourData.gradient?'body::before {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n box-sizing: border-box;\n border: 18px solid transparent;\n filter: blur(25px);\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }\n \n body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0.5;\n box-sizing: border-box;\n border: 3px solid transparent;\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }':'body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0;\n }',"\n "),document.head.appendChild(f));var h=document.createElement("div");h.id=_r,h.style.opacity=0,this._pointerContainer=h;var v=document.createElementNS("http://www.w3.org/2000/svg","svg");v.setAttribute("viewBox","0 0 380 476"),v.innerHTML='';var g=document.createElement("div");g.id="copilot-info-bubble",g.innerHTML="
";var m=document.createElement("div");m.id=Hr,m.classList.add(Hr),m.innerHTML='\n \n ').concat(null===(o=this.productTourData)||void 0===o?void 0:o.kaiSlug,'\n
\n ').concat(p(this.audioMuted?"unmute":"mute"),"\n
\n ").concat(null!==(r=this.productTourData)&&void 0!==r&&r.allowClose?'
\n ').concat(p("dismiss"),"\n
"):"","\n "),document.body.appendChild(m),document.querySelector(".".concat(Hr,"-mute")).addEventListener("click",(function(){a.toggleAudio(!a.audioMuted)})),null!==(i=this.productTourData)&&void 0!==i&&i.allowClose&&document.querySelector(".".concat(Hr,"-dismiss")).addEventListener("click",(function(){a.completeTour(!1)})),h.appendChild(v),h.appendChild(g),document.body.appendChild(h)}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this.productTourData;t&&function(){return qr.apply(this,arguments)}().then((function(n){e.audioMuted=!n,e.setupCopilotTour(),e.audioMuted&&null!=t&&t.showUnmuteModal?e.showAudioUnmuteModal():setTimeout((function(){e.renderNextStep()}),1500)}))}}},{key:"showAudioUnmuteModal",value:function(){var e,t,n,o=this,r=document.createElement("div");r.classList.add("gleap-audio-unmute-modal-overlay");var i=document.createElement("div");i.classList.add("gleap-audio-unmute-modal");var a=document.createElement("p");a.textContent=null===(e=this.productTourData)||void 0===e?void 0:e.unmuteModalTitle,i.appendChild(a);var s=document.createElement("button");s.classList.add("gleap-audio-unmute-button"),s.textContent=null===(t=this.productTourData)||void 0===t?void 0:t.unmuteModalButton,s.addEventListener("click",(function(){o.toggleAudio(!1),r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(s);var c=document.createElement("button");c.classList.add("gleap-tour-continue-button"),c.textContent=null===(n=this.productTourData)||void 0===n?void 0:n.unmuteModalContinue,c.addEventListener("click",(function(){r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(c),r.appendChild(i),document.body.appendChild(r)}},{key:"completeTour",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];"undefined"!=typeof window&&(this.cleanup(),this.onCompleteCallback&&this.onCompleteCallback(e))}},{key:"renderNextStep",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this,n=this.productTourData.steps;if(this.currentActiveIndex>=n.length)setTimeout((function(){e.completeTour()}),500);else{var o=n[this.currentActiveIndex],r=function(n){if(e._pointerContainer.style.display="flex",o.selector&&o.selector.length>0&&!n)e.completeTour(!1);else{var r=function(){if("INPUT"===o.mode&&n){var e,r=function(){document.querySelector("#".concat(_r)).classList.remove("copilot-pointer-container-clickmode"),n.classList.remove("gleap-input-highlight"),document.getElementById(_r).style.display="none",t.currentActiveIndex++,t.storeUncompletedTour(),t.renderNextStep()};if("default"===(null!==(e=o.inputType)&&void 0!==e?e:"default")){var i=function e(t){var o;if(0!==(null==t||null===(o=t.target)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.length)){var i=document.getElementById("copilot-info-bubble-content");i&&(i.innerHTML="".concat(go.translateText("next"),' \n \n'),i.addEventListener("click",r,{once:!0}),n.classList.add("gleap-input-highlight"),document.querySelector("#".concat(_r)).classList.add("copilot-pointer-container-clickmode"),n.removeEventListener("input",e))}};n.addEventListener("input",i,{once:!1}),n.hasAttribute("contenteditable")&&n.addEventListener("keyup",i,{once:!1}),n.addEventListener("blur",(function(){n.focus()}),{once:!0}),n.focus()}else{var a,s=null!==(a=o.inputValue)&&void 0!==a?a:"",c=0;!function e(){c0})).length;return Math.ceil(t/3.6)+1}}(i),s=function(){e.currentAudio=void 0,setTimeout((function(){r()}),1e3*a)};o.voice&&o.voice.length>0?(e.currentAudio=new Audio(o.voice),e.audioMuted&&(e.currentAudio.muted=!0),e.currentAudio.addEventListener("ended",(function(){setTimeout((function(){r()}),1e3)})),e.currentAudio.play().then((function(){})).catch((function(e){s()}))):s()}},i=o.selector?function(e){if("undefined"!=typeof window){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3)/100,n=0;return new Promise((function(o,r){var i=setInterval((function(){var a=document.querySelector(e);a?(clearInterval(i),o(a)):n>=t&&(clearInterval(i),r(new Error("Element not found for selector: ".concat(e)))),n++}),100)}))}}(o.selector):Promise.resolve(null);i.then(r).catch((function(){return r(null)}))}}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Rr(t.prototype,n),o&&Rr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zr(e){return zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(e)}function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0;if(!this.productTourId&&!this.disabled){this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0;var r=this;$e.getInstance().validateProductTour(e).then((function(){return o>0?setTimeout((function(){r.start()}),o):n.start()})).catch((function(e){console.log("Product tour is not live. Cleaning up..."),console.error(e),r.onComplete(!1)}))}}},{key:"onComplete",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={tourId:this.productTourId};e?(kn.notifyEvent("productTourCompleted",t),ki.trackEvent("tour-".concat(this.productTourId,"-completed"),t)):(kn.notifyEvent("productTourQuit",t),ki.trackEvent("tour-".concat(this.productTourId,"-quit"),t)),this.gleapTourObj&&this.gleapTourObj.destroy(),this.gleapTourObj=void 0,this.productTourData=void 0,this.productTourId=void 0,this.currentActiveIndex=void 0,this.clearUncompletedTour()}},{key:"loadUncompletedTour",value:function(){try{var e=JSON.parse(localStorage.getItem(Zr));if(null!=e&&e.tourData&&null!=e&&e.tourId)return e}catch(t){}return null}},{key:"storeUncompletedTour",value:function(){if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Zr,JSON.stringify(e))}catch(t){}else this.clearUncompletedTour()}},{key:"clearUncompletedTour",value:function(){try{localStorage.removeItem(Zr)}catch(e){}}},{key:"start",value:function(){var e=this,t=this.productTourData;if(t){if("cobrowse"===t.tourType)return Ur.getInstance().startWithConfig(this.productTourId,t,(function(t){e.onComplete(t)}));this.unmuted=!1;for(var n=t.steps,o=this,r=[],i=0;i\n \n
').concat(p("unmute"),"
\n ");else{var d="";t.sender&&t.sender.firstName&&(u=!0,d='
\n
\n
').concat(t.sender.firstName,"
\n
")),l="".concat(d,'
').concat(a.message,"
")}var f={disableActiveInteraction:!s&&!c,mode:a.mode,popover:Gr({description:l,popoverClass:"gleap-tour-popover-".concat(a.type," ").concat(!u&&"gleap-tour-popover-no-sender"," ").concat(t.allowClose&&"gleap-tour-popover-can-close")},s?{showButtons:[]}:{})};a.selector&&a.selector.length>0&&(f.element=a.selector),r.push(f)}var h=["next","close"];t.backButton&&h.push("previous"),this.gleapTourObj=Mr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({showProgress:!0,allowKeyboardControl:!1,steps:r},"showProgress",n.length>1),"allowClose",t.allowClose),"nextBtnText",t.nextText),"doneBtnText",t.doneText),"prevBtnText",t.prevText),"showButtons",h),"onHighlightStarted",(function(t,n,o){var r;e.currentActiveIndex=null==o||null===(r=o.state)||void 0===r?void 0:r.activeIndex,e.storeUncompletedTour()})),"onElementNotFound",(function(t){document.removeEventListener("click",v),e.onComplete(!1)})),"onDestroyStarted",(function(){e.gleapTourObj.hasNextStep()?e.onComplete(!1):e.onComplete(!0),document.removeEventListener("click",v)})),"onPopoverRender",(function(t){if(t)for(var n=document.querySelectorAll(".gleap-tour-popover-description img, .gleap-tour-popover-description video"),r=function(){setTimeout((function(){e.gleapTourObj.refresh()}),500),setTimeout((function(){e.gleapTourObj.refresh()}),750)},i=0;ie.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return go.translateText(e)||t}},{key:"_translateWithVars",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return go.translateTextWithVars(e,t)||n}},{key:"getCheckIcon",value:function(){return'\n \n '}},{key:"loadChecklist",value:function(){if(this._isSessionReady&&this._networkManager){var e=this.getAttribute("checklistId");e?(this.activeStep=-1,this._initialActiveSet=!1,this.validateChecklist(e)):(this.renderResponse(),this.checklistData=null,this._hasLoaded=!1)}}},{key:"getQueryParams",value:function(){var e=this._getGleapSessionInstance();if(null==e||!e.session)return"";var t=e.session,n="en";try{void 0!==go&&(n=go.getInstance().getActiveLanguage()||"en")}catch(o){}return"gleapId=".concat(t.gleapId||"","&gleapHash=").concat(t.gleapHash||"","&lang=").concat(n)}},{key:"makeRequest",value:function(e,t,n,o){var r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=new XMLHttpRequest;i.open(e,t);try{r.injectSession(i)}catch(a){}n&&i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.onreadystatechange=function(){4===i.readyState&&o(i)},i.onerror=function(){o(i)},i.send(n?JSON.stringify(n):null)}else o({readyState:4,status:0,responseText:"Session unavailable",_isMock:!0})}},{key:"validateChecklist",value:function(e){var t=this;if(this._isSessionReady&&this._networkManager){this.checklistData=null,this._hasLoaded=!1,this.renderResponse();var n=this.getAttribute("sharedKey");this._networkManager.validateChecklist(e,n).then((function(e){t.isConnected&&t._isSessionReady&&e&&t.fetchChecklist(e)})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1}))}}},{key:"fetchChecklist",value:function(e){var t=this;this._isSessionReady&&this._networkManager&&(this._isInitialLoad=!this._hasLoaded,this._networkManager.fetchChecklist(e).then((function(e){if(!t.isConnected||!t._isSessionReady||!e)return t._hasLoaded=!1,t.checklistData=null,void t._checkSessionAndLoad();if(t.checklistData=e,t._hasLoaded=!0,"done"!==e.status){if(t._isInitialLoad&&!t._initialActiveSet){var n,o=(null===(n=e.outbound)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.steps)||[],r=e.completedSteps||[],i=o.findIndex((function(e){return!r.includes(e.id)}));t.activeStep=i>=0?i:-1,-1!==t.activeStep&&(t._initialActiveSet=!0)}t.renderChecklist(t.checklistData)}else t.renderResponse()})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1})))}},{key:"updateChecklist",value:function(e,t){var n,o,r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=r.apiUrl;if(i){var a=r.session,s=null!==(n=null==a?void 0:a.gleapId)&&void 0!==n?n:"",c=null!==(o=null==a?void 0:a.gleapHash)&&void 0!==o?o:"",l="en";try{void 0!==go&&(l=go.getInstance().getActiveLanguage()||"en")}catch(d){}var u="".concat(i,"/outbound/checklists/").concat(e);t.checkedStep&&(u+="/increment/".concat(t.checkedStep)),u+="?gleapId=".concat(s,"&gleapHash=").concat(c,"&lang=").concat(l),this.makeRequest("PUT",u,t,(function(e){e._isMock||200!==e.status&&e.status}))}}}},{key:"handleChecklistUpdate",value:function(e){if(this._hasLoaded&&this.checklistData){var t=e.detail;if(t&&t.id===this.checklistData.id){var n=$r(this.checklistData.completedSteps||[]),o=!1,r=!1,i=this.activeStep;if(t.completedSteps&&JSON.stringify(t.completedSteps)!==JSON.stringify(n)&&(this.checklistData.completedSteps=$r(t.completedSteps),o=!0,-1!==i)){var a,s=null===(a=this.checklistData.outbound)||void 0===a||null===(a=a.config)||void 0===a||null===(a=a.steps)||void 0===a||null===(a=a[i])||void 0===a?void 0:a.id;s&&this.checklistData.completedSteps.includes(s)&&!n.includes(s)&&(r=!0)}if(t.status&&t.status!==this.checklistData.status&&(this.checklistData.status=t.status,o=!0),r){for(var c,l=(null===(c=this.checklistData.outbound)||void 0===c||null===(c=c.config)||void 0===c?void 0:c.steps)||[],u=-1,d=i+1;d1&&void 0!==arguments[1]?arguments[1]:"checklist-floating",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(null===(t=e.config)||void 0===t?void 0:t.steps)||[],a=(null===(n=this.checklistData)||void 0===n?void 0:n.completedSteps)||[],s=0;if(this.progressbarEnabled&&i.length>0){var c=i.length,l=a.length;s=c>0?l/c*100:0}var u,d,p=i.find((function(e){return!a.includes(e.id)})),f=i.length>0?p?p.title||this._translateWithVars("stepDefaultTitle",{index:i.indexOf(p)+1},"Step ".concat(i.indexOf(p)+1)):"":e.subject||"",h=i.length>0?p&&p.description||"":e.message||"";r&&(f=(null===(u=e.config)||void 0===u?void 0:u.successTitle)||"",h=(null===(d=e.config)||void 0===d?void 0:d.successMessage)||"",s=100);var v=2*Math.PI*7,g=v-s/100*v,m="checklist-floating-header"===o,b=m?'\n \n \n ':'\n \n ';return'\n
\n
\n
\n \n \n \n \n
\n
').concat(f,"
\n ").concat(r?"":''.concat(b,""),'\n
\n
').concat(h,"
\n
\n ")}},{key:"renderInfoSection",value:function(e){var t;if(!this.infoEnabled||!e)return"";var n=e.subject||this._translate("checklistDefaultTitle","Checklist"),o=e.message||"",r="";return null!==(t=e.sender)&&void 0!==t&&t.profileImageUrl&&(r='\n
\n ').concat(e.sender.firstName||\n ').concat(e.sender.firstName||"","\n
")),'\n
\n '.concat(n?'
'.concat(n,"
"):"","\n ").concat(o?'
'.concat(o,"
"):"","\n ").concat(r,"\n
")}},{key:"renderProgressSection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!this.progressbarEnabled||!e.length)return"";var n=e.length,o=t.length,r=n>0?o/n*100:0,i=0;e.forEach((function(e){!t.includes(e.id)&&e.duration>0&&(i+=e.duration)}));var a=this._translateWithVars("taskProgress",{a:o,b:n},"".concat(o," of ").concat(n," done")),s=i>0?this._translateWithVars("aboutMinutes",{a:i},"About ".concat(i," min left")):"";return'\n
\n
'.concat(a,"
\n ").concat(s?'
'.concat(s,"
"):"",'\n
\n
\n
\n
')}},{key:"renderTasks",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&0!==t.length?t.map((function(t,o){var r=n.includes(t.id),i=e.activeStep===o,a=r?''.concat(e.getCheckIcon(),""):''.concat(o+1,""),s=t.title||e._translateWithVars("stepDefaultTitle",{index:o+1},"Step ".concat(o+1)),c=t.description||"",l=t.actionTitle||e._translate("actionDefaultTitle","Action"),u=t.action&&"none"!==t.action?'
\n \n
"):"",d=e._translate("markAsDone","Mark as done"),p=t.allowMarkDone&&!r?'
\n ').concat(e.getCheckIcon(),'\n
').concat(d,"
\n
"):"",f=["checklist-task",r?"checklist-task--done":"",i?"checklist-task--active":""].filter(Boolean).join(" ");return'\n
\n
\n ').concat(a,'\n
').concat(s,'
\n \n \n \n \n \n
\n
\n
\n ').concat(c?'
'.concat(c,"
"):"","\n ").concat(u,"\n ").concat(p,"\n
\n
\n
")})).join(""):"

".concat(this._translate("noStepsDefined","No steps defined."),"

")}},{key:"renderChecklist",value:function(e){var t;if(this._hasLoaded&&e&&e.outbound){var n=e.outbound,o=(null===(t=n.config)||void 0===t?void 0:t.steps)||[],r=e.completedSteps||[],i="";if("done"===e.status||o.length>0&&r.length>=o.length){var a,s,c=(null===(a=n.config)||void 0===a?void 0:a.successTitle)||"",l=(null===(s=n.config)||void 0===s?void 0:s.successMessage)||"";i=this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-launcher",!0):'\n
\n
\n '.concat(this.getCheckIcon(),'\n
\n
').concat(c,'
\n
').concat(l,"
\n
"),-1!==this.activeStep&&(this.activeStep=-1)}else i='\n
\n '.concat(this.floatingEnabled?"":this.renderInfoSection(n),"\n ").concat(this.floatingEnabled?"":this.renderProgressSection(o,r),"\n ").concat(this.floatingEnabled?this.renderFloatingLauncher(n):"",'\n
\n ').concat(this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-header"):"","\n ").concat(this.renderTasks(o,r),"\n
\n
");var u=ut.getInstance().getFlowConfig(),d=u.color?u.color:"#485BFF",p="\n \n ');this.shadowRoot.innerHTML=p+i,this.addTaskEventListeners(),this.floatingEnabled&&this.addFloatingClickListeners(),-1!==this.activeStep&&this.toggleTask(this.activeStep,!0)}else this._checkSessionAndLoad()}},{key:"updateActiveTaskMaxHeight",value:function(){if(-1!==this.activeStep){var e=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body-inner')),t=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body'));if(e&&t){var n=e.offsetHeight;t.style.setProperty("--task-body-active-height","".concat(n,"px"))}}}},{key:"addTaskEventListeners",value:function(){var e=this;this.shadowRoot.querySelectorAll(".checklist-task").forEach((function(t){var n=t.querySelector(".checklist-task-header"),o=parseInt(t.getAttribute("data-task-index"),10);n&&n.addEventListener("click",(function(){var t=e.activeStep===o?-1:o;e.setActiveStep(t)}));var r=t.querySelector(".checklist-task-body-markdone");r&&r.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps){var r=e.checklistData.outbound.config.steps[o];if(r){var i=e.activeStep;if(e.checklistData.completedSteps||(e.checklistData.completedSteps=[]),!e.checklistData.completedSteps.includes(r.id)){e.checklistData.completedSteps.push(r.id);var a=e.checklistData.outbound.config.steps,s=-1;if(i===o){for(var c=o+1;c0&&e.checklistData.completedSteps.length>=a.length&&(e.checklistData.status="done",l.status="done"),e.updateChecklist(e.checklistData.id,l)}}}}));var i=t.querySelector(".checklist-task-body-action .action-button");i&&i.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps&&void 0!==ki){var r=e.checklistData.outbound.config.steps[o];if(r&&r.action&&"none"!==r.action)try{"BOT"===r.action?ki.startBot(r.botId):"CUSTOM_ACTION"===r.action?ki.triggerCustomAction(r.actionBody):"REDIRECT_URL"===r.action?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),ki.openURL(r.actionBody,!!r.actionOpenInNewTab)):"FEEDBACK_FLOW"===r.action?ki.startFeedbackFlow(r.formId):"NEWS_ARTICLE"===r.action?ki.openNewsArticle(r.articleId):"HELP_ARTICLE"===r.action?ki.openHelpCenterArticle(r.articleId):"CHECKLIST"===r.action&&ki.startChecklist(r.checklistId,!0,null==r?void 0:r.sharedKey)}catch(i){}}}))}))}},{key:"setActiveStep",value:function(e){var t=this,n=this.activeStep;this.activeStep=e;var o=[];-1!==n&&n!==this.activeStep&&o.push({index:n,open:!1}),-1!==this.activeStep&&this.activeStep!==n&&o.push({index:this.activeStep,open:!0}),o.forEach((function(e){var n=e.index,o=e.open;t.toggleTask(n,o)}))}},{key:"toggleTask",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(e,'"]'));if(n){var o=n.querySelector(".checklist-task-header");if(o){var r=n.classList.contains("checklist-task--active"),i=null!==t?t:!r;if(i&&!r){n.classList.add("checklist-task--active"),o.setAttribute("aria-expanded","true");var a=n.querySelector(".checklist-task-body-inner");if(a){var s=a.offsetHeight,c=n.querySelector(".checklist-task-body");c&&c.style.setProperty("--task-body-active-height","".concat(s,"px"))}}else!i&&r&&(n.classList.remove("checklist-task--active"),o.setAttribute("aria-expanded","false"))}}}}],r=[{key:"observedAttributes",get:function(){return["checklistId","info","progressbar","dark","floating","sharedKey"]}}],o&&ti(n.prototype,o),r&&ti(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ri(HTMLElement));"undefined"==typeof customElements||customElements.get("gleap-checklist")||customElements.define("gleap-checklist",e)}}();var gi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hi(this,"initialized",!1),hi(this,"offlineMode",!1),hi(this,"disablePageTracking",!1),hi(this,"disableInAppNotifications",!1),hi(this,"globalData",{screenRecordingData:null,webReplay:null,snapshotPosition:{x:0,y:0}}),"undefined"!=typeof window&&(Yt.getInstance(),on.getInstance().start(),dn.getInstance().start(),xr.getInstance().start())}var t,n,o;return t=e,n=[{key:"isLiveMode",value:function(){if(!0===this.offlineMode)return!1;var e=window.location.hostname;return!(["localhost","127.0.0.1","0.0.0.0","","::1"].includes(e)||e.startsWith("192.168.")||e.startsWith("10.0.")||e.endsWith(".local")||!e.includes("."))}},{key:"softReInitialize",value:function(){Gt.getInstance().destroy(),ut.getInstance().start().then((function(){a.getInstance().refresh(),Ao.getInstance().injectNotificationUI()})).catch((function(e){console.warn("Failed to initialize Gleap.")}))}},{key:"performActions",value:function(t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"INFO";on.getInstance().addLog(e,t)}},{key:"initialize",value:function(t){var n=this.getInstance();if(n.initialized)console.warn("Gleap already initialized.");else{n.initialized=!0;try{!function(){try{if("visualViewport"in window&&/iPad|iPhone|iPod/.test(navigator.userAgent)){var e=function(){try{var e=document.querySelector(".gleap-frame-container-inner iframe");if(!e)return;window.visualViewport.height1&&void 0!==arguments[1]&&arguments[1];Gt.getInstance().urlHandler(e,t)}},{key:"checkForUrlParams",value:function(){if("undefined"!=typeof window&&window.location.search)try{var t=new URLSearchParams(window.location.search),n=t.get("gleap_widget");n&&n.length>0&&e.open();var o=t.get("gleap_conversation");o&&o.length>0&&("true"===o?e.startConversation(!0):e.startBot(o,!0));var r=t.get("gleap_feedback");r&&r.length>0&&e.startFeedbackFlow(r);var i=t.get("gleap_survey"),a=t.get("gleap_survey_format");i&&i.length>0&&e.showSurvey(i,"survey_full"===a?"survey_full":"survey");var s=t.get("gleap_tour");if(s&&s.length>0){var c=parseInt(t.get("gleap_tour_delay"));isNaN(c)&&(c=2),setTimeout((function(){e.startProductTour(s)}),1e3*c)}}catch(l){}}},{key:"destroy",value:function(){Zn.getInstance().stop(),rt.getInstance().stop(),Gt.getInstance().destroy(),a.getInstance().toggleFeedbackButton(!1),Ao.getInstance().clearAllNotifications(!0),$e.getInstance().clearSession(0,!1),_o.getInstance().removeBannerUI()}},{key:"closeBanner",value:function(){_o.getInstance().removeBannerUI()}},{key:"closeModal",value:function(){Go.getInstance().hideModal()}},{key:"setUseCookies",value:function(e){$e.getInstance().useCookies=e}},{key:"identify",value:function(e,t,n){return $e.getInstance().identifySession(e,k(t),n)}},{key:"updateContact",value:function(e){return $e.getInstance().updateSession(k(e))}},{key:"clearIdentity",value:function(){$e.getInstance().clearSession()}},{key:"getIdentity",value:function(){return $e.getInstance().getSession()}},{key:"isUserIdentified",value:function(){var e=$e.getInstance().session;return!!(e&&e.userId&&e.userId.length>0)}},{key:"isOpened",value:function(){return Gt.getInstance().isOpened()}},{key:"hide",value:function(){Gt.getInstance().hideWidget()}},{key:"setMaxNetworkRequests",value:function(e){b.getInstance().setMaxRequests(e)}},{key:"startNetworkLogger",value:function(){b.getInstance().start()}},{key:"setNetworkLogsBlacklist",value:function(e){b.getInstance().setBlacklist(e)}},{key:"setNetworkLogPropsToIgnore",value:function(e){b.getInstance().setFilters(e)}},{key:"setReplayOptions",value:function(e){Zn.getInstance().setOptions(e)}},{key:"close",value:function(){Gt.getInstance().hideWidget()}},{key:"open",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().showWidget()}},{key:"trackEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"logEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"preFillForm",value:function(e){var t=k(e);Lo.getInstance().formPreFill=t,Gt.getInstance().sendMessage({name:"prefill-form-data",data:t},!0)}},{key:"on",value:function(e,t){kn.on(e,t)}},{key:"enableShortcuts",value:function(e){e?ko.getInstance().start():ko.getInstance().stop()}},{key:"showFeedbackButton",value:function(e){a.getInstance().toggleFeedbackButton(e)}},{key:"setAppVersionCode",value:function(e){Yt.setAppVersionCode(e)}},{key:"setAppBuildNumber",value:function(e){Yt.setAppBuildNumber(e)}},{key:"setWSApiUrl",value:function(e){$e.getInstance().wsApiUrl=e}},{key:"setApiUrl",value:function(e){$e.getInstance().apiUrl=e}},{key:"setBannerUrl",value:function(e){_o.getInstance().setBannerUrl(e)}},{key:"setModalUrl",value:function(e){Go.getInstance().setModalUrl(e)}},{key:"setFrameUrl",value:function(e){Gt.getInstance().frameUrl=e}},{key:"setTicketAttribute",value:function(e,t){gn.getInstance().setTicketAttribute(e,t)}},{key:"unsetTicketAttribute",value:function(e){gn.getInstance().unsetTicketAttribute(e)}},{key:"clearTicketAttributes",value:function(){gn.getInstance().clearTicketAttributes()}},{key:"attachCustomData",value:function(e){gn.getInstance().attachCustomData(e)}},{key:"setCustomData",value:function(e,t){gn.getInstance().setCustomData(e,t)}},{key:"removeCustomData",value:function(e){gn.getInstance().removeCustomData(e)}},{key:"clearCustomData",value:function(){gn.getInstance().clearCustomData()}},{key:"playSound",value:function(e){Yo.playSound(e)}},{key:"showTabNotificationBadge",value:function(e){var t=Ao.getInstance();t.showNotificationBadge=e,t.updateTabBarNotificationCount()}},{key:"setLanguage",value:function(t){go.getInstance().setOverrideLanguage(t),e.getInstance().initialized&&setTimeout((function(){e.getInstance().softReInitialize(),e.updateContact({lang:t})}),1e3)}},{key:"registerCustomAction",value:function(e){En.registerCustomAction(e)}},{key:"triggerCustomAction",value:function(e){En.triggerCustomAction(e)}},{key:"setStyles",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#ffffff",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:20,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:20,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:a.FEEDBACK_BUTTON_BOTTOM_LEFT;L((function(){!function(e,t,n,o,r,i,s,c){var l=d(e),p=d(n),f=d(r),h=d(t),v="#ffffff"===f,g=u(t,"#ffffff"===h?-35:-15),m=u(r,v?100:-120),b=u(r,v?30:-12),y=u(r,v?80:-30),w=(o=parseInt(o,10),Math.round(1.05*o)),k=Math.round(.8*o),x=Math.round(.6*o),S=Math.round(.4*o),C=Math.round(.25*o),I=57+s;c===a.FEEDBACK_BUTTON_CLASSIC_BOTTOM?I=s+15:(c&&c.includes("CLASSIC")||c===a.FEEDBACK_BUTTON_NONE)&&(I=s);var L='\n .gleap-font, .gleap-font * {\n font-style: normal;\n font-variant-caps: normal;\n font-variant-ligatures: normal;\n font-variant-numeric: normal;\n font-variant-east-asian: normal;\n font-weight: normal;\n font-stretch: normal;\n font-size: 100%;\n line-height: 1;\n font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n }\n .gleap-input-highlight {\n box-shadow: 0 0 0 3px '.concat(e," !important;\n }\n .gleap-frame-container {\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n width: calc(100% - 40px);\n max-width: 410px;\n position: fixed;\n z-index: ").concat(2147483631,";\n visibility: visible;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.16);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n animation-duration: .3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n user-select: none;\n pointer-events: none;\n transition: max-width 0.3s ease-out;\n }\n\n .gleap-admin-highlight {\n box-shadow: 0px 0px 0px 4px red;\n }\n\n :root {\n --gleap-margin-top: 50px;\n }\n\n .gleap-tooltip-anchor {\n position: relative;\n display: inline-block;\n float: left;\n max-width: 0px;\n width: 17px;\n }\n\n .gleap-tooltip-hotspot {\n position: absolute;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n }\n\n @keyframes gleap-pulse {\n 0% {\n transform: scale(0);\n opacity: 0.25;\n }\n 45% {\n transform: scale(2.5);\n opacity: 0;\n }\n 100% {\n transform: scale(0);\n opacity: 0;\n }\n }\n\n .gleap-tooltip-hotspot-animation {\n position: absolute;\n border-radius: 17px;\n opacity: 0.25;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n animation: gleap-pulse 5s infinite;\n }\n\n .gleap-tooltip-hotspot svg {\n width: 17px;\n height: 17px;\n object-fit: contain;\n display: block;\n }\n\n .gleap-tooltip-inner {\n position: relative;\n overflow: visible;\n font-size: 14px;\n font-weight: normal;\n color: #000;\n line-height: 1.3;\n }\n\n .gleap-tooltip {\n position: absolute;\n background-color: #fff;\n color: #000;\n font-size: 15px;\n line-height: 18px;\n padding: 16px;\n padding-top: 8px;\n padding-bottom: 8px;\n border-radius: 4px;\n max-width: min(350px, 80vw);\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.2s, visibility 0.2s;\n z-index: ").concat(2147483700,";\n }\n\n .gleap-tooltip a {\n color: ").concat(e,";\n text-decoration: underline;\n display: inline !important;\n margin: 0px !important;\n padding: 0px !important;\n word-break: break-word;\n }\n\n .gleap-tooltip ul {\n padding-left: 16px;\n }\n\n .gleap-tooltip b {\n font-weight: 600;\n }\n\n .gleap-tooltip h2 {\n font-size: 18px;\n line-height: 20px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip h3 {\n font-size: 16px;\n line-height: 18px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip p {\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip img {\n max-width: 100%;\n max-height: 300px;\n width: 100%;\n height: auto;\n object-fit: cover;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip iframe,\n .gleap-tooltip video {\n max-width: 100%;\n width: 100%;\n height: auto;\n min-height: 200px;\n display: block;\n border: none;\n outline: none;\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip-arrow {\n position: absolute;\n width: 20px;\n height: 20px;\n }\n\n .gleap-tooltip-arrow svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n\n .gleap-b-frame {\n width: 100%;\n height: 100%;\n border: none;\n pointer-events: auto;\n padding: 0px;\n margin: 0px;\n }\n\n .gleap-b-shown {\n transition: margin 0.3s ease-out;\n margin-top: var(--gleap-margin-top);\n position: relative;\n z-index: 10000;\n }\n\n .gleap-b-f {\n margin-top: 0px;\n }\n\n .gleap-b {\n display: none;\n position: absolute;\n top: calc(-1 * var(--gleap-margin-top));\n left: 0px;\n width: 100vw;\n height: var(--gleap-margin-top);\n z-index: ").concat(2147483699,";\n }\n\n @keyframes gleapSlideIn {\n from {\n top: calc(-1 * var(--gleap-margin-top));\n }\n to {\n top: 10px;\n }\n }\n\n .gleap-b-f .gleap-b {\n position: fixed;\n top: 10px;\n animation: gleapSlideIn .25s ease-out forwards;\n max-width: 800px;\n width: calc(100% - 20px);\n left: 50%;\n z-index: ").concat(2147483699,";\n transform: translateX(-50%);\n border-radius: ").concat(S,"px;\n overflow: hidden;\n box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15), 0px 5px 5px rgba(0, 0, 0, 0.05);\n }\n\n .gleap-b-shown .gleap-b {\n display: block;\n }\n\n .gleap-image-view {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n z-index: ").concat(2147483699,";\n background-color: ").concat(f,"cc;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-image-view-image {\n width: 90%;\n height: auto;\n max-width: 90%;\n max-height: 90%;\n object-fit: contain;\n }\n\n .gleap-image-view-close {\n position: fixed;\n top: 20px;\n right: 20px;\n width: 32px;\n height: 32px;\n opacity: 0.8;\n z-index: ").concat(2147483740,";\n box-shadow: 0px 5px 18px rgba(0, 0, 0, 0.16);\n cursor: pointer;\n }\n\n .gleap-image-view-close:hover {\n opacity: 1;\n }\n\n .gleap-image-view-close svg path {\n fill: ").concat(r,";\n }\n\n [dir=rtl].gleap-frame-container {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,'px;\n }\n\n .gleap-frame-container--loading iframe {\n opacity: 0;\n }\n\n .gleap-frame-container--loading::before {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 130deg,\n ').concat(g," 0%,\n ").concat(t,' 100%\n );\n }\n \n .gleap-frame-container--loading::after {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 180deg,\n transparent 60%,\n ').concat(r,"1A 70%,\n ").concat(r," 100%\n );\n }\n\n .gleap-frame-container--loading-nogradient::before {\n max-height: 340px;\n background: ").concat(t," !important;\n }\n\n .gleap-frame-container--loading-nofade::after {\n display: none !important;\n }\n\n .gleap-frame-container--survey {\n bottom: ").concat(s,"px !important;\n }\n\n .gleap-frame-container--extended {\n max-width: 690px !important;\n }\n\n .gleap-frame-container--survey-full {\n position: fixed;\n top: 0 !important;\n left: 0 !important;\n bottom: 0 !important;\n right: 0 !important;\n width: 100vw !important;\n max-width: 100vw !important;\n height: 100vh !important;\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(6px);\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n max-height: 100vh !important;\n border-radius: 0 !important;\n animation-name: none !important;\n }\n\n .gleap-frame-container--survey-full .gleap-frame-container-inner {\n max-width: 640px !important;\n width: calc(100% - 24px);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n }\n\n .gleap-frame-container--classic {\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--classic-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--modern-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n [dir=rtl].gleap-frame-container--modern-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n .gleap-frame-container--animate {\n pointer-events: auto !important;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n @keyframes gleapFadeInUpMobile {\n from {\n opacity: 0;\n transform: translate3d(0, 10%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n .gleap-notification-container {\n position: fixed;\n bottom: ").concat(I,"px;\n right: ").concat(i,"px;\n z-index: ").concat(2147483630,";\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n width: 100%;\n max-width: min(340px, 80vw);\n }\n\n .gleap-notification-container--left {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container--left {\n left: initial !important;\n right: ").concat(i,"px !important;\n align-items: flex-start !important;\n }\n\n .gleap-notification-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n .gleap-notification-item {\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n .gleap-notification-close {\n border-radius: 100%;\n width: 28px;\n height: 28px;\n background-color: ").concat(m,";\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 8px;\n cursor: pointer;\n visibility: hidden;\n pointer-events: none;\n }\n\n .gleap-notification-container:hover .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n }\n\n .gleap-notification-close svg {\n width: 45%;\n height: 45%;\n object-fit: contain;\n fill: ").concat(r,";\n }\n\n .gleap-notification-item-checklist-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n cursor: pointer;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-checklist-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n width: 100%;\n width: min(310px, 70vw);\n max-width: min(310px, 70vw);\n }\n\n .gleap-notification-item-checklist-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 10px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-checklist-content-progress {\n width: 100%;\n height: 8px;\n border-radius: 8px;\n background-color: ").concat(b,";\n }\n\n .gleap-notification-item-checklist-content-progress-inner {\n height: 100%;\n border-radius: 8px;\n background-color: ").concat(e,";\n }\n\n .gleap-notification-item-checklist-content-next {\n color: ").concat(m,";\n font-size: 15px;\n font-weight: normal;\n line-height: 21px;\n margin-top: 10px;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n }\n\n .gleap-notification-item-checklist-content-next svg {\n height: 18px;\n margin-right: 5px;\n width: auto;\n }\n\n .gleap-notification-item-checklist-content-next b {\n font-size: 15px;\n font-weight: normal;\n color: ").concat(f,";\n }\n\n .gleap-notification-item-news {\n width: 100%;\n }\n\n .gleap-news-pagination {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 10px;\n width: 100%;\n }\n\n .gleap-news-page-indicator {\n font-size: 12px;\n color: ").concat(m,";\n }\n\n .gleap-news-next-button {\n background-color: ").concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 5px 10px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;^\n }\n\n .gleap-notification-item-news-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n }\n\n .gleap-notification-item-news-preview {\n color: ").concat(m,";\n font-size: 14px;\n line-height: 21px;\n font-weight: 400;\n overflow-wrap: break-word;\n word-break: break-word;\n display: block;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-news-sender {\n display: flex;\n align-items: center;\n color: ").concat(m,";\n font-size: 15px;\n line-height: 21px;\n font-weight: 400;\n }\n \n .gleap-notification-item-news-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 6px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n cursor: pointer;\n }\n\n .gleap-notification-item-news-sender img {\n border-radius: 100%;\n height: 20px;\n margin-right: 8px;\n object-fit: cover;\n width: 20px;\n }\n\n [dir=rtl] .gleap-notification-item-news-sender img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-news-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-news-image {\n background-color: ").concat(m,";\n height: 170px;\n max-height: 170px;\n object-fit: cover;\n width: 100%;\n cursor: pointer;\n }\n \n .gleap-notification-item-news-content-title:hover {\n color: ").concat(e,";\n }\n\n .gleap-notification-item {\n display: flex;\n align-items: flex-end;\n cursor: pointer;\n }\n\n .gleap-notification-item img {\n width: 32px;\n height: 32px;\n min-width: 32px;\n border-radius: 100%;\n object-fit: cover;\n margin-right: 8px;\n margin-bottom: 12px;\n cursor: pointer;\n }\n\n [dir=rtl] .gleap-notification-item img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-container {\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n border-bottom-left-radius: 0px;\n padding: 20px;\n background-color: ").concat(r,";\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 15px;\n line-height: 21px;\n color: ").concat(f,';\n position: relative;\n }\n\n .gleap-notification-item-container::after {\n content: " ";\n position: absolute;\n bottom: 0px;\n width: 0px;\n height: 0px;\n left: -6px;\n border-style: solid;\n border-width: 0px 0px 10px 6px;\n border-color: transparent transparent ').concat(r,";\n }\n\n .gleap-notification-item-sender {\n color: ").concat(m,";\n line-height: 20px;\n }\n\n .gleap-notification-item-content {\n line-height: 20px;\n color: ").concat(f,";\n margin-top: 4px;\n min-width: min(200px, 50vw);\n word-wrap: break-word;\n word-break: break-word;\n }\n\n .gleap-frame-container-inner {\n position: relative;\n width: 100%;\n height: calc(100vh - ").concat(130+s,"px);\n max-height: ").concat(700,'px;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: calc(100vh - 40px);\n }\n \n .gleap-frame-container-inner:before {\n content: " ";\n position: absolute;\n width: 100%;\n height: calc(100% - ').concat(k,"px);\n top: ").concat(k,"px;\n background-color: ").concat(r,";\n z-index: -1;\n }\n \n .gleap-frame-container iframe {\n height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n display: block !important;\n pointer-events: auto !important;\n }\n \n .gleap-frame-container--hidden {\n display: none !important;\n pointer-events: none;\n animation: none !important;\n }\n \n .bb-feedback-button {\n margin: 0px;\n position: fixed;\n bottom: ").concat(s,"px;\n right: ").concat(i,"px;\n border-radius: 30px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n color: #000000;\n z-index: ").concat(2147483630,";\n box-sizing: border-box;\n display: flex;\n align-items: center;\n padding: 0px;\n }\n\n [dir=rtl].bb-feedback-button {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n \n .bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n\n [dir=rtl].bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: ").concat(i,'px;\n left: auto;\n }\n \n .bb-feedback-button--disabled {\n display: none !important;\n }\n\n .bb-feedback-button--hidden {\n display: none !important;\n }\n \n .bb-feedback-button-text {\n padding: 8px 12px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n background-color: #fff;\n border-radius: 8px;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.15);\n position: relative;\n z-index: 99;\n }\n \n .bb-feedback-button-text:before {\n content: "";\n position: absolute;\n box-shadow: rgba(0, 0, 0, 0.04) 6px 6px 5px;\n transform: rotate(315deg);\n bottom: 16px;\n right: -4px;\n border-width: 10px;\n border-style: solid;\n border-color: transparent #fff #fff transparent;\n }\n \n .bb-feedback-button--bottomleft .bb-feedback-button-text:before {\n display: none;\n }\n \n .bb-feedback-button-text:after {\n content: "";\n position: absolute;\n bottom: 12px;\n right: 0px;\n background-color: #fff;\n width: 5px;\n height: 30px;\n }\n \n .bb-feedback-button-text-title {\n font-family: sans-serif;\n font-size: 14px;\n color: #666;\n line-height: 18px;\n max-width: 220px;\n }\n \n .bb-feedback-button-text-title b {\n color: #000000;\n font-weight: 600;\n }\n\n .bb-notification-bubble {\n position: absolute;\n top: -5px;\n right: -5px;\n min-width: 12px;\n padding: 0px 4px;\n height: 20px;\n min-width: 20px;\n border-radius: 20px;\n background-color: red;\n color: #fff;\n font-size: 11px;\n font-family: sans-serif;\n text-align: center;\n line-height: 20px;\n }\n\n .bb-notification-bubble--hidden {\n display: none;\n }\n \n .bb-feedback-button-icon {\n width: 48px;\n height: 48px;\n border-radius: 48px;\n background-color: #485bff;\n transition: box-shadow, transform 0.2s ease-in-out;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n position: relative;\n }\n \n .bb-feedback-button-classic {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n top: 50%;\n right: 0px;\n position: fixed;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n padding: 9px 20px;\n text-align: center;\n background-color: #485bff;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n font-family: sans-serif;\n font-size: 16px;\n color: #fff;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.25);\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n \n .bb-feedback-button-classic--left {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--left {\n top: 50%;\n right: 0px;\n left: auto;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n }\n \n .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n right: ').concat(i,"px;\n left: auto;\n }\n \n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n left: ").concat(i,"px;\n right: auto;\n }\n\n .bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n \n .bb-feedback-button--open.bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeOutRight;\n }\n \n .bb-feedback-button .bb-logo-logo {\n position: absolute;\n width: 30px;\n height: 30px;\n top: 9px;\n left: 9px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n position: absolute;\n width: 14px;\n height: 14px;\n top: 17px;\n left: 17px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button--open .bb-logo-arrowdown {\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button--open .bb-logo-logo {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button-icon:hover {\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25), 0px 0px 20px rgba(0, 0, 0, 0.2);\n transform: scale(1.1);\n }\n \n .bb-feedback-button--open .bb-feedback-button-text {\n animation-name: bbFadeOutDown;\n }\n \n .bb-feedback-button--open .bb-feedback-button-icon {\n display: flex;\n }\n \n .bb-capture-svg {\n position: fixed;\n z-index: ").concat(2147483614,";\n top: 0px;\n left: 0px;\n right: 0px;\n width: 100%;\n height: 100%;\n padding: 0px;\n margin: 0px;\n cursor: crosshair;\n }\n\n .bb-capture-svg--preview {\n cursor: auto !important;\n }\n \n .bb-rec-on-circle {\n animation-name: bbRecIconFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-rec-on-cont {\n animation-name: bbRecIconContFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-capture-editor-drag-info {\n position: fixed;\n top: -200px;\n left: 0px;\n z-index: ").concat(2147483616,";\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-editor-drag-info svg {\n width: 24px;\n height: 24px;\n }\n \n .bb-capture-editor-borderlayer {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n border: 4px solid ").concat(e,";\n cursor: crosshair;\n z-index: ").concat(2147483610,";\n box-sizing: border-box;\n pointer-events: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-borderlayer {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n .bb-capture-editor-recording .bb-capture-editor-borderlayer {\n border: 4px solid #eb144c !important;\n }\n \n .bb-capture-editor-recording .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-editor-item-inactive {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-toolbar-drawingitem {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-svg {\n pointer-events: none !important;\n }\n \n .bb-capture-toolbar {\n position: fixed;\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,";\n background-color: #fff;\n padding: 5px;\n display: flex;\n align-items: center;\n border-radius: 8px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-dismiss {\n position: fixed;\n top: 0px;\n right: 0px;\n z-index: ").concat(2147483618,";\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n width: 36px;\n height: 36px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: ").concat(e,";\n border-bottom-left-radius: ").concat(C,"px;\n }\n\n [dir=rtl] .bb-capture-dismiss {\n top: 0px;\n left: 0px;\n right: auto;\n border-bottom-left-radius: 0px !important;\n border-bottom-right-radius: ").concat(C,"px;\n }\n \n .bb-capture-dismiss svg path {\n fill: ").concat(l,';\n }\n \n .bb-capture-dismiss svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n \n .bb-capture-button-next {\n font-family: sans-serif;\n box-sizing: border-box;\n font-weight: 600;\n text-align: center;\n width: auto;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n margin: 0px;\n line-height: 36px;\n padding: 0px 12px;\n font-size: 15px;\n margin-left: 12px;\n }\n\n [dir=rtl].bb-capture-editor .bb-capture-button-next {\n margin-left: auto;\n margin-right: 12px;\n }\n \n .bb-capture-toolbar-item-spacer {\n width: 1px;\n height: 38px;\n min-width: 1px;\n margin: 0px 5px;\n }\n \n .bb-capture-toolbar-item {\n width: 42px;\n height: 38px;\n min-width: 42px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n position: relative;\n margin-right: 5px;\n }\n\n .drag-handle-item {\n cursor: grab !important;\n width: 34px;\n min-width: 34px;\n }\n\n .drag-handle-item svg {\n width: 18px !important;\n height: 18px !important;\n }\n \n .bb-capture-toolbar-item svg {\n width: 23px;\n height: 23px;\n object-fit: contain;\n }\n \n .bb-capture-toolbar-item-selectedcolor {\n border-radius: 100%;\n width: 20px;\n height: 20px;\n background-color: #db4035;\n }\n \n .bb-capture-toolbar-item[data-type="undo"] svg {\n width: 18px;\n height: 18px;\n }\n \n .bb-capture-toolbar-item[data-active="true"] {\n position: relative;\n }\n \n .bb-capture-preview {\n display: none;\n background-color: rgba(0, 0, 0, 0.6);\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n justify-content: center;\n align-items: center;\n z-index: ').concat(2147483620,";\n }\n \n .bb-capture-preview-inner {\n background-color: #fff;\n padding: 0px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n flex-direction: column;\n max-width: 640px;\n width: 100%;\n margin: 20px;\n }\n \n .bb-capture-preview-inner video {\n border-radius: 8px 8px 0px 0px;\n display: block;\n border: 0px;\n outline: none;\n width: 100%;\n max-height: 60vh;\n }\n \n .bb-capture-preview-buttons {\n display: flex;\n justify-content: space-between;\n padding: 14px;\n }\n \n .bb-capture-preview-retrybutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-sendbutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-retrybutton:hover,\n .bb-capture-preview-sendbutton:hover {\n opacity: 0.9;\n }\n \n .bb-capture-toolbar-item-recording {\n margin-right: 0px;\n }\n \n .bb-capture-toolbar-item-recording svg {\n width: 33px;\n height: 33px;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n position: fixed;\n top: 70px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,';\n background-color: #fff;\n display: none;\n padding: 10px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n }\n \n .bb-capture-toolbar-item-color {\n width: 20px;\n height: 20px;\n border-radius: 100%;\n margin-right: 12px;\n box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-toolbar-item-color:hover {\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);\n }\n \n .bb-capture-toolbar-item-color:last-of-type {\n margin-right: 0px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color {\n margin-right: auto;\n margin-left: 12px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color:last-of-type {\n margin-right: auto;\n margin-left: 0px;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:first-of-type {\n display: none;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:nth-of-type(2) {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:first-of-type {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:nth-of-type(2) {\n display: none;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #eee;\n }\n \n .bb-capture-toolbar-item:hover svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #f8f8f8;\n }\n \n .bb-capture-toolbar-item--active svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--inactivecross::before {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 3px;\n width: 26px;\n margin: auto;\n border-radius: 4px;\n background-color: #e80000;\n transform: rotate(45deg);\n }\n \n .bb-capture-toolbar-item--inactivecross svg {\n fill: #eee;\n }\n \n .bb-capture-toolbar-item-timer {\n text-align: left;\n line-height: 32px;\n font-size: 14px;\n font-family: sans-serif;\n margin: 5px;\n min-width: 40px;\n display: none;\n }\n \n .bb-capture-toolbar-item .bb-tooltip {\n background-color: #555;\n color: #fff;\n visibility: hidden;\n font-size: 14px;\n font-family: sans-serif;\n text-align: center;\n padding: 5px 10px;\n position: absolute;\n z-index: 1;\n top: 45px;\n left: 0px;\n transform: translateX(calc(-50% + 21px));\n opacity: 0;\n transition: opacity 0.3s;\n white-space: nowrap;\n }\n \n .bb-capture-toolbar-item .bb-tooltip::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n transform: rotate(180deg);\n border-color: #555 transparent transparent transparent;\n }\n \n .bb-capture-toolbar-item:hover .bb-tooltip {\n visibility: visible;\n opacity: 1;\n }\n \n .bb-capture-options {\n display: none;\n }\n \n .bb-capture-options--active {\n display: flex;\n }\n\n @keyframes bbFadeOutRight {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbFadeOutDown {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n }\n \n @keyframes bbFadeInOpacity {\n from {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n @keyframes bbZoomOut {\n from {\n opacity: 1;\n }\n \n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbZoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n 50% {\n opacity: 1;\n }\n }\n \n @keyframes bbRecIconContFade {\n 0% {\n fill: #b10802;\n }\n 50% {\n fill: #ff0000;\n }\n 100% {\n fill: #b10802;\n }\n } \n .bb-capture-preview-retrybutton {\n color: ').concat(f,";\n border-radius: ").concat(w,"px;\n background-color: ").concat(b,";\n }\n .bb-capture-preview-retrybutton:hover {\n background-color: ").concat(y,";\n }\n @keyframes bb-suc-fill {\n 100% {\n box-shadow: inset 0px 0px 0px 30px ").concat(e,";\n }\n }\n .bb-capture-toolbar-item-spacer {\n background-color: ").concat(b,";\n }\n .bb-tooltip {\n border-radius: ").concat(S,"px;\n }\n @keyframes bbRecIconFade {\n 0% {\n fill: transparent;\n }\n 50% {\n fill: ").concat(y,";\n }\n 100% {\n fill: transparent;\n }\n }\n .bb-capture-preview-sendbutton {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(w,"px;\n }\n .bb-capture-button-next {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(C,"px;\n }\n .bb-capture-preview-inner {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-timer {\n color: ").concat(m,";\n }\n .bb-svg-path {\n fill: ").concat(f,";\n }\n .bb-capture-toolbar-item {\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-colorpicker {\n background-color: ").concat(r,";\n }\n .bb-capture-toolbar-item--active {\n background-color: ").concat(b,";\n }\n .bb-feedback-button-classic {\n border-top-left-radius: ").concat(S,"px;\n border-top-right-radius: ").concat(S,"px;\n }\n .bb-logo-logo--default path {\n fill: ").concat(p,";\n }\n .bb-logo-arrowdown {\n fill: ").concat(p,";\n }\n .bb-feedback-button-icon {\n background-color: ").concat(n,";\n }\n .bb-feedback-button-classic {\n background-color: ").concat(n,";\n color: ").concat(p,";\n }\n\n @media only screen and (max-width: 450px) {\n [dir=rtl].gleap-frame-container,\n .gleap-frame-container {\n left: 0px;\n right: 0px;\n width: 100vw;\n max-width: 100vw;\n min-height: 100vh;\n min-height: -webkit-fill-available;\n max-height: -webkit-fill-available;\n top: 0px;\n bottom: 0px;\n border-radius: 0px;\n animation-name: gleapFadeInUpMobile;\n }\n\n .gleap-frame-container-inner {\n width: 100vw;\n height: 100%;\n }\n\n .gleap-frame-container:not(.gleap-frame-container--survey):not(.gleap-frame-container--survey-full) .gleap-frame-container-inner {\n max-height: calc(var(--glvh, 1vh) * 100) !important;\n }\n\n .gleap-frame-container--survey {\n height: auto !important;\n top: initial !important;\n bottom: 0px !important;\n min-height: initial !important;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: 100vh !important;\n }\n\n .bb-tooltip {\n display: none !important;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n top: 75px;\n }\n \n .bb-capture-button-next {\n margin-left: auto;\n }\n \n .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-toolbar {\n top: 15px;\n right: 15px;\n left: 15px;\n width: auto;\n transform: none;\n }\n\n .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-borderlayer {\n border-width: 4px;\n }\n }\n \n @media print {\n .bb-feedback-button {\n display: none !important;\n }\n \n .gleap-frame-container {\n display: none !important;\n }\n }\n\n .gleap-tour-sender {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n margin-bottom: 10px;\n }\n\n .gleap-tour-sender-image {\n width: 32px;\n height: 32px;\n border-radius: 32px;\n margin-right: 10px;\n background-size: cover;\n background-repeat: no-repeat;\n }\n\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: 550px;\n max-width: 550px;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: calc(100vw - 40px);\n max-width: calc(100vw - 40px);\n }\n }\n\n .gleap-tour-message,\n .gleap-tour-message p,\n .gleap-tour-message ul {\n color: ").concat(f,";\n }\n\n .gleap-tour-message h2 {\n font-weight: 600;\n font-size: 22px;\n }\n\n .gleap-tour-message h3 {\n font-weight: 600;\n font-size: 18px;\n }\n\n .gleap-tour-message p {\n line-height: 1.3;\n margin-bottom: 10px !important;\n margin-top: 10px !important;\n }\n\n .gleap-tour-message ul {\n line-height: 1.3;\n padding-left: 20px;\n margin-top: 10px !important;\n margin-bottom: 10px !important;\n }\n\n .gleap-tour-message {\n max-height: calc(80vh - 100px) !important;\n overflow-y: auto;\n min-width: 270px;\n }\n\n .gleap-tour-message::-webkit-scrollbar {\n width: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-track {\n border-radius: 0px;\n }\n \n .gleap-tour-message::-webkit-scrollbar-thumb {\n background: ").concat(y,"; \n border-radius: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-thumb:hover {\n background: ").concat(m,";\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-message {\n min-width: auto !important;\n }\n }\n\n .gleap-tour-message iframe {\n width: 100%;\n height: 300px;\n margin-top: 10px;\n margin-bottom: 10px;\n border: none;\n outline: none;\n display: block;\n }\n\n .gleap-tour-sender-name {\n font-size: 15px;\n }\n\n .gleap-tour-video {\n width: 100%;\n max-width: 100%;\n }\n\n .gleap-tour-video-svg--fullscreen {\n width: 100% !important;\n height: 100% !important;\n top: 0px !important;\n left: 0px !important;\n right: 0px !important;\n bottom: 0px !important;\n }\n\n .gleap-tour-video--playing .gleap-tour-video-playpause {\n opacity: 0;\n }\n \n .gleap-tour-video--playing:hover .gleap-tour-video-playpause {\n opacity: 1;\n }\n\n .gleap-tour-popover-video-pointer {\n padding: 0px !important;\n border-radius: 8px;\n position: relative;\n background-color: transparent !important;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer {\n position: absolute;\n top: 0px;\n left: 20px;\n right: 20px;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer button {\n padding: 5px 12px;\n }\n\n .gleap-tour-popover-video-pointer.gleap-tour-popover-can-close .gleap-tour-popover-footer {\n right: 40px !important;\n }\n\n .gleap-tour-popover-video-pointer:hover .gleap-tour-popover-footer {\n opacity: 1;\n }\n\n .gleap-tour-popover-pointer.gleap-tour-popover-no-sender .gleap-tour-message {\n padding-right: 20px;\n }\n\n .gleap-tour-video video {\n width: 100%;\n max-width: 100%;\n height: auto;\n border: none;\n outline: none;\n display: block;\n border-radius: 8px;\n }\n\n .gleap-admin-collapse-ui {\n z-index: ").concat(2147483635,";\n cursor: pointer;\n position: fixed;\n bottom: 75px;\n right: 20px;\n width: 32px;\n height: 32px;\n border-radius: 100%;\n background-color: #fff;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;\n }\n\n .gleap-admin-collapse-ui svg {\n width: 20px;\n height: 14px;\n fill: #000 !important;\n }\n\n .gleap-admin-collapse-ui-active {\n bottom: 20px !important;\n }\n\n .gleap-admin-collapse-ui-active svg {\n transform: rotate(180deg);\n }\n\n .gleap-admin-frame-container-active {\n display: none !important;\n }\n\n .gleap-admin-frame-container {\n position: fixed;\n bottom: 0px;\n left: 0px;\n right: 0px;\n width: 100vw;\n z-index: ").concat(2147483640,";\n }\n\n .gleap-admin-frame {\n width: 100%;\n height: 100% !important;\n border: none;\n outline: none;\n display: block;\n }\n \n .gleap-tour-message .linktype-link {\n display: inline-block !important;\n background-color: transparent !important;\n color: ").concat(n," !important;\n }\n\n .gleap-tooltip .linktype-button,\n .gleap-tour-message .linktype-button {\n display: inline-block !important;\n border-radius: 5px;\n box-sizing: border-box;\n padding: 10px 20px !important;\n text-decoration: none !important;\n background-color: ").concat(n," !important;\n color: ").concat(p," !important;\n }\n\n .gleap-tour-message img {\n width: 100%;\n max-width: 100%;\n min-height: 260px;\n height: auto;\n margin-top: 10px;\n margin-bottom: 10px;\n object-fit: cover;\n }\n\n .gleap-tour-active .gleap-tour-overlay {\n pointer-events: none;\n }\n \n .gleap-tour-active * {\n pointer-events: none;\n }\n \n .gleap-tour-active .gleap-tour-active-element,\n .gleap-tour-active .gleap-tour-active-element *,\n .gleap-tour-popover,\n .gleap-tour-popover * {\n pointer-events: auto;\n }\n \n @keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n .gleap-tour-fade .gleap-tour-overlay {\n animation: animate-fade-in 200ms ease-in-out;\n }\n \n .gleap-tour-fade .gleap-tour-popover {\n animation: animate-fade-in 200ms;\n }\n\n .gleap-tour-video-playpause {\n position: absolute;\n bottom: 8px;\n left: 8px;\n width: 32px;\n height: 32px;\n padding: 4px;\n background-color: rgba(0,0,0,0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border-radius: 8px;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-arrow {\n display: none !important;\n }\n\n .gleap-tour-video-playpause svg {\n width: 34px;\n height: auto;\n fill: #fff;\n }\n \n /* Popover styles */\n .gleap-tour-popover {\n all: unset;\n box-sizing: border-box;\n color: #2d2d2d;\n margin: 0;\n padding: 15px;\n border-radius: ").concat(S,'px;\n min-width: 250px;\n max-width: 300px;\n box-shadow: 0 1px 10px #0006;\n z-index: 1000000000;\n position: fixed;\n top: 0;\n right: 0;\n background-color: #fff;\n }\n \n .gleap-tour-popover * {\n font-family: "Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif;\n }\n \n .gleap-tour-popover-title {\n font: 19px / normal sans-serif;\n font-weight: 700;\n display: block;\n position: relative;\n line-height: 1.5;\n zoom: 1;\n margin: 0;\n }\n \n .gleap-tour-popover-close-btn {\n all: unset;\n position: absolute;\n top: 5px;\n right: 5px;\n width: 32px;\n height: 32px;\n cursor: pointer;\n font-size: 30px;\n font-weight: 500;\n line-height: 32px;\n color: #d2d2d2;\n z-index: 1;\n text-align: center;\n transition: color;\n transition-duration: 200ms;\n }\n \n .gleap-tour-popover-close-btn:hover,\n .gleap-tour-popover-close-btn:focus {\n color: #2d2d2d;\n }\n \n .gleap-tour-popover-title[style*="block"] + .gleap-tour-popover-description {\n margin-top: 5px;\n }\n \n .gleap-tour-popover-description {\n margin-bottom: 0;\n font: 15px / normal sans-serif;\n line-height: 1.5;\n font-weight: 400;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer {\n margin-top: 15px;\n text-align: right;\n zoom: 1;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n \n .gleap-tour-popover-progress-text {\n font-size: 13px;\n font-weight: 400;\n color: #727272;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer button {\n background-color: ').concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 10px 20px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;\n }\n\n .gleap-tour-popover-prev-btn {\n color: ").concat(f," !important;\n background-color: ").concat(b," !important;\n margin-right: 3px;\n }\n\n .gleap-tour-popover-prev-btn:hover {\n background-color: ").concat(e,"22 !important;\n color: ").concat(e,' !important;\n }\n \n .gleap-tour-popover-footer .gleap-tour-popover-btn-disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n \n /* Disable the scrolling of parent element if it has an active element*/\n :not(body):has(> .gleap-tour-active-element) {\n overflow: hidden !important;\n }\n \n .gleap-tour-no-interaction, .gleap-tour-no-interaction * {\n pointer-events: none !important;\n }\n \n .gleap-tour-popover-navigation-btns {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n }\n \n .gleap-tour-popover-navigation-btns button + button {\n margin-left: 4px;\n }\n \n .gleap-tour-popover-arrow {\n content: "";\n position: absolute;\n border: 5px solid #fff;\n }\n \n .gleap-tour-popover-arrow-side-over {\n display: none;\n }\n \n /** Popover Arrow Sides **/\n .gleap-tour-popover-arrow-side-left {\n left: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-right {\n right: 100%;\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-top {\n top: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-bottom {\n bottom: 100%;\n border-left-color: transparent;\n border-top-color: transparent;\n border-right-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-center {\n display: none;\n }\n \n /* Left/Start + Right/Start */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-start {\n top: 15px;\n }\n \n /* Top/Start + Bottom/Start */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-start {\n left: 15px;\n }\n \n /* End/Left + End/Right */\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-left,\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-right {\n bottom: 15px;\n }\n \n /* Top/End + Bottom/End */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-end,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-end {\n right: 15px;\n }\n \n /* Left/Center + Right/Center */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-center {\n top: 50%;\n margin-top: -5px;\n }\n \n /* Top/Center + Bottom/Center */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-center {\n left: 50%;\n margin-left: -5px;\n }\n \n /* No arrow */\n .gleap-tour-popover-arrow-none {\n display: none;\n } \n\n /* Modal styles */\n .gleap-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: ').concat(2147483640,";\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-modal-backdrop {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: ").concat(2147483641,";\n }\n\n .gleap-modal {\n position: relative;\n width: 90%;\n max-width: 600px;\n max-height: 90vh;\n z-index: ").concat(2147483700,";\n background-color: ").concat(r,";\n border-radius: ").concat(k,"px;\n overflow: hidden;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n }\n\n .gleap-modal-frame {\n width: 100%;\n border: none;\n display: block;\n outline: none;\n }\n\n body.gleap-modal-open {\n overflow: hidden;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n "),T=document.querySelector(".gleap-styles");T&&T.remove();var E=document.createElement("style");E.innerHTML=L,E.className="gleap-styles",document.body.appendChild(E)}(e,t,n,r,o,i,s,c)}))}},{key:"sendSilentCrashReport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};return e.sendSilentCrashReportWithFormData({description:t},n,o)}},{key:"sendSilentCrashReportWithFormData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};if(!this.silentCrashReportSent){this.silentCrashReportSent=!0,setTimeout((function(){t.silentCrashReportSent=!1}),1e4);var r=o?k(o):{},i=$e.getInstance();if(i.ready){var a=e||{};i.session.email&&(a.reportedBy=i.session.email),new _t("CRASH",n,a,!0,r).sendFeedback().then((function(){})).catch((function(e){}))}}}},{key:"showSurvey",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"survey";e.startFeedbackFlowWithOptions(t,{hideBackButton:!0,format:n},!0)}},{key:"startClassicForm",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlow",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlowWithOptions",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.autostartDrawing,i=n.hideBackButton,a=n.format;if($e.getInstance().ready){e.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY});var s="start-feedbackflow";o&&(s="start-survey"),Gt.getInstance().setAppMode(o?a:"widget"),Gt.getInstance().sendMessage({name:s,data:{flow:t,hideBackButton:i,format:a}},!0),r?Gt.getInstance().showDrawingScreen("screenshot"):Gt.getInstance().showWidget()}}},{key:"openConversations",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversations",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openConversation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversation",data:{shareToken:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"startConversation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.startBot("",t)}},{key:"startBot",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-bot",data:{botId:e||"",hideBackButton:!t}},!0),Gt.getInstance().showWidget()}},{key:"openHelpCenterCollection",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-collection",data:{collectionId:e}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenterArticle",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-article",data:{articleId:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenter",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"searchHelpCenter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter-search",data:{term:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNewsArticle",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news-article",data:{id:e}},!0),Gt.getInstance().showWidget())}},{key:"openChecklists",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklists",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return!!e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-checklist",data:fi({outboundId:e,hideBackButton:!t},n?{sharedKey:n}:{})},!0),Gt.getInstance().showWidget(),!0)}},{key:"openChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklist",data:{id:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNews",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openFeatureRequests",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-feature-requests",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startProductTour",value:function(e){var t=this;$e.getInstance().startProductTourConfig(e).then((function(n){t.startProductTourWithConfig(e,n)})).catch((function(e){}))}},{key:"checkForUncompletedTour",value:function(){var e=Yr.getInstance().loadUncompletedTour();e&&Yr.getInstance().startWithConfig(e.tourId,e.tourData,500)}},{key:"startProductTourWithConfig",value:function(e,t){Yr.getInstance().startWithConfig(e,t)}},{key:"showBanner",value:function(e){try{_o.getInstance().showBanner(e)}catch(t){}}},{key:"showModal",value:function(e){try{Go.getInstance().showModal(e)}catch(t){}}},{key:"showNotification",value:function(e){Ao.getInstance().showNotification(e)}}],n&&di(t.prototype,n),o&&di(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();if(hi(gi,"invoked",!0),hi(gi,"silentCrashReportSent",!1),hi(gi,"instance",void 0),"undefined"!=typeof window){var mi=window.GleapActions;if(mi&&mi.length>0)for(var bi=0;bi(()=>{"use strict";var e={561:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["id","class","length"],n=e.attributes;return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t-1||e.push("["+n.nodeName+'="'+n.value+'"]'),e}),[])}},770:(e,t)=>{function n(e){if(!e.hasAttribute("class"))return[];try{return Array.prototype.slice.call(e.classList).filter((function(e){return/^[a-z_-][a-z\d_-]*$/i.test(e)?e:null}))}catch(n){var t=e.getAttribute("class");return(t=t.trim().replace(/\s+/g," ")).split(" ")}}Object.defineProperty(t,"__esModule",{value:!0}),t.getClasses=n,t.getClassSelectors=function(e){return n(e).filter(Boolean).map((function(e){return"."+e}))}},584:(e,t)=>{function n(e,t,o,r,i,a,s){if(a!==s)for(var c=r;c<=i&&i-c+1>=s-a;++c)o[a]=t[c],n(e,t,o,c+1,i,a+1,s);else e.push(o.slice(0,a).join(""))}Object.defineProperty(t,"__esModule",{value:!0}),t.getCombinations=function(e,t){for(var o=[],r=e.length,i=[],a=1;a<=t;++a)n(o,e,i,0,r-1,0,a);return o}},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getID=function(e){var t=e.getAttribute("id");if(null!==t&&""!==t)return t.match(/(?:^\d|:)/)?'[id="'+t+'"]':"#"+t;return null}},64:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getNthChild=function(e){var t=0,n=void 0,r=void 0,i=e.parentNode;if(Boolean(i)){var a=i.childNodes,s=a.length;for(n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.getParents=function(e){var t=[],n=e;for(;(0,o.isElement)(n);)t.push(n),n=n.parentNode;return t};var o=n(440)},970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTag=function(e){return e.tagName.toLowerCase().replace(/:/g,"\\:")}},924:(e,t,n)=>{t.A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selectorTypes,o=void 0===n?["ID","Class","Tag","NthChild"]:n,r=t.attributesToIgnore,i=void 0===r?["id","class","length"]:r,a=t.excludeRegex,s=void 0===a?null:a,c=[],d=(0,u.getParents)(e),p=!0,f=!1,v=void 0;try{for(var g,m=d[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=h(g.value,o,i,s);Boolean(b)&&c.push(b)}}catch(T){f=!0,v=T}finally{try{!p&&m.return&&m.return()}finally{if(f)throw v}}var y=[],w=!0,k=!1,x=void 0;try{for(var S,C=c[Symbol.iterator]();!(w=(S=C.next()).done);w=!0){var I=S.value;y.unshift(I);var L=y.join(" > ");if((0,l.isUnique)(e,L))return L}}catch(T){k=!0,x=T}finally{try{!w&&C.return&&C.return()}finally{if(k)throw x}}return null};var o=n(169),r=n(770),i=n(584),a=n(561),s=n(64),c=n(970),l=n(213),u=n(175);function d(e,t){var n=e.parentNode.querySelectorAll(t);return 1===n.length&&n[0]===e}function p(e,t){return t.find(d.bind(null,e))}function f(e,t,n){var o=(0,i.getCombinations)(t,3),r=p(e,o);return Boolean(r)||Boolean(n)&&(r=p(e,o=o.map((function(e){return n+e}))),Boolean(r))?r:null}function h(e,t,n,i){var l=void 0,u=function(e,t,n){var i={Tag:c.getTag,NthChild:s.getNthChild,Attributes:function(e){return(0,a.getAttributes)(e,n)},Class:r.getClassSelectors,ID:o.getID};return t.reduce((function(t,n){return t[n]=i[n](e),t}),{})}(e,t,n);i&&i instanceof RegExp&&(u.ID=i.test(u.ID)?null:u.ID,u.Class=u.Class.filter((function(e){return!i.test(e)})));var p=!0,h=!1,v=void 0;try{for(var g,m=t[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=g.value,y=u.ID,w=u.Tag,k=u.Class,x=u.Attributes,S=u.NthChild;switch(b){case"ID":if(Boolean(y)&&d(e,y))return y;break;case"Tag":if(Boolean(w)&&d(e,w))return w;break;case"Class":if(Boolean(k)&&k.length&&(l=f(e,k,w)))return l;break;case"Attributes":if(Boolean(x)&&x.length&&(l=f(e,x,w)))return l;break;case"NthChild":if(Boolean(S))return S}}}catch(C){h=!0,v=C}finally{try{!p&&m.return&&m.return()}finally{if(h)throw v}}return"*"}},440:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isElement=function(e){var t=void 0;t="object"===("undefined"==typeof HTMLElement?"undefined":n(HTMLElement))?e instanceof HTMLElement:!!e&&"object"===(void 0===e?"undefined":n(e))&&1===e.nodeType&&"string"==typeof e.nodeName;return t}},213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isUnique=function(e,t){if(!Boolean(t))return!1;var n=e.ownerDocument.querySelectorAll(t);return 1===n.length&&n[0]===e}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};return(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var n=0;nxi});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"feedbackButton",null),r(this,"injectedFeedbackButton",!1),r(this,"buttonHidden",null),r(this,"lastButtonIcon",null)}var n,o,i;return n=e,i=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(o=[{key:"toggleFeedbackButton",value:function(t){this.buttonHidden=!t,e.getInstance().updateFeedbackButtonState(),Ao.getInstance().updateContainerStyle()}},{key:"feedbackButtonPressed",value:function(){var e=Gt.getInstance();e.isOpened()?e.hideWidget():(e.setAppMode("widget"),e.showWidget())}},{key:"injectFeedbackButton",value:function(){var e=this;if(!this.injectedFeedbackButton){this.injectedFeedbackButton=!0;var t=document.createElement("div");t.addEventListener("click",(function(){e.feedbackButtonPressed()})),document.body.appendChild(t),this.feedbackButton=t,this.updateFeedbackButtonState()}}},{key:"updateNotificationBadge",value:function(e){var t=document.querySelector(".bb-notification-bubble");if(t){var n="bb-notification-bubble--hidden";e>0?(t.classList.remove(n),t.innerText=e):t.classList.add(n)}}},{key:"refresh",value:function(){document.querySelector(".bb-feedback-button")?(this.updateFeedbackButtonText(),this.updateFeedbackButtonState()):(this.injectedFeedbackButton=!1,this.feedbackButton=null,this.buttonHidden=null,this.lastButtonIcon=null,this.injectFeedbackButton())}},{key:"updateFeedbackButtonText",value:function(){var t=ut.getInstance().getFlowConfig();if(t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT){var n=document.querySelector(".bb-feedback-button-classic");n&&(n.innerText=t.widgetButtonText)}}},{key:"updateFeedbackButtonState",value:function(){if(null!==this.feedbackButton){var t=ut.getInstance().getFlowConfig(),n="";n=t.buttonLogo?''):p("button","#fff"),this.feedbackButton.className="bb-feedback-button gleap-font gl-block",this.feedbackButton.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT?(this.feedbackButton.classList.add("bb-feedback-button--classic-button-style"),this.feedbackButton.innerHTML='
').concat(t.widgetButtonText,"
")):n!==this.lastButtonIcon&&(this.feedbackButton.innerHTML='
'.concat(n).concat(p("arrowdown","#fff"),'
')),this.lastButtonIcon=n;var o=!1;null===e.getInstance().buttonHidden?t.feedbackButtonPosition===e.FEEDBACK_BUTTON_NONE&&(o=!0):e.getInstance().buttonHidden&&(o=!0),o&&this.feedbackButton.classList.add("bb-feedback-button--disabled"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_BOTTOM_LEFT&&this.feedbackButton.classList.add("bb-feedback-button--bottomleft"),Gt.getInstance().isOpened()&&this.feedbackButton.classList.add("bb-feedback-button--open");var r=Gt.getInstance().appMode;"survey"!==r&&"survey_full"!==r&&"survey_web"!==r||this.feedbackButton.classList.add("bb-feedback-button--survey"),!0!==t.hideForGuests||$e.getInstance().isUser()||this.feedbackButton.classList.add("bb-feedback-button--hidden")}}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=160?"#000000":"#ffffff"},p=function(e,t){return"button"===e?'':"drag"===e?'\x3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--\x3e':"unmute"===e?'':"mute"===e?'':"replay"===e?'\n \n ':"dismiss"===e?'':"blur"===e?'\n \n':"pen"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n':"rect"===e?'\n \n \n \n \n \n \n \n \n \n \n':"pointer"===e?'\n \n ':"clip"===e?'\n \n \n \n \n \n':"mic"===e?'\n \n \n \n \n ':"camera"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n':"recorderon"===e?'\n \n \n \n \n \n \n \n \n \n \n \n':"recorderoff"===e?'\n \n \n \n \n \n \n \n \n ':"arrowdown"===e?'\n \n '):"arrowleft"===e?'\n \n '):"close"===e?'\n \n '):"undo"===e?'\n \n \n \n \n \n \n \n \n \n ':"circle-dot"===e?''):"circle-question"===e?''):"circle-info"===e?''):"circle-exclamation"===e?''):"circle-up"===e?''):"circle-right"===e?''):""};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,t){for(var n=0;n0&&(e=e.concat(this.externalRequests)),this.filters&&this.filters.length>0)for(var t=0;t-1)&&!e.find((function(e){return e.url===s.name}))&&e.push({type:"RESOURCE",date:new Date(this.startTimestamp+s.startTime),url:s.name,duration:Math.round(s.duration),initiatorType:s.initiatorType})}}}catch(u){}var c=this.blacklist.concat(this.defaultBlacklist);if(c&&c.length>0)try{e=e.filter((function(e){for(var t=0;t70&&(e=70),this.maxRequests=e}},{key:"setStopped",value:function(e){this.stopped=e}},{key:"setFilters",value:function(e){this.filters=this.filters.concat(e||[])}},{key:"setBlacklist",value:function(e){this.blacklist=this.blacklist.concat(e||[])}},{key:"cleanRequests",value:function(){var e=Object.keys(this.requests);if(e.length>this.maxRequests)for(var t=e.slice(0,e.length-this.maxRequests),n=0;n.15?"":e}},{key:"cleanupPayload",value:function(e){if(null==e)return"{}";try{if(void 0!==("undefined"==typeof TextDecoder?"undefined":f(TextDecoder))&&ArrayBuffer.isView(e))return(new TextDecoder).decode(e)}catch(t){}return e}},{key:"preparePayload",value:function(e){var t=this.cleanupPayload(e);return this.cleanupContentSize(t)}},{key:"start",value:function(){var e=this;if(!this.initialized){this.initialized=!0;var t=this;this.interceptNetworkRequests({onFetch:function(n,o){if(!e.stopped&&o&&e.requests){if(n.length>0&&void 0!==n[0]&&void 0!==n[0].url)e.requests[o]={url:n[0].url,date:new Date,request:{payload:"",headers:void 0!==n[0].headers?Object.fromEntries(n[0].headers.entries()):{}},type:void 0!==n[0].method?n[0].method:""};else if(n.length>=2&&n[1]){var r=n[1]&&n[1].method?n[1].method:"GET";e.requests[o]={request:{payload:t.preparePayload(n[1].body),headers:n[1].headers},type:r,url:n[0],date:new Date}}else e.requests[o]={url:n[0],date:new Date};e.cleanRequests()}},onFetchLoad:function(n,o){if(!e.stopped&&o&&e.requests&&e.requests[o]){try{e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:"",responseText:""},e.calcRequestTime(o)}catch(i){}try{var r="";n.headers&&void 0!==n.headers.get&&(r=n.headers.get("content-type")),e.isContentTypeSupported(r)?n.text().then((function(r){e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:t.cleanupContentSize(r)}),e.calcRequestTime(o),e.cleanRequests()})).catch((function(t){e.cleanRequests()})):(e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:""}),e.calcRequestTime(o),e.cleanRequests())}catch(i){}}},onFetchFailed:function(t,n){!e.stopped&&n&&e.requests&&e.requests[n]&&(e.requests[n].success=!1,e.calcRequestTime(n),e.cleanRequests())},onOpen:function(t,n){e.stopped||(t&&t.bbRequestId&&n.length>=2&&e.requests&&(e.requests[t.bbRequestId]={type:n[0],url:n[1],date:new Date}),e.cleanRequests())},onSend:function(t,n){e.stopped||(t&&t.bbRequestId&&e.requests&&e.requests[t.bbRequestId]&&(e.requests[t.bbRequestId].request={payload:e.preparePayload(n.length>0?n[0]:"{}"),headers:t.requestHeaders}),e.cleanRequests())},onError:function(t,n){!e.stopped&&e.requests&&t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests[t.currentTarget.bbRequestId]&&(e.requests[t.currentTarget.bbRequestId].success=!1,e.calcRequestTime(t.bbRequestId)),e.cleanRequests()},onLoad:function(t,n){if(!e.stopped){if(t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests&&e.requests[t.currentTarget.bbRequestId]){var o=t.currentTarget,r=o.responseType,i="<"+r+">";""!==r&&"text"!==r||(i=e.cleanupContentSize(o.responseText)),e.requests[o.bbRequestId].success=!0,e.requests[o.bbRequestId].response={status:o.status,statusText:o.statusText,responseText:i},e.calcRequestTime(o.bbRequestId)}e.cleanRequests()}}})}}},{key:"interceptNetworkRequests",value:function(e){var t,n=this,o=XMLHttpRequest.prototype.open,r=XMLHttpRequest.prototype.send;return void 0===XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.gleapSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader),XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=function(e,t){this.requestHeaders||(this.requestHeaders={}),this.requestHeaders&&this.requestHeaders.hasOwnProperty(e)||(this.requestHeaders[e]||(this.requestHeaders[e]=[]),this.requestHeaders[e].push(t),this.gleapSetRequestHeader(e,t))}),XMLHttpRequest.prototype.open=function(){return this.bbRequestId=++n.requestId,e.onOpen&&e.onOpen(this,arguments),e.onLoad&&this.addEventListener("load",e.onLoad.bind(e)),e.onError&&this.addEventListener("error",e.onError.bind(e)),o.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){return e.onSend&&e.onSend(this,arguments),r.apply(this,arguments)},window.fetch&&(t=window.fetch,window.fetch=function(){var o=++n.requestId;return e.onFetch(arguments,o),t.apply(this,arguments).then((function(t){if(t&&"function"==typeof t.clone){var n=t.clone();e.onFetchLoad(n,o)}return t})).catch((function(t){throw e.onFetchFailed(t,o),t}))}),e}},{key:"blobToTextPromise",value:function(e){return new Promise((function(t,n){var o=new FileReader;o.onload=function(e){e&&e.target&&e.target.result?t(e.target.result):n()},o.onerror=function(e){n(e)},o.readAsText(e)}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&h(t.prototype,n),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();v(m,"instance",void 0);const b=m;var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400;return new Promise((function(o,r){var i=0===e.indexOf("data:image/jpeg"),a=new Image;a.src=e,a.onerror=function(){r()},a.onload=function(){var e=document.createElement("canvas"),r=t,s=n;t>a.width/1.5&&(r=a.width/1.5),n>a.height/1.5&&(s=a.height/1.5);var c=a.width,l=a.height;c>l?c>r&&(l*=r/c,c=r):l>s&&(c*=s/l,l=s),e.width=c,e.height=l,e.getContext("2d").drawImage(a,0,0,c,l),o(i?e.toDataURL("image/jpeg",.7):e.toDataURL())}}))},w=function(){return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))},k=function(e){if("string"==typeof e||e instanceof String)try{return JSON.parse(e)}catch(t){return{}}return e},x=function(e,t){return e.length>t?e.slice(0,t)+"...":e},S=function(e){try{var t=e.split("."),n=!1,o=t[t.length-2];return"co"!==o&&"com"!==o&&"gv"!==o&&"ac"!==o&&"edu"!==o&&"gov"!==o&&"mil"!==o&&"net"!==o&&"org"!==o||(n=!0),(t=t.slice(n?-3:-2)).join(".")}catch(r){}return e},C=function(e){try{var t=localStorage.getItem("gleap-widget-".concat(e));if(t)return JSON.parse(t)}catch(n){}return null},I=function(e,t){var n="gleap-widget-".concat(e);if(t)try{localStorage.setItem(n,JSON.stringify(t))}catch(o){}else localStorage.removeItem(n)},L=function(e){"complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",(function(){e()}))};function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function E(e,t){for(var n=0;n=200&&i.status<300)try{var e=i.responseText?JSON.parse(i.responseText):null;o(e)}catch(t){r({status:i.status,statusText:"JSON Parse Error",responseText:i.responseText,error:t})}else r({status:i.status,statusText:i.statusText,responseText:i.responseText})},i.onerror=function(){r({status:0,statusText:"Network Error",responseText:null})},i.send(n?JSON.stringify(n):null)}))}},{key:"_createCacheKey",value:function(e,t){return t?"".concat(e,"::").concat(t):e}},{key:"validateChecklist",value:function(e,t){var n=this,o=this._createCacheKey(e,t),r=this.validationCache.get(o);if(r)return r.status===A?Promise.resolve(r.internalId):Promise.reject(r.error);if(this.validationRequests.has(o))return this.validationRequests.get(o);var i=this._getApiUrl();if(!i){var a=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.validationCache.set(o,{status:P,error:a}),Promise.reject(a)}var s="".concat(i,"/outbound/checklists?").concat(this._getQueryParams()),c=this._makeRequest("POST",s,{outboundId:e,sharedKey:t}).then((function(e){if(e&&e.id)return n.validationCache.set(o,{status:A,internalId:e.id}),e.id;var t=new Error("Validation response missing checklist ID.");throw n.validationCache.set(o,{status:P,error:e||t}),t})).catch((function(e){throw n.validationCache.set(o,{status:P,error:e}),e})).finally((function(){n.validationRequests.delete(o)}));return this.validationRequests.set(o,c),c}},{key:"fetchChecklist",value:function(e){var t=this,n=this.fetchCache.get(e);if(n)return n.status===A?Promise.resolve(JSON.parse(JSON.stringify(n.data))):Promise.reject(n.error);if(this.fetchRequests.has(e))return this.fetchRequests.get(e).then((function(e){return JSON.parse(JSON.stringify(e))}));var o=this._getApiUrl();if(!o){var r=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.fetchCache.set(e,{status:P,error:r}),Promise.reject(r)}var i="".concat(o,"/outbound/checklists/").concat(e,"?convertTipTap=true&").concat(this._getQueryParams()),a=this._makeRequest("GET",i,null).then((function(n){if(n)return t.fetchCache.set(e,{status:A,data:n}),JSON.parse(JSON.stringify(n));var o=new Error("Empty response received for checklist fetch.");throw t.fetchCache.set(e,{status:P,error:n||o}),o})).catch((function(n){throw t.fetchCache.set(e,{status:P,error:n}),n})).finally((function(){t.fetchRequests.delete(e)}));return this.fetchRequests.set(e,a),a.then((function(e){return JSON.parse(JSON.stringify(e))}))}}])&&E(t.prototype,n),o&&E(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();O(R,"instance",null);const N=R,D=Math.min,j=Math.max,F=Math.round,_=Math.floor,B=e=>({x:e,y:e}),H={left:"right",right:"left",bottom:"top",top:"bottom"},q={start:"end",end:"start"};function U(e,t,n){return j(e,D(t,n))}function z(e,t){return"function"==typeof e?e(t):e}function W(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function V(e){return"x"===e?"y":"x"}function K(e){return"y"===e?"height":"width"}function X(e){return["top","bottom"].includes(W(e))?"y":"x"}function Z(e){return V(X(e))}function Y(e){return e.replace(/start|end/g,(e=>q[e]))}function J(e){return e.replace(/left|right|bottom|top/g,(e=>H[e]))}function Q(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ee(e,t,n){let{reference:o,floating:r}=e;const i=X(t),a=Z(t),s=K(a),c=W(t),l="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(c){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(G(t)){case"start":f[a]-=p*(n&&l?-1:1);break;case"end":f[a]+=p*(n&&l?-1:1)}return f}async function te(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=z(t,e),h=Q(f),v=s[p?"floating"===d?"reference":"floating":d],g=$(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),m="floating"===d?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=$(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:b,strategy:c}):m);return{top:(g.top-w.top+h.top)/y.y,bottom:(w.bottom-g.bottom+h.bottom)/y.y,left:(g.left-w.left+h.left)/y.x,right:(w.right-g.right+h.right)/y.x}}const ne=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=W(n),s=G(n),c="y"===X(n),l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=z(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),c?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}};function oe(e){return ae(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ie(e){var t;return null==(t=(ae(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ae(e){return e instanceof Node||e instanceof re(e).Node}function se(e){return e instanceof Element||e instanceof re(e).Element}function ce(e){return e instanceof HTMLElement||e instanceof re(e).HTMLElement}function le(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof re(e).ShadowRoot)}function ue(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function de(e){return["table","td","th"].includes(oe(e))}function pe(e){const t=fe(),n=ve(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function fe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function he(e){return["html","body","#document"].includes(oe(e))}function ve(e){return re(e).getComputedStyle(e)}function ge(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(e){if("html"===oe(e))return e;const t=e.assignedSlot||e.parentNode||le(e)&&e.host||ie(e);return le(t)?t.host:t}function be(e){const t=me(e);return he(t)?e.ownerDocument?e.ownerDocument.body:e.body:ce(t)&&ue(t)?t:be(t)}function ye(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=be(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=re(r);return i?t.concat(a,a.visualViewport||[],ue(r)?r:[],a.frameElement&&n?ye(a.frameElement):[]):t.concat(r,ye(r,[],n))}function we(e){const t=ve(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ce(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=F(n)!==i||F(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function ke(e){return se(e)?e:e.contextElement}function xe(e){const t=ke(e);if(!ce(t))return B(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=we(t);let a=(i?F(n.width):n.width)/o,s=(i?F(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Se=B(0);function Ce(e){const t=re(e);return fe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Se}function Ie(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=ke(e);let a=B(1);t&&(o?se(o)&&(a=xe(o)):a=xe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==re(e))&&t}(i,n,o)?Ce(i):B(0);let c=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=re(i),t=o&&se(o)?re(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=xe(r),t=r.getBoundingClientRect(),o=ve(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=a,n=re(r),r=n.frameElement}}return $({width:u,height:d,x:c,y:l})}const Le=[":popover-open",":modal"];function Te(e){return Le.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function Ee(e){return Ie(ie(e)).left+ge(e).scrollLeft}function Oe(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=re(e),o=ie(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;const e=fe();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=ie(e),n=ge(e),o=e.ownerDocument.body,r=j(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=j(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Ee(e);const s=-n.scrollTop;return"rtl"===ve(o).direction&&(a+=j(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(ie(e));else if(se(t))o=function(e,t){const n=Ie(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=ce(e)?xe(e):B(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Ce(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return $(o)}function Me(e,t){const n=me(e);return!(n===t||!se(n)||he(n))&&("fixed"===ve(n).position||Me(n,t))}function Ae(e,t,n){const o=ce(t),r=ie(t),i="fixed"===n,a=Ie(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=B(0);if(o||!o&&!i)if(("body"!==oe(t)||ue(r))&&(s=ge(t)),o){const e=Ie(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=Ee(r));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Pe(e,t){return ce(e)&&"fixed"!==ve(e).position?t?t(e):e.offsetParent:null}function Re(e,t){const n=re(e);if(!ce(e)||Te(e))return n;let o=Pe(e,t);for(;o&&de(o)&&"static"===ve(o).position;)o=Pe(o,t);return o&&("html"===oe(o)||"body"===oe(o)&&"static"===ve(o).position&&!pe(o))?n:o||function(e){let t=me(e);for(;ce(t)&&!he(t);){if(pe(t))return t;t=me(t)}return null}(e)||n}const Ne={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=ie(o),s=!!t&&Te(t.floating);if(o===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=B(1);const u=B(0),d=ce(o);if((d||!d&&!i)&&(("body"!==oe(o)||ue(a))&&(c=ge(o)),ce(o))){const e=Ie(o);l=xe(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:ie,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=ye(e,[],!1).filter((e=>se(e)&&"body"!==oe(e))),r=null;const i="fixed"===ve(e).position;let a=i?me(e):e;for(;se(a)&&!he(a);){const t=ve(a),n=pe(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||ue(a)&&!n&&Me(e,a))?o=o.filter((e=>e!==a)):r=t,a=me(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=Oe(t,n,r);return e.top=j(o.top,e.top),e.right=D(o.right,e.right),e.bottom=D(o.bottom,e.bottom),e.left=j(o.left,e.left),e}),Oe(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Re,getElementRects:async function(e){const t=this.getOffsetParent||Re,n=this.getDimensions;return{reference:Ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=we(e);return{width:t,height:n}},getScale:xe,isElement:se,isRTL:function(e){return"rtl"===ve(e).direction}};function De(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=ke(e),u=r||i?[...l?ye(l):[],...ye(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,o=null;const r=ie(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-_(u)+"px "+-_(r.clientWidth-(l+d))+"px "+-_(r.clientHeight-(u+p))+"px "+-_(l)+"px",threshold:j(0,D(1,c))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(v,{...f,root:r.ownerDocument})}catch(g){o=new IntersectionObserver(v,f)}o.observe(e)}(!0),i}(l,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!c&&h.observe(l),h.observe(t));let v=c?Ie(e):null;return c&&function t(){const o=Ie(e);!v||o.x===v.x&&o.y===v.y&&o.width===v.width&&o.height===v.height||n();v=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const je=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=z(e,t),l={x:n,y:o},u=await te(t,c),d=X(W(r)),p=V(d);let f=l[p],h=l[d];if(i){const e="y"===p?"bottom":"right";f=U(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=U(h+u["y"===d?"top":"left"],h,h-u[e])}const v=s.fn({...t,[p]:f,[d]:h});return{...v,data:{x:v.x-n,y:v.y-o}}}}},Fe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=z(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=W(r),b=W(s)===s,y=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=p||(b||!v?[J(s)]:function(e){const t=J(e);return[Y(e),t,Y(t)]}(s));p||"none"===h||w.push(...function(e,t,n,o){const r=G(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(W(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(Y)))),i}(s,v,h,y));const k=[s,...w],x=await te(t,g),S=[];let C=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&S.push(x[m]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=G(e),r=Z(e),i=K(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=J(a)),[a,J(a)]}(r,a,y);S.push(x[e[0]],x[e[1]])}if(C=[...C,{placement:r,overflows:S}],!S.every((e=>e<=0))){var I,L;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(L=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},_e=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=z(e,t)||{};if(null==l)return{};const d=Q(u),p={x:n,y:o},f=Z(r),h=K(f),v=await a.getDimensions(l),g="y"===f,m=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[f]-p[f]-i.floating[h],k=p[f]-i.reference[f],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=x?x[y]:0;S&&await(null==a.isElement?void 0:a.isElement(x))||(S=s.floating[y]||i.floating[h]);const C=w/2-k/2,I=S/2-v[h]/2-1,L=D(d[m],I),T=D(d[b],I),E=L,O=S-v[h]-T,M=S/2-v[h]/2+C,A=U(E,M,O),P=!c.arrow&&null!=G(r)&&M!==A&&i.reference[h]/2-(M{const o=new Map,r={platform:Ne,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=ee(l,o,c),p=o,f={},h=0;for(let v=0;ve.length)&&(t=e.length);for(var n=0,o=new Array(t);n'):""),i.appendChild(a),t.repositionHotspot(e,n),r=a,t.elementToTooltipMap.set(e,n)}else r=e;var s=t.createTooltip(r,n.html,n);t.elementToFloatingUIMap.set(e,s)}}})),We(this,"updateFilteredTooltips",(function(){t.filteredTooltips=t.getFilteredTooltips(),t.checkForTooltips()})),We(this,"getFilteredTooltips",(function(){if(!t.tooltips)return[];var e=window.location.href;return t.tooltips.filter((function(t){if(!t.page||0===t.page.length)return!0;var n=t.pageType,o=t.page;switch(n){case"is":return e===o;case"isnot":return e!==o;case"contains":return e.includes(o);case"notcontains":return!e.includes(o);case"startswith":return e.startsWith(o);case"endswith":return e.endsWith(o);default:return!1}}))})),We(this,"checkForTooltips",(function(){for(var e=0;e0&&this.filteredTooltips.forEach((function(n){n.selector&&e.matches(n.selector)&&t.linkTooltip(e,n)}))}},{key:"start",value:function(){var e=this,t=this;if(window){var n,o,r,i=(n=t.updateHotspotPositions.bind(t),o=250,r=null,function(){if(!r){var e=this,t=arguments;r=setTimeout((function(){n.call.apply(n,[e].concat(qe(t))),r=null}),o)}});window.addEventListener("resize",i),window.requestAnimationFrame((function(){e.observer=new MutationObserver((function(n){t.lastUrl!==window.location.href&&(t.lastUrl=window.location.href,t.filteredTooltips=t.getFilteredTooltips()),n.forEach((function(n){n.addedNodes.forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&t.processNodeInsertion(e)})),n.removedNodes.forEach((function(t){if(t.nodeType===Node.ELEMENT_NODE&&e.elementToFloatingUIMap.has(t)){var n=e.elementToFloatingUIMap.get(t);n&&(n.tooltip&&n.tooltip.remove(),n.cleanup(),e.elementToFloatingUIMap.delete(t))}e.elementToTooltipMap.has(t)&&e.elementToTooltipMap.delete(t)}))}))})),e.observer.observe(document.body,{childList:!0,subtree:!0})}))}}},{key:"updateHotspotPositions",value:function(){var e=this;document.querySelectorAll("[data-gleap-tooltip-mode='hotspot']").forEach((function(t){var n=e.elementToTooltipMap.get(t);n&&e.repositionHotspot(t,n)}))}},{key:"createTooltip",value:function(e,t,n){var o=document.createElement("div");o.className="gleap-tooltip",o.innerHTML='
\n '.concat(t,'\n
\n \n \n \n
\n
'),document.body.appendChild(o);var r,i=o.querySelector(".gleap-tooltip-arrow"),a=De(e,o,(function(){Be(e,o,{placement:"left"===n.posX?"left":"right",middleware:[ne(10),Fe(),je(),_e({element:i})]}).then((function(e){var t=e.x,n=e.y,r=e.middlewareData,a=e.placement;try{if(Object.assign(o.style,{left:"".concat(t,"px"),top:"".concat(n,"px")}),r.arrow){var s={left:"",top:"",transform:""};null!=r.arrow.x&&(s.left="".concat(r.arrow.x,"px"),"bottom"===a?(s.transform="translateY(-7px) rotate(180deg)",s.top="".concat(-20,"px")):"top"===a&&(s.transform="translateY(7px) rotate(0deg)",s.top="100%")),null!=r.arrow.y&&(s.top="".concat(r.arrow.y,"px"),"right"===a?(s.transform="translateX(-7px) rotate(90deg)",s.left="".concat(-20,"px")):"left"===a&&(s.transform="translateX(7px) rotate(270deg)",s.left="100%")),Object.assign(i.style,s)}}catch(c){}}))}));function s(){clearTimeout(r),o.style.visibility="visible",o.style.opacity="1",o.style.pointerEvents="auto"}function c(){r=setTimeout((function(){o.style.opacity="0",setTimeout((function(){o.style.visibility="hidden",o.style.pointerEvents="none"}),200)}),500)}return e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",c),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c),{cleanup:a,tooltip:o}}},{key:"canEmbed",value:function(e){var t=new Set(["area","base","br","embed","hr","img","input","source","track","wbr","canvas"]);return e&&!t.has(e.tagName.toLowerCase())}},{key:"destroy",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),document.querySelectorAll(".gleap-tooltip").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-anchor]").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-hotspot]").forEach((function(e){return e.remove()})),this.elementToFloatingUIMap=new WeakMap,this.elementToTooltipMap=new WeakMap,this.tooltips=[],this.filteredTooltips=[]}},{key:"repositionHotspot",value:function(e,t){if(e&&t){var n=e.getAttribute("data-gleap-tooltip");if(n){var o=document.querySelector('[data-gleap-tooltip-hotspot="'.concat(n,'"]'));if(o){t.posX||(t.posX="right"),t.posY||(t.posY="center"),t.offsetX||(t.offsetX=4),t.offsetY||(t.offsetY=0);var r=e.getBoundingClientRect();try{var i=document.createRange();i.selectNodeContents(e);var a=window.getComputedStyle(e),s=i.getBoundingClientRect().width+parseFloat(a.paddingLeft);s0&&void 0!==arguments[0]?arguments[0]:0,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash));try{I("session-".concat(t.sdkKey),null)}catch(r){}if(t.useCookies)try{!function(e){try{var t=S(window.location.host.split(":")[0]);document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Domain="+t}catch(r){}}("session-".concat(t.sdkKey))}catch(r){}if(t.ready=!1,t.session={gleapId:null,gleapHash:null,name:"",email:"",userId:"",phone:"",value:0},Gt.getInstance().sendMessage({name:"session-cleared"},!0),Ao.getInstance().clearAllNotifications(!1),Ao.getInstance().setNotificationCount(0),_o.getInstance().removeBannerUI(),Go.getInstance().hideModal(),n&&!isNaN(e)){var o=10*Math.pow(e,2);setTimeout((function(){t.startSession(e+1)}),1e3*o)}})),Je(this,"validateSession",(function(e){var n;if(e&&e.gleapId){var o=!1;(null===(n=t.session)||void 0===n?void 0:n.gleapId)!==(null==e?void 0:e.gleapId)&&(o=!0),t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),I("session-".concat(t.sdkKey),e),t.useCookies&&function(e,t,n){try{var o="";if(n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),o="; expires="+r.toUTCString()}var i=S(window.location.host.split(":")[0]);document.cookie=e+"="+(t||"")+o+"; path=/; domain="+i}catch(a){}}("session-".concat(t.sdkKey),encodeURIComponent(JSON.stringify(e)),365),t.session=e,t.ready=!0,t.session&&t.session.gleapHash&&kn.notifyEvent("register-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),o&&(setTimeout((function(){N.getInstance().clearCache(),rt.getInstance().restart();var e=Ve.getInstance();if(e){try{e.destroy()}catch(t){}e.load()}}),0),"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("session-updated"))),t.notifySessionReady()}})),Je(this,"startSession",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{if(t.useCookies){var n=function(e){try{for(var t=e+"=",n=document.cookie.split(";"),o=0;o0)){var r=C("session-".concat(t.sdkKey));r&&t.validateSession(r)}var i=t,a=new XMLHttpRequest;a.open("POST",i.apiUrl+"/sessions"),a.setRequestHeader("Content-Type","application/json;charset=UTF-8"),a.setRequestHeader("Api-Token",i.sdkKey);try{t.session&&t.session.gleapId&&t.session.gleapHash&&(a.setRequestHeader("Gleap-Id",t.session.gleapId),a.setRequestHeader("Gleap-Hash",t.session.gleapHash))}catch(s){}a.onreadystatechange=function(t){if(4===a.readyState)if(200===a.status||201===a.status)try{var n=JSON.parse(a.responseText);i.validateSession(n)}catch(s){}else 429!==a.status&&i.clearSession(e,!0)},a.send(JSON.stringify({lang:go.getInstance().getActiveLanguage()}))})),Je(this,"checkIfSessionNeedsUpdate",(function(e,n){if(!t.session||!t.session.userId||!e)return!0;try{if(t.session.userId.toString()!==e.toString())return!0}catch(o){}return t.checkIfSessionDataNeedsUpdate(n)})),Je(this,"checkIfSessionDataNeedsUpdate",(function(e){if(e)for(var n=Object.keys(e),o=0;o0)for(var e=0;e2)&&0!==t.streamedEventArray.length&&t.socket&&t.socket.readyState===t.socket.OPEN){var e=t;t.streamingEvents=!0;var n=new XMLHttpRequest;n.open("POST",$e.getInstance().apiUrl+"/sessions/ping"),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),$e.getInstance().injectSession(n),n.onerror=function(){e.errorCount++,e.streamingEvents=!1},n.onreadystatechange=function(t){4===n.readyState&&(200===n.status||201===n.status?e.errorCount=0:e.errorCount++,e.streamingEvents=!1)};var o=Yt.getInstance().getSessionDuration();n.send(JSON.stringify({time:o,events:t.streamedEventArray,opened:Gt.getInstance().isOpened(),type:"js",sdkVersion:"14.6.2",ws:!0})),t.streamedEventArray=[]}})),this.handleOpenBound=this.handleOpen.bind(this),this.handleErrorBound=this.handleError.bind(this),this.handleMessageBound=this.handleMessage.bind(this),this.handleCloseBound=this.handleClose.bind(this)}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"cleanupWebSocket",value:function(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null),this.pingWS&&clearInterval(this.pingWS),this.socket&&(this.socket.removeEventListener("open",this.handleOpenBound),this.socket.removeEventListener("error",this.handleErrorBound),this.socket.removeEventListener("message",this.handleMessageBound),this.socket.removeEventListener("close",this.handleCloseBound),this.socket.close(),this.socket=null)}},{key:"initWebSocket",value:function(){this.cleanupWebSocket(),this.connectedWebSocketGleapId=$e.getInstance().session.gleapId,$e.getInstance().session&&$e.getInstance().sdkKey&&(this.socket=new WebSocket("".concat($e.getInstance().wsApiUrl,"?gleapId=").concat($e.getInstance().session.gleapId,"&gleapHash=").concat($e.getInstance().session.gleapHash,"&apiKey=").concat($e.getInstance().sdkKey,"&sdkVersion=").concat("14.6.2")),this.socket.addEventListener("open",this.handleOpenBound),this.socket.addEventListener("message",this.handleMessageBound),this.socket.addEventListener("error",this.handleErrorBound),this.socket.addEventListener("close",this.handleCloseBound))}},{key:"handleOpen",value:function(e){var t=this;this.pingWS=setInterval((function(){t.socket.readyState===t.socket.OPEN&&(t.socket.send("PING"),t.socket.send(9))}),1e4),this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null)}},{key:"handleMessage",value:function(e){this.processMessage(JSON.parse(e.data))}},{key:"handleError",value:function(e){}},{key:"handleClose",value:function(e){var t=this;setTimeout((function(){t.initWebSocket()}),5e3)}},{key:"processMessage",value:function(e){try{if("update"===e.name){var t=e.data,n=t.a,o=t.u;Gt.getInstance().isOpened()||(n&&ki.getInstance().performActions(n),null!=o&&Ao.getInstance().setNotificationCount(o))}"checklist"===e.name&&null!=e&&e.data&&window&&"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("checkListUpdate",{detail:e.data}))}catch(r){}}},{key:"getEventArray",value:function(){return this.eventArray}},{key:"stop",value:function(){this.cleanupMainLoop()}},{key:"resetErrorCountLoop",value:function(){var e=this;setInterval((function(){e.errorCount=0}),6e4)}},{key:"cleanupMainLoop",value:function(){this.mainLoopTimeout&&(clearInterval(this.mainLoopTimeout),this.mainLoopTimeout=null)}},{key:"restart",value:function(){this.connectedWebSocketGleapId!==$e.getInstance().session.gleapId&&this.initWebSocket(),this.cleanupMainLoop(),this.trackInitialEvents(),this.runEventStreamLoop()}},{key:"start",value:function(){this.startPageListener(),this.resetErrorCountLoop()}},{key:"trackInitialEvents",value:function(){e.getInstance().logEvent("sessionStarted"),e.getInstance().logCurrentPage()}},{key:"logCurrentPage",value:function(){if(!ki.getInstance().disablePageTracking){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.logEvent("pageView",{page:e}))}}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"logEvent",value:function(e,t){var n={name:e,date:new Date};t&&(n.data=k(t)),this.eventArray.push(n),this.streamedEventArray.push(n),this.eventArray.length>this.eventMaxLength&&this.eventArray.shift(),this.streamedEventArray.length>this.eventMaxLength&&this.streamedEventArray.shift()}}])&&tt(t.prototype,n),o&&tt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function at(e,t){for(var n=0;n0)for(var e=0;e=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function ft(e,t,n,o,r,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(o,r)}function ht(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ft(i,o,r,a,s,"next",e)}function s(e){ft(i,o,r,a,s,"throw",e)}a(void 0)}))}}var vt=function(e){var t="",n=window.document.doctype;if(n&&(t=""),e&&e.childNodes&&e.childNodes.length>0)for(var o=0;o1?t-1:0),r=1;r0||t.scrollLeft>0)&&(s.setAttribute("bb-scrollpos",!0),s.setAttribute("bb-scrolltop",t.scrollTop),s.setAttribute("bb-scrollleft",t.scrollLeft)),"SELECT"!==d&&"TEXTAREA"!==d&&"INPUT"!==d||(f=t.value,("value"===t.getAttribute("gleap-ignore")||t.classList.contains("gl-mask"))&&(f=new Array(f.length+1).join("*")),s.setAttribute("bb-data-value",f),"checkbox"!==t.type&&"radio"!==t.type||!t.checked||s.setAttribute("bb-data-checked",!0))),r.appendChild(s),!t.shadowRoot){e.next=29;break}return h=n,n++,e.next=27,a(t.shadowRoot.firstChild,s,h);case 27:St(t.shadowRoot,s,h),void 0!==s.setAttribute&&s.setAttribute("bb-shadow-parent",h);case 29:return e.next=31,a(t.firstChild,s);case 31:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(t,n,o){return e.apply(this,arguments)}}(),r=document.createDocumentFragment(),e.next=5,o(t,r);case 5:return(i=r.querySelector("head"))||(i=r),St(window.document,i),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Lt=function(e){return new Promise(function(){var t=ht(pt().mark((function t(n,o){var r,i,a,s,c,l,u,d,p,f,h,v,g,m,b;return pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r=window.document.querySelectorAll("style, link"),i=0;i0){for(l=c.childNodes;l.length>0;)c.parentNode.insertBefore(l[0],c);c.remove()}for(u=a.querySelectorAll("script, noscript"),i=0;i0?r.innerHTML=n.formatTime(e):(r.innerHTML="2:00",n.stopScreenRecording())}),1e3),this.mediaRecorder.ondataavailable=function(e){e.data.size>0&&o.push(e.data)},t.getVideoTracks()[0].onended=function(){n.prepareRecording(o)},this.mediaRecorder.onstop=function(){n.prepareRecording(o)},this.mediaRecorder.start(200),n.rerender()})),Ot(this,"prepareRecording",(function(e){var t=new Blob(e,{type:this.getSupportedMimeType()}),n=this.getSupportedMimeType(),o=n.includes("mp4")?"mp4":"webm";this.file=new File([t],"screen-recording.".concat(o),{type:n});var r=document.querySelector(".bb-capture-preview video");r&&(r.src=URL.createObjectURL(t),this.audioAvailable=!0,this.isRecording=!1,this.rerender())})),this.rerender=t,this.permissionErrorText=n,navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia||(this.available=!1),setTimeout((function(){o.rerender()}),100)}var t,n,o;return t=e,(n=[{key:"getSupportedMimeType",value:function(){for(var e=0,t=["video/webm","audio/webm","video/webm;codecs=vp8","video/webm;codecs=daala","video/webm;codecs=h264","audio/webm;codecs=opus","video/mp4"];e0&&(e.tags=t),this.excludeData)for(var n=Object.keys(this.excludeData),o=0;oe.length)&&(t=e.length);for(var n=0,o=new Array(t);n0)if(t){var n=window.open(e,"_blank");!n||n.closed||void 0===n.closed?window.location.href=e:n.focus()}else window.location.href=e})),zt(this,"autoWhiteListCookieManager",(function(){window&&window.cmp_block_ignoredomains&&window.cmp_block_ignoredomains.concat(["messenger-app.gleap.io"])})),zt(this,"injectFrame",(function(){t.injectedFrame||(t.injectedFrame=!0,t.autoWhiteListCookieManager(),L((function(){ut.getInstance().onConfigLoaded((function(){ut.getInstance().applyStylesFromConfig();var e=document.createElement("div");e.className="gleap-frame-container gleap-frame-container--hidden gl-block",e.innerHTML='
'),document.body.appendChild(e),t.gleapFrameContainer=e,t.gleapFrame=document.querySelector(".gleap-frame"),t.updateFrameStyle(),"widget"===t.appMode&&t.showFrameContainer(!0)}))})))})),zt(this,"showImage",(function(e){L((function(){var t=document.createElement("div");t.className="gleap-image-view",t.innerHTML='
\n \n
'),document.body.appendChild(t);var n=function(){t.remove()};t.querySelector(".gleap-image-view-close").addEventListener("click",(function(){n()})),t.addEventListener("click",(function(e){e.target===t&&n()}))}))})),zt(this,"updateFrameStyle",(function(){if(t.gleapFrameContainer){for(var e="gleap-frame-container--survey",n="gleap-frame-container--extended",o="gleap-frame-container--survey-full",r="gleap-frame-container--classic",i="gleap-frame-container--classic-left",s="gleap-frame-container--modern-left",c="gleap-frame-container--no-button",l=[r,i,n,s,c,e,o],u=0;u1&&void 0!==arguments[1]&&arguments[1];try{this.gleapFrame=document.querySelector(".gleap-frame"),this.comReady&&this.gleapFrame&&this.gleapFrame.contentWindow?this.gleapFrame.contentWindow.postMessage(JSON.stringify(e),"*"):t&&this.queue.push(e)}catch(n){}}},{key:"sendSessionUpdate",value:function(){this.sendMessage({name:"session-update",data:{sessionData:$e.getInstance().getSession(),apiUrl:$e.getInstance().apiUrl,sdkKey:$e.getInstance().sdkKey}})}},{key:"sendConfigUpdate",value:function(){this.sendMessage({name:"config-update",data:{config:ut.getInstance().getFlowConfig(),aiTools:ut.getInstance().getAiTools(),overrideLanguage:go.getInstance().getOverrideLanguage()}}),this.updateFrameStyle()}},{key:"showDrawingScreen",value:function(e){var t=this;this.hideWidget(),this.markerManager=new uo(e),this.markerManager.show((function(e){e||t.hideMarkerManager(),t.showWidget()}))}},{key:"workThroughQueue",value:function(){var e=Ht(this.queue);this.queue=[];for(var t=0;t0&&(n.tags=o),e.sendMessage({name:"collect-ticket-data",data:n})}if("height-update"===t.name){e.frameHeight=t.data;var r=document.querySelector(".gleap-frame-container-inner");"survey"!==e.appMode&&"survey_full"!==e.appMode&&"survey_web"!==e.appMode||!r||(r.style.maxHeight="".concat(e.frameHeight,"px"))}if("notify-event"===t.name&&kn.notifyEvent(t.data.type,t.data.data),"cleanup-drawings"===t.name&&e.hideMarkerManager(),"open-url"===t.name){var i=t.data,a=!!t.newTab;e.urlHandler(i,a)}if("run-custom-action"===t.name&&En.triggerCustomAction(t.data,{shareToken:t.shareToken}),"close-widget"===t.name&&e.hideWidget(),"tool-execution"===t.name&&kn.notifyEvent("tool-execution",t.data),"send-feedback"===t.name){var s=t.data.formData,c=t.data.action,l=t.data.outboundId,u=t.data.spamToken;new _t(c.feedbackType,"MEDIUM",s,!1,c.excludeData,l,u).sendFeedback().then((function(t){if(e.sendMessage({name:"feedback-sent",data:t}),kn.notifyEvent("feedback-sent",s),l&&l.length>0){kn.notifyEvent("outbound-sent",{outboundId:l,outbound:c,formData:s});try{delete s.reportedBy}catch(n){}ki.trackEvent("outbound-".concat(l,"-submitted"),s)}})).catch((function(t){e.sendMessage({name:"feedback-sending-failed",data:"Something went wrong, please try again."}),kn.notifyEvent("error-while-sending")}))}"start-screen-drawing"===t.name&&e.showDrawingScreen(t.data)})),window.addEventListener("message",(function(t){if(t.origin===e.frameUrl||t.origin===_o.getInstance().bannerUrl)try{for(var n=JSON.parse(t.data),o=0;o1&&void 0!==arguments[1]?arguments[1]:"INFO";!e||e.length<=0||(this.logArray.push({log:x(e,1e3),date:new Date,priority:t}),this.logArray.length>this.logMaxLength&&this.logArray.shift())}},{key:"addLogWithArgs",value:function(e,t){if(e&&!(e.length<=0)){var n="";try{for(var o=0;o1&&void 0!==arguments[1])||arguments[1],n=x(e.innerText||"",40).replace(/(\r\n|\n|\r)/gm,"").replace(/ +(?= )/g,""),o="",r="";if(void 0!==e.getAttribute){var i=e.getAttribute("id");i&&(o=' id="'.concat(i,'"'));var a=e.getAttribute("class");a&&(r=' class="'.concat(a,'"'))}var s=(e.tagName||"").toLowerCase(),c="<",l=">";return t||(c="[",l="]"),"".concat(c).concat(s).concat(o).concat(r).concat(l).concat(n).concat(c,"/").concat(s).concat(l)}(e.target),"CLICK")}}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&an(t.prototype,n),o&&an(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function pn(e){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pn(e)}function fn(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if("flow-started"===e){var n=ki.getInstance();n.setGlobalDataItem("webReplay",null),n.setGlobalDataItem("screenRecordingData",null),n.takeCurrentReplay()}var o=this.getInstance().eventListeners[e];if(o)for(var r=0;r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||Rn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function An(e){return function(e){if(Array.isArray(e))return Nn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Rn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Rn(e,t){if(e){if("string"==typeof e)return Nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n=0;g--){var m=n.get(g);if(m){var b=t.mirror.getId(m.value.parentNode);if(-1===o(m.value))continue;if(-1!==b){f=m;break}var y=m.value;if(y.parentNode&&y.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=y.parentNode.host;if(-1!==t.mirror.getId(w)){f=m;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),r(f.value)}var k={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){return{id:t.mirror.getId(e.node),attributes:e.attributes}})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:e};!k.texts.length&&!k.attributes.length&&!k.removes.length&&!k.adds.length||(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(k))}},this.processMutation=function(e){if(!Ye(e.target,t.mirror))switch(e.type){case"characterData":var n=e.target.textContent;!Ze(e.target,t.blockClass,t.blockSelector,!1)&&n!==e.oldValue&&t.texts.push({value:Be(e.target,t.maskTextClass,t.maskTextSelector)&&n?t.maskTextFn?t.maskTextFn(n):n.replace(/[\S]/g,"*"):n,node:e.target});break;case"attributes":var o=e.target,r=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(r=Ae({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:r,maskInputFn:t.maskInputFn})),Ze(e.target,t.blockClass,t.blockSelector,!1)||r===e.oldValue)return;var i=t.attributes.find((function(t){return t.node===e.target}));if("IFRAME"===o.tagName&&"src"===e.attributeName&&!t.keepIframeSrcFn(r)){if(o.contentDocument)return;e.attributeName="rr_src"}if(i||(i={node:e.target,attributes:{}},t.attributes.push(i)),"style"===e.attributeName){var a=t.doc.createElement("span");e.oldValue&&a.setAttribute("style",e.oldValue),(void 0===i.attributes.style||null===i.attributes.style)&&(i.attributes.style={});for(var s=i.attributes.style,c=0,l=Array.from(o.style);c0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){if("rrweb"===e.data.type){if(!e.source)return;var t=this.crossOriginIframeMap.get(e.source);if(!t)return;var n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}}},{key:"transformCrossOriginEvent",value:function(e,t){var n,o=this;switch(t.type){case m.FullSnapshot:return this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e),{timestamp:t.timestamp,type:m.IncrementalSnapshot,data:{source:b.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case m.Meta:case m.Load:case m.DomContentLoaded:return!1;case m.Plugin:return t;case m.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case m.IncrementalSnapshot:switch(t.data.source){case b.Mutation:return t.data.adds.forEach((function(t){o.replaceIds(t,e,["parentId","nextId","previousId"]),o.replaceIdOnNode(t.node,e)})),t.data.removes.forEach((function(t){o.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){o.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.Drag:case b.TouchMove:case b.MouseMove:return t.data.positions.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.ViewportResize:return!1;case b.MediaInteraction:case b.MouseInteraction:case b.Scroll:case b.CanvasMutation:case b.Input:return this.replaceIds(t.data,e,["id"]),t;case b.StyleSheetRule:case b.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case b.Font:return t;case b.Selection:return t.data.ranges.forEach((function(t){o.replaceIds(t,e,["start","end"])})),t;case b.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach((function(t){o.replaceStyleIds(t,e,["styleId"])})),t}}}},{key:"replace",value:function(e,t,n,o){var r,i=Pn(o);try{for(i.s();!(r=i.n()).done;){var a=r.value;!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]))}}catch(s){i.e(s)}finally{i.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id"]),"childNodes"in e&&e.childNodes.forEach((function(e){n.replaceIdOnNode(e,t)}))}}]),e}(),W=Object.defineProperty,G=Object.defineProperties,V=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,Y=function(e,t,n){return t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},J=function(e,t){for(var n in t||(t={}))X.call(t,n)&&Y(e,n,t[n]);if(K){var o,r=Pn(K(t));try{for(r.s();!(o=r.n()).done;){n=o.value;Z.call(t,n)&&Y(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Q=function(e,t){return G(e,V(t))},$=function(){function e(t){Dn(this,e),this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var n=this;this.restorePatches.push(Ve(Element.prototype,"attachShadow",(function(e){return function(t){var o=e.call(this,t);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),o}})))}return Fn(e,[{key:"addShadowRoot",value:function(e,t){var n=this;!Ee(e)||this.shadowDoms.has(e)||(this.shadowDoms.add(e),lt(Q(J({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),dt(Q(J({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(e.host)),vt({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e)}),0))}},{key:"observeAttachShadow",value:function(e){if(e.contentWindow){var t=this;this.restorePatches.push(Ve(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(o){var r=n.call(this,o);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}})))}}},{key:"reset",value:function(){this.restorePatches.forEach((function(e){return e()})),this.shadowDoms=new WeakSet}}]),e}(),ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=("undefined"==typeof Uint8Array?"undefined":Bn(Uint8Array))>"u"?[]:new Uint8Array(256),ne=0;ne<64;ne++)te[ee.charCodeAt(ne)]=ne;var oe,re,ie,ae=new Map,se=function(e,t,n){if(e&&(le(e,t)||"object"==Bn(e))){var o=function(e,t){var n=ae.get(e);return n||(n=new Map,ae.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name),r=o.indexOf(e);return-1===r&&(r=o.length,o.push(e)),r}},ce=function(e,t,n){return An(e).map((function(e){return mt(e,t,n)}))},le=function(e,t){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(n.find((function(n){return e instanceof t[n]})))},ue=function(e,t,n){var o;return function(r){return o=o||wt(e,t,n),new Worker(o,r)}}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixwPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylwW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgdT1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCxsPW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gdihzLGUsbil7Y29uc3QgYT1gJHtzfS0ke2V9YDtpZigiT2Zmc2NyZWVuQ2FudmFzImluIGdsb2JhbFRoaXMpe2lmKGwuaGFzKGEpKXJldHVybiBsLmdldChhKTtjb25zdCB0PW5ldyBPZmZzY3JlZW5DYW52YXMocyxlKTt0LmdldENvbnRleHQoIjJkIik7Y29uc3QgZz1hd2FpdChhd2FpdCB0LmNvbnZlcnRUb0Jsb2IobikpLmFycmF5QnVmZmVyKCksZD11KGcpO3JldHVybiBsLnNldChhLGQpLGR9ZWxzZSByZXR1cm4iIn1jb25zdCBpPXNlbGY7aS5vbm1lc3NhZ2U9YXN5bmMgZnVuY3Rpb24ocyl7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtjb25zdHtpZDplLGJpdG1hcDpuLHdpZHRoOmEsaGVpZ2h0OnQsZGF0YVVSTE9wdGlvbnM6Z309cy5kYXRhLGQ9dihhLHQsZyksaD1uZXcgT2Zmc2NyZWVuQ2FudmFzKGEsdCk7aC5nZXRDb250ZXh0KCIyZCIpLmRyYXdJbWFnZShuLDAsMCksbi5jbG9zZSgpO2NvbnN0IHc9YXdhaXQgaC5jb252ZXJ0VG9CbG9iKGcpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89dShiKTtpZighYy5oYXMoZSkmJmF3YWl0IGQ9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX1lbHNlIHJldHVybiBpLnBvc3RNZXNzYWdlKHtpZDpzLmRhdGEuaWR9KX19KSgpOwoK",null,!1),de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,he=function(){function e(t){var n=this;Dn(this,e),this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(e)||n.pendingCanvasMutations.set(e,[]),n.pendingCanvasMutations.get(e).push(t)};var o=t.sampling,r=void 0===o?"all":o,i=t.win,a=t.blockClass,s=t.blockSelector,c=t.recordCanvas,l=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&"all"===r&&this.initCanvasMutationObserver(i,a,s),c&&"number"==typeof r&&this.initCanvasFPSObserver(r,i,a,s,{dataURLOptions:l})}return Fn(e,[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,t,n,o,r){var i=this,a=bt(t,n,o),s=new Map,c=new ue;c.onmessage=function(e){var t=e.data.id;if(s.set(t,!1),"base64"in e.data){var n=e.data,o=n.base64,r=n.type,a=n.width,c=n.height;i.mutationCb({id:t,type:w["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:r}]},0,0]}]})}};var l,u=1e3/e,d=0;l=requestAnimationFrame((function e(a){d&&a-d0&&(o.styles=r),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}(),ge=Object.defineProperty,me=Object.defineProperties,be=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,xe=function(e,t,n){return t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Se=function(e,t){for(var n in t||(t={}))we.call(t,n)&&xe(e,n,t[n]);if(ye){var o,r=Pn(ye(t));try{for(r.s();!(o=r.n()).done;){n=o.value;ke.call(t,n)&&xe(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Ce=function(e,t){return me(e,be(t))},Ie=!1,Le=new r;return xt.addCustomEvent=function(e,t){if(!Ie)throw new Error("please add custom event after start recording");oe(kt({type:m.Custom,data:{tag:e,payload:t}}))},xt.freezePage=function(){D.forEach((function(e){return e.freeze()}))},xt.takeFullSnapshot=function(e){if(!Ie)throw new Error("please take full snapshot after start recording");re(e)},xt.mirror=Le,xt}function Te(e){var t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function Ee(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Oe(e){try{var t=e.rules||e.cssRules;return t?function(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}(Array.from(t).map(Me).join("")):null}catch(n){return null}}function Me(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=Oe(e.styleSheet)||t}catch(n){}return t}function Ae(e){var t=e.maskInputOptions,n=e.tagName,o=e.type,r=e.value,i=e.maskInputFn,a=r||"";return(t[n.toLowerCase()]||t[o])&&(a=i?i(a):"*".repeat(a.length)),a}function Pe(){return a++}function Re(e,t){return(e||"").replace(l,(function(e,n,o,r,i,a){var s=o||i||a,c=n||r||"";if(!s)return e;if(!u.test(s)||d.test(s))return"url(".concat(c).concat(s).concat(c,")");if("/"===s[0])return"url(".concat(c).concat(function(e){return(e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(t)+s).concat(c,")");var l=t.split("/"),p=s.split("/");l.pop();for(var f=0,h=p;f=t.length);){var i=o(p);if(","===i.slice(-1))i=Ne(e,i.substring(0,i.length-1)),r.push(i);else{var a="";i=Ne(e,i);for(var s=!1;;){var c=t.charAt(n);if(""===c){r.push((i+a).trim());break}if(s)")"===c&&(s=!1);else{if(","===c){n+=1,r.push((i+a).trim());break}"("===c&&(s=!0)}a+=c,n+=1}}}return r.join(", ")}(e,o):"style"===n&&o?Re(o,je()):"object"===t&&"data"===n&&o?Ne(e,o):o}function _e(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&_e(e.parentNode,t,n);for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&_e(e.parentNode,t,n)}function Be(e,t,n){var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(o.classList.contains(t)||o.closest(".".concat(t)))return!0}else if(_e(o,t,!0))return!0;return!(!n||!o.matches(n)&&!o.closest(n))}function He(t,r){var a=r.doc,c=r.mirror,l=r.blockClass,u=r.blockSelector,d=r.maskTextClass,p=r.maskTextSelector,f=r.inlineStylesheet,h=r.maskInputOptions,v=void 0===h?{}:h,g=r.maskTextFn,m=r.maskInputFn,b=r.dataURLOptions,y=void 0===b?{}:b,w=r.inlineImages,k=r.recordCanvas,x=r.keepIframeSrcFn,S=r.newlyAddedElement,C=void 0!==S&&S,I=function(e,t){if(t.hasNode(e)){var n=t.getId(e);return 1===n?void 0:n}}(a,c);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode}:{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:I};case t.ELEMENT_NODE:return function(t,r){for(var a=r.doc,c=r.blockClass,l=r.blockSelector,u=r.inlineStylesheet,d=r.maskInputOptions,p=void 0===d?{}:d,f=r.maskInputFn,h=r.dataURLOptions,v=void 0===h?{}:h,g=r.inlineImages,m=r.recordCanvas,b=r.keepIframeSrcFn,y=r.newlyAddedElement,w=void 0!==y&&y,k=r.rootId,x=function(e,t,n){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&e.matches(n)}(t,c,l),S=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return s.test(t)?"div":t}(t),C={},I=t.attributes.length,L=0;L2&&void 0!==arguments[2]?arguments[2]:document,o={capture:!0,passive:!0};return n.addEventListener(e,t,o),function(){return n.removeEventListener(e,t,o)}}function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,r=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;st?(o&&(clearTimeout(o),o=null),r=c,e.apply(u,a)):!o&&!1!==n.trailing&&(o=setTimeout((function(){r=!1===n.leading?0:Date.now(),o=null,e.apply(u,a)}),l))}}function Ge(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,o?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),i&&i.set&&i.set.call(this,e)}}),function(){return Ge(e,t,i||{},!0)}}function Ve(e,t,n){try{if(!(t in e))return function(){};var o=e[t],r=n(o);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=r,function(){e[t]=o}}catch(i){return function(){}}}function Ke(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ze(e,t,n,o){if(!e)return!1;var r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!r)return!1;if("string"==typeof t){if(r.classList.contains(t)||o&&null!==r.closest("."+t))return!0}else if(_e(r,t,o))return!0;return!(!n||!(e.matches(n)||o&&null!==r.closest(n)))}function Ye(e,t){return t.getId(e)===c}function Je(e,t){if(Te(e))return!1;var n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Je(e.parentNode,t))}function Qe(e){return Boolean(e.changedTouches)}function $e(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function et(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function tt(e){return Boolean(null==e?void 0:e.shadowRoot)}function nt(e){return"__ln"in e}function ot(e,t){e.delete(t),t.childNodes.forEach((function(t){return ot(e,t)}))}function rt(e,t,n){return 0!==e.length&&it(e,t,n)}function it(e,t,n){var o=t.parentNode;if(!o)return!1;var r=n.getId(o);return!!e.some((function(e){return e.id===r}))||it(e,o,n)}function at(e,t){return 0!==e.size&&st(e,t)}function st(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||st(e,n))}function ct(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(n){return e.target}}function lt(e,t){var n,o,r,i=new I;D.push(i),i.init(e);var a=window.MutationObserver||window.__rrMutationObserver,s=null==(r=null==(o=null===(n=window)||void 0===n?void 0:n.Zone)?void 0:o.__symbol__)?void 0:r.call(o,"MutationObserver");s&&window[s]&&(a=window[s]);var c=new a(i.processMutations.bind(i));return c.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),c}function ut(e){var t=e.mouseInteractionCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.sampling;if(!1===a.mouseInteraction)return function(){};var s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];return Object.keys(y).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]})).forEach((function(e){var a=e.toLowerCase(),s=function(e){return function(n){var a=ct(n);if(!Ze(a,r,i,!0)){var s=Qe(n)?n.changedTouches[0]:n;if(s){var c=o.getId(a),l=s.clientX,u=s.clientY;t({type:y[e],id:c,x:l,y:u})}}}}(e);c.push(ze(a,s,n))})),function(){c.forEach((function(e){return e()}))}}function dt(e){var t=e.scrollCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=We((function(e){var a=ct(e);if(a&&!Ze(a,r,i,!0)){var s=o.getId(a);if(a===n){var c=n.scrollingElement||n.documentElement;t({id:s,x:c.scrollLeft,y:c.scrollTop})}else t({id:s,x:a.scrollLeft,y:a.scrollTop})}}),e.sampling.scroll||100);return ze("scroll",a,n)}function pt(e,t){var n=R({},e);return t||delete n.userTriggered,n}function ft(e){return function(e,t){if(j&&e.parentRule instanceof CSSGroupingRule||F&&e.parentRule instanceof CSSMediaRule||_&&e.parentRule instanceof CSSSupportsRule||B&&e.parentRule instanceof CSSConditionRule){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var o=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(o)}return t}(e,[])}function ht(e,t,n){var o,r;return e?(e.ownerNode?o=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:o}):{}}function vt(e,t){var n,o,r,i=e.mirror,a=e.stylesheetManager,s=null;s="#document"===t.nodeName?i.getId(t):i.getId(t.host);var c="#document"===t.nodeName?null==(n=t.defaultView)?void 0:n.Document:null==(r=null==(o=t.ownerDocument)?void 0:o.defaultView)?void 0:r.ShadowRoot,l=Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets");return null!==s&&-1!==s&&c&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var e;return null==(e=l.get)?void 0:e.call(this)},set:function(e){var t,n=null==(t=l.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{a.adoptStyleSheets(e,s)}catch(o){}return n}}),function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}):function(){}}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var n=e.mutationCb,o=e.mousemoveCb,r=e.mouseInteractionCb,i=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,l=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb;e.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),n.apply(void 0,arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),o.apply(void 0,arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),r.apply(void 0,arguments)},e.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),i.apply(void 0,arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),a.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),s.apply(void 0,arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),c.apply(void 0,arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),l.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),u.apply(void 0,arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),d.apply(void 0,arguments)},e.fontCb=function(){t.font&&t.font.apply(t,arguments),p.apply(void 0,arguments)},e.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),f.apply(void 0,arguments)}}(e,t);var o,r=lt(e,e.doc),i=function(e){var t=e.mousemoveCb,n=e.sampling,o=e.doc,r=e.mirror;if(!1===n.mousemove)return function(){};var i,a="number"==typeof n.mousemove?n.mousemove:50,s="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],l=We((function(e){var n=Date.now()-i;t(c.map((function(e){return e.timeOffset-=n,e})),e),c=[],i=null}),s),u=We((function(e){var t=ct(e),n=Qe(e)?e.changedTouches[0]:e,o=n.clientX,a=n.clientY;i||(i=Date.now()),c.push({x:o,y:a,id:r.getId(t),timeOffset:Date.now()-i}),l(("undefined"==typeof DragEvent?"undefined":Bn(DragEvent))<"u"&&e instanceof DragEvent?b.Drag:e instanceof MouseEvent?b.MouseMove:b.TouchMove)}),a,{trailing:!1}),d=[ze("mousemove",u,o),ze("touchmove",u,o),ze("drag",u,o)];return function(){d.forEach((function(e){return e()}))}}(e),a=ut(e),s=dt(e),c=function(e){var t=e.viewportResizeCb,n=-1,o=-1;return ze("resize",We((function(){var e=Ke(),r=Xe();(n!==e||o!==r)&&(t({width:Number(r),height:Number(e)}),n=e,o=r)}),200),window)}(e),l=function(e){var t=e.inputCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.ignoreClass,s=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,u=e.userTriggeredOnInput;function d(e){var t=ct(e),o=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(H.indexOf(t.tagName)<0)&&!Ze(t,r,i,!0)){var l=t.type;if(!t.classList.contains(a)){var d=t.value,f=!1;"radio"===l||"checkbox"===l?f=t.checked:(s[t.tagName.toLowerCase()]||s[l])&&(d=Ae({maskInputOptions:s,tagName:t.tagName,type:l,value:d,maskInputFn:c})),p(t,pt({text:d,isChecked:f,userTriggered:o},u));var h=t.name;"radio"===l&&h&&f&&n.querySelectorAll('input[type="radio"][name="'.concat(h,'"]')).forEach((function(e){e!==t&&p(e,pt({text:e.value,isChecked:!f,userTriggered:!1},u))}))}}}function p(e,n){var r=q.get(e);if(!r||r.text!==n.text||r.isChecked!==n.isChecked){q.set(e,n);var i=o.getId(e);t(N(R({},n),{id:i}))}}var f=("last"===l.input?["change"]:["input","change"]).map((function(e){return ze(e,d,n)})),h=n.defaultView;if(!h)return function(){f.forEach((function(e){return e()}))};var v=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),g=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&f.push.apply(f,An(g.map((function(e){return Ge(e[0],e[1],{set:function(){d({target:this})}},!1,h)})))),function(){f.forEach((function(e){return e()}))}}(e),u=function(e){var t=e.mediaInteractionCb,n=e.blockClass,o=e.blockSelector,r=e.mirror,i=e.sampling,a=function(e){return We((function(i){var a=ct(i);if(a&&!Ze(a,n,o,!0)){var s=a.currentTime,c=a.volume,l=a.muted,u=a.playbackRate;t({type:e,id:r.getId(a),currentTime:s,volume:c,muted:l,playbackRate:u})}}),i.media||500)},s=[ze("play",a(k.Play)),ze("pause",a(k.Pause)),ze("seeked",a(k.Seeked)),ze("volumechange",a(k.VolumeChange)),ze("ratechange",a(k.RateChange))];return function(){s.forEach((function(e){return e()}))}}(e),d=function(e,t){var n=e.styleSheetRuleCb,o=e.mirror,r=e.stylesheetManager,i=t.win,a=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(e,t){var i=ht(this,o,r.styleMirror),s=i.id,c=i.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:t}]}),a.apply(this,[e,t])};var s,c,l=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,removes:[{index:e}]}),l.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replace:e}),s.apply(this,[e])}),i.CSSStyleSheet.prototype.replaceSync&&(c=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replaceSync:e}),c.apply(this,[e])});var u={};j?u.CSSGroupingRule=i.CSSGroupingRule:(F&&(u.CSSMediaRule=i.CSSMediaRule),B&&(u.CSSConditionRule=i.CSSConditionRule),_&&(u.CSSSupportsRule=i.CSSSupportsRule));var d={};return Object.entries(u).forEach((function(e){var t=Mn(e,2),i=t[0],a=t[1];d[i]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=function(e,t){var a=ht(this.parentStyleSheet,o,r.styleMirror),s=a.id,c=a.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:[].concat(An(ft(this)),[t||0])}]}),d[i].insertRule.apply(this,[e,t])},a.prototype.deleteRule=function(e){var t=ht(this.parentStyleSheet,o,r.styleMirror),a=t.id,s=t.styleId;return(a&&-1!==a||s&&-1!==s)&&n({id:a,styleId:s,removes:[{index:[].concat(An(ft(this)),[e])}]}),d[i].deleteRule.apply(this,[e])}})),function(){i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=l,s&&(i.CSSStyleSheet.prototype.replace=s),c&&(i.CSSStyleSheet.prototype.replaceSync=c),Object.entries(u).forEach((function(e){var t=Mn(e,2),n=t[0],o=t[1];o.prototype.insertRule=d[n].insertRule,o.prototype.deleteRule=d[n].deleteRule}))}}(e,{win:n}),p=vt(e,e.doc),f=function(e,t){var n=e.styleDeclarationCb,o=e.mirror,r=e.ignoreCSSAttributes,i=e.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=function(e,t,a){var c;if(r.has(e))return s.apply(this,[e,t,a]);var l=ht(null==(c=this.parentRule)?void 0:c.parentStyleSheet,o,i.styleMirror),u=l.id,d=l.styleId;return(u&&-1!==u||d&&-1!==d)&&n({id:u,styleId:d,set:{property:e,value:t,priority:a},index:ft(this.parentRule)}),s.apply(this,[e,t,a])};var c=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=function(e){var t;if(r.has(e))return c.apply(this,[e]);var a=ht(null==(t=this.parentRule)?void 0:t.parentStyleSheet,o,i.styleMirror),s=a.id,l=a.styleId;return(s&&-1!==s||l&&-1!==l)&&n({id:s,styleId:l,remove:{property:e},index:ft(this.parentRule)}),c.apply(this,[e])},function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=c}}(e,{win:n}),h=e.collectFonts?function(e){var t=e.fontCb,n=e.doc,o=n.defaultView;if(!o)return function(){};var r=[],i=new WeakMap,a=o.FontFace;o.FontFace=function(e,t,n){var o=new a(e,t,n);return i.set(o,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),o};var s=Ve(n.fonts,"add",(function(e){return function(n){return setTimeout((function(){var e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}}));return r.push((function(){o.FontFace=a})),r.push(s),function(){r.forEach((function(e){return e()}))}}(e):function(){},v=function(e){var t=e.doc,n=e.mirror,o=e.blockClass,r=e.blockSelector,i=e.selectionCb,a=!0,s=function(){var e=t.getSelection();if(!(!e||a&&null!=e&&e.isCollapsed)){a=e.isCollapsed||!1;for(var s=[],c=e.rangeCount||0,l=0;l>2],r+=ee[(3&n[t])<<4|n[t+1]>>4],r+=ee[(15&n[t+1])<<2|n[t+2]>>6],r+=ee[63&n[t+2]];return o%3==2?r=r.substring(0,r.length-1)+"=":o%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(e);return{rr_type:o,base64:r}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[mt(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[mt(e.data,t,n),e.width,e.height]}:le(e,t)||"object"==Bn(e)?{rr_type:e.constructor.name,index:se(e,t,n)}:e}function bt(e,t,n){var o=[];try{var r=Ve(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,n=e.checkoutEveryNms,o=e.checkoutEveryNth,i=e.blockClass,a=void 0===i?"rr-block":i,s=e.blockSelector,c=void 0===s?null:s,l=e.ignoreClass,u=void 0===l?"rr-ignore":l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,f=e.maskTextSelector,h=void 0===f?null:f,v=e.inlineStylesheet,g=void 0===v||v,y=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,x=e.maskInputFn,S=e.maskTextFn,C=e.hooks,I=e.packFn,L=e.sampling,T=void 0===L?{}:L,E=e.dataURLOptions,O=void 0===E?{}:E,M=e.mousemoveWait,A=e.recordCanvas,P=void 0!==A&&A,R=e.recordCrossOriginIframes,N=void 0!==R&&R,j=e.userTriggeredOnInput,F=void 0!==j&&j,_=e.collectFonts,B=void 0!==_&&_,H=e.inlineImages,q=void 0!==H&&H,U=e.plugins,W=e.keepIframeSrcFn,G=void 0===W?function(){return!1}:W,V=e.ignoreCSSAttributes,K=void 0===V?new Set([]):V,X=!N||window.parent===window,Z=!1;if(!X)try{window.parent.document,Z=!1}catch(ye){Z=!0}if(X&&!t)throw new Error("emit function is required");void 0!==M&&void 0===T.mousemove&&(T.mousemove=M),Le.reset();var Y=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==w?w:{password:!0},J=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k}:k||{};!function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,n=new Array(t),o=0;o=o,c=n&&e.timestamp-Q.timestamp>n;(s||c)&&re(!0)}};var ne,ae=function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Mutation},e)}))},se=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Scroll},e)}))},ce=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.CanvasMutation},e)}))},le=new ve({mutationCb:ae,adoptedStyleSheetCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.AdoptedStyleSheet},e)}))}}),ue=new z({mirror:Le,mutationCb:ae,stylesheetManager:le,recordCrossOriginIframes:N,wrappedEmit:oe}),de=Pn(U||[]);try{for(de.s();!(ne=de.n()).done;){var pe=ne.value;pe.getMirror&&pe.getMirror({nodeMirror:Le,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}}catch(we){de.e(we)}finally{de.f()}ie=new he({recordCanvas:P,mutationCb:ce,win:window,blockClass:a,blockSelector:c,mirror:Le,sampling:T.canvas,dataURLOptions:O});var fe=new $({mutationCb:ae,scrollCb:se,bypassOptions:{blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskInputOptions:Y,dataURLOptions:O,maskTextFn:S,maskInputFn:x,recordCanvas:P,inlineImages:q,sampling:T,slimDOMOptions:J,iframeManager:ue,stylesheetManager:le,canvasManager:ie,keepIframeSrcFn:G},mirror:Le});re=function(){var e,t,n,o,i,s,l,u,d,f,v,b,y=arguments.length>0&&void 0!==arguments[0]&&arguments[0];oe(kt({type:m.Meta,data:{href:window.location.href,width:Xe(),height:Ke()}}),y),le.reset(),D.forEach((function(e){return e.lock()}));var w=function(e,t){var n=t||{},o=n.mirror,i=void 0===o?new r:o,a=n.blockClass,s=void 0===a?"rr-block":a,c=n.blockSelector,l=void 0===c?null:c,u=n.maskTextClass,d=void 0===u?"rr-mask":u,p=n.maskTextSelector,f=void 0===p?null:p,h=n.inlineStylesheet,v=void 0===h||h,g=n.inlineImages,m=void 0!==g&&g,b=n.recordCanvas,y=void 0!==b&&b,w=n.maskAllInputs,k=void 0!==w&&w,x=n.maskTextFn,S=n.maskInputFn,C=n.slimDOM,I=void 0!==C&&C,L=n.dataURLOptions,T=n.preserveWhiteSpace,E=n.onSerialize,O=n.onIframeLoad,M=n.iframeLoadTimeout,A=n.onStylesheetLoad,P=n.stylesheetLoadTimeout,R=n.keepIframeSrcFn;return Ue(e,{doc:e,mirror:i,blockClass:s,blockSelector:l,maskTextClass:d,maskTextSelector:f,skipChild:!1,inlineStylesheet:v,maskInputOptions:!0===k?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===k?{password:!0}:k,maskTextFn:x,maskInputFn:S,slimDOMOptions:!0===I||"all"===I?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===I,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===I?{}:I,dataURLOptions:L,inlineImages:m,recordCanvas:y,preserveWhiteSpace:T,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:void 0===R?function(){return!1}:R,newlyAddedElement:!1})}(document,{mirror:Le,blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskAllInputs:Y,maskTextFn:S,slimDOM:J,dataURLOptions:O,recordCanvas:P,inlineImages:q,onSerialize:function(e){$e(e,Le)&&ue.addIframe(e),et(e,Le)&&le.trackLinkElement(e),tt(e)&&fe.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),fe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:G});if(!w)return console.warn("Failed to snapshot the document");oe(kt({type:m.FullSnapshot,data:{node:w,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===(e=document)||void 0===e?void 0:e.documentElement.scrollLeft)||(null==(u=null==(l=null===(t=document)||void 0===t?void 0:t.body)?void 0:l.parentElement)?void 0:u.scrollLeft)||(null==(d=null===(n=document)||void 0===n?void 0:n.body)?void 0:d.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===(o=document)||void 0===o?void 0:o.documentElement.scrollTop)||(null==(v=null==(f=null===(i=document)||void 0===i?void 0:i.body)?void 0:f.parentElement)?void 0:v.scrollTop)||(null==(b=null===(s=document)||void 0===s?void 0:s.body)?void 0:b.scrollTop)||0}}})),D.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,Le.getId(document))};try{var ge=[];ge.push(ze("DOMContentLoaded",(function(){oe(kt({type:m.DomContentLoaded,data:{}}))})));var me=function(e){var t;return gt({mutationCb:ae,mousemoveCb:function(e,t){return oe(kt({type:m.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MouseInteraction},e)}))},scrollCb:se,viewportResizeCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.ViewportResize},e)}))},inputCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Input},e)}))},mediaInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleDeclaration},e)}))},canvasMutationCb:ce,fontCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Font},e)}))},selectionCb:function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Selection},e)}))},blockClass:a,ignoreClass:u,maskTextClass:p,maskTextSelector:h,maskInputOptions:Y,inlineStylesheet:g,sampling:T,recordCanvas:P,inlineImages:q,userTriggeredOnInput:F,collectFonts:B,doc:e,maskInputFn:x,maskTextFn:S,keepIframeSrcFn:G,blockSelector:c,slimDOMOptions:J,dataURLOptions:O,mirror:Le,iframeManager:ue,stylesheetManager:le,shadowDomManager:fe,canvasManager:ie,ignoreCSSAttributes:K,plugins:(null==(t=null==U?void 0:U.filter((function(e){return e.observer})))?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return oe(kt({type:m.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},C)};ue.addLoadListener((function(e){ge.push(me(e.contentDocument))}));var be=function(){re(),ge.push(me(document)),Ie=!0};return"interactive"===document.readyState||"complete"===document.readyState?be():ge.push(ze("load",(function(){oe(kt({type:m.Load,data:{}})),be()}),window)),function(){ge.forEach((function(e){return e()})),Ie=!1}}catch(ge){console.warn(ge)}}}();function qn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n4e6){var n,o=/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim,r=qn(t.matchAll(o));try{for(r.s();!(n=r.n()).done;){var i=n.value;t="image/"===i[1].toLocaleLowerCase().slice(0,6)?t.replace(i[0],"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAQSURBVHgBAQUA+v8ABRg5/wHSAVZN1mnaAAAAAElFTkSuQmCC"):t.replace(i[0],"")}}catch(a){r.e(a)}finally{r.f()}}return{event:JSON.parse(t),size:t.length}}(t).event;e.push(n)}}))}catch(t){console.error(t)}}},{key:"stop",value:function(){this.stopFunction&&this.stopFunction(),this.startDate=void 0,this.events=[],this.bufferSize=0}},{key:"getReplayData",value:function(){return{startDate:this.startDate,events:this.events,baseUrl:window.location.origin,width:window.innerWidth,height:window.innerHeight,isMobile:w(),type:"rrweb"}}}])&&Vn(t.prototype,n),o&&Vn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Jn(e,t){for(var n=0;nthis.startPoint.x&&(r=this.startPoint.x),t.y>this.startPoint.y&&(i=this.startPoint.y),this.path.setAttributeNS(null,"x",r),this.path.setAttributeNS(null,"y",i),this.path.setAttributeNS(null,"width",n),this.path.setAttributeNS(null,"height",o)}}},{key:"mouseDownRect",value:function(e){this.path=document.createElementNS("http://www.w3.org/2000/svg","rect"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",this.color),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",this.strokeWidthRect),this.startPoint=this.getMousePosition(e),this.appendPathToSvg(this.path)}},{key:"mouseDownPen",value:function(e){var t=this.color+"AA",n=this.strokeWidth;"blur"===this.tool&&(t="#000000",n=40),this.path=document.createElementNS("http://www.w3.org/2000/svg","path"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",t),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",n),this.buffer=[];var o=this.getMousePosition(e);this.appendToBuffer(o),this.strPath="M"+o.x+" "+o.y,this.path.setAttribute("d",this.strPath),this.appendPathToSvg(this.path)}},{key:"setTool",value:function(e){this.tool=e}},{key:"setColor",value:function(e){this.color=e}},{key:"getMousePosition",value:function(e){return e.touches&&e.touches.length>0?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}},{key:"getAveragePoint",value:function(e){var t=this.buffer.length;if(t%2==1||t>=this.bufferSize){var n,o,r=0,i=0,a=0;for(o=e;othis.bufferSize;)this.buffer.shift()}},{key:"appendPathToSvg",value:function(e){this.svgElement.appendChild(e),this.pathBuffer.push(e),this.rerender()}},{key:"removeLastAddedPathFromSvg",value:function(){this.pathBuffer.length<=0||!this.svgElement||(this.svgElement.removeChild(this.pathBuffer[this.pathBuffer.length-1]),this.pathBuffer.pop(),this.rerender())}},{key:"fadeOutToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=0,e.style.pointerEvents="none")}},{key:"fadeInToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=1,e.style.pointerEvents="auto")}}],n&&Jn(t.prototype,n),o&&Jn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function to(e){return to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},to(e)}function no(e,t){for(var n=0;n\n \n
'.concat(p("dismiss"),"
\n
").concat(p("rect"),'
\n
\n
\n ').concat(p("drag"),"\n
\n ").concat("capture"===this.type?'
\n '.concat(p("recorderon"),"\n ").concat(p("recorderoff"),'\n \n
\n
\n ').concat(p("mic"),'\n \n
\n
2:00
\n
\n
\n ').concat(p("pointer"),"\n
"):"",'\n
\n ').concat(p("rect"),'\n
\n
\n ').concat(p("pen"),'\n
\n
\n ').concat(p("blur"),'\n
\n
\n
\n ').concat(go.translateText("pickAColor"),'\n
\n
\n ').concat(p("undo"),'\n ').concat(go.translateText("undo"),"\n
\n ").concat("capture"!==this.type?'
'.concat(go.translateText("next"),"
"):"",'\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
').concat(go.translateText("retry"),'
\n
').concat(go.translateText("next"),"
\n
\n
\n
\n "),document.body.appendChild(e),e.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}},{key:"unregisterListeners",value:function(){this.escListener&&document.removeEventListener("keydown",this.escListener),this.pageLeaveListener&&window.removeEventListener("beforeunload",this.pageLeaveListener)}},{key:"registerListeners",value:function(){var e=this;this.escListener=function(t){var n=!1,o=!1;"key"in(t=t||window.event)&&(n="Escape"===t.key,o="Enter"===t.key),n&&e.dismiss(),"screenshot"===e.type&&o&&e.showNextStep()},document.addEventListener("keydown",this.escListener),this.pageLeaveListener=function(e){e.preventDefault(),e.returnValue=""},window.addEventListener("beforeunload",this.pageLeaveListener)}},{key:"show",value:function(e){this.callback=e,this.registerListeners(),this.hideWidgetUI(),this.createEditorUI(),this.setupMousePointer(),"screenshot"===this.type?(ki.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY}),io.disableScroll()):this.setupScreenRecording(),this.screenDrawer=new eo(this.captureScreenDrawerRerender.bind(this)),this.setupColorPicker(),this.setupToolbar()}},{key:"setupColorPicker",value:function(){for(var t=this,n=document.querySelector(".bb-capture-toolbar-item-selectedcolor"),o=document.querySelectorAll(".bb-capture-toolbar-item-color"),r=document.querySelector(".bb-capture-toolbar-item-colorpicker"),i=function(){var i=o[a],s=i.getAttribute("data-color");i.style.backgroundColor=s,i.onclick=function(){i&&(t.screenDrawer.setColor(s),r&&(r.style.display="none"),n.style.backgroundColor=i.style.backgroundColor,e.setPenColor(s))}},a=0;a0?o.classList.remove(e):o.classList.add(e))}}},{key:"captureRenderer",value:function(){if(this.screenRecorder){this.screenRecorder.file&&ki.getInstance().setGlobalDataItem("screenRecordingData",this.screenRecorder.file);var e="bb-capture-editor-item-inactive",t=document.querySelector(".bb-capture-toolbar-item-timer"),n=document.querySelectorAll(".bb-capture-toolbar-item"),o=document.querySelector(".bb-tooltip-screen-recording"),r=document.querySelector(".bb-tooltip-audio-recording"),i=document.querySelector(".bb-capture-editor"),a="bb-capture-editor-recording",s="bb-capture-editor-notrecording";this.screenRecorder.isRecording?(i.classList.add(a),i.classList.remove(s)):(i.classList.add(s),i.classList.remove(a));var c=document.querySelector(".bb-capture-toolbar");document.querySelector(".bb-capture-preview").style.display=this.screenRecorder.file?"flex":"none",c.style.display=this.screenRecorder.file?"none":"flex";for(var l=0;l0){var t=e.filter((function(e){return new Date(e.createdAt)>new Date(Date.now()-36e5)}));t.length>2?this.notifications=t.splice(0,t.length-2):this.notifications=t,this.renderNotifications()}}catch(n){}}},{key:"setNotificationCount",value:function(e){Gt.getInstance().isOpened()?(this.unreadCount=0,this.updateTabBarNotificationCount()):this.unreadCount=e,this.updateTabBarNotificationCount(),a.getInstance().updateNotificationBadge(this.unreadCount)}},{key:"showNotification",value:function(e){this.notificationContainer&&e&&e.data&&(this.notifications.find((function(t){return e.outbound===t.outbound}))||(this.notifications.push(e),e.sound&&Yo.ping()),this.notifications.length>2&&this.notifications.shift(),I(this.unreadNotificationsKey,this.notifications),this.renderNotifications())}},{key:"renderNotifications",value:function(){var e=this;if(this.notificationContainer){this.clearAllNotifications(!0);var t=document.createElement("div");t.onclick=function(){e.clearAllNotifications(),e.currentNewsIndex=0},t.className="gleap-notification-close",t.innerHTML=p("dismiss"),this.notificationContainer.appendChild(t);var n=this.notifications.filter((function(e){return e.data.news})).sort((function(e,t){return new Date(e.createdAt)-new Date(t.createdAt)})),o=this.notifications.filter((function(e){return!e.data.news}));if(n.length>0){var r=this.currentNewsIndex1){var v=document.createElement("div");v.className="gleap-news-pagination";var g=document.createElement("span");g.className="gleap-news-page-indicator",g.innerText="".concat(r+1," / ").concat(n.length),v.appendChild(g);var m=document.createElement("button");m.className="gleap-news-next-button",r\n
\n
\n '.concat(t.data.text,'\n
\n
\n
\n
\n
\n \n \n \n ').concat(t.data.nextStepTitle,"\n
\n
\n ")}else r.className="gleap-notification-item",r.innerHTML="\n ".concat(t.data.sender&&t.data.sender.profileImageUrl&&''),'\n
\n ').concat(t.data.sender?'
\n '.concat(t.data.sender.name,"\n
"):"",'\n
').concat(n,"
\n
");e.notificationContainer.appendChild(r)},y=0;y0||o.length>0||this.clearAllNotifications(!0)}}},{key:"openNews",value:function(e){e.data.news?ki.openNewsArticle(e.data.news.id,!0):ki.open()}},{key:"renderDescription",value:function(e){var t=e.data,n=t.previewText,o=t.sender;return n&&n.length>0?n:o?'\n
\n '.concat(o.profileImageUrl?'').concat(o.name,''):"","\n ").concat(o.name,"\n
\n "):""}},{key:"clearAllNotifications",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.notificationContainer)for(e||(this.notifications=[],this.currentNewsIndex=0,I(this.unreadNotificationsKey,this.notifications));this.notificationContainer.firstChild;)this.notificationContainer.removeChild(this.notificationContainer.firstChild)}},{key:"updateContainerStyle",value:function(){if(this.notificationContainer){var e=ut.getInstance().getFlowConfig(),t="gleap-notification-container--left",n="gleap-notification-container--no-button";this.notificationContainer.classList.remove(t),this.notificationContainer.classList.remove(n),e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_CLASSIC_LEFT&&e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_BOTTOM_LEFT||this.notificationContainer.classList.add(t),null===a.getInstance().buttonHidden?e.feedbackButtonPosition===a.FEEDBACK_BUTTON_NONE&&this.notificationContainer.classList.add(n):a.getInstance().buttonHidden&&this.notificationContainer.classList.add(n),this.notificationContainer.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Eo(t.prototype,n),o&&Eo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Po(e){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(e)}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function No(e){for(var t=1;t'),document.body.appendChild(t),this.bannerContainer=t}},{key:"sendMessage",value:function(e){try{var t=document.querySelector(".gleap-b-frame");t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(No(No({},e),{},{type:"banner"})),"*")}catch(n){}}},{key:"showBanner",value:function(e){this.injectBannerUI(e)}}])&&Do(t.prototype,n),o&&Do(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bo(e){return Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo(e)}function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function qo(e){for(var t=1;t\n
\n \n
\n '),document.body.appendChild(n),this.modalContainer=n,this.modalBackdropClickListener=this.modalContainer.querySelector(".gleap-modal-backdrop").addEventListener("click",(function(){var e,n;(null===(e=null===(n=t.modalData)||void 0===n?void 0:n.showCloseButton)||void 0===e||e)&&t.hideModal()})),document.body.classList.add("gleap-modal-open")}},{key:"_postMessage",value:function(e){try{var t=this.modalContainer.querySelector(".gleap-modal-frame");null!=t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(qo(qo({},e),{},{type:"modal"})),this.modalUrl)}catch(n){}}},{key:"showModal",value:function(e){e&&e.config&&this._injectModalUI(e.config)}},{key:"hideModal",value:function(){this.modalContainer&&(this.modalBackdropClickListener&&this.modalContainer.querySelector(".gleap-modal-backdrop").removeEventListener("click",this.modalBackdropClickListener),document.body.removeChild(this.modalContainer),this.modalContainer=null,document.body.classList.remove("gleap-modal-open"))}}])&&Uo(t.prototype,n),o&&Uo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function Ko(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0])||o(t.gleapCollapseUI,e)&&o(t.gleapFrameContainer,n))&&(t.gleapCollapseUI&&t.gleapCollapseUI.classList.toggle(e),t.gleapFrameContainer&&t.gleapFrameContainer.classList.toggle(n))})),wr(this,"injectCollapseUI",(function(){if(!t.injectedCollapseUI){t.injectedCollapseUI=!0;var e=document.createElement("div");e.className="gleap-admin-collapse-ui",e.innerHTML='
\n '.concat(p("arrowdown"),"\n
"),document.body.appendChild(e),t.gleapCollapseUI=e,e.addEventListener("click",(function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t.toggleCollapseUI()}))}})),wr(this,"injectFrame",(function(){var e;if(!t.injectedFrame){t.injectedFrame=!0;var n=document.createElement("div");n.className="gleap-admin-frame-container",n.innerHTML=''),document.body.appendChild(n),t.gleapFrameContainer=n,t.gleapFrame=document.querySelector(".gleap-admin-frame")}}))}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"logCurrentPage",value:function(){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.sendMessageToTourBuilder({name:"page-changed",data:{page:e}}))}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"initAdminHelper",value:function(){var e=this;Yr.getInstance().disable(),e.adminHelper=new vr;try{e.adminHelper.onElementPicked=function(t){e.toggleCollapseUI(!0),e.sendMessageToTourBuilder({name:"element-picked",data:{selector:t}})}}catch(t){console.log(t)}e.injectFrame(),e.injectCollapseUI(),e.setFrameHeight("loading")}},{key:"setFrameHeight",value:function(e){if(this.gleapFrameContainer){var t="";t="picker"===e||"navigate"===e?"65px":"editor"===e?"100vh":"0px",this.gleapFrameContainer.style.height=t}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!window.gleapAdminDisabled){var t=this;window.addEventListener("message",(function(n){if("https://app.gleap.io"===n.origin)try{var o=JSON.parse(n.data);if("admin"===o.type&&("load"===o.name&&(t.configData=o.data,t.initAdminHelper()),"smartlink-search-result"===o.name&&e.sendMessageToTourBuilder({name:"smartlink-search-result",data:o.data})),"tourbuilder"===o.type){var r;if("loaddata"===o.name&&e.sendMessageToTourBuilder({name:"data",data:br(br({},t.configData),{},{currentPage:window.location.href})}),"highlight-element"===o.name&&(document.querySelectorAll(".gleap-admin-highlight").forEach((function(e){e.classList.remove("gleap-admin-highlight")})),null!=o&&null!==(r=o.data)&&void 0!==r&&r.selector)){var i,a=document.querySelector(null==o||null===(i=o.data)||void 0===i?void 0:i.selector);a&&a.classList.add("gleap-admin-highlight")}if("smartlink-search"===o.name&&e.sendMessage({name:"smartlink-search",data:o.data}),"product-tour-started"===o.name&&e.sendMessage({name:"product-tour-started",data:o.data}),"save"===o.name&&e.sendMessage({name:"save",data:o.data}),"update-steps"===o.name&&e.sendMessage({name:"update-steps",data:o.data}),"click"===o.name)try{document.querySelector(o.data.selector).click()}catch(s){console.log(s)}"status-changed"===o.name&&(t.status=o.data,e.setFrameHeight(t.status),t.adminHelper.stopPicker(),"picker"===t.status&&t.adminHelper.startPicker())}}catch(c){}})),this.sendMessage({name:"init"}),this.startPageListener()}}},{key:"sendMessage",value:function(e){try{window&&window.opener&&window.opener.postMessage(JSON.stringify(br(br({},e),{},{type:"admin"})),"*")}catch(t){}}},{key:"sendMessageToTourBuilder",value:function(e){try{this.gleapFrame&&this.gleapFrame.contentWindow&&this.gleapFrame.contentWindow.postMessage(JSON.stringify(br(br({},e),{},{type:"tourbuilder"})),"*")}catch(t){}}}])&&yr(t.prototype,n),o&&yr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Cr(e){return function(e){if(Array.isArray(e))return Ir(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ir(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ir(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{})}function n(t){return t?e[t]:e}function o(e,t,n,o){return(e/=o/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function r(e){var t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap((function(e){var n=e.matches(t),o=Array.from(e.querySelectorAll(t));return[].concat(Cr(n?[e]:[]),o)})).filter((function(e){return"none"!==getComputedStyle(e).pointerEvents&&function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)}))}function i(e){if(e&&!function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e)){var t=n("smoothScroll");e.scrollIntoView({behavior:!t||a(e)?"auto":"smooth",inline:"center",block:"center"})}}function a(e){if(e&&e.parentElement){var t=e.parentElement;return t.scrollHeight>t.clientHeight}}var s={};function c(e,t){s[e]=t}function l(e){return e?s[e]:s}function u(){s={}}var d={};function p(e,t){d[e]=t}function f(e){var t;null==(t=d[e])||t.call(d)}function h(e){if(e){var t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};c("__activeStagePosition",n),g(n)}}function v(e){var t=function(e){var t=window.innerWidth,o=window.innerHeight,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.classList.add("gleap-tour-overlay","gleap-tour-overlay-animated"),r.setAttribute("viewBox","0 0 ".concat(t," ").concat(o)),r.setAttribute("xmlSpace","preserve"),r.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("preserveAspectRatio","xMinYMin slice"),r.style.fillRule="evenodd",r.style.clipRule="evenodd",r.style.strokeLinejoin="round",r.style.strokeMiterlimit="2",r.style.zIndex="10000",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%";var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",m(e)),i.style.fill=n("overlayColor")||"rgb(0,0,0)",i.style.opacity="".concat(n("overlayOpacity")),i.style.pointerEvents="auto",i.style.cursor="auto",r.appendChild(i),r}(e);document.body.appendChild(t),S(t,(function(e){"path"===e.target.tagName&&f("overlayClick")})),c("__overlaySvg",t)}function g(e){var t=l("__overlaySvg");if(t){var n=t.firstElementChild;if("path"!==(null==n?void 0:n.tagName))throw new Error("no path element found in stage svg");n.setAttribute("d",m(e))}else v(e)}function m(e){var t=window.innerWidth,o=window.innerHeight,r=n("stagePadding")||0,i=n("stageRadius")||0,a=e.width+2*r,s=e.height+2*r,c=Math.min(i,a/2,s/2),l=Math.floor(Math.max(c,0)),u=e.x-r+l,d=e.y-r,p=a-2*l,f=s-2*l;return"M".concat(t,",0L0,0L0,").concat(o,"L").concat(t,",").concat(o,"L").concat(t,",0Z\n M").concat(u,",").concat(d," h").concat(p," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",").concat(l," v").concat(f," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",").concat(l," h-").concat(p," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",-").concat(l," v-").concat(f," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",-").concat(l," z")}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,r=e.element,a=r;if("string"==typeof a)try{a=document.querySelector(r)}catch(u){var s=r.replace(/(#[^#\s]+)/g,(function(e){return e.replace(/:/g,"\\:")}));a=document.querySelector(s)}if(r&&!a&&t>=0)setTimeout((function(){C(),b(e,t-100)}),100);else{if(!a&&("INPUT"===e.mode||"CLICK"===e.mode))return n("onElementNotFound")(e);a||(a=function(){var e=document.getElementById("gleap-tour-dummy-element");if(e)return e;var t=document.createElement("div");return t.id="gleap-tour-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}()),function(e,t){var r,a,s=400,u=Date.now(),d=l("__activeStep"),p=l("__activeElement")||e,f=!p||p===e,v="gleap-tour-dummy-element"===e.id,m="gleap-tour-dummy-element"===p.id,b=n("animate"),y=t.onHighlightStarted||n("onHighlightStarted"),w=(null==t?void 0:t.onHighlighted)||n("onHighlighted"),k=(null==d?void 0:d.onDeselected)||n("onDeselected"),x=n(),S=l();!f&&k&&k(m?void 0:p,d,{config:x,state:S});y&&y(v?void 0:e,t,{config:x,state:S});var L=!f&&b,T=!1;C(),c("previousStep",d),c("previousElement",p),c("activeStep",t),c("activeElement",e);var E=function r(){if(l("__transitionCallback")===r){var i=Date.now()-u,a=s-i<=s/2;t.popover&&a&&!T&&L&&(I(e,t),T=!0),n("animate")&&i0&&R[0].focus()}function L(){var e=l("popover");if(null==e?void 0:e.wrapper){var t=e.wrapper.getBoundingClientRect(),o=n("stagePadding")||0,r=n("popoverOffset")||0;return{width:t.width+o+r,height:t.height+o+r,realWidth:t.width,realHeight:t.height}}}function T(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.top-r,window.innerHeight-o.realHeight-i.width),i.width):"end"===e?Math.max(Math.min(n.top-(null==o?void 0:o.realHeight)+n.height+r,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):"center"===e?Math.max(Math.min(n.top+n.height/2-(null==o?void 0:o.realHeight)/2,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):0}function E(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.left-r,window.innerWidth-o.realWidth-i.width),i.width):"end"===e?Math.max(Math.min(n.left-(null==o?void 0:o.realWidth)+n.width+r,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):"center"===e?Math.max(Math.min(n.left+n.width/2-(null==o?void 0:o.realWidth)/2,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):0}function O(e,t){var o=l("popover");if(o){var r=(null==t?void 0:t.popover)||{},i=r.align,a=void 0===i?"start":i,s=r.side,c=void 0===s?"left":s,u=a,d="gleap-tour-dummy-element"===e.id?"over":c,p=n("stagePadding")||0,f=L(),h=o.arrow.getBoundingClientRect(),v=e.getBoundingClientRect(),g=v.top-f.height,m=g>=0,b=window.innerHeight-(v.bottom+f.height),y=b>=0,w=v.left-f.width,k=w>=0,x=window.innerWidth-(v.right+f.width),S=x>=0,C=!(m||y||k||S),I=d;if("top"===d&&m?S=k=y=!1:"bottom"===d&&y?S=k=m=!1:"left"===d&&k?S=m=y=!1:"right"===d&&S&&(k=m=y=!1),"over"===d){var O=window.innerWidth/2-f.realWidth/2,M=window.innerHeight/2-f.realHeight/2;o.wrapper.style.left="".concat(O,"px"),o.wrapper.style.right="auto",o.wrapper.style.top="".concat(M,"px"),o.wrapper.style.bottom="auto"}else if(C){var A=window.innerWidth/2-(null==f?void 0:f.realWidth)/2;o.wrapper.style.left="".concat(A,"px"),o.wrapper.style.right="auto",o.wrapper.style.bottom="".concat(10,"px"),o.wrapper.style.top="auto"}else if(k){var P=Math.min(w,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),R=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(P,"px"),o.wrapper.style.top="".concat(R,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="left"}else if(S){var N=Math.min(x,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),D=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.right="".concat(N,"px"),o.wrapper.style.top="".concat(D,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.left="auto",I="right"}else if(m){var j=Math.min(g,window.innerHeight-f.realHeight-h.width),F=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.top="".concat(j,"px"),o.wrapper.style.left="".concat(F,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="top"}else if(y){var _=Math.min(b,window.innerHeight-(null==f?void 0:f.realHeight)-h.width),B=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(B,"px"),o.wrapper.style.bottom="".concat(_,"px"),o.wrapper.style.top="auto",o.wrapper.style.right="auto",I="bottom"}C?o.arrow.classList.add("gleap-tour-popover-arrow-none"):function(e,t,n){var o=l("popover");if(!o)return;var r=n.getBoundingClientRect(),i=L(),a=o.arrow,s=i.width,c=window.innerWidth,u=r.width,d=r.left,p=i.height,f=window.innerHeight,h=r.top,v=r.height;a.className="gleap-tour-popover-arrow";var g=t,m=e;"top"===t?(d+u<=0?(g="right",m="end"):d+u-s<=0&&(g="top",m="start"),d>=c?(g="left",m="end"):d+s>=c&&(g="top",m="end")):"bottom"===t?(d+u<=0?(g="right",m="start"):d+u-s<=0&&(g="bottom",m="start"),d>=c?(g="left",m="start"):d+s>=c&&(g="bottom",m="end")):"left"===t?(h+v<=0?(g="bottom",m="end"):h+v-p<=0&&(g="left",m="start"),h>=f?(g="top",m="end"):h+p>=f&&(g="left",m="end")):"right"===t&&(h+v<=0?(g="bottom",m="start"):h+v-p<=0&&(g="right",m="start"),h>=f?(g="top",m="start"):h+p>=f&&(g="right",m="end"));g?(a.classList.add("gleap-tour-popover-arrow-side-".concat(g)),a.classList.add("gleap-tour-popover-arrow-align-".concat(m))):a.classList.add("gleap-tour-popover-arrow-none")}(u,I,e)}}return function(){function e(){n("allowClose")&&h()}function o(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e+1;t[o]?f(o):h()}}function r(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e-1;t[o]?f(o):h()}}function i(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),o=l("__activeStep"),i=l("__activeElement");if("CLICK"!==o.mode)if(void 0!==t&&void 0!==o)if(void 0!==l("activeIndex")){var a=(null==(e=o.popover)?void 0:e.onPrevClick)||n("onPrevClick");if(a)return a(i,o,{config:n(),state:l()});r()}}}function a(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),r=l("__activeStep"),i=l("__activeElement");if("CLICK"!==r.mode&&void 0!==t&&void 0!==r){var a=(null==(e=r.popover)?void 0:e.onNextClick)||n("onNextClick");if(a)return a(i,r,{config:n(),state:l()});o()}}}function s(){l("isInitialized")||(c("isInitialized",!0),document.body.classList.add("gleap-tour-active",n("animate")?"gleap-tour-fade":"gleap-tour-simple"),window.addEventListener("keyup",x,!1),window.addEventListener("keydown",k,!1),window.addEventListener("resize",w),window.addEventListener("scroll",w),p("overlayClick",e),p("escapePress",e),p("arrowLeftPress",i),p("arrowRightPress",a))}function f(){var e,t,o,r,i,a,s,l,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,d=n("steps");if(!d)return console.error("No steps to drive through"),void h();if(d[u]){c("__activeOnDestroyed",document.activeElement),c("activeIndex",u);var p=d[u],v=d[u+1],g=d[u-1],m=(null==(e=p.popover)?void 0:e.doneBtnText)||n("doneBtnText")||"Done",y=n("allowClose"),w=void 0!==(null==(t=p.popover)?void 0:t.showProgress)?null==(o=p.popover)?void 0:o.showProgress:n("showProgress"),k=((null==(r=p.popover)?void 0:r.progressText)||n("progressText")||"{{current}} of {{total}}").replace("{{current}}","".concat(u+1)).replace("{{total}}","".concat(d.length)),x=(null==(i=p.popover)?void 0:i.showButtons)||n("showButtons"),S=["next","previous"].concat(Cr(y?["close"]:[])).filter((function(e){return!(null==x?void 0:x.length)||x.includes(e)})),C=(null==(a=p.popover)?void 0:a.onNextClick)||n("onNextClick"),I=(null==(s=p.popover)?void 0:s.onPrevClick)||n("onPrevClick"),L=(null==(l=p.popover)?void 0:l.onCloseClick)||n("onCloseClick");b(Tr(Tr({},p),{},{popover:Tr({showButtons:S,nextBtnText:v?void 0:m,disableButtons:Cr(g?[]:["previous"]),showProgress:w,progressText:k,onNextClick:C||function(){v?f(u+1):h()},onPrevClick:I||function(){f(u-1)},onCloseClick:L||function(){h()}},(null==p?void 0:p.popover)||{})}))}else h()}function h(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=l("__activeElement"),o=l("__activeStep"),r=l("__activeOnDestroyed"),i=n("onDestroyStarted");if(e&&i){i(!t||"gleap-tour-dummy-element"===(null==t?void 0:t.id)?void 0:t,o,{config:n(),state:l()})}else{var a,s,c,p=(null==o?void 0:o.onDeselected)||n("onDeselected"),f=n("onDestroyed");if(document.body.classList.remove("gleap-tour-active","gleap-tour-fade","gleap-tour-simple"),window.removeEventListener("keyup",x),window.removeEventListener("resize",w),window.removeEventListener("scroll",w),(s=l("popover"))&&(null==(a=s.wrapper.parentElement)||a.removeChild(s.wrapper)),function(){var e;null==(e=document.getElementById("gleap-tour-dummy-element"))||e.remove(),document.querySelectorAll(".gleap-tour-active-element").forEach((function(e){e.classList.remove("gleap-tour-active-element","gleap-tour-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}))}(),(c=l("__overlaySvg"))&&c.remove(),d={},u(),t&&o){var h="gleap-tour-dummy-element"===t.id;p&&p(h?void 0:t,o,{config:n(),state:l()}),f&&f(h?void 0:t,o,{config:n(),state:l()})}r&&r.focus()}}return t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{isActive:function(){return l("isInitialized")||!1},refresh:w,drive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;s(),f(e)},setConfig:t,setSteps:function(e){u(),t(Tr(Tr({},n()),{},{steps:e}))},getConfig:n,getState:l,getActiveIndex:function(){return l("activeIndex")},isFirstStep:function(){return 0===l("activeIndex")},isLastStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&t===e.length-1},getActiveStep:function(){return l("activeStep")},getActiveElement:function(){return l("activeElement")},getPreviousElement:function(){return l("previousElement")},getPreviousStep:function(){return l("previousStep")},moveNext:o,movePrevious:r,moveTo:function(e){(n("steps")||[])[e]?f(e):h()},hasNextStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t+1]},hasPreviousStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t-1]},highlight:function(e){s(),b(Tr(Tr({},e),{},{popover:e.popover?Tr({showButtons:[],showProgress:!1,progressText:""},e.popover):void 0}))},destroy:function(){h(!1)}}}}();const Mr=Or;function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}function Pr(){Pr=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new M(o||[]);return r(a,"_invoke",{value:L(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",v="completed",g={};function m(){}function b(){}function y(){}var w={};l(w,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&o.call(x,a)&&(w=x);var S=y.prototype=m.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(r,i,a,s){var c=d(e[r],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ar(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function L(t,n,o){var r=p;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var c=T(s,o);if(c){if(c===g)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===p)throw r=v,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var l=d(t,n,o);if("normal"===l.type){if(r=o.done?v:f,l.arg===g)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(r=v,o.method="throw",o.arg=l.arg)}}}function T(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.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,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];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=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Rr(e,t){for(var n=0;n=0&&t.productTourData&&t.productTourData.steps){var e=t.productTourData.steps[t.currentActiveIndex];e&&e.selector&&""!==e.selector&&t.updatePointerPosition(document.querySelector(e.selector),e)}})))}var t,n,o;return t=e,n=[{key:"disable",value:function(){this.disabled=!0,this.cleanup()}},{key:"startWithConfig",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;"undefined"!=typeof window&&(this.productTourId||this.disabled||(this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0,this.onCompleteCallback=n,this.start()))}},{key:"storeUncompletedTour",value:function(){if("undefined"!=typeof window)if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Fr,JSON.stringify(e))}catch(t){}else localStorage.removeItem(Fr)}},{key:"attachScrollListeners",value:function(e,t){var n=this;if("undefined"!=typeof window&&e){var o=function(e){if("undefined"!=typeof window){for(var t=[],n=e.parentElement;n;){var o=window.getComputedStyle(n);("auto"===o.overflowY||"scroll"===o.overflowY)&&n.scrollHeight>n.clientHeight&&t.push(n),n=n.parentElement}return t}}(e);o.push(window),o.forEach((function(o){var r=function(){clearTimeout(n._scrollDebounceTimer),n._scrollDebounceTimer=setTimeout((function(){n.updatePointerPosition(e,t)}),150)};o.addEventListener("scroll",r,{passive:!0}),n._scrollListeners.push({el:o,handler:r})}))}}},{key:"removeScrollListeners",value:function(){"undefined"!=typeof window&&(this._scrollListeners&&this._scrollListeners.length>0&&(this._scrollListeners.forEach((function(e){var t=e.el,n=e.handler;t.removeEventListener("scroll",n)})),this._scrollListeners=[]),this._scrollDebounceTimer&&(clearTimeout(this._scrollDebounceTimer),this._scrollDebounceTimer=null))}},{key:"updatePointerPosition",value:function(e,t){var n,o=this;if("undefined"!=typeof window)try{var r=this._pointerContainer||document.getElementById(_r);if(!r)return;if(!e)return r.style.position="fixed",r.style.left="50%",r.style.top="50%",r.style.transform="translate(-50%, -50%)",function(e){if("undefined"!=typeof window){var t=e-window.innerHeight/2;window.scrollTo({top:t,behavior:"smooth"})}}(window.innerHeight/2),this.removeScrollListeners(),this._currentAnchor=null,void(this._currentStep=null);n=e,"undefined"!=typeof window&&n&&n.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});var i=0;!function n(){if(function(e){if("undefined"!=typeof window){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}}(e)||i>=20){var a=e.getBoundingClientRect(),s=a.left+a.width/2,c=a.top+a.height/2+10;r.style.position="fixed",r.style.left="".concat(s,"px"),r.style.top="".concat(c,"px"),r.style.transform="translate(-50%, -50%)";var l=350;l>window.innerWidth-40&&(l=window.innerWidth-40),s+l>window.innerWidth-20?r.classList.add("copilot-pointer-container-right"):r.classList.remove("copilot-pointer-container-right"),o._currentAnchor===e&&o._currentStep===t||(o.removeScrollListeners(),o._currentAnchor=e,o._currentStep=t,o.attachScrollListeners(e,t))}else i++,setTimeout(n,100)}()}catch(a){}}},{key:"cleanup",value:function(){var e=this;"undefined"!=typeof window&&(document.body.classList.add("gl-copilot-fade-out"),setTimeout((function(){if(e._pointerContainer)e._pointerContainer.remove(),e._pointerContainer=null;else{var t=document.getElementById(_r);t&&t.remove()}var n=document.getElementById(Hr);n&&n.remove();var o=document.getElementById(Br);o&&o.remove(),document.body.classList.remove("gl-copilot-fade-out")}),800),this.removeScrollListeners())}},{key:"toggleAudio",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.audioMuted=e,this.currentAudio&&(this.currentAudio.muted=this.audioMuted),document.querySelector(".".concat(Hr,"-mute")).innerHTML=p(this.audioMuted?"unmute":"mute")}},{key:"setupCopilotTour",value:function(){var e,t,n,o,r,i,a=this;if("undefined"!=typeof window){var s,c,l=null!==(e=null===(t=ut.getInstance().flowConfig)||void 0===t?void 0:t.color)&&void 0!==e?e:"#485BFF",u=d(l),f=document.getElementById(Br);f||((f=document.createElement("style")).id=Br,f.type="text/css",f.textContent="\n #".concat(_r," {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n align-items: flex-start;\n pointer-events: none;\n z-index: 2147483610;\n transition: all 0.5s ease;\n }\n .").concat(_r,"-clickmode {\n cursor: pointer;\n pointer-events: all !important;\n }\n .").concat(_r,"-clickmode #copilot-info-bubble-content {\n display: flex !important;\n }\n .").concat(_r,"-clickmode svg {\n display: none !important;\n }\n #").concat(_r," svg {\n width: 20px;\n height: auto;\n fill: none;\n }\n #copilot-info-bubble {\n position: relative;\n }\n #copilot-info-bubble-content-container {\n position: absolute;\n top: 0px;\n left: 0px;\n min-width: min(300px, 80vw);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n .").concat(_r,"-right #copilot-info-bubble-content-container {\n left: auto !important;\n right: 0px !important;\n align-items: flex-end;\n }\n .").concat(_r,"-right .copilot-info-bubble-content {\n margin-right: 5px;\n }\n .").concat(_r,"-right svg {\n transform: scaleX(-1);\n }\n #copilot-info-bubble-content svg {\n width: 16px;\n height: 16px;\n display: inline-block !important;\n margin-left: 5px;\n }\n #copilot-info-bubble-content {\n margin-top: 18px;\n margin-left: 5px;\n padding: 10px 15px;\n border-radius: 20px;\n background-color: black;\n color: white;\n font-family: Arial, sans-serif;\n font-size: 14px;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);\n max-width: 100%;\n white-space: normal;\n overflow-wrap: break-word;\n word-break: normal;\n hyphens: none;\n }\n .").concat(_r,"-right #copilot-info-bubble-content {\n margin-top: 30px;\n margin-left: 0px;\n margin-right: 5px;\n }\n .click-wave {\n position: absolute;\n width: 34px;\n height: 34px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n pointer-events: none;\n z-index: 2147483611;\n animation: click-wave-animation 0.8s ease forwards;\n }\n @keyframes click-wave-animation {\n 0% {\n transform: scale(0.2);\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n }\n @keyframes slideInFromTop {\n 0% {\n transform: translateY(-100%);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n }\n .").concat(Hr," {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 2147483610;\n background: #fff;\n padding: 6px;\n border-radius: 10px;\n box-shadow: 0 0 20px 0 #C294F2;\n display: flex;\n align-items: center;\n gap: 8px;\n border: 1px solid rgba(192, 146, 242, 0.5);\n animation: slideInFromTop 0.5s ease-out forwards;\n }\n .").concat(Hr," span {\n font-size: 13px;\n color: #000;\n font-family: sans-serif;\n }\n .").concat(Hr,"-avatar {\n width: 24px;\n height: 24px;\n flex-shrink: 0;\n border-radius: 6px;\n }\n .").concat(Hr,"-mute {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .").concat(Hr,"-mute svg {\n width: 20px;\n height: auto;\n cursor: pointer;\n animation: pulsate 2s infinite;\n }\n .").concat(Hr,"-mute svg:hover {\n opacity: 0.8;\n }\n .").concat(Hr,"-dismiss {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-right: 3px;\n }\n .").concat(Hr,"-dismiss svg {\n width: 15px;\n height: auto;\n cursor: pointer;\n }\n .").concat(Hr,"-dismiss svg:hover {\n opacity: 0.8;\n }\n @keyframes pulsate {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n 50% {\n transform: scale(1.1);\n opacity: 0.8;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n }\n @keyframes glCoFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n @keyframes glCoFadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n .gleap-audio-unmute-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483620;\n }\n\n .gleap-audio-unmute-modal {\n background-color: #fff;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);\n text-align: center;\n max-width: 90%;\n width: 400px;\n }\n\n .gleap-audio-unmute-modal p {\n margin-bottom: 20px;\n font-size: 16px;\n line-height: 22px;\n font-weight: normal;\n }\n\n .gleap-audio-unmute-button {\n background: ").concat(l,";\n color: ").concat(u,";\n outline: none;\n border: none;\n padding: 10px 14px;\n border-radius: 12px;\n font-size: 14px;\n font-weight: bold;\n cursor: pointer;\n }\n\n .gleap-audio-unmute-button:hover {\n opacity: 0.8;\n }\n\n .gleap-tour-continue-button {\n color: ").concat(l,";\n text-decoration: none;\n cursor: pointer;\n font-size: 14px;\n font-weight: bold;\n border: none;\n background: none;\n padding: 0;\n margin: 0;\n margin-left: 20px;\n }\n\n .gleap-tour-continue-button:hover {\n opacity: 0.8;\n }\n\n body.gl-copilot-fade-out::before,\n body.gl-copilot-fade-out::after,\n body.gl-copilot-fade-out #").concat(Hr," {\n animation: glCoFadeOut 0.8s ease-out forwards;\n }\n ").concat(null===(s=null===(c=this.productTourData)||void 0===c?void 0:c.playVoice)||void 0===s||s?"":"\n .".concat(Hr,"-mute {\n display: none;\n }\n "),"\n ").concat(this.productTourData.gradient?'body::before {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n box-sizing: border-box;\n border: 18px solid transparent;\n filter: blur(25px);\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }\n \n body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0.5;\n box-sizing: border-box;\n border: 3px solid transparent;\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }':'body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0;\n }',"\n "),document.head.appendChild(f));var h=document.createElement("div");h.id=_r,h.style.opacity=0,this._pointerContainer=h;var v=document.createElementNS("http://www.w3.org/2000/svg","svg");v.setAttribute("viewBox","0 0 380 476"),v.innerHTML='';var g=document.createElement("div");g.id="copilot-info-bubble",g.innerHTML="
";var m=document.createElement("div");m.id=Hr,m.classList.add(Hr),m.innerHTML='\n \n ').concat(null===(o=this.productTourData)||void 0===o?void 0:o.kaiSlug,'\n
\n ').concat(p(this.audioMuted?"unmute":"mute"),"\n
\n ").concat(null!==(r=this.productTourData)&&void 0!==r&&r.allowClose?'
\n ').concat(p("dismiss"),"\n
"):"","\n "),document.body.appendChild(m),document.querySelector(".".concat(Hr,"-mute")).addEventListener("click",(function(){a.toggleAudio(!a.audioMuted)})),null!==(i=this.productTourData)&&void 0!==i&&i.allowClose&&document.querySelector(".".concat(Hr,"-dismiss")).addEventListener("click",(function(){a.completeTour(!1)})),h.appendChild(v),h.appendChild(g),document.body.appendChild(h)}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this.productTourData;t&&function(){return qr.apply(this,arguments)}().then((function(n){e.audioMuted=!n,e.setupCopilotTour(),e.audioMuted&&null!=t&&t.showUnmuteModal?e.showAudioUnmuteModal():setTimeout((function(){e.renderNextStep()}),1500)}))}}},{key:"showAudioUnmuteModal",value:function(){var e,t,n,o=this,r=document.createElement("div");r.classList.add("gleap-audio-unmute-modal-overlay");var i=document.createElement("div");i.classList.add("gleap-audio-unmute-modal");var a=document.createElement("p");a.textContent=null===(e=this.productTourData)||void 0===e?void 0:e.unmuteModalTitle,i.appendChild(a);var s=document.createElement("button");s.classList.add("gleap-audio-unmute-button"),s.textContent=null===(t=this.productTourData)||void 0===t?void 0:t.unmuteModalButton,s.addEventListener("click",(function(){o.toggleAudio(!1),r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(s);var c=document.createElement("button");c.classList.add("gleap-tour-continue-button"),c.textContent=null===(n=this.productTourData)||void 0===n?void 0:n.unmuteModalContinue,c.addEventListener("click",(function(){r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(c),r.appendChild(i),document.body.appendChild(r)}},{key:"completeTour",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];"undefined"!=typeof window&&(this.cleanup(),this.onCompleteCallback&&this.onCompleteCallback(e))}},{key:"renderNextStep",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this,n=this.productTourData.steps;if(this.currentActiveIndex>=n.length)setTimeout((function(){e.completeTour()}),500);else{var o=n[this.currentActiveIndex],r=function(n){if(e._pointerContainer.style.display="flex",o.selector&&o.selector.length>0&&!n)e.completeTour(!1);else{var r=function(){if("INPUT"===o.mode&&n){var e,r=function(){document.querySelector("#".concat(_r)).classList.remove("copilot-pointer-container-clickmode"),n.classList.remove("gleap-input-highlight"),document.getElementById(_r).style.display="none",t.currentActiveIndex++,t.storeUncompletedTour(),t.renderNextStep()};if("default"===(null!==(e=o.inputType)&&void 0!==e?e:"default")){var i=function e(t){var o;if(0!==(null==t||null===(o=t.target)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.length)){var i=document.getElementById("copilot-info-bubble-content");i&&(i.innerHTML="".concat(go.translateText("next"),' \n \n'),i.addEventListener("click",r,{once:!0}),n.classList.add("gleap-input-highlight"),document.querySelector("#".concat(_r)).classList.add("copilot-pointer-container-clickmode"),n.removeEventListener("input",e))}};n.addEventListener("input",i,{once:!1}),n.hasAttribute("contenteditable")&&n.addEventListener("keyup",i,{once:!1}),n.addEventListener("blur",(function(){n.focus()}),{once:!0}),n.focus()}else{var a,s=null!==(a=o.inputValue)&&void 0!==a?a:"",c=0;!function e(){c0})).length;return Math.ceil(t/3.6)+1}}(i),s=function(){e.currentAudio=void 0,setTimeout((function(){r()}),1e3*a)};o.voice&&o.voice.length>0?(e.currentAudio=new Audio(o.voice),e.audioMuted&&(e.currentAudio.muted=!0),e.currentAudio.addEventListener("ended",(function(){setTimeout((function(){r()}),1e3)})),e.currentAudio.play().then((function(){})).catch((function(e){s()}))):s()}},i=o.selector?function(e){if("undefined"!=typeof window){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3)/100,n=0;return new Promise((function(o,r){var i=setInterval((function(){var a=document.querySelector(e);a?(clearInterval(i),o(a)):n>=t&&(clearInterval(i),r(new Error("Element not found for selector: ".concat(e)))),n++}),100)}))}}(o.selector):Promise.resolve(null);i.then(r).catch((function(){return r(null)}))}}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Rr(t.prototype,n),o&&Rr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zr(e){return zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(e)}function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0;if(!this.productTourId&&!this.disabled){this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0;var r=this;$e.getInstance().validateProductTour(e).then((function(){return o>0?setTimeout((function(){r.start()}),o):n.start()})).catch((function(e){console.log("Product tour is not live. Cleaning up..."),console.error(e),r.onComplete(!1)}))}}},{key:"onComplete",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={tourId:this.productTourId};e?(kn.notifyEvent("productTourCompleted",t),ki.trackEvent("tour-".concat(this.productTourId,"-completed"),t)):(kn.notifyEvent("productTourQuit",t),ki.trackEvent("tour-".concat(this.productTourId,"-quit"),t)),this.gleapTourObj&&this.gleapTourObj.destroy(),this.gleapTourObj=void 0,this.productTourData=void 0,this.productTourId=void 0,this.currentActiveIndex=void 0,this.clearUncompletedTour()}},{key:"loadUncompletedTour",value:function(){try{var e=JSON.parse(localStorage.getItem(Zr));if(null!=e&&e.tourData&&null!=e&&e.tourId)return e}catch(t){}return null}},{key:"storeUncompletedTour",value:function(){if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Zr,JSON.stringify(e))}catch(t){}else this.clearUncompletedTour()}},{key:"clearUncompletedTour",value:function(){try{localStorage.removeItem(Zr)}catch(e){}}},{key:"start",value:function(){var e=this,t=this.productTourData;if(t){if("cobrowse"===t.tourType)return Ur.getInstance().startWithConfig(this.productTourId,t,(function(t){e.onComplete(t)}));this.unmuted=!1;for(var n=t.steps,o=this,r=[],i=0;i\n \n
').concat(p("unmute"),"
\n ");else{var d="";t.sender&&t.sender.firstName&&(u=!0,d='
\n
\n
').concat(t.sender.firstName,"
\n
")),l="".concat(d,'
').concat(a.message,"
")}var f={disableActiveInteraction:!s&&!c,mode:a.mode,popover:Gr({description:l,popoverClass:"gleap-tour-popover-".concat(a.type," ").concat(!u&&"gleap-tour-popover-no-sender"," ").concat(t.allowClose&&"gleap-tour-popover-can-close")},s?{showButtons:[]}:{})};a.selector&&a.selector.length>0&&(f.element=a.selector),r.push(f)}var h=["next","close"];t.backButton&&h.push("previous"),this.gleapTourObj=Mr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({showProgress:!0,allowKeyboardControl:!1,steps:r},"showProgress",n.length>1),"allowClose",t.allowClose),"nextBtnText",t.nextText),"doneBtnText",t.doneText),"prevBtnText",t.prevText),"showButtons",h),"onHighlightStarted",(function(t,n,o){var r;e.currentActiveIndex=null==o||null===(r=o.state)||void 0===r?void 0:r.activeIndex,e.storeUncompletedTour()})),"onElementNotFound",(function(t){document.removeEventListener("click",v),e.onComplete(!1)})),"onDestroyStarted",(function(){e.gleapTourObj.hasNextStep()?e.onComplete(!1):e.onComplete(!0),document.removeEventListener("click",v)})),"onPopoverRender",(function(t){if(t)for(var n=document.querySelectorAll(".gleap-tour-popover-description img, .gleap-tour-popover-description video"),r=function(){setTimeout((function(){e.gleapTourObj.refresh()}),500),setTimeout((function(){e.gleapTourObj.refresh()}),750)},i=0;ie.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return go.translateText(e)||t}},{key:"_translateWithVars",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return go.translateTextWithVars(e,t)||n}},{key:"getCheckIcon",value:function(){return'\n \n '}},{key:"loadChecklist",value:function(){if(this._isSessionReady&&this._networkManager){var e=this.getAttribute("checklistId");e?(this.activeStep=-1,this._initialActiveSet=!1,this.validateChecklist(e)):(this.renderResponse(),this.checklistData=null,this._hasLoaded=!1)}}},{key:"getQueryParams",value:function(){var e=this._getGleapSessionInstance();if(null==e||!e.session)return"";var t=e.session,n="en";try{void 0!==go&&(n=go.getInstance().getActiveLanguage()||"en")}catch(o){}return"gleapId=".concat(t.gleapId||"","&gleapHash=").concat(t.gleapHash||"","&lang=").concat(n)}},{key:"makeRequest",value:function(e,t,n,o){var r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=new XMLHttpRequest;i.open(e,t);try{r.injectSession(i)}catch(a){}n&&i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.onreadystatechange=function(){4===i.readyState&&o(i)},i.onerror=function(){o(i)},i.send(n?JSON.stringify(n):null)}else o({readyState:4,status:0,responseText:"Session unavailable",_isMock:!0})}},{key:"validateChecklist",value:function(e){var t=this;if(this._isSessionReady&&this._networkManager){this.checklistData=null,this._hasLoaded=!1,this.renderResponse();var n=this.getAttribute("sharedKey");this._networkManager.validateChecklist(e,n).then((function(e){t.isConnected&&t._isSessionReady&&e&&t.fetchChecklist(e)})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1}))}}},{key:"fetchChecklist",value:function(e){var t=this;this._isSessionReady&&this._networkManager&&(this._isInitialLoad=!this._hasLoaded,this._networkManager.fetchChecklist(e).then((function(e){if(!t.isConnected||!t._isSessionReady||!e)return t._hasLoaded=!1,t.checklistData=null,void t._checkSessionAndLoad();if(t.checklistData=e,t._hasLoaded=!0,"done"!==e.status){if(t._isInitialLoad&&!t._initialActiveSet){var n,o=(null===(n=e.outbound)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.steps)||[],r=e.completedSteps||[],i=o.findIndex((function(e){return!r.includes(e.id)}));t.activeStep=i>=0?i:-1,-1!==t.activeStep&&(t._initialActiveSet=!0)}t.renderChecklist(t.checklistData)}else t.renderResponse()})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1})))}},{key:"updateChecklist",value:function(e,t){var n,o,r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=r.apiUrl;if(i){var a=r.session,s=null!==(n=null==a?void 0:a.gleapId)&&void 0!==n?n:"",c=null!==(o=null==a?void 0:a.gleapHash)&&void 0!==o?o:"",l="en";try{void 0!==go&&(l=go.getInstance().getActiveLanguage()||"en")}catch(d){}var u="".concat(i,"/outbound/checklists/").concat(e);t.checkedStep&&(u+="/increment/".concat(t.checkedStep)),u+="?gleapId=".concat(s,"&gleapHash=").concat(c,"&lang=").concat(l),this.makeRequest("PUT",u,t,(function(e){e._isMock||200!==e.status&&e.status}))}}}},{key:"handleChecklistUpdate",value:function(e){if(this._hasLoaded&&this.checklistData){var t=e.detail;if(t&&t.id===this.checklistData.id){var n=$r(this.checklistData.completedSteps||[]),o=!1,r=!1,i=this.activeStep;if(t.completedSteps&&JSON.stringify(t.completedSteps)!==JSON.stringify(n)&&(this.checklistData.completedSteps=$r(t.completedSteps),o=!0,-1!==i)){var a,s=null===(a=this.checklistData.outbound)||void 0===a||null===(a=a.config)||void 0===a||null===(a=a.steps)||void 0===a||null===(a=a[i])||void 0===a?void 0:a.id;s&&this.checklistData.completedSteps.includes(s)&&!n.includes(s)&&(r=!0)}if(t.status&&t.status!==this.checklistData.status&&(this.checklistData.status=t.status,o=!0),r){for(var c,l=(null===(c=this.checklistData.outbound)||void 0===c||null===(c=c.config)||void 0===c?void 0:c.steps)||[],u=-1,d=i+1;d1&&void 0!==arguments[1]?arguments[1]:"checklist-floating",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(null===(t=e.config)||void 0===t?void 0:t.steps)||[],a=(null===(n=this.checklistData)||void 0===n?void 0:n.completedSteps)||[],s=0;if(this.progressbarEnabled&&i.length>0){var c=i.length,l=a.length;s=c>0?l/c*100:0}var u,d,p=i.find((function(e){return!a.includes(e.id)})),f=i.length>0?p?p.title||this._translateWithVars("stepDefaultTitle",{index:i.indexOf(p)+1},"Step ".concat(i.indexOf(p)+1)):"":e.subject||"",h=i.length>0?p&&p.description||"":e.message||"";r&&(f=(null===(u=e.config)||void 0===u?void 0:u.successTitle)||"",h=(null===(d=e.config)||void 0===d?void 0:d.successMessage)||"",s=100);var v=2*Math.PI*7,g=v-s/100*v,m="checklist-floating-header"===o,b=m?'\n \n \n ':'\n \n ';return'\n
\n
\n
\n \n \n \n \n
\n
').concat(f,"
\n ").concat(r?"":''.concat(b,""),'\n
\n
').concat(h,"
\n
\n ")}},{key:"renderInfoSection",value:function(e){var t;if(!this.infoEnabled||!e)return"";var n=e.subject||this._translate("checklistDefaultTitle","Checklist"),o=e.message||"",r="";return null!==(t=e.sender)&&void 0!==t&&t.profileImageUrl&&(r='\n
\n ').concat(e.sender.firstName||\n ').concat(e.sender.firstName||"","\n
")),'\n
\n '.concat(n?'
'.concat(n,"
"):"","\n ").concat(o?'
'.concat(o,"
"):"","\n ").concat(r,"\n
")}},{key:"renderProgressSection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!this.progressbarEnabled||!e.length)return"";var n=e.length,o=t.length,r=n>0?o/n*100:0,i=0;e.forEach((function(e){!t.includes(e.id)&&e.duration>0&&(i+=e.duration)}));var a=this._translateWithVars("taskProgress",{a:o,b:n},"".concat(o," of ").concat(n," done")),s=i>0?this._translateWithVars("aboutMinutes",{a:i},"About ".concat(i," min left")):"";return'\n
\n
'.concat(a,"
\n ").concat(s?'
'.concat(s,"
"):"",'\n
\n
\n
\n
')}},{key:"renderTasks",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&0!==t.length?t.map((function(t,o){var r=n.includes(t.id),i=e.activeStep===o,a=r?''.concat(e.getCheckIcon(),""):''.concat(o+1,""),s=t.title||e._translateWithVars("stepDefaultTitle",{index:o+1},"Step ".concat(o+1)),c=t.description||"",l=t.actionTitle||e._translate("actionDefaultTitle","Action"),u=t.action&&"none"!==t.action?'
\n \n
"):"",d=e._translate("markAsDone","Mark as done"),p=t.allowMarkDone&&!r?'
\n ').concat(e.getCheckIcon(),'\n
').concat(d,"
\n
"):"",f=["checklist-task",r?"checklist-task--done":"",i?"checklist-task--active":""].filter(Boolean).join(" ");return'\n
\n
\n ').concat(a,'\n
').concat(s,'
\n \n \n \n \n \n
\n
\n
\n ').concat(c?'
'.concat(c,"
"):"","\n ").concat(u,"\n ").concat(p,"\n
\n
\n
")})).join(""):"

".concat(this._translate("noStepsDefined","No steps defined."),"

")}},{key:"renderChecklist",value:function(e){var t;if(this._hasLoaded&&e&&e.outbound){var n=e.outbound,o=(null===(t=n.config)||void 0===t?void 0:t.steps)||[],r=e.completedSteps||[],i="";if("done"===e.status||o.length>0&&r.length>=o.length){var a,s,c=(null===(a=n.config)||void 0===a?void 0:a.successTitle)||"",l=(null===(s=n.config)||void 0===s?void 0:s.successMessage)||"";i=this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-launcher",!0):'\n
\n
\n '.concat(this.getCheckIcon(),'\n
\n
').concat(c,'
\n
').concat(l,"
\n
"),-1!==this.activeStep&&(this.activeStep=-1)}else i='\n
\n '.concat(this.floatingEnabled?"":this.renderInfoSection(n),"\n ").concat(this.floatingEnabled?"":this.renderProgressSection(o,r),"\n ").concat(this.floatingEnabled?this.renderFloatingLauncher(n):"",'\n
\n ').concat(this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-header"):"","\n ").concat(this.renderTasks(o,r),"\n
\n
");var u=ut.getInstance().getFlowConfig(),d=u.color?u.color:"#485BFF",p="\n \n ');this.shadowRoot.innerHTML=p+i,this.addTaskEventListeners(),this.floatingEnabled&&this.addFloatingClickListeners(),-1!==this.activeStep&&this.toggleTask(this.activeStep,!0)}else this._checkSessionAndLoad()}},{key:"updateActiveTaskMaxHeight",value:function(){if(-1!==this.activeStep){var e=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body-inner')),t=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body'));if(e&&t){var n=e.offsetHeight;t.style.setProperty("--task-body-active-height","".concat(n,"px"))}}}},{key:"addTaskEventListeners",value:function(){var e=this;this.shadowRoot.querySelectorAll(".checklist-task").forEach((function(t){var n=t.querySelector(".checklist-task-header"),o=parseInt(t.getAttribute("data-task-index"),10);n&&n.addEventListener("click",(function(){var t=e.activeStep===o?-1:o;e.setActiveStep(t)}));var r=t.querySelector(".checklist-task-body-markdone");r&&r.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps){var r=e.checklistData.outbound.config.steps[o];if(r){var i=e.activeStep;if(e.checklistData.completedSteps||(e.checklistData.completedSteps=[]),!e.checklistData.completedSteps.includes(r.id)){e.checklistData.completedSteps.push(r.id);var a=e.checklistData.outbound.config.steps,s=-1;if(i===o){for(var c=o+1;c0&&e.checklistData.completedSteps.length>=a.length&&(e.checklistData.status="done",l.status="done"),e.updateChecklist(e.checklistData.id,l)}}}}));var i=t.querySelector(".checklist-task-body-action .action-button");i&&i.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps&&void 0!==ki){var r=e.checklistData.outbound.config.steps[o];if(r&&r.action&&"none"!==r.action)try{"BOT"===r.action?ki.startBot(r.botId):"CUSTOM_ACTION"===r.action?ki.triggerCustomAction(r.actionBody):"REDIRECT_URL"===r.action?ki.openURL(r.actionBody,!!r.actionOpenInNewTab):"FEEDBACK_FLOW"===r.action?ki.startFeedbackFlow(r.formId):"NEWS_ARTICLE"===r.action?ki.openNewsArticle(r.articleId):"HELP_ARTICLE"===r.action?ki.openHelpCenterArticle(r.articleId):"CHECKLIST"===r.action&&ki.startChecklist(r.checklistId,!0,null==r?void 0:r.sharedKey)}catch(i){}}}))}))}},{key:"setActiveStep",value:function(e){var t=this,n=this.activeStep;this.activeStep=e;var o=[];-1!==n&&n!==this.activeStep&&o.push({index:n,open:!1}),-1!==this.activeStep&&this.activeStep!==n&&o.push({index:this.activeStep,open:!0}),o.forEach((function(e){var n=e.index,o=e.open;t.toggleTask(n,o)}))}},{key:"toggleTask",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(e,'"]'));if(n){var o=n.querySelector(".checklist-task-header");if(o){var r=n.classList.contains("checklist-task--active"),i=null!==t?t:!r;if(i&&!r){n.classList.add("checklist-task--active"),o.setAttribute("aria-expanded","true");var a=n.querySelector(".checklist-task-body-inner");if(a){var s=a.offsetHeight,c=n.querySelector(".checklist-task-body");c&&c.style.setProperty("--task-body-active-height","".concat(s,"px"))}}else!i&&r&&(n.classList.remove("checklist-task--active"),o.setAttribute("aria-expanded","false"))}}}}],r=[{key:"observedAttributes",get:function(){return["checklistId","info","progressbar","dark","floating","sharedKey"]}}],o&&ti(n.prototype,o),r&&ti(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ri(HTMLElement));"undefined"==typeof customElements||customElements.get("gleap-checklist")||customElements.define("gleap-checklist",e)}}();var gi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hi(this,"initialized",!1),hi(this,"offlineMode",!1),hi(this,"disablePageTracking",!1),hi(this,"disableInAppNotifications",!1),hi(this,"globalData",{screenRecordingData:null,webReplay:null,snapshotPosition:{x:0,y:0}}),"undefined"!=typeof window&&(Yt.getInstance(),on.getInstance().start(),dn.getInstance().start(),xr.getInstance().start())}var t,n,o;return t=e,n=[{key:"isLiveMode",value:function(){if(!0===this.offlineMode)return!1;var e=window.location.hostname;return!(["localhost","127.0.0.1","0.0.0.0","","::1"].includes(e)||e.startsWith("192.168.")||e.startsWith("10.0.")||e.endsWith(".local")||!e.includes("."))}},{key:"softReInitialize",value:function(){Gt.getInstance().destroy(),ut.getInstance().start().then((function(){a.getInstance().refresh(),Ao.getInstance().injectNotificationUI()})).catch((function(e){console.warn("Failed to initialize Gleap.")}))}},{key:"performActions",value:function(t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"INFO";on.getInstance().addLog(e,t)}},{key:"initialize",value:function(t){var n=this.getInstance();if(n.initialized)console.warn("Gleap already initialized.");else{n.initialized=!0;try{!function(){try{if("visualViewport"in window&&/iPad|iPhone|iPod/.test(navigator.userAgent)){var e=function(){try{var e=document.querySelector(".gleap-frame-container-inner iframe");if(!e)return;window.visualViewport.height1&&void 0!==arguments[1]&&arguments[1];Gt.getInstance().urlHandler(e,t)}},{key:"checkForUrlParams",value:function(){if("undefined"!=typeof window&&window.location.search)try{var t=new URLSearchParams(window.location.search),n=t.get("gleap_widget");n&&n.length>0&&e.open();var o=t.get("gleap_conversation");o&&o.length>0&&("true"===o?e.startConversation(!0):e.startBot(o,!0));var r=t.get("gleap_feedback");r&&r.length>0&&e.startFeedbackFlow(r);var i=t.get("gleap_survey"),a=t.get("gleap_survey_format");i&&i.length>0&&e.showSurvey(i,"survey_full"===a?"survey_full":"survey");var s=t.get("gleap_tour");if(s&&s.length>0){var c=parseInt(t.get("gleap_tour_delay"));isNaN(c)&&(c=2),setTimeout((function(){e.startProductTour(s)}),1e3*c)}}catch(l){}}},{key:"destroy",value:function(){Zn.getInstance().stop(),rt.getInstance().stop(),Gt.getInstance().destroy(),a.getInstance().toggleFeedbackButton(!1),Ao.getInstance().clearAllNotifications(!0),$e.getInstance().clearSession(0,!1),_o.getInstance().removeBannerUI()}},{key:"closeBanner",value:function(){_o.getInstance().removeBannerUI()}},{key:"closeModal",value:function(){Go.getInstance().hideModal()}},{key:"setUseCookies",value:function(e){$e.getInstance().useCookies=e}},{key:"identify",value:function(e,t,n){return $e.getInstance().identifySession(e,k(t),n)}},{key:"updateContact",value:function(e){return $e.getInstance().updateSession(k(e))}},{key:"clearIdentity",value:function(){$e.getInstance().clearSession()}},{key:"getIdentity",value:function(){return $e.getInstance().getSession()}},{key:"isUserIdentified",value:function(){var e=$e.getInstance().session;return!!(e&&e.userId&&e.userId.length>0)}},{key:"isOpened",value:function(){return Gt.getInstance().isOpened()}},{key:"hide",value:function(){Gt.getInstance().hideWidget()}},{key:"setMaxNetworkRequests",value:function(e){b.getInstance().setMaxRequests(e)}},{key:"startNetworkLogger",value:function(){b.getInstance().start()}},{key:"setNetworkLogsBlacklist",value:function(e){b.getInstance().setBlacklist(e)}},{key:"setNetworkLogPropsToIgnore",value:function(e){b.getInstance().setFilters(e)}},{key:"setReplayOptions",value:function(e){Zn.getInstance().setOptions(e)}},{key:"close",value:function(){Gt.getInstance().hideWidget()}},{key:"open",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().showWidget()}},{key:"trackEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"logEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"preFillForm",value:function(e){var t=k(e);Lo.getInstance().formPreFill=t,Gt.getInstance().sendMessage({name:"prefill-form-data",data:t},!0)}},{key:"on",value:function(e,t){kn.on(e,t)}},{key:"enableShortcuts",value:function(e){e?ko.getInstance().start():ko.getInstance().stop()}},{key:"showFeedbackButton",value:function(e){a.getInstance().toggleFeedbackButton(e)}},{key:"setAppVersionCode",value:function(e){Yt.setAppVersionCode(e)}},{key:"setAppBuildNumber",value:function(e){Yt.setAppBuildNumber(e)}},{key:"setWSApiUrl",value:function(e){$e.getInstance().wsApiUrl=e}},{key:"setApiUrl",value:function(e){$e.getInstance().apiUrl=e}},{key:"setBannerUrl",value:function(e){_o.getInstance().setBannerUrl(e)}},{key:"setModalUrl",value:function(e){Go.getInstance().setModalUrl(e)}},{key:"setFrameUrl",value:function(e){Gt.getInstance().frameUrl=e}},{key:"setTicketAttribute",value:function(e,t){gn.getInstance().setTicketAttribute(e,t)}},{key:"unsetTicketAttribute",value:function(e){gn.getInstance().unsetTicketAttribute(e)}},{key:"clearTicketAttributes",value:function(){gn.getInstance().clearTicketAttributes()}},{key:"attachCustomData",value:function(e){gn.getInstance().attachCustomData(e)}},{key:"setCustomData",value:function(e,t){gn.getInstance().setCustomData(e,t)}},{key:"removeCustomData",value:function(e){gn.getInstance().removeCustomData(e)}},{key:"clearCustomData",value:function(){gn.getInstance().clearCustomData()}},{key:"playSound",value:function(e){Yo.playSound(e)}},{key:"showTabNotificationBadge",value:function(e){var t=Ao.getInstance();t.showNotificationBadge=e,t.updateTabBarNotificationCount()}},{key:"setLanguage",value:function(t){go.getInstance().setOverrideLanguage(t),e.getInstance().initialized&&setTimeout((function(){e.getInstance().softReInitialize(),e.updateContact({lang:t})}),1e3)}},{key:"registerCustomAction",value:function(e){En.registerCustomAction(e)}},{key:"triggerCustomAction",value:function(e){En.triggerCustomAction(e)}},{key:"setStyles",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#ffffff",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:20,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:20,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:a.FEEDBACK_BUTTON_BOTTOM_LEFT;L((function(){!function(e,t,n,o,r,i,s,c){var l=d(e),p=d(n),f=d(r),h=d(t),v="#ffffff"===f,g=u(t,"#ffffff"===h?-35:-15),m=u(r,v?100:-120),b=u(r,v?30:-12),y=u(r,v?80:-30),w=(o=parseInt(o,10),Math.round(1.05*o)),k=Math.round(.8*o),x=Math.round(.6*o),S=Math.round(.4*o),C=Math.round(.25*o),I=57+s;c===a.FEEDBACK_BUTTON_CLASSIC_BOTTOM?I=s+15:(c&&c.includes("CLASSIC")||c===a.FEEDBACK_BUTTON_NONE)&&(I=s);var L='\n .gleap-font, .gleap-font * {\n font-style: normal;\n font-variant-caps: normal;\n font-variant-ligatures: normal;\n font-variant-numeric: normal;\n font-variant-east-asian: normal;\n font-weight: normal;\n font-stretch: normal;\n font-size: 100%;\n line-height: 1;\n font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n }\n .gleap-input-highlight {\n box-shadow: 0 0 0 3px '.concat(e," !important;\n }\n .gleap-frame-container {\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n width: calc(100% - 40px);\n max-width: 410px;\n position: fixed;\n z-index: ").concat(2147483631,";\n visibility: visible;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.16);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n animation-duration: .3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n user-select: none;\n pointer-events: none;\n transition: max-width 0.3s ease-out;\n }\n\n .gleap-admin-highlight {\n box-shadow: 0px 0px 0px 4px red;\n }\n\n :root {\n --gleap-margin-top: 50px;\n }\n\n .gleap-tooltip-anchor {\n position: relative;\n display: inline-block;\n float: left;\n max-width: 0px;\n width: 17px;\n }\n\n .gleap-tooltip-hotspot {\n position: absolute;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n }\n\n @keyframes gleap-pulse {\n 0% {\n transform: scale(0);\n opacity: 0.25;\n }\n 45% {\n transform: scale(2.5);\n opacity: 0;\n }\n 100% {\n transform: scale(0);\n opacity: 0;\n }\n }\n\n .gleap-tooltip-hotspot-animation {\n position: absolute;\n border-radius: 17px;\n opacity: 0.25;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n animation: gleap-pulse 5s infinite;\n }\n\n .gleap-tooltip-hotspot svg {\n width: 17px;\n height: 17px;\n object-fit: contain;\n display: block;\n }\n\n .gleap-tooltip-inner {\n position: relative;\n overflow: visible;\n font-size: 14px;\n font-weight: normal;\n color: #000;\n line-height: 1.3;\n }\n\n .gleap-tooltip {\n position: absolute;\n background-color: #fff;\n color: #000;\n font-size: 15px;\n line-height: 18px;\n padding: 16px;\n padding-top: 8px;\n padding-bottom: 8px;\n border-radius: 4px;\n max-width: min(350px, 80vw);\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.2s, visibility 0.2s;\n z-index: ").concat(2147483700,";\n }\n\n .gleap-tooltip a {\n color: ").concat(e,";\n text-decoration: underline;\n display: inline !important;\n margin: 0px !important;\n padding: 0px !important;\n word-break: break-word;\n }\n\n .gleap-tooltip ul {\n padding-left: 16px;\n }\n\n .gleap-tooltip b {\n font-weight: 600;\n }\n\n .gleap-tooltip h2 {\n font-size: 18px;\n line-height: 20px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip h3 {\n font-size: 16px;\n line-height: 18px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip p {\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip img {\n max-width: 100%;\n max-height: 300px;\n width: 100%;\n height: auto;\n object-fit: cover;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip iframe,\n .gleap-tooltip video {\n max-width: 100%;\n width: 100%;\n height: auto;\n min-height: 200px;\n display: block;\n border: none;\n outline: none;\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip-arrow {\n position: absolute;\n width: 20px;\n height: 20px;\n }\n\n .gleap-tooltip-arrow svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n\n .gleap-b-frame {\n width: 100%;\n height: 100%;\n border: none;\n pointer-events: auto;\n padding: 0px;\n margin: 0px;\n }\n\n .gleap-b-shown {\n transition: margin 0.3s ease-out;\n margin-top: var(--gleap-margin-top);\n position: relative;\n z-index: 10000;\n }\n\n .gleap-b-f {\n margin-top: 0px;\n }\n\n .gleap-b {\n display: none;\n position: absolute;\n top: calc(-1 * var(--gleap-margin-top));\n left: 0px;\n width: 100vw;\n height: var(--gleap-margin-top);\n z-index: ").concat(2147483699,";\n }\n\n @keyframes gleapSlideIn {\n from {\n top: calc(-1 * var(--gleap-margin-top));\n }\n to {\n top: 10px;\n }\n }\n\n .gleap-b-f .gleap-b {\n position: fixed;\n top: 10px;\n animation: gleapSlideIn .25s ease-out forwards;\n max-width: 800px;\n width: calc(100% - 20px);\n left: 50%;\n z-index: ").concat(2147483699,";\n transform: translateX(-50%);\n border-radius: ").concat(S,"px;\n overflow: hidden;\n box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15), 0px 5px 5px rgba(0, 0, 0, 0.05);\n }\n\n .gleap-b-shown .gleap-b {\n display: block;\n }\n\n .gleap-image-view {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n z-index: ").concat(2147483699,";\n background-color: ").concat(f,"cc;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-image-view-image {\n width: 90%;\n height: auto;\n max-width: 90%;\n max-height: 90%;\n object-fit: contain;\n }\n\n .gleap-image-view-close {\n position: fixed;\n top: 20px;\n right: 20px;\n width: 32px;\n height: 32px;\n opacity: 0.8;\n z-index: ").concat(2147483740,";\n box-shadow: 0px 5px 18px rgba(0, 0, 0, 0.16);\n cursor: pointer;\n }\n\n .gleap-image-view-close:hover {\n opacity: 1;\n }\n\n .gleap-image-view-close svg path {\n fill: ").concat(r,";\n }\n\n [dir=rtl].gleap-frame-container {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,'px;\n }\n\n .gleap-frame-container--loading iframe {\n opacity: 0;\n }\n\n .gleap-frame-container--loading::before {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 130deg,\n ').concat(g," 0%,\n ").concat(t,' 100%\n );\n }\n \n .gleap-frame-container--loading::after {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 180deg,\n transparent 60%,\n ').concat(r,"1A 70%,\n ").concat(r," 100%\n );\n }\n\n .gleap-frame-container--loading-nogradient::before {\n max-height: 340px;\n background: ").concat(t," !important;\n }\n\n .gleap-frame-container--loading-nofade::after {\n display: none !important;\n }\n\n .gleap-frame-container--survey {\n bottom: ").concat(s,"px !important;\n }\n\n .gleap-frame-container--extended {\n max-width: 690px !important;\n }\n\n .gleap-frame-container--survey-full {\n position: fixed;\n top: 0 !important;\n left: 0 !important;\n bottom: 0 !important;\n right: 0 !important;\n width: 100vw !important;\n max-width: 100vw !important;\n height: 100vh !important;\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(6px);\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n max-height: 100vh !important;\n border-radius: 0 !important;\n animation-name: none !important;\n }\n\n .gleap-frame-container--survey-full .gleap-frame-container-inner {\n max-width: 640px !important;\n width: calc(100% - 24px);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n }\n\n .gleap-frame-container--classic {\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--classic-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--modern-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n [dir=rtl].gleap-frame-container--modern-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n .gleap-frame-container--animate {\n pointer-events: auto !important;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n @keyframes gleapFadeInUpMobile {\n from {\n opacity: 0;\n transform: translate3d(0, 10%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n .gleap-notification-container {\n position: fixed;\n bottom: ").concat(I,"px;\n right: ").concat(i,"px;\n z-index: ").concat(2147483630,";\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n width: 100%;\n max-width: min(340px, 80vw);\n }\n\n .gleap-notification-container--left {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container--left {\n left: initial !important;\n right: ").concat(i,"px !important;\n align-items: flex-start !important;\n }\n\n .gleap-notification-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n .gleap-notification-item {\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n .gleap-notification-close {\n border-radius: 100%;\n width: 28px;\n height: 28px;\n background-color: ").concat(m,";\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 8px;\n cursor: pointer;\n visibility: hidden;\n pointer-events: none;\n }\n\n .gleap-notification-container:hover .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n }\n\n .gleap-notification-close svg {\n width: 45%;\n height: 45%;\n object-fit: contain;\n fill: ").concat(r,";\n }\n\n .gleap-notification-item-checklist-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n cursor: pointer;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-checklist-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n width: 100%;\n width: min(310px, 70vw);\n max-width: min(310px, 70vw);\n }\n\n .gleap-notification-item-checklist-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 10px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-checklist-content-progress {\n width: 100%;\n height: 8px;\n border-radius: 8px;\n background-color: ").concat(b,";\n }\n\n .gleap-notification-item-checklist-content-progress-inner {\n height: 100%;\n border-radius: 8px;\n background-color: ").concat(e,";\n }\n\n .gleap-notification-item-checklist-content-next {\n color: ").concat(m,";\n font-size: 15px;\n font-weight: normal;\n line-height: 21px;\n margin-top: 10px;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n }\n\n .gleap-notification-item-checklist-content-next svg {\n height: 18px;\n margin-right: 5px;\n width: auto;\n }\n\n .gleap-notification-item-checklist-content-next b {\n font-size: 15px;\n font-weight: normal;\n color: ").concat(f,";\n }\n\n .gleap-notification-item-news {\n width: 100%;\n }\n\n .gleap-news-pagination {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 10px;\n width: 100%;\n }\n\n .gleap-news-page-indicator {\n font-size: 12px;\n color: ").concat(m,";\n }\n\n .gleap-news-next-button {\n background-color: ").concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 5px 10px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;^\n }\n\n .gleap-notification-item-news-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n }\n\n .gleap-notification-item-news-preview {\n color: ").concat(m,";\n font-size: 14px;\n line-height: 21px;\n font-weight: 400;\n overflow-wrap: break-word;\n word-break: break-word;\n display: block;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-news-sender {\n display: flex;\n align-items: center;\n color: ").concat(m,";\n font-size: 15px;\n line-height: 21px;\n font-weight: 400;\n }\n \n .gleap-notification-item-news-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 6px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n cursor: pointer;\n }\n\n .gleap-notification-item-news-sender img {\n border-radius: 100%;\n height: 20px;\n margin-right: 8px;\n object-fit: cover;\n width: 20px;\n }\n\n [dir=rtl] .gleap-notification-item-news-sender img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-news-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-news-image {\n background-color: ").concat(m,";\n height: 170px;\n max-height: 170px;\n object-fit: cover;\n width: 100%;\n cursor: pointer;\n }\n \n .gleap-notification-item-news-content-title:hover {\n color: ").concat(e,";\n }\n\n .gleap-notification-item {\n display: flex;\n align-items: flex-end;\n cursor: pointer;\n }\n\n .gleap-notification-item img {\n width: 32px;\n height: 32px;\n min-width: 32px;\n border-radius: 100%;\n object-fit: cover;\n margin-right: 8px;\n margin-bottom: 12px;\n cursor: pointer;\n }\n\n [dir=rtl] .gleap-notification-item img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-container {\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n border-bottom-left-radius: 0px;\n padding: 20px;\n background-color: ").concat(r,";\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 15px;\n line-height: 21px;\n color: ").concat(f,';\n position: relative;\n }\n\n .gleap-notification-item-container::after {\n content: " ";\n position: absolute;\n bottom: 0px;\n width: 0px;\n height: 0px;\n left: -6px;\n border-style: solid;\n border-width: 0px 0px 10px 6px;\n border-color: transparent transparent ').concat(r,";\n }\n\n .gleap-notification-item-sender {\n color: ").concat(m,";\n line-height: 20px;\n }\n\n .gleap-notification-item-content {\n line-height: 20px;\n color: ").concat(f,";\n margin-top: 4px;\n min-width: min(200px, 50vw);\n word-wrap: break-word;\n word-break: break-word;\n }\n\n .gleap-frame-container-inner {\n position: relative;\n width: 100%;\n height: calc(100vh - ").concat(130+s,"px);\n max-height: ").concat(700,'px;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: calc(100vh - 40px);\n }\n \n .gleap-frame-container-inner:before {\n content: " ";\n position: absolute;\n width: 100%;\n height: calc(100% - ').concat(k,"px);\n top: ").concat(k,"px;\n background-color: ").concat(r,";\n z-index: -1;\n }\n \n .gleap-frame-container iframe {\n height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n display: block !important;\n pointer-events: auto !important;\n }\n \n .gleap-frame-container--hidden {\n display: none !important;\n pointer-events: none;\n animation: none !important;\n }\n \n .bb-feedback-button {\n margin: 0px;\n position: fixed;\n bottom: ").concat(s,"px;\n right: ").concat(i,"px;\n border-radius: 30px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n color: #000000;\n z-index: ").concat(2147483630,";\n box-sizing: border-box;\n display: flex;\n align-items: center;\n padding: 0px;\n }\n\n [dir=rtl].bb-feedback-button {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n \n .bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n\n [dir=rtl].bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: ").concat(i,'px;\n left: auto;\n }\n \n .bb-feedback-button--disabled {\n display: none !important;\n }\n\n .bb-feedback-button--hidden {\n display: none !important;\n }\n \n .bb-feedback-button-text {\n padding: 8px 12px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n background-color: #fff;\n border-radius: 8px;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.15);\n position: relative;\n z-index: 99;\n }\n \n .bb-feedback-button-text:before {\n content: "";\n position: absolute;\n box-shadow: rgba(0, 0, 0, 0.04) 6px 6px 5px;\n transform: rotate(315deg);\n bottom: 16px;\n right: -4px;\n border-width: 10px;\n border-style: solid;\n border-color: transparent #fff #fff transparent;\n }\n \n .bb-feedback-button--bottomleft .bb-feedback-button-text:before {\n display: none;\n }\n \n .bb-feedback-button-text:after {\n content: "";\n position: absolute;\n bottom: 12px;\n right: 0px;\n background-color: #fff;\n width: 5px;\n height: 30px;\n }\n \n .bb-feedback-button-text-title {\n font-family: sans-serif;\n font-size: 14px;\n color: #666;\n line-height: 18px;\n max-width: 220px;\n }\n \n .bb-feedback-button-text-title b {\n color: #000000;\n font-weight: 600;\n }\n\n .bb-notification-bubble {\n position: absolute;\n top: -5px;\n right: -5px;\n min-width: 12px;\n padding: 0px 4px;\n height: 20px;\n min-width: 20px;\n border-radius: 20px;\n background-color: red;\n color: #fff;\n font-size: 11px;\n font-family: sans-serif;\n text-align: center;\n line-height: 20px;\n }\n\n .bb-notification-bubble--hidden {\n display: none;\n }\n \n .bb-feedback-button-icon {\n width: 48px;\n height: 48px;\n border-radius: 48px;\n background-color: #485bff;\n transition: box-shadow, transform 0.2s ease-in-out;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n position: relative;\n }\n \n .bb-feedback-button-classic {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n top: 50%;\n right: 0px;\n position: fixed;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n padding: 9px 20px;\n text-align: center;\n background-color: #485bff;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n font-family: sans-serif;\n font-size: 16px;\n color: #fff;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.25);\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n \n .bb-feedback-button-classic--left {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--left {\n top: 50%;\n right: 0px;\n left: auto;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n }\n \n .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n right: ').concat(i,"px;\n left: auto;\n }\n \n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n left: ").concat(i,"px;\n right: auto;\n }\n\n .bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n \n .bb-feedback-button--open.bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeOutRight;\n }\n \n .bb-feedback-button .bb-logo-logo {\n position: absolute;\n width: 30px;\n height: 30px;\n top: 9px;\n left: 9px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n position: absolute;\n width: 14px;\n height: 14px;\n top: 17px;\n left: 17px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button--open .bb-logo-arrowdown {\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button--open .bb-logo-logo {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button-icon:hover {\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25), 0px 0px 20px rgba(0, 0, 0, 0.2);\n transform: scale(1.1);\n }\n \n .bb-feedback-button--open .bb-feedback-button-text {\n animation-name: bbFadeOutDown;\n }\n \n .bb-feedback-button--open .bb-feedback-button-icon {\n display: flex;\n }\n \n .bb-capture-svg {\n position: fixed;\n z-index: ").concat(2147483614,";\n top: 0px;\n left: 0px;\n right: 0px;\n width: 100%;\n height: 100%;\n padding: 0px;\n margin: 0px;\n cursor: crosshair;\n }\n\n .bb-capture-svg--preview {\n cursor: auto !important;\n }\n \n .bb-rec-on-circle {\n animation-name: bbRecIconFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-rec-on-cont {\n animation-name: bbRecIconContFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-capture-editor-drag-info {\n position: fixed;\n top: -200px;\n left: 0px;\n z-index: ").concat(2147483616,";\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-editor-drag-info svg {\n width: 24px;\n height: 24px;\n }\n \n .bb-capture-editor-borderlayer {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n border: 4px solid ").concat(e,";\n cursor: crosshair;\n z-index: ").concat(2147483610,";\n box-sizing: border-box;\n pointer-events: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-borderlayer {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n .bb-capture-editor-recording .bb-capture-editor-borderlayer {\n border: 4px solid #eb144c !important;\n }\n \n .bb-capture-editor-recording .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-editor-item-inactive {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-toolbar-drawingitem {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-svg {\n pointer-events: none !important;\n }\n \n .bb-capture-toolbar {\n position: fixed;\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,";\n background-color: #fff;\n padding: 5px;\n display: flex;\n align-items: center;\n border-radius: 8px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-dismiss {\n position: fixed;\n top: 0px;\n right: 0px;\n z-index: ").concat(2147483618,";\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n width: 36px;\n height: 36px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: ").concat(e,";\n border-bottom-left-radius: ").concat(C,"px;\n }\n\n [dir=rtl] .bb-capture-dismiss {\n top: 0px;\n left: 0px;\n right: auto;\n border-bottom-left-radius: 0px !important;\n border-bottom-right-radius: ").concat(C,"px;\n }\n \n .bb-capture-dismiss svg path {\n fill: ").concat(l,';\n }\n \n .bb-capture-dismiss svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n \n .bb-capture-button-next {\n font-family: sans-serif;\n box-sizing: border-box;\n font-weight: 600;\n text-align: center;\n width: auto;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n margin: 0px;\n line-height: 36px;\n padding: 0px 12px;\n font-size: 15px;\n margin-left: 12px;\n }\n\n [dir=rtl].bb-capture-editor .bb-capture-button-next {\n margin-left: auto;\n margin-right: 12px;\n }\n \n .bb-capture-toolbar-item-spacer {\n width: 1px;\n height: 38px;\n min-width: 1px;\n margin: 0px 5px;\n }\n \n .bb-capture-toolbar-item {\n width: 42px;\n height: 38px;\n min-width: 42px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n position: relative;\n margin-right: 5px;\n }\n\n .drag-handle-item {\n cursor: grab !important;\n width: 34px;\n min-width: 34px;\n }\n\n .drag-handle-item svg {\n width: 18px !important;\n height: 18px !important;\n }\n \n .bb-capture-toolbar-item svg {\n width: 23px;\n height: 23px;\n object-fit: contain;\n }\n \n .bb-capture-toolbar-item-selectedcolor {\n border-radius: 100%;\n width: 20px;\n height: 20px;\n background-color: #db4035;\n }\n \n .bb-capture-toolbar-item[data-type="undo"] svg {\n width: 18px;\n height: 18px;\n }\n \n .bb-capture-toolbar-item[data-active="true"] {\n position: relative;\n }\n \n .bb-capture-preview {\n display: none;\n background-color: rgba(0, 0, 0, 0.6);\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n justify-content: center;\n align-items: center;\n z-index: ').concat(2147483620,";\n }\n \n .bb-capture-preview-inner {\n background-color: #fff;\n padding: 0px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n flex-direction: column;\n max-width: 640px;\n width: 100%;\n margin: 20px;\n }\n \n .bb-capture-preview-inner video {\n border-radius: 8px 8px 0px 0px;\n display: block;\n border: 0px;\n outline: none;\n width: 100%;\n max-height: 60vh;\n }\n \n .bb-capture-preview-buttons {\n display: flex;\n justify-content: space-between;\n padding: 14px;\n }\n \n .bb-capture-preview-retrybutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-sendbutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-retrybutton:hover,\n .bb-capture-preview-sendbutton:hover {\n opacity: 0.9;\n }\n \n .bb-capture-toolbar-item-recording {\n margin-right: 0px;\n }\n \n .bb-capture-toolbar-item-recording svg {\n width: 33px;\n height: 33px;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n position: fixed;\n top: 70px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,';\n background-color: #fff;\n display: none;\n padding: 10px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n }\n \n .bb-capture-toolbar-item-color {\n width: 20px;\n height: 20px;\n border-radius: 100%;\n margin-right: 12px;\n box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-toolbar-item-color:hover {\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);\n }\n \n .bb-capture-toolbar-item-color:last-of-type {\n margin-right: 0px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color {\n margin-right: auto;\n margin-left: 12px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color:last-of-type {\n margin-right: auto;\n margin-left: 0px;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:first-of-type {\n display: none;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:nth-of-type(2) {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:first-of-type {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:nth-of-type(2) {\n display: none;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #eee;\n }\n \n .bb-capture-toolbar-item:hover svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #f8f8f8;\n }\n \n .bb-capture-toolbar-item--active svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--inactivecross::before {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 3px;\n width: 26px;\n margin: auto;\n border-radius: 4px;\n background-color: #e80000;\n transform: rotate(45deg);\n }\n \n .bb-capture-toolbar-item--inactivecross svg {\n fill: #eee;\n }\n \n .bb-capture-toolbar-item-timer {\n text-align: left;\n line-height: 32px;\n font-size: 14px;\n font-family: sans-serif;\n margin: 5px;\n min-width: 40px;\n display: none;\n }\n \n .bb-capture-toolbar-item .bb-tooltip {\n background-color: #555;\n color: #fff;\n visibility: hidden;\n font-size: 14px;\n font-family: sans-serif;\n text-align: center;\n padding: 5px 10px;\n position: absolute;\n z-index: 1;\n top: 45px;\n left: 0px;\n transform: translateX(calc(-50% + 21px));\n opacity: 0;\n transition: opacity 0.3s;\n white-space: nowrap;\n }\n \n .bb-capture-toolbar-item .bb-tooltip::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n transform: rotate(180deg);\n border-color: #555 transparent transparent transparent;\n }\n \n .bb-capture-toolbar-item:hover .bb-tooltip {\n visibility: visible;\n opacity: 1;\n }\n \n .bb-capture-options {\n display: none;\n }\n \n .bb-capture-options--active {\n display: flex;\n }\n\n @keyframes bbFadeOutRight {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbFadeOutDown {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n }\n \n @keyframes bbFadeInOpacity {\n from {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n @keyframes bbZoomOut {\n from {\n opacity: 1;\n }\n \n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbZoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n 50% {\n opacity: 1;\n }\n }\n \n @keyframes bbRecIconContFade {\n 0% {\n fill: #b10802;\n }\n 50% {\n fill: #ff0000;\n }\n 100% {\n fill: #b10802;\n }\n } \n .bb-capture-preview-retrybutton {\n color: ').concat(f,";\n border-radius: ").concat(w,"px;\n background-color: ").concat(b,";\n }\n .bb-capture-preview-retrybutton:hover {\n background-color: ").concat(y,";\n }\n @keyframes bb-suc-fill {\n 100% {\n box-shadow: inset 0px 0px 0px 30px ").concat(e,";\n }\n }\n .bb-capture-toolbar-item-spacer {\n background-color: ").concat(b,";\n }\n .bb-tooltip {\n border-radius: ").concat(S,"px;\n }\n @keyframes bbRecIconFade {\n 0% {\n fill: transparent;\n }\n 50% {\n fill: ").concat(y,";\n }\n 100% {\n fill: transparent;\n }\n }\n .bb-capture-preview-sendbutton {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(w,"px;\n }\n .bb-capture-button-next {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(C,"px;\n }\n .bb-capture-preview-inner {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-timer {\n color: ").concat(m,";\n }\n .bb-svg-path {\n fill: ").concat(f,";\n }\n .bb-capture-toolbar-item {\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-colorpicker {\n background-color: ").concat(r,";\n }\n .bb-capture-toolbar-item--active {\n background-color: ").concat(b,";\n }\n .bb-feedback-button-classic {\n border-top-left-radius: ").concat(S,"px;\n border-top-right-radius: ").concat(S,"px;\n }\n .bb-logo-logo--default path {\n fill: ").concat(p,";\n }\n .bb-logo-arrowdown {\n fill: ").concat(p,";\n }\n .bb-feedback-button-icon {\n background-color: ").concat(n,";\n }\n .bb-feedback-button-classic {\n background-color: ").concat(n,";\n color: ").concat(p,";\n }\n\n @media only screen and (max-width: 450px) {\n [dir=rtl].gleap-frame-container,\n .gleap-frame-container {\n left: 0px;\n right: 0px;\n width: 100vw;\n max-width: 100vw;\n min-height: 100vh;\n min-height: -webkit-fill-available;\n max-height: -webkit-fill-available;\n top: 0px;\n bottom: 0px;\n border-radius: 0px;\n animation-name: gleapFadeInUpMobile;\n }\n\n .gleap-frame-container-inner {\n width: 100vw;\n height: 100%;\n }\n\n .gleap-frame-container:not(.gleap-frame-container--survey):not(.gleap-frame-container--survey-full) .gleap-frame-container-inner {\n max-height: calc(var(--glvh, 1vh) * 100) !important;\n }\n\n .gleap-frame-container--survey {\n height: auto !important;\n top: initial !important;\n bottom: 0px !important;\n min-height: initial !important;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: 100vh !important;\n }\n\n .bb-tooltip {\n display: none !important;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n top: 75px;\n }\n \n .bb-capture-button-next {\n margin-left: auto;\n }\n \n .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-toolbar {\n top: 15px;\n right: 15px;\n left: 15px;\n width: auto;\n transform: none;\n }\n\n .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-borderlayer {\n border-width: 4px;\n }\n }\n \n @media print {\n .bb-feedback-button {\n display: none !important;\n }\n \n .gleap-frame-container {\n display: none !important;\n }\n }\n\n .gleap-tour-sender {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n margin-bottom: 10px;\n }\n\n .gleap-tour-sender-image {\n width: 32px;\n height: 32px;\n border-radius: 32px;\n margin-right: 10px;\n background-size: cover;\n background-repeat: no-repeat;\n }\n\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: 550px;\n max-width: 550px;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: calc(100vw - 40px);\n max-width: calc(100vw - 40px);\n }\n }\n\n .gleap-tour-message,\n .gleap-tour-message p,\n .gleap-tour-message ul {\n color: ").concat(f,";\n }\n\n .gleap-tour-message h2 {\n font-weight: 600;\n font-size: 22px;\n }\n\n .gleap-tour-message h3 {\n font-weight: 600;\n font-size: 18px;\n }\n\n .gleap-tour-message p {\n line-height: 1.3;\n margin-bottom: 10px !important;\n margin-top: 10px !important;\n }\n\n .gleap-tour-message ul {\n line-height: 1.3;\n padding-left: 20px;\n margin-top: 10px !important;\n margin-bottom: 10px !important;\n }\n\n .gleap-tour-message {\n max-height: calc(80vh - 100px) !important;\n overflow-y: auto;\n min-width: 270px;\n }\n\n .gleap-tour-message::-webkit-scrollbar {\n width: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-track {\n border-radius: 0px;\n }\n \n .gleap-tour-message::-webkit-scrollbar-thumb {\n background: ").concat(y,"; \n border-radius: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-thumb:hover {\n background: ").concat(m,";\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-message {\n min-width: auto !important;\n }\n }\n\n .gleap-tour-message iframe {\n width: 100%;\n height: 300px;\n margin-top: 10px;\n margin-bottom: 10px;\n border: none;\n outline: none;\n display: block;\n }\n\n .gleap-tour-sender-name {\n font-size: 15px;\n }\n\n .gleap-tour-video {\n width: 100%;\n max-width: 100%;\n }\n\n .gleap-tour-video-svg--fullscreen {\n width: 100% !important;\n height: 100% !important;\n top: 0px !important;\n left: 0px !important;\n right: 0px !important;\n bottom: 0px !important;\n }\n\n .gleap-tour-video--playing .gleap-tour-video-playpause {\n opacity: 0;\n }\n \n .gleap-tour-video--playing:hover .gleap-tour-video-playpause {\n opacity: 1;\n }\n\n .gleap-tour-popover-video-pointer {\n padding: 0px !important;\n border-radius: 8px;\n position: relative;\n background-color: transparent !important;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer {\n position: absolute;\n top: 0px;\n left: 20px;\n right: 20px;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer button {\n padding: 5px 12px;\n }\n\n .gleap-tour-popover-video-pointer.gleap-tour-popover-can-close .gleap-tour-popover-footer {\n right: 40px !important;\n }\n\n .gleap-tour-popover-video-pointer:hover .gleap-tour-popover-footer {\n opacity: 1;\n }\n\n .gleap-tour-popover-pointer.gleap-tour-popover-no-sender .gleap-tour-message {\n padding-right: 20px;\n }\n\n .gleap-tour-video video {\n width: 100%;\n max-width: 100%;\n height: auto;\n border: none;\n outline: none;\n display: block;\n border-radius: 8px;\n }\n\n .gleap-admin-collapse-ui {\n z-index: ").concat(2147483635,";\n cursor: pointer;\n position: fixed;\n bottom: 75px;\n right: 20px;\n width: 32px;\n height: 32px;\n border-radius: 100%;\n background-color: #fff;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;\n }\n\n .gleap-admin-collapse-ui svg {\n width: 20px;\n height: 14px;\n fill: #000 !important;\n }\n\n .gleap-admin-collapse-ui-active {\n bottom: 20px !important;\n }\n\n .gleap-admin-collapse-ui-active svg {\n transform: rotate(180deg);\n }\n\n .gleap-admin-frame-container-active {\n display: none !important;\n }\n\n .gleap-admin-frame-container {\n position: fixed;\n bottom: 0px;\n left: 0px;\n right: 0px;\n width: 100vw;\n z-index: ").concat(2147483640,";\n }\n\n .gleap-admin-frame {\n width: 100%;\n height: 100% !important;\n border: none;\n outline: none;\n display: block;\n }\n \n .gleap-tour-message .linktype-link {\n display: inline-block !important;\n background-color: transparent !important;\n color: ").concat(n," !important;\n }\n\n .gleap-tooltip .linktype-button,\n .gleap-tour-message .linktype-button {\n display: inline-block !important;\n border-radius: 5px;\n box-sizing: border-box;\n padding: 10px 20px !important;\n text-decoration: none !important;\n background-color: ").concat(n," !important;\n color: ").concat(p," !important;\n }\n\n .gleap-tour-message img {\n width: 100%;\n max-width: 100%;\n min-height: 260px;\n height: auto;\n margin-top: 10px;\n margin-bottom: 10px;\n object-fit: cover;\n }\n\n .gleap-tour-active .gleap-tour-overlay {\n pointer-events: none;\n }\n \n .gleap-tour-active * {\n pointer-events: none;\n }\n \n .gleap-tour-active .gleap-tour-active-element,\n .gleap-tour-active .gleap-tour-active-element *,\n .gleap-tour-popover,\n .gleap-tour-popover * {\n pointer-events: auto;\n }\n \n @keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n .gleap-tour-fade .gleap-tour-overlay {\n animation: animate-fade-in 200ms ease-in-out;\n }\n \n .gleap-tour-fade .gleap-tour-popover {\n animation: animate-fade-in 200ms;\n }\n\n .gleap-tour-video-playpause {\n position: absolute;\n bottom: 8px;\n left: 8px;\n width: 32px;\n height: 32px;\n padding: 4px;\n background-color: rgba(0,0,0,0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border-radius: 8px;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-arrow {\n display: none !important;\n }\n\n .gleap-tour-video-playpause svg {\n width: 34px;\n height: auto;\n fill: #fff;\n }\n \n /* Popover styles */\n .gleap-tour-popover {\n all: unset;\n box-sizing: border-box;\n color: #2d2d2d;\n margin: 0;\n padding: 15px;\n border-radius: ").concat(S,'px;\n min-width: 250px;\n max-width: 300px;\n box-shadow: 0 1px 10px #0006;\n z-index: 1000000000;\n position: fixed;\n top: 0;\n right: 0;\n background-color: #fff;\n }\n \n .gleap-tour-popover * {\n font-family: "Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif;\n }\n \n .gleap-tour-popover-title {\n font: 19px / normal sans-serif;\n font-weight: 700;\n display: block;\n position: relative;\n line-height: 1.5;\n zoom: 1;\n margin: 0;\n }\n \n .gleap-tour-popover-close-btn {\n all: unset;\n position: absolute;\n top: 5px;\n right: 5px;\n width: 32px;\n height: 32px;\n cursor: pointer;\n font-size: 30px;\n font-weight: 500;\n line-height: 32px;\n color: #d2d2d2;\n z-index: 1;\n text-align: center;\n transition: color;\n transition-duration: 200ms;\n }\n \n .gleap-tour-popover-close-btn:hover,\n .gleap-tour-popover-close-btn:focus {\n color: #2d2d2d;\n }\n \n .gleap-tour-popover-title[style*="block"] + .gleap-tour-popover-description {\n margin-top: 5px;\n }\n \n .gleap-tour-popover-description {\n margin-bottom: 0;\n font: 15px / normal sans-serif;\n line-height: 1.5;\n font-weight: 400;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer {\n margin-top: 15px;\n text-align: right;\n zoom: 1;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n \n .gleap-tour-popover-progress-text {\n font-size: 13px;\n font-weight: 400;\n color: #727272;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer button {\n background-color: ').concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 10px 20px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;\n }\n\n .gleap-tour-popover-prev-btn {\n color: ").concat(f," !important;\n background-color: ").concat(b," !important;\n margin-right: 3px;\n }\n\n .gleap-tour-popover-prev-btn:hover {\n background-color: ").concat(e,"22 !important;\n color: ").concat(e,' !important;\n }\n \n .gleap-tour-popover-footer .gleap-tour-popover-btn-disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n \n /* Disable the scrolling of parent element if it has an active element*/\n :not(body):has(> .gleap-tour-active-element) {\n overflow: hidden !important;\n }\n \n .gleap-tour-no-interaction, .gleap-tour-no-interaction * {\n pointer-events: none !important;\n }\n \n .gleap-tour-popover-navigation-btns {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n }\n \n .gleap-tour-popover-navigation-btns button + button {\n margin-left: 4px;\n }\n \n .gleap-tour-popover-arrow {\n content: "";\n position: absolute;\n border: 5px solid #fff;\n }\n \n .gleap-tour-popover-arrow-side-over {\n display: none;\n }\n \n /** Popover Arrow Sides **/\n .gleap-tour-popover-arrow-side-left {\n left: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-right {\n right: 100%;\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-top {\n top: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-bottom {\n bottom: 100%;\n border-left-color: transparent;\n border-top-color: transparent;\n border-right-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-center {\n display: none;\n }\n \n /* Left/Start + Right/Start */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-start {\n top: 15px;\n }\n \n /* Top/Start + Bottom/Start */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-start {\n left: 15px;\n }\n \n /* End/Left + End/Right */\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-left,\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-right {\n bottom: 15px;\n }\n \n /* Top/End + Bottom/End */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-end,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-end {\n right: 15px;\n }\n \n /* Left/Center + Right/Center */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-center {\n top: 50%;\n margin-top: -5px;\n }\n \n /* Top/Center + Bottom/Center */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-center {\n left: 50%;\n margin-left: -5px;\n }\n \n /* No arrow */\n .gleap-tour-popover-arrow-none {\n display: none;\n } \n\n /* Modal styles */\n .gleap-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: ').concat(2147483640,";\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-modal-backdrop {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: ").concat(2147483641,";\n }\n\n .gleap-modal {\n position: relative;\n width: 90%;\n max-width: 600px;\n max-height: 90vh;\n z-index: ").concat(2147483700,";\n background-color: ").concat(r,";\n border-radius: ").concat(k,"px;\n overflow: hidden;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n }\n\n .gleap-modal-frame {\n width: 100%;\n border: none;\n display: block;\n outline: none;\n }\n\n body.gleap-modal-open {\n overflow: hidden;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n "),T=document.querySelector(".gleap-styles");T&&T.remove();var E=document.createElement("style");E.innerHTML=L,E.className="gleap-styles",document.body.appendChild(E)}(e,t,n,r,o,i,s,c)}))}},{key:"sendSilentCrashReport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};return e.sendSilentCrashReportWithFormData({description:t},n,o)}},{key:"sendSilentCrashReportWithFormData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};if(!this.silentCrashReportSent){this.silentCrashReportSent=!0,setTimeout((function(){t.silentCrashReportSent=!1}),1e4);var r=o?k(o):{},i=$e.getInstance();if(i.ready){var a=e||{};i.session.email&&(a.reportedBy=i.session.email),new _t("CRASH",n,a,!0,r).sendFeedback().then((function(){})).catch((function(e){}))}}}},{key:"showSurvey",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"survey";e.startFeedbackFlowWithOptions(t,{hideBackButton:!0,format:n},!0)}},{key:"startClassicForm",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlow",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlowWithOptions",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.autostartDrawing,i=n.hideBackButton,a=n.format;if($e.getInstance().ready){e.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY});var s="start-feedbackflow";o&&(s="start-survey"),Gt.getInstance().setAppMode(o?a:"widget"),Gt.getInstance().sendMessage({name:s,data:{flow:t,hideBackButton:i,format:a}},!0),r?Gt.getInstance().showDrawingScreen("screenshot"):Gt.getInstance().showWidget()}}},{key:"openConversations",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversations",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openConversation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversation",data:{shareToken:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"startConversation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.startBot("",t)}},{key:"startBot",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-bot",data:{botId:e||"",hideBackButton:!t}},!0),Gt.getInstance().showWidget()}},{key:"openHelpCenterCollection",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-collection",data:{collectionId:e}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenterArticle",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-article",data:{articleId:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenter",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"searchHelpCenter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter-search",data:{term:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNewsArticle",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news-article",data:{id:e}},!0),Gt.getInstance().showWidget())}},{key:"openChecklists",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklists",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return!!e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-checklist",data:fi({outboundId:e,hideBackButton:!t},n?{sharedKey:n}:{})},!0),Gt.getInstance().showWidget(),!0)}},{key:"openChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklist",data:{id:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNews",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openFeatureRequests",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-feature-requests",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startProductTour",value:function(e){var t=this;$e.getInstance().startProductTourConfig(e).then((function(n){t.startProductTourWithConfig(e,n)})).catch((function(e){}))}},{key:"checkForUncompletedTour",value:function(){var e=Yr.getInstance().loadUncompletedTour();e&&Yr.getInstance().startWithConfig(e.tourId,e.tourData,500)}},{key:"startProductTourWithConfig",value:function(e,t){Yr.getInstance().startWithConfig(e,t)}},{key:"showBanner",value:function(e){try{_o.getInstance().showBanner(e)}catch(t){}}},{key:"showModal",value:function(e){try{Go.getInstance().showModal(e)}catch(t){}}},{key:"showNotification",value:function(e){Ao.getInstance().showNotification(e)}}],n&&di(t.prototype,n),o&&di(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();if(hi(gi,"invoked",!0),hi(gi,"silentCrashReportSent",!1),hi(gi,"instance",void 0),"undefined"!=typeof window){var mi=window.GleapActions;if(mi&&mi.length>0)for(var bi=0;bi(()=>{"use strict";var e={561:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["id","class","length"],n=e.attributes;return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t-1||e.push("["+n.nodeName+'="'+n.value+'"]'),e}),[])}},770:(e,t)=>{function n(e){if(!e.hasAttribute("class"))return[];try{return Array.prototype.slice.call(e.classList).filter((function(e){return/^[a-z_-][a-z\d_-]*$/i.test(e)?e:null}))}catch(n){var t=e.getAttribute("class");return(t=t.trim().replace(/\s+/g," ")).split(" ")}}Object.defineProperty(t,"__esModule",{value:!0}),t.getClasses=n,t.getClassSelectors=function(e){return n(e).filter(Boolean).map((function(e){return"."+e}))}},584:(e,t)=>{function n(e,t,o,r,i,a,s){if(a!==s)for(var c=r;c<=i&&i-c+1>=s-a;++c)o[a]=t[c],n(e,t,o,c+1,i,a+1,s);else e.push(o.slice(0,a).join(""))}Object.defineProperty(t,"__esModule",{value:!0}),t.getCombinations=function(e,t){for(var o=[],r=e.length,i=[],a=1;a<=t;++a)n(o,e,i,0,r-1,0,a);return o}},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getID=function(e){var t=e.getAttribute("id");if(null!==t&&""!==t)return t.match(/(?:^\d|:)/)?'[id="'+t+'"]':"#"+t;return null}},64:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getNthChild=function(e){var t=0,n=void 0,r=void 0,i=e.parentNode;if(Boolean(i)){var a=i.childNodes,s=a.length;for(n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.getParents=function(e){var t=[],n=e;for(;(0,o.isElement)(n);)t.push(n),n=n.parentNode;return t};var o=n(440)},970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTag=function(e){return e.tagName.toLowerCase().replace(/:/g,"\\:")}},924:(e,t,n)=>{t.A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selectorTypes,o=void 0===n?["ID","Class","Tag","NthChild"]:n,r=t.attributesToIgnore,i=void 0===r?["id","class","length"]:r,a=t.excludeRegex,s=void 0===a?null:a,c=[],d=(0,u.getParents)(e),p=!0,f=!1,v=void 0;try{for(var g,m=d[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=h(g.value,o,i,s);Boolean(b)&&c.push(b)}}catch(T){f=!0,v=T}finally{try{!p&&m.return&&m.return()}finally{if(f)throw v}}var y=[],w=!0,k=!1,x=void 0;try{for(var S,C=c[Symbol.iterator]();!(w=(S=C.next()).done);w=!0){var I=S.value;y.unshift(I);var L=y.join(" > ");if((0,l.isUnique)(e,L))return L}}catch(T){k=!0,x=T}finally{try{!w&&C.return&&C.return()}finally{if(k)throw x}}return null};var o=n(169),r=n(770),i=n(584),a=n(561),s=n(64),c=n(970),l=n(213),u=n(175);function d(e,t){var n=e.parentNode.querySelectorAll(t);return 1===n.length&&n[0]===e}function p(e,t){return t.find(d.bind(null,e))}function f(e,t,n){var o=(0,i.getCombinations)(t,3),r=p(e,o);return Boolean(r)||Boolean(n)&&(r=p(e,o=o.map((function(e){return n+e}))),Boolean(r))?r:null}function h(e,t,n,i){var l=void 0,u=function(e,t,n){var i={Tag:c.getTag,NthChild:s.getNthChild,Attributes:function(e){return(0,a.getAttributes)(e,n)},Class:r.getClassSelectors,ID:o.getID};return t.reduce((function(t,n){return t[n]=i[n](e),t}),{})}(e,t,n);i&&i instanceof RegExp&&(u.ID=i.test(u.ID)?null:u.ID,u.Class=u.Class.filter((function(e){return!i.test(e)})));var p=!0,h=!1,v=void 0;try{for(var g,m=t[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var b=g.value,y=u.ID,w=u.Tag,k=u.Class,x=u.Attributes,S=u.NthChild;switch(b){case"ID":if(Boolean(y)&&d(e,y))return y;break;case"Tag":if(Boolean(w)&&d(e,w))return w;break;case"Class":if(Boolean(k)&&k.length&&(l=f(e,k,w)))return l;break;case"Attributes":if(Boolean(x)&&x.length&&(l=f(e,x,w)))return l;break;case"NthChild":if(Boolean(S))return S}}}catch(C){h=!0,v=C}finally{try{!p&&m.return&&m.return()}finally{if(h)throw v}}return"*"}},440:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isElement=function(e){var t=void 0;t="object"===("undefined"==typeof HTMLElement?"undefined":n(HTMLElement))?e instanceof HTMLElement:!!e&&"object"===(void 0===e?"undefined":n(e))&&1===e.nodeType&&"string"==typeof e.nodeName;return t}},213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isUnique=function(e,t){if(!Boolean(t))return!1;var n=e.ownerDocument.querySelectorAll(t);return 1===n.length&&n[0]===e}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};return(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var n=0;nxi});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"feedbackButton",null),r(this,"injectedFeedbackButton",!1),r(this,"buttonHidden",null),r(this,"lastButtonIcon",null)}var n,o,i;return n=e,i=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(o=[{key:"toggleFeedbackButton",value:function(t){this.buttonHidden=!t,e.getInstance().updateFeedbackButtonState(),Ao.getInstance().updateContainerStyle()}},{key:"feedbackButtonPressed",value:function(){var e=Gt.getInstance();e.isOpened()?e.hideWidget():(e.setAppMode("widget"),e.showWidget())}},{key:"injectFeedbackButton",value:function(){var e=this;if(!this.injectedFeedbackButton){this.injectedFeedbackButton=!0;var t=document.createElement("div");t.addEventListener("click",(function(){e.feedbackButtonPressed()})),document.body.appendChild(t),this.feedbackButton=t,this.updateFeedbackButtonState()}}},{key:"updateNotificationBadge",value:function(e){var t=document.querySelector(".bb-notification-bubble");if(t){var n="bb-notification-bubble--hidden";e>0?(t.classList.remove(n),t.innerText=e):t.classList.add(n)}}},{key:"refresh",value:function(){document.querySelector(".bb-feedback-button")?(this.updateFeedbackButtonText(),this.updateFeedbackButtonState()):(this.injectedFeedbackButton=!1,this.feedbackButton=null,this.buttonHidden=null,this.lastButtonIcon=null,this.injectFeedbackButton())}},{key:"updateFeedbackButtonText",value:function(){var t=ut.getInstance().getFlowConfig();if(t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT){var n=document.querySelector(".bb-feedback-button-classic");n&&(n.innerText=t.widgetButtonText)}}},{key:"updateFeedbackButtonState",value:function(){if(null!==this.feedbackButton){var t=ut.getInstance().getFlowConfig(),n="";n=t.buttonLogo?''):p("button","#fff"),this.feedbackButton.className="bb-feedback-button gleap-font gl-block",this.feedbackButton.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_BOTTOM||t.feedbackButtonPosition===e.FEEDBACK_BUTTON_CLASSIC_LEFT?(this.feedbackButton.classList.add("bb-feedback-button--classic-button-style"),this.feedbackButton.innerHTML='
').concat(t.widgetButtonText,"
")):n!==this.lastButtonIcon&&(this.feedbackButton.innerHTML='
'.concat(n).concat(p("arrowdown","#fff"),'
')),this.lastButtonIcon=n;var o=!1;null===e.getInstance().buttonHidden?t.feedbackButtonPosition===e.FEEDBACK_BUTTON_NONE&&(o=!0):e.getInstance().buttonHidden&&(o=!0),o&&this.feedbackButton.classList.add("bb-feedback-button--disabled"),t.feedbackButtonPosition===e.FEEDBACK_BUTTON_BOTTOM_LEFT&&this.feedbackButton.classList.add("bb-feedback-button--bottomleft"),Gt.getInstance().isOpened()&&this.feedbackButton.classList.add("bb-feedback-button--open");var r=Gt.getInstance().appMode;"survey"!==r&&"survey_full"!==r&&"survey_web"!==r||this.feedbackButton.classList.add("bb-feedback-button--survey"),!0!==t.hideForGuests||$e.getInstance().isUser()||this.feedbackButton.classList.add("bb-feedback-button--hidden")}}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=160?"#000000":"#ffffff"},p=function(e,t){return"button"===e?'':"drag"===e?'\x3c!--!Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--\x3e':"unmute"===e?'':"mute"===e?'':"replay"===e?'\n \n ':"dismiss"===e?'':"blur"===e?'\n \n':"pen"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n':"rect"===e?'\n \n \n \n \n \n \n \n \n \n \n':"pointer"===e?'\n \n ':"clip"===e?'\n \n \n \n \n \n':"mic"===e?'\n \n \n \n \n ':"camera"===e?'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n':"recorderon"===e?'\n \n \n \n \n \n \n \n \n \n \n \n':"recorderoff"===e?'\n \n \n \n \n \n \n \n \n ':"arrowdown"===e?'\n \n '):"arrowleft"===e?'\n \n '):"close"===e?'\n \n '):"undo"===e?'\n \n \n \n \n \n \n \n \n \n ':"circle-dot"===e?''):"circle-question"===e?''):"circle-info"===e?''):"circle-exclamation"===e?''):"circle-up"===e?''):"circle-right"===e?''):""};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,t){for(var n=0;n0&&(e=e.concat(this.externalRequests)),this.filters&&this.filters.length>0)for(var t=0;t-1)&&!e.find((function(e){return e.url===s.name}))&&e.push({type:"RESOURCE",date:new Date(this.startTimestamp+s.startTime),url:s.name,duration:Math.round(s.duration),initiatorType:s.initiatorType})}}}catch(u){}var c=this.blacklist.concat(this.defaultBlacklist);if(c&&c.length>0)try{e=e.filter((function(e){for(var t=0;t70&&(e=70),this.maxRequests=e}},{key:"setStopped",value:function(e){this.stopped=e}},{key:"setFilters",value:function(e){this.filters=this.filters.concat(e||[])}},{key:"setBlacklist",value:function(e){this.blacklist=this.blacklist.concat(e||[])}},{key:"cleanRequests",value:function(){var e=Object.keys(this.requests);if(e.length>this.maxRequests)for(var t=e.slice(0,e.length-this.maxRequests),n=0;n.15?"":e}},{key:"cleanupPayload",value:function(e){if(null==e)return"{}";try{if(void 0!==("undefined"==typeof TextDecoder?"undefined":f(TextDecoder))&&ArrayBuffer.isView(e))return(new TextDecoder).decode(e)}catch(t){}return e}},{key:"preparePayload",value:function(e){var t=this.cleanupPayload(e);return this.cleanupContentSize(t)}},{key:"start",value:function(){var e=this;if(!this.initialized){this.initialized=!0;var t=this;this.interceptNetworkRequests({onFetch:function(n,o){if(!e.stopped&&o&&e.requests){if(n.length>0&&void 0!==n[0]&&void 0!==n[0].url)e.requests[o]={url:n[0].url,date:new Date,request:{payload:"",headers:void 0!==n[0].headers?Object.fromEntries(n[0].headers.entries()):{}},type:void 0!==n[0].method?n[0].method:""};else if(n.length>=2&&n[1]){var r=n[1]&&n[1].method?n[1].method:"GET";e.requests[o]={request:{payload:t.preparePayload(n[1].body),headers:n[1].headers},type:r,url:n[0],date:new Date}}else e.requests[o]={url:n[0],date:new Date};e.cleanRequests()}},onFetchLoad:function(n,o){if(!e.stopped&&o&&e.requests&&e.requests[o]){try{e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:"",responseText:""},e.calcRequestTime(o)}catch(i){}try{var r="";n.headers&&void 0!==n.headers.get&&(r=n.headers.get("content-type")),e.isContentTypeSupported(r)?n.text().then((function(r){e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:t.cleanupContentSize(r)}),e.calcRequestTime(o),e.cleanRequests()})).catch((function(t){e.cleanRequests()})):(e.requests[o]&&(e.requests[o].success=!0,e.requests[o].response={status:n.status,statusText:n.statusText,responseText:""}),e.calcRequestTime(o),e.cleanRequests())}catch(i){}}},onFetchFailed:function(t,n){!e.stopped&&n&&e.requests&&e.requests[n]&&(e.requests[n].success=!1,e.calcRequestTime(n),e.cleanRequests())},onOpen:function(t,n){e.stopped||(t&&t.bbRequestId&&n.length>=2&&e.requests&&(e.requests[t.bbRequestId]={type:n[0],url:n[1],date:new Date}),e.cleanRequests())},onSend:function(t,n){e.stopped||(t&&t.bbRequestId&&e.requests&&e.requests[t.bbRequestId]&&(e.requests[t.bbRequestId].request={payload:e.preparePayload(n.length>0?n[0]:"{}"),headers:t.requestHeaders}),e.cleanRequests())},onError:function(t,n){!e.stopped&&e.requests&&t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests[t.currentTarget.bbRequestId]&&(e.requests[t.currentTarget.bbRequestId].success=!1,e.calcRequestTime(t.bbRequestId)),e.cleanRequests()},onLoad:function(t,n){if(!e.stopped){if(t&&t.currentTarget&&t.currentTarget.bbRequestId&&e.requests&&e.requests[t.currentTarget.bbRequestId]){var o=t.currentTarget,r=o.responseType,i="<"+r+">";""!==r&&"text"!==r||(i=e.cleanupContentSize(o.responseText)),e.requests[o.bbRequestId].success=!0,e.requests[o.bbRequestId].response={status:o.status,statusText:o.statusText,responseText:i},e.calcRequestTime(o.bbRequestId)}e.cleanRequests()}}})}}},{key:"interceptNetworkRequests",value:function(e){var t,n=this,o=XMLHttpRequest.prototype.open,r=XMLHttpRequest.prototype.send;return void 0===XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.gleapSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader),XMLHttpRequest.prototype.gleapSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=function(e,t){this.requestHeaders||(this.requestHeaders={}),this.requestHeaders&&this.requestHeaders.hasOwnProperty(e)||(this.requestHeaders[e]||(this.requestHeaders[e]=[]),this.requestHeaders[e].push(t),this.gleapSetRequestHeader(e,t))}),XMLHttpRequest.prototype.open=function(){return this.bbRequestId=++n.requestId,e.onOpen&&e.onOpen(this,arguments),e.onLoad&&this.addEventListener("load",e.onLoad.bind(e)),e.onError&&this.addEventListener("error",e.onError.bind(e)),o.apply(this,arguments)},XMLHttpRequest.prototype.send=function(){return e.onSend&&e.onSend(this,arguments),r.apply(this,arguments)},window.fetch&&(t=window.fetch,window.fetch=function(){var o=++n.requestId;return e.onFetch(arguments,o),t.apply(this,arguments).then((function(t){if(t&&"function"==typeof t.clone){var n=t.clone();e.onFetchLoad(n,o)}return t})).catch((function(t){throw e.onFetchFailed(t,o),t}))}),e}},{key:"blobToTextPromise",value:function(e){return new Promise((function(t,n){var o=new FileReader;o.onload=function(e){e&&e.target&&e.target.result?t(e.target.result):n()},o.onerror=function(e){n(e)},o.readAsText(e)}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&h(t.prototype,n),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();v(m,"instance",void 0);const b=m;var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400;return new Promise((function(o,r){var i=0===e.indexOf("data:image/jpeg"),a=new Image;a.src=e,a.onerror=function(){r()},a.onload=function(){var e=document.createElement("canvas"),r=t,s=n;t>a.width/1.5&&(r=a.width/1.5),n>a.height/1.5&&(s=a.height/1.5);var c=a.width,l=a.height;c>l?c>r&&(l*=r/c,c=r):l>s&&(c*=s/l,l=s),e.width=c,e.height=l,e.getContext("2d").drawImage(a,0,0,c,l),o(i?e.toDataURL("image/jpeg",.7):e.toDataURL())}}))},w=function(){return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))},k=function(e){if("string"==typeof e||e instanceof String)try{return JSON.parse(e)}catch(t){return{}}return e},x=function(e,t){return e.length>t?e.slice(0,t)+"...":e},S=function(e){try{var t=e.split("."),n=!1,o=t[t.length-2];return"co"!==o&&"com"!==o&&"gv"!==o&&"ac"!==o&&"edu"!==o&&"gov"!==o&&"mil"!==o&&"net"!==o&&"org"!==o||(n=!0),(t=t.slice(n?-3:-2)).join(".")}catch(r){}return e},C=function(e){try{var t=localStorage.getItem("gleap-widget-".concat(e));if(t)return JSON.parse(t)}catch(n){}return null},I=function(e,t){var n="gleap-widget-".concat(e);if(t)try{localStorage.setItem(n,JSON.stringify(t))}catch(o){}else localStorage.removeItem(n)},L=function(e){"complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",(function(){e()}))};function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function E(e,t){for(var n=0;n=200&&i.status<300)try{var e=i.responseText?JSON.parse(i.responseText):null;o(e)}catch(t){r({status:i.status,statusText:"JSON Parse Error",responseText:i.responseText,error:t})}else r({status:i.status,statusText:i.statusText,responseText:i.responseText})},i.onerror=function(){r({status:0,statusText:"Network Error",responseText:null})},i.send(n?JSON.stringify(n):null)}))}},{key:"_createCacheKey",value:function(e,t){return t?"".concat(e,"::").concat(t):e}},{key:"validateChecklist",value:function(e,t){var n=this,o=this._createCacheKey(e,t),r=this.validationCache.get(o);if(r)return r.status===A?Promise.resolve(r.internalId):Promise.reject(r.error);if(this.validationRequests.has(o))return this.validationRequests.get(o);var i=this._getApiUrl();if(!i){var a=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.validationCache.set(o,{status:P,error:a}),Promise.reject(a)}var s="".concat(i,"/outbound/checklists?").concat(this._getQueryParams()),c=this._makeRequest("POST",s,{outboundId:e,sharedKey:t}).then((function(e){if(e&&e.id)return n.validationCache.set(o,{status:A,internalId:e.id}),e.id;var t=new Error("Validation response missing checklist ID.");throw n.validationCache.set(o,{status:P,error:e||t}),t})).catch((function(e){throw n.validationCache.set(o,{status:P,error:e}),e})).finally((function(){n.validationRequests.delete(o)}));return this.validationRequests.set(o,c),c}},{key:"fetchChecklist",value:function(e){var t=this,n=this.fetchCache.get(e);if(n)return n.status===A?Promise.resolve(JSON.parse(JSON.stringify(n.data))):Promise.reject(n.error);if(this.fetchRequests.has(e))return this.fetchRequests.get(e).then((function(e){return JSON.parse(JSON.stringify(e))}));var o=this._getApiUrl();if(!o){var r=new Error("ChecklistNetworkManager: Gleap API URL not configured.");return this.fetchCache.set(e,{status:P,error:r}),Promise.reject(r)}var i="".concat(o,"/outbound/checklists/").concat(e,"?convertTipTap=true&").concat(this._getQueryParams()),a=this._makeRequest("GET",i,null).then((function(n){if(n)return t.fetchCache.set(e,{status:A,data:n}),JSON.parse(JSON.stringify(n));var o=new Error("Empty response received for checklist fetch.");throw t.fetchCache.set(e,{status:P,error:n||o}),o})).catch((function(n){throw t.fetchCache.set(e,{status:P,error:n}),n})).finally((function(){t.fetchRequests.delete(e)}));return this.fetchRequests.set(e,a),a.then((function(e){return JSON.parse(JSON.stringify(e))}))}}])&&E(t.prototype,n),o&&E(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();O(R,"instance",null);const N=R,D=Math.min,j=Math.max,F=Math.round,_=Math.floor,B=e=>({x:e,y:e}),H={left:"right",right:"left",bottom:"top",top:"bottom"},q={start:"end",end:"start"};function U(e,t,n){return j(e,D(t,n))}function z(e,t){return"function"==typeof e?e(t):e}function W(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function V(e){return"x"===e?"y":"x"}function K(e){return"y"===e?"height":"width"}function X(e){return["top","bottom"].includes(W(e))?"y":"x"}function Z(e){return V(X(e))}function Y(e){return e.replace(/start|end/g,(e=>q[e]))}function J(e){return e.replace(/left|right|bottom|top/g,(e=>H[e]))}function Q(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ee(e,t,n){let{reference:o,floating:r}=e;const i=X(t),a=Z(t),s=K(a),c=W(t),l="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(c){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(G(t)){case"start":f[a]-=p*(n&&l?-1:1);break;case"end":f[a]+=p*(n&&l?-1:1)}return f}async function te(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=z(t,e),h=Q(f),v=s[p?"floating"===d?"reference":"floating":d],g=$(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),m="floating"===d?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=$(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:b,strategy:c}):m);return{top:(g.top-w.top+h.top)/y.y,bottom:(w.bottom-g.bottom+h.bottom)/y.y,left:(g.left-w.left+h.left)/y.x,right:(w.right-g.right+h.right)/y.x}}const ne=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=W(n),s=G(n),c="y"===X(n),l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=z(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),c?{x:f*u,y:p*l}:{x:p*l,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}};function oe(e){return ae(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ie(e){var t;return null==(t=(ae(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ae(e){return e instanceof Node||e instanceof re(e).Node}function se(e){return e instanceof Element||e instanceof re(e).Element}function ce(e){return e instanceof HTMLElement||e instanceof re(e).HTMLElement}function le(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof re(e).ShadowRoot)}function ue(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function de(e){return["table","td","th"].includes(oe(e))}function pe(e){const t=fe(),n=ve(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function fe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function he(e){return["html","body","#document"].includes(oe(e))}function ve(e){return re(e).getComputedStyle(e)}function ge(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(e){if("html"===oe(e))return e;const t=e.assignedSlot||e.parentNode||le(e)&&e.host||ie(e);return le(t)?t.host:t}function be(e){const t=me(e);return he(t)?e.ownerDocument?e.ownerDocument.body:e.body:ce(t)&&ue(t)?t:be(t)}function ye(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=be(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=re(r);return i?t.concat(a,a.visualViewport||[],ue(r)?r:[],a.frameElement&&n?ye(a.frameElement):[]):t.concat(r,ye(r,[],n))}function we(e){const t=ve(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ce(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=F(n)!==i||F(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function ke(e){return se(e)?e:e.contextElement}function xe(e){const t=ke(e);if(!ce(t))return B(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=we(t);let a=(i?F(n.width):n.width)/o,s=(i?F(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Se=B(0);function Ce(e){const t=re(e);return fe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Se}function Ie(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=ke(e);let a=B(1);t&&(o?se(o)&&(a=xe(o)):a=xe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==re(e))&&t}(i,n,o)?Ce(i):B(0);let c=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=re(i),t=o&&se(o)?re(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=xe(r),t=r.getBoundingClientRect(),o=ve(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=a,n=re(r),r=n.frameElement}}return $({width:u,height:d,x:c,y:l})}const Le=[":popover-open",":modal"];function Te(e){return Le.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function Ee(e){return Ie(ie(e)).left+ge(e).scrollLeft}function Oe(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=re(e),o=ie(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;const e=fe();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=ie(e),n=ge(e),o=e.ownerDocument.body,r=j(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=j(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Ee(e);const s=-n.scrollTop;return"rtl"===ve(o).direction&&(a+=j(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(ie(e));else if(se(t))o=function(e,t){const n=Ie(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=ce(e)?xe(e):B(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Ce(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return $(o)}function Me(e,t){const n=me(e);return!(n===t||!se(n)||he(n))&&("fixed"===ve(n).position||Me(n,t))}function Ae(e,t,n){const o=ce(t),r=ie(t),i="fixed"===n,a=Ie(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=B(0);if(o||!o&&!i)if(("body"!==oe(t)||ue(r))&&(s=ge(t)),o){const e=Ie(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=Ee(r));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Pe(e,t){return ce(e)&&"fixed"!==ve(e).position?t?t(e):e.offsetParent:null}function Re(e,t){const n=re(e);if(!ce(e)||Te(e))return n;let o=Pe(e,t);for(;o&&de(o)&&"static"===ve(o).position;)o=Pe(o,t);return o&&("html"===oe(o)||"body"===oe(o)&&"static"===ve(o).position&&!pe(o))?n:o||function(e){let t=me(e);for(;ce(t)&&!he(t);){if(pe(t))return t;t=me(t)}return null}(e)||n}const Ne={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=ie(o),s=!!t&&Te(t.floating);if(o===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=B(1);const u=B(0),d=ce(o);if((d||!d&&!i)&&(("body"!==oe(o)||ue(a))&&(c=ge(o)),ce(o))){const e=Ie(o);l=xe(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:ie,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=ye(e,[],!1).filter((e=>se(e)&&"body"!==oe(e))),r=null;const i="fixed"===ve(e).position;let a=i?me(e):e;for(;se(a)&&!he(a);){const t=ve(a),n=pe(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||ue(a)&&!n&&Me(e,a))?o=o.filter((e=>e!==a)):r=t,a=me(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=Oe(t,n,r);return e.top=j(o.top,e.top),e.right=D(o.right,e.right),e.bottom=D(o.bottom,e.bottom),e.left=j(o.left,e.left),e}),Oe(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Re,getElementRects:async function(e){const t=this.getOffsetParent||Re,n=this.getDimensions;return{reference:Ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=we(e);return{width:t,height:n}},getScale:xe,isElement:se,isRTL:function(e){return"rtl"===ve(e).direction}};function De(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=ke(e),u=r||i?[...l?ye(l):[],...ye(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,o=null;const r=ie(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-_(u)+"px "+-_(r.clientWidth-(l+d))+"px "+-_(r.clientHeight-(u+p))+"px "+-_(l)+"px",threshold:j(0,D(1,c))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(v,{...f,root:r.ownerDocument})}catch(g){o=new IntersectionObserver(v,f)}o.observe(e)}(!0),i}(l,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!c&&h.observe(l),h.observe(t));let v=c?Ie(e):null;return c&&function t(){const o=Ie(e);!v||o.x===v.x&&o.y===v.y&&o.width===v.width&&o.height===v.height||n();v=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const je=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=z(e,t),l={x:n,y:o},u=await te(t,c),d=X(W(r)),p=V(d);let f=l[p],h=l[d];if(i){const e="y"===p?"bottom":"right";f=U(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=U(h+u["y"===d?"top":"left"],h,h-u[e])}const v=s.fn({...t,[p]:f,[d]:h});return{...v,data:{x:v.x-n,y:v.y-o}}}}},Fe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=z(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=W(r),b=W(s)===s,y=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=p||(b||!v?[J(s)]:function(e){const t=J(e);return[Y(e),t,Y(t)]}(s));p||"none"===h||w.push(...function(e,t,n,o){const r=G(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(W(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(Y)))),i}(s,v,h,y));const k=[s,...w],x=await te(t,g),S=[];let C=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&S.push(x[m]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=G(e),r=Z(e),i=K(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=J(a)),[a,J(a)]}(r,a,y);S.push(x[e[0]],x[e[1]])}if(C=[...C,{placement:r,overflows:S}],!S.every((e=>e<=0))){var I,L;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(L=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},_e=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=z(e,t)||{};if(null==l)return{};const d=Q(u),p={x:n,y:o},f=Z(r),h=K(f),v=await a.getDimensions(l),g="y"===f,m=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[f]-p[f]-i.floating[h],k=p[f]-i.reference[f],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=x?x[y]:0;S&&await(null==a.isElement?void 0:a.isElement(x))||(S=s.floating[y]||i.floating[h]);const C=w/2-k/2,I=S/2-v[h]/2-1,L=D(d[m],I),T=D(d[b],I),E=L,O=S-v[h]-T,M=S/2-v[h]/2+C,A=U(E,M,O),P=!c.arrow&&null!=G(r)&&M!==A&&i.reference[h]/2-(M{const o=new Map,r={platform:Ne,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=ee(l,o,c),p=o,f={},h=0;for(let v=0;ve.length)&&(t=e.length);for(var n=0,o=new Array(t);n'):""),i.appendChild(a),t.repositionHotspot(e,n),r=a,t.elementToTooltipMap.set(e,n)}else r=e;var s=t.createTooltip(r,n.html,n);t.elementToFloatingUIMap.set(e,s)}}})),We(this,"updateFilteredTooltips",(function(){t.filteredTooltips=t.getFilteredTooltips(),t.checkForTooltips()})),We(this,"getFilteredTooltips",(function(){if(!t.tooltips)return[];var e=window.location.href;return t.tooltips.filter((function(t){if(!t.page||0===t.page.length)return!0;var n=t.pageType,o=t.page;switch(n){case"is":return e===o;case"isnot":return e!==o;case"contains":return e.includes(o);case"notcontains":return!e.includes(o);case"startswith":return e.startsWith(o);case"endswith":return e.endsWith(o);default:return!1}}))})),We(this,"checkForTooltips",(function(){for(var e=0;e0&&this.filteredTooltips.forEach((function(n){n.selector&&e.matches(n.selector)&&t.linkTooltip(e,n)}))}},{key:"start",value:function(){var e=this,t=this;if(window){var n,o,r,i=(n=t.updateHotspotPositions.bind(t),o=250,r=null,function(){if(!r){var e=this,t=arguments;r=setTimeout((function(){n.call.apply(n,[e].concat(qe(t))),r=null}),o)}});window.addEventListener("resize",i),window.requestAnimationFrame((function(){e.observer=new MutationObserver((function(n){t.lastUrl!==window.location.href&&(t.lastUrl=window.location.href,t.filteredTooltips=t.getFilteredTooltips()),n.forEach((function(n){n.addedNodes.forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&t.processNodeInsertion(e)})),n.removedNodes.forEach((function(t){if(t.nodeType===Node.ELEMENT_NODE&&e.elementToFloatingUIMap.has(t)){var n=e.elementToFloatingUIMap.get(t);n&&(n.tooltip&&n.tooltip.remove(),n.cleanup(),e.elementToFloatingUIMap.delete(t))}e.elementToTooltipMap.has(t)&&e.elementToTooltipMap.delete(t)}))}))})),e.observer.observe(document.body,{childList:!0,subtree:!0})}))}}},{key:"updateHotspotPositions",value:function(){var e=this;document.querySelectorAll("[data-gleap-tooltip-mode='hotspot']").forEach((function(t){var n=e.elementToTooltipMap.get(t);n&&e.repositionHotspot(t,n)}))}},{key:"createTooltip",value:function(e,t,n){var o=document.createElement("div");o.className="gleap-tooltip",o.innerHTML='
\n '.concat(t,'\n
\n \n \n \n
\n
'),document.body.appendChild(o);var r,i=o.querySelector(".gleap-tooltip-arrow"),a=De(e,o,(function(){Be(e,o,{placement:"left"===n.posX?"left":"right",middleware:[ne(10),Fe(),je(),_e({element:i})]}).then((function(e){var t=e.x,n=e.y,r=e.middlewareData,a=e.placement;try{if(Object.assign(o.style,{left:"".concat(t,"px"),top:"".concat(n,"px")}),r.arrow){var s={left:"",top:"",transform:""};null!=r.arrow.x&&(s.left="".concat(r.arrow.x,"px"),"bottom"===a?(s.transform="translateY(-7px) rotate(180deg)",s.top="".concat(-20,"px")):"top"===a&&(s.transform="translateY(7px) rotate(0deg)",s.top="100%")),null!=r.arrow.y&&(s.top="".concat(r.arrow.y,"px"),"right"===a?(s.transform="translateX(-7px) rotate(90deg)",s.left="".concat(-20,"px")):"left"===a&&(s.transform="translateX(7px) rotate(270deg)",s.left="100%")),Object.assign(i.style,s)}}catch(c){}}))}));function s(){clearTimeout(r),o.style.visibility="visible",o.style.opacity="1",o.style.pointerEvents="auto"}function c(){r=setTimeout((function(){o.style.opacity="0",setTimeout((function(){o.style.visibility="hidden",o.style.pointerEvents="none"}),200)}),500)}return e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",c),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c),{cleanup:a,tooltip:o}}},{key:"canEmbed",value:function(e){var t=new Set(["area","base","br","embed","hr","img","input","source","track","wbr","canvas"]);return e&&!t.has(e.tagName.toLowerCase())}},{key:"destroy",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),document.querySelectorAll(".gleap-tooltip").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-anchor]").forEach((function(e){return e.remove()})),document.querySelectorAll("[data-gleap-tooltip-hotspot]").forEach((function(e){return e.remove()})),this.elementToFloatingUIMap=new WeakMap,this.elementToTooltipMap=new WeakMap,this.tooltips=[],this.filteredTooltips=[]}},{key:"repositionHotspot",value:function(e,t){if(e&&t){var n=e.getAttribute("data-gleap-tooltip");if(n){var o=document.querySelector('[data-gleap-tooltip-hotspot="'.concat(n,'"]'));if(o){t.posX||(t.posX="right"),t.posY||(t.posY="center"),t.offsetX||(t.offsetX=4),t.offsetY||(t.offsetY=0);var r=e.getBoundingClientRect();try{var i=document.createRange();i.selectNodeContents(e);var a=window.getComputedStyle(e),s=i.getBoundingClientRect().width+parseFloat(a.paddingLeft);s0&&void 0!==arguments[0]?arguments[0]:0,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash));try{I("session-".concat(t.sdkKey),null)}catch(r){}if(t.useCookies)try{!function(e){try{var t=S(window.location.host.split(":")[0]);document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Domain="+t}catch(r){}}("session-".concat(t.sdkKey))}catch(r){}if(t.ready=!1,t.session={gleapId:null,gleapHash:null,name:"",email:"",userId:"",phone:"",value:0},Gt.getInstance().sendMessage({name:"session-cleared"},!0),Ao.getInstance().clearAllNotifications(!1),Ao.getInstance().setNotificationCount(0),_o.getInstance().removeBannerUI(),Go.getInstance().hideModal(),n&&!isNaN(e)){var o=10*Math.pow(e,2);setTimeout((function(){t.startSession(e+1)}),1e3*o)}})),Je(this,"validateSession",(function(e){var n;if(e&&e.gleapId){var o=!1;(null===(n=t.session)||void 0===n?void 0:n.gleapId)!==(null==e?void 0:e.gleapId)&&(o=!0),t.session&&t.session.gleapHash&&kn.notifyEvent("unregister-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),I("session-".concat(t.sdkKey),e),t.useCookies&&function(e,t,n){try{var o="";if(n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),o="; expires="+r.toUTCString()}var i=S(window.location.host.split(":")[0]);document.cookie=e+"="+(t||"")+o+"; path=/; domain="+i}catch(a){}}("session-".concat(t.sdkKey),encodeURIComponent(JSON.stringify(e)),365),t.session=e,t.ready=!0,t.session&&t.session.gleapHash&&kn.notifyEvent("register-pushmessage-group","gleapuser-".concat(t.session.gleapHash)),o&&(setTimeout((function(){N.getInstance().clearCache(),rt.getInstance().restart();var e=Ve.getInstance();if(e){try{e.destroy()}catch(t){}e.load()}}),0),"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("session-updated"))),t.notifySessionReady()}})),Je(this,"startSession",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{if(t.useCookies){var n=function(e){try{for(var t=e+"=",n=document.cookie.split(";"),o=0;o0)){var r=C("session-".concat(t.sdkKey));r&&t.validateSession(r)}var i=t,a=new XMLHttpRequest;a.open("POST",i.apiUrl+"/sessions"),a.setRequestHeader("Content-Type","application/json;charset=UTF-8"),a.setRequestHeader("Api-Token",i.sdkKey);try{t.session&&t.session.gleapId&&t.session.gleapHash&&(a.setRequestHeader("Gleap-Id",t.session.gleapId),a.setRequestHeader("Gleap-Hash",t.session.gleapHash))}catch(s){}a.onreadystatechange=function(t){if(4===a.readyState)if(200===a.status||201===a.status)try{var n=JSON.parse(a.responseText);i.validateSession(n)}catch(s){}else 429!==a.status&&i.clearSession(e,!0)},a.send(JSON.stringify({lang:go.getInstance().getActiveLanguage()}))})),Je(this,"checkIfSessionNeedsUpdate",(function(e,n){if(!t.session||!t.session.userId||!e)return!0;try{if(t.session.userId.toString()!==e.toString())return!0}catch(o){}return t.checkIfSessionDataNeedsUpdate(n)})),Je(this,"checkIfSessionDataNeedsUpdate",(function(e){if(e)for(var n=Object.keys(e),o=0;o0)for(var e=0;e2)&&0!==t.streamedEventArray.length&&t.socket&&t.socket.readyState===t.socket.OPEN){var e=t;t.streamingEvents=!0;var n=new XMLHttpRequest;n.open("POST",$e.getInstance().apiUrl+"/sessions/ping"),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),$e.getInstance().injectSession(n),n.onerror=function(){e.errorCount++,e.streamingEvents=!1},n.onreadystatechange=function(t){4===n.readyState&&(200===n.status||201===n.status?e.errorCount=0:e.errorCount++,e.streamingEvents=!1)};var o=Yt.getInstance().getSessionDuration();n.send(JSON.stringify({time:o,events:t.streamedEventArray,opened:Gt.getInstance().isOpened(),type:"js",sdkVersion:"14.6.3",ws:!0})),t.streamedEventArray=[]}})),this.handleOpenBound=this.handleOpen.bind(this),this.handleErrorBound=this.handleError.bind(this),this.handleMessageBound=this.handleMessage.bind(this),this.handleCloseBound=this.handleClose.bind(this)}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"cleanupWebSocket",value:function(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null),this.pingWS&&clearInterval(this.pingWS),this.socket&&(this.socket.removeEventListener("open",this.handleOpenBound),this.socket.removeEventListener("error",this.handleErrorBound),this.socket.removeEventListener("message",this.handleMessageBound),this.socket.removeEventListener("close",this.handleCloseBound),this.socket.close(),this.socket=null)}},{key:"initWebSocket",value:function(){this.cleanupWebSocket(),this.connectedWebSocketGleapId=$e.getInstance().session.gleapId,$e.getInstance().session&&$e.getInstance().sdkKey&&(this.socket=new WebSocket("".concat($e.getInstance().wsApiUrl,"?gleapId=").concat($e.getInstance().session.gleapId,"&gleapHash=").concat($e.getInstance().session.gleapHash,"&apiKey=").concat($e.getInstance().sdkKey,"&sdkVersion=").concat("14.6.3")),this.socket.addEventListener("open",this.handleOpenBound),this.socket.addEventListener("message",this.handleMessageBound),this.socket.addEventListener("error",this.handleErrorBound),this.socket.addEventListener("close",this.handleCloseBound))}},{key:"handleOpen",value:function(e){var t=this;this.pingWS=setInterval((function(){t.socket.readyState===t.socket.OPEN&&(t.socket.send("PING"),t.socket.send(9))}),1e4),this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=null)}},{key:"handleMessage",value:function(e){this.processMessage(JSON.parse(e.data))}},{key:"handleError",value:function(e){}},{key:"handleClose",value:function(e){var t=this;setTimeout((function(){t.initWebSocket()}),5e3)}},{key:"processMessage",value:function(e){try{if("update"===e.name){var t=e.data,n=t.a,o=t.u;Gt.getInstance().isOpened()||(n&&ki.getInstance().performActions(n),null!=o&&Ao.getInstance().setNotificationCount(o))}"checklist"===e.name&&null!=e&&e.data&&window&&"function"==typeof window.dispatchEvent&&window.dispatchEvent(new CustomEvent("checkListUpdate",{detail:e.data}))}catch(r){}}},{key:"getEventArray",value:function(){return this.eventArray}},{key:"stop",value:function(){this.cleanupMainLoop()}},{key:"resetErrorCountLoop",value:function(){var e=this;setInterval((function(){e.errorCount=0}),6e4)}},{key:"cleanupMainLoop",value:function(){this.mainLoopTimeout&&(clearInterval(this.mainLoopTimeout),this.mainLoopTimeout=null)}},{key:"restart",value:function(){this.connectedWebSocketGleapId!==$e.getInstance().session.gleapId&&this.initWebSocket(),this.cleanupMainLoop(),this.trackInitialEvents(),this.runEventStreamLoop()}},{key:"start",value:function(){this.startPageListener(),this.resetErrorCountLoop()}},{key:"trackInitialEvents",value:function(){e.getInstance().logEvent("sessionStarted"),e.getInstance().logCurrentPage()}},{key:"logCurrentPage",value:function(){if(!ki.getInstance().disablePageTracking){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.logEvent("pageView",{page:e}))}}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"logEvent",value:function(e,t){var n={name:e,date:new Date};t&&(n.data=k(t)),this.eventArray.push(n),this.streamedEventArray.push(n),this.eventArray.length>this.eventMaxLength&&this.eventArray.shift(),this.streamedEventArray.length>this.eventMaxLength&&this.streamedEventArray.shift()}}])&&tt(t.prototype,n),o&&tt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function at(e,t){for(var n=0;n0)for(var e=0;e=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function ft(e,t,n,o,r,i,a){try{var s=e[i](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(o,r)}function ht(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ft(i,o,r,a,s,"next",e)}function s(e){ft(i,o,r,a,s,"throw",e)}a(void 0)}))}}var vt=function(e){var t="",n=window.document.doctype;if(n&&(t=""),e&&e.childNodes&&e.childNodes.length>0)for(var o=0;o1?t-1:0),r=1;r0||t.scrollLeft>0)&&(s.setAttribute("bb-scrollpos",!0),s.setAttribute("bb-scrolltop",t.scrollTop),s.setAttribute("bb-scrollleft",t.scrollLeft)),"SELECT"!==d&&"TEXTAREA"!==d&&"INPUT"!==d||(f=t.value,("value"===t.getAttribute("gleap-ignore")||t.classList.contains("gl-mask"))&&(f=new Array(f.length+1).join("*")),s.setAttribute("bb-data-value",f),"checkbox"!==t.type&&"radio"!==t.type||!t.checked||s.setAttribute("bb-data-checked",!0))),r.appendChild(s),!t.shadowRoot){e.next=29;break}return h=n,n++,e.next=27,a(t.shadowRoot.firstChild,s,h);case 27:St(t.shadowRoot,s,h),void 0!==s.setAttribute&&s.setAttribute("bb-shadow-parent",h);case 29:return e.next=31,a(t.firstChild,s);case 31:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(t,n,o){return e.apply(this,arguments)}}(),r=document.createDocumentFragment(),e.next=5,o(t,r);case 5:return(i=r.querySelector("head"))||(i=r),St(window.document,i),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Lt=function(e){return new Promise(function(){var t=ht(pt().mark((function t(n,o){var r,i,a,s,c,l,u,d,p,f,h,v,g,m,b;return pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r=window.document.querySelectorAll("style, link"),i=0;i0){for(l=c.childNodes;l.length>0;)c.parentNode.insertBefore(l[0],c);c.remove()}for(u=a.querySelectorAll("script, noscript"),i=0;i0?r.innerHTML=n.formatTime(e):(r.innerHTML="2:00",n.stopScreenRecording())}),1e3),this.mediaRecorder.ondataavailable=function(e){e.data.size>0&&o.push(e.data)},t.getVideoTracks()[0].onended=function(){n.prepareRecording(o)},this.mediaRecorder.onstop=function(){n.prepareRecording(o)},this.mediaRecorder.start(200),n.rerender()})),Ot(this,"prepareRecording",(function(e){var t=new Blob(e,{type:this.getSupportedMimeType()}),n=this.getSupportedMimeType(),o=n.includes("mp4")?"mp4":"webm";this.file=new File([t],"screen-recording.".concat(o),{type:n});var r=document.querySelector(".bb-capture-preview video");r&&(r.src=URL.createObjectURL(t),this.audioAvailable=!0,this.isRecording=!1,this.rerender())})),this.rerender=t,this.permissionErrorText=n,navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia||(this.available=!1),setTimeout((function(){o.rerender()}),100)}var t,n,o;return t=e,(n=[{key:"getSupportedMimeType",value:function(){for(var e=0,t=["video/webm","audio/webm","video/webm;codecs=vp8","video/webm;codecs=daala","video/webm;codecs=h264","audio/webm;codecs=opus","video/mp4"];e0&&(e.tags=t),this.excludeData)for(var n=Object.keys(this.excludeData),o=0;oe.length)&&(t=e.length);for(var n=0,o=new Array(t);n0)if(t){var n=window.open(e,"_blank");n&&n.focus()}else window.location.href=e})),zt(this,"autoWhiteListCookieManager",(function(){window&&window.cmp_block_ignoredomains&&window.cmp_block_ignoredomains.concat(["messenger-app.gleap.io"])})),zt(this,"injectFrame",(function(){t.injectedFrame||(t.injectedFrame=!0,t.autoWhiteListCookieManager(),L((function(){ut.getInstance().onConfigLoaded((function(){ut.getInstance().applyStylesFromConfig();var e=document.createElement("div");e.className="gleap-frame-container gleap-frame-container--hidden gl-block",e.innerHTML='
'),document.body.appendChild(e),t.gleapFrameContainer=e,t.gleapFrame=document.querySelector(".gleap-frame"),t.updateFrameStyle(),"widget"===t.appMode&&t.showFrameContainer(!0)}))})))})),zt(this,"showImage",(function(e){L((function(){var t=document.createElement("div");t.className="gleap-image-view",t.innerHTML='
\n \n
'),document.body.appendChild(t);var n=function(){t.remove()};t.querySelector(".gleap-image-view-close").addEventListener("click",(function(){n()})),t.addEventListener("click",(function(e){e.target===t&&n()}))}))})),zt(this,"updateFrameStyle",(function(){if(t.gleapFrameContainer){for(var e="gleap-frame-container--survey",n="gleap-frame-container--extended",o="gleap-frame-container--survey-full",r="gleap-frame-container--classic",i="gleap-frame-container--classic-left",s="gleap-frame-container--modern-left",c="gleap-frame-container--no-button",l=[r,i,n,s,c,e,o],u=0;u1&&void 0!==arguments[1]&&arguments[1];try{this.gleapFrame=document.querySelector(".gleap-frame"),this.comReady&&this.gleapFrame&&this.gleapFrame.contentWindow?this.gleapFrame.contentWindow.postMessage(JSON.stringify(e),"*"):t&&this.queue.push(e)}catch(n){}}},{key:"sendSessionUpdate",value:function(){this.sendMessage({name:"session-update",data:{sessionData:$e.getInstance().getSession(),apiUrl:$e.getInstance().apiUrl,sdkKey:$e.getInstance().sdkKey}})}},{key:"sendConfigUpdate",value:function(){this.sendMessage({name:"config-update",data:{config:ut.getInstance().getFlowConfig(),aiTools:ut.getInstance().getAiTools(),overrideLanguage:go.getInstance().getOverrideLanguage()}}),this.updateFrameStyle()}},{key:"showDrawingScreen",value:function(e){var t=this;this.hideWidget(),this.markerManager=new uo(e),this.markerManager.show((function(e){e||t.hideMarkerManager(),t.showWidget()}))}},{key:"workThroughQueue",value:function(){var e=Ht(this.queue);this.queue=[];for(var t=0;t0&&(n.tags=o),e.sendMessage({name:"collect-ticket-data",data:n})}if("height-update"===t.name){e.frameHeight=t.data;var r=document.querySelector(".gleap-frame-container-inner");"survey"!==e.appMode&&"survey_full"!==e.appMode&&"survey_web"!==e.appMode||!r||(r.style.maxHeight="".concat(e.frameHeight,"px"))}if("notify-event"===t.name&&kn.notifyEvent(t.data.type,t.data.data),"cleanup-drawings"===t.name&&e.hideMarkerManager(),"open-url"===t.name){var i=t.data,a=!!t.newTab;e.urlHandler(i,a)}if("run-custom-action"===t.name&&En.triggerCustomAction(t.data,{shareToken:t.shareToken}),"close-widget"===t.name&&e.hideWidget(),"tool-execution"===t.name&&kn.notifyEvent("tool-execution",t.data),"send-feedback"===t.name){var s=t.data.formData,c=t.data.action,l=t.data.outboundId,u=t.data.spamToken;new _t(c.feedbackType,"MEDIUM",s,!1,c.excludeData,l,u).sendFeedback().then((function(t){if(e.sendMessage({name:"feedback-sent",data:t}),kn.notifyEvent("feedback-sent",s),l&&l.length>0){kn.notifyEvent("outbound-sent",{outboundId:l,outbound:c,formData:s});try{delete s.reportedBy}catch(n){}ki.trackEvent("outbound-".concat(l,"-submitted"),s)}})).catch((function(t){e.sendMessage({name:"feedback-sending-failed",data:"Something went wrong, please try again."}),kn.notifyEvent("error-while-sending")}))}"start-screen-drawing"===t.name&&e.showDrawingScreen(t.data)})),window.addEventListener("message",(function(t){if(t.origin===e.frameUrl||t.origin===_o.getInstance().bannerUrl)try{for(var n=JSON.parse(t.data),o=0;o1&&void 0!==arguments[1]?arguments[1]:"INFO";!e||e.length<=0||(this.logArray.push({log:x(e,1e3),date:new Date,priority:t}),this.logArray.length>this.logMaxLength&&this.logArray.shift())}},{key:"addLogWithArgs",value:function(e,t){if(e&&!(e.length<=0)){var n="";try{for(var o=0;o1&&void 0!==arguments[1])||arguments[1],n=x(e.innerText||"",40).replace(/(\r\n|\n|\r)/gm,"").replace(/ +(?= )/g,""),o="",r="";if(void 0!==e.getAttribute){var i=e.getAttribute("id");i&&(o=' id="'.concat(i,'"'));var a=e.getAttribute("class");a&&(r=' class="'.concat(a,'"'))}var s=(e.tagName||"").toLowerCase(),c="<",l=">";return t||(c="[",l="]"),"".concat(c).concat(s).concat(o).concat(r).concat(l).concat(n).concat(c,"/").concat(s).concat(l)}(e.target),"CLICK")}}))}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&an(t.prototype,n),o&&an(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function pn(e){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pn(e)}function fn(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if("flow-started"===e){var n=ki.getInstance();n.setGlobalDataItem("webReplay",null),n.setGlobalDataItem("screenRecordingData",null),n.takeCurrentReplay()}var o=this.getInstance().eventListeners[e];if(o)for(var r=0;r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||Rn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function An(e){return function(e){if(Array.isArray(e))return Nn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Rn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Rn(e,t){if(e){if("string"==typeof e)return Nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(e,t):void 0}}function Nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n=0;g--){var m=n.get(g);if(m){var b=t.mirror.getId(m.value.parentNode);if(-1===o(m.value))continue;if(-1!==b){f=m;break}var y=m.value;if(y.parentNode&&y.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=y.parentNode.host;if(-1!==t.mirror.getId(w)){f=m;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),r(f.value)}var k={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){return{id:t.mirror.getId(e.node),attributes:e.attributes}})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:e};!k.texts.length&&!k.attributes.length&&!k.removes.length&&!k.adds.length||(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(k))}},this.processMutation=function(e){if(!Ye(e.target,t.mirror))switch(e.type){case"characterData":var n=e.target.textContent;!Ze(e.target,t.blockClass,t.blockSelector,!1)&&n!==e.oldValue&&t.texts.push({value:Be(e.target,t.maskTextClass,t.maskTextSelector)&&n?t.maskTextFn?t.maskTextFn(n):n.replace(/[\S]/g,"*"):n,node:e.target});break;case"attributes":var o=e.target,r=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(r=Ae({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:r,maskInputFn:t.maskInputFn})),Ze(e.target,t.blockClass,t.blockSelector,!1)||r===e.oldValue)return;var i=t.attributes.find((function(t){return t.node===e.target}));if("IFRAME"===o.tagName&&"src"===e.attributeName&&!t.keepIframeSrcFn(r)){if(o.contentDocument)return;e.attributeName="rr_src"}if(i||(i={node:e.target,attributes:{}},t.attributes.push(i)),"style"===e.attributeName){var a=t.doc.createElement("span");e.oldValue&&a.setAttribute("style",e.oldValue),(void 0===i.attributes.style||null===i.attributes.style)&&(i.attributes.style={});for(var s=i.attributes.style,c=0,l=Array.from(o.style);c0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){if("rrweb"===e.data.type){if(!e.source)return;var t=this.crossOriginIframeMap.get(e.source);if(!t)return;var n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}}},{key:"transformCrossOriginEvent",value:function(e,t){var n,o=this;switch(t.type){case m.FullSnapshot:return this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e),{timestamp:t.timestamp,type:m.IncrementalSnapshot,data:{source:b.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case m.Meta:case m.Load:case m.DomContentLoaded:return!1;case m.Plugin:return t;case m.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case m.IncrementalSnapshot:switch(t.data.source){case b.Mutation:return t.data.adds.forEach((function(t){o.replaceIds(t,e,["parentId","nextId","previousId"]),o.replaceIdOnNode(t.node,e)})),t.data.removes.forEach((function(t){o.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){o.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.Drag:case b.TouchMove:case b.MouseMove:return t.data.positions.forEach((function(t){o.replaceIds(t,e,["id"])})),t;case b.ViewportResize:return!1;case b.MediaInteraction:case b.MouseInteraction:case b.Scroll:case b.CanvasMutation:case b.Input:return this.replaceIds(t.data,e,["id"]),t;case b.StyleSheetRule:case b.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case b.Font:return t;case b.Selection:return t.data.ranges.forEach((function(t){o.replaceIds(t,e,["start","end"])})),t;case b.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach((function(t){o.replaceStyleIds(t,e,["styleId"])})),t}}}},{key:"replace",value:function(e,t,n,o){var r,i=Pn(o);try{for(i.s();!(r=i.n()).done;){var a=r.value;!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]))}}catch(s){i.e(s)}finally{i.f()}return t}},{key:"replaceIds",value:function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}},{key:"replaceStyleIds",value:function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}},{key:"replaceIdOnNode",value:function(e,t){var n=this;this.replaceIds(e,t,["id"]),"childNodes"in e&&e.childNodes.forEach((function(e){n.replaceIdOnNode(e,t)}))}}]),e}(),W=Object.defineProperty,G=Object.defineProperties,V=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,Y=function(e,t,n){return t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},J=function(e,t){for(var n in t||(t={}))X.call(t,n)&&Y(e,n,t[n]);if(K){var o,r=Pn(K(t));try{for(r.s();!(o=r.n()).done;){n=o.value;Z.call(t,n)&&Y(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Q=function(e,t){return G(e,V(t))},$=function(){function e(t){Dn(this,e),this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var n=this;this.restorePatches.push(Ve(Element.prototype,"attachShadow",(function(e){return function(t){var o=e.call(this,t);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),o}})))}return Fn(e,[{key:"addShadowRoot",value:function(e,t){var n=this;!Ee(e)||this.shadowDoms.has(e)||(this.shadowDoms.add(e),lt(Q(J({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),dt(Q(J({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(e.host)),vt({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e)}),0))}},{key:"observeAttachShadow",value:function(e){if(e.contentWindow){var t=this;this.restorePatches.push(Ve(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(o){var r=n.call(this,o);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}})))}}},{key:"reset",value:function(){this.restorePatches.forEach((function(e){return e()})),this.shadowDoms=new WeakSet}}]),e}(),ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=("undefined"==typeof Uint8Array?"undefined":Bn(Uint8Array))>"u"?[]:new Uint8Array(256),ne=0;ne<64;ne++)te[ee.charCodeAt(ne)]=ne;var oe,re,ie,ae=new Map,se=function(e,t,n){if(e&&(le(e,t)||"object"==Bn(e))){var o=function(e,t){var n=ae.get(e);return n||(n=new Map,ae.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name),r=o.indexOf(e);return-1===r&&(r=o.length,o.push(e)),r}},ce=function(e,t,n){return An(e).map((function(e){return mt(e,t,n)}))},le=function(e,t){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(n.find((function(n){return e instanceof t[n]})))},ue=function(e,t,n){var o;return function(r){return o=o||wt(e,t,n),new Worker(o,r)}}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixwPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylwW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgdT1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCxsPW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gdihzLGUsbil7Y29uc3QgYT1gJHtzfS0ke2V9YDtpZigiT2Zmc2NyZWVuQ2FudmFzImluIGdsb2JhbFRoaXMpe2lmKGwuaGFzKGEpKXJldHVybiBsLmdldChhKTtjb25zdCB0PW5ldyBPZmZzY3JlZW5DYW52YXMocyxlKTt0LmdldENvbnRleHQoIjJkIik7Y29uc3QgZz1hd2FpdChhd2FpdCB0LmNvbnZlcnRUb0Jsb2IobikpLmFycmF5QnVmZmVyKCksZD11KGcpO3JldHVybiBsLnNldChhLGQpLGR9ZWxzZSByZXR1cm4iIn1jb25zdCBpPXNlbGY7aS5vbm1lc3NhZ2U9YXN5bmMgZnVuY3Rpb24ocyl7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtjb25zdHtpZDplLGJpdG1hcDpuLHdpZHRoOmEsaGVpZ2h0OnQsZGF0YVVSTE9wdGlvbnM6Z309cy5kYXRhLGQ9dihhLHQsZyksaD1uZXcgT2Zmc2NyZWVuQ2FudmFzKGEsdCk7aC5nZXRDb250ZXh0KCIyZCIpLmRyYXdJbWFnZShuLDAsMCksbi5jbG9zZSgpO2NvbnN0IHc9YXdhaXQgaC5jb252ZXJ0VG9CbG9iKGcpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89dShiKTtpZighYy5oYXMoZSkmJmF3YWl0IGQ9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX1lbHNlIHJldHVybiBpLnBvc3RNZXNzYWdlKHtpZDpzLmRhdGEuaWR9KX19KSgpOwoK",null,!1),de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,he=function(){function e(t){var n=this;Dn(this,e),this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(e)||n.pendingCanvasMutations.set(e,[]),n.pendingCanvasMutations.get(e).push(t)};var o=t.sampling,r=void 0===o?"all":o,i=t.win,a=t.blockClass,s=t.blockSelector,c=t.recordCanvas,l=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&"all"===r&&this.initCanvasMutationObserver(i,a,s),c&&"number"==typeof r&&this.initCanvasFPSObserver(r,i,a,s,{dataURLOptions:l})}return Fn(e,[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,t,n,o,r){var i=this,a=bt(t,n,o),s=new Map,c=new ue;c.onmessage=function(e){var t=e.data.id;if(s.set(t,!1),"base64"in e.data){var n=e.data,o=n.base64,r=n.type,a=n.width,c=n.height;i.mutationCb({id:t,type:w["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:r}]},0,0]}]})}};var l,u=1e3/e,d=0;l=requestAnimationFrame((function e(a){d&&a-d0&&(o.styles=r),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}(),ge=Object.defineProperty,me=Object.defineProperties,be=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,xe=function(e,t,n){return t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Se=function(e,t){for(var n in t||(t={}))we.call(t,n)&&xe(e,n,t[n]);if(ye){var o,r=Pn(ye(t));try{for(r.s();!(o=r.n()).done;){n=o.value;ke.call(t,n)&&xe(e,n,t[n])}}catch(i){r.e(i)}finally{r.f()}}return e},Ce=function(e,t){return me(e,be(t))},Ie=!1,Le=new r;return xt.addCustomEvent=function(e,t){if(!Ie)throw new Error("please add custom event after start recording");oe(kt({type:m.Custom,data:{tag:e,payload:t}}))},xt.freezePage=function(){D.forEach((function(e){return e.freeze()}))},xt.takeFullSnapshot=function(e){if(!Ie)throw new Error("please take full snapshot after start recording");re(e)},xt.mirror=Le,xt}function Te(e){var t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function Ee(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Oe(e){try{var t=e.rules||e.cssRules;return t?function(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}(Array.from(t).map(Me).join("")):null}catch(n){return null}}function Me(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=Oe(e.styleSheet)||t}catch(n){}return t}function Ae(e){var t=e.maskInputOptions,n=e.tagName,o=e.type,r=e.value,i=e.maskInputFn,a=r||"";return(t[n.toLowerCase()]||t[o])&&(a=i?i(a):"*".repeat(a.length)),a}function Pe(){return a++}function Re(e,t){return(e||"").replace(l,(function(e,n,o,r,i,a){var s=o||i||a,c=n||r||"";if(!s)return e;if(!u.test(s)||d.test(s))return"url(".concat(c).concat(s).concat(c,")");if("/"===s[0])return"url(".concat(c).concat(function(e){return(e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(t)+s).concat(c,")");var l=t.split("/"),p=s.split("/");l.pop();for(var f=0,h=p;f=t.length);){var i=o(p);if(","===i.slice(-1))i=Ne(e,i.substring(0,i.length-1)),r.push(i);else{var a="";i=Ne(e,i);for(var s=!1;;){var c=t.charAt(n);if(""===c){r.push((i+a).trim());break}if(s)")"===c&&(s=!1);else{if(","===c){n+=1,r.push((i+a).trim());break}"("===c&&(s=!0)}a+=c,n+=1}}}return r.join(", ")}(e,o):"style"===n&&o?Re(o,je()):"object"===t&&"data"===n&&o?Ne(e,o):o}function _e(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&_e(e.parentNode,t,n);for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&_e(e.parentNode,t,n)}function Be(e,t,n){var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(o.classList.contains(t)||o.closest(".".concat(t)))return!0}else if(_e(o,t,!0))return!0;return!(!n||!o.matches(n)&&!o.closest(n))}function He(t,r){var a=r.doc,c=r.mirror,l=r.blockClass,u=r.blockSelector,d=r.maskTextClass,p=r.maskTextSelector,f=r.inlineStylesheet,h=r.maskInputOptions,v=void 0===h?{}:h,g=r.maskTextFn,m=r.maskInputFn,b=r.dataURLOptions,y=void 0===b?{}:b,w=r.inlineImages,k=r.recordCanvas,x=r.keepIframeSrcFn,S=r.newlyAddedElement,C=void 0!==S&&S,I=function(e,t){if(t.hasNode(e)){var n=t.getId(e);return 1===n?void 0:n}}(a,c);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode}:{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:I};case t.ELEMENT_NODE:return function(t,r){for(var a=r.doc,c=r.blockClass,l=r.blockSelector,u=r.inlineStylesheet,d=r.maskInputOptions,p=void 0===d?{}:d,f=r.maskInputFn,h=r.dataURLOptions,v=void 0===h?{}:h,g=r.inlineImages,m=r.recordCanvas,b=r.keepIframeSrcFn,y=r.newlyAddedElement,w=void 0!==y&&y,k=r.rootId,x=function(e,t,n){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var o=e.classList.length;o--;){var r=e.classList[o];if(t.test(r))return!0}return!!n&&e.matches(n)}(t,c,l),S=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return s.test(t)?"div":t}(t),C={},I=t.attributes.length,L=0;L2&&void 0!==arguments[2]?arguments[2]:document,o={capture:!0,passive:!0};return n.addEventListener(e,t,o),function(){return n.removeEventListener(e,t,o)}}function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,r=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;st?(o&&(clearTimeout(o),o=null),r=c,e.apply(u,a)):!o&&!1!==n.trailing&&(o=setTimeout((function(){r=!1===n.leading?0:Date.now(),o=null,e.apply(u,a)}),l))}}function Ge(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,o?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),i&&i.set&&i.set.call(this,e)}}),function(){return Ge(e,t,i||{},!0)}}function Ve(e,t,n){try{if(!(t in e))return function(){};var o=e[t],r=n(o);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=r,function(){e[t]=o}}catch(i){return function(){}}}function Ke(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ze(e,t,n,o){if(!e)return!1;var r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!r)return!1;if("string"==typeof t){if(r.classList.contains(t)||o&&null!==r.closest("."+t))return!0}else if(_e(r,t,o))return!0;return!(!n||!(e.matches(n)||o&&null!==r.closest(n)))}function Ye(e,t){return t.getId(e)===c}function Je(e,t){if(Te(e))return!1;var n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Je(e.parentNode,t))}function Qe(e){return Boolean(e.changedTouches)}function $e(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function et(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function tt(e){return Boolean(null==e?void 0:e.shadowRoot)}function nt(e){return"__ln"in e}function ot(e,t){e.delete(t),t.childNodes.forEach((function(t){return ot(e,t)}))}function rt(e,t,n){return 0!==e.length&&it(e,t,n)}function it(e,t,n){var o=t.parentNode;if(!o)return!1;var r=n.getId(o);return!!e.some((function(e){return e.id===r}))||it(e,o,n)}function at(e,t){return 0!==e.size&&st(e,t)}function st(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||st(e,n))}function ct(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(n){return e.target}}function lt(e,t){var n,o,r,i=new I;D.push(i),i.init(e);var a=window.MutationObserver||window.__rrMutationObserver,s=null==(r=null==(o=null===(n=window)||void 0===n?void 0:n.Zone)?void 0:o.__symbol__)?void 0:r.call(o,"MutationObserver");s&&window[s]&&(a=window[s]);var c=new a(i.processMutations.bind(i));return c.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),c}function ut(e){var t=e.mouseInteractionCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.sampling;if(!1===a.mouseInteraction)return function(){};var s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];return Object.keys(y).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]})).forEach((function(e){var a=e.toLowerCase(),s=function(e){return function(n){var a=ct(n);if(!Ze(a,r,i,!0)){var s=Qe(n)?n.changedTouches[0]:n;if(s){var c=o.getId(a),l=s.clientX,u=s.clientY;t({type:y[e],id:c,x:l,y:u})}}}}(e);c.push(ze(a,s,n))})),function(){c.forEach((function(e){return e()}))}}function dt(e){var t=e.scrollCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=We((function(e){var a=ct(e);if(a&&!Ze(a,r,i,!0)){var s=o.getId(a);if(a===n){var c=n.scrollingElement||n.documentElement;t({id:s,x:c.scrollLeft,y:c.scrollTop})}else t({id:s,x:a.scrollLeft,y:a.scrollTop})}}),e.sampling.scroll||100);return ze("scroll",a,n)}function pt(e,t){var n=R({},e);return t||delete n.userTriggered,n}function ft(e){return function(e,t){if(j&&e.parentRule instanceof CSSGroupingRule||F&&e.parentRule instanceof CSSMediaRule||_&&e.parentRule instanceof CSSSupportsRule||B&&e.parentRule instanceof CSSConditionRule){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var o=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(o)}return t}(e,[])}function ht(e,t,n){var o,r;return e?(e.ownerNode?o=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:o}):{}}function vt(e,t){var n,o,r,i=e.mirror,a=e.stylesheetManager,s=null;s="#document"===t.nodeName?i.getId(t):i.getId(t.host);var c="#document"===t.nodeName?null==(n=t.defaultView)?void 0:n.Document:null==(r=null==(o=t.ownerDocument)?void 0:o.defaultView)?void 0:r.ShadowRoot,l=Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets");return null!==s&&-1!==s&&c&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var e;return null==(e=l.get)?void 0:e.call(this)},set:function(e){var t,n=null==(t=l.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{a.adoptStyleSheets(e,s)}catch(o){}return n}}),function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}):function(){}}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var n=e.mutationCb,o=e.mousemoveCb,r=e.mouseInteractionCb,i=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,l=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb;e.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),n.apply(void 0,arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),o.apply(void 0,arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),r.apply(void 0,arguments)},e.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),i.apply(void 0,arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),a.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),s.apply(void 0,arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),c.apply(void 0,arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),l.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),u.apply(void 0,arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),d.apply(void 0,arguments)},e.fontCb=function(){t.font&&t.font.apply(t,arguments),p.apply(void 0,arguments)},e.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),f.apply(void 0,arguments)}}(e,t);var o,r=lt(e,e.doc),i=function(e){var t=e.mousemoveCb,n=e.sampling,o=e.doc,r=e.mirror;if(!1===n.mousemove)return function(){};var i,a="number"==typeof n.mousemove?n.mousemove:50,s="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],l=We((function(e){var n=Date.now()-i;t(c.map((function(e){return e.timeOffset-=n,e})),e),c=[],i=null}),s),u=We((function(e){var t=ct(e),n=Qe(e)?e.changedTouches[0]:e,o=n.clientX,a=n.clientY;i||(i=Date.now()),c.push({x:o,y:a,id:r.getId(t),timeOffset:Date.now()-i}),l(("undefined"==typeof DragEvent?"undefined":Bn(DragEvent))<"u"&&e instanceof DragEvent?b.Drag:e instanceof MouseEvent?b.MouseMove:b.TouchMove)}),a,{trailing:!1}),d=[ze("mousemove",u,o),ze("touchmove",u,o),ze("drag",u,o)];return function(){d.forEach((function(e){return e()}))}}(e),a=ut(e),s=dt(e),c=function(e){var t=e.viewportResizeCb,n=-1,o=-1;return ze("resize",We((function(){var e=Ke(),r=Xe();(n!==e||o!==r)&&(t({width:Number(r),height:Number(e)}),n=e,o=r)}),200),window)}(e),l=function(e){var t=e.inputCb,n=e.doc,o=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.ignoreClass,s=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,u=e.userTriggeredOnInput;function d(e){var t=ct(e),o=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(H.indexOf(t.tagName)<0)&&!Ze(t,r,i,!0)){var l=t.type;if(!t.classList.contains(a)){var d=t.value,f=!1;"radio"===l||"checkbox"===l?f=t.checked:(s[t.tagName.toLowerCase()]||s[l])&&(d=Ae({maskInputOptions:s,tagName:t.tagName,type:l,value:d,maskInputFn:c})),p(t,pt({text:d,isChecked:f,userTriggered:o},u));var h=t.name;"radio"===l&&h&&f&&n.querySelectorAll('input[type="radio"][name="'.concat(h,'"]')).forEach((function(e){e!==t&&p(e,pt({text:e.value,isChecked:!f,userTriggered:!1},u))}))}}}function p(e,n){var r=q.get(e);if(!r||r.text!==n.text||r.isChecked!==n.isChecked){q.set(e,n);var i=o.getId(e);t(N(R({},n),{id:i}))}}var f=("last"===l.input?["change"]:["input","change"]).map((function(e){return ze(e,d,n)})),h=n.defaultView;if(!h)return function(){f.forEach((function(e){return e()}))};var v=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),g=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&f.push.apply(f,An(g.map((function(e){return Ge(e[0],e[1],{set:function(){d({target:this})}},!1,h)})))),function(){f.forEach((function(e){return e()}))}}(e),u=function(e){var t=e.mediaInteractionCb,n=e.blockClass,o=e.blockSelector,r=e.mirror,i=e.sampling,a=function(e){return We((function(i){var a=ct(i);if(a&&!Ze(a,n,o,!0)){var s=a.currentTime,c=a.volume,l=a.muted,u=a.playbackRate;t({type:e,id:r.getId(a),currentTime:s,volume:c,muted:l,playbackRate:u})}}),i.media||500)},s=[ze("play",a(k.Play)),ze("pause",a(k.Pause)),ze("seeked",a(k.Seeked)),ze("volumechange",a(k.VolumeChange)),ze("ratechange",a(k.RateChange))];return function(){s.forEach((function(e){return e()}))}}(e),d=function(e,t){var n=e.styleSheetRuleCb,o=e.mirror,r=e.stylesheetManager,i=t.win,a=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(e,t){var i=ht(this,o,r.styleMirror),s=i.id,c=i.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:t}]}),a.apply(this,[e,t])};var s,c,l=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,removes:[{index:e}]}),l.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(s=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replace:e}),s.apply(this,[e])}),i.CSSStyleSheet.prototype.replaceSync&&(c=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=function(e){var t=ht(this,o,r.styleMirror),i=t.id,a=t.styleId;return(i&&-1!==i||a&&-1!==a)&&n({id:i,styleId:a,replaceSync:e}),c.apply(this,[e])});var u={};j?u.CSSGroupingRule=i.CSSGroupingRule:(F&&(u.CSSMediaRule=i.CSSMediaRule),B&&(u.CSSConditionRule=i.CSSConditionRule),_&&(u.CSSSupportsRule=i.CSSSupportsRule));var d={};return Object.entries(u).forEach((function(e){var t=Mn(e,2),i=t[0],a=t[1];d[i]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=function(e,t){var a=ht(this.parentStyleSheet,o,r.styleMirror),s=a.id,c=a.styleId;return(s&&-1!==s||c&&-1!==c)&&n({id:s,styleId:c,adds:[{rule:e,index:[].concat(An(ft(this)),[t||0])}]}),d[i].insertRule.apply(this,[e,t])},a.prototype.deleteRule=function(e){var t=ht(this.parentStyleSheet,o,r.styleMirror),a=t.id,s=t.styleId;return(a&&-1!==a||s&&-1!==s)&&n({id:a,styleId:s,removes:[{index:[].concat(An(ft(this)),[e])}]}),d[i].deleteRule.apply(this,[e])}})),function(){i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=l,s&&(i.CSSStyleSheet.prototype.replace=s),c&&(i.CSSStyleSheet.prototype.replaceSync=c),Object.entries(u).forEach((function(e){var t=Mn(e,2),n=t[0],o=t[1];o.prototype.insertRule=d[n].insertRule,o.prototype.deleteRule=d[n].deleteRule}))}}(e,{win:n}),p=vt(e,e.doc),f=function(e,t){var n=e.styleDeclarationCb,o=e.mirror,r=e.ignoreCSSAttributes,i=e.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=function(e,t,a){var c;if(r.has(e))return s.apply(this,[e,t,a]);var l=ht(null==(c=this.parentRule)?void 0:c.parentStyleSheet,o,i.styleMirror),u=l.id,d=l.styleId;return(u&&-1!==u||d&&-1!==d)&&n({id:u,styleId:d,set:{property:e,value:t,priority:a},index:ft(this.parentRule)}),s.apply(this,[e,t,a])};var c=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=function(e){var t;if(r.has(e))return c.apply(this,[e]);var a=ht(null==(t=this.parentRule)?void 0:t.parentStyleSheet,o,i.styleMirror),s=a.id,l=a.styleId;return(s&&-1!==s||l&&-1!==l)&&n({id:s,styleId:l,remove:{property:e},index:ft(this.parentRule)}),c.apply(this,[e])},function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=c}}(e,{win:n}),h=e.collectFonts?function(e){var t=e.fontCb,n=e.doc,o=n.defaultView;if(!o)return function(){};var r=[],i=new WeakMap,a=o.FontFace;o.FontFace=function(e,t,n){var o=new a(e,t,n);return i.set(o,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),o};var s=Ve(n.fonts,"add",(function(e){return function(n){return setTimeout((function(){var e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}}));return r.push((function(){o.FontFace=a})),r.push(s),function(){r.forEach((function(e){return e()}))}}(e):function(){},v=function(e){var t=e.doc,n=e.mirror,o=e.blockClass,r=e.blockSelector,i=e.selectionCb,a=!0,s=function(){var e=t.getSelection();if(!(!e||a&&null!=e&&e.isCollapsed)){a=e.isCollapsed||!1;for(var s=[],c=e.rangeCount||0,l=0;l>2],r+=ee[(3&n[t])<<4|n[t+1]>>4],r+=ee[(15&n[t+1])<<2|n[t+2]>>6],r+=ee[63&n[t+2]];return o%3==2?r=r.substring(0,r.length-1)+"=":o%3==1&&(r=r.substring(0,r.length-2)+"=="),r}(e);return{rr_type:o,base64:r}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[mt(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[mt(e.data,t,n),e.width,e.height]}:le(e,t)||"object"==Bn(e)?{rr_type:e.constructor.name,index:se(e,t,n)}:e}function bt(e,t,n){var o=[];try{var r=Ve(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,n=e.checkoutEveryNms,o=e.checkoutEveryNth,i=e.blockClass,a=void 0===i?"rr-block":i,s=e.blockSelector,c=void 0===s?null:s,l=e.ignoreClass,u=void 0===l?"rr-ignore":l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,f=e.maskTextSelector,h=void 0===f?null:f,v=e.inlineStylesheet,g=void 0===v||v,y=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,x=e.maskInputFn,S=e.maskTextFn,C=e.hooks,I=e.packFn,L=e.sampling,T=void 0===L?{}:L,E=e.dataURLOptions,O=void 0===E?{}:E,M=e.mousemoveWait,A=e.recordCanvas,P=void 0!==A&&A,R=e.recordCrossOriginIframes,N=void 0!==R&&R,j=e.userTriggeredOnInput,F=void 0!==j&&j,_=e.collectFonts,B=void 0!==_&&_,H=e.inlineImages,q=void 0!==H&&H,U=e.plugins,W=e.keepIframeSrcFn,G=void 0===W?function(){return!1}:W,V=e.ignoreCSSAttributes,K=void 0===V?new Set([]):V,X=!N||window.parent===window,Z=!1;if(!X)try{window.parent.document,Z=!1}catch(ye){Z=!0}if(X&&!t)throw new Error("emit function is required");void 0!==M&&void 0===T.mousemove&&(T.mousemove=M),Le.reset();var Y=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==w?w:{password:!0},J=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k}:k||{};!function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,n=new Array(t),o=0;o=o,c=n&&e.timestamp-Q.timestamp>n;(s||c)&&re(!0)}};var ne,ae=function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Mutation},e)}))},se=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Scroll},e)}))},ce=function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.CanvasMutation},e)}))},le=new ve({mutationCb:ae,adoptedStyleSheetCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.AdoptedStyleSheet},e)}))}}),ue=new z({mirror:Le,mutationCb:ae,stylesheetManager:le,recordCrossOriginIframes:N,wrappedEmit:oe}),de=Pn(U||[]);try{for(de.s();!(ne=de.n()).done;){var pe=ne.value;pe.getMirror&&pe.getMirror({nodeMirror:Le,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}}catch(we){de.e(we)}finally{de.f()}ie=new he({recordCanvas:P,mutationCb:ce,win:window,blockClass:a,blockSelector:c,mirror:Le,sampling:T.canvas,dataURLOptions:O});var fe=new $({mutationCb:ae,scrollCb:se,bypassOptions:{blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskInputOptions:Y,dataURLOptions:O,maskTextFn:S,maskInputFn:x,recordCanvas:P,inlineImages:q,sampling:T,slimDOMOptions:J,iframeManager:ue,stylesheetManager:le,canvasManager:ie,keepIframeSrcFn:G},mirror:Le});re=function(){var e,t,n,o,i,s,l,u,d,f,v,b,y=arguments.length>0&&void 0!==arguments[0]&&arguments[0];oe(kt({type:m.Meta,data:{href:window.location.href,width:Xe(),height:Ke()}}),y),le.reset(),D.forEach((function(e){return e.lock()}));var w=function(e,t){var n=t||{},o=n.mirror,i=void 0===o?new r:o,a=n.blockClass,s=void 0===a?"rr-block":a,c=n.blockSelector,l=void 0===c?null:c,u=n.maskTextClass,d=void 0===u?"rr-mask":u,p=n.maskTextSelector,f=void 0===p?null:p,h=n.inlineStylesheet,v=void 0===h||h,g=n.inlineImages,m=void 0!==g&&g,b=n.recordCanvas,y=void 0!==b&&b,w=n.maskAllInputs,k=void 0!==w&&w,x=n.maskTextFn,S=n.maskInputFn,C=n.slimDOM,I=void 0!==C&&C,L=n.dataURLOptions,T=n.preserveWhiteSpace,E=n.onSerialize,O=n.onIframeLoad,M=n.iframeLoadTimeout,A=n.onStylesheetLoad,P=n.stylesheetLoadTimeout,R=n.keepIframeSrcFn;return Ue(e,{doc:e,mirror:i,blockClass:s,blockSelector:l,maskTextClass:d,maskTextSelector:f,skipChild:!1,inlineStylesheet:v,maskInputOptions:!0===k?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===k?{password:!0}:k,maskTextFn:x,maskInputFn:S,slimDOMOptions:!0===I||"all"===I?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===I,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===I?{}:I,dataURLOptions:L,inlineImages:m,recordCanvas:y,preserveWhiteSpace:T,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:void 0===R?function(){return!1}:R,newlyAddedElement:!1})}(document,{mirror:Le,blockClass:a,blockSelector:c,maskTextClass:p,maskTextSelector:h,inlineStylesheet:g,maskAllInputs:Y,maskTextFn:S,slimDOM:J,dataURLOptions:O,recordCanvas:P,inlineImages:q,onSerialize:function(e){$e(e,Le)&&ue.addIframe(e),et(e,Le)&&le.trackLinkElement(e),tt(e)&&fe.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),fe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:G});if(!w)return console.warn("Failed to snapshot the document");oe(kt({type:m.FullSnapshot,data:{node:w,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===(e=document)||void 0===e?void 0:e.documentElement.scrollLeft)||(null==(u=null==(l=null===(t=document)||void 0===t?void 0:t.body)?void 0:l.parentElement)?void 0:u.scrollLeft)||(null==(d=null===(n=document)||void 0===n?void 0:n.body)?void 0:d.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===(o=document)||void 0===o?void 0:o.documentElement.scrollTop)||(null==(v=null==(f=null===(i=document)||void 0===i?void 0:i.body)?void 0:f.parentElement)?void 0:v.scrollTop)||(null==(b=null===(s=document)||void 0===s?void 0:s.body)?void 0:b.scrollTop)||0}}})),D.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,Le.getId(document))};try{var ge=[];ge.push(ze("DOMContentLoaded",(function(){oe(kt({type:m.DomContentLoaded,data:{}}))})));var me=function(e){var t;return gt({mutationCb:ae,mousemoveCb:function(e,t){return oe(kt({type:m.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MouseInteraction},e)}))},scrollCb:se,viewportResizeCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.ViewportResize},e)}))},inputCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Input},e)}))},mediaInteractionCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.StyleDeclaration},e)}))},canvasMutationCb:ce,fontCb:function(e){return oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Font},e)}))},selectionCb:function(e){oe(kt({type:m.IncrementalSnapshot,data:Se({source:b.Selection},e)}))},blockClass:a,ignoreClass:u,maskTextClass:p,maskTextSelector:h,maskInputOptions:Y,inlineStylesheet:g,sampling:T,recordCanvas:P,inlineImages:q,userTriggeredOnInput:F,collectFonts:B,doc:e,maskInputFn:x,maskTextFn:S,keepIframeSrcFn:G,blockSelector:c,slimDOMOptions:J,dataURLOptions:O,mirror:Le,iframeManager:ue,stylesheetManager:le,shadowDomManager:fe,canvasManager:ie,ignoreCSSAttributes:K,plugins:(null==(t=null==U?void 0:U.filter((function(e){return e.observer})))?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return oe(kt({type:m.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},C)};ue.addLoadListener((function(e){ge.push(me(e.contentDocument))}));var be=function(){re(),ge.push(me(document)),Ie=!0};return"interactive"===document.readyState||"complete"===document.readyState?be():ge.push(ze("load",(function(){oe(kt({type:m.Load,data:{}})),be()}),window)),function(){ge.forEach((function(e){return e()})),Ie=!1}}catch(ge){console.warn(ge)}}}();function qn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n4e6){var n,o=/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim,r=qn(t.matchAll(o));try{for(r.s();!(n=r.n()).done;){var i=n.value;t="image/"===i[1].toLocaleLowerCase().slice(0,6)?t.replace(i[0],"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAQSURBVHgBAQUA+v8ABRg5/wHSAVZN1mnaAAAAAElFTkSuQmCC"):t.replace(i[0],"")}}catch(a){r.e(a)}finally{r.f()}}return{event:JSON.parse(t),size:t.length}}(t).event;e.push(n)}}))}catch(t){console.error(t)}}},{key:"stop",value:function(){this.stopFunction&&this.stopFunction(),this.startDate=void 0,this.events=[],this.bufferSize=0}},{key:"getReplayData",value:function(){return{startDate:this.startDate,events:this.events,baseUrl:window.location.origin,width:window.innerWidth,height:window.innerHeight,isMobile:w(),type:"rrweb"}}}])&&Vn(t.prototype,n),o&&Vn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Jn(e,t){for(var n=0;nthis.startPoint.x&&(r=this.startPoint.x),t.y>this.startPoint.y&&(i=this.startPoint.y),this.path.setAttributeNS(null,"x",r),this.path.setAttributeNS(null,"y",i),this.path.setAttributeNS(null,"width",n),this.path.setAttributeNS(null,"height",o)}}},{key:"mouseDownRect",value:function(e){this.path=document.createElementNS("http://www.w3.org/2000/svg","rect"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",this.color),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",this.strokeWidthRect),this.startPoint=this.getMousePosition(e),this.appendPathToSvg(this.path)}},{key:"mouseDownPen",value:function(e){var t=this.color+"AA",n=this.strokeWidth;"blur"===this.tool&&(t="#000000",n=40),this.path=document.createElementNS("http://www.w3.org/2000/svg","path"),this.path.setAttribute("fill","none"),this.path.setAttribute("stroke",t),this.path.setAttribute("stroke-linecap","round"),this.path.setAttribute("stroke-width",n),this.buffer=[];var o=this.getMousePosition(e);this.appendToBuffer(o),this.strPath="M"+o.x+" "+o.y,this.path.setAttribute("d",this.strPath),this.appendPathToSvg(this.path)}},{key:"setTool",value:function(e){this.tool=e}},{key:"setColor",value:function(e){this.color=e}},{key:"getMousePosition",value:function(e){return e.touches&&e.touches.length>0?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}},{key:"getAveragePoint",value:function(e){var t=this.buffer.length;if(t%2==1||t>=this.bufferSize){var n,o,r=0,i=0,a=0;for(o=e;othis.bufferSize;)this.buffer.shift()}},{key:"appendPathToSvg",value:function(e){this.svgElement.appendChild(e),this.pathBuffer.push(e),this.rerender()}},{key:"removeLastAddedPathFromSvg",value:function(){this.pathBuffer.length<=0||!this.svgElement||(this.svgElement.removeChild(this.pathBuffer[this.pathBuffer.length-1]),this.pathBuffer.pop(),this.rerender())}},{key:"fadeOutToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=0,e.style.pointerEvents="none")}},{key:"fadeInToolbar",value:function(){var e=document.querySelector(".bb-capture-toolbar");e&&(e.style.opacity=1,e.style.pointerEvents="auto")}}],n&&Jn(t.prototype,n),o&&Jn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function to(e){return to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},to(e)}function no(e,t){for(var n=0;n\n \n
'.concat(p("dismiss"),"
\n
").concat(p("rect"),'
\n
\n
\n ').concat(p("drag"),"\n
\n ").concat("capture"===this.type?'
\n '.concat(p("recorderon"),"\n ").concat(p("recorderoff"),'\n \n
\n
\n ').concat(p("mic"),'\n \n
\n
2:00
\n
\n
\n ').concat(p("pointer"),"\n
"):"",'\n
\n ').concat(p("rect"),'\n
\n
\n ').concat(p("pen"),'\n
\n
\n ').concat(p("blur"),'\n
\n
\n
\n ').concat(go.translateText("pickAColor"),'\n
\n
\n ').concat(p("undo"),'\n ').concat(go.translateText("undo"),"\n
\n ").concat("capture"!==this.type?'
'.concat(go.translateText("next"),"
"):"",'\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
').concat(go.translateText("retry"),'
\n
').concat(go.translateText("next"),"
\n
\n
\n
\n "),document.body.appendChild(e),e.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}},{key:"unregisterListeners",value:function(){this.escListener&&document.removeEventListener("keydown",this.escListener),this.pageLeaveListener&&window.removeEventListener("beforeunload",this.pageLeaveListener)}},{key:"registerListeners",value:function(){var e=this;this.escListener=function(t){var n=!1,o=!1;"key"in(t=t||window.event)&&(n="Escape"===t.key,o="Enter"===t.key),n&&e.dismiss(),"screenshot"===e.type&&o&&e.showNextStep()},document.addEventListener("keydown",this.escListener),this.pageLeaveListener=function(e){e.preventDefault(),e.returnValue=""},window.addEventListener("beforeunload",this.pageLeaveListener)}},{key:"show",value:function(e){this.callback=e,this.registerListeners(),this.hideWidgetUI(),this.createEditorUI(),this.setupMousePointer(),"screenshot"===this.type?(ki.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY}),io.disableScroll()):this.setupScreenRecording(),this.screenDrawer=new eo(this.captureScreenDrawerRerender.bind(this)),this.setupColorPicker(),this.setupToolbar()}},{key:"setupColorPicker",value:function(){for(var t=this,n=document.querySelector(".bb-capture-toolbar-item-selectedcolor"),o=document.querySelectorAll(".bb-capture-toolbar-item-color"),r=document.querySelector(".bb-capture-toolbar-item-colorpicker"),i=function(){var i=o[a],s=i.getAttribute("data-color");i.style.backgroundColor=s,i.onclick=function(){i&&(t.screenDrawer.setColor(s),r&&(r.style.display="none"),n.style.backgroundColor=i.style.backgroundColor,e.setPenColor(s))}},a=0;a0?o.classList.remove(e):o.classList.add(e))}}},{key:"captureRenderer",value:function(){if(this.screenRecorder){this.screenRecorder.file&&ki.getInstance().setGlobalDataItem("screenRecordingData",this.screenRecorder.file);var e="bb-capture-editor-item-inactive",t=document.querySelector(".bb-capture-toolbar-item-timer"),n=document.querySelectorAll(".bb-capture-toolbar-item"),o=document.querySelector(".bb-tooltip-screen-recording"),r=document.querySelector(".bb-tooltip-audio-recording"),i=document.querySelector(".bb-capture-editor"),a="bb-capture-editor-recording",s="bb-capture-editor-notrecording";this.screenRecorder.isRecording?(i.classList.add(a),i.classList.remove(s)):(i.classList.add(s),i.classList.remove(a));var c=document.querySelector(".bb-capture-toolbar");document.querySelector(".bb-capture-preview").style.display=this.screenRecorder.file?"flex":"none",c.style.display=this.screenRecorder.file?"none":"flex";for(var l=0;l0){var t=e.filter((function(e){return new Date(e.createdAt)>new Date(Date.now()-36e5)}));t.length>2?this.notifications=t.splice(0,t.length-2):this.notifications=t,this.renderNotifications()}}catch(n){}}},{key:"setNotificationCount",value:function(e){Gt.getInstance().isOpened()?(this.unreadCount=0,this.updateTabBarNotificationCount()):this.unreadCount=e,this.updateTabBarNotificationCount(),a.getInstance().updateNotificationBadge(this.unreadCount)}},{key:"showNotification",value:function(e){this.notificationContainer&&e&&e.data&&(this.notifications.find((function(t){return e.outbound===t.outbound}))||(this.notifications.push(e),e.sound&&Yo.ping()),this.notifications.length>2&&this.notifications.shift(),I(this.unreadNotificationsKey,this.notifications),this.renderNotifications())}},{key:"renderNotifications",value:function(){var e=this;if(this.notificationContainer){this.clearAllNotifications(!0);var t=document.createElement("div");t.onclick=function(){e.clearAllNotifications(),e.currentNewsIndex=0},t.className="gleap-notification-close",t.innerHTML=p("dismiss"),this.notificationContainer.appendChild(t);var n=this.notifications.filter((function(e){return e.data.news})).sort((function(e,t){return new Date(e.createdAt)-new Date(t.createdAt)})),o=this.notifications.filter((function(e){return!e.data.news}));if(n.length>0){var r=this.currentNewsIndex1){var v=document.createElement("div");v.className="gleap-news-pagination";var g=document.createElement("span");g.className="gleap-news-page-indicator",g.innerText="".concat(r+1," / ").concat(n.length),v.appendChild(g);var m=document.createElement("button");m.className="gleap-news-next-button",r\n
\n
\n '.concat(t.data.text,'\n
\n
\n
\n
\n
\n \n \n \n ').concat(t.data.nextStepTitle,"\n
\n
\n ")}else r.className="gleap-notification-item",r.innerHTML="\n ".concat(t.data.sender&&t.data.sender.profileImageUrl&&''),'\n
\n ').concat(t.data.sender?'
\n '.concat(t.data.sender.name,"\n
"):"",'\n
').concat(n,"
\n
");e.notificationContainer.appendChild(r)},y=0;y0||o.length>0||this.clearAllNotifications(!0)}}},{key:"openNews",value:function(e){e.data.news?ki.openNewsArticle(e.data.news.id,!0):ki.open()}},{key:"renderDescription",value:function(e){var t=e.data,n=t.previewText,o=t.sender;return n&&n.length>0?n:o?'\n
\n '.concat(o.profileImageUrl?'').concat(o.name,''):"","\n ").concat(o.name,"\n
\n "):""}},{key:"clearAllNotifications",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.notificationContainer)for(e||(this.notifications=[],this.currentNewsIndex=0,I(this.unreadNotificationsKey,this.notifications));this.notificationContainer.firstChild;)this.notificationContainer.removeChild(this.notificationContainer.firstChild)}},{key:"updateContainerStyle",value:function(){if(this.notificationContainer){var e=ut.getInstance().getFlowConfig(),t="gleap-notification-container--left",n="gleap-notification-container--no-button";this.notificationContainer.classList.remove(t),this.notificationContainer.classList.remove(n),e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_CLASSIC_LEFT&&e.feedbackButtonPosition!==a.FEEDBACK_BUTTON_BOTTOM_LEFT||this.notificationContainer.classList.add(t),null===a.getInstance().buttonHidden?e.feedbackButtonPosition===a.FEEDBACK_BUTTON_NONE&&this.notificationContainer.classList.add(n):a.getInstance().buttonHidden&&this.notificationContainer.classList.add(n),this.notificationContainer.setAttribute("dir",go.getInstance().isRTLLayout?"rtl":"ltr")}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Eo(t.prototype,n),o&&Eo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Po(e){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(e)}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function No(e){for(var t=1;t'),document.body.appendChild(t),this.bannerContainer=t}},{key:"sendMessage",value:function(e){try{var t=document.querySelector(".gleap-b-frame");t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(No(No({},e),{},{type:"banner"})),"*")}catch(n){}}},{key:"showBanner",value:function(e){this.injectBannerUI(e)}}])&&Do(t.prototype,n),o&&Do(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bo(e){return Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo(e)}function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function qo(e){for(var t=1;t\n
\n \n
\n '),document.body.appendChild(n),this.modalContainer=n,this.modalBackdropClickListener=this.modalContainer.querySelector(".gleap-modal-backdrop").addEventListener("click",(function(){var e,n;(null===(e=null===(n=t.modalData)||void 0===n?void 0:n.showCloseButton)||void 0===e||e)&&t.hideModal()})),document.body.classList.add("gleap-modal-open")}},{key:"_postMessage",value:function(e){try{var t=this.modalContainer.querySelector(".gleap-modal-frame");null!=t&&t.contentWindow&&t.contentWindow.postMessage(JSON.stringify(qo(qo({},e),{},{type:"modal"})),this.modalUrl)}catch(n){}}},{key:"showModal",value:function(e){e&&e.config&&this._injectModalUI(e.config)}},{key:"hideModal",value:function(){this.modalContainer&&(this.modalBackdropClickListener&&this.modalContainer.querySelector(".gleap-modal-backdrop").removeEventListener("click",this.modalBackdropClickListener),document.body.removeChild(this.modalContainer),this.modalContainer=null,document.body.classList.remove("gleap-modal-open"))}}])&&Uo(t.prototype,n),o&&Uo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function Ko(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0])||o(t.gleapCollapseUI,e)&&o(t.gleapFrameContainer,n))&&(t.gleapCollapseUI&&t.gleapCollapseUI.classList.toggle(e),t.gleapFrameContainer&&t.gleapFrameContainer.classList.toggle(n))})),wr(this,"injectCollapseUI",(function(){if(!t.injectedCollapseUI){t.injectedCollapseUI=!0;var e=document.createElement("div");e.className="gleap-admin-collapse-ui",e.innerHTML='
\n '.concat(p("arrowdown"),"\n
"),document.body.appendChild(e),t.gleapCollapseUI=e,e.addEventListener("click",(function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t.toggleCollapseUI()}))}})),wr(this,"injectFrame",(function(){var e;if(!t.injectedFrame){t.injectedFrame=!0;var n=document.createElement("div");n.className="gleap-admin-frame-container",n.innerHTML=''),document.body.appendChild(n),t.gleapFrameContainer=n,t.gleapFrame=document.querySelector(".gleap-admin-frame")}}))}var t,n,o;return t=e,o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],(n=[{key:"logCurrentPage",value:function(){var e=window.location.href;e&&e!==this.lastUrl&&(this.lastUrl=e,this.sendMessageToTourBuilder({name:"page-changed",data:{page:e}}))}},{key:"startPageListener",value:function(){var e=this;setInterval((function(){e.logCurrentPage()}),1e3)}},{key:"initAdminHelper",value:function(){var e=this;Yr.getInstance().disable(),e.adminHelper=new vr;try{e.adminHelper.onElementPicked=function(t){e.toggleCollapseUI(!0),e.sendMessageToTourBuilder({name:"element-picked",data:{selector:t}})}}catch(t){console.log(t)}e.injectFrame(),e.injectCollapseUI(),e.setFrameHeight("loading")}},{key:"setFrameHeight",value:function(e){if(this.gleapFrameContainer){var t="";t="picker"===e||"navigate"===e?"65px":"editor"===e?"100vh":"0px",this.gleapFrameContainer.style.height=t}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!window.gleapAdminDisabled){var t=this;window.addEventListener("message",(function(n){if("https://app.gleap.io"===n.origin)try{var o=JSON.parse(n.data);if("admin"===o.type&&("load"===o.name&&(t.configData=o.data,t.initAdminHelper()),"smartlink-search-result"===o.name&&e.sendMessageToTourBuilder({name:"smartlink-search-result",data:o.data})),"tourbuilder"===o.type){var r;if("loaddata"===o.name&&e.sendMessageToTourBuilder({name:"data",data:br(br({},t.configData),{},{currentPage:window.location.href})}),"highlight-element"===o.name&&(document.querySelectorAll(".gleap-admin-highlight").forEach((function(e){e.classList.remove("gleap-admin-highlight")})),null!=o&&null!==(r=o.data)&&void 0!==r&&r.selector)){var i,a=document.querySelector(null==o||null===(i=o.data)||void 0===i?void 0:i.selector);a&&a.classList.add("gleap-admin-highlight")}if("smartlink-search"===o.name&&e.sendMessage({name:"smartlink-search",data:o.data}),"product-tour-started"===o.name&&e.sendMessage({name:"product-tour-started",data:o.data}),"save"===o.name&&e.sendMessage({name:"save",data:o.data}),"update-steps"===o.name&&e.sendMessage({name:"update-steps",data:o.data}),"click"===o.name)try{document.querySelector(o.data.selector).click()}catch(s){console.log(s)}"status-changed"===o.name&&(t.status=o.data,e.setFrameHeight(t.status),t.adminHelper.stopPicker(),"picker"===t.status&&t.adminHelper.startPicker())}}catch(c){}})),this.sendMessage({name:"init"}),this.startPageListener()}}},{key:"sendMessage",value:function(e){try{window&&window.opener&&window.opener.postMessage(JSON.stringify(br(br({},e),{},{type:"admin"})),"*")}catch(t){}}},{key:"sendMessageToTourBuilder",value:function(e){try{this.gleapFrame&&this.gleapFrame.contentWindow&&this.gleapFrame.contentWindow.postMessage(JSON.stringify(br(br({},e),{},{type:"tourbuilder"})),"*")}catch(t){}}}])&&yr(t.prototype,n),o&&yr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Cr(e){return function(e){if(Array.isArray(e))return Ir(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ir(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ir(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{})}function n(t){return t?e[t]:e}function o(e,t,n,o){return(e/=o/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function r(e){var t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap((function(e){var n=e.matches(t),o=Array.from(e.querySelectorAll(t));return[].concat(Cr(n?[e]:[]),o)})).filter((function(e){return"none"!==getComputedStyle(e).pointerEvents&&function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)}))}function i(e){if(e&&!function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e)){var t=n("smoothScroll");e.scrollIntoView({behavior:!t||a(e)?"auto":"smooth",inline:"center",block:"center"})}}function a(e){if(e&&e.parentElement){var t=e.parentElement;return t.scrollHeight>t.clientHeight}}var s={};function c(e,t){s[e]=t}function l(e){return e?s[e]:s}function u(){s={}}var d={};function p(e,t){d[e]=t}function f(e){var t;null==(t=d[e])||t.call(d)}function h(e){if(e){var t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};c("__activeStagePosition",n),g(n)}}function v(e){var t=function(e){var t=window.innerWidth,o=window.innerHeight,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.classList.add("gleap-tour-overlay","gleap-tour-overlay-animated"),r.setAttribute("viewBox","0 0 ".concat(t," ").concat(o)),r.setAttribute("xmlSpace","preserve"),r.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("preserveAspectRatio","xMinYMin slice"),r.style.fillRule="evenodd",r.style.clipRule="evenodd",r.style.strokeLinejoin="round",r.style.strokeMiterlimit="2",r.style.zIndex="10000",r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%";var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",m(e)),i.style.fill=n("overlayColor")||"rgb(0,0,0)",i.style.opacity="".concat(n("overlayOpacity")),i.style.pointerEvents="auto",i.style.cursor="auto",r.appendChild(i),r}(e);document.body.appendChild(t),S(t,(function(e){"path"===e.target.tagName&&f("overlayClick")})),c("__overlaySvg",t)}function g(e){var t=l("__overlaySvg");if(t){var n=t.firstElementChild;if("path"!==(null==n?void 0:n.tagName))throw new Error("no path element found in stage svg");n.setAttribute("d",m(e))}else v(e)}function m(e){var t=window.innerWidth,o=window.innerHeight,r=n("stagePadding")||0,i=n("stageRadius")||0,a=e.width+2*r,s=e.height+2*r,c=Math.min(i,a/2,s/2),l=Math.floor(Math.max(c,0)),u=e.x-r+l,d=e.y-r,p=a-2*l,f=s-2*l;return"M".concat(t,",0L0,0L0,").concat(o,"L").concat(t,",").concat(o,"L").concat(t,",0Z\n M").concat(u,",").concat(d," h").concat(p," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",").concat(l," v").concat(f," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",").concat(l," h-").concat(p," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",-").concat(l," v-").concat(f," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",-").concat(l," z")}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,r=e.element,a=r;if("string"==typeof a)try{a=document.querySelector(r)}catch(u){var s=r.replace(/(#[^#\s]+)/g,(function(e){return e.replace(/:/g,"\\:")}));a=document.querySelector(s)}if(r&&!a&&t>=0)setTimeout((function(){C(),b(e,t-100)}),100);else{if(!a&&("INPUT"===e.mode||"CLICK"===e.mode))return n("onElementNotFound")(e);a||(a=function(){var e=document.getElementById("gleap-tour-dummy-element");if(e)return e;var t=document.createElement("div");return t.id="gleap-tour-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}()),function(e,t){var r,a,s=400,u=Date.now(),d=l("__activeStep"),p=l("__activeElement")||e,f=!p||p===e,v="gleap-tour-dummy-element"===e.id,m="gleap-tour-dummy-element"===p.id,b=n("animate"),y=t.onHighlightStarted||n("onHighlightStarted"),w=(null==t?void 0:t.onHighlighted)||n("onHighlighted"),k=(null==d?void 0:d.onDeselected)||n("onDeselected"),x=n(),S=l();!f&&k&&k(m?void 0:p,d,{config:x,state:S});y&&y(v?void 0:e,t,{config:x,state:S});var L=!f&&b,T=!1;C(),c("previousStep",d),c("previousElement",p),c("activeStep",t),c("activeElement",e);var E=function r(){if(l("__transitionCallback")===r){var i=Date.now()-u,a=s-i<=s/2;t.popover&&a&&!T&&L&&(I(e,t),T=!0),n("animate")&&i0&&R[0].focus()}function L(){var e=l("popover");if(null==e?void 0:e.wrapper){var t=e.wrapper.getBoundingClientRect(),o=n("stagePadding")||0,r=n("popoverOffset")||0;return{width:t.width+o+r,height:t.height+o+r,realWidth:t.width,realHeight:t.height}}}function T(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.top-r,window.innerHeight-o.realHeight-i.width),i.width):"end"===e?Math.max(Math.min(n.top-(null==o?void 0:o.realHeight)+n.height+r,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):"center"===e?Math.max(Math.min(n.top+n.height/2-(null==o?void 0:o.realHeight)/2,window.innerHeight-(null==o?void 0:o.realHeight)-i.width),i.width):0}function E(e,t){var n=t.elementDimensions,o=t.popoverDimensions,r=t.popoverPadding,i=t.popoverArrowDimensions;return"start"===e?Math.max(Math.min(n.left-r,window.innerWidth-o.realWidth-i.width),i.width):"end"===e?Math.max(Math.min(n.left-(null==o?void 0:o.realWidth)+n.width+r,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):"center"===e?Math.max(Math.min(n.left+n.width/2-(null==o?void 0:o.realWidth)/2,window.innerWidth-(null==o?void 0:o.realWidth)-i.width),i.width):0}function O(e,t){var o=l("popover");if(o){var r=(null==t?void 0:t.popover)||{},i=r.align,a=void 0===i?"start":i,s=r.side,c=void 0===s?"left":s,u=a,d="gleap-tour-dummy-element"===e.id?"over":c,p=n("stagePadding")||0,f=L(),h=o.arrow.getBoundingClientRect(),v=e.getBoundingClientRect(),g=v.top-f.height,m=g>=0,b=window.innerHeight-(v.bottom+f.height),y=b>=0,w=v.left-f.width,k=w>=0,x=window.innerWidth-(v.right+f.width),S=x>=0,C=!(m||y||k||S),I=d;if("top"===d&&m?S=k=y=!1:"bottom"===d&&y?S=k=m=!1:"left"===d&&k?S=m=y=!1:"right"===d&&S&&(k=m=y=!1),"over"===d){var O=window.innerWidth/2-f.realWidth/2,M=window.innerHeight/2-f.realHeight/2;o.wrapper.style.left="".concat(O,"px"),o.wrapper.style.right="auto",o.wrapper.style.top="".concat(M,"px"),o.wrapper.style.bottom="auto"}else if(C){var A=window.innerWidth/2-(null==f?void 0:f.realWidth)/2;o.wrapper.style.left="".concat(A,"px"),o.wrapper.style.right="auto",o.wrapper.style.bottom="".concat(10,"px"),o.wrapper.style.top="auto"}else if(k){var P=Math.min(w,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),R=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(P,"px"),o.wrapper.style.top="".concat(R,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="left"}else if(S){var N=Math.min(x,window.innerWidth-(null==f?void 0:f.realWidth)-h.width),D=T(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.right="".concat(N,"px"),o.wrapper.style.top="".concat(D,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.left="auto",I="right"}else if(m){var j=Math.min(g,window.innerHeight-f.realHeight-h.width),F=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.top="".concat(j,"px"),o.wrapper.style.left="".concat(F,"px"),o.wrapper.style.bottom="auto",o.wrapper.style.right="auto",I="top"}else if(y){var _=Math.min(b,window.innerHeight-(null==f?void 0:f.realHeight)-h.width),B=E(u,{elementDimensions:v,popoverDimensions:f,popoverPadding:p,popoverArrowDimensions:h});o.wrapper.style.left="".concat(B,"px"),o.wrapper.style.bottom="".concat(_,"px"),o.wrapper.style.top="auto",o.wrapper.style.right="auto",I="bottom"}C?o.arrow.classList.add("gleap-tour-popover-arrow-none"):function(e,t,n){var o=l("popover");if(!o)return;var r=n.getBoundingClientRect(),i=L(),a=o.arrow,s=i.width,c=window.innerWidth,u=r.width,d=r.left,p=i.height,f=window.innerHeight,h=r.top,v=r.height;a.className="gleap-tour-popover-arrow";var g=t,m=e;"top"===t?(d+u<=0?(g="right",m="end"):d+u-s<=0&&(g="top",m="start"),d>=c?(g="left",m="end"):d+s>=c&&(g="top",m="end")):"bottom"===t?(d+u<=0?(g="right",m="start"):d+u-s<=0&&(g="bottom",m="start"),d>=c?(g="left",m="start"):d+s>=c&&(g="bottom",m="end")):"left"===t?(h+v<=0?(g="bottom",m="end"):h+v-p<=0&&(g="left",m="start"),h>=f?(g="top",m="end"):h+p>=f&&(g="left",m="end")):"right"===t&&(h+v<=0?(g="bottom",m="start"):h+v-p<=0&&(g="right",m="start"),h>=f?(g="top",m="start"):h+p>=f&&(g="right",m="end"));g?(a.classList.add("gleap-tour-popover-arrow-side-".concat(g)),a.classList.add("gleap-tour-popover-arrow-align-".concat(m))):a.classList.add("gleap-tour-popover-arrow-none")}(u,I,e)}}return function(){function e(){n("allowClose")&&h()}function o(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e+1;t[o]?f(o):h()}}function r(){var e=l("activeIndex"),t=n("steps")||[];if(void 0!==e){var o=e-1;t[o]?f(o):h()}}function i(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),o=l("__activeStep"),i=l("__activeElement");if("CLICK"!==o.mode)if(void 0!==t&&void 0!==o)if(void 0!==l("activeIndex")){var a=(null==(e=o.popover)?void 0:e.onPrevClick)||n("onPrevClick");if(a)return a(i,o,{config:n(),state:l()});r()}}}function a(){var e;if(!l("__transitionCallback")){var t=l("activeIndex"),r=l("__activeStep"),i=l("__activeElement");if("CLICK"!==r.mode&&void 0!==t&&void 0!==r){var a=(null==(e=r.popover)?void 0:e.onNextClick)||n("onNextClick");if(a)return a(i,r,{config:n(),state:l()});o()}}}function s(){l("isInitialized")||(c("isInitialized",!0),document.body.classList.add("gleap-tour-active",n("animate")?"gleap-tour-fade":"gleap-tour-simple"),window.addEventListener("keyup",x,!1),window.addEventListener("keydown",k,!1),window.addEventListener("resize",w),window.addEventListener("scroll",w),p("overlayClick",e),p("escapePress",e),p("arrowLeftPress",i),p("arrowRightPress",a))}function f(){var e,t,o,r,i,a,s,l,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,d=n("steps");if(!d)return console.error("No steps to drive through"),void h();if(d[u]){c("__activeOnDestroyed",document.activeElement),c("activeIndex",u);var p=d[u],v=d[u+1],g=d[u-1],m=(null==(e=p.popover)?void 0:e.doneBtnText)||n("doneBtnText")||"Done",y=n("allowClose"),w=void 0!==(null==(t=p.popover)?void 0:t.showProgress)?null==(o=p.popover)?void 0:o.showProgress:n("showProgress"),k=((null==(r=p.popover)?void 0:r.progressText)||n("progressText")||"{{current}} of {{total}}").replace("{{current}}","".concat(u+1)).replace("{{total}}","".concat(d.length)),x=(null==(i=p.popover)?void 0:i.showButtons)||n("showButtons"),S=["next","previous"].concat(Cr(y?["close"]:[])).filter((function(e){return!(null==x?void 0:x.length)||x.includes(e)})),C=(null==(a=p.popover)?void 0:a.onNextClick)||n("onNextClick"),I=(null==(s=p.popover)?void 0:s.onPrevClick)||n("onPrevClick"),L=(null==(l=p.popover)?void 0:l.onCloseClick)||n("onCloseClick");b(Tr(Tr({},p),{},{popover:Tr({showButtons:S,nextBtnText:v?void 0:m,disableButtons:Cr(g?[]:["previous"]),showProgress:w,progressText:k,onNextClick:C||function(){v?f(u+1):h()},onPrevClick:I||function(){f(u-1)},onCloseClick:L||function(){h()}},(null==p?void 0:p.popover)||{})}))}else h()}function h(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=l("__activeElement"),o=l("__activeStep"),r=l("__activeOnDestroyed"),i=n("onDestroyStarted");if(e&&i){i(!t||"gleap-tour-dummy-element"===(null==t?void 0:t.id)?void 0:t,o,{config:n(),state:l()})}else{var a,s,c,p=(null==o?void 0:o.onDeselected)||n("onDeselected"),f=n("onDestroyed");if(document.body.classList.remove("gleap-tour-active","gleap-tour-fade","gleap-tour-simple"),window.removeEventListener("keyup",x),window.removeEventListener("resize",w),window.removeEventListener("scroll",w),(s=l("popover"))&&(null==(a=s.wrapper.parentElement)||a.removeChild(s.wrapper)),function(){var e;null==(e=document.getElementById("gleap-tour-dummy-element"))||e.remove(),document.querySelectorAll(".gleap-tour-active-element").forEach((function(e){e.classList.remove("gleap-tour-active-element","gleap-tour-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}))}(),(c=l("__overlaySvg"))&&c.remove(),d={},u(),t&&o){var h="gleap-tour-dummy-element"===t.id;p&&p(h?void 0:t,o,{config:n(),state:l()}),f&&f(h?void 0:t,o,{config:n(),state:l()})}r&&r.focus()}}return t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{isActive:function(){return l("isInitialized")||!1},refresh:w,drive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;s(),f(e)},setConfig:t,setSteps:function(e){u(),t(Tr(Tr({},n()),{},{steps:e}))},getConfig:n,getState:l,getActiveIndex:function(){return l("activeIndex")},isFirstStep:function(){return 0===l("activeIndex")},isLastStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&t===e.length-1},getActiveStep:function(){return l("activeStep")},getActiveElement:function(){return l("activeElement")},getPreviousElement:function(){return l("previousElement")},getPreviousStep:function(){return l("previousStep")},moveNext:o,movePrevious:r,moveTo:function(e){(n("steps")||[])[e]?f(e):h()},hasNextStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t+1]},hasPreviousStep:function(){var e=n("steps")||[],t=l("activeIndex");return void 0!==t&&e[t-1]},highlight:function(e){s(),b(Tr(Tr({},e),{},{popover:e.popover?Tr({showButtons:[],showProgress:!1,progressText:""},e.popover):void 0}))},destroy:function(){h(!1)}}}}();const Mr=Or;function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}function Pr(){Pr=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new M(o||[]);return r(a,"_invoke",{value:L(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",v="completed",g={};function m(){}function b(){}function y(){}var w={};l(w,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&o.call(x,a)&&(w=x);var S=y.prototype=m.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(r,i,a,s){var c=d(e[r],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ar(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function L(t,n,o){var r=p;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var c=T(s,o);if(c){if(c===g)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===p)throw r=v,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var l=d(t,n,o);if("normal"===l.type){if(r=o.done?v:f,l.arg===g)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(r=v,o.method="throw",o.arg=l.arg)}}}function T(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.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,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];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=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function Rr(e,t){for(var n=0;n=0&&t.productTourData&&t.productTourData.steps){var e=t.productTourData.steps[t.currentActiveIndex];e&&e.selector&&""!==e.selector&&t.updatePointerPosition(document.querySelector(e.selector),e)}})))}var t,n,o;return t=e,n=[{key:"disable",value:function(){this.disabled=!0,this.cleanup()}},{key:"startWithConfig",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;"undefined"!=typeof window&&(this.productTourId||this.disabled||(this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0,this.onCompleteCallback=n,this.start()))}},{key:"storeUncompletedTour",value:function(){if("undefined"!=typeof window)if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Fr,JSON.stringify(e))}catch(t){}else localStorage.removeItem(Fr)}},{key:"attachScrollListeners",value:function(e,t){var n=this;if("undefined"!=typeof window&&e){var o=function(e){if("undefined"!=typeof window){for(var t=[],n=e.parentElement;n;){var o=window.getComputedStyle(n);("auto"===o.overflowY||"scroll"===o.overflowY)&&n.scrollHeight>n.clientHeight&&t.push(n),n=n.parentElement}return t}}(e);o.push(window),o.forEach((function(o){var r=function(){clearTimeout(n._scrollDebounceTimer),n._scrollDebounceTimer=setTimeout((function(){n.updatePointerPosition(e,t)}),150)};o.addEventListener("scroll",r,{passive:!0}),n._scrollListeners.push({el:o,handler:r})}))}}},{key:"removeScrollListeners",value:function(){"undefined"!=typeof window&&(this._scrollListeners&&this._scrollListeners.length>0&&(this._scrollListeners.forEach((function(e){var t=e.el,n=e.handler;t.removeEventListener("scroll",n)})),this._scrollListeners=[]),this._scrollDebounceTimer&&(clearTimeout(this._scrollDebounceTimer),this._scrollDebounceTimer=null))}},{key:"updatePointerPosition",value:function(e,t){var n,o=this;if("undefined"!=typeof window)try{var r=this._pointerContainer||document.getElementById(_r);if(!r)return;if(!e)return r.style.position="fixed",r.style.left="50%",r.style.top="50%",r.style.transform="translate(-50%, -50%)",function(e){if("undefined"!=typeof window){var t=e-window.innerHeight/2;window.scrollTo({top:t,behavior:"smooth"})}}(window.innerHeight/2),this.removeScrollListeners(),this._currentAnchor=null,void(this._currentStep=null);n=e,"undefined"!=typeof window&&n&&n.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});var i=0;!function n(){if(function(e){if("undefined"!=typeof window){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}}(e)||i>=20){var a=e.getBoundingClientRect(),s=a.left+a.width/2,c=a.top+a.height/2+10;r.style.position="fixed",r.style.left="".concat(s,"px"),r.style.top="".concat(c,"px"),r.style.transform="translate(-50%, -50%)";var l=350;l>window.innerWidth-40&&(l=window.innerWidth-40),s+l>window.innerWidth-20?r.classList.add("copilot-pointer-container-right"):r.classList.remove("copilot-pointer-container-right"),o._currentAnchor===e&&o._currentStep===t||(o.removeScrollListeners(),o._currentAnchor=e,o._currentStep=t,o.attachScrollListeners(e,t))}else i++,setTimeout(n,100)}()}catch(a){}}},{key:"cleanup",value:function(){var e=this;"undefined"!=typeof window&&(document.body.classList.add("gl-copilot-fade-out"),setTimeout((function(){if(e._pointerContainer)e._pointerContainer.remove(),e._pointerContainer=null;else{var t=document.getElementById(_r);t&&t.remove()}var n=document.getElementById(Hr);n&&n.remove();var o=document.getElementById(Br);o&&o.remove(),document.body.classList.remove("gl-copilot-fade-out")}),800),this.removeScrollListeners())}},{key:"toggleAudio",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.audioMuted=e,this.currentAudio&&(this.currentAudio.muted=this.audioMuted),document.querySelector(".".concat(Hr,"-mute")).innerHTML=p(this.audioMuted?"unmute":"mute")}},{key:"setupCopilotTour",value:function(){var e,t,n,o,r,i,a=this;if("undefined"!=typeof window){var s,c,l=null!==(e=null===(t=ut.getInstance().flowConfig)||void 0===t?void 0:t.color)&&void 0!==e?e:"#485BFF",u=d(l),f=document.getElementById(Br);f||((f=document.createElement("style")).id=Br,f.type="text/css",f.textContent="\n #".concat(_r," {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n align-items: flex-start;\n pointer-events: none;\n z-index: 2147483610;\n transition: all 0.5s ease;\n }\n .").concat(_r,"-clickmode {\n cursor: pointer;\n pointer-events: all !important;\n }\n .").concat(_r,"-clickmode #copilot-info-bubble-content {\n display: flex !important;\n }\n .").concat(_r,"-clickmode svg {\n display: none !important;\n }\n #").concat(_r," svg {\n width: 20px;\n height: auto;\n fill: none;\n }\n #copilot-info-bubble {\n position: relative;\n }\n #copilot-info-bubble-content-container {\n position: absolute;\n top: 0px;\n left: 0px;\n min-width: min(300px, 80vw);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n .").concat(_r,"-right #copilot-info-bubble-content-container {\n left: auto !important;\n right: 0px !important;\n align-items: flex-end;\n }\n .").concat(_r,"-right .copilot-info-bubble-content {\n margin-right: 5px;\n }\n .").concat(_r,"-right svg {\n transform: scaleX(-1);\n }\n #copilot-info-bubble-content svg {\n width: 16px;\n height: 16px;\n display: inline-block !important;\n margin-left: 5px;\n }\n #copilot-info-bubble-content {\n margin-top: 18px;\n margin-left: 5px;\n padding: 10px 15px;\n border-radius: 20px;\n background-color: black;\n color: white;\n font-family: Arial, sans-serif;\n font-size: 14px;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);\n max-width: 100%;\n white-space: normal;\n overflow-wrap: break-word;\n word-break: normal;\n hyphens: none;\n }\n .").concat(_r,"-right #copilot-info-bubble-content {\n margin-top: 30px;\n margin-left: 0px;\n margin-right: 5px;\n }\n .click-wave {\n position: absolute;\n width: 34px;\n height: 34px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n pointer-events: none;\n z-index: 2147483611;\n animation: click-wave-animation 0.8s ease forwards;\n }\n @keyframes click-wave-animation {\n 0% {\n transform: scale(0.2);\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n }\n @keyframes slideInFromTop {\n 0% {\n transform: translateY(-100%);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n }\n .").concat(Hr," {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 2147483610;\n background: #fff;\n padding: 6px;\n border-radius: 10px;\n box-shadow: 0 0 20px 0 #C294F2;\n display: flex;\n align-items: center;\n gap: 8px;\n border: 1px solid rgba(192, 146, 242, 0.5);\n animation: slideInFromTop 0.5s ease-out forwards;\n }\n .").concat(Hr," span {\n font-size: 13px;\n color: #000;\n font-family: sans-serif;\n }\n .").concat(Hr,"-avatar {\n width: 24px;\n height: 24px;\n flex-shrink: 0;\n border-radius: 6px;\n }\n .").concat(Hr,"-mute {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .").concat(Hr,"-mute svg {\n width: 20px;\n height: auto;\n cursor: pointer;\n animation: pulsate 2s infinite;\n }\n .").concat(Hr,"-mute svg:hover {\n opacity: 0.8;\n }\n .").concat(Hr,"-dismiss {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-right: 3px;\n }\n .").concat(Hr,"-dismiss svg {\n width: 15px;\n height: auto;\n cursor: pointer;\n }\n .").concat(Hr,"-dismiss svg:hover {\n opacity: 0.8;\n }\n @keyframes pulsate {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n 50% {\n transform: scale(1.1);\n opacity: 0.8;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n }\n @keyframes glCoFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n @keyframes glCoFadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n .gleap-audio-unmute-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483620;\n }\n\n .gleap-audio-unmute-modal {\n background-color: #fff;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);\n text-align: center;\n max-width: 90%;\n width: 400px;\n }\n\n .gleap-audio-unmute-modal p {\n margin-bottom: 20px;\n font-size: 16px;\n line-height: 22px;\n font-weight: normal;\n }\n\n .gleap-audio-unmute-button {\n background: ").concat(l,";\n color: ").concat(u,";\n outline: none;\n border: none;\n padding: 10px 14px;\n border-radius: 12px;\n font-size: 14px;\n font-weight: bold;\n cursor: pointer;\n }\n\n .gleap-audio-unmute-button:hover {\n opacity: 0.8;\n }\n\n .gleap-tour-continue-button {\n color: ").concat(l,";\n text-decoration: none;\n cursor: pointer;\n font-size: 14px;\n font-weight: bold;\n border: none;\n background: none;\n padding: 0;\n margin: 0;\n margin-left: 20px;\n }\n\n .gleap-tour-continue-button:hover {\n opacity: 0.8;\n }\n\n body.gl-copilot-fade-out::before,\n body.gl-copilot-fade-out::after,\n body.gl-copilot-fade-out #").concat(Hr," {\n animation: glCoFadeOut 0.8s ease-out forwards;\n }\n ").concat(null===(s=null===(c=this.productTourData)||void 0===c?void 0:c.playVoice)||void 0===s||s?"":"\n .".concat(Hr,"-mute {\n display: none;\n }\n "),"\n ").concat(this.productTourData.gradient?'body::before {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n box-sizing: border-box;\n border: 18px solid transparent;\n filter: blur(25px);\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }\n \n body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0.5;\n box-sizing: border-box;\n border: 3px solid transparent;\n border-image-slice: 1;\n border-image-source: linear-gradient(45deg, #ED5587, #FBE6A9, #a6e3f8, #C294F2);\n animation: glCoFadeIn 1.5s ease-out forwards;\n }':'body::after {\n content: "";\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n pointer-events: all;\n z-index: 2147483609;\n opacity: 0;\n }',"\n "),document.head.appendChild(f));var h=document.createElement("div");h.id=_r,h.style.opacity=0,this._pointerContainer=h;var v=document.createElementNS("http://www.w3.org/2000/svg","svg");v.setAttribute("viewBox","0 0 380 476"),v.innerHTML='';var g=document.createElement("div");g.id="copilot-info-bubble",g.innerHTML="
";var m=document.createElement("div");m.id=Hr,m.classList.add(Hr),m.innerHTML='\n \n ').concat(null===(o=this.productTourData)||void 0===o?void 0:o.kaiSlug,'\n
\n ').concat(p(this.audioMuted?"unmute":"mute"),"\n
\n ").concat(null!==(r=this.productTourData)&&void 0!==r&&r.allowClose?'
\n ').concat(p("dismiss"),"\n
"):"","\n "),document.body.appendChild(m),document.querySelector(".".concat(Hr,"-mute")).addEventListener("click",(function(){a.toggleAudio(!a.audioMuted)})),null!==(i=this.productTourData)&&void 0!==i&&i.allowClose&&document.querySelector(".".concat(Hr,"-dismiss")).addEventListener("click",(function(){a.completeTour(!1)})),h.appendChild(v),h.appendChild(g),document.body.appendChild(h)}}},{key:"start",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this.productTourData;t&&function(){return qr.apply(this,arguments)}().then((function(n){e.audioMuted=!n,e.setupCopilotTour(),e.audioMuted&&null!=t&&t.showUnmuteModal?e.showAudioUnmuteModal():setTimeout((function(){e.renderNextStep()}),1500)}))}}},{key:"showAudioUnmuteModal",value:function(){var e,t,n,o=this,r=document.createElement("div");r.classList.add("gleap-audio-unmute-modal-overlay");var i=document.createElement("div");i.classList.add("gleap-audio-unmute-modal");var a=document.createElement("p");a.textContent=null===(e=this.productTourData)||void 0===e?void 0:e.unmuteModalTitle,i.appendChild(a);var s=document.createElement("button");s.classList.add("gleap-audio-unmute-button"),s.textContent=null===(t=this.productTourData)||void 0===t?void 0:t.unmuteModalButton,s.addEventListener("click",(function(){o.toggleAudio(!1),r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(s);var c=document.createElement("button");c.classList.add("gleap-tour-continue-button"),c.textContent=null===(n=this.productTourData)||void 0===n?void 0:n.unmuteModalContinue,c.addEventListener("click",(function(){r.parentNode&&r.parentNode.removeChild(r),setTimeout((function(){o.renderNextStep()}),1e3)})),i.appendChild(c),r.appendChild(i),document.body.appendChild(r)}},{key:"completeTour",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];"undefined"!=typeof window&&(this.cleanup(),this.onCompleteCallback&&this.onCompleteCallback(e))}},{key:"renderNextStep",value:function(){var e=this;if("undefined"!=typeof window&&!this.disabled){var t=this,n=this.productTourData.steps;if(this.currentActiveIndex>=n.length)setTimeout((function(){e.completeTour()}),500);else{var o=n[this.currentActiveIndex],r=function(n){if(e._pointerContainer.style.display="flex",o.selector&&o.selector.length>0&&!n)e.completeTour(!1);else{var r=function(){if("INPUT"===o.mode&&n){var e,r=function(){document.querySelector("#".concat(_r)).classList.remove("copilot-pointer-container-clickmode"),n.classList.remove("gleap-input-highlight"),document.getElementById(_r).style.display="none",t.currentActiveIndex++,t.storeUncompletedTour(),t.renderNextStep()};if("default"===(null!==(e=o.inputType)&&void 0!==e?e:"default")){var i=function e(t){var o;if(0!==(null==t||null===(o=t.target)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.length)){var i=document.getElementById("copilot-info-bubble-content");i&&(i.innerHTML="".concat(go.translateText("next"),' \n \n'),i.addEventListener("click",r,{once:!0}),n.classList.add("gleap-input-highlight"),document.querySelector("#".concat(_r)).classList.add("copilot-pointer-container-clickmode"),n.removeEventListener("input",e))}};n.addEventListener("input",i,{once:!1}),n.hasAttribute("contenteditable")&&n.addEventListener("keyup",i,{once:!1}),n.addEventListener("blur",(function(){n.focus()}),{once:!0}),n.focus()}else{var a,s=null!==(a=o.inputValue)&&void 0!==a?a:"",c=0;!function e(){c0})).length;return Math.ceil(t/3.6)+1}}(i),s=function(){e.currentAudio=void 0,setTimeout((function(){r()}),1e3*a)};o.voice&&o.voice.length>0?(e.currentAudio=new Audio(o.voice),e.audioMuted&&(e.currentAudio.muted=!0),e.currentAudio.addEventListener("ended",(function(){setTimeout((function(){r()}),1e3)})),e.currentAudio.play().then((function(){})).catch((function(e){s()}))):s()}},i=o.selector?function(e){if("undefined"!=typeof window){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3)/100,n=0;return new Promise((function(o,r){var i=setInterval((function(){var a=document.querySelector(e);a?(clearInterval(i),o(a)):n>=t&&(clearInterval(i),r(new Error("Element not found for selector: ".concat(e)))),n++}),100)}))}}(o.selector):Promise.resolve(null);i.then(r).catch((function(){return r(null)}))}}}}],o=[{key:"getInstance",value:function(){return this.instance||(this.instance=new e),this.instance}}],n&&Rr(t.prototype,n),o&&Rr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zr(e){return zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zr(e)}function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0;if(!this.productTourId&&!this.disabled){this.productTourId=e,this.productTourData=t,this.currentActiveIndex=0;var r=this;$e.getInstance().validateProductTour(e).then((function(){return o>0?setTimeout((function(){r.start()}),o):n.start()})).catch((function(e){console.log("Product tour is not live. Cleaning up..."),console.error(e),r.onComplete(!1)}))}}},{key:"onComplete",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={tourId:this.productTourId};e?(kn.notifyEvent("productTourCompleted",t),ki.trackEvent("tour-".concat(this.productTourId,"-completed"),t)):(kn.notifyEvent("productTourQuit",t),ki.trackEvent("tour-".concat(this.productTourId,"-quit"),t)),this.gleapTourObj&&this.gleapTourObj.destroy(),this.gleapTourObj=void 0,this.productTourData=void 0,this.productTourId=void 0,this.currentActiveIndex=void 0,this.clearUncompletedTour()}},{key:"loadUncompletedTour",value:function(){try{var e=JSON.parse(localStorage.getItem(Zr));if(null!=e&&e.tourData&&null!=e&&e.tourId)return e}catch(t){}return null}},{key:"storeUncompletedTour",value:function(){if(this.productTourId&&this.productTourData)try{var e=JSON.parse(JSON.stringify({tourData:this.productTourData,tourId:this.productTourId}));e.tourData.steps=e.tourData.steps.slice(this.currentActiveIndex||0,e.tourData.steps.length),localStorage.setItem(Zr,JSON.stringify(e))}catch(t){}else this.clearUncompletedTour()}},{key:"clearUncompletedTour",value:function(){try{localStorage.removeItem(Zr)}catch(e){}}},{key:"start",value:function(){var e=this,t=this.productTourData;if(t){if("cobrowse"===t.tourType)return Ur.getInstance().startWithConfig(this.productTourId,t,(function(t){e.onComplete(t)}));this.unmuted=!1;for(var n=t.steps,o=this,r=[],i=0;i\n \n
').concat(p("unmute"),"
\n ");else{var d="";t.sender&&t.sender.firstName&&(u=!0,d='
\n
\n
').concat(t.sender.firstName,"
\n
")),l="".concat(d,'
').concat(a.message,"
")}var f={disableActiveInteraction:!s&&!c,mode:a.mode,popover:Gr({description:l,popoverClass:"gleap-tour-popover-".concat(a.type," ").concat(!u&&"gleap-tour-popover-no-sender"," ").concat(t.allowClose&&"gleap-tour-popover-can-close")},s?{showButtons:[]}:{})};a.selector&&a.selector.length>0&&(f.element=a.selector),r.push(f)}var h=["next","close"];t.backButton&&h.push("previous"),this.gleapTourObj=Mr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({showProgress:!0,allowKeyboardControl:!1,steps:r},"showProgress",n.length>1),"allowClose",t.allowClose),"nextBtnText",t.nextText),"doneBtnText",t.doneText),"prevBtnText",t.prevText),"showButtons",h),"onHighlightStarted",(function(t,n,o){var r;e.currentActiveIndex=null==o||null===(r=o.state)||void 0===r?void 0:r.activeIndex,e.storeUncompletedTour()})),"onElementNotFound",(function(t){document.removeEventListener("click",v),e.onComplete(!1)})),"onDestroyStarted",(function(){e.gleapTourObj.hasNextStep()?e.onComplete(!1):e.onComplete(!0),document.removeEventListener("click",v)})),"onPopoverRender",(function(t){if(t)for(var n=document.querySelectorAll(".gleap-tour-popover-description img, .gleap-tour-popover-description video"),r=function(){setTimeout((function(){e.gleapTourObj.refresh()}),500),setTimeout((function(){e.gleapTourObj.refresh()}),750)},i=0;ie.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return go.translateText(e)||t}},{key:"_translateWithVars",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return go.translateTextWithVars(e,t)||n}},{key:"getCheckIcon",value:function(){return'\n \n '}},{key:"loadChecklist",value:function(){if(this._isSessionReady&&this._networkManager){var e=this.getAttribute("checklistId");e?(this.activeStep=-1,this._initialActiveSet=!1,this.validateChecklist(e)):(this.renderResponse(),this.checklistData=null,this._hasLoaded=!1)}}},{key:"getQueryParams",value:function(){var e=this._getGleapSessionInstance();if(null==e||!e.session)return"";var t=e.session,n="en";try{void 0!==go&&(n=go.getInstance().getActiveLanguage()||"en")}catch(o){}return"gleapId=".concat(t.gleapId||"","&gleapHash=").concat(t.gleapHash||"","&lang=").concat(n)}},{key:"makeRequest",value:function(e,t,n,o){var r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=new XMLHttpRequest;i.open(e,t);try{r.injectSession(i)}catch(a){}n&&i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.onreadystatechange=function(){4===i.readyState&&o(i)},i.onerror=function(){o(i)},i.send(n?JSON.stringify(n):null)}else o({readyState:4,status:0,responseText:"Session unavailable",_isMock:!0})}},{key:"validateChecklist",value:function(e){var t=this;if(this._isSessionReady&&this._networkManager){this.checklistData=null,this._hasLoaded=!1,this.renderResponse();var n=this.getAttribute("sharedKey");this._networkManager.validateChecklist(e,n).then((function(e){t.isConnected&&t._isSessionReady&&e&&t.fetchChecklist(e)})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1}))}}},{key:"fetchChecklist",value:function(e){var t=this;this._isSessionReady&&this._networkManager&&(this._isInitialLoad=!this._hasLoaded,this._networkManager.fetchChecklist(e).then((function(e){if(!t.isConnected||!t._isSessionReady||!e)return t._hasLoaded=!1,t.checklistData=null,void t._checkSessionAndLoad();if(t.checklistData=e,t._hasLoaded=!0,"done"!==e.status){if(t._isInitialLoad&&!t._initialActiveSet){var n,o=(null===(n=e.outbound)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.steps)||[],r=e.completedSteps||[],i=o.findIndex((function(e){return!r.includes(e.id)}));t.activeStep=i>=0?i:-1,-1!==t.activeStep&&(t._initialActiveSet=!0)}t.renderChecklist(t.checklistData)}else t.renderResponse()})).catch((function(e){t.renderResponse(),t.checklistData=null,t._hasLoaded=!1})))}},{key:"updateChecklist",value:function(e,t){var n,o,r=this._getGleapSessionInstance();if(null!=r&&r.session){var i=r.apiUrl;if(i){var a=r.session,s=null!==(n=null==a?void 0:a.gleapId)&&void 0!==n?n:"",c=null!==(o=null==a?void 0:a.gleapHash)&&void 0!==o?o:"",l="en";try{void 0!==go&&(l=go.getInstance().getActiveLanguage()||"en")}catch(d){}var u="".concat(i,"/outbound/checklists/").concat(e);t.checkedStep&&(u+="/increment/".concat(t.checkedStep)),u+="?gleapId=".concat(s,"&gleapHash=").concat(c,"&lang=").concat(l),this.makeRequest("PUT",u,t,(function(e){e._isMock||200!==e.status&&e.status}))}}}},{key:"handleChecklistUpdate",value:function(e){if(this._hasLoaded&&this.checklistData){var t=e.detail;if(t&&t.id===this.checklistData.id){var n=$r(this.checklistData.completedSteps||[]),o=!1,r=!1,i=this.activeStep;if(t.completedSteps&&JSON.stringify(t.completedSteps)!==JSON.stringify(n)&&(this.checklistData.completedSteps=$r(t.completedSteps),o=!0,-1!==i)){var a,s=null===(a=this.checklistData.outbound)||void 0===a||null===(a=a.config)||void 0===a||null===(a=a.steps)||void 0===a||null===(a=a[i])||void 0===a?void 0:a.id;s&&this.checklistData.completedSteps.includes(s)&&!n.includes(s)&&(r=!0)}if(t.status&&t.status!==this.checklistData.status&&(this.checklistData.status=t.status,o=!0),r){for(var c,l=(null===(c=this.checklistData.outbound)||void 0===c||null===(c=c.config)||void 0===c?void 0:c.steps)||[],u=-1,d=i+1;d1&&void 0!==arguments[1]?arguments[1]:"checklist-floating",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(null===(t=e.config)||void 0===t?void 0:t.steps)||[],a=(null===(n=this.checklistData)||void 0===n?void 0:n.completedSteps)||[],s=0;if(this.progressbarEnabled&&i.length>0){var c=i.length,l=a.length;s=c>0?l/c*100:0}var u,d,p=i.find((function(e){return!a.includes(e.id)})),f=i.length>0?p?p.title||this._translateWithVars("stepDefaultTitle",{index:i.indexOf(p)+1},"Step ".concat(i.indexOf(p)+1)):"":e.subject||"",h=i.length>0?p&&p.description||"":e.message||"";r&&(f=(null===(u=e.config)||void 0===u?void 0:u.successTitle)||"",h=(null===(d=e.config)||void 0===d?void 0:d.successMessage)||"",s=100);var v=2*Math.PI*7,g=v-s/100*v,m="checklist-floating-header"===o,b=m?'\n \n \n ':'\n \n ';return'\n
\n
\n
\n \n \n \n \n
\n
').concat(f,"
\n ").concat(r?"":''.concat(b,""),'\n
\n
').concat(h,"
\n
\n ")}},{key:"renderInfoSection",value:function(e){var t;if(!this.infoEnabled||!e)return"";var n=e.subject||this._translate("checklistDefaultTitle","Checklist"),o=e.message||"",r="";return null!==(t=e.sender)&&void 0!==t&&t.profileImageUrl&&(r='\n
\n ').concat(e.sender.firstName||\n ').concat(e.sender.firstName||"","\n
")),'\n
\n '.concat(n?'
'.concat(n,"
"):"","\n ").concat(o?'
'.concat(o,"
"):"","\n ").concat(r,"\n
")}},{key:"renderProgressSection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!this.progressbarEnabled||!e.length)return"";var n=e.length,o=t.length,r=n>0?o/n*100:0,i=0;e.forEach((function(e){!t.includes(e.id)&&e.duration>0&&(i+=e.duration)}));var a=this._translateWithVars("taskProgress",{a:o,b:n},"".concat(o," of ").concat(n," done")),s=i>0?this._translateWithVars("aboutMinutes",{a:i},"About ".concat(i," min left")):"";return'\n
\n
'.concat(a,"
\n ").concat(s?'
'.concat(s,"
"):"",'\n
\n
\n
\n
')}},{key:"renderTasks",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&0!==t.length?t.map((function(t,o){var r=n.includes(t.id),i=e.activeStep===o,a=r?''.concat(e.getCheckIcon(),""):''.concat(o+1,""),s=t.title||e._translateWithVars("stepDefaultTitle",{index:o+1},"Step ".concat(o+1)),c=t.description||"",l=t.actionTitle||e._translate("actionDefaultTitle","Action"),u=t.action&&"none"!==t.action?'
\n \n
"):"",d=e._translate("markAsDone","Mark as done"),p=t.allowMarkDone&&!r?'
\n ').concat(e.getCheckIcon(),'\n
').concat(d,"
\n
"):"",f=["checklist-task",r?"checklist-task--done":"",i?"checklist-task--active":""].filter(Boolean).join(" ");return'\n
\n
\n ').concat(a,'\n
').concat(s,'
\n \n \n \n \n \n
\n
\n
\n ').concat(c?'
'.concat(c,"
"):"","\n ").concat(u,"\n ").concat(p,"\n
\n
\n
")})).join(""):"

".concat(this._translate("noStepsDefined","No steps defined."),"

")}},{key:"renderChecklist",value:function(e){var t;if(this._hasLoaded&&e&&e.outbound){var n=e.outbound,o=(null===(t=n.config)||void 0===t?void 0:t.steps)||[],r=e.completedSteps||[],i="";if("done"===e.status||o.length>0&&r.length>=o.length){var a,s,c=(null===(a=n.config)||void 0===a?void 0:a.successTitle)||"",l=(null===(s=n.config)||void 0===s?void 0:s.successMessage)||"";i=this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-launcher",!0):'\n
\n
\n '.concat(this.getCheckIcon(),'\n
\n
').concat(c,'
\n
').concat(l,"
\n
"),-1!==this.activeStep&&(this.activeStep=-1)}else i='\n
\n '.concat(this.floatingEnabled?"":this.renderInfoSection(n),"\n ").concat(this.floatingEnabled?"":this.renderProgressSection(o,r),"\n ").concat(this.floatingEnabled?this.renderFloatingLauncher(n):"",'\n
\n ').concat(this.floatingEnabled?this.renderFloatingLauncher(n,"checklist-floating-header"):"","\n ").concat(this.renderTasks(o,r),"\n
\n
");var u=ut.getInstance().getFlowConfig(),d=u.color?u.color:"#485BFF",p="\n \n ');this.shadowRoot.innerHTML=p+i,this.addTaskEventListeners(),this.floatingEnabled&&this.addFloatingClickListeners(),-1!==this.activeStep&&this.toggleTask(this.activeStep,!0)}else this._checkSessionAndLoad()}},{key:"updateActiveTaskMaxHeight",value:function(){if(-1!==this.activeStep){var e=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body-inner')),t=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(this.activeStep,'"] .checklist-task-body'));if(e&&t){var n=e.offsetHeight;t.style.setProperty("--task-body-active-height","".concat(n,"px"))}}}},{key:"addTaskEventListeners",value:function(){var e=this;this.shadowRoot.querySelectorAll(".checklist-task").forEach((function(t){var n=t.querySelector(".checklist-task-header"),o=parseInt(t.getAttribute("data-task-index"),10);n&&n.addEventListener("click",(function(){var t=e.activeStep===o?-1:o;e.setActiveStep(t)}));var r=t.querySelector(".checklist-task-body-markdone");r&&r.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps){var r=e.checklistData.outbound.config.steps[o];if(r){var i=e.activeStep;if(e.checklistData.completedSteps||(e.checklistData.completedSteps=[]),!e.checklistData.completedSteps.includes(r.id)){e.checklistData.completedSteps.push(r.id);var a=e.checklistData.outbound.config.steps,s=-1;if(i===o){for(var c=o+1;c0&&e.checklistData.completedSteps.length>=a.length&&(e.checklistData.status="done",l.status="done"),e.updateChecklist(e.checklistData.id,l)}}}}));var i=t.querySelector(".checklist-task-body-action .action-button");i&&i.addEventListener("click",(function(t){var n;if(t.stopPropagation(),null!==(n=e.checklistData)&&void 0!==n&&null!==(n=n.outbound)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.steps&&void 0!==ki){var r=e.checklistData.outbound.config.steps[o];if(r&&r.action&&"none"!==r.action)try{"BOT"===r.action?ki.startBot(r.botId):"CUSTOM_ACTION"===r.action?ki.triggerCustomAction(r.actionBody):"REDIRECT_URL"===r.action?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),ki.openURL(r.actionBody,!!r.actionOpenInNewTab)):"FEEDBACK_FLOW"===r.action?ki.startFeedbackFlow(r.formId):"NEWS_ARTICLE"===r.action?ki.openNewsArticle(r.articleId):"HELP_ARTICLE"===r.action?ki.openHelpCenterArticle(r.articleId):"CHECKLIST"===r.action&&ki.startChecklist(r.checklistId,!0,null==r?void 0:r.sharedKey)}catch(i){}}}))}))}},{key:"setActiveStep",value:function(e){var t=this,n=this.activeStep;this.activeStep=e;var o=[];-1!==n&&n!==this.activeStep&&o.push({index:n,open:!1}),-1!==this.activeStep&&this.activeStep!==n&&o.push({index:this.activeStep,open:!0}),o.forEach((function(e){var n=e.index,o=e.open;t.toggleTask(n,o)}))}},{key:"toggleTask",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.shadowRoot.querySelector('.checklist-task[data-task-index="'.concat(e,'"]'));if(n){var o=n.querySelector(".checklist-task-header");if(o){var r=n.classList.contains("checklist-task--active"),i=null!==t?t:!r;if(i&&!r){n.classList.add("checklist-task--active"),o.setAttribute("aria-expanded","true");var a=n.querySelector(".checklist-task-body-inner");if(a){var s=a.offsetHeight,c=n.querySelector(".checklist-task-body");c&&c.style.setProperty("--task-body-active-height","".concat(s,"px"))}}else!i&&r&&(n.classList.remove("checklist-task--active"),o.setAttribute("aria-expanded","false"))}}}}],r=[{key:"observedAttributes",get:function(){return["checklistId","info","progressbar","dark","floating","sharedKey"]}}],o&&ti(n.prototype,o),r&&ti(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ri(HTMLElement));"undefined"==typeof customElements||customElements.get("gleap-checklist")||customElements.define("gleap-checklist",e)}}();var gi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hi(this,"initialized",!1),hi(this,"offlineMode",!1),hi(this,"disablePageTracking",!1),hi(this,"disableInAppNotifications",!1),hi(this,"globalData",{screenRecordingData:null,webReplay:null,snapshotPosition:{x:0,y:0}}),"undefined"!=typeof window&&(Yt.getInstance(),on.getInstance().start(),dn.getInstance().start(),xr.getInstance().start())}var t,n,o;return t=e,n=[{key:"isLiveMode",value:function(){if(!0===this.offlineMode)return!1;var e=window.location.hostname;return!(["localhost","127.0.0.1","0.0.0.0","","::1"].includes(e)||e.startsWith("192.168.")||e.startsWith("10.0.")||e.endsWith(".local")||!e.includes("."))}},{key:"softReInitialize",value:function(){Gt.getInstance().destroy(),ut.getInstance().start().then((function(){a.getInstance().refresh(),Ao.getInstance().injectNotificationUI()})).catch((function(e){console.warn("Failed to initialize Gleap.")}))}},{key:"performActions",value:function(t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"INFO";on.getInstance().addLog(e,t)}},{key:"initialize",value:function(t){var n=this.getInstance();if(n.initialized)console.warn("Gleap already initialized.");else{n.initialized=!0;try{!function(){try{if("visualViewport"in window&&/iPad|iPhone|iPod/.test(navigator.userAgent)){var e=function(){try{var e=document.querySelector(".gleap-frame-container-inner iframe");if(!e)return;window.visualViewport.height1&&void 0!==arguments[1]&&arguments[1];Gt.getInstance().urlHandler(e,t)}},{key:"checkForUrlParams",value:function(){if("undefined"!=typeof window&&window.location.search)try{var t=new URLSearchParams(window.location.search),n=t.get("gleap_widget");n&&n.length>0&&e.open();var o=t.get("gleap_conversation");o&&o.length>0&&("true"===o?e.startConversation(!0):e.startBot(o,!0));var r=t.get("gleap_feedback");r&&r.length>0&&e.startFeedbackFlow(r);var i=t.get("gleap_survey"),a=t.get("gleap_survey_format");i&&i.length>0&&e.showSurvey(i,"survey_full"===a?"survey_full":"survey");var s=t.get("gleap_tour");if(s&&s.length>0){var c=parseInt(t.get("gleap_tour_delay"));isNaN(c)&&(c=2),setTimeout((function(){e.startProductTour(s)}),1e3*c)}}catch(l){}}},{key:"destroy",value:function(){Zn.getInstance().stop(),rt.getInstance().stop(),Gt.getInstance().destroy(),a.getInstance().toggleFeedbackButton(!1),Ao.getInstance().clearAllNotifications(!0),$e.getInstance().clearSession(0,!1),_o.getInstance().removeBannerUI()}},{key:"closeBanner",value:function(){_o.getInstance().removeBannerUI()}},{key:"closeModal",value:function(){Go.getInstance().hideModal()}},{key:"setUseCookies",value:function(e){$e.getInstance().useCookies=e}},{key:"identify",value:function(e,t,n){return $e.getInstance().identifySession(e,k(t),n)}},{key:"updateContact",value:function(e){return $e.getInstance().updateSession(k(e))}},{key:"clearIdentity",value:function(){$e.getInstance().clearSession()}},{key:"getIdentity",value:function(){return $e.getInstance().getSession()}},{key:"isUserIdentified",value:function(){var e=$e.getInstance().session;return!!(e&&e.userId&&e.userId.length>0)}},{key:"isOpened",value:function(){return Gt.getInstance().isOpened()}},{key:"hide",value:function(){Gt.getInstance().hideWidget()}},{key:"setMaxNetworkRequests",value:function(e){b.getInstance().setMaxRequests(e)}},{key:"startNetworkLogger",value:function(){b.getInstance().start()}},{key:"setNetworkLogsBlacklist",value:function(e){b.getInstance().setBlacklist(e)}},{key:"setNetworkLogPropsToIgnore",value:function(e){b.getInstance().setFilters(e)}},{key:"setReplayOptions",value:function(e){Zn.getInstance().setOptions(e)}},{key:"close",value:function(){Gt.getInstance().hideWidget()}},{key:"open",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().showWidget()}},{key:"trackEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"logEvent",value:function(e,t){rt.getInstance().logEvent(e,t)}},{key:"preFillForm",value:function(e){var t=k(e);Lo.getInstance().formPreFill=t,Gt.getInstance().sendMessage({name:"prefill-form-data",data:t},!0)}},{key:"on",value:function(e,t){kn.on(e,t)}},{key:"enableShortcuts",value:function(e){e?ko.getInstance().start():ko.getInstance().stop()}},{key:"showFeedbackButton",value:function(e){a.getInstance().toggleFeedbackButton(e)}},{key:"setAppVersionCode",value:function(e){Yt.setAppVersionCode(e)}},{key:"setAppBuildNumber",value:function(e){Yt.setAppBuildNumber(e)}},{key:"setWSApiUrl",value:function(e){$e.getInstance().wsApiUrl=e}},{key:"setApiUrl",value:function(e){$e.getInstance().apiUrl=e}},{key:"setBannerUrl",value:function(e){_o.getInstance().setBannerUrl(e)}},{key:"setModalUrl",value:function(e){Go.getInstance().setModalUrl(e)}},{key:"setFrameUrl",value:function(e){Gt.getInstance().frameUrl=e}},{key:"setTicketAttribute",value:function(e,t){gn.getInstance().setTicketAttribute(e,t)}},{key:"unsetTicketAttribute",value:function(e){gn.getInstance().unsetTicketAttribute(e)}},{key:"clearTicketAttributes",value:function(){gn.getInstance().clearTicketAttributes()}},{key:"attachCustomData",value:function(e){gn.getInstance().attachCustomData(e)}},{key:"setCustomData",value:function(e,t){gn.getInstance().setCustomData(e,t)}},{key:"removeCustomData",value:function(e){gn.getInstance().removeCustomData(e)}},{key:"clearCustomData",value:function(){gn.getInstance().clearCustomData()}},{key:"playSound",value:function(e){Yo.playSound(e)}},{key:"showTabNotificationBadge",value:function(e){var t=Ao.getInstance();t.showNotificationBadge=e,t.updateTabBarNotificationCount()}},{key:"setLanguage",value:function(t){go.getInstance().setOverrideLanguage(t),e.getInstance().initialized&&setTimeout((function(){e.getInstance().softReInitialize(),e.updateContact({lang:t})}),1e3)}},{key:"registerCustomAction",value:function(e){En.registerCustomAction(e)}},{key:"triggerCustomAction",value:function(e){En.triggerCustomAction(e)}},{key:"setStyles",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#ffffff",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:20,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:20,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:a.FEEDBACK_BUTTON_BOTTOM_LEFT;L((function(){!function(e,t,n,o,r,i,s,c){var l=d(e),p=d(n),f=d(r),h=d(t),v="#ffffff"===f,g=u(t,"#ffffff"===h?-35:-15),m=u(r,v?100:-120),b=u(r,v?30:-12),y=u(r,v?80:-30),w=(o=parseInt(o,10),Math.round(1.05*o)),k=Math.round(.8*o),x=Math.round(.6*o),S=Math.round(.4*o),C=Math.round(.25*o),I=57+s;c===a.FEEDBACK_BUTTON_CLASSIC_BOTTOM?I=s+15:(c&&c.includes("CLASSIC")||c===a.FEEDBACK_BUTTON_NONE)&&(I=s);var L='\n .gleap-font, .gleap-font * {\n font-style: normal;\n font-variant-caps: normal;\n font-variant-ligatures: normal;\n font-variant-numeric: normal;\n font-variant-east-asian: normal;\n font-weight: normal;\n font-stretch: normal;\n font-size: 100%;\n line-height: 1;\n font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n }\n .gleap-input-highlight {\n box-shadow: 0 0 0 3px '.concat(e," !important;\n }\n .gleap-frame-container {\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n width: calc(100% - 40px);\n max-width: 410px;\n position: fixed;\n z-index: ").concat(2147483631,";\n visibility: visible;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.16);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n animation-duration: .3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n user-select: none;\n pointer-events: none;\n transition: max-width 0.3s ease-out;\n }\n\n .gleap-admin-highlight {\n box-shadow: 0px 0px 0px 4px red;\n }\n\n :root {\n --gleap-margin-top: 50px;\n }\n\n .gleap-tooltip-anchor {\n position: relative;\n display: inline-block;\n float: left;\n max-width: 0px;\n width: 17px;\n }\n\n .gleap-tooltip-hotspot {\n position: absolute;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n }\n\n @keyframes gleap-pulse {\n 0% {\n transform: scale(0);\n opacity: 0.25;\n }\n 45% {\n transform: scale(2.5);\n opacity: 0;\n }\n 100% {\n transform: scale(0);\n opacity: 0;\n }\n }\n\n .gleap-tooltip-hotspot-animation {\n position: absolute;\n border-radius: 17px;\n opacity: 0.25;\n display: block;\n width: 17px;\n height: 17px;\n cursor: pointer;\n top: 0px;\n left: 0px;\n animation: gleap-pulse 5s infinite;\n }\n\n .gleap-tooltip-hotspot svg {\n width: 17px;\n height: 17px;\n object-fit: contain;\n display: block;\n }\n\n .gleap-tooltip-inner {\n position: relative;\n overflow: visible;\n font-size: 14px;\n font-weight: normal;\n color: #000;\n line-height: 1.3;\n }\n\n .gleap-tooltip {\n position: absolute;\n background-color: #fff;\n color: #000;\n font-size: 15px;\n line-height: 18px;\n padding: 16px;\n padding-top: 8px;\n padding-bottom: 8px;\n border-radius: 4px;\n max-width: min(350px, 80vw);\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.2s, visibility 0.2s;\n z-index: ").concat(2147483700,";\n }\n\n .gleap-tooltip a {\n color: ").concat(e,";\n text-decoration: underline;\n display: inline !important;\n margin: 0px !important;\n padding: 0px !important;\n word-break: break-word;\n }\n\n .gleap-tooltip ul {\n padding-left: 16px;\n }\n\n .gleap-tooltip b {\n font-weight: 600;\n }\n\n .gleap-tooltip h2 {\n font-size: 18px;\n line-height: 20px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip h3 {\n font-size: 16px;\n line-height: 18px;\n font-weight: 600;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip p {\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n }\n\n .gleap-tooltip img {\n max-width: 100%;\n max-height: 300px;\n width: 100%;\n height: auto;\n object-fit: cover;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip iframe,\n .gleap-tooltip video {\n max-width: 100%;\n width: 100%;\n height: auto;\n min-height: 200px;\n display: block;\n border: none;\n outline: none;\n padding: 0px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: 4px;\n }\n\n .gleap-tooltip-arrow {\n position: absolute;\n width: 20px;\n height: 20px;\n }\n\n .gleap-tooltip-arrow svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n\n .gleap-b-frame {\n width: 100%;\n height: 100%;\n border: none;\n pointer-events: auto;\n padding: 0px;\n margin: 0px;\n }\n\n .gleap-b-shown {\n transition: margin 0.3s ease-out;\n margin-top: var(--gleap-margin-top);\n position: relative;\n z-index: 10000;\n }\n\n .gleap-b-f {\n margin-top: 0px;\n }\n\n .gleap-b {\n display: none;\n position: absolute;\n top: calc(-1 * var(--gleap-margin-top));\n left: 0px;\n width: 100vw;\n height: var(--gleap-margin-top);\n z-index: ").concat(2147483699,";\n }\n\n @keyframes gleapSlideIn {\n from {\n top: calc(-1 * var(--gleap-margin-top));\n }\n to {\n top: 10px;\n }\n }\n\n .gleap-b-f .gleap-b {\n position: fixed;\n top: 10px;\n animation: gleapSlideIn .25s ease-out forwards;\n max-width: 800px;\n width: calc(100% - 20px);\n left: 50%;\n z-index: ").concat(2147483699,";\n transform: translateX(-50%);\n border-radius: ").concat(S,"px;\n overflow: hidden;\n box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15), 0px 5px 5px rgba(0, 0, 0, 0.05);\n }\n\n .gleap-b-shown .gleap-b {\n display: block;\n }\n\n .gleap-image-view {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n z-index: ").concat(2147483699,";\n background-color: ").concat(f,"cc;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-image-view-image {\n width: 90%;\n height: auto;\n max-width: 90%;\n max-height: 90%;\n object-fit: contain;\n }\n\n .gleap-image-view-close {\n position: fixed;\n top: 20px;\n right: 20px;\n width: 32px;\n height: 32px;\n opacity: 0.8;\n z-index: ").concat(2147483740,";\n box-shadow: 0px 5px 18px rgba(0, 0, 0, 0.16);\n cursor: pointer;\n }\n\n .gleap-image-view-close:hover {\n opacity: 1;\n }\n\n .gleap-image-view-close svg path {\n fill: ").concat(r,";\n }\n\n [dir=rtl].gleap-frame-container {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,'px;\n }\n\n .gleap-frame-container--loading iframe {\n opacity: 0;\n }\n\n .gleap-frame-container--loading::before {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 130deg,\n ').concat(g," 0%,\n ").concat(t,' 100%\n );\n }\n \n .gleap-frame-container--loading::after {\n content: " ";\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n height: 100%;\n height: 100%;\n max-height: 380px;\n background: linear-gradient(\n 180deg,\n transparent 60%,\n ').concat(r,"1A 70%,\n ").concat(r," 100%\n );\n }\n\n .gleap-frame-container--loading-nogradient::before {\n max-height: 340px;\n background: ").concat(t," !important;\n }\n\n .gleap-frame-container--loading-nofade::after {\n display: none !important;\n }\n\n .gleap-frame-container--survey {\n bottom: ").concat(s,"px !important;\n }\n\n .gleap-frame-container--extended {\n max-width: 690px !important;\n }\n\n .gleap-frame-container--survey-full {\n position: fixed;\n top: 0 !important;\n left: 0 !important;\n bottom: 0 !important;\n right: 0 !important;\n width: 100vw !important;\n max-width: 100vw !important;\n height: 100vh !important;\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(6px);\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n max-height: 100vh !important;\n border-radius: 0 !important;\n animation-name: none !important;\n }\n\n .gleap-frame-container--survey-full .gleap-frame-container-inner {\n max-width: 640px !important;\n width: calc(100% - 24px);\n border-radius: ").concat(k,"px;\n overflow: hidden;\n }\n\n .gleap-frame-container--classic {\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--classic-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n [dir=rtl].gleap-frame-container--classic-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(s,"px;\n }\n\n .gleap-frame-container--modern-left {\n right: auto;\n left: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n [dir=rtl].gleap-frame-container--modern-left {\n left: auto;\n right: ").concat(i,"px;\n bottom: ").concat(61+s,"px;\n }\n\n .gleap-frame-container--animate {\n pointer-events: auto !important;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n @keyframes gleapFadeInUpMobile {\n from {\n opacity: 0;\n transform: translate3d(0, 10%, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n\n .gleap-notification-container {\n position: fixed;\n bottom: ").concat(I,"px;\n right: ").concat(i,"px;\n z-index: ").concat(2147483630,";\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n width: 100%;\n max-width: min(340px, 80vw);\n }\n\n .gleap-notification-container--left {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container {\n left: ").concat(4+i,"px;\n right: initial !important;\n }\n\n [dir=rtl].gleap-notification-container--left {\n left: initial !important;\n right: ").concat(i,"px !important;\n align-items: flex-start !important;\n }\n\n .gleap-notification-container--no-button {\n bottom: ").concat(s,"px;\n }\n\n .gleap-notification-item {\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n .gleap-notification-close {\n border-radius: 100%;\n width: 28px;\n height: 28px;\n background-color: ").concat(m,";\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 8px;\n cursor: pointer;\n visibility: hidden;\n pointer-events: none;\n }\n\n .gleap-notification-container:hover .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-notification-close {\n visibility: visible;\n pointer-events: auto;\n animation-duration: 0.7s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n }\n\n .gleap-notification-close svg {\n width: 45%;\n height: 45%;\n object-fit: contain;\n fill: ").concat(r,";\n }\n\n .gleap-notification-item-checklist-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n cursor: pointer;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-checklist-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n width: 100%;\n width: min(310px, 70vw);\n max-width: min(310px, 70vw);\n }\n\n .gleap-notification-item-checklist-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 10px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-checklist-content-progress {\n width: 100%;\n height: 8px;\n border-radius: 8px;\n background-color: ").concat(b,";\n }\n\n .gleap-notification-item-checklist-content-progress-inner {\n height: 100%;\n border-radius: 8px;\n background-color: ").concat(e,";\n }\n\n .gleap-notification-item-checklist-content-next {\n color: ").concat(m,";\n font-size: 15px;\n font-weight: normal;\n line-height: 21px;\n margin-top: 10px;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n }\n\n .gleap-notification-item-checklist-content-next svg {\n height: 18px;\n margin-right: 5px;\n width: auto;\n }\n\n .gleap-notification-item-checklist-content-next b {\n font-size: 15px;\n font-weight: normal;\n color: ").concat(f,";\n }\n\n .gleap-notification-item-news {\n width: 100%;\n }\n\n .gleap-news-pagination {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 10px;\n width: 100%;\n }\n\n .gleap-news-page-indicator {\n font-size: 12px;\n color: ").concat(m,";\n }\n\n .gleap-news-next-button {\n background-color: ").concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 5px 10px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;^\n }\n\n .gleap-notification-item-news-content {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n padding: 15px;\n }\n\n .gleap-notification-item-news-preview {\n color: ").concat(m,";\n font-size: 14px;\n line-height: 21px;\n font-weight: 400;\n overflow-wrap: break-word;\n word-break: break-word;\n display: block;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n .gleap-notification-item-news-sender {\n display: flex;\n align-items: center;\n color: ").concat(m,";\n font-size: 15px;\n line-height: 21px;\n font-weight: 400;\n }\n \n .gleap-notification-item-news-content-title {\n color: ").concat(f,";\n font-size: 15px;\n font-weight: 500;\n line-height: 21px;\n margin-bottom: 6px;\n max-width: 100%;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n cursor: pointer;\n }\n\n .gleap-notification-item-news-sender img {\n border-radius: 100%;\n height: 20px;\n margin-right: 8px;\n object-fit: cover;\n width: 20px;\n }\n\n [dir=rtl] .gleap-notification-item-news-sender img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-news-container {\n display: flex;\n animation: fadeIn;\n animation-duration: .45s;\n background-color: ").concat(r,";\n border-radius: ").concat(m,";\n box-sizing: border-box;\n flex-direction: column;\n overflow: hidden;\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n margin-bottom: 12px;\n }\n\n .gleap-notification-item-news-image {\n background-color: ").concat(m,";\n height: 170px;\n max-height: 170px;\n object-fit: cover;\n width: 100%;\n cursor: pointer;\n }\n \n .gleap-notification-item-news-content-title:hover {\n color: ").concat(e,";\n }\n\n .gleap-notification-item {\n display: flex;\n align-items: flex-end;\n cursor: pointer;\n }\n\n .gleap-notification-item img {\n width: 32px;\n height: 32px;\n min-width: 32px;\n border-radius: 100%;\n object-fit: cover;\n margin-right: 8px;\n margin-bottom: 12px;\n cursor: pointer;\n }\n\n [dir=rtl] .gleap-notification-item img {\n margin-left: 8px;\n margin-right: 0px !important;\n }\n\n .gleap-notification-item-container {\n box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);\n border-radius: ").concat(x,"px;\n border-bottom-left-radius: 0px;\n padding: 20px;\n background-color: ").concat(r,";\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 15px;\n line-height: 21px;\n color: ").concat(f,';\n position: relative;\n }\n\n .gleap-notification-item-container::after {\n content: " ";\n position: absolute;\n bottom: 0px;\n width: 0px;\n height: 0px;\n left: -6px;\n border-style: solid;\n border-width: 0px 0px 10px 6px;\n border-color: transparent transparent ').concat(r,";\n }\n\n .gleap-notification-item-sender {\n color: ").concat(m,";\n line-height: 20px;\n }\n\n .gleap-notification-item-content {\n line-height: 20px;\n color: ").concat(f,";\n margin-top: 4px;\n min-width: min(200px, 50vw);\n word-wrap: break-word;\n word-break: break-word;\n }\n\n .gleap-frame-container-inner {\n position: relative;\n width: 100%;\n height: calc(100vh - ").concat(130+s,"px);\n max-height: ").concat(700,'px;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: calc(100vh - 40px);\n }\n \n .gleap-frame-container-inner:before {\n content: " ";\n position: absolute;\n width: 100%;\n height: calc(100% - ').concat(k,"px);\n top: ").concat(k,"px;\n background-color: ").concat(r,";\n z-index: -1;\n }\n \n .gleap-frame-container iframe {\n height: 100% !important;\n width: 100% !important;\n max-width: 100% !important;\n display: block !important;\n pointer-events: auto !important;\n }\n \n .gleap-frame-container--hidden {\n display: none !important;\n pointer-events: none;\n animation: none !important;\n }\n \n .bb-feedback-button {\n margin: 0px;\n position: fixed;\n bottom: ").concat(s,"px;\n right: ").concat(i,"px;\n border-radius: 30px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n background-color: transparent;\n color: #000000;\n z-index: ").concat(2147483630,";\n box-sizing: border-box;\n display: flex;\n align-items: center;\n padding: 0px;\n }\n\n [dir=rtl].bb-feedback-button {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n \n .bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: auto;\n left: ").concat(i,"px;\n }\n\n [dir=rtl].bb-feedback-button--bottomleft {\n bottom: ").concat(s,"px;\n right: ").concat(i,'px;\n left: auto;\n }\n \n .bb-feedback-button--disabled {\n display: none !important;\n }\n\n .bb-feedback-button--hidden {\n display: none !important;\n }\n \n .bb-feedback-button-text {\n padding: 8px 12px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n background-color: #fff;\n border-radius: 8px;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.15);\n position: relative;\n z-index: 99;\n }\n \n .bb-feedback-button-text:before {\n content: "";\n position: absolute;\n box-shadow: rgba(0, 0, 0, 0.04) 6px 6px 5px;\n transform: rotate(315deg);\n bottom: 16px;\n right: -4px;\n border-width: 10px;\n border-style: solid;\n border-color: transparent #fff #fff transparent;\n }\n \n .bb-feedback-button--bottomleft .bb-feedback-button-text:before {\n display: none;\n }\n \n .bb-feedback-button-text:after {\n content: "";\n position: absolute;\n bottom: 12px;\n right: 0px;\n background-color: #fff;\n width: 5px;\n height: 30px;\n }\n \n .bb-feedback-button-text-title {\n font-family: sans-serif;\n font-size: 14px;\n color: #666;\n line-height: 18px;\n max-width: 220px;\n }\n \n .bb-feedback-button-text-title b {\n color: #000000;\n font-weight: 600;\n }\n\n .bb-notification-bubble {\n position: absolute;\n top: -5px;\n right: -5px;\n min-width: 12px;\n padding: 0px 4px;\n height: 20px;\n min-width: 20px;\n border-radius: 20px;\n background-color: red;\n color: #fff;\n font-size: 11px;\n font-family: sans-serif;\n text-align: center;\n line-height: 20px;\n }\n\n .bb-notification-bubble--hidden {\n display: none;\n }\n \n .bb-feedback-button-icon {\n width: 48px;\n height: 48px;\n border-radius: 48px;\n background-color: #485bff;\n transition: box-shadow, transform 0.2s ease-in-out;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n position: relative;\n }\n \n .bb-feedback-button-classic {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n top: 50%;\n right: 0px;\n position: fixed;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n padding: 9px 20px;\n text-align: center;\n background-color: #485bff;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n font-family: sans-serif;\n font-size: 16px;\n color: #fff;\n box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.25);\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n \n .bb-feedback-button-classic--left {\n top: 50%;\n left: 0px;\n right: auto;\n transform: rotate(90deg) translate(-50%, -100%);\n transform-origin: 0% 0%;\n }\n\n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--left {\n top: 50%;\n right: 0px;\n left: auto;\n transform: rotate(-90deg) translate(50%, -50%);\n transform-origin: 100% 50%;\n }\n \n .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n right: ').concat(i,"px;\n left: auto;\n }\n \n [dir=rtl].bb-feedback-button .bb-feedback-button-classic--bottom {\n top: auto;\n bottom: 0px;\n transform: none;\n left: ").concat(i,"px;\n right: auto;\n }\n\n .bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeInOpacity;\n }\n \n .bb-feedback-button--open.bb-feedback-button--classic-button-style {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-name: bbFadeOutRight;\n }\n \n .bb-feedback-button .bb-logo-logo {\n position: absolute;\n width: 30px;\n height: 30px;\n top: 9px;\n left: 9px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n position: absolute;\n width: 14px;\n height: 14px;\n top: 17px;\n left: 17px;\n object-fit: contain;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n }\n \n .bb-feedback-button .bb-logo-arrowdown {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button--open .bb-logo-arrowdown {\n animation-name: bbZoomIn;\n }\n \n .bb-feedback-button--open .bb-logo-logo {\n animation-name: bbZoomOut;\n }\n \n .bb-feedback-button-icon:hover {\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25), 0px 0px 20px rgba(0, 0, 0, 0.2);\n transform: scale(1.1);\n }\n \n .bb-feedback-button--open .bb-feedback-button-text {\n animation-name: bbFadeOutDown;\n }\n \n .bb-feedback-button--open .bb-feedback-button-icon {\n display: flex;\n }\n \n .bb-capture-svg {\n position: fixed;\n z-index: ").concat(2147483614,";\n top: 0px;\n left: 0px;\n right: 0px;\n width: 100%;\n height: 100%;\n padding: 0px;\n margin: 0px;\n cursor: crosshair;\n }\n\n .bb-capture-svg--preview {\n cursor: auto !important;\n }\n \n .bb-rec-on-circle {\n animation-name: bbRecIconFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-rec-on-cont {\n animation-name: bbRecIconContFade;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n }\n \n .bb-capture-editor-drag-info {\n position: fixed;\n top: -200px;\n left: 0px;\n z-index: ").concat(2147483616,";\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-editor-drag-info svg {\n width: 24px;\n height: 24px;\n }\n \n .bb-capture-editor-borderlayer {\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n border: 4px solid ").concat(e,";\n cursor: crosshair;\n z-index: ").concat(2147483610,";\n box-sizing: border-box;\n pointer-events: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-borderlayer {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n .bb-capture-editor-recording .bb-capture-editor-borderlayer {\n border: 4px solid #eb144c !important;\n }\n \n .bb-capture-editor-recording .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-editor-item-inactive {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-toolbar-drawingitem {\n opacity: 0.3;\n cursor: not-allowed !important;\n }\n \n .bb-capture-editor-notrecording .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-notrecording .bb-capture-svg {\n pointer-events: none !important;\n }\n \n .bb-capture-toolbar {\n position: fixed;\n top: 20px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,";\n background-color: #fff;\n padding: 5px;\n display: flex;\n align-items: center;\n border-radius: 8px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n transition: opacity 0.3s ease-in-out;\n }\n \n .bb-capture-dismiss {\n position: fixed;\n top: 0px;\n right: 0px;\n z-index: ").concat(2147483618,";\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n width: 36px;\n height: 36px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: ").concat(e,";\n border-bottom-left-radius: ").concat(C,"px;\n }\n\n [dir=rtl] .bb-capture-dismiss {\n top: 0px;\n left: 0px;\n right: auto;\n border-bottom-left-radius: 0px !important;\n border-bottom-right-radius: ").concat(C,"px;\n }\n \n .bb-capture-dismiss svg path {\n fill: ").concat(l,';\n }\n \n .bb-capture-dismiss svg {\n width: 20px;\n height: 20px;\n object-fit: contain;\n }\n \n .bb-capture-button-next {\n font-family: sans-serif;\n box-sizing: border-box;\n font-weight: 600;\n text-align: center;\n width: auto;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n margin: 0px;\n line-height: 36px;\n padding: 0px 12px;\n font-size: 15px;\n margin-left: 12px;\n }\n\n [dir=rtl].bb-capture-editor .bb-capture-button-next {\n margin-left: auto;\n margin-right: 12px;\n }\n \n .bb-capture-toolbar-item-spacer {\n width: 1px;\n height: 38px;\n min-width: 1px;\n margin: 0px 5px;\n }\n \n .bb-capture-toolbar-item {\n width: 42px;\n height: 38px;\n min-width: 42px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n position: relative;\n margin-right: 5px;\n }\n\n .drag-handle-item {\n cursor: grab !important;\n width: 34px;\n min-width: 34px;\n }\n\n .drag-handle-item svg {\n width: 18px !important;\n height: 18px !important;\n }\n \n .bb-capture-toolbar-item svg {\n width: 23px;\n height: 23px;\n object-fit: contain;\n }\n \n .bb-capture-toolbar-item-selectedcolor {\n border-radius: 100%;\n width: 20px;\n height: 20px;\n background-color: #db4035;\n }\n \n .bb-capture-toolbar-item[data-type="undo"] svg {\n width: 18px;\n height: 18px;\n }\n \n .bb-capture-toolbar-item[data-active="true"] {\n position: relative;\n }\n \n .bb-capture-preview {\n display: none;\n background-color: rgba(0, 0, 0, 0.6);\n position: fixed;\n top: 0px;\n left: 0px;\n width: 100vw;\n height: 100vh;\n justify-content: center;\n align-items: center;\n z-index: ').concat(2147483620,";\n }\n \n .bb-capture-preview-inner {\n background-color: #fff;\n padding: 0px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n flex-direction: column;\n max-width: 640px;\n width: 100%;\n margin: 20px;\n }\n \n .bb-capture-preview-inner video {\n border-radius: 8px 8px 0px 0px;\n display: block;\n border: 0px;\n outline: none;\n width: 100%;\n max-height: 60vh;\n }\n \n .bb-capture-preview-buttons {\n display: flex;\n justify-content: space-between;\n padding: 14px;\n }\n \n .bb-capture-preview-retrybutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-sendbutton {\n font-family: sans-serif;\n border-radius: 21px;\n box-sizing: border-box;\n padding: 12px 26px;\n font-size: 16px;\n line-height: 19px;\n font-weight: 600;\n text-align: center;\n margin-top: 0px;\n margin-bottom: 0px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-preview-retrybutton:hover,\n .bb-capture-preview-sendbutton:hover {\n opacity: 0.9;\n }\n \n .bb-capture-toolbar-item-recording {\n margin-right: 0px;\n }\n \n .bb-capture-toolbar-item-recording svg {\n width: 33px;\n height: 33px;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n position: fixed;\n top: 70px;\n left: 50%;\n transform: translateX(-50%);\n z-index: ").concat(2147483618,';\n background-color: #fff;\n display: none;\n padding: 10px;\n box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n }\n \n .bb-capture-toolbar-item-color {\n width: 20px;\n height: 20px;\n border-radius: 100%;\n margin-right: 12px;\n box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n }\n \n .bb-capture-toolbar-item-color:hover {\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);\n }\n \n .bb-capture-toolbar-item-color:last-of-type {\n margin-right: 0px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color {\n margin-right: auto;\n margin-left: 12px;\n }\n \n [dir=rtl].bb-capture-editor .bb-capture-toolbar-item-color:last-of-type {\n margin-right: auto;\n margin-left: 0px;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:first-of-type {\n display: none;\n }\n \n .bb-capture-toolbar-item-recording[data-active="true"] svg:nth-of-type(2) {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:first-of-type {\n display: block;\n }\n \n .bb-capture-toolbar-item-recording[data-active="false"] svg:nth-of-type(2) {\n display: none;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #eee;\n }\n \n .bb-capture-toolbar-item:hover svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--active {\n background-color: #f8f8f8;\n }\n \n .bb-capture-toolbar-item--active svg {\n opacity: 1;\n }\n \n .bb-capture-toolbar-item--inactivecross::before {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 3px;\n width: 26px;\n margin: auto;\n border-radius: 4px;\n background-color: #e80000;\n transform: rotate(45deg);\n }\n \n .bb-capture-toolbar-item--inactivecross svg {\n fill: #eee;\n }\n \n .bb-capture-toolbar-item-timer {\n text-align: left;\n line-height: 32px;\n font-size: 14px;\n font-family: sans-serif;\n margin: 5px;\n min-width: 40px;\n display: none;\n }\n \n .bb-capture-toolbar-item .bb-tooltip {\n background-color: #555;\n color: #fff;\n visibility: hidden;\n font-size: 14px;\n font-family: sans-serif;\n text-align: center;\n padding: 5px 10px;\n position: absolute;\n z-index: 1;\n top: 45px;\n left: 0px;\n transform: translateX(calc(-50% + 21px));\n opacity: 0;\n transition: opacity 0.3s;\n white-space: nowrap;\n }\n \n .bb-capture-toolbar-item .bb-tooltip::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n transform: rotate(180deg);\n border-color: #555 transparent transparent transparent;\n }\n \n .bb-capture-toolbar-item:hover .bb-tooltip {\n visibility: visible;\n opacity: 1;\n }\n \n .bb-capture-options {\n display: none;\n }\n \n .bb-capture-options--active {\n display: flex;\n }\n\n @keyframes bbFadeOutRight {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbFadeOutDown {\n from {\n opacity: 1;\n }\n \n to {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n }\n \n @keyframes bbFadeInOpacity {\n from {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n @keyframes bbZoomOut {\n from {\n opacity: 1;\n }\n \n 50% {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n to {\n opacity: 0;\n }\n }\n \n @keyframes bbZoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.3, 0.3, 0.3);\n }\n \n 50% {\n opacity: 1;\n }\n }\n \n @keyframes bbRecIconContFade {\n 0% {\n fill: #b10802;\n }\n 50% {\n fill: #ff0000;\n }\n 100% {\n fill: #b10802;\n }\n } \n .bb-capture-preview-retrybutton {\n color: ').concat(f,";\n border-radius: ").concat(w,"px;\n background-color: ").concat(b,";\n }\n .bb-capture-preview-retrybutton:hover {\n background-color: ").concat(y,";\n }\n @keyframes bb-suc-fill {\n 100% {\n box-shadow: inset 0px 0px 0px 30px ").concat(e,";\n }\n }\n .bb-capture-toolbar-item-spacer {\n background-color: ").concat(b,";\n }\n .bb-tooltip {\n border-radius: ").concat(S,"px;\n }\n @keyframes bbRecIconFade {\n 0% {\n fill: transparent;\n }\n 50% {\n fill: ").concat(y,";\n }\n 100% {\n fill: transparent;\n }\n }\n .bb-capture-preview-sendbutton {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(w,"px;\n }\n .bb-capture-button-next {\n color: ").concat(l,";\n background-color: ").concat(e,";\n border-radius: ").concat(C,"px;\n }\n .bb-capture-preview-inner {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-timer {\n color: ").concat(m,";\n }\n .bb-svg-path {\n fill: ").concat(f,";\n }\n .bb-capture-toolbar-item {\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar {\n background-color: ").concat(r,";\n border-radius: ").concat(S,"px;\n }\n .bb-capture-toolbar-item-colorpicker {\n background-color: ").concat(r,";\n }\n .bb-capture-toolbar-item--active {\n background-color: ").concat(b,";\n }\n .bb-feedback-button-classic {\n border-top-left-radius: ").concat(S,"px;\n border-top-right-radius: ").concat(S,"px;\n }\n .bb-logo-logo--default path {\n fill: ").concat(p,";\n }\n .bb-logo-arrowdown {\n fill: ").concat(p,";\n }\n .bb-feedback-button-icon {\n background-color: ").concat(n,";\n }\n .bb-feedback-button-classic {\n background-color: ").concat(n,";\n color: ").concat(p,";\n }\n\n @media only screen and (max-width: 450px) {\n [dir=rtl].gleap-frame-container,\n .gleap-frame-container {\n left: 0px;\n right: 0px;\n width: 100vw;\n max-width: 100vw;\n min-height: 100vh;\n min-height: -webkit-fill-available;\n max-height: -webkit-fill-available;\n top: 0px;\n bottom: 0px;\n border-radius: 0px;\n animation-name: gleapFadeInUpMobile;\n }\n\n .gleap-frame-container-inner {\n width: 100vw;\n height: 100%;\n }\n\n .gleap-frame-container:not(.gleap-frame-container--survey):not(.gleap-frame-container--survey-full) .gleap-frame-container-inner {\n max-height: calc(var(--glvh, 1vh) * 100) !important;\n }\n\n .gleap-frame-container--survey {\n height: auto !important;\n top: initial !important;\n bottom: 0px !important;\n min-height: initial !important;\n }\n\n .gleap-frame-container--survey .gleap-frame-container-inner {\n height: 100vh !important;\n }\n\n .bb-tooltip {\n display: none !important;\n }\n \n .bb-capture-toolbar-item-colorpicker {\n top: 75px;\n }\n \n .bb-capture-button-next {\n margin-left: auto;\n }\n \n .bb-capture-dismiss {\n display: none;\n }\n \n .bb-capture-toolbar {\n top: 15px;\n right: 15px;\n left: 15px;\n width: auto;\n transform: none;\n }\n\n .bb-capture-editor-drag-info {\n display: none;\n }\n \n .bb-capture-editor-borderlayer {\n border-width: 4px;\n }\n }\n \n @media print {\n .bb-feedback-button {\n display: none !important;\n }\n \n .gleap-frame-container {\n display: none !important;\n }\n }\n\n .gleap-tour-sender {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n margin-bottom: 10px;\n }\n\n .gleap-tour-sender-image {\n width: 32px;\n height: 32px;\n border-radius: 32px;\n margin-right: 10px;\n background-size: cover;\n background-repeat: no-repeat;\n }\n\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: 550px;\n max-width: 550px;\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-popover.gleap-tour-popover-post {\n min-width: calc(100vw - 40px);\n max-width: calc(100vw - 40px);\n }\n }\n\n .gleap-tour-message,\n .gleap-tour-message p,\n .gleap-tour-message ul {\n color: ").concat(f,";\n }\n\n .gleap-tour-message h2 {\n font-weight: 600;\n font-size: 22px;\n }\n\n .gleap-tour-message h3 {\n font-weight: 600;\n font-size: 18px;\n }\n\n .gleap-tour-message p {\n line-height: 1.3;\n margin-bottom: 10px !important;\n margin-top: 10px !important;\n }\n\n .gleap-tour-message ul {\n line-height: 1.3;\n padding-left: 20px;\n margin-top: 10px !important;\n margin-bottom: 10px !important;\n }\n\n .gleap-tour-message {\n max-height: calc(80vh - 100px) !important;\n overflow-y: auto;\n min-width: 270px;\n }\n\n .gleap-tour-message::-webkit-scrollbar {\n width: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-track {\n border-radius: 0px;\n }\n \n .gleap-tour-message::-webkit-scrollbar-thumb {\n background: ").concat(y,"; \n border-radius: 5px;\n }\n\n .gleap-tour-message::-webkit-scrollbar-thumb:hover {\n background: ").concat(m,";\n }\n\n @media only screen and (max-width: 450px) {\n .gleap-tour-message {\n min-width: auto !important;\n }\n }\n\n .gleap-tour-message iframe {\n width: 100%;\n height: 300px;\n margin-top: 10px;\n margin-bottom: 10px;\n border: none;\n outline: none;\n display: block;\n }\n\n .gleap-tour-sender-name {\n font-size: 15px;\n }\n\n .gleap-tour-video {\n width: 100%;\n max-width: 100%;\n }\n\n .gleap-tour-video-svg--fullscreen {\n width: 100% !important;\n height: 100% !important;\n top: 0px !important;\n left: 0px !important;\n right: 0px !important;\n bottom: 0px !important;\n }\n\n .gleap-tour-video--playing .gleap-tour-video-playpause {\n opacity: 0;\n }\n \n .gleap-tour-video--playing:hover .gleap-tour-video-playpause {\n opacity: 1;\n }\n\n .gleap-tour-popover-video-pointer {\n padding: 0px !important;\n border-radius: 8px;\n position: relative;\n background-color: transparent !important;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer {\n position: absolute;\n top: 0px;\n left: 20px;\n right: 20px;\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-footer button {\n padding: 5px 12px;\n }\n\n .gleap-tour-popover-video-pointer.gleap-tour-popover-can-close .gleap-tour-popover-footer {\n right: 40px !important;\n }\n\n .gleap-tour-popover-video-pointer:hover .gleap-tour-popover-footer {\n opacity: 1;\n }\n\n .gleap-tour-popover-pointer.gleap-tour-popover-no-sender .gleap-tour-message {\n padding-right: 20px;\n }\n\n .gleap-tour-video video {\n width: 100%;\n max-width: 100%;\n height: auto;\n border: none;\n outline: none;\n display: block;\n border-radius: 8px;\n }\n\n .gleap-admin-collapse-ui {\n z-index: ").concat(2147483635,";\n cursor: pointer;\n position: fixed;\n bottom: 75px;\n right: 20px;\n width: 32px;\n height: 32px;\n border-radius: 100%;\n background-color: #fff;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;\n }\n\n .gleap-admin-collapse-ui svg {\n width: 20px;\n height: 14px;\n fill: #000 !important;\n }\n\n .gleap-admin-collapse-ui-active {\n bottom: 20px !important;\n }\n\n .gleap-admin-collapse-ui-active svg {\n transform: rotate(180deg);\n }\n\n .gleap-admin-frame-container-active {\n display: none !important;\n }\n\n .gleap-admin-frame-container {\n position: fixed;\n bottom: 0px;\n left: 0px;\n right: 0px;\n width: 100vw;\n z-index: ").concat(2147483640,";\n }\n\n .gleap-admin-frame {\n width: 100%;\n height: 100% !important;\n border: none;\n outline: none;\n display: block;\n }\n \n .gleap-tour-message .linktype-link {\n display: inline-block !important;\n background-color: transparent !important;\n color: ").concat(n," !important;\n }\n\n .gleap-tooltip .linktype-button,\n .gleap-tour-message .linktype-button {\n display: inline-block !important;\n border-radius: 5px;\n box-sizing: border-box;\n padding: 10px 20px !important;\n text-decoration: none !important;\n background-color: ").concat(n," !important;\n color: ").concat(p," !important;\n }\n\n .gleap-tour-message img {\n width: 100%;\n max-width: 100%;\n min-height: 260px;\n height: auto;\n margin-top: 10px;\n margin-bottom: 10px;\n object-fit: cover;\n }\n\n .gleap-tour-active .gleap-tour-overlay {\n pointer-events: none;\n }\n \n .gleap-tour-active * {\n pointer-events: none;\n }\n \n .gleap-tour-active .gleap-tour-active-element,\n .gleap-tour-active .gleap-tour-active-element *,\n .gleap-tour-popover,\n .gleap-tour-popover * {\n pointer-events: auto;\n }\n \n @keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n \n to {\n opacity: 1;\n }\n }\n \n .gleap-tour-fade .gleap-tour-overlay {\n animation: animate-fade-in 200ms ease-in-out;\n }\n \n .gleap-tour-fade .gleap-tour-popover {\n animation: animate-fade-in 200ms;\n }\n\n .gleap-tour-video-playpause {\n position: absolute;\n bottom: 8px;\n left: 8px;\n width: 32px;\n height: 32px;\n padding: 4px;\n background-color: rgba(0,0,0,0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border-radius: 8px;\n transition: opacity 200ms ease-in-out;\n }\n\n .gleap-tour-popover-video-pointer .gleap-tour-popover-arrow {\n display: none !important;\n }\n\n .gleap-tour-video-playpause svg {\n width: 34px;\n height: auto;\n fill: #fff;\n }\n \n /* Popover styles */\n .gleap-tour-popover {\n all: unset;\n box-sizing: border-box;\n color: #2d2d2d;\n margin: 0;\n padding: 15px;\n border-radius: ").concat(S,'px;\n min-width: 250px;\n max-width: 300px;\n box-shadow: 0 1px 10px #0006;\n z-index: 1000000000;\n position: fixed;\n top: 0;\n right: 0;\n background-color: #fff;\n }\n \n .gleap-tour-popover * {\n font-family: "Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif;\n }\n \n .gleap-tour-popover-title {\n font: 19px / normal sans-serif;\n font-weight: 700;\n display: block;\n position: relative;\n line-height: 1.5;\n zoom: 1;\n margin: 0;\n }\n \n .gleap-tour-popover-close-btn {\n all: unset;\n position: absolute;\n top: 5px;\n right: 5px;\n width: 32px;\n height: 32px;\n cursor: pointer;\n font-size: 30px;\n font-weight: 500;\n line-height: 32px;\n color: #d2d2d2;\n z-index: 1;\n text-align: center;\n transition: color;\n transition-duration: 200ms;\n }\n \n .gleap-tour-popover-close-btn:hover,\n .gleap-tour-popover-close-btn:focus {\n color: #2d2d2d;\n }\n \n .gleap-tour-popover-title[style*="block"] + .gleap-tour-popover-description {\n margin-top: 5px;\n }\n \n .gleap-tour-popover-description {\n margin-bottom: 0;\n font: 15px / normal sans-serif;\n line-height: 1.5;\n font-weight: 400;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer {\n margin-top: 15px;\n text-align: right;\n zoom: 1;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n \n .gleap-tour-popover-progress-text {\n font-size: 13px;\n font-weight: 400;\n color: #727272;\n zoom: 1;\n }\n \n .gleap-tour-popover-footer button {\n background-color: ').concat(e,";\n color: ").concat(l,";\n border-radius: ").concat(C,"px;\n box-sizing: border-box;\n padding: 10px 20px;\n font-size: 14px;\n font-weight: bold;\n line-height: 21px;\n border: none;\n text-align: center;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: none !important;\n outline: none !important;\n }\n\n .gleap-tour-popover-prev-btn {\n color: ").concat(f," !important;\n background-color: ").concat(b," !important;\n margin-right: 3px;\n }\n\n .gleap-tour-popover-prev-btn:hover {\n background-color: ").concat(e,"22 !important;\n color: ").concat(e,' !important;\n }\n \n .gleap-tour-popover-footer .gleap-tour-popover-btn-disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n \n /* Disable the scrolling of parent element if it has an active element*/\n :not(body):has(> .gleap-tour-active-element) {\n overflow: hidden !important;\n }\n \n .gleap-tour-no-interaction, .gleap-tour-no-interaction * {\n pointer-events: none !important;\n }\n \n .gleap-tour-popover-navigation-btns {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n }\n \n .gleap-tour-popover-navigation-btns button + button {\n margin-left: 4px;\n }\n \n .gleap-tour-popover-arrow {\n content: "";\n position: absolute;\n border: 5px solid #fff;\n }\n \n .gleap-tour-popover-arrow-side-over {\n display: none;\n }\n \n /** Popover Arrow Sides **/\n .gleap-tour-popover-arrow-side-left {\n left: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-right {\n right: 100%;\n border-left-color: transparent;\n border-bottom-color: transparent;\n border-top-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-top {\n top: 100%;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-bottom {\n bottom: 100%;\n border-left-color: transparent;\n border-top-color: transparent;\n border-right-color: transparent;\n }\n \n .gleap-tour-popover-arrow-side-center {\n display: none;\n }\n \n /* Left/Start + Right/Start */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-start {\n top: 15px;\n }\n \n /* Top/Start + Bottom/Start */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-start,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-start {\n left: 15px;\n }\n \n /* End/Left + End/Right */\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-left,\n .gleap-tour-popover-arrow-align-end.gleap-tour-popover-arrow-side-right {\n bottom: 15px;\n }\n \n /* Top/End + Bottom/End */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-end,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-end {\n right: 15px;\n }\n \n /* Left/Center + Right/Center */\n .gleap-tour-popover-arrow-side-left.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-right.gleap-tour-popover-arrow-align-center {\n top: 50%;\n margin-top: -5px;\n }\n \n /* Top/Center + Bottom/Center */\n .gleap-tour-popover-arrow-side-top.gleap-tour-popover-arrow-align-center,\n .gleap-tour-popover-arrow-side-bottom.gleap-tour-popover-arrow-align-center {\n left: 50%;\n margin-left: -5px;\n }\n \n /* No arrow */\n .gleap-tour-popover-arrow-none {\n display: none;\n } \n\n /* Modal styles */\n .gleap-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: ').concat(2147483640,";\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .gleap-modal-backdrop {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: ").concat(2147483641,";\n }\n\n .gleap-modal {\n position: relative;\n width: 90%;\n max-width: 600px;\n max-height: 90vh;\n z-index: ").concat(2147483700,";\n background-color: ").concat(r,";\n border-radius: ").concat(k,"px;\n overflow: hidden;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-name: gleapFadeInUp;\n }\n\n .gleap-modal-frame {\n width: 100%;\n border: none;\n display: block;\n outline: none;\n }\n\n body.gleap-modal-open {\n overflow: hidden;\n }\n\n @keyframes gleapFadeInUp {\n from {\n opacity: 0;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n }\n "),T=document.querySelector(".gleap-styles");T&&T.remove();var E=document.createElement("style");E.innerHTML=L,E.className="gleap-styles",document.body.appendChild(E)}(e,t,n,r,o,i,s,c)}))}},{key:"sendSilentCrashReport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};return e.sendSilentCrashReportWithFormData({description:t},n,o)}},{key:"sendSilentCrashReportWithFormData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MEDIUM",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{screenshot:!0,replays:!0,attachments:!0};if(!this.silentCrashReportSent){this.silentCrashReportSent=!0,setTimeout((function(){t.silentCrashReportSent=!1}),1e4);var r=o?k(o):{},i=$e.getInstance();if(i.ready){var a=e||{};i.session.email&&(a.reportedBy=i.session.email),new _t("CRASH",n,a,!0,r).sendFeedback().then((function(){})).catch((function(e){}))}}}},{key:"showSurvey",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"survey";e.startFeedbackFlowWithOptions(t,{hideBackButton:!0,format:n},!0)}},{key:"startClassicForm",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlow",value:function(t,n){e.startFeedbackFlowWithOptions(t,{hideBackButton:!n})}},{key:"startFeedbackFlowWithOptions",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.autostartDrawing,i=n.hideBackButton,a=n.format;if($e.getInstance().ready){e.getInstance().setGlobalDataItem("snapshotPosition",{x:window.scrollX,y:window.scrollY});var s="start-feedbackflow";o&&(s="start-survey"),Gt.getInstance().setAppMode(o?a:"widget"),Gt.getInstance().sendMessage({name:s,data:{flow:t,hideBackButton:i,format:a}},!0),r?Gt.getInstance().showDrawingScreen("screenshot"):Gt.getInstance().showWidget()}}},{key:"openConversations",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversations",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openConversation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-conversation",data:{shareToken:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"startConversation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.startBot("",t)}},{key:"startBot",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-bot",data:{botId:e||"",hideBackButton:!t}},!0),Gt.getInstance().showWidget()}},{key:"openHelpCenterCollection",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-collection",data:{collectionId:e}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenterArticle",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-help-article",data:{articleId:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openHelpCenter",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"searchHelpCenter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-helpcenter-search",data:{term:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNewsArticle",value:function(e){e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news-article",data:{id:e}},!0),Gt.getInstance().showWidget())}},{key:"openChecklists",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklists",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return!!e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"start-checklist",data:fi({outboundId:e,hideBackButton:!t},n?{sharedKey:n}:{})},!0),Gt.getInstance().showWidget(),!0)}},{key:"openChecklist",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-checklist",data:{id:e,hideBackButton:!t}},!0),Gt.getInstance().showWidget())}},{key:"openNews",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-news",data:{hideBackButton:!e}},!0),Gt.getInstance().showWidget()}},{key:"openFeatureRequests",value:function(){Gt.getInstance().setAppMode("widget"),Gt.getInstance().sendMessage({name:"open-feature-requests",data:{}},!0),Gt.getInstance().showWidget()}},{key:"startProductTour",value:function(e){var t=this;$e.getInstance().startProductTourConfig(e).then((function(n){t.startProductTourWithConfig(e,n)})).catch((function(e){}))}},{key:"checkForUncompletedTour",value:function(){var e=Yr.getInstance().loadUncompletedTour();e&&Yr.getInstance().startWithConfig(e.tourId,e.tourData,500)}},{key:"startProductTourWithConfig",value:function(e,t){Yr.getInstance().startWithConfig(e,t)}},{key:"showBanner",value:function(e){try{_o.getInstance().showBanner(e)}catch(t){}}},{key:"showModal",value:function(e){try{Go.getInstance().showModal(e)}catch(t){}}},{key:"showNotification",value:function(e){Ao.getInstance().showNotification(e)}}],n&&di(t.prototype,n),o&&di(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();if(hi(gi,"invoked",!0),hi(gi,"silentCrashReportSent",!1),hi(gi,"instance",void 0),"undefined"!=typeof window){var mi=window.GleapActions;if(mi&&mi.length>0)for(var bi=0;bi { this._hasLoaded = false; this.renderResponse(); const sharedKey = this.getAttribute("sharedKey"); - + this._networkManager .validateChecklist(outboundId, sharedKey) .then((internalId) => { @@ -1147,9 +1147,12 @@ export const registerGleapChecklist = () => { if (step.action === "BOT") Gleap.startBot(step.botId); else if (step.action === "CUSTOM_ACTION") Gleap.triggerCustomAction(step.actionBody); - else if (step.action === "REDIRECT_URL") + else if (step.action === "REDIRECT_URL") { + e.preventDefault(); + e.stopPropagation(); + e.stopImmediatePropagation(); Gleap.openURL(step.actionBody, !!step.actionOpenInNewTab); - else if (step.action === "FEEDBACK_FLOW") + } else if (step.action === "FEEDBACK_FLOW") Gleap.startFeedbackFlow(step.formId); else if (step.action === "NEWS_ARTICLE") Gleap.openNewsArticle(step.articleId); diff --git a/src/GleapFrameManager.js b/src/GleapFrameManager.js index 7298be42..0c03f19b 100644 --- a/src/GleapFrameManager.js +++ b/src/GleapFrameManager.js @@ -37,17 +37,7 @@ export default class GleapFrameManager { if (url && url.length > 0) { if (newTab) { const newWindow = window.open(url, "_blank"); - - // Check if the new window was successfully created and not blocked - if ( - !newWindow || - newWindow.closed || - typeof newWindow.closed === "undefined" - ) { - // If the new window was blocked, navigate in the same tab instead - window.location.href = url; - } else { - // If the new window was created successfully, bring it into focus + if (newWindow) { newWindow.focus(); } } else {