!function(e){"use strict";e(document).ready((function(){e(".menu-links__row .menu-links__text").each((function(){e(this).find("a").attr("href")&&-1!==e(this).find("a").attr("href").indexOf("#")&&e(this).find("a").attr("href").split("#")[1]&&e(this).append('<span class="has-menu-arrow"></span>')}))}))}(jQuery),document.addEventListener("DOMContentLoaded",(()=>{const e=location.href;document.querySelectorAll(".megamenu__items .megamenu__item").forEach((t=>{t.hasAttribute("role")||t.setAttribute("role","menuitem");const n=t.querySelector("a");n&&n.href===e?t.classList.add("active-page"):t.classList.remove("active-page")}))}));;
!function(e){"use strict";function o(){let o=e(".site-header");if(0<o.length){e(".wp-site-blocks").css("padding-top",o.outerHeight());let t=o.find(".mega-menu__menu"),n=e(window).width();0<t.length&&(n<1200?e("body").hasClass("admin-bar")?t.css("top",o.outerHeight()+e("#wpadminbar").outerHeight()):t.css("top",o.outerHeight()):t.css("top",""))}}function t(o){if(o&&e("#"+o).length>0){let t=e(".peet-mega-menu-wrapper").outerHeight()||0,n=Math.abs(e("#"+o).offset().top-e(window).scrollTop())/e(document).height()*4e3;e("html, body").animate({scrollTop:e("#"+o).offset().top-t},n)}}function n(o){const t="string"==typeof o?e(o):o;if(!t.length)return;const n=t.find(".contact-form-message"),a=t.find(".contact-form"),i=t.find(".suburb-display"),m=t.find(".contact-form-step1"),r=t.find(".contact-form-step2");n.length&&n.html(""),a.length&&a[0]&&a[0].reset(),i.length&&i.text("Please select a suburb from the dropdown."),m.length&&m.show(),r.length&&r.hide()}e(document).ready((function(){let n=!1;if(o(),e(window).on("resize",(function(){let t=e(window).width();o(),t>=1200&&!n?(n=!0,setTimeout((function(){o()}),300)):t<1200&&n&&(n=!1,setTimeout((function(){o()}),300))})),e(".mega-menu__navigation ul li.menu-item-has-children, .mega-menu__navigation ul > li.menu-item-has-megamenu").append('<i class="fa fa-angle-down submenu-toggle" aria-hidden="true"></i>'),e(document).on("click",".mega-menu__navigation .mega-menu__nav-toggle",(function(){e(".mega-menu__navigation").toggleClass("toggled"),e("body").toggleClass("off-scroll")})),e(document).on("click",".mega-menu__navigation ul li .submenu-toggle",(function(){1200>e(window).outerWidth()&&(e(this).parent("li").toggleClass("active"),e(this).siblings(".sub-menu, .megamenu").slideToggle())})),e(document).on("click",".mega-menu__navigation .mega-menu__form .mega-menu__form-toggle",(function(){e(".mega-menu__navigation .mega-menu__form .mega-menu__form-modal").addClass("toggled"),e("body").addClass("off-scroll")})),e(document).on("click",".mega-menu__navigation .mega-menu__form-modal .mega-menu__form-modal-close",(function(){e(".mega-menu__navigation .mega-menu__form-modal").removeClass("toggled"),e("body").removeClass("off-scroll")})),e(".mega-menu__navigation ul li").hover((function(){1199<e(window).outerWidth()&&(e(this).hasClass("menu-item-has-megamenu")||e(this).hasClass("menu-item-has-children"))&&e(this).toggleClass("active").siblings().removeClass("active")})),e(document).on("click",'.menu-links__text a[href*="#"]',(function(o){t(e(this).attr("href").split("#")[1])})),window.location.hash){let o=window.location.hash.substring(1);e("html, body").scrollTop(0),t(o)}})),e(document).on("click",".promotional-banner-wrapper .promotional-form",(function(o){o.preventDefault(),e(".peet-form-popup").hide(),e(this).parents(".promotional-banner-wrapper").find(".promotional-contact-form-wrapper .peet-form-popup").show(),e(this).parents(".promotional-banner-wrapper").find(".promotional-contact-form-wrapper .peet-form-popup form.contact-form").hasClass("product-enquiry")&&e(this).parents(".promotional-banner-wrapper").find(".promotional-contact-form-wrapper .peet-form-popup form.contact-form .wp-block-contact-form-heading .product-enquiry-heading").text("Product Enquiry"),e("body").addClass("peet-modal-open")})),e(document).on("click",".peet-form-popup__close",(function(){e(this).parents(".promotional-banner-wrapper").find(".promotional-contact-form-wrapper .peet-form-popup").hide(),e("body").removeClass("peet-modal-open")})),e(".peet-form-popup").on("click",(function(o){if(!e(o.target).closest(".peet-form-popup__content").length&&!e(o.target).closest(".peet__btn").length){const o=e(this);o.hide(),e("body").removeClass("peet-modal-open"),n(o)}})),e(document).on("click",".promotional-contact-form-wrapper",(function(o){if(o.target===this){const o=e(this).find(".peet-form-popup");o.hide(),e("body").removeClass("peet-modal-open"),n(o)}})),jQuery(window).on("load",(function(){jQuery("body").hasClass("page-template-for-sale")&&jQuery(".peet-main-menu-wrapper .mega-menu .promotional-banner-wrapper").css({opacity:1,visibility:"visible",pointerEvents:"auto",display:"block"}).fadeIn(300)}))}(jQuery);;
(()=>{const t=[],e=[];let o;const n=mapConfig&&mapConfig.mapCoordinates?mapConfig.mapCoordinates:[],a=getComputedStyle(document.documentElement).getPropertyValue("--wp--preset--color--map-pin-color").trim(),i=getComputedStyle(document.documentElement).getPropertyValue("--wp--preset--color--map-pin-color").trim(),l=getComputedStyle(document.documentElement).getPropertyValue("--wp--preset--color--map-label-color").trim(),s=getComputedStyle(document.documentElement).getPropertyValue("--wp--preset--color--color-1").trim(),r=getComputedStyle(document.documentElement).getPropertyValue("--wp--preset--color--color-2").trim(),c=(getComputedStyle(document.documentElement),{coordinates:n,fillColor:s,fillOpacity:.2,borderColor:r,borderOpacity:1,borderWidth:3}),d=`<svg version="1.1" xmlns="http://www.w3.org/2000/svg" ><g transform="translate(0 -1028.4)"><path d="m32.5 1030.4c-10.5 0-19 8.5-19 19 0 3.5 1.1 7 3 10l11.8 21.8c0.6 1.6 2.1 3 3.7 3s3.1-1.4 3.7-3l13.2-23.7c1.4-2.7 2.1-5.7 2.1-8.8 0-10.5-8.5-19-19-19zm-0.1 10.6c5.2 0 9.5 4.3 9.5 9.5s-4.3 9.5-9.5 9.5-9.5-4.3-9.5-9.5 4.3-9.5 9.5-9.5z" fill="#003B5C"/><path d="m32.5 1.0312c-10.5 0-19 8.5-19 19 0 3.8 1.1 7.2 3 10.2 0.1 0.1 0.2 0.3 0.3 0.4l11.8 21.9c0.6 1.6 2.1 2.8 3.7 2.8s3.1-1.2 3.7-2.8l13.2-23.8c1.4-2.6 2.1-5.6 2.1-8.7 0-10.5-8.5-19-19-19zm-0.1 10.8c5.2 0 9.5 4.3 9.5 9.5s-4.3 9.5-9.5 9.5-9.5-4.3-9.5-9.5 4.3-9.5 9.5-9.5z" fill="${document.body.classList.contains("peet_dark")?i:a}" transform="translate(0 1028.4)"/></g></svg>`;function m(){const n=document.querySelector(".stats-item-wrapper"),a=n.dataset.salesLat?parseFloat(n.dataset.salesLat):null,i=n.dataset.salesLng?parseFloat(n.dataset.salesLng):null,s=n.dataset.villageLat?parseFloat(n.dataset.villageLat):null,r=n.dataset.villageLng?parseFloat(n.dataset.villageLng):null,m=n.dataset.salesInformationCentreLabel?n.dataset.salesInformationCentreLabel:"",u=n.dataset.displayVillageLabel?n.dataset.displayVillageLabel:"";document.querySelectorAll(".stats-block").forEach((n=>{const g=n.classList.contains("show-map-in-footer")?"community-numerical-stats-map-footer":"community-numerical-stats-map";if(g){o=L.map(g,{zoomControl:!1,attributionControl:!1,scrollWheelZoom:!0,doubleClickZoom:!0,boxZoom:!0,keyboard:!0,dragging:!0,touchZoom:!0,minZoom:10,maxZoom:19}).setView([0,0],15),o.getPane("markerPane")&&(o.getPane("markerPane").style.zIndex=650),o.getPane("overlayPane")&&(o.getPane("overlayPane").style.zIndex=400),L.control.zoom({position:"bottomright"}).addTo(o),L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19}).addTo(o);let n=null;c.coordinates&&""!==c.coordinates&&0<c.coordinates.length&&(n=L.polygon(c.coordinates,{fillColor:c.fillColor,fillOpacity:c.fillOpacity,color:c.borderColor,opacity:c.borderOpacity,weight:c.borderWidth}).addTo(o),n.bringToBack(),o.fitBounds(n.getBounds(),{padding:[50,50]}));const f=L.latLngBounds();let h=!1;const y=[a&&i?{lat:a,lng:i,title:m}:null,s&&r?{lat:s,lng:r,title:u}:null].filter(Boolean),v=jQuery(".stats-block").attr("data-marker-img");if(y.forEach((function(t){const n=function(t,e){const n=document.createElement("div");n.style.cssText="\n\t\twidth: 65px;\n\t\theight: 65px;\n\t\tcursor: pointer;\n\t\ttransition: transform 0.2s ease;\n\t",n.innerHTML=e?`<img src="${e}" width="65" height="65" style="width: 100%; height: 100%; object-fit: contain;">`:d,n.addEventListener("mouseenter",(function(){this.style.transform="scale(1.1)"})),n.addEventListener("mouseleave",(function(){this.style.transform="scale(1)"}));const a=L.divIcon({html:n,className:"custom-initial-marker",iconSize:[65,65],iconAnchor:[32.5,65],popupAnchor:[0,-65]}),i=L.marker([t.lat,t.lng],{icon:a,title:t.title}).addTo(o);return t.title&&i.bindPopup(`<div style="font-weight: bold; color: ${l}; font-size: 17px;">${t.title}</div>`),i.on("click",(function(){o.setView([t.lat,t.lng],15)})),i}(t,v);f.extend([t.lat,t.lng]),e.push(n)})),t.forEach((function(t){const o=p(t);e.push(o)})),setTimeout((function(){e.forEach((function(t){t&&"function"==typeof t.bringToFront&&t.bringToFront()})),o&&"function"==typeof o.invalidateSize&&o.invalidateSize()}),100),h){const t=f.getCenter();o.setView(t,15,{animate:!1,duration:1.5,easeLinearity:.25}),e.length>0&&setTimeout((()=>{e[0].openPopup()}),100)}else if(y.length>0){const t=y[0],n=[t.lat,t.lng];o.setView(n,15,{animate:!1,duration:1}),e.length>0&&setTimeout((()=>{e[0].openPopup()}),100)}}})),jQuery("#community-numerical-stats-map").removeClass("loading")}function p(t){const e=document.createElement("div");e.innerHTML=d,e.style.cssText="\n\t\twidth: 35px;\n\t\theight: 35px;\n\t\tcursor: pointer;\n\t\ttransition: transform 0.2s ease;\n\t",e.addEventListener("mouseenter",(function(){this.style.transform="scale(1.1)"})),e.addEventListener("mouseleave",(function(){this.style.transform="scale(1)"}));const n=L.divIcon({html:e,className:"custom-other-location-marker",iconSize:[35,35],iconAnchor:[17.5,35],popupAnchor:[0,-35]}),a=L.marker([t.lat,t.lng],{icon:n,title:t.title}).addTo(o);return t.title&&a.bindPopup(`<div style="font-weight: bold; color: ${l}; font-size: 15px;">${t.title}</div>`),a.on("click",(function(){t.title&&a.openPopup()})),a}!function(n){"use strict";window.addEventListener("load",(function(){!function(){if(!document.querySelector('link[href*="leaflet"]')){const t=document.createElement("link");t.rel="stylesheet",t.href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css",document.head.appendChild(t)}if("undefined"==typeof L){const t=document.createElement("script");t.src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js",t.onload=function(){m()},document.head.appendChild(t)}else m()}()})),n("#community-numerical-stats-map").addClass("loading"),n(".stats-item-wrapper .stats-item-single").each((function(){const e=n(this).find(".stat-item"),o=parseFloat(e.attr("data-lat")),a=parseFloat(e.attr("data-lng"));let i=e.find(".stat-heading").text()+" "+e.find(".stat-content").text();i=i.trim(),isFinite(o)&&isFinite(a)&&t.push({lat:o,lng:a,title:i})}));let a=null;n(".stat-item").on("click",(function(){const t=parseFloat(n(this).attr("data-lat")),i=parseFloat(n(this).attr("data-lng")),s=n(this).attr("data-address")||"";n(".stat-item").removeClass("active"),n(this).addClass("active");const r=s;if(!isFinite(t)||!isFinite(i))return void console.error("Invalid coordinates:",t,i);if(a&&a.lat===t&&a.lng===i&&a.name===r)return void console.log("Same location clicked, doing nothing:",r);console.log("Map marker clicked for:",r),console.log("Coordinates:",t,i),a={lat:t,lng:i,name:r};const c=o;if(c){c.flyTo([t,i],17,{duration:1.5,easeLinearity:.25});let o=function(t,o,n){for(let n=0;n<e.length;n++)if(e[n]&&Math.abs(e[n].getLatLng().lat-t)<1e-4&&Math.abs(e[n].getLatLng().lng-o)<1e-4)return e[n];const a=p({name:n,lat:t,lng:o});return e.push(a),a&&"function"==typeof a.bringToFront&&a.bringToFront(),console.log("Created new marker for:",n),a}(t,i,r);setTimeout((()=>{o&&o.openPopup?(o.openPopup(),console.log("Opened popup for:",r)):(console.error("Marker not available for:",r),L.popup().setLatLng([t,i]).setContent(`<div style="font-weight: bold; color: ${l}; font-size: 15px;">${r}</div>`).openOn(c))}),800)}}));const i=n(".stats-item-wrapper");function s(){n(window).width()<=1300&&!i.hasClass("slick-initialized")?i.slick({infinite:!0,slidesToShow:5,slidesToScroll:1,adaptiveHeight:!0,dots:!0,arrows:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:4,slidesToScroll:1,infinite:!0,dots:!0}},{breakpoint:600,settings:{slidesToShow:3,slidesToScroll:1}}]}):n(window).width()>1300&&i.hasClass("slick-initialized")&&(i.slick("unslick"),i.removeClass("slick-slider"))}s(),n(window).on("resize orientationchange",function(t){let e;return function(){clearTimeout(e),e=setTimeout(t,200)}}(s))}(jQuery)})();;
!function(e){"use strict";var t=[];function n(t){if(!e(".peet-custom-form-block").length)return;let n=null;if(n=t?"string"==typeof t?e(t):t:e(".lot-filter-popup-outer.enquire .contact-form"),!n.length)return;const a=n.closest(".lot-filter-popup-outer.enquire, .peet-custom-form-block"),o=a.length?a:n.parent();n[0]&&n[0].reset(),o.find(".wp-block-contact-form-heading").show(),o.find(".contact-form-message").html("");const d=o.find(".suburb-display");d.length&&d.text("Please select a suburb from the dropdown.");const l=o.find(".contact-form-step1");l.length&&l.show();const i=o.find(".contact-form-step2");i.length&&i.hide()}function a(e,t=!1){const n=document.createElement("ul"),a=t?"lb-expanded-container__imglist":"lb-right-container__imglist";n.classList.add(a);const o=e.length;for(let a=0;a<o;a++){const o=document.createElement("li");if("video"===e[a].type){const t=document.createElement("video");t.setAttribute("controls","");const n=document.createElement("source");n.src=e[a].url,n.type=e[a].mime_type,t.appendChild(n),o.appendChild(t)}else{const n=document.createElement("img");n.src=t?e[a].url+"?h=400":e[a].url+"?h=250",n.alt=e[a].alt,o.appendChild(n)}n.appendChild(o)}return n}function o(t,n,a){var o=a.data("form-id");let l="";if(l=e(o&&""!==o?'.lot-filter-popup-outer.enquire .form-wrapper[data-form-id="'+o+'"] .contact-form':'.lot-filter-popup-outer.enquire .form-wrapper[data-form-name="product-enquiry"] .contact-form'),l.length){var i=l.find(".pdf-download-wrap");if(i.length){if(i.find(".pdf-download.dynamic-pdf").remove(),n&&""!==n){var c=d("Stage Plan",n);i[0].appendChild(c)}if(t&&""!==t){var r=d("Brochure",t);i[0].appendChild(r)}}}}function d(e,t){var n=document.createElement("div");n.className="field-wrap pdf-download dynamic-pdf";var a=document.createElement("div");a.className="field-container";var o=document.createElement("a");if(o.className="pdf-title disabled",o.href="javascript:void(0)",o.textContent=e,t&&void 0!==t&&""!==t){t=t.toString();var d=document.createElement("input");d.type="hidden",d.name="pdf_downloads[]",d.value=e+"|"+t}return a.appendChild(o),a.appendChild(d),n.appendChild(a),n}e(document).on("click",".lot-main.lot_layout2 .lot-btn-full .btn-main",(function(){console.log("clicked",this,e(".lot-filter-popup-outer.tabs-popup"));let n=e(this).parents(".lot-main").data("lot-id");null!==n&&""!==n&&(function(n){e("body").addClass("modal-loading"),e.ajax({type:"POST",url:siteConfig.ajaxUrl,data:{action:"get_package_details",nonce:siteConfig.ajax_nonce,packageId:n},success:function(n){if(e(".lb-right__container .lb-right__cards").empty(),n.success&&0<n.data.length){let o=(t=n.data).length;if(0<o){let n="",d=e(this).data("index");d=d||1,e(".lb-expand__modal").empty();const l=document.createElement("div");l.classList.add("lot-filter-popup-outer","tabs-popup");const i=document.createElement("div");i.classList.add("lot-filter-popup","tabs-popup");const c=document.createElement("div");c.classList.add("filter-main-wrapper-header");const r=document.createElement("div");r.classList.add("tab-inner");for(let e=0;e<o;e++){const n=document.createElement("div");let o=d===e+1?"tab_content active":"tab_content";n.setAttribute("class",o);const l=document.createElement("div");l.classList.add("tabs-popup-strip");const i=document.createElement("div");if(i.classList.add("tabs-popup-img"),t[e].cardInfo.imageGalleryDefault&&0<t[e].cardInfo.imageGalleryDefault.length&&t[e].cardInfo.imageGalleryDefault&&0<t[e].cardInfo.imageGalleryDefault.length){const n=document.createElement("div");n.setAttribute("class","lb-expanded-container__media-slider default-theme active");const o=a(t[e].cardInfo.imageGalleryDefault,!0);n.appendChild(o),i.appendChild(n)}if(("Apartments"===t[e].product||"Townhouses"===t[e].product||"House and Land Packages"===t[e].product)&&t[e].cardInfo.floorPlan&&""!==t[e].cardInfo.floorPlan){const n=document.createElement("a");n.classList.add("btn","button-outlined","btn-tab-floorplan"),n.textContent="View Floorplan",n.target="_blank",n.href=t[e].cardInfo.floorPlan,n.setAttribute("title","Floor plan"),l.appendChild(n)}const c=document.createElement("div");c.classList.add("tabs-popup-content-wrap");const s=document.createElement("div");s.classList.add("tabs-popup-content");const p=document.createElement("div");p.classList.add("tabs-popup-info");const u=document.createElement("div");u.classList.add("tabs-main-info-title");const m=document.createElement("h4");if(m.classList.add("tabs-popup-title"),m.textContent=t[e].cardInfo.designName,u.appendChild(m),t[e].cardInfo.builderLogo&&""!==t[e].cardInfo.builderLogo){const n=document.createElement("div");n.classList.add("builder-img");const a=document.createElement("img");if(a.src=t[e].cardInfo.builderLogo+"?h=100",a.alt="Builder Logo",t[e].cardInfo.builderLink&&""!==t[e].cardInfo.builderLink){const o=document.createElement("a");o.href=t[e].cardInfo.builderLink,o.target="_blank",o.appendChild(a),n.appendChild(o)}else n.appendChild(a);u.appendChild(n)}s.appendChild(u);const f=document.createElement("div");f.classList.add("tabs-main-info-top");const h=document.createElement("h5");h.classList.add("content-price"),h.textContent=t[e].cardInfo.lotPrice,f.appendChild(h),p.appendChild(f);const b=document.createElement("div");b.classList.add("tabs__imgbtm");const g=document.createElement("div");g.classList.add("tabs__imgbtm__infoIcons","lot-icons");const C=document.createElement("div");if(C.classList.add("tabs__imgbtmList"),g.appendChild(C),p.appendChild(b),document.createElement("div").classList.add("lot-icons"),t[e].cardInfo.bedrooms&&""!==t[e].cardInfo.bedrooms){const n=document.createElement("span");n.classList.add("icon","icon-bed"),n.textContent=t[e].cardInfo.bedrooms,C.appendChild(n)}if(t[e].cardInfo.bathrooms&&""!==t[e].cardInfo.bathrooms){const n=document.createElement("span");n.classList.add("icon","icon-bath"),n.textContent=t[e].cardInfo.bathrooms,C.appendChild(n)}if(t[e].cardInfo.garage&&""!==t[e].cardInfo.garage){const n=document.createElement("span");n.classList.add("icon","icon-car"),n.textContent=t[e].cardInfo.garage,C.appendChild(n)}if(t[e].cardInfo.storeys&&""!==t[e].cardInfo.storeys){const n=document.createElement("span");n.classList.add("icon","icon-storeys"),n.textContent=t[e].cardInfo.storeys,C.appendChild(n)}b.appendChild(g);const v=document.createElement("div");v.classList.add("content-wrapper"),v.innerHTML=t[e].cardInfo.description,p.appendChild(v);const L=document.createElement("div");if(L.classList.add("tabs-popup-btns-info"),"Apartments"===t[e].product||"Townhouses"===t[e].product||"House and Land Packages"===t[e].product){const e=document.createElement("div");e.classList.add("btns-wrap","half-btn"),L.appendChild(e)}if(p.appendChild(L),s.appendChild(p),c.appendChild(s),t[e].cardInfo.floorPlan&&""!==t[e].cardInfo.floorPlan){const n=document.createElement("div");n.classList.add("floorplan-wrapper");const a=document.createElement("a");a.classList.add("link-floorplan"),a.textContent="Floorplan",a.target="_blank",a.href=t[e].cardInfo.floorPlan,n.appendChild(a);const o=document.createElement("img");o.classList.add("floorplan-image"),o.src=t[e].cardInfo.floorPlan,o.alt="Floorplan Image",n.appendChild(o),c.appendChild(n)}n.appendChild(i),n.appendChild(c);const E=document.createElement("div");if(E.classList.add("tabs-previously-viewed-all-btns"),t[e].cardInfo.recentViewed&&0<t[e].cardInfo.recentViewed.length){const n=document.createElement("div");n.classList.add("tabs-previously-viewed");const a=document.createElement("h4");a.classList.add("tabs-previously-viewed-title"),a.innerText="Lots available for this home design";const o=document.createElement("div");o.classList.add("tabs-previously-viewed-wrapper");const d=t[e].cardInfo.recentViewed.length;if(d>0){const e=document.createElement("ul");e.classList.add("tabs-previously-viewed-listhead");const t=document.createElement("li");t.textContent="Availability",e.appendChild(t);const n=document.createElement("li");n.textContent="Price",e.appendChild(n);const a=document.createElement("li");a.textContent="Lot Size",e.appendChild(a);const d=document.createElement("li");e.appendChild(d),o.appendChild(e)}for(let n=0;n<d;n++){const a=document.createElement("ul");a.classList.add("tabs-previously-viewed-list");const d=document.createElement("li");d.classList.add("lb-lot__bottom-item");const l=document.createElement("span");l.classList.add("lb-lot__status"),t[e].cardInfo.recentViewed[n].lotStatus&&""!==t[e].cardInfo.recentViewed[n].lotStatus&&l.classList.add(t[e].cardInfo.recentViewed[n].lotStatus);const i=document.createTextNode(t[e].cardInfo.recentViewed[n].lotName);d.appendChild(l),d.appendChild(i),a.appendChild(d);const c=document.createElement("li");c.classList.add("lb-lot__bottom-item"),t[e].cardInfo.recentViewed[n].lotPrice&&""!==t[e].cardInfo.recentViewed[n].lotPrice&&(c.textContent=t[e].cardInfo.recentViewed[n].lotPrice),a.appendChild(c);const r=document.createElement("li");r.classList.add("lb-lot__bottom-item");const s=document.createElement("sup");s.textContent="2","Apartments"===t[e].cardInfo.recentViewed[n].productType||"Townhouses"===t[e].cardInfo.recentViewed[n].productType||"House and Land Packages"===t[e].cardInfo.recentViewed[n].productType?t[e].cardInfo.recentViewed[n].floorSize&&""!==t[e].cardInfo.recentViewed[n].floorSize&&(r.textContent=t[e].cardInfo.recentViewed[n].floorSize,r.appendChild(s)):t[e].cardInfo.recentViewed[n].lotSize&&""!==t[e].cardInfo.recentViewed[n].lotSize&&(r.textContent=t[e].cardInfo.recentViewed[n].lotSize,r.appendChild(s)),a.appendChild(r);const p=document.createElement("li");if(p.classList.add("lb-lot__bottom-item"),t[e].cardInfo.recentViewed[n].viewLotLink&&""!==t[e].cardInfo.recentViewed[n].viewLotLink){const a=document.createElement("a");a.textContent="View Lot",a.target="_blank",a.href=t[e].cardInfo.recentViewed[n].viewLotLink,a.classList.add("primary-btn","btn"),a.setAttribute("data-lot-number",t[e].cardInfo.recentViewed[n].lotNumber),p.appendChild(a)}a.appendChild(p),o.appendChild(a)}E.appendChild(a),n.appendChild(o),E.appendChild(n)}const w=document.createElement("div");w.classList.add("tabs-popup-btns");const I=document.createElement("div");I.classList.add("btns-wrap","full-btn");const _=document.createElement("a");if(_.classList.add("btn","btn-tab-enquire"),_.textContent="Explore For Sale",_.target="_blank",_.href=t[e].cardInfo.forSalePageLink,_.setAttribute("data-package-id",t[e].packageID),_.setAttribute("data-web-title",t[e].cardInfo.designName+" | "+t[e].cardInfo.listPrice),I.appendChild(_),t[e].cardInfo.displayVillageAddress,t[e].cardInfo.displayVillageAddress&&""!==t[e].cardInfo.displayVillageAddress){const n=document.createElement("a");n.classList.add("btn","btn-tab-visitus","btn-outlined"),n.textContent="Visit us",n.target="_blank",n.href="https://maps.google.com/maps?q="+t[e].cardInfo.displayVillageAddress,I.appendChild(n)}w.appendChild(I),E.appendChild(w),c.appendChild(E),r.appendChild(n)}n=r;const s=document.createElement("span");s.classList.add("filter-close");const p=document.createElement("i");p.classList.add("close-icon"),s.appendChild(p),s.appendChild(document.createTextNode("Close")),c.appendChild(s);const u=document.createElement("div");u.classList.add("filter-main-wrapper");const m=document.createElement("div");m.classList.add("tab_container"),m.appendChild(n),u.appendChild(m),i.appendChild(c),i.appendChild(u),l.appendChild(i),e(".lb-expand__modal").get(0).appendChild(l),e("body").addClass("modal-open"),0<e(".tab_content.active .lb-expanded-container__media-slider").length&&e(".tab_content.active .lb-expanded-container__imglist").slick({slidesToShow:1,slidesToScroll:1,dots:!0,arrows:!0})}}e("body").removeClass("modal-loading")}})}(n),e("body").addClass("modal-open"),e(".lot-filter-popup-outer.tabs-popup").show())})),e(document).on("click",".lot-filter-popup .filter-close, .lot-filter-popup .filter-back",(function(){e(this).parents(".lot-filter-popup-outer").hide(),0===jQuery(".lot-filter-popup-outer.tabs-popup:visible").length&&e("body").removeClass("modal-open"),n(e(".lot-filter-popup-outer.enquire .contact-form"))})),e(document).on("click",".lot-enquire-btn-block.lot-enquire-btn",(function(t){t.stopPropagation();const n=e(this);let a=n.data("pdf-id"),d=n.data("stage-plan-id");const l=n.data("lot-id"),i=n.data("product-type")||"",c=n.data("pid")||"",r=n.data("form-id")||"",s=n.data("enquiry-form-title")+" Enquiry"||0;e(".lot-filter-popup-outer.enquire .wp-block-contact-form-heading .product-enquiry-heading").text(s),e("body").addClass("modal-open"),e(".lot-filter-popup-outer.enquire").show(),e(".lot-filter-popup-outer.enquire .form-wrapper").hide(),r&&void 0!==r?e('.lot-filter-popup-outer.enquire .form-wrapper[data-form-id="'+r+'"]').show():e('.lot-filter-popup-outer.enquire .form-wrapper[data-form-name="product-enquiry"]').show();const p=function(e){e&&n.attr("data-pdf-id",e)};a&&""!==a&&void 0!==a?(p(a),o(a,d,n)):(n.addClass("disabled"),e.ajax({url:siteConfig.ajaxUrl,method:"POST",data:{action:"crm_generate_pdf",nonce:siteConfig.ajax_nonce,pid:c,lot_id:l,product_type:i},success(e){n.removeClass("disabled"),e&&e.success&&e.data&&e.data.pdf_url&&(a=e.data.pdf_id,p(a),o(a,d,n))},error(){n.removeClass("disabled")}}))})),e(document).on("click",(function(t){const a=e(".lot-filter-popup.tabs-popup:visible"),o=e(".lot-filter-popup.enquire-form");!o.is(":visible")||a.is(t.target)||0!==a.has(t.target).length||o.is(t.target)||0!==o.has(t.target).length?0!==e(".fancybox__container:visible").length||0!==e(".lot-filter-popup-outer.filter-popup:visible").length||a.is(t.target)||0!==a.has(t.target).length||o.is(t.target)||0!==o.has(t.target).length?e(".lot-filter-popup-outer.filter-popup").is(":visible")&&!e(".lot-filter-popup").is(t.target)&&0===e(".lot-filter-popup").has(t.target).length&&(e(".lot-filter-popup-outer.filter-popup").hide(),e("body").removeClass("modal-open")):(a.parent().hide(),e("body").removeClass("modal-open")):(o.parent().hide(),0===a.length&&(e("body").removeClass("modal-open"),n()))}))}(jQuery),jQuery(document).ready((function(e){e(".community-open-hours-details").on("click",(function(){e(this).toggleClass("active")}))}));;
!function(e){"use strict";let i=!0,l=!1,t=!1,o=0,n=!1;var r=window.innerWidth<=768;const s=e(".key-selling-slider__wrapper.slick-slider");if(e(window).width()>992){e(window).on("scroll",(function(){var r=e("header .community-menu").outerHeight(),s=Math.round(e(".key-selling-slider__wrapper").offset().top)-r,c=Math.round(s+e(".key-selling-slider__wrapper").outerHeight()),d=Math.round(e(window).scrollTop()),u=o>d;t=s<=d&&c>d;const a=e(".key-selling-slider__wrapper.slick-slider"),k=a.slick("slickCurrentSlide"),w=a.slick("getSlick").slideCount;k===w-1?(i=!1,l=!0):0===k&&(i=!0,l=!1),!t&&u&&(n=!1),!t||l||i||k===w-1||(e("html, body").stop().animate({scrollTop:s+r},10),n=!0),o=d}));var c=null,d=null;s.on("wheel",(function(i){if(!t)return;const l=s.slick("slickCurrentSlide"),o=s.slick("getSlick").slideCount;i.originalEvent.deltaY<0&&0===l||i.originalEvent.deltaY>0&&l===o-1||(i.preventDefault(),clearTimeout(d),d=setTimeout((function(){c=0}),50),c||(c=1,i.originalEvent.deltaY<0?e(this).slick("slickPrev"):e(this).slick("slickNext")))})),e(window).on("scroll",(function(){var t=Math.round(e(window).scrollTop()),o=e(".key-selling-slider__wrapper").offset().top;(t>o+e(".key-selling-slider__wrapper").outerHeight()||t+e(window).height()<o)&&(s.slick("slickGoTo",0),i=!0,l=!1,n=!1)}))}if(r){let r=0,c=0,d=0;s.on("touchstart",(function(e){t&&(r=e.originalEvent.touches[0].clientY)})),s.on("touchmove",(function(i){if(!t||0===r)return;c=i.originalEvent.touches[0].clientY,d=r-c;const l=s.slick("slickCurrentSlide"),o=s.slick("getSlick").slideCount;d<0&&0===l||d>0&&l===o-1||(i.preventDefault(),d>0?e(this).slick("slickNext"):d<0&&e(this).slick("slickPrev"),r=c)})),e(window).on("scroll",(function(){var t=Math.round(e(window).scrollTop()),o=e(".key-selling-slider__wrapper").offset().top;(t>o+e(".key-selling-slider__wrapper").outerHeight()||t+e(window).height()<o)&&(s.slick("slickGoTo",0),i=!0,l=!1,n=!1)})),e(window).on("scroll",(function(){var r=e("header .community-menu").outerHeight(),c=Math.round(e(".key-selling-slider__wrapper").offset().top)-r,d=Math.round(c+e(".key-selling-slider__wrapper").outerHeight()),u=Math.round(e(window).scrollTop()),a=o>u;t=c<=u&&d>u;const k=s.slick("slickCurrentSlide"),w=s.slick("getSlick").slideCount;k===w-1?(i=!1,l=!0):0===k&&(i=!0,l=!1),!t&&a&&(n=!1),!t||l||i||k===w-1||(e("html, body").stop().animate({scrollTop:c+r},10),n=!0),o=u}))}}(jQuery);;
!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"0",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});;
/**
 * File Slider.js.
 *
 * Handle Slick Slider of different blocks and apply height adjustments.
 *
 * @param $
 */
(function ($) {
	'use strict';

	// initialize Slick sliders if not already initialized
	const sliders = document.querySelectorAll('.slick-slider');

	sliders.forEach((slider) => {
		if (!slider.classList.contains('slick-initialized')) {
			$(slider).slick({
				// responsive: [
				// 	{
				// 		breakpoint: 992,
				// 		settings: {
				// 			vertical: false, // Horizontal layout below 992px
				// 			verticalSwiping: false,
				// 		}
				// 	},
				// ]
			});
		}
	});

	// Function to adjust slide heights only if window width is greater than 992
	function adjustSlideHeight() {
		// if ($(window).width() > 992) {
		var maxHeight = -1;

		// Find the maximum height of the slides
		$('.key-selling-slider__wrapper .slick-slide').each(function () {
			if ($(this).height() > maxHeight) {
				maxHeight = $(this).height() + 5;
			}
		});

		// Apply margin to vertically center smaller slides
		$('.key-selling-slider__wrapper .slick-slide').each(function () {
			if ($(this).height() < maxHeight) {
				$(this).css('margin', Math.ceil((maxHeight - $(this).height()) / 2) + 'px 0');
			} else {
				$(this).css('margin', '0'); // Reset margin for slides with max height
			}
		});
		// } else {
		// 	// Reset margins if the window width is 992 or below
		// 	$('.key-selling-slider__wrapper .slick-slide').css('margin', '0');
		// }
	}

	// Initialize sliders on page load
	$(document).ready(function () {
		adjustSlideHeight();
	});

	// Re-adjust on window resize
	$(window).resize(adjustSlideHeight);

})(jQuery);
;
document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll("iframe[data-src]"),t=e=>{e.src=e.dataset.src,e.classList.remove("lazy")};if("IntersectionObserver"in window){const r=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(t(e.target),r.unobserve(e.target))}))}));e.forEach((e=>{r.observe(e)}))}else e.forEach((e=>t(e)))}));;
/*! jQuery UI - v1.13.3 - 2024-04-26
* https://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3",
/*!
 * jQuery UI :data 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
/*!
 * jQuery UI Disable Selection 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
/*!
 * jQuery UI Focusable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
/*!
 * jQuery UI Form Reset Mixin 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
/*!
 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 */
x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),
/*!
 * jQuery UI Keycode 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
/*!
 * jQuery UI Labels 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
/*!
 * jQuery UI Position 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * https://api.jqueryui.com/position/
 */
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;n<e.collisionWidth?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;o<e.collisionHeight?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
/*!
 * jQuery UI Scroll Parent 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
/*!
 * jQuery UI Tabbable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
/*!
 * jQuery UI Unique ID 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
/*!
 * jQuery UI Widget 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})});;
