PageSourceSearch

https://provincia.alessandria.it/wp-content/themes/theme-wpaitalia…/tablesaw/tablesaw.min.js?ver=3.20.947

js provincia.alessandria.it collected 2026-09-25 00:31:58 UTC 39,631 bytes, 7 lines download raw bytes

1/*! Tablesaw - v3.0.6 - 2017-11-20
2* https://github.com/filamentgroup/tablesaw
3* Copyright (c) 2017 Filament Group; Licensed MIT */
4/*! Shoestring - v2.0.0 - 2017-02-14
5* http://github.com/filamentgroup/shoestring/
6* Copyright (c) 2017 Scott Jehl, Filament Group, Inc; Licensed MIT & GPLv2 */
7!function(t){"function"==typeof define&&define.amd?define(["shoestring"],t):"object"==typeof module&&module.exports?module.exports=t():t()}((function(){var t="undefined"!=typeof window?window:this,e=t.document;function n(s,i){var o,r=typeof s;if(!s)return new a([]);if(s.call)return n.ready(s);if(s.constructor===a&&!i)return s;if("string"===r&&0===s.indexOf("<")){var l=e.createElement("div");return l.innerHTML=s,n(l).children().each((function(){l.removeChild(this)}))}return"string"===r?i?n(i).find(s):(o=e.querySelectorAll(s),new a(o,s)):"[object Array]"===Object.prototype.toString.call(r)||t.NodeList&&s instanceof t.NodeList||s.constructor===Array?new a(s,s):new a([s],s)}var a=function(t,e){this.length=0,this.selector=e,n.merge(this,t)};a.prototype.reverse=[].reverse,n.fn=a.prototype,n.Shoestring=a,n.extend=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},n.merge=function(t,e){var n,a,s;for(n=+e.length,a=0,s=t.length;a<n;a++)t[s++]=e[a];return t.length=s,t},t.shoestring=n,n.fn.each=function(t){return n.each(this,t)},n.each=function(t,e){for(var n=0,a=t.length;n<a&&!1!==e.call(t[n],n,t[n]);n++);return t},n.inArray=function(t,e){for(var n=-1,a=0,s=e.length;a<s;a++)e.hasOwnProperty(a)&&e[a]===t&&(n=a);return n},n.ready=function(t){return i&&t?t.call(e):t?o.push(t):r(),[e]},n.fn.ready=function(t){return n.ready(t),this};var s,i=!1,o=[],r=function(){if(!i){for(;o.length;)o.shift().call(e);i=!0}};function l(t,e){var n=!1;return t.each((function(){for(var t=0;t<e.length;)this===e[t]&&(n=!0),t++})),n}(e.attachEvent?"complete"===e.readyState:"loading"!==e.readyState)?r():(e.addEventListener("DOMContentLoaded",r,!1),e.addEventListener("readystatechange",r,!1),t.addEventListener("load",r,!1)),n.fn.is=function(t){var a,s=!1,i=this;return"string"!=typeof t?l(this,t.length&&t[0]?t:[t]):((a=this.parent()).length||(a=n(e)),a.each((function(e,n){var a;a=n.querySelectorAll(t),s=l(i,a)})),s)},n.fn.data=function(t,e){return void 0===t?this[0]?this[0].shoestringData||{}:void 0:void 0!==e?this.each((function(){this.shoestringData||(this.shoestringData={}),this.shoestringData[t]=e})):this[0]&&this[0].shoestringData?this[0].shoestringData[t]:void 0},n.fn.removeData=function(t){return this.each((function(){void 0!==t&&this.shoestringData?(this.shoestringData[t]=void 0,delete this.shoestringData[t]):this[0].shoestringData={}}))},t.$=n,n.fn.addClass=function(t){var e=t.replace(/^\s+|\s+$/g,"").split(" ");return this.each((function(){for(var t=0,n=e.length;t<n;t++)void 0===this.className||""!==this.className&&this.className.match(new RegExp("(^|\\s)"+e[t]+"($|\\s)"))||(this.className+=" "+e[t])}))},n.fn.add=function(t){var e=[];return this.each((function(){e.push(this)})),n(t).each((function(){e.push(this)})),n(e)},n.fn.append=function(t){return"string"!=typeof t&&void 0===t.nodeType||(t=n(t)),this.each((function(e){for(var n=0,a=t.length;n<a;n++)this.appendChild(e>0?t[n].cloneNode(!0):t[n])}))},n.fn.appendTo=function(t){return this.each((function(){n(t).append(this)}))},n.fn.attr=function(t,e){var n="string"==typeof t;return void 0===e&&n?this[0]?this[0].getAttribute(t):void 0:this.each((function(){if(n)this.setAttribute(t,e);else for(var a in t)t.hasOwnProperty(a)&&this.setAttribute(a,t[a])}))},n.fn.before=function(t){return"string"!=typeof t&&void 0===t.nodeType||(t=n(t)),this.each((function(e){for(var n=0,a=t.length;n<a;n++)this.parentNode.insertBefore(e>0?t[n].cloneNode(!0):t[n],this)}))},n.fn.children=function(){var t,e,a=[];return this.each((function(){for(t=this.children,e=-1;e++<t.length-1;)-1===n.inArray(t[e],a)&&a.push(t[e])})),n(a)},n.fn.closest=function(t){var e=[];return t?(this.each((function(){var a;
7if(n(a=this).is(t))e.push(this);else for(;a.parentElement;){if(n(a.parentElement).is(t)){e.push(a.parentElement);break}a=a.parentElement}})),n(e)):n(e)},n.cssExceptions={float:["cssFloat"]},function(){var e=n.cssExceptions;function a(e,n){return t.getComputedStyle(e,null).getPropertyValue(n)}var s=["","-webkit-","-ms-","-moz-","-o-","-khtml-"];n._getStyle=function(t,n){var i,o,r,l;if(e[n])for(r=0,l=e[n].length;r<l;r++)if(o=a(t,e[n][r]))return o;for(r=0,l=s.length;r<l;r++)if(o=a(t,i=(s[r]+n).replace(/\-([A-Za-z])/g,(function(t,e){return e.toUpperCase()}))),i!==n&&(o=o||a(t,n)),s[r]&&(o=o||a(t,s[r]+n)),o)return o}}(),s=n.cssExceptions,n._setStyle=function(t,e,n){var a=e.replace(/\-([A-Za-z])/g,(function(t,e){return e.toUpperCase()}));if(t.style[e]=n,a!==e&&(t.style[a]=n),s[e])for(var i=0,o=s[e].length;i<o;i++)t.style[s[e][i]]=n},n.fn.css=function(t,e){if(this[0])return"object"==typeof t?this.each((function(){for(var e in t)t.hasOwnProperty(e)&&n._setStyle(this,e,t[e])})):void 0!==e?this.each((function(){n._setStyle(this,t,e)})):n._getStyle(this[0],t)},n.fn.eq=function(t){return this[t]?n(this[t]):n([])},n.fn.filter=function(t){var a=[];return this.each((function(s){var i;if("function"==typeof t)!1!==t.call(this,s)&&a.push(this);else{if(this.parentNode)i=n(t,this.parentNode);else{var o=n(e.createDocumentFragment());o[0].appendChild(this),i=n(t,o)}n.inArray(this,i)>-1&&a.push(this)}})),n(a)},n.fn.find=function(t){var e,a=[];return this.each((function(){for(var n=0,s=(e=this.querySelectorAll(t)).length;n<s;n++)a=a.concat(e[n])})),n(a)},n.fn.first=function(){return this.eq(0)},n.fn.get=function(t){if(void 0===t){for(var e=[],n=0;n<this.length;n++)e.push(this[n]);return e}return this[t]};var c=function(t){if("string"==typeof t||"number"==typeof t)return this.each((function(){this.innerHTML=""+t}));var e="";if(void 0!==t.length)for(var n=0,a=t.length;n<a;n++)e+=t[n].outerHTML;else e=t.outerHTML;return this.each((function(){this.innerHTML=e}))};n.fn.html=function(t){if(void 0!==t)return c.call(this,t);var e="";return this.each((function(){e+=this.innerHTML})),e},function(){function t(t,e){var n,a,s;for(n=a=0;n<t.length;n++){if(e(s=t.item?t.item(n):t[n]))return a;1===s.nodeType&&a++}return-1}n.fn.index=function(a){var s;return s=this,void 0===a?t((this[0]&&this[0].parentNode||e.documentElement).childNodes,(function(t){return s[0]===t})):t(s,(function(t){return t===n(a,t.parentNode)[0]}))}}(),n.fn.insertBefore=function(t){return this.each((function(){n(t).before(this)}))},n.fn.last=function(){return this.eq(this.length-1)},n.fn.next=function(){var t=[];return this.each((function(){var e,a,s;e=n(this.parentNode)[0].childNodes;for(var i=0;i<e.length;i++){if(a=e.item(i),s&&1===a.nodeType){t.push(a);break}a===this&&(s=!0)}})),n(t)},n.fn.not=function(t){var e=[];return this.each((function(){var a=n(t,this.parentNode);-1===n.inArray(this,a)&&e.push(this)})),n(e)},n.fn.parent=function(){var t,a=[];return this.each((function(){(t=this===e.documentElement?e:this.parentNode)&&11!==t.nodeType&&a.push(t)})),n(a)},n.fn.prepend=function(t){return"string"!=typeof t&&void 0===t.nodeType||(t=n(t)),this.each((function(e){for(var n=0,a=t.length;n<a;n++){var s=e>0?t[n].cloneNode(!0):t[n];this.firstChild?this.insertBefore(s,this.firstChild):this.appendChild(s)}}))},n.fn.prev=function(){var t=[];return this.each((function(){for(var e,a,s,i=(e=n(this.parentNode)[0].childNodes).length-1;i>=0;i--){if(a=e.item(i),s&&1===a.nodeType){t.push(a);break}a===this&&(s=!0)}})),n(t)},n.fn.prevAll=function(){var t=[];return this.each((function(){for(var e=n(this).prev();e.length;)t.push(e[0]),e=e.prev()})),n(t)},n.fn.removeAttr=function(t){return this.each((function(){this.removeAttribute(t)}))},n.fn.removeClass=function(t){var e=t.replace(/^\s+|\s+$/g,"").split(" ");return this.each((function(){for(var t,n,a=0,s=e.length;a<s;a++)void 0!==this.className&&(n=new RegExp("(^|\\s)"+e[a]+"($|\\s)","gmi"),t=this.className.replace(n," "),this.className=t.replace(/^\s+|\s+$/g,""))}))},n.fn.remove=function(){return this.each((function(){this.parentNode&&this.parentNode.removeChild(this)}))},n.fn.replaceWith=function(t){"string"==typeof t&&(t=n(t));var e=[];return t.length>1&&(t=t.reverse()),this.each((function(n){var a,s=this.cloneNode(!0);if(e.push(s),this.parentNode)if(1===t.length)a=n>0?t[0].cloneNode(!0):t[0],this.parentNode.replaceChild(a,this);else{for(var i=0,o=t.length;i<o;i++)a=n>0?t[i].cloneNode(!0):t[i],this.parentNode.insertBefore(a,this.nextSibling);this.parentNode.removeChild(this)}})),n(e)},n.fn.siblings=function(){if(!this.length)return n([]);var t=[],e=this[0].parentNode.firstChild;do{1===e.nodeType&&e!==this[0]&&t.push(e),e=e.nextSibling}while(e);return n(t)};var h=function(t){var e,n="",a=0,s=t.nodeType;
7if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=h(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[a++];)n+=h(e);return n};function u(t,e){t.shoestringData||(t.shoestringData={}),t.shoestringData.events||(t.shoestringData.events={}),t.shoestringData.loop||(t.shoestringData.loop={}),t.shoestringData.events[e]||(t.shoestringData.events[e]=[])}function d(t,e,n){var a={};a.isCustomEvent=n.isCustomEvent,a.callback=n.callfunc,a.originalCallback=n.originalCallback,a.namespace=n.namespace,t.shoestringData.events[e].push(a),n.customEventLoop&&(t.shoestringData.loop[e]=n.customEventLoop)}function f(t,e,n){var a=this.shoestringData.events[t];if(a&&a.length){var s,i,o=[];for(s=0,i=a.length;s<i;s++)e&&e!==a[s].namespace||void 0!==n&&n!==a[s].originalCallback||(this.removeEventListener(t,a[s].callback,!1),o.push(s));for(s=0,i=o.length;s<i;s++)this.shoestringData.events[t].splice(s,1)}}function p(t,e){for(var n in this.shoestringData.events)f.call(this,n,t,e)}return n.fn.text=function(){return h(this)},n.fn.val=function(t){var e;return void 0!==t?this.each((function(){if("SELECT"===this.tagName){var e,a,s,i=this.options,o=[],r=i.length;for(o[0]=t;r--;)((a=i[r]).selected=n.inArray(a.value,o)>=0)&&(e=!0,s=r);this.selectedIndex=e?s:-1}else this.value=t})):"SELECT"===(e=this[0]).tagName?e.selectedIndex<0?"":e.options[e.selectedIndex].value:e.value},n._dimension=function(t,e,n){var a;return void 0===n?(a=e.replace(/^[a-z]/,(function(t){return t.toUpperCase()})),t[0]["offset"+a]):(n="string"==typeof n?n:n+"px",t.each((function(){this.style[e]=n})))},n.fn.width=function(t){return n._dimension(this,"width",t)},n.fn.wrapInner=function(t){return this.each((function(){var e=this.innerHTML;this.innerHTML="",n(this).append(n(t).html(e))}))},n.fn.bind=function(t,e,n){"function"==typeof e&&(n=e,e=null);var a=t.split(" ");function s(t,a,s){var i;if(!t._namespace||t._namespace===a){t.data=e,t.namespace=t._namespace;var o=function(){return!0};t.isDefaultPrevented=function(){return!1};var r=t.preventDefault;return t.target=s||t.target||t.srcElement,t.preventDefault=r?function(){t.isDefaultPrevented=o,r.call(t)}:function(){t.isDefaultPrevented=o,t.returnValue=!1},t.stopPropagation=t.stopPropagation||function(){t.cancelBubble=!0},!1===(i=n.apply(this,[t].concat(t._args)))&&(t.preventDefault(),t.stopPropagation()),i}}return this.each((function(){for(var t,e=this,i=0,o=a.length;i<o;i++){var r=a[i].split("."),l=r[0],c=r.length>0?r[1]:null;t=function(t){return e.ssEventTrigger&&(t._namespace=e.ssEventTrigger._namespace,t._args=e.ssEventTrigger._args,e.ssEventTrigger=null),s.call(e,t,c)},null,null,u(this,l),this.addEventListener(l,t,!1),d(this,l,{callfunc:t,isCustomEvent:!1,customEventLoop:null,originalCallback:n,namespace:c})}}))},n.fn.on=n.fn.bind,n.fn.unbind=function(t,e){var n=t?t.split(" "):[];return this.each((function(){if(this.shoestringData&&this.shoestringData.events)if(n.length)for(var t,a,s,i=0,o=n.length;i<o;i++)a=(t=n[i].split("."))[0],s=t.length>0?t[1]:null,a?f.call(this,a,s,e):p.call(this,s,e);else p.call(this)}))},n.fn.off=n.fn.unbind,n.fn.one=function(t,e){var a=t.split(" ");return this.each((function(){for(var t,s={},i=n(this),o=0,r=a.length;o<r;o++)t=a[o],s[t]=function(t){var a=n(this);for(var i in s)a.unbind(i,s[i]);return e.apply(this,[t].concat(t._args))},i.bind(t,s[t])}))},n.fn.triggerHandler=function(t,n){var a,s=t.split(" ")[0],i=this[0];if(e.createEvent&&i.shoestringData&&i.shoestringData.events&&i.shoestringData.events[s]){var o=i.shoestringData.events[s];for(var r in o)o.hasOwnProperty(r)&&((t=e.createEvent("Event")).initEvent(s,!0,!0),t._args=n,n.unshift(t),a=o[r].originalCallback.apply(t.target,n))}return a},n.fn.trigger=function(t,n){var a=t.split(" ");return this.each((function(){for(var t,s,i,o=0,r=a.length;o<r;o++){if(s=(t=a[o].split("."))[0],i=t.length>0?t[1]:null,"click"===s&&"INPUT"===this.tagName&&"checkbox"===this.type&&this.click)return this.click(),!1;if(e.createEvent){var l=e.createEvent("Event");l.initEvent(s,!0,!0),l._args=n,l._namespace=i,this.dispatchEvent(l)}}}))},n})),function(t,e){"function"==typeof define&&define.amd?define(["shoestring"],(function(n){return t.Tablesaw=e(n,t)})):"object"==typeof exports?module.exports=e(require("shoestring"),t):t.Tablesaw=e(shoestring,t)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var n=!1;document.addEventListener("DOMContentLoaded",(function(){n=!0}));var a,s,i,o,r,l,c,h,u,d,f,p,g,b={i18n:{modeStack:"Stack",modeSwipe:"Swipe",modeToggle:"Toggle",modeSwitchColumnsAbbreviated:"Cols",modeSwitchColumns:"Columns",columnToggleButton:"Columns",columnToggleError:"No eligible columns.",sort:"Sort",swipePreviousColumn:"Previous column",swipeNextColumn:"Next column"},mustard:"head"in document&&(!window.blackberry||window.WebKitPoint)&&!window.operamini,$:t,_init:function(t){b.$(t||document).trigger("enhance.tablesaw")},init:function(t){n?b._init(t):"addEventListener"in document&&document.addEventListener("DOMContentLoaded",(function(){b._init(t)}))}};return t(e.document).on("enhance.tablesaw",(function(){"undefined"!=typeof TablesawConfig&&TablesawConfig.i18n&&(b.i18n=t.extend(b.i18n,TablesawConfig.i18n||{})),b.i18n.modes=[b.i18n.modeStack,b.i18n.modeSwipe,b.i18n.modeToggle]})),b.mustard&&t(document.documentElement).addClass("tablesaw-enhanced"),function(){var n="tablesaw",a="tablesaw-bar",s={create:"tablesawcreate",destroy:"tablesawdestroy",refresh:"tablesawrefresh",resize:"tablesawresize"},i={};b.events=s;var o=function(e){if(!e)throw new Error("Tablesaw requires an element.");this.table=e,this.$table=t(e),this.$thead=this.$table.children().filter("thead").eq(0),this.$tbody=this.$table.children().filter("tbody"),this.mode=this.$table.attr("data-tablesaw-mode")||"stack",this.$toolbar=null,this.attributes={subrow:"data-tablesaw-subrow",ignorerow:"data-tablesaw-ignorerow"},this.init()};o.prototype.init=function(){if(!this.$thead.length)throw new Error("tablesaw: a <thead> is required, but none was found.");if(!this.$thead.find("th").length)throw new Error("tablesaw: no header cells found. Are you using <th> inside of <thead>?");this.$table.attr("id")||this.$table.attr("id",n+"-"+Math.round(1e4*Math.random())),this.createToolbar(),this._initCells(),this.$table.data(n,this),this.$table.trigger(s.create,[this])},o.prototype.getConfig=function(e){var n=t.extend(i,e||{});return t.extend(n,"undefined"!=typeof TablesawConfig?TablesawConfig:{})},o.prototype._getPrimaryHeaderRow=function(){return this._getHeaderRows().eq(0)},o.prototype._getHeaderRows=function(){return this.$thead.children().filter("tr").filter((function(){return!t(this).is("[data-tablesaw-ignorerow]")}))},o.prototype._getRowIndex=function(t){return t.prevAll().length},o.prototype._getHeaderRowIndeces=function(){var e=this,n=[];return this._getHeaderRows().each((function(){n.push(e._getRowIndex(t(this)))})),n},o.prototype._getPrimaryHeaderCells=function(t){return(t||this._getPrimaryHeaderRow()).find("th")},o.prototype._$getCells=function(e){var n=this;return t(e).add(e.cells).filter((function(){var e=t(this),a=e.parent(),s=e.is("[colspan]");return!(a.is("["+n.attributes.subrow+"]")||a.is("["+n.attributes.ignorerow+"]")&&s)}))},o.prototype._getVisibleColspan=function(){var e=0;return this._getPrimaryHeaderCells().each((function(){var n=t(this);"none"!==n.css("display")&&(e+=parseInt(n.attr("colspan"),10)||1)})),e},o.prototype.getColspanForCell=function(e){var n=this._getVisibleColspan(),a=0;return e.closest("tr").data("tablesaw-rowspanned")&&a++,e.siblings().each((function(){var e=t(this),n=parseInt(e.attr("colspan"),10)||1;"none"!==e.css("display")&&(a+=n)})),n-a},o.prototype.isCellInColumn=function(e,n){return t(e).add(e.cells).filter((function(){return this===n})).length},o.prototype.updateColspanCells=function(e,n,a){var s=this,i=s._getPrimaryHeaderRow();
7this.$table.find("[rowspan][data-tablesaw-priority]").each((function(){var e=t(this);if("persist"===e.attr("data-tablesaw-priority")){var n=e.closest("tr"),a=parseInt(e.attr("rowspan"),10);a>1&&((n=n.next()).data("tablesaw-rowspanned",!0),a--)}})),this.$table.find("[colspan],[data-tablesaw-maxcolspan]").filter((function(){return t(this).closest("tr")[0]!==i[0]})).each((function(){var i=t(this);if(void 0===a||s.isCellInColumn(n,this)){var o=s.getColspanForCell(i);e&&void 0!==a&&i[0===o?"addClass":"removeClass"](e);var r=parseInt(i.attr("data-tablesaw-maxcolspan"),10);r?o>r&&(o=r):i.attr("data-tablesaw-maxcolspan",i.attr("colspan")),i.attr("colspan",o)}}))},o.prototype._findPrimaryHeadersForCell=function(t){for(var e=this._getPrimaryHeaderRow(),n=this._getPrimaryHeaderCells(e),a=this._getRowIndex(e),s=[],i=0;i<this.headerMapping.length;i++)if(i!==a)for(var o=0;o<this.headerMapping[i].length;o++)this.headerMapping[i][o]===t&&s.push(n[o]);return s},o.prototype.getRows=function(){var e=this;return this.$table.find("tr").filter((function(){return t(this).closest("table").is(e.$table)}))},o.prototype.getBodyRows=function(e){return(e?t(e):this.$tbody).children().filter("tr")},o.prototype.getHeaderCellIndex=function(t){for(var e=this.headerMapping[0],n=0;n<e.length;n++)if(e[n]===t)return n;return-1},o.prototype._initCells=function(){this.$table.find("[data-tablesaw-maxcolspan]").each((function(){var e=t(this);e.attr("colspan",e.attr("data-tablesaw-maxcolspan"))}));var e=this.getRows(),n=[];e.each((function(t){n[t]=[]})),e.each((function(e){var a=0;t(this).children().each((function(){for(var t=parseInt(this.getAttribute("data-tablesaw-maxcolspan")||this.getAttribute("colspan"),10),s=parseInt(this.getAttribute("rowspan"),10);n[e][a];)a++;if(n[e][a]=this,t)for(var i=0;i<t-1;i++)a++,n[e][a]=this;if(s)for(var o=1;o<s;o++)n[e+o][a]=this;a++}))}));for(var a=this._getHeaderRowIndeces(),s=0;s<n[0].length;s++)for(var i=0,o=a.length;i<o;i++){var r,l=n[a[i]][s],c=a[i];for(l.cells||(l.cells=[]);c<n.length;)l!==(r=n[c][s])&&l.cells.push(r),c++}this.headerMapping=n},o.prototype.refresh=function(){this._initCells(),this.$table.trigger(s.refresh,[this])},o.prototype._getToolbarAnchor=function(){var t=this.$table.parent();return t.is(".tablesaw-overflow")?t:this.$table},o.prototype._getToolbar=function(t){return t||(t=this._getToolbarAnchor()),t.prev().filter("."+a)},o.prototype.createToolbar=function(){var e=this._getToolbarAnchor(),n=this._getToolbar(e);n.length||(n=t("<div>").addClass(a).insertBefore(e)),this.$toolbar=n,this.mode&&this.$toolbar.addClass("tablesaw-mode-"+this.mode)},o.prototype.destroy=function(){this._getToolbar().each((function(){this.className=this.className.replace(/\btablesaw-mode\-\w*\b/gi,"")}));var e=this.$table.attr("id");t(document).off("."+e),t(window).off("."+e),this.$table.trigger(s.destroy,[this]),this.$table.removeData(n)},t.fn[n]=function(){return this.each((function(){t(this).data(n)||new o(this)}))};var r=t(e.document);r.on("enhance.tablesaw",(function(e){b.mustard&&t(e.target).find("table").filter("[data-tablesaw],[data-tablesaw-mode],[data-tablesaw-sortable]")[n]()}));var l,c,h=!1;r.on("scroll.tablesaw",(function(){h=!0,e.clearTimeout(l),l=e.setTimeout((function(){h=!1}),300)})),t(e).on("resize",(function(){h||(e.clearTimeout(c),c=e.setTimeout((function(){r.trigger(s.resize)}),150))})),b.Table=o}(),a="tablesaw-stack",s="tablesaw-cell-label",i="tablesaw-cell-content",o="tablesaw-stack",r="data-tablesaw-no-labels",l="data-tablesaw-hide-empty",(c=function(e,n){this.tablesaw=n,this.$table=t(e),this.labelless=this.$table.is("["+r+"]"),this.hideempty=this.$table.is("["+l+"]"),this.$table.data(o,this)}).prototype.init=function(){if(this.$table.addClass(a),!this.labelless){var e=this;this.$table.find("th, td").filter((function(){return!t(this).closest("thead").length})).filter((function(){return!(t(this).closest("tr").is("["+r+"]")||e.hideempty&&!t(this).html())})).each((function(){var n=t(document.createElement("b")).addClass(s),a=t(this);t(e.tablesaw._findPrimaryHeadersForCell(this)).each((function(e){var a=t(this.cloneNode(!0)),s=a.find(".tablesaw-sortable-btn");a.find(".tablesaw-sortable-arrow").remove();var i=a.find("[data-tablesaw-checkall]");i.closest("label").remove(),i.length?n=t([]):(e>0&&n.append(document.createTextNode(", ")),n.append(s.length?s[0].childNodes:a[0].childNodes))})),n.length&&!a.find("."+i).length&&a.wrapInner("<span class='"+i+"'></span>");var o=a.find("."+s);o.length?o.replaceWith(n):a.prepend(n)}))}},c.prototype.destroy=function(){this.$table.removeClass(a),this.$table.find("."+s).remove(),this.$table.find("."+i).each((function(){t(this).replaceWith(this.childNodes)}))},t(document).on(b.events.create,(function(t,e){"stack"===e.mode&&new c(e.table,e).init()})).on(b.events.refresh,(function(e,n){"stack"===n.mode&&t(n.table).data(o).init()})).on(b.events.destroy,(function(e,n){"stack"===n.mode&&t(n.table).data(o).destroy()})),b.Stack=c,h="tablesawbtn",u={_create:function(){return t(this).each((function(){t(this).trigger("beforecreate."+h)[h]("_init").trigger("create."+h)}))},_init:function(){var e=t(this),n=this.getElementsByTagName("select")[0];return n&&t(this).addClass("btn-select tablesaw-btn-select")[h]("_select",n),e},_select:function(e){var n=function(e,n){var a,s,i=t(n).find("option"),o=document.createElement("span"),r=!1;if(o.setAttribute("aria-hidden","true"),o.innerHTML="&#160;",i.each((function(){this.selected&&(o.innerHTML=this.text)})),s=e.childNodes,i.length>0){for(var l=0,c=s.length;l<c;l++)(a=s[l])&&"SPAN"===a.nodeName.toUpperCase()&&(e.replaceChild(o,a),r=!0);r||e.insertBefore(o,e.firstChild)}};n(this,e),t(this).on("change refresh",(function(){n(this,e)}))}},t.fn[h]=function(e,n,a,s){return this.each((function(){return e&&"string"==typeof e?t.fn[h].prototype[e].call(this,n,a,s):t(this).data(h+"active")?t(this):(t(this).data(h+"active",!0),void t.fn[h].prototype._create.call(this))}))},t.extend(t.fn[h].prototype,u),d="tablesaw-coltoggle",(f=function(e){this.$table=t(e),this.$table.length&&(this.tablesaw=this.$table.data("tablesaw"),this.attributes={btnTarget:"data-tablesaw-columntoggle-btn-target",set:"data-tablesaw-columntoggle-set"},this.classes={columnToggleTable:"tablesaw-columntoggle",columnBtnContain:"tablesaw-columntoggle-btnwrap tablesaw-advance",columnBtn:"tablesaw-columntoggle-btn tablesaw-nav-btn down",popup:"tablesaw-columntoggle-popup",priorityPrefix:"tablesaw-priority-"},this.set=[],this.$headers=this.tablesaw._getPrimaryHeaderCells(),this.$table.data(d,this))}).prototype.initSet=function(){var e=this.$table.attr(this.attributes.set);if(e){var n=this.$table[0];this.set=t("table["+this.attributes.set+"='"+e+"']").filter((function(){return this!==n})).get()}},f.prototype.init=function(){if(this.$table.length){var e,n,a,s,i,o,r=this,l=this.tablesaw.getConfig({getColumnToggleLabelTemplate:function(t){return"<label><input type='checkbox' checked>"+t+"</label>"}});this.$table.addClass(this.classes.columnToggleTable),n=(e=this.$table.attr("id"))+"-popup",o=t("<div class='"+this.classes.columnBtnContain+"'></div>"),a=t("<a href='#"+n+"' class='btn tablesaw-btn btn-micro "+this.classes.columnBtn+"' data-popup-link>
7<span>"+b.i18n.columnToggleButton+"</span></a>"),s=t("<div class='"+this.classes.popup+"' id='"+n+"'></div>"),i=t("<div class='btn-group'></div>"),this.$popup=s;var c=!1;this.$headers.each((function(){var e=t(this),n=e.attr("data-tablesaw-priority"),a=r.tablesaw._$getCells(this);n&&"persist"!==n&&(a.addClass(r.classes.priorityPrefix+n),t(l.getColumnToggleLabelTemplate(e.text())).appendTo(i).find('input[type="checkbox"]').data("tablesaw-header",this),c=!0)})),c||i.append("<label>"+b.i18n.columnToggleError+"</label>"),i.appendTo(s),i.find('input[type="checkbox"]').on("change",(function(e){var n;g(e.target),r.set.length&&(t(r.$popup).find("input[type='checkbox']").each((function(t){if(this===e.target)return n=t,!1})),t(r.set).each((function(){var a=t(this).data(d).$popup.find("input[type='checkbox']").get(n);a&&(a.checked=e.target.checked,g(a))})))})),a.appendTo(o);var h,u=t(this.$table.attr(this.attributes.btnTarget));o.appendTo(u.length?u:this.tablesaw.$toolbar),a.on("click.tablesaw",(function(n){n.preventDefault(),o.is(".visible")?v():(o.addClass("visible"),a.removeClass("down").addClass("up"),t(document).off("click."+e,v),window.clearTimeout(h),h=window.setTimeout((function(){t(document).on("click."+e,v)}),15))})),s.appendTo(o),this.$menu=i;var f,p=this.$table.closest(".tablesaw-overflow");p.css("-webkit-overflow-scrolling")&&p.on("scroll",(function(){var e=t(this);window.clearTimeout(f),f=window.setTimeout((function(){e.css("-webkit-overflow-scrolling","auto"),window.setTimeout((function(){e.css("-webkit-overflow-scrolling","touch")}),0)}),100)})),t(window).on(b.events.resize+"."+e,(function(){r.refreshToggle()})),this.initSet(),this.refreshToggle()}function g(t){var e=t.checked,n=r.getHeaderFromCheckbox(t),a=r.tablesaw._$getCells(n);a[e?"removeClass":"addClass"]("tablesaw-toggle-cellhidden"),a[e?"addClass":"removeClass"]("tablesaw-toggle-cellvisible"),r.updateColspanCells(n,e),r.$table.trigger("tablesawcolumns")}function v(n){n&&t(n.target).closest("."+r.classes.popup).length||(t(document).off("click."+e),a.removeClass("up").addClass("down"),o.removeClass("visible"))}},f.prototype.getHeaderFromCheckbox=function(e){return t(e).data("tablesaw-header")},f.prototype.refreshToggle=function(){var t=this;this.$menu.find("input").each((function(){var e=t.getHeaderFromCheckbox(this);this.checked="table-cell"===t.tablesaw._$getCells(e).eq(0).css("display")})),this.updateColspanCells()},f.prototype.updateColspanCells=function(t,e){this.tablesaw.updateColspanCells("tablesaw-toggle-cellhidden",t,e)},f.prototype.destroy=function(){this.$table.removeClass(this.classes.columnToggleTable),this.$table.find("th, td").each((function(){t(this).removeClass("tablesaw-toggle-cellhidden").removeClass("tablesaw-toggle-cellvisible"),this.className=this.className.replace(/\bui\-table\-priority\-\d\b/g,"")}))},t(document).on(b.events.create,(function(t,e){"columntoggle"===e.mode&&new f(e.table).init()})),t(document).on(b.events.destroy,(function(e,n){"columntoggle"===n.mode&&t(n.table).data(d).destroy()})),t(document).on(b.events.refresh,(function(e,n){"columntoggle"===n.mode&&t(n.table).data(d).refreshPriority()})),b.ColumnToggle=f,function(){function e(e){var n=[];return t(e.childNodes).each((function(){var e=t(this);e.is("input, select")?n.push(e.val()):e.is(".tablesaw-cell-label")||n.push((e.text()||"").replace(/^\s+|\s+$/g,""))})),n.join("")}var n="tablesaw-sortable",a="table[data-"+n+"]",s="[data-"+n+"-switch]",i="data-tablesaw-sortable-col",o="data-tablesaw-sortable-default-col",r="data-tablesaw-sortable-numeric",l="data-tablesaw-subrow",c="data-tablesaw-ignorerow",h={head:n+"-head",ascend:n+"-ascending",desce
7nd:n+"-descending",switcher:n+"-switch",tableToolbar:"tablesaw-bar-section",sortButton:n+"-btn"},u={_create:function(e){return t(this).each((function(){if(t(this).data(n+"-init"))return!1;t(this).data(n+"-init",!0).trigger("beforecreate."+n)[n]("_init",e).trigger("create."+n)}))},_init:function(){var a,l,c,u=t(this),d=u.data("tablesaw");function f(e){t.each(e,(function(e,n){var a=t(n);a.removeAttr(o),a.removeClass(h.ascend),a.removeClass(h.descend)}))}u.addClass(n),a=u.children().filter("thead").find("th["+i+"]"),c=a,t.each(c,(function(e,n){t(n).addClass(h.head)})),function(e,n){t.each(e,(function(e,a){var s=t("<button class='"+h.sortButton+"'/>");s.on("click",{col:a},n),t(a).wrapInner(s).find("button").append("<span class='tablesaw-sortable-arrow'>")}))}(a,(function(e){if(!t(e.target).is("a[href]")){e.stopPropagation();var s=t(e.target).closest("["+i+"]"),o=e.data.col,r=a.index(s[0]);f(s.closest("thead").find("th").filter((function(){return this!==s[0]}))),s.is("."+h.descend)||!s.is("."+h.ascend)?(u[n]("sortBy",o,!0),r+="_asc"):(u[n]("sortBy",o),r+="_desc"),l&&l.find("select").val(r).trigger("refresh"),e.preventDefault()}})),function(e){t.each(e,(function(e,n){var a=t(n);a.is("["+o+"]")&&(a.is("."+h.descend)||a.addClass(h.ascend))}))}(a),u.is(s)&&function(a){l=t("<div>").addClass(h.switcher).addClass(h.tableToolbar);var s=["<label>"+b.i18n.sort+":"];s.push('<span class="btn tablesaw-btn"><select>'),a.each((function(n){var a=t(this),i=a.is("["+o+"]"),l=a.is("."+h.descend),c=a.is("["+r+"]"),u=0;t(this.cells.slice(0,5)).each((function(){isNaN(parseInt(e(this),10))||u++}));var d=5===u;c||a.attr(r,d?"":"false"),s.push("<option"+(i&&!l?" selected":"")+' value="'+n+'_asc">'+a.text()+" "+(d?"&#x2191;":"(A-Z)")+"</option>"),s.push("<option"+(i&&l?" selected":"")+' value="'+n+'_desc">'+a.text()+" "+(d?"&#x2193;":"(Z-A)")+"</option>")})),s.push("</select></span></label>"),l.html(s.join(""));var i=d.$toolbar.children().eq(0);i.length?l.insertBefore(i):l.appendTo(d.$toolbar),l.find(".tablesaw-btn").tablesawbtn(),l.find("select").on("change",(function(){var e=t(this).val().split("_"),s=a.eq(e[0]);f(s.siblings()),u[n]("sortBy",s.get(0),"asc"===e[1])}))}(a)},sortRows:function(n,a,s,i,o){var h,u=function(n,a){var s=[];return t.each(n,(function(n,i){for(var o=i.parentNode,r=t(o),h=[],u=r.next();u.is("["+l+"]");)h.push(u[0]),u=u.next();var d=o.parentNode;r.is("["+l+"]")||d===a&&s.push({element:i,cell:e(i),row:o,subrows:h.length?h:null,ignored:r.is("["+c+"]")})})),s}(i.cells,o),d=t(i).data("tablesaw-sort");return h=!(!d||"function"!=typeof d)&&d(s)||function(t,e){var n=/[^\-\+\d\.]/g;return t?function(t,a){return t.ignored||a.ignored?0:e?parseFloat(t.cell.replace(n,""))-parseFloat(a.cell.replace(n,"")):t.cell.toLowerCase()>a.cell.toLowerCase()?1:-1}:function(t,a){return t.ignored||a.ignored?0:e?parseFloat(a.cell.replace(n,""))-parseFloat(t.cell.replace(n,"")):t.cell.toLowerCase()<a.cell.toLowerCase()?1:-1}}(s,t(i).is("["+r+"]")&&!t(i).is("["+r+'="false"]')),function(t){var e,n,a=[];for(e=0,n=t.length;e<n;e++)a.push(t[e].row),t[e].subrows&&a.push(t[e].subrows);return a}(u.sort(h))},makeColDefault:function(e,n){var a=t(e);a.attr(o,"true"),n?(a.removeClass(h.descend),a.addClass(h.ascend)):(a.removeClass(h.ascend),a.addClass(h.descend))},sortBy:function(e,a){var s,i=t(this),o=i.data("tablesaw");o.$tbody.each((function(){var r,l,c,h=t(this),u=o.getBodyRows(this),d=o.headerMapping[0];for(l=0,c=d.length;l<c;l++)if(d[l]===e){s=l;break}for(l=0,c=(r=i[n]("sortRows",u,s,a,e,this)).length;l<c;l++)h.append(r[l])})),i[n]("makeColDefault",e,a),i.trigger("tablesaw-sorted")}};t.fn[n]=function(e){var a,s=Array.prototype.slice.call(arguments,1);return e&&"string"==typeof e?void 0!==(a=t.fn[n].prototype[e].apply(this[0],s))?a:t(this):(t(this).data(n+"-active")||(t(this).data(n+"-active",!0),t.fn[n].prototype._create.call(this,e)),t(this))},t.extend(t.fn[n].prototype,u),t(document).on(b.events.create,(function(t,e){e.$table.is(a)&&e.$table[n]()}))}(),function(){var n="disabled",a="tablesaw-fix-persist",s="tablesaw-swipe-cellhidden",i="tablesaw-swipe-cellpersist",o="tablesaw-all-cols-visible",r="data-tablesaw-no-touch";function l(l,c){var h=c.data("tablesaw"),u=t("<div class='tablesaw-advance'></div>"),d=t("<a href='#' class='btn tablesaw-nav-btn tablesaw-btn btn-micro left'>"+b.i18n.swipePreviousColumn+"</a>").appendTo(u),f=t("<a href='#' class='btn tablesaw-nav-btn tablesaw-btn btn-micro right'>"+b.i18n.swipeNextColumn+"</a>").appendTo(u),p=l._getPrimaryHeaderCells(),g=p.not('[data-tablesaw-priority="persist"]'),v=[],w=t(document.head||"head"),m=c.attr("id");if(!p.length)throw new Error("tablesaw swipe: no header cells found.");function y(){c.css({width:"1px"}),c.find("."+s).removeClass(s),v=[],p.each((function(){v.push(this.offsetWidth)})),c.css({width:""})}function C(t){h._$getCells(t).removeClass(s)}function T(t){h._$getCells(t).addClass(s)}function $(){c.removeClass(a),t("#"+m+"-persist").remove()}function k(){var e,n="#"+m+".tablesaw-swipe ",s=[],o=c.width(),r=[];if(p.each((function(e){var a;t(this).is('[data-tablesaw-priority="persist"]')&&(a=this.offsetWidth)<.75*o&&(r.push(e+"-"+a),s.push(n+" ."+i+":nth-child("+(e+1)+") { width: "+a+"px; }"))})),e=r.join("_"),s.length){c.addClass(a);
7var l=t("#"+m+"-persist");l.length&&l.data("tablesaw-hash")===e||(l.remove(),t("<style>"+s.join("\n")+"</style>").attr("id",m+"-persist").data("tablesaw-hash",e).appendTo(w))}}function x(){var e,n=[];return g.each((function(a){var i=t(this),o="none"===i.css("display")||i.is("."+s);if(o||e){if(o&&e)return n[1]=a,!1}else e=!0,n[0]=a})),n}function _(){var t=x();return[t[1]-1,t[0]-1]}function N(t){return t[1]>-1&&t[1]<g.length}function E(){if(!(n=c.attr("data-tablesaw-swipe-media"))||"matchMedia"in e&&e.matchMedia(n).matches){var n,a=c.parent().width(),o=[],r=0,l=[],u=p.length;p.each((function(e){var n=t(this).is('[data-tablesaw-priority="persist"]');o.push(n),r+=v[e],l.push(r),(n||r>a)&&u--}));var d=0===u;p.each((function(t){l[t]>a&&T(this)})),p.each((function(t){if(o[t])return e=this,void h._$getCells(e).addClass(i);var e;(l[t]<=a||d)&&(d=!1,C(this),h.updateColspanCells(s,this,!0))})),$(),c.trigger("tablesawcolumns")}}function D(t){var e=function(t){return t?x():_()}(t);N(e)&&(isNaN(e[0])&&(e[0]=t?0:g.length-1),k(),T(g.get(e[0])),h.updateColspanCells(s,g.get(e[0]),!1),C(g.get(e[1])),h.updateColspanCells(s,g.get(e[1]),!0),c.trigger("tablesawcolumns"))}function S(t,e){return(t.touches||t.originalEvent.touches)[0][e]}c.addClass("tablesaw-swipe"),y(),u.appendTo(h.$toolbar),m||(m="tableswipe-"+Math.round(1e4*Math.random()),c.attr("id",m)),d.add(f).on("click",(function(e){D(!!t(e.target).closest(f).length),e.preventDefault()})),c.is("["+r+"]")||c.on("touchstart.swipetoggle",(function(n){var a,s,i=S(n,"pageX"),o=S(n,"pageY"),r=window.pageYOffset;t(e).off(b.events.resize,E),t(this).on("touchmove.swipetoggle",(function(t){a=S(t,"pageX"),s=S(t,"pageY")})).on("touchend.swipetoggle",(function(){var n=l.getConfig({swipeHorizontalThreshold:30,swipeVerticalThreshold:30}),c=n.swipe?n.swipe.verticalThreshold:n.swipeVerticalThreshold,h=n.swipe?n.swipe.horizontalThreshold:n.swipeHorizontalThreshold,u=Math.abs(window.pageYOffset-r)>=c;Math.abs(s-o)>=c||u||(a-i<-1*h&&D(!0),a-i>h&&D(!1)),window.setTimeout((function(){t(e).on(b.events.resize,E)}),300),t(this).off("touchmove.swipetoggle touchend.swipetoggle")}))})),c.on("tablesawcolumns.swipetoggle",(function(){var t=N(_()),e=N(x());d[t?"removeClass":"addClass"](n),f[e?"removeClass":"addClass"](n),h.$toolbar[t||e?"removeClass":"addClass"](o)})).on("tablesawnext.swipetoggle",(function(){D(!0)})).on("tablesawprev.swipetoggle",(function(){D(!1)})).on(b.events.destroy+".swipetoggle",(function(){var n=t(this);n.removeClass("tablesaw-swipe"),h.$toolbar.find(".tablesaw-advance").remove(),t(e).off(b.events.resize,E),n.off(".swipetoggle")})).on(b.events.refresh,(function(){$(),y(),E()})),E(),t(e).on(b.events.resize,E)}t(document).on(b.events.create,(function(t,e){"swipe"===e.mode&&l(e,e.$table)}))}(),p={attr:{init:"data-tablesaw-minimap"},show:function(t){var n=t.getAttribute(p.attr.init);return""===n||!(!n||!("matchMedia"in e))&&e.matchMedia(n).matches}},t(document).on(b.events.create,(function(n,a){"swipe"!==a.mode&&"columntoggle"!==a.mode||!a.$table.is("[ "+p.attr.init+"]")||function(n){var a=n.data("tablesaw"),s=t('<div class="tablesaw-advance minimap">'),i=t('<ul class="tablesaw-advance-dots">').appendTo(s),o="tablesaw-advance-dots-hide";function r(){if(p.show(n[0])){s.css("display","block");var e=i.find("li").removeClass(o);n.find("thead th").each((function(n){"none"===t(this).css("display")&&e.eq(n).addClass(o)}))}else s.css("display","none")}n.data("tablesaw")._getPrimaryHeaderCells().each((function(){i.append("<li><i></i></li>")})),s.appendTo(a.$toolbar),r(),t(e).on(b.events.resize,r),n.on("tablesawcolumns.minimap",(function(){r()})).on(b.events.destroy+".minimap",(function(){var n=t(this);a.$toolbar.find(".tablesaw-advance").remove(),t(e).off(b.events.resize,r),n.off(".minimap")}))}(a.$table)})),b.MiniMap=p,g={selectors:{init:"table[data-tablesaw-mode-switch]"},attributes:{excludeMode:"data-tablesaw-mode-exclude"},classes:{main:"tablesaw-modeswitch",toolbar:"tablesaw-bar-section"},modes:["stack","swipe","columntoggle"],init:function(e){var n,a=t(e),s=a.data("tablesaw"),i=a.attr(g.attributes.excludeMode),o=s.$toolbar,r=t("<div>").addClass(g.classes.main+" "+g.classes.toolbar),l=['<label><span class="abbreviated">'+b.i18n.modeSwitchColumnsAbbreviated+'</span><span class="longform">'+b.i18n.modeSwitchColumns+"</span>:"],c=a.attr("data-tablesaw-mode");l.push('<span class="btn tablesaw-btn"><select>');for(var h=0,u=g.modes.length;h<u;h++)i&&i.toLowerCase()===g.modes[h]||(n=c===g.modes[h],l.push("<option"+(n?" selected":"")+' value="'+g.modes[h]+'">'+b.i18n.modes[h]+"</option>"));l.push("</select></span></label>"),r.html(l.join(""));var d=o.find(".tablesaw-advance").eq(0);d.length?r.insertBefore(d):r.appendTo(o),r.find(".tablesaw-btn").tablesawbtn(),r.find("select").on("change",(function(n){return g.onModeChange.call(e,n,t(this).val())}))},onModeChange:function(e,n){var a=t(this),s=a.data("tablesaw");s.$toolbar.find("."+g.classes.main).remove(),s.destroy(),a.attr("data-tablesaw-mode",n),a.tablesaw()}},t(e.document).on(b.events.create,(function(t,e){e.$table.is(g.selectors.init)&&g.init(e.table)})),function(){var e="tablesawCheckAll";function n(t){this.tablesaw=t,this.$table=t.$table,this.attr="data-tablesaw-checkall",this.checkAllSelector="["+this.attr+"]",this.forceCheckedSelector="["+this.attr+"-checked]",this.forceUncheckedSelector="["+this.attr+"-unchecked]",this.checkboxSelector='input[type="checkbox"]',this.$triggers=null,this.$checkboxes=null,this.$table.data(e)||(this.$table.data(e,this),this.init())}n.prototype._filterCells=function(e){return e.filter((function(){return!t(this).closest("tr").is("[data-tablesaw-subrow],[data-tablesaw-ignorerow]")})).find(this.checkboxSelector).not(this.checkAllSelector)},n.prototype.getCheckboxesForButton=function(e){return this._filterCells(t(t(e).attr(this.attr)))},n.prototype.getCheckboxesForCheckbox=function(e){return this._filterCells(t(t(e).closest("th")[0].cells))},n.prototype.init=function(){var e=this;this.$table.find(this.checkAllSelector).each((function(){t(this).is(e.checkboxSelector)?e.addCheckboxEvents(this):e.addButtonEvents(this)}))},n.prototype.addButtonEvents=function(n){var a=this;t(n).on("click",(function(n){n.preventDefault();var s,i=a.getCheckboxesForButton(this),o=!0;i.each((function(){this.checked||(o=!1)})),s=!!t(this).is(a.forceCheckedSelector)||!t(this).is(a.forceUncheckedSelector)&&!o,i.each((function(){this.checked=s,t(this).trigger("change."+e)}))}))},n.prototype.addCheckboxEvents=function(n){var a=this;t(n).on("change",(function(){var t=this.checked;a.getCheckboxesForCheckbox(this).each((function(){this.checked=t}))}));var s=a.getCheckboxesForCheckbox(n);s.on("change."+e,(function(){var t=0;s.each((function(){this.checked&&t++}));var e=t===s.length;n.checked=e,n.indeterminate=0!==t&&!e}))},t(document).on(b.events.create,(function(t,e){new n(e)})),b.CheckAll=n}(),b}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.