1/*! For license information please see RoutingMap.f3fd688018d5c1101322.min.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2334],{7053:function(t,e,o){o.d(e,{Z:function(){return d}});var n=o(319),i=o.n(n),r=o(4575),s=o.n(r),a=o(3913),l=o.n(a),u=o(9713),c=o.n(u),d=function(){function t(e){var o=e.orderedMarkers,n=void 0===o?[]:o,i=e.map,r=e.defaultPathOptions,a=void 0===r?{path:[],geodesic:!0,strokeColor:"#132c54",strokeWeight:2,editable:!1,strokeOpacity:0,icons:[{icon:{path:"M 0,-1 0,1",strokeOpacity:1,scale:1.5},offset:"0",repeat:"10px"}]}:r,l=e.traveledPathOptions,u=void 0===l?{path:[],geodesic:!0,strokeColor:"#cd3301",strokeOpacity:1,strokeWeight:2,editable:!1,icons:[{icon:{path:google.maps.SymbolPath.CIRCLE,strokeColor:"#ffffff",fillColor:"#ffffff",fillOpacity:1,strokeOpacity:1,strokeWeight:5},offset:"100%"}]}:l,d=e.onReady,p=void 0===d?function(){}:d;s()(this,t),c()(this,"map",null),c()(this,"overviewPath",[]),c()(this,"legSteps",[]),c()(this,"defaultPath",void 0),c()(this,"traveledPath",void 0),c()(this,"defaultPathOptions",{}),c()(this,"traveledPathOptions",{}),c()(this,"isReady",!1),c()(this,"onReadyCallback",void 0),this.map=i,this.defaultPathOptions=a,this.traveledPathOptions=u,this.onReadyCallback=p,n.length<2?console.warn("Must have at least a start and end point in order to create a route."):this.getDirections(n)}return l()(t,[{key:"getTravelMode",value:function(){var t,e,o=document.querySelector(".routing-map");if(!o)return google.maps.TravelMode.DRIVING;switch(null!==(t=null===(e=o.getAttribute("data-routing-map-travel-mode"))||void 0===e?void 0:e.toUpperCase())&&void 0!==t?t:""){default:return google.maps.TravelMode.DRIVING;case"WALKING":return google.maps.TravelMode.WALKING;case"BICYCLING":return google.maps.TravelMode.BICYCLING;case"TRANSIT":return google.maps.TravelMode.TRANSIT}}},{key:"getDirections",value:function(t){var e=this,o=t[0].getPosition(),n=t.length>2?t.slice(1,t.length-1).map((function(t){return{location:t.getPosition()}})):[],r=t[t.length-1].getPosition();(new google.maps.DirectionsService).route({origin:o,waypoints:n,destination:r,travelMode:this.getTravelMode()},(function(t,o){o===google.maps.DirectionsStatus.OK&&(e.isReady=!0,t.routes[0].legs.forEach((function(t){var o=[];t.steps.forEach((function(t){o.push.apply(o,i()(t.lat_lngs))})),e.legSteps.push(o)})),e.overviewPath=t.routes[0].overview_path,e.setPolylines(),"function"==typeof e.onReadyCallback&&e.onReadyCallback())}))}},{key:"setPolylines",value:function(){this.isReady&&(this.defaultPathOptions.path=this.overviewPath,this.defaultPathOptions.map=this.map,this.defaultPath=new google.maps.Polyline(this.defaultPathOptions),this.traveledPathOptions.path=[],this.traveledPathOptions.map=this.map,this.traveledPath=new google.maps.Polyline(this.traveledPathOptions))}},{key:"setProgress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.isReady){e*=.01;var o=[];if(t>0)for(var n=0;n<t;n++)o.push.apply(o,i()(this.legSteps[n]));if(t<this.legSteps.length){var r=this.legSteps[t],s=Math.floor((r.length-1)*e),a=r.slice(0,s);o.push.apply(o,i()(a))}this.traveledPath.setPath(o)}}}]),t}()},1914:function(t,e,o){o.r(e),o.d(e,{default:function(){return C}});var n=o(7154),i=o.n(n),r=o(319),s=o.n(r),a=o(4575),l=o.n(a),u=o(3913),c=o.n(u),d=o(1506),p=o.n(d),f=o(2205),h=o.n(f),m=o(8585),g=o.n(m),v=o(9754),w=o.n(v),y=o(9713),I=o.n(y),b=o(9),O=o(1106),P=o(4579),k=o(7053),E=o(296),V=o(1500);function M(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=w()(t);if(e){var i=w()(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return g()(this,o)}}var C=function(t){h()(o,t);var e=M(o);function o(t){var n,i=t.el,r=t.mapOptionOverrides,a=void 0===r?{}:r,u=t.mapElSelector,c=void 0===u?"[data-map]":u,d=t.listingSelector,f=void 0===d?"[data-map-listing]":d,h=t.listingImageSelector,m=void 0===h?"[data-map-listing-image]":h,g=t.padIndex,v=void 0!==g&&g;return l()(this,o),n=e.call(this,{el:i,mapOptionOverrides:a,mapElSelector:c,listingSelector:f}),I()(p()(n),"listingImageSelector",void 0),I()(p()(n),"watcher",void 0),I()(p()(n),"mapRouter",void 0),I()(p()(n),"listingElHoverClass","hover"),I()(p()(n),"listingElsWithLocation",void 0),I()(p()(n),"padIndex",void 0),n.padIndex=v,n.listingImageSelector=m,n.watcher=new b.Z,n.setUpMap(),document.addEventListener("scroll",(0,E.debounce)((function(){n.updateScrollProgress()}),10)),n.listingElsWithLocation=s()(n.listingEls).filter((function(t){return t.hasAttribute("data-has-location")})),n}return c()(o,[{key:"handleMapReady",value:function(t,e){var o=this,n=(0,V.d)("--map-marker-color",void 0,"#00f"),r=(0,V.d)("--map-marker-color-hover",void 0,"#f00");this.markers=e;var s=this.markers.length;
2s&&(this.markers.forEach((function(t,e){var a=t.point.listingEl;a.marker=t;var l=a.querySelector("[data-map-listing-icon]"),u=a.getAttribute("data-map-listing");o.padIndex&&(u=u.padStart(2,"0")),o.setUpMarkerIconAndLabel(t,n,u);var c=t.getIcon(),d=i()({},c);(0,O.setMarkerUrlColor)(c,n),t.customDefaultIcon=c,(0,O.setMarkerUrlColor)(d,r),t.customHoverIcon=d,t.customZIndex=s-e,t.setZIndex(t.customZIndex),t.addListener("mousedown",(function(){o.deselectAll(),a.classList.add(o.listingElHoverClass),t.setIcon(t.customHoverIcon),t.setZIndex(t.customZIndex+1e3),l&&(l.style.backgroundColor=r),a.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),o.basicMapInstance.updateMapBounds(),o.basicMapInstance.centerMap()})),t.addListener("mouseover",(function(){o.deselectAll(),a.classList.add(o.listingElHoverClass),t.setIcon(t.customHoverIcon),t.setZIndex(t.customZIndex+700),l&&(l.style.backgroundColor=r)})),t.addListener("mouseout",(function(){a.classList.remove(o.listingElHoverClass),t.setIcon(t.customDefaultIcon),t.setZIndex(t.customZIndex),l&&(l.style.backgroundColor=n)}))})),this.mapRouter=new k.Z({orderedMarkers:e,map:t,defaultPathOptions:O.defaultPathOptions,traveledPathOptions:O.traveledPathOptions,onReady:function(){o.updateScrollProgress()}}),this.listenerBoss.register(window,"resize",(function(){o.basicMapInstance.updateMapBounds()}))),this.listingEls.length&&this.listingEls.forEach((function(t){var e,i=null!==(e=null==t?void 0:t.marker)&&void 0!==e?e:null,s=t.querySelector("[data-map-listing-icon]");o.listenerBoss.register(t,"mouseover",(function(){o.deselectAll(),i&&(i.setIcon(i.customHoverIcon),i.setZIndex(i.customZIndex+1e3),s&&(s.style.backgroundColor=r)),o.basicMapInstance.updateMapBounds(),o.basicMapInstance.centerMap()})),o.listenerBoss.register(t,"mouseout",(function(){i&&(i.setIcon(i.customDefaultIcon),i.setZIndex(i.customZIndex)),s&&(s.style.backgroundColor=n)}))}))}},{key:"updateScrollProgress",value:function(){if(this.mapRouter&&this.listingElsWithLocation.length){var t=Math.max(document.documentElement.clientHeight,window.innerHeight||0),e=0,o=0;this.listingElsWithLocation.forEach((function(n,i){if(n&&null!==n.offsetParent){var r=n.getBoundingClientRect(),s=100*(1-(r.bottom-.5*t)/r.height);s>0&&(e=i,o=Math.min(s,100))}})),this.mapRouter.setProgress(e,o)}}},{key:"deselectAll",value:function(){var t=this;this.listingEls.length&&this.listingEls.forEach((function(e){e.classList.remove(t.listingElHoverClass);var o=e.querySelector("[data-map-listing-icon]"),n=e.getAttribute("data-color");o&&(o.style.backgroundColor=n)})),this.markers.length&&this.markers.forEach((function(t){t.setIcon(t.customDefaultIcon)}))}}]),o}(P.Z)},9:function(t,e){var o,n;o=void 0,n=function(){var t="page:load",e="scrolling",o="enter",n="enter:full",i="exit:partial",r="exit",s={top:0,bottom:0};function a(t,e){if(void 0===e&&(e="Assertion failed"),!t){if("undefined"!=typeof Error)throw new Error(e);throw e}}function l(t){return{isInViewport:t.isInViewport,isFullyInViewport:t.isFullyInViewport,isAboveViewport:t.isAboveViewport,isBelowViewport:t.isBelowViewport,isPartialOut:t.isPartialOut,isFullyOut:t.isFullyOut}}function u(t,e){t.isInViewport&&!t.wasInViewport&&(t.wasInViewport=!0,t.wasFullyOut=!1,t.emitter.emit(o,e)),t.isPartialOut&&!t.wasPartialOut&&(t.wasPartialOut=!0,t.wasFullyInViewport=!1,t.emitter.emit(i,e)),t.isFullyOut&&!t.wasFullyOut&&(t.wasFullyOut=!0,t.wasInViewport=!1,t.wasFullyInViewport=!1,t.emitter.emit(r,e)),t.isFullyInViewport&&!t.wasFullyInViewport&&(t.wasFullyInViewport=!0,t.wasPartialOut=!1,t.wasFullyOut=!1,t.emitter.emit(n,e))}function c(){return[window.pageXOffset||document.documentElement&&document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop]}function d(){return{w:window.innerWidth||document.documentElement.clientWidth,h:window.innerHeight||document.documentElement.clientHeight}}function p(t){var e=t.getBoundingClientRect(),o=document.documentElement,n=e.left+window.pageXOffset-o.clientLeft,i=e.top+window.pageYOffset-o.clientTop,r=t.offsetWidth,s=t.offsetHeight;return{width:r,height:s,top:i,bottom:i+s,right:n+r,left:n}}function f(t){return"HTMLElement"in window?!!t&&t instanceof HTMLElement:!!t&&"object"==typeof t&&1===t.nodeType&&!!t.nodeName}function h(t){return void 0===t&&(t=new Map),{all:t,on:function(e,o){var n=t.get(e);n&&n.push(o)||t.set(e,[o])},off:function(e,o){var n=t.get(e);n&&n.splice(n.indexOf(o),1)},emit:function(e,o){(t.get(e)||[]).slice().map((function(t){return t(o)})),(t.get("*")||[]).slice().map((function(t){return t(e,o)}))}}}function m(){var o={counter:0,requestAnimationId:null,lastXY:[],watching:{},viewport:d(),props:null},n=new h;function i(){var t=c(),e=t[1]>o.lastXY[1];return o.lastXY=t,{scrollX:t[0],scrollY:t[1],scrollingDown:e,scrollingUp:!e}}function r(t){var e=t.dimensions.top+t.offset.top,n=t.dimensions.top+t.offset.bottom+t.dimensions.height,i=o.lastXY[1],r=o.lastXY[1]+o.viewport.h;t.isAboveViewport=e<i,t.isBelowViewport=n>r,t.isInViewport=e<=r&&n>i,t.isFullyInViewport=e>=i&&n<=r||t.isAboveViewport&&t.isBelowViewport,t.isFullyOut=!t.isInViewport&&t.wasInViewport,t.isPartialOut=t.wasFullyInViewport&&!t.isFullyInViewport&&!t.isFullyOut}function m(){var t=function(){if(o.lastXY.join()!==c().join()){var s=i();n.emit(e,s),Object.keys(o.watching).forEach((function(t){s.target=o.watching[t].node,r(o.watching[t]),u(o.watching[t],s)}))}window.requestAnimationFrame(t)};return window.requestAnimationFrame(t)}return{initialize:function(){m();var e=function(){if("undefined"!=typeof document)switch(document.readyState){case"loading":case"interactive":break;case"complete":n.emit(t,{scrollX:o.lastXY[0],scrollY:o.lastXY[1]}),document.removeEventListener("readystatechange",e)}};document.addEventListener("readystatechange",e,!1),window.addEventListener("resize",(function(){o.viewport=d()}),!1)},watch:function(t,e){var n=f(t)?t:document.querySelector(t);a(f(n),"Couldn't find target in DOM"),a("number"==typeof e||"object"==typeof e||void 0===e,"@param `initOffset` should be number or Object or undefined!");var c,d="number"==typeof e?{top:e,bottom:e}:Object.assign(s,e),g=new h,v={node:n,offset:d,dimensions:p(n),emitter:g};return o.counter+=1,o.watching[o.counter]=v,(c=v).isInViewport=!1,c.wasInViewport=!1,c.isAboveViewport=!1,c.wasAboveViewport=!1,c.isBelowViewport=!1,c.wasBelowViewport=!1,c.isPartialOut=!1,c.wasPartialOut=!1,c.isFullyOut=!1,c.wasFullyOut=!1,c.isFullyInViewport=!1,c.wasFullyInViewport=!1,{target:n,props:l(v),update:function(){var t=i();return t.target=v.node,window.cancelAnimationFrame(o.requestAnimationId),function(t){t.isInViewport=!1,t.isAboveViewport=!1,t.isBelowViewport=!1,t.isPartialOut=!1,t.isFullyOut=!1,t.isFullyInViewport=!1}(v),v.dimensions=p(n),r(v),o.props=l(v),u(v,t),m(),this},once:function(t,e){var o=function(n){e(n),g.off(t,o)};return g.on(t,o),this},on:function(t,e){return g.on(t,e),this},off:function(t,e){return g.off(t,e),this}}},emitter:n,windowAtBottom:function(t){void 0===t&&(t=0);var e=o.lastXY[1],n=o.viewport.h;
2return t=Number.parseInt(t,10),e+n>=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight)-t},windowAtTop:function(t){return void 0===t&&(t=0),t=Number.parseInt(t,10),o.lastXY[1]<=t}}}return function(){var t=m(),e=t.initialize,o=t.watch,n=t.windowAtBottom,i=t.windowAtTop,r=t.emitter;return e(),{watch:o,on:r.on,off:r.off,emit:r.emit,windowAtBottom:n,windowAtTop:i}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(o="undefined"!=typeof globalThis?globalThis:o||self).ScrollWatcher=n(),e.Z=ScrollWatcher}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.