(function(){window.ggLoader||(ggLoader={},ggConfig={data:{account_id:135080,account_is_test:0,parent_id:134990,generated_at:"1698671260",api_url:"https://gubagoo.io/api",debug:!1,environment:"production",server_url:"https://gubagoo.io",comet_url:"https://node.gubagoo.io",show_in_iframe:!1,ai_filter_enabled:!0,toolbar_id:1,toolbar_cdn:"https://cdn.gubagoo.io",toolbar_enabled:1,hidden:!1,social_media_top_right:"0",default_state:"ui_v3",mobile_state:"",language:"en",toolbar_small:"",mobile_toolbar_small:"",special_offer_id:"",special_offer_form:"",hide_special_icon:"0",disable_mobile:!1,prevent_jquery_load:!1,show_privacy:"default",terms_conditions_hover:!1,toolbar_use_dealer_vdp:!1,toolbar_chat_hide_tradein:!1,scheduling_location_id:"",cbo_enabled:!1,cbo_widget_append:!1,vdp_flow:"vdp",vdp_version:3,toolbar_dept_picker_enabled:!1,toolbar_chat_disable_transcript_greeter:!1,toolbar_chat_desktop_ui_left:!1,toolbar_chat_mobile_ui_left:!1,toolbar_chat_bubble_blinker:!1,toolbar_enable_marketing_opt_in:!1,toolbar_offers_terms_conditions_link:!1,apple_biz_id:!1,ga_tracking_codes:!0,ga_v4_measurement_ids:["G-QZGVBNDEXZ"],whatsapp_enabled:!1,whatsapp_number:null,special_btn_label:"Specials",chat_endorsement:"gm",website_provider:"dealer_inspire",tracking_provider:null,integration_provider:null,after_hours_enabled:!1,pdpa_policy:!1,pdpa_policy_link:"",group_provider:null,fake_operator:!0,salutation_enabled:!1,multilingual:!0,autotranslate_enabled:!1,allows_exclamation_marks:!1,chat_version:"v4",hide_prices:"",dealer_id:"246150",cross_site_redirect_element_key:"",toolbar_agent_join_notification_delay:3e4,toolbar_agent_join_delay_message_first:"I apologize, I'm just finishing up with another customer. I'll be with you in just a moment.",toolbar_agent_join_delay_msg_1_personal:"Hey {first_name}. Give me a quick minute and I'll be right with you.",toolbar_agent_join_delay_message_second:"Sorry for the wait, I'll be with you as soon as I can.",toolbar_agent_join_delay_msg_2_personal:"Sorry for the wait {first_name}, I'll be with you as soon as I can.",endorsement_provider:null,is_shift:!0,show_sms_customer_name_field:!1,custom_sms_message_label:"",sms_required_fields:"phone",bypass_store_picker_on_vdp:!0,toolbar_engagement_button_type:"classic",toolbar_engagement_button_icon:"",toolbar_engagement_button_label:"",toolbar_engagement_button_labelpersonal:"",toolbar_engagement_expand_collapse_type:"auto_expand_and_collapse",after_hours_message:"",toolbar_autoengage_score:700,cbo_vsp_widget:{style:!1,credit:!1,trade:!1,buy_online:!1,unlock:!1,payment:!1},cbo_vdp_widget:{style:!1,credit:!1,trade:!1,buy_online:!1,unlock:!1,payment:!1},cbo_lenders_rotator:!1,cbo_ghost_widget:!0,cbo_hide_cta:!1,cbo_mobile_floating_button:!1,toolbar_is_ghost_mode:!1}},ggFramework=window.ggFramework||{},function(framework,config){var debug_enabled,hooks;(function(){framework.loaded={};var loaded=framework.loaded;window.ggUrl=function(e){return-1===e.indexOf("//")&&(e=ggConfig.get("toolbar_cdn")+e),framework.ie()<11&&"http:"===window.location.protocol&&(e=e.replace("https:","http:")),e},framework.serialize=function(e,t){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var n=t?t+"["+i+"]":i,a=e[i];o.push("object"==typeof a?framework.serialize(a,n):encodeURIComponent(n)+"="+encodeURIComponent(a))}return o.join("&")},framework.sendRequest=function(e,t,o,i){(t=t||{}).data_type=i||"json";var n=framework.serialize(t),a="GET";(e+n).length>=2083?(n="",a="POST"):n="?"+n,e=ggUrl(e)+n;var r=window.XDomainRequest?new XDomainRequest:new XMLHttpRequest;return r.open(a,e,!0),r.timeout=t.timeout||18e3,r.onerror=function(e){console.log("CORS error",e)},r.onprogress=function(){},r.onload=function(){if(r.readyState||(r.readyState=4,r.status=200),4===r.readyState){if(!(r.status>=200&&r.status<400))throw"Response returned with non-OK status";switch(i){case"text":o(r.responseText);break;default:let e=r.responseText[0],t=r.responseText[r.responseText.length-1];o("{"!==e&&"["!==e||"}"!==t&&"]"!==t?{content:r.responseText}:JSON.parse(r.responseText))}}},n?r.send():(r.setRequestHeader("Content-Type","application/json"),r.setRequestHeader("X-Emulated-Get","1"),r.send(JSON.stringify(t))),window.XDomainRequest&&framework.pendindRequests.push(r),r},framework.pendindRequests=[],framework.executeJs=function(code){eval(code)},framework.getScript=function(e,t,o,i){if(e=ggUrl(e),o)return framework.loadFromCache(e,(function(o,i){i&&framework.executeJs(i),framework.executeJs(o),loaded[e]=!0,t&&t(!1)})),!1;var n=!1,a=document.createElement("script");i&&i.id&&a.setAttribute("id",i.id),a.type="text/javascript",a.onload=a.onreadystatechange=function(){n||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(n=!0,t&&t(a),a.onload=a.onreadystatechange=null)},a.src=e,document.getElementsByTagName("head")[0].appendChild(a)},framework.getCss=function(e,t){if(loaded[e])return!1;if(e=ggUrl(e),t)return framework.loadFromCache(e,(function(t){framework.insertRawCss(t),loaded[e]=!0})),!1;var o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("type","text/css"),o.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(o),loaded[e]=!0},framework.loadFromLocalStorage=function(e,t,o){const i=e.split(".").pop(),n=i+"-"+ggConfig.get("generated_at")+"-"+framework.hash(e),a=!o&&ggStorage.getCache(n);return a?(t(a),!0):(framework.sendRequest(e,{},(function(e){const i=e.content?e.content:e;o||ggStorage.setCache(n,i),t(i,e.plugins)}),"css"===i?"text":"json"),!1)},framework.loadFromCache=function(e,t){const o=!!config.get("debug");if(o||!("caches"in window))return ggFramework.loadFromLocalStorage(e,t,o);let i=!0;caches.open("ggCacheApi").then((function(o){const n="t="+ggConfig.get("generated_at"),a=e+(-1!==e.indexOf("?")?"&":"?")+n;return o.match(a).then((function(e){return e&&e.ok?e.text():(i=!1,o.add(a).then((function(){return o.match(a).then((function(e){return e.text()}))})))})).then((function(e){if(!e)throw Error("Cannot fetch data");const o=e[0],n=e[e.length-1];if("{"!==o&&"["!==o||"}"!==n&&"]"!==n)t(e);else{const o=JSON.parse(e);t(o.content,i?o.plugins:null)}})).finally((function(){return o.keys().then((function(e){e.length>10&&e.forEach((function(e){if(-1===e.url.indexOf(n))return o.delete(e)}))}))}))})).catch((function(i){console.log(i),ggFramework.loadFromLocalStorage(e,t,o)}))},framework.insertRawCss=function(e){var t=document.createElement("style");t.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.innerHTML=e},framework.require=function(e,t,o,i){if(loaded[e])return t&&t(),!1;loaded[e]=!0,framework.getScript(e,t,o,i)},framework.hash=function(e){var t,o,i=0;if(0===e.length)return i;for(t=0,o=e.length;t-1,hooks=[],{STOP_CODE:-1,register:function(e,t,o){void 0===hooks[e]&&(hooks[e]=[]),o?hooks[e].unshift(t):hooks[e].push(t)},fire:function(e,t){if(debug_enabled&&window.console&&console.log("EVENT FIRED: "+e,t),void 0!==hooks[e])for(var o=0;o=0}return ggFramework.cookie_enabled=e,e},ggFramework.setCookie=function(e,t,o){(o=o||{expires:1800,path:"/",domain:window.location.hostname}).domain=o.domain.replace("www.","");var i=o.expires;if("number"==typeof i&&i){var n=new Date;n.setTime(n.getTime()+1e3*i),i=o.expires=n}i&&i.toUTCString&&(o.expires=i.toUTCString());var a=e+"="+(t=encodeURIComponent(t));for(var r in o){a+="; "+r;var s=o[r];!0!==s&&(a+="="+s)}window.self!==window.top?document.cookie=a+"; SameSite=None; Secure":document.cookie=a},ggFramework.getCookie=function(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0},window.ggStorage=new function(){var e=!1,t=this,o=ggConfig.get("account_id"),i=ggConfig.get("toolbar_id");"undefined"!=typeof Storage&&(e=!0);try{localStorage.setItem("test",1)}catch(t){e=!1}finally{e&&localStorage.removeItem("test")}e&&!ggFramework.checkCookie()&&(e=!1);var n=function(e){return"gg_"+o+"_"+i+"_"+e};this.enabled=e,this.get=function(t){return!!e&&localStorage.getItem(n(t))},this.set=function(t,o){if(!e)return!1;localStorage.setItem(n(t),o)},this.remove=function(t){if(!e)return!1;localStorage.removeItem(n(t))},this.test=function(t){return!!e&&null!==localStorage.getItem(n(t))},this.setJSON=function(e,o,i){t.set(e,JSON.stringify(o)),t.setExpiry(e,i)},this.getJSON=function(e){if(!t.checkExpiry(e))return t.clear(e),!1;var o=t.get(e);if(o)try{o=JSON.parse(o)}catch(e){o=!1}return o},this.clear=function(e){t.remove(e),t.remove(e+":cache_expiry")},this.setExpiry=function(e,o){return t.set(e+":cache_expiry",!!o&&parseInt((new Date).getTime()/1e3)+o)},this.checkExpiry=function(e){var o=parseInt(t.get(e+":cache_expiry"));return!o||o>=parseInt((new Date).getTime()/1e3)},this.cache_fallback={},this.getCache=function(t){if(!e)return ggStorage.cache_fallback[t];var o=ggStorage.get(t+"_time");return!!(o&&ggConfig.get("generated_at")<=parseInt(o))&&ggStorage.get(t)},this.setCache=function(t,o){e||(ggStorage.cache_fallback[t]=o),ggStorage.set(t+"_time",ggConfig.get("generated_at")),ggStorage.set(t,o)},this.checkSpace=function(){if(-1===window.location.href.indexOf("debug_ls"))return;let e="";for(var t in console.log("Current local storage: "),window.localStorage)window.localStorage.hasOwnProperty(t)&&(e+=window.localStorage[t],console.log(t+" = "+(16*window.localStorage[t].length/8192).toFixed(2)+" KB"));console.log(e?"\nTotal space used: "+(16*e.length/8192).toFixed(2)+" KB":"Empty (0 KB)"),console.log(e?"Approx. space remaining: "+(5120-(16*e.length/8192).toFixed(2))+" KB":"5 MB")}},ggFramework.ie=function(){if(ggFramework.ie_version)return ggFramework.ie_version;var e=/(msie) ([\w.]+)/i.exec(navigator.userAgent)||[],t=e.length>1&&parseInt(e[2]);return!t&&/Trident\/7\./.test(navigator.userAgent)&&(t=11),ggFramework.ie_version=t||99,ggFramework.ie_version},ggFramework.isMobile=function(){if("#m"==window.location.hash)return!0;for(var e=["iphone","ipod","series60","symbian","android","windows ce","blackberry","palm","avantgo","docomo","vodafone","j-phone","xv6850","htc","lg;","lge","mot","nintendo","nokia","samsung","sonyericsson","bb10"],t=navigator.userAgent.toLowerCase(),o=0;o0&&Function.prototype.bind.toString().replace(/bind/g,"Error")!=Error.toString()))&&"headless")},function(){var widget_html='
',widget_css='#g .gg-cbo-widget { display:flex; align-items:left; flex-direction:column;width:250px;min-width:210px;}#g .gg-cbo-widget * {font-family:"Helvetica", "Arial" !important;} #g .gg-cbo-widget--right{ float:right; clear:both; overflow:hidden;}#g .gg-cbo-widget--left{ float:left; clear:both; overflow:hidden;}#g .gg-cbo-widget--center{ transform:translateX(-50%); margin-left:50%;}#g .gg-cbo-widget--vsp,#g .gg-cbo-widget--vdp {width:100%;}#g .gg-cbo-widget .cbo-button {background:#ECF3FA;font-size:14px;height:64px;display:block;width:100%;line-height:64px;text-align:left;text-decoration:none;color:#303E49;padding:0 15px 0 60px;position:relative;text-transform:capitalize;border:none;margin-top:8px;border-radius:3px;cursor:pointer;}#g .gg-cbo-widget .cbo-button:hover {cursor:pointer;background:#e3edf7;}#g .gg-cbo-widget .cbo-primary {background:#1580E2;color:#fff;}#g .gg-cbo-widget .cbo-primary:hover {background:rgb(23, 132, 235);}#g .gg-cbo-widget .cbo-button.cbo-unlock {background:#1DB948;color:#fff;}#g .gg-cbo-widget .cbo-button.cbo-unlock:hover {background:#1dc24b;}#g .cbo-primary .cbo-button__arrow svg path,#g .cbo-button.cbo-unlock .cbo-button__arrow svg path {stroke:#fff;}#g .cbo-primary:hover > svg {transform:rotate(360deg);}#g .gg-cbo-widget .cbo-button > svg,#g .gg-cbo-widget .cbo-button > .cbo-kbb-logo {position:absolute;left:13px;top:50%;margin-top:-16px;transform:rotate(0deg);transition:transform 0.3s;}#g .cbo-button__label { display:block;height:17px;font-weight:bold;font-size:15px;line-height:17px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}#g .cbo-button__text {font-size:12px;font-weight:normal;margin-top:6px;opacity:0.8;display:block;height:14px;line-height:17px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}#g .cbo-button__arrow {position:absolute;width:8px;height:14px;right:16px;top:50%;margin-top:-7px;}#g .cbo-button__arrow svg {position:absolute;}#g .cbo-payments {position:relative;}#g .cbo-lenders {position:absolute;white-space:nowrap;display:none;}#g .cbo-lenders img {max-height:40px;margin-right:16px;}#g .cbo-payments--lenders {padding:15px 15px 63px 15px;background:#fff;border:1px solid #DADADA;box-sizing:border-box;border-radius:2px;overflow:hidden;box-sizing:border-box;}#g .cbo-payments--lenders .cbo-lenders { margin-top:15px;display:block;}#g .cbo-payments--rotator .cbo-lenders {position:absolute;z-index:9;width:40px;overflow:hidden;text-align:center;left:10px;top:50%;margin-top:-20px;display:flex;align-items:center;background:#fff;height:40px;width:40px;border-radius:2px;padding:0 2px;transition:transform 0.3s ease;transform:scale(1)}#g .cbo-payments--rotator .cbo-lenders img {max-height:40px;margin-right:16px;display:none;max-width:36px;transform:translateY(-25px);transition:transform 0.25s ease;position:absolute;}#g .cbo-payments--rotator .cbo-lenders .cbo-active {display:block;}#g .gg-cbo-widget--wd{max-width:330px; padding:6px 15px 15px; background:#fff; border:1px solid #D5DFE8;}#g .gg-cbo-widget.gg-cbo-widget--tablet{position:relative;left:50%;transform:translateX(-50%);padding-right:10px;}#g .gg-cbo-widget--tablet .cbo-button__arrow {display:none;}#g .gg-cbo-widget--tablet .cbo-button{padding:0 10px 0 54px;} #g .gg-cbo-widget--short .cbo-button__arrow { display:none;}#g .gg-cbo-widget--short .cbo-button {padding:0 15px 0 54px; } #g .gg-cbo-widget--short .cbo-button__text { font-size:11px; } #g .gg-cbo-widget--short .cbo-button > svg, #g .gg-cbo-widget--short .cbo-button > .cbo-kbb-logo {left:10px;margin-top:-15px; }#g .gg-cbo-widget .cbo-button > .cbo-kbb-logo,#g .gg-cbo-widget--short .cbo-button > .cbo-kbb-logo {top:30%;width:32px;} #g .gg-cbo-widget--short .cbo-payments--rotator .cbo-button > svg { left:16px; margin-top:-11px; } #g .gg-cbo-widget--short .cbo-lenders { left:8px; } #g .guba-cbo .gg-chat-bubble, #g .guba-cbo .gg-notification__operator, #g .guba-cbo .gg-notification__body, #g .guba-cbo .gg-notification__tail, #g .guba-cbo .gg-chatbox{left:auto !important;right:20px; } #g .guba-cbo .cbo-garage{display:none;} #g .guba-cbo .userway { z-index:9999991;} #g .cbo-floating .cbo-payments{position:fixed!important;bottom:19px;z-index:999999;width:75%;left:0;padding:0 20px;}#g .cbo-floating .gg-btn-specials,#g .cbo-floating .spotlight-engagement {display:none!important;}#g .cbo-floating #ae_launcher{bottom:75px!important;right:0!important;}#g .cbo-floating .gg-chat-bubble.gg-app{left:auto!important;right:20px!important;}#g .cbo-floating .cbo-payments .cbo-button{border-radius:10px;}#g .cbo-floating .cbo-garage{display:none;} @media (max-width:320px){#g .cbo-floating .cbo-payments{width:80%!important;left:-10px!important;}#g .cbo-floating .cbo-payments .cbo-button__arrow{display:none;}}#g .gg-cbo-widget--shortest{ width:100%!important; min-width:180px;}#g .gg-cbo-widget--shortest .cbo-button__label{font-size:14px;}#g .gg-cbo-widget--shortest .cbo-button__text{ font-size:11px; line-height:10px;}#g .gg-cbo-widget--shortest .cbo-button__arrow{display:none;}#g .gg-cbo-widget--shortest .cbo-lenders{ height:35px; width:35px;left:8px;top:55%;}#g .gg-cbo-widget--shortest .cbo-button > .cbo-kbb-logo,#g .gg-cbo-widget--shortest .cbo-button > svg{ left:10px;}#g .gg-cbo-widget--shortest .cbo-payments--rotator .cbo-lenders img{width:31px;}#g .gg-cbo-widget--shortest .cbo-button{ padding:0 8px 0 50px; height:55px;}#g .gg-cbo-widget--shortest .cbo-button > .cbo-kbb-logo{width:28px;}#g .gg-cbo-widget--shortmicro{min-width:150px; width:100%;}#g .gg-cbo-widget--shortmicro .cbo-button{padding:0 15px;height:55px;}#g .gg-cbo-widget--shortmicro .cbo-button__label{height:14px;font-size:13px;}#g .gg-cbo-widget--shortmicro .cbo-button__text{font-size:11px;margin-top:5px;}#g .gg-cbo-widget--shortmicro .cbo-button > svg, #g .gg-cbo-widget--shortmicro .cbo-button > .cbo-kbb-logo,#g .gg-cbo-widget--shortmicro .cbo-button__arrow{display:none;} #g .listview .vehicle .vehicle-price { position:relative;}#g .listview .gg-cbo-widget--vsp.gg-cbo-widget--desk { width:auto !important; position:static !important; bottom:5px; left:0px !important;}#g .listview .gg-cbo-widget--vsp.gg-cbo-widget--desk .cbo-button { width:100%;}#g .gg-cbo-widget--vsp.gg-cbo-widget--mob { background:#fff; padding:10px 10px; margin-top:15px;}#g .guba-an .used-vehicle .vehicle-price,#g .guba-ip .used-vehicle .vehicle-price { padding-bottom:0;}#g .gridview .gg-cbo-widget--vsp.gg-cbo-widget--desk { position:static !important; width:100% !important; margin:0 auto 10px;}#g .hit-additional-ctas .gg-cbo-widget--vsp.gg-cbo-widget--mob { background:#fff; padding:0px; margin-top:0px;}#g .hit-additional-ctas .gg-cbo-widget { order:-1;}#g .hit-additional-ctas .gg-cbo-widget--vsp.gg-cbo-widget--mob .cbo-button__label { height:auto; text-overflow:unset; white-space:unset;}#g .gg-cbo-widget { margin-bottom:8px;}#g .vdp-price-box__cta .gg-cbo-widget svg { height:initial !important; width:initial !important; fill:none;}#g .cbo-button__label,#g .cbo-button__text { line-height:17px !important;}@media (max-width:1024px) { #g .vdp-top-banner.box-gallery .details-page-ctawrap #details-page-ctabox { max-height:none; }}#g .gg-custom-button--1 { background-color:#f7f7f7 !important; color:#000 !important; padding:18px !important; margin:4px 0px 11px 0px !important; width:100% !important; font-size:16px;font-weight:bolder;box-sizing:border-box;height:auto;}#g .gg-custom-button--1:hover { }#g .gg-cbo-widget { display:none !important;}#g .guba-cbo-preview .gg-cbo-widget { display:flex !important;}#g .gg-cbo-widget .cbo-button { background:#ECF3FA; color:#303E49; border:0px solid #000;}#g .gg-cbo-widget .cbo-button svg path[stroke] { stroke:#000;}#g .gg-cbo-widget .cbo-button svg path[fill] { fill:#000;}#g .gg-cbo-widget .cbo-primary { background:#0b6bc5; color:#fff; border:0px solid #000;}#g .gg-cbo-widget .cbo-primary svg path[stroke],#g .gg-cbo-widget .cbo-primary svg line[stroke] { stroke:#fff;}#g .gg-cbo-widget .cbo-button.cbo-unlock { background:#09832b; color:#fff; border:0px solid #000;}#g .gg-cbo-widget .cbo-button.cbo-unlock svg path[stroke],#g .gg-cbo-widget .cbo-button.cbo-unlock svg line[stroke] { stroke:#fff;}#g .gg-cbo-widget .cbo-button:hover { background:#e3edf7;}#g .gg-cbo-widget .cbo-primary:hover {background:#0a569d;}#g .gg-cbo-widget .cbo-button.cbo-unlock:hover {background:#0b6724;}',cssInit=!1,integration={},isMobile=framework.isMobile(),disabledVins=[],$widgets=[];let rendered={};var integration={to:[{q:".hit .hit-additional-ctas:visible",type:"vsp"},{q:".vdp-sidebar-components .vdp-price-box .vdp-price-box__cta:eq(0)",type:"vdp"},{q:'.vehicle .vehicle-price:not(".after-vehicle-price")',type:"vsp"},{q:"#ctabox-pricing",type:"vdp"},{q:".vdp-right-col .cta-box",type:"vdp"}],check_for_new_items:!0,disable_duplicate:!0,how:function(e,t){e.hasClass("cta-box")?e.before(t):e.hasClass("hit-additional-ctas")||e.hasClass("vdp-price-box__cta")?e.prepend(t):e.append(t)},findVin:function(e){if(e.hasClass("vdp-price-box__cta")){var t=window.location.pathname.split("-");if((o=t[t.length-1].replace("/","").toUpperCase())&&17==o.length)return o}var o;if(e.hasClass("vehicle-price"))return o=(o=e.parent().parent().attr("id")||!1)?o.replace("inventory-post-",""):e.closest("*[data-vin]").data("vin");if(e.hasClass("hit-additional-ctas"))return e.closest(".result-wrap[data-vehicle]").data("vehicle-vin");if((!(i=e.parent().find("a[data-vehicle]").data("vehicle")||{})||i&&!i.vin)&&(i=e.closest("#vehicleDetails").find("a[data-vehicle]").data("vehicle")),!i||i&&!i.vin)var i=e.closest("#vehicleDetails").find("a[data-vehicle].availability").data("vehicle");if((!i||i&&!i.vin)&&window.getVin&&(o=window.getVin()))return o;if((!i||i&&!i.vin)&&window.inventory_localization&&window.inventory_localization.vehicle&&((o=window.inventory_localization.vehicle.vin)&&17==o.length))return o;if((!i||i&&!i.vin)&&window.vin&&((o=window.vin.innerText)&&17==o.length))return o;return!i||i&&!i.vin?(o=e.parent().find("*[data-vin]").data("vin"))||!1:i.vin||!1}},adapter=integration,to=adapter.to,how=adapter.how,findVin=adapter.findVin,style="",observer=!1,customHow=ggConfig.get("cbo_widget_append");customHow&&customHow.length>0&&(how=function($card,$widget){try{eval(customHow)}catch(e){console.log(e)}});var timeout_id=!1;function getItems(){var e=!1;return Array.isArray(to)?to.forEach((function(t){let o=!1;t instanceof Object&&(o=t.type,t=t.q),$res=jQuery(t),!e&&$res.length>0&&(e=$res,o?e.data("cbo-page-type",o):integration.pageType?e.data("cbo-page-type",integration.pageType):jQuery(t).attr("data-page-type")&&e.data("cbo-page-type",jQuery(t).attr("data-page-type")))})):e=jQuery(to),e}function insertRawCss(e){var t=document.createElement("style");t.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.innerHTML=e}function prepareWidget(e){var t=ggConfig.data["cbo_"+e+"_widget"]||!1;if(!t)return!1;var o=jQuery(widget_html);return o.addClass("gg-cbo-widget--"+e),o.addClass("gg-cbo-widget--"+(isMobile?"mob":"desk")),ggConfig.data.cbo_lenders_rotator&&o.find(".cbo-lenders img").length>0&&o.find(".cbo-payments").addClass("cbo-payments--rotator"),window.outerWidth>=768&&window.outerWidth<=1024&&o.addClass("gg-cbo-widget--tablet"),t.style&&o.addClass("gg-cbo-widget--"+t.style),t.trade||o.find(".cbo-trade").remove(),t.unlock||o.find(".cbo-unlock").remove(),t.credit||o.find(".cbo-credit").remove(),t.payment||o.find(".cbo-payments").remove(),t.buy_online||o.find(".cbo-buy-online").remove(),jQuery.each(o.find(".gg-custom-button"),(function(t,o){const i=jQuery(o).data("page-type");"all"!==i&&i!==e&&jQuery(o).remove()})),o}function append(){jQuery("html").attr("id","g");var e=getItems(),t={},o=0,i=!1;if(!e||!e.length)return!1;if(e.each((function(){var e=findVin(jQuery(this));e&&!t[e]&&(t[e]=1,o++)})),i=o>1?"vsp":"vdp",e.data("cbo-page-type")&&(i=e.data("cbo-page-type")),!o)return!1;if(!prepareWidget(i))return!1;cssInit||(insertRawCss(widget_css),cssInit=!0),rendered={},integration.dynamic_loading&&jQuery(".gg-cbo-widget").each((function(){let e=jQuery(this).find(".cbo-button:eq(0)").attr("data-vin")||jQuery(this).first().attr("data-vin");rendered[e]=!0}));var n=prepareWidget(i);isMobile&&"vdp"==i&&ggConfig.get("cbo_mobile_floating_button")&&jQuery("body").addClass("cbo-floating");var a=function(){var t=jQuery(this),o=n.clone(),a=e.data("cbo-page-type");if(!(t.find(".gg-cbo-widget").length>0)){var r=findVin(t);if(r&&-1===disabledVins.indexOf(r)){if(t.data("vin",r),a&&o.find(".cbo-button").data("page-type",a),ggConfig.get("cbo_hide_cta")&&"vdp"===i){let e;o.attr("style","display: none !important"),e="production"===ggConfig.get("environment")?"https://showroom.gubagoo.io":"https://showroom-rc.gubagoo.dev",jQuery.get(`${e}/${ggConfig.get("account_id")}/inventory/${r}`,(function(){o.attr("style","")}))}if(!rendered[r]||!integration.disable_duplicate){o.data("vin",r),o.find(".cbo-button").length>0?(o.find(".cbo-button").attr("data-vin",r),o.find(".cbo-button").attr("data-page-type",i)):(o.first().attr("data-vin",r),o.first().attr("data-page-type",i));var s=null;"function"==typeof how?s=how(t,o):"prepend"==how?t.prepend(o):t.append(o),!1!==s&&(rendered[r]=!0),$widgets.push(o)}}}};const r=isMobile?10:20;if(e.length>r){let t=0,o=isMobile?10:20;e.slice(0,o).each(a),t+=o;let i=setInterval((function(){if(t>e.length)return clearInterval(i),void(window.CBOLoader&&window.CBOLoader.addButtonListeners());e.slice(t,t+o).each(a),rotator.active&&rotator.initImages(),t+=o}),300)}else e.each(a),window.CBOLoader&&window.CBOLoader.addButtonListeners();return rotator.init(),o}var rotator=new function(){var e=!1,t=0,o=null,i=0;this.active=!1,this.init=function(){if(clearInterval(e),rotator.active=rotator.initImages(),!rotator.active)return!1;t++,e=setInterval((function(){rotator.tick(!0)}),6e3)},this.tick=function(e){o.each((function(){if(!e||(o=this.getBoundingClientRect()).top>=0&&o.left>=0&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&o.right<=(window.innerWidth||document.documentElement.clientWidth)){var o,i=jQuery(this).find("img").removeClass("cbo-active").css("transform","").eq(t).addClass("cbo-active");setTimeout((function(){i.css("transform","translateY(0px)")}),50)}})),++t>=i&&(t=0)},this.initImages=function(){return o=jQuery(".cbo-payments--rotator"),i||(i=jQuery(".cbo-lenders:eq(0) img").length),o.length&&i},this.stopAndClose=function(){clearInterval(e),jQuery(".cbo-payments--rotator .cbo-lenders").css("transform","scale(0)")}};function initMutationObserver(){if(0===getItems().length&&!adapter.forceMutationObserver)return!1;if(observer)return!1;var e=window.MutationObserver||window.WebKitMutationObserver;if(!e)return!1;observer=new e((function(e){timeout_id&&clearTimeout(timeout_id),timeout_id=setTimeout(checkMutation,300)}));document.querySelector("body");observer.observe(document.querySelector("body"),{childList:!0,subtree:!0})}function checkMutation(){const e=jQuery(".gg-cbo-widget");if(e.length||(console.log("Mutation append"),append()),integration.check_for_new_items){getItems().length>e.length&&append()}else if(integration.managed_check_for_new_items){getItems().length>0&&append()}}function checkHashAndAddClass(e,t){let o=function(o){let i=o&&o.originalEvent&&o.originalEvent.newURL?o.originalEvent.newURL.replace(/#[^a-z_#]+/g,"#"):"";(window.location.hash.replace(/[^a-z_#]+/g,"")===e||i&&i.indexOf(e)>-1)&&jQuery("body").addClass(t)};jQuery(window).on("hashchange",o),o()}function initGhostMode(){if(!ggConfig.get("cbo_ghost_widget"))return!1;insertRawCss("#g .gg-chatbox .gg-vehicle__details { display: block !important; }#g .gg-chatbox .gg-vehicle__details--cbo { display: none !important; }#g .gg-vdp button.gg-cbo-buy-now { display: none !important; }"),checkHashAndAddClass("#gubagoo_vr_preview","guba-cbo-preview")}function initToolbarGhostMode(){if(!ggConfig.get("toolbar_is_ghost_mode"))return!1;insertRawCss("#g .gg-custom-button { display: none !important; }"),checkHashAndAddClass("#gubagoo_tb_preview","guba-tb-preview")}function initWidgetFontFamily(){var e=0,t=!1,o=window.setInterval((function(){!t&&ggConfig.get("toolbar_font_family")&&(insertRawCss(`#g .gg-cbo-widget * { font-family: ${ggConfig.get("toolbar_font_family")}, "Helvetica", "Arial" !important}`),t=!0),(10==++e||t)&&window.clearInterval(o)}),1e3)}function hideDisabledVehicles(){if(!ggConfig.get("cbo_hide_cta"))return!1;var e=ggStorage.getJSON("cbo_hidden_vehicles_vins")||!1;Array.isArray(e)?disabledVins=e:ggFramework.sendRequest(ggConfig.get("server_url")+"/rest_api/cbo-vehicles/hidden-vehicles",{account_id:ggConfig.get("account_id")},onGetDisableVins)}function onGetDisableVins(e){if(!e)return!1;ggStorage.setJSON("cbo_hidden_vehicles_vins",e,1800),disabledVins=e,$widgets.length>0&&($widgets.forEach((function(e){const t=e.data("vin");-1!==disabledVins.indexOf(t)&&e.remove()})),$widgets.forEach((function(e,t){const o=e.data("vin");-1!==disabledVins.indexOf(o)&&$widgets.splice(t,1)})))}function init(){if(adapter.event_based)return cssInit||(insertRawCss(widget_css),cssInit=!0),initGhostMode(),adapter.init(prepareWidget,rotator),!1;hideDisabledVehicles(),adapter.documentReady||!append()?"loading"!==document.readyState?(append(),setTimeout(initMutationObserver(),1e3)):document.addEventListener("readystatechange",(function(){"complete"===document.readyState&&(append(),setTimeout(initMutationObserver(),1e3))})):setTimeout(initMutationObserver(),1e3),initGhostMode(),initToolbarGhostMode(),initWidgetFontFamily()}var checkJQ=function(){return"function"!=typeof jQuery||"object"!=typeof jQuery.fn||0===jQuery("body").length?(setTimeout(checkJQ,300),!1):(init(),!1)};checkJQ()}();const self=window.ggLoader={isMobile:!1,disabled:!1,load:function(){let e="/toolbars/"+config.get("account_id")+"/toolbar_";self.isMobile&&(e+="m_"),e+=config.get("account_id")+"_"+config.get("toolbar_id")+".js",framework.getScript(e,!1,!config.get("debug"))},init:function(){return self.isMobile=framework.isMobile(),"ipad"===self.isMobile&&(self.isMobile=!1),!!config.get("toolbar_enabled")&&(!(!config.get("show_in_iframe")&&window!==window.top)&&(!(framework.ie()<8)&&((!self.isMobile||!config.get("disable_mobile"))&&(!framework.checkHeadless()&&("true"!=ggStorage.get("toolbar_blocked")&&(this.loadScripts(),!0))))))},loadScripts:function(){if("function"==typeof jQuery&&"object"==typeof jQuery.fn||config.get("prevent_jquery_load")||framework.getScript("/v3/jquery.js",!1,!0),!window.CBOLoader){let e="https://cdn.gubagoo.io"===ggConfig.get("toolbar_cdn")?"https://cbo-loader.gubagoo.io/loader.js":"https://cbo-loader-test.gubagoo.io/loader.js";e+="?t="+ggConfig.data.generated_at,framework.getScript(e,!1,!0)}self.load()}};window.ggTracking=new function(){const self=this;this.is_sent=!1,this.title="",this.browser="",this.platform="",this.referer="",this.lang="",this.resolution="",this.location="",this.account_id=!1,this.visitor_uid="",this.new_session=!1,this.img=!1,this.test_mode=!1,this.ip=!1,this.check_unique=!0,this.track_mode="json",this.append_params={},this.track_response=!1,this.trackers=[],this.fire_tracking_update=!1,this.default_trackers_params={};const TEST_MODE=window.location.href.indexOf("test_mode")>-1,CHAT_VERSION="3.0",KENSHOO_ID_REGEX=/(?:k_clickid=)([0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/,KENSHOO_GCLID_REGEX=/_k_(.*)_k_/,PROVIDERS=[{KENSHOO_ID:{method:function(){const e=window.location.href.match(KENSHOO_ID_REGEX);return e?e[1]:null}}},{KENSHOO_GCLID:{method:function(){const e=window.location.href.match(KENSHOO_GCLID_REGEX);return e?e[1]:null}}},{ORBEE:{method:function(){return"orbee"!==ggConfig.get("tracking_provider")?null:self.trackExternalProvider("ORBEE",null,null,10,(function(){if(window.orb_user_id)return window.orb_user_id;if(window.orb&&window.orb.bootloader){const e=window.orb.bootloader.getState();return e&&e.user&&e.user.id?window.orb.bootloader.getState().user.id:null}}))}}},{FCA_ID:{cookieName:"fca_adobe_id",method:"onload"}},{GA:{method:function(){if(!ggConfig.get("ga_tracking_codes"))return TEST_MODE&&console.info("NO GA CODES AVAILABLE"),!1;let e="_ga",t=ggConfig.get("ga_v4_measurement_ids");return t&&(e+="|"+Object.values(t).join("|").replaceAll("G-","_ga_")),self.trackExternalProvider("GA",e,null,30)}}},{ASC_DATALAYER:{method:function(){return self.trackExternalProvider("ASC_DATALAYER",null,null,3,(function(){if(window.asc_datalayer){let e={};return["store_name","oem_code","oem_brand","affiliation","language","currency","page_type","item_category","item_color","item_condition","item_fuel_type","item_id","item_inventory_date","item_make","item_model","item_number","item_payment","item_price","item_type","item_variant","item_year"].forEach((t=>{if(e[t]=window.asc_datalayer[t]||"",window.asc_datalayer.hasOwnProperty("items")&&window.asc_datalayer.items.length){e.items=[];for(let t in window.asc_datalayer.items)e.items.push(window.asc_datalayer.items[t])}})),JSON.stringify(e)}}))}}},{FBP:{cookieName:"_fbp",method:"poll",pollDuration:15}},{MARKETO:{cookieName:"_mkto_trk",method:"poll",pollDuration:15}},{ADOBE_ANALYTICS:{windowName:"window.adobeDataLayer && window.adobeDataLayer.ecid",method:"poll",pollDuration:15}},{ROIQ:{method:function(){return self.trackExternalProvider("ROIQ",null,null,15,(function(){const e=ggFramework.getCookie("_tsaccid"),t=ggFramework.getCookie("_tsid");if(e&&t)return e+"!"+t}))}}},{WHATCONVERTS:{method:function(){return self.trackExternalProvider("WHATCONVERTS",null,null,5,(function(){if(window.oqhaqzwnbjgcpycneryg){const e=window.oqhaqzwnbjgcpycneryg("wc_client_current");if(e){const t=e.split("+..+");let o=["lead_source","lead_medium","lead_campaign","lead_content","lead_keyword","gclid","landing_url","user_id","msclkid"],i=[];for(let e in o)t[e]&&(i[o[e]]=t[e]);return{...i}}}}))}}}];this.fireAnalytics=function(){PROVIDERS.forEach((function(e){const t=Object.keys(e)[0];for(let o in e){const i=e[o];let n;"onload"===i.method&&i.value?n=i.value:"function"==typeof i.method?n=i.method():"poll"===i.method&&(n=self.trackExternalProvider(t,i.cookieName||i.windowName,i.callback||null,i.pollDuration)),n&&(self.trackers[t]=n)}}))},this.trackExternalProvider=function(trackerName,searchFor,callback,pollDuration,customChecker){let trackingValue=customChecker&&"function"==typeof customChecker?customChecker():checker();if(trackingValue)return callback&&callback(),trackingValue;function checker(){if(!searchFor)return;if(-1!==searchFor.indexOf("window."))return eval(searchFor);const cookies=searchFor.split("|");let c=[];for(let e in cookies){let t=ggFramework.getCookie(cookies[e])||"";t&&(c[e]=t)}return c.join("|")}self.setIntervalX(trackerName,(function(){if(TEST_MODE&&console.info("LISTENER STARTED:",trackerName),trackingValue=customChecker&&"function"==typeof customChecker?customChecker():checker(),trackingValue){if(self.clearIntervalX(trackerName),trackerName in self.trackers)return;self.trackers[trackerName]=trackingValue;let e={...self.default_trackers_params,ta:"analytics_tag",ta_name:trackerName,ta_value:trackingValue};self.fire_tracking_update&&(e.fire_tracking_update=!0),ggFramework.sendRequest(self.getRequestUrl(),e,ggTracking.onTrackResponse),TEST_MODE&&console.info("LISTENER COMPLETED:",trackerName,e),callback&&callback()}}),(function(){TEST_MODE&&console.info("COULD NOT LOAD DATA FOR:",trackerName)}),1e3,pollDuration||60)},this.cookie_enabled=!0,this.init=function(e){this.account_id=e,this.getParams(),this.default_trackers_params={ver:CHAT_VERSION,__ggtruid:this.visitor_uid,ref:this.referer,href:this.location.toString(),res:this.resolution,t:(new Date).getTime()},this.fireAnalytics()},this.getParams=function(){document.title&&(this.page_title=this.title=document.title.replace(/^\s+|\s+$/g,"").substr(0,80)),document.referrer&&(this.referer=document.referrer),0===this.referer.toString().length&&(this.referer=this.getRequestParam("referer")),window.location&&(this.location=window.location),this.resolution=screen.width+"_"+screen.height,this.lang=(navigator.language||navigator.browserLanguage).substr(0,2),this.cookie_enabled=ggFramework.checkCookie(),this.parseUserAgent(navigator.userAgent),this.check_unique&&this.checkUnique()},this.getByPattern=function(e,t,o){for(var i in t){const o=t[i];if("("===o[0]&&")"===o[o.length-1]){if(null!=new RegExp(o,"i").exec(e))return i}else if(e.indexOf(o)>=0)return i}return o},this.parseUserAgent=function(e){e=e.toLowerCase();let t=this.getByPattern(e,{ip:"iphone",ipad:"ipad",an:"android",bb:"blackberry",nk:"nokia",ipod:"ipod",ox:"mac os x",w2:"windows nt 5.0",w3:"windows nt 5.2",xp:"windows nt 5.1",vi:"windows nt 6.0",w7:"windows nt 6.1",w8:"windows nt 6.2",w81:"windows nt 6.3",w10:"windows nt 10.0",chrome_os:"cros",wn:"windows",ub:"ubuntu",lx:"linux",un:"(?:unix|bsd)",mo:"(?:midp|mobile|j2me|symbian)"},"un");const o=this.getByPattern(e,{bt:"(?:bot|crawl|spider|GoogleImageProxy|Googlebot|Baiduspider|bingbot|MJ12bot|Slurp;|MegaIndex|AhrefsBot|DotBot|JobboerseBot|SemrushBot|YandexBot|/web/snippet/|YandexImages|msnbot|seoscanners.net|SEOkicks-Robot|facebookexternalhit|CheckMarkNetwork|BingPreview|BLEXBot|SeznamBot|BUbiNG|adscanner|Qwantify|SISTRIX Crawler|Mail.RU_Bot|VoilaBot|DomainCrawler|Ask Jeeves|Google Favicon)",ff:"firefox",ie11:"(?:trident/7.0;.*rv:11.0)",ie10:"msie 10",ie9:"msie 9",ie8:"msie 8",edge:"edge",ie:"msie",ch:"chrome",fi:"fban/fbios",fa:"fban/fb4a",ig:"instagram",op:"opera",sf:"(?:safari|khtml)",mo:"(?:blackberry|nokia|midp|mobile|j2me|symbian)"},"un");return"bt"===o&&"un"===t&&(t="bt"),"mo"===o&&"un"===t&&(t="mo"),this.platform=t,this.browser=o,{platform:t,browser:o}},this.refreshSession=function(){ggFramework.setCookie("__ggtrses",1,{expires:1800,path:"/",domain:window.location.hostname})},this.checkUnique=function(){const e=()=>{let e=ggFramework.getCookie("__ggtruid");const t=ggConfig.get("integration_provider"),o=ggConfig.get("integration_provider_id"),i=["ATUK","AT","NAKED_LIME","XTREAM","ATCA","KIA"];if(i.indexOf(t)>=0&&o){const i=ggFramework.getCookie("__ggipid");let n=self.getIntegrationMapData();i&&i!==o&&(n[t+"_"+o]?(e=n[t+"_"+o],self.setTrackingUUID(e)):e=!1),ggFramework.setCookie("__ggipid",o)}if(this.cookie_enabled){if(!e||e.toString().length<=0||"undefined"===e){if(e=this.guidGenerator(),i.indexOf(t)>=0&&o){let i=self.getIntegrationMapData();i[t+"_"+o]||(i[t+"_"+o]=e,ggFramework.setCookie("__gg_int_map",JSON.stringify(i)))}self.setTrackingUUID(e)}}else e=!1;this.visitor_uid=e;const n=ggFramework.getCookie("__ggtrses");this.new_session=!n||n.toString().length<=0,this.refreshSession()},t=new URLSearchParams(window.location.search).get("guba-redir-hash");if(t){const o=ggConfig.get("server_url")+"/chat/server/validateRedirectHash",i=(ggFramework.getCookie("__ggtruid")||this.guidGenerator(),{href:this.location,guba_redirect_hash:t,toolbar_id:ggConfig.get("toolbar_id"),toolbar_bundle:"v3"}),n=JSON.stringify({authentication:{accountId:ggConfig.get("account_id")},request:i}),a={gg_request:encodeURIComponent(n),time:(new Date).getTime(),timeout:5e3};ggFramework.sendRequest(o,a,(t=>{t&&t.gg_visitor_id&&self.setTrackingUUID(t.gg_visitor_id),e()}))}else e()},this.setTrackingUUID=function(e){ggFramework.setCookie("__ggtruid",e,{expires:63072e3,path:"/",domain:window.location.hostname})},this.getIntegrationMapData=function(){let e=ggFramework.getCookie("__gg_int_map");return e?JSON.parse(e):{}},this.onTrackResponse=function(e){e.visitor_guid&&(self.visitor_uid=e.visitor_guid),self.track_response=e},this.sendRequest=function(e,t){let o;if("json"===this.track_mode){o=this.prepareRequest(!0),o.data_type="json",window.location.hash&&(o.hash=window.location.hash.split("#").join("")),ggStorage&&ggStorage.enabled?o.firestamps=ggStorage.get("firestamps"):o.firestamps=ggFramework.getCookie("gg_firestamps"),window.ggStorage&&(o.tabs={po:ggStorage.get("po_tabs"),bb:ggStorage.get("bb_tab")}),window.gubagooCustomParams&&(o.custom_params=window.gubagooCustomParams);const i=e||ggTracking.onTrackResponse;t&&Object.entries(t).forEach((([e,t])=>{o[e]=t})),ggFramework.sendRequest(this.getRequestUrl(),o,i)}else this.img=new Image,o=this.prepareRequest(!0),this.img.src=this.getRequestUrl()+"?"+ggFramework.serialize(o);ggTracking.is_sent=!0},this.trackAction=function(e,t,o){this.refreshSession(),this.img=new Image;let i=this.prepareRequest(!1,e,t),n=this.getRequestUrl()+"?"+ggFramework.serialize(i),a={...o};["vr_step_id","vr_funnel_id","vr_session_id"].forEach((e=>{if(void 0===a[e]){const t=ggStorage.get(e);t&&(a[e]=t)}})),Object.keys(a).length>0&&(n=n+"&"+ggFramework.serialize(a)),ggHook.fire("on_track_action",{actionType:e,actionSubType:t}),this.img.src=n},this.prepareRequest=function(e,t,o){t=t||1;let i,n={ver:CHAT_VERSION,__ggtruid:this.visitor_uid,title:null,href:this.location.toString(),res:this.resolution,ta:t,toolbar_id:ggConfig.data.toolbar_id};if(this.append_params)for(i in this.append_params)this.append_params.hasOwnProperty(i)&&(n[i]=this.append_params[i]);if(!n.tag&&ggConfig.data.track_append_params){let e=ggConfig.data.track_append_params;for(i in e)e.hasOwnProperty(i)&&(n[i]=e[i])}return e&&(n.pl=this.platform,n.br=this.browser,n.lang=this.lang),this.referer&&(n.ref=this.referer),void 0!==o&&o&&(n.tast=o),window.ggLoader&&window.ggLoader.isMobile&&(n.mobile="1"),this.new_session&&(n.__ggtrns="1",this.new_session=!1),this.cookie_enabled||(n.cookie_disabled=!0),this.page_title&&(n.page_title=this.page_title),TEST_MODE&&this.ip&&(n.test="1",n.ip=this.ip),n.t=(new Date).getTime(),self.trackers&&(n.tas=self.trackers),n},this.setIntervalX=function(e,t,o,i,n){self.clearIntervalX(e);let a=0;self[e]&&self.clearIntervalX(e),self[e]=window.setInterval((function(){window.ggFramework&&(t(),++a>=n&&(window.clearInterval(self[e]),o&&o()))}),i)},this.clearIntervalX=function(e){self[e]&&window.clearInterval(self[e]),self[e]=null},this.getRequestUrl=function(){return ggConfig.get("server_url")+"/c/"+this.account_id+"/"},this.guidGenerator=function(){const e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)},t=[e(),e(),e(),e(),e()].join("-");return`${(new Date).getTime()}.${e()}${t}${e()}${e()}`},this.getVisitorGuid=function(){return this.visitor_uid},this.getRequestParam=function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))},this.offerFormDisplayed=function(e,t,o=!0){if(!e||["da","db","mobile_invite","bb"].includes(t))return;let i,n;if(o){const t=`${this.visitor_uid}_offersOpened`,o=JSON.parse(ggStorage.get(t))??[];i=!o.includes(e),i&&(o.push(e),ggStorage.set(t,JSON.stringify(o)))}n=o?o&&i?"offer_form_first_engagement":"offer_show_by_click":"offer_popup",this.trackAction(n,null,{offer_id:e,event_type:"page_overlay"})},this.publisherCtaParams=function(e,t,o,i,n){return{...e,event_action_result:i??"open",element_type:o??"promotion_tool",element_text:t??"",link_url:n??""}},this.publisherCtaClick=function(e,t,o,i){this.trackAction(i??"publisher_cta_click",null,this.publisherCtaParams(null,e,o??"form",t))},this.publisherLinkClick=function(e,t,o){this.trackAction("publisher_cta_click",null,this.publisherCtaParams(null,e,o??"form","open",t))},this.formSubmitClick=function(e,t){t.screenX&&this.publisherCtaClick(e,"submit")}},ggTracking.init(ggConfig.get("account_id")),self.init()||(ggTracking.track_mode="pixel"),ggConfig.get("track_append_params")&&(ggTracking.append_params=ggConfig.get("track_append_params")),window.ggVars&&ggVars.disable_tracking||(ggTracking.version="4.0.3",ggTracking.sendRequest())}(ggFramework,ggConfig))})();