1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-15 20:25:07 +02:00
TableFilter/dist/tablefilter/tablefilter.js

13 lines
211 KiB
JavaScript
Raw Normal View History

2016-10-22 10:38:03 +02:00
/**
2016-10-31 12:18:21 +01:00
* tablefilter v0.4.2 by Max Guglielmi
* build date: 2016-10-31T11:11:06.379Z
2016-10-22 10:38:03 +02:00
* MIT License
*/
2016-10-31 12:18:21 +01:00
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var s=n[i]={exports:{},id:i,loaded:!1};return t[i].call(s.exports,s,s.exports,e),s.loaded=!0,s.exports}var i=window.webpackJsonp;window.webpackJsonp=function(n,r){for(var a,o,l=0,u=[];l<n.length;l++)o=n[l],s[o]&&u.push.apply(u,s[o]),s[o]=0;for(a in r)t[a]=r[a];for(i&&i(n,r);u.length;)u.shift().call(null,e)};var n={},s={0:0};return e.e=function(t,i){if(0===s[t])return i.call(null,e);if(void 0!==s[t])s[t].push(i);else{s[t]=[i];var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.src=e.p+"tf-"+({}[t]||t)+".js",n.appendChild(r)}},e.m=t,e.c=n,e.p="",e(0)}([function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.TableFilter=void 0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=i(1),a=i(3),o=i(5),l=i(4),u=i(7),c=i(2),f=i(8),h=i(9),d=i(12),p=i(13),m=i(14),g=i(15),y=i(18),v=i(19),b=i(20),x=i(21),_=i(22),w=i(23),C=i(24),E=i(25),T=i(26),k=i(30),N=i(11),S=c.root.document;e.TableFilter=function(){function t(){var e=this;n(this,t),this.id=null,this.version="0.4.2",this.year=(new Date).getFullYear(),this.tbl=null,this.refRow=null,this.headersRow=null,this.cfg={},this.nbFilterableRows=0,this.nbCells=null;for(var i=void 0,r=arguments.length,o=Array(r),u=0;u<r;u++)o[u]=arguments[u];if(o.forEach(function(t){"object"===("undefined"==typeof t?"undefined":s(t))&&"TABLE"===t.nodeName?(e.tbl=t,e.id=t.id||"tf_"+(new Date).getTime()+"_"):(0,l.isString)(t)?(e.id=t,e.tbl=(0,a.elm)(t)):(0,l.isNumber)(t)?i=t:(0,l.isObj)(t)&&(e.cfg=t)}),!this.tbl||"TABLE"!==this.tbl.nodeName||0===this.getRowsNb())throw new Error("Could not instantiate TableFilter: HTML table\n DOM element not found.");var c=this.cfg;this.emitter=new f.Emitter,this.refRow=(0,l.isUndef)(i)?2:i+1;try{this.nbCells=this.getCellsNb(this.refRow)}catch(t){this.nbCells=this.getCellsNb(0)}this.basePath=c.base_path||"tablefilter/",this.fltGrid=c.grid!==!1,this.gridLayout=Boolean(c.grid_layout),this.filtersRowIndex=isNaN(c.filters_row_index)?0:c.filters_row_index,this.headersRow=isNaN(c.headers_row_index)?0===this.filtersRowIndex?1:0:c.headers_row_index,this.fltCellTag=(0,l.isString)(c.filters_cell_tag)?c.filters_cell_tag:N.CELL_TAG,this.fltIds=[],this.validRowsIndex=[],this.infDiv=null,this.lDiv=null,this.rDiv=null,this.mDiv=null,this.infDivCssClass=c.inf_div_css_class||"inf",this.lDivCssClass=c.left_div_css_class||"ldiv",this.rDivCssClass=c.right_div_css_class||"rdiv",this.mDivCssClass=c.middle_div_css_class||"mdiv",this.stylePath=c.style_path||this.basePath+"style/",this.stylesheet=c.stylesheet||this.stylePath+"tablefilter.css",this.stylesheetId=this.id+"_style",this.fltsRowCssClass=c.flts_row_css_class||"fltrow",this.enableIcons=c.enable_icons!==!1,this.alternateRows=Boolean(c.alternate_rows),this.hasColWidths=(0,l.isArray)(c.col_widths),this.colWidths=this.hasColWidths?c.col_widths:[],this.fltCssClass=c.flt_css_class||"flt",this.fltMultiCssClass=c.flt_multi_css_class||"flt_multi",this.fltSmallCssClass=c.flt_small_css_class||"flt_s",this.singleFltCssClass=c.single_flt_css_class||"single_flt",this.enterKey=c.enter_key!==!1,this.onBeforeFilter=(0,l.isFn)(c.on_before_filter)?c.on_before_filter:null,this.onAfterFilter=(0,l.isFn)(c.on_after_filter)?c.on_after_filter:null,this.caseSensitive=Boolean(c.case_sensitive),this.hasExactMatchByCol=(0,l.isArray)(c.columns_exact_match),this.exactMatchByCol=this.hasExactMatchByCol?c.columns_exact_match:[],this.exactMatch=Boolean(c.exact_match),this.ignoreDiacritics=c.ignore_diacritics,this.
2016-10-28 00:46:46 +02:00
0===i.length&&(s=e.rows[n].cells[r]),1===i.length&&(s=i[0].rows[n].cells[r]);break}return s},t.prototype.getHeadersText=function(){for(var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[],i=0;i<this.nbCells;i++)if(!(t&&this.hasExtension("colsVisibility")&&this.extension("colsVisibility").isColHidden(i))){var n=this.getHeaderElement(i),s=(0,a.getFirstTextNode)(n);e.push(s)}return e},t.prototype.getFilterType=function(t){var e=this.cfg["col_"+t];return e?e.toLowerCase():N.INPUT},t.prototype.getFilterableRowsNb=function(){return this.getRowsNb(!1)},t.prototype.getValidRowsNb=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getValidRows(t).length},t.prototype.config=function(){return this.cfg},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keyCode=e.targetEvt=e.cancelEvt=e.stopEvt=e.removeEvt=e.addEvt=void 0;var n=i(2);e.addEvt=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i},e.removeEvt=function(t,e,i,n){t.detachEvent?t.detachEvent("on"+e,i):t.removeEventListener?t.removeEventListener(e,i,n):t["on"+e]=null},e.stopEvt=function(t){t||(t=n.root.event),t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},e.cancelEvt=function(t){t||(t=n.root.event),t.preventDefault?t.preventDefault():t.returnValue=!1},e.targetEvt=function(t){return t||(t=n.root.event),t.target||t.srcElement},e.keyCode=function(t){return t.charCode?t.charCode:t.keyCode?t.keyCode:t.which?t.which:0}},function(t,e){(function(t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.root="object"===("undefined"==typeof self?"undefined":i(self))&&self.self===self&&self||"object"===("undefined"==typeof t?"undefined":i(t))&&t.global===t&&t||void 0}).call(e,function(){return this}())},function(t,e,i){"use strict";function n(){return o.documentElement.classList}Object.defineProperty(e,"__esModule",{value:!0}),e.tag=e.elm=e.createCheckItem=e.createOpt=e.removeClass=e.addClass=e.hasClass=e.createText=e.removeElm=e.createElm=e.getFirstTextNode=e.getText=void 0;var s=i(2),r=i(4),a=i(5),o=s.root.document,l=(e.getText=function(t){return(0,r.isUndef)(t.textContent)?(0,a.trim)(t.innerText):(0,a.trim)(t.textContent)},e.getFirstTextNode=function(t){for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];if(3===i.nodeType)return i.data}},e.createElm=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[0];if(!(0,r.isString)(n))return null;for(var s=o.createElement(n),a=0;a<e.length;a++){var l=e[a];(0,r.isArray)(l)&&2===l.length&&s.setAttribute(l[0],l[1])}return s}),u=(e.removeElm=function(t){return t.parentNode.removeChild(t)},e.createText=function(t){return o.createTextNode(t)}),c=e.hasClass=function(t,e){return!(0,r.isUndef)(t)&&(n()?t.classList.contains(e):t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)")))};e.addClass=function(t,e){if(!(0,r.isUndef)(t))return n()?void t.classList.add(e):void(""===t.className?t.className=e:c(t,e)||(t.className+=" "+e))},e.removeClass=function(t,e){if(!(0,r.isUndef)(t)){if(n())return void t.classList.remove(e);var i=new RegExp("(\\s|^)"+e+"(\\s|$)","g");t.className=t.className.replace(i,"")}},e.createOpt=function(t,e,i){var n=!!i,s=n?l("option",["value",e],["selected","true"]):l("option",["value",e]);return s.appendChild(u(t)),s},e.createCheckItem=function(t,e,i){var n=l("li"),s=l("label",["for",t]),r=l("input",["id",t],["name",t],["type","checkbox"],["value",e]);return s.appendChild(r),s.appendChild(u(i)),n.appendChild(s),n.label=s,n.check=r,n},e.elm=function(t){return o.getElementById(t)},e.tag=function(t,e){return t.getElementsByTagName(e)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=void 0,n=(e.isObj=function(t){return"[object Object]"===Object.prototype.toString.call(t)},e.isFn=function(t){return
2016-10-31 12:18:21 +01:00
}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.CheckList=void 0;var a=i(10),o=i(3),l=i(16),u=i(5),c=i(17),f=i(1),h=i(4),d=i(11),p="Filter options for column {0} cannot be sorted in {1} manner.";e.CheckList=function(t){function e(i){n(this,e);var r=s(this,t.call(this,i,"checkList")),a=r.config;return r.containers=[],r.containerCssClass=a.div_checklist_css_class||"div_checklist",r.filterCssClass=a.checklist_css_class||"flt_checklist",r.itemCssClass=a.checklist_item_css_class||"flt_checklist_item",r.selectedItemCssClass=a.checklist_selected_item_css_class||"flt_checklist_slc_item",r.activateText=a.activate_checklist_text||"Click to load filter data",r.disabledItemCssClass=a.checklist_item_disabled_css_class||"flt_checklist_item_disabled",r.enableResetOption=a.enable_checklist_reset_filter!==!1,r.prfx="chkdiv_",r.isCustom=!1,r.opts=[],r.optsTxt=[],r.excludedOpts=[],r}return r(e,t),e.prototype.optionClick=function(t){var e=(0,f.targetEvt)(t),i=this.tf;this.emitter.emit("filter-focus",i,e),this.setCheckListValues(e),i.filter()},e.prototype.onCheckListClick=function(t){var e=this,i=(0,f.targetEvt)(t);if(this.tf.loadFltOnDemand&&"0"===i.getAttribute("filled")){var n=i.getAttribute("ct"),s=this.containers[n];this.build(n),(0,f.removeEvt)(s,"click",function(t){return e.onCheckListClick(t)})}},e.prototype.init=function(t,e,i){var n=this,s=this.tf,r=e?s.externalFltTgtIds[t]:null,a=(0,o.createElm)("div",["id",this.prfx+t+"_"+s.id],["ct",t],["filled","0"]);a.className=this.containerCssClass,r?(0,o.elm)(r).appendChild(a):i.appendChild(a),this.containers[t]=a,s.fltIds.push(s.prfxFlt+t+"_"+s.id),s.loadFltOnDemand?((0,f.addEvt)(a,"click",function(t){return n.onCheckListClick(t)}),a.appendChild((0,o.createText)(this.activateText))):this.build(t),this.emitter.on(["build-checklist-filter"],function(t,e){return n.build(e)}),this.emitter.on(["select-checklist-options"],function(t,e,i){return n.selectOptions(e,i)}),this.initialized=!0},e.prototype.build=function(t){var e=this.tf;t=parseInt(t,10),this.emitter.emit("before-populating-filter",e,t),this.opts=[],this.optsTxt=[];var i=this.containers[t],n=(0,o.createElm)("ul",["id",e.fltIds[t]],["colIndex",t]);n.className=this.filterCssClass;var s=e.tbl.rows,r=e.getRowsNb(!0),a=e.caseSensitive;this.isCustom=e.isCustomOptions(t);var f=void 0,h=e.getActiveFilterId();e.linkedFilters&&h&&(f=e.getColumnIndexFromFilterId(h));var d=[];e.linkedFilters&&e.disableExcludedOptions&&(this.excludedOpts=[]),i.innerHTML="";for(var m=e.refRow;m<r;m++)if(!e.hasVisibleRows||e.visibleRows.indexOf(m)===-1){var g=s[m].cells,y=g.length;if(y===e.nbCells&&!this.isCustom)for(var v=0;v<y;v++)if(t===v&&(!e.linkedFilters||e.linkedFilters&&e.disableExcludedOptions)||t===v&&e.linkedFilters&&(""===s[m].style.display&&!e.paging||e.paging&&(!f||f===t||f!==t&&e.validRowsIndex.indexOf(m)!==-1))){var b=e.getCellData(g[v]),x=(0,u.matchCase)(b,a);(0,l.has)(this.opts,x,a)||this.opts.push(b);var _=d[v];e.linkedFilters&&e.disableExcludedOptions&&(_||(_=e.getFilteredDataCol(v)),(0,l.has)(_,x,a)||(0,l.has)(this.excludedOpts,x,a)||this.excludedOpts.push(b))}}if(this.isCustom){var w=e.getCustomOptions(t);this.opts=w[0],this.optsTxt=w[1]}if(e.sortSlc&&!this.isCustom&&(a?(this.opts.sort(),this.excludedOpts&&this.excludedOpts.sort()):(this.opts.sort(c.ignoreCase),this.excludedOpts&&this.excludedOpts.sort(c.ignoreCase))),e.sortNumAsc.indexOf(t)!==-1)try{this.opts.sort(c.numSortAsc),this.excludedOpts&&this.excludedOpts.sort(c.numSortAsc),this.isCustom&&this.optsTxt.sort(c.numSortAsc)}catch(e){throw new Error(p.replace("{0}",t).replace("{1}","ascending"))}if(e.sortNumDesc.inde
2016-10-28 00:46:46 +02:00
t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Help=void 0;var a=i(10),o=i(3),l=i(1),u=i(11),c="https://github.com/koalyptus/TableFilter/wiki/4.-Filter-operators",f="http://koalyptus.github.io/TableFilter/";e.Help=function(t){function e(i){n(this,e);var r=s(this,t.call(this,i,"help")),a=r.config;return r.tgtId=a.help_instructions_target_id||null,r.contTgtId=a.help_instructions_container_target_id||null,r.instrText=a.help_instructions_text?a.help_instructions_text:'Use the filters above each column to filter and limit table data. Advanced searches can be performed by using the following operators: <br /><b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>=</b>, <b>*</b>, <b>!</b>, <b>{</b>, <b>}</b>, <b>||</b>,<b>&amp;&amp;</b>, <b>[empty]</b>, <b>[nonempty]</b>, <b>rgx:</b><br/><a href="'+c+'" target="_blank">Learn more</a><hr/>',r.instrHtml=a.help_instructions_html||null,r.btnText=a.help_instructions_btn_text||"?",r.btnHtml=a.help_instructions_btn_html||null,r.btnCssClass=a.help_instructions_btn_css_class||"helpBtn",r.contCssClass=a.help_instructions_container_css_class||"helpCont",r.btn=null,r.cont=null,r.defaultHtml='<div class="helpFooter"><h4>TableFilter v'+i.version+'</h4><a href="'+f+'" target="_blank">'+f+"</a><br/><span>&copy;2015-"+i.year+' Max Guglielmi</span><div align="center" style="margin-top:8px;"><a href="javascript:void(0);" class="close">Close</a></div></div>',r.prfxHelpSpan="helpSpan_",r.prfxHelpDiv="helpDiv_",r.emitter.on(["init-help"],function(){return r.init()}),r}return r(e,t),e.prototype.init=function(){var t=this;if(!this.initialized){var e=this.tf,i=(0,o.createElm)("span",["id",this.prfxHelpSpan+e.id]),n=(0,o.createElm)("div",["id",this.prfxHelpDiv+e.id]);this.tgtId||e.setToolbar();var s=this.tgtId?(0,o.elm)(this.tgtId):e.rDiv;s.appendChild(i);var r=this.contTgtId?(0,o.elm)(this.contTgtId):i;if(this.btnHtml){i.innerHTML=this.btnHtml;var a=i.firstChild;(0,l.addEvt)(a,"click",function(){return t.toggle()}),r.appendChild(n)}else{r.appendChild(n);var u=(0,o.createElm)("a",["href","javascript:void(0);"]);u.className=this.btnCssClass,u.appendChild((0,o.createText)(this.btnText)),i.appendChild(u),(0,l.addEvt)(u,"click",function(){return t.toggle()})}this.instrHtml?(this.contTgtId&&r.appendChild(n),n.innerHTML=this.instrHtml,this.contTgtId||(n.className=this.contCssClass,(0,l.addEvt)(n,"dblclick",function(){return t.toggle()}))):(n.innerHTML=this.instrText,n.className=this.contCssClass,(0,l.addEvt)(n,"dblclick",function(){return t.toggle()})),n.innerHTML+=this.defaultHtml,(0,l.addEvt)(n,"click",function(){return t.toggle()}),this.cont=n,this.btn=i,this.initialized=!0}},e.prototype.toggle=function(){if(this.enabled!==!1){var t=this.cont.style.display;""===t||t===u.NONE?this.cont.style.display="inline":this.cont.style.display=u.NONE}},e.prototype.destroy=function(){this.initialized&&((0,o.removeElm)(this.btn),this.btn=null,this.cont&&((0,o.removeElm)(this.cont),this.cont=null,this.initialized=!1))},e}(a.Feature)},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.AlternateRows=void 0;var a=i(10),o=i(3);e.AlternateRows=function(t){function e(i){n(this,e);var r=s(this,t.call(this,i,"alternateRows")),a=r.config;return r.evenCss=a.even_row_css_class||"even",r.oddCss=a.odd_row_css_class||"odd",r}return r(e,t),e.prototype.init=function(){
return this.firstDayOfWeekYear||R},convertAdjustedToFormat:function(t,e){var i,n,s,r=t[0],a=t[1],o=t[2],l=this[e]||this.relative;return A(l)?l.call(this,r,a,o,e):(s=this.plural&&1!==r?1:0,n=this.units[8*s+a]||this.units[a],i=this[o>0?"fromNow":"ago"],l.replace(/\{(.*?)\}/g,function(t,e){switch(e){case"num":return r;case"unit":return n;case"sign":return i}}))},cacheFormat:function(t,e){this.compiledFormats.splice(e,1),this.compiledFormats.unshift(t)},addFormat:function(t,e){function i(t){var i,r,o,l=t.match(/\?$/),u=t.match(/^(\d+)\??$/),f=t.match(/(\d)(?:-(\d))?/),h=t.replace(/[^a-z]+$/i,"");return(o=N(s.parsingAliases,h))?(r=n(o),l&&(r=b(r,!0)),r):(u?r=s.tokens[u[1]]:(o=N(a,h))?r=o.src:(o=N(s.parsingTokens,h)||N(s,h),h=h.replace(/s$/,""),o||(o=N(s.parsingTokens,h)||N(s,h+"s")),M(o)?(r=o,i=s[h+"Suffix"]):(f&&(o=c(o,function(t,e){var i=e%(s.units?8:o.length);return i>=f[1]&&i<=(f[2]||f[1])})),r=C(o))),r?(u?r=b(r):(e.push(h),r="("+r+")"),i&&(r=k(h,r,i)),l&&(r+="?"),r):"")}function n(t){return t=t.replace(/ /g," ?"),t.replace(/\{([^,]+?)\}/g,function(t,e){var n,s=e.split("|");return n=s.length>1?b(u(s,i).join("|")):i(e)})}var s=this;e||(e=[],t=n(t)),s.addRawFormat(t,e)},addRawFormat:function(t,e){this.compiledFormats.unshift({reg:RegExp("^ *"+t+" *$","i"),to:e})},init:function(t){function e(){L.compiledFormats=[],L.parsingAliases={},L.parsingTokens={}}function i(){y(L,t)}function n(){f(s,function(t){var e=L[t];M(e)?L[t]=d(e):e||(L[t]=[])})}function r(t,e,i,n){var s,r=t,a=[];L[r]||(r+="s"),i||(i={},s=!0),c(r,function(t,s,r){var o,l=s*e+r;o=n?n(r):r,i[t]=o,i[t.toLowerCase()]=o,a[l]=t}),L[r]=a,s&&(L[t+"Map"]=i)}function c(t,e){f(L[t],function(t,i){h(t,function(t,n){e(t,n,i)})})}function h(t,e){var i=u(t.split("+"),function(t){return t.replace(/(.+):(.+)$/,function(t,e,i){return u(i.split("|"),function(t){return e+t}).join("|")})}).join("|");f(i.split("|"),e)}function p(){var t={};r("numeral",10,t),r("article",1,t,function(){return 1}),r("placeholder",4,t,function(t){return P(10,t+1)}),L.numeralMap=t}function m(){L.parsingAliases.time=g(),L.parsingAliases.tzOffset=v()}function g(){var t;return t=L.ampmFront?"{ampm?} {hour} (?:{minute} (?::?{second})?)?":L.ampm.length?"{hour}(?:[.:]{minute}(?:[.:]{second})? {ampm?}| {ampm})":"{hour}(?:[.:]{minute}(?:[.:]{second})?)"}function v(){return"(?:{Z}|{GMT?}(?:{tzSign}{tzHour}(?::?{tzMinute}(?: \\([\\w\\s]+\\))?)?)?)?"}function x(){S(l,function(t,e){var i,n;i=t.base?a[t.base].src:t.src,(t.requiresNumerals||L.numeralUnits)&&(i+=_()),n=L[e+"s"],n&&n.length&&(i+="|"+C(n)),L.parsingTokens[e]=i})}function _(){var t,e="";return t=L.numerals.concat(L.placeholders).concat(L.articles),L.allowsFullWidth&&(t=t.concat(F.split(""))),t.length&&(e="|(?:"+C(t)+")+"),e}function E(){w(function(t,e){var i=L.timeSuffixes[e];i&&(L[(t.alias||t.name)+"Suffix"]=i)})}function T(){f(L.modifiers,function(t){var e,i=t.name,n=i+"Map";e=L[n]||{},h(t.src,function(n,s){var r=N(L.parsingTokens,i),a=t.value;e[n]=a,L.parsingTokens[i]=r?r+"|"+n:n,"sign"===t.name&&0===s&&(L[1===a?"fromNow":"ago"]=n)}),L[n]=e})}function k(){f(o,function(t){var e=t.src;t.mdy&&L.mdy&&(e=t.mdy),t.time?(L.addFormat(I(e,!0)),L.addFormat(I(e))):L.addFormat(e)}),L.addFormat("{time}")}function O(){D("parse"),D("timeParse",!0),D("timeFrontParse",!0,!0)}function D(t,e,i){f(L[t],function(t){e&&(t=I(t,i)),L.addFormat(t)})}function I(t,e){return e?R()+t:t+A()}function R(){return b("{time}[,\\s\\u3000]",!0)}function A(){var t,e=",?[\\s\\u3000]";return t=C(L.timeMarkers),t&&(e+="| (?:"+t+") "),e=b(e,L.timeMarkerOptional),b(e+"{time}",!0)}var L=this;e(),i(),n(),r("month",12),r("weekday",7),r("unit",8),r("ampm",2),p(),m(),x(),E(),T(),k(),O()}},new e(t)}var s=i(46),r=i(47),a=i(48),o=i(49),l=i(50),u=i(51),c=i(52),f=i(53),h=i(57),d=i(58),p=i(60),m=i(68),g=i(69),y=i(40),v=i(70),b=i(71),x=i(41),_=i(72),w=i(73),C=i(83),E=i(85),T=i(88),k=i(92),N=x.getOwn,S=x.forEachProperty,O=E.fullWidthNumberMap,F=E.fullWidthNumbers,P=g.pow,D=g.max,I=r.ISO_FIRST_DAY_OF_WEEK,R=r.ISO_FIRST_DAY_OF_WEEK_YEAR,M=p.isString,A=p.isFunction;t.exports=n},function(t,e){"use strict";var i=["
return o(t)&&(a=a||{},a.fromUTC=!0,a.setUTC=!0),E=p(null,e,a,!0),i>0&&(k=N=i,_=!0),!!h(E.date)&&(E.set&&E.set.specificity&&((c(E.set.edge)||c(E.set.shift))&&(x=!0,m(E.date,E.set.specificity,n)),C=x||E.set.specificity===g?d(u(E.date),E.set.specificity,n).getTime():v(),!_&&c(E.set.sign)&&E.set.specificity&&(k=50,N=-50)),T=t.getTime(),w=E.date.getTime(),C=C||w,b=y(),b&&(w-=b,C-=b),T>=w-k&&T<=C+N)}var s=i(96),r=i(74),a=i(82),o=i(78),l=i(97),u=i(121),c=i(57),f=i(128),h=i(236),d=i(129),p=i(95),m=i(133),g=a.MONTH_INDEX;t.exports=n},function(t,e){"use strict";function i(t){return!isNaN(t.getTime())}t.exports=i},function(t,e){"use strict";function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}t.exports=i},function(t,e,i){"use strict";function n(t,e,i,n){return s(t,e,i,n).date}var s=i(95);t.exports=n},function(t,e,i){"use strict";function n(t,e,i){var n,o,l=e>t;if(l||(o=e,e=t,t=o),n=e-t,i.multiplier>1&&(n=s(n/i.multiplier)),i.ambiguous)for(t=r(t),n&&a(t,i.name,n);t<e&&(a(t,i.name,1),!(t>e));)n+=1;return l?-n:n}var s=i(89),r=i(121),a=i(128);t.exports=n},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.addHours},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.addMilliseconds},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.addMinutes},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.addMonths},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.addSeconds},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.addWeeks},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.addYears},function(t,e,i){"use strict";var n=i(34),s=i(248);n.Date.defineInstanceWithArguments({advance:function(t,e){return s(t,e,1)}}),t.exports=n.Date.advance},function(t,e,i){"use strict";function n(t,e,i){return e=r(e,!0),s(t,e[0],e[1],i)}var s=i(107),r=i(249);t.exports=n},function(t,e,i){"use strict";function n(t,e){var i=t[0],n=t[1];return e&&c(i)?i=o(i):u(i)&&u(n)?(i=l(t),n=null):a(i)&&(i=r(i)),[i,n]}var s=i(60),r=i(42),a=i(65),o=i(250),l=i(251),u=s.isNumber,c=s.isString;t.exports=n},function(t,e,i){"use strict";function n(t){var e,i,n={};return e=t.match(/^(-?\d*[\d.]\d*)?\s?(\w+?)s?$/i),e&&(s(i)&&(i=+e[1],isNaN(i)&&(i=1)),n[e[2].toLowerCase()]=i),n}var s=i(68);t.exports=n},function(t,e,i){"use strict";function n(t){var e={},i=0;return a(o,function(n){var s=t[i++];r(s)&&(e[n.name]=s)}),e}var s=i(82),r=i(57),a=i(101),o=s.YEAR_INDEX;t.exports=n},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.beginningOfDay},function(t,e,i){"use strict";var n=i(34),s=i(98),r=i(106),a=i(103);n.Date.defineInstance({beginningOfISOWeek:function(t){var e=r(t);return 0===e?e=-6:1!==e&&(e=1),a(t,e),s(t)}}),t.exports=n.Date.beginningOfISOWeek},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.beginningOfMonth},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.beginningOfWeek},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.beginningOfYear},function(t,e,i){"use strict";var n=i(34),s=i(121);n.Date.defineInstance({clone:function(t){return s(t)}}),t.exports=n.Date.clone},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.daysAgo},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.daysFromNow},function(t,e,i){"use strict";var n=i(34),s=i(75);n.Date.defineInstance({daysInMonth:function(t){return s(t)}}),t.exports=n.Date.daysInMonth},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.daysSince},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.daysUntil},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.endOfDay},function(t,e,i){"use strict";var n=i(34),s=i(82),r=i(106),a=i(103),o=i(129),l=s.DAY_INDEX;n.Date.defineInstance({endOfISOWeek:function(t){return 0!==r(t)&&a(t,7),o(t,l)}}),t.exports=n.Date.endOfISOWeek},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.endOfMonth},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.endOfWeek},function(t,e,i){"use strict";var n=i(34);i(233),t.exports=n.Date.endOfYear},function(t,e,i){
timeFrontParse:["{shift} {weekday}","{weekday?},? {date}\\.? {months?}\\.? {year?}"]})},function(t,e,i){"use strict";var n=i(33);n("es",{plural:!0,units:"milisegundo:|s,segundo:|s,minuto:|s,hora:|s,día|días|dia|dias,semana:|s,mes:|es,año|años|ano|anos",months:"ene:ro|,feb:rero|,mar:zo|,abr:il|,may:o|,jun:io|,jul:io|,ago:sto|,sep:tiembre|,oct:ubre|,nov:iembre|,dic:iembre|",weekdays:"dom:ingo|,lun:es|,mar:tes|,mié:rcoles|+mie:rcoles|,jue:ves|,vie:rnes|,sáb:ado|+sab:ado|",numerals:"cero,uno,dos,tres,cuatro,cinco,seis,siete,ocho,nueve,diez",tokens:"el,la,de",short:"{dd}/{MM}/{yyyy}",medium:"{d} de {Month} de {yyyy}",long:"{d} de {Month} de {yyyy} {time}",full:"{weekday}, {d} de {month} de {yyyy} {time}",stamp:"{dow} {d} {mon} {yyyy} {time}",time:"{H}:{mm}",past:"{sign} {num} {unit}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarkers:"a las",ampm:"am,pm",modifiers:[{name:"day",src:"anteayer",value:-2},{name:"day",src:"ayer",value:-1},{name:"day",src:"hoy",value:0},{name:"day",src:"mañana|manana",value:1},{name:"sign",src:"hace",value:-1},{name:"sign",src:"dentro de",value:1},{name:"shift",src:"pasad:o|a",value:-1},{name:"shift",src:"próximo|próxima|proximo|proxima",value:1}],parse:["{months} {2?} {year?}","{sign} {num} {unit}","{num} {unit} {sign}","{0?}{1?} {unit:5-7} {shift}","{0?}{1?} {shift} {unit:5-7}"],timeParse:["{shift?} {day|weekday} {shift?}","{date} {2?} {months?}\\.? {2?} {year?}"],timeFrontParse:["{shift?} {weekday} {shift?}","{date} {2?} {months?}\\.? {2?} {year?}"]})},function(t,e,i){"use strict";var n=i(33);n("fi",{plural:!0,units:"millisekun:ti|tia|nin|teja|tina,sekun:ti|tia|nin|teja|tina,minuut:ti|tia|in|teja|tina,tun:ti|tia|nin|teja|tina,päiv:ä|ää|än|iä|änä,viik:ko|koa|on|olla|koja|kona,kuukau:si|tta|den+kuussa,vuo:si|tta|den|sia|tena|nna",months:"tammi:kuuta||kuu,helmi:kuuta||kuu,maalis:kuuta||kuu,huhti:kuuta||kuu,touko:kuuta||kuu,kesä:kuuta||kuu,heinä:kuuta||kuu,elo:kuuta||kuu,syys:kuuta||kuu,loka:kuuta||kuu,marras:kuuta||kuu,joulu:kuuta||kuu",weekdays:"su:nnuntai||nnuntaina,ma:anantai||anantaina,ti:istai||istaina,ke:skiviikko||skiviikkona,to:rstai||rstaina,pe:rjantai||rjantaina,la:uantai||uantaina",numerals:"nolla,yksi|ensimmäinen,kaksi|toinen,kolm:e|as,neljä:|s,vii:si|des,kuu:si|des,seitsemä:n|s,kahdeksa:n|s,yhdeksä:n|s,kymmene:n|s",short:"{d}.{M}.{yyyy}",medium:"{d}. {month} {yyyy}",long:"{d}. {month} {yyyy} klo {time}",full:"{weekday} {d}. {month} {yyyy} klo {time}",stamp:"{dow} {d} {mon} {yyyy} {time}",time:"{H}.{mm}",timeMarkers:"klo,kello",ordinalSuffix:".",relative:function(t,e,i,n){function s(i){return t+" "+a[8*i+e]}function r(){return s(1===t?0:1)}var a=this.units;switch(n){case"duration":return r();case"past":return r()+" sitten";case"future":return s(2)+" kuluttua"}},modifiers:[{name:"day",src:"toissa päivänä",value:-2},{name:"day",src:"eilen|eilistä",value:-1},{name:"day",src:"tänään",value:0},{name:"day",src:"huomenna|huomista",value:1},{name:"day",src:"ylihuomenna|ylihuomista",value:2},{name:"sign",src:"sitten|aiemmin",value:-1},{name:"sign",src:"päästä|kuluttua|myöhemmin",value:1},{name:"edge",src:"lopussa",value:2},{name:"edge",src:"ensimmäinen|ensimmäisenä",value:-2},{name:"shift",src:"edel:linen|lisenä",value:-1},{name:"shift",src:"viime",value:-1},{name:"shift",src:"tä:llä|ssä|nä|mä",value:0},{name:"shift",src:"seuraava|seuraavana|tuleva|tulevana|ensi",value:1}],parse:["{months} {year?}","{shift} {unit:5-7}"],timeParse:["{shift?} {day|weekday}","{weekday?},? {date}\\.? {months?}\\.? {year?}"],timeFrontParse:["{shift?} {day|weekday}","{num?} {unit} {sign}","{weekday?},? {date}\\.? {months?}\\.? {year?}"]})},function(t,e,i){"use strict";var n=i(33);n("fr",{plural:!0,units:"milliseconde:|s,seconde:|s,minute:|s,heure:|s,jour:|s,semaine:|s,mois,an:|s|née|nee",months:"janv:ier|,févr:ier|+fevr:ier|,mars,avr:il|,mai,juin,juil:let|,août,sept:embre|,oct:obre|,nov:embre|,déc:embre|+dec:embre|",weekdays:"dim:anche|,lun:di|,mar:di|,mer:credi|,jeu:di|,ven:dredi|,sam:edi|",numerals:"zéro,un:|e,deux,trois,quatre,cinq,six,sept,huit,neuf,di