1import{B as N}from"./BaseElement.DUV4NqCX.min.js";import{t as b}from"./custom-element.BhZVzxrc.min.js";import"./lit-element.mvcqtviJ.min.js";var U=Object.getOwnPropertyDescriptor,g=t=>{throw TypeError(t)},P=(t,e,n,r)=>{for(var s=r>1?void 0:r?U(e,n):e,o=t.length-1,d;o>=0;o--)(d=t[o])&&(s=d(s)||s);return s},y=(t,e,n)=>e.has(t)||g("Cannot "+n),l=(t,e,n)=>(y(t,e,"read from private field"),n?n.call(t):e.get(t)),m=(t,e,n)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),f=(t,e,n,r)=>(y(t,e,"write to private field"),e.set(t,n),n),i=(t,e,n)=>(y(t,e,"access private method"),n),u,c,p,a,w,S,v,C,E,I,M,k,A,O,R,T,h;const x="externalSiteRedirectWasChecked",W="https://ipwhois.pro/",L=1e4,B="%COUNTRY%",q=["external-site-redirect-message-body","external-site-redirect-message-title"];let _=class extends N{constructor(){super(...arguments),m(this,a),m(this,u,null),m(this,c,null),m(this,p,t=>{t.detail===this.dataset.modalId&&i(this,a,h).call(this)})}connectedCallback(){if(super.connectedCallback(),document.addEventListener("modal-dialog::close",l(this,p)),sessionStorage.getItem(x)==="true")return;const t=i(this,a,w).call(this);t&&i(this,a,S).call(this,t)}disconnectedCallback(){var t;document.removeEventListener("modal-dialog::close",l(this,p)),(t=l(this,c))==null||t.abort(),f(this,c,null),i(this,a,h).call(this),super.disconnectedCallback()}};u=new WeakMap;c=new WeakMap;p=new WeakMap;a=new WeakSet;w=function(){var e;const t=this.querySelector('script[type="application/json"][data-mapping]');if(!((e=t==null?void 0:t.textContent)!=null&&e.trim()))return null;try{const n=JSON.parse(t.textContent);return!n||typeof n!="object"||Array.isArray(n)||Object.keys(n).length===0?null:n}catch{return null}};S=async function(t){var s;sessionStorage.setItem(x,"true");const e=(s=this.dataset.apiKey)==null?void 0:s.trim();if(!e)return;const n=await i(this,a,v).call(this,e);if(!n)return;const r=i(this,a,M).call(this,t,n.countryCode);r&&(i(this,a,I).call(this,n.countryName),await i(this,a,k).call(this),i(this,a,R).call(this,r),i(this,a,T).call(this))};v=async function(t){const e=new URL(W);e.searchParams.set("key",t);const n=new AbortController,r=setTimeout(()=>n.abort(),L);try{const s=await fetch(e.toString(),{method:"GET",headers:{Accept:"application/json"},signal:n.signal});if(!s.ok)return null;const o=await s.json();if(!o.success||!o.country_code)return null;const d=o.country_code.trim().toUpperCase(),D=typeof o.country=="string"&&o.country.trim()?o.country.trim():i(this,a,C).call(this,d);return{countryCode:d,countryName:D}}catch{return null}finally{clearTimeout(r)}};C=function(t){try{const e=document.documentElement.lang||"en";return new Intl.DisplayNames([e],{type:"region"}).of(t)??t}catch{return t}};E=function(){var e;const t=this.querySelector('script[type="application/json"][data-message-template]');if(!((e=t==null?void 0:t.textContent)!=null&&e.trim()))return null;try{const n=JSON.parse(t.textContent);return typeof n=="string"&&n.trim()?n.trim():null}catch{return null}};I=function(t){const e=i(this,a,E).call(this);if(!e)return;const n=e.replaceAll(B,t);for(const r of q){const s=document.getElementById(r);s&&(s.textContent=n)}};M=function(t,e){const n=t[e];if(typeof n!="string"||!n.trim())return null;try{const r=new URL(n.trim());return r.protocol!=="https:"&&r.protocol!=="http:"?null:r.toString()}catch{return null}};k=async function(){const t=this.dataset.modalId;t&&(await customElements.whenDefined("modal-dialog"),await new Promise(e=>{requestAnimationFrame(()=>e())}),this.$emit("modal-dialog::open",t),await i(this,a,A).call(this,t))};A=async function(t){const e=Date.now()+3e3;for(;Date.now()<e;){const n=document.getElementById(t);if(n!=null&&n.hasAttribute("open")){await new Promise(r=>requestAnimationFrame(()=>r()));return}await new Promise(r=>requestAnimationFrame(()=>r()))}};O=function(){const t=this.dataset.modalId;t&&this.$emit("modal-dialog::close",t)};R=function(t){const e=Number.parseInt(this.dataset.delay??"5",10),n=Number.isFinite(e)?Math.max(0,e)*1e3:5e3;i(this,a,h).call(this),f(this,u,setTimeout(()=>{globalThis.location.assign(t)},n))};T=function(){const t=this.querySelector("[data-stay-button]");!t||l(this,c)||(f(this,c,new AbortController),t.addEventListener("click",()=>{i(this,a,h).call(this),i(this,a,O).call(this)},{signal:l(this,c).signal}))};h=function(){l(this,u)!==null&&(clearTimeout(l(this,u)),f(this,u,null))};_=P([b("external-site-redirect")],_);
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.