PageSourceSearch

https://non-te-lo-dico.vercel.app/_next/static/chunks/6460.92fbdca40685fda5.js

js non-te-lo-dico.vercel.app collected 2026-10-03 07:26:45 UTC 27,893 bytes, 1 lines download raw bytes

vendor: 27,180 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6460],{86662:(t,e,r)=>{r.d(e,{Ak:()=>u,UT:()=>b,Xf:()=>w,fH:()=>g,hT:()=>p,u0:()=>s});var n=r(98265),i=r(87375);let o=BigInt(0),l=BigInt(1);function s(t,e){let r=e.negate();return t?r:e}function u(t,e){let r=(0,i.pS)(t.Fp,e.map(t=>t.Z));return e.map((e,n)=>t.fromAffine(e.toAffine(r[n])))}function a(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw Error("invalid window size, expected [1.."+e+"], got W="+t)}function f(t,e){a(t,e);let r=Math.ceil(e/t)+1,i=2**(t-1),o=2**t;return{windows:r,windowSize:i,mask:(0,n.OG)(t),maxNumber:o,shiftBy:BigInt(t)}}function d(t,e,r){let{windowSize:n,mask:i,maxNumber:o,shiftBy:s}=r,u=Number(t&i),a=t>>s;u>n&&(u-=o,a+=l);let f=e*n,d=f+Math.abs(u)-1,c=0===u;return{nextN:a,offset:d,isZero:c,isNeg:u<0,isNegF:e%2!=0,offsetF:f}}let c=new WeakMap,h=new WeakMap;function m(t){return h.get(t)||1}function y(t){if(t!==o)throw Error("invalid wNAF")}class p{constructor(t,e){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=e}_unsafeLadder(t,e,r=this.ZERO){let n=t;for(;e>o;)e&l&&(r=r.add(n)),n=n.double(),e>>=l;return r}precomputeWindow(t,e){let{windows:r,windowSize:n}=f(e,this.bits),i=[],o=t,l=o;for(let t=0;t<r;t++){l=o,i.push(l);for(let t=1;t<n;t++)l=l.add(o),i.push(l);o=l.double()}return i}wNAF(t,e,r){if(!this.Fn.isValid(r))throw Error("invalid scalar");let n=this.ZERO,i=this.BASE,o=f(t,this.bits);for(let t=0;t<o.windows;t++){let{nextN:l,offset:u,isZero:a,isNeg:f,isNegF:c,offsetF:h}=d(r,t,o);r=l,a?i=i.add(s(c,e[h])):n=n.add(s(f,e[u]))}return y(r),{p:n,f:i}}wNAFUnsafe(t,e,r,n=this.ZERO){let i=f(t,this.bits);for(let t=0;t<i.windows&&r!==o;t++){let{nextN:o,offset:l,isZero:s,isNeg:u}=d(r,t,i);if(r=o,!s){let t=e[l];n=n.add(u?t.negate():t)}}return y(r),n}getPrecomputes(t,e,r){let n=c.get(e);return n||(n=this.precomputeWindow(e,t),1!==t&&("function"==typeof r&&(n=r(n)),c.set(e,n))),n}cached(t,e,r){let n=m(t);return this.wNAF(n,this.getPrecomputes(n,t,r),e)}unsafe(t,e,r,n){let i=m(t);return 1===i?this._unsafeLadder(t,e,n):this.wNAFUnsafe(i,this.getPrecomputes(i,t,r),e,n)}createCache(t,e){a(e,this.bits),h.set(t,e),c.delete(t)}hasCache(t){return 1!==m(t)}}function g(t,e,r,n){let i=e,s=t.ZERO,u=t.ZERO;for(;r>o||n>o;)r&l&&(s=s.add(i)),n&l&&(u=u.add(i)),i=i.double(),r>>=l,n>>=l;return{p1:s,p2:u}}function w(t,e,r,i){(function(t,e){if(!Array.isArray(t))throw Error("array expected");t.forEach((t,r)=>{if(!(t instanceof e))throw Error("invalid point at index "+r)})})(r,t),function(t,e){if(!Array.isArray(t))throw Error("array of scalars expected");t.forEach((t,r)=>{if(!e.isValid(t))throw Error("invalid scalar at index "+r)})}(i,e);let o=r.length,l=i.length;if(o!==l)throw Error("arrays of points and scalars must have equal length");let s=t.ZERO,u=(0,n.dJ)(BigInt(o)),a=1;u>12?a=u-3:u>4?a=u-2:u>0&&(a=2);let f=(0,n.OG)(a),d=Array(Number(f)+1).fill(s),c=Math.floor((e.BITS-1)/a)*a,h=s;for(let t=c;t>=0;t-=a){d.fill(s);for(let e=0;e<l;e++){let n=Number(i[e]>>BigInt(t)&f);d[n]=d[n].add(r[e])}let e=s;for(let t=d.length-1,r=s;t>0;t--)r=r.add(d[t]),e=e.add(r);if(h=h.add(e),0!==t)for(let t=0;t<a;t++)h=h.double()}return h}function E(t,e,r){if(!e)return(0,i.D0)(t,{isLE:r});if(e.ORDER!==t)throw Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,i.jr)(e),e}function b(t,e,r={},n){if(void 0===n&&(n="edwards"===t),!e||"object"!=typeof e)throw Error(`expected valid ${t} CURVE object`);for(let t of["p","n","h"]){let r=e[t];if(!("bigint"==typeof r&&r>o))throw Error(`CURVE.${t} must be positive bigint`)}let i=E(e.p,r.Fp,n),l=E(e.n,r.Fn,n);for(let r of["Gx","Gy","a","weierstrass"===t?"b":"d"])if(!i.isValid(e[r]))throw Error(`CURVE.${r} must be valid field element of CURVE.Fp`);return{CURVE:e=Object.freeze(Object.assign({},e)),Fp:i,Fn:l}}},87375:(t,e,r)=>{r.d(e,{D0:()=>A,LH:()=>S,Tp:()=>I,dQ:()=>B,jr:()=>R,pS:()=>q,qy:()=>V,zH:()=>p,zi:()=>y});var n=r(98265),i=r(12762);let o=BigInt(0),l=BigInt(1),s=BigInt(2),u=BigInt(3),a=BigInt(4),f=BigInt(5),d=BigInt(7),c=BigInt(8),h=BigInt(9),m=BigInt(16);function y(t,e){let r=t%e;return r>=o?r:e+r}function p(t,e,r){let n=t;for(;e-- >o;)n*=n,n%=r;return n}function g(t,e){if(t===o)throw Error("invert: expected non-zero number");if(e<=o)throw Error("invert: expected positive modulus, got "+e);let r=y(t,e),n=e,i=o,s=l,u=l,a=o;for(;r!==o;){let t=n/r,e=n%r,o=i-u*t,l=s-a*t;n=r,r=e,i=u,s=a,u=o,a=l}if(n!==l)throw Error("invert: does not exist");return y(i,e)}function w(t,e,r){if(!t.eql(t.sqr(e),r))throw Error("Cannot find square root")}function E(t,e){let r=(t.ORDER+l)/a,n=t.pow(e,r);return w(t,n,e),n}function b(t,e){let r=(t.ORDER-f)/c,n=t.mul(e,s),i=t.pow(n,r),o=t.mul(e,i),l=t.mul(t.mul(o,s),i),u=t.mul(o,t.sub(l,t.ONE));return w(t,u,e),u}function v(t){if(t<u)throw Error("sqrt is not defined for small field");let e=t-l,r=0;for(;e%s===o;)e/=s,r++;let n=s,i=A(t);for(;1===x(i,n);)if(n++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===r)return E;let a=i.pow(n,e),f=(e+l)/s;return function(t,n){if(t.is0(n))return n;if(1!==x(t,n))throw Error("Cannot find square root");let i=r,o=t.mul(t.ONE,a),s=t.pow(n,e),u=t.pow(n,f);for(;!t.eql(s,t.ONE);){if(t.is0(s))return t.ZERO;let e=1,r=t.sqr(s);for(;!t.eql(r,t.ONE);)if(e++,r=t.sqr(r),e===i)throw Error("Cannot find square root");let n=l<<BigInt(i-e-1),a=t.pow(o,n);i=e,o=t.sqr(a),s=t.mul(s,o),u=t.mul(u,a)}return u}}let B=(t,e)=>(y(t,e)&l)===l,O=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function R(t){let e=O.reduce((t,e)=>(t[e]="function",t),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"});return(0,n.DS)(t,e),t}function q(t,e,r=!1){let n=Array(e.length).fill(r?t.ZERO:void 0),i=e.reduce((e,r,i)=>t.is0(r)?e:(n[i]=e,t.mul(e,r)),t.ONE),o=t.inv(i);return e.reduceRight((e,r,i)=>t.is0(r)?e:(n[i]=t.mul(e,n[i]),t.mul(e,r)),o),n}function x(t,e){let r=(t.ORDER-l)/s,n=t.pow(e,r),i=t.eql(n,t.ONE),o=t.eql(n,t.ZERO),u=t.eql(n,t.neg(t.ONE));if(!i&&!o&&!u)throw Error("invalid Legendre symbol result");return i?1:o?0:-1}function S(t,e){void 0!==e&&(0,i.Fe)(e);let r=void 0!==e?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function A(t,e,r=!1,i={}){let s,p,B,O;if(t<=o)throw Error("invalid field: expected ORDER > 0, got "+t);let R=!1;if("object"==typeof e&&null!=e){if(i.sqrt||r)throw Error("cannot specify opts in two arguments");e.BITS&&(p=e.BITS),e.sqrt&&(B=e.sqrt),"boolean"==typeof e.isLE&&(r=e.isLE),"boolean"==typeof e.modFromBytes&&(R=e.modFromBytes),O=e.allowedLengths}else"number"==typeof e&&(p=e),i.sqrt&&(B=i.sqrt);let{nBitLength:x,nByteLength:N}=S(t,p);if(N>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let I=Object.freeze({ORDER:t,isLE:r,BITS:x,BYTES:N,MASK:(0,n.OG)(x),ZERO:o,ONE:l,allowedLengths:O,create:e=>y(e,t),isValid:e=>{if("bigint"!=typeof e)throw Error("invalid field element: expected bigint, got "+typeof e);return o<=e&&e<t},is0:t=>t===o,isValidNot0:t=>!I.is0(t)&&I.isValid(t),isOdd:t=>(t&l)===l,neg:e=>y(-e,t),eql:(t,e)=>t===e,sqr:e=>y(e*e,t),add:(e,r)=>y(e+r,t),sub:(e,r)=>y(e-r,t),mul:(e,r)=>y(e*r,t),pow:(t,e)=>(function(t,e,r){if(r<o)throw Error("invalid exponent, negatives unsupported");if(r===o)return t.ONE;if(r===l)return e;let n=t.ONE,i=e;for(;r>o;)r&l&&(n=t.mul(n,i)),i=t.sqr(i),r>>=l;return n})(I,t,e),div:(e,r)=>y(e*g(r,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>g(e,t),sqrt:B||(e=>{if(!s)s=t%a===u?E:t%c===f?b:t%m===h?function(t){let e=A(t),r=v(t),n=r(e,e.neg(e.ONE)),i=r(e,n),o=r(e,e.neg(n)),l=(t+d)/m;return(t,e)=>{let r=t.pow(e,l),s=t.mul(r,n),u=t.mul(r,i),a=t.mul(r,o),f=t.eql(t.sqr(s),e),d=t.eql(t.sqr(u),e);r=t.cmov(r,s,f),s=t.cmov(a,u,d);let c=t.eql(t.sqr(s),e),h=t.cmov(r,s,c);return w(t,h,e),h}}(t):v(t);return s(I,e)}),toBytes:t=>r?(0,n.z)(t,N):(0,n.lq)(t,N),fromBytes:(e,i=!0)=>{if(O){if(!O.includes(e.length)||e.length>N)throw Error("Field.fromBytes: expected "+O+" bytes, got "+e.length);let t=new Uint8Array(N);t.set(e,r?0:t.length-e.length),e=t}if(e.length!==N)throw Error("Field.fromBytes: expected "+N+" bytes, got "+e.length);let o=r?(0,n.lX)(e):(0,n.Ph)(e);if(R&&(o=y(o,t)),!i&&!I.isValid(o))throw Error("invalid field element: outside of range 0..ORDER");return o},invertBatch:t=>q(I,t),cmov:(t,e,r)=>r?e:t});return Object.freeze(I)}function N(t){if("bigint"!=typeof t)throw Error("field order must be bigint");return Math.ceil(t.toString(2).length/8)}function I(t){let e=N(t);return e+Math.ceil(e/2)}function V(t,e,r=!1){let i=t.length,o=N(e),s=I(e);if(i<16||i<s||i>1024)throw Error("expected "+s+"-1024 bytes of input, got "+i);let u=y(r?(0,n.lX)(t):(0,n.Ph)(t),e-l)+l;return r?(0,n.z)(u,o):(0,n.lq)(u,o)}},96460:(t,e,r)=>{r.d(e,{s:()=>v});var n=r(17925),i=r(12762),o=r(98265),l=r(86662),s=r(87375);let u=(t,e)=>(t+(t>=0?e:-e)/y)/e;function a(t){if(!["compact","recovered","der"].includes(t))throw Error('Signature format must be "compact", "recovered", or "der"');return t}function f(t,e){let r={};for(let n of Object.keys(e))r[n]=void 0===t[n]?e[n]:t[n];return(0,o.d6)(r.lowS,"lowS"),(0,o.d6)(r.prehash,"prehash"),void 0!==r.format&&a(r.format),r}class d extends Error{constructor(t=""){super(t)}}let c={Err:d,_tlv:{encode:(t,e)=>{let{Err:r}=c;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(1&e.length)throw new r("tlv.encode: unpadded data");let n=e.length/2,i=(0,o.zW)(n);if(i.length/2&128)throw new r("tlv.encode: long form length too big");let l=n>127?(0,o.zW)(i.length/2|128):"";return(0,o.zW)(t)+l+i+e},decode(t,e){let{Err:r}=c,n=0;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(e.length<2||e[n++]!==t)throw new r("tlv.decode: wrong tlv");let i=e[n++],o=0;if(128&i){let t=127&i;if(!t)throw new r("tlv.decode(long): indefinite length not supported");if(t>4)throw new r("tlv.decode(long): byte length is too big");let l=e.subarray(n,n+t);if(l.length!==t)throw new r("tlv.decode: length bytes not complete");if(0===l[0])throw new r("tlv.decode(long): zero leftmost byte");for(let t of l)o=o<<8|t;if(n+=t,o<128)throw new r("tlv.decode(long): not minimal encoding")}else o=i;let l=e.subarray(n,n+o);if(l.length!==o)throw new r("tlv.decode: wrong value length");return{v:l,l:e.subarray(n+o)}}},_int:{encode(t){let{Err:e}=c;if(t<h)throw new e("integer: negative integers are not allowed");let r=(0,o.zW)(t);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new e("unexpected DER parsing assertion: unpadded hex");return r},decode(t){let{Err:e}=c;if(128&t[0])throw new e("invalid signature integer: negative");if(0===t[0]&&!(128&t[1]))throw new e("invalid signature integer: unnecessary leading zero");return(0,o.Ph)(t)}},toSig(t){let{Err:e,_int:r,_tlv:n}=c,i=(0,o.qj)("signature",t),{v:l,l:s}=n.decode(48,i);if(s.length)throw new e("invalid signature: left bytes after parsing");let{v:u,l:a}=n.decode(2,l),{v:f,l:d}=n.decode(2,a);if(d.length)throw new e("invalid signature: left bytes after parsing");return{r:r.decode(u),s:r.decode(f)}},hexFromSig(t){let{_tlv:e,_int:r}=c,n=e.encode(2,r.encode(t.r)),i=e.encode(2,r.encode(t.s));return e.encode(48,n+i)}},h=BigInt(0),m=BigInt(1),y=BigInt(2),p=BigInt(3),g=BigInt(4);function w(t,e){let r,{BYTES:n}=t;if("bigint"==typeof e)r=e;else{let i=(0,o.qj)("private key",e);try{r=t.fromBytes(i)}catch(t){throw Error(`invalid private key: expected ui8a of size ${n}, got ${typeof e}`)}}if(!t.isValidNot0(r))throw Error("invalid private key: out of range [1..N-1]");return r}function E(t){return Uint8Array.of(t?2:3)}function b(t,e){return{secretKey:e.BYTES,publicKey:1+t.BYTES,publicKeyUncompressed:1+2*t.BYTES,publicKeyHasPrefix:!0,signature:2*e.BYTES}}function v(t,e){let r=e=>(function(t){let{CURVE:e,curveOpts:r,hash:d,ecdsaOpts:v}=function(t){let{CURVE:e,curveOpts:r}=function(t){let e={a:t.a,b:t.b,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp,n=t.allowedPrivateKeyLengths?Array.from(new Set(t.allowedPrivateKeyLengths.map(t=>Math.ceil(t/2)))):void 0,i={Fp:r,Fn:(0,s.D0)(e.n,{BITS:t.nBitLength,allowedLengths:n,modFromBytes:t.wrapPrivateKey}),allowInfinityPoint:t.allowInfinityPoint,endo:t.endo,isTorsionFree:t.isTorsionFree,clearCofactor:t.clearCofactor,fromBytes:t.fromBytes,toBytes:t.toBytes};return{CURVE:e,curveOpts:i}}(t),n={hmac:t.hmac,randomBytes:t.randomBytes,lowS:t.lowS,bits2int:t.bits2int,bits2int_modN:t.bits2int_modN};return{CURVE:e,curveOpts:r,hash:t.hash,ecdsaOpts:n}}(t),B=function(t,e,r={}){(0,i.sd)(e),(0,o.DS)(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});let l=r.randomBytes||i.po,u=r.hmac||((t,...r)=>(0,n.w)(e,t,(0,i.Id)(...r))),{Fp:d,Fn:p}=t,{ORDER:g,BITS:v}=p,{keygen:B,getPublicKey:O,getSharedSecret:R,utils:q,lengths:x}=function(t,e={}){let{Fn:r}=t,n=e.randomBytes||i.po,l=Object.assign(b(t.Fp,r),{seed:(0,s.Tp)(r.ORDER)});function u(t){try{return!!w(r,t)}catch(t){return!1}}function a(t=n(l.seed)){return(0,s.qy)((0,o.eV)(t,l.seed,"seed"),r.ORDER)}function f(e,n=!0){return t.BASE.multiply(w(r,e)).toBytes(n)}function d(e){if("bigint"==typeof e)return!1;if(e instanceof t)return!0;let{secretKey:n,publicKey:i,publicKeyUncompressed:s}=l;if(r.allowedLengths||n===i)return;let u=(0,o.qj)("key",e).length;return u===i||u===s}return Object.freeze({getPublicKey:f,getSharedSecret:function(e,n,i=!0){if(!0===d(e))throw Error("first arg must be private key");if(!1===d(n))throw Error("second arg must be public key");let o=w(r,e);return t.fromHex(n).multiply(o).toBytes(i)},keygen:function(t){let e=a(t);return{secretKey:e,publicKey:f(e)}},Point:t,utils:{isValidSecretKey:u,isValidPublicKey:function(e,r){let{publicKey:n,publicKeyUncompressed:i}=l;try{let o=e.length;if(!0===r&&o!==n||!1===r&&o!==i)return!1;return!!t.fromBytes(e)}catch(t){return!1}},randomSecretKey:a,isValidPrivateKey:u,randomPrivateKey:a,normPrivateKeyToScalar:t=>w(r,t),precompute:(e=8,r=t.BASE)=>r.precompute(e,!1)},lengths:l})}(t,r),S={prehash:!1,lowS:"boolean"==typeof r.lowS&&r.lowS,format:void 0,extraEntropy:!1},A="compact";function N(t,e){if(!p.isValidNot0(e))throw Error(`invalid signature ${t}: out of range 1..Point.Fn.ORDER`);return e}class I{constructor(t,e,r){this.r=N("r",t),this.s=N("s",e),null!=r&&(this.recovery=r),Object.freeze(this)}static fromBytes(t,e=A){let r;if(!function(t,e){a(e);let r=x.signature;(0,o.eV)(t,"compact"===e?r:"recovered"===e?r+1:void 0,`${e} signature`)}(t,e),"der"===e){let{r:e,s:r}=c.toSig((0,o.eV)(t));return new I(e,r)}"recovered"===e&&(r=t[0],e="compact",t=t.subarray(1));let n=p.BYTES,i=t.subarray(0,n),l=t.subarray(n,2*n);return new I(p.fromBytes(i),p.fromBytes(l),r)}static fromHex(t,e){return this.fromBytes((0,i.aT)(t),e)}addRecoveryBit(t){return new I(this.r,this.s,t)}recoverPublicKey(e){let r=d.ORDER,{r:n,s:l,recovery:s}=this;if(null==s||![0,1,2,3].includes(s))throw Error("recovery id invalid");if(g*y<r&&s>1)throw Error("recovery id is ambiguous for h>1 curve");let u=2===s||3===s?n+g:n;if(!d.isValid(u))throw Error("recovery id 2 or 3 invalid");let a=d.toBytes(u),f=t.fromBytes((0,i.Id)(E((1&s)==0),a)),c=p.inv(u),h=F((0,o.qj)("msgHash",e)),m=p.create(-h*c),w=p.create(l*c),b=t.BASE.multiplyUnsafe(m).add(f.multiplyUnsafe(w));if(b.is0())throw Error("point at infinify");return b.assertValidity(),b}hasHighS(){return this.s>g>>m}toBytes(t=A){if(a(t),"der"===t)return(0,i.aT)(c.hexFromSig(this));let e=p.toBytes(this.r),r=p.toBytes(this.s);if("recovered"===t){if(null==this.recovery)throw Error("recovery bit must be present");return(0,i.Id)(Uint8Array.of(this.recovery),e,r)}return(0,i.Id)(e,r)}toHex(t){return(0,i.My)(this.toBytes(t))}assertValidity(){}static fromCompact(t){return I.fromBytes((0,o.qj)("sig",t),"compact")}static fromDER(t){return I.fromBytes((0,o.qj)("sig",t),"der")}normalizeS(){return this.hasHighS()?new I(this.r,p.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,i.My)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,i.My)(this.toBytes("compact"))}}let V=r.bits2int||function(t){if(t.length>8192)throw Error("input is too large");let e=(0,o.Ph)(t),r=8*t.length-v;return r>0?e>>BigInt(r):e},F=r.bits2int_modN||function(t){return p.create(V(t))},j=(0,o.OG)(v);function Z(t){return(0,o.aK)("num < 2^"+v,t,h,j),p.toBytes(t)}function U(t,r){return(0,o.eV)(t,void 0,"message"),r?(0,o.eV)(e(t),void 0,"prehashed message"):t}return Object.freeze({keygen:B,getPublicKey:O,getSharedSecret:R,utils:q,lengths:x,Point:t,sign:function(r,n,s={}){let{seed:a,k2sig:d}=function(e,r,n){if(["recovered","canonical"].some(t=>t in n))throw Error("sign() legacy options not supported");let{lowS:s,prehash:u,extraEntropy:a}=f(n,S),d=F(e=U(e,u)),c=w(p,r),y=[Z(c),Z(d)];if(null!=a&&!1!==a){let t=!0===a?l(x.secretKey):a;y.push((0,o.qj)("extraEntropy",t))}return{seed:(0,i.Id)(...y),k2sig:function(e){let r=V(e);if(!p.isValidNot0(r))return;let n=p.inv(r),i=t.BASE.multiply(r).toAffine(),o=p.create(i.x);if(o===h)return;let l=p.create(n*p.create(d+o*c));if(l===h)return;let u=2*(i.x!==o)|Number(i.y&m),a=l;return s&&l>g>>m&&(a=p.neg(l),u^=1),new I(o,a,u)}}}(r=(0,o.qj)("message",r),n,s);return(0,o.fg)(e.outputLen,p.BYTES,u)(a,d)},verify:function(e,r,n,l={}){let{lowS:s,prehash:u,format:a}=f(l,S);if(n=(0,o.qj)("publicKey",n),r=U((0,o.qj)("message",r),u),"strict"in l)throw Error("options.strict was renamed to lowS");let d=void 0===a?function(t){let e,r="string"==typeof t||(0,i.aY)(t),n=!r&&null!==t&&"object"==typeof t&&"bigint"==typeof t.r&&"bigint"==typeof t.s;if(!r&&!n)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(n)e=new I(t.r,t.s);else if(r){try{e=I.fromBytes((0,o.qj)("sig",t),"der")}catch(t){if(!(t instanceof c.Err))throw t}if(!e)try{e=I.fromBytes((0,o.qj)("sig",t),"compact")}catch(t){return!1}}return!!e&&e}(e):I.fromBytes((0,o.qj)("sig",e),a);if(!1===d)return!1;try{let e=t.fromBytes(n);if(s&&d.hasHighS())return!1;let{r:i,s:o}=d,l=F(r),u=p.inv(o),a=p.create(l*u),f=p.create(i*u),c=t.BASE.multiplyUnsafe(a).add(e.multiplyUnsafe(f));if(c.is0())return!1;return p.create(c.x)===i}catch(t){return!1}},recoverPublicKey:function(t,e,r={}){let{prehash:n}=f(r,S);return e=U(e,n),I.fromBytes(t,"recovered").recoverPublicKey(e).toBytes()},Signature:I,hash:e})}(function(t,e={}){let r=(0,l.UT)("weierstrass",t,e),{Fp:n,Fn:s}=r,a=r.CURVE,{h:f,n:d}=a;(0,o.DS)(e,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});let{endo:c}=e;if(c&&(!n.is0(a.a)||"bigint"!=typeof c.beta||!Array.isArray(c.basises)))throw Error('invalid endo: expected "beta": bigint and "basises": array');let y=b(n,s);function v(){if(!n.isOdd)throw Error("compression is not supported: Field does not have .isOdd()")}let B=e.toBytes||function(t,e,r){let{x:l,y:s}=e.toAffine(),u=n.toBytes(l);if((0,o.d6)(r,"isCompressed"),!r)return(0,i.Id)(Uint8Array.of(4),u,n.toBytes(s));{v();let t=!n.isOdd(s);return(0,i.Id)(E(t),u)}},O=e.fromBytes||function(t){(0,o.eV)(t,void 0,"Point");let{publicKey:e,publicKeyUncompressed:r}=y,i=t.length,l=t[0],s=t.subarray(1);if(i===e&&(2===l||3===l)){let t,e=n.fromBytes(s);if(!n.isValid(e))throw Error("bad point: is not on curve, wrong x");let r=R(e);try{t=n.sqrt(r)}catch(t){throw Error("bad point: is not on curve, sqrt error"+(t instanceof Error?": "+t.message:""))}return v(),(1&l)==1!==n.isOdd(t)&&(t=n.neg(t)),{x:e,y:t}}if(i===r&&4===l){let t=n.BYTES,e=n.fromBytes(s.subarray(0,t)),r=n.fromBytes(s.subarray(t,2*t));if(!q(e,r))throw Error("bad point: is not on curve");return{x:e,y:r}}throw Error(`bad point: got length ${i}, expected compressed=${e} or uncompressed=${r}`)};function R(t){let e=n.sqr(t),r=n.mul(e,t);return n.add(n.add(r,n.mul(t,a.a)),a.b)}function q(t,e){let r=n.sqr(e),i=R(t);return n.eql(r,i)}if(!q(a.Gx,a.Gy))throw Error("bad curve params: generator point");let x=n.mul(n.pow(a.a,p),g),S=n.mul(n.sqr(a.b),BigInt(27));if(n.is0(n.add(x,S)))throw Error("bad curve params: a or b");function A(t,e,r=!1){if(!n.isValid(e)||r&&n.is0(e))throw Error(`bad point coordinate ${t}`);return e}function N(t){if(!(t instanceof Z))throw Error("ProjectivePoint expected")}function I(t){if(!c||!c.basises)throw Error("no endo");return function(t,e,r){let[[n,i],[l,s]]=e,a=u(s*t,r),f=u(-i*t,r),d=t-a*n-f*l,c=-a*i-f*s,y=d<h,p=c<h;y&&(d=-d),p&&(c=-c);let g=(0,o.OG)(Math.ceil((0,o.dJ)(r)/2))+m;if(d<h||d>=g||c<h||c>=g)throw Error("splitScalar (endomorphism): failed, k="+t);return{k1neg:y,k1:d,k2neg:p,k2:c}}(t,c.basises,s.ORDER)}let V=(0,o.x)((t,e)=>{let{X:r,Y:i,Z:o}=t;if(n.eql(o,n.ONE))return{x:r,y:i};let l=t.is0();null==e&&(e=l?n.ONE:n.inv(o));let s=n.mul(r,e),u=n.mul(i,e),a=n.mul(o,e);if(l)return{x:n.ZERO,y:n.ZERO};if(!n.eql(a,n.ONE))throw Error("invZ was invalid");return{x:s,y:u}}),F=(0,o.x)(t=>{if(t.is0()){if(e.allowInfinityPoint&&!n.is0(t.Y))return;throw Error("bad point: ZERO")}let{x:r,y:i}=t.toAffine();if(!n.isValid(r)||!n.isValid(i))throw Error("bad point: x or y not field elements");if(!q(r,i))throw Error("bad point: equation left != right");if(!t.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});function j(t,e,r,i,o){return r=new Z(n.mul(r.X,t),r.Y,r.Z),e=(0,l.u0)(i,e),r=(0,l.u0)(o,r),e.add(r)}class Z{constructor(t,e,r){this.X=A("x",t),this.Y=A("y",e,!0),this.Z=A("z",r),Object.freeze(this)}static CURVE(){return a}static fromAffine(t){let{x:e,y:r}=t||{};if(!t||!n.isValid(e)||!n.isValid(r))throw Error("invalid affine point");if(t instanceof Z)throw Error("projective point not allowed");return n.is0(e)&&n.is0(r)?Z.ZERO:new Z(e,r,n.ONE)}static fromBytes(t){let e=Z.fromAffine(O((0,o.eV)(t,void 0,"point")));return e.assertValidity(),e}static fromHex(t){return Z.fromBytes((0,o.qj)("pointHex",t))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(t=8,e=!0){return P.createCache(this,t),e||this.multiply(p),this}assertValidity(){F(this)}hasEvenY(){let{y:t}=this.toAffine();if(!n.isOdd)throw Error("Field doesn't support isOdd");return!n.isOdd(t)}equals(t){N(t);let{X:e,Y:r,Z:i}=this,{X:o,Y:l,Z:s}=t,u=n.eql(n.mul(e,s),n.mul(o,i)),a=n.eql(n.mul(r,s),n.mul(l,i));return u&&a}negate(){return new Z(this.X,n.neg(this.Y),this.Z)}double(){let{a:t,b:e}=a,r=n.mul(e,p),{X:i,Y:o,Z:l}=this,s=n.ZERO,u=n.ZERO,f=n.ZERO,d=n.mul(i,i),c=n.mul(o,o),h=n.mul(l,l),m=n.mul(i,o);return m=n.add(m,m),f=n.mul(i,l),f=n.add(f,f),s=n.mul(t,f),u=n.mul(r,h),u=n.add(s,u),s=n.sub(c,u),u=n.add(c,u),u=n.mul(s,u),s=n.mul(m,s),f=n.mul(r,f),h=n.mul(t,h),m=n.sub(d,h),m=n.mul(t,m),m=n.add(m,f),f=n.add(d,d),d=n.add(f,d),d=n.add(d,h),d=n.mul(d,m),u=n.add(u,d),h=n.mul(o,l),h=n.add(h,h),d=n.mul(h,m),s=n.sub(s,d),f=n.mul(h,c),f=n.add(f,f),new Z(s,u,f=n.add(f,f))}add(t){N(t);let{X:e,Y:r,Z:i}=this,{X:o,Y:l,Z:s}=t,u=n.ZERO,f=n.ZERO,d=n.ZERO,c=a.a,h=n.mul(a.b,p),m=n.mul(e,o),y=n.mul(r,l),g=n.mul(i,s),w=n.add(e,r),E=n.add(o,l);w=n.mul(w,E),E=n.add(m,y),w=n.sub(w,E),E=n.add(e,i);let b=n.add(o,s);return E=n.mul(E,b),b=n.add(m,g),E=n.sub(E,b),b=n.add(r,i),u=n.add(l,s),b=n.mul(b,u),u=n.add(y,g),b=n.sub(b,u),d=n.mul(c,E),u=n.mul(h,g),d=n.add(u,d),u=n.sub(y,d),d=n.add(y,d),f=n.mul(u,d),y=n.add(m,m),y=n.add(y,m),g=n.mul(c,g),E=n.mul(h,E),y=n.add(y,g),g=n.sub(m,g),g=n.mul(c,g),E=n.add(E,g),m=n.mul(y,E),f=n.add(f,m),m=n.mul(b,E),u=n.mul(w,u),u=n.sub(u,m),m=n.mul(w,y),d=n.mul(b,d),new Z(u,f,d=n.add(d,m))}subtract(t){return this.add(t.negate())}is0(){return this.equals(Z.ZERO)}multiply(t){let r,n,{endo:i}=e;if(!s.isValidNot0(t))throw Error("invalid scalar: out of range");let o=t=>P.cached(this,t,t=>(0,l.Ak)(Z,t));if(i){let{k1neg:e,k1:l,k2neg:s,k2:u}=I(t),{p:a,f:f}=o(l),{p:d,f:c}=o(u);n=f.add(c),r=j(i.beta,a,d,e,s)}else{let{p:e,f:i}=o(t);r=e,n=i}return(0,l.Ak)(Z,[r,n])[0]}multiplyUnsafe(t){let{endo:r}=e;if(!s.isValid(t))throw Error("invalid scalar: out of range");if(t===h||this.is0())return Z.ZERO;if(t===m)return this;if(P.hasCache(this))return this.multiply(t);if(!r)return P.unsafe(this,t);{let{k1neg:e,k1:n,k2neg:i,k2:o}=I(t),{p1:s,p2:u}=(0,l.fH)(Z,this,n,o);return j(r.beta,s,u,e,i)}}multiplyAndAddUnsafe(t,e,r){let n=this.multiplyUnsafe(e).add(t.multiplyUnsafe(r));return n.is0()?void 0:n}toAffine(t){return V(this,t)}isTorsionFree(){let{isTorsionFree:t}=e;return f===m||(t?t(Z,this):P.unsafe(this,d).is0())}clearCofactor(){let{clearCofactor:t}=e;return f===m?this:t?t(Z,this):this.multiplyUnsafe(f)}isSmallOrder(){return this.multiplyUnsafe(f).is0()}toBytes(t=!0){return(0,o.d6)(t,"isCompressed"),this.assertValidity(),B(Z,this,t)}toHex(t=!0){return(0,i.My)(this.toBytes(t))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(t=!0){return this.toBytes(t)}_setWindowSize(t){this.precompute(t)}static normalizeZ(t){return(0,l.Ak)(Z,t)}static msm(t,e){return(0,l.Xf)(Z,s,t,e)}static fromPrivateKey(t){return Z.BASE.multiply(w(s,t))}}Z.BASE=new Z(a.Gx,a.Gy,n.ONE),Z.ZERO=new Z(n.ZERO,n.ONE,n.ZERO),Z.Fp=n,Z.Fn=s;let U=s.BITS,P=new l.hT(Z,e.endo?Math.ceil(U/2):U);return Z.BASE.precompute(8),Z}(e,r),d,v),O=B.Point;return Object.assign({},B,{ProjectivePoint:O,CURVE:Object.assign({},t,(0,s.LH)(O.Fn.ORDER,O.Fn.BITS))})})({...t,hash:e});return{...r(e),create:r}}},98265:(t,e,r)=>{r.d(e,{DS:()=>B,OG:()=>b,Ph:()=>f,SJ:()=>O,aK:()=>w,d6:()=>l,dJ:()=>E,eV:()=>s,ex:()=>y,fg:()=>v,lX:()=>d,lq:()=>c,nC:()=>p,qj:()=>m,x:()=>R,z:()=>h,zW:()=>u});var n=r(12762);let i=BigInt(0),o=BigInt(1);function l(t,e=""){if("boolean"!=typeof t)throw Error((e&&`"${e}"`)+"expected boolean, got type="+typeof t);return t}function s(t,e,r=""){let i=(0,n.aY)(t),o=t?.length,l=void 0!==e;if(!i||l&&o!==e)throw Error((r&&`"${r}" `)+"expected Uint8Array"+(l?` of length ${e}`:"")+", got "+(i?`length=${o}`:`type=${typeof t}`));return t}function u(t){let e=t.toString(16);return 1&e.length?"0"+e:e}function a(t){if("string"!=typeof t)throw Error("hex string expected, got "+typeof t);return""===t?i:BigInt("0x"+t)}function f(t){return a((0,n.My)(t))}function d(t){return(0,n.DO)(t),a((0,n.My)(Uint8Array.from(t).reverse()))}function c(t,e){return(0,n.aT)(t.toString(16).padStart(2*e,"0"))}function h(t,e){return c(t,e).reverse()}function m(t,e,r){let i;if("string"==typeof e)try{i=(0,n.aT)(e)}catch(e){throw Error(t+" must be hex string or Uint8Array, cause: "+e)}else if((0,n.aY)(e))i=Uint8Array.from(e);else throw Error(t+" must be hex string or Uint8Array");let o=i.length;if("number"==typeof r&&o!==r)throw Error(t+" of length "+r+" expected, got "+o);return i}function y(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return 0===r}function p(t){return Uint8Array.from(t)}let g=t=>"bigint"==typeof t&&i<=t;function w(t,e,r,n){if(!(g(e)&&g(r)&&g(n))||!(r<=e)||!(e<n))throw Error("expected valid "+t+": "+r+" <= n < "+n+", got "+e)}function E(t){let e;for(e=0;t>i;t>>=o,e+=1);return e}let b=t=>(o<<BigInt(t))-o;function v(t,e,r){if("number"!=typeof t||t<2)throw Error("hashLen must be a number");if("number"!=typeof e||e<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let i=t=>new Uint8Array(t),o=t=>Uint8Array.of(t),l=i(t),s=i(t),u=0,a=()=>{l.fill(1),s.fill(0),u=0},f=(...t)=>r(s,l,...t),d=(t=i(0))=>{s=f(o(0),t),l=f(),0!==t.length&&(s=f(o(1),t),l=f())},c=()=>
1{if(u++>=1e3)throw Error("drbg: tried 1000 values");let t=0,r=[];for(;t<e;){let e=(l=f()).slice();r.push(e),t+=l.length}return(0,n.Id)(...r)};return(t,e)=>{let r;for(a(),d(t);!(r=e(c()));)d();return a(),r}}function B(t,e,r={}){if(!t||"object"!=typeof t)throw Error("expected valid options object");function n(e,r,n){let i=t[e];if(n&&void 0===i)return;let o=typeof i;if(o!==r||null===i)throw Error(`param "${e}" is invalid: expected ${r}, got ${o}`)}Object.entries(e).forEach(([t,e])=>n(t,e,!1)),Object.entries(r).forEach(([t,e])=>n(t,e,!0))}let O=()=>{throw Error("not implemented")};function R(t){let e=new WeakMap;return(r,...n)=>{let i=e.get(r);if(void 0!==i)return i;let o=t(r,...n);return e.set(r,o),o}}}}]);

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.