easy-email-pro-core 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs.js +1 -1
- package/lib/index.es.js +6 -2
- package/package.json +7 -7
package/lib/index.cjs.js
CHANGED
|
@@ -57,7 +57,7 @@ You passed in: '`+this.raw_options[i]+"'");return u},t.prototype._is_valid_selec
|
|
|
57
57
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
58
58
|
* derived from CryptoJS.mode.CTR
|
|
59
59
|
* Jan Hruby jhruby.web@gmail.com
|
|
60
|
-
*/return r.mode.CTRGladman=function(){var i=r.lib.BlockCipherMode.extend();function n(o){if((o>>24&255)===255){var l=o>>16&255,c=o>>8&255,h=o&255;l===255?(l=0,c===255?(c=0,h===255?h=0:++h):++c):++l,o=0,o+=l<<16,o+=c<<8,o+=h}else o+=1<<24;return o}function a(o){return(o[0]=n(o[0]))===0&&(o[1]=n(o[1])),o}var u=i.Encryptor=i.extend({processBlock:function(o,l){var c=this._cipher,h=c.blockSize,g=this._iv,d=this._counter;g&&(d=this._counter=g.slice(0),this._iv=void 0),a(d);var v=d.slice(0);c.encryptBlock(v,0);for(var m=0;m<h;m++)o[l+m]^=v[m]}});return i.Decryptor=u,i}(),r.mode.CTRGladman})}(io)),nr}var ar={},ao={get exports(){return ar},set exports(t){ar=t}},Ln;function so(){return Ln||(Ln=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.mode.OFB=function(){var i=r.lib.BlockCipherMode.extend(),n=i.Encryptor=i.extend({processBlock:function(a,u){var o=this._cipher,l=o.blockSize,c=this._iv,h=this._keystream;c&&(h=this._keystream=c.slice(0),this._iv=void 0),o.encryptBlock(h,0);for(var g=0;g<l;g++)a[u+g]^=h[g]}});return i.Decryptor=n,i}(),r.mode.OFB})}(ao)),ar}var sr={},uo={get exports(){return sr},set exports(t){sr=t}},In;function oo(){return In||(In=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.mode.ECB=function(){var i=r.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(n,a){this._cipher.encryptBlock(n,a)}}),i.Decryptor=i.extend({processBlock:function(n,a){this._cipher.decryptBlock(n,a)}}),i}(),r.mode.ECB})}(uo)),sr}var ur={},lo={get exports(){return ur},set exports(t){ur=t}},Pn;function co(){return Pn||(Pn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.pad.AnsiX923={pad:function(i,n){var a=i.sigBytes,u=n*4,o=u-a%u,l=a+o-1;i.clamp(),i.words[l>>>2]|=o<<24-l%4*8,i.sigBytes+=o},unpad:function(i){var n=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=n}},r.pad.Ansix923})}(lo)),ur}var or={},po={get exports(){return or},set exports(t){or=t}},Hn;function ho(){return Hn||(Hn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.pad.Iso10126={pad:function(i,n){var a=n*4,u=a-i.sigBytes%a;i.concat(r.lib.WordArray.random(u-1)).concat(r.lib.WordArray.create([u<<24],1))},unpad:function(i){var n=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=n}},r.pad.Iso10126})}(po)),or}var lr={},fo={get exports(){return lr},set exports(t){lr=t}},Mn;function _o(){return Mn||(Mn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.pad.Iso97971={pad:function(i,n){i.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(i,n)},unpad:function(i){r.pad.ZeroPadding.unpad(i),i.sigBytes--}},r.pad.Iso97971})}(fo)),lr}var cr={},go={get exports(){return cr},set exports(t){cr=t}},Un;function xo(){return Un||(Un=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.pad.ZeroPadding={pad:function(i,n){var a=n*4;i.clamp(),i.sigBytes+=a-(i.sigBytes%a||a)},unpad:function(i){for(var n=i.words,a=i.sigBytes-1,a=i.sigBytes-1;a>=0;a--)if(n[a>>>2]>>>24-a%4*8&255){i.sigBytes=a+1;break}}},r.pad.ZeroPadding})}(go)),cr}var pr={},mo={get exports(){return pr},set exports(t){pr=t}},zn;function bo(){return zn||(zn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(mo)),pr}var hr={},vo={get exports(){return hr},set exports(t){hr=t}},$n;function Do(){return $n||($n=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return function(i){var n=r,a=n.lib,u=a.CipherParams,o=n.enc,l=o.Hex,c=n.format;c.Hex={stringify:function(h){return h.ciphertext.toString(l)},parse:function(h){var g=l.parse(h);return u.create({ciphertext:g})}}}(),r.format.Hex})}(vo)),hr}var fr={},Ao={get exports(){return fr},set exports(t){fr=t}},Vn;function yo(){return Vn||(Vn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),dt(),nt(),ve())})(J,function(r){return function(){var i=r,n=i.lib,a=n.BlockCipher,u=i.algo,o=[],l=[],c=[],h=[],g=[],d=[],v=[],m=[],E=[],_=[];(function(){for(var y=[],x=0;x<256;x++)x<128?y[x]=x<<1:y[x]=x<<1^283;for(var k=0,b=0,x=0;x<256;x++){var w=b^b<<1^b<<2^b<<3^b<<4;w=w>>>8^w&255^99,o[k]=w,l[w]=k;var A=y[k],T=y[A],s=y[T],D=y[w]*257^w*16843008;c[k]=D<<24|D>>>8,h[k]=D<<16|D>>>16,g[k]=D<<8|D>>>24,d[k]=D;var D=s*16843009^T*65537^A*257^k*16843008;v[w]=D<<24|D>>>8,m[w]=D<<16|D>>>16,E[w]=D<<8|D>>>24,_[w]=D,k?(k=A^y[y[y[s^A]]],b^=y[y[b]]):k=b=1}})();var p=[0,1,2,4,8,16,32,64,128,27,54],f=u.AES=a.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,k=x.words,b=x.sigBytes/4,w=this._nRounds=b+6,A=(w+1)*4,T=this._keySchedule=[],s=0;s<A;s++)s<b?T[s]=k[s]:(y=T[s-1],s%b?b>6&&s%b==4&&(y=o[y>>>24]<<24|o[y>>>16&255]<<16|o[y>>>8&255]<<8|o[y&255]):(y=y<<8|y>>>24,y=o[y>>>24]<<24|o[y>>>16&255]<<16|o[y>>>8&255]<<8|o[y&255],y^=p[s/b|0]<<24),T[s]=T[s-b]^y);for(var D=this._invKeySchedule=[],C=0;C<A;C++){var s=A-C;if(C%4)var y=T[s];else var y=T[s-4];C<4||s<=4?D[C]=y:D[C]=v[o[y>>>24]]^m[o[y>>>16&255]]^E[o[y>>>8&255]]^_[o[y&255]]}}},encryptBlock:function(y,x){this._doCryptBlock(y,x,this._keySchedule,c,h,g,d,o)},decryptBlock:function(y,x){var k=y[x+1];y[x+1]=y[x+3],y[x+3]=k,this._doCryptBlock(y,x,this._invKeySchedule,v,m,E,_,l);var k=y[x+1];y[x+1]=y[x+3],y[x+3]=k},_doCryptBlock:function(y,x,k,b,w,A,T,s){for(var D=this._nRounds,C=y[x]^k[0],B=y[x+1]^k[1],S=y[x+2]^k[2],O=y[x+3]^k[3],H=4,P=1;P<D;P++){var V=b[C>>>24]^w[B>>>16&255]^A[S>>>8&255]^T[O&255]^k[H++],q=b[B>>>24]^w[S>>>16&255]^A[O>>>8&255]^T[C&255]^k[H++],U=b[S>>>24]^w[O>>>16&255]^A[C>>>8&255]^T[B&255]^k[H++],F=b[O>>>24]^w[C>>>16&255]^A[B>>>8&255]^T[S&255]^k[H++];C=V,B=q,S=U,O=F}var V=(s[C>>>24]<<24|s[B>>>16&255]<<16|s[S>>>8&255]<<8|s[O&255])^k[H++],q=(s[B>>>24]<<24|s[S>>>16&255]<<16|s[O>>>8&255]<<8|s[C&255])^k[H++],U=(s[S>>>24]<<24|s[O>>>16&255]<<16|s[C>>>8&255]<<8|s[B&255])^k[H++],F=(s[O>>>24]<<24|s[C>>>16&255]<<16|s[B>>>8&255]<<8|s[S&255])^k[H++];y[x]=V,y[x+1]=q,y[x+2]=U,y[x+3]=F},keySize:256/32});i.AES=a._createHelper(f)}(),r.AES})}(Ao)),fr}var dr={},Eo={get exports(){return dr},set exports(t){dr=t}},jn;function wo(){return jn||(jn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),dt(),nt(),ve())})(J,function(r){return function(){var i=r,n=i.lib,a=n.WordArray,u=n.BlockCipher,o=i.algo,l=[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],c=[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],g=[{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}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],v=o.DES=u.extend({_doReset:function(){for(var p=this._key,f=p.words,y=[],x=0;x<56;x++){var k=l[x]-1;y[x]=f[k>>>5]>>>31-k%32&1}for(var b=this._subKeys=[],w=0;w<16;w++){for(var A=b[w]=[],T=h[w],x=0;x<24;x++)A[x/6|0]|=y[(c[x]-1+T)%28]<<31-x%6,A[4+(x/6|0)]|=y[28+(c[x+24]-1+T)%28]<<31-x%6;A[0]=A[0]<<1|A[0]>>>31;for(var x=1;x<7;x++)A[x]=A[x]>>>(x-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var s=this._invSubKeys=[],x=0;x<16;x++)s[x]=b[15-x]},encryptBlock:function(p,f){this._doCryptBlock(p,f,this._subKeys)},decryptBlock:function(p,f){this._doCryptBlock(p,f,this._invSubKeys)},_doCryptBlock:function(p,f,y){this._lBlock=p[f],this._rBlock=p[f+1],m.call(this,4,252645135),m.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var k=y[x],b=this._lBlock,w=this._rBlock,A=0,T=0;T<8;T++)A|=g[T][((w^k[T])&d[T])>>>0];this._lBlock=w,this._rBlock=b^A}var s=this._lBlock;this._lBlock=this._rBlock,this._rBlock=s,m.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),p[f]=this._lBlock,p[f+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(p,f){var y=(this._lBlock>>>p^this._rBlock)&f;this._rBlock^=y,this._lBlock^=y<<p}function E(p,f){var y=(this._rBlock>>>p^this._lBlock)&f;this._lBlock^=y,this._rBlock^=y<<p}i.DES=u._createHelper(v);var _=o.TripleDES=u.extend({_doReset:function(){var p=this._key,f=p.words;if(f.length!==2&&f.length!==4&&f.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=f.slice(0,2),x=f.length<4?f.slice(0,2):f.slice(2,4),k=f.length<6?f.slice(0,2):f.slice(4,6);this._des1=v.createEncryptor(a.create(y)),this._des2=v.createEncryptor(a.create(x)),this._des3=v.createEncryptor(a.create(k))},encryptBlock:function(p,f){this._des1.encryptBlock(p,f),this._des2.decryptBlock(p,f),this._des3.encryptBlock(p,f)},decryptBlock:function(p,f){this._des3.decryptBlock(p,f),this._des2.encryptBlock(p,f),this._des1.decryptBlock(p,f)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=u._createHelper(_)}(),r.TripleDES})}(Eo)),dr}var _r={},Co={get exports(){return _r},set exports(t){_r=t}},Gn;function Bo(){return Gn||(Gn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),dt(),nt(),ve())})(J,function(r){return function(){var i=r,n=i.lib,a=n.StreamCipher,u=i.algo,o=u.RC4=a.extend({_doReset:function(){for(var h=this._key,g=h.words,d=h.sigBytes,v=this._S=[],m=0;m<256;m++)v[m]=m;for(var m=0,E=0;m<256;m++){var _=m%d,p=g[_>>>2]>>>24-_%4*8&255;E=(E+v[m]+p)%256;var f=v[m];v[m]=v[E],v[E]=f}this._i=this._j=0},_doProcessBlock:function(h,g){h[g]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var h=this._S,g=this._i,d=this._j,v=0,m=0;m<4;m++){g=(g+1)%256,d=(d+h[g])%256;var E=h[g];h[g]=h[d],h[d]=E,v|=h[(h[g]+h[d])%256]<<24-m*8}return this._i=g,this._j=d,v}i.RC4=a._createHelper(o);var c=u.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)l.call(this)}});i.RC4Drop=a._createHelper(c)}(),r.RC4})}(Co)),_r}var gr={},To={get exports(){return gr},set exports(t){gr=t}},Wn;function ko(){return Wn||(Wn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),dt(),nt(),ve())})(J,function(r){return function(){var i=r,n=i.lib,a=n.StreamCipher,u=i.algo,o=[],l=[],c=[],h=u.Rabbit=a.extend({_doReset:function(){for(var d=this._key.words,v=this.cfg.iv,m=0;m<4;m++)d[m]=(d[m]<<8|d[m]>>>24)&16711935|(d[m]<<24|d[m]>>>8)&4278255360;var E=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],_=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var m=0;m<4;m++)g.call(this);for(var m=0;m<8;m++)_[m]^=E[m+4&7];if(v){var p=v.words,f=p[0],y=p[1],x=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,k=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b=x>>>16|k&4294901760,w=k<<16|x&65535;_[0]^=x,_[1]^=b,_[2]^=k,_[3]^=w,_[4]^=x,_[5]^=b,_[6]^=k,_[7]^=w;for(var m=0;m<4;m++)g.call(this)}},_doProcessBlock:function(d,v){var m=this._X;g.call(this),o[0]=m[0]^m[5]>>>16^m[3]<<16,o[1]=m[2]^m[7]>>>16^m[5]<<16,o[2]=m[4]^m[1]>>>16^m[7]<<16,o[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)o[E]=(o[E]<<8|o[E]>>>24)&16711935|(o[E]<<24|o[E]>>>8)&4278255360,d[v+E]^=o[E]},blockSize:128/32,ivSize:64/32});function g(){for(var d=this._X,v=this._C,m=0;m<8;m++)l[m]=v[m];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<l[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<l[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<l[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<l[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<l[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<l[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<l[6]>>>0?1:0)|0,this._b=v[7]>>>0<l[7]>>>0?1:0;for(var m=0;m<8;m++){var E=d[m]+v[m],_=E&65535,p=E>>>16,f=((_*_>>>17)+_*p>>>15)+p*p,y=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=f^y}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}i.Rabbit=a._createHelper(h)}(),r.Rabbit})}(To)),gr}var xr={},So={get exports(){return xr},set exports(t){xr=t}},Kn;function Ro(){return Kn||(Kn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),dt(),nt(),ve())})(J,function(r){return function(){var i=r,n=i.lib,a=n.StreamCipher,u=i.algo,o=[],l=[],c=[],h=u.RabbitLegacy=a.extend({_doReset:function(){var d=this._key.words,v=this.cfg.iv,m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],E=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var _=0;_<4;_++)g.call(this);for(var _=0;_<8;_++)E[_]^=m[_+4&7];if(v){var p=v.words,f=p[0],y=p[1],x=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,k=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b=x>>>16|k&4294901760,w=k<<16|x&65535;E[0]^=x,E[1]^=b,E[2]^=k,E[3]^=w,E[4]^=x,E[5]^=b,E[6]^=k,E[7]^=w;for(var _=0;_<4;_++)g.call(this)}},_doProcessBlock:function(d,v){var m=this._X;g.call(this),o[0]=m[0]^m[5]>>>16^m[3]<<16,o[1]=m[2]^m[7]>>>16^m[5]<<16,o[2]=m[4]^m[1]>>>16^m[7]<<16,o[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)o[E]=(o[E]<<8|o[E]>>>24)&16711935|(o[E]<<24|o[E]>>>8)&4278255360,d[v+E]^=o[E]},blockSize:128/32,ivSize:64/32});function g(){for(var d=this._X,v=this._C,m=0;m<8;m++)l[m]=v[m];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<l[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<l[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<l[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<l[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<l[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<l[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<l[6]>>>0?1:0)|0,this._b=v[7]>>>0<l[7]>>>0?1:0;for(var m=0;m<8;m++){var E=d[m]+v[m],_=E&65535,p=E>>>16,f=((_*_>>>17)+_*p>>>15)+p*p,y=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=f^y}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}i.RabbitLegacy=a._createHelper(h)}(),r.RabbitLegacy})}(So)),xr}(function(t,e){(function(r,i,n){t.exports=i(ue(),yr(),Su(),Fu(),ft(),qu(),dt(),oi(),Ta(),Mu(),ka(),$u(),ju(),Wu(),li(),Yu(),nt(),ve(),eo(),ro(),no(),so(),oo(),co(),ho(),_o(),xo(),bo(),Do(),yo(),wo(),Bo(),ko(),Ro())})(J,function(r){return r})})(Au);const Xn=ei;function Fo(t,e,r){const i=new Date;i.setTime(i.getTime()+r*1e3);const n="expires="+i.toUTCString();document.cookie=t+"="+e+";"+n}function Oo(t){let e="";return document.cookie.split(";").forEach(r=>{const i=r.split("=")[0];i.trim()===t&&(e=r.replace(`${i}=`,""))}),e}let ct="PENDING",Yn="";const No=(t,e)=>{const i=Xn.AES.decrypt(e,"easy_email_pro_"+t).toString(Xn.enc.Utf8);return JSON.parse(i)},Qn={getToken(){if(typeof document!="undefined")return Oo("e_e_p")},setToken(t){if(typeof document!="undefined")return Fo("e_e_p",t,3600)}},Ci=class{static auth(e){return Ui(this,null,function*(){if(ct!=="PENDING")return;let r=Qn.getToken();r&&No(e,r).expiredAt>+new Date/1e3&&(ct="SUCCESS");try{const{data:i}=yield Ys(`https://api-easy-email-pro.vercel.app/api/public/token?client_id=${e}`,{method:"GET"});Qn.setToken(i.access_token),ct="SUCCESS"}catch(i){throw console.log("error",i),ct="ERROR",Yn=String(i),i}})}static toMJML(e){if(ct==="PENDING")throw new Error("Please call EditorCore.auth first");if(ct==="ERROR")throw new Error(Yn);const{element:r,pageElement:i,beautify:n,universalElements:a,mode:u,displayMode:o="desktop-mobile",idx:l,mergetagsData:c,attributesVariables:h}=e,g=oe.getBlockByType(r.type);if(!g)throw new Error(`Block ${r.type} not found`);if(!i&&g.category!==z.PAGE)throw new Error("Page element is required if element is not a page");const d=a?Ci.transformUniversalElements({universalElements:a.elements,content:j.cloneDeep(r)}):j.cloneDeep(r),v=new vu({mode:u}),m={content:i||r};let E=l;g.category===z.PAGE&&(E=re.getPageIdx());let _=rt.unescape(zi.renderToStaticMarkup(R.createElement(Je,{universalElements:a,mode:e.mode,context:m,displayMode:o,keepEmptyAttributes:!!e.keepEmptyAttributes,mergetagsData:c,attributesVariables:h},R.createElement(bu,{context:v},R.createElement(le,{idx:E,node:d})))));const p=v.getHeadContent();return _=_.replace(/\<!-- GLOBAL_EXTRACT_HEADER --\>/,p),iu(e)||(_=_.replace(/\<mj-html-attributes\>([\w\W]*?)\<\/mj-html-attributes\>/,"")),n?Jr.html(_,{indent_size:2}):_}static elementToMjml(e,r){return rt.unescape(zi.renderToStaticMarkup(R.createElement(Je,{universalElements:r.universalElements,mode:r.mode,context:{content:r.pageElement},displayMode:r.displayMode||"desktop-mobile",keepEmptyAttributes:!!r.keepEmptyAttributes,mergetagsData:r.mergetagsData,attributesVariables:r.attributesVariables},R.createElement(le,{node:j.cloneDeep(e)}))))}static mjmlToBlockElement(e){const i=new DOMParser().parseFromString(e,"text/html"),n=a=>{if(a.nodeType===8)return oe.getBlockByType(Y.RAW).create({data:{content:a.textContent||""}});if(a.nodeType===3)return{text:a.textContent||""};if(a.nodeType!==1)throw new Error("Invalid");const u=a;let o={},l=u.tagName.toLocaleLowerCase().replace("mj-","");const c=u.getAttribute("style"),h=c==null?void 0:c.split(";").map(m=>{const E=m.split(":");return{[E[0]]:E[1]}}).reduce((m,E)=>M(M({},m),E),{});let g=u.getAttributeNames().filter(m=>!m.startsWith("element-")).reduce((m,E)=>G(M({},m),{[E]:u.getAttribute(E)||""}),{});u.getAttribute("element-type")&&(l=u.getAttribute("element-type")),u.getAttribute("element-data")&&(o=JSON.parse(decodeURIComponent(u.getAttribute("element-data")))),u.getAttribute("element-attributes")&&(g=JSON.parse(decodeURIComponent(u.getAttribute("element-attributes")))||{});const d=oe.getBlockByType(l);if(!d){const m=M({text:u.textContent||""},h),E=_=>{const p=_.tagName.toLowerCase();p==="strong"?m.bold=!0:p==="em"?m.italic=!0:p==="u"?m.underline=!0:p==="del"?m.strikethrough=!0:p==="a"&&(m.link={href:u.getAttribute("href")||"",blank:u.getAttribute("target")==="_blank"})};return[...u.children].forEach(E),m}const v=d.void?[]:u.childNodes.length>0?[...u.childNodes].map(n):[];return{type:l,data:o,attributes:g,children:v}};return n(i.body.firstChild)}static isPageDataVariable(e){return/\$var\(([\s\S]+)\)/g.test(e)}};let He=Ci;ne(He,"version","0.14.0"),ne(He,"getPageDataVariables",(e,r)=>{var i;return((i=e.data.variables)==null?void 0:i.reduce((n,a)=>G(M({},n),{[a.name]:a.value}),M({},r)))||M({},r)}),ne(He,"renderWithPageVariables",(e,r)=>{if(!r)return e;const i=j.cloneDeep(e);if(typeof i=="string")return i.replace(/\$var\(([\s\S]+)\)/g,(a,u)=>j.get(r,u,""));const n=a=>{j.forOwn(a,(u,o)=>{typeof u=="object"?o!=="children"&&n(u):typeof u=="string"&&(a[o]=u.replace(/\$var\(([\s\S]+)\)/g,(l,c)=>j.get(r,c,"")))})};return n(i),i}),ne(He,"getUniversalElements",nu),ne(He,"transformUniversalElements",au);const Sa=R.createContext({}),ci=()=>R.useContext(Sa),Je=t=>{const e=R.useMemo(()=>{const r=He.getPageDataVariables(t.context.content,t.attributesVariables||{});return G(M({},t),{pageVariables:r})},[t]);return R.createElement(Sa.Provider,{value:e},t.children)};var Ra=(t=>(t.RESPONSIVE="RESPONSIVE",t.TEMPLATE_ENGINE="TEMPLATE_ENGINE",t))(Ra||{});class Er{constructor(){ne(this,"enabledResponsive",!0)}}ne(Er,"type","RESPONSIVE");class wr{}ne(wr,"type","TEMPLATE_ENGINE");class Fa{}const Pe=class{static registerPlugins(e){e.forEach(r=>{Pe.registerPlugin(r)})}static registerPlugin(e){const r=new e;r instanceof Er?(Pe.enabledResponsive=r.enabledResponsive,Pe.generateResponsive=r.generateResponsive):r instanceof wr?(Pe.generateIterationTemplate=r.generateIterationTemplate,Pe.generateConditionTemplate=r.generateConditionTemplate,Pe.generateVariable=r.generateVariable,Pe.isVariable=r.isVariable,Pe.renderWithData=r.renderWithData):r instanceof Fa&&r.generateElement()}};let me=Pe;ne(me,"enabledResponsive",!1),ne(me,"generateResponsive",e=>{const r=oe.getBlockByType(e.node.type),{mode:i,children:n,context:a,idx:u,node:o,keepEmptyAttributes:l,mergetagsData:c}=e;return r.render(G(M({},e),{mode:i,children:n,context:a,idx:u,node:o,keepEmptyAttributes:l,mergetagsData:c}))}),ne(me,"generateIterationTemplate",(e,r)=>r),ne(me,"isVariable",e=>!1),ne(me,"generateConditionTemplate",(e,r)=>r),ne(me,"generateVariable",e=>e),ne(me,"renderWithData",(e,r)=>e);const le=t=>{var y,x,k,b,w;const{children:e,node:r,idx:i}=t,{mode:n,context:a,displayMode:u,keepEmptyAttributes:o,mergetagsData:l,pageVariables:c}=ci(),h=oe.getBlockByType(r.type);if(!h)throw new Error(`${r.type} block is not registered`);let g=G(M({},r),{attributes:M({},r.attributes),mobileAttributes:M({},r.mobileAttributes)});const d=j.get(g,"attributes.css-class")||"";n==="production"&&j.set(g,"attributes.css-class",d.replace(ii,""));const v=(y=g.attributes["mj-class"])==null?void 0:y.trim();if(v&&a.content.data.classAttributes){const A={},T=v.split(" ").map(s=>s.trim()).filter(Boolean);Object.values(T).forEach(s=>{j.get(a.content.data.classAttributes,s)&&Object.assign(A,j.get(a.content.data.classAttributes,s))}),g.attributes=W(A,g.attributes)}const m=(x=a.content.data.blockAttributes)==null?void 0:x[g.type];m&&(g.attributes=W(m,g.attributes));const E=(k=a.content.data.categoryAttributes)==null?void 0:k[h.category];a.content.data.globalAttributes&&(g.attributes=W(a.content.data.globalAttributes,g.attributes)),E&&(g.attributes=W(E,g.attributes));const _=oe.getBlockByType(g.type).defaultData.attributes;if(_&&(g.attributes=W(_,g.attributes)),re.isSectionElement(r)||re.isWrapperElement(r)){const A=a.content.attributes["content-background-color"];A&&(g.attributes=W({"background-color":A},g.attributes))}g=He.renderWithPageVariables(g,c);let f=me.generateResponsive({mode:n,children:e,context:a,idx:i,node:g,keepEmptyAttributes:o,mergetagsData:l,displayMode:u});if(n==="production"){const A=(b=r.logic)==null?void 0:b.condition,T=(w=r.logic)==null?void 0:w.iteration;T&&T.enabled&&(f=me.generateIterationTemplate(T,f)),A&&A.enabled&&(f=me.generateConditionTemplate(A,f))}return R.createElement(R.Fragment,null,f)},ze=({node:t})=>{let e=t.text;const r={};return e?(t.bold&&(e=R.createElement("strong",null,e)),t.italic&&(e=R.createElement("em",null,e)),t.underline&&(e=R.createElement("u",null,e)),t.strikethrough&&(e=R.createElement("del",null,e)),t.link&&(e=R.createElement("a",{href:t.link.href,target:t.link.blank?"_blank":void 0},e)),t.color&&(r.color=t.color),t.bgColor&&(r.backgroundColor=t.bgColor),t.fontSize&&(r.fontSize=t.fontSize),t.fontFamily&&(r.fontFamily=t.fontFamily),j.isString(e)&&Object.keys(r).length===0?R.createElement(R.Fragment,null,e):R.createElement("span",{style:r},e)):null};function fe(t){const{params:e,params:{node:r,idx:i,children:n,keepEmptyAttributes:a},tag:u,children:o}=t,l=o||n,c=Os(e,{keepEmptyAttributes:a,removeDefaultAttributes:e.mode==="production"}),h=R.createElement(R.Fragment,null,`<${u}${c?` ${c}`:""}>`,l||r.children.map((g,d)=>re.isTextNode(g)?re.isTextListElement(r)?R.createElement(R.Fragment,{key:d},"<li>",R.createElement(ze,G(M({key:d},e),{node:g})),"</li>"):R.createElement(ze,G(M({key:d},e),{node:g})):R.createElement(le,G(M({key:d},e),{idx:i?re.getChildIdx(i,d):null,node:g}))),`</${u}>`);return R.createElement(R.Fragment,null,h)}const Oa=t=>{if(R.isValidElement(t)||j.isString(t)||j.isUndefined(t)||j.isNumber(t)||j.isBoolean(t)||t===null||Array.isArray(t)&&t.every(e=>Oa(e)))return!0};function se(t){return!!Oa(t)}function Na(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.WRAPPER,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function qa(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.SECTION,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function La(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.GROUP,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Ia(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.COLUMN,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Pa(t){const u=t,{data:e,children:r,idx:i}=u,n=ce(u,["data","children","idx"]),a={type:$.BUTTON,data:e||{},attributes:M({},n),children:se(r)?[]:r||[]};return R.createElement(le,{idx:i,node:a,children:se(r)?r:null})}function Ha(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.IMAGE,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Cr(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.TEXT,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Ma(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.SPACER,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Oe(t){const u=t,{data:e,children:r,idx:i}=u,n=ce(u,["data","children","idx"]),a={type:$.RAW,data:e||{content:r||""},attributes:M({},n),children:se(r)?[]:r||[]};return R.createElement(le,{idx:i,node:a,children:se(r)?r:null})}function Ua(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.DIVIDER,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function za(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.NAVBAR,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function $a(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.NAVBAR_LINK,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Va(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.SOCIAL,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function ja(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.SOCIAL_ELEMENT,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Ga(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.HERO,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function qo(t){const u=t,{tagName:e,children:r,idx:i}=u,n=ce(u,["tagName","children","idx"]),a={type:$.HTML_NODE,data:{tagName:e},attributes:M({},n),children:se(r)?[]:r||[]};return R.createElement(le,{idx:i,node:a,children:se(r)?r:null})}function Lo(t){const a=t,{idx:e,children:r}=a,i=ce(a,["idx","children"]),n={type:Y.FOR_EACH,data:M({},i),attributes:{},children:se(r)?[]:r||[]};return R.createElement(le,{idx:e,node:n,children:se(r)?r:null})}function Io(t){const a=t,{idx:e,children:r}=a,i=ce(a,["idx","children"]),n={type:Y.SHOW,data:G(M({},i),{component:r}),attributes:{},children:[]};return R.createElement(le,{idx:e,node:n,children:r})}function Po(t){const u=t,{tagName:e,idx:r,children:i}=u,n=ce(u,["tagName","idx","children"]),a={type:Y.HTML_DOM_NODE,data:{tagName:e},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}const Ho=({node:t})=>R.createElement(le,{node:G(M({},t),{attributes:G(M({},t.attributes),{"css-class":ht(t.attributes["css-class"],ii)})})}),Mo=Object.freeze(Object.defineProperty({__proto__:null,BasicBlock:fe,BlockRenderer:le,Button:Pa,Column:Ia,ContentEditableBlock:Ho,ContentLeaf:ze,Divider:Ua,ForEach:Lo,Group:La,Hero:Ga,HtmlDomNode:Po,HtmlNode:qo,Image:Ha,Navbar:za,NavbarLink:$a,Raw:Oe,Section:qa,Show:Io,Social:Va,SocialElement:ja,Spacer:Ma,Text:Cr,Wrapper:Na},Symbol.toStringTag,{value:"Module"})),Uo={attributes:{width:"600px","margin-top":"30px","margin-bottom":"30px","link-text-decoration":"underline"},data:{breakpoint:"480px"}},zo={get name(){return K("Page")},defaultData:Uo,type:$.PAGE,create:t=>{const e={type:$.PAGE,data:{breakpoint:"480px",globalAttributes:{"font-family":"Arial, sans-serif"}},attributes:{},children:[]};return W(e,t)},category:z.PAGE,render(t){var _,p,f,y,x,k;const{node:e,node:{data:r,attributes:i},mode:n}=t,a=r.breakpoint?`<mj-breakpoint width="${r.breakpoint}" />`:"",u=[...r.headStyles||[]];n==="testing"?u.unshift({content:va}):(u.unshift({content:Js}),u.unshift({content:eu,inline:"inline"}));const o=u.map(b=>`<mj-style ${b.inline?'inline="inline"':""}>${b.content}</mj-style>`).join(`
|
|
60
|
+
*/return r.mode.CTRGladman=function(){var i=r.lib.BlockCipherMode.extend();function n(o){if((o>>24&255)===255){var l=o>>16&255,c=o>>8&255,h=o&255;l===255?(l=0,c===255?(c=0,h===255?h=0:++h):++c):++l,o=0,o+=l<<16,o+=c<<8,o+=h}else o+=1<<24;return o}function a(o){return(o[0]=n(o[0]))===0&&(o[1]=n(o[1])),o}var u=i.Encryptor=i.extend({processBlock:function(o,l){var c=this._cipher,h=c.blockSize,g=this._iv,d=this._counter;g&&(d=this._counter=g.slice(0),this._iv=void 0),a(d);var v=d.slice(0);c.encryptBlock(v,0);for(var m=0;m<h;m++)o[l+m]^=v[m]}});return i.Decryptor=u,i}(),r.mode.CTRGladman})}(io)),nr}var ar={},ao={get exports(){return ar},set exports(t){ar=t}},Ln;function so(){return Ln||(Ln=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.mode.OFB=function(){var i=r.lib.BlockCipherMode.extend(),n=i.Encryptor=i.extend({processBlock:function(a,u){var o=this._cipher,l=o.blockSize,c=this._iv,h=this._keystream;c&&(h=this._keystream=c.slice(0),this._iv=void 0),o.encryptBlock(h,0);for(var g=0;g<l;g++)a[u+g]^=h[g]}});return i.Decryptor=n,i}(),r.mode.OFB})}(ao)),ar}var sr={},uo={get exports(){return sr},set exports(t){sr=t}},In;function oo(){return In||(In=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.mode.ECB=function(){var i=r.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(n,a){this._cipher.encryptBlock(n,a)}}),i.Decryptor=i.extend({processBlock:function(n,a){this._cipher.decryptBlock(n,a)}}),i}(),r.mode.ECB})}(uo)),sr}var ur={},lo={get exports(){return ur},set exports(t){ur=t}},Pn;function co(){return Pn||(Pn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.pad.AnsiX923={pad:function(i,n){var a=i.sigBytes,u=n*4,o=u-a%u,l=a+o-1;i.clamp(),i.words[l>>>2]|=o<<24-l%4*8,i.sigBytes+=o},unpad:function(i){var n=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=n}},r.pad.Ansix923})}(lo)),ur}var or={},po={get exports(){return or},set exports(t){or=t}},Hn;function ho(){return Hn||(Hn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.pad.Iso10126={pad:function(i,n){var a=n*4,u=a-i.sigBytes%a;i.concat(r.lib.WordArray.random(u-1)).concat(r.lib.WordArray.create([u<<24],1))},unpad:function(i){var n=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=n}},r.pad.Iso10126})}(po)),or}var lr={},fo={get exports(){return lr},set exports(t){lr=t}},Mn;function _o(){return Mn||(Mn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.pad.Iso97971={pad:function(i,n){i.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(i,n)},unpad:function(i){r.pad.ZeroPadding.unpad(i),i.sigBytes--}},r.pad.Iso97971})}(fo)),lr}var cr={},go={get exports(){return cr},set exports(t){cr=t}},Un;function xo(){return Un||(Un=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.pad.ZeroPadding={pad:function(i,n){var a=n*4;i.clamp(),i.sigBytes+=a-(i.sigBytes%a||a)},unpad:function(i){for(var n=i.words,a=i.sigBytes-1,a=i.sigBytes-1;a>=0;a--)if(n[a>>>2]>>>24-a%4*8&255){i.sigBytes=a+1;break}}},r.pad.ZeroPadding})}(go)),cr}var pr={},mo={get exports(){return pr},set exports(t){pr=t}},zn;function bo(){return zn||(zn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(mo)),pr}var hr={},vo={get exports(){return hr},set exports(t){hr=t}},$n;function Do(){return $n||($n=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(J,function(r){return function(i){var n=r,a=n.lib,u=a.CipherParams,o=n.enc,l=o.Hex,c=n.format;c.Hex={stringify:function(h){return h.ciphertext.toString(l)},parse:function(h){var g=l.parse(h);return u.create({ciphertext:g})}}}(),r.format.Hex})}(vo)),hr}var fr={},Ao={get exports(){return fr},set exports(t){fr=t}},Vn;function yo(){return Vn||(Vn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),dt(),nt(),ve())})(J,function(r){return function(){var i=r,n=i.lib,a=n.BlockCipher,u=i.algo,o=[],l=[],c=[],h=[],g=[],d=[],v=[],m=[],E=[],_=[];(function(){for(var y=[],x=0;x<256;x++)x<128?y[x]=x<<1:y[x]=x<<1^283;for(var k=0,b=0,x=0;x<256;x++){var w=b^b<<1^b<<2^b<<3^b<<4;w=w>>>8^w&255^99,o[k]=w,l[w]=k;var A=y[k],T=y[A],s=y[T],D=y[w]*257^w*16843008;c[k]=D<<24|D>>>8,h[k]=D<<16|D>>>16,g[k]=D<<8|D>>>24,d[k]=D;var D=s*16843009^T*65537^A*257^k*16843008;v[w]=D<<24|D>>>8,m[w]=D<<16|D>>>16,E[w]=D<<8|D>>>24,_[w]=D,k?(k=A^y[y[y[s^A]]],b^=y[y[b]]):k=b=1}})();var p=[0,1,2,4,8,16,32,64,128,27,54],f=u.AES=a.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,k=x.words,b=x.sigBytes/4,w=this._nRounds=b+6,A=(w+1)*4,T=this._keySchedule=[],s=0;s<A;s++)s<b?T[s]=k[s]:(y=T[s-1],s%b?b>6&&s%b==4&&(y=o[y>>>24]<<24|o[y>>>16&255]<<16|o[y>>>8&255]<<8|o[y&255]):(y=y<<8|y>>>24,y=o[y>>>24]<<24|o[y>>>16&255]<<16|o[y>>>8&255]<<8|o[y&255],y^=p[s/b|0]<<24),T[s]=T[s-b]^y);for(var D=this._invKeySchedule=[],C=0;C<A;C++){var s=A-C;if(C%4)var y=T[s];else var y=T[s-4];C<4||s<=4?D[C]=y:D[C]=v[o[y>>>24]]^m[o[y>>>16&255]]^E[o[y>>>8&255]]^_[o[y&255]]}}},encryptBlock:function(y,x){this._doCryptBlock(y,x,this._keySchedule,c,h,g,d,o)},decryptBlock:function(y,x){var k=y[x+1];y[x+1]=y[x+3],y[x+3]=k,this._doCryptBlock(y,x,this._invKeySchedule,v,m,E,_,l);var k=y[x+1];y[x+1]=y[x+3],y[x+3]=k},_doCryptBlock:function(y,x,k,b,w,A,T,s){for(var D=this._nRounds,C=y[x]^k[0],B=y[x+1]^k[1],S=y[x+2]^k[2],O=y[x+3]^k[3],H=4,P=1;P<D;P++){var V=b[C>>>24]^w[B>>>16&255]^A[S>>>8&255]^T[O&255]^k[H++],q=b[B>>>24]^w[S>>>16&255]^A[O>>>8&255]^T[C&255]^k[H++],U=b[S>>>24]^w[O>>>16&255]^A[C>>>8&255]^T[B&255]^k[H++],F=b[O>>>24]^w[C>>>16&255]^A[B>>>8&255]^T[S&255]^k[H++];C=V,B=q,S=U,O=F}var V=(s[C>>>24]<<24|s[B>>>16&255]<<16|s[S>>>8&255]<<8|s[O&255])^k[H++],q=(s[B>>>24]<<24|s[S>>>16&255]<<16|s[O>>>8&255]<<8|s[C&255])^k[H++],U=(s[S>>>24]<<24|s[O>>>16&255]<<16|s[C>>>8&255]<<8|s[B&255])^k[H++],F=(s[O>>>24]<<24|s[C>>>16&255]<<16|s[B>>>8&255]<<8|s[S&255])^k[H++];y[x]=V,y[x+1]=q,y[x+2]=U,y[x+3]=F},keySize:256/32});i.AES=a._createHelper(f)}(),r.AES})}(Ao)),fr}var dr={},Eo={get exports(){return dr},set exports(t){dr=t}},jn;function wo(){return jn||(jn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),dt(),nt(),ve())})(J,function(r){return function(){var i=r,n=i.lib,a=n.WordArray,u=n.BlockCipher,o=i.algo,l=[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],c=[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],g=[{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}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],v=o.DES=u.extend({_doReset:function(){for(var p=this._key,f=p.words,y=[],x=0;x<56;x++){var k=l[x]-1;y[x]=f[k>>>5]>>>31-k%32&1}for(var b=this._subKeys=[],w=0;w<16;w++){for(var A=b[w]=[],T=h[w],x=0;x<24;x++)A[x/6|0]|=y[(c[x]-1+T)%28]<<31-x%6,A[4+(x/6|0)]|=y[28+(c[x+24]-1+T)%28]<<31-x%6;A[0]=A[0]<<1|A[0]>>>31;for(var x=1;x<7;x++)A[x]=A[x]>>>(x-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var s=this._invSubKeys=[],x=0;x<16;x++)s[x]=b[15-x]},encryptBlock:function(p,f){this._doCryptBlock(p,f,this._subKeys)},decryptBlock:function(p,f){this._doCryptBlock(p,f,this._invSubKeys)},_doCryptBlock:function(p,f,y){this._lBlock=p[f],this._rBlock=p[f+1],m.call(this,4,252645135),m.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var k=y[x],b=this._lBlock,w=this._rBlock,A=0,T=0;T<8;T++)A|=g[T][((w^k[T])&d[T])>>>0];this._lBlock=w,this._rBlock=b^A}var s=this._lBlock;this._lBlock=this._rBlock,this._rBlock=s,m.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),p[f]=this._lBlock,p[f+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(p,f){var y=(this._lBlock>>>p^this._rBlock)&f;this._rBlock^=y,this._lBlock^=y<<p}function E(p,f){var y=(this._rBlock>>>p^this._lBlock)&f;this._lBlock^=y,this._rBlock^=y<<p}i.DES=u._createHelper(v);var _=o.TripleDES=u.extend({_doReset:function(){var p=this._key,f=p.words;if(f.length!==2&&f.length!==4&&f.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=f.slice(0,2),x=f.length<4?f.slice(0,2):f.slice(2,4),k=f.length<6?f.slice(0,2):f.slice(4,6);this._des1=v.createEncryptor(a.create(y)),this._des2=v.createEncryptor(a.create(x)),this._des3=v.createEncryptor(a.create(k))},encryptBlock:function(p,f){this._des1.encryptBlock(p,f),this._des2.decryptBlock(p,f),this._des3.encryptBlock(p,f)},decryptBlock:function(p,f){this._des3.decryptBlock(p,f),this._des2.encryptBlock(p,f),this._des1.decryptBlock(p,f)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=u._createHelper(_)}(),r.TripleDES})}(Eo)),dr}var _r={},Co={get exports(){return _r},set exports(t){_r=t}},Gn;function Bo(){return Gn||(Gn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),dt(),nt(),ve())})(J,function(r){return function(){var i=r,n=i.lib,a=n.StreamCipher,u=i.algo,o=u.RC4=a.extend({_doReset:function(){for(var h=this._key,g=h.words,d=h.sigBytes,v=this._S=[],m=0;m<256;m++)v[m]=m;for(var m=0,E=0;m<256;m++){var _=m%d,p=g[_>>>2]>>>24-_%4*8&255;E=(E+v[m]+p)%256;var f=v[m];v[m]=v[E],v[E]=f}this._i=this._j=0},_doProcessBlock:function(h,g){h[g]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var h=this._S,g=this._i,d=this._j,v=0,m=0;m<4;m++){g=(g+1)%256,d=(d+h[g])%256;var E=h[g];h[g]=h[d],h[d]=E,v|=h[(h[g]+h[d])%256]<<24-m*8}return this._i=g,this._j=d,v}i.RC4=a._createHelper(o);var c=u.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)l.call(this)}});i.RC4Drop=a._createHelper(c)}(),r.RC4})}(Co)),_r}var gr={},To={get exports(){return gr},set exports(t){gr=t}},Wn;function ko(){return Wn||(Wn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),dt(),nt(),ve())})(J,function(r){return function(){var i=r,n=i.lib,a=n.StreamCipher,u=i.algo,o=[],l=[],c=[],h=u.Rabbit=a.extend({_doReset:function(){for(var d=this._key.words,v=this.cfg.iv,m=0;m<4;m++)d[m]=(d[m]<<8|d[m]>>>24)&16711935|(d[m]<<24|d[m]>>>8)&4278255360;var E=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],_=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var m=0;m<4;m++)g.call(this);for(var m=0;m<8;m++)_[m]^=E[m+4&7];if(v){var p=v.words,f=p[0],y=p[1],x=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,k=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b=x>>>16|k&4294901760,w=k<<16|x&65535;_[0]^=x,_[1]^=b,_[2]^=k,_[3]^=w,_[4]^=x,_[5]^=b,_[6]^=k,_[7]^=w;for(var m=0;m<4;m++)g.call(this)}},_doProcessBlock:function(d,v){var m=this._X;g.call(this),o[0]=m[0]^m[5]>>>16^m[3]<<16,o[1]=m[2]^m[7]>>>16^m[5]<<16,o[2]=m[4]^m[1]>>>16^m[7]<<16,o[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)o[E]=(o[E]<<8|o[E]>>>24)&16711935|(o[E]<<24|o[E]>>>8)&4278255360,d[v+E]^=o[E]},blockSize:128/32,ivSize:64/32});function g(){for(var d=this._X,v=this._C,m=0;m<8;m++)l[m]=v[m];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<l[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<l[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<l[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<l[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<l[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<l[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<l[6]>>>0?1:0)|0,this._b=v[7]>>>0<l[7]>>>0?1:0;for(var m=0;m<8;m++){var E=d[m]+v[m],_=E&65535,p=E>>>16,f=((_*_>>>17)+_*p>>>15)+p*p,y=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=f^y}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}i.Rabbit=a._createHelper(h)}(),r.Rabbit})}(To)),gr}var xr={},So={get exports(){return xr},set exports(t){xr=t}},Kn;function Ro(){return Kn||(Kn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),dt(),nt(),ve())})(J,function(r){return function(){var i=r,n=i.lib,a=n.StreamCipher,u=i.algo,o=[],l=[],c=[],h=u.RabbitLegacy=a.extend({_doReset:function(){var d=this._key.words,v=this.cfg.iv,m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],E=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var _=0;_<4;_++)g.call(this);for(var _=0;_<8;_++)E[_]^=m[_+4&7];if(v){var p=v.words,f=p[0],y=p[1],x=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,k=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b=x>>>16|k&4294901760,w=k<<16|x&65535;E[0]^=x,E[1]^=b,E[2]^=k,E[3]^=w,E[4]^=x,E[5]^=b,E[6]^=k,E[7]^=w;for(var _=0;_<4;_++)g.call(this)}},_doProcessBlock:function(d,v){var m=this._X;g.call(this),o[0]=m[0]^m[5]>>>16^m[3]<<16,o[1]=m[2]^m[7]>>>16^m[5]<<16,o[2]=m[4]^m[1]>>>16^m[7]<<16,o[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)o[E]=(o[E]<<8|o[E]>>>24)&16711935|(o[E]<<24|o[E]>>>8)&4278255360,d[v+E]^=o[E]},blockSize:128/32,ivSize:64/32});function g(){for(var d=this._X,v=this._C,m=0;m<8;m++)l[m]=v[m];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<l[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<l[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<l[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<l[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<l[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<l[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<l[6]>>>0?1:0)|0,this._b=v[7]>>>0<l[7]>>>0?1:0;for(var m=0;m<8;m++){var E=d[m]+v[m],_=E&65535,p=E>>>16,f=((_*_>>>17)+_*p>>>15)+p*p,y=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=f^y}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}i.RabbitLegacy=a._createHelper(h)}(),r.RabbitLegacy})}(So)),xr}(function(t,e){(function(r,i,n){t.exports=i(ue(),yr(),Su(),Fu(),ft(),qu(),dt(),oi(),Ta(),Mu(),ka(),$u(),ju(),Wu(),li(),Yu(),nt(),ve(),eo(),ro(),no(),so(),oo(),co(),ho(),_o(),xo(),bo(),Do(),yo(),wo(),Bo(),ko(),Ro())})(J,function(r){return r})})(Au);const Xn=ei;function Fo(t,e,r){const i=new Date;i.setTime(i.getTime()+r*1e3);const n="expires="+i.toUTCString();document.cookie=t+"="+e+";"+n}function Oo(t){let e="";return document.cookie.split(";").forEach(r=>{const i=r.split("=")[0];i.trim()===t&&(e=r.replace(`${i}=`,""))}),e}let ct="PENDING",Yn="";const No=(t,e)=>{const i=Xn.AES.decrypt(e,"easy_email_pro_"+t).toString(Xn.enc.Utf8);return JSON.parse(i)},Qn={getToken(){if(typeof document!="undefined")return Oo("e_e_p")},setToken(t){if(typeof document!="undefined")return Fo("e_e_p",t,3600)}},Ci=class{static auth(e){return Ui(this,null,function*(){if(ct!=="PENDING")return;const r=Qn.getToken();if(r)try{No(e,r).expiredAt>+new Date/1e3&&(ct="SUCCESS")}catch(i){}try{const{data:i}=yield Ys(`https://api-easy-email-pro.vercel.app/api/public/token?client_id=${e}`,{method:"GET"});Qn.setToken(i.access_token),ct="SUCCESS"}catch(i){throw console.log("error",i),ct="ERROR",Yn=String(i),i}})}static toMJML(e){if(ct==="PENDING")throw new Error("Please call EditorCore.auth first");if(ct==="ERROR")throw new Error(Yn);const{element:r,pageElement:i,beautify:n,universalElements:a,mode:u,displayMode:o="desktop-mobile",idx:l,mergetagsData:c,attributesVariables:h}=e,g=oe.getBlockByType(r.type);if(!g)throw new Error(`Block ${r.type} not found`);if(!i&&g.category!==z.PAGE)throw new Error("Page element is required if element is not a page");const d=a?Ci.transformUniversalElements({universalElements:a.elements,content:j.cloneDeep(r)}):j.cloneDeep(r),v=new vu({mode:u}),m={content:i||r};let E=l;g.category===z.PAGE&&(E=re.getPageIdx());let _=rt.unescape(zi.renderToStaticMarkup(R.createElement(Je,{universalElements:a,mode:e.mode,context:m,displayMode:o,keepEmptyAttributes:!!e.keepEmptyAttributes,mergetagsData:c,attributesVariables:h},R.createElement(bu,{context:v},R.createElement(le,{idx:E,node:d})))));const p=v.getHeadContent();return _=_.replace(/\<!-- GLOBAL_EXTRACT_HEADER --\>/,p),iu(e)||(_=_.replace(/\<mj-html-attributes\>([\w\W]*?)\<\/mj-html-attributes\>/,"")),n?Jr.html(_,{indent_size:2}):_}static elementToMjml(e,r){return rt.unescape(zi.renderToStaticMarkup(R.createElement(Je,{universalElements:r.universalElements,mode:r.mode,context:{content:r.pageElement},displayMode:r.displayMode||"desktop-mobile",keepEmptyAttributes:!!r.keepEmptyAttributes,mergetagsData:r.mergetagsData,attributesVariables:r.attributesVariables},R.createElement(le,{node:j.cloneDeep(e)}))))}static mjmlToBlockElement(e){const i=new DOMParser().parseFromString(e,"text/html"),n=a=>{if(a.nodeType===8)return oe.getBlockByType(Y.RAW).create({data:{content:a.textContent||""}});if(a.nodeType===3)return{text:a.textContent||""};if(a.nodeType!==1)throw new Error("Invalid");const u=a;let o={},l=u.tagName.toLocaleLowerCase().replace("mj-","");const c=u.getAttribute("style"),h=c==null?void 0:c.split(";").map(m=>{const E=m.split(":");return{[E[0]]:E[1]}}).reduce((m,E)=>M(M({},m),E),{});let g=u.getAttributeNames().filter(m=>!m.startsWith("element-")).reduce((m,E)=>G(M({},m),{[E]:u.getAttribute(E)||""}),{});u.getAttribute("element-type")&&(l=u.getAttribute("element-type")),u.getAttribute("element-data")&&(o=JSON.parse(decodeURIComponent(u.getAttribute("element-data")))),u.getAttribute("element-attributes")&&(g=JSON.parse(decodeURIComponent(u.getAttribute("element-attributes")))||{});const d=oe.getBlockByType(l);if(!d){const m=M({text:u.textContent||""},h),E=_=>{const p=_.tagName.toLowerCase();p==="strong"?m.bold=!0:p==="em"?m.italic=!0:p==="u"?m.underline=!0:p==="del"?m.strikethrough=!0:p==="a"&&(m.link={href:u.getAttribute("href")||"",blank:u.getAttribute("target")==="_blank"})};return[...u.children].forEach(E),m}const v=d.void?[]:u.childNodes.length>0?[...u.childNodes].map(n):[];return{type:l,data:o,attributes:g,children:v}};return n(i.body.firstChild)}static isPageDataVariable(e){return/\$var\(([\s\S]+)\)/g.test(e)}};let He=Ci;ne(He,"version","0.14.0"),ne(He,"getPageDataVariables",(e,r)=>{var i;return((i=e.data.variables)==null?void 0:i.reduce((n,a)=>G(M({},n),{[a.name]:a.value}),M({},r)))||M({},r)}),ne(He,"renderWithPageVariables",(e,r)=>{if(!r)return e;const i=j.cloneDeep(e);if(typeof i=="string")return i.replace(/\$var\(([\s\S]+)\)/g,(a,u)=>j.get(r,u,""));const n=a=>{j.forOwn(a,(u,o)=>{typeof u=="object"?o!=="children"&&n(u):typeof u=="string"&&(a[o]=u.replace(/\$var\(([\s\S]+)\)/g,(l,c)=>j.get(r,c,"")))})};return n(i),i}),ne(He,"getUniversalElements",nu),ne(He,"transformUniversalElements",au);const Sa=R.createContext({}),ci=()=>R.useContext(Sa),Je=t=>{const e=R.useMemo(()=>{const r=He.getPageDataVariables(t.context.content,t.attributesVariables||{});return G(M({},t),{pageVariables:r})},[t]);return R.createElement(Sa.Provider,{value:e},t.children)};var Ra=(t=>(t.RESPONSIVE="RESPONSIVE",t.TEMPLATE_ENGINE="TEMPLATE_ENGINE",t))(Ra||{});class Er{constructor(){ne(this,"enabledResponsive",!0)}}ne(Er,"type","RESPONSIVE");class wr{}ne(wr,"type","TEMPLATE_ENGINE");class Fa{}const Pe=class{static registerPlugins(e){e.forEach(r=>{Pe.registerPlugin(r)})}static registerPlugin(e){const r=new e;r instanceof Er?(Pe.enabledResponsive=r.enabledResponsive,Pe.generateResponsive=r.generateResponsive):r instanceof wr?(Pe.generateIterationTemplate=r.generateIterationTemplate,Pe.generateConditionTemplate=r.generateConditionTemplate,Pe.generateVariable=r.generateVariable,Pe.isVariable=r.isVariable,Pe.renderWithData=r.renderWithData):r instanceof Fa&&r.generateElement()}};let me=Pe;ne(me,"enabledResponsive",!1),ne(me,"generateResponsive",e=>{const r=oe.getBlockByType(e.node.type),{mode:i,children:n,context:a,idx:u,node:o,keepEmptyAttributes:l,mergetagsData:c}=e;return r.render(G(M({},e),{mode:i,children:n,context:a,idx:u,node:o,keepEmptyAttributes:l,mergetagsData:c}))}),ne(me,"generateIterationTemplate",(e,r)=>r),ne(me,"isVariable",e=>!1),ne(me,"generateConditionTemplate",(e,r)=>r),ne(me,"generateVariable",e=>e),ne(me,"renderWithData",(e,r)=>e);const le=t=>{var y,x,k,b,w;const{children:e,node:r,idx:i}=t,{mode:n,context:a,displayMode:u,keepEmptyAttributes:o,mergetagsData:l,pageVariables:c}=ci(),h=oe.getBlockByType(r.type);if(!h)throw new Error(`${r.type} block is not registered`);let g=G(M({},r),{attributes:M({},r.attributes),mobileAttributes:M({},r.mobileAttributes)});const d=j.get(g,"attributes.css-class")||"";n==="production"&&j.set(g,"attributes.css-class",d.replace(ii,""));const v=(y=g.attributes["mj-class"])==null?void 0:y.trim();if(v&&a.content.data.classAttributes){const A={},T=v.split(" ").map(s=>s.trim()).filter(Boolean);Object.values(T).forEach(s=>{j.get(a.content.data.classAttributes,s)&&Object.assign(A,j.get(a.content.data.classAttributes,s))}),g.attributes=W(A,g.attributes)}const m=(x=a.content.data.blockAttributes)==null?void 0:x[g.type];m&&(g.attributes=W(m,g.attributes));const E=(k=a.content.data.categoryAttributes)==null?void 0:k[h.category];a.content.data.globalAttributes&&(g.attributes=W(a.content.data.globalAttributes,g.attributes)),E&&(g.attributes=W(E,g.attributes));const _=oe.getBlockByType(g.type).defaultData.attributes;if(_&&(g.attributes=W(_,g.attributes)),re.isSectionElement(r)||re.isWrapperElement(r)){const A=a.content.attributes["content-background-color"];A&&(g.attributes=W({"background-color":A},g.attributes))}g=He.renderWithPageVariables(g,c);let f=me.generateResponsive({mode:n,children:e,context:a,idx:i,node:g,keepEmptyAttributes:o,mergetagsData:l,displayMode:u});if(n==="production"){const A=(b=r.logic)==null?void 0:b.condition,T=(w=r.logic)==null?void 0:w.iteration;T&&T.enabled&&(f=me.generateIterationTemplate(T,f)),A&&A.enabled&&(f=me.generateConditionTemplate(A,f))}return R.createElement(R.Fragment,null,f)},ze=({node:t})=>{let e=t.text;const r={};return e?(t.bold&&(e=R.createElement("strong",null,e)),t.italic&&(e=R.createElement("em",null,e)),t.underline&&(e=R.createElement("u",null,e)),t.strikethrough&&(e=R.createElement("del",null,e)),t.link&&(e=R.createElement("a",{href:t.link.href,target:t.link.blank?"_blank":void 0},e)),t.color&&(r.color=t.color),t.bgColor&&(r.backgroundColor=t.bgColor),t.fontSize&&(r.fontSize=t.fontSize),t.fontFamily&&(r.fontFamily=t.fontFamily),j.isString(e)&&Object.keys(r).length===0?R.createElement(R.Fragment,null,e):R.createElement("span",{style:r},e)):null};function fe(t){const{params:e,params:{node:r,idx:i,children:n,keepEmptyAttributes:a},tag:u,children:o}=t,l=o||n,c=Os(e,{keepEmptyAttributes:a,removeDefaultAttributes:e.mode==="production"}),h=R.createElement(R.Fragment,null,`<${u}${c?` ${c}`:""}>`,l||r.children.map((g,d)=>re.isTextNode(g)?re.isTextListElement(r)?R.createElement(R.Fragment,{key:d},"<li>",R.createElement(ze,G(M({key:d},e),{node:g})),"</li>"):R.createElement(ze,G(M({key:d},e),{node:g})):R.createElement(le,G(M({key:d},e),{idx:i?re.getChildIdx(i,d):null,node:g}))),`</${u}>`);return R.createElement(R.Fragment,null,h)}const Oa=t=>{if(R.isValidElement(t)||j.isString(t)||j.isUndefined(t)||j.isNumber(t)||j.isBoolean(t)||t===null||Array.isArray(t)&&t.every(e=>Oa(e)))return!0};function se(t){return!!Oa(t)}function Na(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.WRAPPER,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function qa(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.SECTION,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function La(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.GROUP,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Ia(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.COLUMN,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Pa(t){const u=t,{data:e,children:r,idx:i}=u,n=ce(u,["data","children","idx"]),a={type:$.BUTTON,data:e||{},attributes:M({},n),children:se(r)?[]:r||[]};return R.createElement(le,{idx:i,node:a,children:se(r)?r:null})}function Ha(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.IMAGE,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Cr(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.TEXT,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Ma(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.SPACER,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Oe(t){const u=t,{data:e,children:r,idx:i}=u,n=ce(u,["data","children","idx"]),a={type:$.RAW,data:e||{content:r||""},attributes:M({},n),children:se(r)?[]:r||[]};return R.createElement(le,{idx:i,node:a,children:se(r)?r:null})}function Ua(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.DIVIDER,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function za(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.NAVBAR,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function $a(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.NAVBAR_LINK,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Va(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.SOCIAL,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function ja(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.SOCIAL_ELEMENT,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function Ga(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:$.HERO,data:e||{},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}function qo(t){const u=t,{tagName:e,children:r,idx:i}=u,n=ce(u,["tagName","children","idx"]),a={type:$.HTML_NODE,data:{tagName:e},attributes:M({},n),children:se(r)?[]:r||[]};return R.createElement(le,{idx:i,node:a,children:se(r)?r:null})}function Lo(t){const a=t,{idx:e,children:r}=a,i=ce(a,["idx","children"]),n={type:Y.FOR_EACH,data:M({},i),attributes:{},children:se(r)?[]:r||[]};return R.createElement(le,{idx:e,node:n,children:se(r)?r:null})}function Io(t){const a=t,{idx:e,children:r}=a,i=ce(a,["idx","children"]),n={type:Y.SHOW,data:G(M({},i),{component:r}),attributes:{},children:[]};return R.createElement(le,{idx:e,node:n,children:r})}function Po(t){const u=t,{tagName:e,idx:r,children:i}=u,n=ce(u,["tagName","idx","children"]),a={type:Y.HTML_DOM_NODE,data:{tagName:e},attributes:M({},n),children:se(i)?[]:i||[]};return R.createElement(le,{idx:r,node:a,children:se(i)?i:null})}const Ho=({node:t})=>R.createElement(le,{node:G(M({},t),{attributes:G(M({},t.attributes),{"css-class":ht(t.attributes["css-class"],ii)})})}),Mo=Object.freeze(Object.defineProperty({__proto__:null,BasicBlock:fe,BlockRenderer:le,Button:Pa,Column:Ia,ContentEditableBlock:Ho,ContentLeaf:ze,Divider:Ua,ForEach:Lo,Group:La,Hero:Ga,HtmlDomNode:Po,HtmlNode:qo,Image:Ha,Navbar:za,NavbarLink:$a,Raw:Oe,Section:qa,Show:Io,Social:Va,SocialElement:ja,Spacer:Ma,Text:Cr,Wrapper:Na},Symbol.toStringTag,{value:"Module"})),Uo={attributes:{width:"600px","margin-top":"30px","margin-bottom":"30px","link-text-decoration":"underline"},data:{breakpoint:"480px"}},zo={get name(){return K("Page")},defaultData:Uo,type:$.PAGE,create:t=>{const e={type:$.PAGE,data:{breakpoint:"480px",globalAttributes:{"font-family":"Arial, sans-serif"}},attributes:{},children:[]};return W(e,t)},category:z.PAGE,render(t){var _,p,f,y,x,k;const{node:e,node:{data:r,attributes:i},mode:n}=t,a=r.breakpoint?`<mj-breakpoint width="${r.breakpoint}" />`:"",u=[...r.headStyles||[]];n==="testing"?u.unshift({content:va}):(u.unshift({content:Js}),u.unshift({content:eu,inline:"inline"}));const o=u.map(b=>`<mj-style ${b.inline?'inline="inline"':""}>${b.content}</mj-style>`).join(`
|
|
61
61
|
`)||"",l={color:((_=i["link-color"])==null?void 0:_.trim())||"inherit","font-weight":(p=i["link-font-weight"])==null?void 0:p.trim(),"text-decoration":(f=i["link-text-decoration"])==null?void 0:f.trim(),"font-style":(y=i["link-font-style"])==null?void 0:y.trim()},h=`<mj-style>.mjbody a, .mjbody a:hover, .mjbody a:active, .mjbody a[href], .mjbody a[href]:hover, .mjbody a[href]:active {${Object.keys(l).map(b=>{const w=l;return w[b]?`${b}: ${w[b]}`:""}).filter(Boolean).join(";")}}</mj-style>`,g=i["background-color"]?`background-color="${i["background-color"]}"`:"",d=i["margin-top"]&&i["margin-top"]!=="0px"?`<mj-section padding="0px"><mj-column><mj-spacer height="${i["margin-top"]}"></mj-spacer></mj-column></mj-section>`:"",v=i["margin-bottom"]&&i["margin-bottom"]!=="0px"?`<mj-section padding="0px"><mj-column><mj-spacer height="${i["margin-top"]}"></mj-spacer></mj-column></mj-section>`:"",m=r.preheader?`<mj-preview>${r.preheader}</mj-preview>`:"",E=i.width||"600px";return R.createElement(R.Fragment,null,`
|
|
62
62
|
<mjml>
|
|
63
63
|
<mj-head>
|
package/lib/index.es.js
CHANGED
|
@@ -6393,8 +6393,12 @@ const qo = (t, e) => {
|
|
|
6393
6393
|
return $i(this, null, function* () {
|
|
6394
6394
|
if (pt !== "PENDING")
|
|
6395
6395
|
return;
|
|
6396
|
-
|
|
6397
|
-
|
|
6396
|
+
const r = Jn.getToken();
|
|
6397
|
+
if (r)
|
|
6398
|
+
try {
|
|
6399
|
+
qo(e, r).expiredAt > +/* @__PURE__ */ new Date() / 1e3 && (pt = "SUCCESS");
|
|
6400
|
+
} catch (i) {
|
|
6401
|
+
}
|
|
6398
6402
|
try {
|
|
6399
6403
|
const { data: i } = yield Zs(
|
|
6400
6404
|
`https://api-easy-email-pro.vercel.app/api/public/token?client_id=${e}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-email-pro-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib"
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
"main": "lib/index.cjs.js",
|
|
9
9
|
"module": "lib/index.es.js",
|
|
10
10
|
"types": "lib/typings/index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "vite build && npm run typings",
|
|
13
|
+
"typings": "tsc --declaration --emitDeclarationOnly --project tsconfig.json && tsc-alias",
|
|
14
|
+
"lint": "eslint --fix --ext .tsx,.ts src/"
|
|
15
|
+
},
|
|
11
16
|
"keywords": [],
|
|
12
17
|
"author": "",
|
|
13
18
|
"dependencies": {
|
|
@@ -28,10 +33,5 @@
|
|
|
28
33
|
},
|
|
29
34
|
"devDependencies": {
|
|
30
35
|
"axios": "^1.2.2"
|
|
31
|
-
},
|
|
32
|
-
"scripts": {
|
|
33
|
-
"build": "vite build && npm run typings",
|
|
34
|
-
"typings": "tsc --declaration --emitDeclarationOnly --project tsconfig.json && tsc-alias",
|
|
35
|
-
"lint": "eslint --fix --ext .tsx,.ts src/"
|
|
36
36
|
}
|
|
37
|
-
}
|
|
37
|
+
}
|