PageSourceSearch

https://lk.beregny.ru/_nuxt/D5LH6dGr.js

js beregny.ru collected 2026-09-30 17:04:50 UTC 31,702 bytes, 1 lines download raw bytes

1var Me=Object.defineProperty,Ee=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var Q=(e,n,r)=>n in e?Me(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,g=(e,n)=>{for(var r in n||(n={}))ee.call(n,r)&&Q(e,r,n[r]);if(N)for(var r of N(n))te.call(n,r)&&Q(e,r,n[r]);return e},U=(e,n)=>Ee(e,xe(n));var ne=(e,n)=>{var r={};for(var o in e)ee.call(e,o)&&n.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&N)for(var o of N(e))n.indexOf(o)<0&&te.call(e,o)&&(r[o]=e[o]);return r};var w=(e,n,r)=>new Promise((o,i)=>{var t=a=>{try{l(r.next(a))}catch(s){i(s)}},c=a=>{try{l(r.throw(a))}catch(s){i(s)}},l=a=>a.done?o(a.value):Promise.resolve(a.value).then(t,c);l((r=r.apply(e,n)).next())});import{dh as Ce,di as Te}from"./a1S6pEPx.js";(function(){try{var e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},n=new e.Error().stack;
1n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2583fab3-746d-4131-87a4-c7bc941b01bc",e._sentryDebugIdIdentifier="sentry-dbid-2583fab3-746d-4131-87a4-c7bc941b01bc")}catch(r){}})();const re=2592e5,pe="thumbmark",he="https://api.thumbmarkjs.com",ge={exclude:[],include:[],stabilize:["private","iframe"],logging:!0,timeout:5e3,cache_api_call:!0,cache_lifetime_in_ms:0,performance:!1,experimental:!1,simple_request:!1,property_name_factory:e=>"".concat(pe,"_").concat(e)},ke={private:[{exclude:["canvas"],browsers:["firefox","safari>=17","brave"]},{exclude:["audio"],browsers:["samsungbrowser","safari"]},{exclude:["fonts"],browsers:["firefox"]},{exclude:["audio.sampleHash","hardware.deviceMemory","header.acceptLanguage.q","system.hardwareConcurrency","plugins"],browsers:["brave"]},{exclude:["tls.extensions"],browsers:["firefox","chrome","safari"]},{exclude:["header.acceptLanguage"],browsers:["edge","chrome"]}],iframe:[{exclude:["system.applePayVersion","system.cookieEnabled"],browsers:["safari"]},{exclude:["permissions"]}],vpn:[{exclude:["ip"]}],always:[{exclude:["speech"],browsers:["brave","firefox"]}]},oe=typeof window!="undefined"?window.OfflineAudioContext||window.webkitOfflineAudioContext:null;function Re(e){let n=0;for(let r=0;r<e.length;++r)n+=Math.abs(e[r]);return n}function ie(e,n,r){if(e.length===1)return e[0];if(e.length===3){const t=e[0].data,c=e[1].data,l=e[2].data,a=new Uint8ClampedArray(t.length);for(let s=0;s<t.length;s++){const m=t[s],u=c[s],f=l[s];a[s]=m===u||m===f?m:u===f?u:m}return new ImageData(a,n,r)}let o=[];for(let t=0;t<e[0].data.length;t++){let c=[];for(let l=0;l<e.length;l++)c.push(e[l].data[t]);o.push(Oe(c))}const i=new Uint8ClampedArray(o);return new ImageData(i,n,r)}function Oe(e){if(e.length===0)return 0;const n={};for(const o of e)n[o]=(n[o]||0)+1;let r=e[0];for(const o in n)n[o]>n[r]&&(r=parseInt(o,10));return r}function F(e){return e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),(e^=e>>>16)>>>0}const _=new Uint32Array([597399067,2869860233,951274213,2716044179]);function x(e,n){return e<<n|e>>>32-n}function T(e,n=0){if(n=n?0|n:0,typeof e=="string"&&(e=function(i){if(typeof TextEncoder!="undefined")return new TextEncoder().encode(i).buffer;const t=[];for(let c=0;c<i.length;c++){let l=i.charCodeAt(c);l<128?t.push(l):l<2048?t.push(192|l>>6,128|63&l):l<55296||l>=57344?t.push(224|l>>12,128|l>>6&63,128|63&l):(c++,l=65536+((1023&l)<<10|1023&i.charCodeAt(c)),t.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|63&l))}return new Uint8Array(t).buffer}(e)),!(e instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");const r=new Uint32Array([n,n,n,n]);(function(i,t){const c=i.byteLength/16|0,l=new Uint32Array(i,0,4*c);for(let a=0;a<c;a++){const s=l.subarray(4*a,4*(a+1));s[0]=Math.imul(s[0],_[0]),s[0]=x(s[0],15),s[0]=Math.imul(s[0],_[1]),t[0]=t[0]^s[0],t[0]=x(t[0],19),t[0]=t[0]+t[1],t[0]=Math.imul(t[0],5)+1444728091,s[1]=Math.imul(s[1],_[1]),s[1]=x(s[1],16),s[1]=Math.imul(s[1],_[2]),t[1]=t[1]^s[1],t[1]=x(t[1],17),t[1]=t[1]+t[2],t[1]=Math.imul(t[1],5)+197830471,s[2]=Math.imul(s[2],_[2]),s[2]=x(s[2],17),s[2]=Math.imul(s[2],_[3]),t[2]=t[2]^s[2],t[2]=x(t[2],15),t[2]=t[2]+t[3],t[2]=Math.imul(t[2],5)+2530024501,s[3]=Math.imul(s[3],_[3]),s[3]=x(s[3],18),s[3]=Math.imul(s[3],_[0]),t[3]=t[3]^s[3],t[3]=x(t[3],13),t[3]=t[3]+t[0],t[3]=Math.imul(t[3],5)+850148119}})(e,r),function(i,t){const c=i.byteLength/16|0,l=i.byteLength%16,a=new Uint32Array(4),s=new Uint8Array(i,16*c,l);switch(l){case 15:a[3]=a[3]^s[14]<<16;case 14:a[3]=a[3]^s[13]<<8;case 13:a[3]=a[3]^s[12],a[3]=Math.imul(a[3],_[3]),a[3]=x(a[3],18),a[3]=Math.imul(a[3],_[0]),t[3]=t[3]^a[3];case 12:a[2]=a[2]^s[11]<<24;case 11:a[2]=a[2]^s[10]<<16;case 10:a[2]=a[2]^s[9]<<8;case 9:a[2]=a[2]^s[8],a[2]=Math.imul(a[2],_[2]),a[2]=x(a[2],17),a[2]=Math.imul(a[2],_[3]),t[2]=t[2]^a[2];case 8:a[1]=a[1]^s[7]<<24;case 7:a[1]=a[1]^s[6]<<16;case 6:a[1]=a[1]^s[5]<<8;case 5:a[1]=a[1]^s[4],a[1]=Math.imul(a[1],_[1]),a[1]=x(a[1],16),a[1]=Math.imul(a[1],_[2]),t[1]=t[1]^a[1];case 4:a[0]=a[0]^s[3]<<24;case 3:a[0]=a[0]^s[2]<<16;case 2:a[0]=a[0]^s[1]<<8;
1case 1:a[0]=a[0]^s[0],a[0]=Math.imul(a[0],_[0]),a[0]=x(a[0],15),a[0]=Math.imul(a[0],_[1]),t[0]=t[0]^a[0]}}(e,r),function(i,t){t[0]=t[0]^i.byteLength,t[1]=t[1]^i.byteLength,t[2]=t[2]^i.byteLength,t[3]=t[3]^i.byteLength,t[0]=t[0]+t[1]|0,t[0]=t[0]+t[2]|0,t[0]=t[0]+t[3]|0,t[1]=t[1]+t[0]|0,t[2]=t[2]+t[0]|0,t[3]=t[3]+t[0]|0,t[0]=F(t[0]),t[1]=F(t[1]),t[2]=F(t[2]),t[3]=F(t[3]),t[0]=t[0]+t[1]|0,t[0]=t[0]+t[2]|0,t[0]=t[0]+t[3]|0,t[1]=t[1]+t[0]|0,t[2]=t[2]+t[0]|0,t[3]=t[3]+t[0]|0}(e,r);const o=new Uint8Array(r.buffer);return Array.from(o).map(i=>i.toString(16).padStart(2,"0")).join("")}const ae=280;function Ie(e,n){return new Promise(r=>setTimeout(r,e,n))}const Be=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],De=["monospace","sans-serif","serif"];function se(e,n){return e.font="72px ".concat(n),e.measureText("WwMmLli0Oo").width}function Le(){var e;const n=document.createElement("canvas"),r=(e=n.getContext("webgl"))!==null&&e!==void 0?e:n.getContext("experimental-webgl");if(r&&"getParameter"in r)try{const o=(r.getParameter(r.VENDOR)||"").toString(),i=(r.getParameter(r.RENDERER)||"").toString();let t={vendor:o,renderer:i,version:(r.getParameter(r.VERSION)||"").toString(),shadingLanguageVersion:(r.getParameter(r.SHADING_LANGUAGE_VERSION)||"").toString()};if(!i.length||!o.length){const c=r.getExtension("WEBGL_debug_renderer_info");if(c){const l=(r.getParameter(c.UNMASKED_VENDOR_WEBGL)||"").toString(),a=(r.getParameter(c.UNMASKED_RENDERER_WEBGL)||"").toString();l&&(t.vendorUnmasked=l),a&&(t.rendererUnmasked=a)}}return t}catch(o){}return"undefined"}function Ne(){const e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]}const $=(e,n,r,o)=>{const i=(r-n)/o;let t=0;for(let c=0;c<o;c++)t+=e(n+(c+.5)*i);return t*i};function Ue(e,n){const r={};return n.forEach(o=>{const i=function(t){if(t.length===0)return null;const c={};t.forEach(s=>{const m=String(s);c[m]=(c[m]||0)+1});let l=t[0],a=1;return Object.keys(c).forEach(s=>{c[s]>a&&(l=s,a=c[s])}),l}(e.map(t=>o in t?t[o]:void 0).filter(t=>t!==void 0));i&&(r[o]=i)}),r}const Fe=["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],z=new Map;function W(){if(typeof navigator=="undefined")return{name:"unknown",version:"unknown"};const e=!!navigator.brave,n=(e?"B|":"N|")+navigator.userAgent,r=z.get(n);if(r)return r;const o=[{name:"Brave",detect:()=>e}];let i;for(const t of o)if(t.detect()){const c=ce(navigator.userAgent);return i={name:t.name,version:c.version},z.set(n,i),i}return i=ce(navigator.userAgent),z.set(n,i),i}function ce(e){var n,r,o,i,t,c;const l=[new RegExp("(?<name>SamsungBrowser)\\/(?<version>\\d+(?:\\.\\d+)+)"),new RegExp("(?<name>EdgA|EdgiOS|Edg)\\/(?<version>\\d+(?:\\.\\d+)+)"),new RegExp("(?<name>OPR|OPX)\\/(?<version>\\d+(?:\\.\\d+)+)"),new RegExp("Opera[\\s\\/](?<version>\\d+(?:\\.\\d+)+)"),new RegExp("Opera Mini\\/(?<version>\\d+(?:\\.\\d+)+)"),new RegExp("Opera Mobi\\/(?<version>\\d+(?:\\.\\d+)+)"),new RegExp("(?<name>Vivaldi)\\/(?<version>\\d+(?:\\.\\d+)+)"),new RegExp("(?<name>CriOS)\\/(?<version>\\d+(?:\\.\\d+)+)"),new RegExp("(?<name>FxiOS)\\/(?<version>\\d+(?:\\.\\d+)+)"),new RegExp("(?<name>Chrome|Chromium)\\/(?<version>\\d+(?:\\.\\d+)+)"),new RegExp("(?<name>Firefox|Waterfox|Iceweasel|IceCat)\\/(?<version>\\d+(?:\\.\\d+)+)"),new RegExp("Version\\/(?<version1>[\\d.]+).*Safari\\/[\\d.]+|(?<name>Safari)\\/(?<version2>[\\d.]+)"),new RegExp("(?<name>MSIE|Trident|IEMobile).+?(?<version>\\d+(?:\\.\\d+)+)"),new RegExp("(?<name>[A-Za-z]+)\\/(?<version>\\d+(?:\\.\\d+)+)")],a={edg:"Edge",edga:"Edge",edgios:"Edge",opr:"Opera",opx:"Opera",crios:"Chrome",fxios:"Firefox",samsung:"SamsungBrowser",vivaldi:"Vivaldi"};for(const s of l){const m=e.match(s);if(m){let u=(n=m.groups)===null||n===void 0?void 0:n.name,f=((r=m.groups)===null||r===void 0?void 0:r.version)||((o=m.groups)===null||o===void 0?void 0:o.version1)||((i=m.groups)===null||i===void 0?void 0:i.version2);if(u||!(!((t=m.groups)===null||t===void 0)&&t.version1)&&!(!((c=m.groups)===null||c===void 0)&&c.version2)||(u="Safari"),!u&&s.source.includes("Opera Mini")&&(u="Opera Mini"),!u&&s.source.includes("Opera Mobi")&&(u="Opera Mobi"),!u&&s.source.includes("Opera")&&(u="Opera"),!u&&m[1]&&(u=m[1]),!f&&m[2]&&(f=m[2]),u)return{name:a[u.toLowerCase()]||u,version:f||"unknown"}}}return{name:"unknown",version:"unknown"}}function le(){if(typeof navigator=="undefined"||!navigator.userAgent)return!1;const e=navigator.userAgent;return/Mobi|Android|iPhone|iPod|IEMobile|Opera Mini|Opera Mobi|webOS|BlackBerry|W
1indows Phone/i.test(e)&&!/iPad/i.test(e)}function $e(){let e=[];const n={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(n).forEach(r=>{n[r].forEach(o=>{matchMedia("(".concat(r,": ").concat(o,")")).matches&&e.push("".concat(r,": ").concat(o))})}),e}function je(){if(window.location.protocol==="https:"&&typeof window.ApplePaySession=="function")try{const e=window.ApplePaySession.supportsVersion;for(let n=15;n>0;n--)if(e(n))return n}catch(e){return 0}return 0}const Ve=W().name!=="SamsungBrowser"?1:3,We=W().name!=="Brave",ue=137,Ge=(()=>{const e=new Float32Array(548),n=2*Math.PI/ue;for(let r=0;r<ue;r++){const o=r*n;e[4*r]=0,e[4*r+1]=0,e[4*r+2]=100*Math.cos(o),e[4*r+3]=50*Math.sin(o)}return e})();let L=null;function de(){try{if(typeof document=="undefined")return null;const e=document.createElement("canvas");e.width=200,e.height=100;const n=e.getContext("webgl");if(!n)return null;e.addEventListener("webglcontextlost",c=>{c.preventDefault(),L=null},{once:!0});const r=n.createShader(n.VERTEX_SHADER),o=n.createShader(n.FRAGMENT_SHADER);if(!r||!o||(n.shaderSource(r,"\n    attribute vec2 position;\n    void main() {\n        gl_Position = vec4(position, 0.0, 1.0);\n    }\n"),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS))||(n.shaderSource(o,"\n    precision mediump float;\n    void main() {\n        gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color\n    }\n"),n.compileShader(o),!n.getShaderParameter(o,n.COMPILE_STATUS)))return null;const i=n.createProgram();if(!i||(n.attachShader(i,r),n.attachShader(i,o),n.linkProgram(i),!n.getProgramParameter(i,n.LINK_STATUS)))return null;const t=n.createBuffer();return t?(n.bindBuffer(n.ARRAY_BUFFER,t),n.bufferData(n.ARRAY_BUFFER,Ge,n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null),{canvas:e,gl:n,program:i,buffer:t}):null}catch(e){return null}}function O(e){const n=new Set;return function r(o){if(o&&o.toJSON&&typeof o.toJSON=="function"&&(o=o.toJSON()),o===void 0)return;if(typeof o=="number")return isFinite(o)?""+o:"null";if(typeof o!="object")return JSON.stringify(o);let i,t;if(Array.isArray(o)){for(t="[",i=0;i<o.length;i++)i&&(t+=","),t+=r(o[i])||"null";return t+"]"}if(o===null)return"null";if(n.has(o))throw new TypeError("Converting circular structure to JSON");n.add(o);const c=Object.keys(o).sort();for(t="",i=0;i<c.length;i++){const l=c[i],a=r(o[l]);a&&(t&&(t+=","),t+=JSON.stringify(l)+":"+a)}return n.delete(o),"{"+t+"}"}(e)||""}const He={audio:function(){return w(this,null,function*(){return oe?function(){return w(this,null,function*(){return new Promise((e,n)=>{try{const r=new oe(1,5e3,44100),o=r.createBufferSource(),i=r.createOscillator();i.frequency.value=1e3;const t=r.createDynamicsCompressor();let c;t.threshold.value=-50,t.knee.value=40,t.ratio.value=12,t.attack.value=0,t.release.value=.2,i.connect(t),t.connect(r.destination),i.start(),r.oncomplete=l=>{c=l.renderedBuffer.getChannelData(0),e({sampleHash:Re(c),maxChannels:r.destination.maxChannelCount,channelCountMode:o.channelCountMode})},r.startRendering()}catch(r){n(r)}})})}():null})},canvas:function(){return w(this,null,function*(){return new Promise(e=>{const n=Array.from({length:3},()=>function(){const r=document.createElement("canvas"),o=r.getContext("2d");if(!o)return null;r.width=ae,r.height=20;const i=o.createLinearGradient(0,0,r.width,r.height);i.addColorStop(0,"red"),i.addColorStop(.16666666666666666,"orange"),i.addColorStop(.3333333333333333,"yellow"),i.addColorStop(.5,"green"),i.addColorStop(.6666666666666666,"blue"),i.addColorStop(.8333333333333334,"indigo"),i.addColorStop(1,"violet"),o.fillStyle=i,o.fillRect(0,0,r.width,r.height);const t="Random Text WMwmil10Oo";
1return o.font="23.123px Arial",o.fillStyle="black",o.fillText(t,-5,15),o.fillStyle="rgba(0, 0, 255, 0.5)",o.fillText(t,-3.3,17.7),o.beginPath(),o.moveTo(0,0),o.lineTo(2*r.width/7,r.height),o.strokeStyle="white",o.lineWidth=2,o.stroke(),o.getImageData(0,0,r.width,r.height)}()).filter(r=>r!==null);n.length!==0?e({commonPixelsHash:T(ie(n,ae,20).data.toString()).toString()}):e(null)})})},fonts:function(e){return w(this,null,function*(){return new Promise(n=>{try{(function(r){return w(this,null,function*(){for(var o;!document.body;)yield Ie(50);const i=document.createElement("iframe");i.setAttribute("frameBorder","0");const t=i.style;t.setProperty("position","fixed"),t.setProperty("display","block","important"),t.setProperty("visibility","visible"),t.setProperty("border","0"),t.setProperty("opacity","0"),i.src="about:blank",document.body.appendChild(i);const c=i.contentDocument||((o=i.contentWindow)===null||o===void 0?void 0:o.document);if(!c)throw new Error("Iframe document is not accessible");r({iframe:c}),setTimeout(()=>{document.body.removeChild(i)},0)})})(o=>w(this,[o],function*({iframe:r}){const i=r.createElement("canvas").getContext("2d");if(!i)return void n(null);const t=De.map(l=>se(i,l));let c={};Be.forEach(l=>{const a=se(i,l);t.includes(a)||(c[l]=a)}),n(c)}))}catch(r){n(null)}})})},hardware:function(){return new Promise((e,n)=>{const r=navigator.deviceMemory!==void 0?navigator.deviceMemory:0,o=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:Le(),architecture:Ne(),deviceMemory:r.toString()||"undefined",jsHeapSizeLimit:o.jsHeapSizeLimit||0})})},locales:function(){return new Promise(e=>{e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})})},math:function(){return new Promise(e=>{e({acos:Math.acos(.5),asin:$(Math.asin,-1,1,97),cos:$(Math.cos,0,Math.PI,97),largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),sin:$(Math.sin,-Math.PI,Math.PI,97),tan:$(Math.tan,0,2*Math.PI,97)})})},permissions:function(e){return w(this,null,function*(){const n=(e==null?void 0:e.permissions_to_check)||Fe;return Ue(yield Promise.all(Array.from({length:3},()=>function(r){return w(this,null,function*(){const o={};for(const i of r)try{const t=yield navigator.permissions.query({name:i});o[i]=t.state.toString()}catch(t){}return o})}(n))),n)})},plugins:function(){return w(this,null,function*(){const e=[];if(navigator.plugins)for(let n=0;n<navigator.plugins.length;n++){const r=navigator.plugins[n];e.push([r.name,r.filename,r.description].join("|"))}return new Promise(n=>{n({plugins:e})})})},screen:function(){return new Promise(e=>{if(typeof matchMedia=="undefined"||typeof screen=="undefined")return void e(null);const n={is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:$e()};le()&&navigator.maxTouchPoints>0&&(n.resolution=function(){const r=window.screen.width,o=window.screen.height,i=Math.max(r,o).toString(),t=Math.min(r,o).toString();return"".concat(i,"x").concat(t)}()),e(n)})},system:function(){return new Promise(e=>{const n=W();e({platform:window.navigator.platform,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:n.name,version:n.version},mobile:le(),applePayVersion:je(),cookieEnabled:window.navigator.cookieEnabled})})},webgl:function(){return w(this,null,function*(){const e=We?(L||(L=de()),L):de();if(!e)return{webgl:"unsupported"};try{const n=Array.from({length:Ve},()=>function(r){const{canvas:o,gl:i,program:t,buffer:c}=r;try{i.useProgram(t),i.bindBuffer(i.ARRAY_BUFFER,c);const l=i.getAttribLocation(t,"position");i.enableVertexAttribArray(l),i.vertexAttribPointer(l,2,i.FLOAT,!1,0,0),i.viewport(0,0,o.width,o.height),i.clearColor(0,0,0,1),i.clear(i.COLOR_BUFFER_BIT),i.drawArrays(i.LINES,0,274);const a=new Uint8ClampedArray(o.width*o.height*4);return i.readPixels(0,0,o.width,o.height,i.RGBA,i.UNSIGNED_BYTE,a),new ImageData(a,o.width,o.height)}catch(l){return L=null,new ImageData(1,1)}finally{i.bindBuffer(i.ARRAY_BUFFER,null),i.useProgram(null),i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),i.clearColor(0,0,0,0)}}(e));return{commonPixelsHash:T(ie(n,e.canvas.width,e.canvas.height).data.toString()).toString()}}catch(n){return{webgl:"unsupported"}}})},webrtc:function(e){return w(this,null,function*(){return new Promise(n=>{let r;try{const o=window.RTCPeerConnection||window.webkitRTCPeerConnection||window.mozRTCPeerConnection;if(!o)return void n({supported:!1,error:"WebRTC not supported"});r=new o({iceCandidatePoolSize:1,iceServers:[]});const i=r;
1i.createDataChannel(""),w(this,null,function*(){try{const t={offerToReceiveAudio:!0,offerToReceiveVideo:!0},c=yield i.createOffer(t);yield i.setLocalDescription(c);const l=c.sdp||"",a=[...new Set((l.match(/extmap:\d+ [^\n\r]+/g)||[]).map(P=>P.replace(/extmap:\d+ /,"")))].sort(),s=P=>{const A=l.match(new RegExp("m=".concat(P," [^\\s]+ [^\\s]+ ([^\\n\\r]+)")));return A?A[1].split(" "):[]},m=(P,A)=>A.map(E=>{const B=new RegExp("(rtpmap|fmtp|rtcp-fb):".concat(E," (.+)"),"g"),p=[...l.matchAll(B)];if(!p.length)return null;const h={};return p.forEach(y=>{const[b,M,S]=y,I=S.split("/");M==="rtpmap"?(h.mimeType="".concat(P,"/").concat(I[0]),h.clockRate=+I[1],P==="audio"&&(h.channels=+I[2]||1)):M==="rtcp-fb"?(h.feedbackSupport=h.feedbackSupport||[],h.feedbackSupport.push(S)):M==="fmtp"&&(h.sdpFmtpLine=S)}),h}).filter(Boolean),u=m("audio",s("audio")),f=m("video",s("video")),d={audio:{count:u.length,hash:T(O(u))},video:{count:f.length,hash:T(O(f))},extensionsHash:T(O(a))};i.close();const v=U(g({supported:!0},d),{candidateType:"host"});n({details:v,hash:T(O(v))})}catch(t){i.close(),n({supported:!0,error:"WebRTC offer failed: ".concat(t.message)})}})}catch(o){r==null||r.close(),n({supported:!1,error:"WebRTC error: ".concat(o.message)})}})})},speech:function(){return w(this,null,function*(){return new Promise(e=>{try{if(typeof window=="undefined"||!window.speechSynthesis||typeof window.speechSynthesis.getVoices!="function")return void e({supported:!1,error:"Speech Synthesis API not supported"});let n=!1,r=null;const o=c=>{if(!n){n=!0,r&&clearTimeout(r);try{const l=c.map(s=>{const m=u=>u.replace(/\\/g,"\\\\").replace(/,/g,"\\,");return[m(s.voiceURI||""),m(s.name||""),m(s.lang||""),s.localService?"1":"0",s.default?"1":"0"].join(",")});l.sort();const a={voiceCount:c.length,voicesHash:T(O(l))};e({details:a,hash:T(O(a))})}catch(l){e({supported:!0,error:"Voice processing failed: ".concat(l.message)})}}},i=window.speechSynthesis.getVoices();if(i.length>0)return void o(i);r=setTimeout(()=>{const c=window.speechSynthesis.getVoices();o(c)},800);const t=()=>{window.speechSynthesis.removeEventListener("voiceschanged",t);const c=window.speechSynthesis.getVoices();o(c)};window.speechSynthesis.addEventListener("voiceschanged",t)}catch(n){e({supported:!1,error:"Speech Synthesis error: ".concat(n.message)})}})})}},qe={},Je={timeout:"true"};function ve(e,n){var r,o;let i=W();if(i.name==="unknown"&&n){const s=(r=n.system)===null||r===void 0?void 0:r.browser;s!=null&&s.name&&(i={name:String(s.name),version:String(s.version||"unknown")})}const t=i.name.toLowerCase(),c=parseInt(i.version.split(".")[0]||"0",10),l=Array.isArray(e==null?void 0:e.exclude)?[...e.exclude]:[],a=[...new Set([...(e==null?void 0:e.stabilize)||[],"always"])];for(const s of a){const m=ke[s];if(m)for(const u of m)"browsers"in u&&!(!((o=u.browsers)===null||o===void 0)&&o.some(f=>{const d=f.match(/(.+?)(>=)(\d+)/);return d?t===d[1]&&c>=+d[3]:t===f}))||l.push(...u.exclude)}return l}function we(e,n){const r=ve(n,e),o=Array.isArray(n==null?void 0:n.include)?n.include:[];return function i(t,c=""){const l={};for(const[a,s]of Object.entries(t)){const m=c?"".concat(c,".").concat(a):a;if(typeof s!="object"||Array.isArray(s)||s===null){const u=r.some(d=>m.startsWith(d)),f=o.some(d=>m.startsWith(d));u&&!f||(l[a]=s)}else{const u=i(s,m);Object.keys(u).length>0&&(l[a]=u)}}return l}(e)}const ze="https://experimental.thumbmarkjs.com/experimental.min.js",Ye=131072;function R(e,n){const r={target:"request",type:e};return n&&(r.message=n.slice(0,200)),{schema:0,payload_id:"none",signals:{},errors:[r]}}function me(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;const n=Object.getPrototypeOf(e);return n===Object.prototype||n===null}function Y(e){return e instanceof Error?e.message:void 0}function Ke(){return w(this,null,function*(){var e;try{return(e=yield function(n,r){let o;const i=new Promise(t=>{o=setTimeout(()=>t(null),r)});return Promise.race([n,i]).finally(()=>clearTimeout(o))}(function(){return w(this,null,function*(){let n,r;try{const o=yield fetch(ze,{method:"GET"});if(!o.ok)return R("http","HTTP ".concat(o.status));n=yield o.text()}catch(o){return R("fetch",Y(o))}if(!n)return R("empty");if(n.length>Ye)return R("oversized","".concat(n.length," chars"));try{const o=eval;r=yield Promise.resolve(o(n))}catch(o){return R(function(i){return i instanceof SyntaxError?"syntax":i instanceof EvalError?"eval_blocked":"threw"}(o),Y(o))}return function(o){return!!me(o)&&!(typeof o.schema!="number"||o.schema<1)&&typeof o.payload_id=="string"&&me(o.signals)}(r)?U(g({},r),{errors:Array.isArray(r.errors)?r.errors:[]}):R("malformed")})}(),2e3))!==null&&e!==void 0?e:R("timeout","exceeded 2000ms")}catch(n){return R("threw",Y(n))}})}const ye="visitor_id";function be(e){return e.storage_property_name?e.storage_property_name:e.property_name_factory(ye)}const fe="".concat(pe,"_").concat(ye);function Se(e,n){try{localStorage.setItem(be(n),e)}catch(r){}}const _e="cache";function K(e){try{const n=localStorage.getItem(e.property_name_factory(_e));return JSON.parse(n)||{}}catch(n){}return{}}function Xe(e){return e.cache_lifetime_in_ms>re?Date.now()+re:Date.now()+e.cache_lifetime_in_ms}
1class V extends Error{constructor(n){super("HTTP error! status: ".concat(n)),this.status=n}}let D=null,X=null;function Ze(e,n,r,o){return w(this,null,function*(){const i=r.simple_request?{"Content-Type":"text/plain"}:{"x-api-key":r.api_key,Authorization:"custom-authorized","Content-Type":"application/json"},t=yield fetch(e,{method:"POST",headers:i,body:JSON.stringify(n)});if(!t.ok)throw new V(t.status);const c=yield t.json();return c.visitorId&&c.visitorId!==o&&Se(c.visitorId,r),X=c,function(l,a){!l.cache_api_call||!l.cache_lifetime_in_ms||function(s,m){const u=g(g({},K(s)),m);try{localStorage.setItem(s.property_name_factory(_e),JSON.stringify(u))}catch(f){}}(l,{apiResponseExpiry:Xe(l),apiResponse:a})}(r,c),c})}const Qe=(e,n)=>{if(e.cache_api_call){if(X)return Promise.resolve(X);const f=function(d){const v=K(d);if(v&&v.apiResponse&&v.apiResponseExpiry&&Date.now()<=v.apiResponseExpiry)return v.apiResponse}(e);if(f)return Promise.resolve(f);if(D)return D}const r=e.api_endpoint||he;let o;try{const f=new URL(r);o=f.pathname!=="/"||r.endsWith("/")?r:"".concat(f.origin,"/thumbmark")}catch(f){o="".concat(r,"/thumbmark")}const i=function(f){try{const d=be(f);let v=localStorage.getItem(d);return v||d===fe||(v=localStorage.getItem(fe),v&&Se(v,f)),v}catch(d){return null}}(e),u=e,{api_key:t}=u,c=ne(u,["api_key"]),l={components:n,options:c,clientHash:T(O(n)),version:"1.11.0"};if(i&&(l.visitorId=i),e.metadata){const f=typeof e.metadata=="function"?e.metadata():e.metadata;f&&((typeof f=="string"?f.length:JSON.stringify(f).length)>1e3?console.error("ThumbmarkJS: Metadata exceeds 1000 characters. Skipping metadata."):l.metadata=f)}const a=e.timeout||5e3,s=function(f,d,v,P){return w(this,null,function*(){for(let A=0;A<3;A++){A>0&&(yield new Promise(E=>setTimeout(E,200*A)));try{return yield Ze(f,d,v,P)}catch(E){if(E instanceof V||A===2)throw E}}throw new Error("Unreachable")})}(o,l,e,i).finally(()=>{D=null}),m=new Promise(f=>{setTimeout(()=>{const d=K(e);f((d==null?void 0:d.apiResponse)||g({info:{timed_out:!0}},i&&{visitorId:i}))},a)});return D=Promise.race([s,m]),D};function et(r){return w(this,arguments,function*(e,n={}){var o;if(typeof document=="undefined"||typeof window=="undefined")return{thumbmark:"",components:{},info:{},version:"1.11.0",error:[{type:"fatal",message:"Browser environment required"}]};try{const i=g(g({},ge),e),t=[],c=i.logging&&!sessionStorage.getItem("_tmjs_l")&&Math.random()<1e-4,l=g(g(g({},He),qe),n),{elapsed:a,resolvedComponents:s,errors:m,pipelineTimings:u}=yield tt(l,i);t.push(...m);const f=i.api_key||i.simple_request?Qe(i,s):null;let d=null;if(f)try{d=yield f}catch(C){if(C instanceof V&&C.status===403)return{error:[{type:"api_unauthorized",message:"Invalid API key or quota exceeded"}],components:{},info:{},version:"1.11.0",thumbmark:""};t.push({type:C instanceof V?"api_error":"network_error",message:C instanceof Error?C.message:String(C)})}!((o=d==null?void 0:d.info)===null||o===void 0)&&o.timed_out&&t.push({type:"api_timeout",message:"API request timed out"});const v=performance.now(),P=we((d==null?void 0:d.components)||{},i),A=performance.now()-v,E=g(g({},s),P),B=(d==null?void 0:d.info)||{uniqueness:{score:"api only"}};let p,h=0,y=0;if(d!=null&&d.thumbmark)p=d.thumbmark;else{const C=performance.now(),H=O(E);h=performance.now()-C;const q=performance.now();p=T(H),y=performance.now()-q}const b="1.11.0";c&&function(dt,mt,ft){return w(this,arguments,function*(C,H,q,Z=[]){var J;const Pe="".concat(he,"/log");sessionStorage.setItem("_tmjs_l","1");const Ae=g({thumbmark:C,components:H,experimental:yield Ke(),version:"1.11.0",options:q,path:(J=window==null?void 0:window.location)===null||J===void 0?void 0:J.pathname},Z.length>0&&{errors:Z});try{yield fetch(Pe,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ae)})}catch(it){}})}(p,E,i,t).catch(()=>{});const M={"_pipeline.dispatch":u["_pipeline.dispatch"],"_pipeline.resolve":u["_pipeline.resolve"],"_pipeline.filter":u["_pipeline.filter"]+A,"_pipeline.stringify":h,"_pipeline.hash":y,"_pipeline.assembly":0},S=g(g(g({},a),u),M),I=i.performance?{elapsed:S}:{},G=performance.now(),k=g(g(g(g(U(g({}
1,(d==null?void 0:d.visitorId)&&{visitorId:d.visitorId}),{thumbmark:p,components:E,info:B,version:b}),I),t.length>0&&{error:t}),(d==null?void 0:d.requestId)&&{requestId:d.requestId}),(d==null?void 0:d.metadata)&&{metadata:d.metadata});return S["_pipeline.assembly"]=performance.now()-G,k}catch(i){return{thumbmark:"",components:{},info:{},version:"1.11.0",error:[{type:"fatal",message:i instanceof Error?i.message:String(i)}]}}})}function tt(e,n){return w(this,null,function*(){const r=g(g({},ge),n),o=ve(r).filter(p=>!p.includes(".")),i=Object.entries(e).filter(([p])=>{var h;return!(!((h=r==null?void 0:r.exclude)===null||h===void 0)&&h.includes(p))}).filter(([p])=>!o.includes(p)).filter(([p])=>{var h,y,b,M;return!((h=r==null?void 0:r.include)===null||h===void 0)&&h.some(S=>S.includes("."))?(y=r==null?void 0:r.include)===null||y===void 0?void 0:y.some(S=>S.startsWith(p)):((b=r==null?void 0:r.include)===null||b===void 0?void 0:b.length)===0||((M=r==null?void 0:r.include)===null||M===void 0?void 0:M.includes(p))}),t=i.map(([p])=>p),c={},l=performance.now(),a=i.map(([p,h])=>{const y=performance.now(),b=h(n);return c["_dispatch.".concat(p)]=performance.now()-y,b}),s=performance.now()-l,m=performance.now(),u=yield function(p,h,y){return Promise.all(p.map(b=>{const M=performance.now();let S;const I=b.then(k=>(S!==void 0&&clearTimeout(S),{value:k,elapsed:performance.now()-M})).catch(k=>(S!==void 0&&clearTimeout(S),{value:y,elapsed:performance.now()-M,error:k instanceof Error?k.message:String(k)})),G=new Promise(k=>{S=setTimeout(()=>{k({value:y,elapsed:performance.now()-M,error:"timeout"})},h)});return Promise.race([I,G])}))}(a,(r==null?void 0:r.timeout)||5e3,Je),f=performance.now()-m,d={},v={},P=[];u.forEach((p,h)=>{var y;const b=t[h];d[b]=(y=p.elapsed)!==null&&y!==void 0?y:0,p.error==="timeout"?P.push({type:"component_timeout",message:"Component '".concat(b,"' timed out"),component:b}):p.error&&P.push({type:"component_error",message:p.error,component:b}),p.value!=null&&(v[b]=p.value)});const A=performance.now(),E=we(v,r),B=g({"_pipeline.dispatch":s,"_pipeline.resolve":f,"_pipeline.filter":performance.now()-A},c);return{elapsed:d,resolvedComponents:E,errors:P,pipelineTimings:B}})}const nt=["canvas","webgl","screen","hardware","locales","system"],rt=2e3;let j=null;const ot=e=>et({include:nt,timeout:e,logging:!1}
1).catch(()=>null),ct=e=>(j!=null||(j=ot(e||rt).then(n=>{var r,o;Ce.value=(r=n==null?void 0:n.thumbmark)!=null?r:"",Te.value=(o=n==null?void 0:n.components)!=null?o:{}})),j);export{ct as ensureFingerprint};

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.