text: /*!
   * jQuery Cookie Plugin v1.3.1
   * https://github.com/carhartl/jquery-cookie
   *
   * Copyright 2013 Klaus Hartl
   * Released under the MIT license
   */
  (function(b){if(typeof define==="function"&&define.amd){define(["jquery"],b)}else{b(jQuery)}}(function(j){var h=/\+/g;function k(a){return a}function g(a){return decodeURIComponent(a.replace(h," "))}function i(b){if(b.indexOf('"')===0){b=b.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{return l.json?JSON.parse(b):b}catch(a){}}var l=j.cookie=function(c,d,A){if(d!==undefined){A=j.extend({},l.defaults,A);if(typeof A.expires==="number"){var b=A.expires,B=A.expires=new Date();B.setDate(B.getDate()+b)}d=l.json?JSON.stringify(d):String(d);return(document.cookie=[l.raw?c:encodeURIComponent(c),"=",l.raw?d:encodeURIComponent(d),A.expires?"; expires="+A.expires.toUTCString():"",A.path?"; path="+A.path:"",A.domain?"; domain="+A.domain:"",A.secure?"; secure":""].join(""))}var y=l.raw?k:g;var a=document.cookie.split("; ");var z=c?undefined:{};for(var e=0,t=a.length;e<t;e++){var f=a[e].split("=");var x=y(f.shift());var w=y(f.join("="));if(c&&c===x){z=i(w);break}if(!c){z[x]=i(w)}}return z};l.defaults={};j.removeCookie=function(a,b){if(j.cookie(a)!==undefined){j.cookie(a,"",j.extend({},b,{expires:-1}));return true}return false}}));!function(H,F,G){var E,J="sortable2",D={drag:true,drop:true,exclude:"",nested:true,vertical:true},x={afterMove:function(a,b){},containerSelector:"ol, ul",distance:0,handle:"",itemSelector:"li",isValidTarget:function(a,b){return true},onCancel:function(b,c,a){},onDrag:function(b,c,a){b.css(c)},onDragStart:function(b,c,a){b.css({height:b.height(),width:b.width()});b.addClass("dragged");H("body").addClass("dragging")},onDrop:function(b,c,a){b.removeClass("dragged").removeAttr("style");H("body").removeClass("dragging")},onMousedown:function(c,a,b){a.preventDefault()},placeholder:'<li class="placeholder"/>',pullPlaceholder:true,serialize:function(a,b,c){var e=H.extend({},a.data());if(c){return b}else{if(b[0]){e.children=b;delete e.subContainer}}delete e.sortable;return e},tolerance:0},u={},A=0;if("ontouchstart" in F){E={start:"touchstart.sortable",end:"touchend.sortable touchcancel.sortable",move:"touchmove.sortable"}}else{E={start:"mousedown.sortable",end:"mouseup.sortable",move:"mousemove.sortable"}}function t(b,c){var e=Math.max(0,b[0]-c[0],c[0]-b[1]),a=Math.max(0,b[2]-c[1],c[1]-b[3]);return e+a}function d(a,b,c){var e=a.slice((c||b)+1||a.length);a.length=b<0?a.length+b:b;return a.push.apply(a,e)}function y(h,b,e){var f=h.length,g=e?"offset":"position";while(f--){var c=h[f].el?h[f].el:H(h[f]),a=c[g]();b[f]=[a.left,a.left+c.outerWidth(true),a.top,a.top+c.outerHeight(true)]}}function I(a,c){var b=c.offset();return{left:a.left-b.left,top:a.top-b.top}}function v(c,a,e){a=[a.left,a.top];e=e&&[e.left,e.top];var b,f=c.length,g=[];while(f--){b=c[f];g[f]=[f,t(b,a),e&&t(b,e)]}g=g.sort(function(h,i){return i[1]-h[1]||i[2]-h[2]||i[0]-h[0]});return g}function w(a,f,h,g){var c=a.find(f),b=c.length;while(b--){var e=c.eq(b).data(J);if(e){e[h](g)}}}function z(a){this.options=H.extend({},x,a);this.containers=[];this.childGroups=[];this.scrolledProxy=H.proxy(this.scrolled,this);this.dragProxy=H.proxy(this.drag,this);this.dropProxy=H.proxy(this.drop,this);if(this.options.parentGroup){this.options.parentGroup.childGroups.push(this)}else{this.placeholder=H(this.options.placeholder);if(!a.isValidTarget){this.options.isValidTarget=G}}}z.get=function(a){if(!u[a.group]){if(!a.group){a.group=A++}u[a.group]=new z(a)}return u[a.group]};z.prototype={dragInit:function(a,b){this.$document=H(b.el[0].ownerDocument);this.toggleListeners("on");this.item=H(a.target).closest(this.options.itemSelector);this.itemContainer=b;this.setPointer(a);this.options.onMousedown(this.item,a,x.onMousedown)},drag:function(a){if(!this.dragging){if(!this.distanceMet(a)){return}w(this.item,this.options.containerSelector,"disable",true);this.options.onDragStart(this.item,this.itemContainer,x.onDragStart);this.item.before(this.placeholder);this.dragging=true}this.setPointer(a);this.options.onDrag(this.item,I(this.pointer,this.item.offsetParent()),x.onDrag);var f=a.pageX,e=a.pageY,b=this.sameResultBox,c=this.options.tolerance;if(!b||b.top-c>e||b.bottom+c<e||b.left-c>f||b.right+c<f){if(!this.searchValidTarget()){this.placeholder.detach()}}},drop:function(a){this.toggleListeners("off");if(this.dragging){if(this.placeholder.closest("html")[0]){this.placeholder.before(this.item).detach()}else{this.options.onCancel(this.item,this.itemContainer,x.onCancel)}this.options.onDrop(this.item,this.getContainer(this.item),x.onDrop);w(this.item,this.options.containerSelector,"enable",true);this.clearDimensions();this.clearOffsetParent();this.lastAppendedItem=this.sameResultBox=G;this.dragging=false}this.item=G},searchValidTarget:function(i,b){if(!i){i=this.relativePointer||this.pointer;b=this.lastRelativePointer||this.lastPointer}var f=v(this.getContainerDimensions(),i,b),c=f.length;while(c--){var e=f[c][0],h=f[c][1];if(!h||this.options.pullPlaceholder){var g=this.containers[e];if(!this.$getOffsetParent()){var a=g.getItemOffsetParent();i=I(i,a);b=I(b,a)}if(g.searchValidTarget(i,b)){return true}}}},movePlaceholder:function(e,c,a,f){var b=this.lastAppendedItem;if(!f&&b&&b[0]===c[0]){return}c[a](this.placeholder);this.lastAppendedItem=c;this.sameResultBox=f;this.options.afterMove(this.placeholder,e)},getContainerDimensions:function(){if(!this.containerDimensions){y(this.containers,this.containerDimensions=[],!this.$getOffsetParent())}return this.containerDimensions},getContainer:function(a){return a.closest(this.options.containerSelector).data(J)},$getOffsetParent:function(){if(this.offsetParent===G){var b=this.containers.length-1,a=this.containers[b].getItemOffsetParent();if(!this.options.parentGroup){while(b--){if(a[0]!=this.containers[b].getItemOffsetParent()[0]){a=false;break}}}this.offsetParent=a}return this.offsetParent},clearOffsetParent:function(){this.offsetParent=G},setPointer:function(b){var a={left:b.pageX,top:b.pageY};if(this.$getOffsetParent()){var c=I(a,this.$getOffsetParent());this.lastRelativePointer=this.relativePointer;this.relativePointer=c}this.lastPointer=this.pointer;this.pointer=a},distanceMet:function(a){return(Math.max(Math.abs(this.pointer.left-a.pageX),Math.abs(this.pointer.top-a.pageY))>=this.options.distance)},addContainer:function(a){this.containers.push(a)},removeContainer:function(b){var a=H.inArray(b,this.containers);a!==-1&&d(this.containers,a)},scrolled:function(a){this.clearDimensions();this.clearOffsetParent()},toggleListeners:function(a){this.$document[a](E.move,this.dragProxy)[a](E.end,this.dropProxy)[a]("scroll.sortable",this.scrolledProxy)},clearDimensions:function(){this.containerDimensions=G;var a=this.containers.length;while(a--){this.containers[a].itemDimensions=G}a=this.childGroups.length;while(a--){this.childGroups[a].clearDimensions()}}};function C(a,b){this.el=a;this.childGroups=[];this.floatRight=false;this.dragInitProxy=H.proxy(this.dragInit,this);this.options=H.extend({},D,b);this.group=z.get(this.options);this.rootGroup=this.options.rootGroup=this.options.rootGroup||this.group;this.parentGroup=this.options.parentGroup=this.options.parentGroup||this.group;this.handle=this.rootGroup.options.handle||this.rootGroup.options.itemSelector;this.enable(true)}C.prototype={dragInit:function(a){var b=this.rootGroup;if(!b.item&&a.which===1&&this.options.drag&&!H(a.target).is(this.options.exclude)){b.dragInit(a,this)}},searchValidTarget:function(b,i){var f=v(this.getItemDimensions(),b,i),h=f.length,e=this.rootGroup,c=!e.options.isValidTarget||e.options.isValidTarget(e.item,this);if(!h&&c){e.movePlaceholder(this,this.el,"append");return true}else{while(h--){var g=f[h][0],j=f[h][1];if(!j&&this.options.nested&&this.getContainerGroup(g)){var a=this.getContainerGroup(g).searchValidTarget(b,i);if(a){return true}}else{if(c){this.movePlaceholder(g,b);return true}}}}},movePlaceholder:function(e,m){var n=H(this.items[e]),g=this.itemDimensions[e],f="after",l=n.outerWidth(),a=n.outerHeight(),h=n.offset(),k={left:h.left,right:h.left+l,top:h.top,bottom:h.top+a};if(this.options.vertical){var b=(g[2]+g[3])/2,c=m.top<=b;if(c){f="before";k.bottom-=a/2}else{k.top+=a/2}}else{var j=(g[0]+g[1])/2,i=m.left<=j;if(i!=this.floatRight){f="before";k.right-=l/2}else{k.left+=l/2}}this.rootGroup.movePlaceholder(this,n,f,k)},getItemDimensions:function(){if(!this.itemDimensions){this.items=this.$getChildren(this.el,"item").filter(":not(.dragged)").get();y(this.items,this.itemDimensions=[])}return this.itemDimensions},getItemOffsetParent:function(){var a,b=this.el;if(b.css("position")==="relative"||b.css("position")==="absolute"||b.css("position")==="fixed"){a=b}else{a=b.offsetParent()}return a},getContainerGroup:function(b){var a=H.data(this.items[b],"subContainer");if(a===G){var c=this.$getChildren(this.items[b],"container");a=false;if(c[0]){var e=H.extend({},this.options,{parentGroup:this.group,group:A++});a=c[J](e).data(J).group}H.data(this.items[b],"subContainer",a)}return a},$getChildren:function(a,b){return H(a).children(this.rootGroup.options[b+"Selector"])},_serialize:function(b,c){var a=this,f=c?"item":"container",e=this.$getChildren(b,f).not(this.options.exclude).map(function(){return a._serialize(H(this),!c)}).get();return this.rootGroup.options.serialize(b,e,c)}};var B={enable:function(a){if(this.options.drop){this.group.addContainer(this)}if(!a){w(this.el,this.options.containerSelector,"enable",true)}this.el.on(E.start,this.handle,this.dragInitProxy)},disable:function(a){if(this.options.drop){this.group.removeContainer(this)}if(!a){w(this.el,this.options.containerSelector,"disable",true)}this.el.off(E.start)},serialize:function(){return this._serialize(this.el,true)}};H.extend(C.prototype,B);H.fn[J]=function(b){var a=Array.prototype.slice.call(arguments,1);return this.map(function(){var c=H(this),e=c.data(J);if(e&&B[b]){return B[b].apply(e,a)||this}else{if(!e&&(b===G||typeof b==="object")){c.data(J,new C(c,b))}}return this})}}(jQuery,window);
  /*!
   * jQuery blockUI plugin
   * Version 2.59.0-2013.04.05
   * @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!
   */
  (function(){function b(x){x.fn._fadeIn=x.fn.fadeIn;var D=x.noop||function(){};var t=/MSIE/.test(navigator.userAgent);var B=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent);var w=document.documentMode||0;var A=x.isFunction(document.createElement("div").style.setExpression);x.blockUI=function(c){C(window,c)};x.unblockUI=function(c){y(window,c)};x.growlUI=function(c,e,d,g){var f=x('<div class="growlUI"></div>');if(c){f.append("<h1>"+c+"</h1>")}if(e){f.append("<h2>"+e+"</h2>")}if(d===undefined){d=3000}x.blockUI({message:f,fadeIn:700,fadeOut:1000,centerY:false,timeout:d,showOverlay:false,onUnblock:g,css:x.blockUI.defaults.growlCSS})};x.fn.block=function(c){if(this[0]===window){x.blockUI(c);return this}var d=x.extend({},x.blockUI.defaults,c||{});this.each(function(){var e=x(this);if(d.ignoreIfBlocked&&e.data("blockUI.isBlocked")){return}e.unblock({fadeOut:0})});return this.each(function(){if(x.css(this,"position")=="static"){this.style.position="relative";x(this).data("blockUI.static",true)}this.style.zoom=1;C(this,c)})};x.fn.unblock=function(c){if(this[0]===window){x.unblockUI(c);return this}return this.each(function(){y(this,c)})};x.blockUI.version=2.59;x.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:true,theme:false,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:0.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:0.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:false,baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:false};var E=null;var z=[];function C(S,p){var V,e;var Y=(S==window);var l=(p&&p.message!==undefined?p.message:undefined);p=x.extend({},x.blockUI.defaults,p||{});if(p.ignoreIfBlocked&&x(S).data("blockUI.isBlocked")){return}p.overlayCSS=x.extend({},x.blockUI.defaults.overlayCSS,p.overlayCSS||{});V=x.extend({},x.blockUI.defaults.css,p.css||{});if(p.onOverlayClick){p.overlayCSS.cursor="pointer"}e=x.extend({},x.blockUI.defaults.themedCSS,p.themedCSS||{});l=l===undefined?p.message:l;if(Y&&E){y(window,{fadeOut:0})}if(l&&typeof l!="string"&&(l.parentNode||l.jquery)){var j=l.jquery?l[0]:l;var c={};x(S).data("blockUI.history",c);c.el=j;c.parent=j.parentNode;c.display=j.style.display;c.position=j.style.position;if(c.parent){c.parent.removeChild(j)}}x(S).data("blockUI.onUnblock",p.onUnblock);var W=p.baseZ;var f,g,h,m;if(t||p.forceIframe){f=x('<iframe class="blockUI" style="z-index:'+(W++)+';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+p.iframeSrc+'"></iframe>')}else{f=x('<div class="blockUI" style="display:none"></div>')}if(p.theme){g=x('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+(W++)+';display:none"></div>')}else{g=x('<div class="blockUI blockOverlay" style="z-index:100000;display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>')}if(p.theme&&Y){m='<div class="blockUI '+p.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(W+10)+';display:none;position:fixed">';if(p.title){m+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(p.title||"&nbsp;")+"</div>"}m+='<div class="ui-widget-content ui-dialog-content"></div>';m+="</div>"}else{if(p.theme){m='<div class="blockUI '+p.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(W+10)+';display:none;position:absolute">';if(p.title){m+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(p.title||"&nbsp;")+"</div>"}m+='<div class="ui-widget-content ui-dialog-content"></div>';m+="</div>"}else{if(Y){m='<div class="blockUI '+p.blockMsgClass+' blockPage" style="z-index:'+(W+10)+';display:none;position:fixed"></div>'}else{m='<div class="blockUI '+p.blockMsgClass+' blockElement" style="z-index:'+(W+10)+';display:none;position:absolute"></div>'}}}h=x(m);if(l){if(p.theme){h.css(e);h.addClass("ui-widget-content")}else{h.css(V)}}if(!p.theme){g.css(p.overlayCSS)}g.css("position",Y?"fixed":"absolute");if(t||p.forceIframe){f.css("opacity",0)}var Z=[f,g,h],d=Y?x("body"):x(S);x.each(Z,function(){this.appendTo(d)});if(p.theme&&p.draggable&&x.fn.draggable){h.draggable({handle:".ui-dialog-titlebar",cancel:"li"})}var n=A&&(!x.support.boxModel||x("object,embed",Y?null:S).length>0);if(B||n){if(Y&&p.allowBodyStretch&&x.support.boxModel){x("html,body").css("height","100%")}if((B||!x.support.boxModel)&&!Y){var q=s(S,"borderTopWidth"),i=s(S,"borderLeftWidth");var aa=q?"(0 - "+q+")":0;var U=i?"(0 - "+i+")":0}x.each(Z,function(J,G){var K=G[0].style;K.position="absolute";if(J<2){if(Y){K.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+p.quirksmodeOffsetHack+') + "px"')}else{K.setExpression("height",'this.parentNode.offsetHeight + "px"')}if(Y){K.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"')}else{K.setExpression("width",'this.parentNode.offsetWidth + "px"')}if(U){K.setExpression("left",U)}if(aa){K.setExpression("top",aa)}}else{if(p.centerY){if(Y){K.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}K.marginTop=0}else{if(!p.centerY&&Y){var I=(p.css&&p.css.top)?parseInt(p.css.top,10):0;var H="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+I+') + "px"';K.setExpression("top",H)}}}})}if(l){if(p.theme){h.find(".ui-widget-content").append(l)}else{h.append(l)}if(l.jquery||l.nodeType){x(l).show()}}if((t||p.forceIframe)&&p.showOverlay){f.show()}if(p.fadeIn){var k=p.onBlock?p.onBlock:D;var T=(p.showOverlay&&!l)?k:D;var X=l?k:D;if(p.showOverlay){g._fadeIn(p.fadeIn,T)}if(l){h._fadeIn(p.fadeIn,X)}}else{if(p.showOverlay){g.show()}if(l){h.show()}if(p.onBlock){p.onBlock()}}u(1,S,p);if(Y){E=h[0];z=x(":input:enabled:visible",E);if(p.focusInput){setTimeout(a,20)}}else{F(h[0],p.centerX,p.centerY)}if(p.timeout){var o=setTimeout(function(){if(Y){x.unblockUI(p)}else{x(S).unblock(p)}},p.timeout);x(S).data("blockUI.timeout",o)}}function y(f,d){var e;var g=(f==window);var h=x(f);var c=h.data("blockUI.history");var j=h.data("blockUI.timeout");if(j){clearTimeout(j);h.removeData("blockUI.timeout")}d=x.extend({},x.blockUI.defaults,d||{});u(0,f,d);if(d.onUnblock===null){d.onUnblock=h.data("blockUI.onUnblock");h.removeData("blockUI.onUnblock")}var i;if(g){i=x("body").children().filter(".blockUI").add("body > .blockUI")}else{i=h.find(">.blockUI")}if(d.cursorReset){if(i.length>1){i[1].style.cursor=d.cursorReset}if(i.length>2){i[2].style.cursor=d.cursorReset}}if(g){E=z=null}if(d.fadeOut){e=i.length;i.fadeOut(d.fadeOut,function(){if(--e===0){v(i,c,d,f)}})}else{v(i,c,d,f)}}function v(d,i,j,c){var e=x(c);d.each(function(l,k){if(this.parentNode){this.parentNode.removeChild(this)}});if(i&&i.el){i.el.style.display=i.display;i.el.style.position=i.position;if(i.parent){i.parent.appendChild(i.el)}e.removeData("blockUI.history")}if(e.data("blockUI.static")){e.css("position","static")}if(typeof j.onUnblock=="function"){j.onUnblock(c,j)}var h=x(document.body),f=h.width(),g=h[0].style.width;h.width(f-1).width(f);h[0].style.width=g}function u(h,d,c){var e=d==window,f=x(d);if(!h&&(e&&!E||!e&&!f.data("blockUI.isBlocked"))){return}f.data("blockUI.isBlocked",h);if(!e||!c.bindEvents||(h&&!c.showOverlay)){return}var g="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";if(h){x(document).bind(g,c,r)}else{x(document).unbind(g,r)}}function r(c){if(c.keyCode&&c.keyCode==9){if(E&&c.data.constrainTabKey){var f=z;var g=!c.shiftKey&&c.target===f[f.length-1];var h=c.shiftKey&&c.target===f[0];if(g||h){setTimeout(function(){a(h)},10);return false}}}var e=c.data;var d=x(c.target);if(d.hasClass("blockOverlay")&&e.onOverlayClick){e.onOverlayClick()}if(d.parents("div."+e.blockMsgClass).length>0){return true}return d.parents().children().filter("div.blockUI").length===0}function a(d){if(!z){return}var c=z[d===true?z.length-1:0];if(c){c.focus()}}function F(h,g,i){var c=h.parentNode,d=h.style;var f=((c.offsetWidth-h.offsetWidth)/2)-s(c,"borderLeftWidth");var e=((c.offsetHeight-h.offsetHeight)/2)-s(c,"borderTopWidth");if(g){d.left=f>0?(f+"px"):"0"}if(i){d.top=e>0?(e+"px"):"0"}}function s(d,c){return parseInt(x.css(d,c),10)||0}}if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],b)}else{b(jQuery)}})();(function(y){var p=function(b,c){typeof c=="undefined"&&(c={});this.init(b,c)},m=p.prototype,u,v=["canvas","vml"],o=["oval","spiral","square","rect","roundRect"],a=/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,w=navigator.appVersion.indexOf("MSIE")!==-1&&parseFloat(navigator.appVersion.split("MSIE")[1])===8?true:false,n=!!document.createElement("canvas").getContext,x=true,t=function(d,e,c){var d=document.createElement(d),b;for(b in c){d[b]=c[b]}typeof e!=="undefined"&&e.appendChild(d);return d},q=function(d,b){for(var c in b){d.style[c]=b[c]}return d},f=function(d,b){for(var c in b){d.setAttribute(c,b[c])}return d},k=function(d,e,c,b){d.save();d.translate(e,c);d.rotate(b);d.translate(-e,-c);d.beginPath()};m.init=function(d,e){if(typeof e.safeVML==="boolean"){x=e.safeVML}try{this.mum=document.getElementById(d)!==void 0?document.getElementById(d):document.body}catch(c){this.mum=document.body}e.id=typeof e.id!=="undefined"?e.id:"canvasLoader";this.cont=t("div",this.mum,{id:e.id});if(n){u=v[0],this.can=t("canvas",this.cont),this.con=this.can.getContext("2d"),this.cCan=q(t("canvas",this.cont),{display:"none"}),this.cCon=this.cCan.getContext("2d")}else{u=v[1];if(typeof p.vmlSheet==="undefined"){document.getElementsByTagName("head")[0].appendChild(t("style"));p.vmlSheet=document.styleSheets[document.styleSheets.length-1];var g=["group","oval","roundrect","fill"],b;for(b in g){p.vmlSheet.addRule(g[b],"behavior:url(#default#VML); position:absolute;")}}this.vml=t("group",this.cont)}this.setColor(this.color);this.draw();q(this.cont,{display:"none"})};m.cont={};m.can={};m.con={};m.cCan={};m.cCon={};m.timer={};m.activeId=0;m.diameter=40;m.setDiameter=function(b){this.diameter=Math.round(Math.abs(b));this.redraw()};m.getDiameter=function(){return this.diameter};m.cRGB={};m.color="#000000";m.setColor=function(b){this.color=a.test(b)?b:"#000000";this.cRGB=this.getRGB(this.color);this.redraw()};m.getColor=function(){return this.color};m.shape=o[0];m.setShape=function(b){for(var c in o){if(b===o[c]){this.shape=b;this.redraw();break}}};m.getShape=function(){return this.shape};m.density=40;m.setDensity=function(b){this.density=x&&u===v[1]?Math.round(Math.abs(b))<=40?Math.round(Math.abs(b)):40:Math.round(Math.abs(b));if(this.density>360){this.density=360}this.activeId=0;this.redraw()};m.getDensity=function(){return this.density};m.range=1.3;m.setRange=function(b){this.range=Math.abs(b);this.redraw()};m.getRange=function(){return this.range};m.speed=2;m.setSpeed=function(b){this.speed=Math.round(Math.abs(b))};m.getSpeed=function(){return this.speed};m.fps=24;m.setFPS=function(b){this.fps=Math.round(Math.abs(b));this.reset()};m.getFPS=function(){return this.fps};m.getRGB=function(b){b=b.charAt(0)==="#"?b.substring(1,7):b;return{r:parseInt(b.substring(0,2),16),g:parseInt(b.substring(2,4),16),b:parseInt(b.substring(4,6),16)}};m.draw=function(){var c=0,j,b,l,r,z,e,d,i=this.density,B=Math.round(i*this.range),g,A,h=0;A=this.cCon;var s=this.diameter;if(u===v[0]){A.clearRect(0,0,1000,1000);f(this.can,{width:s,height:s});for(f(this.cCan,{width:s,height:s});c<i;){g=c<=B?1-1/B*c:g=0;e=270-360/i*c;d=e/180*Math.PI;A.fillStyle="rgba("+this.cRGB.r+","+this.cRGB.g+","+this.cRGB.b+","+g.toString()+")";switch(this.shape){case o[0]:case o[1]:j=s*0.07;r=s*0.47+Math.cos(d)*(s*0.47-j)-s*0.47;z=s*0.47+Math.sin(d)*(s*0.47-j)-s*0.47;A.beginPath();this.shape===o[1]?A.arc(s*0.5+r,s*0.5+z,j*g,0,Math.PI*2,false):A.arc(s*0.5+r,s*0.5+z,j,0,Math.PI*2,false);break;case o[2]:j=s*0.12;r=Math.cos(d)*(s*0.47-j)+s*0.5;z=Math.sin(d)*(s*0.47-j)+s*0.5;k(A,r,z,d);A.fillRect(r,z-j*0.5,j,j);break;case o[3]:case o[4]:b=s*0.3,l=b*0.27,r=Math.cos(d)*(l+(s-l)*0.13)+s*0.5,z=Math.sin(d)*(l+(s-l)*0.13)+s*0.5,k(A,r,z,d),this.shape===o[3]?A.fillRect(r,z-l*0.5,b,l):(j=l*0.55,A.moveTo(r+j,z-l*0.5),A.lineTo(r+b-j,z-l*0.5),A.quadraticCurveTo(r+b,z-l*0.5,r+b,z-l*0.5+j),A.lineTo(r+b,z-l*0.5+l-j),A.quadraticCurveTo(r+b,z-l*0.5+l,r+b-j,z-l*0.5+l),A.lineTo(r+j,z-l*0.5+l),A.quadraticCurveTo(r,z-l*0.5+l,r,z-l*0.5+l-j),A.lineTo(r,z-l*0.5+j),A.quadraticCurveTo(r,z-l*0.5,r+j,z-l*0.5))}A.closePath();A.fill();A.restore();++c}}else{q(this.cont,{width:s,height:s});q(this.vml,{width:s,height:s});switch(this.shape){case o[0]:case o[1]:d="oval";j=140;break;case o[2]:d="roundrect";j=120;break;case o[3]:case o[4]:d="roundrect",j=300}b=l=j;r=500-l;for(z=-l*0.5;c<i;){g=c<=B?1-1/B*c:g=0;e=270-360/i*c;switch(this.shape){case o[1]:b=l=j*g;r=500-j*0.5-j*g*0.5;z=(j-j*g)*0.5;break;case o[0]:case o[2]:w&&(z=0,this.shape===o[2]&&(r=500-l*0.5));break;case o[3]:case o[4]:b=j*0.95,l=b*0.28,w?(r=0,z=500-l*0.5):(r=500-b,z=-l*0.5),h=this.shape===o[4]?0.6:0}A=f(q(t("group",this.vml),{width:1000,height:1000,rotation:e}),{coordsize:"1000,1000",coordorigin:"-500,-500"});A=q(t(d,A,{stroked:false,arcSize:h}),{width:b,height:l,top:z,left:r});t("fill",A,{color:this.color,opacity:g});++c}}this.tick(true)};m.clean=function(){if(u===v[0]){this.con.clearRect(0,0,1000,1000)}else{var b=this.vml;if(b.hasChildNodes()){for(;b.childNodes.length>=1;){b.removeChild(b.firstChild)}}}};m.redraw=function(){this.clean();this.draw()};m.reset=function(){typeof this.timer==="number"&&(this.hide(),this.show())};m.tick=function(c){var b=this.con,d=this.diameter;c||(this.activeId+=360/this.density*this.speed);u===v[0]?(b.clearRect(0,0,d,d),k(b,d*0.5,d*0.5,this.activeId/180*Math.PI),b.drawImage(this.cCan,0,0,d,d),b.restore()):(this.activeId>=360&&(this.activeId-=360),q(this.vml,{rotation:this.activeId}))};m.show=function(){if(typeof this.timer!=="number"){var b=this;this.timer=self.setInterval(function(){b.tick()},Math.round(1000/this.fps));q(this.cont,{display:"block"})}};m.hide=function(){typeof this.timer==="number"&&(clearInterval(this.timer),delete this.timer,q(this.cont,{display:"none"}))};m.kill=function(){var c=this.cont;typeof this.timer==="number"&&this.hide();u===v[0]?(c.removeChild(this.can),c.removeChild(this.cCan)):c.removeChild(this.vml);for(var b in this){delete this[b]}};y.CanvasLoader=p})(window);(function(c){var d=function(){var a={},aI,W=65,aq,U='<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',ai={eventName:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:"ff0000",livePreview:true,flat:false},aa=function(g,e){var f=aB(g);c(e).data("colorpicker").fields.eq(1).val(f.r).end().eq(2).val(f.g).end().eq(3).val(f.b).end()},ap=function(f,e){c(e).data("colorpicker").fields.eq(4).val(f.h).end().eq(5).val(f.s).end().eq(6).val(f.b).end()},aE=function(f,e){c(e).data("colorpicker").fields.eq(0).val(b(f)).end()},az=function(f,e){c(e).data("colorpicker").selector.css("backgroundColor","#"+b({h:f.h,s:100,b:100}));c(e).data("colorpicker").selectorIndic.css({left:parseInt(150*f.s/100,10),top:parseInt(150*(100-f.b)/100,10)})},ad=function(f,e){c(e).data("colorpicker").hue.css("top",parseInt(150-150*f.h/360,10))},aD=function(f,e){c(e).data("colorpicker").currentColor.css("backgroundColor","#"+b(f))},af=function(f,e){c(e).data("colorpicker").newColor.css("backgroundColor","#"+b(f))},ax=function(g){var e=g.charCode||g.keyCode||-1;if((e>W&&e<=90)||e==32){return false}var f=c(this).parent().parent();if(f.data("colorpicker").livePreview===true){aG.apply(this)}},aG=function(f){var e=c(this).parent().parent(),g;if(this.parentNode.className.indexOf("_hex")>0){e.data("colorpicker").color=g=ay(al(this.value))}else{if(this.parentNode.className.indexOf("_hsb")>0){e.data("colorpicker").color=g=aF({h:parseInt(e.data("colorpicker").fields.eq(4).val(),10),s:parseInt(e.data("colorpicker").fields.eq(5).val(),10),b:parseInt(e.data("colorpicker").fields.eq(6).val(),10)})}else{e.data("colorpicker").color=g=aC(X({r:parseInt(e.data("colorpicker").fields.eq(1).val(),10),g:parseInt(e.data("colorpicker").fields.eq(2).val(),10),b:parseInt(e.data("colorpicker").fields.eq(3).val(),10)}))}}if(f){aa(g,e.get(0));aE(g,e.get(0));ap(g,e.get(0))}az(g,e.get(0));ad(g,e.get(0));af(g,e.get(0));e.data("colorpicker").onChange.apply(e,[g,b(g),aB(g)])},aw=function(f){var e=c(this).parent().parent();e.data("colorpicker").fields.parent().removeClass("colorpicker_focus")},Z=function(){W=this.parentNode.className.indexOf("_hex")>0?70:65;c(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus");c(this).parent().addClass("colorpicker_focus")},ab=function(g){var e=c(this).parent().find("input").focus();var f={el:c(this).parent().addClass("colorpicker_slider"),max:this.parentNode.className.indexOf("_hsb_h")>0?360:(this.parentNode.className.indexOf("_hsb")>0?100:255),y:g.pageY,field:e,val:parseInt(e.val(),10),preview:c(this).parent().parent().data("colorpicker").livePreview};c(document).bind("mouseup",f,ar);c(document).bind("mousemove",f,Y)},Y=function(e){e.data.field.val(Math.max(0,Math.min(e.data.max,parseInt(e.data.val+e.pageY-e.data.y,10))));if(e.data.preview){aG.apply(e.data.field.get(0),[true])}return false},ar=function(e){aG.apply(e.data.field.get(0),[true]);e.data.el.removeClass("colorpicker_slider").find("input").focus();c(document).unbind("mouseup",ar);c(document).unbind("mousemove",Y);return false},an=function(f){var e={cal:c(this).parent(),y:c(this).offset().top};e.preview=e.cal.data("colorpicker").livePreview;c(document).bind("mouseup",e,at);c(document).bind("mousemove",e,aA)},aA=function(e){aG.apply(e.data.cal.data("colorpicker").fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,(e.pageY-e.data.y))))/150,10)).get(0),[e.data.preview]);return false},at=function(e){aa(e.data.cal.data("colorpicker").color,e.data.cal.get(0));aE(e.data.cal.data("colorpicker").color,e.data.cal.get(0));c(document).unbind("mouseup",at);c(document).unbind("mousemove",aA);return false},am=function(f){var e={cal:c(this).parent(),pos:c(this).offset()};e.preview=e.cal.data("colorpicker").livePreview;c(document).bind("mouseup",e,aj);c(document).bind("mousemove",e,au)},au=function(e){aG.apply(e.data.cal.data("colorpicker").fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,(e.pageY-e.data.pos.top))))/150,10)).end().eq(5).val(parseInt(100*(Math.max(0,Math.min(150,(e.pageX-e.data.pos.left))))/150,10)).get(0),[e.data.preview]);return false},aj=function(e){aa(e.data.cal.data("colorpicker").color,e.data.cal.get(0));aE(e.data.cal.data("colorpicker").color,e.data.cal.get(0));c(document).unbind("mouseup",aj);c(document).unbind("mousemove",au);return false},ao=function(e){c(this).addClass("colorpicker_focus")},T=function(e){c(this).removeClass("colorpicker_focus")},av=function(f){var e=c(this).parent();var g=e.data("colorpicker").color;e.data("colorpicker").origColor=g;aD(g,e.get(0));e.data("colorpicker").onSubmit(g,b(g),aB(g),e.data("colorpicker").el)},ag=function(h){var j=c("#"+c(this).data("colorpickerId"));j.data("colorpicker").onBeforeShow.apply(this,[j.get(0)]);var i=c(this).offset();var e=ak();var f=i.top+this.offsetHeight;var g=i.left;if(f+176>e.t+e.h){f-=this.offsetHeight+176}if(g+356>e.l+e.w){g-=356}j.css({left:g+"px",top:f+"px"});if(j.data("colorpicker").onShow.apply(this,[j.get(0)])!=false){j.show()}c(document).bind("mousedown",{cal:j},V);return false},V=function(e){if(!ac(e.data.cal.get(0),e.target,e.data.cal.get(0))){if(e.data.cal.data("colorpicker").onHide.apply(this,[e.data.cal.get(0)])!=false){e.data.cal.hide()}c(document).unbind("mousedown",V)}},ac=function(f,g,h){if(f==g){return true}if(f.contains){return f.contains(g)}if(f.compareDocumentPosition){return !!(f.compareDocumentPosition(g)&16)}var e=g.parentNode;while(e&&e!=h){if(e==f){return true}e=e.parentNode}return false},ak=function(){var e=document.compatMode=="CSS1Compat";return{l:window.pageXOffset||(e?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(e?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(e?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(e?document.documentElement.clientHeight:document.body.clientHeight)}},aF=function(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}},X=function(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}},al=function(f){var h=6-f.length;if(h>0){var e=[];for(var g=0;g<h;g++){e.push("0")}e.push(f);f=e.join("")}return f},aH=function(e){var e=parseInt(((e.indexOf("#")>-1)?e.substring(1):e),16);return{r:e>>16,g:(e&65280)>>8,b:(e&255)}},ay=function(e){return aC(aH(e))},aC=function(f){var g={h:0,s:0,b:0};var e=Math.min(f.r,f.g,f.b);var h=Math.max(f.r,f.g,f.b);var i=h-e;g.b=h;if(h!=0){}g.s=h!=0?255*i/h:0;if(g.s!=0){if(f.r==h){g.h=(f.g-f.b)/i}else{if(f.g==h){g.h=2+(f.b-f.r)/i}else{g.h=4+(f.r-f.g)/i}}}else{g.h=-1}g.h*=60;if(g.h<0){g.h+=360}g.s*=100/255;g.b*=100/255;return g},aB=function(h){var f={};var j=Math.round(h.h);var k=Math.round(h.s*255/100);var g=Math.round(h.b*255/100);if(k==0){f.r=f.g=f.b=g}else{var i=g;var l=(255-k)*g/255;var e=(i-l)*(j%60)/60;if(j==360){j=0}if(j<60){f.r=i;f.b=l;f.g=l+e}else{if(j<120){f.g=i;f.b=l;f.r=i-e}else{if(j<180){f.g=i;f.r=l;f.b=l+e}else{if(j<240){f.b=i;f.r=l;f.g=i-e}else{if(j<300){f.b=i;f.g=l;f.r=l+e}else{if(j<360){f.r=i;f.g=l;f.b=i-e}else{f.r=0;f.g=0;f.b=0}}}}}}}return{r:Math.round(f.r),g:Math.round(f.g),b:Math.round(f.b)}},ah=function(f){var e=[f.r.toString(16),f.g.toString(16),f.b.toString(16)];c.each(e,function(h,g){if(g.length==1){e[h]="0"+g}});return e.join("")},b=function(e){return ah(aB(e))},ae=function(){var e=c(this).parent();var f=e.data("colorpicker").origColor;e.data("colorpicker").color=f;aa(f,e.get(0));aE(f,e.get(0));ap(f,e.get(0));az(f,e.get(0));ad(f,e.get(0));af(f,e.get(0))};return{init:function(e){e=c.extend({},ai,e||{});if(typeof e.color=="string"){e.color=ay(e.color)}else{if(e.color.r!=undefined&&e.color.g!=undefined&&e.color.b!=undefined){e.color=aC(e.color)}else{if(e.color.h!=undefined&&e.color.s!=undefined&&e.color.b!=undefined){e.color=aF(e.color)}else{return this}}}return this.each(function(){if(!c(this).data("colorpickerId")){var h=c.extend({},e);h.origColor=e.color;var f="collorpicker_"+parseInt(Math.random()*1000);c(this).data("colorpickerId",f);var g=c(U).attr("id",f);if(h.flat){g.appendTo(this).show()}else{g.appendTo(document.body)}h.fields=g.find("input").bind("keyup",ax).bind("change",aG).bind("blur",aw).bind("focus",Z);g.find("span").bind("mousedown",ab).end().find(">div.colorpicker_current_color").bind("click",ae);h.selector=g.find("div.colorpicker_color").bind("mousedown",am);h.selectorIndic=h.selector.find("div div");h.el=this;h.hue=g.find("div.colorpicker_hue div");g.find("div.colorpicker_hue").bind("mousedown",an);h.newColor=g.find("div.colorpicker_new_color");h.currentColor=g.find("div.colorpicker_current_color");g.data("colorpicker",h);g.find("div.colorpicker_submit").bind("mouseenter",ao).bind("mouseleave",T).bind("click",av);aa(h.color,g.get(0));ap(h.color,g.get(0));aE(h.color,g.get(0));ad(h.color,g.get(0));az(h.color,g.get(0));aD(h.color,g.get(0));af(h.color,g.get(0));if(h.flat){g.css({position:"relative",display:"block"})}else{c(this).bind(h.eventName,ag)}}})},showPicker:function(){return this.each(function(){if(c(this).data("colorpickerId")){ag.apply(this)}})},hidePicker:function(){return this.each(function(){if(c(this).data("colorpickerId")){c("#"+c(this).data("colorpickerId")).hide()}})},setColor:function(e){if(typeof e=="string"){e=ay(e)}else{if(e.r!=undefined&&e.g!=undefined&&e.b!=undefined){e=aC(e)}else{if(e.h!=undefined&&e.s!=undefined&&e.b!=undefined){e=aF(e)}else{return this}}}return this.each(function(){if(c(this).data("colorpickerId")){var f=c("#"+c(this).data("colorpickerId"));f.data("colorpicker").color=e;f.data("colorpicker").origColor=e;aa(e,f.get(0));ap(e,f.get(0));aE(e,f.get(0));ad(e,f.get(0));az(e,f.get(0));aD(e,f.get(0));af(e,f.get(0))}})}}}();c.fn.extend({ColorPicker:d.init,ColorPickerHide:d.hidePicker,ColorPickerShow:d.showPicker,ColorPickerSetColor:d.setColor})})(jQuery);
  /*!
   * iCheck v0.9.1 jQuery plugin, http://git.io/uhUPMA
   */
  (function(f){function t(d,a,b){var e=d[0],c=/er/.test(b)?k:/bl/.test(b)?x:j;active=b==w?{checked:e[j],disabled:e[x],indeterminate:"true"==d.attr(k)||"false"==d.attr(A)}:e[c];if(/^(ch|di|in)/.test(b)&&!active){p(d,c)}else{if(/^(un|en|de)/.test(b)&&active){D(d,c)}else{if(b==w){for(var c in active){active[c]?p(d,c,!0):D(d,c,!0)}}else{if(!a||"toggle"==b){if(!a){d[u]("ifClicked")}active?e[l]!==E&&D(d,c):p(d,c)}}}}}function p(o,s,a){var q=o[0],b=o.parent(),c=s==j,m=s==k,d=m?A:c?F:"enabled",g=h(q,d+G(q[l])),B=h(q,s+G(q[l]));if(!0!==q[s]){if(!a&&s==j&&q[l]==E&&q.name){var e=o.closest("form"),i='input[name="'+q.name+'"]',i=e.length?e.find(i):f(i);i.each(function(){this!==q&&f.data(this,n)&&D(f(this),s)})}m?(q[s]=!0,q[j]&&D(o,j,"force")):(a||(q[s]=!0),c&&q[k]&&D(o,k,!1));I(o,c,s,a)}q[x]&&h(q,K,!0)&&b.find("."+z).css(K,"default");b[y](B||h(q,s));b[r](g||h(q,d)||"")}function D(g,m,o){var i=g[0],q=g.parent(),b=m==j,a=m==k,c=a?A:b?F:"enabled",d=h(i,c+G(i[l])),e=h(i,m+G(i[l]));if(!1!==i[m]){if(a||!o||"force"==o){i[m]=!1}I(g,b,c,o)}!i[x]&&h(i,K,!0)&&q.find("."+z).css(K,"pointer");q[r](e||h(i,m)||"");q[y](d||h(i,c))}function J(c,a){if(f.data(c,n)){var b=f(c);b.parent().html(b.attr("style",f.data(c,n).s||"")[u](a||""));b.off(".i").unwrap();f(v+'[for="'+c.id+'"]').add(b.closest(v)).off(".i")}}function h(c,a,b){if(f.data(c,n)){return f.data(c,n).o[a+(b?"":"Class")]}}function G(a){return a.charAt(0).toUpperCase()+a.slice(1)}function I(c,a,b,d){if(!d){if(a){c[u]("ifToggled")}c[u]("ifChanged")[u]("if"+G(b))}}var n="iCheck",z=n+"-helper",E="radio",j="checked",F="un"+j,x="disabled",A="determinate",k="in"+A,w="update",l="type",y="addClass",r="removeClass",u="trigger",v="label",K="cursor",C=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini/i.test(navigator.userAgent);f.fn[n]=function(q,H){var c=":checkbox, :"+E,s=f(),e=function(L){L.each(function(){var M=f(this);s=M.is(c)?s.add(M):s.add(M.find(c))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(q)){return q=q.toLowerCase(),e(this),s.each(function(){"destroy"==q?J(this,"ifDestroyed"):t(f(this),!0,q);f.isFunction(H)&&H()})}if("object"==typeof q||!q){var g=f.extend({checkedClass:j,disabledClass:x,indeterminateClass:k,labelHover:!0},q),i=g.handle,m=g.hoverClass||"hover",B=g.focusClass||"focus",d=g.activeClass||"active",a=!!g.labelHover,b=g.labelHoverClass||"hover",o=(""+g.increaseArea).replace("%","")|0;if("checkbox"==i||i==E){c=":"+i}-50>o&&(o=-50);e(this);return s.each(function(){J(this);var S=f(this),L=this,M=L.id,N=-o+"%",O=100+2*o+"%",O={position:"absolute",top:N,left:N,display:"block",width:O,height:O,margin:0,padding:0,background:"#fff",border:0,opacity:0},N=C?{position:"absolute",visibility:"hidden"}:o?O:{position:"absolute",opacity:0},Q="checkbox"==L[l]?g.checkboxClass||"icheckbox":g.radioClass||"i"+E,R=f(v+'[for="'+M+'"]').add(S.closest(v)),P=S.wrap('<div class="'+Q+'"/>')[u]("ifCreated").parent().append(g.insert),O=f('<ins class="'+z+'"/>').css(O).appendTo(P);S.data(n,{o:g,s:S.attr("style")}).css(N);g.inheritClass&&P[y](L.className);g.inheritID&&M&&P.attr("id",n+"-"+M);"static"==P.css("position")&&P.css("position","relative");t(S,!0,w);if(R.length){R.on("click.i mouseenter.i mouseleave.i touchbegin.i touchend.i",function(T){var U=T[l],V=f(this);if(!L[x]){if("click"==U?t(S,!1,!0):a&&(/ve|nd/.test(U)?(P[r](m),V[r](b)):(P[y](m),V[y](b))),C){T.stopPropagation()}else{return !1}}})}S.on("click.i focus.i blur.i keyup.i keydown.i keypress.i",function(T){var U=T[l];T=T.keyCode;if("click"==U){return !1}if("keydown"==U&&32==T){return L[l]==E&&L[j]||(L[j]?D(S,j):p(S,j)),!1}if("keyup"==U&&L[l]==E){!L[j]&&p(S,j)}else{if(/us|ur/.test(U)){P["blur"==U?r:y](B)}}});O.on("click mousedown mouseup mouseover mouseout touchbegin.i touchend.i",function(U){var T=U[l],V=/wn|up/.test(T)?d:m;if(!L[x]){if("click"==T){t(S,!1,!0)}else{if(/wn|er|in/.test(T)){P[y](V)}else{P[r](V+" "+d)}if(R.length&&a&&V==m){R[/ut|nd/.test(T)?r:y](b)}}if(C){U.stopPropagation()}else{return !1}}})})}return this}})(jQuery);(function(){var b;b=function(){function a(){this.options_index=0,this.parsed=[]}return a.prototype.add_node=function(d){return d.nodeName.toUpperCase()==="OPTGROUP"?this.add_group(d):this.add_option(d)},a.prototype.add_group=function(l){var o,e,m,p,n,i;o=this.parsed.length,this.parsed.push({array_index:o,group:!0,label:l.label,children:0,disabled:l.disabled}),n=l.childNodes,i=[];for(m=0,p=n.length;m<p;m++){e=n[m],i.push(this.add_option(e,o,l.disabled))}return i},a.prototype.add_option=function(g,h,e){if(g.nodeName.toUpperCase()==="OPTION"){return g.text!==""?(h!=null&&(this.parsed[h].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:g.value,text:g.text,html:g.innerHTML,selected:g.selected,disabled:e===!0?e:g.disabled,group_array_index:h,classes:g.className,style:g.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1}},a}(),b.select_to_array=function(l){var h,j,a,k,i;j=new b,i=l.childNodes;for(a=0,k=i.length;a<k;a++){h=i[a],j.add_node(h)}return j.parsed},this.SelectParser=b}).call(this),function(){var c,d;d=this,c=function(){function a(f,b){this.form_field=f,this.options=b!=null?b:{};if(!a.browser_is_supported()){return}this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.finish_setup()}return a.prototype.set_default_values=function(){var b=this;return this.click_test_action=function(f){return b.test_active_click(f)},this.activate_action=function(f){return b.activate_field(f)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.result_single_selected=null,this.allow_single_deselect=this.options.allow_single_deselect!=null&&this.form_field.options[0]!=null&&this.form_field.options[0].text===""?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=this.options.enable_split_word_search!=null?this.options.enable_split_word_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=this.options.single_backstroke_delete||!1,this.max_selected_options=this.options.max_selected_options||Infinity,this.inherit_select_classes=this.options.inherit_select_classes||!1},a.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||a.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||a.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||a.default_no_result_text},a.prototype.mouse_enter=function(){return this.mouse_on_container=!0},a.prototype.mouse_leave=function(){return this.mouse_on_container=!1},a.prototype.input_focus=function(b){var e=this;if(this.is_multiple){if(!this.active_field){return setTimeout(function(){return e.container_mousedown()},50)}}else{if(!this.active_field){return this.activate_field()}}},a.prototype.input_blur=function(b){var e=this;if(!this.mouse_on_container){return this.active_field=!1,setTimeout(function(){return e.blur_test()},100)}},a.prototype.result_add_option=function(e){var h,b;return e.disabled?"":(e.dom_id=this.container_id+"_o_"+e.array_index,h=e.selected&&this.is_multiple?[]:["active-result"],e.selected&&h.push("result-selected"),e.group_array_index!=null&&h.push("group-option"),e.classes!==""&&h.push(e.classes),b=e.style.cssText!==""?' style="'+e.style+'"':"",'<li id="'+e.dom_id+'" class="'+h.join(" ")+'"'+b+">"+e.html+"</li>")},a.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.result_single_selected=null,this.results_build()},a.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},a.prototype.results_search=function(b){return this.results_showing?this.winnow_results():this.results_show()},a.prototype.choices_count=function(){var e,j,b,i;if(this.selected_option_count!=null){return this.selected_option_count}this.selected_option_count=0,i=this.form_field.options;for(j=0,b=i.length;j<b;j++){e=i[j],e.selected&&(this.selected_option_count+=1)}return this.selected_option_count},a.prototype.choices_click=function(b){b.preventDefault();if(!this.results_showing){return this.results_show()}},a.prototype.keyup_checker=function(e){var h,b;h=(b=e.which)!=null?b:e.keyCode,this.search_field_scale();switch(h){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0){return this.keydown_backstroke()}if(!this.pending_backstroke){return this.result_clear_highlight(),this.results_search()}break;case 13:e.preventDefault();if(this.results_showing){return this.result_select(e)}break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},a.prototype.generate_field_id=function(){var b;return b=this.generate_random_id(),this.form_field.id=b,b},a.prototype.generate_random_char=function(){var e,h,b;return e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",b=Math.floor(Math.random()*e.length),h=e.substring(b,b+1)},a.prototype.container_width=function(){return this.options.width!=null?this.options.width:""+this.form_field.offsetWidth+"px"},a.browser_is_supported=function(){var b;return window.navigator.appName==="Microsoft Internet Explorer"?null!==(b=document.documentMode)&&b>=8:!0},a.default_multiple_text="Select Some Options",a.default_single_text="Select an Option",a.default_no_result_text="No results match",a}(),d.AbstractChosen=c}.call(this),function(){var i,e,h,j={}.hasOwnProperty,g=function(b,c){function d(){this.constructor=b}for(var a in c){j.call(c,a)&&(b[a]=c[a])}return d.prototype=c.prototype,b.prototype=new d,b.__super__=c.prototype,b};h=this,i=jQuery,i.fn.extend({chosen:function(a){return AbstractChosen.browser_is_supported()?this.each(function(b){var c;c=i(this);if(!c.hasClass("chzn-done")){return c.data("chosen",new e(this,a))}}):this}}),e=function(b){function a(){return a.__super__.constructor.apply(this,arguments)}return g(a,b),a.prototype.setup=function(){return this.form_field_jq=i(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chzn-rtl")},a.prototype.finish_setup=function(){return this.form_field_jq.addClass("chzn-done")},a.prototype.set_up_html=function(){var d,c;return this.container_id=this.form_field.id.length?this.form_field.id.replace(/[^\w]/g,"_"):this.generate_field_id(),this.container_id+="_chzn",d=["chzn-container"],d.push("chzn-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&d.push(this.form_field.className),this.is_rtl&&d.push("chzn-rtl"),c={id:this.container_id,"class":d.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.container=i("<div />",c),this.is_multiple?this.container.html('<ul class="chzn-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chzn-drop"><ul class="chzn-results"></ul></div>'):this.container.html('<a href="javascript:void(0)" class="chzn-single chzn-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chzn-drop"><div class="chzn-search"><input type="text" autocomplete="off" /></div><ul class="chzn-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chzn-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chzn-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chzn-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chzn-search").first(),this.selected_item=this.container.find(".chzn-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("liszt:ready",{chosen:this})},a.prototype.register_observers=function(){var c=this;return this.container.mousedown(function(d){c.container_mousedown(d)}),this.container.mouseup(function(d){c.container_mouseup(d)}),this.container.mouseenter(function(d){c.mouse_enter(d)}),this.container.mouseleave(function(d){c.mouse_leave(d)}),this.search_results.mouseup(function(d){c.search_results_mouseup(d)}),this.search_results.mouseover(function(d){c.search_results_mouseover(d)}),this.search_results.mouseout(function(d){c.search_results_mouseout(d)}),this.search_results.bind("mousewheel DOMMouseScroll",function(d){c.search_results_mousewheel(d)}),this.form_field_jq.bind("liszt:updated",function(d){c.results_update_field(d)}),this.form_field_jq.bind("liszt:activate",function(d){c.activate_field(d)}),this.form_field_jq.bind("liszt:open",function(d){c.container_mousedown(d)}),this.search_field.blur(function(d){c.input_blur(d)}),this.search_field.keyup(function(d){c.keyup_checker(d)}),this.search_field.keydown(function(d){c.keydown_checker(d)}),this.search_field.focus(function(d){c.input_focus(d)}),this.is_multiple?this.search_choices.click(function(d){c.choices_click(d)}):this.container.click(function(d){d.preventDefault()})},a.prototype.search_field_disabled=function(){this.is_disabled=this.form_field_jq[0].disabled;if(this.is_disabled){return this.container.addClass("chzn-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus",this.activate_action),this.close_field()}this.container.removeClass("chzn-disabled"),this.search_field[0].disabled=!1;if(!this.is_multiple){return this.selected_item.bind("focus",this.activate_action)}},a.prototype.container_mousedown=function(c){if(!this.is_disabled){c&&c.type==="mousedown"&&!this.results_showing&&c.preventDefault();if(c==null||!i(c.target).hasClass("search-choice-close")){return this.active_field?!this.is_multiple&&c&&(i(c.target)[0]===this.selected_item[0]||i(c.target).parents("a.chzn-single").length)&&(c.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),i(document).click(this.click_test_action),this.results_show()),this.activate_field()}}},a.prototype.container_mouseup=function(c){if(c.target.nodeName==="ABBR"&&!this.is_disabled){return this.results_reset(c)}},a.prototype.search_results_mousewheel=function(d){var l,c,f;l=-((c=d.originalEvent)!=null?c.wheelDelta:void 0)||((f=d.originialEvent)!=null?f.detail:void 0);if(l!=null){return d.preventDefault(),d.type==="DOMMouseScroll"&&(l*=40),this.search_results.scrollTop(l+this.search_results.scrollTop())}},a.prototype.blur_test=function(c){if(!this.active_field&&this.container.hasClass("chzn-container-active")){return this.close_field()}},a.prototype.close_field=function(){return i(document).unbind("click",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chzn-container-active"),this.winnow_results_clear(),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},a.prototype.activate_field=function(){return this.container.addClass("chzn-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},a.prototype.test_active_click=function(c){return i(c.target).parents("#"+this.container_id).length?this.active_field=!0:this.close_field()},a.prototype.results_build=function(){var c,n,d,o,f;this.parsing=!0,this.selected_option_count=null,this.results_data=h.SelectParser.select_to_array(this.form_field),this.is_multiple&&this.choices_count()>0?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.selected_item.addClass("chzn-default").find("span").text(this.default_text),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?this.container.addClass("chzn-container-single-nosearch"):this.container.removeClass("chzn-container-single-nosearch")),c="",f=this.results_data;for(d=0,o=f.length;d<o;d++){n=f[d],n.group?c+=this.result_add_group(n):n.empty||(c+=this.result_add_option(n),n.selected&&this.is_multiple?this.choice_build(n):n.selected&&!this.is_multiple&&(this.selected_item.removeClass("chzn-default").find("span").text(n.text),this.allow_single_deselect&&this.single_deselect_control_build()))}return this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.search_results.html(c),this.parsing=!1},a.prototype.result_add_group=function(c){return c.disabled?"":(c.dom_id=this.container_id+"_g_"+c.array_index,'<li id="'+c.dom_id+'" class="group-result">'+i("<div />").text(c.label).html()+"</li>")},a.prototype.result_do_highlight=function(c){var n,q,d,p,f;if(c.length){this.result_clear_highlight(),this.result_highlight=c,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),p=d+f,q=this.result_highlight.position().top+this.search_results.scrollTop(),n=q+this.result_highlight.outerHeight();if(n>=p){return this.search_results.scrollTop(n-d>0?n-d:0)}if(q<f){return this.search_results.scrollTop(q)}}},a.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},a.prototype.results_show=function(){if(this.result_single_selected!=null){this.result_do_highlight(this.result_single_selected)}else{if(this.is_multiple&&this.max_selected_options<=this.choices_count()){return this.form_field_jq.trigger("liszt:maxselected",{chosen:this}),!1}}return this.container.addClass("chzn-with-drop"),this.form_field_jq.trigger("liszt:showing_dropdown",{chosen:this}),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results()},a.prototype.results_hide=function(){return this.result_clear_highlight(),this.container.removeClass("chzn-with-drop"),this.form_field_jq.trigger("liszt:hiding_dropdown",{chosen:this}),this.results_showing=!1},a.prototype.set_tab_index=function(c){var d;if(this.form_field_jq.attr("tabindex")){return d=this.form_field_jq.attr("tabindex"),this.form_field_jq.attr("tabindex",-1),this.search_field.attr("tabindex",d)}},a.prototype.set_label_behavior=function(){var c=this;this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=i("label[for="+this.form_field.id+"]"));if(this.form_field_label.length>0){return this.form_field_label.click(function(d){return c.is_multiple?c.container_mousedown(d):c.activate_field()})}},a.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},a.prototype.search_results_mouseup=function(d){var c;c=i(d.target).hasClass("active-result")?i(d.target):i(d.target).parents(".active-result").first();if(c.length){return this.result_highlight=c,this.result_select(d),this.search_field.focus()}},a.prototype.search_results_mouseover=function(d){var c;c=i(d.target).hasClass("active-result")?i(d.target):i(d.target).parents(".active-result").first();if(c){return this.result_do_highlight(c)}},a.prototype.search_results_mouseout=function(c){if(i(c.target).hasClass("active-result")){return this.result_clear_highlight()}},a.prototype.choice_build=function(f){var c,d,m=this;return c=i("<li />",{"class":"search-choice"}).html("<span>"+f.html+"</span>"),f.disabled?c.addClass("search-choice-disabled"):(d=i("<a />",{href:"#","class":"search-choice-close",rel:f.array_index}),d.click(function(k){return m.choice_destroy_link_click(k)}),c.append(d)),this.search_container.before(c)},a.prototype.choice_destroy_link_click=function(c){c.preventDefault(),c.stopPropagation();if(!this.is_disabled){return this.choice_destroy(i(c.target))}},a.prototype.choice_destroy=function(c){if(this.result_deselect(c.attr("rel"))){return this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),c.parents("li").first().remove(),this.search_field_scale()}},a.prototype.results_reset=function(){this.form_field.options[0].selected=!0,this.selected_option_count=null,this.selected_item.find("span").text(this.default_text),this.is_multiple||this.selected_item.addClass("chzn-default"),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change");if(this.active_field){return this.results_hide()}},a.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},a.prototype.result_select=function(d){var n,c,f,o;if(this.result_highlight){return n=this.result_highlight,c=n.attr("id"),this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("liszt:maxselected",{chosen:this}),!1):(this.is_multiple?this.result_deactivate(n):(this.search_results.find(".result-selected").removeClass("result-selected"),this.result_single_selected=n,this.selected_item.removeClass("chzn-default")),n.addClass("result-selected"),o=c.substr(c.lastIndexOf("_")+1),f=this.results_data[o],f.selected=!0,this.form_field.options[f.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(f):(this.selected_item.find("span").first().text(f.text),this.allow_single_deselect&&this.single_deselect_control_build()),(!d.metaKey&&!d.ctrlKey||!this.is_multiple)&&this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[f.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())}},a.prototype.result_activate=function(c){return c.addClass("active-result")},a.prototype.result_deactivate=function(c){return c.removeClass("active-result")},a.prototype.result_deselect=function(f){var c,d;return d=this.results_data[f],this.form_field.options[d.options_index].disabled?!1:(d.selected=!1,this.form_field.options[d.options_index].selected=!1,this.selected_option_count=null,c=i("#"+this.container_id+"_o_"+f),c.removeClass("result-selected").addClass("active-result").show(),this.result_clear_highlight(),this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[d.options_index].value}),this.search_field_scale(),!0)},a.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect&&this.selected_item.find("abbr").length<1){return this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>')}},a.prototype.winnow_results=function(){var p,v,f,s,n,y,M,c,m,t,d,r,N,l,O,u,o,P;this.no_results_clear(),m=0,t=this.search_field.val()===this.default_text?"":i("<div/>").text(i.trim(this.search_field.val())).html(),y=this.search_contains?"":"^",n=new RegExp(y+t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),N=new RegExp(t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),P=this.results_data;for(l=0,u=P.length;l<u;l++){v=P[l];if(!v.disabled&&!v.empty){if(v.group){i("#"+v.dom_id).css("display","none")}else{if(!this.is_multiple||!v.selected){p=!1,c=v.dom_id,M=i("#"+c);if(n.test(v.html)){p=!0,m+=1}else{if(this.enable_split_word_search&&(v.html.indexOf(" ")>=0||v.html.indexOf("[")===0)){s=v.html.replace(/\[|\]/g,"").split(" ");if(s.length){for(O=0,o=s.length;O<o;O++){f=s[O],n.test(f)&&(p=!0,m+=1)}}}}p?(t.length?(d=v.html.search(N),r=v.html.substr(0,d+t.length)+"</em>"+v.html.substr(d+t.length),r=r.substr(0,d)+"<em>"+r.substr(d)):r=v.html,M.html(r),this.result_activate(M),v.group_array_index!=null&&i("#"+this.results_data[v.group_array_index].dom_id).css("display","list-item")):(this.result_highlight&&c===this.result_highlight.attr("id")&&this.result_clear_highlight(),this.result_deactivate(M))}}}}return m<1&&t.length?this.no_results(t):this.winnow_results_set_highlight()},a.prototype.winnow_results_clear=function(){var n,c,d,o,f;this.search_field.val(""),c=this.search_results.find("li"),f=[];for(d=0,o=c.length;d<o;d++){n=c[d],n=i(n),n.hasClass("group-result")?f.push(n.css("display","auto")):!this.is_multiple||!n.hasClass("result-selected")?f.push(this.result_activate(n)):f.push(void 0)}return f},a.prototype.winnow_results_set_highlight=function(){var c,d;if(!this.result_highlight){d=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),c=d.length?d.first():this.search_results.find(".active-result").first();if(c!=null){return this.result_do_highlight(c)}}},a.prototype.no_results=function(d){var c;return c=i('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),c.find("span").first().html(d),this.search_results.append(c)},a.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},a.prototype.keydown_arrow=function(){var d,c;this.result_highlight?this.results_showing&&(c=this.result_highlight.nextAll("li.active-result").first(),c&&this.result_do_highlight(c)):(d=this.search_results.find("li.active-result").first(),d&&this.result_do_highlight(i(d)));if(!this.results_showing){return this.results_show()}},a.prototype.keyup_arrow=function(){var c;if(!this.results_showing&&!this.is_multiple){return this.results_show()}if(this.result_highlight){return c=this.result_highlight.prevAll("li.active-result"),c.length?this.result_do_highlight(c.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())}},a.prototype.keydown_backstroke=function(){var c;if(this.pending_backstroke){return this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()}c=this.search_container.siblings("li.search-choice").last();if(c.length&&!c.hasClass("search-choice-disabled")){return this.pending_backstroke=c,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")}},a.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},a.prototype.keydown_checker=function(d){var f,c;f=(c=d.which)!=null?c:d.keyCode,this.search_field_scale(),f!==8&&this.pending_backstroke&&this.clear_backstroke();switch(f){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(d),this.mouse_on_container=!1;break;case 13:d.preventDefault();break;case 38:d.preventDefault(),this.keyup_arrow();break;case 40:this.keydown_arrow()}},a.prototype.search_field_scale=function(){var d,n,t,f,c,s,o,r;if(this.is_multiple){n=0,s=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",c=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"];for(o=0,r=c.length;o<r;o++){t=c[o],f+=t+":"+this.search_field.css(t)+";"}return d=i("<div />",{style:f}),d.text(this.search_field.val()),i("body").append(d),s=d.width()+25,d.remove(),this.f_width||(this.f_width=this.container.outerWidth()),s>this.f_width-10&&(s=this.f_width-10),this.search_field.css({width:s+"px"})}},a.prototype.generate_random_id=function(){var c;c="sel"+this.generate_random_char()+this.generate_random_char()+this.generate_random_char();while(i("#"+c).length>0){c+=this.generate_random_char()}return c},a}(AbstractChosen),h.Chosen=e}.call(this);(function(C){C.cleditor={defaultOptions:{width:500,height:250,controls:"bold italic underline strikethrough subscript superscript | font size style | color highlight removeformat | bullets numbering | outdent indent | alignleft center alignright justify | undo redo | rule image link unlink | cut copy paste pastetext | print source",colors:"FFF FCC FC9 FF9 FFC 9F9 9FF CFF CCF FCF CCC F66 F96 FF6 FF3 6F9 3FF 6FF 99F F9F BBB F00 F90 FC6 FF0 3F3 6CC 3CF 66C C6C 999 C00 F60 FC3 FC0 3C0 0CC 36F 63F C3C 666 900 C60 C93 990 090 399 33F 60C 939 333 600 930 963 660 060 366 009 339 636 000 300 630 633 330 030 033 006 309 303",fonts:"Arial,Arial Black,Comic Sans MS,Courier New,Narrow,Garamond,Georgia,Impact,Sans Serif,Serif,Tahoma,Trebuchet MS,Verdana",sizes:"1,2,3,4,5,6,7",styles:[["Paragraph","<p>"],["Header 1","<h1>"],["Header 2","<h2>"],["Header 3","<h3>"],["Header 4","<h4>"],["Header 5","<h5>"],["Header 6","<h6>"]],useCSS:false,docType:'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',docCSSFile:"",bodyStyle:"margin:4px; font:10pt Tahoma; cursor:text"},buttons:{init:"bold,,|italic,,|underline,,|strikethrough,,|subscript,,|superscript,,|font,,fontname,|size,Font Size,fontsize,|style,,formatblock,|color,Font Color,forecolor,|highlight,Text Highlight Color,hilitecolor,color|removeformat,Remove Formatting,|bullets,,insertunorderedlist|numbering,,insertorderedlist|outdent,,|indent,,|alignleft,Align Text Left,justifyleft|center,,justifycenter|alignright,Align Text Right,justifyright|justify,,justifyfull|undo,,|redo,,|rule,Insert Horizontal Rule,inserthorizontalrule|image,Insert Image,insertimage,url|link,Insert Hyperlink,createlink,url|unlink,Remove Hyperlink,|cut,,|copy,,|paste,,|pastetext,Paste as Text,inserthtml,|print,,|source,Show Source"},imagesPath:function(){return t()}};C.fn.cleditor=function(ag){var af=C([]);this.each(function(ah,ai){if(ai.tagName=="TEXTAREA"){var aj=C.data(ai,d);if(!aj){aj=new cleditor(ai,ag)}af=af.add(aj)}});return af};var n="backgroundColor",Z="button",Y="buttonName",A="change",d="cleditor",Q="click",z="disabled",D="<div>",w="transparent",M="unselectable",b="cleditorMain",u="cleditorToolbar",aa="cleditorGroup",L="cleditorButton",ab="cleditorDisabled",J="cleditorDivider",G="cleditorPopup",ad="cleditorList",U="cleditorColor",c="cleditorPrompt",W="cleditorMsg",H=C.browser.msie,q=/msie\s6/i.test(navigator.userAgent),l=/iphone|ipad|ipod/i.test(navigator.userAgent),g={},B,v=C.cleditor.buttons;C.each(v.init.split("|"),function(af,ai){var ag=ai.split(","),ah=ag[0];v[ah]={stripIndex:af,name:ah,title:ag[1]===""?ah.charAt(0).toUpperCase()+ah.substr(1):ag[1],command:ag[2]===""?ah:ag[2],popupName:ag[3]===""?ah:ag[3]}});delete v.init;cleditor=function(ak,ah){var aj=this;aj.options=ah=C.extend({},C.cleditor.defaultOptions,ah);var af=aj.$area=C(ak).hide().data(d,aj).blur(function(){N(aj,true)});var al=aj.$main=C(D).addClass(b).width(ah.width).height(ah.height);var ag=aj.$toolbar=C(D).addClass(u).appendTo(al);var ai=C(D).addClass(aa).appendTo(ag);C.each(ah.controls.split(" "),function(an,am){if(am===""){return true}if(am=="|"){var ap=C(D).addClass(J).appendTo(ai);ai=C(D).addClass(aa).appendTo(ag)}else{var aq=v[am];var ao=C(D).data(Y,aq.name).addClass(L).attr("title",aq.title).bind(Q,C.proxy(e,aj)).appendTo(ai).hover(X,f);var ar={};if(aq.css){ar=aq.css}else{if(aq.image){ar.backgroundImage=E(aq.image)}}if(aq.stripIndex){ar.backgroundPosition=aq.stripIndex*-24}ao.css(ar);if(H){ao.attr(M,"on")}if(aq.popupName){p(aq.popupName,ah,aq.popupClass,aq.popupContent,aq.popupHover)}}});al.insertBefore(af).append(af);if(!B){C(document).click(function(an){var am=C(an.target);if(!am.add(am.parents()).is("."+c)){ae()}});B=true}if(/auto|%/.test(""+ah.width+ah.height)){C(window).resize(function(){ac(aj)})}ac(aj)};var x=cleditor.prototype,F=[["clear",I],["disable",i],["execCommand",a],["focus",R],["hidePopups",ae],["sourceMode",h,true],["refresh",ac],["select",S],["selectedHTML",m,true],["selectedText",O,true],["showMessage",y],["updateFrame",N],["updateTextArea",K]];C.each(F,function(af,ag){x[ag[0]]=function(){var ak=this,aj=[ak];for(var ai=0;ai<arguments.length;ai++){aj.push(arguments[ai])}var ah=ag[1].apply(ak,aj);if(ag[2]){return ah}return ak}});x.change=function(af){var ag=C(this);return af?ag.bind(A,af):ag.trigger(A)};function e(ak){var aj=this,am=ak.target,an=C.data(am,Y),ai=v[an],al=ai.popupName,ag=g[al];if(aj.disabled||C(am).attr(z)==z){return}var ah={editor:aj,button:am,buttonName:an,popup:ag,popupName:al,command:ai.command,useCSS:aj.options.useCSS};if(ai.buttonClick&&ai.buttonClick(ak,ah)===false){return false}if(an=="source"){if(h(aj)){delete aj.range;aj.$area.hide();aj.$frame.show();am.title=ai.title}else{aj.$frame.hide();aj.$area.show();am.title="Show Rich Text"}setTimeout(function(){o(aj)},100)}else{if(!h(aj)){if(al){var af=C(ag);if(al=="url"){if(an=="link"&&O(aj)===""){y(aj,"A selection is required when inserting a link.",am);return false}af.children(":button").unbind(Q).bind(Q,function(){var ap=af.find(":text"),ao=C.trim(ap.val());if(ao!==""){a(aj,ah.command,ao,null,ah.button)}ap.val("http://");ae();R(aj)})}else{if(al=="pastetext"){af.children(":button").unbind(Q).bind(Q,function(){var ap=af.find("textarea"),ao=ap.val().replace(/\n/g,"<br />");if(ao!==""){a(aj,ah.command,ao,null,ah.button)}ap.val("");ae();R(aj)})}}if(am!==C.data(ag,Z)){k(aj,ag,am);return false}return}else{if(an=="print"){aj.$frame[0].contentWindow.print()}else{if(!a(aj,ah.command,ah.value,ah.useCSS,am)){return false}}}}}R(aj)}function X(ag){var af=C(ag.target).closest("div");af.css(n,af.data(Y)?"#FFF":"#FFC")}function f(af){C(af.target).closest("div").css(n,"transparent")}function T(al){var aj=this,af=al.data.popup,am=al.target;if(af===g.msg||C(af).hasClass(c)){return}var ao=C.data(af,Z),ap=C.data(ao,Y),ai=v[ap],ag=ai.command,an,ak=aj.options.useCSS;if(ap=="font"){an=am.style.fontFamily.replace(/"/g,"")}else{if(ap=="size"){if(am.tagName=="DIV"){am=am.children[0]}an=am.innerHTML}else{if(ap=="style"){an="<"+am.tagName+">"}else{if(ap=="color"){an=P(am.style.backgroundColor)}else{if(ap=="highlight"){an=P(am.style.backgroundColor);if(H){ag="backcolor"}else{ak=true}}}}}}var ah={editor:aj,button:ao,buttonName:ap,popup:af,popupName:ai.popupName,command:ag,value:an,useCSS:ak};if(ai.popupClick&&ai.popupClick(al,ah)===false){return}if(ah.command&&!a(aj,ah.command,ah.value,ah.useCSS,ao)){return false}ae();R(aj)}function r(ai){var ag=1,af=0;for(var ah=0;ah<ai.length;++ah){ag=(ag+ai.charCodeAt(ah))%65521;af=(af+ag)%65521}return(af<<16)|ag}function I(af){af.$area.val("");N(af)}function p(aj,ah,ai,ag,ak){if(g[aj]){return g[aj]}var al=C(D).hide().addClass(G).appendTo("body");if(ag){al.html(ag)}else{if(aj=="color"){var af=ah.colors.split(" ");if(af.length<10){al.width("auto")}C.each(af,function(am,an){C(D).appendTo(al).css(n,"#"+an)});ai=U}else{if(aj=="font"){C.each(ah.fonts.split(","),function(am,an){C(D).appendTo(al).css("fontFamily",an).html(an)})}else{if(aj=="size"){C.each(ah.sizes.split(","),function(am,an){C(D).appendTo(al).html("<font size="+an+">"+an+"</font>")})}else{if(aj=="style"){C.each(ah.styles,function(am,an){C(D).appendTo(al).html(an[1]+an[0]+an[1].replace("<","</"))})}else{if(aj=="url"){al.html('Enter URL:<br><input type=text value="http://" size=35><br><input type=button class="button" value="Submit">');ai=c}else{if(aj=="pastetext"){al.html('Paste your content here and click submit.<br /><textarea cols=40 rows=3></textarea><br /><input type=button class="button" value=Submit>');ai=c}}}}}}}if(!ai&&!ag){ai=ad}al.addClass(ai);if(H){al.attr(M,"on").find("div,font,p,h1,h2,h3,h4,h5,h6").attr(M,"on")}if(al.hasClass(ad)||ak===true){al.children().hover(X,f)}g[aj]=al[0];return al[0]}function i(ag,af){if(af){ag.$area.attr(z,z);ag.disabled=true}else{ag.$area.removeAttr(z);delete ag.disabled}try{if(H){ag.doc.body.contentEditable=!af}else{ag.doc.designMode=!af?"on":"off"}}catch(ah){}o(ag)}function a(ag,am,aj,al,af){V(ag);if(!H){if(al===undefined||al===null){al=ag.options.useCSS}ag.doc.execCommand("styleWithCSS",0,al.toString())}var ak=true,ai;if(H&&am.toLowerCase()=="inserthtml"){j(ag).pasteHTML(aj)}else{try{ak=ag.doc.execCommand(am,0,aj||null)}catch(ah){ai=ah.description;ak=false}if(!ak){if("cutcopypaste".indexOf(am)>-1){y(ag,"For security reasons, your browser does not support the "+am+" command. Try using the keyboard shortcut or context menu instead.",af)}else{y(ag,(ai?ai:"Error executing the "+am+" command."),af)}}}o(ag);return ak}function R(af){setTimeout(function(){if(h(af)){af.$area.focus()}else{af.$frame[0].contentWindow.focus()}o(af)},0)}function j(af){if(H){return s(af).createRange()}return s(af).getRangeAt(0)}function s(af){if(H){return af.doc.selection}return af.$frame[0].contentWindow.getSelection()}function P(ag){var af=/rgba?\((\d+), (\d+), (\d+)/.exec(ag),ah=ag.split("");if(af){ag=(af[1]<<16|af[2]<<8|af[3]).toString(16);while(ag.length<6){ag="0"+ag}}return"#"+(ag.length==6?ag:ah[1]+ah[1]+ah[2]+ah[2]+ah[3]+ah[3])}function ae(){C.each(g,function(af,ag){C(ag).hide().unbind(Q).removeData(Z)})}function t(){var af="jquery.cleditor.css",ag=C("link[href$='"+af+"']").attr("href");return ag.substr(0,ag.length-af.length)+"images/"}function E(af){return"url("+t()+af+")"}function ac(ah){var aj=ah.$main,ag=ah.options;if(ah.$frame){ah.$frame.remove()}var ai=ah.$frame=C('<iframe frameborder="0" src="javascript:true;">').hide().appendTo(aj);var af=ai[0].contentWindow,ak=ah.doc=af.document,al=C(ak);ak.open();ak.write(ag.docType+"<html>"+((ag.docCSSFile==="")?"":'<head><link rel="stylesheet" type="text/css" href="'+ag.docCSSFile+'" /></head>')+'<body style="'+ag.bodyStyle+'"></body></html>');ak.close();if(H){al.click(function(){R(ah)})}N(ah);if(H){al.bind("beforedeactivate beforeactivate selectionchange keypress",function(am){if(am.type=="beforedeactivate"){ah.inactive=true}else{if(am.type=="beforeactivate"){if(!ah.inactive&&ah.range&&ah.range.length>1){ah.range.shift()}delete ah.inactive}else{if(!ah.inactive){if(!ah.range){ah.range=[]}ah.range.unshift(j(ah));while(ah.range.length>2){ah.range.pop()}}}}});ai.focus(function(){V(ah)})}(C.browser.mozilla?al:C(af)).blur(function(){K(ah,true)});al.click(ae).bind("keyup mouseup",function(){o(ah)});if(l){ah.$area.show()}else{ai.show()}C(function(){var an=ah.$toolbar,ao=an.children("div:last"),ap=aj.width();var am=ao.offset().top+ao.outerHeight()-an.offset().top+1;an.height(am);am=(/%/.test(""+ag.height)?aj.height():parseInt(ag.height))-am;ai.width(ap).height(am);ah.$area.width(ap).height(q?am-2:am);i(ah,ah.disabled);o(ah)})}function o(af){if(!l&&C.browser.webkit&&!af.focused){af.$frame[0].contentWindow.focus();window.focus();af.focused=true}var ag=af.doc;if(H){ag=j(af)}var ah=h(af);C.each(af.$toolbar.find("."+L),function(ai,an){var aj=C(an),al=C.cleditor.buttons[C.data(an,Y)],ap=al.command,ak=true;if(af.disabled){ak=false}else{if(al.getEnabled){var ao={editor:af,button:an,buttonName:al.name,popup:g[al.popupName],popupName:al.popupName,command:al.command,useCSS:af.options.useCSS};ak=al.getEnabled(ao);if(ak===undefined){ak=true}}else{if(((ah||l)&&al.name!="source")||(H&&(ap=="undo"||ap=="redo"))){ak=false}else{if(ap&&ap!="print"){if(H&&ap=="hilitecolor"){ap="backcolor"}if(!H||ap!="inserthtml"){try{ak=ag.queryCommandEnabled(ap)}catch(am){ak=false}}}}}}if(ak){aj.removeClass(ab);aj.removeAttr(z)}else{aj.addClass(ab);aj.attr(z,z)}})}function V(af){if(H&&af.range){af.range[0].select()}}function S(af){setTimeout(function(){if(h(af)){af.$area.select()}else{a(af,"selectall")}},0)}function m(ai){V(ai);var af=j(ai);if(H){return af.htmlText}var ah=C("<layer>")[0];ah.appendChild(af.cloneContents());var ag=ah.innerHTML;ah=null;return ag}function O(af){V(af);if(H){return j(af).text}return s(af).toString()}function y(ah,ai,ag){var af=p("msg",ah.options,W);af.innerHTML=ai;k(ah,af,ag)}function k(am,ah,al){var ak,aj,an,af=C(ah);if(al){var ag=C(al);ak=ag.offset();aj=--ak.left;an=ak.top+ag.height()}else{var ai=am.$toolbar;ak=ai.offset();aj=Math.floor((ai.width()-af.width())/2)+ak.left;an=ak.top+ai.height()-2}ae();af.css({left:aj,top:an}).show();if(al){C.data(ah,Z,al);af.bind(Q,{popup:ah},C.proxy(T,am))}setTimeout(function(){af.find(":text,textarea").eq(0).focus().select()},100)}function h(af){return af.$area.is(":visible")}function N(aj,af){var ak=aj.$area.val(),ag=aj.options,am=ag.updateFrame,al=C(aj.doc.body);if(am){var ai=r(ak);if(af&&aj.areaChecksum==ai){return}aj.areaChecksum=ai}var ah=am?am(ak):ak;ah=ah.replace(/<(?=\/?script)/ig,"&lt;");if(ag.updateTextArea){aj.frameChecksum=r(ah)}if(ah!=al.html()){al.html(ah);C(aj).triggerHandler(A)}}function K(ak,af){var ai=C(ak.doc.body).html(),ah=ak.options,am=ah.updateTextArea,ag=ak.$area;if(am){var aj=r(ai);if(af&&ak.frameChecksum==aj){return}ak.frameChecksum=aj}var al=am?am(ai):ai;if(ah.updateFrame){ak.areaChecksum=r(al)}if(al!=ag.val()){ag.val(al);C(ak).triggerHandler(A)}}})(jQuery);
  /*!
   PowerTip - v1.2.0 - 2013-04-03
   http://stevenbenner.github.com/jquery-powertip/
   Copyright (c) 2013 Steven Benner (http://stevenbenner.com/).
   Released under MIT license.
   https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt
  */
  (function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}}(function(k){var A=k(document),s=k(window),w=k("body");var n="displayController",e="hasActiveHover",d="forcedOpen",u="hasMouseMove",f="mouseOnToPopup",g="originalTitle",y="powertip",o="powertipjq",l="powertiptarget",E=180/Math.PI;var c={isTipOpen:false,isFixedTipOpen:false,isClosing:false,tipOpenImminent:false,activeHover:null,currentX:0,currentY:0,previousX:0,previousY:0,desyncTimeout:null,mouseTrackingActive:false,delayInProgress:false,windowWidth:0,windowHeight:0,scrollTop:0,scrollLeft:0};var p={none:0,top:1,bottom:2,left:4,right:8};k.fn.powerTip=function(F,N){if(!this.length){return this}if(k.type(F)==="string"&&k.powerTip[F]){return k.powerTip[F].call(this,this,N)}var O=k.extend({},k.fn.powerTip.defaults,F),G=new x(O);h();this.each(function M(){var R=k(this),Q=R.data(y),P=R.data(o),T=R.data(l),S;if(R.data(n)){k.powerTip.destroy(R)}S=R.attr("title");if(!Q&&!T&&!P&&S){R.data(y,S);R.data(g,S);R.removeAttr("title")}R.data(n,new t(R,O,G))});if(!O.manual){this.on({"mouseenter.powertip":function J(P){k.powerTip.show(this,P)},"mouseleave.powertip":function L(){k.powerTip.hide(this)},"focus.powertip":function K(){k.powerTip.show(this)},"blur.powertip":function H(){k.powerTip.hide(this,true)},"keydown.powertip":function I(P){if(P.keyCode===27){k.powerTip.hide(this,true)}}})}return this};k.fn.powerTip.defaults={fadeInTime:200,fadeOutTime:100,followMouse:false,popupId:"powerTip",intentSensitivity:7,intentPollInterval:100,closeDelay:100,placement:"n",smartPlacement:false,offset:10,mouseOnToPopup:false,manual:false};k.fn.powerTip.smartPlacementLists={n:["n","ne","nw","s"],e:["e","ne","se","w","nw","sw","n","s","e"],s:["s","se","sw","n"],w:["w","nw","sw","e","ne","se","n","s","w"],nw:["nw","w","sw","n","s","se","nw"],ne:["ne","e","se","n","s","sw","ne"],sw:["sw","w","nw","s","n","ne","sw"],se:["se","e","ne","s","n","nw","se"],"nw-alt":["nw-alt","n","ne-alt","sw-alt","s","se-alt","w","e"],"ne-alt":["ne-alt","n","nw-alt","se-alt","s","sw-alt","e","w"],"sw-alt":["sw-alt","s","se-alt","nw-alt","n","ne-alt","w","e"],"se-alt":["se-alt","s","sw-alt","ne-alt","n","nw-alt","e","w"]};k.powerTip={show:function z(F,G){if(G){i(G);c.previousX=G.pageX;c.previousY=G.pageY;k(F).data(n).show()}else{k(F).first().data(n).show(true,true)}return F},reposition:function r(F){k(F).first().data(n).resetPosition();return F},hide:function D(G,F){if(G){k(G).first().data(n).hide(F)}else{if(c.activeHover){c.activeHover.data(n).hide(true)}}return G},destroy:function C(G){k(G).off(".powertip").each(function F(){var I=k(this),H=[g,n,e,d];if(I.data(g)){I.attr("title",I.data(g));H.push(y)}I.removeData(H)});return G}};k.powerTip.showTip=k.powerTip.show;k.powerTip.closeTip=k.powerTip.hide;function b(){var F=this;F.top="auto";F.left="auto";F.right="auto";F.bottom="auto";F.set=function(H,G){if(k.isNumeric(G)){F[H]=Math.round(G)}}}function t(K,N,F){var J=null;function L(P,Q){M();if(!K.data(e)){if(!P){c.tipOpenImminent=true;J=setTimeout(function O(){J=null;I()},N.intentPollInterval)}else{if(Q){K.data(d,true)}F.showTip(K)}}}function G(P){M();c.tipOpenImminent=false;if(K.data(e)){K.data(d,false);if(!P){c.delayInProgress=true;J=setTimeout(function O(){J=null;F.hideTip(K);c.delayInProgress=false},N.closeDelay)}else{F.hideTip(K)}}}function I(){var Q=Math.abs(c.previousX-c.currentX),O=Math.abs(c.previousY-c.currentY),P=Q+O;if(P<N.intentSensitivity){F.showTip(K)}else{c.previousX=c.currentX;c.previousY=c.currentY;L()}}function M(){J=clearTimeout(J);c.delayInProgress=false}function H(){F.resetPosition(K)}this.show=L;this.hide=G;this.cancel=M;this.resetPosition=H}function j(){function G(M,L,J,O,P){var K=L.split("-")[0],N=new b(),I;if(q(M)){I=H(M,K)}else{I=F(M,K)}switch(L){case"n":N.set("left",I.left-(J/2));N.set("bottom",c.windowHeight-I.top+P);break;case"e":N.set("left",I.left+P);N.set("top",I.top-(O/2));break;case"s":N.set("left",I.left-(J/2));N.set("top",I.top+P);break;case"w":N.set("top",I.top-(O/2));N.set("right",c.windowWidth-I.left+P);break;case"nw":N.set("bottom",c.windowHeight-I.top+P);N.set("right",c.windowWidth-I.left-20);break;case"nw-alt":N.set("left",I.left);N.set("bottom",c.windowHeight-I.top+P);break;case"ne":N.set("left",I.left-20);N.set("bottom",c.windowHeight-I.top+P);break;case"ne-alt":N.set("bottom",c.windowHeight-I.top+P);N.set("right",c.windowWidth-I.left);break;case"sw":N.set("top",I.top+P);N.set("right",c.windowWidth-I.left-20);break;case"sw-alt":N.set("left",I.left);N.set("top",I.top+P);break;case"se":N.set("left",I.left-20);N.set("top",I.top+P);break;case"se-alt":N.set("top",I.top+P);N.set("right",c.windowWidth-I.left);break}return N}function F(K,J){var O=K.offset(),N=K.outerWidth(),I=K.outerHeight(),M,L;switch(J){case"n":M=O.left+N/2;L=O.top;break;case"e":M=O.left+N;L=O.top+I/2;break;case"s":M=O.left+N/2;L=O.top+I;break;case"w":M=O.left;L=O.top+I/2;break;case"nw":M=O.left;L=O.top;break;case"ne":M=O.left+N;L=O.top;break;case"sw":M=O.left;L=O.top+I;break;case"se":M=O.left+N;L=O.top+I;break}return{top:L,left:M}}function H(O,K){var S=O.closest("svg")[0],N=O[0],W=S.createSVGPoint(),L=N.getBBox(),V=N.getScreenCTM(),M=L.width/2,Q=L.height/2,P=[],I=["nw","n","ne","e","se","s","sw","w"],U,X,R,T;function J(){P.push(W.matrixTransform(V))}W.x=L.x;W.y=L.y;J();W.x+=M;J();W.x+=M;J();W.y+=Q;J();W.y+=Q;J();W.x-=M;J();W.x-=M;J();W.y-=Q;J();if(P[0].y!==P[1].y||P[0].x!==P[7].x){X=Math.atan2(V.b,V.a)*E;R=Math.ceil(((X%360)-22.5)/45);if(R<1){R+=8}while(R--){I.push(I.shift())}}for(T=0;T<P.length;T++){if(I[T]===K){U=P[T];break}}return{top:U.y+c.scrollTop,left:U.x+c.scrollLeft}}this.compute=G}function x(Q){var P=new j(),O=k("#"+Q.popupId);if(O.length===0){O=k("<div/>",{id:Q.popupId});if(w.length===0){w=k("body")}w.append(O)}if(Q.followMouse){if(!O.data(u)){A.on("mousemove",M);s.on("scroll",M);O.data(u,true)}}if(Q.mouseOnToPopup){O.on({mouseenter:function L(){if(O.data(f)){if(c.activeHover){c.activeHover.data(n).cancel()}}},mouseleave:function N(){if(c.activeHover){c.activeHover.data(n).hide()}}})}function I(S){S.data(e,true);O.queue(function R(T){H(S);T()})}function H(S){var U;if(!S.data(e)){return}if(c.isTipOpen){if(!c.isClosing){K(c.activeHover)}O.delay(100).queue(function R(V){H(S);V()});return}S.trigger("powerTipPreRender");U=B(S);if(U){O.empty().append(U)}else{return}S.trigger("powerTipRender");c.activeHover=S;c.isTipOpen=true;O.data(f,Q.mouseOnToPopup);if(!Q.followMouse){G(S);c.isFixedTipOpen=true}else{M()}O.fadeIn(Q.fadeInTime,function T(){if(!c.desyncTimeout){c.desyncTimeout=setInterval(J,500)}S.trigger("powerTipOpen")})}function K(R){c.isClosing=true;c.activeHover=null;c.isTipOpen=false;c.desyncTimeout=clearInterval(c.desyncTimeout);R.data(e,false);R.data(d,false);O.fadeOut(Q.fadeOutTime,function S(){var T=new b();c.isClosing=false;c.isFixedTipOpen=false;O.removeClass();T.set("top",c.currentY+Q.offset);T.set("left",c.currentX+Q.offset);O.css(T);R.trigger("powerTipClose")})}function M(){if(!c.isFixedTipOpen&&(c.isTipOpen||(c.tipOpenImminent&&O.data(u)))){var R=O.outerWidth(),V=O.outerHeight(),U=new b(),S,T;U.set("top",c.currentY+Q.offset);U.set("left",c.currentX+Q.offset);S=m(U,R,V);if(S!==p.none){T=a(S);if(T===1){if(S===p.right){U.set("left",c.windowWidth-R)}else{if(S===p.bottom){U.set("top",c.scrollTop+c.windowHeight-V)}}}else{U.set("left",c.currentX-R-Q.offset);U.set("top",c.currentY-V-Q.offset)}}O.css(U)}}function G(S){var R,T;if(Q.smartPlacement){R=k.fn.powerTip.smartPlacementLists[Q.placement];k.each(R,function(U,W){var V=m(F(S,W),O.outerWidth(),O.outerHeight());T=W;if(V===p.none){return false}})}else{F(S,Q.placement);T=Q.placement}O.addClass(T)}function F(U,T){var R=0,S,W,V=new b();V.set("top",0);V.set("left",0);O.css(V);do{S=O.outerWidth();W=O.outerHeight();V=P.compute(U,T,S,W,Q.offset);O.css(V)}while(++R<=5&&(S!==O.outerWidth()||W!==O.outerHeight()));return V}function J(){var R=false;if(c.isTipOpen&&!c.isClosing&&!c.delayInProgress){if(c.activeHover.data(e)===false||c.activeHover.is(":disabled")){R=true}else{if(!v(c.activeHover)&&!c.activeHover.is(":focus")&&!c.activeHover.data(d)){if(O.data(f)){if(!v(O)){R=true}}else{R=true}}}if(R){K(c.activeHover)}}}this.showTip=I;this.hideTip=K;this.resetPosition=G}function q(F){return window.SVGElement&&F[0] instanceof SVGElement}function h(){if(!c.mouseTrackingActive){c.mouseTrackingActive=true;k(function H(){c.scrollLeft=s.scrollLeft();c.scrollTop=s.scrollTop();c.windowWidth=s.width();c.windowHeight=s.height()});A.on("mousemove",i);s.on({resize:function G(){c.windowWidth=s.width();c.windowHeight=s.height()},scroll:function F(){var I=s.scrollLeft(),J=s.scrollTop();if(I!==c.scrollLeft){c.currentX+=I-c.scrollLeft;c.scrollLeft=I}if(J!==c.scrollTop){c.currentY+=J-c.scrollTop;c.scrollTop=J}}})}}function i(F){c.currentX=F.pageX;c.currentY=F.pageY}function v(F){var H=F.offset(),J=F[0].getBoundingClientRect(),I=J.right-J.left,G=J.bottom-J.top;return c.currentX>=H.left&&c.currentX<=H.left+I&&c.currentY>=H.top&&c.currentY<=H.top+G}function B(I){var G=I.data(y),F=I.data(o),K=I.data(l),H,J;if(G){if(k.isFunction(G)){G=G.call(I[0])}J=G}else{if(F){if(k.isFunction(F)){F=F.call(I[0])}if(F.length>0){J=F.clone(true,true)}}else{if(K){H=k("#"+K);if(H.length>0){J=H.html()}}}}return J}function m(M,L,K){var G=c.scrollTop,J=c.scrollLeft,I=G+c.windowHeight,F=J+c.windowWidth,H=p.none;if(M.top<G||Math.abs(M.bottom-c.windowHeight)-K<G){H|=p.top}if(M.top+K>I||Math.abs(M.bottom-c.windowHeight)>I){H|=p.bottom}if(M.left<J||M.right+L>F){H|=p.left}if(M.left+L>F||M.right<J){H|=p.right}return H}function a(G){var F=0;while(G){G&=G-1;F++}return F}}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery","jquery.ui.widget"],a)}else{a(window.jQuery)}}(function(a){a.support.xhrFileUpload=!!(window.XMLHttpRequestUpload&&window.FileReader);a.support.xhrFormDataFileUpload=!!window.FormData;a.widget("blueimp.fileupload",{options:{dropZone:a(document),pasteZone:a(document),fileInput:undefined,replaceFileInput:true,paramName:undefined,singleFileUploads:true,limitMultiFileUploads:undefined,sequentialUploads:false,limitConcurrentUploads:undefined,forceIframeTransport:false,redirect:undefined,redirectParamName:undefined,postMessage:undefined,multipart:true,maxChunkSize:undefined,uploadedBytes:undefined,recalculateProgress:true,progressInterval:100,bitrateInterval:500,autoUpload:true,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(c,b){c=this.messages[c]||c.toString();if(b){a.each(b,function(d,e){c=c.replace("{"+d+"}",e)})}return c},formData:function(b){return b.serializeArray()},add:function(c,b){if(b.autoUpload||(b.autoUpload!==false&&a(this).fileupload("option","autoUpload"))){b.process().done(function(){b.submit()})}},processData:false,contentType:false,cache:false},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_BitrateTimer:function(){this.timestamp=((Date.now)?Date.now():(new Date()).getTime());this.loaded=0;this.bitrate=0;this.getBitrate=function(d,c,b){var e=d-this.timestamp;if(!this.bitrate||!b||e>b){this.bitrate=(c-this.loaded)*(1000/e)*8;this.loaded=c;this.timestamp=d}return this.bitrate}},_isXHRUpload:function(b){return !b.forceIframeTransport&&((!b.multipart&&a.support.xhrFileUpload)||a.support.xhrFormDataFileUpload)},_getFormData:function(b){var c;if(typeof b.formData==="function"){return b.formData(b.form)}if(a.isArray(b.formData)){return b.formData}if(a.type(b.formData)==="object"){c=[];a.each(b.formData,function(d,e){c.push({name:d,value:e})});return c}return[]},_getTotal:function(c){var b=0;a.each(c,function(d,e){b+=e.size||1});return b},_initProgressObject:function(c){var b={loaded:0,total:0,bitrate:0};if(c._progress){a.extend(c._progress,b)}else{c._progress=b}},_initResponseObject:function(b){var c;if(b._response){for(c in b._response){if(b._response.hasOwnProperty(c)){delete b._response[c]}}}else{b._response={}}},_onProgress:function(f,d){if(f.lengthComputable){var c=((Date.now)?Date.now():(new Date()).getTime()),b;if(d._time&&d.progressInterval&&(c-d._time<d.progressInterval)&&f.loaded!==f.total){return}d._time=c;b=Math.floor(f.loaded/f.total*(d.chunkSize||d._progress.total))+(d.uploadedBytes||0);this._progress.loaded+=(b-d._progress.loaded);this._progress.bitrate=this._bitrateTimer.getBitrate(c,this._progress.loaded,d.bitrateInterval);d._progress.loaded=d.loaded=b;d._progress.bitrate=d.bitrate=d._bitrateTimer.getBitrate(c,b,d.bitrateInterval);this._trigger("progress",f,d);this._trigger("progressall",f,this._progress)}},_initProgressListener:function(b){var c=this,d=b.xhr?b.xhr():a.ajaxSettings.xhr();if(d.upload){a(d.upload).bind("progress",function(f){var g=f.originalEvent;f.lengthComputable=g.lengthComputable;f.loaded=g.loaded;f.total=g.total;c._onProgress(f,b)});b.xhr=function(){return d}}},_isInstanceOf:function(b,c){return Object.prototype.toString.call(c)==="[object "+b+"]"},_initXHRData:function(c){var e=this,g,d=c.files[0],b=c.multipart||!a.support.xhrFileUpload,f=c.paramName[0];c.headers=c.headers||{};if(c.contentRange){c.headers["Content-Range"]=c.contentRange}if(!b){c.headers["Content-Disposition"]='attachment; filename="'+encodeURI(d.name)+'"';c.contentType=d.type;c.data=c.blob||d}else{if(a.support.xhrFormDataFileUpload){if(c.postMessage){g=this._getFormData(c);if(c.blob){g.push({name:f,value:c.blob})}else{a.each(c.files,function(h,i){g.push({name:c.paramName[h]||f,value:i})})}}else{if(e._isInstanceOf("FormData",c.formData)){g=c.formData}else{g=new FormData();a.each(this._getFormData(c),function(h,i){g.append(i.name,i.value)})}if(c.blob){c.headers["Content-Disposition"]='attachment; filename="'+encodeURI(d.name)+'"';g.append(f,c.blob,d.name)}else{a.each(c.files,function(h,i){if(e._isInstanceOf("File",i)||e._isInstanceOf("Blob",i)){g.append(c.paramName[h]||f,i,i.name)}})}}c.data=g}}c.blob=null},_initIframeSettings:function(b){var c=a("<a></a>").prop("href",b.url).prop("host");b.dataType="iframe "+(b.dataType||"");b.formData=this._getFormData(b);if(b.redirect&&c&&c!==location.host){b.formData.push({name:b.redirectParamName||"redirect",value:b.redirect})}},_initDataSettings:function(b){if(this._isXHRUpload(b)){if(!this._chunkedUpload(b,true)){if(!b.data){this._initXHRData(b)}this._initProgressListener(b)}if(b.postMessage){b.dataType="postmessage "+(b.dataType||"")}}else{this._initIframeSettings(b)}},_getParamName:function(b){var c=a(b.fileInput),d=b.paramName;if(!d){d=[];c.each(function(){var e=a(this),f=e.prop("name")||"files[]",g=(e.prop("files")||[1]).length;while(g){d.push(f);g-=1}});if(!d.length){d=[c.prop("name")||"files[]"]}}else{if(!a.isArray(d)){d=[d]}}return d},_initFormSettings:function(b){if(!b.form||!b.form.length){b.form=a(b.fileInput.prop("form"));if(!b.form.length){b.form=a(this.options.fileInput.prop("form"))}}b.paramName=this._getParamName(b);if(!b.url){b.url=b.form.prop("action")||location.href}b.type=(b.type||b.form.prop("method")||"").toUpperCase();if(b.type!=="POST"&&b.type!=="PUT"&&b.type!=="PATCH"){b.type="POST"}if(!b.formAcceptCharset){b.formAcceptCharset=b.form.attr("accept-charset")}},_getAJAXSettings:function(c){var b=a.extend({},this.options,c);this._initFormSettings(b);this._initDataSettings(b);return b},_getDeferredState:function(b){if(b.state){return b.state()}if(b.isResolved()){return"resolved"}if(b.isRejected()){return"rejected"}return"pending"},_enhancePromise:function(b){b.success=b.done;b.error=b.fail;b.complete=b.always;return b},_getXHRPromise:function(e,d,c){var b=a.Deferred(),f=b.promise();d=d||this.options.context||f;if(e===true){b.resolveWith(d,c)}else{if(e===false){b.rejectWith(d,c)}}f.abort=b.promise;return this._enhancePromise(f)},_addConvenienceMethods:function(f,d){var c=this,b=function(e){return a.Deferred().resolveWith(c,[e]).promise()};d.process=function(g,e){if(g||e){d._processQueue=this._processQueue=(this._processQueue||b(this)).pipe(g,e)}return this._processQueue||b(this)};d.submit=function(){if(this.state()!=="pending"){d.jqXHR=this.jqXHR=(c._trigger("submit",f,this)!==false)&&c._onSend(f,this)}return this.jqXHR||c._getXHRPromise()};d.abort=function(){if(this.jqXHR){return this.jqXHR.abort()}return c._getXHRPromise()};d.state=function(){if(this.jqXHR){return c._getDeferredState(this.jqXHR)}if(this._processQueue){return c._getDeferredState(this._processQueue)}};d.progress=function(){return this._progress};d.response=function(){return this._response}},_getUploadedBytes:function(d){var b=d.getResponseHeader("Range"),e=b&&b.split("-"),c=e&&e.length>1&&parseInt(e[1],10);return c&&c+1},_chunkedUpload:function(m,g){var f=this,d=m.files[0],e=d.size,b=m.uploadedBytes=m.uploadedBytes||0,c=m.maxChunkSize||e,i=d.slice||d.webkitSlice||d.mozSlice,j=a.Deferred(),l=j.promise(),h,k;if(!(this._isXHRUpload(m)&&i&&(b||c<e))||m.data){return false}if(g){return true}if(b>=e){d.error=m.i18n("uploadedBytes");return this._getXHRPromise(false,m.context,[null,"error",d.error])}k=function(){var p=a.extend({},m),n=p._progress.loaded;p.blob=i.call(d,b,b+c,d.type);p.chunkSize=p.blob.size;p.contentRange="bytes "+b+"-"+(b+p.chunkSize-1)+"/"+e;f._initXHRData(p);f._initProgressListener(p);h=((f._trigger("chunksend",null,p)!==false&&a.ajax(p))||f._getXHRPromise(false,p.context)).done(function(o,r,q){b=f._getUploadedBytes(q)||(b+p.chunkSize);if(n+p.chunkSize-p._progress.loaded){f._onProgress(a.Event("progress",{lengthComputable:true,loaded:b-p.uploadedBytes,total:b-p.uploadedBytes}),p)}m.uploadedBytes=p.uploadedBytes=b;p.result=o;p.textStatus=r;p.jqXHR=q;f._trigger("chunkdone",null,p);f._trigger("chunkalways",null,p);if(b<e){k()}else{j.resolveWith(p.context,[o,r,q])}}).fail(function(o,r,q){p.jqXHR=o;p.textStatus=r;p.errorThrown=q;f._trigger("chunkfail",null,p);f._trigger("chunkalways",null,p);j.rejectWith(p.context,[o,r,q])})};this._enhancePromise(l);l.abort=function(){return h.abort()};k();return l},_beforeSend:function(c,b){if(this._active===0){this._trigger("start");this._bitrateTimer=new this._BitrateTimer();this._progress.loaded=this._progress.total=0;this._progress.bitrate=0}this._initResponseObject(b);this._initProgressObject(b);b._progress.loaded=b.loaded=b.uploadedBytes||0;b._progress.total=b.total=this._getTotal(b.files)||1;b._progress.bitrate=b.bitrate=0;this._active+=1;this._progress.loaded+=b.loaded;this._progress.total+=b.total},_onDone:function(b,g,f,d){var e=d._progress.total,c=d._response;if(d._progress.loaded<e){this._onProgress(a.Event("progress",{lengthComputable:true,loaded:e,total:e}),d)}c.result=d.result=b;c.textStatus=d.textStatus=g;c.jqXHR=d.jqXHR=f;this._trigger("done",null,d)},_onFail:function(d,f,e,c){var b=c._response;if(c.recalculateProgress){this._progress.loaded-=c._progress.loaded;this._progress.total-=c._progress.total}b.jqXHR=c.jqXHR=d;b.textStatus=c.textStatus=f;b.errorThrown=c.errorThrown=e;this._trigger("fail",null,c)},_onAlways:function(d,e,c,b){this._trigger("always",null,b)},_onSend:function(h,f){if(!f.submit){this._addConvenienceMethods(h,f)}var g=this,j,b,i,c,k=g._getAJAXSettings(f),d=function(){g._sending+=1;k._bitrateTimer=new g._BitrateTimer();j=j||(((b||g._trigger("send",h,k)===false)&&g._getXHRPromise(false,k.context,b))||g._chunkedUpload(k)||a.ajax(k)).done(function(e,m,l){g._onDone(e,m,l,k)}).fail(function(e,m,l){g._onFail(e,m,l,k)}).always(function(m,n,l){g._onAlways(m,n,l,k);g._sending-=1;g._active-=1;if(k.limitConcurrentUploads&&k.limitConcurrentUploads>g._sending){var e=g._slots.shift();while(e){if(g._getDeferredState(e)==="pending"){e.resolve();break}e=g._slots.shift()}}if(g._active===0){g._trigger("stop")}});return j};this._beforeSend(h,k);if(this.options.sequentialUploads||(this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending)){if(this.options.limitConcurrentUploads>1){i=a.Deferred();this._slots.push(i);c=i.pipe(d)}else{c=(this._sequence=this._sequence.pipe(d,d))}c.abort=function(){b=[undefined,"abort","abort"];if(!j){if(i){i.rejectWith(k.context,b)}return d()}return j.abort()};return this._enhancePromise(c)}return d()},_onAdd:function(k,g){var j=this,n=true,m=a.extend({},this.options,g),d=m.limitMultiFileUploads,h=this._getParamName(m),c,b,l,f;if(!(m.singleFileUploads||d)||!this._isXHRUpload(m)){l=[g.files];c=[h]}else{if(!m.singleFileUploads&&d){l=[];c=[];for(f=0;f<g.files.length;f+=d){l.push(g.files.slice(f,f+d));b=h.slice(f,f+d);if(!b.length){b=h}c.push(b)}}else{c=h}}g.originalFiles=g.files;a.each(l||g.files,function(e,i){var o=a.extend({},g);o.files=l?i:[i];o.paramName=c[e];j._initResponseObject(o);j._initProgressObject(o);j._addConvenienceMethods(k,o);n=j._trigger("add",k,o);return n});return n},_replaceFileInput:function(b){var c=b.clone(true);a("<form></form>").append(c)[0].reset();b.after(c).detach();a.cleanData(b.unbind("remove"));this.options.fileInput=this.options.fileInput.map(function(d,e){if(e===b[0]){return c[0]}return e});if(b[0]===this.element[0]){this.element=c}},_handleFileTreeEntry:function(f,g){var e=this,b=a.Deferred(),c=function(h){if(h&&!h.entry){h.entry=f}b.resolve([h])},d;g=g||"";if(f.isFile){if(f._file){f._file.relativePath=g;b.resolve(f._file)}else{f.file(function(h){h.relativePath=g;b.resolve(h)},c)}}else{if(f.isDirectory){d=f.createReader();d.readEntries(function(h){e._handleFileTreeEntries(h,g+f.name+"/").done(function(i){b.resolve(i)}).fail(c)},c)}else{b.resolve([])}}return b.promise()},_handleFileTreeEntries:function(b,d){var c=this;return a.when.apply(a,a.map(b,function(e){return c._handleFileTreeEntry(e,d)})).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(c){c=c||{};var b=c.items;if(b&&b.length&&(b[0].webkitGetAsEntry||b[0].getAsEntry)){return this._handleFileTreeEntries(a.map(b,function(e){var d;if(e.webkitGetAsEntry){d=e.webkitGetAsEntry();if(d){d._file=e.getAsFile()}return d}return e.getAsEntry()}))}return a.Deferred().resolve(a.makeArray(c.files)).promise()},_getSingleFileInputFiles:function(d){d=a(d);var b=d.prop("webkitEntries")||d.prop("entries"),c,e;if(b&&b.length){return this._handleFileTreeEntries(b)}c=a.makeArray(d.prop("files"));if(!c.length){e=d.prop("value");if(!e){return a.Deferred().resolve([]).promise()}c=[{name:e.replace(/^.*\\/,"")}]}else{if(c[0].name===undefined&&c[0].fileName){a.each(c,function(f,g){g.name=g.fileName;g.size=g.fileSize})}}return a.Deferred().resolve(c).promise()},_getFileInputFiles:function(b){if(!(b instanceof a)||b.length===1){return this._getSingleFileInputFiles(b)}return a.when.apply(a,a.map(b,this._getSingleFileInputFiles)).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_onChange:function(d){var b=this,c={fileInput:a(d.target),form:a(d.target.form)};this._getFileInputFiles(c.fileInput).always(function(e){c.files=e;if(b.options.replaceFileInput){b._replaceFileInput(c.fileInput)}if(b._trigger("change",d,c)!==false){b._onAdd(d,c)}})},_onPaste:function(d){var b=d.originalEvent&&d.originalEvent.clipboardData&&d.originalEvent.clipboardData.items,c={files:[]};if(b&&b.length){a.each(b,function(e,g){var f=g.getAsFile&&g.getAsFile();if(f){c.files.push(f)}});if(this._trigger("paste",d,c)===false||this._onAdd(d,c)===false){return false}}},_onDrop:function(f){var b=this,d=f.dataTransfer=f.originalEvent&&f.originalEvent.dataTransfer,c={};if(d&&d.files&&d.files.length){f.preventDefault();this._getDroppedFiles(d).always(function(e){c.files=e;if(b._trigger("drop",f,c)!==false){b._onAdd(f,c)}})}},_onDragOver:function(c){var b=c.dataTransfer=c.originalEvent&&c.originalEvent.dataTransfer;if(b){if(this._trigger("dragover",c)===false){return false}if(a.inArray("Files",b.types)!==-1){b.dropEffect="copy";c.preventDefault()}}},_initEventHandlers:function(){if(this._isXHRUpload(this.options)){this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop});this._on(this.options.pasteZone,{paste:this._onPaste})}this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragover drop");this._off(this.options.pasteZone,"paste");this._off(this.options.fileInput,"change")},_setOption:function(b,c){var d=a.inArray(b,this._specialOptions)!==-1;if(d){this._destroyEventHandlers()}this._super(b,c);if(d){this._initSpecialOptions();this._initEventHandlers()}},_initSpecialOptions:function(){var b=this.options;if(b.fileInput===undefined){b.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]')}else{if(!(b.fileInput instanceof a)){b.fileInput=a(b.fileInput)}}if(!(b.dropZone instanceof a)){b.dropZone=a(b.dropZone)}if(!(b.pasteZone instanceof a)){b.pasteZone=a(b.pasteZone)}},_getRegExp:function(d){var c=d.split("/"),b=c.pop();c.shift();return new RegExp(c.join("/"),b)},_isRegExpOption:function(b,c){return b!=="url"&&a.type(c)==="string"&&/^\/.*\/[igm]{0,3}$/.test(c)},_initDataAttributes:function(){var c=this,b=this.options;a.each(a(this.element[0].cloneNode(false)).data(),function(d,e){if(c._isRegExpOption(d,e)){e=c._getRegExp(e)}b[d]=e})},_create:function(){this._initDataAttributes();this._initSpecialOptions();this._slots=[];this._sequence=this._getXHRPromise(true);this._sending=this._active=0;this._initProgressObject(this);this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(c){var b=this;if(!c||this.options.disabled){return}if(c.fileInput&&!c.files){this._getFileInputFiles(c.fileInput).always(function(d){c.files=d;b._onAdd(null,c)})}else{c.files=a.makeArray(c.files);this._onAdd(null,c)}},send:function(f){if(f&&!this.options.disabled){if(f.fileInput&&!f.files){var d=this,b=a.Deferred(),g=b.promise(),c,e;g.abort=function(){e=true;if(c){return c.abort()}b.reject(null,"abort","abort");return g};this._getFileInputFiles(f.fileInput).always(function(h){if(e){return}f.files=h;c=d._onSend(null,f).then(function(i,k,j){b.resolve(i,k,j)},function(i,k,j){b.reject(i,k,j)})});return this._enhancePromise(g)}f.files=a.makeArray(f.files);if(f.files.length){return this._onSend(null,f)}}return this._getXHRPromise(false,f&&f.context)}})}));(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(window.jQuery)}}(function(b){var a=0;b.ajaxTransport("iframe",function(c){if(c.async){var e,d,f;return{send:function(g,h){e=b('<form style="display:none;"></form>');e.attr("accept-charset",c.formAcceptCharset);f=/\?/.test(c.url)?"&":"?";if(c.type==="DELETE"){c.url=c.url+f+"_method=DELETE";c.type="POST"}else{if(c.type==="PUT"){c.url=c.url+f+"_method=PUT";c.type="POST"}else{if(c.type==="PATCH"){c.url=c.url+f+"_method=PATCH";c.type="POST"}}}a+=1;d=b('<iframe src="javascript:false;" name="iframe-transport-'+a+'"></iframe>').bind("load",function(){var i,j=b.isArray(c.paramName)?c.paramName:[c.paramName];d.unbind("load").bind("load",function(){var k;try{k=d.contents();if(!k.length||!k[0].firstChild){throw new Error()}}catch(l){k=undefined}h(200,"success",{iframe:k});b('<iframe src="javascript:false;"></iframe>').appendTo(e);window.setTimeout(function(){e.remove()},0)});e.prop("target",d.prop("name")).prop("action",c.url).prop("method",c.type);if(c.formData){b.each(c.formData,function(k,l){b('<input type="hidden"/>').prop("name",l.name).val(l.value).appendTo(e)})}if(c.fileInput&&c.fileInput.length&&c.type==="POST"){i=c.fileInput.clone();c.fileInput.after(function(k){return i[k]});if(c.paramName){c.fileInput.each(function(k){b(this).prop("name",j[k]||c.paramName)})}e.append(c.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data")}e.submit();if(i&&i.length){c.fileInput.each(function(l,k){var m=b(i[l]);b(k).prop("name",m.prop("name"));m.replaceWith(k)})}});e.append(d).appendTo(document.body)},abort:function(){if(d){d.unbind("load").prop("src","javascript".concat(":false;"))}if(e){e.remove()}}}}});b.ajaxSetup({converters:{"iframe text":function(c){return c&&b(c[0].body).text()},"iframe json":function(c){return c&&b.parseJSON(b(c[0].body).text())},"iframe html":function(c){return c&&b(c[0].body).html()},"iframe xml":function(c){var d=c&&c[0];return d&&b.isXMLDoc(d)?d:b.parseXML((d.XMLDocument&&d.XMLDocument.xml)||b(d.body).html())},"iframe script":function(c){return c&&b.globalEval(b(c[0].body).text())}}})}));(function(b){b.fn.zclip=function(d){if(typeof d=="object"&&!d.length){var a=b.extend({path:"ZeroClipboard.swf",copy:null,beforeCopy:null,afterCopy:null,clickAfter:true,setHandCursor:true,setCSSEffects:true},d);return this.each(function(){var c=b(this);if(c.is(":visible")&&(typeof a.copy=="string"||b.isFunction(a.copy))){ZeroClipboard.setMoviePath(a.path);var f=new ZeroClipboard.Client();if(b.isFunction(a.copy)){c.bind("zClip_copy",a.copy)}if(b.isFunction(a.beforeCopy)){c.bind("zClip_beforeCopy",a.beforeCopy)}if(b.isFunction(a.afterCopy)){c.bind("zClip_afterCopy",a.afterCopy)}f.setHandCursor(a.setHandCursor);f.setCSSEffects(a.setCSSEffects);f.addEventListener("mouseOver",function(e){c.trigger("mouseenter")});f.addEventListener("mouseOut",function(e){c.trigger("mouseleave")});f.addEventListener("mouseDown",function(e){c.trigger("mousedown");if(!b.isFunction(a.copy)){f.setText(a.copy)}else{f.setText(c.triggerHandler("zClip_copy"))}if(b.isFunction(a.beforeCopy)){c.trigger("zClip_beforeCopy")}});f.addEventListener("complete",function(h,e){if(b.isFunction(a.afterCopy)){c.trigger("zClip_afterCopy")}else{if(e.length>500){e=e.substr(0,500)+"...\n\n("+(e.length-500)+" characters not shown)"}c.removeClass("hover");alert("Copied text to clipboard:\n\n "+e)}if(a.clickAfter){c.trigger("click")}});f.glue(c[0],c.parent()[0]);b(window).bind("load resize",function(){f.reposition()})}})}else{if(typeof d=="string"){return this.each(function(){var c=b(this);d=d.toLowerCase();var g=c.data("zclipId");var h=b("#"+g+".zclip");if(d=="remove"){h.remove();c.removeClass("active hover")}else{if(d=="hide"){h.hide();c.removeClass("active hover")}else{if(d=="show"){h.show()}}}})}}}})(jQuery);var ZeroClipboard={version:"1.0.7",clients:{},moviePath:"ZeroClipboard.swf",nextId:1,jQuery:function(b){if(typeof(b)=="string"){b=document.getElementById(b)}if(!b.addClass){b.hide=function(){this.style.display="none"};b.show=function(){this.style.display=""};b.addClass=function(a){this.removeClass(a);this.className+=" "+a};b.removeClass=function(g){var f=this.className.split(/\s+/);var a=-1;for(var h=0;h<f.length;h++){if(f[h]==g){a=h;h=f.length}}if(a>-1){f.splice(a,1);this.className=f.join(" ")}return this};b.hasClass=function(a){return !!this.className.match(new RegExp("\\s*"+a+"\\s*"))}}return b},setMoviePath:function(b){this.moviePath=b},dispatch:function(g,e,h){var f=this.clients[g];if(f){f.receiveEvent(e,h)}},register:function(c,d){this.clients[c]=d},getDOMObjectPosition:function(f,e){var d={left:0,top:0,width:f.width?f.width:f.offsetWidth,height:f.height?f.height:f.offsetHeight};if(f&&(f!=e)){d.left+=f.offsetLeft;d.top+=f.offsetTop}return d},Client:function(b){this.handlers={};this.id=ZeroClipboard.nextId++;this.movieId="ZeroClipboardMovie_"+this.id;ZeroClipboard.register(this.id,this);if(b){this.glue(b)}}};ZeroClipboard.Client.prototype={id:0,ready:false,movie:null,clipText:"",handCursorEnabled:true,cssEffects:true,handlers:null,glue:function(k,g,j){this.domElement=ZeroClipboard.jQuery(k);var i=99;if(this.domElement.style.zIndex){i=parseInt(this.domElement.style.zIndex,10)+1}if(typeof(g)=="string"){g=ZeroClipboard.jQuery(g)}else{if(typeof(g)=="undefined"){g=document.getElementsByTagName("body")[0]}}var l=ZeroClipboard.getDOMObjectPosition(this.domElement,g);this.div=document.createElement("div");this.div.className="zclip";this.div.id="zclip-"+this.movieId;jQuery(this.domElement).data("zclipId","zclip-"+this.movieId);var h=this.div.style;h.position="absolute";h.left=""+l.left+"px";h.top=""+l.top+"px";h.width=""+l.width+"px";h.height=""+l.height+"px";h.zIndex=i;if(typeof(j)=="object"){for(addedStyle in j){h[addedStyle]=j[addedStyle]}}g.appendChild(this.div);this.div.innerHTML=this.getHTML(l.width,l.height)},getHTML:function(i,g){var j="";var f="id="+this.id+"&width="+i+"&height="+g;if(navigator.userAgent.match(/MSIE/)){var h=location.href.match(/^https/i)?"https://":"http://";j+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+h+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+i+'" height="'+g+'" id="'+this.movieId+'" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+ZeroClipboard.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+f+'"/><param name="wmode" value="transparent"/></object>'}else{j+='<embed id="'+this.movieId+'" src="'+ZeroClipboard.moviePath+'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+i+'" height="'+g+'" name="'+this.movieId+'" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+f+'" wmode="transparent" />'}return j},hide:function(){if(this.div){this.div.style.left="-2000px"}},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML="";var d=document.getElementsByTagName("body")[0];try{d.removeChild(this.div)}catch(c){}this.domElement=null;this.div=null}},reposition:function(f){if(f){this.domElement=ZeroClipboard.jQuery(f);if(!this.domElement){this.hide()}}if(this.domElement&&this.div){var d=ZeroClipboard.getDOMObjectPosition(this.domElement);var e=this.div.style;e.left=""+d.left+"px";e.top=""+d.top+"px"}},setText:function(b){this.clipText=b;if(this.ready){this.movie.setText(b)}},addEventListener:function(d,c){d=d.toString().toLowerCase().replace(/^on/,"");if(!this.handlers[d]){this.handlers[d]=[]}this.handlers[d].push(c)},setHandCursor:function(b){this.handCursorEnabled=b;if(this.ready){this.movie.setHandCursor(b)}},setCSSEffects:function(b){this.cssEffects=!!b},receiveEvent:function(m,l){m=m.toString().toLowerCase().replace(/^on/,"");switch(m){case"load":this.movie=document.getElementById(this.movieId);if(!this.movie){var n=this;setTimeout(function(){n.receiveEvent("load",null)},1);return}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){var n=this;setTimeout(function(){n.receiveEvent("load",null)},100);this.ready=true;return}this.ready=true;try{this.movie.setText(this.clipText)}catch(j){}try{this.movie.setHandCursor(this.handCursorEnabled)}catch(j){}break;case"mouseover":if(this.domElement&&this.cssEffects){this.domElement.addClass("hover");if(this.recoverActive){this.domElement.addClass("active")}}break;case"mouseout":if(this.domElement&&this.cssEffects){this.recoverActive=false;if(this.domElement.hasClass("active")){this.domElement.removeClass("active");this.recoverActive=true}this.domElement.removeClass("hover")}break;case"mousedown":if(this.domElement&&this.cssEffects){this.domElement.addClass("active")}break;case"mouseup":if(this.domElement&&this.cssEffects){this.domElement.removeClass("active");this.recoverActive=false}break}if(this.handlers[m]){for(var e=0,i=this.handlers[m].length;e<i;e++){var k=this.handlers[m][e];if(typeof(k)=="function"){k(this,l)}else{if((typeof(k)=="object")&&(k.length==2)){k[0][k[1]](this,l)}else{if(typeof(k)=="string"){window[k](this,l)}}}}}}};
  
  
  // Modernizr v1.7  www.modernizr.com
  window.Modernizr=function(a,b,c){function G(){e.input=function(a){for(var b=0,c=a.length;b<c;b++)t[a[b]]=!!(a[b]in l);return t}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)l.setAttribute("type",f=a[d]),e=l.type!=="text",e&&(l.value=m,l.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&l.style.WebkitAppearance!==c?(g.appendChild(l),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(l,null).WebkitAppearance!=="textfield"&&l.offsetHeight!==0,g.removeChild(l)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=l.checkValidity&&l.checkValidity()===!1:/^color$/.test(f)?(g.appendChild(l),g.offsetWidth,e=l.value!=m,g.removeChild(l)):e=l.value!=m)),s[a[d]]=!!e;return s}("search tel url email datetime date month week time datetime-local number range color".split(" "))}function F(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1),d=(a+" "+p.join(c+" ")+c).split(" ");return!!E(d,b)}function E(a,b){for(var d in a)if(k[a[d]]!==c&&(!b||b(a[d],j)))return!0}function D(a,b){return(""+a).indexOf(b)!==-1}function C(a,b){return typeof a===b}function B(a,b){return A(o.join(a+";")+(b||""))}function A(a){k.cssText=a}var d="1.7",e={},f=!0,g=b.documentElement,h=b.head||b.getElementsByTagName("head")[0],i="modernizr",j=b.createElement(i),k=j.style,l=b.createElement("input"),m=":)",n=Object.prototype.toString,o=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),p="Webkit Moz O ms Khtml".split(" "),q={svg:"http://www.w3.org/2000/svg"},r={},s={},t={},u=[],v,w=function(a){var c=b.createElement("style"),d=b.createElement("div"),e;c.textContent=a+"{#modernizr{height:3px}}",h.appendChild(c),d.id="modernizr",g.appendChild(d),e=d.offsetHeight===3,c.parentNode.removeChild(c),d.parentNode.removeChild(d);return!!e},x=function(){function d(d,e){e=e||b.createElement(a[d]||"div");var f=(d="on"+d)in e;f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=C(e[d],"function"),C(e[d],c)||(e[d]=c),e.removeAttribute(d))),e=null;return f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),y=({}).hasOwnProperty,z;C(y,c)||C(y.call,c)?z=function(a,b){return b in a&&C(a.constructor.prototype[b],c)}:z=function(a,b){return y.call(a,b)},r.flexbox=function(){function c(a,b,c,d){a.style.cssText=o.join(b+":"+c+";")+(d||"")}function a(a,b,c,d){b+=":",a.style.cssText=(b+o.join(c+";"+b)).slice(0,-b.length)+(d||"")}var d=b.createElement("div"),e=b.createElement("div");a(d,"display","box","width:42px;padding:0;"),c(e,"box-flex","1","width:10px;"),d.appendChild(e),g.appendChild(d);var f=e.offsetWidth===42;d.removeChild(e),g.removeChild(d);return f},r.canvas=function(){var a=b.createElement("canvas");return a.getContext&&a.getContext("2d")},r.canvastext=function(){return e.canvas&&C(b.createElement("canvas").getContext("2d").fillText,"function")},r.webgl=function(){return!!a.WebGLRenderingContext},r.touch=function(){return"ontouchstart"in a||w("@media ("+o.join("touch-enabled),(")+"modernizr)")},r.geolocation=function(){return!!navigator.geolocation},r.postmessage=function(){return!!a.postMessage},r.websqldatabase=function(){var b=!!a.openDatabase;return b},r.indexedDB=function(){for(var b=-1,c=p.length;++b<c;){var d=p[b].toLowerCase();if(a[d+"_indexedDB"]||a[d+"IndexedDB"])return!0}return!1},r.hashchange=function(){return x("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},r.history=function(){return !!(a.history&&history.pushState)},r.draganddrop=function(){return x("dragstart")&&x("drop")},r.websockets=function(){return"WebSocket"in a},r.rgba=function(){A("background-color:rgba(150,255,150,.5)");return D(k.backgroundColor,"rgba")},r.hsla=function(){A("background-color:hsla(120,40%,100%,.5)");return D(k.backgroundColor,"rgba")||D(k.backgroundColor,"hsla")},r.multiplebgs=function(){A("background:url(//:),url(//:),red url(//:)");return(new RegExp("(url\\s*\\(.*?){3}")).test(k.background)},r.backgroundsize=function(){return F("backgroundSize")},r.borderimage=function(){return F("borderImage")},r.borderradius=function(){return F("borderRadius","",function(a){return D(a,"orderRadius")})},r.boxshadow=function(){return F("boxShadow")},r.textshadow=function(){return b.createElement("div").style.textShadow===""},r.opacity=function(){B("opacity:.55");return/^0.55$/.test(k.opacity)},r.cssanimations=function(){return F("animationName")},r.csscolumns=function(){return F("columnCount")},r.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";A((a+o.join(b+a)+o.join(c+a)).slice(0,-a.length));return D(k.backgroundImage,"gradient")},r.cssreflections=function(){return F("boxReflect")},r.csstransforms=function(){return!!E(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])},r.csstransforms3d=function(){var a=!!E(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);a&&"webkitPerspective"in g.style&&(a=w("@media ("+o.join("transform-3d),(")+"modernizr)"));return a},r.csstransitions=function(){return F("transitionProperty")},r.fontface=function(){var a,c,d=h||g,e=b.createElement("style"),f=b.implementation||{hasFeature:function(){return!1}};e.type="text/css",d.insertBefore(e,d.firstChild),a=e.sheet||e.styleSheet;var i=f.hasFeature("CSS2","")?function(b){if(!a||!b)return!1;var c=!1;try{a.insertRule(b,0),c=/src/i.test(a.cssRules[0].cssText),a.deleteRule(a.cssRules.length-1)}catch(d){}return c}:function(b){if(!a||!b)return!1;a.cssText=b;return a.cssText.length!==0&&/src/i.test(a.cssText)&&a.cssText.replace(/\r+|\n+/g,"").indexOf(b.split(" ")[0])===0};c=i('@font-face { font-family: "font"; src: url(data:,); }'),d.removeChild(e);return c},r.video=function(){var a=b.createElement("video"),c=!!a.canPlayType;if(c){c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"');var d='video/mp4; codecs="avc1.42E01E';c.h264=a.canPlayType(d+'"')||a.canPlayType(d+', mp4a.40.2"'),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return c},r.audio=function(){var a=b.createElement("audio"),c=!!a.canPlayType;c&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"'),c.mp3=a.canPlayType("audio/mpeg;"),c.wav=a.canPlayType('audio/wav; codecs="1"'),c.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;"));return c},r.localstorage=function(){try{return!!localStorage.getItem}catch(a){return!1}},r.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(a){return!1}},r.webWorkers=function(){return!!a.Worker},r.applicationcache=function(){return!!a.applicationCache},r.svg=function(){return!!b.createElementNS&&!!b.createElementNS(q.svg,"svg").createSVGRect},r.inlinesvg=function(){var a=b.createElement("div");a.innerHTML="<svg/>";return(a.firstChild&&a.firstChild.namespaceURI)==q.svg},r.smil=function(){return!!b.createElementNS&&/SVG/.test(n.call(b.createElementNS(q.svg,"animate")))},r.svgclippaths=function(){return!!b.createElementNS&&/SVG/.test(n.call(b.createElementNS(q.svg,"clipPath")))};for(var H in r)z(r,H)&&(v=H.toLowerCase(),e[v]=r[H](),u.push((e[v]?"":"no-")+v));e.input||G(),e.crosswindowmessaging=e.postmessage,e.historymanagement=e.history,e.addTest=function(a,b){a=a.toLowerCase();if(!e[a]){b=!!b(),g.className+=" "+(b?"":"no-")+a,e[a]=b;return e}},A(""),j=l=null,f&&a.attachEvent&&function(){var a=b.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&function(a,b){function p(a,b){var c=-1,d=a.length,e,f=[];while(++c<d)e=a[c],(b=e.media||b)!="screen"&&f.push(p(e.imports,b),e.cssText);return f.join("")}function o(a){var b=-1;while(++b<e)a.createElement(d[b])}var c="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",d=c.split("|"),e=d.length,f=new RegExp("(^|\\s)("+c+")","gi"),g=new RegExp("<(/*)("+c+")","gi"),h=new RegExp("(^|[^\\n]*?\\s)("+c+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),i=b.createDocumentFragment(),j=b.documentElement,k=j.firstChild,l=b.createElement("body"),m=b.createElement("style"),n;o(b),o(i),k.insertBefore(m,k.firstChild),m.media="print",a.attachEvent("onbeforeprint",function(){var a=-1,c=p(b.styleSheets,"all"),k=[],o;n=n||b.body;while((o=h.exec(c))!=null)k.push((o[1]+o[2]+o[3]).replace(f,"$1.iepp_$2")+o[4]);m.styleSheet.cssText=k.join("\n");while(++a<e){var q=b.getElementsByTagName(d[a]),r=q.length,s=-1;while(++s<r)q[s].className.indexOf("iepp_")<0&&(q[s].className+=" iepp_"+d[a])}i.appendChild(n),j.appendChild(l),l.className=n.className,l.innerHTML=n.innerHTML.replace(g,"<$1font")}),a.attachEvent("onafterprint",function(){l.innerHTML="",j.removeChild(l),j.appendChild(n),m.styleSheet.cssText=""})}(a,b),e._enableHTML5=f,e._version=d,g.className=g.className.replace(/\bno-js\b/,"")+" js "+u.join(" ");return e}(this,this.document)
  