  def('ads', function(){ !function(){"use strict";include("breakpoints"),expose.update=function(){var e=this.parse(this.dom.getAttribute("data-ads"),{}),i=this.parse(this.dom.getAttribute("data-position")),t=this.dom.getAttribute("data-tag"),a=!0;if(void 0!==e.push){a=e.push;delete e.push}var s=[],n=Object.keys(e);for(var d in n)if(n.hasOwnProperty(d)){var r=n[d];r&&r.match(/(xs|sm|md|lg)/)&&s.push(r)}for(var o=this.breakpoints.sortOptions(s),h=0;h<o.length;h++)if(this.breakpoints.checkin(o[h],!!e[o[h]])){if(e[o[h]])var l=o[h];break}if($(this.dom).children().hide().removeClass("visible"),l){if($(this.dom).show().children().each(function(){this.id.match(e[l])&&$(this).show().addClass("visible")}),!$(this.dom).children(".visible").length){var p=document.createElement("div"),u=document.querySelectorAll("[id*=banner-"+e[l]+"]").length+1;if("120x35-area"!=e[l]&&"120x35-area-2"!=e[l]&&"120x35-2-area"!=e[l]?p.id="banner-"+e[l]+"-"+u:p.id="banner-"+e[l],"banner-responsive-vertical-1"==p.id&&0==document.querySelectorAll("[id*=banner-responsive-top-vertical-1]").length&&(p.id="banner-responsive-top-vertical-1"),""!=i&&-1!=p.id.indexOf("banner-300x250-area-")&&(p.id="banner-300x250-area-"+i),this.dom.appendChild(p),-1!=p.id.indexOf("banner-responsive-middle-2-horizontal-area-")&&-1!=p.id.indexOf("banner-responsive-middle-2-horizontal-area-2"))a=!1;a&&!$("body").hasClass("modal-open")&&(t?window.uolads.push({id:p.id,customTargetings:{tag:t}}):window.uolads&&window.uolads.push({id:p.id}))}}else this.dom.style.display="none"},expose.init=function(){this.update(),this.breakpoints.change(this,function(){this.update()})}}(); });    def('readspeaker', function(){ function updateProgress(e){if("progress"==e.type)var t=Math.ceil(e.position/100*100);else{var o=Math.round(e.position/e.duration*100);t=Math.ceil(1*o)}e.dom.querySelector(e.progressSelector).style.width=t+"%"}include("breakpoints"),expose.selector=".readspeaker",expose.loaded=!1,expose.timeToSeconds=function(e){var t=e.split(":");return t.length>2?3600*parseInt(t[0])+60*parseInt(t[1])+parseInt(t[2]):t.length>1?60*parseInt(t[0])+parseInt(t[1]):parseInt(t[0])},expose.formatTime=function(e){var t=parseInt(e/3600,10)%24,o=parseInt(e/60,10)%60,s=parseInt(e%60,10),r=(o<10?"0"+o:o)+":"+(s<10?"0"+s:s);return t>0?(t<10?"0"+t:t)+":"+r:r},expose.playPause=function(){var e=this,t=this.dom.getAttribute("data-url"),o=this.dom.getAttribute("data-full-url"),s=$(this.dom).parents("[data-url]:last").attr("data-url");-1!=t.indexOf("service.htm")&&""!=s&&(t=s);var r=window.location.search;if(""==r||this.dom.getAttribute("data-url-force"))a="http://app-na.readspeaker.com/cgi-bin/rsent?customerid=7406&lang=pt_br&readid=texto&url="+(-1!=encodeURIComponent(t).indexOf("%3F")?encodeURIComponent(t)+"%26cpVersion=readspeaker%26cpExtend=true":encodeURIComponent(t)+"%3FcpVersion=readspeaker%26cpExtend=true");else{-1!=(r=r.replace("?","")).indexOf("doc")&&(r=r.replace("&component",""));var i=window.location.origin+window.location.pathname;window.location.port&&(i=i.replace(/:\d{4}/,""));var a="http://app-na.readspeaker.com/cgi-bin/rsent?customerid=7406&lang=pt_br&readid=texto&url="+(-1!=encodeURIComponent(i).indexOf("%3F")?encodeURIComponent(i)+"%26cpVersion=readspeaker%26cpExtend=true%26"+r:encodeURIComponent(i)+"%3FcpVersion=readspeaker%26cpExtend=true%26"+r)}if(o&&""!=o)a=o;if(a){a=a.replace("http://","https://");var n="";System.isBlockedAccess?(t=t.replace("http://","https://"),$.ajax({url:t+"?gettoken",async:!1,dataType:"json",success:function(t){n="%26"+t.parameter+"="+t.token,p.call(e,a+n)}})):p.call(this,a)}function p(e){this.loaded||this.player.load(e),this.loaded=!0,this.dom.querySelector(".text")&&this.dom.querySelector(".text").remove(),this.player.playing?this.pause():this.play()}},expose.play=function(){this.dom.setAttribute("data-status","playing"),this.dom.querySelector(".duration").style.display="block",this.dom.querySelector(".bar").style.display="block",this.dom.querySelector(".i-sound")?this.dom.querySelector(".i-sound").setAttribute("class","i-pause control"):this.dom.querySelector(".i-play").setAttribute("class","i-pause control"),this.player.play()},expose.pause=function(){this.dom.setAttribute("data-status","paused"),this.dom.querySelector(".i-pause").setAttribute("class","i-play control"),this.player.pause()},expose.stop=function(){this.dom.querySelector(".duration").style.display="none",this.dom.querySelector(".bar").style.display="none",this.dom.removeAttribute("data-status"),this.dom.querySelector(".i-pause").setAttribute("class","i-sound control"),this.player.audio.seek(0),this.player.audio.pause()},expose.timeUpdate=function(e,t,o){o.querySelector(".duration").innerText=e;updateProgress({position:this.timeToSeconds(e),duration:t,type:"timeupdate",progressSelector:".timeupdate",dom:o})},expose.progress=function(e,t){updateProgress({position:e,duration:this.player.duration,type:"progress",progressSelector:".progress",dom:t})},expose.seek=function(e){var t=e.offsetX,o=parseInt(e.target.parentNode.clientWidth),s=Math.ceil(t/o*100),r=parseFloat(this.formatTime(this.player.duration).replace(":",".")),i=parseInt(r),a=(60*i+100*(r-i))*s/100;this.player.seek(a)},expose.elements=[],expose.clone=function(){var e=document.createElement("div");this.elements.push(e),document.body.appendChild(e)},expose.init=function(){var e=this;this.dom;function t(){this.seekable=!0,this.on("ended",function(){e.stop()}),this.on("timeupdate",function(t,o){e.timeUpdate(t,o,e.dom)}),this.on("progress",function(t){e.progress(t,e.dom)})}e=this;setTimeout(function(){e.player=new Audio5js({ready:t})},2e3),$(this.dom).on("click",function(){e.playPause()}),$(this.dom).find(".bar").on("click",function(t){e.seek(t)})}; });    def('share', function(){ include("breakpoints","modal"),expose.view={},expose.socialpage=[],expose.omniturereferences={},expose.update=!0,expose.tpl={link:'<div class="link"><span>compartilhar</span><svg class="svg-icon svg-icon-share-right"><use xlink:href="#svg-share-right" /></svg></div>',more:'<div class="share-item more-item clearfix"><div class="share-item social-item more" data-ref="more"><div class="table"><div><svg class="icon-more"><use xlink:href="#svg-more" /></svg></div></div></div><div class="share-item group"><div class="overflow">{{group}}</div></div></div>',after:'<div class="share-item after">{{group}}</div>',component:'<div class="share-item social-item comp-{{name}}" data-ref="{{name}}" data-target-click><div class="table">{{component}}</div></div>',def:'<div class="share-item social-item {{name}}" data-ref="{{name}}" data-target-click><div class="table"><div><svg class="icon-{{name}}"><use xlink:href="#svg-{{svg}}"/></svg><span class="count hidden"></span></div></div></div>'},expose.defaultapis={general:{"follow-title":!1,kicker:!1,title:!1,description:!1,image:{src:!1},date:!1,site:!1,url:!1,redirect:!1,app_id:!1},facebook:{count:["{{protocol}}//graph.facebook.com/?id={{link}}",function(){try{return this.share.share_count}catch(e){return!1}}],sharing:{defaults:{newtab:!0,host:"http://tm.uol.com.br/bt/facebook_auth/facebook-check-login.html?group=B&url_share=//www.facebook.com/dialog/feed",params:{app_id:!1,display:"popup",link:!1,redirect_uri:!1,quote:""}}},newwindow:"width=626,height=316,left=350,top=350"},twitter:{sharing:{defaults:{newtab:!0,host:"{{protocol}}//twitter.com/intent/tweet",params:{url:!1,text:!1,via:!1,hashtags:!1}}},newwindow:"width=450,height=270,scrollbars=yes,left=350,top=350"},pinterest:{count:["{{protocol}}//api.pinterest.com/v1/urls/count.json?url={{link}}",function(){try{return this.count}catch(e){return!1}}],sharing:{defaults:{newtab:!0,host:"{{protocol}}//br.pinterest.com/pin/create/button/",params:{url:!1,media:!1,description:!1}}},newwindow:"width=700,height=300"},linkedin:{sharing:{defaults:{newtab:!0,host:"{{protocol}}//www.linkedin.com/shareArticle",params:{url:!1,mini:!0,title:!1,summary:!1,source:!1}}},newwindow:"width=700,height=300"},mail:{sharing:{xs:{host:"mailto:",params:{cc:!1,bcc:!1,subject:!1,body:!1}},defaults:{host:"{{protocol}}//www3.uol.com.br/envie/index.jhtm",params:{origem:!1,texto:!1,xurl:!1,data:!1}}},newwindow:"width=780,height=490,left=350,top=350"},whatsapp:{sharing:{defaults:{host:"whatsapp://send",params:{url:!1,concat:"text"}}}},viber:{sharing:{defaults:{host:"viber://forward",params:{url:!1,concat:"text"}}}},messenger:{sharing:{defaults:{host:"fb-messenger://share",params:{link:!1}}}}},expose.apiupdate=function(){var e=this,i="general";this.config.defaults.general.url=this.config.defaults.general.url.replace(/[&?]json/g,"");var t=[this.config.defaults,this.current in this.config?this.config[this.current]:{}],s=[],a={},r=function(e,i,t){var s,a=Object.keys(t);return"url"!=e&&"link"!=e||t[e]?"title"!=e||t[e]?"description"!=e||t[e]?"image"!=e||t[e]?"site"!=e||t[e]?"kicker"!=e||t[e]?"date"!=e||t[e]?"redirect"!=e||t[e]?"domain"!=e||t[e]||-1!=a.indexOf("source")&&(s="source"):-1!=a.indexOf("redirect_uri")&&(s="redirect_uri"):-1!=a.indexOf("data")&&(s="data"):-1!=a.indexOf("origem")&&(s="origem"):-1!=a.indexOf("via")&&(s="via"):-1!=a.indexOf("media")&&"pinterest"==i?s="media":-1!=a.indexOf("picture")&&"facebook"==i&&(s="picture"):-1!=a.indexOf("summary")&&(s="summary"):-1!=a.indexOf("name")?s="name":-1!=a.indexOf("text")&&"twitter"==i?s="text":-1!=a.indexOf("description")&&"pinterest"==i?s="description":-1!=a.indexOf("texto")&&"mail"==i&&(s="texto"):-1!=a.indexOf("link")?s="link":-1!=a.indexOf("xurl")?s="xurl":-1!=a.indexOf("url")&&(s="url"),s||e};this.config.defaultapis&&Object.keys(this.config.defaultapis).length>0&&function(i,t,s){i=i||e.config.defaultapis,t=t||e.apis;for(var a in i){var r="object"==typeof i[a];r&&"sharing"!=s?a in t&&r&&!Array.isArray(i[a])&&arguments.callee(i[a],t[a],a):t[a]=i[a]}}();for(var o=0;o<t.length;o++){var n=Object.keys(t[o]);-1!=n.indexOf(i)&&(n=n.filter(function(e){return e!=i})).unshift(i),s.push(n)}for(c in this.apis)if(this.apis[c].sharing){var h=this.current in this.apis[c].sharing?this.current:"defaults";this.apis[c].sharing=this.apis[c].sharing[h]}for(o=0;o<t.length;o++){if(-1!=s[o].indexOf(i))for(u in this.apis)if(this.apis[u].sharing&&this.apis[u].sharing.params&&u!=i)for(y in t[o].general){var l=r(y,u,this.apis[u].sharing.params);l in this.apis[u].sharing.params&&(!a[u]||-1==a[u].indexOf(l))&&(this.apis[u].sharing.params[l]="image"==y?t[o].general[y].src:t[o].general[y],a[u]||(a[u]=[]),a[u].push(l))}for(var d=0;d<s[o].length;d++)if(s[o][d]in this.apis){var m=s[o][d];$.extend(!0,this.apis[m].sharing&&this.apis[m].sharing.params||this.apis[m],t[o][m])}}for(z in this.apis)if(this.apis[z].sharing&&this.apis[z].sharing.params&&this.apis[z].sharing.params.concat){var p=this.apis[z].sharing.params.concat,f="";for(v in this.apis[z].sharing.params)"url"==v||"concat"==v||v==p||Array.isArray(this.apis[z].sharing.params[v])||!1===this.apis[z].sharing.params[v]||(!this.apis[z].sharing.params.not||-1!=this.apis[z].sharing.params.not.indexOf(v))&&this.apis[z].sharing.params.not||(f+=this.apis[z].sharing.params[v]+" ");f+=this.apis[z].sharing.params.url,this.apis[z].sharing.params={},""!=f&&(this.apis[z].sharing.params[p]=f.substr(0,f.length))}for(var m in this.config["characters-limit"])if(this.apis[m]&&this.apis[m].sharing&&this.apis[m].sharing.params)for(var u in this.config["characters-limit"][m])u in this.apis[m].sharing.params&&this.apis[m].sharing.params[u].length>this.config["characters-limit"][m][u]&&(this.apis[m].sharing.params[u]=$("<textarea>").html(this.apis[m].sharing.params[u]).val().substr(0,this.config["characters-limit"][m][u])+"...");this.update=!1},expose.urlbuilder=function(e){var i="",t="facebook"==e||!1;for(key in this.params)if(!1!==this.params[key]||""!=this.params[key]){var s=[t?encodeURIComponent("?"):"?",t?encodeURIComponent("&"):"&",window[t?"escape":"encodeURIComponent"]($("<textarea>").html(this.params[key]).val())];i+=(""==i?this.host.replace("{{protocol}}",location.protocol)+s[0]:s[1])+key+"="+s[2]}return i};var template=function(e){var i=this,t=e.name,s=-1!=this.config.components.indexOf(t)?this.tpl.component:this.tpl[e.tpl]||this.tpl[t]||this.tpl.def,a=function(){var s=$(i.originaldom).find("."+(e.tpl||t));if(!(s=s.get(0)&&s.get(0).outerHTML)||-1==i.config.components.indexOf(t))return"";var a=-1!=i.view.mode.indexOf("large")?t+"-large":-1!=i.view.mode.indexOf("medium")?t+"-medium":t+"-small",r=new RegExp(t+"-large|"+t+"-medium|"+t+"-small","g");return s.match(r)?s.replace(r,a):s.replace(/(class=\"[^"]+)/,"$1 "+a+'"')}();return s=(s=(s=(s=s.replace(/{{name}}/g,t)).replace(/{{svg}}/g,"mail"==t?t:"social-"+t)).replace(/{{component}}/,a)).replace(/{{group}}/,e.pattern),-1==this.config.components.indexOf(t)||a?s:""},mount=function(){var e="";for(order in this.view.mode&&-1!=this.view.mode.indexOf("link")&&(e+=template.call(this,{name:"link"})),this.view.order)if("before"!=order){var t="";for(i in this.view.order[order])t+=template.call(this,{name:this.view.order[order][i]}),this.socialpage.push(this.view.order[order][i]);e+=template.call(this,{tpl:order,pattern:t})}else for(i in this.view.order[order])e+=template.call(this,{name:this.view.order[order][i]}),this.socialpage.push(this.view.order[order][i]);return e};expose.count=function(){if(-1==this.view.mode.indexOf("no-count"))for(var e=this.socialpage,i=0;i<e.length-1;i++)if(this.apis[e[i]]&&this.apis[e[i]].count){var t=this.apis[e[i]].count[0].replace("{{link}}",encodeURIComponent(this.dom.getAttribute("data-url")||window.location.href)).replace("{{protocol}}",location.protocol);try{this.requestJsonp(t,{component:"share",callback:s,data:{social:e[i],scope:this}})}catch(e){}}function s(e){var i=e.data.scope,t=i.apis[e.data.social].count[1].call(e.response);if(t){var s=i.dom.querySelector('.share-item[data-ref="'+e.data.social+'"] .count');if(t>999)for(var a,r=["k","M","G","T","P","E","Z","Y"],o=r.length-1;o>=0;o--){if(t<=-(a=Math.pow(1e3,o+1))||t>=a)t=(t/a).toFixed(1)+r[o]}i.dom.querySelector('.share-item[data-ref="'+e.data.social+'"]').className+=" hascount",s.innerHTML=t,s.className=s.className.replace(/ hidden/g,"")}}},expose.sharing=function(e){e.update&&e.apiupdate.call(e);var i=this.getAttribute("data-ref"),t=!(!e.apis[i]||!e.apis[i].sharing||0==Object.keys(e.apis[i].sharing.params).length)&&e.urlbuilder.call(e.apis[i].sharing,i);if(i){if(i in e.omniturereferences){var s=$.extend(!0,{},e.config.audience.click);s.reference=e.omniturereferences[i],hitAudience.countClick.call(this,s)}if(!t)return;if(!e.breakpoints.checkin("xs")||e.apis[i].sharing.newtab){var a=[!e.breakpoints.checkin("xs")&&e.apis[i].newwindow?e.apis[i].newwindow:"","fullscreen=yes","scrollbars=yes","type=fullWindow"].join(",");open(t,"shareUOL",a)}else location.href=t}},expose.mode=function(){for(mode in this.view.mode||(this.view.mode=[]),this.view.mode)this.dom.className+=" share-"+this.view.mode[mode]},expose.events=function(){var e=this,i=$(this.dom).find(':not(".modal-mode-share") .overflow'),t=[-1!=e.view.mode.indexOf("column"),-1!=e.view.mode.indexOf("right")&&-1!=e.view.mode.indexOf("vertical")&&-1==e.view.mode.indexOf("column")],s=i.children()[t[0]?"height":"width"]()*i.children().length;i[t[0]?"height":"width"](s),$(this.dom).on("click",".link, .more",function(i){var a=$.extend(!0,{},e.config.audience.click),r=this.getAttribute("data-ref")||"more";if(-1!=e.view.mode.indexOf("modal")||e.breakpoints.checkin("xs")&&-1==e.view.mode.indexOf("no-modal"))-1==e.view.mode.indexOf("modal")?e.view.mode.push("modal"):e.view.mode=e.dom.getAttribute("data-originalmode").split(","),e._modal=e.modal.open(e.dom,"share"),e._modal.disableClickClose(),e._modal.addHeader({html:'<div class="modal-close"><h1>Fechar</h1> <div class="icon-close"></div></div>',closure:!0}),e._modal.onbeforeclose=function(){a.reference=e.omniturereferences[r+"-close"],hitAudience.countClick.call(this,a)},e._modal.dom.querySelector(".share").className="share share-center share-modal",$(e._modal.dom).find(".share .overflow").children().appendTo(e._modal.dom.querySelector(".share")),$(e._modal.dom).find(".share-item:visible").on("click",function(){e.sharing.call(this,e)}),a.reference=e.omniturereferences[r+"-open"];else if(this.className.match("more")&&e.dom.className.match("share-link"))$(e.dom).children().removeClass("visible").end().children(".link").show(),a.reference=e.omniturereferences[r+"-close"];else if(this.className.match("more")&&-1==e.view.mode.indexOf("modal")){var o={},n=0==$(this).siblings(".group")[t[0]?"height":"width"]()?s:0;t[0]?o.height=n:t[1]?(o.width=n,o.marginLeft=n):o.width=n,a.reference=e.omniturereferences[r+"-"+(/open/.test(this.parentNode.className)?"close":"open")],this.parentNode.className=this.parentNode.className.replace(" open","")+(-1==this.parentNode.className.indexOf("open")?" open":"");var h=this;$(this).siblings(".group").stop(!0,!1).animate(o,200,function(){$(h).toggleClass("on")})}else this.className.match("link")&&-1==e.view.mode.indexOf("modal")&&($(this).hide().nextAll().addClass("visible"),a.reference=e.omniturereferences[r+"-open"]);i.originalEvent&&hitAudience.countClick.call(this,a)}),$(this.dom).on("click","[data-target-click]",function(i){-1==e.config.components.indexOf(this.getAttribute("data-ref"))&&i.stopPropagation(),e.sharing.call(this,e)}),$(this.dom).on("mouseleave",function(){var i=this;e.view.mode&&-1!=e.view.mode.indexOf("link")||(e.timeOpened=setTimeout(function(){$(i).find(".more-item .more.on").trigger("click")},4e3))}),$(this.dom).on("mouseenter",function(){clearTimeout(e.timeOpened)})},expose.destroy=function(){this.dom.className=this.selector.substr(1),this.view={},this.socialpage=[],this.update=!0,this._modal&&this._modal.close(),$(this.dom).off("click"),this._modal&&$(this._modal.dom).find(".share-item").off("click")},expose.modelOrder=function(e){for(var i in e)if("string"==typeof e[i]&&"mode"==i)e[i]=e[i].split(";");else if("order"==i)for(var t in e[i])"string"==typeof e[i][t]&&(e[i][t]=e[i][t].split(";"));return e},expose.init=function(){/no-mount/.test(this.dom.className)||(this.config=this.config||this.parse(this.dom.getAttribute("data-config").replace(/\n/g,"{{new-line}}"),this.config),this.breakpoint=this.breakpoints.sortOptions(Object.keys(this.config),!0,!0),this.omniturereferences=this.config.omniturereferences||{},this.current=this.breakpoints.breakpoint.name,this.view=this.modelOrder(this.config[this.breakpoint]),this.dom.setAttribute("data-originalmode",this.view.mode),this.tpl=$.extend(!0,{},this.tpl),this.apis=$.extend(!0,{},this.defaultapis),this.dom.removeAttribute("style"),-1!=this.view.mode.indexOf("fixed")?this.dom.removeAttribute("data-static"):this.dom.setAttribute("data-static",!0),this.updateBreakpoint||this.breakpoints.change(this,function(){this.updateBreakpoint=!0,this.destroy.call(this),this.init.call(this)}),this.originaldom||(this.originaldom=this.dom.outerHTML),this.dom.innerHTML=mount.call(this),this.count.call(this),$(this.dom).find("[initiated]").length&&($(this.dom).find("[initiated]").removeAttr("initiated"),render()),this.mode.call(this),!this.view&&this.view.disabled||(this.dom.className=this.dom.className.replace(/hidden/,""),this.events.call(this)))},expose.selector=".share"; });    def('blog-header', function(){ !function(){"use strict";include("modal","breakpoints"),expose.init=function(){var i=this,e=function(i){hitAudience.countClick.call(this,{theme:"blog-header",reference:i,action:"clique"})},n=this.breakpoints.checkin("xs");$(".social-media li").on("click",function(){var i=$(this).children().attr("class").replace("icon","seguir");e(i)}),$(".click").on("click",function(){var i="busca-"+$(this).attr("data-base");e(i);var n=$(this).parent().find(".hidden-container");$(this).parent().find(".hidden-container").toggle(),$(this).children().hasClass("icon-single-arrow-down")?$(this).children().removeClass("icon-single-arrow-down").addClass("icon-single-arrow-up"):$(this).children().removeClass("icon-single-arrow-up").addClass("icon-single-arrow-down"),$(this).closest(".blog-misc").find(".box").each(function(){var i=$(this).find(".hidden-container");i[0]!=n[0]&&i.hide().closest(".box").find(".icon-single-arrow-up").removeClass("icon-single-arrow-up").addClass("icon-single-arrow-down")})}),$("button.search-button-click").on("click",function(){var i=$("button .search-web");e("busca-palavra"),i.closest(".hidden-xs").toggleClass("opened"),i.closest(".search").find(".input-web").val("").select(),i.hasClass("icon-search")?i.removeClass("icon-search").addClass("icon-close"):i.removeClass("icon-close").addClass("icon-search"),i.closest(".blog-misc").find(".hidden-container").hide(),i.closest(".blog-misc").find(".icon-single-arrow-up").removeClass("icon-single-arrow-up").addClass("icon-single-arrow-down")}),$(document).mouseup(function(i){var e=$(".search.hidden-xs");e.is(i.target)||0!==e.has(i.target).length||e.removeClass("opened").find(".search-web").removeClass("icon-close").addClass("icon-search")}),$(document).keyup(function(i){27==i.which&&$(".search.hidden-xs").removeClass("opened").find(".search-web").removeClass("icon-close").addClass("icon-search");if(13==i.keyCode&&""!=$(".input-web").val()){var e=$(".input-web").val().replace(/ /g,"+"),n="http://"+window.location.hostname+"/?s="+e;window.location.href=encodeURI(n)}}),$(".open-all").on("click",function(){console.log($(this).siblings(".blog-misc").find(".modal-close")),i.modal.open($(this).siblings(".blog-misc")[0].outerHTML);var e=$(".modal");e.find(".hidden-container").hide(),n&&$.each($(".datepicker"),function(i,e){$(e).removeClass("hasDatepicker"),$(e).removeAttr("initiated"),$(e).removeAttr("id"),e.innerHTML="",$(e).datepicker()}),$(".click").on("click",function(){var i=$(this).parent().find(".hidden-container");$(this).parent().find(".hidden-container").toggle(),$(this).children().hasClass("icon-single-arrow-down")?$(this).children().removeClass("icon-single-arrow-down").addClass("icon-single-arrow-up"):$(this).children().removeClass("icon-single-arrow-up").addClass("icon-single-arrow-down"),$(this).closest(".blog-misc").find(".box").each(function(){var e=$(this).find(".hidden-container");e[0]!=i[0]&&e.hide().closest(".box").find(".icon-single-arrow-up").removeClass("icon-single-arrow-up").addClass("icon-single-arrow-down")})}),$(document).keyup(function(i){if(13==i.keyCode&&""!=e.find(".input-mobile").val()){console.log("aqui");var n=e.find(".input-mobile").val().replace(/ /g,"+"),o="http://"+window.location.hostname+"/?s="+n;window.location.href=encodeURI(o)}}),$(".search-mobile").on("click",function(){var i=$(this).closest(".search").find(".input-mobile");if(""!=i.val()){var e=i.val().replace(/ /g,"+"),n="http://"+window.location.hostname+"/?s="+e;window.location.href=encodeURI(n)}})})}}(); });    def('collection', function(){ include("session-blacklist","storage"),expose.items=[],expose.loadItemLocked=!1,expose.initialItem={url:location.href,title:document.title,actualUrl:location.href},expose.index=-1,expose.viewRatio=1.5,expose.permanenceTime=2e3,expose.permanenceIndex=0,expose.permanenceTimer,expose.onscroll=function(){this.checkItemsToLoad(),this.checkViewport()},expose.current=function(){return-1!=this.index&&this.allItems[this.index]},expose.updateHistory=function(){},expose.enablePushState=function(){this.updateHistory=function(){var e=this.current(),t=this.initialItem,i=(e.getAttribute("data-url")||"").replace(/https?:/,location.protocol).replace(".br",".br:"+location.port)||"";if(-1==i.search(/external-content/)){if(!i)return document.title=t.title,void history.replaceState(null,document.title,t.url);document.title=((e.uol||{}).metatags||{}).title||Audience.mediaTitle,document.title=$("<textarea>").html(document.title).val(),history.replaceState(null,document.title,i),window.pSUPERFLY&&pSUPERFLY.virtualPage(e.getAttribute("data-url").replace(/https?:\/\/.*?(\/.*)/,"$1"),document.title),t.actualUrl=i}}},expose.startPermanenceControl=function(){var e=this;this.permanenceTimer&&clearTimeout(this.permanenceTimer),this.permanenceTimer=setTimeout(function(){e.permanenceIndex!=e.index&&(e.permanenceIndex=e.index,e.permanenceCallback())},this.permanenceTime)},expose.permanenceCallback=function(){hitAudience.countMetrics(this.current().uol&&this.current().uol.audience||Audience),delete Audience.firstView},expose.contentUpdated=function(){this.items=this.dom.querySelectorAll(".collection-item:not([data-loaded])")},expose.checkViewport=function(){for(var e=window.innerHeight/2,t=0;t<this.allItems.length;t++){var i=this.allItems[t].getBoundingClientRect();i.top<e&&i.bottom>e&&this.index!=t&&this.updateIndex(t)}},expose.autoClick=function(){var e=!(!this.current()||-1==this.current().className.indexOf("collection-first-item"))&&this.current().querySelector(".btn[data-open]");e&&$(window).on("scroll",function(){var t=[$(e).offset().top,$(this).scrollTop()+$(this).height(),50];t[1]>t[0]-t[2]&&$(e).is(":visible")&&e.click()})},expose.updateIndex=function(e){this.index=e,this.updateHistory(),this.startPermanenceControl()},expose.checkItemsToLoad=function(){for(var e=0;e<this.items.length;e++){var t=this.items[e],i=t.getBoundingClientRect();window.innerHeight*this.viewRatio>Math.abs(i.top)&&!this.loadItemLocked&&(this.loadItemLocked=!0,this.loadItem(t,this.checkItemsToLoad))}},expose.loadItem=function(e,t){var i,o,n=this,l=this.parse(e.getAttribute("data-service"),{});if(l.hasOwnProperty("url")&&-1!=l.url.indexOf("blogosfera.uol"))o=l.url;else{if(i=Config.servicename+"?loadComponent=collection-item&data=",l.hasOwnProperty("url")&&(l.url=escape(l.url)),e.getAttribute("data-component"))if(l.path=Collection.path,"headline-content"==e.getAttribute("data-component"))l.blacklist=this.sessionStorage.getList("collection");else if(-1!=e.getAttribute("data-component").indexOf("chapter-synopsis")){var a=location.search.slice(1),c=a.split("&"),s={};""!=a&&c.length>0&&c.forEach(function(e){var t=e.split("="),i=t[0],o=t[1];s[i]=o}),s.titulo=Collection.titulo,s["tags-id-collection"]=Collection.search.tags,l.compData=s}o=i+JSON.stringify(l)}function r(i){e.setAttribute("data-loaded",i),this.loadItemLocked=!1,this.contentUpdated(),$(".collection-loading").hide(),t&&t.call(this)}$(".collection-loading").show(),this.getjson(o.replace(/https?:/g,location.protocol),function(t){if(t.hasOwnProperty("body"))if($(e).html(t.body),(t.audience||{}).string&&delete t.audience.string,$(e).hasClass("collection-module")){if(e.uol={type:"modulo-cruzado",metatags:t.metatags,audience:{collection:Collection.titulo,channel:Collection.channel,central:Collection.central,mediaType:t.type,mediaName:"Módulo Cruzado",mediaTitle:"Módulo Cruzado"}},(Components[t.type]||{}).audience)for(var i in Components[t.type].audience)e.uol.audience[i]=Components[t.type].audience[i];t.blacklist.map(function(t){"headline-content"==e.getAttribute("data-component")&&n.sessionStorage.addItem("collection",t)})}else t.audience.collection=Collection.titulo,t.audience.channel=Collection.channel,t.audience.central=Collection.central,e.uol={type:t.type,metatags:t.metatags,audience:t.audience};r.call(this,"loaded")},function(){r.call(this,"error")})},expose.init=function(){var e=this;this.sessionStorage=new this["session-blacklist"],this.allItems=this.dom.querySelectorAll(".collection-item"),this.contentUpdated(),this.checkItemsToLoad(),this.updateIndex(0),$(window).on("scroll.collection",function(){e.onscroll.call(e)}),Collection.collectionIndex||(-1==location.search.search(/nopush/)&&this.enablePushState(),window.addEventListener("beforeunload",function(){document.title=e.initialItem.title,history.replaceState(null,document.title,e.initialItem.url)})),"scrollRestoration"in history&&(history.scrollRestoration="manual")},expose.selector="body"; });    def('datepicker', function(){ !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){var e,i,a,n;function s(e,i){var a,n,s,o=e.nodeName.toLowerCase();return"area"===o?(n=(a=e.parentNode).name,!(!e.href||!n||"map"!==a.nodeName.toLowerCase())&&(!!(s=t("img[usemap='#"+n+"']")[0])&&r(s))):(/^(input|select|textarea|button|object)$/.test(o)?!e.disabled:"a"===o&&e.href||i)&&r(e)}function r(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var i=this.css("position"),a="absolute"===i,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var e=t(this);return(!a||"static"!==e.css("position"))&&n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&s.length?s:t(this[0].ownerDocument||document)},uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,a){return!!t.data(e,a[3])},focusable:function(e){return s(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var i=t.attr(e,"tabindex"),a=isNaN(i);return(a||i>=0)&&s(e,!a)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(e,i){var a="Width"===i?["Left","Right"]:["Top","Bottom"],n=i.toLowerCase(),s={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};function r(e,i,n,s){return t.each(a,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),s&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}t.fn["inner"+i]=function(e){return void 0===e?s["inner"+i].call(this):this.each(function(){t(this).css(n,r(this,e)+"px")})},t.fn["outer"+i]=function(e,a){return"number"!=typeof e?s["outer"+i].call(this,e):this.each(function(){t(this).css(n,r(this,e,!0,a)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=(i=t.fn.removeData,function(e){return arguments.length?i.call(this,t.camelCase(e)):i.call(this)})),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:(n=t.fn.focus,function(e,i){return"number"==typeof e?this.each(function(){var a=this;setTimeout(function(){t(a).focus(),i&&i.call(a)},e)}):n.apply(this,arguments)}),disableSelection:(a="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(a+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var i,a,n=t(this[0]);n.length&&n[0]!==document;){if(("absolute"===(i=n.css("position"))||"relative"===i||"fixed"===i)&&(a=parseInt(n.css("zIndex"),10),!isNaN(a)&&0!==a))return a;n=n.parent()}return 0}}),t.ui.plugin={add:function(e,i,a){var n,s=t.ui[e].prototype;for(n in a)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([i,a[n]])},call:function(t,e,i,a){var n,s=t.plugins[e];if(s&&(a||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;n<s.length;n++)t.options[s[n][0]]&&s[n][1].apply(t.element,i)}};var o=0,l=Array.prototype.slice;t.cleanData=function(e){return function(i){var a,n,s;for(s=0;null!=(n=i[s]);s++)try{(a=t._data(n,"events"))&&a.remove&&t(n).triggerHandler("remove")}catch(t){}e(i)}}(t.cleanData),t.widget=function(e,i,a){var n,s,r,o,l={},d=e.split(".")[0];return e=e.split(".")[1],n=d+"-"+e,a||(a=i,i=t.Widget),t.expr[":"][n.toLowerCase()]=function(e){return!!t.data(e,n)},t[d]=t[d]||{},s=t[d][e],r=t[d][e]=function(t,e){if(!this._createWidget)return new r(t,e);arguments.length&&this._createWidget(t,e)},t.extend(r,s,{version:a.version,_proto:t.extend({},a),_childConstructors:[]}),(o=new i).options=t.widget.extend({},o.options),t.each(a,function(e,a){var n,s;t.isFunction(a)?l[e]=(n=function(){return i.prototype[e].apply(this,arguments)},s=function(t){return i.prototype[e].apply(this,t)},function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=s,t=a.apply(this,arguments),this._super=e,this._superApply=i,t}):l[e]=a}),r.prototype=t.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||e},l,{constructor:r,namespace:d,widgetName:e,widgetFullName:n}),s?(t.each(s._childConstructors,function(e,i){var a=i.prototype;t.widget(a.namespace+"."+a.widgetName,r,i._proto)}),delete s._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r),r},t.widget.extend=function(e){for(var i,a,n=l.call(arguments,1),s=0,r=n.length;s<r;s++)for(i in n[s])a=n[s][i],n[s].hasOwnProperty(i)&&void 0!==a&&(t.isPlainObject(a)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],a):t.widget.extend({},a):e[i]=a);return e},t.widget.bridge=function(e,i){var a=i.prototype.widgetFullName||e;t.fn[e]=function(n){var s="string"==typeof n,r=l.call(arguments,1),o=this;return s?this.each(function(){var i,s=t.data(this,a);return"instance"===n?(o=s,!1):s?t.isFunction(s[n])&&"_"!==n.charAt(0)?(i=s[n].apply(s,r))!==s&&void 0!==i?(o=i&&i.jquery?o.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+n+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+n+"'")}):(r.length&&(n=t.widget.extend.apply(null,[n].concat(r))),this.each(function(){var e=t.data(this,a);e?(e.option(n||{}),e._init&&e._init()):t.data(this,a,new i(n,this))})),o}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=o++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var a,n,s,r=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(r={},a=e.split("."),e=a.shift(),a.length){for(n=r[e]=t.widget.extend({},this.options[e]),s=0;s<a.length-1;s++)n[a[s]]=n[a[s]]||{},n=n[a[s]];if(e=a.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=i}return this._setOptions(r),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,i,a){var n,s=this;"boolean"!=typeof e&&(a=i,i=e,e=!1),a?(i=n=t(i),this.bindings=this.bindings.add(i)):(a=i,i=this.element,n=this.widget()),t.each(a,function(a,r){function o(){if(e||!0!==s.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof r?s[r]:r).apply(s,arguments)}"string"!=typeof r&&(o.guid=r.guid=r.guid||o.guid||t.guid++);var l=a.match(/^([\w:-]*)\s*(.*)$/),d=l[1]+s.eventNamespace,c=l[2];c?n.delegate(c,d,o):i.bind(d,o)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(i).undelegate(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,a){var n,s,r=this.options[e];if(a=a||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(n in s)n in i||(i[n]=s[n]);return this.element.trigger(i,a),!(t.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(a))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(a,n,s){"string"==typeof n&&(n={effect:n});var r,o=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})&&(n={duration:n}),r=!t.isEmptyObject(n),n.complete=s,n.delay&&a.delay(n.delay),r&&t.effects&&t.effects.effect[o]?a[e](n):o!==e&&a[o]?a[o](n.duration,n.easing,s):a.queue(function(i){t(this)[e](),s&&s.call(a[0]),i()})}});t.widget;var d=!1;t(document).mouseup(function(){d=!1});t.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!d){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,a=1===e.which,n=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(a&&!n&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),d=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),d=!1,!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});!function(){t.ui=t.ui||{};var e,i,a=Math.max,n=Math.abs,s=Math.round,r=/left|center|right/,o=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,c=/%$/,h=t.fn.position;function u(t,e,i){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?i/100:1)]}function p(e,i){return parseInt(t.css(e,i),10)||0}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var i,a,n=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),s=n.children()[0];return t("body").append(n),i=s.offsetWidth,n.css("overflow","scroll"),i===(a=s.offsetWidth)&&(a=n[0].clientWidth),n.remove(),e=i-a},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),a=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===a||"auto"===a&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),a=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:a,isDocument:n,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:a||n?i.width():i.outerWidth(),height:a||n?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return h.apply(this,arguments);e=t.extend({},e);var c,g,f,m,_,v,D,k,y=t(e.of),w=t.position.getWithinInfo(e.within),b=t.position.getScrollInfo(w),M=(e.collision||"flip").split(" "),C={};return v=9===(k=(D=y)[0]).nodeType?{width:D.width(),height:D.height(),offset:{top:0,left:0}}:t.isWindow(k)?{width:D.width(),height:D.height(),offset:{top:D.scrollTop(),left:D.scrollLeft()}}:k.preventDefault?{width:0,height:0,offset:{top:k.pageY,left:k.pageX}}:{width:D.outerWidth(),height:D.outerHeight(),offset:D.offset()},y[0].preventDefault&&(e.at="left top"),g=v.width,f=v.height,m=v.offset,_=t.extend({},m),t.each(["my","at"],function(){var t,i,a=(e[this]||"").split(" ");1===a.length&&(a=r.test(a[0])?a.concat(["center"]):o.test(a[0])?["center"].concat(a):["center","center"]),a[0]=r.test(a[0])?a[0]:"center",a[1]=o.test(a[1])?a[1]:"center",t=l.exec(a[0]),i=l.exec(a[1]),C[this]=[t?t[0]:0,i?i[0]:0],e[this]=[d.exec(a[0])[0],d.exec(a[1])[0]]}),1===M.length&&(M[1]=M[0]),"right"===e.at[0]?_.left+=g:"center"===e.at[0]&&(_.left+=g/2),"bottom"===e.at[1]?_.top+=f:"center"===e.at[1]&&(_.top+=f/2),c=u(C.at,g,f),_.left+=c[0],_.top+=c[1],this.each(function(){var r,o,l=t(this),d=l.outerWidth(),h=l.outerHeight(),v=p(this,"marginLeft"),D=p(this,"marginTop"),k=d+v+p(this,"marginRight")+b.width,x=h+D+p(this,"marginBottom")+b.height,I=t.extend({},_),N=u(C.my,l.outerWidth(),l.outerHeight());"right"===e.my[0]?I.left-=d:"center"===e.my[0]&&(I.left-=d/2),"bottom"===e.my[1]?I.top-=h:"center"===e.my[1]&&(I.top-=h/2),I.left+=N[0],I.top+=N[1],i||(I.left=s(I.left),I.top=s(I.top)),r={marginLeft:v,marginTop:D},t.each(["left","top"],function(i,a){t.ui.position[M[i]]&&t.ui.position[M[i]][a](I,{targetWidth:g,targetHeight:f,elemWidth:d,elemHeight:h,collisionPosition:r,collisionWidth:k,collisionHeight:x,offset:[c[0]+N[0],c[1]+N[1]],my:e.my,at:e.at,within:w,elem:l})}),e.using&&(o=function(t){var i=m.left-I.left,s=i+g-d,r=m.top-I.top,o=r+f-h,c={target:{element:y,left:m.left,top:m.top,width:g,height:f},element:{element:l,left:I.left,top:I.top,width:d,height:h},horizontal:s<0?"left":i>0?"right":"center",vertical:o<0?"top":r>0?"bottom":"middle"};g<d&&n(i+s)<g&&(c.horizontal="center"),f<h&&n(r+o)<f&&(c.vertical="middle"),a(n(i),n(s))>a(n(r),n(o))?c.important="horizontal":c.important="vertical",e.using.call(this,t,c)}),l.offset(t.extend(I,{using:o}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,o=t.left-e.collisionPosition.marginLeft,l=s-o,d=o+e.collisionWidth-r-s;e.collisionWidth>r?l>0&&d<=0?(i=t.left+l+e.collisionWidth-r-s,t.left+=l-i):t.left=d>0&&l<=0?s:l>d?s+r-e.collisionWidth:s:l>0?t.left+=l:d>0?t.left-=d:t.left=a(t.left-o,t.left)},top:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollTop:n.offset.top,r=e.within.height,o=t.top-e.collisionPosition.marginTop,l=s-o,d=o+e.collisionHeight-r-s;e.collisionHeight>r?l>0&&d<=0?(i=t.top+l+e.collisionHeight-r-s,t.top+=l-i):t.top=d>0&&l<=0?s:l>d?s+r-e.collisionHeight:s:l>0?t.top+=l:d>0?t.top-=d:t.top=a(t.top-o,t.top)}},flip:{left:function(t,e){var i,a,s=e.within,r=s.offset.left+s.scrollLeft,o=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,d=t.left-e.collisionPosition.marginLeft,c=d-l,h=d+e.collisionWidth-o-l,u="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,g=-2*e.offset[0];c<0?((i=t.left+u+p+g+e.collisionWidth-o-r)<0||i<n(c))&&(t.left+=u+p+g):h>0&&((a=t.left-e.collisionPosition.marginLeft+u+p+g-l)>0||n(a)<h)&&(t.left+=u+p+g)},top:function(t,e){var i,a,s=e.within,r=s.offset.top+s.scrollTop,o=s.height,l=s.isWindow?s.scrollTop:s.offset.top,d=t.top-e.collisionPosition.marginTop,c=d-l,h=d+e.collisionHeight-o-l,u="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];c<0?((a=t.top+u+p+g+e.collisionHeight-o-r)<0||a<n(c))&&(t.top+=u+p+g):h>0&&((i=t.top-e.collisionPosition.marginTop+u+p+g-l)>0||n(i)<h)&&(t.top+=u+p+g)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,a,n,s,r,o=document.getElementsByTagName("body")[0],l=document.createElement("div");for(r in e=document.createElement(o?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&&t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"}),n)e.style[r]=n[r];e.appendChild(l),(a=o||document.documentElement).insertBefore(e,a.firstChild),l.style.cssText="position: absolute; left: 10.7432222px;",s=t(l).offset().left,i=s>10&&s<11,e.innerHTML="",a.removeChild(e)}()}();var c;t.ui.position;function h(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesLower:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["DOM","SEG","TER","QUA","QUI","SEX","SÁB"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=u(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function u(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",p)}function p(){t.datepicker._isDisabledDatepicker(c.inline?c.dpDiv.parent()[0]:c.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function g(e,i){for(var a in t.extend(e,i),i)null==i[a]&&(e[a]=i[a]);return e}t.extend(t.ui,{datepicker:{version:"1.11.4"}}),t.extend(h.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return g(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var a,n,s;n="div"===(a=e.nodeName.toLowerCase())||"span"===a,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(s=this._newInst(t(e),n)).settings=t.extend({},i||{}),"input"===a?this._connectDatepicker(e,s):n&&this._inlineDatepicker(e,s)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?u(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var a=t(e);i.append=t([]),i.trigger=t([]),a.hasClass(this.markerClassName)||(this._attachments(a,i),a.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var a,n,s,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=t("<span class='"+this._appendClass+"'>"+r+"</span>"),e[o?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(a=this._get(i,"showOn"))&&"both"!==a||e.focus(this._showDatepicker),"button"!==a&&"both"!==a||(n=this._get(i,"buttonText"),s=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:s,alt:n,title:n}):t("<button type='button'></button>").addClass(this._triggerClass).html(s?t("<img/>").attr({src:s,alt:n,title:n}):n)),e[o?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,a,n,s=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(t){for(i=0,a=0,n=0;n<t.length;n++)t[n].length>i&&(i=t[n].length,a=n);return a},s.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),t.input.attr("size",this._formatDate(t,s).length)}},_inlineDatepicker:function(e,i){var a=t(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,a,n,s){var r,o,l,d,c,h=this._dialogInst;return h||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",h)),g(h.settings,n||{}),i=i&&i.constructor===Date?this._formatDate(h,i):i,this._dialogInput.val(i),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(o=document.documentElement.clientWidth,l=document.documentElement.clientHeight,d=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+d,l/2-150+c]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(e){var i,a=t(e),n=t.data(e,"datepicker");a.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(n.append.remove(),n.trigger.remove(),a.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||a.removeClass(this.markerClassName).empty(),c===n&&(c=null))},_enableDatepicker:function(e){var i,a,n=t(e),s=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((a=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,a,n=t(e),s=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((a=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,a){var n,s,r,o,l=this._getInst(e);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):l?"all"===i?t.extend({},l.settings):this._get(l,i):null;n=i||{},"string"==typeof i&&((n={})[i]=a),l&&(this._curInst===l&&this._hideDatepicker(),s=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(l,"min"),o=this._getMinMaxDate(l,"max"),g(l.settings,n),null!==r&&void 0!==n.dateFormat&&void 0===n.minDate&&(l.settings.minDate=this._formatDate(l,r)),null!==o&&void 0!==n.dateFormat&&void 0===n.maxDate&&(l.settings.maxDate=this._formatDate(l,o)),"disabled"in n&&(n.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),l),this._autoSize(l),this._setDate(l,s),this._updateAlternate(l),this._updateDatepicker(l))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,a,n,s=t.datepicker._getInst(e.target),r=!0,o=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),r=!1;break;case 13:return(n=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",s.dpDiv))[0]&&t.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,n[0]),(i=t.datepicker._get(s,"onSelect"))?(a=t.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[a,s])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),r=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),r=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),r=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),r=e.ctrlKey||e.metaKey;break;default:r=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):r=!1;r&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,a,n=t.datepicker._getInst(e.target);if(t.datepicker._get(n,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(n,"dateFormat")),a=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||a<" "||!i||i.indexOf(a)>-1},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var i,a,n,s,r,o,l;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e)||(i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(n=(a=t.datepicker._get(i,"beforeShow"))?a.apply(e,[e,i]):{})&&(g(i.settings,n),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),s=!1,t(e).parents().each(function(){return!(s|="fixed"===t(this).css("position"))}),r={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),r=t.datepicker._checkOffset(i,r,s),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":s?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),i.inline||(o=t.datepicker._get(i,"showAnim"),l=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[o]?i.dpDiv.show(o,t.datepicker._get(i,"showOptions"),l):i.dpDiv[o||"show"](o?l:null),t.datepicker._shouldFocusInput(i)&&i.input.focus(),t.datepicker._curInst=i)))},_updateDatepicker:function(e){this.maxRows=4,c=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,a=this._getNumberOfMonths(e),n=a[1],s=e.dpDiv.find("."+this._dayOverClass+" a");s.length>0&&p.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",17*n+"em"),e.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,a){var n=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(a?0:t(document).scrollLeft()),d=document.documentElement.clientHeight+(a?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?n-r:0,i.left-=a&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=a&&i.top===e.input.offset().top+o?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>l&&l>n?Math.abs(i.left+n-l):0),i.top-=Math.min(i.top,i.top+s>d&&d>s?Math.abs(s+o):0),i},_findPos:function(e){for(var i,a=this._getInst(e),n=this._get(a,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,a,n,s,r=this._curInst;!r||e&&r!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(r,"showAnim"),a=this._get(r,"duration"),n=function(){t.datepicker._tidyDialog(r)},t.effects&&(t.effects.effect[i]||t.effects[i])?r.dpDiv.hide(i,t.datepicker._get(r,"showOptions"),a,n):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?a:null,n),i||n(),this._datepickerShowing=!1,(s=this._get(r,"onClose"))&&s.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),a=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===a)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,a){var n=t(e),s=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(s,i+("M"===a?this._get(s,"showCurrentAtPos"):0),a),this._updateDatepicker(s))},_gotoToday:function(e){var i,a=t(e),n=this._getInst(a[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(a)},_selectMonthYear:function(e,i,a){var n=t(e),s=this._getInst(n[0]);s["selected"+("M"===a?"Month":"Year")]=s["draw"+("M"===a?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(n)},_selectDay:function(e,i,a,n){var s,r=t(e);t(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((s=this._getInst(r[0])).selectedDay=s.currentDay=t("a",n).html(),s.selectedMonth=s.currentMonth=i,s.selectedYear=s.currentYear=a,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var a,n=t(e),s=this._getInst(n[0]);i=null!=i?i:this._formatDate(s),s.input&&s.input.val(i),this._updateAlternate(s),(a=this._get(s,"onSelect"))?a.apply(s.input?s.input[0]:null,[i,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,a,n,s=this._get(e,"altField");s&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),a=this._getDate(e),n=this.formatDate(i,a,this._getFormatConfig(e)),t(s).each(function(){t(this).val(n)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,a){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var n,s,r,o,l=0,d=(a?a.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof d?d:(new Date).getFullYear()%100+parseInt(d,10),h=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,u=(a?a.dayNames:null)||this._defaults.dayNames,p=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,g=(a?a.monthNames:null)||this._defaults.monthNames,f=-1,m=-1,_=-1,v=-1,D=!1,k=function(t){var i=n+1<e.length&&e.charAt(n+1)===t;return i&&n++,i},y=function(t){var e=k(t),a="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,n=new RegExp("^\\d{"+("y"===t?a:1)+","+a+"}"),s=i.substring(l).match(n);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},w=function(e,a,n){var s=-1,r=t.map(k(e)?n:a,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(r,function(t,e){var a=e[1];if(i.substr(l,a.length).toLowerCase()===a.toLowerCase())return s=e[0],l+=a.length,!1}),-1!==s)return s+1;throw"Unknown name at position "+l},b=function(){if(i.charAt(l)!==e.charAt(n))throw"Unexpected literal at position "+l;l++};for(n=0;n<e.length;n++)if(D)"'"!==e.charAt(n)||k("'")?b():D=!1;else switch(e.charAt(n)){case"d":_=y("d");break;case"D":w("D",h,u);break;case"o":v=y("o");break;case"m":m=y("m");break;case"M":m=w("M",p,g);break;case"y":f=y("y");break;case"@":f=(o=new Date(y("@"))).getFullYear(),m=o.getMonth()+1,_=o.getDate();break;case"!":f=(o=new Date((y("!")-this._ticksTo1970)/1e4)).getFullYear(),m=o.getMonth()+1,_=o.getDate();break;case"'":k("'")?b():D=!0;break;default:b()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===f?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=c?0:-100)),v>-1)for(m=1,_=v;;){if(_<=(s=this._getDaysInMonth(f,m-1)))break;m++,_-=s}if((o=this._daylightSavingAdjust(new Date(f,m-1,_))).getFullYear()!==f||o.getMonth()+1!==m||o.getDate()!==_)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var a,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,s=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=a+1<t.length&&t.charAt(a+1)===e;return i&&a++,i},d=function(t,e,i){var a=""+e;if(l(t))for(;a.length<i;)a="0"+a;return a},c=function(t,e,i,a){return l(t)?a[e]:i[e]},h="",u=!1;if(e)for(a=0;a<t.length;a++)if(u)"'"!==t.charAt(a)||l("'")?h+=t.charAt(a):u=!1;else switch(t.charAt(a)){case"d":h+=d("d",e.getDate(),2);break;case"D":h+=c("D",e.getDay(),n,s);break;case"o":h+=d("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=d("m",e.getMonth()+1,2);break;case"M":h+=c("M",e.getMonth(),r,o);break;case"y":h+=l("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=t.charAt(a)}return h},_possibleChars:function(t){var e,i="",a=!1,n=function(i){var a=e+1<t.length&&t.charAt(e+1)===i;return a&&e++,a};for(e=0;e<t.length;e++)if(a)"'"!==t.charAt(e)||n("'")?i+=t.charAt(e):a=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":a=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),a=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),s=n,r=this._getFormatConfig(t);try{s=this.parseDate(i,a,r)||n}catch(t){a=e?"":a}t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),t.currentDay=a?s.getDate():0,t.currentMonth=a?s.getMonth():0,t.currentYear=a?s.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,a){var n=null==i||""===i?a:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var a=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,n=a.getFullYear(),s=a.getMonth(),r=a.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=o.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":s+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(n,s));break;case"y":case"Y":n+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(n,s))}l=o.exec(i)}return new Date(n,s,r)}(i):"number"==typeof i?isNaN(i)?a:function(t){var e=new Date;return e.setDate(e.getDate()+t),e}(i):new Date(i.getTime());return(n=n&&"Invalid Date"===n.toString()?a:n)&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),this._daylightSavingAdjust(n)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var a=!e,n=t.selectedMonth,s=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),n===t.selectedMonth&&s===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(a?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(a,-i,"M")},next:function(){t.datepicker._adjustDate(a,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(a)},selectDay:function(){return t.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(a,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,a,n,s,r,o,l,d,c,h,u,p,g,f,m,_,v,D,k,y,w,b,M,C,x,I,N,S,T,F,Y,A,W,E,j,O,L,K,H,P=new Date,R=this._daylightSavingAdjust(new Date(P.getFullYear(),P.getMonth(),P.getDate())),U=this._get(t,"isRTL"),z=this._get(t,"showButtonPanel"),B=this._get(t,"hideIfNoPrevNext"),q=this._get(t,"navigationAsDateFormat"),J=this._getNumberOfMonths(t),V=this._get(t,"showCurrentAtPos"),$=this._get(t,"stepMonths"),X=1!==J[0]||1!==J[1],G=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(t,"min"),Z=this._getMinMaxDate(t,"max"),tt=t.drawMonth-V,et=t.drawYear;if(tt<0&&(tt+=12,et--),Z)for(e=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-J[0]*J[1]+1,Z.getDate())),e=Q&&e<Q?Q:e;this._daylightSavingAdjust(new Date(et,tt,1))>e;)--tt<0&&(tt=11,et--);for(t.drawMonth=tt,t.drawYear=et,hoje=new Date,i=this._get(t,"prevText"),i=q?this.formatDate(i,this._daylightSavingAdjust(new Date(et,tt-$,1)),this._getFormatConfig(t)):i,a=this._canAdjustMonth(t,-1,et,tt)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><svg class='navigator-arrows ui-icon svg-icon'><use xlink:href='#svg-single-arrow-left' /></svg></a>":B?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(U?"e":"w")+"'>"+i+"</span></a>",n=this._get(t,"nextText"),n=q?this.formatDate(n,this._daylightSavingAdjust(new Date(et,tt+$,1)),this._getFormatConfig(t)):n,s=this._canAdjustMonth(t,1,et,tt)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+n+"'><svg class='navigator-arrows ui-icon svg-icon'><use xlink:href='#svg-single-arrow-right' /></svg></a>":B?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(U?"w":"e")+"'>"+n+"</span></a>",et>=hoje.getFullYear()&&tt>=hoje.getMonth()&&(s="<a class='ui-datepicker-next ui-datepicker-disabled'><svg class='navigator-arrows ui-icon svg-icon'><use xlink:href='#svg-single-arrow-right' /></svg></a>"),r=this._get(t,"currentText"),o=this._get(t,"gotoCurrent")&&t.currentDay?G:R,r=q?this.formatDate(r,o,this._getFormatConfig(t)):r,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",d=z?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(U?l:"")+(this._isInRange(t,o)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+(U?"":l)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,h=this._get(t,"showWeek"),u=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),dayNamesMinShort=this._get(t,"dayNamesShort"),g=this._get(t,"monthNames"),f=this._get(t,"monthNamesShort"),m=this._get(t,"monthNamesLower"),_=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),D=this._get(t,"selectOtherMonths"),k=this._getDefaultDate(t),y="",b=0;b<J[0];b++){for(M="",this.maxRows=4,C=0;C<J[1];C++){if(x=this._daylightSavingAdjust(new Date(et,tt,t.selectedDay)),I=" ui-corner-all",N="",X){if(N+="<div class='ui-datepicker-group",J[1]>1)switch(C){case 0:N+=" ui-datepicker-group-first",I=" ui-corner-"+(U?"right":"left");break;case J[1]-1:N+=" ui-datepicker-group-last",I=" ui-corner-"+(U?"left":"right");break;default:N+=" ui-datepicker-group-middle",I=""}N+="'>"}for(N+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+I+"'>"+(/all|left/.test(I)&&0===b?U?s:a:"")+(/all|right/.test(I)&&0===b?U?a:s:"")+this._generateMonthYearHeader(t,tt,et,Q,Z,b>0||C>0,g,f)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=h?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;w<7;w++)S+="<th scope='col'"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+u[T=(w+c)%7]+"'>"+p[T]+"</span></th>";for(N+=S+"</tr></thead><tbody>",F=this._getDaysInMonth(et,tt),et===t.selectedYear&&tt===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,F)),Y=(this._getFirstDayOfMonth(et,tt)-c+7)%7,A=Math.ceil((Y+F)/7),W=X&&this.maxRows>A?this.maxRows:A,this.maxRows=W,E=this._daylightSavingAdjust(new Date(et,tt,1-Y)),j=0;j<W;j++){for(N+="<tr>",O=h?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(E)+"</td>":"",w=0;w<7;w++)_dateCalendar=E.getFullYear()+("0"+E.getMonth()).slice(-2)+("0"+E.getDate()).slice(-2),_dateCalendarToday=hoje.getFullYear()+("0"+hoje.getMonth()).slice(-2)+("0"+hoje.getDate()).slice(-2),pastDate=!1,parseInt(_dateCalendar)<=parseInt(_dateCalendarToday)&&(pastDate=!0),searchLink="http://"+window.location.hostname+"/"+E.getFullYear()+"/"+(E.getMonth()+1)+"/?s=&day="+E.getDate(),L=_?_.apply(t.input?t.input[0]:null,[E]):[!0,""],H=(K=E.getMonth()!==tt)&&!D||!L[0]||Q&&E<Q||Z&&E>Z,O+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(K?" ui-datepicker-other-month":"")+(E.getTime()===x.getTime()&&tt===t.selectedMonth&&t._keyEvent||k.getTime()===E.getTime()&&k.getTime()===x.getTime()?" "+this._dayOverClass:"")+(H?" "+this._unselectableClass+" ui-state-disabled":"")+(K&&!v?"":" "+L[1]+(E.getTime()===G.getTime()?" "+this._currentClass:"")+(E.getTime()===R.getTime()?" ui-datepicker-today":""))+"'"+(K&&!v||!L[2]?"":" title='"+L[2].replace(/'/g,"&#39;")+"'")+(H?"":" data-handler='selectDay ' data-event='click' data-year='"+E.getFullYear()+"'")+">"+(K&&!v?"&#xa0;":H||!pastDate?"<span class='ui-state-default "+E.getTime()+"'>"+E.getDate()+"</span>":"<a class='ui-state-default"+(E.getTime()===R.getTime()?" ui-state-highlight":"")+(E.getTime()===G.getTime()?" ui-state-active":"")+(K?" ui-priority-secondary":"")+"' href='"+searchLink+"'>"+E.getDate()+"</a>")+"</td>",E.setDate(E.getDate()+1),E=this._daylightSavingAdjust(E);N+=O+"</tr>"}mesBusca=m[tt],mesNum=tt+1,mesNum=("0"+mesNum).slice(-2),anoNum=et,searchLinkMonth="http://"+window.location.hostname+"/"+anoNum+"/"+mesNum+"/?s=&month="+mesNum,tt++,M+=N+="</tbody></table><div class='all-month-results'><a href='"+searchLinkMonth+"'>Visualizar todos os posts de "+mesBusca+"</a></div>"+(X?"</div>"+(J[0]>0&&C===J[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),tt>11&&(tt=0,et++)}y+=M}return y+=d,t._keyEvent=!1,y},_generateMonthYearHeader:function(t,e,i,a,n,s,r,o){var l,d,c,h,u,p,g,f,m=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),D="<div class='ui-datepicker-title'>",k="";if(s||!m)k+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=a&&a.getFullYear()===i,d=n&&n.getFullYear()===i,k+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=a.getMonth())&&(!d||c<=n.getMonth())&&(k+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+o[c]+"</option>");k+="</select>"}if(v||(D+=k+(!s&&m&&_?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",s||!_)D+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(h=this._get(t,"yearRange").split(":"),u=(new Date).getFullYear(),g=(p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10);return isNaN(e)?u:e})(h[0]),f=Math.max(g,p(h[1]||"")),g=a?Math.max(g,a.getFullYear()):g,f=n?Math.min(f,n.getFullYear()):f,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";g<=f;g++)t.yearshtml+="<option value='"+g+"'"+(g===i?" selected='selected'":"")+">"+g+"</option>";t.yearshtml+="</select>",D+=t.yearshtml,t.yearshtml=null}return D+=this._get(t,"yearSuffix"),v&&(D+=(!s&&m&&_?"":"&#xa0;")+k),D+="</div>"},_adjustInstDate:function(t,e,i){var a=t.drawYear+("Y"===i?e:0),n=t.drawMonth+("M"===i?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(a,n))+("D"===i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(a,n,s)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),n=i&&e<i?i:e;return a&&n>a?a:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,a){var n=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,a+(e<0?e:n[0]*n[1]),1));return e<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,a,n=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),r=null,o=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),a=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=a),i[1].match(/[+\-].*/)&&(o+=a)),(!n||e.getTime()>=n.getTime())&&(!s||e.getTime()<=s.getTime())&&(!r||e.getFullYear()>=r)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,a){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(a,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),n,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new h,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.11.4";t.datepicker}),expose.init=function(){$(this.dom).datepicker()}; });    def('facebook-profile', function(){ !function(e,t,n){var o,c=e.getElementsByTagName(t)[0];e.getElementById(n)||((o=e.createElement(t)).id=n,o.src="//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.6",c.parentNode.insertBefore(o,c))}(document,"script","facebook-jssdk"); });    def('article-wrapper', function(){ function makeScrollable(i){var o=$(".row",i.dom);o.length&&(o.find(".instagram-media").length&&window.instgrm&&window.instgrm.Embeds&&window.instgrm.Embeds.process(),$(".scrollFixed, [class$=fixed]",i.dom).scrollfix({limit:o,marginTop:50}),$(".ads:not(.native-related):not(.slot-b .ads)",i.dom).css("position","inherit"),(i.breakpoints.checkin(["md"])||i.breakpoints.checkin(["lg"]))&&$(".ads:not(.native-related):not(.slot-b .ads)",i.dom).scrollfix({limit:o,marginTop:10}))}include("breakpoints"),expose.init=function(){var i=this;(this.breakpoints.checkin("xs")||this.breakpoints.checkin("sm"))&&$(".read-more-btn .btn",i.dom).on("click",function(){window.uolads&&window.uolads.push({id:$(".ads",i.dom).children().attr("id")})}),$(".ads",i.dom).css("margin-top","0"),document.onreadystatechange=function(){"complete"===document.readyState&&makeScrollable(i)},ucopy.init([".text",".p-author-local","header h1"]),setTimeout(function(){makeScrollable(i)},1500),$(window).on("resize",function(){makeScrollable(i)})}; });    def('header', function(){ include("/src/hammer/2.0.4/hammer.min","breakpoints","/src/notification-email/script");var header,headerHeight,hammer,win=$(window),showMenu=!1,fixed=!1;expose.markTouchMenu=function(){this.isTouchDevice()&&$(".header").addClass("touchDevice")},expose.isTouchDevice=function(){return"ontouchstart"in window},expose.openSubmenu=function(e){var s=".choosen-item.arrow",i=s.replace(/\./g," "),t=$(s),o=$(e);t.removeClass(i).siblings(".nav-stations-submenu").hide(),t[0]!=o[0]&&o.addClass(i).siblings(".nav-stations-submenu").show()},expose.userInterface=function(){var e=$(this.dom),s=this,i=!1,t=!1,o="",n=".menu-wrapper-mobile",a=".menu-click",c=".nav-menus",r=".close-mask",l=[".stations-list",".channels-list",n,r],d=function(){$(c).find(".stations-list, #"+o).toggleClass("hide-list")},h=function(){$(n,e).toggleClass("show-submenu"),$(a,e).toggleClass("hidden"),showMenu=!showMenu,l.forEach(function(e,s){f(l[s])}),m()},f=function(e){var s=fixed?window.innerHeight-headerHeight:window.innerHeight-(headerHeight-win.scrollTop());$(e).css("height",s)};e.find(r).css("width",$(window).width()-260);var u=0,m=function(){i&&-1*$("body").offset().top<=u?u=$("body").scrollTop():!i&&-1*$("body").offset().top<=u&&(u=-1*$("body").offset().top);$("body").scrollTop();var s=-Math.abs($("body").scrollTop()),t=-s;if(i){if(0==$("body").scrollTop()&&0==$("body").offset().top&&0==u){var o=0;$(".bannersticky-top-container").length>0&&(o=$(".bannersticky-top-container").height()),$(".bannersmart").attr("style")||(o+=$(".bannersmart").height()),e.css("top",o)}else e.css("top",t);var n=document.body;divMask=document.createElement("div"),divMask.classList.add("mobile-mask"),n.insertBefore(divMask,n.firstChild),$("body").css("top",s)}else $("div.mobile-mask").remove(),e.css("top",0),$(".widgetNotify").css("padding-top","auto");header.hasClass("is-fixed")&&header.removeClass("is-fixed"),$("body").toggleClass("lock-screen"),e.toggleClass("opened-header"),window.scrollTo(0,u),l.forEach(function(s,i){f(l[i]),e.find(r).css("width",$(window).width()-260)})};window.onresize=function(){l.forEach(function(s,i){f(l[i]),e.find(r).css("width",$(window).width()-260)})};var v=function(e){var s={container:e.closest(".container"),submenuBox:e.find(".nav-stations-submenu"),submenuSize:e.offset().left+e.width()};if(s.submenuBoxSize=e.offset().left+s.submenuBox.width(),s.containerSize=s.container.offset().left+s.container.width(),s.submenuBoxSize>s.containerSize){var i=s.submenuSize-s.containerSize-10;s.submenuBox.css("right",i)}};s.isTouchDevice()||$(".nav-stations-item").hover(function(e){!function(e){e.offset().left,e.width();var s=e.find(".nav-stations-submenu"),i=(e.offset().left,s.width(),e.closest(".container")),t=(i.offset().left,i.offset().left,i.width(),e.find(".menu-station")),o="choosen-item";s.length>0&&(o="choosen-item arrow"),t.toggleClass(o)}($(this)),v($(this))}),hammer.on("tap",function(e){var i=$(e.target);i.siblings(".nav-stations-submenu").length&&(e.preventDefault(),s.openSubmenu(i),v($(e.target).parent()))}),$(this.dom).on("click keyup",function(e){var n=$(e.target);if(s.isTouchDevice()&&n.siblings(".nav-stations-submenu").length&&e.preventDefault(),n.hasClass("menu-click"))i=!i,h(),t&&(d(),t=!1);else if(n.hasClass("back-to-stations")||n.closest(".back-to-stations").length>0)o=n.closest(".channels-list").attr("id"),n.closest(c).find(".stations-list, #"+o).toggleClass("hide-list"),t=!0;else if(n.attr("data-id"))o=n.attr("data-id"),n.closest(c).find(".stations-list, #"+o).toggleClass("hide-list");else if(i&&(n.hasClass("close-mask")||n.hasClass("close-button")||1===n.closest(".close-button").length))i=!1,h(),t&&(d(),t=!1);else if(1==n.closest(".search-anchor").length){e.preventDefault(),n.closest(".search-anchor").siblings(".search-box").addClass("show-search-box").find(".search-query").focus().val(""),$("#widgetNotify").addClass("is-active-search")}}),$(".search-query",this.dom).on("focusout",function(){var e=this;setTimeout(function(){$(e).parents(".search-box").removeClass("show-search-box"),$("#widgetNotify").removeClass("is-active-search")},100)}),"black"===e.attr("data-widget")&&setTimeout(function(){$("#widgetNotify").addClass("black")},1e3)},expose.showItens=function(e){var s=this.dom.querySelector(".uol-sac");!s||0!==e&&3!==e?-1===s.className.indexOf("hidden")&&(s.className+=" hidden"):s.className=s.className.replace(" hidden","")},expose.scrollBack=function(){var e,s,i,t=0,o=0,n=header.css("transition-duration")||"0.2s",a=($(".bannersticky-top "),this);n=n.indexOf("ms")>-1?parseFloat(n):1e3*parseFloat(n),header.height(header.height()).css("overflow","visible"),win.on("scroll touch",function(c){if(-1==document.body.className.indexOf("modal-open")){var r=win.scrollTop();s=o-t>(a.breakpoints.checkin("xs"),50),fixed=r>headerHeight,i=i&&i.length?i:$(".widgetNotify"),fixed?(header.addClass("is-fixed"),i.addClass("is-fixed")):(header.removeClass("is-fixed"),i.removeClass("is-fixed"),headerHeight=header.height()+header.offset().top);var l=$(a.dom).is(".header-thin")||a.breakpoints.checkin("xs")||a.breakpoints.checkin("sm")?50:100;$("body").css("padding-top",header.hasClass("is-fixed")&&fixed?l:0),$(".share-vertical").css("padding-top",$(".sponsor").hasClass("fixed")?50:0);var d=1==i.find(".closed").size();showMenu||(fixed&&!s&&d?(i.addClass("is-closed"),clearTimeout(e),header.css("overflow","hidden"),header.css("height",0)):(i.removeClass("is-closed"),clearTimeout(e),e=setTimeout(function(){header.css("overflow","visible")},n),header.css("height",l)),t<r&&(o=r),t=r)}})},expose.selectMenu=function(){var e=$(this.dom);if("undefined"!=typeof Collection){var s=e.find(".principal-item").siblings(".nav-stations-submenu").find(".nav-items:first-child").find("li"),t=e.find(".principal-item").find("li"),o=Collection.titulo,n=["cinema","musica","urban taste"],a=!1;for(i=0;i<n.length;i++)n[i]===Collection.channel&&(a=!0);/ultimas/.test(Collection.slug)&&!a&&(o="Últimas notícias"),s.each(function(e){0===e?$(this).children().removeClass("choosen"):$(this).children().text().toLowerCase()===o.toLowerCase()&&$(this).children().addClass("choosen")}),t.each(function(e){0===e?$(this).removeClass("choosen"):$(this).text().toLowerCase()===o.toLowerCase()&&$(this).addClass("choosen")})}},expose.clickLogger=function(){for(var e=/chn:\d+;creative:(linkfixo_menu|barrauol)(_mobile)?;/,s="chn:"+$(this.dom).attr("data-chn-id")+";creative:$1$2;",i=this.dom.querySelectorAll("a"),t=i.length;t--;){var o=i[t],n=o.href;!0===e.test(n)&&(o.href=n.replace(e,s))}},expose.init=function(){window.UHeader=window.UHeader||{init:function(){}},hammer=new Hammer(this.dom),header=$(this.dom),headerHeight=header.height()+header.offset().top,this.userInterface(),this.scrollBack(),this.selectMenu(),this.clickLogger(),this.markTouchMenu()}; });    def('like-dislike-content', function(){ include("angular"),expose.init=function(){var e=angular.module("like-dislike-content",[]),t=this.dom;e.controller("LikedislikeController",["$scope",function(e){var n=!1,i="",l="init",o=!1,a=!1;function r(){o=!0,clearTimeout(i),a?l&&g(!0):c(!1)}function u(e){o&&(e||(l==n||a||(s(!1),c(!0)),o=!1))}function c(e){var t=lib["babel-login"].isLogged(),i={};if(!e){if(i=n?{reference:"voto-positivo",action:"clique",component:"login-news-feedback"}:{reference:"voto-negativo",action:"clique",component:"login-news-feedback"},t){var l={reference:i.reference,action:"logged-user-success",component:i.component};hitAudience.countEvent(l)}hitAudience.countClick(i)}}function s(i){n?(e.likedByMe=!0,e.dislikedByMe=!1,e.noItDislike=!0,e.noItlike=!1):(e.likedByMe=!1,e.dislikedByMe=!0,e.noItDislike=!1,e.noItlike=!0),i||g(!1),function(){a=!0,e.handisBlockLike=!n,e.handisBlockDislike=!0,l=n;var i=t.querySelectorAll(".like-dislike-content .babel-login");$(i).removeClass("babel-login")}(),function(){var e=localStorage.getItem("tbJoinha");null==(e=JSON.parse(e))&&(e=[]);!function(e){var i=new Date;for(var l in e){var o=JSON.parse(e[l]);if(new Date(o.TimeStamp)<i){var a=l;e.splice(a,1),localStorage.setItem("tbJoinha",JSON.stringify(e))}}var e=localStorage.getItem("tbJoinha");null==(e=JSON.parse(e))&&(e=[]);!function(e){var i=t.querySelector(".share").getAttribute("data-url"),l="",o=new Date;o.setDate(o.getDate()+7),l=o;var a=JSON.stringify({URL:i,TimeStamp:l.getTime(),isUtil:n});e.push(a),localStorage.setItem("tbJoinha",JSON.stringify(e))}(e)}(e)}(),!e.$$phase&&e.$apply()}function g(l){var o=t.querySelector(".like-dislike-content .over-tooltip"),a=t.querySelector(".like-dislike-content .tooltip"),r=t.querySelector(".like-dislike-content .arrow");n?(angular.element(r).show(),angular.element(a).show(),angular.element(o).show(),i=setTimeout(function(){angular.element(r).hide(),angular.element(a).hide(),angular.element(o).hide(),!e.$$phase&&e.$apply()},1e4)):(angular.element(r).hide(),angular.element(a).hide(),angular.element(o).hide()),l&&!e.$$phase&&e.$apply()}e.like=function(e,t){n=!0,r()},e.dislike=function(e,t){n=!1,r()},e.load=function(){var e=t.querySelector(".like-dislike-content .tooltip");t.querySelector(".content-text-tooltip")||angular.element(e).prepend('<div class="content-text-tooltip">Legal, quer compartilhar?</div>'),function(){var e="unLike",i=localStorage.getItem("tbJoinha");null==(i=JSON.parse(i))?i=[]:e=function(e){for(var n in e){var i=JSON.parse(e[n]);if(i.URL==t.querySelector(".share").getAttribute("data-url"))return i.isUtil}return"unLike"}(i);"unLike"!=e&&(n=!(!e&&"true"!=e),s(!0))}()},events.push("babel.user.logged",null,function(e,t){u(!1)}),events.push("babel.user.login.fail",null,function(e){u(!0)}),events.push("babel.user.login.success",null,function(e,t){u(!1)})}]),angular.bootstrap(this.dom,["like-dislike-content"])}; });    def('author', function(){ function metodoPrivado(){}include("modal"),expose.init=function(){}; });    def('report-error', function(){ include("modal"),expose.init=function(){var e=this;this.on("click",null,function(a,t){this.modal.open({type:"report-error",args:{}}).onshow=function(){var a={link:$(t).parents("[data-url]").attr("data-url")||document.documentURI||Config.channel.link,station:Config.portal.title,single:e.dom.getAttribute("data-title")||""};$(this.dom).find(".ep-source").html(a.single),$(".c-e").text(a.station);var n=function(e){var a,t=null,n=null;switch(e.type){case"email":n=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;break;case"text":t=4;break;case"textarea":t=10;break;default:t=0}return n&&(a=n.test(e.value)),t&&(a=e.value.length>=t),a};$("form",this.dom).on("submit",function(e){var t=$(this).parents(".modal"),s=t.find('input[type!="hidden"], textarea'),l=[],o="Não";try{var i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");i&&(o="Sim"),console.log(i)}catch(e){console.log(i),null!=navigator.mimeTypes["application/x-shockwave-flash"]&&(o="Sim")}var r=o+" - "+function(){try{try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{e.AllowScriptAccess="always"}catch(e){return"6,0,0"}}catch(e){}return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){}}return"0,0,0"}(),c=!0===navigator.cookieEnabled?"1":"0";if(t.find('[name="cookies"]')[0].value=c,t.find('[name="flash"]')[0].value=r,s&&s.length>0&&s.each(function(){var e=[];e.label=$(this).closest(".form-group").find("label.error"),e.type=$(this).attr("type")||$(this).prop("tagName").toLowerCase(),e.value=$(this).val(),$(this)[n(e)?"removeClass":"addClass"]("error"),e.label[n(e)?"addClass":"removeClass"]("hidden"),n(e)||l.push(!1)}),t.find(".modal-wrapper").attr("data-success",[0==l.length?"1":"0"]),t.find(".modal-success")[0==l.length?"removeClass":"addClass"]("hidden"),t.find(".alert-danger")[0==l.length?"addClass":"removeClass"]("ghost"),t.find(".modal-form")[0==l.length?"addClass":"removeClass"]("hidden"),0==l.length){var h={estacao:t.find('[name="estacao"]').val(),flash:r,cookies:c,link:a.link,titulo:a.single||a.station,nome:t.find('[name="nome"]').val(),email:t.find('[name="email"]').val(),mensagem:t.find('[name="mensagem"]').val()};console.log(h);$.ajax({url:"https://services.uol.com/see/",data:h,dataType:"json",type:"POST",success:function(e){console.log(e)},error:function(){console.log("Erro")}}),e.preventDefault()}}),$("input[type=text], input[type=email], textarea",this.dom).on("focus",function(){$(this).parents().find(".alert-danger").addClass("ghost");return $(this).removeClass("error"),$(this).parents(".form-group").find("label.error").addClass("hidden"),!1})}})}; });    def('back-to-top', function(){ !function(){"use strict";expose.bind=function(){var o=$(this.dom).parent(),t={min:1200,show:!1,view:$(document).height()};$(window).scroll(function(){var i=$(document).scrollTop().valueOf()+$(window).height();t.show?i<t.min&&(t.show=!1):i>=t.min&&(t.show=!0),o.attr("data-show",t.show)}),o.find("[data-backtop]").click(function(){$("html, body").animate({scrollTop:0},1e3)})},expose.init=function(){this.bind()},expose.selector=".back-to-top .box"}(); });    def('bannersticky', function(){ !function(){"use strict";expose.init=function(){var e=this;setTimeout(function(){var i=$(".article.scroll-base .divider.separator");if(null==$(".title-header").height())var t=$(".blog-header");else t=$(".title-header");if(null!=$(".title-kicker").height()&&null==$(".title-header").height())t=$(".title-kicker");if(null!=$(".title-header-image").height()&&null==$(".title-header").height())t=$(".title-header-image");if("mobile"==Config.platform&&null==$(".title-header")&&null!=$(".h-headline").height())t=$(".h-headline");var n=$(".bannersticky-top-container"),o=$(".bannersticky-top");function r(){-1==window.location.search.substring(1).indexOf("testeTopoFixo")?n.css("min-height",o.css("height")):$("#banner-responsive-top-horizontal-1").find("iframe").css({height:"230px","background-color":"#000",border:"1px solid #000"})}if(r(),o.show(),i.size()>0&&i.offset().top<t.offset().top)var l=i.first();else{if(!(t.size()>0&&t.is(":visible")))return void o.css("position","relative");l=t}$(".bannersticky-top",e.dom).scrollfix({limit:l}),$(window).on("resize",function(){o.css("width",document.querySelector("body").getBoundingClientRect().width+"px"),r()});var s=0,a=setInterval(function(){s++,r(),s>=5&&clearInterval(a)},1e3)},1e3)},expose.selector=".bannersticky-top-container"}(); });    def('tools', function(){ include("breakpoints"),expose.animationButton=function(){var n=this;setTimeout(function(){var t=$(n.dom).find(".animate");t.length>0&&(t.addClass("show"),setTimeout(function(){t.removeClass("show")},1e3))},1e3)},expose.init=function(){this.animationButton()}; });    def('tooltip', function(){ !function(){"use strict";include("breakpoints"),expose.selector=".tooltip-container";var t={init:function(){t.binds.call(this)},binds:function(){var o=this;"ontouchstart"in window?($(this.dom).on("click",".open-tooltip, .icon-close",function(i){t.toggle.call(o,i.type,!0)}),$(this.dom).find(".tooltip").on("scroll",t.scroll)):$(this.dom).hasClass("show-opened")?($(this.dom).find(".arrow").show(),$(this.dom).find(".tooltip").show(),$(this.dom).find(".icon-close").on("click",function(t){t.preventDefault(),$(this).parents(".over-tooltip").find(".arrow, .tooltip").hide()})):$(this.dom).on("mouseenter mouseleave",".w-tooltip",function(i){t.toggle.call(o,i.type,!1)})},toggle:function(o,i){var e,n="open"==(e=i?"none"==$(this.dom).find(".tooltip").css("display")?"open":"close":"mouseenter"==o?"open":"close")?["fadeIn","addClass"]:["fadeOut","removeClass"];(lib.breakpoints.checkin(["sm"])||lib.breakpoints.checkin(["md"]))&&("open"==e?$(this.dom).parents(".article, .readme").bind("touchstart",function(){0==$(event.touches[0].target).parents(".tooltip").length&&t.toggle.call(self,"touchend",!0)}):$(this.dom).parents(".article, .readme").unbind("touchstart"));var s=this.dom?this.dom:".tooltip-container";$(s).find(".tooltip").stop()[n[0]](300),$(s).find(".arrow").stop()[n[0]](300),$(s).find(".over-tooltip")[n[1]]("active")},scroll:function(){this.scrollTop>10?$(this).find("header").addClass("border"):$(this).find("header").removeClass("border")}};expose.init=function(){(function(){var t=$(this.dom).find(".w-tooltip"),o=t.find(".tabs a"),i=t.find(".tab-item");o.on("click",function(t){t.preventDefault();var e=this;o.each(function(t){$(this)[e==this?"addClass":"removeClass"]("active"),i.eq(t)[e==this?"show":"hide"]()})})}).call(this),t.init.call(this)}}(); });    def('widget-profile', function(){ !function(e,t,n){expose.init=function(){var o,i,r=this.dom,a=JSON.parse(r.getAttribute("data-config")),l=e.getElementsByTagName(t)[0];if(!e.getElementById(n)){(i=e.createElement(t)).id=n,i.src=a.sourceJs;var s=function(e){try{instances.header[0].showItens(e)}catch(e){console.error("[widget-profile] A função instances.header[0].showItens() não existe!")}};i.onload=i.onreadystatechange=function(){i.onload=null,i.onreadystatechange=null,o=setInterval(function(){if("undefined"==typeof UOL)return!1;if(clearInterval(o),UOL.hasOwnProperty("perfil")&&UOL.perfil.hasOwnProperty("widgets")&&UOL.perfil.widgets.hasOwnProperty("Notify")&&"function"==typeof UOL.perfil.widgets.Notify){var e=lib["babel-login"];window.widgetProfile=UOL.perfil.widgets.Notify({avatarSize:a.avatarSize,avatarIconColor:a.avatarIconColor,widgetStyle:{username:a.widgetStyle.username,counter:a.widgetStyle.counter,zIndex:a.widgetStyle.zIndex},responsive:!0,linkCheckout:{sg:"2668383698",sa:a["ga-id"]},target:"profile-avatar",portal:Config.portal.slug,callbacks:{onInit:function(e){var t=e.auth.isLogged?1:0;s(t)},onLogin:function(t){s(1),c(t),e&&e.setSession(t)},onLogout:function(t){s(0),c(t),e&&e.logout(t)}}})}else s(2)},200)};var c=function(e){var t=document.querySelector(".header").querySelector("#uol-mail-link"),n=t.querySelector(".mail-notification");e.auth.isLogged?NotificacaoUOL.init(function(e){t.href="http://click.uol.com.br/?rf=uolheader&amp;pos=header;e-mail&amp;u="+e.url,e.count>=1&&(n.innerHTML='<em class="'+e.moreThan+'">'+e.countStr+"</em>")}):n.innerHTML=""};i.onerror=function(){s(3)},l.parentNode.insertBefore(i,l)}}}(document,"script","widget-profile-jssdk"); });  