xe_core.vm&&console.log("[Performa] - Initing... (Release date: 28Nov2025)");var the_end=!1; if(the_end="undefined"!=typeof performaConfig&&"error"==performaConfig.status,!1===the_end){var pfm_env=window.location.protocol+(!1!==xe_core.vm&&4==xe_core.level?"//stage":"//api"),pfm_version="v1";let isLivesearchFadeActive=!1,rawProductsForOrdenation=[],productsForOrdenation=[],powerSearchInfinityOffset=2,totalHitsCounter=0;pfm_dataTunnel.createLayer();var performaRequest=function(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.id="performaLoadHelper"+Date.now(), t.src=e,document.getElementsByTagName("head")[0].appendChild(t)};class PerformaHistoryHandler{constructor(){console.log("Initing... [PERFORMA - VISITOR HISTORY]")}checkIfCookieHasId(e,t){try{var r=e.find(e=>e.id==t);return!(!r||"object"!=typeof r)}catch(e){return xe_core.vm&&console.error(e),!1}}updateProductTimestamp(e,t){try{var r=e;return r.forEach(e=>{e.id==t&&(e.timestamp=(new Date).getTime())}),r}catch(e){return xe_core.vm&&console.error(e),!1}}}var PerformaHelper=function(){this.adjustiOSInputZoom= !1,window.performaConfig.stopLog=!1,xe_log("Stage Mode---------------------\x3e: "+Date());var that=this;this.startPerforma=function(){window.performaVerifyContents=function(e){"undefined"!=typeof performaConfig&&void 0!==performaConfig.status&&("error"==performaConfig.status?(xe_log("Performa: Your configuration is not completed, you need complete the configurations before start the implementation in the store."),e=""):(performaHelper.insertContents(e),window.performaConfig.contents=e))};var e="undefined"!= typeof pfm_pubkey?pfm_pubkey:xe_isset(xe_config.pubkey)?xe_config.pubkey:xe_config.GUID,t=void 0!==typeof pfm_version?pfm_version:"v1",r=void 0!==performaConfig?.details?.cache_timestamp?performaConfig?.details?.cache_timestamp:xe_getCacheTS(),a=xe_getCacheTS();performaRequest(pfm_env+".performa.ai/"+t+'/?type\x3dfront\x26params\x3d{"route":"verify_contents","callback":"performaVerifyContents"}\x26pubkey\x3d'+e+"\x26ts\x3d"+r+"\x26cts\x3d"+a)},this.performaRender=function(e){Array.isArray(e)?that.insertContents(performaConfig.contents, e):xe_log("[Performa][Render] - Parameter need to be an array")},this.setVariables=function(e,t){try{for(var r in t)e=$pfm().replaceAll("@@"+r+"@@",t[r],e);e=e.replace(/@@(.*?)@@/g,"")}catch(e){xe_log("[Performa][Render] - Set variable: "+e.message)}return e},this.insertContents=function(data,targets){try{targets=targets.length>0&&targets}catch(e){targets=!1}if(void 0===performaConfig.details.powerslider||performaConfig.details.version||void 0===performaConfig.details.powerslider.click_validate|| void 0===performaConfig.details.powerslider.click_js){if(void 0!==performaConfig.details.version&&void 0!==performaConfig.details.click_tracking)if(performaConfig.details.csp){if(xe_isset(performaConfig.details.click_tracking,"string")&&""!=performaConfig.details.click_tracking)try{eval("(function () {"+performaConfig.details.click_tracking+"})()")}catch(e){xe_log("[ERROR] Sending click tracking: "+e)}}else{var jsNodeClickTracking=document.createElement("script");jsNodeClickTracking.type="text/javascript", jsNodeClickTracking.innerHTML=performaConfig.details.click_tracking,document.getElementsByTagName("body")[0].appendChild(jsNodeClickTracking)}}else{var elementsClickTrackingExist=$pfm().validate(performaConfig.details.powerslider.click_validate);if(elementsClickTrackingExist)if(performaConfig.details.csp){if(xe_isset(performaConfig.details.powerslider.click_js,"string")&&""!=performaConfig.details.powerslider.click_js)try{eval("(function () {"+performaConfig.details.powerslider.click_js+"})()")}catch(e){xe_log("[ERROR] Sending click tracking: "+ e)}}else{var jsNodeClickTracking=document.createElement("script");jsNodeClickTracking.type="text/javascript",jsNodeClickTracking.innerHTML=performaConfig.details.powerslider.click_js,document.getElementsByTagName("body")[0].appendChild(jsNodeClickTracking)}}if(void 0!==performaConfig.details&&void 0!==performaConfig.details.validate_confirmation){var elementsConfirmationExist=$pfm().validate(performaConfig.details.validate_confirmation);if(elementsConfirmationExist&&!xe_isset(performaConfig.js))if(performaConfig.js= {confirmation:!0},performaConfig.details.csp){if(xe_isset(performaConfig.details.confirmation,"string")&&""!=performaConfig.details.confirmation)try{eval("(function () {"+performaConfig.details.confirmation+"})()")}catch(e){xe_log(e)}}else{var jsNodeConfirmation=document.createElement("script");jsNodeConfirmation.type="text/javascript",jsNodeConfirmation.innerHTML=performaConfig.details.confirmation,document.getElementsByTagName("body")[0].appendChild(jsNodeConfirmation)}}for(var sData=data?.details|| {},i=0;i-1&&!performaConfig.details.modules.powersearch)continue;if(("powerdisplay"===sData[i].source||""==sData[i].source||"null"==sData[i].source)&&-1===sData[i].intelligence.indexOf("search")&&!performaConfig.details.modules.powerdisplay)continue;if("powersearch"===sData[i].source&&!performaConfig.details.modules.powersearch)continue; var userDevice=$pfm().isMobile()?"mobile":"desktop",device=sData[i].device,pagination=null!=sData[i].vars&&("true"==sData[i].vars.pagination||1==sData[i].vars.pagination)||"",number_pages=null!=sData[i].vars?sData[i].vars.number_pages:6;number_pages=void 0!==number_pages?number_pages:6;var status=sData[i].status,active=sData[i].active;if(device!=userDevice&&"both"!=device||!(1==status&&xe_core.vm||1==active))xe_log(`[Performa][Error] - Target was not found - ID: ${sData[i].content}`);else{if(sData[i].item= that.setVariables(sData[i].item,sData[i].vars),sData[i].container=that.setVariables(sData[i].container,sData[i].vars),sData[i].css=that.setVariables(sData[i].css,sData[i].vars),sData[i].css+=".xe_viewmode{font-size:9px!important;}",sData[i].intelligence.indexOf("search/predictive")>-1&&sData[i].voiceSearch){let e=sData[i].js.replaceAll("if($pfm('.performaLiveSearchField').val().length\x3e1\x26\x26document.querySelectorAll('.performaContainerLoading').length\x3d\x3d0){document.querySelector('.performaContainerButton').style.display\x3d'none';$pfm('performa.performaContainerInput').append('\x3cdiv class\x3d\"performaContainerLoading\"\x3e\x3c/div\x3e')}", "");sData[i].js=that.setVariables(e,sData[i].vars)}else sData[i].js=that.setVariables(sData[i].js,sData[i].vars);var allElements=sData[i].target;try{var cntElements=allElements.length}catch(e){var cntElements=0}for(var foundElement=!1,iE=0;iE=0)if(sData[i].slider)var execute_after_render=sData[i].execute_after_render.length>0?sData[i].execute_after_render:"performaHelper.runSlider";else var execute_after_render=sData[i].execute_after_render.length>0?sData[i].execute_after_render:"performaHelper.runTable";sData[i].full_page_mode?sData[i].css+="\n [performa-class\x3d\"performa-block-scroll\"]{overflow:hidden!important;touch-action:none!important;-ms-touch-action:none!important;}.performa-livesearch .performa-arrows-scrolldown,.performa-livesearch .performa-arrows-scrollup{border-radius:100%;background-image:url(https://imagizer.imageshack.com/img922/1866/lAD6Op.png);height:44px;width:44px;background-size:contain;right:-10px;z-index:10;display:none;position:absolute;cursor:pointer}.performa-livesearch .performa-arrows-scrollup{transform:rotate(180deg);top:10px}.performa-livesearch .performa-arrows-scrolldown{bottom:56px}#performaLiveSearch{top:unset !important;}.performaLiveSearchHeader{display:flex;position:fixed;justify-content:space-between;align-items:center;padding:15px;height:70px;width:99%;z-index:9999999;background:#fff;}.performaLiveSearchResult{font-weight:400;color:#000;display:inline-flex;height:80px;position:relative;align-items:center}.performaLiveSearchResult p{display:block}.performaLiveSearchResult p strong{font-weight:600}.performaCloseFullPageButton{position:absolute;top:0;bottom:0;margin:auto 0;right:0;height:30px;width:30px;cursor:pointer;z-index:10001;content:\" \";background:url(https://cdn.performa.ai/powerup/img/close_black.png) 0 0/30px no-repeat}.performaLiveSearchSort{display:inline-flex;margin-left:auto;margin-right:55px;align-items:center}.performaLiveSearchSort span{font-size:14px;font-weight:500;padding-right:20px}.performaLiveSearchSort select{height:50px;min-width:207px;font-size:16px;font-weight:600;-webkit-appearance:none;background-repeat:no-repeat;background-image:url(\"data:image/svg+xml,%3Csvg fill\x3d'%23' xmlns\x3d'http://www.w3.org/2000/svg' xmlns:xlink\x3d'http://www.w3.org/1999/xlink' viewBox\x3d'0 0 284.929 284.929'%3E%3Cpath d\x3d'M282.082,76.511l-14.274-14.273c-1.902-1.906-4.093-2.856-6.57-2.856c-2.471,0-4.661,0.95-6.563,2.856L142.466,174.441 L30.262,62.241c-1.903-1.906-4.093-2.856-6.567-2.856c-2.475,0-4.665,0.95-6.567,2.856L2.856,76.515C0.95,78.417,0,80.607,0,83.082 c0,2.473,0.953,4.663,2.856,6.565l133.043,133.046c1.902,1.903,4.093,2.854,6.567,2.854s4.661-0.951,6.562-2.854L282.082,89.647 c1.902-1.903,2.847-4.093,2.847-6.565C284.929,80.607,283.984,78.417,282.082,76.511z' /%3E%3C/svg%3E%0A\")!important;background-size:9.2px;background-position:calc(100% - 10px) 50%!important;padding-right:22px!important;cursor:pointer;padding:0 20px;line-height:1.4;color:#000;border:1px solid #c8c8c8b8;border-radius:6px}.performa-livesearch{display:block;height:100%;padding:15px;padding-top:100px;}.performa-livesearch-ul{display:flex!important;flex-wrap:wrap}@media screen and (max-width:610px){.performaPopoverSort{display:none;position:fixed;top:230px;right:40px;padding:20px;background-color:#fff;border:1px solid #ccc;max-width:300px;box-shadow:0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1);border-radius:8px;z-index:999999999}.performaPopoverSortArrow{position:absolute;top:-10px;right:0;width:0;height:0;border-style:solid;border-width:0 10px 10px;border-color:#fff0 #fff0 #fff}.performaPopoverSort .performaPopoverSortHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.performaCloseFullPageButton,.performaPopoverSort .performaPopoverSortClose{position:absolute;top:0;bottom:0;margin:auto 0;right:5px;height:30px;width:30px;cursor:pointer;z-index:10001;content:\" \";background:url(https://cdn.performa.ai/powerup/img/close_black.png) 0 0/30px no-repeat}.performaPopoverSort span{font-size:14px;font-weight:500;padding-right:20px}.performaPopoverSort select{height:50px;min-width:207px;font-size:16px;font-weight:600;-webkit-appearance:none;background-repeat:no-repeat;background-image:url(\"data:image/svg+xml,%3Csvg fill\x3d'%23' xmlns\x3d'http://www.w3.org/2000/svg' xmlns:xlink\x3d'http://www.w3.org/1999/xlink' viewBox\x3d'0 0 284.929 284.929'%3E%3Cpath d\x3d'M282.082,76.511l-14.274-14.273c-1.902-1.906-4.093-2.856-6.57-2.856c-2.471,0-4.661,0.95-6.563,2.856L142.466,174.441 L30.262,62.241c-1.903-1.906-4.093-2.856-6.567-2.856c-2.475,0-4.665,0.95-6.567,2.856L2.856,76.515C0.95,78.417,0,80.607,0,83.082 c0,2.473,0.953,4.663,2.856,6.565l133.043,133.046c1.902,1.903,4.093,2.854,6.567,2.854s4.661-0.951,6.562-2.854L282.082,89.647 c1.902-1.903,2.847-4.093,2.847-6.565C284.929,80.607,283.984,78.417,282.082,76.511z' /%3E%3C/svg%3E%0A\")!important;background-size:9.2px;background-position:calc(100% - 10px) 50%!important;padding-right:22px!important;cursor:pointer;padding:0 20px;line-height:1.4;color:#000;border:1px solid #c8c8c8b8;border-radius:6px}.performaLiveSearchHeader{display:flex;position:fixed;justify-content:space-between;align-items:center;padding:10px}.performaLiveSearchResult{font-weight:400;color:#000;height:80px;align-items:center;display:flex}.performaLiveSearchResult p{display:block;padding:0 5px;max-width:75%}.performaLiveSearchResult p strong{font-weight:600}.performaLiveSearchHeader .performaSortButton{position:absolute;top:0;bottom:0;margin:auto 0;right:45px;height:30px;width:30px;cursor:pointer;z-index:10001;content:\" \";background:url(https://cdn.performa.ai/images/search_filter.png) 0 0/30px no-repeat;border:0!important}.performa-livesearch-mobile{display:block;height:100%;overflow-y:scroll;padding:10px}.performa-livesearch{display:block;height:100%;overflow-y:scroll;padding:10px}}@import url('https://fonts.googleapis.com/css2?family\x3dMontserrat:ital,wght@0,100..900;1,100..900\x26display\x3dswap');.performaContainerButtonVoice{display:flex;justify-content:center;align-items:center;height:30px;width:30px;position:absolute;top:0;bottom:0;left:5px;margin:auto 0;z-index:9999999;border:unset;background:transparent;}.performaContainerButtonVoice img{height:20px;width:20px;}.performaContainerButtonVoiceStart{transition:all 200ms ease-in-out;transform:scale(1.3);border-radius:100%;background:#c40202;overflow:hidden;box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);}.emptyResult{top:30px!important;bottom:unset!important;left:unset!important;right:10px!important;}\n ": sData[i].css+="\n @import url('https://fonts.googleapis.com/css2?family\x3dMontserrat:ital,wght@0,100..900;1,100..900\x26display\x3dswap');.performaContainerButtonVoice{display:flex;justify-content:center;align-items:center;height:30px;width:30px;position:absolute;top:0;bottom:0;left:5px;margin:auto 0;z-index:9999999;border:unset;background:transparent;}.performaContainerButtonVoice img{height:20px;width:20px;}.performaContainerButtonVoiceStart{transition:all 200ms ease-in-out;transform:scale(1.3);border-radius:100%;background:#c40202;overflow:hidden;box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);}\n "; var styleNode=document.createElement("style");if(styleNode.type="text/css",window.attachEvent&&!window.opera)styleNode.styleSheet.cssText=sData[i].css;else{var styleText=document.createTextNode(sData[i].css);styleNode.appendChild(styleText)}if(document.getElementsByTagName("head")[0].appendChild(styleNode),performaConfig.details.csp){if(xe_isset(sData[i].js,"string")&&""!=sData[i].js)try{eval("(function () {"+sData[i].js+"})()")}catch(e){}}else{var jsNode=document.createElement("script");jsNode.type= "text/javascript",jsNode.innerHTML=sData[i].js,document.getElementsByTagName("head")[0].appendChild(jsNode)}var vitrine=new performaApi;vitrine.vars=sData[i].vars,vitrine.identify=id,vitrine.pubKey=performaConfig.details.pubkey,vitrine.visitorId=xe_core.callService("visitorInfo").id,vitrine.templateProduct=sData[i].item,vitrine.templateContainer=sData[i].container,vitrine.templateCss=sData[i].css,vitrine.templateJs=sData[i].js;var filterVar=sData[i].filter||"";if("array"==typeof filterVar&&(filterVar= filterVar.join("")),filterVar.indexOf("@@")>-1){var splitFilter=filterVar.split("@@");for(let key in splitFilter)for(let key2 in performaConfig.details.variables)if(splitFilter[key]==key2){var evalFilter=eval("(function () {"+performaConfig.details.variables[key2]+"})()");splitFilter[key]=evalFilter.toLowerCase()}filterVar=splitFilter.join(""),xe_log("Filter: "+filterVar)}if(vitrine.filter=filterVar,vitrine.fields=sData[i].fields||[],vitrine.limit=sData[i].limit,vitrine.min_limit=sData[i].min_limit|| 0,vitrine.row=sData[i].row||0,vitrine.order_field=sData[i].order_field,vitrine.order_type=sData[i].order_type,vitrine.reference=sData[i].intelligence,vitrine.source=sData[i].source||"null",void 0!==sData[i].intelligence_alternative&&(vitrine.referenceAlternative=sData[i].intelligence_alternative),vitrine.labels=sData[i].labels,vitrine.executeAfterRender=execute_after_render,vitrine.random=sData[i].random,vitrine.callBackApi=sData[i].call_back,void 0!==sData[i].vars.call_back&&sData[i].vars.call_back.length> 0&&(vitrine.callBackRender=sData[i].vars.call_back),"search/predictive"==sData[i].intelligence){void 0!==sData[i].vars.class_livesearch&&sData[i].vars.class_livesearch.length>0?vitrine.targetRender="#performaLiveSearch."+sData[i].vars.class_livesearch:vitrine.targetRender="#performaLiveSearch.liveSearchCommom",vitrine.replaceContent=!0,vitrine.showEmptyMessage=sData[i].full_page_mode?"\x3cspan class\x3d'performaCloseFullPageButton emptyResult'\x3e\x3c/span\x3e\x3cperforma class\x3d'performaEmptyMessage' style\x3d'display:block;'\x3e"+ sData[i].empty_message+"\x3c/performa\x3e":"\x3cperforma class\x3d'performaEmptyMessage' style\x3d'display:block;'\x3e"+sData[i].empty_message+"\x3c/performa\x3e",vitrine.showBrand=sData[i].show_brand,vitrine.showBrandName=performaConfig.details.name,vitrine.showBrandUrl=sData[i].show_brand_type,vitrine.targetInsert=sData[i].target,vitrine.voiceSearch=sData[i].voice_search,vitrine.registerTerm=sData[i].register_term;var vitrineLiveSearch=new performaHelper.liveSearch;if(vitrineLiveSearch.targetButton= sData[i].target_button,vitrineLiveSearch.triggerElements=sData[i].trigger_elements,vitrineLiveSearch.target=sData[i].target_input,vitrineLiveSearch.liveSearch=vitrine,vitrineLiveSearch.mask=sData[i].mask,vitrineLiveSearch.placeHolder=sData[i].place_holder,vitrineLiveSearch.fade=sData[i].fade,void 0!==sData[i].vars.class_livesearch&&sData[i].vars.class_livesearch.length>0?vitrineLiveSearch.container="#performaLiveSearch."+sData[i].vars.class_livesearch:vitrineLiveSearch.container="#performaLiveSearch.liveSearchCommom", void 0!==sData[i].vars.call_back_input&&sData[i].vars.call_back_input.length>0&&(vitrineLiveSearch.inputKeyEventHandler=sData[i].vars.call_back_input),sData[i].full_page_mode){const e='function closeEmptyFullPageSearch(){document.querySelector(".performaCloseFullPageButton").addEventListener("click",function(){document.querySelector("#performaLiveSearch").style.display\x3d"none";if(document.querySelector(".performaContainerInput")!\x3d\x3dnull)document.querySelector(".performaContainerInput").style.display\x3d"none";if(document.querySelector(".performaLiveSearchField")!\x3d\x3dnull)document.querySelector(".performaLiveSearchField").value\x3d"";if(document.querySelector("#performaFade")!\x3d\x3dnull)document.querySelector("#performaFade").remove();let potentialScrollableElements\x3ddocument.querySelectorAll("html, body, section, div, ul, ol, nav, aside, article, main, header, footer");potentialScrollableElements.forEach((element)\x3d\x3e{if(element.getAttribute("performa-class")!\x3d\x3dnull){element.removeAttribute("performa-class")}})})}function livesearchFullPageCallback(data){let searchTerm\x3d"";if(document.querySelector(".performaBtnLiveSearch")!\x3d\x3dnull)$pfm(".performaBtnLiveSearch").remove();if(that.liveSearch.mask)searchTerm\x3ddocument.querySelector(".performaLiveSearchField").value;else{for(let i\x3d0;i\x3cthat.liveSearch.target.length;i++){if(document.querySelector(that.liveSearch.target[i])!\x3d\x3dnull\x26\x26document.querySelector(that.liveSearch.target[i]).value!\x3d\x3d""){searchTerm\x3ddocument.querySelector(that.liveSearch.target[i]).value;break}}}sessionStorage.setItem("performaSearchTerm",searchTerm);const performaLiveSearchHeader\x3d$pfm().isMobile()?`\x3cdiv class\x3d"performaLiveSearchHeader"\x3e\x3cdiv class\x3d"performaLiveSearchResult"\x3e\x3cp\x3eResultados baseados em sua busca por \x3cstrong\x3e${searchTerm}\x3c/strong\x3e\x3c/p\x3e\x3c/div\x3e\x3cbutton class\x3d"performaSortButton"\x3e\x3c/button\x3e\x3cspan class\x3d"performaCloseFullPageButton"\x3e\x3c/div\x3e\x3cdiv id\x3d"performaPopoverSort" class\x3d"performaPopoverSort"\x3e\x3cspan\x3eOrdenar por:\x3c/span\x3e\x3cselect id\x3d"performaLiveSearchSortSelect"\x3e\x3coption disabled selected\x3eSelecione um filtro\x3c/option\x3e\x3coption value\x3d"relevance"\x3eRelev\x26acirc;ncia\x3c/option\x3e\x3coption value\x3d"hotproducts"\x3eEm alta\x3c/option\x3e\x3coption value\x3d"lowest_price"\x3eMenor pre\x26ccedil;o\x3c/option\x3e\x3coption value\x3d"highest_price"\x3eMaior pre\x26ccedil;o\x3c/option\x3e\x3coption value\x3d"a-z"\x3eOrdem alfab\x26eacute;tica A-Z\x3c/option\x3e\x3coption value\x3d"z-a"\x3eOrdem alfab\x26eacute;tica Z-A\x3c/option\x3e\x3coption value\x3d"bestsellers"\x3eMais Vendidos\x3c/option\x3e\x3coption value\x3d"mostclicked"\x3eMais Vistos\x3c/option\x3e\x3coption value\x3d"mostdiscount"\x3eMaior Desconto\x3c/option\x3e\x3c/select\x3e\x3c/div\x3e`:`\x3cdiv class\x3d"performaLiveSearchHeader"\x3e\x3cdiv class\x3d"performaLiveSearchResult"\x3e\x3cp\x3eResultados baseado em sua busca por \x3cstrong\x3e${searchTerm}\x3c/strong\x3e\x3c/p\x3e\x3c/div\x3e\x3cdiv class\x3d"performaLiveSearchSort"\x3e\x3cspan\x3eOrdenar por:\x3c/span\x3e\x3cselect id\x3d"performaLiveSearchSortSelect"\x3e\x3coption value\x3d"relevance"\x3eRelev\x26acirc;ncia\x3c/option\x3e\x3coption value\x3d"hotproducts"\x3eEm alta\x3c/option\x3e\x3coption value\x3d"lowest_price"\x3eMenor pre\x26ccedil;o\x3c/option\x3e\x3coption value\x3d"highest_price"\x3eMaior pre\x26ccedil;o\x3c/option\x3e\x3coption value\x3d"a-z"\x3eOrdem alfab\x26eacute;tica A-Z\x3c/option\x3e\x3coption value\x3d"z-a"\x3eOrdem alfab\x26eacute;tica Z-A\x3c/option\x3e\x3coption value\x3d"bestsellers"\x3eMais Vendidos\x3c/option\x3e\x3coption value\x3d"mostclicked"\x3eMais Vistos\x3c/option\x3e\x3coption value\x3d"mostdiscount"\x3eMaior Desconto\x3c/option\x3e\x3c/select\x3e\x3c/div\x3e\x3cspan class\x3d"performaCloseFullPageButton"\x3e\x3c/div\x3e`;if(document.querySelector("#performaLiveSearch")!\x3d\x3dnull){$pfm("#performaLiveSearch").prepend(performaLiveSearchHeader);let lastScrollTop\x3d0;document.querySelector("#performaLiveSearch").addEventListener("scroll",(event)\x3d\x3e{let currentScroll\x3devent.target.scrollTop;const element\x3devent.target;const scrollTop\x3delement.scrollTop;const scrollHeight\x3delement.scrollHeight;const clientHeight\x3delement.clientHeight;const threshold\x3d0.5;if(!element.isFetching\x26\x26scrollTop+clientHeight\x3e\x3dscrollHeight*threshold\x26\x26currentScroll\x3elastScrollTop){element.isFetching\x3d!0;performaHelper.infinityScroll(element,that.templateProduct,that.vars,that.resultApi.search_id||"0",that.order_field,that.order_type,that.random,that.limit)}lastScrollTop\x3dcurrentScroll\x3c\x3d0?0:currentScroll})}if($pfm().isMobile()){document.querySelector(".performaSortButton").addEventListener("click",()\x3d\x3e{document.querySelector("#performaPopoverSort").style.display\x3ddocument.querySelector("#performaPopoverSort").style.display\x3d\x3d\x3d"block"?"none":"block"})}document.querySelector("#performaLiveSearchSortSelect").addEventListener("change",(e)\x3d\x3e{localStorage.setItem("performaSortKey",e.target.value);performaHelper.orderProducts(that.templateProduct,that.vars);if(document.querySelector(".performa-livesearch")!\x3d\x3dnull)document.querySelector(".performa-livesearch").scrollTo(0,0);if(document.querySelector(".performa-livesearch-mobile")!\x3d\x3dnull)document.querySelector(".performa-livesearch-mobile").scrollTo(0,0);if(document.querySelector("#performaPopoverSort")!\x3d\x3dnull)document.querySelector("#performaPopoverSort").style.display\x3d"none"});document.querySelector(".performaLiveSearchHeader .performaCloseFullPageButton").addEventListener("click",function(){document.querySelector("#performaLiveSearch").style.display\x3d"none";if(document.querySelector(".performaContainerInput")!\x3d\x3dnull)document.querySelector(".performaContainerInput").style.display\x3d"none";if(document.querySelector(".performaLiveSearchField")!\x3d\x3dnull)document.querySelector(".performaLiveSearchField").value\x3d"";if(document.querySelector("#performaFade")!\x3d\x3dnull)document.querySelector("#performaFade").remove();let potentialScrollableElements\x3ddocument.querySelectorAll("html, body, section, div, ul, ol, nav, aside, article, main, header, footer");potentialScrollableElements.forEach((element)\x3d\x3e{if(element.getAttribute("performa-class")!\x3d\x3dnull){element.removeAttribute("performa-class")}})});if(performaConfig.details.name.indexOf("Uza")\x3e-1){localStorage.setItem("performaSortKey","availability");performaHelper.orderProducts(that.templateProduct,that.vars);if(document.querySelector("#performaOverlayLiveSearch_00")!\x3d\x3dnull){document.querySelector("#performaOverlayLiveSearch_00").addEventListener("click",()\x3d\x3e{localStorage.setItem("performaSortKey","availability");performaHelper.orderProducts(that.templateProduct,that.vars)})}if(document.querySelector(that.liveSearch.target[0])!\x3d\x3dnull){document.querySelector(that.liveSearch.target[0]).addEventListener("click",()\x3d\x3e{localStorage.setItem("performaSortKey","availability");performaHelper.orderProducts(that.templateProduct,that.vars)})}}if(document.querySelector(".performaContainerLoading")!\x3d\x3dnull){$pfm(".performaContainerLoading").remove();if($pfm(".performaContainerButton").length\x3e0)document.querySelector(".performaContainerButton").style.display\x3d"block"}} livesearchFullPageCallback'; vitrine.fullPageMode=!0,vitrine.fullPageTarget=sData[i].full_page_target,vitrine.fullPageHeaderFixed=!(!sData[i].full_page_header_fixed||""===sData[i].full_page_header_fixed),vitrine.fullPageCallBack=e,vitrine.fullPageBlockScroll=!!sData[i].full_page_block_scroll,vitrine.liveSearch={target:vitrineLiveSearch.target,mask:vitrineLiveSearch.mask}}else if($pfm().isMobile()){let e=vitrine.callBackApi;vitrine.callBackApi=e.replace("if(document.querySelectorAll('.performaContainerLoading').length\x3e0){$pfm('.performaContainerLoading').remove();document.querySelector('.performaContainerButton').style.display\x3d'block'}", "")}if(vitrineLiveSearch.begin(),void 0!==performaConfig.details.variables&&void 0!==performaConfig.details.variables[sData[i].global_var])var evalVar="(function () {"+performaConfig.details.variables[sData[i].global_var]+"})()",resultEval=eval(evalVar)}else{if(void 0!==sData[i].global_var&&""!=sData[i].global_var&&void 0!==performaConfig.details.variables&&void 0!==performaConfig.details.variables[sData[i].global_var]){var evalVar="(function () {"+performaConfig.details.variables[sData[i].global_var]+ "})()",resultEval=eval(evalVar);switch(sData[i].intelligence){case "products/alternative":case "products/complementary":case "products/buytogether":case "products/categories":"array"!=typeof resultEval&&(resultEval="["+resultEval+"]"),vitrine.productsIds=resultEval;break;case "product/search":case "search/search":void 0!==pagination&&1==pagination&&(vitrine.offSet=0,vitrine.numberPages=number_pages,vitrine.facets=!1,vitrine.facetsFields=["categories"],vitrine.facetsTargetRender="#performaFacets1", vitrine.facetsFilterTargetRender="#performaFacetsFilters1",vitrine.facetsChange=!0),vitrine.query=String(resultEval);break;case "category/bestsellers":vitrine.categoryId=String(resultEval)}xe_log("Result Var: "+resultEval)}vitrine.targetRender="#"+id,vitrine.begin()}}}}},this.infinityScroll=async function(e,t,r,a,i,n,o,s){const l=xe_core.vm&&"stage"===xe_core.vm?"stage.performa.ai":"api.performa.ai";let c=[],p="";const u=null!==document.querySelector("ul.performa-livesearch-ul")?"ul.performa-livesearch-ul": "ul.performa-livesearch-mobile-ul",d=sessionStorage.getItem("performaSearchTerm")||"",h="0"!==a?`\n https://${l}/v1/?type=recommendation&pubkey=${performaConfig.details.pubkey}¶ms={"route":"search/predictive/v2","labels":["livesearch"],"limit":${s},"min_limit":4,"query":"${d}","raw":true,"row":${powerSearchInfinityOffset},"search_id":"${a}","random":${o},"order_field":"${i}","order_type":"${n}"}\n `:`\n https://${l}/v1/?type=recommendation&pubkey=${performaConfig.details.pubkey}¶ms={"route":"search/predictive/v2","labels":["livesearch"],"limit":${s},"min_limit":4,"query":"${d}","raw":true,"row":${powerSearchInfinityOffset},"random":${o},"order_field":"${i}","order_type":"${n}"}\n `; if(totalHitsCounter<2&&(c=await fetch(h).then(e=>e.json())),e.isFetching=!1,0===c.total_hits&&totalHitsCounter++,totalHitsCounter<2&&c&&c?.product_data.length>0){for(var f=0;f{const r=e.name.toUpperCase(),a=t.name.toUpperCase();return ra?1:0});break;case "z-a":i=productsForOrdenation.sort((e,t)=>{const r=e.name.toUpperCase(),a=t.name.toUpperCase();return r>a?-1:r{const r=e.list_price,a=t.list_price;return ra?1:0});break;case "highest_price":i=productsForOrdenation.sort((e,t)=> {const r=e.list_price,a=t.list_price;return r>a?-1:r{const r=e.bestsellers,a=t.bestsellers;return r>a?-1:r{const r=e.mostclicked,a=t.mostclicked;return r>a?-1:r{const r=e.discount,a=t.discount;return r>a?-1:re.hotproducts> t.hotproducts?-1:e.hotproductst.bestsellers?-1:e.bestsellerst.mostclicked?-1:e.mostclicked{const r=e.is_out,a=t.is_out;return ra?1:0});break;default:i=rawProductsForOrdenation}if(i.length<=0)return!1;for(var n=0;n{$pfm("#performa-livesearch-fullpage-loader").remove()},500)},this.sendClick=function(e){localStorage.getItem("pfmOldProductTS")!=btoa(e)&&(localStorage.setItem("pfmProductTS",String(+new Date)),localStorage.setItem("pfmOldProductTS",btoa(e))); var t=localStorage.getItem("pfmProductTS")+"_"+xe_core.callService("visitorInfo").id,r=void 0!==performaConfig.details.cache_timestamp?performaConfig.details.cache_timestamp:0,a=pfm_env+".performa.ai/"+pfm_version+"/?type\x3dtracking\x26modifier\x3d"+t+'\x26params\x3d{"route":"click","product_id":"'+e+'","labels":"organic","recommended":false,"callback":"callBackclickTrackingPerforma"}\x26pubkey\x3d'+performaConfig.details.pubkey+"\x26cache\x3dbypass\x26ts\x3d"+r;xe_getLS("pfmTrckid")!=e&&(navigator.sendBeacon(a), xe_setLS("pfmTrckid",e,1),xe_log("[Performa][Info] - Sending click tracking (id: "+e+")..."));var i=xe_getLS("performaVisitorHistory"),n=[];"null"!==i&&""!==i?((n=JSON.parse(i)).length>30&&n.pop(),"undefined"!=typeof performaHistoryHandler&&performaHistoryHandler.checkIfCookieHasId(n,e)?n=performaHistoryHandler.updateProductTimestamp(n,e):n.push({id:e,timestamp:Date.now()}),n.sort((e,t)=>t.timestamp-e.timestamp),xe_setLS("performaVisitorHistory",JSON.stringify(n),999,!0)):xe_setLS("performaVisitorHistory", `[{ "id": "${e}", "timestamp": ${Date.now()} }]`,999,!0)},this.runTable=function(e,t){var r=e.target,a=xe_isset(t.slides)?t.slides:4,i=(!xe_isset(t.useresponsive,"boolean")||t.useresponsive,xe_isset(t.responsive)?t.responsive:'{"1200": {"items": '+a+'}, "900": {"items": 3 },"300": {"items": 2 }, "1": { "items": 1 } }');i=JSON.parse(i);var n=Object.keys(i).sort(function(e,t){return i[t]-i[e]});n=n.sort(function(e,t){return t-e}),"search/predictive"===e.intelligence&&void 0!==performaConfig.details.utm_livesearch&& ""!=performaConfig.details.utm_livesearch?$pfm(r+" a").forEach(function(e,t,r){e.href.indexOf("?")>-1?e.href+="\x26"+performaConfig.details.utm_livesearch:e.href+="?"+performaConfig.details.utm_livesearch}):void 0!==performaConfig.details.utm_vitrine&&""!=performaConfig.details.utm_vitrine&&$pfm(r+" a").forEach(function(e,t,r){e.href.indexOf("?")>-1?e.href+="\x26"+performaConfig.details.utm_vitrine:e.href+="?"+performaConfig.details.utm_vitrine}),$pfm(r+" img[data-src]").forEach(function(e,t,r){e.setAttribute("src", e.getAttribute("data-src"))}),$pfm(r+" img[data-img-src]").forEach(function(e,t,r){e.setAttribute("src",e.getAttribute("data-img-src"))});var o=document.querySelectorAll(r+" \x3e *"),s=!1,l=0;for(let t=0;t=n[t]){s=!0;l=100/i[n[t]].items;e?.isPowerInfinity||(l=Math.round(l));break}if(0==s){l=100/a;e?.isPowerInfinity||(l=Math.round(l))}for(var c=0;c=v&&(f.remove(),m.remove())}try{h=JSON.parse(h)}catch(e){xe_log("[Performa][Error] - Error parsing responsive JSON...")}let g,y;for(let e in h){if(window.innerWidthy&&(a=g),e.count<=a)return that.runTable(e,t),!1;"search/predictive"===e.intelligence&&void 0!==performaConfig.details.utm_livesearch&& ""!=performaConfig.details.utm_livesearch?document.querySelectorAll(r+" a").forEach(function(e,t,r){e.href.indexOf("?")>-1?e.href+="\x26"+performaConfig.details.utm_livesearch:e.href+="?"+performaConfig.details.utm_livesearch}):void 0!==performaConfig.details.utm_vitrine&&""!=performaConfig.details.utm_vitrine&&document.querySelectorAll(r+" a").forEach(function(e,t,r){e.href.indexOf("?")>-1?e.href+="\x26"+performaConfig.details.utm_vitrine:e.href+="?"+performaConfig.details.utm_vitrine});$pfm(r+" img[data-src]").forEach(function(e, t,r){e.classList.add("tns-lazy-img")}),$pfm(r+" img[data-img-src]").forEach(function(e,t,r){e.classList.add("tns-lazy-img")});if($pfm().isMobile())try{responsive_tmp=Object.keys(h).sort(function(e,t){return e[e]-e[t]});var S=!1;Object.keys(responsive_tmp).map(function(e,t){var r=responsive_tmp[e];window.innerWidth<=parseInt(r)&&!S&&(parseInt(h[r].items){document.querySelectorAll("html, body, section, div, ul, ol, nav, aside, article, main, header, footer").forEach(e=> {(!function(e){return!(-1===e.className.indexOf("performa")&&-1===e.className.indexOf("banner")&&-1===e.className.indexOf("vtex-flex-layout-0-x-flexColChild")&&-1===e.className.indexOf("header")&&-1===e.className.indexOf("row")&&-1===e.className.indexOf("col")&&-1===e.className.indexOf("logo")&&-1===e.className.indexOf("img")&&-1===e.className.indexOf("nav")&&-1===e.className.indexOf("cart")&&-1===e.className.indexOf("dropdown")&&-1===e.className.indexOf("d-flex")&&-1===e.className.indexOf("journal-search"))}(e)|| "C251A2DF-0C91-3EF2-67DF-1A082B0D684D"===performaConfig.details.pubkey&&("HTML"===e.tagName||"BODY"===e.tagName)||"5732FD1E-9C40-8284-A8CB-B5CA2C0FEEC9"===performaConfig.details.pubkey&&e.className.indexOf("bg bg-mob")>-1||"4C54452A-16D9-B56F-8721-99780177A113"===performaConfig.details.pubkey&&("HTML"===e.tagName||"BODY"===e.tagName))&&e.setAttribute("performa-class","performa-block-scroll")})};var thatLive=this;this.iOSadjustViewport=function(){this.meta_viewport=null,this.meta_content="";var e= this;if(this.restoreMetaViewport=function(){if(null!==e.meta_viewport)e.meta_viewport.setAttribute("content",e.meta_content);else{var t=document.querySelector("meta[name\x3dviewport]");null!==t&&t.remove()}},this.meta_viewport=document.querySelector("meta[name\x3dviewport]"),null!==this.meta_viewport){this.meta_content=this.meta_viewport.getAttribute("content");var t=this.meta_content,r=/user\-scalable=[no]+/g;r.test(t)||(t=(r=/maximum\-scale=[0-9\.]+/g).test(t)?t.replace(r,"maximum-scale\x3d1.0"): [t,"maximum-scale\x3d1.0"].join(", "),this.meta_viewport.setAttribute("content",t))}else{var a=document.createElement("meta");a.content="width\x3ddevice-width, initial-scale\x3d1, maximum-scale\x3d1.0",document.getElementsByTagName("head")[0].appendChild(a)}},this.speechSearchRecog=function(){var e=window.SpeechRecognition||window.webkitSpeechRecognition;if(e){var t=new e;t.continuous=!1,t.interimResults=!0,t.lang="pt-BR",t.maxAlternatives=1;let r=document.querySelector(".performaContainerButtonVoice"); const a=document.createElement("div");a.className="performaMicSearchOrientation",a.style="display:none;position:relative;top:10px;left:5px;border-radius:8px;font-size:14px;font-weight:bold;line-height:1.2;padding:10px;width:75%;height:auto;color:#000;background:#fafafa",a.innerHTML="\n\t\t\t\t\t\t\x3cp\x3e\n\t\t\t\t\t\t\tClique no bot\x26atilde;o para gravar sua busca por voz.\n\t\t\t\t\t\t\x3c/p\x3e\n\t\t\t\t\t",null!==document.querySelector(".performaContainerInput")&&document.querySelector(".performaContainerInput").appendChild(a), r.addEventListener("click",e=>{e.preventDefault(),r.disabled=!0,r.classList.add("performaContainerButtonVoiceStart");try{t.start()}catch(e){xe_core.vm&&console.log("[POWERSEARCH][ERROR][SPEECH]: ",e),r.disabled=!1}document.querySelector(thatLive.defaultInput).focus(),null!==document.querySelector(".performaMicSearchOrientation")&&document.querySelector(".performaMicSearchOrientation").remove(),/iPhone/.test(navigator.userAgent)&&!window.MSStream&&setTimeout(()=>{r.classList.remove("performaContainerButtonVoiceStart"), document.querySelector(thatLive.defaultInput).focus(),t.start(),t.stop()},2500)}),t.onspeechend=()=>{r.classList.remove("performaContainerButtonVoiceStart"),t.stop(),document.querySelector(thatLive.defaultInput).focus(),r.disabled=!1},t.onresult=function(e){let t="",r="";for(let a=0;a{r.disabled=!1,xe_core.vm&&console.log("[POWERSEARCH][ERROR][SPEECH]: ",e.error)}}else xe_log("[Performa][Error] - No Speech Recognition engine found...")},this.begin=function(){function aux_one(e){if(document.querySelector(thatLive.container).textContent.length>0&&(document.querySelector(thatLive.container).style.display="block"),thatLive.mask&&($pfm(".performaContainerInput").show(!0),document.querySelector("performa.performaContainerInput input").focus(),$pfm().isMobile())){if(null=== document.querySelector(".performaCleanupLiveSearchField")){let e='\n\t\t\t\t\t\t\t\t\t\x3cbutton class\x3d"performaCleanupLiveSearchField" style\x3d"display: block;width: 50px;height: 100%;position: absolute;top: 0;bottom: 0;right: 15px;margin: auto 0;z-index: 9999999999;background:transparent;border:unset;"\n\t\t\t\t\t\t\t\t\t\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan style\x3d"display:block;font-size:12px;line-height:12px;font-family:\'Montserrat\', Helvetica;color:#666;opacity:.8;background:transparent;"\x3eLimpar\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\t'; $pfm(".performaContainerInput").append(e),setTimeout(()=>{document.querySelector(".performaCleanupLiveSearchField").addEventListener("click",()=>{document.querySelector("performa.performaContainerInput input").value="",document.querySelector("performa.performaContainerInput input").focus(),thatLive.liveSearch.registerTerm&&sessionStorage.removeItem("performaSearchTerm")})},300)}null!==document.querySelector(".performaMicSearchOrientation")&&(sessionStorage.getItem("performaMicOrientationOpened")|| (document.querySelector(".performaMicSearchOrientation").style.display="block",setTimeout(()=>{document.querySelector(".performaMicSearchOrientation").remove()},2E3),sessionStorage.setItem("performaMicOrientationOpened",1)))}if(thatLive.liveSearch?.fullPageMode){const e=sessionStorage.getItem("performaSearchTerm");if(document.querySelector("#performaLiveSearch").scrollTo(0,0),document.querySelectorAll("#performaLiveSearch ul.performa-livesearch-ul li").length>0&&thatLive.liveSearch?.fullPageBlockScroll&& thatLive.setPerformaScrollBlock(),e&&""!==e&&thatLive.liveSearch.registerTerm){if(thatLive.mask){document.querySelector("performa.performaContainerInput input").value=decodeURI(e);const t=new KeyboardEvent("keyup",{keyCode:32});document.querySelector("performa.performaContainerInput input").dispatchEvent(t)}else for(let t=0;t0&&"function"==typeof window[thatLive.inputKeyEventHandler]&&eval(thatLive.inputKeyEventHandler+"('"+thatLive.container+"','"+queryLS+"');"),""===queryLS&&(sessionStorage.getItem("performaSearchTerm")&&sessionStorage.removeItem("performaSearchTerm"),thatLive.liveSearch.fullPageMode&&null!==document.querySelector(".performaCloseFullPageButton")&&document.querySelector(".performaCloseFullPageButton").click()), powerSearchInfinityOffset=2,charCode&&queryLS!=thatLive.queryST&&(thatLive.queryST=queryLS,"number"==typeof _interval&&clearTimeout(_interval),_interval=setInterval(function(){var continueSearch=!0;if(queryLS.length>=thatLive.minChars){if("none"==document.querySelector(thatLive.container).style.display&&(document.querySelector(thatLive.container).style.display="block"),thatLive.blockKeyWords.length>0){for(var joinWords=$pfm().removeAcents(" "+thatLive.blockKeyWords+" "),wordCompare=$pfm().removeAcents(queryLS.toLowerCase()).trim(), splitWords=wordCompare.split(" "),aQuery=[],i10=0;i10-1&&aQuery.push(splitWords[i10])}aQuery.length>0?(thatLive.blockKeyWordsCallBack.length>0&&eval(thatLive.blockKeyWordsCallBack+"('"+thatLive.container+"','"+JSON.stringify(aQuery)+"','"+queryLS+"');"),continueSearch=!1):continueSearch=!0}continueSearch&&(totalHitsCounter=0,thatLive.liveSearch?.fullPageBlockScroll&&thatLive.setPerformaScrollBlock(), thatLive.mask&&sessionStorage.setItem("performaSearchTerm",document.querySelector("performa.performaContainerInput input").value),thatLive.liveSearch.query=queryLS.replace(/[&]/g,"u0026"),thatLive.liveSearch.begin(),thatLive.liveSearch.fullPageMode&&(document.querySelector("#performaLiveSearch").scrollTop=0),null!==document.querySelector("#powerSliderIframe2")&&(document.querySelector("#powerSliderIframe2").className="bottomSlider-hidden"))}clearTimeout(_interval)},400))}),thatLive.mask&&($pfm(".performaContainerClose").on("click", function(e){document.querySelector(".performaContainerInput").style.display="none",$pfm(thatLive.container).e.style.display="none",document.querySelector(".performaFadeClass").click()}),$pfm(".performaContainerInput").on("keyup",function(e){for(var t=thatLive.target.length,r=0;r0&&($pfm(e.parents).e.style.zIndex=e.z+1,"absolute"==$pfm(e.parents).e.style.position?$pfm(e.parents).e.style.position="absolute":$pfm(e.parents).e.style.position="relative")}isLivesearchFadeActive&&setTimeout(function(){null!==document.querySelector(".performaFadeClass")&&(document.querySelector(".performaFadeClass").style.opacity=e.opacity)},10),$pfm(".performaFadeClass").on("click",function(){if(document.querySelectorAll("html, body, section, div, ul, ol, nav, aside, article, main, header, footer").forEach(e=> {null!==e.getAttribute("performa-class")&&e.removeAttribute("performa-class")}),document.querySelectorAll(".performaContainerInput").length>0&&(document.querySelector(".performaContainerInput").style.display="none"),!e.mask){var t=a.length;for(i=0;i0&&($pfm(e.parents).e.style=n)}$pfm("#performaLiveSearch").forEach(function(e,t){e.style.display="none"}),document.querySelector(".performaFadeClass").style.opacity="0",setTimeout(function(){null!== document.querySelector(".performaFadeClass")&&document.querySelector(".performaFadeClass").remove()},200)})})}},this.callVariable=function(e){if(void 0!==e)return e[0].value},this.findVariable=function(){this.source="",this.find=[],this.value=[],this.timeX=100,this.time=100,this.level=1,this.stop=!1,this.callBack="",this.showAll=!0;var that=this;this.verify=function(){var cReturn={};try{var newSource=eval(this.source+";")}catch(e){var newSource=null}if(null!=newSource&&"object"==typeof newSource){var cEval= "",cKey="",cKeyIndex="",cCountGeneral=0;cEval+="(function() {";for(var i=0;i<=this.level;i++)cEval+="for (var key"+i+" in newSource"+cKey+"){",cKey+="[key"+i+"]",cEval+="tmpPos \x3d -1;",this.value.length<=0?(cEval+="for (i2\x3d0;i2\x3cthat.find.length;i2++) {",cEval+="if ((key"+i+".indexOf(that.find[i2])\x3e-1) || (that.find[i2].indexOf(key"+i+")\x3e-1)) tmpPos \x3d i2;}",cEval+="if (tmpPos \x3e -1) {",cEval+="var tmpVar \x3d key"+i+";",this.showAll?(cEval+='cReturn[cCountGeneral] \x3d {"var":tmpVar,"value":newSource'+ cKey+"};",cEval+="cCountGeneral++;"):cEval+="cReturn[tmpVar] \x3d newSource"+cKey+";",cEval+="if (that.stop \x3d\x3d true) return false;",cEval+="}"):(cEval+="for (i2\x3d0;i2\x3cthat.find.length;i2++) {",cEval+="if (typeof newSource"+cKey+' \x3d\x3d "string") {',cEval+="if ((newSource"+cKey+".indexOf(that.value)\x3e-1) || (that.value.indexOf(newSource"+cKey+")\x3e-1)) tmpPos \x3d i2",cEval+="}",cEval+="if (tmpPos \x3e -1) {",cEval+="var tmpVar \x3d key"+i+";",this.showAll?(cEval+='cReturn[cCountGeneral] \x3d {"var":tmpVar,"value":newSource'+ cKey+"};",cEval+="cCountGeneral++;"):cEval+="cReturn[tmpVar] \x3d newSource"+cKey+";",cEval+="if (that.stop \x3d\x3d true) return false;",cEval+="}}");for(var i=0;i<=this.level;i++)cEval+="}";cEval+="})();";try{eval(cEval)}catch(e){xe_log("[Performa][Error] - Error searching for variable(s)... "+e.message)}try{"string"==typeof this.callBack?eval(this.callBack+"(Object.keys(cReturn).length\x3d\x3d0?false:cReturn)"):this.callBack(0!=Object.keys(cReturn).length&&cReturn)}catch(e){xe_log("[Performa][Error] - Error processing callback - "+ e.message)}var retEval=this.callBack+"(cReturn);";return eval(retEval),!0}if(this.timeX<=0){var retEval=this.callBack+"(false);";return eval(retEval),!1}this.timeX--,this.begin()},this.begin=function(){setTimeout(this.verify.bind(this),this.time)}}};function xe_log(e,t){if(void 0===window.performaConfig.stopLog||!1===window.performaConfig.stopLog)try{t=void 0!==t?t:"default";var r=window.location.href.toLowerCase();if(r.indexOf("level\x3d2")>-1||2==xe_core.level||4==xe_core.level||5==xe_core.level)switch(t){case "log":default:console.log(e); break;case "warn":console.warn(e);break;case "alert":alert(e);break;case "mobile":checkIfIsMobile()&&alert(e)}(r.indexOf("level\x3d3")>-1||3==xe_core.level)&&alert(e)}catch(e){return console.log("[XE_LOG] "+e.message),!1}}var performaApi=function(){this.vars="",this.responsive="",this.identify="",this.pubKey="",this.reference="",this.referenceAlternative="",this.clearFilterInAlternative=!1,this.labels=[],this.limit=0,this.minimumQuantity=0,this.order_field="-1",this.order_type="",this.fields=[],this.visitorId= "",this.query="",this.keywords="",this.exclude=[],this.productsIds=[],this.productId="",this.salesProducts=[],this.filter="",this.customer="",this.offSet=-1,this.scrollPagination=!1,this.numberPages=5,this.categoryId="",this.callBackRender="",this.callBackApi="",this.executeAfterRender="",this.executeAfterApi="",this.onlyResults=!1,this.templateProduct="",this.templateContainer="",this.callBackSupport="",this.showEmptyMessage="",this.showBrand=!1,this.showBrandName="",this.showBrandUrl="",this.redirectBrand= !0,this.saleProducts="",this.saleEmail="",this.saleId="",this.showSpin=!1,this.random=!1,this.totalOrder=0,this.virtualProducts="",this.targetRender="",this.targetInsert="",this.facets=!1,this.facetsFields=[],this.facetsTargetRender="",this.facetsChange=!1,this.facetsNumberFilters=5,this.facetsFilterTargetRender="",this.internalFilterField="",this.internalFilterValue="",this.internalFilterSignal="",this.internalFilterOneCall=!1,this.changeHtml="",this.changeHtmlTo="",this.totalXPosition=1,this.resultApi= {},this.virtualResult=!1,this.limitForSomeLogicals=10,this.limitOld=0,this.countInteligence=0,this.templateComplete={},this.newTarget="",this.mainTarget="",this.initialExclude=[],this.internalLimit=0,this.internalRepeatContrl=0,this.limitOffSet=0,this.scrollPaginationCtrl=0;var that=this;this.setAPIResult=function(e){return!1===(e=!(!e||"object"!=typeof e)&&e)?(xe_log("[Performa][Error] - Virtual API result error!"),!1):(that.virtualResult=!0,that.resultApi=e,!0)},this.begin=function(){that.initialExclude.length<= 0&&(that.exclude.length<=0?that.initialExclude=!1:that.initialExclude=that.exclude),!1!==that.initialExclude?that.exclude=that.initialExclude:that.exclude=[],that.consultApi()},this.error=function(e,t){var r="";that.pubKey.length<=0&&(r+="Chave p\u00fablica da Performa n\u00e3o foi inserida"),0==e&&(r="Performa"),1==e&&(r="Tempo de espera para a resposta da Performa excedeu o limit."),2==e&&(r="Elemento n\u00e3o existe, resultado n\u00e3o pode ser renderizado"),xe_log("[Performa][Error] "+r+" - "+ t)},this.rand=function(e){for(var t="";t.length0&&that.showSpin){try{var targetRun=document.querySelector(that.targetRender)}catch(e){that.showSpin=!1;var targetRun="undefined";that.error(2,"targetRun: "+that.targetRender)}"undefined"!=targetRun?(document.querySelector(targetRun).style.width="100%",document.querySelector(targetRun).innerHTML='\x3cdiv id\x3d"performa-slider-spin-show" style\x3d"position:relative;margin:20px auto; text-align:center;"\x3e\x3cimg src\x3d"//www.performa.com.br/assets/global/img/spinner.gif" /\x3e\x3cdiv\x3e'): that.showSpin=!1}let data={};if(that.fields.length>0&&(void 0===that.fields.id&&that.fields.push("id"),data.fields=that.fields),that.offSet>-1&&(data.offset="0",that.limitOffSet=parseInt(that.limit),that.limit=2E3),void 0!==resultData&&1==resultData?that.reference.length>0?data.route=that.referenceAlternative:data.route="reference not defined in front...":that.reference.length>0?data.route=that.reference:data.route="reference not defined in front...",String(that.productId)>0&&(data.id=String(that.productId)), that.labels.length>0&&(data.labels=that.labels),that.limit>0?data.limit=parseInt(that.limit):data.limit=0,that.min_limit>0&&(data.min_limit=parseInt(that.min_limit)),that.row>0?data.row=parseInt(that.row):that.fullPageMode&&(data.row=1),that.reference&&"personal/visitor/history"===that.reference&&xe_getLS("performaVisitorHistory")){var pfmVisitedProducts=JSON.parse(xe_getLS("performaVisitorHistory"));pfmVisitedProducts&&(data.product_ids=pfmVisitedProducts.map(e=>String(e.id)))}String(that.query).length> 0&&(data.query=String(that.query)),String(that.keywords).length>0&&(data.keywords=String(that.keywords)),that.exclude.length>0&&(data.exclude=that.exclude),that.productsIds.length>0&&(data.id=that.productsIds),String(that.random).length>0&&(data.random=that.random),String(that.filter).length>0&&(data.filter=String(that.filter)),String(that.customer).length>0&&(data.customer=String(that.customer)),String(that.categoryId).length>0&&(data.category_id=String(that.categoryId)),that.facetsFields.length> 0&&(data.facets=that.facetsFields),that.saleId.length>0&&(data.order_id=that.saleId),void 0!==that.order_field&&(data.order_field=that.order_field),void 0!==that.order_type&&(data.order_type=that.order_type),String(that.saleEmail).length>0&&(data.email=String(that.saleEmail)),that.saleProducts.length>0&&(data.products=that.saleProducts),that.totalOrder>0&&(data.total=that.totalOrder),that.virtualProducts.length>0&&(data.virtual_products=that.virtualProducts),tmp_productId=data.id;var pfmProductTS= "",visitorId=xe_core.callService("visitorInfo").id;if("undefined"!=typeof tmp_productId&&tmp_productId.length>0){var oldId=localStorage.getItem("pfmOldProductTS");oldId!=btoa(tmp_productId)&&(localStorage.setItem("pfmProductTS",String(+new Date)),localStorage.setItem("pfmOldProductTS",btoa(tmp_productId)))}var personalRec=that.reference==data.route&&("personal/visitor/history"==that.reference||"personal/recommendation"==that.reference||"personal/products"==that.reference);if(personalRec&&(xe_core.vm&& 4==xe_core.level&&console.log("[Performa][Info] - Personal Recommendation"),pfmProductTS=localStorage.getItem("pfmProductTS"),null!=pfmProductTS?(data.product_ts=pfmProductTS,pfmProductTS="\x26modifier\x3d"+pfmProductTS+"_"+visitorId):pfmProductTS=""),data.callback="callBackAjaxPerforma_"+that.identify,window["callBackAjaxPerforma_"+that.identify]=function(data){var newProductData=[],newResult=[];if(that.internalFilterField.length>0){try{data.product_data.forEach(function(value,index){data.product_data[index].forEach(function(value2, index2){if(index2==that.internalFilterField){var keep=!1;"string"==typeof value&&(value=value.toString());var createFilter="if (value2 "+that.internalFilterSignal+" "+that.internalFilterValue+") {keep \x3d true;} else {keep\x3dfalse;}";if(eval(createFilter),keep){var keepId=data.product_data[index].id;return newProductData.push(data.product_data[index]),jdata.result.forEach(function(e,t){e==keepId&&newResult.push(data.result[t])}),keep=!1,!1}}})})}catch(e){}data.result=newResult,data.product_data= newProductData}if("object"==typeof data.product_data&&that.reference.indexOf("search/")<0&&that.random&&data.product_data.length>1){data.product_data.sort(function(){return.5-Math.random()}),data.result=[];for(var i=0;i0&&(that.resultApi.args.productsIds=that.productsIds),that.categoryId.length> 0&&(that.resultApi.args.categoryId=that.categoryId),that.query.length>0&&(that.resultApi.args.query=that.query),that.filter.length>0&&(that.resultApi.args.filter=that.filter),that.productId.length>0&&(that.resultApi.args.productId=that.productId),"error"==data.status)return that.callBackApi,that.error(0,data.message),!1;if(that.showSpin&&$pfm("#performa-slider-spin-show").remove(),0==that.onlyResults&&that.renderTemplate(),that.callBackApi.length>0)try{var runEval=that.callBackApi+"(that.resultApi);"; eval(runEval)}catch(e){xe_log("[Performa][Error] - Callback API "+e.message)}that.executeAfterApi.length>0&&eval(that.executeAfterApi)},!1===that.virtualResult){var script=document.createElement("script");script.type="text/javascript",script.async=!0,script.id="performaAjaxVariableThat"+that.identify;var type="recommendation";switch(that.reference.toLowerCase()){case "search/predictive":case "search/search":data.route=xe_isset(performaConfig.details.modules_version,"object")&&"2.0"===performaConfig.details.modules_version.powersearch? that.reference+"/v2":that.reference,data.route.indexOf("/v2")>-1&&localStorage.setItem("pfmProductTS",String(+new Date)),data.random=!1;break;case "log/sale":case "log/samplesale":type="tracking",data.visitor_info=window.btoa(JSON.stringify(xe_core.callService("visitorInfo")))}data=JSON.stringify(data);var dataParams=encodeURI(data);dataParams=$pfm().replaceAll("#","",dataParams);var pfmCacheBypass="";"purchase"!=that.reference&&"log/sale"!=that.reference&&"log/samplesale"!=that.reference||(pfmCacheBypass= "\x26cache\x3dbypass");var cache_timestamp=void 0!==performaConfig.details.cache_timestamp?performaConfig.details.cache_timestamp:0,tracking_url=pfm_env+".performa.ai/"+pfm_version+"/?type\x3d"+type+"\x26pubkey\x3d"+that.pubKey+pfmProductTS+pfmCacheBypass+"\x26params\x3d"+dataParams+"\x26ts\x3d"+cache_timestamp;script.src=tracking_url,personalRec&&""==pfmProductTS?window["callBackAjaxPerforma_"+that.identify]({status:"ok",count:0,extra:{intelligence:that.reference},hits:0,product_data:[],result:[], route:that.reference,identify:that.identify,type:type}):""!=pfmCacheBypass?(navigator.sendBeacon(tracking_url),xe_core.vm&&console.info("[Performa] - Purchase sent...")):document.getElementsByTagName("head")[0].appendChild(script)}else window[data.callback].call(null,that.resultApi)},this.renderTemplate=function(){var ret="",continueRender=!0,orderedProducts=[];try{var cnt=that.resultApi.product_data.length}catch(e){xe_log("[Performa][Error] - No API results was found!");var cnt=0;continueRender= !1}if(continueRender){if(that.offSet>=0)if(that.limit=parseInt(that.limitOffSet),that.scrollPagination)var cnt=parseInt(that.limit);else{void 0===window.ctrlPerformaLoadOffet?window.ctrlPerformaLoadOffet=Object.assign({},that.resultApi):that.resultApi=Object.assign({},window.ctrlPerformaLoadOffet);var totalLimit=parseInt(that.resultApi.count);if(parseInt(that.offSet)+parseInt(that.limit)>totalLimit)var cnt67=totalLimit;else var cnt67=parseInt(that.offSet)+parseInt(that.limit);for(var newResult=[], newProductData=[],i67=that.offSet;i670)if(that.templateProduct.length>0){""!==that.order_field&&(that.resultApi.product_data=that.resultApi.product_data.sort((e,t)=>{const r= e[that.order_field],a=t[that.order_field];if("-1"===that.order_type){if(r>a)return-1;if(ra)return 1}return 0}));var performat=that.templateProduct.split("\x3c")[1].split("\x3e")[0];performat.indexOf("data-id")<0&&(that.templateProduct=that.templateProduct.replace(performat,performat+' data-id\x3d"{{ id }}" ')),performat.indexOf("data-composite")<0&&(that.templateProduct=that.templateProduct.replace(performat,performat+' data-composite\x3d"{{ composite }}" ')); var sep1=that.templateContainer.split(":target");sep1.length<=1&&xe_log("[Performa][Error] - Target does not exists...");for(var sep2=sep1[0].split("\x3c"),sep3=sep1[1].split("\x3e"),str1="\x3c"+sep2[sep2.length-1]+":target"+sep3[0]+"\x3e",tcPart1=that.templateContainer.split(str1)[0]+str1,tcPart2=that.templateContainer.split(str1)[1],i=0;i0&&(debugAux+=" - ProductsIDS: "+that.productsIds)}catch(e){}try{String(that.categoryId).length>0&&(debugAux+=" - CategoryID: "+String(that.categoryId))}catch(e){}try{String(that.query).length>0&&(debugAux+=" - query: "+String(that.query))}catch(e){}try{that.exclude.length>0&&(debugAux+=" - exclude"+that.exclude)}catch(e){}var debugReference= '\x3cdebug style\x3d"font-size:12px;position:relative;background:#fff;color:red;border:2px solid red;padding:5px;margin:0 0 5px 0;"\x3e'+debugAux+"\x3c/debug\x3e";ret=debugReference+tcPart1+ret+tcPart2}else ret=tcPart1+ret+tcPart2;for(var newTarget="";newTarget.length<16;newTarget+=Math.random().toString(36).substr(2));newTarget="pfm_"+newTarget.substr(0,16),that.newTarget=newTarget,ret=ret.replace(":target",newTarget);for(var mainTarget="";mainTarget.length<16;mainTarget+=Math.random().toString(36).substr(2)); mainTarget="pfm_"+mainTarget.substr(0,16),that.mainTarget=mainTarget;var obj={target:"#"+newTarget,container:"#"+mainTarget,count:that.resultApi.count,intelligence:that.reference,query:that.query.length>0?that.query:"",isPowerInfinity:that.templateProduct.indexOf("infinity-")>1};if(that.templateComplete.html=ret,that.templateComplete.resultApi=that.resultApi,that.templateComplete.productIds=that.resultApi.result,that.templateComplete.json=that.resultApi.product_data,that.templateComplete.productsElement= "#"+newTarget,that.templateComplete.mainElement="#"+mainTarget,that.templateComplete.callBackSupport=that.callBackSupport,that.templateComplete.identify=that.identify,that.templateComplete.args={},that.fullPageMode&&(that.templateComplete.total_hits=that.resultApi.total_hits||0,rawProductsForOrdenation=that.resultApi.product_data.map(e=>({id:e?.id,name:e?.name,extra_image:e?.extra_image||"",brand:e?.brand,discount:e?.discount||0,hotproducts:e?.hotproducts||0,images:e?.images||{},index:e?.index||0, price:e?.price,list_price:e?.list_price,boleto_price:e?.boleto_price,mo_payment:e?.mo_payment||{},mostclicked:e?.mostclicked||0,platform_id:e?.platform_id,url:e?.url,is_out:e?.is_out||!1})),productsForOrdenation=that.resultApi.product_data.map(e=>({id:e?.id,name:e?.name,extra_image:e?.extra_image||"",brand:e?.brand,discount:e?.discount||0,hotproducts:e?.hotproducts||0,images:e?.images||{},index:e?.index||0,price:e?.price,list_price:e?.list_price,boleto_price:e?.boleto_price,mo_payment:e?.mo_payment|| {},mostclicked:e?.mostclicked||0,platform_id:e?.platform_id,url:e?.url,is_out:e?.is_out||!1}))),that.productsIds.length>0&&(that.templateComplete.args.productsIds=that.productsIds),that.categoryId.length>0&&(that.templateComplete.args.categoryId=that.categoryId),that.query.length>0&&(that.templateComplete.args.query=that.query),that.filter.length>0&&(that.templateComplete.args.filter=that.filter),that.productId.length>0&&(that.templateComplete.args.productId=that.productId),that.templateComplete.source= that.source,that.templateComplete.resultApi.product_data.length>0||that.showEmptyMessage.length>0){that.showEmptyMessage.length>0&&that.templateComplete.productIds.length<=0&&(ret=tcPart1+'\x3cperforma class\x3d"performaEmptyMessage"\x3e'+that.showEmptyMessage+"\x3c/performa\x3e"+tcPart2,xe_log("[Performa][Error] - No results (empty)"),that.fullPageMode&&setTimeout(()=>{document.querySelector(".performaCloseFullPageButton").addEventListener("click",function(){document.querySelector("#performaLiveSearch").style.display= "none",null!==document.querySelector(".performaContainerInput")&&(document.querySelector(".performaContainerInput").style.display="none"),null!==document.querySelector(".performaLiveSearchField")&&(document.querySelector(".performaLiveSearchField").value=""),null!==document.querySelector("#performaFade")&&document.querySelector("#performaFade").remove(),document.querySelectorAll("html, body, section, div, ul, ol, nav, aside, article, main, header, footer").forEach(e=>{null!==e.getAttribute("performa-class")&& e.removeAttribute("performa-class")})})},1E3));var sepContainer=ret.match(/(<)\w+/)[0];if(ret=ret.replace(/(<)\w+/,sepContainer+' id\x3d"'+mainTarget+'" '),that.changeHtml.length>0&&(ret=$pfm().replaceAll(that.changeHtml,that.changeHtmlTo,ret)),that.templateComplete.html=ret,that.targetRender.length>0){try{var targetRun=document.querySelector(that.targetRender)}catch(e){var targetRun="undefined";that.error(2,"targetRun: "+that.targetRender)}try{if(that.showBrand){"dark"==that.showBrandUrl?that.showBrandUrl= "//cdn.performa.ai/brand/powered-performa-blue.png":"light"==that.showBrandUrl&&(that.showBrandUrl="//cdn.performa.ai/brand/powered-performa-white.png");var htmlBrand='\x3cdiv style\x3d"width: 100%;height: 20px; position:absolute;" class\x3d"performa-footer"\x3e';that.redirectBrand&&(htmlBrand+='\x3ca href\x3d"https://performa.ai/?utm_source\x3dBranding\x26utm_medium\x3d'+that.showBrandName+'" target\x3d"_blank" title\x3d"performa.ai"\x3e'),htmlBrand+='\x3cimg style\x3d"position: absolute;width: 131px;height: 16px;top:4px;right: 10px;" class\x3d"performa-footer-img" src\x3d"'+ that.showBrandUrl+'"\x3e\x3c/a\x3e\x3c/div\x3e',ret+=htmlBrand}targetRun.innerHTML=ret}catch(e){xe_log("[Performa][Error] - Render failed (targetRender: "+that.targetRender+" - "+e.message+")")}if(that.offSet>=0&&!that.scrollPagination){var pgTotal=Math.ceil(that.resultApi.count/parseInt(that.limit));if(pgTotal>1){var division=that.offSet0){var btnPrior=parseInt(that.offSet)-parseInt(that.limit);btnPrior<0&&(btnPrior=0);var btnPage= btnPrior/parseInt(that.limit)>0?btnPrior/parseInt(that.limit)+1:1;paginationHtml+='\x3ca href\x3d"javascript:void(0)" onclick\x3d"window.location.hash\x3d\''+btnPage+"';performaRunOffSet("+btnPrior+');"\x3e',paginationHtml+='\x3cdiv class\x3d"performa-pagination-button-left"\x3e\x3c/div\x3e\x3c/a\x3e'}for(var ipg=pgStart;ipg<=pgEnd;ipg++)if(pgEnd0?btnNext/parseInt(that.limit)+1:2;paginationHtml+='\x3ca href\x3d"javascript:void(0)" onclick\x3d"window.location.hash\x3d\''+btnPage+"';performaRunOffSet("+btnNext+');"\x3e', paginationHtml+='\x3cdiv class\x3d"performa-pagination-button-right"\x3e\x3c/div\x3e\x3c/a\x3e'}paginationHtml+="\x3c/div\x3e\x3c/div\x3e",$pfm("#"+mainTarget).prepend(paginationHHtml+paginationHtml),$pfm("#"+mainTarget).append(paginationFHtml+paginationHtml)}}}if(that.facets){var facetsHtml='\x3cdiv class\x3d"performa-facets-root"\x3e';try{var facetsCnt=Object.keys(that.resultApi.facets).length}catch(e){var facetsCnt=0;xe_log("[Performa][Error] - Facets length "+e.message)}if(facetsCnt>0){var facets= that.resultApi.facets;for(var key in facets){var facetsCCnt=facets[key].length;if("categories"==key.toLowerCase())var keyTranslated="Categorias";else var keyTranslated=key;facetsHtml+='\x3cdiv class\x3d"performa-facets-filters"\x3e\x3c/div\x3e',facetsHtml+='\x3cdiv class\x3d"performa-facets-details" id\x3d"performa-facets-details"\x3e',facetsHtml+='\x3cdiv class\x3d"performa-facets-title"\x3e'+keyTranslated+"\x3c/div\x3e";for(var facetsCi=0;facetsCi=0&&(that.offSet=0,window.ctrlPerformaLoadOffet=void 0);var a="",i=!0;if(e.length>0&&t.length>0){var n=r.getAttribute("data-name");if($pfm(that.facetsFilterTargetRender+" .performa-facets-filters-items").forEach(function(e){e.querySelector(".performa-facets-filters-items-name").textContent== n&&(i=!1)}),i){try{document.querySelectorAll(that.facetsFilterTargetRender+" .performa-facets-filters-items").length>=parseInt(that.facetsNumberFilters)&&$pfm(that.facetsFilterTargetRender+" .performa-facets-filters-items:first").remove()}catch(e){xe_log("[Performa][Error] - Facets filter "+e.message)}var o='\x3cdiv class\x3d"performa-facets-filters-items"\x3e';o+='\x3cdiv class\x3d"performa-facets-filters-items-name" data-value\x3d"'+t+'" data-field\x3d"'+e+'"\x3e'+n+"\x3c/div\x3e",$pfm(o+='\x3ca href\x3d"javascript:void(0);" onclick\x3d"javascript:performaRemoveSearchFilter(this);"\x3e\x3cdiv class\x3d"performa-facets-filters-items-remove"\x3e\x3c/div\x3e\x3c/a\x3e\x3c/div\x3e').show(!1).appendTo(that.facetsFilterTargetRender).fadeIn(500, thatFade.opacity)}}try{$pfm(that.facetsFilterTargetRender+" .performa-facets-filters-items-name").forEach(function(e){a+=e.getAttribute("data-field")+" in ["+e.getAttribute("data-value")+"] and "}),a=a.substr(0,a.length-4)}catch(e){}var s=new performaApi;s.identify="searchFacetsPagination1",s.pubKey=that.pubKey,s.visitorId=that.visitorId,s.templateProduct=that.templateProduct,s.templateContainer=that.templateContainer,s.query=that.query,s.fields=that.fields,s.reference=that.reference,s.labels=that.labels, s.targetRender=that.targetRender,s.limit=that.limit,s.executeAfterRender=that.executeAfterRender,s.callBackApi=that.callBackApi,s.callBackRender=that.callBackRender,that.facetsChange&&(s.facetsChange=that.facetsChange),s.facets=that.facets,s.facetsTargetRender=that.facetsTargetRender,s.facetsFields=that.facetsFields,s.facetsNumberFilters=that.facetsNumberFilters,s.facetsFilterTargetRender=that.facetsFilterTargetRender,s.query=that.query,s.exclude=that.exclude,s.productsIds=that.productsIds,s.productId= that.productId,a.length>0&&(s.filter=a),s.customer=that.customer,s.email=that.saleEmail,s.categoryId=that.categoryId,s.executeAfterApi=that.executeAfterApi,s.callBackSupport=that.callBackSupport,s.showEmptyMessage=that.showEmptyMessage,s.showBrand=that.showBrand,s.showBrandName=that.showBrandName,s.showBrandUrl=that.showBrandUrl,s.showSpin=!0,s.offSet=that.offSet,s.numberPages=that.numberPages,s.begin()}),that.templateComplete.resultApi.product_data.length>0){try{that.executeAfterRender.length>0&& eval(that.executeAfterRender+"(obj,that.vars);")}catch(e){xe_log("[Performa][Error] - Callback (ExecuteAfterRender: "+e.message+")")}if(that.targetRender.length>0)try{var containerSelector="#"+newTarget,containerEl=document.querySelector(containerSelector);if(!containerEl)return;containerEl.addEventListener("click",function(e){var t=e.target.closest(containerSelector+" li, "+containerSelector+" [data-id]");if(t&&containerEl.contains(t)){var r,a=(t.getAttribute("data-id")||"").trim(),i=(t.getAttribute("data-composite")|| "").trim();localStorage.setItem("pfmProductTS",String(+new Date)),i&&(a=a+","+i);try{r="dev"==xe_core.vm?window.location.protocol+"//dev":"beta"==xe_core.vm?window.location.protocol+"//beta":!1!==xe_core.vm&&4==xe_core.level?window.location.protocol+"//stage":window.location.protocol+"//api"}catch(e){r=window.location.protocol+"//api"}var n=void 0!==performaConfig.details.cache_timestamp?performaConfig.details.cache_timestamp:0,o=r+".performa.ai/"+pfm_version+'/?type\x3dtracking\x26params\x3d{"route":"click","product_id":"'+ a+'","labels":"'+that.labels+'","recommended":true,"callback":"callBackclickTrackingPerforma","visitor_id":"'+xe_core.callService("visitorInfo").id+'","query":"'+that.query+'"}\x26pubkey\x3d'+that.pubKey+"\x26cache\x3dbypass\x26ts\x3d"+n;if(xe_setLS("pfmTrckid",a,1),navigator.sendBeacon(o),"Nuvem Shop"===performaConfig.details.platform){var s=String(performaConfig.details.pubkey||"");if(/^[a-zA-Z0-9_-]{8,}$/.test(s)){var l=new AbortController;setTimeout(()=>l.abort(),1500),fetch(`https://webhook8.performa.ai/track-product/${s}`, {method:"GET",mode:"no-cors",keepalive:!0,signal:l.signal}).catch(()=>{}).finally(()=>clearTimeout(timeout))}}xe_core&&xe_core.vm&&xe_log("Click at ID: "+a,"info")}},!1)}catch(e){xe_core&&xe_core.vm&&xe_log(e,"error")}if(that.callBackRender.length>0)try{var runEval=that.callBackRender+"(that.templateComplete);";eval(runEval)}catch(e){xe_log("[Performa][Error] - Callback render: "+e.message)}if(that.fullPageCallBack)try{var runEval=that.fullPageCallBack+"(that.templateComplete);";eval(runEval)}catch(e){xe_log("[Performa][Error] - Fullpage Callback render: "+ e.message)}}}else{if(that.callBackRender.length>0){var runEval=that.callBackRender+"(that.templateComplete);";eval(runEval)}void 0!==that.referenceAlternative&&""!=that.referenceAlternative&&that.templateComplete.productIds.length<=that.minimumQuantity&&0==that.countInteligence?(!0===that.clearFilterInAlternative&&(that.filter=""),that.countInteligence=1,that.consultApi(!0)):that.countInteligence=0,xe_log("[Performa][Error] - ["+that.labels+"] No products to render")}return that.templateComplete}xe_log("[Performa][Error] - Render template failed/blocked (@resultApi was not found)")}}; window.callBackclickTrackingPerforma=function(e){try{document.querySelector("#clickTrackingPerforma").remove()}catch(e){}};var Sha1={hash:function(e,t){function r(e,t){return e<>>32-t}function a(e){var t,r="";for(t=7;t>=0;t--)r+=(e>>>4*t&15).toString(16);return r}var i,n,o,s,l,c,p,u,d,h=new Array(80),f=1732584193,m=4023233417,v=2562383102,g=271733878,y=3285377520,S=(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",r=0;r127&&a<2048?(t+=String.fromCharCode(a>>6|192),t+=String.fromCharCode(63&a|128)):(t+=String.fromCharCode(a>>12|224),t+=String.fromCharCode(a>>6&63|128),t+=String.fromCharCode(63&a|128))}return t}(e)).length,b=new Array;for(n=0;n>>29),b.push(S<<3&4294967295),i=0;i0&&void 0!==e&&"undefined"!=e&&null!=e&&e.indexOf(":")>-1){var t=e.split(":");if(t[1].indexOf("eq")>-1){var r=t[1].replace(/\D/g,"");if(null!==document.querySelectorAll(t[0])[r]&& "undefined"!=document.querySelectorAll(t[0])[r])return this.e=document.querySelectorAll(t[0])[r],this.element=e,this;if(""!=e)return!1}}return e?null!==document.querySelector(e)&&"undefined"!=document.querySelector(e)?(this.e=document.querySelector(e),this.element=e,this):""==e&&void 0:new $pfm("document")}$pfm.prototype={is_ie:function(){return navigator.userAgent.indexOf("MSIE ")>-1||navigator.userAgent.indexOf("Trident/")>-1},forEach:function(e,t){for(var r=document.querySelectorAll(this.element), a=0,i=r.length;a=0;r--)jPerforma(this).append(t[Math.random()*r|0]);return this},cloneElement:function(e,t,r){try{r=r||{},t="bolean"==typeof t&&t;var a=document.querySelector(e),i=a.clone(t);for(var n in r)r.hasOwnProperty(n)&&i.attr(n,r[n]);a.hide(),i.insertBefore(a), a.remove()}catch(e){xe_log("[Performa][Error] - Helper (@cloneElement: "+e.message+")")}},stripHTML:function(e){return!!xe_isset(e,"string")&&(e=(e=(e=(e=e.replace(/(\r\n|\n|\r)/gm,"")).replace(/<\/?[^>]+(>|$)/g,"")).replace(/\s+/g," ")).replace("\x26nbsp;"," "))},htmlToElements:function(e){var t=document.createElement("template");return t.innerHTML=e,t.content.childNodes},exist:function(){return void 0!==this.e&&null!=this.e},show:function(e){return!0!==e&&"true"!==e||(this.e.style.display="inherit"), !1!==e&&"false"!==e||(this.e.style.display="none"),this},visible:function(e){return!0!==e&&"true"!==e||(this.e.style.visibility="visible"),!1!==e&&"false"!==e||(this.e.style.visibility="hidden"),this},bgcolor:function(e){return this.e.style.background=e,this},validate:function(e){var t=!0;if(void 0!==e){var r=(a=e).length;if(!0===(void 0!==performaConfig.details.old_validate)){t=!0,r=(a=e).length;for(var a,i=0;i-1){var n=a[i].split(":");t=null=== document.evaluate("//body[contains(., '"+n[1]+"')]",document,null,XPathResult.ANY_TYPE,null).iterateNext()}else if(a[i].indexOf("contains:")>-1){n=a[i].split(":");null===document.evaluate("//body[contains(., '"+n[1]+"')]",document,null,XPathResult.ANY_TYPE,null).iterateNext()&&(t=!1)}else if(a[i].indexOf("pathname:")>-1){var o=(n=a[i].split(":"))[1].trim();t=window.location.pathname==o}else if(a[i].indexOf("exclude:")>-1)!0===$pfm((n=a[i].split(":"))[1]).exist()&&(t=!1);else if(a[i].indexOf("url_insert:")> -1){n=a[i].split(":");-1==window.location.href.indexOf(n[1])&&(t=!1)}else if(a[i].indexOf("url_notinsert:")>-1){n=a[i].split(":");window.location.href.indexOf(n[1])>-1&&(t=!1)}else!0!==$pfm(a[i]).exist()&&(t=!1)}catch(e){xe_log("[Performa][Error] - Validate error! (1)")}return t}for(i=0;i-1){n=a[i].split(":");t=null===document.evaluate("//body[contains(., '"+n[1]+"')]",document,null,XPathResult.ANY_TYPE,null).iterateNext()}else if(a[i].indexOf("contains:")> -1){n=a[i].split(":");null===document.evaluate("//body[contains(., '"+n[1]+"')]",document,null,XPathResult.ANY_TYPE,null).iterateNext()&&(t=!1)}else if(a[i].indexOf("pathname:")>-1){o=(n=a[i].split(":"))[1].trim();t=window.location.pathname==o}else if(a[i].indexOf("not_pathname:")>-1){o=(n=a[i].split(":"))[1].trim();t=window.location.pathname!=o}else if(a[i].indexOf("exclude:")>-1)t=!0!==$pfm((n=a[i].split(":"))[1]).exist();else if(a[i].indexOf("url_insert:")>-1){n=a[i].split(":");t=-1!=window.location.href.indexOf(n[1])}else if(a[i].indexOf("url_notinsert:")> -1){n=a[i].split(":");t=!(window.location.href.indexOf(n[1])>-1)}else!0!==$pfm(a[i]).exist()&&(t=!1)}catch(e){xe_log("[Performa][Error] - Validate error! (2)")}if(!1===t)break}}return t},validateOr:function(e){var t=!0;if(void 0!==e)for(var r=Array.isArray(e)?e:e.split(","),a=r.length,i=0;i-1){var n=r[i].split(":");t=null===document.evaluate("//body[contains(., '"+n[1]+"')]",document,null,XPathResult.ANY_TYPE,null).iterateNext()}else if(r[i].indexOf("contains:")> -1){n=r[i].split(":");t=null!==document.evaluate("//body[contains(., '"+n[1]+"')]",document,null,XPathResult.ANY_TYPE,null).iterateNext()}else if(r[i].indexOf("pathname:")>-1){var o=(n=r[i].split(":"))[1].trim();t=window.location.pathname==o}else if(r[i].indexOf("not_pathname:")>-1){o=(n=r[i].split(":"))[1].trim();t=window.location.pathname!=o}else if(r[i].indexOf("exclude:")>-1)t=!0!==$pfm((n=r[i].split(":"))[1]).exist();else if(r[i].indexOf("url_insert:")>-1){n=r[i].split(":");t=window.location.href.indexOf(n[1])> -1}else if(r[i].indexOf("url_notinsert:")>-1){n=r[i].split(":");t=!(window.location.href.indexOf(n[1])>-1)}else t=1==$pfm(r[i]).exist()}catch(e){xe_log("[Performa][Error] - Validate error! (3)"),t=!1}if(!0===t)break}return t},val:function(e){if(void 0===e&&(e=""),e.length<=0){try{var t=this.e.value}catch(e){t=""}return t}return this.e.value=e,this.e.value},toggle:function(){return"none"!==this.e.style.display?this.e.style.display="none":this.e.style.display="",this},size:function(e,t){return this.e.style.height= e+"px",this.e.style.width=t+"px",this},post:function(e,t){var r="";return xhr=new XMLHttpRequest,xhr.open("POST",e),xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),xhr.onload=function(){200===xhr.status?r=xhr.responseText:200!==xhr.status&&(r=xhr.status)},xhr.send(encodeURI(t)),r},append:function(e){"object"==typeof e&&(e=e.outerHTML),this.e.insertAdjacentHTML("beforeend",e)},prepend:function(e){"object"==typeof e&&(e=e.outerHTML),this.e.insertAdjacentHTML("afterbegin",e)}, remove:function(){this.e.remove()},html:function(e){"object"==typeof e&&(e=e.outerHTML),this.e.innerHTML=e},before:function(e){"object"==typeof e&&(e=e.outerHTML),this.e.insertAdjacentHTML("beforebegin",e)},after:function(e){"object"==typeof e&&(e=e.outerHTML),this.e.insertAdjacentHTML("afterend",e)},setStorage:function(key,value){if("undefined"!=typeof Storage)localStorage.setItem(key,value);else{performaManual=key+'\x3d"'+value+'";';try{eval(performaManual)}catch(e){xe_core.vm&&console.log("[ERR setStorage] ["+ key+"]\x3d["+value+"]"+e)}}},getStorage:function(key){if("undefined"!=typeof Storage)value=localStorage.getItem(key);else{performaManual="value\x3d"+key+";";try{eval(performaManual)}catch(e){value="",xe_core.vm&&console.log("[ERR getStorage] ["+key+"] "+e)}}return value},events:[],bindEvent:function(e,t,r){this.unbindEvent(e,r),r.addEventListener(e,t,!1),this.events.push({type:e,event:t,target:r})},findEvent:function(e){return this.events.filter(function(t){return t.type===e},e)[0]},unbindEvent:function(e, t){var r=this.findEvent(e);void 0!==r&&t.removeEventListener(e,r.event,!1),this.events=this.events.filter(function(t){return t.type!==e},e)},on:function(e,t,r){try{this.bindEvent(e,t,this.e)}catch(e){xe_core.vm&&console.log("[Performa][Error] On: "+e),xe_core.vm&&console.log(this.e)}},off:function(e){this.unbindEvent(e,this.e)},ready:function(e){"loading"!=document.readyState?e():document.addEventListener?document.addEventListener("DOMContentLoaded",e):document.attachEvent("onreadystatechange",function(){"loading"!= document.readyState&&e()})},click:function(e){return this.on("click",e,this.e),this},replaceAll:function(e,t,r){var a=new RegExp(e,"g");return r.replace(a,t)},removeAcents:function(e){return e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("[-]","g")," ")).replace(new RegExp("[\u00c1\u00c0\u00c2\u00c3]","gi"),"a")).replace(new RegExp("[\u00c9\u00c8\u00ca]","gi"),"e")).replace(new RegExp("[\u00cd\u00cc\u00ce]","gi"),"i")).replace(new RegExp("[\u00d3\u00d2\u00d4\u00d5]","gi"),"o")).replace(new RegExp("[\u00da\u00d9\u00db]", "gi"),"u")).replace(new RegExp("[\u00c7]","gi"),"c")},fadeIn:function(e,t,r){var a=0,i=this.e;i.style.display="block";var n=setInterval(function(){a>=t&&(void 0!==r&&r(),clearInterval(n)),i.style.opacity=a,a+=.05},e)},fadeOut:function(e,t){var r=this.e.style.opacity||1,a=this.e,i=setInterval(function(){r<=.1&&(void 0!==t&&t(),clearInterval(i),a.style.display="none"),a.style.opacity=r,a.style.filter="alpha(opacity\x3d"+100*r+")",r-=.1*r},e)},screenMatch:function(e){return window.matchMedia("(max-width: "+ e+"px)").matches},isMobile:function(e){var t,r=!1;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/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(t.substr(0, 4)))&&(r=!0),r||this.screenMatch(e)},_GET:function(){var e=window.location.href.toLowerCase(),t=[];return e.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(e,r,a){t[r]=a}),t},setMutationObserver:function(e,t,r){try{var a=new MutationObserver(function(e){e.forEach(function(e){if(e.attributeName===t){var a=e.target.getAttribute(e.attributeName);r(t,a)}})}),i=document.querySelector(e)||null;null!=i?a.observe(i,{attributes:!0}):xe_log("[Performa][Error] - Helper (setMutationObserver: selector not found)")}catch(e){xe_log("[Performa][Error] - Helper "+ e.message)}},offset:function(){try{var e=this.e.getBoundingClientRect(),t=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+t,width:this.e.offsetWidth,height:this.e.offsetHeight}}catch(e){xe_core.vm&&console.log("[Performa][Error] - Offset: "+e)}},genProductID:function(e){e=!(!e||"string"!=typeof e)&&e.toLowerCase().trim();var t=decodeURIComponent(window.location.pathname);t="/"==t.slice(-1)?t.substr(0,t.length- 1):t;var r,a,i=(e=(e=!1===e?"/"+t.split("/").reverse()[0].toLowerCase().trim():e).split("")).length;for(r=0;r=10?parseInt(t[1])-10:t[1];return t[2]},getHashCode:function(e){for(var t=0,r="string"==typeof e?e.length:0,a=0;a=Ee[Ee.length-1])it=st;else for(var i=0;i++,it=r<0?i+1:i,i=Ee[i+1];);}oa(e, r),dt.emit(xa(e)?"touchEnd":"dragEnd",La(e))})}}}function Pa(){me.style.height=Ee[it+Be]-Ee[it]+"px"}function Ea(){Vt&&!It&&(function(){Wt=[];for(var e=wr()%Be;e"'`=]/g,d=/[&<>"'`=]/,h=Object.prototype.toString;t.toString=h;var f=function(e){return"function"==typeof e};f(/x/)&&(t.isFunction= f=function(e){return"function"==typeof e&&"[object Function]"===h.call(e)}),t.isFunction=f;var m=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===h.call(e)};t.isArray=m},function(e,t,r){function a(e,t){var r=t&&t.loc,o=void 0,s=void 0;r&&(e+=" - "+(o=r.start.line)+":"+(s=r.start.column));for(var l=Error.prototype.constructor.call(this,e),c=0;c0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):i(this);if(r.data&&r.ids){var o=a.createFrame(r.data);o.contextPath=a.appendContextPath(r.data.contextPath,r.name),r={data:o}}return n(t,r)})},e.exports=t.default},function(e,t,r){var a=r(1).default;t.__esModule=!0;var i=r(5),n=a(r(6));t.default=function(e){e.registerHelper("each",function(e,t){function r(t,r,n){c&&(c.key=t, c.index=r,c.first=0===r,c.last=!!n,p&&(c.contextPath=p+t)),l+=a(e[t],{data:c,blockParams:i.blockParams([e[t],t],[p+t,null])})}if(!t)throw new n.default("Must pass iterator to #each");var a=t.fn,o=t.inverse,s=0,l="",c=void 0,p=void 0;if(t.data&&t.ids&&(p=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(c=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var u=e.length;s=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var r=arguments.length,a=Array(r>1?r-1:0),n=1;n2&&x.push("'"+this.terminals_[y]+"'");k=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[h]||h)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:u, expected:x})}}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+h);switch(v[0]){case 1:a.push(h),i.push(this.lexer.yytext),n.push(this.lexer.yylloc),a.push(v[1]),h=null,f?(h=f,f=null):(c=this.lexer.yyleng,s=this.lexer.yytext,l=this.lexer.yylineno,u=this.lexer.yylloc,p>0&&p--);break;case 2:if(S=this.productions_[v[1]][1],w.$=i[i.length-S],w._$={first_line:n[n.length-(S||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length- (S||1)].first_column,last_column:n[n.length-1].last_column},d&&(w._$.range=[n[n.length-(S||1)].range[0],n[n.length-1].range[1]]),void 0!==(g=this.performAction.call(w,s,c,l,this.yy,v[1],i,n)))return g;S&&(a=a.slice(0,-1*S*2),i=i.slice(0,-1*S),n=n.slice(0,-1*S)),a.push(this.productions_[v[1]][0]),i.push(w.$),n.push(w._$),b=o[a[a.length-2]][a[a.length-1]],a.push(b);break;case 3:return!0}}}},r=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e, t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++): this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line, last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g, "")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=(new Array(e.length+1)).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,r,a,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),o=0;ot[0].length)||(t=r,a=o,this.options.flex));o++);return t?((i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+= this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n[a],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)}, popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,r,a){function i(e,r){return t.yytext=t.yytext.substr(e,t.yyleng-r)}switch(r){case 0:if("\\\\"===t.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(i(0,1),this.begin("emu")): this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(t.yytext=t.yytext.substr(5,t.yyleng-9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(), 44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81; case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return e}();return t.lexer=r,e.prototype=t,t.Parser=e,new e}();t.default=r,e.exports=t.default}, function(e,t,r){function a(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function i(e,t,r){void 0===t&&(t=e.length);var a=e[t-1],i=e[t-2];return a?"ContentStatement"===a.type?(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(a.original):void 0:r}function n(e,t,r){void 0===t&&(t=-1);var a=e[t+1],i=e[t+2];return a?"ContentStatement"===a.type?(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(a.original):void 0:r}function o(e,t,r){var a=e[null==t?0:t+1];if(a&&"ContentStatement"=== a.type&&(r||!a.rightStripped)){var i=a.value;a.value=a.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),a.rightStripped=a.value!==i}}function s(e,t,r){var a=e[null==t?e.length-1:t-1];if(a&&"ContentStatement"===a.type&&(r||!a.leftStripped)){var i=a.value;return a.value=a.value.replace(r?/\s+$/:/[ \t]+$/,""),a.leftStripped=a.value!==i,a.leftStripped}}var l=r(1).default;t.__esModule=!0;var c=l(r(39));a.prototype=new c.default,a.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen; this.isRootSeen=!0;for(var a=e.body,l=0,c=a.length;l0)throw new m.default("Invalid path: "+a,{loc:r});".."===l&&n++}}return{type:"PathExpression",data:e,depth:n,parts:i,original:a,loc:r}}function c(e,t,r,a,i,n){var o=a.charAt(3)||a.charAt(2),s="{"!==o&&"\x26"!==o;return{type:/\*/.test(a)?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:s,strip:i,loc:this.locInfo(n)}}function p(e, t,r,i){a(e,r);var n={type:"Program",body:t,strip:{},loc:i=this.locInfo(i)};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:n,openStrip:{},inverseStrip:{},closeStrip:{},loc:i}}function u(e,t,r,i,n,o){i&&i.path&&a(e,i);var s=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,c=void 0;if(r){if(s)throw new m.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=i.strip),c=r.strip,l=r.program}return n&&(n=l,l=t,t=n),{type:s?"DecoratorBlock": "BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:c,closeStrip:i&&i.strip,loc:this.locInfo(o)}}function d(e,t){if(!t&&e.length){var r=e[0].loc,a=e[e.length-1].loc;r&&a&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:a.end.line,column:a.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function h(e,t,r,i){return a(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip, closeStrip:r&&r.strip,loc:this.locInfo(i)}}var f=r(1).default;t.__esModule=!0,t.SourceLocation=i,t.id=n,t.stripFlags=o,t.stripComment=s,t.preparePath=l,t.prepareMustache=c,t.prepareRawBlock=p,t.prepareBlock=u,t.prepareProgram=d,t.preparePartialBlock=h;var m=f(r(6))},function(e,t,r){function a(){}function i(e,t,r){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new c.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0), t.compat&&(t.useDepths=!0);var a=r.parse(e,t),i=(new r.Compiler).compile(a,t);return(new r.JavaScriptCompiler).compile(i,t)}function n(e,t,r){function a(){var a=r.parse(e,t),i=(new r.Compiler).compile(a,t),n=(new r.JavaScriptCompiler).compile(i,t,void 0,!0);return r.template(n)}function i(e,t){return n||(n=a()),n.call(this,e,t)}if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new c.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e); "data"in(t=p.extend({},t))||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;return i._setup=function(e){return n||(n=a()),n._setup(e)},i._child=function(e,t,r,i){return n||(n=a()),n._child(e,t,r,i)},i}function o(e,t){if(e===t)return!0;if(p.isArray(e)&&p.isArray(t)&&e.length===t.length){for(var r=0;r1)throw new c.default("Unsupported number of partial arguments: "+r.length,e);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var a=e.name.original,i="SubExpression"===e.name.type;i&&this.accept(e.name), this.setupFullMustacheParams(e,t,void 0,!0);var n=e.indent||"";this.options.preventIndent&&n&&(this.opcode("appendContent",n),n=""),this.opcode("invokePartial",i,a,n),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)}, CommentStatement:function(){},SubExpression:function(e){s(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,r){var a=e.path,i=a.parts[0],n=null!=t||null!=r;this.opcode("getContext",a.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",r),a.strict=!0,this.accept(a),this.opcode("invokeAmbiguous",i,n)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")}, helperSexpr:function(e,t,r){var a=this.setupFullMustacheParams(e,t,r),i=e.path,n=i.parts[0];if(this.options.knownHelpers[n])this.opcode("invokeKnownHelper",a.length,n);else{if(this.options.knownHelpersOnly)throw new c.default("You specified knownHelpersOnly, but used the unknown helper "+n,e);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",a.length,i.original,u.default.helpers.simpleId(i))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t= e.parts[0],r=u.default.helpers.scopedId(e),a=!e.depth&&!r&&this.blockParamIndex(t);a?this.opcode("lookupBlockParam",a,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,r):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral", "undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,r=0,a=t.length;for(this.opcode("pushHash");r=0)return[t,i]}}}},function(e,t,r){function a(e){this.value=e}function i(){}function n(e,t,r,a){var i=t.popStack(),n=0,o=r.length;for(e&&o--;n0&&(t+=", "+r.join(", "));var a=0;for(var i in this.aliases){var n= this.aliases[i];this.aliases.hasOwnProperty(i)&&n.children&&n.referenceCount>1&&(t+=", alias"+ ++a+"\x3d"+i,n.children[0]="alias"+a)}var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var s=this.mergeSource(t);return e?(o.push(s),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),") {\n ",s,"}"])},mergeSource:function(e){var t=this.environment.isSimple,r=!this.forceBuffer,a=void 0,i= void 0,n=void 0,o=void 0;return this.source.each(function(e){e.appendToBuffer?(n?e.prepend(" + "):n=e,o=e):(n&&(i?n.prepend("buffer +\x3d "):a=!0,o.add(";"),n=o=void 0),i=!0,t||(r=!1))}),r?n?(n.prepend("return "),o.add(";")):i||this.source.push('return "";'):(e+=", buffer \x3d "+(a?"":this.initializeBuffer()),n?(n.prepend("return buffer + "),o.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(a?"":";\n")),this.source.merge()},blockValue:function(e){var t= this.aliasable("helpers.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs(e,0,r);var a=this.popStack();r.splice(1,0,a),this.push(this.source.functionCall(t,"call",r))},ambiguousBlockValue:function(){var e=this.aliasable("helpers.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var r=this.topStack();t.splice(1,0,r),this.pushSource(["if (!",this.lastHelper,") { ",r," \x3d ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent? e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(e){return[" !\x3d null ? ",e,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," !\x3d null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"), "(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,r,a){var i=0;a||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[i++])),this.resolvePath("context",e,i,t,r)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,r){e?this.pushStackLiteral("container.data(data, "+ e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,r)},resolvePath:function(e,t,r,a,i){var o=this;if(this.options.strict||this.options.assumeObjects)this.push(n(this.options.strict&&i,this,t,e));else for(var s=t.length;rthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+ this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,r=e.length;tt},i=function(e,t){return e<=t},n=function(e,t){return e>=t},o=new t;o.add("\x3d\x3d",function(e, t){return e==t}),o.add("!\x3d",function(e,t){return e!=t}),o.add("\x3e",a),o.add("\x26gt;",a),o.add("\x3c",r),o.add("\x26lt;",r),o.add("\x3e\x3d",n),o.add("\x26gt;\x3d",n),o.add("\x3c\x3d",i),o.add("\x26lt;\x3d",i),o.add("in",function(e,t){return-1!==("[object Array]"!==Object.prototype.toString.call(t)?t.split(","):t).indexOf(e)}),e.registerHelper("is",function(){var e=arguments,t=e[0],r=e[1],a=e[2],i=e[3];return 2==e.length?(i=e[1],t?i.fn(this):i.inverse(this)):3==e.length?(i=e[2],t==(a=e[1])?i.fn(this): i.inverse(this)):o.call(r,t,a)?i.fn(this):i.inverse(this)});var s=function(e,t,r,a){return t!==parseInt(t)&&(t=2),"string"!=typeof r&&(r=","),"string"!=typeof a&&(a="."),e=parseFloat(e).toFixed(0-1?r.fn(this):r.inverse(this)}),e.registerHelper("exist_field",function(){var e=arguments,t=e[1];return void 0!==e[0]?t.fn(this):t.inverse(this)}),e.registerHelper("is_mobile",function(){var e=arguments[0];return!0===$pfm().isMobile()?e.fn(this):e.inverse(this)}), e.registerHelper("uenc",function(){return h.lib.base64.encode(location.href).replace("/","_")}),e.registerHelper("floor",function(e){return Math.floor(e)}),e.registerHelper("ceil",function(e){return Math.ceil(e)})}(pfm_handlebars);var _intervalC=2E3,domReady=!1,_interval=setInterval(function(){if("complete"===document.readyState)var e=!0;if(!xe_isset(performaConfig,"object")||"undefined"===document.body&&null==document.body||1!=e)--_intervalC<=0&&(xe_core.vm&&console.error("[Performa] - Config not loaded..."), clearInterval(_interval));else{"C34DE331-FDBB-FF8A-950D-DDB61EAE8C87"!==performaConfig.details.pubkey&&"563CE977-3928-52DA-7231-31F09EFD2EDF"!==performaConfig.details.pubkey||(performaHistoryHandler=new PerformaHistoryHandler),performaHelper=new PerformaHelper,performaHelper.startPerforma();try{if("undefined"!=typeof performaConfig&&void 0!==performaConfig.details&&void 0!==performaConfig.details.modules){if(performaConfig.details.modules.powerslider)if(0!=xe_core.vm&&performaConfig.details.powerslider.status){if("undefined"== typeof _powerSlider){var t=document.getElementsByTagName("head")[0];(r=document.createElement("script")).type="text/javascript",r.src="//cdn-valid.performa.ai/powerslider/performa-powerslider-valid.js?ts\x3d"+Date.now(),t.appendChild(r)}}else if(!1===xe_core.vm&&performaConfig.details.powerslider.active&&"undefined"==typeof _powerSlider){t=document.getElementsByTagName("head")[0];(r=document.createElement("script")).type="text/javascript",r.src="//cdn.performa.ai/powerslider/performa-powerslider.js?ts\x3d"+ xe_getCacheTS(),t.appendChild(r)}if(performaConfig.details.modules.powerluck)if(0!=xe_core.vm&&performaConfig.details.powerluck.status){if("undefined"==typeof _powerLuck){t=document.getElementsByTagName("head")[0];(r=document.createElement("script")).type="text/javascript",r.src="//cdn-valid.performa.ai/powerluck/performa-powerluck-valid.js?ts\x3d"+Date.now(),t.appendChild(r)}}else if(!1===xe_core.vm&&performaConfig.details.powerluck.active&&"undefined"==typeof _powerLuck){t=document.getElementsByTagName("head")[0]; (r=document.createElement("script")).type="text/javascript",r.src="//cdn.performa.ai/powerluck/performa-powerluck.js?ts\x3d"+xe_getCacheTS(),t.appendChild(r)}if(performaConfig.details.modules.powerup)if(0!=xe_core.vm){if("undefined"==typeof _powerUp){t=document.getElementsByTagName("head")[0];(r=document.createElement("script")).type="text/javascript",r.src="//cdn-valid.performa.ai/powerup/performa-powerup-valid.js?ts\x3d"+Date.now(),t.appendChild(r)}}else if("undefined"==typeof _powerUp){t=document.getElementsByTagName("head")[0]; (r=document.createElement("script")).type="text/javascript",r.src="//cdn.performa.ai/powerup/performa-powerup.js?ts\x3d"+xe_getCacheTS(),t.appendChild(r)}if(performaConfig.details.modules.powerinfinity)if(0!=xe_core.vm){if("undefined"==typeof _powerInfinity){t=document.getElementsByTagName("head")[0];(r=document.createElement("script")).type="text/javascript",r.src="//cdn-valid.performa.ai/powerinfinity/performa-powerinfinity-valid.js?ts\x3d"+Date.now(),t.appendChild(r)}}else if("undefined"==typeof _powerInfinity){var r; t=document.getElementsByTagName("head")[0];(r=document.createElement("script")).type="text/javascript",r.src="//cdn.performa.ai/powerinfinity/performa-powerinfinity.js?ts\x3d"+xe_getCacheTS(),t.appendChild(r)}}}catch(e){xe_log("Performa: Configuration is not complete")}clearInterval(_interval)}},100)};