PageSourceSearch

https://www.fifama.org/_next/static/chunks/9245.456d6af827921c14.js

js fifama.org collected 2026-10-02 17:09:00 UTC 15,067 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9245],{9245:function(e,t,o){o.d(t,{Jx:function(){return P},Pv:function(){return R},ZP:function(){return E}});var n=o(2265);let r=n.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 o=0;o<e.length;o++)if(!i(e[o],t[o]))return!1;return!0}if(Array.isArray(t))return!1;if("object"==typeof e&&"object"==typeof t){let o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(let n of o)if(!t.hasOwnProperty(n)||!i(e[n],t[n]))return!1;return!0}return!1}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 s(e,t){let o=t.viewState||t,n={};if("longitude"in o&&"latitude"in o&&(o.longitude!==e.center.lng||o.latitude!==e.center.lat)){let t=e.center.constructor;n.center=new t(o.longitude,o.latitude)}return"zoom"in o&&o.zoom!==e.zoom&&(n.zoom=o.zoom),"bearing"in o&&o.bearing!==e.bearing&&(n.bearing=o.bearing),"pitch"in o&&o.pitch!==e.pitch&&(n.pitch=o.pitch),o.padding&&e.padding&&!i(o.padding,e.padding)&&(n.padding=o.padding),n}let l=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function u(e){if(!e)return null;if("string"==typeof e||("toJS"in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let o of e.layers)t[o.id]=o;let o=e.layers.map(e=>{let o=null;"interactive"in e&&(o=Object.assign({},e),delete o.interactive);let n=t[e.ref];if(n)for(let t of(o=o||Object.assign({},e),delete o.ref,l))t in n&&(o[t]=n[t]);return o||e});return{...e,layers:o}}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},d={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"},m={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"},f={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"},h=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],g=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class y{constructor(e,t,o){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{let t=this.props[f[e.type]];t?t(e):"error"===e.type&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||a(this._map.transform);let t=this.props[m[e.type]];t&&t(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=a(e),s(e,this.props)),this._onPointerEvent=e=>{("mousemove"===e.type||"mouseout"===e.type)&&this._updateHover(e);let t=this.props[d[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(o)}get map(){return this._map}setProps(e){let t=this.props;this.props=e;let o=this._updateSettings(e,t),n=this._updateSize(e),r=this._updateViewState(e);this._updateStyle(e,t),this._updateStyleComponents(e),this._updateHandlers(e,t),(o||n||r&&!this._map.isMoving())&&this.redraw()}static reuse(e,t){let o=y.savedMaps.pop();if(!o)return null;let n=o.map,r=n.getContainer();for(t.className=r.className;r.childNodes.length>0;)t.appendChild(r.childNodes[0]);n._container=t;let i=n._resizeObserver;i&&(i.disconnect(),i.observe(t)),o.setProps({...e,styleDiffing:!1}),n.resize();let{initialViewState:a}=e;return a&&(a.bounds?n.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):o._updateViewState(a)),n.isStyleLoaded()?n.fire("load"):n.once("style.load",()=>n.fire("load")),n._update(),o}_initialize(e){let{props:t}=this,{mapStyle:o=p}=t,n={...t,...t.initialViewState,container:e,style:u(o)},r=n.initialViewState||n.viewState||n;if(Object.assign(n,{center:[r.longitude||0,r.latitude||0],zoom:r.zoom||0,pitch:r.pitch||0,bearing:r.bearing||0}),t.gl){let e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}let i=new this._MapClass(n);for(let e in r.padding&&i.setPadding(r.padding),t.cursor&&(i.getCanvas().style.cursor=t.cursor),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)}),d)i.on(e,this._onPointerEvent);for(let e in m)i.on(e,this._onCameraEvent);for(let e in f)i.on(e,this._onEvent);this._map=i}recycle(){let e=this.map.getContainer().querySelector("[mapboxgl-children]");e?.remove(),y.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;if(t.width!==e.transform.width||t.height!==e.transform.height)return e.resize(),!0}return!1}_updateViewState(e){let t=this._map,o=t.transform;if(!t.isMoving()){let n=s(o,e);if(Object.keys(n).length>0)return this._internalUpdate=!0,t.jumpTo(n),this._internalUpdate=!1,!0}return!1}_updateSettings(e,t){let o=this._map,n=!1;for(let r of h)if((r in e||r in t)&&!i(e[r],t[r])){n=!0;let t=r in e?e[r]:c[r],i=o[`set${r[0].toUpperCase()}${r.slice(1)}`];i?.call(o,t)}return 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:o=!0}=e,n={diff:o};"localIdeographFontFamily"in e&&(n.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(u(t),n)}}_updateStyleComponents({light:e,projection:t,sky:o,terrain:n}){let r=this._map,a=this._styleComponents;r.style?._loaded&&(e&&!i(e,a.light)&&(a.light=e,r.setLight(e)),t&&!i(t,a.projection)&&t!==a.projection?.type&&(a.projection="string"==typeof t?{type:t}:t,r.setProjection?.(a.projection)),o&&!i(o,a.sky)&&(a.sky=o,r.setSky(o)),void 0!==n&&!i(n,a.terrain)&&(!n||r.getSource(n.source))&&(a.terrain=n,r.setTerrain(n)))}_updateHandlers(e,t){let o=this._map;for(let n of g){let r=e[n]??!0;i(r,t[n]??!0)||(r?o[n].enable(r):o[n].disable())}}_queryRenderedFeatures(e){let t=this._map,{interactiveLayerIds:o=[]}=this.props;try{return t.queryRenderedFeatures(e,{layers:o.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,o=this._hoveredFeatures?.length>0,n=this._queryRenderedFeatures(e.point),r=n.length>0;!r&&o&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=n,r&&!o&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=t}else this._hoveredFeatures=null}}y.savedMaps=[];let v=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"],_="undefined"!=typeof document?n.useLayoutEffect:n.useEffect,C=n.createContext(null),E=n.forwardRef(function(e,t){let i=(0,n.useContext)(r),[a,s]=(0,n.useState)(null),l=(0,n.useRef)(),{current:u}=(0,n.useRef)({mapLib:null,map:null});(0,n.useEffect)(()=>{let t;let n=e.mapLib,r=!0;return Promise.resolve(n||o.e(1402).then(o.t.bind(o,87748,19))).then(o=>{if(!r)return;if(!o)throw Error("Invalid mapLib");let n="Map"in o?o:o.default;if(!n.Map)throw Error("Invalid mapLib");(function(e,t){let{RTLTextPlugin:o,maxParallelImageRequests:n,workerCount:r,workerUrl:i}=t;if(o&&e.getRTLTextPluginStatus&&"unavailable"===e.getRTLTextPluginStatus()){let{pluginUrl:t,lazy:n=!0}="string"==typeof o?{pluginUrl:o}:o;e.setRTLTextPlugin(t,e=>{e&&console.error(e)},n)}void 0!==n&&e.setMaxParallelImageRequests(n),void 0!==r&&e.setWorkerCount(r),void 0!==i&&e.setWorkerUrl(i)})(n,e),e.reuseMaps&&(t=y.reuse(e,l.current)),t||(t=new y(n.Map,e,l.current)),u.map=function(e){if(!e)return null;let t=e.map,o={getMap:()=>t};for(let e of function(e){let t=new Set,o=e;for(;o;
1){for(let n of Object.getOwnPropertyNames(o))"_"!==n[0]&&"function"==typeof e[n]&&"fire"!==n&&"setEventedParent"!==n&&t.add(n);o=Object.getPrototypeOf(o)}return Array.from(t)}(t))e in o||v.includes(e)||(o[e]=t[e].bind(t));return o}(t),u.mapLib=n,s(t),i?.onMapMount(u.map,e.id)}).catch(t=>{let{onError:o}=e;o?o({type:"error",target:null,originalEvent:null,error:t}):console.error(t)}),()=>{r=!1,t&&(i?.onMapUnmount(e.id),e.reuseMaps?t.recycle():t.destroy())}},[]),_(()=>{a&&a.setProps(e)}),(0,n.useImperativeHandle)(t,()=>u.map,[a]);let p=(0,n.useMemo)(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]);return n.createElement("div",{id:e.id,ref:l,style:p},a&&n.createElement(C.Provider,{value:u},n.createElement("div",{"mapboxgl-children":"",style:{height:"100%"}},e.children)))});var L=o(54887);let b=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function M(e,t){if(!e||!t)return;let o=e.style;for(let e in t){let n=t[e];Number.isFinite(n)&&!b.test(e)?o[e]=`${n}px`:o[e]=n}}function x(e,t){if(e===t)return null;let o=S(e),n=S(t),r=[];for(let e of n)o.has(e)||r.push(e);for(let e of o)n.has(e)||r.push(e);return 0===r.length?null:r}function S(e){return new Set(e?e.trim().split(/\s+/):[])}let P=(0,n.memo)((0,n.forwardRef)((e,t)=>{let{map:o,mapLib:r}=(0,n.useContext)(C),i=(0,n.useRef)({props:e}),a=(0,n.useMemo)(()=>{let t=!1;n.Children.forEach(e.children,e=>{e&&(t=!0)});let o={...e,element:t?document.createElement("div"):void 0},s=new r.Marker(o);return s.setLngLat([e.longitude,e.latitude]),s.getElement().addEventListener("click",e=>{i.current.props.onClick?.({type:"click",target:s,originalEvent:e})}),s.on("dragstart",e=>{e.lngLat=a.getLngLat(),i.current.props.onDragStart?.(e)}),s.on("drag",e=>{e.lngLat=a.getLngLat(),i.current.props.onDrag?.(e)}),s.on("dragend",e=>{e.lngLat=a.getLngLat(),i.current.props.onDragEnd?.(e)}),s},[]);(0,n.useEffect)(()=>(a.addTo(o.getMap()),()=>{a.remove()}),[]);let{longitude:s,latitude:l,offset:u,style:p,draggable:c=!1,popup:d=null,rotation:m=0,rotationAlignment:f="auto",pitchAlignment:h="auto"}=e;(0,n.useEffect)(()=>{M(a.getElement(),p)},[p]),(0,n.useImperativeHandle)(t,()=>a,[]);let g=i.current.props;(a.getLngLat().lng!==s||a.getLngLat().lat!==l)&&a.setLngLat([s,l]),u&&!function(e,t){let o=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,r=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return o===r&&n===i}(a.getOffset(),u)&&a.setOffset(u),a.isDraggable()!==c&&a.setDraggable(c),a.getRotation()!==m&&a.setRotation(m),a.getRotationAlignment()!==f&&a.setRotationAlignment(f),a.getPitchAlignment()!==h&&a.setPitchAlignment(h),a.getPopup()!==d&&a.setPopup(d);let y=x(g.className,e.className);if(y)for(let e of y)a.toggleClassName(e);return i.current.props=e,(0,L.createPortal)(e.children,a.getElement())}));function w(e,t,o,r){let i=(0,n.useContext)(C),a=(0,n.useMemo)(()=>e(i),[]);return(0,n.useEffect)(()=>{let e="function"==typeof t&&"function"==typeof o?t:null,n="function"==typeof o?o:"function"==typeof t?t:null,{map:s}=i;return!s.hasControl(a)&&(s.addControl(a,(r||o||t)?.position),e&&e(i)),()=>{n&&n(i),s.hasControl(a)&&s.removeControl(a)}},[]),a}(0,n.memo)((0,n.forwardRef)((e,t)=>{let{map:o,mapLib:r}=(0,n.useContext)(C),a=(0,n.useMemo)(()=>document.createElement("div"),[]),s=(0,n.useRef)({props:e}),l=(0,n.useMemo)(()=>{let t={...e},o=new r.Popup(t);return o.setLngLat([e.longitude,e.latitude]),o.once("open",e=>{s.current.props.onOpen?.(e)}),o},[]);if((0,n.useEffect)(()=>{let e=e=>{s.current.props.onClose?.(e)};return l.on("close",e),l.setDOMContent(a).addTo(o.getMap()),()=>{l.off("close",e),l.isOpen()&&l.remove()}},[]),(0,n.useEffect)(()=>{M(l.getElement(),e.style)},[e.style]),(0,n.useImperativeHandle)(t,()=>l,[]),l.isOpen()){let t=s.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 o=x(t.className,e.className);if(o)for(let e of o)l.toggleClassName(e);s.current.props=e}return(0,L.createPortal)(e.children,a)})),(0,n.memo)(function(e){let t=w(({mapLib:t})=>new t.AttributionControl(e),{position:e.position});return(0,n.useEffect)(()=>{M(t._container,e.style)},[e.style]),null}),(0,n.memo)(function(e){let t=w(({mapLib:t})=>new t.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return(0,n.useEffect)(()=>{M(t._controlContainer,e.style)},[e.style]),null}),(0,n.memo)((0,n.forwardRef)(function(e,t){let o=(0,n.useRef)({props:e}),r=w(({mapLib:t})=>{let n=new t.GeolocateControl(e),r=n._setupUI;return n._setupUI=()=>{n._container.hasChildNodes()||r()},n.on("geolocate",e=>{o.current.props.onGeolocate?.(e)}),n.on("error",e=>{o.current.props.onError?.(e)}),n.on("outofmaxbounds",e=>{o.current.props.onOutOfMaxBounds?.(e)}),n.on("trackuserlocationstart",e=>{o.current.props.onTrackUserLocationStart?.(e)}),n.on("trackuserlocationend",e=>{o.current.props.onTrackUserLocationEnd?.(e)}),n},{position:e.position});return o.current.props=e,(0,n.useImperativeHandle)(t,()=>r,[]),(0,n.useEffect)(()=>{M(r._container,e.style)},[e.style]),null}));let R=(0,n.memo)(function(e){let t=w(({mapLib:t})=>new t.NavigationControl(e),{position:e.position});return(0,n.useEffect)(()=>{M(t._container,e.style)},[e.style]),null});(0,n.memo)(function(e){let t=w(({mapLib:t})=>new t.ScaleControl(e),{position:e.position}),o=(0,n.useRef)(e),r=o.current;o.current=e;let{style:i}=e;return void 0!==e.maxWidth&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),void 0!==e.unit&&e.unit!==r.unit&&t.setUnit(e.unit),(0,n.useEffect)(()=>{M(t._container,i)},[i]),null}),(0,n.memo)(function(e){let t=w(({mapLib:t})=>new t.TerrainControl(e),{position:e.position});return(0,n.useEffect)(()=>{M(t._container,e.style)},[e.style]),null}),(0,n.memo)(function(e){let t=w(({mapLib:t})=>new t.LogoControl(e),{position:e.position});return(0,n.useEffect)(()=>{M(t._container,e.style)},[e.style]),null})}}]);

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.