!function(Ke,x){function e(){}var g={},M={nonce:null},t=("undefined"==typeof console&&(console={log:e,debug:e,error:e,info:e}),g.setNonce=function(e){M.nonce=e},g.addEvent=function(e,t,n){return e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n,!1)},g.removeEvent=function(e,t,n){return e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener(t,n,!1)},g.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},g.onReady=function(e,t){e.document&&"complete"===e.document.readyState?t():e.document&&e.document.addEventListener?e.document.addEventListener("DOMContentLoaded",t,!1):e.attachEvent?e.attachEvent("onload",t):Ke.onload=t},g.unescapeHtml=function(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":(e=t.childNodes[0]?t.childNodes[0].nodeValue:"",(e+=t.childNodes[1]?t.childNodes[1].outerHTML:"")+(t.childNodes[2]?t.childNodes[2].outerHTML:""))},g.insertAfter=function(e,t){e.parentNode&&e.parentNode.insertBefore(t,e.nextSibling)},g.insertBefore=function(e,t){e.parentNode&&e.parentNode.insertBefore(t,e)},g.moveChildren=function(e,t){if(e!==t)for(;e.hasChildNodes();)t.appendChild(e.firstChild)},g.documentFragmentInnerHtml=function(e,t){var n=document.createElement("div");n.innerHTML=t,g.moveChildren(n,e)},g.isDocumentFragment=function(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE},g.containerInnerHtml=function(e,t){g.isDocumentFragment(e)?g.documentFragmentInnerHtml(e,t):e.innerHTML=t},g.executeScriptsForScriptTags=function(e){var n,r;e.length&&(n=/^$|\/(?:java|ecma)script/i,r=/^\s*\s*$/g,g.each(e,function(e){p.log("_:executeScript",e);var t=e.ownerDocument;n.test(e.type||"")&&(e.src?g.globalEvalScript(e.src,t):g.globalEvalCode(e.textContent.replace(r,""),t))}))},g.executeScripts=function(e){g.executeScriptsForScriptTags(e.querySelectorAll("script"))},g.executeScriptsForNodes=function(e){g.executeScriptsForScriptTags(g.getElementsByTagNameIncludesItself(e,"script"))},g.replaceChildren=function(e,t){g.isElement(t)||g.isDocumentFragment(t)?(e.innerHTML="",e.appendChild(t)):e.innerHTML=t},g.getNodesArray=function(e){var t=[];return e.hasChildNodes()&&g.each(e.childNodes,function(e){t.push(e)}),t},g.getElementsByTagNameIncludesItself=function(e,t){t=t.toLowerCase(),Array.isArray(e)||(e=[e]);var n=[];return g.each(e,function(e){e&&e.tagName&&(e.tagName.toLowerCase()===t&&n.push(e),(e=e.getElementsByTagName(t)).length)&&g.each(e,function(e){n.push(e)})}),n},g.globalEvalCode=function(e,t){var n=(t=t||document).createElement("script");M.nonce&&(n.nonce=M.nonce),n.text=e,t.head.appendChild(n).parentNode.removeChild(n)},g.globalEvalScript=function(e,t){var n=(t=t||document).createElement("script");M.nonce&&(n.nonce=M.nonce),n.src=e,t.head.appendChild(n)},g.inArray=function(e,t,n){var r="";if(!!n){for(r in t)if(t.hasOwnProperty(r)&&t[r]===e)return!0}else for(r in t)if(t.hasOwnProperty(r)&&t[r]==e)return!0;return!1},g.isDocumentVisible=function(){var t,n,e={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};for(t in e)if(e.hasOwnProperty(t)&&t in document){n=e[t];break}return function(e){return e&&document.addEventListener(n,e),!document[t]}}(),{objects:[],_timerObject:function(e){this.label=e,this.time=(new Date).getTime(),this.getLabel=function(){return this.label},this.getElapsedTime=function(){return(new Date).getTime()-this.time},this.getElapsedTimeString=function(){return this.getElapsedTime()+" ms"},this.getTime=function(){return this.time},this.log=function(){t.log(this)}},create:function(e){var t=new this._timerObject(e);return this.objects[e]=t},get:function(e){return void 0===this.objects[e=void 0!==e&&e?e:"__main__"]&&(this.objects[e]=new this._timerObject(e)),this.objects[e]},log:function(e){p.log('Timer "'+e.getLabel()+'" took '+e.getElapsedTimeString())}}),h={_promiseHandlers:{},_persistentPromiseHandlers:{},_emptyElement:document.createDocumentFragment(),encodeString:function(e,t){return("function"==typeof encodeURIComponent?t?encodeURI:encodeURIComponent:escape)(e)},prepareTimeForDate:function(e,t){t=t?new Date(t.getTime()):new Date;e=e.split(":");return t.setHours(e[0]),t.setMinutes(e[1]),t.setSeconds(e[2]),t},DOMTokenListSupports:function(e,t){if(e&&e.supports)try{return e.supports(t)}catch(e){p.log("The DOMTokenList doesn't have a supported tokens list")}},addStyles:function(r){return new Je(function(e,t){if(p.log("Utils:addStyles"),!r)return e(null);Array.isArray(r)||(r=[r]);var n=h.DOMTokenListSupports(document.createElement("link").relList,"preload");g.each(r,function(e){n&&((t=document.createElement("link")).setAttribute("rel","preload"),t.setAttribute("as","style"),t.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(t));var t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(t)}),e(r)})},uniquePromiseHandler:function(t,n){var e;return h._promiseHandlers[t]||(e=new Je(n),(h._promiseHandlers[t]=e).then(function(){p.log("Utils:uniquePromiseHandler then",t,n),delete h._promiseHandlers[t]}).catch(function(e){p.log("Utils:uniquePromiseHandler catch",t,n,e),delete h._promiseHandlers[t]}),e)},persistentPromiseHandler:function(e,t){return h._persistentPromiseHandlers[e]||(h._persistentPromiseHandlers[e]=new Je(t)),h._persistentPromiseHandlers[e]},addClass:function(e,t){h.hasClass(e,t)||(e.className+=" "+t)},removeClass:function(e,t){h.hasClass(e,t)&&(e.className=e.className.replace(new RegExp("\\b"+t+"\\b","g"),""))},hasClass:function(e,t){return!!e.className.match(new RegExp("\\b"+t+"\\b","g"))},attachHandlerForElements:function(e,n,r,i){p.log("Utils:attachHandlerForElements",e.length,e),0":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,function(e){return t[e]})},generateUUID:function(){var i=(new Date).getTime();return Ke.performance&&"function"==typeof Ke.performance.now&&(i+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){t=i;var t,n,r=(r=Ke.crypto||Ke.msCrypto)&&"function"==typeof r.getRandomValues?(n=new Uint32Array(1),r.getRandomValues(n),(t+n[0])%16|0):(t+16*Math.random())%16|0;return i=Math.floor(i/16),("x"==e?r:3&r|8).toString(16)})},validateUUID:function(e){return RegExp(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).test(e)},validateSelector:function(e){try{h._emptyElement.querySelector(e)}catch(e){return!1}return!0},addEvent:function(t,e,n){return"click"===e?g.addEvent(t,e,function(e){return f.handleClick(t),n(e)}):g.addEvent(t,e,n)},removeEvent:function(e,t,n){return g.removeEvent(e,t,n)},uint8ArrayToBase64Url:function(e,t,n){return t=t||0,n=n||e.byteLength,Ke.btoa(String.fromCharCode.apply(null,e.subarray(t,n))).replace(/\=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},atou:function(e){return decodeURIComponent(escape(Ke.atob(e)))},utoa:function(e){return Ke.btoa(unescape(encodeURIComponent(e)))}},f={_enabled:!1,_events:[],_startTime:null,_groupUuid:null,_intervalId:null,_delayTimeoutId:null,_maxEventCount:25,_logingConditions:[],LEVEL:{fatal:"fatal",error:"error",info:"info",debug:"debug"},TYPE:{general:"general",request:"request",log:"log",click:"click",lost:"lost"},SCOPE:{inner:"inner",outer:"outer"},init:function(e){f._startTime=(e=e||{}).startTime||(new Date).getTime(),f._groupUuid=h.generateUUID(),f._attachWindowErrorListener(),f._logingConditions=[{level:f.LEVEL.fatal,scope:f.SCOPE.inner},{level:f.LEVEL.error,type:f.TYPE.request,scope:f.SCOPE.inner}],o.init()},setEnabled:function(e){f._enabled=e},callFunctionAndLogError:function(e,t,n){var r,i,o;for(o in e.apply(this,t),t)if(t[o]instanceof Error){r=t[o];break}"string"==typeof t[0]&&(i=t[0]),r?(e=f._prepareEventFromError(r,f.TYPE.general,n),i&&(e.msg=i+" "+e.msg),f.handleEvent(e)):f.handleError(new Error(i||"Unknown error dump message"),f.TYPE.general,n)},handleError:function(e,t,n,r){f.handleEvent(f._prepareEventFromError(e,t,n,r))},handleClick:function(e){f.handleEvent(f._prepareEventFromElement(e,f.TYPE.click,f.LEVEL.info,f.SCOPE.inner))},handleEvent:function(e){f._checkAndRichEvent(e),f._pushEvent(e)},handleFetch:function(t,e){var n,r=(new Date).getTime();return e.then(function(e){return n=200===e.status||201===e.status||0===e.status?g.extend(f._prepareEventDataFromRequest(t),{level:f.LEVEL.info,type:f.TYPE.request,msg:"Fetch request succeeded",statusCode:e.status}):g.extend(f._prepareEventDataFromRequest(t),{level:f.LEVEL.error,type:f.TYPE.request,name:"Fetch request fail",msg:e.statusText,stack:(new Error).stack,statusCode:e.status}),e}).catch(function(e){return n=g.extend(f._prepareEventDataFromRequest(t),f._prepareEventFromError(e,f.TYPE.request)),Je.reject(e)}).finally(function(){n.requestDuration=(new Date).getTime()-r,f.handleEvent(n)})},sendEvents:function(){f._sendEventsToSender(),f._attachDelayAndSendFewEventsAfterTriggered()},_sendEventsToSender:function(){var e=[].concat(f._events);f._enabled&&o.sendEvents(e),f._events=[]},_attachDelayAndSendFewEventsAfterTriggered:function(){f._delayTimeoutId&&(clearTimeout(f._delayTimeoutId),f._delayTimeoutId=null),f._delayTimeoutId=setTimeout(function(){f._sendEventsToSender()},15)},_prepareEventFromElement:function(e,t,n,r){var i=e.nodeName||null,e=e.className||null;return{level:n||f.LEVEL.error,type:t||f.TYPE.general,scope:r||f.SCOPE.inner,name:"NodeEvent",msg:'Action on "'+(i||"unknown")+'" node with class name "'+(e||"")+'"',nodeName:"string"==typeof i?i.toLowerCase():null,className:e}},_prepareEventFromError:function(e,t,n,r){var i=e.stack,o=e.toString();return{level:n||f.LEVEL.error,type:t||f.TYPE.general,scope:r||f.SCOPE.inner,name:e.name,msg:o,stack:i}},_prepareEventDataFromRequest:function(e){return{method:e.method,url:e.url,bodyUsed:e.bodyUsed,cache:e.cache,keepalive:e.keepalive}},_pushEvent:function(e){f._applyEventsLimit(),f._events.push(e),f._checkConditionsAndSend(e)},_checkConditionsAndSend:function(e){f._checkConditions(e)&&f.sendEvents()},_checkConditions:function(e){if(e.level!==f.LEVEL.error||e.type!==f.TYPE.request||-1===(e.url||"").indexOf("web-push/get-public-config"))for(var t in f._logingConditions)if(f._logingConditions.hasOwnProperty(t)){t=f._logingConditions[t];if(f._checkCondition(e,t))return!0}return!1},_checkCondition:function(e,t){for(var n in t)if(t.hasOwnProperty(n)&&e[n]!==t[n])return!1;return!0},_applyEventsLimit:function(){var e;f._events.length>=f._maxEventCount&&((e=f._events.shift()).type===f.TYPE.lost?(f._events.shift(),e.lostCount++,f._events.unshift(e)):(e=f._checkAndRichEvent({level:f.LEVEL.info,type:f.TYPE.lost,name:"LostEventsLimitAchieved",msg:"First lost event message: "+e.msg,lostCount:1}),f._events.splice(0,1,e)))},_attachWindowErrorListener:function(){h.addEvent(Ke,"error",function(e){e.error&&f.handleError(e.error,f.TYPE.general,f.LEVEL.error,f.SCOPE.outer)})},_checkAndRichEvent:function(e){var t;if(e&&e.level&&e.type)return e.clientUuid||(t=d.getClientFromStore())&&(e.clientUuid=t.uuid,e.clientPermUuid=t.permUuid),void 0===e.scrollPercentage&&(e.scrollPercentage=h.getScrollPercentage()),e.time||(t=(new Date).getTime(),e.startTime=f._startTime,e.time=t,e.elapsedTime=t-f._startTime),e.groupUuid||(e.groupUuid=f._groupUuid),e.eventUuid||(e.eventUuid=h.generateUUID()),e.scope||(e.scope=f.SCOPE.inner),e.href||(e.href=Ke.location.href),e.source="sdk-js",e.sdkVersion=m.getVersion(),e.sdkModule=m.getModuleName(),e.sdkBuildTime=m.getBuildTime(),e;throw new Error("Invalid event to handle by error handler")}},o={_logsToSend:[],_eventLost:null,_intervalId:null,_intervalMs:2e3,_timeout:4e3,_localStorageLogsKey:"_snrs_error_logs",_maxLogsCount:100,LEVEL:{fatal:"fatal",error:"error",info:"info",debug:"debug"},TYPE:{general:"general",request:"request",log:"log",click:"click",lost:"lost"},init:function(e){n.init(),o._restoreLogs(),o._attachHandlers(),o._startLogging()},sendEvents:function(e){e=o._applyLogsLimit(e);o._logsToSend=o._logsToSend.concat(e)},_attachHandlers:function(){Ke.onbeforeunload=function(){o._storeLogs()},o._attachLoggingOnMouseExit()},_attachLoggingOnMouseExit:function(){h.addEvent(document,"mouseout",function(e){e.clientY<=0&&setTimeout(function(){o.flush()},10)})},_applyLogsLimit:function(e){var t,n,r,i=e;return e.length>o._maxLogsCount?(i=e.slice(e.length-o._maxLogsCount+1),t=e.slice(0,e.length-o._maxLogsCount+1),n=o._logsToSend[0]||t[0],n=f._checkAndRichEvent({level:f.LEVEL.info,type:f.TYPE.lost,name:"LostLogsToSendLimitAchieved",msg:"First lost event message: "+n.msg,lostCount:t.length+o._logsToSend.length}),o._logsToSend=[n]):o._logsToSend.length+e.length>o._maxLogsCount&&((t=o._logsToSend[0]).type===f.TYPE.lost&&"LostLogsToSendLimitAchieved"===t.name?(i=e.slice(e.length-o._maxLogsCount+1),r=o._logsToSend.length+i.length-o._maxLogsCount,o._logsToSend=o._logsToSend.slice(r+1),o._logsToSend.unshift(t),t.lostCount+=r):(n=f._checkAndRichEvent({level:f.LEVEL.info,type:f.TYPE.lost,name:"LostLogsToSendLimitAchieved",msg:"First lost event message: "+t.msg,lostCount:r}),r=o._logsToSend.length+e.length-o._maxLogsCount,o._logsToSend=o._logsToSend.slice(r+1),o._logsToSend.unshift(n))),i},flush:function(){o._logsToSend.length&&l.checkAuth()&&o._requestLogs(function(){})},_requestLogs:function(e){var t=[].concat(o._logsToSend);o._logsToSend=[],o._requestWithLimits(t,e)},_request:function(e,t){var n=T.trackingDomain+T.trackerLogsUrl,r=new XMLHttpRequest;r.open("POST",n,!0),r.withCredentials=!1,r.timeout=o._timeout,r.setRequestHeader(l.getHeaderAuth("key"),l.getHeaderAuth("value")),r.setRequestHeader("Content-type","application/json"),r.ontimeout=function(e){},r.onabort=function(e){},r.onerror=function(e){},r.onreadystatechange=function(){4===r.readyState&&t(r)},r.send(JSON.stringify(e))},_requestWithLimits:function(e,t){n.request(function(){o._request(e,function(e){t(e)})})},_startLogging:function(){o._intervalId=setInterval(function(){o.flush()},o._intervalMs)},_setToLocalStore:function(e){k.setString(o._localStorageLogsKey,JSON.stringify(e))},_getFromLocalStore:function(){var e=k.getString(o._localStorageLogsKey);return e?JSON.parse(e):null},_getAndRemoveFromLocalStore:function(){var e=k.getString(o._localStorageLogsKey);return e?(k.remove(o._localStorageLogsKey),JSON.parse(e)):null},_storeLogs:function(){var e,t=[].concat(o._logsToSend);o._logsToSend=[],t.length&&((e=o._getFromLocalStore())&&e.length,o._setToLocalStore(t))},_restoreLogs:function(){var e=o._getAndRemoveFromLocalStore();e&&e.length&&o.sendEvents(e)}},n={_locked:!1,_lockedTimeEnd:null,_count:0,_countAll:0,_maxCount:10,_maxCountAll:100,_timeMs:1e4,_localStorageLimitAchievedKey:"_snrs_logs_limit_achieved",_lockForTimeMs:18e4,init:function(e){n._startThrottling()},request:function(e){n._checkAndLock()||(n._count++,n._countAll++,e())},_startThrottling:function(){var e=n._checkAndRemoveLockTimeFromStoreIfExpired();e&&n._lock(e),setInterval(function(){n._count=0},n._timeMs)},_checkAndLock:function(){return!!n._locked||(n._count>n._maxCount||n._countAll>n._maxCountAll)&&(n._lockAndStore(),!0)},_lock:function(e){e=e||(new Date).getTime()+n._lockForTimeMs,n._locked=!0,n._lockedTimeEnd=e,n._setUnlockTimer(n._lockedTimeEnd)},_lockAndStore:function(){n._lock(),n._setTimeToLocalStore(n._lockedTimeEnd)},_unlockAndStore:function(){n._locked=!1,n._lockedTimeEnd=null,n._count=0,n._countAll=0,n._checkAndRemoveLockTimeFromStoreIfExpired()},_checkAndRemoveLockTimeFromStoreIfExpired:function(){var e=n._getTimeFromLocalStore();return e&&e-(new Date).getTime()<=0?(k.remove(k._localStorageLimitAchievedKey),null):e},_setUnlockTimer:function(e){e-=(new Date).getTime();0a[0]&&t[1]=e.length?void 0:e)&&e[n++],done:!e}}}}function p(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=p(e[n],t[n]));return e}t.prototype.wrapCallback=function(n){var r=this;return function(e,t){e?r.reject(e):r.resolve(t),"function"==typeof n&&(r.promise.catch(function(){}),1===n.length?n(e):n(e,t))}};var o=t;function t(){var n=this;this.reject=function(){},this.resolve=function(){},this.promise=new Je(function(e,t){n.resolve=e,n.reject=t})}s=Error,n(r=c,I=s),r.prototype=null===I?Object.create(I):(a.prototype=I.prototype,new a);var r,s,l=c;function a(){this.constructor=r}function c(e,t){t=s.call(this,t)||this;return t.code=e,t.name="FirebaseError",Object.setPrototypeOf(t,c.prototype),Error.captureStackTrace&&Error.captureStackTrace(t,g.prototype.create),t}u.prototype.create=function(e){for(var t=[],n=1;n"})):"Error",e=this.serviceName+": "+e+" ("+o+").",s=new l(o,e),a=0,c=Object.keys(i);aa[0]&&t[1]"})):"Error",e=this.serviceName+": "+e+" ("+o+").",s=new x(o,e),a=0,c=Object.keys(i);a=r.length?void 0:r)&&r[o++],done:!r}}},a=s.next();!a.done;a=s.next()){var c=a.value;if(!e.options[c])throw Z(c)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Z(e){return _.create("missing-app-config-values",{valueName:e})}function ee(e){e=e.projectId;return X+"/projects/"+e+"/installations"}function te(e){return{token:e.token,requestStatus:2,expiresIn:(e=e.expiresIn,Number(e.replace("s","000"))),creationTime:Date.now()}}function ne(n,r){return u(this,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:return[4,r.json()];case 1:return t=e.sent(),t=t.error,[2,_.create("request-failed",{requestName:n,serverCode:t.code,serverMessage:t.message,serverStatus:t.status})]}})})}function re(e){e=e.apiKey;return new ze({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function ie(e,t){t=t.refreshToken,e=re(e);return e.append("Authorization",z+" "+t),e}function oe(n){return u(this,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:return[4,n()];case 1:return 500<=(t=e.sent()).status&&t.status<600?[2,n()]:[2,t]}})})}function se(t){return new Je(function(e){setTimeout(e,t)})}var ae=/^[cdef][\w-]{21}$/,ce="";var S,ue="firebase-installations-database",le=1,w="firebase-installations-store",de=null;function he(){return de=de||(t=function(e){0===e.oldVersion&&e.createObjectStore(w)},e=i(indexedDB,"open",[ue,le]),(n=e.request)&&(n.onupgradeneeded=function(e){t(new m(n.result,e.oldVersion,n.transaction))}),e.then(function(e){return new y(e)}));var t,e,n}function T(r,i){return u(this,void 0,void 0,function(){var t,n;return l(this,function(e){switch(e.label){case 0:return t=pe(r),[4,he()];case 1:return n=e.sent(),[4,(n=n.transaction(w,"readwrite")).objectStore(w).put(i,t)];case 2:return e.sent(),[4,n.complete];case 3:return e.sent(),[2,i]}})})}function fe(r){return u(this,void 0,void 0,function(){var t,n;return l(this,function(e){switch(e.label){case 0:return t=pe(r),[4,he()];case 1:return n=e.sent(),[4,(n=n.transaction(w,"readwrite")).objectStore(w).delete(t)];case 2:return e.sent(),[4,n.complete];case 3:return e.sent(),[2]}})})}function E(o,s){return u(this,void 0,void 0,function(){var t,n,r,i;return l(this,function(e){switch(e.label){case 0:return t=pe(o),[4,he()];case 1:return n=e.sent(),n=n.transaction(w,"readwrite"),[4,(r=n.objectStore(w)).get(t)];case 2:return i=e.sent(),void 0!==(i=s(i))?[3,4]:[4,r.delete(t)];case 3:return e.sent(),[3,6];case 4:return[4,r.put(i,t)];case 5:e.sent(),e.label=6;case 6:return[4,n.complete];case 7:return e.sent(),[2,i]}})})}function pe(e){return e.appName+"!"+e.appId}function ge(i){return u(this,void 0,void 0,function(){var r,t,n;return l(this,function(e){switch(e.label){case 0:return[4,E(i,function(e){var t,e=ye(e||{fid:function(){try{var e=new Uint8Array(17),t=((self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16,n=e,btoa(String.fromCharCode.apply(String,U(n))).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22));return ae.test(t)?t:ce}catch(e){return ce}var n}(),registrationStatus:0}),n=(n=i,0!==(e=e).registrationStatus?1===e.registrationStatus?{installationEntry:e,registrationPromise:function(i){return u(this,void 0,void 0,function(){var t,n,r;return l(this,function(e){switch(e.label){case 0:return[4,me(i)];case 1:t=e.sent(),e.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,se(100)];case 3:return e.sent(),[4,me(i)];case 4:return t=e.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,ge(i)];case 6:return r=e.sent(),n=r.installationEntry,(r=r.registrationPromise)?[2,r]:[2,n];case 7:return[2,t]}})})}(n)}:{installationEntry:e}:navigator.onLine?{installationEntry:t={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},registrationPromise:function(r,i){return u(this,void 0,void 0,function(){var t,n;return l(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,7]),[4,function(s){var a=i.fid;return u(this,void 0,void 0,function(){var t,n,r,i,o;return l(this,function(e){switch(e.label){case 0:return t=ee(s),o=re(s),n={fid:a,authVersion:z,appId:s.appId,sdkVersion:J},r={method:"POST",headers:o,body:JSON.stringify(n)},[4,oe(function(){return Xe(t,r)})];case 1:return(i=e.sent()).ok?[4,i.json()]:[3,3];case 2:return[2,{fid:(o=e.sent()).fid||a,registrationStatus:2,refreshToken:o.refreshToken,authToken:te(o.authToken)}];case 3:return[4,ne("Create Installation",i)];case 4:throw e.sent()}})})}(r)];case 1:return t=e.sent(),[2,T(r,t)];case 2:return Q(n=e.sent())&&409===n.serverCode?[4,fe(r)]:[3,4];case 3:return e.sent(),[3,6];case 4:return[4,T(r,{fid:i.fid,registrationStatus:0})];case 5:e.sent(),e.label=6;case 6:throw n;case 7:return[2]}})})}(n,t)}:{installationEntry:e,registrationPromise:Je.reject(_.create("app-offline"))});return r=n.registrationPromise,n.installationEntry})];case 1:return(t=e.sent()).fid!==ce?[3,3]:(n={},[4,r]);case 2:return[2,(n.installationEntry=e.sent(),n)];case 3:return[2,{installationEntry:t,registrationPromise:r}]}})})}function me(e){return E(e,function(e){if(e)return ye(e);throw _.create("installation-not-found")})}function ye(e){return 1===e.registrationStatus&&e.registrationTime+Ks&&console.warn("This browser only supports "+s+" actions.The remaining actions will not be displayed."),[2,i.showNotification(r,n)];case 3:return this.bgMessageHandler?[4,this.bgMessageHandler(t)]:[3,5];case 4:return e.sent(),[2];case 5:return[2]}})})},M.prototype.onSubChange_=function(e){return u(this,void 0,void 0,function(){var t,n,r;return l(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.getSWRegistration_()];case 1:return t=e.sent(),[3,3];case 2:throw r=e.sent(),P.create("unable-to-resubscribe",{errorInfo:r});case 3:return e.trys.push([3,5,,8]),[4,t.pushManager.getSubscription()];case 4:return e.sent(),[3,8];case 5:return n=e.sent(),[4,this.getTokenDetailsModel().getTokenDetailsFromSWScope(t.scope)];case 6:if(r=e.sent())return[4,this.deleteToken(r.fcmToken)];throw n;case 7:throw e.sent(),n;case 8:return[2]}})})},M.prototype.onNotificationClick_=function(o){return u(this,void 0,void 0,function(){var t,n,r,i;return l(this,function(e){switch(e.label){case 0:if(!(o.notification&&o.notification.data&&o.notification.data[xe]))return[2];if(o.action)return[2];if(o.stopImmediatePropagation(),o.notification.close(),!(t=o.notification.data[xe]).notification)return[2];if(!(n=t.fcmOptions&&t.fcmOptions.link||t.notification.click_action)){if(!(t.data&&Te in t.data))return[2];n=self.location.origin}return[4,this.getWindowClient_(n)];case 1:return(r=e.sent())?[3,4]:[4,self.clients.openWindow(n)];case 2:return r=e.sent(),[4,new Je(function(e){setTimeout(e,3e3)})];case 3:return e.sent(),[3,6];case 4:return[4,r.focus()];case 5:r=e.sent(),e.label=6;case 6:return r?(delete t.notification,delete t.fcmOptions,i=je(S.NOTIFICATION_CLICKED,t),[2,this.attemptToMessageClient_(r,i)]):[2]}})})},M.prototype.getNotificationData_=function(e){var t,n;if(e&&"object"==typeof e.notification)return(n=a({},e.notification)).data=a(a({},e.notification.data),((t={})[xe]=e,t)),n},M.prototype.setBackgroundMessageHandler=function(e){if(!e||"function"!=typeof e)throw P.create("bg-handler-function-expected");this.bgMessageHandler=e},M.prototype.getWindowClient_=function(o){return u(this,void 0,void 0,function(){var t,n,r,i;return l(this,function(e){switch(e.label){case 0:return t=new URL(o,self.location.href).href,[4,He()];case 1:for(n=e.sent(),r=null,i=0;ir.maxAllowedHeight?(n.style.overflowY="scroll",e=r.maxAllowedHeight):(n.style.overflowY="hidden",n.style.height="auto",e=n.scrollHeight-i,t=!0),n.style.height=e+"px",t},r.getOffset(n));r.rows=n.rows||1,r.lineHeight=n.scrollHeight/r.rows-i/r.rows,r.maxAllowedHeight=r.lineHeight*e-i,n.addEventListener("input",r.autogrowFn)}},"function"==typeof O&&O.amd?O([],c):"object"==typeof D&&D.exports?D.exports=c():e.Autogrow=c();function s(e){return"number"==typeof(e=d(e))&&0<=e&&e<=l}function r(e,t){var n=p.length,r=e.constructor,i=g.isFunction(r)&&r.prototype||a,o="constructor";for(g.has(e,o)&&!g.contains(t,o)&&t.push(o);n--;)(o=p[n])in e&&e[o]!==i[o]&&!g.contains(t,o)&&t.push(o)}function t(c,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;nn),!(t.count>n))||r.push(e)):r.push(e)}),t(r)}).catch(function(e){p.error(e),t([])})})},B.prototype.renderNotifications=function(){p.log("Client:renderNotifications");var n=this;return new Je(function(t,e){n.getNotifications().then(function(e){return g.each(e,function(e){n.renderNotification(e)}),Je.resolve(e)}).then(function(){t()}).catch(function(e){p.error(e),t()})})},{currentClient:null,notify:function(t){t=new S(t),d.getCurrentClient().then(function(e){e.renderNotification(t,!0)})},getAndRenderDynamicContentsForClient:function(t){d.getCurrentClient().then(function(e){void 0!==t?e.renderDynamicContentByUuidFromCache(t):e.renderDynamicContents()})},getCurrentClient:function(){return new Je(function(t,n){var e,r,i;p.log("ClientManager:getCurrentClient",d.currentClient),d.currentClient&&d.currentClient.uuid&&d.currentClient.permUuid?t(d.currentClient):(e=d.getClientFromStore())&&"null"!==e.uuid?(d.currentClient?(d.currentClient.uuid=e.uuid,d.currentClient.permUuid=e.permUuid):d.setCurrentClient(e),p.log("ClientManager:getCurrentClient return:",d.currentClient),t(d.currentClient)):(r=0,i=setInterval(function(){p.log("ClientManager:getCurrentClient try get client again",r,25);var e=d.getClientFromStore();e?(clearInterval(i),i=null,d.currentClient?(d.currentClient.uuid=e.uuid,d.currentClient.permUuid=e.permUuid):d.setCurrentClient(e),p.log("ClientManager:getCurrentClient return:",d.currentClient),t(d.currentClient)):25<=r&&(clearInterval(i),i=null,n(new TypeError("Client has not found"))),r++},250))})},updateClientParams:function(e,t){void 0===t&&(t=!0),e instanceof B?d.currentClient=e:d.currentClient.params=e,t&&b.clientCreateOrUpdate("Update client data",d.currentClient.params)},setCurrentClient:function(e){d.currentClient=e},setClientNew:function(e){d.currentClient?d.currentClient.isNewClient=e:p.log("ClientManager: setClientNew failed to set isNewClient")},isNewClient:function(){return d.currentClient?d.currentClient.isNewClient:null},getClientFromStore:function(){p.log("ClientManager:getClientFromStore");var e=I.getClientUuid(),t=I.getClientPermUuid(),n=I.getClientToken();return e?t?(e=new B({uuid:e,permUuid:t,accessToken:n}),p.log("ClientManager:getClientFromStore return:",e),e):(p.log("ClientManager:getClientFromStore PermUuid not found"),p.log("ClientManager:getClientFromStore return:",null),null):(p.log("ClientManager:getClientFromStore return:",null),null)},getAccessToken:function(){return d.currentClient&&d.currentClient.accessToken?d.currentClient.accessToken:null},setAccessToken:function(t){I.setClientToken(t)?d.getCurrentClient().then(function(e){d.currentClient.accessToken=t,p.log("ClientManager:setToken Token stored and set")}).catch(function(e){p.log("ClientManager:setToken Token stored but not set",e)}):p.log("ClientManager:setToken Failed to store token")},clearAccessToken:function(){d.currentClient&&d.currentClient.accessToken&&(d.currentClient.accessToken=null),I.removeClientToken()},checkGlobalControlGroupForClient:function(){return I.getGlobalControlGroupForClient()},getIdentityHash:function(){return SyneriseTC.identityHash},hashIdentity:function(e){return h.hashString(e)},setUuidAndIdentityHash:function(e,t){return SyneriseTC.setNewUUIDAndIdentityHash(e,t)},setUuid:function(n){return p.log("ClientManager:setUuid",n),new Je(function(e,t){if(!h.validateUUID(n))return t(new TypeError("Uuid is invalid"));SyneriseTC.setNewUUIDAndIdentityHash("",n),SyneriseTC.pageVisit({}).then(function(){e(!0)}).catch(function(){t(new TypeError("Can't set new uuid"))})})}}),m={_options:{notificationNewsletterHandlers:!0,disableNotification:!(B.prototype.renderNotification=function(s,a){var c=this;return new Je(function(e,t){a=a||!1;var n=s.conditions&&s.conditions.delay?parseInt(s.conditions.delay,10):0;if(p.log("Client:renderNotification",s,"delay:",n,"forceRender:",a),!a){if(s.additionalParams&&s.additionalParams.popupAtLeave)return p.log("Client:renderNotification atach click handlers for leave popup"),w.attachHandlerForLeavePopup(c,s),void e();s.additionalParams&&s.additionalParams.popupTransparentBackground?w.turnOnPopupTransparentBackground():w.turnOffPopupTransparentBackground();var r=new Date;if(n){var i,o=E.get("_snrs_notify_delay_"+s.id);if(o?i=new Date(parseInt(o,10)):(i=new Date(r.getTime()+1e3*n),E.set("_snrs_notify_delay_"+s.id,i.getTime(),300)),p.log("Client:renderNotification check end date",i),0<(o=i.getTime()-r.getTime()))return p.log("Client:renderNotification set render timeout",o),setTimeout(function(){c.renderNotification(s,!0)},o),void e(s)}}s.render().then(function(){return E.remove("_snrs_notify_delay_"+s.id),Je.resolve(s)}).then(function(e){return p.log("Client:renderNotification then",e,e.isRendered()),e.isRendered()&&I.setNotificationCapping(e),Je.resolve(e)}).then(function(t){var e=!(!t.conditions||!t.conditions.trackEventShow);return p.log("Client:renderNotification track",t,e,t.isRendered()),t.isRendered()&&e&&T.track("","dynamicContent.show","",{id:t.id,title:t.name}).then(function(e){p.log("Notification:render show tracked",t)}),Je.resolve(t)}).catch(function(e){p.error(e)}),e(s)})}),disableWebPush:!1,webpush:{},dynamicContent:{},lang:x,acceptLangList:x,localStorageMode:!1,doNotTrack:!1,disablePageHistoryTracking:!1},_profileConfig:null,PROFILE_CONFIG_TYPE_NOTIFICATIONS:"notifications",PROFILE_CONFIG_TYPE_DATA_MARKER:"dataMarker",PROFILE_CONFIG_TYPE_PROVIDERS:"providers",PROFILE_CONFIG_TYPE_PROFILE:"profile",PROFILE_CONFIG_TYPE_WEBPUSH:"webPush",PROFILE_CONFIG_TYPE_COOKIE_MATCHERS:"cookieMatchers",getVersion:function(){return"3.27.7"},getModuleName:function(){return"default"},getBuildTime:function(){return"2025-06-24"},getFullVersion:function(){return m.getModuleName()+":"+m.getVersion()},getBuildHash:function(){return h.hashString(m.getFullVersion()+m.getBuildTime())+""},getOption:function(e){return void 0!==e?m._options[e]:m._options},setOption:function(e,t){m._options[e]=t},getDoNotTrackStatus:function(){var e=m.getOption("dntCookieName"),e=e?E.get(e):x,t=E.get("_snrs_dnt"),e=e||t;return"true"===e||"1"===e},init:function(r,e){return new Je(function(e,t){m._options=g.extend(m._options,r),"faststore"===m._options.plugin&&(m.setOption("dynamicContent",{virtualPage:!0}),m.setOption("customPageVisit",!0)),m.getDoNotTrackStatus()&&m.setOption("doNotTrack",!0),m.getOption("doNotTrack")&&((n=E.get("_snrs_p"))&&"null"!==n&&SyneriseTC.clearCookieList(),k.setVariableStorage(),m.setOption("localStorageMode",!0)),u.init(),m._options.lang?m._options.acceptLangList=[m._options.lang]:m._options.lang=u.getLanguage(),m._options.acceptLangList||(m._options.acceptLangList=u.getAcceptLanguageList()),p.log('Core:init module name: "'+m.getModuleName()+'", version: "'+m.getVersion()+'", build time: "'+m.getBuildTime()+'"'),p.log("Core:init with options",m._options);var i,n=E.get("_snrs_token");return n&&k.isAvailable()&&I.setClientToken(n),m._options.trackerKey&&l.trackerKey(m._options.trackerKey),!0===m._options.localStorageMode&&k.clearExpiredKeysStartingWithSnrs(),m._options.apiKey&&l.apiKey(m._options.apiKey),m._options.trackingDomain&&T.utils.setTrackingDomain(m._options.trackingDomain),u.isCrawler()?t(new TypeError("Cannot initialize SDK - crawler detected")):(m._options.nonce&&g.setNonce(m._options.nonce),l.trackerKey()?(i=[["setTracker",l.trackerKey()]],m._options.customPageVisit&&i.push(["setCustomPageVisit",m._options.customPageVisit]),m._options.customizeMetadata&&i.push(["setCustomizeMetadata",m._options.customizeMetadata]),m._options.cookieExpiration&&i.push(["setCookieExpiration",m._options.cookieExpiration]),m._options.domain&&i.push(["setDomain",m._options.domain]),void 0!==m._options.clientUuid&&m._options.clientUuid&&h.validateUUID(m._options.clientUuid)&&i.push(["setUuid",[m._options.clientUuid,!0]]),void 0!==m._options.triggerPageVisitOnHashChange&&i.push(["setTriggerPageVisitOnHashChange",m._options.triggerPageVisitOnHashChange]),void m.getProfileConfig().then(function(n){return new Je(function(e,t){b.init().then(function(){e(n)}).catch(function(e){p.error(e),t(new TypeError("Event list is not defined"))})})}).then(function(r){return new Je(function(e,t){p.log("Core:init init tracker",i);var n=r.recognizeBy[0].name;i.push(["setIdentity",n]),SyneriseTC.init(i),e()})}).then(function(){return new Je(function(t,n){m.initModulesForClient().then(function(e){p.log("Core:init done for client",e),t()}).catch(function(e){p.error(e),n(new TypeError("Client is not identified"))})})}).then(function(){return e(!0)}).catch(function(e){return t(e)})):t(new TypeError("TrackerKey is not set")))})},initModulesForClient:function(){return new Je(function(t,n){d.getCurrentClient().then(function(n){return new Je(function(e,t){if("null"===n.uuid)return e(n);m.getProfileContext(n.uuid).finally(function(){e(n)})})}).then(function(n){return new Je(function(e,t){if(p.log("Core:init dynamicContents"),m._options.disableDynamicContent||void 0===c)return e(n);c.init(m._options.dynamicContent).then(function(){C.init(),location.href.match("snr_preview")?c.renderDynamicContentPreview():m._options.dynamicContent.virtualPage||n.renderDynamicContents()}).catch(function(e){p.error(e)}),e(n)})}).then(function(r){return new Je(function(e,t){var n;p.log("Core:init basic data"),"object"==typeof clientData&&(p.log("Core:init with client data",clientData),d.updateClientParams(clientData)),m._options.disableFormMarker||void 0===_||m._options.doNotTrack||(_.init().catch(function(e){p.error(e)}),J.init().catch(function(e){p.error(e)})),"object"!=typeof m._options.dataLayer||void 0===j||m._options.doNotTrack||(n=m._options.gaVersion,j.init(m._options.dataLayer,n)),e(r)})}).then(function(n){return new Je(function(e,t){p.log("Core:init plugin"),"faststore"===m._options.plugin&&z.init(),e(n)})}).then(function(n){return new Je(function(t,e){if(p.log("Core:init webpush"),m._options.disableWebPush||void 0===D||m._options.doNotTrack)return t(n);D.init(m._options.webpush).then(function(){t(n)}).catch(function(e){t(n)})})}).then(function(n){return new Je(function(e,t){if(p.log("Core:init notifications"),m._options.disableNotification||void 0===w||m._options.doNotTrack)return e(n);w.init().then(function(){C.init(),n.renderNotifications()}).catch(function(e){p.error(e)}),e(n)})}).then(function(e){t(e)}).catch(function(e){n(e)})})},getProfileContext:function(e){return new Je(function(i,t){T.getProfileContext(e).then(function(e){var t,n,r;p.log("Core:getProfileContext RequestManager.getProfileContext then",e),e&&e.profile&&(t=e.profile.newClient,n=e.profile.identityHash,r=e.profile.belongsToGlobalControlGroup,"boolean"==typeof t&&d.setClientNew(t),n&&!SyneriseTC.checkIdentityHashExists()&&SyneriseTC.resetUUIDByIdentityHash(n),"boolean"==typeof r)&&SyneriseTC.setGlobalControlGroup(r),i(e)}).catch(function(e){t(e)})})},getProfileConfig:function(){return h.uniquePromiseHandler("Core:getProfileConfig",function(t,n){var e;return I.getProfileConfig()?(e=I.getProfileConfig(),p.log("Core:getProfileConfig RequestManager.getProfileConfig from localStorage",e),m._profileConfig=e,t(e)):m._profileConfig?(p.log("Core:getProfileConfig RequestManager.getProfileConfig from cache",m._profileConfig),t(m._profileConfig)):void T.getProfileConfig().then(function(e){p.log("Core:getProfileConfig RequestManager.getProfileConfig then",e),I.setProfileConfig(e),m._profileConfig=e,t(m._profileConfig)}).catch(function(e){n(e)})})},getProfileConfigByType:function(r){return new Je(function(t,n){m.getProfileConfig().then(function(e){if(p.log("Core:getProfileConfigByType for type",r),!e)return t(null);t(e[r]||null)}).catch(function(e){n(e)})})},getWebPushProfileConfig:function(){return new Je(function(r,t){var i=m.getOption("acceptLangList")?m.getOption("acceptLangList").join(","):x;m.getProfileConfig().then(function(e){return new Je(function(t,n){if(p.log("Core:getWebPushProfileConfig get webpush config",e),m._profileConfig&&m._profileConfig[m.PROFILE_CONFIG_TYPE_WEBPUSH]!==x)return p.log("Core:getWebPushProfileConfig get from cache",m._profileConfig[m.PROFILE_CONFIG_TYPE_WEBPUSH]),t(m._profileConfig);T.getWebPushProfileConfig(i).then(function(e){p.log("Core:getWebPushProfileConfig RequestManager.getWebPushProfileConfig then",e),m._profileConfig[m.PROFILE_CONFIG_TYPE_WEBPUSH]=e,t(m._profileConfig)}).catch(function(e){n(e)})})}).then(function(e){var t,n;return p.log("Core:getWebPushProfileConfig",e),e&&e[m.PROFILE_CONFIG_TYPE_PROVIDERS]&&e[m.PROFILE_CONFIG_TYPE_PROFILE]&&e[m.PROFILE_CONFIG_TYPE_WEBPUSH]?(n=e[m.PROFILE_CONFIG_TYPE_PROFILE],(t=e[m.PROFILE_CONFIG_TYPE_PROVIDERS])&&t.fcm?(n={api_key:t.fcm.api_key,project_id:t.fcm.project_id,app_id:t.fcm.app_id,sender_id:t.fcm.sender_id,public_vapid:t.fcm.public_vapid||null,agreement_page_domain:"https://"+n.subdomain+".snrpush.com"},p.log("Core:getWebPushProfileConfig webpushData",e[m.PROFILE_CONFIG_TYPE_WEBPUSH]),p.log("Core:getWebPushProfileConfig extendData",n),n=g.extend({},e[m.PROFILE_CONFIG_TYPE_WEBPUSH],n),void r(n||null)):(p.log("Core:getWebPushProfileConfig Fcm settings are not configured.",t),r(null))):(p.log("Core:getWebPushProfileConfig configs required for webpush are not defined.",e),p.log("Core:getWebPushProfileConfig configs isProvidersConfig: "+!!e[m.PROFILE_CONFIG_TYPE_PROVIDERS]+" isProfileConfig: "+!!e[m.PROFILE_CONFIG_TYPE_PROFILE]+" isWebPushConfig: "+!!e[m.PROFILE_CONFIG_TYPE_WEBPUSH]),r(null))}).catch(function(e){t(e)})})}},j={_allowDataLayerAction:["add","remove","purchase","refund"],_events:{add_to_cart:"add",remove_from_cart:"remove",purchase:"purchase",refund:"refund"},_initObserverPush:!1,_localOrders:[],_gaVersion:null,init:function(t,e){this.getLocalOrders(),e&&(this._gaVersion=e);try{p.log("DataLayer:init",t,e),this.validData(t)&&(this.observerPush(t,this.eventData),this.eventsData(t))}catch(e){p.error("DataLayer:init",t,e)}},validData:function(e){return!!Array.isArray&&Array.isArray(e)},eventsData:function(e){var t=this;e.forEach(function(e){t.eventData(t,e)})},ga4Parser:function(e,n){p.log("DataLayer:ga4 event",e,n);var r,t=this._events[e];return(e={ecommerce:{}}).ecommerce[t]={products:[]},n.currency&&(e.ecommerce.currencyCode=n.currency),[].forEach.call(n.items,function(n){var r={};[].forEach.call(g.keys(n),function(e){var t=e.replace(/^item_/,"");r[t]=n[e]}),e.ecommerce[t].products.push(r)}),t!==this._events.purchase&&t!==this._events.refund||(r={},[].forEach.call(g.keys(n),function(e){var t;"items"!==e&&(t=e.replace(/^transaction_id$/,"id").replace(/^value$/,"revenue"),r[t]=n[e])}),e.ecommerce[t].actionField=r),e.ecommerce},containsItemWithItemId:function(e){return e.some(function(e){return e.hasOwnProperty("item_id")})},isGa4GtagValid:function(e){return"string"==typeof e[0]&&"event"===e[0]&&"string"==typeof e[1]&&this._events[e[1]]&&"object"==typeof e[2]&&e[2].items!==x&&this.containsItemWithItemId(e[2].items)},eventData:function(t,e){var e=JSON.parse(JSON.stringify(e)),n=(p.log("DataLayer:eventData - search ecommerce",e),null);return"object"==typeof e.ecommerce&&null!==e.ecommerce?(p.log("DataLayer:eventData - found ecommerce",e),"UA"!==t._gaVersion&&null!==t._gaVersion||(n=e.ecommerce),(["GA4","GA_4"].includes(t._gaVersion)||null===t._gaVersion)&&"object"==typeof e.ecommerce.items&&"string"==typeof e.event&&t._events[e.event]&&(n=t.ga4Parser(e.event,e.ecommerce))):["GA4_gtag","GA_4_TAG"].includes(t._gaVersion)&&t.isGa4GtagValid(e)&&(e={event:e[1],ecommerce:e[2]},n=t.ga4Parser(e.event,e.ecommerce)),n&&t._allowDataLayerAction.forEach(function(e){"object"==typeof n[e]&&"object"==typeof n[e].products&&("purchase"==e?t.trackPurchase(n,e):t.track(n,e))}),!0},getParamsCookie:function(e){var t={};try{var n=E.getJson(e);if(n)for(var r in n)n.hasOwnProperty(r)&&r.match("(snrs?|utm)_.*")&&(t[r]=n[r])}catch(e){p.log("DataLayer:eventData - parse snrs_params",item)}return t},observerPush:function(e,t){var n,r;this._initObserverPush||("function"!=typeof e.push?p.log("DataLayer:observerPush - dataLayer.push is not a function",item):(n=e.push,r=this,e.push=function(){try{p.log("DataLayer:observerPush - callback push",arguments[0]),t(r,arguments[0])}catch(e){try{p.error("DataLayer:observerPush - callback push error E: ",e)}catch(e){}}return n.apply(this,arguments)},this._initObserverPush=!0))},buildRequest:function(e,t){return{label:"datalayer.ecommerce",object:"datalayer."+t,params:{data:e,snrs_params:this.getParamsCookie("_snrs_params"),url:Ke.location.href}}},track:function(e,t){e=this.buildRequest(e,t);return T.trackProxy(e)},trackPurchase:function(e,t){if(e[t].actionField&&e[t].actionField.id){var n=e[t].actionField.id;if(!(-1 customVariablesFunction error",e),t={}}try{var n=SyneriseTC.getOgTag()}catch(e){p.error("DynamicContentManager:getVariables -> SyneriseTC.getOgTag error",e),n={}}var e,r=g.extend({},n="object"!=typeof n?{}:n,t="object"!=typeof t?{}:t);for(e in r)"string"!=typeof r[e]&&delete r[e];return r},getDynamicContentPreview:function(n,r){return new Je(function(e,t){T.getDynamicContentPreview(n,r).then(e).catch(function(e){V.showPreviewAlert(),t(e)})})},renderDynamicContentPreview:function(){var e=Ke.location.search,e=new URLSearchParams(e).get("snr_preview"),t=JSON.parse(h.atou(e));d.getCurrentClient().then(function(e){e=t.customerUuid||e.uuid;c.getDynamicContentPreview(t.id,e).then(function(e){new r(g.extend(e,t),!0).render()})})}};function r(e,t){this._nodes=[],this._container=null,this.options=g.extend({templateId:null,html:"",css:"",js:"",selector:null,selectorPrefix:null},e),t&&this.validate()}r.TARGET_SELECTOR_PREFIX_OPTIONS_LIST=[r.TARGET_SELECTOR_PREFIX_BEFORE="BEFORE",r.TARGET_SELECTOR_PREFIX_AFTER="AFTER",r.TARGET_SELECTOR_PREFIX_INNER="INNER"],r.prototype.getNodes=function(){return this._nodes},r.prototype.getTargetSelectorPrefix=function(){return this.options.selectorPrefix},r.prototype.getContent=function(){return this.options},r.prototype.isContent=function(){return this.isContentHtml()||this.isContentCss()||this.isContentJs()},r.prototype.isContentHtml=function(){return!!this.getContent().html},r.prototype.isContentCss=function(){return!!this.getContent().css},r.prototype.isContentJs=function(){return!!this.getContent().js},r.prototype.getTargetSelector=function(){return this.options.selector},r.prototype.getContentHtml=function(){return this.getContent().html},r.prototype.getContentCss=function(){return this.getContent().css},r.prototype.getContentJs=function(){return this.getContent().js},r.prototype.getContentHtmlToRender=function(){return this.getContentHtml()},r.prototype.getContentCssToRender=function(){return'"},r.prototype.getContentJsToRender=function(){return'