All Downloads are FREE. Search and download functionalities are using the official Maven repository.

assets.static.js.app.js Maven / Gradle / Ivy

webpackJsonp([0],[function(e,t,n){(function(e){var t,a,r;n(2).polyfill(),window.Promise=n(3),window.utils=n(6),window.app=n(62),t=n(820),n(821),r=n(17),a=n(822),n(823),n(824),e(function(){return config.apiRoot?app.initialize():r.dialog.prompt({message:a(),callback:function(e){return function(e){return e&&localStorage.setItem("apiRootOverride",e),window.location=window.location.href}}(this)})})}).call(t,n(1))},,function(e,t){"use strict";function n(e,t){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),a=1;a=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var n=u++,a=!(arguments.length<2)&&o.call(arguments,1);return l[n]=!0,s(function(){l[n]&&(a?e.apply(null,a):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof a?a:function(e){delete l[e]}}).call(t,n(4).setImmediate,n(4).clearImmediate)},function(e,t){function n(){p&&u&&(p=!1,u.length?c=u.concat(c):d=-1,c.length&&a())}function a(){if(!p){var e=i.call(null,n);p=!0;for(var t=c.length;t;){for(u=c,c=[];++d1)for(var n=1;n"+t.escape(c)+"
",className:"vex vex-theme-default json-modal",afterOpen:function(e){var t,n;return e.parents(".vex").scrollTop(0),t=e.find(".copy-button"),t.attr("data-clipboard-text",e.find("pre").html()),n=new r(t[0])}})},e.setupCopyLinks=function(e){var n;return n=e.find(".horizontal-description-list li"),t.each(n,function(e){var n,s;if(e=a(e),!e.find("a").length)return s=e.find("p").html(),n=a("Copy"),e.find("h4").append(n),new r(n[0])})},e.makeMeCopy=function(e){var n,s,i,o,l;return s=a(e.selector),i=e.linkText||"Copy",l=e.textSelector||".copy-text",o=s.find(l).html(),n=a(""+i+""),a(e.copyLink).html(n),new r(n[0])},e.fixTableColumns=function(e){var t,n,r,s,i,o,l;if(n=e.find("th"),n.length&&"fixed"!==e.css("table-layout")&&(e.css("table-layout","auto"),n.css("width","auto"),l=e.width(),o=void 0!==e.attr("data-sortable"),!o)){for(r=0,s=n.length;rs+50,l=l&&d>r,p=c||l)return u()})}}(this),setTimeout(function(t){return function(){return a(window).on("scroll",r),e.on("shrink",u)}}(this),100)},e.scrollTo=function(e,t){var n;return null==t&&(t=50),n=a(""+e).offset().top-t,a("html, body").animate({scrollTop:n+"px"},1e3)},e.getQueryParams=function(){return location.search?JSON.parse('{"'+decodeURI(location.search.substring(1).replace(/&/g,'","').replace(/\=/g,'":"'))+'"}'):{}},e.humanizeText=function(e){return e?(e=e.replace(/_/g," "),e=e.toLowerCase(),e=e[0].toUpperCase()+e.substr(1)):""},e.humanizeFileSize=function(e){var t,n,a;return n=1024,a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],0===e?"0 B":(t=Math.min(Math.floor(Math.log(e)/Math.log(n)),a.length-1),+(e/Math.pow(n,t)).toFixed(2)+" "+a[t])},e.substituteTaskId=function(e,t){return e.replace("$TASK_ID",t)},e.getLabelClassFromTaskState=function(e){switch(e){case"TASK_STARTING":case"TASK_CLEANING":return"warning";case"TASK_STAGING":case"TASK_LAUNCHED":case"TASK_RUNNING":return"info";case"TASK_FINISHED":return"success";case"TASK_LOST":case"TASK_FAILED":case"TASK_LOST_WHILE_DOWN":case"TASK_ERROR":return"danger";case"TASK_KILLED":return"default";default:return"default"}},e.fileName=function(e){return e.substring(e.lastIndexOf("/")+1)},e.isGlobFilter=function(e){var t,n,a,r;for(r=this.GLOB_CHARS,n=0,a=r.length;n-1?5*t.score:t.score},e.getTaskDataFromTaskId=function(e){var t;return t=e.split("-"),{id:e,rackId:t[t.length-1],host:t[t.length-2],instanceNo:t[t.length-3],startedAt:t[t.length-4],deployId:t[t.length-5],requestId:t.slice(0,+(t.length-6)+1||9e9).join("-")}},e.ignore404=function(e){if(404===e.status)return app.caughtError()},e.ignore400=function(e){if(400===e.status)return app.caughtError()},e}(),e.exports=s}).call(t,n(7),n(1))},,,,,,,,,,,function(e,t,n){var a;a=n(18),a.dialog=n(19),e.exports=a},,function(e,t,n){var a,r,s;(function(){var i;i=function(e,t){var n,a;return null==t?e.error("Vex is required to use vex.dialog"):(n=function(t){var n;return n={},e.each(t.serializeArray(),function(){return n[this.name]?(n[this.name].push||(n[this.name]=[n[this.name]]),n[this.name].push(this.value||"")):n[this.name]=this.value||""}),n},a={},a.buttons={YES:{text:"OK",type:"submit",className:"vex-dialog-button-primary"},NO:{text:"Cancel",type:"button",className:"vex-dialog-button-secondary",click:function(e,n){return e.data().vex.value=!1,t.close(e.data().vex.id)}}},a.defaultOptions={callback:function(e){},afterOpen:function(){},message:"Message",input:'',value:!1,buttons:[a.buttons.YES,a.buttons.NO],showCloseButton:!1,onSubmit:function(r){var s,i;return s=e(this),i=s.parent(),r.preventDefault(),r.stopPropagation(),i.data().vex.value=a.getFormValueOnSubmit(n(s)),t.close(i.data().vex.id)},focusFirstInput:!0},a.defaultAlertOptions={message:"Alert",buttons:[a.buttons.YES]},a.defaultConfirmOptions={message:"Confirm"},a.open=function(n){var r,s;return n=e.extend({},t.defaultOptions,a.defaultOptions,n),n.content=a.buildDialogForm(n),s=n.beforeClose,n.beforeClose=function(e,t){return n.callback(t.value),"function"==typeof s?s(e,t):void 0},r=t.open(n),n.focusFirstInput&&r.find('button[type="submit"], button[type="button"], input[type="submit"], input[type="button"], textarea, input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="time"], input[type="url"], input[type="week"]').first().focus(),r},a.alert=function(t){return"string"==typeof t&&(t={message:t}),t=e.extend({},a.defaultAlertOptions,t),a.open(t)},a.confirm=function(t){return"string"==typeof t?e.error("dialog.confirm(options) requires options.callback."):(t=e.extend({},a.defaultConfirmOptions,t),a.open(t))},a.prompt=function(t){var n;return"string"==typeof t?e.error("dialog.prompt(options) requires options.callback."):(n={message:'",input:''},t=e.extend({},n,t),a.open(t))},a.buildDialogForm=function(t){var n,r,s;return n=e('
'),s=e('
'),r=e('
'),n.append(s.append(t.message)).append(r.append(t.input)).append(a.buttonsToDOM(t.buttons)).bind("submit.vex",t.onSubmit),n},a.getFormValueOnSubmit=function(e){return e.vex||""===e.vex?"_vex-empty-value"===e.vex||e.vex:e},a.buttonsToDOM=function(n){var a;return a=e('
'),e.each(n,function(r,s){var i;return i=e('').text(s.text).addClass(s.className+" vex-dialog-button "+(0===r?"vex-first ":"")+(r===n.length-1?"vex-last ":"")).bind("click.vex",function(n){if(s.click)return s.click(e(this).parents(t.getSelectorFromBaseClass(t.baseClassNames.content)),n)}),i.appendTo(a)}),a},a)},r=[n(1),n(18)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}).call(this)},function(e,t,n){/*! * micromatch * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";function a(e,t,n){if(!e||!t)return[];if(n=n||{},"undefined"==typeof n.cache&&(n.cache=!0),!Array.isArray(t))return r(e,t,n);for(var a=t.length,s=0,i=[],o=[];a--;){var l=t[s++];"string"==typeof l&&33===l.charCodeAt(0)?i.push.apply(i,r(e,l.slice(1),n)):o.push.apply(o,r(e,l,n))}return y.diff(o,i)}function r(e,t,n){if("string"!==y.typeOf(e)&&!Array.isArray(e))throw new Error(f("match","files","a string or array"));e=y.arrayify(e),n=n||{};var r=n.negate||!1,s=t;"string"==typeof t&&(r="!"===t.charAt(0),r&&(t=t.slice(1)),n.nonegate===!0&&(r=!1));for(var i=c(t,n),o=e.length,l=0,u=[];l * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";function a(e,t){if("string"!=typeof e)throw new TypeError("micromatch.expand(): argument should be a string.");var n=new c(e,t||{}),a=n.options;if(!u.isGlob(e))return n.pattern=n.pattern.replace(/([\/.])/g,"\\$1"),n;if(n.pattern=n.pattern.replace(/(\+)(?!\()/g,"\\$1"),n.pattern=n.pattern.split("$").join("\\$"),"boolean"!=typeof a.braces&&"boolean"!=typeof a.nobraces&&(a.braces=!0),".*"===n.pattern)return{pattern:"\\."+d,tokens:f,options:a};if("*"===n.pattern)return{pattern:o(a.dot),tokens:f,options:a};n.parse();var f=n.tokens;return f.is.negated=a.negated,a.dotfiles!==!0&&!f.is.dotfile||a.dot===!1||(a.dotfiles=!0,a.dot=!0),a.dotdirs!==!0&&!f.is.dotdir||a.dot===!1||(a.dotdirs=!0,a.dot=!0),/[{,]\./.test(n.pattern)&&(a.makeRe=!1,a.dot=!0),a.nonegate!==!0&&(a.negated=n.negated),"."===n.pattern.charAt(0)&&"/"!==n.pattern.charAt(1)&&(n.pattern="\\"+n.pattern),n.track("before braces"),f.is.braces&&n.braces(),n.track("after braces"),n.track("before extglob"),f.is.extglob&&n.extglob(),n.track("after extglob"),n.track("before brackets"),f.is.brackets&&n.brackets(),n.track("after brackets"),n._replace("[!","[^"),n._replace("(?","(%~"),n._replace(/\[\]/,"\\[\\]"),n._replace("/[","/"+(a.dot?m:h)+"[",!0),n._replace("/?","/"+(a.dot?m:h)+"[^/]",!0),n._replace("/.","/(?=.)\\.",!0),n._replace(/^(\w):([\\\/]+?)/gi,"(?=.)$1:$2",!0),n.pattern.indexOf("[^")!==-1&&(n.pattern=s(n.pattern)),a.globstar!==!1&&"**"===n.pattern?n.pattern=l(a.dot):(n.pattern=i(n.pattern,"[","]"),n.escape(n.pattern),f.is.globstar&&(n.pattern=r(n.pattern,"/**"),n.pattern=r(n.pattern,"**/"),n._replace("/**/","(?:/"+l(a.dot)+"/|/)",!0),n._replace(/\*{2,}/g,"**"),n._replace(/(\w+)\*(?!\/)/g,"$1[^/]*?",!0),n._replace(/\*\*\/\*(\w)/g,l(a.dot)+"\\/"+(a.dot?m:h)+"[^/]*?$1",!0),a.dot!==!0&&n._replace(/\*\*\/(.)/g,"(?:**\\/|)$1"),(""!==f.path.dirname||/,\*\*|\*\*,/.test(n.orig))&&n._replace("**",l(a.dot),!0)),n._replace(/\/\*$/,"\\/"+o(a.dot),!0),n._replace(/(?!\/)\*$/,d,!0),n._replace(/([^\/]+)\*/,"$1"+o(!0),!0),n._replace("*",o(a.dot),!0),n._replace("?.","?\\.",!0),n._replace("?:","?:",!0),n._replace(/\?+/g,function(e){var t=e.length;return 1===t?p:p+"{"+t+"}"}),n._replace(/\.([*\w]+)/g,"\\.$1"),n._replace(/\[\^[\\\/]+\]/g,p),n._replace(/\/+/g,"\\/"),n._replace(/\\{2,}/g,"\\")),n.unescape(n.pattern),n._replace("__UNESC_STAR__","*"),n._replace("?.","?\\."),n._replace("[^\\/]",p),n.pattern.length>1&&/^[\[?*]/.test(n.pattern)&&(n.pattern=(a.dot?m:h)+n.pattern),n}function r(e,t){var n=e.split(t),a=""===n[0],r=""===n[n.length-1];return n=n.filter(Boolean),a&&n.unshift(""),r&&n.push(""),n.join(t)}function s(e){return e.replace(/\[\^([^\]]*?)\]/g,function(e,t){return t.indexOf("/")===-1&&(t="\\/"+t),"[^"+t+"]"})}function i(e,t,n){var a=e.split(t),r=a.join("").length,s=e.split(n).join("").length;return r!==s?(e=a.join("\\"+t),e.split(n).join("\\"+n)):e}function o(e){return e?"(?!"+f+")(?=.)"+d:h+d}function l(e){return e?y:"(?:(?!(?:\\/|^)\\.).)*?"}var u=n(22),c=n(60);e.exports=a;var p="[^/]",d=p+"*?",h="(?!\\.)(?=.)",f="(?:\\/|^)\\.{1,2}($|\\/)",m="(?!"+f+")(?=.)",y="(?:(?!"+f+").)*?"},function(e,t,n){(function(t){"use strict";var a=t&&"win32"===t.platform,r=n(23),s=n(24),i=e.exports;i.diff=n(25),i.unique=n(27),i.braces=n(28),i.brackets=n(43),i.extglob=n(45),i.isExtglob=n(46),i.isGlob=n(47),i.typeOf=n(34),i.normalize=n(48),i.omit=n(49),i.parseGlob=n(53),i.cache=n(57),i.filename=function(e){var t=e.match(s());return t&&t[0]},i.isPath=function(e,t){return t=t||{},function(n){var a=i.unixify(n,t);return t.nocase?e.toLowerCase()===a.toLowerCase():e===a}},i.hasPath=function(e,t){return function(n){return i.unixify(e,t).indexOf(n)!==-1}},i.matchPath=function(e,t){var n=t&&t.contains?i.hasPath(e,t):i.isPath(e,t);return n},i.hasFilename=function(e){return function(t){var n=i.filename(t);return n&&e.test(n)}},i.arrayify=function(e){return Array.isArray(e)?e:[e]},i.unixify=function(e,t){return t&&t.unixify===!1?e:t&&t.unixify===!0||a||"\\"===r.sep?i.normalize(e,!1):t&&t.unescape===!0?e?e.toString().replace(/\\(\w)/g,"$1"):"":e},i.escapePath=function(e){return e.replace(/[\\.]/g,"\\$&")},i.unescapeGlob=function(e){return e.replace(/[\\"']/g,"")},i.escapeRe=function(e){return e.replace(/[-[\\$*+?.#^\s{}(|)\]]/g,"\\$&")},e.exports=i}).call(t,n(5))},function(e,t,n){(function(e){function n(e,t){for(var n=0,a=e.length-1;a>=0;a--){var r=e[a];"."===r?e.splice(a,1):".."===r?(e.splice(a,1),n++):n&&(e.splice(a,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function a(e,t){if(e.filter)return e.filter(t);for(var n=[],a=0;a=-1&&!r;s--){var i=s>=0?arguments[s]:e.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,r="/"===i.charAt(0))}return t=n(a(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),s="/"===i(e,-1);return e=n(a(e.split("/"),function(e){return!!e}),!r).join("/"),e||r||(e="."),e&&s&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function a(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=a(e.split("/")),s=a(n.split("/")),i=Math.min(r.length,s.length),o=i,l=0;l * * Copyright (c) 2014-2015, Jon Schlinkert * Licensed under the MIT license. */ e.exports=function(){return/([^\\\/]+)$/}},function(e,t,n){/*! * arr-diff * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT License */ "use strict";function a(e,t){var t,n=arguments.length,a=e.length,i=-1,o=[];if(1===n)return e;for(n>2&&(t=r(s.call(arguments,1)));++i * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";function n(e,t){for(var a=e.length,r=-1;a--;){var s=e[++r];Array.isArray(s)?n(s,t):t.push(s)}return t}e.exports=function(e){return n(e,[])}},function(e,t){/*! * array-unique * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";e.exports=function(e){if(!Array.isArray(e))throw new TypeError("array-unique expects an array.");for(var t=e.length,n=-1;n++ * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT license. */ "use strict";function a(e,t,n){if(""===e)return[];Array.isArray(t)||(n=t,t=[]);var v=n||{};t=t||[],"undefined"==typeof v.nodupes&&(v.nodupes=!0);var b,M=v.fn;"function"==typeof v&&(M=v,v={}),w instanceof RegExp||(w=h());var x=e.match(w)||[],S=x[0];switch(S){case"\\,":return d(e,t,v);case"\\.":return c(e,t,v);case"/.":return p(e,t,v);case" ":return l(e);case"{,}":return r(e,v,a);case"{}":return i(e,t,v);case"\\{":case"\\}":return u(e,t,v);case"${":if(!/\{[^{]+\{/.test(e))return t.concat(e);b=!0,e=k.before(e,m())}T instanceof RegExp||(T=f());var L=T.exec(e);if(null==L)return[e];var D=L[1],E=L[2];if(""===E)return[e];var I,O;if(E.indexOf("..")!==-1)I=_(E,v,M)||E.split(","),O=I.length;else{if('"'===E[0]||"'"===E[0])return t.concat(e.split(/['"]/).join(""));if(I=E.split(","),v.makeRe)return a(e.replace(D,s(I,"|")),v);O=I.length,1===O&&v.bash&&(I[0]=s(I[0],"\\"))}for(var R,P=I.length,Y=0;P--;){var C=I[Y++];if(/(\.[^.\/])/.test(C))return O>1?I:[e];if(R=y(e,D,C),/\{[^{}]+?\}/.test(R))t=a(R,t,v);else if(""!==R){if(v.nodupes&&t.indexOf(R)!==-1)continue;t.push(b?k.after(R):R)}}return v.strict?g(t,o):t}function r(e,t,n){"function"==typeof t&&(n=t,t=null);var a,r=t||{},s="__ESC_EXP__",i=0,o=e.split("{,}");if(r.nodupes)return n(o.join(""),r);i=o.length-1,a=n(o.join(s),r);for(var l=a.length,u=[],c=0;l--;){var p=a[c++],d=p.indexOf(s);if(d===-1)u.push(p);else if(p=p.split("__ESC_EXP__").join(""),p&&r.nodupes!==!1)u.push(p);else{var h=Math.pow(2,i);u.push.apply(u,b(p,h))}}return u}function s(e,t){return"|"===t?"("+e.join(t)+")":","===t?"{"+e.join(t)+"}":"-"===t?"["+e.join(t)+"]":"\\"===t?"\\{"+e+"\\}":void 0}function i(e,t,n){return a(e.split("{}").join("\\{\\}"),t,n)}function o(e){return!!e&&"\\"!==e}function l(e){for(var t=e.split(" "),n=t.length,r=[],s=0;n--;)r.push.apply(r,a(t[s++]));return r}function u(e,t,n){return/\{[^{]+\{/.test(e)?(e=e.split("\\{").join("__LT_BRACE__"),e=e.split("\\}").join("__RT_BRACE__"),v(a(e,t,n),function(e){return e=e.split("__LT_BRACE__").join("{"),e.split("__RT_BRACE__").join("}")})):t.concat(e.split("\\").join(""))}function c(e,t,n){return/[^\\]\..+\\\./.test(e)?(e=e.split("\\.").join("__ESC_DOT__"),v(a(e,t,n),function(e){return e.split("__ESC_DOT__").join(".")})):t.concat(e.split("\\").join(""))}function p(e,t,n){return e=e.split("/.").join("__ESC_PATH__"),v(a(e,t,n),function(e){return e.split("__ESC_PATH__").join("/.")})}function d(e,t,n){return/\w,/.test(e)?(e=e.split("\\,").join("__ESC_COMMA__"),v(a(e,t,n),function(e){return e.split("__ESC_COMMA__").join(",")})):t.concat(e.split("\\").join(""))}function h(){return/\${|( (?=[{,}])|(?=[{,}]) )|{}|{,}|\\,(?=.*[{}])|\/\.(?=.*[{}])|\\\.(?={)|\\{|\\}/}function f(){return/.*(\\?\{([^}]+)\})/}function m(){return/\$\{([^}]+)\}/}function y(e,t,n){var a=e.indexOf(t);return e.substr(0,a)+n+e.substr(a+t.length)}function v(e,t){if(null==e)return[];for(var n=e.length,a=new Array(n),r=-1;++r * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT license. */ "use strict";var a=n(30);e.exports=function(e,t,n){if("string"!=typeof e)throw new TypeError("expand-range expects a string.");"function"==typeof t&&(n=t,t={}),"boolean"==typeof t&&(t={},t.makeRe=!0);var r=t||{},s=e.split(".."),i=s.length;return i>3?e:1===i?s:("boolean"==typeof n&&n===!0&&(r.makeRe=!0),s.push(r),a.apply(null,s.concat(n)))}},function(e,t,n){/*! * fill-range * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";function a(e,t,n,a,s){if(null==e||null==t)throw new Error("fill-range expects the first and second args to be strings.");"function"==typeof n&&(s=n,a={},n=null),"function"==typeof a&&(s=a,a={}),_(n)&&(a=n,n="");var p,y=!1,g="",T=a||{};"undefined"==typeof T.silent&&(T.silent=!0),n=n||T.step;var M=e,x=t;if(t="-0"===t.toString()?0:t,(T.optimize||T.makeRe)&&(n=n?n+="~":n,p=!0,y=!0,g="~"),"string"==typeof n){var S=d().exec(n);if(S){var L=S.index,D=S[0];if("+"===D)return w(e,t);if("?"===D)return[k(e,t)];">"===D?(n=n.substr(0,L)+n.substr(L+1),p=!0):"|"===D?(n=n.substr(0,L)+n.substr(L+1),p=!0,y=!0,g=D):"~"===D&&(n=n.substr(0,L)+n.substr(L+1),p=!0,y=!0,g=D)}else if(!b(n)){if(!T.silent)throw new TypeError("fill-range: invalid step.");return null}}if(/[.&*()[\]^%$#@!]/.test(e)||/[.&*()[\]^%$#@!]/.test(t)){if(!T.silent)throw new RangeError("fill-range: invalid range arguments.");return null}if(!h(e)||!h(t)||f(e)||f(t)){if(!T.silent)throw new RangeError("fill-range: invalid range arguments.");return null}var E=b(m(e)),I=b(m(t));if(!E&&I||E&&!I){if(!T.silent)throw new TypeError("fill-range: first range argument is incompatible with second.");return null}var O=E,R=l(n);O?(e=+e,t=+t):(e=e.charCodeAt(0),t=t.charCodeAt(0));var P=e>t;(e<0||t<0)&&(p=!1,y=!1);var Y,C,q=v(M,x),N=[],A=0;if(y&&i(e,t,R,O,q,T))return"|"!==g&&"~"!==g||(g=o(e,t,R,O,P)),r([M,x],g,T);for(;P?e>=t:e<=t;)q&&O&&(C=q(e)),Y="function"==typeof s?s(e,O,C,A++):O?u(e,C):y&&c(e)?null:String.fromCharCode(e),null!==Y&&N.push(Y),P?e-=R:e+=R;return!y&&!p||T.noexpand?N:("|"!==g&&"~"!==g||(g=o(e,t,R,O,P)),1===N.length||e<0||t<0?N:r(N,g,T))}function r(e,t,n){"~"===t&&(t="-");var a=e.join(t),r=n&&n.regexPrefix;return"|"===t&&(a=r?r+a:a,a="("+a+")"),"-"===t&&(a=r&&"^"===r?r+a:a,a="["+a+"]"),[a]}function s(e,t,n,a,r){return!r&&(a?e<=9&&t<=9:e9||t>9))&&(!r&&1===n&&e>0)||1}function u(e,t){var n=t?t+e:e;return t&&"-"===e.toString().charAt(0)&&(n="-"+t+e.toString().substr(1)),n.toString()}function c(e){var t=p(e);return"\\"===t||"["===t||"]"===t||"^"===t||"("===t||")"===t||"`"===t}function p(e){return String.fromCharCode(e)}function d(){return/\?|>|\||\+|\~/g}function h(e){return/[a-z0-9]/i.test(e)}function f(e){return/[a-z][0-9]|[0-9][a-z]/i.test(e)}function m(e){return/^-*0+$/.test(e.toString())?"0":e}function y(e){return/[^.]\.|^-*0+[0-9]/.test(e)}function v(e,t){if(y(e)||y(t)){var n=g(e),a=g(t),r=n>=a?n:a;return function(e){return T("0",r-g(e))}}return!1}function g(e){return e.toString().length}var _=n(31),b=n(33),k=n(39),T=n(40),w=n(41);e.exports=a},function(e,t,n){/*! * isobject * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";var a=n(32);e.exports=function(e){return null!=e&&"object"==typeof e&&a(e)===!1}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){/*! * is-number * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";var a=n(34);e.exports=function(e){var t=a(e);if("number"!==t&&"string"!==t)return!1;var n=+e;return n-n+1>=0&&""!==e}},function(e,t,n){(function(t){var a=n(38),r=Object.prototype.toString;e.exports=function(e){if("undefined"==typeof e)return"undefined";if(null===e)return"null";if(e===!0||e===!1||e instanceof Boolean)return"boolean";if("string"==typeof e||e instanceof String)return"string";if("number"==typeof e||e instanceof Number)return"number";if("function"==typeof e||e instanceof Function)return"function";if("undefined"!=typeof Array.isArray&&Array.isArray(e))return"array";if(e instanceof RegExp)return"regexp";if(e instanceof Date)return"date";var n=r.call(e);return"[object RegExp]"===n?"regexp":"[object Date]"===n?"date":"[object Arguments]"===n?"arguments":"undefined"!=typeof t&&a(e)?"buffer":"[object Set]"===n?"set":"[object WeakSet]"===n?"weakset":"[object Map]"===n?"map":"[object WeakMap]"===n?"weakmap":"[object Symbol]"===n?"symbol":"[object Int8Array]"===n?"int8array":"[object Uint8Array]"===n?"uint8array":"[object Uint8ClampedArray]"===n?"uint8clampedarray":"[object Int16Array]"===n?"int16array":"[object Uint16Array]"===n?"uint16array":"[object Int32Array]"===n?"int32array":"[object Uint32Array]"===n?"uint32array":"[object Float32Array]"===n?"float32array":"[object Float64Array]"===n?"float64array":"object"}}).call(t,n(35).Buffer)},function(e,t,n){(function(e,a){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ "use strict";function r(){function e(){}try{var t=new Uint8Array(1);return t.foo=function(){return 42},t.constructor=e,42===t.foo()&&t.constructor===e&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(n){return!1}}function s(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function e(t){return this instanceof e?(e.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof t?i(this,t):"string"==typeof t?o(this,t,arguments.length>1?arguments[1]:"utf8"):l(this,t)):arguments.length>1?new e(t,arguments[1]):new e(t)}function i(t,n){if(t=m(t,n<0?0:0|y(n)),!e.TYPED_ARRAY_SUPPORT)for(var a=0;a>>1;return a&&(t.parent=Z),t}function y(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function v(t,n){if(!(this instanceof v))return new v(t,n);var a=new e(t,n);return delete a.parent,a}function g(e,t){"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var a=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(a)return B(e).length;t=(""+t).toLowerCase(),a=!0}}function _(e,t,n){var a=!1;if(t=0|t,n=void 0===n||n===1/0?this.length:0|n,e||(e="utf8"),t<0&&(t=0),n>this.length&&(n=this.length),n<=t)return"";for(;;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return E(this,t,n);case"binary":return I(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function b(e,t,n,a){n=Number(n)||0;var r=e.length-n;a?(a=Number(a),a>r&&(a=r)):a=r;var s=t.length;if(s%2!==0)throw new Error("Invalid hex string");a>s/2&&(a=s/2);for(var i=0;i239?4:s>223?3:s>191?2:1;if(r+o<=n){var l,u,c,p;switch(o){case 1:s<128&&(i=s);break;case 2:l=e[r+1],128===(192&l)&&(p=(31&s)<<6|63&l,p>127&&(i=p));break;case 3:l=e[r+1],u=e[r+2],128===(192&l)&&128===(192&u)&&(p=(15&s)<<12|(63&l)<<6|63&u,p>2047&&(p<55296||p>57343)&&(i=p));break;case 4:l=e[r+1],u=e[r+2],c=e[r+3],128===(192&l)&&128===(192&u)&&128===(192&c)&&(p=(15&s)<<18|(63&l)<<12|(63&u)<<6|63&c,p>65535&&p<1114112&&(i=p))}}null===i?(i=65533,o=1):i>65535&&(i-=65536,a.push(i>>>10&1023|55296),i=56320|1023&i),a.push(i),r+=o}return D(a)}function D(e){var t=e.length;if(t<=Q)return String.fromCharCode.apply(String,e);for(var n="",a=0;aa)&&(n=a);for(var r="",s=t;sn)throw new RangeError("Trying to access beyond buffer length")}function Y(t,n,a,r,s,i){if(!e.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(n>s||nt.length)throw new RangeError("index out of range")}function C(e,t,n,a){t<0&&(t=65535+t+1);for(var r=0,s=Math.min(e.length-n,2);r>>8*(a?r:1-r)}function q(e,t,n,a){t<0&&(t=4294967295+t+1);for(var r=0,s=Math.min(e.length-n,4);r>>8*(a?r:3-r)&255}function N(e,t,n,a,r,s){if(t>r||te.length)throw new RangeError("index out of range");if(n<0)throw new RangeError("index out of range")}function A(e,t,n,a,r){return r||N(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(e,t,n,a,23,4),n+4}function F(e,t,n,a,r){return r||N(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(e,t,n,a,52,8),n+8}function j(e){if(e=z(e).replace(ee,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function z(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){t=t||1/0;for(var n,a=e.length,r=null,s=[],i=0;i55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(i+1===a){(t-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(t-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function U(e){for(var t=[],n=0;n>8,r=n%256,s.push(r),s.push(a);return s}function G(e){return K.toByteArray(j(e))}function V(e,t,n,a){for(var r=0;r=t.length||r>=e.length);r++)t[r+n]=e[r];return r}var K=n(36),$=n(37),J=n(32);t.Buffer=e,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50,e.poolSize=8192;var Z={};e.TYPED_ARRAY_SUPPORT=void 0!==a.TYPED_ARRAY_SUPPORT?a.TYPED_ARRAY_SUPPORT:r(),e.TYPED_ARRAY_SUPPORT?(e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array):(e.prototype.length=void 0,e.prototype.parent=void 0),e.isBuffer=function(e){return!(null==e||!e._isBuffer)},e.compare=function(t,n){if(!e.isBuffer(t)||!e.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var a=t.length,r=n.length,s=0,i=Math.min(a,r);s0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},e.prototype.compare=function(t){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?0:e.compare(this,t)},e.prototype.indexOf=function(t,n){function a(e,t,n){for(var a=-1,r=0;n+r2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n>>=0,0===this.length)return-1;if(n>=this.length)return-1;if(n<0&&(n=Math.max(this.length+n,0)),"string"==typeof t)return 0===t.length?-1:String.prototype.indexOf.call(this,t,n);if(e.isBuffer(t))return a(this,t,n);if("number"==typeof t)return e.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,t,n):a(this,[t],n);throw new TypeError("val must be string, number or Buffer")},e.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},e.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},e.prototype.write=function(e,t,n,a){if(void 0===t)a="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)a=t,n=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(n)?(n=0|n,void 0===a&&(a="utf8")):(a=n,n=void 0);else{var r=a;a=t,t=0|n,n=r}var s=this.length-t;if((void 0===n||n>s)&&(n=s),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");a||(a="utf8");for(var i=!1;;)switch(a){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return T(this,e,t,n);case"binary":return w(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),i=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;e.prototype.slice=function(t,n){var a=this.length;t=~~t,n=void 0===n?a:~~n,t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),n<0?(n+=a,n<0&&(n=0)):n>a&&(n=a),n0&&(r*=256);)a+=this[e+--t]*r;return a},e.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},e.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},e.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},e.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},e.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},e.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||P(e,t,this.length);for(var a=this[e],r=1,s=0;++s=r&&(a-=Math.pow(2,8*t)),a},e.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||P(e,t,this.length);for(var a=t,r=1,s=this[e+--a];a>0&&(r*=256);)s+=this[e+--a]*r;return r*=128,s>=r&&(s-=Math.pow(2,8*t)),s},e.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},e.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},e.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},e.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),$.read(this,e,!0,23,4)},e.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),$.read(this,e,!1,23,4)},e.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),$.read(this,e,!0,52,8)},e.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),$.read(this,e,!1,52,8)},e.prototype.writeUIntLE=function(e,t,n,a){e=+e,t=0|t,n=0|n,a||Y(this,e,t,n,Math.pow(2,8*n),0);var r=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+r]=e/s&255;return t+n},e.prototype.writeUInt8=function(t,n,a){return t=+t,n=0|n,a||Y(this,t,n,1,255,0),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},e.prototype.writeUInt16LE=function(t,n,a){return t=+t,n=0|n,a||Y(this,t,n,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):C(this,t,n,!0),n+2},e.prototype.writeUInt16BE=function(t,n,a){return t=+t,n=0|n,a||Y(this,t,n,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):C(this,t,n,!1),n+2},e.prototype.writeUInt32LE=function(t,n,a){return t=+t,n=0|n,a||Y(this,t,n,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):q(this,t,n,!0),n+4},e.prototype.writeUInt32BE=function(t,n,a){return t=+t,n=0|n,a||Y(this,t,n,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):q(this,t,n,!1),n+4},e.prototype.writeIntLE=function(e,t,n,a){if(e=+e,t=0|t,!a){var r=Math.pow(2,8*n-1);Y(this,e,t,n,r-1,-r)}var s=0,i=1,o=e<0?1:0;for(this[t]=255&e;++s>0)-o&255;return t+n},e.prototype.writeIntBE=function(e,t,n,a){if(e=+e,t=0|t,!a){var r=Math.pow(2,8*n-1);Y(this,e,t,n,r-1,-r)}var s=n-1,i=1,o=e<0?1:0;for(this[t+s]=255&e;--s>=0&&(i*=256);)this[t+s]=(e/i>>0)-o&255;return t+n},e.prototype.writeInt8=function(t,n,a){return t=+t,n=0|n,a||Y(this,t,n,1,127,-128),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},e.prototype.writeInt16LE=function(t,n,a){return t=+t,n=0|n,a||Y(this,t,n,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):C(this,t,n,!0),n+2},e.prototype.writeInt16BE=function(t,n,a){return t=+t,n=0|n,a||Y(this,t,n,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):C(this,t,n,!1),n+2},e.prototype.writeInt32LE=function(t,n,a){return t=+t,n=0|n,a||Y(this,t,n,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):q(this,t,n,!0),n+4},e.prototype.writeInt32BE=function(t,n,a){return t=+t,n=0|n,a||Y(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):q(this,t,n,!1),n+4},e.prototype.writeFloatLE=function(e,t,n){return A(this,e,t,!0,n)},e.prototype.writeFloatBE=function(e,t,n){return A(this,e,t,!1,n)},e.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},e.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},e.prototype.copy=function(t,n,a,r){if(a||(a=0),r||0===r||(r=this.length),n>=t.length&&(n=t.length),n||(n=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-n=0;s--)t[s+n]=this[s+a];else if(i<1e3||!e.TYPED_ARRAY_SUPPORT)for(s=0;s=this.length)throw new RangeError("start out of bounds");if(n<0||n>this.length)throw new RangeError("end out of bounds");var a;if("number"==typeof e)for(a=t;a0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.length;l="="===e.charAt(c-2)?2:"="===e.charAt(c-1)?1:0,u=new s(3*e.length/4-l),i=l>0?e.length-4:e.length;var p=0;for(a=0,r=0;a>16),n((65280&o)>>8),n(255&o);return 2===l?(o=t(e.charAt(a))<<2|t(e.charAt(a+1))>>4,n(255&o)):1===l&&(o=t(e.charAt(a))<<10|t(e.charAt(a+1))<<4|t(e.charAt(a+2))>>2,n(o>>8&255),n(255&o)),u}function r(e){function t(e){return a.charAt(e)}function n(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var r,s,i,o=e.length%3,l="";for(r=0,i=e.length-o;r>2),l+=t(s<<4&63),l+="==";break;case 2:s=(e[e.length-2]<<8)+e[e.length-1],l+=t(s>>10),l+=t(s>>4&63),l+=t(s<<2&63),l+="="}return l}var s="undefined"!=typeof Uint8Array?Uint8Array:Array,i="+".charCodeAt(0),o="/".charCodeAt(0),l="0".charCodeAt(0),u="a".charCodeAt(0),c="A".charCodeAt(0),p="-".charCodeAt(0),d="_".charCodeAt(0);e.toByteArray=n,e.fromByteArray=r}(t)},function(e,t){t.read=function(e,t,n,a,r){var s,i,o=8*r-a-1,l=(1<>1,c=-7,p=n?r-1:0,d=n?-1:1,h=e[t+p];for(p+=d,s=h&(1<<-c)-1,h>>=-c,c+=o;c>0;s=256*s+e[t+p],p+=d,c-=8);for(i=s&(1<<-c)-1,s>>=-c,c+=a;c>0;i=256*i+e[t+p],p+=d,c-=8);if(0===s)s=1-u;else{if(s===l)return i?NaN:(h?-1:1)*(1/0);i+=Math.pow(2,a),s-=u}return(h?-1:1)*i*Math.pow(2,s-a)},t.write=function(e,t,n,a,r,s){var i,o,l,u=8*s-r-1,c=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=a?0:s-1,f=a?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),t+=i+p>=1?d/l:d*Math.pow(2,1-p),t*l>=2&&(i++,l/=2),i+p>=c?(o=0,i=c):i+p>=1?(o=(t*l-1)*Math.pow(2,r),i+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,r),i=0));r>=8;e[n+h]=255&o,h+=f,o/=256,r-=8);for(i=i<0;e[n+h]=255&i,h+=f,i/=256,u-=8);e[n+h-f]|=128*m}},function(e,t){e.exports=function(e){return!(null==e||!(e._isBuffer||e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)))}},function(e,t,n){/*! * randomatic * * This was originally inspired by * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License (MIT) */ "use strict";function a(e,t,n){if("undefined"==typeof e)throw new Error("randomatic expects a string or number.");var a=!1;1===arguments.length&&("string"==typeof e?t=e.length:r(e)&&(n={},t=e,e="*")),"object"===s(t)&&t.hasOwnProperty("chars")&&(n=t,e=n.chars,t=e.length,a=!0);var o=n||{},l="",u="";for(e.indexOf("?")!==-1&&(l+=o.chars),e.indexOf("a")!==-1&&(l+=i.lower),e.indexOf("A")!==-1&&(l+=i.upper),e.indexOf("0")!==-1&&(l+=i.number),e.indexOf("!")!==-1&&(l+=i.special),e.indexOf("*")!==-1&&(l+=i.all),a&&(l+=e);t--;)u+=l.charAt(parseInt(Math.random()*l.length,10));return u}var r=n(33),s=n(34);e.exports=a;var i={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};i.all=i.lower+i.upper+i.number},function(e,t){/*! * repeat-string * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";function n(e,t){if("string"!=typeof e)throw new TypeError("repeat-string expects a string.");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;for(a===e&&"undefined"!=typeof a||(a=e,r="");n>r.length&&t>0&&(1&t&&(r+=e),t>>=1);)e+=e;return r.substr(0,n)}var a,r="";e.exports=n},function(e,t){/*! * repeat-element * * Copyright (c) 2015 Jon Schlinkert. * Licensed under the MIT license. */ "use strict";e.exports=function(e,t){for(var n=new Array(t),a=0;a * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT license. */ "use strict";function n(){return Math.random().toString().slice(2,7)}t.before=function(e,t){return e.replace(t,function(e){var t=n();return a[t]=e,"__ID"+t+"__"})},t.after=function(e){return e.replace(/__ID(.{5})__/g,function(e,t){return a[t]})};var a={}},function(e,t,n){/*! * expand-brackets * * Copyright (c) 2015 Jon Schlinkert. * Licensed under the MIT license. */ "use strict";function a(e){if(!r(e))return e;var t=!1;e.indexOf("[^")!==-1&&(t=!0,e=e.split("[^").join("[")),e.indexOf("[!")!==-1&&(t=!0,e=e.split("[!").join("["));for(var n=e.split("["),a=e.split("]"),i=n.length!==a.length,o=e.split(/(?::\]\[:|\[?\[:|:\]\]?)/),l=o.length,u=0,c="",p="",d=[];l--;){var h=o[u++];"^[!"!==h&&"[!"!==h||(h="",t=!0);var f=t?"^":"",m=s[h];m?d.push("["+f+m+"]"):h&&(/^\[?\w-\w\]?$/.test(h)?u===o.length?d.push("["+f+h):1===u?d.push(f+h+"]"):d.push(f+h):1===u?p+=h:u===o.length?c+=h:d.push("["+f+h+"]"))}var y=d.join("|"),v=d.length||1;return v>1&&(y="(?:"+y+")",v=1),p&&(v++,"["===p.charAt(0)&&(i?p="\\["+p.slice(1):p+="]"),y=p+y),c&&(v++,"]"===c.slice(-1)&&(c=i?c.slice(0,c.length-1)+"\\]":"["+c),y+=c),v>1&&(y=y.split("][").join("]|["),y.indexOf("|")===-1||/\(\?/.test(y)||(y="(?:"+y+")")),y=y.replace(/\[+=|=\]+/g,"\\b")}var r=n(44),s={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E",punct:"-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports=a,a.makeRe=function(e){try{return new RegExp(a(e))}catch(t){}},a.isMatch=function(e,t){try{return a.makeRe(t).test(e)}catch(n){return!1}},a.match=function(e,t){for(var n=e.length,r=0,s=e.slice(),i=a.makeRe(t);r * * Copyright (c) 2015-2016, Jon Schlinkert. * Licensed under the MIT License. */ e.exports=function(e){return"string"==typeof e&&/\[([:.=+])(?:[^\[\]]|)+\1\]/.test(e)}},function(e,t,n){/*! * extglob * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";function a(e,t){t=t||{};var n={},a=0;e=e.replace(/!\(([^\w*()])/g,"$1!("),e=e.replace(/([*\/])\.!\([*]\)/g,function(e,t){return s("/"===t?"\\/[^.]+":"[^.]+")});var o=e+String(!!t.regex)+String(!!t.contains)+String(!!t.escape);if(c.hasOwnProperty(o))return c[o];u instanceof RegExp||(u=i()),t.negate=!1;for(var p;p=u.exec(e);){var d=p[1],h=p[3];"!"===d&&(t.negate=!0);var f="__EXTGLOB_"+a++ +"__";n[f]=r(h,d,t.escape),e=e.split(p[0]).join(f)}for(var m=Object.keys(n),y=m.length;y--;){var v=m[y];e=e.split(v).join(n[v])}var g=t.regex?l(e,t.contains,t.negate):e;return g=g.split(".").join("\\."),c[o]=g}function r(e,t,n){switch(n&&(e=s(e)),t){case"!":return"(?!"+e+")[^/]"+(n?"%%%~":"*?");case"@":return"(?:"+e+")";case"+":return"(?:"+e+")+";case"*":return"(?:"+e+")"+(n?"%%":"*");case"?":return"(?:"+e+"|)";default:return e}}function s(e){return e=e.split("*").join("[^/]%%%~"),e=e.split(".").join("\\.")}function i(){return/(\\?[@?!+*$]\\?)(\(([^()]*?)\))/}function o(e){return"(?!^"+e+").*$"}function l(e,t,n){var a=t?"^":"",r=t?"$":"";return e="(?:"+e+")"+r,n&&(e=a+o(e)),new RegExp(a+e)}var u,c=(n(46),{});e.exports=a},function(e,t){/*! * is-extglob * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ e.exports=function(e){return"string"==typeof e&&/[@?!+*]\(/.test(e)}},function(e,t,n){/*! * is-glob * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ var a=n(46);e.exports=function(e){return"string"==typeof e&&(/[*!?{}(|)[\]]/.test(e)||a(e))}},function(e,t){/*! * normalize-path * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License */ e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");return e=e.replace(/[\\\/]+/g,"/"),t!==!1&&(e=e.replace(/\/$/,"")),e}},function(e,t,n){/*! * object.omit * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";var a=n(50),r=n(51);e.exports=function(e,t){if(!a(e))return{};var n,t=[].concat.apply([],[].slice.call(arguments,1)),s=t[t.length-1],i={};"function"==typeof s&&(n=t.pop());var o="function"==typeof n;return t.length||o?(r(e,function(a,r){t.indexOf(r)===-1&&(o?n(a,r,e)&&(i[r]=a):i[r]=a)}),i):e}},function(e,t){/*! * is-extendable * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";e.exports=function(e){return"undefined"!=typeof e&&null!==e&&("object"==typeof e||"function"==typeof e)}},function(e,t,n){/*! * for-own * * Copyright (c) 2014-2016, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";var a=n(52),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){a(e,function(a,s){if(r.call(e,s))return t.call(n,e[s],s,e)})}},function(e,t){/*! * for-in * * Copyright (c) 2014-2016, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";e.exports=function(e,t,n){for(var a in e)if(t.call(n,e[a],a,e)===!1)break}},function(e,t,n){/*! * parse-glob * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";function a(e){return e.indexOf("/.")!==-1||"."===e.charAt(0)&&"/"!==e.charAt(1)}function r(e,t,n){return e&&t.indexOf(n)!==-1}function s(e){var t=/\{([^{}]*?)}|\(([^()]*?)\)|\[([^\[\]]*?)\]/g;return e.replace(t,function(e,t,n,a){var r=t||n||a;return r?e.split(r).join(i(r)):e})}function i(e){return e=e.split("/").join("__SLASH__"),e=e.split(".").join("__DOT__")}function o(e){return e=e.split("__SLASH__").join("/"),e=e.split("__DOT__").join(".")}var l=n(47),u=n(54),c=n(46),p=n(56),d=e.exports.cache={};e.exports=function(e){if(d.hasOwnProperty(e))return d[e];var t={};t.orig=e,t.is={},e=s(e);var n=u(e);t.is.glob=n.isGlob,t.glob=n.glob,t.base=n.base;var i=/([^\/]*)$/.exec(e);t.path={},t.path.dirname="",t.path.basename=i[1]||"",t.path.dirname=e.split(t.path.basename).join("")||"";var h=(t.path.basename||"").split(".")||"";t.path.filename=h[0]||"",t.path.extname=h.slice(1).join(".")||"",t.path.ext="",l(t.path.dirname)&&!t.path.basename&&(/\/$/.test(t.glob)||(t.path.basename=t.glob),t.path.dirname=t.base),e.indexOf("/")!==-1||t.is.globstar||(t.path.dirname="",t.path.basename=t.orig);var f=t.path.basename.indexOf(".");if(f!==-1&&(t.path.filename=t.path.basename.slice(0,f),t.path.extname=t.path.basename.slice(f)),"."===t.path.extname.charAt(0)){var m=t.path.extname.split(".");t.path.ext=m[m.length-1]}t.glob=o(t.glob),t.path.dirname=o(t.path.dirname),t.path.basename=o(t.path.basename),t.path.filename=o(t.path.filename),t.path.extname=o(t.path.extname);var y=e&&t.is.glob;return t.is.negated=e&&"!"===e.charAt(0),t.is.extglob=e&&c(e),t.is.braces=r(y,e,"{"),t.is.brackets=r(y,e,"[:"),t.is.globstar=r(y,e,"**"),t.is.dotfile=p(t.path.basename)||p(t.path.filename),t.is.dotdir=a(t.path.dirname),d[e]=t}},function(e,t,n){/*! * glob-base * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";function a(e){return"/"===e.slice(-1)?e:r.dirname(e)}var r=n(23),s=n(55),i=n(47);e.exports=function(e){if("string"!=typeof e)throw new TypeError("glob-base expects a string.");var t={};return t.base=s(e),t.isGlob=i(e),"."!==t.base?(t.glob=e.substr(t.base.length),"/"===t.glob.charAt(0)&&(t.glob=t.glob.substr(1))):t.glob=e,t.isGlob||(t.base=a(e),t.glob="."!==t.base?e.substr(t.base.length):e),"./"===t.glob.substr(0,2)&&(t.glob=t.glob.substr(2)),"/"===t.glob.charAt(0)&&(t.glob=t.glob.substr(1)),t}},function(e,t,n){"use strict";var a=n(23),r=n(47);e.exports=function(e){e+="a";do e=a.dirname(e);while(r(e));return e}},function(e,t){/*! * is-dotfile * * Copyright (c) 2015 Jon Schlinkert, contributors. * Licensed under the MIT license. */ e.exports=function(e){if(46===e.charCodeAt(0)&&e.indexOf("/",1)===-1)return!0;var t=e.lastIndexOf("/");return t!==-1&&46===e.charCodeAt(t+1)}},function(e,t,n){/*! * regex-cache * * Copyright (c) 2015 Jon Schlinkert. * Licensed under the MIT license. */ "use strict";function a(e,t,n){var a,l,u="_default_";if(!t&&!n)return"function"!=typeof e?e:i[u]||(i[u]=e(t));var c="string"==typeof t;if(c){if(!n)return i[t]||(i[t]=e(t));u=t}else n=t;return l=o[u],l&&s(l.opts,n)?l.regex:(r(u,n,a=e(t,n)),a)}function r(e,t,n){o[e]={regex:n,opts:t}}var s=(n(58),n(59)),i={},o={};e.exports=a,e.exports.cache=o,e.exports.basic=i},function(e,t){/*! * is-primitive * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";e.exports=function(e){return null==e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){/*! * is-equal-shallow * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ "use strict";var a=n(58);e.exports=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var n,r=0,s=0;for(n in t)if(s++,!a(t[n])||!e.hasOwnProperty(n)||e[n]!==t[n])return!1;for(n in e)r++;return r===s}},function(e,t,n){"use strict";function a(e){return e=e.split("?").join("%~"),e=e.split("*").join("%%")}function r(e){return e=e.split("%~").join("?"),e=e.split("%%").join("*")}var s=n(61),i=n(22),o=e.exports=function l(e,t){return this instanceof l?(this.options=t||{},this.pattern=e,this.history=[],this.tokens={},void this.init(e)):new l(e,t)};o.prototype.init=function(e){this.orig=e,this.negated=this.isNegated(),this.options.track=this.options.track||!1,this.options.makeRe=!0},o.prototype.track=function(e){this.options.track&&this.history.push({msg:e,pattern:this.pattern})},o.prototype.isNegated=function(){return 33===this.pattern.charCodeAt(0)&&(this.pattern=this.pattern.slice(1),!0)},o.prototype.braces=function(){if(this.options.nobraces!==!0&&this.options.nobrace!==!0){var e=this.pattern.match(/[\{\(\[]/g),t=this.pattern.match(/[\}\)\]]/g);e&&t&&e.length!==t.length&&(this.options.makeRe=!1);var n=i.braces(this.pattern,this.options);this.pattern=n.join("|")}},o.prototype.brackets=function(){this.options.nobrackets!==!0&&(this.pattern=i.brackets(this.pattern))},o.prototype.extglob=function(){this.options.noextglob!==!0&&i.isExtglob(this.pattern)&&(this.pattern=i.extglob(this.pattern,{escape:!0}))},o.prototype.parse=function(e){return this.tokens=i.parseGlob(e||this.pattern,!0),this.tokens},o.prototype._replace=function(e,t,n){this.track('before (find): "'+e+'" (replace with): "'+t+'"'),n&&(t=a(t)),e&&t&&"string"==typeof e?this.pattern=this.pattern.split(e).join(t):this.pattern=this.pattern.replace(e,t),this.track("after")},o.prototype.escape=function(e){this.track("before escape: ");var t=/["\\](['"]?[^"'\\]['"]?)/g;this.pattern=e.replace(t,function(e,t){var n=s.ESC,a=n&&n[t];return a?a:/[a-z]/i.test(e)?e.split("\\").join(""):e}),this.track("after escape: ")},o.prototype.unescape=function(e){var t=/__([A-Z]+)_([A-Z]+)__/g;this.pattern=e.replace(t,function(e,t){return s[t][e]}),this.pattern=r(this.pattern)}},function(e,t){"use strict";function n(e,t){return Object.keys(e).reduce(function(n,a){var r=t?t+a:a;return n[e[a]]=r,n},{})}var a,r,s={};s.escapeRegex={"?":/\?/g,"@":/\@/g,"!":/\!/g,"+":/\+/g,"*":/\*/g,"(":/\(/g,")":/\)/g,"[":/\[/g,"]":/\]/g},s.ESC={"?":"__UNESC_QMRK__","@":"__UNESC_AMPE__","!":"__UNESC_EXCL__","+":"__UNESC_PLUS__","*":"__UNESC_STAR__",",":"__UNESC_COMMA__","(":"__UNESC_LTPAREN__",")":"__UNESC_RTPAREN__","[":"__UNESC_LTBRACK__","]":"__UNESC_RTBRACK__"},s.UNESC=a||(a=n(s.ESC,"\\")),s.ESC_TEMP={"?":"__TEMP_QMRK__","@":"__TEMP_AMPE__","!":"__TEMP_EXCL__","*":"__TEMP_STAR__","+":"__TEMP_PLUS__",",":"__TEMP_COMMA__","(":"__TEMP_LTPAREN__",")":"__TEMP_RTPAREN__","[":"__TEMP_LTBRACK__","]":"__TEMP_RTBRACK__"},s.TEMP=r||(r=n(s.ESC_TEMP)),e.exports=s},function(e,t,n){(function(t,a){var r,s,i,o,l,u,c=function(e,t){return function(){return e.apply(t,arguments)}};o=n(63),u=n(806),i=n(807),s=n(809)["default"],l=n(248),r=function(){function e(){this.getUsername=c(this.getUsername,this),this.globalRefresh=c(this.globalRefresh,this)}return e.prototype.views={},e.prototype.globalRefreshInterval=void 0,e.prototype.globalRefreshTime=6e4,e.prototype.blurred=!1,e.prototype.initialize=function(){var e,n;return this.setupGlobalErrorHandling(),this.setupUser(),this.$page=t("#page"),this.page=this.$page[0],e=t("body"),this.views.nav=new i,this.views.nav.render(),e.prepend(this.views.nav.$el),this.views.globalSearch=new s,this.views.globalSearch.render(),e.append(this.views.globalSearch.$el),t(".page-loader.fixed").hide(),this.router=new o,n=document.createElement("a"),n.href=config.appRoot||"/",Backbone.history.start({pushState:!0,root:n.pathname}),this.setRefreshInterval(),t(window).on("blur",function(e){return function(){return e.blurred=!0,clearInterval(e.globalRefreshInterval)}}(this)),t(window).on("focus",function(e){return function(){return e.blurred=!1,e.globalRefresh(),e.setRefreshInterval()}}(this))},e.prototype.setRefreshInterval=function(){return clearInterval(this.globalRefreshInterval),setInterval(this.globalRefresh,this.globalRefreshTime)},e.prototype.globalRefresh=function(){if("true"!==localStorage.getItem("suppressRefresh"))return this.blurred?void clearInterval(this.globalRefreshInterval):this.currentController.refresh()},e.prototype.caughtError=function(){return this.caughtThisError=!0},e.prototype.setupGlobalErrorHandling=function(){var e;return e=!1,t(window).on("beforeunload",function(){e=!0}),t(document).on("ajaxError",function(t){return function(n,r,s){var i,o,l,u,c;if(t.caughtThisError)return void(t.caughtThisError=!1);if(!s.suppressErrors&&"abort"!==r.statusText&&!(e||t.blurred&&"timeout"===r.statusText)){if(c=s.url.replace(config.appRoot,""),502===r.status)return Messenger().info({message:"Singularity is deploying, your requests cannot be handled. Things should resolve in a few seconds so just hang tight!"});if(401===r.status&&config.redirectOnUnauthorizedUrl)return window.location.href=config.redirectOnUnauthorizedUrl.replace("{URL}",encodeURIComponent(window.location.href));if("timeout"===r.statusText)return Messenger().error({message:"

A "+r.statusText+" error occurred while accessing:

"+c+"
"});if(0===r.status)return Messenger().error({message:"

Could not reach the Singularity API. Please make sure SingularityUI is properly set up.

If running through locally, this might be your browser blocking cross-domain requests.

"});try{u=JSON.parse(r.responseText).message||r.responseText}catch(p){if(200===r.status)throw console.error(r.responseText),Messenger().error({message:"

Expected JSON but received "+(r.responseText.startsWith("")?"html":"something else")+". The response has been saved to your js console.

"}),new Error("Expected JSON in response but received "+(r.responseText.startsWith("")?"html":"something else"));u=r.responseText}throw u=a.escape(u),i="message_"+Date.now(),l="#"+i,Messenger().error({message:'
\n

An uncaught error occurred with your request. The server said:

\n
'+u+"
\n

The error has been saved to your JS console. Copy error message.

\n
"}),console.error(r),o={selector:l,linkText:"Copy error message",copyLink:".copy-link"},utils.makeMeCopy(o),new Error("AJAX Error")}}}(this))},e.prototype.showPageLoader=function(){return this.$page.html("
")},e.prototype.showFixedPageLoader=function(){return this.$page.append("
")},e.prototype.hideFixedPageLoader=function(){return this.$page.find(".page-loader-fixed").remove()},e.prototype.bootstrapController=function(e){return this.currentController=e},e.prototype.showView=function(e){var n;return window.dispatchEvent(new Event("viewChange")),null!=(n=this.views.current)&&n.remove(),t(window).scrollTop(0),this.views.current=e,e.render(),this.page.children.length?(this.page.replaceChild(e.el,this.page.children[0]),l.init()):this.page.appendChild(e.el)},e.prototype.setupUser=function(){return this.user=new u,this.user.fetch()},e.prototype.getUsername=function(){return this.user.get("authenticated")?this.user.get("user").id:""},e}(),e.exports=new r}).call(t,n(1),n(7))},function(e,t,n){var a,r,s,i,o,l,u,c,p,d,h,f,m,y,v,g,_,b,k=function(e,t){function n(){this.constructor=e}for(var a in t)T.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},T={}.hasOwnProperty;a=n(64),m=n(264),p=n(268),c=n(274),i=n(276),u=n(285),d=n(309),g=n(320),y=n(334),l=n(633),f=n(637),o=n(640),r=n(643),s=n(654),v=n(704),b=n(800),_=n(6),h=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return k(t,e),t.prototype.routes={"(/)":"dashboard","status(/)":"status","requests/new(/)":"newRequest","requests/edit/:requestId":"editRequest","requests/:state/:subFilter/:searchFilter(/)":"requestsTable","requests/:state/:subFilter(/)":"requestsTable","requests/:state(/)":"requestsTable","requests(/)":"requestsTable","request/:requestId(/)":"requestDetail","request/:requestId/deploy/:deployId(/)":"deployDetail","request/:requestId/tail/*path":"aggregateTail","request/:requestId/taskSearch":"taskSearch","request/:requestId/deploy(/)":"newDeploy","tasks/:state/:requestsSubFilter/:searchFilter(/)":"tasksTable","tasks/:state/:requestsSubFilter(/)":"tasksTable","tasks/:state(/)":"tasksTable","tasks(/)":"tasksTable","task/:taskId(/)":"taskDetail","task/:taskId/files(/)*path":"taskFileBrowser","task/:taskId/tail/*path":"tail",taskSearch:"taskSearch","racks(/)":"racks","racks/:state(/)":"racks","slaves/:state(/)":"slaves","slaves(/)":"slaves","webhooks(/)":"webhooks","*anything":"notFound"},t.prototype.dashboard=function(){return app.bootstrapController(new a)},t.prototype.status=function(){return app.bootstrapController(new m)},t.prototype.newRequest=function(){return app.bootstrapController(new p)},t.prototype.editRequest=function(e){return null==e&&(e=""),app.bootstrapController(new c({requestId:e}))},t.prototype.requestsTable=function(e,t,n){return null==e&&(e="all"),null==t&&(t="all"),null==n&&(n=""),app.bootstrapController(new d({state:e,subFilter:t,searchFilter:n}))},t.prototype.requestDetail=function(e){return app.bootstrapController(new u({requestId:e}))},t.prototype.taskSearch=function(e){return app.bootstrapController(new v({requestId:e}))},t.prototype.newDeploy=function(e){return app.bootstrapController(new i({requestId:e}))},t.prototype.tasksTable=function(e,t,n){return null==e&&(e="active"),null==t&&(t="all"),null==n&&(n=""),app.bootstrapController(new g({state:e,requestsSubFilter:t,searchFilter:n}))},t.prototype.taskDetail=function(e){return app.bootstrapController(new y({taskId:e,filePath:null}))},t.prototype.taskFileBrowser=function(e,t){return null==t&&(t=""),app.bootstrapController(new y({taskId:e,filePath:t}))},t.prototype.tail=function(e,t){var n,a,r,i,o;return null==t&&(t=""),n=parseInt(window.location.hash.substr(1),10)||null,o=e.split("-"),r=o.slice(0,o.length-5).join("-"),a=_.getQueryParams(),i=a.search||"",t=t.replace(e,"$TASK_ID"),app.bootstrapController(new s({requestId:r,path:t,initialOffset:n,taskIds:[e],search:i,viewMode:"split"}))},t.prototype.racks=function(e){return null==e&&(e="all"),app.bootstrapController(new l({state:e}))},t.prototype.slaves=function(e){return null==e&&(e="all"),app.bootstrapController(new f({state:e}))},t.prototype.notFound=function(){return app.bootstrapController(new o)},t.prototype.deployDetail=function(e,t){return app.bootstrapController(new r({requestId:e,deployId:t}))},t.prototype.aggregateTail=function(e,t){var n,a,r,i,o;return null==t&&(t=""),n=parseInt(window.location.hash.substr(1),10)||null,a=_.getQueryParams(),i=a.taskIds?a.taskIds.split(","):[],o=a.viewMode||"split",r=a.search||"",app.bootstrapController(new s({requestId:e,path:t,initialOffset:n,taskIds:i,viewMode:o,search:r}))},t.prototype.webhooks=function(){return app.bootstrapController(new b)},t}(Backbone.Router),e.exports=h},function(e,t,n){var a,r,s,i,o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;a=n(65),i=n(66),s=n(246),r=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return o(t,e),t.prototype.initialize=function(){return app.showPageLoader(),this.title("Dashboard"),this.collections.requests=new i([],{state:"all"}),this.collections.requests.fetch().done(function(e){return function(){return e.setView(new s({collection:e.collections.requests})),app.showView(e.view)}}(this))},t.prototype.refresh=function(){return this.collections.requests.fetch()},t}(a),e.exports=r},function(e,t,n){var a,r;r=n(6),a=function(){function e(e){this.title(""),"function"==typeof this.initialize&&this.initialize(e)}return e.prototype.view=void 0,e.prototype.subviews={},e.prototype.models={},e.prototype.collections={},e.prototype.initialize=function(){},e.prototype.refresh=function(){},e.prototype.setView=function(e){return this.view=e,this.view.on("refreshrequest",function(e){return function(){return e.refresh()}}(this))},e.prototype.title=function(e){return""===e?document.title=config.title:document.title=e+" - "+config.title},e.prototype.ignore404=r.ignore404,e.prototype.ignore400=r.ignore400,e}(),e.exports=a},function(e,t,n){(function(t,a){var r,s,i,o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty,u=[].indexOf||function(e){for(var t=0,n=this.length;t=0},n.prototype.getStarredOnly=function(){var e;return e=this.getStarredRequests(),a.isEmpty(e)?[]:this.filter(function(t){return function(t){var n;return n=t.get("request").id,u.call(e,n)>=0}}(this))},n.prototype.toggleStar=function(e){var t;return t=this.getStarredRequests(),u.call(t,e)>=0?t=a.without(t,e):t.push(e),localStorage.setItem("starredRequests",JSON.stringify(t))},n.prototype.getUserRequests=function(e){return this.filter(function(t){var n,a,r,s,i,o,l,u,c,p,d;if(d=t.get("request"),r=e.split("@")[0],n=null!=(u=t.get("requestDeployState"))&&null!=(c=u.activeDeploy)?c.user:void 0,n&&(a=n.split("@")[0],r===a))return!0;if(!d.owners)return!1;for(p=d.owners,s=0,i=p.length;s1,e.bounceAfterScale=e.request.bounceAfterScale,e.paused="PAUSED"===e.state,e.deleted="DELETED"===e.state,e.inCooldown="SYSTEM_COOLDOWN"===e.state,e.hasActiveDeploy=null!=e.activeDeploy||null!=(null!=(t=e.requestDeployState)?t.activeDeploy:void 0),e.daemon="WORKER"===(n=e.type)||"SERVICE"===n,e.canBeRunNow="ACTIVE"===e.state&&("SCHEDULED"===(a=e.type)||"ON_DEMAND"===a)&&e.hasActiveDeploy,e.canBeBounced=!("ACTIVE"!==(r=e.state)&&"SYSTEM_COOLDOWN"!==r||"WORKER"!==(s=e.type)&&"SERVICE"!==s),e.canBeScaled=("ACTIVE"===(i=e.state)||"SYSTEM_COOLDOWN"===i)&&e.hasActiveDeploy&&("WORKER"===(o=e.type)||"SERVICE"===o),e))},n.prototype.unpause=function(e){return t.ajax({url:this.url()+"/unpause",contentType:"application/json",type:"POST",data:JSON.stringify({message:e.message})})},n.prototype.hideEvenNumberAcrossRacksHint=function(e){var n;return this.attributes.request.hideEvenNumberAcrossRacksHint=!0,n=t.ajax({type:"POST",url:config.apiRoot+"/requests",contentType:"application/json",data:JSON.stringify(this.attributes.request)}),n.then(e)},n.prototype.pause=function(e,n,a){var r;return r={user:app.getUsername(),killTasks:e},a&&(r.message=a),n=this._parseDuration(n),n&&(r.durationMillis=n),t.ajax({url:this.url()+"/pause",type:"POST",contentType:"application/json",data:JSON.stringify(r)})},n.prototype.run=function(e,n,a){var r;return r={url:this.url()+"/run",type:"POST",contentType:"application/json",data:{}},r.data.commandLineArgs=e,a&&(r.data.runId=a),n&&(r.data.message=n),r.data=JSON.stringify(r.data),t.ajax(r)},n.prototype.scale=function(e){var n,a;return n={instances:e.instances},e.message&&(n.message=e.message),a=this._parseDuration(e.duration),a&&(n.durationMillis=a),t.ajax({url:this.url()+"/scale",type:"PUT",contentType:"application/json",data:JSON.stringify(n)})},n.prototype.makeScalePermanent=function(e){return t.ajax({url:this.url()+"/scale",type:"DELETE"}).then(function(t){return function(){return t.unset("expiringScale"),e()}}(this))},n.prototype.makePausePermanent=function(e){return t.ajax({url:this.url()+"/pause",type:"DELETE"}).then(function(t){return function(){return t.unset("expiringPause"),e()}}(this))},n.prototype.makeSkipHealthchecksPermanent=function(e){return t.ajax({url:this.url()+"/skip-healthchecks",type:"DELETE"}).then(function(t){return function(){return t.unset("expiringSkipHealthchecks"),e()}}(this))},n.prototype.cancelBounce=function(e){return t.ajax({url:this.url()+"/bounce",type:"DELETE"}).then(function(t){return function(){return t.unset("expiringBounce"),e()}}(this))},n.prototype.bounce=function(e){var n,a,r,s,i;return r=e.incremental,a=e.duration,i=e.skipHealthchecks,s=e.message,n={incremental:r,skipHealthchecks:i},s&&(n.message=s),a=this._parseDuration(a),a&&(n.durationMillis=a),t.ajax({type:"POST",url:this.url()+"/bounce",contentType:"application/json",data:JSON.stringify(n)})},n.prototype.exitCooldown=function(){return t.ajax({url:this.url()+"/exit-cooldown",type:"POST",contentType:"application/json",data:"{}"})},n.prototype.disableHealthchecks=function(e,n){var a;return a={skipHealthchecks:!0},e&&(a.message=e),n=this._parseDuration(n),n&&(a.durationMillis=n),t.ajax({type:"PUT",url:this.url()+"/skip-healthchecks",contentType:"application/json",data:JSON.stringify(a)})},n.prototype.enableHealthchecks=function(e,n){var a;return a={skipHealthchecks:!1},e&&(a.message=e),n=this._parseDuration(n),n&&(a.durationMillis=n),t.ajax({type:"PUT",url:this.url()+"/skip-healthchecks",contentType:"application/json",data:JSON.stringify(a)})},n.prototype.destroy=function(e){var n;return n={},e&&(n.message=e),t.ajax({type:"DELETE",url:this.url(),contentType:"application/json",data:JSON.stringify(n)})},n.prototype.stepDeploy=function(e,n){var a;return a={requestId:this.get("id"),deployId:e,targetActiveInstances:n},t.ajax({type:"POST",url:config.apiRoot+"/deploys/update",contentType:"application/json",data:JSON.stringify(a)})},n.prototype.cancelDeploy=function(e){return t.ajax({type:"DELETE",url:config.apiRoot+"/deploys/deploy/"+e+"/request/"+this.get("id")})},n.prototype._validateDuration=function(e,t,n){return!!this._parseDuration(e)||(w.dialog.open({message:"Invalid duration specified, please try again.",callback:function(e){if(e)return t(n)}}),!1)},n.prototype._parseDuration=function(e){var t,n;if(!e)return e;try{return 1e3*f.parse(e)}catch(n){return t=n,console.error("Error parsing duration input: "+e),null}},n.prototype.promptPause=function(e){return w.dialog.confirm({message:m({id:this.get("id"),scheduled:this.get("scheduled")}),callback:function(n){return function(a){var r,s,i;if(a)return s=!t(".vex #kill-tasks").is(":checked"),r=t(".vex #pause-expiration").val(),i=t(".vex #pause-message").val(),!r||r&&n._validateDuration(r,n.promptPause,e)?n.pause(s,r,i).done(e):void 0}}(this)})},n.prototype.callScale=function(e,t,n,a,r,s,i){return this.scale(e).done(function(a){return function(){return i?(a.attributes.request.instances=e.instances,a.hideEvenNumberAcrossRacksHint(function(){return t?a.bounce({incremental:n}).done(s):s()})):t?a.bounce({incremental:n}).done(s):s()}}(this))},n.prototype.promptScaleEvenNumberRacks=function(e){return w.dialog.open({message:g({instances:parseInt(e.data.instances),notOneInstance:1!==parseInt(e.data.instances),racks:this.racks.length,notOneRack:1!==this.racks.length,mod:e.mod,modNotOne:1!==e.mod,lower:parseInt(e.data.instances)-e.mod,higher:parseInt(e.data.instances)+this.racks.length-e.mod,config:config}),input:" ",buttons:[t.extend(a.clone(w.dialog.buttons.YES),{text:"Scale"}),w.dialog.buttons.NO],scaleData:e,callback:function(t){return function(n){if(n)return e.data.instances=n.instances,t.callScale(e.data,e.bounce,e.incremental,e.message,e.duration,e.callback,n.optOut)}}(this)})},n.prototype.checkScaleEvenNumberRacks=function(e,t,n,a,r,s){var i;return i=L(e.instances,this.racks.length),i?this.promptScaleEvenNumberRacks({callback:s,data:e,mod:i,bounce:t,incremental:n,message:a,duration:r}):this.callScale(e,t,n,a,r,s,!1)},n.prototype.promptScale=function(e){return w.dialog.open({message:"Enter the desired number of instances to run for request:",input:_({id:this.get("id"),bounceAfterScale:this.get("bounceAfterScale"),placeholder:this.get("instances")}),buttons:[t.extend(a.clone(w.dialog.buttons.YES),{text:"Scale"}),w.dialog.buttons.NO],afterOpen:function(e){return e.find("#bounce").click(function(e){return function(){return t(".vex #bounce").is(":checked")?t(".vex #incremental-bounce-options").show():t(".vex #incremental-bounce-options").hide()}}(this))},callback:function(n){return function(a){var r,s,o,l;if(a)return r=t(".vex #bounce").is(":checked"),o=t(".vex #incremental-bounce").is(":checked"),l=t(".vex #scale-message").val(),s=t(".vex #scale-expiration").val(),!s||s&&n._validateDuration(s,n.promptScale,e)?"SERVICE"===n.attributes.request.requestType&&n.attributes.request.rackSensitive&&!n.attributes.request.hideEvenNumberAcrossRacksHint?n.racks?n.checkScaleEvenNumberRacks(a,r,o,l,s,e):(n.racks=new i([]),n.racks.fetch({success:function(){return n.checkScaleEvenNumberRacks(a,r,o,l,s,e)},error:function(){return app.caughtError(),n.callScale(a,r,o,l,s,e,!1)}})):n.callScale(a,r,o,l,s,e,!1):void 0}}(this)})},n.prototype.promptDisableHealthchecksDuration=function(e,n,r){var s;return s=this._parseDuration(n),s<36e5?w.dialog.confirm({message:"Are you sure you want to disable healthchecks for less than an hour? This may not be enough time for your service to get into a stable state.",buttons:[t.extend(a.clone(w.dialog.buttons.YES),{text:"Disable Healthchecks"}),w.dialog.buttons.NO],callback:function(t){return function(a){if(a)return t.disableHealthchecks(e,n).done(r)}}(this)}):this.disableHealthchecks(e,n).done(r)},n.prototype.promptDisableHealthchecks=function(e){return w.dialog.open({message:"Turn off healthchecks for this request.",input:'\nIf an expiration duration is specified, this action will be reverted afterwards. Accepts any english time duration. (Days, Hr, Min...)\n',buttons:[t.extend(a.clone(w.dialog.buttons.YES),{text:"Disable Healthchecks"}),w.dialog.buttons.NO],callback:function(n){return function(a){var r,s;if(a)return r=t(".vex #disable-healthchecks-expiration").val(),s=t(".vex #disable-healthchecks-message").val(),r?n._validateDuration(r,n.promptDisableHealthchecks,e)?n.promptDisableHealthchecksDuration(s,r,e):void 0:n.disableHealthchecks(s,r).done(e)}}(this)})},n.prototype.promptEnableHealthchecks=function(e){return w.dialog.open({message:"Turn on healthchecks for this request.",input:'\n\nIf an expiration duration is specified, this action will be reverted afterwards. Accepts any english time duration. (Days, Hr, Min...)',buttons:[t.extend(a.clone(w.dialog.buttons.YES),{text:"Enable Healthchecks"}),w.dialog.buttons.NO],callback:function(n){return function(a){var r,s;if(a)return r=t(".vex #disable-healthchecks-expiration").val(),s=t(".vex #disable-healthchecks-message").val(),!r||r&&n._validateDuration(r,n.promptEnableHealthchecks,e)?n.enableHealthchecks(s,r).done(e):void 0}}(this)})},n.prototype.promptUnpause=function(e){return w.dialog.confirm({message:k({id:this.get("id")}),input:'',callback:function(t){return function(n){if(n)return t.unpause(n).done(e)}}(this)})},n.prototype.getMostRecentlyRunTask=function(e){var t,n;return this.commands=[],t=new r([],{params:{requestId:this.get("id")}}),n=t.fetch(),n.success(function(n){return function(){var a,r,s;return t.models.length?(s=t.models[0].attributes.taskId.id,a=new l({taskId:s}),r=a.fetch(),r.success(function(){return n.commands=a.attributes.task.taskRequest.pendingTask.cmdLineArgsList,e()}),r.error(function(){return app.caughtError(),e()})):e()}}(this)),n.error(function(t){return function(){return app.caughtError(),e()}}(this))},n.prototype.promptRun=function(e,n){var r;return r=function(r){return function(){var s;return s=n?n.attributes.task.taskRequest.pendingTask.cmdLineArgsList:r.commands,w.dialog.prompt({message:"

"+(n?"Rerun":"Run")+" Task

",input:v({id:r.get("id"),commands:s,defaultFileName:c.fileName(config.runningTaskLogPath)}),buttons:[t.extend(a.clone(w.dialog.buttons.YES),{text:"Run now"}),w.dialog.buttons.NO],beforeClose:function(){var n,a,s,i;if(r.data!==!1)return r.data.filename&&(a=r.data.filename.trim()),s=r.data.message,(a&&0===a.length||!a)&&"autoTail"===r.data.afterStart?(t(window.noFilenameError).removeClass("hide"),!1):(null!=a&&localStorage.setItem("taskRunRedirectFilename",a),localStorage.setItem("taskRunAfterStart",r.data.afterStart),r.data.id=r.get("id"),"browse-to-sandbox"!==(i=r.data.afterStart)&&"autoTail"!==i||(r.data.runId=T.v4()),n=function(){var t;return"autoTail"===r.data.afterStart?(t=new u({runId:r.data.runId,requestId:r.id,autoTailFilename:r.data.filename,taskPollTimestamp:+new Date,pollingType:"autoTail"}),t.startTaskPolling()):"browse-to-sandbox"===r.data.afterStart&&(t=new u({runId:r.data.runId,requestId:r.id,taskPollTimestamp:+new Date,pollingType:"browse-to-sandbox"}),t.startTaskPolling()),e(r.data)},r.run(r.data.commandLineInput,s,r.data.runId).done(n),!0)},afterOpen:function(e){var n;return n=localStorage.getItem("taskRunAfterStart"),t("#filename").val(localStorage.getItem("taskRunRedirectFilename")||c.fileName(config.runningTaskLogPath)),t("#autoTail").prop("checked","autoTail"===n),t("#browse-to-sandbox").prop("checked","browse-to-sandbox"===n||!n),t("#stay-on-page").prop("checked","stay-on-page"===n),t("#add-cmd-line-arg").on("click",{removeCmdLineArg:r.removeCmdLineArg},r.addCmdLineArg),t(".remove-button").click(r.removeCmdLineArg),t("#stay-on-page").on("click",function(){return t("#filename").prop("disabled",!0)}),t("#browse-to-sandbox").on("click",function(){return t("#filename").prop("disabled",!0)}),t("#autoTail").on("click",function(){return t("#filename").prop("disabled",!1)}),"autoTail"===n&&t("#filename").prop("disabled",!1),e.bind("vexOpen",function(){var e;return e=document.getElementsByClassName("vex")[0],e.scrollTop=e.scrollHeight})},callback:function(e){return e.commandLineInput?("string"==typeof e.commandLineInput&&(""!==e.commandLineInput?e.commandLineInput=[e.commandLineInput.trim()]:e.commandLineInput=[]),1===e.commandLineInput.length&&""===e.commandLineInput[0]&&(e.commandLineInput=[])):e.commandLineInput=[],r.data=e}})}}(this),n?r():this.getMostRecentlyRunTask(r)},n.prototype.addCmdLineArg=function(e){var n;return e.preventDefault(),n=t("#cmd-line-inputs"),n.append('
\n
\n \n
'), t(".remove-button").click(e.data.removeCmdLineArg)},n.prototype.removeCmdLineArg=function(e){return e.preventDefault(),t(e.currentTarget).parent().remove()},n.prototype.promptRemove=function(e){return w.dialog.confirm({message:y({id:this.get("id")}),input:'',callback:function(t){return function(n){if(n)return t.destroy(n.message).done(e)}}(this)})},n.prototype.promptBounce=function(e){return w.dialog.confirm({message:p({id:this.get("id"),config:config}),input:'',callback:function(n){return function(a){if(a)return a.incremental=t(".vex #incremental-bounce").is(":checked"),a.skipHealthchecks=t(".vex #skip-healthchecks").is(":checked"),a.duration=t(".vex #bounce-expiration").val(),!a.duration||a.duration&&n._validateDuration(a.duration,n.promptBounce,e)?n.bounce(a).done(e):void 0}}(this)})},n.prototype.promptExitCooldown=function(e){return w.dialog.confirm({message:h({id:this.get("id")}),callback:function(t){return function(n){if(n)return t.exitCooldown().done(e)}}(this)})},n.prototype.promptStepDeploy=function(e){var t,n,a;return a=this.get("pendingDeployState"),n=a.deployProgress.targetActiveInstances+a.deployProgress.deployInstanceCountPerStep,t=this.get("instances"),tAdvance Deploy",input:b({id:a.deployMarker.deployId,placeholder:n,maxInstances:this.get("instances")}),callback:function(t){return function(n){if(n)return t.stepDeploy(a.deployMarker.deployId,n.instances).done(e)}}(this)})},n.prototype.promptCancelDeploy=function(e){var t;return t=this.get("pendingDeployState"),w.dialog.confirm({message:d({id:t.deployMarker.deployId}),callback:function(n){return function(a){if(a)return n.cancelDeploy(t.deployMarker.deployId).done(e)}}(this)})},n}(s),e.exports=o}).call(t,n(1),n(7))},function(e,t,n){(function(t){var a,r,s,i=function(e,t){return function(){return e.apply(t,arguments)}},o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;a=n(67),r=n(72),s=function(e){function n(){return this.initialize=i(this.initialize,this),this.url=i(this.url,this),n.__super__.constructor.apply(this,arguments)}return o(n,e),n.prototype.model=r,n.prototype.url=function(){return config.apiRoot+"/racks"},n.prototype.initialize=function(e){},n.prototype.parse=function(e){return t.map(e,function(e){return function(e){return e}}(this))},n}(a),e.exports=s}).call(t,n(7))},function(e,t,n){var a,r,s=function(e,t){return function(){return e.apply(t,arguments)}},i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=n(73),a=function(e){function t(){return this.url=s(this.url,this),t.__super__.constructor.apply(this,arguments)}return i(t,e),t.prototype.type="rack",t.prototype.url=function(){return config.apiRoot+"/racks/rack/"+this.get("id")},t}(r),e.exports=a},function(e,t,n){(function(t){var a,r,s,i,o=function(e,t){return function(){return e.apply(t,arguments)}},l=function(e,t){function n(){this.constructor=e}for(var a in t)u.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},u={}.hasOwnProperty;a=n(68),s=n(74),i=n(17),r=function(e){function a(){return this.promptReactivate=o(this.promptReactivate,this),this.promptDecommission=o(this.promptDecommission,this),this.promptFreeze=o(this.promptFreeze,this),this.promptRemove=o(this.promptRemove,this),this.host=o(this.host,this),this.reactivate=o(this.reactivate,this),this.decommission=o(this.decommission,this),this.freeze=o(this.freeze,this),this.remove=o(this.remove,this),this.parse=o(this.parse,this),a.__super__.constructor.apply(this,arguments)}return l(a,e),a.prototype.removeTemplates={DEAD:n(178),MISSING_ON_STARTUP:n(178),STARTING_DECOMISSION:n(198),STARTING_DECOMMISSION:n(198),DECOMMISSIONING:n(198),DECOMISSIONING:n(198),DECOMMISSIONED:n(198),DECOMISSIONED:n(198),ACTIVE:n(199)},a.prototype.decommissionTemplate=n(199),a.prototype.freezeTemplate=n(200),a.prototype.reactivateTemplate=n(201),a.prototype.parse=function(e){var t,n,a,r;if(e instanceof Array){for(t={},t.timestamp=0,a=0,r=e.length;at.timestamp&&(t=n);e=t}return null!=e.firstSeenAt&&(null!=e.decomissioningAt?e.uptime=e.decomissioningAt-e.firstSeenAt:null!=e.deadAt?e.uptime=e.deadAt-e.firstSeenAt:e.uptime=s()-e.firstSeenAt),null!=e.currentState&&(e.state=e.currentState.state,e.user=e.currentState.user),e},a.prototype.remove=function(e){var n;return n={},e&&(n.message=e),t.ajax({url:this.url(),type:"DELETE",contentType:"application/json",data:JSON.stringify(n)})},a.prototype.freeze=function(e){var n;return n={},e&&(n.message=e),t.ajax({url:this.url()+"/freeze",type:"POST",contentType:"application/json",data:JSON.stringify(n)})},a.prototype.decommission=function(e){var n;return n={},e&&(n.message=e),t.ajax({url:this.url()+"/decommission",type:"POST",contentType:"application/json",data:JSON.stringify(n)})},a.prototype.reactivate=function(e){var n;return n={},e&&(n.message=e),t.ajax({url:this.url()+"/activate",type:"POST",contentType:"application/json",data:JSON.stringify(n)})},a.prototype.host=function(){return this.get("host")},a.prototype.promptRemove=function(e){var n;return n=this.get("state"),i.dialog.confirm({message:this.removeTemplates[n]({id:this.id,host:this.host,type:this.type}),input:'',buttons:[t.extend({},i.dialog.buttons.YES,{text:"Remove",className:"vex-dialog-button-primary vex-dialog-button-primary-remove"}),i.dialog.buttons.NO],callback:function(t){return function(n){if(n)return t.remove(n.message).done(e)}}(this)})},a.prototype.promptFreeze=function(e){var n;return n=this.get("state"),i.dialog.confirm({message:this.freezeTemplate({id:this.id,host:this.host,type:this.type}),input:'',buttons:[t.extend({},i.dialog.buttons.YES,{text:"Freeze",className:"vex-dialog-button-primary"}),i.dialog.buttons.NO],callback:function(t){return function(n){if(n)return t.freeze(n.message).done(e)}}(this)})},a.prototype.promptDecommission=function(e){var n;return n=this.get("state"),i.dialog.open({message:this.decommissionTemplate({id:this.id,host:this.host,type:this.type}),input:'',buttons:[t.extend({},i.dialog.buttons.YES,{text:"Decommission",className:"vex-dialog-button-primary"}),i.dialog.buttons.NO],callback:function(t){return function(n){if(n)return t.decommission(n.message).done(e)}}(this)})},a.prototype.promptReactivate=function(e){var n;return n=this.get("state"),i.dialog.confirm({message:this.reactivateTemplate({id:this.id,host:this.host,type:this.type}),input:'',buttons:[t.extend({},i.dialog.buttons.YES,{text:"Reactivate",className:"vex-dialog-button-primary"}),i.dialog.buttons.NO],callback:function(t){return function(n){if(n)return t.reactivate(n.message).done(e)}}(this)})},a}(a),e.exports=r}).call(t,n(1))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.host||(null!=t?t.host:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"host",hash:{},data:r}):s))+"\n"},3:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.id||(null!=t?t.id:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"id",hash:{},data:r}):s))+"\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{};return"

\n\tAre you sure you want to remove this "+e.escapeExpression((i=null!=(i=n.type||(null!=t?t.type:t))?i:n.helperMissing,"function"==typeof i?i.call(o,{name:"type",hash:{},data:r}):i))+"?\n

\n\n
\n"+(null!=(s=n["if"].call(o,null!=t?t.host:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?s:"")+"
\n"},useData:!0})},,,,,,,,,,,,,,,,,,,,function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.host||(null!=t?t.host:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"host",hash:{},data:r}):s))+"\n"},3:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.id||(null!=t?t.id:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"id",hash:{},data:r}):s))+"\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return"

\n\tAre you sure you want to remove this "+c((i=null!=(i=n.type||(null!=t?t.type:t))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+"?\n

\n\n
\n"+(null!=(s=n["if"].call(o,null!=t?t.host:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?s:"")+"
\n\n

\n\tRemoving a decommissioned "+c((i=null!=(i=n.type||(null!=t?t.type:t))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+" will cause that slave to become active again if the mesos-slave process is still running.\n

\n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.host||(null!=t?t.host:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"host",hash:{},data:r}):s))+"\n"},3:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.id||(null!=t?t.id:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"id",hash:{},data:r}):s))+"\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return"

\n\tAre you sure you want to to decommission this "+c((i=null!=(i=n.type||(null!=t?t.type:t))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+"?\n

\n
\n"+(null!=(s=n["if"].call(o,null!=t?t.host:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?s:"")+"
\n\n

\n\tDecommissioning a "+c((i=null!=(i=n.type||(null!=t?t.type:t))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+" causes all tasks currently running on it to be rescheduled and executed elsewhere, as new tasks will no longer consider the "+c((i=null!=(i=n.type||(null!=t?t.type:t))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+" with id "+c((i=null!=(i=n.id||(null!=t?t.id:t))?i:l,typeof i===u?i.call(o,{name:"id",hash:{},data:r}):i))+" a valid target for execution. This process may take time as replacement tasks must be considered healthy before old tasks are killed.\n

\n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.host||(null!=t?t.host:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"host",hash:{},data:r}):s))+"\n"},3:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.id||(null!=t?t.id:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"id",hash:{},data:r}):s))+"\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return"

\n\tAre you sure you want to to freeze this "+c((i=null!=(i=n.type||(null!=t?t.type:t))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+"?\n

\n
\n"+(null!=(s=n["if"].call(o,null!=t?t.host:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?s:"")+"
\n\n

\n\tFreezing a "+c((i=null!=(i=n.type||(null!=t?t.type:t))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+" will prevent new tasks from being launched. Previously running tasks will be unaffected.\n

\n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.host||(null!=t?t.host:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"host",hash:{},data:r}):s))+"\n"},3:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.id||(null!=t?t.id:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"id",hash:{},data:r}):s))+"\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return"

\n\tAre you sure you want to cancel decommission and reactivate this "+c((i=null!=(i=n.type||(null!=t?t.type:t))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+"??\n

\n\n
\n"+(null!=(s=n["if"].call(o,null!=t?t.host:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?s:"")+"
\n\n

\n\tReactivating a "+c((i=null!=(i=n.type||(null!=t?t.type:t))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+" will cancel the decommission without erasing the "+c((i=null!=(i=n.type||(null!=t?t.type:t))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+"'s history and move it back to the active state.\n

\n"},useData:!0})},function(e,t,n){(function(t,a){var r,s,i,o=function(e,t){return function(){return e.apply(t,arguments)}},l=function(e,t){function n(){this.constructor=e}for(var a in t)u.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},u={}.hasOwnProperty;s=n(203),i=n(204),r=function(e){function n(){return this.comparator=o(this.comparator,this),n.__super__.constructor.apply(this,arguments)}return l(n,e),n.prototype.model=i,n.prototype.getQueryParams=function(){return t.param(a.pick(this.params,a.identity))},n.prototype.url=function(){return this.params.requestId?config.apiRoot+"/history/request/"+this.params.requestId+"/tasks?"+this.getQueryParams():config.apiRoot+"/history/tasks?"+this.getQueryParams()},n.prototype.initialize=function(e,t){null==e&&(e=[]),this.params=t.params},n.prototype.comparator=function(e,t){return-(e.get("updatedAt")-t.get("updatedAt"))},n.prototype.parse=function(e){var t,n,a;for(t=0,n=e.length;t\n By default, tasks that are running for a request will be killed on pause.\n

\n \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{};return"

Are you sure you want to pause this request?

\n
"+e.escapeExpression((i=null!=(i=n.id||(null!=t?t.id:t))?i:n.helperMissing,"function"==typeof i?i.call(o,{name:"id",hash:{},data:r}):i))+"
\n"+(null!=(s=n["if"].call(o,null!=t?t.scheduled:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:"")+'
\n \n\tIf an expiration duration is specified, this action will be reverted afterwards. Accepts any english time duration. (Days, Hr, Min...)\n\t\n
\n'},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){return" checked"},3:function(e,t,n,a,r){return" hidden"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return"
"+c((i=null!=(i=n.id||(null!=t?t.id:t))?i:l,typeof i===u?i.call(o,{name:"id",hash:{},data:r}):i))+'
\n\n
\n\t\n
\n\n
\n\t\n
\n\nIf an expiration duration is specified, this action will be reverted afterwards. Accepts any english time duration. (Days, Hr, Min...)\n'},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){return" instances\n"},3:function(e,t,n,a,r){return" instance\n"},5:function(e,t,n,a,r){return" racks.\n"},7:function(e,t,n,a,r){return" rack.\n"},9:function(e,t,n,a,r){var s;return" either "+e.escapeExpression((s=null!=(s=n.lower||(null!=t?t.lower:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"lower",hash:{},data:r}):s))+" or\n"},11:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return'
\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return"

\n We cannot distribute "+c((i=null!=(i=n.instances||(null!=t?t.instances:t))?i:l,typeof i===u?i.call(o,{name:"instances",hash:{},data:r}):i))+" \n"+(null!=(s=n["if"].call(o,null!=t?t.notOneInstance:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?s:"")+" evenly across our "+c((i=null!=(i=n.racks||(null!=t?t.racks:t))?i:l,typeof i===u?i.call(o,{name:"racks",hash:{},data:r}):i))+" \n"+(null!=(s=n["if"].call(o,null!=t?t.notOneRack:t,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?s:"")+" This will result in increased load on "+c((i=null!=(i=n.mod||(null!=t?t.mod:t))?i:l,typeof i===u?i.call(o,{name:"mod",hash:{},data:r}):i))+" \n"+(null!=(s=n["if"].call(o,null!=t?t.modNotOne:t,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?s:"")+"

\n

\n We suggest scaling to \n"+(null!=(s=n["if"].call(o,null!=t?t.lower:t,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?s:"")+" "+c((i=null!=(i=n.higher||(null!=t?t.higher:t))?i:l,typeof i===u?i.call(o,{name:"higher",hash:{},data:r}):i))+' instances.\n How many instances would you like to scale to?\n

\n
\n'+(null!=(s=n["if"].call(o,null!=t?t.lower:t,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?s:"")+'
\n
\n
\n
\n
\n \n
\n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return"

Are you sure you want to unpause the request?

\n
"+e.escapeExpression((s=null!=(s=n.id||(null!=t?t.id:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"id",hash:{},data:r}):s))+"
\n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){return'
\n
\n \n
\n'},3:function(e,t,n,a,r){return'
\n
\n \n
\n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return"

Are you sure you want to immediately launch a task for this request?

\n
"+c((i=null!=(i=n.id||(null!=t?t.id:t))?i:l,typeof i===u?i.call(o,{name:"id",hash:{},data:r}):i))+'
\n\n

Additional command line input: (optional)

\n
\n'+(null!=(s=n.each.call(o,null!=t?t.commands:t,{name:"each",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?s:"")+'
\n\n

Message: (optional)

\n
\n \n
\n
\nAfter triggering the run:\n

\n \n \n \n

\n\n
\n \n
\n'},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return"

Are you sure you want to remove this request?

\n
"+e.escapeExpression((s=null!=(s=n.id||(null!=t?t.id:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"id",hash:{},data:r}):s))+"
\n

\n If not paused, removing this request will kill all active\n and scheduled tasks and tasks for it will not run again\n unless it is reposted to Singularity.\n

\n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=e.escapeExpression;return"

Are you sure you want to bounce this request?

\n
"+o((i=null!=(i=n.id||(null!=t?t.id:t))?i:n.helperMissing,"function"==typeof i?i.call(null!=t?t:{},{name:"id",hash:{},data:r}):i))+'
\n

\n\tBouncing a request will cause replacement tasks to be scheduled\n\t(and under normal conditions) executed immediately.\n

\n\n\n\n
\n\t\t\n
\nIf an expiration duration is specified, this bounce will be aborted if not finished. Accepts any english time duration. (Days, Hr, Min...)\n'},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return"

Are you sure you want to remove this request from cooldown?

\n
"+e.escapeExpression((s=null!=(s=n.id||(null!=t?t.id:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"id",hash:{},data:r}):s))+"
\n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return"
"+u((s=null!=(s=n.id||(null!=t?t.id:t))?s:o,typeof s===l?s.call(i,{name:"id",hash:{},data:r}):s))+'
\n

Update the pending deploy to include this many instances (Can be higher or lower than the current target number of instances)

\n
\n\t\n
'},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return"

Are you sure you want to cancel this deploy?

\n
"+e.escapeExpression((s=null!=(s=n.id||(null!=t?t.id:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"id",hash:{},data:r}):s))+"
"},useData:!0})},function(e,t,n){(function(t){var a,r,s,i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty,l=[].indexOf||function(e){for(var t=0,n=this.length;t0)for(Y=e.task.mesosTask.resources,a=0,c=Y.length;aT;m=k<=T?++o:--o)y.push(m);for(e.ports=y,s=!0,w=e.taskUpdates,u=0,d=w.length;u=0){s=!1;break}if(e.isStillRunning=s,null!=e.task.offer&&(e.slaveId=e.task.offer.slaveId.value,e.slave=new r({id:e.slaveId}),e.slave.fetch({async:!1,error:function(e){return function(){return app.caughtError()}}(this)}),x=e.slave.attributes.state,l.call(utils.DECOMMISION_STATES,x)>=0?e.decommissioning=!0:e.slave.attributes.state===!1&&(e.slaveMissing=!0)),e.isCleaning="TASK_CLEANING"===e.lastKnownState,e.requestId=e.task.taskId.requestId,e.shellCommandHistory)for(e.shellCommandHistory.sort(function(e){return function(e,t){return t.shellRequest.timestamp-e.shellRequest.timestamp}}(this)),S=e.shellCommandHistory,f=0,h=S.length;f0&&i(window.config.commonHostnameSuffixToOmit,e.host)&&(e.host=e.host.substring(0,e.host.length-window.config.commonHostnameSuffixToOmit.length)),e.rackId||(e.rackId=null!=(o=e.taskId)?o.sanitizedRackId:void 0),null!=e.mesosTask&&(e.cpus=null!=(l=null!=(u=t.find(e.mesosTask.resources,function(e){return"cpus"===e.name}))&&null!=(c=u.scalar)?c.value:void 0)?l:"",e.memoryMb=null!=(p=null!=(d=t.find(e.mesosTask.resources,function(e){return"mem"===e.name}))&&null!=(h=d.scalar)?h.value:void 0)?p:"",e.diskMb=null!=(f=null!=(r=t.find(e.mesosTask.resources,function(e){return"disk"===e.name}))&&null!=(s=r.scalar)?s.value:void 0)?f:""),null!=e.taskId?e.id=e.taskId.id:null!=e.pendingTask&&(e.id=e.pendingTask.pendingTaskId.requestId+"-"+e.pendingTask.pendingTaskId.nextRunAt+"-"+e.pendingTask.pendingTaskId.instanceNo),e},r.prototype.kill=function(e,t,n){var r;return null==t&&(t=!1),null==n&&(n=!1),r={override:t,waitForReplacementTask:n},e&&(r.message=e),a.ajax({url:this.url(),type:"DELETE",contentType:"application/json",data:JSON.stringify(r)})},r.prototype.runShellCommand=function(e,t){var n,r;return null==t&&(t=[]),r={user:app.getUsername()},n={name:e,options:t},a.ajax({url:this.url()+"/command?"+a.param(r),type:"POST",contentType:"application/json",data:JSON.stringify(n)})},r.prototype.promptRun=function(e){var t,a,r,s;return r=this.get("request"),a=r?r.id:this.get("pendingTask").pendingTaskId.requestId,t=n(70),s=new t({id:a}),s.promptRun(function(t){return function(){return e()}}(this))},r}(r),e.exports=s}).call(t,n(7),n(1))},function(e,t,n){(function(t,a){var r,s,i,o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;r=n(67),s=n(221),i=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return o(n,e),n.prototype.url=function(){return config.apiRoot+"/sandbox/"+this.taskId+"/browse"},n.prototype.model=s,n.prototype.initialize=function(e,t){this.taskId=t.taskId,this.path=t.path},n.prototype.fetch=function(e){var a;return a=null!==this.path?{path:this.path}:{},n.__super__.fetch.call(this,t.extend(e||{},{data:a}))},n.prototype.parse=function(e){var n,a,r,s,i,o,l,u;for(l=e.files,this.currentDirectory=e.currentDirectory,s=0,o=l.length;st.get("name")?1:e.get("name")= 4.0.0"],main:function(e,t,n,a,r){var s;return'

Launching

\n
    \n
  1. Waiting for task to launch
  2. \n
  3. Waiting for '+e.escapeExpression((s=null!=(s=n.autoTailFilename||(null!=t?t.autoTailFilename:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"autoTailFilename",hash:{},data:r}):s))+" to exist
  4. \n
\n
\n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s,i,o=null!=t?t:{};return" "+(null!=(s=n["if"].call(o,null!=t?t.autoTailFilename:t,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.program(4,r,0),data:r}))?s:"")+" did not exist after "+e.escapeExpression((i=null!=(i=n.timeout||(null!=t?t.timeout:t))?i:n.helperMissing,"function"==typeof i?i.call(o,{name:"timeout",hash:{},data:r}):i))+" minute(s).\n"},2:function(e,t,n,a,r){var s;return""+e.escapeExpression((s=null!=(s=n.autoTailFilename||(null!=t?t.autoTailFilename:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"autoTailFilename",hash:{},data:r}):s))+""},4:function(e,t,n,a,r){return"Task"},6:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return" The task has entered a terminal state and "+u((s=null!=(s=n.autoTailFilename||(null!=t?t.autoTailFilename:t))?s:o,typeof s===l?s.call(i,{name:"autoTailFilename",hash:{},data:r}):s))+" does not exist, and therefore never will. See the task page for more details.\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing;return"

Failure

\n"+(null!=(s=(n.ifEqual||t&&t.ifEqual||o).call(i,null!=t?t.problem:t,"TIMEOUT",{name:"ifEqual",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=(n.ifEqual||t&&t.ifEqual||o).call(i,null!=t?t.problem:t,"FILE_WONT_EXIST",{name:"ifEqual",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?s:"")},useData:!0})},,,,function(e,t,n){var a;(function(r){!function(s){"use strict";function i(){var e=s.crypto||s.msCrypto;if(!d&&e&&e.getRandomValues)try{var t=new Uint8Array(16);m=d=function(){return e.getRandomValues(t),t},d()}catch(n){}if(!d){var a=new Array(16);h=d=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a},"undefined"!=typeof console&&console.warn&&console.warn("[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()")}}function o(){try{var e=n(228).randomBytes;f=d=e&&function(){return e(16)},d()}catch(t){}}function l(e,t,n){var a=t&&n||0,r=0;for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){r<16&&(t[a+r++]=g[e])});r<16;)t[a+r++]=0;return t}function u(e,t){var n=t||0,a=v;return a[e[n++]]+a[e[n++]]+a[e[n++]]+a[e[n++]]+"-"+a[e[n++]]+a[e[n++]]+"-"+a[e[n++]]+a[e[n++]]+"-"+a[e[n++]]+a[e[n++]]+"-"+a[e[n++]]+a[e[n++]]+a[e[n++]]+a[e[n++]]+a[e[n++]]+a[e[n++]]}function c(e,t,n){var a=t&&n||0,r=t||[];e=e||{};var s=null!=e.clockseq?e.clockseq:T,i=null!=e.msecs?e.msecs:(new Date).getTime(),o=null!=e.nsecs?e.nsecs:M+1,l=i-w+(o-M)/1e4;if(l<0&&null==e.clockseq&&(s=s+1&16383),(l<0||i>w)&&null==e.nsecs&&(o=0),o>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");w=i,M=o,T=s,i+=122192928e5;var c=(1e4*(268435455&i)+o)%4294967296;r[a++]=c>>>24&255,r[a++]=c>>>16&255,r[a++]=c>>>8&255,r[a++]=255&c;var p=i/4294967296*1e4&268435455;r[a++]=p>>>8&255,r[a++]=255&p,r[a++]=p>>>24&15|16,r[a++]=p>>>16&255,r[a++]=s>>>8|128,r[a++]=255&s;for(var d=e.node||k,h=0;h<6;h++)r[a+h]=d[h];return t?t:u(r)}function p(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?new y(16):null,e=null),e=e||{};var r=e.random||(e.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var s=0;s<16;s++)t[a+s]=r[s];return t||u(r)}var d,h,f,m;s?i():o();for(var y="function"==typeof r?r:Array,v=[],g={},_=0;_<256;_++)v[_]=(_+256).toString(16).substr(1),g[v[_]]=_;var b=d(),k=[1|b[0],b[1],b[2],b[3],b[4],b[5]],T=16383&(b[6]<<8|b[7]),w=0,M=0,x=p;x.v1=c,x.v4=p,x.parse=l,x.unparse=u,x.BufferClass=y,x._rng=d,x._mathRNG=h,x._nodeRNG=f,x._whatwgRNG=m,"undefined"!=typeof e&&e.exports?e.exports=x:(a=function(){return x}.call(t,n,t,e),!(void 0!==a&&(e.exports=a)))}("undefined"!=typeof window?window:null)}).call(t,n(35).Buffer)},function(e,t,n){(function(e){function a(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function r(e,t){for(var n in e)t(e[n],n)}var s=n(229);t.createHash=n(231),t.createHmac=n(243),t.randomBytes=function(t,n){if(!n||!n.call)return new e(s(t));try{n.call(this,void 0,new e(s(t)))}catch(a){n(a)}},t.getHashes=function(){return["sha1","sha256","sha512","md5","rmd160"]};var i=n(244)(t);t.pbkdf2=i.pbkdf2,t.pbkdf2Sync=i.pbkdf2Sync,r(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman"],function(e){t[e]=function(){a("sorry,",e,"is not implemented yet")}})}).call(t,n(35).Buffer)},function(e,t,n){(function(t,a){!function(){var r=("undefined"==typeof window?t:window)||{};_crypto=r.crypto||r.msCrypto||n(230),e.exports=function(e){if(_crypto.getRandomValues){var t=new a(e);return _crypto.getRandomValues(t),t}if(_crypto.randomBytes)return _crypto.randomBytes(e);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(t,function(){return this}(),n(35).Buffer)},function(e,t){},function(e,t,n){(function(t){function a(e){return function(){var n=[],a={update:function(e,a){return t.isBuffer(e)||(e=new t(e,a)),n.push(e),this},digest:function(a){var r=t.concat(n),s=e(r);return n=null,a?s.toString(a):s}};return a}}var r=n(232),s=a(n(240)),i=a(n(242));e.exports=function(e){return"md5"===e?new s:"rmd160"===e?new i:r(e)}}).call(t,n(35).Buffer)},function(e,t,n){var t=e.exports=function(e){var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n},a=n(35).Buffer,r=n(233)(a);t.sha1=n(234)(a,r),t.sha256=n(238)(a,r),t.sha512=n(239)(a,r)},function(e,t){e.exports=function(e){function t(t,n){this._block=new e(t),this._finalSize=n,this._blockSize=t,this._len=0,this._s=0}return t.prototype.init=function(){this._s=0,this._len=0},t.prototype.update=function(t,n){"string"==typeof t&&(n=n||"utf8",t=new e(t,n));for(var a=this._len+=t.length,r=this._s=this._s||0,s=0,i=this._block;r=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(t,this._blockSize-4);var n=this._update(this._block)||this._hash();return e?n.toString(e):n},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t}},function(e,t,n){var a=n(235).inherits;e.exports=function(e,t){function n(){return f.length?f.pop().init():this instanceof n?(this._w=h,t.call(this,64,56),this._h=null,void this.init()):new n}function r(e,t,n,a){return e<20?t&n|~t&a:e<40?t^n^a:e<60?t&n|t&a|n&a:t^n^a}function s(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function i(e,t){return e+t|0}function o(e,t){return e<>>32-t}var l=0,u=4,c=8,p=12,d=16,h=new("undefined"==typeof Int32Array?Array:Int32Array)(80),f=[];return a(n,t),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,t.prototype.init.call(this),this},n.prototype._POOL=f,n.prototype._update=function(e){var t,n,a,l,u,c,p,d,h,f;t=c=this._a,n=p=this._b,a=d=this._c,l=h=this._d,u=f=this._e;for(var m=this._w,y=0;y<80;y++){var v=m[y]=y<16?e.readInt32BE(4*y):o(m[y-3]^m[y-8]^m[y-14]^m[y-16],1),g=i(i(o(t,5),r(y,n,a,l)),i(i(u,v),s(y)));u=l,l=a,a=o(n,30),n=t,t=g}this._a=i(t,c),this._b=i(n,p),this._c=i(a,d),this._d=i(l,h),this._e=i(u,f)},n.prototype._hash=function(){f.length<100&&f.push(this);var t=new e(20);return t.writeInt32BE(0|this._a,l),t.writeInt32BE(0|this._b,u),t.writeInt32BE(0|this._c,c),t.writeInt32BE(0|this._d,p),t.writeInt32BE(0|this._e,d),t},n}},function(e,t,n){(function(e,a){function r(e,n){var a={seen:[],stylize:i};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),m(n)?a.showHidden=n:n&&t._extend(a,n),k(a.showHidden)&&(a.showHidden=!1),k(a.depth)&&(a.depth=2),k(a.colors)&&(a.colors=!1),k(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=s),l(a,e,a.depth)}function s(e,t){var n=r.styles[t];return n?"["+r.colors[n][0]+"m"+e+"["+r.colors[n][1]+"m":e}function i(e,t){return e}function o(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function l(e,n,a){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(a,e);return _(r)||(r=l(e,r,a)),r}var s=u(e,n);if(s)return s;var i=Object.keys(n),m=o(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(n)),x(n)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return c(n);if(0===i.length){if(S(n)){var y=n.name?": "+n.name:"";return e.stylize("[Function"+y+"]","special")}if(T(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(M(n))return e.stylize(Date.prototype.toString.call(n),"date");if(x(n))return c(n)}var v="",g=!1,b=["{","}"];if(f(n)&&(g=!0,b=["[","]"]),S(n)){var k=n.name?": "+n.name:"";v=" [Function"+k+"]"}if(T(n)&&(v=" "+RegExp.prototype.toString.call(n)),M(n)&&(v=" "+Date.prototype.toUTCString.call(n)),x(n)&&(v=" "+c(n)),0===i.length&&(!g||0==n.length))return b[0]+v+b[1];if(a<0)return T(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var w;return w=g?p(e,n,a,m,i):i.map(function(t){return d(e,n,a,m,t,g)}),e.seen.pop(),h(w,v,b)}function u(e,t){if(k(t))return e.stylize("undefined","undefined");if(_(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,a,r){for(var s=[],i=0,o=t.length;i-1&&(o=s?o.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+o.split("\n").map(function(e){return" "+e}).join("\n"))):o=e.stylize("[Circular]","special")),k(i)){if(s&&r.match(/^\d+$/))return o;i=JSON.stringify(""+r),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+o}function h(e,t,n){var a=0,r=e.reduce(function(e,t){return a++,t.indexOf("\n")>=0&&a++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function f(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return null==e}function g(e){return"number"==typeof e}function _(e){return"string"==typeof e}function b(e){return"symbol"==typeof e}function k(e){return void 0===e}function T(e){return w(e)&&"[object RegExp]"===D(e)}function w(e){return"object"==typeof e&&null!==e}function M(e){return w(e)&&"[object Date]"===D(e)}function x(e){return w(e)&&("[object Error]"===D(e)||e instanceof Error)}function S(e){return"function"==typeof e}function L(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function D(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}function I(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var R=/%[sdj%]/g;t.format=function(e){if(!_(e)){for(var t=[],n=0;n=s)return e;switch(e){case"%s":return String(a[n++]);case"%d":return Number(a[n++]);case"%j":try{return JSON.stringify(a[n++])}catch(t){return"[Circular]"}default:return e}}),o=a[n];n>>t|e<<32-t}function s(e,t){return e>>>t}function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function l(e){return r(e,2)^r(e,13)^r(e,22)}function u(e){return r(e,6)^r(e,11)^r(e,25)}function c(e){return r(e,7)^r(e,18)^s(e,3)}function p(e){return r(e,17)^r(e,19)^s(e,10)}var d=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],h=new Array(64);return a(n,t),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},n.prototype._update=function(e){var t,n,a,r,s,h,f,m,y,v,g=this._w;t=0|this._a,n=0|this._b,a=0|this._c,r=0|this._d,s=0|this._e,h=0|this._f,f=0|this._g,m=0|this._h;for(var _=0;_<64;_++){var b=g[_]=_<16?e.readInt32BE(4*_):p(g[_-2])+g[_-7]+c(g[_-15])+g[_-16];y=m+u(s)+i(s,h,f)+d[_]+b,v=l(t)+o(t,n,a),m=f,f=h,h=s,s=r+y,r=a,a=n,n=t,t=y+v}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=r+this._d|0,this._e=s+this._e|0,this._f=h+this._f|0,this._g=f+this._g|0,this._h=m+this._h|0},n.prototype._hash=function(){var t=new e(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},n}},function(e,t,n){var a=n(235).inherits;e.exports=function(e,t){function n(){this.init(),this._w=l,t.call(this,128,112)}function r(e,t,n){return e>>>n|t<<32-n}function s(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}var o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=new Array(160);return a(n,t),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},n.prototype._update=function(e){var t,n,a,l,u,c,p,d,h,f,m,y,v,g,_,b,k=this._w;t=0|this._a,n=0|this._b,a=0|this._c,l=0|this._d,u=0|this._e,c=0|this._f,p=0|this._g,d=0|this._h,h=0|this._al,f=0|this._bl,m=0|this._cl,y=0|this._dl,v=0|this._el,g=0|this._fl,_=0|this._gl,b=0|this._hl;for(var T=0;T<80;T++){var w,M,x=2*T;if(T<16)w=k[x]=e.readInt32BE(4*x),M=k[x+1]=e.readInt32BE(4*x+4);else{var S=k[x-30],L=k[x-30+1],D=r(S,L,1)^r(S,L,8)^S>>>7,E=r(L,S,1)^r(L,S,8)^r(L,S,7);S=k[x-4],L=k[x-4+1];var I=r(S,L,19)^r(L,S,29)^S>>>6,O=r(L,S,19)^r(S,L,29)^r(L,S,6),R=k[x-14],P=k[x-14+1],Y=k[x-32],C=k[x-32+1];M=E+P,w=D+R+(M>>>0>>0?1:0),M+=O,w=w+I+(M>>>0>>0?1:0),M+=C,w=w+Y+(M>>>0>>0?1:0),k[x]=w,k[x+1]=M}var q=i(t,n,a),N=i(h,f,m),A=r(t,h,28)^r(h,t,2)^r(h,t,7),F=r(h,t,28)^r(t,h,2)^r(t,h,7),j=r(u,v,14)^r(u,v,18)^r(v,u,9),z=r(v,u,14)^r(v,u,18)^r(u,v,9),H=o[x],B=o[x+1],U=s(u,c,p),W=s(v,g,_),G=b+z,V=d+j+(G>>>0>>0?1:0);G+=W,V=V+U+(G>>>0>>0?1:0),G+=B,V=V+H+(G>>>0>>0?1:0),G+=M,V=V+w+(G>>>0>>0?1:0);var K=F+N,$=A+q+(K>>>0>>0?1:0);d=p,b=_,p=c,_=g,c=u,g=v,v=y+G|0,u=l+V+(v>>>0>>0?1:0)|0,l=a,y=m,a=n,m=f,n=t,f=h,h=G+K|0,t=V+$+(h>>>0>>0?1:0)|0}this._al=this._al+h|0,this._bl=this._bl+f|0,this._cl=this._cl+m|0,this._dl=this._dl+y|0,this._el=this._el+v|0,this._fl=this._fl+g|0,this._gl=this._gl+_|0,this._hl=this._hl+b|0,this._a=this._a+t+(this._al>>>0>>0?1:0)|0,this._b=this._b+n+(this._bl>>>0>>0?1:0)|0,this._c=this._c+a+(this._cl>>>0>>0?1:0)|0,this._d=this._d+l+(this._dl>>>0>>0?1:0)|0,this._e=this._e+u+(this._el>>>0>>0?1:0)|0, this._f=this._f+c+(this._fl>>>0>>0?1:0)|0,this._g=this._g+p+(this._gl>>>0<_>>>0?1:0)|0,this._h=this._h+d+(this._hl>>>0>>0?1:0)|0},n.prototype._hash=function(){function t(e,t,a){n.writeInt32BE(e,a),n.writeInt32BE(t,a+4)}var n=new e(64);return t(this._a,this._al,0),t(this._b,this._bl,8),t(this._c,this._cl,16),t(this._d,this._dl,24),t(this._e,this._el,32),t(this._f,this._fl,40),t(this._g,this._gl,48),t(this._h,this._hl,56),n},n}},function(e,t,n){function a(e,t){e[t>>5]|=128<>>9<<4)+14]=t;for(var n=1732584193,a=-271733879,r=-1732584194,c=271733878,p=0;p>16)+(t>>16)+(n>>16);return a<<16|65535&n}function c(e,t){return e<>>32-t}var p=n(241);e.exports=function(e){return p.hash(e,a,16)}},function(e,t,n){(function(t){function n(e,n){if(e.length%s!==0){var a=e.length+(s-e.length%s);e=t.concat([e,i],a)}for(var r=[],o=n?e.readInt32BE:e.readInt32LE,l=0;l>>32-t}function l(e){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof e&&(e=new t(e,"utf8"));var a=m(e),r=8*e.length,s=8*e.length;a[r>>>5]|=128<<24-r%32,a[(r+64>>>9<<4)+14]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);for(var i=0;i>>24)|4278255360&(o<<24|o>>>8)}var l=y(n);return new t(l)}e.exports=l;/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ var u=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],d=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],h=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0],m=function(e){for(var t=[],n=0,a=0;n>>5]|=e[n]<<24-a%32;return t},y=function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},v=function(e,t,l){for(var m=0;m<16;m++){var y=l+m,v=t[y];t[y]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8)}var g,_,b,k,T,w,M,x,S,L;w=g=e[0],M=_=e[1],x=b=e[2],S=k=e[3],L=T=e[4];for(var D,m=0;m<80;m+=1)D=g+t[l+u[m]]|0,D+=m<16?n(_,b,k)+h[0]:m<32?a(_,b,k)+h[1]:m<48?r(_,b,k)+h[2]:m<64?s(_,b,k)+h[3]:i(_,b,k)+h[4],D=0|D,D=o(D,p[m]),D=D+T|0,g=T,T=k,k=o(b,10),b=_,_=D,D=w+t[l+c[m]]|0,D+=m<16?i(M,x,S)+f[0]:m<32?s(M,x,S)+f[1]:m<48?r(M,x,S)+f[2]:m<64?a(M,x,S)+f[3]:n(M,x,S)+f[4],D=0|D,D=o(D,d[m]),D=D+L|0,w=L,L=S,S=o(x,10),x=M,M=D;D=e[1]+b+S|0,e[1]=e[2]+k+L|0,e[2]=e[3]+T+w|0,e[3]=e[4]+g+M|0,e[4]=e[0]+_+x|0,e[0]=D}}).call(t,n(35).Buffer)},function(e,t,n){(function(t){function a(e,n){if(!(this instanceof a))return new a(e,n);this._opad=l,this._alg=e;var i="sha512"===e?128:64;n=this._key=t.isBuffer(n)?n:new t(n),n.length>i?n=r(e).update(n).digest():n.length(Math.pow(2,32)-1)*o))throw new TypeError("keylen exceeds maximum length");f.copy(u,0,0,o);for(var m=1;m0,requestsSubFilter:"",hideNewRequestButton:config.hideNewRequestButton,onDashboardPage:!0,collectionSynced:this.collection.synced}},this.$el.html(this.templateBase(e,a)),this.renderTable(),r.__super__.render.apply(this,arguments).afterRender()},r.prototype.renderTable=function(){var e,t,n,a;return this.sortCollection(),a=this.currentRequests,e=this.templateRequestsTable({starredRequests:a,requests:a}),t=this.$(".table-staged table"),n=t.find("tbody"),n.html(e)},r.prototype.sortCollection=function(){var e;return e=t.pluck(this.collection.getStarredOnly(),"attributes"),null!=this.sortAttribute?(e=t.sortBy(e,function(e){return function(t){var n,a,r,s,i;for(a=e.sortAttribute.split("."),i=t,r=0,s=a.length;r"),this.renderTable()},r.prototype.unstar=function(e){var t,n,r;if(n=a(e.currentTarget),t=n.parents("tr"),r=t.data("request-id"),this.collection.toggleStar(r),t.remove(),0===this.$("tbody tr").length)return this.render()},r.prototype.getRequest=function(e){var t;if(t=this.collection.models.filter(function(t){return t.id===e}))return t[0]},r.prototype.viewJson=function(e){var t,n;return t=a(e.target).parents("tr").data("request-id"),n=this.getRequest(t),n?utils.viewJSON(n):void Messenger().error({message:"

Could not find request "+t+". Perhaps someone removed it?

"})},r.prototype.removeRequest=function(e){var t,n,r;return t=a(e.target).parents("tr"),n=t.data("request-id"),r=this.getRequest(n),r?r.promptRemove(function(e){return function(){return t.remove()}}(this)):void Messenger().error({message:"

Could not find request "+n+". Perhaps someone removed it first?

"})},r.prototype.unpauseRequest=function(e){var t,n,r;return t=a(e.target).parents("tr"),n=t.data("request-id"),r=this.getRequest(n),r?r.promptUnpause(function(e){return function(){return t.remove(),e.trigger("refreshrequest")}}(this)):void Messenger().error({message:"

Could not find request "+n+". Perhaps someone removed it?

"})},r}(s),e.exports=r}).call(t,n(7),n(1))},function(e,t,n){(function(t){var a,r,s,i=function(e,t){return function(){return e.apply(t,arguments)}},o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;r=n(248),a=n(249),n(250)(t,document),s=function(e){function n(e){null==e&&(e={}),this.routeLink=i(this.routeLink,this),null!=e.subviews&&(this.subviews=e.subviews),n.__super__.constructor.call(this,e)}return o(n,e),n.prototype.subviews={},n.prototype.events=function(){return{"click a":"routeLink"}},n.prototype.remove=function(){var e,t,a,r,s;for(n.__super__.remove.apply(this,arguments),a=this.subviews,r=[],e=0,t=a.length;e',next:''}}}),t("table.paginated").css("display","table")},n}(Backbone.View),e.exports=s}).call(t,n(1))},,,function(e,t,n){e.exports=n(251)["default"]},function(e,t,n){(function(e){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(t){function n(e){return e=o["default"].normalize(e),this.each(function(){o["default"].helper(this,e,a)})}var a=arguments.length<=1||void 0===arguments[1]?null:arguments[1];t.fn=t.fn||{};try{a=a||window&&window.document||e&&e.document}catch(r){}if(!a)throw new Error("Cannot find document implementation. If you are in a non-browser environment like Node.js, pass the document implementation as the second argument to linkify/jquery");"function"!=typeof t.fn.linkify&&(t.fn.linkify=n,t(a).ready(function(){t("[data-linkify]").each(function(){var e=t(this),n=e.data(),a=n.linkify,r=n.linkifyNlbr,s={linkAttributes:n.linkifyAttributes,defaultProtocol:n.linkifyDefaultProtocol,events:n.linkifyEvents,format:n.linkifyFormat,formatHref:n.linkifyFormatHref,newLine:n.linkifyNewline,nl2br:!!r&&0!==r&&"false"!==r,tagName:n.linkifyTagname,target:n.linkifyTarget,linkClass:n.linkifyLinkclass,validate:n.linkifyValidate,ignoreTags:n.linkifyIgnoreTags},i="this"===a?e:e.find(a);i.linkify(s)})}))}t.__esModule=!0,t["default"]=r;var s=n(1),i=(a(s),n(252)),o=a(i);try{!n(260)&&(window.linkifyElement=o["default"])}catch(l){}}).call(t,function(){return this}())},function(e,t,n){(function(e){"use strict";function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function r(e,t,n){var a=n[n.length-1];e.replaceChild(a,t);for(var r=n.length-2;r>=0;r--)e.insertBefore(n[r],a),a=n[r]}function s(e,t,n){for(var a=[],r=0;r1?t-1:0),a=1;a=0&&c++,l++,r++;if(!(c<0)){r-=c,l-=c;var p=u.emit();a.push(new p(e.substr(r-l,l)))}}return a},q=g;t.State=r.CharacterState,t.TOKENS=a.text,t.run=C,t.start=q},function(e,t,n){"use strict";function a(){return function(e){e&&(this.v=e)}}function r(e){var t=e?{v:e}:{};return(0,i.inherits)(o,a(),t)}function s(e){return e instanceof l||e instanceof T}t.__esModule=!0,t.multi=t.text=void 0;var i=n(254),o=a();o.prototype={toString:function(){return this.v+""}};var l=r(),u=r("@"),c=r(":"),p=r("."),d=r(),h=r(),f=r("\n"),m=r(),y=r("+"),v=r("#"),g=r(),_=r("?"),b=r("/"),k=r(),T=r(),w=r(),M=r("{"),x=r("["),S=r("("),L=r("}"),D=r("]"),E=r(")"),I={Base:o,DOMAIN:l,AT:u,COLON:c,DOT:p,PUNCTUATION:d,LOCALHOST:h,NL:f,NUM:m,PLUS:y,POUND:v,QUERY:_,PROTOCOL:g,SLASH:b,SYM:k,TLD:T,WS:w,OPENBRACE:M,OPENBRACKET:x,OPENPAREN:S,CLOSEBRACE:L,CLOSEBRACKET:D,CLOSEPAREN:E},O=a();O.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t=s)return[];for(;r=0&&c++,n++,l++;if(c<0)for(var p=n-l;p0&&(a.push(new E(r)),r=[]),n-=c,l-=c;var d=u.emit();a.push(new d(e.slice(n-l,n)))}}return r.length>0&&a.push(new E(r)),a},ce=a.multi,pe=O;t.State=r.TokenState,t.TOKENS=ce,t.run=ue,t.start=pe},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return"

"+e.escapeExpression((s=null!=(s=n.deployUser||(null!=t?t.deployUser:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"deployUser",hash:{},data:r}):s))+"

\n"},3:function(e,t,n,a,r){return"

Singularity

\n"},5:function(e,t,n,a,r){var s;return(null!=(s=n["if"].call(null!=t?t:{},null!=t?t.deployUser:t,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?s:"")+'
\n
\n \n'+(null!=(s=e.invokePartial(a.requestsBody,t,{name:"requestsBody",data:r,indent:" ",helpers:n,partials:a,decorators:e.decorators}))?s:"")+"
\n
\n"},6:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression,p=e.lambda;return' \n
\n
\n \n'+(null!=(s=n["with"].call(o,null!=t?t.pausedRequests:t,{name:"with",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?s:"")+"
\n
\n"},7:function(e,t,n,a,r){var s;return null!=(s=e.invokePartial(a.requestsPausedBody,t,{name:"requestsPausedBody",data:r,indent:" ",helpers:n,partials:a,decorators:e.decorators}))?s:""},9:function(e,t,n,a,r){return'
\n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{};return"
\n"+(null!=(s=n["if"].call(i,null!=t?t.deployUser:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?s:"")+"
\n\n"+(null!=(s=n["if"].call(i,null!=t?t.collectionSynced:t,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(9,r,0),data:r}))?s:"")},usePartial:!0,useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){return' \n \n \n \n \n \n \n \n \n \n \n \n \n'},3:function(e,t,n,a,r){var s,i,o=e.lambda,l=e.escapeExpression,u=null!=t?t:{},c=n.helperMissing;return' \n \n \n \n \n \n \n \n \n"},5:function(e,t,n,a,r){return" \n
RequestTypeStatusDeploy userInstances
\n \n \n \n \n \n '+l(o(null!=(s=null!=t?t.request:t)?s.id:s,t))+"\n \n \n "+l((n.humanizeText||t&&t.humanizeText||c).call(u,null!=(s=null!=t?t.request:t)?s.requestType:s,{name:"humanizeText",hash:{},data:r}))+'\n \n "+l((n.humanizeText||t&&t.humanizeText||c).call(u,null!=t?t.state:t,{name:"humanizeText",hash:{},data:r}))+'\n \n '+l((n.usernameFromEmail||t&&t.usernameFromEmail||c).call(u,null!=(s=null!=(s=null!=t?t.requestDeployState:t)?s.activeDeploy:s)?s.user:s,{name:"usernameFromEmail",hash:{},data:r}))+'\n \n '+l(o(null!=(s=null!=t?t.request:t)?s.instances:s,t))+"\n
\n"},7:function(e,t,n,a,r){return'

No starred requests

\n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{};return(null!=(s=n["if"].call(i,null!=t?t.haveStarredRequests:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n.each.call(i,null!=t?t.starredRequests:t,{name:"each",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(i,null!=t?t.haveStarredRequests:t,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?s:"")},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.haveRequests:t,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?s:""},2:function(e,t,n,a,r){var s,i=null!=t?t:{};return' \n \n \n \n \n \n'+(null!=(s=n.unless.call(i,null!=t?t.onDashboardPage:t,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?s:"")+"\n"+(null!=(s=(n.ifInSubFilter||t&&t.ifInSubFilter||n.helperMissing).call(i,"SCHEDULED",null!=t?t.requestsSubFilter:t,{name:"ifInSubFilter",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?s:"")+'\n \n \n \n \n'},3:function(e,t,n,a,r){return' \n'},5:function(e,t,n,a,r){return' \n'},7:function(e,t,n,a,r,s,i){var o,l,u=e.lambda,c=e.escapeExpression,p=null!=t?t:{},d=n.helperMissing;return' \n \n"+(null!=(o=n.unless.call(p,null!=i[1]?i[1].onDashboardPage:i[1],{name:"unless",hash:{},fn:e.program(8,r,0,s,i),inverse:e.noop,data:r}))?o:"")+"\n"+(null!=(o=(n.ifInSubFilter||t&&t.ifInSubFilter||d).call(p,"SCHEDULED",null!=i[1]?i[1].requestsSubFilter:i[1],{name:"ifInSubFilter",hash:{},fn:e.program(10,r,0,s,i),inverse:e.noop,data:r}))?o:"")+'\n \n \n"},8:function(e,t,n,a,r){var s;return' \n"},10:function(e,t,n,a,r){var s;return' \n"},11:function(e,t,n,a,r){var s;return" "+e.escapeExpression(e.lambda(null!=(s=null!=t?t.request:t)?s.quartzSchedule:s,t))+"\n"},13:function(e,t,n,a,r){var s;return null!=(s=(n.ifEqual||t&&t.ifEqual||n.helperMissing).call(null!=t?t:{},null!=(s=null!=t?t.request:t)?s.scheduleType:s,"quartz",{name:"ifEqual",hash:{},fn:e.program(14,r,0),inverse:e.program(16,r,0),data:r}))?s:""},14:function(e,t,n,a,r){var s;return" "+e.escapeExpression(e.lambda(null!=(s=null!=t?t.request:t)?s.schedule:s,t))+"\n"},16:function(e,t,n,a,r){var s,i=e.lambda,o=e.escapeExpression;return" "+o(i(null!=(s=null!=t?t.request:t)?s.schedule:s,t))+" "+o(i(null!=(s=null!=t?t.request:t)?s.scheduleType:s,t))+"\n"},18:function(e,t,n,a,r){var s,i,o=e.escapeExpression;return' \n \n \n'},20:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.haveRequests:t,{name:"if",hash:{},fn:e.program(21,r,0),inverse:e.program(23,r,0),data:r}))?s:""},21:function(e,t,n,a,r){return" \n
\n Name\n \n Type\n
\n \n Schedule \n \n
\n \n
\n'+(null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=t?t.request:t)?s.quartzSchedule:s,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.program(13,r,0),data:r}))?s:"")+"
\n"},23:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.collectionSynced:t,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.program(26,r,0),data:r}))?s:""},24:function(e,t,n,a,r){return'

No paused requests

\n'},26:function(e,t,n,a,r){return'
\n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r,s,i){var o,l=null!=t?t:{};return(null!=(o=n.unless.call(l,null!=t?t.rowsOnly:t,{name:"unless",hash:{},fn:e.program(1,r,0,s,i),inverse:e.noop,data:r}))?o:"")+(null!=(o=n.each.call(l,null!=t?t.requests:t,{name:"each",hash:{},fn:e.program(7,r,0,s,i),inverse:e.noop,data:r}))?o:"")+(null!=(o=n.unless.call(l,null!=t?t.rowsOnly:t,{name:"unless",hash:{},fn:e.program(20,r,0,s,i),inverse:e.noop,data:r}))?o:"")},useData:!0,useDepths:!0})},function(e,t,n){var a,r,s,i,o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;a=n(65),r=n(265),i=n(266),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return o(t,e),t.prototype.initialize=function(){return app.showPageLoader(),this.title("Status"),this.models.state=new r,this.models.state.fetch().done(function(e){return function(){return e.setView(new i({model:e.models.state})),app.showView(e.view)}}(this))},t.prototype.refresh=function(){return this.models.state.fetch()},t}(a),e.exports=s},function(e,t,n){var a,r,s=function(e,t){function n(){this.constructor=e}for(var a in t)i.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;a=n(68),r=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return s(t,e),t.prototype.url=function(){return config.apiRoot+"/state"},t.prototype.requestDetail=function(){var e,t;return t=this.get("activeRequests")+this.get("pausedRequests")+this.get("cooldownRequests")+this.get("pendingRequests")+this.get("cleaningRequests"),e=[{type:"active",attribute:"activeRequests",label:"active",count:this.get("activeRequests"),percent:this.get("activeRequests")/t*100,link:"/requests/active"},{type:"paused",attribute:"pausedRequests",label:"paused",count:this.get("pausedRequests"),percent:this.get("pausedRequests")/t*100,link:"/requests/paused"},{type:"cooldown",attribute:"cooldownRequests",label:"cooling down",count:this.get("cooldownRequests"),percent:this.get("cooldownRequests")/t*100,link:"/requests/cooldown"},{type:"pending",attribute:"pendingRequests",label:"pending",count:this.get("pendingRequests"),percent:this.attributes.pendingRequests/t*100,link:"/requests/pending"},{type:"cleaning",attribute:"cleaningRequests",label:"cleaning",count:this.get("cleaningRequests"),percent:this.get("cleaningRequests")/t*100,link:"/requests/cleaning"}],{requests:e,total:t}},t.prototype.taskDetail=function(){var e,t;return t=this.get("activeTasks")+this.get("lateTasks")+this.get("scheduledTasks")+this.get("cleaningTasks")+this.get("lbCleanupTasks"),e=[{type:"active",attribute:"activeTasks",label:"active",count:this.get("activeTasks"),percent:this.get("activeTasks")/t*100,link:"/tasks"},{type:"scheduled",attribute:"scheduledTasks",label:"scheduled",count:this.get("scheduledTasks"),percent:this.get("scheduledTasks")/t*100,link:"/tasks/scheduled"},{type:"overdue",attribute:"lateTasks",label:"overdue",count:this.get("lateTasks"),percent:this.get("lateTasks")/t*100,link:"/tasks/scheduled"},{type:"cleaning",attribute:"cleaningTasks",label:"cleaning",count:this.get("cleaningTasks"),percent:this.get("cleaningTasks")/t*100,link:"/tasks/cleaning"},{type:"lbCleanup",attribute:"lbCleanupTasks",label:"load balancer cleanup",count:this.get("lbCleanupTasks"),percent:this.get("lbCleanupTasks")/t*100,link:"/tasks/lbcleanup"}],{tasks:e,total:t}},t}(a),e.exports=r},function(e,t,n){(function(t){var a,r,s=function(e,t){return function(){return e.apply(t,arguments)}},i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=n(247),a=function(e){function a(){return this.render=s(this.render,this),a.__super__.constructor.apply(this,arguments)}return i(a,e),a.prototype.template=n(267),a.prototype.initialize=function(){return this.listenTo(this.model,"sync",this.render)},a.prototype.captureLastState=function(){return this.lastState=t.clone(this.model.toJSON())},a.prototype.render=function(){var e,n,r,s,i,o,l,u,c,p,d,h,f,m,y,v,g,_,b;for(d=!1,u=!1,b=this.model.attributes.hostStates,p=0,f=b.length;p_?"inc":"dec")+"rease",difference:""+(y>_?"+":"-")+Math.abs(y-_)});l=function(e,t){return setTimeout(function(){return e.find("a").removeClass(t).find("changeDifference").remove().end().find(".changeDifference").fadeOut(1500)},2500)};for(r in i)o=i[r],s="changed-direction-"+o.direction,e=this.$el.find('[data-state-attribute="'+r+'"]').not('[data-type="column"]'),n=e.closest(".list-group-item"),n.find("a").addClass(s).append(""+o.difference+""),e.html(this.model.attributes[r]),l(n,s)}return this.$(".chart .chart__data-point[title]").tooltip({placement:"right"}),this.captureLastState(),a.__super__.render.apply(this,arguments).afterRender()},a}(r),e.exports=a}).call(t,n(7))},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression,p=e.lambda;return'
\n'+(null!=(s=n.unless.call(o,null!=t?t.hasLeader:t,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n.unless.call(o,null!=t?t.isLeaderConnected:t,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?s:"")+'
\n
\n

Requests

\n
\n
\n
\n \n
\n
\n
\n \n
    \n"+(null!=(s=(n.ifGT||t&&t.ifGT||l).call(o,null!=(s=null!=t?t.state:t)?s.overProvisionedRequests:s,0,{name:"ifGT",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=(n.ifGT||t&&t.ifGT||l).call(o,null!=(s=null!=t?t.state:t)?s.underProvisionedRequests:s,0,{name:"ifGT",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?s:"")+'
\n
\n
\n
\n
\n
\n
\n
\n
\n

Tasks

\n
\n
\n
\n \n
\n
\n
\n\n\n \n"+(null!=(s=(n.ifGT||t&&t.ifGT||l).call(o,null!=(s=null!=t?t.state:t)?s.maxTaskLag:s,0,{name:"ifGT",hash:{},fn:e.program(28,r,0),inverse:e.noop,data:r}))?s:"")+'
\n
\n
\n
\n
\n
\n
\n
\n \n \n
\n
\n

Deploys

\n
\n \n
\n
\n
\n
\n
\n

Singularity scheduler instances

\n
\n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(o,null!=(s=null!=t?t.state:t)?s.hostStates:s,{name:"each",hash:{},fn:e.program(38,r,0),inverse:e.noop,data:r}))?s:"")+" \n
HostnameDriver statusConnected
\n
\n
\n"},2:function(e,t,n,a,r){return' \n'},4:function(e,t,n,a,r){return' \n'},6:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return" "+(null!=(s=n["if"].call(o,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?s:"")+'\n \n "+(null!=(s=n["if"].call(o,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?s:"")+"\n"},7:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return''},9:function(e,t,n,a,r){return""},11:function(e,t,n,a,r){var s;return'
  • \n'+(null!=(s=n["if"].call(null!=t?t:{},null!=t?t.link:t,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.program(15,r,0),data:r}))?s:"")+"
  • \n"},12:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return" \n "+c((i=null!=(i=n.count||(null!=t?t.count:t))?i:l,typeof i===u?i.call(o,{name:"count",hash:{},data:r}):i))+" "+c((i=null!=(i=n.label||(null!=t?t.label:t))?i:l,typeof i===u?i.call(o,{name:"label",hash:{},data:r}):i))+" "+(null!=(s=(n.ifGT||t&&t.ifGT||l).call(o,null!=t?t.percent:t,0,{name:"ifGT",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?s:"")+"\n \n"},13:function(e,t,n,a,r){return"("+e.escapeExpression((n.fixedDecimal||t&&t.fixedDecimal||n.helperMissing).call(null!=t?t:{},null!=t?t.percent:t,{name:"fixedDecimal",hash:{place:"0"},data:r}))+"%)"},15:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return' '+u((s=null!=(s=n.count||(null!=t?t.count:t))?s:o,typeof s===l?s.call(i,{name:"count",hash:{},data:r}):s))+" "+u((s=null!=(s=n.label||(null!=t?t.label:t))?s:o,typeof s===l?s.call(i,{name:"label",hash:{},data:r}):s))+"\n"},17:function(e,t,n,a,r){var s;return"
  • \n "+e.escapeExpression(e.lambda(null!=(s=null!=t?t.state:t)?s.overProvisionedRequests:s,t))+"\n Over Provisioned\n
  • \n"},19:function(e,t,n,a,r){var s;return"
  • \n \n "+e.escapeExpression(e.lambda(null!=(s=null!=t?t.state:t)?s.underProvisionedRequests:s,t))+"\n Under Provisioned\n \n
  • \n"},21:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return" "+(null!=(s=n["if"].call(o,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?s:"")+"\n \n "+(null!=(s=n["if"].call(o,null!=t?t.link:t,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?s:"")+"\n"},23:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return'
  • \n \n "+c((i=null!=(i=n.count||(null!=t?t.count:t))?i:l,typeof i===u?i.call(o,{name:"count",hash:{},data:r}):i))+" "+c((i=null!=(i=n.label||(null!=t?t.label:t))?i:l,typeof i===u?i.call(o,{name:"label",hash:{},data:r}):i))+" "+(null!=(s=(n.ifGT||t&&t.ifGT||l).call(o,null!=t?t.percent:t,0,{name:"ifGT",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?s:"")+"\n \n
  • \n"},24:function(e,t,n,a,r){return"inactive-link"},26:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return'href="'+u((s=null!=(s=n.appRoot||(null!=t?t.appRoot:t))?s:o,typeof s===l?s.call(i,{name:"appRoot",hash:{},data:r}):s))+u((s=null!=(s=n.link||(null!=t?t.link:t))?s:o,typeof s===l?s.call(i,{name:"link",hash:{},data:r}):s))+'"'},28:function(e,t,n,a,r){var s;return"
      \n
    • \n Max Task Lag:\n \n "+e.escapeExpression((n.timestampDuration||t&&t.timestampDuration||n.helperMissing).call(null!=t?t:{},null!=(s=null!=t?t.state:t)?s.maxTaskLag:s,{name:"timestampDuration",hash:{},data:r}))+"\n \n
    • \n
    \n"},30:function(e,t,n,a,r){return"color-warning"},32:function(e,t,n,a,r){return"class='color-warning'"},34:function(e,t,n,a,r){return"text-muted"},36:function(e,t,n,a,r){var s;return'
  • \n '+e.escapeExpression((n.timestampDuration||t&&t.timestampDuration||n.helperMissing).call(null!=t?t:{},null!=(s=null!=t?t.state:t)?s.oldestDeploy:s,{name:"timestampDuration",hash:{},data:r}))+"\n since last deploy\n
  • \n"},38:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return" \n "+c((i=null!=(i=n.hostname||(null!=t?t.hostname:t))?i:l,typeof i===u?i.call(o,{name:"hostname",hash:{},data:r}):i))+"\n "+c((n.humanizeText||t&&t.humanizeText||l).call(o,null!=t?t.driverStatus:t,{name:"humanizeText",hash:{},data:r}))+"\n \n \n"+(null!=(s=(n.ifEqual||t&&t.ifEqual||l).call(o,null!=t?t.driverStatus:t,"DRIVER_RUNNING",{name:"ifEqual",hash:{},fn:e.program(41,r,0),inverse:e.noop,data:r}))?s:"")+' \n \n '+c((n.timestampDuration||t&&t.timestampDuration||l).call(o,null!=t?t.uptime:t,{name:"timestampDuration",hash:{},data:r}))+'\n \n \n'+(null!=(s=n["if"].call(o,null!=t?t.millisSinceLastOffer:t,{name:"if",hash:{},fn:e.program(46,r,0),inverse:e.program(48,r,0),data:r}))?s:"")+" \n \n"},39:function(e,t,n,a,r){return"color-success"},41:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.mesosConnected:t,{name:"if",hash:{},fn:e.program(42,r,0),inverse:e.program(44,r,0),data:r}))?s:""},42:function(e,t,n,a,r){return' \n'},44:function(e,t,n,a,r){return' \n'},46:function(e,t,n,a,r){return" "+e.escapeExpression((n.timestampDuration||t&&t.timestampDuration||n.helperMissing).call(null!=t?t:{},null!=t?t.millisSinceLastOffer:t,{name:"timestampDuration",hash:{},data:r}))+"\n"},48:function(e,t,n,a,r){return" —\n"},50:function(e,t,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.synced:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(50,r,0),data:r}))?s:""},useData:!0})},function(e,t,n){var a,r,s,i,o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;a=n(65),r=n(71),i=n(269),s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return o(t,e),t.prototype.initialize=function(){return this.collections.racks=new r([]),this.setView(new i({racks:this.collections.racks})),this.collections.racks.fetch(),app.showView(this.view)},t}(a),e.exports=s},function(e,t,n){(function(t){var a,r,s=function(e,t){function n(){this.constructor=e}for(var a in t)i.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;a=n(270),r=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return s(n,e),n.prototype.handleChangeType=function(e){return e&&e.preventDefault(),this.requestType=t(e.currentTarget).data("type"),this.changeType(),this.renderFormElements()},n.prototype.saveRequest=function(){var e;return e=this.request.save(),e.done(function(e){return function(t){return e.lockdown=!1,e.alert("Your Request "+t.id+" has been created"),Backbone.history.navigate("/request/"+t.id,{trigger:!0})}}(this)),e.error(function(e){return function(t){return e.postSave(),app.caughtError(),e.alert("There was a problem saving your request: "+t.responseText,!1)}}(this))},n}(a),e.exports=r}).call(t,n(1))},function(e,t,n){(function(t,a){var r,s,i,o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;r=n(271),s=n(70),i=function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return o(r,e),r.prototype.template=n(273),r.prototype.taggables=function(){var e,n,a,r;return r=(null!=(n=this.model)&&null!=(a=n.get("request"))?a.requestType:void 0)||this.requestType,e=t.pluck(this.racks.toJSON(),"id"),[{name:"owners",selector:"#owners",options:{tags:[],containerCssClass:"select-owners hide-select2-spinner",dropdownCssClass:"hidden",selectOnBlur:!0}},{name:"rackAffinity",selector:"#rackAffinity-"+r,options:{tags:e,selectOnBlur:!0}}]},r.prototype.events=function(){return t.extend(r.__super__.events.apply(this,arguments),{"click #type .btn":"handleChangeType","change #schedule-type":"handleScheduleTypeChange"})},r.prototype.initialize=function(e){return this.requestId=e.requestId,this.racks=e.racks,r.__super__.initialize.apply(this,arguments)},r.prototype.renderFormElements=function(){var e,t,n,r,s;for(s=this.taggables(),e=0,n=s.length;e0&&(i.slavePlacement=c),"SERVICE"!==p&&"WORKER"!==p||(i.daemon=!0,n=parseInt(this.$("#instances-"+p).val()),n&&(i.instances=n),d=parseInt(this.$("#waitAtLeast-"+p).val()),d&&(i.waitAtLeastMillisAfterTaskFinishesForReschedule=d),i.rackSensitive=this.$("#rack-sensitive-"+p).is(":checked"),i.hideEvenNumberAcrossRacksHint=this.$("#hide-distribute-across-racks-hint-"+p).is(":checked"),i.rackAffinity=this.getSelect2Val("#rackAffinity-"+p)),"SCHEDULED"!==p&&"ON_DEMAND"!==p&&"RUN_ONCE"!==p||(a=parseInt(this.$("#killOldNRL-"+p).val()),a&&(i.killOldNonLongRunningTasksAfterMillis=a)),"ON_DEMAND"!==p&&"RUN_ONCE"!==p||(i.daemon=!1),"SCHEDULED"===p&&(l=this.$("#schedule").val(),u=this.$("#schedule-type").val(),o=parseInt(this.$("#retries-on-failure").val()),t=parseInt(this.$("#scheduled-expected-runtime").val()),l&&(i[u]=l),"quartzSchedule"===u&&(i.schedule=""),o&&(i.numRetriesOnFailure=o),t&&(i.scheduledExpectedRuntimeMillis=t)),"SERVICE"===p&&(i.loadBalanced=this.$("#load-balanced").is(":checked")),this.request=new s(i),this.request.raw=!0,this.request.url=config.apiRoot+"/requests",this.request.isNew=function(){return!0},this.requestObject=i,this.lockdown=!0,this.$('button[type="submit"]').attr("disabled","disabled"),this.saveRequest()},r.prototype.afterRender=function(){return this.renderFormElements()},r}(r),e.exports=i}).call(t,n(7),n(1))},function(e,t,n){(function(t,a){var r,s,i,o=function(e,t){return function(){return e.apply(t,arguments)}},l=function(e,t){function n(){this.constructor=e}for(var a in t)u.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},u={}.hasOwnProperty;s=n(247),i=n(272),r=function(e){function n(){return this.getSelect2Val=o(this.getSelect2Val,this),this.setSelect2Val=o(this.setSelect2Val,this),this.multiList=o(this.multiList,this),this.multiMap=o(this.multiMap,this),this.valOrNothing=o(this.valOrNothing,this),n.__super__.constructor.apply(this,arguments)}return l(n,e),n.prototype.events=function(){return t.extend(n.__super__.events.apply(this,arguments),{"change input":"checkForm",'keyup input[type="text"]':"checkForm",'blur input[type="text"]':"checkForm","submit form":"submit","click #reset-button":"render"})},n.prototype.initialize=function(){return this.checkForm=t.debounce(this.checkForm,100)},n.prototype.render=function(e){var t;return e&&e.preventDefault(),this.$el.html(this.template({config:config,model:null!=(t=this.model)?t.toJSON():void 0})),this.checkForm(),this.afterRender()},n.prototype.afterRender=function(){},n.prototype.checkForm=function(){var e,t,n,r,s,i,o,l;if(!this.lockdown){for(this.checkMultiInputs(),l=!0,o=this.$(".required"),s=0,i=o.length;s"+e+"

    ")},n.prototype.checkMultiInputs=function(){var e,n,r,s,i,o,l,u,c,p,d,h,f,m,y;for(m=this.$el.find(".multi-input"),y=[],l=0,d=m.length;l'),o.attr("class",i.attr("class")),o.attr("placeholder",i.attr("placeholder")),y.push(r.parent().append(o))):y.push(void 0)}return y},n.prototype.valOrNothing=function(e,t){var n,a;if(n=null!=t?t.find(e):this.$(e),n.is(":visible"))return"checkbox"===n.attr("type")?n.is(":checked"):(a=n.val(),a?a:n.parents(".required").length?"":void 0)},n.prototype.base64Encode=function(e){if(null!=e)return btoa(e)},n.prototype.multiMap=function(e){var n,r,s,i,o,l;if(r=this.$(e),r.is(":visible")){for(o={},s=0,i=r.length;s2&&(l[1]=l.slice(1,l.length)),o[l[0]]=l[1]);return t.isEmpty(o)?void 0:o}},n.prototype.multiList=function(e){var n,r,s,i,o,l;if(r=this.$(e),r.is(":visible")){for(o=[],s=0,i=r.length;s'+o(l(null!=(s=null!=t?t.model:t)?s.id:s,t))+"\n"},3:function(e,t,n,a,r){return" New Request\n"},5:function(e,t,n,a,r){return"required"},7:function(e,t,n,a,r){return' \n \n'},9:function(e,t,n,a,r){return'

    \n'},11:function(e,t,n,a,r){var s,i=null!=t?t:{};return'
    \n \n
    \n'},12:function(e,t,n,a,r){return' class="subtle"'},14:function(e,t,n,a,r){return'disabled="disabled"'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{};return'
    \n\n
    \n

    \n'+(null!=(s=n["if"].call(i,null!=(s=null!=t?t.model:t)?s.id:s,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?s:"")+'

    \n \n
    \n'+(null!=(s=n.unless.call(i,null!=(s=null!=t?t.model:t)?s.id:s,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?s:"")+'
    \n
    \n \n \n
    \n
    \n \n
    \n \n \n \n \n \n
    \n
    \n\n'+(null!=(s=n["if"].call(i,null!=(s=null!=t?t.model:t)?s.id:s,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?s:"")+'\n
    \n \n \n
    \n\n \n\n \n\n \n\n \n\n \n\n
    \n \n \n \n \n
    \n \n\n
    \n
    \n'},useData:!0})},function(e,t,n){(function(t){var a,r,s,i,o,l=function(e,t){function n(){this.constructor=e}for(var a in t)u.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},u={}.hasOwnProperty;a=n(65),r=n(71),s=n(70),o=n(275),i=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return l(n,e),n.prototype.initialize=function(e){return this.requestId=e.requestId,this.models.request=new s({id:this.requestId}),this.models.request.raw=!0,this.collections.racks=new r([]),this.setView(new o({requestId:this.requestId,model:this.models.request,racks:this.collections.racks})),t.when(this.models.request.fetch(),this.collections.racks.fetch()).then(function(e){return function(){return e.view.renderEditForm()}}(this)),app.showView(this.view)},n}(a),e.exports=i}).call(t,n(1))},function(e,t,n){(function(t,a){var r,s,i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=n(270),s=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return i(n,e),n.prototype.initialize=function(){return n.__super__.initialize.apply(this,arguments),app.$page.hide()},n.prototype.handleScheduleTypeChange=function(e){var a;return n.__super__.handleScheduleTypeChange.apply(this,arguments),a=t(e.currentTarget).val(),this.$("#schedule").val(this.model.get("request")[a])},n.prototype.renderEditForm=function(){var e,t,n,a,r,s,i;for(r=this.model.toJSON(),this.requestType=r.request.requestType,this.render(),this.changeType(),n=this.taggables(),e=0,t=n.length;e"+t.id+" has been updated"),Backbone.history.navigate("/request/"+t.id,{trigger:!0})}}(this)),e.error(function(e){return function(t){return e.postSave(),app.caughtError(),e.alert("There was a problem saving your request: "+t.responseText,!1)}}(this))},n}(r),e.exports=s}).call(t,n(1),n(7))},function(e,t,n){var a,r,s,i,o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;a=n(65),s=n(277),i=n(70),r=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return o(t,e),t.prototype.initialize=function(e){var t;return t=e.requestId,app.showPageLoader(),this.title("New Deploy"),this.models.request=new i({id:t}),this.models.request.fetch().done(function(e){return function(){return e.setView(new s({model:e.models.request})),app.showView(e.view)}}(this))},t}(a),e.exports=r},function(e,t,n){(function(t,a){var r,s,i,o,l=function(e,t){function n(){this.constructor=e}for(var a in t)u.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},u={}.hasOwnProperty;s=n(271),r=n(278),o=n(74),i=function(e){function s(){return s.__super__.constructor.apply(this,arguments)}return l(s,e),s.prototype.template=n(279),s.prototype.artifactTemplates={embedded:n(280),external:n(281),s3:n(282)},s.prototype.portMapTemplate=n(283),s.prototype.volumeTemplate=n(284),s.prototype.events=function(){return t.extend(s.__super__.events.apply(this,arguments),{"change #executor-type":"changeExecutor","change #container-type":"changeContainer","click #artifact-button-row button":"addArtifact","click .remove-button":"removeArtifact","click #docker-port-button-row button":"addPortMap","click .remove-port-button":"removePortMap", "click #docker-volume-button-row button":"addVolume","click .remove-volume-button":"removeVolume"})},s.prototype.changeExecutor=function(e){var t;return e.preventDefault(),t=e.currentTarget.options[e.currentTarget.selectedIndex].value,"default"===t?(a(".custom-executor").addClass("hide"),a(".default-executor").removeClass("hide")):(a(".custom-executor").removeClass("hide"),a(".default-executor").addClass("hide"))},s.prototype.changeContainer=function(e){var t;return e.preventDefault(),t=e.currentTarget.options[e.currentTarget.selectedIndex].value,"docker"===t?a(".container-info").removeClass("hide"):a(".container-info").addClass("hide")},s.prototype.addArtifact=function(e){var t,n;return e.preventDefault(),n=a(e.currentTarget).data("artifact-type"),t=this.$("#custom-artifacts"),t.append(this.artifactTemplates[n]({timestamp:+o()}))},s.prototype.removeArtifact=function(e){return e.preventDefault(),a(e.currentTarget).parent().remove()},s.prototype.addPortMap=function(e){var t;return e.preventDefault(),t=this.$("#docker-port-mappings"),t.append(this.portMapTemplate({timestamp:+o()}))},s.prototype.removePortMap=function(e){return e.preventDefault(),a(e.currentTarget).parent().remove()},s.prototype.addVolume=function(e){var t;return e.preventDefault(),t=this.$("#docker-volumes"),t.append(this.volumeTemplate({timestamp:+o()}))},s.prototype.removeVolume=function(e){return e.preventDefault(),a(e.currentTarget).parent().remove()},s.prototype.parseIntList=function(e){if(e)return t.map(e,function(e){return parseInt(e)})},s.prototype.submit=function(e){var t,n,s,i,o,l,u,c,p,d,h,f,m,y,v,g,_,b,k,T,w;if(e.preventDefault(),!this.$('button[type="submit"]').attr("disabled")){if(this.$("[data-alert-location='form']").remove(),h={},h.requestId=this.model.id,h.id=this.$("#id").val(),m=this.$("#executor-type").val(),c=this.$("#command").val(),"default"===m)h.uris=this.multiList(".artifact-uri"),h.arguments=this.multiList(".cmd-line-arg"),h.command=c;else if(h.customExecutorCmd=this.valOrNothing("#custom-executor-command"),h.executorData={},h.executorData.cmd=c,h.executorData.extraCmdLineArgs=this.multiList(".extra-arg"),h.executorData.user=this.valOrNothing("#user"),h.executorData.sigKillProcessesAfterMillis=parseInt(this.valOrNothing("#kill-after-millis"))||void 0,h.executorData.successfulExitCodes=this.parseIntList(this.multiList(".successful-exit-code")),h.executorData.maxTaskThreads=this.valOrNothing("#max-task-threads"),h.executorData.loggingTag=this.valOrNothing("#logging-tag"),h.executorData.loggingExtraFields=this.multiMap(".extra-field"),h.executorData.preserveTaskSandboxAfterFinish=this.valOrNothing("#preserve-sandbox"),h.executorData.skipLogrotateAndCompress=this.valOrNothing("#skip-lr-compress"),h.executorData.loggingS3Bucket=this.valOrNothing("#logging-s3-bucket"),h.executorData.maxOpenFiles=this.valOrNothing("#max-open-files"),h.executorData.runningSentinel=this.valOrNothing("#running-sentinel"),n=a(".artifact"),n.length)for(y=0,_=n.length;y<_;y++)t=n[y],t=a(t),T=t.data("type"),"embedded"===T?(h.executorData.embeddedArtifacts||(h.executorData.embeddedArtifacts=[]),h.executorData.embeddedArtifacts.push({name:this.valOrNothing(".name",t),filename:this.valOrNothing(".filename",t),md5sum:this.valOrNothing(".md5",t),content:this.base64Encode(this.valOrNothing(".content",t))})):"external"===T?(h.executorData.externalArtifacts||(h.executorData.externalArtifacts=[]),h.executorData.externalArtifacts.push({name:this.valOrNothing(".name",t),filename:this.valOrNothing(".filename",t),md5sum:this.valOrNothing(".md5",t),url:this.valOrNothing(".url",t),filesize:parseInt(this.valOrNothing(".file-size",t))||void 0})):"s3"===T&&(h.executorData.s3Artifacts||(h.executorData.s3Artifacts=[]),h.executorData.s3Artifacts.push({name:this.valOrNothing(".name",t),filename:this.valOrNothing(".filename",t),md5sum:this.valOrNothing(".md5",t),s3Bucket:this.valOrNothing(".bucket",t),s3ObjectKey:this.valOrNothing(".object-key",t),filesize:parseInt(this.valOrNothing(".file-size",t))||void 0}));if(p=this.$("#container-type").val(),"docker"===p){if(h.containerInfo={},h.containerInfo.type="DOCKER",h.containerInfo.docker={},h.containerInfo.docker.image=this.$("#docker").val(),h.containerInfo.docker.network=this.$("#dockernetwork").val(),h.containerInfo.docker.parameters=this.multiMap(".docker-paramter"),h.containerInfo.docker.privileged=this.valOrNothing("#privileged"),h.containerInfo.docker.forcePullImage=this.valOrNothing("#force-pull"),i=a(".docker-port"),i.length)for(v=0,b=i.length;v\n

    Deploy Health

    \n
    \n'+(null!=(s=(n.ifEqual||t&&t.ifEqual||n.helperMissing).call(i,null!=(s=null!=t?t.model:t)?s.type:s,"SERVICE",{name:"ifEqual",hash:{},fn:e.program(2,r,0),inverse:e.program(4,r,0),data:r}))?s:"")+"
    \n
    \n\n"+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=t?t.model:t)?s.request:s)?s.loadBalanced:s,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?s:"")},2:function(e,t,n,a,r){return'

    Healthcheck

    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n'},4:function(e,t,n,a,r){return'
    \n \n \n
    \n'},6:function(e,t,n,a,r){var s;return'
    \n

    Load Balancer

    \n
    \n
    \n \n \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n'},7:function(e,t,n,a,r){return"required"},9:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=t?t.model:t)?s.paused:s,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?s:""},10:function(e,t,n,a,r){return'
    \n
    \n \n
    \n
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=e.escapeExpression,u=e.lambda;return'

    \n New deploy for '+l(u(null!=(s=null!=t?t.model:t)?s.id:s,t))+'\n

    \n\n
    \n
    \n
    \n \n \n
    \n\n
    \n
    \n
    \n

    Executor Info

    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n\n
    \n
    \n

    Default Executor Settings

    \n\n \n
    \n \n
    \n \n \n
    \n \n
    \n
    \n
    \n\n
    \n
    \n

    Custom Executor Settings

    \n\n
    \n \n \n
    \n\n
    \n \n
    \n \n
    \n
    \n\n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n\n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n\n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n\n
    \n \n \n
    \n
    \n\n
    \n

    Custom executor artifacts

    \n\n
    \n\n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n

    Container Info

    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n\n
    \n
    \n

    Docker Settings

    \n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n\n
    \n \n
    \n \n
    \n
    \n\n
    \n\n
    \n
    \n \n
    \n
    \n\n
    \n\n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n\n
    \n

    Resources

    \n
    \n
    \n
    \n \n \n
    \n
    \n \n \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n\n
    \n

    Variables

    \n
    \n \n
    \n \n
    \n
    \n
    \n \n'+(null!=(s=n["if"].call(o,null!=(s=null!=t?t.model:t)?s.daemon:s,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(o,null!=(s=null!=t?t.model:t)?s.daemon:s,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?s:"")+'\n
    \n \n \n \n \n
    \n
    \n\n
    \n\n
    \n
    \n'},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return'
    \n
    Embedded artifact
    \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return'
    \n
    External artifact
    \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return'
    \n
    S3 artifact
    \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return'
    \n
    Docker Port Mapping
    \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n'},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return'
    \n
    Docker Volume
    \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n\n
    \n \n \n
    \n
    \n'},useData:!0})},function(e,t,n){(function(t){var a,r,s,i,o,l,u,c,p,d,h,f,m,y,v,g,_=function(e,t){return function(){return e.apply(t,arguments)}},b=function(e,t){function n(){this.constructor=e}for(var a in t)k.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},k={}.hasOwnProperty;a=n(65),i=n(70),u=n(286),g=n(287),v=n(288),f=n(290),s=n(202),l=n(291),h=n(292),m=n(66),p=n(293),r=n(295),y=n(297),d=n(298),o=n(300),c=function(e){function a(){return this.addRequestInfo=_(this.addRequestInfo,this),a.__super__.constructor.apply(this,arguments)}return b(a,e),a.prototype.templates={requestHistoryMsg:n(302),stats:n(303),activeTasks:n(304),scheduledTasks:n(305),taskHistory:n(306),deployHistory:n(307),requestHistory:n(308)},a.prototype.initialize=function(e){return this.requestId=e.requestId,this.title(this.requestId),this.models.request=new i({id:this.requestId}),this.models.activeDeployStats=new u({requestId:this.requestId,deployId:void 0}),this.collections.taskCleanups=new v,this.collections.activeTasks=new f([],{requestId:this.requestId,state:"active"}),this.collections.scheduledTasks=new g([],{requestId:this.requestId,state:"scheduled"}),this.collections.requestHistory=new h([],{requestId:this.requestId}),this.collections.taskHistory=new s([],{params:{requestId:this.requestId}}),this.collections.deployHistory=new l([],{requestId:this.requestId}),this.collections.requests=new m([],{}),this.subviews.header=new d({model:this.models.request,taskCleanups:this.collections.taskCleanups,activeTasks:this.collections.activeTasks}),this.subviews.actionExpirations=new o({model:this.models.request}),this.subviews.requestHistoryMsg=new y({collection:this.collections.requestHistory,template:this.templates.requestHistoryMsg,extraRenderData:function(e){return function(t){return{request:e.models.request.toJSON()}}}(this)}),this.subviews.stats=new y({model:this.models.activeDeployStats,template:this.templates.stats}),this.subviews.activeTasks=new y({collection:this.collections.activeTasks,template:this.templates.activeTasks}),this.subviews.scheduledTasks=new y({collection:this.collections.scheduledTasks,template:this.templates.scheduledTasks,extraRenderData:function(e){return function(t){return{request:e.models.request.toJSON()}}}(this)}),this.subviews.taskHistory=new r({collection:this.collections.taskHistory,template:this.templates.taskHistory,extraRenderData:function(e){return function(t){return{request:e.models.request.toJSON()}}}(this)}),this.subviews.deployHistory=new r({collection:this.collections.deployHistory,template:this.templates.deployHistory}),this.subviews.requestHistory=new r({collection:this.collections.requestHistory,template:this.templates.requestHistory}),this.models.request.on("sync",function(e){return function(){var t;if(t=e.models.request.get("activeDeploy"),null!=(null!=t?t.id:void 0)&&!e.models.activeDeployStats.deployId)return e.models.activeDeployStats.deployId=t.id,e.models.activeDeployStats.fetch()}}(this)),this.setView(new p(t.extend({requestId:this.requestId,subviews:this.subviews},{model:this.models.request,collection:this.collections.requests}))),this.refresh(),app.showView(this.view)},a.prototype.addRequestInfo=function(){var e,t,n,a,r;for(n=this.collections.taskHistory.models,a=[],e=0,t=n.length;et.taskId.instanceNo})},t.prototype.getTasksForDeploy=function(e){return this.filter(function(t){return function(t){return t.get("taskId").deployId===e}}(this))},t}(r),e.exports=s},function(e,t,n){var a,r,s=function(e,t){return function(){return e.apply(t,arguments)}},i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=n(203),a=function(e){function t(){return this.initialize=s(this.initialize,this),t.__super__.constructor.apply(this,arguments)}return i(t,e),t.prototype.url=function(){return config.apiRoot+"/history/request/"+this.requestId+"/deploys"},t.prototype.comparator=void 0,t.prototype.initialize=function(e,t){this.requestId=t.requestId},t.prototype.parse=function(e){var t,n,a;for(n=0,a=e.length;n= 4.0.0"],main:function(e,t,n,a,r){return'\n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n'},useData:!0})},function(e,t,n){(function(t,a){var r,s,i=function(e,t){return function(){return e.apply(t,arguments)}},o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;s=n(247),r=function(e){function r(){return this.shrink=i(this.shrink,this),this.startShrink=i(this.startShrink,this),r.__super__.constructor.apply(this,arguments)}return o(r,e),r.prototype.buttonsTemplate=n(296),r.prototype.expanded=!1,r.prototype.containerMinHeight=0,r.prototype.events=function(){return t.extend(r.__super__.events.apply(this,arguments),{'click [data-action="next-page"]':"nextPage",'click [data-action="previous-page"]':"previousPage",'click [data-action="expand"]':"expand",'click [data-action="shrink"]':"startShrink"})},r.prototype.initialize=function(e){var t,n,a,r,s,i;for(this.params=e,r=this.params,this.collection=r.collection,this.template=r.template,s=["sync","reset"],i=[],n=0,a=s.length;n
    '))},r.prototype.renderTableChunk=function(){var e,n,a,r,s,i,o;if(this===app.views.current)return s=0===this.renderProgress,i=this.renderAtOnce+this.renderProgress,o=this.currentTasks.slice(this.renderProgress,i),this.renderProgress=i,r=t.union(t.pluck(t.map(this.cleaningTasks.where({cleanupType:"DECOMISSIONING"}),function(e){return e.toJSON()}),"taskId"),t.pluck(t.map(this.taskKillRecords.where({taskCleanupType:"DECOMISSIONING"}),function(e){return e.toJSON()}),"taskId")),e=this.bodyTemplate({tasks:o,rowsOnly:!0,decomissioning_tasks:r,config:config,showDiskSpace:config.showTaskDiskResource}),n=this.$(".table-staged table"),a=n.find("tbody"),s?(a.html(e),utils.fixTableColumns(n)):a.append(e),this.$(".actions-column a[title]").tooltip()},r.prototype.sortTable=function(e){var t,n,r;return this.isSorted=!0,n=a(e.currentTarget),r=n.attr("data-sort-attribute"),t=this.$("[data-sorted=true]"),t.removeAttr("data-sorted"),t.find("span").remove(),r===this.sortAttribute&&null!=this.sortAscending?this.sortAscending=!this.sortAscending:this.sortAscending="startedAt"!==r,this.sortAttribute=r,n.attr("data-sorted","true"),n.append(""),this.renderTable()},r.prototype.handleScroll=function(){return this.renderProgress>=this.collection.length?void a(window).off("scroll"):(null!=this.animationFrameRequest&&window.cancelAnimationFrame(this.animationFrameRequest),this.animationFrameRequest=window.requestAnimationFrame(function(e){return function(){var t,n,r,s;if(t=e.$("tbody"),s=t.height()+t.offset().top,n=a(window),r=n.scrollTop()+n.height(),r>=s)return e.renderTableChunk()}}(this)))},r.prototype.updateUrl=function(){return app.router.navigate("/tasks/"+this.state+"/"+(this.requestsSubFilter?this.requestsSubFilter:"all")+"/"+this.searchFilter,{replace:!0})},r.prototype.viewJson=function(e){var t;return t={taskId:a(e.target).data("task-id"),requestId:a(e.target).data("request-id"),nextRunAt:a(e.target).data("nextrunat")},t.nextRunAt?this.trigger("getPendingTask",t):utils.viewJSON(this.collection.get(t.taskId))},r.prototype.removeTask=function(e){var t,n;return t=a(e.target).parents("tr"),n=t.data("task-id"),this.promptKill(n,function(){return t.remove()})},r.prototype.promptKill=function(e,t){return d.dialog.confirm({input:' Wait for replacement task to start before killing this task\n',buttons:[a.extend({},d.dialog.buttons.YES,{text:"Kill task",className:"vex-dialog-button-primary vex-dialog-button-primary-remove"}),d.dialog.buttons.NO],message:c({id:e}),callback:function(n){return function(r){var s,i;if(r)return i=a(".vex #wait-for-replacement-task").is(":checked"),s=n.collection.get(e).kill(r.message,!1,i),s.error(function(){return app.caughtError()}),"function"==typeof t?t():void 0}}(this)})},r.prototype.runTask=function(e){var t,n,r;return t=a(e.target).parents("tr"),n=t.data("task-id"),r=this.collection.get(n),r.promptRun(function(e){return function(){return t.remove()}}(this))},r.prototype.searchChange=function(e){var t,n;if(this===app.views.current)return n=this.searchFilter,t=this.$("input[type='search']"),this.searchFilter=t.val(),this.searchFilter!==n?(this.updateUrl(),this.renderTable()):void 0},r.prototype.changeRequestFilters=function(e){var n,r,s;return e.preventDefault(),s=a(e.currentTarget).data("filter"),n=this.requestsSubFilter?this.requestsSubFilter.split("-"):[],"all"===this.requestsSubFilter||0===t.difference(this.allRequestTypes,n).length?this.requestsSubFilter=s:(r=t.contains(n,s),r?n=t.without(n,s):n.push(s),0!==n.length&&0!==t.difference(this.allRequestTypes,n).length?this.requestsSubFilter=n.join("-"):this.requestsSubFilter="all"),this.updateUrl(),this.render()},r}(l),e.exports=i}).call(t,n(7),n(1))},function(e,t,n){var a,r,s,i=function(e,t){return function(){return e.apply(t,arguments)}},o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;a=n(67),r=n(216),s=function(e){function t(){return this.initialize=i(this.initialize,this),this.url=i(this.url,this),t.__super__.constructor.apply(this,arguments)}return o(t,e),t.prototype.model=r,t.prototype.url=function(){return config.apiRoot+"/slaves"},t.prototype.initialize=function(e){},t}(a),e.exports=s},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return"

    Are you sure you want to kill this task?

    \n
    "+e.escapeExpression((s=null!=(s=n.id||(null!=t?t.id:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"id",hash:{},data:r}):s))+"
    \n

    \n Long running process will be started again instantly, scheduled\n tasks will behave as if the task failed and may be rescheduled\n to run in the future depending on whether or not the request\n has numRetriesOnFailure set.\n

    \n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){return'class="active"'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return'
    \n
    \n \n
    \n
    \n\n
    \n
    \n \n
    \n\n
    \n
    \n'+(null!=(s=e.invokePartial(a.requestsFilter,t,{name:"requestsFilter",data:r,indent:" ",helpers:n,partials:a,decorators:e.decorators}))?s:"")+'
    \n
    \n
    \n\n
    \n
    \n'+(null!=(s=e.invokePartial(a.tasksBody,t,{name:"tasksBody",data:r,indent:" ",helpers:n,partials:a,decorators:e.decorators}))?s:"")+"
    \n
    \n"},usePartial:!0,useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.haveTasks:t,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?s:""},2:function(e,t,n,a,r){var s;return' \n \n \n \n \n \n \n \n \n'+(null!=(s=n["if"].call(null!=t?t:{},null!=t?t.showDiskSpace:t,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?s:"")+" \n \n \n \n"},3:function(e,t,n,a,r){return' \n'},5:function(e,t,n,a,r,s,i){var o,l,u=e.lambda,c=e.escapeExpression,p=null!=t?t:{},d=n.helperMissing,h="function";return' \n \n \n \n \n \n \n"+(null!=(o=n["if"].call(p,null!=i[1]?i[1].showDiskSpace:i[1],{name:"if",hash:{},fn:e.program(8,r,0,s,i),inverse:e.noop,data:r}))?o:"")+' \n \n'; },6:function(e,t,n,a,r){return" DECOM\n"},8:function(e,t,n,a,r){var s,i,o=null!=t?t:{};return' \n"},9:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.diskMb||(null!=t?t.diskMb:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"diskMb",hash:{},data:r}):s))+" MB "},11:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.haveTasks:t,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.program(14,r,0),data:r}))?s:""},12:function(e,t,n,a,r){return" \n
    \n Task ID\n \n Host\n \n CPUs\n \n Memory\n \n
    \n Disk\n
    \n \n '+c(u(null!=(o=null!=t?t.taskId:t)?o.id:o,t))+'\n \n \n \n "+c((l=null!=(l=n.host||(null!=t?t.host:t))?l:d,typeof l===h?l.call(p,{name:"host",hash:{},data:r}):l))+"\n \n"+(null!=(o=(n.ifTaskInList||t&&t.ifTaskInList||d).call(p,null!=i[1]?i[1].decomissioning_tasks:i[1],null!=(o=null!=t?t.taskId:t)?o.id:o,{name:"ifTaskInList",hash:{},fn:e.program(6,r,0,s,i),inverse:e.noop,data:r}))?o:"")+' \n "+c((l=null!=(l=n.cpus||(null!=t?t.cpus:t))?l:d,typeof l===h?l.call(p,{name:"cpus",hash:{},data:r}):l))+'\n \n '+c((l=null!=(l=n.memoryMb||(null!=t?t.memoryMb:t))?l:d,typeof l===h?l.call(p,{name:"memoryMb",hash:{},data:r}):l))+" MB\n \n \n \n \n \n { }\n \n
    \n '+(null!=(s=n["if"].call(o,null!=t?t.diskMb:t,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?s:"")+"\n
    \n"},14:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.collectionSynced:t,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.program(17,r,0),data:r}))?s:""},15:function(e,t,n,a,r){return'

    No active tasks

    \n'},17:function(e,t,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r,s,i){var o,l=null!=t?t:{};return(null!=(o=n.unless.call(l,null!=t?t.rowsOnly:t,{name:"unless",hash:{},fn:e.program(1,r,0,s,i),inverse:e.noop,data:r}))?o:"")+(null!=(o=n.each.call(l,null!=t?t.tasks:t,{name:"each",hash:{},fn:e.program(5,r,0,s,i),inverse:e.noop,data:r}))?o:"")+(null!=(o=n.unless.call(l,null!=t?t.rowsOnly:t,{name:"unless",hash:{},fn:e.program(11,r,0,s,i),inverse:e.noop,data:r}))?o:"")},useData:!0,useDepths:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.haveTasks:t,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?s:""},2:function(e,t,n,a,r){return' \n \n \n \n \n \n \n \n \n \n \n'},4:function(e,t,n,a,r,s,i){var o,l,u=null!=t?t:{},c=n.helperMissing,p="function",d=e.escapeExpression,h=e.lambda;return' \n \n \n \n \n \n \n'},5:function(e,t,n,a,r){return' OVERDUE\n'},7:function(e,t,n,a,r,s,i){var o;return null!=(o=(n.ifTimestampSecondsInFuture||t&&t.ifTimestampSecondsInFuture||n.helperMissing).call(null!=t?t:{},null!=(o=null!=(o=null!=t?t.pendingTask:t)?o.pendingTaskId:o)?o.nextRunAt:o,null!=(o=null!=i[1]?i[1].config:i[1])?o.pendingWithinSeconds:o,{name:"ifTimestampSecondsInFuture",hash:{},fn:e.program(8,r,0,s,i),inverse:e.program(10,r,0,s,i),data:r}))?o:""},8:function(e,t,n,a,r){return' SCHEDULED\n'},10:function(e,t,n,a,r){return' PENDING\n'},12:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.haveTasks:t,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.program(15,r,0),data:r}))?s:""},13:function(e,t,n,a,r){return" \n
    \n Task ID\n \n Pending Type\n \n Deploy ID\n
    \n '+d((l=null!=(l=n.id||(null!=t?t.id:t))?l:c,typeof l===p?l.call(u,{name:"id",hash:{},data:r}):l))+'\n \n "+d((n.humanizeText||t&&t.humanizeText||c).call(u,null!=(o=null!=(o=null!=t?t.pendingTask:t)?o.pendingTaskId:o)?o.pendingType:o,{name:"humanizeText",hash:{},data:r}))+"\n \n "+d(h(null!=(o=null!=(o=null!=t?t.pendingTask:t)?o.pendingTaskId:o)?o.deployId:o,t))+'\n
    \n"},15:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.collectionSynced:t,{name:"if",hash:{},fn:e.program(16,r,0),inverse:e.program(18,r,0),data:r}))?s:""},16:function(e,t,n,a,r){return'

    No scheduled tasks

    \n'},18:function(e,t,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r,s,i){var o,l=null!=t?t:{};return(null!=(o=n.unless.call(l,null!=t?t.rowsOnly:t,{name:"unless",hash:{},fn:e.program(1,r,0,s,i),inverse:e.noop,data:r}))?o:"")+(null!=(o=n.each.call(l,null!=t?t.tasks:t,{name:"each",hash:{},fn:e.program(4,r,0,s,i),inverse:e.noop,data:r}))?o:"")+(null!=(o=n.unless.call(l,null!=t?t.rowsOnly:t,{name:"unless",hash:{},fn:e.program(12,r,0,s,i),inverse:e.noop,data:r}))?o:"")},useData:!0,useDepths:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.haveTasks:t,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?s:""},2:function(e,t,n,a,r){return' \n \n \n \n \n \n \n \n \n \n'},4:function(e,t,n,a,r){var s,i,o=e.lambda,l=e.escapeExpression,u=null!=t?t:{},c=n.helperMissing;return' \n \n \n \n \n \n'},5:function(e,t,n,a,r){var s;return null!=(s=(n.ifTimestampInPast||t&&t.ifTimestampInPast||n.helperMissing).call(null!=t?t:{},null!=(s=null!=(s=null!=t?t.pendingTask:t)?s.pendingTaskId:s)?s.nextRunAt:s,{name:"ifTimestampInPast",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?s:""},6:function(e,t,n,a,r){return' OVERDUE\n'},8:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.haveTasks:t,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.program(11,r,0),data:r}))?s:""},9:function(e,t,n,a,r){return" \n
    \n Task ID\n \n Cleanup type\n
    \n \n '+l(o(null!=(s=null!=t?t.taskId:t)?s.id:s,t))+"\n \n \n "+l((n.humanizeText||t&&t.humanizeText||c).call(u,null!=t?t.cleanupType:t,{name:"humanizeText",hash:{},data:r}))+"\n \n"+(null!=(s=n["if"].call(u,null!=(s=null!=t?t.pendingTask:t)?s.pendingTaskId:s,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?s:"")+'
    \n"},11:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.collectionSynced:t,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.program(14,r,0),data:r}))?s:""},12:function(e,t,n,a,r){return'

    No cleaning tasks

    \n'},14:function(e,t,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{};return(null!=(s=n.unless.call(i,null!=t?t.rowsOnly:t,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n.each.call(i,null!=t?t.tasks:t,{name:"each",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n.unless.call(i,null!=t?t.rowsOnly:t,{name:"unless",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?s:"")},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.haveTasks:t,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?s:""},2:function(e,t,n,a,r){return' \n \n \n \n \n \n \n \n \n \n \n \n'},4:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return' \n \n \n \n \n \n \n \n'},6:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.haveTasks:t,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.program(9,r,0),data:r}))?s:""},7:function(e,t,n,a,r){return" \n
    \n Task ID\n \n Started At\n \n Host\n \n Rack\n \n Instance No\n
    \n \n '+c((i=null!=(i=n.id||(null!=t?t.id:t))?i:l,typeof i===u?i.call(o,{name:"id",hash:{},data:r}):i))+"\n \n \n "+c((n.timestampFromNow||t&&t.timestampFromNow||l).call(o,null!=t?t.startedAt:t,{name:"timestampFromNow",hash:{},data:r}))+"\n \n \n "+c((i=null!=(i=n.host||(null!=t?t.host:t))?i:l,typeof i===u?i.call(o,{name:"host",hash:{},data:r}):i))+"\n \n \n \n "+c((i=null!=(i=n.rackId||(null!=t?t.rackId:t))?i:l,typeof i===u?i.call(o,{name:"rackId",hash:{},data:r}):i))+"\n \n \n "+c((i=null!=(i=n.instanceNo||(null!=t?t.instanceNo:t))?i:l,typeof i===u?i.call(o,{name:"instanceNo",hash:{},data:r}):i))+'\n
    \n"},9:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.collectionSynced:t,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.program(12,r,0),data:r}))?s:""},10:function(e,t,n,a,r){return'

    No LB cleaning tasks

    \n'},12:function(e,t,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{};return(null!=(s=n.unless.call(i,null!=t?t.rowsOnly:t,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n.each.call(i,null!=t?t.tasks:t,{name:"each",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n.unless.call(i,null!=t?t.rowsOnly:t,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?s:"")},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r,s,i){var o,l=null!=t?t:{};return(null!=(o=n.unless.call(l,null!=t?t.rowsOnly:t,{name:"unless",hash:{},fn:e.program(2,r,0,s,i),inverse:e.noop,data:r}))?o:"")+(null!=(o=n.each.call(l,null!=t?t.tasks:t,{name:"each",hash:{},fn:e.program(6,r,0,s,i),inverse:e.noop,data:r}))?o:"")+(null!=(o=n.unless.call(l,null!=t?t.rowsOnly:t,{name:"unless",hash:{},fn:e.program(11,r,0,s,i),inverse:e.noop,data:r}))?o:"")},2:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.haveTasks:t,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?s:""},3:function(e,t,n,a,r){var s;return' \n \n \n \n \n \n \n \n \n'+(null!=(s=n["if"].call(null!=t?t:{},null!=t?t.showDiskSpace:t,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?s:"")+' \n \n \n \n'},4:function(e,t,n,a,r){return' \n'},6:function(e,t,n,a,r,s,i){var o;return null!=(o=(n.ifInSubFilter||t&&t.ifInSubFilter||n.helperMissing).call(null!=t?t:{},null!=(o=null!=t?t.taskId:t)?o.id:o,null!=i[1]?i[1].decomissioning_tasks:i[1],{name:"ifInSubFilter",hash:{},fn:e.program(7,r,0,s,i),inverse:e.noop,data:r}))?o:""},7:function(e,t,n,a,r){var s,i,o=e.lambda,l=e.escapeExpression,u=null!=t?t:{},c=n.helperMissing,p="function";return' \n \n \n \n \n \n \n"+(null!=(s=n["if"].call(u,null!=t?t.showDiskSpace:t,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?s:"")+' \n \n'},8:function(e,t,n,a,r){var s,i,o=null!=t?t:{};return' \n"},9:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.diskMb||(null!=t?t.diskMb:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"diskMb",hash:{},data:r}):s))+" MB "},11:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.haveTasks:t,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.program(14,r,0),data:r}))?s:""},12:function(e,t,n,a,r){return" \n
    \n Task ID\n \n CPUs\n \n Memory\n
    \n Disk\n
    \n \n '+l(o(null!=(s=null!=t?t.taskId:t)?s.id:s,t))+'\n \n \n \n "+l((i=null!=(i=n.rackId||(null!=t?t.rackId:t))?i:c,typeof i===p?i.call(u,{name:"rackId",hash:{},data:r}):i))+'\n \n \n '+l((i=null!=(i=n.cpus||(null!=t?t.cpus:t))?i:c,typeof i===p?i.call(u,{name:"cpus",hash:{},data:r}):i))+'\n
    \n '+(null!=(s=n["if"].call(o,null!=t?t.diskMb:t,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?s:"")+"\n
    \n"},14:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.collectionSynced:t,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.program(17,r,0),data:r}))?s:""},15:function(e,t,n,a,r){return'

    No decommissioning tasks

    \n'},17:function(e,t,n,a,r){return'
    \n'},19:function(e,t,n,a,r){return'

    No decommissioning tasks

    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=t?t:{},null!=t?t.decomissioning_tasks:t,{name:"if",hash:{},fn:e.program(1,r,0,s,i),inverse:e.program(19,r,0,s,i),data:r}))?o:""},useData:!0,useDepths:!0})},function(e,t,n){(function(t){var a,r,s,i,o,l,u,c,p,d,h,f,m,y,v,g,_,b,k,T=function(e,t){return function(){return e.apply(t,arguments)}},w=function(e,t){function n(){this.constructor=e}for(var a in t)M.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},M={}.hasOwnProperty;r=n(65),v=n(215),_=n(335),b=n(336),y=n(220),f=n(288),i=n(338),s=n(339),a=n(340),l=n(341),o=n(295),p=n(608),u=n(611),h=n(297),g=n(612),d=n(613),c=n(614),k=n(615),m=function(e){function r(){return this.getAlerts=T(this.getAlerts,this),r.__super__.constructor.apply(this,arguments)}return w(r,e),r.prototype.templates={overview:n(618),deployFailureNotification:n(619),healthcheckNotification:n(620),taskMetadataAlert:n(621),history:n(622),logs:n(623),lbUpdates:n(624),healthChecks:n(625),info:n(626),environment:n(627),resourceUsage:n(628),alerts:n(629),latestLog:n(630),shellCommands:n(631),taskMetadataTable:n(632)},r.prototype.initialize=function(e){return this.taskId=e.taskId,this.filePath=e.filePath,this.title(this.taskId),this.models.task=new v({taskId:this.taskId}),this.models.resourceUsage=new _({taskId:this.taskId}),this.collections.files=new y([],{taskId:this.taskId,path:this.filePath}),this.collections.logDirectory=new y([],{taskId:this.taskId,path:void 0}),this.collections.s3Logs=new b([],{taskId:this.taskId}),this.collections.taskCleanups=new f,this.collections.pendingDeploys=new i({state:"pending"}),this.collections.alerts=new a,this.subviews.overview=new p({collection:this.collections.taskCleanups,model:this.models.task,template:this.templates.overview}),this.subviews.deployFailureNotification=new h({model:this.models.task,template:this.templates.deployFailureNotification,extraRenderData:function(e){return function(t){return{deploy:e.deploy?e.deploy.toJSON():""}}}(this)}),this.subviews.healthcheckNotification=new u({model:this.models.task,template:this.templates.healthcheckNotification,pendingDeploys:this.collections.pendingDeploys}),this.subviews.taskErrorMetadata=new g({model:this.models.task,template:this.templates.taskMetadataAlert,level:"ERROR",alertClass:"danger",numberPerPage:5}),this.subviews.taskWarnMetadata=new g({model:this.models.task,template:this.templates.taskMetadataAlert,level:"WARN",alertClass:"warning",numberPerPage:1}),this.subviews.history=new h({model:this.models.task,template:this.templates.history}),this.subviews.latestLog=new c({task:this.models.task,logDir:this.collections.logDirectory,template:this.templates.latestLog}),this.subviews.fileBrowser=new l({collection:this.collections.files,model:this.models.task,scrollWhenReady:null!==this.filePath,slaveOffline:!1}),this.subviews.s3Logs=new o({collection:this.collections.s3Logs,template:this.templates.logs}),this.subviews.lbUpdates=new h({model:this.models.task,template:this.templates.lbUpdates}),this.subviews.healthChecks=new h({model:this.models.task,template:this.templates.healthChecks}),this.subviews.info=new h({model:this.models.task,template:this.templates.info}),this.subviews.environment=new h({model:this.models.task,template:this.templates.environment}),this.subviews.resourceUsage=new h({model:this.models.resourceUsage,template:this.templates.resourceUsage}),this.subviews.alerts=new h({collection:this.collections.alerts,template:this.templates.alerts}),this.subviews.shellCommands=new d({model:this.models.task,template:this.templates.shellCommands}),this.subviews.taskMetadataTable=new h({model:this.models.task,template:this.templates.taskMetadataTable}),this.setView(new k(t.extend({subviews:this.subviews,taskId:this.taskId},{model:this.models.task}))),this.refresh(),app.showView(this.view)},r.prototype.fetchResourceUsage=function(){var e;return null!=(e=this.models.resourceUsage)?e.fetch().done(function(e){return function(){if(e.models.resourceUsage.get("previousUsage")&&e.models.resourceUsage.setCpuUsage(),e.models.resourceUsage.set("previousUsage",e.models.resourceUsage.toJSON()),!e.resourcesFetched)return setTimeout(function(){return e.fetchResourceUsage()},2e3),e.resourcesFetched=!0}}(this)).error(function(e){return function(){return app.caughtError(),delete e.models.resourceUsage}}(this)):void 0},r.prototype.getAlerts=function(){var e,t,n,a,r,i,o,l,u;return e=[],l=this.models.task,o=this.models.task.attributes.task.taskRequest.request.id,n=this.models.task.attributes.task.taskRequest.deploy.id,"SCHEDULED"===l.attributes.task.taskRequest.request.requestType&&l.get("isStillRunning")&&(a=new s({deployId:n,requestId:o}),r=a.fetch(),r.done(function(t){return function(){var t,n,r,s;if(t=null!=(r=a.get("deployStatistics"))?r.averageRuntimeMillis:void 0,n=(new Date).getTime()-l.get("task").taskId.startedAt,s=window.config.warnIfScheduledJobIsRunningPastNextRunPct/100,n>t*s)return e.push({title:"Warning:",message:"This scheduled task has been running longer than "+s+" times the average for the request and may be stuck.",level:"warning"})}}(this))),l.get("isStillRunning")||(u=l.get("taskUpdates"),t=u.filter(function(e){return function(e){var t;return(null!=(t=e.statusMessage)?t.indexOf("DECOMISSIONING"):void 0)!==-1&&"TASK_CLEANING"===e.taskState}}(this)),i=u.filter(function(e){return function(e){return"TASK_KILLED"===e.taskState}}(this)),t.length>0&&i.length>0&&e.push({message:"This task was replaced then killed by Singularity due to a slave decommissioning.",level:"warning"})),r?r.done(function(t){return function(){return t.collections.alerts.reset(e)}}(this)):this.collections.alerts.reset(e)},r.prototype.fetchDeployDetails=function(){return this.deploy=new s({deployId:this.models.task.attributes.task.taskId.deployId,requestId:this.models.task.attributes.task.taskId.requestId}),this.deploy.fetch().success(function(e){return function(){return e.subviews.deployFailureNotification.render(),e.subviews.healthcheckNotification.deploy=e.deploy,e.subviews.healthcheckNotification.render()}}(this)).error(function(e){return function(){return app.caughtError()}}(this))},r.prototype.refresh=function(){var e;if(this.resourcesFetched=!1,this.collections.taskCleanups.fetch(),this.collections.pendingDeploys.fetch(),this.models.task.fetch().done(function(e){return function(){var n;return e.collections.files.fetch().error(e.ignore404),e.models.task.get("isStillRunning")&&e.fetchResourceUsage(),n=e.models.task.get("isStillRunning")?config.runningTaskLogPath:config.finishedTaskLogPath,n=n.replace("$TASK_ID",e.taskId),n=t.initial(n.split("/")).join("/"),e.collections.logDirectory.path=n,e.collections.logDirectory.fetch().error(function(t){if(e.ignore400(t),e.ignore404(t),404===t.status)return e.subviews.fileBrowser.slaveOffline=e.subviews.fileBrowser.render()})}}(this)).success(function(e){return function(){return e.getAlerts(),e.fetchDeployDetails()}}(this)).error(function(e){return function(){return app.caughtError(),app.router.notFound()}}(this)),1===(null!=(e=this.collections.s3Logs)?e.currentPage:void 0))return this.collections.s3Logs.fetch().error(function(e){return function(){return app.caughtError(),delete e.collections.s3Logs}}(this))},r}(r),e.exports=m}).call(t,n(7))},function(e,t,n){var a,r,s=function(e,t){return function(){return e.apply(t,arguments)}},i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;a=n(68),r=function(e){function t(){return this.initialize=s(this.initialize,this),this.url=s(this.url,this),t.__super__.constructor.apply(this,arguments)}return i(t,e),t.prototype.url=function(){return config.apiRoot+"/tasks/task/"+this.taskId+"/statistics"},t.prototype.initialize=function(e){this.taskId=e.taskId},t.prototype.setCpuUsage=function(){var e,t,n,a,r,s;return a=this.get("previousUsage"),n=this.get("cpusSystemTimeSecs")+this.get("cpusUserTimeSecs"),r=a.cpusSystemTimeSecs+a.cpusUserTimeSecs,s=this.get("timestamp")-a.timestamp,t=(n-r)/s,e=t/this.get("cpusLimit")>1.1,this.set("cpuUsageExceeding",e),e?this.set("cpuUsageClassStatus","danger"):this.set("cpuUsageClassStatus","success"),this.set("cpuUsage",t)},t}(a),e.exports=r},function(e,t,n){var a,r,s,i=function(e,t){return function(){return e.apply(t,arguments)}},o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;r=n(337),a=n(203),s=function(e){function t(){return this.initialize=i(this.initialize,this),t.__super__.constructor.apply(this,arguments)}return o(t,e),t.prototype.model=r,t.prototype.url=function(){return config.apiRoot+"/logs/task/"+this.taskId},t.prototype.initialize=function(e,t){this.taskId=t.taskId},t.prototype.parse=function(e){var t,n,a;for(t=0,n=e.length;t0)switch(t.last(r.get("taskUpdates")).taskState){case"TASK_LAUNCHED":case"TASK_STAGING":case"TASK_STARTING":e="Could not browse files. The task is still starting up.";break;case"TASK_KILLED":case"TASK_FAILED":case"TASK_LOST":case"TASK_FINISHED":e="No files exist in task directory. It may have been cleaned up."}return a&&(e="Task files are not availible because "+this.props.task.attributes.task.taskId.sanitizedHost+" is offline."),e},navigate:function(e,t){return t.preventDefault(),this.props.collection.path=""+e,app.router.navigate("#task/"+this.props.collection.taskId+"/files/"+this.props.collection.path),this.props.collection.fetch({reset:!0,done:this.forceUpdate}),this.clearTableSort()},renderBreadcrumbs:function(){var e;return e=[],this.props.breadcrumbs.map(function(t){return function(n,a){return e.push(i.createElement("li",{key:a},i.createElement("a",{onClick:function(e){return t.navigate(n.path,e)}},n.name)))}}(this)),e},renderTable:function(){return i.createElement(o,{noPages:!0,tableClassOpts:"table-striped files-table sortable-theme-bootstrap",columnHeads:this.columns(),tableRows:this.tableData(),emptyTableMessage:this.emptyTableMessage(),dataCollection:"taskFiles",ref:function(e){return function(t){if(t)return e.clearTableSort=t.clearSort}}(this)})},renderBreadcrumbsAndTable:function(){return this.props.task.slaveMissing?i.createElement("div",{className:"empty-table-message"},"Files can not be fetched because the slave is no longer available"):i.createElement("div",null,i.createElement("ul",{className:"breadcrumb"},this.renderBreadcrumbs()),this.renderTable())},render:function(){return i.createElement("div",null,i.createElement("div",{className:"page-header file-browser-header"},i.createElement("h2",null,"Files")),this.renderBreadcrumbsAndTable())}}),e.exports=l}).call(t,n(7))},function(e,t,n){var a,r,s,i,o,l;i=n(342),s=n(497),a=n(604),r=n(605),l=n(6),o=i.createClass({defaultSortDirectionAscending:!0,propTypes:{columnHeads:i.PropTypes.arrayOf(i.PropTypes.shape({data:i.PropTypes.string,className:i.PropTypes.string,doSort:i.PropTypes.func,sortable:i.PropTypes["boolean"],sortAttr:i.PropTypes.string})).isRequired,tableRows:i.PropTypes.arrayOf(i.PropTypes.shape({dataId:i.PropTypes.string.isRequired,className:i.PropTypes.string,data:i.PropTypes.arrayOf(i.PropTypes.shape({component:i.PropTypes.func.isRequired,prop:i.PropTypes.object,id:i.PropTypes.string,className:i.PropTypes.string})).isRequired})).isRequired,tableClassOpts:i.PropTypes.string,sortDirection:i.PropTypes.any,sortDirectionAscending:i.PropTypes.any,sortBy:i.PropTypes.string,customSorting:i.PropTypes.bool,emptyTableMessage:i.PropTypes.string,customPaging:i.PropTypes.bool,defaultRowsPerPage:i.PropTypes.number,rowsPerPageChoices:i.PropTypes.arrayOf(i.PropTypes.number),setRowsPerPage:i.PropTypes.func,pageNumber:i.PropTypes.number,pageDown:i.PropTypes.func,pageUp:i.PropTypes.func,noPages:i.PropTypes.bool,dataCollection:i.PropTypes.string},defaultRowsPerPageChoices:[5,10,15,20],getInitialState:function(){return{rowsPerPage:this.props.defaultRowsPerPage?this.props.defaultRowsPerPage:5,pageNumber:1}},rowsPerPage:function(){return this.props.rowsPerPage?this.props.rowsPerPage:this.state.rowsPerPage},setRowsPerPage:function(e){return this.props.customPaging?this.props.setRowsPerPage(e):this.setState({rowsPerPage:e})},rowsPerPageChoices:function(){return this.props.rowsPerPageChoices?this.props.rowsPerPageChoices:this.defaultRowsPerPageChoices},renderRowsPerPageChoices:function(){var e;return this.props.noPages?null:(e=[],this.rowsPerPageChoices().map(function(t){return function(n){return e.push(i.createElement(s,{key:n,prop:{url:"#",title:n+" rows per page",text:n,className:"half-roomy-right",onClickFn:function(){return t.setRowsPerPage(n)}}}))}}(this)),i.createElement("div",{title:"Rows Per Page",className:"pull-right"},"Results Per Page: ",e))},clearSort:function(){if(!this.props.customSorting)return this.setState({sortBy:void 0,sortDirection:void 0})},sortDirection:function(){return this.props.customSorting?this.props.sortDirection:this.state.sortDirectionAscending},sortBy:function(){return this.props.customSorting?this.props.sortBy:this.state.sortBy},sortDirectionAscending:function(){return!this.props.customSorting||this.props.sortDirectionAscending},makeColumnHeadSortFn:function(e){return this.props.customSorting?e.doSort:function(t){return function(){var n;return n=t.state.sortBy===e.data?!t.state.sortDirectionAscending:t.defaultSortDirectionAscending,t.setState({sortDirectionAscending:n,sortBy:e.data}),e.doSort(n),t.forceUpdate()}}(this)},getSortableColumnHeadGlyphicon:function(e){if(this.sortBy()===e.data)return this.sortDirection()===this.sortDirectionAscending()?i.createElement(a,{iconClass:"chevron-up"}):i.createElement(a,{iconClass:"chevron-down"})},pageNumber:function(){return this.props.customPaging?this.props.pageNumber:this.state.pageNumber},pageUpDisabled:function(){return this.props.customPaging&&(this.props.isLastPage||this.props.tableRows.length=this.props.tableRows.length&&!this.props.customPaging},pageDown:function(){if(1!==this.pageNumber())return this.props.customPaging?this.props.pageDown():this.state.pageNumber>1?this.setState({pageNumber:this.state.pageNumber-1}):void 0},pageUp:function(){if(!this.pageUpDisabled())return this.props.customPaging?this.props.pageUp():this.pageUpDisabled()?void 0:this.setState({pageNumber:this.state.pageNumber+1})},renderPageButtons:function(){return this.props.noPages?null:i.createElement("div",null,i.createElement("div",{className:"col-xs-5"}),i.createElement("div",{className:"col-xs-1"},i.createElement(r,{prop:{iconClass:"chevron-left",btnClass:"default",ariaLabel:"pageDown",alt:"pageDown",className:{"col-xs-5":!0,hide:1===this.pageNumber()},onClick:this.pageDown}})),i.createElement("div",{className:"col-xs-1"},i.createElement(r,{prop:{iconClass:"chevron-right",btnClass:"default",ariaLabel:"pageUp",alt:"pageUp",className:{"col-xs-5":!0,hide:this.pageUpDisabled()},onClick:this.pageUp}})),i.createElement("div",{className:"col-xs-5"}))},getColumnHeadData:function(e){return e.sortable?i.createElement(s,{prop:{url:"#",title:"Sort By "+e.data,onClickFn:function(t){return function(n){var a;return n.preventDefault(),(a=t.makeColumnHeadSortFn(e))()}}(this),text:i.createElement("div",null,e.data," ",this.getSortableColumnHeadGlyphicon(e))}}):e.data},renderTableHeader:function(){return this.props.columnHeads.map(function(e){return function(t,n){return i.createElement("th",{key:n,className:t.className},e.getColumnHeadData(t))}}(this))},renderTableRow:function(e){return e.map(function(e){return function(e,t){var n;return"object"==typeof e?(n=e.component,i.createElement("td",{key:t,className:e.className},i.createElement(n,{prop:e.prop}))):i.createElement("td",{key:t},e)}}(this))},renderEmptyTable:function(){return i.createElement("div",{className:"empty-table-message"},this.props.emptyTableMessage)},displayThisRow:function(e){var t,n;return!(!this.props.customPaging&&!this.props.noPages)||(n=(this.state.pageNumber-1)*this.rowsPerPage(),t=this.state.pageNumber*this.rowsPerPage()-1,n<=e&&e<=t)},renderTableData:function(){return this.props.tableRows.map(function(e){return function(t,n){if(e.displayThisRow(n))return i.createElement("tr",{key:n,"data-id":t.dataId,"data-collection":t.dataCollection},e.renderTableRow(t.data))}}(this))},getClassName:function(){return"table "+this.props.tableClassOpts},render:function(){return 0===this.props.tableRows.length&&1===this.pageNumber()?this.renderEmptyTable():i.createElement("div",null,this.renderRowsPerPageChoices(),i.createElement("div",{className:"table-container"},i.createElement("table",{className:this.getClassName()},i.createElement("thead",null,i.createElement("tr",null,this.renderTableHeader())),i.createElement("tbody",null,this.renderTableData()))),this.renderPageButtons())}}),e.exports=o},function(e,t,n){var a,r,s,i;s=n(342),r=n(498),i=n(599),a=s.createClass({propTypes:{prop:s.PropTypes.shape({className:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.object]),url:s.PropTypes.string,onClickFn:s.PropTypes.func,title:s.PropTypes.string,text:s.PropTypes.node,id:s.PropTypes.string,overlayId:s.PropTypes.string,overlayToolTipContent:s.PropTypes.node,overlayTrigger:s.PropTypes["boolean"],overlayTriggerPlacement:s.PropTypes.oneOf(["top","bottom","left","right"])}).isRequired},getLink:function(){return s.createElement("a",{href:this.props.prop.url,title:this.props.prop.title,onClick:this.props.prop.onClickFn,className:this.props.prop.className,id:this.props.id,key:this.props.key},this.props.prop.text)},getToolTip:function(){return s.createElement(i,{id:this.props.prop.overlayId},this.props.prop.overlayToolTipContent)},render:function(){return this.props.prop.overlayTrigger?s.createElement(r,{placement:this.props.prop.overlayTriggerPlacement,overlay:this.getToolTip()},this.getLink()):this.getLink()}}),e.exports=a},function(e,t,n){"use strict";function a(e,t){return Array.isArray(t)?t.indexOf(e)>=0:e===t}var r=n(499)["default"],s=n(515)["default"],i=n(519)["default"];t.__esModule=!0;var o=n(520),l=i(o),u=n(522),c=i(u),p=n(342),d=i(p),h=n(494),f=i(h),m=n(551),y=(i(m),n(552)),v=i(y),g=n(598),_=i(g),b=d["default"].createClass({displayName:"OverlayTrigger",propTypes:r({},v["default"].propTypes,{trigger:d["default"].PropTypes.oneOfType([d["default"].PropTypes.oneOf(["click","hover","focus"]),d["default"].PropTypes.arrayOf(d["default"].PropTypes.oneOf(["click","hover","focus"]))]),delay:d["default"].PropTypes.number,delayShow:d["default"].PropTypes.number,delayHide:d["default"].PropTypes.number,defaultOverlayShown:d["default"].PropTypes.bool,overlay:d["default"].PropTypes.node.isRequired,onBlur:d["default"].PropTypes.func,onClick:d["default"].PropTypes.func,onFocus:d["default"].PropTypes.func,onMouseEnter:d["default"].PropTypes.func,onMouseLeave:d["default"].PropTypes.func,target:function(){},onHide:function(){},show:function(){}}),getDefaultProps:function(){return{defaultOverlayShown:!1,trigger:["hover","focus"]}},getInitialState:function(){return{isOverlayShown:this.props.defaultOverlayShown}},show:function(){this.setState({isOverlayShown:!0})},hide:function(){this.setState({isOverlayShown:!1})},toggle:function(){this.state.isOverlayShown?this.hide():this.show()},componentWillMount:function(){this.handleMouseOver=this.handleMouseOverOut.bind(null,this.handleDelayedShow),this.handleMouseOut=this.handleMouseOverOut.bind(null,this.handleDelayedHide)},componentDidMount:function(){this._mountNode=document.createElement("div"),this.renderOverlay()},renderOverlay:function(){f["default"].unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},componentWillUnmount:function(){f["default"].unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},componentDidUpdate:function(){this._mountNode&&this.renderOverlay()},getOverlayTarget:function(){return f["default"].findDOMNode(this)},getOverlay:function(){var e=r({},c["default"](this.props,s(v["default"].propTypes)),{show:this.state.isOverlayShown,onHide:this.hide,target:this.getOverlayTarget,onExit:this.props.onExit,onExiting:this.props.onExiting,onExited:this.props.onExited,onEnter:this.props.onEnter,onEntering:this.props.onEntering,onEntered:this.props.onEntered}),t=p.cloneElement(this.props.overlay,{placement:e.placement,container:e.container});return d["default"].createElement(v["default"],e,t)},render:function(){var e=d["default"].Children.only(this.props.children),t=e.props,n={"aria-describedby":this.props.overlay.props.id};return this._overlay=this.getOverlay(),n.onClick=_["default"](t.onClick,this.props.onClick),a("click",this.props.trigger)&&(n.onClick=_["default"](this.toggle,n.onClick)),a("hover",this.props.trigger)&&(n.onMouseOver=_["default"](this.handleMouseOver,this.props.onMouseOver,t.onMouseOver),n.onMouseOut=_["default"](this.handleMouseOut,this.props.onMouseOut,t.onMouseOut)),a("focus",this.props.trigger)&&(n.onFocus=_["default"](this.handleDelayedShow,this.props.onFocus,t.onFocus),n.onBlur=_["default"](this.handleDelayedHide,this.props.onBlur,t.onBlur)),p.cloneElement(e,n)},handleDelayedShow:function(){var e=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.isOverlayShown&&null==this._hoverShowDelay){var t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;return t?void(this._hoverShowDelay=setTimeout(function(){e._hoverShowDelay=null,e.show()},t)):void this.show()}},handleDelayedHide:function(){var e=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.isOverlayShown&&null==this._hoverHideDelay){var t=null!=this.props.delayHide?this.props.delayHide:this.props.delay;return t?void(this._hoverHideDelay=setTimeout(function(){e._hoverHideDelay=null,e.hide()},t)):void this.hide()}},handleMouseOverOut:function(e,t){var n=t.currentTarget,a=t.relatedTarget||t.nativeEvent.toElement;a&&(a===n||l["default"](n,a))||e(t)}});t["default"]=b,e.exports=t["default"]},function(e,t,n){"use strict";var a=n(500)["default"];t["default"]=a||function(e){for(var t=1;tl;)for(var d,h=s(i[l++]),f=c?u(h).concat(c(h)):u(h),m=f.length,y=0;m>y;)p.call(h,d=f[y++])&&(n[d]=h[d]);return n}:Object.assign},function(e,t){var n=Object;e.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(e,t,n){var a=n(511);e.exports=function(e){return Object(a(e))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var a=n(513);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){e.exports={"default":n(516),__esModule:!0}},function(e,t,n){n(517),e.exports=n(505).Object.keys},function(e,t,n){var a=n(510);n(518)("keys",function(e){return function(t){return e(a(t))}})},function(e,t,n){var a=n(503),r=n(505),s=n(514);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],i={};i[e]=t(n),a(a.S+a.F*s(function(){n(1)}),"Object",i)}},function(e,t){"use strict";t["default"]=function(e){return e&&e.__esModule?e:{"default":e}},t.__esModule=!0},function(e,t,n){"use strict";var a=n(521),r=function(){var e=a&&document.documentElement;return e&&e.contains?function(e,t){return e.contains(t)}:e&&e.compareDocumentPosition?function(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}:function(e,t){if(t)do if(t===e)return!0;while(t=t.parentNode);return!1}}();e.exports=r},function(e,t){"use strict";e.exports=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(e,t,n){var a=n(523),r=n(540),s=n(542),i=n(543),o=n(550),l=o(function(e,t){return null==e?{}:"function"==typeof t[0]?i(e,r(t[0],t[1],3)):s(e,a(t))});e.exports=l},function(e,t,n){function a(e,t,n,u){u||(u=[]);for(var c=-1,p=e.length;++c-1&&e%1==0&&e<=a}var a=9007199254740991;e.exports=n},function(e,t,n){var a=n(536),r=n(534),s=n(532),i="[object Array]",o=Object.prototype,l=o.toString,u=a(Array,"isArray"),c=u||function(e){return s(e)&&r(e.length)&&l.call(e)==i};e.exports=c},function(e,t,n){function a(e,t){var n=null==e?void 0:e[t];return r(n)?n:void 0}var r=n(537);e.exports=a},function(e,t,n){function a(e){return null!=e&&(r(e)?p.test(u.call(e)):i(e)&&(s(e)?p:o).test(e))}var r=n(538),s=n(539),i=n(532),o=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,p=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=a},function(e,t,n){function a(e){return r(e)&&o.call(e)==s}var r=n(530),s="[object Function]",i=Object.prototype,o=i.toString;e.exports=a},function(e,t){var n=function(){try{Object({toString:0}+"")}catch(e){return function(){return!1}}return function(e){return"function"!=typeof e.toString&&"string"==typeof(e+"")}}();e.exports=n},function(e,t,n){function a(e,t,n){if("function"!=typeof e)return r;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,a,r){return e.call(t,n,a,r)};case 4:return function(n,a,r,s){return e.call(t,n,a,r,s)};case 5:return function(n,a,r,s,i){return e.call(t,n,a,r,s,i)}}return function(){return e.apply(t,arguments)}}var r=n(541);e.exports=a},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){function a(e,t){e=r(e);for(var n=-1,a=t.length,s={};++n0,v=d.enumErrorProps&&(e===w||e instanceof Error),g=d.enumPrototypes&&o(e);++a-1&&e%1==0&&e=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n},t.__esModule=!0},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]); return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t>",null!=n[a]?e(n,a,r):t?new Error("Required prop '"+a+"' was not specified in '"+r+"'."):void 0}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}t.__esModule=!0,t.errMsg=n,t.createChainableTypeChecker=a},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return(0,o["default"])(s["default"].findDOMNode(e))};var r=n(494),s=a(r),i=n(569),o=a(i);e.exports=t["default"]},function(e,t){"use strict";function n(e){return e&&e.ownerDocument||document}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){return e="function"==typeof e?e():e,i["default"].findDOMNode(e)||t}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var s=n(494),i=a(s);e.exports=t["default"]},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;to?o-u:0}function i(e,t,n,a){var s=r(n),i=s.width,o=e-a,l=e+a+t;return o<0?-o:l>i?i-l:0}function o(e,t,n,a,r){var o="BODY"===a.tagName?(0,u["default"])(n):(0,p["default"])(n,a),l=(0,u["default"])(t),c=l.height,d=l.width,h=void 0,f=void 0,m=void 0,y=void 0;if("left"===e||"right"===e){f=o.top+(o.height-c)/2,h="left"===e?o.left-d:o.left+o.width;var v=s(f,c,a,r);f+=v,y=50*(1-2*v/c)+"%",m=void 0}else{if("top"!==e&&"bottom"!==e)throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.');h=o.left+(o.width-d)/2,f="top"===e?o.top-c:o.top+o.height;var g=i(h,d,a,r);h+=g,m=50*(1-2*g/d)+"%",y=void 0}return{positionLeft:h,positionTop:f,arrowOffsetLeft:m,arrowOffsetTop:y}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var l=n(574),u=a(l),c=n(576),p=a(c),d=n(586),h=a(d),f=n(568),m=a(f);e.exports=t["default"]},function(e,t,n){"use strict";var a=n(520),r=n(575),s=n(569);e.exports=function(e){var t=s(e),n=r(t),i=t&&t.documentElement,o={top:0,left:0,height:0,width:0};if(t)return a(i,e)?(void 0!==e.getBoundingClientRect&&(o=e.getBoundingClientRect()),(o.width||o.height)&&(o={top:o.top+(n.pageYOffset||i.scrollTop)-(i.clientTop||0),left:o.left+(n.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:(null==o.width?e.offsetWidth:o.width)||0,height:(null==o.height?e.offsetHeight:o.height)||0}),o):o}},function(e,t){"use strict";e.exports=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}},function(e,t,n){"use strict";function a(e){return e.nodeName&&e.nodeName.toLowerCase()}function r(e,t){var n,r={top:0,left:0};return"fixed"===(0,m["default"])(e,"position")?n=e.getBoundingClientRect():(t=t||(0,u["default"])(e),n=(0,o["default"])(e),"html"!==a(t)&&(r=(0,o["default"])(t)),r.top+=parseInt((0,m["default"])(t,"borderTopWidth"),10)-(0,p["default"])(t)||0,r.left+=parseInt((0,m["default"])(t,"borderLeftWidth"),10)-(0,h["default"])(t)||0),s._extends({},n,{top:n.top-r.top-(parseInt((0,m["default"])(e,"marginTop"),10)||0),left:n.left-r.left-(parseInt((0,m["default"])(e,"marginLeft"),10)||0)})}var s=n(577);t.__esModule=!0,t["default"]=r;var i=n(574),o=s.interopRequireDefault(i),l=n(578),u=s.interopRequireDefault(l),c=n(586),p=s.interopRequireDefault(c),d=n(587),h=s.interopRequireDefault(d),f=n(579),m=s.interopRequireDefault(f);e.exports=t["default"]},function(e,t,n){var a,r,s;!function(n,i){r=[t],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(this,function(e){var t=e;t.interopRequireDefault=function(e){return e&&e.__esModule?e:{"default":e}},t._extends=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(){}Object.defineProperty(t,"__esModule",{value:!0}),t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var u=Object.assign||function(e){for(var t=1;t\n \n Wait for replacement task to start before killing task\n'),c.dialog.confirm({buttons:[a.extend({},c.dialog.buttons.YES,{text:t,className:"vex-dialog-button-primary vex-dialog-button-primary-remove"}),c.dialog.buttons.NO],input:s+'\n',message:r({id:e.model.taskId}),callback:function(t){if(t.waitForReplacementTask=a(".vex #wait-for-replacement-task").is(":checked"),t)return e.killTask(t)}})})}}(this))},n.prototype.killTask=function(e){return this.taskModel.kill(e.message,this.model.has("cleanup")||this.model.get("isCleaning"),e.waitForReplacementTask).done(function(e){return function(t){return e.collection.add([t],{parse:!0})}}(this)).error(function(e){return function(t){if(409===t.status)return app.caughtError(),e.collection.add([t.responseJSON],{parse:!0})}}(this))},n}(s),e.exports=u}).call(t,n(7),n(1))},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return"

    Are you sure you want to override kill this task?

    \n

    "+e.escapeExpression((s=null!=(s=n.id||(null!=t?t.id:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"id",hash:{},data:r}):s))+"
    \n

    \n This will override any pending cleanup operations, immediately initiate a graceful kill, and not wait for replacement tasks.\n

    "},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return"

    Are you sure you want to destroy this task?

    \n
    "+e.escapeExpression((s=null!=(s=n.id||(null!=t?t.id:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"id",hash:{},data:r}):s))+"
    \n

    \n This will override any pending cleanup operations and immediately send a kill request to the executor without waiting for replacement tasks.\n

    "},useData:!0})},function(e,t,n){(function(t){var a,r,s,i=function(e,t){return function(){return e.apply(t,arguments)}},o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty,u=[].indexOf||function(e){for(var t=0,n=this.length;t=0)))return this.$el.html(this.template(this.renderData()))},n.prototype.renderData=function(){var e,n,a,r,s,i,o,l,u,c,p,d;return d=this.model.get("taskUpdates"),u=this.model.get("task").taskId.requestId,e=this.model.get("task").taskId.deployId,n=this.pendingDeploys.find(function(t){return t.get("deployMarker")&&t.get("deployMarker").requestId===u&&t.get("deployMarker").deployId===e&&"WAITING"===t.get("currentDeployState")}),a=this.model.get("task").taskRequest.deploy.healthcheckMaxTotalTimeoutSeconds?this.model.get("task").taskRequest.deploy.healthcheckMaxTotalTimeoutSeconds:config.defaultDeployHealthTimeoutSeconds,s=this.model.get("task").taskRequest.deploy.healthcheckMaxRetries?this.model.get("task").taskRequest.deploy.healthcheckMaxRetries:config.defaultHealthcheckMaxRetries,p="Waiting for successful load balancer update",n&&n.get("deployProgress")&&n.get("deployProgress").stepComplete&&(r=this.model.get("task").taskId.instanceNo,c=n.get("deployProgress").targetActiveInstances,i=n.get("deployProgress").targetActiveInstances-n.get("deployProgress").deployInstanceCountPerStep,(r<=c&&r>i||!this.model.get("task").taskRequest.request.loadBalanced)&&(p="Waiting for subsequent deploy steps to complete")),{data:this.model.toJSON(),deployStatus:n,taskHealthyMessage:p,hasSuccessfulHealthcheck:(null!=(o=this.model.get("healthcheckResults"))?o.length:void 0)>0&&t.find(this.model.get("healthcheckResults"),function(e){return 200===e.statusCode}),lastHealthcheckFailed:(null!=(l=this.model.get("healthcheckResults"))?l.length:void 0)>0&&200!==this.model.get("healthcheckResults")[0].statusCode,healthcheckFailureReasonMessage:this.healthcheckFailureReasonMessage(),synced:this.model.synced,config:config,tooManyRetries:this.model.get("healthcheckResults").length>s&&0!==s,numberFailed:this.model.get("healthcheckResults").length,secondsElapsed:a,doNotDisplayHealthcheckNotification:this.outsideDeployFailureKilledTask()}},n.prototype.healthcheckFailureReasonMessage=function(){var e,t,n;if(e=this.model.get("healthcheckResults"),e&&e.length>0&&e[0].errorMessage&&e[0].errorMessage.toLowerCase().indexOf("connection refused")!==-1)return n=this.model.attributes.task.taskRequest.deploy.healthcheckPortIndex||0,t=this.model.attributes.ports.length>n&&this.model.attributes.ports[n],"a refused connection. It is possible your app did not start properly or was not listening on the anticipated port ("+t+"). Please check the logs for more details."},n.prototype.triggerToggleHealthchecks=function(){return this.trigger("toggleHealthchecks")},n}(r),e.exports=s}).call(t,n(7))},function(e,t,n){(function(t){var a,r,s=function(e,t){function n(){this.constructor=e}for(var a in t)i.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=n(247),a=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return s(n,e),n.prototype.currentPage=1,n.prototype.events=function(){return t.extend(n.__super__.events.apply(this,arguments),{'click [data-action="increase-page"]':"increasePage",'click [data-action="decrease-page"]':"decreasePage"})},n.prototype.initialize=function(e){var t,n,a,r,s;for(this.params=e,this.template=this.params.template,this.numberPerPage=this.params.numberPerPage||1,r=["sync","add","remove","change","reset"],s=[],n=0,a=r.length;n1,isNotLastPage:this.getUpperBound()=e.length?e.slice(this.getLowerBound()):e.slice(this.getLowerBound(),+this.getUpperBound()+1||9e9)},n.prototype.increasePage=function(e){return e.preventDefault(),this.getUpperBound()>=this.getMetadataElementsOfLevel().length-1||(this.currentPage=this.currentPage+1),this.render()},n.prototype.decreasePage=function(e){return e.preventDefault(),this.currentPage<2||this.currentPage--,this.render()},n}(r),e.exports=a}).call(t,n(7))},function(e,t,n){(function(t){var a,r,s=function(e,t){return function(){return e.apply(t,arguments)}},i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;a=n(297),r=function(e){function n(){return this.render=s(this.render,this),n.__super__.constructor.apply(this,arguments)}return i(n,e),n.prototype.initialize=function(e){return this.params=e,n.__super__.initialize.call(this,this.params),this.selectedCommandIndex=0,this.selectedCommandDescription=null},n.prototype.render=function(){if(n.__super__.render.call(this),t("#cmd").prop("selectedIndex",this.selectedCommandIndex),this.selectedCommandDescription)return t(".cmd-description").text(this.selectedCommandDescription)},n}(a),e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){var a,r,s=function(e,t){return function(){return e.apply(t,arguments)}},i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;a=n(247),r=function(e){function n(){return this.renderData=s(this.renderData,this),this.render=s(this.render,this),n.__super__.constructor.apply(this,arguments)}return i(n,e),n.prototype.initialize=function(e){return this.task=e.task,this.logDir=e.logDir,this.template=e.template,this.listenTo(this.task,"change",this.render),this.listenTo(this.task,"sync",this.render),this.listenTo(this.logDir,"change",this.render),this.listenTo(this.logDir,"sync",this.render)},n.prototype.render=function(){if(this.task.synced&&this.logDir.synced)return this.$el.html(this.template(this.renderData()))},n.prototype.renderData=function(){var e,n;return n=this.task.get("isStillRunning")?config.runningTaskLogPath:config.finishedTaskLogPath,n=t.last(n.split("/")),e=t.contains(t.map(t.pluck(this.logDir.toJSON(),"uiPath"),function(e){return t.last(e.split("/"))}),n),{data:this.task.toJSON(),fileExists:e,config:config}},n}(a),e.exports=r}).call(t,n(7))},function(e,t,n){(function(t,a){var r,s,i,o,l,u,c,p,d=function(e,t){return function(){return e.apply(t,arguments)}},h=function(e,t){function n(){this.constructor=e}for(var a in t)f.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},f={}.hasOwnProperty;l=n(247),r=n(219),s=n(220),i=n(215),p=n(17),u=n(616),c=function(e,t){return setInterval(t,e)},o=function(e){function o(){return this.pollForCmdFile=d(this.pollForCmdFile,this),this.pollForCommandStarted=d(this.pollForCommandStarted,this),this.viewJsonProperty=d(this.viewJsonProperty,this),this.toggleHealthchecks=d(this.toggleHealthchecks,this),o.__super__.constructor.apply(this,arguments)}return h(o,e),o.prototype.baseTemplate=n(617),o.prototype.events=function(){return t.extend(o.__super__.events.apply(this,arguments),{'click [data-action="viewObjectJSON"]':"viewJson",'click [data-action="viewJsonProperty"]':"viewJsonProperty",'submit [data-action="runShell"]':"executeCommand",'change [data-action="cmd"]':"cmdSelected"})},o.prototype.initialize=function(e){return this.taskId=e.taskId,this.subviews.healthcheckNotification.on("toggleHealthchecks",this.toggleHealthchecks)},o.prototype.render=function(){return this.$el.html(this.baseTemplate),this.$("#overview").html(this.subviews.overview.$el),this.$("#alerts").html(this.subviews.alerts.$el),this.$("#task-error-metadata").html(this.subviews.taskErrorMetadata.$el),this.$("#task-warn-metadata").html(this.subviews.taskWarnMetadata.$el),this.$("#deploy-failure-notification").html(this.subviews.deployFailureNotification.$el),this.$("#healthcheck-notification").html(this.subviews.healthcheckNotification.$el),this.$("#history").html(this.subviews.history.$el),this.$("#latest-log").html(this.subviews.latestLog.$el),this.$("#file-browser").html(this.subviews.fileBrowser.$el),this.$("#s3-logs").html(this.subviews.s3Logs.$el),this.$("#lb-updates").html(this.subviews.lbUpdates.$el),this.$("#health-checks").html(this.subviews.healthChecks.$el),this.$("#info").html(this.subviews.info.$el),this.$("#resources").html(this.subviews.resourceUsage.$el),this.$("#environment").html(this.subviews.environment.$el),this.$("#shell-commands").html(this.subviews.shellCommands.$el),this.$("#task-metadata-table").html(this.subviews.taskMetadataTable.$el),o.__super__.render.apply(this,arguments).afterRender()},o.prototype.toggleHealthchecks=function(){return this.subviews.healthChecks.expandToggleIfClosed()},o.prototype.viewJson=function(e){return utils.viewJSON(this.model)},o.prototype.viewJsonProperty=function(e){var t,n,r,s,i,o;t=a(e.target).data("index"),s=a(e.target).data("key"),r=a.extend(!0,{},this.model),r.synced=!0,i=r.attributes;for(n in i)f.call(i,n)&&(o=i[n],n!==s?r.unset(n,{silent:!0}):r.attributes[n].splice(0,r.attributes[n].length,o[t]));return utils.viewJSON(r)},o.prototype.executeCommand=function(e){var t,n,s,i;if(e.preventDefault(),t=a("#cmd option:selected").text(),n=a("#cmd-option").val(),!this.$("#btn_exec").attr("disabled")&&t)return i=new r({id:this.taskId}),s=i.runShellCommand(t,n),s.success(function(e){return function(){var t;if(t=s.responseJSON.timestamp,a("#cmd-confirm").text("Command Sent"),a("#open-log").is(":checked"))return e.executeCommandRedirect(),e.pollForCommandStarted(t)}}(this))},o.prototype.cmdSelected=function(e){var t,n,r,s,i,o;if(t=config.shellCommands.filter(function(e){return e.name===a("#cmd option:selected").text()})[0],this.subviews.shellCommands.selectedCommandIndex=a("#cmd").prop("selectedIndex"),this.subviews.shellCommands.selectedCommandDescription=t.description||"",a(".cmd-description").text(t.description||""),a("#btn_exec").prop("disabled",!1),i=a("#cmd-option"),i.empty(),t.options)for(a("#options").removeClass("hidden"),o=t.options,n=0,r=o.length;n").attr("value",s.name).text(s.name+(s.description?" ("+s.description+")":"")));else a("#options").addClass("hidden");return i.prop("disabled",!t.options)},o.prototype.executeCommandRedirect=function(){return p.open({message:"

    Waiting for command to run

    ",content:u,buttons:[p.dialog.buttons.NO],beforeClose:function(e){return function(){return!0}}(this)})},o.prototype.pollForCommandStarted=function(e){var t;return a("#statusText").html("Waiting for command to start..."),t=new i({taskId:this.taskId}),this.pollInterval=c(1e3,function(n){return function(){return t.fetch().done(function(){var a,r,s;return r=t.get("shellCommandHistory"),r&&n.cmdRequestIsFailed(r,e)?(clearInterval(n.pollInterval),p.close(),s=n.getCmdFailedMessage(r,e),p.dialog.alert("

    Command Failed

    "+s+"

    ")):r&&n.cmdRequestIsStarted(r,e)?(clearInterval(n.pollInterval),a=n.getCmdRequestOutputFilename(r,e),a?n.pollForCmdFile(a):p.close()):void 0})}}(this))},o.prototype.getCmdRequestOutputFilename=function(e,t){var n,a,r,s,i,o,l;for(a=0,s=e.length;a"+e+"
    to exist..."),t=new s([],{taskId:this.taskId}),this.pollInterval=c(1e3,function(n){return function(){return t.fetch().done(function(){if(n.containsFile(t.models,e))return clearInterval(n.pollInterval),p.close(),app.router.navigate("task/"+n.taskId+"/tail/"+n.taskId+"/"+e,{trigger:!0})})}}(this))},o.prototype.containsFile=function(e,t){var n,a,r;for(a=0,r=e.length;a= 4.0.0"],main:function(e,t,n,a,r){return"

    Command Queued

    \n
    \n\n

    \n\t\n

    \n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){return"
    \n
    \n
    \n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n\n
    \n
    \n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r,s,i){var o,l,u=null!=t?t:{},c=n.helperMissing,p="function",d=e.escapeExpression,h=e.lambda;return' \n"},3:function(e,t,n,a,r,s,i){var o;return(null!=(o=(n.withLast||t&&t.withLast||n.helperMissing).call(null!=t?t:{},null!=(o=null!=t?t.data:t)?o.taskUpdates:o,{name:"withLast",hash:{},fn:e.program(4,r,0,s,i),inverse:e.noop,data:r}))?o:"")+'
    \n'},4:function(e,t,n,a,r,s,i){var o,l=null!=t?t:{},u=n.helperMissing,c=e.escapeExpression;return'
    \n

    '+c((n.humanizeText||t&&t.humanizeText||u).call(l,null!=t?t.taskState:t,{name:"humanizeText",hash:{},data:r}))+(null!=(o=n["if"].call(l,null!=(o=null!=i[1]?i[1].data:i[1])?o.isStillRunning:o,{name:"if",hash:{},fn:e.program(5,r,0,s,i),inverse:e.noop,data:r}))?o:"")+"

    \n
    \n"},5:function(e,t,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=t?t:{},null!=(o=null!=i[1]?i[1].data:i[1])?o.cleanup:o,{name:"if",hash:{},fn:e.program(6,r,0,s,i),inverse:e.noop,data:r}))?o:""},6:function(e,t,n,a,r,s,i){var o;return" ("+e.escapeExpression((n.humanizeText||t&&t.humanizeText||n.helperMissing).call(null!=t?t:{},null!=(o=null!=(o=null!=i[1]?i[1].data:i[1])?o.cleanup:o)?o.cleanupType:o,{name:"humanizeText",hash:{},data:r}))+")"},8:function(e,t,n,a,r){return'
    \n'},10:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.cleanup:s,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.program(16,r,0),data:r}))?s:""},11:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=(s=null!=t?t.data:t)?s.cleanup:s)?s.isImmediate:s,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.program(14,r,0),data:r}))?s:""},12:function(e,t,n,a,r){return' Destroy task \n'},14:function(e,t,n,a,r){return' Override cleanup \n'},16:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.isCleaning:s,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.program(17,r,0),data:r}))?s:""},17:function(e,t,n,a,r){return' Kill task \n'},19:function(e,t,n,a,r){var s;return null!=(s=n.unless.call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.cleanup:s,{name:"unless",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?s:""},20:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.isCleaning:s,{name:"if",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?s:""},21:function(e,t,n,a,r){return' \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r,s,i){var o,l=null!=t?t:{};return"
    \n"+(null!=(o=n["with"].call(l,null!=(o=null!=t?t.data:t)?o.task:o,{name:"with",hash:{},fn:e.program(1,r,0,s,i),inverse:e.noop,data:r}))?o:"")+'
    \n'+(null!=(o=n["if"].call(l,null!=(o=null!=t?t.data:t)?o.taskUpdates:o,{name:"if",hash:{},fn:e.program(3,r,0,s,i),inverse:e.program(8,r,0,s,i),data:r}))?o:"")+' \n JSON\n \n'+(null!=(o=n["if"].call(l,null!=(o=null!=t?t.data:t)?o.isStillRunning:o,{name:"if",hash:{},fn:e.program(10,r,0,s,i),inverse:e.noop,data:r}))?o:"")+"
    \n
    \n\n\n"+(null!=(o=n["if"].call(l,null!=(o=null!=t?t.data:t)?o.isStillRunning:o,{name:"if",hash:{},fn:e.program(19,r,0,s,i),inverse:e.noop,data:r}))?o:"")},useData:!0,useDepths:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r,s,i){var o;return null!=(o=(n.ifEqual||t&&t.ifEqual||n.helperMissing).call(null!=t?t:{},null!=(o=null!=(o=null!=t?t.deploy:t)?o.deployResult:o)?o.deployState:o,"FAILED",{name:"ifEqual",hash:{},fn:e.program(2,r,0,s,i),inverse:e.noop,data:r}))?o:""},2:function(e,t,n,a,r,s,i){var o;return null!=(o=(n.ifCauseOfFailure||t&&t.ifCauseOfFailure||n.helperMissing).call(null!=t?t:{},null!=t?t.data:t,null!=t?t.deploy:t,{name:"ifCauseOfFailure",hash:{},fn:e.program(3,r,0,s,i),inverse:e.program(12,r,0,s,i),data:r}))?o:""},3:function(e,t,n,a,r,s,i){var o,l,u=null!=t?t:{},c=n.helperMissing,p=e.escapeExpression,d=e.lambda;return' \n"},4:function(e,t,n,a,r,s,i){var o;return"

    The deploy failure was also caused by:

    \n
      \n"+(null!=(o=n.each.call(null!=t?t:{},null!=(o=null!=(o=null!=t?t.deploy:t)?o.deployResult:o)?o.deployFailures:o,{name:"each",hash:{},fn:e.program(5,r,0,s,i),inverse:e.noop,data:r}))?o:"")+"
    \n"},5:function(e,t,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=t?t:{},null!=t?t.taskId:t,{name:"if",hash:{},fn:e.program(6,r,0,s,i),inverse:e.program(10,r,0,s,i),data:r}))?o:""},6:function(e,t,n,a,r,s,i){var o;return null!=(o=(n.ifNotEqual||t&&t.ifNotEqual||n.helperMissing).call(null!=t?t:{},null!=(o=null!=t?t.taskId:t)?o.id:o,null!=(o=null!=i[1]?i[1].data:i[1])?o.taskId:o,{name:"ifNotEqual",hash:{},fn:e.program(7,r,0,s,i),inverse:e.noop,data:r}))?o:""},7:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u=e.escapeExpression,c=e.lambda;return"
  • "+u(c(null!=(s=null!=t?t.taskId:t)?s.id:s,t))+": "+u((n.humanizeText||t&&t.humanizeText||l).call(o,null!=t?t.reason:t,{name:"humanizeText",hash:{},data:r}))+" "+(null!=(s=n["if"].call(o,null!=t?t.message:t,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?s:"")+"
  • \n"},8:function(e,t,n,a,r){var s;return"("+e.escapeExpression((s=null!=(s=n.message||(null!=t?t.message:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"message",hash:{},data:r}):s))+")"},10:function(e,t,n,a,r){var s,i=null!=t?t:{};return"
  • "+e.escapeExpression((n.humanizeText||t&&t.humanizeText||n.helperMissing).call(i,null!=t?t.reason:t,{name:"humanizeText",hash:{},data:r}))+" "+(null!=(s=n["if"].call(i,null!=t?t.message:t,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?s:"")+"
  • \n"},12:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u=e.escapeExpression,c=e.lambda;return' \n"},13:function(e,t,n,a,r){return" This task was killed as a result of the failing deploy.\n"},15:function(e,t,n,a,r){return" The deploy failure was caused by:\n"},17:function(e,t,n,a,r){var s;return"
      \n"+(null!=(s=n.each.call(null!=t?t:{},null!=(s=null!=(s=null!=t?t.deploy:t)?s.deployResult:s)?s.deployFailures:s,{name:"each",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?s:"")+"
    \n"},18:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.taskId:t,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.program(10,r,0),data:r}))?s:""},19:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u=e.escapeExpression,c=e.lambda;return"
  • "+u(c(null!=(s=null!=t?t.taskId:t)?s.id:s,t))+": "+u((n.humanizeText||t&&t.humanizeText||l).call(o,null!=t?t.reason:t,{name:"humanizeText",hash:{},data:r}))+" "+(null!=(s=n["if"].call(o,null!=t?t.message:t,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?s:"")+"
  • \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=t?t:{},null!=t?t.deploy:t,{name:"if",hash:{},fn:e.program(1,r,0,s,i),inverse:e.noop,data:r}))?o:""},useData:!0,useDepths:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=t?t:{},null!=t?t.deployStatus:t,{name:"if",hash:{},fn:e.program(2,r,0,s,i),inverse:e.program(23,r,0,s,i),data:r}))?o:""},2:function(e,t,n,a,r){var s;return' \n"},3:function(e,t,n,a,r){var s,i,o=e.escapeExpression;return" Deploy "+o(e.lambda(null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskId:s)?s.deployId:s,t))+" is pending: "+o((i=null!=(i=n.taskHealthyMessage||(null!=t?t.taskHealthyMessage:t))?i:n.helperMissing,"function"==typeof i?i.call(null!=t?t:{},{name:"taskHealthyMessage",hash:{},data:r}):i))+"\n"},5:function(e,t,n,a,r){var s;return null!=(s=(n.ifGT||t&&t.ifGT||n.helperMissing).call(null!=t?t:{},null!=(s=null!=(s=null!=t?t.data:t)?s.healthcheckResults:s)?s.length:s,0,{name:"ifGT",hash:{},fn:e.program(6,r,0),inverse:e.program(21,r,0),data:r}))?s:""},6:function(e,t,n,a,r){var s;return" Deploy "+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskId:s)?s.deployId:s,t))+' is pending: Waiting for successful healthcheck response. View all healthchecks.\n
    \n
    \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n["with"].call(null!=t?t:{},null!=(s=null!=(s=null!=t?t.data:t)?s.healthcheckResults:s)?s[0]:s,{name:"with",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?s:"")+" \n
    TimestampDurationStatusMessage
    \n
    \n"},7:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u=e.escapeExpression;return" \n \n "+u((n.timestampFromNow||t&&t.timestampFromNow||l).call(o,null!=t?t.timestamp:t,{name:"timestampFromNow",hash:{},data:r}))+"\n \n \n "+u((i=null!=(i=n.durationMillis||(null!=t?t.durationMillis:t))?i:l,"function"==typeof i?i.call(o,{name:"durationMillis",hash:{},data:r}):i))+(null!=(s=n["if"].call(o,null!=t?t.durationMillis:t,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?s:"")+"\n \n \n"+(null!=(s=n["if"].call(o,null!=t?t.statusCode:t,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.program(15,r,0),data:r}))?s:"")+' \n \n
    '+(null!=(s=n["if"].call(o,null!=t?t.errorMessage:t,{name:"if",hash:{},fn:e.program(17,r,0),inverse:e.program(19,r,0),data:r}))?s:"")+"
    \n \n \n"},8:function(e,t,n,a,r){return"ms"},10:function(e,t,n,a,r){var s;return null!=(s=(n.ifEqual||t&&t.ifEqual||n.helperMissing).call(null!=t?t:{},null!=t?t.statusCode:t,200,{name:"ifEqual",hash:{},fn:e.program(11,r,0),inverse:e.program(13,r,0),data:r}))?s:""},11:function(e,t,n,a,r){var s;return' HTTP '+e.escapeExpression((s=null!=(s=n.statusCode||(null!=t?t.statusCode:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"statusCode",hash:{},data:r}):s))+"\n"},13:function(e,t,n,a,r){var s;return' HTTP '+e.escapeExpression((s=null!=(s=n.statusCode||(null!=t?t.statusCode:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"statusCode",hash:{},data:r}):s))+"\n"},15:function(e,t,n,a,r){return' No Response\n'},17:function(e,t,n,a,r){var s;return e.escapeExpression((s=null!=(s=n.errorMessage||(null!=t?t.errorMessage:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"errorMessage",hash:{},data:r}):s))},19:function(e,t,n,a,r){var s;return e.escapeExpression((s=null!=(s=n.responseBody||(null!=t?t.responseBody:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"responseBody",hash:{},data:r}):s))},21:function(e,t,n,a,r){var s;return" Deploy "+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskId:s)?s.deployId:s,t))+" is pending: Waiting for task to become healthy.\n"},23:function(e,t,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=t?t:{},null!=t?t.lastHealthcheckFailed:t,{name:"if",hash:{},fn:e.program(24,r,0,s,i),inverse:e.noop,data:r}))?o:""},24:function(e,t,n,a,r,s,i){var o;return null!=(o=n["with"].call(null!=t?t:{},null!=(o=null!=(o=null!=t?t.data:t)?o.healthcheckResults:o)?o[0]:o,{name:"with",hash:{},fn:e.program(25,r,0,s,i),inverse:e.noop,data:r}))?o:""},25:function(e,t,n,a,r,s,i){var o,l,u=null!=t?t:{},c=n.helperMissing,p=e.escapeExpression;return' \n"},26:function(e,t,n,a,r){return"No"},28:function(e,t,n,a,r){return"Task killed due to no"},30:function(e,t,n,a,r,s,i){return e.escapeExpression(e.lambda(null!=i[1]?i[1].numberFailed:i[1],t))+" tries"},32:function(e,t,n,a,r,s,i){return e.escapeExpression(e.lambda(null!=i[1]?i[1].secondsElapsed:i[1],t))+" seconds"},34:function(e,t,n,a,r){var s;return'responded with HTTP '+e.escapeExpression((s=null!=(s=n.statusCode||(null!=t?t.statusCode:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"statusCode",hash:{},data:r}):s))+""},36:function(e,t,n,a,r){return"did not respond"},38:function(e,t,n,a,r){var s;return" in "+e.escapeExpression((s=null!=(s=n.durationMillis||(null!=t?t.durationMillis:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"durationMillis",hash:{},data:r}):s))+"ms"},40:function(e,t,n,a,r,s,i){return"

    \n The healthcheck failed because "+e.escapeExpression(e.lambda(null!=i[1]?i[1].healthcheckFailureReasonMessage:i[1],t))+"\n

    \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r,s,i){var o;return null!=(o=n.unless.call(null!=t?t:{},null!=t?t.doNotDisplayHealthcheckNotification:t,{name:"unless",hash:{},fn:e.program(1,r,0,s,i),inverse:e.noop,data:r}))?o:""},useData:!0,useDepths:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=t?t:{},null!=t?t.metadataElementToDisplay:t,{name:"if",hash:{},fn:e.program(2,r,0,s,i),inverse:e.noop,data:r}))?o:""},2:function(e,t,n,a,r,s,i){var o,l=null!=t?t:{};return(null!=(o=n.each.call(l,null!=t?t.metadataElementToDisplay:t,{name:"each",hash:{},fn:e.program(3,r,0,s,i),inverse:e.noop,data:r}))?o:"")+'
    \n \n
    \n"},3:function(e,t,n,a,r,s,i){var o,l,u=e.escapeExpression,c=null!=t?t:{},p=n.helperMissing,d="function";return'
    \n

    '+u((l=null!=(l=n.title||(null!=t?t.title:t))?l:p,typeof l===d?l.call(c,{name:"title",hash:{},data:r}):l))+"

    \n

    \n \n "+u((n.timestampFromNow||t&&t.timestampFromNow||p).call(c,null!=t?t.timestamp:t,{name:"timestampFromNow",hash:{},data:r}))+"\n Type "+u((l=null!=(l=n.type||(null!=t?t.type:t))?l:p,typeof l===d?l.call(c,{name:"type",hash:{},data:r}):l))+"\n"+(null!=(o=n["if"].call(c,null!=t?t.user:t,{name:"if",hash:{},fn:e.program(4,r,0,s,i),inverse:e.noop,data:r}))?o:"")+" \n

    \n"+(null!=(o=n["if"].call(c,null!=t?t.message:t,{name:"if",hash:{},fn:e.program(6,r,0,s,i),inverse:e.noop,data:r}))?o:"")+"
    \n"},4:function(e,t,n,a,r){var s;return" By "+e.escapeExpression((s=null!=(s=n.user||(null!=t?t.user:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"user",hash:{},data:r}):s))+"\n"},6:function(e,t,n,a,r){var s;return"

    "+e.escapeExpression((s=null!=(s=n.message||(null!=t?t.message:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"message",hash:{},data:r}):s))+"

    \n"},8:function(e,t,n,a,r){return'
  • \n'},10:function(e,t,n,a,r){return'
  • \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r,s,i){var o;return null!=(o=n["if"].call(null!=t?t:{},null!=t?t.synced:t,{name:"if",hash:{},fn:e.program(1,r,0,s,i),inverse:e.noop,data:r}))?o:""},useData:!0,useDepths:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r,s,i){var o;return' \n \n \n \n \n \n \n \n \n'+(null!=(o=(n.reverseEach||t&&t.reverseEach||n.helperMissing).call(null!=t?t:{},null!=(o=null!=t?t.data:t)?o.taskUpdates:o,{name:"reverseEach",hash:{},fn:e.program(2,r,0,s,i),inverse:e.noop,data:r}))?o:"")+" \n
    \n Status\n \n Message\n \n Time\n
    \n"},2:function(e,t,n,a,r,s,i){var o,l,u=null!=t?t:{},c=n.helperMissing,p=e.escapeExpression;return" \n \n "+p((n.humanizeText||t&&t.humanizeText||c).call(u,null!=t?t.taskState:t,{name:"humanizeText",hash:{},data:r}))+"\n \n \n"+(null!=(o=n["if"].call(u,null!=t?t.statusMessage:t,{name:"if",hash:{},fn:e.program(5,r,0,s,i),inverse:e.program(7,r,0,s,i),data:r}))?o:"")+' \n \n '+p((n.timestampFromNow||t&&t.timestampFromNow||c).call(u,null!=t?t.timestamp:t,{name:"timestampFromNow",hash:{},data:r}))+"\n \n \n"},3:function(e,t,n,a,r){return' class="medium-weight"'},5:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.statusMessage||(null!=t?t.statusMessage:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"statusMessage",hash:{},data:r}):s))+"\n"},7:function(e,t,n,a,r){return" —\n"},9:function(e,t,n,a,r){return'
    This task has no history yet
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r,s,i){var o;return'\n'+(null!=(o=n["if"].call(null!=t?t:{},null!=(o=null!=t?t.data:t)?o.taskUpdates:o,{name:"if",hash:{},fn:e.program(1,r,0,s,i),inverse:e.program(9,r,0,s,i),data:r}))?o:"")},useData:!0,useDepths:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return' \n'+(null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.length:s,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.program(5,r,0),data:r}))?s:"")},2:function(e,t,n,a,r){var s;return'
    \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(null!=t?t:{},null!=t?t.data:t,{name:"each",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?s:"")+" \n
    Log fileSizeLast modified
    \n
    \n"},3:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return' \n \n \n '+u((n.trimS3File||t&&t.trimS3File||o).call(i,null!=t?t.shortKey:t,null!=t?t.taskId:t,{name:"trimS3File",hash:{},data:r}))+"\n \n \n \n "+u((n.humanizeFileSize||t&&t.humanizeFileSize||o).call(i,null!=t?t.size:t,{name:"humanizeFileSize",hash:{},data:r}))+'\n \n \n '+u((n.timestampFormatted||t&&t.timestampFormatted||o).call(i,null!=t?t.lastModified:t,{name:"timestampFormatted",hash:{},data:r}))+'\n \n \n \n \n \n \n \n'},5:function(e,t,n,a,r){return'
    \n No S3 logs\n
    \n'},7:function(e,t,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.synced:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(7,r,0),data:r}))?s:""},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return null!=(s=(n.ifEqual||t&&t.ifEqual||n.helperMissing).call(null!=t?t:{},null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.request:s)?s.loadBalanced:s,!0,{name:"ifEqual",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?s:""},2:function(e,t,n,a,r){var s;return' \n'+(null!=(s=(n.ifGT||t&&t.ifGT||n.helperMissing).call(null!=t?t:{},null!=(s=null!=(s=null!=t?t.data:t)?s.loadBalancerUpdates:s)?s.length:s,0,{name:"ifGT",hash:{},fn:e.program(3,r,0),inverse:e.program(6,r,0),data:r}))?s:"")},3:function(e,t,n,a,r){var s;return'
    \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.loadBalancerUpdates:s,{name:"each",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?s:"")+" \n
    TimestampRequest TypeStateMessage
    \n
    \n"},4:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u=e.escapeExpression,c="function";return" \n \n "+u((n.timestampFormatted||t&&t.timestampFormatted||l).call(o,null!=t?t.timestamp:t,{name:"timestampFormatted",hash:{},data:r}))+"\n \n \n "+u((n.humanizeText||t&&t.humanizeText||l).call(o,null!=(s=null!=t?t.loadBalancerRequestId:t)?s.requestType:s,{name:"humanizeText",hash:{},data:r}))+"\n \n \n "+u((n.humanizeText||t&&t.humanizeText||l).call(o,null!=t?t.loadBalancerState:t,{name:"humanizeText",hash:{},data:r}))+"\n \n \n "+u((i=null!=(i=n.message||(null!=t?t.message:t))?i:l,typeof i===c?i.call(o,{name:"message",hash:{},data:r}):i))+'\n \n \n \n { }\n \n \n \n'},6:function(e,t,n,a,r){return'
    \n No Load Balancer Info\n
    \n'},8:function(e,t,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.synced:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(8,r,0),data:r}))?s:""},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckUri:s,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?s:""},2:function(e,t,n,a,r){var s,i=null!=t?t:{},o=e.lambda,l=e.escapeExpression;return' \n
    \n
    \n Beginning on Task running, hit \n '+l(o(null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckUri:s,t))+' \n with a \n'+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckTimeoutSeconds:s,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.program(11,r,0),data:r}))?s:"")+' second timeout \n every \n'+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckIntervalSeconds:s,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.program(15,r,0),data:r}))?s:"")+' second(s) \n until HTTP 200 is received,\n'+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckMaxRetries:s,{name:"if",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?s:"")+' or \n'+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckMaxTotalTimeoutSeconds:s,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.program(21,r,0),data:r}))?s:"")+" seconds have elapsed.\n
    \n"+(null!=(s=(n.ifGT||t&&t.ifGT||n.helperMissing).call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.healthcheckResults:s)?s.length:s,0,{name:"ifGT",hash:{},fn:e.program(23,r,0),inverse:e.program(38,r,0),data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.skipHealthChecksOnDeploy:s,{name:"if",hash:{},fn:e.program(40,r,0),inverse:e.noop,data:r}))?s:"")+"
    \n"},3:function(e,t,n,a,r){return" collapse\n"},5:function(e,t,n,a,r){return" view\n"},7:function(e,t,n,a,r){return"hide"},9:function(e,t,n,a,r){var s;return" "+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckTimeoutSeconds:s,t))+"\n"},11:function(e,t,n,a,r){var s;return" "+e.escapeExpression(e.lambda(null!=(s=null!=t?t.config:t)?s.defaultHealthcheckTimeoutSeconds:s,t))+"\n"},13:function(e,t,n,a,r){var s;return" "+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckIntervalSeconds:s,t))+"\n"},15:function(e,t,n,a,r){var s;return" "+e.escapeExpression(e.lambda(null!=(s=null!=t?t.config:t)?s.defaultHealthcheckIntervalSeconds:s,t))+"\n"},17:function(e,t,n,a,r){var s;return' '+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckMaxRetries:s,t))+" retries have failed,\n"},19:function(e,t,n,a,r){var s;return" "+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.healthcheckMaxTotalTimeoutSeconds:s,t))+"\n"},21:function(e,t,n,a,r){var s;return" "+e.escapeExpression(e.lambda(null!=(s=null!=t?t.config:t)?s.defaultDeployHealthTimeoutSeconds:s,t))+"\n"},23:function(e,t,n,a,r){var s;return'
    \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.healthcheckResults:s,{name:"each",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?s:"")+" \n
    TimestampDurationStatusMessage
    \n
    \n"},24:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u=e.escapeExpression,c="function";return" \n \n "+u((n.timestampFormattedWithSeconds||t&&t.timestampFormattedWithSeconds||l).call(o,null!=t?t.timestamp:t,{name:"timestampFormattedWithSeconds",hash:{},data:r}))+"\n \n \n "+u((i=null!=(i=n.durationMillis||(null!=t?t.durationMillis:t))?i:l,typeof i===c?i.call(o,{name:"durationMillis",hash:{},data:r}):i))+(null!=(s=n["if"].call(o,null!=t?t.durationMillis:t,{name:"if",hash:{},fn:e.program(25,r,0),inverse:e.noop,data:r}))?s:"")+"\n \n \n"+(null!=(s=n["if"].call(o,null!=t?t.statusCode:t,{name:"if",hash:{},fn:e.program(27,r,0),inverse:e.program(32,r,0),data:r}))?s:"")+' \n \n
    '+(null!=(s=n["if"].call(o,null!=t?t.errorMessage:t,{name:"if",hash:{},fn:e.program(34,r,0),inverse:e.program(36,r,0),data:r}))?s:"")+'
    \n \n \n \n { }\n \n \n \n'},25:function(e,t,n,a,r){return"ms"},27:function(e,t,n,a,r){var s;return null!=(s=(n.ifEqual||t&&t.ifEqual||n.helperMissing).call(null!=t?t:{},null!=t?t.statusCode:t,200,{name:"ifEqual",hash:{},fn:e.program(28,r,0),inverse:e.program(30,r,0),data:r}))?s:""},28:function(e,t,n,a,r){var s;return' HTTP '+e.escapeExpression((s=null!=(s=n.statusCode||(null!=t?t.statusCode:t))?s:n.helperMissing, "function"==typeof s?s.call(null!=t?t:{},{name:"statusCode",hash:{},data:r}):s))+"\n"},30:function(e,t,n,a,r){var s;return' HTTP '+e.escapeExpression((s=null!=(s=n.statusCode||(null!=t?t.statusCode:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"statusCode",hash:{},data:r}):s))+"\n"},32:function(e,t,n,a,r){return' No Response\n'},34:function(e,t,n,a,r){var s;return e.escapeExpression((s=null!=(s=n.errorMessage||(null!=t?t.errorMessage:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"errorMessage",hash:{},data:r}):s))},36:function(e,t,n,a,r){var s;return e.escapeExpression((s=null!=(s=n.responseBody||(null!=t?t.responseBody:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"responseBody",hash:{},data:r}):s))},38:function(e,t,n,a,r){return'
    \n No Healthchecks\n
    \n'},40:function(e,t,n,a,r){return'
    \n Healthchecks are disabled for this deploy\n
    \n'},42:function(e,t,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.synced:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(42,r,0),data:r}))?s:""},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return'
  • \n
    \n

    Task ID

    \n

    '+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskId:s)?s.id:s,t))+"

    \n
    \n
  • \n"},3:function(e,t,n,a,r){var s;return'
  • \n
    \n

    Directory

    \n

    '+e.escapeExpression(e.lambda(null!=(s=null!=t?t.data:t)?s.directory:s,t))+"

    \n
    \n
  • \n"},5:function(e,t,n,a,r){var s;return'
  • \n
    \n

    Executor GUID

    \n

    '+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.mesosTask:s)?s.executor:s)?s.executorId:s)?s.value:s,t))+"

    \n
    \n
  • \n"},7:function(e,t,n,a,r){var s;return'
  • \n
    \n

    Hostname

    \n

    '+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.offer:s)?s.hostname:s,t))+"

    \n
    \n
  • \n"},9:function(e,t,n,a,r){var s;return'
  • \n
    \n

    Ports

    \n

    '+e.escapeExpression(e.lambda(null!=(s=null!=t?t.data:t)?s.ports:s,t))+"

    \n
    \n
  • \n"},11:function(e,t,n,a,r){var s;return'
  • \n
    \n

    Rack ID

    \n

    '+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.rackId:s,t))+"

    \n
    \n
  • \n"},13:function(e,t,n,a,r){var s;return'
  • \n
    \n

    Extra Cmd Line Arguments (for Deploy)

    \n

    '+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.executorData:s)?s.extraCmdLineArgs:s,t))+"

    \n
    \n
  • \n"},15:function(e,t,n,a,r){var s;return'
  • \n
    \n

    Extra Cmd Line Arguments (for Task)

    \n

    '+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.pendingTask:s)?s.cmdLineArgsList:s,t))+"

    \n
    \n
  • \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{};return'\n\n
    \n
      \n'+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskId:s)?s.id:s,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=t?t.data:t)?s.directory:s,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.mesosTask:s)?s.executor:s)?s.executorId:s)?s.value:s,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.offer:s)?s.hostname:s,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=t?t.data:t)?s.ports:s,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.rackId:s,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.executorData:s)?s.extraCmdLineArgs:s,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.pendingTask:s)?s.cmdLineArgsList:s,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?s:"")+"
    \n
    \n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s,i=null!=t?t:{};return' \n
    \n
      \n'+(null!=(s=n.each.call(i,null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.mesosTask:s)?s.executor:s)?s.command:s)?s.environment:s)?s.variables:s,{name:"each",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?s:"")+"
    \n
    \n"},2:function(e,t,n,a,r){return" collapse\n"},4:function(e,t,n,a,r){return" view\n"},6:function(e,t,n,a,r){return"hide"},8:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return'
  • \n
    \n

    '+u((s=null!=(s=n.name||(null!=t?t.name:t))?s:o,typeof s===l?s.call(i,{name:"name",hash:{},data:r}):s))+"

    \n

    "+u((s=null!=(s=n.value||(null!=t?t.value:t))?s:o,typeof s===l?s.call(i,{name:"value",hash:{},data:r}):s))+"

    \n
    \n
  • \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.mesosTask:s)?s.executor:s)?s.command:s)?s.environment:s)?s.variables:s,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:""},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){return" collapse\n"},3:function(e,t,n,a,r){return" view\n"},5:function(e,t,n,a,r){return"hide"},7:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l=e.escapeExpression;return'
    \n
    \n

    Memory (rss vs limit)

    \n
    \n
    \n
    \n
    \n
    \n '+l((n.humanizeFileSize||t&&t.humanizeFileSize||o).call(i,null!=(s=null!=t?t.data:t)?s.memRssBytes:s,{name:"humanizeFileSize",hash:{},data:r}))+" / "+l((n.humanizeFileSize||t&&t.humanizeFileSize||o).call(i,null!=(s=null!=t?t.data:t)?s.memLimitBytes:s,{name:"humanizeFileSize",hash:{},data:r}))+"\n
    \n
    \n"},9:function(e,t,n,a,r){var s;return'
    \n
    \n

    CPU Usage

    \n
    \n
    \n'+(null!=(s=(n.ifAll||t&&t.ifAll||n.helperMissing).call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.cpuUsage:s,{name:"ifAll",hash:{},fn:e.program(10,r,0),inverse:e.program(13,r,0),data:r}))?s:"")+"
    \n
    \n"},10:function(e,t,n,a,r){var s,i=null!=t?t:{},o=e.lambda,l=e.escapeExpression,u=n.helperMissing;return(null!=(s=n["if"].call(i,null!=(s=null!=t?t.data:t)?s.cpuUsageExceeding:s,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?s:"")+'
    \n
    \n
    \n '+l((n.fixedDecimal||t&&t.fixedDecimal||u).call(i,null!=(s=null!=t?t.data:t)?s.cpuUsage:s,{name:"fixedDecimal",hash:{},data:r}))+" used / "+l(o(null!=(s=null!=t?t.data:t)?s.cpusLimit:s,t))+" allocated CPUs\n"},11:function(e,t,n,a,r){return'

    CPU usage > 110% allocated

    \n'},13:function(e,t,n,a,r){return" Calculating...\n"},15:function(e,t,n,a,r){var s;return"
  • \n
    \n

    CPUs number of periods

    \n

    "+e.escapeExpression(e.lambda(null!=(s=null!=t?t.data:t)?s.cpusNrPeriods:s,t))+"

    \n
    \n
  • \n"},17:function(e,t,n,a,r){var s;return"
  • \n
    \n

    CPUs number throttled

    \n

    "+e.escapeExpression(e.lambda(null!=(s=null!=t?t.data:t)?s.cpusNrThrottled:s,t))+"

    \n
    \n
  • \n"},19:function(e,t,n,a,r){var s;return"
  • \n
    \n

    Throttled time (sec)

    \n

    "+e.escapeExpression(e.lambda(null!=(s=null!=t?t.data:t)?s.cpusThrottledTimeSecs:s,t))+"

    \n
    \n
  • \n"},21:function(e,t,n,a,r){var s;return"
  • \n
    \n

    Memory (anon)

    \n

    "+e.escapeExpression((n.humanizeFileSize||t&&t.humanizeFileSize||n.helperMissing).call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.memAnonBytes:s,{name:"humanizeFileSize",hash:{},data:r}))+"

    \n
    \n
  • \n"},23:function(e,t,n,a,r){var s;return"
  • \n
    \n

    Memory (file)

    \n

    "+e.escapeExpression((n.humanizeFileSize||t&&t.humanizeFileSize||n.helperMissing).call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.memFileBytes:s,{name:"humanizeFileSize",hash:{},data:r}))+"

    \n
    \n
  • \n"},25:function(e,t,n,a,r){var s;return"
  • \n
    \n

    Memory (mapped file)

    \n

    "+e.escapeExpression((n.humanizeFileSize||t&&t.humanizeFileSize||n.helperMissing).call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.memMappedFileBytes:s,{name:"humanizeFileSize",hash:{},data:r}))+"

    \n
    \n
  • \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing;return'\n
    \n
    \n"+(null!=(s=(n.ifAll||t&&t.ifAll||o).call(i,null!=(s=null!=t?t.data:t)?s.memRssBytes:s,null!=(s=null!=t?t.data:t)?s.memLimitBytes:s,{name:"ifAll",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=(n.ifAll||t&&t.ifAll||o).call(i,null!=(s=null!=t?t.data:t)?s.cpusUserTimeSecs:s,null!=(s=null!=t?t.data:t)?s.cpusSystemTimeSecs:s,{name:"ifAll",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?s:"")+"
    \n
    \n
      \n"+(null!=(s=n["if"].call(i,null!=(s=null!=t?t.data:t)?s.cpusNrPeriods:s,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=t?t.data:t)?s.cpusNrThrottled:s,{name:"if",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?s:"")+"\n"+(null!=(s=n["if"].call(i,null!=(s=null!=t?t.data:t)?s.cpusThrottledTimeSecs:s,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=t?t.data:t)?s.memAnonBytes:s,{name:"if",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=t?t.data:t)?s.memFileBytes:s,{name:"if",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=t?t.data:t)?s.memMappedFileBytes:s,{name:"if",hash:{},fn:e.program(25,r,0),inverse:e.noop,data:r}))?s:"")+"
    \n
    \n
    \n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return' \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return null!=(s=n.each.call(null!=t?t:{},null!=t?t.data:t,{name:"each",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:""},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return'\n \n\n
    \n
    \n

    \n'+(null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.isStillRunning:s,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.program(4,r,0),data:r}))?s:"")+"

    \n
    \n
    \n\n"},2:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u=e.escapeExpression;return' \n '+(null!=(s=(n.filename||t&&t.filename||l).call(o,null!=(s=null!=t?t.config:t)?s.runningTaskLogPath:s,{name:"filename",hash:{},data:r}))?s:"")+"\n \n"},4:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u=e.escapeExpression;return' \n '+(null!=(s=(n.filename||t&&t.filename||l).call(o,null!=(s=null!=t?t.config:t)?s.finishedTaskLogPath:s,{name:"filename",hash:{},data:r}))?s:"")+"\n \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.fileExists:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:""},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.synced:t,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?s:""},2:function(e,t,n,a,r){var s,i=null!=t?t:{};return' \n
    \n"+(null!=(s=(n.isRunningState||t&&t.isRunningState||n.helperMissing).call(i,null!=(s=null!=t?t.data:t)?s.taskUpdates:s,{name:"isRunningState",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.shellCommandHistory:s)?s.length:s,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.program(25,r,0),data:r}))?s:"")+"
    \n"},3:function(e,t,n,a,r){return" collapse\n"},5:function(e,t,n,a,r){return" view\n"},7:function(e,t,n,a,r){return"hide"},9:function(e,t,n,a,r){var s;return null!=(s=(n.isSingularityExecutor||t&&t.isSingularityExecutor||n.helperMissing).call(null!=t?t:{},null!=(s=null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.task:s)?s.taskRequest:s)?s.deploy:s)?s.customExecutorCmd:s,{name:"isSingularityExecutor",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?s:""},10:function(e,t,n,a,r){var s,i=null!=t?t:{};return'
    \n
    \n

    Execute a command

    \n
    \n \n \n"+(null!=(s=(n.withFirst||t&&t.withFirst||n.helperMissing).call(i,null!=(s=null!=t?t.config:t)?s.shellCommands:s,{name:"withFirst",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?s:"")+'\n \n\n \n
    \n \n\n \n
    \n
    \n'},11:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l="function",u=e.escapeExpression;return' \n"},13:function(e,t,n,a,r){var s;return'

    '+e.escapeExpression((s=null!=(s=n.description||(null!=t?t.description:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"description",hash:{},data:r}):s))+"

    \n"},15:function(e,t,n,a,r){var s;return'
    \n
    \n

    Command History

    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.shellCommandHistory:s,{name:"each",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?s:"")+" \n
    TimestampCommandOptionsUserStatusMessageLogs
    \n
    \n
    \n
    \n"},16:function(e,t,n,a,r){var s,i=e.lambda,o=e.escapeExpression,l=null!=t?t:{},u=n.helperMissing;return' \n \n '+o((n.timestampFormatted||t&&t.timestampFormatted||u).call(l,null!=(s=null!=t?t.shellRequest:t)?s.timestamp:s,{name:"timestampFormatted",hash:{},data:r}))+"\n \n \n "+o(i(null!=(s=null!=(s=null!=t?t.shellRequest:t)?s.shellCommand:s)?s.name:s,t))+"\n \n \n"+(null!=(s=n["if"].call(l,null!=(s=null!=(s=null!=(s=null!=t?t.shellRequest:t)?s.shellCommand:s)?s.options:s)?s.length:s,{name:"if",hash:{},fn:e.program(17,r,0),inverse:e.program(19,r,0),data:r}))?s:"")+" \n \n "+o(i(null!=(s=null!=t?t.shellRequest:t)?s.user:s,t))+"\n \n \n "+o((n.lastShellRequestStatus||t&&t.lastShellRequestStatus||u).call(l,null!=t?t.shellUpdates:t,{name:"lastShellRequestStatus",hash:{},data:r}))+"\n \n \n
      "+(null!=(s=n.each.call(l,null!=t?t.shellUpdates:t,{name:"each",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?s:"")+"
    \n \n \n "+(null!=(s=(n.ifShellRequestHasOutputFilename||t&&t.ifShellRequestHasOutputFilename||u).call(l,null!=t?t.shellUpdates:t,{name:"ifShellRequestHasOutputFilename",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?s:"")+"\n \n \n"},17:function(e,t,n,a,r){var s;return" "+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=t?t.shellRequest:t)?s.shellCommand:s)?s.options:s,t))+"\n"},19:function(e,t,n,a,r){return" (none)\n"},21:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l=e.escapeExpression;return"
  • "+l((n.timestampFormatted||t&&t.timestampFormatted||o).call(i,null!=t?t.timestamp:t,{name:"timestampFormatted",hash:{},data:r}))+": "+l((s=null!=(s=n.message||(null!=t?t.message:t))?s:o,"function"==typeof s?s.call(i,{name:"message",hash:{},data:r}):s))+"
  • "},23:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u=e.escapeExpression,c=e.lambda;return'View'},25:function(e,t,n,a,r){return'
    \n No commands run\n
    \n'},27:function(e,t,n,a,r){return'
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.taskUpdates:s,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(27,r,0),data:r}))?s:""},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s,i=null!=t?t:{};return' \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(i,null!=(s=null!=t?t.data:t)?s.taskMetadata:s,{name:"each",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?s:"")+" \n
    \n Title\n \n Level\n \n Type\n \n Time\n \n User\n \n Message\n
    \n
    \n
    \n"},2:function(e,t,n,a,r){return" collapse\n"},4:function(e,t,n,a,r){return" view\n"},6:function(e,t,n,a,r){return"hide"},8:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return" \n \n "+c((i=null!=(i=n.title||(null!=t?t.title:t))?i:l,typeof i===u?i.call(o,{name:"title",hash:{},data:r}):i))+"\n \n \n "+c((i=null!=(i=n.level||(null!=t?t.level:t))?i:l,typeof i===u?i.call(o,{name:"level",hash:{},data:r}):i))+"\n \n \n "+c((i=null!=(i=n.type||(null!=t?t.type:t))?i:l,typeof i===u?i.call(o,{name:"type",hash:{},data:r}):i))+'\n \n \n '+c((n.timestampFromNow||t&&t.timestampFromNow||l).call(o,null!=t?t.timestamp:t,{name:"timestampFromNow",hash:{},data:r}))+"\n \n \n"+(null!=(s=n["if"].call(o,null!=t?t.user:t,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.program(11,r,0),data:r}))?s:"")+" \n \n"+(null!=(s=n["if"].call(o,null!=t?t.message:t,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.program(11,r,0),data:r}))?s:"")+" \n \n"},9:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.user||(null!=t?t.user:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"user",hash:{},data:r}):s))+"\n"},11:function(e,t,n,a,r){return" —\n"},13:function(e,t,n,a,r){var s;return" "+e.escapeExpression((s=null!=(s=n.message||(null!=t?t.message:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"message",hash:{},data:r}):s))+"\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.taskMetadata:s,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:""},useData:!0})},function(e,t,n){(function(t){var a,r,s,i,o,l=function(e,t){function n(){this.constructor=e}for(var a in t)u.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},u={}.hasOwnProperty;a=n(65),r=n(71),i=n(634),o=n(297),s=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return l(n,e),n.prototype.initialize=function(e){return this.state=e.state,app.showPageLoader(),this.title("Racks"),this.collections.racks=new r([]),this.setView(new i(t.extend({state:this.state},{collection:this.collections.racks}))),app.showView(this.view),this.refresh()},n.prototype.refresh=function(){return this.collections.racks.fetch().done(function(e){return function(){return e.view.render()}}(this))},n}(a),e.exports=s}).call(t,n(7))},function(e,t,n){var a,r,s,i,o,l,u,c=function(e,t){function n(){this.constructor=e}for(var a in t)p.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p={}.hasOwnProperty;u=n(247),a=n(72),r=n(71),s=n(635),o=n(342),l=n(494),i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return c(t,e),t.prototype.initialPageLoad=!0,t.prototype.initialize=function(e){this.state=e.state},t.prototype.render=function(){var e;if((this.collection.synced||"function"!=typeof(e=this.collection).isEmpty||!e.isEmpty())&&(l.render(o.createElement(s,{racks:this.collection}),this.el),this.state&&this.initialPageLoad)){ if("all"===this.state)return;return utils.scrollTo("#"+this.state),this.initialPageLoad=!1}},t}(u),e.exports=i},function(e,t,n){var a,r,s,i,o,l,u,c,p;u=n(342),s=n(636),i=n(606),c=n(607),r=n(497),a=n(604),p=n(6),l=n(71),o=u.createClass({typeName:{active:"Activated By",frozen:"Frozen By",decommissioning:"Decommissioned By"},showUser:function(e){var t;return"ACTIVE"===(t=e.state)||"DECOMMISSIONING"===t||"DECOMMISSIONED"===t||"STARTING_DECOMMISSION"===t},columnHeads:function(e){var t;return t=[{data:"ID"},{data:"Current State"},{data:"Uptime"}],this.typeName[e]&&t.push({data:this.typeName[e]}),t.push({data:"Message"}),t.push({}),t},refresh:function(){return this.props.racks.fetch().done(function(e){return function(){return e.forceUpdate()}}(this))},promptReactivate:function(e,t){return e.preventDefault(),t.promptReactivate(function(e){return function(){return e.refresh()}}(this))},promptDecommission:function(e,t){return e.preventDefault(),t.promptDecommission(function(e){return function(){return e.refresh()}}(this))},promptRemove:function(e,t){return e.preventDefault(),t.promptRemove(function(e){return function(){return e.refresh()}}(this))},getMaybeReactivateButton:function(e){var t,n;return t=e.attributes,"DECOMMISSIONING"===(n=t.state)||"DECOMMISSIONED"===n||"STARTING_DECOMMISSION"===n?u.createElement(r,{prop:{text:u.createElement(a,{iconClass:"new-window"}),onClickFn:function(t){return function(n){return t.promptReactivate(n,e)}}(this),title:"Reactivate",altText:"Reactivate "+t.id,overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"Reactivate "+t.id,overlayId:"reactivate"+t.id}}):null},getDecommissionOrRemoveButton:function(e){var t;return t=e.attributes,"ACTIVE"===t.state?u.createElement(r,{prop:{text:u.createElement(a,{iconClass:"trash"}),onClickFn:function(t){return function(n){return t.promptDecommission(n,e)}}(this),title:"Decommission",altText:"Decommission "+t.id,overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"Decommission "+t.id,overlayId:"decommission"+t.id}}):u.createElement(r,{prop:{text:u.createElement(a,{iconClass:"remove"}),onClickFn:function(t){return function(n){return t.promptRemove(n,e)}}(this),title:"Remove",altText:"Remove "+t.id,overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"Remove "+t.id,overlayId:"remove"+t.id}})},getData:function(e,t){var n,a;return a=t.attributes,n=[{component:i,prop:{text:a.id}},{component:i,prop:{text:p.humanizeText(a.state)}},{component:c,prop:{display:"duration",timestamp:a.uptime}}],this.typeName[e]&&n.push({component:i,prop:{text:this.showUser(a)&&a.user?a.user:""}}),n.push({component:i,prop:{text:a.currentState.message||""}}),n.push({component:i,className:"actions-column",prop:{text:u.createElement("div",null,this.getMaybeReactivateButton(t)," ",this.getDecommissionOrRemoveButton(t)," ")}}),n},getRacks:function(e,t){var n;return n=[],t.map(function(t){return function(a){return n.push({dataId:a.id,data:t.getData(e,a)})}}(this)),n},getActiveRacks:function(){return new l(this.props.racks.filter(function(e){var t;return"ACTIVE"===(t=e.get("state"))}))},getDecommissioningRacks:function(){return new l(this.props.racks.filter(function(e){var t;return"DECOMMISSIONING"===(t=e.get("state"))||"DECOMMISSIONED"===t||"STARTING_DECOMMISSION"===t}))},getInactiveRacks:function(){return new l(this.props.racks.filter(function(e){var t;return"DEAD"===(t=e.get("state"))||"MISSING_ON_STARTUP"===t}))},getStates:function(){return[{stateName:"Active",emptyTableMessage:"No Active Racks",stateTableColumnMetadata:this.columnHeads("active"),hostsInState:this.getRacks("active",this.getActiveRacks())},{stateName:"Decommissioning",emptyTableMessage:"No Decommissioning Racks",stateTableColumnMetadata:this.columnHeads("decommissioning"),hostsInState:this.getRacks("decommissioning",this.getDecommissioningRacks())},{stateName:"Inactive",emptyTableMessage:"No Inactive Racks",stateTableColumnMetadata:this.columnHeads("inactive"),hostsInState:this.getRacks("inactive",this.getInactiveRacks())}]},render:function(){return u.createElement(s,{header:"Racks",states:this.getStates()})}}),e.exports=o},function(e,t,n){var a,r,s;r=n(342),s=n(496),a=r.createClass({propTypes:{header:r.PropTypes.string.isRequired,states:r.PropTypes.arrayOf(r.PropTypes.shape({stateName:r.PropTypes.string.isRequired,stateTableColumnMetadata:r.PropTypes.arrayOf(r.PropTypes.shape({data:r.PropTypes.string,className:r.PropTypes.string,doSort:r.PropTypes.func,sortable:r.PropTypes["boolean"],sortAttr:r.PropTypes.string})).isRequired,hostsInState:r.PropTypes.arrayOf(r.PropTypes.shape({dataId:r.PropTypes.string.isRequired,className:r.PropTypes.string,data:r.PropTypes.arrayOf(r.PropTypes.shape({component:r.PropTypes.func.isRequired,prop:r.PropTypes.object,id:r.PropTypes.string,className:r.PropTypes.string})).isRequired})).isRequired,emptyTableMessage:r.PropTypes.string.isRequired})).isRequired},renderState:function(e,t){return r.createElement("div",{key:t},r.createElement("h2",null," ",e.stateName," "),r.createElement(s,{noPages:!0,tableClassOpts:"table-striped",columnHeads:e.stateTableColumnMetadata,tableRows:e.hostsInState,emptyTableMessage:e.emptyTableMessage}))},render:function(){return r.createElement("div",null,r.createElement("h1",null," ",this.props.header," "),this.props.states.map(this.renderState))}}),e.exports=a},function(e,t,n){(function(t){var a,r,s,i,o,l=function(e,t){function n(){this.constructor=e}for(var a in t)u.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},u={}.hasOwnProperty;a=n(65),s=n(326),o=n(638),r=n(297),i=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return l(n,e),n.prototype.initialize=function(e){return this.state=e.state,app.showPageLoader(),this.title("Slaves"),this.collections.slaves=new s([]),this.setView(new o(t.extend({state:this.state},{collection:this.collections.slaves}))),app.showView(this.view),this.refresh()},n.prototype.refresh=function(){return this.collections.slaves.fetch().done(function(e){return function(){return e.view.render()}}(this))},n}(a),e.exports=i}).call(t,n(7))},function(e,t,n){var a,r,s,i,o,l,u,c=function(e,t){function n(){this.constructor=e}for(var a in t)p.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p={}.hasOwnProperty;u=n(247),s=n(216),i=n(326),o=n(639),a=n(342),r=n(494),l=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return c(t,e),t.prototype.initialPageLoad=!0,t.prototype.initialize=function(e){this.state=e.state},t.prototype.render=function(){var e;if((this.collection.synced||"function"!=typeof(e=this.collection).isEmpty||!e.isEmpty())&&(r.render(a.createElement(o,{slaves:this.collection}),this.el),this.state&&this.initialPageLoad)){if("all"===this.state)return;return utils.scrollTo("#"+this.state),this.initialPageLoad=!1}},t}(u),e.exports=l},function(e,t,n){var a,r,s,i,o,l,u,c,p;o=n(342),s=n(636),i=n(606),c=n(607),r=n(497),a=n(604),p=n(6),u=n(326),l=o.createClass({typeName:{active:"Activated By",frozen:"Frozen By",decommissioning:"Decommissioned By"},showUser:function(e){var t;return"ACTIVE"===(t=e.state)||"DECOMMISSIONING"===t||"DECOMMISSIONED"===t||"STARTING_DECOMMISSION"===t},columnHeads:function(e){var t;return t=[{data:"ID"},{data:"State"},{data:"Since"},{data:"Rack"},{data:"Host"},{data:"Uptime",className:"hidden-xs"}],this.typeName[e]&&t.push({data:this.typeName[e]}),t.push({data:"Message"}),t.push({}),t},refresh:function(){return this.props.slaves.fetch().done(function(e){return function(){return e.forceUpdate()}}(this))},promptReactivate:function(e,t){return e.preventDefault(),t.promptReactivate(function(e){return function(){return e.refresh()}}(this))},promptDecommission:function(e,t){return e.preventDefault(),t.promptDecommission(function(e){return function(){return e.refresh()}}(this))},promptFreeze:function(e,t){return e.preventDefault(),t.promptFreeze(function(e){return function(){return e.refresh()}}(this))},promptRemove:function(e,t){return e.preventDefault(),t.promptRemove(function(e){return function(){return e.refresh()}}(this))},getMaybeReactivateButton:function(e){var t,n;return n=e.attributes,"DECOMMISSIONING"===(t=n.state)||"DECOMMISSIONED"===t||"STARTING_DECOMMISSION"===t||"FROZEN"===t?o.createElement(r,{prop:{text:o.createElement(a,{iconClass:"new-window"}),onClickFn:function(t){return function(n){return t.promptReactivate(n,e)}}(this),title:"Reactivate",altText:"Reactivate "+n.id,overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"Reactivate "+n.id,overlayId:"reactivate"+n.id}}):null},getMaybeFreezeButton:function(e){var t;return t=e.attributes,"ACTIVE"===t.state?o.createElement(r,{prop:{text:o.createElement(a,{iconClass:"stop"}),onClickFn:function(t){return function(n){return t.promptFreeze(n,e)}}(this),title:"Freeze",altText:"Freeze "+t.id,overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"Freeze "+t.id,overlayId:"freeze"+t.id}}):null},getDecommissionOrRemoveButton:function(e){var t,n;return n=e.attributes,"ACTIVE"===(t=n.state)||"FROZEN"===t?o.createElement(r,{prop:{text:o.createElement(a,{iconClass:"trash"}),onClickFn:function(t){return function(n){return t.promptDecommission(n,e)}}(this),title:"Decommission",altText:"Decommission "+n.id,overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"Decommission "+n.id,overlayId:"decommission"+n.id}}):o.createElement(r,{prop:{text:o.createElement(a,{iconClass:"remove"}),onClickFn:function(t){return function(n){return t.promptRemove(n,e)}}(this),title:"Remove",altText:"Remove "+n.id,overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"Remove "+n.id,overlayId:"remove"+n.id}})},getData:function(e,t){var n,a;return a=t.attributes,n=[{component:r,prop:{text:a.id,url:config.appRoot+"/tasks/active/all/"+a.host,altText:"All tasks running on host "+a.host}},{component:i,prop:{text:p.humanizeText(a.state)}},{component:c,prop:{display:"absoluteTimestamp",timestamp:a.currentState.timestamp}},{component:i,prop:{text:a.rackId}},{component:i,prop:{text:a.host}},{component:c,prop:{display:"duration",timestamp:a.uptime}}],this.typeName[e]&&n.push({component:i,prop:{text:this.showUser(a)&&a.user?a.user:""}}),n.push({component:i,prop:{text:a.currentState.message||""}}),n.push({component:i,className:"actions-column",prop:{text:o.createElement("div",null,this.getMaybeReactivateButton(t),this.getMaybeFreezeButton(t),this.getDecommissionOrRemoveButton(t))}}),n},getSlaves:function(e,t){var n;return n=[],t.map(function(t){return function(a){return n.push({dataId:a.id,data:t.getData(e,a)})}}(this)),n},getActiveSlaves:function(){return new u(this.props.slaves.filter(function(e){var t;return"ACTIVE"===(t=e.get("state"))}))},getFrozenSlaves:function(){return new u(this.props.slaves.filter(function(e){var t;return"FROZEN"===(t=e.get("state"))}))},getDecommissioningSlaves:function(){return new u(this.props.slaves.filter(function(e){var t;return"DECOMMISSIONING"===(t=e.get("state"))||"DECOMMISSIONED"===t||"STARTING_DECOMMISSION"===t}))},getInactiveSlaves:function(){return new u(this.props.slaves.filter(function(e){var t;return"DEAD"===(t=e.get("state"))||"MISSING_ON_STARTUP"===t}))},getStates:function(){return[{stateName:"Active",emptyTableMessage:"No Active Slaves",stateTableColumnMetadata:this.columnHeads("active"),hostsInState:this.getSlaves("active",this.getActiveSlaves())},{stateName:"Frozen",emptyTableMessage:"No Frozen Slaves",stateTableColumnMetadata:this.columnHeads("frozen"),hostsInState:this.getSlaves("decommissioning",this.getFrozenSlaves())},{stateName:"Decommissioning",emptyTableMessage:"No Decommissioning Slaves",stateTableColumnMetadata:this.columnHeads("decommissioning"),hostsInState:this.getSlaves("decommissioning",this.getDecommissioningSlaves())},{stateName:"Inactive",emptyTableMessage:"No Inactive Slaves",stateTableColumnMetadata:this.columnHeads("inactive"),hostsInState:this.getSlaves("inactive",this.getInactiveSlaves())}]},render:function(){return o.createElement(s,{header:"Slaves",states:this.getStates()})}}),e.exports=l},function(e,t,n){var a,r,s,i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;a=n(65),s=n(641),r=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return i(t,e),t.prototype.initialize=function(){return this.title("Not Found"),this.setView(new s),app.showView(this.view)},t}(a),e.exports=r},function(e,t,n){var a,r,s=function(e,t){return function(){return e.apply(t,arguments)}},i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=n(247),a=function(e){function t(){return this.render=s(this.render,this),t.__super__.constructor.apply(this,arguments)}return i(t,e),t.prototype.template=n(642),t.prototype.render=function(){return this.$el.html(this.template({fragment:Backbone.history.fragment}))},t}(r),e.exports=a},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return'
    \n

    404

    \n

    Page not found

    \n
    \n\n

    Sorry, we could not find the page you were looking for.

    \n
    '+e.escapeExpression((s=null!=(s=n.fragment||(null!=t?t.fragment:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"fragment",hash:{},data:r}):s))+"
    \n"},useData:!0})},function(e,t,n){(function(t){var a,r,s,i,o,l,u,c,p,d,h=function(e,t){function n(){this.constructor=e}for(var a in t)f.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},f={}.hasOwnProperty;a=n(65),o=n(339),p=n(202),r=n(644),c=n(645),l=n(646),i=n(647),u=n(295),d=n(297),s=function(e){function a(){return a.__super__.constructor.apply(this,arguments)}return h(a,e),a.prototype.templates={header:n(649),info:n(650),taskHistory:n(651),activeTasks:n(652),healthChecks:n(653)},a.prototype.initialize=function(e){return this.requestId=e.requestId,this.deployId=e.deployId,this.title(this.requestId+" deploy "+this.deployId),this.models.deploy=new o({deployId:this.deployId,requestId:this.requestId}),this.collections.taskHistory=new p([],{params:{requestId:this.requestId,deployId:this.deployId}}),this.collections.activeTasks=new r([],{requestId:this.requestId,deployId:this.deployId}),this.collections.healthChecks=new l([]),this.subviews.header=new d({model:this.models.deploy,template:this.templates.header}),this.subviews.info=new d({model:this.models.deploy,template:this.templates.info}),this.subviews.taskHistory=new u({collection:this.collections.taskHistory,template:this.templates.taskHistory}),this.subviews.activeTasks=new d({collection:this.collections.activeTasks,template:this.templates.activeTasks}),this.subviews.healthChecks=new d({collection:this.collections.healthChecks,template:this.templates.healthChecks}),this.refresh(),this.setView(new i(t.extend({requestId:this.requestId,deployId:this.deployId,subviews:this.subviews},{model:this.models.deploy}))),app.showView(this.view)},a.prototype.refresh=function(){var e,t;return t=this.models.deploy.fetch(),e=this.collections.taskHistory.fetch(),e.error(function(e){return function(){return e.ignore404}}(this)),e=this.collections.activeTasks.fetch(),e.error(function(e){return function(){return e.ignore404}}(this)),e.done(function(e){return function(){var t,n,a,r,s,i;for(e.collections.healthChecks.reset(),r=e.collections.activeTasks.models,s=[],n=0,a=r.length;n= 4.0.0"],main:function(e,t,n,a,r){return'\n
    \n\n
    \n
    \n\n
    \n
    \n\n
    \n
    \n \n
    \n'},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s,i=e.lambda,o=e.escapeExpression;return' \n '+o(i(null!=(s=null!=(s=null!=t?t.data:t)?s.deployResult:s)?s.deployState:s,t))+"\n \n"},3:function(e,t,n,a,r){return' \n pending\n \n'},5:function(e,t,n,a,r){var s,i=null!=t?t:{};return'
    \n
    \n
    \n
    Deploy had '+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.deployResult:s)?s.deployFailures:s)?s.length:s,t))+" failure"+(null!=(s=(n.ifNotEqual||t&&t.ifNotEqual||n.helperMissing).call(i,null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.deployResult:s)?s.deployFailures:s)?s.length:s,1,{name:"ifNotEqual",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?s:"")+':
    \n
    \n'+(null!=(s=n.each.call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.deployResult:s)?s.deployFailures:s,{name:"each",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?s:"")+"
    \n
    \n
    \n
    \n"},6:function(e,t,n,a,r){return"s"},8:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.taskId:t,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.program(12,r,0),data:r}))?s:""},9:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u=e.escapeExpression,c=e.lambda;return' '+u(c(null!=(s=null!=t?t.taskId:t)?s.id:s,t))+": "+u((n.humanizeText||t&&t.humanizeText||l).call(o,null!=t?t.reason:t,{name:"humanizeText",hash:{},data:r}))+" (Instance "+u(c(null!=(s=null!=t?t.taskId:t)?s.instanceNo:s,t))+")"+(null!=(s=n["if"].call(o,null!=t?t.message:t,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?s:"")+"\n"},10:function(e,t,n,a,r){var s;return": "+e.escapeExpression((s=null!=(s=n.message||(null!=t?t.message:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"message",hash:{},data:r}):s))},12:function(e,t,n,a,r){var s,i=null!=t?t:{};return'
  • '+e.escapeExpression((n.humanizeText||t&&t.humanizeText||n.helperMissing).call(i,null!=t?t.reason:t,{name:"humanizeText",hash:{},data:r}))+(null!=(s=n["if"].call(i,null!=t?t.message:t,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?s:"")+"
  • \n"},14:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=(s=null!=t?t.data:t)?s.deployResult:s)?s.message:s,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?s:""},15:function(e,t,n,a,r){var s;return'
    \n
    \n
    \n '+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=t?t.data:t)?s.deployResult:s)?s.message:s,t))+"\n
    \n
    \n
    \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=e.escapeExpression,u=e.lambda;return'
    \n \n\n
    \n
    \n

    \n \n '+l(u(null!=(s=null!=t?t.data:t)?s.deployId:s,t))+"\n \n"+(null!=(s=n["if"].call(o,null!=(s=null!=(s=null!=t?t.data:t)?s.deployResult:s)?s.deployState:s,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?s:"")+'

    \n
    \n \n
    \n \n'+(null!=(s=n["if"].call(o,null!=(s=null!=(s=null!=t?t.data:t)?s.deployResult:s)?s.deployFailures:s,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(14,r,0),data:r}))?s:"")+"
    \n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l=e.escapeExpression;return'
  • \n
    \n

    InitiatedCopy

    \n

    '+l((n.timestampFromNow||t&&t.timestampFromNow||o).call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.deployMarker:s)?s.timestamp:s,{name:"timestampFromNow",hash:{},data:r}))+"

    \n
    \n
  • \n"},3:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l=e.escapeExpression;return'
  • \n
    \n

    CompletedCopy

    \n

    '+l((n.timestampFromNow||t&&t.timestampFromNow||o).call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.deployResult:s)?s.timestamp:s,{name:"timestampFromNow",hash:{},data:r}))+"

    \n
    \n
  • \n"},5:function(e,t,n,a,r){var s,i=e.lambda,o=e.escapeExpression;return'
  • \n
    \n

    CommandCopy

    \n

    '+o(i(null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.deploy:s)?s.executorData:s)?s.cmd:s,t))+"

    \n
    \n
  • \n"},7:function(e,t,n,a,r){var s,i=e.lambda,o=e.escapeExpression;return'
  • \n
    \n

    ResourcesCopy

    \n

    CPUs: '+o(i(null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.deploy:s)?s.resources:s)?s.cpus:s,t))+" | Memory (MB): "+o(i(null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.deploy:s)?s.resources:s)?s.memoryMb:s,t))+" | Ports: "+o(i(null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.deploy:s)?s.resources:s)?s.numPorts:s,t))+"\n

    \n
    \n
  • \n"},9:function(e,t,n,a,r){var s,i=e.lambda,o=e.escapeExpression;return'
  • \n
    \n

    Number of TasksCopy

    \n

    '+o(i(null!=(s=null!=(s=null!=t?t.data:t)?s.deployStatistics:s)?s.numTasks:s,t))+"

    \n
    \n
  • \n"},11:function(e,t,n,a,r){var s,i=null!=t?t:{},o=n.helperMissing,l=e.escapeExpression;return'
  • \n
    \n

    Last Task StateCopy

    \n

    '+l((n.humanizeText||t&&t.humanizeText||o).call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.deployStatistics:s)?s.lastTaskState:s,{name:"humanizeText",hash:{},data:r}))+"

    \n
    \n
  • \n"},13:function(e,t,n,a,r){var s,i=e.lambda,o=e.escapeExpression;return'
  • \n
    \n

    Sequential RetriesCopy

    \n

    '+o(i(null!=(s=null!=(s=null!=t?t.data:t)?s.deployStatistics:s)?s.numSequentialRetries:s,t))+"

    \n
    \n
  • \n"},15:function(e,t,n,a,r){var s,i=e.lambda,o=e.escapeExpression;return'
  • \n
    \n

    Average Runtime MillisecondsCopy

    \n

    '+o(i(null!=(s=null!=(s=null!=t?t.data:t)?s.deployStatistics:s)?s.averageRuntimeMillis:s,t))+"

    \n
    \n
  • \n"},17:function(e,t,n,a,r){var s,i=e.lambda,o=e.escapeExpression;return'
  • \n
    \n

    Extra Command Line ArgumentsCopy

    \n

    '+o(i(null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.deploy:s)?s.executorData:s)?s.extraCmdLineArgs:s,t))+"

    \n
    \n
  • \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i=null!=t?t:{};return'
    \n\n
    \n
      \n'+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.deployMarker:s)?s.timestamp:s,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.deployResult:s)?s.timestamp:s,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.deploy:s)?s.executorData:s)?s.cmd:s,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.deploy:s)?s.resources:s)?s.cpus:s,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.deployStatistics:s)?s.numTasks:s,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.deployStatistics:s)?s.lastTaskState:s,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.deployStatistics:s)?s.numSequentialRetries:s,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=t?t.data:t)?s.deployStatistics:s)?s.averageRuntimeMillis:s,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?s:"")+(null!=(s=n["if"].call(i,null!=(s=null!=(s=null!=(s=null!=t?t.data:t)?s.deploy:s)?s.executorData:s)?s.extraCmdLineArgs:s,{name:"if",hash:{},fn:e.program(17,r,0),inverse:e.noop, data:r}))?s:"")+"
    \n
    \n
    \n"},useData:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r,s,i){var o;return'
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(o=n.each.call(null!=t?t:{},null!=t?t.data:t,{name:"each",hash:{},fn:e.program(2,r,0,s,i),inverse:e.noop,data:r}))?o:"")+" \n
    \n Name\n
    \n
    \n"},2:function(e,t,n,a,r,s,i){var o,l,u=e.lambda,c=e.escapeExpression,p=null!=t?t:{},d=n.helperMissing,h="function";return' \n \n \n \n '+c(u(null!=(o=null!=t?t.taskId:t)?o.id:o,t))+'\n \n \n \n \n \n '+c((n.humanizeText||t&&t.humanizeText||d).call(p,null!=t?t.lastTaskState:t,{name:"humanizeText",hash:{},data:r}))+'\n \n \n \n '+c(u(null!=(o=null!=t?t.taskId:t)?o.deployId:o,t))+'\n \n \n '+c((n.timestampFromNow||t&&t.timestampFromNow||d).call(p,null!=(o=null!=t?t.taskId:t)?o.startedAt:o,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n '+c((n.timestampFromNow||t&&t.timestampFromNow||d).call(p,null!=t?t.updatedAt:t,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n \n ...\n \n \n \n \n { }\n \n \n \n'},4:function(e,t,n,a,r){return'
    \n No tasks\n
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r,s,i){var o;return'\n'+(null!=(o=n["if"].call(null!=t?t:{},null!=(o=null!=t?t.data:t)?o.length:o,{name:"if",hash:{},fn:e.program(1,r,0,s,i),inverse:e.program(4,r,0,s,i),data:r}))?o:"")},useData:!0,useDepths:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r,s,i){var o;return'
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(o=n.each.call(null!=t?t:{},null!=t?t.data:t,{name:"each",hash:{},fn:e.program(2,r,0,s,i),inverse:e.noop,data:r}))?o:"")+" \n
    \n Name\n
    \n
    \n"},2:function(e,t,n,a,r,s,i){var o,l,u=e.lambda,c=e.escapeExpression,p=null!=t?t:{},d=n.helperMissing,h="function";return' \n \n \n \n '+c(u(null!=(o=null!=t?t.taskId:t)?o.id:o,t))+'\n \n \n \n \n \n '+c((n.humanizeText||t&&t.humanizeText||d).call(p,null!=t?t.lastTaskState:t,{name:"humanizeText",hash:{},data:r}))+'\n \n \n \n '+c(u(null!=(o=null!=t?t.taskId:t)?o.deployId:o,t))+'\n \n \n '+c((n.timestampFromNow||t&&t.timestampFromNow||d).call(p,null!=(o=null!=t?t.taskId:t)?o.startedAt:o,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n '+c((n.timestampFromNow||t&&t.timestampFromNow||d).call(p,null!=t?t.updatedAt:t,{name:"timestampFromNow",hash:{},data:r}))+'\n \n \n \n ...\n \n \n \n \n { }\n \n \n \n'},4:function(e,t,n,a,r){return'
    \n No tasks\n
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r,s,i){var o;return'\n'+(null!=(o=n["if"].call(null!=t?t:{},null!=(o=null!=t?t.data:t)?o.length:o,{name:"if",hash:{},fn:e.program(1,r,0,s,i),inverse:e.program(4,r,0,s,i),data:r}))?o:"")},useData:!0,useDepths:!0})},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){var s,i=null!=t?t:{};return' \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n'+(null!=(s=n.each.call(i,null!=t?t.data:t,{name:"each",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?s:"")+" \n
    TaskTimestampDurationStatusMessage
    \n
    \n
    \n"},2:function(e,t,n,a,r){return" collapse\n"},4:function(e,t,n,a,r){return" view\n"},6:function(e,t,n,a,r){return"hide"},8:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=t?t.durationMillis:t,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?s:""},9:function(e,t,n,a,r){var s,i,o=e.lambda,l=e.escapeExpression,u=null!=t?t:{},c=n.helperMissing,p="function";return' \n \n \n '+l(o(null!=(s=null!=t?t.taskId:t)?s.id:s,t))+"\n \n \n \n "+l((n.timestampFormattedWithSeconds||t&&t.timestampFormattedWithSeconds||c).call(u,null!=t?t.timestamp:t,{name:"timestampFormattedWithSeconds",hash:{},data:r}))+"\n \n \n "+l((i=null!=(i=n.durationMillis||(null!=t?t.durationMillis:t))?i:c,typeof i===p?i.call(u,{name:"durationMillis",hash:{},data:r}):i))+(null!=(s=n["if"].call(u,null!=t?t.durationMillis:t,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?s:"")+"\n \n \n"+(null!=(s=n["if"].call(u,null!=t?t.statusCode:t,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.program(17,r,0),data:r}))?s:"")+' \n \n
    '+(null!=(s=n["if"].call(u,null!=t?t.errorMessage:t,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.program(21,r,0),data:r}))?s:"")+'
    \n \n \n \n { }\n \n \n \n'},10:function(e,t,n,a,r){return"ms"},12:function(e,t,n,a,r){var s;return null!=(s=(n.ifEqual||t&&t.ifEqual||n.helperMissing).call(null!=t?t:{},null!=t?t.statusCode:t,200,{name:"ifEqual",hash:{},fn:e.program(13,r,0),inverse:e.program(15,r,0),data:r}))?s:""},13:function(e,t,n,a,r){var s;return' HTTP '+e.escapeExpression((s=null!=(s=n.statusCode||(null!=t?t.statusCode:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"statusCode",hash:{},data:r}):s))+"\n"},15:function(e,t,n,a,r){var s;return' HTTP '+e.escapeExpression((s=null!=(s=n.statusCode||(null!=t?t.statusCode:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"statusCode",hash:{},data:r}):s))+"\n"},17:function(e,t,n,a,r){return' No Response\n'},19:function(e,t,n,a,r){var s;return e.escapeExpression((s=null!=(s=n.errorMessage||(null!=t?t.errorMessage:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"errorMessage",hash:{},data:r}):s))},21:function(e,t,n,a,r){var s;return e.escapeExpression((s=null!=(s=n.responseBody||(null!=t?t.responseBody:t))?s:n.helperMissing,"function"==typeof s?s.call(null!=t?t:{},{name:"responseBody",hash:{},data:r}):s))},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s;return null!=(s=n["if"].call(null!=t?t:{},null!=(s=null!=t?t.data:t)?s.length:s,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?s:""},useData:!0})},function(e,t,n){(function(t){var a,r,s,i,o,l,u,c,p,d,h=function(e,t){function n(){this.constructor=e}for(var a in t)f.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},f={}.hasOwnProperty;r=n(65),i=n(655),o=n(657),u=n(670),d=n(698),c=n(699),p=n(700),s=n(685),a=n(687),l=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return h(n,e),n.prototype.initialize=function(e){var n,r,i,l,h,f;return this.requestId=e.requestId,this.path=e.path,this.initialOffset=e.initialOffset,h=e.taskIds,f=e.viewMode,l=e.search,this.title("Tail of "+t.last(this.path.split("/"))),r={viewMode:f,colors:["Default","Light","Dark"],logRequestLength:3e4,activeRequest:{requestId:this.requestId}},i=[d["default"]],window.localStorage.enableReduxLogging&&i.push(c()),this.store=u.createStore(p,r,u.compose(u.applyMiddleware.apply(this,i))),n=h.length>0?this.store.dispatch(s.initialize(this.requestId,this.path,l,h)):this.store.dispatch(s.initializeUsingActiveTasks(this.requestId,this.path,l)),n.then(function(e){return function(){return e.store.dispatch(a.updateActiveTasks(e.requestId))}}(this)),this.view=new o(this.store),this.setView(this.view),app.showView(this.view),window.getStateJSON=function(e){return function(){return JSON.stringify(e.store.getState())}}(this)},n}(r),e.exports=l}).call(t,n(7))},function(e,t,n){(function(t,a){var r,s,i,o,l,u=function(e,t){return function(){return e.apply(t,arguments)}},c=function(e,t){function n(){this.constructor=e}for(var a in t)p.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p={}.hasOwnProperty;r=n(67),s=n(656),o=n(74),l=function(e){return function(e){return e<0?0:e}}(this),i=function(e){function n(){return this.parse=u(this.parse,this),this.fetchOffset=u(this.fetchOffset,this),this.fetchFromStart=u(this.fetchFromStart,this),this.fetchNext=u(this.fetchNext,this),this.fetchInitialData=u(this.fetchInitialData,this),this.getStartOffsetOfLastLine=u(this.getStartOffsetOfLastLine,this),this.getMaxOffset=u(this.getMaxOffset,this),this.getMinOffset=u(this.getMinOffset,this),this.url=u(this.url,this),n.__super__.constructor.apply(this,arguments)}return c(n,e),n.prototype.model=s,n.prototype.comparator="offset",n.prototype.delimiter=/\n/,n.lastTimestamp=null,n.timestampIndex=0,n.grep="",n.nextOffset=null,n.prototype.baseRequestLength=3e4,n.prototype.state=new Backbone.Model({reachedEndOfFile:!1,moreToFetch:void 0,moreToFetchAtBeginning:void 0,pendingFetchPrev:!1,pendingFetchNext:!1}),n.prototype.url=function(){return config.apiRoot+"/sandbox/"+this.taskId+"/read"},n.prototype.initialize=function(e,t){this.taskId=t.taskId,this.path=t.path,this.ajaxError=t.ajaxError},n.prototype.getMinOffset=function(){return this.length>0?this.first().getStartOffset():0},n.prototype.getMaxOffset=function(){return this.length>0?this.last().getEndOffset():0},n.prototype.getStartOffsetOfLastLine=function(){return this.length>0?this.last().getStartOffset():0},n.prototype.fetchInitialData=function(e){var n;return null==e&&(e=t.noop),n=a.ajax({url:this.url(),data:{path:this.path,length:this.baseRequestLength}}),n.done(function(t){return function(n){var a,r;return a=Math.max(0,n.offset-t.baseRequestLength),t.ajaxError.set({present:!1}),r=t.fetch({data:{path:t.path,offset:a,length:t.initialRequestLength}}),t.trigger("initialdata"),r.done(function(){return t.state.set("reachedEndOfFile",!0),e()})}}(this)),n.error(function(e){return function(t){var n;if(400===(n=t.status)||404===n||500===n)return app.caughtError(),e.ajaxError.setFromErrorResponse(t)}}(this)),n},n.prototype.fetchPrevious=function(){if(!this.state.get("pendingFetchPrev"))return this.state.set("pendingFetchPrev",!0),this.fetch({data:{offset:Math.max(0,this.getMinOffset()-this.baseRequestLength),length:Math.min(this.getMinOffset(),this.baseRequestLength)}}).error(function(e){return function(e){if(404===e.status)return app.caughtError()}}(this)).done(function(e){return function(){return e.state.set("pendingFetchPrev",!1)}}(this))},n.prototype.fetchNext=function(){if(!this.state.get("pendingFetchNext"))return this.state.set("pendingFetchNext",!0),this.fetch({data:{offset:this.nextOffset||this.getMaxOffset()}}).error(function(e){return function(e){if(404===e.status)return app.caughtError()}}(this)).done(function(e){return function(){return e.state.set("pendingFetchNext",!1)}}(this))},n.prototype.fetchFromStart=function(){return this.fetch({data:{offset:0}})},n.prototype.fetchOffset=function(e){return this.fetch({data:{offset:e-1,done:function(e){return function(){return e.trigger("initialOffsetData")}}(this)}})},n.prototype.fetch=function(e){var a,r;return null==e&&(e={}),a={remove:!1,data:t.extend({path:this.path,length:this.baseRequestLength,grep:this.grep},e.data)},r=n.__super__.fetch.call(this,t.extend(e,a))},n.prototype.reset=function(){return this.state.set({moreToFetch:void 0,moreToFetchAtBeginning:void 0,reachedEndOfFile:!1}),n.__super__.reset.apply(this,arguments)},n.prototype.parse=function(e,n){var a,r,s,i,l,u,c,p;if(e.offset>=this.getMaxOffset()?(this.nextOffset=e.nextOffset||e.offset+e.data.length,this.state.set("reachedEndOfFile",0===e.data.length&&n.data.length>0)):this.nextOffset=null,0===e.data.length)return[];if(l=t.initial(e.data.match(/[^\n]*(\n|$)/g)),this.state.set("moreToFetch",e.data.length===n.data.length&&e.offset>=this.getMaxOffset()),this.state.set("moreToFetchAtBeginning",e.offset>0&&this.getMinOffset()>0),e.offset>0&&e.offset===this.getMaxOffset()&&(c=this.at(-1),c.get("data").endsWith("\n")||(c.set({data:c.get("data")+l[0]}),e.offset+=l[0].length,l=t.rest(l))),e.offset+e.data.length===this.getMinOffset()&&(c=this.at(0),s=t.last(l),s.endsWith("\n")||(c.set({data:s+c.get("data"),offset:c.get("offset")-s.length}),l=t.initial(l))),this.lastTimestamp=null,this.firstTimestamp=null,u=e.offset,p=l.map(function(e){return function(t){var n,a,r,s;return r=o(t),s=o(t,"HH:mm:ss.SSS"),r.isValid()||s.isValid()?(a=r.isValid()?r:s,e.lastTimestamp||(e.firstTimestamp=a),e.lastTimestamp=a,e.timestampIndex=0):(a=e.lastTimestamp,e.lastTimestamp&&e.timestampIndex++),n={data:t,offset:u,timestamp:a,timestampIndex:e.timestampIndex,taskId:e.taskId},u+=t.length,n}}(this)),this.firstTimestamp)for(a=0,i=p.length;at.taskId?-1:1:e.timestampIndex!==t.timestampIndex?e.timestampIndex>t.timestampIndex?-1:1:0}}(this))},n}(r),e.exports=i}).call(t,n(7),n(1))},function(e,t,n){var a,r,s=function(e,t){return function(){return e.apply(t,arguments)}},i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=n(68),a=function(e){function t(){return this.getEndOffset=s(this.getEndOffset,this),this.getStartOffset=s(this.getStartOffset,this),t.__super__.constructor.apply(this,arguments)}return i(t,e),t.prototype.idAttribute="offset",t.prototype.getStartOffset=function(){return this.get("offset")},t.prototype.getEndOffset=function(){return this.get("offset")+this.get("data").length},t}(r),e.exports=a},function(e,t,n){(function(t){var a,r,s,i,o,l,u=function(e,t){return function(){return e.apply(t,arguments)}},c=function(e,t){function n(){this.constructor=e}for(var a in t)p.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p={}.hasOwnProperty;l=n(247),i=n(342),o=n(494),a=n(658),s=n(663).Provider,r=function(e){function n(){return this.handleViewChange=u(this.handleViewChange,this),n.__super__.constructor.apply(this,arguments)}return c(n,e),n.prototype.initialize=function(e){return window.addEventListener("viewChange",this.handleViewChange),this.component=i.createElement(s,{store:e},i.createElement(a,null))},n.prototype.handleViewChange=function(){var e;if(e=o.unmountComponentAtNode(this.el))return window.removeEventListener("viewChange",this.handleViewChange)},n.prototype.render=function(){return t(this.el).addClass("tail-root"),o.render(this.component,this.el)},n}(l),e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){var a,r,s,i,o,l,u,c,p,d,h,f=function(e,t){function n(){this.constructor=e}for(var a in t)m.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},m={}.hasOwnProperty;i=n(342),r=n(659),a=n(661),o=n(690),l=n(663).connect,p=n(685),d=p.updateGroups,h=p.updateTaskStatuses,s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return f(t,e),t.propTypes={taskGroupsCount:i.PropTypes.number.isRequired,ready:i.PropTypes.bool.isRequired,updateGroups:i.PropTypes.func.isRequired,updateTaskStatuses:i.PropTypes.func.isRequired},t.prototype.renderTaskGroups=function(){var e,t,n,a,r,s,l,u,c,p;for(c=[],p=4===this.props.taskGroupsCount?2:3,l=[],e=t=1,a=Math.min(this.props.taskGroupsCount,p);1<=a?t<=a:t>=a;e=1<=a?++t:--t)l.push(i.createElement(o,{key:e-1,taskGroupId:e-1,taskGroupContainerCount:Math.min(this.props.taskGroupsCount,p)}));if(c.push(l),this.props.taskGroupsCount>p){for(l=[],e=n=r=p+1,s=Math.min(this.props.taskGroupsCount,6);r<=s?n<=s:n>=s;e=r<=s?++n:--n)l.push(i.createElement(o,{key:e-1,taskGroupId:e-1,taskGroupContainerCount:Math.min(this.props.taskGroupsCount,6)-p}));c.push(l)}return u="row tail-row",c.length>1&&(u="row tail-row-half"),c.map(function(e,t){return i.createElement("div",{key:t,className:u},e)})},t.prototype.render=function(){return i.createElement("div",null,i.createElement(r,{enabled:this.props.ready,timeout:2e3,callback:this.props.updateGroups}),i.createElement(r,{enabled:!0,timeout:1e4,callback:this.props.updateTaskStatuses}),i.createElement(a,null),this.renderTaskGroups())},t}(i.Component),c=function(e){return{taskGroupsCount:e.taskGroups.length,ready:t.all(t.pluck(e.taskGroups,"ready"))}},u={updateGroups:d,updateTaskStatuses:h},e.exports=l(c,u)(s)}).call(t,n(7))},,,function(e,t,n){var a,r,s,i,o,l,u,c,p,d,h,f,m=function(e,t){function n(){this.constructor=e}for(var a in t)y.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},y={}.hasOwnProperty;s=n(342),a=n(662),i=n(688),o=n(689),l=n(663).connect,p=n(685),f=p.switchViewMode,h=p.scrollAllToTop,d=p.scrollAllToBottom,r=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return m(t,e),t.propTypes={requestId:s.PropTypes.string.isRequired,path:s.PropTypes.string.isRequired,multipleTasks:s.PropTypes.bool.isRequired,viewMode:s.PropTypes.string.isRequired,switchViewMode:s.PropTypes.func.isRequired,scrollAllToBottom:s.PropTypes.func.isRequired,scrollAllToTop:s.PropTypes.func.isRequired},t.prototype.renderBreadcrumbs=function(){return this.props.path.split("/").map(function(e,t){return"$TASK_ID"===e?s.createElement("li",{key:t},s.createElement("span",{className:"label label-info"},"Task ID")):s.createElement("li",{key:t},e)})},t.prototype.renderViewButtons=function(){if(this.props.multipleTasks)return s.createElement("div",{className:"btn-group",role:"group",title:"Select View Type"},s.createElement("button",{type:"button",className:"btn btn-sm btn-default no-margin "+("unified"===this.props.viewMode?"active":void 0),onClick:function(e){return function(){return e.props.switchViewMode("unified")}}(this)},"Unified"),s.createElement("button",{type:"button",className:"btn btn-sm btn-default no-margin "+("split"===this.props.viewMode?"active":void 0),onClick:function(e){return function(){return e.props.switchViewMode("split")}}(this)},"Split"))},t.prototype.renderAnchorButtons=function(){if(this.props.taskGroupCount>1)return s.createElement("span",null,s.createElement("a",{className:"btn btn-default btn-sm tail-bottom-button",onClick:this.props.scrollAllToBottom,title:"Scroll All to Bottom"},s.createElement("span",{className:"glyphicon glyphicon-chevron-down"})),s.createElement("a",{className:"btn btn-default btn-sm tail-top-button",onClick:this.props.scrollAllToTop,title:"Scroll All to Top"},s.createElement("span",{className:"glyphicon glyphicon-chevron-up"})))},t.prototype.render=function(){return s.createElement("div",{className:"tail-header"},s.createElement("div",{className:"row"},s.createElement("div",{className:"col-md-3"},s.createElement("ul",{className:"breadcrumb breadcrumb-request"},s.createElement("li",null,"Request ",s.createElement("a",{href:config.appRoot+"/request/"+this.props.requestId},this.props.requestId)))),s.createElement("div",{className:"col-md-6"},s.createElement("ul",{className:"breadcrumb"},this.renderBreadcrumbs())),s.createElement("div",{className:"col-md-3 hidden-xs tail-buttons"},s.createElement(i,null),s.createElement(o,null),s.createElement(a,null),this.renderViewButtons(),this.renderAnchorButtons())))},t}(s.Component),c=function(e){return{taskGroupCount:e.taskGroups.length,multipleTasks:e.taskGroups.length>1||e.taskGroups.length>0&&e.taskGroups[0].taskIds.length>1,path:e.path,viewMode:e.viewMode,requestId:e.activeRequest.requestId}},u={switchViewMode:f,scrollAllToBottom:d,scrollAllToTop:h},e.exports=l(c,u)(r)},function(e,t,n){var a,r,s,i,o,l,u,c=function(e,t){function n(){this.constructor=e}for(var a in t)p.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p={}.hasOwnProperty;r=n(342),s=n(572),i=n(663).connect,u=n(685).selectLogColor,a=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return c(t,e),t.prototype.renderColorChoices=function(){var e;return e=this.props.activeColor,this.props.colors.map(function(e){return function(t,n){var a,i;return i=t.toLowerCase().replace(" ","-"),a=s({active:e.props.activeColor===i}),r.createElement("li",{key:n,className:a},r.createElement("a",{onClick:function(){return e.props.selectLogColor(i)}},t))}}(this))},t.prototype.render=function(){return r.createElement("div",{className:"btn-group",title:"Select Color Scheme"},r.createElement("button",{type:"button",className:"btn btn-default btn-sm dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},r.createElement("span",{className:"glyphicon glyphicon-adjust"})," ",r.createElement("span",{className:"caret"})),r.createElement("ul",{className:"dropdown-menu dropdown-menu-right"},this.renderColorChoices()))},t}(r.Component),l=function(e){return{colors:e.colors,activeColor:e.activeColor}},o={selectLogColor:u},e.exports=i(l,o)(a)},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.connect=t.Provider=void 0;var r=n(664),s=a(r),i=n(667),o=a(i);t.Provider=s["default"],t.connect=o["default"]},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t["default"]=void 0;var o=n(342),l=n(665),u=a(l),c=n(666),p=(a(c),function(e){function t(n,a){r(this,t);var i=s(this,e.call(this,n,a));return i.store=n.store,i}return i(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){var e=this.props.children;return o.Children.only(e)},t}(o.Component));t["default"]=p,p.propTypes={store:u["default"].isRequired,children:o.PropTypes.element.isRequired},p.childContextTypes={store:u["default"].isRequired}},function(e,t,n){"use strict";t.__esModule=!0;var a=n(342);t["default"]=a.PropTypes.shape({subscribe:a.PropTypes.func.isRequired,dispatch:a.PropTypes.func.isRequired,getState:a.PropTypes.func.isRequired})},function(e,t){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e){return e.displayName||e.name||"Component"}function l(e,t){try{return e.apply(t)}catch(n){return L.value=n,L}}function u(e,t,n){var a=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],u=Boolean(e),d=e||M,f=void 0;f="function"==typeof t?t:t?(0,v["default"])(t):x;var y=n||S,g=a.pure,_=void 0===g||g,b=a.withRef,T=void 0!==b&&b,E=_&&y!==S,I=D++;return function(e){function t(e,t,n){var a=y(e,t,n);return a}var n="Connect("+o(e)+")",a=function(a){function o(e,t){r(this,o);var i=s(this,a.call(this,e,t));i.version=I,i.store=e.store||t.store,(0,w["default"])(i.store,'Could not find "store" in either the context or '+('props of "'+n+'". ')+"Either wrap the root component in a , "+('or explicitly pass "store" as a prop to "'+n+'".'));var l=i.store.getState();return i.state={storeState:l},i.clearCache(),i}return i(o,a),o.prototype.shouldComponentUpdate=function(){return!_||this.haveOwnPropsChanged||this.hasStoreStateChanged},o.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t); var n=e.getState(),a=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,t):this.finalMapStateToProps(n);return a},o.prototype.configureFinalMapState=function(e,t){var n=d(e.getState(),t),a="function"==typeof n;return this.finalMapStateToProps=a?n:d,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,a?this.computeStateProps(e,t):n},o.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var n=e.dispatch,a=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,t):this.finalMapDispatchToProps(n);return a},o.prototype.configureFinalMapDispatch=function(e,t){var n=f(e.dispatch,t),a="function"==typeof n;return this.finalMapDispatchToProps=a?n:f,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,a?this.computeDispatchProps(e,t):n},o.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,m["default"])(e,this.stateProps))&&(this.stateProps=e,!0)},o.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,m["default"])(e,this.dispatchProps))&&(this.dispatchProps=e,!0)},o.prototype.updateMergedPropsIfNeeded=function(){var e=t(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&E&&(0,m["default"])(e,this.mergedProps))&&(this.mergedProps=e,!0)},o.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},o.prototype.trySubscribe=function(){u&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},o.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},o.prototype.componentDidMount=function(){this.trySubscribe()},o.prototype.componentWillReceiveProps=function(e){_&&(0,m["default"])(e,this.props)||(this.haveOwnPropsChanged=!0)},o.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},o.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},o.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!_||t!==e){if(_&&!this.doStatePropsDependOnOwnProps){var n=l(this.updateStatePropsIfNeeded,this);if(!n)return;n===L&&(this.statePropsPrecalculationError=L.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},o.prototype.getWrappedInstance=function(){return(0,w["default"])(T,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},o.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,a=this.haveStatePropsBeenPrecalculated,r=this.statePropsPrecalculationError,s=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,r)throw r;var i=!0,o=!0;_&&s&&(i=n||t&&this.doStatePropsDependOnOwnProps,o=t&&this.doDispatchPropsDependOnOwnProps);var l=!1,u=!1;a?l=!0:i&&(l=this.updateStatePropsIfNeeded()),o&&(u=this.updateDispatchPropsIfNeeded());var d=!0;return d=!!(l||u||t)&&this.updateMergedPropsIfNeeded(),!d&&s?s:(T?this.renderedElement=(0,p.createElement)(e,c({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,p.createElement)(e,this.mergedProps),this.renderedElement)},o}(p.Component);return a.displayName=n,a.WrappedComponent=e,a.contextTypes={store:h["default"]},a.propTypes={store:h["default"]},(0,k["default"])(a,e)}}var c=Object.assign||function(e){for(var t=1;t0)return s=i+a.length,t(M(e,c,a,i,s,!0,r))})):Promise.resolve()}),Promise.all(s).then(function(){return t({taskGroupId:e,type:"LOG_REQUEST_END"})}))}},E=function(e){return function(t,n){var r,s,i,o,u,c,d;return o=n(),d=o.tasks,c=o.taskGroups,r=o.logRequestLength,s=o.maxLines,u=c[e],d=p(u,d),a.all(d.map(function(e){var t;return t=e.minOffset,0===t}))?Promise.resolve():u.pendingRequests?Promise.resolve():(t({taskGroupId:e,type:"LOG_REQUEST_START"}),i=d.map(function(n){var a,i,o,u,c,p;return c=n.taskId,a=n.exists,o=n.minOffset,u=n.path,i=n.initialDataLoaded,o>0&&i&&a!==!1?(p=l(c,u,Math.max(o-r,0),Math.min(r,o)),p.done(function(n){var a,r,i;if(a=n.data,i=n.offset,r=n.nextOffset,a.length>0)return r=i+a.length,t(M(e,c,a,i,r,!1,s))})):Promise.resolve()}),Promise.all(i).then(function(){return t({taskGroupId:e,type:"LOG_REQUEST_END"})}))}},M=function(e,t,n,a,r,s,i){return{taskGroupId:e,taskId:t,data:n,offset:a,nextOffset:r,append:s,maxLines:i,type:"LOG_TASK_DATA"}},S=function(e,t){return{taskId:e,filesize:t,type:"LOG_TASK_FILESIZE"}},O=function(e,t){return function(n,a){if(a().taskGroups[e].top!==t&&(n({taskGroupId:e,visible:t,type:"LOG_TASK_GROUP_TOP"}),t))return n(E(e))}},L=function(e,t,n){return null==n&&(n=!1),function(r,s){var i,o,l,u;if(i=s(),l=i.taskGroups,u=i.tasks,o=l[e],o.tailing!==n&&(n===!1||a.all(p(o,u).map(function(e){var t,n;return n=e.maxOffset,t=e.filesize,n>=t})))&&r({taskGroupId:e,tailing:n,type:"LOG_TASK_GROUP_TAILING"}),o.bottom!==t&&(r({taskGroupId:e,visible:t,type:"LOG_TASK_GROUP_BOTTOM"}),t))return r(D(e))}},i=function(e){return{offset:e,type:"LOG_CLICK_OFFSET_LINK"}},k=function(e){return{color:e,type:"LOG_SELECT_COLOR"}},w=function(e){return function(t,n){var r,s,i,o,l,u,c;if(i=n(),l=i.taskGroups,s=i.path,r=i.activeRequest,o=i.search,c=i.viewMode,"custom"!==e&&e!==c)return u=a.flatten(a.pluck(l,"taskIds")),t({viewMode:e,type:"LOG_SWITCH_VIEW_MODE"}),t(f(r.requestId,s,o,u))}},T=function(e){return function(t,n){var r,s,i,o,l;if(o=n(),r=o.activeRequest,i=o.path,l=o.taskGroups,s=o.currentSearch,e!==s)return t(f(r.requestId,i,e,a.flatten(a.pluck(l,"taskIds"))))}},P=function(e){return function(t,n){var a,r,i,o,u,c;return r=n(),o=r.search,a=r.path,u=r.tasks,c=r.viewMode,e in u?Object.keys(u).length>1?t({taskId:e,type:"LOG_REMOVE_TASK"}):void 0:("split"===c&&t(s([e],o)),i=a.replace("$TASK_ID",e),l(e,i).done(function(a){var r;return r=a.offset,t(h(e,r,i,!0)),n().taskGroups.map(function(n,a){if(A.call(n.taskIds,e)>=0)return t(q(a,e)),t(E(a)).then(function(){return t(I(a))})})}))}},y=function(e){return function(t,n){var a;return a=n().taskGroups[e].taskIds,t({taskGroupId:e,taskIds:a,type:"LOG_REMOVE_TASK_GROUP"})}},o=function(e){return function(t,n){var a;return a=n().taskGroups[e].taskIds,t({taskGroupId:e,taskIds:a,type:"LOG_EXPAND_TASK_GROUP"})}},b=function(e){return function(t,n){var a;return a=n().taskGroups[e].taskIds,t({taskGroupId:e,taskIds:a,type:"LOG_SCROLL_TO_TOP"}),t(D(e))}},g=function(){return function(e,t){return e({type:"LOG_SCROLL_ALL_TO_TOP"}),t().taskGroups.map(function(t,n){return e(D(n))})}},_=function(e){return function(t,n){var a;return a=n().taskGroups[e].taskIds,t({taskGroupId:e,taskIds:a,type:"LOG_SCROLL_TO_BOTTOM"}),t(E(e))}},v=function(){return function(e,t){return e({type:"LOG_SCROLL_ALL_TO_BOTTOM"}),t().taskGroups.map(function(t,n){return e(E(n))})}},e.exports={initialize:f,initializeUsingActiveTasks:m,taskGroupFetchNext:D,taskGroupFetchPrevious:E,clickPermalink:i,updateGroups:C,updateTaskStatuses:N,updateFilesizes:Y,taskGroupTop:O,taskGroupBottom:L,selectLogColor:k,switchViewMode:w,setCurrentSearch:T,toggleTaskLog:P,scrollToTop:b,scrollAllToTop:g,scrollToBottom:_,scrollAllToBottom:v,removeTaskGroup:y,expandTaskGroup:o}}).call(t,n(1),n(7))},function(e,t,n){(function(t,n){/*! * * Copyright 2009-2012 Kris Kowal under the terms of the MIT * license found at http://github.com/kriskowal/q/raw/master/LICENSE * * With parts by Tyler Close * Copyright 2007-2009 Tyler Close under the terms of the MIT X license found * at http://www.opensource.org/licenses/mit-license.html * Forked at ref_send.js version: 2009-05-11 * * With parts by Mark Miller * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ !function(t){"use strict";if("function"==typeof bootstrap)bootstrap("promise",t);else{e.exports=t()}}(function(){"use strict";function e(e){return function(){return J.apply(e,arguments)}}function a(e){return e===Object(e)}function r(e){return"[object StopIteration]"===re(e)||e instanceof G}function s(e,t){if(B&&t.stack&&"object"==typeof e&&null!==e&&e.stack&&e.stack.indexOf(se)===-1){for(var n=[],a=t;a;a=a.source)a.stack&&n.unshift(a.stack);n.unshift(e.stack);var r=n.join("\n"+se+"\n");e.stack=i(r)}}function i(e){for(var t=e.split("\n"),n=[],a=0;a=V&&a<=ce}function c(){if(B)try{throw new Error}catch(e){var t=e.stack.split("\n"),n=t[0].indexOf("@")>0?t[1]:t[2],a=l(n);if(!a)return;return W=a[0],a[1]}}function p(e,t,n){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t+" is deprecated, use "+n+" instead.",new Error("").stack),e.apply(e,arguments)}}function d(e){return e instanceof y?e:b(e)?E(e):D(e)}function h(){function e(e){t=e,s.source=e,Q(n,function(t,n){d.nextTick(function(){e.promiseDispatch.apply(e,n)})},void 0),n=void 0,a=void 0}var t,n=[],a=[],r=te(h.prototype),s=te(y.prototype);if(s.promiseDispatch=function(e,r,s){var i=Z(arguments);n?(n.push(i),"when"===r&&s[1]&&a.push(s[1])):d.nextTick(function(){t.promiseDispatch.apply(t,i)})},s.valueOf=function(){if(n)return s;var e=g(t);return _(e)&&(t=e),e},s.inspect=function(){return t?t.inspect():{state:"pending"}},d.longStackSupport&&B)try{throw new Error}catch(i){s.stack=i.stack.substring(i.stack.indexOf("\n")+1)}return r.promise=s,r.resolve=function(n){t||e(d(n))},r.fulfill=function(n){t||e(D(n))},r.reject=function(n){t||e(L(n))},r.notify=function(e){t||Q(a,function(t,n){d.nextTick(function(){n(e)})},void 0)},r}function f(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=h();try{e(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}return t.promise}function m(e){return f(function(t,n){for(var a=0,r=e.length;a=a)throw new TypeError}for(;n2?e.resolve(Z(arguments,1)):e.resolve(n)}},d.Promise=f,d.promise=f,f.race=m,f.all=N,f.reject=L,f.resolve=d,d.passByCopy=function(e){return e},y.prototype.passByCopy=function(){return this},d.join=function(e,t){return d(e).join(t)},y.prototype.join=function(e){return d([this,e]).spread(function(e,t){if(e===t)return e;throw new Error("Can't join: not the same: "+e+" "+t)})},d.race=m,y.prototype.race=function(){return this.then(d.race)},d.makePromise=y,y.prototype.toString=function(){return"[object Promise]"},y.prototype.then=function(e,t,n){function a(t){try{return"function"==typeof e?e(t):t}catch(n){return L(n)}}function r(e){if("function"==typeof t){s(e,o);try{return t(e)}catch(n){return L(n)}}return L(e)}function i(e){return"function"==typeof n?n(e):e}var o=this,l=h(),u=!1;return d.nextTick(function(){o.promiseDispatch(function(e){u||(u=!0,l.resolve(a(e)))},"when",[function(e){u||(u=!0,l.resolve(r(e)))}])}),o.promiseDispatch(void 0,"when",[void 0,function(e){var t,n=!1;try{t=i(e)}catch(a){if(n=!0,!d.onerror)throw a;d.onerror(a)}n||l.notify(t)}]),l.promise},d.tap=function(e,t){return d(e).tap(t)},y.prototype.tap=function(e){return e=d(e),this.then(function(t){return e.fcall(t).thenResolve(t)})},d.when=v,y.prototype.thenResolve=function(e){return this.then(function(){return e})},d.thenResolve=function(e,t){return d(e).thenResolve(t)},y.prototype.thenReject=function(e){return this.then(function(){throw e})},d.thenReject=function(e,t){return d(e).thenReject(t)},d.nearer=g,d.isPromise=_,d.isPromiseAlike=b,d.isPending=k,y.prototype.isPending=function(){return"pending"===this.inspect().state},d.isFulfilled=T,y.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},d.isRejected=w,y.prototype.isRejected=function(){return"rejected"===this.inspect().state};var ie=[],oe=[],le=[],ue=!0;d.resetUnhandledRejections=M,d.getUnhandledReasons=function(){return ie.slice()},d.stopUnhandledRejectionTracking=function(){M(),ue=!1},M(),d.reject=L,d.fulfill=D,d.master=I,d.spread=O,y.prototype.spread=function(e,t){return this.all().then(function(t){return e.apply(void 0,t)},t)},d.async=R,d.spawn=P,d["return"]=Y,d.promised=C,d.dispatch=q,y.prototype.dispatch=function(e,t){var n=this,a=h();return d.nextTick(function(){n.promiseDispatch(a.resolve,e,t)}),a.promise},d.get=function(e,t){return d(e).dispatch("get",[t])},y.prototype.get=function(e){return this.dispatch("get",[e])},d.set=function(e,t,n){return d(e).dispatch("set",[t,n])},y.prototype.set=function(e,t){return this.dispatch("set",[e,t])},d.del=d["delete"]=function(e,t){return d(e).dispatch("delete",[t])},y.prototype.del=y.prototype["delete"]=function(e){return this.dispatch("delete",[e])},d.mapply=d.post=function(e,t,n){return d(e).dispatch("post",[t,n])},y.prototype.mapply=y.prototype.post=function(e,t){return this.dispatch("post",[e,t])},d.send=d.mcall=d.invoke=function(e,t){return d(e).dispatch("post",[t,Z(arguments,2)])},y.prototype.send=y.prototype.mcall=y.prototype.invoke=function(e){return this.dispatch("post",[e,Z(arguments,1)])},d.fapply=function(e,t){return d(e).dispatch("apply",[void 0,t])},y.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},d["try"]=d.fcall=function(e){return d(e).dispatch("apply",[void 0,Z(arguments,1)])},y.prototype.fcall=function(){return this.dispatch("apply",[void 0,Z(arguments)])},d.fbind=function(e){var t=d(e),n=Z(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(Z(arguments))])}},y.prototype.fbind=function(){var e=this,t=Z(arguments);return function(){return e.dispatch("apply",[this,t.concat(Z(arguments))])}},d.keys=function(e){return d(e).dispatch("keys",[])},y.prototype.keys=function(){return this.dispatch("keys",[])},d.all=N,y.prototype.all=function(){return N(this)},d.any=A,y.prototype.any=function(){return A(this)},d.allResolved=p(F,"allResolved","allSettled"),y.prototype.allResolved=function(){return F(this)},d.allSettled=j,y.prototype.allSettled=function(){return this.then(function(e){return N(ee(e,function(e){function t(){return e.inspect()}return e=d(e),e.then(t,t)}))})},d.fail=d["catch"]=function(e,t){return d(e).then(void 0,t)},y.prototype.fail=y.prototype["catch"]=function(e){return this.then(void 0,e)},d.progress=z,y.prototype.progress=function(e){return this.then(void 0,void 0,e)},d.fin=d["finally"]=function(e,t){return d(e)["finally"](t)},y.prototype.fin=y.prototype["finally"]=function(e){return e=d(e),this.then(function(t){return e.fcall().then(function(){return t})},function(t){return e.fcall().then(function(){throw t})})},d.done=function(e,t,n,a){return d(e).done(t,n,a)},y.prototype.done=function(e,n,a){var r=function(e){d.nextTick(function(){if(s(e,i),!d.onerror)throw e;d.onerror(e)})},i=e||n||a?this.then(e,n,a):this;"object"==typeof t&&t&&t.domain&&(r=t.domain.bind(r)),i.then(void 0,r)},d.timeout=function(e,t,n){return d(e).timeout(t,n)},y.prototype.timeout=function(e,t){var n=h(),a=setTimeout(function(){t&&"string"!=typeof t||(t=new Error(t||"Timed out after "+e+" ms"),t.code="ETIMEDOUT"),n.reject(t)},e);return this.then(function(e){clearTimeout(a),n.resolve(e)},function(e){clearTimeout(a),n.reject(e)},n.notify),n.promise},d.delay=function(e,t){return void 0===t&&(t=e,e=void 0),d(e).delay(t)},y.prototype.delay=function(e){return this.then(function(t){var n=h();return setTimeout(function(){n.resolve(t)},e),n.promise})},d.nfapply=function(e,t){return d(e).nfapply(t)},y.prototype.nfapply=function(e){var t=h(),n=Z(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},d.nfcall=function(e){var t=Z(arguments,1);return d(e).nfapply(t)},y.prototype.nfcall=function(){var e=Z(arguments),t=h();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},d.nfbind=d.denodeify=function(e){var t=Z(arguments,1);return function(){var n=t.concat(Z(arguments)),a=h();return n.push(a.makeNodeResolver()),d(e).fapply(n).fail(a.reject),a.promise}},y.prototype.nfbind=y.prototype.denodeify=function(){var e=Z(arguments);return e.unshift(this),d.denodeify.apply(void 0,e)},d.nbind=function(e,t){var n=Z(arguments,2);return function(){function a(){return e.apply(t,arguments)}var r=n.concat(Z(arguments)),s=h();return r.push(s.makeNodeResolver()),d(a).fapply(r).fail(s.reject),s.promise}},y.prototype.nbind=function(){var e=Z(arguments,0);return e.unshift(this),d.nbind.apply(void 0,e)},d.nmapply=d.npost=function(e,t,n){return d(e).npost(t,n)},y.prototype.nmapply=y.prototype.npost=function(e,t){var n=Z(t||[]),a=h();return n.push(a.makeNodeResolver()),this.dispatch("post",[e,n]).fail(a.reject),a.promise},d.nsend=d.nmcall=d.ninvoke=function(e,t){var n=Z(arguments,2),a=h();return n.push(a.makeNodeResolver()),d(e).dispatch("post",[t,n]).fail(a.reject),a.promise},y.prototype.nsend=y.prototype.nmcall=y.prototype.ninvoke=function(e){var t=Z(arguments,1),n=h();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},d.nodeify=H,y.prototype.nodeify=function(e){return e?void this.then(function(t){d.nextTick(function(){e(null,t)})},function(t){d.nextTick(function(){e(t)})}):this},d.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var ce=c();return d})}).call(t,n(5),n(4).setImmediate)},function(e,t,n){(function(t){var n,a;n=function(e,n){var a;return null==n&&(n="active"),a={property:"taskId"},t.ajax({url:config.apiRoot+"/history/request/"+e+"/tasks/"+n+"?"+t.param(a)})},a=function(e){return function(t){return n(e).done(function(e){return t({tasks:e,type:"REQUEST_ACTIVE_TASKS"})})}},e.exports={updateActiveTasks:a,fetchTasksForRequest:n}}).call(t,n(1))},function(e,t,n){(function(t){var a,r,s,i,o,l,u,c=function(e,t){return function(){return e.apply(t,arguments)}},p=function(e,t){function n(){this.constructor=e}for(var a in t)d.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},d={}.hasOwnProperty;a=n(342),r=n(494),i=n(663).connect,u=n(685).setCurrentSearch,s=function(e){function n(e){this.handleSearchKeyDown=c(this.handleSearchKeyDown,this),this.toggleSearchDropdown=c(this.toggleSearchDropdown,this),this.handleSearchUpdate=c(this.handleSearchUpdate,this),this.handleSearchToggle=c(this.handleSearchToggle,this),n.__super__.constructor.call(this,e),this.state={searchValue:e.search}}return p(n,e),n.propTypes={search:a.PropTypes.string.isRequired},n.prototype.handleSearchToggle=function(){return r.findDOMNode(this.refs.searchInput).focus()},n.prototype.handleSearchUpdate=function(){return this.props.setCurrentSearch(this.state.searchValue)},n.prototype.toggleSearchDropdown=function(){return t(r.findDOMNode(this.refs.searchButton)).dropdown("toggle")},n.prototype.handleSearchKeyDown=function(e){return 13===e.keyCode?(this.handleSearchUpdate(),this.toggleSearchDropdown()):27===e.keyCode?(this.setState({searchValue:this.props.search}),this.toggleSearchDropdown()):void 0},n.prototype.render=function(){return a.createElement("div",{className:"btn-group",title:"Grep"},a.createElement("button",{ref:"searchButton",id:"searchDDToggle",type:"button",className:"btn btn-"+(""===this.props.search?"default":"info")+" btn-sm dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:this.handleSearchToggle},a.createElement("span",{className:"glyphicon glyphicon-search"})," ",a.createElement("span",{className:"caret"})),a.createElement("ul",{className:"dropdown-menu dropdown-menu-right"},a.createElement("li",null,a.createElement("div",{className:"input-group log-search"},a.createElement("input",{ref:"searchInput",type:"text",className:"form-control",placeholder:"Grep Logs",value:this.state.searchValue,onKeyDown:this.handleSearchKeyDown,onChange:function(e){return function(t){return e.setState({searchValue:t.target.value})}}(this)}),a.createElement("span",{className:"input-group-btn"},a.createElement("button",{className:"btn btn-info no-margin",type:"button",onClick:this.handleSearchUpdate},a.createElement("span",{className:"glyphicon glyphicon-search"})))))))},n}(a.Component),l=function(e){return{search:e.search}},o={setCurrentSearch:u},e.exports=i(l,o)(s)}).call(t,n(1))},function(e,t,n){(function(t){var a,r,s,i,o,l,u,c,p,d=function(e,t){function n(){this.constructor=e}for(var a in t)h.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},h={}.hasOwnProperty,f=[].indexOf||function(e){for(var t=0,n=this.length;t=0?"check":"unchecked")}),r.createElement("span",null," Instance ",t.taskId.instanceNo))))}}(this)),e.length>0?e:r.createElement("li",null,r.createElement("a",{className:"disabled"},"No running instances"))):r.createElement("li",null,r.createElement("a",{className:"disabled"},"Loading active tasks..."))},n.prototype.render=function(){return r.createElement("div",{className:"btn-group",title:"Select Instances"},r.createElement("button",{type:"button",className:"btn btn-default btn-sm dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},r.createElement("span",{className:"glyphicon glyphicon-tasks"})," ",r.createElement("span",{className:"caret"})),r.createElement("ul",{className:"dropdown-menu dropdown-menu-right"},this.renderListItems()))},n}(r.Component),c=function(e){return{activeTasks:e.activeRequest.activeTasks,taskIds:t.flatten(t.pluck(e.taskGroups,"taskIds"))}},u={toggleTaskLog:p},e.exports=o(c,u)(s)}).call(t,n(7))},function(e,t,n){(function(t){var a,r,s,i,o,l,u,c,p,d=function(e,t){function n(){this.constructor=e}for(var a in t)h.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},h={}.hasOwnProperty;i=n(342),l=n(691),s=n(693),r=n(696),a=n(697),u=n(572),c=n(663).connect,o=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return d(t,e),t.propTypes={taskGroupId:i.PropTypes.number.isRequired,taskGroupContainerCount:i.PropTypes.number.isRequired,initialDataLoaded:i.PropTypes.bool.isRequired,fileExists:i.PropTypes.bool.isRequired,terminated:i.PropTypes.bool.isRequired},t.prototype.getContainerWidth=function(){return 12/this.props.taskGroupContainerCount},t.prototype.renderLogLines=function(){return this.props.logDataLoaded?i.createElement(s,{taskGroupId:this.props.taskGroupId}):this.props.initialDataLoaded&&!this.props.fileExists?i.createElement("div",{className:"tail-contents"},i.createElement(a,{fileName:this.props.path})):i.createElement(r,{centered:!0},"Loading logs...")},t.prototype.render=function(){var e;return e="col-md-"+this.getContainerWidth()+" tail-column",i.createElement("div",{className:e},i.createElement(l,{taskGroupId:this.props.taskGroupId}),this.renderLogLines())},t}(i.Component),p=function(e,n){var a,r;return n.taskGroupId in e.taskGroups?(a=e.taskGroups[n.taskGroupId],r=a.taskIds.map(function(t){return e.tasks[t]}),{initialDataLoaded:t.all(t.pluck(r,"initialDataLoaded")),logDataLoaded:t.all(t.pluck(r,"logDataLoaded")),fileExists:t.any(t.pluck(r,"exists")),terminated:t.all(t.pluck(r,"terminated")),path:e.path}):{initialDataLoaded:!1,fileExists:!1,logDataLoaded:!1,terminated:!1}},e.exports=c(p)(o)}).call(t,n(7))},function(e,t,n){var a,r,s,i,o,l,u,c,p,d,h,f,m,y,v=function(e,t){function n(){this.constructor=e}for(var a in t)g.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},g={}.hasOwnProperty;r=n(342),i=n(692),a=n(498),o=n(599),c=n(6).getTaskDataFromTaskId,l=n(663).connect,h=n(685),f=h.removeTaskGroup,u=h.expandTaskGroup,y=h.scrollToTop,m=h.scrollToBottom,s=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return v(t,e),t.propTypes={taskGroupId:r.PropTypes.number.isRequired,tasks:r.PropTypes.array.isRequired},t.prototype.toggleLegend=function(){},t.prototype.getInstanceNoToolTip=function(e){return r.createElement(o,{id:e.id},"Deploy ID: ",e.deployId,r.createElement("br",null),"Host: ",e.host)},t.prototype.renderInstanceInfo=function(){var e;return this.props.tasks.length>1?r.createElement("span",{className:"instance-link"},"Viewing Instances ",this.props.tasks.map(function(e){var t;return t=e.taskId,c(t).instanceNo}).join(", ")):this.props.tasks.length>0?(e=c(this.props.tasks[0].taskId),r.createElement("span",null,r.createElement("div",{className:"width-constrained"},r.createElement(a,{placement:"bottom",overlay:this.getInstanceNoToolTip(e)},r.createElement("a",{className:"instance-link",href:config.appRoot+"/task/"+this.props.tasks[0].taskId},"Instance ",e.instanceNo))),r.createElement(i,{status:this.props.tasks[0].lastTaskStatus}))):r.createElement("div",{className:"width-constrained"})},t.prototype.renderTaskLegend=function(){if(this.props.tasks.length>1)return r.createElement("span",{className:"right-buttons"},r.createElement("a",{className:"action-link",onClick:this.toggleLegend},r.createElement("span",{className:"glyphicon glyphicon-menu-hamburger"})))},t.prototype.renderClose=function(){if(this.props.taskGroupsCount>1)return r.createElement("a",{className:"action-link",onClick:function(e){return function(){return e.props.removeTaskGroup(e.props.taskGroupId)}}(this),title:"Close Task"},r.createElement("span",{className:"glyphicon glyphicon-remove"}))},t.prototype.renderExpand=function(){if(this.props.taskGroupsCount>1)return r.createElement("a",{className:"action-link",onClick:function(e){return function(){return e.props.expandTaskGroup(e.props.taskGroupId)}}(this),title:"Show only this Task"},r.createElement("span",{className:"glyphicon glyphicon-resize-full"}))},t.prototype.render=function(){return r.createElement("div",{className:"individual-header"},this.renderClose(),this.renderExpand(),this.renderInstanceInfo(),this.renderTaskLegend(),r.createElement("span",{className:"right-buttons"},r.createElement("a",{className:"action-link",onClick:function(e){return function(){return e.props.scrollToBottom(e.props.taskGroupId)}}(this),title:"Scroll to Bottom"},r.createElement("span",{className:"glyphicon glyphicon-chevron-down"})),r.createElement("a",{className:"action-link",onClick:function(e){return function(){return e.props.scrollToTop(e.props.taskGroupId)}}(this),title:"Scroll to Top"},r.createElement("span",{className:"glyphicon glyphicon-chevron-up"}))))},t}(r.Component),d=function(e,t){return t.taskGroupId in e.taskGroups?{taskGroupsCount:e.taskGroups.length,tasks:e.taskGroups[t.taskGroupId].taskIds.map(function(t){return e.tasks[t]})}:{taskGroupsCount:e.taskGroups.length,tasks:[]}},p={scrollToTop:y,scrollToBottom:m,removeTaskGroup:f,expandTaskGroup:u},e.exports=l(d,p)(s)},function(e,t,n){var a,r,s,i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty,l=[].indexOf||function(e){for(var t=0,n=this.length;t=0?"bg-danger":"bg-info running"},t.prototype.render=function(){return this.props.status?a.createElement("div",{className:"status"},a.createElement("div",{className:"indicator "+this.getClassName()}),this.props.status.toLowerCase().replace("_"," ")):a.createElement("div",null)},t}(a.Component),e.exports=r},function(e,t,n){(function(t){var a,r,s,i,o,l,u,c,p,d,h,f=function(e,t){return function(){return e.apply(t,arguments)}},m=function(e,t){function n(){this.constructor=e}for(var a in t)y.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},y={}.hasOwnProperty;i=n(342),r=n(694),a=n(695),s=n(655),o=n(663).connect,c=n(685),h=c.taskGroupTop,d=c.taskGroupBottom,p=function(e){var t,n,a,r;for(r=0,t=0,n=e.length;t0||this.props.linesRemovedFromTop>0?this.refs.tailContents.scrollTop+=20*(this.props.prependedLineCount-this.props.linesRemovedFromTop):this.handleScroll()},t.prototype.renderLoadingPrevious=function(){if(this.props.initialDataLoaded&&!this.props.reachedStartOfFile)return this.props.search?i.createElement("div",null,"Searching for '",this.props.search,"'... (",a.filesize(this.props.bytesRemainingBefore)," remaining)"):i.createElement("div",null,"Loading previous... (",a.filesize(this.props.bytesRemainingBefore)," remaining)")},t.prototype.renderLogLines=function(){return this.props.logLines.map(function(e){return function(t){var n,a,s,o;return n=t.data,a=t.offset,s=t.taskId,o=t.timestamp,i.createElement(r,{content:n,key:s+"_"+a,offset:a,taskId:s,timestamp:o,isHighlighted:a===e.props.initialOffset,color:e.props.colorMap[s]})}}(this))},t.prototype.renderLoadingMore=function(){return this.props.terminated?null:this.props.initialDataLoaded?this.props.reachedEndOfFile?this.props.search?i.createElement("div",null,"Tailing for '",this.props.search,"'..."):i.createElement("div",null,"Tailing..."):this.props.search?i.createElement("div",null,"Searching for '",this.props.search,"'... (",a.filesize(this.props.bytesRemainingAfter)," remaining)"):i.createElement("div",null,"Loading more... (",a.filesize(this.props.bytesRemainingAfter)," remaining)"):void 0},t.prototype.handleScroll=function(){var e,t,n,a;return t=this.refs.tailContents,a=t.scrollTop,n=t.scrollHeight,e=t.clientHeight,an-e?this.props.taskGroupBottom(this.props.taskGroupId,!0,a+e>n-20):this.props.taskGroupBottom(this.props.taskGroupId,!1)},t.prototype.render=function(){return i.createElement("div",{className:"contents-container"},i.createElement("div",{className:"tail-contents "+this.props.activeColor,ref:"tailContents",onScroll:this.handleScroll},this.renderLoadingPrevious(),this.renderLogLines(),this.renderLoadingMore()))},t}(i.Component),u=function(e,n){var a,r,s,i,o,l,u,c;if(l=e.taskGroups[n.taskGroupId],c=l.taskIds.map(function(t){return e.tasks[t]}),a={},l.taskIds.length>1)for(r=0,o=l.taskIds,s=0,i=o.length;s=t})),bytesRemainingBefore:p(t.pluck(c,"minOffset")),bytesRemainingAfter:p(c.map(function(e){var t,n;return t=e.filesize,n=e.maxOffset,Math.max(t-n,0)})),colorMap:a,search:e.search}},l={taskGroupTop:h,taskGroupBottom:d},e.exports=o(u,l)(s)}).call(t,n(7))},function(e,t,n){(function(t){var a,r,s,i,o,l,u,c=function(e,t){function n(){this.constructor=e}for(var a in t)p.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p={}.hasOwnProperty;r=n(342),s=n(572),o=n(663).connect,i=n(685).clickPermalink,a=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return c(n,e),n.propTypes={offset:r.PropTypes.number.isRequired,isHighlighted:r.PropTypes.bool.isRequired,content:r.PropTypes.string.isRequired,taskId:r.PropTypes.string.isRequired,showDebugInfo:r.PropTypes.bool,color:r.PropTypes.string,search:r.PropTypes.string,clickPermalink:r.PropTypes.func.isRequired},n.prototype.highlightContent=function(e){var n,a,i,o,l,u,c,p,d,h;if(p=this.props.search,!p||t.isEmpty(p))return this.props.showDebugInfo?this.props.offset+" | "+this.props.timestamp+" | "+e:e;for(c=RegExp(p,"g"),u=[];l=c.exec(e);)u.push(l);for(h=[],i=0,n=0,o=u.length;no[0]+3)return n.toExponential(t).replace("e+","x10^");for(var u=void 0,c=0;c=p){u=p;break}}var d=i-u+1,h=s.split(""),f=h.slice(0,d),m=h.slice(d,d+t+1),y=f.join(""),v=m.join("");v.length=r)return o.formatNumber(e/r,n,"")+" "+a+"B"}return e>=1024?o.formatNumber(e/1024,0)+" KB":o.formatNumber(e,0)+o.pluralize(e," byte")},filesize:function(){return o.fileSize.apply(o,arguments)},formatNumber:function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments.length<=2||void 0===arguments[2]?",":arguments[2],a=arguments.length<=3||void 0===arguments[3]?".":arguments[3],r=function(e,t,n){return n?e.substr(0,n)+t:""},s=function(e,t,n){return e.substr(n).replace(/(\d{3})(?=\d)/g,"$1"+t)},i=function(e,t,n){return n?t+o.toFixed(Math.abs(e),n).split(".")[1]:""},l=o.normalizePrecision(t),u=e<0&&"-"||"",c=String(parseInt(o.toFixed(Math.abs(e||0),l),10)),p=c.length>3?c.length%3:0;return u+r(c,n,p)+s(c,n,p)+i(e,a,l)},toFixed:function(e,t){t=n(t)?t:o.normalizePrecision(t,0);var a=Math.pow(10,t);return(Math.round(e*a)/a).toFixed(t)},normalizePrecision:function(e,t){return e=Math.round(Math.abs(e)),a(e)?t:e},ordinal:function(e){var t=parseInt(e,10);if(0===t)return e;var n=t%100;if([11,12,13].indexOf(n)>=0)return t+"th";var a=t%10,r=void 0;switch(a){case 1:r="st";break;case 2:r="nd";break;case 3:r="rd";break;default:r="th"}return""+t+r},times:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(r(e)&&e>=0){var a=parseFloat(e),s=["never","once","twice"];if(n(t[a]))return String(t[a]);var i=n(s[a])&&s[a].toString();return i||a.toString()+" times"}return null},pluralize:function(e,t,a){return n(e)&&n(t)?(a=n(a)?a:t+"s",1===parseInt(e,10)?t:a):null},truncate:function(e){var t=arguments.length<=1||void 0===arguments[1]?100:arguments[1],n=arguments.length<=2||void 0===arguments[2]?"...":arguments[2];return e.length>t?e.substring(0,t-n.length)+n:e},truncateWords:function(e,t){for(var a=e.split(" "),r="",s=0;st?r+"...":null},truncatewords:function(){return o.truncateWords.apply(o,arguments)},boundedNumber:function(e){var t=arguments.length<=1||void 0===arguments[1]?100:arguments[1],n=arguments.length<=2||void 0===arguments[2]?"+":arguments[2],a=void 0;return r(e)&&r(t)&&e>t&&(a=t+n),(a||e).toString()},truncatenumber:function(){return o.boundedNumber.apply(o,arguments)},oxford:function(e,t,a){var r=e.length,s=void 0;if(r<2)return String(e);if(2===r)return e.join(" and ");if(n(t)&&r>t){var i=r-t;s=t,a=n(a)?a:", and "+i+" "+o.pluralize(i,"other")}else s=-1,a=", and "+e[r-1];return e.slice(0,s).join(", ")+a},dictionary:function(e){var t=arguments.length<=1||void 0===arguments[1]?" is ":arguments[1],a=arguments.length<=2||void 0===arguments[2]?", ":arguments[2],r="";if(n(e)&&"object"===("undefined"==typeof e?"undefined":s(e))&&!i(e)){var o=[];for(var l in e)if(e.hasOwnProperty(l)){var u=e[l];o.push(""+l+t+u)}return o.join(a)}return r},frequency:function(e,t){if(!i(e))return null;var n=e.length,a=o.times(n);return 0===n?a+" "+t:t+" "+a},pace:function(t,n){var a=arguments.length<=2||void 0===arguments[2]?"time":arguments[2];if(0===t||0===n)return"No "+o.pluralize(0,a);for(var r="Approximately",s=void 0,i=void 0,l=t/n,u=0;u1){s=c.name;break}}s||(r="Less than",i=1,s=e[e.length-1].name);var p=Math.round(i);return a=o.pluralize(p,a),r+" "+p+" "+a+" per "+s},nl2br:function(e){var t=arguments.length<=1||void 0===arguments[1]?"
    ":arguments[1];return e.replace(/\n/g,t)},br2nl:function(e){var t=arguments.length<=1||void 0===arguments[1]?"\r\n":arguments[1];return e.replace(/\/g,t)},capitalize:function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return""+e.charAt(0).toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))},capitalizeAll:function(e){return e.replace(/(?:^|\s)\S/g,function(e){return e.toUpperCase()})},titleCase:function(e){var t=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,n=/\S+[A-Z]+\S*/,a=/\s+/,r=/-/,s=void 0;return(s=function(e){for(var i=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],l=arguments.length<=2||void 0===arguments[2]||arguments[2],u=[],c=e.split(i?r:a),p=0;p0?r.createElement("div",{className:"page-loader-with-message"},r.createElement("div",{className:e}),r.createElement("p",null,this.props.children)):r.createElement("div",{className:e})},t}(r.Component),e.exports=a},function(e,t,n){(function(t){var a,r,s=function(e,t){function n(){this.constructor=e}for(var a in t)i.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=n(342),a=function(e){function n(){return n.__super__.constructor.apply(this,arguments)}return s(n,e),n.prototype.render=function(){return r.createElement("div",{className:"lines-wrapper"},r.createElement("div",{className:"empty-table-message"},r.createElement("p",null,t.last(this.props.fileName.split("/"))," does not exist",this.props.fileName&&this.props.fileName.indexOf("$TASK_ID")!==-1?" in this task's directory":" for this task",".")))},n}(r.Component),e.exports=a}).call(t,n(7))},function(e,t){"use strict";function n(e){return function(t){var n=t.dispatch,a=t.getState;return function(t){return function(r){return"function"==typeof r?r(n,a,e):t(r)}}}}t.__esModule=!0;var a=n();a.withExtraArgument=n,t["default"]=a},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0){if(1===l.taskIds.length)continue;o=t.without(l.taskIds,u),s=l.logLines.filter(function(e){return e.taskId!==u}),i.push(Object.assign({},l,{tasksIds:newTasksIds,logLines:s}))}else i.push(l);return i},LOG_TASK_GROUP_TOP:function(e,t){var n,a;return n=t.taskGroupId,a=t.visible,h(e,n,{top:a,tailing:!1})},LOG_TASK_GROUP_BOTTOM:function(e,t){var n,a;return n=t.taskGroupId,a=t.visible,h(e,n,{bottom:a})},LOG_TASK_GROUP_READY:function(e,t){var n;return n=t.taskGroupId,h(e,n,{ready:!0,updatedAt:+new Date,top:!0,bottom:!0,tailing:!0})},LOG_TASK_GROUP_TAILING:function(e,t){var n,a;return a=t.taskGroupId,n=t.tailing,h(e,a,{tailing:n})},LOG_REMOVE_TASK_GROUP:function(e,t){var n,a,r,s,i;for(i=t.taskGroupId,r=[],n=a=0,s=e.length-1;0<=s?a<=s:a>=s;n=0<=s?++a:--a)n!==i&&r.push(e[n]);return r},LOG_EXPAND_TASK_GROUP:function(e,t){var n;return n=t.taskGroupId,[e[n]]},LOG_SCROLL_TO_TOP:function(e,t){var n;return n=t.taskGroupId,h(e,n,d())},LOG_SCROLL_ALL_TO_TOP:function(e){return e.map(function(e){return Object.assign({},e,d())})},LOG_SCROLL_TO_BOTTOM:function(e,t){var n;return n=t.taskGroupId,h(e,n,d(!0))},LOG_SCROLL_ALL_TO_BOTTOM:function(e){return e.map(function(e){return Object.assign({},e,d(!0))})},LOG_REQUEST_START:function(e,t){var n;return n=t.taskGroupId,h(e,n,{pendingRequests:!0})},LOG_REQUEST_END:function(e,t){var n;return n=t.taskGroupId,h(e,n,{pendingRequests:!1})},LOG_TASK_DATA:function(e,n){var a,r,i,o,u,c,d,h,f,m,y,v,g,_,b,k,T,w,M,x;return w=n.taskGroupId,M=n.taskId,_=n.offset,g=n.nextOffset,f=n.maxLines,i=n.data,a=n.append,T=e[w],0===i.length&&task.loadedData?e:(r=_,d=t.initial(i.match(/[^\n]*(\n|$)/g)).map(function(e){var t,n;return r+=e.length,e=e.replace("\r",""),n=p(e),n&&(t=!0),{timestamp:n,data:e,offset:r-e.length,taskId:M}}),k=T.taskBuffer[M]||s(M,0),a?(k.offset+k.data.length===_&&(o=t.first(d),d=t.rest(d),k={offset:k.offset,data:k.data+o.data,taskId:M},k.data.endsWith("\n")&&(k.timestamp=p(k.data),d.unshift(k),k=s(M,g))),d.length>0&&(u=t.last(d),u.data.endsWith("\n")||(k=u,d=t.initial(d)))):(g===k.offset&&(u=t.last(d),d=t.initial(d),k={offset:g-u.data.length,data:u.data+k.data,taskId:M},d.length>0&&(k.timestamp=p(k.data),d.push(k),k=s(M,_))),d.length>0&&(o=t.first(d),o.offset>0&&(k=o,d=t.rest(d)))),v=Object.assign({},T.taskBuffer),v[M]=k,c=T.logLines.length>0?t.last(T.logLines).timestamp:0,d=d.map(function(e){return e.timestamp?c=e.timestamp:e.timestamp=c,e}),b=0,h=0,x=+new Date,T.search&&(d=l(d,T.search)),m=Object.assign([],T.logLines),a?(m=m.concat(d),m.length>f&&(h=m.length-f,m=m.slice(m.length-f))):(m=d.concat(m),b=d.length,m.length>f&&(m=m.slice(0,f))),T.taskIds.length>1&&(m=t.sortBy(m,function(e){var t,n;return n=e.timestamp,t=e.offset,[n,t]})),y=Object.assign([],e),y[w]=Object.assign({},e[w],{taskBuffer:v,logLines:m,prependedLineCount:b,linesRemovedFromTop:h,updatedAt:x}),y)}},e.exports=function(e,t){return null==e&&(e=[]),t.type in a?a[t.type](e,t):e}}).call(t,n(7))},function(e,t){var n;n={LOG_INIT:function(e,t){var n;return n=t.requestId,Object.assign({},e,{requestId:n})},REQUEST_ACTIVE_TASKS:function(e,t){var n;return n=t.tasks,Object.assign({},e,{activeTasks:n})}},e.exports=function(e,t){return null==e&&(e={}),t.type in n?n[t.type](e,t):e}},function(e,t,n){(function(t){var n,a,r,s,i;i=function(e,t,n){var a;return a=Object.assign({},e),a[t]=Object.assign({},e[t],n),a},a=function(e,t){return null==t&&(t=0),{taskId:e,minOffset:t,maxOffset:t,filesize:t,initialDataLoaded:!1,logDataLoaded:!1,terminated:!1,exists:!1}},r=function(e){return e.length>0?t.last(t.sortBy(e,function(e){return e.timestamp})).taskState:null},s=function(e){return"TASK_FINISHED"===e||"TASK_KILLED"===e||"TASK_FAILED"===e||"TASK_LOST"===e||"TASK_ERROR"===e},n={LOG_INIT:function(e,t){var n,r,s,i,o,l,u,c;for(c=t.taskIdGroups,o={},n=0,s=c.length;n0)return this.setState({pageNumber:e})},decreasePageNumber:function(e){if(this.state.pageNumber>1)return this.setState({pageNumber:this.state.pageNumber-1})},updateCount:function(e){return this.setState({count:e})},clearRequestId:function(e){if(this.props.global)return this.setState({requestId:""})},clearDeployId:function(e){return this.setState({deployId:""})},clearHost:function(e){return this.setState({host:""})},clearSortDirection:function(e){return this.setState({sortDirection:""})},clearLastTaskStatus:function(e){return this.setState({lastTaskStatus:""})},clearStartedBefore:function(e){return this.setState({startedBefore:""})},clearStartedAfter:function(e){return this.setState({startedAfter:""})},render:function(){return i.createElement("div",null,i.createElement(s,{global:this.props.global,requestId:this.props.initialRequestId}),i.createElement("h2",null," Search Parameters "),i.createElement(l,{handleSubmit:this.handleSubmit,requestId:this.state.form.requestId,requestIdCurrentSearch:this.state.queryParams.requestId,global:this.props.global,updateReqeustId:this.updateReqeustId,deployId:this.state.form.deployId,updateDeployId:this.updateDeployId,deployIdCurrentSearch:this.state.queryParams.deployId,host:this.state.form.host,updateHost:this.updateHost,hostCurrentSearch:this.state.queryParams.host,lastTaskStatus:this.state.form.lastTaskStatus,updateLastTaskStatus:this.updateLastTaskStatus,lastTaskStatusCurrentSearch:this.state.queryParams.lastTaskStatus,startedAfter:this.state.form.startedAfter,updateStartedAfter:this.updateStartedAfter,startedAfterCurrentSearch:this.state.queryParams.startedAfter?this.state.queryParams.startedAfter.format(window.config.timestampFormat):void 0,startedBefore:this.state.form.startedBefore,updateStartedBefore:this.updateStartedBefore,startedBeforeCurrentSearch:this.state.queryParams.startedBefore?this.state.queryParams.startedBefore.format(window.config.timestampFormat):void 0,resetForm:this.resetForm}),i.createElement("h2",null,"Tasks"),i.createElement(a,{requestId:this.state.queryParams.requestId,deployId:this.state.queryParams.deployId,host:this.state.queryParams.host,lastTaskStatus:this.state.queryParams.lastTaskStatus,startedAfter:this.state.queryParams.startedAfter,startedBefore:this.state.queryParams.startedBefore,sortDirection:this.state.sortDirection,increasePageNumber:this.increasePageNumber,setPageNumber:this.setPageNumber,decreasePageNumber:this.decreasePageNumber,page:this.state.pageNumber,count:this.state.count,updateCount:this.updateCount,countChoices:this.countChoices,updateSortDirection:this.updateSortDirection,clearRequestId:this.clearRequestId,clearDeployId:this.clearDeployId,clearHost:this.clearHost,clearLastTaskStatus:this.clearLastTaskStatus,clearStartedAfter:this.clearStartedAfter,clearStartedBefore:this.clearStartedBefore,clearSortDirection:this.clearSortDirection,global:this.props.global,hasDoneAnySearch:this.state.hasDoneAnySearch,holdOffOnSearching:!(this.isAnyQueryParams()||this.state.hasDoneAnySearch)}))}}),e.exports=o}).call(t,n(1))},function(e,t){var n;n=function(){function e(){}return e.sortDirections=function(){return[{user:"Ascending",value:"ASC"},{user:"Descending",value:"DESC"}]},e.extendedTaskState=function(){return[{user:"Error",value:"TASK_ERROR"},{user:"Failed",value:"TASK_FAILED"},{user:"Finished",value:"TASK_FINISHED"},{user:"Killed",value:"TASK_KILLED"},{user:"Lost",value:"TASK_LOST"},{user:"Lost While Down",value:"TASK_LOST_WHILE_DOWN"}]},e}(),e.exports=n},function(e,t,n){var a,r,s,i,o,l,u,c;l=n(342),c=n(6),i=n(709),r=n(710),a=n(711),o=n(793),s=n(707),u=l.createClass({getRequestIdTitle:function(){return l.createElement("div",null,"Request ID",this.props.requestIdCurrentSearch?l.createElement("span",{className:"badge current-query-param"},this.props.requestIdCurrentSearch):void 0)},getDeployIdTitle:function(){return l.createElement("div",null,"Deploy ID",this.props.deployIdCurrentSearch?l.createElement("span",{className:"badge current-query-param"},this.props.deployIdCurrentSearch):void 0)},getHostTitle:function(){return l.createElement("div",null,"Host",this.props.hostCurrentSearch?l.createElement("span",{className:"badge current-query-param"},this.props.hostCurrentSearch):void 0)},getStartedBetweenTitle:function(){return l.createElement("div",null,"Started Between",this.props.startedAfterCurrentSearch&&this.props.startedBeforeCurrentSearch?l.createElement("span",{className:"badge current-query-param"},this.props.startedAfterCurrentSearch," - ",this.props.startedBeforeCurrentSearch):this.props.startedAfterCurrentSearch?l.createElement("span",{className:"badge current-query-param"},"After ",this.props.startedAfterCurrentSearch):this.props.startedBeforeCurrentSearch?l.createElement("span",{className:"badge current-query-param"},"Before ",this.props.startedBeforeCurrentSearch):void 0)},getLastTaskStatusTitle:function(){return l.createElement("div",null,"Last Task Status",this.props.lastTaskStatusCurrentSearch?l.createElement("span",{className:"badge current-query-param"},this.props.lastTaskStatusCurrentSearch):void 0)},render:function(){return l.createElement("div",{className:"jumbotron col-md-12"},l.createElement("form",{role:"form",onSubmit:this.props.handleSubmit,className:"form-vertical"},l.createElement("div",{className:"row"},l.createElement("div",{className:"col-md-4"},l.createElement("label",{htmlFor:"requestId"},this.getRequestIdTitle()),l.createElement(i,{title:this.getRequestIdTitle(),id:"requestId",prop:{value:this.props.requestId,inputType:"text",disabled:!this.props.global,updateFn:this.props.updateReqeustId}})),l.createElement("div",{className:"col-md-4"},l.createElement("label",{htmlFor:"deployId"},this.getDeployIdTitle()),l.createElement(i,{title:this.getDeployIdTitle(),id:"deployId",prop:{value:this.props.deployId,inputType:"text",updateFn:this.props.updateDeployId}})),l.createElement("div",{className:"col-md-4"},l.createElement("label",{htmlFor:"host"},this.getHostTitle()),l.createElement(i,{title:this.getHostTitle(),id:"host",prop:{value:this.props.host,inputType:"text",updateFn:this.props.updateHost}}))),l.createElement("div",{className:"row"},l.createElement("div",{className:"col-md-4"},l.createElement("label",{htmlFor:"executionStartedBetween"},this.getStartedBetweenTitle()),l.createElement(o,{id:"executionStartedBetween",title:this.getStartedBetweenTitle(),prop:{customClass:"form-inline",formItem1:{component:a,title:"Started After",id:"startedAfter",prop:{customClass:"col-xs-5 pull-left",value:this.props.startedAfter,inputType:"datetime",updateFn:this.props.updateStartedAfter}},separator:"-",formItem2:{component:a,title:"Started Before",id:"startedBefore",prop:{customClass:"col-xs-5 pull-right",value:this.props.startedBefore,inputType:"datetime",updateFn:this.props.updateStartedBefore}}}})),l.createElement("div",{className:"col-md-4"},l.createElement("label",{htmlFor:"lastTaskStatus"},this.getLastTaskStatusTitle()),l.createElement(r,{id:"lastTaskStatus",prop:{value:this.props.lastTaskStatus,choices:s.extendedTaskState(),inputType:"text",updateFn:this.props.updateLastTaskStatus}})),l.createElement("label",{htmlFor:"buttons"}," "),l.createElement("div",{className:"col-md-4",id:"buttons"},l.createElement("div",{className:"pull-right"},l.createElement("div",{className:"col-md-3"},l.createElement("button",{type:"submit",className:"btn btn-primary"},"Search"))),l.createElement("div",{className:"pull-right"},l.createElement("div",{className:"col-md-3"},l.createElement("button",{type:"button",className:"btn btn-danger",onClick:this.props.resetForm},"Clear")))))))}}), e.exports=u},function(e,t,n){var a,r,s,i;r=n(342),i=n(572),s=n(6),a=r.createClass({render:function(){return r.createElement("input",{className:i("form-control",this.props.prop.customClass),placeholder:this.props.prop.placeholder,type:this.props.prop.inputType,id:this.props.id,onChange:this.props.prop.updateFn,value:this.props.prop.value,disabled:this.props.prop.disabled,min:this.props.prop.min,max:this.props.prop.max,required:this.props.prop.required})}}),e.exports=a},function(e,t,n){var a,r,s,i;r=n(342),i=n(572),s=n(6),a=r.createClass({getValue:function(e){return"object"==typeof e?e.value:e},getUserReadable:function(e){return"object"==typeof e?e.user:e},dropDownOpts:function(){return this.props.prop.choices.map(function(e){return function(t,n){return r.createElement("option",{key:n,value:e.getValue(t)},e.getUserReadable(t))}}(this))},render:function(){return r.createElement("select",{id:this.props.id,className:i("form-control",this.props.prop.customClass),type:this.props.prop.inputType,onChange:this.props.prop.updateFn,value:this.props.prop.value,defaultValue:this.props.prop.defaultValue,required:!!this.props.prop.required},this.props.prop.forceChooseValue?void 0:r.createElement("option",{key:0,value:""}),this.dropDownOpts())}}),e.exports=a},function(e,t,n){(function(t){var a,r,s,i,o,l;i=n(342),l=n(74),r=n(709),s=n(604),o=n(712),a=i.createClass({componentWillReceiveProps:function(e){var n;if(n="#"+this.props.id,o=t(n).data("datetimepicker"),o&&e.prop.value!==props.prop.value&&!e.prop.value)return o.setDate(null)},initializeDateTimePicker:function(){var e,n;return n="#"+this.props.id,e=this.props.prop.updateFn,t(function(){return t(n).datetimepicker({sideBySide:!0,format:window.config.timestampFormat}).on("dp.change",e)})},getValue:function(){var e;if(this.props.prop.value)return e=l(this.props.prop.value),e.format(window.config.timestampFormat)},render:function(){return i.createElement("div",{className:"input-group date "+this.props.prop.customClass,id:this.props.id},i.createElement(r,{id:this.props.id,prop:{updateFn:this.props.prop.updateFn,value:this.getValue(),size:this.props.prop.size,disabled:this.props.prop.disabled,type:this.props.prop.inputType,placeholder:this.props.prop.placeholder,required:this.props.prop.required,customClass:this.props.prop.customClass}}),i.createElement("span",{className:"input-group-addon",onMouseOver:this.initializeDateTimePicker},i.createElement(s,{iconClass:"calendar"})))}}),e.exports=a}).call(t,n(1))},function(e,t,n){var a,r,s;/*! version : 4.15.35 ========================================================= bootstrap-datetimejs https://github.com/Eonasdan/bootstrap-datetimepicker Copyright (c) 2015 Jonathan Peterson ========================================================= */ !function(i){"use strict";r=[n(1),n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e,t){"use strict";if(!t)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var n=function(n,a){var r,s,i,o,l,u={},c=t().startOf("d"),p=c.clone(),d=!0,h=!1,f=!1,m=0,y=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],v=["days","months","years","decades"],g=["top","bottom","auto"],_=["left","right","auto"],b=["default","top","bottom"],k={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t","delete":46,46:"delete"},T={},w=function(e){if("string"!=typeof e||e.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(e){case"y":return i.indexOf("Y")!==-1;case"M":return i.indexOf("M")!==-1;case"d":return i.toLowerCase().indexOf("d")!==-1;case"h":case"H":return i.toLowerCase().indexOf("h")!==-1;case"m":return i.indexOf("m")!==-1;case"s":return i.indexOf("s")!==-1;default:return!1}},M=function(){return w("h")||w("m")||w("s")},x=function(){return w("y")||w("M")||w("d")},S=function(){var t=e("").append(e("").append(e("").addClass("prev").attr("data-action","previous").append(e("").addClass(a.icons.previous))).append(e("").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",a.calendarWeeks?"6":"5")).append(e("").addClass("next").attr("data-action","next").append(e("").addClass(a.icons.next)))),n=e("").append(e("").append(e("").attr("colspan",a.calendarWeeks?"8":"7")));return[e("
    ").addClass("datepicker-days").append(e("").addClass("table-condensed").append(t).append(e(""))),e("
    ").addClass("datepicker-months").append(e("
    ").addClass("table-condensed").append(t.clone()).append(n.clone())),e("
    ").addClass("datepicker-years").append(e("
    ").addClass("table-condensed").append(t.clone()).append(n.clone())),e("
    ").addClass("datepicker-decades").append(e("
    ").addClass("table-condensed").append(t.clone()).append(n.clone()))]},L=function(){var t=e(""),n=e(""),r=e("");return w("h")&&(t.append(e("
    ").append(e("").attr({href:"#",tabindex:"-1",title:"Increment Hour"}).addClass("btn").attr("data-action","incrementHours").append(e("").addClass(a.icons.up)))),n.append(e("").append(e("").addClass("timepicker-hour").attr({"data-time-component":"hours",title:"Pick Hour"}).attr("data-action","showHours"))),r.append(e("").append(e("").attr({href:"#",tabindex:"-1",title:"Decrement Hour"}).addClass("btn").attr("data-action","decrementHours").append(e("").addClass(a.icons.down))))),w("m")&&(w("h")&&(t.append(e("").addClass("separator")),n.append(e("").addClass("separator").html(":")),r.append(e("").addClass("separator"))),t.append(e("").append(e("").attr({href:"#",tabindex:"-1",title:"Increment Minute"}).addClass("btn").attr("data-action","incrementMinutes").append(e("").addClass(a.icons.up)))),n.append(e("").append(e("").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:"Pick Minute"}).attr("data-action","showMinutes"))),r.append(e("").append(e("").attr({href:"#",tabindex:"-1",title:"Decrement Minute"}).addClass("btn").attr("data-action","decrementMinutes").append(e("").addClass(a.icons.down))))),w("s")&&(w("m")&&(t.append(e("").addClass("separator")),n.append(e("").addClass("separator").html(":")),r.append(e("").addClass("separator"))),t.append(e("").append(e("").attr({href:"#",tabindex:"-1",title:"Increment Second"}).addClass("btn").attr("data-action","incrementSeconds").append(e("").addClass(a.icons.up)))),n.append(e("").append(e("").addClass("timepicker-second").attr({"data-time-component":"seconds",title:"Pick Second"}).attr("data-action","showSeconds"))),r.append(e("").append(e("").attr({href:"#",tabindex:"-1",title:"Decrement Second"}).addClass("btn").attr("data-action","decrementSeconds").append(e("").addClass(a.icons.down))))),s||(t.append(e("").addClass("separator")),n.append(e("").append(e("").addClass("separator"))),e("
    ").addClass("timepicker-picker").append(e("").addClass("table-condensed").append([t,n,r]))},D=function(){var t=e("
    ").addClass("timepicker-hours").append(e("
    ").addClass("table-condensed")),n=e("
    ").addClass("timepicker-minutes").append(e("
    ").addClass("table-condensed")),a=e("
    ").addClass("timepicker-seconds").append(e("
    ").addClass("table-condensed")),r=[L()];return w("h")&&r.push(t),w("m")&&r.push(n),w("s")&&r.push(a),r},E=function(){var t=[];return a.showTodayButton&&t.push(e("
    ").append(e("").attr({"data-action":"today",title:a.tooltips.today}).append(e("").addClass(a.icons.today)))),!a.sideBySide&&x()&&M()&&t.push(e("").append(e("").attr({"data-action":"togglePicker",title:"Select Time"}).append(e("").addClass(a.icons.time)))),a.showClear&&t.push(e("").append(e("").attr({"data-action":"clear",title:a.tooltips.clear}).append(e("").addClass(a.icons.clear)))),a.showClose&&t.push(e("").append(e("").attr({"data-action":"close",title:a.tooltips.close}).append(e("").addClass(a.icons.close)))),e("").addClass("table-condensed").append(e("").append(e("").append(t)))},I=function(){var t=e("
    ").addClass("bootstrap-datetimepicker-widget dropdown-menu"),n=e("
    ").addClass("datepicker").append(S()),r=e("
    ").addClass("timepicker").append(D()),i=e("
      ").addClass("list-unstyled"),o=e("
    • ").addClass("picker-switch"+(a.collapse?" accordion-toggle":"")).append(E());return a.inline&&t.removeClass("dropdown-menu"),s&&t.addClass("usetwentyfour"),w("s")&&!s&&t.addClass("wider"),a.sideBySide&&x()&&M()?(t.addClass("timepicker-sbs"),"top"===a.toolbarPlacement&&t.append(o),t.append(e("
      ").addClass("row").append(n.addClass("col-md-6")).append(r.addClass("col-md-6"))),"bottom"===a.toolbarPlacement&&t.append(o),t):("top"===a.toolbarPlacement&&i.append(o),x()&&i.append(e("
    • ").addClass(a.collapse&&M()?"collapse in":"").append(n)),"default"===a.toolbarPlacement&&i.append(o),M()&&i.append(e("
    • ").addClass(a.collapse&&x()?"collapse":"").append(r)),"bottom"===a.toolbarPlacement&&i.append(o),t.append(i))},O=function(){var t,r={};return t=n.is("input")||a.inline?n.data():n.find("input").data(),t.dateOptions&&t.dateOptions instanceof Object&&(r=e.extend(!0,r,t.dateOptions)),e.each(a,function(e){var n="date"+e.charAt(0).toUpperCase()+e.slice(1);void 0!==t[n]&&(r[e]=t[n])}),r},R=function(){var t,r=(h||n).position(),s=(h||n).offset(),i=a.widgetPositioning.vertical,o=a.widgetPositioning.horizontal;if(a.widgetParent)t=a.widgetParent.append(f);else if(n.is("input"))t=n.after(f).parent();else{if(a.inline)return void(t=n.append(f));t=n,n.children().first().after(f)}if("auto"===i&&(i=s.top+1.5*f.height()>=e(window).height()+e(window).scrollTop()&&f.height()+n.outerHeight()e(window).width()?"right":"left"),"top"===i?f.addClass("top").removeClass("bottom"):f.addClass("bottom").removeClass("top"),"right"===o?f.addClass("pull-right"):f.removeClass("pull-right"),"relative"!==t.css("position")&&(t=t.parents().filter(function(){return"relative"===e(this).css("position")}).first()),0===t.length)throw new Error("datetimepicker component should be placed within a relative positioned container");f.css({top:"top"===i?"auto":r.top+n.outerHeight(),bottom:"top"===i?r.top+n.outerHeight():"auto",left:"left"===o?t===n?0:r.left:"auto",right:"left"===o?"auto":t.outerWidth()-n.outerWidth()-(t===n?0:r.left)})},P=function(e){"dp.change"===e.type&&(e.date&&e.date.isSame(e.oldDate)||!e.date&&!e.oldDate)||n.trigger(e)},Y=function(e){"y"===e&&(e="YYYY"),P({type:"dp.update",change:e,viewDate:p.clone()})},C=function(e){f&&(e&&(l=Math.max(m,Math.min(3,l+e))),f.find(".datepicker > div").hide().filter(".datepicker-"+y[l].clsName).show())},q=function(){var t=e("
    "),n=p.clone().startOf("w").startOf("d");for(a.calendarWeeks===!0&&t.append(e(""),a.calendarWeeks&&r.append('"),u.push(r)),s="",n.isBefore(p,"M")&&(s+=" old"),n.isAfter(p,"M")&&(s+=" new"),n.isSame(c,"d")&&!d&&(s+=" active"),z(n,"d")||(s+=" disabled"),n.isSame(t(),"d")&&(s+=" today"),0!==n.day()&&6!==n.day()||(s+=" weekend"),r.append('"),n.add(1,"d");o.find("tbody").empty().append(u),B(),U(),W()}},V=function(){var t=f.find(".timepicker-hours table"),n=p.clone().startOf("d"),a=[],r=e("");for(p.hour()>11&&!s&&n.hour(12);n.isSame(p,"d")&&(s||p.hour()<12&&n.hour()<12||p.hour()>11);)n.hour()%4===0&&(r=e(""),a.push(r)),r.append('"),n.add(1,"h");t.empty().append(a)},K=function(){for(var t=f.find(".timepicker-minutes table"),n=p.clone().startOf("h"),r=[],s=e(""),i=1===a.stepping?5:a.stepping;p.isSame(n,"h");)n.minute()%(4*i)===0&&(s=e(""),r.push(s)),s.append('"),n.add(i,"m");t.empty().append(r)},$=function(){for(var t=f.find(".timepicker-seconds table"),n=p.clone().startOf("m"),a=[],r=e("");p.isSame(n,"m");)n.second()%20===0&&(r=e(""),a.push(r)),r.append('"),n.add(5,"s");t.empty().append(a)},J=function(){var e,t,n=f.find(".timepicker span[data-time-component]");s||(e=f.find(".timepicker [data-action=togglePeriod]"),t=c.clone().add(c.hours()>=12?-12:12,"h"),e.text(c.format("A")),z(t,"h")?e.removeClass("disabled"):e.addClass("disabled")),n.filter("[data-time-component=hours]").text(c.format(s?"HH":"hh")),n.filter("[data-time-component=minutes]").text(c.format("mm")),n.filter("[data-time-component=seconds]").text(c.format("ss")),V(),K(),$()},Z=function(){f&&(G(),J())},Q=function(e){var t=d?null:c;return e?(e=e.clone().locale(a.locale),1!==a.stepping&&e.minutes(Math.round(e.minutes()/a.stepping)*a.stepping%60).seconds(0),void(z(e)?(c=e,p=c.clone(),r.val(c.format(i)),n.data("date",c.format(i)),d=!1,Z(),P({type:"dp.change",date:c.clone(),oldDate:t})):(a.keepInvalid||r.val(d?"":c.format(i)),P({type:"dp.error",date:e})))):(d=!0,r.val(""),n.data("date",""),P({type:"dp.change",date:!1,oldDate:t}),void Z())},X=function(){var t=!1;return f?(f.find(".collapse").each(function(){var n=e(this).data("collapse");return!n||!n.transitioning||(t=!0,!1)}),t?u:(h&&h.hasClass("btn")&&h.toggleClass("active"),f.hide(),e(window).off("resize",R),f.off("click","[data-action]"),f.off("mousedown",!1),f.remove(),f=!1,P({type:"dp.hide",date:c.clone()}),r.blur(),u)):u},ee=function(){Q(null)},te={next:function(){var e=y[l].navFnc;p.add(y[l].navStep,e),G(),Y(e)},previous:function(){var e=y[l].navFnc;p.subtract(y[l].navStep,e),G(),Y(e)},pickerSwitch:function(){C(1)},selectMonth:function(t){var n=e(t.target).closest("tbody").find("span").index(e(t.target));p.month(n),l===m?(Q(c.clone().year(p.year()).month(p.month())),a.inline||X()):(C(-1),G()),Y("M")},selectYear:function(t){var n=parseInt(e(t.target).text(),10)||0;p.year(n),l===m?(Q(c.clone().year(p.year())),a.inline||X()):(C(-1),G()),Y("YYYY")},selectDecade:function(t){var n=parseInt(e(t.target).data("selection"),10)||0;p.year(n),l===m?(Q(c.clone().year(p.year())),a.inline||X()):(C(-1),G()),Y("YYYY")},selectDay:function(t){var n=p.clone();e(t.target).is(".old")&&n.subtract(1,"M"),e(t.target).is(".new")&&n.add(1,"M"),Q(n.date(parseInt(e(t.target).text(),10))),M()||a.keepOpen||a.inline||X()},incrementHours:function(){var e=c.clone().add(1,"h");z(e,"h")&&Q(e)},incrementMinutes:function(){var e=c.clone().add(a.stepping,"m");z(e,"m")&&Q(e)},incrementSeconds:function(){var e=c.clone().add(1,"s");z(e,"s")&&Q(e)},decrementHours:function(){var e=c.clone().subtract(1,"h");z(e,"h")&&Q(e)},decrementMinutes:function(){var e=c.clone().subtract(a.stepping,"m");z(e,"m")&&Q(e)},decrementSeconds:function(){var e=c.clone().subtract(1,"s");z(e,"s")&&Q(e)},togglePeriod:function(){Q(c.clone().add(c.hours()>=12?-12:12,"h"))},togglePicker:function(t){var n,r=e(t.target),s=r.closest("ul"),i=s.find(".in"),o=s.find(".collapse:not(.in)");if(i&&i.length){if(n=i.data("collapse"),n&&n.transitioning)return;i.collapse?(i.collapse("hide"),o.collapse("show")):(i.removeClass("in"),o.addClass("in")),r.is("span")?r.toggleClass(a.icons.time+" "+a.icons.date):r.find("span").toggleClass(a.icons.time+" "+a.icons.date)}},showPicker:function(){f.find(".timepicker > div:not(.timepicker-picker)").hide(),f.find(".timepicker .timepicker-picker").show()},showHours:function(){f.find(".timepicker .timepicker-picker").hide(),f.find(".timepicker .timepicker-hours").show()},showMinutes:function(){f.find(".timepicker .timepicker-picker").hide(),f.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){f.find(".timepicker .timepicker-picker").hide(),f.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var n=parseInt(e(t.target).text(),10);s||(c.hours()>=12?12!==n&&(n+=12):12===n&&(n=0)),Q(c.clone().hours(n)),te.showPicker.call(u)},selectMinute:function(t){Q(c.clone().minutes(parseInt(e(t.target).text(),10))),te.showPicker.call(u)},selectSecond:function(t){Q(c.clone().seconds(parseInt(e(t.target).text(),10))),te.showPicker.call(u)},clear:ee,today:function(){z(t(),"d")&&Q(t())},close:X},ne=function(t){return!e(t.currentTarget).is(".disabled")&&(te[e(t.currentTarget).data("action")].apply(u,arguments),!1)},ae=function(){var n,s={year:function(e){return e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(e){return e.date(1).hours(0).seconds(0).minutes(0)},day:function(e){return e.hours(0).seconds(0).minutes(0)},hour:function(e){return e.seconds(0).minutes(0)},minute:function(e){return e.seconds(0)}};return r.prop("disabled")||!a.ignoreReadonly&&r.prop("readonly")||f?u:(void 0!==r.val()&&0!==r.val().trim().length?Q(se(r.val().trim())):a.useCurrent&&d&&(r.is("input")&&0===r.val().trim().length||a.inline)&&(n=t(),"string"==typeof a.useCurrent&&(n=s[a.useCurrent](n)),Q(n)),f=I(),q(),H(),f.find(".timepicker-hours").hide(),f.find(".timepicker-minutes").hide(),f.find(".timepicker-seconds").hide(),Z(),C(),e(window).on("resize",R),f.on("click","[data-action]",ne),f.on("mousedown",!1),h&&h.hasClass("btn")&&h.toggleClass("active"),f.show(),R(),a.focusOnShow&&!r.is(":focus")&&r.focus(),P({type:"dp.show"}),u)},re=function(){return f?X():ae()},se=function(e){return e=void 0===a.parseInputDate?t.isMoment(e)||e instanceof Date?t(e):t(e,o,a.useStrict):a.parseInputDate(e),e.locale(a.locale),e},ie=function(e){var t,n,r,s,i=null,o=[],l={},c=e.which,p="p";T[c]=p;for(t in T)T.hasOwnProperty(t)&&T[t]===p&&(o.push(t),parseInt(t,10)!==c&&(l[t]=!0));for(t in a.keyBinds)if(a.keyBinds.hasOwnProperty(t)&&"function"==typeof a.keyBinds[t]&&(r=t.split(" "),r.length===o.length&&k[c]===r[r.length-1])){for(s=!0,n=r.length-2;n>=0;n--)if(!(k[r[n]]in l)){s=!1;break}if(s){i=a.keyBinds[t];break}}i&&(i.call(u,f),e.stopPropagation(),e.preventDefault())},oe=function(e){T[e.which]="r",e.stopPropagation(),e.preventDefault()},le=function(t){var n=e(t.target).val().trim(),a=n?se(n):null;return Q(a),t.stopImmediatePropagation(),!1},ue=function(){r.on({change:le,blur:a.debug?"":X,keydown:ie,keyup:oe,focus:a.allowInputToggle?ae:""}),n.is("input")?r.on({focus:ae}):h&&(h.on("click",re),h.on("mousedown",!1))},ce=function(){r.off({change:le,blur:blur,keydown:ie,keyup:oe,focus:a.allowInputToggle?X:""}),n.is("input")?r.off({focus:ae}):h&&(h.off("click",re),h.off("mousedown",!1))},pe=function(t){var n={};return e.each(t,function(){var e=se(this);e.isValid()&&(n[e.format("YYYY-MM-DD")]=!0)}),!!Object.keys(n).length&&n},de=function(t){var n={};return e.each(t,function(){n[this]=!0}),!!Object.keys(n).length&&n},he=function(){var e=a.format||"L LT";i=e.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){var t=c.localeData().longDateFormat(e)||e;return t.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return c.localeData().longDateFormat(e)||e})}),o=a.extraFormats?a.extraFormats.slice():[],o.indexOf(e)<0&&o.indexOf(i)<0&&o.push(i),s=i.toLowerCase().indexOf("a")<1&&i.replace(/\[.*?\]/g,"").indexOf("h")<1,w("y")&&(m=2),w("M")&&(m=1),w("d")&&(m=0),l=Math.max(m,l),d||Q(c)};if(u.destroy=function(){X(),ce(),n.removeData("DateTimePicker"),n.removeData("date")},u.toggle=re,u.show=ae,u.hide=X,u.disable=function(){return X(),h&&h.hasClass("btn")&&h.addClass("disabled"),r.prop("disabled",!0),u},u.enable=function(){return h&&h.hasClass("btn")&&h.removeClass("disabled"),r.prop("disabled",!1),u},u.ignoreReadonly=function(e){if(0===arguments.length)return a.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");return a.ignoreReadonly=e,u},u.options=function(t){if(0===arguments.length)return e.extend(!0,{},a);if(!(t instanceof Object))throw new TypeError("options() options parameter should be an object");return e.extend(!0,a,t),e.each(a,function(e,t){if(void 0===u[e])throw new TypeError("option "+e+" is not recognized!");u[e](t)}),u},u.date=function(e){if(0===arguments.length)return d?null:c.clone();if(!(null===e||"string"==typeof e||t.isMoment(e)||e instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return Q(null===e?null:se(e)),u},u.format=function(e){if(0===arguments.length)return a.format;if("string"!=typeof e&&("boolean"!=typeof e||e!==!1))throw new TypeError("format() expects a sting or boolean:false parameter "+e);return a.format=e,i&&he(),u},u.dayViewHeaderFormat=function(e){if(0===arguments.length)return a.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return a.dayViewHeaderFormat=e,u},u.extraFormats=function(e){if(0===arguments.length)return a.extraFormats;if(e!==!1&&!(e instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return a.extraFormats=e,o&&he(),u},u.disabledDates=function(t){if(0===arguments.length)return a.disabledDates?e.extend({},a.disabledDates):a.disabledDates;if(!t)return a.disabledDates=!1,Z(),u;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return a.disabledDates=pe(t),a.enabledDates=!1,Z(),u},u.enabledDates=function(t){if(0===arguments.length)return a.enabledDates?e.extend({},a.enabledDates):a.enabledDates;if(!t)return a.enabledDates=!1,Z(),u;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return a.enabledDates=pe(t),a.disabledDates=!1,Z(),u},u.daysOfWeekDisabled=function(e){if(0===arguments.length)return a.daysOfWeekDisabled.splice(0);if("boolean"==typeof e&&!e)return a.daysOfWeekDisabled=!1,Z(),u;if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(a.daysOfWeekDisabled=e.reduce(function(e,t){return t=parseInt(t,10),t>6||t<0||isNaN(t)?e:(e.indexOf(t)===-1&&e.push(t),e)},[]).sort(),a.useCurrent&&!a.keepInvalid){for(var t=0;!z(c,"d");){if(c.add(1,"d"),7===t)throw"Tried 7 times to find a valid date";t++}Q(c)}return Z(),u},u.maxDate=function(e){if(0===arguments.length)return a.maxDate?a.maxDate.clone():a.maxDate;if("boolean"==typeof e&&e===!1)return a.maxDate=!1,Z(),u;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=t()));var n=se(e);if(!n.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+e);if(a.minDate&&n.isBefore(a.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+n.format(i));return a.maxDate=n,a.useCurrent&&!a.keepInvalid&&c.isAfter(e)&&Q(a.maxDate),p.isAfter(n)&&(p=n.clone().subtract(a.stepping,"m")),Z(),u},u.minDate=function(e){if(0===arguments.length)return a.minDate?a.minDate.clone():a.minDate;if("boolean"==typeof e&&e===!1)return a.minDate=!1,Z(),u;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=t()));var n=se(e);if(!n.isValid())throw new TypeError("minDate() Could not parse date parameter: "+e);if(a.maxDate&&n.isAfter(a.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+n.format(i));return a.minDate=n,a.useCurrent&&!a.keepInvalid&&c.isBefore(e)&&Q(a.minDate),p.isBefore(n)&&(p=n.clone().add(a.stepping,"m")),Z(),u},u.defaultDate=function(e){if(0===arguments.length)return a.defaultDate?a.defaultDate.clone():a.defaultDate;if(!e)return a.defaultDate=!1,u;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=t()));var n=se(e);if(!n.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+e);if(!z(n))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return a.defaultDate=n,(a.defaultDate&&a.inline||""===r.val().trim()&&void 0===r.attr("placeholder"))&&Q(a.defaultDate),u},u.locale=function(e){if(0===arguments.length)return a.locale;if(!t.localeData(e))throw new TypeError("locale() locale "+e+" is not loaded from moment locales!");return a.locale=e,c.locale(a.locale),p.locale(a.locale),i&&he(),f&&(X(),ae()),u},u.stepping=function(e){return 0===arguments.length?a.stepping:(e=parseInt(e,10),(isNaN(e)||e<1)&&(e=1),a.stepping=e,u)},u.useCurrent=function(e){var t=["year","month","day","hour","minute"];if(0===arguments.length)return a.useCurrent;if("boolean"!=typeof e&&"string"!=typeof e)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof e&&t.indexOf(e.toLowerCase())===-1)throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));return a.useCurrent=e,u},u.collapse=function(e){if(0===arguments.length)return a.collapse;if("boolean"!=typeof e)throw new TypeError("collapse() expects a boolean parameter");return a.collapse===e?u:(a.collapse=e,f&&(X(),ae()),u)},u.icons=function(t){if(0===arguments.length)return e.extend({},a.icons);if(!(t instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return e.extend(a.icons,t),f&&(X(),ae()),u},u.tooltips=function(t){if(0===arguments.length)return e.extend({},a.tooltips);if(!(t instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return e.extend(a.tooltips,t),f&&(X(),ae()),u},u.useStrict=function(e){if(0===arguments.length)return a.useStrict;if("boolean"!=typeof e)throw new TypeError("useStrict() expects a boolean parameter");return a.useStrict=e,u},u.sideBySide=function(e){if(0===arguments.length)return a.sideBySide;if("boolean"!=typeof e)throw new TypeError("sideBySide() expects a boolean parameter");return a.sideBySide=e,f&&(X(),ae()),u},u.viewMode=function(e){if(0===arguments.length)return a.viewMode;if("string"!=typeof e)throw new TypeError("viewMode() expects a string parameter");if(v.indexOf(e)===-1)throw new TypeError("viewMode() parameter must be one of ("+v.join(", ")+") value");return a.viewMode=e,l=Math.max(v.indexOf(e),m),C(),u},u.toolbarPlacement=function(e){if(0===arguments.length)return a.toolbarPlacement;if("string"!=typeof e)throw new TypeError("toolbarPlacement() expects a string parameter");if(b.indexOf(e)===-1)throw new TypeError("toolbarPlacement() parameter must be one of ("+b.join(", ")+") value");return a.toolbarPlacement=e,f&&(X(),ae()),u},u.widgetPositioning=function(t){if(0===arguments.length)return e.extend({},a.widgetPositioning);if("[object Object]"!=={}.toString.call(t))throw new TypeError("widgetPositioning() expects an object variable");if(t.horizontal){if("string"!=typeof t.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(t.horizontal=t.horizontal.toLowerCase(),_.indexOf(t.horizontal)===-1)throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+_.join(", ")+")");a.widgetPositioning.horizontal=t.horizontal}if(t.vertical){if("string"!=typeof t.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(t.vertical=t.vertical.toLowerCase(),g.indexOf(t.vertical)===-1)throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+g.join(", ")+")");a.widgetPositioning.vertical=t.vertical}return Z(),u},u.calendarWeeks=function(e){if(0===arguments.length)return a.calendarWeeks;if("boolean"!=typeof e)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return a.calendarWeeks=e,Z(),u},u.showTodayButton=function(e){if(0===arguments.length)return a.showTodayButton;if("boolean"!=typeof e)throw new TypeError("showTodayButton() expects a boolean parameter");return a.showTodayButton=e,f&&(X(),ae()),u},u.showClear=function(e){if(0===arguments.length)return a.showClear;if("boolean"!=typeof e)throw new TypeError("showClear() expects a boolean parameter");return a.showClear=e,f&&(X(),ae()),u},u.widgetParent=function(t){if(0===arguments.length)return a.widgetParent;if("string"==typeof t&&(t=e(t)),null!==t&&"string"!=typeof t&&!(t instanceof e))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return a.widgetParent=t,f&&(X(),ae()),u},u.keepOpen=function(e){if(0===arguments.length)return a.keepOpen;if("boolean"!=typeof e)throw new TypeError("keepOpen() expects a boolean parameter");return a.keepOpen=e,u},u.focusOnShow=function(e){if(0===arguments.length)return a.focusOnShow;if("boolean"!=typeof e)throw new TypeError("focusOnShow() expects a boolean parameter");return a.focusOnShow=e,u},u.inline=function(e){if(0===arguments.length)return a.inline;if("boolean"!=typeof e)throw new TypeError("inline() expects a boolean parameter");return a.inline=e,u},u.clear=function(){return ee(),u},u.keyBinds=function(e){return a.keyBinds=e,u},u.debug=function(e){if("boolean"!=typeof e)throw new TypeError("debug() expects a boolean parameter");return a.debug=e,u},u.allowInputToggle=function(e){if(0===arguments.length)return a.allowInputToggle;if("boolean"!=typeof e)throw new TypeError("allowInputToggle() expects a boolean parameter");return a.allowInputToggle=e,u},u.showClose=function(e){if(0===arguments.length)return a.showClose;if("boolean"!=typeof e)throw new TypeError("showClose() expects a boolean parameter");return a.showClose=e,u},u.keepInvalid=function(e){if(0===arguments.length)return a.keepInvalid;if("boolean"!=typeof e)throw new TypeError("keepInvalid() expects a boolean parameter");return a.keepInvalid=e,u},u.datepickerInput=function(e){if(0===arguments.length)return a.datepickerInput;if("string"!=typeof e)throw new TypeError("datepickerInput() expects a string parameter");return a.datepickerInput=e,u},u.parseInputDate=function(e){if(0===arguments.length)return a.parseInputDate;if("function"!=typeof e)throw new TypeError("parseInputDate() sholud be as function");return a.parseInputDate=e,u},u.disabledTimeIntervals=function(t){if(0===arguments.length)return a.disabledTimeIntervals?e.extend({},a.disabledTimeIntervals):a.disabledTimeIntervals;if(!t)return a.disabledTimeIntervals=!1,Z(),u;if(!(t instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return a.disabledTimeIntervals=t,Z(),u},u.disabledHours=function(t){if(0===arguments.length)return a.disabledHours?e.extend({},a.disabledHours):a.disabledHours;if(!t)return a.disabledHours=!1,Z(),u;if(!(t instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(a.disabledHours=de(t),a.enabledHours=!1,a.useCurrent&&!a.keepInvalid){for(var n=0;!z(c,"h");){if(c.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}Q(c)}return Z(),u},u.enabledHours=function(t){if(0===arguments.length)return a.enabledHours?e.extend({},a.enabledHours):a.enabledHours; if(!t)return a.enabledHours=!1,Z(),u;if(!(t instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(a.enabledHours=de(t),a.disabledHours=!1,a.useCurrent&&!a.keepInvalid){for(var n=0;!z(c,"h");){if(c.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}Q(c)}return Z(),u},u.viewDate=function(e){if(0===arguments.length)return p.clone();if(!e)return p=c.clone(),u;if(!("string"==typeof e||t.isMoment(e)||e instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return p=se(e),Y(),u},n.is("input"))r=n;else if(r=n.find(a.datepickerInput),0===r.size())r=n.find("input");else if(!r.is("input"))throw new Error('CSS class "'+a.datepickerInput+'" cannot be applied to non input element');if(n.hasClass("input-group")&&(h=0===n.find(".datepickerbutton").size()?n.find(".input-group-addon"):n.find(".datepickerbutton")),!a.inline&&!r.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return e.extend(!0,a,O()),u.options(a),he(),ue(),r.prop("disabled")&&u.disable(),r.is("input")&&0!==r.val().trim().length?Q(se(r.val().trim())):a.defaultDate&&void 0===r.attr("placeholder")&&Q(a.defaultDate),a.inline&&ae(),u};e.fn.datetimepicker=function(t){return this.each(function(){var a=e(this);a.data("DateTimePicker")||(t=e.extend(!0,{},e.fn.datetimepicker.defaults,t),a.data("DateTimePicker",n(a,t)))})},e.fn.datetimepicker.defaults={format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:t.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")?this.date(n.clone().subtract(7,"d")):this.date(n.clone().add(this.stepping(),"m"))}},down:function(e){if(!e)return void this.show();var n=this.date()||t();e.find(".datepicker").is(":visible")?this.date(n.clone().add(7,"d")):this.date(n.clone().subtract(this.stepping(),"m"))},"control up":function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")?this.date(n.clone().subtract(1,"y")):this.date(n.clone().add(1,"h"))}},"control down":function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")?this.date(n.clone().add(1,"y")):this.date(n.clone().subtract(1,"h"))}},left:function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")&&this.date(n.clone().subtract(1,"d"))}},right:function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")&&this.date(n.clone().add(1,"d"))}},pageUp:function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")&&this.date(n.clone().subtract(1,"M"))}},pageDown:function(e){if(e){var n=this.date()||t();e.find(".datepicker").is(":visible")&&this.date(n.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(e){e.find(".timepicker").is(":visible")&&e.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(t())},"delete":function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1}})},function(e,t,n){var a;(function(e,r){//! moment.js //! version : 2.8.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com (function(s){function i(e,t,n){switch(arguments.length){case 2:return null!=e?e:t;case 3:return null!=e?e:null!=t?t:n;default:throw new Error("Implement me")}}function o(e,t){return Ie.call(e,t)}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function u(e){Me.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function c(e,t){var n=!0;return v(function(){return n&&(u(e),n=!1),t.apply(this,arguments)},t)}function p(e,t){kt[e]||(u(t),kt[e]=!0)}function d(e,t){return function(n){return b(e.call(this,n),t)}}function h(e,t){return function(n){return this.localeData().ordinal(e.call(this,n),t)}}function f(){}function m(e,t){t!==!1&&q(e),g(this,e),this._d=new Date((+e._d))}function y(e){var t=E(e),n=t.year||0,a=t.quarter||0,r=t.month||0,s=t.week||0,i=t.day||0,o=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*u+6e4*l+36e5*o,this._days=+i+7*s,this._months=+r+3*a+12*n,this._data={},this._locale=Me.localeData(),this._bubble()}function v(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function g(e,t){var n,a,r;if("undefined"!=typeof t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(e._i=t._i),"undefined"!=typeof t._f&&(e._f=t._f),"undefined"!=typeof t._l&&(e._l=t._l),"undefined"!=typeof t._strict&&(e._strict=t._strict),"undefined"!=typeof t._tzm&&(e._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(e._isUTC=t._isUTC),"undefined"!=typeof t._offset&&(e._offset=t._offset),"undefined"!=typeof t._pf&&(e._pf=t._pf),"undefined"!=typeof t._locale&&(e._locale=t._locale),Fe.length>0)for(n in Fe)a=Fe[n],r=t[a],"undefined"!=typeof r&&(e[a]=r);return e}function _(e){return e<0?Math.ceil(e):Math.floor(e)}function b(e,t,n){for(var a=""+Math.abs(e),r=e>=0;a.length=0?Math.floor(t):Math.ceil(t)),n}function R(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function P(e,t,n){return de(Me([e,11,31+t-n]),t,n).week}function Y(e){return C(e)?366:365}function C(e){return e%4===0&&e%100!==0||e%400===0}function q(e){var t;e._a&&e._pf.overflow===-2&&(t=e._a[Re]<0||e._a[Re]>11?Re:e._a[Pe]<1||e._a[Pe]>R(e._a[Oe],e._a[Re])?Pe:e._a[Ye]<0||e._a[Ye]>24||24===e._a[Ye]&&(0!==e._a[Ce]||0!==e._a[qe]||0!==e._a[Ne])?Ye:e._a[Ce]<0||e._a[Ce]>59?Ce:e._a[qe]<0||e._a[qe]>59?qe:e._a[Ne]<0||e._a[Ne]>999?Ne:-1,e._pf._overflowDayOfYear&&(tPe)&&(t=Pe),e._pf.overflow=t)}function N(e){return null==e._isValid&&(e._isValid=!isNaN(e._d.getTime())&&e._pf.overflow<0&&!e._pf.empty&&!e._pf.invalidMonth&&!e._pf.nullInput&&!e._pf.invalidFormat&&!e._pf.userInvalidated,e._strict&&(e._isValid=e._isValid&&0===e._pf.charsLeftOver&&0===e._pf.unusedTokens.length&&e._pf.bigHour===s)),e._isValid}function A(e){return e?e.toLowerCase().replace("_","-"):e}function F(e){for(var t,n,a,r,s=0;s0;){if(a=j(r.slice(0,t).join("-")))return a;if(n&&n.length>=t&&L(r,n,!0)>=t-1)break;t--}s++}return null}function j(e){var t=null;if(!Ae[e]&&je)try{t=Me.locale(),n(714)("./"+e),Me.locale(t)}catch(a){}return Ae[e]}function z(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(Me.isMoment(e)||S(e)?+e:+Me(e))-+n,n._d.setTime(+n._d+a),Me.updateOffset(n,!1),n):Me(e).local()}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,a=e.match(Ue);for(t=0,n=a.length;t=0&&We.test(e);)e=e.replace(We,n),We.lastIndex=0,a-=1;return e}function G(e,t){var n,a=t._strict;switch(e){case"Q":return nt;case"DDDD":return rt;case"YYYY":case"GGGG":case"gggg":return a?st:Ke;case"Y":case"G":case"g":return ot;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return a?it:$e;case"S":if(a)return nt;case"SS":if(a)return at;case"SSS":if(a)return rt;case"DDD":return Ve;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Ze;case"a":case"A":return t._locale._meridiemParse;case"x":return et;case"X":return tt;case"Z":case"ZZ":return Qe;case"T":return Xe;case"SSSS":return Je;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return a?at:Ge;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Ge;case"Do":return a?t._locale._ordinalParse:t._locale._ordinalParseLenient;default:return n=new RegExp(te(ee(e.replace("\\","")),"i"))}}function V(e){e=e||"";var t=e.match(Qe)||[],n=t[t.length-1]||[],a=(n+"").match(dt)||["-",0,0],r=+(60*a[1])+O(a[2]);return"+"===a[0]?-r:r}function K(e,t,n){var a,r=n._a;switch(e){case"Q":null!=t&&(r[Re]=3*(O(t)-1));break;case"M":case"MM":null!=t&&(r[Re]=O(t)-1);break;case"MMM":case"MMMM":a=n._locale.monthsParse(t,e,n._strict),null!=a?r[Re]=a:n._pf.invalidMonth=t;break;case"D":case"DD":null!=t&&(r[Pe]=O(t));break;case"Do":null!=t&&(r[Pe]=O(parseInt(t.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=t&&(n._dayOfYear=O(t));break;case"YY":r[Oe]=Me.parseTwoDigitYear(t);break;case"YYYY":case"YYYYY":case"YYYYYY":r[Oe]=O(t);break;case"a":case"A":n._isPm=n._locale.isPM(t);break;case"h":case"hh":n._pf.bigHour=!0;case"H":case"HH":r[Ye]=O(t);break;case"m":case"mm":r[Ce]=O(t);break;case"s":case"ss":r[qe]=O(t);break;case"S":case"SS":case"SSS":case"SSSS":r[Ne]=O(1e3*("0."+t));break;case"x":n._d=new Date(O(t));break;case"X":n._d=new Date(1e3*parseFloat(t));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=V(t);break;case"dd":case"ddd":case"dddd":a=n._locale.weekdaysParse(t),null!=a?(n._w=n._w||{},n._w.d=a):n._pf.invalidWeekday=t;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":e=e.substr(0,1);case"gggg":case"GGGG":case"GGGGG":e=e.substr(0,2),t&&(n._w=n._w||{},n._w[e]=O(t));break;case"gg":case"GG":n._w=n._w||{},n._w[e]=Me.parseTwoDigitYear(t)}}function $(e){var t,n,a,r,s,o,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(s=1,o=4,n=i(t.GG,e._a[Oe],de(Me(),1,4).year),a=i(t.W,1),r=i(t.E,1)):(s=e._locale._week.dow,o=e._locale._week.doy,n=i(t.gg,e._a[Oe],de(Me(),s,o).year),a=i(t.w,1),null!=t.d?(r=t.d,rY(r)&&(e._pf._overflowDayOfYear=!0),n=le(r,0,e._dayOfYear),e._a[Re]=n.getUTCMonth(),e._a[Pe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=a[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ye]&&0===e._a[Ce]&&0===e._a[qe]&&0===e._a[Ne]&&(e._nextDay=!0,e._a[Ye]=0),e._d=(e._useUTC?le:oe).apply(null,s),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()+e._tzm),e._nextDay&&(e._a[Ye]=24)}}function Z(e){var t;e._d||(t=E(e._i),e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],J(e))}function Q(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function X(e){if(e._f===Me.ISO_8601)return void ae(e);e._a=[],e._pf.empty=!0;var t,n,a,r,i,o=""+e._i,l=o.length,u=0;for(a=W(e._f,e._locale).match(Ue)||[],t=0;t0&&e._pf.unusedInput.push(i),o=o.slice(o.indexOf(n)+n.length),u+=n.length),bt[r]?(n?e._pf.empty=!1:e._pf.unusedTokens.push(r),K(r,n,e)):e._strict&&!n&&e._pf.unusedTokens.push(r);e._pf.charsLeftOver=l-u,o.length>0&&e._pf.unusedInput.push(o),e._pf.bigHour===!0&&e._a[Ye]<=12&&(e._pf.bigHour=s),e._isPm&&e._a[Ye]<12&&(e._a[Ye]+=12),e._isPm===!1&&12===e._a[Ye]&&(e._a[Ye]=0),J(e),q(e)}function ee(e){return e.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,a,r){return t||n||a||r})}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e){var t,n,a,r,s;if(0===e._f.length)return e._pf.invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r0,c[4]=n,ce.apply({},c)}function de(e,t,n){var a,r=n-t,s=n-e.day();return s>r&&(s-=7),sa?7:0)-(o0?e:e-1,dayOfYear:i>0?i:Y(e-1)+i}}function fe(e){var t,n=e._i,a=e._f;return e._locale=e._locale||Me.localeData(e._l),null===n||a===s&&""===n?Me.invalid({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),Me.isMoment(n)?new m(n,(!0)):(a?x(a)?ne(e):X(e):ie(e),t=new m(e),t._nextDay&&(t.add(1,"d"),t._nextDay=s),t))}function me(e,t){var n,a;if(1===t.length&&x(t[0])&&(t=t[0]),!t.length)return Me();for(n=t[0],a=1;a=0?"+":"-";return t+b(Math.abs(e),6)},gg:function(){return b(this.weekYear()%100,2)},gggg:function(){return b(this.weekYear(),4)},ggggg:function(){return b(this.weekYear(),5)},GG:function(){return b(this.isoWeekYear()%100,2)},GGGG:function(){return b(this.isoWeekYear(),4)},GGGGG:function(){return b(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return O(this.milliseconds()/100)},SS:function(){return b(O(this.milliseconds()/10),2)},SSS:function(){return b(this.milliseconds(),3)},SSSS:function(){return b(this.milliseconds(),3)},Z:function(){var e=-this.zone(),t="+";return e<0&&(e=-e,t="-"),t+b(O(e/60),2)+":"+b(O(e)%60,2)},ZZ:function(){var e=-this.zone(),t="+";return e<0&&(e=-e,t="-"),t+b(O(e/60),2)+b(O(e)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},kt={},Tt=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];gt.length;)Se=gt.pop(),bt[Se+"o"]=h(bt[Se],Se);for(;_t.length;)Se=_t.pop(),bt[Se+Se]=d(bt[Se],2);bt.DDDD=d(bt.DDD,3),v(f.prototype,{set:function(e){var t,n;for(n in e)t=e[n],"function"==typeof t?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(e){return this._months[e.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(e){return this._monthsShort[e.month()]},monthsParse:function(e,t,n){var a,r,s;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(r=Me.utc([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[a]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(e){return this._weekdays[e.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(e){return this._weekdaysShort[e.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(e){return this._weekdaysMin[e.day()]},weekdaysParse:function(e){var t,n,a;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;t<7;t++)if(this._weekdaysParse[t]||(n=Me([2e3,1]).day(t),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t},isPM:function(e){return"p"===(e+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(e,t,n){var a=this._calendar[e];return"function"==typeof a?a.apply(t,[n]):a},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(e,t,n,a){var r=this._relativeTime[n];return"function"==typeof r?r(e,t,n,a):r.replace(/%d/i,e)},pastFuture:function(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},ordinal:function(e){return this._ordinal.replace("%d",e)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(e){return e},postformat:function(e){return e},week:function(e){return de(e,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),Me=function(e,t,n,a){var r;return"boolean"==typeof n&&(a=n,n=s),r={},r._isAMomentObject=!0,r._i=e,r._f=t,r._l=n,r._strict=a,r._isUTC=!1,r._pf=l(),fe(r)},Me.suppressDeprecationWarnings=!1,Me.createFromInputFallback=c("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),Me.min=function(){var e=[].slice.call(arguments,0);return me("isBefore",e)},Me.max=function(){var e=[].slice.call(arguments,0);return me("isAfter",e)},Me.utc=function(e,t,n,a){var r;return"boolean"==typeof n&&(a=n,n=s),r={},r._isAMomentObject=!0,r._useUTC=!0,r._isUTC=!0,r._l=n,r._i=e,r._f=t,r._strict=a,r._pf=l(),fe(r).utc()},Me.unix=function(e){return Me(1e3*e)},Me.duration=function(e,t){var n,a,r,s,i=e,l=null;return Me.isDuration(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(i={},t?i[t]=e:i.milliseconds=e):(l=He.exec(e))?(n="-"===l[1]?-1:1,i={y:0,d:O(l[Pe])*n,h:O(l[Ye])*n,m:O(l[Ce])*n,s:O(l[qe])*n,ms:O(l[Ne])*n}):(l=Be.exec(e))?(n="-"===l[1]?-1:1,r=function(e){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*n},i={y:r(l[2]),M:r(l[3]),d:r(l[4]),h:r(l[5]),m:r(l[6]),s:r(l[7]),w:r(l[8])}):"object"==typeof i&&("from"in i||"to"in i)&&(s=T(Me(i.from),Me(i.to)),i={},i.ms=s.milliseconds,i.M=s.months),a=new y(i),Me.isDuration(e)&&o(e,"_locale")&&(a._locale=e._locale),a},Me.version=Le,Me.defaultFormat=ut,Me.ISO_8601=function(){},Me.momentProperties=Fe,Me.updateOffset=function(){},Me.relativeTimeThreshold=function(e,t){return vt[e]!==s&&(t===s?vt[e]:(vt[e]=t,!0))},Me.lang=c("moment.lang is deprecated. Use moment.locale instead.",function(e,t){return Me.locale(e,t)}),Me.locale=function(e,t){var n;return e&&(n="undefined"!=typeof t?Me.defineLocale(e,t):Me.localeData(e),n&&(Me.duration._locale=Me._locale=n)),Me._locale._abbr},Me.defineLocale=function(e,t){return null!==t?(t.abbr=e,Ae[e]||(Ae[e]=new f),Ae[e].set(t),Me.locale(e),Ae[e]):(delete Ae[e],null)},Me.langData=c("moment.langData is deprecated. Use moment.localeData instead.",function(e){return Me.localeData(e)}),Me.localeData=function(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Me._locale;if(!x(e)){if(t=j(e))return t;e=[e]}return F(e)},Me.isMoment=function(e){return e instanceof m||null!=e&&o(e,"_isAMomentObject")},Me.isDuration=function(e){return e instanceof y};for(Se=Tt.length-1;Se>=0;--Se)I(Tt[Se]);Me.normalizeUnits=function(e){return D(e)},Me.invalid=function(e){var t=Me.utc(NaN);return null!=e?v(t._pf,e):t._pf.userInvalidated=!0,t},Me.parseZone=function(){return Me.apply(null,arguments).parseZone()},Me.parseTwoDigitYear=function(e){return O(e)+(O(e)>68?1900:2e3)},v(Me.fn=m.prototype,{clone:function(){return Me(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date((+this)):this._d},toISOString:function(){var e=Me(this).utc();return 00)},parsingFlags:function(){return v({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(e){return this.zone(0,e)},local:function(e){return this._isUTC&&(this.zone(0,e),this._isUTC=!1,e&&this.add(this._dateTzOffset(),"m")),this},format:function(e){var t=U(this,e||Me.defaultFormat);return this.localeData().postformat(t)},add:w(1,"add"),subtract:w(-1,"subtract"),diff:function(e,t,n){var a,r,s,i=z(e,this),o=6e4*(this.zone()-i.zone());return t=D(t),"year"===t||"month"===t?(a=432e5*(this.daysInMonth()+i.daysInMonth()),r=12*(this.year()-i.year())+(this.month()-i.month()),s=this-Me(this).startOf("month")-(i-Me(i).startOf("month")),s-=6e4*(this.zone()-Me(this).startOf("month").zone()-(i.zone()-Me(i).startOf("month").zone())),r+=s/a,"year"===t&&(r/=12)):(a=this-i,r="second"===t?a/1e3:"minute"===t?a/6e4:"hour"===t?a/36e5:"day"===t?(a-o)/864e5:"week"===t?(a-o)/6048e5:a),n?r:_(r)},from:function(e,t){return Me.duration({to:this,from:e}).locale(this.locale()).humanize(!t)},fromNow:function(e){return this.from(Me(),e)},calendar:function(e){var t=e||Me(),n=z(t,this).startOf("day"),a=this.diff(n,"days",!0),r=a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse";return this.format(this.localeData().calendar(r,this,Me(t)))},isLeapYear:function(){return C(this.year())},isDST:function(){return this.zone()+e):(n=Me.isMoment(e)?+e:+Me(e),n<+this.clone().startOf(t))},isBefore:function(e,t){var n;return t=D("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=Me.isMoment(e)?e:Me(e),+this<+e):(n=Me.isMoment(e)?+e:+Me(e),+this.clone().endOf(t)this?this:e}),zone:function(e,t){var n,a=this._offset||0;return null==e?this._isUTC?a:this._dateTzOffset():("string"==typeof e&&(e=V(e)),Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(n=this._dateTzOffset()),this._offset=e,this._isUTC=!0,null!=n&&this.subtract(n,"m"),a!==e&&(!t||this._changeInProgress?M(this,Me.duration(a-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Me.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(e){return e=e?Me(e).zone():0,(this.zone()-e)%60===0},daysInMonth:function(){return R(this.year(),this.month())},dayOfYear:function(e){var t=Ee((Me(this).startOf("day")-Me(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},quarter:function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},weekYear:function(e){var t=de(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")},isoWeekYear:function(e){var t=de(this,1,4).year;return null==e?t:this.add(e-t,"y")},week:function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},isoWeek:function(e){var t=de(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},weekday:function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},isoWeekday:function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},isoWeeksInYear:function(){return P(this.year(),1,4)},weeksInYear:function(){var e=this.localeData()._week;return P(this.year(),e.dow,e.doy)},get:function(e){return e=D(e),this[e]()},set:function(e,t){return e=D(e),"function"==typeof this[e]&&this[e](t),this},locale:function(e){var t;return e===s?this._locale._abbr:(t=Me.localeData(e),null!=t&&(this._locale=t),this)},lang:c("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===s?this.localeData():this.locale(e)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),Me.fn.millisecond=Me.fn.milliseconds=_e("Milliseconds",!1),Me.fn.second=Me.fn.seconds=_e("Seconds",!1),Me.fn.minute=Me.fn.minutes=_e("Minutes",!1),Me.fn.hour=Me.fn.hours=_e("Hours",!0),Me.fn.date=_e("Date",!0),Me.fn.dates=c("dates accessor is deprecated. Use date instead.",_e("Date",!0)),Me.fn.year=_e("FullYear",!0),Me.fn.years=c("years accessor is deprecated. Use year instead.",_e("FullYear",!0)),Me.fn.days=Me.fn.day,Me.fn.months=Me.fn.month,Me.fn.weeks=Me.fn.week,Me.fn.isoWeeks=Me.fn.isoWeek,Me.fn.quarters=Me.fn.quarter,Me.fn.toJSON=Me.fn.toISOString,v(Me.duration.fn=y.prototype,{_bubble:function(){var e,t,n,a=this._milliseconds,r=this._days,s=this._months,i=this._data,o=0;i.milliseconds=a%1e3,e=_(a/1e3),i.seconds=e%60,t=_(e/60),i.minutes=t%60,n=_(t/60),i.hours=n%24,r+=_(n/24),o=_(be(r)),r-=_(ke(o)),s+=_(r/30),r%=30,o+=_(s/12),s%=12,i.days=r,i.months=s,i.years=o},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return _(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*O(this._months/12)},humanize:function(e){var t=pe(this,!e,this.localeData());return e&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(e,t){var n=Me.duration(e,t);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(e,t){var n=Me.duration(e,t);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(e){return e=D(e),this[e.toLowerCase()+"s"]()},as:function(e){var t,n;if(e=D(e),"month"===e||"year"===e)return t=this._days+this._milliseconds/864e5,n=this._months+12*be(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ke(this._months/12)),e){case"week":return t/7+this._milliseconds/6048e5;case"day":return t+this._milliseconds/864e5;case"hour":return 24*t+this._milliseconds/36e5;case"minute":return 24*t*60+this._milliseconds/6e4;case"second": return 24*t*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*t*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+e)}},lang:Me.fn.lang,locale:Me.fn.locale,toIsoString:c("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var e=Math.abs(this.years()),t=Math.abs(this.months()),n=Math.abs(this.days()),a=Math.abs(this.hours()),r=Math.abs(this.minutes()),s=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(a||r||s?"T":"")+(a?a+"H":"")+(r?r+"M":"")+(s?s+"S":""):"P0D"},localeData:function(){return this._locale}}),Me.duration.fn.toString=Me.duration.fn.toISOString;for(Se in ht)o(ht,Se)&&Te(Se.toLowerCase());Me.duration.fn.asMilliseconds=function(){return this.as("ms")},Me.duration.fn.asSeconds=function(){return this.as("s")},Me.duration.fn.asMinutes=function(){return this.as("m")},Me.duration.fn.asHours=function(){return this.as("h")},Me.duration.fn.asDays=function(){return this.as("d")},Me.duration.fn.asWeeks=function(){return this.as("weeks")},Me.duration.fn.asMonths=function(){return this.as("M")},Me.duration.fn.asYears=function(){return this.as("y")},Me.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===O(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),je?r.exports=Me:(a=function(e,t,n){return n.config&&n.config()&&n.config().noGlobal===!0&&(De.moment=xe),Me}.call(t,n,t,r),!(a!==s&&(r.exports=a)),we(!0))}).call(this)}).call(t,function(){return this}(),n(75)(e))},function(e,t,n){function a(e){return n(r(e))}function r(e){return s[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var s={"./af":715,"./af.js":715,"./ar":716,"./ar-ma":717,"./ar-ma.js":717,"./ar-sa":718,"./ar-sa.js":718,"./ar.js":716,"./az":719,"./az.js":719,"./be":720,"./be.js":720,"./bg":721,"./bg.js":721,"./bn":722,"./bn.js":722,"./bo":723,"./bo.js":723,"./br":724,"./br.js":724,"./bs":725,"./bs.js":725,"./ca":726,"./ca.js":726,"./cs":727,"./cs.js":727,"./cv":728,"./cv.js":728,"./cy":729,"./cy.js":729,"./da":730,"./da.js":730,"./de":731,"./de-at":732,"./de-at.js":732,"./de.js":731,"./el":733,"./el.js":733,"./en-au":734,"./en-au.js":734,"./en-ca":735,"./en-ca.js":735,"./en-gb":736,"./en-gb.js":736,"./eo":737,"./eo.js":737,"./es":738,"./es.js":738,"./et":739,"./et.js":739,"./eu":740,"./eu.js":740,"./fa":741,"./fa.js":741,"./fi":742,"./fi.js":742,"./fo":743,"./fo.js":743,"./fr":744,"./fr-ca":745,"./fr-ca.js":745,"./fr.js":744,"./gl":746,"./gl.js":746,"./he":747,"./he.js":747,"./hi":748,"./hi.js":748,"./hr":749,"./hr.js":749,"./hu":750,"./hu.js":750,"./hy-am":751,"./hy-am.js":751,"./id":752,"./id.js":752,"./is":753,"./is.js":753,"./it":754,"./it.js":754,"./ja":755,"./ja.js":755,"./ka":756,"./ka.js":756,"./km":757,"./km.js":757,"./ko":758,"./ko.js":758,"./lb":759,"./lb.js":759,"./lt":760,"./lt.js":760,"./lv":761,"./lv.js":761,"./mk":762,"./mk.js":762,"./ml":763,"./ml.js":763,"./mr":764,"./mr.js":764,"./ms-my":765,"./ms-my.js":765,"./my":766,"./my.js":766,"./nb":767,"./nb.js":767,"./ne":768,"./ne.js":768,"./nl":769,"./nl.js":769,"./nn":770,"./nn.js":770,"./pl":771,"./pl.js":771,"./pt":772,"./pt-br":773,"./pt-br.js":773,"./pt.js":772,"./ro":774,"./ro.js":774,"./ru":775,"./ru.js":775,"./sk":776,"./sk.js":776,"./sl":777,"./sl.js":777,"./sq":778,"./sq.js":778,"./sr":779,"./sr-cyrl":780,"./sr-cyrl.js":780,"./sr.js":779,"./sv":781,"./sv.js":781,"./ta":782,"./ta.js":782,"./th":783,"./th.js":783,"./tl-ph":784,"./tl-ph.js":784,"./tr":785,"./tr.js":785,"./tzm":786,"./tzm-latn":787,"./tzm-latn.js":787,"./tzm.js":786,"./uk":788,"./uk.js":788,"./uz":789,"./uz.js":789,"./vi":790,"./vi.js":790,"./zh-cn":791,"./zh-cn.js":791,"./zh-tw":792,"./zh-tw.js":792};a.keys=function(){return Object.keys(s)},a.resolve=r,e.exports=a,a.id=714},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},a=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(e){return function(t,n,s,i){var o=a(t),l=r[e][a(t)];return 2===o&&(l=l[n?0:1]),l.replace(/%d/i,t)}},i=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];return e.defineLocale("ar",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,a=e%100-n,r=e>=100?100:null;return e+(t[n]||t[a]||t[r])},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){var r={mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===a?n?"хвіліна":"хвіліну":"h"===a?n?"гадзіна":"гадзіну":e+" "+t(r[a],+e)}function a(e,t){var n={nominative:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"),accusative:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_")},a=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[a][e.month()]}function r(e,t){var n={nominative:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),accusative:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_")},a=/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/.test(t)?"accusative":"nominative";return n[a][e.day()]}return e.defineLocale("be",{months:a,monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:r,weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};return e.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কএক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiem:function(e,t,n){return e<4?"রাত":e<10?"শকাল":e<17?"দুপুর":e<20?"বিকেল":"রাত"},week:{dow:0,doy:6}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,n){var a={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+r(a[n],e)}function n(e){switch(a(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function a(e){return e>9?a(e%10):e}function r(e,t){return 2===t?s(e):e}function s(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}return e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY LT",LLLL:"dddd, D [a viz] MMMM YYYY LT"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){var t=1===e?"añ":"vet";return e+t},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,n){var a=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return a+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return a+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return a+=1===e?"dan":"dana";case"MM":return a+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return a+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e){return e>1&&e<5&&1!==~~(e/10)}function n(e,n,a,r){var s=e+" ";switch(a){case"s":return n||r?"pár sekund":"pár sekundami";case"m":return n?"minuta":r?"minutu":"minutou";case"mm":return n||r?s+(t(e)?"minuty":"minut"):s+"minutami";case"h":return n?"hodina":r?"hodinu":"hodinou";case"hh":return n||r?s+(t(e)?"hodiny":"hodin"):s+"hodinami";case"d":return n||r?"den":"dnem";case"dd":return n||r?s+(t(e)?"dny":"dní"):s+"dny";case"M":return n||r?"měsíc":"měsícem";case"MM":return n||r?s+(t(e)?"měsíce":"měsíců"):s+"měsíci";case"y":return n||r?"rok":"rokem";case"yy":return n||r?s+(t(e)?"roky":"let"):s+"lety"}}var a="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),r="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");return e.defineLocale("cs",{months:a,monthsShort:r,monthsParse:function(e,t){var n,a=[];for(n=0;n<12;n++)a[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return a}(a,r),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("cv",{months:"кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),monthsShort:"кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кç_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]",LLL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT",LLLL:"dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ĕнер] LT [сехетре]",nextWeek:"[Çитес] dddd LT [сехетре]",lastWeek:"[Иртнĕ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/çул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пĕр-ик çеккунт",m:"пĕр минут",mm:"%d минут",h:"пĕр сехет",hh:"%d сехет",d:"пĕр кун",dd:"%d кун",M:"пĕр уйăх",MM:"%d уйăх",y:"пĕр çул",yy:"%d çул"},ordinalParse:/\d{1,2}-мĕш/,ordinal:"%d-мĕш",week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,n="",a=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?n=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(n=a[t]),e+n},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd [d.] D. MMMM YYYY LT"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,n,a){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,n,a){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}return e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT", lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n=this._calendarEl[e],a=t&&t.hours();return"function"==typeof n&&(n=n.apply(t)),n.replace("{}",a%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"D MMMM, YYYY",LLL:"D MMMM, YYYY LT",LLLL:"dddd, D MMMM, YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY LT",LLLL:"dddd, [la] D[-an de] MMMM, YYYY LT"},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return/-MMM-/.test(a)?n[e.month()]:t[e.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,n,a){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:a?r[n][0]:r[n][1]}return e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] LT",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] LT",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] LT",llll:"ddd, YYYY[ko] MMM D[a] LT"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,a,r){var s="";switch(a){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"m":return r?"minuutin":"minuutti";case"mm":s=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":s=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":s=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":s=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":s=r?"vuoden":"vuotta"}return s=n(e,r)+" "+s}function n(e,t){return e<10?t?r[e]:a[e]:e}var a="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),r=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",a[7],a[8],a[9]];return e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] LT",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] LT",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] LT",llll:"ddd, Do MMM YYYY, [klo] LT"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D. MMMM, YYYY LT"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return"uns segundos"===e?"nuns segundos":"en "+e},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY LT",LLLL:"dddd, D [ב]MMMM YYYY LT",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e+" שנים"}}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,n){var a=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return a+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return a+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return a+=1===e?"dan":"dana";case"MM":return a+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return a+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("hr",{months:"sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),monthsShort:"sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,n,a){var r=e;switch(n){case"s":return a||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(a||t?" perc":" perce");case"mm":return r+(a||t?" perc":" perce");case"h":return"egy"+(a||t?" óra":" órája");case"hh":return r+(a||t?" óra":" órája");case"d":return"egy"+(a||t?" nap":" napja");case"dd":return r+(a||t?" nap":" napja");case"M":return"egy"+(a||t?" hónap":" hónapja");case"MM":return r+(a||t?" hónap":" hónapja");case"y":return"egy"+(a||t?" év":" éve");case"yy":return r+(a||t?" év":" éve")}return""}function n(e){return(e?"":"[múlt] ")+"["+a[this.day()]+"] LT[-kor]"}var a="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D., LT",LLLL:"YYYY. MMMM D., dddd LT"},meridiem:function(e,t,n){return e<12?n===!0?"de":"DE":n===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t){var n={nominative:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_"),accusative:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_")},a=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[a][e.month()]}function n(e,t){var n="հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_");return n[e.month()]}function a(e,t){var n="կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_");return n[e.day()]}return e.defineLocale("hy-am",{months:t,monthsShort:n,weekdays:a,weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., LT",LLLL:"dddd, D MMMM YYYY թ., LT"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e){return e%100===11||e%10!==1}function n(e,n,a,r){var s=e+" ";switch(a){case"s":return n||r?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?s+(n||r?"mínútur":"mínútum"):n?s+"mínúta":s+"mínútu";case"hh":return t(e)?s+(n||r?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?s+"dagar":s+(r?"daga":"dögum"):n?s+"dagur":s+(r?"dag":"degi");case"M":return n?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?n?s+"mánuðir":s+(r?"mánuði":"mánuðum"):n?s+"mánuður":s+(r?"mánuð":"mánuði");case"y":return n||r?"ár":"ári";case"yy":return t(e)?s+(n||r?"ár":"árum"):s+(n||r?"ár":"ári")}}return e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd, D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"LTs秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日LT",LLLL:"YYYY年M月D日LT dddd"},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t){var n={nominative:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),accusative:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},a=/D[oD] *MMMM?/.test(t)?"accusative":"nominative";return n[a][e.month()]}function n(e,t){var n={nominative:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),accusative:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_")},a=/(წინა|შემდეგ)/.test(t)?"accusative":"nominative";return n[a][e.day()]}return e.defineLocale("ka",{months:t,monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:n,weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"), weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[ថ្ងៃនៈ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 LT",LLLL:"YYYY년 MMMM D일 dddd LT"},meridiem:function(e,t,n){return e<12?"오전":"오후"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/(오전|오후)/,isPM:function(e){return"오후"===e}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,n,a){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function n(e){var t=e.substr(0,e.indexOf(" "));return r(t)?"a "+e:"an "+e}function a(e){var t=e.substr(0,e.indexOf(" "));return r(t)?"viru "+e:"virun "+e}function r(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10,n=e/10;return r(0===t?n:t)}if(e<1e4){for(;e>=10;)e/=10;return r(e)}return e/=1e3,r(e)}return e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:a,s:"e puer Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,n,a){return t?"kelios sekundės":a?"kelių sekundžių":"kelias sekundes"}function n(e,t,n,a){return t?r(n)[0]:a?r(n)[1]:r(n)[2]}function a(e){return e%10===0||e>10&&e<20}function r(e){return o[e].split("_")}function s(e,t,s,i){var o=e+" ";return 1===e?o+n(e,t,s[0],i):t?o+(a(e)?r(s)[1]:r(s)[0]):i?o+r(s)[1]:o+(a(e)?r(s)[1]:r(s)[2])}function i(e,t){var n=t.indexOf("dddd HH:mm")===-1,a=l[e.day()];return n?a:a.substring(0,a.length-2)+"į"}var o={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"},l="sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_");return e.defineLocale("lt",{months:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:i,weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], LT [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, LT [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], LT [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, LT [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:t,m:n,mm:s,h:n,hh:s,d:n,dd:s,M:n,MM:s,y:n,yy:s},ordinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,n){var a=e.split("_");return n?t%10===1&&11!==t?a[2]:a[3]:t%10===1&&11!==t?a[0]:a[1]}function n(e,n,r){return e+" "+t(a[r],e,n)}var a={mm:"minūti_minūtes_minūte_minūtes",hh:"stundu_stundas_stunda_stundas",dd:"dienu_dienas_diena_dienas",MM:"mēnesi_mēnešus_mēnesis_mēneši",yy:"gadu_gadus_gads_gadi"};return e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, LT",LLLL:"YYYY. [gada] D. MMMM, dddd, LT"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"%s vēlāk",past:"%s agrāk",s:"dažas sekundes",m:"minūti",mm:n,h:"stundu",hh:n,d:"dienu",dd:n,M:"mēnesi",MM:n,y:"gadu",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Во изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Во изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%s नंतर",past:"%s पूर्वी",s:"सेकंद",m:"एक मिनिट",mm:"%d मिनिटे",h:"एक तास",hh:"%d तास",d:"एक दिवस",dd:"%d दिवस",M:"एक महिना",MM:"%d महिने",y:"एक वर्ष",yy:"%d वर्षे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};return e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tirs_ons_tors_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"H.mm",LTS:"LT.ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आइ._सो._मङ्_बु._बि._शु._श.".split("_"),longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiem:function(e,t,n){return e<3?"राती":e<10?"बिहान":e<15?"दिउँसो":e<18?"बेलुका":e<20?"साँझ":"राती"},calendar:{sameDay:"[आज] LT",nextDay:"[भोली] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडी",s:"केही समय",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");return e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,a){return/-MMM-/.test(a)?n[e.month()]:t[e.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function n(e,n,a){var r=e+" ";switch(a){case"m":return n?"minuta":"minutę";case"mm":return r+(t(e)?"minuty":"minut");case"h":return n?"godzina":"godzinę";case"hh":return r+(t(e)?"godziny":"godzin");case"MM":return r+(t(e)?"miesiące":"miesięcy");case"yy":return r+(t(e)?"lata":"lat")}}var a="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),r="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return e.defineLocale("pl",{months:function(e,t){return/D MMMM/.test(t)?r[e.month()]:a[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:n,mm:n,h:n,hh:n,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:n,y:"rok",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] LT",LLLL:"dddd, D [de] MMMM [de] YYYY [às] LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,n){var a={mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},r=" ";return(e%100>=20||e>=100&&e%100===0)&&(r=" de "),e+r+a[n]}return e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){var r={mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===a?n?"минута":"минуту":e+" "+t(r[a],+e)}function a(e,t){var n={nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")},a=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[a][e.month()]}function r(e,t){var n={nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")},a=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[a][e.month()]}function s(e,t){var n={nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")},a=/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative";return n[a][e.day()]}return e.defineLocale("ru",{months:a,monthsShort:r,weekdays:s,weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e){return e>1&&e<5}function n(e,n,a,r){var s=e+" ";switch(a){case"s":return n||r?"pár sekúnd":"pár sekundami";case"m":return n?"minúta":r?"minútu":"minútou";case"mm":return n||r?s+(t(e)?"minúty":"minút"):s+"minútami";case"h":return n?"hodina":r?"hodinu":"hodinou";case"hh":return n||r?s+(t(e)?"hodiny":"hodín"):s+"hodinami";case"d":return n||r?"deň":"dňom";case"dd":return n||r?s+(t(e)?"dni":"dní"):s+"dňami";case"M":return n||r?"mesiac":"mesiacom";case"MM":return n||r?s+(t(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return n||r?"rok":"rokom";case"yy":return n||r?s+(t(e)?"roky":"rokov"):s+"rokmi"}}var a="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),r="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return e.defineLocale("sk",{months:a,monthsShort:r,monthsParse:function(e,t){var n,a=[];for(n=0;n<12;n++)a[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return a}(a,r),weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t,n){var a=e+" ";switch(n){case"m":return t?"ena minuta":"eno minuto";case"mm":return a+=1===e?"minuta":2===e?"minuti":3===e||4===e?"minute":"minut";case"h":return t?"ena ura":"eno uro";case"hh":return a+=1===e?"ura":2===e?"uri":3===e||4===e?"ure":"ur";case"dd":return a+=1===e?"dan":"dni";case"MM":return a+=1===e?"mesec":2===e?"meseca":3===e||4===e?"mesece":"mesecev";case"yy":return a+=1===e?"leto":2===e?"leti":3===e||4===e?"leta":"let"}}return e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[prejšnja] dddd [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"%s nazaj",s:"nekaj sekund",m:t,mm:t,h:t,hh:t,d:"en dan",dd:t,M:"en mesec",MM:t,y:"eno leto",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var r=t.words[a];return 1===a.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};return e.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"; }},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var r=t.words[a];return 1===a.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};return e.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"dddd LT",lastWeek:"[Förra] dddd[en] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"e":1===t?"a":2===t?"a":"e";return e+n},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},meridiem:function(e,t,n){return e>=6&&e<=10?" காலை":e>=10&&e<=14?" நண்பகல்":e>=14&&e<=18?" எற்பாடு":e>=18&&e<=20?" மாலை":e>=20&&e<=24?" இரவு":e>=0&&e<=6?" வைகறை":void 0},week:{dow:0,doy:6}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"LT s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา LT",LLLL:"วันddddที่ D MMMM YYYY เวลา LT"},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM DD, YYYY LT"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10,a=e%100-n,r=e>=100?100:null;return e+(t[n]||t[a]||t[r])},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){var r={mm:"хвилина_хвилини_хвилин",hh:"година_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===a?n?"хвилина":"хвилину":"h"===a?n?"година":"годину":e+" "+t(r[a],+e)}function a(e,t){var n={nominative:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),accusative:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_")},a=/D[oD]? *MMMM?/.test(t)?"accusative":"nominative";return n[a][e.month()]}function r(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},a=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return n[a][e.day()]}function s(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}return e.defineLocale("uk",{months:a,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., LT",LLLL:"dddd, D MMMM YYYY р., LT"},calendar:{sameDay:s("[Сьогодні "),nextDay:s("[Завтра "),lastDay:s("[Вчора "),nextWeek:s("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return s("[Минулої] dddd [").call(this);case 1:case 2:case 4:return s("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("uz",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"D MMMM YYYY, dddd LT"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY LT",LLLL:"dddd, D MMMM [năm] YYYY LT",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})},function(e,t,n){var a,r,s;!function(i){r=[n(713)],a=i,s="function"==typeof a?a.apply(t,r):a,!(void 0!==s&&(e.exports=s))}(function(e){return e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()-t.unix()>=604800?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()",afterOpen:function(n){return function(){return l.render(o.createElement("div",null,o.createElement("pre",null,"(",e.attributes.webhook.type,") ",e.attributes.webhook.uri),o.createElement("p",null,"Are you sure you want to delete this webhook?")),t(".delete-webhook").get(0))}}(this),callback:function(t){return function(t){if(t)return n(e)}}(this)})},newWebhook:function(e,n){var a;return a={uri:e,type:n},app.user.attributes.authenticated&&(a.user=app.user.attributes.user.id),t.ajax({url:config.apiRoot+"/webhooks",type:"POST",contentType:"application/json",data:JSON.stringify(a),success:function(e){return function(){return e.props.collections.webhooks.fetch().done(function(){return e.forceUpdate()})}}(this)})},promptNewWebhook:function(){var e;return e=function(e){return function(t,n){return e.newWebhook(t,n)}}(this),h.dialog.open({message:"
    ",afterOpen:function(e){return function(){return e.validateInput=function(e){var t,n;try{return new URL(e),!0}catch(n){return t=n,!1}},e.renderedForm=l.render(o.createElement(s,{getErrors:function(){return e.errors},webhookTypes:e.webhookTypes,setType:function(t){return e.type=t},setUri:function(t){return e.uri=t}}),t(".new-webhook").get(0))}}(this),beforeClose:function(e){return function(){var t;return!e.data||(e.errors=[],t=e.validateInput(e.uri),e.type||e.errors.push("Please select a type"),t||e.errors.push("Invalid URL entered"),t&&e.type||e.renderedForm.forceUpdate(),!!t&&(!!e.type&&(e.type="",e.uri="",!0)))}}(this),callback:function(t){return function(n){var a;if(t.data=n,t.type&&n&&t.validateInput(t.uri))return a=t.type,e(t.uri,a)}}(this)})},getWebhookTableData:function(){var e;return e=[],this.props.collections.webhooks.map(function(t){return function(n){return e.push({dataId:n.attributes.webhook.id,dataCollection:"webhooks",data:[{component:i,prop:{text:n.attributes.webhook.uri}},{component:i,prop:{text:p.humanizeText(n.attributes.webhook.type)}},{component:c,className:"hidden-xs",prop:{timestamp:n.attributes.webhook.timestamp,display:"absoluteTimestamp"}},{component:i,className:"hidden-xs",prop:{text:n.attributes.webhook.user||"N/A"}},{component:i,prop:{text:o.createElement("b",null,n.attributes.queueSize)}},{component:r,className:"hidden-xs actions-column",prop:{text:o.createElement(a,{iconClass:"trash"}),onClickFn:function(){return t.promptDeleteWebhook(n)},title:"Delete",altText:"Delete this webhook",overlayTrigger:!0,overlayTriggerPlacement:"top",overlayToolTipContent:"Delete This Webhook",overlayId:"deleteWebhook"+n.attributes.webhook.id }}]})}}(this)),e},render:function(){return o.createElement("div",null,o.createElement("div",{className:"row"},o.createElement("div",{className:"col-md-10"},o.createElement("span",{className:"h1"},"Webhooks")),o.createElement("div",{className:"col-md-2 button-container"},o.createElement("button",{className:"btn btn-success",alt:"Create a new webhook",title:"newWebhook",onClick:this.promptNewWebhook}," New Webhook "))),o.createElement(u,{defaultRowsPerPage:this.defaultRowsPerPage,rowsPerPageChoices:this.rowsPerPageChoices,tableClassOpts:"table-striped",columnHeads:this.webhookColumns(),tableRows:this.getWebhookTableData(),emptyTableMessage:"No Webhooks",dataCollection:"webhooks"}))}}),e.exports=d}).call(t,n(1))},function(e,t,n){var a,r,s,i;s=n(342),i=n(6),a=n(709),r=s.createClass({getInitialState:function(){return{selected:"",uri:""}},select:function(e){return this.setState({selected:e}),this.props.setType(e)},updateUri:function(e){return this.setState({uri:e.target.value}),this.props.setUri(e.target.value)},buttons:function(){var e;return e=[],this.props.webhookTypes.map(function(t){return function(n,a){return e.push(s.createElement("button",{key:a,"data-type":n,className:"btn btn-default "+(t.state.selected===n?"active":""),onClick:function(e){return e.preventDefault(),t.select(n)}},i.humanizeText(n)))}}(this)),e},alert:function(){var e,t;return e=this.props.getErrors(),e&&e.length>0?(t=[],e.length>1&&e.map(function(e,n){return t.push(s.createElement("li",{key:n},e))}),s.createElement("div",{className:"alert alert-danger"},1===e.length?e[0]:s.createElement("ul",null,t))):null},render:function(){return s.createElement("div",null,this.alert(),s.createElement("h3",null," New Webhook "),s.createElement("div",{className:"form-group"},s.createElement("label",null,"Type"),s.createElement("br",null),this.buttons()),s.createElement("div",{className:"form-group"},s.createElement("label",null,"URI"),s.createElement(a,{id:"uri",prop:{placeholder:"https://www.example.com/path/to/webhook",inputType:"text",updateFn:this.updateUri,value:this.state.uri,required:!0}})))}}),e.exports=r},function(e,t,n){(function(t){var a,r,s,i=function(e,t){return function(){return e.apply(t,arguments)}},o=function(e,t){function n(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},l={}.hasOwnProperty;a=n(67),s=n(805),r=function(e){function n(){return this.initialize=i(this.initialize,this),n.__super__.constructor.apply(this,arguments)}return o(n,e),n.prototype.model=s,n.prototype.initialize=function(e){},n.prototype.url=function(){return config.apiRoot+"/webhooks/summary"},n.prototype.sortBy=function(e,n){var a;return a="queueSize"===e?t.sortBy(this.models,function(e){return function(e){return e.attributes.queueSize}}(this)):t.sortBy(this.models,function(t){return function(t){return t.attributes.webhook[e]}}(this)),n||a.reverse(),this.models=a},n}(a),e.exports=r}).call(t,n(7))},function(e,t,n){var a,r,s=function(e,t){function n(){this.constructor=e}for(var a in t)i.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;a=n(68),r=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return s(t,e),t}(a),e.exports=r},function(e,t){var n,a=function(e,t){function n(){this.constructor=e}for(var a in t)r.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},r={}.hasOwnProperty;n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return a(t,e),t.prototype.url=function(){return config.apiRoot+"/auth/user"},t}(Backbone.Model),e.exports=n},function(e,t,n){var a,r,s,i=function(e,t){function n(){this.constructor=e}for(var a in t)o.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;s=n(7),r=n(247),a=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return i(t,e),t.prototype.template=n(808),t.prototype.initialize=function(){return Backbone.history.on("route",function(e){return function(){return e.render()}}(this))},t.prototype.events=function(){return s.extend(t.__super__.events.apply(this,arguments),{"click .global-search-button":"showSearch"})},t.prototype.render=function(){var e,t;return e=null!=(t=Backbone.history.fragment)?t.split("/")[0]:void 0,"request"===e?e="requests":"task"===e&&(e="tasks"),this.$el.html(this.template({fragment:e,title:config.title}))},t.prototype.showSearch=function(){return app.views.globalSearch.show()},t}(r),e.exports=a},function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({1:function(e,t,n,a,r){return'class="active"'},compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){var s,i,o=null!=t?t:{},l=n.helperMissing,u="function",c=e.escapeExpression;return'\n'},useData:!0})},function(e,t,n){(function(e){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0&&!s,o=27===t.keyCode;return o&&(a||r)?n.hide():i&&a?(n.show(),t.preventDefault()):void 0})}},{key:"render",value:function(){return this.ref=v["default"].render(m["default"].createElement(h["default"],{requests:this.collection,visible:this.searchActive,onHide:this.hide}),this.el)}}]),n}(u["default"]);t["default"]=g}).call(t,n(1))},function(e,t,n){(function(e){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&this.state.entryValue.length>=this.props.allowCustomValues&&this.state.searchResults.indexOf(this.state.entryValue)<0},_getCustomValue:function(){return this._hasCustomValue()?this.state.entryValue:null},_renderIncrementalSearchResults:function(){return this._shouldSkipSearch(this.state.entryValue)?"":this.state.selection?"":s.createElement(this.props.customListComponent,{ref:"sel",options:this.props.maxVisible?this.state.searchResults.slice(0,this.props.maxVisible):this.state.searchResults,areResultsTruncated:this.props.maxVisible&&this.state.searchResults.length>this.props.maxVisible,resultsTruncatedMessage:this.props.resultsTruncatedMessage,onOptionSelected:this._onOptionSelected,allowCustomValues:this.props.allowCustomValues,customValue:this._getCustomValue(),customClasses:this.props.customClasses,selectionIndex:this.state.selectionIndex,defaultClassNames:this.props.defaultClassNames,displayOption:r.generateOptionToStringFor(this.props.displayOption)})},getSelection:function(){var e=this.state.selectionIndex;if(this._hasCustomValue()){if(0===e)return this.state.entryValue;e--}return this.state.searchResults[e]},_onOptionSelected:function(e,t){var n=this.refs.entry;n.focus();var a=r.generateOptionToStringFor(this.props.inputDisplayOption||this.props.displayOption),s=a(e,0),i=r.generateOptionToStringFor(this.props.formInputOption||a),o=i(e);return n.value=s,this.setState({searchResults:this.getOptionsForValue(s,this.props.options),selection:o,entryValue:s}),this.props.onOptionSelected(e,t)},_onTextEntryUpdated:function(){var e=this.refs.entry.value;this.setState({searchResults:this.getOptionsForValue(e,this.props.options),selection:"",entryValue:e})},_onEnter:function(e){var t=this.getSelection();return t?this._onOptionSelected(t,e):this.props.onKeyDown(e)},_onEscape:function(){this.setState({selectionIndex:null})},_onTab:function(e){var t=this.getSelection(),n=t?t:this.state.searchResults.length>0?this.state.searchResults[0]:null;if(null===n&&this._hasCustomValue()&&(n=this._getCustomValue()),null!==n)return this._onOptionSelected(n,e)},eventMap:function(e){var t={};return t[o.DOM_VK_UP]=this.navUp,t[o.DOM_VK_DOWN]=this.navDown,t[o.DOM_VK_RETURN]=t[o.DOM_VK_ENTER]=this._onEnter,t[o.DOM_VK_ESCAPE]=this._onEscape,t[o.DOM_VK_TAB]=this._onTab,t},_nav:function(e){if(this._hasHint()){var t=null===this.state.selectionIndex?1==e?0:e:this.state.selectionIndex+e,n=this.props.maxVisible?this.state.searchResults.slice(0,this.props.maxVisible).length:this.state.searchResults.length;this._hasCustomValue()&&(n+=1),t<0?t+=n:t>=n&&(t-=n),this.setState({selectionIndex:t})}},navDown:function(){this._nav(1)},navUp:function(){this._nav(-1)},_onChange:function(e){this.props.onChange&&this.props.onChange(e),this._onTextEntryUpdated()},_onKeyDown:function(e){if(!this._hasHint()||e.shiftKey)return this.props.onKeyDown(e);var t=this.eventMap()[e.keyCode];return t?(t(e),void e.preventDefault()):this.props.onKeyDown(e)},componentWillReceiveProps:function(e){this.setState({searchResults:this.getOptionsForValue(this.state.entryValue,e.options)})},render:function(){var e={};e[this.props.customClasses.input]=!!this.props.customClasses.input;var t=u(e),n={typeahead:this.props.defaultClassNames};n[this.props.className]=!!this.props.className;var r=u(n),i=this.props.textarea?"textarea":"input";return s.createElement("div",{className:r},this._renderHiddenInput(),s.createElement(i,a({ref:"entry",type:"text",disabled:this.props.disabled},this.props.inputProps,{placeholder:this.props.placeholder,className:t,value:this.state.entryValue,onChange:this._onChange,onKeyDown:this._onKeyDown,onKeyPress:this.props.onKeyPress,onKeyUp:this.props.onKeyUp,onFocus:this._onFocus,onBlur:this._onBlur})),this._renderIncrementalSearchResults())},_onFocus:function(e){if(this.setState({isFocused:!0},function(){this._onTextEntryUpdated()}.bind(this)),this.props.onFocus)return this.props.onFocus(e)},_onBlur:function(e){if(this.setState({isFocused:!1},function(){this._onTextEntryUpdated()}.bind(this)),this.props.onBlur)return this.props.onBlur(e)},_renderHiddenInput:function(){return this.props.name?s.createElement("input",{type:"hidden",name:this.props.name,value:this.state.selection}):null},_generateSearchFunction:function(){var e=this.props.searchOptions,t=this.props.filterOption;if("function"==typeof e)return null!==t&&console.warn("searchOptions prop is being used, filterOption prop will be ignored"),e;if("function"==typeof t)return function(e,n){return n.filter(function(n){return t(e,n)})};var n;return n="string"==typeof t?r.generateAccessor(t):r.IDENTITY_FN,function(e,t){return l.filter(e,t,{extract:n}).map(function(e){return t[e.index]})}},_hasHint:function(){return this.state.searchResults.length>0||this._hasCustomValue()}});e.exports=c},function(e,t){var n={IDENTITY_FN:function(e){return e},generateAccessor:function(e){return function(t){return t[e]}},generateOptionToStringFor:function(e){return"string"==typeof e?this.generateAccessor(e):"function"==typeof e?e:this.IDENTITY_FN},valueForOption:function(e,t){return"string"==typeof e?t[e]:"function"==typeof e?e(t):t}};e.exports=n},function(e,t,n){var a=n(342),r=n(815),s=n(816),i=a.createClass({displayName:"TypeaheadSelector",propTypes:{options:a.PropTypes.array,allowCustomValues:a.PropTypes.number,customClasses:a.PropTypes.object,customValue:a.PropTypes.string,selectionIndex:a.PropTypes.number,onOptionSelected:a.PropTypes.func,displayOption:a.PropTypes.func.isRequired,defaultClassNames:a.PropTypes.bool,areResultsTruncated:a.PropTypes.bool,resultsTruncatedMessage:a.PropTypes.string},getDefaultProps:function(){return{selectionIndex:null,customClasses:{},allowCustomValues:0,customValue:null,onOptionSelected:function(e){},defaultClassNames:!0}},render:function(){if(!this.props.options.length&&this.props.allowCustomValues<=0)return!1;var e={"typeahead-selector":this.props.defaultClassNames};e[this.props.customClasses.results]=this.props.customClasses.results;var t=s(e),n=null,i=0;null!==this.props.customValue&&(i++,n=a.createElement(r,{ref:this.props.customValue,key:this.props.customValue,hover:0===this.props.selectionIndex,customClasses:this.props.customClasses,customValue:this.props.customValue,onClick:this._onClick.bind(this,this.props.customValue)},this.props.customValue));var o=this.props.options.map(function(e,t){var n=this.props.displayOption(e,t),s=n+"_"+t;return a.createElement(r,{ref:s,key:s,hover:this.props.selectionIndex===t+i,customClasses:this.props.customClasses,onClick:this._onClick.bind(this,e)},n)},this);if(this.props.areResultsTruncated&&null!==this.props.resultsTruncatedMessage){var l={"results-truncated":this.props.defaultClassNames};l[this.props.customClasses.resultsTruncated]=this.props.customClasses.resultsTruncated;var u=s(l);o.push(a.createElement("li",{key:"results-truncated",className:u},this.props.resultsTruncatedMessage))}return a.createElement("ul",{className:t},n,o)},_onClick:function(e,t){return this.props.onOptionSelected(e,t)}});e.exports=i},function(e,t,n){var a=n(342),r=n(816),s=a.createClass({displayName:"TypeaheadOption",propTypes:{customClasses:a.PropTypes.object,customValue:a.PropTypes.string,onClick:a.PropTypes.func,children:a.PropTypes.string,hover:a.PropTypes.bool},getDefaultProps:function(){return{customClasses:{},onClick:function(e){e.preventDefault()}}},render:function(){var e={};e[this.props.customClasses.hover||"hover"]=!!this.props.hover,e[this.props.customClasses.listItem]=!!this.props.customClasses.listItem,this.props.customValue&&(e[this.props.customClasses.customAdd]=!!this.props.customClasses.customAdd);var t=r(e);return a.createElement("li",{className:t,onClick:this._onClick},a.createElement("a",{href:"javascript: void 0;",className:this._getClasses(),ref:"anchor"},this.props.children))},_getClasses:function(){var e={"typeahead-option":!0};return e[this.props.customClasses.listAnchor]=!!this.props.customClasses.listAnchor,r(e)},_onClick:function(e){return e.preventDefault(),this.props.onClick(e)}});e.exports=s},function(e,t,n){/*! Copyright (c) 2015 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ function a(){for(var e,t="",n=0;n=0;n--)if(t[n]!==e[n])return!0}var r=n(813),s=n(342),i=n(819),o=n(817),l=n(812),u=n(816),c=s.createClass({displayName:"TypeaheadTokenizer",propTypes:{name:s.PropTypes.string,options:s.PropTypes.array,customClasses:s.PropTypes.object,allowCustomValues:s.PropTypes.number,defaultSelected:s.PropTypes.array,initialValue:s.PropTypes.string,placeholder:s.PropTypes.string,disabled:s.PropTypes.bool,inputProps:s.PropTypes.object,onTokenRemove:s.PropTypes.func,onKeyDown:s.PropTypes.func,onKeyPress:s.PropTypes.func,onKeyUp:s.PropTypes.func,onTokenAdd:s.PropTypes.func,onFocus:s.PropTypes.func,onBlur:s.PropTypes.func,filterOption:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.func]),searchOptions:s.PropTypes.func,displayOption:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.func]),formInputOption:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.func]),maxVisible:s.PropTypes.number,resultsTruncatedMessage:s.PropTypes.string,defaultClassNames:s.PropTypes.bool},getInitialState:function(){return{selected:this.props.defaultSelected.slice(0)}},getDefaultProps:function(){return{options:[],defaultSelected:[],customClasses:{},allowCustomValues:0,initialValue:"",placeholder:"",disabled:!1,inputProps:{},defaultClassNames:!0,filterOption:null,searchOptions:null,displayOption:function(e){return e},formInputOption:null,onKeyDown:function(e){},onKeyPress:function(e){},onKeyUp:function(e){},onFocus:function(e){},onBlur:function(e){},onTokenAdd:function(){},onTokenRemove:function(){}}},componentWillReceiveProps:function(e){a(this.props.defaultSelected,e.defaultSelected)&&this.setState({selected:e.defaultSelected.slice(0)})},focus:function(){this.refs.typeahead.focus()},getSelectedTokens:function(){return this.state.selected},_renderTokens:function(){var e={};e[this.props.customClasses.token]=!!this.props.customClasses.token;var t=u(e),n=this.state.selected.map(function(e){var n=r.valueForOption(this.props.displayOption,e),a=r.valueForOption(this.props.formInputOption||this.props.displayOption,e);return s.createElement(i,{key:n,className:t,onRemove:this._removeTokenForValue,object:e,value:a,name:this.props.name},n)},this);return n},_getOptionsForTypeahead:function(){return this.props.options},_onKeyDown:function(e){return e.keyCode===o.DOM_VK_BACK_SPACE?this._handleBackspace(e):void this.props.onKeyDown(e)},_handleBackspace:function(e){if(this.state.selected.length){var t=this.refs.typeahead.refs.entry;t.selectionStart==t.selectionEnd&&0==t.selectionStart&&(this._removeTokenForValue(this.state.selected[this.state.selected.length-1]),e.preventDefault())}},_removeTokenForValue:function(e){var t=this.state.selected.indexOf(e);t!=-1&&(this.state.selected.splice(t,1),this.setState({selected:this.state.selected}),this.props.onTokenRemove(e))},_addTokenForValue:function(e){this.state.selected.indexOf(e)==-1&&(this.state.selected.push(e),this.setState({selected:this.state.selected}),this.refs.typeahead.setEntryText(""),this.props.onTokenAdd(e))},render:function(){var e={};e[this.props.customClasses.typeahead]=!!this.props.customClasses.typeahead;var t=u(e),n=[this.props.defaultClassNames&&"typeahead-tokenizer"];n[this.props.className]=!!this.props.className;var a=u(n);return s.createElement("div",{className:a},this._renderTokens(),s.createElement(l,{ref:"typeahead",className:t,placeholder:this.props.placeholder,disabled:this.props.disabled,inputProps:this.props.inputProps,allowCustomValues:this.props.allowCustomValues,customClasses:this.props.customClasses,options:this._getOptionsForTypeahead(),initialValue:this.props.initialValue,maxVisible:this.props.maxVisible,resultsTruncatedMessage:this.props.resultsTruncatedMessage,onOptionSelected:this._addTokenForValue,onKeyDown:this._onKeyDown,onKeyPress:this.props.onKeyPress,onKeyUp:this.props.onKeyUp,onFocus:this.props.onFocus,onBlur:this.props.onBlur,displayOption:this.props.displayOption,defaultClassNames:this.props.defaultClassNames,filterOption:this.props.filterOption,searchOptions:this.props.searchOptions}))}});e.exports=c},function(e,t,n){var a=n(342),r=n(816),s=a.createClass({displayName:"Token",propTypes:{className:a.PropTypes.string,name:a.PropTypes.string,children:a.PropTypes.string,object:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.object]),onRemove:a.PropTypes.func,value:a.PropTypes.string},render:function(){var e=r(["typeahead-token",this.props.className]);return a.createElement("div",{className:e},this._renderHiddenInput(),this.props.children,this._renderCloseButton())},_renderHiddenInput:function(){return this.props.name?a.createElement("input",{type:"hidden",name:this.props.name+"[]",value:this.props.value||this.props.object}):null},_renderCloseButton:function(){return this.props.onRemove?a.createElement("a",{className:"typeahead-token-close",href:"#",onClick:function(e){this.props.onRemove(this.props.object),e.preventDefault()}.bind(this)},"×"):""}});e.exports=s},,,function(e,t,n){var a=n(179);e.exports=(a["default"]||a).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,a,r){return'
    \n\t

    \n\t\tHi there! I see you\'re running the Singularity UI locally.\n\t\tYou must be trying to use a remote API.\n\t

    \n\t\n\t

    \n\t\tYou need to specify an API root so SingularityUI knows where to get its data,\n\t\te.g. http://example/singularity/api.\n\t

    \n\t\n\t

    \n\t\tThis can be changed at any time in the JS console with\n\t\tlocalStorage.setItem("apiRootOverride", "http://example/singularity/api")\n\t

    \n
    \n'},useData:!0})},function(e,t,n){(function(e,t){var a,r,s,i,o,l=[].slice;o=n(18),i=n(74),a=n(179),r=n(820),o.defaultOptions.className="vex-theme-default",e.ajaxSetup({timeout:1e4}),s=t.ajax,t.ajax=function(e){return null==e.xhrFields&&(e.xhrFields={}),e.xhrFields.withCredentials=!0,s.call(t,e)},i.locale("en",{longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"}}),r.options={extraClasses:"messenger-fixed messenger-on-top",theme:"air",hideOnNavigate:!0,maxMessages:1,messageDefaults:{type:"error",hideAfter:!1,showCloseButton:!0}},a.logger.log=function(e){return function(){var e,t,n,a,r,s;for(r=1<=arguments.length?l.call(arguments,0):[],n=r.slice(1),a=[],e=0,t=n.length;et?n.fn(this):n.inverse(this)}),t.registerHelper("ifAll",function(){var e,t,n,a,r,i;for(t=2<=arguments.length?s.call(arguments,0,n=arguments.length-1):(n=0,[]),i=arguments[n++],a=0,r=t.length;a0)return e[0].updateType}),t.registerHelper("shellRequestOutputFilename",function(e){var t,n,a;for(t=0,n=e.length;t0)for(n=e.length-1;n>=0;)a+=t.fn(e[n]),n--;else a=t.inverse(this);return a}),t.registerHelper("ifCurrentState",function(t,n,a){var r;return r=e.last(n),r.taskState===t?a.fn(this):a.inverse(this)})}).call(t,n(7))}]); //# sourceMappingURL=app.js.map









    ").addClass("cw").text("#"));n.isBefore(p.clone().endOf("w"));)t.append(e("").addClass("dow").text(n.format("dd"))),n.add(1,"d");f.find(".datepicker-days thead").append(t)},N=function(e){return a.disabledDates[e.format("YYYY-MM-DD")]===!0},A=function(e){return a.enabledDates[e.format("YYYY-MM-DD")]===!0},F=function(e){return a.disabledHours[e.format("H")]===!0},j=function(e){return a.enabledHours[e.format("H")]===!0},z=function(t,n){if(!t.isValid())return!1;if(a.disabledDates&&"d"===n&&N(t))return!1;if(a.enabledDates&&"d"===n&&!A(t))return!1;if(a.minDate&&t.isBefore(a.minDate,n))return!1;if(a.maxDate&&t.isAfter(a.maxDate,n))return!1;if(a.daysOfWeekDisabled&&"d"===n&&a.daysOfWeekDisabled.indexOf(t.day())!==-1)return!1;if(a.disabledHours&&("h"===n||"m"===n||"s"===n)&&F(t))return!1;if(a.enabledHours&&("h"===n||"m"===n||"s"===n)&&!j(t))return!1;if(a.disabledTimeIntervals&&("h"===n||"m"===n||"s"===n)){var r=!1;if(e.each(a.disabledTimeIntervals,function(){if(t.isBetween(this[0],this[1]))return r=!0,!1}),r)return!1}return!0},H=function(){for(var t=[],n=p.clone().startOf("y").startOf("d");n.isSame(p,"y");)t.push(e("").attr("data-action","selectMonth").addClass("month").text(n.format("MMM"))),n.add(1,"M");f.find(".datepicker-months td").empty().append(t)},B=function(){var t=f.find(".datepicker-months"),n=t.find("th"),r=t.find("tbody").find("span");n.eq(0).find("span").attr("title",a.tooltips.prevYear),n.eq(1).attr("title",a.tooltips.selectYear),n.eq(2).find("span").attr("title",a.tooltips.nextYear),t.find(".disabled").removeClass("disabled"),z(p.clone().subtract(1,"y"),"y")||n.eq(0).addClass("disabled"),n.eq(1).text(p.year()),z(p.clone().add(1,"y"),"y")||n.eq(2).addClass("disabled"),r.removeClass("active"),c.isSame(p,"y")&&!d&&r.eq(c.month()).addClass("active"),r.each(function(t){z(p.clone().month(t),"M")||e(this).addClass("disabled")})},U=function(){var e=f.find(".datepicker-years"),t=e.find("th"),n=p.clone().subtract(5,"y"),r=p.clone().add(6,"y"),s="";for(t.eq(0).find("span").attr("title",a.tooltips.nextDecade),t.eq(1).attr("title",a.tooltips.selectDecade),t.eq(2).find("span").attr("title",a.tooltips.prevDecade),e.find(".disabled").removeClass("disabled"),a.minDate&&a.minDate.isAfter(n,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(n.year()+"-"+r.year()),a.maxDate&&a.maxDate.isBefore(r,"y")&&t.eq(2).addClass("disabled");!n.isAfter(r,"y");)s+=''+n.year()+"",n.add(1,"y");e.find("td").html(s)},W=function(){var e=f.find(".datepicker-decades"),n=e.find("th"),r=t(p.isBefore(t({y:1999}))?{y:1899}:{y:1999}),s=r.clone().add(100,"y"),i="";for(n.eq(0).find("span").attr("title",a.tooltips.prevCentury),n.eq(2).find("span").attr("title",a.tooltips.nextCentury),e.find(".disabled").removeClass("disabled"),(r.isSame(t({y:1900}))||a.minDate&&a.minDate.isAfter(r,"y"))&&n.eq(0).addClass("disabled"),n.eq(1).text(r.year()+"-"+s.year()),(r.isSame(t({y:2e3}))||a.maxDate&&a.maxDate.isBefore(s,"y"))&&n.eq(2).addClass("disabled");!r.isAfter(s,"y");)i+=''+(r.year()+1)+" - "+(r.year()+12)+"",r.add(12,"y");i+="",e.find("td").html(i)},G=function(){var n,r,s,i,o=f.find(".datepicker-days"),l=o.find("th"),u=[];if(x()){for(l.eq(0).find("span").attr("title",a.tooltips.prevMonth),l.eq(1).attr("title",a.tooltips.selectMonth),l.eq(2).find("span").attr("title",a.tooltips.nextMonth),o.find(".disabled").removeClass("disabled"),l.eq(1).text(p.format(a.dayViewHeaderFormat)),z(p.clone().subtract(1,"M"),"M")||l.eq(0).addClass("disabled"),z(p.clone().add(1,"M"),"M")||l.eq(2).addClass("disabled"),n=p.clone().startOf("M").startOf("w").startOf("d"),i=0;i<42;i++)0===n.weekday()&&(r=e("
    '+n.week()+"'+n.date()+"
    '+n.format(s?"HH":"hh")+"
    '+n.format("mm")+"
    '+n.format("ss")+"