!function(t,e){t.poll_config.forEach(function(t){function l(l,o){var s=e.getElementById("poll-"+t.id);("false"==s.getAttribute("data-charted")||1==o)&&fetch(t.results).then(function(l){return 200!==l.status?void console.log("Poll "+t.asset_id+" Status Code: "+l.status):void l.json().then(function(l){var r;r="pie"==t.chart?i(l.results):n(l.results),e.getElementById("poll-"+t.id+"-results").innerHTML=r,s.setAttribute("data-charted","true")})})["catch"](function(e){console.log("Fetch Error "+t.asset_id+": ",e)}),r(l)}function r(l){e.getElementById("poll-"+t.id+"-container").classList.add("hide"),e.getElementById("poll-"+t.id+"-results").classList.remove("hide"),l&&e.getElementById("poll-"+t.id+"-back-vote").classList.remove("hide")}function o(t){var e=0;for(var l in t)if(t.hasOwnProperty(l)){var r=t[l],o=r.votes;0===o&&r.text===s&&(o=1),e+=o}return e}function i(e){var l=o(e),r=0,i="100,0",n='
',a='
"+n+"
"}function n(e){var l=o(e),r=0,i=0,n=19,a="";for(var d in e)if(e.hasOwnProperty(d)){var c=e[d],v=c.votes;if(0===v&&c.text===s&&(v=1),0!=v){var u=v/l*100,p=u/2;a+=''+v+" "+c.text+"",r+=v,i+=n+1}}return 0>=r?'