!function(app,undefined){app.queue=[],app.tasks=[],app.task={src:"",callback:""},app.tasksCompleted={},app.isLoading=!1;var nextTasks=function(){var a=app,b=[];return 0!==a.queue.length&&(b=a.queue.shift()),b},nextScript=function(){var a=app,b=!1;if(!a.isLoading)if(a.isLoading=!0,0===a.tasks.length&&(0===a.queue.length?b=!0:a.tasks=nextTasks()),b||0===a.tasks.length)a.isLoading=!1;else{var c=a.tasks[0].src,d=a.tasks[0].inline;void 0!==c?a.tasksCompleted.hasOwnProperty(c)?(a.isLoading=!1,a.tasks.shift(),nextScript()):(a.tasksCompleted[c]="loading",a.loadScript(c)):void 0!==d?a.loadInlineScript(d):(a.isLoading=!1,a.tasks.shift(),nextScript())}},queueTasks=function(a){app.queue.push(a)};app.loadScriptsSync=function(a){queueTasks(a||[]),self.isLoading||nextScript()},app.loadInlineScript=function(func){var self=app;"function"!=typeof func?eval(func):func(),self.isLoading=!1,self.tasks.shift(),nextScript()},app.loadScript=function(a){var b=document.createElement("script");b.src=a,b.readyState?b.onreadystatechange=function(){var c=app;"loaded"!=b.readyState&&"complete"!=b.readyState||(b.onreadystatechange=null,c.isLoading=!1,c.tasksCompleted[a]="loaded",c.tasks.shift(),nextScript())}:b.onload=function(){var b=app;b.isLoading=!1,b.tasksCompleted[a]="loaded",b.tasks.shift(),nextScript()},document.body.appendChild(b)}}(window.POLITICO_Script_Loader=window.POLITICO_Script_Loader||{});