PageSourceSearch

https://www.geovibes.com/_next/static/chunks/2236.6a896171565fbce9.js

js geovibes.com collected 2026-10-01 13:56:17 UTC 5,324 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2236],{42236:(t,e,l)=>{l.r(e),l.d(e,{default:()=>c});var a=l(34606),i=l.n(a),n=l(2973),o=l(46809),r=l(56786);async function c(t){let e,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";await document.fonts.ready;let c=document.createElement("canvas");c.width=o.W,c.height=o.H;let d=c.getContext("2d"),{user:s,profileStats:u,countryStats:h,visitedCountries:g}=t,[m,f,p,P]=await Promise.all([(()=>{let t=Math.floor(8*Math.random())+1;return(0,o.aN)("".concat("https://cdn.geovibes.com/stories/templates","/cover-").concat(t,".jpg"),1080)})().catch(()=>null),(0,o.Q2)("/img/logo/logo-full.png"),s.profilePicture?(0,o.aN)(s.profilePicture,256).catch(()=>null):null,(e=g||[],new Promise(t=>{let l=document.createElement("div");l.style.cssText="position:fixed;left:-9999px;top:0;width:".concat(1e3,"px;height:").concat(690,"px;"),document.body.appendChild(l);let a=new(i()).Map({container:l,style:n.Jq,center:[10,48],zoom:1,projection:{type:"mercator"},renderWorldCopies:!1,preserveDrawingBuffer:!0,interactive:!1,attributionControl:!1,fadeDuration:0}),r=()=>{a.remove(),document.body.removeChild(l)},c=setTimeout(()=>{r(),t(null)},15e3);a.once("load",()=>{a.setPaintProperty("bg","background-color","rgba(0,0,0,0)"),a.setPaintProperty("countries","fill-color","rgba(230,232,236,0.9)"),a.setPaintProperty("visited","fill-color",o.bg),a.setFilter("countries",["!=",["get","ISO3166-1-Alpha-3"],"ATA"]),a.setFilter("visited",["all",["in",["get","ISO3166-1-Alpha-3"],["literal",e]],["!=",["get","ISO3166-1-Alpha-3"],"ATA"]]),a.setPaintProperty("outline","line-color","rgba(160,165,175,0.55)"),a.setPaintProperty("outline","line-width",.8),a.once("idle",()=>{clearTimeout(c);try{let e=a.getCanvas().toDataURL("image/png");r(),t(e)}catch(e){r(),t(null)}})})}))]),b=P?await (0,o.Q2)(P).catch(()=>null):null;if(d.fillStyle=o.BG,d.fillRect(0,0,o.W,o.H),m){let t,e,l,a,i=m.naturalWidth/m.naturalHeight,n=o.W/o.H;i>n?(t=(e=m.naturalHeight)*n,l=(m.naturalWidth-t)/2,a=0):(e=(t=m.naturalWidth)/n,l=0,a=(m.naturalHeight-e)/2),d.drawImage(m,l,a,t,e,0,0,o.W,o.H)}if(d.fillStyle="#010F2380",d.fillRect(0,0,o.W,o.H),f){let t=f.naturalWidth/f.naturalHeight*240;d.drawImage(f,(o.W-t)/2,70,t,240)}let x=[l.countries||"COUNTRIES",l.cities||"CITIES",l.world||"OF THE WORLD",l.trips||"TRIPS"],y=[(0,r.jd)(u.countries),(0,r.jd)(u.cities),"".concat(h.percentage,"%"),(0,r.jd)(u.trips)],v=(o.W-2*o.xS)/4;for(let t=0;t<4;t++){let e=o.xS+v*t+v/2;(0,o.oV)(d,y[t],e,380,96,"700"),d.font="600 36px ".concat(o.mE),d.textAlign="center",d.textBaseline="middle",d.fillStyle="#FFFFFF",d.fillText(x[t].toUpperCase(),e,460)}let w=o.xS-20,T=o.W-2*w,S=T/1e3*690;b&&d.drawImage(b,w,560,T,S);let W=560+S+130,C=o.W/2;d.beginPath(),d.arc(C,W,78,0,2*Math.PI),d.strokeStyle=o.bg,d.lineWidth=8,d.stroke(),p?(0,o.Jv)(d,p,C,W,70):(d.beginPath(),d.arc(C,W,70,0,2*Math.PI),d.fillStyle="rgba(255,255,255,0.2)",d.fill()),d.font="500 42px ".concat(o.mE),d.fillStyle="rgba(255,255,255,0.8)",d.textAlign="center",d.textBaseline="middle",d.fillText("@".concat(s.nickname),o.W/2,W+70+55);let F="string"==typeof u.km?u.km:(0,r.jd)(u.km,a),I=W+70+55+30+110;return(0,o.oV)(d,F,o.W/2,I,140,"700"),d.font="600 44px ".concat(o.mE),d.fillStyle="#FFFFFF",d.textAlign="center",d.textBaseline="middle",d.fillText(l.kilometers||"KM TRAVELED",o.W/2,I+90),new Promise(t=>{c.toBlob(e=>t(e),"image/png")})}},46809:(t,e,l)=>{l.d(e,{$M:()=>r,BG:()=>o,H:()=>i,Jv:()=>g,Q2:()=>s,W:()=>a,aN:()=>h,bg:()=>c,kn:()=>p,mE:()=>n,mb:()=>f,oV:()=>m,xS:()=>d});let a=1080,i=1920,n="'Baloo 2', sans-serif",o="#010F23",r="#081638",c="#DE5739",d=60,s=t=>new Promise((e,l)=>{let a=new Image;a.onload=()=>e(a),a.onerror=()=>l(Error("Failed: ".concat(t))),a.src=t}),u=async t=>{let e=await fetch(t);if(!e.ok)throw Error("HTTP ".concat(e.status));let l=await e.blob(),a=URL.createObjectURL(l);try{return await s(a)}finally{URL.revokeObjectURL(a)}},h=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:128;return u("/_next/image?url=".concat(encodeURIComponent(t),"&w=").concat(e,"&q=90"))},g=(t,e,l,a,i)=>{t.save(),t.beginPath(),t.arc(l,a,i,0,2*Math.PI),t.clip();
1let n=2*i,o=Math.max(n/e.naturalWidth,n/e.naturalHeight),r=e.naturalWidth*o,c=e.naturalHeight*o;t.drawImage(e,l-r/2,a-c/2,r,c),t.restore()},m=function(t,e,l,a,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"600",r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"center";t.font="".concat(o," ").concat(i,"px ").concat(n),t.textAlign=r,t.textBaseline="middle";let c=t.measureText(e),d="center"===r?l-c.width/2:l,s=t.createLinearGradient(d,0,d+c.width,0);s.addColorStop(0,"#F64C26"),s.addColorStop(1,"#F46A00"),t.fillStyle=s,t.fillText(e,l,a)},f=(t,e,l,a,i,n)=>{t.lineWidth=i,t.lineCap="round",t.beginPath(),t.arc(e,l,a,0,2*Math.PI),t.strokeStyle="rgba(95, 104, 117, 1)",t.stroke(),t.beginPath(),t.arc(e,l,a,-Math.PI/2,-Math.PI/2+n/100*Math.PI*2),t.strokeStyle=c,t.stroke()},p=(t,e,l,a,i,n,o)=>{t.beginPath(),t.moveTo(e+n,l),t.lineTo(e+a-n,l),t.quadraticCurveTo(e+a,l,e+a,l+n),t.lineTo(e+a,l+i-n),t.quadraticCurveTo(e+a,l+i,e+a-n,l+i),t.lineTo(e+n,l+i),t.quadraticCurveTo(e,l+i,e,l+i-n),t.lineTo(e,l+n),t.quadraticCurveTo(e,l,e+n,l),t.closePath(),t.fillStyle=o,t.fill()}}}]);

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.