1import{a as D,f as q}from"./CTwOk17h.js";import"./DGfogMXM.js";import{c as oe,o as ne}from"./CrDcjahW.js";import{bN as J,b7 as v,as as M,aS as P,aT as F,b4 as x,bx as ae,br as se,bk as ie,ak as b,bD as re,ab as le,a3 as ce,bd as de,ao as me,bt as ue}from"./C367VU0h.js";import{e as g}from"./Dxn4OkbU.js";import{i as fe}from"./CsgzcBh5.js";import{s as be}from"./BUnsPjao.js";import{a as ge}from"./CiUbOEKN.js";import{s as he}from"./BmVoaol-.js";import{b as h}from"./BDIHrVxL.js";import{i as w}from"./W1T5VtJV.js";import{b as p}from"./CHKIF6Z5.js";import{p as l}from"./BRnQIr2g.js";import{a as ye}from"./PYTajayq.js";const Ge="pk.eyJ1IjoiZW1tYS1jbG91ZGJlcnJ5IiwiYSI6ImNrb3UyY2VpcjBoNzUydm9hbXJ4NG12ejkifQ.gPaUI7brfJ5Wf8wc0FBo4w",k={},W=new Map;function pe(t,e){let n=!0;for(const{type:i,value:r,id:s}of t)if(i==="script"){let a=W.get(s);if(a!=null&&a.loaded)continue;if(n=!1,a)a.waiters.push(e);else{a={loaded:!1,waiters:[e]},W.set(s,a);const c=document.createElement("script");c.id=s,c.async=!0,c.defer=!0,c.src=r,c.onload=()=>{a.loaded=!0,a.waiters.splice(0).forEach(y=>y())},document.body.appendChild(c)}}else{if(document.getElementById(s))continue;const a=document.createElement(i);a.id=s,a.rel="stylesheet",a.href=r,document.body.appendChild(a)}n&&e()}function ve(t,e,n,i){const r=[];for(const[s,a]of Object.entries(e)){const c=u=>{const[y,z]=a(t,u,n);i.dispatchEvent(new CustomEvent(y,{detail:z}))};t.on(s,c),r.push([s,c])}return()=>{for(const[s,a]of r)t.off(s,a)}}function j(t,e={}){const n=[{type:"script",attr:"src",value:`//api.mapbox.com/mapbox-gl-js/${e.version}/mapbox-gl.js`,id:"byk-gl-js"},{type:"link",attr:"href",value:`//api.mapbox.com/mapbox-gl-js/${e.version}/mapbox-gl.css`,id:"byk-gl-css"}],i=e.customStylesheetUrl;i&&n.push({type:"link",attr:"href",value:i,id:"byk-mcsu-css"});let r=()=>{};return pe(n,()=>{r=xe({...e,container:t},t)}),{destroy(){r()}}}function xe(t,e){window.mapboxgl.accessToken=t.accessToken;const n=new window.mapboxgl.Map(t);return ve(n,we,window.mapboxgl,e)}const we={dragend:t=>["dragend",{center:t.getCenter()}],drag:t=>["drag",{center:t.getCenter()}],moveend:t=>["recentre",{center:t.getCenter()}],click:(t,{lngLat:e})=>["click",{lng:e.lng,lat:e.lat}],zoomstart:t=>["zoomstart",{zoom:t.getZoom()}],zoom:t=>["zoom",{zoom:t.getZoom()}],zoomend:t=>["zoomend",{zoom:t.getZoom()}],load:(t,e,n)=>["ready",{map:t,mapbox:n}]};class ke{constructor(){this.queue=J([]),this.unsubscribe=null,this.started=!1}send(e,n=[]){e&&this.queue.update(i=>[...i,[e,n]])}start(e){this.unsubscribe=this.queue.subscribe(n=>{for(;n.length;){const[i,r]=n.shift();e[i].apply(e,r)}}),this.started=!0}stop(){this.started&&(this.unsubscribe(),this.queue=J([]),this.started=!1)}}const ze={type:"FeatureCollection",name:"ndsarea",features:[{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[18.147118091583252,59.34081679825889],[18.13297748565674,59.345795005122895],[18.127269744873047,59.347457891845],[18.112163543701172,59.357892834711954],[18.104395866394043,59.36217963836146],[18.09476137161255,59.361140794330375],[18.09048056602478,59.360249550160354],[18.088173866271973,59.35965901965934],[18.086328506469727,59.359046606805144],[18.083410263061523,59.35719836530227],[18.082165718078613,59.35682651757272],[18.082079887390137,59.35642732356441],[18.082101345062256,59.356296080673175],[18.082197904586792,59.356192179691064],[18.082423210144043,59.356099215384866],[18.083442449569702,59.35587500630475],[18.084654808044434,59.355596110016315],[18.08524489402771,59.35534455453575],[18.085663318634033,59.35507659121241],[18.085813522338867,59.35475393868963],[18.085931539535522,59.35451331447287],[18.086092472076412,59.35438753295348],[18.0864143371582,59.354305501276684],[18.086307048797607,59.3540648738812],[18.086189031600952,59.35368205405488],[18.086038827896118,59.35331016780406],[18.08550238609314,59.35304218842134],[18.084579706192017,59.3527523307892],[18.08425784111023,59.35228199049735],[18.08622121810913,59.35198665721627],[18.08825969696045,59.351385044437215],[18.089096546173096,59.35073966614923],[18.090598583221436,59.34987549634903],[18.09247612953186,59.34848074552794],[18.092862367630005,59.3485792004065],[18.09722900390625,59.34980986230095],[18.098098039627075,59.34963483755236],[18.101295232772824,59.34888003298879],[18.105329275131222,59.347922829156964],[18.10892343521118,59.34705858766024],[18.109835386276245,59.34681790889727],[18.110640048980713,59.34652799812228],[18.112764358520508,59.345494145207454],[18.113408088684082,59.3450893476608],[18.11374068260193,59.344865065861654],[18.114030361175537,59.34461343086032],[18.114148378372192,59.34437820515118],[18.11419129371643,59.344017157869814],[18.1139874458313,59.34361234271701],[18.11338663101196,59.34270969696052],[18.11320424079895,59.34218451020772],[18.114341497421265,59.33981559819763],[18.11422348022461,59.33938337
1702911],[18.12570333480835,59.33908793154671],[18.128235340118408,59.338661172424175],[18.1314754486084,59.338431376829654],[18.13317060470581,59.337731037810265],[18.13497304916382,59.33669144545403],[18.136839866638184,59.33699785492888],[18.147118091583252,59.34081679825889]]]}}]};function Ce(t,e){v(e,!1);const n=()=>ae(ye,"$areatoggle",i),[i,r]=se(),{getMap:s}=M(k),a=s();a.addSource("nds",{type:"geojson",data:ze}),a.addLayer({id:"ndsarea",type:"line",source:"nds",layout:{visibility:"visible","line-join":"round","line-cap":"round"},paint:{"line-color":"rgb(93,35,125)","line-width":2,"line-dasharray":[3,2.3],"line-opacity":.6}}),P(()=>n(),()=>{n().includes("omr")?a.setLayoutProperty("ndsarea","visibility","visible"):a.setLayoutProperty("ndsarea","visibility","none")}),F(),w(),x(),r()}var _e=q("<!> <!>",1),je=q("<div><!></div>");function Oe(t,e){v(e,!1);let n=l(e,"map",12,null),i=l(e,"version",8,"v2.3.1"),r=l(e,"center",24,()=>[0,-0]),s=l(e,"zoom",8,9),a=l(e,"zoomRate",8,1),c=l(e,"wheelZoomRate",8,1),u=l(e,"options",24,()=>({})),y=l(e,"accessToken",8),z=l(e,"customStylesheetUrl",8,!1),G=l(e,"mini",8,!1),O=l(e,"konst",8,!1),Y=l(e,"insert",8,!1),L=l(e,"style",8,"mapbox://styles/emma-cloudberry/ckv9ggpjyahyy14p8osb46g4h"),Q=l(e,"maxBounds",24,()=>[[17.4,59],[18.7,59.6]]);const A=oe();ie(k,{getMap:()=>n(),getMapbox:()=>C});let K,C;const V=Object.assign({accessToken:y(),container:K,style:L(),center:r(),zoom:s(),zoomRate:a(),wheelZoomRate:c(),version:i(),customStylesheetUrl:z(),map:n(),maxBounds:Q()},u()),f=new ke;function X({detail:o}){n(o.map),C=o.mapbox,f.start(n()),A("ready")}ne(()=>{f.stop(),n(void 0)});function S(o,d={}){f.send("fitBounds",[o,d])}function Z(o,d={}){f.send("flyTo",[o,d])}function T(){f.send("resize")}function B(o,d={}){f.send("setCenter",[o,d])}function _(o,d={}){f.send("setZoom",[o,d])}function E(o,d="top-right"){f.send("addControl",[o,d])}function N(){return n()}function U(){return C}P(()=>le(s()),()=>{s()&&_(s())}),F();var H={fitBounds:S,flyTo:Z,resize:T,setCenter:B,setZoom:_,addControl:E,getMap:N,getMapbox:U};w();var m=je();let R;var $=ce(m);{var ee=o=>{var d=_e(),I=me(d);be(I,e,"default",{});var te=ue(I,2);Ce(te,{}),D(o,d)};fe($,o=>{n()&&o(ee)})}return de(m),ge(m,(o,d)=>j==null?void 0:j(o,d),()=>V),b(()=>g("ready",m,X)),b(()=>g("recentre",m,function(o){p.call(this,e,o)})),b(()=>g("dragend",m,function(o){p.call(this,e,o)})),b(()=>g("click",m,function(o){p.call(this,e,o)})),b(()=>g("zoomstart",m,function(o){p.call(this,e,o)})),b(()=>g("zoom",m,function(o){p.call(this,e,o)})),b(()=>g("zoomend",m,function(o){p.call(this,e,o)})),b(()=>g("drag",m,function(o){p.call(this,e,o)})),re(()=>R=he(m,1,"svelte-ab1jru",null,R,{mini:G(),konst:O(),insert:Y()})),D(t,m),h(e,"fitBounds",S),h(e,"flyTo",Z),h(e,"resize",T),h(e,"setCenter",B),h(e,"setZoom",_),h(e,"addControl",E),h(e,"getMap",N),h(e,"getMapbox",U),x(H)}function Me(t,e){v(e,!1);const{getMap:n,getMapbox:i}=M(k),r=n(),s=i();let a=l(e,"position",8,"top-right"),c=l(e,"options",24,()=>({}));const u=new s.NavigationControl(c());r.addControl(u,a()),w(),x()}function Se(t,e){v(e,!1);const{getMap:n,getMapbox:i}=M(k),r=n(),s=i();let a=l(e,"position",8,"bottom-right"),c=l(e,"options",24,()=>({}));const u=Object.assign({maxWidth:80,unit:"metric"},c()),y=new s.ScaleControl(u);r.addControl(y,a()),w(),x()}const Ye={NavigationControl:Me,ScaleControl:Se};export{Oe as M,Ye as a,k as c,Ge as m};
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.