draw.io is a JavaScript, client-side editor for general diagramming.
/*
CryptoJS v4.2.0
github.com/brix/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
(c) 2013-2016 by Evan Vosberg. All rights reserved.
MIT License - opensource.org/licenses/MIT
Trimmed rollup: core + enc-base64 + md5 + evpkdf + cipher-core + aes
*/
(function(v,t){"object"===typeof exports?module.exports=exports=t():"function"===typeof define&&define.amd?define([],t):v.CryptoJS=t()})(this,function(){var v=v||function(t,q){if("undefined"!==typeof window&&window.crypto)var p=window.crypto;"undefined"!==typeof self&&self.crypto&&(p=self.crypto);"undefined"!==typeof globalThis&&globalThis.crypto&&(p=globalThis.crypto);!p&&"undefined"!==typeof window&&window.msCrypto&&(p=window.msCrypto);!p&&"undefined"!==typeof global&&global.crypto&&(p=global.crypto);
if(!p&&"function"===typeof require)try{p=require("crypto")}catch(a){}var u=Object.create||function(){function a(){}return function(b){a.prototype=b;b=new a;a.prototype=null;return b}}(),x={},w=x.lib={},A=w.Base=function(){return{extend:function(a){var b=u(this);a&&b.mixIn(a);b.hasOwnProperty("init")&&this.init!==b.init||(b.init=function(){b.$super.init.apply(this,arguments)});b.init.prototype=b;b.$super=this;return b},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},
mixIn:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),B=w.WordArray=A.extend({init:function(a,b){a=this.words=a||[];this.sigBytes=b!=q?b:4*a.length},toString:function(a){return(a||n).stringify(this)},concat:function(a){var b=this.words,e=a.words,d=this.sigBytes;a=a.sigBytes;this.clamp();if(d%4)for(var m=0;m<a;m++)b[d+m>>>2]|=(e[m>>>2]>>>24-m%4*8&255)<<24-(d+m)%4*8;
else for(m=0;m<a;m+=4)b[d+m>>>2]=e[m>>>2];this.sigBytes+=a;return this},clamp:function(){var a=this.words,b=this.sigBytes;a[b>>>2]&=4294967295<<32-b%4*8;a.length=t.ceil(b/4)},clone:function(){var a=A.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var b=[],e=0;e<a;e+=4){var d=b,m=d.push;a:{if(p){if("function"===typeof p.getRandomValues)try{var C=p.getRandomValues(new Uint32Array(1))[0];break a}catch(z){}if("function"===typeof p.randomBytes)try{C=p.randomBytes(4).readInt32LE();
break a}catch(z){}}throw Error("Native crypto module could not be used to get secure random number.");}m.call(d,C)}return new B.init(b,a)}}),f=x.enc={},n=f.Hex={stringify:function(a){var b=a.words;a=a.sigBytes;for(var e=[],d=0;d<a;d++){var m=b[d>>>2]>>>24-d%4*8&255;e.push((m>>>4).toString(16));e.push((m&15).toString(16))}return e.join("")},parse:function(a){for(var b=a.length,e=[],d=0;d<b;d+=2)e[d>>>3]|=parseInt(a.substr(d,2),16)<<24-d%8*4;return new B.init(e,b/2)}},c=f.Latin1={stringify:function(a){var b=
a.words;a=a.sigBytes;for(var e=[],d=0;d<a;d++)e.push(String.fromCharCode(b[d>>>2]>>>24-d%4*8&255));return e.join("")},parse:function(a){for(var b=a.length,e=[],d=0;d<b;d++)e[d>>>2]|=(a.charCodeAt(d)&255)<<24-d%4*8;return new B.init(e,b)}},r=f.Utf8={stringify:function(a){try{return decodeURIComponent(escape(c.stringify(a)))}catch(b){throw Error("Malformed UTF-8 data");}},parse:function(a){return c.parse(unescape(encodeURIComponent(a)))}},y=w.BufferedBlockAlgorithm=A.extend({reset:function(){this._data=
new B.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=r.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var b,e=this._data,d=e.words,m=e.sigBytes,C=this.blockSize,z=m/(4*C);z=a?t.ceil(z):t.max((z|0)-this._minBufferSize,0);a=z*C;m=t.min(4*a,m);if(a){for(b=0;b<a;b+=C)this._doProcessBlock(d,b);b=d.splice(0,a);e.sigBytes-=m}return new B.init(b,m)},clone:function(){var a=A.clone.call(this);a._data=this._data.clone();return a},_minBufferSize:0});w.Hasher=
y.extend({cfg:A.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){y.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,e){return(new a.init(e)).finalize(b)}},_createHmacHelper:function(a){return function(b,e){return(new k.HMAC.init(a,e)).finalize(b)}}});var k=x.algo={};return x}(Math);return v});
(function(v,t){"object"===typeof exports?module.exports=exports=t(require("./core")):"function"===typeof define&&define.amd?define(["./core"],t):t(v.CryptoJS)})(this,function(v){(function(){var t=v.lib.WordArray;v.enc.Base64={stringify:function(q){var p=q.words,u=q.sigBytes,x=this._map;q.clamp();q=[];for(var w=0;w<u;w+=3)for(var A=(p[w>>>2]>>>24-w%4*8&255)<<16|(p[w+1>>>2]>>>24-(w+1)%4*8&255)<<8|p[w+2>>>2]>>>24-(w+2)%4*8&255,B=0;4>B&&w+.75*B<u;B++)q.push(x.charAt(A>>>6*(3-B)&63));if(p=x.charAt(64))for(;q.length%
4;)q.push(p);return q.join("")},parse:function(q){var p=q.length,u=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var w=0;w<u.length;w++)x[u.charCodeAt(w)]=w}if(u=u.charAt(64))u=q.indexOf(u),-1!==u&&(p=u);u=[];for(var A=w=0;A<p;A++)if(A%4){var B=x[q.charCodeAt(A-1)]<<A%4*2,f=x[q.charCodeAt(A)]>>>6-A%4*2;u[w>>>2]|=(B|f)<<24-w%4*8;w++}return t.create(u,w)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();return v.enc.Base64});
(function(v,t){"object"===typeof exports?module.exports=exports=t(require("./core")):"function"===typeof define&&define.amd?define(["./core"],t):t(v.CryptoJS)})(this,function(v){(function(t){function q(n,c,r,y,k,a,b){n=n+(c&r|~c&y)+k+b;return(n<<a|n>>>32-a)+c}function p(n,c,r,y,k,a,b){n=n+(c&y|r&~y)+k+b;return(n<<a|n>>>32-a)+c}function u(n,c,r,y,k,a,b){n=n+(c^r^y)+k+b;return(n<<a|n>>>32-a)+c}function x(n,c,r,y,k,a,b){n=n+(r^(c|~y))+k+b;return(n<<a|n>>>32-a)+c}var w=v.lib,A=w.WordArray,B=w.Hasher;
w=v.algo;var f=[];(function(){for(var n=0;64>n;n++)f[n]=4294967296*t.abs(t.sin(n+1))|0})();w=w.MD5=B.extend({_doReset:function(){this._hash=new A.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(n,c){for(var r=0;16>r;r++){var y=c+r,k=n[y];n[y]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}r=this._hash.words;y=n[c+0];k=n[c+1];var a=n[c+2],b=n[c+3],e=n[c+4],d=n[c+5],m=n[c+6],C=n[c+7],z=n[c+8],D=n[c+9],F=n[c+10],G=n[c+11],H=n[c+12],E=n[c+13],I=n[c+14];n=n[c+15];c=r[0];var l=
r[1],g=r[2],h=r[3];c=q(c,l,g,h,y,7,f[0]);h=q(h,c,l,g,k,12,f[1]);g=q(g,h,c,l,a,17,f[2]);l=q(l,g,h,c,b,22,f[3]);c=q(c,l,g,h,e,7,f[4]);h=q(h,c,l,g,d,12,f[5]);g=q(g,h,c,l,m,17,f[6]);l=q(l,g,h,c,C,22,f[7]);c=q(c,l,g,h,z,7,f[8]);h=q(h,c,l,g,D,12,f[9]);g=q(g,h,c,l,F,17,f[10]);l=q(l,g,h,c,G,22,f[11]);c=q(c,l,g,h,H,7,f[12]);h=q(h,c,l,g,E,12,f[13]);g=q(g,h,c,l,I,17,f[14]);l=q(l,g,h,c,n,22,f[15]);c=p(c,l,g,h,k,5,f[16]);h=p(h,c,l,g,m,9,f[17]);g=p(g,h,c,l,G,14,f[18]);l=p(l,g,h,c,y,20,f[19]);c=p(c,l,g,h,d,5,f[20]);
h=p(h,c,l,g,F,9,f[21]);g=p(g,h,c,l,n,14,f[22]);l=p(l,g,h,c,e,20,f[23]);c=p(c,l,g,h,D,5,f[24]);h=p(h,c,l,g,I,9,f[25]);g=p(g,h,c,l,b,14,f[26]);l=p(l,g,h,c,z,20,f[27]);c=p(c,l,g,h,E,5,f[28]);h=p(h,c,l,g,a,9,f[29]);g=p(g,h,c,l,C,14,f[30]);l=p(l,g,h,c,H,20,f[31]);c=u(c,l,g,h,d,4,f[32]);h=u(h,c,l,g,z,11,f[33]);g=u(g,h,c,l,G,16,f[34]);l=u(l,g,h,c,I,23,f[35]);c=u(c,l,g,h,k,4,f[36]);h=u(h,c,l,g,e,11,f[37]);g=u(g,h,c,l,C,16,f[38]);l=u(l,g,h,c,F,23,f[39]);c=u(c,l,g,h,E,4,f[40]);h=u(h,c,l,g,y,11,f[41]);g=u(g,
h,c,l,b,16,f[42]);l=u(l,g,h,c,m,23,f[43]);c=u(c,l,g,h,D,4,f[44]);h=u(h,c,l,g,H,11,f[45]);g=u(g,h,c,l,n,16,f[46]);l=u(l,g,h,c,a,23,f[47]);c=x(c,l,g,h,y,6,f[48]);h=x(h,c,l,g,C,10,f[49]);g=x(g,h,c,l,I,15,f[50]);l=x(l,g,h,c,d,21,f[51]);c=x(c,l,g,h,H,6,f[52]);h=x(h,c,l,g,b,10,f[53]);g=x(g,h,c,l,F,15,f[54]);l=x(l,g,h,c,k,21,f[55]);c=x(c,l,g,h,z,6,f[56]);h=x(h,c,l,g,n,10,f[57]);g=x(g,h,c,l,m,15,f[58]);l=x(l,g,h,c,E,21,f[59]);c=x(c,l,g,h,e,6,f[60]);h=x(h,c,l,g,G,10,f[61]);g=x(g,h,c,l,a,15,f[62]);l=x(l,g,
h,c,D,21,f[63]);r[0]=r[0]+c|0;r[1]=r[1]+l|0;r[2]=r[2]+g|0;r[3]=r[3]+h|0},_doFinalize:function(){var n=this._data,c=n.words,r=8*this._nDataBytes,y=8*n.sigBytes;c[y>>>5]|=128<<24-y%32;var k=t.floor(r/4294967296);c[(y+64>>>9<<4)+15]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;c[(y+64>>>9<<4)+14]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360;n.sigBytes=4*(c.length+1);this._process();n=this._hash;c=n.words;for(r=0;4>r;r++)y=c[r],c[r]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360;return n},clone:function(){var n=
B.clone.call(this);n._hash=this._hash.clone();return n}});v.MD5=B._createHelper(w);v.HmacMD5=B._createHmacHelper(w)})(Math);return v.MD5});
(function(v,t,q){"object"===typeof exports?module.exports=exports=t(require("./core"),require("./sha1"),require("./hmac")):"function"===typeof define&&define.amd?define(["./core","./sha1","./hmac"],t):t(v.CryptoJS)})(this,function(v){(function(){var t=v.lib,q=t.Base,p=t.WordArray;t=v.algo;var u=t.EvpKDF=q.extend({cfg:q.extend({keySize:4,hasher:t.MD5,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,w){var A=this.cfg,B=A.hasher.create(),f=p.create(),n=f.words,c=A.keySize;
for(A=A.iterations;n.length<c;){r&&B.update(r);var r=B.update(x).finalize(w);B.reset();for(var y=1;y<A;y++)r=B.finalize(r),B.reset();f.concat(r)}f.sigBytes=4*c;return f}});v.EvpKDF=function(x,w,A){return u.create(A).compute(x,w)}})();return v.EvpKDF});
(function(v,t,q){"object"===typeof exports?module.exports=exports=t(require("./core"),require("./evpkdf")):"function"===typeof define&&define.amd?define(["./core","./evpkdf"],t):t(v.CryptoJS)})(this,function(v){v.lib.Cipher||function(t){var q=v.lib,p=q.Base,u=q.WordArray,x=q.BufferedBlockAlgorithm,w=v.enc.Base64,A=v.algo.EvpKDF,B=q.Cipher=x.extend({cfg:p.extend(),createEncryptor:function(a,b){return this.create(this._ENC_XFORM_MODE,a,b)},createDecryptor:function(a,b){return this.create(this._DEC_XFORM_MODE,
a,b)},init:function(a,b,e){this.cfg=this.cfg.extend(e);this._xformMode=a;this._key=b;this.reset()},reset:function(){x.reset.call(this);this._doReset()},process:function(a){this._append(a);return this._process()},finalize:function(a){a&&this._append(a);return this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){return function(a){return{encrypt:function(b,e,d){return("string"==typeof e?k:y).encrypt(a,b,e,d)},decrypt:function(b,e,d){return("string"==typeof e?
k:y).decrypt(a,b,e,d)}}}}()});q.StreamCipher=B.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=v.mode={},n=q.BlockCipherMode=p.extend({createEncryptor:function(a,b){return this.Encryptor.create(a,b)},createDecryptor:function(a,b){return this.Decryptor.create(a,b)},init:function(a,b){this._cipher=a;this._iv=b}});f=f.CBC=function(){function a(e,d,m){var C;(C=this._iv)?this._iv=t:C=this._prevBlock;for(var z=0;z<m;z++)e[d+z]^=C[z]}var b=n.extend();b.Encryptor=b.extend({processBlock:function(e,
d){var m=this._cipher,C=m.blockSize;a.call(this,e,d,C);m.encryptBlock(e,d);this._prevBlock=e.slice(d,d+C)}});b.Decryptor=b.extend({processBlock:function(e,d){var m=this._cipher,C=m.blockSize,z=e.slice(d,d+C);m.decryptBlock(e,d);a.call(this,e,d,C);this._prevBlock=z}});return b}();var c=(v.pad={}).Pkcs7={pad:function(a,b){b*=4;b-=a.sigBytes%b;for(var e=b<<24|b<<16|b<<8|b,d=[],m=0;m<b;m+=4)d.push(e);b=u.create(d,b);a.concat(b)},unpad:function(a){a.sigBytes-=a.words[a.sigBytes-1>>>2]&255}};q.BlockCipher=
B.extend({cfg:B.cfg.extend({mode:f,padding:c}),reset:function(){B.reset.call(this);var a=this.cfg;var b=a.iv,e=a.mode;this._xformMode==this._ENC_XFORM_MODE?a=e.createEncryptor:(a=e.createDecryptor,this._minBufferSize=1);this._mode&&this._mode.__creator==a?this._mode.init(this,b&&b.words):(this._mode=a.call(e,this,b&&b.words),this._mode.__creator=a)},_doProcessBlock:function(a,b){this._mode.processBlock(a,b)},_doFinalize:function(){var a=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){a.pad(this._data,
this.blockSize);var b=this._process(!0)}else b=this._process(!0),a.unpad(b);return b},blockSize:4});var r=q.CipherParams=p.extend({init:function(a){this.mixIn(a)},toString:function(a){return(a||this.formatter).stringify(this)}});f=(v.format={}).OpenSSL={stringify:function(a){var b=a.ciphertext;a=a.salt;return(a?u.create([1398893684,1701076831]).concat(a).concat(b):b).toString(w)},parse:function(a){a=w.parse(a);var b=a.words;if(1398893684==b[0]&&1701076831==b[1]){var e=u.create(b.slice(2,4));b.splice(0,
4);a.sigBytes-=16}return r.create({ciphertext:a,salt:e})}};var y=q.SerializableCipher=p.extend({cfg:p.extend({format:f}),encrypt:function(a,b,e,d){d=this.cfg.extend(d);var m=a.createEncryptor(e,d);b=m.finalize(b);m=m.cfg;return r.create({ciphertext:b,key:e,iv:m.iv,algorithm:a,mode:m.mode,padding:m.padding,blockSize:a.blockSize,formatter:d.format})},decrypt:function(a,b,e,d){d=this.cfg.extend(d);b=this._parse(b,d.format);return a.createDecryptor(e,d).finalize(b.ciphertext)},_parse:function(a,b){return"string"==
typeof a?b.parse(a,this):a}});p=(v.kdf={}).OpenSSL={execute:function(a,b,e,d,m){d||(d=u.random(8));a=m?A.create({keySize:b+e,hasher:m}).compute(a,d):A.create({keySize:b+e}).compute(a,d);e=u.create(a.words.slice(b),4*e);a.sigBytes=4*b;return r.create({key:a,iv:e,salt:d})}};var k=q.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:p}),encrypt:function(a,b,e,d){d=this.cfg.extend(d);e=d.kdf.execute(e,a.keySize,a.ivSize,d.salt,d.hasher);d.iv=e.iv;a=y.encrypt.call(this,a,b,e.key,d);a.mixIn(e);return a},
decrypt:function(a,b,e,d){d=this.cfg.extend(d);b=this._parse(b,d.format);e=d.kdf.execute(e,a.keySize,a.ivSize,b.salt,d.hasher);d.iv=e.iv;return y.decrypt.call(this,a,b,e.key,d)}})}()});
(function(v,t,q){"object"===typeof exports?module.exports=exports=t(require("./core"),require("./enc-base64"),require("./md5"),require("./evpkdf"),require("./cipher-core")):"function"===typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(v.CryptoJS)})(this,function(v){(function(){var t=v.lib.BlockCipher,q=v.algo,p=[],u=[],x=[],w=[],A=[],B=[],f=[],n=[],c=[],r=[];(function(){for(var k=[],a=0;256>a;a++)k[a]=128>a?a<<1:a<<1^283;var b=0,e=0;for(a=0;256>a;a++){var d=
e^e<<1^e<<2^e<<3^e<<4;d=d>>>8^d&255^99;p[b]=d;u[d]=b;var m=k[b],C=k[m],z=k[C],D=257*k[d]^16843008*d;x[b]=D<<24|D>>>8;w[b]=D<<16|D>>>16;A[b]=D<<8|D>>>24;B[b]=D;D=16843009*z^65537*C^257*m^16843008*b;f[d]=D<<24|D>>>8;n[d]=D<<16|D>>>16;c[d]=D<<8|D>>>24;r[d]=D;b?(b=m^k[k[k[z^m]]],e^=k[k[e]]):b=e=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54];q=q.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){var k=this._keyPriorReset=this._key;for(var a=k.words,b=k.sigBytes/4,e=4*((this._nRounds=
b+6)+1),d=this._keySchedule=[],m=0;m<e;m++)m<b?d[m]=a[m]:(k=d[m-1],m%b?6<b&&4==m%b&&(k=p[k>>>24]<<24|p[k>>>16&255]<<16|p[k>>>8&255]<<8|p[k&255]):(k=k<<8|k>>>24,k=p[k>>>24]<<24|p[k>>>16&255]<<16|p[k>>>8&255]<<8|p[k&255],k^=y[m/b|0]<<24),d[m]=d[m-b]^k);a=this._invKeySchedule=[];for(b=0;b<e;b++)m=e-b,k=b%4?d[m]:d[m-4],a[b]=4>b||4>=m?k:f[p[k>>>24]]^n[p[k>>>16&255]]^c[p[k>>>8&255]]^r[p[k&255]]}},encryptBlock:function(k,a){this._doCryptBlock(k,a,this._keySchedule,x,w,A,B,p)},decryptBlock:function(k,a){var b=
k[a+1];k[a+1]=k[a+3];k[a+3]=b;this._doCryptBlock(k,a,this._invKeySchedule,f,n,c,r,u);b=k[a+1];k[a+1]=k[a+3];k[a+3]=b},_doCryptBlock:function(k,a,b,e,d,m,C,z){for(var D=this._nRounds,F=k[a]^b[0],G=k[a+1]^b[1],H=k[a+2]^b[2],E=k[a+3]^b[3],I=4,l=1;l<D;l++){var g=e[F>>>24]^d[G>>>16&255]^m[H>>>8&255]^C[E&255]^b[I++],h=e[G>>>24]^d[H>>>16&255]^m[E>>>8&255]^C[F&255]^b[I++],J=e[H>>>24]^d[E>>>16&255]^m[F>>>8&255]^C[G&255]^b[I++];E=e[E>>>24]^d[F>>>16&255]^m[G>>>8&255]^C[H&255]^b[I++];F=g;G=h;H=J}g=(z[F>>>24]<<
24|z[G>>>16&255]<<16|z[H>>>8&255]<<8|z[E&255])^b[I++];h=(z[G>>>24]<<24|z[H>>>16&255]<<16|z[E>>>8&255]<<8|z[F&255])^b[I++];J=(z[H>>>24]<<24|z[E>>>16&255]<<16|z[F>>>8&255]<<8|z[G&255])^b[I++];E=(z[E>>>24]<<24|z[F>>>16&255]<<16|z[G>>>8&255]<<8|z[H&255])^b[I++];k[a]=g;k[a+1]=h;k[a+2]=J;k[a+3]=E},keySize:8});v.AES=t._createHelper(q)})();return v.AES});