define("_commonjsHelpers-DA3mUP_w.js",["exports"],function(t){"use strict";t.getDefaultExportFromCjs=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}}),define("npm:navigo/lib/navigo.js",["_commonjsHelpers-DA3mUP_w.js"],function(t){"use strict";var e,n={exports:{}};var r,o=(e||(e=1,"undefined"!=typeof self&&self,r=function(){return function(){var t={"./src/Q.ts":function(t,e,n){function r(t,e,n){var r=e||{},o=0;!function e(){t[o]?Array.isArray(t[o])?(t.splice.apply(t,[o,1].concat(t[o][0](r)?t[o][1]:t[o][2])),e()):t[o](r,function(t){void 0===t||!0===t?(o+=1,e()):n&&n(r)}):n&&n(r)}()}n.r(e),n.d(e,{default:function(){return r}}),r.if=function(t,e,n){return Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]),[t,e,n]}},"./src/constants.ts":function(t,e,n){n.r(e),n.d(e,{PARAMETER_REGEXP:function(){return r},REPLACE_VARIABLE_REGEXP:function(){return o},WILDCARD_REGEXP:function(){return a},REPLACE_WILDCARD:function(){return i},NOT_SURE_REGEXP:function(){return s},REPLACE_NOT_SURE:function(){return u},START_BY_SLASH_REGEXP:function(){return c},MATCH_REGEXP_FLAGS:function(){return l}});var r=/([:*])(\w+)/g,o="([^/]+)",a=/\*/g,i="?(?:.*)",s=/\/\?/g,u="/?([^/]+|)",c="(?:/^|^)",l=""},"./src/index.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return v}});var r=n("./src/utils.ts"),o=n("./src/Q.ts"),a=n("./src/middlewares/setLocationPath.ts"),i=n("./src/middlewares/matchPathToRegisteredRoutes.ts"),s=n("./src/middlewares/checkForDeprecationMethods.ts"),u=n("./src/middlewares/checkForForceOp.ts"),c=n("./src/middlewares/updateBrowserURL.ts"),l=n("./src/middlewares/processMatches.ts"),f=n("./src/middlewares/waitingList.ts"),d=n("./src/lifecycles.ts");function h(){return h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h.apply(this,arguments)}var p="[data-navigo]";function v(t,e){var n,v=e||{strategy:"ONE",hash:!1,noMatchWarning:!1,linksSelector:p},m=this,g="/",w=null,_=[],y=!1,E=(0,r.pushStateAvailable)(),k=(0,r.windowAvailable)();function b(t){return t.indexOf("#")>=0&&(t=!0===v.hash?t.split("#")[1]||"/":t.split("#")[0]),t}function A(t){return(0,r.clean)(g+"/"+(0,r.clean)(t))}function L(t,e,n,o){return t=(0,r.isString)(t)?A(t):t,{name:o||(0,r.clean)(String(t)),path:t,handler:e,hooks:(0,r.accumulateHooks)(n)}}function R(t,e){if(!m.__dirty){m.__dirty=!0,t=t?(0,r.clean)(g)+"/"+(0,r.clean)(t):void 0;var n={instance:m,to:t,currentLocationPath:t,navigateOptions:{},resolveOptions:h({},v,e)};return(0,o.default)([a.default,i.default,o.default.if(function(t){var e=t.matches;return e&&e.length>0},l.default,d.notFoundLifeCycle)],n,f.default),!!n.matches&&n.matches}m.__waiting.push(function(){return m.resolve(t,e)})}function O(t,e){if(m.__dirty)m.__waiting.push(function(){return m.navigate(t,e)});else{m.__dirty=!0,t=(0,r.clean)(g)+"/"+(0,r.clean)(t);var n={instance:m,to:t,navigateOptions:e||{},resolveOptions:e&&e.resolveOptions?e.resolveOptions:v,currentLocationPath:b(t)};(0,o.default)([s.default,u.default,i.default,o.default.if(function(t){var e=t.matches;return e&&e.length>0},l.default,d.notFoundLifeCycle),c.default,f.default],n,f.default)}}function P(){if(k)return(k?[].slice.call(document.querySelectorAll(v.linksSelector||p)):[]).forEach(function(t){"false"!==t.getAttribute("data-navigo")&&"_blank"!==t.getAttribute("target")?t.hasListenerAttached||(t.hasListenerAttached=!0,t.navigoHandler=function(e){if((e.ctrlKey||e.metaKey)&&"a"===e.target.tagName.toLowerCase())return!1;var n=t.getAttribute("href");if(null==n)return!1;if(n.match(/^(http|https)/)&&"undefined"!=typeof URL)try{var o=new URL(n);n=o.pathname+o.search}catch(t){}var a=(0,r.parseNavigateOptions)(t.getAttribute("data-navigo-options"));y||(e.preventDefault(),e.stopPropagation(),m.navigate((0,r.clean)(n),a))},t.addEventListener("click",t.navigoHandler)):t.hasListenerAttached&&t.removeEventListener("click",t.navigoHandler)}),m}function H(t,e,n){var r=_.find(function(e){return e.name===t}),o=null;if(r){if(o=r.path,e)for(var a in e)o=o.replace(":"+a,e[a]);o=o.match(/^\//)?o:"/"+o}return o&&n&&!n.includeRoot&&(o=o.replace(new RegExp("^/"+g),"")),o}function S(t){var e=(0,r.extractGETParameters)((0,r.clean)(t)),o=e[0],a=e[1],i=""===a?null:(0,r.parseQuery)(a);return{url:o,queryString:a,hashString:(0,r.extractHashFromURL)(t),route:L(o,function(){},[n],o),data:null,params:i}}function C(t,e,n){return"string"==typeof e&&(e=x(e)),e?(e.hooks[t]||(e.hooks[t]=[]),e.hooks[t].push(n),function(){e.hooks[t]=e.hooks[t].filter(function(t){return t!==n})}):(console.warn("Route doesn't exists: "+e),function(){})}function x(t){return"string"==typeof t?_.find(function(e){return e.name===A(t)}):_.find(function(e){return e.handler===t})}t?g=(0,r.clean)(t):console.warn('Navigo requires a root path in its constructor. If not provided will use "/" as default.'),this.root=g,this.routes=_,this.destroyed=y,this.current=w,this.__freezeListening=!1,this.__waiting=[],this.__dirty=!1,this.__markAsClean=function(t){t.instance.__dirty=!1,t.instance.__waiting.length>0&&t.instance.__waiting.shift()()},this.on=function(t,e,r){var o=this;return"object"!=typeof t||t instanceof RegExp?("function"==typeof t&&(r=e,e=t,t=g),_.push(L(t,e,[n,r])),this):(Object.keys(t).forEach(function(e){if("function"==typeof t[e])o.on(e,t[e]);else{var r=t[e],a=r.uses,i=r.as,s=r.hooks;_.push(L(e,a,[n,s],i))}}),this)},this.off=function(t){return this.routes=_=_.filter(function(e){return(0,r.isString)(t)?(0,r.clean)(e.path)!==(0,r.clean)(t):(0,r.isFunction)(t)?t!==e.handler:String(e.path)!==String(t)}),this},this.resolve=R,this.navigate=O,this.navigateByName=function(t,e,n){var r=H(t,e);return null!==r&&(O(r.replace(new RegExp("^/?"+g),""),n),!0)},this.destroy=function(){this.routes=_=[],E&&window.removeEventListener("popstate",this.__popstateListener),this.destroyed=y=!0},this.notFound=function(t,e){return m._notFoundRoute=L("*",t,[n,e],"__NOT_FOUND__"),this},this.updatePageLinks=P,this.link=function(t){return"/"+g+"/"+(0,r.clean)(t)},this.hooks=function(t){return n=t,this},this.extractGETParameters=function(t){return(0,r.extractGETParameters)(b(t))},this.lastResolved=function(){return w},this.generate=H,this.getLinkPath=function(t){return t.getAttribute("href")},this.match=function(t){var e={instance:m,currentLocationPath:t,to:t,navigateOptions:{},resolveOptions:v};return(0,i.default)(e,function(){}),!!e.matches&&e.matches},this.matchLocation=function(t,e,n){void 0===e||void 0!==n&&!n||(e=A(e));var o={instance:m,to:e,currentLocationPath:e};(0,a.default)(o,function(){}),"string"==typeof t&&(t=void 0===n||n?A(t):t);var i=(0,r.matchRoute)(o,{name:String(t),path:t,handler:function(){},hooks:{}});return i||!1},this.getCurrentLocation=function(){return S((0,r.clean)((0,r.getCurrentEnvURL)(g)).replace(new RegExp("^"+g),""))},this.addBeforeHook=C.bind(this,"before"),this.addAfterHook=C.bind(this,"after"),this.addAlreadyHook=C.bind(this,"already"),this.addLeaveHook=C.bind(this,"leave"),this.getRoute=x,this._pathToMatchObject=S,this._clean=r.clean,this._checkForAHash=b,this._setCurrent=function(t){return w=m.current=t},function(){E&&(this.__popstateListener=function(){m.__freezeListening||R()},window.addEventListener("popstate",this.__popstateListener))}.call(this),P.call(this)}},"./src/lifecycles.ts":function(t,e,n){n.r(e),n.d(e,{foundLifecycle:function(){return h},notFoundLifeCycle:function(){return p}});var r=n("./src/Q.ts"),o=n("./src/middlewares/checkForLeaveHook.ts"),a=n("./src/middlewares/checkForBeforeHook.ts"),i=n("./src/middlewares/callHandler.ts"),s=n("./src/middlewares/checkForAfterHook.ts"),u=n("./src/middlewares/checkForAlreadyHook.ts"),c=n("./src/middlewares/checkForNotFoundHandler.ts"),l=n("./src/middlewares/errorOut.ts"),f=n("./src/middlewares/flushCurrent.ts"),d=n("./src/middlewares/updateState.ts"),h=[u.default,a.default,i.default,s.default],p=[o.default,c.default,r.default.if(function(t){return t.notFoundHandled},h.concat([d.default]),[l.default,f.default])]},"./src/middlewares/callHandler.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return o}});var r=n("./src/utils.ts");function o(t,e){(0,r.undefinedOrTrue)(t.navigateOptions,"callHandler")&&t.match.route.handler(t.match),t.instance.updatePageLinks(),e()}},"./src/middlewares/checkForAfterHook.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return o}});var r=n("./src/utils.ts");function o(t,e){t.match.route.hooks&&t.match.route.hooks.after&&(0,r.undefinedOrTrue)(t.navigateOptions,"callHooks")&&t.match.route.hooks.after.forEach(function(e){return e(t.match)}),e()}},"./src/middlewares/checkForAlreadyHook.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return o}});var r=n("./src/utils.ts");function o(t,e){var n=t.instance.lastResolved();if(n&&n[0]&&n[0].route===t.match.route&&n[0].url===t.match.url&&n[0].queryString===t.match.queryString)return n.forEach(function(e){e.route.hooks&&e.route.hooks.already&&(0,r.undefinedOrTrue)(t.navigateOptions,"callHooks")&&e.route.hooks.already.forEach(function(e){return e(t.match)})}),void e(!1);e()}},"./src/middlewares/checkForBeforeHook.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return a}});var r=n("./src/Q.ts"),o=n("./src/utils.ts");function a(t,e){t.match.route.hooks&&t.match.route.hooks.before&&(0,o.undefinedOrTrue)(t.navigateOptions,"callHooks")?(0,r.default)(t.match.route.hooks.before.map(function(e){return function(n,r){return e(function(e){!1===e?t.instance.__markAsClean(t):r()},t.match)}}).concat([function(){return e()}])):e()}},"./src/middlewares/checkForDeprecationMethods.ts":function(t,e,n){function r(t,e){t.navigateOptions&&(void 0!==t.navigateOptions.shouldResolve&&console.warn('"shouldResolve" is deprecated. Please check the documentation.'),void 0!==t.navigateOptions.silent&&console.warn('"silent" is deprecated. Please check the documentation.')),e()}n.r(e),n.d(e,{default:function(){return r}})},"./src/middlewares/checkForForceOp.ts":function(t,e,n){function r(t,e){!0===t.navigateOptions.force?(t.instance._setCurrent([t.instance._pathToMatchObject(t.to)]),e(!1)):e()}n.r(e),n.d(e,{default:function(){return r}})},"./src/middlewares/checkForLeaveHook.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return a}});var r=n("./src/Q.ts"),o=n("./src/utils.ts");function a(t,e){var n=t.instance;n.lastResolved()?(0,r.default)(n.lastResolved().map(function(e){return function(n,a){if(e.route.hooks&&e.route.hooks.leave){var i=!1,s=t.instance.matchLocation(e.route.path,t.currentLocationPath,!1);i="*"!==e.route.path?!s:!(t.matches&&t.matches.find(function(t){return e.route.path===t.route.path})),(0,o.undefinedOrTrue)(t.navigateOptions,"callHooks")&&i?(0,r.default)(e.route.hooks.leave.map(function(e){return function(n,r){return e(function(e){!1===e?t.instance.__markAsClean(t):r()},t.matches&&t.matches.length>0?1===t.matches.length?t.matches[0]:t.matches:void 0)}}).concat([function(){return a()}])):a()}else a()}}),{},function(){return e()}):e()}},"./src/middlewares/checkForNotFoundHandler.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return o}});var r=n("./src/utils.ts");function o(t,e){var n=t.instance._notFoundRoute;if(n){t.notFoundHandled=!0;var o=(0,r.extractGETParameters)(t.currentLocationPath),a=o[0],i=o[1],s=(0,r.extractHashFromURL)(t.to);n.path=(0,r.clean)(a);var u={url:n.path,queryString:i,hashString:s,data:null,route:n,params:""!==i?(0,r.parseQuery)(i):null};t.matches=[u],t.match=u}e()}},"./src/middlewares/errorOut.ts":function(t,e,n){function r(t,e){t.resolveOptions&&!1!==t.resolveOptions.noMatchWarning&&void 0!==t.resolveOptions.noMatchWarning||console.warn('Navigo: "'+t.currentLocationPath+"\" didn't match any of the registered routes."),e()}n.r(e),n.d(e,{default:function(){return r}})},"./src/middlewares/flushCurrent.ts":function(t,e,n){function r(t,e){t.instance._setCurrent(null),e()}n.r(e),n.d(e,{default:function(){return r}})},"./src/middlewares/matchPathToRegisteredRoutes.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return o}});var r=n("./src/utils.ts");function o(t,e){for(var n=0;n<t.instance.routes.length;n++){var o=t.instance.routes[n],a=(0,r.matchRoute)(t,o);if(a&&(t.matches||(t.matches=[]),t.matches.push(a),"ONE"===t.resolveOptions.strategy))return void e()}e()}},"./src/middlewares/processMatches.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return u}});var r=n("./src/Q.ts"),o=n("./src/lifecycles.ts"),a=n("./src/middlewares/updateState.ts"),i=n("./src/middlewares/checkForLeaveHook.ts");function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function u(t,e){var n=0;(0,i.default)(t,function i(){n!==t.matches.length?(0,r.default)(o.foundLifecycle,s({},t,{match:t.matches[n]}),function(){n+=1,i()}):(0,a.default)(t,e)})}},"./src/middlewares/setLocationPath.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return o}});var r=n("./src/utils.ts");function o(t,e){void 0===t.currentLocationPath&&(t.currentLocationPath=t.to=(0,r.getCurrentEnvURL)(t.instance.root)),t.currentLocationPath=t.instance._checkForAHash(t.currentLocationPath),e()}},"./src/middlewares/updateBrowserURL.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return i}});var r=n("./src/utils.ts"),o=(0,r.windowAvailable)(),a=(0,r.pushStateAvailable)();function i(t,e){if((0,r.undefinedOrTrue)(t.navigateOptions,"updateBrowserURL")){var n=("/"+t.to).replace(/\/\//g,"/"),i=o&&t.resolveOptions&&!0===t.resolveOptions.hash;a?(history[t.navigateOptions.historyAPIMethod||"pushState"](t.navigateOptions.stateObj||{},t.navigateOptions.title||"",i?"#"+n:n),location&&location.hash&&(t.instance.__freezeListening=!0,setTimeout(function(){if(!i){var e=location.hash;location.hash="",location.hash=e}t.instance.__freezeListening=!1},1))):o&&(window.location.href=t.to)}e()}},"./src/middlewares/updateState.ts":function(t,e,n){n.r(e),n.d(e,{default:function(){return o}});var r=n("./src/utils.ts");function o(t,e){(0,r.undefinedOrTrue)(t.navigateOptions,"updateState")&&t.instance._setCurrent(t.matches),e()}},"./src/middlewares/waitingList.ts":function(t,e,n){function r(t){t.instance.__markAsClean(t)}n.r(e),n.d(e,{default:function(){return r}})},"./src/utils.ts":function(t,e,n){n.r(e),n.d(e,{getCurrentEnvURL:function(){return o},clean:function(){return a},isString:function(){return i},isFunction:function(){return s},extractHashFromURL:function(){return u},regExpResultToParams:function(){return c},extractGETParameters:function(){return l},parseQuery:function(){return f},matchRoute:function(){return d},pushStateAvailable:function(){return h},undefinedOrTrue:function(){return p},parseNavigateOptions:function(){return v},windowAvailable:function(){return m},accumulateHooks:function(){return g}});var r=n("./src/constants.ts");function o(t){return void 0===t&&(t="/"),m()?location.pathname+location.search+location.hash:t}function a(t){return t.replace(/\/+$/,"").replace(/^\/+/,"")}function i(t){return"string"==typeof t}function s(t){return"function"==typeof t}function u(t){return t&&t.indexOf("#")>=0&&t.split("#").pop()||""}function c(t,e){return 0===e.length?null:t?t.slice(1,t.length).reduce(function(t,n,r){return null===t&&(t={}),t[e[r]]=decodeURIComponent(n),t},null):null}function l(t){var e=a(t).split(/\?(.*)?$/);return[a(e[0]),e.slice(1).join("")]}function f(t){for(var e={},n=t.split("&"),r=0;r<n.length;r++){var o=n[r].split("=");if(""!==o[0]){var a=decodeURIComponent(o[0]);e[a]?(Array.isArray(e[a])||(e[a]=[e[a]]),e[a].push(decodeURIComponent(o[1]||""))):e[a]=decodeURIComponent(o[1]||"")}}return e}function d(t,e){var n,o=l(a(t.currentLocationPath)),s=o[0],d=o[1],h=""===d?null:f(d),p=[];if(i(e.path)){if(n=r.START_BY_SLASH_REGEXP+a(e.path).replace(r.PARAMETER_REGEXP,function(t,e,n){return p.push(n),r.REPLACE_VARIABLE_REGEXP}).replace(r.WILDCARD_REGEXP,r.REPLACE_WILDCARD).replace(r.NOT_SURE_REGEXP,r.REPLACE_NOT_SURE)+"$",""===a(e.path)&&""===a(s))return{url:s,queryString:d,hashString:u(t.to),route:e,data:null,params:h}}else n=e.path;var v=new RegExp(n,r.MATCH_REGEXP_FLAGS),m=s.match(v);if(m){var g=i(e.path)?c(m,p):m.groups?m.groups:m.slice(1);return{url:a(s.replace(new RegExp("^"+t.instance.root),"")),queryString:d,hashString:u(t.to),route:e,data:g,params:h}}return!1}function h(){return!("undefined"==typeof window||!window.history||!window.history.pushState)}function p(t,e){return void 0===t[e]||!0===t[e]}function v(t){if(!t)return{};var e,n=t.split(","),r={};return n.forEach(function(t){var n=t.split(":").map(function(t){return t.replace(/(^ +| +$)/g,"")});switch(n[0]){case"historyAPIMethod":r.historyAPIMethod=n[1];break;case"resolveOptionsStrategy":e||(e={}),e.strategy=n[1];break;case"resolveOptionsHash":e||(e={}),e.hash="true"===n[1];break;case"updateBrowserURL":case"callHandler":case"updateState":case"force":r[n[0]]="true"===n[1]}}),e&&(r.resolveOptions=e),r}function m(){return"undefined"!=typeof window}function g(t,e){return void 0===t&&(t=[]),void 0===e&&(e={}),t.filter(function(t){return t}).forEach(function(t){["before","after","already","leave"].forEach(function(n){t[n]&&(e[n]||(e[n]=[]),e[n].push(t[n]))})}),e}}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}return n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n("./src/index.ts")}().default},n.exports=r()),n.exports);return t.getDefaultExportFromCjs(o)}),define("npm:tablesort/dist/tablesort.min.js",["_commonjsHelpers-DA3mUP_w.js"],function(t){"use strict";var e,n={exports:{}};var r,o=(e||(e=1,r=n,(()=>{function t(e,n){if(!(this instanceof t))return new t(e,n);if(!e||"TABLE"!==e.tagName)throw new Error("Element must be a table");this.init(e,n||{})}function e(t){var e;return window.CustomEvent&&"function"==typeof window.CustomEvent?e=new CustomEvent(t):(e=document.createEvent("CustomEvent")).initCustomEvent(t,!1,!1,void 0),e}function n(t,e){return t.getAttribute(e.sortAttribute||"data-sort")||t.textContent||t.innerText||""}function o(t,e){return(t=t.trim().toLowerCase())===(e=e.trim().toLowerCase())?0:t<e?1:-1}function a(t,e){return[].slice.call(t).find(function(t){return t.getAttribute("data-sort-column-key")===e})}function i(t,e){return function(n,r){var o=t(n.td,r.td);return 0===o?e?r.index-n.index:n.index-r.index:o}}var s=[];t.extend=function(t,e,n){if("function"!=typeof e||"function"!=typeof n)throw new Error("Pattern and sort must be a function");s.push({name:t,pattern:e,sort:n})},t.prototype={init:function(t,e){var n,r,o,a=this;if(a.table=t,a.thead=!1,a.options=e,t.rows&&0<t.rows.length)if(t.tHead&&0<t.tHead.rows.length){for(s=0;s<t.tHead.rows.length;s++)if("thead"===t.tHead.rows[s].getAttribute("data-sort-method")){n=t.tHead.rows[s];break}n=n||t.tHead.rows[t.tHead.rows.length-1],a.thead=!0}else n=t.rows[0];if(n){for(var i=function(){a.current&&a.current!==this&&a.current.removeAttribute("aria-sort"),a.current=this,a.sortTable(this)},s=0;s<n.cells.length;s++)(o=n.cells[s]).setAttribute("role","columnheader"),"none"!==o.getAttribute("data-sort-method")&&(o.tabIndex=0,o.addEventListener("click",i,!1),o.addEventListener("keydown",function(t){"Enter"===t.key&&(t.preventDefault(),i.call(this))}),null!==o.getAttribute("data-sort-default"))&&(r=o);r&&(a.current=r,a.sortTable(r))}},sortTable:function(t,r){var u=this,c=t.getAttribute("data-sort-column-key"),l=t.cellIndex,f=o,d="",h=[],p=u.thead?0:1,v=t.getAttribute("data-sort-method"),m=t.hasAttribute("data-sort-reverse"),g=t.getAttribute("aria-sort");if(u.table.dispatchEvent(e("beforeSort")),r||(g="ascending"===g||"descending"!==g&&u.options.descending?"descending":"ascending",t.setAttribute("aria-sort",g)),!(u.table.rows.length<2)){if(!v){for(;h.length<3&&p<u.table.tBodies[0].rows.length;)0<(d=(d=(_=c?a(u.table.tBodies[0].rows[p].cells,c):u.table.tBodies[0].rows[p].cells[l])?n(_,u.options):"").trim()).length&&h.push(d),p++;if(!h)return}for(p=0;p<s.length;p++)if(d=s[p],v){if(d.name===v){f=d.sort;break}}else if(h.every(d.pattern)){f=d.sort;break}for(u.col=l,p=0;p<u.table.tBodies.length;p++){var w,_,y=[],E={},k=0,b=0;if(!(u.table.tBodies[p].rows.length<2)){for(w=0;w<u.table.tBodies[p].rows.length;w++)"none"===(d=u.table.tBodies[p].rows[w]).getAttribute("data-sort-method")?E[k]=d:(_=c?a(d.cells,c):d.cells[u.col],y.push({tr:d,td:_?n(_,u.options):"",index:k})),k++;for("descending"===g&&!m||"ascending"===g&&m?y.sort(i(f,!0)):(y.sort(i(f,!1)),y.reverse()),w=0;w<k;w++)E[w]?(d=E[w],b++):d=y[w-b].tr,u.table.tBodies[p].appendChild(d)}}u.table.dispatchEvent(e("afterSort"))}},refresh:function(){void 0!==this.current&&this.sortTable(this.current,!0)}},r.exports?r.exports=t:window.Tablesort=t})()),n.exports);return t.getDefaultExportFromCjs(o)});