http://git-wip-us.apache.org/repos/asf/mesos/blob/c7685917/src/webui/master/static/js/angular-route-1.2.32.min.js
----------------------------------------------------------------------
diff --git a/src/webui/master/static/js/angular-route-1.2.32.min.js 
b/src/webui/master/static/js/angular-route-1.2.32.min.js
deleted file mode 100644
index e5bdf46..0000000
--- a/src/webui/master/static/js/angular-route-1.2.32.min.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- AngularJS v1.2.32
- (c) 2010-2014 Google, Inc. http://angularjs.org
- License: MIT
-*/
-(function(n,e,A){'use strict';function 
x(s,g,h){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,c,b,f,w){function
 
y(){p&&(p.remove(),p=null);k&&(k.$destroy(),k=null);l&&(h.leave(l,function(){p=null}),p=l,l=null)}function
 v(){var b=s.current&&s.current.locals;if(e.isDefined(b&&b.$template)){var 
b=a.$new(),d=s.current;l=w(b,function(d){h.enter(d,null,l||c,function(){!e.isDefined(t)||t&&!a.$eval(t)||g()});y()});k=d.scope=b;k.$emit("$viewContentLoaded");k.$eval(u)}else
 y()}
-var 
k,l,p,t=b.autoscroll,u=b.onload||"";a.$on("$routeChangeSuccess",v);v()}}}function
 z(e,g,h){return{restrict:"ECA",priority:-400,link:function(a,c){var 
b=h.current,f=b.locals;c.html(f.$template);var 
w=e(c.contents());b.controller&&(f.$scope=a,f=g(b.controller,f),b.controllerAs&&(a[b.controllerAs]=f),c.data("$ngControllerController",f),c.children().data("$ngControllerController",f));w(a)}}}n=e.module("ngRoute",["ng"]).provider("$route",function(){function
 s(a,c){return e.extend(new (e.extend(function(){},
-{prototype:a})),c)}function g(a,e){var 
b=e.caseInsensitiveMatch,f={originalPath:a,regexp:a},h=f.keys=[];a=a.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(a,e,b,c){a="?"===c?c:null;c="*"===c?c:null;h.push({name:b,optional:!!a});e=e||"";return""+(a?"":e)+"(?:"+(a?e:"")+(c&&"(.+?)"||"([^/]+)")+(a||"")+")"+(a||"")}).replace(/([\/$\*])/g,"\\$1");f.regexp=RegExp("^"+a+"$",b?"i":"");return
 f}var 
h={};this.when=function(a,c){h[a]=e.extend({reloadOnSearch:!0},c,a&&g(a,c));if(a){var
 b=
-"/"==a[a.length-1]?a.substr(0,a.length-1):a+"/";h[b]=e.extend({redirectTo:a},g(b,c))}return
 this};this.otherwise=function(a){this.when(null,a);return 
this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$http","$templateCache","$sce",function(a,c,b,f,g,n,v,k){function
 l(){var 
d=p(),m=r.current;if(d&&m&&d.$$route===m.$$route&&e.equals(d.pathParams,m.pathParams)&&!d.reloadOnSearch&&!u)m.params=d.params,e.copy(m.params,b),a.$broadcast("$routeUpdate",m);else
 if(d||m)u=!1,a.$broadcast("$routeChangeStart",
-d,m),(r.current=d)&&d.redirectTo&&(e.isString(d.redirectTo)?c.path(t(d.redirectTo,d.params)).search(d.params).replace():c.url(d.redirectTo(d.pathParams,c.path(),c.search())).replace()),f.when(d).then(function(){if(d){var
 
a=e.extend({},d.resolve),c,b;e.forEach(a,function(d,c){a[c]=e.isString(d)?g.get(d):g.invoke(d)});e.isDefined(c=d.template)?e.isFunction(c)&&(c=c(d.params)):e.isDefined(b=d.templateUrl)&&(e.isFunction(b)&&(b=b(d.params)),b=k.getTrustedResourceUrl(b),e.isDefined(b)&&(d.loadedTemplateUrl=
-b,c=n.get(b,{cache:v}).then(function(a){return 
a.data})));e.isDefined(c)&&(a.$template=c);return 
f.all(a)}}).then(function(c){d==r.current&&(d&&(d.locals=c,e.copy(d.params,b)),a.$broadcast("$routeChangeSuccess",d,m))},function(c){d==r.current&&a.$broadcast("$routeChangeError",d,m,c)})}function
 p(){var a,b;e.forEach(h,function(f,h){var q;if(q=!b){var 
g=c.path();q=f.keys;var l={};if(f.regexp)if(g=f.regexp.exec(g)){for(var 
k=1,p=g.length;k<p;++k){var n=q[k-1],r=g[k];n&&r&&(l[n.name]=r)}q=l}else q=null;
-else 
q=null;q=a=q}q&&(b=s(f,{params:e.extend({},c.search(),a),pathParams:a}),b.$$route=f)});return
 b||h[null]&&s(h[null],{params:{},pathParams:{}})}function t(a,c){var 
b=[];e.forEach((a||"").split(":"),function(a,d){if(0===d)b.push(a);else{var 
e=a.match(/(\w+)(?:[?*])?(.*)/),f=e[1];b.push(c[f]);b.push(e[2]||"");delete 
c[f]}});return b.join("")}var 
u=!1,r={routes:h,reload:function(){u=!0;a.$evalAsync(l)}};a.$on("$locationChangeSuccess",l);return
 r}]});n.provider("$routeParams",function(){this.$get=
-function(){return{}}});n.directive("ngView",x);n.directive("ngView",z);x.$inject=["$route","$anchorScroll","$animate"];z.$inject=["$compile","$controller","$route"]})(window,window.angular);
-//# sourceMappingURL=angular-route.min.js.map

http://git-wip-us.apache.org/repos/asf/mesos/blob/c7685917/src/webui/master/static/js/app.js
----------------------------------------------------------------------
diff --git a/src/webui/master/static/js/app.js 
b/src/webui/master/static/js/app.js
deleted file mode 100644
index 7de0899..0000000
--- a/src/webui/master/static/js/app.js
+++ /dev/null
@@ -1,371 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-(function() {
-  'use strict';
-
-  angular.module('mesos', ['ngRoute', 'mesos.services', 'ui.bootstrap', 
'ui.bootstrap.dialog']).
-    config(['paginationConfig', '$routeProvider', function(paginationConfig, 
$routeProvider) {
-      $routeProvider
-        .when('/',
-          {templateUrl: 'static/home.html', controller: 'HomeCtrl'})
-        .when('/agents',
-          {templateUrl: 'static/agents.html', controller: 'AgentsCtrl'})
-        .when('/agents/:agent_id',
-          {templateUrl: 'static/agent.html', controller: 'AgentCtrl'})
-        .when('/agents/:agent_id/frameworks/:framework_id',
-          {templateUrl: 'static/agent_framework.html', controller: 
'AgentFrameworkCtrl'})
-        
.when('/agents/:agent_id/frameworks/:framework_id/executors/:executor_id',
-          {templateUrl: 'static/agent_executor.html', controller: 
'AgentExecutorCtrl'})
-        .when('/frameworks',
-          {templateUrl: 'static/frameworks.html', controller: 
'FrameworksCtrl'})
-        .when('/frameworks/:id',
-          {templateUrl: 'static/framework.html', controller: 'FrameworkCtrl'})
-        .when('/maintenance',
-          {templateUrl: 'static/maintenance.html', controller: 
'MaintenanceCtrl'})
-        .when('/offers',
-          {templateUrl: 'static/offers.html', controller: 'OffersCtrl'})
-        .when('/roles',
-          {templateUrl: 'static/roles.html', controller: 'RolesCtrl'})
-
-        // TODO(tomxing): Remove the following '/slaves/*' paths once the
-        // slave->agent rename is complete(MESOS-3779).
-        .when('/slaves', {redirectTo: '/agents'})
-        .when('/slaves/:agent_id', {redirectTo: '/agents/:agent_id'})
-        .when('/slaves/:agent_id/frameworks/:framework_id',
-          {redirectTo: '/agents/:agent_id/frameworks/:framework_id'})
-        
.when('/slaves/:agent_id/frameworks/:framework_id/executors/:executor_id',
-          {redirectTo: 
'/agents/:agent_id/frameworks/:framework_id/executors/:executor_id'})
-
-        // Use a non-falsy template so the controller will still be executed.
-        // Since the controller is intended only to redirect, the blank 
template
-        // is fine.
-        //
-        // By design, controllers currently will not handle routes if the
-        // template is falsy. There is an issue open in Angular to add that
-        // feature:
-        //
-        //     https://github.com/angular/angular.js/issues/1838
-        
.when('/agents/:agent_id/frameworks/:framework_id/executors/:executor_id/browse',
-          {template: ' ', controller: 'AgentTaskAndExecutorRerouterCtrl'})
-        
.when('/agents/:agent_id/frameworks/:framework_id/executors/:executor_id/tasks/:task_id/browse',
-          {template: ' ', controller: 'AgentTaskAndExecutorRerouterCtrl'})
-        .when('/agents/:agent_id/browse',
-          {templateUrl: 'static/browse.html', controller: 'BrowseCtrl'})
-
-        // TODO(tomxing): Remove the following '/slaves/*' paths once the
-        // slave->agent rename is complete(MESOS-3779).
-        
.when('/slaves/:agent_id/frameworks/:framework_id/executors/:executor_id/browse',
-          {redirectTo: 
'/agents/:agent_id/frameworks/:framework_id/executors/:executor_id/browse'})
-        .when('/slaves/:agent_id/browse',
-          {redirectTo: '/agents/:agent_id/browse'})
-        .otherwise({redirectTo: '/'});
-
-      // Configure [Angular UI Pagination][1]:
-      //   * Show first/last buttons
-      //   * Show 50 items per page
-      //   * Show "..." when there are pages beyond the max shown
-      //
-      // [1] http://angular-ui.github.io/bootstrap/#/pagination
-      paginationConfig.boundaryLinks = true;
-      paginationConfig.rotate = false;
-    }])
-    .filter('truncateMesosID', function() {
-      // Returns a truncated ID, for example:
-      // Input: 9d4b2f2b-a759-4458-bebf-7d3507a6f0ca-S9
-      // Output: ...7d3507a6f0ca-S9
-      //
-      // Note that an ellipsis is used for display purposes.
-      return function(id) {
-        if (id) {
-          var truncatedIdParts = id.split('-');
-
-          if (truncatedIdParts.length > 4) {
-            return '\u2026' + truncatedIdParts.splice(4).join('-');
-          } else {
-            return id;
-          }
-        } else {
-          return '';
-        }
-      };
-    })
-    .filter('truncateMesosState', function() {
-      return function(state) {
-        // Remove the "TASK_" prefix.
-        return state.substring(5);
-      };
-    })
-    .filter('taskHealth', function() {
-      return function(healthy) {
-        if (healthy == null) {
-          return "-";
-        }
-
-        // Note that this string value is relied on to match
-        // against CSS classes to color the UI. Changing this
-        // also requires an update to the CSS.
-        return healthy ? "healthy" : "unhealthy";
-      }
-    })
-    .filter('isoDate', function($filter) {
-      return function(date) {
-        var i = parseInt(date, 10);
-        if (_.isNaN(i)) { return '' }
-        return $filter('date')(i, 'yyyy-MM-ddTHH:mm:ssZ');
-      };
-    })
-    .filter('relativeDate', function() {
-      return function(date, refDate) {
-        var i = parseInt(date, 10);
-        if (_.isNaN(i)) { return '' }
-        return relativeDate(i, refDate);
-      };
-    })
-    .filter('slice', function() {
-      return function(array, begin, end) {
-        if (_.isArray(array)) {
-          return array.slice(begin, end);
-        }
-      };
-    })
-    .filter('unixDate', function($filter) {
-      return function(date) {
-        if ((new Date(date)).getFullYear() == (new Date()).getFullYear()) {
-          return $filter('date')(date, 'MMM dd HH:mm');
-        } else {
-          return $filter('date')(date, 'MMM dd yyyy');
-        }
-      };
-    })
-    // A filter that uses to convert small float number to decimal string.
-    .filter('decimalFloat', function() {
-      return function(num) {
-        return num ? parseFloat(num.toFixed(4)).toString() : num;
-      }
-    })
-    .filter('dataSize', function() {
-      var BYTES_PER_KB = Math.pow(2, 10);
-      var BYTES_PER_MB = Math.pow(2, 20);
-      var BYTES_PER_GB = Math.pow(2, 30);
-      var BYTES_PER_TB = Math.pow(2, 40);
-      var BYTES_PER_PB = Math.pow(2, 50);
-      // NOTE: Number.MAX_SAFE_INTEGER is 2^53 - 1
-
-      return function(bytes) {
-        if (bytes == null || isNaN(bytes)) {
-          return '';
-        } else if (bytes < BYTES_PER_KB) {
-          return bytes.toFixed() + ' B';
-        } else if (bytes < BYTES_PER_MB) {
-          return (bytes / BYTES_PER_KB).toFixed() + ' KB';
-        } else if (bytes < BYTES_PER_GB) {
-          return (bytes / BYTES_PER_MB).toFixed() + ' MB';
-        } else if (bytes < BYTES_PER_TB) {
-          return (bytes / BYTES_PER_GB).toFixed(1) + ' GB';
-        } else if (bytes < BYTES_PER_PB) {
-          return (bytes / BYTES_PER_TB).toFixed(1) + ' TB';
-        } else {
-          return (bytes / BYTES_PER_PB).toFixed(1) + ' PB';
-        }
-      };
-    })
-    .directive('clipboard', [function() {
-      return {
-        restrict: 'A',
-        scope: true,
-        template: '<i class="glyphicon glyphicon-file"></i>',
-
-        link: function(scope, element, _attrs) {
-          var clip = new Clipboard(element[0]);
-
-          element.on('mouseenter', function() {
-            element.addClass('clipboard-is-hover');
-            element.triggerHandler('clipboardhover');
-          });
-
-          element.on('mouseleave', function() {
-            // Restore tooltip content to its original value if it was
-            // changed by this Clipboard instance.
-            if (scope && scope.tt_content_orig) {
-              scope.tt_content = scope.tt_content_orig;
-              delete scope.tt_content_orig;
-            }
-
-            element.removeClass('clipboard-is-hover');
-            element.triggerHandler('clipboardhover');
-          });
-
-          // Success for browsers with `execCommand` support.
-          clip.on('success', function () {
-            // Store the tooltip's original content so it can
-            // be restored when the tooltip is hidden.
-            scope.tt_content_orig = scope.tt_content;
-
-            // Angular UI's Tooltip sets content on the element's scope in a
-            // variable named 'tt_content'. The Tooltip has no public 
interface,
-            // so set the value directly here to change the value of the 
tooltip
-            // when content is successfully copied.
-            scope.tt_content = 'Copied!';
-            scope.$apply();
-          });
-
-          // Support for all other browsers without `execCommand`
-          // support. Text will be selected and user will be prompted
-          // to copy.
-          clip.on('error', function() {
-            scope.tt_content_orig = scope.tt_content;
-            scope.tt_content = 'Press Ctrl/Cmd + C to copy!';
-            scope.$apply();
-          });
-        }
-      };
-    }])
-    .directive('mTimestamp', [ '$rootScope', function($rootScope) {
-      return {
-        restrict: 'E',
-        transclude: true,
-        scope: {
-          value: '@'
-        },
-        link: function($scope, _element, _attrs) {
-          $scope.longDate = JSON.parse(
-            localStorage.getItem('longDate') || false);
-
-          $scope.$on('mTimestamp.toggle', function() {
-            $scope.longDate = !$scope.longDate;
-          });
-
-          $scope.toggle = function() {
-            localStorage.setItem('longDate', !$scope.longDate);
-            $rootScope.$broadcast('mTimestamp.toggle');
-          };
-        },
-        templateUrl: 'static/directives/timestamp.html'
-      }
-    }])
-    .directive('mPagination', function() {
-      return { templateUrl: 'static/directives/pagination.html' }
-    })
-    .directive('mTableHeader', function() {
-      return { templateUrl: 'static/directives/tableHeader.html' }
-    })
-    .directive('mTable', ['$compile', '$filter', function($compile, $filter) {
-      /* This directive does not have a template. The DOM doesn't like
-       * having partially defined tables and so they don't work well with
-       * directives and templates. Because of this, the sub-elements that this
-       * includes are their own directive/templates and it adds them via. DOM
-       * manipulation here.
-       */
-      return {
-        scope: true,
-        link: function(scope, element, attrs) {
-          var defaultOrder = true;
-
-          _.extend(scope, {
-            originalData: [],
-            columnKey: '',
-            sortOrder: defaultOrder,
-            pgNum: 1,
-            pageLength: 50,
-            filterTerm: '',
-            headerTitle: attrs.title
-          })
-          // ---
-
-          // --- Allow sorting by column based on the <th> data-key attribute.
-          // Does not apply for group columns as their children are sortable.
-          var th = element.find('th').not('.group-column');
-          th.attr('ng-click', 'sortColumn($event)');
-          $compile(th)(scope);
-
-          var setSorting = function(el) {
-            var key = el.attr('data-key');
-
-            // Prevent sorting when 'data-key' is undefined.
-            if (!key) {
-              return;
-            }
-
-            if (scope.columnKey === key) {
-              scope.sortOrder = !scope.sortOrder;
-            } else if (el.hasClass('ascending')) {
-              // We can order the table the other way around by adding
-              // 'class="ascending"' to the table header.
-              scope.sortOrder = !defaultOrder;
-            } else {
-              scope.sortOrder = defaultOrder;
-            }
-
-            scope.columnKey = key;
-
-            th.removeClass('descending ascending');
-            el.addClass(scope.sortOrder ? 'descending' : 'ascending');
-          };
-
-          var defaultSortColumn = function() {
-            var el = element.find('[data-sort]');
-            if (el.length === 0) {
-              el = element.find('th:first');
-            }
-            return el;
-          };
-
-          scope.sortColumn = function(ev) {
-            setSorting(angular.element(ev.target));
-          };
-
-          setSorting(defaultSortColumn());
-          // ---
-
-          scope.$watch(attrs.tableContent, function(data) {
-            if (!data) { scope.originalData = []; return }
-            if (angular.isObject(data)) { data = _.values(data) }
-
-            scope.originalData = data;
-          });
-
-          var setTableData = function() {
-            scope.filteredData = $filter('filter')(scope.originalData, 
scope.filterTerm)
-            scope.$data = $filter('orderBy')(
-              scope.filteredData,
-              scope.columnKey,
-              scope.sortOrder).slice(
-                (scope.pgNum - 1) * scope.pageLength,
-                scope.pgNum * scope.pageLength);
-          };
-
-          // Reset the page number for each new filtering.
-          scope.$watch('filterTerm', function() { scope.pgNum = 1; });
-
-          _.each(['originalData', 'columnKey', 'sortOrder', 'pgNum', 
'filterTerm'],
-            function(k) { scope.$watch(k, setTableData); });
-
-          // --- Pagination controls
-          var el = angular.element('<div m-pagination></div>');
-          $compile(el)(scope);
-          element.after(el);
-          // ---
-
-          // --- Filtering
-          el = angular.element('<div m-table-header></div>');
-          $compile(el)(scope);
-          element.before(el);
-          // ---
-        }
-      };
-     }]);
-})();

http://git-wip-us.apache.org/repos/asf/mesos/blob/c7685917/src/webui/master/static/js/bootstrap-table-1.11.1.min.js
----------------------------------------------------------------------
diff --git a/src/webui/master/static/js/bootstrap-table-1.11.1.min.js 
b/src/webui/master/static/js/bootstrap-table-1.11.1.min.js
deleted file mode 100644
index 544bc77..0000000
--- a/src/webui/master/static/js/bootstrap-table-1.11.1.min.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-* bootstrap-table - v1.11.1 - 2017-02-22
-* https://github.com/wenzhixin/bootstrap-table
-* Copyright (c) 2017 zhixin wen
-* Licensed MIT License
-*/
-!function(a){"use strict";var b=null,c=function(a){var 
b=arguments,c=!0,d=1;return a=a.replace(/%s/g,function(){var 
a=b[d++];return"undefined"==typeof 
a?(c=!1,""):a}),c?a:""},d=function(b,c,d,e){var f="";return 
a.each(b,function(a,b){return b[c]===e?(f=b[d],!1):!0}),f},e=function(b,c){var 
d=-1;return a.each(b,function(a,b){return 
b.field===c?(d=a,!1):!0}),d},f=function(b){var 
c,d,e,f=0,g=[];for(c=0;c<b[0].length;c++)f+=b[0][c].colspan||1;for(c=0;c<b.length;c++)for(g[c]=[],d=0;f>d;d++)g[c][d]=!1;for(c=0;c<b.length;c++)for(d=0;d<b[c].length;d++){var
 
h=b[c][d],i=h.rowspan||1,j=h.colspan||1,k=a.inArray(!1,g[c]);for(1===j&&(h.fieldIndex=k,"undefined"==typeof
 
h.field&&(h.field=k)),e=0;i>e;e++)g[c+e][k]=!0;for(e=0;j>e;e++)g[c][k+e]=!0}},g=function(){if(null===b){var
 
c,d,e=a("<p/>").addClass("fixed-table-scroll-inner"),f=a("<div/>").addClass("fixed-table-scroll-outer");f.append(e),a("body").append(f),c=e[0].offsetWidth,f.css("overflow","scroll"),d=e[0].offsetWidth,c===d&&(d=f[0].clientWidth
 ),f.remove(),b=c-d}return b},h=function(b,d,e,f){var g=d;if("string"==typeof 
d){var 
h=d.split(".");h.length>1?(g=window,a.each(h,function(a,b){g=g[b]})):g=window[d]}return"object"==typeof
 g?g:"function"==typeof g?g.apply(b,e||[]):!g&&"string"==typeof 
d&&c.apply(this,[d].concat(e))?c.apply(this,[d].concat(e)):f},i=function(b,c,d){var
 
e=Object.getOwnPropertyNames(b),f=Object.getOwnPropertyNames(c),g="";if(d&&e.length!==f.length)return!1;for(var
 
h=0;h<e.length;h++)if(g=e[h],a.inArray(g,f)>-1&&b[g]!==c[g])return!1;return!0},j=function(a){return"string"==typeof
 
a?a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/`/g,"&#x60;"):a},k=function(a){for(var
 b in a){var 
c=b.split(/(?=[A-Z])/).join("-").toLowerCase();c!==b&&(a[c]=a[b],delete 
a[b])}return a},l=function(a,b,c){var d=a;if("string"!=typeof 
b||a.hasOwnProperty(b))return c?j(a[b]):a[b];var e=b.split(".");for(var f in 
e)e.hasOwnProperty(f)&&(d=d&&d[e[f]]);return c?j(
 d):d},m=function(){return!!(navigator.userAgent.indexOf("MSIE 
")>0||navigator.userAgent.match(/Trident.*rv\:11\./))},n=function(){Object.keys||(Object.keys=function(){var
 
a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=c.length;return
 function(e){if("object"!=typeof e&&("function"!=typeof e||null===e))throw new 
TypeError("Object.keys called on non-object");var f,g,h=[];for(f in 
e)a.call(e,f)&&h.push(f);if(b)for(g=0;d>g;g++)a.call(e,c[g])&&h.push(c[g]);return
 
h}}())},o=function(b,c){this.options=c,this.$el=a(b),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0,this.init()};o.DEFAULTS={classes:"table
 table-hover",sortClass:void 0,locale:void 0,height:void 
0,undefinedText:"-",sortName:void 
0,sortOrder:"asc",sortStable:!1,striped:!1,columns:[[]],data:[],totalField:"total",dataField:"rows",method:"get",url:void
 0,ajax:voi
 d 
0,cache:!0,contentType:"application/json",dataType:"json",ajaxOptions:{},queryParams:function(a){return
 a},queryParamsType:"limit",responseHandler:function(a){return 
a},pagination:!1,onlyInfoPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"&lsaquo;",paginationNextText:"&rsaquo;",search:!1,searchOnEnterKey:!1,strictSearch:!1,searchAlign:"right",selectItemName:"btSelectItem",showHeader:!0,showFooter:!1,showColumns:!1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,buttonsAlign:"right",smartDisplay:!0,escape:!1,minimumCountColumns:1,idField:void
 0,uniqueId:void 
0,cardView:!1,detailView:!1,detailFormatter:function(){return""},trimOnSearch:!0,clickToSelect:!1,singleSelect:!1,toolbar:void
 
0,toolbarAlign:"left",checkboxHeader:!0,sortable:!0,silentSort:!0,maintainSelected:!1,searchTimeOut:500,searchText:"",iconSize:voi
 d 
0,buttonsClass:"default",iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down
 icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up 
icon-chevron-up",refresh:"glyphicon-refresh 
icon-refresh",toggle:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th 
icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus 
icon-minus"},customSearch:a.noop,customSort:a.noop,rowStyle:function(){return{}},rowAttributes:function(){return{}},footerStyle:function(){return{}},onAll:function(){return!1},onClickCell:function(){return!1},onDblClickCell:function(){return!1},onClickRow:function(){return!1},onDblClickRow:function(){return!1},onSort:function(){return!1},onCheck:function(){return!1},onUncheck:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onCheckSome:function(){return!1},onUncheckSome:function(){return!1},onLoadSuccess:function(){return!1},onLoadError:function(){return!1},onColumnSwitch:function(){return
 
!1},onPageChange:function(){return!1},onSearch:function(){return!1},onToggle:function(){return!1},onPreBody:function(){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onExpandRow:function(){return!1},onCollapseRow:function(){return!1},onRefreshOptions:function(){return!1},onRefresh:function(){return!1},onResetView:function(){return!1}},o.LOCALES={},o.LOCALES["en-US"]=o.LOCALES.en={formatLoadingMessage:function(){return"Loading,
 please wait..."},formatRecordsPerPage:function(a){return c("%s rows per 
page",a)},formatShowingRows:function(a,b,d){return c("Showing %s to %s of %s 
rows",a,b,d)},formatDetailPagination:function(a){return c("Showing %s 
rows",a)},formatSearch:function(){return"Search"},formatNoMatches:function(){return"No
 matching records found"},formatPaginationSwitch:function(){return"Hide/Show 
pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatColumns:function(){return"Columns"},formatAllRows:func
 
tion(){return"All"}},a.extend(o.DEFAULTS,o.LOCALES["en-US"]),o.COLUMN_DEFAULTS={radio:!1,checkbox:!1,checkboxEnabled:!0,field:void
 0,title:void 0,titleTooltip:void 0,"class":void 0,align:void 0,halign:void 
0,falign:void 0,valign:void 0,width:void 
0,sortable:!1,order:"asc",visible:!0,switchable:!0,clickToSelect:!0,formatter:void
 0,footerFormatter:void 0,events:void 0,sorter:void 0,sortName:void 
0,cellStyle:void 
0,searchable:!0,searchFormatter:!0,cardVisible:!0,escape:!1},o.EVENTS={"all.bs.table":"onAll","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"on
 
ColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh"},o.prototype.init=function(){this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initFooter(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()},o.prototype.initLocale=function(){if(this.options.locale){var
 
b=this.options.locale.split(/-|_/);b[0].toLowerCase(),b[1]&&b[1].toUpperCase(),a.fn.bootstrapTable.locales[this.options.locale]?a.extend(this.options,a.fn.bootstrapTable.locales[this.options.locale]):a.fn.bootstrapTable.locales[b.join("-")]?a.extend(this.options,a.fn.bootstr
 
apTable.locales[b.join("-")]):a.fn.bootstrapTable.locales[b[0]]&&a.extend(this.options,a.fn.bootstrapTable.locales[b[0]])}},o.prototype.initContainer=function(){this.$container=a(['<div
 class="bootstrap-table">','<div 
class="fixed-table-toolbar"></div>',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'<div
 class="fixed-table-pagination" style="clear: both;"></div>':"",'<div 
class="fixed-table-container">','<div 
class="fixed-table-header"><table></table></div>','<div 
class="fixed-table-body">','<div 
class="fixed-table-loading">',this.options.formatLoadingMessage(),"</div>","</div>",'<div
 
class="fixed-table-footer"><table><tr></tr></table></div>',"bottom"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'<div
 
class="fixed-table-pagination"></div>':"","</div>","</div>"].join("")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-tab
 
le-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$container.find(".fixed-table-footer"),this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('<div
 
class="clearfix"></div>'),this.$el.addClass(this.options.classes),this.options.striped&&this.$el.addClass("table-striped"),-1!==a.inArray("table-no-bordered",this.options.classes.split("
 
"))&&this.$tableContainer.addClass("table-no-bordered")},o.prototype.initTable=function(){var
 
b=this,c=[],d=[];if(this.$header=this.$el.find(">thead"),this.$header.length||(this.$header=a("<thead></thead>").appendTo(this.$el)),this.$header.find("tr").each(function(){var
 b=[];a(this).find("th").each(function(){"undefined"!=typeof 
a(this).data("field")&&a(this).data("field",a(this).data("field")+""),b.push(a.extend({},{title:a(
 
this).html(),"class":a(this).attr("class"),titleTooltip:a(this).attr("title"),rowspan:a(this).attr("rowspan")?+a(this).attr("rowspan"):void
 0,colspan:a(this).attr("colspan")?+a(this).attr("colspan"):void 
0},a(this).data()))}),c.push(b)}),a.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=a.extend(!0,[],c,this.options.columns),this.columns=[],f(this.options.columns),a.each(this.options.columns,function(c,d){a.each(d,function(d,e){e=a.extend({},o.COLUMN_DEFAULTS,e),"undefined"!=typeof
 
e.fieldIndex&&(b.columns[e.fieldIndex]=e),b.options.columns[c][d]=e})}),!this.options.data.length){var
 e=[];this.$el.find(">tbody>tr").each(function(c){var 
f={};f._id=a(this).attr("id"),f._class=a(this).attr("class"),f._data=k(a(this).data()),a(this).find(">td").each(function(d){for(var
 
g,h,i=a(this),j=+i.attr("colspan")||1,l=+i.attr("rowspan")||1;e[c]&&e[c][d];d++);for(g=d;d+j>g;g++)for(h=c;c+l>h;h++)e[h]||(e[h]=[]),e[h][g]=!0;var
 m=b.columns[d].field;
 
f[m]=a(this).html(),f["_"+m+"_id"]=a(this).attr("id"),f["_"+m+"_class"]=a(this).attr("class"),f["_"+m+"_rowspan"]=a(this).attr("rowspan"),f["_"+m+"_colspan"]=a(this).attr("colspan"),f["_"+m+"_title"]=a(this).attr("title"),f["_"+m+"_data"]=k(a(this).data())}),d.push(f)}),this.options.data=d,d.length&&(this.fromHtml=!0)}},o.prototype.initHeader=function(){var
 
b=this,d={},e=[];this.header={fields:[],styles:[],classes:[],formatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},a.each(this.options.columns,function(f,g){e.push("<tr>"),0===f&&!b.options.cardView&&b.options.detailView&&e.push(c('<th
 class="detail" rowspan="%s"><div 
class="fht-cell"></div></th>',b.options.columns.length)),a.each(g,function(a,f){var
 g="",h="",i="",k="",l=c(' 
class="%s"',f["class"]),m=(b.options.sortOrder||f.order,"px"),n=f.width;if(void 
0===f.width||b.options.cardView||"string"==typeof 
f.width&&-1!==f.width.indexOf("%")&&(m="%"),f.width&&"string"==typeof 
f.width&&(n=f.width.replace("%",""
 ).replace("px","")),h=c("text-align: %s; 
",f.halign?f.halign:f.align),i=c("text-align: %s; 
",f.align),k=c("vertical-align: %s; ",f.valign),k+=c("width: %s; 
",!f.checkbox&&!f.radio||n?n?n+m:void 0:"36px"),"undefined"!=typeof 
f.fieldIndex){if(b.header.fields[f.fieldIndex]=f.field,b.header.styles[f.fieldIndex]=i+k,b.header.classes[f.fieldIndex]=l,b.header.formatters[f.fieldIndex]=f.formatter,b.header.events[f.fieldIndex]=f.events,b.header.sorters[f.fieldIndex]=f.sorter,b.header.sortNames[f.fieldIndex]=f.sortName,b.header.cellStyles[f.fieldIndex]=f.cellStyle,b.header.searchables[f.fieldIndex]=f.searchable,!f.visible)return;if(b.options.cardView&&!f.cardVisible)return;d[f.field]=f}e.push("<th"+c('
 title="%s"',f.titleTooltip),f.checkbox||f.radio?c(' class="bs-checkbox 
%s"',f["class"]||""):l,c(' style="%s"',h+k),c(' rowspan="%s"',f.rowspan),c(' 
colspan="%s"',f.colspan),c(' data-field="%s"',f.field),">"),e.push(c('<div 
class="th-inner %s">',b.options.sortable&&f.sortable?"sortable both":"")
 
),g=b.options.escape?j(f.title):f.title,f.checkbox&&(!b.options.singleSelect&&b.options.checkboxHeader&&(g='<input
 name="btSelectAll" type="checkbox" 
/>'),b.header.stateField=f.field),f.radio&&(g="",b.header.stateField=f.field,b.options.singleSelect=!0),e.push(g),e.push("</div>"),e.push('<div
 
class="fht-cell"></div>'),e.push("</div>"),e.push("</th>")}),e.push("</tr>")}),this.$header.html(e.join("")),this.$header.find("th[data-field]").each(function(){a(this).data(d[a(this).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(c){var
 d=a(this);return 
b.options.detailView&&d.closest(".bootstrap-table")[0]!==b.$container[0]?!1:void(b.options.sortable&&d.parent().data().sortable&&b.onSort(c))}),this.$header.children().children().off("keypress").on("keypress",function(c){if(b.options.sortable&&a(this).data().sortable){var
 
d=c.keyCode||c.which;13==d&&b.onSort(c)}}),a(window).off("resize.bootstrap-table"),!this.options.showHeader||this.options.cardView?
 
(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),a(window).on("resize.bootstrap-table",a.proxy(this.resetWidth,this))),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",function(){var
 
c=a(this).prop("checked");b[c?"checkAll":"uncheckAll"](),b.updateSelected()})},o.prototype.initFooter=function(){!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()},o.prototype.initData=function(a,b){this.data="append"===b?this.data.concat(a):"prepend"===b?[].concat(a).concat(this.data):a||this.options.data,this.options.data="append"===b?this.options.data.concat(a):"prepend"===b?[].concat(a).concat(this.options.data):this.data,"server"!==this.options.sidePagination&&this.initSort()},o.prototype.initSort=function(){var
 b=this,d=this.options.sortName,e="desc"===t
 
his.options.sortOrder?-1:1,f=a.inArray(this.options.sortName,this.header.fields),g=0;return
 this.options.customSort!==a.noop?void 
this.options.customSort.apply(this,[this.options.sortName,this.options.sortOrder]):void(-1!==f&&(this.options.sortStable&&a.each(this.data,function(a,b){b.hasOwnProperty("_position")||(b._position=a)}),this.data.sort(function(c,g){b.header.sortNames[f]&&(d=b.header.sortNames[f]);var
 
i=l(c,d,b.options.escape),j=l(g,d,b.options.escape),k=h(b.header,b.header.sorters[f],[i,j]);return
 void 0!==k?e*k:((void 0===i||null===i)&&(i=""),(void 
0===j||null===j)&&(j=""),b.options.sortStable&&i===j&&(i=c._position,j=g._position),a.isNumeric(i)&&a.isNumeric(j)?(i=parseFloat(i),j=parseFloat(j),j>i?-1*e:e):i===j?0:("string"!=typeof
 i&&(i=i.toString()),-1===i.localeCompare(j)?-1*e:e))}),void 
0!==this.options.sortClass&&(clearTimeout(g),g=setTimeout(function(){b.$el.removeClass(b.options.sortClass);var
 a=b.$header.find(c('[data-field="%s"]',b.options.sortName).index()+1);b.$
 el.find(c("tr 
td:nth-child(%s)",a)).addClass(b.options.sortClass)},250))))},o.prototype.onSort=function(b){var
 
c="keypress"===b.type?a(b.currentTarget):a(b.currentTarget).parent(),d=this.$header.find("th").eq(c.index());return
 
this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===c.data("field")?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=c.data("field"),this.options.sortOrder="asc"===c.data("order")?"desc":"asc"),this.trigger("sort",this.options.sortName,this.options.sortOrder),c.add(d).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination?void
 this.initServer(this.options.silentSort):(this.initSort(),void 
this.initBody())},o.prototype.initToolbar=function(){var 
b,d,e=this,f=[],g=0,i=0;this.$toolbar.find(".bs-bars").children().length&&a("body").append(a(this.options.toolbar)),this.$toolbar.html(""),("string"==typeof
 this.options.toolbar||"object"==typeof this.options.to
 olbar)&&a(c('<div class="bs-bars 
pull-%s"></div>',this.options.toolbarAlign)).appendTo(this.$toolbar).append(a(this.options.toolbar)),f=[c('<div
 class="columns columns-%s btn-group 
pull-%s">',this.options.buttonsAlign,this.options.buttonsAlign)],"string"==typeof
 
this.options.icons&&(this.options.icons=h(null,this.options.icons)),this.options.showPaginationSwitch&&f.push(c('<button
 class="btn'+c(" btn-%s",this.options.buttonsClass)+c(" 
btn-%s",this.options.iconSize)+'" type="button" name="paginationSwitch" 
aria-label="pagination Switch" 
title="%s">',this.options.formatPaginationSwitch()),c('<i class="%s 
%s"></i>',this.options.iconsPrefix,this.options.icons.paginationSwitchDown),"</button>"),this.options.showRefresh&&f.push(c('<button
 class="btn'+c(" btn-%s",this.options.buttonsClass)+c(" 
btn-%s",this.options.iconSize)+'" type="button" name="refresh" 
aria-label="refresh" title="%s">',this.options.formatRefresh()),c('<i class="%s 
%s"></i>',this.options.iconsPrefix,this.options.icons.re
 fresh),"</button>"),this.options.showToggle&&f.push(c('<button class="btn'+c(" 
btn-%s",this.options.buttonsClass)+c(" btn-%s",this.options.iconSize)+'" 
type="button" name="toggle" aria-label="toggle" 
title="%s">',this.options.formatToggle()),c('<i class="%s 
%s"></i>',this.options.iconsPrefix,this.options.icons.toggle),"</button>"),this.options.showColumns&&(f.push(c('<div
 class="keep-open btn-group" 
title="%s">',this.options.formatColumns()),'<button type="button" 
aria-label="columns" class="btn'+c(" btn-%s",this.options.buttonsClass)+c(" 
btn-%s",this.options.iconSize)+' dropdown-toggle" 
data-toggle="dropdown">',c('<i class="%s 
%s"></i>',this.options.iconsPrefix,this.options.icons.columns),' <span 
class="caret"></span>',"</button>",'<ul class="dropdown-menu" 
role="menu">'),a.each(this.columns,function(a,b){if(!(b.radio||b.checkbox||e.options.cardView&&!b.cardVisible)){var
 d=b.visible?' checked="checked"':"";b.switchable&&(f.push(c('<li 
role="menuitem"><label><input type="checkbox" d
 ata-field="%s" value="%s"%s> 
%s</label></li>',b.field,a,d,b.title)),i++)}}),f.push("</ul>","</div>")),f.push("</div>"),(this.showToolbar||f.length>2)&&this.$toolbar.append(f.join("")),this.options.showPaginationSwitch&&this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",a.proxy(this.togglePagination,this)),this.options.showRefresh&&this.$toolbar.find('button[name="refresh"]').off("click").on("click",a.proxy(this.refresh,this)),this.options.showToggle&&this.$toolbar.find('button[name="toggle"]').off("click").on("click",function(){e.toggleView()}),this.options.showColumns&&(b=this.$toolbar.find(".keep-open"),i<=this.options.minimumCountColumns&&b.find("input").prop("disabled",!0),b.find("li").off("click").on("click",function(a){a.stopImmediatePropagation()}),b.find("input").off("click").on("click",function(){var
 
b=a(this);e.toggleColumn(a(this).val(),b.prop("checked"),!1),e.trigger("column-switch",a(this).data("field"),b.prop("checked"))})),this.options.searc
 h&&(f=[],f.push('<div class="pull-'+this.options.searchAlign+' 
search">',c('<input class="form-control'+c(" 
input-%s",this.options.iconSize)+'" type="text" 
placeholder="%s">',this.options.formatSearch()),"</div>"),this.$toolbar.append(f.join("")),d=this.$toolbar.find(".search
 input"),d.off("keyup drop blur").on("keyup drop 
blur",function(b){e.options.searchOnEnterKey&&13!==b.keyCode||a.inArray(b.keyCode,[37,38,39,40])>-1||(clearTimeout(g),g=setTimeout(function(){e.onSearch(b)},e.options.searchTimeOut))}),m()&&d.off("mouseup").on("mouseup",function(a){clearTimeout(g),g=setTimeout(function(){e.onSearch(a)},e.options.searchTimeOut)}))},o.prototype.onSearch=function(b){var
 
c=a.trim(a(b.currentTarget).val());this.options.trimOnSearch&&a(b.currentTarget).val()!==c&&a(b.currentTarget).val(c),c!==this.searchText&&(this.searchText=c,this.options.searchText=c,this.options.pageNumber=1,this.initSearch(),this.updatePagination(),this.trigger("search",c))},o.prototype.initSearch=function(){var
 b=
 
this;if("server"!==this.options.sidePagination){if(this.options.customSearch!==a.noop)return
 void this.options.customSearch.apply(this,[this.searchText]);var 
c=this.searchText&&(this.options.escape?j(this.searchText):this.searchText).toLowerCase(),d=a.isEmptyObject(this.filterColumns)?null:this.filterColumns;this.data=d?a.grep(this.options.data,function(b){for(var
 c in 
d)if(a.isArray(d[c])&&-1===a.inArray(b[c],d[c])||!a.isArray(d[c])&&b[c]!==d[c])return!1;return!0}):this.options.data,this.data=c?a.grep(this.data,function(d,f){for(var
 g=0;g<b.header.fields.length;g++)if(b.header.searchables[g]){var 
i,j=a.isNumeric(b.header.fields[g])?parseInt(b.header.fields[g],10):b.header.fields[g],k=b.columns[e(b.columns,j)];if("string"==typeof
 j){i=d;for(var 
l=j.split("."),m=0;m<l.length;m++)i=i[l[m]];k&&k.searchFormatter&&(i=h(k,b.header.formatters[g],[i,d,f],i))}else
 i=d[j];if("string"==typeof i||"number"==typeof 
i)if(b.options.strictSearch){if((i+"").toLowerCase()===c)return!0}else 
if(-1!==(i+
 
"").toLowerCase().indexOf(c))return!0}return!1}):this.data}},o.prototype.initPagination=function(){if(!this.options.pagination)return
 void this.$pagination.hide();this.$pagination.show();var 
b,d,e,f,g,h,i,j,k,l=this,m=[],n=!1,o=this.getData(),p=this.options.pageList;if("server"!==this.options.sidePagination&&(this.options.totalRows=o.length),this.totalPages=0,this.options.totalRows){if(this.options.pageSize===this.options.formatAllRows())this.options.pageSize=this.options.totalRows,n=!0;else
 if(this.options.pageSize===this.options.totalRows){var q="string"==typeof 
this.options.pageList?this.options.pageList.replace("[","").replace("]","").replace(/
 
/g,"").toLowerCase().split(","):this.options.pageList;a.inArray(this.options.formatAllRows().toLowerCase(),q)>-1&&(n=!0)}this.totalPages=~~((this.options.totalRows-1)/this.options.pageSize)+1,this.options.totalPages=this.totalPages}if(this.totalPages>0&&this.options.pageNumber>this.totalPages&&(this.options.pageNumber=this.totalPages),thi
 
s.pageFrom=(this.options.pageNumber-1)*this.options.pageSize+1,this.pageTo=this.options.pageNumber*this.options.pageSize,this.pageTo>this.options.totalRows&&(this.pageTo=this.options.totalRows),m.push('<div
 class="pull-'+this.options.paginationDetailHAlign+' 
pagination-detail">','<span 
class="pagination-info">',this.options.onlyInfoPagination?this.options.formatDetailPagination(this.options.totalRows):this.options.formatShowingRows(this.pageFrom,this.pageTo,this.options.totalRows),"</span>"),!this.options.onlyInfoPagination){m.push('<span
 class="page-list">');var r=[c('<span class="btn-group 
%s">',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?"dropdown":"dropup"),'<button
 type="button" class="btn'+c(" btn-%s",this.options.buttonsClass)+c(" 
btn-%s",this.options.iconSize)+' dropdown-toggle" 
data-toggle="dropdown">','<span 
class="page-size">',n?this.options.formatAllRows():this.options.pageSize,"</span>",'
 <span class="caret"></span>',"</button>",'<ul cl
 ass="dropdown-menu" role="menu">'];if("string"==typeof 
this.options.pageList){var 
s=this.options.pageList.replace("[","").replace("]","").replace(/ 
/g,"").split(",");p=[],a.each(s,function(a,b){p.push(b.toUpperCase()===l.options.formatAllRows().toUpperCase()?l.options.formatAllRows():+b)})}for(a.each(p,function(a,b){if(!l.options.smartDisplay||0===a||p[a-1]<l.options.totalRows){var
 d;d=n?b===l.options.formatAllRows()?' 
class="active"':"":b===l.options.pageSize?' class="active"':"",r.push(c('<li 
role="menuitem"%s><a 
href="#">%s</a></li>',d,b))}}),r.push("</ul></span>"),m.push(this.options.formatRecordsPerPage(r.join(""))),m.push("</span>"),m.push("</div>",'<div
 class="pull-'+this.options.paginationHAlign+' pagination">','<ul 
class="pagination'+c(" pagination-%s",this.options.iconSize)+'">','<li 
class="page-pre"><a 
href="#">'+this.options.paginationPreText+"</a></li>"),this.totalPages<5?(d=1,e=this.totalPages):(d=this.options.pageNumber-2,e=d+4,1>d&&(d=1,e=5),e>this.totalPages&&(e=thi
 
s.totalPages,d=e-4)),this.totalPages>=6&&(this.options.pageNumber>=3&&(m.push('<li
 class="page-first'+(1===this.options.pageNumber?" active":"")+'">','<a 
href="#">',1,"</a>","</li>"),d++),this.options.pageNumber>=4&&(4==this.options.pageNumber||6==this.totalPages||7==this.totalPages?d--:m.push('<li
 class="page-first-separator disabled">','<a 
href="#">...</a>',"</li>"),e--)),this.totalPages>=7&&this.options.pageNumber>=this.totalPages-2&&d--,6==this.totalPages?this.options.pageNumber>=this.totalPages-2&&e++:this.totalPages>=7&&(7==this.totalPages||this.options.pageNumber>=this.totalPages-3)&&e++,b=d;e>=b;b++)m.push('<li
 class="page-number'+(b===this.options.pageNumber?" active":"")+'">','<a 
href="#">',b,"</a>","</li>");this.totalPages>=8&&this.options.pageNumber<=this.totalPages-4&&m.push('<li
 class="page-last-separator disabled">','<a 
href="#">...</a>',"</li>"),this.totalPages>=6&&this.options.pageNumber<=this.totalPages-3&&m.push('<li
 class="page-last'+(this.totalPages===this.optio
 ns.pageNumber?" active":"")+'">','<a 
href="#">',this.totalPages,"</a>","</li>"),m.push('<li class="page-next"><a 
href="#">'+this.options.paginationNextText+"</a></li>","</ul>","</div>")}this.$pagination.html(m.join("")),this.options.onlyInfoPagination||(f=this.$pagination.find(".page-list
 
a"),g=this.$pagination.find(".page-first"),h=this.$pagination.find(".page-pre"),i=this.$pagination.find(".page-next"),j=this.$pagination.find(".page-last"),k=this.$pagination.find(".page-number"),this.options.smartDisplay&&(this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),(p.length<2||this.options.totalRows<=p[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"]()),this.options.paginationLoop||(1===this.options.pageNumber&&h.addClass("disabled"),this.options.pageNumber===this.totalPages&&i.addClass("disabled")),n&&(this.options.pageSize=this.options.formatAllRows()),f.off("click").on("click",a.proxy(this.onPageListChange,this)),
 
g.off("click").on("click",a.proxy(this.onPageFirst,this)),h.off("click").on("click",a.proxy(this.onPagePre,this)),i.off("click").on("click",a.proxy(this.onPageNext,this)),j.off("click").on("click",a.proxy(this.onPageLast,this)),k.off("click").on("click",a.proxy(this.onPageNumber,this)))},o.prototype.updatePagination=function(b){b&&a(b.currentTarget).hasClass("disabled")||(this.options.maintainSelected||this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))},o.prototype.onPageListChange=function(b){var
 c=a(b.currentTarget);return 
c.parent().addClass("active").siblings().removeClass("active"),this.options.pageSize=c.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+c.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(b),!1},o.prototype.onPageFirst=function(a){return
 this.
 
options.pageNumber=1,this.updatePagination(a),!1},o.prototype.onPagePre=function(a){return
 
this.options.pageNumber-1===0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(a),!1},o.prototype.onPageNext=function(a){return
 
this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(a),!1},o.prototype.onPageLast=function(a){return
 
this.options.pageNumber=this.totalPages,this.updatePagination(a),!1},o.prototype.onPageNumber=function(b){return
 
this.options.pageNumber!==+a(b.currentTarget).text()?(this.options.pageNumber=+a(b.currentTarget).text(),this.updatePagination(b),!1):void
 0},o.prototype.initRow=function(b,e){var 
f,g=this,i=[],k={},m=[],n="",o={},p=[];if(!(a.inArray(b,this.hiddenRows)>-1)){if(k=h(this.options,this.options.rowStyle,[b,e],k),k&&k.css)for(f
 in k.css)m.push(f+": 
"+k.css[f]);if(o=h(this.options,this.options.rowAttributes,[b,e],o))for(f in 
o)p.push(c('%s="%s"',f,
 j(o[f])));return 
b._data&&!a.isEmptyObject(b._data)&&a.each(b._data,function(a,b){"index"!==a&&(n+=c('
 data-%s="%s"',a,b))}),i.push("<tr",c(" %s",p.join(" ")),c(' 
id="%s"',a.isArray(b)?void 0:b._id),c(' 
class="%s"',k.classes||(a.isArray(b)?void 0:b._class)),c(' 
data-index="%s"',e),c(' 
data-uniqueid="%s"',b[this.options.uniqueId]),c("%s",n),">"),this.options.cardView&&i.push(c('<td
 colspan="%s"><div 
class="card-views">',this.header.fields.length)),!this.options.cardView&&this.options.detailView&&i.push("<td>",'<a
 class="detail-icon" href="#">',c('<i class="%s 
%s"></i>',this.options.iconsPrefix,this.options.icons.detailOpen),"</a>","</td>"),a.each(this.header.fields,function(f,n){var
 
o="",p=l(b,n,g.options.escape),q="",r="",s={},t="",u=g.header.classes[f],v="",w="",x="",y="",z=g.columns[f];if(!(g.fromHtml&&"undefined"==typeof
 
p||!z.visible||g.options.cardView&&!z.cardVisible)){if(z.escape&&(p=j(p)),k=c('style="%s"',m.concat(g.header.styles[f]).join(";
 ")),b["_"+n+"_id"]&&(t=c(' id="%s
 "',b["_"+n+"_id"])),b["_"+n+"_class"]&&(u=c(' 
class="%s"',b["_"+n+"_class"])),b["_"+n+"_rowspan"]&&(w=c(' 
rowspan="%s"',b["_"+n+"_rowspan"])),b["_"+n+"_colspan"]&&(x=c(' 
colspan="%s"',b["_"+n+"_colspan"])),b["_"+n+"_title"]&&(y=c(' 
title="%s"',b["_"+n+"_title"])),s=h(g.header,g.header.cellStyles[f],[p,b,e,n],s),s.classes&&(u=c('
 class="%s"',s.classes)),s.css){var A=[];for(var B in s.css)A.push(B+": 
"+s.css[B]);k=c('style="%s"',A.concat(g.header.styles[f]).join("; 
"))}q=h(z,g.header.formatters[f],[p,b,e],p),b["_"+n+"_data"]&&!a.isEmptyObject(b["_"+n+"_data"])&&a.each(b["_"+n+"_data"],function(a,b){"index"!==a&&(v+=c('
 
data-%s="%s"',a,b))}),z.checkbox||z.radio?(r=z.checkbox?"checkbox":r,r=z.radio?"radio":r,o=[c(g.options.cardView?'<div
 class="card-view %s">':'<td class="bs-checkbox 
%s">',z["class"]||""),"<input"+c(' data-index="%s"',e)+c(' 
name="%s"',g.options.selectItemName)+c(' type="%s"',r)+c(' 
value="%s"',b[g.options.idField])+c(' 
checked="%s"',q===!0||p||q&&q.checked?"checked":vo
 id 0)+c(' disabled="%s"',!z.checkboxEnabled||q&&q.disabled?"disabled":void 
0)+" />",g.header.formatters[f]&&"string"==typeof 
q?q:"",g.options.cardView?"</div>":"</td>"].join(""),b[g.header.stateField]=q===!0||q&&q.checked):(q="undefined"==typeof
 q||null===q?g.options.undefinedText:q,o=g.options.cardView?['<div 
class="card-view">',g.options.showHeader?c('<span class="title" 
%s>%s</span>',k,d(g.columns,"field","title",n)):"",c('<span 
class="value">%s</span>',q),"</div>"].join(""):[c("<td%s %s %s %s %s %s 
%s>",t,u,k,v,w,x,y),q,"</td>"].join(""),g.options.cardView&&g.options.smartDisplay&&""===q&&(o='<div
 
class="card-view"></div>')),i.push(o)}}),this.options.cardView&&i.push("</div></td>"),i.push("</tr>"),i.join("
 ")}},o.prototype.initBody=function(b){var 
d=this,f=this.getData();this.trigger("pre-body",f),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=a("<tbody></tbody>").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFr
 om=1,this.pageTo=f.length);for(var 
g,i=a(document.createDocumentFragment()),j=this.pageFrom-1;j<this.pageTo;j++){
-var 
k=f[j],m=this.initRow(k,j,f,i);g=g||!!m,m&&m!==!0&&i.append(m)}g||i.append('<tr 
class="no-records-found">'+c('<td 
colspan="%s">%s</td>',this.$header.find("th").length,this.options.formatNoMatches())+"</tr>"),this.$body.html(i),b||this.scrollTo(0),this.$body.find(">
 tr[data-index] > td").off("click dblclick").on("click 
dblclick",function(b){var 
f=a(this),g=f.parent(),h=d.data[g.data("index")],i=f[0].cellIndex,j=d.getVisibleFields(),k=j[d.options.detailView&&!d.options.cardView?i-1:i],m=d.columns[e(d.columns,k)],n=l(h,k,d.options.escape);if(!f.find(".detail-icon").length&&(d.trigger("click"===b.type?"click-cell":"dbl-click-cell",k,n,h,f),d.trigger("click"===b.type?"click-row":"dbl-click-row",h,g,k),"click"===b.type&&d.options.clickToSelect&&m.clickToSelect)){var
 
o=g.find(c('[name="%s"]',d.options.selectItemName));o.length&&o[0].click()}}),this.$body.find(">
 tr[data-index] > td > .detail-icon").off("click").on("click",function(){var 
b=a(this),e=b.parent().parent(),g=e.data("index")
 ,i=f[g];if(e.next().is("tr.detail-view"))b.find("i").attr("class",c("%s 
%s",d.options.iconsPrefix,d.options.icons.detailOpen)),d.trigger("collapse-row",g,i),e.next().remove();else{b.find("i").attr("class",c("%s
 %s",d.options.iconsPrefix,d.options.icons.detailClose)),e.after(c('<tr 
class="detail-view"><td colspan="%s"></td></tr>',e.find("td").length));var 
j=e.next().find("td"),k=h(d.options,d.options.detailFormatter,[g,i,j],"");1===j.length&&j.append(k),d.trigger("expand-row",g,i,j)}return
 
d.resetView(),!1}),this.$selectItem=this.$body.find(c('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",function(b){b.stopImmediatePropagation();var
 
c=a(this),e=c.prop("checked"),f=d.data[c.data("index")];d.options.maintainSelected&&a(this).is(":radio")&&a.each(d.options.data,function(a,b){b[d.header.stateField]=!1}),f[d.header.stateField]=e,d.options.singleSelect&&(d.$selectItem.not(this).each(function(){d.data[a(this).data("index")][d.header.stateField]=!1}),d.$
 
selectItem.filter(":checked").not(this).prop("checked",!1)),d.updateSelected(),d.trigger(e?"check":"uncheck",f,c)}),a.each(this.header.events,function(b,c){if(c){"string"==typeof
 c&&(c=h(null,c));var 
e=d.header.fields[b],f=a.inArray(e,d.getVisibleFields());d.options.detailView&&!d.options.cardView&&(f+=1);for(var
 g in c)d.$body.find(">tr:not(.no-records-found)").each(function(){var 
b=a(this),h=b.find(d.options.cardView?".card-view":"td").eq(f),i=g.indexOf(" 
"),j=g.substring(0,i),k=g.substring(i+1),l=c[g];h.find(k).off(j).on(j,function(a){var
 
c=b.data("index"),f=d.data[c],g=f[e];l.apply(this,[a,g,f,c])})})}}),this.updateSelected(),this.resetView(),this.trigger("post-body",f)},o.prototype.initServer=function(b,c,d){var
 
e,f=this,g={},i={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};this.options.pagination&&(i.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,i.pageNumber=this.options.
 
pageNumber),(d||this.options.url||this.options.ajax)&&("limit"===this.options.queryParamsType&&(i={search:i.searchText,sort:i.sortName,order:i.sortOrder},this.options.pagination&&(i.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),i.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize)),a.isEmptyObject(this.filterColumnsPartial)||(i.filter=JSON.stringify(this.filterColumnsPartial,null)),g=h(this.options,this.options.queryParams,[i],g),a.extend(g,c||{}),g!==!1&&(b||this.$tableLoading.show(),e=a.extend({},h(null,this.options.ajaxOptions),{type:this.options.method,url:d||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(g):g,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(a){a=h(f.options,f.options.responseHandler,[a],a),f.load(a),f.trigger("load-succ
 
ess",a),b||f.$tableLoading.hide()},error:function(a){f.trigger("load-error",a.status,a),b||f.$tableLoading.hide()}}),this.options.ajax?h(this,this.options.ajax,[e],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=a.ajax(e))))},o.prototype.initSearchText=function(){if(this.options.search&&""!==this.options.searchText){var
 a=this.$toolbar.find(".search 
input");a.val(this.options.searchText),this.onSearch({currentTarget:a})}},o.prototype.getCaret=function(){var
 
b=this;a.each(this.$header.find("th"),function(c,d){a(d).find(".sortable").removeClass("desc
 
asc").addClass(a(d).data("field")===b.options.sortName?b.options.sortOrder:"both")})},o.prototype.updateSelected=function(){var
 
b=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",b),this.$selectItem.each(function(){a(this).closest("tr")[a(this).prop("checked")?"a
 ddClass":"removeClass"]("selected")})},o.prototype.updateRows=function(){var 
b=this;this.$selectItem.each(function(){b.data[a(this).data("index")][b.header.stateField]=a(this).prop("checked")})},o.prototype.resetRows=function(){var
 
b=this;a.each(this.data,function(a,c){b.$selectAll.prop("checked",!1),b.$selectItem.prop("checked",!1),b.header.stateField&&(c[b.header.stateField]=!1)}),this.initHiddenRows()},o.prototype.trigger=function(b){var
 
c=Array.prototype.slice.call(arguments,1);b+=".bs.table",this.options[o.EVENTS[b]].apply(this.options,c),this.$el.trigger(a.Event(b),c),this.options.onAll(b,c),this.$el.trigger(a.Event("all.bs.table"),[b,c])},o.prototype.resetHeader=function(){clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(a.proxy(this.fitHeader,this),this.$el.is(":hidden")?100:0)},o.prototype.fitHeader=function(){var
 b,d,e,f,h=this;if(h.$el.is(":hidden"))return 
void(h.timeoutId_=setTimeout(a.proxy(h.fitHeader,h),100));if(b=this.$tableBody.get(0),d=b.scrollWidth>b.clien
 
tWidth&&b.scrollHeight>b.clientHeight+this.$header.outerHeight()?g():0,this.$el.css("margin-top",-this.$header.outerHeight()),e=a(":focus"),e.length>0){var
 i=e.parents("th");if(i.length>0){var j=i.attr("data-field");if(void 0!==j){var 
k=this.$header.find("[data-field='"+j+"']");k.length>0&&k.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css({"margin-right":d}).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),f=a(".focus-temp:visible:eq(0)"),f.length>0&&(f.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each(function(){h.$header_.find(c('th[data-field="%s"]',a(this).data("field"))).data(a(this).data())});var
 
l=this.getVisibleFields(),m=this.$header_.find("th");this.$body.find(">tr:first-child:not(.no-records-found)
 > *").each(function(b){var d=a(this),
 
e=b;h.options.detailView&&!h.options.cardView&&(0===b&&h.$header_.find("th.detail").find(".fht-cell").width(d.innerWidth()),e=b-1);var
 
f=h.$header_.find(c('th[data-field="%s"]',l[e]));f.length>1&&(f=a(m[d[0].cellIndex])),f.find(".fht-cell").width(d.innerWidth())}),this.$tableBody.off("scroll").on("scroll",function(){h.$tableHeader.scrollLeft(a(this).scrollLeft()),h.options.showFooter&&!h.options.cardView&&h.$tableFooter.scrollLeft(a(this).scrollLeft())}),h.trigger("post-header")},o.prototype.resetFooter=function(){var
 
b=this,d=b.getData(),e=[];this.options.showFooter&&!this.options.cardView&&(!this.options.cardView&&this.options.detailView&&e.push('<td><div
 class="th-inner">&nbsp;</div><div 
class="fht-cell"></div></td>'),a.each(this.columns,function(a,f){var 
g,i="",j="",k=[],l={},m=c(' 
class="%s"',f["class"]);if(f.visible&&(!b.options.cardView||f.cardVisible)){if(i=c("text-align:
 %s; ",f.falign?f.falign:f.align),j=c("vertical-align: %s; 
",f.valign),l=h(null,b.options.footerStyle),l&
 &l.css)for(g in l.css)k.push(g+": "+l.css[g]);e.push("<td",m,c(' 
style="%s"',i+j+k.concat().join("; ")),">"),e.push('<div 
class="th-inner">'),e.push(h(f,f.footerFormatter,[d],"&nbsp;")||"&nbsp;"),e.push("</div>"),e.push('<div
 
class="fht-cell"></div>'),e.push("</div>"),e.push("</td>")}}),this.$tableFooter.find("tr").html(e.join("")),this.$tableFooter.show(),clearTimeout(this.timeoutFooter_),this.timeoutFooter_=setTimeout(a.proxy(this.fitFooter,this),this.$el.is(":hidden")?100:0))},o.prototype.fitFooter=function(){var
 b,c,d;return 
clearTimeout(this.timeoutFooter_),this.$el.is(":hidden")?void(this.timeoutFooter_=setTimeout(a.proxy(this.fitFooter,this),100)):(c=this.$el.css("width"),d=c>this.$tableBody.width()?g():0,this.$tableFooter.css({"margin-right":d}).find("table").css("width",c).attr("class",this.$el.attr("class")),b=this.$tableFooter.find("td"),void
 this.$body.find(">tr:first-child:not(.no-records-found) > 
*").each(function(c){var d=a(this);b.eq(c).find(".fht-cell").width(d.inne
 
rWidth())}))},o.prototype.toggleColumn=function(a,b,d){if(-1!==a&&(this.columns[a].visible=b,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var
 e=this.$toolbar.find(".keep-open 
input").prop("disabled",!1);d&&e.filter(c('[value="%s"]',a)).prop("checked",b),e.filter(":checked").length<=this.options.minimumCountColumns&&e.filter(":checked").prop("disabled",!0)}},o.prototype.getVisibleFields=function(){var
 b=this,c=[];return a.each(this.header.fields,function(a,d){var 
f=b.columns[e(b.columns,d)];f.visible&&c.push(d)}),c},o.prototype.resetView=function(a){var
 
b=0;if(a&&a.height&&(this.options.height=a.height),this.$selectAll.prop("checked",this.$selectItem.length>0&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.options.height){var
 
c=this.$toolbar.outerHeight(!0),d=this.$pagination.outerHeight(!0),e=this.options.height-c-d;this.$tableContainer.css("height",e+"px")}return
 this.options.cardView?(this.$el.css(
 "margin-top","0"),this.$tableContainer.css("padding-bottom","0"),void 
this.$tableFooter.hide()):(this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),b+=this.$header.outerHeight()):(this.$tableHeader.hide(),this.trigger("post-header")),this.options.showFooter&&(this.resetFooter(),this.options.height&&(b+=this.$tableFooter.outerHeight()+1)),this.getCaret(),this.$tableContainer.css("padding-bottom",b+"px"),void
 
this.trigger("reset-view"))},o.prototype.getData=function(b){return!this.searchText&&a.isEmptyObject(this.filterColumns)&&a.isEmptyObject(this.filterColumnsPartial)?b?this.options.data.slice(this.pageFrom-1,this.pageTo):this.options.data:b?this.data.slice(this.pageFrom-1,this.pageTo):this.data},o.prototype.load=function(b){var
 
c=!1;"server"===this.options.sidePagination?(this.options.totalRows=b[this.options.totalField],c=b.fixedScroll,b=b[this.options.dataField]):a.isArray(b)||(c=b.fixedScroll,b=b.data),this.initData(b),this.initSearch(),th
 
is.initPagination(),this.initBody(c)},o.prototype.append=function(a){this.initData(a,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},o.prototype.prepend=function(a){this.initData(a,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},o.prototype.remove=function(b){var
 
c,d,e=this.options.data.length;if(b.hasOwnProperty("field")&&b.hasOwnProperty("values")){for(c=e-1;c>=0;c--)d=this.options.data[c],d.hasOwnProperty(b.field)&&-1!==a.inArray(d[b.field],b.values)&&(this.options.data.splice(c,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1));e!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},o.prototype.removeAll=function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))},o.prototype.getRowByUniqueId=function(a){var
 b,c,d,e=this.options.uniqueId,f=thi
 
s.options.data.length,g=null;for(b=f-1;b>=0;b--){if(c=this.options.data[b],c.hasOwnProperty(e))d=c[e];else{if(!c._data.hasOwnProperty(e))continue;d=c._data[e]}if("string"==typeof
 d?a=a.toString():"number"==typeof 
d&&(Number(d)===d&&d%1===0?a=parseInt(a):d===Number(d)&&0!==d&&(a=parseFloat(a))),d===a){g=c;break}}return
 g},o.prototype.removeByUniqueId=function(a){var 
b=this.options.data.length,c=this.getRowByUniqueId(a);c&&this.options.data.splice(this.options.data.indexOf(c),1),b!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))},o.prototype.updateByUniqueId=function(b){var
 c=this,d=a.isArray(b)?b:[b];a.each(d,function(b,d){var 
e;d.hasOwnProperty("id")&&d.hasOwnProperty("row")&&(e=a.inArray(c.getRowByUniqueId(d.id),c.options.data),-1!==e&&a.extend(c.options.data[e],d.row))}),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},o.prototype.insertRow=function(a){a.hasOwnProperty("index")&&a.hasOwnProperty("row")&&(this.data.sp
 
lice(a.index,0,a.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))},o.prototype.updateRow=function(b){var
 
c=this,d=a.isArray(b)?b:[b];a.each(d,function(b,d){d.hasOwnProperty("index")&&d.hasOwnProperty("row")&&a.extend(c.options.data[d.index],d.row)}),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},o.prototype.initHiddenRows=function(){this.hiddenRows=[]},o.prototype.showRow=function(a){this.toggleRow(a,!0)},o.prototype.hideRow=function(a){this.toggleRow(a,!1)},o.prototype.toggleRow=function(b,c){var
 
d,e;b.hasOwnProperty("index")?d=this.getData()[b.index]:b.hasOwnProperty("uniqueId")&&(d=this.getRowByUniqueId(b.uniqueId)),d&&(e=a.inArray(d,this.hiddenRows),c||-1!==e?c&&e>-1&&this.hiddenRows.splice(e,1):this.hiddenRows.push(d),this.initBody(!0))},o.prototype.getHiddenRows=function(){var
 b=this,c=this.getData(),d=[];return 
a.each(c,function(c,e){a.inArray(e,b.hiddenRows)>-1&&d.push(e)}),this.hiddenRows=d,d},o.prototype.mergeCells
 =function(b){var 
c,d,e,f=b.index,g=a.inArray(b.field,this.getVisibleFields()),h=b.rowspan||1,i=b.colspan||1,j=this.$body.find(">tr");if(this.options.detailView&&!this.options.cardView&&(g+=1),e=j.eq(f).find(">td").eq(g),!(0>f||0>g||f>=this.data.length)){for(c=f;f+h>c;c++)for(d=g;g+i>d;d++)j.eq(c).find(">td").eq(d).hide();e.attr("rowspan",h).attr("colspan",i).show()}},o.prototype.updateCell=function(a){a.hasOwnProperty("index")&&a.hasOwnProperty("field")&&a.hasOwnProperty("value")&&(this.data[a.index][a.field]=a.value,a.reinit!==!1&&(this.initSort(),this.initBody(!0)))},o.prototype.getOptions=function(){return
 this.options},o.prototype.getSelections=function(){var b=this;return 
a.grep(this.options.data,function(a){return 
a[b.header.stateField]===!0})},o.prototype.getAllSelections=function(){var 
b=this;return a.grep(this.options.data,function(a){return 
a[b.header.stateField]})},o.prototype.checkAll=function(){this.checkAll_(!0)},o.prototype.uncheckAll=function(){this.checkAll_(!1)},o.
 prototype.checkInvert=function(){var 
b=this,c=b.$selectItem.filter(":enabled"),d=c.filter(":checked");c.each(function(){a(this).prop("checked",!a(this).prop("checked"))}),b.updateRows(),b.updateSelected(),b.trigger("uncheck-some",d),d=b.getSelections(),b.trigger("check-some",d)},o.prototype.checkAll_=function(a){var
 
b;a||(b=this.getSelections()),this.$selectAll.add(this.$selectAll_).prop("checked",a),this.$selectItem.filter(":enabled").prop("checked",a),this.updateRows(),a&&(b=this.getSelections()),this.trigger(a?"check-all":"uncheck-all",b)},o.prototype.check=function(a){this.check_(!0,a)},o.prototype.uncheck=function(a){this.check_(!1,a)},o.prototype.check_=function(a,b){var
 
d=this.$selectItem.filter(c('[data-index="%s"]',b)).prop("checked",a);this.data[b][this.header.stateField]=a,this.updateSelected(),this.trigger(a?"check":"uncheck",this.data[b],d)},o.prototype.checkBy=function(a){this.checkBy_(!0,a)},o.prototype.uncheckBy=function(a){this.checkBy_(!1,a)},o.prototype.checkBy_=f
 unction(b,d){if(d.hasOwnProperty("field")&&d.hasOwnProperty("values")){var 
e=this,f=[];a.each(this.options.data,function(g,h){if(!h.hasOwnProperty(d.field))return!1;if(-1!==a.inArray(h[d.field],d.values)){var
 
i=e.$selectItem.filter(":enabled").filter(c('[data-index="%s"]',g)).prop("checked",b);h[e.header.stateField]=b,f.push(h),e.trigger(b?"check":"uncheck",h,i)}}),this.updateSelected(),this.trigger(b?"check-some":"uncheck-some",f)}},o.prototype.destroy=function(){this.$el.insertBefore(this.$container),a(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")},o.prototype.showLoading=function(){this.$tableLoading.show()},o.prototype.hideLoading=function(){this.$tableLoading.hide()},o.prototype.togglePagination=function(){this.options.pagination=!this.options.pagination;var
 a=this.$toolbar.find('button[name="paginationSwitch"] i');this.options.
 pagination?a.attr("class",this.options.iconsPrefix+" 
"+this.options.icons.paginationSwitchDown):a.attr("class",this.options.iconsPrefix+"
 
"+this.options.icons.paginationSwitchUp),this.updatePagination()},o.prototype.refresh=function(a){a&&a.url&&(this.options.url=a.url),a&&a.pageNumber&&(this.options.pageNumber=a.pageNumber),a&&a.pageSize&&(this.options.pageSize=a.pageSize),this.initServer(a&&a.silent,a&&a.query,a&&a.url),this.trigger("refresh",a)},o.prototype.resetWidth=function(){this.options.showHeader&&this.options.height&&this.fitHeader(),this.options.showFooter&&this.fitFooter()},o.prototype.showColumn=function(a){this.toggleColumn(e(this.columns,a),!0,!0)},o.prototype.hideColumn=function(a){this.toggleColumn(e(this.columns,a),!1,!0)},o.prototype.getHiddenColumns=function(){return
 
a.grep(this.columns,function(a){return!a.visible})},o.prototype.getVisibleColumns=function(){return
 a.grep(this.columns,function(a){return 
a.visible})},o.prototype.toggleAllColumns=function(b){if(a.e
 
ach(this.columns,function(a){this.columns[a].visible=b}),this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var
 c=this.$toolbar.find(".keep-open 
input").prop("disabled",!1);c.filter(":checked").length<=this.options.minimumCountColumns&&c.filter(":checked").prop("disabled",!0)}},o.prototype.showAllColumns=function(){this.toggleAllColumns(!0)},o.prototype.hideAllColumns=function(){this.toggleAllColumns(!1)},o.prototype.filterBy=function(b){this.filterColumns=a.isEmptyObject(b)?{}:b,this.options.pageNumber=1,this.initSearch(),this.updatePagination()},o.prototype.scrollTo=function(a){return"string"==typeof
 a&&(a="bottom"===a?this.$tableBody[0].scrollHeight:0),"number"==typeof 
a&&this.$tableBody.scrollTop(a),"undefined"==typeof 
a?this.$tableBody.scrollTop():void 
0},o.prototype.getScrollPosition=function(){return 
this.scrollTo()},o.prototype.selectPage=function(a){a>0&&a<=this.options.totalPages&&(this.options.pageNumber=a,this.updatePagina
 
tion())},o.prototype.prevPage=function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())},o.prototype.nextPage=function(){this.options.pageNumber<this.options.totalPages&&(this.options.pageNumber++,this.updatePagination())},o.prototype.toggleView=function(){this.options.cardView=!this.options.cardView,this.initHeader(),this.initBody(),this.trigger("toggle",this.options.cardView)},o.prototype.refreshOptions=function(b){i(this.options,b,!0)||(this.options=a.extend(this.options,b),this.trigger("refresh-options",this.options),this.destroy(),this.init())},o.prototype.resetSearch=function(a){var
 b=this.$toolbar.find(".search 
input");b.val(a||""),this.onSearch({currentTarget:b})},o.prototype.expandRow_=function(a,b){var
 d=this.$body.find(c('> 
tr[data-index="%s"]',b));d.next().is("tr.detail-view")===(a?!1:!0)&&d.find("> 
td > 
.detail-icon").click()},o.prototype.expandRow=function(a){this.expandRow_(!0,a)},o.prototype.collapseRow=function(a){this.expandRow_(!1,a
 )},o.prototype.expandAllRows=function(b){if(b){var d=this.$body.find(c('> 
tr[data-index="%s"]',0)),e=this,f=null,g=!1,h=-1;if(d.next().is("tr.detail-view")?d.next().next().is("tr.detail-view")||(d.next().find(".detail-icon").click(),g=!0):(d.find(">
 td > 
.detail-icon").click(),g=!0),g)try{h=setInterval(function(){f=e.$body.find("tr.detail-view").last().find(".detail-icon"),f.length>0?f.click():clearInterval(h)},1)}catch(i){clearInterval(h)}}else
 for(var 
j=this.$body.children(),k=0;k<j.length;k++)this.expandRow_(!0,a(j[k]).data("index"))},o.prototype.collapseAllRows=function(b){if(b)this.expandRow_(!1,0);else
 for(var 
c=this.$body.children(),d=0;d<c.length;d++)this.expandRow_(!1,a(c[d]).data("index"))},o.prototype.updateFormatText=function(a,b){this.options[c("format%s",a)]&&("string"==typeof
 b?this.options[c("format%s",a)]=function(){return b}:"function"==typeof 
b&&(this.options[c("format%s",a)]=b)),this.initToolbar(),this.initPagination(),this.initBody()};var
 p=["getOptions","getSel
 
ections","getAllSelections","getData","load","append","prepend","remove","removeAll","insertRow","updateRow","updateCell","updateByUniqueId","removeByUniqueId","getRowByUniqueId","showRow","hideRow","getHiddenRows","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","resetView","resetWidth","destroy","showLoading","hideLoading","showColumn","hideColumn","getHiddenColumns","getVisibleColumns","showAllColumns","hideAllColumns","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","togglePagination","toggleView","refreshOptions","resetSearch","expandRow","collapseRow","expandAllRows","collapseAllRows","updateFormatText"];a.fn.bootstrapTable=function(b){var
 c,d=Array.prototype.slice.call(arguments,1);return this.each(function(){var 
e=a(this),f=e.data("bootstrap.table"),g=a.extend({},o.DEFAULTS,e.data(),"object"==typeof
 b&&b);if("string"==typeof b){if(a.inArray(b,p)<0)throw new Error("Unknown 
method: "+b);if(!f)retur
 
n;c=f[b].apply(f,d),"destroy"===b&&e.removeData("bootstrap.table")}f||e.data("bootstrap.table",f=new
 o(this,g))}),"undefined"==typeof 
c?this:c},a.fn.bootstrapTable.Constructor=o,a.fn.bootstrapTable.defaults=o.DEFAULTS,a.fn.bootstrapTable.columnDefaults=o.COLUMN_DEFAULTS,a.fn.bootstrapTable.locales=o.LOCALES,a.fn.bootstrapTable.methods=p,a.fn.bootstrapTable.utils={sprintf:c,getFieldIndex:e,compareObjects:i,calculateObjectValue:h,getItemField:l,objectKeys:n,isIEBrowser:m},a(function(){a('[data-toggle="table"]').bootstrapTable()})}(jQuery);

http://git-wip-us.apache.org/repos/asf/mesos/blob/c7685917/src/webui/master/static/js/clipboard-1.5.16.min.js
----------------------------------------------------------------------
diff --git a/src/webui/master/static/js/clipboard-1.5.16.min.js 
b/src/webui/master/static/js/clipboard-1.5.16.min.js
deleted file mode 100644
index 1d7c5d5..0000000
--- a/src/webui/master/static/js/clipboard-1.5.16.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * clipboard.js v1.5.16
- * https://zenorocha.github.io/clipboard.js
- *
- * Licensed MIT © Zeno Rocha
- */
-!function(e){if("object"==typeof exports&&"undefined"!=typeof 
module)module.exports=e();else if("function"==typeof 
define&&define.amd)define([],e);else{var t;t="undefined"!=typeof 
window?window:"undefined"!=typeof global?global:"undefined"!=typeof 
self?self:this,t.Clipboard=e()}}(function(){var e,t,n;return function 
e(t,n,i){function o(a,c){if(!n[a]){if(!t[a]){var l="function"==typeof 
require&&require;if(!c&&l)return l(a,!0);if(r)return r(a,!0);var s=new 
Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var 
u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return 
o(n?n:e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var r="function"==typeof 
require&&require,a=0;a<i.length;a++)o(i[a]);return 
o}({1:[function(e,t,n){function 
i(e,t){for(;e&&e.nodeType!==o;){if(e.matches(t))return e;e=e.parentNode}}var 
o=9;if(Element&&!Element.prototype.matches){var 
r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMa
 
tchesSelector||r.webkitMatchesSelector}t.exports=i},{}],2:[function(e,t,n){function
 i(e,t,n,i,r){var a=o.apply(this,arguments);return 
e.addEventListener(n,a,r),{destroy:function(){e.removeEventListener(n,a,r)}}}function
 o(e,t,n,i){return 
function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}var 
r=e("./closest");t.exports=i},{"./closest":1}],3:[function(e,t,n){n.node=function(e){return
 void 0!==e&&e instanceof 
HTMLElement&&1===e.nodeType},n.nodeList=function(e){var 
t=Object.prototype.toString.call(e);return void 0!==e&&("[object 
NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in 
e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof 
e||e instanceof String},n.fn=function(e){var 
t=Object.prototype.toString.call(e);return"[object 
Function]"===t}},{}],4:[function(e,t,n){function i(e,t,n){if(!e&&!t&&!n)throw 
new Error("Missing required arguments");if(!c.string(t))throw new 
TypeError("Second argument must be a String");if(!c.fn(n))throw new
  TypeError("Third argument must be a Function");if(c.node(e))return 
o(e,t,n);if(c.nodeList(e))return r(e,t,n);if(c.string(e))return a(e,t,n);throw 
new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or 
NodeList")}function o(e,t,n){return 
e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function
 r(e,t,n){return 
Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function
 a(e,t,n){return l(document.body,e,t,n)}var 
c=e("./is"),l=e("delegate");t.exports=i},{"./is":3,delegate:2}],5:[function(e,t,n){function
 i(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else 
if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();var
 
n=window.getSelection(),i=document.createRange();i.selectNodeContents(e),n.removeAllRanges(),n.addRange(i),
 t=n.toString()}return t}t.exports=i},{}],6:[function(e,t,n){function 
i(){}i.prototype={on:function(e,t,n){var 
i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function
 i(){o.off(e,i),t.apply(n,arguments)}var o=this;return 
i._=t,this.on(e,i,n)},emit:function(e){var 
t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;for(i;i<o;i++)n[i].fn.apply(n[i].ctx,t);return
 this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],o=[];if(i&&t)for(var 
r=0,a=i.length;r<a;r++)i[r].fn!==t&&i[r].fn._!==t&&o.push(i[r]);return 
o.length?n[e]=o:delete 
n[e],this}},t.exports=i},{}],7:[function(t,n,i){!function(o,r){if("function"==typeof
 e&&e.amd)e(["module","select"],r);else if("undefined"!=typeof 
i)r(n,t("select"));else{var 
a={exports:{}};r(a,o.select),o.clipboardAction=a.exports}}(this,function(e,t){"use
 strict";function n(e){return e&&e.__esModule?e:{default:e}}function 
i(e,t){if(!(e instanceof t))throw new TypeError("Cannot cal
 l a class as a function")}var o=n(t),r="function"==typeof 
Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof 
e}:function(e){return e&&"function"==typeof 
Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof 
e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var 
i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in 
i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return 
function(t,n,i){return 
n&&e(t.prototype,n),i&&e(t,i),t}}(),c=function(){function 
e(t){i(this,e),this.resolveOptions(t),this.initSelection()}return 
a(e,[{key:"resolveOptions",value:function e(){var t=arguments.length>0&&void 
0!==arguments[0]?arguments[0]:{};this.action=t.action,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function
 
e(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function
 e(){var t=this,n="rtl"==document.documentElement.
 
getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return
 
t.removeFake()},this.fakeHandler=document.body.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var
 
i=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.addEventListener("focus",window.scrollTo(0,i)),this.fakeElem.style.top=i+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,o.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function
 
e(){this.fakeHandler&&(document.body.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(document.body.removeChi
 ld(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function 
e(){this.selectedText=(0,o.default)(this.target),this.copyText()}},{key:"copyText",value:function
 e(){var t=void 
0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function
 
e(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function
 
e(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function
 e(){this.removeFake()}},{key:"action",set:function e(){var 
t=arguments.length>0&&void 
0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw
 new Error('Invalid "action" value, use either "copy" or "cut"')},get:function 
e(){return this._action}},{key:"target",set:function e(t){if(void 
0!==t){if(!t||"object"!==("undefined"==typeof t?"undefined
 ":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid 
Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new 
Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" 
attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw
 new Error('Invalid "target" attribute. You can\'t cut text from elements with 
"readonly" or "disabled" attributes');this._target=t}},get:function e(){return 
this._target}}]),e}();e.exports=c})},{select:5}],8:[function(t,n,i){!function(o,r){if("function"==typeof
 
e&&e.amd)e(["module","./clipboard-action","tiny-emitter","good-listener"],r);else
 if("undefined"!=typeof 
i)r(n,t("./clipboard-action"),t("tiny-emitter"),t("good-listener"));else{var 
a={exports:{}};r(a,o.clipboardAction,o.tinyEmitter,o.goodListener),o.clipboard=a.exports}}(this,function(e,t,n,i){"use
 strict";function o(e){return e&&e.__esModule?e:{default:e}}function 
r(e,t){if(!(e instanceof t))throw new T
 ypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new 
ReferenceError("this hasn't been initialised - super() hasn't been 
called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function 
c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression 
must either be null or a function, not "+typeof 
t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function
 l(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return 
t.getAttribute(n)}var s=o(t),u=o(n),f=o(i),d=function(){function e(e,t){for(var 
n=0;n<t.length;n++){var 
i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in 
i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return 
function(t,n,i){return 
n&&e(t.prototype,n),i&&e(t,i),t}}(),h=function(e){function t(e,n){r(this,t);var 
i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.r
 esolveOptions(n),i.listenClick(e),i}return 
c(t,e),d(t,[{key:"resolveOptions",value:function e(){var 
t=arguments.length>0&&void 
0!==arguments[0]?arguments[0]:{};this.action="function"==typeof 
t.action?t.action:this.defaultAction,this.target="function"==typeof 
t.target?t.target:this.defaultTarget,this.text="function"==typeof 
t.text?t.text:this.defaultText}},{key:"listenClick",value:function e(t){var 
n=this;this.listener=(0,f.default)(t,"click",function(e){return 
n.onClick(e)})}},{key:"onClick",value:function e(t){var 
n=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new
 
s.default({action:this.action(n),target:this.target(n),text:this.text(n),trigger:n,emitter:this})}},{key:"defaultAction",value:function
 e(t){return l("action",t)}},{key:"defaultTarget",value:function e(t){var 
n=l("target",t);if(n)return 
document.querySelector(n)}},{key:"defaultText",value:function e(t){return 
l("text",t)}},{key:"destroy",value:function e(){this.l
 
istener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}]),t}(u.default);e.exports=h})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});
\ No newline at end of file

Reply via email to