UNPKG

@trimble-oss/trimble-id

Version:

Trimble Identity SDK for JavaScript/TypeScript

6 lines 331 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("axios")):"function"==typeof define&&define.amd?define(["exports","axios"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).TrimbleId={},t.axios)}(this,function(t,e){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=r(e),i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)};var s=function(){return s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},s.apply(this,arguments)};function a(t,e,r,n){return new(r||(r=Promise))(function(i,s){function a(t){try{h(n.next(t))}catch(t){s(t)}}function o(t){try{h(n.throw(t))}catch(t){s(t)}}function h(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(a,o)}h((n=n.apply(t,e||[])).next())})}function o(t,e){var r,n,i,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(h){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,h])}}}"function"==typeof SuppressedError&&SuppressedError;var h,u,c,l,f,p,d,g,v,y="RetrieveToken",m="RetrieveTokenEndpoint",x="RetrieveAuthorizationEndpoint",E="RetrieveUserInfoEndpoint",S="RetrieveTokenRevocationEndpoint",w="RetrieveEndSessionEndpoint",b="RetrieveJSONWebKeySetEndpoint",F="RetrieveIdToken",A="RetrieveRefreshToken",I="RetrieveCodeVerifier",D="RevokeRefreshToken",P="RetrieveTokenExpiry",C="GetOAuthRedirect",R="ValidateQuery",T="GetOAuthLogoutRedirect",N="ValidateCode",B="RetrieveClient",O="RetrieveKeyset",H="RetrieveClaimset",_="ClientCredentialTokenProvider",j="OpenIdEndpointProvider",k="FixedEndpointProvider",V="FixedTokenProvider",K="FixedKeysetProvider",L="RefreshableTokenProvider",q="AuthorizationCodeGrantTokenProvider",M="BearerTokenHttpClientProvider",U="OpenIdKeysetProvider",G="ValidatedClaimsetProvider",z="OnBehalfGrantTokenProvider",W="application/json",J=1e3,X=3e5,$=function(){function t(t,e){"string"==typeof t?(this._baseAddress=t,this._defaultSettings=e||{}):"object"==typeof t&&null!==t?(this._baseAddress="",this._defaultSettings=t):(this._baseAddress="",this._defaultSettings={})}return t.prototype.httpPost=function(t){return a(this,arguments,void 0,function(t,e,r){var i,s,a,h;return void 0===e&&(e=null),void 0===r&&(r={}),o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),i=this.prepareRequest(t,r),s=i.address,a=i.settings,[4,n.default.post(s,e,a)];case 1:return[2,o.sent().data];case 2:throw(h=o.sent()).response?new Error("Returned: ".concat(h.response.status," ").concat(JSON.stringify(h.response.data))):new Error(h.message);case 3:return[2]}})})},t.prototype.httpGet=function(t){return a(this,arguments,void 0,function(t,e){var r,i,s,a;return void 0===e&&(e={}),o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),r=this.prepareRequest(t,e),i=r.address,s=r.settings,[4,n.default.get(i,s)];case 1:return[2,o.sent().data];case 2:throw(a=o.sent()).response?new Error("Returned: ".concat(a.response.status," ").concat(JSON.stringify(a.response.data))):new Error(a.message);case 3:return[2]}})})},t.prototype.httpPut=function(t){return a(this,arguments,void 0,function(t,e,r){var i,s,a,h;return void 0===e&&(e=null),void 0===r&&(r={}),o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),i=this.prepareRequest(t,r),s=i.address,a=i.settings,[4,n.default.put(s,e,a)];case 1:return[2,o.sent().data];case 2:throw(h=o.sent()).response?new Error("Returned: ".concat(h.response.status," ").concat(JSON.stringify(h.response.data))):new Error(h.message);case 3:return[2]}})})},t.prototype.httpPatch=function(t){return a(this,arguments,void 0,function(t,e,r){var i,s,a,h;return void 0===e&&(e=null),void 0===r&&(r={}),o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),i=this.prepareRequest(t,r),s=i.address,a=i.settings,[4,n.default.patch(s,e,a)];case 1:return[2,o.sent().data];case 2:throw(h=o.sent()).response?new Error("Returned: ".concat(h.response.status," ").concat(JSON.stringify(h.response.data))):new Error(h.message);case 3:return[2]}})})},t.prototype.httpDelete=function(t){return a(this,arguments,void 0,function(t,e,r){var i,s,a,h;return void 0===e&&(e=null),void 0===r&&(r={}),o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),i=this.prepareRequest(t,r),s=i.address,(a=i.settings).data=e,[4,n.default.delete(s,a)];case 1:return[2,o.sent().data];case 2:throw(h=o.sent()).response?new Error("Returned: ".concat(h.response.status," ").concat(JSON.stringify(h.response.data))):new Error(h.message);case 3:return[2]}})})},t.prototype.httpPostJSON=function(t,e){return a(this,arguments,void 0,function(t,e,r){var n;return void 0===r&&(r={}),o(this,function(i){return n=this.combineSettings(r,{headers:{"Content-Type":W,Accept:W}}),[2,this.httpPost(t,e,n)]})})},t.prototype.httpGetJSON=function(t){return a(this,arguments,void 0,function(t,e){var r;return void 0===e&&(e={}),o(this,function(n){return r=this.combineSettings(e,{headers:{Accept:W}}),[2,this.httpGet(t,r)]})})},t.prototype.httpPutJSON=function(t,e){return a(this,arguments,void 0,function(t,e,r){var n;return void 0===r&&(r={}),o(this,function(i){return n=this.combineSettings(r,{headers:{"Content-Type":W,Accept:W}}),[2,this.httpPut(t,e,n)]})})},t.prototype.httpPatchJSON=function(t,e){return a(this,arguments,void 0,function(t,e,r){var n;return void 0===r&&(r={}),o(this,function(i){return n=this.combineSettings(r,{headers:{"Content-Type":W,Accept:W}}),[2,this.httpPatch(t,e,n)]})})},t.prototype.httpDeleteJSON=function(t){return a(this,arguments,void 0,function(t,e,r){var n;return void 0===e&&(e=null),void 0===r&&(r={}),o(this,function(i){return n=this.combineSettings(r,{headers:{"Content-Type":W,Accept:W}}),[2,this.httpDelete(t,e,n)]})})},t.prototype.httpPutFullResponse=function(t){return a(this,arguments,void 0,function(t,e,r){var i,s,a,h;return void 0===e&&(e=null),void 0===r&&(r={}),o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),i=this.prepareRequest(t,r),s=i.address,a=i.settings,[4,n.default.put(s,e,a)];case 1:return[2,o.sent()];case 2:throw(h=o.sent()).response?new Error("Returned: ".concat(h.response.status," ").concat(JSON.stringify(h.response.data))):new Error(h.message);case 3:return[2]}})})},t.prototype.httpPostJSONFullResponse=function(t,e){return a(this,arguments,void 0,function(t,e,r){var i,a,h,u;return void 0===r&&(r={}),o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),r.headers=s({"Content-Type":W,Accept:W},r.headers),i=this.prepareRequest(t,r),a=i.address,h=i.settings,[4,n.default.post(a,e,h)];case 1:return[2,o.sent()];case 2:throw(u=o.sent()).response?new Error("Returned: ".concat(u.response.status," ").concat(JSON.stringify(u.response.data))):new Error(u.message);case 3:return[2]}})})},t.prototype.httpDeleteJSONFullResponse=function(t){return a(this,arguments,void 0,function(t,e,r){var i,s,a,h;return void 0===e&&(e=null),void 0===r&&(r={}),o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),i=this.prepareRequest(t,r),s=i.address,(a=i.settings).data=e,[4,n.default.delete(s,a)];case 1:return[2,o.sent()];case 2:throw(h=o.sent()).response?new Error("Returned: ".concat(h.response.status," ").concat(JSON.stringify(h.response.data))):new Error(h.message);case 3:return[2]}})})},t.prototype.calculateAddress=function(t,e){return t?e?e.includes("://")?e:t+(t.endsWith("/")?"":"/")+e:t:e},t.prototype.isObject=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},t.prototype.mergeDeep=function(t){for(var e,r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(!n.length)return t;var s=n.shift();if(this.isObject(t)&&this.isObject(s))for(var a in s)this.isObject(s[a])?(t[a]||Object.assign(t,((e={})[a]={},e)),this.mergeDeep(t[a],s[a])):Object.assign(t,((r={})[a]=s[a],r));return this.mergeDeep.apply(this,function(t,e,r){if(r||2===arguments.length)for(var n,i=0,s=e.length;i<s;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}([t],n,!1))},t.prototype.combineSettings=function(t,e){return this.mergeDeep(e,t)},t.prototype.prepareRequest=function(t,e){return void 0===e&&(e={}),{address:this.calculateAddress(this._baseAddress,t),settings:this.combineSettings(this._defaultSettings,e)}},t}(),Y={userAgent:!1},Z={},Q=Q||function(t){var e={},r=e.lib={},n=r.Base=function(){function t(){}return{extend:function(e){t.prototype=this;var r=new t;return e&&r.mixIn(e),r.hasOwnProperty("init")||(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),i=r.WordArray=n.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||a).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var s=0;s<i;s++){var a=r[s>>>2]>>>24-s%4*8&255;e[n+s>>>2]|=a<<24-(n+s)%4*8}else for(s=0;s<i;s+=4)e[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=n.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var r=[],n=0;n<e;n+=4)r.push(4294967296*t.random()|0);return new i.init(r,e)}}),s=e.enc={},a=s.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var s=e[i>>>2]>>>24-i%4*8&255;n.push((s>>>4).toString(16)),n.push((15&s).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new i.init(r,e/2)}},o=s.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var s=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(s))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new i.init(r,e)}},h=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return o.parse(unescape(encodeURIComponent(t)))}},u=r.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r=this._data,n=r.words,s=r.sigBytes,a=this.blockSize,o=s/(4*a),h=(o=e?t.ceil(o):t.max((0|o)-this._minBufferSize,0))*a,u=t.min(4*h,s);if(h){for(var c=0;c<h;c+=a)this._doProcessBlock(n,c);var l=n.splice(0,h);r.sigBytes-=u}return new i.init(l,u)},clone:function(){var t=n.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});r.Hasher=u.extend({cfg:n.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new c.HMAC.init(t,r).finalize(e)}}});var c=e.algo={};return e}(Math);u=(h=Q).lib,c=u.Base,l=u.WordArray,(h=h.x64={}).Word=c.extend({init:function(t,e){this.high=t,this.low=e}}),h.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var i=t[n];r.push(i.high),r.push(i.low)}return l.create(r,this.sigBytes)},clone:function(){for(var t=c.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}}),Q.lib.Cipher||function(){var t=(f=Q).lib,e=t.Base,r=t.WordArray,n=t.BufferedBlockAlgorithm,i=f.enc.Base64,s=f.algo.EvpKDF,a=t.Cipher=n.extend({cfg:e.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){n.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(t){return{encrypt:function(e,r,n){return("string"==typeof r?p:l).encrypt(t,e,r,n)},decrypt:function(e,r,n){return("string"==typeof r?p:l).decrypt(t,e,r,n)}}}});t.StreamCipher=a.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var o=f.mode={},h=function(t,e,r){var n=this._iv;n?this._iv=void 0:n=this._prevBlock;for(var i=0;i<r;i++)t[e+i]^=n[i]},u=(t.BlockCipherMode=e.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}})).extend();u.Encryptor=u.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize;h.call(this,t,e,n),r.encryptBlock(t,e),this._prevBlock=t.slice(e,e+n)}}),u.Decryptor=u.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=t.slice(e,e+n);r.decryptBlock(t,e),h.call(this,t,e,n),this._prevBlock=i}}),o=o.CBC=u,u=(f.pad={}).Pkcs7={pad:function(t,e){for(var n,i=(n=(n=4*e)-t.sigBytes%n)<<24|n<<16|n<<8|n,s=[],a=0;a<n;a+=4)s.push(i);n=r.create(s,n),t.concat(n)},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},t.BlockCipher=a.extend({cfg:a.cfg.extend({mode:o,padding:u}),reset:function(){a.reset.call(this);var t=(e=this.cfg).iv,e=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=e.createEncryptor;else r=e.createDecryptor,this._minBufferSize=1;this._mode=r.call(e,this,t&&t.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4});var c=t.CipherParams=e.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),l=(o=(f.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext;return((t=t.salt)?r.create([1398893684,1701076831]).concat(t).concat(e):e).toString(i)},parse:function(t){var e=(t=i.parse(t)).words;if(1398893684==e[0]&&1701076831==e[1]){var n=r.create(e.slice(2,4));e.splice(0,4),t.sigBytes-=16}return c.create({ciphertext:t,salt:n})}},t.SerializableCipher=e.extend({cfg:e.extend({format:o}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=t.createEncryptor(r,n);return e=i.finalize(e),i=i.cfg,c.create({ciphertext:e,key:r,iv:i.iv,algorithm:t,mode:i.mode,padding:i.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(r,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}})),f=(f.kdf={}).OpenSSL={execute:function(t,e,n,i){return i||(i=r.random(8)),t=s.create({keySize:e+n}).compute(t,i),n=r.create(t.words.slice(e),4*n),t.sigBytes=4*e,c.create({key:t,iv:n,salt:i})}},p=t.PasswordBasedCipher=l.extend({cfg:l.cfg.extend({kdf:f}),encrypt:function(t,e,r,n){return r=(n=this.cfg.extend(n)).kdf.execute(r,t.keySize,t.ivSize),n.iv=r.iv,(t=l.encrypt.call(this,t,e,r.key,n)).mixIn(r),t},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),r=n.kdf.execute(r,t.keySize,t.ivSize,e.salt),n.iv=r.iv,l.decrypt.call(this,t,e,r.key,n)}})}(),function(){for(var t=Q,e=t.lib.BlockCipher,r=t.algo,n=[],i=[],s=[],a=[],o=[],h=[],u=[],c=[],l=[],f=[],p=[],d=0;256>d;d++)p[d]=128>d?d<<1:d<<1^283;var g=0,v=0;for(d=0;256>d;d++){var y=(y=v^v<<1^v<<2^v<<3^v<<4)>>>8^255&y^99;n[g]=y,i[y]=g;var m=p[g],x=p[m],E=p[x],S=257*p[y]^16843008*y;s[g]=S<<24|S>>>8,a[g]=S<<16|S>>>16,o[g]=S<<8|S>>>24,h[g]=S,S=16843009*E^65537*x^257*m^16843008*g,u[y]=S<<24|S>>>8,c[y]=S<<16|S>>>16,l[y]=S<<8|S>>>24,f[y]=S,g?(g=m^p[p[p[E^m]]],v^=p[p[v]]):g=v=1}var w=[0,1,2,4,8,16,32,64,128,27,54];r=r.AES=e.extend({_doReset:function(){for(var t=(r=this._key).words,e=r.sigBytes/4,r=4*((this._nRounds=e+6)+1),i=this._keySchedule=[],s=0;s<r;s++)if(s<e)i[s]=t[s];else{var a=i[s-1];s%e?6<e&&4==s%e&&(a=n[a>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a]):(a=n[(a=a<<8|a>>>24)>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a],a^=w[s/e|0]<<24),i[s]=i[s-e]^a}for(t=this._invKeySchedule=[],e=0;e<r;e++)s=r-e,a=e%4?i[s]:i[s-4],t[e]=4>e||4>=s?a:u[n[a>>>24]]^c[n[a>>>16&255]]^l[n[a>>>8&255]]^f[n[255&a]]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,o,h,n)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,u,c,l,f,i),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,s,a,o){for(var h=this._nRounds,u=t[e]^r[0],c=t[e+1]^r[1],l=t[e+2]^r[2],f=t[e+3]^r[3],p=4,d=1;d<h;d++){var g=n[u>>>24]^i[c>>>16&255]^s[l>>>8&255]^a[255&f]^r[p++],v=n[c>>>24]^i[l>>>16&255]^s[f>>>8&255]^a[255&u]^r[p++],y=n[l>>>24]^i[f>>>16&255]^s[u>>>8&255]^a[255&c]^r[p++];f=n[f>>>24]^i[u>>>16&255]^s[c>>>8&255]^a[255&l]^r[p++],u=g,c=v,l=y}g=(o[u>>>24]<<24|o[c>>>16&255]<<16|o[l>>>8&255]<<8|o[255&f])^r[p++],v=(o[c>>>24]<<24|o[l>>>16&255]<<16|o[f>>>8&255]<<8|o[255&u])^r[p++],y=(o[l>>>24]<<24|o[f>>>16&255]<<16|o[u>>>8&255]<<8|o[255&c])^r[p++],f=(o[f>>>24]<<24|o[u>>>16&255]<<16|o[c>>>8&255]<<8|o[255&l])^r[p++],t[e]=g,t[e+1]=v,t[e+2]=y,t[e+3]=f},keySize:8});t.AES=e._createHelper(r)}(),function(){function t(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<<t}function e(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<<t}var r=Q,n=(i=r.lib).WordArray,i=i.BlockCipher,s=r.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=s.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],r=0;56>r;r++){var n=a[r]-1;e[r]=t[n>>>5]>>>31-n%32&1}for(t=this._subKeys=[],n=0;16>n;n++){var i=t[n]=[],s=h[n];for(r=0;24>r;r++)i[r/6|0]|=e[(o[r]-1+s)%28]<<31-r%6,i[4+(r/6|0)]|=e[28+(o[r+24]-1+s)%28]<<31-r%6;for(i[0]=i[0]<<1|i[0]>>>31,r=1;7>r;r++)i[r]>>>=4*(r-1)+3;i[7]=i[7]<<5|i[7]>>>27}for(e=this._invSubKeys=[],r=0;16>r;r++)e[r]=t[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(r,n,i){this._lBlock=r[n],this._rBlock=r[n+1],t.call(this,4,252645135),t.call(this,16,65535),e.call(this,2,858993459),e.call(this,8,16711935),t.call(this,1,1431655765);for(var s=0;16>s;s++){for(var a=i[s],o=this._lBlock,h=this._rBlock,l=0,f=0;8>f;f++)l|=u[f][((h^a[f])&c[f])>>>0];this._lBlock=h,this._rBlock=o^l}i=this._lBlock,this._lBlock=this._rBlock,this._rBlock=i,t.call(this,1,1431655765),e.call(this,8,16711935),e.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),r[n]=this._lBlock,r[n+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=i._createHelper(l),s=s.TripleDES=i.extend({_doReset:function(){var t=this._key.words;this._des1=l.createEncryptor(n.create(t.slice(0,2))),this._des2=l.createEncryptor(n.create(t.slice(2,4))),this._des3=l.createEncryptor(n.create(t.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2}),r.TripleDES=i._createHelper(s)}(),function(){var t=Q,e=t.lib.WordArray;t.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp(),t=[];for(var i=0;i<r;i+=3)for(var s=(e[i>>>2]>>>24-i%4*8&255)<<16|(e[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|e[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;4>a&&i+.75*a<r;a++)t.push(n.charAt(s>>>6*(3-a)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var r=t.length,n=this._map;(i=n.charAt(64))&&(-1!=(i=t.indexOf(i))&&(r=i));for(var i=[],s=0,a=0;a<r;a++)if(a%4){var o=n.indexOf(t.charAt(a-1))<<a%4*2,h=n.indexOf(t.charAt(a))>>>6-a%4*2;i[s>>>2]|=(o|h)<<24-s%4*8,s++}return e.create(i,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){function e(t,e,r,n,i,s,a){return((t=t+(e&r|~e&n)+i+a)<<s|t>>>32-s)+e}function r(t,e,r,n,i,s,a){return((t=t+(e&n|r&~n)+i+a)<<s|t>>>32-s)+e}function n(t,e,r,n,i,s,a){return((t=t+(e^r^n)+i+a)<<s|t>>>32-s)+e}function i(t,e,r,n,i,s,a){return((t=t+(r^(e|~n))+i+a)<<s|t>>>32-s)+e}for(var s=Q,a=(h=s.lib).WordArray,o=h.Hasher,h=s.algo,u=[],c=0;64>c;c++)u[c]=4294967296*t.abs(t.sin(c+1))|0;h=h.MD5=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,s){for(var a=0;16>a;a++){var o=t[h=s+a];t[h]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}a=this._hash.words;var h=t[s+0],c=(o=t[s+1],t[s+2]),l=t[s+3],f=t[s+4],p=t[s+5],d=t[s+6],g=t[s+7],v=t[s+8],y=t[s+9],m=t[s+10],x=t[s+11],E=t[s+12],S=t[s+13],w=t[s+14],b=t[s+15],F=e(F=a[0],D=a[1],I=a[2],A=a[3],h,7,u[0]),A=e(A,F,D,I,o,12,u[1]),I=e(I,A,F,D,c,17,u[2]),D=e(D,I,A,F,l,22,u[3]);F=e(F,D,I,A,f,7,u[4]),A=e(A,F,D,I,p,12,u[5]),I=e(I,A,F,D,d,17,u[6]),D=e(D,I,A,F,g,22,u[7]),F=e(F,D,I,A,v,7,u[8]),A=e(A,F,D,I,y,12,u[9]),I=e(I,A,F,D,m,17,u[10]),D=e(D,I,A,F,x,22,u[11]),F=e(F,D,I,A,E,7,u[12]),A=e(A,F,D,I,S,12,u[13]),I=e(I,A,F,D,w,17,u[14]),F=r(F,D=e(D,I,A,F,b,22,u[15]),I,A,o,5,u[16]),A=r(A,F,D,I,d,9,u[17]),I=r(I,A,F,D,x,14,u[18]),D=r(D,I,A,F,h,20,u[19]),F=r(F,D,I,A,p,5,u[20]),A=r(A,F,D,I,m,9,u[21]),I=r(I,A,F,D,b,14,u[22]),D=r(D,I,A,F,f,20,u[23]),F=r(F,D,I,A,y,5,u[24]),A=r(A,F,D,I,w,9,u[25]),I=r(I,A,F,D,l,14,u[26]),D=r(D,I,A,F,v,20,u[27]),F=r(F,D,I,A,S,5,u[28]),A=r(A,F,D,I,c,9,u[29]),I=r(I,A,F,D,g,14,u[30]),F=n(F,D=r(D,I,A,F,E,20,u[31]),I,A,p,4,u[32]),A=n(A,F,D,I,v,11,u[33]),I=n(I,A,F,D,x,16,u[34]),D=n(D,I,A,F,w,23,u[35]),F=n(F,D,I,A,o,4,u[36]),A=n(A,F,D,I,f,11,u[37]),I=n(I,A,F,D,g,16,u[38]),D=n(D,I,A,F,m,23,u[39]),F=n(F,D,I,A,S,4,u[40]),A=n(A,F,D,I,h,11,u[41]),I=n(I,A,F,D,l,16,u[42]),D=n(D,I,A,F,d,23,u[43]),F=n(F,D,I,A,y,4,u[44]),A=n(A,F,D,I,E,11,u[45]),I=n(I,A,F,D,b,16,u[46]),F=i(F,D=n(D,I,A,F,c,23,u[47]),I,A,h,6,u[48]),A=i(A,F,D,I,g,10,u[49]),I=i(I,A,F,D,w,15,u[50]),D=i(D,I,A,F,p,21,u[51]),F=i(F,D,I,A,E,6,u[52]),A=i(A,F,D,I,l,10,u[53]),I=i(I,A,F,D,m,15,u[54]),D=i(D,I,A,F,o,21,u[55]),F=i(F,D,I,A,v,6,u[56]),A=i(A,F,D,I,b,10,u[57]),I=i(I,A,F,D,d,15,u[58]),D=i(D,I,A,F,S,21,u[59]),F=i(F,D,I,A,f,6,u[60]),A=i(A,F,D,I,x,10,u[61]),I=i(I,A,F,D,c,15,u[62]),D=i(D,I,A,F,y,21,u[63]);a[0]=a[0]+F|0,a[1]=a[1]+D|0,a[2]=a[2]+I|0,a[3]=a[3]+A|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var s=t.floor(n/4294967296);for(r[15+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),r[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(r.length+1),this._process(),r=(e=this._hash).words,n=0;4>n;n++)i=r[n],r[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);return e},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}}),s.MD5=o._createHelper(h),s.HmacMD5=o._createHmacHelper(h)}(Math),p=(v=(f=Q).lib).WordArray,d=v.Hasher,g=[],v=f.algo.SHA1=d.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],s=r[2],a=r[3],o=r[4],h=0;80>h;h++){if(16>h)g[h]=0|t[e+h];else{var u=g[h-3]^g[h-8]^g[h-14]^g[h-16];g[h]=u<<1|u>>>31}u=(n<<5|n>>>27)+o+g[h],u=20>h?u+(1518500249+(i&s|~i&a)):40>h?u+(1859775393+(i^s^a)):60>h?u+((i&s|i&a|s&a)-1894007588):u+((i^s^a)-899497514),o=a,a=s,s=i<<30|i>>>2,i=n,n=u}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+o|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=d.clone.call(this);return t._hash=this._hash.clone(),t}}),f.SHA1=d._createHelper(v),f.HmacSHA1=d._createHmacHelper(v),function(t){for(var e=Q,r=(i=e.lib).WordArray,n=i.Hasher,i=e.algo,s=[],a=[],o=function(t){return 4294967296*(t-(0|t))|0},h=2,u=0;64>u;){var c;t:{c=h;for(var l=t.sqrt(c),f=2;f<=l;f++)if(!(c%f)){c=!1;break t}c=!0}c&&(8>u&&(s[u]=o(t.pow(h,.5))),a[u]=o(t.pow(h,1/3)),u++),h++}var p=[];i=i.SHA256=n.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],s=r[2],o=r[3],h=r[4],u=r[5],c=r[6],l=r[7],f=0;64>f;f++){if(16>f)p[f]=0|t[e+f];else{var d=p[f-15],g=p[f-2];p[f]=((d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3)+p[f-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+p[f-16]}d=l+((h<<26|h>>>6)^(h<<21|h>>>11)^(h<<7|h>>>25))+(h&u^~h&c)+a[f]+p[f],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&i^n&s^i&s),l=c,c=u,u=h,h=o+d|0,o=s,s=i,i=n,n=d+g|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+s|0,r[3]=r[3]+o|0,r[4]=r[4]+h|0,r[5]=r[5]+u|0,r[6]=r[6]+c|0,r[7]=r[7]+l|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=n._createHelper(i),e.HmacSHA256=n._createHmacHelper(i)}(Math),function(){var t=Q,e=t.lib.WordArray,r=(n=t.algo).SHA256,n=n.SHA224=r.extend({_doReset:function(){this._hash=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=r._doFinalize.call(this);return t.sigBytes-=4,t}});t.SHA224=r._createHelper(n),t.HmacSHA224=r._createHmacHelper(n)}(),function(){function t(){return n.create.apply(n,arguments)}for(var e=Q,r=e.lib.Hasher,n=(s=e.x64).Word,i=s.WordArray,s=e.algo,a=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],o=[],h=0;80>h;h++)o[h]=t();s=s.SHA512=r.extend({_doReset:function(){this._hash=new i.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=(l=this._hash.words)[0],n=l[1],i=l[2],s=l[3],h=l[4],u=l[5],c=l[6],l=l[7],f=r.high,p=r.low,d=n.high,g=n.low,v=i.high,y=i.low,m=s.high,x=s.low,E=h.high,S=h.low,w=u.high,b=u.low,F=c.high,A=c.low,I=l.high,D=l.low,P=f,C=p,R=d,T=g,N=v,B=y,O=m,H=x,_=E,j=S,k=w,V=b,K=F,L=A,q=I,M=D,U=0;80>U;U++){var G=o[U];if(16>U)var z=G.high=0|t[e+2*U],W=G.low=0|t[e+2*U+1];else{z=((W=(z=o[U-15]).high)>>>1|(J=z.low)<<31)^(W>>>8|J<<24)^W>>>7;var J=(J>>>1|W<<31)^(J>>>8|W<<24)^(J>>>7|W<<25),X=((W=(X=o[U-2]).high)>>>19|($=X.low)<<13)^(W<<3|$>>>29)^W>>>6,$=($>>>19|W<<13)^($<<3|W>>>29)^($>>>6|W<<26),Y=(W=o[U-7]).high,Z=(Q=o[U-16]).high,Q=Q.low;z=(z=(z=z+Y+((W=J+W.low)>>>0<J>>>0?1:0))+X+((W=W+$)>>>0<$>>>0?1:0))+Z+((W=W+Q)>>>0<Q>>>0?1:0);G.high=z,G.low=W}Y=_&k^~_&K,Q=j&V^~j&L,G=P&R^P&N^R&N;var tt=C&T^C&B^T&B,et=(J=(P>>>28|C<<4)^(P<<30|C>>>2)^(P<<25|C>>>7),X=(C>>>28|P<<4)^(C<<30|P>>>2)^(C<<25|P>>>7),($=a[U]).high),rt=$.low;Z=q+((_>>>14|j<<18)^(_>>>18|j<<14)^(_<<23|j>>>9))+(($=M+((j>>>14|_<<18)^(j>>>18|_<<14)^(j<<23|_>>>9)))>>>0<M>>>0?1:0),q=K,M=L,K=k,L=V,k=_,V=j,_=O+(Z=(Z=(Z=Z+Y+(($=$+Q)>>>0<Q>>>0?1:0))+et+(($=$+rt)>>>0<rt>>>0?1:0))+z+(($=$+W)>>>0<W>>>0?1:0))+((j=H+$|0)>>>0<H>>>0?1:0)|0,O=N,H=B,N=R,B=T,R=P,T=C,P=Z+(G=J+G+((W=X+tt)>>>0<X>>>0?1:0))+((C=$+W|0)>>>0<$>>>0?1:0)|0}p=r.low=p+C,r.high=f+P+(p>>>0<C>>>0?1:0),g=n.low=g+T,n.high=d+R+(g>>>0<T>>>0?1:0),y=i.low=y+B,i.high=v+N+(y>>>0<B>>>0?1:0),x=s.low=x+H,s.high=m+O+(x>>>0<H>>>0?1:0),S=h.low=S+j,h.high=E+_+(S>>>0<j>>>0?1:0),b=u.low=b+V,u.high=w+k+(b>>>0<V>>>0?1:0),A=c.low=A+L,c.high=F+K+(A>>>0<L>>>0?1:0),D=l.low=D+M,l.high=I+q+(D>>>0<M>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(n+128>>>10<<5)]=r,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=r._createHelper(s),e.HmacSHA512=r._createHmacHelper(s)}(),function(){var t=Q,e=(i=t.x64).Word,r=i.WordArray,n=(i=t.algo).SHA512,i=i.SHA384=n.extend({_doReset:function(){this._hash=new r.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=n._createHelper(i),t.HmacSHA384=n._createHmacHelper(i)}(),function(){var t=Q,e=(n=t.lib).WordArray,r=n.Hasher,n=t.algo,i=e.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=e.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),a=e.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),o=e.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=e.create([0,1518500249,1859775393,2400959708,2840853838]),u=e.create([1352829926,1548603684,1836072691,2053994217,0]);n=n.RIPEMD160=r.extend({_doReset:function(){this._hash=e.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;16>r;r++){var n=t[E=e+r];t[E]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var c,l,f,p,d,g,v,y,m,x,E=this._hash.words,S=(n=h.words,u.words),w=i.words,b=s.words,F=a.words,A=o.words;g=c=E[0],v=l=E[1],y=f=E[2],m=p=E[3],x=d=E[4];var I;for(r=0;80>r;r+=1)I=c+t[e+w[r]]|0,I=16>r?I+((l^f^p)+n[0]):32>r?I+((l&f|~l&p)+n[1]):48>r?I+(((l|~f)^p)+n[2]):64>r?I+((l&p|f&~p)+n[3]):I+((l^(f|~p))+n[4]),I=(I=(I|=0)<<F[r]|I>>>32-F[r])+d|0,c=d,d=p,p=f<<10|f>>>22,f=l,l=I,I=g+t[e+b[r]]|0,I=16>r?I+((v^(y|~m))+S[0]):32>r?I+((v&m|y&~m)+S[1]):48>r?I+(((v|~y)^m)+S[2]):64>r?I+((v&y|~v&m)+S[3]):I+((v^y^m)+S[4]),I=(I=(I|=0)<<A[r]|I>>>32-A[r])+x|0,g=x,x=m,m=y<<10|y>>>22,y=v,v=I;I=E[1]+f+m|0,E[1]=E[2]+p+x|0,E[2]=E[3]+d+g|0,E[3]=E[4]+c+v|0,E[4]=E[0]+l+y|0,E[0]=I},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;for(e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process(),e=(t=this._hash).words,r=0;5>r;r++)n=e[r],e[r]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);return t},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});t.RIPEMD160=r._createHelper(n),t.HmacRIPEMD160=r._createHmacHelper(n)}(),function(){var t=Q,e=t.enc.Utf8;t.algo.HMAC=t.lib.Base.extend({init:function(t,r){t=this._hasher=new t.init,"string"==typeof r&&(r=e.parse(r));var n=t.blockSize,i=4*n;r.sigBytes>i&&(r=t.finalize(r)),r.clamp();for(var s=this._oKey=r.clone(),a=this._iKey=r.clone(),o=s.words,h=a.words,u=0;u<n;u++)o[u]^=1549556828,h[u]^=909522486;s.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher;return t=e.finalize(t),e.reset(),e.finalize(this._oKey.clone().concat(t))}})}(),function(){var t,e=Q,r=(t=e.lib).Base,n=t.WordArray,i=(t=e.algo).HMAC,s=t.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:t.SHA1,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r=this.cfg,s=i.create(r.hasher,t),a=n.create(),o=n.create([1]),h=a.words,u=o.words,c=r.keySize;for(r=r.iterations;h.length<c;){var l=s.update(e).finalize(o);s.reset();for(var f=l.words,p=f.length,d=l,g=1;g<r;g++){d=s.finalize(d),s.reset();for(var v=d.words,y=0;y<p;y++)f[y]^=v[y]}a.concat(l),u[0]++}return a.sigBytes=4*c,a}});e.PBKDF2=function(t,e,r){return s.create(r).compute(t,e)}}(); /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ */ var tt,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function rt(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=et.charAt(r>>6)+et.charAt(63&r);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=et.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=et.charAt(r>>2)+et.charAt((3&r)<<4));(3&n.length)>0;)n+="=";return n}function nt(t){var e,r,n,i="",s=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e)(n=et.indexOf(t.charAt(e)))<0||(0==s?(i+=ct(n>>2),r=3&n,s=1):1==s?(i+=ct(r<<2|n>>4),r=15&n,s=2):2==s?(i+=ct(r),i+=ct(n>>2),r=3&n,s=3):(i+=ct(r<<2|n>>4),i+=ct(15&n),s=0));return 1==s&&(i+=ct(r<<2)),i} /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ */function it(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function st(){return new it(null)}"Microsoft Internet Explorer"==Y.appName?(it.prototype.am=function(t,e,r,n,i,s){for(var a=32767&e,o=e>>15;--s>=0;){var h=32767&this[t],u=this[t++]>>15,c=o*h+u*a;i=((h=a*h+((32767&c)<<15)+r[n]+(1073741823&i))>>>30)+(c>>>15)+o*u+(i>>>30),r[n++]=1073741823&h}return i},tt=30):"Netscape"!=Y.appName?(it.prototype.am=function(t,e,r,n,i,s){for(;--s>=0;){var a=e*this[t++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i},tt=26):(it.prototype.am=function(t,e,r,n,i,s){for(var a=16383&e,o=e>>14;--s>=0;){var h=16383&this[t],u=this[t++]>>14,c=o*h+u*a;i=((h=a*h+((16383&c)<<14)+r[n]+i)>>28)+(c>>14)+o*u,r[n++]=268435455&h}return i},tt=28),it.prototype.DB=tt,it.prototype.DM=(1<<tt)-1,it.prototype.DV=1<<tt;it.prototype.FV=Math.pow(2,52),it.prototype.F1=52-tt,it.prototype.F2=2*tt-52;var at,ot,ht="0123456789abcdefghijklmnopqrstuvwxyz",ut=new Array;for(at="0".charCodeAt(0),ot=0;ot<=9;++ot)ut[at++]=ot;for(at="a".charCodeAt(0),ot=10;ot<36;++ot)ut[at++]=ot;for(at="A".charCodeAt(0),ot=10;ot<36;++ot)ut[at++]=ot;function ct(t){return ht.charAt(t)}function lt(t,e){var r=ut[t.charCodeAt(e)];return null==r?-1:r}function ft(t){var e=st();return e.fromInt(t),e}function pt(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function dt(t){this.m=t}function gt(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function vt(t,e){return t&e}function yt(t,e){return t|e}function mt(t,e){return t^e}function xt(t,e){return t&~e}function Et(t){if(0==t)return-1;var e=0;return 65535&t||(t>>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function St(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function wt(){}function bt(t){return t}function Ft(t){this.r2=st(),this.q3=st(),it.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}dt.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},dt.prototype.revert=function(t){return t},dt.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},dt.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},dt.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},gt.prototype.convert=function(t){var e=st();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(it.ZERO)>0&&this.m.subTo(e,e),e},gt.prototype.revert=function(t){var e=st();return t.copyTo(e),this.reduce(e),e},gt.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},gt.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},gt.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},it.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},it.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},it.prototype.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var n=t.length,i=!1,s=0;--n>=0;){var a=8==r?255&t[n]:lt(t,n);a<0?"-"==t.charAt(n)&&(i=!0):(i=!1,0==s?this[this.t++]=a:s+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,(s+=r)>=this.DB&&(s-=this.DB))}8==r&&128&t[0]&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&it.ZERO.subTo(this,this)},it.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},it.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},it.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},it.prototype.lShiftTo=function(t,e){var r,n=t%this.DB,i=this.DB-n,s=(1<<i)-1,a=Math.floor(t/this.DB),o=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)e[r+a+1]=this[r]>>i|o,o=(this[r]&s)<<n;for(r=a-1;r>=0;--r)e[r]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},it.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,s=(1<<n)-1;e[0]=this[r]>>n;for(var a=r+1;a<this.t;++a)e[a-r-1]|=(this[a]&s)<<i,e[a-r]=this[a]>>n;n>0&&(e[this.t-r-1]|=(this.s&s)<<i),e.t=this.t-r,e.clamp()}},it.prototype.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},it.prototype.multiplyTo=function(t,e){var r=this.abs(),n=t.abs(),i=r.t;for(e.t=i+n.t;--i>=0;)e[i]=0;for(i=0;i<n.t;++i)e[i+r.t]=r.am(0,n[i],e,i,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&it.ZERO.subTo(e,e)},it.prototype.squareTo=function(t){for(var