diff --git a/microShield.user.js b/microShield.user.js index f58d038..57d8b97 100644 --- a/microShield.user.js +++ b/microShield.user.js @@ -8,7 +8,7 @@ // @downloadURL https://cdn.jsdelivr.net/gh/List-KR/microShield@latest/microShield.user.js // @license Apache-2.0 // -// @version 3.16.5 +// @version 3.16.6 // @author PiQuark6046 and contributors // // @match *://ygosu.com/* @@ -109,7 +109,7 @@ // Original Srouce Code: // Libraries: please see 'https://github.com/List-KR/microShield/package.json'. // Originated from https://github.com/seia-soto/adshield-defuser and https://github.com/seia-soto/userscripts. -"use strict";(()=>{var Mt=Object.create;var ct=Object.defineProperty;var Nt=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var qt=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty;var Dt=(r,t)=>()=>(r&&(t=r(r=0)),t);var Y=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var Wt=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zt(t))!jt.call(r,i)&&i!==e&&ct(r,i,{get:()=>t[i],enumerable:!(n=Nt(t,i))||n.enumerable});return r};var $t=(r,t,e)=>(e=r!=null?Mt(qt(r)):{},Wt(t||!r||!r.__esModule?ct(e,"default",{value:r,enumerable:!0}):e,r));var ft=Y(W=>{"use strict";d();W.byteLength=Gt;W.toByteArray=Yt;W.fromByteArray=Zt;var B=[],m=[],Ht=typeof Uint8Array<"u"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(U=0,pt=X.length;U0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");e===-1&&(e=t);var n=e===t?0:4-e%4;return[e,n]}function Gt(r){var t=at(r),e=t[0],n=t[1];return(e+n)*3/4-n}function Vt(r,t,e){return(t+e)*3/4-e}function Yt(r){var t,e=at(r),n=e[0],i=e[1],o=new Ht(Vt(r,n,i)),u=0,c=i>0?n-4:n,p;for(p=0;p>16&255,o[u++]=t>>8&255,o[u++]=t&255;return i===2&&(t=m[r.charCodeAt(p)]<<2|m[r.charCodeAt(p+1)]>>4,o[u++]=t&255),i===1&&(t=m[r.charCodeAt(p)]<<10|m[r.charCodeAt(p+1)]<<4|m[r.charCodeAt(p+2)]>>2,o[u++]=t>>8&255,o[u++]=t&255),o}function Xt(r){return B[r>>18&63]+B[r>>12&63]+B[r>>6&63]+B[r&63]}function Jt(r,t,e){for(var n,i=[],o=t;oc?c:u+o));return n===1?(t=r[e-1],i.push(B[t>>2]+B[t<<4&63]+"==")):n===2&&(t=(r[e-2]<<8)+r[e-1],i.push(B[t>>10]+B[t>>4&63]+B[t<<2&63]+"=")),i.join("")}});var lt=Y(J=>{d();J.read=function(r,t,e,n,i){var o,u,c=i*8-n-1,p=(1<>1,l=-7,f=e?i-1:0,F=e?-1:1,E=r[t+f];for(f+=F,o=E&(1<<-l)-1,E>>=-l,l+=c;l>0;o=o*256+r[t+f],f+=F,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+r[t+f],f+=F,l-=8);if(o===0)o=1-a;else{if(o===p)return u?NaN:(E?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-a}return(E?-1:1)*u*Math.pow(2,o-n)};J.write=function(r,t,e,n,i,o){var u,c,p,a=o*8-i-1,l=(1<>1,F=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:o-1,V=n?1:-1,Lt=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,u=l):(u=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-u))<1&&(u--,p*=2),u+f>=1?t+=F/p:t+=F*Math.pow(2,1-f),t*p>=2&&(u++,p/=2),u+f>=l?(c=0,u=l):u+f>=1?(c=(t*p-1)*Math.pow(2,i),u=u+f):(c=t*Math.pow(2,f-1)*Math.pow(2,i),u=0));i>=8;r[e+E]=c&255,E+=V,c/=256,i-=8);for(u=u<0;r[e+E]=u&255,E+=V,u/=256,a-=8);r[e+E-V]|=Lt*128}});var Rt=Y(_=>{"use strict";d();var Z=ft(),C=lt(),ht=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=s;_.SlowBuffer=ne;_.INSPECT_MAX_BYTES=50;var $=2147483647;_.kMaxLength=$;s.TYPED_ARRAY_SUPPORT=Kt();!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Kt(){try{let r=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(r,t),r.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function A(r){if(r>$)throw new RangeError('The value "'+r+'" is invalid for option "size"');let t=new Uint8Array(r);return Object.setPrototypeOf(t,s.prototype),t}function s(r,t,e){if(typeof r=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return et(r)}return mt(r,t,e)}s.poolSize=8192;function mt(r,t,e){if(typeof r=="string")return te(r,t);if(ArrayBuffer.isView(r))return ee(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(I(r,ArrayBuffer)||r&&I(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(I(r,SharedArrayBuffer)||r&&I(r.buffer,SharedArrayBuffer)))return Q(r,t,e);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return s.from(n,t,e);let i=re(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return s.from(r[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}s.from=function(r,t,e){return mt(r,t,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function xt(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Qt(r,t,e){return xt(r),r<=0?A(r):t!==void 0?typeof e=="string"?A(r).fill(t,e):A(r).fill(t):A(r)}s.alloc=function(r,t,e){return Qt(r,t,e)};function et(r){return xt(r),A(r<0?0:rt(r)|0)}s.allocUnsafe=function(r){return et(r)};s.allocUnsafeSlow=function(r){return et(r)};function te(r,t){if((typeof t!="string"||t==="")&&(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let e=gt(r,t)|0,n=A(e),i=n.write(r,t);return i!==e&&(n=n.slice(0,i)),n}function K(r){let t=r.length<0?0:rt(r.length)|0,e=A(t);for(let n=0;n=$)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$.toString(16)+" bytes");return r|0}function ne(r){return+r!=r&&(r=0),s.alloc(+r)}s.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==s.prototype};s.compare=function(t,e){if(I(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,i=e.length;for(let o=0,u=Math.min(n,i);oi.length?(s.isBuffer(u)||(u=s.from(u)),u.copy(i,o)):Uint8Array.prototype.set.call(i,u,o);else if(s.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function gt(r,t){if(s.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||I(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let e=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return tt(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Ut(r).length;default:if(i)return n?-1:tt(r).length;t=(""+t).toLowerCase(),i=!0}}s.byteLength=gt;function ie(r,t,e){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,t>>>=0,e<=t))return"";for(r||(r="utf8");;)switch(r){case"hex":return de(this,t,e);case"utf8":case"utf-8":return Bt(this,t,e);case"ascii":return le(this,t,e);case"latin1":case"binary":return he(this,t,e);case"base64":return ae(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,t,e);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function R(r,t,e){let n=r[t];r[t]=r[e],r[e]=n}s.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;ee&&(t+=" ... "),""};ht&&(s.prototype[ht]=s.prototype.inspect);s.prototype.compare=function(t,e,n,i,o){if(I(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;let u=o-i,c=n-e,p=Math.min(u,c),a=this.slice(i,o),l=t.slice(e,n);for(let f=0;f2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,it(e)&&(e=i?0:r.length-1),e<0&&(e=r.length+e),e>=r.length){if(i)return-1;e=r.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof t=="string"&&(t=s.from(t,n)),s.isBuffer(t))return t.length===0?-1:dt(r,t,e,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,t,e):Uint8Array.prototype.lastIndexOf.call(r,t,e):dt(r,[t],e,n,i);throw new TypeError("val must be string, number or Buffer")}function dt(r,t,e,n,i){let o=1,u=r.length,c=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||t.length<2)return-1;o=2,u/=2,c/=2,e/=2}function p(l,f){return o===1?l[f]:l.readUInt16BE(f*o)}let a;if(i){let l=-1;for(a=e;au&&(e=u-c),a=e;a>=0;a--){let l=!0;for(let f=0;fi&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let u;for(u=0;u>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-e;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let u=!1;for(;;)switch(i){case"hex":return oe(this,t,e,n);case"utf8":case"utf-8":return ue(this,t,e,n);case"ascii":case"latin1":case"binary":return se(this,t,e,n);case"base64":return ce(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,t,e,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae(r,t,e){return t===0&&e===r.length?Z.fromByteArray(r):Z.fromByteArray(r.slice(t,e))}function Bt(r,t,e){e=Math.min(r.length,e);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+c<=e){let p,a,l,f;switch(c){case 1:o<128&&(u=o);break;case 2:p=r[i+1],(p&192)===128&&(f=(o&31)<<6|p&63,f>127&&(u=f));break;case 3:p=r[i+1],a=r[i+2],(p&192)===128&&(a&192)===128&&(f=(o&15)<<12|(p&63)<<6|a&63,f>2047&&(f<55296||f>57343)&&(u=f));break;case 4:p=r[i+1],a=r[i+2],l=r[i+3],(p&192)===128&&(a&192)===128&&(l&192)===128&&(f=(o&15)<<18|(p&63)<<12|(a&63)<<6|l&63,f>65535&&f<1114112&&(u=f))}}u===null?(u=65533,c=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=c}return fe(n)}var yt=4096;function fe(r){let t=r.length;if(t<=yt)return String.fromCharCode.apply(String,r);let e="",n=0;for(;nn)&&(e=n);let i="";for(let o=t;on&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),ee)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||y(t,e,this.length);let i=this[t],o=1,u=0;for(;++u>>0,e=e>>>0,n||y(t,e,this.length);let i=this[t+--e],o=1;for(;e>0&&(o*=256);)i+=this[t+--e]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t=t>>>0,e||y(t,1,this.length),this[t]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||y(t,2,this.length),this[t]|this[t+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||y(t,2,this.length),this[t]<<8|this[t+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||y(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||y(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};s.prototype.readBigUInt64LE=S(function(t){t=t>>>0,P(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&z(t,this.length-8);let i=e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,o=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<>>0,P(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&z(t,this.length-8);let i=e*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],o=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,e=e>>>0,n||y(t,e,this.length);let i=this[t],o=1,u=0;for(;++u=o&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||y(t,e,this.length);let i=e,o=1,u=this[t+--i];for(;i>0&&(o*=256);)u+=this[t+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*e)),u};s.prototype.readInt8=function(t,e){return t=t>>>0,e||y(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};s.prototype.readInt16LE=function(t,e){t=t>>>0,e||y(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(t,e){t=t>>>0,e||y(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(t,e){return t=t>>>0,e||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};s.prototype.readInt32BE=function(t,e){return t=t>>>0,e||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};s.prototype.readBigInt64LE=S(function(t){t=t>>>0,P(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&z(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,P(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&z(t,this.length-8);let i=(e<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,e||y(t,4,this.length),C.read(this,t,!0,23,4)};s.prototype.readFloatBE=function(t,e){return t=t>>>0,e||y(t,4,this.length),C.read(this,t,!1,23,4)};s.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||y(t,8,this.length),C.read(this,t,!0,52,8)};s.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||y(t,8,this.length),C.read(this,t,!1,52,8)};function w(r,t,e,n,i,o){if(!s.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||tr.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e=e>>>0,n=n>>>0,!i){let c=Math.pow(2,8*n)-1;w(this,t,e,n,c,0)}let o=1,u=0;for(this[e]=t&255;++u>>0,n=n>>>0,!i){let c=Math.pow(2,8*n)-1;w(this,t,e,n,c,0)}let o=n-1,u=1;for(this[e+o]=t&255;--o>=0&&(u*=256);)this[e+o]=t/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,1,255,0),this[e]=t&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function It(r,t,e,n,i){bt(t,n,i,r,e,7);let o=Number(t&BigInt(4294967295));r[e++]=o,o=o>>8,r[e++]=o,o=o>>8,r[e++]=o,o=o>>8,r[e++]=o;let u=Number(t>>BigInt(32)&BigInt(4294967295));return r[e++]=u,u=u>>8,r[e++]=u,u=u>>8,r[e++]=u,u=u>>8,r[e++]=u,e}function Ft(r,t,e,n,i){bt(t,n,i,r,e,7);let o=Number(t&BigInt(4294967295));r[e+7]=o,o=o>>8,r[e+6]=o,o=o>>8,r[e+5]=o,o=o>>8,r[e+4]=o;let u=Number(t>>BigInt(32)&BigInt(4294967295));return r[e+3]=u,u=u>>8,r[e+2]=u,u=u>>8,r[e+1]=u,u=u>>8,r[e]=u,e+8}s.prototype.writeBigUInt64LE=S(function(t,e=0){return It(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))});s.prototype.writeBigUInt64BE=S(function(t,e=0){return Ft(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))});s.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e=e>>>0,!i){let p=Math.pow(2,8*n-1);w(this,t,e,n,p-1,-p)}let o=0,u=1,c=0;for(this[e]=t&255;++o>0)-c&255;return e+n};s.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e=e>>>0,!i){let p=Math.pow(2,8*n-1);w(this,t,e,n,p-1,-p)}let o=n-1,u=1,c=0;for(this[e+o]=t&255;--o>=0&&(u*=256);)t<0&&c===0&&this[e+o+1]!==0&&(c=1),this[e+o]=(t/u>>0)-c&255;return e+n};s.prototype.writeInt8=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1};s.prototype.writeInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2};s.prototype.writeInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2};s.prototype.writeInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4};s.prototype.writeInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};s.prototype.writeBigInt64LE=S(function(t,e=0){return It(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});s.prototype.writeBigInt64BE=S(function(t,e=0){return Ft(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function At(r,t,e,n,i,o){if(e+n>r.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function kt(r,t,e,n,i){return t=+t,e=e>>>0,i||At(r,t,e,4,34028234663852886e22,-34028234663852886e22),C.write(r,t,e,n,23,4),e+4}s.prototype.writeFloatLE=function(t,e,n){return kt(this,t,e,!0,n)};s.prototype.writeFloatBE=function(t,e,n){return kt(this,t,e,!1,n)};function St(r,t,e,n,i){return t=+t,e=e>>>0,i||At(r,t,e,8,17976931348623157e292,-17976931348623157e292),C.write(r,t,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(t,e,n){return St(this,t,e,!0,n)};s.prototype.writeDoubleBE=function(t,e,n){return St(this,t,e,!1,n)};s.prototype.copy=function(t,e,n,i){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let o;if(typeof t=="number")for(o=e;o2**32?i=wt(String(e)):typeof e=="bigint"&&(i=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(i=wt(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function wt(r){let t="",e=r.length,n=r[0]==="-"?1:0;for(;e>=n+4;e-=3)t=`_${r.slice(e-3,e)}${t}`;return`${r.slice(0,e)}${t}`}function we(r,t,e){P(t,"offset"),(r[t]===void 0||r[t+e]===void 0)&&z(t,r.length-(e+1))}function bt(r,t,e,n,i,o){if(r>e||r3?t===0||t===BigInt(0)?c=`>= 0${u} and < 2${u} ** ${(o+1)*8}${u}`:c=`>= -(2${u} ** ${(o+1)*8-1}${u}) and < 2 ** ${(o+1)*8-1}${u}`:c=`>= ${t}${u} and <= ${e}${u}`,new T.ERR_OUT_OF_RANGE("value",c,r)}we(n,i,o)}function P(r,t){if(typeof r!="number")throw new T.ERR_INVALID_ARG_TYPE(t,"number",r)}function z(r,t,e){throw Math.floor(r)!==r?(P(r,e),new T.ERR_OUT_OF_RANGE(e||"offset","an integer",r)):t<0?new T.ERR_BUFFER_OUT_OF_BOUNDS:new T.ERR_OUT_OF_RANGE(e||"offset",`>= ${e?1:0} and <= ${t}`,r)}var me=/[^+/0-9A-Za-z-_]/g;function xe(r){if(r=r.split("=")[0],r=r.trim().replace(me,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function tt(r,t){t=t||1/0;let e,n=r.length,i=null,o=[];for(let u=0;u55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(t-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((t-=1)<0)break;o.push(e)}else if(e<2048){if((t-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((t-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((t-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function ge(r){let t=[];for(let e=0;e>8,i=e%256,o.push(i),o.push(n);return o}function Ut(r){return Z.toByteArray(xe(r))}function H(r,t,e,n){let i;for(i=0;i=t.length||i>=r.length);++i)t[i+e]=r[i];return i}function I(r,t){return r instanceof t||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===t.name}function it(r){return r!==r}var Be=function(){let r="0123456789abcdef",t=new Array(256);for(let e=0;e<16;++e){let n=e*16;for(let i=0;i<16;++i)t[n+i]=r[e]+r[i]}return t}();function S(r){return typeof BigInt>"u"?Ie:r}function Ie(){throw new Error("BigInt not supported")}});var x,d=Dt(()=>{"use strict";x=$t(Rt(),1)});d();d();d();d();var q=class{cache;analyzer;constructor(t){this.cache=new Map,this.analyzer=t}analyze(t){if(this.cache.has(t))return this.cache.get(t);let e=this.analyzer(t);return this.cache.set(t,e),e}},je=new q(r=>r.startsWith("[")||r.startsWith("<")),De=new q(r=>r.startsWith("chrome")||r.startsWith("webkit")||r.startsWith("moz")),O=["07c225f3.online","css-load.com","html-load.com","content-loader.com"],j=new q(r=>{if(r.endsWith("/script.min.js")||r.endsWith("/loader.min.js"))return!0;for(let t of O)if(r.includes(t))return!0;return!1}),L=r=>{let t=!1;for(let e=0;e!r.trace[e].startsWith(n))&&(t||=!0),e!==r.trace.length-1&&e!==0&&O.some(n=>r.trace[e].startsWith(n))&&(t||=!0);return t};d();var Fe=({trace:r})=>j.analyze(r[r.length-1]),Ae=({trace:r})=>{for(let t of r)if(j.analyze(t))return!0;return!1},Ot=r=>t=>{for(let e of r)if(e(t))return!0;return!1},M=Ot([Fe]),b=Ot([Ae]);var D=r=>new Proxy(console.debug,{apply(t,e,n){Reflect.apply(t,e,[`${r}`,...n])}}),v=D("[microShield:__utils__]");var g=()=>{let r=new Error;if(!r.stack)throw new Error("Stack trace is not available!");if(r.stack.includes("@")){let n=r.stack.split(` +"use strict";(()=>{var Mt=Object.create;var ct=Object.defineProperty;var Nt=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var qt=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty;var Dt=(r,t)=>()=>(r&&(t=r(r=0)),t);var Y=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var Wt=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zt(t))!jt.call(r,i)&&i!==e&&ct(r,i,{get:()=>t[i],enumerable:!(n=Nt(t,i))||n.enumerable});return r};var $t=(r,t,e)=>(e=r!=null?Mt(qt(r)):{},Wt(t||!r||!r.__esModule?ct(e,"default",{value:r,enumerable:!0}):e,r));var ft=Y(W=>{"use strict";d();W.byteLength=Gt;W.toByteArray=Yt;W.fromByteArray=Zt;var B=[],m=[],Ht=typeof Uint8Array<"u"?Uint8Array:Array,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(U=0,pt=X.length;U0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");e===-1&&(e=t);var n=e===t?0:4-e%4;return[e,n]}function Gt(r){var t=at(r),e=t[0],n=t[1];return(e+n)*3/4-n}function Vt(r,t,e){return(t+e)*3/4-e}function Yt(r){var t,e=at(r),n=e[0],i=e[1],o=new Ht(Vt(r,n,i)),u=0,c=i>0?n-4:n,p;for(p=0;p>16&255,o[u++]=t>>8&255,o[u++]=t&255;return i===2&&(t=m[r.charCodeAt(p)]<<2|m[r.charCodeAt(p+1)]>>4,o[u++]=t&255),i===1&&(t=m[r.charCodeAt(p)]<<10|m[r.charCodeAt(p+1)]<<4|m[r.charCodeAt(p+2)]>>2,o[u++]=t>>8&255,o[u++]=t&255),o}function Xt(r){return B[r>>18&63]+B[r>>12&63]+B[r>>6&63]+B[r&63]}function Jt(r,t,e){for(var n,i=[],o=t;oc?c:u+o));return n===1?(t=r[e-1],i.push(B[t>>2]+B[t<<4&63]+"==")):n===2&&(t=(r[e-2]<<8)+r[e-1],i.push(B[t>>10]+B[t>>4&63]+B[t<<2&63]+"=")),i.join("")}});var lt=Y(J=>{d();J.read=function(r,t,e,n,i){var o,u,c=i*8-n-1,p=(1<>1,l=-7,f=e?i-1:0,F=e?-1:1,E=r[t+f];for(f+=F,o=E&(1<<-l)-1,E>>=-l,l+=c;l>0;o=o*256+r[t+f],f+=F,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=n;l>0;u=u*256+r[t+f],f+=F,l-=8);if(o===0)o=1-a;else{if(o===p)return u?NaN:(E?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-a}return(E?-1:1)*u*Math.pow(2,o-n)};J.write=function(r,t,e,n,i,o){var u,c,p,a=o*8-i-1,l=(1<>1,F=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:o-1,V=n?1:-1,Lt=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,u=l):(u=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-u))<1&&(u--,p*=2),u+f>=1?t+=F/p:t+=F*Math.pow(2,1-f),t*p>=2&&(u++,p/=2),u+f>=l?(c=0,u=l):u+f>=1?(c=(t*p-1)*Math.pow(2,i),u=u+f):(c=t*Math.pow(2,f-1)*Math.pow(2,i),u=0));i>=8;r[e+E]=c&255,E+=V,c/=256,i-=8);for(u=u<0;r[e+E]=u&255,E+=V,u/=256,a-=8);r[e+E-V]|=Lt*128}});var Rt=Y(_=>{"use strict";d();var Z=ft(),C=lt(),ht=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=s;_.SlowBuffer=ne;_.INSPECT_MAX_BYTES=50;var $=2147483647;_.kMaxLength=$;s.TYPED_ARRAY_SUPPORT=Kt();!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Kt(){try{let r=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(r,t),r.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}});Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function A(r){if(r>$)throw new RangeError('The value "'+r+'" is invalid for option "size"');let t=new Uint8Array(r);return Object.setPrototypeOf(t,s.prototype),t}function s(r,t,e){if(typeof r=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return et(r)}return mt(r,t,e)}s.poolSize=8192;function mt(r,t,e){if(typeof r=="string")return te(r,t);if(ArrayBuffer.isView(r))return ee(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(I(r,ArrayBuffer)||r&&I(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(I(r,SharedArrayBuffer)||r&&I(r.buffer,SharedArrayBuffer)))return Q(r,t,e);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return s.from(n,t,e);let i=re(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return s.from(r[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}s.from=function(r,t,e){return mt(r,t,e)};Object.setPrototypeOf(s.prototype,Uint8Array.prototype);Object.setPrototypeOf(s,Uint8Array);function xt(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Qt(r,t,e){return xt(r),r<=0?A(r):t!==void 0?typeof e=="string"?A(r).fill(t,e):A(r).fill(t):A(r)}s.alloc=function(r,t,e){return Qt(r,t,e)};function et(r){return xt(r),A(r<0?0:rt(r)|0)}s.allocUnsafe=function(r){return et(r)};s.allocUnsafeSlow=function(r){return et(r)};function te(r,t){if((typeof t!="string"||t==="")&&(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let e=gt(r,t)|0,n=A(e),i=n.write(r,t);return i!==e&&(n=n.slice(0,i)),n}function K(r){let t=r.length<0?0:rt(r.length)|0,e=A(t);for(let n=0;n=$)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$.toString(16)+" bytes");return r|0}function ne(r){return+r!=r&&(r=0),s.alloc(+r)}s.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==s.prototype};s.compare=function(t,e){if(I(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),I(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,i=e.length;for(let o=0,u=Math.min(n,i);oi.length?(s.isBuffer(u)||(u=s.from(u)),u.copy(i,o)):Uint8Array.prototype.set.call(i,u,o);else if(s.isBuffer(u))u.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=u.length}return i};function gt(r,t){if(s.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||I(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let e=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return tt(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Ut(r).length;default:if(i)return n?-1:tt(r).length;t=(""+t).toLowerCase(),i=!0}}s.byteLength=gt;function ie(r,t,e){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,t>>>=0,e<=t))return"";for(r||(r="utf8");;)switch(r){case"hex":return de(this,t,e);case"utf8":case"utf-8":return Bt(this,t,e);case"ascii":return le(this,t,e);case"latin1":case"binary":return he(this,t,e);case"base64":return ae(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,t,e);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}s.prototype._isBuffer=!0;function R(r,t,e){let n=r[t];r[t]=r[e],r[e]=n}s.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;ee&&(t+=" ... "),""};ht&&(s.prototype[ht]=s.prototype.inspect);s.prototype.compare=function(t,e,n,i,o){if(I(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;let u=o-i,c=n-e,p=Math.min(u,c),a=this.slice(i,o),l=t.slice(e,n);for(let f=0;f2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,it(e)&&(e=i?0:r.length-1),e<0&&(e=r.length+e),e>=r.length){if(i)return-1;e=r.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof t=="string"&&(t=s.from(t,n)),s.isBuffer(t))return t.length===0?-1:dt(r,t,e,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,t,e):Uint8Array.prototype.lastIndexOf.call(r,t,e):dt(r,[t],e,n,i);throw new TypeError("val must be string, number or Buffer")}function dt(r,t,e,n,i){let o=1,u=r.length,c=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||t.length<2)return-1;o=2,u/=2,c/=2,e/=2}function p(l,f){return o===1?l[f]:l.readUInt16BE(f*o)}let a;if(i){let l=-1;for(a=e;au&&(e=u-c),a=e;a>=0;a--){let l=!0;for(let f=0;fi&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let u;for(u=0;u>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-e;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let u=!1;for(;;)switch(i){case"hex":return oe(this,t,e,n);case"utf8":case"utf-8":return ue(this,t,e,n);case"ascii":case"latin1":case"binary":return se(this,t,e,n);case"base64":return ce(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,t,e,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae(r,t,e){return t===0&&e===r.length?Z.fromByteArray(r):Z.fromByteArray(r.slice(t,e))}function Bt(r,t,e){e=Math.min(r.length,e);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+c<=e){let p,a,l,f;switch(c){case 1:o<128&&(u=o);break;case 2:p=r[i+1],(p&192)===128&&(f=(o&31)<<6|p&63,f>127&&(u=f));break;case 3:p=r[i+1],a=r[i+2],(p&192)===128&&(a&192)===128&&(f=(o&15)<<12|(p&63)<<6|a&63,f>2047&&(f<55296||f>57343)&&(u=f));break;case 4:p=r[i+1],a=r[i+2],l=r[i+3],(p&192)===128&&(a&192)===128&&(l&192)===128&&(f=(o&15)<<18|(p&63)<<12|(a&63)<<6|l&63,f>65535&&f<1114112&&(u=f))}}u===null?(u=65533,c=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=c}return fe(n)}var yt=4096;function fe(r){let t=r.length;if(t<=yt)return String.fromCharCode.apply(String,r);let e="",n=0;for(;nn)&&(e=n);let i="";for(let o=t;on&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),ee)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||y(t,e,this.length);let i=this[t],o=1,u=0;for(;++u>>0,e=e>>>0,n||y(t,e,this.length);let i=this[t+--e],o=1;for(;e>0&&(o*=256);)i+=this[t+--e]*o;return i};s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t=t>>>0,e||y(t,1,this.length),this[t]};s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||y(t,2,this.length),this[t]|this[t+1]<<8};s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||y(t,2,this.length),this[t]<<8|this[t+1]};s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||y(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||y(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};s.prototype.readBigUInt64LE=S(function(t){t=t>>>0,P(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&z(t,this.length-8);let i=e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,o=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<>>0,P(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&z(t,this.length-8);let i=e*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],o=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,e=e>>>0,n||y(t,e,this.length);let i=this[t],o=1,u=0;for(;++u=o&&(i-=Math.pow(2,8*e)),i};s.prototype.readIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||y(t,e,this.length);let i=e,o=1,u=this[t+--i];for(;i>0&&(o*=256);)u+=this[t+--i]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*e)),u};s.prototype.readInt8=function(t,e){return t=t>>>0,e||y(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};s.prototype.readInt16LE=function(t,e){t=t>>>0,e||y(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};s.prototype.readInt16BE=function(t,e){t=t>>>0,e||y(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};s.prototype.readInt32LE=function(t,e){return t=t>>>0,e||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};s.prototype.readInt32BE=function(t,e){return t=t>>>0,e||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};s.prototype.readBigInt64LE=S(function(t){t=t>>>0,P(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&z(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,P(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&z(t,this.length-8);let i=(e<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,e||y(t,4,this.length),C.read(this,t,!0,23,4)};s.prototype.readFloatBE=function(t,e){return t=t>>>0,e||y(t,4,this.length),C.read(this,t,!1,23,4)};s.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||y(t,8,this.length),C.read(this,t,!0,52,8)};s.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||y(t,8,this.length),C.read(this,t,!1,52,8)};function w(r,t,e,n,i,o){if(!s.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||tr.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e=e>>>0,n=n>>>0,!i){let c=Math.pow(2,8*n)-1;w(this,t,e,n,c,0)}let o=1,u=0;for(this[e]=t&255;++u>>0,n=n>>>0,!i){let c=Math.pow(2,8*n)-1;w(this,t,e,n,c,0)}let o=n-1,u=1;for(this[e+o]=t&255;--o>=0&&(u*=256);)this[e+o]=t/u&255;return e+n};s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,1,255,0),this[e]=t&255,e+1};s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2};s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2};s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4};s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function It(r,t,e,n,i){bt(t,n,i,r,e,7);let o=Number(t&BigInt(4294967295));r[e++]=o,o=o>>8,r[e++]=o,o=o>>8,r[e++]=o,o=o>>8,r[e++]=o;let u=Number(t>>BigInt(32)&BigInt(4294967295));return r[e++]=u,u=u>>8,r[e++]=u,u=u>>8,r[e++]=u,u=u>>8,r[e++]=u,e}function Ft(r,t,e,n,i){bt(t,n,i,r,e,7);let o=Number(t&BigInt(4294967295));r[e+7]=o,o=o>>8,r[e+6]=o,o=o>>8,r[e+5]=o,o=o>>8,r[e+4]=o;let u=Number(t>>BigInt(32)&BigInt(4294967295));return r[e+3]=u,u=u>>8,r[e+2]=u,u=u>>8,r[e+1]=u,u=u>>8,r[e]=u,e+8}s.prototype.writeBigUInt64LE=S(function(t,e=0){return It(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))});s.prototype.writeBigUInt64BE=S(function(t,e=0){return Ft(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))});s.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e=e>>>0,!i){let p=Math.pow(2,8*n-1);w(this,t,e,n,p-1,-p)}let o=0,u=1,c=0;for(this[e]=t&255;++o>0)-c&255;return e+n};s.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e=e>>>0,!i){let p=Math.pow(2,8*n-1);w(this,t,e,n,p-1,-p)}let o=n-1,u=1,c=0;for(this[e+o]=t&255;--o>=0&&(u*=256);)t<0&&c===0&&this[e+o+1]!==0&&(c=1),this[e+o]=(t/u>>0)-c&255;return e+n};s.prototype.writeInt8=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1};s.prototype.writeInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2};s.prototype.writeInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2};s.prototype.writeInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4};s.prototype.writeInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||w(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};s.prototype.writeBigInt64LE=S(function(t,e=0){return It(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});s.prototype.writeBigInt64BE=S(function(t,e=0){return Ft(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function At(r,t,e,n,i,o){if(e+n>r.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function kt(r,t,e,n,i){return t=+t,e=e>>>0,i||At(r,t,e,4,34028234663852886e22,-34028234663852886e22),C.write(r,t,e,n,23,4),e+4}s.prototype.writeFloatLE=function(t,e,n){return kt(this,t,e,!0,n)};s.prototype.writeFloatBE=function(t,e,n){return kt(this,t,e,!1,n)};function St(r,t,e,n,i){return t=+t,e=e>>>0,i||At(r,t,e,8,17976931348623157e292,-17976931348623157e292),C.write(r,t,e,n,52,8),e+8}s.prototype.writeDoubleLE=function(t,e,n){return St(this,t,e,!0,n)};s.prototype.writeDoubleBE=function(t,e,n){return St(this,t,e,!1,n)};s.prototype.copy=function(t,e,n,i){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let o;if(typeof t=="number")for(o=e;o2**32?i=wt(String(e)):typeof e=="bigint"&&(i=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(i=wt(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function wt(r){let t="",e=r.length,n=r[0]==="-"?1:0;for(;e>=n+4;e-=3)t=`_${r.slice(e-3,e)}${t}`;return`${r.slice(0,e)}${t}`}function we(r,t,e){P(t,"offset"),(r[t]===void 0||r[t+e]===void 0)&&z(t,r.length-(e+1))}function bt(r,t,e,n,i,o){if(r>e||r3?t===0||t===BigInt(0)?c=`>= 0${u} and < 2${u} ** ${(o+1)*8}${u}`:c=`>= -(2${u} ** ${(o+1)*8-1}${u}) and < 2 ** ${(o+1)*8-1}${u}`:c=`>= ${t}${u} and <= ${e}${u}`,new T.ERR_OUT_OF_RANGE("value",c,r)}we(n,i,o)}function P(r,t){if(typeof r!="number")throw new T.ERR_INVALID_ARG_TYPE(t,"number",r)}function z(r,t,e){throw Math.floor(r)!==r?(P(r,e),new T.ERR_OUT_OF_RANGE(e||"offset","an integer",r)):t<0?new T.ERR_BUFFER_OUT_OF_BOUNDS:new T.ERR_OUT_OF_RANGE(e||"offset",`>= ${e?1:0} and <= ${t}`,r)}var me=/[^+/0-9A-Za-z-_]/g;function xe(r){if(r=r.split("=")[0],r=r.trim().replace(me,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function tt(r,t){t=t||1/0;let e,n=r.length,i=null,o=[];for(let u=0;u55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(u+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(t-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((t-=1)<0)break;o.push(e)}else if(e<2048){if((t-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((t-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((t-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function ge(r){let t=[];for(let e=0;e>8,i=e%256,o.push(i),o.push(n);return o}function Ut(r){return Z.toByteArray(xe(r))}function H(r,t,e,n){let i;for(i=0;i=t.length||i>=r.length);++i)t[i+e]=r[i];return i}function I(r,t){return r instanceof t||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===t.name}function it(r){return r!==r}var Be=function(){let r="0123456789abcdef",t=new Array(256);for(let e=0;e<16;++e){let n=e*16;for(let i=0;i<16;++i)t[n+i]=r[e]+r[i]}return t}();function S(r){return typeof BigInt>"u"?Ie:r}function Ie(){throw new Error("BigInt not supported")}});var x,d=Dt(()=>{"use strict";x=$t(Rt(),1)});d();d();d();d();var q=class{cache;analyzer;constructor(t){this.cache=new Map,this.analyzer=t}analyze(t){if(this.cache.has(t))return this.cache.get(t);let e=this.analyzer(t);return this.cache.set(t,e),e}},je=new q(r=>r.startsWith("[")||r.startsWith("<")),De=new q(r=>r.startsWith("chrome")||r.startsWith("webkit")||r.startsWith("moz")),O=["07c225f3.online","css-load.com","html-load.com","content-loader.com","22d2d4d9-0c15-4a3a-9562-384f2c100146.xyz"],j=new q(r=>{if(r.endsWith("/script.min.js")||r.endsWith("/loader.min.js"))return!0;for(let t of O)if(r.includes(t))return!0;return!1}),L=r=>{let t=!1;for(let e=0;e!r.trace[e].startsWith(n))&&(t||=!0),e!==r.trace.length-1&&e!==0&&O.some(n=>r.trace[e].startsWith(n))&&(t||=!0);return t};d();var Fe=({trace:r})=>j.analyze(r[r.length-1]),Ae=({trace:r})=>{for(let t of r)if(j.analyze(t))return!0;return!1},Ot=r=>t=>{for(let e of r)if(e(t))return!0;return!1},M=Ot([Fe]),b=Ot([Ae]);var D=r=>new Proxy(console.debug,{apply(t,e,n){Reflect.apply(t,e,[`${r}`,...n])}}),v=D("[microShield:__utils__]");var g=()=>{let r=new Error;if(!r.stack)throw new Error("Stack trace is not available!");if(r.stack.includes("@")){let n=r.stack.split(` `).slice(2),i=[];navigator.userAgent.includes("Firefox/")&&n.splice(-1,1);for(let o of n){let u=o.indexOf("@")+1,c=o.lastIndexOf(":"),p=c<0?o.slice(u):o.slice(u,o.lastIndexOf(":",c-1));i.push(p)}return{trace:i,raw:n}}let t=r.stack.slice(6).split(` `).slice(2),e=[];for(let n of t){let i=n.slice(n.indexOf("(")+1||n.indexOf("at")+3,n.lastIndexOf(":",n.lastIndexOf(":")-1));e.push(i)}return{trace:e,raw:t}},k=(r,t=r.name)=>new Proxy(r,{apply(n,i,o){let u=g();if(M(u)&&L(u))throw v(`apply name=${t} argArray=`,o,"stack=",u.raw),new Error("microShield");return Reflect.apply(n,i,o)},setPrototypeOf(n,i){let o=g();if(b(o))throw v(`setPrototypeOf name=${t} stack=`,o.raw),new Error("microShield");return Reflect.setPrototypeOf(n,i)}}),N=async r=>r.readyState!=="loading"?!0:new Promise(t=>{r.addEventListener("readystatechange",()=>{t(!0)})}),vt=(r,t=r.name)=>new Proxy(r,{set(n,i,o,u){let c=g();if(M(c)&&L(c))throw v(`set name=${t} argArray=`,o,"stack=",c.raw),new Error("Overriding Error is not allowed!");return Reflect.set(n,i,o,u)},setPrototypeOf(n,i){let o=g();if(b(o))throw v(`setPrototypeOf name=${t} stack=`,o.raw),new Error("Overriding prototype of Error is not allowed!");return Reflect.setPrototypeOf(n,i)}}),ke=r=>{let t=r.join(` `),e=!1;return e||=(t.match(/eval/g)?.length??-1)>=4&&(t.includes("NodeList.forEach")??!1),e||=(/^[A-Za-z0-9/<>]+@https:\/\/.+ line [0-9]+ > eval/.exec(t)?.length??-1)>=1&&(t.match(/\n([a-zA-Z0-9]+)?@https:\/\/.+ line [0-9]+ > eval/g)?.length??-1)>=2,e||=(t.match(/\n([a-zA-Z0-9]+)?@\n/g)?.length??-1)>=2&&(t.includes("forEach@[native code]")??!1),e},ot=(r,t=r.name)=>new Proxy(r,{apply(n,i,o){let u=g();if(ke(u.raw)||M(u)&&L(u))throw v(`apply name=${t} argArray=`,o,"stack=",u.raw),new Error("microShield");return Reflect.apply(n,i,o)},setPrototypeOf(n,i){let o=g();if(b(o))throw v(`setPrototypeOf name=${t} stack=`,o.raw),new Error("microShield");return Reflect.setPrototypeOf(n,i)}}),Tt=(r,t=r.name)=>new Proxy(r,{apply(n,i,o){if(o.length>0&&O.some(u=>o.join(` diff --git a/package.json b/package.json index 11395e3..5eabf57 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "microshield", - "version": "3.16.5", + "version": "3.16.6", "description": "", "type": "module", "scripts": { @@ -34,19 +34,19 @@ ], "license": "Apache-2.0", "dependencies": { - "@types/node": "^20.11.23", + "@types/node": "^20.11.25", "buffer": "^6.0.3" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^7.1.0", - "@typescript-eslint/parser": "^7.1.0", + "@typescript-eslint/eslint-plugin": "^7.1.1", + "@typescript-eslint/parser": "^7.1.1", "acorn-walk": "^8.3.2", "esbuild": "^0.20.1", "eslint": "^8.57.0", "eslint-config-xo": "^0.44.0", "eslint-config-xo-typescript": "^3.0.0", - "playwright": "^1.42.0", + "playwright": "^1.42.1", "pnpm": "^8.15.4", - "typescript": "^5.3.3" + "typescript": "^5.4.2" } } diff --git a/sources/banner.txt b/sources/banner.txt index 915ab1c..6db4e0c 100644 --- a/sources/banner.txt +++ b/sources/banner.txt @@ -8,7 +8,7 @@ // @downloadURL https://cdn.jsdelivr.net/gh/List-KR/microShield@latest/microShield.user.js // @license Apache-2.0 // -// @version 3.16.5 +// @version 3.16.6 // @author PiQuark6046 and contributors // // @match *://ygosu.com/* diff --git a/sources/src/call-validators/analyzers.ts b/sources/src/call-validators/analyzers.ts index 1c66da2..e4233f4 100644 --- a/sources/src/call-validators/analyzers.ts +++ b/sources/src/call-validators/analyzers.ts @@ -32,6 +32,7 @@ export const knownAdShieldOrigins = [ 'css-load.com', 'html-load.com', 'content-loader.com', + '22d2d4d9-0c15-4a3a-9562-384f2c100146.xyz', ]; export const adShieldCallAnalyzer = new MemoizedCallAnalyzer(line => {