/* https://github.com/jas-/jQuery.AJAX */
(function(a){a.fn.AJAX=function(b){var f={formID:a(this),appID:"jQuery.AJAX",cache:true,context:a(this),type:"json",clickjack:"deny",xss:true,proxy:"http",strict:true,callback:function(){},preCallback:function(){},errCallback:function(){}};var e={init:function(p){var n=a.extend({},f,p);a("#"+n.formID.attr("id")).on("submit",function(q){q.preventDefault();var o=c(l(n));a.ajax({form:n.formID.attr("id"),url:n.formID.attr("action"),type:n.formID.attr("method"),data:o,context:n.context,cache:n.cache,crossDomain:(n.type==="jsonp")?true:false,dataType:n.type,beforeSend:function(r){r.setRequestHeader("X-Alt-Referer",n.appID);r.setRequestHeader("X-Forwarded-Proto",n.proxy);r.setRequestHeader("X-Frame-Options",n.clickjack);if(n.xss){r.setRequestHeader("X-XSS-Protection","1;mode=block")}if(n.formID.serialize()){r.setRequestHeader("Content-MD5",h.encode(i(o)))}else{r.setRequestHeader("Content-MD5",h.encode(i(p.appID)))}((n.preCallback)&&(a.isFunction(n.preCallback)))?n.preCallback(r):false},success:function(r,s,t){((n.strict)&&(n.strict==true)&&(j(t,n)==true)&&(n.callback)&&(a.isFunction(n.callback)))?n.callback.call(r):((n.strict)&&(n.strict==true)&&(j(t,n)==false)&&(n.errCallback)&&(a.isFunction(n.errCallback)))?n.errCallback.call(r):console.log(r)},error:function(t,r,s){((n.errCallback)&&(a.isFunction(n.errCallback)))?n.errCallback.call(t,r,s):false}});return true})}};var j=function(p,n){return((m(p.getResponseHeader("X-Alt-Referer")))&&(m(p.getResponseHeader("X-Forwarded-Proto")))&&(m(p.getResponseHeader("X-Frame-Options")))&&(m(p.getResponseHeader("X-XSS-Protection"))))?d(p,n):false};var d=function(q,p){var n=(p.xss)?"1;mode=block":"0";return((q.getResponseHeader("X-Alt-Referer")==p.appID)&&(q.getResponseHeader("X-Forwarded-Proto")==p.proxy)&&(q.getResponseHeader("X-Frame-Options")==p.clickjack)&&(q.getResponseHeader("X-XSS-Protection")==n))?true:false};var i=function(Q){function U(x,v){return(x<<v)|(x>>>(32-v))}function T(H,x){var ai,v,G,I,F;G=(H&2147483648);I=(x&2147483648);ai=(H&1073741824);v=(x&1073741824);F=(H&1073741823)+(x&1073741823);if(ai&v){return(F^2147483648^G^I)}if(ai|v){if(F&1073741824){return(F^3221225472^G^I)}else{return(F^1073741824^G^I)}}else{return(F^G^I)}}function B(v,G,F){return(v&G)|((~v)&F)}function A(v,G,F){return(v&F)|(G&(~F))}function z(v,G,F){return(v^G^F)}function w(v,G,F){return(G^(v|(~F)))}function D(G,F,aj,ai,v,H,I){G=T(G,T(T(B(F,aj,ai),v),I));return T(U(G,H),F)}function o(G,F,aj,ai,v,H,I){G=T(G,T(T(A(F,aj,ai),v),I));return T(U(G,H),F)}function P(G,F,aj,ai,v,H,I){G=T(G,T(T(z(F,aj,ai),v),I));return T(U(G,H),F)}function C(G,F,aj,ai,v,H,I){G=T(G,T(T(w(F,aj,ai),v),I));return T(U(G,H),F)}function n(H){var aj;var G=H.length;var F=G+8;var x=(F-(F%64))/64;var ai=(x+1)*16;var ak=Array(ai-1);var v=0;var I=0;while(I<G){aj=(I-(I%4))/4;v=(I%4)*8;ak[aj]=(ak[aj]|(H.charCodeAt(I)<<v));I++}aj=(I-(I%4))/4;v=(I%4)*8;ak[aj]=ak[aj]|(128<<v);ak[ai-2]=G<<3;ak[ai-1]=G>>>29;return ak}function N(F){var x="",G="",H,v;for(v=0;v<=3;v++){H=(F>>>(v*8))&255;G="0"+H.toString(16);x=x+G.substr(G.length-2,2)}return x}function S(v){return k.encode(v)}var O=Array();var Y,q,R,E,p,ah,ag,af,ae;var ab=7,Z=12,W=17,V=22;var M=5,L=9,K=14,J=20;var y=4,u=11,t=16,s=23;var ad=6,ac=10,aa=15,X=21;string=S(Q);O=n(string);ah=1732584193;ag=4023233417;af=2562383102;ae=271733878;for(Y=0;Y<O.length;Y+=16){q=ah;R=ag;E=af;p=ae;ah=D(ah,ag,af,ae,O[Y+0],ab,3614090360);ae=D(ae,ah,ag,af,O[Y+1],Z,3905402710);af=D(af,ae,ah,ag,O[Y+2],W,606105819);ag=D(ag,af,ae,ah,O[Y+3],V,3250441966);ah=D(ah,ag,af,ae,O[Y+4],ab,4118548399);ae=D(ae,ah,ag,af,O[Y+5],Z,1200080426);af=D(af,ae,ah,ag,O[Y+6],W,2821735955);ag=D(ag,af,ae,ah,O[Y+7],V,4249261313);ah=D(ah,ag,af,ae,O[Y+8],ab,1770035416);ae=D(ae,ah,ag,af,O[Y+9],Z,2336552879);af=D(af,ae,ah,ag,O[Y+10],W,4294925233);ag=D(ag,af,ae,ah,O[Y+11],V,2304563134);ah=D(ah,ag,af,ae,O[Y+12],ab,1804603682);ae=D(ae,ah,ag,af,O[Y+13],Z,4254626195);af=D(af,ae,ah,ag,O[Y+14],W,2792965006);ag=D(ag,af,ae,ah,O[Y+15],V,1236535329);ah=o(ah,ag,af,ae,O[Y+1],M,4129170786);ae=o(ae,ah,ag,af,O[Y+6],L,3225465664);af=o(af,ae,ah,ag,O[Y+11],K,643717713);ag=o(ag,af,ae,ah,O[Y+0],J,3921069994);ah=o(ah,ag,af,ae,O[Y+5],M,3593408605);ae=o(ae,ah,ag,af,O[Y+10],L,38016083);af=o(af,ae,ah,ag,O[Y+15],K,3634488961);ag=o(ag,af,ae,ah,O[Y+4],J,3889429448);ah=o(ah,ag,af,ae,O[Y+9],M,568446438);ae=o(ae,ah,ag,af,O[Y+14],L,3275163606);af=o(af,ae,ah,ag,O[Y+3],K,4107603335);ag=o(ag,af,ae,ah,O[Y+8],J,1163531501);ah=o(ah,ag,af,ae,O[Y+13],M,2850285829);ae=o(ae,ah,ag,af,O[Y+2],L,4243563512);af=o(af,ae,ah,ag,O[Y+7],K,1735328473);ag=o(ag,af,ae,ah,O[Y+12],J,2368359562);ah=P(ah,ag,af,ae,O[Y+5],y,4294588738);ae=P(ae,ah,ag,af,O[Y+8],u,2272392833);af=P(af,ae,ah,ag,O[Y+11],t,1839030562);ag=P(ag,af,ae,ah,O[Y+14],s,4259657740);ah=P(ah,ag,af,ae,O[Y+1],y,2763975236);ae=P(ae,ah,ag,af,O[Y+4],u,1272893353);af=P(af,ae,ah,ag,O[Y+7],t,4139469664);ag=P(ag,af,ae,ah,O[Y+10],s,3200236656);ah=P(ah,ag,af,ae,O[Y+13],y,681279174);ae=P(ae,ah,ag,af,O[Y+0],u,3936430074);af=P(af,ae,ah,ag,O[Y+3],t,3572445317);ag=P(ag,af,ae,ah,O[Y+6],s,76029189);ah=P(ah,ag,af,ae,O[Y+9],y,3654602809);ae=P(ae,ah,ag,af,O[Y+12],u,3873151461);af=P(af,ae,ah,ag,O[Y+15],t,530742520);ag=P(ag,af,ae,ah,O[Y+2],s,3299628645);ah=C(ah,ag,af,ae,O[Y+0],ad,4096336452);ae=C(ae,ah,ag,af,O[Y+7],ac,1126891415);af=C(af,ae,ah,ag,O[Y+14],aa,2878612391);ag=C(ag,af,ae,ah,O[Y+5],X,4237533241);ah=C(ah,ag,af,ae,O[Y+12],ad,1700485571);ae=C(ae,ah,ag,af,O[Y+3],ac,2399980690);af=C(af,ae,ah,ag,O[Y+10],aa,4293915773);ag=C(ag,af,ae,ah,O[Y+1],X,2240044497);ah=C(ah,ag,af,ae,O[Y+8],ad,1873313359);ae=C(ae,ah,ag,af,O[Y+15],ac,4264355552);af=C(af,ae,ah,ag,O[Y+6],aa,2734768916);ag=C(ag,af,ae,ah,O[Y+13],X,1309151649);ah=C(ah,ag,af,ae,O[Y+4],ad,4149444226);ae=C(ae,ah,ag,af,O[Y+11],ac,3174756917);af=C(af,ae,ah,ag,O[Y+2],aa,718787259);ag=C(ag,af,ae,ah,O[Y+9],X,3951481745);ah=T(ah,q);ag=T(ag,R);af=T(af,E);ae=T(ae,p)}var r=N(ah)+N(ag)+N(af)+N(ae);return r.toLowerCase()};var h={key:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(y){var s,p,o,x,w,u,t;var q=0;var n="";y=k.encode(y);while(q<y.length){s=y.charCodeAt(q++);p=y.charCodeAt(q++);o=y.charCodeAt(q++);x=s>>2;w=((s&3)<<4)|(p>>4);u=((p&15)<<2)|(o>>6);t=o&63;if(isNaN(p)){u=t=64}else{if(isNaN(o)){t=64}}n=n+this.key.charAt(x)+this.key.charAt(w)+this.key.charAt(u)+this.key.charAt(t)}return n}};var k={encode:function(o){o=o.replace(/\r\n/g,"\n");var p="";for(var s=0;s<o.length;s++){var q=o.charCodeAt(s);if(q<128){p+=String.fromCharCode(q)}else{if((q>127)&&(q<2048)){p+=String.fromCharCode((q>>6)|192);p+=String.fromCharCode((q&63)|128)}else{p+=String.fromCharCode((q>>12)|224);p+=String.fromCharCode(((q>>6)&63)|128);p+=String.fromCharCode((q&63)|128)}}}return p}};var l=function(n){var o={};a.each(a(":input, input:radio:selected, input:checkbox:checked, textarea"),function(q,p){if((m(p.value))&&(m(p.name))){o[p.name]=p.value}});return o};var c=function(o){if(g(o)>0){var n="";a.each(o,function(q,p){if(typeof p==="object"){c(p)}else{n+=q+"="+p+"&"}});n=n.substring(0,n.length-1)}else{n=false}return n};var g=function(o){var p=0;a.each(o,function(q,n){if(o.hasOwnProperty(q)){p++}});return p};var m=function(n){return((n===false)||(n.length===0)||(!n)||(n===null)||(n==="")||(typeof n==="undefined"))?false:true};if(e[b]){return e[b].apply(this,Array.prototype.slice.call(arguments,1))}else{if((typeof b==="object")||(!b)){return e.init.apply(this,arguments)}else{console.log("Method "+b+" does not exist")}}}})(jQuery); |