dphelper 1.8.21 → 1.8.22

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.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -15,7 +15,7 @@ n.mode.CTRGladman=function(){var e=n.lib.BlockCipherMode.extend();function t(e){
15
15
 
16
16
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17
17
  */
18
- function(){var e=n,t=e.lib,r=t.WordArray,o=t.Hasher,i=e.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),u=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=i.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,p,b,x,w,D,C,A,k,S,_,T=this._hash.words,P=d.words,M=u.words,E=a.words,j=s.words,O=l.words,N=c.words;for(D=i=T[0],C=p=T[1],A=b=T[2],k=x=T[3],S=w=T[4],r=0;r<80;r+=1)_=i+e[t+E[r]]|0,_+=r<16?h(p,b,x)+P[0]:r<32?f(p,b,x)+P[1]:r<48?m(p,b,x)+P[2]:r<64?v(p,b,x)+P[3]:g(p,b,x)+P[4],_=(_=y(_|=0,O[r]))+w|0,i=w,w=x,x=y(b,10),b=p,p=_,_=D+e[t+j[r]]|0,_+=r<16?g(C,A,k)+M[0]:r<32?v(C,A,k)+M[1]:r<48?m(C,A,k)+M[2]:r<64?f(C,A,k)+M[3]:h(C,A,k)+M[4],_=(_=y(_|=0,N[r]))+S|0,D=S,S=k,k=y(A,10),A=C,C=_;_=T[1]+b+k|0,T[1]=T[2]+x+S|0,T[2]=T[3]+w+D|0,T[3]=T[4]+i+C|0,T[4]=T[0]+p+A|0,T[0]=_},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function f(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function v(e,t,r){return e&r|t&~r}function g(e,t,r){return e^(t|~r)}function y(e,t){return e<<t|e>>>32-t}e.RIPEMD160=o._createHelper(p),e.HmacRIPEMD160=o._createHmacHelper(p)}(Math),n.RIPEMD160)},5471:function(e,t,r){var n,o,i,a,s,l,c,d;e.exports=(o=(n=d=r(9021)).lib,i=o.WordArray,a=o.Hasher,s=n.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var d=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=d<<1|d>>>31}var u=(n<<5|n>>>27)+s+l[c];u+=c<20?1518500249+(o&i|~o&a):c<40?1859775393+(o^i^a):c<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,s=a,a=i,i=o<<30|o>>>2,o=n,n=u}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c),d.SHA1)},6308:function(e,t,r){var n,o,i,a,s,l;e.exports=(l=r(9021),r(3009),o=(n=l).lib.WordArray,i=n.algo,a=i.SHA256,s=i.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),l.SHA224)},3009:function(e,t,r){var n;e.exports=(n=r(9021),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[],l=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(s[o]=r(e.pow(n,.5))),l[o]=r(e.pow(n,1/3)),o++),n++}();var c=[],d=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],d=r[5],u=r[6],p=r[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var f=c[h-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=c[h-2],g=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;c[h]=m+c[h-7]+g+c[h-16]}var y=n&o^n&i^o&i,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),x=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&d^~s&u)+l[h]+c[h];p=u,u=d,d=s,s=a+x|0,a=i,i=o,o=n,n=x+(b+y)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+d|0,r[6]=r[6]+u|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(d),t.HmacSHA256=i._createHmacHelper(d)}(Math),n.SHA256)},5953:function(e,t,r){var n;e.exports=(n=r(9021),r(3240),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.x64.Word,s=t.algo,l=[],c=[],d=[];!function(){for(var e=1,t=0,r=0;r<24;r++){l[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,u=0,p=0;p<7;p++){if(1&o){var h=(1<<p)-1;h<32?u^=1<<h:s^=1<<h-32}128&o?o=o<<1^113:o<<=1}d[i]=a.create(s,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=a.create()}();var p=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,o=0;o<n;o++){var i=e[t+2*o],a=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(T=r[o]).high^=a,T.low^=i}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var h=0,f=0,m=0;m<5;m++)h^=(T=r[p+5*m]).high,f^=T.low;var v=u[p];v.high=h,v.low=f}for(p=0;p<5;p++){var g=u[(p+4)%5],y=u[(p+1)%5],b=y.high,x=y.low;for(h=g.high^(b<<1|x>>>31),f=g.low^(x<<1|b>>>31),m=0;m<5;m++)(T=r[p+5*m]).high^=h,T.low^=f}for(var w=1;w<25;w++){var D=(T=r[w]).high,C=T.low,A=l[w];A<32?(h=D<<A|C>>>32-A,f=C<<A|D>>>32-A):(h=C<<A-32|D>>>64-A,f=D<<A-32|C>>>64-A);var k=u[c[w]];k.high=h,k.low=f}var S=u[0],_=r[0];for(S.high=_.high,S.low=_.low,p=0;p<5;p++)for(m=0;m<5;m++){var T=r[w=p+5*m],P=u[w],M=u[(p+1)%5+5*m],E=u[(p+2)%5+5*m];T.high=P.high^~M.high&E.high,T.low=P.low^~M.low&E.low}T=r[0];var j=d[s];T.high^=j.high,T.low^=j.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],d=0;d<l;d++){var u=a[d],p=u.high,h=u.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(p)}return new o.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=i._createHelper(p),t.HmacSHA3=i._createHmacHelper(p)}(Math),n.SHA3)},9557:function(e,t,r){var n,o,i,a,s,l,c,d;e.exports=(d=r(9021),r(3240),r(1380),o=(n=d).x64,i=o.Word,a=o.WordArray,s=n.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=l._createHelper(c),n.HmacSHA384=l._createHmacHelper(c),d.SHA384)},1380:function(e,t,r){var n;e.exports=(n=r(9021),r(3240),function(){var e=n,t=e.lib.Hasher,r=e.x64,o=r.Word,i=r.WordArray,a=e.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var d=a.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],d=r[5],u=r[6],p=r[7],h=n.high,f=n.low,m=o.high,v=o.low,g=i.high,y=i.low,b=a.high,x=a.low,w=s.high,D=s.low,C=d.high,A=d.low,k=u.high,S=u.low,_=p.high,T=p.low,P=h,M=f,E=m,j=v,O=g,N=y,B=b,q=x,H=w,L=D,R=C,I=A,$=k,F=S,z=_,W=T,U=0;U<80;U++){var Y,X,G=c[U];if(U<16)X=G.high=0|e[t+2*U],Y=G.low=0|e[t+2*U+1];else{var J=c[U-15],K=J.high,V=J.low,Z=(K>>>1|V<<31)^(K>>>8|V<<24)^K>>>7,Q=(V>>>1|K<<31)^(V>>>8|K<<24)^(V>>>7|K<<25),ee=c[U-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,oe=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ie=c[U-7],ae=ie.high,se=ie.low,le=c[U-16],ce=le.high,de=le.low;X=(X=(X=Z+ae+((Y=Q+se)>>>0<Q>>>0?1:0))+ne+((Y+=oe)>>>0<oe>>>0?1:0))+ce+((Y+=de)>>>0<de>>>0?1:0),G.high=X,G.low=Y}var ue,pe=H&R^~H&$,he=L&I^~L&F,fe=P&E^P&O^E&O,me=M&j^M&N^j&N,ve=(P>>>28|M<<4)^(P<<30|M>>>2)^(P<<25|M>>>7),ge=(M>>>28|P<<4)^(M<<30|P>>>2)^(M<<25|P>>>7),ye=(H>>>14|L<<18)^(H>>>18|L<<14)^(H<<23|L>>>9),be=(L>>>14|H<<18)^(L>>>18|H<<14)^(L<<23|H>>>9),xe=l[U],we=xe.high,De=xe.low,Ce=z+ye+((ue=W+be)>>>0<W>>>0?1:0),Ae=ge+me;z=$,W=F,$=R,F=I,R=H,I=L,H=B+(Ce=(Ce=(Ce=Ce+pe+((ue+=he)>>>0<he>>>0?1:0))+we+((ue+=De)>>>0<De>>>0?1:0))+X+((ue+=Y)>>>0<Y>>>0?1:0))+((L=q+ue|0)>>>0<q>>>0?1:0)|0,B=O,q=N,O=E,N=j,E=P,j=M,P=Ce+(ve+fe+(Ae>>>0<ge>>>0?1:0))+((M=ue+Ae|0)>>>0<ue>>>0?1:0)|0}f=n.low=f+M,n.high=h+P+(f>>>0<M>>>0?1:0),v=o.low=v+j,o.high=m+E+(v>>>0<j>>>0?1:0),y=i.low=y+N,i.high=g+O+(y>>>0<N>>>0?1:0),x=a.low=x+q,a.high=b+B+(x>>>0<q>>>0?1:0),D=s.low=D+L,s.high=w+H+(D>>>0<L>>>0?1:0),A=d.low=A+I,d.high=C+R+(A>>>0<I>>>0?1:0),S=u.low=S+F,u.high=k+$+(S>>>0<F>>>0?1:0),T=p.low=T+W,p.high=_+z+(T>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(d),e.HmacSHA512=t._createHmacHelper(d)}(),n.SHA512)},7628:function(e,t,r){var n;e.exports=(n=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=n,t=e.lib,r=t.WordArray,o=t.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[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],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{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],u=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],d=l[i];for(r=0;r<24;r++)c[r/6|0]|=t[(s[r]-1+d)%28]<<31-r%6,c[4+(r/6|0)]|=t[28+(s[r+24]-1+d)%28]<<31-r%6;for(c[0]=c[0]<<1|c[0]>>>31,r=1;r<7;r++)c[r]=c[r]>>>4*(r-1)+3;c[7]=c[7]<<5|c[7]>>>27}var u=this._invSubKeys=[];for(r=0;r<16;r++)u[r]=o[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],i=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^o[l])&d[l])>>>0];this._lBlock=a,this._rBlock=i^s}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function h(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=o._createHelper(u);var f=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(r.create(t)),this._des2=u.createEncryptor(r.create(n)),this._des3=u.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(f)}(),n.TripleDES)},3240:function(e,t,r){var n,o,i,a,s,l;e.exports=(n=r(9021),i=(o=n).lib,a=i.Base,s=i.WordArray,(l=o.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),l.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push(o.high),r.push(o.low)}return s.create(r,this.sigBytes)},clone:function(){for(var e=a.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),n)},4692:function(e,t){var r;
18
+ function(){var e=n,t=e.lib,r=t.WordArray,o=t.Hasher,i=e.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),u=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=i.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,p,b,x,w,D,C,A,k,S,_,T=this._hash.words,P=d.words,M=u.words,E=a.words,j=s.words,O=l.words,N=c.words;for(D=i=T[0],C=p=T[1],A=b=T[2],k=x=T[3],S=w=T[4],r=0;r<80;r+=1)_=i+e[t+E[r]]|0,_+=r<16?h(p,b,x)+P[0]:r<32?f(p,b,x)+P[1]:r<48?m(p,b,x)+P[2]:r<64?v(p,b,x)+P[3]:g(p,b,x)+P[4],_=(_=y(_|=0,O[r]))+w|0,i=w,w=x,x=y(b,10),b=p,p=_,_=D+e[t+j[r]]|0,_+=r<16?g(C,A,k)+M[0]:r<32?v(C,A,k)+M[1]:r<48?m(C,A,k)+M[2]:r<64?f(C,A,k)+M[3]:h(C,A,k)+M[4],_=(_=y(_|=0,N[r]))+S|0,D=S,S=k,k=y(A,10),A=C,C=_;_=T[1]+b+k|0,T[1]=T[2]+x+S|0,T[2]=T[3]+w+D|0,T[3]=T[4]+i+C|0,T[4]=T[0]+p+A|0,T[0]=_},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function f(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function v(e,t,r){return e&r|t&~r}function g(e,t,r){return e^(t|~r)}function y(e,t){return e<<t|e>>>32-t}e.RIPEMD160=o._createHelper(p),e.HmacRIPEMD160=o._createHmacHelper(p)}(Math),n.RIPEMD160)},5471:function(e,t,r){var n,o,i,a,s,l,c,d;e.exports=(o=(n=d=r(9021)).lib,i=o.WordArray,a=o.Hasher,s=n.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var d=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=d<<1|d>>>31}var u=(n<<5|n>>>27)+s+l[c];u+=c<20?1518500249+(o&i|~o&a):c<40?1859775393+(o^i^a):c<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,s=a,a=i,i=o<<30|o>>>2,o=n,n=u}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c),d.SHA1)},6308:function(e,t,r){var n,o,i,a,s,l;e.exports=(l=r(9021),r(3009),o=(n=l).lib.WordArray,i=n.algo,a=i.SHA256,s=i.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),l.SHA224)},3009:function(e,t,r){var n;e.exports=(n=r(9021),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[],l=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(s[o]=r(e.pow(n,.5))),l[o]=r(e.pow(n,1/3)),o++),n++}();var c=[],d=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],d=r[5],u=r[6],p=r[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var f=c[h-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=c[h-2],g=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;c[h]=m+c[h-7]+g+c[h-16]}var y=n&o^n&i^o&i,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),x=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&d^~s&u)+l[h]+c[h];p=u,u=d,d=s,s=a+x|0,a=i,i=o,o=n,n=x+(b+y)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+d|0,r[6]=r[6]+u|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(d),t.HmacSHA256=i._createHmacHelper(d)}(Math),n.SHA256)},5953:function(e,t,r){var n;e.exports=(n=r(9021),r(3240),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.x64.Word,s=t.algo,l=[],c=[],d=[];!function(){for(var e=1,t=0,r=0;r<24;r++){l[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,u=0,p=0;p<7;p++){if(1&o){var h=(1<<p)-1;h<32?u^=1<<h:s^=1<<h-32}128&o?o=o<<1^113:o<<=1}d[i]=a.create(s,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=a.create()}();var p=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,o=0;o<n;o++){var i=e[t+2*o],a=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(T=r[o]).high^=a,T.low^=i}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var h=0,f=0,m=0;m<5;m++)h^=(T=r[p+5*m]).high,f^=T.low;var v=u[p];v.high=h,v.low=f}for(p=0;p<5;p++){var g=u[(p+4)%5],y=u[(p+1)%5],b=y.high,x=y.low;for(h=g.high^(b<<1|x>>>31),f=g.low^(x<<1|b>>>31),m=0;m<5;m++)(T=r[p+5*m]).high^=h,T.low^=f}for(var w=1;w<25;w++){var D=(T=r[w]).high,C=T.low,A=l[w];A<32?(h=D<<A|C>>>32-A,f=C<<A|D>>>32-A):(h=C<<A-32|D>>>64-A,f=D<<A-32|C>>>64-A);var k=u[c[w]];k.high=h,k.low=f}var S=u[0],_=r[0];for(S.high=_.high,S.low=_.low,p=0;p<5;p++)for(m=0;m<5;m++){var T=r[w=p+5*m],P=u[w],M=u[(p+1)%5+5*m],E=u[(p+2)%5+5*m];T.high=P.high^~M.high&E.high,T.low=P.low^~M.low&E.low}T=r[0];var j=d[s];T.high^=j.high,T.low^=j.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],d=0;d<l;d++){var u=a[d],p=u.high,h=u.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(p)}return new o.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=i._createHelper(p),t.HmacSHA3=i._createHmacHelper(p)}(Math),n.SHA3)},9557:function(e,t,r){var n,o,i,a,s,l,c,d;e.exports=(d=r(9021),r(3240),r(1380),o=(n=d).x64,i=o.Word,a=o.WordArray,s=n.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=l._createHelper(c),n.HmacSHA384=l._createHmacHelper(c),d.SHA384)},1380:function(e,t,r){var n;e.exports=(n=r(9021),r(3240),function(){var e=n,t=e.lib.Hasher,r=e.x64,o=r.Word,i=r.WordArray,a=e.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var d=a.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],d=r[5],u=r[6],p=r[7],h=n.high,f=n.low,m=o.high,v=o.low,g=i.high,y=i.low,b=a.high,x=a.low,w=s.high,D=s.low,C=d.high,A=d.low,k=u.high,S=u.low,_=p.high,T=p.low,P=h,M=f,E=m,j=v,O=g,N=y,B=b,H=x,q=w,L=D,R=C,I=A,$=k,F=S,z=_,W=T,U=0;U<80;U++){var Y,X,G=c[U];if(U<16)X=G.high=0|e[t+2*U],Y=G.low=0|e[t+2*U+1];else{var J=c[U-15],K=J.high,V=J.low,Z=(K>>>1|V<<31)^(K>>>8|V<<24)^K>>>7,Q=(V>>>1|K<<31)^(V>>>8|K<<24)^(V>>>7|K<<25),ee=c[U-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,oe=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ie=c[U-7],ae=ie.high,se=ie.low,le=c[U-16],ce=le.high,de=le.low;X=(X=(X=Z+ae+((Y=Q+se)>>>0<Q>>>0?1:0))+ne+((Y+=oe)>>>0<oe>>>0?1:0))+ce+((Y+=de)>>>0<de>>>0?1:0),G.high=X,G.low=Y}var ue,pe=q&R^~q&$,he=L&I^~L&F,fe=P&E^P&O^E&O,me=M&j^M&N^j&N,ve=(P>>>28|M<<4)^(P<<30|M>>>2)^(P<<25|M>>>7),ge=(M>>>28|P<<4)^(M<<30|P>>>2)^(M<<25|P>>>7),ye=(q>>>14|L<<18)^(q>>>18|L<<14)^(q<<23|L>>>9),be=(L>>>14|q<<18)^(L>>>18|q<<14)^(L<<23|q>>>9),xe=l[U],we=xe.high,De=xe.low,Ce=z+ye+((ue=W+be)>>>0<W>>>0?1:0),Ae=ge+me;z=$,W=F,$=R,F=I,R=q,I=L,q=B+(Ce=(Ce=(Ce=Ce+pe+((ue+=he)>>>0<he>>>0?1:0))+we+((ue+=De)>>>0<De>>>0?1:0))+X+((ue+=Y)>>>0<Y>>>0?1:0))+((L=H+ue|0)>>>0<H>>>0?1:0)|0,B=O,H=N,O=E,N=j,E=P,j=M,P=Ce+(ve+fe+(Ae>>>0<ge>>>0?1:0))+((M=ue+Ae|0)>>>0<ue>>>0?1:0)|0}f=n.low=f+M,n.high=h+P+(f>>>0<M>>>0?1:0),v=o.low=v+j,o.high=m+E+(v>>>0<j>>>0?1:0),y=i.low=y+N,i.high=g+O+(y>>>0<N>>>0?1:0),x=a.low=x+H,a.high=b+B+(x>>>0<H>>>0?1:0),D=s.low=D+L,s.high=w+q+(D>>>0<L>>>0?1:0),A=d.low=A+I,d.high=C+R+(A>>>0<I>>>0?1:0),S=u.low=S+F,u.high=k+$+(S>>>0<F>>>0?1:0),T=p.low=T+W,p.high=_+z+(T>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(d),e.HmacSHA512=t._createHmacHelper(d)}(),n.SHA512)},7628:function(e,t,r){var n;e.exports=(n=r(9021),r(754),r(4636),r(9506),r(7165),function(){var e=n,t=e.lib,r=t.WordArray,o=t.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[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],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{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],u=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],d=l[i];for(r=0;r<24;r++)c[r/6|0]|=t[(s[r]-1+d)%28]<<31-r%6,c[4+(r/6|0)]|=t[28+(s[r+24]-1+d)%28]<<31-r%6;for(c[0]=c[0]<<1|c[0]>>>31,r=1;r<7;r++)c[r]=c[r]>>>4*(r-1)+3;c[7]=c[7]<<5|c[7]>>>27}var u=this._invSubKeys=[];for(r=0;r<16;r++)u[r]=o[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],i=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^o[l])&d[l])>>>0];this._lBlock=a,this._rBlock=i^s}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function h(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=o._createHelper(u);var f=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(r.create(t)),this._des2=u.createEncryptor(r.create(n)),this._des3=u.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(f)}(),n.TripleDES)},3240:function(e,t,r){var n,o,i,a,s,l;e.exports=(n=r(9021),i=(o=n).lib,a=i.Base,s=i.WordArray,(l=o.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),l.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push(o.high),r.push(o.low)}return s.create(r,this.sigBytes)},clone:function(){for(var e=a.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),n)},4692:function(e,t){var r;
19
19
  /*!
20
20
  * jQuery JavaScript Library v3.7.1
21
21
  * https://jquery.com/
@@ -25,18 +25,18 @@ function(){var e=n,t=e.lib,r=t.WordArray,o=t.Hasher,i=e.algo,a=r.create([0,1,2,3
25
25
  * https://jquery.org/license
26
26
  *
27
27
  * Date: 2023-08-28T13:37Z
28
- */!function(t,r){"use strict";"object"==typeof e.exports?e.exports=t.document?r(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return r(e)}:r(t)}("undefined"!=typeof window?window:this,(function(n,o){"use strict";var i=[],a=Object.getPrototypeOf,s=i.slice,l=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},c=i.push,d=i.indexOf,u={},p=u.toString,h=u.hasOwnProperty,f=h.toString,m=f.call(Object),v={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=n.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,r){var n,o,i=(r=r||b).createElement("script");if(i.text=e,t)for(n in x)(o=t[n]||t.getAttribute&&t.getAttribute(n))&&i.setAttribute(n,o);r.head.appendChild(i).parentNode.removeChild(i)}function D(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[p.call(e)]||"object":typeof e}var C="3.7.1",A=/HTML$/i,k=function(e,t){return new k.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,r=D(e);return!g(e)&&!y(e)&&("array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e)}function _(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}k.fn=k.prototype={jquery:C,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,r){return e.call(t,r,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,r=+e+(e<0?t:0);return this.pushStack(r>=0&&r<t?[this[r]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},k.extend=k.fn.extend=function(){var e,t,r,n,o,i,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=e[t],"__proto__"!==t&&a!==n&&(c&&n&&(k.isPlainObject(n)||(o=Array.isArray(n)))?(r=a[t],i=o&&!Array.isArray(r)?[]:o||k.isPlainObject(r)?r:{},o=!1,a[t]=k.extend(c,i,n)):void 0!==n&&(a[t]=n));return a},k.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,r;return!(!e||"[object Object]"!==p.call(e)||(t=a(e))&&("function"!=typeof(r=h.call(t,"constructor")&&t.constructor)||f.call(r)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,r){w(e,{nonce:t&&t.nonce},r)},each:function(e,t){var r,n=0;if(S(e))for(r=e.length;n<r&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},text:function(e){var t,r="",n=0,o=e.nodeType;if(!o)for(;t=e[n++];)r+=k.text(t);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:r},makeArray:function(e,t){var r=t||[];return null!=e&&(S(Object(e))?k.merge(r,"string"==typeof e?[e]:e):c.call(r,e)),r},inArray:function(e,t,r){return null==t?-1:d.call(t,e,r)},isXMLDoc:function(e){var t=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!A.test(t||r&&r.nodeName||"HTML")},merge:function(e,t){for(var r=+t.length,n=0,o=e.length;n<r;n++)e[o++]=t[n];return e.length=o,e},grep:function(e,t,r){for(var n=[],o=0,i=e.length,a=!r;o<i;o++)!t(e[o],o)!==a&&n.push(e[o]);return n},map:function(e,t,r){var n,o,i=0,a=[];if(S(e))for(n=e.length;i<n;i++)null!=(o=t(e[i],i,r))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,r))&&a.push(o);return l(a)},guid:1,support:v}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=i[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var T=i.pop,P=i.sort,M=i.splice,E="[\\x20\\t\\r\\n\\f]",j=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g");k.contains=function(e,t){var r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(e.contains?e.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function N(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}k.escapeSelector=function(e){return(e+"").replace(O,N)};var B=b,q=c;!function(){var e,t,r,o,a,l,c,u,p,f,m=q,g=k.expando,y=0,b=0,x=ee(),w=ee(),D=ee(),C=ee(),A=function(e,t){return e===t&&(a=!0),0},S="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\["+E+"*("+O+")(?:"+E+"*([*^$|!~]?=)"+E+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+E+"*\\]",H=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",L=new RegExp(E+"+","g"),R=new RegExp("^"+E+"*,"+E+"*"),I=new RegExp("^"+E+"*([>+~]|"+E+")"+E+"*"),$=new RegExp(E+"|>"),F=new RegExp(H),z=new RegExp("^"+O+"$"),W={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,J=new RegExp("\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\([^\\r\\n\\f])","g"),K=function(e,t){var r="0x"+e.slice(1)-65536;return t||(r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320))},V=function(){le()},Z=pe((function(e){return!0===e.disabled&&_(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(i=s.call(B.childNodes),B.childNodes),i[B.childNodes.length].nodeType}catch(e){m={apply:function(e,t){q.apply(e,s.call(t))},call:function(e){q.apply(e,s.call(arguments,1))}}}function Q(e,t,r,n){var o,i,a,s,c,d,h,f=t&&t.ownerDocument,y=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return r;if(!n&&(le(t),t=t||l,u)){if(11!==y&&(c=X.exec(e)))if(o=c[1]){if(9===y){if(!(a=t.getElementById(o)))return r;if(a.id===o)return m.call(r,a),r}else if(f&&(a=f.getElementById(o))&&Q.contains(t,a)&&a.id===o)return m.call(r,a),r}else{if(c[2])return m.apply(r,t.getElementsByTagName(e)),r;if((o=c[3])&&t.getElementsByClassName)return m.apply(r,t.getElementsByClassName(o)),r}if(!(C[e+" "]||p&&p.test(e))){if(h=e,f=t,1===y&&($.test(e)||I.test(e))){for((f=G.test(e)&&se(t.parentNode)||t)==t&&v.scope||((s=t.getAttribute("id"))?s=k.escapeSelector(s):t.setAttribute("id",s=g)),i=(d=de(e)).length;i--;)d[i]=(s?"#"+s:":scope")+" "+ue(d[i]);h=d.join(",")}try{return m.apply(r,f.querySelectorAll(h)),r}catch(t){C(e,!0)}finally{s===g&&t.removeAttribute("id")}}}return ye(e.replace(j,"$1"),t,r,n)}function ee(){var e=[];return function r(n,o){return e.push(n+" ")>t.cacheLength&&delete r[e.shift()],r[n+" "]=o}}function te(e){return e[g]=!0,e}function re(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ne(e){return function(t){return _(t,"input")&&t.type===e}}function oe(e){return function(t){return(_(t,"input")||_(t,"button"))&&t.type===e}}function ie(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Z(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(r,n){for(var o,i=e([],r.length,t),a=i.length;a--;)r[o=i[a]]&&(r[o]=!(n[o]=r[o]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var r,n=e?e.ownerDocument||e:B;return n!=l&&9===n.nodeType&&n.documentElement?(c=(l=n).documentElement,u=!k.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&B!=l&&(r=l.defaultView)&&r.top!==r&&r.addEventListener("unload",V),v.getById=re((function(e){return c.appendChild(e).id=k.expando,!l.getElementsByName||!l.getElementsByName(k.expando).length})),v.disconnectedMatch=re((function(e){return f.call(e,"*")})),v.scope=re((function(){return l.querySelectorAll(":scope")})),v.cssHas=re((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),v.getById?(t.filter.ID=function(e){var t=e.replace(J,K);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&u){var r=t.getElementById(e);return r?[r]:[]}}):(t.filter.ID=function(e){var t=e.replace(J,K);return function(e){var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return r&&r.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&u){var r,n,o,i=t.getElementById(e);if(i){if((r=i.getAttributeNode("id"))&&r.value===e)return[i];for(o=t.getElementsByName(e),n=0;i=o[n++];)if((r=i.getAttributeNode("id"))&&r.value===e)return[i]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&u)return t.getElementsByClassName(e)},p=[],re((function(e){var t;c.appendChild(e).innerHTML="<a id='"+g+"' href='' disabled='disabled'></a><select id='"+g+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||p.push("\\["+E+"*(?:value|"+S+")"),e.querySelectorAll("[id~="+g+"-]").length||p.push("~="),e.querySelectorAll("a#"+g+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+E+"*name"+E+"*="+E+"*(?:''|\"\")")})),v.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),A=function(e,t){if(e===t)return a=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!v.sortDetached&&t.compareDocumentPosition(e)===r?e===l||e.ownerDocument==B&&Q.contains(B,e)?-1:t===l||t.ownerDocument==B&&Q.contains(B,t)?1:o?d.call(o,e)-d.call(o,t):0:4&r?-1:1)},l):l}for(e in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(le(e),u&&!C[t+" "]&&(!p||!p.test(t)))try{var r=f.call(e,t);if(r||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){C(t,!0)}return Q(t,l,null,[e]).length>0},Q.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),k.contains(e,t)},Q.attr=function(e,r){(e.ownerDocument||e)!=l&&le(e);var n=t.attrHandle[r.toLowerCase()],o=n&&h.call(t.attrHandle,r.toLowerCase())?n(e,r,!u):void 0;return void 0!==o?o:e.getAttribute(r)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},k.uniqueSort=function(e){var t,r=[],n=0,i=0;if(a=!v.sortStable,o=!v.sortStable&&s.call(e,0),P.call(e,A),a){for(;t=e[i++];)t===e[i]&&(n=r.push(i));for(;n--;)M.call(e,r[n],1)}return o=null,e},k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(s.apply(this)))},t=k.expr={cacheLength:50,createPseudo:te,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,K),e[3]=(e[3]||e[4]||e[5]||"").replace(J,K),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Q.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Q.error(e[0]),e},PSEUDO:function(e){var t,r=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&F.test(r)&&(t=de(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,K).toLowerCase();return"*"===e?function(){return!0}:function(e){return _(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+E+")"+e+"("+E+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,r){return function(n){var o=Q.attr(n,e);return null==o?"!="===t:!t||(o+="","="===t?o===r:"!="===t?o!==r:"^="===t?r&&0===o.indexOf(r):"*="===t?r&&o.indexOf(r)>-1:"$="===t?r&&o.slice(-r.length)===r:"~="===t?(" "+o.replace(L," ")+" ").indexOf(r)>-1:"|="===t&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,r,n,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===n&&0===o?function(e){return!!e.parentNode}:function(t,r,l){var c,d,u,p,h,f=i!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),b=!l&&!s,x=!1;if(m){if(i){for(;f;){for(u=t;u=u[f];)if(s?_(u,v):1===u.nodeType)return!1;h=f="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&b){for(x=(p=(c=(d=m[g]||(m[g]={}))[e]||[])[0]===y&&c[1])&&c[2],u=p&&m.childNodes[p];u=++p&&u&&u[f]||(x=p=0)||h.pop();)if(1===u.nodeType&&++x&&u===t){d[e]=[y,p,x];break}}else if(b&&(x=p=(c=(d=t[g]||(t[g]={}))[e]||[])[0]===y&&c[1]),!1===x)for(;(u=++p&&u&&u[f]||(x=p=0)||h.pop())&&(!(s?_(u,v):1===u.nodeType)||!++x||(b&&((d=u[g]||(u[g]={}))[e]=[y,x]),u!==t)););return(x-=o)===n||x%n==0&&x/n>=0}}},PSEUDO:function(e,r){var n,o=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Q.error("unsupported pseudo: "+e);return o[g]?o(r):o.length>1?(n=[e,e,"",r],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var n,i=o(e,r),a=i.length;a--;)e[n=d.call(e,i[a])]=!(t[n]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:te((function(e){var t=[],r=[],n=ge(e.replace(j,"$1"));return n[g]?te((function(e,t,r,o){for(var i,a=n(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,o,i){return t[0]=e,n(t,null,i,r),t[0]=null,!r.pop()}})),has:te((function(e){return function(t){return Q(e,t).length>0}})),contains:te((function(e){return e=e.replace(J,K),function(t){return(t.textContent||k.text(t)).indexOf(e)>-1}})),lang:te((function(e){return z.test(e||"")||Q.error("unsupported lang: "+e),e=e.replace(J,K).toLowerCase(),function(t){var r;do{if(r=u?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(r=r.toLowerCase())===e||0===r.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ie(!1),disabled:ie(!0),checked:function(e){return _(e,"input")&&!!e.checked||_(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return U.test(e.nodeName)},button:function(e){return _(e,"input")&&"button"===e.type||_(e,"button")},text:function(e){var t;return _(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,r){return[r<0?r+t:r]})),even:ae((function(e,t){for(var r=0;r<t;r+=2)e.push(r);return e})),odd:ae((function(e,t){for(var r=1;r<t;r+=2)e.push(r);return e})),lt:ae((function(e,t,r){var n;for(n=r<0?r+t:r>t?t:r;--n>=0;)e.push(n);return e})),gt:ae((function(e,t,r){for(var n=r<0?r+t:r;++n<t;)e.push(n);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ne(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=oe(e);function ce(){}function de(e,r){var n,o,i,a,s,l,c,d=w[e+" "];if(d)return r?0:d.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(a in n&&!(o=R.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(i=[])),n=!1,(o=I.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(j," ")}),s=s.slice(n.length)),t.filter)!(o=W[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return r?s.length:s?Q.error(e):w(e,l).slice(0)}function ue(e){for(var t=0,r=e.length,n="";t<r;t++)n+=e[t].value;return n}function pe(e,t,r){var n=t.dir,o=t.next,i=o||n,a=r&&"parentNode"===i,s=b++;return t.first?function(t,r,o){for(;t=t[n];)if(1===t.nodeType||a)return e(t,r,o);return!1}:function(t,r,l){var c,d,u=[y,s];if(l){for(;t=t[n];)if((1===t.nodeType||a)&&e(t,r,l))return!0}else for(;t=t[n];)if(1===t.nodeType||a)if(d=t[g]||(t[g]={}),o&&_(t,o))t=t[n]||t;else{if((c=d[i])&&c[0]===y&&c[1]===s)return u[2]=c[2];if(d[i]=u,u[2]=e(t,r,l))return!0}return!1}}function he(e){return e.length>1?function(t,r,n){for(var o=e.length;o--;)if(!e[o](t,r,n))return!1;return!0}:e[0]}function fe(e,t,r,n,o){for(var i,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(r&&!r(i,n,o)||(a.push(i),c&&t.push(s)));return a}function me(e,t,r,n,o,i){return n&&!n[g]&&(n=me(n)),o&&!o[g]&&(o=me(o,i)),te((function(i,a,s,l){var c,u,p,h,f=[],v=[],g=a.length,y=i||function(e,t,r){for(var n=0,o=t.length;n<o;n++)Q(e,t[n],r);return r}(t||"*",s.nodeType?[s]:s,[]),b=!e||!i&&t?y:fe(y,f,e,s,l);if(r?r(b,h=o||(i?e:g||n)?[]:a,s,l):h=b,n)for(c=fe(h,v),n(c,[],s,l),u=c.length;u--;)(p=c[u])&&(h[v[u]]=!(b[v[u]]=p));if(i){if(o||e){if(o){for(c=[],u=h.length;u--;)(p=h[u])&&c.push(b[u]=p);o(null,h=[],c,l)}for(u=h.length;u--;)(p=h[u])&&(c=o?d.call(i,p):f[u])>-1&&(i[c]=!(a[c]=p))}}else h=fe(h===a?h.splice(g,h.length):h),o?o(null,a,h,l):m.apply(a,h)}))}function ve(e){for(var n,o,i,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,u=pe((function(e){return e===n}),l,!0),p=pe((function(e){return d.call(n,e)>-1}),l,!0),h=[function(e,t,o){var i=!s&&(o||t!=r)||((n=t).nodeType?u(e,t,o):p(e,t,o));return n=null,i}];c<a;c++)if(o=t.relative[e[c].type])h=[pe(he(h),o)];else{if((o=t.filter[e[c].type].apply(null,e[c].matches))[g]){for(i=++c;i<a&&!t.relative[e[i].type];i++);return me(c>1&&he(h),c>1&&ue(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(j,"$1"),o,c<i&&ve(e.slice(c,i)),i<a&&ve(e=e.slice(i)),i<a&&ue(e))}h.push(o)}return he(h)}function ge(e,n){var o,i=[],a=[],s=D[e+" "];if(!s){for(n||(n=de(e)),o=n.length;o--;)(s=ve(n[o]))[g]?i.push(s):a.push(s);s=D(e,function(e,n){var o=n.length>0,i=e.length>0,a=function(a,s,c,d,p){var h,f,v,g=0,b="0",x=a&&[],w=[],D=r,C=a||i&&t.find.TAG("*",p),A=y+=null==D?1:Math.random()||.1,S=C.length;for(p&&(r=s==l||s||p);b!==S&&null!=(h=C[b]);b++){if(i&&h){for(f=0,s||h.ownerDocument==l||(le(h),c=!u);v=e[f++];)if(v(h,s||l,c)){m.call(d,h);break}p&&(y=A)}o&&((h=!v&&h)&&g--,a&&x.push(h))}if(g+=b,o&&b!==g){for(f=0;v=n[f++];)v(x,w,s,c);if(a){if(g>0)for(;b--;)x[b]||w[b]||(w[b]=T.call(d));w=fe(w)}m.apply(d,w),p&&!a&&w.length>0&&g+n.length>1&&k.uniqueSort(d)}return p&&(y=A,r=D),x};return o?te(a):a}(a,i)),s.selector=e}return s}function ye(e,r,n,o){var i,a,s,l,c,d="function"==typeof e&&e,p=!o&&de(e=d.selector||e);if(n=n||[],1===p.length){if((a=p[0]=p[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===r.nodeType&&u&&t.relative[a[1].type]){if(!(r=(t.find.ID(s.matches[0].replace(J,K),r)||[])[0]))return n;d&&(r=r.parentNode),e=e.slice(a.shift().value.length)}for(i=W.needsContext.test(e)?0:a.length;i--&&(s=a[i],!t.relative[l=s.type]);)if((c=t.find[l])&&(o=c(s.matches[0].replace(J,K),G.test(a[0].type)&&se(r.parentNode)||r))){if(a.splice(i,1),!(e=o.length&&ue(a)))return m.apply(n,o),n;break}}return(d||ge(e,p))(o,r,!u,n,!r||G.test(e)&&se(r.parentNode)||r),n}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,v.sortStable=g.split("").sort(A).join("")===g,le(),v.sortDetached=re((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),k.find=Q,k.expr[":"]=k.expr.pseudos,k.unique=k.uniqueSort,Q.compile=ge,Q.select=ye,Q.setDocument=le,Q.tokenize=de,Q.escape=k.escapeSelector,Q.getText=k.text,Q.isXML=k.isXMLDoc,Q.selectors=k.expr,Q.support=k.support,Q.uniqueSort=k.uniqueSort}();var H=function(e,t,r){for(var n=[],o=void 0!==r;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&k(e).is(r))break;n.push(e)}return n},L=function(e,t){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&r.push(e);return r},R=k.expr.match.needsContext,I=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $(e,t,r){return g(t)?k.grep(e,(function(e,n){return!!t.call(e,n,e)!==r})):t.nodeType?k.grep(e,(function(e){return e===t!==r})):"string"!=typeof t?k.grep(e,(function(e){return d.call(t,e)>-1!==r})):k.filter(t,e,r)}k.filter=function(e,t,r){var n=t[0];return r&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?k.find.matchesSelector(n,e)?[n]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,r,n=this.length,o=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<n;t++)if(k.contains(o[t],this))return!0})));for(r=this.pushStack([]),t=0;t<n;t++)k.find(e,o[t],r);return n>1?k.uniqueSort(r):r},filter:function(e){return this.pushStack($(this,e||[],!1))},not:function(e){return this.pushStack($(this,e||[],!0))},is:function(e){return!!$(this,"string"==typeof e&&R.test(e)?k(e):e||[],!1).length}});var F,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,r){var n,o;if(!e)return this;if(r=r||F,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:z.exec(e))||!n[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),I.test(n[1])&&k.isPlainObject(t))for(n in t)g(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(o=b.getElementById(n[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==r.ready?r.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,F=k(b);var W=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function Y(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),r=t.length;return this.filter((function(){for(var e=0;e<r;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var r,n=0,o=this.length,i=[],a="string"!=typeof e&&k(e);if(!R.test(e))for(;n<o;n++)for(r=this[n];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(a?a.index(r)>-1:1===r.nodeType&&k.find.matchesSelector(r,e))){i.push(r);break}return this.pushStack(i.length>1?k.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?d.call(k(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return H(e,"parentNode")},parentsUntil:function(e,t,r){return H(e,"parentNode",r)},next:function(e){return Y(e,"nextSibling")},prev:function(e){return Y(e,"previousSibling")},nextAll:function(e){return H(e,"nextSibling")},prevAll:function(e){return H(e,"previousSibling")},nextUntil:function(e,t,r){return H(e,"nextSibling",r)},prevUntil:function(e,t,r){return H(e,"previousSibling",r)},siblings:function(e){return L((e.parentNode||{}).firstChild,e)},children:function(e){return L(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(_(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(r,n){var o=k.map(this,t,r);return"Until"!==e.slice(-5)&&(n=r),n&&"string"==typeof n&&(o=k.filter(n,o)),this.length>1&&(U[e]||k.uniqueSort(o),W.test(e)&&o.reverse()),this.pushStack(o)}}));var X=/[^\x20\t\r\n\f]+/g;function G(e){return e}function J(e){throw e}function K(e,t,r,n){var o;try{e&&g(o=e.promise)?o.call(e).done(t).fail(r):e&&g(o=e.then)?o.call(e,t,r):t.apply(void 0,[e].slice(n))}catch(e){r.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(X)||[],(function(e,r){t[r]=!0})),t}(e):k.extend({},e);var t,r,n,o,i=[],a=[],s=-1,l=function(){for(o=o||e.once,n=t=!0;a.length;s=-1)for(r=a.shift();++s<i.length;)!1===i[s].apply(r[0],r[1])&&e.stopOnFalse&&(s=i.length,r=!1);e.memory||(r=!1),t=!1,o&&(i=r?[]:"")},c={add:function(){return i&&(r&&!t&&(s=i.length-1,a.push(r)),function t(r){k.each(r,(function(r,n){g(n)?e.unique&&c.has(n)||i.push(n):n&&n.length&&"string"!==D(n)&&t(n)}))}(arguments),r&&!t&&l()),this},remove:function(){return k.each(arguments,(function(e,t){for(var r;(r=k.inArray(t,i,r))>-1;)i.splice(r,1),r<=s&&s--})),this},has:function(e){return e?k.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=r="",this},disabled:function(){return!i},lock:function(){return o=a=[],r||t||(i=r=""),this},locked:function(){return!!o},fireWith:function(e,r){return o||(r=[e,(r=r||[]).slice?r.slice():r],a.push(r),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(r){k.each(t,(function(t,n){var o=g(e[n[4]])&&e[n[4]];i[n[1]]((function(){var e=o&&o.apply(this,arguments);e&&g(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[n[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,o){var i=0;function a(e,t,r,o){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<i)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,g(c)?o?c.call(n,a(i,t,G,o),a(i,t,J,o)):(i++,c.call(n,a(i,t,G,o),a(i,t,J,o),a(i,t,G,t.notifyWith))):(r!==G&&(s=void 0,l=[n]),(o||t.resolveWith)(s,l))}},d=o?c:function(){try{c()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,d.error),e+1>=i&&(r!==J&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?d():(k.Deferred.getErrorHook?d.error=k.Deferred.getErrorHook():k.Deferred.getStackHook&&(d.error=k.Deferred.getStackHook()),n.setTimeout(d))}}return k.Deferred((function(n){t[0][3].add(a(0,n,g(o)?o:G,n.notifyWith)),t[1][3].add(a(0,n,g(e)?e:G)),t[2][3].add(a(0,n,g(r)?r:J))})).promise()},promise:function(e){return null!=e?k.extend(e,o):o}},i={};return k.each(t,(function(e,n){var a=n[2],s=n[5];o[n[1]]=a.add,s&&a.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith})),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,r=t,n=Array(r),o=s.call(arguments),i=k.Deferred(),a=function(e){return function(r){n[e]=this,o[e]=arguments.length>1?s.call(arguments):r,--t||i.resolveWith(n,o)}};if(t<=1&&(K(e,i.done(a(r)).resolve,i.reject,!t),"pending"===i.state()||g(o[r]&&o[r].then)))return i.then();for(;r--;)K(o[r],a(r),i.reject);return i.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&V.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout((function(){throw e}))};var Z=k.Deferred();function Q(){b.removeEventListener("DOMContentLoaded",Q),n.removeEventListener("load",Q),k.ready()}k.fn.ready=function(e){return Z.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||Z.resolveWith(b,[k]))}}),k.ready.then=Z.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",Q),n.addEventListener("load",Q));var ee=function(e,t,r,n,o,i,a){var s=0,l=e.length,c=null==r;if("object"===D(r))for(s in o=!0,r)ee(e,t,s,r[s],!0,i,a);else if(void 0!==n&&(o=!0,g(n)||(a=!0),c&&(a?(t.call(e,n),t=null):(c=t,t=function(e,t,r){return c.call(k(e),r)})),t))for(;s<l;s++)t(e[s],r,a?n:n.call(e[s],s,t(e[s],r)));return o?e:c?t.call(e):l?t(e[0],r):i},te=/^-ms-/,re=/-([a-z])/g;function ne(e,t){return t.toUpperCase()}function oe(e){return e.replace(te,"ms-").replace(re,ne)}var ie=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=k.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ie(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,r){var n,o=this.cache(e);if("string"==typeof t)o[oe(t)]=r;else for(n in t)o[oe(n)]=t[n];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][oe(t)]},access:function(e,t,r){return void 0===t||t&&"string"==typeof t&&void 0===r?this.get(e,t):(this.set(e,t,r),void 0!==r?r:t)},remove:function(e,t){var r,n=e[this.expando];if(void 0!==n){if(void 0!==t){r=(t=Array.isArray(t)?t.map(oe):(t=oe(t))in n?[t]:t.match(X)||[]).length;for(;r--;)delete n[t[r]]}(void 0===t||k.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var se=new ae,le=new ae,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,de=/[A-Z]/g;function ue(e,t,r){var n;if(void 0===r&&1===e.nodeType)if(n="data-"+t.replace(de,"-$&").toLowerCase(),"string"==typeof(r=e.getAttribute(n))){try{r=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(r)}catch(e){}le.set(e,t,r)}else r=void 0;return r}k.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,r){return le.access(e,t,r)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,r){return se.access(e,t,r)},_removeData:function(e,t){se.remove(e,t)}}),k.fn.extend({data:function(e,t){var r,n,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=le.get(i),1===i.nodeType&&!se.get(i,"hasDataAttrs"))){for(r=a.length;r--;)a[r]&&0===(n=a[r].name).indexOf("data-")&&(n=oe(n.slice(5)),ue(i,n,o[n]));se.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var r;if(i&&void 0===t)return void 0!==(r=le.get(i,e))||void 0!==(r=ue(i,e))?r:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),k.extend({queue:function(e,t,r){var n;if(e)return t=(t||"fx")+"queue",n=se.get(e,t),r&&(!n||Array.isArray(r)?n=se.access(e,t,k.makeArray(r)):n.push(r)),n||[]},dequeue:function(e,t){t=t||"fx";var r=k.queue(e,t),n=r.length,o=r.shift(),i=k._queueHooks(e,t);"inprogress"===o&&(o=r.shift(),n--),o&&("fx"===t&&r.unshift("inprogress"),delete i.stop,o.call(e,(function(){k.dequeue(e,t)}),i)),!n&&i&&i.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return se.get(e,r)||se.access(e,r,{empty:k.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",r])}))})}}),k.fn.extend({queue:function(e,t){var r=2;return"string"!=typeof e&&(t=e,e="fx",r--),arguments.length<r?k.queue(this[0],e):void 0===t?this:this.each((function(){var r=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==r[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var r,n=1,o=k.Deferred(),i=this,a=this.length,s=function(){--n||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(r=se.get(i[a],e+"queueHooks"))&&r.empty&&(n++,r.empty.add(s));return s(),o.promise(t)}});var pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=new RegExp("^(?:([+-])=|)("+pe+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],me=b.documentElement,ve=function(e){return k.contains(e.ownerDocument,e)},ge={composed:!0};me.getRootNode&&(ve=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(ge)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ve(e)&&"none"===k.css(e,"display")};function be(e,t,r,n){var o,i,a=20,s=n?function(){return n.cur()}:function(){return k.css(e,t,"")},l=s(),c=r&&r[3]||(k.cssNumber[t]?"":"px"),d=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&he.exec(k.css(e,t));if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;a--;)k.style(e,t,d+c),(1-i)*(1-(i=s()/l||.5))<=0&&(a=0),d/=i;d*=2,k.style(e,t,d+c),r=r||[]}return r&&(d=+d||+l||0,o=r[1]?d+(r[1]+1)*r[2]:+r[2],n&&(n.unit=c,n.start=d,n.end=o)),o}var xe={};function we(e){var t,r=e.ownerDocument,n=e.nodeName,o=xe[n];return o||(t=r.body.appendChild(r.createElement(n)),o=k.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),xe[n]=o,o)}function De(e,t){for(var r,n,o=[],i=0,a=e.length;i<a;i++)(n=e[i]).style&&(r=n.style.display,t?("none"===r&&(o[i]=se.get(n,"display")||null,o[i]||(n.style.display="")),""===n.style.display&&ye(n)&&(o[i]=we(n))):"none"!==r&&(o[i]="none",se.set(n,"display",r)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}k.fn.extend({show:function(){return De(this,!0)},hide:function(){return De(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?k(this).show():k(this).hide()}))}});var Ce,Ae,ke=/^(?:checkbox|radio)$/i,Se=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_e=/^$|^module$|\/(?:java|ecma)script/i;Ce=b.createDocumentFragment().appendChild(b.createElement("div")),(Ae=b.createElement("input")).setAttribute("type","radio"),Ae.setAttribute("checked","checked"),Ae.setAttribute("name","t"),Ce.appendChild(Ae),v.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,Ce.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue,Ce.innerHTML="<option></option>",v.option=!!Ce.lastChild;var Te={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Pe(e,t){var r;return r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&_(e,t)?k.merge([e],r):r}function Me(e,t){for(var r=0,n=e.length;r<n;r++)se.set(e[r],"globalEval",!t||se.get(t[r],"globalEval"))}Te.tbody=Te.tfoot=Te.colgroup=Te.caption=Te.thead,Te.th=Te.td,v.option||(Te.optgroup=Te.option=[1,"<select multiple='multiple'>","</select>"]);var Ee=/<|&#?\w+;/;function je(e,t,r,n,o){for(var i,a,s,l,c,d,u=t.createDocumentFragment(),p=[],h=0,f=e.length;h<f;h++)if((i=e[h])||0===i)if("object"===D(i))k.merge(p,i.nodeType?[i]:i);else if(Ee.test(i)){for(a=a||u.appendChild(t.createElement("div")),s=(Se.exec(i)||["",""])[1].toLowerCase(),l=Te[s]||Te._default,a.innerHTML=l[1]+k.htmlPrefilter(i)+l[2],d=l[0];d--;)a=a.lastChild;k.merge(p,a.childNodes),(a=u.firstChild).textContent=""}else p.push(t.createTextNode(i));for(u.textContent="",h=0;i=p[h++];)if(n&&k.inArray(i,n)>-1)o&&o.push(i);else if(c=ve(i),a=Pe(u.appendChild(i),"script"),c&&Me(a),r)for(d=0;i=a[d++];)_e.test(i.type||"")&&r.push(i);return u}var Oe=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function Be(){return!1}function qe(e,t,r,n,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof r&&(n=n||r,r=void 0),t)qe(e,s,r,n,t[s],i);return e}if(null==n&&null==o?(o=r,n=r=void 0):null==o&&("string"==typeof r?(o=n,n=void 0):(o=n,n=r,r=void 0)),!1===o)o=Be;else if(!o)return e;return 1===i&&(a=o,o=function(e){return k().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=k.guid++)),e.each((function(){k.event.add(this,t,o,n,r)}))}function He(e,t,r){r?(se.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var r,n=se.get(this,t);if(1&e.isTrigger&&this[t]){if(n)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(n=s.call(arguments),se.set(this,t,n),this[t](),r=se.get(this,t),se.set(this,t,!1),n!==r)return e.stopImmediatePropagation(),e.preventDefault(),r}else n&&(se.set(this,t,k.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===se.get(e,t)&&k.event.add(e,t,Ne)}k.event={global:{},add:function(e,t,r,n,o){var i,a,s,l,c,d,u,p,h,f,m,v=se.get(e);if(ie(e))for(r.handler&&(r=(i=r).handler,o=i.selector),o&&k.find.matchesSelector(me,o),r.guid||(r.guid=k.guid++),(l=v.events)||(l=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(X)||[""]).length;c--;)h=m=(s=Oe.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h&&(u=k.event.special[h]||{},h=(o?u.delegateType:u.bindType)||h,u=k.event.special[h]||{},d=k.extend({type:h,origType:m,data:n,handler:r,guid:r.guid,selector:o,needsContext:o&&k.expr.match.needsContext.test(o),namespace:f.join(".")},i),(p=l[h])||((p=l[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,n,f,a)||e.addEventListener&&e.addEventListener(h,a)),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),o?p.splice(p.delegateCount++,0,d):p.push(d),k.event.global[h]=!0)},remove:function(e,t,r,n,o){var i,a,s,l,c,d,u,p,h,f,m,v=se.hasData(e)&&se.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(X)||[""]).length;c--;)if(h=m=(s=Oe.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h){for(u=k.event.special[h]||{},p=l[h=(n?u.delegateType:u.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)d=p[i],!o&&m!==d.origType||r&&r.guid!==d.guid||s&&!s.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(p.splice(i,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(e,d));a&&!p.length&&(u.teardown&&!1!==u.teardown.call(e,f,v.handle)||k.removeEvent(e,h,v.handle),delete l[h])}else for(h in l)k.event.remove(e,h+t[c],r,n,!0);k.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,r,n,o,i,a,s=new Array(arguments.length),l=k.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],d=k.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){for(a=k.event.handlers.call(this,l,c),t=0;(o=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,r=0;(i=o.handlers[r++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,void 0!==(n=((k.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(e,t){var r,n,o,i,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},r=0;r<l;r++)void 0===a[o=(n=t[r]).selector+" "]&&(a[o]=n.needsContext?k(o,this).index(c)>-1:k.find(o,this,null,[c]).length),a[o]&&i.push(n);i.length&&s.push({elem:c,handlers:i})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ke.test(t.type)&&t.click&&_(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return ke.test(t.type)&&t.click&&_(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return ke.test(t.type)&&t.click&&_(t,"input")&&se.get(t,"click")||_(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,r){e.removeEventListener&&e.removeEventListener(t,r)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:Be,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Be,isPropagationStopped:Be,isImmediatePropagationStopped:Be,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){function r(e){if(b.documentMode){var r=se.get(this,"handle"),n=k.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,r(e),n.target===n.currentTarget&&r(n)}else k.event.simulate(t,e.target,k.event.fix(e))}k.event.special[e]={setup:function(){var n;if(He(this,e,!0),!b.documentMode)return!1;(n=se.get(this,t))||this.addEventListener(t,r),se.set(this,t,(n||0)+1)},trigger:function(){return He(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,r),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},k.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,o=b.documentMode?this:n,i=se.get(o,t);i||(b.documentMode?this.addEventListener(t,r):n.addEventListener(e,r,!0)),se.set(o,t,(i||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,o=b.documentMode?this:n,i=se.get(o,t)-1;i?se.set(o,t,i):(b.documentMode?this.removeEventListener(t,r):n.removeEventListener(e,r,!0),se.remove(o,t))}}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var r,n=e.relatedTarget,o=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=o.origType,r=o.handler.apply(this,arguments),e.type=t),r}}})),k.fn.extend({on:function(e,t,r,n){return qe(this,e,t,r,n)},one:function(e,t,r,n){return qe(this,e,t,r,n,1)},off:function(e,t,r){var n,o;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,k(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=Be),this.each((function(){k.event.remove(this,e,r,t)}))}});var Le=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function $e(e,t){return _(e,"table")&&_(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function We(e,t){var r,n,o,i,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(o in se.remove(t,"handle events"),s)for(r=0,n=s[o].length;r<n;r++)k.event.add(t,o,s[o][r]);le.hasData(e)&&(i=le.access(e),a=k.extend({},i),le.set(t,a))}}function Ue(e,t){var r=t.nodeName.toLowerCase();"input"===r&&ke.test(e.type)?t.checked=e.checked:"input"!==r&&"textarea"!==r||(t.defaultValue=e.defaultValue)}function Ye(e,t,r,n){t=l(t);var o,i,a,s,c,d,u=0,p=e.length,h=p-1,f=t[0],m=g(f);if(m||p>1&&"string"==typeof f&&!v.checkClone&&Re.test(f))return e.each((function(o){var i=e.eq(o);m&&(t[0]=f.call(this,o,i.html())),Ye(i,t,r,n)}));if(p&&(i=(o=je(t,e[0].ownerDocument,!1,e,n)).firstChild,1===o.childNodes.length&&(o=i),i||n)){for(s=(a=k.map(Pe(o,"script"),Fe)).length;u<p;u++)c=o,u!==h&&(c=k.clone(c,!0,!0),s&&k.merge(a,Pe(c,"script"))),r.call(e[u],c,u);if(s)for(d=a[a.length-1].ownerDocument,k.map(a,ze),u=0;u<s;u++)c=a[u],_e.test(c.type||"")&&!se.access(c,"globalEval")&&k.contains(d,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&!c.noModule&&k._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},d):w(c.textContent.replace(Ie,""),c,d))}return e}function Xe(e,t,r){for(var n,o=t?k.filter(t,e):e,i=0;null!=(n=o[i]);i++)r||1!==n.nodeType||k.cleanData(Pe(n)),n.parentNode&&(r&&ve(n)&&Me(Pe(n,"script")),n.parentNode.removeChild(n));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,r){var n,o,i,a,s=e.cloneNode(!0),l=ve(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=Pe(s),n=0,o=(i=Pe(e)).length;n<o;n++)Ue(i[n],a[n]);if(t)if(r)for(i=i||Pe(e),a=a||Pe(s),n=0,o=i.length;n<o;n++)We(i[n],a[n]);else We(e,s);return(a=Pe(s,"script")).length>0&&Me(a,!l&&Pe(e,"script")),s},cleanData:function(e){for(var t,r,n,o=k.event.special,i=0;void 0!==(r=e[i]);i++)if(ie(r)){if(t=r[se.expando]){if(t.events)for(n in t.events)o[n]?k.event.remove(r,n):k.removeEvent(r,n,t.handle);r[se.expando]=void 0}r[le.expando]&&(r[le.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Xe(this,e,!0)},remove:function(e){return Xe(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ye(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||$e(this,e).appendChild(e)}))},prepend:function(){return Ye(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=$e(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ye(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ye(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(Pe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},r=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!Te[(Se.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;r<n;r++)1===(t=this[r]||{}).nodeType&&(k.cleanData(Pe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ye(this,arguments,(function(t){var r=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(Pe(this)),r&&r.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var r,n=[],o=k(e),i=o.length-1,a=0;a<=i;a++)r=a===i?this:this.clone(!0),k(o[a])[t](r),c.apply(n,r.get());return this.pushStack(n)}}));var Ge=new RegExp("^("+pe+")(?!px)[a-z%]+$","i"),Je=/^--/,Ke=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ve=function(e,t,r){var n,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in n=r.call(e),t)e.style[o]=i[o];return n},Ze=new RegExp(fe.join("|"),"i");function Qe(e,t,r){var n,o,i,a,s=Je.test(t),l=e.style;return(r=r||Ke(e))&&(a=r.getPropertyValue(t)||r[t],s&&a&&(a=a.replace(j,"$1")||void 0),""!==a||ve(e)||(a=k.style(e,t)),!v.pixelBoxStyles()&&Ge.test(a)&&Ze.test(t)&&(n=l.width,o=l.minWidth,i=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=r.width,l.width=n,l.minWidth=o,l.maxWidth=i)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(d){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(c).appendChild(d);var e=n.getComputedStyle(d);r="1%"!==e.top,l=12===t(e.marginLeft),d.style.right="60%",a=36===t(e.right),o=36===t(e.width),d.style.position="absolute",i=12===t(d.offsetWidth/3),me.removeChild(c),d=null}}function t(e){return Math.round(parseFloat(e))}var r,o,i,a,s,l,c=b.createElement("div"),d=b.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===d.style.backgroundClip,k.extend(v,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,r,o;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),r=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",me.appendChild(e).appendChild(t).appendChild(r),o=n.getComputedStyle(t),s=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],rt=b.createElement("div").style,nt={};function ot(e){return k.cssProps[e]||nt[e]||(e in rt?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),r=tt.length;r--;)if((e=tt[r]+t)in rt)return e}(e)||e)}var it=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,r){var n=he.exec(t);return n?Math.max(0,n[2]-(r||0))+(n[3]||"px"):t}function ct(e,t,r,n,o,i){var a="width"===t?1:0,s=0,l=0,c=0;if(r===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===r&&(c+=k.css(e,r+fe[a],!0,o)),n?("content"===r&&(l-=k.css(e,"padding"+fe[a],!0,o)),"margin"!==r&&(l-=k.css(e,"border"+fe[a]+"Width",!0,o))):(l+=k.css(e,"padding"+fe[a],!0,o),"padding"!==r?l+=k.css(e,"border"+fe[a]+"Width",!0,o):s+=k.css(e,"border"+fe[a]+"Width",!0,o));return!n&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))||0),l+c}function dt(e,t,r){var n=Ke(e),o=(!v.boxSizingReliable()||r)&&"border-box"===k.css(e,"boxSizing",!1,n),i=o,a=Qe(e,t,n),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(a)){if(!r)return a;a="auto"}return(!v.boxSizingReliable()&&o||!v.reliableTrDimensions()&&_(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,n))&&e.getClientRects().length&&(o="border-box"===k.css(e,"boxSizing",!1,n),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ct(e,t,r||(o?"border":"content"),i,n,a)+"px"}function ut(e,t,r,n,o){return new ut.prototype.init(e,t,r,n,o)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var r=Qe(e,"opacity");return""===r?"1":r}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,r,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=oe(t),l=Je.test(t),c=e.style;if(l||(t=ot(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===r)return a&&"get"in a&&void 0!==(o=a.get(e,!1,n))?o:c[t];"string"==(i=typeof r)&&(o=he.exec(r))&&o[1]&&(r=be(e,t,o),i="number"),null!=r&&r==r&&("number"!==i||l||(r+=o&&o[3]||(k.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==r||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(r=a.set(e,r,n))||(l?c.setProperty(t,r):c[t]=r))}},css:function(e,t,r,n){var o,i,a,s=oe(t);return Je.test(t)||(t=ot(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,r)),void 0===o&&(o=Qe(e,t,n)),"normal"===o&&t in st&&(o=st[t]),""===r||r?(i=parseFloat(o),!0===r||isFinite(i)?i||0:o):o}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,r,n){if(r)return!it.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?dt(e,t,n):Ve(e,at,(function(){return dt(e,t,n)}))},set:function(e,r,n){var o,i=Ke(e),a=!v.scrollboxSize()&&"absolute"===i.position,s=(a||n)&&"border-box"===k.css(e,"boxSizing",!1,i),l=n?ct(e,t,n,s,i):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-ct(e,t,"border",!1,i)-.5)),l&&(o=he.exec(r))&&"px"!==(o[3]||"px")&&(e.style[t]=r,r=k.css(e,t)),lt(0,r,l)}}})),k.cssHooks.marginLeft=et(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(r){for(var n=0,o={},i="string"==typeof r?r.split(" "):[r];n<4;n++)o[e+fe[n]+t]=i[n]||i[n-2]||i[0];return o}},"margin"!==e&&(k.cssHooks[e+t].set=lt)})),k.fn.extend({css:function(e,t){return ee(this,(function(e,t,r){var n,o,i={},a=0;if(Array.isArray(t)){for(n=Ke(e),o=t.length;a<o;a++)i[t[a]]=k.css(e,t[a],!1,n);return i}return void 0!==r?k.style(e,t,r):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=ut,ut.prototype={constructor:ut,init:function(e,t,r,n,o,i){this.elem=e,this.prop=r,this.easing=o||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=i||(k.cssNumber[r]?"":"px")},cur:function(){var e=ut.propHooks[this.prop];return e&&e.get?e.get(this):ut.propHooks._default.get(this)},run:function(e){var t,r=ut.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):ut.propHooks._default.set(this),this}},ut.prototype.init.prototype=ut.prototype,ut.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[ot(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},ut.propHooks.scrollTop=ut.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=ut.prototype.init,k.fx.step={};var pt,ht,ft=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function vt(){ht&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(vt):n.setTimeout(vt,k.fx.interval),k.fx.tick())}function gt(){return n.setTimeout((function(){pt=void 0})),pt=Date.now()}function yt(e,t){var r,n=0,o={height:e};for(t=t?1:0;n<4;n+=2-t)o["margin"+(r=fe[n])]=o["padding"+r]=e;return t&&(o.opacity=o.width=e),o}function bt(e,t,r){for(var n,o=(xt.tweeners[t]||[]).concat(xt.tweeners["*"]),i=0,a=o.length;i<a;i++)if(n=o[i].call(r,t,e))return n}function xt(e,t,r){var n,o,i=0,a=xt.prefilters.length,s=k.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var t=pt||gt(),r=Math.max(0,c.startTime+c.duration-t),n=1-(r/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(n);return s.notifyWith(e,[c,n,r]),n<1&&a?r:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},r),originalProperties:t,originalOptions:r,startTime:pt||gt(),duration:r.duration,tweens:[],createTween:function(t,r){var n=k.Tween(e,c.opts,t,r,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var r=0,n=t?c.tweens.length:0;if(o)return this;for(o=!0;r<n;r++)c.tweens[r].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),d=c.props;for(function(e,t){var r,n,o,i,a;for(r in e)if(o=t[n=oe(r)],i=e[r],Array.isArray(i)&&(o=i[1],i=e[r]=i[0]),r!==n&&(e[n]=i,delete e[r]),(a=k.cssHooks[n])&&"expand"in a)for(r in i=a.expand(i),delete e[n],i)r in e||(e[r]=i[r],t[r]=o);else t[n]=o}(d,c.opts.specialEasing);i<a;i++)if(n=xt.prefilters[i].call(c,e,d,c.opts))return g(n.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return k.map(d,bt,c),g(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(xt,{tweeners:{"*":[function(e,t){var r=this.createTween(e,t);return be(r.elem,e,he.exec(t),r),r}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(X);for(var r,n=0,o=e.length;n<o;n++)r=e[n],xt.tweeners[r]=xt.tweeners[r]||[],xt.tweeners[r].unshift(t)},prefilters:[function(e,t,r){var n,o,i,a,s,l,c,d,u="width"in t||"height"in t,p=this,h={},f=e.style,m=e.nodeType&&ye(e),v=se.get(e,"fxshow");for(n in r.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()}))}))),t)if(o=t[n],ft.test(o)){if(delete t[n],i=i||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!v||void 0===v[n])continue;m=!0}h[n]=v&&v[n]||k.style(e,n)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(h))for(n in u&&1===e.nodeType&&(r.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=v&&v.display)&&(c=se.get(e,"display")),"none"===(d=k.css(e,"display"))&&(c?d=c:(De([e],!0),c=e.style.display||c,d=k.css(e,"display"),De([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===k.css(e,"float")&&(l||(p.done((function(){f.display=c})),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),r.overflow&&(f.overflow="hidden",p.always((function(){f.overflow=r.overflow[0],f.overflowX=r.overflow[1],f.overflowY=r.overflow[2]}))),l=!1,h)l||(v?"hidden"in v&&(m=v.hidden):v=se.access(e,"fxshow",{display:c}),i&&(v.hidden=!m),m&&De([e],!0),p.done((function(){for(n in m||De([e]),se.remove(e,"fxshow"),h)k.style(e,n,h[n])}))),l=bt(m?v[n]:0,n,p),n in v||(v[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?xt.prefilters.unshift(e):xt.prefilters.push(e)}}),k.speed=function(e,t,r){var n=e&&"object"==typeof e?k.extend({},e):{complete:r||!r&&t||g(e)&&e,duration:e,easing:r&&t||t&&!g(t)&&t};return k.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in k.fx.speeds?n.duration=k.fx.speeds[n.duration]:n.duration=k.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){g(n.old)&&n.old.call(this),n.queue&&k.dequeue(this,n.queue)},n},k.fn.extend({fadeTo:function(e,t,r,n){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,r,n)},animate:function(e,t,r,n){var o=k.isEmptyObject(e),i=k.speed(t,r,n),a=function(){var t=xt(this,k.extend({},e),i);(o||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,r){var n=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",i=k.timers,a=se.get(this);if(o)a[o]&&a[o].stop&&n(a[o]);else for(o in a)a[o]&&a[o].stop&&mt.test(o)&&n(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(r),t=!1,i.splice(o,1));!t&&r||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,r=se.get(this),n=r[e+"queue"],o=r[e+"queueHooks"],i=k.timers,a=n?n.length:0;for(r.finish=!0,k.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete r.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var r=k.fn[t];k.fn[t]=function(e,n,o){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(yt(t,!0),e,n,o)}})),k.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,r,n){return this.animate(t,e,r,n)}})),k.timers=[],k.fx.tick=function(){var e,t=0,r=k.timers;for(pt=Date.now();t<r.length;t++)(e=r[t])()||r[t]!==e||r.splice(t--,1);r.length||k.fx.stop(),pt=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){ht||(ht=!0,vt())},k.fx.stop=function(){ht=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var o=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(o)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var wt,Dt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return ee(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,r){var n,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?k.prop(e,t,r):(1===i&&k.isXMLDoc(e)||(o=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?wt:void 0)),void 0!==r?null===r?void k.removeAttr(e,t):o&&"set"in o&&void 0!==(n=o.set(e,r,t))?n:(e.setAttribute(t,r+""),r):o&&"get"in o&&null!==(n=o.get(e,t))?n:null==(n=k.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&_(e,"input")){var r=e.value;return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,n=0,o=t&&t.match(X);if(o&&1===e.nodeType)for(;r=o[n++];)e.removeAttribute(r)}}),wt={set:function(e,t,r){return!1===t?k.removeAttr(e,r):e.setAttribute(r,r),r}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var r=Dt[t]||k.find.attr;Dt[t]=function(e,t,n){var o,i,a=t.toLowerCase();return n||(i=Dt[a],Dt[a]=o,o=null!=r(e,t,n)?a:null,Dt[a]=i),o}}));var Ct=/^(?:input|select|textarea|button)$/i,At=/^(?:a|area)$/i;function kt(e){return(e.match(X)||[]).join(" ")}function St(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(X)||[]}k.fn.extend({prop:function(e,t){return ee(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,r){var n,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&k.isXMLDoc(e)||(t=k.propFix[t]||t,o=k.propHooks[t]),void 0!==r?o&&"set"in o&&void 0!==(n=o.set(e,r,t))?n:e[t]=r:o&&"get"in o&&null!==(n=o.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||At.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,r,n,o,i,a;return g(e)?this.each((function(t){k(this).addClass(e.call(this,t,St(this)))})):(t=_t(e)).length?this.each((function(){if(n=St(this),r=1===this.nodeType&&" "+kt(n)+" "){for(i=0;i<t.length;i++)o=t[i],r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=kt(r),n!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,r,n,o,i,a;return g(e)?this.each((function(t){k(this).removeClass(e.call(this,t,St(this)))})):arguments.length?(t=_t(e)).length?this.each((function(){if(n=St(this),r=1===this.nodeType&&" "+kt(n)+" "){for(i=0;i<t.length;i++)for(o=t[i];r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=kt(r),n!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var r,n,o,i,a=typeof e,s="string"===a||Array.isArray(e);return g(e)?this.each((function(r){k(this).toggleClass(e.call(this,r,St(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(r=_t(e),this.each((function(){if(s)for(i=k(this),o=0;o<r.length;o++)n=r[o],i.hasClass(n)?i.removeClass(n):i.addClass(n);else void 0!==e&&"boolean"!==a||((n=St(this))&&se.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,r,n=0;for(t=" "+e+" ";r=this[n++];)if(1===r.nodeType&&(" "+kt(St(r))+" ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g;k.fn.extend({val:function(e){var t,r,n,o=this[0];return arguments.length?(n=g(e),this.each((function(r){var o;1===this.nodeType&&(null==(o=n?e.call(this,r,k(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=k.map(o,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=k.valHooks[o.type]||k.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(o,"value"))?r:"string"==typeof(r=o.value)?r.replace(Tt,""):null==r?"":r:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:kt(k.text(e))}},select:{get:function(e){var t,r,n,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?i+1:o.length;for(n=i<0?l:a?i:0;n<l;n++)if(((r=o[n]).selected||n===i)&&!r.disabled&&(!r.parentNode.disabled||!_(r.parentNode,"optgroup"))){if(t=k(r).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var r,n,o=e.options,i=k.makeArray(t),a=o.length;a--;)((n=o[a]).selected=k.inArray(k.valHooks.option.get(n),i)>-1)&&(r=!0);return r||(e.selectedIndex=-1),i}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},v.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Pt=n.location,Mt={guid:Date.now()},Et=/\?/;k.parseXML=function(e){var t,r;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return r=t&&t.getElementsByTagName("parsererror")[0],t&&!r||k.error("Invalid XML: "+(r?k.map(r.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var jt=/^(?:focusinfocus|focusoutblur)$/,Ot=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,r,o){var i,a,s,l,c,d,u,p,f=[r||b],m=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!jt.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[k.expando]?e:new k.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:k.makeArray(t,[e]),u=k.event.special[m]||{},o||!u.trigger||!1!==u.trigger.apply(r,t))){if(!o&&!u.noBubble&&!y(r)){for(l=u.delegateType||m,jt.test(l+m)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(r.ownerDocument||b)&&f.push(s.defaultView||s.parentWindow||n)}for(i=0;(a=f[i++])&&!e.isPropagationStopped();)p=a,e.type=i>1?l:u.bindType||m,(d=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&d.apply(a,t),(d=c&&a[c])&&d.apply&&ie(a)&&(e.result=d.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(f.pop(),t)||!ie(r)||c&&g(r[m])&&!y(r)&&((s=r[c])&&(r[c]=null),k.event.triggered=m,e.isPropagationStopped()&&p.addEventListener(m,Ot),r[m](),e.isPropagationStopped()&&p.removeEventListener(m,Ot),k.event.triggered=void 0,s&&(r[c]=s)),e.result}},simulate:function(e,t,r){var n=k.extend(new k.Event,r,{type:e,isSimulated:!0});k.event.trigger(n,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var r=this[0];if(r)return k.event.trigger(e,t,r,!0)}});var Nt=/\[\]$/,Bt=/\r?\n/g,qt=/^(?:submit|button|image|reset|file)$/i,Ht=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,r,n){var o;if(Array.isArray(t))k.each(t,(function(t,o){r||Nt.test(e)?n(e,o):Lt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,r,n)}));else if(r||"object"!==D(t))n(e,t);else for(o in t)Lt(e+"["+o+"]",t[o],r,n)}k.param=function(e,t){var r,n=[],o=function(e,t){var r=g(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==r?"":r)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){o(this.name,this.value)}));else for(r in e)Lt(r,e[r],t,o);return n.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Ht.test(this.nodeName)&&!qt.test(e)&&(this.checked||!ke.test(e))})).map((function(e,t){var r=k(this).val();return null==r?null:Array.isArray(r)?k.map(r,(function(e){return{name:t.name,value:e.replace(Bt,"\r\n")}})):{name:t.name,value:r.replace(Bt,"\r\n")}})).get()}});var Rt=/%20/g,It=/#.*$/,$t=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,zt=/^(?:GET|HEAD)$/,Wt=/^\/\//,Ut={},Yt={},Xt="*/".concat("*"),Gt=b.createElement("a");function Jt(e){return function(t,r){"string"!=typeof t&&(r=t,t="*");var n,o=0,i=t.toLowerCase().match(X)||[];if(g(r))for(;n=i[o++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(r)):(e[n]=e[n]||[]).push(r)}}function Kt(e,t,r,n){var o={},i=e===Yt;function a(s){var l;return o[s]=!0,k.each(e[s]||[],(function(e,s){var c=s(t,r,n);return"string"!=typeof c||i||o[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Vt(e,t){var r,n,o=k.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((o[r]?e:n||(n={}))[r]=t[r]);return n&&k.extend(!0,e,n),e}Gt.href=Pt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,k.ajaxSettings),t):Vt(k.ajaxSettings,e)},ajaxPrefilter:Jt(Ut),ajaxTransport:Jt(Yt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,o,i,a,s,l,c,d,u,p,h=k.ajaxSetup({},t),f=h.context||h,m=h.context&&(f.nodeType||f.jquery)?k(f):k.event,v=k.Deferred(),g=k.Callbacks("once memory"),y=h.statusCode||{},x={},w={},D="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Ft.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||D;return r&&r.abort(t),A(0,t),this}};if(v.promise(C),h.url=((e||h.url||Pt.href)+"").replace(Wt,Pt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(X)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Gt.protocol+"//"+Gt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),Kt(Ut,h,t,C),c)return C;for(u in(d=k.event&&h.global)&&0==k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!zt.test(h.type),o=h.url.replace(It,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Rt,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Et.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace($t,"$1"),p=(Et.test(o)?"&":"?")+"_="+Mt.guid+++p),h.url=o+p),h.ifModified&&(k.lastModified[o]&&C.setRequestHeader("If-Modified-Since",k.lastModified[o]),k.etag[o]&&C.setRequestHeader("If-None-Match",k.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Xt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(!1===h.beforeSend.call(f,C,h)||c))return C.abort();if(D="abort",g.add(h.complete),C.done(h.success),C.fail(h.error),r=Kt(Yt,h,t,C)){if(C.readyState=1,d&&m.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(s=n.setTimeout((function(){C.abort("timeout")}),h.timeout));try{c=!1,r.send(x,A)}catch(e){if(c)throw e;A(-1,e)}}else A(-1,"No Transport");function A(e,t,a,l){var u,p,b,x,w,D=t;c||(c=!0,s&&n.clearTimeout(s),r=void 0,i=l||"",C.readyState=e>0?4:0,u=e>=200&&e<300||304===e,a&&(x=function(e,t,r){for(var n,o,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(o in s)if(s[o]&&s[o].test(n)){l.unshift(o);break}if(l[0]in r)i=l[0];else{for(o in r){if(!l[0]||e.converters[o+" "+l[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),r[i]}(h,C,a)),!u&&k.inArray("script",h.dataTypes)>-1&&k.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),x=function(e,t,r,n){var o,i,a,s,l,c={},d=e.dataTypes.slice();if(d[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=d.shift();i;)if(e.responseFields[i]&&(r[e.responseFields[i]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=d.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=c[l+" "+i]||c["* "+i]))for(o in c)if((s=o.split(" "))[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=s[0],d.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(h,x,C,u),u?(h.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(k.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(k.etag[o]=w)),204===e||"HEAD"===h.type?D="nocontent":304===e?D="notmodified":(D=x.state,p=x.data,u=!(b=x.error))):(b=D,!e&&D||(D="error",e<0&&(e=0))),C.status=e,C.statusText=(t||D)+"",u?v.resolveWith(f,[p,D,C]):v.rejectWith(f,[C,D,b]),C.statusCode(y),y=void 0,d&&m.trigger(u?"ajaxSuccess":"ajaxError",[C,h,u?p:b]),g.fireWith(f,[C,D]),d&&(m.trigger("ajaxComplete",[C,h]),--k.active||k.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,r){return k.get(e,t,r,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,r,n,o){return g(r)&&(o=o||n,n=r,r=void 0),k.ajax(k.extend({url:e,type:t,dataType:o,data:r,success:n},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,r){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,r)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),r=t.contents();r.length?r.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(r){k(this).wrapAll(t?e.call(this,r):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Zt={0:200,1223:204},Qt=k.ajaxSettings.xhr();v.cors=!!Qt&&"withCredentials"in Qt,v.ajax=Qt=!!Qt,k.ajaxTransport((function(e){var t,r;if(v.cors||Qt&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,r;if(e.crossDomain||e.scriptAttrs)return{send:function(n,o){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",r=function(e){t.remove(),r=null,e&&o("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){r&&r()}}}));var er,tr=[],rr=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tr.pop()||k.expando+"_"+Mt.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,r){var o,i,a,s=!1!==e.jsonp&&(rr.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&rr.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(rr,"$1"+o):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||k.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=n[o],n[o]=function(){a=arguments},r.always((function(){void 0===i?k(n).removeProp(o):n[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,tr.push(o)),a&&g(i)&&i(a[0]),a=i=void 0})),"script"})),v.createHTMLDocument=((er=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===er.childNodes.length),k.parseHTML=function(e,t,r){return"string"!=typeof e?[]:("boolean"==typeof t&&(r=t,t=!1),t||(v.createHTMLDocument?((n=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(n)):t=b),i=!r&&[],(o=I.exec(e))?[t.createElement(o[1])]:(o=je([e],t,i),i&&i.length&&k(i).remove(),k.merge([],o.childNodes)));var n,o,i},k.fn.load=function(e,t,r){var n,o,i,a=this,s=e.indexOf(" ");return s>-1&&(n=kt(e.slice(s)),e=e.slice(0,s)),g(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&k.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){i=arguments,a.html(n?k("<div>").append(k.parseHTML(e)).find(n):e)})).always(r&&function(e,t){a.each((function(){r.apply(this,i||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,r){var n,o,i,a,s,l,c=k.css(e,"position"),d=k(e),u={};"static"===c&&(e.style.position="relative"),s=d.offset(),i=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(a=(n=d.position()).top,o=n.left):(a=parseFloat(i)||0,o=parseFloat(l)||0),g(t)&&(t=t.call(e,r,k.extend({},s))),null!=t.top&&(u.top=t.top-s.top+a),null!=t.left&&(u.left=t.left-s.left+o),"using"in t?t.using.call(e,u):d.css(u)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,r,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),r=n.ownerDocument.defaultView,{top:t.top+r.pageYOffset,left:t.left+r.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,r,n=this[0],o={top:0,left:0};if("fixed"===k.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),r=n.ownerDocument,e=n.offsetParent||r.documentElement;e&&(e===r.body||e===r.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((o=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),o.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-k.css(n,"marginTop",!0),left:t.left-o.left-k.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||me}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var r="pageYOffset"===t;k.fn[e]=function(n){return ee(this,(function(e,n,o){var i;if(y(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[n];i?i.scrollTo(r?i.pageXOffset:o,r?o:i.pageYOffset):e[n]=o}),e,n,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=et(v.pixelPosition,(function(e,r){if(r)return r=Qe(e,t),Ge.test(r)?k(e).position()[t]+"px":r}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(r,n){k.fn[n]=function(o,i){var a=arguments.length&&(r||"boolean"!=typeof o),s=r||(!0===o||!0===i?"margin":"border");return ee(this,(function(t,r,o){var i;return y(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?k.css(t,r,s):k.style(t,r,o,s)}),t,a?o:void 0,a)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({bind:function(e,t,r){return this.on(e,null,t,r)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,r,n){return this.on(t,e,r,n)},undelegate:function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){k.fn[t]=function(e,r){return arguments.length>0?this.on(t,null,e,r):this.trigger(t)}}));var nr=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var r,n,o;if("string"==typeof t&&(r=e[t],t=e,e=r),g(e))return n=s.call(arguments,2),o=function(){return e.apply(t||this,n.concat(s.call(arguments)))},o.guid=e.guid=e.guid||k.guid++,o},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=_,k.isFunction=g,k.isWindow=y,k.camelCase=oe,k.type=D,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(nr,"$1")},void 0===(r=function(){return k}.apply(t,[]))||(e.exports=r);var or=n.jQuery,ir=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=ir),e&&n.jQuery===k&&(n.jQuery=or),k},void 0===o&&(n.jQuery=n.$=k),k}))},5247:(e,t,r)=>{"use strict";r.r(t),idb.getTableSize=(e,t)=>new Promise(((r,n)=>{if(null==e)return n();const o=event;let i=0;const a=(e=o.target.result).transaction([t]).objectStore(t).openCursor();a.onsuccess=function(e){const t=e.target.result;if(t){const e=t.value,r=JSON.stringify(e);i+=r.length,t.continue()}else r(i)}.bind(void 0),a.onerror=e=>n("error in "+t+": "+e)}))},9023:(e,t,r)=>{"use strict";r.r(t),idb.support=()=>{if("indexedDB"in window)return!0;console.error("Your browser doesn't support IndexedBD")}},6134:(e,t,r)=>{"use strict";r.r(t);const n={name:"addTable",description:"",example:" idb.addTable() ",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array};idb.addTable=(e,t,r)=>{indexedDB.open(e,Number(idb.version(e))+1).onupgradeneeded=e=>{try{const n=e.target.result.createObjectStore(t,r);n.createIndex("hours","hours",{unique:!1}),n.createIndex("minutes","minutes",{unique:!1}),n.createIndex("day","day",{unique:!1}),n.createIndex("month","month",{unique:!1}),n.createIndex("year","year",{unique:!1}),n.createIndex("notified","notified",{unique:!1})}catch(e){return}}};const o=dphelper.obj.findindex(dphelper._list.scripts,"idb");dphelper._list.scripts[o].subCommand.push(n)},2891:(e,t,r)=>{"use strict";r.r(t),idb.create=(e,t=1)=>{let r;idb.support();const n=indexedDB.open(e,t);n.onerror=e=>{console.error(`IndexedDB error: ${n.errorCode}`)},n.onsuccess=e=>{console.debug("Successful database connection"),r=n.result},n.onupgradeneeded=e=>{console.debug("Database created"),n.result},setTimeout((()=>{idbases=[],idb.databases()}),1e3)};const n=dphelper.obj.findindex(dphelper._list.scripts,"idb");dphelper._list.scripts[n].subCommand.push({name:"create",description:"",example:" idb.create([dbName, ver]) ",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]})},6329:(e,t,r)=>{"use strict";r.r(t),idb.databases=()=>(indexedDB.databases().then((e=>e)).then((e=>{e&&(idbases=e)})).catch((e=>{})),idb.size(),idbases);const n=dphelper.obj.findindex(dphelper._list.scripts,"idb");dphelper._list.scripts[n].subCommand.push({name:"databases",description:"",example:" idb.databases() ",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]})},9312:(e,t,r)=>{"use strict";r.r(t);const n={name:"exist",description:"",example:" idb.exist() ",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array};idb.exist=e=>void 0!==(null===idbases||void 0===idbases?void 0:idbases.find((t=>t.name===e)));const o=dphelper.obj.findindex(dphelper._list.scripts,"idb");dphelper._list.scripts[o].subCommand.push(n)},9799:(e,t,r)=>{"use strict";r.r(t),idb.quota=()=>navigator.storage.estimate()},219:(e,t,r)=>{"use strict";r.r(t),idb.remove=e=>{idb.exist(e)?1==confirm(`Are you sure to remove "${e}" database?`)?setTimeout((()=>{indexedDB.deleteDatabase(e),console.debug(e+" removed"),idbases=[],idb.databases()}),1e3):alert("Operation cancelled."):alert(`Database "${e}" not exist`)}},2142:()=>{"use strict";idb.size=()=>{null===idbases||void 0===idbases||idbases.map((e=>{if(!idb.exist(e))return;const t=dphelper.array.findindex(idbases,e.name),r=null===indexedDB||void 0===indexedDB?void 0:indexedDB.open(e.name,idb.version(e.name));r.onerror=e=>console.error("Error on IndexedDB"),r.onsuccess=e=>{const r=e.target.result;((e,r)=>{const n=e.reduce(((e,t)=>(e.push(idb.getTableSize(r,t)),e)),[]);n.map((e=>{const t=e.reduce(((e,t)=>e+t),0);parseInt(dphelper.tools.byteSize(t))})),idbases[t].size=n.length>0?n:0})([...r.objectStoreNames],r)}}))}},7843:(e,t,r)=>{"use strict";r.r(t);const n={name:"version",description:"",example:" idb.version([storeName]) ",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array};idb.version=e=>{idbases.forEach((t=>{if(t.name===e)return t.version}))};const o=dphelper.obj.findindex(dphelper._list.scripts,"idb");dphelper._list.scripts[o].subCommand.push(n)},7695:(e,t,r)=>{"use strict";(()=>{if(globalThis.dphelper)return;const e=r(8330);globalThis.$=globalThis.jQuery=r(4692),Object.defineProperty(globalThis,"dphelper",{value:{},writable:!1,configurable:!1,enumerable:!1}),globalThis.idbases=[];const t=r(4787);if(t.scripts)return;t.scripts=[],t.version=e.version;const n=setInterval((()=>{var e;const t=null===(e=null===dphelper||void 0===dphelper?void 0:dphelper.socket)||void 0===e?void 0:e.list(),r=[];t.map((e=>{r.push(e.url)})),dphelper._list.sockets=r,r&&clearInterval(n)}),1e3);var o;Object.defineProperties(dphelper,{_list:{value:t},version:{value:e.version}}),$.ajaxSetup({async:!0,cache:!0,global:!0}),(o=r(6245)).keys().forEach((e=>o(e))),dphelper.credits(e),Object.freeze(dphelper)})()},5815:()=>{"use strict";addEventListener("message",(e=>{if(e.source!==window||e.origin!==String(location.origin))return;const t=e.data;"dpHelper"===(null==t?void 0:t.exec)&&("state"===(null==t?void 0:t.tool)&&"add"===(null==t?void 0:t.command)?state[null==t?void 0:t.name]=null==t?void 0:t.value:"state"===(null==t?void 0:t.tool)&&(null==t?void 0:t.command)&&(null==t?void 0:t.name)&&state[null==t?void 0:t.command]([null==t?void 0:t.name]),"store"===(null==t?void 0:t.tool)&&"add"===(null==t?void 0:t.command)?store.set(null==t?void 0:t.name,null==t?void 0:t.value):"store"===(null==t?void 0:t.tool)&&(null==t?void 0:t.command)&&(null==t?void 0:t.name)&&store[null==t?void 0:t.command]([null==t?void 0:t.name]))}))},35:()=>{"use strict";dphelper.setProps=(e,t,r)=>{Object.defineProperty(e,t.name,{writable:!1,configurable:!1}),(null==r?void 0:r.lock)&&Object.freeze(e[t.name])}},9634:(e,t,r)=>{"use strict";r.r(t);const n={name:"anchor",active:!0,subCommand:[{name:"toOnClick",type:"function",version:"0.0.1",example:"dphelper.anchor.toOnClick([element, 'foo' | '.foo' | '#foo'])",description:"This tools allows you to convert all links in an element to 'onclick'.\n It allows you to avoid the message with the path relative to the requested address\n and it is very useful when you work with SPA but you want to keep even older browsers.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.anchor={toOnClick:e=>{$(e+" a").each((function(){const e=$(this),t=e.attr("href");t&&e.on("mouseup",(function(){})).css("cursor","pointer").addClass(dphelper.pathRail()[3].replace(/\//g,"")).removeAttr("href").on("click",(function(){dphelper.browser.href(t),dphelper.browser.push("","",t)}))}))}},dphelper.setProps(dphelper,n,{lock:!0})},4292:(e,t,r)=>{"use strict";r.r(t);const n={name:"array",active:!0,subCommand:[{name:"find",version:"0.0.1",example:"dphelper.array.find([array, item])",description:"",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240619",type:"function",active:!0,subCommand:Array},{name:"unique",version:"0.0.1",example:"dphelper.array.unique([array])",description:"",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"delete",version:"0.0.1",example:"dphelper.array.delete([array])",description:"",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"merge",version:"0.0.1",example:"dphelper.array.merge([array1, array2])",description:"",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"mergeByKey",version:"0.0.1",example:"dphelper.array.mergeByKey([arrayA, arrayB, key])",author:"Dario Passariello",creationDate:"20230603",lastMod:"20230603",type:"function",active:!0,description:'\n Example:\n const array = [\n {"date":1230,"value":1},\n {"date":1231,"value":2},\n {"date":1232,"value":3, "value1":3, "name":"John"},\n {"date":1233,"value":4},\n {"date":1234,"value":5},\n {"date":1235,"value":6}\n ]\n const newData = [\n {"date":1230,"value":1000,\'name\':\'Diana\'},\n {"date":1232,"value":1000, "value1":20000},\n {"date":1234,"value":1000},\n {"date":1235,"value":888810000}\n ]\n Command: dphelper.array.mergeByKey( array, newData, \'date\' )\n Result:\n [\n {"date": 1230,"value": 1000, "name": "Diana" },\n {"date": 1231,"value": 2},\n {"date": 1232 "value": 1000, "value1": 20000, "name": "John" },\n {"date": 1233,"value": 4},\n {"date": 1234, "value": 1000},\n {"date": 1235,"value": 888810000}\n ]\n ',subCommand:Array},{name:"asc",version:"0.0.1",example:"dphelper.array.asc([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"desc",version:"0.0.1",example:"dphelper.array.desc([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"duplicates",version:"0.0.1",example:"dphelper.array.duplicates([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"even",version:"0.0.1",example:"dphelper.array.even([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"odd",version:"0.0.1",example:"dphelper.array.odd([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"sumColumn",version:"0.0.1",example:"dphelper.array.sumColumn([array, column])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20230111",type:"function",active:!0,description:"\n // YOUR SOURCE OF DATA\n const array = [\n [12, 23, 34],\n [45, 56, 67],\n [78, 89, 90]\n ]\n // PRINT VALUE EACH COLUMN SUM\n for (var i = 0; i < array.length; ++i) {\n console.debug(dphelper.array.sumColumn(array, i))\n }\n results: 135, 168, 191\n // TEST ONLY ONE COLUMN (0)\n dphelper.array.sumColumn(array, 0)\n result: 135\n ",subCommand:Array},{name:"shuffle",version:"0.0.1",example:"dphelper.array.shuffle([array])",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"",subCommand:Array},{name:"generate",version:"0.0.1",example:"dphelper.array.generate(num)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Generate random number ( max 500000 )",subCommand:Array},{name:"testArrayInt",version:"0.0.1",example:"dphelper.array.testArrayInt([array])",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"\n examples:\n console.debug( dphelper.array.testArrayInt([1,2,3,4,6,7]) ); // return 5\n console.debug( dphelper.array.testArrayInt([1,2,3]) ); // return 4\n console.debug( dphelper.array.testArrayInt([-1,-2]) ); // return 1\n ",subCommand:Array},{name:"rand32",version:"0.0.1",example:"dphelper.array.rand32(num)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"\n Generate random array number in 32-bit unsigned integers\n Examples:\n console.debug( dphelper.array.rand32(500000) );\n ",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.array={find:(e,t)=>{if(Array.isArray(e)){for(const r of e){if(r[t]===t)return r;if(r.children){const e=dphelper.array.find(t,r.children);if(e)return e}}return!1}},unique:e=>{if(Array.isArray(e))return[new Set(e)]},delete:(e,t)=>{Array.isArray(e)&&e.some((function e(r,n,o){if(r[t]===t)return o.splice(n,1),!0;for(const t of Object.keys(r)){const n=r[t];if(n.length&&"object"==typeof n)return n&&n.map(e)}}))},merge:(e,t)=>{for(const r of Object.keys(e))e[r]instanceof Object&&t[r]&&Object.assign(e[r],dphelper.mergeArrays(t[r],e[r]));return Object.assign(t||{},e),t},mergeByKey:(e,t,r)=>(e.map(((n,o)=>Object.values(t).map((t=>n[r]===t[r]?Object.assign(e[o],t):e[o])))),e),asc:e=>{if(Array.isArray(e))return e.sort(((e,t)=>e-t)),e},desc:e=>{if(Array.isArray(e))return e.sort((function(e,t){return t-e})),e},duplicates:e=>{if(Array.isArray(e))return e=>e.filter(((t,r)=>e.indexOf(t)!==r))},even:e=>{if(!Array.isArray(e))return;const t=[],r=e.length;for(let n=0;n<r;n++)e[n]%2==0&&t.push(e[n]);return t},odd:e=>{if(!Array.isArray(e))return;const t=[],r=e.length;for(let n=0;n<r;n++)e[n]%2&&t.push(e[n]);return t},toObj:e=>Object.assign({},e),sumColumn:(e=[],t=0)=>{if(Array.isArray(e)){if(void 0===t)return"provide a column";var r,n=0;return(r=e.map((e=>n+=e[t])))[r.length-1]}return"provide an multidimensiona array"},shuffle:e=>{if(Array.isArray(e)){for(let t=e.length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1));[e[t],e[r]]=[e[r],e[t]]}return e}},generate:e=>{Number.isNaN(e)||dphelper.array.shuffle(e)},testArrayInt(e){if(!Array.isArray(e))return;let t,r;for(var n=1;n<e.length;++n)t=e.includes(n),!1===t&&void 0!==t&&(r=n);return r||e.length+1},rand32:e=>{const t=performance.now(),r=[];r.nums=[],r.time=[];for(var n=0;n<e;++n)r.nums.push(crypto.getRandomValues(new Uint32Array(1))[0]);const o=performance.now();return r.time.push(o-t),r},findindex:(e,t)=>e.findIndex((e=>e.name===t)),pathToJson:(e,t="/")=>{const r={};let n;for(const o of e){n=r;for(const e of o.split(t).slice(1,-1)){if(""===e)return;e in n||(n[e]={}),n=n[e]}}return r}},dphelper.setProps(dphelper,n,{lock:!0})},7331:(e,t,r)=>{"use strict";r.r(t);const n={name:"audio",active:!0,subCommand:[{name:"play",version:"0.0.1",example:"dphelper.audio.play([audiofile])",description:"",author:"Dario Passariello",creationDate:"20240924",lastMod:"20240924",type:"function",active:!0,subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.audio={play:(e,t,r)=>{if(e){if(!document.querySelector(`#audio_${e}`)){const n=document.createElement("audio");n.id="audio_"+e,n.src=t+e,n.loop=!!r,document.body.appendChild(n),n.load(),n.play()}}else document.querySelectorAll("audio").forEach((e=>e.remove()))}},dphelper.setProps(dphelper,n,{lock:!0})},8292:(e,t,r)=>{"use strict";r.r(t);const n={name:"avoid",active:!0,subCommand:[{name:"cache",version:"0.0.1",example:"dphelper.avoid.cache()",description:"",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.avoid={cache:e=>e.concat(/\?/.test(e)?"&":"?","t=",dphelper.rnd())},Object.freeze(dphelper.avoid),dphelper.setProps(dphelper,n,{lock:!0})},8705:(e,t,r)=>{"use strict";r.r(t);const n={name:"browser",active:!0,subCommand:[{name:"state",version:"0.0.1",example:"dphelper.browser.state([state, title, url])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"forw",version:"0.0.1",example:"dphelper.browser.forw([number])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"back",version:"0.0.1",example:"dphelper.browser.back([number])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"reload",version:"0.0.1",example:"dphelper.browser.reload()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"href",version:"0.0.1",example:"dphelper.browser.href([url])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"offline",version:"0.0.1",example:"dphelper.browser.offline([text])",author:"Dario Passariello",creationDate:"20190727",lastMod:"20240727",type:"function",active:!0,description:"",subCommand:Array},{name:"zoom",version:"0.0.1",example:"dphelper.browser.zoom()",author:"Dario Passariello",creationDate:"20190727",lastMod:"20240727",type:"function",active:!0,description:"",subCommand:Array},{name:"status",version:"0.0.1",example:"dphelper.browser.status(404)",author:"Dario Passariello",creationDate:"20240912",lastMod:"20240912",type:"function",active:!0,description:"Give you a description about the error",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.browser={state:(e,t,r)=>history.pushState(e,t,r),forw:e=>history.go(e),back:e=>history.go(-Math.abs(e)),reload:()=>globalThis.location.href="/",href:e=>globalThis.location.href=e,offLine:(e="You are offline.")=>{addEventListener("online",(()=>{$("[o]").remove()})),addEventListener("offline",(()=>{$(`\n <style o>\n html {\n\n &:before {\n content: "";\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: #00000082;\n z-index: 9999;\n -webkit-backdrop-filter: blur(2px);\n backdrop-filter: blur(2px);\n\n }\n\n &:after{\n position: absolute;\n content: "${e}";\n font-size: 1em;\n background-color: orange;\n color: black;\n text-align: center;\n padding: 10px 30px;\n z-index: 10000;\n border-radius: 20px;\n top: calc(50% - 22px);\n left: calc(50% - 92px);\n border: 6px solid #00000026;\n }\n\n }\n </style>\n `).appendTo("body")}))},zoom:()=>Math.round(100*devicePixelRatio),status:e=>{if(e)return r(1809)[e]}},dphelper.setProps(dphelper,n,{lock:!0})},3119:(e,t,r)=>{"use strict";r.r(t),Object.defineProperty(globalThis,"cache",{value:new Proxy({},{}),enumerable:!1,configurable:!1}),Object.defineProperties(cache,{get:{},set:{}})},7026:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"check",active:!0,subCommand:[{name:"url",version:"0.0.1",example:"dphelper.check.url([domain])",description:"",author:"Dario Passariello",creationDate:"20240829",lastMod:"20240829",type:"function",active:!0,subCommand:Array}]};dphelper._list.scripts.push(o),dphelper.check={url:e=>{fetch(`https://a51.dev/dns/status.php?domain=${e}`).then((e=>e.json())).then((e=>(console.table(e),e))).catch((e=>{}))},version:(e,t,r)=>{if(!e||!t)return;let n=r&&r.lex,o=r&&r.zero,i=e.split("."),a=t.split(".");function s(e){return(n?/^\d+[A-Za-z]*$/:/^\d+$/).test(e)}if(!i.every(s)||!a.every(s))return NaN;if(o){for(;i.length<a.length;)i.push("0");for(;a.length<i.length;)a.push("0")}n||(i=i.map(Number),a=a.map(Number));for(var l=0;l<i.length;++l){if(a.length==l)return 1;if(i[l]!=a[l])return i[l]>a[l]?1:-1}return i.length!=a.length?-1:0},npmVer:(...e)=>(0,n.sH)(void 0,[...e],void 0,(function*(e="dphelper"){const t=`https://registry.npmjs.org/${e}/latest`;return yield fetch(t).then((e=>e.json())).then((e=>e)).catch((e=>{console.error(e.message)}))}))},Object.freeze(dphelper.check),dphelper.setProps(dphelper,o,{lock:!0})},8598:(e,t,r)=>{"use strict";r.r(t);const n={name:"color",active:!0,subCommand:[{name:"hex",version:"0.0.1",example:"dphelper.color.hex(255)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toHex",version:"0.0.1",example:"dphelper.color.toHex([255, 255, 255])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toRGB",version:"0.0.1",example:"dphelper.color.toRGB('#ffffff')",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"oleColor",version:"0.0.1",example:"dphelper.color.oleColor('#ffffff')",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,description:"",subCommand:Array},{name:"gradient",version:"0.0.1",example:"dphelper.color.gradient([colorStart, colorEnd, colorCount])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.color={hex:e=>{const t="0123456789abcdef";let r=parseInt(e);return 0==r||Number.isNaN(e)?"00":(r=Math.round(Math.min(Math.max(0,r),255)),t.charAt((r-r%16)/16)+t.charAt(r%16))},toHex:e=>dphelper.color.hex(e[0])+dphelper.color.hex(e[1])+dphelper.color.hex(e[2]),toRGB:e=>{const t=[];return t[0]=parseInt(dphelper.text.trim(e,"#",1,7).substring(0,2),16),t[1]=parseInt(dphelper.text.trim(e,"#",1,7).substring(2,4),16),t[2]=parseInt(dphelper.text.trim(e,"#",1,7).substring(4,6),16),"#"+t},oleColor:e=>{const t=e.replace("#","").match(/.{1,2}/g);return parseInt(t[0],16)+256*parseInt(t[1],16)+65536*parseInt(t[2],16)},gradient:(e,t,r)=>{const n=dphelper.color.toRGB(e),o=dphelper.color.toRGB(t),i=r,a=[];let s=0;for(let e=0;e<i;e++){const e=[];s+=1/i,e[0]=n[0]*s+(1-s)*o[0],e[1]=n[1]*s+(1-s)*o[1],e[2]=n[2]*s+(1-s)*o[2],a.push(dphelper.color.toHex(e))}return a}},dphelper.setProps(dphelper,n,{lock:!0})},7424:(e,t,r)=>{"use strict";r.r(t);const n={name:"console",active:!0,subCommand:[{name:"info",version:"0.0.1",example:"dphelper.console.info()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"stop",version:"0.0.1",example:"dphelper.console.stop()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toHtml",version:"0.0.1",example:"dphelper.console.toHtml()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.console={info:(e,t,r)=>{console.groupCollapsed("%c"+e+":%c","color:orange",""),console.debug(t,e,r),console.groupEnd()},stop:(e=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeline","timelineEnd","timeStamp","trace","warn","verbose"])=>{console.clear(),dphelper.console.disableYellowBox=!0,console.log=()=>{},console.debug=()=>{},globalThis.console=console;const t=()=>{};e.forEach((e=>{dphelper.console.method=t}))},toHtml:e=>{console.log;const t=document.getElementById(e);dphelper.console.toHtml=function(e){t.innerHTML+="object"==typeof e?(JSON&&JSON.stringify?JSON.stringify(e):e)+"<br />":e+"<br />"}}},dphelper.setProps(dphelper,n,{lock:!0})},1585:(e,t,r)=>{"use strict";r.r(t),dphelper.consoleDebug=function(e){if(!e)throw Error("Parent dom element required!");let t=!1;console.log,console.info,console.warn,console.error,this.autoScroll=!0,this.disableConsoleLogging=!1;const r=document.createElement("div");r.id="debugConsole",e.appendChild(r),this.domElement=r,this.initKeyMappings=()=>{t?console.warn("DebugConsole: keys already mapped!"):(state.toggleConsole=function(){this.visible=!this.visible}.bind(this),t=!0)},this.overrideConsole=()=>{const e=["Warning: Does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.%s",'Warning: Using the "className" prop on <View> is deprecated.',"View"],t=console.log;console.log=function(...r){const[n]=r;e.some((e=>n.includes(e)))||t(...r)};const r=console.info;console.info=function(...t){const[n]=t;e.some((e=>n.includes(e)))||r(...t)};const n=console.warn;console.warn=function(...t){const[r]=t;e.some((e=>r.includes(e)))||n(...t)};const o=console.error;console.error=function(...t){const[r]=t;e.some((e=>r.includes(e)))||o(...t)},globalThis.onerror=(e,t,r)=>{const n=[e," in <a href='",t,"' target='_blank'>",null==t?void 0:t.split("/").pop(),"</a>:",r];return console.error(n.join("")),!1}},this.overrideConsole(),this.clear=function(){this.domElement.innerHTML=""},Object.defineProperties(this,{visible:{get:function(){return""===this.domElement.style.display},set:function(e){e?(this.domElement.style.display="",this.autoScroll&&(this.domElement.scrollTop=this.domElement.scrollHeight)):this.domElement.style.display="none"},configurable:!1}})},Object.defineProperty(dphelper,"consoleDebug",{writable:!0,enumerable:!1,configurable:!1})},2057:(e,t,r)=>{"use strict";r.r(t);const n={name:"cookie",active:!0,subCommand:[{name:"set",version:"0.0.1",example:"dphelper.cookie.set([name, value, time, path = '/'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240613",type:"function",active:!0,description:"",subCommand:Array},{name:"get",version:"0.0.1",example:"dphelper.cookie.get([name])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240613",type:"function",active:!0,description:"",subCommand:Array},{name:"delete",version:"0.0.1",example:"dphelper.cookie.delete([name])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240613",type:"function",active:!0,description:"",subCommand:Array},{name:"clearAll",version:"0.0.1",example:"dphelper.cookie.clearAll()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240613",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.cookie={set:e=>{const t=new Date;if(t.setTime(t.getTime()+31536e6),!e.name)return;const{name:r,value:n,time:o=e.time||t.toGMTString(),path:i=e.path||"/",sameSite:a=(e.path?e.path:"Lax"),secure:s=("https:"===location.protocol?"Secure":"false")}=e;document.cookie=`${r}=${n};expires=${o};path=${i};SameSite=${a};requireSSL=${s};`},get:e=>{const t=document.cookie.split("; "),r=t.length;for(let n=0;n<r;n++){const r=t[n].split("=");if(e===r[0])return unescape(r[1])}return null},delete:e=>{document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;"},clearAll:()=>{const e=document.cookie.split(";"),t=e.length;for(let r=0;r<t;r++){const t=e[r],n=t.indexOf("="),o=n>-1?t.slice(0,n):t;dphelper.cookie.delete(o)}}},dphelper.setProps(dphelper,n,{lock:!0})},9553:(e,t,r)=>{"use strict";r.r(t);const n={name:"coords",active:!0,subCommand:[{name:"degreesToRadians",version:"0.0.1",example:"dphelper.coords.degreesToRadians(45)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"latToMeters",version:"0.0.1",example:"dphelper.coords.latToMeters([40.689202777778, -74.044219444444])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toVector",version:"0.0.1",example:"dphelper.coords.toVector([40.689202777778, -74.044219444444, 1])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"convertToDecDegrees",version:"0.0.1",example:"dphelper.coords.convertToDecDegrees([39, 5, 59, 'N'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"distance",version:"0.0.1",example:"dphelper.coords.distance([40.718788808171105, -74.0114768663747],[38.909309636475875, -77.01712459058946])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"\n Haversine formula:\n a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)\n c = 2 ⋅ atan2( √a, √(1-a) )\n d = R ⋅ c\n where\tφ is latitude, λ is longitude, R is earth's radius (mean radius = 6,371km);\n note that angles need to be in radians to pass to trig functions!\n\n ",subCommand:Array},{name:"polarToCartesian",version:"0.0.1",example:"dphelper.coords.polarToCartesian([centerX, centerY, radius, radius1, angleInDegrees])",author:"Dario Passariello",creationDate:"20240928",lastMod:"20240928",type:"function",active:!0,description:"",subCommand:Array},{name:"mapDegreesToPixels",version:"0.0.1",example:"dphelper.coords.mapDegreesToPixels([degree, minDegree, maxDegree, minPixel, maxPixel, padding])",author:"Dario Passariello",creationDate:"20240928",lastMod:"20240928",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n);const o=6371e3;dphelper.coords={degreesToRadians:e=>e*Math.PI/180,latToMeters:e=>{if(Array.isArray(e))return o*Math.cos(e[0])*Math.cos(e[1])/1e3},toVector:e=>{if(Array.isArray(e))return[o*Math.cos(e[1]*Math.PI/180)*Math.cos(e[0]*Math.PI/180),o*Math.cos(e[1]*Math.PI/180)*Math.sin(e[0]*Math.PI/180),o*Math.sin(e[2]*Math.PI/180)]},convertToDecDegrees:(e,t,r,n)=>{let o=e+t/60+r/3600;return"S"!=n&&"W"!=n||(o*=-1),o},distance:(e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))return;const r=e[0]*Math.PI/180,n=t[0]*Math.PI/180,i=(t[0]-e[0])*Math.PI/180,a=(t[1]-e[1])*Math.PI/180,s=Math.sin(i/2)*Math.sin(i/2)+Math.cos(r)*Math.cos(n)*Math.sin(a/2)*Math.sin(a/2),l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)),c=o*l;return{km:Number((c/1e3).toFixed(2)),Mi:Number((c/1e3*.621371).toFixed(2)),nMi:Number((c/1e3/1.852).toFixed(2))}},polarToCartesian:(e,t,r,n)=>{const o=(n-90)*Math.PI/180;return{x:e+r*Math.cos(o),y:t+r*Math.sin(o)}},mapDegreesToPixels:(e,t,r,n,o,i)=>{const a=o-i/10/2-(n+(e-t)/(r-t)*(o-n)-i);return a<i?i:a}},dphelper.setProps(dphelper,n,{lock:!0})},8527:()=>{"use strict";dphelper.credits=e=>{console.groupCollapsed(`%c${e.name} v${e.version}%c`,"color:orange",""),console.debug(`%c${e.name} v${e.version}%c by Dario Passariello started`,"color:orange",""),console.debug(`%cType ${e.name} in this console to see it`,"color:gray",""),console.debug("%cFor help visit: "+e.repository.help,"color:gray",""),console.debug("name: %c"+e.name,"color:orange",""),console.debug("version: %c"+e.version,"color:orange",""),console.debug("description: %c"+e.description,"color:orange",""),console.debug("license: %c"+e.license,"color:orange",""),console.debug("repository: %c"+e.repository.url,"color:orange",""),console.debug("author: %c"+e.author.name,"color:orange",""),console.debug("email: %c"+e.author.email,"color:orange",""),console.groupEnd()}},4459:(e,t,r)=>{"use strict";r.r(t);const n={name:"date",active:!0,subCommand:[{name:"toIso",version:"0.0.1",example:"dphelper.date.toIso([value, int = 'en'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toMMDDYYYY",version:"0.0.1",example:"dphelper.date.toMMDDYYYY([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toYYYYMMDD",version:"0.0.1",example:"dphelper.date.toYYYYMMDD([value])",author:"Dario Passariello",creationDate:"20230101",lastMod:"20230101",type:"function",active:!0,description:"",subCommand:Array},{name:"toHuman",version:"0.0.1",example:"dphelper.date.toHuman([value])",author:"Dario Passariello",creationDate:"20230101",lastMod:"20230101",type:"function",active:!0,description:"",subCommand:Array},{name:"convert",version:"0.0.1",example:"dphelper.date.convert([value, format])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"iso2Epoch",version:"0.0.1",example:"dphelper.date.iso2Epoch([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"localIsoTime",version:"0.0.1",example:"dphelper.date.localIsoTime([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"utc",version:"0.0.1",example:"dphelper.date.utc()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"parse",version:"0.0.1",example:"dphelper.date.parse([value, separator = '/'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"year",version:"0.0.1",example:"dphelper.date.year()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"addDays",version:"0.0.1",example:"dphelper.date.addDays([date, days])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"dateTimeToString",version:"0.0.1",example:"dphelper.date.dateTimeToString([dateObject])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isoToHuman",version:"0.0.1",example:"dphelper.date.isoToHuman([value, symbol = '@'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"fullDate",version:"0.0.1",example:"dphelper.date.fullDate()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"epoch",version:"0.0.1",example:"dphelper.date.epoch()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"timeZones",version:"0.0.1",example:"dphelper.date.timeZones()",author:"Dario Passariello",creationDate:"20240901",lastMod:"20240901",type:"function",active:!0,description:"Array of all timezones",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.date={days:(e="en")=>({en:["Monday","Tuesday","Wednesday","Thursday","Wednesday","Saturday","Sunday"],it:["lunedì","martedì","mercoledì","giovedì","Venerdì","Sabato","domenica"]}[e]),months:(e="en")=>({en:["January","February","March","April","May","June","July","August","September","October","November","December"],it:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]}[e]),toIso:(e,t="en")=>{e||(e="");const r=new Date(e);return"Invalid Date"==String(r)?null:new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(r)},toMMDDYYYY:e=>{e||(e="");const t=new Date(e);return("0"+(t.getMonth()+1)).slice(-2)+""+("0"+t.getDate()).slice(-2)+t.getFullYear()},toYYYYMMDD:e=>{if(e)return e.toISOString().split("T")[0].replaceAll("-","")},toHuman:e=>e.toLocaleDateString(void 0,{weekday:"long",year:"numeric",month:"long",day:"numeric"}),convert:(e,t)=>{if(!e)return null;t||(t=dphelper.date.months());const r=e.substring(0,2).replace("0",""),n=e.substring(2,4),o=e.substring(e.length-4);return n+" "+t[Number(r)-1]+" "+o},iso2Epoch:e=>(e||(e=""),new Date(e).getTime()),localIsoTime:e=>{e||(e="");const t=6e4*new Date(e).getTimezoneOffset();return new Date(Date.now()-t).toISOString().slice(0,-1)},utc:()=>(new Date).toUTCString(),parse:(e,t="/")=>e?e.substring(0,2)+t+e.substring(2,4)+t+e.substring(4,8):null,year:()=>{var e;return null===(e=/\d{4}/.exec(Date()))||void 0===e?void 0:e[0]},addDays:(e,t)=>{const r=new Date(Number(e));return r.setDate(e.getDate()+t),r},dateTimeToString:e=>{try{return`${e.getFullYear()}${e.getMonth().toString().length>1?e.getMonth()+1:`0${e.getMonth()+1}`}\n ${e.getDate().toString().length>1?e.getDate():`0${e.getDate()}`}_${e.getHours()}${e.getMinutes()}${e.getSeconds()}`}catch(t){return e}},isoToHuman:(e,t="@")=>{if(!e)return null;const r=dphelper.date.months(),n=new Date(e),o=n.getFullYear(),i=e.split("T")[1].split(":").slice(0,2).join(":");let a=(n.getMonth()+1).toString(),s=n.getDate().toString();return s.length<2&&(s="0"+s),a.length<2&&(a="0"+a),s+" "+r[Number(a)-1]+" "+o+" "+t+" "+i},fullDate:()=>{const e=new Date,t=Number(e.getDate()),r=Number(e.getMonth()+1),n=Number(e.getFullYear()),o=Number(e.getHours()),i=Number(e.getMinutes());return(t<10?"00"+t:t)+"-"+(r<10?"00"+r:r)+"-"+n+" "+(o<10?"00"+o:o)+":"+(i<10?"00"+i:i)+":"+Number(e.getSeconds())},epoch:()=>(new Date).getTime(),diffInDays:(e,t)=>{const r=t.getTime(),n=e.getTime();return Math.floor((r-n)/864e5)},diffInWeeks:(e,t)=>{const r=t.getTime(),n=e.getTime();return Number(parseInt(String((r-n)/6048e5)))},diffInMonths:(e,t)=>{let r=e.getFullYear(),n=t.getFullYear(),o=e.getMonth();return t.getMonth()+12*n-(o+12*r)},diffInYears:(e,t)=>t.getFullYear()-e.getFullYear(),dateToYMD:e=>{let t=e.getDate(),r=e.getMonth()+1;return e.getFullYear()+"-"+(r<=9?"0"+r:r)+"-"+(t<=9?"0"+t:t)},collection:(e=new Date,t,r="en-US")=>{let n;switch(!e&&t&&r&&console.debug('\n "toDateString" -> Tue Jan 02 2024\n "toISOString" -> 2024-01-02T18:44:43.590Z\n "toJSON" -> 2024-01-02T18:44:43.590Z\n "toLocaleDateString" -> 1/2/2024\n "toLocaleString" -> 1/2/2024, 11:44:43 AM\n "toLocaleTimeString" -> 11:44:43 AM\n "toString" -> Tue Jan 02 2024 11:44:43 GMT-0700 (Mountain Standard Time)\n "toISOStringShort" -> 2024-01-02\n "toLocaleString (en-GB)" -> 02/01/2024, 11:47:56 am\n '),t){case"toDateString":n=e.toDateString();break;case"toISOString":n=e.toISOString();break;case"toJSON":n=e.toJSON();break;case"toLocaleDateString":n=e.toLocaleDateString(r);break;case"toLocaleString":n=e.toLocaleString(r);break;case"toLocaleTimeString":n=e.toLocaleTimeString(r);break;case"toString":n=e.toString();break;case"toISOStringShort":n=e.toISOString().slice(0,10)}return n},timeZones:e=>{const t=[];return Intl.supportedValuesOf("timeZone").forEach((e=>t.push(e))),t}},dphelper.setProps(dphelper,n,{lock:!0})},2373:(e,t,r)=>{"use strict";r.r(t);const n={name:"disable",active:!0,subCommand:[{name:"select",version:"0.0.1",example:"dphelper.disable.select([el = 'body'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"spellCheck",version:"0.0.1",example:"dphelper.disable.spellCheck([tmr = 5000])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"rightClick",version:"0.0.1",example:"dphelper.disable.rightClick([element])",author:"Dario Passariello",creationDate:"20220101",lastMod:"20220101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.disable={select:function(e="body"){$(e).on("mousedown",(function(e){((e,t)=>{if(!$(t.target).is("input, button, select, textarea, .selectable *"))return $("*").trigger("blur"),t.preventDefault(),!1;$("img, a, input, button").on("dragstart",(function(e){return e.preventDefault(),!1}))})(0,e)})),console.debug("%cSelection Disabled: %c"+!0,"color:orange","")},spellCheck:(e=5e3)=>{setInterval((()=>{const e=document.querySelectorAll("input[type=text], textarea, code"),t=e.length;for(let r=0;r<t;r++)e[r].getAttribute("spellcheck")||e[r].setAttribute("spellcheck","false")}),e)},rightClick:(e="body")=>{$(document).ready((function(){$(e).on("contextmenu",(function(e){return!1}))}))}},dphelper.setProps(dphelper,n,{lock:!0})},493:(e,t,r)=>{"use strict";r.r(t);const n={name:"dispatch",active:!0,subCommand:[{name:"set",version:"0.0.1",example:"dphelper.dispatch.set([name, value])",author:"Dario Passariello",creationDate:"20231231",lastMod:"20240612",type:"function",active:!0,description:"CustomEvent",subCommand:Array},{name:"listen",version:"0.0.1",example:"dphelper.dispatch.listen([eventNames, callback=null], flag = true)",author:"Dario Passariello",creationDate:"20231231",lastMod:"20240612",type:"function",active:!0,description:"",subCommand:Array},{name:"remove",version:"0.0.1",example:"dphelper.dispatch.remove([eventNames, callback=null], flag = true)",author:"Dario Passariello",creationDate:"20231231",lastMod:"20240612",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.dispatch={set:(e,t={})=>{dispatchEvent(new CustomEvent(e,t))},listen:(e,t=null,r=!1)=>{$(window).on(e,(e=>t?setTimeout((()=>t(e)),0):null))},remove:e=>{$(window).off(e)}},Object.defineProperty(dphelper,"dispatch",{enumerable:!1,writable:!0,configurable:!1}),dphelper.setProps(dphelper,n,{lock:!0})},3906:(e,t,r)=>{"use strict";r.r(t);const n={name:"element",active:!0,subCommand:[{name:"fitScale",version:"0.0.1",example:"dphelper.element.fitScale([el = 'root', scale = 1, fit = false])",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.element={fitScale:(e,t=1,r=!1)=>{addEventListener("resize",(n=>{dphelper.element.scaleBasedOnWindow(e,t,r)}))},scaleBasedOnWindow:(e,t,r)=>{if(!e)return;const n=$(e),o=n.width()||1,i=n.height()||1;r?n.css("transform","scale("+t/Math.max(o/globalThis.innerWidth,i/globalThis.innerHeight)+")"):n.css("transform","scale("+t/Math.min(o/globalThis.innerWidth,i/globalThis.innerHeight)+")")}},dphelper.setProps(dphelper,n,{lock:!0})},1434:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"event",active:!0,subCommand:[{name:"multi",version:"0.0.1",example:"dphelper.event.multi([element, eventNames, listener])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"copy",version:"0.0.1",example:"dphelper.event.copy([element])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"onDrag",version:"0.0.1",example:"dphelper.event.onDrag([element])",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"",subCommand:Array},{name:"keys",version:"0.0.1",example:"dphelper.event.keys(e)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(o),dphelper.event={list:e=>{globalThis.getEventListeners(e)},multi:(e,t,r)=>{const n=t.split(" ");for(let t=0,o=n.length;t<o;++t)e.addEventListener(n[t],r,!1)},copy:e=>{document.querySelector(e).addEventListener("click",(e=>(0,n.sH)(void 0,void 0,void 0,(function*(){if(navigator.clipboard)try{console.debug(e,e.srcElement.textContent),yield navigator.clipboard.writeText(e.srcElement.textContent),alert("copied")}catch(e){console.error("Can't copy the value",e)}}))))},onDrag:e=>{let t=!1;$(".popup_overflow_"+e).mousedown((function(r){r.pageX,r.pageY,$(window).mousemove((function(r){t=!0;const n=(r.pageY>0?r.pageY:0)-$(".popup_overflow_"+e).height()/2,o=(r.pageX>0?r.pageX:0)-$(".popup_overflow_"+e).width()/2;localStorage.setItem(e,JSON.stringify([n,o]))}))})).mouseup((function(){t=!1,$(window).off("mousemove")}))},keys:e=>({key:e.key,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})},dphelper.setProps(dphelper,o,{lock:!0})},753:(e,t,r)=>{"use strict";r.r(t);const n={name:"form",active:!0,subCommand:[{name:"serialize",version:"0.0.1",example:"dphelper.form.serialize([form])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"confirmType",version:"0.0.1",example:"dphelper.form.confirmType([type, value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"required",version:"0.0.1",example:"dphelper.form.required([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"minLength",version:"0.0.1",example:"dphelper.form.minLength([value, num = 1])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"maxLength",version:"0.0.1",example:"dphelper.form.maxLength([value, num = 10])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"maxPhoneNumber",version:"0.0.1",example:"dphelper.form.maxPhoneNumber([value, num = 10])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isNumeric",version:"0.0.1",example:"dphelper.form.isNumeric([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isEmail",version:"0.0.1",example:"dphelper.form.isEmail([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"pattern",version:"0.0.1",example:"dphelper.form.pattern(event)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Pattern validation using onChange on inputs when you provide a patternt",subCommand:Array},{name:"noSpecialChars",version:"0.0.1",example:"dphelper.form.noSpecialChars(event)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Avoid special chars in an input",subCommand:Array},{name:"table",version:"0.0.1",example:"dphelper.form.table(size = [7, 24], id, elem)",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"Generate a table (default 7x24)",subCommand:Array},{name:"sanitize",version:"0.0.1",example:"dphelper.form.sanitize(input)",author:"Dario Passariello",creationDate:"20240318",lastMod:"20240318",type:"function",active:!0,description:"Sanitize input value to avoid injection",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.form={serialize:function(e){const t=r(4692),n=t(e),o={};if(!/[a-zA-Z][a-zA-Z0-9-_.]/.test(n.name))return;const i=(e,t)=>{let r=e[0];"]"==r.slice(-1)&&(r=r.slice(0,-1));const n={};return 1==e.length?n[r]=(e=>(""==e&&(e=null),"null"==e&&(e=null),"undefined"==e&&(e=void 0),"false"==e&&(e=Boolean(!1)),"true"==e&&(e=Boolean(!0)),"off"==e&&(e=Boolean(!1)),"on"==e&&(e=Boolean(!0)),"[]"==e&&(e=Array),"{}"==e&&(e=Object),0!==["null","undefined","false","true","on","off"].filter((t=>t.includes(e))).length||Number.isNaN(e)||(e=Number(e)),e))(t):(e.shift(),n[r]=i(e,t)),n};return t.each(n.serializeArray(),(function(){const e=this.value,r=this.name.split("["),n=i(r,e);t.extend(!0,o,n)})),o},confirmType:(e,t)=>"number"===e?new RegExp(/^\d+$/).test(t.toString()):"email"!==e||new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(t.toString().toLowerCase()),required:e=>null==e?"Required":void 0,minLength:(e,t=1)=>!e||(null==e?void 0:e.length)<t?"Must Enter a Value":void 0,maxLength:(e,t=10)=>(null==e?void 0:e.length)>t?"Exceeds Max Length":void 0,maxPhoneNumber:(e,t=10)=>{var r;return(null===(r=null==e?void 0:e.toString())||void 0===r?void 0:r.length)>t?"Exceeds Max Length":void 0},isNumeric:e=>!Number.isNaN(e)&&e,isEmail:e=>new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(e.toString().toLowerCase()),pattern:e=>{if(!e.target.type||!e.target.value)return;let t;return"text"===e.target.type?t=/^[a-zA-Z 0-9.+\-$!@]*$/:"email"===e.target.type?t=/^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$/:"password"===e.target.type?t=/^[a-zA-Z 0-9.+\-$!@]*$/:"number"===e.target.type?t=/^[0-9\-+]*$/:"tel"===e.target.type&&(t=/^[0-9\s()\-+]*$/),e.target.value.match(t)?void 0:(e.target.value=e.target.value.slice(0,-1),void e.preventDefault())},noSpecialChars:e=>{const t=e.target.value.trim();if(t.length>2)return t.replace(/[^\w\s]/gi,"")},table:(e=[7,24],t,r)=>{var n="",o=e[0],i=e[1];n=`<form id='${t}'>`,n+="<div class='table'>",n+="<div class='title'>";for(var a=1;a<=o;a++)n+=`<span>${a}</span>`;n+="</div>";for(var s=1;s<=i;s++){n+=`<div class='row'><span>${s}</span>`;for(var l=1;l<=o;l++)n+=`<input name='data[${l}][${s}]' tabindex='${l.toString().padStart(2,"0")}${s.toString().padStart(2,"0")}' type='number' onclick="this.select()" value='${Math.floor(100*Math.random())}' title='${l} to ${s}' />`;n+="</div>"}n+="</div>",n+="</form>",$(r).html(n)},sanitize:e=>{if(e)return e.replace(/[^\w ]/g,"").replace(/[&/\\#, +()$~%.'":*?<>{}]/g,""),e}},dphelper.setProps(dphelper,n,{lock:!0})},4472:(e,t,r)=>{"use strict";r.r(t);const n={name:"format",active:!0,subCommand:[{name:"currency",version:"0.0.1",example:"dphelper.format.currency()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"phoneNumber",version:"0.0.1",example:"dphelper.format.phoneNumber()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.format={currency:(e,t="en-US",r="USD")=>(e&&!Number.isNaN(e)||(e=0),new Intl.NumberFormat(t,{style:"currency",currency:r}).format(e)),phoneNumber:(e,t)=>{const r=(""+e).replace(/\D/g,"").match(/^(\d{3})(\d{3})(\d{4})$/);return r?[t?`+${t} `:"","(",r[2],") ",r[3],"-",r[4]].join(""):null}},dphelper.setProps(dphelper,n,{lock:!0})},6668:(e,t,r)=>{"use strict";r.r(t);const n={name:"idb",active:!0,subCommand:[]};Object.defineProperty(globalThis,"idb",{value:{},configurable:!0,enumerable:!1}),Object.defineProperty(globalThis,"idbases",{value:[],configurable:!0,enumerable:!1}),dphelper._list.scripts.push(n),dphelper.setProps(dphelper,n,{lock:!0}),addEventListener("DOMContentLoaded",(e=>{r(9023),r(5247),r(2891),r(6329),r(2142),r(9312),r(7843),r(6134),r(9799),r(219),idbases=idb.databases()})),dphelper.setProps(dphelper,idb,{lock:!0})},4111:(e,t,r)=>{"use strict";r.r(t);const n={name:"import",active:!0,subCommand:[{name:"file",version:"0.0.1",example:"dphelper.import.file([ elem, file ])",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.import={file:(e,t)=>{const r=e?document.querySelector(e):document.getElementsByTagName("*");let n,o,i;for(n=0;n<r.length;n++)if(o=r[n],t)return i=new XMLHttpRequest,i.onreadystatechange=function(){4==this.readyState&&(200==this.status&&(o.innerHTML=this.responseText),404==this.status&&(o.innerHTML="Page not found."))},i.open("GET",t,!0),void i.send()}},dphelper.setProps(dphelper,n,{lock:!0})},21:(e,t,r)=>{"use strict";r.r(t);const n={name:"json",active:!0,subCommand:[{name:"counter",version:"0.0.1",example:"dphelper.json.counter()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toCsv",version:"0.0.1",example:"dphelper.json.toCsv()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"saveCsvAs",version:"0.0.1",example:"dphelper.json.saveCsvAs()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"is",version:"0.0.1",example:"dphelper.json.is()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"parse",version:"0.0.1",example:"dphelper.json.parse()",author:"Dario Passariello",creationDate:"20241107",lastMod:"20241107",type:"function",active:!0,description:"",subCommand:Array},{name:"sanitize",version:"0.0.1",example:"dphelper.json.sanitize()",author:"Dario Passariello",creationDate:"20241107",lastMod:"20241107",type:"function",active:!0,description:"",subCommand:Array},{name:"sanitize",version:"0.0.1",example:"dphelper.json.sanitizeJsonValue()",author:"Dario Passariello",creationDate:"20241107",lastMod:"20241107",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.json={counter:(e,t,r)=>{if(!e)return null;let n;return n=t&&r?Object.keys(e).length:e.items.filter((e=>e.key===r)).lengt,n},toCsv:e=>{const t=e,r=(e,t)=>null===t?"":t,n=Object.keys(t[0]);let o=null==t?void 0:t.map((e=>null==n?void 0:n.map((t=>JSON.stringify(e[t],r))).join(",")));return o.unshift(n.join(",")),o=o.join("\r\n"),o},saveCsvAs:(e,t)=>{const r=globalThis;let n="";const o=new Blob([e],{type:"text/csv;charset=utf-8;"}),i=document.createElement("a"),a=`${t}_${dphelper.date.dateTimeToString(new Date(Date.now()))}.csv`;n=URL.createObjectURL(o),i.setAttribute("href",n),i.setAttribute("download",a),i.style.visibility="hidden",r.appendChild(i),i.click(),r.removeChild(i)},is:e=>{try{JSON.parse(e)}catch(e){return!1}return!0},parse:e=>{try{return JSON.parse(e)}catch(e){return"Json not parsable"}},sanitize:e=>e,sanitizeJsonValue:e=>e?e.replace(/^"(.*)"$/,"$1").replace(/\\/g,"").replace(/\//g,"/").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/"/g,'\\"').replace(/\t/g," ").trim()+'"':'""'},dphelper.setProps(dphelper,n,{lock:!0})},8907:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"load",active:!0,subCommand:[{name:"all",version:"0.0.1",example:"dphelper.load.all( require['context']('Scripts', true, /.(js|ts)$/) [,'cacheName'] )",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Load from a specific folder all file in base a specific extension. If you add a 'cacheName' you have list stored in global cache",subCommand:Array},{name:"file",version:"0.0.1",example:"dphelper.load.file()",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"",subCommand:Array},{name:"fileToElement",version:"0.0.1",example:"dphelper.load.fileToElement()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"json",version:"0.0.1",example:"dphelper.load.json()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"remote",version:"0.0.1",example:"dphelper.load.remote()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"script",version:"0.0.1",example:"dphelper.load.script()",author:"Dario Passariello",creationDate:"20240525",lastMod:"20240525",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(o),dphelper.load={all:(e,t="")=>{e&&(t&&!(null===cache||void 0===cache?void 0:cache[t])&&(cache[t]=[]),e.keys().forEach((r=>{if(r)return t&&cache[t].push(r),e(r)})))},file:e=>{var t=new XMLHttpRequest;t.open("GET",e),t.onreadystatechange=function(){return t.responseText},t.send()},fileToElement:(e,t)=>(0,n.sH)(void 0,void 0,void 0,(function*(){yield fetch(t).then((function(t){return(0,n.sH)(this,void 0,void 0,(function*(){try{e&&$(e).text(dphelper.sanitize.html(t.text()))}catch(e){}}))})).catch((e=>console.error(e)))})),json:e=>(0,n.sH)(void 0,void 0,void 0,(function*(){yield fetch(e,{method:"get",headers:{"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>e)).catch((e=>console.error(e)))})),remote:(e,...t)=>(0,n.sH)(void 0,[e,...t],void 0,(function*(e,t="GET",r){yield fetch(e,{method:t,headers:r}).then((e=>e)).then((e=>e)).catch((e=>console.error(e)))})),script:(e,t="html")=>{e.map(((e,r)=>$(t).append(`<script src="${e}"><\/script>`)))}},dphelper.setProps(dphelper,o,{lock:!0})},4300:(e,t,r)=>{"use strict";r.r(t);
28
+ */!function(t,r){"use strict";"object"==typeof e.exports?e.exports=t.document?r(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return r(e)}:r(t)}("undefined"!=typeof window?window:this,(function(n,o){"use strict";var i=[],a=Object.getPrototypeOf,s=i.slice,l=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},c=i.push,d=i.indexOf,u={},p=u.toString,h=u.hasOwnProperty,f=h.toString,m=f.call(Object),v={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=n.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,r){var n,o,i=(r=r||b).createElement("script");if(i.text=e,t)for(n in x)(o=t[n]||t.getAttribute&&t.getAttribute(n))&&i.setAttribute(n,o);r.head.appendChild(i).parentNode.removeChild(i)}function D(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[p.call(e)]||"object":typeof e}var C="3.7.1",A=/HTML$/i,k=function(e,t){return new k.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,r=D(e);return!g(e)&&!y(e)&&("array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e)}function _(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}k.fn=k.prototype={jquery:C,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,r){return e.call(t,r,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,r=+e+(e<0?t:0);return this.pushStack(r>=0&&r<t?[this[r]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},k.extend=k.fn.extend=function(){var e,t,r,n,o,i,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=e[t],"__proto__"!==t&&a!==n&&(c&&n&&(k.isPlainObject(n)||(o=Array.isArray(n)))?(r=a[t],i=o&&!Array.isArray(r)?[]:o||k.isPlainObject(r)?r:{},o=!1,a[t]=k.extend(c,i,n)):void 0!==n&&(a[t]=n));return a},k.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,r;return!(!e||"[object Object]"!==p.call(e)||(t=a(e))&&("function"!=typeof(r=h.call(t,"constructor")&&t.constructor)||f.call(r)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,r){w(e,{nonce:t&&t.nonce},r)},each:function(e,t){var r,n=0;if(S(e))for(r=e.length;n<r&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},text:function(e){var t,r="",n=0,o=e.nodeType;if(!o)for(;t=e[n++];)r+=k.text(t);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:r},makeArray:function(e,t){var r=t||[];return null!=e&&(S(Object(e))?k.merge(r,"string"==typeof e?[e]:e):c.call(r,e)),r},inArray:function(e,t,r){return null==t?-1:d.call(t,e,r)},isXMLDoc:function(e){var t=e&&e.namespaceURI,r=e&&(e.ownerDocument||e).documentElement;return!A.test(t||r&&r.nodeName||"HTML")},merge:function(e,t){for(var r=+t.length,n=0,o=e.length;n<r;n++)e[o++]=t[n];return e.length=o,e},grep:function(e,t,r){for(var n=[],o=0,i=e.length,a=!r;o<i;o++)!t(e[o],o)!==a&&n.push(e[o]);return n},map:function(e,t,r){var n,o,i=0,a=[];if(S(e))for(n=e.length;i<n;i++)null!=(o=t(e[i],i,r))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,r))&&a.push(o);return l(a)},guid:1,support:v}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=i[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var T=i.pop,P=i.sort,M=i.splice,E="[\\x20\\t\\r\\n\\f]",j=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g");k.contains=function(e,t){var r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(e.contains?e.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function N(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}k.escapeSelector=function(e){return(e+"").replace(O,N)};var B=b,H=c;!function(){var e,t,r,o,a,l,c,u,p,f,m=H,g=k.expando,y=0,b=0,x=ee(),w=ee(),D=ee(),C=ee(),A=function(e,t){return e===t&&(a=!0),0},S="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\["+E+"*("+O+")(?:"+E+"*([*^$|!~]?=)"+E+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+E+"*\\]",q=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",L=new RegExp(E+"+","g"),R=new RegExp("^"+E+"*,"+E+"*"),I=new RegExp("^"+E+"*([>+~]|"+E+")"+E+"*"),$=new RegExp(E+"|>"),F=new RegExp(q),z=new RegExp("^"+O+"$"),W={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,J=new RegExp("\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\([^\\r\\n\\f])","g"),K=function(e,t){var r="0x"+e.slice(1)-65536;return t||(r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320))},V=function(){le()},Z=pe((function(e){return!0===e.disabled&&_(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(i=s.call(B.childNodes),B.childNodes),i[B.childNodes.length].nodeType}catch(e){m={apply:function(e,t){H.apply(e,s.call(t))},call:function(e){H.apply(e,s.call(arguments,1))}}}function Q(e,t,r,n){var o,i,a,s,c,d,h,f=t&&t.ownerDocument,y=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return r;if(!n&&(le(t),t=t||l,u)){if(11!==y&&(c=X.exec(e)))if(o=c[1]){if(9===y){if(!(a=t.getElementById(o)))return r;if(a.id===o)return m.call(r,a),r}else if(f&&(a=f.getElementById(o))&&Q.contains(t,a)&&a.id===o)return m.call(r,a),r}else{if(c[2])return m.apply(r,t.getElementsByTagName(e)),r;if((o=c[3])&&t.getElementsByClassName)return m.apply(r,t.getElementsByClassName(o)),r}if(!(C[e+" "]||p&&p.test(e))){if(h=e,f=t,1===y&&($.test(e)||I.test(e))){for((f=G.test(e)&&se(t.parentNode)||t)==t&&v.scope||((s=t.getAttribute("id"))?s=k.escapeSelector(s):t.setAttribute("id",s=g)),i=(d=de(e)).length;i--;)d[i]=(s?"#"+s:":scope")+" "+ue(d[i]);h=d.join(",")}try{return m.apply(r,f.querySelectorAll(h)),r}catch(t){C(e,!0)}finally{s===g&&t.removeAttribute("id")}}}return ye(e.replace(j,"$1"),t,r,n)}function ee(){var e=[];return function r(n,o){return e.push(n+" ")>t.cacheLength&&delete r[e.shift()],r[n+" "]=o}}function te(e){return e[g]=!0,e}function re(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ne(e){return function(t){return _(t,"input")&&t.type===e}}function oe(e){return function(t){return(_(t,"input")||_(t,"button"))&&t.type===e}}function ie(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Z(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(r,n){for(var o,i=e([],r.length,t),a=i.length;a--;)r[o=i[a]]&&(r[o]=!(n[o]=r[o]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var r,n=e?e.ownerDocument||e:B;return n!=l&&9===n.nodeType&&n.documentElement?(c=(l=n).documentElement,u=!k.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&B!=l&&(r=l.defaultView)&&r.top!==r&&r.addEventListener("unload",V),v.getById=re((function(e){return c.appendChild(e).id=k.expando,!l.getElementsByName||!l.getElementsByName(k.expando).length})),v.disconnectedMatch=re((function(e){return f.call(e,"*")})),v.scope=re((function(){return l.querySelectorAll(":scope")})),v.cssHas=re((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),v.getById?(t.filter.ID=function(e){var t=e.replace(J,K);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&u){var r=t.getElementById(e);return r?[r]:[]}}):(t.filter.ID=function(e){var t=e.replace(J,K);return function(e){var r=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return r&&r.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&u){var r,n,o,i=t.getElementById(e);if(i){if((r=i.getAttributeNode("id"))&&r.value===e)return[i];for(o=t.getElementsByName(e),n=0;i=o[n++];)if((r=i.getAttributeNode("id"))&&r.value===e)return[i]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&u)return t.getElementsByClassName(e)},p=[],re((function(e){var t;c.appendChild(e).innerHTML="<a id='"+g+"' href='' disabled='disabled'></a><select id='"+g+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||p.push("\\["+E+"*(?:value|"+S+")"),e.querySelectorAll("[id~="+g+"-]").length||p.push("~="),e.querySelectorAll("a#"+g+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+E+"*name"+E+"*="+E+"*(?:''|\"\")")})),v.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),A=function(e,t){if(e===t)return a=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!v.sortDetached&&t.compareDocumentPosition(e)===r?e===l||e.ownerDocument==B&&Q.contains(B,e)?-1:t===l||t.ownerDocument==B&&Q.contains(B,t)?1:o?d.call(o,e)-d.call(o,t):0:4&r?-1:1)},l):l}for(e in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(le(e),u&&!C[t+" "]&&(!p||!p.test(t)))try{var r=f.call(e,t);if(r||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){C(t,!0)}return Q(t,l,null,[e]).length>0},Q.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),k.contains(e,t)},Q.attr=function(e,r){(e.ownerDocument||e)!=l&&le(e);var n=t.attrHandle[r.toLowerCase()],o=n&&h.call(t.attrHandle,r.toLowerCase())?n(e,r,!u):void 0;return void 0!==o?o:e.getAttribute(r)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},k.uniqueSort=function(e){var t,r=[],n=0,i=0;if(a=!v.sortStable,o=!v.sortStable&&s.call(e,0),P.call(e,A),a){for(;t=e[i++];)t===e[i]&&(n=r.push(i));for(;n--;)M.call(e,r[n],1)}return o=null,e},k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(s.apply(this)))},t=k.expr={cacheLength:50,createPseudo:te,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,K),e[3]=(e[3]||e[4]||e[5]||"").replace(J,K),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Q.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Q.error(e[0]),e},PSEUDO:function(e){var t,r=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&F.test(r)&&(t=de(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,K).toLowerCase();return"*"===e?function(){return!0}:function(e){return _(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+E+")"+e+"("+E+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,r){return function(n){var o=Q.attr(n,e);return null==o?"!="===t:!t||(o+="","="===t?o===r:"!="===t?o!==r:"^="===t?r&&0===o.indexOf(r):"*="===t?r&&o.indexOf(r)>-1:"$="===t?r&&o.slice(-r.length)===r:"~="===t?(" "+o.replace(L," ")+" ").indexOf(r)>-1:"|="===t&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,r,n,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===n&&0===o?function(e){return!!e.parentNode}:function(t,r,l){var c,d,u,p,h,f=i!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),b=!l&&!s,x=!1;if(m){if(i){for(;f;){for(u=t;u=u[f];)if(s?_(u,v):1===u.nodeType)return!1;h=f="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&b){for(x=(p=(c=(d=m[g]||(m[g]={}))[e]||[])[0]===y&&c[1])&&c[2],u=p&&m.childNodes[p];u=++p&&u&&u[f]||(x=p=0)||h.pop();)if(1===u.nodeType&&++x&&u===t){d[e]=[y,p,x];break}}else if(b&&(x=p=(c=(d=t[g]||(t[g]={}))[e]||[])[0]===y&&c[1]),!1===x)for(;(u=++p&&u&&u[f]||(x=p=0)||h.pop())&&(!(s?_(u,v):1===u.nodeType)||!++x||(b&&((d=u[g]||(u[g]={}))[e]=[y,x]),u!==t)););return(x-=o)===n||x%n==0&&x/n>=0}}},PSEUDO:function(e,r){var n,o=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Q.error("unsupported pseudo: "+e);return o[g]?o(r):o.length>1?(n=[e,e,"",r],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var n,i=o(e,r),a=i.length;a--;)e[n=d.call(e,i[a])]=!(t[n]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:te((function(e){var t=[],r=[],n=ge(e.replace(j,"$1"));return n[g]?te((function(e,t,r,o){for(var i,a=n(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,o,i){return t[0]=e,n(t,null,i,r),t[0]=null,!r.pop()}})),has:te((function(e){return function(t){return Q(e,t).length>0}})),contains:te((function(e){return e=e.replace(J,K),function(t){return(t.textContent||k.text(t)).indexOf(e)>-1}})),lang:te((function(e){return z.test(e||"")||Q.error("unsupported lang: "+e),e=e.replace(J,K).toLowerCase(),function(t){var r;do{if(r=u?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(r=r.toLowerCase())===e||0===r.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ie(!1),disabled:ie(!0),checked:function(e){return _(e,"input")&&!!e.checked||_(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return U.test(e.nodeName)},button:function(e){return _(e,"input")&&"button"===e.type||_(e,"button")},text:function(e){var t;return _(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,r){return[r<0?r+t:r]})),even:ae((function(e,t){for(var r=0;r<t;r+=2)e.push(r);return e})),odd:ae((function(e,t){for(var r=1;r<t;r+=2)e.push(r);return e})),lt:ae((function(e,t,r){var n;for(n=r<0?r+t:r>t?t:r;--n>=0;)e.push(n);return e})),gt:ae((function(e,t,r){for(var n=r<0?r+t:r;++n<t;)e.push(n);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ne(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=oe(e);function ce(){}function de(e,r){var n,o,i,a,s,l,c,d=w[e+" "];if(d)return r?0:d.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(a in n&&!(o=R.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(i=[])),n=!1,(o=I.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(j," ")}),s=s.slice(n.length)),t.filter)!(o=W[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return r?s.length:s?Q.error(e):w(e,l).slice(0)}function ue(e){for(var t=0,r=e.length,n="";t<r;t++)n+=e[t].value;return n}function pe(e,t,r){var n=t.dir,o=t.next,i=o||n,a=r&&"parentNode"===i,s=b++;return t.first?function(t,r,o){for(;t=t[n];)if(1===t.nodeType||a)return e(t,r,o);return!1}:function(t,r,l){var c,d,u=[y,s];if(l){for(;t=t[n];)if((1===t.nodeType||a)&&e(t,r,l))return!0}else for(;t=t[n];)if(1===t.nodeType||a)if(d=t[g]||(t[g]={}),o&&_(t,o))t=t[n]||t;else{if((c=d[i])&&c[0]===y&&c[1]===s)return u[2]=c[2];if(d[i]=u,u[2]=e(t,r,l))return!0}return!1}}function he(e){return e.length>1?function(t,r,n){for(var o=e.length;o--;)if(!e[o](t,r,n))return!1;return!0}:e[0]}function fe(e,t,r,n,o){for(var i,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(r&&!r(i,n,o)||(a.push(i),c&&t.push(s)));return a}function me(e,t,r,n,o,i){return n&&!n[g]&&(n=me(n)),o&&!o[g]&&(o=me(o,i)),te((function(i,a,s,l){var c,u,p,h,f=[],v=[],g=a.length,y=i||function(e,t,r){for(var n=0,o=t.length;n<o;n++)Q(e,t[n],r);return r}(t||"*",s.nodeType?[s]:s,[]),b=!e||!i&&t?y:fe(y,f,e,s,l);if(r?r(b,h=o||(i?e:g||n)?[]:a,s,l):h=b,n)for(c=fe(h,v),n(c,[],s,l),u=c.length;u--;)(p=c[u])&&(h[v[u]]=!(b[v[u]]=p));if(i){if(o||e){if(o){for(c=[],u=h.length;u--;)(p=h[u])&&c.push(b[u]=p);o(null,h=[],c,l)}for(u=h.length;u--;)(p=h[u])&&(c=o?d.call(i,p):f[u])>-1&&(i[c]=!(a[c]=p))}}else h=fe(h===a?h.splice(g,h.length):h),o?o(null,a,h,l):m.apply(a,h)}))}function ve(e){for(var n,o,i,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,u=pe((function(e){return e===n}),l,!0),p=pe((function(e){return d.call(n,e)>-1}),l,!0),h=[function(e,t,o){var i=!s&&(o||t!=r)||((n=t).nodeType?u(e,t,o):p(e,t,o));return n=null,i}];c<a;c++)if(o=t.relative[e[c].type])h=[pe(he(h),o)];else{if((o=t.filter[e[c].type].apply(null,e[c].matches))[g]){for(i=++c;i<a&&!t.relative[e[i].type];i++);return me(c>1&&he(h),c>1&&ue(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(j,"$1"),o,c<i&&ve(e.slice(c,i)),i<a&&ve(e=e.slice(i)),i<a&&ue(e))}h.push(o)}return he(h)}function ge(e,n){var o,i=[],a=[],s=D[e+" "];if(!s){for(n||(n=de(e)),o=n.length;o--;)(s=ve(n[o]))[g]?i.push(s):a.push(s);s=D(e,function(e,n){var o=n.length>0,i=e.length>0,a=function(a,s,c,d,p){var h,f,v,g=0,b="0",x=a&&[],w=[],D=r,C=a||i&&t.find.TAG("*",p),A=y+=null==D?1:Math.random()||.1,S=C.length;for(p&&(r=s==l||s||p);b!==S&&null!=(h=C[b]);b++){if(i&&h){for(f=0,s||h.ownerDocument==l||(le(h),c=!u);v=e[f++];)if(v(h,s||l,c)){m.call(d,h);break}p&&(y=A)}o&&((h=!v&&h)&&g--,a&&x.push(h))}if(g+=b,o&&b!==g){for(f=0;v=n[f++];)v(x,w,s,c);if(a){if(g>0)for(;b--;)x[b]||w[b]||(w[b]=T.call(d));w=fe(w)}m.apply(d,w),p&&!a&&w.length>0&&g+n.length>1&&k.uniqueSort(d)}return p&&(y=A,r=D),x};return o?te(a):a}(a,i)),s.selector=e}return s}function ye(e,r,n,o){var i,a,s,l,c,d="function"==typeof e&&e,p=!o&&de(e=d.selector||e);if(n=n||[],1===p.length){if((a=p[0]=p[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===r.nodeType&&u&&t.relative[a[1].type]){if(!(r=(t.find.ID(s.matches[0].replace(J,K),r)||[])[0]))return n;d&&(r=r.parentNode),e=e.slice(a.shift().value.length)}for(i=W.needsContext.test(e)?0:a.length;i--&&(s=a[i],!t.relative[l=s.type]);)if((c=t.find[l])&&(o=c(s.matches[0].replace(J,K),G.test(a[0].type)&&se(r.parentNode)||r))){if(a.splice(i,1),!(e=o.length&&ue(a)))return m.apply(n,o),n;break}}return(d||ge(e,p))(o,r,!u,n,!r||G.test(e)&&se(r.parentNode)||r),n}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,v.sortStable=g.split("").sort(A).join("")===g,le(),v.sortDetached=re((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),k.find=Q,k.expr[":"]=k.expr.pseudos,k.unique=k.uniqueSort,Q.compile=ge,Q.select=ye,Q.setDocument=le,Q.tokenize=de,Q.escape=k.escapeSelector,Q.getText=k.text,Q.isXML=k.isXMLDoc,Q.selectors=k.expr,Q.support=k.support,Q.uniqueSort=k.uniqueSort}();var q=function(e,t,r){for(var n=[],o=void 0!==r;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&k(e).is(r))break;n.push(e)}return n},L=function(e,t){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&r.push(e);return r},R=k.expr.match.needsContext,I=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $(e,t,r){return g(t)?k.grep(e,(function(e,n){return!!t.call(e,n,e)!==r})):t.nodeType?k.grep(e,(function(e){return e===t!==r})):"string"!=typeof t?k.grep(e,(function(e){return d.call(t,e)>-1!==r})):k.filter(t,e,r)}k.filter=function(e,t,r){var n=t[0];return r&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?k.find.matchesSelector(n,e)?[n]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,r,n=this.length,o=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<n;t++)if(k.contains(o[t],this))return!0})));for(r=this.pushStack([]),t=0;t<n;t++)k.find(e,o[t],r);return n>1?k.uniqueSort(r):r},filter:function(e){return this.pushStack($(this,e||[],!1))},not:function(e){return this.pushStack($(this,e||[],!0))},is:function(e){return!!$(this,"string"==typeof e&&R.test(e)?k(e):e||[],!1).length}});var F,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,r){var n,o;if(!e)return this;if(r=r||F,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:z.exec(e))||!n[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),I.test(n[1])&&k.isPlainObject(t))for(n in t)g(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(o=b.getElementById(n[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==r.ready?r.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,F=k(b);var W=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function Y(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),r=t.length;return this.filter((function(){for(var e=0;e<r;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var r,n=0,o=this.length,i=[],a="string"!=typeof e&&k(e);if(!R.test(e))for(;n<o;n++)for(r=this[n];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(a?a.index(r)>-1:1===r.nodeType&&k.find.matchesSelector(r,e))){i.push(r);break}return this.pushStack(i.length>1?k.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?d.call(k(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return q(e,"parentNode")},parentsUntil:function(e,t,r){return q(e,"parentNode",r)},next:function(e){return Y(e,"nextSibling")},prev:function(e){return Y(e,"previousSibling")},nextAll:function(e){return q(e,"nextSibling")},prevAll:function(e){return q(e,"previousSibling")},nextUntil:function(e,t,r){return q(e,"nextSibling",r)},prevUntil:function(e,t,r){return q(e,"previousSibling",r)},siblings:function(e){return L((e.parentNode||{}).firstChild,e)},children:function(e){return L(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(_(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(r,n){var o=k.map(this,t,r);return"Until"!==e.slice(-5)&&(n=r),n&&"string"==typeof n&&(o=k.filter(n,o)),this.length>1&&(U[e]||k.uniqueSort(o),W.test(e)&&o.reverse()),this.pushStack(o)}}));var X=/[^\x20\t\r\n\f]+/g;function G(e){return e}function J(e){throw e}function K(e,t,r,n){var o;try{e&&g(o=e.promise)?o.call(e).done(t).fail(r):e&&g(o=e.then)?o.call(e,t,r):t.apply(void 0,[e].slice(n))}catch(e){r.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(X)||[],(function(e,r){t[r]=!0})),t}(e):k.extend({},e);var t,r,n,o,i=[],a=[],s=-1,l=function(){for(o=o||e.once,n=t=!0;a.length;s=-1)for(r=a.shift();++s<i.length;)!1===i[s].apply(r[0],r[1])&&e.stopOnFalse&&(s=i.length,r=!1);e.memory||(r=!1),t=!1,o&&(i=r?[]:"")},c={add:function(){return i&&(r&&!t&&(s=i.length-1,a.push(r)),function t(r){k.each(r,(function(r,n){g(n)?e.unique&&c.has(n)||i.push(n):n&&n.length&&"string"!==D(n)&&t(n)}))}(arguments),r&&!t&&l()),this},remove:function(){return k.each(arguments,(function(e,t){for(var r;(r=k.inArray(t,i,r))>-1;)i.splice(r,1),r<=s&&s--})),this},has:function(e){return e?k.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=r="",this},disabled:function(){return!i},lock:function(){return o=a=[],r||t||(i=r=""),this},locked:function(){return!!o},fireWith:function(e,r){return o||(r=[e,(r=r||[]).slice?r.slice():r],a.push(r),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(r){k.each(t,(function(t,n){var o=g(e[n[4]])&&e[n[4]];i[n[1]]((function(){var e=o&&o.apply(this,arguments);e&&g(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[n[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,o){var i=0;function a(e,t,r,o){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<i)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,g(c)?o?c.call(n,a(i,t,G,o),a(i,t,J,o)):(i++,c.call(n,a(i,t,G,o),a(i,t,J,o),a(i,t,G,t.notifyWith))):(r!==G&&(s=void 0,l=[n]),(o||t.resolveWith)(s,l))}},d=o?c:function(){try{c()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,d.error),e+1>=i&&(r!==J&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?d():(k.Deferred.getErrorHook?d.error=k.Deferred.getErrorHook():k.Deferred.getStackHook&&(d.error=k.Deferred.getStackHook()),n.setTimeout(d))}}return k.Deferred((function(n){t[0][3].add(a(0,n,g(o)?o:G,n.notifyWith)),t[1][3].add(a(0,n,g(e)?e:G)),t[2][3].add(a(0,n,g(r)?r:J))})).promise()},promise:function(e){return null!=e?k.extend(e,o):o}},i={};return k.each(t,(function(e,n){var a=n[2],s=n[5];o[n[1]]=a.add,s&&a.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith})),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,r=t,n=Array(r),o=s.call(arguments),i=k.Deferred(),a=function(e){return function(r){n[e]=this,o[e]=arguments.length>1?s.call(arguments):r,--t||i.resolveWith(n,o)}};if(t<=1&&(K(e,i.done(a(r)).resolve,i.reject,!t),"pending"===i.state()||g(o[r]&&o[r].then)))return i.then();for(;r--;)K(o[r],a(r),i.reject);return i.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&V.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout((function(){throw e}))};var Z=k.Deferred();function Q(){b.removeEventListener("DOMContentLoaded",Q),n.removeEventListener("load",Q),k.ready()}k.fn.ready=function(e){return Z.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||Z.resolveWith(b,[k]))}}),k.ready.then=Z.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",Q),n.addEventListener("load",Q));var ee=function(e,t,r,n,o,i,a){var s=0,l=e.length,c=null==r;if("object"===D(r))for(s in o=!0,r)ee(e,t,s,r[s],!0,i,a);else if(void 0!==n&&(o=!0,g(n)||(a=!0),c&&(a?(t.call(e,n),t=null):(c=t,t=function(e,t,r){return c.call(k(e),r)})),t))for(;s<l;s++)t(e[s],r,a?n:n.call(e[s],s,t(e[s],r)));return o?e:c?t.call(e):l?t(e[0],r):i},te=/^-ms-/,re=/-([a-z])/g;function ne(e,t){return t.toUpperCase()}function oe(e){return e.replace(te,"ms-").replace(re,ne)}var ie=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=k.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ie(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,r){var n,o=this.cache(e);if("string"==typeof t)o[oe(t)]=r;else for(n in t)o[oe(n)]=t[n];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][oe(t)]},access:function(e,t,r){return void 0===t||t&&"string"==typeof t&&void 0===r?this.get(e,t):(this.set(e,t,r),void 0!==r?r:t)},remove:function(e,t){var r,n=e[this.expando];if(void 0!==n){if(void 0!==t){r=(t=Array.isArray(t)?t.map(oe):(t=oe(t))in n?[t]:t.match(X)||[]).length;for(;r--;)delete n[t[r]]}(void 0===t||k.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var se=new ae,le=new ae,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,de=/[A-Z]/g;function ue(e,t,r){var n;if(void 0===r&&1===e.nodeType)if(n="data-"+t.replace(de,"-$&").toLowerCase(),"string"==typeof(r=e.getAttribute(n))){try{r=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(r)}catch(e){}le.set(e,t,r)}else r=void 0;return r}k.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,r){return le.access(e,t,r)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,r){return se.access(e,t,r)},_removeData:function(e,t){se.remove(e,t)}}),k.fn.extend({data:function(e,t){var r,n,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=le.get(i),1===i.nodeType&&!se.get(i,"hasDataAttrs"))){for(r=a.length;r--;)a[r]&&0===(n=a[r].name).indexOf("data-")&&(n=oe(n.slice(5)),ue(i,n,o[n]));se.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var r;if(i&&void 0===t)return void 0!==(r=le.get(i,e))||void 0!==(r=ue(i,e))?r:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),k.extend({queue:function(e,t,r){var n;if(e)return t=(t||"fx")+"queue",n=se.get(e,t),r&&(!n||Array.isArray(r)?n=se.access(e,t,k.makeArray(r)):n.push(r)),n||[]},dequeue:function(e,t){t=t||"fx";var r=k.queue(e,t),n=r.length,o=r.shift(),i=k._queueHooks(e,t);"inprogress"===o&&(o=r.shift(),n--),o&&("fx"===t&&r.unshift("inprogress"),delete i.stop,o.call(e,(function(){k.dequeue(e,t)}),i)),!n&&i&&i.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return se.get(e,r)||se.access(e,r,{empty:k.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",r])}))})}}),k.fn.extend({queue:function(e,t){var r=2;return"string"!=typeof e&&(t=e,e="fx",r--),arguments.length<r?k.queue(this[0],e):void 0===t?this:this.each((function(){var r=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==r[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var r,n=1,o=k.Deferred(),i=this,a=this.length,s=function(){--n||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(r=se.get(i[a],e+"queueHooks"))&&r.empty&&(n++,r.empty.add(s));return s(),o.promise(t)}});var pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=new RegExp("^(?:([+-])=|)("+pe+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],me=b.documentElement,ve=function(e){return k.contains(e.ownerDocument,e)},ge={composed:!0};me.getRootNode&&(ve=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(ge)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ve(e)&&"none"===k.css(e,"display")};function be(e,t,r,n){var o,i,a=20,s=n?function(){return n.cur()}:function(){return k.css(e,t,"")},l=s(),c=r&&r[3]||(k.cssNumber[t]?"":"px"),d=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&he.exec(k.css(e,t));if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;a--;)k.style(e,t,d+c),(1-i)*(1-(i=s()/l||.5))<=0&&(a=0),d/=i;d*=2,k.style(e,t,d+c),r=r||[]}return r&&(d=+d||+l||0,o=r[1]?d+(r[1]+1)*r[2]:+r[2],n&&(n.unit=c,n.start=d,n.end=o)),o}var xe={};function we(e){var t,r=e.ownerDocument,n=e.nodeName,o=xe[n];return o||(t=r.body.appendChild(r.createElement(n)),o=k.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),xe[n]=o,o)}function De(e,t){for(var r,n,o=[],i=0,a=e.length;i<a;i++)(n=e[i]).style&&(r=n.style.display,t?("none"===r&&(o[i]=se.get(n,"display")||null,o[i]||(n.style.display="")),""===n.style.display&&ye(n)&&(o[i]=we(n))):"none"!==r&&(o[i]="none",se.set(n,"display",r)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}k.fn.extend({show:function(){return De(this,!0)},hide:function(){return De(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?k(this).show():k(this).hide()}))}});var Ce,Ae,ke=/^(?:checkbox|radio)$/i,Se=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_e=/^$|^module$|\/(?:java|ecma)script/i;Ce=b.createDocumentFragment().appendChild(b.createElement("div")),(Ae=b.createElement("input")).setAttribute("type","radio"),Ae.setAttribute("checked","checked"),Ae.setAttribute("name","t"),Ce.appendChild(Ae),v.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,Ce.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue,Ce.innerHTML="<option></option>",v.option=!!Ce.lastChild;var Te={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Pe(e,t){var r;return r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&_(e,t)?k.merge([e],r):r}function Me(e,t){for(var r=0,n=e.length;r<n;r++)se.set(e[r],"globalEval",!t||se.get(t[r],"globalEval"))}Te.tbody=Te.tfoot=Te.colgroup=Te.caption=Te.thead,Te.th=Te.td,v.option||(Te.optgroup=Te.option=[1,"<select multiple='multiple'>","</select>"]);var Ee=/<|&#?\w+;/;function je(e,t,r,n,o){for(var i,a,s,l,c,d,u=t.createDocumentFragment(),p=[],h=0,f=e.length;h<f;h++)if((i=e[h])||0===i)if("object"===D(i))k.merge(p,i.nodeType?[i]:i);else if(Ee.test(i)){for(a=a||u.appendChild(t.createElement("div")),s=(Se.exec(i)||["",""])[1].toLowerCase(),l=Te[s]||Te._default,a.innerHTML=l[1]+k.htmlPrefilter(i)+l[2],d=l[0];d--;)a=a.lastChild;k.merge(p,a.childNodes),(a=u.firstChild).textContent=""}else p.push(t.createTextNode(i));for(u.textContent="",h=0;i=p[h++];)if(n&&k.inArray(i,n)>-1)o&&o.push(i);else if(c=ve(i),a=Pe(u.appendChild(i),"script"),c&&Me(a),r)for(d=0;i=a[d++];)_e.test(i.type||"")&&r.push(i);return u}var Oe=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function Be(){return!1}function He(e,t,r,n,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof r&&(n=n||r,r=void 0),t)He(e,s,r,n,t[s],i);return e}if(null==n&&null==o?(o=r,n=r=void 0):null==o&&("string"==typeof r?(o=n,n=void 0):(o=n,n=r,r=void 0)),!1===o)o=Be;else if(!o)return e;return 1===i&&(a=o,o=function(e){return k().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=k.guid++)),e.each((function(){k.event.add(this,t,o,n,r)}))}function qe(e,t,r){r?(se.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var r,n=se.get(this,t);if(1&e.isTrigger&&this[t]){if(n)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(n=s.call(arguments),se.set(this,t,n),this[t](),r=se.get(this,t),se.set(this,t,!1),n!==r)return e.stopImmediatePropagation(),e.preventDefault(),r}else n&&(se.set(this,t,k.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===se.get(e,t)&&k.event.add(e,t,Ne)}k.event={global:{},add:function(e,t,r,n,o){var i,a,s,l,c,d,u,p,h,f,m,v=se.get(e);if(ie(e))for(r.handler&&(r=(i=r).handler,o=i.selector),o&&k.find.matchesSelector(me,o),r.guid||(r.guid=k.guid++),(l=v.events)||(l=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(X)||[""]).length;c--;)h=m=(s=Oe.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h&&(u=k.event.special[h]||{},h=(o?u.delegateType:u.bindType)||h,u=k.event.special[h]||{},d=k.extend({type:h,origType:m,data:n,handler:r,guid:r.guid,selector:o,needsContext:o&&k.expr.match.needsContext.test(o),namespace:f.join(".")},i),(p=l[h])||((p=l[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,n,f,a)||e.addEventListener&&e.addEventListener(h,a)),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),o?p.splice(p.delegateCount++,0,d):p.push(d),k.event.global[h]=!0)},remove:function(e,t,r,n,o){var i,a,s,l,c,d,u,p,h,f,m,v=se.hasData(e)&&se.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(X)||[""]).length;c--;)if(h=m=(s=Oe.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h){for(u=k.event.special[h]||{},p=l[h=(n?u.delegateType:u.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)d=p[i],!o&&m!==d.origType||r&&r.guid!==d.guid||s&&!s.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(p.splice(i,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(e,d));a&&!p.length&&(u.teardown&&!1!==u.teardown.call(e,f,v.handle)||k.removeEvent(e,h,v.handle),delete l[h])}else for(h in l)k.event.remove(e,h+t[c],r,n,!0);k.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,r,n,o,i,a,s=new Array(arguments.length),l=k.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],d=k.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){for(a=k.event.handlers.call(this,l,c),t=0;(o=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,r=0;(i=o.handlers[r++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,void 0!==(n=((k.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(e,t){var r,n,o,i,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},r=0;r<l;r++)void 0===a[o=(n=t[r]).selector+" "]&&(a[o]=n.needsContext?k(o,this).index(c)>-1:k.find(o,this,null,[c]).length),a[o]&&i.push(n);i.length&&s.push({elem:c,handlers:i})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ke.test(t.type)&&t.click&&_(t,"input")&&qe(t,"click",!0),!1},trigger:function(e){var t=this||e;return ke.test(t.type)&&t.click&&_(t,"input")&&qe(t,"click"),!0},_default:function(e){var t=e.target;return ke.test(t.type)&&t.click&&_(t,"input")&&se.get(t,"click")||_(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,r){e.removeEventListener&&e.removeEventListener(t,r)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:Be,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Be,isPropagationStopped:Be,isImmediatePropagationStopped:Be,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){function r(e){if(b.documentMode){var r=se.get(this,"handle"),n=k.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,r(e),n.target===n.currentTarget&&r(n)}else k.event.simulate(t,e.target,k.event.fix(e))}k.event.special[e]={setup:function(){var n;if(qe(this,e,!0),!b.documentMode)return!1;(n=se.get(this,t))||this.addEventListener(t,r),se.set(this,t,(n||0)+1)},trigger:function(){return qe(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,r),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},k.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,o=b.documentMode?this:n,i=se.get(o,t);i||(b.documentMode?this.addEventListener(t,r):n.addEventListener(e,r,!0)),se.set(o,t,(i||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,o=b.documentMode?this:n,i=se.get(o,t)-1;i?se.set(o,t,i):(b.documentMode?this.removeEventListener(t,r):n.removeEventListener(e,r,!0),se.remove(o,t))}}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var r,n=e.relatedTarget,o=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=o.origType,r=o.handler.apply(this,arguments),e.type=t),r}}})),k.fn.extend({on:function(e,t,r,n){return He(this,e,t,r,n)},one:function(e,t,r,n){return He(this,e,t,r,n,1)},off:function(e,t,r){var n,o;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,k(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=Be),this.each((function(){k.event.remove(this,e,r,t)}))}});var Le=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function $e(e,t){return _(e,"table")&&_(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function We(e,t){var r,n,o,i,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(o in se.remove(t,"handle events"),s)for(r=0,n=s[o].length;r<n;r++)k.event.add(t,o,s[o][r]);le.hasData(e)&&(i=le.access(e),a=k.extend({},i),le.set(t,a))}}function Ue(e,t){var r=t.nodeName.toLowerCase();"input"===r&&ke.test(e.type)?t.checked=e.checked:"input"!==r&&"textarea"!==r||(t.defaultValue=e.defaultValue)}function Ye(e,t,r,n){t=l(t);var o,i,a,s,c,d,u=0,p=e.length,h=p-1,f=t[0],m=g(f);if(m||p>1&&"string"==typeof f&&!v.checkClone&&Re.test(f))return e.each((function(o){var i=e.eq(o);m&&(t[0]=f.call(this,o,i.html())),Ye(i,t,r,n)}));if(p&&(i=(o=je(t,e[0].ownerDocument,!1,e,n)).firstChild,1===o.childNodes.length&&(o=i),i||n)){for(s=(a=k.map(Pe(o,"script"),Fe)).length;u<p;u++)c=o,u!==h&&(c=k.clone(c,!0,!0),s&&k.merge(a,Pe(c,"script"))),r.call(e[u],c,u);if(s)for(d=a[a.length-1].ownerDocument,k.map(a,ze),u=0;u<s;u++)c=a[u],_e.test(c.type||"")&&!se.access(c,"globalEval")&&k.contains(d,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&!c.noModule&&k._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},d):w(c.textContent.replace(Ie,""),c,d))}return e}function Xe(e,t,r){for(var n,o=t?k.filter(t,e):e,i=0;null!=(n=o[i]);i++)r||1!==n.nodeType||k.cleanData(Pe(n)),n.parentNode&&(r&&ve(n)&&Me(Pe(n,"script")),n.parentNode.removeChild(n));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,r){var n,o,i,a,s=e.cloneNode(!0),l=ve(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=Pe(s),n=0,o=(i=Pe(e)).length;n<o;n++)Ue(i[n],a[n]);if(t)if(r)for(i=i||Pe(e),a=a||Pe(s),n=0,o=i.length;n<o;n++)We(i[n],a[n]);else We(e,s);return(a=Pe(s,"script")).length>0&&Me(a,!l&&Pe(e,"script")),s},cleanData:function(e){for(var t,r,n,o=k.event.special,i=0;void 0!==(r=e[i]);i++)if(ie(r)){if(t=r[se.expando]){if(t.events)for(n in t.events)o[n]?k.event.remove(r,n):k.removeEvent(r,n,t.handle);r[se.expando]=void 0}r[le.expando]&&(r[le.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Xe(this,e,!0)},remove:function(e){return Xe(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ye(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||$e(this,e).appendChild(e)}))},prepend:function(){return Ye(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=$e(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ye(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ye(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(Pe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},r=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!Te[(Se.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;r<n;r++)1===(t=this[r]||{}).nodeType&&(k.cleanData(Pe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ye(this,arguments,(function(t){var r=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(Pe(this)),r&&r.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var r,n=[],o=k(e),i=o.length-1,a=0;a<=i;a++)r=a===i?this:this.clone(!0),k(o[a])[t](r),c.apply(n,r.get());return this.pushStack(n)}}));var Ge=new RegExp("^("+pe+")(?!px)[a-z%]+$","i"),Je=/^--/,Ke=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ve=function(e,t,r){var n,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in n=r.call(e),t)e.style[o]=i[o];return n},Ze=new RegExp(fe.join("|"),"i");function Qe(e,t,r){var n,o,i,a,s=Je.test(t),l=e.style;return(r=r||Ke(e))&&(a=r.getPropertyValue(t)||r[t],s&&a&&(a=a.replace(j,"$1")||void 0),""!==a||ve(e)||(a=k.style(e,t)),!v.pixelBoxStyles()&&Ge.test(a)&&Ze.test(t)&&(n=l.width,o=l.minWidth,i=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=r.width,l.width=n,l.minWidth=o,l.maxWidth=i)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(d){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(c).appendChild(d);var e=n.getComputedStyle(d);r="1%"!==e.top,l=12===t(e.marginLeft),d.style.right="60%",a=36===t(e.right),o=36===t(e.width),d.style.position="absolute",i=12===t(d.offsetWidth/3),me.removeChild(c),d=null}}function t(e){return Math.round(parseFloat(e))}var r,o,i,a,s,l,c=b.createElement("div"),d=b.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===d.style.backgroundClip,k.extend(v,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,r,o;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),r=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",me.appendChild(e).appendChild(t).appendChild(r),o=n.getComputedStyle(t),s=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],rt=b.createElement("div").style,nt={};function ot(e){return k.cssProps[e]||nt[e]||(e in rt?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),r=tt.length;r--;)if((e=tt[r]+t)in rt)return e}(e)||e)}var it=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,r){var n=he.exec(t);return n?Math.max(0,n[2]-(r||0))+(n[3]||"px"):t}function ct(e,t,r,n,o,i){var a="width"===t?1:0,s=0,l=0,c=0;if(r===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===r&&(c+=k.css(e,r+fe[a],!0,o)),n?("content"===r&&(l-=k.css(e,"padding"+fe[a],!0,o)),"margin"!==r&&(l-=k.css(e,"border"+fe[a]+"Width",!0,o))):(l+=k.css(e,"padding"+fe[a],!0,o),"padding"!==r?l+=k.css(e,"border"+fe[a]+"Width",!0,o):s+=k.css(e,"border"+fe[a]+"Width",!0,o));return!n&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))||0),l+c}function dt(e,t,r){var n=Ke(e),o=(!v.boxSizingReliable()||r)&&"border-box"===k.css(e,"boxSizing",!1,n),i=o,a=Qe(e,t,n),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(a)){if(!r)return a;a="auto"}return(!v.boxSizingReliable()&&o||!v.reliableTrDimensions()&&_(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,n))&&e.getClientRects().length&&(o="border-box"===k.css(e,"boxSizing",!1,n),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ct(e,t,r||(o?"border":"content"),i,n,a)+"px"}function ut(e,t,r,n,o){return new ut.prototype.init(e,t,r,n,o)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var r=Qe(e,"opacity");return""===r?"1":r}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,r,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=oe(t),l=Je.test(t),c=e.style;if(l||(t=ot(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===r)return a&&"get"in a&&void 0!==(o=a.get(e,!1,n))?o:c[t];"string"==(i=typeof r)&&(o=he.exec(r))&&o[1]&&(r=be(e,t,o),i="number"),null!=r&&r==r&&("number"!==i||l||(r+=o&&o[3]||(k.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==r||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(r=a.set(e,r,n))||(l?c.setProperty(t,r):c[t]=r))}},css:function(e,t,r,n){var o,i,a,s=oe(t);return Je.test(t)||(t=ot(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,r)),void 0===o&&(o=Qe(e,t,n)),"normal"===o&&t in st&&(o=st[t]),""===r||r?(i=parseFloat(o),!0===r||isFinite(i)?i||0:o):o}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,r,n){if(r)return!it.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?dt(e,t,n):Ve(e,at,(function(){return dt(e,t,n)}))},set:function(e,r,n){var o,i=Ke(e),a=!v.scrollboxSize()&&"absolute"===i.position,s=(a||n)&&"border-box"===k.css(e,"boxSizing",!1,i),l=n?ct(e,t,n,s,i):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-ct(e,t,"border",!1,i)-.5)),l&&(o=he.exec(r))&&"px"!==(o[3]||"px")&&(e.style[t]=r,r=k.css(e,t)),lt(0,r,l)}}})),k.cssHooks.marginLeft=et(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(r){for(var n=0,o={},i="string"==typeof r?r.split(" "):[r];n<4;n++)o[e+fe[n]+t]=i[n]||i[n-2]||i[0];return o}},"margin"!==e&&(k.cssHooks[e+t].set=lt)})),k.fn.extend({css:function(e,t){return ee(this,(function(e,t,r){var n,o,i={},a=0;if(Array.isArray(t)){for(n=Ke(e),o=t.length;a<o;a++)i[t[a]]=k.css(e,t[a],!1,n);return i}return void 0!==r?k.style(e,t,r):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=ut,ut.prototype={constructor:ut,init:function(e,t,r,n,o,i){this.elem=e,this.prop=r,this.easing=o||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=i||(k.cssNumber[r]?"":"px")},cur:function(){var e=ut.propHooks[this.prop];return e&&e.get?e.get(this):ut.propHooks._default.get(this)},run:function(e){var t,r=ut.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):ut.propHooks._default.set(this),this}},ut.prototype.init.prototype=ut.prototype,ut.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[ot(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},ut.propHooks.scrollTop=ut.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=ut.prototype.init,k.fx.step={};var pt,ht,ft=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function vt(){ht&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(vt):n.setTimeout(vt,k.fx.interval),k.fx.tick())}function gt(){return n.setTimeout((function(){pt=void 0})),pt=Date.now()}function yt(e,t){var r,n=0,o={height:e};for(t=t?1:0;n<4;n+=2-t)o["margin"+(r=fe[n])]=o["padding"+r]=e;return t&&(o.opacity=o.width=e),o}function bt(e,t,r){for(var n,o=(xt.tweeners[t]||[]).concat(xt.tweeners["*"]),i=0,a=o.length;i<a;i++)if(n=o[i].call(r,t,e))return n}function xt(e,t,r){var n,o,i=0,a=xt.prefilters.length,s=k.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var t=pt||gt(),r=Math.max(0,c.startTime+c.duration-t),n=1-(r/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(n);return s.notifyWith(e,[c,n,r]),n<1&&a?r:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},r),originalProperties:t,originalOptions:r,startTime:pt||gt(),duration:r.duration,tweens:[],createTween:function(t,r){var n=k.Tween(e,c.opts,t,r,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var r=0,n=t?c.tweens.length:0;if(o)return this;for(o=!0;r<n;r++)c.tweens[r].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),d=c.props;for(function(e,t){var r,n,o,i,a;for(r in e)if(o=t[n=oe(r)],i=e[r],Array.isArray(i)&&(o=i[1],i=e[r]=i[0]),r!==n&&(e[n]=i,delete e[r]),(a=k.cssHooks[n])&&"expand"in a)for(r in i=a.expand(i),delete e[n],i)r in e||(e[r]=i[r],t[r]=o);else t[n]=o}(d,c.opts.specialEasing);i<a;i++)if(n=xt.prefilters[i].call(c,e,d,c.opts))return g(n.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return k.map(d,bt,c),g(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(xt,{tweeners:{"*":[function(e,t){var r=this.createTween(e,t);return be(r.elem,e,he.exec(t),r),r}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(X);for(var r,n=0,o=e.length;n<o;n++)r=e[n],xt.tweeners[r]=xt.tweeners[r]||[],xt.tweeners[r].unshift(t)},prefilters:[function(e,t,r){var n,o,i,a,s,l,c,d,u="width"in t||"height"in t,p=this,h={},f=e.style,m=e.nodeType&&ye(e),v=se.get(e,"fxshow");for(n in r.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()}))}))),t)if(o=t[n],ft.test(o)){if(delete t[n],i=i||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!v||void 0===v[n])continue;m=!0}h[n]=v&&v[n]||k.style(e,n)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(h))for(n in u&&1===e.nodeType&&(r.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=v&&v.display)&&(c=se.get(e,"display")),"none"===(d=k.css(e,"display"))&&(c?d=c:(De([e],!0),c=e.style.display||c,d=k.css(e,"display"),De([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===k.css(e,"float")&&(l||(p.done((function(){f.display=c})),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),r.overflow&&(f.overflow="hidden",p.always((function(){f.overflow=r.overflow[0],f.overflowX=r.overflow[1],f.overflowY=r.overflow[2]}))),l=!1,h)l||(v?"hidden"in v&&(m=v.hidden):v=se.access(e,"fxshow",{display:c}),i&&(v.hidden=!m),m&&De([e],!0),p.done((function(){for(n in m||De([e]),se.remove(e,"fxshow"),h)k.style(e,n,h[n])}))),l=bt(m?v[n]:0,n,p),n in v||(v[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?xt.prefilters.unshift(e):xt.prefilters.push(e)}}),k.speed=function(e,t,r){var n=e&&"object"==typeof e?k.extend({},e):{complete:r||!r&&t||g(e)&&e,duration:e,easing:r&&t||t&&!g(t)&&t};return k.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in k.fx.speeds?n.duration=k.fx.speeds[n.duration]:n.duration=k.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){g(n.old)&&n.old.call(this),n.queue&&k.dequeue(this,n.queue)},n},k.fn.extend({fadeTo:function(e,t,r,n){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,r,n)},animate:function(e,t,r,n){var o=k.isEmptyObject(e),i=k.speed(t,r,n),a=function(){var t=xt(this,k.extend({},e),i);(o||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,r){var n=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",i=k.timers,a=se.get(this);if(o)a[o]&&a[o].stop&&n(a[o]);else for(o in a)a[o]&&a[o].stop&&mt.test(o)&&n(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(r),t=!1,i.splice(o,1));!t&&r||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,r=se.get(this),n=r[e+"queue"],o=r[e+"queueHooks"],i=k.timers,a=n?n.length:0;for(r.finish=!0,k.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete r.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var r=k.fn[t];k.fn[t]=function(e,n,o){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(yt(t,!0),e,n,o)}})),k.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,r,n){return this.animate(t,e,r,n)}})),k.timers=[],k.fx.tick=function(){var e,t=0,r=k.timers;for(pt=Date.now();t<r.length;t++)(e=r[t])()||r[t]!==e||r.splice(t--,1);r.length||k.fx.stop(),pt=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){ht||(ht=!0,vt())},k.fx.stop=function(){ht=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var o=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(o)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var wt,Dt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return ee(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,r){var n,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?k.prop(e,t,r):(1===i&&k.isXMLDoc(e)||(o=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?wt:void 0)),void 0!==r?null===r?void k.removeAttr(e,t):o&&"set"in o&&void 0!==(n=o.set(e,r,t))?n:(e.setAttribute(t,r+""),r):o&&"get"in o&&null!==(n=o.get(e,t))?n:null==(n=k.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&_(e,"input")){var r=e.value;return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,n=0,o=t&&t.match(X);if(o&&1===e.nodeType)for(;r=o[n++];)e.removeAttribute(r)}}),wt={set:function(e,t,r){return!1===t?k.removeAttr(e,r):e.setAttribute(r,r),r}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var r=Dt[t]||k.find.attr;Dt[t]=function(e,t,n){var o,i,a=t.toLowerCase();return n||(i=Dt[a],Dt[a]=o,o=null!=r(e,t,n)?a:null,Dt[a]=i),o}}));var Ct=/^(?:input|select|textarea|button)$/i,At=/^(?:a|area)$/i;function kt(e){return(e.match(X)||[]).join(" ")}function St(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(X)||[]}k.fn.extend({prop:function(e,t){return ee(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,r){var n,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&k.isXMLDoc(e)||(t=k.propFix[t]||t,o=k.propHooks[t]),void 0!==r?o&&"set"in o&&void 0!==(n=o.set(e,r,t))?n:e[t]=r:o&&"get"in o&&null!==(n=o.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||At.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,r,n,o,i,a;return g(e)?this.each((function(t){k(this).addClass(e.call(this,t,St(this)))})):(t=_t(e)).length?this.each((function(){if(n=St(this),r=1===this.nodeType&&" "+kt(n)+" "){for(i=0;i<t.length;i++)o=t[i],r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=kt(r),n!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,r,n,o,i,a;return g(e)?this.each((function(t){k(this).removeClass(e.call(this,t,St(this)))})):arguments.length?(t=_t(e)).length?this.each((function(){if(n=St(this),r=1===this.nodeType&&" "+kt(n)+" "){for(i=0;i<t.length;i++)for(o=t[i];r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=kt(r),n!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var r,n,o,i,a=typeof e,s="string"===a||Array.isArray(e);return g(e)?this.each((function(r){k(this).toggleClass(e.call(this,r,St(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(r=_t(e),this.each((function(){if(s)for(i=k(this),o=0;o<r.length;o++)n=r[o],i.hasClass(n)?i.removeClass(n):i.addClass(n);else void 0!==e&&"boolean"!==a||((n=St(this))&&se.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,r,n=0;for(t=" "+e+" ";r=this[n++];)if(1===r.nodeType&&(" "+kt(St(r))+" ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g;k.fn.extend({val:function(e){var t,r,n,o=this[0];return arguments.length?(n=g(e),this.each((function(r){var o;1===this.nodeType&&(null==(o=n?e.call(this,r,k(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=k.map(o,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=k.valHooks[o.type]||k.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(o,"value"))?r:"string"==typeof(r=o.value)?r.replace(Tt,""):null==r?"":r:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:kt(k.text(e))}},select:{get:function(e){var t,r,n,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?i+1:o.length;for(n=i<0?l:a?i:0;n<l;n++)if(((r=o[n]).selected||n===i)&&!r.disabled&&(!r.parentNode.disabled||!_(r.parentNode,"optgroup"))){if(t=k(r).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var r,n,o=e.options,i=k.makeArray(t),a=o.length;a--;)((n=o[a]).selected=k.inArray(k.valHooks.option.get(n),i)>-1)&&(r=!0);return r||(e.selectedIndex=-1),i}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},v.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Pt=n.location,Mt={guid:Date.now()},Et=/\?/;k.parseXML=function(e){var t,r;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return r=t&&t.getElementsByTagName("parsererror")[0],t&&!r||k.error("Invalid XML: "+(r?k.map(r.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var jt=/^(?:focusinfocus|focusoutblur)$/,Ot=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,r,o){var i,a,s,l,c,d,u,p,f=[r||b],m=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!jt.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[k.expando]?e:new k.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:k.makeArray(t,[e]),u=k.event.special[m]||{},o||!u.trigger||!1!==u.trigger.apply(r,t))){if(!o&&!u.noBubble&&!y(r)){for(l=u.delegateType||m,jt.test(l+m)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(r.ownerDocument||b)&&f.push(s.defaultView||s.parentWindow||n)}for(i=0;(a=f[i++])&&!e.isPropagationStopped();)p=a,e.type=i>1?l:u.bindType||m,(d=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&d.apply(a,t),(d=c&&a[c])&&d.apply&&ie(a)&&(e.result=d.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(f.pop(),t)||!ie(r)||c&&g(r[m])&&!y(r)&&((s=r[c])&&(r[c]=null),k.event.triggered=m,e.isPropagationStopped()&&p.addEventListener(m,Ot),r[m](),e.isPropagationStopped()&&p.removeEventListener(m,Ot),k.event.triggered=void 0,s&&(r[c]=s)),e.result}},simulate:function(e,t,r){var n=k.extend(new k.Event,r,{type:e,isSimulated:!0});k.event.trigger(n,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var r=this[0];if(r)return k.event.trigger(e,t,r,!0)}});var Nt=/\[\]$/,Bt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,qt=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,r,n){var o;if(Array.isArray(t))k.each(t,(function(t,o){r||Nt.test(e)?n(e,o):Lt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,r,n)}));else if(r||"object"!==D(t))n(e,t);else for(o in t)Lt(e+"["+o+"]",t[o],r,n)}k.param=function(e,t){var r,n=[],o=function(e,t){var r=g(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==r?"":r)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){o(this.name,this.value)}));else for(r in e)Lt(r,e[r],t,o);return n.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&qt.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!ke.test(e))})).map((function(e,t){var r=k(this).val();return null==r?null:Array.isArray(r)?k.map(r,(function(e){return{name:t.name,value:e.replace(Bt,"\r\n")}})):{name:t.name,value:r.replace(Bt,"\r\n")}})).get()}});var Rt=/%20/g,It=/#.*$/,$t=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,zt=/^(?:GET|HEAD)$/,Wt=/^\/\//,Ut={},Yt={},Xt="*/".concat("*"),Gt=b.createElement("a");function Jt(e){return function(t,r){"string"!=typeof t&&(r=t,t="*");var n,o=0,i=t.toLowerCase().match(X)||[];if(g(r))for(;n=i[o++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(r)):(e[n]=e[n]||[]).push(r)}}function Kt(e,t,r,n){var o={},i=e===Yt;function a(s){var l;return o[s]=!0,k.each(e[s]||[],(function(e,s){var c=s(t,r,n);return"string"!=typeof c||i||o[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Vt(e,t){var r,n,o=k.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((o[r]?e:n||(n={}))[r]=t[r]);return n&&k.extend(!0,e,n),e}Gt.href=Pt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,k.ajaxSettings),t):Vt(k.ajaxSettings,e)},ajaxPrefilter:Jt(Ut),ajaxTransport:Jt(Yt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,o,i,a,s,l,c,d,u,p,h=k.ajaxSetup({},t),f=h.context||h,m=h.context&&(f.nodeType||f.jquery)?k(f):k.event,v=k.Deferred(),g=k.Callbacks("once memory"),y=h.statusCode||{},x={},w={},D="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Ft.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||D;return r&&r.abort(t),A(0,t),this}};if(v.promise(C),h.url=((e||h.url||Pt.href)+"").replace(Wt,Pt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(X)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Gt.protocol+"//"+Gt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),Kt(Ut,h,t,C),c)return C;for(u in(d=k.event&&h.global)&&0==k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!zt.test(h.type),o=h.url.replace(It,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Rt,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Et.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace($t,"$1"),p=(Et.test(o)?"&":"?")+"_="+Mt.guid+++p),h.url=o+p),h.ifModified&&(k.lastModified[o]&&C.setRequestHeader("If-Modified-Since",k.lastModified[o]),k.etag[o]&&C.setRequestHeader("If-None-Match",k.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Xt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(!1===h.beforeSend.call(f,C,h)||c))return C.abort();if(D="abort",g.add(h.complete),C.done(h.success),C.fail(h.error),r=Kt(Yt,h,t,C)){if(C.readyState=1,d&&m.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(s=n.setTimeout((function(){C.abort("timeout")}),h.timeout));try{c=!1,r.send(x,A)}catch(e){if(c)throw e;A(-1,e)}}else A(-1,"No Transport");function A(e,t,a,l){var u,p,b,x,w,D=t;c||(c=!0,s&&n.clearTimeout(s),r=void 0,i=l||"",C.readyState=e>0?4:0,u=e>=200&&e<300||304===e,a&&(x=function(e,t,r){for(var n,o,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(o in s)if(s[o]&&s[o].test(n)){l.unshift(o);break}if(l[0]in r)i=l[0];else{for(o in r){if(!l[0]||e.converters[o+" "+l[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),r[i]}(h,C,a)),!u&&k.inArray("script",h.dataTypes)>-1&&k.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),x=function(e,t,r,n){var o,i,a,s,l,c={},d=e.dataTypes.slice();if(d[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=d.shift();i;)if(e.responseFields[i]&&(r[e.responseFields[i]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=d.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=c[l+" "+i]||c["* "+i]))for(o in c)if((s=o.split(" "))[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=s[0],d.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(h,x,C,u),u?(h.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(k.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(k.etag[o]=w)),204===e||"HEAD"===h.type?D="nocontent":304===e?D="notmodified":(D=x.state,p=x.data,u=!(b=x.error))):(b=D,!e&&D||(D="error",e<0&&(e=0))),C.status=e,C.statusText=(t||D)+"",u?v.resolveWith(f,[p,D,C]):v.rejectWith(f,[C,D,b]),C.statusCode(y),y=void 0,d&&m.trigger(u?"ajaxSuccess":"ajaxError",[C,h,u?p:b]),g.fireWith(f,[C,D]),d&&(m.trigger("ajaxComplete",[C,h]),--k.active||k.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,r){return k.get(e,t,r,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,r,n,o){return g(r)&&(o=o||n,n=r,r=void 0),k.ajax(k.extend({url:e,type:t,dataType:o,data:r,success:n},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,r){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,r)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),r=t.contents();r.length?r.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(r){k(this).wrapAll(t?e.call(this,r):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Zt={0:200,1223:204},Qt=k.ajaxSettings.xhr();v.cors=!!Qt&&"withCredentials"in Qt,v.ajax=Qt=!!Qt,k.ajaxTransport((function(e){var t,r;if(v.cors||Qt&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,r;if(e.crossDomain||e.scriptAttrs)return{send:function(n,o){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",r=function(e){t.remove(),r=null,e&&o("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){r&&r()}}}));var er,tr=[],rr=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tr.pop()||k.expando+"_"+Mt.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,r){var o,i,a,s=!1!==e.jsonp&&(rr.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&rr.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(rr,"$1"+o):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||k.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=n[o],n[o]=function(){a=arguments},r.always((function(){void 0===i?k(n).removeProp(o):n[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,tr.push(o)),a&&g(i)&&i(a[0]),a=i=void 0})),"script"})),v.createHTMLDocument=((er=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===er.childNodes.length),k.parseHTML=function(e,t,r){return"string"!=typeof e?[]:("boolean"==typeof t&&(r=t,t=!1),t||(v.createHTMLDocument?((n=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(n)):t=b),i=!r&&[],(o=I.exec(e))?[t.createElement(o[1])]:(o=je([e],t,i),i&&i.length&&k(i).remove(),k.merge([],o.childNodes)));var n,o,i},k.fn.load=function(e,t,r){var n,o,i,a=this,s=e.indexOf(" ");return s>-1&&(n=kt(e.slice(s)),e=e.slice(0,s)),g(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&k.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){i=arguments,a.html(n?k("<div>").append(k.parseHTML(e)).find(n):e)})).always(r&&function(e,t){a.each((function(){r.apply(this,i||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,r){var n,o,i,a,s,l,c=k.css(e,"position"),d=k(e),u={};"static"===c&&(e.style.position="relative"),s=d.offset(),i=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(a=(n=d.position()).top,o=n.left):(a=parseFloat(i)||0,o=parseFloat(l)||0),g(t)&&(t=t.call(e,r,k.extend({},s))),null!=t.top&&(u.top=t.top-s.top+a),null!=t.left&&(u.left=t.left-s.left+o),"using"in t?t.using.call(e,u):d.css(u)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,r,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),r=n.ownerDocument.defaultView,{top:t.top+r.pageYOffset,left:t.left+r.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,r,n=this[0],o={top:0,left:0};if("fixed"===k.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),r=n.ownerDocument,e=n.offsetParent||r.documentElement;e&&(e===r.body||e===r.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((o=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),o.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-k.css(n,"marginTop",!0),left:t.left-o.left-k.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||me}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var r="pageYOffset"===t;k.fn[e]=function(n){return ee(this,(function(e,n,o){var i;if(y(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[n];i?i.scrollTo(r?i.pageXOffset:o,r?o:i.pageYOffset):e[n]=o}),e,n,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=et(v.pixelPosition,(function(e,r){if(r)return r=Qe(e,t),Ge.test(r)?k(e).position()[t]+"px":r}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(r,n){k.fn[n]=function(o,i){var a=arguments.length&&(r||"boolean"!=typeof o),s=r||(!0===o||!0===i?"margin":"border");return ee(this,(function(t,r,o){var i;return y(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?k.css(t,r,s):k.style(t,r,o,s)}),t,a?o:void 0,a)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({bind:function(e,t,r){return this.on(e,null,t,r)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,r,n){return this.on(t,e,r,n)},undelegate:function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){k.fn[t]=function(e,r){return arguments.length>0?this.on(t,null,e,r):this.trigger(t)}}));var nr=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var r,n,o;if("string"==typeof t&&(r=e[t],t=e,e=r),g(e))return n=s.call(arguments,2),o=function(){return e.apply(t||this,n.concat(s.call(arguments)))},o.guid=e.guid=e.guid||k.guid++,o},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=_,k.isFunction=g,k.isWindow=y,k.camelCase=oe,k.type=D,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(nr,"$1")},void 0===(r=function(){return k}.apply(t,[]))||(e.exports=r);var or=n.jQuery,ir=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=ir),e&&n.jQuery===k&&(n.jQuery=or),k},void 0===o&&(n.jQuery=n.$=k),k}))},5247:(e,t,r)=>{"use strict";r.r(t),idb.getTableSize=(e,t)=>new Promise(((r,n)=>{if(null==e)return n();const o=event;let i=0;const a=(e=o.target.result).transaction([t]).objectStore(t).openCursor();a.onsuccess=function(e){const t=e.target.result;if(t){const e=t.value,r=JSON.stringify(e);i+=r.length,t.continue()}else r(i)}.bind(void 0),a.onerror=e=>n("error in "+t+": "+e)}))},9023:(e,t,r)=>{"use strict";r.r(t),idb.support=()=>{if("indexedDB"in window)return!0;console.error("Your browser doesn't support IndexedBD")}},6134:(e,t,r)=>{"use strict";r.r(t);const n={name:"addTable",description:"",example:" idb.addTable() ",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array};idb.addTable=(e,t,r)=>{indexedDB.open(e,Number(idb.version(e))+1).onupgradeneeded=e=>{try{const n=e.target.result.createObjectStore(t,r);n.createIndex("hours","hours",{unique:!1}),n.createIndex("minutes","minutes",{unique:!1}),n.createIndex("day","day",{unique:!1}),n.createIndex("month","month",{unique:!1}),n.createIndex("year","year",{unique:!1}),n.createIndex("notified","notified",{unique:!1})}catch(e){return}}};const o=dphelper.obj.findindex(dphelper._list.scripts,"idb");dphelper._list.scripts[o].subCommand.push(n)},2891:(e,t,r)=>{"use strict";r.r(t),idb.create=(e,t=1)=>{let r;idb.support();const n=indexedDB.open(e,t);n.onerror=e=>{console.error(`IndexedDB error: ${n.errorCode}`)},n.onsuccess=e=>{console.debug("Successful database connection"),r=n.result},n.onupgradeneeded=e=>{console.debug("Database created"),n.result},setTimeout((()=>{idbases=[],idb.databases()}),1e3)};const n=dphelper.obj.findindex(dphelper._list.scripts,"idb");dphelper._list.scripts[n].subCommand.push({name:"create",description:"",example:" idb.create([dbName, ver]) ",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]})},6329:(e,t,r)=>{"use strict";r.r(t),idb.databases=()=>(indexedDB.databases().then((e=>e)).then((e=>{e&&(idbases=e)})).catch((e=>{})),idb.size(),idbases);const n=dphelper.obj.findindex(dphelper._list.scripts,"idb");dphelper._list.scripts[n].subCommand.push({name:"databases",description:"",example:" idb.databases() ",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:[]})},9312:(e,t,r)=>{"use strict";r.r(t);const n={name:"exist",description:"",example:" idb.exist() ",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array};idb.exist=e=>void 0!==(null===idbases||void 0===idbases?void 0:idbases.find((t=>t.name===e)));const o=dphelper.obj.findindex(dphelper._list.scripts,"idb");dphelper._list.scripts[o].subCommand.push(n)},9799:(e,t,r)=>{"use strict";r.r(t),idb.quota=()=>navigator.storage.estimate()},219:(e,t,r)=>{"use strict";r.r(t),idb.remove=e=>{idb.exist(e)?1==confirm(`Are you sure to remove "${e}" database?`)?setTimeout((()=>{indexedDB.deleteDatabase(e),console.debug(e+" removed"),idbases=[],idb.databases()}),1e3):alert("Operation cancelled."):alert(`Database "${e}" not exist`)}},2142:()=>{"use strict";idb.size=()=>{null===idbases||void 0===idbases||idbases.map((e=>{if(!idb.exist(e))return;const t=dphelper.array.findindex(idbases,e.name),r=null===indexedDB||void 0===indexedDB?void 0:indexedDB.open(e.name,idb.version(e.name));r.onerror=e=>console.error("Error on IndexedDB"),r.onsuccess=e=>{const r=e.target.result;((e,r)=>{const n=e.reduce(((e,t)=>(e.push(idb.getTableSize(r,t)),e)),[]);n.map((e=>{const t=e.reduce(((e,t)=>e+t),0);parseInt(dphelper.tools.byteSize(t))})),idbases[t].size=n.length>0?n:0})([...r.objectStoreNames],r)}}))}},7843:(e,t,r)=>{"use strict";r.r(t);const n={name:"version",description:"",example:" idb.version([storeName]) ",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array};idb.version=e=>{idbases.forEach((t=>{if(t.name===e)return t.version}))};const o=dphelper.obj.findindex(dphelper._list.scripts,"idb");dphelper._list.scripts[o].subCommand.push(n)},7695:(e,t,r)=>{"use strict";(()=>{if(globalThis.dphelper)return;const e=r(8330);globalThis.$=globalThis.jQuery=r(4692),Object.defineProperty(globalThis,"dphelper",{value:{},writable:!1,configurable:!1,enumerable:!1}),globalThis.idbases=[];const t=r(4787);if(t.scripts)return;t.scripts=[],t.version=e.version;const n=setInterval((()=>{var e;const t=null===(e=null===dphelper||void 0===dphelper?void 0:dphelper.socket)||void 0===e?void 0:e.list(),r=[];t.map((e=>{r.push(e.url)})),dphelper._list.sockets=r,r&&clearInterval(n)}),1e3);var o;Object.defineProperties(dphelper,{_list:{value:t},version:{value:e.version}}),$.ajaxSetup({async:!0,cache:!0,global:!0}),(o=r(6245)).keys().forEach((e=>o(e))),dphelper.credits(e),Object.freeze(dphelper)})()},5815:()=>{"use strict";addEventListener("message",(e=>{if(e.source!==window||e.origin!==String(location.origin))return;const t=e.data;"dpHelper"===(null==t?void 0:t.exec)&&("state"===(null==t?void 0:t.tool)&&"add"===(null==t?void 0:t.command)?state[null==t?void 0:t.name]=null==t?void 0:t.value:"state"===(null==t?void 0:t.tool)&&(null==t?void 0:t.command)&&(null==t?void 0:t.name)&&state[null==t?void 0:t.command]([null==t?void 0:t.name]),"store"===(null==t?void 0:t.tool)&&"add"===(null==t?void 0:t.command)?store.set(null==t?void 0:t.name,null==t?void 0:t.value):"store"===(null==t?void 0:t.tool)&&(null==t?void 0:t.command)&&(null==t?void 0:t.name)&&store[null==t?void 0:t.command]([null==t?void 0:t.name]))}))},35:()=>{"use strict";dphelper.setProps=(e,t,r)=>{Object.defineProperty(e,t.name,{writable:!1,configurable:!1}),(null==r?void 0:r.lock)&&Object.freeze(e[t.name])}},9634:(e,t,r)=>{"use strict";r.r(t);const n={name:"anchor",active:!0,subCommand:[{name:"toOnClick",type:"function",version:"0.0.1",example:"dphelper.anchor.toOnClick([element, 'foo' | '.foo' | '#foo'])",description:"This tools allows you to convert all links in an element to 'onclick'.\n It allows you to avoid the message with the path relative to the requested address\n and it is very useful when you work with SPA but you want to keep even older browsers.",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.anchor={toOnClick:e=>{$(e+" a").each((function(){const e=$(this),t=e.attr("href");t&&e.on("mouseup",(function(){})).css("cursor","pointer").addClass(dphelper.pathRail()[3].replace(/\//g,"")).removeAttr("href").on("click",(function(){dphelper.browser.href(t),dphelper.browser.push("","",t)}))}))}},dphelper.setProps(dphelper,n,{lock:!0})},4292:(e,t,r)=>{"use strict";r.r(t);const n={name:"array",active:!0,subCommand:[{name:"find",version:"0.0.1",example:"dphelper.array.find([array, item])",description:"",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240619",type:"function",active:!0,subCommand:Array},{name:"unique",version:"0.0.1",example:"dphelper.array.unique([array])",description:"",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"delete",version:"0.0.1",example:"dphelper.array.delete([array])",description:"",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"merge",version:"0.0.1",example:"dphelper.array.merge([array1, array2])",description:"",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"mergeByKey",version:"0.0.1",example:"dphelper.array.mergeByKey([arrayA, arrayB, key])",author:"Dario Passariello",creationDate:"20230603",lastMod:"20230603",type:"function",active:!0,description:'\n Example:\n const array = [\n {"date":1230,"value":1},\n {"date":1231,"value":2},\n {"date":1232,"value":3, "value1":3, "name":"John"},\n {"date":1233,"value":4},\n {"date":1234,"value":5},\n {"date":1235,"value":6}\n ]\n const newData = [\n {"date":1230,"value":1000,\'name\':\'Diana\'},\n {"date":1232,"value":1000, "value1":20000},\n {"date":1234,"value":1000},\n {"date":1235,"value":888810000}\n ]\n Command: dphelper.array.mergeByKey( array, newData, \'date\' )\n Result:\n [\n {"date": 1230,"value": 1000, "name": "Diana" },\n {"date": 1231,"value": 2},\n {"date": 1232 "value": 1000, "value1": 20000, "name": "John" },\n {"date": 1233,"value": 4},\n {"date": 1234, "value": 1000},\n {"date": 1235,"value": 888810000}\n ]\n ',subCommand:Array},{name:"asc",version:"0.0.1",example:"dphelper.array.asc([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"desc",version:"0.0.1",example:"dphelper.array.desc([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"duplicates",version:"0.0.1",example:"dphelper.array.duplicates([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"even",version:"0.0.1",example:"dphelper.array.even([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"odd",version:"0.0.1",example:"dphelper.array.odd([array])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"sumColumn",version:"0.0.1",example:"dphelper.array.sumColumn([array, column])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20230111",type:"function",active:!0,description:"\n // YOUR SOURCE OF DATA\n const array = [\n [12, 23, 34],\n [45, 56, 67],\n [78, 89, 90]\n ]\n // PRINT VALUE EACH COLUMN SUM\n for (var i = 0; i < array.length; ++i) {\n console.debug(dphelper.array.sumColumn(array, i))\n }\n results: 135, 168, 191\n // TEST ONLY ONE COLUMN (0)\n dphelper.array.sumColumn(array, 0)\n result: 135\n ",subCommand:Array},{name:"shuffle",version:"0.0.1",example:"dphelper.array.shuffle([array])",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"",subCommand:Array},{name:"generate",version:"0.0.1",example:"dphelper.array.generate(num)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Generate random number ( max 500000 )",subCommand:Array},{name:"testArrayInt",version:"0.0.1",example:"dphelper.array.testArrayInt([array])",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"\n examples:\n console.debug( dphelper.array.testArrayInt([1,2,3,4,6,7]) ); // return 5\n console.debug( dphelper.array.testArrayInt([1,2,3]) ); // return 4\n console.debug( dphelper.array.testArrayInt([-1,-2]) ); // return 1\n ",subCommand:Array},{name:"rand32",version:"0.0.1",example:"dphelper.array.rand32(num)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"\n Generate random array number in 32-bit unsigned integers\n Examples:\n console.debug( dphelper.array.rand32(500000) );\n ",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.array={find:(e,t)=>{if(Array.isArray(e)){for(const r of e){if(r[t]===t)return r;if(r.children){const e=dphelper.array.find(t,r.children);if(e)return e}}return!1}},unique:e=>{if(Array.isArray(e))return[new Set(e)]},delete:(e,t)=>{Array.isArray(e)&&e.some((function e(r,n,o){if(r[t]===t)return o.splice(n,1),!0;for(const t of Object.keys(r)){const n=r[t];if(n.length&&"object"==typeof n)return n&&n.map(e)}}))},merge:(e,t)=>{for(const r of Object.keys(e))e[r]instanceof Object&&t[r]&&Object.assign(e[r],dphelper.mergeArrays(t[r],e[r]));return Object.assign(t||{},e),t},mergeByKey:(e,t,r)=>(e.map(((n,o)=>Object.values(t).map((t=>n[r]===t[r]?Object.assign(e[o],t):e[o])))),e),asc:e=>{if(Array.isArray(e))return e.sort(((e,t)=>e-t)),e},desc:e=>{if(Array.isArray(e))return e.sort((function(e,t){return t-e})),e},duplicates:e=>{if(Array.isArray(e))return e=>e.filter(((t,r)=>e.indexOf(t)!==r))},even:e=>{if(!Array.isArray(e))return;const t=[],r=e.length;for(let n=0;n<r;n++)e[n]%2==0&&t.push(e[n]);return t},odd:e=>{if(!Array.isArray(e))return;const t=[],r=e.length;for(let n=0;n<r;n++)e[n]%2&&t.push(e[n]);return t},toObj:e=>Object.assign({},e),sumColumn:(e=[],t=0)=>{if(Array.isArray(e)){if(void 0===t)return"provide a column";var r,n=0;return(r=e.map((e=>n+=e[t])))[r.length-1]}return"provide an multidimensiona array"},shuffle:e=>{if(Array.isArray(e)){for(let t=e.length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1));[e[t],e[r]]=[e[r],e[t]]}return e}},generate:e=>{Number.isNaN(e)||dphelper.array.shuffle(e)},testArrayInt(e){if(!Array.isArray(e))return;let t,r;for(var n=1;n<e.length;++n)t=e.includes(n),!1===t&&void 0!==t&&(r=n);return r||e.length+1},rand32:e=>{const t=performance.now(),r=[];r.nums=[],r.time=[];for(var n=0;n<e;++n)r.nums.push(crypto.getRandomValues(new Uint32Array(1))[0]);const o=performance.now();return r.time.push(o-t),r},findindex:(e,t)=>e.findIndex((e=>e.name===t)),pathToJson:(e,t="/")=>{const r={};let n;for(const o of e){n=r;for(const e of o.split(t).slice(1,-1)){if(""===e)return;e in n||(n[e]={}),n=n[e]}}return r}},dphelper.setProps(dphelper,n,{lock:!0})},7331:(e,t,r)=>{"use strict";r.r(t);const n={name:"audio",active:!0,subCommand:[{name:"play",version:"0.0.1",example:"dphelper.audio.play([audiofile])",description:"",author:"Dario Passariello",creationDate:"20240924",lastMod:"20240924",type:"function",active:!0,subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.audio={play:(e,t,r)=>{if(e){if(!document.querySelector(`#audio_${e}`)){const n=document.createElement("audio");n.id="audio_"+e,n.src=t+e,n.loop=!!r,document.body.appendChild(n),n.load(),n.play()}}else document.querySelectorAll("audio").forEach((e=>e.remove()))}},dphelper.setProps(dphelper,n,{lock:!0})},8292:(e,t,r)=>{"use strict";r.r(t);const n={name:"avoid",active:!0,subCommand:[{name:"cache",version:"0.0.1",example:"dphelper.avoid.cache()",description:"",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.avoid={cache:e=>e.concat(/\?/.test(e)?"&":"?","t=",dphelper.rnd())},Object.freeze(dphelper.avoid),dphelper.setProps(dphelper,n,{lock:!0})},8705:(e,t,r)=>{"use strict";r.r(t);const n={name:"browser",active:!0,subCommand:[{name:"state",version:"0.0.1",example:"dphelper.browser.state([state, title, url])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"forw",version:"0.0.1",example:"dphelper.browser.forw([number])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"back",version:"0.0.1",example:"dphelper.browser.back([number])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"reload",version:"0.0.1",example:"dphelper.browser.reload()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"href",version:"0.0.1",example:"dphelper.browser.href([url])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"offline",version:"0.0.1",example:"dphelper.browser.offline([text])",author:"Dario Passariello",creationDate:"20190727",lastMod:"20240727",type:"function",active:!0,description:"",subCommand:Array},{name:"zoom",version:"0.0.1",example:"dphelper.browser.zoom()",author:"Dario Passariello",creationDate:"20190727",lastMod:"20240727",type:"function",active:!0,description:"",subCommand:Array},{name:"status",version:"0.0.1",example:"dphelper.browser.status(404)",author:"Dario Passariello",creationDate:"20240912",lastMod:"20240912",type:"function",active:!0,description:"Give you a description about the error",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.browser={state:(e,t,r)=>history.pushState(e,t,r),forw:e=>history.go(e),back:e=>history.go(-Math.abs(e)),reload:()=>globalThis.location.href="/",href:e=>globalThis.location.href=e,offLine:(e="You are offline.")=>{addEventListener("online",(()=>{$("[o]").remove()})),addEventListener("offline",(()=>{$(`\n <style o>\n html {\n\n &:before {\n content: "";\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: #00000082;\n z-index: 9999;\n -webkit-backdrop-filter: blur(2px);\n backdrop-filter: blur(2px);\n\n }\n\n &:after{\n position: absolute;\n content: "${e}";\n font-size: 1em;\n background-color: orange;\n color: black;\n text-align: center;\n padding: 10px 30px;\n z-index: 10000;\n border-radius: 20px;\n top: calc(50% - 22px);\n left: calc(50% - 92px);\n border: 6px solid #00000026;\n }\n\n }\n </style>\n `).appendTo("body")}))},zoom:()=>Math.round(100*devicePixelRatio),status:e=>{if(e)return r(1809)[e]}},dphelper.setProps(dphelper,n,{lock:!0})},3119:(e,t,r)=>{"use strict";r.r(t),Object.defineProperty(globalThis,"cache",{value:new Proxy({},{}),enumerable:!1,configurable:!1})},7026:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"check",active:!0,subCommand:[{name:"url",version:"0.0.1",example:"dphelper.check.url([domain])",description:"",author:"Dario Passariello",creationDate:"20240829",lastMod:"20240829",type:"function",active:!0,subCommand:Array}]};dphelper._list.scripts.push(o),dphelper.check={url:e=>{fetch(`https://a51.dev/dns/status.php?domain=${e}`).then((e=>e.json())).then((e=>(console.table(e),e))).catch((e=>{}))},version:(e,t,r)=>{if(!e||!t)return;let n=r&&r.lex,o=r&&r.zero,i=e.split("."),a=t.split(".");function s(e){return(n?/^\d+[A-Za-z]*$/:/^\d+$/).test(e)}if(!i.every(s)||!a.every(s))return NaN;if(o){for(;i.length<a.length;)i.push("0");for(;a.length<i.length;)a.push("0")}n||(i=i.map(Number),a=a.map(Number));for(var l=0;l<i.length;++l){if(a.length==l)return 1;if(i[l]!=a[l])return i[l]>a[l]?1:-1}return i.length!=a.length?-1:0},npmVer:(...e)=>(0,n.sH)(void 0,[...e],void 0,(function*(e="dphelper"){const t=`https://registry.npmjs.org/${e}/latest`;return yield fetch(t).then((e=>e.json())).then((e=>e)).catch((e=>{console.error(e.message)}))}))},Object.freeze(dphelper.check),dphelper.setProps(dphelper,o,{lock:!0})},8598:(e,t,r)=>{"use strict";r.r(t);const n={name:"color",active:!0,subCommand:[{name:"hex",version:"0.0.1",example:"dphelper.color.hex(255)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toHex",version:"0.0.1",example:"dphelper.color.toHex([255, 255, 255])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toRGB",version:"0.0.1",example:"dphelper.color.toRGB('#ffffff')",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"oleColor",version:"0.0.1",example:"dphelper.color.oleColor('#ffffff')",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,description:"",subCommand:Array},{name:"gradient",version:"0.0.1",example:"dphelper.color.gradient([colorStart, colorEnd, colorCount])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.color={hex:e=>{const t="0123456789abcdef";let r=parseInt(e);return 0==r||Number.isNaN(e)?"00":(r=Math.round(Math.min(Math.max(0,r),255)),t.charAt((r-r%16)/16)+t.charAt(r%16))},toHex:e=>dphelper.color.hex(e[0])+dphelper.color.hex(e[1])+dphelper.color.hex(e[2]),toRGB:e=>{const t=[];return t[0]=parseInt(dphelper.text.trim(e,"#",1,7).substring(0,2),16),t[1]=parseInt(dphelper.text.trim(e,"#",1,7).substring(2,4),16),t[2]=parseInt(dphelper.text.trim(e,"#",1,7).substring(4,6),16),"#"+t},oleColor:e=>{const t=e.replace("#","").match(/.{1,2}/g);return parseInt(t[0],16)+256*parseInt(t[1],16)+65536*parseInt(t[2],16)},gradient:(e,t,r)=>{const n=dphelper.color.toRGB(e),o=dphelper.color.toRGB(t),i=r,a=[];let s=0;for(let e=0;e<i;e++){const e=[];s+=1/i,e[0]=n[0]*s+(1-s)*o[0],e[1]=n[1]*s+(1-s)*o[1],e[2]=n[2]*s+(1-s)*o[2],a.push(dphelper.color.toHex(e))}return a}},dphelper.setProps(dphelper,n,{lock:!0})},7424:(e,t,r)=>{"use strict";r.r(t);const n={name:"console",active:!0,subCommand:[{name:"info",version:"0.0.1",example:"dphelper.console.info()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"stop",version:"0.0.1",example:"dphelper.console.stop()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toHtml",version:"0.0.1",example:"dphelper.console.toHtml()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.console={info:(e,t,r)=>{console.groupCollapsed("%c"+e+":%c","color:orange",""),console.debug(t,e,r),console.groupEnd()},stop:(e=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeline","timelineEnd","timeStamp","trace","warn","verbose"])=>{console.clear(),dphelper.console.disableYellowBox=!0,console.log=()=>{},console.debug=()=>{},globalThis.console=console;const t=()=>{};e.forEach((e=>{dphelper.console.method=t}))},toHtml:e=>{console.log;const t=document.getElementById(e);dphelper.console.toHtml=function(e){t.innerHTML+="object"==typeof e?(JSON&&JSON.stringify?JSON.stringify(e):e)+"<br />":e+"<br />"}}},dphelper.setProps(dphelper,n,{lock:!0})},1585:(e,t,r)=>{"use strict";r.r(t),dphelper.consoleDebug=function(e){if(!e)throw Error("Parent dom element required!");let t=!1;console.log,console.info,console.warn,console.error,this.autoScroll=!0,this.disableConsoleLogging=!1;const r=document.createElement("div");r.id="debugConsole",e.appendChild(r),this.domElement=r,this.initKeyMappings=()=>{t?console.warn("DebugConsole: keys already mapped!"):(state.toggleConsole=function(){this.visible=!this.visible}.bind(this),t=!0)},this.overrideConsole=()=>{const e=["Warning: Does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.%s",'Warning: Using the "className" prop on <View> is deprecated.',"View"],t=console.log;console.log=function(...r){const[n]=r;e.some((e=>n.includes(e)))||t(...r)};const r=console.info;console.info=function(...t){const[n]=t;e.some((e=>n.includes(e)))||r(...t)};const n=console.warn;console.warn=function(...t){const[r]=t;e.some((e=>r.includes(e)))||n(...t)};const o=console.error;console.error=function(...t){const[r]=t;e.some((e=>r.includes(e)))||o(...t)},globalThis.onerror=(e,t,r)=>{const n=[e," in <a href='",t,"' target='_blank'>",null==t?void 0:t.split("/").pop(),"</a>:",r];return console.error(n.join("")),!1}},this.overrideConsole(),this.clear=function(){this.domElement.innerHTML=""},Object.defineProperties(this,{visible:{get:function(){return""===this.domElement.style.display},set:function(e){e?(this.domElement.style.display="",this.autoScroll&&(this.domElement.scrollTop=this.domElement.scrollHeight)):this.domElement.style.display="none"},configurable:!1}})},Object.defineProperty(dphelper,"consoleDebug",{writable:!0,enumerable:!1,configurable:!1})},2057:(e,t,r)=>{"use strict";r.r(t);const n={name:"cookie",active:!0,subCommand:[{name:"set",version:"0.0.1",example:"dphelper.cookie.set([name, value, time, path = '/'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240613",type:"function",active:!0,description:"",subCommand:Array},{name:"get",version:"0.0.1",example:"dphelper.cookie.get([name])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240613",type:"function",active:!0,description:"",subCommand:Array},{name:"delete",version:"0.0.1",example:"dphelper.cookie.delete([name])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240613",type:"function",active:!0,description:"",subCommand:Array},{name:"clearAll",version:"0.0.1",example:"dphelper.cookie.clearAll()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20240613",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.cookie={set:e=>{const t=new Date;if(t.setTime(t.getTime()+31536e6),!e.name)return;const{name:r,value:n,time:o=e.time||t.toGMTString(),path:i=e.path||"/",sameSite:a=(e.path?e.path:"Lax"),secure:s=("https:"===location.protocol?"Secure":"false")}=e;document.cookie=`${r}=${n};expires=${o};path=${i};SameSite=${a};requireSSL=${s};`},get:e=>{const t=document.cookie.split("; "),r=t.length;for(let n=0;n<r;n++){const r=t[n].split("=");if(e===r[0])return unescape(r[1])}return null},delete:e=>{document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;"},clearAll:()=>{const e=document.cookie.split(";"),t=e.length;for(let r=0;r<t;r++){const t=e[r],n=t.indexOf("="),o=n>-1?t.slice(0,n):t;dphelper.cookie.delete(o)}}},dphelper.setProps(dphelper,n,{lock:!0})},9553:(e,t,r)=>{"use strict";r.r(t);const n={name:"coords",active:!0,subCommand:[{name:"degreesToRadians",version:"0.0.1",example:"dphelper.coords.degreesToRadians(45)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"latToMeters",version:"0.0.1",example:"dphelper.coords.latToMeters([40.689202777778, -74.044219444444])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toVector",version:"0.0.1",example:"dphelper.coords.toVector([40.689202777778, -74.044219444444, 1])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"convertToDecDegrees",version:"0.0.1",example:"dphelper.coords.convertToDecDegrees([39, 5, 59, 'N'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"distance",version:"0.0.1",example:"dphelper.coords.distance([40.718788808171105, -74.0114768663747],[38.909309636475875, -77.01712459058946])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"\n Haversine formula:\n a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)\n c = 2 ⋅ atan2( √a, √(1-a) )\n d = R ⋅ c\n where\tφ is latitude, λ is longitude, R is earth's radius (mean radius = 6,371km);\n note that angles need to be in radians to pass to trig functions!\n\n ",subCommand:Array},{name:"polarToCartesian",version:"0.0.1",example:"dphelper.coords.polarToCartesian([centerX, centerY, radius, radius1, angleInDegrees])",author:"Dario Passariello",creationDate:"20240928",lastMod:"20240928",type:"function",active:!0,description:"",subCommand:Array},{name:"mapDegreesToPixels",version:"0.0.1",example:"dphelper.coords.mapDegreesToPixels([degree, minDegree, maxDegree, minPixel, maxPixel, padding])",author:"Dario Passariello",creationDate:"20240928",lastMod:"20240928",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n);const o=6371e3;dphelper.coords={degreesToRadians:e=>e*Math.PI/180,latToMeters:e=>{if(Array.isArray(e))return o*Math.cos(e[0])*Math.cos(e[1])/1e3},toVector:e=>{if(Array.isArray(e))return[o*Math.cos(e[1]*Math.PI/180)*Math.cos(e[0]*Math.PI/180),o*Math.cos(e[1]*Math.PI/180)*Math.sin(e[0]*Math.PI/180),o*Math.sin(e[2]*Math.PI/180)]},convertToDecDegrees:(e,t,r,n)=>{let o=e+t/60+r/3600;return"S"!=n&&"W"!=n||(o*=-1),o},distance:(e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))return;const r=e[0]*Math.PI/180,n=t[0]*Math.PI/180,i=(t[0]-e[0])*Math.PI/180,a=(t[1]-e[1])*Math.PI/180,s=Math.sin(i/2)*Math.sin(i/2)+Math.cos(r)*Math.cos(n)*Math.sin(a/2)*Math.sin(a/2),l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)),c=o*l;return{km:Number((c/1e3).toFixed(2)),Mi:Number((c/1e3*.621371).toFixed(2)),nMi:Number((c/1e3/1.852).toFixed(2))}},polarToCartesian:(e,t,r,n)=>{const o=(n-90)*Math.PI/180;return{x:e+r*Math.cos(o),y:t+r*Math.sin(o)}},mapDegreesToPixels:(e,t,r,n,o,i)=>{const a=o-i/10/2-(n+(e-t)/(r-t)*(o-n)-i);return a<i?i:a}},dphelper.setProps(dphelper,n,{lock:!0})},8527:()=>{"use strict";dphelper.credits=e=>{console.groupCollapsed(`%c${e.name} v${e.version}%c`,"color:orange",""),console.debug(`%c${e.name} v${e.version}%c by Dario Passariello started`,"color:orange",""),console.debug(`%cType ${e.name} in this console to see it`,"color:gray",""),console.debug("%cFor help visit: "+e.repository.help,"color:gray",""),console.debug("name: %c"+e.name,"color:orange",""),console.debug("version: %c"+e.version,"color:orange",""),console.debug("description: %c"+e.description,"color:orange",""),console.debug("license: %c"+e.license,"color:orange",""),console.debug("repository: %c"+e.repository.url,"color:orange",""),console.debug("author: %c"+e.author.name,"color:orange",""),console.debug("email: %c"+e.author.email,"color:orange",""),console.groupEnd()}},4459:(e,t,r)=>{"use strict";r.r(t);const n={name:"date",active:!0,subCommand:[{name:"toIso",version:"0.0.1",example:"dphelper.date.toIso([value, int = 'en'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toMMDDYYYY",version:"0.0.1",example:"dphelper.date.toMMDDYYYY([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toYYYYMMDD",version:"0.0.1",example:"dphelper.date.toYYYYMMDD([value])",author:"Dario Passariello",creationDate:"20230101",lastMod:"20230101",type:"function",active:!0,description:"",subCommand:Array},{name:"toHuman",version:"0.0.1",example:"dphelper.date.toHuman([value])",author:"Dario Passariello",creationDate:"20230101",lastMod:"20230101",type:"function",active:!0,description:"",subCommand:Array},{name:"convert",version:"0.0.1",example:"dphelper.date.convert([value, format])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"iso2Epoch",version:"0.0.1",example:"dphelper.date.iso2Epoch([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"localIsoTime",version:"0.0.1",example:"dphelper.date.localIsoTime([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"utc",version:"0.0.1",example:"dphelper.date.utc()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"parse",version:"0.0.1",example:"dphelper.date.parse([value, separator = '/'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"year",version:"0.0.1",example:"dphelper.date.year()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"addDays",version:"0.0.1",example:"dphelper.date.addDays([date, days])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"dateTimeToString",version:"0.0.1",example:"dphelper.date.dateTimeToString([dateObject])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isoToHuman",version:"0.0.1",example:"dphelper.date.isoToHuman([value, symbol = '@'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"fullDate",version:"0.0.1",example:"dphelper.date.fullDate()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"epoch",version:"0.0.1",example:"dphelper.date.epoch()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"timeZones",version:"0.0.1",example:"dphelper.date.timeZones()",author:"Dario Passariello",creationDate:"20240901",lastMod:"20240901",type:"function",active:!0,description:"Array of all timezones",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.date={days:(e="en")=>({en:["Monday","Tuesday","Wednesday","Thursday","Wednesday","Saturday","Sunday"],it:["lunedì","martedì","mercoledì","giovedì","Venerdì","Sabato","domenica"]}[e]),months:(e="en")=>({en:["January","February","March","April","May","June","July","August","September","October","November","December"],it:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]}[e]),toIso:(e,t="en")=>{e||(e="");const r=new Date(e);return"Invalid Date"==String(r)?null:new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(r)},toMMDDYYYY:e=>{e||(e="");const t=new Date(e);return("0"+(t.getMonth()+1)).slice(-2)+""+("0"+t.getDate()).slice(-2)+t.getFullYear()},toYYYYMMDD:e=>{if(e)return e.toISOString().split("T")[0].replaceAll("-","")},toHuman:e=>e.toLocaleDateString(void 0,{weekday:"long",year:"numeric",month:"long",day:"numeric"}),convert:(e,t)=>{if(!e)return null;t||(t=dphelper.date.months());const r=e.substring(0,2).replace("0",""),n=e.substring(2,4),o=e.substring(e.length-4);return n+" "+t[Number(r)-1]+" "+o},iso2Epoch:e=>(e||(e=""),new Date(e).getTime()),localIsoTime:e=>{e||(e="");const t=6e4*new Date(e).getTimezoneOffset();return new Date(Date.now()-t).toISOString().slice(0,-1)},utc:()=>(new Date).toUTCString(),parse:(e,t="/")=>e?e.substring(0,2)+t+e.substring(2,4)+t+e.substring(4,8):null,year:()=>{var e;return null===(e=/\d{4}/.exec(Date()))||void 0===e?void 0:e[0]},addDays:(e,t)=>{const r=new Date(Number(e));return r.setDate(e.getDate()+t),r},dateTimeToString:e=>{try{return`${e.getFullYear()}${e.getMonth().toString().length>1?e.getMonth()+1:`0${e.getMonth()+1}`}\n ${e.getDate().toString().length>1?e.getDate():`0${e.getDate()}`}_${e.getHours()}${e.getMinutes()}${e.getSeconds()}`}catch(t){return e}},isoToHuman:(e,t="@")=>{if(!e)return null;const r=dphelper.date.months(),n=new Date(e),o=n.getFullYear(),i=e.split("T")[1].split(":").slice(0,2).join(":");let a=(n.getMonth()+1).toString(),s=n.getDate().toString();return s.length<2&&(s="0"+s),a.length<2&&(a="0"+a),s+" "+r[Number(a)-1]+" "+o+" "+t+" "+i},fullDate:()=>{const e=new Date,t=Number(e.getDate()),r=Number(e.getMonth()+1),n=Number(e.getFullYear()),o=Number(e.getHours()),i=Number(e.getMinutes());return(t<10?"00"+t:t)+"-"+(r<10?"00"+r:r)+"-"+n+" "+(o<10?"00"+o:o)+":"+(i<10?"00"+i:i)+":"+Number(e.getSeconds())},epoch:()=>(new Date).getTime(),diffInDays:(e,t)=>{const r=t.getTime(),n=e.getTime();return Math.floor((r-n)/864e5)},diffInWeeks:(e,t)=>{const r=t.getTime(),n=e.getTime();return Number(parseInt(String((r-n)/6048e5)))},diffInMonths:(e,t)=>{let r=e.getFullYear(),n=t.getFullYear(),o=e.getMonth();return t.getMonth()+12*n-(o+12*r)},diffInYears:(e,t)=>t.getFullYear()-e.getFullYear(),dateToYMD:e=>{let t=e.getDate(),r=e.getMonth()+1;return e.getFullYear()+"-"+(r<=9?"0"+r:r)+"-"+(t<=9?"0"+t:t)},collection:(e=new Date,t,r="en-US")=>{let n;switch(!e&&t&&r&&console.debug('\n "toDateString" -> Tue Jan 02 2024\n "toISOString" -> 2024-01-02T18:44:43.590Z\n "toJSON" -> 2024-01-02T18:44:43.590Z\n "toLocaleDateString" -> 1/2/2024\n "toLocaleString" -> 1/2/2024, 11:44:43 AM\n "toLocaleTimeString" -> 11:44:43 AM\n "toString" -> Tue Jan 02 2024 11:44:43 GMT-0700 (Mountain Standard Time)\n "toISOStringShort" -> 2024-01-02\n "toLocaleString (en-GB)" -> 02/01/2024, 11:47:56 am\n '),t){case"toDateString":n=e.toDateString();break;case"toISOString":n=e.toISOString();break;case"toJSON":n=e.toJSON();break;case"toLocaleDateString":n=e.toLocaleDateString(r);break;case"toLocaleString":n=e.toLocaleString(r);break;case"toLocaleTimeString":n=e.toLocaleTimeString(r);break;case"toString":n=e.toString();break;case"toISOStringShort":n=e.toISOString().slice(0,10)}return n},timeZones:e=>{const t=[];return Intl.supportedValuesOf("timeZone").forEach((e=>t.push(e))),t}},dphelper.setProps(dphelper,n,{lock:!0})},2373:(e,t,r)=>{"use strict";r.r(t);const n={name:"disable",active:!0,subCommand:[{name:"select",version:"0.0.1",example:"dphelper.disable.select([el = 'body'])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"spellCheck",version:"0.0.1",example:"dphelper.disable.spellCheck([tmr = 5000])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"rightClick",version:"0.0.1",example:"dphelper.disable.rightClick([element])",author:"Dario Passariello",creationDate:"20220101",lastMod:"20220101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.disable={select:function(e="body"){$(e).on("mousedown",(function(e){((e,t)=>{if(!$(t.target).is("input, button, select, textarea, .selectable *"))return $("*").trigger("blur"),t.preventDefault(),!1;$("img, a, input, button").on("dragstart",(function(e){return e.preventDefault(),!1}))})(0,e)})),console.debug("%cSelection Disabled: %c"+!0,"color:orange","")},spellCheck:(e=5e3)=>{setInterval((()=>{const e=document.querySelectorAll("input[type=text], textarea, code"),t=e.length;for(let r=0;r<t;r++)e[r].getAttribute("spellcheck")||e[r].setAttribute("spellcheck","false")}),e)},rightClick:(e="body")=>{$(document).ready((function(){$(e).on("contextmenu",(function(e){return!1}))}))}},dphelper.setProps(dphelper,n,{lock:!0})},493:(e,t,r)=>{"use strict";r.r(t);const n={name:"dispatch",active:!0,subCommand:[{name:"set",version:"0.0.1",example:"dphelper.dispatch.set([name, value])",author:"Dario Passariello",creationDate:"20231231",lastMod:"20240612",type:"function",active:!0,description:"CustomEvent",subCommand:Array},{name:"listen",version:"0.0.1",example:"dphelper.dispatch.listen([eventNames, callback=null], flag = true)",author:"Dario Passariello",creationDate:"20231231",lastMod:"20240612",type:"function",active:!0,description:"",subCommand:Array},{name:"remove",version:"0.0.1",example:"dphelper.dispatch.remove([eventNames, callback=null], flag = true)",author:"Dario Passariello",creationDate:"20231231",lastMod:"20240612",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.dispatch={set:(e,t={})=>{dispatchEvent(new CustomEvent(e,t))},listen:(e,t=null,r=!1)=>{$(window).on(e,(e=>t?setTimeout((()=>t(e)),0):null))},remove:e=>{$(window).off(e)}},Object.defineProperty(dphelper,"dispatch",{enumerable:!1,writable:!0,configurable:!1}),dphelper.setProps(dphelper,n,{lock:!0})},3906:(e,t,r)=>{"use strict";r.r(t);const n={name:"element",active:!0,subCommand:[{name:"fitScale",version:"0.0.1",example:"dphelper.element.fitScale([el = 'root', scale = 1, fit = false])",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.element={fitScale:(e,t=1,r=!1)=>{addEventListener("resize",(n=>{dphelper.element.scaleBasedOnWindow(e,t,r)}))},scaleBasedOnWindow:(e,t,r)=>{if(!e)return;const n=$(e),o=n.width()||1,i=n.height()||1;r?n.css("transform","scale("+t/Math.max(o/globalThis.innerWidth,i/globalThis.innerHeight)+")"):n.css("transform","scale("+t/Math.min(o/globalThis.innerWidth,i/globalThis.innerHeight)+")")}},dphelper.setProps(dphelper,n,{lock:!0})},1434:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"event",active:!0,subCommand:[{name:"multi",version:"0.0.1",example:"dphelper.event.multi([element, eventNames, listener])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"copy",version:"0.0.1",example:"dphelper.event.copy([element])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"onDrag",version:"0.0.1",example:"dphelper.event.onDrag([element])",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"",subCommand:Array},{name:"keys",version:"0.0.1",example:"dphelper.event.keys(e)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(o),dphelper.event={list:e=>{globalThis.getEventListeners(e)},multi:(e,t,r)=>{const n=t.split(" ");for(let t=0,o=n.length;t<o;++t)e.addEventListener(n[t],r,!1)},copy:e=>{document.querySelector(e).addEventListener("click",(e=>(0,n.sH)(void 0,void 0,void 0,(function*(){if(navigator.clipboard)try{console.debug(e,e.srcElement.textContent),yield navigator.clipboard.writeText(e.srcElement.textContent),alert("copied")}catch(e){console.error("Can't copy the value",e)}}))))},onDrag:e=>{let t=!1;$(".popup_overflow_"+e).mousedown((function(r){r.pageX,r.pageY,$(window).mousemove((function(r){t=!0;const n=(r.pageY>0?r.pageY:0)-$(".popup_overflow_"+e).height()/2,o=(r.pageX>0?r.pageX:0)-$(".popup_overflow_"+e).width()/2;localStorage.setItem(e,JSON.stringify([n,o]))}))})).mouseup((function(){t=!1,$(window).off("mousemove")}))},keys:e=>({key:e.key,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})},dphelper.setProps(dphelper,o,{lock:!0})},753:(e,t,r)=>{"use strict";r.r(t);const n={name:"form",active:!0,subCommand:[{name:"serialize",version:"0.0.1",example:"dphelper.form.serialize([form])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"confirmType",version:"0.0.1",example:"dphelper.form.confirmType([type, value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"required",version:"0.0.1",example:"dphelper.form.required([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"minLength",version:"0.0.1",example:"dphelper.form.minLength([value, num = 1])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"maxLength",version:"0.0.1",example:"dphelper.form.maxLength([value, num = 10])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"maxPhoneNumber",version:"0.0.1",example:"dphelper.form.maxPhoneNumber([value, num = 10])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isNumeric",version:"0.0.1",example:"dphelper.form.isNumeric([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isEmail",version:"0.0.1",example:"dphelper.form.isEmail([value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"pattern",version:"0.0.1",example:"dphelper.form.pattern(event)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Pattern validation using onChange on inputs when you provide a patternt",subCommand:Array},{name:"noSpecialChars",version:"0.0.1",example:"dphelper.form.noSpecialChars(event)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Avoid special chars in an input",subCommand:Array},{name:"table",version:"0.0.1",example:"dphelper.form.table(size = [7, 24], id, elem)",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"Generate a table (default 7x24)",subCommand:Array},{name:"sanitize",version:"0.0.1",example:"dphelper.form.sanitize(input)",author:"Dario Passariello",creationDate:"20240318",lastMod:"20240318",type:"function",active:!0,description:"Sanitize input value to avoid injection",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.form={serialize:function(e){const t=r(4692),n=t(e),o={};if(!/[a-zA-Z][a-zA-Z0-9-_.]/.test(n.name))return;const i=(e,t)=>{let r=e[0];"]"==r.slice(-1)&&(r=r.slice(0,-1));const n={};return 1==e.length?n[r]=(e=>(""==e&&(e=null),"null"==e&&(e=null),"undefined"==e&&(e=void 0),"false"==e&&(e=Boolean(!1)),"true"==e&&(e=Boolean(!0)),"off"==e&&(e=Boolean(!1)),"on"==e&&(e=Boolean(!0)),"[]"==e&&(e=Array),"{}"==e&&(e=Object),0!==["null","undefined","false","true","on","off"].filter((t=>t.includes(e))).length||Number.isNaN(e)||(e=Number(e)),e))(t):(e.shift(),n[r]=i(e,t)),n};return t.each(n.serializeArray(),(function(){const e=this.value,r=this.name.split("["),n=i(r,e);t.extend(!0,o,n)})),o},confirmType:(e,t)=>"number"===e?new RegExp(/^\d+$/).test(t.toString()):"email"!==e||new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(t.toString().toLowerCase()),required:e=>null==e?"Required":void 0,minLength:(e,t=1)=>!e||(null==e?void 0:e.length)<t?"Must Enter a Value":void 0,maxLength:(e,t=10)=>(null==e?void 0:e.length)>t?"Exceeds Max Length":void 0,maxPhoneNumber:(e,t=10)=>{var r;return(null===(r=null==e?void 0:e.toString())||void 0===r?void 0:r.length)>t?"Exceeds Max Length":void 0},isNumeric:e=>!Number.isNaN(e)&&e,isEmail:e=>new RegExp(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(e.toString().toLowerCase()),pattern:e=>{if(!e.target.type||!e.target.value)return;let t;return"text"===e.target.type?t=/^[a-zA-Z 0-9.+\-$!@]*$/:"email"===e.target.type?t=/^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$/:"password"===e.target.type?t=/^[a-zA-Z 0-9.+\-$!@]*$/:"number"===e.target.type?t=/^[0-9\-+]*$/:"tel"===e.target.type&&(t=/^[0-9\s()\-+]*$/),e.target.value.match(t)?void 0:(e.target.value=e.target.value.slice(0,-1),void e.preventDefault())},noSpecialChars:e=>{const t=e.target.value.trim();if(t.length>2)return t.replace(/[^\w\s]/gi,"")},table:(e=[7,24],t,r)=>{var n="",o=e[0],i=e[1];n=`<form id='${t}'>`,n+="<div class='table'>",n+="<div class='title'>";for(var a=1;a<=o;a++)n+=`<span>${a}</span>`;n+="</div>";for(var s=1;s<=i;s++){n+=`<div class='row'><span>${s}</span>`;for(var l=1;l<=o;l++)n+=`<input name='data[${l}][${s}]' tabindex='${l.toString().padStart(2,"0")}${s.toString().padStart(2,"0")}' type='number' onclick="this.select()" value='${Math.floor(100*Math.random())}' title='${l} to ${s}' />`;n+="</div>"}n+="</div>",n+="</form>",$(r).html(n)},sanitize:e=>{if(e)return e.replace(/[^\w ]/g,"").replace(/[&/\\#, +()$~%.'":*?<>{}]/g,""),e}},dphelper.setProps(dphelper,n,{lock:!0})},4472:(e,t,r)=>{"use strict";r.r(t);const n={name:"format",active:!0,subCommand:[{name:"currency",version:"0.0.1",example:"dphelper.format.currency()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"phoneNumber",version:"0.0.1",example:"dphelper.format.phoneNumber()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.format={currency:(e,t="en-US",r="USD")=>(e&&!Number.isNaN(e)||(e=0),new Intl.NumberFormat(t,{style:"currency",currency:r}).format(e)),phoneNumber:(e,t)=>{const r=(""+e).replace(/\D/g,"").match(/^(\d{3})(\d{3})(\d{4})$/);return r?[t?`+${t} `:"","(",r[2],") ",r[3],"-",r[4]].join(""):null}},dphelper.setProps(dphelper,n,{lock:!0})},6668:(e,t,r)=>{"use strict";r.r(t);const n={name:"idb",active:!0,subCommand:[]};Object.defineProperty(globalThis,"idb",{value:{},configurable:!0,enumerable:!1}),Object.defineProperty(globalThis,"idbases",{value:[],configurable:!0,enumerable:!1}),dphelper._list.scripts.push(n),dphelper.setProps(dphelper,n,{lock:!0}),addEventListener("DOMContentLoaded",(e=>{r(9023),r(5247),r(2891),r(6329),r(2142),r(9312),r(7843),r(6134),r(9799),r(219),idbases=idb.databases()})),dphelper.setProps(dphelper,idb,{lock:!0})},4111:(e,t,r)=>{"use strict";r.r(t);const n={name:"import",active:!0,subCommand:[{name:"file",version:"0.0.1",example:"dphelper.import.file([ elem, file ])",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.import={file:(e,t)=>{const r=e?document.querySelector(e):document.getElementsByTagName("*");let n,o,i;for(n=0;n<r.length;n++)if(o=r[n],t)return i=new XMLHttpRequest,i.onreadystatechange=function(){4==this.readyState&&(200==this.status&&(o.innerHTML=this.responseText),404==this.status&&(o.innerHTML="Page not found."))},i.open("GET",t,!0),void i.send()}},dphelper.setProps(dphelper,n,{lock:!0})},21:(e,t,r)=>{"use strict";r.r(t);const n={name:"json",active:!0,subCommand:[{name:"counter",version:"0.0.1",example:"dphelper.json.counter()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toCsv",version:"0.0.1",example:"dphelper.json.toCsv()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"saveCsvAs",version:"0.0.1",example:"dphelper.json.saveCsvAs()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"is",version:"0.0.1",example:"dphelper.json.is()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"parse",version:"0.0.1",example:"dphelper.json.parse()",author:"Dario Passariello",creationDate:"20241107",lastMod:"20241107",type:"function",active:!0,description:"",subCommand:Array},{name:"sanitize",version:"0.0.1",example:"dphelper.json.sanitize()",author:"Dario Passariello",creationDate:"20241107",lastMod:"20241107",type:"function",active:!0,description:"",subCommand:Array},{name:"sanitize",version:"0.0.1",example:"dphelper.json.sanitizeJsonValue()",author:"Dario Passariello",creationDate:"20241107",lastMod:"20241107",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.json={counter:(e,t,r)=>{if(!e)return null;let n;return n=t&&r?Object.keys(e).length:e.items.filter((e=>e.key===r)).lengt,n},toCsv:e=>{const t=e,r=(e,t)=>null===t?"":t,n=Object.keys(t[0]);let o=null==t?void 0:t.map((e=>null==n?void 0:n.map((t=>JSON.stringify(e[t],r))).join(",")));return o.unshift(n.join(",")),o=o.join("\r\n"),o},saveCsvAs:(e,t)=>{const r=globalThis;let n="";const o=new Blob([e],{type:"text/csv;charset=utf-8;"}),i=document.createElement("a"),a=`${t}_${dphelper.date.dateTimeToString(new Date(Date.now()))}.csv`;n=URL.createObjectURL(o),i.setAttribute("href",n),i.setAttribute("download",a),i.style.visibility="hidden",r.appendChild(i),i.click(),r.removeChild(i)},is:e=>{try{JSON.parse(e)}catch(e){return!1}return!0},parse:e=>{try{return JSON.parse(e)}catch(e){return"Json not parsable"}},sanitize:e=>e,sanitizeJsonValue:e=>e?e.replace(/^"(.*)"$/,"$1").replace(/\\/g,"").replace(/\//g,"/").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/"/g,'\\"').replace(/\t/g," ").trim()+'"':'""'},dphelper.setProps(dphelper,n,{lock:!0})},8907:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"load",active:!0,subCommand:[{name:"all",version:"0.0.1",example:"dphelper.load.all( require['context']('Scripts', true, /.(js|ts)$/) [,'cacheName'] )",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Load from a specific folder all file in base a specific extension. If you add a 'cacheName' you have list stored in global cache",subCommand:Array},{name:"file",version:"0.0.1",example:"dphelper.load.file()",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"",subCommand:Array},{name:"fileToElement",version:"0.0.1",example:"dphelper.load.fileToElement()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"json",version:"0.0.1",example:"dphelper.load.json()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"remote",version:"0.0.1",example:"dphelper.load.remote()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"script",version:"0.0.1",example:"dphelper.load.script()",author:"Dario Passariello",creationDate:"20240525",lastMod:"20240525",type:"function",active:!0,description:"",subCommand:Array},{name:"toJson",version:"0.0.1",example:"dphelper.load.toJson(require.context('@/router', true, /.(ts)$/), 'router')",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",type:"function",active:!0,description:"Create Json From Folder Recursion",subCommand:Array}]};dphelper._list.scripts.push(o),dphelper.load={all:(e,t="")=>{e&&(t&&!(null===cache||void 0===cache?void 0:cache[t])&&(cache[t]=[]),e.keys().forEach((r=>{if(r)return t&&cache[t].push(r),e(r)})))},file:e=>{var t=new XMLHttpRequest;t.open("GET",e),t.onreadystatechange=function(){return t.responseText},t.send()},fileToElement:(e,t)=>(0,n.sH)(void 0,void 0,void 0,(function*(){yield fetch(t).then((function(t){return(0,n.sH)(this,void 0,void 0,(function*(){try{e&&$(e).text(dphelper.sanitize.html(t.text()))}catch(e){}}))})).catch((e=>console.error(e)))})),json:e=>(0,n.sH)(void 0,void 0,void 0,(function*(){yield fetch(e,{method:"get",headers:{"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>e)).catch((e=>console.error(e)))})),remote:(e,...t)=>(0,n.sH)(void 0,[e,...t],void 0,(function*(e,t="GET",r){yield fetch(e,{method:t,headers:r}).then((e=>e)).then((e=>e)).catch((e=>console.error(e)))})),script:(e,t="html")=>{e.map((e=>$(t).append(`<script async src="${String(e)} defer"><\/script>`)))},toJson:(e,t="")=>{let r=[];e&&(t&&(r[t]=[]),e.keys().forEach((n=>{if(n)return t&&r[t].push(n),e(n)})),r[t]&&(Object.defineProperty(cache,String(t),{value:dphelper.array.pathToJson(r[t]),writable:!1,enumerable:!1,configurable:!1}),r=null))}},dphelper.setProps(dphelper,o,{lock:!0})},4300:(e,t,r)=>{"use strict";r.r(t);
29
29
  /*!
30
30
  dpHelper
31
31
  Copyright (c) 2019 Dario Passariello <dariopassariello@gmail.com>
32
32
  Licensed under MIT License, see
33
33
  https://dario.passariello.ca
34
34
  */
35
- const n={name:"logging",active:!0,subCommand:[{name:"list",version:"0.0.1",example:"dphelper.log.list()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"reg",version:"0.0.1",example:"dphelper.log.reg()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"debug",version:"0.0.1",example:"dphelper.log.debug()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"error",version:"0.0.1",example:"dphelper.log.error()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),cache.log=[],dphelper.log={list:cache.log,reg:e=>{cache.log.push({reg:e})},debug:e=>{cache.log.push({debug:e})},error:e=>{cache.log.push({error:e})}},dphelper.setProps(dphelper,n,{lock:!0})},3169:(e,t,r)=>{"use strict";r.r(t);const n={name:"math",active:!0,subCommand:[{name:"rnd",version:"0.0.1",example:"dphelper.math.rnd()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"tmr",version:"0.0.1",example:"dphelper.math.tmr()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"add",version:"0.0.1",example:"dphelper.math.add()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"sub",version:"0.0.1",example:"dphelper.math.sub()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"multi",version:"0.0.1",example:"dphelper.math.multi()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"div",version:"0.0.1",example:"dphelper.math.div()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"rem",version:"0.0.1",example:"dphelper.math.rem()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"exp",version:"0.0.1",example:"dphelper.math.exp()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isOdd",version:"0.0.1",example:"dphelper.math.isOdd()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"check if math is odd or even",subCommand:Array},{name:"float2int",version:"0.0.1",example:"dphelper.math.float2int()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"float to integer",subCommand:Array},{name:"percent",version:"0.0.1",example:"dphelper.math.percent([n,tot])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Give you the percentance between the number and is total. Example: total: 100, number:25 -> 25%",subCommand:Array},{name:"isPrime",version:"0.0.1",example:"dphelper.type.isPrime(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.math={rnd:()=>Math.floor(1e5+Math.random()*dphelper.math.tmr()),tmr:()=>Math.round(dphelper.date.epoch()/1e3),add:(e,t)=>e+t,sub:(e,t)=>e-t,multi:(e,t)=>e*t,div:(e,t)=>e/t,rem:(e,t)=>e%t,exp:(e,t)=>Math.pow(e,t),isOdd:e=>e%2==0,float2int:e=>0|e,percent:(e,t)=>(100*e/t).toFixed(2),isPrime:e=>{let t=e/2,r=!0;for(;t>1;)e%t==0?(r=!1,t=0):t-=1;return!0===r}},dphelper.setProps(dphelper,n,{lock:!0})},2084:(e,t,r)=>{"use strict";r.r(t);const n={name:"memory",active:!0,subCommand:[{name:"lock",version:"0.0.1",example:"dphelper.memory.lock('state[key]')",author:"Dario Passariello",creationDate:"20230101",lastMod:"20230111",type:"function",active:!0,description:"Lock a state",subCommand:Array},{name:"unlock",version:"0.0.1",example:"dphelper.memory.unlock('state[key]')",author:"Dario Passariello",creationDate:"20230101",lastMod:"20230111",type:"function",active:!0,description:"Unlock a state",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.memory={lock:e=>{const t=globalThis,r=null==e?void 0:e.split(".");r.length<2||Object.defineProperty(t[r[0]],r[1],{writable:!1,configurable:!1})},unlock:e=>{const t=globalThis,r=null==e?void 0:e.split(".");r.length<2||Object.defineProperty(t[r[0]],r[1],{writable:!0,configurable:!0})}},dphelper.setProps(dphelper,n,{lock:!0})},6957:(e,t,r)=>{"use strict";r.r(t);const n={name:"obj",active:!0,subCommand:[{name:"toArray",version:"0.0.1",example:"dphelper.obj.toArray([obj])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"replaceNullObjects",version:"0.0.1",example:"dphelper.obj.replaceNullObjects([obj])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"serialize",version:"0.0.1",example:"dphelper.obj.serialize([obj])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"deSerialize",version:"0.0.1",example:"dphelper.obj.deSerialize([obj])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"find",version:"0.0.1",example:"dphelper.obj.find([array, key, value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toXML",version:"0.0.1",example:"dphelper.obj.toXML([obj])",author:"Dario Passariello",creationDate:"20240315",lastMod:"20240315",type:"function",active:!0,description:"",subCommand:Array},{name:"instance",version:"0.0.1",example:"dphelper.obj.instance([obj])",author:"Dario Passariello",creationDate:"20240924",lastMod:"20240924",type:"function",active:!0,description:"",subCommand:Array},{name:"updateByKey",version:"0.0.1",example:"dphelper.obj.updateByKey([obj, key, newValue])",author:"Dario Passariello",creationDate:"20240929",lastMod:"20240929",type:"function",active:!0,description:"",subCommand:Array},{name:"findindex",version:"0.0.1",example:"dphelper.obj.findindex([obj, key])",author:"Dario Passariello",creationDate:"20240929",lastMod:"20240929",type:"function",active:!0,description:"",subCommand:Array},{name:"parse",version:"0.0.1",example:"dphelper.obj.parse(val)",author:"Dario Passariello",creationDate:"20241027",lastMod:"20240927",type:"function",active:!0,description:"Chech if value is object or another type. Return object after parse or a different type. Used instead JSON.parse to avoid crash",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.obj={toArray:e=>Object.entries(e),replaceNullObjects:e=>{const t=e;return Object.keys(e).forEach((r=>{null===e[r]&&(t[r]="")})),t},serialize:e=>{if("function"==typeof e)return e.toString();if("object"==typeof e){const t={};for(const[r,n]of Object.entries(e))t[r]=dphelper.obj.serialize(n);return t}return e},deSerialize:e=>{if(e.toLowerCase().startsWith("function("))return Function('"use strict"; return '+e);if("object"==typeof e){const t={};for(const[r,n]of Object.entries(e))console.info(`objectKey=${r} value=${n}`),t[r]=dphelper.obj.deSerialize(n);return t}return e},sort:e=>Object.keys(e).sort().reduce(((t,r)=>(t[r]=e[r],t)),{}),toXML:(e,t="@")=>'<?xml version="1.0" encoding="UTF-8"?>'+(e=>new(r(8343))({attributePrefix:t}).js2xml(e))(e),find:(e,t,r)=>{for(let n in e)if(e.hasOwnProperty(n)&&e[n][t]===r)return n},instance:e=>JSON.parse(JSON.stringify(e)),updateByKey:(e,t,r)=>{e.forEach(((n,o)=>{o==t&&e.set(o,r)}))},findindex:(e,t)=>e.findIndex((e=>e.name===t)),parse:e=>{let t;try{t=JSON.parse(e)}catch(r){t=e}return t}},dphelper.setProps(dphelper,n,{lock:!0})},2553:(e,t,r)=>{"use strict";r.r(t);const n={name:"observer",active:!0,subCommand:[{name:"observer",version:"0.0.1",example:"observer([stateName, callBack])",author:"Dario Passariello",creationDate:"20240523",lastMod:"20230523",type:"function",active:!0,description:"You can use like useEffect in React. Pass the name of state and the callback and automatically you connect your state with a dispatch. Every time a state mutate you run the callback",subCommand:Array},{name:"list",version:"0.0.1",example:"observer.list()",author:"Dario Passariello",creationDate:"20240616",lastMod:"20230616",type:"function",active:!0,description:"See the list of all your observer (eventListener) actually installed",subCommand:Array},{name:"remove",version:"0.0.1",example:"observer.remove([stateName, callBack, flag?])",author:"Dario Passariello",creationDate:"20240616",lastMod:"20230616",type:"function",active:!0,description:"Remove an observer",subCommand:Array}]};dphelper._list.scripts.push(n),globalThis.observer||(globalThis.observer=()=>{}),Object.defineProperty(globalThis,"observer",{enumerable:!1}),observer=(e,t=null,r={})=>{if(e||t){if(!e&&t)return void console.error("Observer Error: You need to declare what state need to be monitored, Callback can't be alone!");if(e&&!t){dphelper.dispatch.set(String(e),{detail:{name:String(e)}});const t=t=>{console.groupCollapsed("%cObserver debug","color: hsl(252deg 100% 75%)"),console.debug("%cevent","color: hsl(252deg 100% 75%)",t),console.debug("%cglobalThis","color: hsl(252deg 100% 75%)",globalThis),console.debug("%cdocument","color: hsl(252deg 100% 75%)",$(globalThis.document)[0]),console.debug("%cdetail","color: hsl(252deg 100% 75%)",t.detail),console.debug("%cstate","color: hsl(252deg 100% 75%)",state),console.debug("%cwatch","color: hsl(252deg 100% 75%)","state > "+e),console.groupEnd()};return console.debug("called: ",e),void dphelper.dispatch.listen(e,(e=>{t(e)}))}if(e&&t)return"string"!=typeof e||"function"!=typeof t?void console.error('Observer Error: name of state need to be a "string" and the callback need to be a "function"'):void dphelper.dispatch.listen(e,t,r)}else console.error("Observer Error: You need to setup observer correctly, Some parameters are missed!")},Object.defineProperties(observer,{list:{value:(e=window)=>{$._data($(e),"events")}},remove:{value:(e,t=window)=>{e&&$(t).off(e)}}}),dphelper.setProps(globalThis,n,{lock:!0})},1236:(e,t,r)=>{"use strict";r.r(t);const n={name:"path",active:!0,subCommand:[{name:"rail",version:"0.0.1",example:"dphelper.path.rail([urlSlash])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"hash",version:"0.0.1",example:"dphelper.path.hash([hashUrl])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"query",version:"0.0.1",example:"dphelper.path.query([hashQueryString])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.path={rail:()=>{const e=location.href.split("?")[0].replace(location.protocol,"").replace(location.host,"").replace(location.hash,"").split("/");if(e.length>0)return e.filter((e=>e))},hash:()=>{const e=location.hash.replace("#","").split("/");return e.length?e.filter((e=>e)):["empty"]},query:()=>{let e;const t=[],r=location.search;return r?(r.replace("?","").split("&").map((r=>{e=r.split("="),t[e[0]]=e[1]})),t):["empty"]}},dphelper.setProps(dphelper,n,{lock:!0})},984:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"promise",active:!0,subCommand:[{name:"check",version:"0.0.1",example:"dphelper.promise.check(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"resolve",version:"0.0.1",example:"dphelper.promise.resolve(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(o),dphelper.promise={check:e=>e&&"[object Promise]"===Object.prototype.toString.call(e),resolve:e=>(0,n.sH)(void 0,void 0,void 0,(function*(){const t={};if(dphelper.promise.check(e))return Promise.resolve(e).then((function(e){t.promise=e})).catch((e=>{})),yield t}))},dphelper.setProps(dphelper,o,{lock:!0})},128:(e,t,r)=>{"use strict";r.r(t);const n={name:"sanitize",active:!0,subCommand:[{name:"html",version:"0.0.1",example:"dphelper.sanitize.html([html])",author:"Dario Passariello",creationDate:"20241204",lastMod:"20241204",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.sanitize={html:e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},dphelper.setProps(dphelper,n,{lock:!0})},6627:(e,t,r)=>{"use strict";r.r(t);const n={name:"screen",active:!0,subCommand:[{name:"fullScreen",version:"0.0.2",example:"dphelper.screen.fullScreen([element])",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"",subCommand:Array},{name:"toggle",version:"0.0.2",example:"dphelper.screen.toggle([element])",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.screen={fullScreen:e=>{const t=document.querySelector(e);t.requestFullScreen?t.requestFullScreen():t.mozRequestFullScreen?e.mozRequestFullScreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},toggle:e=>{const t=document,r=t.querySelector(e);t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement?t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.msExitFullscreen&&t.msExitFullscreen():r.requestFullscreen?r.requestFullscreen():r.mozRequestFullScreen?r.mozRequestFullScreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen():r.msRequestFullscreen&&r.msRequestFullscreen()},info:()=>[screen.width,screen.height,screen.availWidth,screen.availHeight,screen.colorDepth,screen.pixelDepth]},dphelper.setProps(dphelper,n,{lock:!0})},5155:(e,t,r)=>{"use strict";r.r(t);const n={name:"scrollbar",active:!0,subCommand:[{name:"custom",version:"0.0.1",example:"dphelper.scrollbar.custom(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"indicator",version:"0.0.1",example:"dphelper.scrollbar.indicator(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"position.get",version:"0.0.1",example:"dphelper.scrollbar.position.get(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"position.set",version:"0.0.1",example:"dphelper.scrollbar.position.set(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"smooth",version:"0.0.1",example:"dphelper.scrollbar.smooth(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"scrollTo",version:"0.0.1",example:"dphelper.scrollbar.scrollTo(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.scrollbar={custom:(e="*",t)=>{!(null==t?void 0:t.color_1)||t.color_1,!(null==t?void 0:t.color_1_hover)||t.color_1_hover,!(null==t?void 0:t.color_2)||t.color_2,!(null==t?void 0:t.color_3)||t.color_3,!(null==t?void 0:t.type)||t.type,!(null==t?void 0:t.behavior)||t.behavior,!(null==t?void 0:t.width)||t.width,!(null==t?void 0:t.height)||t.height,!(null==t?void 0:t.rounded)||t.rounded,(null==t?void 0:t.margin)&&t.margin,!(null==t?void 0:t.border)||t.border,!(null==t?void 0:t.opacity)||t.opacity;const r=` ${e}::-webkit-scrollbar {\n scroll-behavior: ${t.behavior};\n width: ${t.width};\n height: ${t.height};\n }\n ${e}::-webkit-scrollbar-thumb {\n opacity: ${t.opacity} !important;\n -webkit-border-radius: ${t.rounded} !important;\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n border-radius: ${t.rounded} !important;\n background: ${t.color_1} !important;\n background-clip: content-box !important;\n border: ${t.border} solid transparent !important;\n min-height: 2px !important;\n min-width: 2px !important;\n }\n ${e}::-webkit-scrollbar-thumb:hover{\n background: ${t.color_1_hover} !important;\n }\n ${e}::-webkit-scrollbar-thumb:active{\n background: ${t.color_1} !important;\n background-clip: content-box !important;\n border: calc( ${t.border} - 1.5px ) solid transparent !important;\n }\n ${e}::-webkit-scrollbar-track {\n background: ${t.color_2};\n border-radius: ${t.rounded};\n }\n ${e}::-webkit-scrollbar-track:hover {\n /*background: rgba(128,128,128,.15) !important;*/\n }\n ${e}::-webkit-scrollbar-track:vertical:hover {\n /* border-left: 1px solid rgba(0,0,0,.1) !important; */\n }\n ${e}::-webkit-scrollbar-track:horizontal:hover {\n /* border-top: 1px solid rgba(0,0,0,.1) !important; */\n }\n ${e}::-webkit-scrollbar-corner {\n background:rgba(0,0,0,0)\n }\n /*\n ${e}::-webkit-scrollbar-thumb:window-inactive {\n background: ${t.color_3}\n }\n */\n select::-webkit-scrollbar-thumb {\n border: 4px solid hsl(0 0% 92% / 1) !important;\n }\n select::-webkit-scrollbar-track {\n background: hsl(0 0% 92% / 1) !important;\n }\n select::-webkit-scrollbar-track:vertical,\n select::-webkit-scrollbar-track:horizontal {\n border-top: none !important;\n border-left: none !important;\n }\n `,n=document.createElement("style");document.head.appendChild(n),n.innerHTML=r},indicator:e=>{var t;const r=document.querySelector(e.el),n=document.querySelector(".scrollindicator");if(!n){const e=document.createElement("div");e.classList.add("scrollindicator"),null===(t=document.querySelector("header"))||void 0===t||t.appendChild(e),e.style.cssText="\n height:5px;\n background:#65c45c;\n position:absolute;\n bottom:0;\n left:0;\n z-index:2\n "}if(e.el||!n)try{const e=document.querySelector(".scrollindicator");r.addEventListener("scroll",(function(t){e.style.width="0%";const r=Number(this.scrollTop),n=Number(this.scrollHeight-this.clientHeight),o=Math.min(Math.max(r/n*100),100);e.style.width=o+"%",e.click()})),r.addEventListener("popstate",(function(t){e.style.width=0}))}catch(e){return}else n.style.width="0%"},position:{set:e=>{const t=[$(e).scrollTop(),$(e).scrollLeft()];null!=t[0]&&null!=t[1]&&store.set(e,t)},get:e=>{if(store.get(e))try{const t=JSON.parse(store.get(e));$(e).scrollTop(t[0]),$(e).scrollLeft(t[1])}catch(e){}}},smooth:(e,t,r)=>{e===document&&(e=document.scrollingElement||document.documentElement||document.body.parentNode||document.body);let n=!1,o=e.scrollTop;const i=e===document.body&&document.documentElement?document.documentElement:e,a=r=>{r.preventDefault();const a=s(r);o+=-a*t,o=Math.max(0,Math.min(o,e.scrollHeight-i.clientHeight)),n||l()};e.addEventListener("mousewheel",a,{passive:!1}),e.addEventListener("DOMMouseScroll",a,{passive:!1});const s=e=>e.detail?e.wheelDelta?e.wheelDelta/e.detail/40*(e.detail>0?1:-1):-e.detail/3:e.wheelDelta/120,l=()=>{n=!0;const t=(o-e.scrollTop)/r;e.scrollTop+=t,Math.abs(t)>.5?c(l):n=!1},c=dphelper.Window.animationframe()},scrollTo:(e,t,r=0)=>{const n=document.querySelector(e),o=document.querySelector(t);n&&o&&r&&n.scrollTo({top:o.offsetTop,behavior:"smooth"})}},dphelper.setProps(dphelper,n,{lock:!0})},2725:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"security",active:!0,subCommand:[{name:"uuid",version:"0.0.1",example:"dphelper.security.uuid",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:[{name:"byVal",version:"0.0.1",example:"dphelper.security.uuid.byVal('string')",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",type:"function",active:!0,description:"",subCommand:Array},{name:"v4",version:"0.0.1",example:"dphelper.security.uuid.v4",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"return",active:!0,description:"",subCommand:Array},{name:"v5",version:"0.0.1",example:"dphelper.security.uuid.v5",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"return",active:!0,description:"",subCommand:Array}]},{name:"hashPass",description:"Give you the crypto digest SHA-1 starting from user and password values (Please, think about security before use SHA-1)",example:"dphelper.security.hashPass(user, password)",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:Array},{name:"crypt",description:"Crypt your message using a secret_key in a default format AES",example:"dphelper.security.crypt(data, secret_key, [optional mode])",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:Array},{name:"deCrypt",description:"Decrypt your message using a secret_key in a default format AES",example:"dphelper.security.deCrypt(data, secret_key, [optional mode])",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:Array},{name:"AES_KeyGen",description:"Generate a key based off AES algorithm",example:"dphelper.security.AES_KeyGen(secret_key)",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:Array},{name:"SHA256_Hex",description:"Generate a SHA256 by Hex algorithm",example:"dphelper.security.SHA256_Hex(secret_key)",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",active:!0,subCommand:Array}]};dphelper._list.scripts.push(o);const i=r(1396);dphelper.security={uuid:{byVal:e=>{if(!e)return console.error("You need to pass a value to obtain a fixed uuid");const t=dphelper.security.SHA256_Hex(e);return[t.substr(0,8),t.substr(8,4),"4"+t.substr(12,3),"8"+t.substr(15,3),t.substr(18,12)].join("-")},v4:"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(+e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+e/4).toString(16))),v5:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},hashPass:(e,t,...r)=>(0,n.sH)(void 0,[e,t,...r],void 0,(function*(e,t,r="SHA-256"){const n=(new TextEncoder).encode(t.toLowerCase()+e.toLowerCase()),o=yield crypto.subtle.digest(r,n);return Array.from(new Uint8Array(o)).map((e=>e.toString(16).padStart(2,"0"))).join("")})),crypt:(e,t,r="AES")=>i[r].encrypt(e,t).toString(),deCrypt:(e,t,r="AES")=>i[r].decrypt(e,t).toString(i.enc.Utf8),AES_KeyGen:(e="test")=>{const t=i.lib.WordArray.random(16);return i.PBKDF2(e,t,{keySize:16,iterations:1e3}).toString()},SHA256_Hex:e=>i.SHA256(e).toString(i.enc.Hex)},dphelper.setProps(dphelper,o,{lock:!0})},1765:(e,t,r)=>{"use strict";r.r(t);const n={name:"shortcut",active:!0,subCommand:[{name:"keys",version:"0.0.1",example:"dphelper.shortcut.keys([e, trigger])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.shortcut={keys:(e,t)=>{const r=e.which?e.which:e.keyCode;e={tes:console.debug("try")},t||(t={data:[{key:"83",ctrl:!0,active:!0,description:"CTRL+S",function:""},{key:"27",ctrl:!1,active:!0,description:"ESC",element:"",function:""},{key:"80",ctrl:!0,active:!0,description:"CTRL+P",element:"",function:"function(){ Print }"}]}),t.map((t=>{if((e.ctrlKey||e.metaKey&&!0===t.ctrl)&&r===parseInt(t.key)&&!0===t.active)return t.element&&t.element.click(),t.function?JSON.stringify(t.function):void e.preventDefault()}))}},dphelper.setProps(dphelper,n,{lock:!0})},8562:(e,t,r)=>{"use strict";r.r(t);
35
+ const n={name:"logging",active:!0,subCommand:[{name:"list",version:"0.0.1",example:"dphelper.log.list()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"reg",version:"0.0.1",example:"dphelper.log.reg()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"debug",version:"0.0.1",example:"dphelper.log.debug()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"error",version:"0.0.1",example:"dphelper.log.error()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),cache.log=[],dphelper.log={list:cache.log,reg:e=>{cache.log.push({reg:e})},debug:e=>{cache.log.push({debug:e})},error:e=>{cache.log.push({error:e})}},Object.defineProperty(cache,"log",{writable:!1,enumerable:!1,configurable:!1}),dphelper.setProps(dphelper,n,{lock:!0})},3169:(e,t,r)=>{"use strict";r.r(t);const n={name:"math",active:!0,subCommand:[{name:"rnd",version:"0.0.1",example:"dphelper.math.rnd()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"tmr",version:"0.0.1",example:"dphelper.math.tmr()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"add",version:"0.0.1",example:"dphelper.math.add()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"sub",version:"0.0.1",example:"dphelper.math.sub()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"multi",version:"0.0.1",example:"dphelper.math.multi()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"div",version:"0.0.1",example:"dphelper.math.div()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"rem",version:"0.0.1",example:"dphelper.math.rem()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"exp",version:"0.0.1",example:"dphelper.math.exp()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isOdd",version:"0.0.1",example:"dphelper.math.isOdd()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"check if math is odd or even",subCommand:Array},{name:"float2int",version:"0.0.1",example:"dphelper.math.float2int()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"float to integer",subCommand:Array},{name:"percent",version:"0.0.1",example:"dphelper.math.percent([n,tot])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Give you the percentance between the number and is total. Example: total: 100, number:25 -> 25%",subCommand:Array},{name:"isPrime",version:"0.0.1",example:"dphelper.type.isPrime(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.math={rnd:()=>Math.floor(1e5+Math.random()*dphelper.math.tmr()),tmr:()=>Math.round(dphelper.date.epoch()/1e3),add:(e,t)=>e+t,sub:(e,t)=>e-t,multi:(e,t)=>e*t,div:(e,t)=>e/t,rem:(e,t)=>e%t,exp:(e,t)=>Math.pow(e,t),isOdd:e=>e%2==0,float2int:e=>0|e,percent:(e,t)=>(100*e/t).toFixed(2),isPrime:e=>{let t=e/2,r=!0;for(;t>1;)e%t==0?(r=!1,t=0):t-=1;return!0===r}},dphelper.setProps(dphelper,n,{lock:!0})},2084:(e,t,r)=>{"use strict";r.r(t);const n={name:"memory",active:!0,subCommand:[{name:"lock",version:"0.0.1",example:"dphelper.memory.lock('state[key]')",author:"Dario Passariello",creationDate:"20230101",lastMod:"20230111",type:"function",active:!0,description:"Lock a state",subCommand:Array},{name:"unlock",version:"0.0.1",example:"dphelper.memory.unlock('state[key]')",author:"Dario Passariello",creationDate:"20230101",lastMod:"20230111",type:"function",active:!0,description:"Unlock a state",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.memory={lock:e=>{const t=globalThis,r=null==e?void 0:e.split(".");r.length<2||Object.defineProperty(t[r[0]],r[1],{writable:!1,configurable:!1})},unlock:e=>{const t=globalThis,r=null==e?void 0:e.split(".");r.length<2||Object.defineProperty(t[r[0]],r[1],{writable:!0,configurable:!0})}},dphelper.setProps(dphelper,n,{lock:!0})},6957:(e,t,r)=>{"use strict";r.r(t);const n={name:"obj",active:!0,subCommand:[{name:"toArray",version:"0.0.1",example:"dphelper.obj.toArray([obj])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"replaceNullObjects",version:"0.0.1",example:"dphelper.obj.replaceNullObjects([obj])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"serialize",version:"0.0.1",example:"dphelper.obj.serialize([obj])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"deSerialize",version:"0.0.1",example:"dphelper.obj.deSerialize([obj])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"find",version:"0.0.1",example:"dphelper.obj.find([array, key, value])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toXML",version:"0.0.1",example:"dphelper.obj.toXML([obj])",author:"Dario Passariello",creationDate:"20240315",lastMod:"20240315",type:"function",active:!0,description:"",subCommand:Array},{name:"instance",version:"0.0.1",example:"dphelper.obj.instance([obj])",author:"Dario Passariello",creationDate:"20240924",lastMod:"20240924",type:"function",active:!0,description:"",subCommand:Array},{name:"updateByKey",version:"0.0.1",example:"dphelper.obj.updateByKey([obj, key, newValue])",author:"Dario Passariello",creationDate:"20240929",lastMod:"20240929",type:"function",active:!0,description:"",subCommand:Array},{name:"findindex",version:"0.0.1",example:"dphelper.obj.findindex([obj, key])",author:"Dario Passariello",creationDate:"20240929",lastMod:"20240929",type:"function",active:!0,description:"",subCommand:Array},{name:"parse",version:"0.0.1",example:"dphelper.obj.parse(val)",author:"Dario Passariello",creationDate:"20241027",lastMod:"20240927",type:"function",active:!0,description:"Chech if value is object or another type. Return object after parse or a different type. Used instead JSON.parse to avoid crash",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.obj={toArray:e=>Object.entries(e),replaceNullObjects:e=>{const t=e;return Object.keys(e).forEach((r=>{null===e[r]&&(t[r]="")})),t},serialize:e=>{if("function"==typeof e)return e.toString();if("object"==typeof e){const t={};for(const[r,n]of Object.entries(e))t[r]=dphelper.obj.serialize(n);return t}return e},deSerialize:e=>{if(e.toLowerCase().startsWith("function("))return Function('"use strict"; return '+e);if("object"==typeof e){const t={};for(const[r,n]of Object.entries(e))console.info(`objectKey=${r} value=${n}`),t[r]=dphelper.obj.deSerialize(n);return t}return e},sort:e=>Object.keys(e).sort().reduce(((t,r)=>(t[r]=e[r],t)),{}),toXML:(e,t="@")=>'<?xml version="1.0" encoding="UTF-8"?>'+(e=>new(r(8343))({attributePrefix:t}).js2xml(e))(e),find:(e,t,r)=>{for(let n in e)if(e.hasOwnProperty(n)&&e[n][t]===r)return n},instance:e=>JSON.parse(JSON.stringify(e)),updateByKey:(e,t,r)=>{e.forEach(((n,o)=>{o==t&&e.set(o,r)}))},findindex:(e,t)=>e.findIndex((e=>e.name===t)),parse:e=>{let t;try{t=JSON.parse(e)}catch(r){t=e}return t}},dphelper.setProps(dphelper,n,{lock:!0})},2553:(e,t,r)=>{"use strict";r.r(t);const n={name:"observer",active:!0,subCommand:[{name:"observer",version:"0.0.1",example:"observer([stateName, callBack])",author:"Dario Passariello",creationDate:"20240523",lastMod:"20230523",type:"function",active:!0,description:"You can use like useEffect in React. Pass the name of state and the callback and automatically you connect your state with a dispatch. Every time a state mutate you run the callback",subCommand:Array},{name:"list",version:"0.0.1",example:"observer.list()",author:"Dario Passariello",creationDate:"20240616",lastMod:"20230616",type:"function",active:!0,description:"See the list of all your observer (eventListener) actually installed",subCommand:Array},{name:"remove",version:"0.0.1",example:"observer.remove([stateName, callBack, flag?])",author:"Dario Passariello",creationDate:"20240616",lastMod:"20230616",type:"function",active:!0,description:"Remove an observer",subCommand:Array}]};dphelper._list.scripts.push(n),globalThis.observer||(globalThis.observer=()=>{}),Object.defineProperty(globalThis,"observer",{enumerable:!1}),observer=(e,t=null,r={})=>{if(e||t){if(!e&&t)return void console.error("Observer Error: You need to declare what state need to be monitored, Callback can't be alone!");if(e&&!t){dphelper.dispatch.set(String(e),{detail:{name:String(e)}});const t=t=>{console.groupCollapsed("%cObserver debug","color: hsl(252deg 100% 75%)"),console.debug("%cevent","color: hsl(252deg 100% 75%)",t),console.debug("%cglobalThis","color: hsl(252deg 100% 75%)",globalThis),console.debug("%cdocument","color: hsl(252deg 100% 75%)",$(globalThis.document)[0]),console.debug("%cdetail","color: hsl(252deg 100% 75%)",t.detail),console.debug("%cstate","color: hsl(252deg 100% 75%)",state),console.debug("%cwatch","color: hsl(252deg 100% 75%)","state > "+e),console.groupEnd()};return console.debug("called: ",e),void dphelper.dispatch.listen(e,(e=>{t(e)}))}if(e&&t)return"string"!=typeof e||"function"!=typeof t?void console.error('Observer Error: name of state need to be a "string" and the callback need to be a "function"'):void dphelper.dispatch.listen(e,t,r)}else console.error("Observer Error: You need to setup observer correctly, Some parameters are missed!")},Object.defineProperties(observer,{list:{value:(e=window)=>{$._data($(e),"events")}},remove:{value:(e,t=window)=>{e&&$(t).off(e)}}}),dphelper.setProps(globalThis,n,{lock:!0})},1236:(e,t,r)=>{"use strict";r.r(t);const n={name:"path",active:!0,subCommand:[{name:"rail",version:"0.0.1",example:"dphelper.path.rail([urlSlash])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"hash",version:"0.0.1",example:"dphelper.path.hash([hashUrl])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"query",version:"0.0.1",example:"dphelper.path.query([hashQueryString])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.path={rail:()=>{const e=location.href.split("?")[0].replace(location.protocol,"").replace(location.host,"").replace(location.hash,"").split("/");if(e.length>0)return e.filter((e=>e))},hash:()=>{const e=location.hash.replace("#","").split("/");return e.length?e.filter((e=>e)):["empty"]},query:()=>{let e;const t=[],r=location.search;return r?(r.replace("?","").split("&").map((r=>{e=r.split("="),t[e[0]]=e[1]})),t):["empty"]}},dphelper.setProps(dphelper,n,{lock:!0})},984:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"promise",active:!0,subCommand:[{name:"check",version:"0.0.1",example:"dphelper.promise.check(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"resolve",version:"0.0.1",example:"dphelper.promise.resolve(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(o),dphelper.promise={check:e=>e&&"[object Promise]"===Object.prototype.toString.call(e),resolve:e=>(0,n.sH)(void 0,void 0,void 0,(function*(){const t={};if(dphelper.promise.check(e))return Promise.resolve(e).then((function(e){t.promise=e})).catch((e=>{})),yield t}))},dphelper.setProps(dphelper,o,{lock:!0})},128:(e,t,r)=>{"use strict";r.r(t);const n={name:"sanitize",active:!0,subCommand:[{name:"html",version:"0.0.1",example:"dphelper.sanitize.html([html])",author:"Dario Passariello",creationDate:"20241204",lastMod:"20241204",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.sanitize={html:e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},dphelper.setProps(dphelper,n,{lock:!0})},6627:(e,t,r)=>{"use strict";r.r(t);const n={name:"screen",active:!0,subCommand:[{name:"fullScreen",version:"0.0.2",example:"dphelper.screen.fullScreen([element])",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"",subCommand:Array},{name:"toggle",version:"0.0.2",example:"dphelper.screen.toggle([element])",author:"Dario Passariello",creationDate:"20240101",lastMod:"20240101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.screen={fullScreen:e=>{const t=document.querySelector(e);t.requestFullScreen?t.requestFullScreen():t.mozRequestFullScreen?e.mozRequestFullScreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},toggle:e=>{const t=document,r=t.querySelector(e);t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement?t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.msExitFullscreen&&t.msExitFullscreen():r.requestFullscreen?r.requestFullscreen():r.mozRequestFullScreen?r.mozRequestFullScreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen():r.msRequestFullscreen&&r.msRequestFullscreen()},info:()=>[screen.width,screen.height,screen.availWidth,screen.availHeight,screen.colorDepth,screen.pixelDepth]},dphelper.setProps(dphelper,n,{lock:!0})},5155:(e,t,r)=>{"use strict";r.r(t);const n={name:"scrollbar",active:!0,subCommand:[{name:"custom",version:"0.0.1",example:"dphelper.scrollbar.custom(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"indicator",version:"0.0.1",example:"dphelper.scrollbar.indicator(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"position.get",version:"0.0.1",example:"dphelper.scrollbar.position.get(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"position.set",version:"0.0.1",example:"dphelper.scrollbar.position.set(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"smooth",version:"0.0.1",example:"dphelper.scrollbar.smooth(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"scrollTo",version:"0.0.1",example:"dphelper.scrollbar.scrollTo(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.scrollbar={custom:(e="*",t)=>{!(null==t?void 0:t.color_1)||t.color_1,!(null==t?void 0:t.color_1_hover)||t.color_1_hover,!(null==t?void 0:t.color_2)||t.color_2,!(null==t?void 0:t.color_3)||t.color_3,!(null==t?void 0:t.type)||t.type,!(null==t?void 0:t.behavior)||t.behavior,!(null==t?void 0:t.width)||t.width,!(null==t?void 0:t.height)||t.height,!(null==t?void 0:t.rounded)||t.rounded,(null==t?void 0:t.margin)&&t.margin,!(null==t?void 0:t.border)||t.border,!(null==t?void 0:t.opacity)||t.opacity;const r=` ${e}::-webkit-scrollbar {\n scroll-behavior: ${t.behavior};\n width: ${t.width};\n height: ${t.height};\n }\n ${e}::-webkit-scrollbar-thumb {\n opacity: ${t.opacity} !important;\n -webkit-border-radius: ${t.rounded} !important;\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n border-radius: ${t.rounded} !important;\n background: ${t.color_1} !important;\n background-clip: content-box !important;\n border: ${t.border} solid transparent !important;\n min-height: 2px !important;\n min-width: 2px !important;\n }\n ${e}::-webkit-scrollbar-thumb:hover{\n background: ${t.color_1_hover} !important;\n }\n ${e}::-webkit-scrollbar-thumb:active{\n background: ${t.color_1} !important;\n background-clip: content-box !important;\n border: calc( ${t.border} - 1.5px ) solid transparent !important;\n }\n ${e}::-webkit-scrollbar-track {\n background: ${t.color_2};\n border-radius: ${t.rounded};\n }\n ${e}::-webkit-scrollbar-track:hover {\n /*background: rgba(128,128,128,.15) !important;*/\n }\n ${e}::-webkit-scrollbar-track:vertical:hover {\n /* border-left: 1px solid rgba(0,0,0,.1) !important; */\n }\n ${e}::-webkit-scrollbar-track:horizontal:hover {\n /* border-top: 1px solid rgba(0,0,0,.1) !important; */\n }\n ${e}::-webkit-scrollbar-corner {\n background:rgba(0,0,0,0)\n }\n /*\n ${e}::-webkit-scrollbar-thumb:window-inactive {\n background: ${t.color_3}\n }\n */\n select::-webkit-scrollbar-thumb {\n border: 4px solid hsl(0 0% 92% / 1) !important;\n }\n select::-webkit-scrollbar-track {\n background: hsl(0 0% 92% / 1) !important;\n }\n select::-webkit-scrollbar-track:vertical,\n select::-webkit-scrollbar-track:horizontal {\n border-top: none !important;\n border-left: none !important;\n }\n `,n=document.createElement("style");document.head.appendChild(n),n.innerHTML=r},indicator:e=>{var t;const r=document.querySelector(e.el),n=document.querySelector(".scrollindicator");if(!n){const e=document.createElement("div");e.classList.add("scrollindicator"),null===(t=document.querySelector("header"))||void 0===t||t.appendChild(e),e.style.cssText="\n height:5px;\n background:#65c45c;\n position:absolute;\n bottom:0;\n left:0;\n z-index:2\n "}if(e.el||!n)try{const e=document.querySelector(".scrollindicator");r.addEventListener("scroll",(function(t){e.style.width="0%";const r=Number(this.scrollTop),n=Number(this.scrollHeight-this.clientHeight),o=Math.min(Math.max(r/n*100),100);e.style.width=o+"%",e.click()})),r.addEventListener("popstate",(function(t){e.style.width=0}))}catch(e){return}else n.style.width="0%"},position:{set:e=>{const t=[$(e).scrollTop(),$(e).scrollLeft()];null!=t[0]&&null!=t[1]&&store.set(e,t)},get:e=>{if(store.get(e))try{const t=JSON.parse(store.get(e));$(e).scrollTop(t[0]),$(e).scrollLeft(t[1])}catch(e){}}},smooth:(e,t,r)=>{e===document&&(e=document.scrollingElement||document.documentElement||document.body.parentNode||document.body);let n=!1,o=e.scrollTop;const i=e===document.body&&document.documentElement?document.documentElement:e,a=r=>{r.preventDefault();const a=s(r);o+=-a*t,o=Math.max(0,Math.min(o,e.scrollHeight-i.clientHeight)),n||l()};e.addEventListener("mousewheel",a,{passive:!1}),e.addEventListener("DOMMouseScroll",a,{passive:!1});const s=e=>e.detail?e.wheelDelta?e.wheelDelta/e.detail/40*(e.detail>0?1:-1):-e.detail/3:e.wheelDelta/120,l=()=>{n=!0;const t=(o-e.scrollTop)/r;e.scrollTop+=t,Math.abs(t)>.5?c(l):n=!1},c=dphelper.Window.animationframe()},scrollTo:(e,t,r=0)=>{const n=document.querySelector(e),o=document.querySelector(t);n&&o&&r&&n.scrollTo({top:o.offsetTop,behavior:"smooth"})}},dphelper.setProps(dphelper,n,{lock:!0})},2725:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"security",active:!0,subCommand:[{name:"uuid",version:"0.0.1",example:"dphelper.security.uuid",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:[{name:"byVal",version:"0.0.1",example:"dphelper.security.uuid.byVal('string')",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",type:"function",active:!0,description:"",subCommand:Array},{name:"v4",version:"0.0.1",example:"dphelper.security.uuid.v4",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"return",active:!0,description:"",subCommand:Array},{name:"v5",version:"0.0.1",example:"dphelper.security.uuid.v5",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"return",active:!0,description:"",subCommand:Array}]},{name:"hashPass",description:"Give you the crypto digest SHA-1 starting from user and password values (Please, think about security before use SHA-1)",example:"dphelper.security.hashPass(user, password)",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:Array},{name:"crypt",description:"Crypt your message using a secret_key in a default format AES",example:"dphelper.security.crypt(data, secret_key, [optional mode])",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:Array},{name:"deCrypt",description:"Decrypt your message using a secret_key in a default format AES",example:"dphelper.security.deCrypt(data, secret_key, [optional mode])",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:Array},{name:"AES_KeyGen",description:"Generate a key based off AES algorithm",example:"dphelper.security.AES_KeyGen(secret_key)",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",active:!0,subCommand:Array},{name:"SHA256_Hex",description:"Generate a SHA256 by Hex algorithm",example:"dphelper.security.SHA256_Hex(secret_key)",version:"0.0.1",type:"function",author:"Dario Passariello",creationDate:"20250101",lastMod:"20250101",active:!0,subCommand:Array}]};dphelper._list.scripts.push(o);const i=r(1396);dphelper.security={uuid:{byVal:e=>{if(!e)return console.error("You need to pass a value to obtain a fixed uuid");const t=dphelper.security.SHA256_Hex(e);return[t.substr(0,8),t.substr(8,4),"4"+t.substr(12,3),"8"+t.substr(15,3),t.substr(18,12)].join("-")},v4:"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(+e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+e/4).toString(16))),v5:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},hashPass:(e,t,...r)=>(0,n.sH)(void 0,[e,t,...r],void 0,(function*(e,t,r="SHA-256"){const n=(new TextEncoder).encode(t.toLowerCase()+e.toLowerCase()),o=yield crypto.subtle.digest(r,n);return Array.from(new Uint8Array(o)).map((e=>e.toString(16).padStart(2,"0"))).join("")})),crypt:(e,t,r="AES")=>i[r].encrypt(e,t).toString(),deCrypt:(e,t,r="AES")=>i[r].decrypt(e,t).toString(i.enc.Utf8),AES_KeyGen:(e="test")=>{const t=i.lib.WordArray.random(16);return i.PBKDF2(e,t,{keySize:16,iterations:1e3}).toString()},SHA256_Hex:e=>i.SHA256(e).toString(i.enc.Hex)},dphelper.setProps(dphelper,o,{lock:!0})},1765:(e,t,r)=>{"use strict";r.r(t);const n={name:"shortcut",active:!0,subCommand:[{name:"keys",version:"0.0.1",example:"dphelper.shortcut.keys([e, trigger])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.shortcut={keys:(e,t)=>{const r=e.which?e.which:e.keyCode;e={tes:console.debug("try")},t||(t={data:[{key:"83",ctrl:!0,active:!0,description:"CTRL+S",function:""},{key:"27",ctrl:!1,active:!0,description:"ESC",element:"",function:""},{key:"80",ctrl:!0,active:!0,description:"CTRL+P",element:"",function:"function(){ Print }"}]}),t.map((t=>{if((e.ctrlKey||e.metaKey&&!0===t.ctrl)&&r===parseInt(t.key)&&!0===t.active)return t.element&&t.element.click(),t.function?JSON.stringify(t.function):void e.preventDefault()}))}},dphelper.setProps(dphelper,n,{lock:!0})},8562:(e,t,r)=>{"use strict";r.r(t);
36
36
  /*!
37
37
  dpHelper
38
38
  Copyright (c) 2019 Dario Passariello <dariopassariello@gmail.com>
39
39
  Licensed under MIT License, see
40
40
  https://dario.passariello.ca
41
41
  */
42
- const n={name:"socket",active:!0,subCommand:[{name:"info",version:"0.0.1",example:"dphelper.socket.info(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"start",version:"0.0.1",example:"dphelper.socket.start(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"conn",version:"0.0.1",example:"dphelper.socket.conn(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"connect",version:"0.0.1",example:"dphelper.socket.connect(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"open",version:"0.0.1",example:"dphelper.socket.open(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"send",version:"0.0.1",example:"dphelper.socket.send(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"receive",version:"0.0.1",example:"dphelper.socket.receive(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"keepAlive",version:"0.0.1",example:"dphelper.socket.keepAlive(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"check",version:"0.0.1",example:"dphelper.socket.check()",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Start check how many websocket conection are opens",subCommand:Array},{name:"list",version:"0.0.1",example:"dphelper.socket.list()",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"List of all websocket connection in realtime",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.socket={info:()=>"Created by Dario Passariello",start:(e,t)=>{dphelper.socket.connect(t),dphelper.socket.receive(e)},conn:(e,t)=>{if(!e||!t)return void console.debug("please use connect!");const r=new WebSocket(t);return r.binaryType="blob",r.onmessage=e=>{"reload"===e.data&&(setTimeout((()=>self.location.reload()),300),setTimeout((()=>{r.close(),self.location.reload()}),300))},[r,e]},connect:e=>{e&&dphelper.socket.open(dphelper.security.uuid.v5,e)},open:(e,t)=>{e&&(globalThis.websocket=dphelper.socket.conn(e,t),globalThis.websocket[0].onopen=()=>dphelper.log.reg(e+" connected"),globalThis.websocket[0].onclose=e=>dphelper.log.debug(e.wasClean?"Disconnected":"Connection break: "+(e.reason||e.code)),globalThis.websocket[0].onerror=e=>dphelper.log.error(e.message))},send:(e,t="reg")=>{var r;if(!(null===(r=globalThis.websocket)||void 0===r?void 0:r[1])||!e)return;const n=globalThis.websocket[0],o=globalThis.websocket[1],i=t?`{"${t}":"(${o}:${e})"}`:e;n.send(i)},ping:()=>{var e;if(!(null===(e=globalThis.websocket)||void 0===e?void 0:e[1]))return;const t=globalThis.websocket[0];globalThis.websocket[1],t.send('{"debug":"__ping__"}')},receive:(e=null)=>{var t;(null===(t=globalThis.websocket)||void 0===t?void 0:t[1])&&globalThis.websocket[0].addEventListener("message",(t=>{if(t.source===window&&t.origin===String(location.origin)){try{e&&$(e).prepend(dphelper.sanitize.html(Object.values(JSON.parse(t.data))[0]))}catch(e){}dphelper.log.reg(t.data)}}))},keepAlive:()=>{let e,t=globalThis.websocket[0];const r=(t=5e3)=>{e=setTimeout((()=>{dphelper.socket.ping()}),t)};t.onopen=function(){setInterval(r,3e4)},t.onmessage=function(t){try{return void("__ping__"===Object.values(JSON.parse(t.data))[0]&&clearTimeout(e))}catch(e){}}},check:()=>{const e=WebSocket.prototype.send;dphelper._list.sockets=[],WebSocket.prototype.send=function(...t){return-1===dphelper._list.sockets.indexOf(this)&&dphelper._list.sockets.push(this),e.call(this,...t)}},list:()=>dphelper._list.sockets},dphelper.setProps(dphelper,n,{lock:!0}),dphelper.socket.check()},1148:(e,t,r)=>{"use strict";r.r(t);const n={name:"state",active:!0,subCommand:[{name:"state",type:"function",version:"0.0.1",example:"to set: state.name = value; to get: state.name",description:"set and get state",author:"Dario Passariello",creationDate:"20190101",lastMod:"20240928",active:!0,subCommand:Array},{name:"list",type:"function",version:"0.0.1",example:"state.list",description:"show all states out of proxy",author:"Dario Passariello",creationDate:"20240607",lastMod:"20240607",active:!0,subCommand:Array},{name:"remove",type:"function",version:"0.0.1",example:"state.remove([state])",description:"remove a state",author:"Dario Passariello",creationDate:"20240607",lastMod:"20240607",active:!0,subCommand:Array}]};dphelper._list.scripts.push(n),(null===globalThis||void 0===globalThis?void 0:globalThis.state)||(globalThis.state={});const o=[],i={event(e){dphelper.dispatch.set(String(e),{detail:{name:String(e)}})},set:(e,t,r)=>(e[t]||o.push(t),i.event(t),e[t]=r,state.mex({property:t,value:r}),!0),get:(e,t)=>"object"===t&&null!==t?new Proxy(e[t],i):e[t]};Object.defineProperty(globalThis,"state",{value:new Proxy(state,i),enumerable:!1,configurable:!1}),Object.defineProperties(state,{list:{get(){console.info(Object.assign({},state))}},remove:{value(e){e in state?(delete state[e],console.warn(`State '${e}' deleted`)):console.error(`'${e}' not exist`)},writable:!1,configurable:!1},mex:{value(e){$("#dpConsole").append(`<span>\n <span style="color: green">State ${e.property} changed: <span style="color: yellow">"${e.value}"</span></span>\n </span>`)},writable:!1,configurable:!1}}),dphelper.setProps(globalThis,n,{lock:!1})},6212:(e,t,r)=>{"use strict";r.r(t);const n={name:"store",active:!0,subCommand:[{name:"get",version:"0.0.1",example:"store.get(..)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"set",version:"0.0.1",example:"store.set(..)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"delete",version:"0.0.1",example:"store.delete(..)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"clearAll",version:"0.0.1",example:"store.clearAll()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"quota",version:"0.0.1",example:"store.quota()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"size",version:"0.0.1",example:"store.size()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),Object.defineProperty(globalThis,"store",{value:new Proxy({},{}),enumerable:!1,configurable:!1}),Object.defineProperties(store,{get:{value(e){if(e)try{return"object"==typeof JSON.parse(localStorage.getItem(e))?JSON.parse(localStorage.getItem(e)):localStorage.getItem(e)}catch(e){console.error(e)}}},set:{value(e,t){if(e)try{null===typeof t?localStorage.setItem(e,JSON.stringify(null)):"object"==typeof t?localStorage.setItem(e,JSON.stringify(t)):"number"==typeof t?localStorage.setItem(e,JSON.stringify(Number(t))):"boolean"==typeof t?localStorage.setItem(e,JSON.stringify(Boolean(t))):"string"==typeof t?localStorage.setItem(e,JSON.stringify(String(t))):"function"==typeof t&&console.error("It's not secure to store functions...")}catch(e){console.error(e)}}},delete:{value(e){if(e)return localStorage.getItem(e)?(localStorage.removeItem(e),!0):void 0}},clearAll:{value:()=>(localStorage.clear(),!0)},quota:{value(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then((({usage:e,quota:t})=>{e&&t&&console.debug(`Using ${e/1024} out of ${t/1024} Mb.`)})).catch((e=>{}))}},size:{value(){let e,t=0;for(let r in localStorage)localStorage.hasOwnProperty(r)&&(e=localStorage[r].length,t+=e);return t}}}),dphelper.setProps(globalThis,n,{lock:!0})},9011:(e,t,r)=>{"use strict";r.r(t);const n={name:"svg",active:!0,subCommand:[{name:"init",version:"0.0.1",example:"dphelper.svg.init(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"check",version:"0.0.1",example:"dphelper.svg.check(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"update",version:"0.0.1",example:"dphelper.svg.update(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"getCurve",version:"0.0.1",example:"dphelper.svg.getCurve(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"getIntersection",version:"0.0.1",example:"dphelper.svg.getIntersection(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"setConnector",version:"0.0.1",example:"dphelper.svg.setConnector(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"removeConnection",version:"0.0.1",example:"dphelper.svg.removeConnection(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"makeScrollable",version:"0.0.1",example:"dphelper.svg.makeScrollable(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"makeDraggable",version:"0.0.1",example:"dphelper.svg.makeDraggable(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toggle",version:"0.0.1",example:"dphelper.svg.toggle(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"convert",version:"0.0.1",example:"dphelper.svg.convert([Object])",author:"Dario Passariello",creationDate:"20190101",lastMod:"20240401",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.svg={init:function(e,t,r,n){$(e).find("svg")&&dphelper.svg_removeConnection(e),t=dphelper.svg.setConnector(t[0],t[1]),r=dphelper.svg.setConnector(r[0],r[1]);const o=e.getBoundingClientRect(),i="http://www.w3.org/2000/svg",a=10*e.offsetWidth,s=10*e.offsetHeight,l=document.createElementNS(i,"svg");l.setAttribute("xmlns",i),l.setAttributeNS(null,"id","pathConnection"),l.setAttributeNS(null,"viewBox","0 0 "+a+" "+s),l.setAttributeNS(null,"width",String(a)),l.setAttributeNS(null,"height",String(s)),l.style.display="block";const c=document.createElementNS(i,"rect");let d=t.getBoundingClientRect();c.setAttributeNS(null,"x",String(d.left-o.left)),c.setAttributeNS(null,"y",String(d.top-o.top)),c.setAttributeNS(null,"width",d.width),c.setAttributeNS(null,"height",d.height),l.appendChild(c);const u=document.createElementNS(i,"rect");d=r.getBoundingClientRect(),u.setAttributeNS(null,"x",String(d.left-o.left)),u.setAttributeNS(null,"y",String(d.top-o.top)),u.setAttributeNS(null,"width",d.width),u.setAttributeNS(null,"height",d.height),l.appendChild(u);const p=document.createElementNS(i,"path");p.setAttributeNS(null,"id","connection"),p.setAttributeNS(null,"marker-end","url(#head)"),l.appendChild(p),e.appendChild(l),dphelper.svg.update($(c)[0],$(u)[0],$("#connection")[0]),"function"==typeof n&&n(t,r)},check:()=>{if(void 0===dphelper.svg.check.supported){const e=document.body.appendChild(document.createElement("div"));e.innerHTML='<v:shape id="vml_flag1" adj="1" />';const t=e.firstChild;t.style.behavior="url(#default#VML)",dphelper.svg.check.supported=!t||"object"==typeof t.adj,e.parentNode.removeChild(e)}return dphelper.svg.check.supported},update:function(e,t,r){const n=parseFloat(e.getAttribute("x")),o=parseFloat(e.getAttribute("y")),i=parseFloat(t.getAttribute("x")),a=parseFloat(t.getAttribute("y")),s=parseFloat(e.getAttribute("width"))/2,l=parseFloat(e.getAttribute("height"))/2,c=parseFloat(t.getAttribute("width"))/2,d=parseFloat(t.getAttribute("height"))/2,u=n+s,p=o+l,h=i+c,f=a+d,m=h-u,v=f-p,g=dphelper.svg.getIntersection(m,v,u,p,s,l),y=dphelper.svg.getIntersection(-m,-v,h,f,c,d),b=y[0]-g[0],x=dphelper.svg.getCurve(g,y,b);r.setAttributeNS(null,"d","M"+u+","+p+x+h+","+f)},getCurve:function(e,t,r){const n=r/2;return" C"+(n+e[0])+","+e[1]+" "+(t[0]-n)+","+t[1]+" "},getIntersection:function(e,t,r,n,o,i){return Math.abs(t/e)<i/o?[r+(e>0?o:-o),n+t*o/Math.abs(e)]:[r+e*i/Math.abs(t),n+(t>0?i:-i)]},setConnector:function(e,t){let r;const n=$('<span class="connector"></span>');switch($(e).css("position","relative"),n.css({position:"absolute",width:"5px",height:"5px"}),t){case"top":r={left:"50%",top:"2.5px",marginLeft:"2.5px"};break;case"right":r={top:"50%",right:"2.5px",marginTop:"-2.5px"};break;case"bottom":r={left:"50%",bottom:"-2.5px",marginLeft:"2.5px"};break;case"left":r={top:"50%",left:"-2.5px",marginTop:"-2.5px"};break;default:r={}}return n.css(r),$(e).append(n),$(n)[0]},removeConnection:function(e){$(e).find("svg#pathConnection").each((function(e,t){$(t).remove()}))},makeScrollable:function(e,t,r,n,o,i){const a=e.getBoundingClientRect(),s=[r,n],l=s.length,c=[o,i],d=[];for(let e=0;e<l;e++)d[e]=s[e].getBoundingClientRect(),c[e].setAttributeNS(null,"x",d[e].left-a.left),c[e].setAttributeNS(null,"y",d[e].top-a.top),c[e].setAttributeNS(null,"width",d[e].width),c[e].setAttributeNS(null,"height",d[e].height);dphelper.svg.update($(o)[0],$(i)[0],$("#connection")[0])},makeDraggable:function(e){const t=e.target;function r(r){const n=t.getScreenCTM();return{x:(e.clientX-n.e)/n.a,y:(e.clientY-n.f)/n.d}}let n,o;t.addEventListener("mousedown",(function(e){e.target.classList.contains("draggable")&&(n=e.target,o=r(),o.x-=parseFloat(n.getAttributeNS(null,"x")),o.y-=parseFloat(n.getAttributeNS(null,"y")))})),t.addEventListener("mousemove",(function(e){if(n){const e=r();n.setAttributeNS(null,"x",e.x-o.x),n.setAttributeNS(null,"y",e.y-o.y),dphelper.svg.update()}})),t.addEventListener("mouseup",(function(e){n=null}))},toggle:function(e,t,r,n){$(e.target).prop("checked")&&$(r).length&&$(n).length?(dphelper.cookie.set({name:`${$(e.target).attr("id")}`,value:1,time:365}),dphelper.svg_initConnection(t[0],[$(r)[0],"right"],[$(n)[0],"left"],(function(e,r){$("#parts-left-body").on("scroll",(function(n){dphelper.svg.makeScrollable($(t)[0],$("#parts-left-body")[0],$(e)[0],$(r)[0],$("#parts svg rect")[0],$("#parts svg rect")[1])}))}))):(dphelper.svg_removeConnection(t),$("#parts-left-body").off("scroll"),dphelper.cookie.set({name:`${$(e.target).attr("id")}`,value:0,time:365}))},convert:({children:e,active:t=!0,size:r=[1920,1080],fit:n=["100%","100%"],preserveAspectRatio:o="none",style:i=`width:${n[0]}; height:${n[1]}`,zoom:a=1})=>{if(!e)return"Please pass ID of element for SVG conversion";if(t){const t=$(e).clone(),s=`\n <svg\n viewBox="0 0 ${r[0]} ${r[1]}"\n preserveAspectRatio="${o}"\n xmlns="http://www.w3.org/2000/svg"\n style="${i}; zoom:${a}"\n >\n <foreignObject\n x="0"\n y="0"\n width="${n[0]}"\n height="${n[1]}"\n style="${i}; zoom:${a}"\n >\n </foreignObject>\n </svg >\n `;$(e).html(s).find("foreignObject").html(t)}}},dphelper.setProps(dphelper,n,{lock:!0}),dphelper.svg.check()},5698:(e,t,r)=>{"use strict";r.r(t);const n={name:"system",active:!0,subCommand:[{name:"multiSplit",version:"0.0.1",example:"dphelper.system.multiSplit()",author:"Dario Passariello",creationDate:"20231121",lastMod:"20231121",type:"system",active:!0,description:"Run only one time when you load your App ... extend the .split with array as argument (example.split([',', ':', ';', '?', '/'])[0])",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.system={multiSplit:()=>{const e=String.prototype.split;String.prototype.split=function(){if(arguments[0].length>0&&"[object Array]"==Object.prototype.toString.call(arguments[0]))return function(e,t){for(var r=t[0],n=1;n<t.length;++n)e=e.split(t[n]).join(r);return e.split(r)}(this,arguments[0]);const t=arguments;return e.apply(this,t)}}},dphelper.setProps(dphelper,n,{lock:!0})},963:(e,t,r)=>{"use strict";r.r(t);const n={name:"terminal",active:!0,subCommand:[{name:"terminal",version:"0.0.1",example:"dphelper.terminal([dom])",author:"Dario Passariello",creationDate:"20240525",lastMod:"20240525",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.terminal=function(e){if(!e)throw Error("Parent dom element required!");let t=!1,r=console.log,n=console.info,o=console.warn,i=console.error;const a=document.getElementById("terminal"),s=function(e){var t=Array.prototype.slice.call(arguments[1]).join(" ");t=e===l.WARN?'<font color="#FF6600">* WARN: '+t:e===l.ERR?'<font color="#FF0000">* ERR: '+t:"* "+t,this.domElement.innerHTML+=t+"<br/>",a&&(a.scrollTop=a.scrollHeight)},l={LOG:0,INFO:1,WARN:2,ERR:3};this.autoScroll=!0,this.disableConsoleLogging=!1;var c=document.createElement("div");c.id="debugConsole",e.appendChild(c),this.domElement=c,this.initKeyMappings=function(){t?console.warn("DebugConsole: keys already mapped!"):(state.toggleConsole=function(){this.visible=!this.visible}.bind(this),t=!0)},this.overrideConsole=function(){console.log=function(){this.disableConsoleLogging||(s.call(this,l.LOG),r.apply(console))}.bind(this),console.info=function(){state.disableConsoleLogging||(s.call(this,l.INFO),n.apply(console))}.bind(this),console.warn=function(){state.disableConsoleLogging||(s.call(this,l.WARN),o.apply(console))}.bind(this),console.error=function(){state.disableConsoleLogging||(s.call(this,l.ERR),i.apply(console))}.bind(this),onerror=function(e,t,r){var n=[`${e} in <a href="${t}" target='_blank'>${null==t?void 0:t.split("/").pop()}</a>: ${r}`];return console.error(n.join("")),!1}},this.overrideConsole(),this.clear=function(){this.domElement.innerHTML=""},Object.defineProperties(this,{visible:{get:function(){return""===this.domElement.style.display},set:function(e){e&&(this.domElement.style.display="",this.domElement.scrollTop=this.domElement.scrollHeight)},configurable:!0},top:{get:function(){return this.domElement.style.top},set:function(e){this.domElement.style.top=e}},left:{get:function(){return this.domElement.style.left},set:function(e){this.domElement.style.left=e}},bottom:{get:function(){return this.domElement.style.bottom},set:function(e){this.domElement.style.bottom=e}},right:{get:function(){return this.domElement.style.right},set:function(e){this.domElement.style.right=e}},width:{get:function(){return this.domElement.style.width},set:function(e){this.domElement.style.width=e}},height:{get:function(){return this.domElement.style.height},set:function(e){this.domElement.style.height=e}}})},dphelper.setProps(dphelper,n,{lock:!0})},2764:(e,t,r)=>{"use strict";r.r(t);const n={name:"text",active:!0,subCommand:[{name:"trim",version:"0.0.1",example:"dphelper.text.trim(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"capitalize",version:"0.0.1",example:"dphelper.text.capitalize(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"lower",version:"0.0.1",example:"dphelper.text.lower(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"upper",version:"0.0.1",example:"dphelper.text.upper(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"nl2br",version:"0.0.1",example:"dphelper.text.nl2br(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"sanitize",version:"0.0.1",example:"dphelper.text.sanitize(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"camelCase",version:"0.0.1",example:"dphelper.text.camelCase(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:[{name:"toSpace",version:"0.0.1",example:"dphelper.text.camelCase.toSpace(...)",type:"function",active:!0,description:"",subCommand:Array},{name:"toUnderscore",version:"0.0.1",example:"dphelper.text.camelCase.toUnderscore(...)",type:"function",active:!0,description:"",subCommand:Array}]},{name:"fitContainer",version:"0.0.1",example:"dphelper.font.fitContainer([element])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.text={trim:(e,t,r,n)=>e.charAt(0)===t?e.substring(r,n):e,capitalize:e=>e.toLowerCase().replace(/\b\w/g,(function(e){return e.toUpperCase()})),lower:e=>e.toLowerCase(),upper:e=>e.toUpperCase(),nl2br:e=>e.replace(/(?:\r\n|\r|\n)/g,"<br>"),sanitize:e=>e.replace(/<(|\/|[^>\bi]|\/[^>bi]|[^/>][^>]+|\/[^>][^>]+)>/g,""),camelCase:{toSpace:e=>e.replace(/([A-Z])/g," $1").replace(/^./,(function(e){return e.toUpperCase()})),toUnderscore:e=>e.replace(/\.?([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,"")},fitContainer:e=>{e&&dphelper.addListenerMulti(window,"load resize",(()=>{!function(e){const t=document.querySelectorAll(e),r=t.length;if(!(r<=0))for(let e=0;e<r;e++){const r=.05*t[e].offsetWidth;t[e].style.fontSize=r+"px"}}(e)}))}},dphelper.setProps(dphelper,n,{lock:!0})},6584:(e,t,r)=>{"use strict";r.r(t);const n={name:"timer",active:!0,subCommand:[{name:"sleep",version:"0.0.1",example:"dphelper.timer.sleep(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"percentage",version:"0.0.1",example:"dphelper.timer.percentage(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.timer={sleep:e=>new Promise((t=>setTimeout(t,e))),percentage:(e,t)=>{function r(e){const t=e.split(":");return 3600*t[0]+60*t[1]+t[2]}return(100*r(e)/r(t)).toFixed(2)}},dphelper.setProps(dphelper,n,{lock:!0})},3890:(e,t,r)=>{"use strict";r.r(t);const n={name:"tools",active:!0,subCommand:[{name:"getip",description:"Get the IP of connection",example:"dphelper.tools.getip()",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20241020",type:"function",active:!0,subCommand:Array},{name:"byteSize",description:"Give you the total in 'Kb', 'Mb', 'Gb', 'Tb', 'Pb', 'Eb', 'Zb', 'Yb' starting from bytes",example:"dphelper.tools.byteSize(bytes)",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"hashPass",description:"",example:"dphelper.tools.hashPass(number, total)",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"zIndex",description:"",example:"dphelper.tools.zIndex()",version:"0.0.1",author:"Dario Passariello",creationDate:"20240807",lastMod:"20240807",type:"function",active:!0,subCommand:Array},{name:"zeroToFalse",description:"",example:"dphelper.tools.zeroToFalse(num)",version:"0.0.1",author:"Dario Passariello",creationDate:"20240924",lastMod:"20240924",type:"function",active:!0,subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.tools={getip:()=>fetch("https://api.ipify.org?format=json").then((e=>e.json())).then((e=>globalThis.getip=btoa(null==e?void 0:e.ip))),getIp:()=>atob(dphelper.tools.getip),byteSize:e=>{const t=1024;if(Math.abs(e)<t)return e+"b";const r=["Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"];let n=-1;do{e/=t,++n}while(Math.abs(e)>=t&&n<r.length-1);return e.toFixed(1)+r[n]},zIndex:()=>[...$("body *")].map((e=>parseFloat(getComputedStyle(e).zIndex))).reduce(((e,t)=>t>e?t:e),1),zeroToFalse:e=>0!==e&&e},dphelper.setProps(dphelper,n,{lock:!0})},1938:(e,t,r)=>{"use strict";r.r(t);const n={name:"translators",active:!0,subCommand:[{name:"convertMatrixToScale",version:"0.0.1",example:"dphelper.translators.convertMatrixToScale({value})",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.translators={convertMatrixToScale:e=>{const t=(e=(e=(e=e.split("(")[1]).split(")")[0]).split(","))[0],r=e[1];return Math.sqrt(t*t+r*r)}},dphelper.setProps(dphelper,n,{lock:!0})},7822:(e,t,r)=>{"use strict";r.r(t);const n={name:"trigger",active:!0,subCommand:[{name:"click",version:"0.0.1",example:"dphelper.trigger.click(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"change",version:"0.0.1",example:"dphelper.trigger.change([element])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"input",version:"0.0.1",example:"dphelper.trigger.input([element])",author:"Dario Passariello",creationDate:"20241001",lastMod:"20241001",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.trigger={click:e=>{const t=document.querySelector(e);t&&t.click()},change:e=>{const t=document.querySelector(e),r=new Event("__"+e,{bubbles:!0});r.simulated=!0,dphelper.dispatch.set("__"+e,r),t.dispatchEvent(r)},input:e=>{dphelper.trigger.change(e)}},dphelper.setProps(dphelper,n,{lock:!0})},3656:(e,t,r)=>{"use strict";r.r(t);const n={name:"type",active:!0,subCommand:[{name:"of",version:"0.0.1",example:"dphelper.type.of(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"instOfObj",version:"0.0.1",example:"dphelper.type.instOfObj(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isNaN",version:"0.0.1",example:"dphelper.type.isNaN(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isBool",version:"0.0.1",example:"dphelper.type.isBool(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.type={of:e=>typeof e,instOfObj:e=>e instanceof Object,isNaN:e=>function(t){return!e(t)},isBool:e=>!e||null==e.length||"1"===e},dphelper.setProps(dphelper,n,{lock:!0})},4245:()=>{},3583:(e,t,r)=>{"use strict";r.r(t);const n={name:"window",active:!0,subCommand:[{name:"enhancement",version:"0.0.1",example:"dphelper.window.enhancement()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Use only one time at end of application",subCommand:Array},{name:"center",version:"0.0.1",example:"dphelper.window.center({ url, title, name, w, h })",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Use to center popup to screen",subCommand:Array},{name:"onBeforeUnLoad",version:"0.0.1",example:"dphelper.window.onBeforeUnLoad()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"message during leave the site",subCommand:Array},{name:"purge",version:"0.0.1",example:"dphelper.window.purge()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Purge from memory",subCommand:Array},{name:"stopZoomWheel",version:"0.0.1",example:"dphelper.window.stopZoomWheel(e)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Stop Zoom Generated by Mouse Wheel",subCommand:Array},{name:"setZoom",version:"0.0.1",example:"dphelper.window.setZoom([el,1])",author:"Dario Passariello",creationDate:"20240727",lastMod:"20220727",type:"function",active:!0,description:"",subCommand:Array},{name:"getZoom",version:"0.0.1",example:"dphelper.window.getZoom([el])",author:"Dario Passariello",creationDate:"20240727",lastMod:"20220727",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.window={enhancement:()=>{globalThis.offScreenBuffering="auto",dphelper.window.animationframe()},animationframe:()=>{const e=globalThis;return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){e.setTimeout(t,1e3/120)}},center:({url:e,title:t,name:r,w:n,h:o})=>{const i=void 0!==screenLeft?screenLeft:screenX,a=void 0!==screenTop?screenTop:screenY,s=innerWidth||(document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width),l=innerHeight||(document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height),c=s/screen.availWidth,d=open(e,t,`\n scrollbars=yes,\n width=${n/c},\n height=${o/c},\n top=${(l-o)/2/c+a},\n left=${(s-n)/2/c+i}\n `);onfocus=()=>null==d?void 0:d.focus()},onBeforeUnLoad:e=>{let t=!1,r=!1;const n="You have made some changes which you might want to save.",o=e=>(e.preventDefault(),n),i=document.querySelector(e.target);i&&i.addEventListener("input",(t=>{""!==e.target.value?addEventListener("beforeunload",o,{capture:!0}):removeEventListener("beforeunload",o,{capture:!0})})),!1===r&&(document.body.addEventListener("click",(r=>{if("IMG"===e.target.tagName&&!0===t){if(!0===confirm(n))return t=!1;r.preventDefault()}})),r=!0),addEventListener("popstate",(e=>{if(!0===t)return!0===confirm(n)?t=!1:(e.stopImmediatePropagation(),e.preventDefault(),n)})),onbeforeunload=e=>{}},purge:(e=document,t=1e4)=>{setTimeout((()=>{if(!e)return null;let t=e.attributes;if(t){const r=t.length;for(let n=0;n<r;n+=1){const r=t[n].name;"function"==typeof e[r]&&(e[r]=null),void 0===e[r]&&(e[r]=null)}}if(t=e.childNodes,t){const r=t.length;for(let t=0;t<r;t+=1)dphelper.purge(e.childNodes[t])}}),t)},stopZoomWheel:e=>{addEventListener("wheel",(e=>{e.ctrlKey&&e.preventDefault()}),{passive:!1}),addEventListener("keydown",(e=>{const t=dphelper.event.keys(e);["+","-","="].includes(t.key)&&t.ctrl&&e.preventDefault()}))},setZoom:(e="html",t=1)=>(t<0&&(t=1),$(e).css("zoom",t),`New zoom value: ${100*t}% (css: ${t})`),getZoom:(e="html")=>Number($(e).css("zoom"))},dphelper.setProps(dphelper,n,{lock:!0})},8343:function(e,t){var r,n,o;!function(){"use strict";n=[],void 0===(o="function"==typeof(r=function(e){return function(t){(t=t||{}).arrayAccessForm=t.arrayAccessForm||"none",t.emptyNodeForm=t.emptyNodeForm||"text",t.jsAttributeFilter=t.jsAttributeFilter,t.jsAttributeConverter=t.jsAttributeConverter,t.attributeConverters=t.attributeConverters||[],t.datetimeAccessFormPaths=t.datetimeAccessFormPaths||[],t.arrayAccessFormPaths=t.arrayAccessFormPaths||[],t.xmldomOptions=t.xmldomOptions||{},void 0===t.enableToStringFunc&&(t.enableToStringFunc=!0),void 0===t.skipEmptyTextNodesForObj&&(t.skipEmptyTextNodesForObj=!0),void 0===t.stripWhitespaces&&(t.stripWhitespaces=!0),void 0===t.useDoubleQuotes&&(t.useDoubleQuotes=!0),void 0===t.ignoreRoot&&(t.ignoreRoot=!1),void 0===t.escapeMode&&(t.escapeMode=!0),void 0===t.attributePrefix&&(t.attributePrefix="_"),void 0===t.selfClosingElements&&(t.selfClosingElements=!0),void 0===t.keepCData&&(t.keepCData=!1),void 0===t.keepText&&(t.keepText=!1),void 0===t.jsDateUTC&&(t.jsDateUTC=!1),function(){function e(e){var t=String(e);return 1===t.length&&(t="0"+t),t}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|^\n+|(\s|\n)+$/g,"")}),"function"!=typeof Date.prototype.toISOString&&(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"})}();var r=1,n=3,o=4,i=8,a=9;function s(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!==t||(t=e.nodeName),t}function l(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"):e}function c(e,r,n){if("property"===t.arrayAccessForm&&(e[r]instanceof Array?e[r+"_asArray"]=e[r]:e[r+"_asArray"]=[e[r]]),!(e[r]instanceof Array)&&t.arrayAccessFormPaths.length>0){for(var o=!1,i=0;i<t.arrayAccessFormPaths.length;i++){var a=t.arrayAccessFormPaths[i];if("string"==typeof a){if(a===n){o=!0;break}}else if(a instanceof RegExp){if(a.test(n)){o=!0;break}}else if("function"==typeof a&&a(r,n)){o=!0;break}}o&&(e[r]=[e[r]])}}function d(e){var t=e.split(/[-T:+Z]/g),r=new Date(t[0],t[1]-1,t[2]),n=t[5].split(".");if(r.setHours(t[3],t[4],n[0]),n.length>1&&r.setMilliseconds(n[1]),t[6]&&t[7]){var o=60*t[6]+Number(t[7]);o=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*o:o),r.setMinutes(r.getMinutes()-o-r.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(r=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())));return r}function u(e,r){for(var n={__cnt:0},o=e.childNodes,a=0;a<o.length;a++){var l=o.item(a),u=s(l);l.nodeType!==i&&(n.__cnt++,null==n[u]?(n[u]=p(l,r+"."+u),c(n,u,r+"."+u)):(n[u]instanceof Array||(n[u]=[n[u]],c(n,u,r+"."+u)),n[u][n[u].length]=p(l,r+"."+u)))}for(var h=0;h<e.attributes.length;h++){var f=e.attributes.item(h);n.__cnt++;for(var m=f.value,v=0;v<t.attributeConverters.length;v++){var g=t.attributeConverters[v];g.test.call(null,f.name,f.value)&&(m=g.convert.call(null,f.name,f.value))}n[t.attributePrefix+f.name]=m}var y=e.prefix;return y&&(n.__cnt++,n.__prefix=y),n["#text"]&&(n.__text=n["#text"],n.__text instanceof Array&&(n.__text=n.__text.join("\n")),t.escapeMode&&(n.__text=n.__text.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&amp;/g,"&")),t.stripWhitespaces&&(n.__text=n.__text.trim()),delete n["#text"],"property"===t.arrayAccessForm&&delete n["#text_asArray"],n.__text=function(e,r,n){if(t.datetimeAccessFormPaths.length>0)for(var o=n.split(".#")[0],i=0;i<t.datetimeAccessFormPaths.length;i++){var a=t.datetimeAccessFormPaths[i];if("string"==typeof a){if(a===o)return d(e)}else if(a instanceof RegExp){if(a.test(o))return d(e)}else if("function"==typeof a&&a(o))return d(e)}return e}(n.__text,0,r+".#text")),n.hasOwnProperty("#cdata-section")&&(n.__cdata=n["#cdata-section"],delete n["#cdata-section"],"property"===t.arrayAccessForm&&delete n["#cdata-section_asArray"]),1===n.__cnt&&n.__text&&!t.keepText?n=n.__text:0===n.__cnt&&"text"===t.emptyNodeForm?n="":n.__cnt>1&&void 0!==n.__text&&t.skipEmptyTextNodesForObj&&(t.stripWhitespaces&&""===n.__text||""===n.__text.trim())&&delete n.__text,delete n.__cnt,t.keepCData||n.hasOwnProperty("__text")||!n.hasOwnProperty("__cdata")||1!==Object.keys(n).length?(t.enableToStringFunc&&(n.__text||n.__cdata)&&(n.toString=function(){return(this.__text?this.__text:"")+(this.__cdata?this.__cdata:"")}),n):n.__cdata?n.__cdata:""}function p(e,i){return e.nodeType===a?function(e){for(var n={},o=e.childNodes,i=0;i<o.length;i++){var a=o.item(i);if(a.nodeType===r){var l=s(a);t.ignoreRoot?n=p(a,l):n[l]=p(a,l)}}return n}(e):e.nodeType===r?u(e,i):e.nodeType===n||e.nodeType===o?e.nodeValue:null}function h(e,r,n,o){var i="<"+(e&&e.__prefix?e.__prefix+":":"")+r;if(n)for(var a=0;a<n.length;a++){var s=n[a],c=e[s];t.escapeMode&&(c=l(c)),i+=" "+s.substr(t.attributePrefix.length)+"=",t.useDoubleQuotes?i+='"'+c+'"':i+="'"+c+"'"}return i+(o?" />":">")}function f(e,t){return"</"+(e&&e.__prefix?e.__prefix+":":"")+t+">"}function m(e,r){return!!("property"===t.arrayAccessForm&&(n=r.toString(),o="_asArray",-1!==n.indexOf(o,n.length-o.length))||0===r.toString().indexOf(t.attributePrefix)||0===r.toString().indexOf("__")||e[r]instanceof Function);var n,o}function v(e){var t=0;if(e instanceof Object)for(var r in e)m(e,r)||t++;return t}function g(e){var r=[];if(e instanceof Object)for(var n in e)-1===n.toString().indexOf("__")&&0===n.toString().indexOf(t.attributePrefix)&&r.push(n);return r}function y(e){var r="";return e instanceof Object?r+=function(e){var r="";return e.__cdata&&(r+="<![CDATA["+e.__cdata+"]]>"),(e.__text||"number"==typeof e.__text||"boolean"==typeof e.__text)&&(t.escapeMode?r+=l(e.__text):r+=e.__text),r}(e):null!==e&&(t.escapeMode?r+=l(e):r+=e),r}function b(e,r,n){var o="";return t.jsAttributeFilter&&t.jsAttributeFilter.call(null,r,e)||(t.jsAttributeConverter&&(e=t.jsAttributeConverter.call(null,r,e)),null!=e&&""!==e||!t.selfClosingElements?"object"==typeof e?"[object Array]"===Object.prototype.toString.call(e)?o+=function(e,t,r){var n="";if(0===e.length)n+=h(e,t,r,!0);else for(var o=0;o<e.length;o++)n+=b(e[o],t,g(e[o]));return n}(e,r,n):e instanceof Date?(o+=h(e,r,n,!1),o+=t.jsDateUTC?e.toUTCString():e.toISOString(),o+=f(e,r)):v(e)>0||"number"==typeof e.__text||"boolean"==typeof e.__text||e.__text||e.__cdata?(o+=h(e,r,n,!1),o+=x(e),o+=f(e,r)):t.selfClosingElements?o+=h(e,r,n,!0):(o+=h(e,r,n,!1),o+=f(e,r)):(o+=h(e,r,n,!1),o+=y(e),o+=f(e,r)):o+=h(e,r,n,!0)),o}function x(e){var t="";if(v(e)>0)for(var r in e)if(!m(e,r)){var n=e[r];t+=b(n,r,g(n))}return t+y(e)}function w(r){if(void 0===r)return null;if("string"!=typeof r)return null;var n=null,o=null;if(e)o=(n=new e(t.xmldomOptions)).parseFromString(r,"text/xml");else if(window&&window.DOMParser){n=new window.DOMParser;var i=null;if(!window.ActiveXObject&&!("ActiveXObject"in window)&&document.all&&!document.addEventListener)try{i=n.parseFromString("INVALID","text/xml").childNodes[0].namespaceURI}catch(e){i=null}try{o=n.parseFromString(r,"text/xml"),null!==i&&o.getElementsByTagNameNS(i,"parsererror").length>0&&(o=null)}catch(e){o=null}}else 0===r.indexOf("<?")&&(r=r.substr(r.indexOf("?>")+2)),(o=new ActiveXObject("Microsoft.XMLDOM")).async="false",o.loadXML(r);return o}this.asArray=function(e){return null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?d(e):e},this.xml2dom=function(e){return w(e)},this.dom2js=function(e){return p(e,null)},this.js2dom=function(e){return w(this.js2xml(e))},this.xml2js=function(e){var t=w(e);return null!=t?this.dom2js(t):null},this.js2xml=function(e){return x(e)},this.getVersion=function(){return"3.4.4"}}})?r.apply(t,n):r)||(e.exports=o)}()},6245:(e,t,r)=>{var n={"./@/over.ts":5815,"./@/setProps.ts":35,"./anchor/index.ts":9634,"./array/index.ts":4292,"./audio/index.ts":7331,"./avoid/index.ts":8292,"./browser/index.ts":8705,"./cache/index.ts":3119,"./checks/index.ts":7026,"./color/index.ts":8598,"./console/index.ts":7424,"./console/mapped.ts":1585,"./cookie/index.ts":2057,"./coords/index.ts":9553,"./credits/index.ts":8527,"./date/index.ts":4459,"./disable/index.ts":2373,"./dispatch/index.ts":493,"./elements/index.ts":3906,"./events/index.ts":1434,"./form/index.ts":753,"./format/index.ts":4472,"./idb/index.ts":6668,"./imports/index.ts":4111,"./json/index.ts":21,"./load/index.ts":8907,"./logging/index.ts":4300,"./math/index.ts":3169,"./memory/index.ts":2084,"./objects/index.ts":6957,"./observer/index.ts":2553,"./path/index.ts":1236,"./promise/index.ts":984,"./sanitize/index.ts":128,"./screen/index.ts":6627,"./scrollbar/index.ts":5155,"./security/index.ts":2725,"./shortcut/index.ts":1765,"./socket/index.ts":8562,"./state/index.ts":1148,"./store/index.ts":6212,"./svg/index.ts":9011,"./system/index.ts":5698,"./terminal/index.ts":963,"./text/index.ts":2764,"./timer/index.ts":6584,"./tools/index.ts":3890,"./translators/index.ts":1938,"./triggers/index.ts":7822,"./types/index.ts":3656,"./ui/index.ts":4245,"./window/index.ts":3583};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=6245},477:()=>{},1635:(e,t,r)=>{"use strict";function n(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}r.d(t,{sH:()=>n}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},4787:e=>{"use strict";e.exports=JSON.parse('{"info":{"title":"List","description":"Complete list of tools"},"categories":["3dparty","system","financial","memory","numbers","time","path","file","forms","ui","other"]}')},1809:e=>{"use strict";e.exports=JSON.parse('{"100":{"code":100,"message":"Continue","description":"The server has received the request headers, and the client should proceed to send the request body."},"101":{"code":101,"message":"Switching Protocols","description":"The requester has asked the server to switch protocols."},"102":{"code":102,"message":"Processing","description":"This code indicates that the server has received and is processing the request, but no response is available yet. This prevents the client from timing out and assuming the request was lost."},"103":{"code":103,"message":"Early Hints","description":"Used to return some response headers before final HTTP message."},"200":{"code":200,"message":"OK","description":"The request is OK (this is the standard response for successful HTTP requests)."},"201":{"code":201,"message":"Created","description":"The request has been fulfilled, and a new resource is created."},"202":{"code":202,"message":"Accepted","description":"The request has been accepted for processing, but the processing has not been completed."},"203":{"code":203,"message":"Non-Authoritative Information","description":"The request has been successfully processed, but is returning information that may be from another source."},"204":{"code":204,"message":"No Content","description":"The request has been successfully processed, but is not returning any content."},"205":{"code":205,"message":"Reset Content","description":"The request has been successfully processed, but is not returning any content, and requires that the requester reset the document view."},"206":{"code":206,"message":"Partial Content","description":"The server is delivering only part of the resource due to a range header sent by the client."},"207":{"code":207,"message":"Multi-Status","description":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made."},"208":{"code":208,"message":"Already Reported","description":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again."},"218":{"code":218,"message":"This is fine (Apache Web Server)","description":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled."},"226":{"code":226,"message":"IM Used","description":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance."},"300":{"code":300,"message":"Multiple Choices","description":"A link list. The user can select a link and go to that location. Maximum five addresses."},"301":{"code":301,"message":"Moved Permanently","description":"The requested page has moved to a new URL."},"302":{"code":302,"message":"Found","description":"The requested page has moved temporarily to a new URL."},"303":{"code":303,"message":"See Other","description":"The requested page can be found under a different URL."},"304":{"code":304,"message":"Not Modified","description":"Indicates the requested page has not been modified since last requested."},"306":{"code":306,"message":"Switch Proxy","description":"No longer used. Originally meant \\"Subsequent requests should use the specified proxy.\\""},"307":{"code":307,"message":"Temporary Redirect","description":"The requested page has moved temporarily to a new URL."},"308":{"code":308,"message":"Resume Incomplete","description":"Used in the resumable requests proposal to resume aborted PUT or POST requests."},"400":{"code":400,"message":"Bad Request","description":"The request cannot be fulfilled due to bad syntax."},"401":{"code":401,"message":"Unauthorized","description":"The request was a legal request, but the server is refusing to respond to it. For use when authentication is possible but has failed or not yet been provided."},"402":{"code":402,"message":"Payment Required","description":"Not yet implemented by RFC standards, but reserved for future use."},"403":{"code":403,"message":"Forbidden","description":"The request was a legal request, but the server is refusing to respond to it."},"404":{"code":404,"message":"Not Found","description":"The requested page could not be found but may be available again in the future."},"405":{"code":405,"message":"Method Not Allowed","description":"A request was made of a page using a request method not supported by that page."},"406":{"code":406,"message":"Not Acceptable","description":"The server can only generate a response that is not accepted by the client."},"407":{"code":407,"message":"Proxy Authentication Required","description":"The client must first authenticate itself with the proxy."},"408":{"code":408,"message":"Request Timeout","description":"The server timed out waiting for the request."},"409":{"code":409,"message":"Conflict","description":"The request could not be completed because of a conflict in the request."},"410":{"code":410,"message":"Gone","description":"The requested page is no longer available."},"411":{"code":411,"message":"Length Required","description":"The \\"Content-Length\\" is not defined. The server will not accept the request without it."},"412":{"code":412,"message":"Precondition Failed","description":"The precondition given in the request evaluated to false by the server."},"413":{"code":413,"message":"Request Entity Too Large","description":"The server will not accept the request, because the request entity is too large."},"414":{"code":414,"message":"Request-URI Too Long","description":"The server will not accept the request, because the URL is too long. Occurs when you convert a POST request to a GET request with a long query information."},"415":{"code":415,"message":"Unsupported Media Type","description":"The server will not accept the request, because the media type is not supported."},"416":{"code":416,"message":"Requested Range Not Satisfiable","description":"The client has asked for a portion of the file, but the server cannot supply that portion."},"417":{"code":417,"message":"Expectation Failed","description":"The server cannot meet the requirements of the Expect request-header field."},"418":{"code":418,"message":"I\'m a teapot","description":"Any attempt to brew coffee with a teapot should result in the error code \\"418 I\'m a teapot\\". The resulting entity body MAY be short and stout."},"419":{"code":419,"message":"Page Expired (Laravel Framework)","description":"Used by the Laravel Framework when a CSRF Token is missing or expired."},"420":{"code":420,"message":"Method Failure (Spring Framework)","description":"A deprecated response used by the Spring Framework when a method has failed."},"421":{"code":421,"message":"Misdirected Request","description":"The request was directed at a server that is not able to produce a response (for example because a connection reuse)."},"422":{"code":422,"message":"Unprocessable Entity","description":"The request was well-formed but was unable to be followed due to semantic errors."},"423":{"code":423,"message":"Locked","description":"The resource that is being accessed is locked."},"424":{"code":424,"message":"Failed Dependency","description":"The request failed due to failure of a previous request (e.g., a PROPPATCH)."},"426":{"code":426,"message":"Upgrade Required","description":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field."},"428":{"code":428,"message":"Precondition Required","description":"The origin server requires the request to be conditional."},"429":{"code":429,"message":"Too Many Requests","description":"The user has sent too many requests in a given amount of time. Intended for use with rate limiting schemes."},"431":{"code":431,"message":"Request Header Fields Too Large","description":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large."},"440":{"code":440,"message":"Login Time-out","description":"The client\'s session has expired and must log in again. (IIS)"},"444":{"code":444,"message":"Connection Closed Without Response","description":"A non-standard status code used to instruct nginx to close the connection without sending a response to the client, most commonly used to deny malicious or malformed requests."},"449":{"code":449,"message":"Retry With","description":"The server cannot honour the request because the user has not provided the required information. (IIS)"},"450":{"code":450,"message":"Blocked by Windows Parental Controls","description":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage."},"451":{"code":451,"message":"Unavailable For Legal Reasons","description":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource."},"494":{"code":494,"message":"Request Header Too Large","description":"Used by nginx to indicate the client sent too large of a request or header line that is too long."},"495":{"code":495,"message":"SSL Certificate Error","description":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate."},"496":{"code":496,"message":"SSL Certificate Required","description":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided."},"497":{"code":497,"message":"HTTP Request Sent to HTTPS Port","description":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests."},"498":{"code":498,"message":"Invalid Token (Esri)","description":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token."},"499":{"code":499,"message":"Client Closed Request","description":"A non-standard status code introduced by nginx for the case when a client closes the connection while nginx is processing the request."},"500":{"code":500,"message":"Internal Server Error","description":"An error has occurred in a server side script, a no more specific message is suitable."},"501":{"code":501,"message":"Not Implemented","description":"The server either does not recognize the request method, or it lacks the ability to fulfill the request."},"502":{"code":502,"message":"Bad Gateway","description":"The server was acting as a gateway or proxy and received an invalid response from the upstream server."},"503":{"code":503,"message":"Service Unavailable","description":"The server is currently unavailable (overloaded or down)."},"504":{"code":504,"message":"Gateway Timeout","description":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server."},"505":{"code":505,"message":"HTTP Version Not Supported","description":"The server does not support the HTTP protocol version used in the request."},"506":{"code":506,"message":"Variant Also Negotiates","description":"Transparent content negotiation for the request results in a circular reference."},"507":{"code":507,"message":"Insufficient Storage","description":"The server is unable to store the representation needed to complete the request."},"508":{"code":508,"message":"Loop Detected","description":"The server detected an infinite loop while processing the request (sent instead of 208 Already Reported)."},"509":{"code":509,"message":"Bandwidth Limit Exceeded","description":"The server has exceeded the bandwidth specified by the server administrator; this is often used by shared hosting providers to limit the bandwidth of customers."},"510":{"code":510,"message":"Not Extended","description":"Further extensions to the request are required for the server to fulfil it."},"511":{"code":511,"message":"Network Authentication Required","description":"The client needs to authenticate to gain network access."},"520":{"code":520,"message":"Unknown Error","description":"The 520 error is used as a \\"catch-all response for when the origin server returns something unexpected\\", listing connection resets, large headers, and empty or invalid responses as common triggers."},"521":{"code":521,"message":"Web Server Is Down","description":"The origin server has refused the connection from Cloudflare."},"522":{"code":522,"message":"Connection Timed Out","description":"Cloudflare could not negotiate a TCP handshake with the origin server."},"523":{"code":523,"message":"Origin Is Unreachable","description":"Cloudflare could not reach the origin server; for example, if the DNS records for the origin server are incorrect."},"524":{"code":524,"message":"A Timeout Occurred","description":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response."},"525":{"code":525,"message":"SSL Handshake Failed","description":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server."},"526":{"code":526,"message":"Invalid SSL Certificate","description":"Used by Cloudflare and Cloud Foundry\'s gorouter to indicate failure to validate the SSL/TLS certificate that the origin server presented."},"527":{"code":527,"message":"Railgun Listener to Origin Error","description":"Error 527 indicates that the request timed out or failed after the WAN connection had been established."},"530":{"code":530,"message":"Origin DNS Error","description":"Error 530 indicates that the requested host name could not be resolved on the Cloudflare network to an origin server."},"598":{"code":598,"message":"Network Read Timeout Error","description":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy."},"1xx":{"code":"1xx","message":"Information","description":"1xx codes are often interim responses for sharing connection status information. Not intended for final request or response action."},"2xx":{"code":"2xx","message":"Successful","description":"2xx codes indicate successful responses usually this means the action requested by the client was received, understood and accepted successfully."},"3xx":{"code":"3xx","message":"Redirection","description":"3xx codes are a class of responses that suggest the User-Agent must follow another course of action to obtain the complete requested resource."},"4xx":{"code":"4xx","message":"Client Error","description":"4xx codes generally are error responses specifying an issue at the client’s end. Potentially a network issue."},"5xx":{"code":"5xx","message":"Server Error","description":"5xx error codes indicate that an error or unresolvable request occurred on the server side, whether that is a proxy or the origin host."}}')},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"dphelper","version":"1.8.21","description":"dphelper devtools | tools, store and state management for developers by Dario Passariello","copyright":"Dario Passariello","license":"MIT","folder":"/","main":"./index.js","typeID":0,"theme":"default","deprecated":false,"target":"web","targets":"web","preferGlobal":true,"language":{"en":{}},"app":{"displayName":"dphelper","port":3000,"code":"vulcano","relaseType":"gold","codeRelease":"dphelper","name":"dphelper","type":"beta","folder":"/","target":"web","proxy":{"api":{"tst":"http://localhost:5003/","dev":"https://a51.dev/","pro":"https://a51.dev/"}},"socket":{"url":{"tst":"wss://ws.a51.dev/","dev":"wss://ws.a51.dev/","pro":"wss://ws.a51.dev/"}},"url":{"dev":"http://localhost"},"cdn":{}},"homepage":"https://github.com/passariello/dphelper","author":{"name":"Dario Passariello","url":"https://github.com/passariello/","email":"dariopassariello@gmail.com"},"support":{"name":"Dario Passariello","url":"https://github.com/passariello/","email":"dariopassariello@gmail.com"},"company":{},"contributors":[{"name":"Dario Passariello","email":"dariopassarielloa@gmail.com"},{"name":"Valeria Cala Scaglitta","email":"valeriacalascaglitta@gmail.com"}],"workspaces":["mcp"],"npmName":"dphelper","npmFileMap":[{"basePath":"./dist/","files":["*.js"]}],"types":"./index.d.ts","typings":"./types/*","globals":{"dphelper":{},"jQuery":{},"$":{}},"browserslist":{"production":["last 2 Chrome major versions","last 2 Firefox major versions","last 2 Safari major versions","last 2 Edge major versions","last 2 Opera versions","last 2 iOS major versions","last 1 Explorer major version","last 1 ChromeAndroid version","last 1 UCAndroid version","last 1 Samsung version","last 1 OperaMini version","Firefox ESR",">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"keywords":["helper","dphelper","utils","tools","uuid","random","window","store","easy","pro","powerful","state","status","dpHelper","dp helper","helper","local","storage","indexeddb","idb","devtool","dario","passariello"],"repository":{"type":"git","url":"https://github.com/passariello/dphelper","help":"https://github.com/passariello/dphelper#readme"},"bugs":{"url":"https://github.com/passariello/dphelper/issues"},"funding":[{"type":"patreon","url":"https://www.patreon.com/passariello"}],"typing":["types/*"],"scripts":{"watch":"webpack --watch --progress --color --mode=development --config webpack.ts","make-dist":"webpack --progress --color --mode=production --config webpack.ts","-":"--------------","git":"git push -f -u && git add . && git commit -m \\"update\\" && git pull && git push -f","--":"-------------","tsc":"tsc -b","eslint":"eslint","sandworm":"sandworm","---":"------------","pack":"cd dist && npm pack","backup":"cd mcp/batch && backup.bat","update":"cd mcp/javascripts && node npmUpdate"},"engines":{"node":">=18"},"devDependencies":{"@types/webpack-env":"1.18.5","copy-webpack-plugin":"^12.0.2","crypto-js":"4.2.0","file-loader":"6.2.0","jquery":"3.7.1","terser-webpack-plugin":"^5.3.11","ts-loader":"^9.5.1","ts-node":"10.9.2","typescript":"5.7.2","webpack":"^5.97.1","webpack-cli":"5.1.4","webpack-dev-server":"^5.2.0","x2js":"3.4.4"}}')}},n={};function o(e){var t=n[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var i=n[e]={exports:{}};try{var a={id:e,module:i,factory:r[e],require:o};o.i.forEach((function(e){e(a)})),i=a.module,a.factory.call(i.exports,i,i.exports,a.require)}catch(e){throw i.error=e,e}return i.exports}o.m=r,o.c=n,o.i=[],o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.hu=e=>e+"."+o.h()+".hot-update.js",o.hmrF=()=>"index."+o.h()+".hot-update.json",o.h=()=>"3e4f9957d683e02bab03",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="dphelper:",o.l=(r,n,i,a)=>{if(e[r])e[r].push(n);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+i){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[n];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e,t,r,n={},i=o.c,a=[],s=[],l="idle",c=0,d=[];function u(e){l=e;for(var t=[],r=0;r<s.length;r++)t[r]=s[r].call(null,e);return Promise.all(t).then((function(){}))}function p(){0==--c&&u("ready").then((function(){if(0===c){var e=d;d=[];for(var t=0;t<e.length;t++)e[t]()}}))}function h(e){if("idle"!==l)throw new Error("check() is only allowed in idle status");return u("check").then(o.hmrM).then((function(r){return r?u("prepare").then((function(){var n=[];return t=[],Promise.all(Object.keys(o.hmrC).reduce((function(e,i){return o.hmrC[i](r.c,r.r,r.m,e,t,n),e}),[])).then((function(){return t=function(){return e?m(e):u("ready").then((function(){return n}))},0===c?t():new Promise((function(e){d.push((function(){e(t())}))}));var t}))})):u(v()?"ready":"idle").then((function(){return null}))}))}function f(e){return"ready"!==l?Promise.resolve().then((function(){throw new Error("apply() is only allowed in ready status (state: "+l+")")})):m(e)}function m(e){e=e||{},v();var n=t.map((function(t){return t(e)}));t=void 0;var o=n.map((function(e){return e.error})).filter(Boolean);if(o.length>0)return u("abort").then((function(){throw o[0]}));var i=u("dispose");n.forEach((function(e){e.dispose&&e.dispose()}));var a,s=u("apply"),l=function(e){a||(a=e)},c=[];return n.forEach((function(e){if(e.apply){var t=e.apply(l);if(t)for(var r=0;r<t.length;r++)c.push(t[r])}})),Promise.all([i,s]).then((function(){return a?u("fail").then((function(){throw a})):r?m(e).then((function(e){return c.forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e})):u("idle").then((function(){return c}))}))}function v(){if(r)return t||(t=[]),Object.keys(o.hmrI).forEach((function(e){r.forEach((function(r){o.hmrI[e](r,t)}))})),r=void 0,!0}o.hmrD=n,o.i.push((function(d){var m,v,g,y,b=d.module,x=function(t,r){var n=i[r];if(!n)return t;var o=function(o){if(n.hot.active){if(i[o]){var s=i[o].parents;-1===s.indexOf(r)&&s.push(r)}else a=[r],e=o;-1===n.children.indexOf(o)&&n.children.push(o)}else console.warn("[HMR] unexpected require("+o+") from disposed module "+r),a=[];return t(o)},s=function(e){return{configurable:!0,enumerable:!0,get:function(){return t[e]},set:function(r){t[e]=r}}};for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&"e"!==d&&Object.defineProperty(o,d,s(d));return o.e=function(e,r){return function(e){switch(l){case"ready":u("prepare");case"prepare":return c++,e.then(p,p),e;default:return e}}(t.e(e,r))},o}(d.require,d.id);b.hot=(m=d.id,v=b,y={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:g=e!==m,_requireSelf:function(){a=v.parents.slice(),e=g?void 0:m,o(m)},active:!0,accept:function(e,t,r){if(void 0===e)y._selfAccepted=!0;else if("function"==typeof e)y._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var n=0;n<e.length;n++)y._acceptedDependencies[e[n]]=t||function(){},y._acceptedErrorHandlers[e[n]]=r;else y._acceptedDependencies[e]=t||function(){},y._acceptedErrorHandlers[e]=r},decline:function(e){if(void 0===e)y._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)y._declinedDependencies[e[t]]=!0;else y._declinedDependencies[e]=!0},dispose:function(e){y._disposeHandlers.push(e)},addDisposeHandler:function(e){y._disposeHandlers.push(e)},removeDisposeHandler:function(e){var t=y._disposeHandlers.indexOf(e);t>=0&&y._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":t=[],Object.keys(o.hmrI).forEach((function(e){o.hmrI[e](m,t)})),u("ready");break;case"ready":Object.keys(o.hmrI).forEach((function(e){o.hmrI[e](m,t)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(m)}},check:h,apply:f,status:function(e){if(!e)return l;s.push(e)},addStatusHandler:function(e){s.push(e)},removeStatusHandler:function(e){var t=s.indexOf(e);t>=0&&s.splice(t,1)},data:n[m]},e=void 0,y),b.parents=a,b.children=[],a=[],d.require=x})),o.hmrC={},o.hmrI={}})(),o.p="/",(()=>{var e,t,r,n,i,a=o.hmrS_jsonp=o.hmrS_jsonp||{57:0},s={};function l(t,r){return e=r,new Promise(((e,r)=>{s[t]=e;var n=o.p+o.hu(t),i=new Error;o.l(n,(e=>{if(s[t]){s[t]=void 0;var n=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;i.message="Loading hot update chunk "+t+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r(i)}}))}))}function c(e){function s(e){for(var t=[e],r={},n=t.map((function(e){return{chain:[e],id:e}}));n.length>0;){var i=n.pop(),a=i.id,s=i.chain,c=o.c[a];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:a};if(c.hot._main)return{type:"unaccepted",chain:s,moduleId:a};for(var d=0;d<c.parents.length;d++){var u=c.parents[d],p=o.c[u];if(p){if(p.hot._declinedDependencies[a])return{type:"declined",chain:s.concat([u]),moduleId:a,parentId:u};-1===t.indexOf(u)&&(p.hot._acceptedDependencies[a]?(r[u]||(r[u]=[]),l(r[u],[a])):(delete r[u],t.push(u),n.push({chain:s.concat([u]),id:u})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:r}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];-1===e.indexOf(n)&&e.push(n)}}o.f&&delete o.f.jsonpHmr,t=void 0;var c={},d=[],u={},p=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var h in r)if(o.o(r,h)){var f=r[h],m=f?s(h):{type:"disposed",moduleId:h},v=!1,g=!1,y=!1,b="";switch(m.chain&&(b="\nUpdate propagation: "+m.chain.join(" -> ")),m.type){case"self-declined":e.onDeclined&&e.onDeclined(m),e.ignoreDeclined||(v=new Error("Aborted because of self decline: "+m.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(m),e.ignoreDeclined||(v=new Error("Aborted because of declined dependency: "+m.moduleId+" in "+m.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(m),e.ignoreUnaccepted||(v=new Error("Aborted because "+h+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(m),g=!0;break;case"disposed":e.onDisposed&&e.onDisposed(m),y=!0;break;default:throw new Error("Unexception type "+m.type)}if(v)return{error:v};if(g)for(h in u[h]=f,l(d,m.outdatedModules),m.outdatedDependencies)o.o(m.outdatedDependencies,h)&&(c[h]||(c[h]=[]),l(c[h],m.outdatedDependencies[h]));y&&(l(d,[m.moduleId]),u[h]=p)}r=void 0;for(var x,w=[],D=0;D<d.length;D++){var C=d[D],A=o.c[C];A&&(A.hot._selfAccepted||A.hot._main)&&u[C]!==p&&!A.hot._selfInvalidated&&w.push({module:C,require:A.hot._requireSelf,errorHandler:A.hot._selfAccepted})}return{dispose:function(){var e;n.forEach((function(e){delete a[e]})),n=void 0;for(var t,r=d.slice();r.length>0;){var i=r.pop(),s=o.c[i];if(s){var l={},u=s.hot._disposeHandlers;for(D=0;D<u.length;D++)u[D].call(null,l);for(o.hmrD[i]=l,s.hot.active=!1,delete o.c[i],delete c[i],D=0;D<s.children.length;D++){var p=o.c[s.children[D]];p&&(e=p.parents.indexOf(i))>=0&&p.parents.splice(e,1)}}}for(var h in c)if(o.o(c,h)&&(s=o.c[h]))for(x=c[h],D=0;D<x.length;D++)t=x[D],(e=s.children.indexOf(t))>=0&&s.children.splice(e,1)},apply:function(t){for(var r in u)o.o(u,r)&&(o.m[r]=u[r]);for(var n=0;n<i.length;n++)i[n](o);for(var a in c)if(o.o(c,a)){var s=o.c[a];if(s){x=c[a];for(var l=[],p=[],h=[],f=0;f<x.length;f++){var m=x[f],v=s.hot._acceptedDependencies[m],g=s.hot._acceptedErrorHandlers[m];if(v){if(-1!==l.indexOf(v))continue;l.push(v),p.push(g),h.push(m)}}for(var y=0;y<l.length;y++)try{l[y].call(null,x)}catch(r){if("function"==typeof p[y])try{p[y](r,{moduleId:a,dependencyId:h[y]})}catch(n){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:a,dependencyId:h[y],error:n,originalError:r}),e.ignoreErrored||(t(n),t(r))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:a,dependencyId:h[y],error:r}),e.ignoreErrored||t(r)}}}for(var b=0;b<w.length;b++){var D=w[b],C=D.module;try{D.require(C)}catch(r){if("function"==typeof D.errorHandler)try{D.errorHandler(r,{moduleId:C,module:o.c[C]})}catch(n){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:C,error:n,originalError:r}),e.ignoreErrored||(t(n),t(r))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:C,error:r}),e.ignoreErrored||t(r)}}return d}}}self.webpackHotUpdatedphelper=(t,n,a)=>{for(var l in n)o.o(n,l)&&(r[l]=n[l],e&&e.push(l));a&&i.push(a),s[t]&&(s[t](),s[t]=void 0)},o.hmrI.jsonp=function(e,t){r||(r={},i=[],n=[],t.push(c)),o.o(r,e)||(r[e]=o.m[e])},o.hmrC.jsonp=function(e,s,d,u,p,h){p.push(c),t={},n=s,r=d.reduce((function(e,t){return e[t]=!1,e}),{}),i=[],e.forEach((function(e){o.o(a,e)&&void 0!==a[e]?(u.push(l(e,h)),t[e]=!0):t[e]=!1})),o.f&&(o.f.jsonpHmr=function(e,r){t&&o.o(t,e)&&!t[e]&&(r.push(l(e)),t[e]=!0)})},o.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(o.p+o.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))}})(),o(7695)})();
42
+ const n={name:"socket",active:!0,subCommand:[{name:"info",version:"0.0.1",example:"dphelper.socket.info(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"start",version:"0.0.1",example:"dphelper.socket.start(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"conn",version:"0.0.1",example:"dphelper.socket.conn(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"connect",version:"0.0.1",example:"dphelper.socket.connect(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"open",version:"0.0.1",example:"dphelper.socket.open(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"send",version:"0.0.1",example:"dphelper.socket.send(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"receive",version:"0.0.1",example:"dphelper.socket.receive(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"keepAlive",version:"0.0.1",example:"dphelper.socket.keepAlive(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"check",version:"0.0.1",example:"dphelper.socket.check()",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Start check how many websocket conection are opens",subCommand:Array},{name:"list",version:"0.0.1",example:"dphelper.socket.list()",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"List of all websocket connection in realtime",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.socket={info:()=>"Created by Dario Passariello",start:(e,t)=>{dphelper.socket.connect(t),dphelper.socket.receive(e)},conn:(e,t)=>{if(!e||!t)return void console.debug("please use connect!");const r=new WebSocket(t);return r.binaryType="blob",r.onmessage=e=>{"reload"===e.data&&(setTimeout((()=>self.location.reload()),300),setTimeout((()=>{r.close(),self.location.reload()}),300))},[r,e]},connect:e=>{e&&dphelper.socket.open(dphelper.security.uuid.v5,e)},open:(e,t)=>{e&&(globalThis.websocket=dphelper.socket.conn(e,t),globalThis.websocket[0].onopen=()=>dphelper.log.reg(e+" connected"),globalThis.websocket[0].onclose=e=>dphelper.log.debug(e.wasClean?"Disconnected":"Connection break: "+(e.reason||e.code)),globalThis.websocket[0].onerror=e=>dphelper.log.error(e.message))},send:(e,t="reg")=>{var r;if(!(null===(r=globalThis.websocket)||void 0===r?void 0:r[1])||!e)return;const n=globalThis.websocket[0],o=globalThis.websocket[1],i=t?`{"${t}":"(${o}:${e})"}`:e;n.send(i)},ping:()=>{var e;if(!(null===(e=globalThis.websocket)||void 0===e?void 0:e[1]))return;const t=globalThis.websocket[0];globalThis.websocket[1],t.send('{"debug":"__ping__"}')},receive:(e=null)=>{var t;(null===(t=globalThis.websocket)||void 0===t?void 0:t[1])&&globalThis.websocket[0].addEventListener("message",(t=>{if(t.source===window&&t.origin===String(location.origin)){try{e&&$(e).prepend(dphelper.sanitize.html(Object.values(JSON.parse(t.data))[0]))}catch(e){}dphelper.log.reg(t.data)}}))},keepAlive:()=>{let e,t=globalThis.websocket[0];const r=(t=5e3)=>{e=setTimeout((()=>{dphelper.socket.ping()}),t)};t.onopen=function(){setInterval(r,3e4)},t.onmessage=function(t){try{return void("__ping__"===Object.values(JSON.parse(t.data))[0]&&clearTimeout(e))}catch(e){}}},check:()=>{const e=WebSocket.prototype.send;dphelper._list.sockets=[],WebSocket.prototype.send=function(...t){return-1===dphelper._list.sockets.indexOf(this)&&dphelper._list.sockets.push(this),e.call(this,...t)}},list:()=>dphelper._list.sockets},dphelper.setProps(dphelper,n,{lock:!0}),dphelper.socket.check()},1148:(e,t,r)=>{"use strict";r.r(t);const n={name:"state",active:!0,subCommand:[{name:"state",type:"function",version:"0.0.1",example:"to set: state.name = value; to get: state.name",description:"set and get state",author:"Dario Passariello",creationDate:"20190101",lastMod:"20240928",active:!0,subCommand:Array},{name:"list",type:"function",version:"0.0.1",example:"state.list",description:"show all states out of proxy",author:"Dario Passariello",creationDate:"20240607",lastMod:"20240607",active:!0,subCommand:Array},{name:"remove",type:"function",version:"0.0.1",example:"state.remove([state])",description:"remove a state",author:"Dario Passariello",creationDate:"20240607",lastMod:"20240607",active:!0,subCommand:Array}]};dphelper._list.scripts.push(n),(null===globalThis||void 0===globalThis?void 0:globalThis.state)||(globalThis.state={});const o=[],i={event(e){dphelper.dispatch.set(String(e),{detail:{name:String(e)}})},set:(e,t,r)=>(e[t]||o.push(t),i.event(t),e[t]=r,state.mex({property:t,value:r}),!0),get:(e,t)=>"object"===t&&null!==t?new Proxy(e[t],i):e[t]};Object.defineProperty(globalThis,"state",{value:new Proxy(state,i),enumerable:!1,configurable:!1}),Object.defineProperties(state,{list:{get(){console.info(Object.assign({},state))}},remove:{value(e){e in state?(delete state[e],console.warn(`State '${e}' deleted`)):console.error(`'${e}' not exist`)},writable:!1,configurable:!1},mex:{value(e){$("#dpConsole").append(`<span>\n <span style="color: green">State ${e.property} changed: <span style="color: yellow">"${e.value}"</span></span>\n </span>`)},writable:!1,configurable:!1}}),dphelper.setProps(globalThis,n,{lock:!1})},6212:(e,t,r)=>{"use strict";r.r(t);const n={name:"store",active:!0,subCommand:[{name:"get",version:"0.0.1",example:"store.get(..)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"set",version:"0.0.1",example:"store.set(..)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"delete",version:"0.0.1",example:"store.delete(..)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"clearAll",version:"0.0.1",example:"store.clearAll()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"quota",version:"0.0.1",example:"store.quota()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"size",version:"0.0.1",example:"store.size()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),Object.defineProperty(globalThis,"store",{value:new Proxy({},{}),enumerable:!1,configurable:!1}),Object.defineProperties(store,{get:{value(e){if(e)try{return"object"==typeof JSON.parse(localStorage.getItem(e))?JSON.parse(localStorage.getItem(e)):localStorage.getItem(e)}catch(e){console.error(e)}}},set:{value(e,t){if(e)try{null===typeof t?localStorage.setItem(e,JSON.stringify(null)):"object"==typeof t?localStorage.setItem(e,JSON.stringify(t)):"number"==typeof t?localStorage.setItem(e,JSON.stringify(Number(t))):"boolean"==typeof t?localStorage.setItem(e,JSON.stringify(Boolean(t))):"string"==typeof t?localStorage.setItem(e,JSON.stringify(String(t))):"function"==typeof t&&console.error("It's not secure to store functions...")}catch(e){console.error(e)}}},delete:{value(e){if(e)return localStorage.getItem(e)?(localStorage.removeItem(e),!0):void 0}},clearAll:{value:()=>(localStorage.clear(),!0)},quota:{value(){"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then((({usage:e,quota:t})=>{e&&t&&console.debug(`Using ${e/1024} out of ${t/1024} Mb.`)})).catch((e=>{}))}},size:{value(){let e,t=0;for(let r in localStorage)localStorage.hasOwnProperty(r)&&(e=localStorage[r].length,t+=e);return t}}}),dphelper.setProps(globalThis,n,{lock:!0})},9011:(e,t,r)=>{"use strict";r.r(t);const n={name:"svg",active:!0,subCommand:[{name:"init",version:"0.0.1",example:"dphelper.svg.init(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"check",version:"0.0.1",example:"dphelper.svg.check(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"update",version:"0.0.1",example:"dphelper.svg.update(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"getCurve",version:"0.0.1",example:"dphelper.svg.getCurve(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"getIntersection",version:"0.0.1",example:"dphelper.svg.getIntersection(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"setConnector",version:"0.0.1",example:"dphelper.svg.setConnector(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"removeConnection",version:"0.0.1",example:"dphelper.svg.removeConnection(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"makeScrollable",version:"0.0.1",example:"dphelper.svg.makeScrollable(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"makeDraggable",version:"0.0.1",example:"dphelper.svg.makeDraggable(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"toggle",version:"0.0.1",example:"dphelper.svg.toggle(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"convert",version:"0.0.1",example:"dphelper.svg.convert([Object])",author:"Dario Passariello",creationDate:"20190101",lastMod:"20240401",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.svg={init:function(e,t,r,n){$(e).find("svg")&&dphelper.svg_removeConnection(e),t=dphelper.svg.setConnector(t[0],t[1]),r=dphelper.svg.setConnector(r[0],r[1]);const o=e.getBoundingClientRect(),i="http://www.w3.org/2000/svg",a=10*e.offsetWidth,s=10*e.offsetHeight,l=document.createElementNS(i,"svg");l.setAttribute("xmlns",i),l.setAttributeNS(null,"id","pathConnection"),l.setAttributeNS(null,"viewBox","0 0 "+a+" "+s),l.setAttributeNS(null,"width",String(a)),l.setAttributeNS(null,"height",String(s)),l.style.display="block";const c=document.createElementNS(i,"rect");let d=t.getBoundingClientRect();c.setAttributeNS(null,"x",String(d.left-o.left)),c.setAttributeNS(null,"y",String(d.top-o.top)),c.setAttributeNS(null,"width",d.width),c.setAttributeNS(null,"height",d.height),l.appendChild(c);const u=document.createElementNS(i,"rect");d=r.getBoundingClientRect(),u.setAttributeNS(null,"x",String(d.left-o.left)),u.setAttributeNS(null,"y",String(d.top-o.top)),u.setAttributeNS(null,"width",d.width),u.setAttributeNS(null,"height",d.height),l.appendChild(u);const p=document.createElementNS(i,"path");p.setAttributeNS(null,"id","connection"),p.setAttributeNS(null,"marker-end","url(#head)"),l.appendChild(p),e.appendChild(l),dphelper.svg.update($(c)[0],$(u)[0],$("#connection")[0]),"function"==typeof n&&n(t,r)},check:()=>{if(void 0===dphelper.svg.check.supported){const e=document.body.appendChild(document.createElement("div"));e.innerHTML='<v:shape id="vml_flag1" adj="1" />';const t=e.firstChild;t.style.behavior="url(#default#VML)",dphelper.svg.check.supported=!t||"object"==typeof t.adj,e.parentNode.removeChild(e)}return dphelper.svg.check.supported},update:function(e,t,r){const n=parseFloat(e.getAttribute("x")),o=parseFloat(e.getAttribute("y")),i=parseFloat(t.getAttribute("x")),a=parseFloat(t.getAttribute("y")),s=parseFloat(e.getAttribute("width"))/2,l=parseFloat(e.getAttribute("height"))/2,c=parseFloat(t.getAttribute("width"))/2,d=parseFloat(t.getAttribute("height"))/2,u=n+s,p=o+l,h=i+c,f=a+d,m=h-u,v=f-p,g=dphelper.svg.getIntersection(m,v,u,p,s,l),y=dphelper.svg.getIntersection(-m,-v,h,f,c,d),b=y[0]-g[0],x=dphelper.svg.getCurve(g,y,b);r.setAttributeNS(null,"d","M"+u+","+p+x+h+","+f)},getCurve:function(e,t,r){const n=r/2;return" C"+(n+e[0])+","+e[1]+" "+(t[0]-n)+","+t[1]+" "},getIntersection:function(e,t,r,n,o,i){return Math.abs(t/e)<i/o?[r+(e>0?o:-o),n+t*o/Math.abs(e)]:[r+e*i/Math.abs(t),n+(t>0?i:-i)]},setConnector:function(e,t){let r;const n=$('<span class="connector"></span>');switch($(e).css("position","relative"),n.css({position:"absolute",width:"5px",height:"5px"}),t){case"top":r={left:"50%",top:"2.5px",marginLeft:"2.5px"};break;case"right":r={top:"50%",right:"2.5px",marginTop:"-2.5px"};break;case"bottom":r={left:"50%",bottom:"-2.5px",marginLeft:"2.5px"};break;case"left":r={top:"50%",left:"-2.5px",marginTop:"-2.5px"};break;default:r={}}return n.css(r),$(e).append(n),$(n)[0]},removeConnection:function(e){$(e).find("svg#pathConnection").each((function(e,t){$(t).remove()}))},makeScrollable:function(e,t,r,n,o,i){const a=e.getBoundingClientRect(),s=[r,n],l=s.length,c=[o,i],d=[];for(let e=0;e<l;e++)d[e]=s[e].getBoundingClientRect(),c[e].setAttributeNS(null,"x",d[e].left-a.left),c[e].setAttributeNS(null,"y",d[e].top-a.top),c[e].setAttributeNS(null,"width",d[e].width),c[e].setAttributeNS(null,"height",d[e].height);dphelper.svg.update($(o)[0],$(i)[0],$("#connection")[0])},makeDraggable:function(e){const t=e.target;function r(r){const n=t.getScreenCTM();return{x:(e.clientX-n.e)/n.a,y:(e.clientY-n.f)/n.d}}let n,o;t.addEventListener("mousedown",(function(e){e.target.classList.contains("draggable")&&(n=e.target,o=r(),o.x-=parseFloat(n.getAttributeNS(null,"x")),o.y-=parseFloat(n.getAttributeNS(null,"y")))})),t.addEventListener("mousemove",(function(e){if(n){const e=r();n.setAttributeNS(null,"x",e.x-o.x),n.setAttributeNS(null,"y",e.y-o.y),dphelper.svg.update()}})),t.addEventListener("mouseup",(function(e){n=null}))},toggle:function(e,t,r,n){$(e.target).prop("checked")&&$(r).length&&$(n).length?(dphelper.cookie.set({name:`${$(e.target).attr("id")}`,value:1,time:365}),dphelper.svg_initConnection(t[0],[$(r)[0],"right"],[$(n)[0],"left"],(function(e,r){$("#parts-left-body").on("scroll",(function(n){dphelper.svg.makeScrollable($(t)[0],$("#parts-left-body")[0],$(e)[0],$(r)[0],$("#parts svg rect")[0],$("#parts svg rect")[1])}))}))):(dphelper.svg_removeConnection(t),$("#parts-left-body").off("scroll"),dphelper.cookie.set({name:`${$(e.target).attr("id")}`,value:0,time:365}))},convert:({children:e,active:t=!0,size:r=[1920,1080],fit:n=["100%","100%"],preserveAspectRatio:o="none",style:i=`width:${n[0]}; height:${n[1]}`,zoom:a=1})=>{if(!e)return"Please pass ID of element for SVG conversion";if(t){const t=$(e).clone(),s=`\n <svg\n viewBox="0 0 ${r[0]} ${r[1]}"\n preserveAspectRatio="${o}"\n xmlns="http://www.w3.org/2000/svg"\n style="${i}; zoom:${a}"\n >\n <foreignObject\n x="0"\n y="0"\n width="${n[0]}"\n height="${n[1]}"\n style="${i}; zoom:${a}"\n >\n </foreignObject>\n </svg >\n `;$(e).html(s).find("foreignObject").html(t)}}},dphelper.setProps(dphelper,n,{lock:!0}),dphelper.svg.check()},5698:(e,t,r)=>{"use strict";r.r(t);const n={name:"system",active:!0,subCommand:[{name:"multiSplit",version:"0.0.1",example:"dphelper.system.multiSplit()",author:"Dario Passariello",creationDate:"20231121",lastMod:"20231121",type:"system",active:!0,description:"Run only one time when you load your App ... extend the .split with array as argument (example.split([',', ':', ';', '?', '/'])[0])",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.system={multiSplit:()=>{const e=String.prototype.split;String.prototype.split=function(){if(arguments[0].length>0&&"[object Array]"==Object.prototype.toString.call(arguments[0]))return function(e,t){for(var r=t[0],n=1;n<t.length;++n)e=e.split(t[n]).join(r);return e.split(r)}(this,arguments[0]);const t=arguments;return e.apply(this,t)}}},dphelper.setProps(dphelper,n,{lock:!0})},963:(e,t,r)=>{"use strict";r.r(t);const n={name:"terminal",active:!0,subCommand:[{name:"terminal",version:"0.0.1",example:"dphelper.terminal([dom])",author:"Dario Passariello",creationDate:"20240525",lastMod:"20240525",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.terminal=function(e){if(!e)throw Error("Parent dom element required!");let t=!1,r=console.log,n=console.info,o=console.warn,i=console.error;const a=document.getElementById("terminal"),s=function(e){var t=Array.prototype.slice.call(arguments[1]).join(" ");t=e===l.WARN?'<font color="#FF6600">* WARN: '+t:e===l.ERR?'<font color="#FF0000">* ERR: '+t:"* "+t,this.domElement.innerHTML+=t+"<br/>",a&&(a.scrollTop=a.scrollHeight)},l={LOG:0,INFO:1,WARN:2,ERR:3};this.autoScroll=!0,this.disableConsoleLogging=!1;var c=document.createElement("div");c.id="debugConsole",e.appendChild(c),this.domElement=c,this.initKeyMappings=function(){t?console.warn("DebugConsole: keys already mapped!"):(state.toggleConsole=function(){this.visible=!this.visible}.bind(this),t=!0)},this.overrideConsole=function(){console.log=function(){this.disableConsoleLogging||(s.call(this,l.LOG),r.apply(console))}.bind(this),console.info=function(){state.disableConsoleLogging||(s.call(this,l.INFO),n.apply(console))}.bind(this),console.warn=function(){state.disableConsoleLogging||(s.call(this,l.WARN),o.apply(console))}.bind(this),console.error=function(){state.disableConsoleLogging||(s.call(this,l.ERR),i.apply(console))}.bind(this),onerror=function(e,t,r){var n=[`${e} in <a href="${t}" target='_blank'>${null==t?void 0:t.split("/").pop()}</a>: ${r}`];return console.error(n.join("")),!1}},this.overrideConsole(),this.clear=function(){this.domElement.innerHTML=""},Object.defineProperties(this,{visible:{get:function(){return""===this.domElement.style.display},set:function(e){e&&(this.domElement.style.display="",this.domElement.scrollTop=this.domElement.scrollHeight)},configurable:!0},top:{get:function(){return this.domElement.style.top},set:function(e){this.domElement.style.top=e}},left:{get:function(){return this.domElement.style.left},set:function(e){this.domElement.style.left=e}},bottom:{get:function(){return this.domElement.style.bottom},set:function(e){this.domElement.style.bottom=e}},right:{get:function(){return this.domElement.style.right},set:function(e){this.domElement.style.right=e}},width:{get:function(){return this.domElement.style.width},set:function(e){this.domElement.style.width=e}},height:{get:function(){return this.domElement.style.height},set:function(e){this.domElement.style.height=e}}})},dphelper.setProps(dphelper,n,{lock:!0})},2764:(e,t,r)=>{"use strict";r.r(t);const n={name:"text",active:!0,subCommand:[{name:"trim",version:"0.0.1",example:"dphelper.text.trim(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"capitalize",version:"0.0.1",example:"dphelper.text.capitalize(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"lower",version:"0.0.1",example:"dphelper.text.lower(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"upper",version:"0.0.1",example:"dphelper.text.upper(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"nl2br",version:"0.0.1",example:"dphelper.text.nl2br(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"sanitize",version:"0.0.1",example:"dphelper.text.sanitize(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"camelCase",version:"0.0.1",example:"dphelper.text.camelCase(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:[{name:"toSpace",version:"0.0.1",example:"dphelper.text.camelCase.toSpace(...)",type:"function",active:!0,description:"",subCommand:Array},{name:"toUnderscore",version:"0.0.1",example:"dphelper.text.camelCase.toUnderscore(...)",type:"function",active:!0,description:"",subCommand:Array}]},{name:"fitContainer",version:"0.0.1",example:"dphelper.font.fitContainer([element])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.text={trim:(e,t,r,n)=>e.charAt(0)===t?e.substring(r,n):e,capitalize:e=>e.toLowerCase().replace(/\b\w/g,(function(e){return e.toUpperCase()})),lower:e=>e.toLowerCase(),upper:e=>e.toUpperCase(),nl2br:e=>e.replace(/(?:\r\n|\r|\n)/g,"<br>"),sanitize:e=>e.replace(/<(|\/|[^>\bi]|\/[^>bi]|[^/>][^>]+|\/[^>][^>]+)>/g,""),camelCase:{toSpace:e=>e.replace(/([A-Z])/g," $1").replace(/^./,(function(e){return e.toUpperCase()})),toUnderscore:e=>e.replace(/\.?([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,"")},fitContainer:e=>{e&&dphelper.addListenerMulti(window,"load resize",(()=>{!function(e){const t=document.querySelectorAll(e),r=t.length;if(!(r<=0))for(let e=0;e<r;e++){const r=.05*t[e].offsetWidth;t[e].style.fontSize=r+"px"}}(e)}))}},dphelper.setProps(dphelper,n,{lock:!0})},6584:(e,t,r)=>{"use strict";r.r(t);const n={name:"timer",active:!0,subCommand:[{name:"sleep",version:"0.0.1",example:"dphelper.timer.sleep(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"percentage",version:"0.0.1",example:"dphelper.timer.percentage(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.timer={sleep:e=>new Promise((t=>setTimeout(t,e))),percentage:(e,t)=>{function r(e){const t=e.split(":");return 3600*t[0]+60*t[1]+t[2]}return(100*r(e)/r(t)).toFixed(2)}},dphelper.setProps(dphelper,n,{lock:!0})},3890:(e,t,r)=>{"use strict";r.r(t);var n=r(1635);const o={name:"tools",active:!0,subCommand:[{name:"getip",description:"Get the IP of connection",example:"dphelper.tools.getip()",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20241020",type:"function",active:!0,subCommand:Array},{name:"byteSize",description:"Give you the total in 'Kb', 'Mb', 'Gb', 'Tb', 'Pb', 'Eb', 'Zb', 'Yb' starting from bytes",example:"dphelper.tools.byteSize(bytes)",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"hashPass",description:"",example:"dphelper.tools.hashPass(number, total)",version:"0.0.1",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,subCommand:Array},{name:"zIndex",description:"",example:"dphelper.tools.zIndex()",version:"0.0.1",author:"Dario Passariello",creationDate:"20240807",lastMod:"20240807",type:"function",active:!0,subCommand:Array},{name:"zeroToFalse",description:"",example:"dphelper.tools.zeroToFalse(num)",version:"0.0.1",author:"Dario Passariello",creationDate:"20240924",lastMod:"20240924",type:"function",active:!0,subCommand:Array}]};dphelper._list.scripts.push(o),dphelper.tools={getip:()=>(0,n.sH)(void 0,void 0,void 0,(function*(){return fetch("https://api.ipify.org?format=json").then((e=>e.json())).then((e=>globalThis.getip=btoa(null==e?void 0:e.ip)))})),getIp:()=>(0,n.sH)(void 0,void 0,void 0,(function*(){return yield atob(dphelper.tools.getip)})),byteSize:e=>{const t=1024;if(Math.abs(e)<t)return e+"b";const r=["Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"];let n=-1;do{e/=t,++n}while(Math.abs(e)>=t&&n<r.length-1);return e.toFixed(1)+r[n]},zIndex:()=>[...$("body *")].map((e=>parseFloat(getComputedStyle(e).zIndex))).reduce(((e,t)=>t>e?t:e),1),zeroToFalse:e=>0!==e&&e},dphelper.setProps(dphelper,o,{lock:!0})},1938:(e,t,r)=>{"use strict";r.r(t);const n={name:"translators",active:!0,subCommand:[{name:"convertMatrixToScale",version:"0.0.1",example:"dphelper.translators.convertMatrixToScale({value})",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.translators={convertMatrixToScale:e=>{const t=(e=(e=(e=e.split("(")[1]).split(")")[0]).split(","))[0],r=e[1];return Math.sqrt(t*t+r*r)}},dphelper.setProps(dphelper,n,{lock:!0})},7822:(e,t,r)=>{"use strict";r.r(t);const n={name:"trigger",active:!0,subCommand:[{name:"click",version:"0.0.1",example:"dphelper.trigger.click(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"change",version:"0.0.1",example:"dphelper.trigger.change([element])",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"input",version:"0.0.1",example:"dphelper.trigger.input([element])",author:"Dario Passariello",creationDate:"20241001",lastMod:"20241001",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.trigger={click:e=>{const t=document.querySelector(e);t&&t.click()},change:e=>{const t=document.querySelector(e),r=new Event("__"+e,{bubbles:!0});r.simulated=!0,dphelper.dispatch.set("__"+e,r),t.dispatchEvent(r)},input:e=>{dphelper.trigger.change(e)}},dphelper.setProps(dphelper,n,{lock:!0})},3656:(e,t,r)=>{"use strict";r.r(t);const n={name:"type",active:!0,subCommand:[{name:"of",version:"0.0.1",example:"dphelper.type.of(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"instOfObj",version:"0.0.1",example:"dphelper.type.instOfObj(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isNaN",version:"0.0.1",example:"dphelper.type.isNaN(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array},{name:"isBool",version:"0.0.1",example:"dphelper.type.isBool(...)",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.type={of:e=>typeof e,instOfObj:e=>e instanceof Object,isNaN:e=>function(t){return!e(t)},isBool:e=>!e||null==e.length||"1"===e},dphelper.setProps(dphelper,n,{lock:!0})},4245:()=>{},3583:(e,t,r)=>{"use strict";r.r(t);const n={name:"window",active:!0,subCommand:[{name:"enhancement",version:"0.0.1",example:"dphelper.window.enhancement()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Use only one time at end of application",subCommand:Array},{name:"center",version:"0.0.1",example:"dphelper.window.center({ url, title, name, w, h })",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Use to center popup to screen",subCommand:Array},{name:"onBeforeUnLoad",version:"0.0.1",example:"dphelper.window.onBeforeUnLoad()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"message during leave the site",subCommand:Array},{name:"purge",version:"0.0.1",example:"dphelper.window.purge()",author:"Dario Passariello",creationDate:"20210101",lastMod:"20210101",type:"function",active:!0,description:"Purge from memory",subCommand:Array},{name:"stopZoomWheel",version:"0.0.1",example:"dphelper.window.stopZoomWheel(e)",author:"Dario Passariello",creationDate:"20230527",lastMod:"20230527",type:"function",active:!0,description:"Stop Zoom Generated by Mouse Wheel",subCommand:Array},{name:"setZoom",version:"0.0.1",example:"dphelper.window.setZoom([el,1])",author:"Dario Passariello",creationDate:"20240727",lastMod:"20220727",type:"function",active:!0,description:"",subCommand:Array},{name:"getZoom",version:"0.0.1",example:"dphelper.window.getZoom([el])",author:"Dario Passariello",creationDate:"20240727",lastMod:"20220727",type:"function",active:!0,description:"",subCommand:Array}]};dphelper._list.scripts.push(n),dphelper.window={enhancement:()=>{globalThis.offScreenBuffering="auto",dphelper.window.animationframe()},animationframe:()=>{const e=globalThis;return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){e.setTimeout(t,1e3/120)}},center:({url:e,title:t,name:r,w:n,h:o})=>{const i=void 0!==screenLeft?screenLeft:screenX,a=void 0!==screenTop?screenTop:screenY,s=innerWidth||(document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width),l=innerHeight||(document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height),c=s/screen.availWidth,d=open(e,t,`\n scrollbars=yes,\n width=${n/c},\n height=${o/c},\n top=${(l-o)/2/c+a},\n left=${(s-n)/2/c+i}\n `);onfocus=()=>null==d?void 0:d.focus()},onBeforeUnLoad:e=>{let t=!1,r=!1;const n="You have made some changes which you might want to save.",o=e=>(e.preventDefault(),n),i=document.querySelector(e.target);i&&i.addEventListener("input",(t=>{""!==e.target.value?addEventListener("beforeunload",o,{capture:!0}):removeEventListener("beforeunload",o,{capture:!0})})),!1===r&&(document.body.addEventListener("click",(r=>{if("IMG"===e.target.tagName&&!0===t){if(!0===confirm(n))return t=!1;r.preventDefault()}})),r=!0),addEventListener("popstate",(e=>{if(!0===t)return!0===confirm(n)?t=!1:(e.stopImmediatePropagation(),e.preventDefault(),n)})),onbeforeunload=e=>{}},purge:(e=document,t=1e4)=>{setTimeout((()=>{if(!e)return null;let t=e.attributes;if(t){const r=t.length;for(let n=0;n<r;n+=1){const r=t[n].name;"function"==typeof e[r]&&(e[r]=null),void 0===e[r]&&(e[r]=null)}}if(t=e.childNodes,t){const r=t.length;for(let t=0;t<r;t+=1)dphelper.purge(e.childNodes[t])}}),t)},stopZoomWheel:e=>{addEventListener("wheel",(e=>{e.ctrlKey&&e.preventDefault()}),{passive:!1}),addEventListener("keydown",(e=>{const t=dphelper.event.keys(e);["+","-","="].includes(t.key)&&t.ctrl&&e.preventDefault()}))},setZoom:(e="html",t=1)=>(t<0&&(t=1),$(e).css("zoom",t),`New zoom value: ${100*t}% (css: ${t})`),getZoom:(e="html")=>Number($(e).css("zoom"))},dphelper.setProps(dphelper,n,{lock:!0})},8343:function(e,t){var r,n,o;!function(){"use strict";n=[],void 0===(o="function"==typeof(r=function(e){return function(t){(t=t||{}).arrayAccessForm=t.arrayAccessForm||"none",t.emptyNodeForm=t.emptyNodeForm||"text",t.jsAttributeFilter=t.jsAttributeFilter,t.jsAttributeConverter=t.jsAttributeConverter,t.attributeConverters=t.attributeConverters||[],t.datetimeAccessFormPaths=t.datetimeAccessFormPaths||[],t.arrayAccessFormPaths=t.arrayAccessFormPaths||[],t.xmldomOptions=t.xmldomOptions||{},void 0===t.enableToStringFunc&&(t.enableToStringFunc=!0),void 0===t.skipEmptyTextNodesForObj&&(t.skipEmptyTextNodesForObj=!0),void 0===t.stripWhitespaces&&(t.stripWhitespaces=!0),void 0===t.useDoubleQuotes&&(t.useDoubleQuotes=!0),void 0===t.ignoreRoot&&(t.ignoreRoot=!1),void 0===t.escapeMode&&(t.escapeMode=!0),void 0===t.attributePrefix&&(t.attributePrefix="_"),void 0===t.selfClosingElements&&(t.selfClosingElements=!0),void 0===t.keepCData&&(t.keepCData=!1),void 0===t.keepText&&(t.keepText=!1),void 0===t.jsDateUTC&&(t.jsDateUTC=!1),function(){function e(e){var t=String(e);return 1===t.length&&(t="0"+t),t}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|^\n+|(\s|\n)+$/g,"")}),"function"!=typeof Date.prototype.toISOString&&(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"})}();var r=1,n=3,o=4,i=8,a=9;function s(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!==t||(t=e.nodeName),t}function l(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"):e}function c(e,r,n){if("property"===t.arrayAccessForm&&(e[r]instanceof Array?e[r+"_asArray"]=e[r]:e[r+"_asArray"]=[e[r]]),!(e[r]instanceof Array)&&t.arrayAccessFormPaths.length>0){for(var o=!1,i=0;i<t.arrayAccessFormPaths.length;i++){var a=t.arrayAccessFormPaths[i];if("string"==typeof a){if(a===n){o=!0;break}}else if(a instanceof RegExp){if(a.test(n)){o=!0;break}}else if("function"==typeof a&&a(r,n)){o=!0;break}}o&&(e[r]=[e[r]])}}function d(e){var t=e.split(/[-T:+Z]/g),r=new Date(t[0],t[1]-1,t[2]),n=t[5].split(".");if(r.setHours(t[3],t[4],n[0]),n.length>1&&r.setMilliseconds(n[1]),t[6]&&t[7]){var o=60*t[6]+Number(t[7]);o=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*o:o),r.setMinutes(r.getMinutes()-o-r.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(r=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())));return r}function u(e,r){for(var n={__cnt:0},o=e.childNodes,a=0;a<o.length;a++){var l=o.item(a),u=s(l);l.nodeType!==i&&(n.__cnt++,null==n[u]?(n[u]=p(l,r+"."+u),c(n,u,r+"."+u)):(n[u]instanceof Array||(n[u]=[n[u]],c(n,u,r+"."+u)),n[u][n[u].length]=p(l,r+"."+u)))}for(var h=0;h<e.attributes.length;h++){var f=e.attributes.item(h);n.__cnt++;for(var m=f.value,v=0;v<t.attributeConverters.length;v++){var g=t.attributeConverters[v];g.test.call(null,f.name,f.value)&&(m=g.convert.call(null,f.name,f.value))}n[t.attributePrefix+f.name]=m}var y=e.prefix;return y&&(n.__cnt++,n.__prefix=y),n["#text"]&&(n.__text=n["#text"],n.__text instanceof Array&&(n.__text=n.__text.join("\n")),t.escapeMode&&(n.__text=n.__text.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&amp;/g,"&")),t.stripWhitespaces&&(n.__text=n.__text.trim()),delete n["#text"],"property"===t.arrayAccessForm&&delete n["#text_asArray"],n.__text=function(e,r,n){if(t.datetimeAccessFormPaths.length>0)for(var o=n.split(".#")[0],i=0;i<t.datetimeAccessFormPaths.length;i++){var a=t.datetimeAccessFormPaths[i];if("string"==typeof a){if(a===o)return d(e)}else if(a instanceof RegExp){if(a.test(o))return d(e)}else if("function"==typeof a&&a(o))return d(e)}return e}(n.__text,0,r+".#text")),n.hasOwnProperty("#cdata-section")&&(n.__cdata=n["#cdata-section"],delete n["#cdata-section"],"property"===t.arrayAccessForm&&delete n["#cdata-section_asArray"]),1===n.__cnt&&n.__text&&!t.keepText?n=n.__text:0===n.__cnt&&"text"===t.emptyNodeForm?n="":n.__cnt>1&&void 0!==n.__text&&t.skipEmptyTextNodesForObj&&(t.stripWhitespaces&&""===n.__text||""===n.__text.trim())&&delete n.__text,delete n.__cnt,t.keepCData||n.hasOwnProperty("__text")||!n.hasOwnProperty("__cdata")||1!==Object.keys(n).length?(t.enableToStringFunc&&(n.__text||n.__cdata)&&(n.toString=function(){return(this.__text?this.__text:"")+(this.__cdata?this.__cdata:"")}),n):n.__cdata?n.__cdata:""}function p(e,i){return e.nodeType===a?function(e){for(var n={},o=e.childNodes,i=0;i<o.length;i++){var a=o.item(i);if(a.nodeType===r){var l=s(a);t.ignoreRoot?n=p(a,l):n[l]=p(a,l)}}return n}(e):e.nodeType===r?u(e,i):e.nodeType===n||e.nodeType===o?e.nodeValue:null}function h(e,r,n,o){var i="<"+(e&&e.__prefix?e.__prefix+":":"")+r;if(n)for(var a=0;a<n.length;a++){var s=n[a],c=e[s];t.escapeMode&&(c=l(c)),i+=" "+s.substr(t.attributePrefix.length)+"=",t.useDoubleQuotes?i+='"'+c+'"':i+="'"+c+"'"}return i+(o?" />":">")}function f(e,t){return"</"+(e&&e.__prefix?e.__prefix+":":"")+t+">"}function m(e,r){return!!("property"===t.arrayAccessForm&&(n=r.toString(),o="_asArray",-1!==n.indexOf(o,n.length-o.length))||0===r.toString().indexOf(t.attributePrefix)||0===r.toString().indexOf("__")||e[r]instanceof Function);var n,o}function v(e){var t=0;if(e instanceof Object)for(var r in e)m(e,r)||t++;return t}function g(e){var r=[];if(e instanceof Object)for(var n in e)-1===n.toString().indexOf("__")&&0===n.toString().indexOf(t.attributePrefix)&&r.push(n);return r}function y(e){var r="";return e instanceof Object?r+=function(e){var r="";return e.__cdata&&(r+="<![CDATA["+e.__cdata+"]]>"),(e.__text||"number"==typeof e.__text||"boolean"==typeof e.__text)&&(t.escapeMode?r+=l(e.__text):r+=e.__text),r}(e):null!==e&&(t.escapeMode?r+=l(e):r+=e),r}function b(e,r,n){var o="";return t.jsAttributeFilter&&t.jsAttributeFilter.call(null,r,e)||(t.jsAttributeConverter&&(e=t.jsAttributeConverter.call(null,r,e)),null!=e&&""!==e||!t.selfClosingElements?"object"==typeof e?"[object Array]"===Object.prototype.toString.call(e)?o+=function(e,t,r){var n="";if(0===e.length)n+=h(e,t,r,!0);else for(var o=0;o<e.length;o++)n+=b(e[o],t,g(e[o]));return n}(e,r,n):e instanceof Date?(o+=h(e,r,n,!1),o+=t.jsDateUTC?e.toUTCString():e.toISOString(),o+=f(e,r)):v(e)>0||"number"==typeof e.__text||"boolean"==typeof e.__text||e.__text||e.__cdata?(o+=h(e,r,n,!1),o+=x(e),o+=f(e,r)):t.selfClosingElements?o+=h(e,r,n,!0):(o+=h(e,r,n,!1),o+=f(e,r)):(o+=h(e,r,n,!1),o+=y(e),o+=f(e,r)):o+=h(e,r,n,!0)),o}function x(e){var t="";if(v(e)>0)for(var r in e)if(!m(e,r)){var n=e[r];t+=b(n,r,g(n))}return t+y(e)}function w(r){if(void 0===r)return null;if("string"!=typeof r)return null;var n=null,o=null;if(e)o=(n=new e(t.xmldomOptions)).parseFromString(r,"text/xml");else if(window&&window.DOMParser){n=new window.DOMParser;var i=null;if(!window.ActiveXObject&&!("ActiveXObject"in window)&&document.all&&!document.addEventListener)try{i=n.parseFromString("INVALID","text/xml").childNodes[0].namespaceURI}catch(e){i=null}try{o=n.parseFromString(r,"text/xml"),null!==i&&o.getElementsByTagNameNS(i,"parsererror").length>0&&(o=null)}catch(e){o=null}}else 0===r.indexOf("<?")&&(r=r.substr(r.indexOf("?>")+2)),(o=new ActiveXObject("Microsoft.XMLDOM")).async="false",o.loadXML(r);return o}this.asArray=function(e){return null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?d(e):e},this.xml2dom=function(e){return w(e)},this.dom2js=function(e){return p(e,null)},this.js2dom=function(e){return w(this.js2xml(e))},this.xml2js=function(e){var t=w(e);return null!=t?this.dom2js(t):null},this.js2xml=function(e){return x(e)},this.getVersion=function(){return"3.4.4"}}})?r.apply(t,n):r)||(e.exports=o)}()},6245:(e,t,r)=>{var n={"./@/over.ts":5815,"./@/setProps.ts":35,"./anchor/index.ts":9634,"./array/index.ts":4292,"./audio/index.ts":7331,"./avoid/index.ts":8292,"./browser/index.ts":8705,"./cache/index.ts":3119,"./checks/index.ts":7026,"./color/index.ts":8598,"./console/index.ts":7424,"./console/mapped.ts":1585,"./cookie/index.ts":2057,"./coords/index.ts":9553,"./credits/index.ts":8527,"./date/index.ts":4459,"./disable/index.ts":2373,"./dispatch/index.ts":493,"./elements/index.ts":3906,"./events/index.ts":1434,"./form/index.ts":753,"./format/index.ts":4472,"./idb/index.ts":6668,"./imports/index.ts":4111,"./json/index.ts":21,"./load/index.ts":8907,"./logging/index.ts":4300,"./math/index.ts":3169,"./memory/index.ts":2084,"./objects/index.ts":6957,"./observer/index.ts":2553,"./path/index.ts":1236,"./promise/index.ts":984,"./sanitize/index.ts":128,"./screen/index.ts":6627,"./scrollbar/index.ts":5155,"./security/index.ts":2725,"./shortcut/index.ts":1765,"./socket/index.ts":8562,"./state/index.ts":1148,"./store/index.ts":6212,"./svg/index.ts":9011,"./system/index.ts":5698,"./terminal/index.ts":963,"./text/index.ts":2764,"./timer/index.ts":6584,"./tools/index.ts":3890,"./translators/index.ts":1938,"./triggers/index.ts":7822,"./types/index.ts":3656,"./ui/index.ts":4245,"./window/index.ts":3583};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=6245},477:()=>{},1635:(e,t,r)=>{"use strict";function n(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}r.d(t,{sH:()=>n}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},4787:e=>{"use strict";e.exports=JSON.parse('{"info":{"title":"List","description":"Complete list of tools"},"categories":["3dparty","system","financial","memory","numbers","time","path","file","forms","ui","other"]}')},1809:e=>{"use strict";e.exports=JSON.parse('{"100":{"code":100,"message":"Continue","description":"The server has received the request headers, and the client should proceed to send the request body."},"101":{"code":101,"message":"Switching Protocols","description":"The requester has asked the server to switch protocols."},"102":{"code":102,"message":"Processing","description":"This code indicates that the server has received and is processing the request, but no response is available yet. This prevents the client from timing out and assuming the request was lost."},"103":{"code":103,"message":"Early Hints","description":"Used to return some response headers before final HTTP message."},"200":{"code":200,"message":"OK","description":"The request is OK (this is the standard response for successful HTTP requests)."},"201":{"code":201,"message":"Created","description":"The request has been fulfilled, and a new resource is created."},"202":{"code":202,"message":"Accepted","description":"The request has been accepted for processing, but the processing has not been completed."},"203":{"code":203,"message":"Non-Authoritative Information","description":"The request has been successfully processed, but is returning information that may be from another source."},"204":{"code":204,"message":"No Content","description":"The request has been successfully processed, but is not returning any content."},"205":{"code":205,"message":"Reset Content","description":"The request has been successfully processed, but is not returning any content, and requires that the requester reset the document view."},"206":{"code":206,"message":"Partial Content","description":"The server is delivering only part of the resource due to a range header sent by the client."},"207":{"code":207,"message":"Multi-Status","description":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made."},"208":{"code":208,"message":"Already Reported","description":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again."},"218":{"code":218,"message":"This is fine (Apache Web Server)","description":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled."},"226":{"code":226,"message":"IM Used","description":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance."},"300":{"code":300,"message":"Multiple Choices","description":"A link list. The user can select a link and go to that location. Maximum five addresses."},"301":{"code":301,"message":"Moved Permanently","description":"The requested page has moved to a new URL."},"302":{"code":302,"message":"Found","description":"The requested page has moved temporarily to a new URL."},"303":{"code":303,"message":"See Other","description":"The requested page can be found under a different URL."},"304":{"code":304,"message":"Not Modified","description":"Indicates the requested page has not been modified since last requested."},"306":{"code":306,"message":"Switch Proxy","description":"No longer used. Originally meant \\"Subsequent requests should use the specified proxy.\\""},"307":{"code":307,"message":"Temporary Redirect","description":"The requested page has moved temporarily to a new URL."},"308":{"code":308,"message":"Resume Incomplete","description":"Used in the resumable requests proposal to resume aborted PUT or POST requests."},"400":{"code":400,"message":"Bad Request","description":"The request cannot be fulfilled due to bad syntax."},"401":{"code":401,"message":"Unauthorized","description":"The request was a legal request, but the server is refusing to respond to it. For use when authentication is possible but has failed or not yet been provided."},"402":{"code":402,"message":"Payment Required","description":"Not yet implemented by RFC standards, but reserved for future use."},"403":{"code":403,"message":"Forbidden","description":"The request was a legal request, but the server is refusing to respond to it."},"404":{"code":404,"message":"Not Found","description":"The requested page could not be found but may be available again in the future."},"405":{"code":405,"message":"Method Not Allowed","description":"A request was made of a page using a request method not supported by that page."},"406":{"code":406,"message":"Not Acceptable","description":"The server can only generate a response that is not accepted by the client."},"407":{"code":407,"message":"Proxy Authentication Required","description":"The client must first authenticate itself with the proxy."},"408":{"code":408,"message":"Request Timeout","description":"The server timed out waiting for the request."},"409":{"code":409,"message":"Conflict","description":"The request could not be completed because of a conflict in the request."},"410":{"code":410,"message":"Gone","description":"The requested page is no longer available."},"411":{"code":411,"message":"Length Required","description":"The \\"Content-Length\\" is not defined. The server will not accept the request without it."},"412":{"code":412,"message":"Precondition Failed","description":"The precondition given in the request evaluated to false by the server."},"413":{"code":413,"message":"Request Entity Too Large","description":"The server will not accept the request, because the request entity is too large."},"414":{"code":414,"message":"Request-URI Too Long","description":"The server will not accept the request, because the URL is too long. Occurs when you convert a POST request to a GET request with a long query information."},"415":{"code":415,"message":"Unsupported Media Type","description":"The server will not accept the request, because the media type is not supported."},"416":{"code":416,"message":"Requested Range Not Satisfiable","description":"The client has asked for a portion of the file, but the server cannot supply that portion."},"417":{"code":417,"message":"Expectation Failed","description":"The server cannot meet the requirements of the Expect request-header field."},"418":{"code":418,"message":"I\'m a teapot","description":"Any attempt to brew coffee with a teapot should result in the error code \\"418 I\'m a teapot\\". The resulting entity body MAY be short and stout."},"419":{"code":419,"message":"Page Expired (Laravel Framework)","description":"Used by the Laravel Framework when a CSRF Token is missing or expired."},"420":{"code":420,"message":"Method Failure (Spring Framework)","description":"A deprecated response used by the Spring Framework when a method has failed."},"421":{"code":421,"message":"Misdirected Request","description":"The request was directed at a server that is not able to produce a response (for example because a connection reuse)."},"422":{"code":422,"message":"Unprocessable Entity","description":"The request was well-formed but was unable to be followed due to semantic errors."},"423":{"code":423,"message":"Locked","description":"The resource that is being accessed is locked."},"424":{"code":424,"message":"Failed Dependency","description":"The request failed due to failure of a previous request (e.g., a PROPPATCH)."},"426":{"code":426,"message":"Upgrade Required","description":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field."},"428":{"code":428,"message":"Precondition Required","description":"The origin server requires the request to be conditional."},"429":{"code":429,"message":"Too Many Requests","description":"The user has sent too many requests in a given amount of time. Intended for use with rate limiting schemes."},"431":{"code":431,"message":"Request Header Fields Too Large","description":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large."},"440":{"code":440,"message":"Login Time-out","description":"The client\'s session has expired and must log in again. (IIS)"},"444":{"code":444,"message":"Connection Closed Without Response","description":"A non-standard status code used to instruct nginx to close the connection without sending a response to the client, most commonly used to deny malicious or malformed requests."},"449":{"code":449,"message":"Retry With","description":"The server cannot honour the request because the user has not provided the required information. (IIS)"},"450":{"code":450,"message":"Blocked by Windows Parental Controls","description":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage."},"451":{"code":451,"message":"Unavailable For Legal Reasons","description":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource."},"494":{"code":494,"message":"Request Header Too Large","description":"Used by nginx to indicate the client sent too large of a request or header line that is too long."},"495":{"code":495,"message":"SSL Certificate Error","description":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate."},"496":{"code":496,"message":"SSL Certificate Required","description":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided."},"497":{"code":497,"message":"HTTP Request Sent to HTTPS Port","description":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests."},"498":{"code":498,"message":"Invalid Token (Esri)","description":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token."},"499":{"code":499,"message":"Client Closed Request","description":"A non-standard status code introduced by nginx for the case when a client closes the connection while nginx is processing the request."},"500":{"code":500,"message":"Internal Server Error","description":"An error has occurred in a server side script, a no more specific message is suitable."},"501":{"code":501,"message":"Not Implemented","description":"The server either does not recognize the request method, or it lacks the ability to fulfill the request."},"502":{"code":502,"message":"Bad Gateway","description":"The server was acting as a gateway or proxy and received an invalid response from the upstream server."},"503":{"code":503,"message":"Service Unavailable","description":"The server is currently unavailable (overloaded or down)."},"504":{"code":504,"message":"Gateway Timeout","description":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server."},"505":{"code":505,"message":"HTTP Version Not Supported","description":"The server does not support the HTTP protocol version used in the request."},"506":{"code":506,"message":"Variant Also Negotiates","description":"Transparent content negotiation for the request results in a circular reference."},"507":{"code":507,"message":"Insufficient Storage","description":"The server is unable to store the representation needed to complete the request."},"508":{"code":508,"message":"Loop Detected","description":"The server detected an infinite loop while processing the request (sent instead of 208 Already Reported)."},"509":{"code":509,"message":"Bandwidth Limit Exceeded","description":"The server has exceeded the bandwidth specified by the server administrator; this is often used by shared hosting providers to limit the bandwidth of customers."},"510":{"code":510,"message":"Not Extended","description":"Further extensions to the request are required for the server to fulfil it."},"511":{"code":511,"message":"Network Authentication Required","description":"The client needs to authenticate to gain network access."},"520":{"code":520,"message":"Unknown Error","description":"The 520 error is used as a \\"catch-all response for when the origin server returns something unexpected\\", listing connection resets, large headers, and empty or invalid responses as common triggers."},"521":{"code":521,"message":"Web Server Is Down","description":"The origin server has refused the connection from Cloudflare."},"522":{"code":522,"message":"Connection Timed Out","description":"Cloudflare could not negotiate a TCP handshake with the origin server."},"523":{"code":523,"message":"Origin Is Unreachable","description":"Cloudflare could not reach the origin server; for example, if the DNS records for the origin server are incorrect."},"524":{"code":524,"message":"A Timeout Occurred","description":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response."},"525":{"code":525,"message":"SSL Handshake Failed","description":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server."},"526":{"code":526,"message":"Invalid SSL Certificate","description":"Used by Cloudflare and Cloud Foundry\'s gorouter to indicate failure to validate the SSL/TLS certificate that the origin server presented."},"527":{"code":527,"message":"Railgun Listener to Origin Error","description":"Error 527 indicates that the request timed out or failed after the WAN connection had been established."},"530":{"code":530,"message":"Origin DNS Error","description":"Error 530 indicates that the requested host name could not be resolved on the Cloudflare network to an origin server."},"598":{"code":598,"message":"Network Read Timeout Error","description":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy."},"1xx":{"code":"1xx","message":"Information","description":"1xx codes are often interim responses for sharing connection status information. Not intended for final request or response action."},"2xx":{"code":"2xx","message":"Successful","description":"2xx codes indicate successful responses usually this means the action requested by the client was received, understood and accepted successfully."},"3xx":{"code":"3xx","message":"Redirection","description":"3xx codes are a class of responses that suggest the User-Agent must follow another course of action to obtain the complete requested resource."},"4xx":{"code":"4xx","message":"Client Error","description":"4xx codes generally are error responses specifying an issue at the client’s end. Potentially a network issue."},"5xx":{"code":"5xx","message":"Server Error","description":"5xx error codes indicate that an error or unresolvable request occurred on the server side, whether that is a proxy or the origin host."}}')},8330:e=>{"use strict";e.exports=JSON.parse('{"name":"dphelper","version":"1.8.22","description":"dphelper devtools | tools, store and state management for developers by Dario Passariello","copyright":"Dario Passariello","license":"MIT","folder":"/","main":"./index.js","typeID":0,"theme":"default","deprecated":false,"target":"web","targets":"web","preferGlobal":true,"language":{"en":{}},"app":{"displayName":"dphelper","port":3000,"code":"vulcano","relaseType":"gold","codeRelease":"dphelper","name":"dphelper","type":"beta","folder":"/","target":"web","proxy":{"api":{"tst":"http://localhost:5003/","dev":"https://a51.dev/","pro":"https://a51.dev/"}},"socket":{"url":{"tst":"wss://ws.a51.dev/","dev":"wss://ws.a51.dev/","pro":"wss://ws.a51.dev/"}},"url":{"dev":"http://localhost"},"cdn":{}},"homepage":"https://github.com/passariello/dphelper","author":{"name":"Dario Passariello","url":"https://github.com/passariello/","email":"dariopassariello@gmail.com"},"support":{"name":"Dario Passariello","url":"https://github.com/passariello/","email":"dariopassariello@gmail.com"},"company":{},"contributors":[{"name":"Dario Passariello","email":"dariopassarielloa@gmail.com"},{"name":"Valeria Cala Scaglitta","email":"valeriacalascaglitta@gmail.com"}],"workspaces":["mcp"],"npmName":"dphelper","npmFileMap":[{"basePath":"./dist/","files":["*.js"]}],"types":"./index.d.ts","typings":"./types/*","globals":{"dphelper":{},"jQuery":{},"$":{}},"browserslist":{"production":["last 2 Chrome major versions","last 2 Firefox major versions","last 2 Safari major versions","last 2 Edge major versions","last 2 Opera versions","last 2 iOS major versions","last 1 Explorer major version","last 1 ChromeAndroid version","last 1 UCAndroid version","last 1 Samsung version","last 1 OperaMini version","Firefox ESR",">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"keywords":["helper","dphelper","utils","tools","uuid","random","window","store","easy","pro","powerful","state","status","dpHelper","dp helper","helper","local","storage","indexeddb","idb","devtool","dario","passariello"],"repository":{"type":"git","url":"https://github.com/passariello/dphelper","help":"https://github.com/passariello/dphelper#readme"},"bugs":{"url":"https://github.com/passariello/dphelper/issues"},"funding":[{"type":"patreon","url":"https://www.patreon.com/passariello"}],"typing":["types/*"],"scripts":{"watch":"webpack --watch --progress --color --mode=development --config webpack.ts","make-dist":"webpack --progress --color --mode=production --config webpack.ts","-":"--------------","git":"git push -f -u && git add . && git commit -m \\"update\\" && git pull && git push -f","--":"-------------","tsc":"tsc -b","eslint":"eslint","sandworm":"sandworm","---":"------------","pack":"cd dist && npm pack","backup":"cd mcp/batch && backup.bat","update":"cd mcp/javascripts && node npmUpdate"},"engines":{"node":">=18"},"devDependencies":{"@types/webpack-env":"1.18.5","copy-webpack-plugin":"^12.0.2","crypto-js":"4.2.0","file-loader":"6.2.0","jquery":"3.7.1","terser-webpack-plugin":"^5.3.11","ts-loader":"^9.5.1","ts-node":"10.9.2","typescript":"5.7.2","webpack":"^5.97.1","webpack-cli":"5.1.4","webpack-dev-server":"^5.2.0","x2js":"3.4.4"}}')}},n={};function o(e){var t=n[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var i=n[e]={exports:{}};try{var a={id:e,module:i,factory:r[e],require:o};o.i.forEach((function(e){e(a)})),i=a.module,a.factory.call(i.exports,i,i.exports,a.require)}catch(e){throw i.error=e,e}return i.exports}o.m=r,o.c=n,o.i=[],o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.hu=e=>e+"."+o.h()+".hot-update.js",o.hmrF=()=>"index."+o.h()+".hot-update.json",o.h=()=>"2f0c20e24ffd2f4f27fd",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="dphelper:",o.l=(r,n,i,a)=>{if(e[r])e[r].push(n);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+i){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[n];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e,t,r,n={},i=o.c,a=[],s=[],l="idle",c=0,d=[];function u(e){l=e;for(var t=[],r=0;r<s.length;r++)t[r]=s[r].call(null,e);return Promise.all(t).then((function(){}))}function p(){0==--c&&u("ready").then((function(){if(0===c){var e=d;d=[];for(var t=0;t<e.length;t++)e[t]()}}))}function h(e){if("idle"!==l)throw new Error("check() is only allowed in idle status");return u("check").then(o.hmrM).then((function(r){return r?u("prepare").then((function(){var n=[];return t=[],Promise.all(Object.keys(o.hmrC).reduce((function(e,i){return o.hmrC[i](r.c,r.r,r.m,e,t,n),e}),[])).then((function(){return t=function(){return e?m(e):u("ready").then((function(){return n}))},0===c?t():new Promise((function(e){d.push((function(){e(t())}))}));var t}))})):u(v()?"ready":"idle").then((function(){return null}))}))}function f(e){return"ready"!==l?Promise.resolve().then((function(){throw new Error("apply() is only allowed in ready status (state: "+l+")")})):m(e)}function m(e){e=e||{},v();var n=t.map((function(t){return t(e)}));t=void 0;var o=n.map((function(e){return e.error})).filter(Boolean);if(o.length>0)return u("abort").then((function(){throw o[0]}));var i=u("dispose");n.forEach((function(e){e.dispose&&e.dispose()}));var a,s=u("apply"),l=function(e){a||(a=e)},c=[];return n.forEach((function(e){if(e.apply){var t=e.apply(l);if(t)for(var r=0;r<t.length;r++)c.push(t[r])}})),Promise.all([i,s]).then((function(){return a?u("fail").then((function(){throw a})):r?m(e).then((function(e){return c.forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e})):u("idle").then((function(){return c}))}))}function v(){if(r)return t||(t=[]),Object.keys(o.hmrI).forEach((function(e){r.forEach((function(r){o.hmrI[e](r,t)}))})),r=void 0,!0}o.hmrD=n,o.i.push((function(d){var m,v,g,y,b=d.module,x=function(t,r){var n=i[r];if(!n)return t;var o=function(o){if(n.hot.active){if(i[o]){var s=i[o].parents;-1===s.indexOf(r)&&s.push(r)}else a=[r],e=o;-1===n.children.indexOf(o)&&n.children.push(o)}else console.warn("[HMR] unexpected require("+o+") from disposed module "+r),a=[];return t(o)},s=function(e){return{configurable:!0,enumerable:!0,get:function(){return t[e]},set:function(r){t[e]=r}}};for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&"e"!==d&&Object.defineProperty(o,d,s(d));return o.e=function(e,r){return function(e){switch(l){case"ready":u("prepare");case"prepare":return c++,e.then(p,p),e;default:return e}}(t.e(e,r))},o}(d.require,d.id);b.hot=(m=d.id,v=b,y={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:g=e!==m,_requireSelf:function(){a=v.parents.slice(),e=g?void 0:m,o(m)},active:!0,accept:function(e,t,r){if(void 0===e)y._selfAccepted=!0;else if("function"==typeof e)y._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var n=0;n<e.length;n++)y._acceptedDependencies[e[n]]=t||function(){},y._acceptedErrorHandlers[e[n]]=r;else y._acceptedDependencies[e]=t||function(){},y._acceptedErrorHandlers[e]=r},decline:function(e){if(void 0===e)y._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)y._declinedDependencies[e[t]]=!0;else y._declinedDependencies[e]=!0},dispose:function(e){y._disposeHandlers.push(e)},addDisposeHandler:function(e){y._disposeHandlers.push(e)},removeDisposeHandler:function(e){var t=y._disposeHandlers.indexOf(e);t>=0&&y._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":t=[],Object.keys(o.hmrI).forEach((function(e){o.hmrI[e](m,t)})),u("ready");break;case"ready":Object.keys(o.hmrI).forEach((function(e){o.hmrI[e](m,t)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(m)}},check:h,apply:f,status:function(e){if(!e)return l;s.push(e)},addStatusHandler:function(e){s.push(e)},removeStatusHandler:function(e){var t=s.indexOf(e);t>=0&&s.splice(t,1)},data:n[m]},e=void 0,y),b.parents=a,b.children=[],a=[],d.require=x})),o.hmrC={},o.hmrI={}})(),o.p="/",(()=>{var e,t,r,n,i,a=o.hmrS_jsonp=o.hmrS_jsonp||{57:0},s={};function l(t,r){return e=r,new Promise(((e,r)=>{s[t]=e;var n=o.p+o.hu(t),i=new Error;o.l(n,(e=>{if(s[t]){s[t]=void 0;var n=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;i.message="Loading hot update chunk "+t+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r(i)}}))}))}function c(e){function s(e){for(var t=[e],r={},n=t.map((function(e){return{chain:[e],id:e}}));n.length>0;){var i=n.pop(),a=i.id,s=i.chain,c=o.c[a];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:a};if(c.hot._main)return{type:"unaccepted",chain:s,moduleId:a};for(var d=0;d<c.parents.length;d++){var u=c.parents[d],p=o.c[u];if(p){if(p.hot._declinedDependencies[a])return{type:"declined",chain:s.concat([u]),moduleId:a,parentId:u};-1===t.indexOf(u)&&(p.hot._acceptedDependencies[a]?(r[u]||(r[u]=[]),l(r[u],[a])):(delete r[u],t.push(u),n.push({chain:s.concat([u]),id:u})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:r}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];-1===e.indexOf(n)&&e.push(n)}}o.f&&delete o.f.jsonpHmr,t=void 0;var c={},d=[],u={},p=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var h in r)if(o.o(r,h)){var f=r[h],m=f?s(h):{type:"disposed",moduleId:h},v=!1,g=!1,y=!1,b="";switch(m.chain&&(b="\nUpdate propagation: "+m.chain.join(" -> ")),m.type){case"self-declined":e.onDeclined&&e.onDeclined(m),e.ignoreDeclined||(v=new Error("Aborted because of self decline: "+m.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(m),e.ignoreDeclined||(v=new Error("Aborted because of declined dependency: "+m.moduleId+" in "+m.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(m),e.ignoreUnaccepted||(v=new Error("Aborted because "+h+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(m),g=!0;break;case"disposed":e.onDisposed&&e.onDisposed(m),y=!0;break;default:throw new Error("Unexception type "+m.type)}if(v)return{error:v};if(g)for(h in u[h]=f,l(d,m.outdatedModules),m.outdatedDependencies)o.o(m.outdatedDependencies,h)&&(c[h]||(c[h]=[]),l(c[h],m.outdatedDependencies[h]));y&&(l(d,[m.moduleId]),u[h]=p)}r=void 0;for(var x,w=[],D=0;D<d.length;D++){var C=d[D],A=o.c[C];A&&(A.hot._selfAccepted||A.hot._main)&&u[C]!==p&&!A.hot._selfInvalidated&&w.push({module:C,require:A.hot._requireSelf,errorHandler:A.hot._selfAccepted})}return{dispose:function(){var e;n.forEach((function(e){delete a[e]})),n=void 0;for(var t,r=d.slice();r.length>0;){var i=r.pop(),s=o.c[i];if(s){var l={},u=s.hot._disposeHandlers;for(D=0;D<u.length;D++)u[D].call(null,l);for(o.hmrD[i]=l,s.hot.active=!1,delete o.c[i],delete c[i],D=0;D<s.children.length;D++){var p=o.c[s.children[D]];p&&(e=p.parents.indexOf(i))>=0&&p.parents.splice(e,1)}}}for(var h in c)if(o.o(c,h)&&(s=o.c[h]))for(x=c[h],D=0;D<x.length;D++)t=x[D],(e=s.children.indexOf(t))>=0&&s.children.splice(e,1)},apply:function(t){for(var r in u)o.o(u,r)&&(o.m[r]=u[r]);for(var n=0;n<i.length;n++)i[n](o);for(var a in c)if(o.o(c,a)){var s=o.c[a];if(s){x=c[a];for(var l=[],p=[],h=[],f=0;f<x.length;f++){var m=x[f],v=s.hot._acceptedDependencies[m],g=s.hot._acceptedErrorHandlers[m];if(v){if(-1!==l.indexOf(v))continue;l.push(v),p.push(g),h.push(m)}}for(var y=0;y<l.length;y++)try{l[y].call(null,x)}catch(r){if("function"==typeof p[y])try{p[y](r,{moduleId:a,dependencyId:h[y]})}catch(n){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:a,dependencyId:h[y],error:n,originalError:r}),e.ignoreErrored||(t(n),t(r))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:a,dependencyId:h[y],error:r}),e.ignoreErrored||t(r)}}}for(var b=0;b<w.length;b++){var D=w[b],C=D.module;try{D.require(C)}catch(r){if("function"==typeof D.errorHandler)try{D.errorHandler(r,{moduleId:C,module:o.c[C]})}catch(n){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:C,error:n,originalError:r}),e.ignoreErrored||(t(n),t(r))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:C,error:r}),e.ignoreErrored||t(r)}}return d}}}self.webpackHotUpdatedphelper=(t,n,a)=>{for(var l in n)o.o(n,l)&&(r[l]=n[l],e&&e.push(l));a&&i.push(a),s[t]&&(s[t](),s[t]=void 0)},o.hmrI.jsonp=function(e,t){r||(r={},i=[],n=[],t.push(c)),o.o(r,e)||(r[e]=o.m[e])},o.hmrC.jsonp=function(e,s,d,u,p,h){p.push(c),t={},n=s,r=d.reduce((function(e,t){return e[t]=!1,e}),{}),i=[],e.forEach((function(e){o.o(a,e)&&void 0!==a[e]?(u.push(l(e,h)),t[e]=!0):t[e]=!1})),o.f&&(o.f.jsonpHmr=function(e,r){t&&o.o(t,e)&&!t[e]&&(r.push(l(e)),t[e]=!0)})},o.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(o.p+o.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))}})(),o(7695)})();