11 lines
118 KiB
JavaScript
11 lines
118 KiB
JavaScript
|
(()=>{var e={112:(e,r,t)=>{"use strict";var n=t(300).Buffer;var a=t(300).SlowBuffer;e.exports=bufferEq;function bufferEq(e,r){if(!n.isBuffer(e)||!n.isBuffer(r)){return false}if(e.length!==r.length){return false}var t=0;for(var a=0;a<e.length;a++){t|=e[a]^r[a]}return t===0}bufferEq.install=function(){n.prototype.equal=a.prototype.equal=function equal(e){return bufferEq(this,e)}};var i=n.prototype.equal;var s=a.prototype.equal;bufferEq.restore=function(){n.prototype.equal=i;a.prototype.equal=s}},160:(e,r,t)=>{"use strict";var n=t(911).Buffer;var a=t(8);var i=128,s=0,o=32,u=16,l=2,c=u|o|s<<6,f=l|s<<6;function base64Url(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function signatureAsBuffer(e){if(n.isBuffer(e)){return e}else if("string"===typeof e){return n.from(e,"base64")}throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function derToJose(e,r){e=signatureAsBuffer(e);var t=a(r);var s=t+1;var o=e.length;var u=0;if(e[u++]!==c){throw new Error('Could not find expected "seq"')}var l=e[u++];if(l===(i|1)){l=e[u++]}if(o-u<l){throw new Error('"seq" specified length of "'+l+'", only "'+(o-u)+'" remaining')}if(e[u++]!==f){throw new Error('Could not find expected "int" for "r"')}var h=e[u++];if(o-u-2<h){throw new Error('"r" specified length of "'+h+'", only "'+(o-u-2)+'" available')}if(s<h){throw new Error('"r" specified length of "'+h+'", max of "'+s+'" is acceptable')}var p=u;u+=h;if(e[u++]!==f){throw new Error('Could not find expected "int" for "s"')}var d=e[u++];if(o-u!==d){throw new Error('"s" specified length of "'+d+'", expected "'+(o-u)+'"')}if(s<d){throw new Error('"s" specified length of "'+d+'", max of "'+s+'" is acceptable')}var y=u;u+=d;if(u!==o){throw new Error('Expected to consume entire buffer, but "'+(o-u)+'" bytes remain')}var g=t-h,v=t-d;var b=n.allocUnsafe(g+h+v+d);for(u=0;u<g;++u){b[u]=0}e.copy(b,u,p+Math.max(-g,0),p+h);u=t;for(var m=u;u<m+v;++u){b[u]=0}e.copy(b,u,y+Math.max(-v,0),y+d);b=b.toString("base64");b=base64Url(b);return b}function countPadding(e,r,t){var n=0;while(r+n<t&&e[r+n]===0){++n}var a=e[r+n]>=i;if(a){--n}return n}function joseToDer(e,r){e=signatureAsBuffer(e);var t=a(r);var s=e.length;if(s!==t*2){throw new TypeError('"'+r+'" signatures must be "'+t*2+'" bytes, saw "'+s+'"')}var o=countPadding(e,0,t);var u=countPadding(e,t,e.length);var l=t-o;var h=t-u;var p=1+1+l+1+1+h;var d=p<i;var y=n.allocUnsafe((d?2:3)+p);var g=0;y[g++]=c;if(d){y[g++]=p}else{y[g++]=i|1;y[g++]=p&255}y[g++]=f;y[g++]=l;if(o<0){y[g++]=0;g+=e.copy(y,g,0,t)}else{g+=e.copy(y,g,o,t)}y[g++]=f;y[g++]=h;if(u<0){y[g++]=0;e.copy(y,g,t)}else{e.copy(y,g,t+u)}return y}e.exports={derToJose:derToJose,joseToDer:joseToDer}},8:e=>{"use strict";function getParamSize(e){var r=(e/8|0)+(e%8===0?0:1);return r}var r={ES256:getParamSize(256),ES384:getParamSize(384),ES512:getParamSize(521)};function getParamBytesForAlg(e){var t=r[e];if(t){return t}throw new Error('Unknown algorithm "'+e+'"')}e.exports=getParamBytesForAlg},443:(e,r,t)=>{var n=t(111);e.exports=function(e,r){r=r||{};var t=n.decode(e,r);if(!t){return null}var a=t.payload;if(typeof a==="string"){try{var i=JSON.parse(a);if(i!==null&&typeof i==="object"){a=i}}catch(e){}}if(r.complete===true){return{header:t.header,payload:a,signature:t.signature}}return a}},773:(e,r,t)=>{e.exports={verify:t(624),sign:t(743),JsonWebTokenError:t(131),NotBeforeError:t(422),TokenExpiredError:t(794)};Object.defineProperty(e.exports,"decode",{enumerable:false,value:t(443)})},131:e=>{var JsonWebTokenError=function(e,r){Error.call(this,e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="JsonWebTokenError";this.message=e;if(r)this.inner=r};JsonWebTokenError.prototype=Object.create(Error.prototype);JsonWebTokenError.prototype.constructor=JsonWebTokenError;e.exports=JsonWebTokenError},422:(e,r,t)=>{var n=t(131);var NotBeforeError=function(e,r){n.call(this,e);this.name="NotBeforeError";this.date=r};NotBeforeError.prototype=Object.create(n.prototype);NotBeforeError.prototype.constructor=NotBeforeError;e.exports=NotBeforeError},794:(e,r,t)=
|
|||
|
/**
|
|||
|
* @license
|
|||
|
* Lodash <https://lodash.com/>
|
|||
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|||
|
* Released under MIT license <https://lodash.com/license>
|
|||
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|||
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|||
|
*/(function(){var t;var n="4.17.21";var a=200;var i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`";var u="__lodash_hash_undefined__";var l=500;var c="__lodash_placeholder__";var f=1,h=2,p=4;var d=1,y=2;var g=1,v=2,b=4,m=8,_=16,w=32,S=64,I=128,A=256,x=512;var k=30,j="...";var O=800,E=16;var R=1,L=2,C=3;var T=1/0,W=9007199254740991,P=17976931348623157e292,z=0/0;var B=4294967295,F=B-1,M=B>>>1;var D=[["ary",I],["bind",g],["bindKey",v],["curry",m],["curryRight",_],["flip",x],["partial",w],["partialRight",S],["rearg",A]];var K="[object Arguments]",q="[object Array]",V="[object AsyncFunction]",U="[object Boolean]",N="[object Date]",H="[object DOMException]",G="[object Error]",$="[object Function]",J="[object GeneratorFunction]",Z="[object Map]",X="[object Number]",Y="[object Null]",Q="[object Object]",ee="[object Promise]",re="[object Proxy]",te="[object RegExp]",ne="[object Set]",ae="[object String]",ie="[object Symbol]",se="[object Undefined]",oe="[object WeakMap]",ue="[object WeakSet]";var le="[object ArrayBuffer]",ce="[object DataView]",fe="[object Float32Array]",he="[object Float64Array]",pe="[object Int8Array]",de="[object Int16Array]",ye="[object Int32Array]",ge="[object Uint8Array]",ve="[object Uint8ClampedArray]",be="[object Uint16Array]",me="[object Uint32Array]";var _e=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var Ie=/&(?:amp|lt|gt|quot|#39);/g,Ae=/[&<>"']/g,xe=RegExp(Ie.source),ke=RegExp(Ae.source);var je=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g;var Re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Le=/^\w*$/,Ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var Te=/[\\^$.*+?()[\]{}|]/g,We=RegExp(Te.source);var Pe=/^\s+/;var ze=/\s/;var Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,Me=/,? & /;var De=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Ke=/[()=,{}\[\]\/\s]/;var qe=/\\(\\)?/g;var Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var Ue=/\w*$/;var Ne=/^[-+]0x[0-9a-f]+$/i;var He=/^0b[01]+$/i;var Ge=/^\[object .+?Constructor\]$/;var $e=/^0o[0-7]+$/i;var Je=/^(?:0|[1-9]\d*)$/;var Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var Xe=/($^)/;var Ye=/['\n\r\u2028\u2029\\]/g;var Qe="\\ud800-\\udfff",er="\\u0300-\\u036f",rr="\\ufe20-\\ufe2f",tr="\\u20d0-\\u20ff",nr=er+rr+tr,ar="\\u2700-\\u27bf",ir="a-z\\xdf-\\xf6\\xf8-\\xff",sr="\\xac\\xb1\\xd7\\xf7",or="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ur="\\u2000-\\u206f",lr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cr="A-Z\\xc0-\\xd6\\xd8-\\xde",fr="\\ufe0e\\ufe0f",hr=sr+or+ur+lr;var pr="['’]",dr="["+Qe+"]",yr="["+hr+"]",gr="["+nr+"]",vr="\\d+",br="["+ar+"]",mr="["+ir+"]",_r="[^"+Qe+hr+vr+ar+ir+cr+"]",wr="\\ud83c[\\udffb-\\udfff]",Sr="(?:"+gr+"|"+wr+")",Ir="[^"+Qe+"]",Ar="(?:\\ud83c[\\udde6-\\uddff]){2}",xr="[\\ud800-\\udbff][\\udc00-\\udfff]",kr="["+cr+"]",jr="\\u200d";var Or="(?:"+mr+"|"+_r+")",Er="(?:"+kr+"|"+_r+")",Rr="(?:"+pr+"(?:d|ll|m|re|s|t|ve))?",Lr="(?:"+pr+"(?:D|LL|M|RE|S|T|VE))?",Cr=Sr+"?",Tr="["+fr+"]?",Wr="(?:"+jr+"(?:"+[Ir,Ar,xr].join("|")+")"+Tr+Cr+")*",Pr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zr="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Br=Tr+Cr+Wr,Fr="(?:"+[br,Ar,xr].join("|")+")"+Br,Mr="(?:"+[Ir+gr+"?",gr,Ar,xr,dr].join("|")+")";var Dr=RegExp(pr,"g");var Kr=RegExp(gr,"g");var qr=RegExp(wr+"(?="+wr+")|"+Mr+Br,"g");var Vr=RegExp([kr+"?"+mr+"+"+Rr+"(?="+[yr,kr,"$"].join("|")+")",Er+"+"+Lr+"(?="+[yr,kr+Or,"$"].join("|")+")",kr+"?"+Or+"+"+Rr,kr+"+"+Lr,zr,Pr,vr,Fr].join("|"),"g");var Ur=RegExp("["+jr+Qe+nr+fr+"]");var Nr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Hr=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol"
|
|||
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|||
|
var n=t(300);var a=n.Buffer;function copyProps(e,r){for(var t in e){r[t]=e[t]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=n}else{copyProps(n,r);r.Buffer=SafeBuffer}function SafeBuffer(e,r,t){return a(e,r,t)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(e,r,t){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return a(e,r,t)};SafeBuffer.alloc=function(e,r,t){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=a(e);if(r!==undefined){if(typeof t==="string"){n.fill(r,t)}else{n.fill(r)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return a(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},300:e=>{"use strict";e.exports=require("buffer")},113:e=>{"use strict";e.exports=require("crypto")},849:e=>{"use strict";e.exports=require("next/dist/compiled/semver")},781:e=>{"use strict";e.exports=require("stream")},837:e=>{"use strict";e.exports=require("util")}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var a=r[t]={id:t,loaded:false,exports:{}};var i=true;try{e[t].call(a.exports,a,a.exports,__nccwpck_require__);i=false}finally{if(i)delete r[t]}a.loaded=true;return a.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(773);module.exports=t})();
|