1import{$ as e,I as t,Q as n}from"./DN3mldz5.js";import{n as r,r as i}from"./NPgwqwWw.js";var a=`lens.locale`,o=e(null),s=e=>!!e&&i.some(t=>t.code===e);function c(){return t(o)}function l(e){if(s(e)){n(o,e,!0);try{localStorage.setItem(a,e)}catch{}}}function u(e){s(e)&&n(o,e,!0)}function d(){try{let e=localStorage.getItem(a);return s(e)?e:null}catch{return null}}function f(){if(t(o))return;let e=d();e&&n(o,e,!0)}var p=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),m=RegExp(`^/(${i.map(e=>p(e.code)).join(`|`)})(/|$)`,`i`),h=`lens.geo`,g=864e5;function _(e){let t=e.match(m);return t?t[1].toLowerCase():null}function v(){return c()}function y(){return d()}function b(e){l(e)}function x(e){return _(e)??v()??`en-in`}function S(e){return i.find(t=>t.code===e)}function C(e){if(!e)return r;let t=e.toUpperCase(),n=i.find(e=>e.countries.includes(t));return n?n.code:r}function w(e){let t=_(e);return t===null||t===`en-in`}var T=[{url:`https://www.cloudflare.com/cdn-cgi/trace`,kind:`text`,map:e=>{if(typeof e!=`string`)return null;let t={};for(let n of e.split(` 2`)){let[e,r]=n.split(`=`);e&&(t[e]=r)}return t.ip?{ip:t.ip,country_code:(t.loc??``).toUpperCase()}:null}},{url:`https://ipapi.co/json/`,kind:`json`,map:e=>{let t=e;return t?.ip?{ip:t.ip,country_code:t.country_code??t.country,city:t.city,region:t.region,country_name:t.country_name}:null}},{url:`https://ipwho.is/`,kind:`json`,map:e=>{let t=e;return!t?.success||!t.ip?null:{ip:t.ip,country_code:t.country_code,city:t.city,region:t.region,country_name:t.country}}}];async function E(e){try{let t=await fetch(e.url,{mode:`cors`,cache:`no-store`});if(!t.ok)return null;let n=e.kind===`json`?await t.json():await t.text();return e.map(n)}catch{return null}}var D=null;async function O(){try{let e=localStorage.getItem(h);if(e){let t=JSON.parse(e);if(t.expiresAt>Date.now())return t.data}}catch{}return D||(D=(async()=>{for(let e of T){let t=await E(e);if(t){try{localStorage.setItem(h,JSON.stringify({data:t,expiresAt:Date.now()+g}))}catch{}return t}}return null})().finally(()=>{D=null}),D)}export{w as a,b as c,u as d,x as i,f as l,O as n,C as o,S as r,y as s,_ as t,l as u};
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.