123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- <!DOCTYPE html>
- <html lang="en"><head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
- <title>Impel | 360° WalkArounds®</title>
- <style>
- @import'https://fonts.googleapis.com/css?family=Lato:400,700,i,b&subset=latin&display=swap';#zoomout-btn,#zoomin-btn,#expand-btn,.cta-wrapper{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(3px)}#product-btn-array .float-btn-product,.cta-wrapper .float-btn-cta,#ui-toggle-array .pills-wrapper .pill-btn{display:flex;background:#FFFFFFBF 0% 0% no-repeat padding-box;text-transform:uppercase;cursor:pointer;font-size:12px;border:1px solid #fff;box-shadow:0 0 6px #00000029;backdrop-filter:blur(3px);padding:0px 10px;-webkit-backdrop-filter:blur(3px)}#product-btn-array .float-btn-product:hover,.cta-wrapper .float-btn-cta:hover,#ui-toggle-array .pills-wrapper .pill-btn:hover{background:#fff 0% 0% no-repeat padding-box}.ui-btn-wrapper{background:#FFFFFFBF 0% 0% no-repeat padding-box;box-shadow:0 0 6px #00000029;border:1px solid #fff;backdrop-filter:blur(3px);border-radius:50%;position:absolute;right:10px;top:10px;width:32px;height:32px;align-items:center;justify-content:center;cursor:pointer;opacity:1;-webkit-backdrop-filter:blur(3px)}.ui-btn-wrapper:hover{background:#fff 0% 0% no-repeat padding-box;border:1px solid #fff}.ui-btn-wrapper .btn-tooltip{visibility:hidden;position:absolute;left:-30px;top:40px;padding:5px;border:rgba(255,255,255,.38) solid 0.0625rem;border-radius:0.125rem;background-color:#fff;box-shadow:0px 0px 5px rgba(0,0,0,.2);font-size:12px;white-space:nowrap;color:#000;z-index:1}.ui-btn-wrapper .btn-tooltip:after{content:"";top:-6px;left:40px;position:absolute;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #fff}.ui-btn-wrapper .btn-tooltip.hover{visibility:visible}.ui-btn-wrapper .center-btn-tooltip{left:-5px}.ui-btn-wrapper .center-btn-tooltip:after{left:15px}#lightbox-overlay{display:none;position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);z-index:0}.lightbox-header{height:40px;box-shadow:0 0 20px rgba(0,0,0,.1);border-radius:10px 10px 0 0}.lightbox-header span{position:relative;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);float:left;padding-left:15px;font-weight:bold;color:#000;font-size:12px;line-height:36px}.close-btn{background:url("ui/x.svg?_=d7eaac77271710") no-repeat scroll 0 0 transparent;cursor:pointer;height:22px;position:relative;top:50%;float:right;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);width:18px;padding-right:17px}.close-btn:hover,.close-btn:focus{background:url("ui/x_bold.svg?_=d7eaac77271710") no-repeat scroll 0 0 transparent}.lightbox-container{border-radius:10px}.feature-card{position:relative;cursor:pointer}.feature-card-image{border-radius:5px 5px 0 0;width:100%;height:56.43%;background-size:cover}.f-i-quiz-card-image{height:100%}.title{width:100%;height:43.57%;box-sizing:border-box;background-color:#f2f2f2;border-radius:0 0 5px 5px}.f-i-quiz-card-title{display:none;height:0%}.title>.text-container{position:relative;top:50%;transform:translateY(-50%);-webkit-transform:translateY(-50%);overflow:hidden;text-overflow:ellipsis}.text-container>.text{display:-webkit-box;overflow:hidden;line-height:1.5;text-align:center;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.photo-card{border-radius:5px;background-size:cover;cursor:pointer}.number-circle{position:absolute;border:1px solid #fff;border-radius:50%;background:rgba(0,0,0,.7);text-align:center;font-weight:bold;color:#fff}.play-icon{position:absolute;background:url("ui/icon-playButton.svg?_=d7eaac77271710");background-repeat:no-repeat}.unselectable{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.small-cards .photo-card{width:100px;height:75px}.small-cards .feature-card{width:100px;height:100px}.small-cards .title>.text-container{max-height:24px}.small-cards .text-container>.text{padding:0 5px;font-size:10px;line-height:12px}.small-cards .number-circle{top:13.215%;left:35%;width:30px;height:30px;font-size:12px;line-height:30px}.small-cards .play-icon{top:13.215%;left:35%;width:30px;height:30px;background-size:30px 30px}.medium-cards .photo-card{width:125px;height:93.75px}.medium-cards .feature-card{width:125px;height:125px}.medium-cards .title>.text-container{max-height:28px}.medium-cards .text-container>.text{padding:0 5px;font-size:12px;line-height:14px}.medium-cards .number-circle{top:14.215%;left:36%;width:35px;height:35px;font-size:14px;line-height:37.5px}.medium-cards .play-icon{top:14.215%;left:36%;width:35px;height:35px;background-size:35px 35px}.number-circle>i{position:relative}#lb-container{display:none;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%);position:absolute;top:0;left:50%;width:100%;height:100%;background-color:#fff;z-index:11}#lb-container .lightbox-content{background-color:transparent;height:calc(100% - 40px);border-radius:0 0 10px 10px;overflow:hidden}#lb-container .lightbox-content::-webkit-scrollbar{display:none}#lb-container .lightbox-content{-ms-overflow-style:none;scrollbar-width:none}#lb-container .scrollable{overflow:auto;overflow-x:hidden;height:100%}#lb-container .scrollable{-ms-overflow-style:none;scrollbar-width:none}#lb-container .scrollable::-webkit-scrollbar{width:0 !important}#lb-container .grid-container{display:none;box-sizing:border-box;height:100%;padding-top:15px;justify-content:center;grid-gap:15px}#lb-container .lightbox-header .header-button{display:none;position:relative;top:50%;height:22px;width:22px;transform:translateY(-50%);background-size:cover;cursor:pointer}#lb-container .lightbox-header .back-btn{background:url("ui/icon_backButton.svg?_=d7eaac77271710") no-repeat scroll 0 0 transparent;float:left;margin-left:17px}#lb-container .lightbox-header .back-btn:hover,#lb-container .lightbox-header .back-btn:focus{background:url("ui/icon_backButton_hover.svg?_=d7eaac77271710") no-repeat scroll 0 0 transparent}#lb-container .lightbox-header .close-btn{background:url("ui/x.svg?_=d7eaac77271710") no-repeat scroll 0 0 transparent;float:right;padding-right:17px}#lb-container .lightbox-header .close-btn:hover,#lb-container .lightbox-header .close-btn:focus{background:url("ui/x_bold.svg?_=d7eaac77271710") no-repeat scroll 0 0 transparent}.grid-container{display:grid;box-sizing:border-box;height:100%;padding-top:15px;justify-content:center;grid-gap:15px;overflow:scroll}.grid-container::-webkit-scrollbar{width:0 !important}#zoomout-btn,#zoomin-btn,#expand-btn,.cta-wrapper{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(3px)}#product-btn-array .float-btn-product,.cta-wrapper .float-btn-cta,#ui-toggle-array .pills-wrapper .pill-btn{display:flex;background:#FFFFFFBF 0% 0% no-repeat padding-box;text-transform:uppercase;cursor:pointer;font-size:12px;border:1px solid #fff;box-shadow:0 0 6px #00000029;backdrop-filter:blur(3px);padding:0px 10px;-webkit-backdrop-filter:blur(3px)}#product-btn-array .float-btn-product:hover,.cta-wrapper .float-btn-cta:hover,#ui-toggle-array .pills-wrapper .pill-btn:hover{background:#fff 0% 0% no-repeat padding-box}.ui-btn-wrapper{background:#FFFFFFBF 0% 0% no-repeat padding-box;box-shadow:0 0 6px #00000029;border:1px solid #fff;backdrop-filter:blur(3px);border-radius:50%;position:absolute;right:10px;top:10px;width:32px;height:32px;align-items:center;justify-content:center;cursor:pointer;opacity:1;-webkit-backdrop-filter:blur(3px)}.ui-btn-wrapper:hover{background:#fff 0% 0% no-repeat padding-box;border:1px solid #fff}.ui-btn-wrapper .btn-tooltip{visibility:hidden;position:absolute;left:-30px;top:40px;padding:5px;border:rgba(255,255,255,.38) solid 0.0625rem;border-radius:0.125rem;background-color:#fff;box-shadow:0px 0px 5px rgba(0,0,0,.2);font-size:12px;white-space:nowrap;color:#000;z-index:1}.ui-btn-wrapper .btn-tooltip:after{content:"";top:-6px;left:40px;position:absolute;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #fff}.ui-btn-wrapper .btn-tooltip.hover{visibility:visible}.ui-btn-wrapper .center-btn-tooltip{left:-5px}.ui-btn-wrapper .center-btn-tooltip:after{left:15px}.hotspot_button,[id^=krpanoviewer]>div:nth-child(1)>div:nth-child(2)>div:not([style*="black_circle.png"]):not([style*="custom_overlay.png"]),#spincar-view a{cursor:pointer}[id^=krpanoviewer]{cursor:url("ui/spin_pano_cursors/cursor-pano.svg") 21.5 21.5,url("ui/spin_pano_cursors/cursor-pano.png") 21.5 21.5,grab}html.dragging [id^=krpanoviewer]{cursor:url("ui/spin_pano_cursors/cursor-pano-drag.svg") 16.5 16.5,url("ui/spin_pano_cursors/cursor-pano-drag.png") 16.5 16.5,grabbing}#spinContainer{cursor:url("ui/spin_pano_cursors/cursor-spin.svg") 22 14.5,url("ui/spin_pano_cursors/cursor-spin.png") 22 14.5,grab}html.dragging #spinContainer{cursor:url("ui/spin_pano_cursors/cursor-spin-drag.svg") 16.5 10.5,url("ui/spin_pano_cursors/cursor-spin-drag.png") 16.5 10.5,grabbing}.small-cursor [id^=krpanoviewer]{cursor:url("ui/spin_pano_cursors/cursor-pano-small.svg") 16 16,url("ui/spin_pano_cursors/cursor-pano-small.png") 16 16,grab}html.dragging .small-cursor [id^=krpanoviewer]{cursor:url("ui/spin_pano_cursors/cursor-pano-drag-small.svg") 13 13,url("ui/spin_pano_cursors/cursor-pano-drag-small.png") 13 13,grabbing}.small-cursor #spinContainer{cursor:url("ui/spin_pano_cursors/cursor-spin-small.svg") 16 14.5,url("ui/spin_pano_cursors/cursor-spin-small.png") 16 14.5,grab}html.dragging .small-cursor #spinContainer{cursor:url("ui/spin_pano_cursors/cursor-spin-drag-small.svg") 13 12.5,url("ui/spin_pano_cursors/cursor-spin-drag-small.png") 13 12.5,grabbing}html{width:100%;height:100%}html.dragging{cursor:grabbing}body{width:100%;height:100%;margin:0;overflow:hidden;background:transparent}body *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div,h1,h2,h3,h4,h5,h6,iframe,img,p,ul{display:block}.fl{float:left}.fr{float:right}.center_outer{position:absolute;height:100%;width:100%}#spincar-view{text-align:left;position:relative;z-index:1;display:block;overflow:hidden;margin-left:auto;margin-right:auto;background:transparent;font-family:"Lato",sans-serif;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);-o-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}#hero-container{position:relative;z-index:2}#hero-container span{display:inline-block}#hero-view{top:0;left:0;width:100%;position:absolute;z-index:0}#hero-view>*{width:100%;height:100%}.background{background:#000;width:100%;height:100%;position:absolute;top:0;left:0}.transparent-background{opacity:.5;background:#000;width:100%;height:100%;position:absolute;top:0;left:0}.panorama{background-color:#000}.panorama.hidden{display:none}.panorama .hotspot{-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);-o-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.panorama div:nth-child(1)>div:nth-child(2)>div[style*="/tmp.png"]{background:none !important}#spinContainer{width:100%;height:100%}#spinContainer>canvas{width:100%;height:100%;-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0)}#spinContainer .imageCover{width:100%;height:100%;left:0;top:0;position:absolute;display:block;background:#000;opacity:0;z-index:20;backface-visibility:hidden}[id^=krpanoviewer]>div:nth-child(1)>div:nth-child(2)>div{z-index:20 !important}[id^=krpanoviewer]>div:nth-child(1)>div:nth-child(2)>div:not([style*="black_circle.png"]):not([style*="custom_overlay.png"]){background-image:none !important}[id^=krpanoviewer]>div:nth-child(1)>div:nth-child(2)>div[style*="black_circle.png"]{pointer-events:none !important}[id^=krpanoviewer]>div:nth-child(1)>div:nth-child(2)>div[style*="custom_overlay.png"]{pointer-events:none !important}[id^=krpanoviewer]>div:nth-child(1)>div:nth-child(2)>div:hover{z-index:21 !important}#background-box{position:absolute;display:none;bottom:0;right:0;width:100%;z-index:1;height:7rem;padding:1rem;box-sizing:border-box}#background-box.mobile{display:block}#background-box>div{height:100%;border-radius:1rem;background-color:#666}.hotspot_button{width:26px;height:26px;position:absolute;z-index:21;-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);-o-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.hotspot{width:26px;min-width:25px}.hotspot img{width:100%;max-height:100%}.tooltip>.hovered{display:none}.tooltip>.hovered>.name{position:absolute;bottom:130%;padding:5px;border:rgba(255,255,255,.38) solid 0.0625rem;border-radius:0.125rem;background-color:#fff;white-space:nowrap;box-shadow:0px 0px 5px rgba(0,0,0,.2);font-size:10px;color:#000}.tooltip>.hovered:after{content:"";position:absolute;bottom:100%;margin-left:35%;border-width:5px;border-style:solid;border-color:#fff transparent transparent transparent}.pulse{border-radius:50%}.unhovered,.hovered{width:26px;height:26px}#standalone-viewer{-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%);background-color:#191d21;position:absolute;left:50%;top:0;display:none;z-index:3;align-items:center;justify-content:center}#standalone-viewer.active{display:flex}#standalone-viewer-image{max-width:100%;max-height:100%}#drawer{z-index:8}#drawer-background{position:absolute;z-index:-1;width:100%;height:100%;-moz-transform:scaleY(-1);-o-transform:scaleY(-1);-webkit-transform:scaleY(-1);transform:scaleY(-1);background-position:bottom;background-size:cover;filter:grayscale(100%);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);-moz-backdrop-filter:blur(10px);-o-backdrop-filter:blur(10px)}.drawer-background-white:before{content:"";z-index:0;position:absolute;width:100%;height:100%;background:rgba(255,255,255,.7);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);-moz-backdrop-filter:blur(10px);-o-backdrop-filter:blur(10px)}.drawer-background-black:before{content:"";z-index:0;position:absolute;width:100%;height:100%;background:#191d21}.drawer-carousel{display:-moz-box;z-index:8;display:-webkit-box;width:100%;overflow-x:auto;overflow-y:hidden;white-space:nowrap;align-content:center;box-sizing:border-box;-ms-overflow-style:none;scrollbar-width:none}.drawer-carousel::-webkit-scrollbar{display:none;width:0 !important}.drawer-carousel-center{display:flex;justify-content:center}.drawer-carousel-right,.drawer-carousel-left{display:none;position:absolute;top:50%;transform:translate(0, -50%)}.drawer-carousel-right svg:hover,.drawer-carousel-left svg:hover{transform-origin:center;transition:ease-out .3s;transform:scale(1.1)}.drawer-carousel-left{opacity:var(--photo-left-arrow-opacity);left:15px}.drawer-carousel-right{opacity:var(--photo-right-arrow-opacity);right:15px}.drawer-carousel-nav{cursor:pointer}.drawer-carousel-card{box-sizing:border-box;border:2px solid #fff;cursor:pointer;position:relative;margin:10px 0 10px 10px;border-radius:5px;transition:transform .2s;background-position:center;background-repeat:no-repeat;background-size:cover;-webkit-box-shadow:0px 0px 10px rgba(0,0,0,.502);-moz-box-shadow:0px 0px 10px rgba(0,0,0,.502);box-shadow:0px 0px 10px rgba(0,0,0,.502)}.drawer-carousel-card:hover{transform:scale(1.03)}.drawer-carousel-card:last-child{margin:10px 10px 10px 10px}.drawer-carousel-card-icon{background-repeat:no-repeat;background-color:#fff;border-radius:50%;background-position:center;position:absolute;pointer-events:none;left:50%;transform:translateX(-50%)}.drawer-carousel-card-icon>img{width:15px;margin:auto;position:relative;top:50%;transform:translateY(-50%)}#Videos>div.drawer-carousel-card-icon>img,#Test\ Drive>div.drawer-carousel-card-icon>img{left:3%}.drawer-carousel-card-count{background-color:#fff;font-weight:bold;display:flex;border-radius:50%;position:absolute;pointer-events:none;left:50%;transform:translateX(-50%)}.drawer-carousel-card-count>span{margin:auto;position:relative;top:3%}.drawer-carousel-card-text{font-family:"Lato",sans-serif;font-size:18px;font-weight:bold;width:calc(100% - 20px);color:#fff;text-align:center;text-transform:capitalize;position:absolute;left:50%;transform:translateX(-50%);pointer-events:none;overflow-wrap:break-word;white-space:normal;-ms-hyphens:auto;-moz-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;display:-webkit-box;-webkit-line-clamp:var(--cardTextLineClamp);-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.drawer-carousel-card-text-carfax{text-transform:uppercase}.carousel-startup-animation{animation:startup-animation 2s cubic-bezier(0.05, 0.38, 0.69, 1.05);-webkit-animation:startup-animation 2s cubic-bezier(0.05, 0.38, 0.69, 1.05);-moz-animation:startup-animation 2s cubic-bezier(0.05, 0.38, 0.69, 1.05);-o-animation:startup-animation 2s cubic-bezier(0.05, 0.38, 0.69, 1.05)}@keyframes startup-animation{0%{margin-left:100%}20%{margin-left:100%}75%{margin-left:-2%}100%{margin-left:0}}@-webkit-keyframes startup-animation{0%{margin-left:100%}20%{margin-left:100%}75%{margin-left:-2%}100%{margin-left:0}}@-moz-keyframes startup-animation{0%{margin-left:100%}20%{margin-left:100%}75%{margin-left:-2%}100%{margin-left:0}}@-o-keyframes startup-animation{0%{margin-left:100%}20%{margin-left:100%}75%{margin-left:-2%}100%{margin-left:0}}.carousel-card-startup-animation{animation:startup-animation-cards 2s cubic-bezier(0.05, 0.38, 0.69, 1.05);-webkit-animation:startup-animation-cards 2s cubic-bezier(0.05, 0.38, 0.69, 1.05);-moz-animation:startup-animation-cards 2s cubic-bezier(0.05, 0.38, 0.69, 1.05);-o-animation:startup-animation-cards 2s cubic-bezier(0.05, 0.38, 0.69, 1.05)}@keyframes startup-animation-cards{0%{margin-left:100px}20%{margin-left:100px}75%{margin-left:5px}100%{margin-left:15px}}@-webkit-keyframes startup-animation-cards{0%{margin-left:100px}20%{margin-left:100px}75%{margin-left:5px}100%{margin-left:15px}}@-moz-keyframes startup-animation-cards{0%{margin-left:100px}20%{margin-left:100px}75%{margin-left:5px}100%{margin-left:15px}}@-o-keyframes startup-animation-cards{0%{margin-left:100px}20%{margin-left:100px}75%{margin-left:5px}100%{margin-left:15px}}.carousel-arrow-startup-animation{animation:startup-animation-arrows 2s linear;-webkit-animation:startup-animation-arrows 2s linear;-moz-animation:startup-animation-arrows 2s linear;-o-animation:startup-animation-arrows 2s linear}@keyframes startup-animation-arrows{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes startup-animation-arrows{0%{opacity:0}100%{opacity:1}}@-moz-keyframes startup-animation-arrows{0%{opacity:0}100%{opacity:1}}@-o-keyframes startup-animation-arrows{0%{opacity:0}100%{opacity:1}}.sm-label{display:none}@media(max-width: 583px){.drawer-carousel-card-text.lg-label{display:none}.drawer-carousel-card-text.sm-label{display:block}}@media(max-width: 479px){.drawer-carousel-card{margin:5px 0 5px 5px}.drawer-carousel-card.active{border:3px solid #fff;margin:8px 0 8px 8px}.drawer-carousel-card:last-child{margin:5px 5px 5px 5px}.drawer-carousel-card-text.lg-label{display:none}.drawer-carousel-card-text.sm-label{display:block}.drawer-carousel-card-icon{display:none}.drawer-carousel-card-count{display:none}.drawer-carousel-card-text{margin-top:0;font-size:10px;width:calc(100% - 10px)}@keyframes startup-animation-cards{0%{margin-left:100px}20%{margin-left:100px}75%{margin-left:5px}100%{margin-left:10px}}@-webkit-keyframes startup-animation-cards{0%{margin-left:100px}20%{margin-left:100px}75%{margin-left:5px}100%{margin-left:10px}}@-moz-keyframes startup-animation-cards{0%{margin-left:100px}20%{margin-left:100px}75%{margin-left:5px}100%{margin-left:10px}}@-o-keyframes startup-animation-cards{0%{margin-left:100px}20%{margin-left:100px}75%{margin-left:5px}100%{margin-left:10px}}}#ui-container{position:absolute}.spincar-logo{background:url("ui/logo.svg?_=d7eaac77271710");background-repeat:no-repeat;width:110px;height:20px}.ui-view-top-left{display:flex;position:absolute;top:10px;left:10px}#change-view-btn{cursor:pointer;z-index:4}#change-view-btn #change-view-wrapper{display:flex;height:32px;max-width:200px;min-width:75px;justify-content:space-evenly;border-radius:16px;box-shadow:0 0 6px #00000029;background-color:var(--main-bg-color);color:#fff;align-items:center}#change-view-btn #change-view-wrapper .action-icon{margin-left:10px;width:15px;height:15px;background:url("ui/eye.svg?_=d7eaac77271710");background-position:center;background-repeat:no-repeat;background-size:15px}#change-view-btn #change-view-wrapper .action-icon.hover{background:url("ui/eye_hover.svg?_=d7eaac77271710");background-position:center;background-repeat:no-repeat}#change-view-btn #change-view-wrapper .action-wrapper{margin:0 10px 0 5px}#change-view-btn #change-view-wrapper .action-wrapper span{text-transform:uppercase;font-family:"Lato",sans-serif;font-size:10px;font-weight:bold;-webkit-box-align:center;-webkit-box-pack:center;display:-webkit-box}#change-view-btn #change-view-wrapper.hover{background-color:#fff;color:#000}#change-view-btn #change-view-dropdown.is-visible{display:block}#change-view-btn #change-view-dropdown{display:none;position:absolute;transform:translate(10px, 10px)}#change-view-btn #change-view-dropdown #options-wrapper{padding:5px;border-radius:3px;display:flex;flex-direction:column;background:#fff 0% 0% no-repeat padding-box;box-shadow:10px 0px 30px #0000004b;opacity:1;width:180px;overflow-y:scroll}#change-view-btn #change-view-dropdown #options-wrapper::-webkit-scrollbar{width:0 !important}#change-view-btn #change-view-dropdown #options-wrapper .custom-option{cursor:pointer;font-size:10px;height:36px;text-transform:uppercase;line-height:36px;border-radius:5px}#change-view-btn #change-view-dropdown #options-wrapper .custom-option:hover{background:#efefef 0% 0% no-repeat padding-box}#change-view-btn #change-view-dropdown #options-wrapper .custom-option .option-label{padding:0 10px}#change-view-btn #change-view-dropdown #options-wrapper.five-rows{max-height:212px}#change-view-btn #change-view-dropdown #options-wrapper.three-rows{max-height:106px}#change-view-btn #change-view-dropdown::before{content:"";position:absolute;width:0;height:0;bottom:100%;left:.5em;border:.25rem solid transparent;border-top:none;border-bottom-color:#fff;filter:drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, 0.1))}#ui-toggle-array{display:none;z-index:4;margin-left:10px}#ui-toggle-array .pills-wrapper{@extends %ui-wrapper;margin-right:2px;display:flex;height:32px}#ui-toggle-array .pills-wrapper .pill-btn{display:none;margin-right:2px;align-items:center}#ui-toggle-array .pills-wrapper .pill-btn .pill-toggle{width:15px;height:15px;margin-right:5px}#ui-toggle-array .pills-wrapper .pill-btn .pill-toggle .checkmark-circle-off{fill:#fff}#ui-toggle-array .pills-wrapper .pill-btn .pill-toggle .checkmark-outer-circle{display:none;fill:#ccc}#ui-toggle-array .pills-wrapper .pill-btn .pill-label-wrapper{height:32px;line-height:32px}#ui-toggle-array .pills-wrapper .pill-btn .pill-label-wrapper .pill-label{font-size:10px;font-weight:bold;text-transform:uppercase}#ui-toggle-array .pills-wrapper .pill-btn.left-round{border-top-left-radius:16px;border-bottom-left-radius:16px}#ui-toggle-array .pills-wrapper .pill-btn.right-round{border-top-right-radius:16px;border-bottom-right-radius:16px}.cta-wrapper{position:absolute;display:none;bottom:15px;right:15px;z-index:6}.cta-wrapper .float-btn-cta{display:block;height:32px;border-radius:16px;background-color:var(--main-bg-color);color:#fff}.cta-wrapper .float-btn-cta span{text-transform:uppercase;font-family:"Lato",sans-serif;font-size:10px;font-weight:bold;-webkit-box-align:center;-webkit-box-pack:center;display:-webkit-box}.cta-wrapper .float-btn-cta.hover{background-color:#fff;color:#000}#close-button-container{z-index:14;display:none}#close-button-container .btn-icon{width:12px;height:12px;background:url(ui/icon_x.svg);background-position:center;background-repeat:no-repeat}#close-button-container .photoviewer-btn-icon{width:12px;height:12px;background:url(ui/icon_x_white.svg);background-position:center;background-repeat:no-repeat}#close-button-container.hover>.photoviewer-btn-icon{width:12px;height:12px;background:url(ui/icon_x.svg);background-position:center;background-repeat:no-repeat}.photoviewer-btn-wrapper{background-color:#000;border-color:#fff}.photoviewer-btn-wrapper.hover{background-color:#fff}#expand-btn{z-index:7;display:flex}#expand-btn .expand-icon{width:12px;height:12px;background:url(ui/icon_expand.svg);background-position:center;background-repeat:no-repeat}#expand-btn .fullscreen-view{width:12px;height:12px;background:url(ui/icon_x.svg);background-position:center;background-repeat:no-repeat}#expand-btn #expand-tooltip{visibility:hidden;position:absolute;right:3px;top:40px;padding:5px;border:rgba(255,255,255,.38) solid 0.0625rem;border-radius:0.125rem;background-color:#fff;box-shadow:0px 0px 5px rgba(0,0,0,.2);font-size:12px;white-space:nowrap;color:#000;z-index:1}#expand-btn #expand-tooltip:after{content:"";top:-6px;right:7px;position:absolute;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #fff}#expand-btn #expand-tooltip.hover{visibility:visible}#zoomin-btn{z-index:7;display:flex;position:relative;right:0px;top:0px}#zoomin-btn .zoomin-icon{width:12px;height:12px;background:url(ui/icon_zoomin.svg);background-position:center;background-repeat:no-repeat}#zoomout-btn{z-index:7;display:flex;position:relative;margin-top:8px;right:0px;top:0px}#zoomout-btn .zoomout-icon{width:12px;height:12px;background:url(ui/icon_zoomout.svg);background-position:center;background-repeat:no-repeat}#zoom-btns{z-index:7;position:absolute;right:10px}#language-toggle-btn{display:none;z-index:7;right:60px}#language-toggle-btn #language-toggle-text{font-weight:bold;font-size:10px}#product-btn-array{position:absolute;bottom:10px;z-index:5}#product-btn-array.left-align{left:10px}#product-btn-array.center-align{transform:translate(-50%);margin-right:-50%;left:50%}#product-btn-array .float-btn-product{height:32px;margin-right:2px}.navigation-button,#viewer-prev-button,#viewer-next-button{background-repeat:no-repeat;position:absolute;top:50%;margin-top:-20px;cursor:pointer;display:none;z-index:7;-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}#viewer-next-button{width:30px;height:62px;background:url(ui/icon_photo_rightButton.svg);background-position:center;background-repeat:no-repeat;opacity:1;transition:opacity 1s;right:10px}#viewer-next-button.fade{opacity:0}#viewer-next-button.hover{width:30px;height:62px;background:url(ui/icon_photo_rightButton_hover.svg);background-position:center;background-repeat:no-repeat;opacity:1;transition:opacity 1s}#viewer-next-button.hover.fade{opacity:0}#viewer-prev-button{width:30px;height:62px;background:url(ui/icon_photo_leftButton.svg);background-position:center;background-repeat:no-repeat;opacity:1;transition:opacity 1s;left:10px}#viewer-prev-button.fade{opacity:0}#viewer-prev-button.hover{width:30px;height:62px;background:url(ui/icon_photo_leftButton_hover.svg);background-position:center;background-repeat:no-repeat;opacity:1;transition:opacity 1s}#viewer-prev-button.hover.fade{opacity:0}#viewer-play-button{background:url("ui/icon-playButton.svg?_=d7eaac77271710");background-repeat:no-repeat;position:absolute;width:140px;height:140px;left:50%;margin-left:-65px;top:50%;margin-top:-65px;cursor:pointer;display:none;z-index:7}#viewer-play-button.hover{background:url("ui/icon-playButton-hover.svg?_=d7eaac77271710");background-repeat:no-repeat}.text-label{margin:auto;font-size:10px;font-weight:bold;text-transform:uppercase;opacity:1}.left-btn-border{border-top-left-radius:20px;border-bottom-left-radius:20px}.right-btn-border{border-top-right-radius:20px;border-bottom-right-radius:20px}.active-down-arrow{border-top:5px solid #000}.inline-div{float:left}.label-left{margin-right:3px;float:left}#lead-form-container{-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%);top:0;left:50%;width:100%;height:100%;visibility:hidden;background-color:#fff;position:absolute;overflow:auto;z-index:9}#lead-form-container .lead-form-btn,#lead-form-container .lead-form-submitted .lead-form-close-btn{width:150px;height:50px;color:#000;font-size:15px;font-weight:bold;text-align:center;text-transform:uppercase;margin-left:50%;-webkit-transform:translate(-50%, 0);-moz-transform:translate(-50%, 0);-ms-transform:translate(-50%, 0);-o-transform:translate(-50%, 0);transform:translate(-50%, 0);border:1px solid #000;border-radius:30px;background-color:#fff;cursor:pointer}#lead-form-container #lead-form{position:relative;top:2%}#lead-form-container #lead-form .lead-form-call-btn{display:none;width:106px;height:30px;background:rgba(0,0,0,.502) 0% 0% no-repeat padding-box;box-shadow:0px 0px 6px rgba(0,0,0,.161);border:1px solid #fff;border-radius:30px;margin-left:50%;margin-bottom:15px;cursor:pointer;-webkit-transform:translate(-50%, 0);-moz-transform:translate(-50%, 0);-ms-transform:translate(-50%, 0);-o-transform:translate(-50%, 0);transform:translate(-50%, 0)}#lead-form-container #lead-form .lead-form-call-btn .call-icon{width:15px;height:15px;margin:9px 0px 0px 6px;background:url("ui/icon-phone-white.svg?_=d7eaac77271710");background-repeat:no-repeat;float:left}#lead-form-container #lead-form .lead-form-call-btn .phone-number{float:left;text-align:center;font-size:12px;letter-spacing:0;line-height:30px;color:#fff;opacity:1}#lead-form-container #lead-form .lead-form-header{font-size:20px;font-weight:bold;text-align:center}#lead-form-container #lead-form .lead-form-textfield{margin:30px;column-count:2}#lead-form-container #lead-form .lead-form-label{color:#000;font-size:12px;font-weight:bold;text-transform:uppercase}#lead-form-container #lead-form .lead-form-input{width:97%;height:50px;font-size:20px;margin:5px 0 10px 0;padding-left:10px;background-color:#fcfcfc;border:1px solid #eaeaea;opacity:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:initial;-khtml-user-select:initial;-moz-user-select:initial;-ms-user-select:initial;user-select:initial}#lead-form-container #lead-form .lead-form-e-price-wrapper{display:flex;justify-content:center;margin-bottom:15px}#lead-form-container #lead-form .lead-form-e-price-wrapper .lead-form-e-price-btn{width:150px;height:50px;color:#000;font-size:15px;font-weight:bold;text-align:center;text-transform:uppercase;border:1px solid #000;border-radius:30px;background-color:#fff;cursor:pointer}#lead-form-container #lead-form .lead-form-e-price-wrapper .lead-form-e-price-btn.hover{color:#fff;background-color:var(--main-bg-color)}#lead-form-container .lead-form-submitted{display:none;text-align:center;font-size:20px;margin-top:10%;padding:15px}#lead-form-container .lead-form-submitted p{margin:0}#lead-form-container .lead-form-submitted .text-margin{margin:2%}#lead-form-container .lead-form-submitted .lead-form-close-btn{line-height:50px}#lead-form-container .lead-form-submitted .lead-form-close-btn.hover{color:#fff;background:#000}#lead-form-container::-webkit-scrollbar{display:none}#lead-form-container{-ms-overflow-style:none;scrollbar-width:none}#detail-feature-viewer{display:none;height:100%}#detail-feature-viewer .detail-feature-side-button{position:absolute;bottom:calc(50% - 30px)}#detail-feature-viewer .detail-feature-side-button #detail-feature-prev{width:30px;height:60px;background:url(ui/icon_leftButton.svg);background-position:center;background-repeat:no-repeat}#detail-feature-viewer .detail-feature-side-button #detail-feature-prev:hover{width:30px;height:60px;background:url(ui/icon_leftButton_hover.svg);background-position:center;background-repeat:no-repeat}#detail-feature-viewer .detail-feature-side-button #detail-feature-next{width:30px;height:60px;background:url(ui/icon_rightButton.svg);background-position:center;background-repeat:no-repeat}#detail-feature-viewer .detail-feature-side-button #detail-feature-next:hover{width:30px;height:60px;background:url(ui/icon_rightButton_hover.svg);background-position:center;background-repeat:no-repeat}#detail-feature-viewer .position-right{right:5px}#detail-feature-viewer .position-left{left:5px}#detail-feature-viewer .detail-feature-content{padding:0 40px;width:100%}#detail-feature-viewer .detail-feature-content .detail-feature-body{margin:20px 0}#detail-feature-viewer .detail-feature-content .detail-feature-body #detail-feature-title{font-family:"Lato",sans-serif;line-height:18px;color:#111;font-size:16px}#detail-feature-viewer .detail-feature-content .detail-feature-body #detail-feature-description,#detail-feature-viewer .detail-feature-content .detail-feature-body #detail-feature-description-long{font-family:"Lato",sans-serif;line-height:18px;color:#888;font-size:14px}#detail-feature-viewer .detail-feature-content .detail-feature-media{display:flex;align-items:center;flex-direction:column;justify-content:center;position:relative}#detail-feature-viewer .detail-feature-content .detail-feature-media #detail-feature-img{width:100%;object-fit:cover;object-position:50% 50%;border-radius:5px}#detail-feature-viewer .detail-feature-content .detail-feature-media #detail-feature-play-btn{display:none;background:url("ui/icon_playButton.svg");background-repeat:no-repeat;position:absolute;width:120px;height:120px;cursor:pointer;background-position:center}#detail-feature-viewer .detail-feature-content .detail-feature-media #detail-feature-play-btn:hover{background:url("ui/icon_playButton_hover.svg")}#detail-feature-viewer .detail-feature-content .detail-feature-media #detail-feature-disclaimer,#detail-feature-viewer .detail-feature-content .detail-feature-media #detail-feature-auction-disclaimer,#detail-feature-viewer .detail-feature-content .detail-feature-media #detail-legal-feature-disclaimer{display:none;font-family:"Lato",sans-serif;align-self:flex-start;font-style:italic;font-size:11px;line-height:13px;color:#888;margin-top:5px}#detail-feature-viewer .detail-feature-content .detail-feature-media #detail-feature-auction-disclaimer{display:block;color:#c90107}@media(min-width: 800px){#detail-feature-viewer .detail-feature-content .detail-feature-body{margin:15px 0}#detail-feature-viewer .detail-feature-content .detail-feature-body #detail-feature-title{line-height:27px;font-size:24px}#detail-feature-viewer .detail-feature-content .detail-feature-body #detail-feature-description,#detail-feature-viewer .detail-feature-content .detail-feature-body #detail-feature-description-long{line-height:27px;font-size:22px}}@media(max-width: 430px){#detail-feature-viewer .detail-feature-content{padding:0 30px}#detail-feature-viewer .position-right{right:0px}#detail-feature-viewer .position-left{left:0px}}#finance-insurance-product-viewer{display:none;height:100%}#finance-insurance-product-viewer .finance-insurance-product-side-button{position:absolute;bottom:calc(50% - 30px)}#finance-insurance-product-viewer .finance-insurance-product-side-button #finance-insurance-product-prev{width:30px;height:60px;background:url(ui/icon_leftButton.svg);background-position:center;background-repeat:no-repeat}#finance-insurance-product-viewer .finance-insurance-product-side-button #finance-insurance-product-prev:hover{width:30px;height:60px;background:url(ui/icon_leftButton_hover.svg);background-position:center;background-repeat:no-repeat}#finance-insurance-product-viewer .finance-insurance-product-side-button #finance-insurance-product-next{width:30px;height:60px;background:url(ui/icon_rightButton.svg);background-position:center;background-repeat:no-repeat}#finance-insurance-product-viewer .finance-insurance-product-side-button #finance-insurance-product-next:hover{width:30px;height:60px;background:url(ui/icon_rightButton_hover.svg);background-position:center;background-repeat:no-repeat}#finance-insurance-product-viewer .position-right{right:5px}#finance-insurance-product-viewer .position-left{left:5px}#finance-insurance-product-viewer .finance-insurance-product-content{padding:0 40px;height:100%;width:100%}#finance-insurance-product-viewer .finance-insurance-product-content #finance-insurance-product-body{margin:0 0 20px;height:100%}#finance-insurance-product-viewer .finance-insurance-product-content #finance-insurance-product-body #finance-insurance-product-description{width:100%;height:100%;border:0;margin:0}@media(min-width: 800px){#finance-insurance-product-viewer .finance-insurance-product-content #finance-insurance-product-body{margin:15px 0}}@media(max-width: 430px){#finance-insurance-product-viewer .finance-insurance-product-content{padding:0 30px}#finance-insurance-product-viewer .position-right{right:0px}#finance-insurance-product-viewer .position-left{left:0px}}#finance-insurance-product-viewer .product-description-container{position:relative;width:100%;background-color:#fff}#finance-insurance-product-viewer .product-description-container .product-description{border:none;height:100%;width:100%}.ie #gallery-grid.card-grid{max-height:100%;height:auto}.ie #photo-viewer.active,.ie #standalone-viewer.active{display:block}.ie .card-grid{display:flex;flex-wrap:wrap;padding:10px}.ie .feature-card,.ie .photo-card{margin:10px}.ie .title>.text-container{max-height:34px;text-align:center}#photo-viewer{background-color:#191d21;position:absolute;left:50%;top:0;transform:translateX(-50%);display:none;z-index:13;align-items:center;justify-content:center}#photo-viewer.active{display:flex;flex-direction:column}#photo-view-container{position:relative;display:flex;align-items:center;overflow:hidden}#photo-viewer-image{display:none}#photo-viewer-canvas{display:block}#photo-label-container{position:absolute;bottom:5%;overflow:hidden;left:50%;transform:translateX(-50%);box-shadow:0px 0px 6px rgba(0,0,0,.161);color:#fff;font-size:10px;border-radius:30px;font-weight:bold;opacity:1;transition:opacity 1s}#photo-label-container.fade{opacity:0}#photo-count{background:rgba(0,0,0,.502) 0% 0% no-repeat padding-box;display:inline-block;padding:7px}#photo-label{background:rgba(0,0,0,.502) 0% 0% no-repeat padding-box;display:inline-block;padding:7px}.photo-carousel{display:-moz-box;display:-webkit-box;width:100%;overflow-x:auto;overflow-y:hidden;white-space:nowrap;align-content:center;-ms-overflow-style:none;scrollbar-width:none}.photo-carousel::-webkit-scrollbar{display:none;width:0 !important}.photo-carousel-right,.photo-carousel-left{display:none;position:absolute;bottom:40px}.photo-carousel-right svg:hover,.photo-carousel-left svg:hover{transform-origin:center;transition:ease-out .3s;transform:scale(1.1)}.photo-carousel-left{opacity:var(--photo-left-arrow-opacity);left:15px}.photo-carousel-right{opacity:var(--photo-right-arrow-opacity);right:15px}.photo-carousel-card{display:flex;margin:15px 0 15px 15px;border-radius:5px;background-position:center;background-repeat:no-repeat;background-size:contain;opacity:.5}.photo-carousel-card.active{opacity:1;-webkit-box-shadow:inset 0px 0px 0px 2px #fff;-moz-box-shadow:inset 0px 0px 0px 2px #fff;box-shadow:inset 0px 0px 0px 2px #fff}.photo-carousel-card:hover{opacity:1}@media(max-width: 529px){.photo-carousel-card{margin:10px 0 10px 10px}.photo-carousel-card.active{border:3px solid #fff;margin:8px 0 8px 8px}}#factory-upgrades-viewer{background-color:transparent;display:none;width:100%;height:100%}#factory-upgrades-viewer #fu-content{display:block;width:100%;height:100%;background-color:transparent}#factory-upgrades-viewer #fu-content .fu-item-container{padding:15px;border-bottom:1px solid #dedede}#factory-upgrades-viewer #fu-content .fu-item-container .fu-item-description{display:block;font-size:16px;color:#999}#factory-upgrades-viewer #fu-content .fu-item-container .fu-item-msrp{display:block;font-weight:bold;font-size:14px;color:#000;padding-top:5px}#factory-upgrades-viewer #fu-content .fu-total-container{padding:15px;background-color:#000}#factory-upgrades-viewer #fu-content .fu-total-container .fu-total-description{display:block;font-size:16px;color:#fff}#factory-upgrades-viewer #fu-content .fu-total-container .fu-total-msrp{display:block;font-weight:bold;font-size:14px;color:#fff;padding-top:5px}#factory-upgrades-viewer #fu-content .fu-disclaimer{color:#6e6e6e;font-size:12px;font-style:italic;padding:15px}#video-viewer{background-color:#191d21;position:absolute;left:50%;top:0;transform:translateX(-50%);display:none;z-index:12}#video-viewer #video-wrapper video,#video-viewer>iframe{width:100%;position:relative;top:50%;transform:translateY(-50%)}#video-viewer>iframe{border:none}#video-wrapper{position:absolute;width:100%;top:50%}#watermark{position:absolute;display:none;width:20%;top:-55%;left:-2%;opacity:.7}.video-test-drive video::-webkit-media-controls-fullscreen-button{display:none !important}.video-test-drive #watermark{content:url("ui/WheelsTVLogo.png");display:block}#carfax-viewer{width:100%;height:100%;display:none;background-color:transparent}#carfax-viewer #carfax-content{display:flex;justify-content:center;align-items:center;width:100%;height:100%}@media only screen and (max-height: 499px){#carfax-viewer #carfax-content{align-items:flex-start}#carfax-viewer #carfax-content .free-carfax-report{border-radius:0 0 10px 10px}}#carfax-viewer .carfax-snapshot-embedded{position:static;top:auto;left:auto;transform:none;max-width:450px;min-width:325px;max-height:100%}#misc-content-viewer{position:absolute;z-index:10;top:0;left:50%;display:none;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%);width:100%;height:100%}#misc-content-viewer-iframe{width:100%;height:100%;background-color:#191d21}.drag-to-view-overlay{display:none;position:absolute;bottom:60px;left:50%;transform:translateX(-50%);z-index:4;pointer-events:none;-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s;width:166px;height:40px;background-color:rgba(0,0,0,.5);border-radius:5px;opacity:1;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);flex-direction:row;justify-content:center;align-items:center;padding:15px 20px}.drag-to-view-overlay .overlay-360-power-by-wrapper{display:flex;flex-direction:column;justify-content:center;padding:0px;position:static;width:121px;flex:none;order:0;flex-grow:0}.drag-to-view-overlay .overlay-360-power-by-wrapper .overlay-view-360{position:static;text-transform:uppercase;font-family:"Lato",sans-serif;font-style:normal;font-weight:bold;font-size:24px;display:flex;align-items:center;text-align:center;color:#fff;flex:none;order:0;flex-grow:0;margin:0;opacity:1}.drag-to-view-overlay .overlay-360-power-by-wrapper .overlay-power-by{display:none;position:static;font-family:"Lato",sans-serif;font-style:italic;font-weight:500;font-size:12px;color:#fff;flex:none;order:1;flex-grow:0;margin:0;opacity:.5}.drag-to-view-overlay .overlay-animation{position:static;width:27px;height:22px;flex:none;order:1;flex-grow:0;margin-left:15px}.drag-to-view-overlay .overlay-animation .leftline{position:absolute;top:40%;height:1.87px;animation:leftlinemove 2s infinite;background-color:#fff;border-radius:24px}.drag-to-view-overlay .overlay-animation .icon{position:absolute;font-weight:bold;animation:iconmove 2s infinite;top:36%}.drag-to-view-overlay .overlay-animation .icon svg{width:21.39px;height:26.74px}.drag-to-view-overlay .overlay-animation .rightline{position:absolute;top:40%;height:1.87px;right:20px;animation:rightlinemove 2s infinite;background-color:#fff;border-radius:24px}@keyframes iconmove{0%{left:157px}25%{left:163px}50%{left:157px}75%{left:157px}100%{left:157px}}@keyframes leftlinemove{0%{width:4.81px}25%{width:10px}50%{width:4.81px}75%{width:4.81px}100%{width:4.81px}}@keyframes rightlinemove{0%{width:16px}25%{width:10px}50%{width:16px}75%{width:16px}100%{width:16px}}@media(max-width: 530px){.drag-to-view-overlay{width:130px;height:30px;padding:10px;bottom:30px}.drag-to-view-overlay .overlay-360-power-by-wrapper{width:93px}.drag-to-view-overlay .overlay-360-power-by-wrapper .overlay-view-360{font-size:18px}.drag-to-view-overlay .overlay-animation{margin-left:8px}.drag-to-view-overlay .overlay-animation .icon svg{width:13px;height:17px}@keyframes iconmove{0%{left:113px}25%{left:118px}50%{left:113px}75%{left:113px}100%{left:113px}}@keyframes leftlinemove{0%{width:4px}25%{width:8px}50%{width:4px}75%{width:4px}100%{width:4px}}@keyframes rightlinemove{0%{width:8.6px}25%{width:4px}50%{width:8.6px}75%{width:8.6px}100%{width:8.6px}}}@media(min-width: 530px){.ui-view-top-left{top:15px;left:15px}#zoom-btns{right:15px}.ui-btn-wrapper{top:15px;right:15px}}@media(min-width: 800px)and (max-width: 1000px){#change-view-btn #change-view-wrapper{height:38px}#change-view-btn #change-view-wrapper .action-icon{width:18px;height:18px;background-size:18px}#change-view-btn #change-view-wrapper .action-wrapper span{font-size:12px}#ui-toggle-array .pills-wrapper{height:38px}#ui-toggle-array .pills-wrapper .pill-btn .pill-toggle{width:18px;height:18px}#ui-toggle-array .pills-wrapper .pill-btn .pill-label-wrapper .pill-label{font-size:12px}.cta-wrapper .float-btn-cta{height:38px}.cta-wrapper .float-btn-cta span{font-size:12px}.ui-btn-wrapper{width:38px;height:38px}.hotspot_button{width:30px;height:30px}.hotspot{width:30px;min-width:29px}.unhovered,.hovered{width:30px;height:30px}}@media(min-width: 1001px){#change-view-btn #change-view-wrapper{height:44px}#change-view-btn #change-view-wrapper .action-icon{width:20px;height:20px;background-size:20px}#change-view-btn #change-view-wrapper .action-wrapper span{font-size:14px}#ui-toggle-array .pills-wrapper{height:44px}#ui-toggle-array .pills-wrapper .pill-btn .pill-toggle{width:20px;height:20px}#ui-toggle-array .pills-wrapper .pill-btn .pill-label-wrapper .pill-label{font-size:14px}.cta-wrapper .float-btn-cta{height:44px}.cta-wrapper .float-btn-cta span{font-size:14px}.ui-btn-wrapper{width:44px;height:44px}.hotspot_button{width:34px;height:34px}.hotspot{width:34px;min-width:33px}.unhovered,.hovered{width:34px;height:34px}}
- </style>
- <link rel="stylesheet" href="a_data/walkaround.css">
- <link rel="stylesheet" href="a_data/font-awesome.min.css">
- <!-- Google Analytics -->
- <script async="" src="a_data/google-analytics_analytics.js"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag() { dataLayer.push(arguments); }
- gtag('js', new Date());
- </script><script src="../page-script.js" id="bw-fido2-page-script"></script>
- <!-- End Google Analytics -->
- <script async=""></script><script type="text/javascript" src="a_data/icons.js"></script><style type="text/css"></style><style type="text/css"></style></head>
- <body>
- <div id="spincar-view" style="width: 1px;">
- <div id="lightbox-overlay"></div>
- <div id="ui-container" style="width: 1px; height: 0px;">
- <div class="ui-view-top-left">
- <div id="change-view-btn" class="a11y-active" tabindex="0" style="display: none;">
- <div id="change-view-wrapper" style="--main-bg-color: #00a19b;">
- <div id="change-view-icon" class="action-icon"></div>
- <div class="action-wrapper">
- <span id="change-view-action-text" class="i18n-see-inside-label"></span>
- </div>
- </div>
- <div id="change-view-dropdown">
- <div id="options-wrapper" class="five-rows">
- <div class="custom-option" id="custom-option-ec"><span class="option-label i18n-see-outside-label" id="option-span-ec"></span></div></div>
- </div>
- </div>
- <div id="ui-toggle-array" style="fill: rgb(0, 161, 155); display: block;">
- <div id="toggle-pills" class="pills-wrapper">
- <div id="hotspots-pill" class="pill-btn left-round a11y-active right-round" tabindex="0" style="display: flex;">
- <div id="hotspots-pill-toggle" class="pill-toggle">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15">
- <circle id="hotspots-toggle" cx="7.5" cy="7.5" r="7.5" class="checkmark-circle-on"></circle>
- <path id="hotspots-outer-circle" class="checkmark-outer-circle" d="M7.5 1A6.5 6.5 0 1 0 14 7.5 6.5 6.5 0 0 0 7.5 1m0-1A7.5 7.5 0 1 1 0 7.5 7.5 7.5 0 0 1 7.5 0z"></path>
- <path d="M6.83 11.34a1 1 0 0 0 .75.3 1.08 1.08 0 0 0 .75-.3l4.56-4.56a1.05 1.05 0 1 0-1.45-1.53L7.57 9.1 6 7.52A1.05 1.05 0 0 0 4.51 9z" transform="translate(-1.2 -.98)" style="fill:#fff"></path>
- </svg>
- </div>
- <div class="pill-label-wrapper">
- <span id="hotspot-pill-label" class="pill-label i18n-hotspots"></span>
- </div>
- </div>
- <div id="doors-pill" class="pill-btn right-round a11y-active" tabindex="0">
- <div id="doors-pill-toggle" class="pill-toggle">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15">
- <circle id="doors-toggle" cx="7.5" cy="7.5" r="7.5" class="checkmark-circle-off"></circle>
- <path id="doors-outer-circle" class="checkmark-outer-circle" d="M7.5 1A6.5 6.5 0 1 0 14 7.5 6.5 6.5 0 0 0 7.5 1m0-1A7.5 7.5 0 1 1 0 7.5 7.5 7.5 0 0 1 7.5 0z"></path>
- <path d="M6.83 11.34a1 1 0 0 0 .75.3 1.08 1.08 0 0 0 .75-.3l4.56-4.56a1.05 1.05 0 1 0-1.45-1.53L7.57 9.1 6 7.52A1.05 1.05 0 0 0 4.51 9z" transform="translate(-1.2 -.98)" style="fill:#fff"></path>
- </svg>
- </div>
- <div class="pill-label-wrapper">
- <span id="doors-pill-label" class="pill-label i18n-doors-label"></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="language-toggle-btn" class="ui-btn-wrapper">
- <span id="language-toggle-text">FR</span>
- <span id="language-tooltip" class="btn-tooltip">Français</span>
- </div>
- <div id="expand-btn" class="ui-btn-wrapper a11y-active" tabindex="0" style="display: none;">
- <div id="expand-icon" class="expand-icon btn-icon"></div>
- <span id="expand-tooltip"></span>
- </div>
- <div id="zoom-btns" style="top: -38px;">
- <div id="zoomin-btn" class="ui-btn-wrapper a11y-active" tabindex="0" style="opacity: 1;">
- <div id="zoomin-icon" class="zoomin-icon btn-icon" style="opacity: 1;"></div>
- </div>
- <div id="zoomout-btn" class="ui-btn-wrapper a11y-active" tabindex="0" style="opacity: 0.5;">
- <div id="zoomout-icon" class="zoomout-icon btn-icon" style="opacity: 0.25;"></div>
- </div>
- </div>
- <div class="cta-wrapper" id="cta-wrapper" style="bottom: 10px;">
- <button class="float-btn-cta" id="cta-btn">
- <span id="cta-btn-span"></span>
- </button>
- </div>
- <div id="product-btn-array" class="center-align" style="display: block;"><div><div class="inline-div"><div class="float-btn-product left-btn-border right-btn-border" id="Photos-btn"><div id="Photos-label" class="text-label i18n-photos-tab"></div></div></div></div></div>
- <div id="close-button-container" class="ui-btn-wrapper ui-action-exit">
- <div id="btn-icon-container" class="btn-icon"></div>
- <span id="close-tooltip" class="btn-tooltip center-btn-tooltip i18n-close-button"></span>
- </div>
- <div id="viewer-next-button" class="ui-action-next" style="top: calc(50% - 0px);"></div>
- <div id="viewer-prev-button" class="ui-action-prev" style="top: calc(50% - 0px);"></div>
- <div id="viewer-play-button"></div>
- <div id="drag-to-view-overlay" class="drag-to-view-overlay" style="bottom: 75px; display: flex;">
- <div class="overlay-360-power-by-wrapper">
- <div class="overlay-view-360 i18n-view-360-walkaround"></div>
- <div id="overlay-power-by" class="overlay-power-by i18n-power-by-impel" style="display: flex;"></div>
- </div>
- <div class="overlay-animation">
- <div class="leftline"></div>
- <div class="icon">
- <svg width="27" height="35" viewBox="0 0 27 35" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path d="M24.531 14.0049C23.6334 13.868 22.8281 14.2325 22.2611 14.8246C21.9767 13.7329 20.9848 12.9133 19.7547 12.9133C18.9513 12.9133 18.2882 13.2778 17.7693 13.8236C17.4387 12.8226 16.445 12.0937 15.311 12.0937C14.6017 12.0937 13.9405 12.3675 13.4677 12.8226V3.40149C13.4677 2.1267 12.522 0.988827 11.2458 0.851918C9.6851 0.670568 8.31467 1.85288 8.31467 3.309V20.059C8.31467 20.3772 7.84184 20.5141 7.65347 20.2403L4.6743 15.8702C3.96506 14.8229 2.40436 14.6416 1.2223 15.3688C0.0402403 16.1422 -0.338397 17.5983 0.324692 18.6011C0.324692 18.6011 8.74144 30.8437 8.7873 30.8901C10.3 32.9383 12.8063 34.1668 15.4551 34.1668H18.4342C22.9261 34.1668 26.6146 30.707 26.6604 26.3829V26.2015V16.5528C26.7528 15.2798 25.8071 14.1419 24.5309 14.005L24.531 14.0049Z" fill="white"></path>
- </svg>
- </div>
- <div class="rightline"></div>
- </div>
- </div>
- </div>
- <div id="hero-container" style="height: 0px;">
- <div id="hero-view">
- <div id="gcircle" style="display: block;"><div class="hotspot_button" id="hotspot_button_0" tabindex="0" style="display: block; left: 0.515913px; top: 0px;"><div class="hotspot tooltip" style="display: block;"><div class="unhovered"><img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5OCIgaGVpZ2h0PSI5OCIgdmlld0JveD0iMCAwIDk4IDk4Ij48dGl0bGU+QXNzZXQgMTE8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PGNpcmNsZSBjeD0iNDkiIGN5PSI0OSIgcj0iNDkiIHN0eWxlPSJmaWxsOiMwMGExOWI7b3BhY2l0eTowLjUiLz48Y2lyY2xlIGN4PSI0OSIgY3k9IjQ5IiByPSI0MCIgc3R5bGU9ImZpbGw6IzAwYTE5YiIvPjxwYXRoIGQ9Ik02MS43MSw0Ni42Mkg1MS4zOFYzNi4yOWEyLjM4LDIuMzgsMCwxLDAtNC43NiwwVjQ2LjYySDM2LjI5YTIuMzgsMi4zOCwwLDEsMCwwLDQuNzZINDYuNjJWNjEuNzFhMi4zOCwyLjM4LDAsMSwwLDQuNzYsMFY1MS4zOEg2MS43MWEyLjM4LDIuMzgsMCwxLDAsMC00Ljc2WiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvZz48L2c+PC9zdmc+" class="pulse" style="animation: 2s ease 0s infinite normal none running pulseAnimation00a19b;"></div><div class="hovered"><span class="name label" style="">Neumatico</span><img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5OCIgaGVpZ2h0PSI5OCIgdmlld0JveD0iMCAwIDk4IDk4Ij48dGl0bGU+QXNzZXQgMTI8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PGNpcmNsZSBjeD0iNDkiIGN5PSI0OSIgcj0iNDkiIHN0eWxlPSJmaWxsOiNmZmYiLz48Y2lyY2xlIGN4PSI0OSIgY3k9IjQ5IiByPSI0MCIgc3R5bGU9ImZpbGw6IzAwYTE5YiIvPjxwYXRoIGQ9Ik02MS43MSw0Ni42Mkg1MS4zOFYzNi4yOWEyLjM4LDIuMzgsMCwxLDAtNC43NiwwVjQ2LjYySDM2LjI5YTIuMzgsMi4zOCwwLDEsMCwwLDQuNzZINDYuNjJWNjEuNzFhMi4zOCwyLjM4LDAsMSwwLDQuNzYsMFY1MS4zOEg2MS43MWEyLjM4LDIuMzgsMCwxLDAsMC00Ljc2WiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvZz48L2c+PC9zdmc+" class="pulse" style="animation: 2s ease 0s infinite normal none running pulseAnimation00a19b;"></div></div></div><div class="hotspot_button" id="hotspot_button_1" tabindex="0" style="display: block; left: 0.38191px; top: 0px;"><div class="hotspot tooltip" style="display: block;"><div class="unhovered"><img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5OCIgaGVpZ2h0PSI5OCIgdmlld0JveD0iMCAwIDk4IDk4Ij48dGl0bGU+QXNzZXQgMTE8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PGNpcmNsZSBjeD0iNDkiIGN5PSI0OSIgcj0iNDkiIHN0eWxlPSJmaWxsOiMwMGExOWI7b3BhY2l0eTowLjUiLz48Y2lyY2xlIGN4PSI0OSIgY3k9IjQ5IiByPSI0MCIgc3R5bGU9ImZpbGw6IzAwYTE5YiIvPjxwYXRoIGQ9Ik02MS43MSw0Ni42Mkg1MS4zOFYzNi4yOWEyLjM4LDIuMzgsMCwxLDAtNC43NiwwVjQ2LjYySDM2LjI5YTIuMzgsMi4zOCwwLDEsMCwwLDQuNzZINDYuNjJWNjEuNzFhMi4zOCwyLjM4LDAsMSwwLDQuNzYsMFY1MS4zOEg2MS43MWEyLjM4LDIuMzgsMCwxLDAsMC00Ljc2WiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvZz48L2c+PC9zdmc+" class="pulse" style="animation: 2s ease 0s infinite normal none running pulseAnimation00a19b;"></div><div class="hovered"><span class="name label" style="">Motor</span><img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5OCIgaGVpZ2h0PSI5OCIgdmlld0JveD0iMCAwIDk4IDk4Ij48dGl0bGU+QXNzZXQgMTI8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PGNpcmNsZSBjeD0iNDkiIGN5PSI0OSIgcj0iNDkiIHN0eWxlPSJmaWxsOiNmZmYiLz48Y2lyY2xlIGN4PSI0OSIgY3k9IjQ5IiByPSI0MCIgc3R5bGU9ImZpbGw6IzAwYTE5YiIvPjxwYXRoIGQ9Ik02MS43MSw0Ni42Mkg1MS4zOFYzNi4yOWEyLjM4LDIuMzgsMCwxLDAtNC43NiwwVjQ2LjYySDM2LjI5YTIuMzgsMi4zOCwwLDEsMCwwLDQuNzZINDYuNjJWNjEuNzFhMi4zOCwyLjM4LDAsMSwwLDQuNzYsMFY1MS4zOEg2MS43MWEyLjM4LDIuMzgsMCwxLDAsMC00Ljc2WiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvZz48L2c+PC9zdmc+" class="pulse" style="animation: 2s ease 0s infinite normal none running pulseAnimation00a19b;"></div></div></div><div class="hotspot_button" id="hotspot_button_2" tabindex="0" style="display: none; left: 0.643216px; top: 0px;"><div class="hotspot tooltip" style="display: block;"><div class="unhovered"><img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5OCIgaGVpZ2h0PSI5OCIgdmlld0JveD0iMCAwIDk4IDk4Ij48dGl0bGU+QXNzZXQgMTE8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PGNpcmNsZSBjeD0iNDkiIGN5PSI0OSIgcj0iNDkiIHN0eWxlPSJmaWxsOiMwMGExOWI7b3BhY2l0eTowLjUiLz48Y2lyY2xlIGN4PSI0OSIgY3k9IjQ5IiByPSI0MCIgc3R5bGU9ImZpbGw6IzAwYTE5YiIvPjxwYXRoIGQ9Ik02MS43MSw0Ni42Mkg1MS4zOFYzNi4yOWEyLjM4LDIuMzgsMCwxLDAtNC43NiwwVjQ2LjYySDM2LjI5YTIuMzgsMi4zOCwwLDEsMCwwLDQuNzZINDYuNjJWNjEuNzFhMi4zOCwyLjM4LDAsMSwwLDQuNzYsMFY1MS4zOEg2MS43MWEyLjM4LDIuMzgsMCwxLDAsMC00Ljc2WiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvZz48L2c+PC9zdmc+" class="pulse" style="animation: 2s ease 0s infinite normal none running pulseAnimation00a19b;"></div><div class="hovered"><span class="name label" style="">Maletera</span><img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5OCIgaGVpZ2h0PSI5OCIgdmlld0JveD0iMCAwIDk4IDk4Ij48dGl0bGU+QXNzZXQgMTI8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PGNpcmNsZSBjeD0iNDkiIGN5PSI0OSIgcj0iNDkiIHN0eWxlPSJmaWxsOiNmZmYiLz48Y2lyY2xlIGN4PSI0OSIgY3k9IjQ5IiByPSI0MCIgc3R5bGU9ImZpbGw6IzAwYTE5YiIvPjxwYXRoIGQ9Ik02MS43MSw0Ni42Mkg1MS4zOFYzNi4yOWEyLjM4LDIuMzgsMCwxLDAtNC43NiwwVjQ2LjYySDM2LjI5YTIuMzgsMi4zOCwwLDEsMCwwLDQuNzZINDYuNjJWNjEuNzFhMi4zOCwyLjM4LDAsMSwwLDQuNzYsMFY1MS4zOEg2MS43MWEyLjM4LDIuMzgsMCwxLDAsMC00Ljc2WiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvZz48L2c+PC9zdmc+" class="pulse" style="animation: 2s ease 0s infinite normal none running pulseAnimation00a19b;"></div></div></div><div id="spinContainer"><div class="imageCover"></div><canvas style="" role="img" aria-label="Vehicle Exterior Image" width="1280" height="960"></canvas></div></div>
- </div>
- </div>
- <div id="standalone-viewer" style="width: 1px; height: 0px;">
- <img id="standalone-viewer-image">
- </div>
- <div id="lead-form-container" class="lightbox-container" style="width: calc(100% - 20px); height: calc(100% - 20px); top: 10px;">
- <div id="lead-form-header" class="lightbox-header">
- <span>GET E-PRICE</span>
- <div id="lead-form-close-btn" class="close-btn" tabindex="0"></div>
- </div>
- <form id="lead-form" class="lead-form">
- <div id="form-header" class="lead-form-header"></div>
- <div id="lead-form-input-fields" class="lead-form-textfield" style="column-count: 1;">
- <div>
- <div>
- <div class="lead-form-label i18n-lf-first-name"></div>
- <input class="lead-form-input" required="" type="text" name="first_name">
- </div>
- <div>
- <div class="lead-form-label i18n-lf-last-name"></div>
- <input class="lead-form-input" required="" type="text" name="last_name">
- </div>
- </div>
- <div>
- <div>
- <div class="lead-form-label i18n-lf-email-address"></div>
- <input class="lead-form-input" required="" type="email" name="email_address">
- </div>
- <div>
- <div class="lead-form-label i18n-lf-phone-number"></div>
- <input class="lead-form-input" id="phone" type="text" name="phone_number" placeholder="(123) 456-7890">
- </div>
- </div>
- </div>
- <div class="lead-form-e-price-wrapper">
- <button id="e-price-submit" class="lead-form-e-price-btn" type="submit">
- <span class="i18n-lf-price"></span>
- </button>
- </div>
- </form>
- <div id="form-success" class="lead-form-submitted">
- <div id="form-close-btn" class="lead-form-close-btn">
- </div>
- </div>
- </div>
- <div id="photo-viewer" class="a11y-active" tabindex="0" style="width: 100%; height: 100%;">
- <div id="photo-view-container">
- <img id="photo-viewer-image">
- <canvas id="photo-viewer-canvas"></canvas>
- <div id="photo-label-container">
- <div id="photo-count"></div>
- <div id="photo-label"></div>
- </div>
- </div>
- <div id="photo-carousel" class="photo-carousel"></div>
- <div id="photo-carousel-left" class="photo-carousel-left">
- <svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><g data-name="Layer 2"><g data-name="Layer 1"><g data-name="Ellipse 70"><circle cx="20" cy="20" r="20" style="fill:#fff"></circle><circle cx="20" cy="20" r="19.5" style="fill:none;stroke:#fff"></circle></g><path data-name="Union 27" d="m22.5 9.67 1.24 1.24-8.66 8.66 8.66 8.66-1.24 1.24-9.9-9.9z"></path></g></g></svg>
- </div>
- <div id="photo-carousel-right" class="photo-carousel-right">
- <svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><g data-name="Layer 2"><g data-name="Layer 1"><g data-name="Ellipse 70"><circle cx="20" cy="20" r="20" style="fill:#fff"></circle><circle cx="20" cy="20" r="19.5" style="fill:none;stroke:#fff"></circle></g><path data-name="Union 27" d="m17.5 30.33-1.24-1.24 8.66-8.66-8.66-8.66 1.24-1.24 9.9 9.9z"></path></g></g></svg>
- </div>
- </div>
- <div id="video-viewer" style="width: 1px; height: 0px;">
- <div id="video-wrapper">
- <video controls="controls"></video>
- <img id="watermark" alt="watermark">
- </div>
- <iframe allow="fullscreen" style="height: 0.5625px;"></iframe>
- </div>
- <div id="drawer" class="drawer" style="position: relative; display: none;">
- <div id="drawer-background" class="drawer-background drawer-background-white" style="background-image: url("https://cdn.impel.io/swipetospin-viewers/brunofritsh/srrc-95/20240216212500.UMEKZVBI/ec/0-0.jpg");"></div>
- <div id="drawer-carousel-container" class="drawer-carousel-container" style="height: 0px;">
- <div id="drawer-carousel" class="drawer-carousel drawer-carousel-center" style="height: 0px;"><div class="drawer-carousel-card" id="Photos" style="background-image: linear-gradient(rgba(0, 0, 0, 0), rgb(0, 0, 0)), url("//cdn.impel.io/swipetospin-viewers/brunofritsh/srrc-95/20240216212500.UMEKZVBI/closeup_thumbs/cu-0.jpg");" tabindex="0"><div class="drawer-carousel-card-count" style="top: -2px; font-size: 12px;"><span>15</span></div><div class="drawer-carousel-card-text i18n-photos-tab" style="font-size: 12px; line-height: 15.6px; max-height: 46.8px; --cardTextLineClamp: 3; top: 50%; transform: translate(-50%, -50%);"></div><span role="img" aria-label="Photos"></span></div></div>
- </div>
- <div id="drawer-carousel-left" class="drawer-carousel-left drawer-carousel-nav" style="display: none; width: 0px; height: 0px;">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" class="drawer-carousel-svg" style="fill: rgb(255, 255, 255);"><g data-name="Layer 2"><g data-name="Layer 1"><g data-name="Ellipse 70"><circle class="drawer-carousel-svg-circle" cx="20" cy="20" r="20" style="fill: rgb(0, 161, 155);"></circle><circle cx="20" cy="20" r="19.5" style="fill:none;"></circle></g><path data-name="Union 27" d="m22.5 9.67 1.24 1.24-8.66 8.66 8.66 8.66-1.24 1.24-9.9-9.9z"></path></g></g></svg>
- </div>
- <div id="drawer-carousel-right" class="drawer-carousel-right drawer-carousel-nav" style="display: none; width: 0px; height: 0px;">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" class="drawer-carousel-svg" style="fill: rgb(255, 255, 255);"><g data-name="Layer 2"><g data-name="Layer 1"><g data-name="Ellipse 70"><circle class="drawer-carousel-svg-circle" cx="20" cy="20" r="20" style="fill: rgb(0, 161, 155);"></circle><circle cx="20" cy="20" r="19.5" style="fill:none;"></circle></g><path data-name="Union 27" d="m17.5 30.33-1.24-1.24 8.66-8.66-8.66-8.66 1.24-1.24 9.9 9.9z"></path></g></g></svg>
- </div>
- </div>
- <div id="misc-content-viewer">
- <iframe id="misc-content-viewer-iframe"></iframe>
- </div>
- <div id="lb-container" class="lightbox-container" tabindex="0" style="width: calc(100% - 20px); height: calc(100% - 20px); top: 10px;">
- <div id="lb-header" class="lightbox-header">
- <div id="lb-back-btn" class="header-button back-btn"></div>
- <span id="lb-title" class="banner-title"></span>
- <div id="lb-close-btn" class="header-button close-btn ui-action-exit"></div>
- </div>
- <div id="lb-content" class="lightbox-content">
- <div class="scrollable">
- <div id="lb-grid" class="grid-container"></div>
- <div id="factory-upgrades-viewer">
- <div id="fu-content"></div>
- </div>
- <div id="carfax-viewer">
- <div id="carfax-content"></div>
- </div>
- <div id="detail-feature-viewer">
- <div class="detail-feature-side-button position-left">
- <div id="detail-feature-prev" class="ui-action-prev"></div>
- </div>
- <div class="detail-feature-content">
- <div class="detail-feature-body">
- <strong id="detail-feature-title"></strong>
- <span id="detail-feature-description"></span>
- <span id="detail-feature-description-long"></span>
- </div>
- <div class="detail-feature-media">
- <img id="detail-feature-img">
- <div id="detail-feature-play-btn"></div>
- <div id="detail-feature-disclaimer"></div>
- <div id="detail-legal-feature-disclaimer"></div>
- <div id="detail-feature-auction-disclaimer"></div>
- </div>
- </div>
- <div class="detail-feature-side-button position-right">
- <div id="detail-feature-next" class="ui-action-next"></div>
- </div>
- </div>
- <div id="finance-insurance-product-viewer">
- <div class="finance-insurance-product-side-button position-left">
- <div id="finance-insurance-product-prev" class="ui-action-prev"></div>
- </div>
- <div class="finance-insurance-product-content">
- <div id="finance-insurance-product-body">
- <iframe id="finance-insurance-product-description">
- </iframe>
- </div>
- </div>
- <div class="finance-insurance-product-side-button position-right">
- <div id="finance-insurance-product-next" class="ui-action-next"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="jquery.min.js"></script>
- <script>
- //<![CDATA[
- !function(){function e(e){return e=e||STS.region,STS.args.vinifierbaseurl?STS.args.vinifierbaseurl:STS.args.testvinifier?"https://"+STS.args.testvinifier+"-vinifier.testenv.impel.io/":STS.args.devvinifier?"string"==typeof STS.args.devvinifier?"http://192.168.0."+STS.args.devvinifier+":7774/":"http://localhost:7774/":"https://api"+(e&&"us"!==e?"-"+e:"")+".impel.io/"}function t(e,t){var i=decodeURIComponent(e.href),n=i.slice(i.indexOf("#"))||e.hash;return n=n.split("&")[0],t=t||{},$.each(n.split(/[#!]|%23/),function(e,i){if(i){var n,a,o;n=i.split("="),a=decodeURIComponent(n[0]).toLowerCase().replace(/[\-_]/g,""),o=n.length<2||decodeURIComponent(n[1]),t[a]=o}}),t}function i(){return!!document.cookie.match(new RegExp("(^| )SCOptout=([^;]+)"))}function n(e){return!!e.split("&")[0].split(/[#!]|%23/).includes("impelOptout")}function a(){return!!i()||(!!n(window.location.hash)||(!!navigator.globalPrivacyControl||!(!STS.internal_tracking_optout&&!STS.settings_optout)))}function o(e){var t=STS.gcircle.options.numImgI>0;if(e=Number(e)||0,t)STS.gcircle.setView("i");else if(STS.gcircle.options.has_pano||e>0){STS.gcircle.setView("pano",{pano_index:e});var i="pano";e&&(i+="-"+e)}}function s(){STS.gcircle.options.numImgEC>0&&STS.gcircle.setView("ec")}function r(){"still_image"in STS.gcircle.placeholders&&STS.gcircle.placeholders.still_image&&STS.gcircle.setView("placeholder")}function l(e){if(!(this instanceof l))return new l(e);this._getVirtualCamera=e.getVirtualCamera,this._setVirtualCamera=e.setVirtualCamera;var t=0;addEventListener("deviceorientation",function(e){1*new Date-t<20||(t=1*new Date,this._orientationHandler(e))}.bind(this));var i=0;addEventListener("message",function(e){e=e.data,e.hasOwnProperty("type")&&"deviceorientation"===e.type&&(1*new Date-i<20||(i=1*new Date,this._orientationHandler(e)))}.bind(this),!0)}if(window.STS=window.STS||{},STS.load_start=1*new Date,STS.STATIC_PREFIX="../",STS.browser=STS.browser||{},STS.browser.IE=function(){return window.document.documentMode||0}(),STS.browser=STS.browser||{},STS.browser.ios=function(){return!!/iPad|iPhone|iPod/.test(navigator.userAgent)||navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/Apple/.test(navigator.vendor)}(),STS.browser.mobile=function(e){return/(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(e)||/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(e.substr(0,4))}(navigator.userAgent||navigator.vendor||window.opera),STS.browser.IE){if(STS.browser.IE<11)return;document.querySelector("html").classList.add("ie")}Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),Object.values||(Object.values=function(e){return Object.keys(e).map(function(t){return e[t]})});var c=function(){function e(){return o}function t(){return a}function i(){return s}function n(){return r}var a=["cars24carstudiodelhincr","Cars24Dubai","cars24production","cars24productionbangalore","cars24productionmumbai","Cars24Pune","Chennai","Hyderabad"],o={FEATURES:{action:"Feature Engagement",view_label:"Feature Tour View",click_label:"Feature Tour Click"},PROTECTION:{action:"F&I_Products",view_label:"F&I Advantage View",click_label:"Protection Click"},PHOTOS:{action:"Photo Engagement",view_label:"Photo Tab View",click_label:"Photo Click"},VIDEOS:{action:"Video Engagement",view_label:"Video Tab View",click_label:"Video Click"}},s={CONVENIENCE:"Convenience Features",PERFORMANCE:"Performance Features",SAFETY:"Safety Features",TECHNOLOGY:"Technology Features"},r={CONVENIENCE:"Convenience Videos",PERFORMANCE:"Performance Videos",SAFETY:"Safety Videos",TECHNOLOGY:"Technology Videos"};return{getAnalyticsMap:e,getCars24ButterflyCustomers:t,getFeatureCategories:i,getVideoCategories:n}}(),d=function(e){var t,i,n,a,o,s,r,l,c,d=0,h=2*Math.PI,m=0,g=[],p={},v=!1,f=function(i){var u=1*new Date-n;if(n=1*new Date,0!==g.length){var v=!1;(document.hidden||document.msHidden||document.webkitHidden)&&(v=!0),g.length>1&&!v&&(d+=h*u*m/6e4),d=(d%h+h)%h,STS.__TEST_THETA=d;var f=Math.round(d/h*e.num_imgs/t)%g.length;if(a!==g.length||o!==f){var y=g[f],S=s,w=r;STS.browser&&STS.browser.mobile&&e.low_res&&p[g[f].src]&&(y=p[g[f].src],S=l,w=c),e.draw({view:e.view,loaded_frames:g.length,loaded_index:f,total_frames:e.num_imgs,total_index:Math.round(f*t),theta:h*f*t/e.num_imgs,max_width:S,max_height:w,asset_class:e.asset_class},y)}o&&f<o&&0!==m&&_(0,!0),a=g.length,o=f,$("#radar").attr("transform","rotate("+180*d/Math.PI+")")}};u({url_prefix:e.url_prefix,num_imgs:e.num_imgs,load_images_from:e.load_images_from,group:e.view,load_condition:e.load_condition,getLoadSingleImage:e.getLoadSingleImage,low_res:e.low_res,onload:function(i,a){g.length<=1&&(n=1*new Date),s=r=0;for(var o=0;o<a.length;++o)s=Math.max(s,a[o].width),r=Math.max(r,a[o].height);e.onload&&e.onload(a.length,i),t=i,g=a,a.length>1&&(v=!0),_(m)}});var y=function(e){return 0!==m&&_(0),d=(e%h+h)%h,f(),d},_=function(e,t){clearInterval(i),t||f(),m=e,v&&0!==m&&g.length>1&&(i=setInterval(f,6e4/Math.abs(m)/g.length))},S=function(){if(e.low_res&&o&&!(g.length<=o)){var t=g[o];if(!p[t.src]){var i=t.src.replace("/low-res/ec/","/ec/"),n=new Image;n.index=t.index,n.onerror=function(){},n.onload=function(){p[t.src]=this,l=Math.max(s,this.width),c=Math.max(r,this.height),f()},n.src=i}}};return{rotateTo:y,rotateBy:function(e){return y(d+e)},setRPM:function(e){return _(e)},getRPM:function(){return m},forceRedraw:function(e){a=void 0,o=void 0,f()},loadHighResImg:S}},u=function(e){var t=/^(ec|i)$/.test(e.group),i=t?"0-":"cu-",n=t?e.load_images_from:e.group,a=e.url_prefix+(e.low_res?"low-res/":"")+n+"/",o=document.createElement("a");o.href=a,a=o.href;var s=function(t,n,o,s){for(var r=[],l=0,c=1*new Date,d=function(){setTimeout(function(){this.src=this.src}.bind(this),Math.max(1e3,1*new Date-c))},u=function(){c=1*new Date,r[this.index]=this,++l===n&&(s(),o(r))},h=0;h<e.num_imgs;h+=t){var m=new Image;m.index=Math.round(h/t),m.onerror=d,m.onload=u,m.src=a+i+Math.round(h)+".jpg"}},r=[1];if(t)if(e.num_imgs>12){r=[e.num_imgs];for(var l=e.num_imgs/8;l>1;)r.push(l),l/=2;r.push(1),r.reverse()}else e.num_imgs>1&&(r=[1,e.num_imgs]);else;var c=1*new Date,d=!1,u=function(){if(e.load_condition&&!e.load_condition())return void setTimeout(u,Math.max(100,(1*new Date-c)/10));if("ec"===e.group&&e.getLoadSingleImage())return d||s(e.num_imgs,1,function(t){e.onload(e.num_imgs,t),d=!0,STS.gcircle.firstReady()},function(){}),void setTimeout(u,100);c=1*new Date;var t=r.pop();if(t){var i=Math.ceil(e.num_imgs/t);1===i||i>=8||1===t?s(t,i,function(i){e.onload(t,i)},function(){u()}):u()}};u()};!function(){var e=function(){return STS.args.regionerbaseurl?STS.args.regionerbaseurl:STS.args.testregioner?"https://"+STS.args.testregioner+"-regioner.testenv.impel.io/":STS.args.devregioner?"string"==typeof STS.args.devregioner?"http://192.168.0."+STS.args.devregioner+":8779/":"http://localhost:8779/":"https://regioner.impel.io/"},t=!1;STS.regioner=function(i,n,a){t||(t=!0,STS.read_cached_url(e()+i,{success:function(e){STS.region=e.region,STS.region||console.log('Error: Invalid S3 folder "'+i+'", cannot find its region.'),n&&n(e)},error:function(){console.log("Error: Neither regioner nor cache is available, cannot find region."),a&&a()}},{dev:STS.args.devregioner,dev_cache:STS.args.devregioner&&STS.args.devregionercache}))}}(),function(){STS.vinifier=function(t,i,n){"swipetospin"===t.customer&&"us"!==STS.region&&(STS.region="us");var a=e(t.region);t.partner?a+="any-spin/"+t.partner+"/"+t.vin:a+="spin/"+t.customer+"/"+t.vin,a+="?v=20160212",STS.args.automatichotspots&&(a+="&automatichotspots="+STS.args.automatichotspots),STS.args.config&&(a+="&config="+STS.args.config),STS.args.showold&&(a+="&show_old=true"),STS.manager_preview&&(a+="&managerpreview=1&_="+1*new Date),STS.read_cached_url(a,{success:function(e){e.show_spin||e.show_featuretour?i&&i(e):n&&n(!1,e)},error:function(){n&&n(!0,{info:{options:{}},show_spin:!1,show_featuretour:!1})}},{dev:STS.args.devvinifier,dev_cache:STS.args.devvinifier&&STS.args.devvinifiercache})}}(),function(){var e=function(e,t,i,n,a){a=a||{},t.max_age=t.max_age||1/0;var o="",s="",r="",l=e.split("/"),c=-1!==e.indexOf("regioner"),d=-1!==e.indexOf("spin");if(c)r=STS.args.testregioner?"//cdn.testenv.impel.io/static-test/"+STS.args.testregioner:"//cdn.impel.io/spincar-static",s=l[l.length-1],o=[r,"fallback","regioner",s].join("/")+".json";else{if(!d)return void console.error("Unsupported URL::read_cache::url:",e);r=STS.args.testvinifier?"//cdn.testenv.impel.io/static-test/"+STS.args.testvinifier:"//cdn.impel.io/spincar-static",s=l[l.length-2];o=[r,"fallback","vinifier",s,l[l.length-1].split("?")[0]].join("/")+".json"}var u=new XMLHttpRequest;u.open("GET",o,!0),u.onreadystatechange=function(){4===u.readyState&&(200===u.status?i(u.status,u.responseText):n())},u.onerror=function(){console.error("Network error::read_cache::url:",e)},u.send()};STS.read_cached_url=function(t,i,n){var a,o=i.success,s=i.error,r=!1,l=!1,c=!1,d=!1,u=function(e,t){r||(r=!0,e&&e(t))},h=function(){l=!0,c?u(s):a&&u(o,a)},m=function(){l?h():setTimeout(h,2500)};if($.ajax({dataType:"json",url:t,success:function(e){d=!0,u(o,e)},error:function(){h()}}),!STS.args.automatichotspots||!STS.args.devvinifier){setTimeout(function(){d||n&&n.dev&&!n.dev_cache||e(t,i,function(e,t){e<200||299<e?c=!0:a=JSON.parse(t),m()},function(){c=!0,m()},n)},500)}}}(),function(){var e,i=["disableautospin","disabledrawer","disablescrolltozoom","econly","enabledragtoview","enablenewui","enablesmallcursor","hidecarfax","hidecarousel","hidecta","hidedamage","hidedamagetags","hideenginestart","hideexpandbtn","hidefeaturetour","hidehotspots","hidelivevideo","hidepowerbyimpel","hidepowerbyspincar","hideprotection","hidezoom","lang","pilot","showpowerbyimpel","showpowerbyspincar","specialfeaturecolor","spp","stscolor","useinnerwidth","showplaceholder"];try{e=JSON.parse(sessionStorage.getItem("STS.args"))}catch(e){}var n=STS.args=e||{teststatic:!1,testvinifier:!1,testanalytics:!1,devvinifier:!1,devanalytics:!1,debugspin:!1,testga:!1};t(window.location,n),STS.args.UI={};for(var a in STS.args)i.indexOf(a)>-1&&(STS.args.UI[a]=STS.args[a],delete STS.args[a]);if(STS.args.ga4measurementid&&(STS.ga4_measurement_id=STS.args.ga4measurementid),STS.args.gaclientid&&(STS.ga_client_id=STS.args.gaclientid),n.testall&&$.each(["teststatic","testvinifier","testanalytics"],function(e,t){n[t]=n[t]||n.testall}),n.saveargs)try{sessionStorage.setItem("STS.args",JSON.stringify(n))}catch(e){}}();var h=a();STS.checkOptout=function(){return a()||h},STS.optout=function(){h=!0};var m=function(){function t(){return"eu"===He.region&&-1!==ht.indexOf(He.partner_id)}function i(e){return["blemish","damage"].indexOf(e)>=0}function n(e){var t=mt?e.info.options.features_translated:e.info.options.hotspots,n=e.finance_insurance_products;Xe={},Ke={},Je={},Ze={},Qe={};for(var a=0;a<t.length;a++)t[a].image=function(e,t){return e.closeup>=0?t+"closeups/cu-"+e.closeup+".jpg":e.url&&/\.(png|jpg|jpeg|bmp|gif|svg)$/i.test(e.url)?e.url:e.hasOwnProperty("iaa_url")?e.iaa_url:""}(t[a],e.cdn_image_prefix),t[a].hasOwnProperty("door")||(t[a].hasOwnProperty("closeup")&&t[a].closeup>=0&&t[a].closeup<ot.length?ot[t[a].closeup].name=t[a].name:t[a].hasOwnProperty("url")&&t[a].url.startsWith("https://vis.iaai.com/")&&(t[a].iaa_url=t[a].url,nt[t[a].url]={imageURL:t[a].url,thumbnailURL:t[a].url,name:t[a].name}),i(t[a].icon)&&at.push(t[a].image),t[a].hasOwnProperty("name")&&"Free CARFAX Report"===t[a].name&&!STS.args.UI.hidecarfax&&(Ye=t[a]),t[a].hasOwnProperty("automatic")&&t[a].hasOwnProperty("category")&&(t[a].image.length>0&&(Xe[t[a].name]=t[a]),t[a].hasOwnProperty("video")&&(Je[t[a].name]=t[a],0===t[a].category.length&&(Ze[t[a].name]=t[a]))));if(Pe&&n)for(a=0;a<n.length;a++)n[a].video_path&&(Je[n[a].name]={category:"Protection Plan",image:n[a].image_path,name:n[a].name,priority:n[a].priority,video:n[a].video_path});if(it.length>0)for(var r=!1,l=0;l<it.length;l++){for(var c={},d=0;d<t.length;d++)t[d].hasOwnProperty("additional_video")&&"true"===t[d].additional_video&&(r=!0),it[l].relatedHotspot&&t[d].name===it[l].relatedHotspot&&(c=t[d]);if(r)break;if(c.hasOwnProperty("ec")&&0!==Object.keys(c.ec).length){var u=JSON.parse(JSON.stringify(c.ec));Object.keys(u).forEach(function(e){if("num_interpolating"!==e)for(var t=0;t<u[e].length;t++)u[e][t]+=.04}),e.info.options.hotspots.push({closeup:-1,name:it[l].videoLabel,icon:"video",video_key:it[l].videoName,ec:u,additional_video:it[l].videoURL})}}Object.keys(Xe).length&&o(),Object.keys(Je).length&&s()}function a(e){for(var t in e)e.hasOwnProperty(t)&&e[t].sort(function(e,t){return e.priority-t.priority})}function o(){for(var e=Object.keys(Xe),t=0;t<e.length;t++){var i=e[t],n=Xe[i].category;Ke.hasOwnProperty(n)?Ke[n].push(Xe[i]):Ke[n]=[Xe[i]]}a(Ke)}function s(){for(var e=Object.keys(Je),t=0;t<e.length;t++){var i=e[t],n=Je[i].category;Qe.hasOwnProperty(n)?Qe[n].push(Je[i]):Qe[n]=[Je[i]]}a(Qe)}function r(e){return Je.hasOwnProperty(e)?Je[e].category||null:"videoTestDrive"===e?e:void 0}function l(e){if(e.info.video_tour_key||e.info.live_video_key){var t=e.info.video_tour_key?e.info.video_tour_key:e.info.live_video_key;if(t.indexOf(".flickfusion.net")>-1)return;var i,n;e.info.options.numImgEC?n="ec/0-":e.info.options.numImgCloseup&&(n="closeups/cu-"),i=e.cdn_image_prefix+n+"0.jpg",et={imageURL:i,videoURL:t}}}function c(e){var t=e.info.video_test_drive;t&&t.url&&t.thumbnail_url&&(tt={imageURL:t.thumbnail_url,videoURL:t.url})}function d(e){function t(e){return e.hasOwnProperty("videoName")&&"engine_start"===e.videoName}return e.find(t)}function u(e){var t="";if(e.info.options.hasOwnProperty("additional_videos")){t=window.location.href.indexOf("static-test")>0?"https://spincar-consumer-assets-test.s3.amazonaws.com/thumbnails/Additional_Video_Images/":"https://consumer-assets.impel.io/thumbnails/Additional_Video_Images/";for(var i=0;i<e.info.options.additional_videos.length;i++){var n=e.info.options.additional_videos[i].video_name;it.push({videoURL:"https:"+e.cdn_image_prefix+"additional_videos/"+e.info.options.additional_videos[i].filename,videoName:n,videoLabel:e.info.options.additional_videos[i].label+" Video",imageURL:t+n+".jpg"})}}}function h(e){if(0!==Object.keys(e.info.views.closeup).length)for(var i,n=STS.browser.mobile&&e.info.views.closeup.has_low_res&&!t()?"low-res/":"",a=0;a<e.info.options.numImgCloseup;a++){i=0===a&&(e.info.srp_path||"").length?e.info.srp_path:"cu-"+a+".jpg";var o=e.cdn_image_prefix+n+"closeups/"+i,s=e.cdn_image_prefix+"closeup_thumbs/"+i,r={imageURL:o,thumbnailURL:s};ot.push(r)}}function g(e){var t=new XMLHttpRequest;t.open("GET",e,!1);try{t.send();var i=String(t.status)[0];return"2"===i||"3"===i}catch(e){return!1}}function p(e,t){return e&&"ec"!==e&&g(t+e+"_thumbs/0-0.jpg")?e:"exterior"}function v(e){var i=e.info.views&&e.info.views.exterior&&e.info.views.exterior.has_ec_thumbs;if(ut=e.info.options.include_extracted_photos_in_carousel&&i,rt=e.info.options.ec_thumb_indices||[],ut&&rt.length)for(var n=STS.browser.mobile&&e.info.views.exterior.has_low_res&&!t()?"low-res/":"",a=e.info.views.exterior.thumbs_load_images_from,o=p(a,e.cdn_image_prefix),s="exterior"===o?"ec":a,r=0;r<rt.length;r++){var l=rt[r]+".jpg",c=e.cdn_image_prefix+n+s+"/"+l,d=e.cdn_image_prefix+o+"_thumbs/"+l,u={imageURL:c,thumbnailURL:d};st.push(u)}}function f(e){Pe&&(lt=E(e.finance_insurance_products.slice()),lt.sort(function(e,t){return e.priority-t.priority}))}function y(e){$e.data=e.info.factory_upgrades||[],$e.isEnabled=e.info.options.enable_factory_upgrades||!1}function _(e){Be=e,STS.postParent("sts_vehicle_data:"+JSON.stringify(e)),Oe=!1,e.ft_locale&&-1!==e.ft_locale.indexOf("CA")&&(document.querySelector("html").lang=e.ft_locale.substring(0,2)),setTimeout(function(){try{var e=1*new Date-parseInt(sessionStorage.getItem("last_viewed:"+STS.vin));if(sessionStorage.setItem("last_viewed:"+STS.vin,1*new Date),e<1e5)return}catch(e){}!function(){var e=new Image;e.onload=e.onerror=function(){e=null},e.src="https://sqs.us-east-1.amazonaws.com/505055843994/prod_counter_spinview?Action=SendMessage&MessageBody="+1*new Date+"&Version=2012-11-05"}()},1e4),Re=(e.show_featuretour||STS.args.featuretour||!1)&&!STS.args.UI.hidefeaturetour,ze=e.show_spin,Pe=e.show_finance_insurance_products&&!STS.args.UI.hideprotection,z(e),u(e),h(e),v(e),n(e),l(e),c(e),ct=e.show_finance_insurance_quiz||!1,f(e),y(e),D(e),N(e),U(e),W(e),G(e),P(e),j(),X(e),e.show_finance_insurance_products&&ct&&(be(),window.addEventListener("message",Te)),Ce=Me.hasCloseups&&!Me.hasExteriorView&&!Me.hasInteriorView,Ae=Me.hasCloseups&&Xe&&!e.wa_products.wa_360,q(e.info),e.info.options.carousel=!Me.hideDrawer,STS.cdn_image_prefix=e.cdn_image_prefix,STS.info=e.info;var t=!1;!STS.ga4_measurement_id&&e.ga4_measurement_id&&(STS.ga4_measurement_id=e.ga4_measurement_id,t=!0),STS.ga_asc_vinifier=e.ga_asc,t&&STS.GAClientId&&STS.GAClientId(),STS.wa_products=e.wa_products||{};var i=window.location.href.split("/"),a=i[2];"cdn.impel.io"!==a&&"embed.spincar.com"!==a||(STS.cdn_image_prefix=STS.cdn_image_prefix.replace("spincar.com","impel.io")),!0===Ve.hideDrawer&&(e.info.options.carousel=!1),STS.pano.init(Ge.hotspots,STS.info.multipano,{enable_vr_mode:!e.info.options.disable_vr_mode,disable_zoom:e.info.options.disable_zoom,load_images_from:je.load_images_from}),STS.gcircle.create(e.info),R.success(e)}function S(e,t){STS.postParent("sts_vehicle_data:"+JSON.stringify(t)),STS.postParent("sts_no_spin_exists"),Oe=!1,R.error(e)}function w(e){He.region=e.region,STS.vinifier(He,_,S)}function T(){R.error(!0)}function E(e){return JSON.parse(JSON.stringify(e))}function x(e,t,i,n,a){var o=new XMLHttpRequest;o.open(n,i),o.onreadystatechange=function(){4===o.readyState&&(200===o.status?e(JSON.parse(o.responseText)):t())},a?o.send(a):o.send()}function k(t,i,n){x(t,i,e(He.region)+"lead-form/save","POST",n)}function L(e){function t(n){if("string"==typeof n.data&&0===n.data.indexOf(i))try{var a=JSON.parse(n.data.slice(i.length));e(a.url)}catch(e){}finally{window.removeEventListener("message",t)}}var i="STS:integration-context";STS.postParent(i),window.addEventListener("message",t)}function z(e){He.customer=e.s3_folder,He.partner_id=e.partner_id,He.vin=e.vin,He.customerName=e.customer_name||e.s3_folder||""}function P(e){if(je.has_custom_pano_overlay=e.info.options.has_custom_pano_overlay||!1,je.custom_pano_overlay_url="",je.load_images_from=e.info.options.has_pano&&e.info.views.pano.load_images_from?e.info.views.pano.load_images_from:"pano",je.has_custom_pano_overlay){var t=window.location.href.indexOf("static-test")>0?"-testenv":"",i="https://sts-content"+t+".s3.amazonaws.com/";je.custom_pano_overlay_url=i+"custom_pano_overlay/"+m.getGlobalSettings().customer+"/custom_overlay.png"}}function V(e){return at.indexOf(e)>=0}function F(){for(var e=[],t=0,i=0;t<ot.length;t++){var n=ot[t];STS.args.UI.hidedamage&&V(n.imageURL)||(e.push({imageURL:n.thumbnailURL,title:"",parent:"Photos",priority:i+1,key:i}),i+=1)}for(var a=Object.values(nt),o=0;o<a.length;o++)e.push({imageURL:a[o].thumbnailURL,title:"",parent:"Photos",priority:t+1,key:t}),t+=1;if(ut&&rt)for(var s=0;s<st.length;s++)e.push({imageURL:st[s].thumbnailURL,title:"",parent:"Photos",priority:t+1,key:t}),t+=1;return e}function M(e){var t=e.target.id,i=this.label,n=this.thumbnailURL;switch(STS.Analytics2.sa_drawer_cards(i,n),STS.Analytics2.sa_body_click(),i){case"Features":case"Protection":case"Photos":case"Videos":b.view(t,"noCarousel"),e.stopPropagation(),STS.Analytics2.carousel_category_changed(t),"Videos"===i&&STS.Analytics2.video_tour_click();break;case"Test Drive":A.view("videoTestDrive"),STS.Analytics2.video_category_card_clicked("videoTestDrive");break;case"Video Overview":A.view("videoTour"),STS.Analytics2.video_category_card_clicked("videoTour");break;case"Engine Start":A.view("engine_start"),STS.Analytics2.video_category_card_clicked("EngineStartVideo");break;case"Factory Upgrades":B.view();break;case"Carfax":H.view("drawer");break;case"Request Quote":var a=m.getCTASettings().data;Me.webBuyCustomer&&(window.parent.postMessage("STS::web_buy_button_clicked","*"),window.parent.postMessage("STS::WebBuyCTA:"+JSON.stringify({vin:a.vin,year:a.year,make:a.make,model:a.model}),"*")),O.open(),e.isTrusted&&STS.Analytics2.carousel_cta_clicked()}}function U(e){var t=e.info.options.numImgCloseup>0&&!STS.args.UI.econly,i=t&&Xe&&!e.wa_products.wa_360,n=F(),a=n.length>0,o=[],s=[],r=e.info.options.enable_lead_form_carousel,l=e.info.options.consolidate_saft_features;if(!Ce){if(r&&o.push({label:"Request Quote",smallLabel:"Quote",thumbnailURL:"ui/request_quote_bg.png?_=d7eaac77278864",icon:"ui/icon-lead-form.svg?_=d7eaac77278864",callback:M}),!i&&Re||r||l){for(var c=ye(),u="",h=0,m=0;m<c.length;m++){var g=c[m].title.replace(" Features","");h+=Ke[g].length;for(var p=0;p<Ke[g].length;p++){var v=Ke[g][p];if(v.thumbnail_url){u=v.thumbnail_url;break}}}var f={label:"Features",i18n:"i18n-features-tab",thumbnailURL:u,count:h};STS.args.featurehighlightsenabled&&Be.show_feature_highlights&&h>=4?f.callback=function(){try{window.parent.frames["impel-feature-highlights"].postMessage("STS:feature-highlights::see-all","*")}catch(e){STS.postParent("STS:feature-highlights::see-all"+He.vin,"*")}}:f.callback=M,o.push(f)}if(Pe){for(var u="",y=0;y<lt.length;y++)if(lt[y].thumbnail_image_path||lt[y].image_path){u=lt[y].thumbnail_image_path||lt[y].image_path;break}o.push({label:"Protection",i18n:"i18n-protection-tab",thumbnailURL:u,icon:"ui/icon-protection.svg?_=d7eaac77278864",callback:M})}if(a&&!STS.args.UI.econly&&!e.info.options.hide_photos&&!e.info.options.show_photo_thumbnails){for(var h=0,u="",m=0;m<n.length;m++)if(n[m].hasOwnProperty("imageURL")){u=n[m].imageURL;break}o.push({label:"Photos",i18n:"i18n-photos-tab",thumbnailURL:u,count:n.length,callback:M})}!i&&Object.keys(tt).length&&o.push({label:"Test Drive",thumbnailURL:tt.imageURL,icon:"ui/icon-play.svg?_=d7eaac77278864",callback:M}),!i&&Object.keys(et).length&&o.push({label:"Video Overview",smallLabel:"Overview",thumbnailURL:et.imageURL,icon:"ui/icon-play.svg?_=d7eaac77278864",callback:M});var _=d(it);if(!i&&_&&o.push({label:"Engine Start",thumbnailURL:_.imageURL,icon:"ui/icon-play.svg?_=d7eaac77278864",callback:M}),Object.keys(Ze).length&&o.push({label:"Videos",i18n:"i18n-videos-tab",thumbnailURL:Ze[Object.keys(Ze)[0]].thumbnail_url,icon:"ui/icon-play.svg?_=d7eaac77278864",key:"video",callback:M}),$e.isEnabled&&$e.data.length&&e.customer.featuretour&&o.push({label:"Factory Upgrades",smallLabel:"Upgrades",thumbnailURL:"ui/factory_upgrade_logo.png?_=d7eaac77278864",icon:"ui/icon-upgrades.svg?_=d7eaac77278864",callback:M}),Object.keys(Ye).length&&e.customer.featuretour&&o.push({label:"Carfax",thumbnailURL:"ui/Carfax_logo_bg.png?_=d7eaac77278864",icon:"ui/icon-carfax.svg?_=d7eaac77278864",callback:M}),a&&e.info.options.show_photo_thumbnails){for(var m=0;m<n.length;m++)n[m].callback=function(){C.viewCloseup(this.key,"drawer")};o=o.concat(n)}if(i&&Re&&!r&&!l){s=["Protection","Carfax","Factory Upgrades","Photos"];for(var c=ye(),m=0;m<c.length;m++)for(var g=c[m].title.replace(" Features",""),p=0;p<Ke[g].length;p++){var v=Ke[g][p];o.push({automatic:v.automatic,label:v.name,thumbnailURL:v.thumbnail_url||v.image,title:v.category.length?g+" Features":"Features",class:"carousel-features-card",callback:function(){var e=v.category.length?"features":"Features";I.view(e,this.automatic,"drawer"),STS.Analytics2.feature_category_card_clicked(v.name)}})}}ze&&Re&&(s=i?["Features","Request Quote","Videos"]:["Features","Request Quote","Videos","Photos"]),s&&o.sort(function(e,t){var i=s.indexOf(e.label),n=s.indexOf(t.label);return-1===i&&(i=s.length),-1===n&&(n=s.length),i-n})}Fe.cards=o}function D(e){var t=[];if(it.length)for(var i=0;i<it.length;i++)t.push({imageURL:it[i].imageURL,title:it[i].videoLabel,parent:"Videos",key:it[i].videoName,cardType:"video"});if(Object.keys(et).length&&!STS.args.UI.hidelivevideo&&t.push({imageURL:et.imageURL,title:"Video Overview",parent:"Videos",priority:1,cardType:"video",key:"videoTour"}),Object.keys(tt).length&&t.push({imageURL:tt.imageURL,title:"Video Test Drive",parent:"Videos",priority:1,cardType:"video",key:"videoTestDrive"}),Re){var n=ye();$e.isEnabled&&$e.data.length&&e.customer.featuretour&&t.push({imageURL:"ui/factory_upgrade_logo.png?_=d7eaac77278864",title:"Factory-Installed Upgrades",parent:"Features",priority:Object.keys(Ke).length+1,key:"factoryUpgrades"}),Object.keys(Ye).length&&e.customer.featuretour&&t.push({imageURL:"ui/Carfax_logo_bg.png?_=d7eaac77278864",title:"CARFAX",parent:"Features",priority:Object.keys(Ke).length+2,key:Ye.name});for(var a=0;a<n.length;a++){n[a].key.length>0&&t.push(n[a]);for(var o=n[a].title.replace(" Features",""),s=0;s<Ke[o].length;s++){var r=Ke[o][s];t.push({thumbnailURL:r.thumbnail_url||r.image,imageURL:r.image,title:r.name,parent:r.category.length?o+" Features":"Features",cardType:"feature",priority:s+1,key:r.automatic||r.name,automatic:r.automatic})}}var l=Object.keys(Qe);l.sort(function(e,t){return Qe[e].length>Qe[t].length?-1:Qe[e].length<Qe[t].length?1:e>t?1:e<t?-1:void 0});for(var c=0;c<l.length;c++){var d=l[c];d&&t.push({imageURL:Qe[d][0].image,title:d+" Videos",parent:"Videos",priority:c+1,cardType:"videoCategory",key:d});for(var u=0;u<Qe[d].length;u++){var h=Qe[d][u];t.push({imageURL:h.image?h.image:h.thumbnail_url,title:h.name,parent:d.length?d+" Videos":"Videos",cardType:"video",priority:u+1,key:h.name})}}}if(STS.args.UI.econly||e.info.options.hide_photos||(t=t.concat(F())),Pe)for(var m=0;m<lt.length;m++){var g={thumbnailURL:lt[m].thumbnail_image_path||lt[m].image_path,title:lt[m].name,parent:"Protection",priority:lt[m].priority};lt[m].video_path?Object.assign(g,{cardType:"video",key:lt[m].name,video:lt[m].video_path}):Object.assign(g,{key:m}),t.push(g)}Ve.cards=t,Ve.hideDrawer=STS.args.UI.hidecarousel||STS.args.vdppopoutbutton||e.info.options.hide_carousel||!1,Ve.hidePhotos=e.info.options.hide_photos||!1}function N(e){if(Me.disableVRMode=e.info.options.disable_vr_mode||!1,Me.disableZoom=e.info.options.disable_zoom||!1,Me.hideDrawer=e.info.options.hide_carousel||STS.args.UI.hidecarousel||STS.args.vdppopoutbutton||!1,Me.disableDrawer=STS.args.UI.disabledrawer||!1,Me.disable_autospin=STS.args.UI.disableautospin||e.info.options.disable_autospin||!1,Me.enable_drag_to_view_overlay=(e.info.options.enable_drag_to_view_overlay||STS.args.UI.enabledragtoview)&&e.wa_products.wa_360||!1,Me.hidePhotos=e.info.options.hide_photos||!1,Me.disableLangToggle=e.info.options.disable_ft_language_toggle||!1,Me.ft_locale=e.ft_locale,Me.translations_present=0!==e.info.options.features_translated.length,Me.hideZoomUI=e.info.options.hide_zoom_ui||STS.args.UI.hidezoom,Me.disableScrollToZoom=e.info.options.disable_scroll_to_zoom||STS.args.UI.disablescrolltozoom,Me.enableSmallCursor=e.info.options.enable_small_cursor||STS.args.UI.enablesmallcursor,Me.showPlaceholder=STS.args.UI.showplaceholder||!1,Me.consolidate_saft_features=e.info.options.consolidate_saft_features||!1,Me.showPoweredByImpel=!(STS.args.UI.hidepowerbyimpel||STS.args.UI.hidepowerbyspincar)&&(STS.args.UI.showpowerbyimpel||STS.args.UI.showpowerbyspincar||e.info.options.show_powered_by_impel||!1),Me.disableHotspotToggle=e.info.options.disable_hotspot_toggle,Me.hideHotspots=STS.args.UI.hidehotspots||STS.args.UI.econly||!1,Me.hideDamageTags=STS.args.UI.hidedamagetags||STS.args.UI.econly||!1,Me.hideDamage=STS.args.UI.hidedamage||!1,Me.hideExpandBtn=STS.args.UI.hideexpandbtn||!1,Me.hideCTABtn=STS.args.UI.hidecta||!1,Me.hideEngineStart=STS.args.UI.hideenginestart||!1,Me.enterpriseTheme=STS.args.enterprisetheme||!1,Me.hasExteriorView=e.info.options.numImgEC&&e.info.options.numImgEC>0||!1,Me.hasInteriorView=(e.info.options.numImgI&&e.info.options.numImgI>0||e.info.options.has_pano||!1)&&!STS.args.UI.econly,Me.hasPanoView=(e.info.options.has_pano||!1)&&!STS.args.UI.econly,Me.hasCloseups=(e.info.options.numImgCloseup&&e.info.options.numImgCloseup>0||!1)&&!STS.args.UI.econly,Me.hasFeatureTour=Re&&Ve.cards.length,Me.hasFinanceInsuranceProducts=Pe&<.length,Me.isIAA=15===e.partner_id,Me.webBuyCustomer=e.info.options.webbuy_customer||!1,Me.hasLeadForm=e.info.options.enable_lead_form||!1,Me.hasCarouselLeadForm=e.info.options.enable_lead_form_carousel||!1,Me.hasVideo=Object.keys(et).length||Object.keys(Je).length||Object.keys(tt).length||!1,Me.uiColors={hotspot:STS.args.UI.stscolor&&STS.args.UI.stscolor.split(",")[0]?"#"+STS.args.UI.stscolor.split(",")[0]:"#00a19b",waButton:STS.args.UI.stscolor&&STS.args.UI.stscolor.split(",")[2]?"#"+STS.args.UI.stscolor.split(",")[2]:"#00a19b",specialHotspot:STS.args.UI.specialfeaturecolor?"#"+STS.args.UI.specialfeaturecolor:"#29b37f"},Me.multipanoList=[],Me.hasInteriorView&&e.info.multipano&&e.info.multipano.forEach(function(t){var i=e.cdn_image_prefix.split("/").slice(0,-2).join("/")+"/multipano/pano_"+t.index+"/";Me.multipanoList.push({index:t.index,name:t.name,url:i})}),e.info.asset_class){var t=e.info.asset_class.filter(function(e){return"butterfly"===e.name});t.length?Me.hasButterflyExterior=t[0].numImgEC>0:Me.hasButterflyExterior=!1}else Me.hasButterflyExterior=!1;if(STS.args.cargurusvdp&&(Re=Me.hasFeatureTour,Me.hasFeatureTour=!1,Me.hasFinanceInsuranceProducts=!1,Me.hasVideo=!1,Me.hideExpandBtn=!0),Me.enterpriseTheme){var i="";"BMW_Compliance_UI"===Me.enterpriseTheme&&(i="20190909/styles/enterprise_themes/bmwComplianceUI.scss?_=d7eaac77278864");var n=document.URL,a="";a=-1===n.indexOf("static-test")?"https://cdn.impel.io/spincar-static/":"https://cdn.impel.io/static-test/"+STS.args.teststatic+"/";var o=document.createElement("link");o.rel="stylesheet",o.href=a+i,i&&document.head.appendChild(o)}}function W(e){var t={},i=0;for(var n in Ke){if(Ke.hasOwnProperty(n)){var a="Features";n.length&&(a=n+" "+a),t[a]={};for(var o=0;o<Ke[n].length;o++){var s,r=Ke[n][o];s=r.automatic;var l
- ;l=o===Ke[n].length-1?Ke[n][0].automatic:Ke[n][o+1].automatic;var c;c=0===o?Ke[n][Ke[n].length-1].automatic:Ke[n][o-1].automatic,t[a][r.automatic]={automatic:r.automatic,name:r.name,category:r.category,imageURL:r.image,description:r.description,longDescription:r.description_long,curKey:s,nextKey:l,prevKey:c,videoKey:r.video?r.name:null,index:o,total:Ke[n].length}}}i+=Ke[n].length}var d={},u="",c="",h=0;["Convenience","Safety","Technology","Performance"].forEach(function(e){if((e+=" Features")in t)for(var n=Object.keys(t[e]),a=0;a<n.length;a++,h++){var o=n[a];d[o]=structuredClone(t[e][o]),d[o].total=i,d[o].index=h,h===i-1?(u.prevKey=d[o].curKey,d[o].nextKey=u.curKey):0===h?u=d[o]:0===a&&""!==c?(d[o].prevKey=c.curKey,c.nextKey=d[o].curKey):a===n.length-1&&(c=d[o])}}),Ue.features=t,Ue.features.total=i,Ue.allFeatures=d,Ue.enable_auction_disclaimer=e.enable_auction_disclaimer}function G(e){for(var t=[],i=0;i<ot.length;i++)Me.hideDamage&&V(ot[i].imageURL)||t.push({imageURL:ot[i].imageURL,name:ot[i].name||null});var n=Object.values(nt);for(i=0;i<n.length;i++)t.push({imageURL:n[i].imageURL,name:n[i].name||null});for(i=0;i<st.length;i++)t.push({imageURL:st[i].imageURL,name:st[i].name||null});De.photos=t,De.enable_photo_labels=e.info.options.enable_photo_labels}function j(){var e={};if(et.hasOwnProperty("videoURL")&&(e.videoTour=et.videoURL),tt.hasOwnProperty("videoURL")&&(e.videoTestDrive=tt.videoURL),it.length>0)for(var t=0;t<it.length;t++)e[it[t].videoName]=it[t].videoURL;for(var i in Je)Je.hasOwnProperty(i)&&(e[i]=Je[i].video);Ne.videos=e}function q(e){We.data={vin:e.vin,make:e.make?e.make:"",model:e.model?e.model:"",year:e.year?e.year:"",stock:e.stock?e.stock:"",s3Folder:e.options.s3_folder,customer:He.customerName}}function $(e){if(!((Me.hideDamageTags||Me.hideDamage)&&i(e.icon)||Me.hideEngineStart&&"engine_start"===e.video_key))return e}function X(e){Ge.hotspots=Me.hideHotspots?[]:e.info.options.hotspots,Ge.hotspots=Ge.hotspots.filter($),Ge.showAll=!!STS.args.automatichotspots,Ge.isPartnerWebsite=!!He.partner,Ge.isFT=Re}function K(){return E(He)}function Y(){return Fe}function J(){return E(Ve)}function Z(){return E(Me)}function Q(){return E(De)}function ee(){return E(Ne)}function te(){return E(We)}function ie(){return E(Ge)}function ne(){return E(je)}function ae(){return E(qe)}function oe(){return E($e)}function se(e){return E(Ue.allFeatures[e])}function re(e,t){return E(Ue.features[e][t])}function le(e){return E(De.photos[e])}function ce(){return E(lt)}function de(){return De.photos.length}function ue(){return Ce}function he(){return Ae}function me(){return E(Ue).enable_auction_disclaimer}function ge(e){return Ne.videos[e]}function pe(){return Ye.hasOwnProperty("dataKey")?Ye.dataKey:null}function ve(){return STS.args.usemaxwidth}function fe(){var e={};if(!Re)return e;for(var t=Object.keys(Ke),i=0;i<t.length;i++){var n=t[i];e[n+" Features"]={};for(var a=0;a<Ke[n].length;a++){var o=Ke[n][a];e[n+" Features"][o.name]=!1}}return e}function ye(){var e=[],t=Object.keys(Ke);t.sort(function(e,t){return Ke[e].length-Ke[t].length}).reverse();for(var i=0;i<t.length;i++){var n=t[i],a=Ke[n][0].image,o=Ke[n][0].thumbnail_url;e.push({thumbnailURL:o||a,imageURL:a,title:n+" Features",parent:"Features",cardType:"featureCategory",priority:i+1,key:n})}return e}function _e(e){return E(nt[e])}function Se(){mt=!mt,n(Be),D(Be),W(Be),j(),Ie(Be)}function we(){Me.hideHotspots=!Me.hideHotspots,X(Be)}function be(){function e(i){"STS:fi-to-spin::exists"!==i.data||t||(Ve.cards.push({imageURL:"https://consumer-assets.impel.io/fi_quiz_card.svg",title:"Take the Quiz",parent:"Protection",priority:-9999999,key:-1}),window.removeEventListener("message",e),t=!0,STS.postParent("STS:fi-from-spin::setCustomerAndVin:::"+He.customer+"/"+He.vin,"*"))}var t=!1;window.addEventListener("message",e),STS.postParent("STS:fi-from-spin::existence_check","*");var i=0,n=setInterval(function(){if(5===(i+=1)||t)return void clearInterval(n);STS.postParent("STS:fi-from-spin::existence_check","*")},2e3)}function Te(e){var t=e.data;if("string"==typeof t&&t.startsWith("STS:GAData:request")){var i={ga4_measurement_id:STS.ga4_measurement_id||null,ga_client_id:STS.ga_client_id||null},n=JSON.stringify(i);STS.postParent("STS:GAData:response:::"+n),window.removeEventListener("message",Te)}}function Ee(){return dt}function xe(){dt={}}function ke(e){Object.keys(e).forEach(function(t){dt[t]=e[t]})}function Ie(e){var t=document.querySelectorAll(".drawer-carousel-card"),i=e.info.options.hotspots;Le(t,e.info.options.features_translated,i,Me.translations_present&&mt)}function Le(e,t,i,n){Array.prototype.forEach.call(e,function(e){if(e.getElementsByClassName("carousel-features-card").length){var a=e.getElementsByClassName("carousel-features-card")[0],o=e.getElementsByTagName("span")[0],s=a.textContent,r=n?i:t,l=n?t:i,c=r.find(function(e){return e.name===s}),d=c.automatic,u=l.find(function(e){return e.automatic===d});a.textContent=u.name,e.setAttribute("id",u.name),o.setAttribute("aria-label",u.name)}})}"swipetospinvin"===STS.args.customer&&(STS.args.customer="swipetospin",STS.args.vin=window.location.hash.match(/vin=([a-z0-9]+)/)[1]);var Ce,Ae,Be,Oe=!0,He={customer:STS.args.customer,partner:STS.args.partner,region:STS.args.region,vin:STS.args.vin},Re=!1,ze=!1,Pe=!1,Ve={},Fe={},Me={},Ue={},De={},Ne={},We={},Ge={},je={},qe={},$e={},Xe={},Ke={},Ye={},Je={},Ze={},Qe={},et={},tt={},it=[],nt={},at=[],ot=[],st=[],rt=[],lt=[],ct=!1,dt={},ut=!1,ht=[20,21],mt=!1;return setTimeout(function(){Oe&&R.error(!0)},3e3),He.region?STS.vinifier(He,_,S):STS.regioner(He.customer,w,T),{getAllFeatures:se,getGlobalSettings:K,getCarouselSettings:Y,getDrawerSettings:J,getUiSettings:Z,getPhotoViewerSettings:Q,getVideoViewerSettings:ee,getCTASettings:te,getHotspotSettings:ie,getPanoSettings:ne,getAnalyticsSettings:ae,getFactoryUpgrades:oe,callLeadFormAPI:k,getFeature:re,getFinanceInsuranceProducts:ce,getPhoto:le,getNumPhotos:de,isCloseupOnly:ue,isSAFT:he,isAuctionDisclaimerEnable:me,getVideoURL:ge,getVideoCategory:r,getCarfaxKey:pe,useMaxWidth:ve,getViewedFeatures:fe,getCategoryCards:ye,getIAAPhoto:_e,getIntegrationContext:L,toggleLanguage:Se,toggleHotspots:we,_hardcodedfixes:{force_high_res:t},getGridState:Ee,clearGridState:xe,updateGridState:ke}}();STS.pano=function(){function e(e){var t=p[e].preload_src,i=new Image,n=1*new Date;i.onload=function(){p[e].preloaded=!0},i.onerror=function(){var e=this;setTimeout(function(){e.src=t},Math.max(10,(1*new Date-n)/10))},i.src=t}function t(e){s.forEach(function(t){var i=p[e].prefix+"pano_"+t+".jpg";p[e].image_map[r.replace("%s",t)]=i,"f"===t&&(p[e].preload_src=i)})}function i(e){if(!e.pano||!e.pano[0])return!1;var t=!!STS.args.automatichotspots,i=m.getHotspotSettings().isFT;return!t&&i&&e.automatic||!t&&e.feature_tour_only?void 0:!STS.args.UI.hidecarfax||"Free CARFAX Report"!==e.name}function n(e){new l({getVirtualCamera:function(){return l.globeToOrientation(90-e.get("view.hlookat"),-e.get("view.vlookat"))},setVirtualCamera:function(t,i,n){var a=l.xyzToGlobe(t,i,n);e.set("view.hlookat",90-a.longitude),e.set("view.vlookat",-a.latitude)}})}function a(e,n,a){this.multipano=n,o=e.filter(i),u=a,p[c]={image_map:{},prefix:STS.cdn_image_prefix+u.load_images_from+"/",preloaded:!1,status:"init"},n&&n.forEach(function(e){var t=STS.cdn_image_prefix.split("/").slice(0,-2).join("/")+"/multipano/pano_"+e.index+"/";p[e.index]={image_map:{},prefix:t,preloaded:!1,status:"init"}}),Object.keys(p).forEach(t)}var o,s="frblud".split(""),r="data:,%s",c=0,d="ui/black_circle.png?_=d7eaac77278864",u={},h=document.getElementById("hero-view"),g=document.createElement("script");g.async=!0,document.head.appendChild(g);var p={};return{init:a,create:function(t){var i=this;if(t||(t=0),p.hasOwnProperty(t)){if(g.src||(g.src="tour.js?_=d7eaac77278864"),this.imgs_loaded=0,this.image_map=p[t].image_map,"ready"===p[t].status)return this.krpano=p[t].krpano,this.panorama=document.getElementById("panorama-"+t),void(this.krpano.get("do_lookto_semaphore")&&(this.krpano.call("lookat(-90,0)"),this.krpano.call("do_lookto()")));if("loading"!==p[t].status){p[t].status="loading",e(t),this.panorama=document.createElement("div"),this.panorama.id="panorama-"+t,this.panorama.classList.add("panorama"),h.appendChild(this.panorama),$(this.panorama).on("mousedown",function(e){E.analyticsDragStart(e,"pano")}),$(this.panorama).on("touchstart",function(e){E.analyticsDragStart(e,"pano")}),m&&m.getPanoSettings().has_custom_pano_overlay&&(d=m.getPanoSettings().custom_pano_overlay_url);var n=setInterval(function(){"undefined"!=typeof embedpano&&p[t].preloaded&&(clearInterval(n),embedpano({xml:"tour.xml",target:i.panorama.id,consolelog:!1,id:"krpanoviewer-"+t,html5:"only",passQueryParameters:!0,initvars:{PATH:r,OVERLAY_PATH:d},onready:i.krpanoOnReady}))},50)}}},krpanoOnReady:function(e){var t=Number(e.id.match(/\d+$/)[0]);this.krpano=p[t].krpano=e,p[t].status="ready","krpanoviewer-0"===e.id&&(o.forEach(function(t,i){var n=t.pano[0][0],a=t.pano[0][1];e.call("add_hotspot(sts_"+i+","+n+","+a+")")}),this.setup_hotspots(t)),STS.browser.mobile&&!u.disable_vr_mode&&n(e),u.disable_zoom&&e.set("control.mousefovchange",0);var i=document.querySelector("#krpanoviewer-"+t+"> div:nth-child(1) > div:nth-child(1) > canvas"),a="";a=0===t?"Vehicle Interior Image":this.multipano[t-1].name,z.aria({elem:i,ariaLabel:a})},setup_hotspots:function(e){if(o.length){var t=this,i=$('#krpanoviewer-0 > div:nth-child(1) > div:nth-child(2) > div[style*="/tmp.png"]');if(o.length>i.length)return void setTimeout(function(){t.setup_hotspots(e)},100);$.each(i,function(e){var t=o[e];i[e].tabIndex=0,"blemish"===t.icon?$(i[e]).append(STS.hs.icon("damage",t.name||"")):$(i[e]).append(STS.hs.icon(t.icon,t.name||"")),$(i[e]).on("click",function(t){STS.gcircle.hotspotClick(o[e])}).on("touchstart touchend",function(t){var i=$(this);"touchstart"===t.type?i.data("last_touchstart",Date.now()):Date.now()-i.data("last_touchstart")<300&&STS.gcircle.hotspotClick(o[e])})})}},getPanoHotspots:function(){return o||[]}}}(),$.each(STS.pano,function(e,t){"function"==typeof t&&(STS.pano[e]=t.bind(STS.pano))}),STS.hs={};var g=["default","damage","video","star"];STS.hs.icon=function(e,t,i){e&&-1!==g.indexOf(e)||(e="default");var n=document.createElement("div");n.classList.add("hotspot");var a=i;return a="star"==e?a||m.getUiSettings().uiColors.specialHotspot:a||m.getUiSettings().uiColors.hotspot,STS.icons.createIcon(n,e,a).hoverContent(e+"-hovered").tooltipText(t).create(),n.style.display=m.getUiSettings().hideHotspots?"none":"block",n},STS.icons=STS.icons||{},STS.icons._init=function(){if(void 0===STS.icons.assets){STS.icons.assets=null;var e=document.createElement("script");e.type="text/javascript",e.src="ui/hotspot_icons/icons.js?_=d7eaac77278864",document.querySelector("head").appendChild(e),STS.icons.colors=[]}},STS.icons._createIconImage=function(e,t){function i(e){var t=null;t||(t=document.createElement("style"),t.type="text/css",document.head.appendChild(t)),t.sheet.insertRule(e,t.length)}var n=document.createElement("img");n.addEventListener("dragstart",function(e){e.preventDefault()});var a=STS.icons.assets[e],o={r:0,g:161,b:155};return t=t||"#00a19b","#00a19b"!==t&&(a=a.replace(/#00a19b|#29b37f/gi,t),o=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:{r:0,g:161,b:155}}(t)),-1===STS.icons.colors.indexOf(t)&&(i("@keyframes pulseAnimation"+t.slice(1)+" {0% {-moz-box-shadow: 0 0 0 0 rgba("+o.r+", "+o.g+", "+o.b+", 1);box-shadow: 0 0 0 0 rgba("+o.r+", "+o.g+", "+o.b+", 1);}50% {-moz-box-shadow: 0 0 0 10px rgba("+o.r+", "+o.g+", "+o.b+", 0);box-shadow: 0 0 0 10px rgba("+o.r+", "+o.g+", "+o.b+", 0);}100% {-moz-box-shadow: 0 0 0 0 rgba("+o.r+", "+o.g+", "+o.b+", 0);box-shadow: 0 0 0 0 rgba("+o.r+", "+o.g+", "+o.b+", 0);}}"),STS.browser.IE||i("@-webkit-keyframes pulseAnimation"+t.slice(1)+" {0% {-webkit-box-shadow: 0 0 0 0 rgba("+o.r+", "+o.g+", "+o.b+", 1);}50% {-webkit-box-shadow: 0 0 0 10px rgba("+o.r+", "+o.g+", "+o.b+", 0);}100% {-webkit-box-shadow: 0 0 0 0 rgba("+o.r+", "+o.g+", "+o.b+", 0);}}"),STS.icons.colors.push(t)),n.src="data:image/svg+xml;base64,"+window.btoa(a),n.classList.add("pulse"),n.style.animation="pulseAnimation"+t.slice(1)+" 2s infinite",n},STS.icons.createIcon=function(e,t,i){e.classList.add("tooltip");var n=document.createElement("div"),a=document.createElement("div"),o=document.createElement("span");a.classList.add("hovered"),n.classList.add("unhovered"),o.classList.add("name"),o.classList.add("label"),o.style.display="none",e.appendChild(n),e.appendChild(a),a.appendChild(o),STS.browser.mobile||(e.addEventListener("mouseenter",function(){n.style.display="none",a.style.display="block"}),e.addEventListener("mouseleave",function(){n.style.display="block",a.style.display="none"}));var s,r,l;return{hoverContent:function(e){return s=e,this},tooltipText:function(e){return o.style.display="",r=e,this},tooltipi18n:function(e){return o.style.display="",l=e,this},create:function(){var e=this;if(!STS.icons.assets){STS.icons._init();var c=20;return-1===document.readyState.indexOf("in")&&(c=Math.max(20,(1*new Date-STS.load_start)/10)),void setTimeout(function(){e.create()},c)}STS.icons.assets[t]||(t="default"),i?(n.appendChild(STS.icons._createIconImage(t,i)),a.appendChild(STS.icons._createIconImage(s,i))):(n.appendChild(STS.icons._createIconImage(t)),a.appendChild(STS.icons._createIconImage(s))),r&&o.appendChild(document.createTextNode(r)),l&&o.classList.add("spincar-i18n-"+l)}}};var p=function(){return[Math.min(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,window.outerWidth||1/0),Math.min(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,window.outerHeight||1/0)]},v=function(){function e(){if(STS.browser.mobile){if(STS.browser.ios)return[window.innerWidth,window.innerHeight];return[Math.min(screen.width||window.innerWidth),window.innerHeight]}return STS.args.UI.useinnerwidth||STS.browser.ios?[window.innerWidth,window.innerHeight]:p()}function t(){var t=1,i=m.getUiSettings(),n=m.getDrawerSettings().cards||[];!i.hideDrawer&&n.length>0&&(t=.75);var a=h();w&&a.isMobile&&(t="portrait"===a.orientation?window.innerWidth*(S/_)/window.innerHeight:1);var o=_/S*t,s=e(),r=s[0],l=s[1],c=Math.min(r,l*o),d=Math.min(r/o,l);return m.useMaxWidth()&&(c=r,d=r/o),parent!==window&&v!==o&&STS.postParent("sts_update_aspect:"+o),v=o,{viewWidth:Math.floor(c),viewHeight:Math.floor(d*t),subviewHeight:Math.floor(d*(1-t)),isFullscreen:w,mobileOrientation:a}}function i(){var e=t();return e.viewHeight=e.viewHeight+e.subviewHeight,delete e.subviewHeight,e}function n(){var e=t();return 0===e.subviewHeight&&(e.subviewHeight=Math.floor(.25*e.viewHeight),e.viewHeight=Math.floor(.75*e.viewHeight)),e}function a(){return o(E.getView())}function o(e){switch(e){case"hero":case"standaloneViewer":return t();case"featureViewer":case"financeInsuranceProductViewer":return n();case"photoViewer":case"videoViewer":case"carfaxViewer":case"factoryUpgradesViewer":return i();case"ui":return a();case"leadForm":case"lightboxViewer":return i()}}function s(e,t){var i=x.indexOf(t);-1!==i&&f.splice(i,0,{resize:e,label:t})}function r(){for(var e=0;e<f.length;e++)f[e].resize(o(f[e].label))}function l(e,t){var i=x.indexOf(t);-1!==i&&y.splice(i,0,e),b&&y.length===T.length&&(b=!1,c())}function c(){for(var e=0;e<y.length;e++)y[e][w?"exit":"enter"]();w?(STS.postParent("STS:FullBrowser::close"),w=!1):(STS.postParent("STS:FullBrowser::open"),w=!0),STS.Analytics2.sa_fullscreen_click(w),r()}function d(e,t){_=e,S=t}function u(){return w}function h(){var t=e(),i=t[0],n=t[1];return{isMobile:STS.browser.mobile,orientation:window.innerHeight>window.innerWidth?"portrait":"landscape",width:i,height:n}}function g(){return{width:_,height:S}}var v,f=[],y=[],_=16,S=9,w=!1,b=!1,T=["ui","drawer"],x=["hero","standaloneViewer","ui","photoViewer","featureViewer","financeInsuranceProductViewer","leadForm","videoViewer","carfaxViewer","factoryUpgradesViewer","drawer","lightboxViewer"];return["resize","orientationchange"].forEach(function(e){window.addEventListener(e,function(){r()})}),document.addEventListener("keyup",function(e){27===e.keyCode&&w&&c()}),window.addEventListener("message",function(e){"STS:Redesign::expand"===e.data&&c(),"STS:Redesign::resize"===e.data&&r(),"STS:Redesign::SRPclick"===e.data&&(y.length===T.length?c():b=!0,STS.Analytics2.srp_btn_clicked())}),{addResizer:s,callResizers:r,updateImageDimensions:d,addFullscreenHandler:l,callFullScreenHandlers:c,isFullscreen:u,getMobileOrientation:h,getImageDimensions:g}}(),f=m.getGlobalSettings().customer,y=c.getCars24ButterflyCustomers();STS.args.UI.useinnerwidth&&(p=function(){return[window.innerWidth,window.innerHeight]}),STS.zoom={checkPanoLimits:function(){if(STS.pano&&STS.pano.krpano){var e=STS.pano.krpano,t=e.get("view.fov"),i=e.get("view.fovmin"),n=e.get("view.fovmax");this.checkLimits(t,n,i)}},checkLimits:function(){var e=document.getElementById("zoomin-btn"),t=document.getElementById("zoomin-icon"),i=document.getElementById("zoomout-btn"),n=document.getElementById("zoomout-icon");return function(a,o,s){a===s?(t.style.opacity=.25,e.style.opacity=.5):(t.style.opacity=1,e.style.opacity=1),a===o?(n.style.opacity=.25,i.style.opacity=.5):(n.style.opacity=1,i.style.opacity=1)}}(),clickToZoom:function(e,t,i,n,a){var o=function(e,t,i){return(t-e)*i}(t,i,n),s=function(e,t,i){e-=t;var n=e%i;return e<i&&e>0&&(n=e),n}(e,t,o),r=e-s+o;return a&&(0!==s&&(s=o-s),r=e+s-o),r},calculateOutsideMax:function(e,t){return Math.ceil(e/t*2)}},STS.gcircle={create:function(e){var t=m.getUiSettings();this.zoomBtns=document.getElementById("zoom-btns"),this.disableScrollToZoom=!STS.browser.mobile&&(t.hideZoomUI&&t.disableScrollToZoom||!t.hideZoomUI),this.ready=!1,this.hasCarouseCards=m.getCarouselSettings().cards.length>0,this.element=$("#gcircle"),this.options=e.options,this.asset_class_list=e.asset_class||[],this.placeholders=e.placeholders||{},this.selected_asset_class=null,this.loadSingleImage=t.disable_autospin,this.showplaceholder=t.showPlaceholder,void 0===this.options.numImgEC&&this.options.has_pano&&(this.currentView="interiorPanoOnly"),this.imgW=-16,this.imgH=-9,this.minZoom=1.2,this.container=$('<div id="spinContainer">')[0],this.imageCover=$("<div>").appendTo(this.container).addClass("imageCover").on("mousedown mouseup touchstart touchend touchcancel contextmenu",this.dragHandler).on("wheel",this.scrollHandler).on("click",this.clickHandler),$(window).on("mouseup",this.dragHandler),this.canvas=$("<canvas>").css("visibility","hidden")[0],z.aria({elem:this.canvas,ariaLabel:"Vehicle Exterior Image"}),this.context=this.canvas.getContext("2d"),$(this.container).append(this.canvas),this.element.empty(),this.element.append(this.container),this.view_handlers={},this.showplaceholder&&"out"!==STS.args.popoutenabled?(r(),STS.postParent("sts_spin_exists")):this.options.numImgEC?s():this.options.has_pano?(o(),STS.postParent("sts_spin_exists")):this.options.numImgI?o():this.options.numImgCloseup&&(this.setView("closeup_only"),STS.postParent("sts_spin_exists")),v.addResizer(this.resize,"hero"),v.callResizers()},resize:function(e){var t=v.getImageDimensions(),i=document.getElementById("spincar-view"),n=document.getElementById("hero-container"),a=m.getUiSettings().hideDrawer;this.mobileOrientation=e.mobileOrientation,this.isFullscreen=e.isFullscreen,this.sizeW=e.viewWidth,this.sizeH=e.viewHeight,this.carousel_height=e.subviewHeight,this.portraitFullscreen=null,i.style.width=this.sizeW+"px",n.style.height=this.sizeH+"px",this.MOBILE_DRAWER_FH=100,(-16!==this.imgW||this.currentView)&&("standaloneViewer"===this.currentView?(this.imgH=t.height,this.imgW=t.width):"interiorPanoOnly"===this.currentView&&(this.imgH=this.sizeH,this.imgW=this.sizeW),this.vw=window.innerWidth,this.vh=window.innerHeight,this.ar=this.imgH/this.imgW,this.MIN_MARGIN=100,this.CAROUSEL_MAX_HEIGHT=170,this.DESKTOP_BREAK_POINT=480,this.MAX_IMAGE_WIDTH=1280,this.DRAWER_HEIGHT_PERCENTAGE=3,this.maxImageHeight=this.MAX_IMAGE_WIDTH*this.ar,this.desktopView=!1,this.imageWidth=Math.min(this.imgW,this.vw),this.imageHeight=Math.round(this.imageWidth*this.ar),this.desktopDrawerHeight=Math.min(this.CAROUSEL_MAX_HEIGHT,this.imageHeight/this.DRAWER_HEIGHT_PERCENTAGE),x.removeCarouselBackground("black"),this.vw>=this.DESKTOP_BREAK_POINT&&(this.imageWidth=Math.min(this.MAX_IMAGE_WIDTH,this.imageWidth),this.imageHeight=Math.min(this.maxImageHeight,this.imageHeight),this.desktopView=!0,a&&this.imageHeight+this.MIN_MARGIN>=this.vh?(this.imageHeight=Math.min(this.maxImageHeight,this.vh-this.MIN_MARGIN),this.imageWidth=Math.round(this.imageHeight/this.ar)):this.imageHeight+this.MIN_MARGIN+this.desktopDrawerHeight>=this.vh&&!this.mobileOrientation.isMobile&&(this.desktopDrawerHeight=(this.vh-this.MIN_MARGIN)/4,this.imageHeight=this.desktopDrawerHeight*this.DRAWER_HEIGHT_PERCENTAGE,this.desktopDrawerHeight=Math.min(this.CAROUSEL_MAX_HEIGHT,(this.vh-this.MIN_MARGIN)/4),this.imageHeight=this.vh-this.desktopDrawerHeight,this.imageWidth=Math.round(this.imageHeight/this.ar)),this.imageWidth>=this.vw-this.MIN_MARGIN&&(this.imageWidth=this.vw-this.MIN_MARGIN,this.imageHeight=Math.round(this.imageWidth*this.ar)),this.desktopDrawerHeight=Math.min(this.CAROUSEL_MAX_HEIGHT,this.imageHeight/this.DRAWER_HEIGHT_PERCENTAGE)),this.imageTopPosition=a?(this.vh-this.imageHeight)/2:(this.vh-this.MOBILE_DRAWER_FH-this.imageHeight)/2,this.disableScrollToZoom&&(this.zoomBtns.style.top=(this.sizeH-this.zoomBtns.clientHeight)/2+"px")),a||!this.hasCarouseCards?(x.hideCarousel(),i.style.height="100%"):x.showCarousel(),"standaloneViewer"!==STS.gcircle.currentView&&this.isFullscreen?this.mobileOrientation.isMobile&&"landscape"===this.mobileOrientation.orientation?(x.hideCarousel(),this.imageHeight=this.vh,this.imageWidth=Math.round(this.imageHeight*this.ar),i.style.width=this.sizeW+"px",i.style.height="100%",i.style.top=0,i.style.left=(this.vw-this.sizeW)/2+"px",i.style.transform="none",i.style.msTransform="none",n.style.top=0,n.style.height=this.sizeH+"px"):this.desktopView?this.desktopView&&(n.style.top="",n.style.height=this.imageHeight+"px",this.disableScrollToZoom&&(this.zoomBtns.style.top=(this.imageHeight-this.zoomBtns.clientHeight)/2+"px"),this.imageHeight=a?this.imageHeight:this.imageHeight+this.desktopDrawerHeight,i.style.width=this.imageWidth+"px",i.style.height=this.imageHeight+"px",i.style.top="50%",i.style.left="50%",i.style.transform="",i.style.msTransform=""):(i.style.width=this.imageWidth+"px",i.style.height="100%",i.style.top=0,i.style.left=0,i.style.transform="none",i.style.msTransform="none",n.style.top=this.imageTopPosition+"px",n.style.height=this.vh-this.MOBILE_DRAWER_FH+"px",x.removeCarouselBackground("white"),this.mobileOrientation.isMobile&&this.isFullscreen&&"portrait"===this.mobileOrientation.orientation&&(this.ar="standaloneViewer"===this.currentView?t.height/t.width:this.sizeH/this.sizeW,this.portraitFullscreen=!0,i.style.width=this.sizeW+"px",this.imageWidth=this.sizeW,n.style.top=0,this.sizeH=this.mobileOrientation.height-this.MOBILE_DRAWER_FH,this.imgW=this.sizeW,this.imgH=this.sizeW*this.ar,n.style.height=this.sizeH+"px",a&&(this.sizeH=this.mobileOrientation.height,n.style.height=this.mobileOrientation.height+"px"),this.canvas.width=this.sizeW,this.canvas.height=this.sizeH)):(i.style.width=this.sizeW+"px",i.style.height="",n.style.height=this.sizeH+"px",n.style.top=""),"standaloneViewer"===this.currentView&&(this.isFullscreen?this.desktopView?n.style.height=this.imageHeight+"px":n.style.height=this.vh-this.MOBILE_DRAWER_FH+"px":n.style.height=document.getElementById("standalone-viewer-image").style.height+"px"),"pano"===this.view?STS.zoom.checkPanoLimits():this.zoomOutside(1,.5,.5,0,0,!1);var o=document.querySelectorAll(".panorama");if(this.isFullscreen&&this.desktopView&&!this.mobileOrientation.isMobile)for(var s=0;s<o.length;s++){var r=this.imageHeight+this.desktopDrawerHeight;o[s].style.width=this.imageWidth+"px",o[s].style.height=r+"px"}else if(this.desktopView&&!this.mobileOrientation.isMobile){var l=Math.min(this.CAROUSEL_MAX_HEIGHT,this.sizeH/this.DRAWER_HEIGHT_PERCENTAGE)+this.sizeH;!a&&this.hasCarouseCards&&(i.style.height=l+"px");for(var s=0;s<o.length;s++)o[s].style.width=e.viewWidth+"px",o[s].style.height=l+"px"}else{this.panoView&&x.removeCarouselBackground("black");for(var c=0;c<o.length;c++)o[c].style.width=e.viewWidth+"px",o[c].style.height=this.portraitFullscreen?this.sizeH+this.sizeH/this.DRAWER_HEIGHT_PERCENTAGE+"px":e.viewHeight+e.viewHeight/this.DRAWER_HEIGHT_PERCENTAGE+"px"}},setView:function(e,t){this.panoView="pano"===e;var i=this;t=t||{};var n,a,o,s=t.pano_index;this.selected_asset_class?(n=this.selected_asset_class,a=this.selected_asset_class.views,o=STS.cdn_image_prefix+this.selected_asset_class.name+"/",load_images_from="ec"===e?"ec":"i"):(n=this.options,a=STS.info.views,o=STS.cdn_image_prefix,load_images_from="ec"===e?STS.info.views.exterior.load_images_from:"i");var r,l,c=this.view,u=e;if(this.selected_asset_class&&(r=this.selected_asset_class.name),"pano"===e&&(u=e+"_"+s),this.prev_asset_class&&(l=this.prev_asset_class.name),"pano"===this.view&&(c=this.view+"_"+this.view_index),c&&STS.Analytics2.sa_view_closed(c,l),STS.Analytics2.sa_view_opened(u,r),"butterfly"!==r&&"butterfly"!==l&&STS.Analytics2.sa_view_controller_clicked(c,u,r),this.zoomFactor=1,this.zoomOffset=[0,0],Array.prototype.forEach.call(document.querySelectorAll("#spincar-view .panorama"),function(e){e.classList.add("hidden")}),"pano"===e&&(n.has_pano||s>0)?($("#gcircle").css("display","none"),this.addPanorama(s||0),x.removeCarouselBackground("black")):"closeup_only"===e&&n.numImgCloseup?($("#gcircle").css("display","none"),this.currentView="standaloneViewer",k.view(0,"default"),k.setUpEventListeners()):$("#gcircle").css("display","block"),this.view_handlers[this.view_name]&&this.view_handlers[this.view_name].setRPM(0),this.view=e,this.view_name=e,"pano"===e&&(this.view_index=s),this.selected_asset_class&&(this.view_name=this.selected_asset_class.name+"_"+e),this.setupViewHotspots(),-1===["ec","i"].indexOf(this.view))return void setTimeout(function(){i.firstReady()},3e3);this.numImgs=n["numImg"+e.toUpperCase()]||0,this.view_handlers[this.view_name]||(this.view_handlers[this.view_name]=d({url_prefix:o,num_imgs:this.numImgs,asset_class:this.selected_asset_class,load_images_from:load_images_from,view:e,load_condition:function(){return e===i.view},disable_vr_mode:this.options.disable_vr_mode,getLoadSingleImage:this.getLoadSingleImage,low_res:STS.browser.mobile&&!m._hardcodedfixes.force_high_res()&&{ec:a.exterior.has_low_res,i:a.interior?a.interior.has_low_res:null}[e],draw:this.draw,onload:function(e,t){e>=1&&!i.ready&&($("#placeholder").remove(),$(i.canvas).css("visibility",""),STS.postParent("sts_spin_exists")),(e>1||1===t)&&i.firstReady()}})),this.view_handlers[this.view_name].rotateTo(0),this.view_handlers[this.view_name].forceRedraw(),this.rotateOnceVisible(),v.callResizers()},addPanorama:function(e){STS.pano.create(e);var t=document.getElementById("panorama-"+e);document.getElementById("spincar-view").contains(t)&&(t.classList.remove("hidden"),STS.browser.IE?(t.style.position="",t.style.height=document.getElementById("hero-container").offsetHeight+"px"):t.style.position="fixed"),v.callResizers()},rotateOnceVisible:function(){if(!m.getUiSettings().disable_autospin){if(p()[0]<=0)return void setTimeout(this.rotateOnceVisible,100);if(this.view_handlers[this.view_name]){setTimeout(function(){this.view_handlers[this.view_name].setRPM(6)}.bind(this),0)}}},draw:function(e,t){if(STS.__TEST_FRAME_INDEX=e.total_index,x.setCarouselBackground(t.src),this.portraitFullscreen){this.imgW=this.sizeW*this.zoomFactor,this.imgH=this.imgW*e.max_height/e.max_width,this.context.save(),this.context.clearRect(0,0,this.sizeW,this.sizeH);var i=-this.zoomOffset[0]*this.sizeW,n=this.imgH<=this.sizeH?-this.zoomOffset[1]*this.sizeH+(this.sizeH-this.imgH)/2:-this.zoomOffset[1]*this.sizeH;if(this.context.drawImage(t,i,n,this.imgW,this.imgH),this.context.restore(),this.zoomFactor>1){document.getElementById("toggle-pills").style.display="none";for(var a=0;a<this.hotspotButtons.length;++a)this.hotspotButtons[a].style.display="none"}else document.getElementById("toggle-pills").style.display="",this.showHotspots(e.total_index,e.total_frames)}else{if(e.view!==this.view||e.asset_class!==this.selected_asset_class||!t)return;if(e.max_width!==this.imgW||e.max_height!==this.imgH)return this.imgW=this.canvas.width=e.max_width,this.imgH=this.canvas.height=e.max_height,v.updateImageDimensions(this.imgW,this.imgH),void v.callResizers();var i=(this.imgW-t.width)/2,n=(this.imgH-t.height)/2;this.context.save(),this.context.fillStyle="#fff",this.context.fillRect(0,0,this.imgW,this.imgH),this.context.restore(),this.context.save(),this.context.translate(-this.zoomOffset[0]*this.imgW,-this.zoomOffset[1]*this.imgH),this.context.scale(this.zoomFactor,this.zoomFactor),this.context.drawImage(t,i,n),this.context.restore(),this.showHotspots(e.total_index,e.total_frames)}},setupViewHotspots:function(){var e=this;if(this.visible_hotspots=[],this.hotspotButtons=[],"pano"!==this.view&&-1!==["ec","i"].indexOf(this.view)){for(var t=m.getHotspotSettings(),i=0;i<t.hotspots.length;++i){var n=t.hotspots[i];n[this.view]&&(n.door||n.automatic||!t.showAll&&n.feature_tour_only||STS.args.UI.hidecarfax&&"Free CARFAX Report"===n.name||$.each(n[this.view],function(e){if(!isNaN(parseInt(e)))return this.visible_hotspots.push($.extend({automatic:!!n.hasOwnProperty("automatic"),category:n.hasOwnProperty("category")?n.category:null,coords:n[this.view],num_interpolating:n[this.view].num_interpolating},n)),!1}.bind(this)))}if($(".hotspot_button").remove(),!this.selected_asset_class)for(var a=0;a<this.visible_hotspots.length;a++)!function(t){var i=$("<div>")[0];e.hotspotButtons.push(i),i.className="hotspot_button",i.id="hotspot_button_"+t,i.tabIndex=0,$(i).click(function(){e.hotspotClick(e.visible_hotspots[t])}),i.icon=e.visible_hotspots[t].icon,i.style.display="none","blemish"===e.visible_hotspots[t].icon?i.appendChild(STS.hs.icon("damage",e.visible_hotspots[t].name||"","#F5A622")):i.appendChild(STS.hs.icon(e.visible_hotspots[t].icon,e.visible_hotspots[t].name||"")),e.container.parentNode.insertBefore(i,e.container)}(a)}},hotspotClick:function(e){var t,i=this.view;"pano"===this.view&&(i=this.view+"_"+this.view_index),this.selected_asset_class&&(t=this.selected_asset_class.name),STS.Analytics2.sa_hotspot_click(e.name,e.icon,i,e.image,t),"Free CARFAX Report"===e.name?(H.view("hotspot"),STS.Analytics2.sa_view_features("open",{value:"CARFAX",entry:"hotspot",context:"feature_tour"})):e.automatic&&e.category?(I.view(e.category+" Features",e.name,"hotspot"),STS.Analytics2.sa_view_features("open",{parent:e.category,value:e.name,entry:"hotspot",context:"feature_tour"})):e.iaa_url?C.viewIAAUrl(e.iaa_url,"hotspot"):void 0!==e.closeup&&-1!==e.closeup?C.viewCloseup(e.closeup,"hotspot"):e.image?C.viewImage(e.url,"hotspot"):e.additional_video&&e.video_key?A.view(e.video_key):T.view(e.url,e.name)},showHotspots:function(e,t){function i(e,t,i){return(1-i)*e+i*t}var n,a,o=(STS.info.options.version||"").split(".")[0],s=!m.getUiSettings().hasButterflyExterior&&-1!==y.indexOf(f)&&o>"20210319130748",r=0;this.portraitFullscreen?(n=this.sizeW,a=this.imgH,r=(this.sizeH-this.imgH)/2):this.isFullscreen&&this.desktopView&&!this.mobileOrientation.isMobile?(n=this.imageWidth,a=this.imageHeight,m.getUiSettings().hideDrawer||(a-=this.desktopDrawerHeight)):(n=this.sizeW,a=this.sizeH);for(var l=0;l<this.hotspotButtons.length;++l){var c=this.hotspotButtons[l];c.style.display="none";var d=this.visible_hotspots[l],u=d.num_interpolating||t;u=Math.min(Math.abs(u),t);var h=e*u/t,g=Math.round(h),p=h<g?Math.floor(h):Math.ceil(h),v=d.coords[g%u],_=d.coords[p%u],S=Math.abs(h-g);if(v&&!(s&&g>=u/2-1)){var w,b;if(_)w=i(v[0],_[0],S),
- b=i(v[1],_[1],S);else{if(d.hasOwnProperty("cv_placement")&&!0===d.cv_placement&&S>.2)continue;w=v[0],b=v[1]}w=w*this.zoomFactor-this.zoomOffset[0],b=b*this.zoomFactor-this.zoomOffset[1],c.style.left=w*n+0+"px",c.style.top=b*a+r+"px",c.style.display="block"}}},firstReady:function(){if(!this.ready&&(this.ready=!0,"placeholder"!=this.view&&(window.addEventListener("load",v.callResizers),v.callResizers(),x.createCarousel(100,m.getCarouselSettings().cards,"drawer"),x.setCarouselArrowColor("drawer",m.getUiSettings().uiColors.hotspot),m.getUiSettings().disable_autospin&&x.startupAnimation("drawer"),!v.getMobileOrientation().isMobile))){x.displayArrows("drawer");document.getElementById("drawer-carousel").addEventListener("scroll",function(){x.displayArrows("drawer")}),x.addArrowsListeners("drawer")}},applyNewZoom:function(e,t,i,n,a){this.zoomOffset=[Math.max(0,Math.min(this.zoomFactor-1,e*(this.zoomOffset[0]+t)-t-(n||0))),Math.max(0,Math.min(this.zoomFactor-1,e*(this.zoomOffset[1]+i)-i-(a||0)))],this.portraitFullscreen&&(this.zoomOffset[1]=0);var o=this.zoomFactor>1,s=this.view_handlers[this.view_name];s&&(s.forceRedraw(o),STS.browser&&STS.browser.mobile&&s.loadHighResImg())},zoomClick:function(e,t){if("pano"===this.view)this.zoomInside(e,t);else{var i=STS.zoom.calculateOutsideMax(this.imgW,this.sizeW),n=STS.zoom.clickToZoom(this.zoomFactor,1,i,e,t);this.zoomOutside(n,.5,.5,0,0,!0)}},zoomOutside:function(e,t,i,n,a,o){var s=this.portraitFullscreen?this.sizeH/(this.ar*this.sizeW):STS.zoom.calculateOutsideMax(this.imgW,this.sizeW);(s<=this.minZoom||this.options.disable_zoom)&&(s=1);var r=o?e:this.zoomFactor*e;r=Math.max(1,Math.min(s,r)),e=r/this.zoomFactor,this.zoomFactor=r,this.applyNewZoom(e,t,i,n,a),STS.zoom.checkLimits(this.zoomFactor,1,s)},zoomInside:function(e,t){var i=STS.pano.krpano,n=i.get("view.fov"),a=i.get("view.fovmin"),o=i.get("view.fovmax");n=STS.zoom.clickToZoom(n,a,o,e,!t),n>o&&(n=o),n<a&&(n=a),i.set("view.fov",n),STS.zoom.checkLimits(n,o,a)},zoomIn:function(){this.zoomClick(.5,!1)},zoomOut:function(){this.zoomClick(.5,!0)},scrollHandler:function(e){this.disableScrollToZoom||document.hasFocus()&&(e.preventDefault(),e=e.originalEvent,this.view_handlers[this.view_name]&&(this.view_handlers[this.view_name].setRPM(0),this.zoomOutside(Math.pow(1.002,-e.deltaY),e.offsetX/this.sizeW,e.offsetY/this.sizeH,0,0,!1)))},clickHandler:function(){STS.Analytics2.spin_click(),this.sendViewEvent("click","rotating")},dragHandler:function(e){l&&(l.orientation_enabled=!0);var t=this;this.loadSingleImage=!1,"contextmenu"!==e.type&&e.stopPropagation(),"mousedown"===e.type&&e.target.setCapture?e.target.setCapture():"mouseup"===e.type&&document.releaseCapture&&document.releaseCapture(),-1!==["mousedown","mouseup","touchstart","touchend","touchcancel","contextmenu"].indexOf(e.type)&&($(window).add(this.imageCover).off(".draghandler"),this.imageCover.css({"z-index":"",position:""}),$("html").removeClass("dragging"),this.dragged?this.sendViewEvent("drag","rotating"):"touchend"===e.type&&(this.clickHandler(),STS.Analytics2.sa_body_click()),this.dragged=!1),("mousedown"===e.type||-1!==["touchstart","touchend","touchcancel"].indexOf(e.type)&&-1!==[1,2].indexOf(e.originalEvent.touches.length))&&($(window).add(this.imageCover).on("mousemove.draghandler touchmove.draghandler",this.dragHandler),STS.Analytics2.manual_rotation(),this.imageCover.css({"z-index":1e9,position:"fixed"}),$("html").addClass("dragging"),this.view_handlers[this.view_name]&&this.view_handlers[this.view_name].setRPM(0));var i=$(e.target).offset(),n=e.pageX,a=e.pageY,o=0,s=$("#spincar-view");if(0===e.type.indexOf("touch")&&e.originalEvent.touches.length>=1){e.preventDefault(),s.triggerHandler("mousemove"),s.triggerHandler("touchmove"),n=0,a=0;for(var r=e.originalEvent.touches,c=0;c<r.length;++c)n+=(r[c].pageX-i.left)/r.length,a+=(r[c].pageY-i.top)/r.length;2===e.originalEvent.touches.length&&(o=Math.sqrt(Math.pow(e.originalEvent.touches[0].pageX-e.originalEvent.touches[1].pageX,2)+Math.pow(e.originalEvent.touches[0].pageY-e.originalEvent.touches[1].pageY,2)))}if(n=Math.floor(n),a=Math.floor(a),("mousemove"===e.type||"touchmove"===e.type)&&this.view_handlers[this.view_name]){if(!e.target.classList.contains("imageCover")||this.dragX===n&&this.dragY===a||(this.dragged=!0),e.preventDefault(),s.triggerHandler("mousemove"),s.triggerHandler("touchmove"),this.zoomFactor>1||o){var d=this.touchDistance&&o?o/this.touchDistance:1;this.zoomOutside(d,n/this.sizeW,a/this.sizeH,(n-this.dragX)/this.sizeW,(a-this.dragY)/this.sizeH,!1)}else this.view_handlers[this.view_name].rotateBy(10*(this.dragX-n)/this.sizeW);this.zoomFactor<this.minZoom&&(clearTimeout(this.zoomResetTimeout),this.zoomResetTimeout=setTimeout(function(){if(t.zoomFactor<t.minZoom)var e=setInterval(function(){t.zoomOutside(.99,.5,.5,0,0,!1),1===t.zoomFactor&&clearInterval(e)},20)},200))}this.dragX=n,this.dragY=a,this.touchDistance=o},sendViewEvent:function(e,t){var i=this.view;"pano"===t&&(i=t+"_"+this.view_index),this.selected_asset_class?STS.Analytics2.sa_view_event(e,t,i,this.selected_asset_class.name):STS.Analytics2.sa_view_event(e,t,i)},setAssetClass:function(e){if(this.prev_asset_class=this.selected_asset_class,e){for(var t=0;t<this.asset_class_list.length;t++)if(this.asset_class_list[t].name===e){this.selected_asset_class=this.asset_class_list[t];break}}else this.selected_asset_class=null},getLoadSingleImage:function(){return this.loadSingleImage}},$.each(STS.gcircle,function(e,t){"function"==typeof t&&(STS.gcircle[e]=t.bind(STS.gcircle))}),l.orientation_enabled=!1,l.prototype.globeToOrientation=l.globeToOrientation=function(e,t){var i=Math.sin,n=Math.cos,a=Math.PI,o=e*a/180,s=t*a/180,r=n(s),l=o+a/2;return{center:{x:n(o)*r,y:i(o)*r,z:i(s)},left:{x:n(l),y:i(l),z:0}}},l.prototype.xyzToGlobe=l.xyzToGlobe=function(e,t,i){var n=Math.PI;return{longitude:180/n*Math.atan2(t,e),latitude:180/n*Math.asin(Math.min(Math.max(i,-1),1))}},l.prototype._orientationHandler=function(e){if(l.orientation_enabled&&"number"==typeof e.alpha){var t,i,n,a,o,s,r,c,d,u,h=Math.sin,m=Math.cos,g=Math.PI,p=Math.sqrt,v=e.alpha*g/180,f=e.beta*g/180,y=e.gamma*g/180,_=h(v),S=m(v),w=h(f),b=m(f),T=h(y),E=m(y),x=-S*T-_*w*E,k=S*w*E-_*T,I=-b*E;switch(((e.orientation||(screen.orientation?screen.orientation.angle:window.orientation))+360)%360){case 0:c=-_*b,d=S*b,u=w;break;case 90:c=S*E-_*w*T,d=_*E+S*w*T,u=-b*T;break;case 180:c=_*b,d=-S*b,u=-w;break;case 270:c=-S*E+_*w*T,d=-_*E-S*w*T,u=b*T}var L=this._x,C=this._y,A=this._z,B=this._sx,O=this._sy,H=this._sz;try{if("number"!=typeof L)return;if(x*L+k*C+I*A<=.9)return;var R=this._getVirtualCamera(),z=R.center,P=R.left,V=z.x,F=z.y,M=z.z,U=P.x,D=P.y,N=P.z;t=F*N-M*D,i=M*U-V*N,n=V*D-F*U,a=p(t*t+i*i+n*n);var W=t/a,G=i/a,j=n/a,q=B,$=O,X=H,K=L,Y=C,J=A,Z=$*J-X*Y,Q=X*K-q*J,ee=q*Y-$*K,te=W,ie=G,ne=j,ae=V,oe=F,se=M,re=ie*se-ne*oe,le=ne*ae-te*se,ce=te*oe-ie*ae;t=q*x+$*k+X*I,i=K*x+Y*k+J*I,n=Z*x+Q*k+ee*I,o=t*te+i*ae+n*re,s=t*ie+i*oe+n*le,r=t*ne+i*se+n*ce,t=q*c+$*d+X*u,i=K*c+Y*d+J*u,n=Z*c+Q*d+ee*u,t*te+i*ae+n*re,t*ie+i*oe+n*le,t*ne+i*se+n*ce,Math.abs(r)>m(g/12)&&(t=V,i=F,a=p(t*t+i*i)/m(r),o=t/a,s=i/a),this._setVirtualCamera(o,s,r)}finally{this._x=x,this._y=k,this._z=I,this._sx=c,this._sy=d,this._sz=u}}};var _=function(){function e(e,t){if(!("length"in t))return!1;for(var i=0;i<t.length;i++)if(t[i]===e)return!0;return!1}function t(t){for(var i,n={},a=0;a<t.length;a++){i=t[a];e(i.parent,Object.keys(n))?n[i.parent].children.push(i):(n[i.parent]={},n[i.parent].children=[i])}return n}function i(){var e=m.getDrawerSettings().cards;return e.sort(function(e,t){return e.priority-t.priority}),f=t(e)}function n(e,t,i){var n=document.createElement("div");n.className="feature-card";var a=document.createElement("div");a.className="feature-card-image",a.style.backgroundImage='url("'+e+'")';var o=document.createElement("div");if(z.aria({elem:a,ariaLabel:t}),"Photos"!==i){o.className="title","Take the Quiz"===t&&(a.className="f-i-quiz-card-image",o.className="f-i-quiz-card-title");var s=document.createElement("div");s.className="text-container";var r=document.createElement("span");r.className="text unselectable";var l=c.getFeatureCategories(),d=c.getVideoCategories();switch(t){case l.CONVENIENCE:r.classList.add("i18n-convenience-features");break;case d.CONVENIENCE:r.classList.add("i18n-convenience-videos");break;case l.PERFORMANCE:r.classList.add("i18n-performance-features");break;case d.PERFORMANCE:r.classList.add("i18n-performance-videos");break;case l.SAFETY:r.classList.add("i18n-safety-features");break;case d.SAFETY:r.classList.add("i18n-safety-videos");break;case l.TECHNOLOGY:r.classList.add("i18n-technology-features");break;case d.TECHNOLOGY:r.classList.add("i18n-technology-videos");break;default:var u=document.createTextNode(t);r.appendChild(u)}s.appendChild(r),o.appendChild(s)}return n.appendChild(a),"Photos"!==i&&n.appendChild(o),n}function a(e){if(e.title||"Photos"===e.parent)return n(e.thumbnailURL||e.imageURL,e.title,e.parent)}function o(e){e.elem.addEventListener("click",function(){"Features"!==e.parent&&"Videos"!==e.parent&&"Protection"!==e.parent||b.view(e.title,"grid")});var t=f[e.title].children.length;s(t,e.elem);var i=-1!==e.parent.toLowerCase().indexOf("feature"),n=-1!==e.parent.toLowerCase().indexOf("video");i?e.elem.addEventListener("click",function(){m.updateGridState({parent:e.title,context:"feature_tour"}),STS.Analytics2.sa_view_features("open ",{parent:e.title,entry:"lightbox",context:"feature_tour"}),STS.Analytics2.feature_category_card_clicked(e.title,t)}):n&&e.elem.addEventListener("click",function(){STS.Analytics2.video_category_card_clicked(e.title)})}function s(e,t){e>99&&(e="99+");var i=document.createElement("span");i.className="number-circle",i.textContent=e,t.getElementsByClassName("feature-card-image")[0].appendChild(i)}function r(t){t.elem=a(t),e(t.title,Object.keys(f))?o(t):p(t)}function l(e,t,i){var n=e.viewWidth;"standaloneViewer"===STS.gcircle.currentView&&STS.gcircle.isFullscreen&&(n=.8*STS.gcircle.imageWidth),u(n,t),g(n,t,i),d(n,t)}function d(e,t){e<855?(t.classList.remove("medium-cards"),t.classList.add("small-cards")):(t.classList.remove("small-cards"),t.classList.add("medium-cards"))}function u(e,t){t.style.gridTemplateColumns=e<=330?"repeat(2, 100px)":e<=475?"repeat(3, 100px)":e<=590?"repeat(4, 100px)":e<=705?"repeat(5, 100px)":e<855?"repeat(6, 100px)":"repeat(6, 125px)"}function h(e){return e<=330?2:e<=475?3:e<=590?4:e<705?5:6}function g(e,t,i){var n,a;i.length&&(a=f[i[i.length-1]].children.length),n=e<855?100:125;var o=h(e),s=Math.ceil(a/o);t.style.gridTemplateRows="repeat("+s+", "+n+"px)"}function p(e){var t=-1!==e.parent.toLowerCase().indexOf("feature"),i=-1!==e.parent.toLowerCase().indexOf("video"),n=-1!==e.parent.toLowerCase().indexOf("protection"),a=-1!==e.parent.toLowerCase().indexOf("photos");e.key&&m.getVideoURL(e.key)&&v(e.elem),t?e.elem.addEventListener("click",function(){if("CARFAX"===e.title)m.updateGridState({value:e.title,context:"feature_tour"}),STS.Analytics2.feature_category_card_clicked(e.title),STS.Analytics2.sa_view_features("open ",{parent:e.title,entry:"lightbox",context:"feature_tour"}),H.view();else if("Factory-Installed Upgrades"===e.title)m.updateGridState({value:e.title,context:"feature_tour"}),STS.Analytics2.feature_category_card_clicked(e.title),STS.Analytics2.sa_view_features("open ",{parent:e.title,entry:"lightbox",context:"feature_tour"}),B.view();else{var t=m.getGridState();STS.Analytics2.sa_view_features("close",{parent:t.parent,exit:"lightbox",context:t.context}),I.view(e.parent,e.key,"drawer")}}):n?e.elem.addEventListener("click",function(){"Take the Quiz"===e.title?(STS.Analytics2.quiz_card_clicked(),STS.postParent("STS:fi-from-spin::open","*")):"video"===e.cardType?A.view(e.key):L.view(e.key,"drawer")}):i?e.elem.addEventListener("click",function(){A.view(e.key)}):a&&e.elem.addEventListener("click",function(){C.viewCloseup(e.key,"drawer")})}function v(e){var t=document.createElement("SVG");t.className="play-icon",e.getElementsByClassName("feature-card-image")[0].appendChild(t)}var f;return{createCardsFromSettings:i,createFeatureCard:n,prepareNewElementForCard:r,resizeGrid:l}}(),S=function(){function e(e){var i=window.getComputedStyle(e);a.style.zIndex=i.zIndex,a.style.display="block",a.addEventListener("click",t)}function t(){w.close()}function i(){a.style.zIndex="-1",a.style.display="none"}function n(e,t){t.isFullscreen&&t.viewWidth>=STS.gcircle.DESKTOP_BREAK_POINT?(e.style.width="80%",e.style.height="80%",e.style.top="10%"):(e.style.maxHeight="",e.style.width="calc(100% - 20px)",e.style.height="calc(100% - 20px)",e.style.top="10px")}var a=document.getElementById("lightbox-overlay");return{addLightbox:e,hideLightbox:i,lightboxReziser:n}}(),w=function(){function e(e){p||(p=!0,h.addEventListener("click",s),u.style.display="block",u.addEventListener("click",t),c.style.display="block",P.getActiveElement()&&"feature-card"===P.getActiveElement().className&&c.focus(),S.addLightbox(c));for(var i=0;i<g.length;i++)g[i].hide();e!==l&&g.push(e),l=e,g.length>1?n(l.backButtonHandler):a(),v.callResizers()}function t(){var e=m.getGridState();STS.Analytics2.sa_lightbox_header_btns("close",e),STS.Analytics2.sa_view_features("close",{parent:e.parent,value:e.value,exit:"closebutton",context:e.context}),c.style.display="none",S.hideLightbox();for(var t=0;t<g.length;t++)g[t].close();g=[],l=null,p=!1,m.clearGridState()}function i(e){S.lightboxReziser(c,e),l&&l.resize({viewWidth:c.clientWidth,viewHeight:c.clientHeight})}function n(){h.style.display="block"}function a(){h.style.display="none"}function o(){g.pop(),l=g[g.length-1],g.length<=1&&a();var e=m.getGridState();STS.Analytics2.sa_view_features("open",{context:e.context,entry:"backbutton",parent:e.parent}),l.view()}function s(){var e=m.getGridState();STS.Analytics2.sa_lightbox_header_btns("back",e),STS.Analytics2.sa_view_features("close",{parent:e.parent,value:e.value,exit:"backbutton",context:e.context}),m.clearGridState(),m.updateGridState({parent:e.parent,context:e.context}),l.backButtonHandler()}function r(e){for(var t=d.classList,i=0;i<t.length;i++)if(t[i].startsWith("i18n")){d.classList.remove(t[i]);break}d.textContent=e.toUpperCase()}var l,c=document.getElementById("lb-container"),d=document.getElementById("lb-title"),u=document.getElementById("lb-close-btn"),h=document.getElementById("lb-back-btn"),g=[],p=!1;return v.addResizer(i,"lightboxViewer"),{show:e,close:t,lightboxBack:o,showBackButton:n,hideBackButton:a,changeTitle:r}}(),b=function(){function e(e,t){if(e||c.length){var n=c[c.length-1];e||(e=n),w.show(this),r.style.display="grid",n!==e&&c.push(e),c.length>1&&w.showBackButton(o),i(e)}}function t(e){var t="i18n-"+e.toLowerCase().replace(/ /g,"-");w.changeTitle(""),l.classList.add(t)}function i(e){t(e),_.dataCardFamilies=_.createCardsFromSettings(),r.innerHTML="";for(var i=_.dataCardFamilies[e].children,n=0;n<i.length;n++){var a=i[n];a.elem||_.prepareNewElementForCard(a),r.appendChild(a.elem),a.elem.tabIndex=0}v.callResizers()}function n(){c=[],r.innerHTML="",r.style.display="none"}function a(){r.style.display="none"}function o(){if(c.pop(),1===c.length){var e=JSON.parse(JSON.stringify(m.getGridState()));STS.Analytics2.sa_view_features("open",{context:e.context,entry:"backbutton",parent:c[0]}),m.clearGridState(),m.updateGridState({parent:c[0],context:e.context}),w.hideBackButton()}c.length?i(c[c.length-1]):w.lightboxBack()}function s(e){_.resizeGrid(e,r,c)}var r=document.getElementById("lb-grid"),l=document.getElementById("lb-title"),c=[];return{backButtonHandler:o,view:e,hide:a,close:n,resize:s}}(),T=function(){function e(e){var t=e.match(/[&?#]t=(([1-9][0-9]*)[h])?(([1-9][0-9]*)[m])?(([1-9][0-9]*)[s])?/);if(t){e=e.replace(t[0],"");var i=0;return i+=t[2]?60*t[2]*60:0,i+=t[4]?60*t[4]:0,i+=t[6]?1*t[6]:0,e+"?start="+i}return e}function t(t){var i;return t.startsWith(a)?i=t.slice(a.length):(t.startsWith(s)&&(t=t.replace(t.substring(8,12),"")),"?"===t.charAt(o.length)?i=t.slice((o+"?v=").length):"/"===t.charAt(o.length)&&(i=t.slice((o+"/").length))),i=e(i),t="https://youtube.com/embed/"+i}function i(){r.style.display="None",l.src="about:blank",STS.Analytics2.photo_clicked(null,null)}function n(e,n){(e.startsWith(a)||e.startsWith(o)||e.startsWith(s))&&(e=t(e)),l.src=e,r.style.display="block",E.setView(c),E.closeButton.show(i,c),STS.Analytics2.photo_clicked(e,n,"hotspot")}var a="https://youtu.be/",o="https://youtube.com/watch",s="https://www.youtube.com/watch",r=document.querySelector("#misc-content-viewer"),l=document.querySelector("#misc-content-viewer-iframe"),c="miscContentViewer";return{view:n}}(),E=function(){function e(e,t,i,n){if(!I){if(t&&t.length>0)return e.addEventListener("mouseenter",function(){t.forEach(function(e){e.classList.add("hover")})}),void e.addEventListener("mouseleave",function(){t.forEach(function(e){e.classList.remove("hover")})});e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",n)}}function t(e){document.body.contains(e.target)&&!document.getElementById("spincar-view").contains(e.target)&&(v.isFullscreen()&&v.callFullScreenHandlers(),document.removeEventListener("mouseup",t))}function i(t){var i=document.getElementById("cta-wrapper"),n=document.getElementById("cta-btn");document.getElementById("cta-btn-span").classList.add(x.webBuyCustomer?"i18n-buy-now-label":"i18n-e-price-label"),i.style.display="block",i.style.setProperty("--main-bg-color",t.uiColors.hotspot),n.addEventListener("click",function(e){var i=m.getCTASettings().data;t.webBuyCustomer&&(window.parent.postMessage("STS::web_buy_button_clicked","*"),window.parent.postMessage("STS::WebBuyCTA:"+JSON.stringify({vin:i.vin,year:i.year,make:i.make,model:i.model}),"*")),t.hasLeadForm&&O.open(),e.isTrusted&&STS.Analytics2.cta_clicked()}),e(n,[n])}function n(e){var t=document.getElementById("zoom-btns"),i=document.getElementById("zoomin-btn"),n=document.getElementById("zoomout-btn");i.addEventListener("click",STS.gcircle.zoomIn),n.addEventListener("click",STS.gcircle.zoomOut),(I||e.hideZoomUI||m.isSAFT())&&(t.style.display="none")}function a(){function t(){n.classList.add("ui-action-exit"),a.classList.remove("i18n-fullscreen"),a.classList.add("i18n-exit-fullscreen"),a.classList.add("long-btn-tooltip"),o.classList.remove("expand-icon"),o.classList.add("fullscreen-view"),E.setView("hero")}function i(){document.body.style.background="transparent",n.style.display="flex",n.classList.remove("ui-action-exit"),a.classList.add("i18n-fullscreen"),a.classList.remove("i18n-exit-fullscreen"),a.classList.remove("long-btn-tooltip"),o.classList.remove("fullscreen-view"),o.classList.add("expand-icon"),E.setView("hero")}var n=document.getElementById("expand-btn"),a=document.getElementById("expand-tooltip"),o=document.getElementById("expand-icon");a.classList.add("i18n-fullscreen"),v.addFullscreenHandler({enter:t,exit:i},"ui"),n.addEventListener("click",v.callFullScreenHandlers),I||e(n,[a])}function o(t,i){var n=document.getElementById("language-toggle-btn");n.style.display="flex";var a=document.getElementById("language-toggle-text");a.textContent="fr-CA"===t?"EN":"FR";var o=document.getElementById("language-tooltip");o.textContent="fr-CA"===t?"English":"Français",n.addEventListener("click",function(){a.textContent="FR"===a.textContent?"EN":"FR",o.textContent="Français"===o.textContent?"English":"Français",document.querySelector("html").lang="en"===document.querySelector("html").lang?"fr":"en",i&&m.toggleLanguage()}),"none"===document.getElementById("expand-btn").style.display&&(n.style.right="10px"),I||e(n,[n,a,o])}function s(){var e=document.getElementById("drag-to-view-overlay");e.style.display="flex",x.showPoweredByImpel&&(document.getElementById("overlay-power-by").style.display="flex"),$(".imageCover, .panorama").on("mousedown touchstart",function(){e.style.opacity="0"}),$("#gcircle, #perspective-btn, #expand-btn, .panorama, #change-view-btn, #ui-toggle-array").on("click",function(){e.style.opacity="0"})}function r(t){function i(e){var t=document.createElement("div"),i=document.createElement("span");return t.classList.add("custom-option"),t.setAttribute("id","custom-option-"+e.index),i.classList.add("option-label"),i.setAttribute("id","option-span-"+e.index),e.label?i.classList.add("i18n-"+e.label.toLowerCase()+"-label"):i.innerText=e.name,t.appendChild(i),t.addEventListener("click",function(e){var t=e.target.id.replace("custom-option-","").replace("option-span-","");Boolean(+t+1)?STS.gcircle.setView("pano",{pano_index:t}):STS.gcircle.setView(t)}),t}function n(){m.classList.remove("checkmark-circle-on"),m.classList.add("checkmark-circle-off")}var a=t.hasExteriorView,o=t.hasInteriorView,s=t.hasPanoView,r=t.multipanoList.length>0,l=document.getElementById("change-view-btn"),c=document.getElementById("change-view-action-text"),d=document.getElementById("options-wrapper"),u=document.getElementById("change-view-icon"),h=document.getElementById("change-view-wrapper"),m=document.getElementById("doors-toggle"),g=document.getElementById("doors-outer-circle");if(h.style.setProperty("--main-bg-color",t.uiColors.hotspot),c.classList.add("i18n-see-inside-label"),l.addEventListener("click",function(e){if(r)document.getElementById("change-view-dropdown").classList.toggle("is-visible");else if(c.classList.contains("i18n-see-inside-label")){c.className="i18n-see-outside-label",g.style.display="block",STS.gcircle.setAssetClass(null);try{n()}catch(e){document.addEventListener("DOMContentLoaded",function(){n()})}s?STS.gcircle.setView("pano",{pano_index:"0"}):o&&STS.gcircle.setView("i")}else c.classList.contains("i18n-see-outside-label")&&(c.className="i18n-see-inside-label",STS.gcircle.setView("ec"))}),o){var p=i({label:"see-inside",index:0});d.appendChild(p)}if(a){var v=i({label:"see-outside",index:"ec"});d.appendChild(v)}if(r){c.className=I?"i18n-mobile-view":"i18n-change-view";for(var f=0;f<t.multipanoList.length;f+=1){var y=i(t.multipanoList[f]);d.appendChild(y)}}d.classList.add("five-rows"),l.style.display=a&&o||s&&r?"block":"none",e(l,[c,h,u])}function l(e){function t(e){var t=document.getElementById(e+"-toggle"),i=document.getElementById(e+"-outer-circle"),n=t.classList.toggle("checkmark-circle-on");return n?(i.style.display="none",t.classList.remove("checkmark-circle-off")):(i.style.display="block",t.classList.add("checkmark-circle-off")),n}var i=document.getElementById("ui-toggle-array"),n=document.getElementById("hotspots-pill"),a=document.getElementById("doors-pill"),o=e.uiColors.hotspot,s=m.getHotspotSettings(),r=document.getElementById("change-view-action-text"),l=!e.hideHotspots&&s.hotspots.length>0&&"standaloneViewer"!==STS.gcircle.currentView&&(STS.gcircle.visible_hotspots.length>0||STS.pano.getPanoHotspots().length>0),c=!e.disableHotspotToggle&&l;i.style.fill=o,i.style.display="block",e.hasButterflyExterior?(a.style.display="flex",a.addEventListener("click",function(){var e=t("doors");STS.Analytics2.doors_toggle_click(e),e?(r.className="i18n-see-inside-label",STS.gcircle.setAssetClass("butterfly")):STS.gcircle.setAssetClass(null),STS.gcircle.setView("ec")})):n.classList.add("right-round"),l&&n.addEventListener("click",function(){var i=t("hotspots");if(STS.Analytics2.hotspot_toggle_click(i),m.toggleHotspots(),STS.gcircle.setupViewHotspots(),e.hasInteriorView)for(var n=document.getElementsByClassName("hotspot"),a=0;a<n.length;a+=1)n[a].style.display=i?"block":"none";v.callResizers()}),c?n.style.display="flex":a.classList.add("left-round")}function c(){x=m.getUiSettings(),l(x),n(x),x.hideExpandBtn?document.getElementById("expand-btn").style.display="none":a(),"en-CA"!==x.ft_locale&&"fr-CA"!==x.ft_locale||x.disableLangToggle||o(x.ft_locale,x.translations_present),(x.webBuyCustomer||x.hasLeadForm||x.hasCarouselLeadForm)&&O.setup(),x.hideCTABtn||x.hasCarouselLeadForm||!x.hasLeadForm&&!x.webBuyCustomer||i(x),r(x),x.enable_drag_to_view_overlay&&s(),x.enableSmallCursor&&document.getElementById("hero-container").classList.add("small-cursor"),L.create(x),x.hideDrawer&&!x.disableDrawer?(document.getElementById("drag-to-view-overlay").style.bottom="75px",L.show()):L.hide(),P.init(),window.focus()}function d(e,t){e.addEventListener("click",function(){C.length>0&&C[C.length-1][t]()})}function u(t,i,n){var a=document.getElementById("viewer-next-button");a.style.display=n?"block":"none";var o=document.getElementById("viewer-prev-button");o.style.display=n?"block":"none",e(a,[a]),e(o,[o]),n?C.push({next:t,prev:i}):C.pop(),m.isCloseupOnly()&&m.getNumPhotos()>1&&(a.style.display="block",o.style.display="block")}function h(){return k}function g(e){k=e}function p(e){var t=document.getElementById("ui-container"),i=document.getElementById("drag-to-view-overlay"),n=document.getElementById("viewer-next-button"),a=document.getElementById("viewer-prev-button"),o=document.getElementById("cta-wrapper");document.getElementById("toggle-pills").style.display="";var s=e.isFullscreen,r=e.mobileOrientation;if(o.style.bottom="10px",x||(x=m.getUiSettings()),x.hideDrawer&&x.disableDrawer?i.style.bottom="30px":x.hideDrawer&&!x.disableDrawer&&(i.style.bottom=I?"55px":"75px"),t.style.width=e.viewWidth+"px",t.style.height=e.viewHeight+"px",s&&(t.style.width="100%",t.style.height="100%",STS.gcircle.desktopView?(x.hideDrawer&&I?t.style.height="100%":(o.style.bottom=x.hideDrawer&&!x.disableDrawer?"10px":STS.gcircle.DESKTOP_DRAWER_FH+10+"px",t.style.height=STS.gcircle.imageHeight+"px"),document.body.style.backgroundColor="#191D21E6"):STS.gcircle.desktopView||(document.body.style.backgroundColor="#191D21")),I){var l=document.getElementById("options-wrapper");s&&!x.hideDrawer&&("portrait"===r.orientation?(L.hide(),t.style.height=STS.gcircle.vh-STS.gcircle.MOBILE_DRAWER_FH+"px"):(L.show(),t.style.height="100%")),s?(l.classList.remove("three-rows"),l.classList.add("five-rows")):(l.classList.remove("five-rows"),l.classList.add("three-rows"))}"photoViewer"===k?(t.style.height="100%",n.style.setProperty("z-index","99"),a.style.setProperty("z-index","99")):(n.style.removeProperty("z-index"),a.style.removeProperty("z-index"))}function f(e,t){switch(t){case"standalone":STS.Analytics2.sa_view_event("click","carousel","exterior");break;case"photoviewer":var i=document.getElementById("photo-viewer-image");STS.Analytics2.sa_photo_viewer_image_event("click",i.src);break;case"pano":e.target.classList.contains("pulse")||STS.gcircle.sendViewEvent("click","pano")}}function y(e){return{standalone:document.getElementById("standalone-viewer-image"),photoviewer:document.getElementById("photo-view-container"),pano:document}[e]}function _(){z=!1,R=0,B=void 0,H=void 0,document.documentElement.classList.remove("dragging")}function S(e,t){e.preventDefault(),"mousedown"===e.type&&e.target.setCapture?e.target.setCapture():"mouseup"===e.type&&document.releaseCapture&&document.releaseCapture(),R=(new Date).getTime(),B=t,H=y(t),H.addEventListener("mousemove",w),H.addEventListener("touchmove",w),H.addEventListener("mouseup",T),H.addEventListener("touchend",T)}function w(){z=!0,"pano"===B&&document.documentElement.classList.add("dragging")}function T(e){H.removeEventListener("mousemove",w),H.removeEventListener("touchmove",w),H.removeEventListener("mouseup",T),H.removeEventListener("touchend",T);var t=(new Date).getTime();z&&t-R>200?function(e){switch(e){case"standalone":return STS.Analytics2.sa_view_event("drag","carousel","exterior");case"photoviewer":var t=document.getElementById("photo-viewer-image");return STS.Analytics2.sa_photo_viewer_image_event("drag",t.src);case"pano":STS.gcircle.sendViewEvent("drag","pano")}}(B):f(e,B),_()}var x,k="hero",I=v.getMobileOrientation().isMobile;document.addEventListener("mousedown",function(e){e.target===document.body&&document.addEventListener("mouseup",t)});var L=function(){function t(){function t(t){var i=document.createElement("div"),n=document.createElement("div"),a=document.createElement("div");i.classList.add("inline-div"),n.classList.add("float-btn-product"),e(n,[n]),n.id=t.name+"-btn",a.id=t.name+"-label",a.classList.add("text-label"),a.classList.add("i18n-"+t.name.toLowerCase()+"-tab"),n.appendChild(a),i.appendChild(n),o.appendChild(i),t.button=n}function i(e){var t=e.target.id,i={Features:"feature_tour",Protection:"fi",Photos:"photoviewer",Video:"videoviewer"};e.target.classList.contains("float-btn-product")?t=e.target.id.replace("-btn",""):e.target.classList.contains("text-label")&&(t=e.target.id.replace("-label","")),b.view(t,"noCarousel"),e.stopPropagation(),m.updateGridState({parent:t,context:i[t]}),STS.Analytics2.sa_view_features("open",{entry:"pill",context:i[t],parent:t}),STS.Analytics2.carousel_category_changed(t,!1,!0),STS.Analytics2.body_click()}var n=[];if(x.hasFeatureTour&&n.push({name:"Features"}),x.hasFinanceInsuranceProducts&&n.push({name:"Protection",label:"Protection"}),x.hasCloseups&&!x.hidePhotos&&n.push({name:"Photos"}),x.hasVideo&&n.push({name:"Videos"}),0!==n.length){var a=document.getElementById("product-btn-array"),o=document.createElement("div");x.hideCTABtn?a.classList.add("center-align"):x.webBuyCustomer||x.hasLeadForm?a.classList.add("left-align"):a.classList.add("center-align"),n.forEach(function(e){t(e)}),a.appendChild(o),n[0].button.classList.add("left-btn-border"),n[n.length-1].button.classList.add("right-btn-border"),o.addEventListener("click",i,!1)}}return{create:t,show:function(){document.getElementById("product-btn-array").style.display="block"},hide:function(){document.getElementById("product-btn-array").style.display="none"}}}(),C=[];d(document.getElementById("viewer-next-button"),"next"),d(document.getElementById("viewer-prev-button"),"prev");var A=function(){function t(e,t){n.style.display="flex",o.style.display="none",s.style.display="none",r.push(e),l.push(t)}function i(){if(r.length>0){r.pop()(),l.pop(),g(l[l.length-1]),0===r.length&&(n.style.display="none","en-CA"!==x.ft_locale&&"fr-CA"!==x.ft_locale||x.disableLangToggle||(s.style.display="flex"),x.hideExpandBtn||(o.style.display="flex")),v.callResizers()}}var n=document.getElementById("close-button-container"),a=document.getElementById("close-tooltip");a.classList.add("i18n-close-button");var o=document.getElementById("expand-btn"),s=document.getElementById("language-toggle-btn");e(n,[n,a]);var r=[],l=["hero"];return n.addEventListener("click",i),{show:t,call:i}}();v.addResizer(p,"ui");var B,H,R=0,z=!1;return{render:c,closeButton:A,toggleNavigationButtons:u,getView:h,setView:g,analyticsDragStart:S}}(),x=function(){function e(e,t,i){if("photo"===i){var n=document.getElementById("photo-carousel"),a=document.getElementById("photo-view-container");a.style.setProperty("height","calc(100% - "+e+"px)"),a.style.setProperty("width","100%"),n.style.height=e+"px";var s=n.getBoundingClientRect();if(w[i]={left:s.x,right:s.x+s.width,width:s.width},n.children.length)return;c(t,i)}else"drawer"===i&&(c(t,i),p(i));o(i)}function t(e){if(b){var t=document.getElementById(e+"-carousel"),i=document.getElementById(e+"-carousel-right"),n=document.querySelectorAll(".drawer-carousel-card");t.classList.add("carousel-startup-animation"),i.classList.add("carousel-arrow-startup-animation"),Array.prototype.forEach.call(n,function(e){e.classList.add("carousel-card-startup-animation")}),setTimeout(function(){t.classList.remove("carousel-startup-animation"),i.classList.remove("carousel-arrow-startup-animation"),Array.prototype.forEach.call(n,function(e){e.classList.remove("carousel-card-startup-animation")})},3e3)}}function i(e){if(!v.getMobileOrientation().isMobile){var t=document.getElementById(e+"-carousel"),i=document.getElementById(e+"-carousel-left"),n=document.getElementById(e+"-carousel-right");t.scrollLeft>0?i.style.display="block":i.style.display="none",t.scrollLeft+w[e].width>=t.scrollWidth-2||"drawer"===e&&!b?n.style.display="none":n.style.display="block"}}function n(e){return T=[],{root:e,threshold:function(){return STS.browser.mobile?.75:.5}()}}function a(e){e.forEach(function(e){e.isIntersecting?T.push(e.target.id):T=T.filter(function(t){return t!==e.target.id})})}
- function o(e){function t(){clearTimeout(s),r=this.scrollLeft,s=setTimeout(function(){var e=r>l?"next":"prev";STS.Analytics2.sa_drawer_scroll(e,T),l=r},250)}function i(e){a=e.touches[0].clientX}function n(e){var t;o=e.changedTouches[0].clientX,o>a?t="next":o<a&&(t="prev"),setTimeout(function(){STS.Analytics2.sa_drawer_drag(t,T)},250)}var a,o,s,r,l=0,c=document.getElementById(e+"-carousel");c.addEventListener("wheel",t),c.addEventListener("touchstart",i),c.addEventListener("touchend",n),c.addEventListener("touchcancel",n)}function s(e){var t=document.getElementById(e+"-carousel");document.getElementById(e+"-carousel-left").addEventListener("click",function(){t.scroll({left:t.scrollLeft-w[e].width,top:0,behavior:"smooth"}),setTimeout(function(){STS.Analytics2.sa_drawer_nav("prev",T)},250)}),document.getElementById(e+"-carousel-right").addEventListener("click",function(){t.scroll({left:w[e].width+t.scrollLeft,top:0,behavior:"smooth"}),setTimeout(function(){STS.Analytics2.sa_drawer_nav("next",T)},250)})}function r(){document.getElementById("drawer").style.display="none"}function l(){document.getElementById("drawer").style.display="block"}function c(e,t){var i=_();if(w[t].hasOwnProperty("cardCount")||(w[t].cardCount=0),"photo"===t&&e.length>0){var n=document.getElementById("photo-carousel");e.forEach(function(e,a){var o=document.createElement("div"),s=function(){C.viewCloseup(a,"photoViewer")};o.id="photo-carousel-card-"+(a+1),o.classList.add("photo-carousel-card"),o.style.backgroundImage="url("+e.imageURL+")",o.style.width=i.width+"px",o.style.height=i.height+"px",o.tabIndex=0,n.appendChild(o),o.addEventListener("click",s),w[t].cardCount++})}else if("drawer"===t&&e.length>0){var a=document.getElementById("drawer-carousel");e.forEach(function(e,i){var n=document.createElement("div");if(n.classList.add("drawer-carousel-card"),e.count){var o=document.createElement("div"),s=document.createElement("span");o.appendChild(s),n.appendChild(o),o.classList.add("drawer-carousel-card-count"),s.textContent=e.count}if(e.icon){var r=document.createElement("div"),l=document.createElement("img");r.appendChild(l),n.appendChild(r),r.classList.add("drawer-carousel-card-icon"),l.src=e.icon}if(e.label){var c=document.createElement("div");if(n.appendChild(c),"Carfax"===e.label&&c.classList.add("drawer-carousel-card-text-carfax"),c.classList.add("drawer-carousel-card-text"),e.i18n?c.classList.add(e.i18n):c.textContent=e.label,n.id=e.label,n.style.backgroundImage='linear-gradient(rgba(0,0,0,0), rgba(0,0,0,1)), url("'+e.thumbnailURL+'")',z.aria({elem:n,ariaLabel:e.label}),e.smallLabel){c.classList.add("lg-label");var d=document.createElement("div");n.appendChild(d),d.classList.add("drawer-carousel-card-text"),d.classList.add("sm-label"),e.i18n?d.classList.add(e.i18nSmall):d.textContent=e.smallLabel}}else n.id="drawer-carousel-card-"+(i+1),n.style.backgroundImage='url("'+e.imageURL+'")',z.aria({elem:n,ariaLabel:"Vehicle closeup photo"});if(e.class&&c.classList.add(e.class),e.callback){var u=e.callback.bind(e);n.addEventListener("click",u,!1)}n.tabIndex=0,a.appendChild(n),w[t].cardCount++})}}function d(e){var t=document.getElementById("drawer-background");t.style.backgroundImage="url("+e+")",t.classList.add("drawer-background-white")}function u(e){var t=document.getElementById("drawer-background");"black"===e?(t.classList.remove("drawer-background-black"),t.classList.add("drawer-background-white")):"white"===e&&(t.classList.add("drawer-background-black"),t.classList.remove("drawer-background-white")),t.style.backgroundImage=""}function h(e){var t=document.getElementById("drawer-carousel-left"),i=document.getElementById("drawer-carousel-right");t.style.width=e+"px",t.style.height=e+"px",i.style.width=e+"px",i.style.height=e+"px"}function m(e){const t=e.replace("#","");return(299*parseInt(t.substring(0,2),16)+587*parseInt(t.substring(2,4),16)+114*parseInt(t.substring(4,6),16))/1e3>155}function g(e,t){var i=document.querySelectorAll("."+e+"-carousel-svg"),n=document.querySelectorAll("."+e+"-carousel-svg-circle");Array.prototype.forEach.call(n,function(e){e.style.fill=t}),m(t)?Array.prototype.forEach.call(i,function(e){e.style.fill="#000"}):Array.prototype.forEach.call(i,function(e){e.style.fill="#fff"})}function p(){var e={multiple:1.3,maxHeight:3},t={multiple:.12,minFontSize:12,maxFontSize:21,topPosition:.2},o={multiple:.12,minFontSize:12,categoriesMaxFontSize:18,featuresMaxFontSize:16,topPosition:.63},s=window.innerWidth,r=document.getElementById("drawer"),l=document.getElementById("drawer-carousel"),c=document.getElementById("drawer-carousel-container"),d=document.querySelectorAll(".drawer-carousel-card"),u=document.querySelectorAll(".drawer-carousel-card-icon"),m=document.querySelectorAll(".drawer-carousel-card-count"),g=document.querySelectorAll(".drawer-carousel-card-text"),p=document.getElementById("hero-container").style.height,v=Math.min(170,parseInt(p)/3),f=0,y=0,S=v/3,T=_(),E=T.width/T.height,x=new IntersectionObserver(a,n(l));h(S),r.style.position="relative",r.style.removeProperty("bottom"),s>=480?(f=v-20,y=f*E,l.style.height=v+"px",c.style.height=v+"px",Array.prototype.forEach.call(d,function(e){e.style.width=y+"px",e.style.height=f+"px"})):s<480&&(STS.gcircle.isFullscreen&&(v=100),f=v-10,y=f*E,l.style.height=v+"px",c.style.height=v+"px",Array.prototype.forEach.call(d,function(e){e.style.width=y+"px",e.style.height=f+"px"}));var k=.375*f;Array.prototype.forEach.call(u,function(e){img=e.querySelector("img"),e.style.width=k+"px",e.style.height=k+"px",e.style.top=f*t.topPosition+"px",img.style.width=k/3+"px"}),Array.prototype.forEach.call(m,function(e){var i=Math.max(Math.min(f*t.multiple,t.maxFontSize),t.minFontSize);e.style.width=k+"px",e.style.height=k+"px",e.style.top=f*t.topPosition+"px",e.style.fontSize=i+"px"}),Array.prototype.forEach.call(g,function(t){var i=t.classList.contains("carousel-features-card"),n=i?o.featuresMaxFontSize:o.categoriesMaxFontSize,a=Math.max(Math.min(f*o.multiple,n),o.minFontSize),r=a*e.multiple;t.style.fontSize=a+"px",t.style.maxWidth=y+"px",t.style.lineHeight=r+"px",t.style.maxHeight=r*e.maxHeight+"px",t.style.setProperty("--cardTextLineClamp",e.maxHeight.toString()),s>=480&&!i?(t.style.top=f*o.topPosition+"px",t.style.transform="translateX(-50%)"):(t.style.top="50%",t.style.transform="translate(-50%, -50%)")});var I=l.getBoundingClientRect();w.drawer={left:I.x,right:I.x+I.width,width:I.width,cardCount:w.drawer.cardCount},w.drawer.cardCount*y<w.drawer.width?(l.classList.add("drawer-carousel-center"),b=!1):(l.classList.remove("drawer-carousel-center"),b=!0),i("drawer"),d.forEach(function(e){x.observe(e)})}function f(){p()}function y(){p()}function _(){return{width:133.3334,height:100}}function S(e){return w[e]}var w={drawer:{cardCount:0}},b=!1,T=[];return v.addResizer(p,"drawer"),v.addFullscreenHandler({enter:f,exit:y},"drawer"),{addArrowsListeners:s,createCarousel:e,displayArrows:i,getEdgeSize:S,getThumbnailDimensions:_,hideCarousel:r,removeCarouselBackground:u,resize:p,setCarouselArrowColor:g,setCarouselBackground:d,showCarousel:l,startupAnimation:t}}(),k=function(){function e(){v.updateImageDimensions(this.naturalWidth,this.naturalHeight),v.callResizers(),STS.gcircle.firstReady()}function t(t){var i=new Image;i.onload=e,i.src=t}function i(e,i){r=e;var o=m.getPhoto(e),s=document.getElementById("standalone-viewer-image");"default"!==i&&"standaloneViewer"!==i||(t(o.imageURL),l=m.getNumPhotos(),document.getElementById("standalone-viewer").classList.add("active"),E.setView("standaloneViewer"),(!m.getUiSettings().hidePhotos||m.isSAFT())&&l>1&&E.toggleNavigationButtons(n,a,!0),v.callResizers()),s.src=o.imageURL,z.ariaImg({elem:s,altText:o.name||"Vehicle Exterior Image"}),STS.Analytics2.photo_clicked(o.imageURL,o.name,i)}function n(){i(r===l-1?0:r+1,"standaloneViewer")}function a(){i(0===r?l-1:r-1,"standaloneViewer")}function o(e){var t=document.getElementById("standalone-viewer");t.style.width=e.viewWidth+"px",t.style.height=e.viewHeight+"px";var i,n=document.getElementById("spincar-view"),a=document.getElementById("standalone-viewer-image"),o=v.getImageDimensions(),s=e.isFullscreen,r=e.mobileOrientation,l=m.getUiSettings().hideDrawer;if(i=l?(STS.gcircle.vh-e.viewHeight)/2:(STS.gcircle.vh-STS.gcircle.MOBILE_DRAWER_FH-e.viewHeight)/2,s&&"standaloneViewer"===STS.gcircle.currentView)if(r.isMobile&&"landscape"===r.orientation)n.style.width=STS.gcircle.sizeW+"px",n.style.height="",n.style.top="",n.style.left="",n.style.transform="",n.style.msTransform="",t.style.top="",t.style.height=STS.gcircle.sizeH+"px";else if(STS.gcircle.desktopView){if(STS.gcircle.desktopView){var c=l?STS.gcircle.imageHeight:STS.gcircle.imageHeight+STS.gcircle.desktopDrawerHeight;n.style.width=STS.gcircle.imageWidth+"px",t.style.width=STS.gcircle.imageWidth+"px",n.style.height=c+"px",t.style.height=c+"px",n.style.top="50%",n.style.left="50%",n.style.transform="",n.style.msTransform="",t.style.top="",t.style.height=""}}else n.style.width=STS.gcircle.imageWidth+"px",n.style.height="100%",n.style.top=0,n.style.left=0,n.style.transform="none",n.style.msTransform="none",t.style.top=i+"px";else t.style.top="",o.width<e.viewWidth&&o.height<e.viewHeight?e.viewWidth-o.width<e.viewHeight-o.height?(a.style.width="100%",a.style.height="",t.style.flexDirection=""):(a.style.height="100%",a.style.width="",t.style.flexDirection="column"):(a.style.width="",a.style.height="",t.style.flexDirection=""),STS.browser.IE&&(a.style.marginTop=Math.max(0,(t.offsetHeight-a.offsetHeight)/2)+"px",a.style.marginLeft=Math.max(0,(t.offsetWidth-a.offsetWidth)/2)+"px")}function s(){var e=document.getElementById("standalone-viewer"),t=["mousedown","touchstart"];e.addEventListener("click",function(e){STS.Analytics2.photo_viewer_clicked()}),t.forEach(function(t){e.addEventListener(t,function(e){E.analyticsDragStart(e,"standalone")})}),window.addEventListener("mouseup",function(e){E.analyticsDragStart(e,"standalone")})}var r,l;return v.addResizer(o,"standaloneViewer"),{view:i,setUpEventListeners:s}}(),I=function(){function e(){f.style.display="none",d(),STS.Analytics2.feature_clicked(null,null,null)}function t(e,t,n){v=e,f.style.display="flex",k.src="",i(t,v,n),w.show(this),c()}function i(e,t,i){p="features"===t?m.getAllFeatures(e):m.getFeature(t,e),STS.Analytics2.feature_clicked(e,p,i),STS.Analytics2.sa_view_features("open",{parent:t,value:e,entry:"featureViewer"===i?"nav":"lightbox",context:"feature_tour"});var n=document.getElementById("lb-title"),o=t.toLowerCase().replace(/ /g,"-"),s=p.name;w.changeTitle(" ("+(p.index+1)+" of "+p.total+")");var r="i18n-"+o;n.classList.add(r),m.updateGridState({value:e}),I.style.display=p.videoKey?"block":"none",_.textContent=s,S.textContent=p.description,m.isAuctionDisclaimerEnable()?x.classList.add("i18n-auction-disclaimer"):(T.style.display="block",T.classList.add("i18n-detail-feature-disclaimer"),E.style.display="block",E.classList.add("i18n-detail-legal-feature-disclaimer")),p.longDescription?(b.textContent=p.longDescription,b.style.display="block"):b.style.display="none",z.ariaImg({elem:k,altText:p.curKey||""}),a(p.imageURL),P.getActiveElement()&&"feature-card"===P.getActiveElement().className&&document.getElementById("lb-container").focus()}function n(){var e=parseInt(window.getComputedStyle(k).width,10);k.style.height=Math.floor(e/2)+"px"}function a(e){k.src=e,k.onload=n}function o(){p.videoKey&&A.view(p.videoKey)}function s(e){var t,n,a=m.getGridState();"detail-feature-next"===e.target.id?(n=p.nextKey,t="next"):(n=p.prevKey,t="prev"),STS.Analytics2.sa_view_features("close",{parent:a.parent,value:a.value,exit:"nav",context:a.context}),STS.Analytics2.sa_lightbox_navs(t,a.context,a.value),i(n,v,"featureViewer")}function r(e){C=e.changedTouches[0].screenX,B=e.changedTouches[0].screenY}function l(e){var t=e.changedTouches[0].screenX-C,n=e.changedTouches[0].screenY-B,a=Math.abs(t/n),o=Math.abs(n/t);Math.abs(a>o?t:n)<30||a>o&&(t>=0?i(p.prevKey,v,"featureViewer"):i(p.nextKey,v,"featureViewer"))}function c(){f.addEventListener("touchstart",r,!0),f.addEventListener("touchend",l,!0),I.addEventListener("click",o,!0),y.addEventListener("click",s,!0),L.addEventListener("click",s,!0)}function d(){f.removeEventListener("touchstart",r),f.removeEventListener("touchend",l),I.removeEventListener("click",o),y.removeEventListener("click",s),L.removeEventListener("click",s)}function u(){e(),w.lightboxBack()}function h(){f.style.display="none"}function g(){n()}var p,v,f=document.getElementById("detail-feature-viewer"),y=document.getElementById("detail-feature-prev"),_=document.getElementById("detail-feature-title"),S=document.getElementById("detail-feature-description"),b=document.getElementById("detail-feature-description-long"),T=document.getElementById("detail-feature-disclaimer"),E=document.getElementById("detail-legal-feature-disclaimer"),x=document.getElementById("detail-feature-auction-disclaimer"),k=document.getElementById("detail-feature-img"),I=document.getElementById("detail-feature-play-btn"),L=document.getElementById("detail-feature-next"),C=0,B=0;return{backButtonHandler:u,view:t,close:e,hide:h,resize:g}}(),L=function(){function e(e,i){h.style.display="flex",t(e,i),w.show(this),r()}function t(e,t){var i=document.getElementById("lb-title");f=m.getFinanceInsuranceProducts(),S=f[e].name,y=f.length,_=e,w.changeTitle(" ("+(e+1)+" of "+f.length+")"),i.classList.add("i18n-protection"),m.updateGridState({value:S,context:"fi"}),v.src=f[e].html_path,STS.Analytics2.fi_product_clicked(S,t),STS.Analytics2.sa_view_features("open",{value:S,context:"fi",entry:"FIViewer"===t?"nav":"drawer"})}function i(){h.style.display="none",l(),STS.Analytics2.fi_product_clicked(null,null)}function n(e){b=e.changedTouches[0].screenX,T=e.changedTouches[0].screenY}function a(e){var i=e.changedTouches[0].screenX-b,n=e.changedTouches[0].screenY-T,a=Math.abs(i/n),o=Math.abs(n/i);Math.abs(a>o?i:n)<30||a>o&&(s(i>=0?"prev":"next"),t(_,"FIViewer"))}function o(e){var i,n=m.getGridState();i="finance-insurance-product-next"===e.target.id?"next":"prev",s(i),STS.Analytics2.sa_view_features("close",{value:n.value,context:"fi",exit:"nav"}),STS.Analytics2.sa_lightbox_navs(i,"fi",n.value),t(_,"FIViewer")}function s(e){"next"===e&&_+1===y?_=_-y+1:"prev"===e&&0===_?_=y-1:"prev"===e?_-=1:_+=1}function r(){h.addEventListener("touchstart",n,!0),h.addEventListener("touchend",a,!0),g.addEventListener("click",o,!0),p.addEventListener("click",o,!0)}function l(){h.removeEventListener("touchstart",n,!0),h.removeEventListener("touchend",a,!0),g.removeEventListener("click",o,!0),p.removeEventListener("click",o,!0)}function c(){i(),w.lightboxBack()}function d(){h.style.display="none"}function u(e){}var h=document.getElementById("finance-insurance-product-viewer"),g=document.getElementById("finance-insurance-product-prev"),p=document.getElementById("finance-insurance-product-next"),v=document.getElementById("finance-insurance-product-description"),f=[],y=0,_=-1,S="",b=0,T=0;return{backButtonHandler:c,view:e,close:i,hide:d,resize:u}}(),C=function(){function e(e){["mousedown","touchstart"].forEach(function(t){e.addEventListener(t,function(e){E.analyticsDragStart(e,"photoviewer")})}),window.addEventListener("mouseup",function(e){E.analyticsDragStart(e,"photoviewer")})}function t(){B=!0;var e=v.getImageDimensions();16===e.width&&9===e.height&&(v.updateImageDimensions(this.naturalWidth,this.naturalHeight),v.callResizers()),this.onload=null}function i(i,n){function a(){var e=(document.getElementById("photo-viewer").offsetHeight-document.getElementById("photo-viewer-image").offsetHeight)/2,t=(document.getElementById("photo-viewer").offsetWidth-document.getElementById("photo-viewer-image").offsetWidth)/2;document.getElementById("photo-viewer-image").style.marginTop=Math.max(0,e)+"px",document.getElementById("photo-viewer-image").style.marginLeft=Math.max(0,t)+"px"}var o=n.image,d=m.getUiSettings().hidePhotos,u=m.getPhotoViewerSettings().enable_photo_labels;document.getElementById("close-button-container").classList.add("photoviewer-btn-wrapper"),document.getElementById("btn-icon-container").classList.add("photoviewer-btn-icon"),"drawer"!==i&&"hotspot"!==i||(k||(k=m.getNumPhotos()),document.getElementById("photo-viewer").classList.add("active"),E.setView(O),E.closeButton.show(l,O),!d&&!n.hideNavButtons&&k>1&&E.toggleNavigationButtons(s,r,!0),P.getActiveElement()&&"photo-card"===P.getActiveElement().className&&document.getElementById("photo-viewer").focus(),v.callResizers());var h=document.getElementById("photo-label"),g=document.getElementById("photo-count"),p=h.parentNode,f=document.getElementById("photo-viewer-image"),y=document.getElementById("photo-view-container");B||(e(y),f.onload=t),n.useImgAsUrl?f.src=o:f.src=o.imageURL,STS.browser.IE&&f.addEventListener("load",a),(n.closeupNum||o.name)&&(!d||o.name&&u)?(p.style.display="block",o.name&&u?(z.ariaImg({elem:f,altText:o.name}),h.textContent=o.name,h.style.display="inline-block"):(z.ariaImg({elem:f,altText:"Vehicle closeup photo"}),h.style.display="none"),!d&&n.closeupNum?(v.isFullscreen()&&c(n.closeupNum),g.textContent=n.closeupNum+"/"+k,g.style.display="inline-block"):g.style.display="none"):p.style.display="none",STS.Analytics2.photo_clicked(o.imageURL,o.name,i),"photoViewer"===i&&(i="nav"),STS.Analytics2.sa_photo_viewer_open_image(f.src,i)}function n(e,t){var n={};I=e,n.image=m.getPhoto(e),n.closeupNum=e+1,i(t,n)}function a(e,t){var n={};n.image=m.getIAAPhoto(e),n.closeupNum="",n.hideNavButtons=!0,i(t,n)}function o(e,t){var n={};n.image=e,n.closeupNum="",n.hideNavButtons=!0,n.useImgAsUrl=!0,i(t,n)}function s(){var e=I===k-1?0:I+1,t=document.getElementById("photo-viewer-image");STS.Analytics2.sa_photo_viewer_navs("next",t.src,e),STS.Analytics2.sa_photo_viewer_close_image(t.src,"nav"),n(e,"photoViewer")}function r(){var e=0===I?k-1:I-1,t=document.getElementById("photo-viewer-image");STS.Analytics2.sa_photo_viewer_navs("prev",t.src,e),STS.Analytics2.sa_photo_viewer_close_image(t.src,"nav"),n(e,"photoViewer")}function l(){var e=document.getElementById("photo-viewer-image");STS.Analytics2.sa_photo_viewer_close(e.src),STS.Analytics2.sa_photo_viewer_close_image(e.src,"closebutton"),document.getElementById("photo-viewer").classList.remove("active"),document.getElementById("close-button-container").classList.remove("photoviewer-btn-wrapper"),document.getElementById("btn-icon-container").classList.remove("photoviewer-btn-icon"),e.src="",E.toggleNavigationButtons(s,r,!1),STS.Analytics2.photo_clicked(null,null,null),v.isFullscreen()&&T()}function c(e){var t=document.getElementById("photo-carousel"),i="photo-carousel-card-"+e;document.querySelectorAll(".photo-carousel-card").forEach(function(n){n.id===i?(n.classList.add("active"),(n.getBoundingClientRect().x<F.left||n.getBoundingClientRect().x>F.right)&&t.scroll((+e-1)*V.width,0)):n.classList.remove("active")}),R||x.displayArrows("photo")}function d(e,t,i,n,a){var o=j/W*2;1===M&&e>1&&S(),o<=Y&&(o=1);var s=Math.max(1,Math.min(o,M*e));e=s/M,M=s,U=[Math.max(0,Math.min(M-1,e*(U[0]+t)-t-(n||0))),Math.max(0,Math.min(M-1,e*(U[1]+i)-i-(a||0)))],e<1&&1===M&&S(),g()}function u(e){document.hasFocus()&&(e.preventDefault(),d(Math.pow(1.002,-e.deltaY),e.offsetX/W,e.offsetY/G))}function h(e){"contextmenu"!==e.type&&e.stopPropagation(),"mousedown"===e.type&&e.target.setCapture?e.target.setCapture():"mouseup"===e.type&&document.releaseCapture&&document.releaseCapture(),-1!==["mousedown","mouseup","touchstart","touchend","touchcancel","contextmenu"].indexOf(e.type)&&(N&&N(),N=!1,D=!1),("mousedown"===e.type||-1!==["touchstart","touchend","touchcancel"].indexOf(e.type)&&-1!==[1,2].indexOf(e.touches.length))&&(D=!0);var t=$(e.target).offset(),i=e.pageX-t.left,n=e.pageY-t.top,a=0;if(0===e.type.indexOf("touch")&&e.touches.length>=1){e.preventDefault(),i=0,n=0;for(var o=e.touches,l=0;l<o.length;++l)i+=(o[l].pageX-t.left)/o.length,n+=(o[l].pageY-t.top)/o.length;2===e.touches.length&&(a=Math.sqrt(Math.pow(e.touches[0].pageX-e.touches[1].pageX,2)+Math.pow(e.touches[0].pageY-e.touches[1].pageY,2)))}if(i=Math.floor(i),n=Math.floor(n),-1!==e.type.indexOf("move")&&D){if(e.preventDefault(),M>1||a){d(C&&a?a/C:1,i/W,n/G,(i-X)/W,(n-K)/G)}else Math.abs(i-X)>4&&(N=i-X>0?r:s);M<Y&&(clearTimeout(A),A=setTimeout(function(){if(M<Y)var e=setInterval(function(){d(.99,.5,.5),1===M&&clearInterval(e)},20)},200))}X=i,K=n,C=a}function g(){var e=document.getElementById("photo-viewer-image"),t=(W-j)/2,i=(G-q)/2;L.save(),L.clearRect(0,0,W,G),L.restore(),L.save(),L.translate(-U[0]*j,-U[1]*q),L.scale(M,M),L.drawImage(e,t,i,j,q),L.restore()}function p(e,t){var i=Math.abs(W/G);J=Math.abs(e/t),Math.abs(i-J)<=.01?(q=G,j=W):i<J?(j=W,q=j/J):i>J&&(q=G,j=q*J),U=[(W-j)/2,(G-q)/2]}function f(e,t){if(0!==e&&0!==t){W=e,G=t;var i=document.getElementById("photo-viewer-canvas"),n=document.getElementById("photo-viewer-image");p(4,3),i.style.display="block",i.width=e,i.height=t,L=i.getContext("2d"),n.addEventListener("load",y,!1)}}function y(){this.width/this.height!==J&&p(this.width,this.height),L.clearRect(0,0,W,G),L.drawImage(this,(W-j)/2,(G-q)/2,j,q),L.save()}function _(e){var t="calc(50% - "+e/2+"px)";document.querySelector("#viewer-prev-button").style.setProperty("top",t),document.querySelector("#viewer-next-button").style.setProperty("top",t)}function S(){document.querySelector("#viewer-prev-button").classList.toggle("fade"),document.querySelector("#viewer-next-button").classList.toggle("fade"),document.querySelector("#photo-label-container").classList.toggle("fade")}function w(e){var t=document.getElementById("photo-viewer"),i=document.getElementById("photo-carousel"),n=document.getElementById("photo-viewer-image"),a=(v.getImageDimensions(),0);t.style.width="100%",t.style.height="100%",_(0),e.isFullscreen?(a=V.height+(v.getMobileOrientation().isMobile?20:30),x.createCarousel(a,m.getPhotoViewerSettings().photos,"photo"),F=x.getEdgeSize("photo"),b(),_(a)):i.children.length&&(T(),document.getElementById("photo-view-container").style.setProperty("height","100%"),document.getElementById("photo-carousel-left").style.display="none",document.getElementById("photo-carousel-right").style.display="none",i.style.height=0),f(t.offsetWidth,t.offsetHeight-a),n.src&&(n.src=n.src)}function b(){var e=document.getElementById("photo-carousel"),t=document.getElementById("photo-view-container"),i=["mousedown","mouseup","mousemove","touchstart","touchmove","touchend","touchcancel","contextmenu"];R||x.addArrowsListeners("photo"),e.addEventListener("scroll",function(){H||(window.requestAnimationFrame(function(){R||x.displayArrows("photo"),H=!1}),H=!0)}),i.forEach(function(e){t.addEventListener(e,h,!1)}),t.addEventListener("wheel",u,!1)}function T(){var e=document.getElementById("photo-view-container");["mousedown","mouseup","mousemove","touchstart","touchmove","touchend","touchcancel","contextmenu"].forEach(function(t){e.removeEventListener(t,h)}),e.removeEventListener("wheel",u),document.getElementById("photo-viewer-image").removeEventListener("load",y)}var k,I,L,C,A,B=!1,O="photoViewer",B=!1,H=!1,R=v.getMobileOrientation().isMobile,V=x.getThumbnailDimensions(),F={},M=1,U=[0,0],D=!1,N=!1,W=0,G=0,j=-16,q=-9,X=0,K=0,Y=1.2,J=4/3;return v.addResizer(w,"photoViewer"),{viewCloseup:n,viewIAAUrl:a,viewImage:o}}(),A=function(){function e(e){a.style.display="block",n=e;var i=m.getVideoURL(e);"videoTour"===e?(o.style.display="none",s.src=i,s.style.display=""):(s.style.display="none",o.src=i,o.style.display="",o.play()),"videoTestDrive"===e&&document.getElementById("video-wrapper").classList.add("video-test-drive");E.setView("videoViewer"),E.closeButton.show(t,"videoViewer"),STS.Analytics2.video_clicked(e,m.getVideoCategory(e)),STS.Analytics2.sa_videoviewer_view("open",m.getVideoURL(e),m.getVideoCategory(e))}function t(){a.style.display="none",o.src="",s.src="",document.getElementById("video-wrapper").classList.remove("video-test-drive"),STS.Analytics2.video_clicked(null,null),STS.Analytics2.sa_videoviewer_view("close",m.getVideoURL(n),m.getVideoCategory(n))}function i(e){var t,i;e.isFullscreen&&STS.gcircle.desktopView?(t=STS.gcircle.imageWidth,i=STS.gcircle.imageHeight):(t=e.viewWidth,i=e.viewHeight),a.style.width=t+"px",a.style.height=i+"px",s.style.height=t/16*9+"px"}var n,a=document.getElementById("video-viewer"),o=a.querySelector("video"),s=a.querySelector("iframe");return v.addResizer(i,"videoViewer"),{view:e}}(),B=function(){function e(){r.style.display="none"}function t(){r.style.display="none"}function i(){var e=m.getFactoryUpgrades().data;l=!0;var t=0,i=document.getElementById("fu-content"),a=document.createElement("div");e.sort(function(e,t){return e.Msrp===t.Msrp?e.Description<t.Description?-1:1:e.Msrp>t.Msrp?-1:1}),a.classList.add("fu-disclaimer","i18n-fu-disclaimer");for(var o=0;o<e.length;o++)t+=e[o].Msrp,i.appendChild(n(e[o]));e.length>1&&i.appendChild(n({Description:"TOTAL FACTORY-INSTALLED UPGRADES",Msrp:t},!0)),i.appendChild(a)}function n(e,t){var i=document.createElement("div"),n=document.createElement("span"),a=document.createElement("span");return i.classList.add(t?"fu-total-container":"fu-item-container"),n.classList.add(t?"fu-total-description":"fu-item-description"),a.classList.add(t?"fu-total-msrp":"fu-item-msrp"),n.textContent=e.Description,a.textContent=0===e.Msrp?"--":"$"+e.Msrp,i.appendChild(n),i.appendChild(a),i}function a(){STS.Analytics2.factory_upgrades_click(),l||i(),w.show(this),w.changeTitle("FACTORY-INSTALLED UPGRADES"),r.style.display="block"}function o(){}function s(){e(),w.lightboxBack()}var r=document.getElementById("factory-upgrades-viewer"),l=!1;return{view:a,close:e,hide:t,backButtonHandler:s,resize:o}}(),O=function(){function e(){c.style.visibility="hidden",S.hideLightbox()}function t(){var t=document.getElementById("form-header"),i=document.getElementById("phone"),n=document.getElementById("lead-form-close-btn"),s=m.getCTASettings(),u=m.getUiSettings();c.style.setProperty("--main-bg-color",u.uiColors.hotspot),r=s.data.year&&s.data.make&&s.data.model?[s.data.year,s.data.make,s.data.model].join(" "):"",t.innerHTML="<p>"+r+"</p><p>"+s.data.customer+"</p>",i.textContent="123-456-7890",i.addEventListener("input",function(e){var t=e.target.value.replace(/\D/g,"").match(/(\d{0,3})(\d{0,3})(\d{0,4})/);e.target.value=t[2]?"("+t[1]+") "+t[2]+(t[3]?"-"+t[3]:""):t[1]}),d.addEventListener("submit",function(e){var t=new FormData(d);for(var i in s.data)s.data.hasOwnProperty(i)&&t.append(i,s.data[i]);for(var n in l)l.hasOwnProperty(n)&&t.append(n,l[n]);STS.args.teststatic&&!STS.args.devvinifier?a():m.callLeadFormAPI(a,o,t),e.preventDefault()}),n.addEventListener("click",e),STS.Analytics2.get_client_id_prid()}function i(e){var t=e.data;if("string"==typeof t&&0===t.indexOf("client_id_prid:")){var n=t.substring("client_id_prid:".length).split(",");["client_id","prid","report_link"].forEach(function(e,t){l[e]=n[t]}),window.removeEventListener("message",i)}}function n(){S.addLightbox(c),v.callResizers(),c.style.visibility="visible"}function a(){var t=document.getElementsByName("first_name")[0].value;t=t||"",d.remove();var i=document.getElementById("form-success"),n=document.getElementById("form-close-btn");r=r?" in the "+r:"",i.style.display="block",i.innerHTML='<p class="text-margin"><b>Thank you '+t+"!</b></p><p>We appreciate your interest"+r+'!</p><p>We\'ll be in touch soon.</p><p class="text-margin">Have a great day!</p>',i.appendChild(n),n.textContent="close",v.getMobileOrientation().isMobile||(n.addEventListener("mouseenter",function(){n.classList.add("hover")}),n.addEventListener("mouseleave",function(){n.classList.remove("hover")})),n.addEventListener("click",e)}function o(){window.alert("There was a problem submitting your form. Please try again.")}function s(e){e.viewWidth<545?u.style.columnCount=1:u.style.columnCount=2,S.lightboxReziser(c,e)}var r,l={},c=document.getElementById("lead-form-container"),d=document.getElementById("lead-form"),u=document.getElementById("lead-form-input-fields");if(window.addEventListener("message",i),v.addResizer(s,"leadForm"),!v.getMobileOrientation().isMobile){var h=document.getElementById("e-price-submit");h.addEventListener("mouseenter",function(){h.classList.add("hover")}),h.addEventListener("mouseleave",function(){h.classList.remove("hover")})}return{setup:t,open:n}}(),H=function(){function e(){s.style.display="none",STS.Analytics2.photo_clicked(null,null,null)}function t(){s.style.display="none"}function i(){r=!0;var e=document.createElement("script"),t=document.createElement("div");e.setAttribute("src","https://snapshot.carfax.com/latest/snapshot.js"),document.body.appendChild(e),t.classList.add("carfax-snapshot-embedded"),t.dataset.vin=m.getGlobalSettings().vin.toUpperCase(),t.dataset.partner="SPR_0",t.dataset.key=m.getCarfaxKey(),t.id="carfax-snapshot-embedded",document.getElementById("carfax-content").appendChild(t)}function n(e){r||i(),s.style.display="block",w.show(this),w.changeTitle("CARFAX REPORT"),STS.Analytics2.carfax_link_clicked(),STS.Analytics2.photo_clicked("Carfax Report","Carfax Report",e)}function a(){}function o(){e(),w.lightboxBack()}var s=document.getElementById("carfax-viewer"),r=!1;return{backButtonHandler:o,view:n,close:e,hide:t,resize:a}}(),R=function(){function e(e){p=e.info,STS.args.testga&>ag("config",e.ga4_measurement_id),E.render()}function t(e){if(e){var t=document.getElementById("gcircle");t.innerHTML="Error loading widget",t.style.display="inline"}}function i(e){if(e&&e.includes("Features")){var t=e.replace("Features","").trim();return t.length>0?t:void 0}if(e)return e}function n(e){gtag("event",e.name,{event_category:e.category,event_label:e.label,value:e.value})}function a(e,t){var i=e.value?"check":"uncheck",n=e.value?"open":"close",a=e.name.includes("Impel_F&I_Products"),o=e.name.includes("Impel_Feature"),s="hotspot"===e.value,r="Open";if(a||o){if("F&I Advantage View"===e.label||"Feature Tour View"===e.label)return;r=e.value?e.value:r;var l=e.name.split(" ");e.value=e.label,e.label=l[0]}s&&(e.value=e.label,e.label="HotSpot Popup");var c={click:{event_action_result:"spin",creative_name:"Impel 360 Interaction"},drag:{event_action_result:"spin",creative_name:"Impel 360 Swipe"},Carfax:{event_action_result:"open",creative_name:"Impel Carfax View Open"},"Photo View":{event_action_result:"open",creative_name:"Impel Photo Gallery Open"},"HotSpot Toggle Click":{event_action_result:i,creative_name:"Impel 360 Hotspot Toggle"},"HotSpot Popup":{event_action_result:"popup",creative_name:"Impel 360 "+e.value+" hotspot click"},"Click View":{event_action_result:"open",creative_name:"Impel 360 View "+e.value},"Photo View Previous":{event_action_result:"prev_step",creative_name:"Impel 360 "+e.value+" photo view"},"Photo View Next":{event_action_result:"next_step",creative_name:"Impel 360 "+e.value+" photo view"},"Impel_F&I_Products":{event_action_result:r,creative_name:"Impel "+e.value+" product View"},Impel_Feature:{event_action_result:r,creative_name:"Impel "+e.value+" Feature View"},"Carousel Card":{event_action_result:"open",creative_name:"Impel "+e.value+" Open"},"Full Screen":{event_action_result:n,creative_name:"Impel 360 "+n+" full screen"},"Close Window":{event_action_result:"close",creative_name:"Impel 360 close window"},"Doors Open Toggle Click":{event_action_result:i,creative_name:"Impel 360 View Doors Open"},videoTour:{event_action_result:"play",creative_name:"Impel 360 Video Overview play"}};if(c[e.label]){var d=c[e.label].event_action_result,u=c[e.label].creative_name;gtag("event","asc_media_interaction",{item_id:t.item_id,item_number:t.item_number,item_price:t.item_price,item_condition:t.item_condition,item_year:t.item_year,item_make:t.item_make,item_model:t.item_model,item_variant:t.item_variant,item_color:t.item_color,item_type:t.item_type,item_category:t.item_category,item_fuel_type:t.item_fuel_type,page_type:t.page_type,link_url:t.link_url,affiliation:"Impel",event_owner:"Impel",media_type:"360_platform",event_action_result:d,creative_name:u})}}function o(){
- var e=STS.asc_data&&STS.asc_data.vehicles?STS.asc_data.vehicles:null;if(void 0===e||null===e||""===e||e==={})return null;var t=STS.args&&STS.args.customer&&STS.args.vin?"https://spins.impel.io/"+STS.args.customer+"/"+STS.args.vin:"",i=STS.asc_data&&STS.asc_data.page_type?STS.asc_data.page_type:null,n=(STS.info.vin||STS.vehicle_data.vin||STS.args.vin||"").toUpperCase(),a=e[n];return{item_id:a.item_id,item_number:a.item_number,item_price:a.item_price,item_condition:a.item_condition,item_year:a.item_year,item_make:a.item_make,item_model:a.item_model,item_variant:a.item_variant,item_color:a.item_color,item_type:a.item_type,item_category:a.item_category,item_fuel_type:a.item_fuel_type,page_type:i,link_url:t}}function s(e,t,i){var s=e+" "+t,r={name:s,category:y,label:t,value:i},l=o();l?a(r,l):n(r)}function r(e,t,i){if(!STS.checkOptout()){e="Impel_"+e,void 0===i&&(i=null),s(e,t||"",i)}}function l(e,t,i){gtag("event","timing_complete",{event_category:_,name:e,value:i,event_label:t})}function d(e,t,i){e="Impel_"+e,l(e,t,i)}function u(){if(!S&&STS.ga4_measurement_id){var e={cookie_flags:w,send_page_view:!1};STS.ga_client_id&&(e.client_id=STS.ga_client_id),gtag("config",STS.ga4_measurement_id,e),S=!0}}function h(){STS.ga_client_id?u():window.gtag&&STS.ga4_measurement_id?gtag("get",STS.ga4_measurement_id,"client_id",function(e){e&&(STS.ga_client_id=e,u())}):u()}function m(e){function t(e){return e?String(e):""}var i={},n=e.items;return n.length>0&&"object"==typeof n[0]&&!Array.isArray(n[0])&&n.forEach(function(e){var n=e.item_id.toUpperCase();i[n]={item_id:t(e.item_id),item_number:t(e.item_number),item_price:t(e.item_price),item_condition:t(e.item_condition),item_year:t(e.item_year),item_make:t(e.item_make),item_model:t(e.item_model),item_variant:t(e.item_variant),item_color:t(e.item_color),item_type:t(e.item_type),item_category:t(e.item_category),item_fuel_type:t(e.item_fuel_type)}}),i}function g(e){var t=e.data;if("string"==typeof t&&t.startsWith("STS:GAInit")){var i=t.split(":::")[1],n=JSON.parse(i);n.ga_client_id&&(STS.ga_client_id=n.ga_client_id),h(),n.ga_asc_datalayer&&(STS.asc_data={page_type:n.ga_asc_datalayer.page_type,vehicles:m(n.ga_asc_datalayer)}),window.removeEventListener("message",g)}}var p;STS.postParent=function(e){try{postMessage.call(opener||parent,e,"*")}catch(t){(window.opener||window.parent).postMessage(e,"*")}},$("html").attr("lang",STS.args.UI.lang||"en"),STS.args.hideexpand&&$("#popout").hide(),STS.manager_preview=STS.args.managerpreview;var v=function(e){STS.checkOptout()||STS.postParent("sts-gs-ana:"+JSON.stringify(e))},f=function(e){STS.checkOptout()||STS.postParent("sts-sa-ana:"+JSON.stringify(e))},y="Impel Engagement",_="Impel Engagement",S=!1,w="SameSite=None; Secure";STS.GAClientId=h,STS.ga_client_id?u():(window.addEventListener("message",g),STS.postParent("STS:GAInit:Spin"),setTimeout(h,4500)),STS.Analytics2={},STS.Analytics2.body_click=function(){v({spin_click:null})},STS.Analytics2.spin_click=function(){r("360 Engagement","click")},STS.Analytics2.manual_rotation=function(){v({misc:"manual_rotation"})},STS.Analytics2.video_tour_click=function(){v({video_tour_click:null}),r("Video Engagement","Live Video")},STS.Analytics2.carfax_link_clicked=function(){r("Carfax Engagement","Carfax"),v({carfax_link_clicked:null})},STS.Analytics2.wa_view_clicked=function(e,t){v({wa_view_clicked:e}),"i"===e||"pano_0"===e?(v({misc:"view_interior"}),r("360 Engagement","click_view_interior")):"ec"===e?(v({misc:"view_exterior"}),r("360 Engagement","click_view_exterior")):t&&r("360 Engagement","click_view_"+t)},STS.Analytics2.feature_clicked=function(e,t,i){v({feature_clicked:e,feature_category:t?t.category:null,feature_key:t?t.automatic:null,opened_from:i}),null!==e&&("drawer"===i||"featureViewer"===i?(r("Feature Engagement",e),"drawer"===i&&f({category:"click",event:{t:"feature",a:e,g:"feature_tour",feature_category:t.category,url:t.imageURL}})):"hotspot"===i&&r("360 Engagement",e,"hotspot"))},STS.Analytics2.fi_product_clicked=function(e,t){v({fi_product_clicked:e,opened_from:t}),null!==e&&(r("F&I_Products",e),"FIViewer"!==t&&f({category:"click",event:{t:"fi_product",a:e,g:"fi"}}))},STS.Analytics2.photo_clicked=function(e,t,i){v({photo_clicked:e,opened_from:i,name:t}),null!==e&&("drawer"===i||"photoViewer"===i||"standaloneViewer"===i?r("Photo Engagement","Photo View"):"hotspot"===i&&null!==t&&r("360 Engagement",t,"hotspot"))},STS.Analytics2.photo_viewer_clicked=function(){r("Photo Engagement","Photo Click")},STS.Analytics2.video_clicked=function(e,t){v({video_clicked:e,category:t}),null!==t&&null!==e&&"Videos"!==t?(r("Video Engagement",e),f({category:"click",event:{t:"video",a:e,g:"videoviewer"}})):"Videos"===t&&r("Video Engagement","Live Video")},STS.Analytics2.sa_videoviewer_view=function(e,t,i){f({category:"view",event:{t:"video",a:e,g:"videoviewer",video_name:t,video_category:i||"VideoTour"}})},STS.Analytics2.feature_category_card_clicked=function(e,t){r("Feature Engagement",i(e)),v({feature_category_card_clicked:e}),f({category:"click",event:{t:"category",a:i(e),g:"feature_tour",features_count:t}})},STS.Analytics2.video_category_card_clicked=function(e){v({video_category_card_clicked:e})},STS.Analytics2.carousel_category_changed=function(e,t,i){if(t=void 0===t||t,v({carousel_category_changed:e}),e&&"string"==typeof e){var n=c.getAnalyticsMap(),a=e.toUpperCase();n.hasOwnProperty(a)&&t&&r(n[a].action,n[a].view_label)}r("360 Engagement","Carousel Card",e),f({category:"click",event:{t:i?"pill":"card",a:e,g:"drawer"}})},STS.Analytics2.drawer_clicked=function(e,t){if(e&&"string"==typeof e){var i=c.getAnalyticsMap(),n=e.toUpperCase();if("Photos"===e){var a=t.substring(7,t.length-2);f({category:"click",event:{t:"card",a:"photos",g:"drawer",url:a}})}if(i.hasOwnProperty(n))r(i[n].action,i[n].click_label);else{var o=Object.values(c.getFeatureCategories()).map(function(e){return e.toUpperCase()}),s=Object.values(c.getVideoCategories()).map(function(e){return e.toUpperCase()}),l=null;-1!==o.indexOf(n)?l="FEATURES":-1!==s.indexOf(n)&&(l="VIDEOS"),null!==l&&r(i[l].action,e+" Click")}}},STS.Analytics2.get_client_id_prid=function(){v({client_id_prid:null})},STS.Analytics2.cta_clicked=function(){v({num_clicks_cta:null}),r("CTA Engagement","Test Drive Click")},STS.Analytics2.cta_clicked_interstitial=function(){v({num_clicks_cta_interstitial:null}),r("CTA Engagement","Test Drive Click")},STS.Analytics2.carousel_cta_clicked=function(){v({num_clicks_carousel_cta:null}),r("CTA Engagement","Carousel Lead Form Click")},STS.Analytics2.factory_upgrades_click=function(){r("Feature Engagement","Factory Upgrades")},STS.Analytics2.quiz_card_clicked=function(){r("F&I_Products","NA_Quiz_Entry")},STS.Analytics2.srp_btn_clicked=function(){r("Entry Button Click","SRP_Button_Click")},STS.Analytics2.wa_360_click=function(){STS.wa_products&&STS.wa_products.wa_360&&v({wa_360_click:null})},STS.Analytics2.hotspot_toggle_click=function(e){v({hotspot_toggle_click:e}),r("360 Engagement","HotSpot Toggle Click",e)},STS.Analytics2.doors_toggle_click=function(e){r("360 Engagement","Doors Open Toggle Click",e)};var b=function(e){return"ec"===e||"closeup_only"===e?"exterior":"i"===e?"interior":e};STS.Analytics2.sa_body_click=function(){f({category:"click",event:{t:"body",g:"body"}})},STS.Analytics2.sa_hotspot_click=function(e,t,i,n,a){f({category:"click",event:{t:"hotspot",a:t,g:b(i),name:e,url:n,asset_class:a}})},STS.Analytics2.sa_photo_viewer_close=function(e){f({category:"click",event:{t:"close",g:"photoviewer",url:e}})},STS.Analytics2.sa_photo_viewer_close_image=function(e,t){f({category:"view",event:{t:"image",a:"close",g:"photoviewer",url:e,exit:t}})},STS.Analytics2.sa_photo_viewer_open_image=function(e,t){f({category:"view",event:{t:"image",a:"open",g:"photoviewer",url:e,entry:t}})},STS.Analytics2.sa_photo_viewer_image_event=function(e,t){f({category:e,event:{t:"image",g:"photoviewer",url:t}})},STS.Analytics2.sa_photo_viewer_navs=function(e,t,i){r("360 Engagement","Photo View "+("prev"===e?"Previous":"Next"),"closeup "+String(i)),f({category:"click",event:{t:"nav",a:e,g:"photoviewer",url:t}})},STS.Analytics2.sa_drawer_nav=function(e,t){f({category:"click",event:{t:"nav",a:e,g:"drawer_carousel",cards_visible:t}})},STS.Analytics2.sa_drawer_drag=function(e,t){void 0!==e&&f({category:"drag",event:{t:"drawer_carousel",a:e,g:"drawer_carousel",cards_visible:t}})},STS.Analytics2.sa_drawer_scroll=function(e,t){f({category:"scroll",event:{t:"drawer_carousel",a:e,g:"drawer_carousel",cards_visible:t}})},STS.Analytics2.sa_drawer_cards=function(e,t){f({category:"click",event:{t:"carousel_card",a:e,g:"drawer_carousel",name:e,url:t}})},STS.Analytics2.sa_view_controller_clicked=function(e,t,i){if(void 0!==e){var n="see_";n+="ec"===t?"outside":"i"===t?"inside":t;var a=b(e);r("360 Engagement","Click View",a),f({category:"click",event:{t:"view_controller",a:n,g:a,asset_class:i}})}},STS.Analytics2.sa_view_event=function(e,t,i,n){"drag"===e&&r("360 Engagement","drag"),f({category:e,event:{t:"hero",a:t,g:b(i),asset_class:n}})},STS.Analytics2.sa_lightbox_header_btns=function(e,t){var n={category:"click",event:{t:e,g:t.context}};if("feature_tour"===t.context)n.event.feature_category=i(t.parent),n.event.feature_name=t.value;else if("fi"===t.context)n.event.fi_product_name=t.value;else{if("close"!==e)return;r("360 Engagement","Close Window")}f(n)},STS.Analytics2.sa_lightbox_navs=function(e,t,i){var n={category:"click",event:{t:"nav",a:e,g:t}};if("feature_tour"===t)n.event.feature_name=i,r("Feature",i,e);else{if("fi"!==t)return;n.event.fi_product_name=i,r("F&I_Products",i,e)}f(n)};var T=!0;return STS.Analytics2.sa_view_opened=function(e,t){var i=T?1e3:0;setTimeout(function(){f({category:"view",event:{t:"hero",a:"open",g:b(e),asset_class:t}})},i),T=!1},STS.Analytics2.sa_view_closed=function(e,t){f({category:"view",event:{t:"hero",a:"close",g:b(e),asset_class:t}})},STS.Analytics2.sa_view_features=function(e,t){var n={category:"view",event:{a:e,g:t.context,entry:t.entry,exit:t.exit}};if("feature_tour"===t.context)n.event.t="feature",n.event.feature_category=i(t.parent),n.event.feature_name=t.value;else{if("fi"!==t.context)return;n.event.t="fi_product",n.event.fi_product_name=t.value}f(n)},STS.Analytics2.sa_fullscreen_click=function(e){r("360 Engagement","Full Screen",e)},$("body").on("click",function(){STS.Analytics2.body_click(),STS.Analytics2.sa_body_click()}),$("#hero-container, #drag-to-view-overlay, #expand-btn, #perspective-btn").on("click touchstart",STS.Analytics2.wa_360_click),window.addEventListener("message",function(e){var t=e.data;if("string"==typeof t&&t.startsWith("ga_time_events:")){for(var i=JSON.parse(t.substring("ga_time_events:".length)),n=Object.keys(i.view_clicks_and_times),a=0;a<n.length;a++){var o;o="ec"===n[a]?"Time Spent in 360":-1!==["i","pano_0"].indexOf(n[a])?"Time spent viewing interior":null,null!==o&&d("360 Engagement",o,i.view_clicks_and_times[n[a]].dur)}i.total_photo_time>0&&d("Photo Engagement","Total photo view time",i.total_photo_time);var s=Object.keys(i.feature_views_and_times);for(a=0;a<s.length;a++)d("Feature Engagement","Time Spent viewing "+s[a],i.feature_views_and_times[s[a]].dur);var r=Object.keys(i.fi_views_and_times);for(a=0;a<r.length;a++)d("F&I_Products","Time Spent viewing "+r[a],i.fi_views_and_times[r[a]].dur);var l=Object.keys(i.video_views_and_times);for(a=0;a<l.length;a++)d("Video Engagement","Time Spent viewing "+l[a],i.video_views_and_times[l[a]].dur)}}),{success:e,error:t}}(),z=function(){function e(e){var t=e.elem,i=e.role||"img",n=e.ariaLabel||"";if("CANVAS"!==t.tagName){var a=document.createElement("span");a.setAttribute("role",i),a.setAttribute("aria-label",n),t.appendChild(a)}else t.setAttribute("role",i),t.setAttribute("aria-label",n||"")}function t(e){e.elem.alt=e.altText}return{aria:e,ariaImg:t}}(),P=function(){function e(){return s.length?s[s.length-1]:null}function t(e){return e.filter(function(e){return 0!==e.offsetWidth||0!==e.offsetHeight})}function i(e){var i=Array.prototype.slice.call(document.querySelectorAll("[class*="+e+"]"),0);if(i=t(i),!i.length&&document.querySelector("#spinContainer").offsetParent){if(e.includes("next"))return STS.gcircle.view_handlers.ec.rotateBy(.33);if(e.includes("prev"))return STS.gcircle.view_handlers.ec.rotateBy(-.33)}if(i.length)return i[i.length-1].click()}function n(e){if("Space"===e.code||"Enter"===e.code)s[s.length-1]!==document.activeElement&&s.push(document.activeElement),document.activeElement.click();else if("Backspace"===e.code||"Escape"===e.code){if(i("ui-action-exit"),s=t(s),s.length){var n=s.pop();n.focus()}}else["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.code)&&(e.preventDefault(),"pano"===STS.gcircle.view&&"none"===document.querySelector("#lb-container").style.display?STS.pano.krpano.call("camera_keydown("+e.keyCode+")"):(STS.gcircle.loadSingleImage=!1,"ArrowLeft"===e.code?i("ui-action-prev"):"ArrowRight"===e.code&&i("ui-action-next")))}function a(e){"pano"===STS.gcircle.view&&STS.pano.krpano.call("camera_keyup("+e.keyCode+")")}function o(){window.addEventListener("keydown",n,!0),window.addEventListener("keyup",a,!0)}var s=[];return{init:o,getActiveElement:e}}()}();
- //]]>
- </script>
- </body></html>
|