Newer
Older
smartwell_front_dz / smartwell / static / js / chunk-libs-aa01bf9c.43be44e3.js
wangxitong on 11 Sep 2023 21 KB first commit
"use strict";(self["webpackChunknewfront"]=self["webpackChunknewfront"]||[]).push([[5720],{78673:(t,e,n)=>{n.d(e,{z:()=>y});var i=n(42529),s=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,i;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,i=this.S[e],this.S[e]=this.S[n],this.S[n]=i;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();function r(){return new s}var h,o,a=256,u=null;if(null==u){u=[],o=0;var l=void 0;if(window.crypto&&window.crypto.getRandomValues){var c=new Uint32Array(256);for(window.crypto.getRandomValues(c),l=0;l<c.length;++l)u[o++]=255&c[l]}var f=0,d=function(t){if(f=f||0,f>=256||o>=a)window.removeEventListener?window.removeEventListener("mousemove",d,!1):window.detachEvent&&window.detachEvent("onmousemove",d);else try{var e=t.x+t.y;u[o++]=255&e,f+=1}catch(n){}};window.addEventListener?window.addEventListener("mousemove",d,!1):window.attachEvent&&window.attachEvent("onmousemove",d)}function g(){if(null==h){h=r();while(o<a){var t=Math.floor(65536*Math.random());u[o++]=255&t}for(h.init(u),o=0;o<u.length;++o)u[o]=0;o=0}return h.next()}var p=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=g()},t}(),v=n(25108);function S(t,e){if(e<t.length+22)return v.error("Message too long for RSA"),null;for(var n=e-t.length-6,s="",r=0;r<n;r+=2)s+="ff";var h="0001"+s+"00"+t;return(0,i.BF)(h,16)}function m(t,e){if(e<t.length+11)return v.error("Message too long for RSA"),null;var n=[],s=t.length-1;while(s>=0&&e>0){var r=t.charCodeAt(s--);r<128?n[--e]=r:r>127&&r<2048?(n[--e]=63&r|128,n[--e]=r>>6|192):(n[--e]=63&r|128,n[--e]=r>>6&63|128,n[--e]=r>>12|224)}n[--e]=0;var h=new p,o=[];while(e>2){o[0]=0;while(0==o[0])h.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new i.Jh(n)}var y=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);while(e.compareTo(n)<0)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=(0,i.BF)(t,16),this.e=parseInt(e,16)):v.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=m(t,e);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;for(var s=i.toString(16),r=s.length,h=0;h<2*e-r;h++)s="0"+s;return s},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=(0,i.BF)(t,16),this.e=parseInt(e,16),this.d=(0,i.BF)(n,16)):v.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,s,r,h,o,a){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=(0,i.BF)(t,16),this.e=parseInt(e,16),this.d=(0,i.BF)(n,16),this.p=(0,i.BF)(s,16),this.q=(0,i.BF)(r,16),this.dmp1=(0,i.BF)(h,16),this.dmq1=(0,i.BF)(o,16),this.coeff=(0,i.BF)(a,16)):v.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new p,s=t>>1;this.e=parseInt(e,16);for(var r=new i.Jh(e,16);;){for(;;)if(this.p=new i.Jh(t-s,1,n),0==this.p.subtract(i.Jh.ONE).gcd(r).compareTo(i.Jh.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new i.Jh(s,1,n),0==this.q.subtract(i.Jh.ONE).gcd(r).compareTo(i.Jh.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var h=this.p;this.p=this.q,this.q=h}var o=this.p.subtract(i.Jh.ONE),a=this.q.subtract(i.Jh.ONE),u=o.multiply(a);if(0==u.gcd(r).compareTo(i.Jh.ONE)){this.n=this.p.multiply(this.q),this.d=r.modInverse(u),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=(0,i.BF)(t,16),n=this.doPrivate(e);return null==n?null:b(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var s=new p,r=t>>1;this.e=parseInt(e,16);var h=new i.Jh(e,16),o=this,a=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(i.Jh.ONE),s=o.q.subtract(i.Jh.ONE),r=e.multiply(s);0==r.gcd(h).compareTo(i.Jh.ONE)?(o.n=o.p.multiply(o.q),o.d=h.modInverse(r),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(s),o.coeff=o.q.modInverse(o.p),setTimeout((function(){n()}),0)):setTimeout(a,0)},u=function(){o.q=(0,i.cR)(),o.q.fromNumberAsync(r,1,s,(function(){o.q.subtract(i.Jh.ONE).gcda(h,(function(t){0==t.compareTo(i.Jh.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},l=function(){o.p=(0,i.cR)(),o.p.fromNumberAsync(t-r,1,s,(function(){o.p.subtract(i.Jh.ONE).gcda(h,(function(t){0==t.compareTo(i.Jh.ONE)&&o.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)}))}))};setTimeout(l,0)};setTimeout(a,0)},t.prototype.sign=function(t,e,n){var i=x(n),s=i+e(t).toString(),r=S(s,this.n.bitLength()/4);if(null==r)return null;var h=this.doPrivate(r);if(null==h)return null;var o=h.toString(16);return 0==(1&o.length)?o:"0"+o},t.prototype.verify=function(t,e,n){var s=(0,i.BF)(e,16),r=this.doPublic(s);if(null==r)return null;var h=r.toString(16).replace(/^1f+00/,""),o=w(h);return o==n(t).toString()},t}();function b(t,e){var n=t.toByteArray(),i=0;while(i<n.length&&0==n[i])++i;if(n.length-i!=e-1||2!=n[i])return null;++i;while(0!=n[i])if(++i>=n.length)return null;var s="";while(++i<n.length){var r=255&n[i];r<128?s+=String.fromCharCode(r):r>191&&r<224?(s+=String.fromCharCode((31&r)<<6|63&n[i+1]),++i):(s+=String.fromCharCode((15&r)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return s}var E={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function x(t){return E[t]||""}function w(t){for(var e in E)if(E.hasOwnProperty(e)){var n=E[e],i=n.length;if(t.substr(0,i)==n)return t.substr(i)}return t}},24829:(t,e,n)=>{n.d(e,{E2:()=>r,O2:()=>l,QL:()=>h,WP:()=>u,dG:()=>a,rL:()=>o,vL:()=>s});var i="0123456789abcdefghijklmnopqrstuvwxyz";function s(t){return i.charAt(t)}function r(t,e){return t&e}function h(t,e){return t|e}function o(t,e){return t^e}function a(t,e){return t&~e}function u(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function l(t){var e=0;while(0!=t)t&=t-1,++e;return e}},65660:(t,e,n)=>{n.d(e,{f:()=>r});var i=n(42529),s={};s.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var s;for(s in n)t.prototype[s]=n[s];var r=function(){},h=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(r=function(t,e){for(s=0;s<h.length;s+=1){var n=h[s],i=e[n];"function"===typeof i&&i!=Object.prototype[n]&&(t[n]=i)}})}catch(o){}r(t.prototype,n)}}};
/**
 * @fileOverview
 * @name asn1-1.0.js
 * @author Kenji Urushima kenji.urushima@gmail.com
 * @version asn1 1.0.13 (2017-Jun-02)
 * @since jsrsasign 2.1
 * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
 */
var r={};"undefined"!=typeof r.asn1&&r.asn1||(r.asn1={}),r.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1),s=n.length;s%2==1?s+=1:e.match(/^[0-7]/)||(s+=2);for(var r="",h=0;h<s;h++)r+="f";var o=new i.Jh(r,16),a=o.xor(t).add(i.Jh.ONE);e=a.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=r,n=e.asn1,i=n.DERBoolean,s=n.DERInteger,h=n.DERBitString,o=n.DEROctetString,a=n.DERNull,u=n.DERObjectIdentifier,l=n.DEREnumerated,c=n.DERUTF8String,f=n.DERNumericString,d=n.DERPrintableString,g=n.DERTeletexString,p=n.DERIA5String,v=n.DERUTCTime,S=n.DERGeneralizedTime,m=n.DERSequence,y=n.DERSet,b=n.DERTaggedObject,E=n.ASN1Util.newObject,x=Object.keys(t);if(1!=x.length)throw"key of param shall be only one.";var w=x[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":"))throw"undefined key: "+w;if("bool"==w)return new i(t[w]);if("int"==w)return new s(t[w]);if("bitstr"==w)return new h(t[w]);if("octstr"==w)return new o(t[w]);if("null"==w)return new a(t[w]);if("oid"==w)return new u(t[w]);if("enum"==w)return new l(t[w]);if("utf8str"==w)return new c(t[w]);if("numstr"==w)return new f(t[w]);if("prnstr"==w)return new d(t[w]);if("telstr"==w)return new g(t[w]);if("ia5str"==w)return new p(t[w]);if("utctime"==w)return new v(t[w]);if("gentime"==w)return new S(t[w]);if("seq"==w){for(var D=t[w],T=[],V=0;V<D.length;V++){var R=E(D[V]);T.push(R)}return new m({array:T})}if("set"==w){for(D=t[w],T=[],V=0;V<D.length;V++){R=E(D[V]);T.push(R)}return new y({array:T})}if("tag"==w){var A=t[w];if("[object Array]"===Object.prototype.toString.call(A)&&3==A.length){var O=E(A[2]);return new b({tag:A[0],explicit:A[1],obj:O})}var B={};if(void 0!==A.explicit&&(B.explicit=A.explicit),void 0!==A.tag&&(B.tag=A.tag),void 0===A.obj)throw"obj shall be specified for 'tag'.";return B.obj=E(A.obj),new b(B)}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}},r.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),s=Math.floor(n/40),r=n%40,h=(e=s+"."+r,""),o=2;o<t.length;o+=2){var a=parseInt(t.substr(o,2),16),u=("00000000"+a.toString(2)).slice(-8);if(h+=u.substr(1,7),"0"==u.substr(0,1)){var l=new i.Jh(h,2);e=e+"."+l.toString(10),h=""}}return e},r.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",s=new i.Jh(t,10),r=s.toString(2),h=7-r.length%7;7==h&&(h=0);for(var o="",a=0;a<h;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var u=r.substr(a,7);a!=r.length-7&&(u="1"+u),n+=e(parseInt(u,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var s="",r=t.split("."),h=40*parseInt(r[0])+parseInt(r[1]);s+=e(h),r.splice(0,2);for(var o=0;o<r.length;o++)s+=n(r[o]);return s},r.asn1.ASN1Object=function(){var t="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+t.length+",v="+this.hV;var e=this.hV.length/2,n=e.toString(16);if(n.length%2==1&&(n="0"+n),e<128)return n;var i=n.length/2;if(i>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var s=128+i;return s.toString(16)+n},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},r.asn1.DERAbstractString=function(t){r.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("string"==typeof t?this.setString(t):"undefined"!=typeof t["str"]?this.setString(t["str"]):"undefined"!=typeof t["hex"]&&this.setStringHex(t["hex"]))},s.lang.extend(r.asn1.DERAbstractString,r.asn1.ASN1Object),r.asn1.DERAbstractTime=function(t){r.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e},this.formatDate=function(t,e,n){var i=this.zeroPadding,s=this.localDateToUTC(t),r=String(s.getFullYear());"utc"==e&&(r=r.substr(2,2));var h=i(String(s.getMonth()+1),2),o=i(String(s.getDate()),2),a=i(String(s.getHours()),2),u=i(String(s.getMinutes()),2),l=i(String(s.getSeconds()),2),c=r+h+o+a+u+l;if(!0===n){var f=s.getMilliseconds();if(0!=f){var d=i(String(f),3);d=d.replace(/[0]+$/,""),c=c+"."+d}}return c+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,i,s,r){var h=new Date(Date.UTC(t,e-1,n,i,s,r,0));this.setByDate(h)},this.getFreshValueHex=function(){return this.hV}},s.lang.extend(r.asn1.DERAbstractTime,r.asn1.ASN1Object),r.asn1.DERAbstractStructured=function(t){r.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,"undefined"!=typeof t&&"undefined"!=typeof t["array"]&&(this.asn1Array=t["array"])},s.lang.extend(r.asn1.DERAbstractStructured,r.asn1.ASN1Object),r.asn1.DERBoolean=function(){r.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},s.lang.extend(r.asn1.DERBoolean,r.asn1.ASN1Object),r.asn1.DERInteger=function(t){r.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=r.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new i.Jh(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t["bigint"]?this.setByBigInteger(t["bigint"]):"undefined"!=typeof t["int"]?this.setByInteger(t["int"]):"number"==typeof t?this.setByInteger(t):"undefined"!=typeof t["hex"]&&this.setValueHex(t["hex"]))},s.lang.extend(r.asn1.DERInteger,r.asn1.ASN1Object),r.asn1.DERBitString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=r.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}r.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var e=8-t.length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var i="";for(n=0;n<t.length-1;n+=8){var s=t.substr(n,8),r=parseInt(s,2).toString(16);1==r.length&&(r="0"+r),i+=r}this.hTLV=null,this.isModified=!0,this.hV="0"+e+i},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):"undefined"!=typeof t["hex"]?this.setHexValueIncludingUnusedBits(t["hex"]):"undefined"!=typeof t["bin"]?this.setByBinaryString(t["bin"]):"undefined"!=typeof t["array"]&&this.setByBooleanArray(t["array"]))},s.lang.extend(r.asn1.DERBitString,r.asn1.ASN1Object),r.asn1.DEROctetString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=r.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}r.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},s.lang.extend(r.asn1.DEROctetString,r.asn1.DERAbstractString),r.asn1.DERNull=function(){r.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},s.lang.extend(r.asn1.DERNull,r.asn1.ASN1Object),r.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",s=new i.Jh(t,10),r=s.toString(2),h=7-r.length%7;7==h&&(h=0);for(var o="",a=0;a<h;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var u=r.substr(a,7);a!=r.length-7&&(u="1"+u),n+=e(parseInt(u,2))}return n};r.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="",s=t.split("."),r=40*parseInt(s[0])+parseInt(s[1]);i+=e(r),s.splice(0,2);for(var h=0;h<s.length;h++)i+=n(s[h]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(t){var e=r.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"===typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},s.lang.extend(r.asn1.DERObjectIdentifier,r.asn1.ASN1Object),r.asn1.DEREnumerated=function(t){r.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=r.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new i.Jh(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t["int"]?this.setByInteger(t["int"]):"number"==typeof t?this.setByInteger(t):"undefined"!=typeof t["hex"]&&this.setValueHex(t["hex"]))},s.lang.extend(r.asn1.DEREnumerated,r.asn1.ASN1Object),r.asn1.DERUTF8String=function(t){r.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},s.lang.extend(r.asn1.DERUTF8String,r.asn1.DERAbstractString),r.asn1.DERNumericString=function(t){r.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},s.lang.extend(r.asn1.DERNumericString,r.asn1.DERAbstractString),r.asn1.DERPrintableString=function(t){r.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},s.lang.extend(r.asn1.DERPrintableString,r.asn1.DERAbstractString),r.asn1.DERTeletexString=function(t){r.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},s.lang.extend(r.asn1.DERTeletexString,r.asn1.DERAbstractString),r.asn1.DERIA5String=function(t){r.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},s.lang.extend(r.asn1.DERIA5String,r.asn1.DERAbstractString),r.asn1.DERUTCTime=function(t){r.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return"undefined"==typeof this.date&&"undefined"==typeof this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},s.lang.extend(r.asn1.DERUTCTime,r.asn1.DERAbstractTime),r.asn1.DERGeneralizedTime=function(t){r.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},s.lang.extend(r.asn1.DERGeneralizedTime,r.asn1.DERAbstractTime),r.asn1.DERSequence=function(t){r.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t+=n.getEncodedHex()}return this.hV=t,this.hV}},s.lang.extend(r.asn1.DERSequence,r.asn1.DERAbstractStructured),r.asn1.DERSet=function(t){r.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},"undefined"!=typeof t&&"undefined"!=typeof t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},s.lang.extend(r.asn1.DERSet,r.asn1.DERAbstractStructured),r.asn1.DERTaggedObject=function(t){r.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t["tag"]&&(this.hT=t["tag"]),"undefined"!=typeof t["explicit"]&&(this.isExplicit=t["explicit"]),"undefined"!=typeof t["obj"]&&(this.asn1Object=t["obj"],this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},s.lang.extend(r.asn1.DERTaggedObject,r.asn1.ASN1Object)},67546:t=>{t.exports={i:"3.2.1"}}}]);