PageSourceSearch

https://ip8.com/_next/static/chunks/8843.bb387a934bce843d.js

js ip8.com collected 2026-10-04 00:07:27 UTC 6,519 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8843],{93080:function(t){t.exports=function(t,e){return!(t[0]>e[2])&&!(t[2]<e[0])&&!(t[3]<e[1])&&!(t[1]>e[3])}},47456:function(t,e){var i,n,o;n=[e,t],void 0!==(o="function"==typeof(i=function(t,e){"use strict";var i={timeout:5e3,jsonpCallback:"callback"};function n(t){try{delete window[t]}catch(e){window[t]=void 0}}function o(t){var e=document.getElementById(t);e&&document.getElementsByTagName("head")[0].removeChild(e)}e.exports=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t,a=e.timeout||i.timeout,s=e.jsonpCallback||i.jsonpCallback,u=void 0;return new Promise(function(i,l){var c=e.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),d=s+"_"+c;window[c]=function(t){i({ok:!0,json:function(){return Promise.resolve(t)}}),u&&clearTimeout(u),o(d),n(c)},r+=-1===r.indexOf("?")?"?":"&";var m=document.createElement("script");m.setAttribute("src",""+r+s+"="+c),e.charset&&m.setAttribute("charset",e.charset),e.nonce&&m.setAttribute("nonce",e.nonce),e.referrerPolicy&&m.setAttribute("referrerPolicy",e.referrerPolicy),e.crossorigin&&m.setAttribute("crossorigin","true"),m.id=d,document.getElementsByTagName("head")[0].appendChild(m),u=setTimeout(function(){l(Error("JSONP request to "+t+" timed out")),n(c),o(d),window[c]=function(){n(c)}},a),m.onerror=function(){l(Error("JSONP request to "+t+" failed")),n(c),o(d),u&&clearTimeout(u)}})}})?i.apply(e,n):i)&&(t.exports=o)},44115:function(t,e,i){var n=i(30447),o=i(47456),r=i(93080),a=["Aerial","AerialWithLabels","AerialWithLabelsOnDemand","Road","RoadOnDemand","CanvasLight","CanvasDark","CanvasGray","OrdnanceSurvey"],s=["AerialWithLabelsOnDemand","RoadOnDemand"];n.TileLayer.Bing=n.TileLayer.extend({options:{bingMapsKey:null,imagerySet:"Aerial",culture:"en-US",minZoom:1,minNativeZoom:1,maxNativeZoom:19},statics:{METADATA_URL:"https://dev.virtualearth.net/REST/v1/Imagery/Metadata/{imagerySet}?key={bingMapsKey}&include=ImageryProviders&uriScheme=https&c={culture}",POINT_METADATA_URL:"https://dev.virtualearth.net/REST/v1/Imagery/Metadata/{imagerySet}/{lat},{lng}?zl={z}&key={bingMapsKey}&uriScheme=https&c={culture}"},initialize:function(t){if("string"==typeof t&&(t={bingMapsKey:t}),t&&t.BingMapsKey&&(t.bingMapsKey=t.BingMapsKey,console.warn("use options.bingMapsKey instead of options.BingMapsKey")),!t||!t.bingMapsKey)throw Error("Must supply options.BingMapsKey");if(t=n.setOptions(this,t),0>a.indexOf(t.imagerySet))throw Error("'"+t.imagerySet+"' is an invalid imagerySet, see https://github.com/digidem/leaflet-bing-layer#parameters");t&&t.style&&0>s.indexOf(t.imagerySet)&&console.warn("Dynamic styles will only work with these imagerySet choices: "+s.join(", "));var e=n.Util.template(n.TileLayer.Bing.METADATA_URL,{bingMapsKey:this.options.bingMapsKey,imagerySet:this.options.imagerySet,culture:this.options.culture});this._imageryProviders=[],this._attributions=[],this._fetch=o(e,{jsonpCallback:"jsonp"}).then(function(t){return t.json()}).then(this._metaDataOnLoad.bind(this)).catch(console.error.bind(console)),n.Browser.android||this.on("tileunload",this._onTileRemove)},createTile:function(t,e){var i=document.createElement("img");return n.DomEvent.on(i,"load",n.bind(this._tileOnLoad,this,e,i)),n.DomEvent.on(i,"error",n.bind(this._tileOnError,this,e,i)),this.options.crossOrigin&&(i.crossOrigin=""),i.alt="",this._url?i.src=this.getTileUrl(t):this._fetch.then((function(){i.src=this.getTileUrl(t)}).bind(this)).catch(function(t){console.error(t),e(t)}),i},getTileUrl:function(t){var e=function(t,e,i){for(var n="",o=i;o>0;o--){var r=0,a=1<<o-1;(t&a)!=0&&r++,(e&a)!=0&&(r+=2),n+=r.toString()}return n}(t.x,t.y,t.z),i=n.Util.template(this._url,{quadkey:e,subdomain:this._getSubdomain(t),culture:this.options.culture});return"string"==typeof this.options.style&&(i+="&st="+this.options.style),i},onAdd:function(t){t.on("moveend",this._updateAttribution,this),n.TileLayer.prototype.onAdd.call(this,t),this._attributions.forEach(function(e){t.attributionControl.addAttribution(e)})},onRemove:function(t){t.off("moveend",this._updateAttribution,this),this._attributions.forEach(function(e){t.attributionControl.removeAttribution(e)}),n.TileLayer.prototype.onRemove.call(this,t)},getMetaData:function(t,e){return this._map||t&&e?(t=t||this._map.getCenter(),e=e||this._map.getZoom(),o(n.Util.template(n.TileLayer.Bing.POINT_METADATA_URL,{bingMapsKey:this.options.bingMapsKey,imagerySet:this.options.imagerySet,z:e,lat:t.lat,lng:t.lng}),{jsonpCallback:"jsonp"}).then(function(t){return t.json()}).catch(console.error.bind(console))):Promise.reject(Error("If layer is not attached to map, you must provide LatLng and zoom"))},_metaDataOnLoad:function(t){if(200!==t.statusCode)throw Error("Bing Imagery Metadata error: \n"+JSON.stringify(t,null,"  "));var e=t.resourceSets[0].resources[0];return this._url=e.imageUrl,this._imageryProviders=e.imageryProviders||[],this.options.subdomains=e.imageUrlSubdomains,this._updateAttribution(),Promise.resolve()},_updateAttribution:function(){var t=this._map;if(t&&t.attributionControl){var e,i=t.getZoom(),n=[(e=t.getBounds().toBBoxString().split(","))[1],e[0],e[3],e[2]];this._fetch.then((function(){var e=this._getAttributions(n,i),o=this._attributions;e.forEach(function(e){o.indexOf(e)>-1||t.attributionControl.addAttribution(e)}),o.filter(function(i){e.indexOf(i)>-1||t.attributionControl.removeAttribution(i)}),this._attributions=e}).bind(this))}},_getAttributions:function(t,e){return this._imageryProviders.reduce(function(i,n){for(var o=0;o<n.coverageAreas.length;o++)if(r(t,n.coverageAreas[o].bbox)&&e>=n.coverageAreas[o].zoomMin&&e<=n.coverageAreas[o].zoomMax){i.push(n.attribution);break}return i},[])}}),n.tileLayer.bing=function(t){return new n.TileLayer.Bing(t)},t.exports=n.TileLayer.Bing}
1,98843:function(t,e,i){"use strict";i.r(e);var n=i(57437),o=i(2265),r=i(30447),a=i.n(r);i(44115);let s=a().icon({iconUrl:"/my-icon.svg",iconSize:[32,32]});e.default=t=>{let{id:e,lat:i,lng:u,city:l,country:c}=t,d=null;return(0,o.useEffect)(()=>{if(document.getElementById(e)&&void 0!==i&&void 0!==u)return d=new(a()).Map(e,{center:new r.LatLng(i,u),zoom:8}),a().tileLayer.bing({bingMapsKey:"AqzUVLG04-c2CAajNxapsz1Av4UAU5o2POvdvI610f746-23vHWmeZaSNXGr0dS0",imagerySet:"Road"}).addTo(d),a().marker(new r.LatLng(i,u),{icon:s}).addTo(d).bindTooltip('<div class="flex"> '.concat(l,"-").concat(c,"</div>")),()=>{d&&d.remove()}},[i,u,d]),(0,n.jsx)("div",{id:e,style:{zIndex:9},className:"g-map"})}}}]);

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.