(function(){"use strict";varEnc=window.Encoding={};Enc.bufToBase64=function(u8){varbin="";u8.forEach(function(i){bin+=String.fromCharCode(i)});returnbtoa(bin)};Enc.strToBase64=function(str){returnbtoa(Enc.strToBin(str))};function_base64ToBin(b64){returnatob(Enc.urlBase64ToBase64(b64))}Enc._base64ToBin=_base64ToBin;Enc.base64ToBuf=function(b64){returnEnc.binToBuf(_base64ToBin(b64))};Enc.base64ToStr=function(b64){returnEnc.binToStr(_base64ToBin(b64))};Enc.urlBase64ToBase64=function(u64){varr=u64%4;if(2===r){u64+="=="}elseif(3===r){u64+="="}returnu64.replace(/-/g,"+").replace(/_/g,"/")};Enc.base64ToUrlBase64=function(b64){returnb64.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")};Enc.bufToUrlBase64=function(buf){returnEnc.base64ToUrlBase64(Enc.bufToBase64(buf))};Enc.strToUrlBase64=function(str){returnEnc.bufToUrlBase64(Enc.strToBuf(str))};Enc.bufToHex=function(u8){varhex=[];vari,h;varlen=u8.byteLength||u8.length;for(i=0;i<len;i+=1){h=u8[i].toString(16);if(2!==h.length){h="0"+h}hex.push(h)}returnhex.join("").toLowerCase()};Enc.numToHex=function(d){d=d.toString(16);if(d.length%2){return"0"+d}returnd};Enc.strToHex=function(str){returnEnc._binToHex(Enc.strToBin(str))};Enc._binToHex=function(bin){returnbin.split("").map(function(ch){varh=ch.charCodeAt(0).toString(16);if(2!==h.length){h="0"+h}returnh}).join("")};Enc.hexToBuf=function(hex){vararr=[];hex.match(/.{2}/g).forEach(function(h){arr.push(parseInt(h,16))});return"undefined"!==typeofUint8Array?newUint8Array(arr):arr};Enc.hexToStr=function(hex){returnEnc.binToStr(_hexToBin(hex))};function_hexToBin(hex){returnhex.replace(/([0-9A-F]{2})/gi,function(_,p1){returnString.fromCharCode("0x"+p1)})}Enc._hexToBin=_hexToBin;Enc.bufToBin=function(buf){varbin="";buf.forEach(function(ch){bin+=String.fromCharCode(ch)});returnbin};Enc.strToBin=function(str){varescstr=encodeURIComponent(str);varbinstr=escstr.replace(/%([0-9A-F]{2})/g,function(_,p1){returnString.fromCharCode("0x"+p1)});returnbinstr};Enc.binToBuf=function(bin){vararr=bin.split("").map(function(ch){returnch.charCodeAt(0)});return"undefined"!==typeofUint8Array?newUint8Array(arr):arr};Enc.strToBuf=function(str){returnEnc.binToBuf(Enc.strToBin(str))};Enc.binToStr=function(binstr){varescstr=binstr.replace(/(.)/g,function(m,p){varcode=p.charCodeAt(0).toString(16).toUpperCase();if(code.length<2){code="0"+code}return"%"+code});returndecodeURIComponent(escstr)};Enc.bufToStr=function(buf){returnEnc.binToStr(Enc.bufToBin(buf))};Enc.base64ToHex=function(b64){returnEnc.bufToHex(Enc.base64ToBuf(b64))};Enc.hexToBase64=function(hex){returnbtoa(Enc._hexToBin(hex))}})();(function(){"use strict";varASN1=window.ASN1={};varEnc=window.Encoding;ASN1.ELOOPN=102;ASN1.ELOOP="uASN1.js Error: iterated over "+ASN1.ELOOPN+"+ elements (probably a malformed file)";ASN1.EDEEPN=60;ASN1.EDEEP="uASN1.js Error: element nested "+ASN1.EDEEPN+"+ layers deep (probably a malformed file)";ASN1.CTYPES=[48,49,160,161];ASN1.VTYPES=[1,2,5,6,12,130];ASN1.parseVerbose=functionparseAsn1Helper(buf,opts){if(!opts){opts={}}functionparseAsn1(buf,depth,eager){if(depth.length>=ASN1.EDEEPN){thrownewError(ASN1.EDEEP)}varindex=2;varasn1={type:buf[0],lengthSize:0,length:buf[1]};varchild;variters=0;varadjust=0;varadjustedLen;if(128&asn1.length){asn1.lengthSize=127&asn1.length;asn1.length=parseInt(Enc.bufToHex(buf.slice(index,index+asn1.lengthSize)),16);index+=asn1.lengthSize}if(0===buf[index]&&(2===asn1.type||3===asn1.type)){if(asn1.length>1){index+=1;adjust=-1}}adjustedLen=asn1.length+adjust;functionparseChildren(eager){asn1.children=[];while(iters<ASN1.ELOOPN&&index<2+asn1.length+asn1.lengthSize){iters+=1;depth.length+=1;child=parseAsn1(buf.slice(index,index+adjustedLen),depth,eager);depth.length-=1;index+=2+child.lengthSize+child.length;if(index>2+asn1.lengthSize+asn1.length){thrownewError("Parse error: child value length ("+child.length+") is greater than remaining parent length ("+(asn1.length-index)+" = "+asn1.length+" - "+index+")")}asn1.children.push(child)}if(index!==2+asn1.lengthSize+asn1.length){thrownewEr