/*
 jQuery blockUI plugin
 Version 2.66.0-2013.10.09
 Requires jQuery v1.7 or later

 Examples at: http://malsup.com/jquery/block/
 Copyright (c) 2007-2013 M. Alsup
 Dual licensed under the MIT and GPL licenses:
 http://www.opensource.org/licenses/mit-license.php
 http://www.gnu.org/licenses/gpl.html

 Thanks to Amir-Hossein Sobhi for some excellent contributions!
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(e,b,h){e instanceof String&&(e=String(e));for(var n=e.length,l=0;l<n;l++){var r=e[l];if(b.call(h,r,l,e))return{i:l,v:r}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,b,h){if(e==Array.prototype||e==Object.prototype)return e;e[b]=h.value;return e};$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<e.length;++b){var h=e[b];if(h&&h.Math==Math)return h}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(e,b){var h=$jscomp.propertyToPolyfillSymbol[b];if(null==h)return e[b];h=e[h];return void 0!==h?h:e[b]};
$jscomp.polyfill=function(e,b,h,n){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,b,h,n):$jscomp.polyfillUnisolated(e,b,h,n))};$jscomp.polyfillUnisolated=function(e,b,h,n){h=$jscomp.global;e=e.split(".");for(n=0;n<e.length-1;n++){var l=e[n];if(!(l in h))return;h=h[l]}e=e[e.length-1];n=h[e];b=b(n);b!=n&&null!=b&&$jscomp.defineProperty(h,e,{configurable:!0,writable:!0,value:b})};
$jscomp.polyfillIsolated=function(e,b,h,n){var l=e.split(".");e=1===l.length;n=l[0];n=!e&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var r=0;r<l.length-1;r++){var v=l[r];if(!(v in n))return;n=n[v]}l=l[l.length-1];h=$jscomp.IS_SYMBOL_NATIVE&&"es6"===h?n[l]:null;b=b(h);null!=b&&(e?$jscomp.defineProperty($jscomp.polyfills,l,{configurable:!0,writable:!0,value:b}):b!==h&&(void 0===$jscomp.propertyToPolyfillSymbol[l]&&(h=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[l]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(l):$jscomp.POLYFILL_PREFIX+h+"$"+l),$jscomp.defineProperty(n,$jscomp.propertyToPolyfillSymbol[l],{configurable:!0,writable:!0,value:b})))};$jscomp.polyfill("Array.prototype.find",function(e){return e?e:function(b,h){return $jscomp.findInternal(this,b,h).v}},"es6","es3");
(function(){function e(b){function h(c,a){var f=c==window,d=a&&void 0!==a.message?a.message:void 0;a=b.extend({},b.blockUI.defaults,a||{});if(!a.ignoreIfBlocked||!b(c).data("blockUI.isBlocked")){a.overlayCSS=b.extend({},b.blockUI.defaults.overlayCSS,a.overlayCSS||{});var m=b.extend({},b.blockUI.defaults.css,a.css||{});a.onOverlayClick&&(a.overlayCSS.cursor="pointer");var p=b.extend({},b.blockUI.defaults.themedCSS,a.themedCSS||{});d=void 0===d?a.message:d;f&&t&&n(window,{fadeOut:0});if(d&&"string"!=
typeof d&&(d.parentNode||d.jquery)){var k=d.jquery?d[0]:d,g={};b(c).data("blockUI.history",g);g.el=k;g.parent=k.parentNode;g.display=k.style.display;g.position=k.style.position;g.parent&&g.parent.removeChild(k)}b(c).data("blockUI.onUnblock",a.onUnblock);g=a.baseZ;var w=x||a.forceIframe?b('<iframe class="blockUI" style="z-index:'+g++ +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+a.iframeSrc+'"></iframe>'):b('<div class="blockUI" style="display:none"></div>');
k=a.theme?b('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+g++ +';display:none"></div>'):b('<div class="blockUI blockOverlay" style="z-index:'+g++ +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');a.theme&&f?(g='<div class="blockUI '+a.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(g+10)+';display:none;position:fixed">',a.title&&(g+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+
(a.title||"&nbsp;")+"</div>"),g+='<div class="ui-widget-content ui-dialog-content"></div></div>'):a.theme?(g='<div class="blockUI '+a.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(g+10)+';display:none;position:absolute">',a.title&&(g+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(a.title||"&nbsp;")+"</div>"),g+='<div class="ui-widget-content ui-dialog-content"></div></div>'):g=f?'<div class="blockUI '+a.blockMsgClass+' blockPage" style="z-index:'+
(g+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+a.blockMsgClass+' blockElement" style="z-index:'+(g+10)+';display:none;position:absolute"></div>';g=b(g);d&&(a.theme?(g.css(p),g.addClass("ui-widget-content")):g.css(m));a.theme||k.css(a.overlayCSS);k.css("position",f?"fixed":"absolute");(x||a.forceIframe)&&w.css("opacity",0);m=[w,k,g];var F=f?b("body"):b(c);b.each(m,function(){this.appendTo(F)});a.theme&&a.draggable&&b.fn.draggable&&g.draggable({handle:".ui-dialog-titlebar",cancel:"li"});
p=G&&(!b.support.boxModel||0<b("object,embed",f?null:c).length);if(A||p){f&&a.allowBodyStretch&&b.support.boxModel&&b("html,body").css("height","100%");if((A||!b.support.boxModel)&&!f){p=parseInt(b.css(c,"borderTopWidth"),10)||0;var B=parseInt(b.css(c,"borderLeftWidth"),10)||0,C=p?"(0 - "+p+")":0,D=B?"(0 - "+B+")":0}b.each(m,function(y,q){q=q[0].style;q.position="absolute";2>y?(f?q.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+
a.quirksmodeOffsetHack+') + "px"'):q.setExpression("height",'this.parentNode.offsetHeight + "px"'),f?q.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):q.setExpression("width",'this.parentNode.offsetWidth + "px"'),D&&q.setExpression("left",D),C&&q.setExpression("top",C)):a.centerY?(f&&q.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),
q.marginTop=0):!a.centerY&&f&&(y=a.css&&a.css.top?parseInt(a.css.top,10):0,q.setExpression("top","((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+y+') + "px"'))})}d&&(a.theme?g.find(".ui-widget-content").append(d):g.append(d),(d.jquery||d.nodeType)&&b(d).show());(x||a.forceIframe)&&a.showOverlay&&w.show();if(a.fadeIn)m=a.onBlock?a.onBlock:z,w=a.showOverlay&&!d?m:z,m=d?m:z,a.showOverlay&&k._fadeIn(a.fadeIn,w),d&&g._fadeIn(a.fadeIn,m);else if(a.showOverlay&&
k.show(),d&&g.show(),a.onBlock)a.onBlock();r(1,c,a);f?(t=g[0],u=b(a.focusableElements,t),a.focusInput&&setTimeout(E,20)):H(g[0],a.centerX,a.centerY);a.timeout&&(d=setTimeout(function(){f?b.unblockUI(a):b(c).unblock(a)},a.timeout),b(c).data("blockUI.timeout",d))}}function n(c,a){var f=c==window,d=b(c),m=d.data("blockUI.history"),p=d.data("blockUI.timeout");p&&(clearTimeout(p),d.removeData("blockUI.timeout"));a=b.extend({},b.blockUI.defaults,a||{});r(0,c,a);null===a.onUnblock&&(a.onUnblock=d.data("blockUI.onUnblock"),
d.removeData("blockUI.onUnblock"));var k=f?b("body").children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI");a.cursorReset&&(1<k.length&&(k[1].style.cursor=a.cursorReset),2<k.length&&(k[2].style.cursor=a.cursorReset));f&&(t=u=null);if(a.fadeOut){var g=k.length;k.stop().fadeOut(a.fadeOut,function(){0===--g&&l(k,m,a,c)})}else l(k,m,a,c)}function l(c,a,f,d){var m=b(d);if(!m.data("blockUI.isBlocked")){c.each(function(p,k){this.parentNode&&this.parentNode.removeChild(this)});a&&a.el&&
(a.el.style.display=a.display,a.el.style.position=a.position,a.parent&&a.parent.appendChild(a.el),m.removeData("blockUI.history"));m.data("blockUI.static")&&m.css("position","static");if("function"==typeof f.onUnblock)f.onUnblock(d,f);c=b(document.body);a=c.width();f=c[0].style.width;c.width(a-1).width(a);c[0].style.width=f}}function r(c,a,f){var d=a==window;a=b(a);if(c||(!d||t)&&(d||a.data("blockUI.isBlocked")))a.data("blockUI.isBlocked",c),d&&f.bindEvents&&(!c||f.showOverlay)&&(c?b(document).bind("mousedown mouseup keydown keypress keyup touchstart touchend touchmove",
f,v):b(document).unbind("mousedown mouseup keydown keypress keyup touchstart touchend touchmove",v))}function v(c){if("keydown"===c.type&&c.keyCode&&9==c.keyCode&&t&&c.data.constrainTabKey){var a=u,f=c.shiftKey&&c.target===a[0];if(!c.shiftKey&&c.target===a[a.length-1]||f)return setTimeout(function(){E(f)},10),!1}a=c.data;var d=b(c.target);if(d.hasClass("blockOverlay")&&a.onOverlayClick)a.onOverlayClick(c);return 0<d.parents("div."+a.blockMsgClass).length?!0:0===d.parents().children().filter("div.blockUI").length}
function E(c){u&&(c=u[!0===c?u.length-1:0])&&c.focus()}function H(c,a,f){var d=c.parentNode,m=c.style,p=(d.offsetWidth-c.offsetWidth)/2-(parseInt(b.css(d,"borderLeftWidth"),10)||0);c=(d.offsetHeight-c.offsetHeight)/2-(parseInt(b.css(d,"borderTopWidth"),10)||0);a&&(m.left=0<p?p+"px":"0");f&&(m.top=0<c?c+"px":"0")}b.fn._fadeIn=b.fn.fadeIn;var z=b.noop||function(){},x=/MSIE/.test(navigator.userAgent),A=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),G=b.isFunction(document.createElement("div").style.setExpression);
b.blockUI=function(c){h(window,c)};b.unblockUI=function(c){n(window,c)};b.growlUI=function(c,a,f,d){var m=b('<div class="growlUI"></div>');c&&m.append("<h1>"+c+"</h1>");a&&m.append("<h2>"+a+"</h2>");void 0===f&&(f=3E3);var p=function(k){k=k||{};b.blockUI({message:m,fadeIn:"undefined"!==typeof k.fadeIn?k.fadeIn:700,fadeOut:"undefined"!==typeof k.fadeOut?k.fadeOut:1E3,timeout:"undefined"!==typeof k.timeout?k.timeout:f,centerY:!1,showOverlay:!1,onUnblock:d,css:b.blockUI.defaults.growlCSS})};p();m.css("opacity");
m.mouseover(function(){p({fadeIn:0,timeout:3E4});var k=b(".blockMsg");k.stop();k.fadeTo(300,1)}).mouseout(function(){b(".blockMsg").fadeOut(1E3)})};b.fn.block=function(c){if(this[0]===window)return b.blockUI(c),this;var a=b.extend({},b.blockUI.defaults,c||{});this.each(function(){var f=b(this);a.ignoreIfBlocked&&f.data("blockUI.isBlocked")||f.unblock({fadeOut:0})});return this.each(function(){"static"==b.css(this,"position")&&(this.style.position="relative",b(this).data("blockUI.static",!0));this.style.zoom=
1;h(this,c)})};b.fn.unblock=function(c){return this[0]===window?(b.unblockUI(c),this):this.each(function(){n(this,c)})};b.blockUI.version=2.66;b.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",
growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1E3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",
onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var t=null,u=[]}"function"===typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)})();
