<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[173008] trunk/Tools</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/173008">173008</a></dd>
<dt>Author</dt> <dd>ap@apple.com</dd>
<dt>Date</dt> <dd>2014-08-27 10:12:45 -0700 (Wed, 27 Aug 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>build.webkit.org/dashboard: Add a metrics page with overall bot performance results
https://bugs.webkit.org/show_bug.cgi?id=136196

Reviewed by Timothy Hatcher.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External: Added.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/daterangepicker.css: Added.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery-1.11.1.min.js: Added.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery.daterangepicker.js: Added.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/moment.min.js: Added.
A date range picker control with dependencies.
There are a few modifications from upstream at &lt;https://github.com/longbill/jquery-date-range-picker&gt;:
- Fixed a bug where selected dates were not at midnight the first time a range was chosen
(it didn't happen again upon re-opening the picker).
- Made made style tweaks to match Dashboard UI.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Initialization.js:
Don't create objects that are not needed by the given app, and thus are not loaded at all.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js: Added.
Math to count all the things. Only supports open source tree and trunk at the moment,
but written with internal tree and branches in mind.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsMain.js: Added.
Like dashboard Main.js, draws the UI and creates all necessary objects.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsView.js: Added.
A view for table cells.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Settings.js:
(Settings.prototype.toggleSettingsDisplay): Added an event for entering settings.
Metrics page has individual platforms initially scrolled away form the view, so 
it needs to scroll down to reveal what's being configured.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Utilities.js:
Added Array.prototype.average and Array.prototype.median.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
Made gear icon fixed instead of absolute, so that it's visible on metrics page when
in settings mode.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Metrics.css:
Additional style rules.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/metrics.html:
The metrics page.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsInitializationjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Initialization.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsSettingsjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Settings.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsUtilitiesjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Utilities.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardStylesMaincss">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/</li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardExternaldaterangepickercss">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/daterangepicker.css</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardExternaljquery1111minjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery-1.11.1.min.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardExternaljquerydaterangepickerjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery.daterangepicker.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardExternalmomentminjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/moment.min.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsMetricsAnalyzerjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsMetricsMainjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsMain.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsMetricsViewjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsView.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardStylesMetricscss">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Metrics.css</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardmetricshtml">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/metrics.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardExternaldaterangepickercss"></a>
<div class="addfile"><h4>Added: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/daterangepicker.css (0 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/daterangepicker.css                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/daterangepicker.css        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -0,0 +1,212 @@
</span><ins>+.date-picker-wrapper
+{
+        position:absolute;
+        z-index:1;
+        border:1px solid #bfbfbf;
+        background:linear-gradient(rgba(255,255,255,0.95),rgba(235,235,235,0.95));
+        width:428px;
+        padding: 5px 12px;
+        font-size:12px;
+        line-height:20px;
+    color:rgb(145, 135, 95);
+    font-family:&quot;HelveticaNeue-Light&quot;, sans-serif;
+        box-shadow:3px 3px 10px rgba(0,0,0,0.5);
+        left:0;
+        right:0;
+    margin-left:auto;
+    margin-right:auto;
+}
+.date-picker-wrapper.single-date {
+        width:auto;
+}
+.date-picker-wrapper.no-shortcuts { padding-bottom:12px;}
+.date-picker-wrapper .footer
+{
+        font-size:11px;
+        padding-top: 3px;
+}
+.date-picker-wrapper a 
+{
+        color: rgb(107, 180, 214);
+        text-decoration:underline;
+}
+.date-picker-wrapper .month-wrapper
+{
+        border:1px solid #bfbfbf;
+        border-radius:3px;
+        background-color:#fff;
+        padding:5px;
+        cursor:default;
+        position:relative;
+        _overflow:hidden;
+}
+.date-picker-wrapper .month-wrapper table
+{
+        width:190px;
+        float:left;
+}
+.date-picker-wrapper .month-wrapper table.month2
+{
+        width:190px;
+        float:right;
+}
+.date-picker-wrapper .month-wrapper table th,
+.date-picker-wrapper .month-wrapper table td
+{
+        vertical-align:middle;
+        text-align:center;
+        line-height:14px;
+        margin : 0px;
+        padding : 0px;
+}
+.date-picker-wrapper .month-wrapper table .day
+{
+        height:19px;
+        line-height:19px;
+        font-size:12px;
+        margin-bottom:1px;
+        color:#999;
+        cursor:default;
+}
+.date-picker-wrapper .month-wrapper table div.day.lastMonth,
+.date-picker-wrapper .month-wrapper table div.day.nextMonth
+{
+        color:#999;
+        cursor:default;
+}
+.date-picker-wrapper .month-wrapper table .day.checked
+{
+        background-color: rgb(156, 219, 247);
+}
+.date-picker-wrapper .month-wrapper table .week-name
+{
+        height:20px;
+        line-height:20px;
+        font-weight:100;
+    color:rgb(185, 175, 125);
+}
+
+.date-picker-wrapper .month-wrapper table .day.has-tooltip { cursor:help !important;}
+
+.date-picker-wrapper .month-wrapper table .day.toMonth.valid
+{
+        color:#333;
+        cursor:pointer;
+}
+
+.date-picker-wrapper .month-wrapper table .day.real-today { background-color: rgb(255, 230, 132); }
+.date-picker-wrapper .month-wrapper table .day.real-today.checked { background-color: rgb(112, 204, 213); }
+
+
+.date-picker-wrapper table .caption
+{
+        height:40px;
+    color:rgb(185, 175, 125);
+}
+.date-picker-wrapper table .caption .next,
+.date-picker-wrapper table .caption .prev
+{
+        padding:0 5px;
+        cursor:pointer;
+}
+.date-picker-wrapper table .caption .next:hover,
+.date-picker-wrapper table .caption .prev:hover
+{
+        background-color:#ccc;
+        color:white;
+}
+.date-picker-wrapper .gap
+{
+        position:absolute;
+        display:none;
+        top:0px;
+        left:204px;
+        z-index: 1;
+        width:15px;
+        height: 100%;
+        background-color:red;
+        font-size:0;
+        line-height:0;
+}
+.date-picker-wrapper .gap .gap-lines { height: 100%; overflow:hidden; }
+.date-picker-wrapper .gap .gap-line { height:15px;width:15px; position:relative;  }
+.date-picker-wrapper .gap .gap-line .gap-1 { z-index:1; height:0; border-left:8px solid white; border-top:8px solid #eee;border-bottom:8px solid #eee; }
+.date-picker-wrapper .gap .gap-line .gap-2 { position:absolute; right:0; top:0px; z-index:2; height:0; border-left:8px solid transparent; border-top:8px solid white; }
+.date-picker-wrapper .gap .gap-line .gap-3 { position:absolute; right:0; top:8px; z-index:2; height:0; border-left:8px solid transparent; border-bottom:8px solid white; }
+.date-picker-wrapper .gap .gap-top-mask { width: 6px; height:1px; position:absolute; top: -1px; left: 1px; background-color: #eee; z-index:3; }
+.date-picker-wrapper .gap .gap-bottom-mask { width: 6px; height:1px; position:absolute; bottom: -1px; left: 7px; background-color: #eee; z-index:3; }
+
+.date-picker-wrapper .selected-days
+{
+        display:none;
+}
+.date-picker-wrapper .drp_top-bar
+{
+        line-height:36px;
+        position:relative;
+        font-size:14px;
+}
+.date-picker-wrapper .drp_top-bar .error-top { display:none; }
+.date-picker-wrapper .drp_top-bar .normal-top { display:none; }
+.date-picker-wrapper .drp_top-bar .default-top { display:block;}
+
+.date-picker-wrapper .drp_top-bar.error .default-top { display:none; }
+.date-picker-wrapper .drp_top-bar.error .error-top { display:block; color:red; }
+
+.date-picker-wrapper .drp_top-bar.normal .default-top { display:none; }
+.date-picker-wrapper .drp_top-bar.normal .normal-top { display:block; }
+
+.date-picker-wrapper .drp_top-bar .apply-btn
+{
+        position:absolute;
+        right: 0px; 
+        top: 6px;
+        padding:3px 5px;
+        margin:0;
+        font-size:12px;
+        border-radius:4px;
+        cursor:pointer;
+        
+        color: #d9eef7;
+        border: solid 1px #0076a3;
+        background: #0095cd;
+        background: -webkit-gradient(linear, left top, left bottom, from(#00adee), to(#0078a5));
+        background: -moz-linear-gradient(top,  #00adee,  #0078a5);
+/*        filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#00adee', endColorstr='#0078a5');*/
+        color:white;
+}
+
+.date-picker-wrapper .drp_top-bar .apply-btn.disabled
+{
+        cursor: pointer;
+        color: #606060;
+        border: solid 1px #b7b7b7;
+        background: #fff;
+        background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
+        background: -moz-linear-gradient(top,  #fff,  #ededed);
+/*        filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');*/
+}
+/*time styling*/
+.time {
+        position: relative;
+}
+.time input[type=range] {
+  vertical-align: middle;
+}
+.time1, .time2 {
+        width: 180px;
+        padding: 0 5px;
+        text-align: center;
+}
+.time1 {
+        float: left;
+}
+.time2 {
+        float: right;        
+}
+.hour, .minute {
+        text-align: right;
+}
+.hide {
+        display: none;
+}
</ins><span class="cx">Property changes on: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/daterangepicker.css
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnexecutable"></a>
<div class="addfile"><h4>Added: svn:executable</h4></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardExternaljquery1111minjs"></a>
<div class="addfile"><h4>Added: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery-1.11.1.min.js (0 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery-1.11.1.min.js                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery-1.11.1.min.js        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
+!function(a,b){&quot;object&quot;==typeof module&amp;&amp;&quot;object&quot;==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error(&quot;jQuery requires a window with a document&quot;);return b(a)}:b(a)}(&quot;undefined&quot;!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=&quot;1.11.1&quot;,m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:&quot;&quot;,length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0&gt;a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0&gt;a?b:0);return this.pushStack(c&gt;=0&amp;&amp;b&gt;c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for(&quot;boolean&quot;==typeof g&amp;&amp;(j=g,g=arguments[h]||{},h++),&quot;object&quot;==typeof g||m.isFunction(g)||(g={}),h===i&amp;&amp;(g=this,h--);i&gt;h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&amp;&amp;(j&amp;&amp;c&amp;&amp;(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&amp;&amp;m.isArray(a)?a:[]):f=a&amp;&amp;m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&amp;&amp;(g[d]=c));return g},m.extend({expando:&quot;jQuery&quot;+(l+Math.random()).replace(/\D/g,&quot;&quot;),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return&quot;function&quot;===m.type(a)},isArray:Array.isArray||function(a){return&quot;array&quot;===m.type(a)},isWindow:function(a){return null!=a&amp;&amp;a==a.window},isNumeric:function(a){return!m.isArray(a)&amp;&amp;a-parseFloat(a)&gt;=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||&quot;object&quot;!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&amp;&amp;!j.call(a,&quot;constructor&quot;)&amp;&amp;!j.call(a.constructor.prototype,&quot;isPrototypeOf&quot;))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+&quot;&quot;:&quot;object&quot;==typeof a||&quot;function&quot;==typeof a?h[i.call(a)]||&quot;object&quot;:typeof a},globalEval:function(b){b&amp;&amp;m.trim(b)&amp;&amp;(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,&quot;ms-&quot;).replace(p,q)},nodeName:function(a,b){return a.nodeName&amp;&amp;a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f&gt;e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f&gt;e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?&quot;&quot;:(a+&quot;&quot;).replace(n,&quot;&quot;)},makeArray:function(a,b){var c=b||[];return null!=a&amp;&amp;(r(Object(a))?m.merge(c,&quot;string&quot;==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0&gt;c?Math.max(0,d+c):c:0;d&gt;c;c++)if(c in b&amp;&amp;b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c&gt;d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g&gt;f;f++)d=!b(a[f],f),d!==h&amp;&amp;e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g&gt;f;f++)d=b(a[f],f,c),null!=d&amp;&amp;i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&amp;&amp;i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return&quot;string&quot;==typeof b&amp;&amp;(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each(&quot;Boolean Number String Function Array Date RegExp Object Error&quot;.split(&quot; &quot;),function(a,b){h[&quot;[object &quot;+b+&quot;]&quot;]=b.toLowerCase()});function r(a){var b=a.length,c=m.type(a);return&quot;function&quot;===c||m.isWindow(a)?!1:1===a.nodeType&amp;&amp;b?!0:&quot;array&quot;===c||0===b||&quot;number&quot;==typeof b&amp;&amp;b&gt;0&amp;&amp;b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u=&quot;sizzle&quot;+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&amp;&amp;(l=!0),0},C=&quot;undefined&quot;,D=1&lt;&lt;31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c&gt;b;b++)if(this[b]===a)return b;return-1},L=&quot;checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped&quot;,M=&quot;[\\x20\\t\\r\\n\\f]&quot;,N=&quot;(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+&quot;,O=N.replace(&quot;w&quot;,&quot;w#&quot;),P=&quot;\\[&quot;+M+&quot;*(&quot;+N+&quot;)(?:&quot;+M+&quot;*([*^$|!~]?=)&quot;+M+&quot;*(?:'((?:\\\\.|[^\\\\'])*)'|\&quot;((?:\\\\.|[^\\\\\&quot;])*)\&quot;|(&quot;+O+&quot;))|)&quot;+M+&quot;*\\]&quot;,Q=&quot;:(&quot;+N+&quot;)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\&quot;((?:\\\\.|[^\\\\\&quot;])*)\&quot;)|((?:\\\\.|[^\\\\()[\\]]|&quot;+P+&quot;)*)|.*)\\)|)&quot;,R=new RegExp(&quot;^&quot;+M+&quot;+|((?:^|[^\\\\])(?:\\\\.)*)&quot;+M+&quot;+$&quot;,&quot;g&quot;),S=new RegExp(&quot;^&quot;+M+&quot;*,&quot;+M+&quot;*&quot;),T=new RegExp(&quot;^&quot;+M+&quot;*([&gt;+~]|&quot;+M+&quot;)&quot;+M+&quot;*&quot;),U=new RegExp(&quot;=&quot;+M+&quot;*([^\\]'\&quot;]*?)&quot;+M+&quot;*\\]&quot;,&quot;g&quot;),V=new RegExp(Q),W=new RegExp(&quot;^&quot;+O+&quot;$&quot;),X={ID:new RegExp(&quot;^#(&quot;+N+&quot;)&quot;),CLASS:new RegExp(&quot;^\\.(&quot;+N+&quot;)&quot;),TAG:new RegExp(&quot;^(&quot;+N.replace(&quot;w&quot;,&quot;w*&quot;)+&quot;)&quot;),ATTR:new RegExp(&quot;^&quot;+P),PSEUDO:new RegExp(&quot;^&quot;+Q),CHILD:new RegExp(&quot;^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(&quot;+M+&quot;*(even|odd|(([+-]|)(\\d*)n|)&quot;+M+&quot;*(?:([+-]|)&quot;+M+&quot;*(\\d+)|))&quot;+M+&quot;*\\)|)&quot;,&quot;i&quot;),bool:new RegExp(&quot;^(?:&quot;+L+&quot;)$&quot;,&quot;i&quot;),needsContext:new RegExp(&quot;^&quot;+M+&quot;*[&gt;+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(&quot;+M+&quot;*((?:-\\d)?\\d*)&quot;+M+&quot;*\\)|)(?=[^-]|$)&quot;,&quot;i&quot;)},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp(&quot;\\\\([\\da-f]{1,6}&quot;+M+&quot;?|(&quot;+M+&quot;)|.)&quot;,&quot;ig&quot;),db=function(a,b,c){var d=&quot;0x&quot;+b-65536;return d!==d||c?b:0&gt;d?String.fromCharCode(d+65536):String.fromCharCode(d&gt;&gt;10|55296,1023&amp;d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&amp;&amp;m(b),b=b||n,d=d||[],!a||&quot;string&quot;!=typeof a)return d;if(1!==(k=b.nodeType)&amp;&amp;9!==k)return[];if(p&amp;&amp;!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&amp;&amp;(h=b.ownerDocument.getElementById(j))&amp;&amp;t(b,h)&amp;&amp;h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&amp;&amp;c.getElementsByClassName&amp;&amp;b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&amp;&amp;(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&amp;&amp;a,1===k&amp;&amp;&quot;object&quot;!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute(&quot;id&quot;))?s=r.replace(bb,&quot;\\$&amp;&quot;):b.setAttribute(&quot;id&quot;,s),s=&quot;[id='&quot;+s+&quot;'] &quot;,l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&amp;&amp;ob(b.parentNode)||b,x=o.join(&quot;,&quot;)}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute(&quot;id&quot;)}}}return i(a.replace(R,&quot;$1&quot;),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+&quot; &quot;)&gt;d.cacheLength&amp;&amp;delete b[a.shift()],b[c+&quot; &quot;]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement(&quot;div&quot;);try{return!!a(b)}catch(c){return!1}finally{b.parentNode&amp;&amp;b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split(&quot;|&quot;),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&amp;&amp;a,d=c&amp;&amp;1===a.nodeType&amp;&amp;1===b.nodeType&amp;&amp;(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return&quot;input&quot;===c&amp;&amp;b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return(&quot;input&quot;===c||&quot;button&quot;===c)&amp;&amp;b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&amp;&amp;(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&amp;&amp;typeof a.getElementsByTagName!==C&amp;&amp;a}c=fb.support={},f=fb.isXML=function(a){var b=a&amp;&amp;(a.ownerDocument||a).documentElement;return b?&quot;HTML&quot;!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&amp;&amp;9===e.nodeType&amp;&amp;e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&amp;&amp;g!==g.top&amp;&amp;(g.addEventListener?g.addEventListener(&quot;unload&quot;,function(){m()},!1):g.attachEvent&amp;&amp;g.attachEvent(&quot;onunload&quot;,function(){m()})),c.attributes=ib(function(a){return a.className=&quot;i&quot;,!a.getAttribute(&quot;className&quot;)}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment(&quot;&quot;)),!a.getElementsByTagName(&quot;*&quot;).length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&amp;&amp;ib(function(a){return a.innerHTML=&quot;&lt;div class='a'&gt;&lt;/div&gt;&lt;div class='a i'&gt;&lt;/div&gt;&quot;,a.firstChild.className=&quot;i&quot;,2===a.getElementsByClassName(&quot;i&quot;).length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&amp;&amp;p){var c=b.getElementById(a);return c&amp;&amp;c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute(&quot;id&quot;)===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&amp;&amp;a.getAttributeNode(&quot;id&quot;);return c&amp;&amp;c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if(&quot;*&quot;===a){while(c=f[e++])1===c.nodeType&amp;&amp;d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&amp;&amp;function(a,b){return typeof b.getElementsByClassName!==C&amp;&amp;p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&amp;&amp;(ib(function(a){a.innerHTML=&quot;&lt;select msallowclip=''&gt;&lt;option selected=''&gt;&lt;/option&gt;&lt;/select&gt;&quot;,a.querySelectorAll(&quot;[msallowclip^='']&quot;).length&amp;&amp;q.push(&quot;[*^$]=&quot;+M+&quot;*(?:''|\&quot;\&quot;)&quot;),a.querySelectorAll(&quot;[selected]&quot;).length||q.push(&quot;\\[&quot;+M+&quot;*(?:value|&quot;+L+&quot;)&quot;),a.querySelectorAll(&quot;:checked&quot;).length||q.push(&quot;:checked&quot;)}),ib(function(a){var b=e.createElement(&quot;input&quot;);b.setAttribute(&quot;type&quot;,&quot;hidden&quot;),a.appendChild(b).setAttribute(&quot;name&quot;,&quot;D&quot;),a.querySelectorAll(&quot;[name=d]&quot;).length&amp;&amp;q.push(&quot;name&quot;+M+&quot;*[*^$|!~]?=&quot;),a.querySelectorAll(&quot;:enabled&quot;).length||q.push(&quot;:enabled&quot;,&quot;:disabled&quot;),a.querySelectorAll(&quot;*,:x&quot;),q.push(&quot;,.*:&quot;)})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&amp;&amp;ib(function(a){c.disconnectedMatch=s.call(a,&quot;div&quot;),s.call(a,&quot;[s!='']:x&quot;),r.push(&quot;!=&quot;,Q)}),q=q.length&amp;&amp;new RegExp(q.join(&quot;|&quot;)),r=r.length&amp;&amp;new RegExp(r.join(&quot;|&quot;)),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&amp;&amp;b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&amp;&amp;16&amp;a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&amp;d||!c.sortDetached&amp;&amp;b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&amp;&amp;t(v,a)?-1:b===e||b.ownerDocument===v&amp;&amp;t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&amp;d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&amp;&amp;m(a),b=b.replace(U,&quot;='$1']&quot;),!(!c.matchesSelector||!p||r&amp;&amp;r.test(b)||q&amp;&amp;q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&amp;&amp;11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length&gt;0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&amp;&amp;m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&amp;&amp;m(a);var e=d.attrHandle[b.toLowerCase()],f=e&amp;&amp;E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&amp;&amp;f.specified?f.value:null},fb.error=function(a){throw new Error(&quot;Syntax error, unrecognized expression: &quot;+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&amp;&amp;a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&amp;&amp;(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c=&quot;&quot;,d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if(&quot;string&quot;==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{&quot;&gt;&quot;:{dir:&quot;parentNode&quot;,first:!0},&quot; &quot;:{dir:&quot;parentNode&quot;},&quot;+&quot;:{dir:&quot;previousSibling&quot;,first:!0},&quot;~&quot;:{dir:&quot;previousSibling&quot;}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||&quot;&quot;).replace(cb,db),&quot;~=&quot;===a[2]&amp;&amp;(a[3]=&quot; &quot;+a[3]+&quot; &quot;),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),&quot;nth&quot;===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*(&quot;even&quot;===a[3]||&quot;odd&quot;===a[3])),a[5]=+(a[7]+a[8]||&quot;odd&quot;===a[3])):a[3]&amp;&amp;fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&amp;&amp;a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||&quot;&quot;:c&amp;&amp;V.test(c)&amp;&amp;(b=g(c,!0))&amp;&amp;(b=c.indexOf(&quot;)&quot;,c.length-b)-c.length)&amp;&amp;(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return&quot;*&quot;===a?function(){return!0}:function(a){return a.nodeName&amp;&amp;a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+&quot; &quot;];return b||(b=new RegExp(&quot;(^|&quot;+M+&quot;)&quot;+a+&quot;(&quot;+M+&quot;|$)&quot;))&amp;&amp;y(a,function(a){return b.test(&quot;string&quot;==typeof a.className&amp;&amp;a.className||typeof a.getAttribute!==C&amp;&amp;a.getAttribute(&quot;class&quot;)||&quot;&quot;)})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?&quot;!=&quot;===b:b?(e+=&quot;&quot;,&quot;=&quot;===b?e===c:&quot;!=&quot;===b?e!==c:&quot;^=&quot;===b?c&amp;&amp;0===e.indexOf(c):&quot;*=&quot;===b?c&amp;&amp;e.indexOf(c)&gt;-1:&quot;$=&quot;===b?c&amp;&amp;e.slice(-c.length)===c:&quot;~=&quot;===b?(&quot; &quot;+e+&quot; &quot;).indexOf(c)&gt;-1:&quot;|=&quot;===b?e===c||e.slice(0,c.length+1)===c+&quot;-&quot;:!1):!0}},CHILD:function(a,b,c,d,e){var f=&quot;nth&quot;!==a.slice(0,3),g=&quot;last&quot;!==a.slice(-4),h=&quot;of-type&quot;===b;return 1===d&amp;&amp;0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?&quot;nextSibling&quot;:&quot;previousSibling&quot;,q=b.parentNode,r=h&amp;&amp;b.nodeName.toLowerCase(),s=!i&amp;&amp;!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p=&quot;only&quot;===a&amp;&amp;!o&amp;&amp;&quot;nextSibling&quot;}return!0}if(o=[g?q.firstChild:q.lastChild],g&amp;&amp;s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&amp;&amp;j[1],m=j[0]===w&amp;&amp;j[2],l=n&amp;&amp;q.childNodes[n];while(l=++n&amp;&amp;l&amp;&amp;l[p]||(m=n=0)||o.pop())if(1===l.nodeType&amp;&amp;++m&amp;&amp;l===b){k[a]=[w,n,m];break}}else if(s&amp;&amp;(j=(b[u]||(b[u]={}))[a])&amp;&amp;j[0]===w)m=j[1];else while(l=++n&amp;&amp;l&amp;&amp;l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&amp;&amp;++m&amp;&amp;(s&amp;&amp;((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&amp;&amp;m/d&gt;=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error(&quot;unsupported pseudo: &quot;+a);return e[u]?e(b):e.length&gt;1?(c=[a,a,&quot;&quot;,b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,&quot;$1&quot;));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&amp;&amp;(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length&gt;0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)&gt;-1}}),lang:hb(function(a){return W.test(a||&quot;&quot;)||fb.error(&quot;unsupported lang: &quot;+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute(&quot;xml:lang&quot;)||b.getAttribute(&quot;lang&quot;))return c=c.toLowerCase(),c===a||0===c.indexOf(a+&quot;-&quot;);while((b=b.parentNode)&amp;&amp;1===b.nodeType);return!1}}),target:function(b){var c=a.location&amp;&amp;a.location.hash;return c&amp;&amp;c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&amp;&amp;(!n.hasFocus||n.hasFocus())&amp;&amp;!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return&quot;input&quot;===b&amp;&amp;!!a.checked||&quot;option&quot;===b&amp;&amp;!!a.selected},selected:function(a){return a.parentNode&amp;&amp;a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType&lt;6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return&quot;input&quot;===b&amp;&amp;&quot;button&quot;===a.type||&quot;button&quot;===b},text:function(a){var b;return&quot;input&quot;===a.nodeName.toLowerCase()&amp;&amp;&quot;text&quot;===a.type&amp;&amp;(null==(b=a.getAttribute(&quot;type&quot;))||&quot;text&quot;===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0&gt;c?c+b:c]}),even:nb(function(a,b){for(var c=0;b&gt;c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b&gt;c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0&gt;c?c+b:c;--d&gt;=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0&gt;c?c+b:c;++d&lt;b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=lb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=mb(b);function pb(){}pb.prototype=d.filters=d.pseudos,d.setFilters=new pb,g=fb.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+&quot; &quot;];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&amp;&amp;(e&amp;&amp;(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&amp;&amp;(c=e.shift(),f.push({value:c,type:e[0].replace(R,&quot; &quot;)}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&amp;&amp;!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fb.error(a):z(a,i).slice(0)};function qb(a){for(var b=0,c=a.length,d=&quot;&quot;;c&gt;b;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&amp;&amp;&quot;parentNode&quot;===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&amp;&amp;a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&amp;&amp;h[0]===w&amp;&amp;h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length&gt;1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e&gt;d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i&gt;h;h++)(f=a[h])&amp;&amp;(!c||c(f,d,e))&amp;&amp;(g.push(f),j&amp;&amp;b.push(h));return g}function vb(a,b,c,d,e,f){return d&amp;&amp;!d[u]&amp;&amp;(d=vb(d)),e&amp;&amp;!e[u]&amp;&amp;(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||&quot;*&quot;,h.nodeType?[h]:h,[]),q=!a||!f&amp;&amp;b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&amp;&amp;c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&amp;&amp;(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&amp;&amp;j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&amp;&amp;(j=e?K.call(f,l):m[k])&gt;-1&amp;&amp;(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[&quot; &quot;],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)&gt;-1},h,!0),m=[function(a,c,d){return!g&amp;&amp;(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f&gt;i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f&gt;e;e++)if(d.relative[a[e].type])break;return vb(i&gt;1&amp;&amp;sb(m),i&gt;1&amp;&amp;qb(a.slice(0,i-1).concat({value:&quot; &quot;===a[i-2].type?&quot;*&quot;:&quot;&quot;})).replace(R,&quot;$1&quot;),c,e&gt;i&amp;&amp;wb(a.slice(i,e)),f&gt;e&amp;&amp;wb(a=a.slice(e)),f&gt;e&amp;&amp;qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length&gt;0,e=a.length&gt;0,f=function(f,g,h,i,k){var l,m,o,p=0,q=&quot;0&quot;,r=f&amp;&amp;[],s=[],t=j,u=f||e&amp;&amp;d.find.TAG(&quot;*&quot;,k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&amp;&amp;(j=g!==n&amp;&amp;g);q!==x&amp;&amp;null!=(l=u[q]);q++){if(e&amp;&amp;l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&amp;&amp;(w=v)}c&amp;&amp;((l=!o&amp;&amp;l)&amp;&amp;p--,f&amp;&amp;r.push(l))}if(p+=q,c&amp;&amp;q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p&gt;0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&amp;&amp;!f&amp;&amp;s.length&gt;0&amp;&amp;p+b.length&gt;1&amp;&amp;fb.uniqueSort(i)}return k&amp;&amp;(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+&quot; &quot;];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n=&quot;function&quot;==typeof a&amp;&amp;a,o=!f&amp;&amp;g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length&gt;2&amp;&amp;&quot;ID&quot;===(k=j[0]).type&amp;&amp;c.getById&amp;&amp;9===b.nodeType&amp;&amp;p&amp;&amp;d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&amp;&amp;(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&amp;&amp;(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&amp;&amp;ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&amp;&amp;qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&amp;&amp;ob(b.parentNode)||b),e},c.sortStable=u.split(&quot;&quot;).sort(B).join(&quot;&quot;)===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&amp;a.compareDocumentPosition(n.createElement(&quot;div&quot;))}),ib(function(a){return a.innerHTML=&quot;&lt;a href='#'&gt;&lt;/a&gt;&quot;,&quot;#&quot;===a.firstChild.getAttribute(&quot;href&quot;)})||jb(&quot;type|href|height|width&quot;,function(a,b,c){return c?void 0:a.getAttribute(b,&quot;type&quot;===b.toLowerCase()?1:2)}),c.attributes&amp;&amp;ib(function(a){return a.innerHTML=&quot;&lt;input/&gt;&quot;,a.firstChild.setAttribute(&quot;value&quot;,&quot;&quot;),&quot;&quot;===a.firstChild.getAttribute(&quot;value&quot;)})||jb(&quot;value&quot;,function(a,b,c){return c||&quot;input&quot;!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute(&quot;disabled&quot;)})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&amp;&amp;d.specified?d.value:null}),fb}(a);m.find=s,m.expr=s.selectors,m.expr[&quot;:&quot;]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^&lt;(\w+)\s*\/?&gt;(?:&lt;\/\1&gt;|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if(&quot;string&quot;==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)&gt;=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&amp;&amp;(a=&quot;:not(&quot;+a+&quot;)&quot;),1===b.length&amp;&amp;1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if(&quot;string&quot;!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e&gt;b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e&gt;b;b++)m.find(a,d[b],c);return c=this.pushStack(e&gt;1?m.unique(c):c),c.selector=this.selector?this.selector+&quot; &quot;+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,&quot;string&quot;==typeof a&amp;&amp;t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(&lt;[\w\W]+&gt;)[^&gt;]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if(&quot;string&quot;==typeof a){if(c=&quot;&lt;&quot;===a.charAt(0)&amp;&amp;&quot;&gt;&quot;===a.charAt(a.length-1)&amp;&amp;a.length&gt;=3?[null,a,null]:z.exec(a),!c||!c[1]&amp;&amp;b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&amp;&amp;b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&amp;&amp;m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&amp;&amp;d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?&quot;undefined&quot;!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&amp;&amp;(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&amp;&amp;9!==e.nodeType&amp;&amp;(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&amp;&amp;d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&amp;&amp;a!==b&amp;&amp;c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d&gt;b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||&quot;string&quot;!=typeof a?m(a,b||this.context):0;e&gt;d;d++)for(c=this[d];c&amp;&amp;c!==b;c=c.parentNode)if(c.nodeType&lt;11&amp;&amp;(g?g.index(c)&gt;-1:1===c.nodeType&amp;&amp;m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length&gt;1?m.unique(f):f)},index:function(a){return a?&quot;string&quot;==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&amp;&amp;this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&amp;&amp;1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&amp;&amp;11!==b.nodeType?b:null},parents:function(a){return m.dir(a,&quot;parentNode&quot;)},parentsUntil:function(a,b,c){return m.dir(a,&quot;parentNode&quot;,c)},next:function(a){return D(a,&quot;nextSibling&quot;)},prev:function(a){return D(a,&quot;previousSibling&quot;)},nextAll:function(a){return m.dir(a,&quot;nextSibling&quot;)},prevAll:function(a){return m.dir(a,&quot;previousSibling&quot;)},nextUntil:function(a,b,c){return m.dir(a,&quot;nextSibling&quot;,c)},prevUntil:function(a,b,c){return m.dir(a,&quot;previousSibling&quot;,c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,&quot;iframe&quot;)?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return&quot;Until&quot;!==a.slice(-5)&amp;&amp;(d=c),d&amp;&amp;&quot;string&quot;==typeof d&amp;&amp;(e=m.filter(d,e)),this.length&gt;1&amp;&amp;(C[a]||(e=m.unique(e)),B.test(a)&amp;&amp;(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a=&quot;string&quot;==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&amp;&amp;[],j=function(l){for(c=a.memory&amp;&amp;l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&amp;&amp;e&gt;f;f++)if(h[f].apply(l[0],l[1])===!1&amp;&amp;a.stopOnFalse){c=!1;break}b=!1,h&amp;&amp;(i?i.length&amp;&amp;j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);&quot;function&quot;===d?a.unique&amp;&amp;k.has(c)||h.push(c):c&amp;&amp;c.length&amp;&amp;&quot;string&quot;!==d&amp;&amp;f(c)})}(arguments),b?e=h.length:c&amp;&amp;(g=d,j(c))}return this},remove:function(){return h&amp;&amp;m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))&gt;-1)h.splice(d,1),b&amp;&amp;(e&gt;=d&amp;&amp;e--,f&gt;=d&amp;&amp;f--)}),this},has:function(a){return a?m.inArray(a,h)&gt;-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&amp;&amp;!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[[&quot;resolve&quot;,&quot;done&quot;,m.Callbacks(&quot;once memory&quot;),&quot;resolved&quot;],[&quot;reject&quot;,&quot;fail&quot;,m.Callbacks(&quot;once memory&quot;),&quot;rejected&quot;],[&quot;notify&quot;,&quot;progress&quot;,m.Callbacks(&quot;memory&quot;)]],c=&quot;pending&quot;,d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&amp;&amp;a[b];e[f[1]](function(){var a=g&amp;&amp;g.apply(this,arguments);a&amp;&amp;m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+&quot;With&quot;](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&amp;&amp;g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+&quot;With&quot;](this===e?d:this,arguments),this},e[f[0]+&quot;With&quot;]=g.fireWith}),d.promise(e),a&amp;&amp;a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&amp;&amp;m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length&gt;1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e&gt;1)for(i=new Array(e),j=new Array(e),k=new Array(e);e&gt;b;b++)c[b]&amp;&amp;m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&amp;&amp;--m.readyWait&gt;0||(H.resolveWith(y,[m]),m.fn.triggerHandler&amp;&amp;(m(y).triggerHandler(&quot;ready&quot;),m(y).off(&quot;ready&quot;)))}}});function I(){y.addEventListener?(y.removeEventListener(&quot;DOMContentLoaded&quot;,J,!1),a.removeEventListener(&quot;load&quot;,J,!1)):(y.detachEvent(&quot;onreadystatechange&quot;,J),a.detachEvent(&quot;onload&quot;,J))}function J(){(y.addEventListener||&quot;load&quot;===event.type||&quot;complete&quot;===y.readyState)&amp;&amp;(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),&quot;complete&quot;===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener(&quot;DOMContentLoaded&quot;,J,!1),a.addEventListener(&quot;load&quot;,J,!1);else{y.attachEvent(&quot;onreadystatechange&quot;,J),a.attachEvent(&quot;onload&quot;,J);var c=!1;try{c=null==a.frameElement&amp;&amp;y.documentElement}catch(d){}c&amp;&amp;c.doScroll&amp;&amp;!function e(){if(!m.isReady){try{c.doScroll(&quot;left&quot;)}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K=&quot;undefined&quot;,L;for(L in m(k))break;k.ownLast=&quot;0&quot;!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName(&quot;body&quot;)[0],c&amp;&amp;c.style&amp;&amp;(b=y.createElement(&quot;div&quot;),d=y.createElement(&quot;div&quot;),d.style.cssText=&quot;position:absolute;border:0;width:0;height:0;top:0;left:-9999px&quot;,c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&amp;&amp;(b.style.cssText=&quot;display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1&quot;,k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&amp;&amp;(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement(&quot;div&quot;);if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+&quot; &quot;).toLowerCase()],c=+a.nodeType||1;return 1!==c&amp;&amp;9!==c?!1:!b||b!==!0&amp;&amp;a.getAttribute(&quot;classid&quot;)===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&amp;&amp;1===a.nodeType){var d=&quot;data-&quot;+b.replace(N,&quot;-$1&quot;).toLowerCase();if(c=a.getAttribute(d),&quot;string&quot;==typeof c){try{c=&quot;true&quot;===c?!0:&quot;false&quot;===c?!1:&quot;null&quot;===c?null:+c+&quot;&quot;===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if((&quot;data&quot;!==b||!m.isEmptyObject(a[b]))&amp;&amp;&quot;toJSON&quot;!==b)return!1;return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&amp;&amp;h;
+if(k&amp;&amp;j[k]&amp;&amp;(e||j[k].data)||void 0!==d||&quot;string&quot;!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),(&quot;object&quot;==typeof b||&quot;function&quot;==typeof b)&amp;&amp;(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&amp;&amp;(g[m.camelCase(b)]=d),&quot;string&quot;==typeof b?(f=g[b],null==f&amp;&amp;(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&amp;&amp;(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(&quot; &quot;)),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&amp;&amp;(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{&quot;applet &quot;:!0,&quot;embed &quot;:!0,&quot;object &quot;:&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&amp;&amp;!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&amp;&amp;f.attributes;if(void 0===a){if(this.length&amp;&amp;(e=m.data(f),1===f.nodeType&amp;&amp;!m._data(f,&quot;parsedAttrs&quot;))){c=g.length;while(c--)g[c]&amp;&amp;(d=g[c].name,0===d.indexOf(&quot;data-&quot;)&amp;&amp;(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,&quot;parsedAttrs&quot;,!0)}return e}return&quot;object&quot;==typeof a?this.each(function(){m.data(this,a)}):arguments.length&gt;1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||&quot;fx&quot;)+&quot;queue&quot;,d=m._data(a,b),c&amp;&amp;(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||&quot;fx&quot;;var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};&quot;inprogress&quot;===e&amp;&amp;(e=c.shift(),d--),e&amp;&amp;(&quot;fx&quot;===b&amp;&amp;c.unshift(&quot;inprogress&quot;),delete f.stop,e.call(a,g,f)),!d&amp;&amp;f&amp;&amp;f.empty.fire()},_queueHooks:function(a,b){var c=b+&quot;queueHooks&quot;;return m._data(a,c)||m._data(a,c,{empty:m.Callbacks(&quot;once memory&quot;).add(function(){m._removeData(a,b+&quot;queue&quot;),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return&quot;string&quot;!=typeof a&amp;&amp;(b=a,a=&quot;fx&quot;,c--),arguments.length&lt;c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),&quot;fx&quot;===a&amp;&amp;&quot;inprogress&quot;!==c[0]&amp;&amp;m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||&quot;fx&quot;,[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};&quot;string&quot;!=typeof a&amp;&amp;(b=a,a=void 0),a=a||&quot;fx&quot;;while(g--)c=m._data(f[g],a+&quot;queueHooks&quot;),c&amp;&amp;c.empty&amp;&amp;(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=[&quot;Top&quot;,&quot;Right&quot;,&quot;Bottom&quot;,&quot;Left&quot;],U=function(a,b){return a=b||a,&quot;none&quot;===m.css(a,&quot;display&quot;)||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if(&quot;object&quot;===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&amp;&amp;(e=!0,m.isFunction(d)||(g=!0),j&amp;&amp;(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i&gt;h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement(&quot;input&quot;),b=y.createElement(&quot;div&quot;),c=y.createDocumentFragment();if(b.innerHTML=&quot;  &lt;link/&gt;&lt;table&gt;&lt;/table&gt;&lt;a href='/a'&gt;a&lt;/a&gt;&lt;input type='checkbox'/&gt;&quot;,k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName(&quot;tbody&quot;).length,k.htmlSerialize=!!b.getElementsByTagName(&quot;link&quot;).length,k.html5Clone=&quot;&lt;:nav&gt;&lt;/:nav&gt;&quot;!==y.createElement(&quot;nav&quot;).cloneNode(!0).outerHTML,a.type=&quot;checkbox&quot;,a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML=&quot;&lt;textarea&gt;x&lt;/textarea&gt;&quot;,k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML=&quot;&lt;input type='radio' checked='checked' name='t'/&gt;&quot;,k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&amp;&amp;(b.attachEvent(&quot;onclick&quot;,function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement(&quot;div&quot;);for(b in{submit:!0,change:!0,focusin:!0})c=&quot;on&quot;+b,(k[b+&quot;Bubbles&quot;]=c in a)||(d.setAttribute(c,&quot;t&quot;),k[b+&quot;Bubbles&quot;]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function ab(){return!0}function bb(){return!1}function cb(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&amp;&amp;(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&amp;&amp;m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||&quot;&quot;).match(E)||[&quot;&quot;],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||&quot;&quot;).split(&quot;.&quot;).sort(),o&amp;&amp;(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&amp;&amp;m.expr.match.needsContext.test(e),namespace:p.join(&quot;.&quot;)},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&amp;&amp;j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&amp;&amp;a.attachEvent(&quot;on&quot;+o,k))),j.add&amp;&amp;(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&amp;&amp;m._data(a);if(r&amp;&amp;(k=r.events)){b=(b||&quot;&quot;).match(E)||[&quot;&quot;],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||&quot;&quot;).split(&quot;.&quot;).sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&amp;&amp;new RegExp(&quot;(^|\\.)&quot;+p.join(&quot;\\.(?:.*\\.|)&quot;)+&quot;(\\.|$)&quot;),i=f=n.length;while(f--)g=n[f],!e&amp;&amp;q!==g.origType||c&amp;&amp;c.guid!==g.guid||h&amp;&amp;!h.test(g.namespace)||d&amp;&amp;d!==g.selector&amp;&amp;(&quot;**&quot;!==d||!g.selector)||(n.splice(f,1),g.selector&amp;&amp;n.delegateCount--,l.remove&amp;&amp;l.remove.call(a,g));i&amp;&amp;!n.length&amp;&amp;(l.teardown&amp;&amp;l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&amp;&amp;(delete r.handle,m._removeData(a,&quot;events&quot;))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,&quot;type&quot;)?b.type:b,q=j.call(b,&quot;namespace&quot;)?b.namespace.split(&quot;.&quot;):[];if(h=l=d=d||y,3!==d.nodeType&amp;&amp;8!==d.nodeType&amp;&amp;!$.test(p+m.event.triggered)&amp;&amp;(p.indexOf(&quot;.&quot;)&gt;=0&amp;&amp;(q=p.split(&quot;.&quot;),p=q.shift(),q.sort()),g=p.indexOf(&quot;:&quot;)&lt;0&amp;&amp;&quot;on&quot;+p,b=b[m.expando]?b:new m.Event(p,&quot;object&quot;==typeof b&amp;&amp;b),b.isTrigger=e?2:3,b.namespace=q.join(&quot;.&quot;),b.namespace_re=b.namespace?new RegExp(&quot;(^|\\.)&quot;+q.join(&quot;\\.(?:.*\\.|)&quot;)+&quot;(\\.|$)&quot;):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&amp;&amp;!k.noBubble&amp;&amp;!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&amp;&amp;o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&amp;&amp;!b.isPropagationStopped())b.type=n&gt;1?i:k.bindType||p,f=(m._data(h,&quot;events&quot;)||{})[b.type]&amp;&amp;m._data(h,&quot;handle&quot;),f&amp;&amp;f.apply(h,c),f=g&amp;&amp;h[g],f&amp;&amp;f.apply&amp;&amp;m.acceptData(h)&amp;&amp;(b.result=f.apply(h,c),b.result===!1&amp;&amp;b.preventDefault());if(b.type=p,!e&amp;&amp;!b.isDefaultPrevented()&amp;&amp;(!k._default||k._default.apply(o.pop(),c)===!1)&amp;&amp;m.acceptData(d)&amp;&amp;g&amp;&amp;d[p]&amp;&amp;!m.isWindow(d)){l=d[g],l&amp;&amp;(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&amp;&amp;(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,&quot;events&quot;)||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&amp;&amp;!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&amp;&amp;!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&amp;&amp;(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&amp;&amp;(a.result=c)===!1&amp;&amp;(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&amp;&amp;k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&amp;&amp;i.nodeType&amp;&amp;(!a.button||&quot;click&quot;!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&amp;&amp;(i.disabled!==!0||&quot;click&quot;!==a.type)){for(e=[],f=0;h&gt;f;f++)d=b[f],c=d.selector+&quot; &quot;,void 0===e[c]&amp;&amp;(e[c]=d.needsContext?m(c,this).index(i)&gt;=0:m.find(c,this,null,[i]).length),e[c]&amp;&amp;e.push(d);e.length&amp;&amp;g.push({elem:i,handlers:e})}return h&lt;b.length&amp;&amp;g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&amp;&amp;(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:&quot;altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which&quot;.split(&quot; &quot;),fixHooks:{},keyHooks:{props:&quot;char charCode key keyCode&quot;.split(&quot; &quot;),filter:function(a,b){return null==a.which&amp;&amp;(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:&quot;button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement&quot;.split(&quot; &quot;),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&amp;&amp;null!=b.clientX&amp;&amp;(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&amp;&amp;e.scrollLeft||c&amp;&amp;c.scrollLeft||0)-(e&amp;&amp;e.clientLeft||c&amp;&amp;c.clientLeft||0),a.pageY=b.clientY+(e&amp;&amp;e.scrollTop||c&amp;&amp;c.scrollTop||0)-(e&amp;&amp;e.clientTop||c&amp;&amp;c.clientTop||0)),!a.relatedTarget&amp;&amp;g&amp;&amp;(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&amp;f?1:2&amp;f?3:4&amp;f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cb()&amp;&amp;this.focus)try{return this.focus(),!1}catch(a){}},delegateType:&quot;focusin&quot;},blur:{trigger:function(){return this===cb()&amp;&amp;this.blur?(this.blur(),!1):void 0},delegateType:&quot;focusout&quot;},click:{trigger:function(){return m.nodeName(this,&quot;input&quot;)&amp;&amp;&quot;checkbox&quot;===this.type&amp;&amp;this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,&quot;a&quot;)}},beforeunload:{postDispatch:function(a){void 0!==a.result&amp;&amp;a.originalEvent&amp;&amp;(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&amp;&amp;c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&amp;&amp;a.removeEventListener(b,c,!1)}:function(a,b,c){var d=&quot;on&quot;+b;a.detachEvent&amp;&amp;(typeof a[d]===K&amp;&amp;(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&amp;&amp;a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&amp;&amp;a.returnValue===!1?ab:bb):this.type=a,b&amp;&amp;m.extend(this,b),this.timeStamp=a&amp;&amp;a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:bb,isPropagationStopped:bb,isImmediatePropagationStopped:bb,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ab,a&amp;&amp;(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ab,a&amp;&amp;(a.stopPropagation&amp;&amp;a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ab,a&amp;&amp;a.stopImmediatePropagation&amp;&amp;a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:&quot;mouseover&quot;,mouseleave:&quot;mouseout&quot;,pointerenter:&quot;pointerover&quot;,pointerleave:&quot;pointerout&quot;},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&amp;&amp;!m.contains(d,e))&amp;&amp;(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,&quot;form&quot;)?!1:void m.event.add(this,&quot;click._submit keypress._submit&quot;,function(a){var b=a.target,c=m.nodeName(b,&quot;input&quot;)||m.nodeName(b,&quot;button&quot;)?b.form:void 0;c&amp;&amp;!m._data(c,&quot;submitBubbles&quot;)&amp;&amp;(m.event.add(c,&quot;submit._submit&quot;,function(a){a._submit_bubble=!0}),m._data(c,&quot;submitBubbles&quot;,!0))})},postDispatch:function(a){a._submit_bubble&amp;&amp;(delete a._submit_bubble,this.parentNode&amp;&amp;!a.isTrigger&amp;&amp;m.event.simulate(&quot;submit&quot;,this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,&quot;form&quot;)?!1:void m.event.remove(this,&quot;._submit&quot;)}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?((&quot;checkbox&quot;===this.type||&quot;radio&quot;===this.type)&amp;&amp;(m.event.add(this,&quot;propertychange._change&quot;,function(a){&quot;checked&quot;===a.originalEvent.propertyName&amp;&amp;(this._just_changed=!0)}),m.event.add(this,&quot;click._change&quot;,function(a){this._just_changed&amp;&amp;!a.isTrigger&amp;&amp;(this._just_changed=!1),m.event.simulate(&quot;change&quot;,this,a,!0)})),!1):void m.event.add(this,&quot;beforeactivate._change&quot;,function(a){var b=a.target;X.test(b.nodeName)&amp;&amp;!m._data(b,&quot;changeBubbles&quot;)&amp;&amp;(m.event.add(b,&quot;change._change&quot;,function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate(&quot;change&quot;,this.parentNode,a,!0)}),m._data(b,&quot;changeBubbles&quot;,!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||&quot;radio&quot;!==b.type&amp;&amp;&quot;checkbox&quot;!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,&quot;._change&quot;),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:&quot;focusin&quot;,blur:&quot;focusout&quot;},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if(&quot;object&quot;==typeof a){&quot;string&quot;!=typeof b&amp;&amp;(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&amp;&amp;null==d?(d=b,c=b=void 0):null==d&amp;&amp;(&quot;string&quot;==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=bb;else if(!d)return this;return 1===e&amp;&amp;(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&amp;&amp;a.preventDefault&amp;&amp;a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+&quot;.&quot;+d.namespace:d.origType,d.selector,d.handler),this;if(&quot;object&quot;==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||&quot;function&quot;==typeof b)&amp;&amp;(c=b,b=void 0),c===!1&amp;&amp;(c=bb),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function db(a){var b=eb.split(&quot;|&quot;),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var eb=&quot;abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video&quot;,fb=/ jQuery\d+=&quot;(?:null|\d+)&quot;/g,gb=new RegExp(&quot;&lt;(?:&quot;+eb+&quot;)[\\s/&gt;]&quot;,&quot;i&quot;),hb=/^\s+/,ib=/&lt;(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^&gt;]*)\/&gt;/gi,jb=/&lt;([\w:]+)/,kb=/&lt;tbody/i,lb=/&lt;|&amp;#?\w+;/,mb=/&lt;(?:script|style|link)/i,nb=/checked\s*(?:[^=]|=\s*.checked.)/i,ob=/^$|\/(?:java|ecma)script/i,pb=/^true\/(.*)/,qb=/^\s*&lt;!(?:\[CDATA\[|--)|(?:\]\]|--)&gt;\s*$/g,rb={option:[1,&quot;&lt;select multiple='multiple'&gt;&quot;,&quot;&lt;/select&gt;&quot;],legend:[1,&quot;&lt;fieldset&gt;&quot;,&quot;&lt;/fieldset&gt;&quot;],area:[1,&quot;&lt;map&gt;&quot;,&quot;&lt;/map&gt;&quot;],param:[1,&quot;&lt;object&gt;&quot;,&quot;&lt;/object&gt;&quot;],thead:[1,&quot;&lt;table&gt;&quot;,&quot;&lt;/table&gt;&quot;],tr:[2,&quot;&lt;table&gt;&lt;tbody&gt;&quot;,&quot;&lt;/tbody&gt;&lt;/table&gt;&quot;],col:[2,&quot;&lt;table&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;colgroup&gt;&quot;,&quot;&lt;/colgroup&gt;&lt;/table&gt;&quot;],td:[3,&quot;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&quot;,&quot;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&quot;],_default:k.htmlSerialize?[0,&quot;&quot;,&quot;&quot;]:[1,&quot;X&lt;div&gt;&quot;,&quot;&lt;/div&gt;&quot;]},sb=db(y),tb=sb.appendChild(y.createElement(&quot;div&quot;));rb.optgroup=rb.option,rb.tbody=rb.tfoot=rb.colgroup=rb.caption=rb.thead,rb.th=rb.td;function ub(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||&quot;*&quot;):typeof a.querySelectorAll!==K?a.querySelectorAll(b||&quot;*&quot;):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ub(d,b));return void 0===b||b&amp;&amp;m.nodeName(a,b)?m.merge([a],f):f}function vb(a){W.test(a.type)&amp;&amp;(a.defaultChecked=a.checked)}function wb(a,b){return m.nodeName(a,&quot;table&quot;)&amp;&amp;m.nodeName(11!==b.nodeType?b:b.firstChild,&quot;tr&quot;)?a.getElementsByTagName(&quot;tbody&quot;)[0]||a.appendChild(a.ownerDocument.createElement(&quot;tbody&quot;)):a}function xb(a){return a.type=(null!==m.find.attr(a,&quot;type&quot;))+&quot;/&quot;+a.type,a}function yb(a){var b=pb.exec(a.type);return b?a.type=b[1]:a.removeAttribute(&quot;type&quot;),a}function zb(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,&quot;globalEval&quot;,!b||m._data(b[d],&quot;globalEval&quot;))}function Ab(a,b){if(1===b.nodeType&amp;&amp;m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e&gt;d;d++)m.event.add(b,c,h[c][d])}g.data&amp;&amp;(g.data=m.extend({},g.data))}}function Bb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&amp;&amp;b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}&quot;script&quot;===c&amp;&amp;b.text!==a.text?(xb(b).text=a.text,yb(b)):&quot;object&quot;===c?(b.parentNode&amp;&amp;(b.outerHTML=a.outerHTML),k.html5Clone&amp;&amp;a.innerHTML&amp;&amp;!m.trim(b.innerHTML)&amp;&amp;(b.innerHTML=a.innerHTML)):&quot;input&quot;===c&amp;&amp;W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&amp;&amp;(b.value=a.value)):&quot;option&quot;===c?b.defaultSelected=b.selected=a.defaultSelected:(&quot;input&quot;===c||&quot;textarea&quot;===c)&amp;&amp;(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!gb.test(&quot;&lt;&quot;+a.nodeName+&quot;&gt;&quot;)?f=a.cloneNode(!0):(tb.innerHTML=a.outerHTML,tb.removeChild(f=tb.firstChild)),!(k.noCloneEvent&amp;&amp;k.noCloneChecked||1!==a.nodeType&amp;&amp;11!==a.nodeType||m.isXMLDoc(a)))for(d=ub(f),h=ub(a),g=0;null!=(e=h[g]);++g)d[g]&amp;&amp;Bb(e,d[g]);if(b)if(c)for(h=h||ub(a),d=d||ub(f),g=0;null!=(e=h[g]);g++)Ab(e,d[g]);else Ab(a,f);return d=ub(f,&quot;script&quot;),d.length&gt;0&amp;&amp;zb(d,!i&amp;&amp;ub(a,&quot;script&quot;)),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=db(b),p=[],q=0;n&gt;q;q++)if(f=a[q],f||0===f)if(&quot;object&quot;===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(lb.test(f)){h=h||o.appendChild(b.createElement(&quot;div&quot;)),i=(jb.exec(f)||[&quot;&quot;,&quot;&quot;])[1].toLowerCase(),l=rb[i]||rb._default,h.innerHTML=l[1]+f.replace(ib,&quot;&lt;$1&gt;&lt;/$2&gt;&quot;)+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&amp;&amp;hb.test(f)&amp;&amp;p.push(b.createTextNode(hb.exec(f)[0])),!k.tbody){f=&quot;table&quot;!==i||kb.test(f)?&quot;&lt;table&gt;&quot;!==l[1]||kb.test(f)?0:h:h.firstChild,e=f&amp;&amp;f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],&quot;tbody&quot;)&amp;&amp;!j.childNodes.length&amp;&amp;f.removeChild(j)}m.merge(p,h.childNodes),h.textContent=&quot;&quot;;while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&amp;&amp;o.removeChild(h),k.appendChecked||m.grep(ub(p,&quot;input&quot;),vb),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&amp;&amp;(g=m.contains(f.ownerDocument,f),h=ub(o.appendChild(f),&quot;script&quot;),g&amp;&amp;zb(h),c)){e=0;while(f=h[e++])ob.test(f.type||&quot;&quot;)&amp;&amp;c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&amp;&amp;(f=d[i],g=f&amp;&amp;j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&amp;&amp;(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&amp;&amp;this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&amp;&amp;this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&amp;&amp;this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ub(c)),c.parentNode&amp;&amp;(b&amp;&amp;m.contains(c.ownerDocument,c)&amp;&amp;zb(ub(c,&quot;script&quot;)),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&amp;&amp;m.cleanData(ub(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&amp;&amp;m.nodeName(a,&quot;select&quot;)&amp;&amp;(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fb,&quot;&quot;):void 0;if(!(&quot;string&quot;!=typeof a||mb.test(a)||!k.htmlSerialize&amp;&amp;gb.test(a)||!k.leadingWhitespace&amp;&amp;hb.test(a)||rb[(jb.exec(a)||[&quot;&quot;,&quot;&quot;])[1].toLowerCase()])){a=a.replace(ib,&quot;&lt;$1&gt;&lt;/$2&gt;&quot;);try{for(;d&gt;c;c++)b=this[c]||{},1===b.nodeType&amp;&amp;(m.cleanData(ub(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&amp;&amp;this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ub(this)),a&amp;&amp;a.replaceChild(b,this)}),a&amp;&amp;(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l&gt;1&amp;&amp;&quot;string&quot;==typeof p&amp;&amp;!k.checkClone&amp;&amp;nb.test(p))return this.each(function(c){var d=n.eq(c);q&amp;&amp;(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&amp;&amp;(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&amp;&amp;(i=c),c)){for(g=m.map(ub(i,&quot;script&quot;),xb),f=g.length;l&gt;j;j++)d=i,j!==o&amp;&amp;(d=m.clone(d,!0,!0),f&amp;&amp;m.merge(g,ub(d,&quot;script&quot;))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,yb),j=0;f&gt;j;j++)d=g[j],ob.test(d.type||&quot;&quot;)&amp;&amp;!m._data(d,&quot;globalEval&quot;)&amp;&amp;m.contains(h,d)&amp;&amp;(d.src?m._evalUrl&amp;&amp;m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||&quot;&quot;).replace(qb,&quot;&quot;)));i=c=null}return this}}),m.each({appendTo:&quot;append&quot;,prependTo:&quot;prepend&quot;,insertBefore:&quot;before&quot;,insertAfter:&quot;after&quot;,replaceAll:&quot;replaceWith&quot;},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h&gt;=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Cb,Db={};function Eb(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&amp;&amp;(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],&quot;display&quot;);return e.detach(),f}function Fb(a){var b=y,c=Db[a];return c||(c=Eb(a,b),&quot;none&quot;!==c&amp;&amp;c||(Cb=(Cb||m(&quot;&lt;iframe frameborder='0' width='0' height='0'/&gt;&quot;)).appendTo(b.documentElement),b=(Cb[0].contentWindow||Cb[0].contentDocument).document,b.write(),b.close(),c=Eb(a,b),Cb.detach()),Db[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return c=y.getElementsByTagName(&quot;body&quot;)[0],c&amp;&amp;c.style?(b=y.createElement(&quot;div&quot;),d=y.createElement(&quot;div&quot;),d.style.cssText=&quot;position:absolute;border:0;width:0;height:0;top:0;left:-9999px&quot;,c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&amp;&amp;(b.style.cssText=&quot;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1&quot;,b.appendChild(y.createElement(&quot;div&quot;)).style.width=&quot;5px&quot;,a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Gb=/^margin/,Hb=new RegExp(&quot;^(&quot;+S+&quot;)(?!px)[a-z%]+$&quot;,&quot;i&quot;),Ib,Jb,Kb=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ib=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},Jb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ib(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&amp;&amp;(&quot;&quot;!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Hb.test(g)&amp;&amp;Gb.test(b)&amp;&amp;(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+&quot;&quot;}):y.documentElement.currentStyle&amp;&amp;(Ib=function(a){return a.currentStyle},Jb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ib(a),g=c?c[b]:void 0,null==g&amp;&amp;h&amp;&amp;h[b]&amp;&amp;(g=h[b]),Hb.test(g)&amp;&amp;!Kb.test(b)&amp;&amp;(d=h.left,e=a.runtimeStyle,f=e&amp;&amp;e.left,f&amp;&amp;(e.left=a.currentStyle.left),h.left=&quot;fontSize&quot;===b?&quot;1em&quot;:g,g=h.pixelLeft+&quot;px&quot;,h.left=d,f&amp;&amp;(e.left=f)),void 0===g?g:g+&quot;&quot;||&quot;auto&quot;});function Lb(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement(&quot;div&quot;),b.innerHTML=&quot;  &lt;link/&gt;&lt;table&gt;&lt;/table&gt;&lt;a href='/a'&gt;a&lt;/a&gt;&lt;input type='checkbox'/&gt;&quot;,d=b.getElementsByTagName(&quot;a&quot;)[0],c=d&amp;&amp;d.style){c.cssText=&quot;float:left;opacity:.5&quot;,k.opacity=&quot;0.5&quot;===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip=&quot;content-box&quot;,b.cloneNode(!0).style.backgroundClip=&quot;&quot;,k.clearCloneStyle=&quot;content-box&quot;===b.style.backgroundClip,k.boxSizing=&quot;&quot;===c.boxSizing||&quot;&quot;===c.MozBoxSizing||&quot;&quot;===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&amp;&amp;i(),g},boxSizingReliable:function(){return null==f&amp;&amp;i(),f},pixelPosition:function(){return null==e&amp;&amp;i(),e},reliableMarginRight:function(){return null==h&amp;&amp;i(),h}});function i(){var b,c,d,i;c=y.getElementsByTagName(&quot;body&quot;)[0],c&amp;&amp;c.style&amp;&amp;(b=y.createElement(&quot;div&quot;),d=y.createElement(&quot;div&quot;),d.style.cssText=&quot;position:absolute;border:0;width:0;height:0;top:0;left:-9999px&quot;,c.appendChild(d).appendChild(b),b.style.cssText=&quot;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute&quot;,e=f=!1,h=!0,a.getComputedStyle&amp;&amp;(e=&quot;1%&quot;!==(a.getComputedStyle(b,null)||{}).top,f=&quot;4px&quot;===(a.getComputedStyle(b,null)||{width:&quot;4px&quot;}).width,i=b.appendChild(y.createElement(&quot;div&quot;)),i.style.cssText=b.style.cssText=&quot;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0&quot;,i.style.marginRight=i.style.width=&quot;0&quot;,b.style.width=&quot;1px&quot;,h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight)),b.innerHTML=&quot;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;t&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&quot;,i=b.getElementsByTagName(&quot;td&quot;),i[0].style.cssText=&quot;margin:0;border:0;padding:0;display:none&quot;,g=0===i[0].offsetHeight,g&amp;&amp;(i[0].style.display=&quot;&quot;,i[1].style.display=&quot;none&quot;,g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Mb=/alpha\([^)]*\)/i,Nb=/opacity\s*=\s*([^)]*)/,Ob=/^(none|table(?!-c[ea]).+)/,Pb=new RegExp(&quot;^(&quot;+S+&quot;)(.*)$&quot;,&quot;i&quot;),Qb=new RegExp(&quot;^([+-])=(&quot;+S+&quot;)&quot;,&quot;i&quot;),Rb={position:&quot;absolute&quot;,visibility:&quot;hidden&quot;,display:&quot;block&quot;},Sb={letterSpacing:&quot;0&quot;,fontWeight:&quot;400&quot;},Tb=[&quot;Webkit&quot;,&quot;O&quot;,&quot;Moz&quot;,&quot;ms&quot;];function Ub(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Tb.length;while(e--)if(b=Tb[e]+c,b in a)return b;return d}function Vb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h&gt;g;g++)d=a[g],d.style&amp;&amp;(f[g]=m._data(d,&quot;olddisplay&quot;),c=d.style.display,b?(f[g]||&quot;none&quot;!==c||(d.style.display=&quot;&quot;),&quot;&quot;===d.style.display&amp;&amp;U(d)&amp;&amp;(f[g]=m._data(d,&quot;olddisplay&quot;,Fb(d.nodeName)))):(e=U(d),(c&amp;&amp;&quot;none&quot;!==c||!e)&amp;&amp;m._data(d,&quot;olddisplay&quot;,e?c:m.css(d,&quot;display&quot;))));for(g=0;h&gt;g;g++)d=a[g],d.style&amp;&amp;(b&amp;&amp;&quot;none&quot;!==d.style.display&amp;&amp;&quot;&quot;!==d.style.display||(d.style.display=b?f[g]||&quot;&quot;:&quot;none&quot;));return a}function Wb(a,b,c){var d=Pb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||&quot;px&quot;):b}function Xb(a,b,c,d,e){for(var f=c===(d?&quot;border&quot;:&quot;content&quot;)?4:&quot;width&quot;===b?1:0,g=0;4&gt;f;f+=2)&quot;margin&quot;===c&amp;&amp;(g+=m.css(a,c+T[f],!0,e)),d?(&quot;content&quot;===c&amp;&amp;(g-=m.css(a,&quot;padding&quot;+T[f],!0,e)),&quot;margin&quot;!==c&amp;&amp;(g-=m.css(a,&quot;border&quot;+T[f]+&quot;Width&quot;,!0,e))):(g+=m.css(a,&quot;padding&quot;+T[f],!0,e),&quot;padding&quot;!==c&amp;&amp;(g+=m.css(a,&quot;border&quot;+T[f]+&quot;Width&quot;,!0,e)));return g}function Yb(a,b,c){var d=!0,e=&quot;width&quot;===b?a.offsetWidth:a.offsetHeight,f=Ib(a),g=k.boxSizing&amp;&amp;&quot;border-box&quot;===m.css(a,&quot;boxSizing&quot;,!1,f);if(0&gt;=e||null==e){if(e=Jb(a,b,f),(0&gt;e||null==e)&amp;&amp;(e=a.style[b]),Hb.test(e))return e;d=g&amp;&amp;(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xb(a,b,c||(g?&quot;border&quot;:&quot;content&quot;),d,f)+&quot;px&quot;}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Jb(a,&quot;opacity&quot;);return&quot;&quot;===c?&quot;1&quot;:c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{&quot;float&quot;:k.cssFloat?&quot;cssFloat&quot;:&quot;styleFloat&quot;},style:function(a,b,c,d){if(a&amp;&amp;3!==a.nodeType&amp;&amp;8!==a.nodeType&amp;&amp;a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ub(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c)return g&amp;&amp;&quot;get&quot;in g&amp;&amp;void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,&quot;string&quot;===f&amp;&amp;(e=Qb.exec(c))&amp;&amp;(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f=&quot;number&quot;),null!=c&amp;&amp;c===c&amp;&amp;(&quot;number&quot;!==f||m.cssNumber[h]||(c+=&quot;px&quot;),k.clearCloneStyle||&quot;&quot;!==c||0!==b.indexOf(&quot;background&quot;)||(i[b]=&quot;inherit&quot;),!(g&amp;&amp;&quot;set&quot;in g&amp;&amp;void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ub(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&amp;&amp;&quot;get&quot;in g&amp;&amp;(f=g.get(a,!0,c)),void 0===f&amp;&amp;(f=Jb(a,b,d)),&quot;normal&quot;===f&amp;&amp;b in Sb&amp;&amp;(f=Sb[b]),&quot;&quot;===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each([&quot;height&quot;,&quot;width&quot;],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Ob.test(m.css(a,&quot;display&quot;))&amp;&amp;0===a.offsetWidth?m.swap(a,Rb,function(){return Yb(a,b,d)}):Yb(a,b,d):void 0},set:function(a,c,d){var e=d&amp;&amp;Ib(a);return Wb(a,c,d?Xb(a,b,d,k.boxSizing&amp;&amp;&quot;border-box&quot;===m.css(a,&quot;boxSizing&quot;,!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Nb.test((b&amp;&amp;a.currentStyle?a.currentStyle.filter:a.style.filter)||&quot;&quot;)?.01*parseFloat(RegExp.$1)+&quot;&quot;:b?&quot;1&quot;:&quot;&quot;},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?&quot;alpha(opacity=&quot;+100*b+&quot;)&quot;:&quot;&quot;,f=d&amp;&amp;d.filter||c.filter||&quot;&quot;;c.zoom=1,(b&gt;=1||&quot;&quot;===b)&amp;&amp;&quot;&quot;===m.trim(f.replace(Mb,&quot;&quot;))&amp;&amp;c.removeAttribute&amp;&amp;(c.removeAttribute(&quot;filter&quot;),&quot;&quot;===b||d&amp;&amp;!d.filter)||(c.filter=Mb.test(f)?f.replace(Mb,e):f+&quot; &quot;+e)}}),m.cssHooks.marginRight=Lb(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:&quot;inline-block&quot;},Jb,[a,&quot;marginRight&quot;]):void 0}),m.each({margin:&quot;&quot;,padding:&quot;&quot;,border:&quot;Width&quot;},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f=&quot;string&quot;==typeof c?c.split(&quot; &quot;):[c];4&gt;d;d++)e[a+T[d]+b]=f[d]||f[d-2]||f[0];return e}},Gb.test(a)||(m.cssHooks[a+b].set=Wb)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ib(a),e=b.length;e&gt;g;g++)f[b[g]]=m.css(a,b[g],!1,d);return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length&gt;1)},show:function(){return Vb(this,!0)},hide:function(){return Vb(this)},toggle:function(a){return&quot;boolean&quot;==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Zb(a,b,c,d,e){return new Zb.prototype.init(a,b,c,d,e)}m.Tween=Zb,Zb.prototype={constructor:Zb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||&quot;swing&quot;,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?&quot;&quot;:&quot;px&quot;)
+},cur:function(){var a=Zb.propHooks[this.prop];return a&amp;&amp;a.get?a.get(this):Zb.propHooks._default.get(this)},run:function(a){var b,c=Zb.propHooks[this.prop];return this.pos=b=this.options.duration?m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&amp;&amp;this.options.step.call(this.elem,this.now,this),c&amp;&amp;c.set?c.set(this):Zb.propHooks._default.set(this),this}},Zb.prototype.init.prototype=Zb.prototype,Zb.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&amp;&amp;null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,&quot;&quot;),b&amp;&amp;&quot;auto&quot;!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&amp;&amp;(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Zb.propHooks.scrollTop=Zb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&amp;&amp;a.elem.parentNode&amp;&amp;(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Zb.prototype.init,m.fx.step={};var $b,_b,ac=/^(?:toggle|show|hide)$/,bc=new RegExp(&quot;^(?:([+-])=|)(&quot;+S+&quot;)([a-z%]*)$&quot;,&quot;i&quot;),cc=/queueHooks$/,dc=[ic],ec={&quot;*&quot;:[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bc.exec(b),f=e&amp;&amp;e[3]||(m.cssNumber[a]?&quot;&quot;:&quot;px&quot;),g=(m.cssNumber[a]||&quot;px&quot;!==f&amp;&amp;+d)&amp;&amp;bc.exec(m.css(c.elem,a)),h=1,i=20;if(g&amp;&amp;g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||&quot;.5&quot;,g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&amp;&amp;1!==h&amp;&amp;--i)}return e&amp;&amp;(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fc(){return setTimeout(function(){$b=void 0}),$b=m.now()}function gc(a,b){var c,d={height:a},e=0;for(b=b?1:0;4&gt;e;e+=2-b)c=T[e],d[&quot;margin&quot;+c]=d[&quot;padding&quot;+c]=a;return b&amp;&amp;(d.opacity=d.width=a),d}function hc(a,b,c){for(var d,e=(ec[b]||[]).concat(ec[&quot;*&quot;]),f=0,g=e.length;g&gt;f;f++)if(d=e[f].call(c,b,a))return d}function ic(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&amp;&amp;U(a),r=m._data(a,&quot;fxshow&quot;);c.queue||(h=m._queueHooks(a,&quot;fx&quot;),null==h.unqueued&amp;&amp;(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,&quot;fx&quot;).length||h.empty.fire()})})),1===a.nodeType&amp;&amp;(&quot;height&quot;in b||&quot;width&quot;in b)&amp;&amp;(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,&quot;display&quot;),l=&quot;none&quot;===j?m._data(a,&quot;olddisplay&quot;)||Fb(a.nodeName):j,&quot;inline&quot;===l&amp;&amp;&quot;none&quot;===m.css(a,&quot;float&quot;)&amp;&amp;(k.inlineBlockNeedsLayout&amp;&amp;&quot;inline&quot;!==Fb(a.nodeName)?p.zoom=1:p.display=&quot;inline-block&quot;)),c.overflow&amp;&amp;(p.overflow=&quot;hidden&quot;,k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ac.exec(e)){if(delete b[d],f=f||&quot;toggle&quot;===e,e===(q?&quot;hide&quot;:&quot;show&quot;)){if(&quot;show&quot;!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&amp;&amp;r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))&quot;inline&quot;===(&quot;none&quot;===j?Fb(a.nodeName):j)&amp;&amp;(p.display=j);else{r?&quot;hidden&quot;in r&amp;&amp;(q=r.hidden):r=m._data(a,&quot;fxshow&quot;,{}),f&amp;&amp;(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,&quot;fxshow&quot;);for(b in o)m.style(a,b,o[b])});for(d in o)g=hc(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&amp;&amp;(g.end=g.start,g.start=&quot;width&quot;===d||&quot;height&quot;===d?1:0))}}function jc(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&amp;&amp;(e=f[1],f=a[c]=f[0]),c!==d&amp;&amp;(a[d]=f,delete a[c]),g=m.cssHooks[d],g&amp;&amp;&quot;expand&quot;in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kc(a,b,c){var d,e,f=0,g=dc.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$b||fc(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i&gt;g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1&gt;f&amp;&amp;i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$b||fc(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d&gt;c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jc(k,j.opts.specialEasing);g&gt;f;f++)if(d=dc[f].call(j,a,k,j.opts))return d;return m.map(k,hc,j),m.isFunction(j.opts.start)&amp;&amp;j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kc,{tweener:function(a,b){m.isFunction(a)?(b=a,a=[&quot;*&quot;]):a=a.split(&quot; &quot;);for(var c,d=0,e=a.length;e&gt;d;d++)c=a[d],ec[c]=ec[c]||[],ec[c].unshift(b)},prefilter:function(a,b){b?dc.unshift(a):dc.push(a)}}),m.speed=function(a,b,c){var d=a&amp;&amp;&quot;object&quot;==typeof a?m.extend({},a):{complete:c||!c&amp;&amp;b||m.isFunction(a)&amp;&amp;a,duration:a,easing:c&amp;&amp;b||b&amp;&amp;!m.isFunction(b)&amp;&amp;b};return d.duration=m.fx.off?0:&quot;number&quot;==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&amp;&amp;(d.queue=&quot;fx&quot;),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&amp;&amp;d.old.call(this),d.queue&amp;&amp;m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css(&quot;opacity&quot;,0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kc(this,m.extend({},a),f);(e||m._data(this,&quot;finish&quot;))&amp;&amp;b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return&quot;string&quot;!=typeof a&amp;&amp;(c=b,b=a,a=void 0),b&amp;&amp;a!==!1&amp;&amp;this.queue(a||&quot;fx&quot;,[]),this.each(function(){var b=!0,e=null!=a&amp;&amp;a+&quot;queueHooks&quot;,f=m.timers,g=m._data(this);if(e)g[e]&amp;&amp;g[e].stop&amp;&amp;d(g[e]);else for(e in g)g[e]&amp;&amp;g[e].stop&amp;&amp;cc.test(e)&amp;&amp;d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&amp;&amp;f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&amp;&amp;m.dequeue(this,a)})},finish:function(a){return a!==!1&amp;&amp;(a=a||&quot;fx&quot;),this.each(function(){var b,c=m._data(this),d=c[a+&quot;queue&quot;],e=c[a+&quot;queueHooks&quot;],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&amp;&amp;e.stop&amp;&amp;e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&amp;&amp;f[b].queue===a&amp;&amp;(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g&gt;b;b++)d[b]&amp;&amp;d[b].finish&amp;&amp;d[b].finish.call(this);delete c.finish})}}),m.each([&quot;toggle&quot;,&quot;show&quot;,&quot;hide&quot;],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||&quot;boolean&quot;==typeof a?c.apply(this,arguments):this.animate(gc(b,!0),a,d,e)}}),m.each({slideDown:gc(&quot;show&quot;),slideUp:gc(&quot;hide&quot;),slideToggle:gc(&quot;toggle&quot;),fadeIn:{opacity:&quot;show&quot;},fadeOut:{opacity:&quot;hide&quot;},fadeToggle:{opacity:&quot;toggle&quot;}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($b=m.now();c&lt;b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||m.fx.stop(),$b=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_b||(_b=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_b),_b=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||&quot;fx&quot;,this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement(&quot;div&quot;),b.setAttribute(&quot;className&quot;,&quot;t&quot;),b.innerHTML=&quot;  &lt;link/&gt;&lt;table&gt;&lt;/table&gt;&lt;a href='/a'&gt;a&lt;/a&gt;&lt;input type='checkbox'/&gt;&quot;,d=b.getElementsByTagName(&quot;a&quot;)[0],c=y.createElement(&quot;select&quot;),e=c.appendChild(y.createElement(&quot;option&quot;)),a=b.getElementsByTagName(&quot;input&quot;)[0],d.style.cssText=&quot;top:1px&quot;,k.getSetAttribute=&quot;t&quot;!==b.className,k.style=/top/.test(d.getAttribute(&quot;style&quot;)),k.hrefNormalized=&quot;/a&quot;===d.getAttribute(&quot;href&quot;),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement(&quot;form&quot;).enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement(&quot;input&quot;),a.setAttribute(&quot;value&quot;,&quot;&quot;),k.input=&quot;&quot;===a.getAttribute(&quot;value&quot;),a.value=&quot;t&quot;,a.setAttribute(&quot;type&quot;,&quot;radio&quot;),k.radioValue=&quot;t&quot;===a.value}();var lc=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&amp;&amp;(e=d?a.call(this,c,m(this).val()):a,null==e?e=&quot;&quot;:&quot;number&quot;==typeof e?e+=&quot;&quot;:m.isArray(e)&amp;&amp;(e=m.map(e,function(a){return null==a?&quot;&quot;:a+&quot;&quot;})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&amp;&amp;&quot;set&quot;in b&amp;&amp;void 0!==b.set(this,e,&quot;value&quot;)||(this.value=e))});if(e)return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&amp;&amp;&quot;get&quot;in b&amp;&amp;void 0!==(c=b.get(e,&quot;value&quot;))?c:(c=e.value,&quot;string&quot;==typeof c?c.replace(lc,&quot;&quot;):null==c?&quot;&quot;:c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,&quot;value&quot;);return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f=&quot;select-one&quot;===a.type||0&gt;e,g=f?null:[],h=f?e+1:d.length,i=0&gt;e?h:f?e:0;h&gt;i;i++)if(c=d[i],!(!c.selected&amp;&amp;i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute(&quot;disabled&quot;))||c.parentNode.disabled&amp;&amp;m.nodeName(c.parentNode,&quot;optgroup&quot;))){if(b=m(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--)if(d=e[g],m.inArray(m.valHooks.option.get(d),f)&gt;=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),m.each([&quot;radio&quot;,&quot;checkbox&quot;],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)&gt;=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute(&quot;value&quot;)?&quot;on&quot;:a.value})});var mc,nc,oc=m.expr.attrHandle,pc=/^(?:checked|selected)$/i,qc=k.getSetAttribute,rc=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length&gt;1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&amp;&amp;3!==f&amp;&amp;8!==f&amp;&amp;2!==f)return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&amp;&amp;m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nc:mc)),void 0===c?d&amp;&amp;&quot;get&quot;in d&amp;&amp;null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&amp;&amp;&quot;set&quot;in d&amp;&amp;void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+&quot;&quot;),c):void m.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&amp;&amp;b.match(E);if(f&amp;&amp;1===a.nodeType)while(c=f[e++])d=m.propFix[c]||c,m.expr.match.bool.test(c)?rc&amp;&amp;qc||!pc.test(c)?a[d]=!1:a[m.camelCase(&quot;default-&quot;+c)]=a[d]=!1:m.attr(a,c,&quot;&quot;),a.removeAttribute(qc?c:d)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&amp;&amp;&quot;radio&quot;===b&amp;&amp;m.nodeName(a,&quot;input&quot;)){var c=a.value;return a.setAttribute(&quot;type&quot;,b),c&amp;&amp;(a.value=c),b}}}}}),nc={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rc&amp;&amp;qc||!pc.test(c)?a.setAttribute(!qc&amp;&amp;m.propFix[c]||c,c):a[m.camelCase(&quot;default-&quot;+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=oc[b]||m.find.attr;oc[b]=rc&amp;&amp;qc||!pc.test(b)?function(a,b,d){var e,f;return d||(f=oc[b],oc[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,oc[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase(&quot;default-&quot;+b)]?b.toLowerCase():null}}),rc&amp;&amp;qc||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,&quot;input&quot;)?void(a.defaultValue=b):mc&amp;&amp;mc.set(a,b,c)}}),qc||(mc={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+=&quot;&quot;,&quot;value&quot;===c||b===a.getAttribute(c)?b:void 0}},oc.id=oc.name=oc.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&amp;&amp;&quot;&quot;!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&amp;&amp;c.specified?c.value:void 0},set:mc.set},m.attrHooks.contenteditable={set:function(a,b,c){mc.set(a,&quot;&quot;===b?!1:b,c)}},m.each([&quot;width&quot;,&quot;height&quot;],function(a,b){m.attrHooks[b]={set:function(a,c){return&quot;&quot;===c?(a.setAttribute(b,&quot;auto&quot;),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+&quot;&quot;}});var sc=/^(?:input|select|textarea|button|object)$/i,tc=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length&gt;1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{&quot;for&quot;:&quot;htmlFor&quot;,&quot;class&quot;:&quot;className&quot;},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&amp;&amp;3!==g&amp;&amp;8!==g&amp;&amp;2!==g)return f=1!==g||!m.isXMLDoc(a),f&amp;&amp;(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&amp;&amp;&quot;set&quot;in e&amp;&amp;void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&amp;&amp;&quot;get&quot;in e&amp;&amp;null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,&quot;tabindex&quot;);return b?parseInt(b,10):sc.test(a.nodeName)||tc.test(a.nodeName)&amp;&amp;a.href?0:-1}}}}),k.hrefNormalized||m.each([&quot;href&quot;,&quot;src&quot;],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&amp;&amp;(b.selectedIndex,b.parentNode&amp;&amp;b.parentNode.selectedIndex),null}}),m.each([&quot;tabIndex&quot;,&quot;readOnly&quot;,&quot;maxLength&quot;,&quot;cellSpacing&quot;,&quot;cellPadding&quot;,&quot;rowSpan&quot;,&quot;colSpan&quot;,&quot;useMap&quot;,&quot;frameBorder&quot;,&quot;contentEditable&quot;],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype=&quot;encoding&quot;);var uc=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=&quot;string&quot;==typeof a&amp;&amp;a;if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||&quot;&quot;).match(E)||[];i&gt;h;h++)if(c=this[h],d=1===c.nodeType&amp;&amp;(c.className?(&quot; &quot;+c.className+&quot; &quot;).replace(uc,&quot; &quot;):&quot; &quot;)){f=0;while(e=b[f++])d.indexOf(&quot; &quot;+e+&quot; &quot;)&lt;0&amp;&amp;(d+=e+&quot; &quot;);g=m.trim(d),c.className!==g&amp;&amp;(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||&quot;string&quot;==typeof a&amp;&amp;a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||&quot;&quot;).match(E)||[];i&gt;h;h++)if(c=this[h],d=1===c.nodeType&amp;&amp;(c.className?(&quot; &quot;+c.className+&quot; &quot;).replace(uc,&quot; &quot;):&quot;&quot;)){f=0;while(e=b[f++])while(d.indexOf(&quot; &quot;+e+&quot; &quot;)&gt;=0)d=d.replace(&quot; &quot;+e+&quot; &quot;,&quot; &quot;);g=a?m.trim(d):&quot;&quot;,c.className!==g&amp;&amp;(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return&quot;boolean&quot;==typeof b&amp;&amp;&quot;string&quot;===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if(&quot;string&quot;===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===K||&quot;boolean&quot;===c)&amp;&amp;(this.className&amp;&amp;m._data(this,&quot;__className__&quot;,this.className),this.className=this.className||a===!1?&quot;&quot;:m._data(this,&quot;__className__&quot;)||&quot;&quot;)})},hasClass:function(a){for(var b=&quot; &quot;+a+&quot; &quot;,c=0,d=this.length;d&gt;c;c++)if(1===this[c].nodeType&amp;&amp;(&quot; &quot;+this[c].className+&quot; &quot;).replace(uc,&quot; &quot;).indexOf(b)&gt;=0)return!0;return!1}}),m.each(&quot;blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu&quot;.split(&quot; &quot;),function(a,b){m.fn[b]=function(a,c){return arguments.length&gt;0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,&quot;**&quot;):this.off(b,a||&quot;**&quot;,c)}});var vc=m.now(),wc=/\?/,xc=/(,)|(\[|{)|(}|])|&quot;(?:[^&quot;\\\r\n]|\\[&quot;\\\/bfnrt]|\\u[\da-fA-F]{4})*&quot;\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&amp;&amp;a.JSON.parse)return a.JSON.parse(b+&quot;&quot;);var c,d=null,e=m.trim(b+&quot;&quot;);return e&amp;&amp;!m.trim(e.replace(xc,function(a,b,e,f){return c&amp;&amp;b&amp;&amp;(d=0),0===d?a:(c=e||b,d+=!f-!e,&quot;&quot;)}))?Function(&quot;return &quot;+e)():m.error(&quot;Invalid JSON: &quot;+b)},m.parseXML=function(b){var c,d;if(!b||&quot;string&quot;!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,&quot;text/xml&quot;)):(c=new ActiveXObject(&quot;Microsoft.XMLDOM&quot;),c.async=&quot;false&quot;,c.loadXML(b))}catch(e){c=void 0}return c&amp;&amp;c.documentElement&amp;&amp;!c.getElementsByTagName(&quot;parsererror&quot;).length||m.error(&quot;Invalid XML: &quot;+b),c};var yc,zc,Ac=/#.*$/,Bc=/([?&amp;])_=[^&amp;]*/,Cc=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Dc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ec=/^(?:GET|HEAD)$/,Fc=/^\/\//,Gc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hc={},Ic={},Jc=&quot;*/&quot;.concat(&quot;*&quot;);try{zc=location.href}catch(Kc){zc=y.createElement(&quot;a&quot;),zc.href=&quot;&quot;,zc=zc.href}yc=Gc.exec(zc.toLowerCase())||[];function Lc(a){return function(b,c){&quot;string&quot;!=typeof b&amp;&amp;(c=b,b=&quot;*&quot;);var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c))while(d=f[e++])&quot;+&quot;===d.charAt(0)?(d=d.slice(1)||&quot;*&quot;,(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Mc(a,b,c,d){var e={},f=a===Ic;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return&quot;string&quot;!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e[&quot;*&quot;]&amp;&amp;g(&quot;*&quot;)}function Nc(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&amp;&amp;((e[d]?a:c||(c={}))[d]=b[d]);return c&amp;&amp;m.extend(!0,a,c),a}function Oc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while(&quot;*&quot;===i[0])i.shift(),void 0===e&amp;&amp;(e=a.mimeType||b.getResponseHeader(&quot;Content-Type&quot;));if(e)for(g in h)if(h[g]&amp;&amp;h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+&quot; &quot;+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&amp;&amp;i.unshift(f),c[f]):void 0}function Pc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&amp;&amp;(c[a.responseFields[f]]=b),!i&amp;&amp;d&amp;&amp;a.dataFilter&amp;&amp;(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if(&quot;*&quot;===f)f=i;else if(&quot;*&quot;!==i&amp;&amp;i!==f){if(g=j[i+&quot; &quot;+f]||j[&quot;* &quot;+f],!g)for(e in j)if(h=e.split(&quot; &quot;),h[1]===f&amp;&amp;(g=j[i+&quot; &quot;+h[0]]||j[&quot;* &quot;+h[0]])){g===!0?g=j[e]:j[e]!==!0&amp;&amp;(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&amp;&amp;a[&quot;throws&quot;])b=g(b);else try{b=g(b)}catch(l){return{state:&quot;parsererror&quot;,error:g?l:&quot;No conversion from &quot;+i+&quot; to &quot;+f}}}return{state:&quot;success&quot;,data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zc,type:&quot;GET&quot;,isLocal:Dc.test(yc[1]),global:!0,processData:!0,async:!0,contentType:&quot;application/x-www-form-urlencoded; charset=UTF-8&quot;,accepts:{&quot;*&quot;:Jc,text:&quot;text/plain&quot;,html:&quot;text/html&quot;,xml:&quot;application/xml, text/xml&quot;,json:&quot;application/json, text/javascript&quot;},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:&quot;responseXML&quot;,text:&quot;responseText&quot;,json:&quot;responseJSON&quot;},converters:{&quot;* text&quot;:String,&quot;text html&quot;:!0,&quot;text json&quot;:m.parseJSON,&quot;text xml&quot;:m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nc(Nc(a,m.ajaxSettings),b):Nc(m.ajaxSettings,a)},ajaxPrefilter:Lc(Hc),ajaxTransport:Lc(Ic),ajax:function(a,b){&quot;object&quot;==typeof a&amp;&amp;(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&amp;&amp;(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks(&quot;once memory&quot;),q=k.statusCode||{},r={},s={},t=0,u=&quot;canceled&quot;,v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cc.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2&gt;t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&amp;&amp;i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zc)+&quot;&quot;).replace(Ac,&quot;&quot;).replace(Fc,yc[1]+&quot;//&quot;),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||&quot;*&quot;).toLowerCase().match(E)||[&quot;&quot;],null==k.crossDomain&amp;&amp;(c=Gc.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yc[1]&amp;&amp;c[2]===yc[2]&amp;&amp;(c[3]||(&quot;http:&quot;===c[1]?&quot;80&quot;:&quot;443&quot;))===(yc[3]||(&quot;http:&quot;===yc[1]?&quot;80&quot;:&quot;443&quot;)))),k.data&amp;&amp;k.processData&amp;&amp;&quot;string&quot;!=typeof k.data&amp;&amp;(k.data=m.param(k.data,k.traditional)),Mc(Hc,k,b,v),2===t)return v;h=k.global,h&amp;&amp;0===m.active++&amp;&amp;m.event.trigger(&quot;ajaxStart&quot;),k.type=k.type.toUpperCase(),k.hasContent=!Ec.test(k.type),e=k.url,k.hasContent||(k.data&amp;&amp;(e=k.url+=(wc.test(e)?&quot;&amp;&quot;:&quot;?&quot;)+k.data,delete k.data),k.cache===!1&amp;&amp;(k.url=Bc.test(e)?e.replace(Bc,&quot;$1_=&quot;+vc++):e+(wc.test(e)?&quot;&amp;&quot;:&quot;?&quot;)+&quot;_=&quot;+vc++)),k.ifModified&amp;&amp;(m.lastModified[e]&amp;&amp;v.setRequestHeader(&quot;If-Modified-Since&quot;,m.lastModified[e]),m.etag[e]&amp;&amp;v.setRequestHeader(&quot;If-None-Match&quot;,m.etag[e])),(k.data&amp;&amp;k.hasContent&amp;&amp;k.contentType!==!1||b.contentType)&amp;&amp;v.setRequestHeader(&quot;Content-Type&quot;,k.contentType),v.setRequestHeader(&quot;Accept&quot;,k.dataTypes[0]&amp;&amp;k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+(&quot;*&quot;!==k.dataTypes[0]?&quot;, &quot;+Jc+&quot;; q=0.01&quot;:&quot;&quot;):k.accepts[&quot;*&quot;]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&amp;&amp;(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u=&quot;abort&quot;;for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Mc(Ic,k,b,v)){v.readyState=1,h&amp;&amp;n.trigger(&quot;ajaxSend&quot;,[v,k]),k.async&amp;&amp;k.timeout&gt;0&amp;&amp;(g=setTimeout(function(){v.abort(&quot;timeout&quot;)},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2&gt;t))throw w;x(-1,w)}}else x(-1,&quot;No Transport&quot;);function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&amp;&amp;(t=2,g&amp;&amp;clearTimeout(g),i=void 0,f=d||&quot;&quot;,v.readyState=a&gt;0?4:0,j=a&gt;=200&amp;&amp;300&gt;a||304===a,c&amp;&amp;(u=Oc(k,v,c)),u=Pc(k,u,v,j),j?(k.ifModified&amp;&amp;(w=v.getResponseHeader(&quot;Last-Modified&quot;),w&amp;&amp;(m.lastModified[e]=w),w=v.getResponseHeader(&quot;etag&quot;),w&amp;&amp;(m.etag[e]=w)),204===a||&quot;HEAD&quot;===k.type?x=&quot;nocontent&quot;:304===a?x=&quot;notmodified&quot;:(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&amp;&amp;(x=&quot;error&quot;,0&gt;a&amp;&amp;(a=0))),v.status=a,v.statusText=(b||x)+&quot;&quot;,j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&amp;&amp;n.trigger(j?&quot;ajaxSuccess&quot;:&quot;ajaxError&quot;,[v,k,j?r:s]),p.fireWith(l,[v,x]),h&amp;&amp;(n.trigger(&quot;ajaxComplete&quot;,[v,k]),--m.active||m.event.trigger(&quot;ajaxStop&quot;)))}return v},getJSON:function(a,b,c){return m.get(a,b,c,&quot;json&quot;)},getScript:function(a,b){return m.get(a,void 0,b,&quot;script&quot;)}}),m.each([&quot;get&quot;,&quot;post&quot;],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&amp;&amp;(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m.each([&quot;ajaxStart&quot;,&quot;ajaxStop&quot;,&quot;ajaxComplete&quot;,&quot;ajaxError&quot;,&quot;ajaxSuccess&quot;,&quot;ajaxSend&quot;],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m._evalUrl=function(a){return m.ajax({url:a,type:&quot;GET&quot;,dataType:&quot;script&quot;,async:!1,global:!1,&quot;throws&quot;:!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b))});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&amp;&amp;b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&amp;&amp;1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,&quot;body&quot;)||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth&lt;=0&amp;&amp;a.offsetHeight&lt;=0||!k.reliableHiddenOffsets()&amp;&amp;&quot;none&quot;===(a.style&amp;&amp;a.style.display||m.css(a,&quot;display&quot;))},m.expr.filters.visible=function(a){return!m.expr.filters.hidden(a)};var Qc=/%20/g,Rc=/\[\]$/,Sc=/\r?\n/g,Tc=/^(?:submit|button|image|reset|file)$/i,Uc=/^(?:input|select|textarea|keygen)/i;function Vc(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rc.test(a)?d(a,e):Vc(a+&quot;[&quot;+(&quot;object&quot;==typeof e?b:&quot;&quot;)+&quot;]&quot;,e,c,d)});else if(c||&quot;object&quot;!==m.type(b))d(a,b);else for(e in b)Vc(a+&quot;[&quot;+e+&quot;]&quot;,b[e],c,d)}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?&quot;&quot;:b,d[d.length]=encodeURIComponent(a)+&quot;=&quot;+encodeURIComponent(b)};if(void 0===b&amp;&amp;(b=m.ajaxSettings&amp;&amp;m.ajaxSettings.traditional),m.isArray(a)||a.jquery&amp;&amp;!m.isPlainObject(a))m.each(a,function(){e(this.name,this.value)});else for(c in a)Vc(c,a[c],b,e);return d.join(&quot;&amp;&quot;).replace(Qc,&quot;+&quot;)},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,&quot;elements&quot;);return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&amp;&amp;!m(this).is(&quot;:disabled&quot;)&amp;&amp;Uc.test(this.nodeName)&amp;&amp;!Tc.test(a)&amp;&amp;(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sc,&quot;\r\n&quot;)}}):{name:b.name,value:c.replace(Sc,&quot;\r\n&quot;)}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&amp;&amp;/^(get|post|head|put|delete|options)$/i.test(this.type)&amp;&amp;Zc()||$c()}:Zc;var Wc=0,Xc={},Yc=m.ajaxSettings.xhr();a.ActiveXObject&amp;&amp;m(a).on(&quot;unload&quot;,function(){for(var a in Xc)Xc[a](void 0,!0)}),k.cors=!!Yc&amp;&amp;&quot;withCredentials&quot;in Yc,Yc=k.ajax=!!Yc,Yc&amp;&amp;m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&amp;&amp;f.overrideMimeType&amp;&amp;f.overrideMimeType(a.mimeType),a.crossDomain||c[&quot;X-Requested-With&quot;]||(c[&quot;X-Requested-With&quot;]=&quot;XMLHttpRequest&quot;);for(e in c)void 0!==c[e]&amp;&amp;f.setRequestHeader(e,c[e]+&quot;&quot;);f.send(a.hasContent&amp;&amp;a.data||null),b=function(c,e){var h,i,j;if(b&amp;&amp;(e||4===f.readyState))if(delete Xc[g],b=void 0,f.onreadystatechange=m.noop,e)4!==f.readyState&amp;&amp;f.abort();else{j={},h=f.status,&quot;string&quot;==typeof f.responseText&amp;&amp;(j.text=f.responseText);try{i=f.statusText}catch(k){i=&quot;&quot;}h||!a.isLocal||a.crossDomain?1223===h&amp;&amp;(h=204):h=j.text?200:404}j&amp;&amp;d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xc[g]=b:b()},abort:function(){b&amp;&amp;b(void 0,!0)}}}});function Zc(){try{return new a.XMLHttpRequest}catch(b){}}function $c(){try{return new a.ActiveXObject(&quot;Microsoft.XMLHTTP&quot;)}catch(b){}}m.ajaxSetup({accepts:{script:&quot;text/javascript, application/javascript, application/ecmascript, application/x-ecmascript&quot;},contents:{script:/(?:java|ecma)script/},converters:{&quot;text script&quot;:function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter(&quot;script&quot;,function(a){void 0===a.cache&amp;&amp;(a.cache=!1),a.crossDomain&amp;&amp;(a.type=&quot;GET&quot;,a.global=!1)}),m.ajaxTransport(&quot;script&quot;,function(a){if(a.crossDomain){var b,c=y.head||m(&quot;head&quot;)[0]||y.documentElement;return{send:function(d,e){b=y.createElement(&quot;script&quot;),b.async=!0,a.scriptCharset&amp;&amp;(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&amp;&amp;(b.onload=b.onreadystatechange=null,b.parentNode&amp;&amp;b.parentNode.removeChild(b),b=null,c||e(200,&quot;success&quot;))},c.insertBefore(b,c.firstChild)},abort:function(){b&amp;&amp;b.onload(void 0,!0)}}}});var _c=[],ad=/(=)\?(?=&amp;|$)|\?\?/;m.ajaxSetup({jsonp:&quot;callback&quot;,jsonpCallback:function(){var a=_c.pop()||m.expando+&quot;_&quot;+vc++;return this[a]=!0,a}}),m.ajaxPrefilter(&quot;json jsonp&quot;,function(b,c,d){var e,f,g,h=b.jsonp!==!1&amp;&amp;(ad.test(b.url)?&quot;url&quot;:&quot;string&quot;==typeof b.data&amp;&amp;!(b.contentType||&quot;&quot;).indexOf(&quot;application/x-www-form-urlencoded&quot;)&amp;&amp;ad.test(b.data)&amp;&amp;&quot;data&quot;);return h||&quot;jsonp&quot;===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ad,&quot;$1&quot;+e):b.jsonp!==!1&amp;&amp;(b.url+=(wc.test(b.url)?&quot;&amp;&quot;:&quot;?&quot;)+b.jsonp+&quot;=&quot;+e),b.converters[&quot;script json&quot;]=function(){return g||m.error(e+&quot; was not called&quot;),g[0]},b.dataTypes[0]=&quot;json&quot;,f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&amp;&amp;(b.jsonpCallback=c.jsonpCallback,_c.push(e)),g&amp;&amp;m.isFunction(f)&amp;&amp;f(g[0]),g=f=void 0}),&quot;script&quot;):void 0}),m.parseHTML=function(a,b,c){if(!a||&quot;string&quot;!=typeof a)return null;&quot;boolean&quot;==typeof b&amp;&amp;(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&amp;&amp;[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&amp;&amp;e.length&amp;&amp;m(e).remove(),m.merge([],d.childNodes))};var bd=m.fn.load;m.fn.load=function(a,b,c){if(&quot;string&quot;!=typeof a&amp;&amp;bd)return bd.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(&quot; &quot;);return h&gt;=0&amp;&amp;(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&amp;&amp;&quot;object&quot;==typeof b&amp;&amp;(f=&quot;POST&quot;),g.length&gt;0&amp;&amp;m.ajax({url:a,type:f,dataType:&quot;html&quot;,data:b}).done(function(a){e=arguments,g.html(d?m(&quot;&lt;div&gt;&quot;).append(m.parseHTML(a)).find(d):a)}).complete(c&amp;&amp;function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cd=a.document.documentElement;function dd(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,&quot;position&quot;),l=m(a),n={};&quot;static&quot;===k&amp;&amp;(a.style.position=&quot;relative&quot;),h=l.offset(),f=m.css(a,&quot;top&quot;),i=m.css(a,&quot;left&quot;),j=(&quot;absolute&quot;===k||&quot;fixed&quot;===k)&amp;&amp;m.inArray(&quot;auto&quot;,[f,i])&gt;-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&amp;&amp;(b=b.call(a,c,h)),null!=b.top&amp;&amp;(n.top=b.top-h.top+g),null!=b.left&amp;&amp;(n.left=b.left-h.left+e),&quot;using&quot;in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&amp;&amp;e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&amp;&amp;(d=e.getBoundingClientRect()),c=dd(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return&quot;fixed&quot;===m.css(d,&quot;position&quot;)?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],&quot;html&quot;)||(c=a.offset()),c.top+=m.css(a[0],&quot;borderTopWidth&quot;,!0),c.left+=m.css(a[0],&quot;borderLeftWidth&quot;,!0)),{top:b.top-c.top-m.css(d,&quot;marginTop&quot;,!0),left:b.left-c.left-m.css(d,&quot;marginLeft&quot;,!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cd;while(a&amp;&amp;!m.nodeName(a,&quot;html&quot;)&amp;&amp;&quot;static&quot;===m.css(a,&quot;position&quot;))a=a.offsetParent;return a||cd})}}),m.each({scrollLeft:&quot;pageXOffset&quot;,scrollTop:&quot;pageYOffset&quot;},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dd(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each([&quot;top&quot;,&quot;left&quot;],function(a,b){m.cssHooks[b]=Lb(k.pixelPosition,function(a,c){return c?(c=Jb(a,b),Hb.test(c)?m(a).position()[b]+&quot;px&quot;:c):void 0})}),m.each({Height:&quot;height&quot;,Width:&quot;width&quot;},function(a,b){m.each({padding:&quot;inner&quot;+a,content:b,&quot;&quot;:&quot;outer&quot;+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&amp;&amp;(c||&quot;boolean&quot;!=typeof d),g=c||(d===!0||e===!0?&quot;margin&quot;:&quot;border&quot;);return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement[&quot;client&quot;+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body[&quot;scroll&quot;+a],e[&quot;scroll&quot;+a],b.body[&quot;offset&quot;+a],e[&quot;offset&quot;+a],e[&quot;client&quot;+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,&quot;function&quot;==typeof define&amp;&amp;define.amd&amp;&amp;define(&quot;jquery&quot;,[],function(){return m});var ed=a.jQuery,fd=a.$;return m.noConflict=function(b){return a.$===m&amp;&amp;(a.$=fd),b&amp;&amp;a.jQuery===m&amp;&amp;(a.jQuery=ed),m},typeof b===K&amp;&amp;(a.jQuery=a.$=m),m});
</ins><span class="cx">Property changes on: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery-1.11.1.min.js
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardExternaljquerydaterangepickerjs"></a>
<div class="addfile"><h4>Added: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery.daterangepicker.js (0 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery.daterangepicker.js                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery.daterangepicker.js        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -0,0 +1,1266 @@
</span><ins>+// daterangepicker.js
+// version : 0.0.5
+// author : Chunlong Liu
+// last updated at: 2014-05-27
+// license : MIT
+// www.jszen.com
+
+(function($)
+{
+
+    $.dateRangePickerLanguages =
+    {
+        'cn':
+        {
+            'selected': '已选择:',
+            'day':'天',
+            'days': '天',
+            'apply': '确定',
+            'week-1' : '一',
+            'week-2' : '二',
+            'week-3' : '三',
+            'week-4' : '四',
+            'week-5' : '五',
+            'week-6' : '六',
+            'week-7' : '日',
+            'month-name': ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],
+            'shortcuts' : '快捷选择',
+            'past': '过去',
+            'following':'将来',
+            'previous' : '&amp;nbsp;&amp;nbsp;&amp;nbsp;',
+            'prev-week' : '上周',
+            'prev-month' : '上个月',
+            'prev-year' : '去年',
+            'next': '&amp;nbsp;&amp;nbsp;&amp;nbsp;',
+            'next-week':'下周',
+            'next-month':'下个月',
+            'next-year':'明年',
+            'less-than' : '所选日期范围不能大于%d天',
+            'more-than' : '所选日期范围不能小于%d天',
+            'default-more' : '请选择大于%d天的日期范围',
+            'default-less' : '请选择小于%d天的日期范围',
+            'default-range' : '请选择%d天到%d天的日期范围',
+            'default-single':'请选择一个日期',
+            'default-default': '请选择一个日期范围'
+        },
+        'en':
+        {
+            'selected': 'Selected:',
+            'day':'Day',
+            'days': 'Days',
+            'apply': 'Start',
+            'week-1' : 'MO',
+            'week-2' : 'TU',
+            'week-3' : 'WE',
+            'week-4' : 'TH',
+            'week-5' : 'FR',
+            'week-6' : 'SA',
+            'week-7' : 'SU',
+            'month-name': ['JANUARY','FEBRUARY','MARCH','APRIL','MAY','JUNE','JULY','AUGUST','SEPTEMBER','OCTOBER','NOVEMBER','DECEMBER'],
+            'shortcuts' : 'Shortcuts',
+            'past': 'Past',
+            'following':'Following',
+            'previous' : 'Previous',
+            'prev-week' : 'Week',
+            'prev-month' : 'Month',
+            'prev-year' : 'Year',
+            'next':'Next',
+            'next-week':'Week',
+            'next-month':'Month',
+            'next-year':'Year',
+            'less-than' : 'Date range should not be more than %d days',
+            'more-than' : 'Date range should not be less than %d days',
+            'default-more' : 'Please select a date range longer than %d days',
+            'default-single' : 'Please select a date',
+            'default-less' : 'Please select a date range less than %d days',
+            'default-range' : 'Please select a date range between %d and %d days',
+            'default-default': 'Please select a date range'
+        },
+        'it':
+        {
+            'selected': 'Selezionati:',
+            'day':'Giorno',
+            'days': 'Giorni',
+            'apply': 'Chiudi',
+            'week-1' : 'LU',
+            'week-2' : 'MA',
+            'week-3' : 'ME',
+            'week-4' : 'GI',
+            'week-5' : 'VE',
+            'week-6' : 'SA',
+            'week-7' : 'DO',
+            'month-name': ['GENNAIO','FEBBRAIO','MARZO','APRILE','MAGGIO','GIUGNO','LUGLIO','AGOSTO','SETTEMBRE','OTTOBRE','NOVEMBRE','DICEMBRE'],
+            'shortcuts' : 'Scorciatoie',
+            'past': 'Scorso',
+            'following':'Successivo',
+            'previous' : 'Precedente',
+            'prev-week' : 'Settimana',
+            'prev-month' : 'Mese',
+            'prev-year' : 'Anno',
+            'next':'Prossimo',
+            'next-week':'Settimana',
+            'next-month':'Mese',
+            'next-year':'Anno',
+            'less-than' : 'L\'intervallo non dev\'essere maggiore di %d giorni',
+            'more-than' : 'L\'intervallo non dev\'essere minore di %d giorni',
+            'default-more' : 'Seleziona un intervallo maggiore di %d giorni',
+            'default-single' : 'Seleziona una data',
+            'default-less' : 'Seleziona un intervallo minore di %d giorni',
+            'default-range' : 'Seleziona un intervallo compreso tra i %d e i %d giorni',
+            'default-default': 'Seleziona un intervallo di date'
+        },
+        'es':
+        {
+            'selected': 'Seleccionado:',
+            'day':'Dia',
+            'days': 'Dias',
+            'apply': 'Cerrar',
+            'week-1' : 'LU',
+            'week-2' : 'MA',
+            'week-3' : 'MI',
+            'week-4' : 'JU',
+            'week-5' : 'VI',
+            'week-6' : 'SA',
+            'week-7' : 'DO',
+            'month-name': ['ENERO','FEBRERO','MARZO','ABRIL','MAYO','JUNIO','JULIO','AGOSTO','SEPTIEMBRE','OCTUBRE','NOVIEMBRE','DICIEMBRE'],
+            'shortcuts' : 'Accesos directos',
+            'past': 'Pasado',
+            'following':'Siguiente',
+            'previous' : 'Anterior',
+            'prev-week' : 'Semana',
+            'prev-month' : 'Mes',
+            'prev-year' : 'Año',
+            'next':'Siguiente',
+            'next-week':'Semana',
+            'next-month':'Mes',
+            'next-year':'Año',
+            'less-than' : 'El rango no deberia ser mayor de %d dias',
+            'more-than' : 'El rango no deberia ser menor de %d dias',
+            'default-more' : 'Por favor selecciona un rango mayor a %d dias',
+            'default-single' : 'Por favor selecciona un dia',
+            'default-less' : 'Por favor selecciona un rango menor a %d dias',
+            'default-range' : 'Por favor selecciona un rango entre %d y %d dias',
+            'default-default': 'Por favor selecciona un rango de fechas.'
+        },
+        'de':
+        {
+            'selected': 'Auswahl:',
+            'day':'Tag',
+            'days': 'Tage',
+            'apply': 'Schließen',
+            'week-1' : 'MO',
+            'week-2' : 'DI',
+            'week-3' : 'MI',
+            'week-4' : 'DO',
+            'week-5' : 'FR',
+            'week-6' : 'SA',
+            'week-7' : 'SO',
+            'month-name': ['JANUAR','FEBRUAR','MÄRZ','APRIL','MAI','JUNI','JULI','AUGUST','SEPTEMBER','OKTOBER','NOVEMBER','DEZEMBER'],
+            'shortcuts' : 'Schnellwahl',
+            'past': 'Vorherige',
+            'following':'Folgende',
+            'previous' : 'Vorherige',
+            'prev-week' : 'Woche',
+            'prev-month' : 'Monat',
+            'prev-year' : 'Jahr',
+            'next':'Nächste',
+            'next-week':'Woche',
+            'next-month':'Monat',
+            'next-year':'Jahr',
+            'less-than' : 'Datumsbereich darf nicht größer sein als %d Tage',
+            'more-than' : 'Datumsbereich darf nicht kleiner sein als %d Tage',
+            'default-more' : 'Bitte mindestens %d Tage auswählen',
+            'default-single' : 'Bitte ein Datum auswählen',
+            'default-less' : 'Bitte weniger als %d Tage auswählen',
+            'default-range' : 'Bitte einen Datumsbereich zwischen %d und %d Tagen auswählen',
+            'default-default': 'Bitte ein Start- und Enddatum auswählen'
+        }
+    };
+
+
+    if (window['moment'] === undefined)
+    {
+        if (window['console'] &amp;&amp; console['warn']) console.warn('Please import moment.js before daterangepicker.js');
+        return;
+    }
+
+    $.fn.dateRangePicker = function(opt)
+    {
+        if (!opt) opt = {};
+        opt = $.extend(true,
+        {
+            autoClose: false,
+            format: 'YYYY-MM-DD',
+            separator: ' to ',
+            language: 'auto',
+            startOfWeek: 'sunday',// or monday
+            getValue: function()
+            {
+                return $(this).val();
+            },
+            setValue: function(s)
+            {
+                $(this).val(s);
+            },
+            startDate: false,
+            endDate: false,
+            time: {
+                enabled: false
+            },
+            minDays: 0,
+            maxDays: 0,
+            showShortcuts: true,
+            shortcuts:
+            {
+                //'prev-days': [1,3,5,7],
+                'next-days': [3,5,7],
+                //'prev' : ['week','month','year'],
+                'next' : ['week','month','year']
+            },
+            customShortcuts : [],
+            inline:false,
+            container:'body',
+            alwaysOpen:false,
+            singleDate:false,
+            batchMode: false
+        },opt);
+
+        opt.start = false;
+        opt.end = false;
+
+        if (opt.startDate &amp;&amp; typeof opt.startDate == 'string') opt.startDate = moment(opt.startDate,opt.format).toDate();
+        if (opt.endDate &amp;&amp; typeof opt.endDate == 'string') opt.endDate = moment(opt.endDate,opt.format).toDate();
+
+        var langs = getLanguages();
+        var box;
+        var initiated = false;
+        var self = this;
+        var selfDom = $(self).get(0);
+
+        $(this).unbind('.datepicker').bind('click.datepicker',function(evt)
+        {
+            evt.stopPropagation();
+            open(200);
+        });
+
+        init_datepicker.call(this);
+
+        if (opt.alwaysOpen)
+        {
+            open(0);
+        }
+
+        // expose some api
+        $(this).data('dateRangePicker',
+        {
+            setDateRange : function(d1,d2)
+            {
+                if (typeof d1 == 'string' &amp;&amp; typeof d2 == 'string')
+                {
+                    d1 = moment(d1,opt.format).toDate();
+                    d2 = moment(d2,opt.format).toDate();
+                }
+                setDateRange(d1,d2);
+            },
+            clear: clearSelection,
+            close: closeDatePicker,
+            open: open,
+            destroy: function()
+            {
+                $(self).unbind('.datepicker');
+                $(self).data('dateRangePicker','');
+                box.remove();
+                $(window).unbind('resize.datepicker',calcPosition);
+                $(document).unbind('click.datepicker',closeDatePicker);
+            }
+        });
+
+        $(window).bind('resize.datepicker',calcPosition);
+
+        return this;
+
+
+
+
+
+
+
+
+
+
+
+        function init_datepicker()
+        {
+            var self = this;
+
+            if ($(this).data('date-picker-opened'))
+            {
+                closeDatePicker();
+                return;
+            }
+            $(this).data('date-picker-opened',true);
+
+
+
+
+
+            box = createDom().hide();
+            $(opt.container).append(box);
+
+            if (!opt.inline)
+            {
+                calcPosition();
+            }
+            else
+            {
+                box.css({position:'static'});
+            }
+
+            if (opt.alwaysOpen)
+            {
+                box.find('.apply-btn').hide();
+            }
+
+            var defaultTime = new Date();
+            if (opt.startDate &amp;&amp; compare_month(defaultTime,opt.startDate) &lt; 0 ) defaultTime = moment(opt.startDate).toDate();
+            if (opt.endDate &amp;&amp; compare_month(nextMonth(defaultTime),opt.endDate) &gt; 0 ) defaultTime = prevMonth(moment(opt.endDate).toDate());
+
+
+            showMonth(defaultTime,'month1');
+            showMonth(nextMonth(defaultTime),'month2');
+
+            if (opt.time.enabled) {
+                if ((opt.startDate &amp;&amp; opt.endDate) || (opt.start &amp;&amp; opt.end)) {
+                    showTime(moment(opt.start || opt.startDate).toDate(),'time1');
+                    showTime(moment(opt.end || opt.endDate).toDate(),'time2');
+                } else {
+                    showTime(defaultTime,'time1');
+                    showTime(defaultTime,'time2');
+                }
+            }
+
+            //showSelectedInfo();
+
+
+
+
+            var defaultTopText = '';
+            if (opt.singleDate)
+                defaultTopText = lang('default-single');
+            else if (opt.minDays &amp;&amp; opt.maxDays)
+                defaultTopText = lang('default-range');
+            else if (opt.minDays)
+                defaultTopText = lang('default-more');
+            else if (opt.maxDays)
+                defaultTopText = lang('default-less');
+            else
+                defaultTopText = lang('default-default');
+
+            box.find('.default-top').html( defaultTopText.replace(/\%d/,opt.minDays).replace(/\%d/,opt.maxDays));
+
+
+
+
+            setTimeout(function()
+            {
+                initiated = true;
+            },0);
+
+            box.click(function(evt)
+            {
+                evt.stopPropagation();
+            });
+
+            $(document).bind('click.datepicker',closeDatePicker);
+
+            box.find('.next').click(function()
+            {
+                var isMonth2 = $(this).parents('table').hasClass('month2');
+                var month = isMonth2 ? opt.month2 : opt.month1;
+                month = nextMonth(month);
+                if (!opt.singleDate &amp;&amp; !isMonth2 &amp;&amp; compare_month(month,opt.month2) &gt;= 0) return;
+                showMonth(month,isMonth2 ? 'month2' : 'month1');
+                showGap();
+            });
+
+            box.find('.prev').click(function()
+            {
+                var isMonth2 = $(this).parents('table').hasClass('month2');
+                var month = isMonth2 ? opt.month2 : opt.month1;
+                month = prevMonth(month);
+                //if (isMonth2 &amp;&amp; month.getFullYear()+''+month.getMonth() &lt;= opt.month1.getFullYear()+''+opt.month1.getMonth()) return;
+                if (isMonth2 &amp;&amp; compare_month(month,opt.month1) &lt;= 0) return;
+                showMonth(month,isMonth2 ? 'month2' : 'month1');
+                showGap();
+            });
+
+
+            box.bind('click',function(evt)
+            {
+                if ($(evt.target).hasClass('day'))
+                {
+                    dayClicked($(evt.target));
+                }
+            });
+
+            box.attr('unselectable', 'on')
+            .css('user-select', 'none')
+            .bind('selectstart', function(e)
+            {
+                e.preventDefault(); return false;
+            });
+
+            box.find('.apply-btn').click(function()
+            {
+                closeDatePicker();
+                var dateRange = getDateString(new Date(opt.start))+ opt.separator +getDateString(new Date(opt.end));
+                $(self).trigger('datepicker-apply',
+                {
+                    'value': dateRange,
+                    'date1' : new Date(opt.start),
+                    'date2' : new Date(opt.end)
+                });
+            });
+
+            box.find('[shortcut]').click(function()
+            {
+                var shortcut = $(this).attr('shortcut');
+                var end = new Date(),start = false;
+                if (shortcut.indexOf('day') != -1)
+                {
+                    var day = parseInt(shortcut.split(',',2)[1],10);
+                    start = new Date(new Date().getTime() + 86400000*day);
+                    end = new Date(end.getTime() + 86400000*(day&gt;0?1:-1) );
+                }
+                else if (shortcut.indexOf('week')!= -1)
+                {
+                    var dir = shortcut.indexOf('prev,') != -1 ? -1 : 1;
+
+                    if (dir == 1)
+                        var stopDay = opt.startOfWeek == 'monday' ? 1 : 0;
+                    else
+                        var stopDay = opt.startOfWeek == 'monday' ? 0 : 6;
+
+                    end = new Date(end.getTime() - 86400000);
+                    while(end.getDay() != stopDay) end = new Date(end.getTime() + dir*86400000);
+                    start = new Date(end.getTime() + dir*86400000*6);
+                }
+                else if (shortcut.indexOf('month') != -1)
+                {
+                    var dir = shortcut.indexOf('prev,') != -1 ? -1 : 1;
+                    if (dir == 1)
+                        start = nextMonth(end);
+                    else
+                        start = prevMonth(end);
+                    start.setDate(1);
+                    end = nextMonth(start);
+                    end.setDate(1);
+                    end = new Date(end.getTime() - 86400000);
+                }
+                else if (shortcut.indexOf('year') != -1)
+                {
+                    var dir = shortcut.indexOf('prev,') != -1 ? -1 : 1;
+                    start = new Date();
+                    start.setFullYear(end.getFullYear() + dir);
+                    start.setMonth(0);
+                    start.setDate(1);
+                    end.setFullYear(end.getFullYear() + dir);
+                    end.setMonth(11);
+                    end.setDate(31);
+                }
+                else if (shortcut == 'custom')
+                {
+                    var name = $(this).html();
+                    if (opt.customShortcuts &amp;&amp; opt.customShortcuts.length &gt; 0)
+                    {
+                        for(var i=0;i&lt;opt.customShortcuts.length;i++)
+                        {
+                            var sh = opt.customShortcuts[i];
+                            if (sh.name == name)
+                            {
+                                var data = [];
+                                // try
+                                // {
+                                    data = sh['dates'].call();
+                                //}catch(e){}
+                                if (data &amp;&amp; data.length == 2)
+                                {
+                                    start = data[0];
+                                    end = data[1];
+                                }
+
+                                // if only one date is specified then just move calendars there
+                                // move calendars to show this date's month and next months
+                                if (data &amp;&amp; data.length == 1)
+                                {
+                                    movetodate = data[0];
+                                    showMonth(movetodate,'month1');
+                                    showMonth(nextMonth(movetodate),'month2');
+                                    showGap();
+                                }
+
+                                break;
+                            }
+                        }
+                    }
+                }
+                if (start &amp;&amp; end)
+                {
+                    setDateRange(start,end);
+                    checkSelectionValid();
+                }
+            });
+
+            box.find(&quot;.time1 input[type=range]&quot;).bind(&quot;change mousemove&quot;, function (e) {
+                var target = e.target,
+                    hour = target.name == &quot;hour&quot; ? $(target).val().replace(/^(\d{1})$/, &quot;0$1&quot;) : undefined,
+                    min = target.name == &quot;minute&quot; ? $(target).val().replace(/^(\d{1})$/, &quot;0$1&quot;) : undefined;
+                setTime(&quot;time1&quot;, hour, min);
+            });
+
+            box.find(&quot;.time2 input[type=range]&quot;).bind(&quot;change mousemove&quot;, function (e) {
+                var target = e.target,
+                    hour = target.name == &quot;hour&quot; ? $(target).val().replace(/^(\d{1})$/, &quot;0$1&quot;) : undefined,
+                    min = target.name == &quot;minute&quot; ? $(target).val().replace(/^(\d{1})$/, &quot;0$1&quot;) : undefined;
+                setTime(&quot;time2&quot;, hour, min);
+            });
+
+        }
+
+
+        function calcPosition()
+        {
+            if (!opt.inline)
+            {
+                var offset = $(self).offset();
+/* Apple change
+                if (offset.left &lt; 460) //left to right
+                {
+                    box.css(
+                    {
+                        top: offset.top+$(self).outerHeight() + parseInt($('body').css('border-top') || 0,10 ),
+                        left: offset.left
+                    });
+                }
+                else
+                {
+                    box.css(
+                    {
+                        top: offset.top+$(self).outerHeight() + parseInt($('body').css('border-top') || 0,10 ),
+                        left: offset.left + $(self).width() - box.width() - 16
+                    });
+                }
+*/
+                box.css(
+                {
+                    top: $(self).outerHeight() + parseInt($('body').css('border-top') || 0,10 ),
+//                    left: offset.left + $(self).width() - box.width() - 16
+                });
+            }
+        }
+
+        function open(animationTime)
+        {
+            calcPosition();
+            var __default_string = opt.getValue.call(selfDom);
+            var defaults = __default_string ? __default_string.split( opt.separator ) : '';
+
+            if (defaults &amp;&amp; defaults.length &gt;= 2)
+            {
+                var ___format = opt.format;
+                if (___format.match(/Do/))
+                {
+                    ___format = ___format.replace(/Do/,'D');
+                    defaults[0] = defaults[0].replace(/(\d+)(th|nd|st)/,'$1');
+                    defaults[1] = defaults[1].replace(/(\d+)(th|nd|st)/,'$1');
+                }
+        // set initiated  to avoid triggerring datepicker-change event
+        initiated = false;
+                setDateRange(moment(defaults[0], ___format).toDate(),moment(defaults[1], ___format).toDate());
+        initiated = true;
+            }
+            box.slideDown(animationTime);
+        }
+
+
+
+        function renderTime (name, date) {
+            box.find(&quot;.&quot; + name + &quot; input[type=range].hour-range&quot;).val(moment(date).hours());
+            box.find(&quot;.&quot; + name + &quot; input[type=range].minute-range&quot;).val(moment(date).minutes());
+            setTime(name, moment(date).format(&quot;HH&quot;), moment(date).format(&quot;mm&quot;));
+        }
+
+        function changeTime (name, date) {
+            opt[name] = parseInt(
+                moment(parseInt(date))
+                    .startOf('day')
+                    .add('h', moment(opt[name + &quot;Time&quot;]).format(&quot;HH&quot;))
+                    .add('m', moment(opt[name + &quot;Time&quot;]).format(&quot;mm&quot;)).valueOf()
+                );
+        }
+
+        function swapTime () {
+            renderTime(&quot;time1&quot;, opt.start);
+            renderTime(&quot;time2&quot;, opt.end);
+        }
+
+        function setTime (name, hour, minute) {
+            hour &amp;&amp; (box.find(&quot;.&quot; + name + &quot; .hour-val&quot;).text(hour));
+            minute &amp;&amp; (box.find(&quot;.&quot; + name + &quot; .minute-val&quot;).text(minute));
+            switch (name) {
+                case &quot;time1&quot;:
+                    if (opt.start) {
+                        setRange(&quot;start&quot;, moment(opt.start));
+                    }
+                    setRange(&quot;startTime&quot;, moment(opt.startTime || moment().valueOf()));
+                    break;
+                case &quot;time2&quot;:
+                    if (opt.end) {
+                        setRange(&quot;end&quot;, moment(opt.end));
+                    }
+                    setRange(&quot;endTime&quot;, moment(opt.endTime || moment().valueOf()));
+                    break;
+            }
+            function setRange(name, timePoint) {
+                var h = timePoint.format(&quot;HH&quot;),
+                    m = timePoint.format(&quot;mm&quot;);
+                opt[name] = timePoint
+                    .startOf('day')
+                    .add(&quot;h&quot;, hour || h)
+                    .add(&quot;m&quot;, minute || m)
+                    .valueOf();
+            }
+            checkSelectionValid();
+            showSelectedInfo();
+            showSelectedDays();
+        }
+
+        function clearSelection()
+        {
+            opt.start = false;
+            opt.end = false;
+            box.find('.day.checked').removeClass('checked');
+            opt.setValue.call(selfDom, '');
+            checkSelectionValid();
+            showSelectedInfo();
+            showSelectedDays();
+        }
+
+    function handleStart(time)
+    {
+      var r = time;
+      if  (opt.batchMode === 'week-range') {
+        if (opt.startOfWeek === 'monday') {
+                    r = moment(parseInt(time)).startOf('isoweek').valueOf();
+                } else {
+                    r = moment(parseInt(time)).startOf('week').valueOf();
+                }
+      } else if (opt.batchMode === 'month-range') {
+                r = moment(parseInt(time)).startOf('month').valueOf();
+      }
+
+      return r;
+    }
+
+    function handleEnd(time)
+    {
+      var r = time;
+      if  (opt.batchMode === 'week-range') {
+        if (opt.startOfWeek === 'monday-range') {
+                    r = moment(parseInt(time)).endOf('isoweek').valueOf();
+                } else {
+                    r = moment(parseInt(time)).endOf('week').valueOf();
+                }
+      } else if (opt.batchMode === 'month') {
+                r = moment(parseInt(time)).endOf('month').valueOf();
+      }
+
+      return r;
+    }
+
+
+        function dayClicked(day)
+        {
+            if (day.hasClass('invalid')) return;
+            var time = day.attr('time');
+            day.addClass('checked');
+            if ( opt.singleDate )
+            {
+                opt.start = time;
+                opt.end = false;
+                if (opt.time.enabled) {
+                    changeTime(&quot;start&quot;, opt.start);
+                }
+            }
+            else if  (opt.batchMode === 'week')
+            {
+                if (opt.startOfWeek === 'monday') {
+                    opt.start = moment(parseInt(time)).startOf('isoweek').valueOf();
+                    opt.end = moment(parseInt(time)).endOf('isoweek').valueOf();
+                } else {
+                    opt.end = moment(parseInt(time)).endOf('week').valueOf();
+                    opt.start = moment(parseInt(time)).startOf('week').valueOf();
+                }
+            }
+            else if (opt.batchMode === 'month')
+            {
+                opt.start = moment(parseInt(time)).startOf('month').valueOf();
+                opt.end = moment(parseInt(time)).endOf('month').valueOf();
+            }
+            else if ((opt.start &amp;&amp; opt.end) || (!opt.start &amp;&amp; !opt.end) )
+            {
+                opt.start = handleStart(time);
+                opt.end = false;
+                if (opt.time.enabled) {
+                    changeTime(&quot;start&quot;, opt.start);
+                }
+            }
+            else if (opt.start)
+            {
+                opt.end = handleEnd(time);
+                if (opt.time.enabled) {
+                    changeTime(&quot;end&quot;, opt.end);
+                }
+            }
+
+            if (!opt.singleDate &amp;&amp; opt.start &amp;&amp; opt.end &amp;&amp; opt.start &gt; opt.end)
+            {
+                var tmp = opt.end;
+                opt.end = handleEnd(opt.start);
+                opt.start = handleStart(tmp);
+                if (opt.time.enabled) {
+                    swapTime();
+                }
+            }
+
+            opt.start = parseInt(opt.start);
+            opt.end = parseInt(opt.end);
+
+            checkSelectionValid();
+            showSelectedInfo();
+            showSelectedDays();
+            autoclose();
+        }
+
+        function autoclose () {
+            if (opt.singleDate === true) {
+                if (initiated &amp;&amp; opt.start )
+                {
+                    if (opt.autoClose) closeDatePicker();
+                }
+            } else {
+                if (initiated &amp;&amp; opt.start &amp;&amp; opt.end)
+                {
+                    if (opt.autoClose) closeDatePicker();
+                }
+            }
+        }
+
+        function checkSelectionValid()
+        {
+            var days = Math.ceil( (opt.end - opt.start) / 86400000 ) + 1;
+            if (opt.singleDate) { // Validate if only start is there
+                if (opt.start &amp;&amp; !opt.end)
+                    box.find('.drp_top-bar').removeClass('error').addClass('normal');
+                else
+                    box.find('.drp_top-bar').removeClass('error').removeClass('normal');
+            }
+            else if ( opt.maxDays &amp;&amp; days &gt; opt.maxDays)
+            {
+                opt.start = false;
+                opt.end = false;
+                box.find('.day').removeClass('checked');
+                box.find('.drp_top-bar').removeClass('normal').addClass('error').find('.error-top').html( lang('less-than').replace('%d',opt.maxDays) );
+            }
+            else if ( opt.minDays &amp;&amp; days &lt; opt.minDays)
+            {
+                opt.start = false;
+                opt.end = false;
+                box.find('.day').removeClass('checked');
+                box.find('.drp_top-bar').removeClass('normal').addClass('error').find('.error-top').html( lang('more-than').replace('%d',opt.minDays) );
+            }
+            else
+            {
+                if (opt.start || opt.end)
+                    box.find('.drp_top-bar').removeClass('error').addClass('normal');
+                else
+                    box.find('.drp_top-bar').removeClass('error').removeClass('normal');
+            }
+
+            if ( (opt.singleDate &amp;&amp; opt.start &amp;&amp; !opt.end) || (!opt.singleDate &amp;&amp; opt.start &amp;&amp; opt.end) )
+            {
+                box.find('.apply-btn').removeClass('disabled');
+            }
+            else
+            {
+                box.find('.apply-btn').addClass('disabled');
+            }
+
+            if (opt.batchMode)
+            {
+                if ( (opt.start &amp;&amp; opt.startDate &amp;&amp; compare_day(opt.start, opt.startDate) &lt; 0)
+                    || (opt.end &amp;&amp; opt.endDate &amp;&amp; compare_day(opt.end, opt.endDate) &gt; 0)  )
+                {
+                    opt.start = false;
+                    opt.end = false;
+                    box.find('.day').removeClass('checked');
+                }
+            }
+        }
+
+        function showSelectedInfo()
+        {
+            box.find('.start-day').html('...');
+            box.find('.end-day').html('...');
+            box.find('.selected-days').hide();
+            if (opt.start)
+            {
+                box.find('.start-day').html(getDateString(new Date(parseInt(opt.start))));
+            }
+            if (opt.end)
+            {
+                box.find('.end-day').html(getDateString(new Date(parseInt(opt.end))));
+            }
+
+            if (opt.start &amp;&amp; opt.singleDate)
+            {
+                box.find('.apply-btn').removeClass('disabled');
+                var dateRange = getDateString(new Date(opt.start));
+                opt.setValue.call(selfDom, dateRange, getDateString(new Date(opt.start)), getDateString(new Date(opt.end)));
+
+                if (initiated)
+                {
+                    $(self).trigger('datepicker-change',
+                    {
+                        'value': dateRange,
+                        'date1' : new Date(opt.start)
+                    });
+                }
+            }
+            else if (opt.start &amp;&amp; opt.end)
+            {
+                box.find('.selected-days').show().find('.selected-days-num').html(Math.round((opt.end-opt.start)/86400000)+1);
+                box.find('.apply-btn').removeClass('disabled');
+                var dateRange = getDateString(new Date(opt.start))+ opt.separator +getDateString(new Date(opt.end));
+                opt.setValue.call(selfDom,dateRange, getDateString(new Date(opt.start)), getDateString(new Date(opt.end)));
+                if (initiated)
+                {
+                    $(self).trigger('datepicker-change',
+                    {
+                        'value': dateRange,
+                        'date1' : new Date(opt.start),
+                        'date2' : new Date(opt.end)
+                    });
+                }
+            }
+            else
+            {
+                box.find('.apply-btn').addClass('disabled');
+            }
+        }
+
+        function setDateRange(date1,date2)
+        {
+            if (date1.getTime() &gt; date2.getTime())
+            {
+                var tmp = date2;
+                date2 = date1;
+                date1 = tmp;
+                tmp = null;
+            }
+            var valid = true;
+            if (opt.startDate &amp;&amp; compare_day(date1,opt.startDate) &lt; 0) valid = false;
+            if (opt.endDate &amp;&amp; compare_day(date2,opt.endDate) &gt; 0) valid = false;
+            if (!valid)
+            {
+                showMonth(opt.startDate,'month1');
+                showMonth(nextMonth(opt.startDate),'month2');
+                showGap();
+                return;
+            }
+
+            opt.start = date1.getTime();
+            opt.end = date2.getTime();
+            if (compare_month(date1,date2) == 0)
+            {
+                date2 = nextMonth(date1);
+            }
+            if (opt.time.enabled) {
+                renderTime(&quot;time1&quot;, date1);
+                renderTime(&quot;time2&quot;, date2);
+            }
+            showMonth(date1,'month1');
+            showMonth(date2,'month2');
+            showGap();
+            showSelectedInfo();
+            autoclose();
+        }
+
+        function showSelectedDays()
+        {
+            if (!opt.start &amp;&amp; !opt.end) return;
+            box.find('.day').each(function()
+            {
+                var time = parseInt($(this).attr('time')),
+                    start = opt.start,
+                    end = opt.end;
+                if (opt.time.enabled) {
+                    time = moment(time).startOf('day').valueOf();
+                    start = moment(start || moment().valueOf()).startOf('day').valueOf();
+                    end = moment(end || moment().valueOf()).startOf('day').valueOf();
+                }
+                if (
+                    (opt.start &amp;&amp; opt.end &amp;&amp; end &gt;= time &amp;&amp; start &lt;= time )
+                    || ( opt.start &amp;&amp; !opt.end &amp;&amp; moment(start).format('YYYY-MM-DD') == moment(time).format('YYYY-MM-DD') )
+                )
+                {
+                    $(this).addClass('checked');
+                }
+                else
+                {
+                    $(this).removeClass('checked');
+                }
+            });
+        }
+
+        function showMonth(date,month)
+        {
+            date = moment(date).startOf('day').toDate();
+            var monthName = nameMonth(date.getMonth());
+            box.find('.'+month+' .month-name').html(monthName+' '+date.getFullYear());
+            box.find('.'+month+' tbody').html(createMonthHTML(date));
+            opt[month] = date;
+        }
+
+        function showTime(date,name)
+        {
+            box.find('.' + name).append(getTimeHTML());
+            renderTime(name, date);
+        }
+
+        function nameMonth(m)
+        {
+            return lang('month-name')[m];
+        }
+
+        function getDateString(d)
+        {
+            return moment(d).format(opt.format);
+        }
+
+        function showGap()
+        {
+            showSelectedDays();
+            var m1 = parseInt(moment(opt.month1).format('YYYYMM'));
+            var m2 = parseInt(moment(opt.month2).format('YYYYMM'));
+            var p = Math.abs(m1 - m2);
+            var shouldShow = (p &gt; 1 &amp;&amp; p !=89);
+            if (shouldShow)
+                box.find('.gap').show();
+            else
+                box.find('.gap').hide();
+        }
+
+        function closeDatePicker()
+        {
+            if (opt.alwaysOpen) return;
+            $(box).slideUp(200,function()
+            {
+                $(self).data('date-picker-opened',false);
+            });
+            //$(document).unbind('.datepicker');
+            $(self).trigger('datepicker-close');
+        }
+
+        function compare_month(m1,m2)
+        {
+            var p = parseInt(moment(m1).format('YYYYMM')) - parseInt(moment(m2).format('YYYYMM'));
+            if (p &gt; 0 ) return 1;
+            if (p == 0) return 0;
+            return -1;
+        }
+
+        function compare_day(m1,m2)
+        {
+            var p = parseInt(moment(m1).format('YYYYMMDD')) - parseInt(moment(m2).format('YYYYMMDD'));
+            if (p &gt; 0 ) return 1;
+            if (p == 0) return 0;
+            return -1;
+        }
+
+        function nextMonth(month)
+        {
+            month = moment(month).toDate();
+            var toMonth = month.getMonth();
+            while(month.getMonth() == toMonth) month = new Date(month.getTime()+86400000);
+            return month;
+        }
+
+        function prevMonth(month)
+        {
+            month = moment(month).toDate();
+            var toMonth = month.getMonth();
+            while(month.getMonth() == toMonth) month = new Date(month.getTime()-86400000);
+            return month;
+        }
+
+        function getTimeHTML()
+        {
+            var timeHtml = '&lt;div&gt;'
+                +'&lt;span&gt;Time: &lt;span class=&quot;hour-val&quot;&gt;00&lt;/span&gt;:&lt;span class=&quot;minute-val&quot;&gt;00&lt;/span&gt;&lt;/span&gt;'
+                +'&lt;/div&gt;'
+                +'&lt;div class=&quot;hour&quot;&gt;'
+                +'&lt;label&gt;Hour: &lt;input type=&quot;range&quot; class=&quot;hour-range&quot; name=&quot;hour&quot; min=&quot;0&quot; max=&quot;23&quot;&gt;&lt;/label&gt;'
+                +'&lt;/div&gt;'
+                +'&lt;div class=&quot;minute&quot;&gt;'
+                +'&lt;label&gt;Minute: &lt;input type=&quot;range&quot; class=&quot;minute-range&quot; name=&quot;minute&quot; min=&quot;0&quot; max=&quot;59&quot;&gt;&lt;/label&gt;'
+                +'&lt;/div&gt;';
+            return timeHtml;
+        }
+
+        function createDom()
+        {
+            var html = '&lt;div class=&quot;date-picker-wrapper'
+            if ( opt.singleDate ) html += ' single-date';
+            if ( !opt.showShortcuts ) html += ' no-shortcuts ';
+            html += '&quot;&gt;'
+                +'&lt;div class=&quot;drp_top-bar&quot;&gt;\
+                    &lt;div class=&quot;normal-top&quot;&gt;\
+                        &lt;span&gt;'+lang('selected')+' &lt;/span&gt; &lt;b class=&quot;start-day&quot;&gt;...&lt;/b&gt;'
+            if ( ! opt.singleDate ) {
+                html += ' &lt;span class=&quot;separator-day&quot;&gt;'+opt.separator+'&lt;/span&gt; &lt;b class=&quot;end-day&quot;&gt;...&lt;/b&gt; &lt;i class=&quot;selected-days&quot;&gt;(&lt;span class=&quot;selected-days-num&quot;&gt;3&lt;/span&gt; '+lang('days')+')&lt;/i&gt;'
+            }
+            html += '&lt;/div&gt;\
+                    &lt;div class=&quot;error-top&quot;&gt;error&lt;/div&gt;\
+                    &lt;div class=&quot;default-top&quot;&gt;default&lt;/div&gt;\
+                    &lt;input type=&quot;button&quot; class=&quot;apply-btn disabled '+ getHideClass() +'&quot; value=&quot;'+lang('apply')+'&quot; /&gt;\
+                &lt;/div&gt;'
+                +'&lt;div class=&quot;month-wrapper&quot;&gt;'
+                +'&lt;table class=&quot;month1&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;thead&gt;&lt;tr class=&quot;caption&quot;&gt;&lt;th style=&quot;width:27px;&quot;&gt;&lt;span class=&quot;prev&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/th&gt;&lt;th colspan=&quot;5&quot; class=&quot;month-name&quot;&gt;January, 2011&lt;/th&gt;&lt;th style=&quot;width:27px;&quot;&gt;&lt;span class=&quot;next&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr class=&quot;week-name&quot;&gt;'+getWeekHead()+'&lt;/thead&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;/table&gt;'
+            if ( ! opt.singleDate ) {
+                html += '&lt;div class=&quot;gap&quot;&gt;'+getGapHTML()+'&lt;/div&gt;'
+                    +'&lt;table class=&quot;month2&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;thead&gt;&lt;tr class=&quot;caption&quot;&gt;&lt;th style=&quot;width:27px;&quot;&gt;&lt;span class=&quot;prev&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/th&gt;&lt;th colspan=&quot;5&quot; class=&quot;month-name&quot;&gt;January, 2011&lt;/th&gt;&lt;th style=&quot;width:27px;&quot;&gt;&lt;span class=&quot;next&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr class=&quot;week-name&quot;&gt;'+getWeekHead()+'&lt;/thead&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;/table&gt;'
+            }
+                //+'&lt;/div&gt;'
+            html +=    '&lt;div style=&quot;clear:both;height:0;font-size:0;&quot;&gt;&lt;/div&gt;'
+                +'&lt;div class=&quot;time&quot;&gt;'
+                +'&lt;div class=&quot;time1&quot;&gt;&lt;/div&gt;'
+            if ( ! opt.singleDate ) {
+                html += '&lt;div class=&quot;time2&quot;&gt;&lt;/div&gt;'
+            }
+            html += '&lt;/div&gt;'
+                +'&lt;div style=&quot;clear:both;height:0;font-size:0;&quot;&gt;&lt;/div&gt;'
+                +'&lt;/div&gt;';
+
+            if (opt.showShortcuts)
+            {
+                html += '&lt;div class=&quot;footer&quot;&gt;&lt;b&gt;'+lang('shortcuts')+'&lt;/b&gt;';
+
+                var data = opt.shortcuts;
+                if (data)
+                {
+                    if (data['prev-days'] &amp;&amp; data['prev-days'].length &gt; 0)
+                    {
+                        html += '&amp;nbsp;&lt;span class=&quot;prev-days&quot;&gt;'+lang('past');
+                        for(var i=0;i&lt;data['prev-days'].length; i++)
+                        {
+                            var name = data['prev-days'][i];
+                            name += (data['prev-days'][i] &gt; 1) ? lang('days') : lang('day');
+                            html += ' &lt;a href=&quot;javascript:;&quot; shortcut=&quot;day,-'+data['prev-days'][i]+'&quot;&gt;'+name+'&lt;/a&gt;';
+                        }
+                        html+='&lt;/span&gt;';
+                    }
+
+                    if (data['next-days'] &amp;&amp; data['next-days'].length &gt; 0)
+                    {
+                        html += '&amp;nbsp;&lt;span class=&quot;next-days&quot;&gt;'+lang('following');
+                        for(var i=0;i&lt;data['next-days'].length; i++)
+                        {
+                            var name = data['next-days'][i];
+                            name += (data['next-days'][i] &gt; 1) ? lang('days') : lang('day');
+                            html += ' &lt;a href=&quot;javascript:;&quot; shortcut=&quot;day,'+data['next-days'][i]+'&quot;&gt;'+name+'&lt;/a&gt;';
+                        }
+                        html+= '&lt;/span&gt;';
+                    }
+
+                    if (data['prev'] &amp;&amp; data['prev'].length &gt; 0)
+                    {
+                        html += '&amp;nbsp;&lt;span class=&quot;prev-buttons&quot;&gt;'+lang('previous');
+                        for(var i=0;i&lt;data['prev'].length; i++)
+                        {
+                            var name = lang('prev-'+data['prev'][i]);
+                            html += ' &lt;a href=&quot;javascript:;&quot; shortcut=&quot;prev,'+data['prev'][i]+'&quot;&gt;'+name+'&lt;/a&gt;';
+                        }
+                        html+='&lt;/span&gt;';
+                    }
+
+                    if (data['next'] &amp;&amp; data['next'].length &gt; 0)
+                    {
+                        html += '&amp;nbsp;&lt;span class=&quot;next-buttons&quot;&gt;'+lang('next');
+                        for(var i=0;i&lt;data['next'].length; i++)
+                        {
+                            var name = lang('next-'+data['next'][i]);
+                            html += ' &lt;a href=&quot;javascript:;&quot; shortcut=&quot;next,'+data['next'][i]+'&quot;&gt;'+name+'&lt;/a&gt;';
+                        }
+                        html+='&lt;/span&gt;';
+                    }
+                }
+
+                if (opt.customShortcuts)
+                {
+                    for(var i=0;i&lt;opt.customShortcuts.length; i++)
+                    {
+                        var sh = opt.customShortcuts[i];
+                        html+= '&amp;nbsp;&lt;span class=&quot;custom-shortcut&quot;&gt;&lt;a href=&quot;javascript:;&quot; shortcut=&quot;custom&quot;&gt;'+sh.name+'&lt;/a&gt;&lt;/span&gt;';
+                    }
+                }
+
+                html +='&lt;/div&gt;';
+            }
+            html += '&lt;/div&gt;';
+
+
+            return $(html);
+        }
+
+        function getHideClass()
+        {
+            if (opt.autoClose === true) {
+                return 'hide';
+            }
+            return '';
+        }
+
+        function getWeekHead()
+        {
+            if (opt.startOfWeek == 'monday')
+            {
+                return '&lt;th&gt;'+lang('week-1')+'&lt;/th&gt;\
+                    &lt;th&gt;'+lang('week-2')+'&lt;/th&gt;\
+                    &lt;th&gt;'+lang('week-3')+'&lt;/th&gt;\
+                    &lt;th&gt;'+lang('week-4')+'&lt;/th&gt;\
+                    &lt;th&gt;'+lang('week-5')+'&lt;/th&gt;\
+                    &lt;th&gt;'+lang('week-6')+'&lt;/th&gt;\
+                    &lt;th&gt;'+lang('week-7')+'&lt;/th&gt;';
+            }
+            else
+            {
+                return '&lt;th&gt;'+lang('week-7')+'&lt;/th&gt;\
+                    &lt;th&gt;'+lang('week-1')+'&lt;/th&gt;\
+                    &lt;th&gt;'+lang('week-2')+'&lt;/th&gt;\
+                    &lt;th&gt;'+lang('week-3')+'&lt;/th&gt;\
+                    &lt;th&gt;'+lang('week-4')+'&lt;/th&gt;\
+                    &lt;th&gt;'+lang('week-5')+'&lt;/th&gt;\
+                    &lt;th&gt;'+lang('week-6')+'&lt;/th&gt;';
+            }
+        }
+
+        function getGapHTML()
+        {
+            var html = ['&lt;div class=&quot;gap-top-mask&quot;&gt;&lt;/div&gt;&lt;div class=&quot;gap-bottom-mask&quot;&gt;&lt;/div&gt;&lt;div class=&quot;gap-lines&quot;&gt;'];
+            for(var i=0;i&lt;20;i++)
+            {
+                html.push('&lt;div class=&quot;gap-line&quot;&gt;\
+                    &lt;div class=&quot;gap-1&quot;&gt;&lt;/div&gt;\
+                    &lt;div class=&quot;gap-2&quot;&gt;&lt;/div&gt;\
+                    &lt;div class=&quot;gap-3&quot;&gt;&lt;/div&gt;\
+                &lt;/div&gt;');
+            }
+            html.push('&lt;/div&gt;');
+            return html.join('');
+        }
+
+        function createMonthHTML(d)
+        {
+            var days = [];
+            d.setDate(1);
+            var lastMonth = new Date(d.getTime() - 86400000);
+            var now = new Date();
+
+            var dayOfWeek = d.getDay();
+            if((dayOfWeek == 0) &amp;&amp; (opt.startOfWeek == 'monday')) {
+                // add one week
+                dayOfWeek = 7;
+            }
+
+            if (dayOfWeek &gt; 0)
+            {
+                for (var i = dayOfWeek; i &gt; 0; i--)
+                {
+                    var day = new Date(d.getTime() - 86400000*i);
+                    var valid = true;
+                    if (opt.startDate &amp;&amp; compare_day(day,opt.startDate) &lt; 0) valid = false;
+                    if (opt.endDate &amp;&amp; compare_day(day,opt.endDate) &gt; 0) valid = false;
+                    days.push({type:'lastMonth',day: day.getDate(),time:day.getTime(), valid:valid });
+                }
+            }
+            var toMonth = d.getMonth();
+            for(var i=0; i&lt;40; i++)
+            {
+                var today = moment(d).add('days', i).toDate();
+                var valid = true;
+                if (opt.startDate &amp;&amp; compare_day(today,opt.startDate) &lt; 0) valid = false;
+                if (opt.endDate &amp;&amp; compare_day(today,opt.endDate) &gt; 0) valid = false;
+                days.push({type: today.getMonth() == toMonth ? 'toMonth' : 'nextMonth',day: today.getDate(),time:today.getTime(), valid:valid });
+            }
+            var html = [];
+            for(var week=0; week&lt;6; week++)
+            {
+                if (days[week*7].type == 'nextMonth') break;
+                html.push('&lt;tr&gt;');
+                for(var day = 0; day&lt;7; day++)
+                {
+                    var _day = (opt.startOfWeek == 'monday') ? day+1 : day;
+                    var today = days[week*7+_day];
+                    var highlightToday = moment(today.time).format('L') == moment(now).format('L');
+                    today.extraClass = '';
+                    today.tooltip = '';
+                    if(opt.beforeShowDay &amp;&amp; typeof opt.beforeShowDay == 'function')
+                    {
+                        var _r = opt.beforeShowDay(moment(today.time).toDate());
+                        today.valid = _r[0];
+                        today.extraClass = _r[1] || '';
+                        today.tooltip = _r[2] || '';
+                        if (today.tooltip != '') today.extraClass += ' has-tooltip ';
+                    }
+                    html.push('&lt;td&gt;&lt;div time=&quot;'+today.time+'&quot; title=&quot;'+today.tooltip+'&quot; class=&quot;day '+today.type+' '+today.extraClass+' '+(today.valid ? 'valid' : 'invalid')+' '+(highlightToday?'real-today':'')+'&quot;&gt;'+today.day+'&lt;/div&gt;&lt;/td&gt;');
+                }
+                html.push('&lt;/tr&gt;');
+            }
+            return html.join('');
+        }
+
+        function getLanguages()
+        {
+            if (opt.language == 'auto')
+            {
+                var language = navigator.language ? navigator.language : navigator.browserLanguage;
+                if (!language) return $.dateRangePickerLanguages['en'];
+                var language = language.toLowerCase();
+                for(var key in $.dateRangePickerLanguages)
+                {
+                    if (language.indexOf(key) != -1)
+                    {
+                        return $.dateRangePickerLanguages[key];
+                    }
+                }
+                return $.dateRangePickerLanguages['en'];
+            }
+            else if ( opt.language &amp;&amp; opt.language in $.dateRangePickerLanguages)
+            {
+                return $.dateRangePickerLanguages[opt.language];
+            }
+            else
+            {
+                return $.dateRangePickerLanguages['en'];
+            }
+        }
+
+        function lang(t)
+        {
+            return (t in langs)? langs[t] : t;
+        }
+
+
+    };
+})(jQuery);
</ins><span class="cx">Property changes on: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery.daterangepicker.js
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnexecutable"></a>
<div class="addfile"><h4>Added: svn:executable</h4></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardExternalmomentminjs"></a>
<div class="addfile"><h4>Added: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/moment.min.js (0 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/moment.min.js                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/moment.min.js        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+//! moment.js
+//! version : 2.6.0
+//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
+//! license : MIT
+//! momentjs.com
+(function(a){function b(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function c(a,b){function c(){ib.suppressDeprecationWarnings===!1&amp;&amp;&quot;undefined&quot;!=typeof console&amp;&amp;console.warn&amp;&amp;console.warn(&quot;Deprecation warning: &quot;+a)}var d=!0;return i(function(){return d&amp;&amp;(c(),d=!1),b.apply(this,arguments)},b)}function d(a,b){return function(c){return l(a.call(this,c),b)}}function e(a,b){return function(c){return this.lang().ordinal(a.call(this,c),b)}}function f(){}function g(a){y(a),i(this,a)}function h(a){var b=r(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._bubble()}function i(a,b){for(var c in b)b.hasOwnProperty(c)&amp;&amp;(a[c]=b[c]);return b.hasOwnProperty(&quot;toString&quot;)&amp;&amp;(a.toString=b.toString),b.hasOwnProperty(&quot;valueOf&quot;)&amp;&amp;(a.valueOf=b.valueOf),a}function j(a){var b,c={};for(b in a)a.hasOwnProperty(b)&amp;&amp;wb.hasOwnProperty(b)&amp;&amp;(c[b]=a[b]);return c}function k(a){return 0&gt;a?Math.ceil(a):Math.floor(a)}function l(a,b,c){for(var d=&quot;&quot;+Math.abs(a),e=a&gt;=0;d.length&lt;b;)d=&quot;0&quot;+d;return(e?c?&quot;+&quot;:&quot;&quot;:&quot;-&quot;)+d}function m(a,b,c,d){var e=b._milliseconds,f=b._days,g=b._months;d=null==d?!0:d,e&amp;&amp;a._d.setTime(+a._d+e*c),f&amp;&amp;db(a,&quot;Date&quot;,cb(a,&quot;Date&quot;)+f*c),g&amp;&amp;bb(a,cb(a,&quot;Month&quot;)+g*c),d&amp;&amp;ib.updateOffset(a,f||g)}function n(a){return&quot;[object Array]&quot;===Object.prototype.toString.call(a)}function o(a){return&quot;[object Date]&quot;===Object.prototype.toString.call(a)||a instanceof Date}function p(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e&gt;d;d++)(c&amp;&amp;a[d]!==b[d]||!c&amp;&amp;t(a[d])!==t(b[d]))&amp;&amp;g++;return g+f}function q(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,&quot;$1&quot;);a=Zb[a]||$b[b]||b}return a}function r(a){var b,c,d={};for(c in a)a.hasOwnProperty(c)&amp;&amp;(b=q(c),b&amp;&amp;(d[b]=a[c]));return d}function s(b){var c,d;if(0===b.indexOf(&quot;week&quot;))c=7,d=&quot;day&quot;;else{if(0!==b.indexOf(&quot;month&quot;))return;c=12,d=&quot;month&quot;}ib[b]=function(e,f){var g,h,i=ib.fn._lang[b],j=[];if(&quot;number&quot;==typeof e&amp;&amp;(f=e,e=a),h=function(a){var b=ib().utc().set(d,a);return i.call(ib.fn._lang,b,e||&quot;&quot;)},null!=f)return h(f);for(g=0;c&gt;g;g++)j.push(h(g));return j}}function t(a){var b=+a,c=0;return 0!==b&amp;&amp;isFinite(b)&amp;&amp;(c=b&gt;=0?Math.floor(b):Math.ceil(b)),c}function u(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function v(a,b,c){return $(ib([a,11,31+b-c]),b,c).week}function w(a){return x(a)?366:365}function x(a){return a%4===0&amp;&amp;a%100!==0||a%400===0}function y(a){var b;a._a&amp;&amp;-2===a._pf.overflow&amp;&amp;(b=a._a[pb]&lt;0||a._a[pb]&gt;11?pb:a._a[qb]&lt;1||a._a[qb]&gt;u(a._a[ob],a._a[pb])?qb:a._a[rb]&lt;0||a._a[rb]&gt;23?rb:a._a[sb]&lt;0||a._a[sb]&gt;59?sb:a._a[tb]&lt;0||a._a[tb]&gt;59?tb:a._a[ub]&lt;0||a._a[ub]&gt;999?ub:-1,a._pf._overflowDayOfYear&amp;&amp;(ob&gt;b||b&gt;qb)&amp;&amp;(b=qb),a._pf.overflow=b)}function z(a){return null==a._isValid&amp;&amp;(a._isValid=!isNaN(a._d.getTime())&amp;&amp;a._pf.overflow&lt;0&amp;&amp;!a._pf.empty&amp;&amp;!a._pf.invalidMonth&amp;&amp;!a._pf.nullInput&amp;&amp;!a._pf.invalidFormat&amp;&amp;!a._pf.userInvalidated,a._strict&amp;&amp;(a._isValid=a._isValid&amp;&amp;0===a._pf.charsLeftOver&amp;&amp;0===a._pf.unusedTokens.length)),a._isValid}function A(a){return a?a.toLowerCase().replace(&quot;_&quot;,&quot;-&quot;):a}function B(a,b){return b._isUTC?ib(a).zone(b._offset||0):ib(a).local()}function C(a,b){return b.abbr=a,vb[a]||(vb[a]=new f),vb[a].set(b),vb[a]}function D(a){delete vb[a]}function E(a){var b,c,d,e,f=0,g=function(a){if(!vb[a]&amp;&amp;xb)try{require(&quot;./lang/&quot;+a)}catch(b){}return vb[a]};if(!a)return ib.fn._lang;if(!n(a)){if(c=g(a))return c;a=[a]}for(;f&lt;a.length;){for(e=A(a[f]).split(&quot;-&quot;),b=e.length,d=A(a[f+1]),d=d?d.split(&quot;-&quot;):null;b&gt;0;){if(c=g(e.slice(0,b).join(&quot;-&quot;)))return c;if(d&amp;&amp;d.length&gt;=b&amp;&amp;p(e,d,!0)&gt;=b-1)break;b--}f++}return ib.fn._lang}function F(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,&quot;&quot;):a.replace(/\\/g,&quot;&quot;)}function G(a){var b,c,d=a.match(Bb);for(b=0,c=d.length;c&gt;b;b++)d[b]=cc[d[b]]?cc[d[b]]:F(d[b]);return function(e){var f=&quot;&quot;;for(b=0;c&gt;b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function H(a,b){return a.isValid()?(b=I(b,a.lang()),_b[b]||(_b[b]=G(b)),_b[b](a)):a.lang().invalidDate()}function I(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Cb.lastIndex=0;d&gt;=0&amp;&amp;Cb.test(a);)a=a.replace(Cb,c),Cb.lastIndex=0,d-=1;return a}function J(a,b){var c,d=b._strict;switch(a){case&quot;Q&quot;:return Nb;case&quot;DDDD&quot;:return Pb;case&quot;YYYY&quot;:case&quot;GGGG&quot;:case&quot;gggg&quot;:return d?Qb:Fb;case&quot;Y&quot;:case&quot;G&quot;:case&quot;g&quot;:return Sb;case&quot;YYYYYY&quot;:case&quot;YYYYY&quot;:case&quot;GGGGG&quot;:case&quot;ggggg&quot;:return d?Rb:Gb;case&quot;S&quot;:if(d)return Nb;case&quot;SS&quot;:if(d)return Ob;case&quot;SSS&quot;:if(d)return Pb;case&quot;DDD&quot;:return Eb;case&quot;MMM&quot;:case&quot;MMMM&quot;:case&quot;dd&quot;:case&quot;ddd&quot;:case&quot;dddd&quot;:return Ib;case&quot;a&quot;:case&quot;A&quot;:return E(b._l)._meridiemParse;case&quot;X&quot;:return Lb;case&quot;Z&quot;:case&quot;ZZ&quot;:return Jb;case&quot;T&quot;:return Kb;case&quot;SSSS&quot;:return Hb;case&quot;MM&quot;:case&quot;DD&quot;:case&quot;YY&quot;:case&quot;GG&quot;:case&quot;gg&quot;:case&quot;HH&quot;:case&quot;hh&quot;:case&quot;mm&quot;:case&quot;ss&quot;:case&quot;ww&quot;:case&quot;WW&quot;:return d?Ob:Db;case&quot;M&quot;:case&quot;D&quot;:case&quot;d&quot;:case&quot;H&quot;:case&quot;h&quot;:case&quot;m&quot;:case&quot;s&quot;:case&quot;w&quot;:case&quot;W&quot;:case&quot;e&quot;:case&quot;E&quot;:return Db;case&quot;Do&quot;:return Mb;default:return c=new RegExp(R(Q(a.replace(&quot;\\&quot;,&quot;&quot;)),&quot;i&quot;))}}function K(a){a=a||&quot;&quot;;var b=a.match(Jb)||[],c=b[b.length-1]||[],d=(c+&quot;&quot;).match(Xb)||[&quot;-&quot;,0,0],e=+(60*d[1])+t(d[2]);return&quot;+&quot;===d[0]?-e:e}function L(a,b,c){var d,e=c._a;switch(a){case&quot;Q&quot;:null!=b&amp;&amp;(e[pb]=3*(t(b)-1));break;case&quot;M&quot;:case&quot;MM&quot;:null!=b&amp;&amp;(e[pb]=t(b)-1);break;case&quot;MMM&quot;:case&quot;MMMM&quot;:d=E(c._l).monthsParse(b),null!=d?e[pb]=d:c._pf.invalidMonth=b;break;case&quot;D&quot;:case&quot;DD&quot;:null!=b&amp;&amp;(e[qb]=t(b));break;case&quot;Do&quot;:null!=b&amp;&amp;(e[qb]=t(parseInt(b,10)));break;case&quot;DDD&quot;:case&quot;DDDD&quot;:null!=b&amp;&amp;(c._dayOfYear=t(b));break;case&quot;YY&quot;:e[ob]=ib.parseTwoDigitYear(b);break;case&quot;YYYY&quot;:case&quot;YYYYY&quot;:case&quot;YYYYYY&quot;:e[ob]=t(b);break;case&quot;a&quot;:case&quot;A&quot;:c._isPm=E(c._l).isPM(b);break;case&quot;H&quot;:case&quot;HH&quot;:case&quot;h&quot;:case&quot;hh&quot;:e[rb]=t(b);break;case&quot;m&quot;:case&quot;mm&quot;:e[sb]=t(b);break;case&quot;s&quot;:case&quot;ss&quot;:e[tb]=t(b);break;case&quot;S&quot;:case&quot;SS&quot;:case&quot;SSS&quot;:case&quot;SSSS&quot;:e[ub]=t(1e3*(&quot;0.&quot;+b));break;case&quot;X&quot;:c._d=new Date(1e3*parseFloat(b));break;case&quot;Z&quot;:case&quot;ZZ&quot;:c._useUTC=!0,c._tzm=K(b);break;case&quot;w&quot;:case&quot;ww&quot;:case&quot;W&quot;:case&quot;WW&quot;:case&quot;d&quot;:case&quot;dd&quot;:case&quot;ddd&quot;:case&quot;dddd&quot;:case&quot;e&quot;:case&quot;E&quot;:a=a.substr(0,1);case&quot;gg&quot;:case&quot;gggg&quot;:case&quot;GG&quot;:case&quot;GGGG&quot;:case&quot;GGGGG&quot;:a=a.substr(0,2),b&amp;&amp;(c._w=c._w||{},c._w[a]=b)}}function M(a){var b,c,d,e,f,g,h,i,j,k,l=[];if(!a._d){for(d=O(a),a._w&amp;&amp;null==a._a[qb]&amp;&amp;null==a._a[pb]&amp;&amp;(f=function(b){var c=parseInt(b,10);return b?b.length&lt;3?c&gt;68?1900+c:2e3+c:c:null==a._a[ob]?ib().weekYear():a._a[ob]},g=a._w,null!=g.GG||null!=g.W||null!=g.E?h=_(f(g.GG),g.W||1,g.E,4,1):(i=E(a._l),j=null!=g.d?X(g.d,i):null!=g.e?parseInt(g.e,10)+i._week.dow:0,k=parseInt(g.w,10)||1,null!=g.d&amp;&amp;j&lt;i._week.dow&amp;&amp;k++,h=_(f(g.gg),k,j,i._week.doy,i._week.dow)),a._a[ob]=h.year,a._dayOfYear=h.dayOfYear),a._dayOfYear&amp;&amp;(e=null==a._a[ob]?d[ob]:a._a[ob],a._dayOfYear&gt;w(e)&amp;&amp;(a._pf._overflowDayOfYear=!0),c=W(e,0,a._dayOfYear),a._a[pb]=c.getUTCMonth(),a._a[qb]=c.getUTCDate()),b=0;3&gt;b&amp;&amp;null==a._a[b];++b)a._a[b]=l[b]=d[b];for(;7&gt;b;b++)a._a[b]=l[b]=null==a._a[b]?2===b?1:0:a._a[b];l[rb]+=t((a._tzm||0)/60),l[sb]+=t((a._tzm||0)%60),a._d=(a._useUTC?W:V).apply(null,l)}}function N(a){var b;a._d||(b=r(a._i),a._a=[b.year,b.month,b.day,b.hour,b.minute,b.second,b.millisecond],M(a))}function O(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function P(a){a._a=[],a._pf.empty=!0;var b,c,d,e,f,g=E(a._l),h=&quot;&quot;+a._i,i=h.length,j=0;for(d=I(a._f,g).match(Bb)||[],b=0;b&lt;d.length;b++)e=d[b],c=(h.match(J(e,a))||[])[0],c&amp;&amp;(f=h.substr(0,h.indexOf(c)),f.length&gt;0&amp;&amp;a._pf.unusedInput.push(f),h=h.slice(h.indexOf(c)+c.length),j+=c.length),cc[e]?(c?a._pf.empty=!1:a._pf.unusedTokens.push(e),L(e,c,a)):a._strict&amp;&amp;!c&amp;&amp;a._pf.unusedTokens.push(e);a._pf.charsLeftOver=i-j,h.length&gt;0&amp;&amp;a._pf.unusedInput.push(h),a._isPm&amp;&amp;a._a[rb]&lt;12&amp;&amp;(a._a[rb]+=12),a._isPm===!1&amp;&amp;12===a._a[rb]&amp;&amp;(a._a[rb]=0),M(a),y(a)}function Q(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function R(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,&quot;\\$&amp;&quot;)}function S(a){var c,d,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,void(a._d=new Date(0/0));for(f=0;f&lt;a._f.length;f++)g=0,c=i({},a),c._pf=b(),c._f=a._f[f],P(c),z(c)&amp;&amp;(g+=c._pf.charsLeftOver,g+=10*c._pf.unusedTokens.length,c._pf.score=g,(null==e||e&gt;g)&amp;&amp;(e=g,d=c));i(a,d||c)}function T(a){var b,c,d=a._i,e=Tb.exec(d);if(e){for(a._pf.iso=!0,b=0,c=Vb.length;c&gt;b;b++)if(Vb[b][1].exec(d)){a._f=Vb[b][0]+(e[6]||&quot; &quot;);break}for(b=0,c=Wb.length;c&gt;b;b++)if(Wb[b][1].exec(d)){a._f+=Wb[b][0];break}d.match(Jb)&amp;&amp;(a._f+=&quot;Z&quot;),P(a)}else ib.createFromInputFallback(a)}function U(b){var c=b._i,d=yb.exec(c);c===a?b._d=new Date:d?b._d=new Date(+d[1]):&quot;string&quot;==typeof c?T(b):n(c)?(b._a=c.slice(0),M(b)):o(c)?b._d=new Date(+c):&quot;object&quot;==typeof c?N(b):&quot;number&quot;==typeof c?b._d=new Date(c):ib.createFromInputFallback(b)}function V(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970&gt;a&amp;&amp;h.setFullYear(a),h}function W(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970&gt;a&amp;&amp;b.setUTCFullYear(a),b}function X(a,b){if(&quot;string&quot;==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),&quot;number&quot;!=typeof a)return null}else a=parseInt(a,10);return a}function Y(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function Z(a,b,c){var d=nb(Math.abs(a)/1e3),e=nb(d/60),f=nb(e/60),g=nb(f/24),h=nb(g/365),i=45&gt;d&amp;&amp;[&quot;s&quot;,d]||1===e&amp;&amp;[&quot;m&quot;]||45&gt;e&amp;&amp;[&quot;mm&quot;,e]||1===f&amp;&amp;[&quot;h&quot;]||22&gt;f&amp;&amp;[&quot;hh&quot;,f]||1===g&amp;&amp;[&quot;d&quot;]||25&gt;=g&amp;&amp;[&quot;dd&quot;,g]||45&gt;=g&amp;&amp;[&quot;M&quot;]||345&gt;g&amp;&amp;[&quot;MM&quot;,nb(g/30)]||1===h&amp;&amp;[&quot;y&quot;]||[&quot;yy&quot;,h];return i[2]=b,i[3]=a&gt;0,i[4]=c,Y.apply({},i)}function $(a,b,c){var d,e=c-b,f=c-a.day();return f&gt;e&amp;&amp;(f-=7),e-7&gt;f&amp;&amp;(f+=7),d=ib(a).add(&quot;d&quot;,f),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function _(a,b,c,d,e){var f,g,h=W(a,0,1).getUTCDay();return c=null!=c?c:e,f=e-h+(h&gt;d?7:0)-(e&gt;h?7:0),g=7*(b-1)+(c-e)+f+1,{year:g&gt;0?a:a-1,dayOfYear:g&gt;0?g:w(a-1)+g}}function ab(b){var c=b._i,d=b._f;return null===c||d===a&amp;&amp;&quot;&quot;===c?ib.invalid({nullInput:!0}):(&quot;string&quot;==typeof c&amp;&amp;(b._i=c=E().preparse(c)),ib.isMoment(c)?(b=j(c),b._d=new Date(+c._d)):d?n(d)?S(b):P(b):U(b),new g(b))}function bb(a,b){var c;return&quot;string&quot;==typeof b&amp;&amp;(b=a.lang().monthsParse(b),&quot;number&quot;!=typeof b)?a:(c=Math.min(a.date(),u(a.year(),b)),a._d[&quot;set&quot;+(a._isUTC?&quot;UTC&quot;:&quot;&quot;)+&quot;Month&quot;](b,c),a)}function cb(a,b){return a._d[&quot;get&quot;+(a._isUTC?&quot;UTC&quot;:&quot;&quot;)+b]()}function db(a,b,c){return&quot;Month&quot;===b?bb(a,c):a._d[&quot;set&quot;+(a._isUTC?&quot;UTC&quot;:&quot;&quot;)+b](c)}function eb(a,b){return function(c){return null!=c?(db(this,a,c),ib.updateOffset(this,b),this):cb(this,a)}}function fb(a){ib.duration.fn[a]=function(){return this._data[a]}}function gb(a,b){ib.duration.fn[&quot;as&quot;+a]=function(){return+this/b}}function hb(a){&quot;undefined&quot;==typeof ender&amp;&amp;(jb=mb.moment,mb.moment=a?c(&quot;Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.&quot;,ib):ib)}for(var ib,jb,kb,lb=&quot;2.6.0&quot;,mb=&quot;undefined&quot;!=typeof global?global:this,nb=Math.round,ob=0,pb=1,qb=2,rb=3,sb=4,tb=5,ub=6,vb={},wb={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_isUTC:null,_offset:null,_pf:null,_lang:null},xb=&quot;undefined&quot;!=typeof module&amp;&amp;module.exports,yb=/^\/?Date\((\-?\d+)/i,zb=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Ab=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Bb=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,Cb=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,Db=/\d\d?/,Eb=/\d{1,3}/,Fb=/\d{1,4}/,Gb=/[+\-]?\d{1,6}/,Hb=/\d+/,Ib=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Jb=/Z|[\+\-]\d\d:?\d\d/gi,Kb=/T/i,Lb=/[\+\-]?\d+(\.\d{1,3})?/,Mb=/\d{1,2}/,Nb=/\d/,Ob=/\d\d/,Pb=/\d{3}/,Qb=/\d{4}/,Rb=/[+-]?\d{6}/,Sb=/[+-]?\d+/,Tb=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ub=&quot;YYYY-MM-DDTHH:mm:ssZ&quot;,Vb=[[&quot;YYYYYY-MM-DD&quot;,/[+-]\d{6}-\d{2}-\d{2}/],[&quot;YYYY-MM-DD&quot;,/\d{4}-\d{2}-\d{2}/],[&quot;GGGG-[W]WW-E&quot;,/\d{4}-W\d{2}-\d/],[&quot;GGGG-[W]WW&quot;,/\d{4}-W\d{2}/],[&quot;YYYY-DDD&quot;,/\d{4}-\d{3}/]],Wb=[[&quot;HH:mm:ss.SSSS&quot;,/(T| )\d\d:\d\d:\d\d\.\d+/],[&quot;HH:mm:ss&quot;,/(T| )\d\d:\d\d:\d\d/],[&quot;HH:mm&quot;,/(T| )\d\d:\d\d/],[&quot;HH&quot;,/(T| )\d\d/]],Xb=/([\+\-]|\d\d)/gi,Yb=(&quot;Date|Hours|Minutes|Seconds|Milliseconds&quot;.split(&quot;|&quot;),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),Zb={ms:&quot;millisecond&quot;,s:&quot;second&quot;,m:&quot;minute&quot;,h:&quot;hour&quot;,d:&quot;day&quot;,D:&quot;date&quot;,w:&quot;week&quot;,W:&quot;isoWeek&quot;,M:&quot;month&quot;,Q:&quot;quarter&quot;,y:&quot;year&quot;,DDD:&quot;dayOfYear&quot;,e:&quot;weekday&quot;,E:&quot;isoWeekday&quot;,gg:&quot;weekYear&quot;,GG:&quot;isoWeekYear&quot;},$b={dayofyear:&quot;dayOfYear&quot;,isoweekday:&quot;isoWeekday&quot;,isoweek:&quot;isoWeek&quot;,weekyear:&quot;weekYear&quot;,isoweekyear:&quot;isoWeekYear&quot;},_b={},ac=&quot;DDD w W M D d&quot;.split(&quot; &quot;),bc=&quot;M D H h m s w W&quot;.split(&quot; &quot;),cc={M:function(){return this.month()+1},MMM:function(a){return this.lang().monthsShort(this,a)},MMMM:function(a){return this.lang().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.lang().weekdaysMin(this,a)},ddd:function(a){return this.lang().weekdaysShort(this,a)},dddd:function(a){return this.lang().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return l(this.year()%100,2)},YYYY:function(){return l(this.year(),4)},YYYYY:function(){return l(this.year(),5)},YYYYYY:function(){var a=this.year(),b=a&gt;=0?&quot;+&quot;:&quot;-&quot;;return b+l(Math.abs(a),6)},gg:function(){return l(this.weekYear()%100,2)},gggg:function(){return l(this.weekYear(),4)},ggggg:function(){return l(this.weekYear(),5)},GG:function(){return l(this.isoWeekYear()%100,2)},GGGG:function(){return l(this.isoWeekYear(),4)},GGGGG:function(){return l(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().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 t(this.milliseconds()/100)},SS:function(){return l(t(this.milliseconds()/10),2)},SSS:function(){return l(this.milliseconds(),3)},SSSS:function(){return l(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b=&quot;+&quot;;return 0&gt;a&amp;&amp;(a=-a,b=&quot;-&quot;),b+l(t(a/60),2)+&quot;:&quot;+l(t(a)%60,2)},ZZ:function(){var a=-this.zone(),b=&quot;+&quot;;return 0&gt;a&amp;&amp;(a=-a,b=&quot;-&quot;),b+l(t(a/60),2)+l(t(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},dc=[&quot;months&quot;,&quot;monthsShort&quot;,&quot;weekdays&quot;,&quot;weekdaysShort&quot;,&quot;weekdaysMin&quot;];ac.length;)kb=ac.pop(),cc[kb+&quot;o&quot;]=e(cc[kb],kb);for(;bc.length;)kb=bc.pop(),cc[kb+kb]=d(cc[kb],2);for(cc.DDDD=d(cc.DDD,3),i(f.prototype,{set:function(a){var b,c;for(c in a)b=a[c],&quot;function&quot;==typeof b?this[c]=b:this[&quot;_&quot;+c]=b},_months:&quot;January_February_March_April_May_June_July_August_September_October_November_December&quot;.split(&quot;_&quot;),months:function(a){return this._months[a.month()]},_monthsShort:&quot;Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec&quot;.split(&quot;_&quot;),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a){var b,c,d;for(this._monthsParse||(this._monthsParse=[]),b=0;12&gt;b;b++)if(this._monthsParse[b]||(c=ib.utc([2e3,b]),d=&quot;^&quot;+this.months(c,&quot;&quot;)+&quot;|^&quot;+this.monthsShort(c,&quot;&quot;),this._monthsParse[b]=new RegExp(d.replace(&quot;.&quot;,&quot;&quot;),&quot;i&quot;)),this._monthsParse[b].test(a))return b},_weekdays:&quot;Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday&quot;.split(&quot;_&quot;),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:&quot;Sun_Mon_Tue_Wed_Thu_Fri_Sat&quot;.split(&quot;_&quot;),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:&quot;Su_Mo_Tu_We_Th_Fr_Sa&quot;.split(&quot;_&quot;),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7&gt;b;b++)if(this._weekdaysParse[b]||(c=ib([2e3,1]).day(b),d=&quot;^&quot;+this.weekdays(c,&quot;&quot;)+&quot;|^&quot;+this.weekdaysShort(c,&quot;&quot;)+&quot;|^&quot;+this.weekdaysMin(c,&quot;&quot;),this._weekdaysParse[b]=new RegExp(d.replace(&quot;.&quot;,&quot;&quot;),&quot;i&quot;)),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LT:&quot;h:mm A&quot;,L:&quot;MM/DD/YYYY&quot;,LL:&quot;MMMM D YYYY&quot;,LLL:&quot;MMMM D YYYY LT&quot;,LLLL:&quot;dddd, MMMM D YYYY LT&quot;},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&amp;&amp;this._longDateFormat[a.toUpperCase()]&amp;&amp;(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return&quot;p&quot;===(a+&quot;&quot;).toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a&gt;11?c?&quot;pm&quot;:&quot;PM&quot;:c?&quot;am&quot;:&quot;AM&quot;},_calendar:{sameDay:&quot;[Today at] LT&quot;,nextDay:&quot;[Tomorrow at] LT&quot;,nextWeek:&quot;dddd [at] LT&quot;,lastDay:&quot;[Yesterday at] LT&quot;,lastWeek:&quot;[Last] dddd [at] LT&quot;,sameElse:&quot;L&quot;},calendar:function(a,b){var c=this._calendar[a];return&quot;function&quot;==typeof c?c.apply(b):c},_relativeTime:{future:&quot;in %s&quot;,past:&quot;%s ago&quot;,s:&quot;a few seconds&quot;,m:&quot;a minute&quot;,mm:&quot;%d minutes&quot;,h:&quot;an hour&quot;,hh:&quot;%d hours&quot;,d:&quot;a day&quot;,dd:&quot;%d days&quot;,M:&quot;a month&quot;,MM:&quot;%d months&quot;,y:&quot;a year&quot;,yy:&quot;%d years&quot;},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return&quot;function&quot;==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a&gt;0?&quot;future&quot;:&quot;past&quot;];return&quot;function&quot;==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace(&quot;%d&quot;,a)},_ordinal:&quot;%d&quot;,preparse:function(a){return a},postformat:function(a){return a},week:function(a){return $(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:&quot;Invalid date&quot;,invalidDate:function(){return this._invalidDate}}),ib=function(c,d,e,f){var g;return&quot;boolean&quot;==typeof e&amp;&amp;(f=e,e=a),g={},g._isAMomentObject=!0,g._i=c,g._f=d,g._l=e,g._strict=f,g._isUTC=!1,g._pf=b(),ab(g)},ib.suppressDeprecationWarnings=!1,ib.createFromInputFallback=c(&quot;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.&quot;,function(a){a._d=new Date(a._i)}),ib.utc=function(c,d,e,f){var g;return&quot;boolean&quot;==typeof e&amp;&amp;(f=e,e=a),g={},g._isAMomentObject=!0,g._useUTC=!0,g._isUTC=!0,g._l=e,g._i=c,g._f=d,g._strict=f,g._pf=b(),ab(g).utc()},ib.unix=function(a){return ib(1e3*a)},ib.duration=function(a,b){var c,d,e,f=a,g=null;return ib.isDuration(a)?f={ms:a._milliseconds,d:a._days,M:a._months}:&quot;number&quot;==typeof a?(f={},b?f[b]=a:f.milliseconds=a):(g=zb.exec(a))?(c=&quot;-&quot;===g[1]?-1:1,f={y:0,d:t(g[qb])*c,h:t(g[rb])*c,m:t(g[sb])*c,s:t(g[tb])*c,ms:t(g[ub])*c}):(g=Ab.exec(a))&amp;&amp;(c=&quot;-&quot;===g[1]?-1:1,e=function(a){var b=a&amp;&amp;parseFloat(a.replace(&quot;,&quot;,&quot;.&quot;));return(isNaN(b)?0:b)*c},f={y:e(g[2]),M:e(g[3]),d:e(g[4]),h:e(g[5]),m:e(g[6]),s:e(g[7]),w:e(g[8])}),d=new h(f),ib.isDuration(a)&amp;&amp;a.hasOwnProperty(&quot;_lang&quot;)&amp;&amp;(d._lang=a._lang),d},ib.version=lb,ib.defaultFormat=Ub,ib.momentProperties=wb,ib.updateOffset=function(){},ib.lang=function(a,b){var c;return a?(b?C(A(a),b):null===b?(D(a),a=&quot;en&quot;):vb[a]||E(a),c=ib.duration.fn._lang=ib.fn._lang=E(a),c._abbr):ib.fn._lang._abbr},ib.langData=function(a){return a&amp;&amp;a._lang&amp;&amp;a._lang._abbr&amp;&amp;(a=a._lang._abbr),E(a)},ib.isMoment=function(a){return a instanceof g||null!=a&amp;&amp;a.hasOwnProperty(&quot;_isAMomentObject&quot;)},ib.isDuration=function(a){return a instanceof h},kb=dc.length-1;kb&gt;=0;--kb)s(dc[kb]);ib.normalizeUnits=function(a){return q(a)},ib.invalid=function(a){var b=ib.utc(0/0);return null!=a?i(b._pf,a):b._pf.userInvalidated=!0,b},ib.parseZone=function(){return ib.apply(null,arguments).parseZone()},ib.parseTwoDigitYear=function(a){return t(a)+(t(a)&gt;68?1900:2e3)},i(ib.fn=g.prototype,{clone:function(){return ib(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang(&quot;en&quot;).format(&quot;ddd MMM DD YYYY HH:mm:ss [GMT]ZZ&quot;)},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=ib(this).utc();return 0&lt;a.year()&amp;&amp;a.year()&lt;=9999?H(a,&quot;YYYY-MM-DD[T]HH:mm:ss.SSS[Z]&quot;):H(a,&quot;YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]&quot;)},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return z(this)},isDSTShifted:function(){return this._a?this.isValid()&amp;&amp;p(this._a,(this._isUTC?ib.utc(this._a):ib(this._a)).toArray())&gt;0:!1},parsingFlags:function(){return i({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(a){var b=H(this,a||ib.defaultFormat);return this.lang().postformat(b)},add:function(a,b){var c;return c=&quot;string&quot;==typeof a?ib.duration(+b,a):ib.duration(a,b),m(this,c,1),this},subtract:function(a,b){var c;return c=&quot;string&quot;==typeof a?ib.duration(+b,a):ib.duration(a,b),m(this,c,-1),this},diff:function(a,b,c){var d,e,f=B(a,this),g=6e4*(this.zone()-f.zone());return b=q(b),&quot;year&quot;===b||&quot;month&quot;===b?(d=432e5*(this.daysInMonth()+f.daysInMonth()),e=12*(this.year()-f.year())+(this.month()-f.month()),e+=(this-ib(this).startOf(&quot;month&quot;)-(f-ib(f).startOf(&quot;month&quot;)))/d,e-=6e4*(this.zone()-ib(this).startOf(&quot;month&quot;).zone()-(f.zone()-ib(f).startOf(&quot;month&quot;).zone()))/d,&quot;year&quot;===b&amp;&amp;(e/=12)):(d=this-f,e=&quot;second&quot;===b?d/1e3:&quot;minute&quot;===b?d/6e4:&quot;hour&quot;===b?d/36e5:&quot;day&quot;===b?(d-g)/864e5:&quot;week&quot;===b?(d-g)/6048e5:d),c?e:k(e)},from:function(a,b){return ib.duration(this.diff(a)).lang(this.lang()._abbr).humanize(!b)},fromNow:function(a){return this.from(ib(),a)},calendar:function(){var a=B(ib(),this).startOf(&quot;day&quot;),b=this.diff(a,&quot;days&quot;,!0),c=-6&gt;b?&quot;sameElse&quot;:-1&gt;b?&quot;lastWeek&quot;:0&gt;b?&quot;lastDay&quot;:1&gt;b?&quot;sameDay&quot;:2&gt;b?&quot;nextDay&quot;:7&gt;b?&quot;nextWeek&quot;:&quot;sameElse&quot;;return this.format(this.lang().calendar(c,this))},isLeapYear:function(){return x(this.year())},isDST:function(){return this.zone()&lt;this.clone().month(0).zone()||this.zone()&lt;this.clone().month(5).zone()},day:function(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=X(a,this.lang()),this.add({d:a-b})):b},month:eb(&quot;Month&quot;,!0),startOf:function(a){switch(a=q(a)){case&quot;year&quot;:this.month(0);case&quot;quarter&quot;:case&quot;month&quot;:this.date(1);case&quot;week&quot;:case&quot;isoWeek&quot;:case&quot;day&quot;:this.hours(0);case&quot;hour&quot;:this.minutes(0);case&quot;minute&quot;:this.seconds(0);case&quot;second&quot;:this.milliseconds(0)}return&quot;week&quot;===a?this.weekday(0):&quot;isoWeek&quot;===a&amp;&amp;this.isoWeekday(1),&quot;quarter&quot;===a&amp;&amp;this.month(3*Math.floor(this.month()/3)),this},endOf:function(a){return a=q(a),this.startOf(a).add(&quot;isoWeek&quot;===a?&quot;week&quot;:a,1).subtract(&quot;ms&quot;,1)},isAfter:function(a,b){return b=&quot;undefined&quot;!=typeof b?b:&quot;millisecond&quot;,+this.clone().startOf(b)&gt;+ib(a).startOf(b)},isBefore:function(a,b){return b=&quot;undefined&quot;!=typeof b?b:&quot;millisecond&quot;,+this.clone().startOf(b)&lt;+ib(a).startOf(b)},isSame:function(a,b){return b=b||&quot;ms&quot;,+this.clone().startOf(b)===+B(a,this).startOf(b)},min:function(a){return a=ib.apply(null,arguments),this&gt;a?this:a},max:function(a){return a=ib.apply(null,arguments),a&gt;this?this:a},zone:function(a,b){var c=this._offset||0;return null==a?this._isUTC?c:this._d.getTimezoneOffset():(&quot;string&quot;==typeof a&amp;&amp;(a=K(a)),Math.abs(a)&lt;16&amp;&amp;(a=60*a),this._offset=a,this._isUTC=!0,c!==a&amp;&amp;(!b||this._changeInProgress?m(this,ib.duration(c-a,&quot;m&quot;),1,!1):this._changeInProgress||(this._changeInProgress=!0,ib.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?&quot;UTC&quot;:&quot;&quot;},zoneName:function(){return this._isUTC?&quot;Coordinated Universal Time&quot;:&quot;&quot;},parseZone:function(){return this._tzm?this.zone(this._tzm):&quot;string&quot;==typeof this._i&amp;&amp;this.zone(this._i),this},hasAlignedHourOffset:function(a){return a=a?ib(a).zone():0,(this.zone()-a)%60===0},daysInMonth:function(){return u(this.year(),this.month())},dayOfYear:function(a){var b=nb((ib(this).startOf(&quot;day&quot;)-ib(this).startOf(&quot;year&quot;))/864e5)+1;return null==a?b:this.add(&quot;d&quot;,a-b)},quarter:function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=$(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==a?b:this.add(&quot;y&quot;,a-b)},isoWeekYear:function(a){var b=$(this,1,4).year;return null==a?b:this.add(&quot;y&quot;,a-b)},week:function(a){var b=this.lang().week(this);return null==a?b:this.add(&quot;d&quot;,7*(a-b))},isoWeek:function(a){var b=$(this,1,4).week;return null==a?b:this.add(&quot;d&quot;,7*(a-b))},weekday:function(a){var b=(this.day()+7-this.lang()._week.dow)%7;return null==a?b:this.add(&quot;d&quot;,a-b)},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return v(this.year(),1,4)},weeksInYear:function(){var a=this._lang._week;return v(this.year(),a.dow,a.doy)},get:function(a){return a=q(a),this[a]()},set:function(a,b){return a=q(a),&quot;function&quot;==typeof this[a]&amp;&amp;this[a](b),this},lang:function(b){return b===a?this._lang:(this._lang=E(b),this)}}),ib.fn.millisecond=ib.fn.milliseconds=eb(&quot;Milliseconds&quot;,!1),ib.fn.second=ib.fn.seconds=eb(&quot;Seconds&quot;,!1),ib.fn.minute=ib.fn.minutes=eb(&quot;Minutes&quot;,!1),ib.fn.hour=ib.fn.hours=eb(&quot;Hours&quot;,!0),ib.fn.date=eb(&quot;Date&quot;,!0),ib.fn.dates=c(&quot;dates accessor is deprecated. Use date instead.&quot;,eb(&quot;Date&quot;,!0)),ib.fn.year=eb(&quot;FullYear&quot;,!0),ib.fn.years=c(&quot;years accessor is deprecated. Use year instead.&quot;,eb(&quot;FullYear&quot;,!0)),ib.fn.days=ib.fn.day,ib.fn.months=ib.fn.month,ib.fn.weeks=ib.fn.week,ib.fn.isoWeeks=ib.fn.isoWeek,ib.fn.quarters=ib.fn.quarter,ib.fn.toJSON=ib.fn.toISOString,i(ib.duration.fn=h.prototype,{_bubble:function(){var a,b,c,d,e=this._milliseconds,f=this._days,g=this._months,h=this._data;h.milliseconds=e%1e3,a=k(e/1e3),h.seconds=a%60,b=k(a/60),h.minutes=b%60,c=k(b/60),h.hours=c%24,f+=k(c/24),h.days=f%30,g+=k(f/30),h.months=g%12,d=k(g/12),h.years=d},weeks:function(){return k(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*t(this._months/12)},humanize:function(a){var b=+this,c=Z(b,!a,this.lang());return a&amp;&amp;(c=this.lang().pastFuture(b,c)),this.lang().postformat(c)},add:function(a,b){var c=ib.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=ib.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=q(a),this[a.toLowerCase()+&quot;s&quot;]()},as:function(a){return a=q(a),this[&quot;as&quot;+a.charAt(0).toUpperCase()+a.slice(1)+&quot;s&quot;]()},lang:ib.fn.lang,toIsoString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()&lt;0?&quot;-&quot;:&quot;&quot;)+&quot;P&quot;+(a?a+&quot;Y&quot;:&quot;&quot;)+(b?b+&quot;M&quot;:&quot;&quot;)+(c?c+&quot;D&quot;:&quot;&quot;)+(d||e||f?&quot;T&quot;:&quot;&quot;)+(d?d+&quot;H&quot;:&quot;&quot;)+(e?e+&quot;M&quot;:&quot;&quot;)+(f?f+&quot;S&quot;:&quot;&quot;):&quot;P0D&quot;}});for(kb in Yb)Yb.hasOwnProperty(kb)&amp;&amp;(gb(kb,Yb[kb]),fb(kb.toLowerCase()));gb(&quot;Weeks&quot;,6048e5),ib.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()},ib.lang(&quot;en&quot;,{ordinal:function(a){var b=a%10,c=1===t(a%100/10)?&quot;th&quot;:1===b?&quot;st&quot;:2===b?&quot;nd&quot;:3===b?&quot;rd&quot;:&quot;th&quot;;return a+c}}),xb?module.exports=ib:&quot;function&quot;==typeof define&amp;&amp;define.amd?(define(&quot;moment&quot;,function(a,b,c){return c.config&amp;&amp;c.config()&amp;&amp;c.config().noGlobal===!0&amp;&amp;(mb.moment=jb),ib}),hb(!0)):hb()}).call(this);
</ins><span class="cx">\ No newline at end of file
</span><span class="cx">Property changes on: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/moment.min.js
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnexecutable"></a>
<div class="addfile"><h4>Added: svn:executable</h4></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsInitializationjs"></a>
<div class="modfile"><h4>Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Initialization.js (173007 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Initialization.js        2014-08-27 17:02:57 UTC (rev 173007)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Initialization.js        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -26,6 +26,9 @@
</span><span class="cx"> var settings = new Settings;
</span><span class="cx"> var buildbots = [ new WebKitBuildbot ];
</span><span class="cx"> var webkitTrac = new Trac(&quot;http://trac.webkit.org/&quot;);
</span><del>-var bugzilla = new Bugzilla;
-var ews = new EWS;
-var testHistory = new TestHistory;
</del><ins>+if (typeof Bugzilla !== &quot;undefined&quot;)
+    var bugzilla = new Bugzilla;
+if (typeof EWS !== &quot;undefined&quot;)
+    var ews = new EWS;
+if (typeof TestHistory !== &quot;undefined&quot;)
+    var testHistory = new TestHistory;
</ins></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsMetricsAnalyzerjs"></a>
<div class="addfile"><h4>Added: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js (0 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -0,0 +1,332 @@
</span><ins>+/*
+ * Copyright (C) 2014 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. 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 APPLE INC. AND ITS 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 APPLE INC. OR ITS 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.
+ */
+
+Analyzer = function()
+{
+    BaseObject.call(this);
+
+    // Only load one queue at a time to not overload the server.
+    this._queueBeingLoaded = null;
+
+    webkitTrac.addEventListener(Trac.Event.Loaded, this._loadedFromTrac, this);
+};
+
+BaseObject.addConstructorFunctions(Analyzer);
+
+Analyzer.Event = {
+    Starting: &quot;starting&quot;,
+    QueueResults: &quot;queue-results&quot;,
+    Finished: &quot;finished&quot;,
+};
+
+Analyzer.prototype = {
+    constructor: Analyzer,
+    __proto__: BaseObject.prototype,
+
+    analyze: function(queues, fromDate, toDate)
+    {
+        this.dispatchEventToListeners(Analyzer.Event.Starting, null);
+
+        this._rangeStartTime = new Date(fromDate);
+        this._rangeEndTime = new Date(toDate);
+
+        this._hasTracData = false;
+
+        this._queues = queues;
+        this._remainingQueues = {};
+        this._queuesReadyToAnalyze = [];
+
+        queues.forEach(function(queue) {
+            if (!queue.iterations.length) {
+                this._remainingQueues[queue.id] = queue;
+                if (!this._queueBeingLoaded) {
+                    this._queueBeingLoaded = queue.id;
+                    queue.loadAll(this._loadedFromBuildbot.bind(this));
+                }
+            } else
+                this._queuesReadyToAnalyze.push(queue);
+        }.bind(this));
+
+        webkitTrac.load(this._rangeStartTime, this._rangeEndTime);
+    },
+
+    // Iterations is an array of finished iterations ordered by time, iterations[0] being the newest.
+    // Returns an index of an iteration that defined the queue color at the start, or -1
+    // if there was none.
+    _findIndexOfLargestIterationAtOrBeforeStart: function(iterations)
+    {
+        var result = -1;
+        var i = 0;
+        while (i &lt; iterations.length &amp;&amp; iterations[i].endTime &gt; this._rangeStartTime)
+            ++i;
+        if (i &lt; iterations.length)
+            result = i++;
+        while (i &lt; iterations.length) {
+            if (iterations[i].openSourceRevision &gt; iterations[result].openSourceRevision)
+                result = i;
+            ++i;
+        }
+        return result;
+    },
+
+    _allQueuesAreSuccessful: function(topIterationByQueue, queues)
+    {
+        var countOfQueuesWithKnownColor = Object.keys(topIterationByQueue).length;
+        console.assert(countOfQueuesWithKnownColor &lt;= queues.length);
+        if (countOfQueuesWithKnownColor !== queues.length)
+            return undefined;
+
+        for (var i = queues.length - 1; i &gt;= 0; --i) {
+            if (!topIterationByQueue[queues[i].id].successful)
+                return false;
+        }
+        return true;
+    },
+
+    _countPercentageOfGreen: function(queues, result)
+    {
+        var topIterationByQueue = {};
+        var iterations = [];
+
+        // Find what the top iteration for each queue was at the start of the time range (and thus what colors the dashboard was showing).
+        // Merge all queues' iterations into one array, filtering out ones that can't possibly affect the end result.
+        queues.forEach(function(queue) {
+            var queueIterations = queue.iterations.filter(function(iteration) { return iteration.finished; });
+            queueIterations.sort(function(a, b) { return b.endTime - a.endTime; });
+
+            var indexOfLargestIterationAtOrBeforeStart = this._findIndexOfLargestIterationAtOrBeforeStart(queueIterations);
+            if (indexOfLargestIterationAtOrBeforeStart &gt;= 0) {
+                topIterationByQueue[queue.id] = queueIterations[indexOfLargestIterationAtOrBeforeStart];
+                var i = indexOfLargestIterationAtOrBeforeStart;
+            } else
+                var i = queueIterations.length - 1;
+            while (i &gt;= 0 &amp;&amp; queueIterations[i].endTime &lt;= this._rangeEndTime)
+                iterations.push(queueIterations[i--]);
+        }.bind(this));
+
+        iterations.sort(function(a, b) { return b.endTime - a.endTime; });
+
+        // Go forward in time, ignoring out of order iterations that didn't affect queue color.
+        var currentTime = this._rangeStartTime;
+        var greenTime = 0;
+        var earliestTimeInRangeWhereAllQueuesHaveResults;
+        if (this._allQueuesAreSuccessful(topIterationByQueue, queues) !== undefined)
+            earliestTimeInRangeWhereAllQueuesHaveResults = this._rangeStartTime;
+        for (var i = iterations.length - 1; i &gt;= 0; --i) {
+            if (iterations[i].endTime &lt;= this._rangeStartTime) {
+                console.assert(iterations[i].queue.id in topIterationByQueue);
+                continue;
+            }
+            if (!(iterations[i].queue.id in topIterationByQueue)) {
+                console.assert(earliestTimeInRangeWhereAllQueuesHaveResults === undefined);
+                topIterationByQueue[iterations[i].queue.id] = iterations[i];
+                if (this._allQueuesAreSuccessful(topIterationByQueue, queues) !== undefined) {
+                    currentTime = iterations[i].endTime;
+                    earliestTimeInRangeWhereAllQueuesHaveResults = currentTime;
+                }
+                continue;
+            }
+            if (iterations[i].openSourceRevision &lt;= topIterationByQueue[iterations[i].queue.id].openSourceRevision)
+                continue;
+
+            var allQueuesWereSuccessful = this._allQueuesAreSuccessful(topIterationByQueue, queues);
+            topIterationByQueue[iterations[i].queue.id] = iterations[i];
+
+            if (allQueuesWereSuccessful === true)
+                greenTime += iterations[i].endTime - currentTime;
+
+            currentTime = iterations[i].endTime;
+        }
+
+        if (this._allQueuesAreSuccessful(topIterationByQueue, queues) === true)
+            greenTime += this._rangeEndTime - currentTime;
+
+        if (earliestTimeInRangeWhereAllQueuesHaveResults === this._rangeStartTime)
+            result.percentageOfGreen = greenTime / (this._rangeEndTime - this._rangeStartTime) * 100;
+        else {
+            result.buildbotRangeError = true;
+            if (earliestTimeInRangeWhereAllQueuesHaveResults !== undefined) {
+                result.buildbotRangeErrorText = &quot;Queue only has results starting &quot; + earliestTimeInRangeWhereAllQueuesHaveResults;
+                result.percentageOfGreen = greenTime / (this._rangeEndTime - earliestTimeInRangeWhereAllQueuesHaveResults) * 100;
+            } else
+                result.buildbotRangeErrorText = &quot;Queue has no results in this range&quot;;
+        }
+    },
+
+    _fullyTestedRevisionNumber: function(lastTestedRevisionByQueue)
+    {
+        var result = Infinity;
+        this._queues.forEach(function(queue) {
+            if (lastTestedRevisionByQueue[queue.id] &lt; result)
+                result = lastTestedRevisionByQueue[queue.id];
+        });
+        return result;
+    },
+
+    _countTimes: function(queues, result)
+    {
+        // Combine all iterations that started and finished within the range into one array.
+        // These are the iterations that can have results for revisions in the range.
+        var iterationsByRevision = [];
+        queues.forEach(function(queue) {
+            iterationsByRevision = iterationsByRevision.concat(queue.iterations.filter(function(iteration) {
+                return iteration.productive &amp;&amp; iteration.startTime &gt; this._rangeStartTime &amp;&amp; iteration.endTime &lt; this._rangeEndTime;
+            }.bind(this)));
+        }.bind(this));
+        iterationsByRevision.sort(function(a, b) { return a.endTime - b.endTime; }); // When there are multiple iterations building the same revision, the first one wins (as the other ones were probably manual retries).
+        iterationsByRevision.sort(function(a, b) { return a.openSourceRevision - b.openSourceRevision; });
+
+        // Revisions that landed within the period.
+        var revisions = webkitTrac.recordedCommits.reduce(function(result, revision) {
+            if (revision.date &gt;= this._rangeStartTime &amp;&amp; revision.date &lt; this._rangeEndTime)
+                result[revision.revisionNumber] = revision;
+            return result;
+        }.bind(this), {});
+
+        var previousFullyTestedRevisionNumber = -1;
+        var lastTestedRevisionByQueue = queues.reduce(function(previousValue, queue) {
+            previousValue[queue.id] = -1;
+            return previousValue;
+        }, {});
+
+        for (var i = 0; i &lt; iterationsByRevision.length; ++i) {
+            var iteration = iterationsByRevision[i];
+
+            console.assert(lastTestedRevisionByQueue[iteration.queue.id] &lt;= iteration.openSourceRevision);
+            lastTestedRevisionByQueue[iteration.queue.id] = iteration.openSourceRevision;
+
+            var newFullyTestedRevisionNumber = this._fullyTestedRevisionNumber(lastTestedRevisionByQueue);
+            console.assert(newFullyTestedRevisionNumber &gt;= previousFullyTestedRevisionNumber);
+
+            if (newFullyTestedRevisionNumber === previousFullyTestedRevisionNumber)
+                continue;
+
+            for (var revisionNumber = newFullyTestedRevisionNumber; (revisionNumber &gt; previousFullyTestedRevisionNumber) &amp;&amp; (revisionNumber in revisions); --revisionNumber) {
+                var revision = revisions[revisionNumber];
+                console.assert(!(&quot;elapsedTime&quot; in revision));
+                revision.elapsedTime = iteration.endTime - revision.date;
+                revision.elapsedOwnTime = iteration.endTime - iteration.startTime;
+            }
+
+            previousFullyTestedRevisionNumber = newFullyTestedRevisionNumber;
+        }
+
+        var times = [];
+        var ownTimes = [];
+        for (var revisionNumber in revisions) {
+            var revision = revisions[revisionNumber];
+            if (!(&quot;elapsedTime&quot; in revision))
+                continue;
+            // Changes on other branches are irrelevant, as they are not built or tested.
+            // FIXME: Support metrics for non-trunk queues.
+            if (!revision.containsBranchLocation || revision.branch === &quot;trunk&quot;) {
+                times.push(revision.elapsedTime);
+                ownTimes.push(revision.elapsedOwnTime);
+            }
+            delete revision.elapsedTime;
+            delete revision.elapsedOwnTime;
+        }
+
+        result.averageSecondsFromCommit = times.average() / 1000;
+        result.medianSecondsFromCommit = times.median() / 1000;
+        result.bestSecondsFromCommit = Math.min.apply(Math, times) / 1000;
+        result.worstSecondsFromCommit = Math.max.apply(Math, times) / 1000;
+
+        result.averageSecondsOwnTime = ownTimes.average() / 1000;
+        result.medianSecondsOwnTime = ownTimes.median() / 1000;
+        result.bestSecondsOwnTime = Math.min.apply(Math, ownTimes) / 1000;
+        result.worstSecondsOwnTime = Math.max.apply(Math, ownTimes) / 1000;
+    },
+
+    _analyzeQueue: function(queue)
+    {
+        var result = { queueID: queue.id };
+        this._countPercentageOfGreen([queue], result);
+        this._countTimes([queue], result);
+
+        this.dispatchEventToListeners(Analyzer.Event.QueueResults, result);
+    },
+
+    _analyzeAggregate: function()
+    {
+        var builderQueues = this._queues.filter(function(queue) { return queue.builder; });
+
+        var buildersResult = { queueID: allBuilderResultsPseudoQueue.id };
+        this._countPercentageOfGreen(builderQueues, buildersResult);
+        this._countTimes(builderQueues, buildersResult);
+        this.dispatchEventToListeners(Analyzer.Event.QueueResults, buildersResult);
+
+        var allQueuesResult = { queueID: allResultsPseudoQueue.id };
+        this._countPercentageOfGreen(this._queues, allQueuesResult);
+        this._countTimes(this._queues, allQueuesResult);
+        this.dispatchEventToListeners(Analyzer.Event.QueueResults, allQueuesResult);
+    },
+
+    _analyze: function(queue)
+    {
+        console.assert(this._hasTracData);
+
+        this._queuesReadyToAnalyze.forEach(function(queue) {
+            this._analyzeQueue(queue);
+        }.bind(this));
+
+        this._queuesReadyToAnalyze = [];
+
+        if (!Object.keys(this._remainingQueues).length) {
+            this._analyzeAggregate();
+            this.dispatchEventToListeners(Analyzer.Event.Finished, null);
+        }
+    },
+
+    _loadedFromTrac: function(event)
+    {
+        this._hasTracData = event.data[0] &lt;= this._rangeStartTime &amp;&amp; event.data[1] &gt;= this._rangeEndTime;
+        if (this._hasTracData)
+            this._analyze();
+    },
+
+    _loadedFromBuildbot: function(queue)
+    {
+        console.assert(this._queueBeingLoaded === queue.id);
+        this._queueBeingLoaded = null;
+
+        if (queue.id in this._remainingQueues) {
+            delete this._remainingQueues[queue.id];
+            this._queuesReadyToAnalyze.push(queue);
+        }
+
+        for (var queueID in this._remainingQueues) {
+            var queue = this._remainingQueues[queueID];
+            console.assert(queue.id === queueID);
+            console.assert(!queue.iterations.length);
+            this._queueBeingLoaded = queueID;
+            queue.loadAll(this._loadedFromBuildbot.bind(this));
+            break;
+        }
+
+        if (this._hasTracData)
+            this._analyze();
+    }
+};
</ins><span class="cx">Property changes on: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsMetricsMainjs"></a>
<div class="addfile"><h4>Added: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsMain.js (0 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsMain.js                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsMain.js        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -0,0 +1,371 @@
</span><ins>+/*
+ * Copyright (C) 2013, 2014 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. 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 APPLE INC. AND ITS 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 APPLE INC. OR ITS 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 hasEWS = typeof ews !== &quot;undefined&quot;;
+var EWSCategory = &quot;ews&quot;;
+
+var analyzer = new Analyzer;
+
+var allBuilderResultsPseudoQueue = { id: &quot;allBuilderResultsPseudoQueue&quot; };
+var allResultsPseudoQueue = { id: &quot;allResultsPseudoQueue&quot; };
+
+var categorizedQueuesByPlatformAndBuildType = {};
+
+for (var i = 0; i &lt; buildbots.length; ++i) {
+    var buildbot = buildbots[i];
+    for (var id in buildbot.queues) {
+        var queue = buildbot.queues[id];
+        var platform = categorizedQueuesByPlatformAndBuildType[queue.platform];
+        if (!platform)
+            platform = categorizedQueuesByPlatformAndBuildType[queue.platform] = {};
+        if (!platform.builders)
+            platform.builders = {};
+
+        var categoryName;
+        if (queue.builder)
+            categoryName = &quot;builders&quot;;
+        else if (queue.tester)
+            categoryName = queue.testCategory;
+        else {
+            console.assert(&quot;Unknown queue type.&quot;);
+            continue;
+        }
+
+        category = platform[categoryName];
+        if (!category)
+            category = platform[categoryName] = {};
+
+        var buildType = queue.debug ? &quot;debug&quot; : &quot;release&quot;;
+
+        buildQueues = category[buildType];
+        if (!buildQueues)
+            buildQueues = category[buildType] = [];
+
+        buildQueues.push(queue);
+    }
+}
+
+if (hasEWS) {
+    for (var id in ews.queues) {
+        var queue = ews.queues[id];
+        var platform = categorizedQueuesByPlatformAndBuildType[queue.platform];
+        if (!platform)
+            platform = categorizedQueuesByPlatformAndBuildType[queue.platform] = {};
+        if (!platform.builders)
+            platform.builders = {};
+
+        var categoryName = EWSCategory;
+
+        platformQueues = platform[categoryName];
+        if (!platformQueues)
+            platformQueues = platform[categoryName] = [];
+
+        platformQueues.push(queue);
+    }
+}
+
+var testNames = {};
+testNames[Buildbot.TestCategory.WebKit2] = &quot;WK2 Tests&quot;;
+testNames[Buildbot.TestCategory.WebKit1] = &quot;WK1 Tests&quot;;
+
+function sortedPlatforms()
+{
+    var platforms = [];
+
+    for (var platformKey in Dashboard.Platform)
+        platforms.push(Dashboard.Platform[platformKey]);
+
+    platforms.sort(function(a, b) {
+        return a.order - b.order;
+    });
+
+    return platforms;
+}
+
+function updateHiddenPlatforms()
+{
+    var hiddenPlatforms = settings.getObject(&quot;hiddenPlatforms&quot;);
+    if (!hiddenPlatforms)
+        hiddenPlatforms = [];
+
+    var platformRows = document.querySelectorAll(&quot;tr.platform&quot;);
+    for (var i = 0; i &lt; platformRows.length; ++i)
+        platformRows[i].classList.remove(&quot;hidden&quot;);
+
+    for (var i = 0; i &lt; hiddenPlatforms.length; ++i) {
+        var platformRow = document.querySelector(&quot;tr.platform.&quot; + hiddenPlatforms[i]);
+        if (platformRow)
+            platformRow.classList.add(&quot;hidden&quot;);
+    }
+
+    var unhideButton = document.querySelector(&quot;div.cellButton.unhide&quot;);
+    if (hiddenPlatforms.length)
+        unhideButton.classList.remove(&quot;hidden&quot;);
+    else
+        unhideButton.classList.add(&quot;hidden&quot;);
+}
+
+function unhiddenQueues()
+{
+    var hiddenPlatforms = settings.getObject(&quot;hiddenPlatforms&quot;);
+    if (!hiddenPlatforms)
+        hiddenPlatforms = [];
+
+    var result = [];
+
+    for (var i = 0; i &lt; buildbots.length; ++i) {
+        var buildbot = buildbots[i];
+        for (var id in buildbot.queues) {
+            var queue = buildbot.queues[id];
+            if (-1 === hiddenPlatforms.indexOf(queue.platform))
+                result.push(queue);
+        }
+    }
+
+    return result;
+}
+
+function allQueues(category)
+{
+    var result = [];
+    if (category[&quot;debug&quot;])
+        result = result.concat(category[&quot;debug&quot;]);
+    if (category[&quot;release&quot;])
+        result = result.concat(category[&quot;release&quot;]);
+    return result;
+}
+
+function buildAggregateTable()
+{
+    var table = document.createElement(&quot;table&quot;);
+    table.classList.add(&quot;queue-grid&quot;);
+    table.classList.add(&quot;aggregate-grid&quot;);
+
+    var row = document.createElement(&quot;tr&quot;);
+    row.classList.add(&quot;headers&quot;);
+
+    header = document.createElement(&quot;th&quot;);
+    header.textContent = &quot;Builders&quot;;
+    row.appendChild(header);
+
+    header = document.createElement(&quot;th&quot;);
+    header.textContent = &quot;All queues&quot;;
+    row.appendChild(header);
+
+    if (hasEWS) {
+        var header = document.createElement(&quot;th&quot;);
+        header.textContent = &quot;EWS&quot;;
+        row.appendChild(header);
+    }
+
+    table.appendChild(row);
+
+    var row = document.createElement(&quot;tr&quot;);
+
+    cell = document.createElement(&quot;td&quot;);
+
+    var view = new MetricsView(analyzer, [allBuilderResultsPseudoQueue]);
+    cell.appendChild(view.element);
+    row.appendChild(cell);
+
+    cell = document.createElement(&quot;td&quot;);
+
+    var view = new MetricsView(analyzer, [allResultsPseudoQueue]);
+    cell.appendChild(view.element);
+    row.appendChild(cell);
+
+    table.appendChild(row);
+
+    document.body.appendChild(table);
+}
+
+function buildQueuesTable()
+{
+    var table = document.createElement(&quot;table&quot;);
+    table.classList.add(&quot;queue-grid&quot;);
+    table.id = &quot;metrics-queues-table&quot;;
+
+    var row = document.createElement(&quot;tr&quot;);
+    row.classList.add(&quot;headers&quot;);
+
+    var header = document.createElement(&quot;th&quot;);
+    var unhideButton = document.createElement(&quot;div&quot;);
+    unhideButton.addEventListener(&quot;click&quot;, function () { settings.clearHiddenPlatforms(); });
+    unhideButton.textContent = &quot;Show All Platforms&quot;;
+    unhideButton.classList.add(&quot;cellButton&quot;, &quot;unhide&quot;, &quot;hidden&quot;);
+    header.appendChild(unhideButton);
+    row.appendChild(header);
+
+    header = document.createElement(&quot;th&quot;);
+    header.textContent = &quot;Builders&quot;;
+    row.appendChild(header);
+
+    for (var testerKey in Buildbot.TestCategory) {
+        var header = document.createElement(&quot;th&quot;);
+        header.textContent = testNames[Buildbot.TestCategory[testerKey]];
+        row.appendChild(header);
+    }
+
+    if (hasEWS) {
+        var header = document.createElement(&quot;th&quot;);
+        header.textContent = &quot;EWS&quot;;
+        row.appendChild(header);
+    }
+
+    table.appendChild(row);
+
+    var platforms = sortedPlatforms();
+
+    for (var i in platforms) {
+        var platform = platforms[i];
+        var platformQueues = categorizedQueuesByPlatformAndBuildType[platform.name];
+        if (!platformQueues)
+            continue;
+
+        var row = document.createElement(&quot;tr&quot;);
+        row.classList.add(&quot;platform&quot;);
+        row.classList.add(platform.name);
+
+        var cell = document.createElement(&quot;td&quot;);
+        cell.classList.add(&quot;logo&quot;);
+
+        var ringImage = document.createElement(&quot;img&quot;);
+        ringImage.classList.add(&quot;ring&quot;);
+        ringImage.title = platform.readableName;
+        cell.appendChild(ringImage);
+
+        var logoImage = document.createElement(&quot;img&quot;);
+        logoImage.classList.add(&quot;logo&quot;);
+        cell.appendChild(logoImage);
+
+        var hideButton = document.createElement(&quot;div&quot;);
+        hideButton.addEventListener(&quot;click&quot;, function (platformName) { return function () { settings.toggleHiddenPlatform(platformName); }; }(platform.name) );
+        hideButton.textContent = &quot;hide&quot;;
+        hideButton.classList.add(&quot;cellButton&quot;, &quot;hide&quot;);
+        cell.appendChild(hideButton);
+
+        row.appendChild(cell);
+
+        cell = document.createElement(&quot;td&quot;);
+
+        var view = new MetricsView(analyzer, allQueues(platformQueues.builders));
+        cell.appendChild(view.element);
+        row.appendChild(cell);
+
+        for (var testerKey in Buildbot.TestCategory) {
+            var cell = document.createElement(&quot;td&quot;);
+
+            var testerProperty = Buildbot.TestCategory[testerKey];
+            if (platformQueues[testerProperty]) {
+                var view = new MetricsView(analyzer, allQueues(platformQueues[testerProperty]));
+                cell.appendChild(view.element);
+            }
+
+            row.appendChild(cell);
+        }
+
+        if (hasEWS) {
+            var cell = document.createElement(&quot;td&quot;);
+
+            if (platformQueues[EWSCategory]) {
+                var view = new EWSQueueView(platformQueues[EWSCategory]);
+                cell.appendChild(view.element);
+            }
+
+            row.appendChild(cell);
+        }
+
+        table.appendChild(row);
+    }
+
+    document.body.appendChild(table);
+
+    return table;
+}
+
+function documentReady()
+{
+    var rangePicker = document.createElement(&quot;span&quot;);
+    rangePicker.id = &quot;range-picker&quot;;
+    rangePicker.size = 40;
+    rangePicker.textContent = &quot;Please select a date range&quot;;
+    document.body.appendChild(rangePicker);
+    $(&quot;#range-picker&quot;).dateRangePicker({
+        startOfWeek: navigator.language === &quot;en-us&quot; ? &quot;sunday&quot; : &quot;monday&quot;,
+        endDate: new Date(),
+        showShortcuts: false,
+        getValue: function() { return this.textContent; },
+        setValue: function(s) { this.textContent = s; }
+    })
+    .bind('datepicker-apply',function(event,obj)
+    {
+        // This message is dispatched even when range hasn't been selected (or only one endpoint was),
+        // in which case the actual range hasn't changed, and there is nothing to do.
+        if (isNaN(obj.date1) || isNaN(obj.date2))
+            return;
+
+        var endDate = new Date(new Date(obj.date2).setDate(obj.date2.getDate() + 1));
+        analyzer.analyze(unhiddenQueues(), obj.date1, endDate);
+    });
+
+    var loadingIndicator = document.createElement(&quot;div&quot;);
+    loadingIndicator.classList.add(&quot;metrics-loading-indicator&quot;);
+    loadingIndicator.textContent = &quot;Loading (first load takes several minutes)\u2026&quot;;
+    document.body.appendChild(loadingIndicator);
+
+    analyzer.addEventListener(Analyzer.Event.Starting, function() {
+        loadingIndicator.style.visibility = &quot;visible&quot;;
+    }, this);
+    analyzer.addEventListener(Analyzer.Event.Finished, function() {
+        loadingIndicator.style.visibility = &quot;hidden&quot;;
+        loadingIndicator.textContent = &quot;Loading\u2026&quot;; // Remove the first time warning now.
+    }, this);
+
+    buildAggregateTable();
+
+    var tablesDivider = document.createElement(&quot;div&quot;);
+    tablesDivider.classList.add(&quot;tables-divider&quot;);
+    document.body.appendChild(tablesDivider);
+
+    var queuesTable = buildQueuesTable();
+    tablesDivider.style.height = Math.max(tablesDivider.offsetHeight, window.innerHeight - tablesDivider.offsetTop) + &quot;px&quot;;
+
+    if (settings.available()) {
+        var settingsButton = document.createElement(&quot;div&quot;);
+        settingsButton.addEventListener(&quot;click&quot;, function () { settings.toggleSettingsDisplay(); });
+        settingsButton.classList.add(&quot;settings&quot;);
+        document.body.appendChild(settingsButton);
+
+        updateHiddenPlatforms();
+        settings.addSettingListener(&quot;hiddenPlatforms&quot;, updateHiddenPlatforms);
+        settings.addSettingListener(&quot;enteredSettings&quot;, function() { 
+            $('html, body').stop().animate({
+                scrollTop: $(&quot;#metrics-queues-table&quot;).offset().top
+            }, 200);
+        });
+    }
+}
+
+document.addEventListener(&quot;DOMContentLoaded&quot;, documentReady);
</ins><span class="cx">Property changes on: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsMain.js
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsMetricsViewjs"></a>
<div class="addfile"><h4>Added: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsView.js (0 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsView.js                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsView.js        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -0,0 +1,157 @@
</span><ins>+/*
+ * Copyright (C) 2013, 2014 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. 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 APPLE INC. AND ITS 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 APPLE INC. OR ITS 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.
+ */
+
+MetricsView = function(analyzer, queues)
+{
+    BaseObject.call(this);
+
+    this.element = document.createElement(&quot;div&quot;);
+    this.element.classList.add(&quot;queue-view&quot;);
+
+    this._results = { };
+
+    this._debugQueues = queues.filter(function(queue) { return queue.platform &amp;&amp; queue.debug; });
+    this._releaseQueues = queues.filter(function(queue) { return queue.platform &amp;&amp; !queue.debug; });
+    this._aggregatePseudoQueues = queues.filter(function(queue) { return queue.platform === undefined; });
+
+    if (this._aggregatePseudoQueues.length)
+        this.element.classList.add(&quot;aggregate-queue-view&quot;);
+
+    this._hasMultipleDebugQueues = this._debugQueues.length &gt; 1;
+    this._hasMultipleReleaseQueues = this._releaseQueues.length &gt; 1;
+
+    analyzer.addEventListener(Analyzer.Event.Starting, this._clearResults, this);
+    analyzer.addEventListener(Analyzer.Event.QueueResults, this._queueResultsAdded, this);
+    
+    this._updateSoon();
+};
+
+MetricsView.UpdateSoonTimeout = 100; // 100 ms
+
+BaseObject.addConstructorFunctions(MetricsView);
+
+MetricsView.prototype = {
+    constructor: MetricsView,
+    __proto__: BaseObject.prototype,
+
+    _clearResults: function()
+    {
+        this._results = { };
+        this._updateSoon();
+    },
+
+    _queueResultsAdded: function(event)
+    {
+        if (this._debugQueues.some(function(queue) { return queue.id === event.data.queueID; })
+        || this._releaseQueues.some(function(queue) { return queue.id === event.data.queueID; })
+        || this._aggregatePseudoQueues.some(function(queue) { return queue.id === event.data.queueID; })) {
+            this._results[event.data.queueID] = event.data;
+            this._updateSoon();
+        };
+    },
+
+    _update: function()
+    {
+        this.element.removeChildren();
+
+        function addLine(element, text)
+        {
+            var line = document.createElement(&quot;div&quot;);
+            line.textContent = text;
+            line.classList.add(&quot;result-line&quot;);
+            element.appendChild(line);
+        }
+
+        function addError(element, text)
+        {
+            addLine(element, text);
+            element.lastChild.classList.add(&quot;error-line&quot;);
+        }
+
+        function appendQueueResults(queue)
+        {
+            if (!(queue.id in this._results))
+                return;
+
+            var result = this._results[queue.id];
+
+            if (result.buildbotRangeError &amp;&amp; -1 === this._aggregatePseudoQueues.indexOf(queue))
+                addError(this.element, result.buildbotRangeErrorText);
+
+            if (&quot;percentageOfGreen&quot; in result)
+                addLine(this.element, &quot;Green &quot; + Math.round(result.percentageOfGreen * 100) / 100 + &quot;% of time&quot;);
+
+            if (queue.builder || -1 !== this._aggregatePseudoQueues.indexOf(queue)) {
+                addLine(this.element, &quot;Time from commit: &quot;);
+                addLine(this.element, &quot;Average: &quot; + Math.round(result.averageSecondsFromCommit / 60) + &quot; minutes&quot;);
+                addLine(this.element, &quot;Median: &quot; + Math.round(result.medianSecondsFromCommit / 60) + &quot; minutes&quot;);
+                addLine(this.element, &quot;Best: &quot; + Math.round(result.bestSecondsFromCommit / 60) + &quot; minutes&quot;);
+                addLine(this.element, &quot;Worst: &quot; + Math.round(result.worstSecondsFromCommit / 60) + &quot; minutes&quot;);
+            } else {
+                // Time from commit is pretty useless for tester bots.
+                addLine(this.element, &quot;Time on the bot: &quot;);
+                addLine(this.element, &quot;Average: &quot; + Math.round(result.averageSecondsOwnTime / 60) + &quot; minutes&quot;);
+                addLine(this.element, &quot;Median: &quot; + Math.round(result.medianSecondsOwnTime / 60) + &quot; minutes&quot;);
+                addLine(this.element, &quot;Best: &quot; + Math.round(result.bestSecondsOwnTime / 60) + &quot; minutes&quot;);
+                addLine(this.element, &quot;Worst: &quot; + Math.round(result.worstSecondsOwnTime / 60) + &quot; minutes&quot;);
+            }
+        }
+
+        function appendBuildArchitecture(queues, showArchitecture)
+        {
+            queues.forEach(function(queue) {
+                var labelText = queue.debug ? &quot;Debug&quot; : &quot;Release&quot;;
+                if (showArchitecture) {
+                    if (queue.architecture === Buildbot.BuildArchitecture.Universal)
+                        labelText += &quot; (Universal)&quot;;
+                    else if (queue.architecture === Buildbot.BuildArchitecture.SixtyFourBit)
+                        labelText += &quot; (64-bit)&quot;;
+                    else if (queue.architecture === Buildbot.BuildArchitecture.ThirtyTwoBit)
+                        labelText += &quot; (32-bit)&quot;;
+                }
+                var releaseLabel = document.createElement(&quot;a&quot;);
+                releaseLabel.classList.add(&quot;queueLabel&quot;);
+                releaseLabel.textContent = labelText;
+                releaseLabel.href = queue.overviewURL;
+                releaseLabel.target = &quot;_blank&quot;;
+                this.element.appendChild(releaseLabel);
+
+                appendQueueResults.call(this, queue);
+            }.bind(this));
+        }
+
+        appendBuildArchitecture.call(this, this._releaseQueues, this._hasMultipleReleaseQueues);
+        appendBuildArchitecture.call(this, this._debugQueues, this._hasMultipleDebugQueues);
+        
+        this._aggregatePseudoQueues.forEach(function(queue) {
+            appendQueueResults.call(this, queue);
+        }.bind(this));
+    },
+
+    _updateSoon: function()
+    {
+        setTimeout(this._update.bind(this), MetricsView.UpdateSoonTimeout);
+    },
+};
</ins><span class="cx">Property changes on: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsView.js
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsSettingsjs"></a>
<div class="modfile"><h4>Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Settings.js (173007 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Settings.js        2014-08-27 17:02:57 UTC (rev 173007)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Settings.js        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -79,6 +79,8 @@
</span><span class="cx"> 
</span><span class="cx">     toggleSettingsDisplay: function()
</span><span class="cx">     {
</span><ins>+        if (!document.body.classList.contains(&quot;settings-visible&quot;))
+            this.fireSettingListener(&quot;enteredSettings&quot;);
</ins><span class="cx">         document.body.classList.toggle(&quot;settings-visible&quot;);
</span><span class="cx">     },
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsUtilitiesjs"></a>
<div class="modfile"><h4>Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Utilities.js (173007 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Utilities.js        2014-08-27 17:02:57 UTC (rev 173007)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Utilities.js        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -166,6 +166,28 @@
</span><span class="cx">     return null;
</span><span class="cx"> };
</span><span class="cx"> 
</span><ins>+Array.prototype.average = function()
+{
+    var sum = 0;
+    var count = this.length;
+    for (var i = 0; i &lt; count; ++i)
+        sum += this[i];
+    return sum / count;
+};
+
+Array.prototype.median = function()
+{
+    var array = this.slice(); // Make a copy to avoid modifying the object.
+    array.sort(function(a, b) { return a - b; });
+
+    var half = Math.floor(array.length / 2);
+
+    if (array.length % 2)
+        return array[half];
+    else
+        return (array[half - 1] + array[half]) / 2;
+};
+
</ins><span class="cx"> String.prototype.contains = function(substring)
</span><span class="cx"> {
</span><span class="cx">     return this.indexOf(substring) &gt;= 0;
</span></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardStylesMaincss"></a>
<div class="modfile"><h4>Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css (173007 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css        2014-08-27 17:02:57 UTC (rev 173007)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .settings {
</span><del>-    position: absolute;
</del><ins>+    position: fixed;
</ins><span class="cx">     top: 5px;
</span><span class="cx">     left: 5px;
</span><span class="cx">     width: 35px;
</span></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardStylesMetricscss"></a>
<div class="addfile"><h4>Added: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Metrics.css (0 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Metrics.css                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Metrics.css        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -0,0 +1,80 @@
</span><ins>+/*
+ * Copyright (C) 2013 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. 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 APPLE INC. AND ITS 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 APPLE INC. OR ITS 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.
+ */
+
+body {
+    margin-top: 15px;
+}
+
+#range-picker {
+    font-family: &quot;HelveticaNeue-Light&quot;, sans-serif;
+    font-size: 14px;
+    color: rgb(145, 135, 95);
+    cursor: pointer;
+}
+
+.queue-view .result-line {
+    text-align: left;
+    padding: 2px 0;
+    font-family: &quot;Helvetica Neue&quot;, sans-serif;
+    font-size: 12px;
+    color: rgb(145, 135, 95);
+    -webkit-user-select: auto;
+    cursor: text;
+}
+
+table.aggregate-grid tr.headers th {
+    font-size: 36px;
+}
+
+.aggregate-queue-view .result-line {
+    font-size: 14px;
+    text-align: center;
+    text-transform: lowercase;
+}
+
+.queue-view .queueLabel + .result-line,
+.queue-view .error-line + .result-line,
+.result-line:first-child
+{
+    padding: 10px 0 6px 0;
+    font-weight: bold;
+}
+
+.queue-view .error-line {
+    color: rgb(191, 67, 41);
+}
+
+.metrics-loading-indicator {
+    font-family: &quot;HelveticaNeue-Light&quot;, sans-serif;
+    font-size: 14px;
+    color: rgb(145, 135, 95);
+    height: 100px;
+    line-height: 100px;
+    visibility: hidden;
+}
+
+.tables-divider {
+    height: 60px;
+}
</ins><span class="cx">Property changes on: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Metrics.css
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardmetricshtml"></a>
<div class="addfile"><h4>Added: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/metrics.html (0 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/metrics.html                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/metrics.html        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -0,0 +1,54 @@
</span><ins>+&lt;!--
+Copyright (C) 2014 Apple Inc. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. 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 APPLE INC. AND ITS 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 APPLE INC. OR ITS 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.
+--&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+    &lt;title&gt;WebKit Bot Watcher's Dashboard Metrics&lt;/title&gt;
+
+    &lt;link rel=&quot;stylesheet&quot; href=&quot;Styles/Main.css&quot;&gt;&lt;/link&gt;
+    &lt;link rel=&quot;stylesheet&quot; href=&quot;Styles/QueueView.css&quot;&gt;&lt;/link&gt;
+    &lt;link rel=&quot;stylesheet&quot; href=&quot;Styles/Metrics.css&quot;&gt;&lt;/link&gt;
+    &lt;link rel=&quot;stylesheet&quot; href=&quot;External/daterangepicker.css&quot;&gt;&lt;/link&gt;
+
+    &lt;script src=&quot;Scripts/Utilities.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/BaseObject.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/Dashboard.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/Buildbot.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/WebKitBuildbot.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/BuildbotQueue.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/BuildbotIteration.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/BuildbotTestResults.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/Settings.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/Trac.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/Initialization.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/MetricsAnalyzer.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/MetricsView.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;External/jquery-1.11.1.min.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;External/moment.min.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;External/jquery.daterangepicker.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Scripts/MetricsMain.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;&lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">Property changes on: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/metrics.html
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (173007 => 173008)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2014-08-27 17:02:57 UTC (rev 173007)
+++ trunk/Tools/ChangeLog        2014-08-27 17:12:45 UTC (rev 173008)
</span><span class="lines">@@ -1,3 +1,52 @@
</span><ins>+2014-08-27  Alexey Proskuryakov  &lt;ap@apple.com&gt;
+
+        build.webkit.org/dashboard: Add a metrics page with overall bot performance results
+        https://bugs.webkit.org/show_bug.cgi?id=136196
+
+        Reviewed by Timothy Hatcher.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External: Added.
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/daterangepicker.css: Added.
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery-1.11.1.min.js: Added.
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery.daterangepicker.js: Added.
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/moment.min.js: Added.
+        A date range picker control with dependencies.
+        There are a few modifications from upstream at &lt;https://github.com/longbill/jquery-date-range-picker&gt;:
+        - Fixed a bug where selected dates were not at midnight the first time a range was chosen
+        (it didn't happen again upon re-opening the picker).
+        - Made made style tweaks to match Dashboard UI.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Initialization.js:
+        Don't create objects that are not needed by the given app, and thus are not loaded at all.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js: Added.
+        Math to count all the things. Only supports open source tree and trunk at the moment,
+        but written with internal tree and branches in mind.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsMain.js: Added.
+        Like dashboard Main.js, draws the UI and creates all necessary objects.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsView.js: Added.
+        A view for table cells.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Settings.js:
+        (Settings.prototype.toggleSettingsDisplay): Added an event for entering settings.
+        Metrics page has individual platforms initially scrolled away form the view, so 
+        it needs to scroll down to reveal what's being configured.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Utilities.js:
+        Added Array.prototype.average and Array.prototype.median.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
+        Made gear icon fixed instead of absolute, so that it's visible on metrics page when
+        in settings mode.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Metrics.css:
+        Additional style rules.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/metrics.html:
+        The metrics page.
+
</ins><span class="cx"> 2014-08-27  Gyuyoung Kim  &lt;gyuyoung.kim@samsung.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Remove networkinfo watch category in watchlist
</span></span></pre>
</div>
</div>

</body>
</html>