PageSourceSearch

https://vietnamguru.ru/_next/static/chunks/4634.79823f5f1f827f49.js

js vietnamguru.ru collected 2026-10-03 18:17:05 UTC 34,137 bytes, 20 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4634],{14027:(e,t,n)=>{"use strict";n.d(t,{W:()=>l});var r=n(35073),i=n(16895),o=n(14232);let l=(0,o.forwardRef)(function({bounds:e,boundsOptions:t,center:n,children:l,className:a,id:c,placeholder:s,style:u,whenReady:d,zoom:h,...p},f){let[g]=(0,o.useState)({className:a,id:c,style:u}),[x,m]=(0,o.useState)(null),v=(0,o.useRef)(void 0);(0,o.useImperativeHandle)(f,()=>x?.map??null,[x]);let b=(0,o.useCallback)(o=>{if(null!==o&&!v.current){let l=new i.Map(o,p);v.current=l,null!=n&&null!=h?l.setView(n,h):null!=e&&l.fitBounds(e,t),null!=d&&l.whenReady(d),m((0,r.fB)(l))}},[]);(0,o.useEffect)(()=>()=>{x?.map.remove()},[x]);let w=x?o.createElement(r.dk,{value:x},l):s??null;return o.createElement("div",{...g,ref:b},w)})},31162:(e,t,n)=>{"use strict";n.d(t,{P:()=>l});var r=n(5646),i=n(41648);let o=(0,r.AH)([".company-marker-container{position:relative;display:flex;flex-direction:row;align-items:center;}.company-title{background-color:white;padding:3px 8px;border-radius:4px;font-weight:bold;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,0.2);margin-left:5px;color:#000;font-size:12px;font-family:Arial,sans-serif;}.marker-icon{font-size:0;svg{width:32px;height:32px;}}"]),l=r.Ay.div.withConfig({componentId:"sc-6dd1946b-0"})(["height:100%;width:100%;overflow:hidden;position:relative;.leaflet-container{height:100%;.user-position{width:20px;height:20px;}.leaflet-popup-content{width:auto !important;}.border-rounded{border-radius:50%;}.leaflet-control{&.leaflet-control-attribution{display:none;}a{display:flex;align-items:center;justify-content:center;img{width:60%;height:60%;}}}}",""],o);r.Ay.img.withConfig({componentId:"sc-6dd1946b-1"})(["@media (orientation:landscape){width:auto;height:min-content;max-height:300px;object-fit:contain;@media screen and (min-width:","px){height:80dvh;width:fit-content;max-width:573px;max-height:430px;}}@media (orientation:portrait){width:80vw;height:max-content;max-width:573px;max-height:430px;object-fit:contain;@media screen and (min-width:","px){width:auto;max-width:300px;max-height:430px;object-fit:contain;}@media screen and (min-width:","px){width:80dvh;height:auto;}}"],i.w.breakpoints.sm,i.w.breakpoints.sm,i.w.breakpoints.sm)},31620:()=>{},35073:(e,t,n)=>{"use strict";n.d(t,{U$:()=>a,W4:()=>o,dk:()=>l,fB:()=>i});var r=n(14232);function i(e){return Object.freeze({__version:1,map:e})}function o(e,t){return Object.freeze({...e,...t})}let l=(0,r.createContext)(null);function a(){let e=(0,r.use)(l);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}},42526:(e,t,n)=>{"use strict";n.d(t,{K:()=>o,Q:()=>i});var r=n(14232);function i(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function o(e,t){return null==t?function(t,n){let i=(0,r.useRef)(void 0);return i.current||(i.current=e(t,n)),i}:function(n,i){let o=(0,r.useRef)(void 0);o.current||(o.current=e(n,i));let l=(0,r.useRef)(n),{instance:a}=o.current;return(0,r.useEffect)(function(){l.current!==n&&(t(a,n,l.current),l.current=n)},[a,n,t]),o}}},48420:(e,t,n)=>{"use strict";function r(e,t){let n=e.pane??t.pane;return n?{...e,pane:n}:e}n.d(t,{P:()=>r})},62253:(e,t,n)=>{"use strict";n.r(t),n.d(t,{OsmMap:()=>ey});var r,i=n(37876),o=n(14232),l=n(14027),a=n(98755),c=n(42526),s=n(35073),u=n(16895),d=n.n(u);let h=(0,a.Lt)(function({positions:e,...t},n){let r=new u.Polyline(e,t);return(0,c.Q)(r,(0,s.W4)(n,{overlayContainer:r}))},function(e,t,n){t.positions!==n.positions&&e.setLatLngs(t.positions)});var p=n(76002),f=n(31162);let g=(0,a.Nq)(function({position:e,...t},n){let r=new u.Marker(e,t);return(0,c.Q)(r,(0,s.W4)(n,{overlayContainer:r}))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())}),x=`
2  <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
3    <path d="M16 0C10.4772 0 6 4.47716 6 10C6 12.6522 7.05357 14.6257 8.5 16.5986C9.89286 18.5716 11.6071 20.3039 13 22C15.5 25 15.7699 31.0472 15.9835 31.8164C15.9912 31.8772 16.0088 31.8772 16.0165 31.8164C16.2301 31.0472 16.5 25 19 22C20.3929 20.3039 22.1071 18.5716 23.5 16.5986C24.9464 14.6257 26 12.6522 26 10C26 4.47716 21.5228 0 16 0Z" fill="#007BFF"/>
4    <circle cx="16" cy="10" r="4" fill="white"/>
5    <path d="M12 14H20V19H12V14Z" fill="white"/>
6    <path d="M13 15H15V17H13V15Z" fill="#007BFF"/>
7    <path d="M17 15H19V17H17V15Z" fill="#007BFF"/>
8  </svg>
9`,m=e=>{let{latitude:t,longitude:n,customIcon:r,geoObject:l,eventHandlers:a}=e,c=(0,o.useMemo)(()=>l.name&&l.name.startsWith("Group ("),[l.name]),s=(0,o.useMemo)(()=>
9{if(c){var e;let t=null==(e=l.name)?void 0:e.match(/\((\d+)\)/);return t&&t[1]?parseInt(t[1],10):0}return 0},[l.name,c]),d=(0,o.useMemo)(()=>{if(c&&s>0){let e,t,n,r;return e=s<10?"#41b6c4":s<20?"#ff5722":s<50?"#ffa000":"#4CAF50",t=s<10?30:s<50?40:50,n=s<10?12:s<50?14:16,r=`
10    <svg width="${t}" height="${t}" viewBox="0 0 ${t} ${t}" xmlns="http://www.w3.org/2000/svg">
11      <circle cx="${t/2}" cy="${t/2}" r="${t/2}" fill="${e}" opacity="0.7" />
12      <circle cx="${t/2}" cy="${t/2}" r="${t/2-3}" fill="${e}" />
13      <text x="50%" y="50%" text-anchor="middle" dy=".3em" fill="white" font-size="${n}px" font-weight="bold" font-family="Arial, sans-serif">${s}</text>
14    </svg>
15  `,(0,u.divIcon)({html:r,className:"cluster-marker",iconSize:[t,t],iconAnchor:[t/2,t/2],popupAnchor:[0,-t/2]})}let e=`
16      <div class="company-marker-container">
17        <div class="marker-icon">${x}</div>
18        <div class="company-title">${l.name}</div>
19      </div>
20    `;return(0,u.divIcon)({html:e,className:"company-marker",iconSize:[200,42],iconAnchor:[16,42],popupAnchor:[0,-42]})},[l.name,c,s]);return(0,i.jsx)(g,{position:[t,n],icon:r||d,eventHandlers:a,"data-id":l.id})};var v=n(73138);function b(e){let{lat:t,lng:n,zoom:r}=e;return[t,n,r].map(e=>null==e?void 0:e.toString()).join(",")}let w=e=>{let{updateRouterOnChangeCoords:t,routerRef:n,onZoomChange:r}=e,i=(0,v.ko)();return(0,v.Po)({moveend:(0,o.useCallback)(()=>{let e=i.getCenter(),r={zoom:i.getZoom(),lat:e.lat.toFixed(7),lng:e.lng.toFixed(7)};if(t){let e=n.current,{query:t}=e;if(b(r)===b(t))return;(e.pathname.startsWith("/map")?e.replace:e.push)({pathname:e.pathname,query:{...t,...r}},void 0,{shallow:!0})}},[i,n,t]),zoom:(0,o.useCallback)(e=>{var t,n;let i=null==(n=e.target)||null==(t=n.getZoom)?void 0:t.call(n);null==r||r(i)},[r])}),null};var y=((r={}).cluster="cluster",r.item="item",r),C=n(89099),j=function(){return(j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},k={bottomleft:"leaflet-bottom leaflet-left",bottomright:"leaflet-bottom leaflet-right",topleft:"leaflet-top leaflet-left",topright:"leaflet-top leaflet-right"};let z=function(e){var t,n,r=o.useState(document.createElement("div")),i=r[0],l=r[1],a=e.position&&k[e.position]||k.topright,c=o.useRef(null),s=(0,v.ko)();o.useEffect(function(){null!==c.current&&(u.DomEvent.disableClickPropagation(c.current),u.DomEvent.disableScrollPropagation(c.current))},[c]),o.useEffect(function(){l(s.getContainer().getElementsByClassName(a)[0])},[a]),o.useEffect(function(){null!==i&&(void 0!==e.prepend&&!0===e.prepend?i.prepend(c.current):i.append(c.current))},[i,e.prepend,c]);var d=((null==(n=null==(t=e.container)?void 0:t.className)?void 0:n.concat(" "))||"")+"leaflet-control";return o.createElement("div",j({},e.container,{ref:c,className:d}),e.children)};var I=n(5646);let M=I.Ay.div.withConfig({componentId:"sc-12da271-0"})([".leaflet-container .leaflet-control &{width:34px;height:34px;display:flex;align-items:center;justify-content:center;background-color:white;svg{width:20px;height:20px;}a{width:30px;height:30px;&:hover{text-decoration:none;}&:has(svg){font-size:0;}}}"]),$=e=>{let{children:t,className:n,...r}=e;return(0,i.jsx)(z,{...r,children:(0,i.jsx)(M,{className:["leaflet-bar",n].filter(e=>!!e).join(" "),children:t})})};var A=n(48230),S=n.n(A);let L=e=>{let{position:t="topright"}=e,n=(0,v.ko)(),r=(0,o.useCallback)(()=>{let e=n.getCenter(),t=n.getZoom();return`/map/?zoom=${t}&lat=${e.lat}&lng=${e.lng}`},[n]);return(0,i.jsx)($,{position:t,children:(0,i.jsx)(S(),{href:r(),children:(0,i.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",role:"img",children:(0,i.jsx)("path",{d:"M670.165333 414.165333l135.338667-135.338666L896 369.322667V128h-241.322667l90.496 90.496-135.338666 135.338667z m75.008 391.338667L654.677333 896H896v-241.322667l-90.496 90.496-135.338667-135.338666-60.330666 60.330666z m-391.338666-195.669333l-135.338667 135.338666L128 654.677333V896h241.322667l-90.496-90.496 135.338666-135.338667zM278.826667 218.496L369.322667 128H128v241.322667l90.496-90.496 135.338667 135.338666 60.330666-60.330666z",fill:""})})})})},B=(0,I.Ay)($).withConfig({componentId:"sc-93d5b9de-0"})(["button{border:none;background:none;}"]),E=e=>{let{position:t="topleft",onClick:n}=e;return(0,i.jsx)(B,{position:t,children:(0,i.jsx)("button",{onClick:n,title:"Routes",children:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"
20currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M21.71 11.29l-9-9a1 1 0 00-1.42 0l-9 9a1 1 0 000 1.42l9 9a1 1 0 001.42 0l9-9a1 1 0 000-1.42zM14 14.5V12h-4v3H8v-4a1 1 0 011-1h5V7.5l3.5 3.5-3.5 3.5z"})})})})};var H=n(42546);function R(e){let t=[],n=0,r=0,i=0;for(;n<e.length;){let o,l=0,a=0;do a|=(31&(o=e.charCodeAt(n++)-63))<<l,l+=5;while(o>=32);r+=1&a?~(a>>1):a>>1,l=0,a=0;do a|=(31&(o=e.charCodeAt(n++)-63))<<l,l+=5;while(o>=32);i+=1&a?~(a>>1):a>>1,t.push([r/1e5,i/1e5])}return t}let V=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-0"})(["position:absolute;top:10px;left:10px;z-index:1000;background:white;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,0.3);width:320px;max-height:calc(100% - 20px);display:flex;flex-direction:column;overflow:hidden;"]),O=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-1"})(["display:flex;gap:8px;margin-bottom:12px;"]),P=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-2"})(["padding:12px;border-bottom:1px solid #e0e0e0;padding-top:24px;","{display:none;}"],O),N=I.Ay.button.withConfig({componentId:"sc-4c7b4e4b-3"})(["flex:1;padding:8px;border:1px solid ",";background:",";color:",";border-radius:4px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;&:hover{background:",";}svg{width:20px;height:20px;}"],e=>e.$active?"#1a73e8":"#dadce0",e=>e.$active?"#e8f0fe":"white",e=>e.$active?"#1a73e8":"#5f6368",e=>e.$active?"#e8f0fe":"#f1f3f4"),T=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-4"})(["display:flex;flex-direction:column;gap:8px;"]),F=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-5"})(["display:flex;align-items:center;gap:8px;"]),K=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-6"})(["width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:500;flex-shrink:0;background:",";color:white;"],e=>"start"===e.$type?"#34a853":"end"===e.$type?"#ea4335":"#fbbc04"),W=I.Ay.input.withConfig({componentId:"sc-4c7b4e4b-7"})(["flex:1;padding:8px 12px;border:1px solid #dadce0;border-radius:4px;font-size:14px;outline:none;&:focus{border-color:#1a73e8;}&::placeholder{color:#9aa0a6;}"]),Z=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-8"})(["display:flex;gap:4px;"]),_=I.Ay.button.withConfig({componentId:"sc-4c7b4e4b-9"})(["width:28px;height:28px;border:none;background:transparent;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#5f6368;&:hover{background:#f1f3f4;}&:disabled{opacity:0.5;cursor:not-allowed;}"]),U=I.Ay.button.withConfig({componentId:"sc-4c7b4e4b-10"})(["display:flex;align-items:center;gap:8px;padding:8px;border:none;background:transparent;color:#1a73e8;cursor:pointer;font-size:14px;margin-top:4px;&:hover{background:#f1f3f4;border-radius:4px;}"]),D=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-11"})(["display:flex;gap:8px;margin-top:12px;"]),G=I.Ay.button.withConfig({componentId:"sc-4c7b4e4b-12"})(["flex:1;padding:10px 16px;background:#1a73e8;color:white;border:none;border-radius:4px;font-size:14px;cursor:pointer;&:hover{background:#1557b0;}&:disabled{background:#dadce0;cursor:not-allowed;}"]),q=I.Ay.button.withConfig({componentId:"sc-4c7b4e4b-13"})(["padding:10px 16px;background:white;color:#5f6368;border:1px solid #dadce0;border-radius:4px;font-size:14px;cursor:pointer;&:hover{background:#f1f3f4;}"]),Q=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-14"})(["flex:1;overflow-y:auto;border-top:1px solid #e0e0e0;"]),X=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-15"})(["padding:12px;border-bottom:1px solid #e0e0e0;cursor:pointer;background:",";&:hover{background:",";}"],e=>e.$selected?"#e8f0fe":"white",e=>e.$selected?"#e8f0fe":"#f8f9fa"),Y=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-16"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:4px;"]),J=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-17"})(["font-size:14px;font-weight:500;color:#202124;"]),ee=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-18"})(["display:flex;gap:12px;font-size:13px;color:#5f6368;"]),et=I.Ay.span.withConfig({componentId:"sc-4c7b4e4b-19"})(["display:flex;align-items:center;gap:4px;"]),en=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-20"})(["padding:12px;max-height:300px;overflow-y:auto;"]),er=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-21"})(["display:flex;gap:12px;padding:8px 0;border-bottom:1px solid #f1f3f4;&:last-child{border-bottom:none;}"]),ei=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-22"})(["width:24px;height:24px;display:flex;align-items:center;justify-content:center;
20color:#1a73e8;flex-shrink:0;"]),eo=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-23"})(["flex:1;"]),el=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-24"})(["font-size:14px;color:#202124;"]),ea=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-25"})(["font-size:12px;color:#5f6368;margin-top:2px;"]),ec=I.Ay.div.withConfig({componentId:"sc-4c7b4e4b-26"})(["position:absolute;inset:0;background:rgba(255,255,255,0.8);display:flex;align-items:center;justify-content:center;font-size:14px;color:#5f6368;"]),es=I.Ay.button.withConfig({componentId:"sc-4c7b4e4b-27"})(["position:absolute;top:0px;right:0px;width:32px;height:32px;background:transparent;border:none;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#5f6368;&:hover{background:#f1f3f4;}svg{width:20px;height:20px;}"]);function eu(e){return e<1e3?`${Math.round(e)} m`:`${(e/1e3).toFixed(1)} km`}let ed={"turn-left":(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M14 7v2.5L9.5 5 14 .5V3c3.31 0 6 2.69 6 6v2h-2V9c0-2.21-1.79-4-4-4z",transform:"translate(0, 6)"})}),"turn-right":(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M10 7v2.5L14.5 5 10 .5V3c-3.31 0-6 2.69-6 6v2h2V9c0-2.21 1.79-4 4-4z",transform:"translate(0, 6)"})}),"turn-slight-left":(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M18 6.83l-1.41-1.41L12 10l4.59 4.59L18 13.17 14.83 10z"})}),"turn-slight-right":(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M6 6.83l1.41-1.41L12 10 7.41 14.59 6 13.17 9.17 10z"})}),"turn-sharp-left":(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M15 5l-1.41 1.41L15.17 8H11c-1.1 0-2 .9-2 2v9h2v-9h4.17l-1.58 1.59L15 13l4-4-4-4z"})}),"turn-sharp-right":(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M9 5l1.41 1.41L8.83 8H13c1.1 0 2 .9 2 2v9h-2v-9H8.83l1.58 1.59L9 13l-4-4 4-4z"})}),straight:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M12 4l-4 4h3v8H8l4 4 4-4h-3V8h3z"})}),depart:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})}),arrive:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 11c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})}),roundabout:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-14c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})}),uturn:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M18 11V9c0-2.76-2.24-5-5-5S8 6.24 8 9v6H6V9c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-2z"})}),merge:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M17 4l-1.41 1.41L17.17 7H13c-1.1 0-2 .9-2 2v4H7.83l1.58-1.59L8 10l-4 4 4 4 1.41-1.41L7.83 15H13c1.1 0 2-.9 2-2V9h2.17l-1.58 1.59L17 12l4-4-4-4z"})}),fork:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:(0,i.jsx)("path",{d:"M14 4l-4 4 1.41 1.41L13 7.83V12c0 1.1-.9 2-2 2H7.83l1.58-1.59L8 11l-4 4 4 4 1.41-1.41L7.83 16H11c2.21 0 4-1.79 4-4V7.83l1.59 1.58L18 8l-4-4z"})})},eh={depart:"Start moving",arrive:"You have arrived","turn-left":"Turn left","turn-right":"Turn right","turn-slight-left":"Keep left","turn-slight-right":"Keep right","turn-sharp-left":"Turn sharp left","turn-sharp-right":"Turn sharp right",straight:"Continue straight","new name":"Continue",continue:"Continue",roundabout:"At roundabout","exit roundabout":"Exit roundabout",rotary:"At roundabout",uturn:"Make a U-turn",merge:"Merge","on ramp":"On ramp","off ramp":"Off ramp",fork:"At fork","end of road":"End of road"},ep=(0,o.forwardRef)((e,t)=>{let{onRouteChange:n,onWaypointsChange:r,onSelectingWaypoint:l,onClose:a}=e,[c,s]=(0,o.useState)(H.jSA.DRIVING),[u,d]=(0,o.useState)([{lat:0,lng:0,name:""},{lat:0,lng:0,name:""}]),[h,p]=(0,o.useState)(null),[f,g]=(0,o.useState)([]),[x,m]=(0,o.useState)(0),[v,b]=(0,o.useState)(!1),[w,{loading:y}]=(0,H.syC)(),C=(0,o.useMemo)(()=>u.filter(e=>0!==e.lat||0!==e.lng),[u]),j=C.length>=2,k=(0,o.useCallback)(e=>{s(e.currentTarget.value),g([])},[]),z=(0,o.useCallback)(e=>{let t=Number(e.currentTarget.dataset.index);p(t),null==l||l(t)},[l]),I=(0,o.useCallback)((e,t,n,i)=>{d(o=>{let l=[...o];return l[e]={lat:t,lng:n,name:i||`${t.toFixed(5)}, ${n.toFixed(5)}`},null==r||r(l),l}),p(null),null==l||l(null)},[r,l]);(0,o.useImperativeHandle)(t,()=>({setWaypointCoords:I,getSelectingIndex:()=>h}),[I,h]);let M=(0,o.useCallback)(()=>{d(e=>{let t=[...e];return t.splice(e.length-1,0,{lat:0,lng:0,name:""}),t})},[]),$=(0,o.useCallback)(e=>{let t=Number(e.currentTarget.dataset.index);u.length<=2||d(e=>
20{let n=e.filter((e,n)=>n!==t);return null==r||r(n),n})},[u.length,r]),A=(0,o.useCallback)(async()=>{var e,t,r;if(!j)return;let i=(null!=(e=null==(t=(await w({variables:{data:{waypoints:C.map(e=>({lat:e.lng,lng:e.lat})),profile:c,overview:"full",steps:!0,alternatives:!0}}})).data)?void 0:t.osrmRoutes.routes)?e:[]).map(e=>{var t,n,r,i,o,l;return{distance:e.distance,duration:null!=(t=e.duration)?t:0,geometry:null!=(n=e.geometry)?n:"",summary:null!=(r=null==(o=e.legs)?void 0:o.map(e=>null==e?void 0:e.summary).join(" → "))?r:"",steps:null!=(i=null==(l=e.legs)?void 0:l.flatMap(e=>{var t,n;return null!=(t=null==e||null==(n=e.steps)?void 0:n.map(e=>{var t,n;return{distance:null!=(t=null==e?void 0:e.distance)?t:0,duration:null!=(n=null==e?void 0:e.duration)?n:0,name:null==e?void 0:e.name,maneuver:null==e?void 0:e.maneuver}}))?t:[]}))?i:[]}});if(g(i),m(0),null==(r=i[0])?void 0:r.geometry){let e=R(i[0].geometry);null==n||n(e)}},[j,C,c,w,n]),S=(0,o.useCallback)(e=>{let t=Number(e.currentTarget.dataset.index);m(t);let r=f[t];if(null==r?void 0:r.geometry){let e=R(r.geometry);null==n||n(e)}},[f,n]),L=(0,o.useCallback)(e=>{e.stopPropagation(),b(e=>!e)},[]),B=(0,o.useCallback)(()=>{d([{lat:0,lng:0,name:""},{lat:0,lng:0,name:""}]),g([]),b(!1),null==n||n(null),null==r||r([])},[n,r]),E=f[x];return(0,i.jsxs)(V,{children:[(0,i.jsx)(es,{onClick:a,title:"Close",children:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,i.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})}),(0,i.jsxs)(P,{children:[(0,i.jsxs)(O,{children:[(0,i.jsxs)(N,{$active:c===H.jSA.DRIVING,value:H.jSA.DRIVING,onClick:k,title:"By car",children:[(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,i.jsx)("path",{d:"M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z"})}),"Car"]}),(0,i.jsxs)(N,{$active:c===H.jSA.BIKE,value:H.jSA.BIKE,onClick:k,title:"By bike",children:[(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,i.jsx)("path",{d:"M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5zm5.8-10l2.4-2.4.8.8c1.3 1.3 3 2.1 5.1 2.1V9c-1.5 0-2.7-.6-3.6-1.5l-1.9-1.9c-.5-.4-1-.6-1.6-.6s-1.1.2-1.4.6L7.8 8.4c-.4.4-.6.9-.6 1.4 0 .6.2 1.1.6 1.4L11 14v5h2v-6.2l-2.2-2.3zM19 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"})}),"Bike"]}),(0,i.jsxs)(N,{$active:c===H.jSA.FOOT,value:H.jSA.FOOT,onClick:k,title:"On foot",children:[(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,i.jsx)("path",{d:"M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1L6 8.3V13h2V9.6l1.8-.7"})}),"Walk"]})]}),(0,i.jsx)(T,{children:u.map((e,t)=>{let n=0===t,r=t===u.length-1,o=n?"A":r?"B":String(t),l=`wp-${e.lat}-${e.lng}-${t}`;return(0,i.jsxs)(F,{children:[(0,i.jsx)(K,{$type:n?"start":r?"end":"via",children:o}),(0,i.jsx)(W,{value:e.name||"",placeholder:n?"From":r?"To":"Via point",readOnly:!0,"data-index":t,onClick:z,style:{cursor:"pointer",backgroundColor:h===t?"#e8f0fe":"white"}}),(0,i.jsxs)(Z,{children:[(0,i.jsx)(_,{"data-index":t,onClick:z,title:"Select on map",children:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"16",height:"16",children:(0,i.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"})})}),!n&&!r&&(0,i.jsx)(_,{"data-index":t,onClick:$,title:"Remove",children:(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"
20currentColor",width:"16",height:"16",children:(0,i.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})]})]},l)})}),(0,i.jsxs)(U,{onClick:M,children:[(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"16",height:"16",children:(0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}),"Add destination"]}),(0,i.jsxs)(D,{children:[(0,i.jsx)(G,{onClick:A,disabled:!j||y,children:y?"Building...":"Build route"}),(0,i.jsx)(q,{onClick:B,children:"Clear"})]})]}),f.length>0&&(0,i.jsxs)(Q,{children:[f.map((e,t)=>{var n;let r,o;return(0,i.jsxs)(X,{$selected:t===x,"data-index":t,onClick:S,children:[(0,i.jsx)(Y,{children:(0,i.jsx)(J,{children:e.summary||`Route ${t+1}`})}),(0,i.jsxs)(ee,{children:[(0,i.jsx)(et,{children:(r=Math.floor((n=e.duration)/3600),o=Math.floor(n%3600/60),r>0?`${r} h ${o} min`:`${o} min`)}),(0,i.jsx)(et,{children:eu(e.distance)})]}),t===x&&(0,i.jsx)("button",{onClick:L,style:{marginTop:8,background:"none",border:"none",color:"#1a73e8",cursor:"pointer",fontSize:13},children:v?"Hide details":"Show details"})]},`route-${e.distance}-${e.duration}`)}),v&&E&&(0,i.jsx)(en,{children:E.steps.map((e,t)=>{var n,r,o,l,a,c,s;let u;return(0,i.jsxs)(er,{children:[(0,i.jsx)(ei,{children:function(e,t){if(!e)return ed.straight;if("turn"===e&&t){let e=`turn-${t}`;if(ed[e])return ed[e]}return"new name"===e||"continue"===e?ed.straight:ed[e]||ed.straight}(null==(n=e.maneuver)?void 0:n.type,null==(r=e.maneuver)?void 0:r.modifier)}),(0,i.jsxs)(eo,{children:[(0,i.jsx)(el,{children:(a=null==(o=e.maneuver)?void 0:o.type,c=null==(l=e.maneuver)?void 0:l.modifier,s=e.name,u="",u="turn"===a&&c?eh[`turn-${c}`]||"Turn":a&&eh[a]||"Continue",s&&(u+=` on ${s}`),u)}),(0,i.jsx)(ea,{children:eu(e.distance)})]})]},`step-${t}-${e.distance}`)})})]}),y&&(0,i.jsx)(ec,{children:"Building route..."})]})});ep.displayName="RoutePanel";let ef=e=>{let{routePanelRef:t}=e,n=(0,v.Po)({click:e=>{var n,r;let i=null==(n=t.current)?void 0:n.getSelectingIndex();null!=i&&(null==(r=t.current)||r.setWaypointCoords(i,e.latlng.lat,e.latlng.lng))}});return(0,o.useEffect)(()=>{var e;null!=(null==(e=t.current)?void 0:e.getSelectingIndex())?n.getContainer().style.cursor="crosshair":n.getContainer().style.cursor=""}),null};n(31620);let eg="/_next/static/media/icon.1e67f0d0.svg",ex=()=>{let e=(0,v.ko)(),[t,n]=(0,o.useState)(),r=(0,o.useCallback)(t=>{t.preventDefault(),t.stopPropagation(),navigator.geolocation.getCurrentPosition(t=>{n(t),e.setView([t.coords.latitude,t.coords.longitude],16)},console.error)},[e]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)($,{position:"topleft",children:(0,i.jsx)("a",{href:"./",title:"My location",onClick:r,children:(0,i.jsx)("img",{src:eg})})}),t?(0,i.jsx)(g,{position:[t.coords.latitude,t.coords.longitude],icon:(0,u.icon)({iconUrl:eg,className:"user-position"})}):null]})},em=()=>(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ex,{})});var ev=n(4031),eb=n(73918);let ew="/styles/osm-bright/256/{z}/{x}/{y}.png";if(!ew)throw Error("Can not get process.env.NEXT_PUBLIC_TILE_SERVER_URL");let ey=e=>{let{updateRouterOnChangeCoords:t,position:n,showExpander:r,markers:a,...c}=e,s=(0,C.useRouter)(),u=(0,o.useRef)(s);u.current=s;let[x,v]=(0,o.useState)(n.zoom);(0,o.useEffect)(()=>{v(n.zoom)},[n.zoom]);let b=(0,o.useCallback)(e=>{e&&v(e)},[]),j=(0,H.Tue)({variables:{where:{withCoords:!0}}}),k=(0,o.useMemo)(()=>{var e,t,n;return null!=(e=null==(n=j.data)||null==(t=n.response)?void 0:t.map(e=>{if(!e.coords)return;let{lat:t,lng:n,alt:r}=e.coords;return{...e,lat:t,lng:n,alt:r,uri:(0,eb.K)(e)}}).filter(e=>!!e&&!!e.lat&&!!e.lng))?e:[]},[j]),z=(0,o.useMemo)(()=>((e,t)=>{let n;if(!e.length)return[];let r=t in(n={3:500,4:350,5:200,6:120,7:50,8:30,9:15,10:8,11:4,12:1.5,13:.8,14:.4,15:.2,16:.1,17:.05,18:.03,19:.015,20:.01,21:.005})?n[t]:100/Math.pow(1.8,t-3),i=[],o=new Set;return e.forEach(t=>{if(o.has(t.id))return;o.add(t.id);let n=e.filter(e=>{var n,i;let l,a,c;return e.lat&&e.lng&&t.lat&&t.lng&&!o.has(e.id)&&(n={lat:t.lat,lng:t.lng},l=((i={lat:e.lat,lng:e.lng}).lat-n.lat)*Math.PI/180,a=(i.lng-n.lng)*Math.PI/180,2*Math.atan2(Math.sqrt(c=Math.sin(l/2)*
20Math.sin(l/2)+Math.cos(n.lat*Math.PI/180)*Math.cos(i.lat*Math.PI/180)*Math.sin(a/2)*Math.sin(a/2)),Math.sqrt(1-c))*6371<=r)});if(n.length>0){let e=[t,...n],r=e.reduce((e,t)=>{var n;return e+(null!=(n=t.lat)?n:0)},0)/e.length,l=e.reduce((e,t)=>{var n;return e+(null!=(n=t.lng)?n:0)},0)/e.length;i.push({id:`cluster-${t.id}`,lat:r,lng:l,name:`Group (${e.length})`,type:"cluster",markers:e,count:e.length,uri:void 0}),n.forEach(e=>o.add(e.id))}else{let{lat:e,lng:n}=t;if(!e||!n)return;i.push({id:t.id,lat:e,lng:n,name:t.name,uri:t.uri,type:"item"})}}),i})(k,x),[k,x]),I=(0,o.useMemo)(()=>({click:e=>{var t;let n=null==(t=e.target.options)?void 0:t["data-id"];if(n){let e=null==z?void 0:z.find(e=>e.id===n);(null==e?void 0:e.uri)&&s.push(e.uri)}}}),[z,s]),[M,$]=(0,o.useState)(null),[A,S]=(0,o.useState)([]),[,B]=(0,o.useState)(null),[R,V,O]=(0,ev.C)(!1),P=(0,o.useRef)(null),N=(0,o.useMemo)(()=>d().divIcon({className:"route-marker-start",html:'<div style="background:#34a853;color:white;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:12px;box-shadow:0 2px 4px rgba(0,0,0,0.3);">A</div>',iconSize:[24,24],iconAnchor:[12,12]}),[]),T=(0,o.useMemo)(()=>d().divIcon({className:"route-marker-end",html:'<div style="background:#ea4335;color:white;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:12px;box-shadow:0 2px 4px rgba(0,0,0,0.3);">B</div>',iconSize:[24,24],iconAnchor:[12,12]}),[]),F=(0,o.useCallback)(e=>d().divIcon({className:"route-marker-via",html:`<div style="background:#fbbc04;color:white;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:11px;box-shadow:0 2px 4px rgba(0,0,0,0.3);">${e}</div>`,iconSize:[20,20],iconAnchor:[10,10]}),[]);return(0,i.jsxs)(f.P,{...c,children:[(0,i.jsxs)(l.W,{center:n.center,zoom:n.zoom,scrollWheelZoom:!0,maxZoom:18,children:[(0,i.jsx)(w,{routerRef:u,updateRouterOnChangeCoords:t,onZoomChange:b}),r&&(0,i.jsx)(L,{position:"topright"}),(0,i.jsx)(E,{position:"topleft",onClick:V}),R&&(0,i.jsx)(ef,{routePanelRef:P}),M&&(0,i.jsx)(h,{positions:M,pathOptions:{color:"#1a73e8",weight:5,opacity:.8}}),A.map((e,t)=>{if(0===e.lat&&0===e.lng)return null;let n=0===t,r=t===A.length-1,o=n?N:r?T:F(t);return(0,i.jsx)(g,{position:[e.lat,e.lng],icon:o},`route-wp-${t}`)}),(0,i.jsx)(p.e,{url:ew}),(0,i.jsx)(em,{}),null==z?void 0:z.map(e=>{var t,n;if(e.type===y.cluster)return(0,i.jsx)(m,{type:e.type,latitude:e.lat,longitude:e.lng,geoObject:{id:e.id,name:`Group (${e.count||0})`,count:null!=(t=e.count)?t:0}},e.id);if(e.type===y.item){let{uri:t}=e;if(t)return(0,i.jsx)(m,{type:e.type,latitude:e.lat,longitude:e.lng,geoObject:{id:e.id,lat:e.lat,lng:e.lng,name:null!=(n=e.name)?n:"",uri:t},eventHandlers:I},e.id)}}),null==a?void 0:a.map((e,t)=>(0,i.jsx)(g,{position:[e.coords.lat,e.coords.lng]},`custom-marker-${t}`))]}),R&&(0,i.jsx)(ep,{ref:P,onRouteChange:$,onWaypointsChange:S,onSelectingWaypoint:B,onClose:O})]})}},73138:(e,t,n)=>{"use strict";n.d(t,{Po:()=>l,ko:()=>o});var r=n(35073),i=n(14232);function o(){return(0,r.U$)().map}function l(e){let t=o();return(0,i.useEffect)(function(){return t.on(e),function(){t.off(e)}},[t,e]),t}},73918:(e,t,n)=>{"use strict";n.d(t,{K:()=>l,r:()=>a});var r=n(37876),i=n(48230),o=n.n(i);function l(e){let{id:t,uri:n}=e;return n||`/concepts/${t}`}n(14232);let a=e=>{let{object:t,children:n,className:i}=e;if(!t)return null;let a=l(t);return(0,r.jsx)(o(),{href:a,className:i,children:n||t.name||t.id})}},76002:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var r=n(98755),i=n(48420),o=n(42526),l=n(16895);let a=(0,r.X3)(function({url:e,...t},n){let r=new l.TileLayer(e,(0,i.P)(t,n));return(0,o.Q)(r,n)},function(e,t,n){!function(e,t,n){let{opacity:r,zIndex:i}=t;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=i&&i!==n.zIndex&&e.setZIndex(i)}(e,t,n);let{url:r}=t;null!=r&&r!==n.url&&e.setUrl(r)})},98755:(e,t,n)=>{"use strict";n.d(t,{T7:()=>f,Nq:()=>g,wk:()=>x,Lt:()=>m,X3:()=>v});var r=n(14232),i=n(98477),o=n(35073);function l(e){return(0,r.forwardRef)(function(t,n){let{instance:i,context:l}=e(t).current;(0,r.useImperativeHandle)(n,()=>i);let{children:a}=t;return null==a?null:r.createElement(o.dk,{value:l},a)})}function a(e){return(0,r.forwardRef)(function(t,n){let{instance:i}=e(t).current;return(0,r.useImperativeHandle)(n,()=>i),null})}function c(e,t){let n=(0,r.useRef)(t);(0,r.useEffect)(function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function s(e,t){let n=(0,r.useRef)(void 0);(0,r.useEffect)(function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.
20instance.off(n.current),n.current=null}},[e,t])}var u=n(48420),d=n(42526);function h(e,t){(0,r.useEffect)(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){t.layerContainer?.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function p(e){return function(t){let n=(0,o.U$)(),r=e((0,u.P)(t,n),n);return c(n.map,t.attribution),s(r.current,t.eventHandlers),h(r.current,n),r}}function f(e){var t;return a((t=(0,d.K)(function(t,n){return(0,d.Q)(e(t),n)}),function(e){let n=(0,o.U$)(),i=t(e,n),{instance:l}=i.current,a=(0,r.useRef)(e.position),{position:c}=e;return(0,r.useEffect)(function(){return l.addTo(n.map),function(){l.remove()}},[n.map,l]),(0,r.useEffect)(function(){null!=c&&c!==a.current&&(l.setPosition(c),a.current=c)},[l,c]),i}))}function g(e,t){return l(p((0,d.K)(e,t)))}function x(e,t){var n,l;return n=(0,d.K)(e),l=function(e,r){let i=(0,o.U$)(),l=n((0,u.P)(e,i),i);return c(i.map,e.attribution),s(l.current,e.eventHandlers),t(l.current,i,e,r),l},(0,r.forwardRef)(function(e,t){let[n,o]=(0,r.useState)(!1),{instance:a}=l(e,o).current;(0,r.useImperativeHandle)(t,()=>a),(0,r.useEffect)(function(){n&&a.update()},[a,n,e.children]);let c=a._contentNode;return c?(0,i.createPortal)(e.children,c):null})}function m(e,t){var n;return l((n=(0,d.K)(e,t),function(e){var t;let i,l=(0,o.U$)(),a=n((0,u.P)(e,l),l);return s(a.current,e.eventHandlers),h(a.current,l),t=a.current,i=(0,r.useRef)(void 0),(0,r.useEffect)(function(){if(e.pathOptions!==i.current){let n=e.pathOptions??{};t.instance.setStyle(n),i.current=n}},[t,e]),a}))}function v(e,t){return a(p((0,d.K)(e,t)))}}}]);

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.