(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');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('').prependTo(a).click(q);k(h).triggerHandler("resize");n();g=e.length;e.push(q);d&&(c=l(a,q,d));return{stick:function(){c&&c.die();c=null;e[g]=null}}}function a(a,b,d){var e=m.require("$18","html.js");a=k('').prependTo(k("#loco-notices"));
var c=k(e.el("p"));d=k(e.el("span")).text(d);b=k(e.el("strong","has-icon")).text(b+": ");c.append(b).append(d).appendTo(a);return a}function g(b,d,e,c){b=a(e,d,b).hide().fadeIn(500);k(h).triggerHandler("resize");return f(b,c)}function d(){k("#loco-notices").find("div.notice").each(function(a,b){f(b,!1)})}var e=[],n=Date.now||function(){return(new Date).getTime()},y,u,B,s;c.error=function(a){return g(a,y,"error")};c.warning=function(a){return g(a,u,"warning")};c.info=function(a){return g(a,B,"info")};
c.success=function(a){return g(a,s,"success",5E3)};c.log=function(){h.console&&console.log&&console.log.apply(console,arguments)};c.debug=function(a,b){h.console&&console.error&&(console.error("Loco Error: "+a),b&&console.debug&&console.debug(b))};c.clear=function(){for(var a=-1,b,d=e,g=d.length;++a"+C+"").text();A&&(A=A.replace(/(^\s+|\s+$)/g,""));A||(A=C);l.debug("Ajax failure for "+b,{status:a.status,error:e,message:g,output:C});l.log(q._("Provide the following text when reporting a problem")+":\n--8<--\n",A,"\n------");"parsererror"===e?(C=q._("Check console output for debugging information"),(A=A.split(/[\r\n]/)[0])?(A=A.replace(/ +in +\S+ on line \d+/,
""),A=A.replace(/^[()! ]+Fatal error:\s*/,""),l.error(A+".\n"+C)):l.error(q._("Server returned invalid data")+". "+C)):l.error(g||q._("Unknown error"));c&&c(a,e,g)}g.url=a;g.dataType="json";g.error=h;g.success=function(a,b,d){var c=a&&a.data,g=a&&a.notices,f=g&&g.length;for(!c||a.error?h(d,b,a&&a.error&&a.error.message):e&&e(c,b,d);f--;)l.raise(g[f])};var l=m.require("$4","notices.js").clear();return k.ajax(g)}var b={},f,a=h.ajaxurl||"/wp-admin/admin-ajax.php",g=h.encodeURIComponent;c.init=function(a){b=
a.nonces||b;return c};c.localise=function(a){f=a;return c};c.submit=function(a,b,c){function g(){f.removeClass("loading");m.require("$19","forms.js").enable(f)}var f=k(a),h=f.serialize();f.addClass("loading");m.require("$19","forms.js").disable(f);return l(a.route.value,function(a,d,c){g();b&&b(a,d,c)},function(a,b,d){g();c&&c(a,b,d)},{type:a.method,data:h})};c.post=function(a,e,c,f){var u;(u=b[a])||(h.console&&console.debug&&console.debug('No nonce for "'+a+'"'),u="");u="action=loco_json&route="+
g(a)+"&loco-nonce="+g(u);(e=e?k.param(e):"")&&(u+="&"+e);return l(a,c,f,{type:"post",data:u})};c.setNonce=function(a,e){b[a]=e;return c};c.hasNonce=function(a){return!!b[a]};return c}({},p,t));m.register("$20",{arab:1,aran:1,hebr:1,nkoo:1,syrc:1,syrn:1,syrj:1,syre:1,samr:1,mand:1,mend:1,thaa:1,adlm:1,cprt:1,phnx:1,armi:1,prti:1,phli:1,phlp:1,phlv:1,avst:1,mani:1,khar:1,orkh:1,ital:1,lydi:1,ar:1,ary:1,ckb:1,dv:1,fa:1,he:1,nqo:1,ps:1,ur:1,yi:1});m.register("$6",function(c,h,k){function l(){}var b,f,
a=m.require("$20","rtl.json");c.init=function(){return new l};c.cast=function(a){return a instanceof l?a:"string"===typeof a?c.parse(a):c.clone(a)};c.clone=function(a){var b,e=new l;for(b in a)e[b]=a[b];return e};c.parse=function(a){b||(f=/[-_+]/,b=/^([a-z]{2,3})(?:-([a-z]{4}))?(?:-([a-z]{2}|[0-9]{3}))?(?:-([0-9][a-z0-9]{3,8}|[a-z0-9]{5,8}))?(?:-([a-z]-[-a-z]+))?$/i);a=String(a).split(f).join("-");if(!b.exec(a))return null;var d=new l;d.lang=RegExp.$1.toLowerCase();if(a=RegExp.$2)d.script=a.charAt(0).toUpperCase()+
a.substr(1).toLowerCase();if(a=RegExp.$3)d.region=a.toUpperCase();if(a=RegExp.$4)d.variant=a.toLowerCase();if(a=RegExp.$5)d.extension=a;return d};h=l.prototype;h.isValid=function(){return!!this.lang};h.isKnown=function(){var a=this.lang;return!(!a||"zxx"===a)};h.toString=function(a){a=a||"-";var b,e=this.lang||"zxx";if(b=this.script)e+=a+b;if(b=this.region)e+=a+b;if(b=this.variant)e+=a+b;if(b=this.extension)e+=a+b;return e};h.getIcon=function(){for(var a=4,b,e,c=["variant","region","script","lang"],
f=[];0!==a--;)if(b=c[a],e=this[b])1===a&&3===e.length?f.push("region-m49"):f=f.concat([b,b+"-"+e.toLowerCase()]);return f.join(" ")};h.isRTL=function(){return!!a[String(this.script||this.lang).toLowerCase()]};h=null;return c}({},p,t));m.register("$35",function(c,h,k){function l(a){h.console&&console.error&&console.error(a)}function b(){l("Method not implemented")}function f(){}function a(a){}f.prototype.toString=function(){return"[Undefined]"};a.prototype._validate=function(a){var d,e,c=!0;for(d in this)e=
this[d],e===b?(l(a+"."+d+"() must be implemented"),c=!1):e instanceof f&&(l(a+"."+d+" must be defined"),c=!1);return c};c.init=function(c,d){var e,n=new a;if(c)for(e=c.length;0!==e--;)n[c[e]]=b;if(d)for(e=d.length;0!==e--;)n[d[e]]=new f;return n};c.validate=function(a){var b=/function (\w+)\(/.exec(a.toString())?RegExp.$1:"";a.prototype._validate(b||"Object")};return c}({},p,t));m.register("$45",function(c,h,k){var l=h.requestAnimationFrame,b=h.cancelAnimationFrame,f=0;if(!l||!b)for(var a in{ms:1,
moz:1,webkit:1,o:1})if(l=h[a+"RequestAnimationFrame"])if(b=h[a+"CancelAnimationFrame"]||h[a+"CancelRequestAnimationFrame"])break;l&&b||(l=function(a){var b=g();timeToCall=Math.max(0,16-(b-f));nextTime=b+timeToCall;timerId=h.setTimeout(function(){a(nextTime)},timeToCall);f=nextTime;return timerId},b=function(a){clearTimeout(a)});var g=Date.now||function(){return(new Date).getTime()};c.loop=function(a,e){function c(){g=l(c,e);a(f++)}var f=0,g;c();return{stop:function(){g&&b(g);g=null}}};return c}({},
p,t));m.register("$41",function(c,h,k){function l(b,d,e,c){if(a){var f=e;e=function(a){if((a.MSPOINTER_TYPE_TOUCH||"touch")===a.pointerType)return f(a)}}b.addEventListener(d,e,c);return{unbind:function(){b.removeEventListener(d,e,c)}}}function b(a){a.preventDefault();a.stopPropagation();return!1}var f,a=!!h.navigator.msPointerEnabled,g=a?"MSPointerDown":"touchstart",d=a?"MSPointerMove":"touchmove",e=a?"MSPointerUp":"touchend";c.ok=function(a){null==f&&(f="function"===typeof k.body.addEventListener);
f&&a&&a(c);return f};c.ms=function(){return a};c.dragger=function(a,c){function f(b){a.addEventListener(b,h[b],!1)}function r(b){a.removeEventListener(b,h[b],!1)}var h={};h[g]=function(a){n(a,function(b,d){d.type=g;c(a,d,q)});f(d);f(e);return!0};h[e]=function(a){r(d);r(e);n(a,function(b,d){d.type=e;c(a,d,q)});return!0};h[d]=function(a){n(a,function(b,e){e.type=d;c(a,e,q)});return b(a)};f(g);var q={kill:function(){r(g);r(d);r(e);a=q=c=null}};return q};c.swiper=function(c,f,h){function r(a){c.addEventListener(a,
l[a],!1)}function k(a){c.removeEventListener(a,l[a],!1)}function q(){C&&C.stop();C=null}var C,A,E,l={},w=[],D=[],I=[];l[g]=function(a){A=!1;q();var b=y();n(a,function(a,d){w[a]=b;D[a]=d.clientX;I[a]=d.clientY});E=c.scrollLeft;return!0};l[e]=function(a){n(a,function(a,b){var d=y()-w[a],e=D[a]-b.clientX,d=Math.abs(e)/d;f(d,e?0>e?-1:1:0)});E=null;return!0};l[d]=function(a){var d,e;null==E||n(a,function(a,b){d=D[a]-b.clientX;e=I[a]-b.clientY});if(e&&Math.abs(e)>Math.abs(d))return A=!0;d&&(A=!0,c.scrollLeft=
Math.max(0,E+d));return b(a)};if(!a||h)r(g),r(d),r(e),a&&(c.className+=" mstouch");return{kill:function(){k(g);k(d);k(e);q()},swiped:function(){return A},ms:function(){return a},snap:function(b){a&&!h&&(c.style["-ms-scroll-snap-points-x"]="snapInterval(0px,"+b+"px)",c.style["-ms-scroll-snap-type"]="mandatory",c.style["-ms-scroll-chaining"]="none")},scroll:function(a,b,d){q();var e=c.scrollLeft,f=a>e?1:-1,g=Math[1===f?"min":"max"],w=Math.round(16*b*f);return C=m.require("$45","fps.js").loop(function(b){b&&
(e=Math.max(0,g(a,e+w)),c.scrollLeft=e,a===e&&(q(),d&&d(e)))},c)}}};c.start=function(a,b){return l(a,g,b,!1)};c.move=function(a,b){return l(a,d,b,!1)};c.end=function(a,b){return l(a,e,b,!1)};var n=c.each=function(b,d){if(a)(b.MSPOINTER_TYPE_TOUCH||"touch")===b.pointerType&&d(0,b);else for(var e=-1,c=(b.originalEvent||b).changedTouches||[];++e\r\n')+'';return!0}function a(a){return''+a+""}var g=c.parentNode,d=g.insertBefore(m.createElement("div"),c);k(c).on("input",f).on("scroll",b);k(g).addClass("has-mirror");d.className="ta-mirror";var e=c.offsetWidth-c.clientWidth;2f);)g=k[b],a+=g.height(),aw)for(b=w;bc;b--)g=k[b],g.rendered&&g.sleep();this.mx=c}};s.selected=function(){return this.r};s.thead=function(){return this.w.cells[0]};s.tbody=function(){return this.w.cells[1]};s.tr=function(a){return(a=this.rows[a])?a.cells():[]};s.td=function(a,b){return this.tr(a)[b]};s.next=function(a,b,d){null==d&&(d=this.r||
0);var c=this.idxs,e=c.length,f=(this.idxr||{})[d];for(d=f;d!==(f+=a)&&!(0<=f&&e>f);)if(b&&e)f=1===a?-1:e,b=!1;else return null;d=c[f];return null==d||null==this.rows[d]?(l("Bad next: ["+f+"] does not map to data row"),null):d};s.selectNext=function(a,b,d){a=this.next(a,b);null!=a&&this.r!==a&&this.select(a,d);return this};s.deselect=function(a){var b=this.r;null!=b&&(this.r=null,k(this.tr(b)).removeClass("selected"),this.w.fire("wgRowDeselect",[b,a]));return this};s.select=function(a,b){var d=this.rows[a],
c=d&&d.page;if(!c)return this.deselect(!1),l("Row is filtered out"),this;this.deselect(!0);var e,f=this.w.cells[1];c.rendered||(e=c.top(),f.scrollY(e),this.redrawDirty()&&this.redraw());if(!d.rendered)return c.rendered||l("Failed to render page"),l("Row ["+d.i+"] not rendered"),this;c=d.cells();k(c).addClass("selected");this.r=a;b||(e=f.scrollY(),k(this.root).focus(),e!==f.scrollY()&&f.scrollY(e));f.scrollTo(c[0],!0);this.w.fire("wgRowSelect",[a,d.data()]);return this};s.unfilter=function(){this._idxs&&
(this.idxs=this._sort(this._idxs),this._idxs=null,this.clear().render());return this};s.filter=function(a){this._idxs||(this._idxs=this.idxs);this.idxs=this._sort(a);return this.clear().render()};s.each=function(a){for(var b,d=-1,c=this.rows||[],e=this.idxs||[],f=e.length;++de?0:e-f;this._h!==e&&(this._h=e,d.style.height=String(e)+"px",c&&c.redraw(a))}for(var d=this.length,f=1,g=this.nav,h=2===this.dir?"height":"width";0!==d--;)c=this.cells[d],g?e=1:(c.fixed&&(c.pos=c.fixed/k(b)[h]()),e=f-c.pos,f=c.pos),c.el.style[h]=String(100*e)+"%",c.redraw(a);return this};h.contents=function(a,b){var d=this.el,c=this.body;if(null==a)return c.innerHTML;this.length?this.clear():c&&(d.removeChild(c),c=null);c||(this.body=c=d.appendChild(n.el("",
b||"wg-content")),this._h=null,(d=this.lang)&&this._locale(d,this.rtl,!0));"string"===typeof a?k(c)._html(a):a&&this.append(a);this.redraw();return this};h.textarea=function(a,b){var c=this.field;if(c){var e=c.editable();c.reload(a,b);e!==b&&this.restyle()}else this.length&&this.clear(),e=n.el("textarea"),e.setAttribute("wrap","virtual"),e.value=a,this.contents(e),c=m.require("$42","field.js")._new(e)[b?"enable":"disable"](),d(this,e),this.field=c,this.restyle();this.lang||this.locale("en");return c};
h.locale=function(a){a=m.require("$6","locale.js").cast(a);return this._locale(String(a),a.isRTL())};h._locale=function(a,b,d){var c=this.body;if(d||a!==this.lang)this.lang=a,c&&c.setAttribute("lang",a);if(d||b!==this.rtl)this.rtl=b,c&&c.setAttribute("dir",b?"RTL":"LTR");return this};h.editable=function(){var a=this.field;if(a)return a.editable()?a:null;var b=this.cells,d=b.length,c=this.navigated();if(null!=c)return b[c].editable();for(;++ce)d=e;else{var f=c.clientHeight,e=e+k(a).outerHeight();if(f+d').data("idx",d).text(b[d]).appendTo(m);a.pos=0;k(a.el).hide()});c(f[d]?d:0);e.lock();e.redraw();return e};h.navigated=
function(){var a=this.nav;if(a)return k(a).data("idx")};h=null;return c}({},p,t));m.register("$25",function(c,h,k){function l(b){this.reIndex([]);if(b)for(var c in b)this.add(c,b[c])}c.init=function(b){return new l(b)};h=l.prototype;h.reIndex=function(b){for(var c={},a=-1,g=b.length;++a").prependTo(b)),c.attr("lang",d.lang).attr("class",d.getIcon()||"lang region region-"+(d.region||"zz").toLowerCase())):(c.remove(),d="en");a.locale(d);return b}function f(){this.dirty=0}var a="poUpdate",g="changing",d="changed",
e=0,n=1,y=2,u=3,B=4,s=5,r=/^\s+/,v,q,C=m.require("$3","string.js").sprintf,A=m.require("$18","html.js");c.extend=function(a){return a.prototype=new f};c.localise=function(a){q=a;return c};var t=function(){var a=p.createElement("p");return function(b){a.innerHTML=b;return a.textContent}}(),z=f.prototype=m.require("$35","abstract.js").init(["getListColumns","getListHeadings","getListEntry"],["editable","t"]);z.init=function(){this.localise();this.editable={source:!0,target:!0};this.mode="";this.html=
!1;return this};z.localise=function(a){a||(a=q||m.require("$1","t.js").init());var b=[];b[e]=a._x("Source text","Editor")+":";b[u]=a._x("%s translation","Editor")+":";b[B]=a._x("Context","Editor")+":";b[s]=a._x("Comments","Editor")+":";b[n]=a._x("Single","Editor")+":";b[y]=a._x("Plural","Editor")+":";this.labels=b;this.t=a;return this};z.setRootCell=function(a){function b(a){d.redraw(!0,a);return!0}var d=m.require("$36","wingrid.js").init(a);k(h).on("resize",b);this.redraw=b;k(a).on("wgFocus wgBlur",
function(a,b){a.stopPropagation();v=b});this.destroy=function(){d.destroy();k(h).off("resize",b)};this.rootDiv=a;return d};f.prototype.$=function(){return k(this.rootDiv)};z.on=function(a,b){return k(this.rootDiv).on(a,b)};z.setListCell=function(a){var b=this;b.listCell=a;a.on("wgRowSelect",function(a,d){b.loadMessage(b.po.row(d));return!0}).on("wgRowDeselect",function(a,d,c){c||b.loadNothing();return!0})};z.setSourceCell=function(a){this.sourceCell=a;a=a.find("p.notes");this.$notes=a.length?a:null};
z.setTargetCell=function(a){this.targetCell=a;a=a.find("p.errors");this.$errs=a.length?a:null};z.next=function(a,b,d){for(var c=this.listTable,e=c.selected(),f=e,g,h=this.po;null!=(e=c.next(a,d,e));){if(f===e){e=null;break}if(b&&(g=h.row(e),g.translated(0)))continue;break}null!=e&&c.select(e,!0);return e};z.current=function(a){var b=this.active;if("undefined"===typeof a)return b;a?a.is(b)?this.reloadMessage(a):this.loadMessage(a):this.unloadActive();return this};z.getTargetEditable=function(){return this.editable.target&&
this.targetCell&&this.targetCell.editable()};z.getSourceEditable=function(){return this.editable.source&&this.sourceCell&&this.sourceCell.editable()};z.getContextEditable=function(){return this.editable.context&&this.contextCell&&this.contextCell.editable()};z.getFirstEditable=function(){return this.getTargetEditable()||this.getSourceEditable()||this.getContextEditable()};z.searchable=function(a){a&&(this.dict=a,this.po&&this.rebuildSearch());return this.dict&&!0};z.rebuildSearch=function(){var a=
-1,b=this.po.rows,d=b.length,c=this.dict;for(c.clear();++a
').insertAfter(this.sourceCell.header())),a=A.h(a,!0),d.html(a).show(),A.init(d),b=!0):d&&d.text()&&(d.text("").hide(),b=!0);return b};z.setErrors=function(a){var b=!1,d=this.$errs;a&&a.length?(d||(this.$errs=d=k('').insertAfter(this.targetCell.header())),d.html(A.h(a.join(".\n")+".",!0)).show(),A.init(d),b=!0):d&&d.text()&&
(d.text("").hide(),b=!0);return b};z.loadMessage=function(c){function f(a){var d,g=a,g=a.id;d=L[e];a.off();a.titled()!==d&&b(a,d,p.sourceLocale||"en");p.setNotes(c.notes())&&a.clear();U?(d=a.splity(g+"-singular",g+"-plural"),g=d[0],d=d[1],g.header(L[n]).textarea(V,M).setStrf(F).setMode(z).setInvs(t),d.header(L[y]).textarea(U,M).setStrf(F).setMode(z).setInvs(t),a.lock(),M&&(h(g,0),h(d,1))):(a.textarea(V,M).setStrf(F).setMode(z).setInvs(t),M&&h(a,0))}function h(b,e){b.on(g,function(a,b,d){1===e?c.plural(b):
(c.source(b),p.updateListCell(c,"source"));p.unsave(c,e)}).on(d,function(b){0===e&&p.po.reIndex(c);p.dict&&p.rebuildSearch();p.fire(a,[c])})}function k(a,d,e){K&&a.eachTextarea(function(a){a.ping()});a.off();var f=d.isKnown()&&d.label||"Target",f=C(L[u],f);a.titled()!==f&&b(a,f,d);p.setErrors(c.errors(e))&&a.clear();if(c.pluralized()){var g=[],h=d.plurals||["One","Other"],n=m.require("$25","collection.js").init();for(c.each(function(a,b,d){if(d||h[a])g.push(h[a]||"Form "+a),n.add("plural-"+a,d)});(f=
g.length)b;){h=a.exec(d)||g.exec(d);if(null==h)break;h=h[0];c.push(h);h=h.length;f-=h;d=d.substr(h)}0!==f&&c.push(d);
return c}}c.create=function(b){function c(a){return k[a]||"\\"+a}var a,g,d=/(?:\r\n|[\r\n\v\f\u2028\u2029])/g,e=/[ \r\n]+/g,h=/[\t\v\f\x07\x08\\\"]/g,k={"\t":"\\t","\v":"\\v","\f":"\\f","\u0007":"\\a","\b":"\\b"};null==b&&(b=79);0!==b&&(a=l(b-3," "),g=l(b-2,"-\u2013 \\.,:;\\?!\\)\\]\\}\\>"));return{pair:function(a,e){if(!e)return a+' ""';e=e.replace(h,c);var k=0;e=e.replace(d,function(){k++;return"\\n\n"});if(!(k||b&&bi;i++)for(b=c[i],a=-1;++af)return 1;if(cf)return-1}return 0};h=h=null;
return c}({},p,t));m.register("$16",function(c,h,m){c.init=function(c){function b(){D&&D.dialog("close");k(c).find('input[type="submit"]').attr("disabled",!1);k(r).addClass("jshide");k(h).triggerHandler("resize");s&&s(!0)}function f(){k(c).find('input[type="submit"]').attr("disabled",!0);s&&s(!1)}function a(a){var b,c;for(b in t)c=t[b],a[b]?a[b].value=c:k('').attr("name",b).appendTo(a).val(c)}function g(a){a.preventDefault();a=k(a.target).serializeArray();p(a);q=!0;return!1}
function d(a){a.preventDefault();D.dialog("close");return!1}function e(a){a.preventDefault();D.dialog("open");return!1}function n(f){t=f.authed&&f.creds;v=f.method;if(t)"direct"!==v&&(a(c),q&&f.success&&A.notices.success(f.success)),C=!0,b();else if(C=!1,f.reason)A.notices.info(f.reason);else if(f=f.prompt){var m;D||(k(r).find("button.button-small").click(e),D=k('').dialog({dialogClass:"request-filesystem-credentials-dialog loco-modal",minWidth:580,modal:!0,autoOpen:!1,
closeOnEscape:!0}));m=D;m.html(f).find("form").submit(g);m.dialog("option","title",m.find("h2").remove().text());m.find("button.cancel-button").show().click(d);m.find('input[type="submit"]').addClass("button-primary");k(r).removeClass("jshide");k(h).triggerHandler("resize")}else A.notices.error("Server didn't return credentials, nor a prompt for credentials")}function m(){b()}function p(a){q=!1;a.path=E;a.auth=z;A.ajax.setNonce("fsConnect",w).post("fsConnect",a,n,m);return a}var t,s,r=c,v=null,q=
!1,C=!1,A=h.locoScope,E=c.path.value,z=c.auth.value,w=c["loco-nonce"].value,D;c.connection_type?(t={},t.connection_type=c.connection_type.value,C=!0):E&&z&&(f(),p({}));return{applyCreds:function(b){if(b.nodeType)a(b);else{var c,d=t||{};for(c in d)b[c]=d[c]}return this},setForm:function(b){c=b;C||f();a(b);return this},connect:function(){var a=k(c).serializeArray();E=a.path;z=a.auth;p(a);return this},listen:function(a){s=a;C&&a(!0);return this}}};return c}({},p,t));m.register("$17",function(c,h,p){function l(c,
e,h,k){e="n"===h?f(e):a(e);k&&(e=g(e));return b([].sort,[e])(c)}function b(a,b){return function(c){a.apply(c,b);return c}}function f(a){return function(b,c){var f=b&&b[a]||0,g=c&&c[a]||0;return f===g?0:f>g?1:-1}}function a(a){return function(b,c){return(b&&b[a]||"").localeCompare(c&&c[a]||"")}}function g(a){return function(b,c){return-1*a(b,c)}}c.init=function(a){function b(a){var c=-1,d=a.length;for(k("tr",q).remove();++c