PageSourceSearch

https://tollguru.com/_next/static/chunks/6746.53b9c8144546d995.js

js tollguru.com collected 2026-10-02 03:32:50 UTC 27,970 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6746],{1091:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});let o=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],n=new Uint32Array(96);class i{static from(e){if(!e||void 0===e.byteLength||e.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[t,r]=new Uint8Array(e,0,2);if(219!==t)throw Error("Data does not appear to be in a KDBush format.");let n=r>>4;if(1!==n)throw Error(`Got v${n} data when expected v1.`);let s=o[15&r];if(!s)throw Error("Unrecognized array type.");let[a]=new Uint16Array(e,2,1),[l]=new Uint32Array(e,4,1);return new i(l,a,s,void 0,e)}constructor(e,t=64,r=Float64Array,n=ArrayBuffer,i){if(isNaN(e)||e<0)throw Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=r,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const s=o.indexOf(this.ArrayType),a=2*e*this.ArrayType.BYTES_PER_ELEMENT,l=e*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(s<0)throw Error(`Unexpected typed array class: ${r}.`);if(i)this.data=i,this.ids=new this.IndexArrayType(i,8,e),this.coords=new r(i,8+l+u,2*e),this._pos=2*e,this._finished=!0;else{const o=this.data=new n(8+a+l+u);this.ids=new this.IndexArrayType(o,8,e),this.coords=new r(o,8+l+u,2*e),this._pos=0,this._finished=!1,new Uint8Array(o,0,2).set([219,16+s]),new Uint16Array(o,2,1)[0]=t,new Uint32Array(o,4,1)[0]=e}}add(e,t){let r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=e,this.coords[this._pos++]=t,r}finish(){let e=this._pos>>1;if(e!==this.numItems)throw Error(`Added ${e} items when expected ${this.numItems}.`);return function e(t,r,o,n,i,a){if(i-n<=o)return;let l=n+i>>1;(function e(t,r,o,n,i,a){for(;i>n;){if(i-n>600){let s=i-n+1,l=o-n+1,u=Math.log(s),d=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*d*(s-d)/s)*(l-s/2<0?-1:1),p=Math.max(n,Math.floor(o-l*d/s+h)),c=Math.min(i,Math.floor(o+(s-l)*d/s+h));e(t,r,o,p,c,a)}let l=r[2*o+a],u=n,d=i;for(s(t,r,n,o),r[2*i+a]>l&&s(t,r,n,i);u<d;){for(s(t,r,u,d),u++,d--;r[2*u+a]<l;)u++;for(;r[2*d+a]>l;)d--}r[2*n+a]===l?s(t,r,n,d):s(t,r,++d,i),d<=o&&(n=d+1),o<=d&&(i=d-1)}})(t,r,l,n,i,a),e(t,r,o,n,l-1,1-a),e(t,r,o,l+1,i,1-a)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,r,o){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:i,coords:s,nodeSize:a}=this;n[0]=0,n[1]=i.length-1,n[2]=0;let l=3,u=[];for(;l>0;){let d=n[--l],h=n[--l],p=n[--l];if(h-p<=a){for(let n=p;n<=h;n++){let a=s[2*n],l=s[2*n+1];a>=e&&a<=r&&l>=t&&l<=o&&u.push(i[n])}continue}let c=p+h>>1,m=s[2*c],f=s[2*c+1];m>=e&&m<=r&&f>=t&&f<=o&&u.push(i[c]),(0===d?e<=m:t<=f)&&(n[l++]=p,n[l++]=c-1,n[l++]=1-d),(0===d?r>=m:o>=f)&&(n[l++]=c+1,n[l++]=h,n[l++]=1-d)}return u}within(e,t,r){let o=[];return this.withinInto(e,t,r,o),o}withinInto(e,t,r,o){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:i,coords:s,nodeSize:a}=this;n[0]=0,n[1]=i.length-1,n[2]=0;let u=3,d=0,h=r*r;for(;u>0;){let p=n[--u],c=n[--u],m=n[--u];if(c-m<=a){for(let r=m;r<=c;r++)l(s[2*r],s[2*r+1],e,t)<=h&&(o[d++]=i[r]);continue}let f=m+c>>1,g=s[2*f],y=s[2*f+1];l(g,y,e,t)<=h&&(o[d++]=i[f]),(0===p?e-r<=g:t-r<=y)&&(n[u++]=m,n[u++]=f-1,n[u++]=1-p),(0===p?e+r>=g:t+r>=y)&&(n[u++]=f+1,n[u++]=c,n[u++]=1-p)}return d}}function s(e,t,r,o){a(e,r,o),a(t,2*r,2*o),a(t,2*r+1,2*o+1)}function a(e,t,r){let o=e[t];e[t]=e[r],e[r]=o}function l(e,t,r,o){let n=e-r,i=t-o;return n*n+i*i}let u={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},d=e=>(e-.5)*0x40000000,h=e=>9313225746154785e-25*e+.5;class p{constructor(e){const t=this.options=Object.assign(Object.create(u),e);t.maxZoom=Math.min(t.maxZoom,30),t.minZoom=Math.min(t.minZoom,t.maxZoom),this.trees=Array(t.maxZoom+1),this.stride=t.reduce?7:6,this.clusterProps=[]}load(e){let{log:t,minZoom:r,maxZoom:o}=this.options;t&&console.time("total time");let n=o+1,i=`z${n}: ${e.length} points`;t&&console.time(i);let s=this.stride,a=e.length;for(let t of e){let e=t.geometry;e&&"MultiPoint"===e.type&&(a+=e.coordinates.length-1)}this.numPoints=a;let l=this.props=Array(a),u=this.coords=new Float64Array(2*a),h=null,p=new Int32Array(a*s),c=0,g=0;for(let t of e){let e=t.geometry;if(!e){g++;continue}let r=e.coordinates,o="MultiPoint"===e.type;for(let e=0,i=o?r.length:1;e<i;e++,g++){let[i,y]=o?r[e]:r,_=m(i),v=f(y);u[2*g]=_,u[2*g+1]=v,p[c]=d(_),p[c+1]=d(v),p[c+2]=n,p[c+3]=g,p[c+4]=-1,p[c+5]=1,l[g]=t.properties,void 0!==t.id&&(h||(h=Array(a)),h[g]=t.id),c+=s}}this.ids=h;let y=c===p.length?p:p.subarray(0,c),_=c/s;this.trees[o+1]=this._createTree(y,_),t&&console.timeEnd(i);let v=null;for(let e=o;e>=r;e--){let r=performance.now(),o=v||new Int32Array(_*s);v=null;let n=this._cluster(y,_,e,o);n===_?(this.trees[e]=this.trees[e+1],v=o):(this.trees[e]=this._createTree(o,n),y=o,_=n),t&&console.log(`z${e}: ${this.trees[e].numItems} clusters in ${(performance.now()-r).toFixed(2)}ms`)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let r=((e[0]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,e[1])),n=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,n=180;else if(r>n){let e=this.getClusters([r,o,180,i],t),s=this.getClusters([-180,o,n,i],t);return e.concat(s)}let s=this.trees[this._limitZoom(t)],a=s.range(d(m(r)),d(f(i)),d(m(n)),d(f(o))),l=s.data,u=[];for(let e of a)u.push(this._featureJSON(l,this.stride*e));return u}getChildren(e){let t=this._getOriginId(e),r=this._getOriginZoom(e),o="No cluster with the specified id.",n=this.trees[r];if(!n)throw Error(o);let i=n.data;if(t>=n.numItems)throw Error(o);let s=this.options.radius/(this.options.extent*Math.pow(2,r-1)),a=i[t*this.stride],l=i[t*this.stride+1],u=n.within(a,l,0x40000000*s),d=[];for(let t of u){let r=t*this.stride;i[r+4]===e&&d.push(this._featureJSON(i,r))}if(0===d.length)throw Error(o);return d}getLeaves(e,t,r){t=t||10,r=r||0;let o=[];return this._appendLeaves(o,e,t,r,0),o}getTile(e,t,r){let o=this.trees[this._limitZoom(e)],n=Math.pow(2,e),{extent:i,radius:s}=this.options,a=s/i,l=d((r-a)/n),u=d((r+1+a)/n),h={features:[]};return this._addTileFeatures(o.range(d((t-a)/n),l,d((t+1+a)/n),u),o.data,t,r,n,h),0===t&&this._addTileFeatures(o.range(d(1-a/n),l,d(1),u),o.data,n,r,n,h),t===n-1&&this._addTileFeatures(o.range(d(0),l,d(a/n),u),o.data,-1,r,n,h),h.features.length?h:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){let r=this.getChildren(e);if(t++,1!==r.length)break;e=r[0].properties.cluster_id}return t}_appendLeaves(e,t,r,o,n){for(let i of this.getChildren(t)){let t=i.properties;if(t&&t.cluster?n+t.point_count<=o?n+=t.point_count:n=this._appendLeaves(e,t.cluster_id,r,o,n):n<o?n++:e.push(i),e.length===r)break}return n}_createTree(e,t){let r=new i(t,this.options.nodeSize,Int32Array),o=this.stride;for(let n=0;n<t;n++)r.add(e[n*o],e[n*o+1]);return r.finish(),r.data=e,r}_addTileFeatures(e,t,r,o,n,i){for(let s of e){let e,a,l,u=s*this.stride,d=t[u+5]>1;if(d)e=c(t,u,this.clusterProps),a=h(t[u]),l=h(t[u+1]);else{let r=t[u+3];e=this.props[r],a=this.coords[2*r],l=this.coords[2*r+1]}let p={type:1,geometry:[[Math.round(this.options.extent*(a*n-r)),Math.round(this.options.extent*(l*n-o))]],tags:e},m=t[u+3],f=d||this.options.generateId?m:this.ids?this.ids[m]:void 0;void 0!==f&&(p.id=f),i.features.push(p)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t,r,o){let{radius:n,extent:i,reduce:s,minPoints:a,maxZoom:l}=this.options,u=n/(i*(1<<r))*0x40000000,d=l+1,h=this.trees[r+1],p=this.stride,c=t*p,m=new Uint32Array(t),f=0;for(let t=0;t<c;t+=p){if(e[t+2]<=r)continue;e[t+2]=r;let n=e[t],i=e[t+1],l=h.withinInto(n,i,u,m),c=e[t+5],g=c;for(let t=0;t<l;t++){let o=m[t]*p;e[o+2]>r&&(g+=e[o+5])}if(g>c&&g>=a){let a,u=n*c,h=i*c,y=-1,_=(t/p<<5)+(r+1)+this.numPoints;for(let o=0;o<l;o++){let n=m[o]*p;if(e[n+2]<=r)continue;e[n+2]=r;let i=e[n+5];u+=e[n]*i,h+=e[n+1]*i,e[n+4]=_,s&&(a||(a=this._map(e,t,!0),y=this.clusterProps.length,this.clusterProps.push(a)),s(a,this._map(e,n)))}e[t+4]=_,o[f]=u/g,o[f+1]=h/g,o[f+2]=d,o[f+3]=_,o[f+4]=-1,o[f+5]=g,s&&(o[f+6]=y),f+=p}else{for(let r=0;r<p;r++)o[f+r]=e[t+r];if(f+=p,g>1)for(let t=0;t<l;t++){let n=m[t]*p;if(!(e[n+2]<=r)){e[n+2]=r;for(let t=0;t<p;t++)o[f+t]=e[n+t];f+=p}}}}return f/p}_getOriginId(e){return e-this.numPoints>>5}_getOriginZoom(e){return(e-this.numPoints)%32}_featureJSON(e,t){let r=e[t+3],o=e[t+5]>1,n=o?r:this.ids?this.ids[r]:void 0,i={type:"Feature",properties:o?c(e,t,this.clusterProps):this.props[r],geometry:{type:"Point",coordinates:o?[(h(e[t])-.5)*360,g(h(e[t+1]))]:[(this.coords[2*r]-.5)*360,g(this.coords[2*r+1])]}};return void 0!==n&&(i.id=n),i}_map(e,t,r){if(e[t+5]>1){let o=this.clusterProps[e[t+6]];return r?Object.assign({},o):o}let o=this.props[e[t+3]],n=this.options.map(o);return r&&n===o?Object.assign({},n):n}}function c(e,t,r){let o=e[t+5],n=o>=1e4?`${Math.round(o/1e3)}
1k`:o>=1e3?`${Math.round(o/100)/10}k`:o,i=e[t+6];return Object.assign(-1===i?{}:Object.assign({},r[i]),{cluster:!0,cluster_id:e[t+3],point_count:o,point_count_abbreviated:n})}function m(e){return e/360+.5}function f(e){let t=Math.sin(e*Math.PI/180),r=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return r<0?0:r>1?1:r}function g(e){return 360*Math.atan(Math.exp((180-360*e)*Math.PI/180))/Math.PI-90}},19650:(e,t,r)=>{"use strict";r.d(t,{Wd:()=>k,pH:()=>A,ov:()=>Z,zD:()=>I,kL:()=>z,Ay:()=>w});var o=r(78240);let n=o.createContext(null);function i(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!i(e[r],t[r]))return!1;return!0}if(Array.isArray(t))return!1;if("object"==typeof e&&"object"==typeof t){let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let o of r)if(!t.hasOwnProperty(o)||!i(e[o],t[o]))return!1;return!0}return!1}function s(e){return{center:e.getCenter(),zoom:e.getZoom(),bearing:e.getBearing(),pitch:e.getPitch(),elevation:e.getCenterElevation?.()??0,padding:e.getPadding()}}function a(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function l(e,t){let r=t.viewState||t,o={};return"longitude"in r&&"latitude"in r&&(r.longitude!==e.center.lng||r.latitude!==e.center.lat)&&(o.center=new e.center.constructor(r.longitude,r.latitude)),"zoom"in r&&r.zoom!==e.zoom&&(o.zoom=r.zoom),"bearing"in r&&r.bearing!==e.bearing&&(o.bearing=r.bearing),"pitch"in r&&r.pitch!==e.pitch&&(o.pitch=r.pitch),r.padding&&e.padding&&!i(r.padding,e.padding)&&(o.padding=r.padding),o}function u(e,t,r,o){return(e.min!==t.min||e.max!==t.max)&&(e.min>=t.min?(e.max!==t.max&&o(e.max),e.min!==t.min&&r(e.min)):(e.min!==t.min&&r(e.min),e.max!==t.max&&o(e.max)),!0)}let d=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function h(e){if(!e)return null;if("string"==typeof e||("toJS"in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let r of e.layers)t[r.id]=r;let r=e.layers.map(e=>{let r=null;"interactive"in e&&(r=Object.assign({},e),delete r.interactive);let o=t[e.ref];if(o)for(let t of(r=r||Object.assign({},e),delete r.ref,d))t in o&&(r[t]=o[t]);return r||e});return{...e,layers:r}}let p={version:8,sources:{},layers:[]},c={minZoom:0,maxZoom:22,minPitch:0,maxPitch:85,maxBounds:[-180,-85.051129,180,85.051129],projection:"mercator",renderWorldCopies:!0},m={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},f={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},g={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},y=["maxBounds","projection","renderWorldCopies"],_=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class v{constructor(e,t,r){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{let t=this.props[g[e.type]];t?t(e):"error"===e.type&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||a(s(this._map));let t=this.props[f[e.type]];t&&t(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=a(e),l(e,this.props)),this._onPointerEvent=e=>{("mousemove"===e.type||"mouseout"===e.type)&&this._updateHover(e);let t=this.props[m[e.type]];t&&(this.props.interactiveLayerIds&&"mouseover"!==e.type&&"mouseout"!==e.type&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),t(e),delete e.features)},this._MapClass=e,this.props=t,this._initialize(r)}get map(){return this._map}setProps(e){let t=this.props;this.props=e;let r=this._updateSettings(e,t),o=this._updateSize(e),n=this._updateViewState(e);this._updateStyle(e,t),this._updateStyleComponents(e),this._updateHandlers(e,t),(r||o||n&&!this._map.isMoving())&&this.redraw()}static reuse(e,t){let r=v.savedMaps.pop();if(!r)return null;let o=r.map,n=o.getContainer();for(t.className=n.className;n.childNodes.length>0;)t.appendChild(n.childNodes[0]);o._container=t;let i=o._resizeObserver;i&&(i.disconnect(),i.observe(t)),r.setProps({...e,styleDiffing:!1}),o.resize();let{initialViewState:s}=e;return s&&(s.bounds?o.fitBounds(s.bounds,{...s.fitBoundsOptions,duration:0}):r._updateViewState(s)),o.isStyleLoaded()?o.fire("load"):o.once("style.load",()=>o.fire("load")),o._update(),r}_initialize(e){let{props:t}=this,{mapStyle:r=p}=t,o={...t,...t.initialViewState,container:e,style:h(r)},n=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[n.longitude||0,n.latitude||0],zoom:n.zoom||0,pitch:n.pitch||0,bearing:n.bearing||0}),t.gl){let e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}let i=new this._MapClass(o);for(let e in n.padding&&i.setPadding(n.padding),t.cursor&&(i.getCanvas().style.cursor=t.cursor),"function"==typeof i.setTransformCameraUpdate?i.setTransformCameraUpdate(this._onCameraUpdate):i.transformCameraUpdate=this._onCameraUpdate,i.on("style.load",()=>
1{this._styleComponents={light:i.getLight(),sky:i.getSky(),projection:i.getProjection?.(),terrain:i.getTerrain()},this._updateStyleComponents(this.props)}),i.on("sourcedata",()=>{this._updateStyleComponents(this.props)}),m)i.on(e,this._onPointerEvent);for(let e in f)i.on(e,this._onCameraEvent);for(let e in g)i.on(e,this._onEvent);this._map=i}recycle(){let e=this.map.getContainer().querySelector("[mapboxgl-children]");e?.remove(),v.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let e=this._map;e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_updateSize(e){let{viewState:t}=e;if(t){let e=this._map,r=e.getCanvas();if(t.width!==r.clientWidth||t.height!==r.clientHeight)return e.resize(),!0}return!1}_updateViewState(e){let t=this._map,r=s(t);if(!t.isMoving()){let o=l(r,e);if(Object.keys(o).length>0)return this._internalUpdate=!0,t.jumpTo(o),this._internalUpdate=!1,!0}return!1}_updateConstraints(e,t){var r,o;let n=(r=this._map,u({min:e.minZoom??c.minZoom,max:e.maxZoom??c.maxZoom},{min:t.minZoom??c.minZoom,max:t.maxZoom??c.maxZoom},e=>r.setMinZoom(e),e=>r.setMaxZoom(e))),i=(o=this._map,u({min:e.minPitch??c.minPitch,max:e.maxPitch??c.maxPitch},{min:t.minPitch??c.minPitch,max:t.maxPitch??c.maxPitch},e=>o.setMinPitch(e),e=>o.setMaxPitch(e)));return n||i}_updateSettings(e,t){let r=this._map,o=!1;for(let n of y)if((n in e||n in t)&&!i(e[n],t[n])){o=!0;let t=n in e?e[n]:c[n],i=r[`set${n[0].toUpperCase()}${n.slice(1)}`];i?.call(r,t)}let n=this._updateConstraints(e,t);return o||n}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||""),e.mapStyle!==t.mapStyle){let{mapStyle:t=p,styleDiffing:r=!0}=e,o={diff:r};"localIdeographFontFamily"in e&&(o.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(h(t),o)}}_updateStyleComponents({light:e,projection:t,sky:r,terrain:o}){let n=this._map,s=this._styleComponents;n.style?._loaded&&(e&&!i(e,s.light)&&(s.light=e,n.setLight(e)),t&&!i(t,s.projection)&&t!==s.projection?.type&&(s.projection="string"==typeof t?{type:t}:t,n.setProjection?.(s.projection)),r&&!i(r,s.sky)&&(s.sky=r,n.setSky(r)),void 0!==o&&!i(o,s.terrain)&&(!o||n.getSource(o.source))&&(s.terrain=o,n.setTerrain(o)))}_updateHandlers(e,t){let r=this._map;for(let o of _){let n=e[o]??!0;i(n,t[o]??!0)||(n?r[o].enable(n):r[o].disable())}}_queryRenderedFeatures(e){let t=this._map,{interactiveLayerIds:r=[]}=this.props;try{return t.queryRenderedFeatures(e,{layers:r.filter(t.getLayer.bind(t))})}catch{return[]}}_updateHover(e){let{props:t}=this;if(t.interactiveLayerIds&&(t.onMouseMove||t.onMouseEnter||t.onMouseLeave)){let t=e.type,r=this._hoveredFeatures?.length>0,o=this._queryRenderedFeatures(e.point),n=o.length>0;!n&&r&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=o,n&&!r&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=t}else this._hoveredFeatures=null}}v.savedMaps=[];let x=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"],M="u">typeof document?o.useLayoutEffect:o.useEffect,E=o.createContext(null),w=o.forwardRef(function(e,t){let i=(0,o.useContext)(n),[s,a]=(0,o.useState)(null),l=(0,o.useRef)(),{current:u}=(0,o.useRef)({mapLib:null,map:null});(0,o.useEffect)(()=>{let t,o=e.mapLib,n=!0;return Promise.resolve(o||Promise.resolve().then(r.bind(r,27244))).then(r=>{if(!n)return;if(!r)throw Error("Invalid mapLib");let o="Map"in r?r:r.default;if(!o.Map)throw Error("Invalid mapLib");!function(e,t){let{RTLTextPlugin:r,maxParallelImageRequests:o,workerCount:n,workerUrl:i}=t;if(r&&e.getRTLTextPluginStatus&&"unavailable"===e.getRTLTextPluginStatus()){let{pluginUrl:t,lazy:o=!0}="string"==typeof r?{pluginUrl:r}:r;e.setRTLTextPlugin(t,e=>{e&&console.error(e)},o)}void 0!==o&&e.setMaxParallelImageRequests(o),void 0!==n&&e.setWorkerCount(n),void 0!==i&&e.setWorkerUrl(i)}(o,e),e.reuseMaps&&(t=v.reuse(e,l.current)),t||(t=new v(o.Map,e,l.current)),u.map=function(e){if(!e)return null;let t=e.map,r={getMap:()=>t};for(let e of function(e){let t=new Set,r=e;for(;r;){for(let o of Object.getOwnPropertyNames(r))"_"!==o[0]&&"function"==typeof e[o]&&"fire"!==o&&"setEventedParent"!==o&&t.add(o);r=Object.getPrototypeOf(r)}return Array.from(t)}(t))e in r||x.includes(e)||(r[e]=t[e].bind(t));return r}
1(t),u.mapLib=o,a(t),i?.onMapMount(u.map,e.id)}).catch(t=>{let{onError:r}=e;r?r({type:"error",target:null,originalEvent:null,error:t}):console.error(t)}),()=>{n=!1,t&&(i?.onMapUnmount(e.id),e.reuseMaps?t.recycle():t.destroy())}},[]),M(()=>{s&&s.setProps(e)}),(0,o.useImperativeHandle)(t,()=>u.map,[s]);let d=(0,o.useMemo)(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]);return o.createElement("div",{id:e.id,ref:l,style:d},s&&o.createElement(E.Provider,{value:u},o.createElement("div",{"mapboxgl-children":"",style:{height:"100%"}},e.children)))});var C=r(69105);let P=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function b(e,t){if(!e||!t)return;let r=e.style;for(let e in t){let o=t[e];Number.isFinite(o)&&!P.test(e)?r[e]=`${o}px`:r[e]=o}}function L(e,t){if(e===t)return null;let r=S(e),o=S(t),n=[];for(let e of o)r.has(e)||n.push(e);for(let e of r)o.has(e)||n.push(e);return 0===n.length?null:n}function S(e){return new Set(e?e.trim().split(/\s+/):[])}let A=(0,o.memo)((0,o.forwardRef)((e,t)=>{var r;let n,i,s,a,{map:l,mapLib:u}=(0,o.useContext)(E),d=(0,o.useRef)({props:e}),h=(0,o.useMemo)(()=>{let t=!1;o.Children.forEach(e.children,e=>{e&&(t=!0)});let r={...e,element:t?document.createElement("div"):void 0},n=new u.Marker(r);return n.setLngLat([e.longitude,e.latitude]),n.getElement().addEventListener("click",e=>{d.current.props.onClick?.({type:"click",target:n,originalEvent:e})}),n.on("dragstart",e=>{e.lngLat=h.getLngLat(),d.current.props.onDragStart?.(e)}),n.on("drag",e=>{e.lngLat=h.getLngLat(),d.current.props.onDrag?.(e)}),n.on("dragend",e=>{e.lngLat=h.getLngLat(),d.current.props.onDragEnd?.(e)}),n},[]);(0,o.useEffect)(()=>(h.addTo(l.getMap()),()=>{h.remove()}),[]);let{longitude:p,latitude:c,offset:m,style:f,draggable:g=!1,popup:y=null,rotation:_=0,rotationAlignment:v="auto",pitchAlignment:x="auto"}=e;(0,o.useEffect)(()=>{b(h.getElement(),f)},[f]),(0,o.useImperativeHandle)(t,()=>h,[]);let M=d.current.props;(h.getLngLat().lng!==p||h.getLngLat().lat!==c)&&h.setLngLat([p,c]),m&&(r=h.getOffset(),n=Array.isArray(r)?r[0]:r?r.x:0,i=Array.isArray(r)?r[1]:r?r.y:0,s=Array.isArray(m)?m[0]:m?m.x:0,a=Array.isArray(m)?m[1]:m?m.y:0,n!==s||i!==a)&&h.setOffset(m),h.isDraggable()!==g&&h.setDraggable(g),h.getRotation()!==_&&h.setRotation(_),h.getRotationAlignment()!==v&&h.setRotationAlignment(v),h.getPitchAlignment()!==x&&h.setPitchAlignment(x),h.getPopup()!==y&&h.setPopup(y);let w=L(M.className,e.className);if(w)for(let e of w)h.toggleClassName(e);return d.current.props=e,(0,C.createPortal)(e.children,h.getElement())})),I=(0,o.memo)((0,o.forwardRef)((e,t)=>{let{map:r,mapLib:n}=(0,o.useContext)(E),s=(0,o.useMemo)(()=>document.createElement("div"),[]),a=(0,o.useRef)({props:e}),l=(0,o.useMemo)(()=>{let t={...e},r=new n.Popup(t);return r.setLngLat([e.longitude,e.latitude]),r.once("open",e=>{a.current.props.onOpen?.(e)}),r},[]);if((0,o.useEffect)(()=>{let e=e=>{a.current.props.onClose?.(e)};return l.on("close",e),l.setDOMContent(s).addTo(r.getMap()),()=>{l.off("close",e),l.isOpen()&&l.remove()}},[]),(0,o.useEffect)(()=>{b(l.getElement(),e.style)},[e.style]),(0,o.useImperativeHandle)(t,()=>l,[]),l.isOpen()){let t=a.current.props;(l.getLngLat().lng!==e.longitude||l.getLngLat().lat!==e.latitude)&&l.setLngLat([e.longitude,e.latitude]),e.offset&&!i(t.offset,e.offset)&&l.setOffset(e.offset),(t.anchor!==e.anchor||t.maxWidth!==e.maxWidth)&&(l.options.anchor=e.anchor,l.setMaxWidth(e.maxWidth));let r=L(t.className,e.className);if(r)for(let e of r)l.toggleClassName(e);a.current.props=e}return(0,C.createPortal)(e.children,s)}));function T(e,t,r,n){let i=(0,o.useContext)(E),s=(0,o.useMemo)(()=>e(i),[]);return(0,o.useEffect)(()=>{let e="function"==typeof t&&"function"==typeof r?t:null,o="function"==typeof r?r:"function"==typeof t?t:null,{map:a}=i;return!a.hasControl(s)&&(a.addControl(s,(n||r||t)?.position),e&&e(i)),()=>{o&&o(i),a.hasControl(s)&&a.removeControl(s)}},[]),s}(0,o.memo)(function(e){let t=T(({mapLib:t})=>new t.AttributionControl(e),{position:e.position});return(0,o.useEffect)(()=>{b(t._container,e.style)},[e.style]),null}),(0,o.memo)(function(e){let t=T(({mapLib:t})=>new t.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return(0,o.useEffect)(()=>{b(t._controlContainer,e.style)},[e.style]),null}),(0,o.memo)((0,o.forwardRef)(function(e,t){let r=(0,o.useRef)({props:e}),n=T(({mapLib:t})=>{let o=new t.GeolocateControl(e),n=o._setupUI;return o._setupUI=()=>{o._container.hasChildNodes()||n()},o.on("geolocate",e=>{r.current.props.onGeolocate?.(e)}),o.on("error",e=>{r.current.props.onError?.(e)}),o.on("outofmaxbounds",e=>{r.current.props.onOutOfMaxBounds?.(e)}),o.on("trackuserlocationstart",e=>{r.current.props.onTrackUserLocationStart?.(e)}),o.on("trackuserlocationend",e=>{r.current.props.onTrackUserLocationEnd?.(e)}),o},{position:e.position});return r.current.props=e,(0,o.useImperativeHandle)(t,()=>n,[]),(0,o.useEffect)(()=>{b(n._container,e.style)},[e.style]),null}));let Z=(0,o.memo)(function(e){let t=T(({mapLib:t})=>new t.NavigationControl(e),{position:e.position});return(0,o.useEffect)(()=>{b(t._container,e.style)},[e.style]),null});function U(e,t){if(!e)throw Error(t)}(0,o.memo)(function(e){let t=T(({mapLib:t})=>new t.ScaleControl(e),{position:e.position}),r=(0,o.useRef)(e),n=r.current;r.current=e;let{style:i}=e;return void 0!==e.maxWidth&&e.maxWidth!==n.maxWidth&&(t.options.maxWidth=e.maxWidth),void 0!==e.unit&&e.unit!==n.unit&&t.setUnit(e.unit),(0,o.useEffect)(()=>{b(t._container,i)},[i]),null}),(0,o.memo)(function(e){let t=T(({mapLib:t})=>new t.TerrainControl(e),{position:e.position});return(0,o.useEffect)(()=>{b(t._container,e.style)},[e.style]),null}),(0,o.memo)(function(e){let t=T(({mapLib:t})=>new t.LogoControl(e),{position:e.position});return(0,o.useEffect)(()=>{b(t._container,e.style)},[e.style]),null}),(0,o.memo)(function(e){let t=T(({mapLib:t})=>{let r=t.GlobeControl;if(!r)throw Error("GlobeControl is not supported by this version of MapLibre GL JS");return new r(e)},{position:e.position});return(0,o.useEffect)(()=>{b(t._container,e.style)},[e.style]),null});let O=0;function z(e){let t=(0,o.useContext)(E).map.getMap(),r=(0,o.useRef)(e),[,n]=(0,o.useState)(0),s=(0,o.useMemo)(()=>e.id||`jsx-source-${O++}`,[]);(0,o.useEffect)(()=>
1{if(t){let e=()=>setTimeout(()=>n(e=>e+1),0);return t.on("styledata",e),e(),()=>{if(t.off("styledata",e),t.style&&t.style._loaded&&t.getSource(s)){let e=t.getStyle()?.layers;if(e)for(let r of e)r.source===s&&t.removeLayer(r.id);t.removeSource(s)}}}},[t]);let a=t&&t.style&&t.getSource(s);return a?!function(e,t,r){U(t.id===r.id,"source id changed"),U(t.type===r.type,"source type changed");let o="",n=0;for(let e in t)"children"!==e&&"id"!==e&&!i(r[e],t[e])&&(o=e,n++);if(!n)return;let s=t.type;if("geojson"===s)e.setData(t.data);else if("image"===s)e.updateImage({url:t.url,coordinates:t.coordinates});else switch(o){case"coordinates":e.setCoordinates?.(t.coordinates);break;case"url":e.setUrl?.(t.url);break;case"tiles":e.setTiles?.(t.tiles);break;default:console.warn(`Unable to update <Source> prop: ${o}`)}}(a,e,r.current):a=function(e,t,r){if(e.style&&e.style._loaded){let o={...r};return delete o.id,delete o.children,e.addSource(t,o),e.getSource(t)}return null}(t,s,e),r.current=e,a&&o.Children.map(e.children,e=>e&&(0,o.cloneElement)(e,{source:s}))||null}let R=0;function k(e){let t=(0,o.useContext)(E).map.getMap(),r=(0,o.useRef)(e),[,n]=(0,o.useState)(0),s=(0,o.useMemo)(()=>e.id||`jsx-layer-${R++}`,[]);if((0,o.useEffect)(()=>{if(t){let e=()=>n(e=>e+1);return t.on("styledata",e),e(),()=>{t.off("styledata",e),t.style&&t.style._loaded&&t.getLayer(s)&&t.removeLayer(s)}}},[t]),t&&t.style&&t.getLayer(s))try{!function(e,t,r,o){if(U(r.id===o.id,"layer id changed"),U(r.type===o.type,"layer type changed"),"custom"===r.type||"custom"===o.type)return;let{layout:n={},paint:s={},filter:a,minzoom:l,maxzoom:u,beforeId:d}=r;if(d!==o.beforeId&&e.moveLayer(t,d),n!==o.layout){let r=o.layout||{};for(let o in n)i(n[o],r[o])||e.setLayoutProperty(t,o,n[o]);for(let o in r)n.hasOwnProperty(o)||e.setLayoutProperty(t,o,void 0)}if(s!==o.paint){let r=o.paint||{};for(let o in s)i(s[o],r[o])||e.setPaintProperty(t,o,s[o]);for(let o in r)s.hasOwnProperty(o)||e.setPaintProperty(t,o,void 0)}i(a,o.filter)||e.setFilter(t,a),(l!==o.minzoom||u!==o.maxzoom)&&e.setLayerZoomRange(t,l,u)}(t,s,e,r.current)}catch(e){console.warn(e)}else if(t.style&&t.style._loaded&&(!("source"in e)||t.getSource(e.source))){let r={...e,id:s};delete r.beforeId,t.addLayer(r,e.beforeId)}return r.current=e,null}},25091:()=>{}}]);

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.