(function(p,t,k,R){var m=function(){var c={};return{register:function(h,k){c[h]=k},require:function(h,k){var l=c[h];if(!l)throw Error('CommonJS error: failed to require("'+k+'")');return l}}}();m.register("$1",function(c,h,k){function l(b){var f=typeof b;if("string"===f)if(/[^ <>!=()%^&|?:n0-9]/.test(b))console.error("Invalid plural: "+b);else return new Function("n","return "+b);"function"!==f&&(b=function(a){return 1!=a});return b}c.init=function(b){function f(g,d,b){return(g=a[g])&&g[b]?g[b]:d|| ""}b=l(b);var a={};return{_:function(a){return f(a,a,0)},_x:function(a,d){return f(d+"\u0004"+a,a,0)},_n:function(a,d,e){e=Number(b(e));isNaN(e)&&(e=0);return f(a,i?d:a,e)},load:function(g){a=g||{};return this},pluraleq:function(a){b=l(a);return this}}};return c}({},p,t));m.register("$2",function(c,h,k){Array.prototype.indexOf||(Array.prototype.indexOf=function(c){if(null==this)throw new TypeError;var b,f=Object(this),a=f.length>>>0;if(0===a)return-1;b=0;1=a)return-1;for(b=0<=b?b:Math.max(a-Math.abs(b),0);b
X

');r.find("p").text(a||"Empty message");b?r.find("small").text(b):r.find("small").remove();if(n.length){n.push({label:"Cancel",callback:y,css:"cancel"});var v,q=k('
');b=function(a,d){v=k('');v.click(function(a){"function"===typeof d.callback&&d.callback(a,{close:y})});q.append(v);return v};for(a=0;a');d=k('
');e=k('
');y=k('
Untitled
');u=k("");B=k('x');n=k('
'); g.append(d.append(e)).append(n).prependTo(m.body);k(m).on("keydown",l);k(h).resize(b);E=h.innerWidth;w=h.innerHeight;A=e.outerWidth(!0)-e.width()+(d.innerWidth()-d.width());C=parseInt(e.css("width"));if(!C||isNaN(C))C=e.width();u.hide().prependTo(d);y.append(B.hide()).hide().prependTo(d);g.hide()}return g},I=c.width=function(a){var q=D();if(null===a)d.css("width",""),e.css("width","");else{a=a||C||640;x=a+A;z=a;var b=E;x>b?(x=b,a=x-A,q.addClass("spill")):q.removeClass("spill");d.css("width",x+"px"); e.css("width",a+"px")}return c};c.autoSize=function(){var a=D(),d=C||0;e.children().each(function(a,q){d=Math.max(d,k(q).outerWidth(!0))});I(d);if(s=a.find("div.overlay-scroll")[0])w=h.innerHeight,f();return c};c.css=function(a){D().attr("class",a);return c};c.html=function(a){D();h.innerShiv&&(a=innerShiv(a,!1));return e.html(a)};c.append=function(a){D();a instanceof jQuery||(a=k(a));e.append(a);return c};var H=c.close=function(a){if(r){var d=function(){D().hide();k(m.body).removeClass("has-overlay"); r=!1;e.html("");r=null;g.trigger("overlayClosed",[c])};null==a&&(a=300);g.trigger("overlayClosing",[c]);a?g.fadeOut(a,d):d()}return c};c.title=function(d,b){D();var n="",r=y.find("span");b&&/^lang lang-(\w+)/.exec(b)&&(n=RegExp.$1);r.eq(0).attr("class",b||"icon").attr("lang",n);q=d||"";r.eq(1).text(q);null!=d?a(!0):v||a(!1);return c};c.enableClose=function(){D();v=!0;B.off("click").on("click",function(a){H();return!1});a(!0);B.show();return c};c.disableClose=function(){D();v=!1;B.hide();r&&q||a(!1); return c};c.enableNav=function(a){u.append(a);u.show();return c};c.disableNav=function(){u.html("").hide();return c};c.open=function(){D();e.html("");I(C);g.attr("class","");k(m.body).addClass("has-overlay");D().show();r=!0;c.title(null);v&&a(!0);g.trigger("overlayOpened",[c]);return c};c.listen=function(a){D().on("overlayClosed",a);return c};c.unlisten=function(a){D().off("overlayClosed",a);return c};return c}({},p,t));m.register("$11",function(c,h,m){function l(a,b){this.$element=k(a);this.options= b;this.enabled=!0;this.fixTitle()}c.init=function(a,g){var d={fade:!0,offset:5,delayIn:b,delayOut:f,anchor:a.attr("data-anchor"),gravity:a.attr("data-gravity")||"s"};g&&(d=k.extend({},d,g));a.tipsy(d)};c.delays=function(a,g){b=a||150;f=g||100};c.kill=function(){k("div.tipsy").remove()};c.text=function(a,b){b.data("tipsy").setTitle(a)};var b,f;c.delays();k(m.body).on("overlayOpened overlayClosing",function(a){c.kill();return!0});l.prototype={show:function(){var a=this.getTitle();if(a&&this.enabled){var b= this.tip();b.find(".tipsy-inner")[this.options.html?"html":"text"](a);b[0].className="tipsy";b.remove().css({top:0,left:0}).prependTo(m.body);var a=(a=this.options.anchor)?this.$element.find(a):this.$element,a=k.extend({},a.offset(),{width:a[0].offsetWidth,height:a[0].offsetHeight}),d=b[0].offsetWidth,e=b[0].offsetHeight,n="function"==typeof this.options.gravity?this.options.gravity.call(this.$element[0]):this.options.gravity,f;switch(n.charAt(0)){case "n":f={top:a.top+a.height+this.options.offset, left:a.left+a.width/2-d/2};break;case "s":f={top:a.top-e-this.options.offset,left:a.left+a.width/2-d/2};break;case "e":f={top:a.top+a.height/2-e/2,left:a.left-d-this.options.offset};break;case "w":f={top:a.top+a.height/2-e/2,left:a.left+a.width+this.options.offset}}2==n.length&&("w"==n.charAt(1)?f.left=a.left+a.width/2-15:f.left=a.left+a.width/2-d+15);b.css(f).addClass("tipsy-"+n);b.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+n.charAt(0);this.options.className&&b.addClass("function"== typeof this.options.className?this.options.className.call(this.$element[0]):this.options.className);b.addClass("in")}},hide:function(){this.tip().remove()},fixTitle:function(){var a=this.$element,b=a.attr("title")||"";(b||"string"!==typeof a.attr("original-title"))&&a.attr("original-title",b).removeAttr("title")},getTitle:function(){var a,b=this.$element,d=this.options;this.fixTitle();"string"==typeof d.title?a=b.attr("title"==d.title?"original-title":d.title):"function"==typeof d.title&&(a=d.title.call(b[0])); return(a=(""+a).replace(/(^\s*|\s*$)/,""))||d.fallback},setTitle:function(a){var b=this.$element;b.attr("default-title")||b.attr("default-title",this.getTitle());null==a&&(a=b.attr("default-title")||this.getTitle());b.attr("original-title",a);if(this.$tip)this.$tip.find(".tipsy-inner")[this.options.html?"html":"text"](a)},tip:function(){this.$tip||(this.$tip=k('
').html('
'),this.$tip.data("tipsy-pointee",this.$element[0])); return this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.options=this.$element=null)},enable:function(){this.enabled=!0},disable:function(){this.hide();this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}};k.fn.tipsy=function(a){function b(d){var n=k.data(d,"tipsy");n||(n=new l(d,k.fn.tipsy.elementOptions(d,a)),k.data(d,"tipsy",n));return n}function d(){var d=b(this),n=a.delayIn;d.hoverState="in";0==n?d.show():(d.fixTitle(),setTimeout(function(){"in"== d.hoverState&&d.show()},n))}function e(){var d=b(this),n=a.delayOut;d.hoverState="out";0==n?d.hide():(d.tip().removeClass("in"),setTimeout(function(){"out"==d.hoverState&&d.hide()},n))}a=k.extend({},k.fn.tipsy.defaults,a);a.live||this.each(function(){b(this)});if("manual"!=a.trigger){var n=a.live?"live":"bind",f="hover"==a.trigger?"mouseleave":"blur";this[n]("hover"==a.trigger?"mouseenter":"focus",d)[n](f,e)}return this};k.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"", gravity:"n",html:!1,live:!1,offset:0,opacity:0.8,title:"title",trigger:"hover",anchor:null};k.fn.tipsy.elementOptions=function(a,b){return k.metadata?k.extend({},b,k(a).metadata()):b};k.fn.tipsy.autoNS=function(){return k(this).offset().top>k(m).scrollTop()+k(h).height()/2?"s":"n"};k.fn.tipsy.autoWE=function(){return k(this).offset().left>k(m).scrollLeft()+k(h).width()/2?"e":"w"};k.fn.tipsy.autoBounds=function(a,b){return function(){var d=b[0],e=1Back').attr("href",b[0]).attr("title", b[1]).click(function(d){if(u[a]===b&&v())return l(d)});e.enableNav(d);m.require("$11","tooltip.js").init(d)}function a(a,d){b().autoSize();var n=e.init();m.require("$18","html.js").init(n);u.length&&f();n.find("[data-script]").each(function(a,b){b=k(b);for(var n=-1,q,r=b.attr("data-script").split(" ");++nw)continue a;k(r).focus();break a}}function g(){B=null;u=[];return!0}function d(a){var b=k(a.currentTarget),d=b.attr("data-modal");if("back"===d){if(v())return l(a);d="close"}if("close"===d){r();var n=b.attr("href");if(n&&-1!==n.indexOf("#!"))return!0}else{var e="submit"===a.type,f=b.attr("title")||b.attr("data-title"),n=b.attr("href")||b.attr("action"),g=e?b.serialize():"",e=e?b.attr("method"): "get";d||(d=n.split("/").slice(1,4).join("-"));b.trigger("locoModalInvoked",[]);s(n,f,e,g,"modal "+d)}return l(a)}var e,n=m.require("$30","ga.js"),y={},u=[],B,s=c.load=function(d,r,f,g,y){var w=B;B=[].slice.call(arguments);w&&d!==w[0]&&(u.push(w),d+=-1===d.indexOf("?")?"?":"&",d+="r="+encodeURIComponent(w[0]));b().open().title("Loading ..").disableClose().disableNav().css("modal").html('
');y&&e.width(null).css(y).autoSize();var w=d.split("#"),v=w[1];v&&(d=w[0]);var w=m.require("$22", "http.js"),h={type:f||"get",data:g||"",url:w.jsonLink(d)};w.ajax(h,function(b,w,c){var h=b&&b.html;if(!h)return b&&b.redirect?(B=u.pop()||null,s(b.redirect,r,f,g,y)):(b=k('

').text(w||"Unknown error"),w=k(''),b=k('
').append(b).append(w),e.enableClose().title("Error "+c||"?").html("").append(b)),!1;r=b.title||r||"Untitled";B&&(B[1]=r);e.enableClose().title(r, b.icon).html(h);c=b.js||{};v&&(c["#"]=v);a(d,c);n.page(d,r);e.init().one("overlayClosed",function(){n.reset()});return!0});return c},r=c.close=function(){b().close();return c},v=c.back=function(){if(previous=u.pop())return B=u[u.length-2],s.apply(null,previous),!0};c.reload=function(){B&&s.apply(null,B)};c.initLink=function(a){a.click(d)};c.initForm=function(a){k(a).submit(d)};c.replace=function(d){b();var n=d&&d.html,r=d&&d.url,f=d&&d.title,g=d&&d.action;if(r)n=u.length-1,n=0<=n?u[n][0]:void 0,r=== n?v():(d=d&&d.css||r.split("/").slice(1,4).join("-"),s(r,f,"","",d));else if(n)e.open().html(n),f&&e.enableClose().title(f),a("",d&&d.js);else if("function"===typeof c[g])c[g]()};c.find=function(a){return b().init().find(a)};c.script=function(a,d){if(d){if("function"!==typeof d.run)throw Error(a+" macro has no run function");y[a]=d.run;return c}return y[a]};return c}({},p,t));m.register("$22",function(c,h,F){var l,b,f={401:"Authorization Required",422:"Invalid data sent to server",404:"Not Found", 500:"Server Error",502:"Bad Gateway",503:"Service unavailable",504:"Gateway timeout"};c.keepAlive=function(a){l=a;b&&clearTimeout(b);b=setTimeout(function(){b=null;c.ajax({url:"/ajax/user/session.json"})},a)};c.jsonLink=function(a){if(!a)return"";a=a.split("?");a[0]=a[0].replace(/(\.[a-z0-9]{1,4})?$/i,".json");return a.join("?")};c.errorData=function(a,b,d){var e,n;d=a.responseText;b=a.status;if(!d&&0===b)return null;try{e=k.parseJSON(d)||{}}catch(y){e={},n=f[a.status]||y.message||y}e.error=n||e.error|| e.statusText||a.statusText||f[b]||"Unknown Error";return e};c.ajax=function(a,b,d,e){function n(a){function b(a){var d=a&&a[0];if(!d||F.contains&&!F.contains(d))a=k(F.body);return a}a.alert&&alert(a.alert);var n=a.events,n=a.success,r=b(e);n&&m.require("$34","growl.js").success.apply(null,n.push?n:[n]);r.trigger("locoAjaxSuccess",[a]);if((n=a.events)&&n.length)for(var f,q=m.require("$30","ga.js");f=n.shift();)r=b(r),r.trigger(f,[a]),q.event("ajax",f);if(r=a.download)h.location.assign(r);else if(r= a.redirect)if(0===r.indexOf("/modal/"))a.modal={url:r};else return h.location.assign(r),!1;else if(a.reload)return h.location.reload(),!1;(r=a.modal)&&m.require("$31","modal.js").replace(r);d&&d();return!0}function y(a,e,y){if("abort"!==e){var r=a.status,v;if(401===r)m.require("$31","modal.js").load("/modal/user/ping.json?r="+encodeURIComponent(location.pathname),f[r]);else{if("parsererror"===e)h.console&&console.error&&console.error(r,a.responseText),v=404===r?"Ajax service not found":/^\s+Fatal error/.test(a.responseText)? "Fatal server error from Ajax request":"Bad Ajax response";else{var q=c.errorData(a,e,y);q&&q.error&&(v=q.error)}"function"===typeof b&&!1===b(null,v,r,a)?d&&d():q&&q.data&&!n(q.data)||(alert(v||"Unknown Ajax error"),d&&d())}}}(a.headers||(a.headers={}))["X-Loco-Csrf"]=h.loco&&G.csrf||"";a.error=y;a.success=function(a,e,s){if(!a||"object"!==typeof a)return y(s,"unknown");l&&c.keepAlive(l);(a.status||a.error)&&alert(a.error||a.statusText||s.statusText||f[a.status]||"Unknown Error");"function"===typeof b&& !1===b(a&&a.data?a.data:a,null,e,s)?d&&d():a&&a.data?n(a.data):d&&d()};-1!==a.url.indexOf(".json")&&(a.dataType="json");return k.ajax(a)};return c}({},p,t));m.register("$8",function(c,h,m){c.listen=function(c,b){function f(){s[e?"show":"hide"]()}function a(a){B&&c.setAttribute("size",a.length||1);e=a;f();return a}function g(){n=null;b(e)}function d(){var d=c.value;u&&d===u&&(d="");d!==e&&(n&&clearTimeout(n),a(d),y?n=setTimeout(g,y):g())}var e,n;c=c instanceof jQuery?c[0]:c;var y=150,u=h.attachEvent&& c.getAttribute("placeholder"),B=1===Number(c.size),s=k('clear').click(function(a){c.value="";d();return!1});a(c.value);k(c).on("input blur focus",function(){d();return!0}).after(s);f();return{delay:function(a){y=a},ping:function(b){b?(n&&clearTimeout(n),b=c.value,u&&b===u&&(b=""),a(b),g(),b=void 0):b=d();return b},val:function(d){if(null==d)return e;n&&clearTimeout(n);c.value=a(d);f()},el:function(){return c},blur:function(a){return k(c).on("blur", a)}}};return c}({},p,t));m.register("$21",{"\u00e1":"a","\u00e0":"a","\u0103":"a","\u1eaf":"a","\u1eb1":"a","\u1eb5":"a","\u1eb3":"a","\u00e2":"a","\u1ea5":"a","\u1ea7":"a","\u1eab":"a","\u1ea9":"a","\u01ce":"a","\u00e5":"a","\u01fb":"a","\u00e4":"a","\u01df":"a","\u00e3":"a","\u0227":"a","\u01e1":"a","\u0105":"a","\u0101":"a","\u1ea3":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1eb7":"a","\u1ead":"a","\u1e01":"a","\u01fd":"\u00e6","\u01e3":"\u00e6","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0107":"c", "\u0109":"c","\u010d":"c","\u010b":"c","\u00e7":"c","\u1e09":"c","\u010f":"d","\u1e0b":"d","\u1e11":"d","\u0111":"d","\u1e0d":"d","\u1e13":"d","\u1e0f":"d","\u00f0":"d","\ua77a":"d","\u01c6":"\u01f3","\u00e9":"e","\u00e8":"e","\u0115":"e","\u00ea":"e","\u1ebf":"e","\u1ec1":"e","\u1ec5":"e","\u1ec3":"e","\u011b":"e","\u00eb":"e","\u1ebd":"e","\u0117":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u0113":"e","\u1e17":"e","\u1e15":"e","\u1ebb":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u1e19":"e", "\u1e1b":"e","\u1e1f":"f","\ua77c":"f","\u01f5":"g","\u011f":"g","\u011d":"g","\u01e7":"g","\u0121":"g","\u0123":"g","\u1e21":"g","\ua7a1":"g","\u1d79":"g","\u0125":"h","\u021f":"h","\u1e27":"h","\u1e23":"h","\u1e29":"h","\u0127":"h","\u210f":"h","\u1e25":"h","\u1e2b":"h","\u1e96":"h","\u00ed":"i","\u00ec":"i","\u012d":"i","\u00ee":"i","\u01d0":"i","\u00ef":"i","\u1e2f":"i","\u0129":"i","\u012f":"i","\u012b":"i","\u1ec9":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u1e2d":"i","\u0135":"j","\u01f0":"j", "\u1e31":"k","\u01e9":"k","\u0137":"k","\ua7a3":"k","\u1e33":"k","\u1e35":"k","\u013a":"l","\u013e":"l","\u013c":"l","\u0142":"l","\u1e37":"l","\u1e39":"l","\u1e3d":"l","\u1e3b":"l","\u0140":"l","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0144":"n","\u01f9":"n","\u0148":"n","\u00f1":"n","\u1e45":"n","\u0146":"n","\ua7a5":"n","\u1e47":"n","\u1e4b":"n","\u1e49":"n","\u00f3":"o","\u00f2":"o","\u014f":"o","\u00f4":"o","\u1ed1":"o","\u1ed3":"o","\u1ed7":"o","\u1ed5":"o","\u01d2":"o","\u00f6":"o","\u022b":"o", "\u0151":"o","\u00f5":"o","\u1e4d":"o","\u1e4f":"o","\u022d":"o","\u022f":"o","\u0231":"o","\u00f8":"o","\u01ff":"o","\u01eb":"o","\u01ed":"o","\u014d":"o","\u1e53":"o","\u1e51":"o","\u1ecf":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edb":"o","\u1edd":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u1e55":"p","\u1e57":"p","\u0155":"r","\u0159":"r","\u1e59":"r","\u0157":"r","\ua7a7":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u1e5f":"r","\ua783":"r","\u015b":"s", "\u1e65":"s","\u015d":"s","\u0161":"s","\u1e67":"s","\u1e61":"s","\u015f":"s","\ua7a9":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u017f":"s","\ua785":"s","\u1e9b":"s","\u0165":"t","\u1e97":"t","\u1e6b":"t","\u0163":"t","\u1e6d":"t","\u021b":"t","\u1e71":"t","\u1e6f":"t","\ua787":"t","\u00fa":"u","\u00f9":"u","\u016d":"u","\u00fb":"u","\u01d4":"u","\u016f":"u","\u00fc":"u","\u01d8":"u","\u01dc":"u","\u01da":"u","\u01d6":"u","\u0171":"u","\u0169":"u","\u1e79":"u","\u0173":"u","\u016b":"u","\u1e7b":"u", "\u1ee7":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1ee9":"u","\u1eeb":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u1e77":"u","\u1e75":"u","\u1e7d":"v","\u1e7f":"v","\u1e83":"w","\u1e81":"w","\u0175":"w","\u1e98":"w","\u1e85":"w","\u1e87":"w","\u1e89":"w","\u1e8d":"x","\u1e8b":"x","\u00fd":"y","\u1ef3":"y","\u0177":"y","\u1e99":"y","\u00ff":"y","\u1ef9":"y","\u1e8f":"y","\u0233":"y","\u1ef7":"y","\u1ef5":"y","\u017a":"z","\u1e91":"z","\u017e":"z","\u017c":"z","\u1e93":"z", "\u1e95":"z","\u01ef":"\u0292","\u1f00":"\u03b1","\u1f04":"\u03b1","\u1f84":"\u03b1","\u1f02":"\u03b1","\u1f82":"\u03b1","\u1f06":"\u03b1","\u1f86":"\u03b1","\u1f80":"\u03b1","\u1f01":"\u03b1","\u1f05":"\u03b1","\u1f85":"\u03b1","\u1f03":"\u03b1","\u1f83":"\u03b1","\u1f07":"\u03b1","\u1f87":"\u03b1","\u1f81":"\u03b1","\u03ac":"\u03b1","\u1f71":"\u03b1","\u1fb4":"\u03b1","\u1f70":"\u03b1","\u1fb2":"\u03b1","\u1fb0":"\u03b1","\u1fb6":"\u03b1","\u1fb7":"\u03b1","\u1fb1":"\u03b1","\u1fb3":"\u03b1","\u1f10":"\u03b5", "\u1f14":"\u03b5","\u1f12":"\u03b5","\u1f11":"\u03b5","\u1f15":"\u03b5","\u1f13":"\u03b5","\u03ad":"\u03b5","\u1f73":"\u03b5","\u1f72":"\u03b5","\u1f20":"\u03b7","\u1f24":"\u03b7","\u1f94":"\u03b7","\u1f22":"\u03b7","\u1f92":"\u03b7","\u1f26":"\u03b7","\u1f96":"\u03b7","\u1f90":"\u03b7","\u1f21":"\u03b7","\u1f25":"\u03b7","\u1f95":"\u03b7","\u1f23":"\u03b7","\u1f93":"\u03b7","\u1f27":"\u03b7","\u1f97":"\u03b7","\u1f91":"\u03b7","\u03ae":"\u03b7","\u1f75":"\u03b7","\u1fc4":"\u03b7","\u1f74":"\u03b7", "\u1fc2":"\u03b7","\u1fc6":"\u03b7","\u1fc7":"\u03b7","\u1fc3":"\u03b7","\u1f30":"\u03b9","\u1f34":"\u03b9","\u1f32":"\u03b9","\u1f36":"\u03b9","\u1f31":"\u03b9","\u1f35":"\u03b9","\u1f33":"\u03b9","\u1f37":"\u03b9","\u03af":"\u03b9","\u1f77":"\u03b9","\u1f76":"\u03b9","\u1fd0":"\u03b9","\u1fd6":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u1fd3":"\u03b9","\u1fd2":"\u03b9","\u1fd7":"\u03b9","\u1fd1":"\u03b9","\u1f40":"\u03bf","\u1f44":"\u03bf","\u1f42":"\u03bf","\u1f41":"\u03bf","\u1f45":"\u03bf", "\u1f43":"\u03bf","\u03cc":"\u03bf","\u1f79":"\u03bf","\u1f78":"\u03bf","\u1fe4":"\u03c1","\u1fe5":"\u03c1","\u1f50":"\u03c5","\u1f54":"\u03c5","\u1f52":"\u03c5","\u1f56":"\u03c5","\u1f51":"\u03c5","\u1f55":"\u03c5","\u1f53":"\u03c5","\u1f57":"\u03c5","\u03cd":"\u03c5","\u1f7b":"\u03c5","\u1f7a":"\u03c5","\u1fe0":"\u03c5","\u1fe6":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u1fe3":"\u03c5","\u1fe2":"\u03c5","\u1fe7":"\u03c5","\u1fe1":"\u03c5","\u1f60":"\u03c9","\u1f64":"\u03c9","\u1fa4":"\u03c9", "\u1f62":"\u03c9","\u1fa2":"\u03c9","\u1f66":"\u03c9","\u1fa6":"\u03c9","\u1fa0":"\u03c9","\u1f61":"\u03c9","\u1f65":"\u03c9","\u1fa5":"\u03c9","\u1f63":"\u03c9","\u1fa3":"\u03c9","\u1f67":"\u03c9","\u1fa7":"\u03c9","\u1fa1":"\u03c9","\u03ce":"\u03c9","\u1f7d":"\u03c9","\u1ff4":"\u03c9","\u1f7c":"\u03c9","\u1ff2":"\u03c9","\u1ff6":"\u03c9","\u1ff7":"\u03c9","\u1ff3":"\u03c9","\u0491":"\u0433","\u0450":"\u0435","\u0451":"\u0435","\u04c2":"\u0436","\u045d":"\u0438","\u04e3":"\u0438","\u04ef":"\u0443"}); m.register("$7",function(c,h,k){c.init=function(){function c(a){return u[a]||a}function b(a){return String(a||"").toLowerCase().replace(n,c)}function f(a,d,b){for(var n=a.split(y),q=n.length;0!==q--;)(a=n[q])&&null==b[a]&&(d.push(a),b[a]=!0);return d}function a(a){return f(b(a),[],{})}function g(a,d){for(var n=[],g={},q,c=d.length;0!==c--;)(q=d[c])&&f(b(q),n,g);e[a]=n}function d(a,d){var b=[],n=-1,q=e,f=q.length,g,c,y,w,u,h,k=a.length,l=d?!0:!1;a:for(;++n\[\]\/\\\u00a0\u1680\u180e\u2000-\u206f\u2e00-\u2e7f\u3000-\u303f]+/,u=m.require("$21","flatten.json");return{split:a,norm:b,pull:function(a,b){return d(a,b)},find:function(b,n){return d(a(b),n)},add:function(d,b){e[d]=a(b)},push:function(a){g(e.length,a)},index:function(a,d){g(a,d)},size:function(){return e.length},clear:function(){e=[]},remove:function(a){e[a]= null}}};return c}({},p,t));m.register("$23",function(c,h,k){c.create=function(){var c=[],b=m.require("$7","fulltext.js").init();return{add:function(f,a){b.add(c.length,a);c.push(f);return this},find:function(f){return b.find(f,c)},clear:function(){c=[];b.clear();return this}}};return c}({},p,t));m.register("$10",function(c,h,F){function l(b){-1===b.indexOf("?")&&(b="/auto/"+b+".json?q=");this.url=b;this.dead={}}function b(){this.dict=m.require("$23","dict.js").create()}c.init=function(f){function a(){if("hint"!== I){var a=w.val()&&!(J&&J.val())&&null==E&&!q;F[a?"addClass":"removeClass"]("error")}}function g(a){J&&J.val(a)}function d(){p.show();var a=w.outerWidth(!1),b=w.outerHeight(!1),d=w.css("margin-top");d&&(d=parseInt(d),isNaN(d)||(b+=d));a-=2;p.css("top",b+"px").css("width",a+"px");q=!0}function e(){p.hide();q=!1}function n(){p.html("");e();v=0;z=E=null}function c(b){n();var q;for(q=0;q').text(f.label),y=k('
'), s=void 0,A=void 0;if(A=f.icon)s=k("").attr("class",A).appendTo(y),g?(s.attr("lang",g),f.lang=g):-1!==A.indexOf("lang-"+r)&&(s.attr("lang",r),f.lang=r);for(A in f)y.data(A,f[A]);y.append(w);u(e,y)}(v=b.length)?(C&&d(),h(0)):(h(null),a(),F.trigger("locoAutonone",[]))}function u(a,b){p.append(b);b.click(function(d){d.stopPropagation();h(a,b);r();return!1});return b}function h(a,b){z&&(z.removeClass("selected"),z=null);E=null;null==a?g(""):(b||(b=p.find("div.auto-comp-result").eq(a)),b.length&& (b.addClass("selected"),E=a,z=b))}function s(a){if(v){var b=v-1;null==E?a=0a?a=b:a>b&&(a=0));return h(a)}}function r(){if(null==E)P.val(""),g("");else{var b=p.find("div.auto-comp-result").eq(E),d=b.data()||{label:"Error"},q=d.value,f=d.label;g(q);P.val(f);e();b=b.clone();b.data(d);n();u(0,b);v=1;h(0,b);a();b.trigger("locoAutocomp",[q,f,b])}}var v=0,q=!1,C=!1,A=f.form,E=null,z=null,w=k(f),D=w.attr("name"),I=w.attr("data-mode"),H=w.attr("data-provider"),J="hint"!==I&&k('').appendTo(A),F=k('
').replaceAll(w),p=k('
');H&&(H=new l(H));J&&w.attr("name","_"+D);w.attr("autocomplete")||w.attr("autocomplete","off");F.append(w).append(p);e();w.focus(function(a){C=!0;1').appendTo(d.form)); this.list=k("
    ");this.icon=k(' ');this.selection=k('');this.handle=k('').attr("tabindex",a.attr("tabindex")||"").append(this.icon).append(this.selection);b=k('
    ').addClass(d.className).append(this.handle).append(this.list).replaceAll(d);e&&b.attr("id",e);f&&a.hasClass("hastip")&&(b.attr("title",f),m.require("$11","tooltip.js").init(b,{gravity:a.attr("data-gravity")||"s",anchor:a.attr("data-anchor")})); this.wrapper=b;this.up=b.hasClass("up");for(this.clearOptions();b=g.shift();)this.addOption.apply(this,b);this.enable();this.close();if(c=r.length)for(q=0;qe&&(d-=e-a.width(),a.css("min-width",String(d)+"px"))};e.open=function(){var b=this.list,e=this.wrapper,g=e.data("tipsy");this.active=!0;this.hover=-1;e.addClass("active");b.show().scrollTop(0);g&&g.disable();this!==d&&(d&&f(d),k(h).on("resize scroll",a),d=this);this.resize()};e.close=function(){var a=this.wrapper,b=a.data("tipsy");this.list.hide();this.active=!1;-1!==this.hover&&(this.getElement(this.hover).removeClass("over"), this.hover=-1);a.removeClass("active");b&&b.enable();f(this)};e.hoverItem=function(a,b){-1!==this.hover&&this.getElement(this.hover).removeClass("over");this.hover=a;-1!==a&&(b=b||this.getElement(a),b.addClass("over"))};e.hoverNext=function(a){var b=this.options.length;if(b){b-=1;if(-1==this.hover)a=0a){this.close();return}a>b&&(a=0)}this.hoverItem(a)}};e.enableChange=function(a){this.eventName=a;this.eventData=[].slice.call(arguments,1);return this};e.enableConfirm= function(a){this.confirm=a;return this};e.clearOptions=function(){this.index={};this.length=0;this.options=[];this.list.html("");this.hidden.val("");this.idx=this.hover=-1;return this};e.destroy=function(){this.clearOptions();this.hidden.remove()};e.addOption=function(a,d,e,f,g){var r=this.options.length,c=k("").addClass(e||"icon no-icon"),q=k('').text(d||a),q=k("
  • ").append(c).append(q).appendTo(this.list);g?g=g.split("-").shift():e&&-1!==e.indexOf("lang-"+ a)&&(g=a);g&&c.attr("lang",g);q.attr("data-option",r);this.options[r]={value:a,text:d,lang:g||"",icon:e};this.index[a]=r;this.length=r+1;f?this.disableIndex(r):b(this,r,q);return r};e.disableOption=function(a){return this.disableIndex(this.index[a])};e.disableIndex=function(a){(a=this.getElement(a))&&a.addClass("disabled").off();return this};e.enableOption=function(a){return this.enableIndex(this.index[a])};e.enableIndex=function(a){return b(this,a)};e.reIndex=function(){for(var a=-1,b={},d=this.options, e=d.length;++a').text(this.prefix));return this};e.setIcon=function(a,b){this.icon.attr("class",a).attr("lang",b||"");return this};e.val=function(){var a=this.options[this.idx];return a&&a.value};e.change=function(){var a=this.val(),b=this.save,d=this.eventName||"change",e=[a].concat(this.eventData||[]);this.wrapper.trigger(d,e);b&&b(a); this.hidden.triggerHandler("change");return this};e.beforeChange=function(a){var b=k.Event("locoBeforeSelect");this.wrapper.trigger(b,[a]);return!b.isDefaultPrevented()};e.renameOption=function(a,b){var d=this.index[a],e=this.options[d];e&&(e.text=b,this.getElement(d).find("span.label").text(b),d===this.idx&&this.setLabel(b));return this};e.removeOption=function(a){var b=this.index[a],d=this.options[b];d&&(a=this.val(),this.getElement(b).remove(),this.options.splice(b,1),this.reIndex(),a===d.value? this.selectIndex(0,!0):this.selectValue(a,!1))};e.getElement=function(a){return this.list.find("li").eq(a)};e.getWrapper=function(){return this.wrapper};e.persist=function(a){var b=this.id||this.name,d=a.fetch(b);null!=d&&this.selectValue(d,!0);this.save=function(d){a.store(b,d)};return this};e.listen=function(a){return this.on(this.eventName||"change",a)};e.on=function(a,b){this.wrapper.on(a,b);return this};e=null;return c}({},p,t));m.register("$32",function(c,h,p){function l(b){var f=[],a=k([]); this.hidden=a;this.selected=f;this.selectedIcon="icon icon-checkbox";this.constructor.call(this,b);this.wrapper.addClass("multi");for(var g,d,e,n=k('')[0],c=this.options,h=c.length,B=-1;++Bg.length;)g="0"+g;return g}function b(b){var a=b%10;if(1===a){if(11!==b)return"st"}else if(2===a){if(12!== b)return"nd"}else if(3===a&&13!==b)return"rd";return"th"}c.formatter=function(){return{format:function(b,a){var g=this;return a.replace(/%[YmdHisMjSghAa]/g,function(a){return g[a.charAt(1)](b)})},Y:function(b){return String(b.getFullYear())},m:function(b){return l(1+b.getFullMonth(),2)},M:function(b){return"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")[b.getMonth()]},d:function(b){return l(b.getDate(),2)},H:function(b){return l(b.getHours(),2)},i:function(b){return l(b.getMinutes(), 2)},s:function(b){return l(b.getSeconds(),2)},j:function(b){return String(b.getDate())},S:function(f){return b(f.getDate())},g:function(b){b=b.getHours();return String(0===b?12:12b.getHours()?"am":"pm"},A:function(b){return 12>b.getHours()?"AM":"PM"}}};return c}({},p,t));m.register("$33",function(c,h,p){function l(a){var f=a.id,c=d||(d=[]),r=e||(e={}),v=a.getAttribute("datetime"),v=y(v);if(!isNaN(v))return f||(f="tick"+ ++n, a.setAttribute("id",f)),a={id:f,el:a,dt:new Date(v),st:a.textContent},r[f]||c.push(a),r[f]=a,g||(g=setTimeout(b,200)),a}function b(){for(var a=d,c=a.length,n={},r=[];0q)return"Just now";if(36E5>q)return a=Math.floor(q/6E4),String(a)+" minute"+(1===a?"":"s")+" ago";if(864E5>q&&b.getDate()===a.getDate()&&b.getMonth()===a.getMonth()&&b.getFullYear()===a.getFullYear())return a=Math.round(q/36E5),"About "+String(a)+" hour"+(1===a?"":"s")+" ago";if(d)return"";d=Math.floor(e/864E5)-Math.floor(g/864E5);e=m.require("$40","date.js").formatter();q=e.format(a," %g:%i %A");return 1>=d&&(b.setHours(0),b.setMinutes(0),b.setSeconds(0),b=b.getTime()-864E5,g>=b)?"Yesterday at"+ q:11>d?d+" days ago at"+q:e.format(a,"%M %j%S %Y,")+q}var g,d,e,n=0,y=Date.parse||function(){return Number.NaN};c.onEach=function(a,b){l(b)};c.update=function(a){f(l(a))};c.rel=a;return c}({},p,t));m.register("$18",function(c,h,p){var l=h.ieVersion;c.ie=function(b){return b?l<=b:l};var b=c.init=function(b){b?b instanceof jQuery||(b=k(b)):b=k(p.body);var a=m.require("$30","ga.js"),g=m.require("$19","forms.js"),d=m.require("$31","modal.js"),e=m.require("$10","LocoAutoComplete.js"),n=m.require("$9", "LocoSelector.js"),h=m.require("$32","LocoMultiSelector.js"),u=m.require("$11","tooltip.js");b.find("form").each(function(a,b){var r=k(b);l&&10>l&&g.placeholders(r);b.getAttribute("data-modal")?d.initForm(b):b.action&&0!==r.attr("action").indexOf("#")&&!b.target&&g.jsonify(b);r.find("input.auto-comp").each(function(a,b){e.init(b)});r.find("select.selector").each(function(a,b){b.hasAttribute("multiple")?h.create(k(b)):n.create(k(b))});r.hasClass("hasreveal")&&g.revealify(r);r.find("button.hastip").each(function(a, b){u.init(k(b))})});b.find("a").each(function(b,e){-1!==e.className.indexOf("hastip")&&u.init(k(e));-1!==e.href.indexOf("/modal/")||e.getAttribute("data-modal")?d.initLink(k(e)):a.link(e)});b.find("time.tick").each(m.require("$33","tick.js").onEach);g=d=e=b=null;return c};c.$=function(b){return k(h.innerShiv?innerShiv(b,!1):b)};k.fn._html=function(f){return null!=f?(f=this.html(h.innerShiv?innerShiv(f,!1):f),b(this),f):j.html()};k.fn.macro=function(b,a){if("function"!==typeof b.run)throw Error("macro has no run function"); b.run(this,a||{});return this};c.el=function(b,a){var g=p.createElement(b||"div");a&&(g.className=a);return g};c.txt=function(b){return p.createTextNode(b||"")};c.h=function(){function b(){d=/[<>&]/g;e=/(\r\n|\n|\r)/g;c=/(?:https?):\/\/([a-zA-Z0-9\-_\.\?%~&;=\/]+(?:#.*)?)/g;b=null}function a(a){return"&#"+a.charCodeAt(0)+";"}function g(a,b){return''+b+""}var d,e,c;return function(h,k){b&&b();var l=h.replace(d,a);k&&(l=l.replace(e,"
    ").replace(c,g));return l}}();c.noop=function(b){b&& (b.preventDefault(),b.stopPropagation(),k(b.target).blur());return!1};c.top=function(b,a){a||(a=p.body);for(var g=b.offsetTop||0;(b=b.offsetParent)&&b!==a;)g+=b.offsetTop||0;return g};c.left=function(b,a){a||(a=p.body);for(var g=b.offsetLeft||0;(b=b.offsetParent)&&b!==a;)g+=b.offsetLeft||0;return g};return c}({},p,t));m.register("$19",function(c,h,p){function l(a){function b(){a.value===c&&(a.value="",e.removeClass("placeheld"));return!0}function d(){""===a.value&&(a.value=c,e.addClass("placeheld")); return!0}var e=k(a);if(!e.hasClass("auto-comp")){var c=e.attr("placeholder");if(c)return e.focus(b).blur(d),d(),{kill:function(){b();e.off("focus",b).off("blur",d)}}}}var b=c.enable=function(a){function b(a,e){e.getAttribute("data-was-disabled")||(e.disabled=!1)}a.find(".button").removeClass("loading");a.find("button").each(b);a.find("input").each(b);a.find("select").each(b);a.find("textarea").each(b);h.attachEvent&&a.hasClass("has-placeholders")&&c.placeholders(a);a.removeClass("disabled").trigger("locoEnable"); delete a._disabled},f=c.disable=function(a){function b(a,e){e.disabled?e.setAttribute("data-was-disabled","true"):e.disabled=!0}a._disabled||(a.find(".button").addClass("loading"),a.find("button").each(b),a.find("input").each(b),a.find("select").each(b),a.find("textarea").each(b),a.addClass("disabled").trigger("locoDisable"),a._disabled=!0)};c.jsonify=function(a,g,d){a instanceof jQuery||(a=k(a));a.disable||(k.fn.disable=function(){f(this);return this},k.fn.enable=function(){b(this);this.placehold&& this.placehold();return this});var e="";a.find('[type="submit"]').click(function(a){a&&a.target&&a.target.name&&(e=encodeURIComponent(a.target.name)+"="+encodeURIComponent(a.target.value));return!0});a.submit(function(b){if(b&&b.isDefaultPrevented&&b.isDefaultPrevented()||d&&!1===d(b))return!1;var c=a.serialize(),c=c.replace(/%0D%0A/g,"%0A");e&&(c&&(c+="&"),c+=e,e="");a.disable();var f=m.require("$22","http.js"),c={url:f.jsonLink(a.attr("action")),type:a.attr("method"),data:c};f.ajax(c,g,function(){a.enable()}, a);b.preventDefault();b.stopPropagation();return!1})};c.revealify=function(a){a=a.closest("form");a.find("div[data-reveal-if]").each(function(b,d){function e(a){var b;q=q||a.target;if("."===r)b=Boolean(q&&q[v]),l&&(b=!b);else{var d,e=k(q.form).serializeArray();for(d in e)e[d].name===s&&(b=e[d].value);b=l?v!==b:v===b}if(b!==h)if(h=b,a)c[h?"slideDown":"slideUp"](200);else c[h?"show":"hide"]();return!0}var c=k(d),f=/^(\!?)([_\w\-\[\]]+)(\.|!?=)(.*)$/.exec(c.attr("data-reveal-if"));if(f){var h,l=f[1], s=f[2],r=f[3],v=f[4],f=a[0][s];if(f.type||null==f.length)f=[f];b=f.length;for(var q;0!==b--;)q=f[b],e(),k(q).change(e).removeClass("jshide");f=f=q=null}});a=null};c.linkify=function(a){var b=a.getAttribute("data-icon");if(b){var d=k(a),e=k(" ");e.attr("href",a.form.action);e.attr("class",d.attr("class"));e.attr("tabindex",d.attr("tabindex"));d.attr("tabindex","-1");e.text(d.val());b&&k("").prependTo(e).addClass(b);d.hide().after(e);e.click(function(a){d.click();return!1})}};c.placeholders= function(a){var b,d=[];a.find("input[placeholder]").each(function(a,c){"password"!==c.type&&(b=l(c))&&d.push(b)});d.length&&(a.submit(function(){for(var a in d)d[a].kill()}),a.addClass("has-placeholders"),b=i=null)};return c}({},p,t));m.register("$4",function(c,h,p){function l(a,b,d){function e(){c();g=setTimeout(b,d)}function c(){g&&clearTimeout(g);g=null}var g;e();k(a).mouseenter(c).mouseleave(e);return{die:function(){c();k(a).off("mouseenter mouseleave")}}}function b(a,b){a.fadeTo(b,0,function(){a.slideUp(b, function(){a.remove();k(h).triggerHandler("resize")})})}function f(a,d){function q(d){e[g]=null;b(k(a),250);c&&c.die();var q;if(q=d)d.stopPropagation(),d.preventDefault(),q=!1;return q}var c,g;k('