1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3011],{3011:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var r,u,l=t(5893),o=t(7294);let i=(0,o.createContext)(null),a=i.Provider;var c=t(5243);function f(){return(f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}let s=(0,o.forwardRef)(function({bounds:e,boundsOptions:n,center:t,children:r,className:u,id:l,placeholder:i,style:s,whenReady:p,zoom:d,...g},b){let[v]=(0,o.useState)({className:u,id:l,style:s}),[y,m]=(0,o.useState)(null);(0,o.useImperativeHandle)(b,()=>y?.map??null,[y]);let h=(0,o.useCallback)(r=>{if(null!==r&&null===y){let u=new c.Map(r,g);null!=t&&null!=d?u.setView(t,d):null!=e&&u.fitBounds(e,n),null!=p&&u.whenReady(p),m(Object.freeze({__version:1,map:u}))}},[]);(0,o.useEffect)(()=>()=>{y?.map.remove()},[y]);let x=y?o.createElement(a,{value:y},r):i??null;return o.createElement("div",f({},v,{ref:h}),x)});function p(e,n,t){return Object.freeze({instance:e,context:n,container:t})}function d(e,n){return null==n?function(n,t){let r=(0,o.useRef)();return r.current||(r.current=e(n,t)),r}:function(t,r){let u=(0,o.useRef)();u.current||(u.current=e(t,r));let l=(0,o.useRef)(t),{instance:i}=u.current;return(0,o.useEffect)(function(){l.current!==t&&(n(i,t,l.current),l.current=t)},[i,t,r]),u}}function g(e,n){let t=e.pane??n.pane;return t?{...e,pane:t}:e}function b(e){return function(n){var t;let r=function(){let e=(0,o.useContext)(i);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}(),u=e(g(n,r),r);return!function(e,n){let t=(0,o.useRef)(n);(0,o.useEffect)(function(){n!==t.current&&null!=e.attributionControl&&(null!=t.current&&e.attributionControl.removeAttribution(t.current),null!=n&&e.attributionControl.addAttribution(n)),t.current=n},[e,n])}(r.map,n.attribution),!function(e,n){let t=(0,o.useRef)();(0,o.useEffect)(function(){return null!=n&&e.instance.on(n),t.current=n,function(){null!=t.current&&e.instance.off(t.current),t.current=null}},[e,n])}(u.current,n.eventHandlers),t=u.current,(0,o.useEffect)(function(){return(r.layerContainer??r.map).addLayer(t.instance),function(){r.layerContainer?.removeLayer(t.instance),r.map.removeLayer(t.instance)}},[r,t]),u}}t(3935);let v=(r=b(d(function({url:e,...n},t){return p(new c.TileLayer(e,g(n,t)),t)},function(e,n,t){!function(e,n,t){let{opacity:r,zIndex:u}=n;null!=r&&r!==t.opacity&&e.setOpacity(r),null!=u&&u!==t.zIndex&&e.setZIndex(u)}(e,n,t);let{url:r}=n;null!=r&&r!==t.url&&e.setUrl(r)})),(0,o.forwardRef)(function(e,n){let{instance:t}=r(e).current;return(0,o.useImperativeHandle)(n,()=>t),null})),y=(u=b(d(function({position:e,...n},t){let r=new c.Marker(e,n);return p(r,Object.freeze({...t,overlayContainer:r}))},function(e,n,t){n.position!==t.position&&e.setLatLng(n.position),null!=n.icon&&n.icon!==t.icon&&e.setIcon(n.icon),null!=n.zIndexOffset&&n.zIndexOffset!==t.zIndexOffset&&e.setZIndexOffset(n.zIndexOffset),null!=n.opacity&&n.opacity!==t.opacity&&e.setOpacity(n.opacity),null!=e.dragging&&n.draggable!==t.draggable&&(!0===n.draggable?e.dragging.enable():e.dragging.disable())})),(0,o.forwardRef)(function(e,n){let{instance:t,context:r}=u(e).current;return(0,o.useImperativeHandle)(n,()=>t),null==e.children?null:o.createElement(a,{value:r},e.children)}));t(8570);var m=()=>{let e=(0,o.useRef)();return(0,l.jsxs)(s,{center:[51.505,-.09],zoom:13,scrollWheelZoom:!1,ref:e,style:{height:"400px",zIndex:"0!important"},children:[(0,l.jsx)(v,{attribution:'\xa9 <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,l.jsx)(y,{position:[51.505,-.09]})]})}},8570:function(){}}]);
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.