PageSourceSearch

https://www.sse.gg/_next/static/chunks/3421.5311ccd0f08da142.js

js sse.gg collected 2026-10-01 03:09:49 UTC 3,812 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3421],{23421:(t,e,n)=>{n.r(e),n.d(e,{signWithApiKey:()=>l});var r=n(93159),i=n(4924);let l=async t=>{let{content:e,publicKey:n,privateKey:r}=t,i=await o({uncompressedPrivateKeyHex:r,compressedPublicKeyHex:n});return await u({key:i,content:e})};async function o(t){let{uncompressedPrivateKeyHex:e,compressedPublicKeyHex:n}=t,i=(0,r.S)({uncompressedPrivateKeyHex:e,compressedPublicKeyHex:n});return await crypto.subtle.importKey("jwk",i,{name:"ECDSA",namedCurve:"P-256"},!1,["sign"])}async function u(t){let{key:e,content:n}=t,r=function(t){let e;if(t.length%2!=0||0==t.length||t.length>132)throw Error("Invalid IEEE P1363 signature encoding. Length: "+t.length);let n=a(t.subarray(0,t.length/2)),r=a(t.subarray(t.length/2,t.length)),i=0,l=2+n.length+1+1+r.length;return l>=128?((e=new Uint8Array(l+3))[i++]=48,e[i++]=129):(e=new Uint8Array(l+2))[i++]=48,e[i++]=l,e[i++]=2,e[i++]=n.length,e.set(n,i),i+=n.length,e[i++]=2,e[i++]=r.length,e.set(r,i),e}(new Uint8Array(await crypto.subtle.sign({name:"ECDSA",hash:"SHA-256"},e,new TextEncoder().encode(n))));return(0,i.pD)(r)}function a(t){let e=0;for(;e<t.length&&0==t[e];)e++;e==t.length&&(e=t.length-1);let n=0;(128&t[e])==128&&(n=1);let r=new Uint8Array(t.length-e+n);return r.set(t.subarray(e),n),r}},93159:(t,e,n)=>{function r(t,e){return btoa(function(t){let e="";for(let n=0;n<t.length;n+=1)e+=String.fromCharCode(t[n]);return e}(t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function i(){return BigInt("115792089210356248762697446949407573530086143415290314195533631308867097853951")}function l(){return BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b")}function o(t){return BigInt("0x"+function(t){let e="";for(let n=0;n<t.length;n++){let r=t[n].toString(16);e+=r.length>1?r:"0"+r}return e}(t))}function u(t,e){let n=t.toString(16),r=2*e,i="";if(r<n.length)throw Error(`cannot pack integer with ${n.length} hex chars into ${e} bytes`);var l=(i="0".repeat(r-n.length))+n;if(l.length%2!=0)throw Error("Hex string length must be multiple of 2");let o=new Uint8Array(l.length/2);for(let t=0;t<l.length;t+=2)o[t/2]=parseInt(l.substring(t,t+2),16);return o}function a(t,e){return(t&BigInt(1)<<BigInt(e))!==BigInt(0)}n.d(e,{S:()=>c});var g=n(4924);function c(t){let e,{uncompressedPrivateKeyHex:n,compressedPublicKeyHex:c}=t;try{e=function(t){let e=33,n=65;if(t.length!==e&&t.length!==n)throw Error("Invalid length: point is not in compressed or uncompressed format");if((2===t[0]||3===t[0])&&t.length==e){let e=3===t[0],n=o(t.subarray(1,t.length)),g=i();if(n<BigInt(0)||n>=g)throw Error("x is out of range");let c=function(t,e){let n=i(),r=n-BigInt(3),o=l(),u=function(t,e){if(e<=BigInt(0))throw Error("p must be positive");let n=t%e;if(a(e,0)&&a(e,1)){let t=function(t,e,n){if(e===BigInt(0))return BigInt(1);let r=t,i=e.toString(2);for(let e=1;e<i.length;++e)r=r*r%n,"1"===i[e]&&(r=r*t%n);return r}(n,e+BigInt(1)>>BigInt(2),e);if(t*t%e!==n)throw Error("could not find a modular square root");return t}throw Error("unsupported modulus value")}(((t*t+r)*t+o)%n,n);return e!==a(u,0)&&(u=(n-u)%n),u}(n,e);return{kty:"EC",crv:"P-256",x:r(u(n,32)),y:r(u(c,32)),ext:!0}}if(4===t[0]&&t.length==n){let e=o(t.subarray(1,33)),n=o(t.subarray(33,65)),a=i();if(e<BigInt(0)||e>=a||n<BigInt(0)||n>=a||!function(t,e){let n=i(),r=n-BigInt(3),o=l();return e**BigInt(2)%n==((t*t+r)*t+o)%n}(e,n))throw Error("invalid uncompressed x and y coordinates");return{kty:"EC",crv:"P-256",x:r(u(e,32)),y:r(u(n,32)),ext:!0}}throw Error("invalid format")}((0,g.Ks)(c))}catch(t){throw Error("unable to load API key: invalid public key. Did you switch your public and private key by accident? Is your public key a valid, compressed P-256 public key?")}return e.d=(0,g.el)(n,g.Ev),e}}}]);

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.