From 2742716de4d20e6f2651ae66763745c832e80c63 Mon Sep 17 00:00:00 2001 From: Max Guglielmi Date: Thu, 26 Jan 2017 20:14:34 +1100 Subject: [PATCH] Prepared dist --- README.md | 4 ++-- dist/starter.html | 4 ++-- dist/tablefilter/style/colsVisibility.css | 4 ++-- dist/tablefilter/style/filtersVisibility.css | 4 ++-- dist/tablefilter/style/tablefilter.css | 4 ++-- dist/tablefilter/style/themes/default/default.css | 4 ++-- dist/tablefilter/style/themes/mytheme/mytheme.css | 4 ++-- dist/tablefilter/style/themes/skyblue/skyblue.css | 4 ++-- dist/tablefilter/style/themes/transparent/transparent.css | 4 ++-- dist/tablefilter/tablefilter.js | 6 +++--- dist/tablefilter/tablefilter.js.map | 2 +- dist/tablefilter/tf-1-e02724480dc5dcee4468.js | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index b1455c3d..e41c177c 100644 --- a/README.md +++ b/README.md @@ -34,11 +34,11 @@ git clone https://github.com/koalyptus/TableFilter.git * Alternatively, install TableFilter files in your npm enabled project using: ```shell -npm install tablefilter --save +npm install tablefilter --save-dev ``` * or get the future features from the ``next`` release channel: ```shell -npm install tablefilter@next --save +npm install tablefilter@next --save-dev ``` * If you don't use `npm`, you can also [access these files on unpkg](https://unpkg.com/tablefilter/), download them diff --git a/dist/starter.html b/dist/starter.html index af2f92e8..87f775b7 100644 --- a/dist/starter.html +++ b/dist/starter.html @@ -1,10 +1,10 @@ - tablefilter v0.4.37 - Starter + tablefilter v0.4.38 - Starter -

tablefilter v0.4.37

+

tablefilter v0.4.38

diff --git a/dist/tablefilter/style/colsVisibility.css b/dist/tablefilter/style/colsVisibility.css index 23ae5f76..4dcbee75 100644 --- a/dist/tablefilter/style/colsVisibility.css +++ b/dist/tablefilter/style/colsVisibility.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.4.37 by Max Guglielmi - * build date: 2017-01-23T02:49:38.434Z + * tablefilter v0.4.38 by Max Guglielmi + * build date: 2017-01-26T09:00:02.914Z * MIT License */ span.colVisSpan{text-align:left;}span.colVisSpan a.colVis{display:inline-block;padding:7px 5px 0;font-size:inherit;font-weight:inherit;vertical-align:top}div.colVisCont{position:relative;background:#fff;-webkit-box-shadow:3px 3px 2px #888;-moz-box-shadow:3px 3px 2px #888;box-shadow:3px 3px 2px #888;position:absolute;display:none;border:1px solid #ccc;height:auto;width:250px;background-color:#fff;margin:35px 0 0 -100px;z-index:10000;padding:10px 10px 10px 10px;text-align:left;font-size:12px;}div.colVisCont:after,div.colVisCont:before{bottom:100%;left:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}div.colVisCont:after{border-color:rgba(255,255,255,0);border-bottom-color:#fff;border-width:10px;margin-left:-10px}div.colVisCont:before{border-color:rgba(255,255,255,0);border-bottom-color:#ccc;border-width:12px;margin-left:-12px}div.colVisCont p{margin:6px auto 6px auto}div.colVisCont a.colVis{display:initial;font-weight:inherit}ul.cols_checklist{padding:0;margin:0;list-style:none;}ul.cols_checklist label{display:block}ul.cols_checklist input{vertical-align:middle;margin:2px 5px 2px 1px}li.cols_checklist_item{padding:4px;margin:0;}li.cols_checklist_item:hover{background-color:#335ea8;color:#fff}.cols_checklist_slc_item{background-color:#335ea8;color:#fff} \ No newline at end of file diff --git a/dist/tablefilter/style/filtersVisibility.css b/dist/tablefilter/style/filtersVisibility.css index f52895e3..7dcae18d 100644 --- a/dist/tablefilter/style/filtersVisibility.css +++ b/dist/tablefilter/style/filtersVisibility.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.4.37 by Max Guglielmi - * build date: 2017-01-23T02:49:38.434Z + * tablefilter v0.4.38 by Max Guglielmi + * build date: 2017-01-26T09:00:02.914Z * MIT License */ span.expClpFlt a.btnExpClpFlt{width:35px;height:35px;display:inline-block;}span.expClpFlt a.btnExpClpFlt:hover{background-color:#f4f4f4}span.expClpFlt img{padding:8px 11px 11px 11px} \ No newline at end of file diff --git a/dist/tablefilter/style/tablefilter.css b/dist/tablefilter/style/tablefilter.css index de9ac94f..b1f12e6a 100644 --- a/dist/tablefilter/style/tablefilter.css +++ b/dist/tablefilter/style/tablefilter.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.4.37 by Max Guglielmi - * build date: 2017-01-23T02:49:38.434Z + * tablefilter v0.4.38 by Max Guglielmi + * build date: 2017-01-26T09:00:02.914Z * MIT License */ .activeHeader{background-color:#66afe9 !important;color:#fff !important} diff --git a/dist/tablefilter/style/themes/default/default.css b/dist/tablefilter/style/themes/default/default.css index 3296c28b..d2f0bd1e 100644 --- a/dist/tablefilter/style/themes/default/default.css +++ b/dist/tablefilter/style/themes/default/default.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.4.37 by Max Guglielmi - * build date: 2017-01-23T02:49:38.434Z + * tablefilter v0.4.38 by Max Guglielmi + * build date: 2017-01-26T09:00:02.914Z * MIT License */ table.TF{border-left:1px solid #ccc;border-top:none;border-right:none;border-bottom:none;}table.TF th{background:#ebecee url("images/bg_th.jpg") left top repeat-x;border-bottom:1px solid #d0d0d0;border-right:1px solid #d0d0d0;border-left:1px solid #fff;border-top:1px solid #fff;color:#333}table.TF td{border-bottom:1px dotted #999;padding:5px}.fltrow{background-color:#ebecee !important;}.fltrow th,.fltrow td{border-bottom:1px dotted #666 !important;padding:1px 3px 1px 3px !important}.flt,select.flt,select.flt_multi,.flt_s,.single_flt,.div_checklist{border:1px solid #999 !important}input.flt{width:99% !important}.inf{height:$min-height;background:#d7d7d7 url("images/bg_infDiv.jpg") 0 0 repeat-x !important}input.reset{background:transparent url("images/btn_eraser.gif") center center no-repeat !important}.helpBtn:hover{background-color:transparent}.nextPage{background:transparent url("images/btn_next_page.gif") center center no-repeat !important;}.nextPage:hover{background:transparent url("images/btn_over_next_page.gif") center center no-repeat !important}.previousPage{background:transparent url("images/btn_previous_page.gif") center center no-repeat !important;}.previousPage:hover{background:transparent url("images/btn_over_previous_page.gif") center center no-repeat !important}.firstPage{background:transparent url("images/btn_first_page.gif") center center no-repeat !important;}.firstPage:hover{background:transparent url("images/btn_over_first_page.gif") center center no-repeat !important}.lastPage{background:transparent url("images/btn_last_page.gif") center center no-repeat !important;}.lastPage:hover{background:transparent url("images/btn_over_last_page.gif") center center no-repeat !important}div.grd_Cont{background-color:#ebecee !important;border:1px solid #ccc !important;padding:0 !important;}div.grd_Cont .even{background-color:#fff}div.grd_Cont .odd{background-color:#d5d5d5}div.grd_headTblCont{background-color:#ebecee !important;border-bottom:none !important;}div.grd_headTblCont table{border-right:none !important}div.grd_tblCont table th,div.grd_headTblCont table th,div.grd_headTblCont table td{background:#ebecee url("images/bg_th.jpg") left top repeat-x !important;border-bottom:1px solid #d0d0d0 !important;border-right:1px solid #d0d0d0 !important;border-left:1px solid #fff !important;border-top:1px solid #fff !important}div.grd_tblCont table td{border-bottom:1px solid #999 !important}.grd_inf{background:#d7d7d7 url("images/bg_infDiv.jpg") 0 0 repeat-x !important;border-top:1px solid #d0d0d0 !important}.loader{border:1px solid #999}.defaultLoader{width:32px;height:32px;background:transparent url("images/img_loading.gif") 0 0 no-repeat !important}.even{background-color:#fff}.odd{background-color:#d5d5d5}span.expClpFlt a.btnExpClpFlt:hover{background-color:transparent !important}.activeHeader{background:#999 !important} \ No newline at end of file diff --git a/dist/tablefilter/style/themes/mytheme/mytheme.css b/dist/tablefilter/style/themes/mytheme/mytheme.css index fa53d790..697606c7 100644 --- a/dist/tablefilter/style/themes/mytheme/mytheme.css +++ b/dist/tablefilter/style/themes/mytheme/mytheme.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.4.37 by Max Guglielmi - * build date: 2017-01-23T02:49:38.434Z + * tablefilter v0.4.38 by Max Guglielmi + * build date: 2017-01-26T09:00:02.914Z * MIT License */ table.TF{border-left:1px dotted #81963b;border-top:none;border-right:0;border-bottom:none;}table.TF th{background:#39424b url("images/bg_headers.jpg") left top repeat-x;border-bottom:0;border-right:1px dotted #d0d0d0;border-left:0;border-top:0;color:#fff}table.TF td{border-bottom:1px dotted #81963b;border-right:1px dotted #81963b;padding:5px}.fltrow{background-color:#81963b !important;}.fltrow th,.fltrow td{border-bottom:1px dotted #39424b !important;border-right:1px dotted #fff !important;border-left:0 !important;border-top:0 !important;padding:1px 3px 1px 3px !important}.flt,select.flt,select.flt_multi,.flt_s,.single_flt,.div_checklist{border:1px solid #687830 !important}input.flt{width:99% !important}.inf{background:#d8d8d8;height:$min-height}input.reset{width:53px;background:transparent url("images/btn_filter.png") center center no-repeat !important}.helpBtn:hover{background-color:transparent}.nextPage{background:transparent url("images/btn_next_page.gif") center center no-repeat !important}.previousPage{background:transparent url("images/btn_previous_page.gif") center center no-repeat !important}.firstPage{background:transparent url("images/btn_first_page.gif") center center no-repeat !important}.lastPage{background:transparent url("images/btn_last_page.gif") center center no-repeat !important}div.grd_Cont{background:#81963b url("images/bg_headers.jpg") left top repeat-x !important;border:1px solid #ccc !important;padding:0 1px 1px 1px !important;}div.grd_Cont .even{background-color:#bccd83}div.grd_Cont .odd{background-color:#fff}div.grd_headTblCont{background-color:#ebecee !important;border-bottom:none !important}div.grd_tblCont table{border-right:none !important;}div.grd_tblCont table td{border-bottom:1px dotted #81963b;border-right:1px dotted #81963b}div.grd_tblCont table th,div.grd_headTblCont table th{background:transparent url("images/bg_headers.jpg") 0 0 repeat-x !important;border-bottom:0 !important;border-right:1px dotted #d0d0d0 !important;border-left:0 !important;border-top:0 !important;padding:0 4px 0 4px !important;color:#fff !important;height:35px !important}div.grd_headTblCont table td{border-bottom:1px dotted #39424b !important;border-right:1px dotted #fff !important;border-left:0 !important;border-top:0 !important;background-color:#81963b !important;padding:1px 3px 1px 3px !important}.grd_inf{background-color:#d8d8d8;border-top:1px solid #d0d0d0 !important}.loader{border:0 !important;background:#81963b !important}.defaultLoader{width:32px;height:32px;background:transparent url("images/img_loading.gif") 0 0 no-repeat !important}.even{background-color:#bccd83}.odd{background-color:#fff}span.expClpFlt a.btnExpClpFlt:hover{background-color:transparent !important}.activeHeader{background:#81963b !important} \ No newline at end of file diff --git a/dist/tablefilter/style/themes/skyblue/skyblue.css b/dist/tablefilter/style/themes/skyblue/skyblue.css index dde4d134..ef233a5b 100644 --- a/dist/tablefilter/style/themes/skyblue/skyblue.css +++ b/dist/tablefilter/style/themes/skyblue/skyblue.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.4.37 by Max Guglielmi - * build date: 2017-01-23T02:49:38.434Z + * tablefilter v0.4.38 by Max Guglielmi + * build date: 2017-01-26T09:00:02.914Z * MIT License */ table.TF{padding:0;color:#000;border-right:1px solid #a4bed4;border-top:1px solid #a4bed4;border-left:1px solid #a4bed4;border-bottom:0;}table.TF th{margin:0;color:inherit;background:#d1e5fe url("images/bg_skyblue.gif") 0 0 repeat-x;border-color:#fdfdfd #a4bed4 #a4bed4 #fdfdfd;border-width:1px;border-style:solid}table.TF td{margin:0;padding:5px;color:inherit;border-bottom:1px solid #a4bed4;border-left:0;border-top:0;border-right:0}.fltrow{background-color:#d1e5fe !important;}.fltrow th,.fltrow td{padding:1px 3px 1px 3px !important}.flt,select.flt,select.flt_multi,.flt_s,.single_flt,.div_checklist{border:1px solid #a4bed4 !important}input.flt{width:99% !important}.inf{background-color:#e3efff !important;border:1px solid #a4bed4;height:$min-height;color:#004a6f}div.tot,div.status{border-right:0 !important}.helpBtn:hover{background-color:transparent}input.reset{background:transparent url("images/icn_clear_filters.png") center center no-repeat !important}.nextPage{background:transparent url("images/btn_next_page.gif") center center no-repeat !important;border:1px solid transparent !important;}.nextPage:hover{background:#ffe4ab url("images/btn_next_page.gif") center center no-repeat !important;border:1px solid #ffb552 !important}.previousPage{background:transparent url("images/btn_prev_page.gif") center center no-repeat !important;border:1px solid transparent !important;}.previousPage:hover{background:#ffe4ab url("images/btn_prev_page.gif") center center no-repeat !important;border:1px solid #ffb552 !important}.firstPage{background:transparent url("images/btn_first_page.gif") center center no-repeat !important;border:1px solid transparent !important;}.firstPage:hover{background:#ffe4ab url("images/btn_first_page.gif") center center no-repeat !important;border:1px solid #ffb552 !important}.lastPage{background:transparent url("images/btn_last_page.gif") center center no-repeat !important;border:1px solid transparent !important;}.lastPage:hover{background:#ffe4ab url("images/btn_last_page.gif") center center no-repeat !important;border:1px solid #ffb552 !important}.activeHeader{background:#ffe4ab !important;border:1px solid #ffb552 !important;color:inherit !important}div.grd_Cont{background-color:#d9eaed !important;border:1px solid #9cc !important;padding:0 !important;}div.grd_Cont .even{background-color:#fff}div.grd_Cont .odd{background-color:#e3efff}div.grd_headTblCont{background-color:#d9eaed !important;border-bottom:none !important}div.grd_tblCont table{border-right:none !important}div.grd_tblCont table th,div.grd_headTblCont table th,div.grd_headTblCont table td{background:#d9eaed url("images/bg_skyblue.gif") left top repeat-x;border-bottom:1px solid #a4bed4;border-right:1px solid #a4bed4 !important;border-left:1px solid #fff !important;border-top:1px solid #fff !important}div.grd_tblCont table td{border-bottom:1px solid #a4bed4 !important;border-right:0 !important;border-left:0 !important;border-top:0 !important}.grd_inf{background-color:#cce2fe;color:#004a6f;border-top:1px solid #9cc !important;}.grd_inf a{text-decoration:none;font-weight:bold}.loader{background-color:#2d8eef;border:1px solid #cce2fe;border-radius:5px}.even{background-color:#fff}.odd{background-color:#e3efff}span.expClpFlt a.btnExpClpFlt:hover{background-color:transparent !important}.ezActiveRow{background-color:#ffdc61 !important;color:inherit}.ezSelectedRow{background-color:#ffe4ab !important;color:inherit}.ezActiveCell{background-color:#fff !important;color:#000 !important;font-weight:bold}.ezETSelectedCell{background-color:#fff !important;font-weight:bold;color:#000 !important} \ No newline at end of file diff --git a/dist/tablefilter/style/themes/transparent/transparent.css b/dist/tablefilter/style/themes/transparent/transparent.css index 55681806..6244a0be 100644 --- a/dist/tablefilter/style/themes/transparent/transparent.css +++ b/dist/tablefilter/style/themes/transparent/transparent.css @@ -1,6 +1,6 @@ /** - * tablefilter v0.4.37 by Max Guglielmi - * build date: 2017-01-23T02:49:38.434Z + * tablefilter v0.4.38 by Max Guglielmi + * build date: 2017-01-26T09:00:02.914Z * MIT License */ table.TF{padding:0;color:inherit;border-right:1px solid transparent;border-top:1px solid transparent;border-left:1px solid transparent;border-bottom:0;}table.TF th{margin:0;color:inherit;background-color:transparent;border-color:transparent;border-width:1px;border-style:solid;}table.TF th:last-child{border-right:1px solid transparent}table.TF td{margin:0;padding:5px;color:inherit;border-bottom:1px solid transparent;border-left:0;border-top:0;border-right:0}.fltrow{background-color:transparent;}.fltrow th,.fltrow td{padding:1px 3px 1px 3px;border-bottom:1px solid transparent !important;}.fltrow th:last-child,.fltrow td:last-child{border-right:1px solid transparent}.flt,select.flt,select.flt_multi,.flt_s,.single_flt,.div_checklist{border:1px solid #a4bed4}input.flt{width:99% !important}.inf{background-color:transparent;border:1px solid transparent;height:$min-height;color:inherit}div.tot,div.status{border-right:0 !important}.helpBtn:hover{background-color:transparent}input.reset{background:transparent url("images/icn_clear_filters.png") center center no-repeat !important}.nextPage{background:transparent url("images/btn_next_page.gif") center center no-repeat !important;border:1px solid transparent !important;}.nextPage:hover{background:#f7f7f7 url("images/btn_next_page.gif") center center no-repeat !important;border:1px solid #f7f7f7 !important}.previousPage{background:transparent url("images/btn_prev_page.gif") center center no-repeat !important;border:1px solid transparent !important;}.previousPage:hover{background:#f7f7f7 url("images/btn_prev_page.gif") center center no-repeat !important;border:1px solid #f7f7f7 !important}.firstPage{background:transparent url("images/btn_first_page.gif") center center no-repeat !important;border:1px solid transparent !important;}.firstPage:hover{background:#f7f7f7 url("images/btn_first_page.gif") center center no-repeat !important;border:1px solid #f7f7f7 !important}.lastPage{background:transparent url("images/btn_last_page.gif") center center no-repeat !important;border:1px solid transparent !important;}.lastPage:hover{background:#f7f7f7 url("images/btn_last_page.gif") center center no-repeat !important;border:1px solid #f7f7f7 !important}.activeHeader{background:#f7f7f7 !important;border:1px solid transparent;color:inherit !important}div.grd_Cont{-webkit-box-shadow:0 0 0 0 rgba(50,50,50,0.75);-moz-box-shadow:0 0 0 0 rgba(50,50,50,0.75);box-shadow:0 0 0 0 rgba(50,50,50,0.75);background-color:transparent;border:1px solid transparent;padding:0 !important;}div.grd_Cont .even{background-color:transparent}div.grd_Cont .odd{background-color:#f7f7f7}div.grd_headTblCont{background-color:transparent;border-bottom:none !important}div.grd_tblCont table{border-right:none !important}div.grd_tblCont table th,div.grd_headTblCont table th,div.grd_headTblCont table td{background:transparent;border-bottom:1px solid transparent;border-right:1px solid transparent !important;border-left:1px solid transparent;border-top:1px solid transparent}div.grd_tblCont table td{border-bottom:1px solid transparent;border-right:0 !important;border-left:0 !important;border-top:0 !important}.grd_inf{background-color:transparent;color:inherit;border-top:1px solid transparent;}.grd_inf a{text-decoration:none;font-weight:bold}.loader{background-color:#f7f7f7;border:1px solid #f7f7f7;border-radius:5px;color:#000;text-shadow:none}.even{background-color:transparent}.odd{background-color:#f7f7f7}span.expClpFlt a.btnExpClpFlt:hover{background-color:transparent !important}.ezActiveRow{background-color:#ccc !important;color:inherit}.ezSelectedRow{background-color:#ccc !important;color:inherit}.ezActiveCell{background-color:transparent;color:inherit;font-weight:bold}.ezETSelectedCell{background-color:transparent;font-weight:bold;color:inherit} \ No newline at end of file diff --git a/dist/tablefilter/tablefilter.js b/dist/tablefilter/tablefilter.js index 359ed9dd..6a987ef9 100644 --- a/dist/tablefilter/tablefilter.js +++ b/dist/tablefilter/tablefilter.js @@ -1,10 +1,10 @@ /** - * tablefilter v0.4.37 by Max Guglielmi - * build date: 2017-01-23T02:49:38.416Z + * tablefilter v0.4.38 by Max Guglielmi + * build date: 2017-01-26T09:00:02.893Z * MIT License */ -!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,u=0,l=[];u",this.lwOperator=c.lower_operator||"<",this.leOperator=c.lower_equal_operator||"<=",this.geOperator=c.greater_equal_operator||">=",this.dfOperator=c.different_operator||"!",this.lkOperator=c.like_operator||"*",this.eqOperator=c.equal_operator||"=",this.stOperator=c.start_with_operator||"{",this.enOperator=c.end_with_operator||"}",this.separator=c.separator||",",this.rowsCounter=Boolean(c.rows_counter),this.statusBar=Boolean(c.status_bar),this.loader=Boolean(c.loader),this.displayBtn=Boolean(c.btn),this.btnText=c.btn_text||(this.enableIcons?"":"Go"),this.btnCssClass=c.btn_css_class||(this.enableIcons?"btnflt_icon":"btnflt"),this.btnReset=Boolean(c.btn_reset),this.onBeforeReset=(0,u.isFn)(c.on_before_reset)?c.on_before_reset:u.EMPTY_FN,this.onAfterReset=(0,u.isFn)(c.on_after_reset)?c.on_after_reset:u.EMPTY_FN,this.paging=Boolean(c.paging),this.nbHiddenRows=0,this.autoFilter=Boolean(c.auto_filter),this.autoFilterDelay=isNaN(c.auto_filter_delay)?N.AUTO_FILTER_DELAY:c.auto_filter_delay,this.isUserTyping=null,this.autoFilterTimer=null,this.highlightKeywords=Boolean(c.highlight_keywords),this.noResults=(0,u.isObj)(c.no_results_message)||Boolean(c.no_results_message),this.state=(0,u.isObj)(c.state)||Boolean(c.state),this.locale=c.locale||"en",this.thousandsSeparator=c.thousands_separator||",",this.decimalSeparator=c.decimal_separator||".",this.hasColTypes=(0,u.isArray)(c.col_types),this.colTypes=this.hasColTypes?c.col_types:[],this.prfxTf="TF",this.prfxFlt="flt",this.prfxValButton="btn",this.prfxInfDiv="inf_",this.prfxLDiv="ldiv_",this.prfxRDiv="rdiv_",this.prfxMDiv="mdiv_",this.prfxResponsive="resp",this.extensions=c.extensions,this.hasExtensions=(0,u.isArray)(this.extensions),this.enableDefaultTheme=Boolean(c.enable_default_theme),this.hasThemes=this.enableDefaultTheme||(0,u.isArray)(c.themes),this.themes=c.themes||[],this.themesPath=c.themes_path||this.stylePath+"themes/",this.responsive=Boolean(c.responsive),this.Mod={},this.ExtRegistry={}}return t.prototype.init=function(){var t=this;if(!this.initialized){this.nbCells=this.getCellsNb(this.refRow);var e=this.Mod,i=this.singleSearchFlt?1:this.nbCells,n=void 0;if(this.import(this.stylesheetId,this.stylesheet,null,"link"),this.hasThemes&&this.loadThemes(),e.dateType=e.dateType||new k.DateType(this),e.dateType.init(),e.help=e.help||new _.Help(this),this.help&&e.help.init(),this.state&&(e.state=e.state||new T.State(this),e.state.init()),this.gridLayout&&(e.gridLayout=e.gridLayout||new f.GridLayout(this),e.gridLayout.init()),this.loader&&(e.loader=e.loader||new d.Loader(this),e.loader.init()),this.highlightKeywords&&(e.highlightKeyword=new p.HighlightKeyword(this),e.highlightKeyword.init()),this.popupFilters&&(e.popupFilter=e.popupFilter||new m.PopupFilter(this),e.popupFilter.init()),this.fltGrid){var s=this._insertFiltersRow();this.nbFilterableRows=this.getRowsNb();for(var r=0;r0?e[0].insertRow(this.filtersRowIndex):this.tbl.insertRow(this.filtersRowIndex),t.className=this.fltsRowCssClass,this.isExternalFlt&&(t.style.display=N.NONE),this.emitter.emit("filters-row-inserted",this,t),t}},t.prototype._initNoFilters=function(){this.fltGrid||(this.refRow=this.refRow>0?this.refRow-1:0,this.nbFilterableRows=this.getRowsNb())},t.prototype._buildInputFilter=function(t,e,i){var n=this,s=this.getFilterType(t),o=this.isExternalFlt?this.externalFltTgtIds[t]:null,u=s===N.INPUT?"text":"hidden",l=(0,a.createElm)(N.INPUT,["id",this.buildFilterId(t)],["type",u],["ct",t]);"hidden"!==u&&this.watermark&&l.setAttribute("placeholder",this.isWatermarkArray?this.watermark[t]||"":this.watermark),l.className=e||this.fltCssClass,(0,r.addEvt)(l,"focus",function(t){return n.onInpFocus(t)}),o?(0,a.elm)(o).appendChild(l):i.appendChild(l),this.fltIds.push(l.id),(0,r.addEvt)(l,"keypress",function(t){return n.detectKey(t)}),(0,r.addEvt)(l,"keydown",function(){return n.onKeyDown()}),(0,r.addEvt)(l,"keyup",function(t){return n.onKeyUp(t)}),(0,r.addEvt)(l,"blur",function(){return n.onInpBlur()})},t.prototype._buildSubmitButton=function(t,e){var i=this,n=this.isExternalFlt?this.externalFltTgtIds[t]:null,s=(0,a.createElm)(N.INPUT,["type","button"],["value",this.btnText]);s.className=this.btnCssClass,n?(0,a.elm)(n).appendChild(s):e.appendChild(s),(0,r.addEvt)(s,"click",function(){return i.filter()})},t.prototype.feature=function(t){return this.Mod[t]},t.prototype.initExtensions=function(){var t=this.extensions;i.p=this.basePath,this.emitter.emit("before-loading-extensions",this);for(var e=0,n=t.length;e0&&void 0!==arguments[0]?arguments[0]:"default";return(0,a.elm)(this.prfxTf+t)},t.prototype.destroy=function(){var t=this;if(this.initialized){var e=this.emitter;this.isExternalFlt&&!this.popupFilters&&this.removeExternalFlts(),this.infDiv&&this.removeToolbar(),this.markActiveColumns&&(this.clearActiveColumns(),e.off(["before-filtering"],function(){return t.clearActiveColumns()}),e.off(["cell-processed"],function(e,i){return t.markActiveColumn(i)})),this.hasExtensions&&this.destroyExtensions(),this.validateAllRows(),this.fltGrid&&!this.gridLayout&&this.tbl.deleteRow(this.filtersRowIndex),e.emit("destroy",this),this.hasVisibleRows&&e.off(["after-filtering"],function(){return t.enforceVisibility()}),this.linkedFilters&&e.off(["after-filtering"],function(){return t.linkFilters()}),this.emitter.off(["filter-focus"],function(e,i){return t.setActiveFilterId(i.id)}),(0,a.removeClass)(this.tbl,this.prfxTf),(0,a.removeClass)(this.tbl,this.prfxResponsive),this.nbHiddenRows=0,this.validRowsIndex=[],this.fltIds=[],this.initialized=!1}},t.prototype.setToolbar=function(){if(!this.infDiv){var t=(0,a.createElm)("div");if(t.className=this.infDivCssClass,this.toolBarTgtId)(0,a.elm)(this.toolBarTgtId).appendChild(t);else if(this.gridLayout){var e=this.Mod.gridLayout;e.tblMainCont.appendChild(t),t.className=e.infDivCssClass}else{var i=(0,a.createElm)("caption");i.appendChild(t),this.tbl.insertBefore(i,this.tbl.firstChild)}this.infDiv=t;var n=(0,a.createElm)("div");n.className=this.lDivCssClass,t.appendChild(n),this.lDiv=n;var s=(0,a.createElm)("div");s.className=this.rDivCssClass,t.appendChild(s),this.rDiv=s;var r=(0,a.createElm)("div");r.className=this.mDivCssClass,t.appendChild(r),this.mDiv=r,(0,u.isUndef)(this.help)&&(this.Mod.help.enabled=!0,this.emitter.emit("init-help",this))}},t.prototype.removeToolbar=function(){if(this.infDiv){(0,a.removeElm)(this.infDiv),this.infDiv=null;var t=this.tbl,e=(0,a.tag)(t,"caption");e.length>0&&[].forEach.call(e,function(e){return t.removeChild(e)})}},t.prototype.removeExternalFlts=function(){if(this.isExternalFlt)for(var t=this.externalFltTgtIds,e=t.length,i=0;i1,y=d.toString().split(this.anOperator),v=y.length>1;if((0,u.isArray)(d)||g||v){var b=void 0,x=void 0,w=!1;x=(0,u.isArray)(d)?d:g?m:y;for(var _=0,C=x.length;_=R):z?(R=L(t.replace(c,""),j),b=D>R):U?(R=L(t.replace(h,""),j),b=D.toString()!==R.toString()):V?(R=L(t.replace(d,""),j),b=D.toString()===R.toString()):f.test(t)?b=(0,o.contains)(t.replace(f,""),e,!1,this.caseSensitive):A(t)?(R=L(t,j),b=D.toString()===R.toString()):b=P?(0,o.isEmpty)(e):S?!(0,o.isEmpty)(e):(0,o.contains)(t,e,this.isExactMatch(i),this.caseSensitive)}else{if(this.hasType(i,[N.FORMATTED_NUMBER])){var Y=this.colTypes[i];Y.hasOwnProperty("decimal")&&(s=Y.decimal)}if(n=Number(e)||(0,l.parse)(e,s),w)b=n<=(0,l.parse)(t.replace(r,""),s);else if(C)b=n>=(0,l.parse)(t.replace(a,""),s);else if(x)b=n<(0,l.parse)(t.replace(u,""),s);else if(_)b=n>(0,l.parse)(t.replace(c,""),s);else if(E)b=!(0,o.contains)(t.replace(h,""),e,!1,this.caseSensitive);else if(k)b=(0,o.contains)(t.replace(f,""),e,!1,this.caseSensitive);else if(T)b=(0,o.contains)(t.replace(d,""),e,!0,this.caseSensitive);else if(O)b=0===e.indexOf(t.replace(p,""));else if(F){var K=t.replace(m,"");b=e.lastIndexOf(K,e.length-1)===e.length-1-(K.length-1)&&e.lastIndexOf(K,e.length-1)>-1}else if(P)b=(0,o.isEmpty)(e);else if(S)b=!(0,o.isEmpty)(e);else if(I)try{var G=t.replace(v,""),X=new RegExp(G);b=X.test(e)}catch(t){b=!1}else n&&this.hasType(i,[N.NUMBER,N.FORMATTED_NUMBER])&&!this.singleSearchFlt?(t=(0,l.parse)(t,s)||t,b=n===t||(0,o.contains)(t.toString(),n.toString(),this.isExactMatch(i),this.caseSensitive)):b=(0,o.contains)(t,e,this.isExactMatch(i),this.caseSensitive,this.ignoresDiacritics(i))}return b},t.prototype.getColValues=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],s=this.tbl.rows,r=this.getRowsNb(!0),a=[],o=i?this.getCellData.bind(this):this.getCellValue.bind(this);e&&a.push(this.getHeadersText()[t]);for(var u=this.refRow;u0&&(l=n.indexOf(u)!==-1);var c=s[u].cells,h=c.length;if(h===this.nbCells&&!l)for(var f=0;f0&&void 0!==arguments[0]?arguments[0]:0,e=this.tbl.rows[t>=0?t:0];return e?e.cells.length:0},t.prototype.getRowsNb=function(t){var e=(0,u.isUndef)(this.refRow)?0:this.refRow,i=this.tbl.rows.length;return t&&(e=0),parseInt(i-e,10)},t.prototype.getCellValue=function(t){var e=t.cellIndex;return this.customCellDataCols.indexOf(e)!==-1?this.customCellData(this,t,e):(0,a.getText)(t)},t.prototype.getCellData=function(t){var e=t.cellIndex,i=this.getCellValue(t);if(this.hasType(e,[N.FORMATTED_NUMBER])){var n=this.decimalSeparator,s=this.colTypes[e];return s.hasOwnProperty("decimal")&&(n=s.decimal),(0,l.parse)(i,n)}if(this.hasType(e,[N.NUMBER]))return Number(i);if(this.hasType(e,[N.DATE])){var r=this.Mod.dateType,a=r.getOptions(e).locale||this.locale;return r.parse(i,a)}return i},t.prototype.getTableData=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.tbl.rows,s=this.getRowsNb(!0),r=[],a=i?this.getCellData.bind(this):this.getCellValue.bind(this);if(t){var o=this.getHeadersText(e);r.push([this.getHeadersRowIndex(),o])}for(var u=this.refRow;u0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.validRowsIndex)return[];var n=this.tbl.rows,s=[],r=i?this.getCellData.bind(this):this.getCellValue.bind(this);if(t){var a=this.getHeadersText(e);s.push([this.getHeadersRowIndex(),a])}for(var o=this.getValidRows(!0),u=0;u1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if((0,u.isUndef)(t))return[];var a=this.tbl.rows,o=i?this.getCellData.bind(this):this.getCellValue.bind(this),l=this.getValidRows(!0).filter(function(t){return s.indexOf(t)===-1&&(!r||"none"!==n.getRowDisplay(a[t]))}),c=l.map(function(e){return o(a[e].cells[t])});return e&&c.unshift(this.getHeadersText()[t]),c},t.prototype.getRowDisplay=function(t){return t.style.display},t.prototype.validateRow=function(t,e){var i=this.tbl.rows[t];if(i&&"boolean"==typeof e){this.hasVisibleRows&&this.visibleRows.indexOf(t)!==-1&&(e=!0);var n=e?"":N.NONE,s=e?"true":"false";i.style.display=n,this.paging&&i.setAttribute("validRow",s),e&&(this.validRowsIndex.indexOf(t)===-1&&this.validRowsIndex.push(t),this.onRowValidated(this,t),this.emitter.emit("row-validated",this,t))}},t.prototype.validateAllRows=function(){if(this.initialized){this.validRowsIndex=[];for(var t=this.refRow;t1&&void 0!==arguments[1]?arguments[1]:"";if(this.fltGrid){var i=this.getFilterElement(t),n=this.getFilterType(t);if(n!==N.MULTIPLE&&n!==N.CHECKLIST)this.loadFltOnDemand&&!this.initialized&&this.emitter.emit("build-select-filter",this,t,this.linkedFilters,this.isExternalFlt),i.value=e;else if(n===N.MULTIPLE){var s=(0,u.isArray)(e)?e:e.split(" "+this.orOperator+" ");this.loadFltOnDemand&&!this.initialized&&this.emitter.emit("build-select-filter",this,t,this.linkedFilters,this.isExternalFlt),this.emitter.emit("select-options",this,t,s)}else if(n===N.CHECKLIST){var r=[];this.loadFltOnDemand&&!this.initialized&&this.emitter.emit("build-checklist-filter",this,t,this.linkedFilters),(0,u.isArray)(e)?r=e:(e=(0,o.matchCase)(e,this.caseSensitive),r=e.split(" "+this.orOperator+" ")),this.emitter.emit("select-checklist-options",this,t,r)}}},t.prototype.setColWidths=function(t){if(this.hasColWidths){t=t||this.tbl;for(var e=this.nbCells,i=this.colWidths,n=(0,a.tag)(t,"col"),s=n.length>0,r=s?null:O.createDocumentFragment(),o=0;o0&&void 0!==arguments[0]?arguments[0]:"",e=t.split("_")[0];return e=e.split(this.prfxFlt)[1],parseInt(e,10)},t.prototype.buildFilterId=function(t){return""+this.prfxFlt+t+"_"+this.id},t.prototype.activateFilter=function(t){(0,u.isUndef)(t)||this.setActiveFilterId(this.getFilterId(t))},t.prototype.linkFilters=function(){if(this.linkedFilters&&this.activeFilterId){var t=this.getFiltersByType(N.SELECT,!0),e=this.getFiltersByType(N.MULTIPLE,!0),i=this.getFiltersByType(N.CHECKLIST,!0),n=t.concat(e);n=n.concat(i);for(var s=this.getColumnIndexFromFilterId(this.activeFilterId),r=0,o=n.length;r1&&void 0!==arguments[1]?arguments[1]:"script",i=!1,n="script"===e?"src":"href",s=(0,a.tag)(O,e),r=0,o=s.length;r3&&void 0!==arguments[3]?arguments[3]:"script";if(!this.isImported(e,s)){var r=this,o=!1,u=void 0,l=(0,a.tag)(O,"head")[0];u="link"===s.toLowerCase()?(0,a.createElm)("link",["id",t],["type","text/css"],["rel","stylesheet"],["href",e]):(0,a.createElm)("script",["id",t],["type","text/javascript"],["src",e]),u.onload=u.onreadystatechange=function(){o||n.readyState&&"loaded"!==n.readyState&&"complete"!==n.readyState||(o=!0,"function"==typeof i&&i.call(null,r))},u.onerror=function(){throw new Error("TableFilter could not load: "+e)},l.appendChild(u)}},t.prototype.isInitialized=function(){return this.initialized},t.prototype.getFiltersId=function(){return this.fltIds||[]},t.prototype.getValidRows=function(t){if(!t)return this.validRowsIndex;var e=this.getRowsNb(!0);this.validRowsIndex=[];for(var i=this.refRow;i",this.lwOperator=c.lower_operator||"<",this.leOperator=c.lower_equal_operator||"<=",this.geOperator=c.greater_equal_operator||">=",this.dfOperator=c.different_operator||"!",this.lkOperator=c.like_operator||"*",this.eqOperator=c.equal_operator||"=",this.stOperator=c.start_with_operator||"{",this.enOperator=c.end_with_operator||"}",this.separator=c.separator||",",this.rowsCounter=Boolean(c.rows_counter),this.statusBar=Boolean(c.status_bar),this.loader=Boolean(c.loader),this.displayBtn=Boolean(c.btn),this.btnText=c.btn_text||(this.enableIcons?"":"Go"),this.btnCssClass=c.btn_css_class||(this.enableIcons?"btnflt_icon":"btnflt"),this.btnReset=Boolean(c.btn_reset),this.onBeforeReset=(0,u.isFn)(c.on_before_reset)?c.on_before_reset:u.EMPTY_FN,this.onAfterReset=(0,u.isFn)(c.on_after_reset)?c.on_after_reset:u.EMPTY_FN,this.paging=Boolean(c.paging),this.nbHiddenRows=0,this.autoFilter=Boolean(c.auto_filter),this.autoFilterDelay=isNaN(c.auto_filter_delay)?N.AUTO_FILTER_DELAY:c.auto_filter_delay,this.isUserTyping=null,this.autoFilterTimer=null,this.highlightKeywords=Boolean(c.highlight_keywords),this.noResults=(0,u.isObj)(c.no_results_message)||Boolean(c.no_results_message),this.state=(0,u.isObj)(c.state)||Boolean(c.state),this.locale=c.locale||"en",this.thousandsSeparator=c.thousands_separator||",",this.decimalSeparator=c.decimal_separator||".",this.hasColTypes=(0,u.isArray)(c.col_types),this.colTypes=this.hasColTypes?c.col_types:[],this.prfxTf="TF",this.prfxFlt="flt",this.prfxValButton="btn",this.prfxInfDiv="inf_",this.prfxLDiv="ldiv_",this.prfxRDiv="rdiv_",this.prfxMDiv="mdiv_",this.prfxResponsive="resp",this.extensions=c.extensions,this.hasExtensions=(0,u.isArray)(this.extensions),this.enableDefaultTheme=Boolean(c.enable_default_theme),this.hasThemes=this.enableDefaultTheme||(0,u.isArray)(c.themes),this.themes=c.themes||[],this.themesPath=c.themes_path||this.stylePath+"themes/",this.responsive=Boolean(c.responsive),this.Mod={},this.ExtRegistry={}}return t.prototype.init=function(){var t=this;if(!this.initialized){this.nbCells=this.getCellsNb(this.refRow);var e=this.Mod,i=this.singleSearchFlt?1:this.nbCells,n=void 0;if(this.import(this.stylesheetId,this.stylesheet,null,"link"),this.hasThemes&&this.loadThemes(),e.dateType=e.dateType||new k.DateType(this),e.dateType.init(),e.help=e.help||new _.Help(this),this.help&&e.help.init(),this.state&&(e.state=e.state||new T.State(this),e.state.init()),this.gridLayout&&(e.gridLayout=e.gridLayout||new f.GridLayout(this),e.gridLayout.init()),this.loader&&(e.loader=e.loader||new d.Loader(this),e.loader.init()),this.highlightKeywords&&(e.highlightKeyword=new p.HighlightKeyword(this),e.highlightKeyword.init()),this.popupFilters&&(e.popupFilter=e.popupFilter||new m.PopupFilter(this),e.popupFilter.init()),this.fltGrid){var s=this._insertFiltersRow();this.nbFilterableRows=this.getRowsNb();for(var r=0;r0?e[0].insertRow(this.filtersRowIndex):this.tbl.insertRow(this.filtersRowIndex),t.className=this.fltsRowCssClass,this.isExternalFlt&&(t.style.display=N.NONE),this.emitter.emit("filters-row-inserted",this,t),t}},t.prototype._initNoFilters=function(){this.fltGrid||(this.refRow=this.refRow>0?this.refRow-1:0,this.nbFilterableRows=this.getRowsNb())},t.prototype._buildInputFilter=function(t,e,i){var n=this,s=this.getFilterType(t),o=this.isExternalFlt?this.externalFltTgtIds[t]:null,u=s===N.INPUT?"text":"hidden",l=(0,a.createElm)(N.INPUT,["id",this.buildFilterId(t)],["type",u],["ct",t]);"hidden"!==u&&this.watermark&&l.setAttribute("placeholder",this.isWatermarkArray?this.watermark[t]||"":this.watermark),l.className=e||this.fltCssClass,(0,r.addEvt)(l,"focus",function(t){return n.onInpFocus(t)}),o?(0,a.elm)(o).appendChild(l):i.appendChild(l),this.fltIds.push(l.id),(0,r.addEvt)(l,"keypress",function(t){return n.detectKey(t)}),(0,r.addEvt)(l,"keydown",function(){return n.onKeyDown()}),(0,r.addEvt)(l,"keyup",function(t){return n.onKeyUp(t)}),(0,r.addEvt)(l,"blur",function(){return n.onInpBlur()})},t.prototype._buildSubmitButton=function(t,e){var i=this,n=this.isExternalFlt?this.externalFltTgtIds[t]:null,s=(0,a.createElm)(N.INPUT,["type","button"],["value",this.btnText]);s.className=this.btnCssClass,n?(0,a.elm)(n).appendChild(s):e.appendChild(s),(0,r.addEvt)(s,"click",function(){return i.filter()})},t.prototype.feature=function(t){return this.Mod[t]},t.prototype.initExtensions=function(){var t=this.extensions;i.p=this.basePath,this.emitter.emit("before-loading-extensions",this);for(var e=0,n=t.length;e0&&void 0!==arguments[0]?arguments[0]:"default";return(0,a.elm)(this.prfxTf+t)},t.prototype.destroy=function(){var t=this;if(this.initialized){var e=this.emitter;this.isExternalFlt&&!this.popupFilters&&this.removeExternalFlts(),this.infDiv&&this.removeToolbar(),this.markActiveColumns&&(this.clearActiveColumns(),e.off(["before-filtering"],function(){return t.clearActiveColumns()}),e.off(["cell-processed"],function(e,i){return t.markActiveColumn(i)})),this.hasExtensions&&this.destroyExtensions(),this.validateAllRows(),this.fltGrid&&!this.gridLayout&&this.tbl.deleteRow(this.filtersRowIndex),e.emit("destroy",this),this.hasVisibleRows&&e.off(["after-filtering"],function(){return t.enforceVisibility()}),this.linkedFilters&&e.off(["after-filtering"],function(){return t.linkFilters()}),this.emitter.off(["filter-focus"],function(e,i){return t.setActiveFilterId(i.id)}),(0,a.removeClass)(this.tbl,this.prfxTf),(0,a.removeClass)(this.tbl,this.prfxResponsive),this.nbHiddenRows=0,this.validRowsIndex=[],this.fltIds=[],this.initialized=!1}},t.prototype.setToolbar=function(){if(!this.infDiv){var t=(0,a.createElm)("div");if(t.className=this.infDivCssClass,this.toolBarTgtId)(0,a.elm)(this.toolBarTgtId).appendChild(t);else if(this.gridLayout){var e=this.Mod.gridLayout;e.tblMainCont.appendChild(t),t.className=e.infDivCssClass}else{var i=(0,a.createElm)("caption");i.appendChild(t),this.tbl.insertBefore(i,this.tbl.firstChild)}this.infDiv=t;var n=(0,a.createElm)("div");n.className=this.lDivCssClass,t.appendChild(n),this.lDiv=n;var s=(0,a.createElm)("div");s.className=this.rDivCssClass,t.appendChild(s),this.rDiv=s;var r=(0,a.createElm)("div");r.className=this.mDivCssClass,t.appendChild(r),this.mDiv=r,(0,u.isUndef)(this.help)&&(this.Mod.help.enabled=!0,this.emitter.emit("init-help",this))}},t.prototype.removeToolbar=function(){if(this.infDiv){(0,a.removeElm)(this.infDiv),this.infDiv=null;var t=this.tbl,e=(0,a.tag)(t,"caption");e.length>0&&[].forEach.call(e,function(e){return t.removeChild(e)})}},t.prototype.removeExternalFlts=function(){if(this.isExternalFlt)for(var t=this.externalFltTgtIds,e=t.length,i=0;i1,y=d.toString().split(this.anOperator),v=y.length>1;if((0,u.isArray)(d)||g||v){var b=void 0,x=void 0,w=!1;x=(0,u.isArray)(d)?d:g?m:y;for(var _=0,C=x.length;_=R):z?(R=L(t.replace(c,""),j),b=D>R):U?(R=L(t.replace(h,""),j),b=D.toString()!==R.toString()):V?(R=L(t.replace(d,""),j),b=D.toString()===R.toString()):f.test(t)?b=(0,o.contains)(t.replace(f,""),e,!1,this.caseSensitive):A(t)?(R=L(t,j),b=D.toString()===R.toString()):b=P?(0,o.isEmpty)(e):S?!(0,o.isEmpty)(e):(0,o.contains)(t,e,this.isExactMatch(i),this.caseSensitive)}else{if(this.hasType(i,[N.FORMATTED_NUMBER])){var Y=this.colTypes[i];Y.hasOwnProperty("decimal")&&(s=Y.decimal)}if(n=Number(e)||(0,l.parse)(e,s),w)b=n<=(0,l.parse)(t.replace(r,""),s);else if(C)b=n>=(0,l.parse)(t.replace(a,""),s);else if(x)b=n<(0,l.parse)(t.replace(u,""),s);else if(_)b=n>(0,l.parse)(t.replace(c,""),s);else if(E)b=!(0,o.contains)(t.replace(h,""),e,!1,this.caseSensitive);else if(k)b=(0,o.contains)(t.replace(f,""),e,!1,this.caseSensitive);else if(T)b=(0,o.contains)(t.replace(d,""),e,!0,this.caseSensitive);else if(O)b=0===e.indexOf(t.replace(p,""));else if(F){var K=t.replace(m,"");b=e.lastIndexOf(K,e.length-1)===e.length-1-(K.length-1)&&e.lastIndexOf(K,e.length-1)>-1}else if(P)b=(0,o.isEmpty)(e);else if(S)b=!(0,o.isEmpty)(e);else if(I)try{var G=t.replace(v,""),X=new RegExp(G);b=X.test(e)}catch(t){b=!1}else n&&this.hasType(i,[N.NUMBER,N.FORMATTED_NUMBER])&&!this.singleSearchFlt?(t=(0,l.parse)(t,s)||t,b=n===t||(0,o.contains)(t.toString(),n.toString(),this.isExactMatch(i),this.caseSensitive)):b=(0,o.contains)(t,e,this.isExactMatch(i),this.caseSensitive,this.ignoresDiacritics(i))}return b},t.prototype.getColValues=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],s=this.tbl.rows,r=this.getRowsNb(!0),a=[],o=i?this.getCellData.bind(this):this.getCellValue.bind(this);e&&a.push(this.getHeadersText()[t]);for(var u=this.refRow;u0&&(l=n.indexOf(u)!==-1);var c=s[u].cells,h=c.length;if(h===this.nbCells&&!l)for(var f=0;f0&&void 0!==arguments[0]?arguments[0]:0,e=this.tbl.rows[t>=0?t:0];return e?e.cells.length:0},t.prototype.getRowsNb=function(t){var e=(0,u.isUndef)(this.refRow)?0:this.refRow,i=this.tbl.rows.length;return t&&(e=0),parseInt(i-e,10)},t.prototype.getCellValue=function(t){var e=t.cellIndex;return this.customCellDataCols.indexOf(e)!==-1?this.customCellData(this,t,e):(0,a.getText)(t)},t.prototype.getCellData=function(t){var e=t.cellIndex,i=this.getCellValue(t);if(this.hasType(e,[N.FORMATTED_NUMBER])){var n=this.decimalSeparator,s=this.colTypes[e];return s.hasOwnProperty("decimal")&&(n=s.decimal),(0,l.parse)(i,n)}if(this.hasType(e,[N.NUMBER]))return Number(i);if(this.hasType(e,[N.DATE])){var r=this.Mod.dateType,a=r.getOptions(e).locale||this.locale;return r.parse(i,a)}return i},t.prototype.getTableData=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.tbl.rows,s=this.getRowsNb(!0),r=[],a=i?this.getCellData.bind(this):this.getCellValue.bind(this);if(t){var o=this.getHeadersText(e);r.push([this.getHeadersRowIndex(),o])}for(var u=this.refRow;u0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.validRowsIndex)return[];var n=this.tbl.rows,s=[],r=i?this.getCellData.bind(this):this.getCellValue.bind(this);if(t){var a=this.getHeadersText(e);s.push([this.getHeadersRowIndex(),a])}for(var o=this.getValidRows(!0),u=0;u1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if((0,u.isUndef)(t))return[];var a=this.tbl.rows,o=i?this.getCellData.bind(this):this.getCellValue.bind(this),l=this.getValidRows(!0).filter(function(t){return s.indexOf(t)===-1&&(!r||"none"!==n.getRowDisplay(a[t]))}),c=l.map(function(e){return o(a[e].cells[t])});return e&&c.unshift(this.getHeadersText()[t]),c},t.prototype.getRowDisplay=function(t){return t.style.display},t.prototype.validateRow=function(t,e){var i=this.tbl.rows[t];if(i&&"boolean"==typeof e){this.hasVisibleRows&&this.visibleRows.indexOf(t)!==-1&&(e=!0);var n=e?"":N.NONE,s=e?"true":"false";i.style.display=n,this.paging&&i.setAttribute("validRow",s),e&&(this.validRowsIndex.indexOf(t)===-1&&this.validRowsIndex.push(t),this.onRowValidated(this,t),this.emitter.emit("row-validated",this,t))}},t.prototype.validateAllRows=function(){if(this.initialized){this.validRowsIndex=[];for(var t=this.refRow;t1&&void 0!==arguments[1]?arguments[1]:"";if(this.fltGrid){var i=this.getFilterElement(t),n=this.getFilterType(t);if(n!==N.MULTIPLE&&n!==N.CHECKLIST)this.loadFltOnDemand&&!this.initialized&&this.emitter.emit("build-select-filter",this,t,this.linkedFilters,this.isExternalFlt),i.value=e;else if(n===N.MULTIPLE){var s=(0,u.isArray)(e)?e:e.split(" "+this.orOperator+" ");this.loadFltOnDemand&&!this.initialized&&this.emitter.emit("build-select-filter",this,t,this.linkedFilters,this.isExternalFlt),this.emitter.emit("select-options",this,t,s)}else if(n===N.CHECKLIST){var r=[];this.loadFltOnDemand&&!this.initialized&&this.emitter.emit("build-checklist-filter",this,t,this.linkedFilters),(0,u.isArray)(e)?r=e:(e=(0,o.matchCase)(e,this.caseSensitive),r=e.split(" "+this.orOperator+" ")),this.emitter.emit("select-checklist-options",this,t,r)}}},t.prototype.setColWidths=function(t){if(this.hasColWidths){t=t||this.tbl;for(var e=this.nbCells,i=this.colWidths,n=(0,a.tag)(t,"col"),s=n.length>0,r=s?null:O.createDocumentFragment(),o=0;o0&&void 0!==arguments[0]?arguments[0]:"",e=t.split("_")[0];return e=e.split(this.prfxFlt)[1],parseInt(e,10)},t.prototype.buildFilterId=function(t){return""+this.prfxFlt+t+"_"+this.id},t.prototype.activateFilter=function(t){(0,u.isUndef)(t)||this.setActiveFilterId(this.getFilterId(t))},t.prototype.linkFilters=function(){if(this.linkedFilters&&this.activeFilterId){var t=this.getFiltersByType(N.SELECT,!0),e=this.getFiltersByType(N.MULTIPLE,!0),i=this.getFiltersByType(N.CHECKLIST,!0),n=t.concat(e);n=n.concat(i);for(var s=this.getColumnIndexFromFilterId(this.activeFilterId),r=0,o=n.length;r1&&void 0!==arguments[1]?arguments[1]:"script",i=!1,n="script"===e?"src":"href",s=(0,a.tag)(O,e),r=0,o=s.length;r3&&void 0!==arguments[3]?arguments[3]:"script";if(!this.isImported(e,s)){var r=this,o=!1,u=void 0,l=(0,a.tag)(O,"head")[0];u="link"===s.toLowerCase()?(0,a.createElm)("link",["id",t],["type","text/css"],["rel","stylesheet"],["href",e]):(0,a.createElm)("script",["id",t],["type","text/javascript"],["src",e]),u.onload=u.onreadystatechange=function(){o||n.readyState&&"loaded"!==n.readyState&&"complete"!==n.readyState||(o=!0,"function"==typeof i&&i.call(null,r))},u.onerror=function(){throw new Error("TableFilter could not load: "+e)},l.appendChild(u)}},t.prototype.isInitialized=function(){return this.initialized},t.prototype.getFiltersId=function(){return this.fltIds||[]},t.prototype.getValidRows=function(t){if(!t)return this.validRowsIndex;var e=this.getRowsNb(!0);this.validRowsIndex=[];for(var i=this.refRow;i1&&void 0!==arguments[1]?arguments[1]:[];if(!this.hasColTypes)return!1;var i=this.colTypes[t];return(0,u.isObj)(i)&&(i=i.type),e.indexOf(i)!==-1},t.prototype.getHeaderElement=function(t){for(var e=this.gridLayout?this.Mod.gridLayout.headTbl:this.tbl,i=(0,a.tag)(e,"thead"),n=this.headersRow,s=void 0,r=0;r0&&void 0!==arguments[0]&&arguments[0],e=[],i=0;i0&&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.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent?t.detachEvent("on"+e,i):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,u=(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;e1&&void 0!==arguments[1]&&arguments[1];return e?t:t.toLowerCase()},e.contains=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=void 0,u=s?"g":"gi";return a&&(t=(0,n.remove)(t),e=(0,n.remove)(e)),o=i?new RegExp("(^\\s*)"+r(t)+"(\\s*$)",u):new RegExp(r(t),u),o.test(e)}},function(t,e){function i(t){return t.replace(/[^\u0000-\u007e]/g,function(t){return s[t]||t})}e.remove=i;for(var n=[{base:" ",chars:" "},{base:"0",chars:"߀"},{base:"A",chars:"ⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",chars:"Ꜳ"},{base:"AE",chars:"ÆǼǢ"},{base:"AO",chars:"Ꜵ"},{base:"AU",chars:"Ꜷ"},{base:"AV",chars:"ꜸꜺ"},{base:"AY",chars:"Ꜽ"},{base:"B",chars:"ⒷBḂḄḆɃƁ"},{base:"C",chars:"ⒸCꜾḈĆCĈĊČÇƇȻ"},{base:"D",chars:"ⒹDḊĎḌḐḒḎĐƊƉᴅꝹ"},{base:"Dh",chars:"Ð"},{base:"DZ",chars:"DZDŽ"},{base:"Dz",chars:"DzDž"},{base:"E",chars:"ɛⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎᴇ"},{base:"F",chars:"ꝼⒻFḞƑꝻ"},{base:"G",chars:"ⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾɢ"},{base:"H",chars:"ⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",chars:"ⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",chars:"ⒿJĴɈȷ"},{base:"K",chars:"ⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",chars:"ⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",chars:"LJ"},{base:"Lj",chars:"Lj"},{base:"M",chars:"ⓂMḾṀṂⱮƜϻ"},{base:"N",chars:"ꞤȠⓃNǸŃÑṄŇṆŅṊṈƝꞐᴎ"},{base:"NJ",chars:"NJ"},{base:"Nj",chars:"Nj"},{base:"O",chars:"ⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OE",chars:"Œ"},{base:"OI",chars:"Ƣ"},{base:"OO",chars:"Ꝏ"},{base:"OU",chars:"Ȣ"},{base:"P",chars:"ⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",chars:"ⓆQꝖꝘɊ"},{base:"R",chars:"ⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",chars:"ⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",chars:"ⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",chars:"Þ"},{base:"TZ",chars:"Ꜩ"},{base:"U",chars:"ⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",chars:"ⓋVṼṾƲꝞɅ"},{base:"VY",chars:"Ꝡ"},{base:"W",chars:"ⓌWẀẂŴẆẄẈⱲ"},{base:"X",chars:"ⓍXẊẌ"},{base:"Y",chars:"ⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",chars:"ⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",chars:"ⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",chars:"ꜳ"},{base:"ae",chars:"æǽǣ"},{base:"ao",chars:"ꜵ"},{base:"au",chars:"ꜷ"},{base:"av",chars:"ꜹꜻ"},{base:"ay",chars:"ꜽ"},{base:"b",chars:"ⓑbḃḅḇƀƃɓƂ"},{base:"c",chars:"cⓒćĉċčçḉƈȼꜿↄ"},{base:"d",chars:"ⓓdḋďḍḑḓḏđƌɖɗƋᏧԁꞪ"},{base:"dh",chars:"ð"},{base:"dz",chars:"dzdž"},{base:"e",chars:"ⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇǝ"},{base:"f",chars:"ⓕfḟƒ"},{base:"ff",chars:"ff"},{base:"fi",chars:"fi"},{base:"fl",chars:"fl"},{base:"ffi",chars:"ffi"},{base:"ffl",chars:"ffl"},{base:"g",chars:"ⓖgǵĝḡğġǧģǥɠꞡꝿᵹ"},{base:"h",chars:"ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",chars:"ƕ"},{base:"i",chars:"ⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",chars:"ⓙjĵǰɉ"},{base:"k",chars:"ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",chars:"ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇɭ"},{base:"lj",chars:"lj"},{base:"m",chars:"ⓜmḿṁṃɱɯ"},{base:"n",chars:"ⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥлԉ"},{base:"nj",chars:"nj"},{base:"o",chars:"ⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿꝋꝍɵɔᴑ"},{base:"oe",chars:"œ"},{base:"oi",chars:"ƣ"},{base:"oo",chars:"ꝏ"},{base:"ou",chars:"ȣ"},{base:"p",chars:"ⓟpṕṗƥᵽꝑꝓꝕρ"},{base:"q",chars:"ⓠqɋꝗꝙ"},{base:"r",chars:"ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",chars:"ⓢsśṥŝṡšṧṣṩșşȿꞩꞅẛʂ"},{base:"ss",chars:"ß"},{base:"t",chars:"ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",chars:"þ"},{base:"tz",chars:"ꜩ"},{base:"u",chars:"ⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",chars:"ⓥvṽṿʋꝟʌ"},{base:"vy",chars:"ꝡ"},{base:"w",chars:"ⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",chars:"ⓧxẋẍ"},{base:"y",chars:"ⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",chars:"ⓩzźẑżžẓẕƶȥɀⱬꝣ"}],s={},r=0;r1&&void 0!==arguments[1]?arguments[1]:".";if((0,n.isNumber)(t))return t;var i=new RegExp("[^0-9-"+e+"]",["g"]),s=parseFloat((""+t).replace(/\((.*)\)/,"-$1").replace(i,"").replace(e,"."));return isNaN(s)?0:s}},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});e.Emitter=function(){function t(){i(this,t),this.events={}}return t.prototype.on=function(t,e){var i=this;t.forEach(function(t){i.events[t]=i.events[t]||[],i.events[t].push(e)})},t.prototype.off=function(t,e){var i=this;t.forEach(function(t){t in i.events&&i.events[t].splice(i.events[t].indexOf(e),1)})},t.prototype.emit=function(t){if(t in this.events)for(var e=0;e0,r.tblMainCont=null,r.tblCont=null,r.headTblCont=null,r.headTbl=null,i.fltGrid=r.enableFilters,r}return r(e,t),e.prototype.init=function(){var t=this,e=this.tf,i=e.tbl;if(!this.initialized){this.setOverrides(),this.setDefaultColWidths();var n=this.initialTableWidth();this.tblMainCont=this.createContainer("div",this.mainContCssClass),this.width&&(this.tblMainCont.style.width=this.width),i.parentNode.insertBefore(this.tblMainCont,i),this.tblCont=this.createContainer("div",this.contCssClass),this.setConfigWidth(this.tblCont),this.height&&(this.tblCont.style.height=this.height),i.parentNode.insertBefore(this.tblCont,i);var s=(0,o.removeElm)(i);this.tblCont.appendChild(s),""===i.style.width&&(i.style.width=((0,l.contains)("%",n)?i.clientWidth:n)+"px");var r=(0,o.removeElm)(this.tblCont);this.tblMainCont.appendChild(r),this.headTblCont=this.createContainer("div",this.headContCssClass),this.setConfigWidth(this.headTblCont),this.headTbl=(0,o.createElm)("table");var a=(0,o.createElm)("tHead"),h=i.rows[this.headRowIndex],f=this.getSortTriggerIds(h),d=this.createFiltersRow();this.setHeadersRow(a),this.headTbl.appendChild(a),0===e.filtersRowIndex?a.insertBefore(d,h):a.appendChild(d),this.headTblCont.appendChild(this.headTbl),this.tblCont.parentNode.insertBefore(this.headTblCont,this.tblCont);var p=(0,o.tag)(i,"thead");p.length>0&&i.removeChild(p[0]),this.headTbl.style.tableLayout="fixed",i.style.tableLayout="fixed",this.headTbl.cellPadding=i.cellPadding,this.headTbl.cellSpacing=i.cellSpacing,e.setColWidths(this.headTbl),i.style.width="",this.headTbl.style.width=i.clientWidth+"px",(0,u.addEvt)(this.tblCont,"scroll",function(e){var i=(0,u.targetEvt)(e),n=i.scrollLeft;t.headTblCont.scrollLeft=n});var m=e.extension("sort");m&&(m.asyncSort=!0,m.triggerIds=f),this.setColumnElements(),e.popupFilters&&(d.style.display=c.NONE),i.clientWidth!==this.headTbl.clientWidth&&(i.style.width=this.headTbl.clientWidth+"px"),this.initialized=!0}},e.prototype.setOverrides=function(){var t=this.tf;t.refRow=0,t.headersRow=0,t.filtersRowIndex=1,t.isExternalFlt=!0},e.prototype.setDefaultColWidths=function(){var t=this.tf;if(!t.hasColWidths){for(var e=0,i=t.getCellsNb();e0;for(var i=t.nbCells-1;i>=0;i--){var n=void 0;this.tblHasColTag?n=e[i]:(n=(0,o.createElm)("col"),t.tbl.insertBefore(n,t.tbl.firstChild)),n.style.width=t.colWidths[i],this.colElms[i]=n}this.tblHasColTag=!0},e.prototype.setHeadersRow=function(t){if(this.noHeaders)t.appendChild((0,o.createElm)("tr"));else for(var e=0;e',r.containerCssClass=a.popup_div_css_class||"popUpFilter",r.adjustToContainer=a.popup_filters_adjust_to_container!==!1,r.onBeforeOpen=(0,o.isFn)(a.on_before_popup_filter_open)?a.on_before_popup_filter_open:o.EMPTY_FN,r.onAfterOpen=(0,o.isFn)(a.on_after_popup_filter_open)?a.on_after_popup_filter_open:o.EMPTY_FN,r.onBeforeClose=(0,o.isFn)(a.on_before_popup_filter_close)?a.on_before_popup_filter_close:o.EMPTY_FN,r.onAfterClose=(0,o.isFn)(a.on_after_popup_filter_close)?a.on_after_popup_filter_close:o.EMPTY_FN,r.fltSpans=[],r.fltIcons=[],r.filtersCache=null,r.fltElms=r.filtersCache||[],r.prfxDiv="popup_",r.activeFilterIdx=-1,r}return r(e,t),e.prototype.onClick=function(t){var e=(0,l.targetEvt)(t).parentNode,i=parseInt(e.getAttribute("ci"),10);if(this.closeAll(i),this.toggle(i),this.adjustToContainer){var n=this.fltElms[i],s=this.tf.getHeaderElement(i),r=.95*s.clientWidth;n.style.width=parseInt(r,10)+"px"}(0,l.cancelEvt)(t),(0,l.stopEvt)(t)},e.prototype.onMouseup=function(t){if(this.activeFilterIdx!==-1){var e=(0,l.targetEvt)(t),i=this.fltElms[this.activeFilterIdx],n=this.fltIcons[this.activeFilterIdx];if(n!==e){for(;e&&e!==i;)e=e.parentNode;e!==i&&this.close(this.activeFilterIdx)}}},e.prototype.init=function(){var t=this;if(!this.initialized){var e=this.tf;e.headersRow<=1&&isNaN(e.config().headers_row_index)&&(e.headersRow=0),e.gridLayout&&(e.headersRow--,this.buildIcons()),this.emitter.on(["before-filtering"],function(){return t.setIconsState()}),this.emitter.on(["after-filtering"],function(){return t.closeAll()}),this.emitter.on(["cell-processed"],function(e,i){return t.changeState(i,!0)}),this.emitter.on(["filters-row-inserted"],function(){return t.buildIcons()}),this.emitter.on(["before-filter-init"],function(e,i){return t.build(i)}),this.initialized=!0}},e.prototype.reset=function(){this.enable(),this.init(),this.buildIcons(),this.buildAll()},e.prototype.buildIcons=function(){var t=this,e=this.tf;e.headersRow++;for(var i=0;i1&&void 0!==arguments[1]&&arguments[1],i=this.tf;t=parseInt(t,10),this.emitter.emit("before-populating-filter",i,t),this.opts=[],this.optsTxt=[];var n=i.fltIds[t],s=(0,o.elm)(n),r=i.tbl.rows,a=i.getRowsNb(!0);this.isCustom=i.isCustomOptions(t);var h=void 0,f=i.getActiveFilterId();e&&f&&(h=i.getColumnIndexFromFilterId(f));var p=null,m=null;e&&i.disableExcludedOptions&&(p=[],m=[]);for(var g=i.refRow;g1&&void 0!==arguments[1]?arguments[1]:[],i=this.tf;if(0!==e.length){var n=i.getFilterElement(t);[].forEach.call(n.options,function(t){""!==e[0]&&""!==t.value||(t.selected=!1),""!==t.value&&(0,u.has)(e,t.value,!0)&&(t.selected=!0)})}},e.prototype.getValues=function(t){var e=this.tf,i=e.getFilterElement(t),n=[];return i.selectedOptions?[].forEach.call(i.selectedOptions,function(t){return n.push(t.value)}):[].forEach.call(i.options,function(t){t.selected&&n.push(t.value)}),n},e.prototype.destroy=function(){var t=this;this.emitter.off(["build-select-filter"],function(e,i,n){return t.build(e,i,n)}),this.emitter.off(["select-options"],function(e,i,n){return t.selectOptions(i,n)}),this.emitter.off(["rows-changed"],function(){return t.refreshAll()}),this.initialized=!1},e}(a.Feature)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.has=void 0;var n=i(5);e.has=function(t,e,i){for(var s=Boolean(i),r=0,a=t.length;rn?1:0},e.numSortAsc=function(t,e){return t-e},e.numSortDesc=function(t,e){return e-t}},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.CheckList=void 0;var a=i(10),o=i(3),u=i(16),l=i(5),c=i(17),h=i(1),f=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,h.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,h.targetEvt)(t);if(this.tf.loadFltOnDemand&&"0"===i.getAttribute("filled")){var n=i.getAttribute("ct"),s=this.containers[n];this.build(n),(0,h.removeEvt)(s,"click",function(t){return e.onCheckListClick(t)})}},e.prototype.refreshAll=function(){var t=this,e=this.tf,i=e.getFiltersByType(d.CHECKLIST,!0);i.forEach(function(i){var n=t.getValues(i);t.build(i,e.linkedFilters),t.selectOptions(i,n)})},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.buildFilterId(t)),s.loadFltOnDemand?((0,h.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,i){return n.build(e,i)}),this.emitter.on(["select-checklist-options"],function(t,e,i){return n.selectOptions(e,i)}),this.emitter.on(["rows-changed"],function(){return n.refreshAll()}),this.initialized=!0},e.prototype.build=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.tf;t=parseInt(t,10),this.emitter.emit("before-populating-filter",i,t),this.opts=[],this.optsTxt=[];var n=this.containers[t],s=(0,o.createElm)("ul",["id",i.fltIds[t]],["colIndex",t]);s.className=this.filterCssClass;var r=i.tbl.rows,a=i.getRowsNb(!0),h=i.caseSensitive;this.isCustom=i.isCustomOptions(t);var f=void 0,d=i.getActiveFilterId();e&&d&&(f=i.getColumnIndexFromFilterId(d));var m=[];e&&i.disableExcludedOptions&&(this.excludedOpts=[]),n.innerHTML="";for(var g=i.refRow;g1&&void 0!==arguments[1]?arguments[1]:[],i=this.tf,n=i.getFilterElement(t);if(i.getFilterType(t)===d.CHECKLIST&&n&&0!==e.length){var s=(0,o.tag)(n,"li").length;n.setAttribute("value",""),n.setAttribute("indexes","");for(var r=0;r0?1:0),r=s+n.pagingLength-1<=e.getValidRowsNb()?s+n.pagingLength-1:e.getValidRowsNb();i=s+this.fromToTextSeparator+r+this.overText+e.getValidRowsNb()}}else i=t&&""!==t?t:e.getFilterableRowsNb()-e.nbHiddenRows;this.label.innerHTML=i,this.onAfterRefreshCounter(e,this.label,i)}},e.prototype.destroy=function(){var t=this;this.initialized&&(!this.targetId&&this.container?(0,o.removeElm)(this.container):(0,o.elm)(this.targetId).innerHTML="",this.label=null,this.container=null,this.emitter.off(["after-filtering","grouped-by-page"],function(){return t.refresh(tf.getValidRowsNb())}),this.emitter.off(["rows-changed"],function(){return t.refresh()}),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.StatusBar=void 0;var a=i(10),o=i(2),u=i(3),l=i(4),c=["after-filtering","after-populating-filter","after-page-change","after-clearing-filters","after-page-length-change","after-reset-page","after-reset-page-length","after-loading-extensions","after-loading-themes"];e.StatusBar=function(t){function e(i){n(this,e);var r=s(this,t.call(this,i,"statusBar")),a=r.config;return r.targetId=a.status_bar_target_id||null,r.container=null,r.msgContainer=null,r.labelContainer=null,r.text=a.status_bar_text||"",r.cssClass=a.status_bar_css_class||"status",r.delay=250,r.onBeforeShowMsg=(0,l.isFn)(a.on_before_show_msg)?a.on_before_show_msg:l.EMPTY_FN,r.onAfterShowMsg=(0,l.isFn)(a.on_after_show_msg)?a.on_after_show_msg:l.EMPTY_FN,r.msgFilter=a.msg_filter||"Filtering data...",r.msgPopulate=a.msg_populate||"Populating filter...",r.msgPopulateCheckList=a.msg_populate_checklist||"Populating list...",r.msgChangePage=a.msg_change_page||"Collecting paging data...",r.msgClear=a.msg_clear||"Clearing filters...",r.msgChangeResults=a.msg_change_results||"Changing results per page...",r.msgResetPage=a.msg_reset_page||"Re-setting page...",r.msgResetPageLength=a.msg_reset_page_length||"Re-setting page length...",r.msgSort=a.msg_sort||"Sorting data...",r.msgLoadExtensions=a.msg_load_extensions||"Loading extensions...",r.msgLoadThemes=a.msg_load_themes||"Loading theme(s)...",r}return r(e,t),e.prototype.init=function(){var t=this;if(!this.initialized){var e=this.tf,i=this.emitter,n=(0,u.createElm)("div");n.className=this.cssClass;var s=(0,u.createElm)("span"),r=(0,u.createElm)("span");r.appendChild((0,u.createText)(this.text)),this.targetId||e.setToolbar();var a=this.targetId?(0,u.elm)(this.targetId):e.lDiv;this.targetId?(a.appendChild(r),a.appendChild(s)):(n.appendChild(r),n.appendChild(s),a.appendChild(n)),this.container=n,this.msgContainer=s,this.labelContainer=r,i.on(["before-filtering"],function(){return t.message(t.msgFilter)}),i.on(["before-populating-filter"],function(){return t.message(t.msgPopulate)}),i.on(["before-page-change"],function(){return t.message(t.msgChangePage)}),i.on(["before-clearing-filters"],function(){return t.message(t.msgClear)}),i.on(["before-page-length-change"],function(){return t.message(t.msgChangeResults)}),i.on(["before-reset-page"],function(){return t.message(t.msgResetPage)}),i.on(["before-reset-page-length"],function(){return t.message(t.msgResetPageLength)}),i.on(["before-loading-extensions"],function(){return t.message(t.msgLoadExtensions)}),i.on(["before-loading-themes"],function(){return t.message(t.msgLoadThemes)}),i.on(c,function(){return t.message("")}),this.initialized=!0}},e.prototype.message=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.isEnabled()){this.onBeforeShowMsg(this.tf,e);var i=""===e?this.delay:1;o.root.setTimeout(function(){t.initialized&&(t.msgContainer.innerHTML=e,t.onAfterShowMsg(t.tf,e))},i)}},e.prototype.destroy=function(){var t=this;if(this.initialized){var e=this.emitter;this.container.innerHTML="",this.targetId||(0,u.removeElm)(this.container),this.labelContainer=null,this.msgContainer=null,this.container=null,e.off(["before-filtering"],function(){return t.message(t.msgFilter)}),e.off(["before-populating-filter"],function(){return t.message(t.msgPopulate)}),e.off(["before-page-change"],function(){return t.message(t.msgChangePage)}),e.off(["before-clearing-filters"],function(){return t.message(t.msgClear)}),e.off(["before-page-length-change"],function(){return t.message(t.msgChangeResults)}),e.off(["before-reset-page"],function(){return t.message(t.msgResetPage)}),e.off(["before-reset-page-length"],function(){return t.message(t.msgResetPageLength)}),e.off(["before-loading-extensions"],function(){return t.message(t.msgLoadExtensions)}),e.off(["before-loading-themes"],function(){return t.message(t.msgLoadThemes)}),e.off(c,function(){return t.message("")}),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.Paging=void 0;var a="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},o=i(10),u=i(3),l=i(4),c=i(1),h=i(11);e.Paging=function(t){function e(i){n(this,e);var r=s(this,t.call(this,i,"paging")),a=r.config;r.btnPageCssClass=a.paging_btn_css_class||"pgInp",r.pagingSlc=null,r.resultsPerPageSlc=null,r.pagingTgtId=a.paging_target_id||null,r.pagingLength=isNaN(a.paging_length)?10:a.paging_length,r.resultsPerPageTgtId=a.results_per_page_target_id||null,r.pgSlcCssClass=a.paging_slc_css_class||"pgSlc",r.pgInpCssClass=a.paging_inp_css_class||"pgNbInp",r.resultsPerPage=a.results_per_page||null,r.hasResultsPerPage=(0,l.isArray)(r.resultsPerPage),r.resultsSlcCssClass=a.results_slc_css_class||"rspg",r.resultsSpanCssClass=a.results_span_css_class||"rspgSpan",r.startPagingRow=0,r.nbPages=0,r.currentPageNb=1,r.btnNextPageText=a.btn_next_page_text||">",r.btnPrevPageText=a.btn_prev_page_text||"<",r.btnLastPageText=a.btn_last_page_text||">|",r.btnFirstPageText=a.btn_first_page_text||"|<",r.btnNextPageHtml=a.btn_next_page_html||(i.enableIcons?'':null),r.btnPrevPageHtml=a.btn_prev_page_html||(i.enableIcons?'':null),r.btnFirstPageHtml=a.btn_first_page_html||(i.enableIcons?'':null),r.btnLastPageHtml=a.btn_last_page_html||(i.enableIcons?'':null),r.pageText=a.page_text||" Page ",r.ofText=a.of_text||" of ",r.nbPgSpanCssClass=a.nb_pages_css_class||"nbpg",r.hasPagingBtns=a.paging_btns!==!1,r.pageSelectorType=a.page_selector_type||h.SELECT,r.onBeforeChangePage=(0,l.isFn)(a.on_before_change_page)?a.on_before_change_page:l.EMPTY_FN,r.onAfterChangePage=(0,l.isFn)(a.on_after_change_page)?a.on_after_change_page:l.EMPTY_FN,r.slcResultsTxt=null,r.btnNextCont=null,r.btnPrevCont=null,r.btnLastCont=null,r.btnFirstCont=null,r.pgCont=null,r.pgBefore=null,r.pgAfter=null;var o=i.refRow,u=i.getRowsNb(!0);r.nbPages=Math.ceil((u-o)/r.pagingLength);var f=r;return r.evt={slcIndex:function(){return f.pageSelectorType===h.SELECT?f.pagingSlc.options.selectedIndex:parseInt(f.pagingSlc.value,10)-1},nbOpts:function(){return f.pageSelectorType===h.SELECT?parseInt(f.pagingSlc.options.length,10)-1:f.nbPages-1},next:function(){var t=f.evt.slcIndex()0?f.evt.slcIndex()-1:f.evt.nbOpts();f.changePage(t)},last:function(){f.changePage(f.evt.nbOpts())},first:function(){f.changePage(0)},_detectKey:function(t){var e=(0,c.keyCode)(t);e===h.ENTER_KEY&&(i.sorted?(i.filter(),f.changePage(f.evt.slcIndex())):f.changePage(),this.blur())},slcPagesChange:null,nextEvt:null,prevEvt:null,lastEvt:null,firstEvt:null},r}return r(e,t),e.prototype.init=function(){var t,e=this,i=this.tf,n=this.evt;if(!this.initialized){this.hasResultsPerPage&&(this.resultsPerPage.length<2?this.hasResultsPerPage=!1:(this.pagingLength=this.resultsPerPage[1][0],this.setResultsPerPage())),n.slcPagesChange=function(t){var i=t.target;e.changePage(i.selectedIndex)},this.pageSelectorType===h.SELECT&&(t=(0,u.createElm)(h.SELECT),t.className=this.pgSlcCssClass,(0,c.addEvt)(t,"change",n.slcPagesChange)),this.pageSelectorType===h.INPUT&&(t=(0,u.createElm)(h.INPUT,["value",this.currentPageNb]),t.className=this.pgInpCssClass,(0,c.addEvt)(t,"keypress",n._detectKey));var s=(0,u.createElm)("span"),r=(0,u.createElm)("span"),a=(0,u.createElm)("span"),o=(0,u.createElm)("span");if(this.hasPagingBtns){if(this.btnNextPageHtml)s.innerHTML=this.btnNextPageHtml,(0,c.addEvt)(s,"click",n.next);else{var l=(0,u.createElm)(h.INPUT,["type","button"],["value",this.btnNextPageText],["title","Next"]);l.className=this.btnPageCssClass,(0,c.addEvt)(l,"click",n.next),s.appendChild(l)}if(this.btnPrevPageHtml)r.innerHTML=this.btnPrevPageHtml,(0,c.addEvt)(r,"click",n.prev);else{var f=(0,u.createElm)(h.INPUT,["type","button"],["value",this.btnPrevPageText],["title","Previous"]);f.className=this.btnPageCssClass,(0,c.addEvt)(f,"click",n.prev),r.appendChild(f)}if(this.btnLastPageHtml)a.innerHTML=this.btnLastPageHtml,(0,c.addEvt)(a,"click",n.last);else{var d=(0,u.createElm)(h.INPUT,["type","button"],["value",this.btnLastPageText],["title","Last"]);d.className=this.btnPageCssClass,(0,c.addEvt)(d,"click",n.last),a.appendChild(d)}if(this.btnFirstPageHtml)o.innerHTML=this.btnFirstPageHtml,(0,c.addEvt)(o,"click",n.first);else{var p=(0,u.createElm)(h.INPUT,["type","button"],["value",this.btnFirstPageText],["title","First"]);p.className=this.btnPageCssClass,(0,c.addEvt)(p,"click",n.first),o.appendChild(p)}}this.pagingTgtId||i.setToolbar();var m=this.pagingTgtId?(0,u.elm)(this.pagingTgtId):i.mDiv;m.appendChild(o),m.appendChild(r);var g=(0,u.createElm)("span");g.appendChild((0,u.createText)(this.pageText)),g.className=this.nbPgSpanCssClass,m.appendChild(g),m.appendChild(t);var y=(0,u.createElm)("span");y.appendChild((0,u.createText)(this.ofText)),y.className=this.nbPgSpanCssClass,m.appendChild(y);var v=(0,u.createElm)("span");v.className=this.nbPgSpanCssClass,v.appendChild((0,u.createText)(" "+this.nbPages+" ")),m.appendChild(v),m.appendChild(s),m.appendChild(a),this.btnNextCont=s,this.btnPrevCont=r,this.btnLastCont=a,this.btnFirstCont=o,this.pgCont=v,this.pgBefore=g,this.pgAfter=y,this.pagingSlc=t,this.setPagingInfo(),i.fltGrid||(i.validateAllRows(),this.setPagingInfo(i.validRowsIndex)),this.emitter.on(["after-filtering"],function(){return e.resetPagingInfo()}),this.emitter.on(["change-page"],function(t,i){return e.setPage(i)}),this.emitter.on(["change-page-results"],function(t,i){return e.changeResultsPerPage(i)}),this.initialized=!0}},e.prototype.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.tf;this.isEnabled()||(this.enable(),this.init(),t&&e.filter())},e.prototype.resetPagingInfo=function(){this.startPagingRow=0,this.currentPageNb=1,this.setPagingInfo(this.tf.validRowsIndex)},e.prototype.setPagingInfo=function(t){var e=this.tf,i=this.pagingTgtId?(0,u.elm)(this.pagingTgtId):e.mDiv;if(e.validRowsIndex=t||e.getValidRows(!0),this.nbPages=Math.ceil(e.validRowsIndex.length/this.pagingLength),this.pgCont.innerHTML=this.nbPages,this.pageSelectorType===h.SELECT&&(this.pagingSlc.innerHTML=""),this.nbPages>0)if(i.style.visibility="visible",this.pageSelectorType===h.SELECT)for(var n=0;n=n&&r=0&&t<=this.nbPages-1&&(this.onBeforeChangePage(this,t+1),this.currentPageNb=parseInt(t,10)+1,this.pageSelectorType===h.SELECT?this.pagingSlc.options[t].selected=!0:this.pagingSlc.value=this.currentPageNb,this.startPagingRow=this.pageSelectorType===h.SELECT?this.pagingSlc.value:t*this.pagingLength,this.groupByPage(),this.onAfterChangePage(this,t+1)),this.emitter.emit("after-page-change",e,t+1))},e.prototype.changeResultsPerPage=function(t){this.isEnabled()&&!isNaN(t)&&(this.resultsPerPageSlc.value=t,this.onChangeResultsPerPage())},e.prototype.onChangeResultsPerPage=function(){var t=this.tf;if(this.isEnabled()){this.emitter.emit("before-page-length-change",t);var e=this.resultsPerPageSlc,i=e.selectedIndex,n=this.pageSelectorType===h.SELECT?this.pagingSlc.selectedIndex:parseInt(this.pagingSlc.value-1,10);if(this.pagingLength=parseInt(e.options[i].value,10),this.startPagingRow=this.pagingLength*n,!isNaN(this.pagingLength)&&(this.startPagingRow>=t.nbFilterableRows&&(this.startPagingRow=t.nbFilterableRows-this.pagingLength),this.setPagingInfo(),this.pageSelectorType===h.SELECT)){var s=this.pagingSlc.options.length-1<=n?this.pagingSlc.options.length-1:n;this.pagingSlc.options[s].selected=!0}this.emitter.emit("after-page-length-change",t,this.pagingLength)}},e.prototype.resetPage=function(){var t=this.tf;if(this.isEnabled()){this.emitter.emit("before-reset-page",t);var e=t.feature("store").getPageNb();""!==e&&this.changePage(e-1),this.emitter.emit("after-reset-page",t,e)}},e.prototype.resetPageLength=function(){var t=this.tf;if(this.isEnabled()){this.emitter.emit("before-reset-page-length",t);var e=t.feature("store").getPageLength();""!==e&&(this.resultsPerPageSlc.options[e].selected=!0,this.changeResultsPerPage()),this.emitter.emit("after-reset-page-length",t,e)}},e.prototype.destroy=function(){var t=this;if(this.initialized){var e=this.evt;this.pagingSlc&&(this.pageSelectorType===h.SELECT?(0,c.removeEvt)(this.pagingSlc,"change",e.slcPagesChange):this.pageSelectorType===h.INPUT&&(0,c.removeEvt)(this.pagingSlc,"keypress",e._detectKey),(0,u.removeElm)(this.pagingSlc)),this.btnNextCont&&((0,c.removeEvt)(this.btnNextCont,"click",e.next),(0,u.removeElm)(this.btnNextCont),this.btnNextCont=null),this.btnPrevCont&&((0,c.removeEvt)(this.btnPrevCont,"click",e.prev),(0,u.removeElm)(this.btnPrevCont),this.btnPrevCont=null),this.btnLastCont&&((0,c.removeEvt)(this.btnLastCont,"click",e.last),(0,u.removeElm)(this.btnLastCont),this.btnLastCont=null),this.btnFirstCont&&((0,c.removeEvt)(this.btnFirstCont,"click",e.first),(0,u.removeElm)(this.btnFirstCont),this.btnFirstCont=null),this.pgBefore&&((0,u.removeElm)(this.pgBefore),this.pgBefore=null),this.pgAfter&&((0,u.removeElm)(this.pgAfter),this.pgAfter=null),this.pgCont&&((0,u.removeElm)(this.pgCont),this.pgCont=null),this.hasResultsPerPage&&this.removeResultsPerPage(),this.emitter.off(["after-filtering"],function(){return t.resetPagingInfo()}),this.emitter.off(["change-page"],function(e,i){return t.setPage(i)}),this.emitter.off(["change-page-results"],function(e,i){return t.changeResultsPerPage(i)}),this.pagingSlc=null,this.nbPages=0,this.disable(),this.initialized=!1}},e}(o.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.ClearButton=void 0;var a=i(10),o=i(3),u=i(1);e.ClearButton=function(t){function e(i){n(this,e);var r=s(this,t.call(this,i,"btnReset")),a=r.config;return r.targetId=a.btn_reset_target_id||null,r.container=null,r.element=null,r.text=a.btn_reset_text||"Reset",r.cssClass=a.btn_reset_css_class||"reset",r.tooltip=a.btn_reset_tooltip||"Clear filters",r.html=a.btn_reset_html||(i.enableIcons?'':null),r}return r(e,t),e.prototype.onClick=function(){this.isEnabled()&&this.tf.clearFilters()},e.prototype.init=function(){var t=this,e=this.tf;if(!this.initialized){var i=(0,o.createElm)("span");this.targetId||e.setToolbar();var n=this.targetId?(0,o.elm)(this.targetId):e.rDiv;if(n.appendChild(i),this.html){i.innerHTML=this.html;var s=i.firstChild;(0,u.addEvt)(s,"click",function(){return t.onClick()})}else{var r=(0,o.createElm)("a",["href","javascript:void(0);"]);r.className=this.cssClass,r.appendChild((0,o.createText)(this.text)),i.appendChild(r),(0,u.addEvt)(r,"click",function(){return t.onClick(); })}this.element=i.firstChild,this.container=i,this.initialized=!0}},e.prototype.destroy=function(){this.initialized&&((0,o.removeElm)(this.element),(0,o.removeElm)(this.container),this.element=null,this.container=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.Help=void 0;var a=i(10),o=i(3),u=i(1),l=i(11),c=i(2),h="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:
<, <=, >, >=, =, *, !, {, }, ||,&&, [empty], [nonempty], rgx:
Learn more
',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.boundMouseup=null,r.defaultHtml='

TableFilter v'+i.version+'

'+f+"
©2015-"+i.year+' Max Guglielmi
',r.emitter.on(["init-help"],function(){return r.init()}),r}return r(e,t),e.prototype.onMouseup=function(t){for(var e=(0,u.targetEvt)(t);e&&e!==this.cont&&e!==this.btn;)e=e.parentNode;e!==this.cont&&e!==this.btn&&this.toggle()},e.prototype.init=function(){var t=this;if(!this.initialized){var e=this.tf,i=(0,o.createElm)("span"),n=(0,o.createElm)("div");this.boundMouseup=this.onMouseup.bind(this),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,u.addEvt)(a,"click",function(){return t.toggle()}),r.appendChild(n)}else{r.appendChild(n);var l=(0,o.createElm)("a",["href","javascript:void(0);"]);l.className=this.btnCssClass,l.appendChild((0,o.createText)(this.btnText)),i.appendChild(l),(0,u.addEvt)(l,"click",function(){return t.toggle()})}this.instrHtml?(this.contTgtId&&r.appendChild(n),n.innerHTML=this.instrHtml,this.contTgtId||(n.className=this.contCssClass)):(n.innerHTML=this.instrText,n.className=this.contCssClass),n.innerHTML+=this.defaultHtml,(0,u.addEvt)(n,"click",function(){return t.toggle()}),this.cont=n,this.btn=i,this.initialized=!0}},e.prototype.toggle=function(){if(this.enabled!==!1){(0,u.removeEvt)(c.root,"mouseup",this.boundMouseup);var t=this.cont.style.display;""===t||t===l.NONE?(this.cont.style.display="inline",(0,u.addEvt)(c.root,"mouseup",this.boundMouseup)):this.cont.style.display=l.NONE}},e.prototype.destroy=function(){this.initialized&&((0,o.removeElm)(this.btn),this.btn=null,(0,o.removeElm)(this.cont),this.cont=null,this.boundMouseup=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(){var t=this;this.initialized||(this.processAll(),this.emitter.on(["row-processed","row-paged"],function(e,i,n,s){return t.processRow(i,n,s)}),this.emitter.on(["column-sorted"],function(){return t.processAll()}),this.emitter.on(["rows-changed"],function(){return t.processAll()}),this.initialized=!0)},e.prototype.processAll=function(){if(this.isEnabled())for(var t=this.tf,e=t.getValidRows(!0),i=e.length,n=0,s=0;s0?this.hide():this.show()},e.prototype.show=function(){this.initialized&&this.isEnabled()&&(this.onBeforeShow(this.tf,this),this.setWidth(),this.cont.style.display="block",this.onAfterShow(this.tf,this))},e.prototype.hide=function(){this.initialized&&this.isEnabled()&&(this.onBeforeHide(this.tf,this),this.cont.style.display=l.NONE,this.onAfterHide(this.tf,this))},e.prototype.setWidth=function(){if(this.initialized&&!this.isExternal&&this.isEnabled()){var t=this.tf;if(t.gridLayout){var e=t.feature("gridLayout");this.cont.style.width=e.tblCont.clientWidth+"px"}else this.cont.style.width=(t.tbl.tHead?t.tbl.tHead.clientWidth:t.tbl.tBodies[0].clientWidth)+"px"}},e.prototype.destroy=function(){var t=this;this.initialized&&((0,o.removeElm)(this.cont),this.cont=null,this.emitter.off(["after-filtering"],function(){return t.toggle()}),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.State=void 0;var a=i(10),o=i(27),u=i(28),l=i(5),c=i(4);e.State=function(t){function e(i){n(this,e);var r=s(this,t.call(this,i,"state")),a=r.config.state;return r.enableHash=a===!0||(0,c.isArray)(a.types)&&a.types.indexOf("hash")!==-1,r.enableLocalStorage=(0,c.isArray)(a.types)&&a.types.indexOf("local_storage")!==-1,r.enableCookie=(0,c.isArray)(a.types)&&a.types.indexOf("cookie")!==-1,r.persistFilters=a.filters!==!1,r.persistPageNumber=Boolean(a.page_number),r.persistPageLength=Boolean(a.page_length),r.persistSort=Boolean(a.sort),r.persistColsVisibility=Boolean(a.columns_visibility),r.persistFiltersVisibility=Boolean(a.filters_visibility),r.cookieDuration=isNaN(a.cookie_duration)?87600:parseInt(a.cookie_duration,10),r.enableStorage=r.enableLocalStorage||r.enableCookie,r.storage=null,r.hash=null,r.pageNb=null,r.pageLength=null,r.sort=null,r.hiddenCols=null,r.filtersVisibility=null,r.state={},r.prfxCol="col_",r.pageNbKey="page",r.pageLengthKey="page_length",r.filtersVisKey="filters_visibility",r}return r(e,t),e.prototype.init=function(){var t=this;this.initialized||(this.emitter.on(["after-filtering"],function(){return t.update()}),this.emitter.on(["after-page-change","after-clearing-filters"],function(e,i){return t.updatePage(i)}),this.emitter.on(["after-page-length-change"],function(e,i){return t.updatePageLength(i)}),this.emitter.on(["column-sorted"],function(e,i,n){return t.updateSort(i,n)}),this.emitter.on(["sort-initialized"],function(){return t._syncSort()}),this.emitter.on(["columns-visibility-initialized"],function(){return t._syncColsVisibility()}),this.emitter.on(["column-shown","column-hidden"],function(e,i,n,s){return t.updateColsVisibility(s)}),this.emitter.on(["filters-visibility-initialized"],function(){return t._syncFiltersVisibility()}),this.emitter.on(["filters-toggled"],function(e,i,n){return t.updateFiltersVisibility(n)}),this.enableHash&&(this.hash=new o.Hash(this),this.hash.init()),this.enableStorage&&(this.storage=new u.Storage(this),this.storage.init()),this.initialized=!0)},e.prototype.update=function(){var t=this;if(this.isEnabled()){var e=this.state,i=this.tf;if(this.persistFilters){var n=i.getFiltersValue();n.forEach(function(i,n){var s=""+t.prfxCol+n;(0,c.isString)(i)&&(0,l.isEmpty)(i)?e.hasOwnProperty(s)&&(e[s].flt=void 0):(e[s]=e[s]||{},e[s].flt=i)})}if(this.persistPageNumber&&((0,c.isNull)(this.pageNb)?e[this.pageNbKey]=void 0:e[this.pageNbKey]=this.pageNb),this.persistPageLength&&((0,c.isNull)(this.pageLength)?e[this.pageLengthKey]=void 0:e[this.pageLengthKey]=this.pageLength),this.persistSort&&!(0,c.isNull)(this.sort)){Object.keys(e).forEach(function(i){i.indexOf(t.prfxCol)!==-1&&e[i]&&(e[i].sort=void 0)});var s=""+this.prfxCol+this.sort.column;e[s]=e[s]||{},e[s].sort={descending:this.sort.descending}}this.persistColsVisibility&&((0,c.isNull)(this.hiddenCols)||(Object.keys(e).forEach(function(i){i.indexOf(t.prfxCol)!==-1&&e[i]&&(e[i].hidden=void 0)}),this.hiddenCols.forEach(function(i){var n=""+t.prfxCol+i;e[n]=e[n]||{},e[n].hidden=!0}))),this.persistFiltersVisibility&&((0,c.isNull)(this.filtersVisibility)?e[this.filtersVisKey]=void 0:e[this.filtersVisKey]=this.filtersVisibility),this.emitter.emit("state-changed",i,e)}},e.prototype.updatePage=function(t){this.pageNb=t,this.update()},e.prototype.updatePageLength=function(t){this.pageLength=t,this.update()},e.prototype.updateSort=function(t,e){this.sort={column:t,descending:e},this.update()},e.prototype.updateColsVisibility=function(t){this.hiddenCols=t,this.update()},e.prototype.updateFiltersVisibility=function(t){this.filtersVisibility=t,this.update()},e.prototype.override=function(t){this.state=t},e.prototype.sync=function(){var t=this.state,e=this.tf;if(this._syncFilters(),this.persistPageNumber){var i=t[this.pageNbKey];this.emitter.emit("change-page",e,i)}if(this.persistPageLength){var n=t[this.pageLengthKey];this.emitter.emit("change-page-results",e,n)}this._syncSort(),this._syncColsVisibility(),this._syncFiltersVisibility()},e.prototype.overrideAndSync=function(t){this.disable(),this.override(t),this.sync(),this.enable()},e.prototype._syncFilters=function(){var t=this;if(this.persistFilters){var e=this.state,i=this.tf;Object.keys(e).forEach(function(n){if(n.indexOf(t.prfxCol)!==-1){var s=parseInt(n.replace(t.prfxCol,""),10),r=e[n].flt;i.setFilterValue(s,r)}}),i.filter()}},e.prototype._syncSort=function(){var t=this;if(this.persistSort){var e=this.state,i=this.tf;Object.keys(e).forEach(function(n){if(n.indexOf(t.prfxCol)!==-1){var s=parseInt(n.replace(t.prfxCol,""),10);if(!(0,c.isUndef)(e[n].sort)){var r=e[n].sort;t.emitter.emit("sort",i,s,r.descending)}}})}},e.prototype._syncColsVisibility=function(){var t=this;if(this.persistColsVisibility){var e=this.state,i=this.tf,n=[];Object.keys(e).forEach(function(i){if(i.indexOf(t.prfxCol)!==-1){var s=parseInt(i.replace(t.prfxCol,""),10);(0,c.isUndef)(e[i].hidden)||n.push(s)}}),n.forEach(function(e){t.emitter.emit("hide-column",i,e)})}},e.prototype._syncFiltersVisibility=function(){if(this.persistFiltersVisibility){var t=this.state,e=this.tf,i=t[this.filtersVisKey];this.filtersVisibility=i,this.emitter.emit("show-filters",e,i)}},e.prototype.destroy=function(){var t=this;this.initialized&&(this.state={},this.emitter.off(["after-filtering"],function(){return t.update()}),this.emitter.off(["after-page-change","after-clearing-filters"],function(e,i){return t.updatePage(i)}),this.emitter.off(["after-page-length-change"],function(e,i){return t.updatePageLength(i)}),this.emitter.off(["column-sorted"],function(e,i,n){return t.updateSort(i,n)}),this.emitter.off(["sort-initialized"],function(){return t._syncSort()}),this.emitter.off(["columns-visibility-initialized"],function(){return t._syncColsVisibility()}),this.emitter.off(["column-shown","column-hidden"],function(e,i,n,s){return t.updateColsVisibility(s)}),this.emitter.off(["filters-visibility-initialized"],function(){return t._syncFiltersVisibility()}),this.emitter.off(["filters-toggled"],function(e,i,n){return t.updateFiltersVisibility(n)}),this.enableHash&&(this.hash.destroy(),this.hash=null),this.enableStorage&&(this.storage.destroy(),this.storage=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")}Object.defineProperty(e,"__esModule",{value:!0}),e.Hash=e.hasHashChange=void 0;var s=i(1),r=i(2),a=r.root.JSON,o=r.root.location,u=r.root.decodeURIComponent,l=r.root.encodeURIComponent,c=e.hasHashChange=function(){var t=r.root.documentMode;return"onhashchange"in r.root&&(void 0===t||t>7)};e.Hash=function(){function t(e){n(this,t),this.state=e,this.lastHash=null,this.emitter=e.emitter,this.boundSync=null}return t.prototype.init=function(){var t=this;c()&&(this.lastHash=o.hash,this.boundSync=this.sync.bind(this),this.emitter.on(["state-changed"],function(e,i){return t.update(i)}),this.emitter.on(["initialized"],this.boundSync),(0,s.addEvt)(r.root,"hashchange",this.boundSync))},t.prototype.update=function(t){var e="#"+l(a.stringify(t));this.lastHash!==e&&(o.hash=e,this.lastHash=e)},t.prototype.parse=function(t){return t.indexOf("#")===-1?null:(t=t.substr(1),a.parse(u(t)))},t.prototype.sync=function(){var t=this.parse(o.hash);t&&this.state.overrideAndSync(t)},t.prototype.destroy=function(){var t=this;this.emitter.off(["state-changed"],function(e,i){return t.update(i)}),this.emitter.off(["initialized"],this.boundSync),(0,s.removeEvt)(r.root,"hashchange",this.boundSync),this.state=null,this.lastHash=null,this.emitter=null},t}()},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Storage=e.hasStorage=void 0;var r=i(29),a=n(r),o=i(2),u=o.root.JSON,l=o.root.localStorage,c=o.root.location,h=e.hasStorage=function(){return"Storage"in o.root};e.Storage=function(){function t(e){s(this,t),this.state=e,this.tf=e.tf,this.enableLocalStorage=e.enableLocalStorage&&h(),this.enableCookie=e.enableCookie&&!this.enableLocalStorage,this.emitter=e.emitter,this.duration=e.cookieDuration}return t.prototype.init=function(){var t=this;this.emitter.on(["state-changed"],function(e,i){return t.save(i)}),this.emitter.on(["initialized"],function(){return t.sync()})},t.prototype.save=function(t){this.enableLocalStorage?l[this.getKey()]=u.stringify(t):a.default.write(this.getKey(),u.stringify(t),this.duration)},t.prototype.retrieve=function(){var t=null;return t=this.enableLocalStorage?l[this.getKey()]:a.default.read(this.getKey()),t?u.parse(t):null},t.prototype.remove=function(){this.enableLocalStorage?l.removeItem(this.getKey()):a.default.remove(this.getKey())},t.prototype.sync=function(){var t=this.retrieve();t&&this.state.overrideAndSync(t)},t.prototype.getKey=function(){return u.stringify({key:this.tf.prfxTf+"_"+this.tf.id,path:c.pathname})},t.prototype.destroy=function(){var t=this;this.emitter.off(["state-changed"],function(e,i){return t.save(i)}),this.emitter.off(["initialized"],function(){return t.sync()}),this.remove(),this.state=null,this.emitter=null},t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),s=n.root.document;e.default={write:function(t,e,i){var n="";i&&(n=new Date((new Date).getTime()+36e5*i),n="; expires="+n.toGMTString()),s.cookie=t+"="+escape(e)+n},read:function(t){var e="",i=t+"=";if(s.cookie.length>0){var n=s.cookie,r=n.indexOf(i);if(r!==-1){r+=i.length;var a=n.indexOf(";",r);a===-1&&(a=n.length),e=unescape(n.substring(r,a))}}return e},remove:function(t){this.write(t,"",-1)}}},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.DateType=void 0;var a=i(31);i(417);var o=i(10),u=i(4),l=i(11),c=i(2);e.DateType=function(t){function e(i){n(this,e);var r=s(this,t.call(this,i,"dateType"));return r.locale=i.locale,r.datetime=a.Date,r.enable(),r}return r(e,t),e.prototype.init=function(){var t=this;this.initialized||(this.datetime.setLocale(this.locale),this.addConfigFormats(this.tf.colTypes),this.emitter.on(["add-date-type-formats"],function(e,i){return t.addConfigFormats(i)}),this.emitter.emit("date-type-initialized",this.tf,this),this.initialized=!0)},e.prototype.parse=function(t,e){return this.datetime.create(t,e)},e.prototype.isValid=function(t,e){return this.datetime.isValid(this.parse(t,e))},e.prototype.getOptions=function(t,e){e=e||this.tf.colTypes;var i=e[t];return(0,u.isObj)(i)?i:{}},e.prototype.addConfigFormats=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach(function(i,n){var s=t.getOptions(n,e);s.type===l.DATE&&s.hasOwnProperty("format")&&!function(){var e=t.datetime.getLocale(s.locale||t.locale),i=(0,u.isArray)(s.format)?s.format:[s.format];try{i.forEach(function(t){e.addFormat(t)})}catch(t){c.root.console.error(t)}}()})},e.prototype.destroy=function(){var t=this;this.initialized&&(this.emitter.off(["add-date-type-formats"],function(e,i){return t.addConfigFormats(i)}),this.initialized=!1)},e}(o.Feature)},function(t,e,i){"use strict";i(32),i(370),t.exports=i(34)},function(t,e,i){"use strict";i(33),i(93),i(139),i(141),i(142),i(143),i(144),i(145),i(152),i(153),i(154),i(155),i(156),i(157),i(158),i(159),i(160),i(161),i(162),i(163),i(164),i(165),i(166),i(167),i(168),i(169),i(170),i(171),i(172),i(173),i(174),i(175),i(176),i(177),i(178),i(179),i(180),i(181),i(182),i(183),i(184),i(185),i(186),i(187),i(188),i(189),i(190),i(191),i(192),i(193),i(194),i(195),i(196),i(197),i(198),i(199),i(200),i(201),i(202),i(203),i(204),i(205),i(206),i(207),i(208),i(209),i(210),i(211),i(212),i(213),i(214),i(215),i(216),i(217),i(218),i(219),i(220),i(221),i(222),i(223),i(224),i(225),i(226),i(227),i(228),i(229),i(230),i(231),i(232),i(240),i(241),i(242),i(243),i(244),i(245),i(246),i(247),i(252),i(253),i(254),i(255),i(256),i(257),i(258),i(259),i(260),i(261),i(262),i(263),i(264),i(265),i(266),i(267),i(268),i(287),i(288),i(289),i(290),i(291),i(292),i(293),i(294),i(295),i(296),i(300),i(301),i(302),i(303),i(306),i(307),i(308),i(309),i(310),i(311),i(312),i(313),i(314),i(315),i(316),i(317),i(318),i(319),i(320),i(321),i(322),i(323),i(324),i(325),i(327),i(328),i(329),i(330),i(331),i(332),i(333),i(334),i(335),i(336),i(337),i(338),i(339),i(340),i(341),i(342),i(343),i(344),i(345),i(348),i(349),i(351),i(352),i(353),i(354),i(355),i(356),i(357),i(358),i(359),i(360),i(361),i(362),i(363),i(364),i(365),i(366),i(367),i(368),i(369),t.exports=i(34)},function(t,e,i){"use strict";var n=i(34),s=i(35),r=s.localeManager;n.Date.defineStatic({addLocale:function(t,e){return r.add(t,e)}}),t.exports=n.Date.addLocale},function(t,e){(function(e){(function(){"use strict";function i(){if(N=D[O],!N){if(N=function(t){return U(N,function(e,i){T(A,i)&&e.extend(t)}),N},R)t.exports=N;else try{D[O]=N}catch(t){}U(F.split(" "),function(t){n(t)}),s()}}function n(t){function e(t,e,i){C(n,t,function(t,s,r){var u=o(t,s,r);return a(n,u.methods,e,i,u.last),n})}var i="Object"===t,n=d(t,!0),s=function(e){function s(t,e){return i&&e===p&&(!M||"get"===t||"set"===t)}function r(t,i){var n=e[t];if(n)for(var s,r=0;s=n[r];r++)if(s===i)return!0;return!1}function a(t,i){return e[t]&&!r(t,i)}function o(t,i,n){if(!i[t]||!n)return!1;for(var s=0;s'\n\t * @type {String}\n\t */\n\t this.grOperator = f.greater_operator || '>';\n\t\n\t /**\n\t * Lower than operator for input filter. Defaults to '<'\n\t * @type {String}\n\t */\n\t this.lwOperator = f.lower_operator || '<';\n\t\n\t /**\n\t * Lower than or equal operator for input filter. Defaults to '<='\n\t * @type {String}\n\t */\n\t this.leOperator = f.lower_equal_operator || '<=';\n\t\n\t /**\n\t * Greater than or equal operator for input filter. Defaults to '>='\n\t * @type {String}\n\t */\n\t this.geOperator = f.greater_equal_operator || '>=';\n\t\n\t /**\n\t * Inequality operator for input filter. Defaults to '!'\n\t * @type {String}\n\t */\n\t this.dfOperator = f.different_operator || '!';\n\t\n\t /**\n\t * Like operator for input filter. Defaults to '!'\n\t * @type {String}\n\t */\n\t this.lkOperator = f.like_operator || '*';\n\t\n\t /**\n\t * Strict equality operator for input filter. Defaults to '='\n\t * @type {String}\n\t */\n\t this.eqOperator = f.equal_operator || '=';\n\t\n\t /**\n\t * Starts with operator for input filter. Defaults to '='\n\t * @type {String}\n\t */\n\t this.stOperator = f.start_with_operator || '{';\n\t\n\t /**\n\t * Ends with operator for input filter. Defaults to '='\n\t * @type {String}\n\t */\n\t this.enOperator = f.end_with_operator || '}';\n\t\n\t // this.curExp = f.cur_exp || '^[¥£€$]';\n\t\n\t /**\n\t * Stored values separator\n\t * @type {String}\n\t */\n\t this.separator = f.separator || ',';\n\t\n\t /**\n\t * Enable rows counter UI component\n\t * @type {Boolean}\n\t */\n\t this.rowsCounter = Boolean(f.rows_counter);\n\t\n\t /**\n\t * Enable status bar UI component\n\t * @type {Boolean}\n\t */\n\t this.statusBar = Boolean(f.status_bar);\n\t\n\t /**\n\t * Enable activity/spinner indicator UI component\n\t * @type {Boolean}\n\t */\n\t this.loader = Boolean(f.loader);\n\t\n\t /*** validation - reset buttons/links ***/\n\t /**\n\t * Enable filters submission button\n\t * @type {Boolean}\n\t */\n\t this.displayBtn = Boolean(f.btn);\n\t\n\t /**\n\t * Define filters submission button text\n\t * @type {String}\n\t */\n\t this.btnText = f.btn_text || (!this.enableIcons ? 'Go' : '');\n\t\n\t /**\n\t * Css class for filters submission button\n\t * @type {String}\n\t */\n\t this.btnCssClass = f.btn_css_class || (!this.enableIcons ? 'btnflt' : 'btnflt_icon');\n\t\n\t /**\n\t * Enable clear button\n\t * @type {Boolean}\n\t */\n\t this.btnReset = Boolean(f.btn_reset);\n\t\n\t /**\n\t * Callback fired before filters are cleared\n\t * @type {Function}\n\t */\n\t this.onBeforeReset = (0, _types.isFn)(f.on_before_reset) ? f.on_before_reset : _types.EMPTY_FN;\n\t\n\t /**\n\t * Callback fired after filters are cleared\n\t * @type {Function}\n\t */\n\t this.onAfterReset = (0, _types.isFn)(f.on_after_reset) ? f.on_after_reset : _types.EMPTY_FN;\n\t\n\t /**\n\t * Enable paging component\n\t * @type {Boolean}\n\t */\n\t this.paging = Boolean(f.paging);\n\t\n\t /**\n\t * Number of hidden rows\n\t * @type {Number}\n\t * @private\n\t */\n\t this.nbHiddenRows = 0;\n\t\n\t /**\n\t * Enable auto-filter behaviour, table is filtered when a user\n\t * stops typing\n\t * @type {Boolean}\n\t */\n\t this.autoFilter = Boolean(f.auto_filter);\n\t\n\t /**\n\t * Auto-filter delay in msecs\n\t * @type {Number}\n\t */\n\t this.autoFilterDelay = !isNaN(f.auto_filter_delay) ? f.auto_filter_delay : _const.AUTO_FILTER_DELAY;\n\t\n\t /**\n\t * Indicate whether user is typing\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.isUserTyping = null;\n\t\n\t /**\n\t * Auto-filter interval ID\n\t * @type {String}\n\t * @private\n\t */\n\t this.autoFilterTimer = null;\n\t\n\t /**\n\t * Enable keyword highlighting behaviour\n\t * @type {Boolean}\n\t */\n\t this.highlightKeywords = Boolean(f.highlight_keywords);\n\t\n\t /**\n\t * Enable no results message UI component\n\t * @type {Boolean}\n\t */\n\t this.noResults = (0, _types.isObj)(f.no_results_message) || Boolean(f.no_results_message);\n\t\n\t /**\n\t * Enable state persistence\n\t * @type {Boolean}\n\t */\n\t this.state = (0, _types.isObj)(f.state) || Boolean(f.state);\n\t\n\t /*** data types ***/\n\t\n\t /**\n\t * Define default locale, default to 'en' as per Sugar Date module:\n\t * https://sugarjs.com/docs/#/DateLocales\n\t * @type {String}\n\t */\n\t this.locale = f.locale || 'en';\n\t\n\t /**\n\t * Define thousands separator ',' or '.', defaults to ','\n\t * @type {String}\n\t */\n\t this.thousandsSeparator = f.thousands_separator || ',';\n\t\n\t /**\n\t * Define decimal separator ',' or '.', defaults to '.'\n\t * @type {String}\n\t */\n\t this.decimalSeparator = f.decimal_separator || '.';\n\t\n\t /**\n\t * Determine whether table has columns data types\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.hasColTypes = (0, _types.isArray)(f.col_types);\n\t\n\t /**\n\t * Define data types on a column basis, possible values 'string',\n\t * 'number', 'formatted-number', 'date', 'ipaddress' ie:\n\t * col_types : [\n\t * 'string', 'date', 'number',\n\t * { type: 'formatted-number', decimal: ',', thousands: '.' },\n\t * { type: 'date', locale: 'en-gb' },\n\t * { type: 'date', format: ['{dd}-{months}-{yyyy|yy}'] }\n\t * ]\n\t *\n\t * Refer to https://sugarjs.com/docs/#/DateParsing for exhaustive\n\t * information on date parsing formats supported by Sugar Date\n\t * @type {Array}\n\t */\n\t this.colTypes = this.hasColTypes ? f.col_types : [];\n\t\n\t /*** ids prefixes ***/\n\t /**\n\t * Main prefix\n\t * @private\n\t */\n\t this.prfxTf = 'TF';\n\t\n\t /**\n\t * Filter's ID prefix (inputs - selects)\n\t * @private\n\t */\n\t this.prfxFlt = 'flt';\n\t\n\t /**\n\t * Button's ID prefix\n\t * @private\n\t */\n\t this.prfxValButton = 'btn';\n\t\n\t /**\n\t * Toolbar container ID prefix\n\t * @private\n\t */\n\t this.prfxInfDiv = 'inf_';\n\t\n\t /**\n\t * Toolbar left element ID prefix\n\t * @private\n\t */\n\t this.prfxLDiv = 'ldiv_';\n\t\n\t /**\n\t * Toolbar right element ID prefix\n\t * @private\n\t */\n\t this.prfxRDiv = 'rdiv_';\n\t\n\t /**\n\t * Toolbar middle element ID prefix\n\t * @private\n\t */\n\t this.prfxMDiv = 'mdiv_';\n\t\n\t /**\n\t * Responsive Css class\n\t * @private\n\t */\n\t this.prfxResponsive = 'resp';\n\t\n\t /*** extensions ***/\n\t /**\n\t * List of loaded extensions\n\t * @type {Array}\n\t * @private\n\t */\n\t this.extensions = f.extensions;\n\t\n\t /**\n\t * Determine whether extensions are loaded\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.hasExtensions = (0, _types.isArray)(this.extensions);\n\t\n\t /*** themes ***/\n\t /**\n\t * Enable default theme\n\t * @type {Boolean}\n\t */\n\t this.enableDefaultTheme = Boolean(f.enable_default_theme);\n\t\n\t /**\n\t * Determine whether themes are enables\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.hasThemes = this.enableDefaultTheme || (0, _types.isArray)(f.themes);\n\t\n\t /**\n\t * List of themes, ie:\n\t * themes: [{ name: 'skyblue' }]\n\t * @type {Array}\n\t */\n\t this.themes = f.themes || [];\n\t\n\t /**\n\t * Define path to themes assets, defaults to\n\t * 'tablefilter/style/themes/'. Usage:\n\t * themes: [{ name: 'skyblue' }]\n\t * @type {Array}\n\t */\n\t this.themesPath = f.themes_path || this.stylePath + 'themes/';\n\t\n\t /**\n\t * Enable responsive layout\n\t * @type {Boolean}\n\t */\n\t this.responsive = Boolean(f.responsive);\n\t\n\t /**\n\t * Features registry\n\t * @private\n\t */\n\t this.Mod = {};\n\t\n\t /**\n\t * Extensions registry\n\t * @private\n\t */\n\t this.ExtRegistry = {};\n\t }\n\t\n\t /**\n\t * Initialise features and layout\n\t */\n\t\n\t\n\t TableFilter.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t this.nbCells = this.getCellsNb(this.refRow);\n\t var Mod = this.Mod;\n\t var n = this.singleSearchFlt ? 1 : this.nbCells;\n\t var inpclass = void 0;\n\t\n\t //loads stylesheet if not imported\n\t this.import(this.stylesheetId, this.stylesheet, null, 'link');\n\t\n\t //loads theme\n\t if (this.hasThemes) {\n\t this.loadThemes();\n\t }\n\t\n\t // Instanciate sugar date wrapper\n\t Mod.dateType = Mod.dateType || new _dateType.DateType(this);\n\t Mod.dateType.init();\n\t\n\t // Instantiate help feature and initialise only if set true\n\t Mod.help = Mod.help || new _help.Help(this);\n\t if (this.help) {\n\t Mod.help.init();\n\t }\n\t\n\t if (this.state) {\n\t Mod.state = Mod.state || new _state.State(this);\n\t Mod.state.init();\n\t }\n\t\n\t if (this.gridLayout) {\n\t Mod.gridLayout = Mod.gridLayout || new _gridLayout.GridLayout(this);\n\t Mod.gridLayout.init();\n\t }\n\t\n\t if (this.loader) {\n\t Mod.loader = Mod.loader || new _loader.Loader(this);\n\t Mod.loader.init();\n\t }\n\t\n\t if (this.highlightKeywords) {\n\t Mod.highlightKeyword = new _highlightKeywords.HighlightKeyword(this);\n\t Mod.highlightKeyword.init();\n\t }\n\t\n\t if (this.popupFilters) {\n\t Mod.popupFilter = Mod.popupFilter || new _popupFilter.PopupFilter(this);\n\t Mod.popupFilter.init();\n\t }\n\t\n\t //filters grid is not generated\n\t if (!this.fltGrid) {\n\t this._initNoFilters();\n\t } else {\n\t var fltrow = this._insertFiltersRow();\n\t\n\t this.nbFilterableRows = this.getRowsNb();\n\t\n\t // Generate filters\n\t for (var i = 0; i < n; i++) {\n\t this.emitter.emit('before-filter-init', this, i);\n\t\n\t var fltcell = (0, _dom.createElm)(this.fltCellTag),\n\t col = this.getFilterType(i);\n\t\n\t if (this.singleSearchFlt) {\n\t fltcell.colSpan = this.nbCells;\n\t }\n\t if (!this.gridLayout) {\n\t fltrow.appendChild(fltcell);\n\t }\n\t inpclass = i === n - 1 && this.displayBtn ? this.fltSmallCssClass : this.fltCssClass;\n\t\n\t //only 1 input for single search\n\t if (this.singleSearchFlt) {\n\t col = _const.INPUT;\n\t inpclass = this.singleFltCssClass;\n\t }\n\t\n\t //drop-down filters\n\t if (col === _const.SELECT || col === _const.MULTIPLE) {\n\t if (!Mod.dropdown) {\n\t Mod.dropdown = new _dropdown.Dropdown(this);\n\t }\n\t Mod.dropdown.init(i, this.isExternalFlt, fltcell);\n\t }\n\t // checklist\n\t else if (col === _const.CHECKLIST) {\n\t if (!Mod.checkList) {\n\t Mod.checkList = new _checkList.CheckList(this);\n\t }\n\t Mod.checkList.init(i, this.isExternalFlt, fltcell);\n\t } else {\n\t this._buildInputFilter(i, inpclass, fltcell);\n\t }\n\t\n\t // this adds submit button\n\t if (i === n - 1 && this.displayBtn) {\n\t this._buildSubmitButton(i, fltcell);\n\t }\n\t\n\t this.emitter.emit('after-filter-init', this, i);\n\t }\n\t\n\t this.emitter.on(['filter-focus'], function (tf, filter) {\n\t return _this2.setActiveFilterId(filter.id);\n\t });\n\t } //if this.fltGrid\n\t\n\t /* Features */\n\t if (this.hasVisibleRows) {\n\t this.emitter.on(['after-filtering'], function () {\n\t return _this2.enforceVisibility();\n\t });\n\t this.enforceVisibility();\n\t }\n\t if (this.rowsCounter) {\n\t Mod.rowsCounter = new _rowsCounter.RowsCounter(this);\n\t Mod.rowsCounter.init();\n\t }\n\t if (this.statusBar) {\n\t Mod.statusBar = new _statusBar.StatusBar(this);\n\t Mod.statusBar.init();\n\t }\n\t if (this.paging) {\n\t if (!Mod.paging) {\n\t Mod.paging = new _paging.Paging(this);\n\t Mod.paging.init();\n\t } else {\n\t Mod.paging.reset();\n\t }\n\t }\n\t if (this.btnReset) {\n\t Mod.clearButton = new _clearButton.ClearButton(this);\n\t Mod.clearButton.init();\n\t }\n\t\n\t if (this.hasColWidths && !this.gridLayout) {\n\t this.setColWidths();\n\t }\n\t if (this.alternateRows) {\n\t Mod.alternateRows = new _alternateRows.AlternateRows(this);\n\t Mod.alternateRows.init();\n\t }\n\t if (this.noResults) {\n\t Mod.noResults = Mod.noResults || new _noResults.NoResults(this);\n\t Mod.noResults.init();\n\t }\n\t\n\t //TF css class is added to table\n\t if (!this.gridLayout) {\n\t (0, _dom.addClass)(this.tbl, this.prfxTf);\n\t if (this.responsive) {\n\t (0, _dom.addClass)(this.tbl, this.prfxResponsive);\n\t }\n\t }\n\t\n\t /* Loads extensions */\n\t if (this.hasExtensions) {\n\t this.initExtensions();\n\t }\n\t\n\t // Subscribe to events\n\t if (this.markActiveColumns) {\n\t this.emitter.on(['before-filtering'], function () {\n\t return _this2.clearActiveColumns();\n\t });\n\t this.emitter.on(['cell-processed'], function (tf, colIndex) {\n\t return _this2.markActiveColumn(colIndex);\n\t });\n\t }\n\t if (this.linkedFilters) {\n\t this.emitter.on(['after-filtering'], function () {\n\t return _this2.linkFilters();\n\t });\n\t }\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t\n\t this.onFiltersLoaded(this);\n\t\n\t this.emitter.emit('initialized', this);\n\t };\n\t\n\t /**\n\t * Detect key\n\t * @param {Event} evt\n\t */\n\t\n\t\n\t TableFilter.prototype.detectKey = function detectKey(evt) {\n\t if (!this.enterKey) {\n\t return;\n\t }\n\t if (evt) {\n\t var key = (0, _event.keyCode)(evt);\n\t if (key === _const.ENTER_KEY) {\n\t this.filter();\n\t (0, _event.cancelEvt)(evt);\n\t (0, _event.stopEvt)(evt);\n\t } else {\n\t this.isUserTyping = true;\n\t _root.root.clearInterval(this.autoFilterTimer);\n\t this.autoFilterTimer = null;\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Filter's keyup event: if auto-filter on, detect user is typing and filter\n\t * columns\n\t * @param {Event} evt\n\t */\n\t\n\t\n\t TableFilter.prototype.onKeyUp = function onKeyUp(evt) {\n\t if (!this.autoFilter) {\n\t return;\n\t }\n\t var key = (0, _event.keyCode)(evt);\n\t this.isUserTyping = false;\n\t\n\t function filter() {\n\t _root.root.clearInterval(this.autoFilterTimer);\n\t this.autoFilterTimer = null;\n\t if (!this.isUserTyping) {\n\t this.filter();\n\t this.isUserTyping = null;\n\t }\n\t }\n\t\n\t if (key !== _const.ENTER_KEY && key !== _const.TAB_KEY && key !== _const.ESC_KEY && key !== _const.UP_ARROW_KEY && key !== _const.DOWN_ARROW_KEY) {\n\t if (this.autoFilterTimer === null) {\n\t this.autoFilterTimer = _root.root.setInterval(filter.bind(this), this.autoFilterDelay);\n\t }\n\t } else {\n\t _root.root.clearInterval(this.autoFilterTimer);\n\t this.autoFilterTimer = null;\n\t }\n\t };\n\t\n\t /**\n\t * Filter's keydown event: if auto-filter on, detect user is typing\n\t */\n\t\n\t\n\t TableFilter.prototype.onKeyDown = function onKeyDown() {\n\t if (this.autoFilter) {\n\t this.isUserTyping = true;\n\t }\n\t };\n\t\n\t /**\n\t * Filter's focus event\n\t * @param {Event} evt\n\t */\n\t\n\t\n\t TableFilter.prototype.onInpFocus = function onInpFocus(evt) {\n\t var elm = (0, _event.targetEvt)(evt);\n\t this.emitter.emit('filter-focus', this, elm);\n\t };\n\t\n\t /**\n\t * Filter's blur event: if auto-filter on, clear interval on filter blur\n\t */\n\t\n\t\n\t TableFilter.prototype.onInpBlur = function onInpBlur() {\n\t if (this.autoFilter) {\n\t this.isUserTyping = false;\n\t _root.root.clearInterval(this.autoFilterTimer);\n\t }\n\t this.emitter.emit('filter-blur', this);\n\t };\n\t\n\t /**\n\t * Insert filters row at initialization\n\t */\n\t\n\t\n\t TableFilter.prototype._insertFiltersRow = function _insertFiltersRow() {\n\t // TODO: prevent filters row generation for popup filters too,\n\t // to reduce and simplify headers row index adjusting across lib modules\n\t // (GridLayout, PopupFilter etc)\n\t if (this.gridLayout) {\n\t return;\n\t }\n\t var fltrow = void 0;\n\t\n\t var thead = (0, _dom.tag)(this.tbl, 'thead');\n\t if (thead.length > 0) {\n\t fltrow = thead[0].insertRow(this.filtersRowIndex);\n\t } else {\n\t fltrow = this.tbl.insertRow(this.filtersRowIndex);\n\t }\n\t\n\t fltrow.className = this.fltsRowCssClass;\n\t\n\t if (this.isExternalFlt) {\n\t fltrow.style.display = _const.NONE;\n\t }\n\t\n\t this.emitter.emit('filters-row-inserted', this, fltrow);\n\t return fltrow;\n\t };\n\t\n\t /**\n\t * Initialize filtersless table\n\t */\n\t\n\t\n\t TableFilter.prototype._initNoFilters = function _initNoFilters() {\n\t if (this.fltGrid) {\n\t return;\n\t }\n\t this.refRow = this.refRow > 0 ? this.refRow - 1 : 0;\n\t this.nbFilterableRows = this.getRowsNb();\n\t };\n\t\n\t /**\n\t * Build input filter type\n\t * @param {Number} colIndex Column index\n\t * @param {String} cssClass Css class applied to filter\n\t * @param {DOMElement} container Container DOM element\n\t */\n\t\n\t\n\t TableFilter.prototype._buildInputFilter = function _buildInputFilter(colIndex, cssClass, container) {\n\t var _this3 = this;\n\t\n\t var col = this.getFilterType(colIndex);\n\t var externalFltTgtId = this.isExternalFlt ? this.externalFltTgtIds[colIndex] : null;\n\t var inpType = col === _const.INPUT ? 'text' : 'hidden';\n\t var inp = (0, _dom.createElm)(_const.INPUT, ['id', this.buildFilterId(colIndex)], ['type', inpType], ['ct', colIndex]);\n\t\n\t if (inpType !== 'hidden' && this.watermark) {\n\t inp.setAttribute('placeholder', this.isWatermarkArray ? this.watermark[colIndex] || '' : this.watermark);\n\t }\n\t inp.className = cssClass || this.fltCssClass;\n\t (0, _event.addEvt)(inp, 'focus', function (evt) {\n\t return _this3.onInpFocus(evt);\n\t });\n\t\n\t //filter is appended in custom element\n\t if (externalFltTgtId) {\n\t (0, _dom.elm)(externalFltTgtId).appendChild(inp);\n\t } else {\n\t container.appendChild(inp);\n\t }\n\t\n\t this.fltIds.push(inp.id);\n\t\n\t (0, _event.addEvt)(inp, 'keypress', function (evt) {\n\t return _this3.detectKey(evt);\n\t });\n\t (0, _event.addEvt)(inp, 'keydown', function () {\n\t return _this3.onKeyDown();\n\t });\n\t (0, _event.addEvt)(inp, 'keyup', function (evt) {\n\t return _this3.onKeyUp(evt);\n\t });\n\t (0, _event.addEvt)(inp, 'blur', function () {\n\t return _this3.onInpBlur();\n\t });\n\t };\n\t\n\t /**\n\t * Build submit button\n\t * @param {Number} colIndex Column index\n\t * @param {DOMElement} container Container DOM element\n\t */\n\t\n\t\n\t TableFilter.prototype._buildSubmitButton = function _buildSubmitButton(colIndex, container) {\n\t var _this4 = this;\n\t\n\t var externalFltTgtId = this.isExternalFlt ? this.externalFltTgtIds[colIndex] : null;\n\t var btn = (0, _dom.createElm)(_const.INPUT, ['type', 'button'], ['value', this.btnText]);\n\t btn.className = this.btnCssClass;\n\t\n\t //filter is appended in custom element\n\t if (externalFltTgtId) {\n\t (0, _dom.elm)(externalFltTgtId).appendChild(btn);\n\t } else {\n\t container.appendChild(btn);\n\t }\n\t\n\t (0, _event.addEvt)(btn, 'click', function () {\n\t return _this4.filter();\n\t });\n\t };\n\t\n\t /**\n\t * Return a feature instance for a given name\n\t * @param {String} name Name of the feature\n\t * @return {Object}\n\t */\n\t\n\t\n\t TableFilter.prototype.feature = function feature(name) {\n\t return this.Mod[name];\n\t };\n\t\n\t /**\n\t * Initialise all the extensions defined in the configuration object\n\t */\n\t\n\t\n\t TableFilter.prototype.initExtensions = function initExtensions() {\n\t var exts = this.extensions;\n\t // Set config's publicPath dynamically for Webpack...\n\t __webpack_require__.p = this.basePath;\n\t\n\t this.emitter.emit('before-loading-extensions', this);\n\t for (var i = 0, len = exts.length; i < len; i++) {\n\t var ext = exts[i];\n\t if (!this.ExtRegistry[ext.name]) {\n\t this.loadExtension(ext);\n\t }\n\t }\n\t this.emitter.emit('after-loading-extensions', this);\n\t };\n\t\n\t /**\n\t * Load an extension module\n\t * @param {Object} ext Extension config object\n\t */\n\t\n\t\n\t TableFilter.prototype.loadExtension = function loadExtension(ext) {\n\t var _this5 = this;\n\t\n\t if (!ext || !ext.name) {\n\t return;\n\t }\n\t\n\t var name = ext.name;\n\t var path = ext.path;\n\t var modulePath = void 0;\n\t\n\t if (name && path) {\n\t modulePath = ext.path + name;\n\t } else {\n\t name = name.replace('.js', '');\n\t modulePath = 'extensions/{}/{}'.replace(/{}/g, name);\n\t }\n\t\n\t // Require pattern for Webpack\n\t __webpack_require__.e/* require */(1, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(435)(\"./\" + modulePath)]; (function (mod) {\n\t /* eslint-disable */\n\t var inst = new mod.default(_this5, ext);\n\t /* eslint-enable */\n\t inst.init();\n\t _this5.ExtRegistry[name] = inst;\n\t }.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});\n\t };\n\t\n\t /**\n\t * Get an extension instance\n\t * @param {String} name Name of the extension\n\t * @return {Object} Extension instance\n\t */\n\t\n\t\n\t TableFilter.prototype.extension = function extension(name) {\n\t return this.ExtRegistry[name];\n\t };\n\t\n\t /**\n\t * Check passed extension name exists\n\t * @param {String} name Name of the extension\n\t * @return {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.hasExtension = function hasExtension(name) {\n\t return !(0, _types.isEmpty)(this.ExtRegistry[name]);\n\t };\n\t\n\t /**\n\t * Destroy all the extensions defined in the configuration object\n\t */\n\t\n\t\n\t TableFilter.prototype.destroyExtensions = function destroyExtensions() {\n\t var exts = this.extensions;\n\t\n\t for (var i = 0, len = exts.length; i < len; i++) {\n\t var ext = exts[i];\n\t var extInstance = this.ExtRegistry[ext.name];\n\t if (extInstance) {\n\t extInstance.destroy();\n\t this.ExtRegistry[ext.name] = undefined;\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Load themes defined in the configuration object\n\t */\n\t\n\t\n\t TableFilter.prototype.loadThemes = function loadThemes() {\n\t var themes = this.themes;\n\t this.emitter.emit('before-loading-themes', this);\n\t\n\t //Default theme config\n\t if (this.enableDefaultTheme) {\n\t var defaultTheme = { name: 'default' };\n\t this.themes.push(defaultTheme);\n\t }\n\t if ((0, _types.isArray)(themes)) {\n\t for (var i = 0, len = themes.length; i < len; i++) {\n\t var theme = themes[i];\n\t var name = theme.name;\n\t var path = theme.path;\n\t var styleId = this.prfxTf + name;\n\t if (name && !path) {\n\t path = this.themesPath + name + '/' + name + '.css';\n\t } else if (!name && theme.path) {\n\t name = 'theme{0}'.replace('{0}', i);\n\t }\n\t\n\t if (!this.isImported(path, 'link')) {\n\t this.import(styleId, path, null, 'link');\n\t }\n\t }\n\t }\n\t\n\t // Enable loader indicator\n\t this.loader = true;\n\t\n\t this.emitter.emit('after-loading-themes', this);\n\t };\n\t\n\t /**\n\t * Return stylesheet DOM element for a given theme name\n\t * @return {DOMElement} stylesheet element\n\t */\n\t\n\t\n\t TableFilter.prototype.getStylesheet = function getStylesheet() {\n\t var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'default';\n\t\n\t return (0, _dom.elm)(this.prfxTf + name);\n\t };\n\t\n\t /**\n\t * Destroy filter grid\n\t */\n\t\n\t\n\t TableFilter.prototype.destroy = function destroy() {\n\t var _this6 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t var emitter = this.emitter;\n\t\n\t if (this.isExternalFlt && !this.popupFilters) {\n\t this.removeExternalFlts();\n\t }\n\t if (this.infDiv) {\n\t this.removeToolbar();\n\t }\n\t if (this.markActiveColumns) {\n\t this.clearActiveColumns();\n\t emitter.off(['before-filtering'], function () {\n\t return _this6.clearActiveColumns();\n\t });\n\t emitter.off(['cell-processed'], function (tf, colIndex) {\n\t return _this6.markActiveColumn(colIndex);\n\t });\n\t }\n\t if (this.hasExtensions) {\n\t this.destroyExtensions();\n\t }\n\t\n\t this.validateAllRows();\n\t\n\t if (this.fltGrid && !this.gridLayout) {\n\t this.tbl.deleteRow(this.filtersRowIndex);\n\t }\n\t\n\t // broadcast destroy event\n\t emitter.emit('destroy', this);\n\t\n\t // unsubscribe to events\n\t if (this.hasVisibleRows) {\n\t emitter.off(['after-filtering'], function () {\n\t return _this6.enforceVisibility();\n\t });\n\t }\n\t if (this.linkedFilters) {\n\t emitter.off(['after-filtering'], function () {\n\t return _this6.linkFilters();\n\t });\n\t }\n\t this.emitter.off(['filter-focus'], function (tf, filter) {\n\t return _this6.setActiveFilterId(filter.id);\n\t });\n\t\n\t (0, _dom.removeClass)(this.tbl, this.prfxTf);\n\t (0, _dom.removeClass)(this.tbl, this.prfxResponsive);\n\t\n\t this.nbHiddenRows = 0;\n\t this.validRowsIndex = [];\n\t this.fltIds = [];\n\t this.initialized = false;\n\t };\n\t\n\t /**\n\t * Generate container element for paging, reset button, rows counter etc.\n\t */\n\t\n\t\n\t TableFilter.prototype.setToolbar = function setToolbar() {\n\t if (this.infDiv) {\n\t return;\n\t }\n\t\n\t /*** container div ***/\n\t var infDiv = (0, _dom.createElm)('div');\n\t infDiv.className = this.infDivCssClass;\n\t\n\t //custom container\n\t if (this.toolBarTgtId) {\n\t (0, _dom.elm)(this.toolBarTgtId).appendChild(infDiv);\n\t }\n\t //grid-layout\n\t else if (this.gridLayout) {\n\t var gridLayout = this.Mod.gridLayout;\n\t gridLayout.tblMainCont.appendChild(infDiv);\n\t infDiv.className = gridLayout.infDivCssClass;\n\t }\n\t //default location: just above the table\n\t else {\n\t var cont = (0, _dom.createElm)('caption');\n\t cont.appendChild(infDiv);\n\t this.tbl.insertBefore(cont, this.tbl.firstChild);\n\t }\n\t this.infDiv = infDiv;\n\t\n\t /*** left div containing rows # displayer ***/\n\t var lDiv = (0, _dom.createElm)('div');\n\t lDiv.className = this.lDivCssClass;\n\t infDiv.appendChild(lDiv);\n\t this.lDiv = lDiv;\n\t\n\t /*** right div containing reset button\n\t + nb results per page select ***/\n\t var rDiv = (0, _dom.createElm)('div');\n\t rDiv.className = this.rDivCssClass;\n\t infDiv.appendChild(rDiv);\n\t this.rDiv = rDiv;\n\t\n\t /*** mid div containing paging elements ***/\n\t var mDiv = (0, _dom.createElm)('div');\n\t mDiv.className = this.mDivCssClass;\n\t infDiv.appendChild(mDiv);\n\t this.mDiv = mDiv;\n\t\n\t // emit help initialisation only if undefined\n\t if ((0, _types.isUndef)(this.help)) {\n\t // explicitily set enabled field to true to initialise help by\n\t // default, only if setting is undefined\n\t this.Mod.help.enabled = true;\n\t this.emitter.emit('init-help', this);\n\t }\n\t };\n\t\n\t /**\n\t * Remove toolbar container element\n\t */\n\t\n\t\n\t TableFilter.prototype.removeToolbar = function removeToolbar() {\n\t if (!this.infDiv) {\n\t return;\n\t }\n\t (0, _dom.removeElm)(this.infDiv);\n\t this.infDiv = null;\n\t\n\t var tbl = this.tbl;\n\t var captions = (0, _dom.tag)(tbl, 'caption');\n\t if (captions.length > 0) {\n\t [].forEach.call(captions, function (elm) {\n\t return tbl.removeChild(elm);\n\t });\n\t }\n\t };\n\t\n\t /**\n\t * Remove all the external column filters\n\t */\n\t\n\t\n\t TableFilter.prototype.removeExternalFlts = function removeExternalFlts() {\n\t if (!this.isExternalFlt) {\n\t return;\n\t }\n\t var ids = this.externalFltTgtIds,\n\t len = ids.length;\n\t for (var ct = 0; ct < len; ct++) {\n\t var externalFltTgtId = ids[ct],\n\t externalFlt = (0, _dom.elm)(externalFltTgtId);\n\t if (externalFlt) {\n\t externalFlt.innerHTML = '';\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Check if given column implements a filter with custom options\n\t * @param {Number} colIndex Column's index\n\t * @return {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.isCustomOptions = function isCustomOptions(colIndex) {\n\t return this.hasCustomOptions && this.customOptions.cols.indexOf(colIndex) !== -1;\n\t };\n\t\n\t /**\n\t * Returns an array [[value0, value1 ...],[text0, text1 ...]] with the\n\t * custom options values and texts\n\t * @param {Number} colIndex Column's index\n\t * @return {Array}\n\t */\n\t\n\t\n\t TableFilter.prototype.getCustomOptions = function getCustomOptions(colIndex) {\n\t if ((0, _types.isEmpty)(colIndex) || !this.isCustomOptions(colIndex)) {\n\t return;\n\t }\n\t\n\t var customOptions = this.customOptions;\n\t var cols = customOptions.cols;\n\t var optTxt = [],\n\t optArray = [];\n\t var index = cols.indexOf(colIndex);\n\t var slcValues = customOptions.values[index];\n\t var slcTexts = customOptions.texts[index];\n\t var slcSort = customOptions.sorts[index];\n\t\n\t for (var r = 0, len = slcValues.length; r < len; r++) {\n\t optArray.push(slcValues[r]);\n\t if (slcTexts[r]) {\n\t optTxt.push(slcTexts[r]);\n\t } else {\n\t optTxt.push(slcValues[r]);\n\t }\n\t }\n\t if (slcSort) {\n\t optArray.sort();\n\t optTxt.sort();\n\t }\n\t return [optArray, optTxt];\n\t };\n\t\n\t /**\n\t * Filter the table by retrieving the data from each cell in every single\n\t * row and comparing it to the search term for current column. A row is\n\t * hidden when all the search terms are not found in inspected row.\n\t */\n\t\n\t\n\t TableFilter.prototype.filter = function filter() {\n\t if (!this.fltGrid || !this.initialized) {\n\t return;\n\t }\n\t //fire onbefore callback\n\t this.onBeforeFilter(this);\n\t this.emitter.emit('before-filtering', this);\n\t\n\t var row = this.tbl.rows,\n\t nbRows = this.getRowsNb(true),\n\t hiddenRows = 0;\n\t\n\t this.validRowsIndex = [];\n\t // search args re-init\n\t var searchArgs = this.getFiltersValue();\n\t\n\t for (var k = this.refRow; k < nbRows; k++) {\n\t // already filtered rows display re-init\n\t row[k].style.display = '';\n\t\n\t var cells = row[k].cells;\n\t var nchilds = cells.length;\n\t\n\t // checks if row has exact cell #\n\t if (nchilds !== this.nbCells) {\n\t continue;\n\t }\n\t\n\t var occurence = [],\n\t isRowValid = true,\n\t\n\t //only for single filter search\n\t singleFltRowValid = false;\n\t\n\t // this loop retrieves cell data\n\t for (var j = 0; j < nchilds; j++) {\n\t //searched keyword\n\t var sA = searchArgs[this.singleSearchFlt ? 0 : j];\n\t\n\t if (sA === '') {\n\t continue;\n\t }\n\t\n\t var cellValue = (0, _string.matchCase)(this.getCellValue(cells[j]), this.caseSensitive);\n\t\n\t //multiple search parameter operator ||\n\t var sAOrSplit = sA.toString().split(this.orOperator),\n\t\n\t //multiple search || parameter boolean\n\t hasMultiOrSA = sAOrSplit.length > 1,\n\t\n\t //multiple search parameter operator &&\n\t sAAndSplit = sA.toString().split(this.anOperator),\n\t\n\t //multiple search && parameter boolean\n\t hasMultiAndSA = sAAndSplit.length > 1;\n\t\n\t //detect operators or array query\n\t if ((0, _types.isArray)(sA) || hasMultiOrSA || hasMultiAndSA) {\n\t var cS = void 0,\n\t s = void 0,\n\t occur = false;\n\t if ((0, _types.isArray)(sA)) {\n\t s = sA;\n\t } else {\n\t s = hasMultiOrSA ? sAOrSplit : sAAndSplit;\n\t }\n\t // isolate search term and check occurence in cell data\n\t for (var w = 0, len = s.length; w < len; w++) {\n\t cS = (0, _string.trim)(s[w]);\n\t occur = this._testTerm(cS, cellValue, j);\n\t\n\t if (occur) {\n\t this.emitter.emit('highlight-keyword', this, cells[j], cS);\n\t }\n\t if (hasMultiOrSA && occur || hasMultiAndSA && !occur) {\n\t break;\n\t }\n\t if ((0, _types.isArray)(sA) && occur) {\n\t break;\n\t }\n\t }\n\t occurence[j] = occur;\n\t }\n\t //single search parameter\n\t else {\n\t occurence[j] = this._testTerm((0, _string.trim)(sA), cellValue, j);\n\t if (occurence[j]) {\n\t this.emitter.emit('highlight-keyword', this, cells[j], sA);\n\t }\n\t } //else single param\n\t\n\t if (!occurence[j]) {\n\t isRowValid = false;\n\t }\n\t if (this.singleSearchFlt && occurence[j]) {\n\t singleFltRowValid = true;\n\t }\n\t\n\t this.emitter.emit('cell-processed', this, j, cells[j]);\n\t } //for j\n\t\n\t if (this.singleSearchFlt && singleFltRowValid) {\n\t isRowValid = true;\n\t }\n\t\n\t this.validateRow(k, isRowValid);\n\t if (!isRowValid) {\n\t hiddenRows++;\n\t }\n\t\n\t this.emitter.emit('row-processed', this, k, this.validRowsIndex.length, isRowValid);\n\t } // for k\n\t\n\t this.nbHiddenRows = hiddenRows;\n\t\n\t //fire onafterfilter callback\n\t this.onAfterFilter(this);\n\t\n\t this.emitter.emit('after-filtering', this, searchArgs);\n\t };\n\t\n\t /**\n\t * Test for a match of search term in cell data\n\t * @param {String} term Search term\n\t * @param {String} cellValue Cell data\n\t * @param {Number} colIdx Column index\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype._testTerm = function _testTerm(term, cellValue, colIdx) {\n\t var numData = void 0;\n\t var decimal = this.decimalSeparator;\n\t var reLe = new RegExp(this.leOperator),\n\t reGe = new RegExp(this.geOperator),\n\t reL = new RegExp(this.lwOperator),\n\t reG = new RegExp(this.grOperator),\n\t reD = new RegExp(this.dfOperator),\n\t reLk = new RegExp((0, _string.rgxEsc)(this.lkOperator)),\n\t reEq = new RegExp(this.eqOperator),\n\t reSt = new RegExp(this.stOperator),\n\t reEn = new RegExp(this.enOperator),\n\t\n\t // re_an = new RegExp(this.anOperator),\n\t // re_cr = new RegExp(this.curExp),\n\t reEm = this.emOperator,\n\t reNm = this.nmOperator,\n\t reRe = new RegExp((0, _string.rgxEsc)(this.rgxOperator));\n\t\n\t term = (0, _string.matchCase)(term, this.caseSensitive);\n\t\n\t var occurence = false;\n\t\n\t //Search arg operator tests\n\t var hasLO = reL.test(term),\n\t hasLE = reLe.test(term),\n\t hasGR = reG.test(term),\n\t hasGE = reGe.test(term),\n\t hasDF = reD.test(term),\n\t hasEQ = reEq.test(term),\n\t hasLK = reLk.test(term),\n\t\n\t // hatermN = re_an.test(term),\n\t hasST = reSt.test(term),\n\t hasEN = reEn.test(term),\n\t hasEM = reEm === term,\n\t hasNM = reNm === term,\n\t hasRE = reRe.test(term);\n\t\n\t // Check for dates or resolve date type\n\t if (this.hasType(colIdx, [_const.DATE])) {\n\t var dte1 = void 0,\n\t dte2 = void 0;\n\t\n\t var dateType = this.Mod.dateType;\n\t var isValidDate = dateType.isValid.bind(dateType);\n\t var parseDate = dateType.parse.bind(dateType);\n\t var locale = dateType.getOptions(colIdx).locale || this.locale;\n\t\n\t // Search arg dates tests\n\t var isLDate = hasLO && isValidDate(term.replace(reL, ''), locale);\n\t var isLEDate = hasLE && isValidDate(term.replace(reLe, ''), locale);\n\t var isGDate = hasGR && isValidDate(term.replace(reG, ''), locale);\n\t var isGEDate = hasGE && isValidDate(term.replace(reGe, ''), locale);\n\t var isDFDate = hasDF && isValidDate(term.replace(reD, ''), locale);\n\t var isEQDate = hasEQ && isValidDate(term.replace(reEq, ''), locale);\n\t\n\t dte1 = parseDate(cellValue, locale);\n\t\n\t // lower equal date\n\t if (isLEDate) {\n\t dte2 = parseDate(term.replace(reLe, ''), locale);\n\t occurence = dte1 <= dte2;\n\t }\n\t // lower date\n\t else if (isLDate) {\n\t dte2 = parseDate(term.replace(reL, ''), locale);\n\t occurence = dte1 < dte2;\n\t }\n\t // greater equal date\n\t else if (isGEDate) {\n\t dte2 = parseDate(term.replace(reGe, ''), locale);\n\t occurence = dte1 >= dte2;\n\t }\n\t // greater date\n\t else if (isGDate) {\n\t dte2 = parseDate(term.replace(reG, ''), locale);\n\t occurence = dte1 > dte2;\n\t }\n\t // different date\n\t else if (isDFDate) {\n\t dte2 = parseDate(term.replace(reD, ''), locale);\n\t occurence = dte1.toString() !== dte2.toString();\n\t }\n\t // equal date\n\t else if (isEQDate) {\n\t dte2 = parseDate(term.replace(reEq, ''), locale);\n\t occurence = dte1.toString() === dte2.toString();\n\t }\n\t // searched keyword with * operator doesn't have to be a date\n\t else if (reLk.test(term)) {\n\t // like date\n\t occurence = (0, _string.contains)(term.replace(reLk, ''), cellValue, false, this.caseSensitive);\n\t } else if (isValidDate(term)) {\n\t dte2 = parseDate(term, locale);\n\t occurence = dte1.toString() === dte2.toString();\n\t }\n\t //empty\n\t else if (hasEM) {\n\t occurence = (0, _string.isEmpty)(cellValue);\n\t }\n\t //non-empty\n\t else if (hasNM) {\n\t occurence = !(0, _string.isEmpty)(cellValue);\n\t } else {\n\t occurence = (0, _string.contains)(term, cellValue, this.isExactMatch(colIdx), this.caseSensitive);\n\t }\n\t } else {\n\t if (this.hasType(colIdx, [_const.FORMATTED_NUMBER])) {\n\t var colType = this.colTypes[colIdx];\n\t if (colType.hasOwnProperty('decimal')) {\n\t decimal = colType.decimal;\n\t }\n\t }\n\t // Convert to number anyways to auto-resolve type in case not\n\t // defined by configuration\n\t numData = Number(cellValue) || (0, _number.parse)(cellValue, decimal);\n\t\n\t // first checks if there is any operator (<,>,<=,>=,!,*,=,{,},\n\t // rgx:)\n\t // lower equal\n\t if (hasLE) {\n\t occurence = numData <= (0, _number.parse)(term.replace(reLe, ''), decimal);\n\t }\n\t //greater equal\n\t else if (hasGE) {\n\t occurence = numData >= (0, _number.parse)(term.replace(reGe, ''), decimal);\n\t }\n\t //lower\n\t else if (hasLO) {\n\t occurence = numData < (0, _number.parse)(term.replace(reL, ''), decimal);\n\t }\n\t //greater\n\t else if (hasGR) {\n\t occurence = numData > (0, _number.parse)(term.replace(reG, ''), decimal);\n\t }\n\t //different\n\t else if (hasDF) {\n\t occurence = (0, _string.contains)(term.replace(reD, ''), cellValue, false, this.caseSensitive) ? false : true;\n\t }\n\t //like\n\t else if (hasLK) {\n\t occurence = (0, _string.contains)(term.replace(reLk, ''), cellValue, false, this.caseSensitive);\n\t }\n\t //equal\n\t else if (hasEQ) {\n\t occurence = (0, _string.contains)(term.replace(reEq, ''), cellValue, true, this.caseSensitive);\n\t }\n\t //starts with\n\t else if (hasST) {\n\t occurence = cellValue.indexOf(term.replace(reSt, '')) === 0 ? true : false;\n\t }\n\t //ends with\n\t else if (hasEN) {\n\t var searchArg = term.replace(reEn, '');\n\t occurence = cellValue.lastIndexOf(searchArg, cellValue.length - 1) === cellValue.length - 1 - (searchArg.length - 1) && cellValue.lastIndexOf(searchArg, cellValue.length - 1) > -1 ? true : false;\n\t }\n\t //empty\n\t else if (hasEM) {\n\t occurence = (0, _string.isEmpty)(cellValue);\n\t }\n\t //non-empty\n\t else if (hasNM) {\n\t occurence = !(0, _string.isEmpty)(cellValue);\n\t }\n\t //regexp\n\t else if (hasRE) {\n\t //in case regexp throws\n\t try {\n\t //operator is removed\n\t var srchArg = term.replace(reRe, '');\n\t var rgx = new RegExp(srchArg);\n\t occurence = rgx.test(cellValue);\n\t } catch (ex) {\n\t occurence = false;\n\t }\n\t } else {\n\t // If numeric type data, perform a strict equality test and\n\t // fallback to unformatted number string comparison\n\t if (numData && this.hasType(colIdx, [_const.NUMBER, _const.FORMATTED_NUMBER]) && !this.singleSearchFlt) {\n\t // parseNb can return 0 for strings which are not\n\t // formatted numbers, in that case return the original\n\t // string. TODO: handle this in parseNb\n\t term = (0, _number.parse)(term, decimal) || term;\n\t occurence = numData === term || (0, _string.contains)(term.toString(), numData.toString(), this.isExactMatch(colIdx), this.caseSensitive);\n\t } else {\n\t // Finally test search term is contained in cell data\n\t occurence = (0, _string.contains)(term, cellValue, this.isExactMatch(colIdx), this.caseSensitive, this.ignoresDiacritics(colIdx));\n\t }\n\t }\n\t } //else\n\t\n\t return occurence;\n\t };\n\t\n\t /**\n\t * Return the data of a specified column\n\t * @param {Number} colIndex Column index\n\t * @param {Boolean} [includeHeaders=false] Include headers row\n\t * @param {Boolean} [typed=true] Return a typed value\n\t * @param {Array} [exclude=[]] List of row indexes to be excluded\n\t * @return {Array} Flat list of data for a column\n\t */\n\t\n\t\n\t TableFilter.prototype.getColValues = function getColValues(colIndex) {\n\t var includeHeaders = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t var typed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\t var exclude = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n\t\n\t var row = this.tbl.rows;\n\t var nbRows = this.getRowsNb(true);\n\t var colValues = [];\n\t var getContent = typed ? this.getCellData.bind(this) : this.getCellValue.bind(this);\n\t\n\t if (includeHeaders) {\n\t colValues.push(this.getHeadersText()[colIndex]);\n\t }\n\t\n\t for (var i = this.refRow; i < nbRows; i++) {\n\t var isExludedRow = false;\n\t // checks if current row index appears in exclude array\n\t if (exclude.length > 0) {\n\t isExludedRow = exclude.indexOf(i) !== -1;\n\t }\n\t var cell = row[i].cells,\n\t nchilds = cell.length;\n\t\n\t // checks if row has exact cell # and is not excluded\n\t if (nchilds === this.nbCells && !isExludedRow) {\n\t // this loop retrieves cell data\n\t for (var j = 0; j < nchilds; j++) {\n\t if (j !== colIndex) {\n\t continue;\n\t }\n\t var data = getContent(cell[j]);\n\t colValues.push(data);\n\t }\n\t }\n\t }\n\t return colValues;\n\t };\n\t\n\t /**\n\t * Return the filter's value of a specified column\n\t * @param {Number} index Column index\n\t * @return {String} Filter value\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilterValue = function getFilterValue(index) {\n\t if (!this.fltGrid) {\n\t return;\n\t }\n\t var fltValue = '';\n\t var flt = this.getFilterElement(index);\n\t if (!flt) {\n\t return fltValue;\n\t }\n\t\n\t var fltColType = this.getFilterType(index);\n\t if (fltColType !== _const.MULTIPLE && fltColType !== _const.CHECKLIST) {\n\t fltValue = flt.value;\n\t }\n\t //mutiple select\n\t else if (fltColType === _const.MULTIPLE) {\n\t fltValue = this.feature('dropdown').getValues(index);\n\t }\n\t //checklist\n\t else if (fltColType === _const.CHECKLIST) {\n\t fltValue = this.feature('checkList').getValues(index);\n\t }\n\t //return an empty string if collection is empty or contains a single\n\t //empty string\n\t if ((0, _types.isArray)(fltValue) && fltValue.length === 0 || fltValue.length === 1 && fltValue[0] === '') {\n\t fltValue = '';\n\t }\n\t\n\t return fltValue;\n\t };\n\t\n\t /**\n\t * Return the filters' values\n\t * @return {Array} List of filters' values\n\t */\n\t\n\t\n\t TableFilter.prototype.getFiltersValue = function getFiltersValue() {\n\t if (!this.fltGrid) {\n\t return;\n\t }\n\t var searchArgs = [];\n\t for (var i = 0, len = this.fltIds.length; i < len; i++) {\n\t var fltValue = this.getFilterValue(i);\n\t if ((0, _types.isArray)(fltValue)) {\n\t searchArgs.push(fltValue);\n\t } else {\n\t searchArgs.push((0, _string.trim)(fltValue));\n\t }\n\t }\n\t return searchArgs;\n\t };\n\t\n\t /**\n\t * Return the ID of a specified column's filter\n\t * @param {Number} index Column's index\n\t * @return {String} ID of the filter element\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilterId = function getFilterId(index) {\n\t if (!this.fltGrid) {\n\t return;\n\t }\n\t return this.fltIds[index];\n\t };\n\t\n\t /**\n\t * Return the list of ids of filters matching a specified type.\n\t * Note: hidden filters are also returned\n\t *\n\t * @param {String} type Filter type string ('input', 'select', 'multiple',\n\t * 'checklist')\n\t * @param {Boolean} bool If true returns columns indexes instead of IDs\n\t * @return {[type]} List of element IDs or column indexes\n\t */\n\t\n\t\n\t TableFilter.prototype.getFiltersByType = function getFiltersByType(type, bool) {\n\t if (!this.fltGrid) {\n\t return;\n\t }\n\t var arr = [];\n\t for (var i = 0, len = this.fltIds.length; i < len; i++) {\n\t var fltType = this.getFilterType(i);\n\t if (fltType === type.toLowerCase()) {\n\t var a = bool ? i : this.fltIds[i];\n\t arr.push(a);\n\t }\n\t }\n\t return arr;\n\t };\n\t\n\t /**\n\t * Return the filter's DOM element for a given column\n\t * @param {Number} index Column's index\n\t * @return {DOMElement}\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilterElement = function getFilterElement(index) {\n\t var fltId = this.fltIds[index];\n\t return (0, _dom.elm)(fltId);\n\t };\n\t\n\t /**\n\t * Return the number of cells for a given row index\n\t * @param {Number} rowIndex Index of the row\n\t * @return {Number} Number of cells\n\t */\n\t\n\t\n\t TableFilter.prototype.getCellsNb = function getCellsNb() {\n\t var rowIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n\t\n\t var tr = this.tbl.rows[rowIndex >= 0 ? rowIndex : 0];\n\t return tr ? tr.cells.length : 0;\n\t };\n\t\n\t /**\n\t * Return the number of filterable rows starting from reference row if\n\t * defined\n\t * @param {Boolean} includeHeaders Include the headers row\n\t * @return {Number} Number of filterable rows\n\t */\n\t\n\t\n\t TableFilter.prototype.getRowsNb = function getRowsNb(includeHeaders) {\n\t var s = (0, _types.isUndef)(this.refRow) ? 0 : this.refRow;\n\t var ntrs = this.tbl.rows.length;\n\t if (includeHeaders) {\n\t s = 0;\n\t }\n\t return parseInt(ntrs - s, 10);\n\t };\n\t\n\t /**\n\t * Return the text content of a given cell\n\t * @param {DOMElement} Cell's DOM element\n\t * @returns {String}\n\t */\n\t\n\t\n\t TableFilter.prototype.getCellValue = function getCellValue(cell) {\n\t var idx = cell.cellIndex;\n\t //CallcustomCellData callback\n\t if (this.customCellDataCols.indexOf(idx) !== -1) {\n\t return this.customCellData(this, cell, idx);\n\t } else {\n\t return (0, _dom.getText)(cell);\n\t }\n\t };\n\t\n\t /**\n\t * Return the typed data of a given cell based on the column type definition\n\t * @param {DOMElement} cell Cell's DOM element\n\t * @return {String|Number|Date}\n\t */\n\t\n\t\n\t TableFilter.prototype.getCellData = function getCellData(cell) {\n\t var colIndex = cell.cellIndex;\n\t var value = this.getCellValue(cell);\n\t\n\t if (this.hasType(colIndex, [_const.FORMATTED_NUMBER])) {\n\t var decimal = this.decimalSeparator;\n\t var colType = this.colTypes[colIndex];\n\t if (colType.hasOwnProperty('decimal')) {\n\t decimal = colType.decimal;\n\t }\n\t return (0, _number.parse)(value, decimal);\n\t } else if (this.hasType(colIndex, [_const.NUMBER])) {\n\t return Number(value);\n\t } else if (this.hasType(colIndex, [_const.DATE])) {\n\t var dateType = this.Mod.dateType;\n\t var locale = dateType.getOptions(colIndex).locale || this.locale;\n\t return dateType.parse(value, locale);\n\t }\n\t\n\t return value;\n\t };\n\t\n\t /**\n\t * Return the table data with following format:\n\t * [\n\t * [rowIndex, [value0, value1...]],\n\t * [rowIndex, [value0, value1...]]\n\t * ]\n\t * @param {Boolean} [includeHeaders=false] Include headers row\n\t * @param {Boolean} [excludeHiddenCols=false] Exclude hidden columns\n\t * @param {Boolean} [typed=false] Return typed value\n\t * @return {Array}\n\t *\n\t * TODO: provide an API returning data in JSON format\n\t */\n\t\n\t\n\t TableFilter.prototype.getTableData = function getTableData() {\n\t var includeHeaders = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\t var excludeHiddenCols = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t var typed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\t\n\t var rows = this.tbl.rows;\n\t var nbRows = this.getRowsNb(true);\n\t var tblData = [];\n\t var getContent = typed ? this.getCellData.bind(this) : this.getCellValue.bind(this);\n\t\n\t if (includeHeaders) {\n\t var headers = this.getHeadersText(excludeHiddenCols);\n\t tblData.push([this.getHeadersRowIndex(), headers]);\n\t }\n\t for (var k = this.refRow; k < nbRows; k++) {\n\t var rowData = [k, []];\n\t var cells = rows[k].cells;\n\t for (var j = 0, len = cells.length; j < len; j++) {\n\t if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n\t if (this.extension('colsVisibility').isColHidden(j)) {\n\t continue;\n\t }\n\t }\n\t var cellValue = getContent(cells[j]);\n\t rowData[1].push(cellValue);\n\t }\n\t tblData.push(rowData);\n\t }\n\t return tblData;\n\t };\n\t\n\t /**\n\t * Return the filtered data with following format:\n\t * [\n\t * [rowIndex, [value0, value1...]],\n\t * [rowIndex, [value0, value1...]]\n\t * ]\n\t * @param {Boolean} [includeHeaders=false] Include headers row\n\t * @param {Boolean} [excludeHiddenCols=false] Exclude hidden columns\n\t * @param {Boolean} [typed=false] Return typed value\n\t * @return {Array}\n\t *\n\t * TODO: provide an API returning data in JSON format\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilteredData = function getFilteredData() {\n\t var includeHeaders = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\t var excludeHiddenCols = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t var typed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\t\n\t if (!this.validRowsIndex) {\n\t return [];\n\t }\n\t var rows = this.tbl.rows,\n\t filteredData = [];\n\t var getContent = typed ? this.getCellData.bind(this) : this.getCellValue.bind(this);\n\t\n\t if (includeHeaders) {\n\t var headers = this.getHeadersText(excludeHiddenCols);\n\t filteredData.push([this.getHeadersRowIndex(), headers]);\n\t }\n\t\n\t var validRows = this.getValidRows(true);\n\t for (var i = 0; i < validRows.length; i++) {\n\t var rData = [this.validRowsIndex[i], []],\n\t cells = rows[this.validRowsIndex[i]].cells;\n\t for (var k = 0; k < cells.length; k++) {\n\t if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n\t if (this.extension('colsVisibility').isColHidden(k)) {\n\t continue;\n\t }\n\t }\n\t var cellValue = getContent(cells[k]);\n\t rData[1].push(cellValue);\n\t }\n\t filteredData.push(rData);\n\t }\n\t return filteredData;\n\t };\n\t\n\t /**\n\t * Return the filtered data for a given column index\n\t * @param {Number} colIndex Colmun's index\n\t * @param {Boolean} [includeHeaders=false] Include headers row\n\t * @param {Boolean} [typed=false] Return typed value\n\t * @param {Array} [exclude=[]] List of row indexes to be excluded\n\t * @param {Boolean} [visible=true] Return only filtered and visible data\n\t * (relevant for paging)\n\t * @return {Array} Flat list of values ['val0','val1','val2'...]\n\t *\n\t * TODO: provide an API returning data in JSON format\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilteredDataCol = function getFilteredDataCol(colIndex) {\n\t var includeHeaders = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t var typed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\t\n\t var _this7 = this;\n\t\n\t var exclude = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n\t var visible = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n\t\n\t if ((0, _types.isUndef)(colIndex)) {\n\t return [];\n\t }\n\t\n\t var rows = this.tbl.rows;\n\t var getContent = typed ? this.getCellData.bind(this) : this.getCellValue.bind(this);\n\t\n\t // ensure valid rows index do not contain excluded rows and row is\n\t // displayed\n\t var validRows = this.getValidRows(true).filter(function (rowIdx) {\n\t return exclude.indexOf(rowIdx) === -1 && (visible ? _this7.getRowDisplay(rows[rowIdx]) !== 'none' : true);\n\t });\n\t\n\t // convert column value to expected type if necessary\n\t var validColValues = validRows.map(function (rowIdx) {\n\t return getContent(rows[rowIdx].cells[colIndex]);\n\t });\n\t\n\t if (includeHeaders) {\n\t validColValues.unshift(this.getHeadersText()[colIndex]);\n\t }\n\t\n\t return validColValues;\n\t };\n\t\n\t /**\n\t * Get the display value of a row\n\t * @param {HTMLTableRowElement} row DOM element of the row\n\t * @return {String} Usually 'none' or ''\n\t */\n\t\n\t\n\t TableFilter.prototype.getRowDisplay = function getRowDisplay(row) {\n\t return row.style.display;\n\t };\n\t\n\t /**\n\t * Validate/invalidate row by setting the 'validRow' attribute on the row\n\t * @param {Number} rowIndex Index of the row\n\t * @param {Boolean} isValid\n\t */\n\t\n\t\n\t TableFilter.prototype.validateRow = function validateRow(rowIndex, isValid) {\n\t var row = this.tbl.rows[rowIndex];\n\t if (!row || typeof isValid !== 'boolean') {\n\t return;\n\t }\n\t\n\t // always visible rows are valid\n\t if (this.hasVisibleRows && this.visibleRows.indexOf(rowIndex) !== -1) {\n\t isValid = true;\n\t }\n\t\n\t var displayFlag = isValid ? '' : _const.NONE,\n\t validFlag = isValid ? 'true' : 'false';\n\t row.style.display = displayFlag;\n\t\n\t if (this.paging) {\n\t row.setAttribute('validRow', validFlag);\n\t }\n\t\n\t if (isValid) {\n\t if (this.validRowsIndex.indexOf(rowIndex) === -1) {\n\t this.validRowsIndex.push(rowIndex);\n\t }\n\t\n\t this.onRowValidated(this, rowIndex);\n\t\n\t this.emitter.emit('row-validated', this, rowIndex);\n\t }\n\t };\n\t\n\t /**\n\t * Validate all filterable rows\n\t */\n\t\n\t\n\t TableFilter.prototype.validateAllRows = function validateAllRows() {\n\t if (!this.initialized) {\n\t return;\n\t }\n\t this.validRowsIndex = [];\n\t for (var k = this.refRow; k < this.nbFilterableRows; k++) {\n\t this.validateRow(k, true);\n\t }\n\t };\n\t\n\t /**\n\t * Set search value to a given filter\n\t * @param {Number} index Column's index\n\t * @param {String or Array} query searcharg Search term\n\t */\n\t\n\t\n\t TableFilter.prototype.setFilterValue = function setFilterValue(index) {\n\t var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n\t\n\t if (!this.fltGrid) {\n\t return;\n\t }\n\t var slc = this.getFilterElement(index),\n\t fltColType = this.getFilterType(index);\n\t\n\t if (fltColType !== _const.MULTIPLE && fltColType !== _const.CHECKLIST) {\n\t if (this.loadFltOnDemand && !this.initialized) {\n\t this.emitter.emit('build-select-filter', this, index, this.linkedFilters, this.isExternalFlt);\n\t }\n\t slc.value = query;\n\t }\n\t //multiple selects\n\t else if (fltColType === _const.MULTIPLE) {\n\t var values = (0, _types.isArray)(query) ? query : query.split(' ' + this.orOperator + ' ');\n\t\n\t if (this.loadFltOnDemand && !this.initialized) {\n\t this.emitter.emit('build-select-filter', this, index, this.linkedFilters, this.isExternalFlt);\n\t }\n\t\n\t this.emitter.emit('select-options', this, index, values);\n\t }\n\t //checklist\n\t else if (fltColType === _const.CHECKLIST) {\n\t var _values = [];\n\t if (this.loadFltOnDemand && !this.initialized) {\n\t this.emitter.emit('build-checklist-filter', this, index, this.linkedFilters);\n\t }\n\t if ((0, _types.isArray)(query)) {\n\t _values = query;\n\t } else {\n\t query = (0, _string.matchCase)(query, this.caseSensitive);\n\t _values = query.split(' ' + this.orOperator + ' ');\n\t }\n\t\n\t this.emitter.emit('select-checklist-options', this, index, _values);\n\t }\n\t };\n\t\n\t /**\n\t * Set them columns' widths as per configuration\n\t * @param {Element} tbl DOM element\n\t */\n\t\n\t\n\t TableFilter.prototype.setColWidths = function setColWidths(tbl) {\n\t if (!this.hasColWidths) {\n\t return;\n\t }\n\t tbl = tbl || this.tbl;\n\t\n\t var nbCols = this.nbCells;\n\t var colWidths = this.colWidths;\n\t var colTags = (0, _dom.tag)(tbl, 'col');\n\t var tblHasColTag = colTags.length > 0;\n\t var frag = !tblHasColTag ? doc.createDocumentFragment() : null;\n\t for (var k = 0; k < nbCols; k++) {\n\t var col = void 0;\n\t if (tblHasColTag) {\n\t col = colTags[k];\n\t } else {\n\t col = (0, _dom.createElm)('col');\n\t frag.appendChild(col);\n\t }\n\t col.style.width = colWidths[k];\n\t }\n\t if (!tblHasColTag) {\n\t tbl.insertBefore(frag, tbl.firstChild);\n\t }\n\t };\n\t\n\t /**\n\t * Makes defined rows always visible\n\t */\n\t\n\t\n\t TableFilter.prototype.enforceVisibility = function enforceVisibility() {\n\t if (!this.hasVisibleRows) {\n\t return;\n\t }\n\t var nbRows = this.getRowsNb(true);\n\t for (var i = 0, len = this.visibleRows.length; i < len; i++) {\n\t var row = this.visibleRows[i];\n\t //row index cannot be > nrows\n\t if (row <= nbRows) {\n\t this.validateRow(row, true);\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Clear all the filters' values\n\t */\n\t\n\t\n\t TableFilter.prototype.clearFilters = function clearFilters() {\n\t if (!this.fltGrid) {\n\t return;\n\t }\n\t\n\t this.emitter.emit('before-clearing-filters', this);\n\t this.onBeforeReset(this, this.getFiltersValue());\n\t\n\t for (var i = 0, len = this.fltIds.length; i < len; i++) {\n\t this.setFilterValue(i, '');\n\t }\n\t\n\t this.filter();\n\t\n\t this.onAfterReset(this);\n\t this.emitter.emit('after-clearing-filters', this);\n\t };\n\t\n\t /**\n\t * Clears filtered columns visual indicator (background color)\n\t */\n\t\n\t\n\t TableFilter.prototype.clearActiveColumns = function clearActiveColumns() {\n\t for (var i = 0, len = this.getCellsNb(this.headersRow); i < len; i++) {\n\t (0, _dom.removeClass)(this.getHeaderElement(i), this.activeColumnsCssClass);\n\t }\n\t };\n\t\n\t /**\n\t * Mark currently filtered column\n\t * @param {Number} colIndex Column index\n\t */\n\t\n\t\n\t TableFilter.prototype.markActiveColumn = function markActiveColumn(colIndex) {\n\t var header = this.getHeaderElement(colIndex);\n\t if ((0, _dom.hasClass)(header, this.activeColumnsCssClass)) {\n\t return;\n\t }\n\t this.onBeforeActiveColumn(this, colIndex);\n\t\n\t (0, _dom.addClass)(header, this.activeColumnsCssClass);\n\t\n\t this.onAfterActiveColumn(this, colIndex);\n\t };\n\t\n\t /**\n\t * Return the ID of the current active filter\n\t * @returns {String}\n\t */\n\t\n\t\n\t TableFilter.prototype.getActiveFilterId = function getActiveFilterId() {\n\t return this.activeFilterId;\n\t };\n\t\n\t /**\n\t * Set the ID of the current active filter\n\t * @param {String} filterId Element ID\n\t */\n\t\n\t\n\t TableFilter.prototype.setActiveFilterId = function setActiveFilterId(filterId) {\n\t this.activeFilterId = filterId;\n\t };\n\t\n\t /**\n\t * Return the column index for a given filter ID\n\t * @param {string} [filterId=''] Filter ID\n\t * @returns {Number} Column index\n\t */\n\t\n\t\n\t TableFilter.prototype.getColumnIndexFromFilterId = function getColumnIndexFromFilterId() {\n\t var filterId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\t\n\t var idx = filterId.split('_')[0];\n\t idx = idx.split(this.prfxFlt)[1];\n\t return parseInt(idx, 10);\n\t };\n\t\n\t /**\n\t * Builds filter element ID for a given column index\n\t * @param {any} colIndex\n\t * @returns {String} Filter element ID string\n\t * @private\n\t */\n\t\n\t\n\t TableFilter.prototype.buildFilterId = function buildFilterId(colIndex) {\n\t return '' + this.prfxFlt + colIndex + '_' + this.id;\n\t };\n\t\n\t /**\n\t * Make specified column's filter active\n\t * @param colIndex Index of a column\n\t */\n\t\n\t\n\t TableFilter.prototype.activateFilter = function activateFilter(colIndex) {\n\t if ((0, _types.isUndef)(colIndex)) {\n\t return;\n\t }\n\t this.setActiveFilterId(this.getFilterId(colIndex));\n\t };\n\t\n\t /**\n\t * Refresh the filters subject to linking ('select', 'multiple',\n\t * 'checklist' type)\n\t */\n\t\n\t\n\t TableFilter.prototype.linkFilters = function linkFilters() {\n\t if (!this.linkedFilters || !this.activeFilterId) {\n\t return;\n\t }\n\t var slcA1 = this.getFiltersByType(_const.SELECT, true),\n\t slcA2 = this.getFiltersByType(_const.MULTIPLE, true),\n\t slcA3 = this.getFiltersByType(_const.CHECKLIST, true),\n\t slcIndex = slcA1.concat(slcA2);\n\t slcIndex = slcIndex.concat(slcA3);\n\t\n\t var activeIdx = this.getColumnIndexFromFilterId(this.activeFilterId);\n\t\n\t for (var i = 0, len = slcIndex.length; i < len; i++) {\n\t var colIdx = slcIndex[i];\n\t var curSlc = (0, _dom.elm)(this.fltIds[colIdx]);\n\t var slcSelectedValue = this.getFilterValue(colIdx);\n\t\n\t // Welcome to cyclomatic complexity hell :)\n\t // TODO: simplify/refactor if statement\n\t if (activeIdx !== colIdx || this.paging && slcA1.indexOf(colIdx) !== -1 && activeIdx === colIdx || !this.paging && (slcA3.indexOf(colIdx) !== -1 || slcA2.indexOf(colIdx) !== -1) || slcSelectedValue === this.getClearFilterText(colIdx)) {\n\t\n\t //1st option needs to be inserted\n\t if (this.loadFltOnDemand) {\n\t var opt0 = (0, _dom.createOpt)(this.getClearFilterText(colIdx), '');\n\t curSlc.innerHTML = '';\n\t curSlc.appendChild(opt0);\n\t }\n\t\n\t if (slcA3.indexOf(colIdx) !== -1) {\n\t this.emitter.emit('build-checklist-filter', this, colIdx, true);\n\t } else {\n\t this.emitter.emit('build-select-filter', this, colIdx, true);\n\t }\n\t\n\t this.setFilterValue(colIdx, slcSelectedValue);\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Determines if passed filter column implements exact query match\n\t * @param {Number} colIndex Column index\n\t * @return {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.isExactMatch = function isExactMatch(colIndex) {\n\t var fltType = this.getFilterType(colIndex);\n\t return this.exactMatchByCol[colIndex] || this.exactMatch || fltType !== _const.INPUT;\n\t };\n\t\n\t /**\n\t * Checks if passed row is valid\n\t * @param {Number} rowIndex Row index\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.isRowValid = function isRowValid(rowIndex) {\n\t return this.getValidRows().indexOf(rowIndex) !== -1;\n\t };\n\t\n\t /**\n\t * Checks if passed row is visible\n\t * @param {Number} rowIndex Row index\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.isRowDisplayed = function isRowDisplayed(rowIndex) {\n\t var row = this.tbl.rows[rowIndex];\n\t return this.getRowDisplay(row) === '';\n\t };\n\t\n\t /**\n\t * Checks if specified column filter ignores diacritics.\n\t * Note this is only applicable to input filter types.\n\t * @param {Number} colIndex Column index\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.ignoresDiacritics = function ignoresDiacritics(colIndex) {\n\t var ignoreDiac = this.ignoreDiacritics;\n\t if ((0, _types.isArray)(ignoreDiac)) {\n\t return ignoreDiac[colIndex];\n\t }\n\t return Boolean(ignoreDiac);\n\t };\n\t\n\t /**\n\t * Returns clear all text for specified filter column\n\t * @param {Number} colIndex Column index\n\t * @returns {String}\n\t */\n\t\n\t\n\t TableFilter.prototype.getClearFilterText = function getClearFilterText(colIndex) {\n\t var clearText = this.clearFilterText;\n\t if ((0, _types.isArray)(clearText)) {\n\t return clearText[colIndex];\n\t }\n\t return clearText;\n\t };\n\t\n\t /**\n\t * Check if passed script or stylesheet is already imported\n\t * @param {String} filePath Ressource path\n\t * @param {String} type Possible values: 'script' or 'link'\n\t * @return {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.isImported = function isImported(filePath) {\n\t var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'script';\n\t\n\t var imported = false,\n\t attr = type === 'script' ? 'src' : 'href',\n\t files = (0, _dom.tag)(doc, type);\n\t for (var i = 0, len = files.length; i < len; i++) {\n\t if ((0, _types.isUndef)(files[i][attr])) {\n\t continue;\n\t }\n\t if (files[i][attr].match(filePath)) {\n\t imported = true;\n\t break;\n\t }\n\t }\n\t return imported;\n\t };\n\t\n\t /**\n\t * Import script or stylesheet\n\t * @param {String} fileId Ressource ID\n\t * @param {String} filePath Ressource path\n\t * @param {Function} callback Callback\n\t * @param {String} type Possible values: 'script' or 'link'\n\t */\n\t\n\t\n\t TableFilter.prototype.import = function _import(fileId, filePath, callback) {\n\t var _this8 = this;\n\t\n\t var type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'script';\n\t\n\t if (this.isImported(filePath, type)) {\n\t return;\n\t }\n\t var o = this,\n\t isLoaded = false,\n\t file = void 0,\n\t head = (0, _dom.tag)(doc, 'head')[0];\n\t\n\t if (type.toLowerCase() === 'link') {\n\t file = (0, _dom.createElm)('link', ['id', fileId], ['type', 'text/css'], ['rel', 'stylesheet'], ['href', filePath]);\n\t } else {\n\t file = (0, _dom.createElm)('script', ['id', fileId], ['type', 'text/javascript'], ['src', filePath]);\n\t }\n\t\n\t //Browser <> IE onload event works only for scripts, not for stylesheets\n\t file.onload = file.onreadystatechange = function () {\n\t if (!isLoaded && (!_this8.readyState || _this8.readyState === 'loaded' || _this8.readyState === 'complete')) {\n\t isLoaded = true;\n\t if (typeof callback === 'function') {\n\t callback.call(null, o);\n\t }\n\t }\n\t };\n\t file.onerror = function () {\n\t throw new Error('TableFilter could not load: ' + filePath);\n\t };\n\t head.appendChild(file);\n\t };\n\t\n\t /**\n\t * Check if table has filters grid\n\t * @return {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.isInitialized = function isInitialized() {\n\t return this.initialized;\n\t };\n\t\n\t /**\n\t * Get list of filter IDs\n\t * @return {[type]} [description]\n\t */\n\t\n\t\n\t TableFilter.prototype.getFiltersId = function getFiltersId() {\n\t return this.fltIds || [];\n\t };\n\t\n\t /**\n\t * Get filtered (valid) rows indexes\n\t * @param {Boolean} reCalc Force calculation of filtered rows list\n\t * @return {Array} List of row indexes\n\t */\n\t\n\t\n\t TableFilter.prototype.getValidRows = function getValidRows(reCalc) {\n\t if (!reCalc) {\n\t return this.validRowsIndex;\n\t }\n\t\n\t var nbRows = this.getRowsNb(true);\n\t this.validRowsIndex = [];\n\t for (var k = this.refRow; k < nbRows; k++) {\n\t var r = this.tbl.rows[k];\n\t if (!this.paging) {\n\t if (this.getRowDisplay(r) !== _const.NONE) {\n\t this.validRowsIndex.push(r.rowIndex);\n\t }\n\t } else {\n\t if (r.getAttribute('validRow') === 'true' || r.getAttribute('validRow') === null) {\n\t this.validRowsIndex.push(r.rowIndex);\n\t }\n\t }\n\t }\n\t return this.validRowsIndex;\n\t };\n\t\n\t /**\n\t * Get the index of the row containing the filters\n\t * @return {Number}\n\t */\n\t\n\t\n\t TableFilter.prototype.getFiltersRowIndex = function getFiltersRowIndex() {\n\t return this.filtersRowIndex;\n\t };\n\t\n\t /**\n\t * Get the index of the headers row\n\t * @return {Number}\n\t */\n\t\n\t\n\t TableFilter.prototype.getHeadersRowIndex = function getHeadersRowIndex() {\n\t return this.headersRow;\n\t };\n\t\n\t /**\n\t * Get the row index from where the filtering process start (1st filterable\n\t * row)\n\t * @return {Number}\n\t */\n\t\n\t\n\t TableFilter.prototype.getStartRowIndex = function getStartRowIndex() {\n\t return this.refRow;\n\t };\n\t\n\t /**\n\t * Get the index of the last row\n\t * @return {Number}\n\t */\n\t\n\t\n\t TableFilter.prototype.getLastRowIndex = function getLastRowIndex() {\n\t var nbRows = this.getRowsNb(true);\n\t return nbRows - 1;\n\t };\n\t\n\t /**\n\t * Determine whether the specified column has one of the passed types\n\t * @param {Number} colIndex Column index\n\t * @param {Array} [types=[]] List of column types\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.hasType = function hasType(colIndex) {\n\t var types = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\t\n\t if (!this.hasColTypes) {\n\t return false;\n\t }\n\t var colType = this.colTypes[colIndex];\n\t if ((0, _types.isObj)(colType)) {\n\t colType = colType.type;\n\t }\n\t return types.indexOf(colType) !== -1;\n\t };\n\t\n\t /**\n\t * Get the header DOM element for a given column index\n\t * @param {Number} colIndex Column index\n\t * @return {Element}\n\t */\n\t\n\t\n\t TableFilter.prototype.getHeaderElement = function getHeaderElement(colIndex) {\n\t var table = this.gridLayout ? this.Mod.gridLayout.headTbl : this.tbl;\n\t var tHead = (0, _dom.tag)(table, 'thead');\n\t var headersRow = this.headersRow;\n\t var header = void 0;\n\t for (var i = 0; i < this.nbCells; i++) {\n\t if (i !== colIndex) {\n\t continue;\n\t }\n\t if (tHead.length === 0) {\n\t header = table.rows[headersRow].cells[i];\n\t }\n\t if (tHead.length === 1) {\n\t header = tHead[0].rows[headersRow].cells[i];\n\t }\n\t break;\n\t }\n\t return header;\n\t };\n\t\n\t /**\n\t * Return the list of headers' text\n\t * @param {Boolean} excludeHiddenCols Optional: exclude hidden columns\n\t * @return {Array} list of headers' text\n\t */\n\t\n\t\n\t TableFilter.prototype.getHeadersText = function getHeadersText() {\n\t var excludeHiddenCols = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\t\n\t var headers = [];\n\t for (var j = 0; j < this.nbCells; j++) {\n\t if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n\t if (this.extension('colsVisibility').isColHidden(j)) {\n\t continue;\n\t }\n\t }\n\t var header = this.getHeaderElement(j);\n\t var headerText = (0, _dom.getFirstTextNode)(header);\n\t headers.push(headerText);\n\t }\n\t return headers;\n\t };\n\t\n\t /**\n\t * Return the filter type for a specified column\n\t * @param {Number} colIndex Column's index\n\t * @return {String}\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilterType = function getFilterType(colIndex) {\n\t var colType = this.cfg['col_' + colIndex];\n\t return !colType ? _const.INPUT : colType.toLowerCase();\n\t };\n\t\n\t /**\n\t * Get the total number of filterable rows\n\t * @return {Number}\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilterableRowsNb = function getFilterableRowsNb() {\n\t return this.getRowsNb(false);\n\t };\n\t\n\t /**\n\t * Return the total number of valid rows\n\t * @param {Boolean} [reCalc=false] Forces calculation of filtered rows\n\t * @returns {Number}\n\t */\n\t\n\t\n\t TableFilter.prototype.getValidRowsNb = function getValidRowsNb() {\n\t var reCalc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\t\n\t return this.getValidRows(reCalc).length;\n\t };\n\t\n\t /**\n\t * Get the configuration object (literal object)\n\t * @return {Object}\n\t */\n\t\n\t\n\t TableFilter.prototype.config = function config() {\n\t return this.cfg;\n\t };\n\t\n\t return TableFilter;\n\t}();\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.keyCode = exports.targetEvt = exports.cancelEvt = exports.stopEvt = exports.removeEvt = exports.addEvt = undefined;\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\t/**\r\n\t * DOM event utilities\r\n\t */\n\t\n\t/**\r\n\t * Add event handler for specified event on passed element\r\n\t *\r\n\t * @param {DOMElement} obj Element\r\n\t * @param {String} type Event type\r\n\t * @param {Function} Handler\r\n\t * @param {Boolean} capture Specifiy whether the event should be executed in\r\n\t * the capturing or in the bubbling phase\r\n\t */\n\tvar addEvt = exports.addEvt = function addEvt(obj, type, func, capture) {\n\t if (obj.addEventListener) {\n\t obj.addEventListener(type, func, capture);\n\t } else if (obj.attachEvent) {\n\t obj.attachEvent('on' + type, func);\n\t } else {\n\t obj['on' + type] = func;\n\t }\n\t};\n\t\n\t/**\r\n\t * Remove event handler for specified event on passed element\r\n\t *\r\n\t * @param {DOMElement} obj Element\r\n\t * @param {String} type Event type\r\n\t * @param {Function} Handler\r\n\t * @param {Boolean} capture Specifiy whether the event should be executed in\r\n\t * the capturing or in the bubbling phase\r\n\t */\n\tvar removeEvt = exports.removeEvt = function removeEvt(obj, type, func, capture) {\n\t if (obj.removeEventListener) {\n\t obj.removeEventListener(type, func, capture);\n\t } else if (obj.detachEvent) {\n\t obj.detachEvent('on' + type, func);\n\t } else {\n\t obj['on' + type] = null;\n\t }\n\t};\n\t\n\t/**\r\n\t * Prevents further propagation of the current event in the bubbling phase\r\n\t *\r\n\t * @param {Event} evt Event on the DOM\r\n\t */\n\tvar stopEvt = exports.stopEvt = function stopEvt(evt) {\n\t if (!evt) {\n\t evt = _root.root.event;\n\t }\n\t if (evt.stopPropagation) {\n\t evt.stopPropagation();\n\t } else {\n\t evt.cancelBubble = true;\n\t }\n\t};\n\t\n\t/**\r\n\t * Cancels the event if it is cancelable, without stopping further\r\n\t * propagation of the event.\r\n\t *\r\n\t * @param {Event} evt Event on the DOM\r\n\t */\n\tvar cancelEvt = exports.cancelEvt = function cancelEvt(evt) {\n\t if (!evt) {\n\t evt = _root.root.event;\n\t }\n\t if (evt.preventDefault) {\n\t evt.preventDefault();\n\t } else {\n\t evt.returnValue = false;\n\t }\n\t};\n\t\n\t/**\r\n\t * Reference to the object that dispatched the event\r\n\t *\r\n\t * @param {Event} evt Event on the DOM\r\n\t * @returns {DOMElement}\r\n\t */\n\tvar targetEvt = exports.targetEvt = function targetEvt(evt) {\n\t if (!evt) {\n\t evt = _root.root.event;\n\t }\n\t return evt.target || evt.srcElement;\n\t};\n\t\n\t/**\r\n\t * Returns the Unicode value of pressed key\r\n\t *\r\n\t * @param {Event} evt Event on the DOM\r\n\t * @returns {Number}\r\n\t */\n\tvar keyCode = exports.keyCode = function keyCode(evt) {\n\t return evt.charCode ? evt.charCode : evt.keyCode ? evt.keyCode : evt.which ? evt.which : 0;\n\t};\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\t\n\t/**\n\t * Export window or global object depending on the environment\n\t */\n\tvar root = exports.root = (typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object' && self.self === self && self || (typeof global === 'undefined' ? 'undefined' : _typeof(global)) === 'object' && global.global === global && global || undefined;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.tag = exports.elm = exports.createCheckItem = exports.createOpt = exports.removeClass = exports.addClass = exports.hasClass = exports.createText = exports.removeElm = exports.createElm = exports.getFirstTextNode = exports.getText = undefined;\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\t/**\n\t * DOM utilities\n\t */\n\t\n\tvar doc = _root.root.document;\n\t\n\t/**\n\t * Returns text + text of children of given node\n\t * @param {NodeElement} node\n\t * @return {String}\n\t */\n\tvar getText = exports.getText = function getText(node) {\n\t if ((0, _types.isUndef)(node.textContent)) {\n\t return (0, _string.trim)(node.innerText);\n\t }\n\t return (0, _string.trim)(node.textContent);\n\t};\n\t\n\t/**\n\t * Returns the first text node contained in the supplied node\n\t * @param {NodeElement} node node\n\t * @return {String}\n\t */\n\tvar getFirstTextNode = exports.getFirstTextNode = function getFirstTextNode(node) {\n\t for (var i = 0; i < node.childNodes.length; i++) {\n\t var n = node.childNodes[i];\n\t if (n.nodeType === 3) {\n\t return n.data;\n\t }\n\t }\n\t};\n\t\n\t/**\n\t * Creates an html element with given collection of attributes\n\t * @param {String} tag a string of the html tag to create\n\t * @param {Array} an undetermined number of arrays containing the with 2\n\t * items, the attribute name and its value ['id','myId']\n\t * @return {Object} created element\n\t */\n\tvar createElm = exports.createElm = function createElm() {\n\t for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n\t args[_key] = arguments[_key];\n\t }\n\t\n\t var tag = args[0];\n\t if (!(0, _types.isString)(tag)) {\n\t return null;\n\t }\n\t\n\t var el = doc.createElement(tag);\n\t for (var i = 0; i < args.length; i++) {\n\t var arg = args[i];\n\t\n\t if ((0, _types.isArray)(arg) && arg.length === 2) {\n\t el.setAttribute(arg[0], arg[1]);\n\t }\n\t }\n\t\n\t return el;\n\t};\n\t\n\t/**\n\t * Removes passed node from DOM\n\t * @param {DOMElement} node\n\t * @return {DOMElement} old node reference\n\t */\n\tvar removeElm = exports.removeElm = function removeElm(node) {\n\t return node.parentNode.removeChild(node);\n\t};\n\t\n\t/**\n\t * Returns a text node with given text\n\t * @param {String} txt\n\t * @return {Object}\n\t */\n\tvar createText = exports.createText = function createText(txt) {\n\t return doc.createTextNode(txt);\n\t};\n\t\n\t/**\n\t * Determine whether the passed elements is assigned the given class\n\t * @param {DOMElement} ele DOM element\n\t * @param {String} cls CSS class name\n\t * @returns {Boolean}\n\t */\n\tvar hasClass = exports.hasClass = function hasClass(ele, cls) {\n\t if ((0, _types.isUndef)(ele)) {\n\t return false;\n\t }\n\t\n\t if (supportsClassList()) {\n\t return ele.classList.contains(cls);\n\t }\n\t return ele.className.match(new RegExp('(\\\\s|^)' + cls + '(\\\\s|$)'));\n\t};\n\t\n\t/**\n\t * Adds the specified class to the passed element\n\t * @param {DOMElement} ele DOM element\n\t * @param {String} cls CSS class name\n\t */\n\tvar addClass = exports.addClass = function addClass(ele, cls) {\n\t if ((0, _types.isUndef)(ele)) {\n\t return;\n\t }\n\t\n\t if (supportsClassList()) {\n\t ele.classList.add(cls);\n\t return;\n\t }\n\t\n\t if (ele.className === '') {\n\t ele.className = cls;\n\t } else if (!hasClass(ele, cls)) {\n\t ele.className += ' ' + cls;\n\t }\n\t};\n\t\n\t/**\n\t * Removes the specified class to the passed element\n\t * @param {DOMElement} ele DOM element\n\t * @param {String} cls CSS class name\n\t */\n\tvar removeClass = exports.removeClass = function removeClass(ele, cls) {\n\t if ((0, _types.isUndef)(ele)) {\n\t return;\n\t }\n\t\n\t if (supportsClassList()) {\n\t ele.classList.remove(cls);\n\t return;\n\t }\n\t var reg = new RegExp('(\\\\s|^)' + cls + '(\\\\s|$)', 'g');\n\t ele.className = ele.className.replace(reg, '');\n\t};\n\t\n\t/**\n\t * Creates and returns an option element\n\t * @param {String} text option text\n\t * @param {String} value option value\n\t * @param {Boolean} isSel whether option is selected\n\t * @return {Object} option element\n\t */\n\tvar createOpt = exports.createOpt = function createOpt(text, value, isSel) {\n\t var isSelected = isSel ? true : false;\n\t var opt = isSelected ? createElm('option', ['value', value], ['selected', 'true']) : createElm('option', ['value', value]);\n\t opt.appendChild(createText(text));\n\t return opt;\n\t};\n\t\n\t/**\n\t * Creates and returns a checklist item\n\t * @param {String} id index of check item\n\t * @param {String} chkValue check item value\n\t * @param {String} labelText check item label text\n\t * @return {Object} li DOM element\n\t */\n\tvar createCheckItem = exports.createCheckItem = function createCheckItem(id, chkValue, labelText) {\n\t var li = createElm('li');\n\t var label = createElm('label', ['for', id]);\n\t var check = createElm('input', ['id', id], ['name', id], ['type', 'checkbox'], ['value', chkValue]);\n\t label.appendChild(check);\n\t label.appendChild(createText(labelText));\n\t li.appendChild(label);\n\t li.label = label;\n\t li.check = check;\n\t return li;\n\t};\n\t\n\t/**\n\t * Returns the element matching the supplied Id\n\t * @param {String} id Element identifier\n\t * @return {DOMElement}\n\t */\n\tvar elm = exports.elm = function elm(id) {\n\t return doc.getElementById(id);\n\t};\n\t\n\t/**\n\t * Returns list of element matching the supplied tag name\n\t * @param {String} tagname Tag name\n\t * @return {NodeList}\n\t */\n\tvar tag = exports.tag = function tag(o, tagname) {\n\t return o.getElementsByTagName(tagname);\n\t};\n\t\n\t// HTML5 classList API\n\tfunction supportsClassList() {\n\t return doc.documentElement.classList;\n\t}\n\n/***/ },\n/* 4 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\t/**\r\n\t * Types utilities\r\n\t */\n\t\n\tvar UNDEFINED = void 0;\n\t\n\t/**\r\n\t * Return an empty function\r\n\t * @return {Function}\r\n\t */\n\tvar EMPTY_FN = exports.EMPTY_FN = function EMPTY_FN() {};\n\t\n\t/**\r\n\t * Check passed argument is an object\r\n\t * @param {Object} obj\r\n\t * @return {Boolean}\r\n\t */\n\tvar isObj = exports.isObj = function isObj(obj) {\n\t return Object.prototype.toString.call(obj) === '[object Object]';\n\t};\n\t\n\t/**\r\n\t * Check passed argument is a function\r\n\t * @param {Function} obj\r\n\t * @return {Boolean}\r\n\t */\n\tvar isFn = exports.isFn = function isFn(obj) {\n\t return Object.prototype.toString.call(obj) === '[object Function]';\n\t};\n\t\n\t/**\r\n\t * Check passed argument is an array\r\n\t * @param {Array} obj\r\n\t * @return {Boolean}\r\n\t */\n\tvar isArray = exports.isArray = function isArray(obj) {\n\t return Object.prototype.toString.call(obj) === '[object Array]';\n\t};\n\t\n\t/**\r\n\t * Check passed argument is a string\r\n\t * @param {String} obj objue\r\n\t * @returns {Boolean}\r\n\t */\n\tvar isString = exports.isString = function isString(obj) {\n\t return Object.prototype.toString.call(obj) === '[object String]';\n\t};\n\t\n\t/**\r\n\t * Check passed argument is a number\r\n\t * @param {Number} obj\r\n\t * @returns {Boolean}\r\n\t */\n\tvar isNumber = exports.isNumber = function isNumber(obj) {\n\t return Object.prototype.toString.call(obj) === '[object Number]';\n\t};\n\t\n\t/**\r\n\t * Check passed argument is undefined\r\n\t * @param {Any} obj\r\n\t * @return {Boolean}\r\n\t */\n\tvar isUndef = exports.isUndef = function isUndef(obj) {\n\t return obj === UNDEFINED;\n\t};\n\t\n\t/**\r\n\t * Check passed argument is null\r\n\t * @param {Any} obj\r\n\t * @return {Boolean}\r\n\t */\n\tvar isNull = exports.isNull = function isNull(obj) {\n\t return obj === null;\n\t};\n\t\n\t/**\r\n\t * Check passed argument is empty (undefined, null or empty string)\r\n\t * @param {Any} obj\r\n\t * @return {Boolean}\r\n\t */\n\tvar isEmpty = exports.isEmpty = function isEmpty(obj) {\n\t return isUndef(obj) || isNull(obj) || obj.length === 0;\n\t};\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.contains = exports.matchCase = exports.rgxEsc = exports.isEmpty = exports.trim = undefined;\n\t\n\tvar _diacritics = __webpack_require__(6);\n\t\n\t/**\n\t * String utilities\n\t */\n\t\n\t/**\n\t * Removes whitespace from both sides of passed string\n\t * @param {String} text\n\t * @return {String}\n\t */\n\tvar trim = exports.trim = function trim(text) {\n\t if (text.trim) {\n\t return text.trim();\n\t }\n\t return text.replace(/^\\s*|\\s*$/g, '');\n\t};\n\t\n\t/**\n\t * Checks if passed string is empty\n\t * @param {String} text\n\t * @return {Boolean}\n\t */\n\tvar isEmpty = exports.isEmpty = function isEmpty(text) {\n\t return trim(text) === '';\n\t};\n\t\n\t/**\n\t * Makes regex safe string by escaping special characters from passed string\n\t * @param {String} text\n\t * @return {String} escaped string\n\t */\n\tvar rgxEsc = exports.rgxEsc = function rgxEsc(text) {\n\t var chars = /[-\\/\\\\^$*+?.()|[\\]{}]/g;\n\t var escMatch = '\\\\$&';\n\t return String(text).replace(chars, escMatch);\n\t};\n\t\n\t/**\n\t * Returns passed string as lowercase if caseSensitive flag set false. By\n\t * default it returns the string with no casing changes.\n\t * @param {String} text\n\t * @return {String} string\n\t */\n\tvar matchCase = exports.matchCase = function matchCase(text) {\n\t var caseSensitive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t\n\t if (!caseSensitive) {\n\t return text.toLowerCase();\n\t }\n\t return text;\n\t};\n\t\n\t/**\n\t * Checks if passed data contains the searched term\n\t * @param {String} term Searched term\n\t * @param {String} data Data string\n\t * @param {Boolean} exactMatch Exact match\n\t * @param {Boolean} caseSensitive Case sensitive\n\t * @param {Boolean} ignoreDiacritics Ignore diacritics\n\t * @return {Boolean}\n\t */\n\tvar contains = exports.contains = function contains(term, data) {\n\t var exactMatch = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\t var caseSensitive = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\t var ignoreDiacritics = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n\t\n\t // Improved by Cedric Wartel (cwl) automatic exact match for selects and\n\t // special characters are now filtered\n\t var regexp = void 0;\n\t var modifier = caseSensitive ? 'g' : 'gi';\n\t if (ignoreDiacritics) {\n\t term = (0, _diacritics.remove)(term);\n\t data = (0, _diacritics.remove)(data);\n\t }\n\t if (exactMatch) {\n\t regexp = new RegExp('(^\\\\s*)' + rgxEsc(term) + '(\\\\s*$)', modifier);\n\t } else {\n\t regexp = new RegExp(rgxEsc(term), modifier);\n\t }\n\t return regexp.test(data);\n\t};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports) {\n\n\texports.remove = removeDiacritics;\n\t\n\tvar replacementList = [\n\t {\n\t base: ' ',\n\t chars: \"\\u00A0\",\n\t }, {\n\t base: '0',\n\t chars: \"\\u07C0\",\n\t }, {\n\t base: 'A',\n\t chars: \"\\u24B6\\uFF21\\u00C0\\u00C1\\u00C2\\u1EA6\\u1EA4\\u1EAA\\u1EA8\\u00C3\\u0100\\u0102\\u1EB0\\u1EAE\\u1EB4\\u1EB2\\u0226\\u01E0\\u00C4\\u01DE\\u1EA2\\u00C5\\u01FA\\u01CD\\u0200\\u0202\\u1EA0\\u1EAC\\u1EB6\\u1E00\\u0104\\u023A\\u2C6F\",\n\t }, {\n\t base: 'AA',\n\t chars: \"\\uA732\",\n\t }, {\n\t base: 'AE',\n\t chars: \"\\u00C6\\u01FC\\u01E2\",\n\t }, {\n\t base: 'AO',\n\t chars: \"\\uA734\",\n\t }, {\n\t base: 'AU',\n\t chars: \"\\uA736\",\n\t }, {\n\t base: 'AV',\n\t chars: \"\\uA738\\uA73A\",\n\t }, {\n\t base: 'AY',\n\t chars: \"\\uA73C\",\n\t }, {\n\t base: 'B',\n\t chars: \"\\u24B7\\uFF22\\u1E02\\u1E04\\u1E06\\u0243\\u0181\",\n\t }, {\n\t base: 'C',\n\t chars: \"\\u24b8\\uff23\\uA73E\\u1E08\\u0106\\u0043\\u0108\\u010A\\u010C\\u00C7\\u0187\\u023B\",\n\t }, {\n\t base: 'D',\n\t chars: \"\\u24B9\\uFF24\\u1E0A\\u010E\\u1E0C\\u1E10\\u1E12\\u1E0E\\u0110\\u018A\\u0189\\u1D05\\uA779\",\n\t }, {\n\t base: 'Dh',\n\t chars: \"\\u00D0\",\n\t }, {\n\t base: 'DZ',\n\t chars: \"\\u01F1\\u01C4\",\n\t }, {\n\t base: 'Dz',\n\t chars: \"\\u01F2\\u01C5\",\n\t }, {\n\t base: 'E',\n\t chars: \"\\u025B\\u24BA\\uFF25\\u00C8\\u00C9\\u00CA\\u1EC0\\u1EBE\\u1EC4\\u1EC2\\u1EBC\\u0112\\u1E14\\u1E16\\u0114\\u0116\\u00CB\\u1EBA\\u011A\\u0204\\u0206\\u1EB8\\u1EC6\\u0228\\u1E1C\\u0118\\u1E18\\u1E1A\\u0190\\u018E\\u1D07\",\n\t }, {\n\t base: 'F',\n\t chars: \"\\uA77C\\u24BB\\uFF26\\u1E1E\\u0191\\uA77B\",\n\t }, {\n\t base: 'G',\n\t chars: \"\\u24BC\\uFF27\\u01F4\\u011C\\u1E20\\u011E\\u0120\\u01E6\\u0122\\u01E4\\u0193\\uA7A0\\uA77D\\uA77E\\u0262\",\n\t }, {\n\t base: 'H',\n\t chars: \"\\u24BD\\uFF28\\u0124\\u1E22\\u1E26\\u021E\\u1E24\\u1E28\\u1E2A\\u0126\\u2C67\\u2C75\\uA78D\",\n\t }, {\n\t base: 'I',\n\t chars: \"\\u24BE\\uFF29\\xCC\\xCD\\xCE\\u0128\\u012A\\u012C\\u0130\\xCF\\u1E2E\\u1EC8\\u01CF\\u0208\\u020A\\u1ECA\\u012E\\u1E2C\\u0197\",\n\t }, {\n\t base: 'J',\n\t chars: \"\\u24BF\\uFF2A\\u0134\\u0248\\u0237\",\n\t }, {\n\t base: 'K',\n\t chars: \"\\u24C0\\uFF2B\\u1E30\\u01E8\\u1E32\\u0136\\u1E34\\u0198\\u2C69\\uA740\\uA742\\uA744\\uA7A2\",\n\t }, {\n\t base: 'L',\n\t chars: \"\\u24C1\\uFF2C\\u013F\\u0139\\u013D\\u1E36\\u1E38\\u013B\\u1E3C\\u1E3A\\u0141\\u023D\\u2C62\\u2C60\\uA748\\uA746\\uA780\",\n\t }, {\n\t base: 'LJ',\n\t chars: \"\\u01C7\",\n\t }, {\n\t base: 'Lj',\n\t chars: \"\\u01C8\",\n\t }, {\n\t base: 'M',\n\t chars: \"\\u24C2\\uFF2D\\u1E3E\\u1E40\\u1E42\\u2C6E\\u019C\\u03FB\",\n\t }, {\n\t base: 'N',\n\t chars: \"\\uA7A4\\u0220\\u24C3\\uFF2E\\u01F8\\u0143\\xD1\\u1E44\\u0147\\u1E46\\u0145\\u1E4A\\u1E48\\u019D\\uA790\\u1D0E\",\n\t }, {\n\t base: 'NJ',\n\t chars: \"\\u01CA\",\n\t }, {\n\t base: 'Nj',\n\t chars: \"\\u01CB\",\n\t }, {\n\t base: 'O',\n\t chars: \"\\u24C4\\uFF2F\\xD2\\xD3\\xD4\\u1ED2\\u1ED0\\u1ED6\\u1ED4\\xD5\\u1E4C\\u022C\\u1E4E\\u014C\\u1E50\\u1E52\\u014E\\u022E\\u0230\\xD6\\u022A\\u1ECE\\u0150\\u01D1\\u020C\\u020E\\u01A0\\u1EDC\\u1EDA\\u1EE0\\u1EDE\\u1EE2\\u1ECC\\u1ED8\\u01EA\\u01EC\\xD8\\u01FE\\u0186\\u019F\\uA74A\\uA74C\",\n\t }, {\n\t base: 'OE',\n\t chars: \"\\u0152\",\n\t }, {\n\t base: 'OI',\n\t chars: \"\\u01A2\",\n\t }, {\n\t base: 'OO',\n\t chars: \"\\uA74E\",\n\t }, {\n\t base: 'OU',\n\t chars: \"\\u0222\",\n\t }, {\n\t base: 'P',\n\t chars: \"\\u24C5\\uFF30\\u1E54\\u1E56\\u01A4\\u2C63\\uA750\\uA752\\uA754\",\n\t }, {\n\t base: 'Q',\n\t chars: \"\\u24C6\\uFF31\\uA756\\uA758\\u024A\",\n\t }, {\n\t base: 'R',\n\t chars: \"\\u24C7\\uFF32\\u0154\\u1E58\\u0158\\u0210\\u0212\\u1E5A\\u1E5C\\u0156\\u1E5E\\u024C\\u2C64\\uA75A\\uA7A6\\uA782\",\n\t }, {\n\t base: 'S',\n\t chars: \"\\u24C8\\uFF33\\u1E9E\\u015A\\u1E64\\u015C\\u1E60\\u0160\\u1E66\\u1E62\\u1E68\\u0218\\u015E\\u2C7E\\uA7A8\\uA784\",\n\t }, {\n\t base: 'T',\n\t chars: \"\\u24C9\\uFF34\\u1E6A\\u0164\\u1E6C\\u021A\\u0162\\u1E70\\u1E6E\\u0166\\u01AC\\u01AE\\u023E\\uA786\",\n\t }, {\n\t base: 'Th',\n\t chars: \"\\u00DE\",\n\t }, {\n\t base: 'TZ',\n\t chars: \"\\uA728\",\n\t }, {\n\t base: 'U',\n\t chars: \"\\u24CA\\uFF35\\xD9\\xDA\\xDB\\u0168\\u1E78\\u016A\\u1E7A\\u016C\\xDC\\u01DB\\u01D7\\u01D5\\u01D9\\u1EE6\\u016E\\u0170\\u01D3\\u0214\\u0216\\u01AF\\u1EEA\\u1EE8\\u1EEE\\u1EEC\\u1EF0\\u1EE4\\u1E72\\u0172\\u1E76\\u1E74\\u0244\",\n\t }, {\n\t base: 'V',\n\t chars: \"\\u24CB\\uFF36\\u1E7C\\u1E7E\\u01B2\\uA75E\\u0245\",\n\t }, {\n\t base: 'VY',\n\t chars: \"\\uA760\",\n\t }, {\n\t base: 'W',\n\t chars: \"\\u24CC\\uFF37\\u1E80\\u1E82\\u0174\\u1E86\\u1E84\\u1E88\\u2C72\",\n\t }, {\n\t base: 'X',\n\t chars: \"\\u24CD\\uFF38\\u1E8A\\u1E8C\",\n\t }, {\n\t base: 'Y',\n\t chars: \"\\u24CE\\uFF39\\u1EF2\\xDD\\u0176\\u1EF8\\u0232\\u1E8E\\u0178\\u1EF6\\u1EF4\\u01B3\\u024E\\u1EFE\",\n\t }, {\n\t base: 'Z',\n\t chars: \"\\u24CF\\uFF3A\\u0179\\u1E90\\u017B\\u017D\\u1E92\\u1E94\\u01B5\\u0224\\u2C7F\\u2C6B\\uA762\",\n\t }, {\n\t base: 'a',\n\t chars: \"\\u24D0\\uFF41\\u1E9A\\u00E0\\u00E1\\u00E2\\u1EA7\\u1EA5\\u1EAB\\u1EA9\\u00E3\\u0101\\u0103\\u1EB1\\u1EAF\\u1EB5\\u1EB3\\u0227\\u01E1\\u00E4\\u01DF\\u1EA3\\u00E5\\u01FB\\u01CE\\u0201\\u0203\\u1EA1\\u1EAD\\u1EB7\\u1E01\\u0105\\u2C65\\u0250\\u0251\",\n\t }, {\n\t base: 'aa',\n\t chars: \"\\uA733\",\n\t }, {\n\t base: 'ae',\n\t chars: \"\\u00E6\\u01FD\\u01E3\",\n\t }, {\n\t base: 'ao',\n\t chars: \"\\uA735\",\n\t }, {\n\t base: 'au',\n\t chars: \"\\uA737\",\n\t }, {\n\t base: 'av',\n\t chars: \"\\uA739\\uA73B\",\n\t }, {\n\t base: 'ay',\n\t chars: \"\\uA73D\",\n\t }, {\n\t base: 'b',\n\t chars: \"\\u24D1\\uFF42\\u1E03\\u1E05\\u1E07\\u0180\\u0183\\u0253\\u0182\",\n\t }, {\n\t base: 'c',\n\t chars: \"\\uFF43\\u24D2\\u0107\\u0109\\u010B\\u010D\\u00E7\\u1E09\\u0188\\u023C\\uA73F\\u2184\",\n\t }, {\n\t base: 'd',\n\t chars: \"\\u24D3\\uFF44\\u1E0B\\u010F\\u1E0D\\u1E11\\u1E13\\u1E0F\\u0111\\u018C\\u0256\\u0257\\u018B\\u13E7\\u0501\\uA7AA\",\n\t }, {\n\t base: 'dh',\n\t chars: \"\\u00F0\",\n\t }, {\n\t base: 'dz',\n\t chars: \"\\u01F3\\u01C6\",\n\t }, {\n\t base: 'e',\n\t chars: \"\\u24D4\\uFF45\\u00E8\\u00E9\\u00EA\\u1EC1\\u1EBF\\u1EC5\\u1EC3\\u1EBD\\u0113\\u1E15\\u1E17\\u0115\\u0117\\u00EB\\u1EBB\\u011B\\u0205\\u0207\\u1EB9\\u1EC7\\u0229\\u1E1D\\u0119\\u1E19\\u1E1B\\u0247\\u01DD\",\n\t }, {\n\t base: 'f',\n\t chars: \"\\u24D5\\uFF46\\u1E1F\\u0192\",\n\t }, {\n\t base: 'ff',\n\t chars: \"\\uFB00\",\n\t }, {\n\t base: 'fi',\n\t chars: \"\\uFB01\",\n\t }, {\n\t base: 'fl',\n\t chars: \"\\uFB02\",\n\t }, {\n\t base: 'ffi',\n\t chars: \"\\uFB03\",\n\t }, {\n\t base: 'ffl',\n\t chars: \"\\uFB04\",\n\t }, {\n\t base: 'g',\n\t chars: \"\\u24D6\\uFF47\\u01F5\\u011D\\u1E21\\u011F\\u0121\\u01E7\\u0123\\u01E5\\u0260\\uA7A1\\uA77F\\u1D79\",\n\t }, {\n\t base: 'h',\n\t chars: \"\\u24D7\\uFF48\\u0125\\u1E23\\u1E27\\u021F\\u1E25\\u1E29\\u1E2B\\u1E96\\u0127\\u2C68\\u2C76\\u0265\",\n\t }, {\n\t base: 'hv',\n\t chars: \"\\u0195\",\n\t }, {\n\t base: 'i',\n\t chars: \"\\u24D8\\uFF49\\xEC\\xED\\xEE\\u0129\\u012B\\u012D\\xEF\\u1E2F\\u1EC9\\u01D0\\u0209\\u020B\\u1ECB\\u012F\\u1E2D\\u0268\\u0131\",\n\t }, {\n\t base: 'j',\n\t chars: \"\\u24D9\\uFF4A\\u0135\\u01F0\\u0249\",\n\t }, {\n\t base: 'k',\n\t chars: \"\\u24DA\\uFF4B\\u1E31\\u01E9\\u1E33\\u0137\\u1E35\\u0199\\u2C6A\\uA741\\uA743\\uA745\\uA7A3\",\n\t }, {\n\t base: 'l',\n\t chars: \"\\u24DB\\uFF4C\\u0140\\u013A\\u013E\\u1E37\\u1E39\\u013C\\u1E3D\\u1E3B\\u017F\\u0142\\u019A\\u026B\\u2C61\\uA749\\uA781\\uA747\\u026D\",\n\t }, {\n\t base: 'lj',\n\t chars: \"\\u01C9\",\n\t }, {\n\t base: 'm',\n\t chars: \"\\u24DC\\uFF4D\\u1E3F\\u1E41\\u1E43\\u0271\\u026F\",\n\t }, {\n\t base: 'n',\n\t chars: \"\\u24DD\\uFF4E\\u01F9\\u0144\\xF1\\u1E45\\u0148\\u1E47\\u0146\\u1E4B\\u1E49\\u019E\\u0272\\u0149\\uA791\\uA7A5\\u043B\\u0509\",\n\t }, {\n\t base: 'nj',\n\t chars: \"\\u01CC\",\n\t }, {\n\t base: 'o',\n\t chars: \"\\u24DE\\uFF4F\\xF2\\xF3\\xF4\\u1ED3\\u1ED1\\u1ED7\\u1ED5\\xF5\\u1E4D\\u022D\\u1E4F\\u014D\\u1E51\\u1E53\\u014F\\u022F\\u0231\\xF6\\u022B\\u1ECF\\u0151\\u01D2\\u020D\\u020F\\u01A1\\u1EDD\\u1EDB\\u1EE1\\u1EDF\\u1EE3\\u1ECD\\u1ED9\\u01EB\\u01ED\\xF8\\u01FF\\uA74B\\uA74D\\u0275\\u0254\\u1D11\",\n\t }, {\n\t base: 'oe',\n\t chars: \"\\u0153\",\n\t }, {\n\t base: 'oi',\n\t chars: \"\\u01A3\",\n\t }, {\n\t base: 'oo',\n\t chars: \"\\uA74F\",\n\t }, {\n\t base: 'ou',\n\t chars: \"\\u0223\",\n\t }, {\n\t base: 'p',\n\t chars: \"\\u24DF\\uFF50\\u1E55\\u1E57\\u01A5\\u1D7D\\uA751\\uA753\\uA755\\u03C1\",\n\t }, {\n\t base: 'q',\n\t chars: \"\\u24E0\\uFF51\\u024B\\uA757\\uA759\",\n\t }, {\n\t base: 'r',\n\t chars: \"\\u24E1\\uFF52\\u0155\\u1E59\\u0159\\u0211\\u0213\\u1E5B\\u1E5D\\u0157\\u1E5F\\u024D\\u027D\\uA75B\\uA7A7\\uA783\",\n\t }, {\n\t base: 's',\n\t chars: \"\\u24E2\\uFF53\\u015B\\u1E65\\u015D\\u1E61\\u0161\\u1E67\\u1E63\\u1E69\\u0219\\u015F\\u023F\\uA7A9\\uA785\\u1E9B\\u0282\",\n\t }, {\n\t base: 'ss',\n\t chars: \"\\xDF\",\n\t }, {\n\t base: 't',\n\t chars: \"\\u24E3\\uFF54\\u1E6B\\u1E97\\u0165\\u1E6D\\u021B\\u0163\\u1E71\\u1E6F\\u0167\\u01AD\\u0288\\u2C66\\uA787\",\n\t }, {\n\t base: 'th',\n\t chars: \"\\u00FE\",\n\t }, {\n\t base: 'tz',\n\t chars: \"\\uA729\",\n\t }, {\n\t base: 'u',\n\t chars: \"\\u24E4\\uFF55\\xF9\\xFA\\xFB\\u0169\\u1E79\\u016B\\u1E7B\\u016D\\xFC\\u01DC\\u01D8\\u01D6\\u01DA\\u1EE7\\u016F\\u0171\\u01D4\\u0215\\u0217\\u01B0\\u1EEB\\u1EE9\\u1EEF\\u1EED\\u1EF1\\u1EE5\\u1E73\\u0173\\u1E77\\u1E75\\u0289\",\n\t }, {\n\t base: 'v',\n\t chars: \"\\u24E5\\uFF56\\u1E7D\\u1E7F\\u028B\\uA75F\\u028C\",\n\t }, {\n\t base: 'vy',\n\t chars: \"\\uA761\",\n\t }, {\n\t base: 'w',\n\t chars: \"\\u24E6\\uFF57\\u1E81\\u1E83\\u0175\\u1E87\\u1E85\\u1E98\\u1E89\\u2C73\",\n\t }, {\n\t base: 'x',\n\t chars: \"\\u24E7\\uFF58\\u1E8B\\u1E8D\",\n\t }, {\n\t base: 'y',\n\t chars: \"\\u24E8\\uFF59\\u1EF3\\xFD\\u0177\\u1EF9\\u0233\\u1E8F\\xFF\\u1EF7\\u1E99\\u1EF5\\u01B4\\u024F\\u1EFF\",\n\t }, {\n\t base: 'z',\n\t chars: \"\\u24E9\\uFF5A\\u017A\\u1E91\\u017C\\u017E\\u1E93\\u1E95\\u01B6\\u0225\\u0240\\u2C6C\\uA763\",\n\t }\n\t];\n\t\n\tvar diacriticsMap = {};\n\tfor (var i = 0; i < replacementList.length; i += 1) {\n\t var chars = replacementList[i].chars;\n\t for (var j = 0; j < chars.length; j += 1) {\n\t diacriticsMap[chars[j]] = replacementList[i].base;\n\t }\n\t}\n\t\n\tfunction removeDiacritics(str) {\n\t return str.replace(/[^\\u0000-\\u007e]/g, function(c) {\n\t return diacriticsMap[c] || c;\n\t });\n\t}\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.parse = undefined;\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\t/**\n\t * Takes a string, removes all formatting/cruft and returns the raw float value\n\t * @param {String} Formatted number\n\t * @param {String} Decimal type '.' or ','\n\t * @return {Number} Unformatted number\n\t *\n\t * https://github.com/openexchangerates/accounting.js/blob/master/accounting.js\n\t */\n\tvar parse = exports.parse = function parse(value) {\n\t var decimal = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '.';\n\t\n\t // Return the value as-is if it's already a number\n\t if ((0, _types.isNumber)(value)) {\n\t return value;\n\t }\n\t\n\t // Build regex to strip out everything except digits, decimal point and\n\t // minus sign\n\t var regex = new RegExp('[^0-9-' + decimal + ']', ['g']);\n\t var unformatted = parseFloat(('' + value).replace(/\\((.*)\\)/, '-$1') // replace bracketed values with negatives\n\t .replace(regex, '') // strip out any cruft\n\t .replace(decimal, '.') // make sure decimal point is standard\n\t );\n\t\n\t // This will fail silently\n\t return !isNaN(unformatted) ? unformatted : 0;\n\t};\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/**\r\n\t * Event emitter class\r\n\t */\n\tvar Emitter = exports.Emitter = function () {\n\t /**\r\n\t * Creates an instance of Emitter.\r\n\t */\n\t function Emitter() {\n\t _classCallCheck(this, Emitter);\n\t\n\t /**\r\n\t * Events object\r\n\t * @type {Object}\r\n\t */\n\t this.events = {};\n\t }\n\t\n\t /**\r\n\t * Subscribe to an event\r\n\t * @param {Array} evts Collection of event names\r\n\t * @param {Function} fn Function invoked when event is emitted\r\n\t */\n\t\n\t\n\t Emitter.prototype.on = function on(evts, fn) {\n\t var _this = this;\n\t\n\t evts.forEach(function (evt) {\n\t _this.events[evt] = _this.events[evt] || [];\n\t _this.events[evt].push(fn);\n\t });\n\t };\n\t\n\t /**\r\n\t * Unsubscribe to an event\r\n\t * @param {Array} evts Collection of event names\r\n\t * @param {Function} fn Function invoked when event is emitted\r\n\t */\n\t\n\t\n\t Emitter.prototype.off = function off(evts, fn) {\n\t var _this2 = this;\n\t\n\t evts.forEach(function (evt) {\n\t if (evt in _this2.events) {\n\t _this2.events[evt].splice(_this2.events[evt].indexOf(fn), 1);\n\t }\n\t });\n\t };\n\t\n\t /**\r\n\t * Emit an event\r\n\t * @param {String} evt Event name followed by any other argument passed to\r\n\t * the invoked function\r\n\t */\n\t\n\t\n\t Emitter.prototype.emit = function emit(evt /*, args...*/) {\n\t if (evt in this.events) {\n\t for (var i = 0; i < this.events[evt].length; i++) {\n\t this.events[evt][i].apply(this, [].slice.call(arguments, 1));\n\t }\n\t }\n\t };\n\t\n\t return Emitter;\n\t}();\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.GridLayout = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\n\t * Grid layout, table with fixed headers\n\t */\n\tvar GridLayout = exports.GridLayout = function (_Feature) {\n\t _inherits(GridLayout, _Feature);\n\t\n\t /**\n\t * Creates an instance of GridLayout\n\t * @param {TableFilter} tf TableFilter instance\n\t */\n\t function GridLayout(tf) {\n\t _classCallCheck(this, GridLayout);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'gridLayout'));\n\t\n\t var f = _this.config;\n\t\n\t /**\n\t * Grid-layout container width as CSS string\n\t * @type {String}\n\t */\n\t _this.width = f.grid_width || null;\n\t\n\t /**\n\t * Grid-layout container height as CSS string\n\t * @type {String}\n\t */\n\t _this.height = f.grid_height || null;\n\t\n\t /**\n\t * Css class for main container element\n\t * @type {String}\n\t */\n\t _this.mainContCssClass = f.grid_cont_css_class || 'grd_Cont';\n\t\n\t /**\n\t * Css class for body table container element\n\t * @type {String}\n\t */\n\t _this.contCssClass = f.grid_tbl_cont_css_class || 'grd_tblCont';\n\t\n\t /**\n\t * Css class for headers table container element\n\t * @type {String}\n\t */\n\t _this.headContCssClass = f.grid_tblHead_cont_css_class || 'grd_headTblCont';\n\t\n\t /**\n\t * Css class for toolbar container element (rows counter, paging etc.)\n\t * @type {String}\n\t */\n\t _this.infDivCssClass = f.grid_inf_grid_css_class || 'grd_inf';\n\t\n\t /**\n\t * Index of the headers row, default: 0\n\t * @type {Number}\n\t */\n\t _this.headRowIndex = f.grid_headers_row_index || 0;\n\t\n\t /**\n\t * Collection of the header row indexes to be moved into headers table\n\t * @type {Array}\n\t */\n\t _this.headRows = f.grid_headers_rows || [0];\n\t\n\t /**\n\t * Enable or disable column filters generation, default: true\n\t * @type {Boolean}\n\t */\n\t _this.enableFilters = f.grid_enable_default_filters === false ? false : true;\n\t\n\t /**\n\t * Enable or disable column headers, default: false\n\t * @type {Boolean}\n\t */\n\t _this.noHeaders = Boolean(f.grid_no_headers);\n\t\n\t /**\n\t * Grid-layout default column widht as CSS string\n\t * @type {String}\n\t */\n\t _this.defaultColWidth = f.grid_default_col_width || '100px';\n\t\n\t /**\n\t * List of column elements\n\t * @type {Array}\n\t * @private\n\t */\n\t _this.colElms = [];\n\t\n\t /**\n\t * Prefix for grid-layout filter's cell ID\n\t * @type {String}\n\t * @private\n\t */\n\t _this.prfxGridFltTd = '_td_';\n\t\n\t /**\n\t * Prefix for grid-layout header's cell ID\n\t * @type {String}\n\t * @private\n\t */\n\t _this.prfxGridTh = 'tblHeadTh_';\n\t\n\t /**\n\t * Mark-up of original HTML table\n\t * @type {String}\n\t * @private\n\t */\n\t _this.sourceTblHtml = tf.tbl.outerHTML;\n\t\n\t /**\n\t * Indicates if working table has column elements\n\t * @type {Boolean}\n\t * @private\n\t */\n\t _this.tblHasColTag = (0, _dom.tag)(tf.tbl, 'col').length > 0 ? true : false;\n\t\n\t /**\n\t * Main container element\n\t * @private\n\t */\n\t _this.tblMainCont = null;\n\t\n\t /**\n\t * Table container element\n\t * @private\n\t */\n\t _this.tblCont = null;\n\t\n\t /**\n\t * Headers' table container element\n\t * @private\n\t */\n\t _this.headTblCont = null;\n\t\n\t /**\n\t * Headers' table element\n\t * @private\n\t */\n\t _this.headTbl = null;\n\t\n\t // filters flag at TF level\n\t tf.fltGrid = _this.enableFilters;\n\t return _this;\n\t }\n\t\n\t /**\n\t * Generates a grid with fixed headers\n\t * TODO: reduce size of init by extracting single purposed methods\n\t */\n\t\n\t\n\t GridLayout.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t var tf = this.tf;\n\t var tbl = tf.tbl;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t // Override relevant TableFilter properties\n\t this.setOverrides();\n\t\n\t // Assign default column widths\n\t this.setDefaultColWidths();\n\t\n\t // Initial table width\n\t var tblW = this.initialTableWidth();\n\t\n\t //Main container: it will contain all the elements\n\t this.tblMainCont = this.createContainer('div', this.mainContCssClass);\n\t if (this.width) {\n\t this.tblMainCont.style.width = this.width;\n\t }\n\t tbl.parentNode.insertBefore(this.tblMainCont, tbl);\n\t\n\t //Table container: div wrapping content table\n\t this.tblCont = this.createContainer('div', this.contCssClass);\n\t this.setConfigWidth(this.tblCont);\n\t if (this.height) {\n\t this.tblCont.style.height = this.height;\n\t }\n\t tbl.parentNode.insertBefore(this.tblCont, tbl);\n\t var t = (0, _dom.removeElm)(tbl);\n\t this.tblCont.appendChild(t);\n\t\n\t //In case table width is expressed in %\n\t if (tbl.style.width === '') {\n\t tbl.style.width = ((0, _string.contains)('%', tblW) ? tbl.clientWidth : tblW) + 'px';\n\t }\n\t\n\t var d = (0, _dom.removeElm)(this.tblCont);\n\t this.tblMainCont.appendChild(d);\n\t\n\t //Headers table container: div wrapping headers table\n\t this.headTblCont = this.createContainer('div', this.headContCssClass);\n\t this.setConfigWidth(this.headTblCont);\n\t\n\t //Headers table\n\t this.headTbl = (0, _dom.createElm)('table');\n\t var tH = (0, _dom.createElm)('tHead');\n\t\n\t //1st row should be headers row, ids are added if not set\n\t //Those ids are used by the sort feature\n\t var hRow = tbl.rows[this.headRowIndex];\n\t var sortTriggers = this.getSortTriggerIds(hRow);\n\t\n\t //Filters row is created\n\t var filtersRow = this.createFiltersRow();\n\t\n\t //Headers row are moved from content table to headers table\n\t this.setHeadersRow(tH);\n\t\n\t this.headTbl.appendChild(tH);\n\t if (tf.filtersRowIndex === 0) {\n\t tH.insertBefore(filtersRow, hRow);\n\t } else {\n\t tH.appendChild(filtersRow);\n\t }\n\t\n\t this.headTblCont.appendChild(this.headTbl);\n\t this.tblCont.parentNode.insertBefore(this.headTblCont, this.tblCont);\n\t\n\t //THead needs to be removed in content table for sort feature\n\t var thead = (0, _dom.tag)(tbl, 'thead');\n\t if (thead.length > 0) {\n\t tbl.removeChild(thead[0]);\n\t }\n\t\n\t //Headers table style\n\t this.headTbl.style.tableLayout = 'fixed';\n\t tbl.style.tableLayout = 'fixed';\n\t this.headTbl.cellPadding = tbl.cellPadding;\n\t this.headTbl.cellSpacing = tbl.cellSpacing;\n\t // this.headTbl.style.width = tbl.style.width;\n\t\n\t //content table without headers needs col widths to be reset\n\t tf.setColWidths(this.headTbl);\n\t\n\t //Headers container width\n\t // this.headTblCont.style.width = this.tblCont.clientWidth+'px';\n\t\n\t tbl.style.width = '';\n\t //\n\t this.headTbl.style.width = tbl.clientWidth + 'px';\n\t //\n\t\n\t //scroll synchronisation\n\t (0, _event.addEvt)(this.tblCont, 'scroll', function (evt) {\n\t var elm = (0, _event.targetEvt)(evt);\n\t var scrollLeft = elm.scrollLeft;\n\t _this2.headTblCont.scrollLeft = scrollLeft;\n\t //New pointerX calc taking into account scrollLeft\n\t // if(!o.isPointerXOverwritten){\n\t // try{\n\t // o.Evt.pointerX = function(evt){\n\t // let e = evt || global.event;\n\t // let bdScrollLeft = tf_StandardBody().scrollLeft +\n\t // scrollLeft;\n\t // return (e.pageX + scrollLeft) ||\n\t // (e.clientX + bdScrollLeft);\n\t // };\n\t // o.isPointerXOverwritten = true;\n\t // } catch(err) {\n\t // o.isPointerXOverwritten = false;\n\t // }\n\t // }\n\t });\n\t\n\t // TODO: Trigger a custom event handled by sort extension\n\t var sort = tf.extension('sort');\n\t if (sort) {\n\t sort.asyncSort = true;\n\t sort.triggerIds = sortTriggers;\n\t }\n\t\n\t //Col elements are enough to keep column widths after sorting and\n\t //filtering\n\t this.setColumnElements();\n\t\n\t if (tf.popupFilters) {\n\t filtersRow.style.display = _const.NONE;\n\t }\n\t\n\t if (tbl.clientWidth !== this.headTbl.clientWidth) {\n\t tbl.style.width = this.headTbl.clientWidth + 'px';\n\t }\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\n\t * Overrides TableFilter instance properties to adjust to grid layout mode\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.setOverrides = function setOverrides() {\n\t var tf = this.tf;\n\t tf.refRow = 0;\n\t tf.headersRow = 0;\n\t tf.filtersRowIndex = 1;\n\t tf.isExternalFlt = true;\n\t };\n\t\n\t /**\n\t * Set grid-layout default column widths if column widths are not defined\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.setDefaultColWidths = function setDefaultColWidths() {\n\t var tf = this.tf;\n\t if (tf.hasColWidths) {\n\t return;\n\t }\n\t for (var k = 0, len = tf.getCellsNb(); k < len; k++) {\n\t var colW = void 0;\n\t var cell = tf.tbl.rows[tf.getHeadersRowIndex()].cells[k];\n\t if (cell.width !== '') {\n\t colW = cell.width;\n\t } else if (cell.style.width !== '') {\n\t colW = parseInt(cell.style.width, 10);\n\t } else {\n\t colW = this.defaultColWidth;\n\t }\n\t tf.colWidths[k] = colW;\n\t }\n\t tf.hasColWidths = true;\n\t tf.setColWidths();\n\t };\n\t\n\t /**\n\t * Initial table width\n\t * @returns {Number}\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.initialTableWidth = function initialTableWidth() {\n\t var tbl = this.tf.tbl;\n\t var width = void 0; //initial table width\n\t\n\t if (tbl.width !== '') {\n\t width = tbl.width;\n\t } else if (tbl.style.width !== '') {\n\t width = tbl.style.width;\n\t } else {\n\t width = tbl.clientWidth;\n\t }\n\t return parseInt(width, 10);\n\t };\n\t\n\t /**\n\t * Creates container element\n\t * @param {String} tag Tag name\n\t * @param {String} className Css class to assign to element\n\t * @returns {DOMElement}\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.createContainer = function createContainer(tag, className) {\n\t var element = (0, _dom.createElm)(tag);\n\t element.className = className;\n\t return element;\n\t };\n\t\n\t /**\n\t * Creates filters row with cells\n\t * @returns {HTMLTableRowElement}\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.createFiltersRow = function createFiltersRow() {\n\t var tf = this.tf;\n\t var filtersRow = (0, _dom.createElm)('tr');\n\t if (this.enableFilters && tf.fltGrid) {\n\t tf.externalFltTgtIds = [];\n\t for (var j = 0; j < tf.getCellsNb(); j++) {\n\t var fltTdId = '' + (tf.prfxFlt + j + this.prfxGridFltTd + tf.id);\n\t var cl = (0, _dom.createElm)(tf.fltCellTag, ['id', fltTdId]);\n\t filtersRow.appendChild(cl);\n\t tf.externalFltTgtIds[j] = fltTdId;\n\t }\n\t }\n\t return filtersRow;\n\t };\n\t\n\t /**\n\t * Generates column elements if necessary and assigns their widths\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.setColumnElements = function setColumnElements() {\n\t var tf = this.tf;\n\t var cols = (0, _dom.tag)(tf.tbl, 'col');\n\t this.tblHasColTag = cols.length > 0;\n\t\n\t for (var k = tf.nbCells - 1; k >= 0; k--) {\n\t var col = void 0;\n\t\n\t if (!this.tblHasColTag) {\n\t col = (0, _dom.createElm)('col');\n\t tf.tbl.insertBefore(col, tf.tbl.firstChild);\n\t } else {\n\t col = cols[k];\n\t }\n\t col.style.width = tf.colWidths[k];\n\t this.colElms[k] = col;\n\t }\n\t this.tblHasColTag = true;\n\t };\n\t\n\t /**\n\t * Sets headers row in headers table\n\t * @param {HTMLHeadElement} tableHead Table head element\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.setHeadersRow = function setHeadersRow(tableHead) {\n\t if (this.noHeaders) {\n\t // Handle table with no headers, assuming here headers do not\n\t // exist\n\t tableHead.appendChild((0, _dom.createElm)('tr'));\n\t } else {\n\t // Headers row are moved from content table to headers table\n\t for (var i = 0; i < this.headRows.length; i++) {\n\t var row = this.tf.tbl.rows[this.headRows[i]];\n\t tableHead.appendChild(row);\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Sets width defined in configuration to passed element\n\t * @param {DOMElement} element DOM element\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.setConfigWidth = function setConfigWidth(element) {\n\t if (!this.width) {\n\t return;\n\t }\n\t if (this.width.indexOf('%') !== -1) {\n\t element.style.width = '100%';\n\t } else {\n\t element.style.width = this.width;\n\t }\n\t };\n\t\n\t /**\n\t * Returns a list of header IDs used for specifing external sort triggers\n\t * @param {HTMLTableRowElement} row DOM row element\n\t * @returns {Array} List of IDs\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.getSortTriggerIds = function getSortTriggerIds(row) {\n\t var tf = this.tf;\n\t var sortTriggers = [];\n\t for (var n = 0; n < tf.getCellsNb(); n++) {\n\t var c = row.cells[n];\n\t var thId = c.getAttribute('id');\n\t if (!thId || thId === '') {\n\t thId = this.prfxGridTh + n + '_' + tf.id;\n\t c.setAttribute('id', thId);\n\t }\n\t sortTriggers.push(thId);\n\t }\n\t return sortTriggers;\n\t };\n\t\n\t /**\n\t * Removes the grid layout\n\t */\n\t\n\t\n\t GridLayout.prototype.destroy = function destroy() {\n\t var tf = this.tf;\n\t var tbl = tf.tbl;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t var t = (0, _dom.removeElm)(tbl);\n\t this.tblMainCont.parentNode.insertBefore(t, this.tblMainCont);\n\t (0, _dom.removeElm)(this.tblMainCont);\n\t\n\t this.tblMainCont = null;\n\t this.headTblCont = null;\n\t this.headTbl = null;\n\t this.tblCont = null;\n\t\n\t tbl.outerHTML = this.sourceTblHtml;\n\t //needed to keep reference of table element for future usage\n\t this.tf.tbl = (0, _dom.elm)(tf.id);\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return GridLayout;\n\t}(_feature.Feature);\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar NOTIMPLEMENTED = 'Not implemented.';\n\t\n\t/**\n\t * Base class defining the interface of a TableFilter feature\n\t */\n\t\n\tvar Feature = exports.Feature = function () {\n\t /**\n\t * Creates an instance of Feature\n\t * @param {Object} tf TableFilter instance\n\t * @param {String} feature Feature name known by TableFilter\n\t */\n\t function Feature(tf, feature) {\n\t var _this = this;\n\t\n\t _classCallCheck(this, Feature);\n\t\n\t /**\n\t * TableFilter instance\n\t * @type {TableFilter}\n\t */\n\t this.tf = tf;\n\t\n\t /**\n\t * Feature name\n\t * @type {String}\n\t */\n\t this.feature = feature;\n\t\n\t /**\n\t * TableFilter feature setting\n\t * @type {Boolean}\n\t */\n\t this.enabled = tf[feature];\n\t\n\t /**\n\t * TableFilter configuration\n\t * @type {Object}\n\t */\n\t this.config = tf.config();\n\t\n\t /**\n\t * TableFilter emitter instance\n\t * @type {Emitter}\n\t */\n\t this.emitter = tf.emitter;\n\t\n\t /**\n\t * Field indicating whether Feature is initialized\n\t * @type {Boolean}\n\t */\n\t this.initialized = false;\n\t\n\t /** Subscribe to destroy event */\n\t this.emitter.on(['destroy'], function () {\n\t return _this.destroy();\n\t });\n\t }\n\t\n\t /**\n\t * Initialize the feature\n\t */\n\t\n\t\n\t Feature.prototype.init = function init() {\n\t throw new Error(NOTIMPLEMENTED);\n\t };\n\t\n\t /**\n\t * Reset the feature after being disabled\n\t */\n\t\n\t\n\t Feature.prototype.reset = function reset() {\n\t this.enable();\n\t this.init();\n\t };\n\t\n\t /**\n\t * Destroy the feature\n\t */\n\t\n\t\n\t Feature.prototype.destroy = function destroy() {\n\t throw new Error(NOTIMPLEMENTED);\n\t };\n\t\n\t /**\n\t * Enable the feature\n\t */\n\t\n\t\n\t Feature.prototype.enable = function enable() {\n\t this.enabled = true;\n\t };\n\t\n\t /**\n\t * Disable the feature\n\t */\n\t\n\t\n\t Feature.prototype.disable = function disable() {\n\t this.enabled = false;\n\t };\n\t\n\t /**\n\t * Indicate whether the feature is enabled or not\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t Feature.prototype.isEnabled = function isEnabled() {\n\t return this.enabled;\n\t };\n\t\n\t return Feature;\n\t}();\n\n/***/ },\n/* 11 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t/**\n\t * Filter types\n\t */\n\t\n\t/**\n\t * Input filter type\n\t * @type {String}\n\t */\n\tvar INPUT = exports.INPUT = 'input';\n\t/**\n\t * Select filter type\n\t * @type {String}\n\t */\n\tvar SELECT = exports.SELECT = 'select';\n\t/**\n\t * Multiple select filter type\n\t * @type {String}\n\t */\n\tvar MULTIPLE = exports.MULTIPLE = 'multiple';\n\t/**\n\t * Checklist filter type\n\t * @type {String}\n\t */\n\tvar CHECKLIST = exports.CHECKLIST = 'checklist';\n\t/**\n\t * None filter type\n\t * @type {String}\n\t */\n\tvar NONE = exports.NONE = 'none';\n\t\n\t/**\n\t * Key codes\n\t */\n\t\n\t/**\n\t * Enter key code\n\t * @type {Number}\n\t */\n\tvar ENTER_KEY = exports.ENTER_KEY = 13;\n\t/**\n\t * Tab key code\n\t * @type {Number}\n\t */\n\tvar TAB_KEY = exports.TAB_KEY = 9;\n\t/**\n\t * Escape key code\n\t * @type {Number}\n\t */\n\tvar ESC_KEY = exports.ESC_KEY = 27;\n\t/**\n\t * Up arrow key code\n\t * @type {Number}\n\t */\n\tvar UP_ARROW_KEY = exports.UP_ARROW_KEY = 38;\n\t/**\n\t * Down arrow key code\n\t * @type {Number}\n\t */\n\tvar DOWN_ARROW_KEY = exports.DOWN_ARROW_KEY = 40;\n\t\n\t/**\n\t * HTML tags\n\t */\n\t\n\t/**\n\t * Header cell tag\n\t * @type {String}\n\t */\n\tvar HEADER_TAG = exports.HEADER_TAG = 'TH';\n\t/**\n\t * Cell tag\n\t * @type {String}\n\t */\n\tvar CELL_TAG = exports.CELL_TAG = 'TD';\n\t\n\t/**\n\t * Data types\n\t */\n\t\n\t/**\n\t * String\n\t * @type {String}\n\t */\n\tvar STRING = exports.STRING = 'string';\n\t\n\t/**\n\t * Number\n\t * @type {String}\n\t */\n\tvar NUMBER = exports.NUMBER = 'number';\n\t\n\t/**\n\t * Formatted number\n\t * @type {String}\n\t */\n\tvar FORMATTED_NUMBER = exports.FORMATTED_NUMBER = 'formatted-number';\n\t\n\t/**\n\t * Date\n\t * @type {String}\n\t */\n\tvar DATE = exports.DATE = 'date';\n\t\n\t/**\n\t * IP address\n\t * @type {String}\n\t */\n\tvar IP_ADDRESS = exports.IP_ADDRESS = 'ipaddress';\n\t\n\t/**\n\t * Default values\n\t */\n\t\n\t/**\n\t * Auto filter delay in milliseconds\n\t * @type {Number}\n\t */\n\tvar AUTO_FILTER_DELAY = exports.AUTO_FILTER_DELAY = 750;\n\n/***/ },\n/* 12 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Loader = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar EVENTS = ['before-filtering', 'before-populating-filter', 'before-page-change', 'before-clearing-filters', 'before-page-length-change', 'before-reset-page', 'before-reset-page-length', 'before-loading-extensions', 'before-loading-themes'];\n\t\n\t/**\r\n\t * Activity indicator\r\n\t *\r\n\t * @export\r\n\t * @class Loader\r\n\t * @extends {Feature}\r\n\t */\n\t\n\tvar Loader = exports.Loader = function (_Feature) {\n\t _inherits(Loader, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of Loader.\r\n\t *\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function Loader(tf) {\n\t _classCallCheck(this, Loader);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'loader'));\n\t\n\t var f = _this.config;\n\t\n\t /**\r\n\t * ID of custom container element\r\n\t * @type {String}\r\n\t */\n\t _this.targetId = f.loader_target_id || null;\n\t\n\t /**\r\n\t * Loader container DOM element\r\n\t * @type {DOMElement}\r\n\t */\n\t _this.cont = null;\n\t\n\t /**\r\n\t * Text displayed when indicator is visible\r\n\t * @type {String}\r\n\t */\n\t _this.text = f.loader_text || 'Loading...';\n\t\n\t /**\r\n\t * Custom HTML injected in Loader's container element\r\n\t * @type {String}\r\n\t */\n\t _this.html = f.loader_html || null;\n\t\n\t /**\r\n\t * Css class for Loader's container element\r\n\t * @type {String}\r\n\t */\n\t _this.cssClass = f.loader_css_class || 'loader';\n\t\n\t /**\r\n\t * Close delay in milliseconds\r\n\t * @type {Number}\r\n\t */\n\t _this.closeDelay = 250;\n\t\n\t /**\r\n\t * Callback fired when loader is displayed\r\n\t * @type {Function}\r\n\t */\n\t _this.onShow = (0, _types.isFn)(f.on_show_loader) ? f.on_show_loader : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired when loader is closed\r\n\t * @type {Function}\r\n\t */\n\t _this.onHide = (0, _types.isFn)(f.on_hide_loader) ? f.on_hide_loader : _types.EMPTY_FN;\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Initializes Loader instance\r\n\t */\n\t\n\t\n\t Loader.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t var emitter = this.emitter;\n\t\n\t var containerDiv = (0, _dom.createElm)('div');\n\t containerDiv.className = this.cssClass;\n\t\n\t var targetEl = !this.targetId ? tf.tbl.parentNode : (0, _dom.elm)(this.targetId);\n\t if (!this.targetId) {\n\t targetEl.insertBefore(containerDiv, tf.tbl);\n\t } else {\n\t targetEl.appendChild(containerDiv);\n\t }\n\t this.cont = containerDiv;\n\t if (!this.html) {\n\t this.cont.appendChild((0, _dom.createText)(this.text));\n\t } else {\n\t this.cont.innerHTML = this.html;\n\t }\n\t\n\t this.show(_const.NONE);\n\t\n\t // Subscribe to events\n\t emitter.on(EVENTS, function () {\n\t return _this2.show('');\n\t });\n\t emitter.on(EVENTS, function () {\n\t return _this2.show(_const.NONE);\n\t });\n\t\n\t /**\r\n\t * @inherited\r\n\t */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Shows or hides activity indicator\r\n\t * @param {String} Two possible values: '' or 'none'\r\n\t */\n\t\n\t\n\t Loader.prototype.show = function show(p) {\n\t var _this3 = this;\n\t\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t\n\t var displayLoader = function displayLoader() {\n\t if (!_this3.cont) {\n\t return;\n\t }\n\t if (p !== _const.NONE) {\n\t _this3.onShow(_this3);\n\t }\n\t _this3.cont.style.display = p;\n\t if (p === _const.NONE) {\n\t _this3.onHide(_this3);\n\t }\n\t };\n\t\n\t var t = p === _const.NONE ? this.closeDelay : 1;\n\t _root.root.setTimeout(displayLoader, t);\n\t };\n\t\n\t /**\r\n\t * Removes feature\r\n\t */\n\t\n\t\n\t Loader.prototype.destroy = function destroy() {\n\t var _this4 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t var emitter = this.emitter;\n\t\n\t (0, _dom.removeElm)(this.cont);\n\t this.cont = null;\n\t\n\t // Unsubscribe to events\n\t emitter.off(EVENTS, function () {\n\t return _this4.show('');\n\t });\n\t emitter.off(EVENTS, function () {\n\t return _this4.show(_const.NONE);\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return Loader;\n\t}(_feature.Feature);\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.HighlightKeyword = undefined;\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/**\r\n\t * Highlight matched keywords upon filtering\r\n\t *\r\n\t * @export\r\n\t * @class HighlightKeyword\r\n\t */\n\tvar HighlightKeyword = exports.HighlightKeyword = function () {\n\t\n\t /**\r\n\t * Creates an instance of HighlightKeyword\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function HighlightKeyword(tf) {\n\t _classCallCheck(this, HighlightKeyword);\n\t\n\t var f = tf.config();\n\t\n\t /**\r\n\t * Css class for highlighted term\r\n\t * @type {String}\r\n\t */\n\t this.highlightCssClass = f.highlight_css_class || 'keyword';\n\t\n\t /**\r\n\t * TableFilter instance\r\n\t * @type {TableFilter}\r\n\t */\n\t this.tf = tf;\n\t\n\t /**\r\n\t * TableFilter's emitter instance\r\n\t * @type {Emitter}\r\n\t */\n\t this.emitter = tf.emitter;\n\t }\n\t\n\t /**\r\n\t * Initializes HighlightKeyword instance\r\n\t */\n\t\n\t\n\t HighlightKeyword.prototype.init = function init() {\n\t var _this = this;\n\t\n\t this.emitter.on(['before-filtering', 'destroy'], function () {\n\t return _this.unhighlightAll();\n\t });\n\t this.emitter.on(['highlight-keyword'], function (tf, cell, term) {\n\t return _this._processTerm(cell, term);\n\t });\n\t };\n\t\n\t /**\r\n\t * Highlight occurences of searched term in passed node\r\n\t * @param {Node} node\r\n\t * @param {String} term Searched term\r\n\t * @param {String} cssClass Css class name\r\n\t *\r\n\t * TODO: refactor this method\r\n\t */\n\t\n\t\n\t HighlightKeyword.prototype.highlight = function highlight(node, term, cssClass) {\n\t // Iterate into this nodes childNodes\n\t if (node.hasChildNodes) {\n\t var children = node.childNodes;\n\t for (var i = 0; i < children.length; i++) {\n\t this.highlight(children[i], term, cssClass);\n\t }\n\t }\n\t\n\t if (node.nodeType === 3) {\n\t var nodeVal = node.nodeValue.toLowerCase();\n\t var termIdx = nodeVal.indexOf(term.toLowerCase());\n\t\n\t if (termIdx !== -1) {\n\t var pn = node.parentNode;\n\t if (pn && pn.className !== cssClass) {\n\t // term not highlighted yet\n\t var nv = node.nodeValue,\n\t\n\t // Create a load of replacement nodes\n\t before = (0, _dom.createText)(nv.substr(0, termIdx)),\n\t value = nv.substr(termIdx, term.length),\n\t after = (0, _dom.createText)(nv.substr(termIdx + term.length)),\n\t text = (0, _dom.createText)(value),\n\t container = (0, _dom.createElm)('span');\n\t container.className = cssClass;\n\t container.appendChild(text);\n\t pn.insertBefore(before, node);\n\t pn.insertBefore(container, node);\n\t pn.insertBefore(after, node);\n\t pn.removeChild(node);\n\t }\n\t }\n\t }\n\t };\n\t\n\t /**\r\n\t * Removes highlight to nodes matching passed string\r\n\t * @param {String} term\r\n\t * @param {String} cssClass Css class to remove\r\n\t */\n\t\n\t\n\t HighlightKeyword.prototype.unhighlight = function unhighlight(term, cssClass) {\n\t var highlightedNodes = this.tf.tbl.querySelectorAll('.' + cssClass);\n\t for (var i = 0; i < highlightedNodes.length; i++) {\n\t var n = highlightedNodes[i];\n\t var nodeVal = (0, _dom.getText)(n);\n\t\n\t if (nodeVal.toLowerCase().indexOf(term.toLowerCase()) !== -1) {\n\t var parentNode = n.parentNode;\n\t parentNode.replaceChild((0, _dom.createText)(nodeVal), n);\n\t parentNode.normalize();\n\t }\n\t }\n\t };\n\t\n\t /**\r\n\t * Clear all occurrences of highlighted nodes\r\n\t */\n\t\n\t\n\t HighlightKeyword.prototype.unhighlightAll = function unhighlightAll() {\n\t var _this2 = this;\n\t\n\t if (!this.tf.highlightKeywords) {\n\t return;\n\t }\n\t // iterate filters values to unhighlight all values\n\t this.tf.getFiltersValue().forEach(function (val) {\n\t if ((0, _types.isArray)(val)) {\n\t val.forEach(function (item) {\n\t return _this2.unhighlight(item, _this2.highlightCssClass);\n\t });\n\t } else {\n\t _this2.unhighlight(val, _this2.highlightCssClass);\n\t }\n\t });\n\t };\n\t\n\t /** Remove feature */\n\t\n\t\n\t HighlightKeyword.prototype.destroy = function destroy() {\n\t var _this3 = this;\n\t\n\t this.emitter.off(['before-filtering', 'destroy'], function () {\n\t return _this3.unhighlightAll();\n\t });\n\t this.emitter.off(['highlight-keyword'], function (tf, cell, term) {\n\t return _this3._processTerm(cell, term);\n\t });\n\t };\n\t\n\t /**\r\n\t * Ensure filtering operators are handled before highlighting any match\r\n\t * @param {any} Table cell to look searched term into\r\n\t * @param {any} Searched termIdx\r\n\t */\n\t\n\t\n\t HighlightKeyword.prototype._processTerm = function _processTerm(cell, term) {\n\t var tf = this.tf;\n\t var reLk = new RegExp((0, _string.rgxEsc)(tf.lkOperator));\n\t var reEq = new RegExp(tf.eqOperator);\n\t var reSt = new RegExp(tf.stOperator);\n\t var reEn = new RegExp(tf.enOperator);\n\t var reLe = new RegExp(tf.leOperator);\n\t var reGe = new RegExp(tf.geOperator);\n\t var reL = new RegExp(tf.lwOperator);\n\t var reG = new RegExp(tf.grOperator);\n\t var reD = new RegExp(tf.dfOperator);\n\t\n\t term = term.replace(reLk, '').replace(reEq, '').replace(reSt, '').replace(reEn, '');\n\t\n\t if (reLe.test(term) || reGe.test(term) || reL.test(term) || reG.test(term) || reD.test(term)) {\n\t term = (0, _dom.getText)(cell);\n\t }\n\t\n\t if (term === '') {\n\t return;\n\t }\n\t\n\t this.highlight(cell, term, this.highlightCssClass);\n\t };\n\t\n\t return HighlightKeyword;\n\t}();\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.PopupFilter = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\r\n\t * Pop-up filter component\r\n\t * @export\r\n\t * @class PopupFilter\r\n\t * @extends {Feature}\r\n\t */\n\tvar PopupFilter = exports.PopupFilter = function (_Feature) {\n\t _inherits(PopupFilter, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of PopupFilter\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function PopupFilter(tf) {\n\t _classCallCheck(this, PopupFilter);\n\t\n\t // Configuration object\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'popupFilters'));\n\t\n\t var f = _this.config;\n\t\n\t // Enable external filters\n\t tf.isExternalFlt = true;\n\t tf.externalFltTgtIds = [];\n\t\n\t /**\r\n\t * Close active popup filter upon filtering, enabled by default\r\n\t * @type {Boolean}\r\n\t */\n\t _this.closeOnFiltering = f.popup_filters_close_on_filtering === false ? false : true;\n\t\n\t /**\r\n\t * Filter icon path\r\n\t * @type {String}\r\n\t */\n\t _this.iconPath = f.popup_filters_image || tf.themesPath + 'icn_filter.gif';\n\t\n\t /**\r\n\t * Active filter icon path\r\n\t * @type {string}\r\n\t */\n\t _this.activeIconPath = f.popup_filters_image_active || tf.themesPath + 'icn_filterActive.gif';\n\t\n\t /**\r\n\t * HTML for the filter icon\r\n\t * @type {string}\r\n\t */\n\t _this.iconHtml = f.popup_filters_image_html || '\"Column';\n\t\n\t /**\r\n\t * Css class assigned to filter container element\r\n\t * @type {String}\r\n\t */\n\t _this.containerCssClass = f.popup_div_css_class || 'popUpFilter';\n\t\n\t /**\r\n\t * Ensure filter's container element width matches column width, enabled\r\n\t * by default\r\n\t * @type {Boolean}\r\n\t */\n\t _this.adjustToContainer = f.popup_filters_adjust_to_container === false ? false : true;\n\t\n\t /**\r\n\t * Callback fired before a popup filter is opened\r\n\t * @type {Function}\r\n\t */\n\t _this.onBeforeOpen = (0, _types.isFn)(f.on_before_popup_filter_open) ? f.on_before_popup_filter_open : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired after a popup filter is opened\r\n\t * @type {Function}\r\n\t */\n\t _this.onAfterOpen = (0, _types.isFn)(f.on_after_popup_filter_open) ? f.on_after_popup_filter_open : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired before a popup filter is closed\r\n\t * @type {Function}\r\n\t */\n\t _this.onBeforeClose = (0, _types.isFn)(f.on_before_popup_filter_close) ? f.on_before_popup_filter_close : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired after a popup filter is closed\r\n\t * @type {Function}\r\n\t */\n\t _this.onAfterClose = (0, _types.isFn)(f.on_after_popup_filter_close) ? f.on_after_popup_filter_close : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Collection of filters spans\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.fltSpans = [];\n\t\n\t /**\r\n\t * Collection of filters icons\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.fltIcons = [];\n\t\n\t /**\r\n\t * Collection of filters icons cached after pop-up filters are removed\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.filtersCache = null;\n\t\n\t /**\r\n\t * Collection of filters containers\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.fltElms = _this.filtersCache || [];\n\t\n\t /**\r\n\t * Prefix for pop-up filter container ID\r\n\t * @type {String}\r\n\t * @private\r\n\t */\n\t _this.prfxDiv = 'popup_';\n\t\n\t /**\r\n\t * Column index of popup filter currently active\r\n\t * @type {Number}\r\n\t * @private\r\n\t */\n\t _this.activeFilterIdx = -1;\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Click event handler for pop-up filter icon\r\n\t * @private\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.onClick = function onClick(evt) {\n\t var elm = (0, _event.targetEvt)(evt).parentNode;\n\t var colIndex = parseInt(elm.getAttribute('ci'), 10);\n\t\n\t this.closeAll(colIndex);\n\t this.toggle(colIndex);\n\t\n\t if (this.adjustToContainer) {\n\t var cont = this.fltElms[colIndex],\n\t header = this.tf.getHeaderElement(colIndex),\n\t headerWidth = header.clientWidth * 0.95;\n\t cont.style.width = parseInt(headerWidth, 10) + 'px';\n\t }\n\t (0, _event.cancelEvt)(evt);\n\t (0, _event.stopEvt)(evt);\n\t };\n\t\n\t /**\r\n\t * Mouse-up event handler handling popup filter auto-close behaviour\r\n\t * @private\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.onMouseup = function onMouseup(evt) {\n\t if (this.activeFilterIdx === -1) {\n\t return;\n\t }\n\t var targetElm = (0, _event.targetEvt)(evt);\n\t var activeFlt = this.fltElms[this.activeFilterIdx];\n\t var icon = this.fltIcons[this.activeFilterIdx];\n\t\n\t if (icon === targetElm) {\n\t return;\n\t }\n\t\n\t while (targetElm && targetElm !== activeFlt) {\n\t targetElm = targetElm.parentNode;\n\t }\n\t\n\t if (targetElm !== activeFlt) {\n\t this.close(this.activeFilterIdx);\n\t }\n\t\n\t return;\n\t };\n\t\n\t /**\r\n\t * Initialize DOM elements\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t\n\t // Override headers row index if no grouped headers\n\t // TODO: Because of the filters row generation, headers row index needs\n\t // adjusting: prevent useless row generation\n\t if (tf.headersRow <= 1 && isNaN(tf.config().headers_row_index)) {\n\t tf.headersRow = 0;\n\t }\n\t\n\t // Adjust headers row index for grid-layout mode\n\t // TODO: Because of the filters row generation, headers row index needs\n\t // adjusting: prevent useless row generation\n\t if (tf.gridLayout) {\n\t tf.headersRow--;\n\t this.buildIcons();\n\t }\n\t\n\t // subscribe to events\n\t this.emitter.on(['before-filtering'], function () {\n\t return _this2.setIconsState();\n\t });\n\t this.emitter.on(['after-filtering'], function () {\n\t return _this2.closeAll();\n\t });\n\t this.emitter.on(['cell-processed'], function (tf, cellIndex) {\n\t return _this2.changeState(cellIndex, true);\n\t });\n\t this.emitter.on(['filters-row-inserted'], function () {\n\t return _this2.buildIcons();\n\t });\n\t this.emitter.on(['before-filter-init'], function (tf, colIndex) {\n\t return _this2.build(colIndex);\n\t });\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Reset previously destroyed feature\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.reset = function reset() {\n\t this.enable();\n\t this.init();\n\t this.buildIcons();\n\t this.buildAll();\n\t };\n\t\n\t /**\r\n\t * Build all filters icons\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.buildIcons = function buildIcons() {\n\t var _this3 = this;\n\t\n\t var tf = this.tf;\n\t\n\t // TODO: Because of the filters row generation, headers row index needs\n\t // adjusting: prevent useless row generation\n\t tf.headersRow++;\n\t\n\t for (var i = 0; i < tf.nbCells; i++) {\n\t if (tf.getFilterType(i) === _const.NONE) {\n\t continue;\n\t }\n\t var icon = (0, _dom.createElm)('span', ['ci', i]);\n\t icon.innerHTML = this.iconHtml;\n\t var header = tf.getHeaderElement(i);\n\t header.appendChild(icon);\n\t (0, _event.addEvt)(icon, 'click', function (evt) {\n\t return _this3.onClick(evt);\n\t });\n\t this.fltSpans[i] = icon;\n\t this.fltIcons[i] = icon.firstChild;\n\t }\n\t };\n\t\n\t /**\r\n\t * Build all pop-up filters elements\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.buildAll = function buildAll() {\n\t for (var i = 0; i < this.filtersCache.length; i++) {\n\t this.build(i, this.filtersCache[i]);\n\t }\n\t };\n\t\n\t /**\r\n\t * Build a specified pop-up filter elements\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Object} div Optional container DOM element\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.build = function build(colIndex, div) {\n\t var tf = this.tf;\n\t var contId = '' + this.prfxDiv + tf.id + '_' + colIndex;\n\t var cont = div || (0, _dom.createElm)('div', ['id', contId]);\n\t cont.className = this.containerCssClass;\n\t tf.externalFltTgtIds.push(cont.id);\n\t\n\t var header = tf.getHeaderElement(colIndex);\n\t header.insertBefore(cont, header.firstChild);\n\t (0, _event.addEvt)(cont, 'click', function (evt) {\n\t return (0, _event.stopEvt)(evt);\n\t });\n\t this.fltElms[colIndex] = cont;\n\t };\n\t\n\t /**\r\n\t * Toggle visibility of specified filter\r\n\t * @param {Number} colIndex Column index\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.toggle = function toggle(colIndex) {\n\t if (!this.isOpen(colIndex)) {\n\t this.open(colIndex);\n\t } else {\n\t this.close(colIndex);\n\t }\n\t };\n\t\n\t /**\r\n\t * Open popup filter of specified column\r\n\t * @param {Number} colIndex Column index\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.open = function open(colIndex) {\n\t var _this4 = this;\n\t\n\t var tf = this.tf,\n\t container = this.fltElms[colIndex];\n\t\n\t this.onBeforeOpen(this, container, colIndex);\n\t\n\t container.style.display = 'block';\n\t this.activeFilterIdx = colIndex;\n\t (0, _event.addEvt)(_root.root, 'mouseup', function (evt) {\n\t return _this4.onMouseup(evt);\n\t });\n\t\n\t if (tf.getFilterType(colIndex) === _const.INPUT) {\n\t var flt = tf.getFilterElement(colIndex);\n\t if (flt) {\n\t flt.focus();\n\t }\n\t }\n\t\n\t this.onAfterOpen(this, container, colIndex);\n\t };\n\t\n\t /**\r\n\t * Close popup filter of specified column\r\n\t * @param {Number} colIndex Column index\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.close = function close(colIndex) {\n\t var _this5 = this;\n\t\n\t var container = this.fltElms[colIndex];\n\t\n\t this.onBeforeClose(this, container, colIndex);\n\t\n\t container.style.display = _const.NONE;\n\t if (this.activeFilterIdx === colIndex) {\n\t this.activeFilterIdx = -1;\n\t }\n\t (0, _event.removeEvt)(_root.root, 'mouseup', function (evt) {\n\t return _this5.onMouseup(evt);\n\t });\n\t\n\t this.onAfterClose(this, container, colIndex);\n\t };\n\t\n\t /**\r\n\t * Check if popup filter for specified column is open\r\n\t * @param {Number} colIndex Column index\r\n\t * @returns {Boolean}\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.isOpen = function isOpen(colIndex) {\n\t return this.fltElms[colIndex].style.display === 'block';\n\t };\n\t\n\t /**\r\n\t * Close all filters excepted for the specified one if any\r\n\t * @param {Number} exceptIdx Column index of the filter to not close\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.closeAll = function closeAll(exceptIdx) {\n\t // Do not close filters only if argument is undefined and close on\n\t // filtering option is disabled\n\t if ((0, _types.isUndef)(exceptIdx) && !this.closeOnFiltering) {\n\t return;\n\t }\n\t for (var i = 0; i < this.fltElms.length; i++) {\n\t if (i === exceptIdx) {\n\t continue;\n\t }\n\t var fltType = tf.getFilterType(i);\n\t var isMultipleFilter = fltType === _const.CHECKLIST || fltType === _const.MULTIPLE;\n\t\n\t // Always hide all single selection filter types but hide multiple\n\t // selection filter types only if index set\n\t if (!isMultipleFilter || !(0, _types.isUndef)(exceptIdx)) {\n\t this.close(i);\n\t }\n\t }\n\t };\n\t\n\t /**\r\n\t * Build all the icons representing the pop-up filters\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.setIconsState = function setIconsState() {\n\t for (var i = 0; i < this.fltIcons.length; i++) {\n\t this.changeState(i, false);\n\t }\n\t };\n\t\n\t /**\r\n\t * Apply specified icon state\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Boolean} active Apply active state\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.changeState = function changeState(colIndex, active) {\n\t var icon = this.fltIcons[colIndex];\n\t if (icon) {\n\t icon.src = active ? this.activeIconPath : this.iconPath;\n\t }\n\t };\n\t\n\t /**\r\n\t * Remove pop-up filters\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.destroy = function destroy() {\n\t var _this6 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t this.filtersCache = [];\n\t for (var i = 0; i < this.fltElms.length; i++) {\n\t var container = this.fltElms[i],\n\t icon = this.fltSpans[i],\n\t iconImg = this.fltIcons[i];\n\t if (container) {\n\t (0, _dom.removeElm)(container);\n\t this.filtersCache[i] = container;\n\t }\n\t container = null;\n\t if (icon) {\n\t (0, _dom.removeElm)(icon);\n\t }\n\t icon = null;\n\t if (iconImg) {\n\t (0, _dom.removeElm)(iconImg);\n\t }\n\t iconImg = null;\n\t }\n\t this.fltElms = [];\n\t this.fltSpans = [];\n\t this.fltIcons = [];\n\t\n\t // TODO: expose an API to handle external filter IDs\n\t tf.externalFltTgtIds = [];\n\t\n\t // unsubscribe to events\n\t this.emitter.off(['before-filtering'], function () {\n\t return _this6.setIconsState();\n\t });\n\t this.emitter.off(['after-filtering'], function () {\n\t return _this6.closeAll();\n\t });\n\t this.emitter.off(['cell-processed'], function (tf, cellIndex) {\n\t return _this6.changeState(cellIndex, true);\n\t });\n\t this.emitter.off(['filters-row-inserted'], function () {\n\t return _this6.buildIcons();\n\t });\n\t this.emitter.off(['before-filter-init'], function (tf, colIndex) {\n\t return _this6.build(colIndex);\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return PopupFilter;\n\t}(_feature.Feature);\n\n/***/ },\n/* 15 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Dropdown = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _array = __webpack_require__(16);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\tvar _sort = __webpack_require__(17);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar SORT_ERROR = 'Filter options for column {0} cannot be sorted in ' + '{1} manner.';\n\t\n\t/**\r\n\t * Dropdown filter UI component\r\n\t */\n\t\n\tvar Dropdown = exports.Dropdown = function (_Feature) {\n\t _inherits(Dropdown, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of Dropdown\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function Dropdown(tf) {\n\t _classCallCheck(this, Dropdown);\n\t\n\t // Configuration object\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'dropdown'));\n\t\n\t var f = _this.config;\n\t\n\t /**\r\n\t * Enable the reset filter option as first item\r\n\t * @type {Boolean}\r\n\t */\n\t _this.enableSlcResetFilter = f.enable_slc_reset_filter === false ? false : true;\n\t\n\t /**\r\n\t * Non empty option text\r\n\t * @type {String}\r\n\t */\n\t _this.nonEmptyText = f.non_empty_text || '(Non empty)';\n\t\n\t /**\r\n\t * Tooltip text appearing on multiple select\r\n\t * @type {String}\r\n\t */\n\t _this.multipleSlcTooltip = f.multiple_slc_tooltip || 'Use Ctrl/Cmd key for multiple selections';\n\t\n\t /**\r\n\t * Indicates drop-down has custom options\r\n\t * @private\r\n\t */\n\t _this.isCustom = null;\n\t\n\t /**\r\n\t * List of options values\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.opts = null;\n\t\n\t /**\r\n\t * List of options texts for custom values\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.optsTxt = null;\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Drop-down filter focus event handler\r\n\t * @param {Event} e DOM Event\r\n\t * @private\r\n\t */\n\t\n\t\n\t Dropdown.prototype.onSlcFocus = function onSlcFocus(e) {\n\t var elm = (0, _event.targetEvt)(e);\n\t var tf = this.tf;\n\t // select is populated when element has focus\n\t if (tf.loadFltOnDemand && elm.getAttribute('filled') === '0') {\n\t var ct = elm.getAttribute('ct');\n\t this.build(ct);\n\t }\n\t this.emitter.emit('filter-focus', tf, elm);\n\t };\n\t\n\t /**\r\n\t * Drop-down filter change event handler\r\n\t * @private\r\n\t */\n\t\n\t\n\t Dropdown.prototype.onSlcChange = function onSlcChange() {\n\t if (this.tf.onSlcChange) {\n\t this.tf.filter();\n\t }\n\t };\n\t\n\t /**\r\n\t * Refresh all drop-down filters\r\n\t */\n\t\n\t\n\t Dropdown.prototype.refreshAll = function refreshAll() {\n\t var _this2 = this;\n\t\n\t var tf = this.tf;\n\t var selectFlts = tf.getFiltersByType(_const.SELECT, true);\n\t var multipleFlts = tf.getFiltersByType(_const.MULTIPLE, true);\n\t var flts = selectFlts.concat(multipleFlts);\n\t flts.forEach(function (colIdx) {\n\t var values = _this2.getValues(colIdx);\n\t _this2.build(colIdx, tf.linkedFilters);\n\t _this2.selectOptions(colIdx, values);\n\t });\n\t };\n\t\n\t /**\r\n\t * Initialize drop-down filter\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Boolean} isExternal External filter flag\r\n\t * @param {DOMElement} container Dom element containing the filter\r\n\t */\n\t\n\t\n\t Dropdown.prototype.init = function init(colIndex, isExternal, container) {\n\t var _this3 = this;\n\t\n\t var tf = this.tf;\n\t var col = tf.getFilterType(colIndex);\n\t var externalFltTgtId = isExternal ? tf.externalFltTgtIds[colIndex] : null;\n\t\n\t var slc = (0, _dom.createElm)(_const.SELECT, ['id', tf.buildFilterId(colIndex)], ['ct', colIndex], ['filled', '0']);\n\t\n\t if (col === _const.MULTIPLE) {\n\t slc.multiple = _const.MULTIPLE;\n\t slc.title = this.multipleSlcTooltip;\n\t }\n\t slc.className = col.toLowerCase() === _const.SELECT ? tf.fltCssClass : tf.fltMultiCssClass;\n\t\n\t //filter is appended in container element\n\t if (externalFltTgtId) {\n\t (0, _dom.elm)(externalFltTgtId).appendChild(slc);\n\t } else {\n\t container.appendChild(slc);\n\t }\n\t\n\t tf.fltIds.push(slc.id);\n\t\n\t if (!tf.loadFltOnDemand) {\n\t this.build(colIndex);\n\t } else {\n\t //1st option is created here since build isn't invoked\n\t var opt0 = (0, _dom.createOpt)(tf.getClearFilterText(colIndex), '');\n\t slc.appendChild(opt0);\n\t }\n\t\n\t (0, _event.addEvt)(slc, 'change', function () {\n\t return _this3.onSlcChange();\n\t });\n\t (0, _event.addEvt)(slc, 'focus', function (e) {\n\t return _this3.onSlcFocus(e);\n\t });\n\t\n\t this.emitter.on(['build-select-filter'], function (tf, colIndex, isLinked, isExternal) {\n\t return _this3.build(colIndex, isLinked, isExternal);\n\t });\n\t this.emitter.on(['select-options'], function (tf, colIndex, values) {\n\t return _this3.selectOptions(colIndex, values);\n\t });\n\t this.emitter.on(['rows-changed'], function () {\n\t return _this3.refreshAll();\n\t });\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Build drop-down filter UI\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Boolean} isLinked Enable linked filters behaviour\r\n\t */\n\t\n\t\n\t Dropdown.prototype.build = function build(colIndex) {\n\t var isLinked = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t\n\t var tf = this.tf;\n\t colIndex = parseInt(colIndex, 10);\n\t\n\t this.emitter.emit('before-populating-filter', tf, colIndex);\n\t\n\t this.opts = [];\n\t this.optsTxt = [];\n\t\n\t var slcId = tf.fltIds[colIndex];\n\t var slc = (0, _dom.elm)(slcId);\n\t var rows = tf.tbl.rows;\n\t var nbRows = tf.getRowsNb(true);\n\t\n\t //custom select test\n\t this.isCustom = tf.isCustomOptions(colIndex);\n\t\n\t //custom selects text\n\t var activeIdx = void 0;\n\t var activeFilterId = tf.getActiveFilterId();\n\t if (isLinked && activeFilterId) {\n\t activeIdx = tf.getColumnIndexFromFilterId(activeFilterId);\n\t }\n\t\n\t var excludedOpts = null,\n\t filteredDataCol = null;\n\t if (isLinked && tf.disableExcludedOptions) {\n\t excludedOpts = [];\n\t filteredDataCol = [];\n\t }\n\t\n\t for (var k = tf.refRow; k < nbRows; k++) {\n\t // always visible rows don't need to appear on selects as always\n\t // valid\n\t if (tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1) {\n\t continue;\n\t }\n\t\n\t var cell = rows[k].cells,\n\t nchilds = cell.length;\n\t\n\t // checks if row has exact cell #\n\t if (nchilds !== tf.nbCells || this.isCustom) {\n\t continue;\n\t }\n\t\n\t // this loop retrieves cell data\n\t for (var j = 0; j < nchilds; j++) {\n\t if (colIndex !== j) {\n\t continue;\n\t }\n\t if (isLinked && !tf.disableExcludedOptions && !tf.paging && !tf.isRowDisplayed(k) || tf.paging && activeIdx && !tf.isRowValid(k)) {\n\t continue;\n\t }\n\t\n\t var cellValue = tf.getCellValue(cell[j]),\n\t\n\t //Vary Peter's patch\n\t cellString = (0, _string.matchCase)(cellValue, tf.caseSensitive);\n\t\n\t // checks if celldata is already in array\n\t if (!(0, _array.has)(this.opts, cellString, tf.caseSensitive)) {\n\t this.opts.push(cellValue);\n\t }\n\t\n\t if (isLinked && tf.disableExcludedOptions) {\n\t var filteredCol = filteredDataCol[j];\n\t if (!filteredCol) {\n\t filteredCol = tf.getFilteredDataCol(j);\n\t }\n\t if (!(0, _array.has)(filteredCol, cellString, tf.caseSensitive) && !(0, _array.has)(excludedOpts, cellString, tf.caseSensitive)) {\n\t excludedOpts.push(cellValue);\n\t }\n\t }\n\t } //for j\n\t } //for k\n\t\n\t //Retrieves custom values\n\t if (this.isCustom) {\n\t var customValues = tf.getCustomOptions(colIndex);\n\t this.opts = customValues[0];\n\t this.optsTxt = customValues[1];\n\t }\n\t\n\t if (tf.sortSlc && !this.isCustom) {\n\t if (!tf.caseSensitive) {\n\t this.opts.sort(_sort.ignoreCase);\n\t if (excludedOpts) {\n\t excludedOpts.sort(_sort.ignoreCase);\n\t }\n\t } else {\n\t this.opts.sort();\n\t if (excludedOpts) {\n\t excludedOpts.sort();\n\t }\n\t }\n\t }\n\t\n\t //asc sort\n\t if (tf.sortNumAsc.indexOf(colIndex) !== -1) {\n\t try {\n\t this.opts.sort(_sort.numSortAsc);\n\t if (excludedOpts) {\n\t excludedOpts.sort(_sort.numSortAsc);\n\t }\n\t if (this.isCustom) {\n\t this.optsTxt.sort(_sort.numSortAsc);\n\t }\n\t } catch (e) {\n\t throw new Error(SORT_ERROR.replace('{0}', colIndex).replace('{1}', 'ascending'));\n\t } //in case there are alphanumeric values\n\t }\n\t //desc sort\n\t if (tf.sortNumDesc.indexOf(colIndex) !== -1) {\n\t try {\n\t this.opts.sort(_sort.numSortDesc);\n\t if (excludedOpts) {\n\t excludedOpts.sort(_sort.numSortDesc);\n\t }\n\t if (this.isCustom) {\n\t this.optsTxt.sort(_sort.numSortDesc);\n\t }\n\t } catch (e) {\n\t throw new Error(SORT_ERROR.replace('{0}', colIndex).replace('{1}', 'ascending'));\n\t } //in case there are alphanumeric values\n\t }\n\t\n\t //populates drop-down\n\t this.addOptions(colIndex, slc, isLinked, excludedOpts);\n\t\n\t this.emitter.emit('after-populating-filter', tf, colIndex, slc);\n\t };\n\t\n\t /**\r\n\t * Add drop-down options\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Object} slc Select Dom element\r\n\t * @param {Boolean} isLinked Enable linked refresh behaviour\r\n\t * @param {Array} excludedOpts Array of excluded options\r\n\t */\n\t\n\t\n\t Dropdown.prototype.addOptions = function addOptions(colIndex, slc, isLinked, excludedOpts) {\n\t var tf = this.tf,\n\t slcValue = slc.value;\n\t\n\t slc.innerHTML = '';\n\t slc = this.addFirstOption(slc);\n\t\n\t for (var y = 0; y < this.opts.length; y++) {\n\t if (this.opts[y] === '') {\n\t continue;\n\t }\n\t var val = this.opts[y]; //option value\n\t var lbl = this.isCustom ? this.optsTxt[y] : val; //option text\n\t var isDisabled = false;\n\t if (isLinked && tf.disableExcludedOptions && (0, _array.has)(excludedOpts, (0, _string.matchCase)(val, tf.caseSensitive), tf.caseSensitive)) {\n\t isDisabled = true;\n\t }\n\t\n\t var opt = void 0;\n\t //fill select on demand\n\t if (tf.loadFltOnDemand && slcValue === this.opts[y] && tf.getFilterType(colIndex) === _const.SELECT) {\n\t opt = (0, _dom.createOpt)(lbl, val, true);\n\t } else {\n\t opt = (0, _dom.createOpt)(lbl, val, false);\n\t }\n\t if (isDisabled) {\n\t opt.disabled = true;\n\t }\n\t slc.appendChild(opt);\n\t } // for y\n\t\n\t slc.setAttribute('filled', '1');\n\t };\n\t\n\t /**\r\n\t * Add drop-down header option\r\n\t * @param {Object} slc Select DOM element\r\n\t */\n\t\n\t\n\t Dropdown.prototype.addFirstOption = function addFirstOption(slc) {\n\t var tf = this.tf;\n\t var colIdx = tf.getColumnIndexFromFilterId(slc.id);\n\t var opt0 = (0, _dom.createOpt)(!this.enableSlcResetFilter ? '' : tf.getClearFilterText(colIdx), '');\n\t if (!this.enableSlcResetFilter) {\n\t opt0.style.display = _const.NONE;\n\t }\n\t slc.appendChild(opt0);\n\t if (tf.enableEmptyOption) {\n\t var opt1 = (0, _dom.createOpt)(tf.emptyText, tf.emOperator);\n\t slc.appendChild(opt1);\n\t }\n\t if (tf.enableNonEmptyOption) {\n\t var opt2 = (0, _dom.createOpt)(tf.nonEmptyText, tf.nmOperator);\n\t slc.appendChild(opt2);\n\t }\n\t return slc;\n\t };\n\t\n\t /**\r\n\t * Select filter options programmatically\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Array} values Array of option values to select\r\n\t */\n\t\n\t\n\t Dropdown.prototype.selectOptions = function selectOptions(colIndex) {\n\t var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\t\n\t var tf = this.tf;\n\t if (values.length === 0) {\n\t return;\n\t }\n\t var slc = tf.getFilterElement(colIndex);\n\t [].forEach.call(slc.options, function (option) {\n\t // Empty value means clear all selections and first option is the\n\t // clear all option\n\t if (values[0] === '' || option.value === '') {\n\t option.selected = false;\n\t }\n\t\n\t if (option.value !== '' && (0, _array.has)(values, option.value, true)) {\n\t option.selected = true;\n\t } //if\n\t });\n\t };\n\t\n\t /**\r\n\t * Get filter values for a given column index\r\n\t * @param {Number} colIndex Column index\r\n\t * @returns {Array} values Array of selected values\r\n\t */\n\t\n\t\n\t Dropdown.prototype.getValues = function getValues(colIndex) {\n\t var tf = this.tf;\n\t var slc = tf.getFilterElement(colIndex);\n\t var values = [];\n\t\n\t // IE >= 9 does not support the selectedOptions property :(\n\t if (slc.selectedOptions) {\n\t [].forEach.call(slc.selectedOptions, function (option) {\n\t return values.push(option.value);\n\t });\n\t } else {\n\t [].forEach.call(slc.options, function (option) {\n\t if (option.selected) {\n\t values.push(option.value);\n\t }\n\t });\n\t }\n\t\n\t return values;\n\t };\n\t\n\t /**\r\n\t * Destroy Dropdown instance\r\n\t */\n\t\n\t\n\t Dropdown.prototype.destroy = function destroy() {\n\t var _this4 = this;\n\t\n\t this.emitter.off(['build-select-filter'], function (colIndex, isLinked, isExternal) {\n\t return _this4.build(colIndex, isLinked, isExternal);\n\t });\n\t this.emitter.off(['select-options'], function (tf, colIndex, values) {\n\t return _this4.selectOptions(colIndex, values);\n\t });\n\t this.emitter.off(['rows-changed'], function () {\n\t return _this4.refreshAll();\n\t });\n\t this.initialized = false;\n\t };\n\t\n\t return Dropdown;\n\t}(_feature.Feature);\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.has = undefined;\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\t/**\r\n\t * Checks if given item can be found in the passed collection\r\n\t * @param {Array} arr collection\r\n\t * @param {Any} val item to search\r\n\t * @param {Boolean} caseSensitive respects case if true\r\n\t * @return {Boolean}\r\n\t */\n\tvar has = exports.has = function has(arr, val, caseSensitive) {\n\t var sCase = Boolean(caseSensitive);\n\t for (var i = 0, l = arr.length; i < l; i++) {\n\t if ((0, _string.matchCase)(arr[i].toString(), sCase) === val) {\n\t return true;\n\t }\n\t }\n\t return false;\n\t}; /**\r\n\t * Array utilities\r\n\t */\n\n/***/ },\n/* 17 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t/**\r\n\t * Sorting utilities\r\n\t */\n\t\n\t/**\r\n\t * Case insensitive compare function for passed strings\r\n\t * @param {String} First string\r\n\t * @param {String} Second string\r\n\t * @return {Number} -1 if first string lower than second one\r\n\t * 0 if first string same order as second one\r\n\t * 1 if first string greater than second one\r\n\t */\n\tvar ignoreCase = exports.ignoreCase = function ignoreCase(a, b) {\n\t var x = a.toLowerCase();\n\t var y = b.toLowerCase();\n\t return x < y ? -1 : x > y ? 1 : 0;\n\t};\n\t\n\t/**\r\n\t * Sorts passed numbers in a ascending manner\r\n\t * @param {Number} First number\r\n\t * @param {Number} Second number\r\n\t * @param {Number} Negative, zero or positive number\r\n\t */\n\tvar numSortAsc = exports.numSortAsc = function numSortAsc(a, b) {\n\t return a - b;\n\t};\n\t\n\t/**\r\n\t * Sorts passed numbers in a descending manner\r\n\t * @param {Number} First number\r\n\t * @param {Number} Second number\r\n\t * @param {Number} Negative, zero or positive number\r\n\t */\n\tvar numSortDesc = exports.numSortDesc = function numSortDesc(a, b) {\n\t return b - a;\n\t};\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.CheckList = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _array = __webpack_require__(16);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\tvar _sort = __webpack_require__(17);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar SORT_ERROR = 'Filter options for column {0} cannot be sorted in ' + '{1} manner.';\n\t\n\t/**\r\n\t * Checklist filter UI component\r\n\t */\n\t\n\tvar CheckList = exports.CheckList = function (_Feature) {\n\t _inherits(CheckList, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of CheckList\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function CheckList(tf) {\n\t _classCallCheck(this, CheckList);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'checkList'));\n\t\n\t var f = _this.config;\n\t\n\t /**\r\n\t * List of container DOM elements\r\n\t * @type {Array}\r\n\t */\n\t _this.containers = [];\n\t\n\t /**\r\n\t * Css class for the container of the checklist filter (div)\r\n\t * @type {String}\r\n\t */\n\t _this.containerCssClass = f.div_checklist_css_class || 'div_checklist';\n\t\n\t /**\r\n\t * Css class for the checklist filter element (ul)\r\n\t * @type {String}\r\n\t */\n\t _this.filterCssClass = f.checklist_css_class || 'flt_checklist';\n\t\n\t /**\r\n\t * Css class for the item of a checklist (li)\r\n\t * @type {String}\r\n\t */\n\t _this.itemCssClass = f.checklist_item_css_class || 'flt_checklist_item';\n\t\n\t /**\r\n\t * Css class for a selected item of a checklist (li)\r\n\t * @type {String}\r\n\t */\n\t _this.selectedItemCssClass = f.checklist_selected_item_css_class || 'flt_checklist_slc_item';\n\t\n\t /**\r\n\t * Text placed in the filter's container when load filter on demand\r\n\t * feature is enabled\r\n\t * @type {String}\r\n\t */\n\t _this.activateText = f.activate_checklist_text || 'Click to load filter data';\n\t\n\t /**\r\n\t * Css class for a disabled item of a checklist (li)\r\n\t * @type {String}\r\n\t */\n\t _this.disabledItemCssClass = f.checklist_item_disabled_css_class || 'flt_checklist_item_disabled';\n\t\n\t /**\r\n\t * Enable the reset filter option as first item\r\n\t * @type {Boolean}\r\n\t */\n\t _this.enableResetOption = f.enable_checklist_reset_filter === false ? false : true;\n\t\n\t /**\r\n\t * Prefix for container element ID\r\n\t * @type {String}\r\n\t * @private\r\n\t */\n\t _this.prfx = 'chkdiv_';\n\t\n\t /**\r\n\t * Has custom options\r\n\t * @type {Boolean}\r\n\t * @private\r\n\t */\n\t _this.isCustom = false;\n\t\n\t /**\r\n\t * List of options values\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.opts = [];\n\t\n\t /**\r\n\t * List of options texts for custom values\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.optsTxt = [];\n\t\n\t /**\r\n\t * List of options to be excluded from the checklist filter\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.excludedOpts = [];\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Checklist option click event handler\r\n\t * @param {Event} evt\r\n\t * @private\r\n\t */\n\t\n\t\n\t CheckList.prototype.optionClick = function optionClick(evt) {\n\t var elm = (0, _event.targetEvt)(evt);\n\t var tf = this.tf;\n\t\n\t this.emitter.emit('filter-focus', tf, elm);\n\t this.setCheckListValues(elm);\n\t tf.filter();\n\t };\n\t\n\t /**\r\n\t * Checklist container click event handler for load-on-demand feature\r\n\t * @param {Event} evt\r\n\t * @private\r\n\t */\n\t\n\t\n\t CheckList.prototype.onCheckListClick = function onCheckListClick(evt) {\n\t var _this2 = this;\n\t\n\t var elm = (0, _event.targetEvt)(evt);\n\t if (this.tf.loadFltOnDemand && elm.getAttribute('filled') === '0') {\n\t var ct = elm.getAttribute('ct');\n\t var div = this.containers[ct];\n\t this.build(ct);\n\t (0, _event.removeEvt)(div, 'click', function (evt) {\n\t return _this2.onCheckListClick(evt);\n\t });\n\t }\n\t };\n\t\n\t /**\r\n\t * Refresh all checklist filters\r\n\t */\n\t\n\t\n\t CheckList.prototype.refreshAll = function refreshAll() {\n\t var _this3 = this;\n\t\n\t var tf = this.tf;\n\t var fltsIdxs = tf.getFiltersByType(_const.CHECKLIST, true);\n\t fltsIdxs.forEach(function (colIdx) {\n\t var values = _this3.getValues(colIdx);\n\t _this3.build(colIdx, tf.linkedFilters);\n\t _this3.selectOptions(colIdx, values);\n\t });\n\t };\n\t\n\t /**\r\n\t * Initialize checklist filter\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Boolean} isExternal External filter flag\r\n\t * @param {DOMElement} container Dom element containing the filter\r\n\t */\n\t\n\t\n\t CheckList.prototype.init = function init(colIndex, isExternal, container) {\n\t var _this4 = this;\n\t\n\t var tf = this.tf;\n\t var externalFltTgtId = isExternal ? tf.externalFltTgtIds[colIndex] : null;\n\t\n\t var divCont = (0, _dom.createElm)('div', ['id', '' + this.prfx + colIndex + '_' + tf.id], ['ct', colIndex], ['filled', '0']);\n\t divCont.className = this.containerCssClass;\n\t\n\t //filter is appended in desired element\n\t if (externalFltTgtId) {\n\t (0, _dom.elm)(externalFltTgtId).appendChild(divCont);\n\t } else {\n\t container.appendChild(divCont);\n\t }\n\t\n\t this.containers[colIndex] = divCont;\n\t tf.fltIds.push(tf.buildFilterId(colIndex));\n\t\n\t if (!tf.loadFltOnDemand) {\n\t this.build(colIndex);\n\t } else {\n\t (0, _event.addEvt)(divCont, 'click', function (evt) {\n\t return _this4.onCheckListClick(evt);\n\t });\n\t divCont.appendChild((0, _dom.createText)(this.activateText));\n\t }\n\t\n\t this.emitter.on(['build-checklist-filter'], function (tf, colIndex, isLinked) {\n\t return _this4.build(colIndex, isLinked);\n\t });\n\t\n\t this.emitter.on(['select-checklist-options'], function (tf, colIndex, values) {\n\t return _this4.selectOptions(colIndex, values);\n\t });\n\t\n\t this.emitter.on(['rows-changed'], function () {\n\t return _this4.refreshAll();\n\t });\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Build checklist UI\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Boolean} isLinked Enable linked filters behaviour\r\n\t */\n\t\n\t\n\t CheckList.prototype.build = function build(colIndex) {\n\t var isLinked = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t\n\t var tf = this.tf;\n\t colIndex = parseInt(colIndex, 10);\n\t\n\t this.emitter.emit('before-populating-filter', tf, colIndex);\n\t\n\t this.opts = [];\n\t this.optsTxt = [];\n\t\n\t var flt = this.containers[colIndex];\n\t var ul = (0, _dom.createElm)('ul', ['id', tf.fltIds[colIndex]], ['colIndex', colIndex]);\n\t ul.className = this.filterCssClass;\n\t\n\t var rows = tf.tbl.rows;\n\t var nbRows = tf.getRowsNb(true);\n\t var caseSensitive = tf.caseSensitive;\n\t this.isCustom = tf.isCustomOptions(colIndex);\n\t\n\t var activeIdx = void 0;\n\t var activeFilterId = tf.getActiveFilterId();\n\t if (isLinked && activeFilterId) {\n\t activeIdx = tf.getColumnIndexFromFilterId(activeFilterId);\n\t }\n\t\n\t var filteredDataCol = [];\n\t if (isLinked && tf.disableExcludedOptions) {\n\t this.excludedOpts = [];\n\t }\n\t\n\t flt.innerHTML = '';\n\t\n\t for (var k = tf.refRow; k < nbRows; k++) {\n\t // always visible rows don't need to appear on selects as always\n\t // valid\n\t if (tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1) {\n\t continue;\n\t }\n\t\n\t var cells = rows[k].cells;\n\t var ncells = cells.length;\n\t\n\t // checks if row has exact cell #\n\t if (ncells !== tf.nbCells || this.isCustom) {\n\t continue;\n\t }\n\t\n\t // this loop retrieves cell data\n\t for (var j = 0; j < ncells; j++) {\n\t if (colIndex !== j) {\n\t continue;\n\t }\n\t if (isLinked && !tf.disableExcludedOptions && !tf.paging && !tf.isRowDisplayed(k) || tf.paging && activeIdx && !tf.isRowValid(k)) {\n\t continue;\n\t }\n\t\n\t var cellValue = tf.getCellValue(cells[j]);\n\t //Vary Peter's patch\n\t var cellString = (0, _string.matchCase)(cellValue, caseSensitive);\n\t // checks if celldata is already in array\n\t if (!(0, _array.has)(this.opts, cellString, caseSensitive)) {\n\t this.opts.push(cellValue);\n\t }\n\t var filteredCol = filteredDataCol[j];\n\t if (isLinked && tf.disableExcludedOptions) {\n\t if (!filteredCol) {\n\t filteredCol = tf.getFilteredDataCol(j);\n\t }\n\t if (!(0, _array.has)(filteredCol, cellString, caseSensitive) && !(0, _array.has)(this.excludedOpts, cellString, caseSensitive)) {\n\t this.excludedOpts.push(cellValue);\n\t }\n\t }\n\t }\n\t }\n\t\n\t //Retrieves custom values\n\t if (this.isCustom) {\n\t var customValues = tf.getCustomOptions(colIndex);\n\t this.opts = customValues[0];\n\t this.optsTxt = customValues[1];\n\t }\n\t\n\t if (tf.sortSlc && !this.isCustom) {\n\t if (!caseSensitive) {\n\t this.opts.sort(_sort.ignoreCase);\n\t if (this.excludedOpts) {\n\t this.excludedOpts.sort(_sort.ignoreCase);\n\t }\n\t } else {\n\t this.opts.sort();\n\t if (this.excludedOpts) {\n\t this.excludedOpts.sort();\n\t }\n\t }\n\t }\n\t //asc sort\n\t if (tf.sortNumAsc.indexOf(colIndex) !== -1) {\n\t try {\n\t this.opts.sort(_sort.numSortAsc);\n\t if (this.excludedOpts) {\n\t this.excludedOpts.sort(_sort.numSortAsc);\n\t }\n\t if (this.isCustom) {\n\t this.optsTxt.sort(_sort.numSortAsc);\n\t }\n\t } catch (e) {\n\t throw new Error(SORT_ERROR.replace('{0}', colIndex).replace('{1}', 'ascending'));\n\t } //in case there are alphanumeric values\n\t }\n\t //desc sort\n\t if (tf.sortNumDesc.indexOf(colIndex) !== -1) {\n\t try {\n\t this.opts.sort(_sort.numSortDesc);\n\t if (this.excludedOpts) {\n\t this.excludedOpts.sort(_sort.numSortDesc);\n\t }\n\t if (this.isCustom) {\n\t this.optsTxt.sort(_sort.numSortDesc);\n\t }\n\t } catch (e) {\n\t throw new Error(SORT_ERROR.replace('{0}', colIndex).replace('{1}', 'descending'));\n\t } //in case there are alphanumeric values\n\t }\n\t\n\t this.addChecks(colIndex, ul);\n\t\n\t if (tf.loadFltOnDemand) {\n\t flt.innerHTML = '';\n\t }\n\t flt.appendChild(ul);\n\t flt.setAttribute('filled', '1');\n\t\n\t this.emitter.emit('after-populating-filter', tf, colIndex, flt);\n\t };\n\t\n\t /**\r\n\t * Add checklist options\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Object} ul Ul element\r\n\t * @private\r\n\t */\n\t\n\t\n\t CheckList.prototype.addChecks = function addChecks(colIndex, ul) {\n\t var _this5 = this;\n\t\n\t var tf = this.tf;\n\t var chkCt = this.addTChecks(colIndex, ul);\n\t\n\t for (var y = 0; y < this.opts.length; y++) {\n\t var val = this.opts[y]; //item value\n\t var lbl = this.isCustom ? this.optsTxt[y] : val; //item text\n\t var fltId = tf.fltIds[colIndex];\n\t var li = (0, _dom.createCheckItem)(fltId + '_' + (y + chkCt), val, lbl);\n\t li.className = this.itemCssClass;\n\t\n\t if (tf.linkedFilters && tf.disableExcludedOptions && (0, _array.has)(this.excludedOpts, (0, _string.matchCase)(val, tf.caseSensitive), tf.caseSensitive)) {\n\t (0, _dom.addClass)(li, this.disabledItemCssClass);\n\t li.check.disabled = true;\n\t li.disabled = true;\n\t } else {\n\t (0, _event.addEvt)(li.check, 'click', function (evt) {\n\t return _this5.optionClick(evt);\n\t });\n\t }\n\t ul.appendChild(li);\n\t\n\t if (val === '') {\n\t //item is hidden\n\t li.style.display = _const.NONE;\n\t }\n\t }\n\t };\n\t\n\t /**\r\n\t * Add checklist header option\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Object} ul Ul element\r\n\t * @private\r\n\t */\n\t\n\t\n\t CheckList.prototype.addTChecks = function addTChecks(colIndex, ul) {\n\t var _this6 = this;\n\t\n\t var tf = this.tf;\n\t var chkCt = 1;\n\t var fltId = tf.fltIds[colIndex];\n\t var li0 = (0, _dom.createCheckItem)(fltId + '_0', '', tf.getClearFilterText(colIndex));\n\t li0.className = this.itemCssClass;\n\t ul.appendChild(li0);\n\t\n\t (0, _event.addEvt)(li0.check, 'click', function (evt) {\n\t return _this6.optionClick(evt);\n\t });\n\t\n\t if (!this.enableResetOption) {\n\t li0.style.display = _const.NONE;\n\t }\n\t\n\t if (tf.enableEmptyOption) {\n\t var li1 = (0, _dom.createCheckItem)(fltId + '_1', tf.emOperator, tf.emptyText);\n\t li1.className = this.itemCssClass;\n\t ul.appendChild(li1);\n\t (0, _event.addEvt)(li1.check, 'click', function (evt) {\n\t return _this6.optionClick(evt);\n\t });\n\t chkCt++;\n\t }\n\t\n\t if (tf.enableNonEmptyOption) {\n\t var li2 = (0, _dom.createCheckItem)(fltId + '_2', tf.nmOperator, tf.nonEmptyText);\n\t li2.className = this.itemCssClass;\n\t ul.appendChild(li2);\n\t (0, _event.addEvt)(li2.check, 'click', function (evt) {\n\t return _this6.optionClick(evt);\n\t });\n\t chkCt++;\n\t }\n\t return chkCt;\n\t };\n\t\n\t /**\r\n\t * Store checked options in DOM element attribute\r\n\t * @param {Object} o checklist option DOM element\r\n\t * @private\r\n\t */\n\t\n\t\n\t CheckList.prototype.setCheckListValues = function setCheckListValues(o) {\n\t if (!o) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t var chkValue = o.value; //checked item value\n\t // TODO: provide helper to extract column index, ugly!\n\t var chkIndex = parseInt(o.id.split('_')[2], 10);\n\t var colIdx = tf.getColumnIndexFromFilterId(o.id);\n\t var itemTag = 'LI';\n\t\n\t var n = tf.getFilterElement(parseInt(colIdx, 10));\n\t var li = n.childNodes[chkIndex];\n\t var colIndex = n.getAttribute('colIndex');\n\t var fltValue = n.getAttribute('value'); //filter value (ul tag)\n\t var fltIndexes = n.getAttribute('indexes'); //selected items (ul tag)\n\t\n\t if (o.checked) {\n\t //show all item\n\t if (chkValue === '') {\n\t if (fltIndexes && fltIndexes !== '') {\n\t //items indexes\n\t var indSplit = fltIndexes.split(tf.separator);\n\t //checked items loop\n\t for (var u = 0; u < indSplit.length; u++) {\n\t //checked item\n\t var cChk = (0, _dom.elm)(tf.fltIds[colIndex] + '_' + indSplit[u]);\n\t if (cChk) {\n\t cChk.checked = false;\n\t (0, _dom.removeClass)(n.childNodes[indSplit[u]], this.selectedItemCssClass);\n\t }\n\t }\n\t }\n\t n.setAttribute('value', '');\n\t n.setAttribute('indexes', '');\n\t } else {\n\t fltValue = fltValue ? fltValue : '';\n\t chkValue = (0, _string.trim)(fltValue + ' ' + chkValue + ' ' + tf.orOperator);\n\t chkIndex = fltIndexes + chkIndex + tf.separator;\n\t n.setAttribute('value', chkValue);\n\t n.setAttribute('indexes', chkIndex);\n\t //1st option unchecked\n\t if ((0, _dom.elm)(tf.fltIds[colIndex] + '_0')) {\n\t (0, _dom.elm)(tf.fltIds[colIndex] + '_0').checked = false;\n\t }\n\t }\n\t\n\t if (li.nodeName === itemTag) {\n\t (0, _dom.removeClass)(n.childNodes[0], this.selectedItemCssClass);\n\t (0, _dom.addClass)(li, this.selectedItemCssClass);\n\t }\n\t } else {\n\t //removes values and indexes\n\t if (chkValue !== '') {\n\t var replaceValue = new RegExp((0, _string.rgxEsc)(chkValue + ' ' + tf.orOperator));\n\t fltValue = fltValue.replace(replaceValue, '');\n\t n.setAttribute('value', (0, _string.trim)(fltValue));\n\t\n\t var replaceIndex = new RegExp((0, _string.rgxEsc)(chkIndex + tf.separator));\n\t fltIndexes = fltIndexes.replace(replaceIndex, '');\n\t n.setAttribute('indexes', fltIndexes);\n\t }\n\t if (li.nodeName === itemTag) {\n\t (0, _dom.removeClass)(li, this.selectedItemCssClass);\n\t }\n\t }\n\t };\n\t\n\t /**\r\n\t * Select filter options programmatically\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Array} values Array of option values to select\r\n\t */\n\t\n\t\n\t CheckList.prototype.selectOptions = function selectOptions(colIndex) {\n\t var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\t\n\t var tf = this.tf;\n\t var flt = tf.getFilterElement(colIndex);\n\t if (tf.getFilterType(colIndex) !== _const.CHECKLIST || !flt || values.length === 0) {\n\t return;\n\t }\n\t\n\t var lisNb = (0, _dom.tag)(flt, 'li').length;\n\t\n\t flt.setAttribute('value', '');\n\t flt.setAttribute('indexes', '');\n\t\n\t for (var k = 0; k < lisNb; k++) {\n\t var li = (0, _dom.tag)(flt, 'li')[k];\n\t var lbl = (0, _dom.tag)(li, 'label')[0];\n\t var chk = (0, _dom.tag)(li, 'input')[0];\n\t var lblTxt = (0, _string.matchCase)((0, _dom.getText)(lbl), tf.caseSensitive);\n\t\n\t if (lblTxt !== '' && (0, _array.has)(values, lblTxt, tf.caseSensitive)) {\n\t chk.checked = true;\n\t } else {\n\t // Check non-empty-text or empty-text option\n\t if (values.indexOf(tf.nmOperator) !== -1 && lblTxt === (0, _string.matchCase)(tf.nonEmptyText, tf.caseSensitive)) {\n\t chk.checked = true;\n\t } else if (values.indexOf(tf.emOperator) !== -1 && lblTxt === (0, _string.matchCase)(tf.emptyText, tf.caseSensitive)) {\n\t chk.checked = true;\n\t } else {\n\t chk.checked = false;\n\t }\n\t }\n\t this.setCheckListValues(chk);\n\t }\n\t };\n\t\n\t /**\r\n\t * Get filter values for a given column index\r\n\t * @param {Number} colIndex Column index\r\n\t * @returns {Array} values Collection of selected values\r\n\t */\n\t\n\t\n\t CheckList.prototype.getValues = function getValues(colIndex) {\n\t var tf = this.tf;\n\t var flt = tf.getFilterElement(colIndex);\n\t var fltAttr = flt.getAttribute('value');\n\t var values = (0, _types.isEmpty)(fltAttr) ? '' : fltAttr;\n\t\n\t //removes last operator ||\n\t values = values.substr(0, values.length - 3);\n\t //turn || separated values into array\n\t values = values.split(' ' + tf.orOperator + ' ');\n\t\n\t return values;\n\t };\n\t\n\t /**\r\n\t * Destroy CheckList instance\r\n\t */\n\t\n\t\n\t CheckList.prototype.destroy = function destroy() {\n\t var _this7 = this;\n\t\n\t this.emitter.off(['build-checklist-filter'], function (tf, colIndex, isLinked) {\n\t return _this7.build(colIndex, isLinked);\n\t });\n\t this.emitter.off(['select-checklist-options'], function (tf, colIndex, values) {\n\t return _this7.selectOptions(colIndex, values);\n\t });\n\t this.emitter.off(['rows-changed'], function () {\n\t return _this7.refreshAll();\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return CheckList;\n\t}(_feature.Feature);\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.RowsCounter = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\r\n\t * Rows counter UI component\r\n\t * @export\r\n\t * @class RowsCounter\r\n\t * @extends {Feature}\r\n\t */\n\tvar RowsCounter = exports.RowsCounter = function (_Feature) {\n\t _inherits(RowsCounter, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of RowsCounter\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function RowsCounter(tf) {\n\t _classCallCheck(this, RowsCounter);\n\t\n\t // TableFilter configuration\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'rowsCounter'));\n\t\n\t var f = _this.config;\n\t\n\t /**\r\n\t * ID of custom container element\r\n\t * @type {String}\r\n\t */\n\t _this.targetId = f.rows_counter_target_id || null;\n\t\n\t /**\r\n\t * Container DOM element\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.container = null;\n\t\n\t /**\r\n\t * Container DOM element for label displaying the total number of rows\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.label = null;\n\t\n\t /**\r\n\t * Text preceding the total number of rows\r\n\t * @type {String}\r\n\t */\n\t _this.text = f.rows_counter_text || 'Rows: ';\n\t\n\t /**\r\n\t * Separator symbol appearing between the first and last visible rows of\r\n\t * current page when paging is enabled. ie: Rows: 31-40 / 70\r\n\t * @type {String}\r\n\t */\n\t _this.fromToTextSeparator = f.from_to_text_separator || '-';\n\t\n\t /**\r\n\t * Separator symbol appearing between the first and last visible rows of\r\n\t * current page and the total number of filterable rows when paging is\r\n\t * enabled. ie: Rows: 31-40 / 70\r\n\t * @type {String}\r\n\t */\n\t _this.overText = f.over_text || ' / ';\n\t\n\t /**\r\n\t * Css class for container element\r\n\t * @type {String}\r\n\t */\n\t _this.cssClass = f.tot_rows_css_class || 'tot';\n\t\n\t /**\r\n\t * Callback fired before the counter is refreshed\r\n\t * @type {Function}\r\n\t */\n\t _this.onBeforeRefreshCounter = (0, _types.isFn)(f.on_before_refresh_counter) ? f.on_before_refresh_counter : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired after the counter is refreshed\r\n\t * @type {Function}\r\n\t */\n\t _this.onAfterRefreshCounter = (0, _types.isFn)(f.on_after_refresh_counter) ? f.on_after_refresh_counter : _types.EMPTY_FN;\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Initializes RowsCounter instance\r\n\t */\n\t\n\t\n\t RowsCounter.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t\n\t //rows counter container\n\t var countDiv = (0, _dom.createElm)('div');\n\t countDiv.className = this.cssClass;\n\t //rows counter label\n\t var countSpan = (0, _dom.createElm)('span');\n\t var countText = (0, _dom.createElm)('span');\n\t countText.appendChild((0, _dom.createText)(this.text));\n\t\n\t // counter is added to defined element\n\t if (!this.targetId) {\n\t tf.setToolbar();\n\t }\n\t var targetEl = !this.targetId ? tf.lDiv : (0, _dom.elm)(this.targetId);\n\t\n\t //default container: 'lDiv'\n\t if (!this.targetId) {\n\t countDiv.appendChild(countText);\n\t countDiv.appendChild(countSpan);\n\t targetEl.appendChild(countDiv);\n\t } else {\n\t //custom container, no need to append statusDiv\n\t targetEl.appendChild(countText);\n\t targetEl.appendChild(countSpan);\n\t }\n\t this.container = countDiv;\n\t this.label = countSpan;\n\t\n\t // subscribe to events\n\t this.emitter.on(['after-filtering', 'grouped-by-page'], function () {\n\t return _this2.refresh(tf.getValidRowsNb());\n\t });\n\t this.emitter.on(['rows-changed'], function () {\n\t return _this2.refresh();\n\t });\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t this.refresh();\n\t };\n\t\n\t /**\r\n\t * Refreshes the rows counter\r\n\t * @param {Number} p Optional parameter the total number of rows to display\r\n\t * @returns\r\n\t */\n\t\n\t\n\t RowsCounter.prototype.refresh = function refresh(p) {\n\t if (!this.initialized || !this.isEnabled()) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t\n\t this.onBeforeRefreshCounter(tf, this.label);\n\t\n\t var totTxt = void 0;\n\t if (!tf.paging) {\n\t if (p && p !== '') {\n\t totTxt = p;\n\t } else {\n\t totTxt = tf.getFilterableRowsNb() - tf.nbHiddenRows;\n\t }\n\t } else {\n\t var paging = tf.feature('paging');\n\t if (paging) {\n\t //paging start row\n\t var pagingStartRow = parseInt(paging.startPagingRow, 10) + (tf.getValidRowsNb() > 0 ? 1 : 0);\n\t var pagingEndRow = pagingStartRow + paging.pagingLength - 1 <= tf.getValidRowsNb() ? pagingStartRow + paging.pagingLength - 1 : tf.getValidRowsNb();\n\t totTxt = pagingStartRow + this.fromToTextSeparator + pagingEndRow + this.overText + tf.getValidRowsNb();\n\t }\n\t }\n\t\n\t this.label.innerHTML = totTxt;\n\t this.onAfterRefreshCounter(tf, this.label, totTxt);\n\t };\n\t\n\t /**\r\n\t * Remove feature\r\n\t */\n\t\n\t\n\t RowsCounter.prototype.destroy = function destroy() {\n\t var _this3 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t if (!this.targetId && this.container) {\n\t (0, _dom.removeElm)(this.container);\n\t } else {\n\t (0, _dom.elm)(this.targetId).innerHTML = '';\n\t }\n\t this.label = null;\n\t this.container = null;\n\t\n\t // unsubscribe to events\n\t this.emitter.off(['after-filtering', 'grouped-by-page'], function () {\n\t return _this3.refresh(tf.getValidRowsNb());\n\t });\n\t this.emitter.off(['rows-changed'], function () {\n\t return _this3.refresh();\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return RowsCounter;\n\t}(_feature.Feature);\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.StatusBar = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar EVENTS = ['after-filtering', 'after-populating-filter', 'after-page-change', 'after-clearing-filters', 'after-page-length-change', 'after-reset-page', 'after-reset-page-length', 'after-loading-extensions', 'after-loading-themes'];\n\t\n\t/**\r\n\t * Status bar UI component\r\n\t * @export\r\n\t * @class StatusBar\r\n\t * @extends {Feature}\r\n\t */\n\t\n\tvar StatusBar = exports.StatusBar = function (_Feature) {\n\t _inherits(StatusBar, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of StatusBar\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function StatusBar(tf) {\n\t _classCallCheck(this, StatusBar);\n\t\n\t // Configuration object\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'statusBar'));\n\t\n\t var f = _this.config;\n\t\n\t /**\r\n\t * ID of custom container element\r\n\t * @type {String}\r\n\t */\n\t _this.targetId = f.status_bar_target_id || null;\n\t\n\t /**\r\n\t * Container DOM element\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.container = null;\n\t\n\t /**\r\n\t * Message container DOM element\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.msgContainer = null;\n\t\n\t /**\r\n\t * Label container DOM element\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.labelContainer = null;\n\t\n\t /**\r\n\t * Text preceding status message\r\n\t * @type {String}\r\n\t */\n\t _this.text = f.status_bar_text || '';\n\t\n\t /**\r\n\t * Css class for container element\r\n\t * @type {String}\r\n\t */\n\t _this.cssClass = f.status_bar_css_class || 'status';\n\t\n\t /**\r\n\t * Message visibility duration in milliseconds\r\n\t * @type {Number}\r\n\t * @private\r\n\t */\n\t _this.delay = 250;\n\t\n\t /**\r\n\t * Callback fired before the message is displayed\r\n\t * @type {Function}\r\n\t */\n\t _this.onBeforeShowMsg = (0, _types.isFn)(f.on_before_show_msg) ? f.on_before_show_msg : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired after the message is displayed\r\n\t * @type {Function}\r\n\t */\n\t _this.onAfterShowMsg = (0, _types.isFn)(f.on_after_show_msg) ? f.on_after_show_msg : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Message appearing upon filtering\r\n\t * @type {String}\r\n\t */\n\t _this.msgFilter = f.msg_filter || 'Filtering data...';\n\t\n\t /**\r\n\t * Message appearing when a drop-down filter is populated\r\n\t * @type {String}\r\n\t */\n\t _this.msgPopulate = f.msg_populate || 'Populating filter...';\n\t\n\t /**\r\n\t * Message appearing when a checklist filter is populated\r\n\t * @type {String}\r\n\t */\n\t _this.msgPopulateCheckList = f.msg_populate_checklist || 'Populating list...';\n\t\n\t /**\r\n\t * Message appearing when a pagination page is changed\r\n\t * @type {String}\r\n\t */\n\t _this.msgChangePage = f.msg_change_page || 'Collecting paging data...';\n\t\n\t /**\r\n\t * Message appearing when filters are cleared\r\n\t * @type {String}\r\n\t */\n\t _this.msgClear = f.msg_clear || 'Clearing filters...';\n\t\n\t /**\r\n\t * Message appearing when the page length is changed\r\n\t * @type {String}\r\n\t */\n\t _this.msgChangeResults = f.msg_change_results || 'Changing results per page...';\n\t\n\t /**\r\n\t * Message appearing when the page is re-set\r\n\t * @type {String}\r\n\t */\n\t _this.msgResetPage = f.msg_reset_page || 'Re-setting page...';\n\t\n\t /**\r\n\t * Message appearing when the page length is re-set\r\n\t * @type {String}\r\n\t */\n\t _this.msgResetPageLength = f.msg_reset_page_length || 'Re-setting page length...';\n\t\n\t /**\r\n\t * Message appearing upon column sorting\r\n\t * @type {String}\r\n\t */\n\t _this.msgSort = f.msg_sort || 'Sorting data...';\n\t\n\t /**\r\n\t * Message appearing when extensions are loading\r\n\t * @type {String}\r\n\t */\n\t _this.msgLoadExtensions = f.msg_load_extensions || 'Loading extensions...';\n\t\n\t /**\r\n\t * Message appearing when themes are loading\r\n\t * @type {String}\r\n\t */\n\t _this.msgLoadThemes = f.msg_load_themes || 'Loading theme(s)...';\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Initializes StatusBar instance\r\n\t */\n\t\n\t\n\t StatusBar.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t var emitter = this.emitter;\n\t\n\t //status bar container\n\t var statusDiv = (0, _dom.createElm)('div');\n\t statusDiv.className = this.cssClass;\n\t\n\t //status bar label\n\t var statusSpan = (0, _dom.createElm)('span');\n\t //preceding text\n\t var statusSpanText = (0, _dom.createElm)('span');\n\t statusSpanText.appendChild((0, _dom.createText)(this.text));\n\t\n\t // target element container\n\t if (!this.targetId) {\n\t tf.setToolbar();\n\t }\n\t var targetEl = !this.targetId ? tf.lDiv : (0, _dom.elm)(this.targetId);\n\t\n\t //default container: 'lDiv'\n\t if (!this.targetId) {\n\t statusDiv.appendChild(statusSpanText);\n\t statusDiv.appendChild(statusSpan);\n\t targetEl.appendChild(statusDiv);\n\t } else {\n\t // custom container, no need to append statusDiv\n\t targetEl.appendChild(statusSpanText);\n\t targetEl.appendChild(statusSpan);\n\t }\n\t\n\t this.container = statusDiv;\n\t this.msgContainer = statusSpan;\n\t this.labelContainer = statusSpanText;\n\t\n\t // Subscribe to events\n\t emitter.on(['before-filtering'], function () {\n\t return _this2.message(_this2.msgFilter);\n\t });\n\t emitter.on(['before-populating-filter'], function () {\n\t return _this2.message(_this2.msgPopulate);\n\t });\n\t emitter.on(['before-page-change'], function () {\n\t return _this2.message(_this2.msgChangePage);\n\t });\n\t emitter.on(['before-clearing-filters'], function () {\n\t return _this2.message(_this2.msgClear);\n\t });\n\t emitter.on(['before-page-length-change'], function () {\n\t return _this2.message(_this2.msgChangeResults);\n\t });\n\t emitter.on(['before-reset-page'], function () {\n\t return _this2.message(_this2.msgResetPage);\n\t });\n\t emitter.on(['before-reset-page-length'], function () {\n\t return _this2.message(_this2.msgResetPageLength);\n\t });\n\t emitter.on(['before-loading-extensions'], function () {\n\t return _this2.message(_this2.msgLoadExtensions);\n\t });\n\t emitter.on(['before-loading-themes'], function () {\n\t return _this2.message(_this2.msgLoadThemes);\n\t });\n\t\n\t emitter.on(EVENTS, function () {\n\t return _this2.message('');\n\t });\n\t\n\t /**\r\n\t * @inherited\r\n\t */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Display status message\r\n\t * @param {String} [t=''] Message to be displayed\r\n\t */\n\t\n\t\n\t StatusBar.prototype.message = function message() {\n\t var _this3 = this;\n\t\n\t var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\t\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t\n\t this.onBeforeShowMsg(this.tf, t);\n\t\n\t var d = t === '' ? this.delay : 1;\n\t _root.root.setTimeout(function () {\n\t if (!_this3.initialized) {\n\t return;\n\t }\n\t _this3.msgContainer.innerHTML = t;\n\t\n\t _this3.onAfterShowMsg(_this3.tf, t);\n\t }, d);\n\t };\n\t\n\t /**\r\n\t * Destroy StatusBar instance\r\n\t */\n\t\n\t\n\t StatusBar.prototype.destroy = function destroy() {\n\t var _this4 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t var emitter = this.emitter;\n\t\n\t this.container.innerHTML = '';\n\t if (!this.targetId) {\n\t (0, _dom.removeElm)(this.container);\n\t }\n\t this.labelContainer = null;\n\t this.msgContainer = null;\n\t this.container = null;\n\t\n\t // Unsubscribe to events\n\t emitter.off(['before-filtering'], function () {\n\t return _this4.message(_this4.msgFilter);\n\t });\n\t emitter.off(['before-populating-filter'], function () {\n\t return _this4.message(_this4.msgPopulate);\n\t });\n\t emitter.off(['before-page-change'], function () {\n\t return _this4.message(_this4.msgChangePage);\n\t });\n\t emitter.off(['before-clearing-filters'], function () {\n\t return _this4.message(_this4.msgClear);\n\t });\n\t emitter.off(['before-page-length-change'], function () {\n\t return _this4.message(_this4.msgChangeResults);\n\t });\n\t emitter.off(['before-reset-page'], function () {\n\t return _this4.message(_this4.msgResetPage);\n\t });\n\t emitter.off(['before-reset-page-length'], function () {\n\t return _this4.message(_this4.msgResetPageLength);\n\t });\n\t emitter.off(['before-loading-extensions'], function () {\n\t return _this4.message(_this4.msgLoadExtensions);\n\t });\n\t emitter.off(['before-loading-themes'], function () {\n\t return _this4.message(_this4.msgLoadThemes);\n\t });\n\t\n\t emitter.off(EVENTS, function () {\n\t return _this4.message('');\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return StatusBar;\n\t}(_feature.Feature);\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Paging = undefined;\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\n\t * Paging UI component\n\t * @export\n\t * @class Paging\n\t * @extends {Feature}\n\t */\n\tvar Paging = exports.Paging = function (_Feature) {\n\t _inherits(Paging, _Feature);\n\t\n\t /**\n\t * Creates an instance of Paging\n\t * @param {TableFilter} tf TableFilter instance\n\t */\n\t function Paging(tf) {\n\t _classCallCheck(this, Paging);\n\t\n\t // Configuration object\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'paging'));\n\t\n\t var f = _this.config;\n\t\n\t /**\n\t * Css class for the paging buttons (previous, next, etc.)\n\t * @type {String}\n\t */\n\t _this.btnPageCssClass = f.paging_btn_css_class || 'pgInp';\n\t\n\t /**\n\t * Main select DOM element\n\t * @type {DOMElement}\n\t */\n\t _this.pagingSlc = null;\n\t\n\t /**\n\t * Results per page select DOM element\n\t * @type {DOMElement}\n\t */\n\t _this.resultsPerPageSlc = null;\n\t\n\t /**\n\t * ID of custom container element\n\t * @type {String}\n\t */\n\t _this.pagingTgtId = f.paging_target_id || null;\n\t\n\t /**\n\t * Number of rows contained in a page\n\t * @type {Number}\n\t */\n\t _this.pagingLength = !isNaN(f.paging_length) ? f.paging_length : 10;\n\t\n\t /**\n\t * ID of custom container element for the results per page selector\n\t * @type {String}\n\t */\n\t _this.resultsPerPageTgtId = f.results_per_page_target_id || null;\n\t\n\t /**\n\t * Css class for the paging select element\n\t * @type {String}\n\t */\n\t _this.pgSlcCssClass = f.paging_slc_css_class || 'pgSlc';\n\t\n\t /**\n\t * Css class for the paging input element\n\t * @type {String}\n\t */\n\t _this.pgInpCssClass = f.paging_inp_css_class || 'pgNbInp';\n\t\n\t /**\n\t * Label and values for the results per page select, example of usage:\n\t * ['Records: ', [10,25,50,100]]\n\t * @type {Array}\n\t */\n\t _this.resultsPerPage = f.results_per_page || null;\n\t\n\t /**\n\t * Determines if results per page is configured\n\t * @type {Boolean}\n\t */\n\t _this.hasResultsPerPage = (0, _types.isArray)(_this.resultsPerPage);\n\t\n\t /**\n\t * Css class for the results per page select\n\t * @type {String}\n\t */\n\t _this.resultsSlcCssClass = f.results_slc_css_class || 'rspg';\n\t\n\t /**\n\t * Css class for the label preceding results per page select\n\t * @type {String}\n\t */\n\t _this.resultsSpanCssClass = f.results_span_css_class || 'rspgSpan';\n\t\n\t /**\n\t * Index of the first row of current page\n\t * @type {Number}\n\t * @private\n\t */\n\t _this.startPagingRow = 0;\n\t\n\t /**\n\t * Total number of pages\n\t * @type {Number}\n\t * @private\n\t */\n\t _this.nbPages = 0;\n\t\n\t /**\n\t * Current page number\n\t * @type {Number}\n\t * @private\n\t */\n\t _this.currentPageNb = 1;\n\t\n\t /**\n\t * Next page button text\n\t * @type {String}\n\t */\n\t _this.btnNextPageText = f.btn_next_page_text || '>';\n\t\n\t /**\n\t * Previous page button text\n\t * @type {String}\n\t */\n\t _this.btnPrevPageText = f.btn_prev_page_text || '<';\n\t\n\t /**\n\t * Last page button text\n\t * @type {String}\n\t */\n\t _this.btnLastPageText = f.btn_last_page_text || '>|';\n\t\n\t /**\n\t * First page button text\n\t * @type {String}\n\t */\n\t _this.btnFirstPageText = f.btn_first_page_text || '|<';\n\t\n\t /**\n\t * Next page button HTML\n\t * @type {String}\n\t */\n\t _this.btnNextPageHtml = f.btn_next_page_html || (!tf.enableIcons ? null : '');\n\t\n\t /**\n\t * Previous page button HTML\n\t * @type {String}\n\t */\n\t _this.btnPrevPageHtml = f.btn_prev_page_html || (!tf.enableIcons ? null : '');\n\t\n\t /**\n\t * First page button HTML\n\t * @type {String}\n\t */\n\t _this.btnFirstPageHtml = f.btn_first_page_html || (!tf.enableIcons ? null : '');\n\t\n\t /**\n\t * Last page button HTML\n\t * @type {String}\n\t */\n\t _this.btnLastPageHtml = f.btn_last_page_html || (!tf.enableIcons ? null : '');\n\t\n\t /**\n\t * Text preceeding page selector drop-down\n\t * @type {String}\n\t */\n\t _this.pageText = f.page_text || ' Page ';\n\t\n\t /**\n\t * Text after page selector drop-down\n\t * @type {String}\n\t */\n\t _this.ofText = f.of_text || ' of ';\n\t\n\t /**\n\t * Css class for the span containing total number of pages\n\t * @type {String}\n\t */\n\t _this.nbPgSpanCssClass = f.nb_pages_css_class || 'nbpg';\n\t\n\t /**\n\t * Determines if paging buttons are enabled (default: true)\n\t * @type {Boolean}\n\t */\n\t _this.hasPagingBtns = f.paging_btns === false ? false : true;\n\t\n\t /**\n\t * Defines page selector type, two possible values: 'select', 'input'\n\t * @type {String}\n\t */\n\t _this.pageSelectorType = f.page_selector_type || _const.SELECT;\n\t\n\t /**\n\t * Callback fired before the page is changed\n\t * @type {Function}\n\t */\n\t _this.onBeforeChangePage = (0, _types.isFn)(f.on_before_change_page) ? f.on_before_change_page : _types.EMPTY_FN;\n\t\n\t /**\n\t * Callback fired after the page is changed\n\t * @type {Function}\n\t */\n\t _this.onAfterChangePage = (0, _types.isFn)(f.on_after_change_page) ? f.on_after_change_page : _types.EMPTY_FN;\n\t\n\t /**\n\t * Label preciding results per page select\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.slcResultsTxt = null;\n\t /**\n\t * Span containing next page button\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.btnNextCont = null;\n\t /**\n\t * Span containing previous page button\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.btnPrevCont = null;\n\t /**\n\t * Span containing last page button\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.btnLastCont = null;\n\t /**\n\t * Span containing first page button\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.btnFirstCont = null;\n\t /**\n\t * Span for tot nb pages\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.pgCont = null;\n\t /**\n\t * Span preceding pages select (contains 'Page')\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.pgBefore = null;\n\t /**\n\t * Span following pages select (contains ' of ')\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.pgAfter = null;\n\t\n\t var start_row = tf.refRow;\n\t var nrows = tf.getRowsNb(true);\n\t //calculates page nb\n\t _this.nbPages = Math.ceil((nrows - start_row) / _this.pagingLength);\n\t\n\t var o = _this;\n\t /**\n\t * Paging DOM events handlers\n\t * @type {String}\n\t * @private\n\t */\n\t _this.evt = {\n\t slcIndex: function slcIndex() {\n\t return o.pageSelectorType === _const.SELECT ? o.pagingSlc.options.selectedIndex : parseInt(o.pagingSlc.value, 10) - 1;\n\t },\n\t nbOpts: function nbOpts() {\n\t return o.pageSelectorType === _const.SELECT ? parseInt(o.pagingSlc.options.length, 10) - 1 : o.nbPages - 1;\n\t },\n\t next: function next() {\n\t var nextIndex = o.evt.slcIndex() < o.evt.nbOpts() ? o.evt.slcIndex() + 1 : 0;\n\t o.changePage(nextIndex);\n\t },\n\t prev: function prev() {\n\t var prevIndex = o.evt.slcIndex() > 0 ? o.evt.slcIndex() - 1 : o.evt.nbOpts();\n\t o.changePage(prevIndex);\n\t },\n\t last: function last() {\n\t o.changePage(o.evt.nbOpts());\n\t },\n\t first: function first() {\n\t o.changePage(0);\n\t },\n\t _detectKey: function _detectKey(e) {\n\t var key = (0, _event.keyCode)(e);\n\t if (key === _const.ENTER_KEY) {\n\t if (tf.sorted) {\n\t tf.filter();\n\t o.changePage(o.evt.slcIndex());\n\t } else {\n\t o.changePage();\n\t }\n\t this.blur();\n\t }\n\t },\n\t\n\t slcPagesChange: null,\n\t nextEvt: null,\n\t prevEvt: null,\n\t lastEvt: null,\n\t firstEvt: null\n\t };\n\t return _this;\n\t }\n\t\n\t /**\n\t * Initialize DOM elements\n\t */\n\t\n\t\n\t Paging.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t var slcPages;\n\t var tf = this.tf;\n\t var evt = this.evt;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t // Check resultsPerPage is in expected format and initialise the\n\t // results per page component\n\t if (this.hasResultsPerPage) {\n\t if (this.resultsPerPage.length < 2) {\n\t this.hasResultsPerPage = false;\n\t } else {\n\t this.pagingLength = this.resultsPerPage[1][0];\n\t this.setResultsPerPage();\n\t }\n\t }\n\t\n\t evt.slcPagesChange = function (event) {\n\t var slc = event.target;\n\t _this2.changePage(slc.selectedIndex);\n\t };\n\t\n\t // Paging drop-down list selector\n\t if (this.pageSelectorType === _const.SELECT) {\n\t slcPages = (0, _dom.createElm)(_const.SELECT);\n\t slcPages.className = this.pgSlcCssClass;\n\t (0, _event.addEvt)(slcPages, 'change', evt.slcPagesChange);\n\t }\n\t\n\t // Paging input selector\n\t if (this.pageSelectorType === _const.INPUT) {\n\t slcPages = (0, _dom.createElm)(_const.INPUT, ['value', this.currentPageNb]);\n\t slcPages.className = this.pgInpCssClass;\n\t (0, _event.addEvt)(slcPages, 'keypress', evt._detectKey);\n\t }\n\t\n\t // btns containers\n\t var btnNextSpan = (0, _dom.createElm)('span');\n\t var btnPrevSpan = (0, _dom.createElm)('span');\n\t var btnLastSpan = (0, _dom.createElm)('span');\n\t var btnFirstSpan = (0, _dom.createElm)('span');\n\t\n\t if (this.hasPagingBtns) {\n\t // Next button\n\t if (!this.btnNextPageHtml) {\n\t var btnNext = (0, _dom.createElm)(_const.INPUT, ['type', 'button'], ['value', this.btnNextPageText], ['title', 'Next']);\n\t btnNext.className = this.btnPageCssClass;\n\t (0, _event.addEvt)(btnNext, 'click', evt.next);\n\t btnNextSpan.appendChild(btnNext);\n\t } else {\n\t btnNextSpan.innerHTML = this.btnNextPageHtml;\n\t (0, _event.addEvt)(btnNextSpan, 'click', evt.next);\n\t }\n\t // Previous button\n\t if (!this.btnPrevPageHtml) {\n\t var btnPrev = (0, _dom.createElm)(_const.INPUT, ['type', 'button'], ['value', this.btnPrevPageText], ['title', 'Previous']);\n\t btnPrev.className = this.btnPageCssClass;\n\t (0, _event.addEvt)(btnPrev, 'click', evt.prev);\n\t btnPrevSpan.appendChild(btnPrev);\n\t } else {\n\t btnPrevSpan.innerHTML = this.btnPrevPageHtml;\n\t (0, _event.addEvt)(btnPrevSpan, 'click', evt.prev);\n\t }\n\t // Last button\n\t if (!this.btnLastPageHtml) {\n\t var btnLast = (0, _dom.createElm)(_const.INPUT, ['type', 'button'], ['value', this.btnLastPageText], ['title', 'Last']);\n\t btnLast.className = this.btnPageCssClass;\n\t (0, _event.addEvt)(btnLast, 'click', evt.last);\n\t btnLastSpan.appendChild(btnLast);\n\t } else {\n\t btnLastSpan.innerHTML = this.btnLastPageHtml;\n\t (0, _event.addEvt)(btnLastSpan, 'click', evt.last);\n\t }\n\t // First button\n\t if (!this.btnFirstPageHtml) {\n\t var btnFirst = (0, _dom.createElm)(_const.INPUT, ['type', 'button'], ['value', this.btnFirstPageText], ['title', 'First']);\n\t btnFirst.className = this.btnPageCssClass;\n\t (0, _event.addEvt)(btnFirst, 'click', evt.first);\n\t btnFirstSpan.appendChild(btnFirst);\n\t } else {\n\t btnFirstSpan.innerHTML = this.btnFirstPageHtml;\n\t (0, _event.addEvt)(btnFirstSpan, 'click', evt.first);\n\t }\n\t }\n\t\n\t // paging elements (buttons+drop-down list) are added to defined element\n\t if (!this.pagingTgtId) {\n\t tf.setToolbar();\n\t }\n\t var targetEl = !this.pagingTgtId ? tf.mDiv : (0, _dom.elm)(this.pagingTgtId);\n\t targetEl.appendChild(btnFirstSpan);\n\t targetEl.appendChild(btnPrevSpan);\n\t\n\t var pgBeforeSpan = (0, _dom.createElm)('span');\n\t pgBeforeSpan.appendChild((0, _dom.createText)(this.pageText));\n\t pgBeforeSpan.className = this.nbPgSpanCssClass;\n\t targetEl.appendChild(pgBeforeSpan);\n\t targetEl.appendChild(slcPages);\n\t var pgAfterSpan = (0, _dom.createElm)('span');\n\t pgAfterSpan.appendChild((0, _dom.createText)(this.ofText));\n\t pgAfterSpan.className = this.nbPgSpanCssClass;\n\t targetEl.appendChild(pgAfterSpan);\n\t var pgSpan = (0, _dom.createElm)('span');\n\t pgSpan.className = this.nbPgSpanCssClass;\n\t pgSpan.appendChild((0, _dom.createText)(' ' + this.nbPages + ' '));\n\t targetEl.appendChild(pgSpan);\n\t targetEl.appendChild(btnNextSpan);\n\t targetEl.appendChild(btnLastSpan);\n\t\n\t this.btnNextCont = btnNextSpan;\n\t this.btnPrevCont = btnPrevSpan;\n\t this.btnLastCont = btnLastSpan;\n\t this.btnFirstCont = btnFirstSpan;\n\t this.pgCont = pgSpan;\n\t this.pgBefore = pgBeforeSpan;\n\t this.pgAfter = pgAfterSpan;\n\t this.pagingSlc = slcPages;\n\t\n\t this.setPagingInfo();\n\t\n\t if (!tf.fltGrid) {\n\t tf.validateAllRows();\n\t this.setPagingInfo(tf.validRowsIndex);\n\t }\n\t\n\t this.emitter.on(['after-filtering'], function () {\n\t return _this2.resetPagingInfo();\n\t });\n\t this.emitter.on(['change-page'], function (tf, pageNumber) {\n\t return _this2.setPage(pageNumber);\n\t });\n\t this.emitter.on(['change-page-results'], function (tf, pageLength) {\n\t return _this2.changeResultsPerPage(pageLength);\n\t });\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\n\t * Reset paging when filters are already instantiated\n\t * @param {Boolean} filterTable Execute filtering once paging instanciated\n\t */\n\t\n\t\n\t Paging.prototype.reset = function reset() {\n\t var filterTable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\t\n\t var tf = this.tf;\n\t if (this.isEnabled()) {\n\t return;\n\t }\n\t this.enable();\n\t this.init();\n\t\n\t if (filterTable) {\n\t tf.filter();\n\t }\n\t };\n\t\n\t /**\n\t * Reset paging info from scratch after a filtering process\n\t */\n\t\n\t\n\t Paging.prototype.resetPagingInfo = function resetPagingInfo() {\n\t this.startPagingRow = 0;\n\t this.currentPageNb = 1;\n\t this.setPagingInfo(this.tf.validRowsIndex);\n\t };\n\t\n\t /**\n\t * Calculate number of pages based on valid rows\n\t * Refresh paging select according to number of pages\n\t * @param {Array} validRows Collection of valid rows\n\t */\n\t\n\t\n\t Paging.prototype.setPagingInfo = function setPagingInfo(validRows) {\n\t var tf = this.tf;\n\t var mdiv = !this.pagingTgtId ? tf.mDiv : (0, _dom.elm)(this.pagingTgtId);\n\t\n\t //store valid rows indexes\n\t tf.validRowsIndex = validRows || tf.getValidRows(true);\n\t\n\t //calculate nb of pages\n\t this.nbPages = Math.ceil(tf.validRowsIndex.length / this.pagingLength);\n\t //refresh page nb span\n\t this.pgCont.innerHTML = this.nbPages;\n\t //select clearing shortcut\n\t if (this.pageSelectorType === _const.SELECT) {\n\t this.pagingSlc.innerHTML = '';\n\t }\n\t\n\t if (this.nbPages > 0) {\n\t mdiv.style.visibility = 'visible';\n\t if (this.pageSelectorType === _const.SELECT) {\n\t for (var z = 0; z < this.nbPages; z++) {\n\t var opt = (0, _dom.createOpt)(z + 1, z * this.pagingLength, false);\n\t this.pagingSlc.options[z] = opt;\n\t }\n\t } else {\n\t //input type\n\t this.pagingSlc.value = this.currentPageNb;\n\t }\n\t } else {\n\t /*** if no results paging select and buttons are hidden ***/\n\t mdiv.style.visibility = 'hidden';\n\t }\n\t this.groupByPage(tf.validRowsIndex);\n\t };\n\t\n\t /**\n\t * Group table rows by page and display valid rows\n\t * @param {Array} validRows Collection of valid rows\n\t */\n\t\n\t\n\t Paging.prototype.groupByPage = function groupByPage(validRows) {\n\t var tf = this.tf;\n\t var rows = tf.tbl.rows;\n\t var startPagingRow = parseInt(this.startPagingRow, 10);\n\t var endPagingRow = startPagingRow + parseInt(this.pagingLength, 10);\n\t\n\t //store valid rows indexes\n\t if (validRows) {\n\t tf.validRowsIndex = validRows;\n\t }\n\t\n\t //this loop shows valid rows of current page\n\t for (var h = 0, len = tf.getValidRowsNb(true); h < len; h++) {\n\t var validRowIdx = tf.validRowsIndex[h];\n\t var r = rows[validRowIdx];\n\t var isRowValid = r.getAttribute('validRow');\n\t var rowDisplayed = false;\n\t\n\t if (h >= startPagingRow && h < endPagingRow) {\n\t if ((0, _types.isNull)(isRowValid) || Boolean(isRowValid === 'true')) {\n\t r.style.display = '';\n\t rowDisplayed = true;\n\t }\n\t } else {\n\t r.style.display = _const.NONE;\n\t }\n\t this.emitter.emit('row-paged', tf, validRowIdx, h, rowDisplayed);\n\t }\n\t\n\t // broadcast grouping by page\n\t this.emitter.emit('grouped-by-page', tf, this);\n\t };\n\t\n\t /**\n\t * Return the current page number\n\t * @return {Number} Page number\n\t */\n\t\n\t\n\t Paging.prototype.getPage = function getPage() {\n\t return this.currentPageNb;\n\t };\n\t\n\t /**\n\t * Show page defined by passed argument (string or number):\n\t * @param {String}/{Number} cmd possible string values: 'next',\n\t * 'previous', 'last', 'first' or page number as per param\n\t */\n\t\n\t\n\t Paging.prototype.setPage = function setPage(cmd) {\n\t var tf = this.tf;\n\t if (!tf.isInitialized() || !this.isEnabled()) {\n\t return;\n\t }\n\t var btnEvt = this.evt,\n\t cmdtype = typeof cmd === 'undefined' ? 'undefined' : _typeof(cmd);\n\t if (cmdtype === 'string') {\n\t switch (cmd.toLowerCase()) {\n\t case 'next':\n\t btnEvt.next();\n\t break;\n\t case 'previous':\n\t btnEvt.prev();\n\t break;\n\t case 'last':\n\t btnEvt.last();\n\t break;\n\t case 'first':\n\t btnEvt.first();\n\t break;\n\t default:\n\t btnEvt.next();\n\t break;\n\t }\n\t } else if (cmdtype === 'number') {\n\t this.changePage(cmd - 1);\n\t }\n\t };\n\t\n\t /**\n\t * Generates UI elements for the number of results per page drop-down\n\t */\n\t\n\t\n\t Paging.prototype.setResultsPerPage = function setResultsPerPage() {\n\t var _this3 = this;\n\t\n\t var tf = this.tf;\n\t var evt = this.evt;\n\t\n\t if (this.resultsPerPageSlc || !this.resultsPerPage) {\n\t return;\n\t }\n\t\n\t evt.slcResultsChange = function (ev) {\n\t _this3.onChangeResultsPerPage();\n\t ev.target.blur();\n\t };\n\t\n\t var slcR = (0, _dom.createElm)(_const.SELECT);\n\t slcR.className = this.resultsSlcCssClass;\n\t var slcRText = this.resultsPerPage[0],\n\t slcROpts = this.resultsPerPage[1];\n\t var slcRSpan = (0, _dom.createElm)('span');\n\t slcRSpan.className = this.resultsSpanCssClass;\n\t\n\t // results per page select is added to external element\n\t if (!this.resultsPerPageTgtId) {\n\t tf.setToolbar();\n\t }\n\t var targetEl = !this.resultsPerPageTgtId ? tf.rDiv : (0, _dom.elm)(this.resultsPerPageTgtId);\n\t slcRSpan.appendChild((0, _dom.createText)(slcRText));\n\t\n\t var help = tf.feature('help');\n\t if (help && help.btn) {\n\t help.btn.parentNode.insertBefore(slcRSpan, help.btn);\n\t help.btn.parentNode.insertBefore(slcR, help.btn);\n\t } else {\n\t targetEl.appendChild(slcRSpan);\n\t targetEl.appendChild(slcR);\n\t }\n\t\n\t for (var r = 0; r < slcROpts.length; r++) {\n\t var currOpt = new Option(slcROpts[r], slcROpts[r], false, false);\n\t slcR.options[r] = currOpt;\n\t }\n\t (0, _event.addEvt)(slcR, 'change', evt.slcResultsChange);\n\t this.slcResultsTxt = slcRSpan;\n\t this.resultsPerPageSlc = slcR;\n\t };\n\t\n\t /**\n\t * Remove number of results per page UI elements\n\t */\n\t\n\t\n\t Paging.prototype.removeResultsPerPage = function removeResultsPerPage() {\n\t var tf = this.tf;\n\t if (!tf.isInitialized() || !this.resultsPerPageSlc || !this.resultsPerPage) {\n\t return;\n\t }\n\t if (this.resultsPerPageSlc) {\n\t (0, _dom.removeElm)(this.resultsPerPageSlc);\n\t }\n\t if (this.slcResultsTxt) {\n\t (0, _dom.removeElm)(this.slcResultsTxt);\n\t }\n\t this.resultsPerPageSlc = null;\n\t this.slcResultsTxt = null;\n\t };\n\t\n\t /**\n\t * Change the page based on passed index\n\t * @param {Number} index Index of the page (0-n)\n\t */\n\t\n\t\n\t Paging.prototype.changePage = function changePage(index) {\n\t var tf = this.tf;\n\t\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t\n\t this.emitter.emit('before-page-change', tf, index + 1);\n\t\n\t if (index === null) {\n\t index = this.pageSelectorType === _const.SELECT ? this.pagingSlc.options.selectedIndex : this.pagingSlc.value - 1;\n\t }\n\t if (index >= 0 && index <= this.nbPages - 1) {\n\t this.onBeforeChangePage(this, index + 1);\n\t\n\t this.currentPageNb = parseInt(index, 10) + 1;\n\t if (this.pageSelectorType === _const.SELECT) {\n\t this.pagingSlc.options[index].selected = true;\n\t } else {\n\t this.pagingSlc.value = this.currentPageNb;\n\t }\n\t\n\t this.startPagingRow = this.pageSelectorType === _const.SELECT ? this.pagingSlc.value : index * this.pagingLength;\n\t\n\t this.groupByPage();\n\t\n\t this.onAfterChangePage(this, index + 1);\n\t }\n\t\n\t this.emitter.emit('after-page-change', tf, index + 1);\n\t };\n\t\n\t /**\n\t * Change the number of results per page based on passed value\n\t * @param {String} val The number of results per page\n\t */\n\t\n\t\n\t Paging.prototype.changeResultsPerPage = function changeResultsPerPage(val) {\n\t if (!this.isEnabled() || isNaN(val)) {\n\t return;\n\t }\n\t\n\t this.resultsPerPageSlc.value = val;\n\t this.onChangeResultsPerPage();\n\t };\n\t\n\t /**\n\t * Change rows according to page results drop-down\n\t */\n\t\n\t\n\t Paging.prototype.onChangeResultsPerPage = function onChangeResultsPerPage() {\n\t var tf = this.tf;\n\t\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t\n\t this.emitter.emit('before-page-length-change', tf);\n\t\n\t var slcR = this.resultsPerPageSlc;\n\t var slcIndex = slcR.selectedIndex;\n\t var slcPagesSelIndex = this.pageSelectorType === _const.SELECT ? this.pagingSlc.selectedIndex : parseInt(this.pagingSlc.value - 1, 10);\n\t this.pagingLength = parseInt(slcR.options[slcIndex].value, 10);\n\t this.startPagingRow = this.pagingLength * slcPagesSelIndex;\n\t\n\t if (!isNaN(this.pagingLength)) {\n\t if (this.startPagingRow >= tf.nbFilterableRows) {\n\t this.startPagingRow = tf.nbFilterableRows - this.pagingLength;\n\t }\n\t this.setPagingInfo();\n\t\n\t if (this.pageSelectorType === _const.SELECT) {\n\t var slcIdx = this.pagingSlc.options.length - 1 <= slcPagesSelIndex ? this.pagingSlc.options.length - 1 : slcPagesSelIndex;\n\t this.pagingSlc.options[slcIdx].selected = true;\n\t }\n\t }\n\t\n\t this.emitter.emit('after-page-length-change', tf, this.pagingLength);\n\t };\n\t\n\t /**\n\t * Re-set page nb at page re-load\n\t */\n\t\n\t\n\t Paging.prototype.resetPage = function resetPage() {\n\t var tf = this.tf;\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t this.emitter.emit('before-reset-page', tf);\n\t var pgNb = tf.feature('store').getPageNb();\n\t if (pgNb !== '') {\n\t this.changePage(pgNb - 1);\n\t }\n\t this.emitter.emit('after-reset-page', tf, pgNb);\n\t };\n\t\n\t /**\n\t * Re-set page length value at page re-load\n\t */\n\t\n\t\n\t Paging.prototype.resetPageLength = function resetPageLength() {\n\t var tf = this.tf;\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t this.emitter.emit('before-reset-page-length', tf);\n\t var pglenIndex = tf.feature('store').getPageLength();\n\t\n\t if (pglenIndex !== '') {\n\t this.resultsPerPageSlc.options[pglenIndex].selected = true;\n\t this.changeResultsPerPage();\n\t }\n\t this.emitter.emit('after-reset-page-length', tf, pglenIndex);\n\t };\n\t\n\t /**\n\t * Remove paging feature\n\t */\n\t\n\t\n\t Paging.prototype.destroy = function destroy() {\n\t var _this4 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t var evt = this.evt;\n\t\n\t if (this.pagingSlc) {\n\t if (this.pageSelectorType === _const.SELECT) {\n\t (0, _event.removeEvt)(this.pagingSlc, 'change', evt.slcPagesChange);\n\t } else if (this.pageSelectorType === _const.INPUT) {\n\t (0, _event.removeEvt)(this.pagingSlc, 'keypress', evt._detectKey);\n\t }\n\t (0, _dom.removeElm)(this.pagingSlc);\n\t }\n\t\n\t if (this.btnNextCont) {\n\t (0, _event.removeEvt)(this.btnNextCont, 'click', evt.next);\n\t (0, _dom.removeElm)(this.btnNextCont);\n\t this.btnNextCont = null;\n\t }\n\t\n\t if (this.btnPrevCont) {\n\t (0, _event.removeEvt)(this.btnPrevCont, 'click', evt.prev);\n\t (0, _dom.removeElm)(this.btnPrevCont);\n\t this.btnPrevCont = null;\n\t }\n\t\n\t if (this.btnLastCont) {\n\t (0, _event.removeEvt)(this.btnLastCont, 'click', evt.last);\n\t (0, _dom.removeElm)(this.btnLastCont);\n\t this.btnLastCont = null;\n\t }\n\t\n\t if (this.btnFirstCont) {\n\t (0, _event.removeEvt)(this.btnFirstCont, 'click', evt.first);\n\t (0, _dom.removeElm)(this.btnFirstCont);\n\t this.btnFirstCont = null;\n\t }\n\t\n\t if (this.pgBefore) {\n\t (0, _dom.removeElm)(this.pgBefore);\n\t this.pgBefore = null;\n\t }\n\t\n\t if (this.pgAfter) {\n\t (0, _dom.removeElm)(this.pgAfter);\n\t this.pgAfter = null;\n\t }\n\t\n\t if (this.pgCont) {\n\t (0, _dom.removeElm)(this.pgCont);\n\t this.pgCont = null;\n\t }\n\t\n\t if (this.hasResultsPerPage) {\n\t this.removeResultsPerPage();\n\t }\n\t\n\t this.emitter.off(['after-filtering'], function () {\n\t return _this4.resetPagingInfo();\n\t });\n\t this.emitter.off(['change-page'], function (tf, pageNumber) {\n\t return _this4.setPage(pageNumber);\n\t });\n\t this.emitter.off(['change-page-results'], function (tf, pageLength) {\n\t return _this4.changeResultsPerPage(pageLength);\n\t });\n\t\n\t this.pagingSlc = null;\n\t this.nbPages = 0;\n\t this.disable();\n\t this.initialized = false;\n\t };\n\t\n\t return Paging;\n\t}(_feature.Feature);\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.ClearButton = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\r\n\t * Clear button UI component\r\n\t */\n\tvar ClearButton = exports.ClearButton = function (_Feature) {\n\t _inherits(ClearButton, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of ClearButton\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function ClearButton(tf) {\n\t _classCallCheck(this, ClearButton);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'btnReset'));\n\t\n\t var f = _this.config;\n\t\n\t /**\r\n\t * Container element ID\r\n\t * @type {String}\r\n\t */\n\t _this.targetId = f.btn_reset_target_id || null;\n\t\n\t /**\r\n\t * Clear button container element\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.container = null;\n\t\n\t /**\r\n\t * Clear button element\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.element = null;\n\t\n\t /**\r\n\t * Text for the clear button\r\n\t * @type {String}\r\n\t */\n\t _this.text = f.btn_reset_text || 'Reset';\n\t\n\t /**\r\n\t * Css class for reset button\r\n\t * @type {String}\r\n\t */\n\t _this.cssClass = f.btn_reset_css_class || 'reset';\n\t\n\t /**\r\n\t * Tooltip text for the clear button\r\n\t * @type {String}\r\n\t */\n\t _this.tooltip = f.btn_reset_tooltip || 'Clear filters';\n\t\n\t /**\r\n\t * Custom Html string for the clear button\r\n\t * @type {String}\r\n\t */\n\t _this.html = f.btn_reset_html || (!tf.enableIcons ? null : '');\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Click event handler for clear button\r\n\t * @private\r\n\t */\n\t\n\t\n\t ClearButton.prototype.onClick = function onClick() {\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t this.tf.clearFilters();\n\t };\n\t\n\t /**\r\n\t * Initialize clear button component\r\n\t */\n\t\n\t\n\t ClearButton.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t var tf = this.tf;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t var cont = (0, _dom.createElm)('span');\n\t\n\t // reset button is added to defined element\n\t if (!this.targetId) {\n\t tf.setToolbar();\n\t }\n\t var targetEl = !this.targetId ? tf.rDiv : (0, _dom.elm)(this.targetId);\n\t targetEl.appendChild(cont);\n\t\n\t if (!this.html) {\n\t var fltReset = (0, _dom.createElm)('a', ['href', 'javascript:void(0);']);\n\t fltReset.className = this.cssClass;\n\t fltReset.appendChild((0, _dom.createText)(this.text));\n\t cont.appendChild(fltReset);\n\t (0, _event.addEvt)(fltReset, 'click', function () {\n\t return _this2.onClick();\n\t });\n\t } else {\n\t cont.innerHTML = this.html;\n\t var resetEl = cont.firstChild;\n\t (0, _event.addEvt)(resetEl, 'click', function () {\n\t return _this2.onClick();\n\t });\n\t }\n\t this.element = cont.firstChild;\n\t this.container = cont;\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Destroy ClearButton instance\r\n\t */\n\t\n\t\n\t ClearButton.prototype.destroy = function destroy() {\n\t if (!this.initialized) {\n\t return;\n\t }\n\t (0, _dom.removeElm)(this.element);\n\t (0, _dom.removeElm)(this.container);\n\t this.element = null;\n\t this.container = null;\n\t this.initialized = false;\n\t };\n\t\n\t return ClearButton;\n\t}(_feature.Feature);\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Help = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar WIKI_URL = 'https://github.com/koalyptus/TableFilter/wiki/' + '4.-Filter-operators';\n\tvar WEBSITE_URL = 'http://koalyptus.github.io/TableFilter/';\n\t\n\t/**\n\t * Help UI component\n\t */\n\t\n\tvar Help = exports.Help = function (_Feature) {\n\t _inherits(Help, _Feature);\n\t\n\t /**\n\t * Creates an instance of Help\n\t * @param {TableFilter} tf TableFilter instance\n\t */\n\t function Help(tf) {\n\t _classCallCheck(this, Help);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'help'));\n\t\n\t var f = _this.config;\n\t\n\t /**\n\t * ID of main custom container element\n\t * @type {String}\n\t */\n\t _this.tgtId = f.help_instructions_target_id || null;\n\t\n\t /**\n\t * ID of custom container element for instructions\n\t * @type {String}\n\t */\n\t _this.contTgtId = f.help_instructions_container_target_id || null;\n\t\n\t /**\n\t * Instructions text (accepts HTML)\n\t * @type {String}\n\t */\n\t _this.instrText = f.help_instructions_text ? f.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:
<, <=, >, ' + '>=, =, *, !, {, }, ' + '||,&&, [empty], [nonempty], ' + 'rgx:
' + 'Learn more
';\n\t\n\t /**\n\t * Instructions HTML\n\t * @type {String}\n\t */\n\t _this.instrHtml = f.help_instructions_html || null;\n\t\n\t /**\n\t * Help button text ('?')\n\t * @type {String}\n\t */\n\t _this.btnText = f.help_instructions_btn_text || '?';\n\t\n\t /**\n\t * Custom help button HTML\n\t * @type {String}\n\t */\n\t _this.btnHtml = f.help_instructions_btn_html || null;\n\t\n\t /**\n\t * Css class for help button\n\t * @type {String}\n\t */\n\t _this.btnCssClass = f.help_instructions_btn_css_class || 'helpBtn';\n\t\n\t /**\n\t * Css class for help container element\n\t * @type {String}\n\t */\n\t _this.contCssClass = f.help_instructions_container_css_class || 'helpCont';\n\t\n\t /**\n\t * Button DOM element\n\t * @type {DOMElement}\n\t */\n\t _this.btn = null;\n\t\n\t /**\n\t * Help container DOM element\n\t * @type {DOMElement}\n\t */\n\t _this.cont = null;\n\t\n\t /**\n\t * Bound mouseup wrapper\n\t * @private\n\t */\n\t _this.boundMouseup = null;\n\t\n\t /**\n\t * Default HTML appended to instructions text\n\t * @type {String}\n\t */\n\t _this.defaultHtml = '

TableFilter ' + 'v' + tf.version + '

' + '' + WEBSITE_URL + '' + '
©2015-' + tf.year + ' Max Guglielmi' + '
' + 'Close
';\n\t\n\t _this.emitter.on(['init-help'], function () {\n\t return _this.init();\n\t });\n\t return _this;\n\t }\n\t\n\t /**\n\t * Mouse-up event handler handling popup auto-close behaviour\n\t * @private\n\t */\n\t\n\t\n\t Help.prototype.onMouseup = function onMouseup(evt) {\n\t var targetElm = (0, _event.targetEvt)(evt);\n\t\n\t while (targetElm && targetElm !== this.cont && targetElm !== this.btn) {\n\t targetElm = targetElm.parentNode;\n\t }\n\t\n\t if (targetElm !== this.cont && targetElm !== this.btn) {\n\t this.toggle();\n\t }\n\t\n\t return;\n\t };\n\t\n\t /**\n\t * Initialise Help instance\n\t */\n\t\n\t\n\t Help.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t\n\t var btn = (0, _dom.createElm)('span');\n\t var cont = (0, _dom.createElm)('div');\n\t\n\t this.boundMouseup = this.onMouseup.bind(this);\n\t\n\t //help button is added to defined element\n\t if (!this.tgtId) {\n\t tf.setToolbar();\n\t }\n\t var targetEl = !this.tgtId ? tf.rDiv : (0, _dom.elm)(this.tgtId);\n\t targetEl.appendChild(btn);\n\t\n\t var divContainer = !this.contTgtId ? btn : (0, _dom.elm)(this.contTgtId);\n\t\n\t if (!this.btnHtml) {\n\t divContainer.appendChild(cont);\n\t var helplink = (0, _dom.createElm)('a', ['href', 'javascript:void(0);']);\n\t helplink.className = this.btnCssClass;\n\t helplink.appendChild((0, _dom.createText)(this.btnText));\n\t btn.appendChild(helplink);\n\t (0, _event.addEvt)(helplink, 'click', function () {\n\t return _this2.toggle();\n\t });\n\t } else {\n\t btn.innerHTML = this.btnHtml;\n\t var helpEl = btn.firstChild;\n\t (0, _event.addEvt)(helpEl, 'click', function () {\n\t return _this2.toggle();\n\t });\n\t divContainer.appendChild(cont);\n\t }\n\t\n\t if (!this.instrHtml) {\n\t cont.innerHTML = this.instrText;\n\t cont.className = this.contCssClass;\n\t } else {\n\t if (this.contTgtId) {\n\t divContainer.appendChild(cont);\n\t }\n\t cont.innerHTML = this.instrHtml;\n\t if (!this.contTgtId) {\n\t cont.className = this.contCssClass;\n\t }\n\t }\n\t cont.innerHTML += this.defaultHtml;\n\t (0, _event.addEvt)(cont, 'click', function () {\n\t return _this2.toggle();\n\t });\n\t\n\t this.cont = cont;\n\t this.btn = btn;\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\n\t * Toggle help pop-up\n\t */\n\t\n\t\n\t Help.prototype.toggle = function toggle() {\n\t // check only if explicitily set to false as in this case undefined\n\t // signifies the help feature is enabled by default\n\t if (this.enabled === false) {\n\t return;\n\t }\n\t\n\t // ensure mouseup event handler is removed\n\t (0, _event.removeEvt)(_root.root, 'mouseup', this.boundMouseup);\n\t\n\t var divDisplay = this.cont.style.display;\n\t if (divDisplay === '' || divDisplay === _const.NONE) {\n\t this.cont.style.display = 'inline';\n\t (0, _event.addEvt)(_root.root, 'mouseup', this.boundMouseup);\n\t } else {\n\t this.cont.style.display = _const.NONE;\n\t }\n\t };\n\t\n\t /**\n\t * Remove help UI\n\t */\n\t\n\t\n\t Help.prototype.destroy = function destroy() {\n\t if (!this.initialized) {\n\t return;\n\t }\n\t (0, _dom.removeElm)(this.btn);\n\t this.btn = null;\n\t\n\t (0, _dom.removeElm)(this.cont);\n\t this.cont = null;\n\t\n\t this.boundMouseup = null;\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return Help;\n\t}(_feature.Feature);\n\n/***/ },\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.AlternateRows = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\r\n\t * Rows with alternating background color for improved readability\r\n\t */\n\tvar AlternateRows = exports.AlternateRows = function (_Feature) {\n\t _inherits(AlternateRows, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of AlternateRows.\r\n\t *\r\n\t * @param {Object} tf TableFilter instance\r\n\t */\n\t function AlternateRows(tf) {\n\t _classCallCheck(this, AlternateRows);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'alternateRows'));\n\t\n\t var config = _this.config;\n\t /**\r\n\t * Css class for even rows (default: 'even')\r\n\t * @type {String}\r\n\t */\n\t _this.evenCss = config.even_row_css_class || 'even';\n\t\n\t /**\r\n\t * Css class for odd rows (default: 'odd')\r\n\t * @type {String}\r\n\t */\n\t _this.oddCss = config.odd_row_css_class || 'odd';\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Sets alternating rows color\r\n\t */\n\t\n\t\n\t AlternateRows.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t this.processAll();\n\t\n\t // Subscribe to events\n\t this.emitter.on(['row-processed', 'row-paged'], function (tf, rowIndex, arrIndex, isValid) {\n\t return _this2.processRow(rowIndex, arrIndex, isValid);\n\t });\n\t this.emitter.on(['column-sorted'], function () {\n\t return _this2.processAll();\n\t });\n\t this.emitter.on(['rows-changed'], function () {\n\t return _this2.processAll();\n\t });\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Apply background to all valid rows\r\n\t */\n\t\n\t\n\t AlternateRows.prototype.processAll = function processAll() {\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t var tf = this.tf;\n\t var validRowsIndex = tf.getValidRows(true);\n\t var indexLen = validRowsIndex.length;\n\t var idx = 0;\n\t\n\t //alternates bg color\n\t for (var j = 0; j < indexLen; j++) {\n\t var rowIdx = validRowsIndex[j];\n\t this.setRowBg(rowIdx, idx);\n\t idx++;\n\t }\n\t };\n\t\n\t /**\r\n\t * Set/remove row background based on row validation\r\n\t * @param {Number} rowIdx Row index\r\n\t * @param {Number} arrIdx Array index\r\n\t * @param {Boolean} isValid Valid row flag\r\n\t */\n\t\n\t\n\t AlternateRows.prototype.processRow = function processRow(rowIdx, arrIdx, isValid) {\n\t if (isValid) {\n\t this.setRowBg(rowIdx, arrIdx);\n\t } else {\n\t this.removeRowBg(rowIdx);\n\t }\n\t };\n\t\n\t /**\r\n\t * Sets row background color\r\n\t * @param {Number} rowIdx Row index\r\n\t * @param {Number} idx Valid rows collection index needed to calculate bg\r\n\t * color\r\n\t * @private\r\n\t */\n\t\n\t\n\t AlternateRows.prototype.setRowBg = function setRowBg(rowIdx, idx) {\n\t if (!this.isEnabled() || isNaN(rowIdx)) {\n\t return;\n\t }\n\t var rows = this.tf.tbl.rows;\n\t var i = isNaN(idx) ? rowIdx : idx;\n\t this.removeRowBg(rowIdx);\n\t\n\t (0, _dom.addClass)(rows[rowIdx], i % 2 ? this.evenCss : this.oddCss);\n\t };\n\t\n\t /**\r\n\t * Removes row background color\r\n\t * @param {Number} idx Row index\r\n\t * @private\r\n\t */\n\t\n\t\n\t AlternateRows.prototype.removeRowBg = function removeRowBg(idx) {\n\t if (isNaN(idx)) {\n\t return;\n\t }\n\t var rows = this.tf.tbl.rows;\n\t (0, _dom.removeClass)(rows[idx], this.oddCss);\n\t (0, _dom.removeClass)(rows[idx], this.evenCss);\n\t };\n\t\n\t /**\r\n\t * Removes all alternating backgrounds\r\n\t */\n\t\n\t\n\t AlternateRows.prototype.destroy = function destroy() {\n\t var _this3 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t var nbRows = this.tf.getRowsNb(true);\n\t for (var i = 0; i < nbRows; i++) {\n\t this.removeRowBg(i);\n\t }\n\t\n\t // Unsubscribe to events\n\t this.emitter.off(['row-processed', 'row-paged'], function (tf, rowIndex, arrIndex, isValid) {\n\t return _this3.processRow(rowIndex, arrIndex, isValid);\n\t });\n\t this.emitter.off(['column-sorted'], function () {\n\t return _this3.processAll();\n\t });\n\t this.emitter.off(['rows-changed'], function () {\n\t return _this3.processAll();\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return AlternateRows;\n\t}(_feature.Feature);\n\n/***/ },\n/* 25 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.NoResults = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\r\n\t * UI when filtering yields no matches\r\n\t * @export\r\n\t * @class NoResults\r\n\t * @extends {Feature}\r\n\t */\n\tvar NoResults = exports.NoResults = function (_Feature) {\n\t _inherits(NoResults, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of NoResults\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function NoResults(tf) {\n\t _classCallCheck(this, NoResults);\n\t\n\t //configuration object\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'noResults'));\n\t\n\t var f = _this.config.no_results_message;\n\t\n\t /**\r\n\t * Text (accepts HTML)\r\n\t * @type {String}\r\n\t */\n\t _this.content = f.content || 'No results';\n\t\n\t /**\r\n\t * Custom container DOM element\r\n\t * @type {DOMElement}\r\n\t */\n\t _this.customContainer = f.custom_container || null;\n\t\n\t /**\r\n\t * ID of custom container element\r\n\t * @type {String}\r\n\t */\n\t _this.customContainerId = f.custom_container_id || null;\n\t\n\t /**\r\n\t * Indicates if UI is contained in a external element\r\n\t * @type {Boolean}\r\n\t * @private\r\n\t */\n\t _this.isExternal = !(0, _types.isEmpty)(_this.customContainer) || !(0, _types.isEmpty)(_this.customContainerId);\n\t\n\t /**\r\n\t * Css class assigned to container element\r\n\t * @type {String}\r\n\t */\n\t _this.cssClass = f.css_class || 'no-results';\n\t\n\t /**\r\n\t * Stores container DOM element\r\n\t * @type {DOMElement}\r\n\t */\n\t _this.cont = null;\n\t\n\t /**\r\n\t * Callback fired before the message is displayed\r\n\t * @type {Function}\r\n\t */\n\t _this.onBeforeShow = (0, _types.isFn)(f.on_before_show_msg) ? f.on_before_show_msg : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired after the message is displayed\r\n\t * @type {Function}\r\n\t */\n\t _this.onAfterShow = (0, _types.isFn)(f.on_after_show_msg) ? f.on_after_show_msg : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired before the message is hidden\r\n\t * @type {Function}\r\n\t */\n\t _this.onBeforeHide = (0, _types.isFn)(f.on_before_hide_msg) ? f.on_before_hide_msg : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired after the message is hidden\r\n\t * @type {Function}\r\n\t */\n\t _this.onAfterHide = (0, _types.isFn)(f.on_after_hide_msg) ? f.on_after_hide_msg : _types.EMPTY_FN;\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Initializes NoResults instance\r\n\t */\n\t\n\t\n\t NoResults.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t var tf = this.tf;\n\t var target = this.customContainer || (0, _dom.elm)(this.customContainerId) || tf.tbl;\n\t\n\t //container\n\t var cont = (0, _dom.createElm)('div');\n\t cont.className = this.cssClass;\n\t cont.innerHTML = this.content;\n\t\n\t if (this.isExternal) {\n\t target.appendChild(cont);\n\t } else {\n\t target.parentNode.insertBefore(cont, target.nextSibling);\n\t }\n\t\n\t this.cont = cont;\n\t\n\t // subscribe to after-filtering event\n\t this.emitter.on(['after-filtering'], function () {\n\t return _this2.toggle();\n\t });\n\t\n\t /**\r\n\t * @inherited\r\n\t */\n\t this.initialized = true;\n\t\n\t this.hide();\n\t };\n\t\n\t /**\r\n\t * Toggle no results message\r\n\t */\n\t\n\t\n\t NoResults.prototype.toggle = function toggle() {\n\t if (this.tf.getValidRowsNb() > 0) {\n\t this.hide();\n\t } else {\n\t this.show();\n\t }\n\t };\n\t\n\t /**\r\n\t * Show no results message\r\n\t */\n\t\n\t\n\t NoResults.prototype.show = function show() {\n\t if (!this.initialized || !this.isEnabled()) {\n\t return;\n\t }\n\t this.onBeforeShow(this.tf, this);\n\t\n\t this.setWidth();\n\t this.cont.style.display = 'block';\n\t\n\t this.onAfterShow(this.tf, this);\n\t };\n\t\n\t /**\r\n\t * Hide no results message\r\n\t */\n\t\n\t\n\t NoResults.prototype.hide = function hide() {\n\t if (!this.initialized || !this.isEnabled()) {\n\t return;\n\t }\n\t this.onBeforeHide(this.tf, this);\n\t\n\t this.cont.style.display = _const.NONE;\n\t\n\t this.onAfterHide(this.tf, this);\n\t };\n\t\n\t /**\r\n\t * Sets no results container width\r\n\t * @private\r\n\t */\n\t\n\t\n\t NoResults.prototype.setWidth = function setWidth() {\n\t if (!this.initialized || this.isExternal || !this.isEnabled()) {\n\t return;\n\t }\n\t var tf = this.tf;\n\t if (tf.gridLayout) {\n\t var gridLayout = tf.feature('gridLayout');\n\t this.cont.style.width = gridLayout.tblCont.clientWidth + 'px';\n\t } else {\n\t this.cont.style.width = (tf.tbl.tHead ? tf.tbl.tHead.clientWidth : tf.tbl.tBodies[0].clientWidth) + 'px';\n\t }\n\t };\n\t\n\t /**\r\n\t * Remove feature\r\n\t */\n\t\n\t\n\t NoResults.prototype.destroy = function destroy() {\n\t var _this3 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t (0, _dom.removeElm)(this.cont);\n\t this.cont = null;\n\t // unsubscribe to after-filtering event\n\t this.emitter.off(['after-filtering'], function () {\n\t return _this3.toggle();\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return NoResults;\n\t}(_feature.Feature);\n\n/***/ },\n/* 26 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.State = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _hash = __webpack_require__(27);\n\t\n\tvar _storage = __webpack_require__(28);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\n\t * Features state object persistable with localStorage, cookie or URL hash\n\t *\n\t * @export\n\t * @class State\n\t * @extends {Feature}\n\t */\n\tvar State = exports.State = function (_Feature) {\n\t _inherits(State, _Feature);\n\t\n\t /**\n\t * Creates an instance of State\n\t * @param {TableFilter} tf TableFilter instance\n\t */\n\t function State(tf) {\n\t _classCallCheck(this, State);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'state'));\n\t\n\t var cfg = _this.config.state;\n\t\n\t /**\n\t * Determines whether state is persisted with URL hash\n\t * @type {Boolean}\n\t */\n\t _this.enableHash = cfg === true || (0, _types.isArray)(cfg.types) && cfg.types.indexOf('hash') !== -1;\n\t\n\t /**\n\t * Determines whether state is persisted with localStorage\n\t * @type {Boolean}\n\t */\n\t _this.enableLocalStorage = (0, _types.isArray)(cfg.types) && cfg.types.indexOf('local_storage') !== -1;\n\t\n\t /**\n\t * Determines whether state is persisted with localStorage\n\t * @type {Boolean}\n\t */\n\t _this.enableCookie = (0, _types.isArray)(cfg.types) && cfg.types.indexOf('cookie') !== -1;\n\t\n\t /**\n\t * Persist filters values, enabled by default\n\t * @type {Boolean}\n\t */\n\t _this.persistFilters = cfg.filters === false ? false : true;\n\t\n\t /**\n\t * Persist current page number when paging is enabled\n\t * @type {Boolean}\n\t */\n\t _this.persistPageNumber = Boolean(cfg.page_number);\n\t\n\t /**\n\t * Persist page length when paging is enabled\n\t * @type {Boolean}\n\t */\n\t _this.persistPageLength = Boolean(cfg.page_length);\n\t\n\t /**\n\t * Persist column sorting\n\t * @type {Boolean}\n\t */\n\t _this.persistSort = Boolean(cfg.sort);\n\t\n\t /**\n\t * Persist columns visibility\n\t * @type {Boolean}\n\t */\n\t _this.persistColsVisibility = Boolean(cfg.columns_visibility);\n\t\n\t /**\n\t * Persist filters row visibility\n\t * @type {Boolean}\n\t */\n\t _this.persistFiltersVisibility = Boolean(cfg.filters_visibility);\n\t\n\t /**\n\t * Cookie duration in hours\n\t * @type {Boolean}\n\t */\n\t _this.cookieDuration = !isNaN(cfg.cookie_duration) ? parseInt(cfg.cookie_duration, 10) : 87600;\n\t\n\t /**\n\t * Enable Storage if localStorage or cookie is required\n\t * @type {Boolean}\n\t * @private\n\t */\n\t _this.enableStorage = _this.enableLocalStorage || _this.enableCookie;\n\t\n\t /**\n\t * Storage instance if storage is required\n\t * @type {Storage}\n\t * @private\n\t */\n\t _this.storage = null;\n\t\n\t /**\n\t * Hash instance if URL hash is required\n\t * @type {Boolean}\n\t * @private\n\t */\n\t _this.hash = null;\n\t\n\t /**\n\t * Current page number\n\t * @type {Number}\n\t * @private\n\t */\n\t _this.pageNb = null;\n\t\n\t /**\n\t * Current page length\n\t * @type {Number}\n\t * @private\n\t */\n\t _this.pageLength = null;\n\t\n\t /**\n\t * Current column sorting\n\t * @type {Object}\n\t * @private\n\t */\n\t _this.sort = null;\n\t\n\t /**\n\t * Current hidden columns\n\t * @type {Object}\n\t * @private\n\t */\n\t _this.hiddenCols = null;\n\t\n\t /**\n\t * Filters row visibility\n\t * @type {Boolean}\n\t * @private\n\t */\n\t _this.filtersVisibility = null;\n\t\n\t /**\n\t * State object\n\t * @type {Object}\n\t * @private\n\t */\n\t _this.state = {};\n\t\n\t /**\n\t * Prefix for column ID\n\t * @type {String}\n\t * @private\n\t */\n\t _this.prfxCol = 'col_';\n\t\n\t /**\n\t * Prefix for page number ID\n\t * @type {String}\n\t * @private\n\t */\n\t _this.pageNbKey = 'page';\n\t\n\t /**\n\t * Prefix for page length ID\n\t * @type {String}\n\t * @private\n\t */\n\t _this.pageLengthKey = 'page_length';\n\t\n\t /**\n\t * Prefix for filters visibility ID\n\t * @type {String}\n\t * @private\n\t */\n\t _this.filtersVisKey = 'filters_visibility';\n\t return _this;\n\t }\n\t\n\t /**\n\t * Initializes State instance\n\t */\n\t\n\t\n\t State.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t this.emitter.on(['after-filtering'], function () {\n\t return _this2.update();\n\t });\n\t this.emitter.on(['after-page-change', 'after-clearing-filters'], function (tf, pageNb) {\n\t return _this2.updatePage(pageNb);\n\t });\n\t this.emitter.on(['after-page-length-change'], function (tf, pageLength) {\n\t return _this2.updatePageLength(pageLength);\n\t });\n\t this.emitter.on(['column-sorted'], function (tf, index, descending) {\n\t return _this2.updateSort(index, descending);\n\t });\n\t this.emitter.on(['sort-initialized'], function () {\n\t return _this2._syncSort();\n\t });\n\t this.emitter.on(['columns-visibility-initialized'], function () {\n\t return _this2._syncColsVisibility();\n\t });\n\t this.emitter.on(['column-shown', 'column-hidden'], function (tf, feature, colIndex, hiddenCols) {\n\t return _this2.updateColsVisibility(hiddenCols);\n\t });\n\t this.emitter.on(['filters-visibility-initialized'], function () {\n\t return _this2._syncFiltersVisibility();\n\t });\n\t this.emitter.on(['filters-toggled'], function (tf, extension, visible) {\n\t return _this2.updateFiltersVisibility(visible);\n\t });\n\t\n\t if (this.enableHash) {\n\t this.hash = new _hash.Hash(this);\n\t this.hash.init();\n\t }\n\t if (this.enableStorage) {\n\t this.storage = new _storage.Storage(this);\n\t this.storage.init();\n\t }\n\t\n\t /**\n\t * @inherited\n\t */\n\t this.initialized = true;\n\t };\n\t\n\t /**\n\t * Update state object based on current features state\n\t */\n\t\n\t\n\t State.prototype.update = function update() {\n\t var _this3 = this;\n\t\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t var state = this.state;\n\t var tf = this.tf;\n\t\n\t if (this.persistFilters) {\n\t var filterValues = tf.getFiltersValue();\n\t\n\t filterValues.forEach(function (val, idx) {\n\t var key = '' + _this3.prfxCol + idx;\n\t\n\t if ((0, _types.isString)(val) && (0, _string.isEmpty)(val)) {\n\t if (state.hasOwnProperty(key)) {\n\t state[key].flt = undefined;\n\t }\n\t } else {\n\t state[key] = state[key] || {};\n\t state[key].flt = val;\n\t }\n\t });\n\t }\n\t\n\t if (this.persistPageNumber) {\n\t if ((0, _types.isNull)(this.pageNb)) {\n\t state[this.pageNbKey] = undefined;\n\t } else {\n\t state[this.pageNbKey] = this.pageNb;\n\t }\n\t }\n\t\n\t if (this.persistPageLength) {\n\t if ((0, _types.isNull)(this.pageLength)) {\n\t state[this.pageLengthKey] = undefined;\n\t } else {\n\t state[this.pageLengthKey] = this.pageLength;\n\t }\n\t }\n\t\n\t if (this.persistSort) {\n\t if (!(0, _types.isNull)(this.sort)) {\n\t // Remove previuosly sorted column\n\t Object.keys(state).forEach(function (key) {\n\t if (key.indexOf(_this3.prfxCol) !== -1 && state[key]) {\n\t state[key].sort = undefined;\n\t }\n\t });\n\t\n\t var key = '' + this.prfxCol + this.sort.column;\n\t state[key] = state[key] || {};\n\t state[key].sort = { descending: this.sort.descending };\n\t }\n\t }\n\t\n\t if (this.persistColsVisibility) {\n\t if (!(0, _types.isNull)(this.hiddenCols)) {\n\t // Clear previuosly hidden columns\n\t Object.keys(state).forEach(function (key) {\n\t if (key.indexOf(_this3.prfxCol) !== -1 && state[key]) {\n\t state[key].hidden = undefined;\n\t }\n\t });\n\t\n\t this.hiddenCols.forEach(function (colIdx) {\n\t var key = '' + _this3.prfxCol + colIdx;\n\t state[key] = state[key] || {};\n\t state[key].hidden = true;\n\t });\n\t }\n\t }\n\t\n\t if (this.persistFiltersVisibility) {\n\t if ((0, _types.isNull)(this.filtersVisibility)) {\n\t state[this.filtersVisKey] = undefined;\n\t } else {\n\t state[this.filtersVisKey] = this.filtersVisibility;\n\t }\n\t }\n\t\n\t this.emitter.emit('state-changed', tf, state);\n\t };\n\t\n\t /**\n\t * Refresh page number field on page number changes\n\t *\n\t * @param {Number} pageNb Current page number\n\t */\n\t\n\t\n\t State.prototype.updatePage = function updatePage(pageNb) {\n\t this.pageNb = pageNb;\n\t this.update();\n\t };\n\t\n\t /**\n\t * Refresh page length field on page length changes\n\t *\n\t * @param {Number} pageLength Current page length value\n\t */\n\t\n\t\n\t State.prototype.updatePageLength = function updatePageLength(pageLength) {\n\t this.pageLength = pageLength;\n\t this.update();\n\t };\n\t\n\t /**\n\t * Refresh column sorting information on sort changes\n\t *\n\t * @param index {Number} Column index\n\t * @param {Boolean} descending Descending manner\n\t */\n\t\n\t\n\t State.prototype.updateSort = function updateSort(index, descending) {\n\t this.sort = {\n\t column: index,\n\t descending: descending\n\t };\n\t this.update();\n\t };\n\t\n\t /**\n\t * Refresh hidden columns information on columns visibility changes\n\t *\n\t * @param {Array} hiddenCols Columns indexes\n\t */\n\t\n\t\n\t State.prototype.updateColsVisibility = function updateColsVisibility(hiddenCols) {\n\t this.hiddenCols = hiddenCols;\n\t this.update();\n\t };\n\t\n\t /**\n\t * Refresh filters visibility on filters visibility change\n\t *\n\t * @param {Boolean} visible Visibility flad\n\t */\n\t\n\t\n\t State.prototype.updateFiltersVisibility = function updateFiltersVisibility(visible) {\n\t this.filtersVisibility = visible;\n\t this.update();\n\t };\n\t\n\t /**\n\t * Override state field\n\t *\n\t * @param state State object\n\t */\n\t\n\t\n\t State.prototype.override = function override(state) {\n\t this.state = state;\n\t };\n\t\n\t /**\n\t * Sync stored features state\n\t */\n\t\n\t\n\t State.prototype.sync = function sync() {\n\t var state = this.state;\n\t var tf = this.tf;\n\t\n\t this._syncFilters();\n\t\n\t if (this.persistPageNumber) {\n\t var pageNumber = state[this.pageNbKey];\n\t this.emitter.emit('change-page', tf, pageNumber);\n\t }\n\t\n\t if (this.persistPageLength) {\n\t var pageLength = state[this.pageLengthKey];\n\t this.emitter.emit('change-page-results', tf, pageLength);\n\t }\n\t\n\t this._syncSort();\n\t this._syncColsVisibility();\n\t this._syncFiltersVisibility();\n\t };\n\t\n\t /**\n\t * Override current state with passed one and sync features\n\t *\n\t * @param {Object} state State object\n\t */\n\t\n\t\n\t State.prototype.overrideAndSync = function overrideAndSync(state) {\n\t // To prevent state to react to features changes, state is temporarily\n\t // disabled\n\t this.disable();\n\t // State is overriden with passed state object\n\t this.override(state);\n\t // New hash state is applied to features\n\t this.sync();\n\t // State is re-enabled\n\t this.enable();\n\t };\n\t\n\t /**\n\t * Sync filters with stored values and filter table\n\t *\n\t * @private\n\t */\n\t\n\t\n\t State.prototype._syncFilters = function _syncFilters() {\n\t var _this4 = this;\n\t\n\t if (!this.persistFilters) {\n\t return;\n\t }\n\t var state = this.state;\n\t var tf = this.tf;\n\t\n\t Object.keys(state).forEach(function (key) {\n\t if (key.indexOf(_this4.prfxCol) !== -1) {\n\t var colIdx = parseInt(key.replace(_this4.prfxCol, ''), 10);\n\t var val = state[key].flt;\n\t tf.setFilterValue(colIdx, val);\n\t }\n\t });\n\t\n\t tf.filter();\n\t };\n\t\n\t /**\n\t * Sync sorted column with stored sorting information and sort table\n\t *\n\t * @private\n\t */\n\t\n\t\n\t State.prototype._syncSort = function _syncSort() {\n\t var _this5 = this;\n\t\n\t if (!this.persistSort) {\n\t return;\n\t }\n\t var state = this.state;\n\t var tf = this.tf;\n\t\n\t Object.keys(state).forEach(function (key) {\n\t if (key.indexOf(_this5.prfxCol) !== -1) {\n\t var colIdx = parseInt(key.replace(_this5.prfxCol, ''), 10);\n\t if (!(0, _types.isUndef)(state[key].sort)) {\n\t var sort = state[key].sort;\n\t _this5.emitter.emit('sort', tf, colIdx, sort.descending);\n\t }\n\t }\n\t });\n\t };\n\t\n\t /**\n\t * Sync hidden columns with stored information\n\t *\n\t * @private\n\t */\n\t\n\t\n\t State.prototype._syncColsVisibility = function _syncColsVisibility() {\n\t var _this6 = this;\n\t\n\t if (!this.persistColsVisibility) {\n\t return;\n\t }\n\t var state = this.state;\n\t var tf = this.tf;\n\t var hiddenCols = [];\n\t\n\t Object.keys(state).forEach(function (key) {\n\t if (key.indexOf(_this6.prfxCol) !== -1) {\n\t var colIdx = parseInt(key.replace(_this6.prfxCol, ''), 10);\n\t if (!(0, _types.isUndef)(state[key].hidden)) {\n\t hiddenCols.push(colIdx);\n\t }\n\t }\n\t });\n\t\n\t hiddenCols.forEach(function (colIdx) {\n\t _this6.emitter.emit('hide-column', tf, colIdx);\n\t });\n\t };\n\t\n\t /**\n\t * Sync filters visibility with stored information\n\t *\n\t * @private\n\t */\n\t\n\t\n\t State.prototype._syncFiltersVisibility = function _syncFiltersVisibility() {\n\t if (!this.persistFiltersVisibility) {\n\t return;\n\t }\n\t var state = this.state;\n\t var tf = this.tf;\n\t var filtersVisibility = state[this.filtersVisKey];\n\t\n\t this.filtersVisibility = filtersVisibility;\n\t this.emitter.emit('show-filters', tf, filtersVisibility);\n\t };\n\t\n\t /**\n\t * Destroy State instance\n\t */\n\t\n\t\n\t State.prototype.destroy = function destroy() {\n\t var _this7 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t this.state = {};\n\t\n\t this.emitter.off(['after-filtering'], function () {\n\t return _this7.update();\n\t });\n\t this.emitter.off(['after-page-change', 'after-clearing-filters'], function (tf, pageNb) {\n\t return _this7.updatePage(pageNb);\n\t });\n\t this.emitter.off(['after-page-length-change'], function (tf, index) {\n\t return _this7.updatePageLength(index);\n\t });\n\t this.emitter.off(['column-sorted'], function (tf, index, descending) {\n\t return _this7.updateSort(index, descending);\n\t });\n\t this.emitter.off(['sort-initialized'], function () {\n\t return _this7._syncSort();\n\t });\n\t this.emitter.off(['columns-visibility-initialized'], function () {\n\t return _this7._syncColsVisibility();\n\t });\n\t this.emitter.off(['column-shown', 'column-hidden'], function (tf, feature, colIndex, hiddenCols) {\n\t return _this7.updateColsVisibility(hiddenCols);\n\t });\n\t this.emitter.off(['filters-visibility-initialized'], function () {\n\t return _this7._syncFiltersVisibility();\n\t });\n\t this.emitter.off(['filters-toggled'], function (tf, extension, visible) {\n\t return _this7.updateFiltersVisibility(visible);\n\t });\n\t\n\t if (this.enableHash) {\n\t this.hash.destroy();\n\t this.hash = null;\n\t }\n\t\n\t if (this.enableStorage) {\n\t this.storage.destroy();\n\t this.storage = null;\n\t }\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return State;\n\t}(_feature.Feature);\n\n/***/ },\n/* 27 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Hash = exports.hasHashChange = undefined;\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar JSON = _root.root.JSON;\n\tvar location = _root.root.location;\n\tvar decodeURIComponent = _root.root.decodeURIComponent;\n\tvar encodeURIComponent = _root.root.encodeURIComponent;\n\t\n\t/**\n\t * Checks if browser has onhashchange event\n\t */\n\tvar hasHashChange = exports.hasHashChange = function hasHashChange() {\n\t var docMode = _root.root.documentMode;\n\t return 'onhashchange' in _root.root && (docMode === undefined || docMode > 7);\n\t};\n\t\n\t/**\n\t * Manages state via URL hash changes\n\t *\n\t * @export\n\t * @class Hash\n\t */\n\t\n\tvar Hash = exports.Hash = function () {\n\t\n\t /**\n\t * Creates an instance of Hash\n\t *\n\t * @param {State} state Instance of State\n\t */\n\t function Hash(state) {\n\t _classCallCheck(this, Hash);\n\t\n\t /**\n\t * State object\n\t * @type {State}\n\t */\n\t this.state = state;\n\t\n\t /**\n\t * Cached URL hash\n\t * @type {String} Hash string\n\t * @private\n\t */\n\t this.lastHash = null;\n\t\n\t /**\n\t * Application event emitter instance\n\t * @type {Emitter}\n\t */\n\t this.emitter = state.emitter;\n\t\n\t /**\n\t * Bound sync wrapper for future use\n\t * @private\n\t */\n\t this.boundSync = null;\n\t }\n\t\n\t /**\n\t * Initializes the Hash object\n\t */\n\t\n\t\n\t Hash.prototype.init = function init() {\n\t var _this = this;\n\t\n\t if (!hasHashChange()) {\n\t return;\n\t }\n\t\n\t this.lastHash = location.hash;\n\t //Store a bound sync wrapper\n\t this.boundSync = this.sync.bind(this);\n\t this.emitter.on(['state-changed'], function (tf, state) {\n\t return _this.update(state);\n\t });\n\t this.emitter.on(['initialized'], this.boundSync);\n\t (0, _event.addEvt)(_root.root, 'hashchange', this.boundSync);\n\t };\n\t\n\t /**\n\t * Updates the URL hash based on a state change\n\t *\n\t * @param {State} state Instance of State\n\t */\n\t\n\t\n\t Hash.prototype.update = function update(state) {\n\t var hash = '#' + encodeURIComponent(JSON.stringify(state));\n\t if (this.lastHash === hash) {\n\t return;\n\t }\n\t\n\t location.hash = hash;\n\t this.lastHash = hash;\n\t };\n\t\n\t /**\n\t * Converts a URL hash into a state JSON object\n\t *\n\t * @param {String} hash URL hash fragment\n\t * @returns {Object} JSON object\n\t */\n\t\n\t\n\t Hash.prototype.parse = function parse(hash) {\n\t if (hash.indexOf('#') === -1) {\n\t return null;\n\t }\n\t hash = hash.substr(1);\n\t return JSON.parse(decodeURIComponent(hash));\n\t };\n\t\n\t /**\n\t * Applies current hash state to features\n\t */\n\t\n\t\n\t Hash.prototype.sync = function sync() {\n\t var state = this.parse(location.hash);\n\t if (!state) {\n\t return;\n\t }\n\t // override current state with persisted one and sync features\n\t this.state.overrideAndSync(state);\n\t };\n\t\n\t /**\n\t * Release Hash event subscriptions and clear fields\n\t */\n\t\n\t\n\t Hash.prototype.destroy = function destroy() {\n\t var _this2 = this;\n\t\n\t this.emitter.off(['state-changed'], function (tf, state) {\n\t return _this2.update(state);\n\t });\n\t this.emitter.off(['initialized'], this.boundSync);\n\t (0, _event.removeEvt)(_root.root, 'hashchange', this.boundSync);\n\t\n\t this.state = null;\n\t this.lastHash = null;\n\t this.emitter = null;\n\t };\n\t\n\t return Hash;\n\t}();\n\n/***/ },\n/* 28 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Storage = exports.hasStorage = undefined;\n\t\n\tvar _cookie = __webpack_require__(29);\n\t\n\tvar _cookie2 = _interopRequireDefault(_cookie);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar JSON = _root.root.JSON;\n\tvar localStorage = _root.root.localStorage;\n\tvar location = _root.root.location;\n\t\n\t/**\n\t * Checks if browser has Storage feature\n\t */\n\tvar hasStorage = exports.hasStorage = function hasStorage() {\n\t return 'Storage' in _root.root;\n\t};\n\t\n\t/**\n\t * Stores the features state in browser's local storage or cookie\n\t *\n\t * @export\n\t * @class Storage\n\t */\n\t\n\tvar Storage = exports.Storage = function () {\n\t\n\t /**\n\t * Creates an instance of Storage\n\t *\n\t * @param {State} state Instance of State\n\t */\n\t function Storage(state) {\n\t _classCallCheck(this, Storage);\n\t\n\t /**\n\t * State object\n\t * @type {State}\n\t * @private\n\t */\n\t this.state = state;\n\t\n\t /**\n\t * TableFilter object\n\t * @type {TableFilter}\n\t * @private\n\t */\n\t this.tf = state.tf;\n\t\n\t /**\n\t * Persist with local storage\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.enableLocalStorage = state.enableLocalStorage && hasStorage();\n\t\n\t /**\n\t * Persist with cookie\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.enableCookie = state.enableCookie && !this.enableLocalStorage;\n\t\n\t /**\n\t * Emitter object\n\t * @type {Emitter}\n\t * @private\n\t */\n\t this.emitter = state.emitter;\n\t\n\t /**\n\t * Cookie duration in hours from state object\n\t * @type {Number}\n\t * @private\n\t */\n\t this.duration = state.cookieDuration;\n\t }\n\t\n\t /**\n\t * Initializes the Storage object\n\t */\n\t\n\t\n\t Storage.prototype.init = function init() {\n\t var _this = this;\n\t\n\t this.emitter.on(['state-changed'], function (tf, state) {\n\t return _this.save(state);\n\t });\n\t this.emitter.on(['initialized'], function () {\n\t return _this.sync();\n\t });\n\t };\n\t\n\t /**\n\t * Persists the features state on state changes\n\t *\n\t * @param {State} state Instance of State\n\t */\n\t\n\t\n\t Storage.prototype.save = function save(state) {\n\t if (this.enableLocalStorage) {\n\t localStorage[this.getKey()] = JSON.stringify(state);\n\t } else {\n\t _cookie2.default.write(this.getKey(), JSON.stringify(state), this.duration);\n\t }\n\t };\n\t\n\t /**\n\t * Turns stored string into a State JSON object\n\t *\n\t * @returns {Object} JSON object\n\t */\n\t\n\t\n\t Storage.prototype.retrieve = function retrieve() {\n\t var state = null;\n\t if (this.enableLocalStorage) {\n\t state = localStorage[this.getKey()];\n\t } else {\n\t state = _cookie2.default.read(this.getKey());\n\t }\n\t\n\t if (!state) {\n\t return null;\n\t }\n\t return JSON.parse(state);\n\t };\n\t\n\t /**\n\t * Removes persisted state from storage\n\t */\n\t\n\t\n\t Storage.prototype.remove = function remove() {\n\t if (this.enableLocalStorage) {\n\t localStorage.removeItem(this.getKey());\n\t } else {\n\t _cookie2.default.remove(this.getKey());\n\t }\n\t };\n\t\n\t /**\n\t * Applies persisted state to features\n\t */\n\t\n\t\n\t Storage.prototype.sync = function sync() {\n\t var state = this.retrieve();\n\t if (!state) {\n\t return;\n\t }\n\t // override current state with persisted one and sync features\n\t this.state.overrideAndSync(state);\n\t };\n\t\n\t /**\n\t * Returns the storage key\n\t *\n\t * @returns {String} Key\n\t */\n\t\n\t\n\t Storage.prototype.getKey = function getKey() {\n\t return JSON.stringify({\n\t key: this.tf.prfxTf + '_' + this.tf.id,\n\t path: location.pathname\n\t });\n\t };\n\t\n\t /**\n\t * Release Storage event subscriptions and clear fields\n\t */\n\t\n\t\n\t Storage.prototype.destroy = function destroy() {\n\t var _this2 = this;\n\t\n\t this.emitter.off(['state-changed'], function (tf, state) {\n\t return _this2.save(state);\n\t });\n\t this.emitter.off(['initialized'], function () {\n\t return _this2.sync();\n\t });\n\t\n\t this.remove();\n\t\n\t this.state = null;\n\t this.emitter = null;\n\t };\n\t\n\t return Storage;\n\t}();\n\n/***/ },\n/* 29 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\t/**\n\t * Cookie utilities\n\t */\n\t\n\tvar doc = _root.root.document;\n\t\n\texports.default = {\n\t\n\t /**\n\t * Write a cookie\n\t * @param {String} name Name of the cookie\n\t * @param {String} value Value of the cookie\n\t * @param {Number} hours Cookie duration in hours\n\t */\n\t write: function write(name, value, hours) {\n\t var expire = '';\n\t if (hours) {\n\t expire = new Date(new Date().getTime() + hours * 3600000);\n\t expire = '; expires=' + expire.toGMTString();\n\t }\n\t doc.cookie = name + '=' + escape(value) + expire;\n\t },\n\t\n\t\n\t /**\n\t * Read a cookie\n\t * @param {String} name Name of the cookie\n\t * @returns {String} Value of the cookie\n\t */\n\t read: function read(name) {\n\t var cookieValue = '',\n\t search = name + '=';\n\t if (doc.cookie.length > 0) {\n\t var cookie = doc.cookie,\n\t offset = cookie.indexOf(search);\n\t if (offset !== -1) {\n\t offset += search.length;\n\t var end = cookie.indexOf(';', offset);\n\t if (end === -1) {\n\t end = cookie.length;\n\t }\n\t cookieValue = unescape(cookie.substring(offset, end));\n\t }\n\t }\n\t return cookieValue;\n\t },\n\t\n\t\n\t /**\n\t * Remove a cookie\n\t * @param {String} name Name of the cookie\n\t */\n\t remove: function remove(name) {\n\t this.write(name, '', -1);\n\t }\n\t};\n\n/***/ },\n/* 30 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.DateType = undefined;\n\t\n\tvar _sugarDate = __webpack_require__(31);\n\t\n\t__webpack_require__(417);\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\n\t * Wrapper for Sugar Date module providing datetime helpers and locales\n\t * @export\n\t * @class DateType\n\t */\n\tvar DateType = exports.DateType = function (_Feature) {\n\t _inherits(DateType, _Feature);\n\t\n\t /**\n\t * Creates an instance of DateType\n\t * @param {TableFilter} tf TableFilter instance\n\t */\n\t function DateType(tf) {\n\t _classCallCheck(this, DateType);\n\t\n\t /**\n\t * Global locale\n\t * @type {String}\n\t */\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'dateType'));\n\t\n\t _this.locale = tf.locale;\n\t\n\t /**\n\t * Sugar Date instance\n\t * @type {Object}\n\t */\n\t _this.datetime = _sugarDate.Date;\n\t\n\t _this.enable();\n\t return _this;\n\t }\n\t\n\t /**\n\t * Initialize DateType instance\n\t */\n\t\n\t\n\t DateType.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t // Set global locale\n\t this.datetime.setLocale(this.locale);\n\t\n\t // Add formats from column types configuration if any\n\t this.addConfigFormats(this.tf.colTypes);\n\t\n\t this.emitter.on(['add-date-type-formats'], function (tf, types) {\n\t return _this2.addConfigFormats(types);\n\t });\n\t\n\t // Broadcast date-type initialization\n\t this.emitter.emit('date-type-initialized', this.tf, this);\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\n\t * Parse a string representation of a date for a specified locale and return\n\t * a date object\n\t * @param {String} dateStr String representation of a date\n\t * @param {String} localeCode Locale code (ie 'en-us')\n\t * @returns {Date}\n\t */\n\t\n\t\n\t DateType.prototype.parse = function parse(dateStr, localeCode) {\n\t return this.datetime.create(dateStr, localeCode);\n\t };\n\t\n\t /**\n\t * Check string representation of a date for a specified locale is valid\n\t * @param {any} dateStr String representation of a date\n\t * @param {any} localeCode Locale code (ie 'en-us')\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t DateType.prototype.isValid = function isValid(dateStr, localeCode) {\n\t return this.datetime.isValid(this.parse(dateStr, localeCode));\n\t };\n\t\n\t /**\n\t * Return the type object of a specified column as per configuration or\n\t * passed collection\n\t * @param {Number} colIndex Column index\n\t * @param {Array} types Collection of column types, optional\n\t * @returns {Object}\n\t */\n\t\n\t\n\t DateType.prototype.getOptions = function getOptions(colIndex, types) {\n\t types = types || this.tf.colTypes;\n\t var colType = types[colIndex];\n\t return (0, _types.isObj)(colType) ? colType : {};\n\t };\n\t\n\t /**\n\t * Add date time format(s) to a locale as specified by the passed\n\t * collection of column types, ie:\n\t * [\n\t * 'string',\n\t * 'number',\n\t * { type: 'date', locale: 'en', format: ['{dd}/{MM}/{yyyy}']}\n\t * ]\n\t *\n\t * @param {Array} [types=[]] Collection of column types\n\t */\n\t\n\t\n\t DateType.prototype.addConfigFormats = function addConfigFormats() {\n\t var _this3 = this;\n\t\n\t var types = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\t\n\t types.forEach(function (type, idx) {\n\t var options = _this3.getOptions(idx, types);\n\t if (options.type === _const.DATE && options.hasOwnProperty('format')) {\n\t (function () {\n\t var locale = _this3.datetime.getLocale(options.locale || _this3.locale);\n\t var formats = (0, _types.isArray)(options.format) ? options.format : [options.format];\n\t\n\t // Sugar date module throws exceptions with locale.addFormat\n\t try {\n\t formats.forEach(function (format) {\n\t locale.addFormat(format);\n\t });\n\t } catch (ex) {\n\t _root.root.console.error(ex);\n\t }\n\t })();\n\t }\n\t });\n\t };\n\t\n\t /**\n\t * Remove DateType instance\n\t */\n\t\n\t\n\t DateType.prototype.destroy = function destroy() {\n\t var _this4 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t // TODO: remove added formats\n\t\n\t this.emitter.off(['add-date-type-formats'], function (tf, types) {\n\t return _this4.addConfigFormats(types);\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return DateType;\n\t}(_feature.Feature);\n\n/***/ },\n/* 31 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(32);\n\t__webpack_require__(370);\n\t\n\tmodule.exports = __webpack_require__(34);\n\n/***/ },\n/* 32 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t// Static Methods\n\t__webpack_require__(33);\n\t__webpack_require__(93);\n\t__webpack_require__(139);\n\t__webpack_require__(141);\n\t__webpack_require__(142);\n\t__webpack_require__(143);\n\t__webpack_require__(144);\n\t\n\t// Instance Methods\n\t__webpack_require__(145);\n\t__webpack_require__(152);\n\t__webpack_require__(153);\n\t__webpack_require__(154);\n\t__webpack_require__(155);\n\t__webpack_require__(156);\n\t__webpack_require__(157);\n\t__webpack_require__(158);\n\t__webpack_require__(159);\n\t__webpack_require__(160);\n\t__webpack_require__(161);\n\t__webpack_require__(162);\n\t__webpack_require__(163);\n\t__webpack_require__(164);\n\t__webpack_require__(165);\n\t__webpack_require__(166);\n\t__webpack_require__(167);\n\t__webpack_require__(168);\n\t__webpack_require__(169);\n\t__webpack_require__(170);\n\t__webpack_require__(171);\n\t__webpack_require__(172);\n\t__webpack_require__(173);\n\t__webpack_require__(174);\n\t__webpack_require__(175);\n\t__webpack_require__(176);\n\t__webpack_require__(177);\n\t__webpack_require__(178);\n\t__webpack_require__(179);\n\t__webpack_require__(180);\n\t__webpack_require__(181);\n\t__webpack_require__(182);\n\t__webpack_require__(183);\n\t__webpack_require__(184);\n\t__webpack_require__(185);\n\t__webpack_require__(186);\n\t__webpack_require__(187);\n\t__webpack_require__(188);\n\t__webpack_require__(189);\n\t__webpack_require__(190);\n\t__webpack_require__(191);\n\t__webpack_require__(192);\n\t__webpack_require__(193);\n\t__webpack_require__(194);\n\t__webpack_require__(195);\n\t__webpack_require__(196);\n\t__webpack_require__(197);\n\t__webpack_require__(198);\n\t__webpack_require__(199);\n\t__webpack_require__(200);\n\t__webpack_require__(201);\n\t__webpack_require__(202);\n\t__webpack_require__(203);\n\t__webpack_require__(204);\n\t__webpack_require__(205);\n\t__webpack_require__(206);\n\t__webpack_require__(207);\n\t__webpack_require__(208);\n\t__webpack_require__(209);\n\t__webpack_require__(210);\n\t__webpack_require__(211);\n\t__webpack_require__(212);\n\t__webpack_require__(213);\n\t__webpack_require__(214);\n\t__webpack_require__(215);\n\t__webpack_require__(216);\n\t__webpack_require__(217);\n\t__webpack_require__(218);\n\t__webpack_require__(219);\n\t__webpack_require__(220);\n\t__webpack_require__(221);\n\t__webpack_require__(222);\n\t__webpack_require__(223);\n\t__webpack_require__(224);\n\t__webpack_require__(225);\n\t__webpack_require__(226);\n\t__webpack_require__(227);\n\t__webpack_require__(228);\n\t__webpack_require__(229);\n\t__webpack_require__(230);\n\t__webpack_require__(231);\n\t__webpack_require__(232);\n\t__webpack_require__(240);\n\t__webpack_require__(241);\n\t__webpack_require__(242);\n\t__webpack_require__(243);\n\t__webpack_require__(244);\n\t__webpack_require__(245);\n\t__webpack_require__(246);\n\t__webpack_require__(247);\n\t__webpack_require__(252);\n\t__webpack_require__(253);\n\t__webpack_require__(254);\n\t__webpack_require__(255);\n\t__webpack_require__(256);\n\t__webpack_require__(257);\n\t__webpack_require__(258);\n\t__webpack_require__(259);\n\t__webpack_require__(260);\n\t__webpack_require__(261);\n\t__webpack_require__(262);\n\t__webpack_require__(263);\n\t__webpack_require__(264);\n\t__webpack_require__(265);\n\t__webpack_require__(266);\n\t__webpack_require__(267);\n\t__webpack_require__(268);\n\t__webpack_require__(287);\n\t__webpack_require__(288);\n\t__webpack_require__(289);\n\t__webpack_require__(290);\n\t__webpack_require__(291);\n\t__webpack_require__(292);\n\t__webpack_require__(293);\n\t__webpack_require__(294);\n\t__webpack_require__(295);\n\t__webpack_require__(296);\n\t__webpack_require__(300);\n\t__webpack_require__(301);\n\t__webpack_require__(302);\n\t__webpack_require__(303);\n\t__webpack_require__(306);\n\t__webpack_require__(307);\n\t__webpack_require__(308);\n\t__webpack_require__(309);\n\t__webpack_require__(310);\n\t__webpack_require__(311);\n\t__webpack_require__(312);\n\t__webpack_require__(313);\n\t__webpack_require__(314);\n\t__webpack_require__(315);\n\t__webpack_require__(316);\n\t__webpack_require__(317);\n\t__webpack_require__(318);\n\t__webpack_require__(319);\n\t__webpack_require__(320);\n\t__webpack_require__(321);\n\t__webpack_require__(322);\n\t__webpack_require__(323);\n\t__webpack_require__(324);\n\t__webpack_require__(325);\n\t__webpack_require__(327);\n\t__webpack_require__(328);\n\t__webpack_require__(329);\n\t__webpack_require__(330);\n\t__webpack_require__(331);\n\t__webpack_require__(332);\n\t__webpack_require__(333);\n\t__webpack_require__(334);\n\t__webpack_require__(335);\n\t__webpack_require__(336);\n\t__webpack_require__(337);\n\t__webpack_require__(338);\n\t__webpack_require__(339);\n\t__webpack_require__(340);\n\t__webpack_require__(341);\n\t__webpack_require__(342);\n\t__webpack_require__(343);\n\t__webpack_require__(344);\n\t__webpack_require__(345);\n\t__webpack_require__(348);\n\t__webpack_require__(349);\n\t__webpack_require__(351);\n\t__webpack_require__(352);\n\t__webpack_require__(353);\n\t__webpack_require__(354);\n\t__webpack_require__(355);\n\t__webpack_require__(356);\n\t__webpack_require__(357);\n\t__webpack_require__(358);\n\t__webpack_require__(359);\n\t__webpack_require__(360);\n\t__webpack_require__(361);\n\t__webpack_require__(362);\n\t__webpack_require__(363);\n\t__webpack_require__(364);\n\t__webpack_require__(365);\n\t__webpack_require__(366);\n\t__webpack_require__(367);\n\t\n\t// Accessors\n\t__webpack_require__(368);\n\t__webpack_require__(369);\n\t\n\tmodule.exports = __webpack_require__(34);\n\n/***/ },\n/* 33 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'addLocale': function(code, set) {\n\t return localeManager.add(code, set);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.addLocale;\n\n/***/ },\n/* 34 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/*\n\t * Sugar v2.0.0\n\t *\n\t * Freely distributable and licensed under the MIT-style license.\n\t * Copyright (c) Andrew Plummer\n\t * https://sugarjs.com/\n\t *\n\t * ---------------------------- */\n\t(function() {\n\t 'use strict';\n\t\n\t /***\n\t * @module Core\n\t * @description Core functionality including the ability to define methods and\n\t * extend onto natives.\n\t *\n\t ***/\n\t\n\t // The global to export.\n\t var Sugar;\n\t\n\t // The name of Sugar in the global namespace.\n\t var SUGAR_GLOBAL = 'Sugar';\n\t\n\t // Natives available on initialization. Letting Object go first to ensure its\n\t // global is set by the time the rest are checking for chainable Object methods.\n\t var NATIVE_NAMES = 'Object Number String Array Date RegExp Function';\n\t\n\t // Static method flag\n\t var STATIC = 0x1;\n\t\n\t // Instance method flag\n\t var INSTANCE = 0x2;\n\t\n\t // IE8 has a broken defineProperty but no defineProperties so this saves a try/catch.\n\t var PROPERTY_DESCRIPTOR_SUPPORT = !!(Object.defineProperty && Object.defineProperties);\n\t\n\t // The global context. Rhino uses a different \"global\" keyword so\n\t // do an extra check to be sure that it's actually the global context.\n\t var globalContext = typeof global !== 'undefined' && global.Object === Object ? global : this;\n\t\n\t // Is the environment node?\n\t var hasExports = typeof module !== 'undefined' && module.exports;\n\t\n\t // Whether object instance methods can be mapped to the prototype.\n\t var allowObjectPrototype = false;\n\t\n\t // A map from Array to SugarArray.\n\t var namespacesByName = {};\n\t\n\t // A map from [object Object] to namespace.\n\t var namespacesByClassString = {};\n\t\n\t // Defining properties.\n\t var defineProperty = PROPERTY_DESCRIPTOR_SUPPORT ? Object.defineProperty : definePropertyShim;\n\t\n\t // A default chainable class for unknown types.\n\t var DefaultChainable = getNewChainableClass('Chainable');\n\t\n\t\n\t // Global methods\n\t\n\t function setupGlobal() {\n\t Sugar = globalContext[SUGAR_GLOBAL];\n\t if (Sugar) {\n\t // Reuse already defined Sugar global object.\n\t return;\n\t }\n\t Sugar = function(arg) {\n\t forEachProperty(Sugar, function(sugarNamespace, name) {\n\t // Although only the only enumerable properties on the global\n\t // object are Sugar namespaces, environments that can't set\n\t // non-enumerable properties will step through the utility methods\n\t // as well here, so use this check to only allow true namespaces.\n\t if (hasOwn(namespacesByName, name)) {\n\t sugarNamespace.extend(arg);\n\t }\n\t });\n\t return Sugar;\n\t };\n\t if (hasExports) {\n\t module.exports = Sugar;\n\t } else {\n\t try {\n\t globalContext[SUGAR_GLOBAL] = Sugar;\n\t } catch (e) {\n\t // Contexts such as QML have a read-only global context.\n\t }\n\t }\n\t forEachProperty(NATIVE_NAMES.split(' '), function(name) {\n\t createNamespace(name);\n\t });\n\t setGlobalProperties();\n\t }\n\t\n\t /***\n\t * @method createNamespace()\n\t * @returns Namespace\n\t * @global\n\t * @short Creates a new Sugar namespace.\n\t * @extra This method is for plugin developers who want to define methods to be\n\t * used with natives that Sugar does not handle by default. The new\n\t * namespace will appear on the `Sugar` global with all the methods of\n\t * normal namespaces, including the ability to define new methods. When\n\t * extended, any defined methods will be mapped to `name` in the global\n\t * context.\n\t *\n\t * @example\n\t *\n\t * Sugar.createNamespace('Boolean');\n\t *\n\t ***/\n\t function createNamespace(name) {\n\t\n\t // Is the current namespace Object?\n\t var isObject = name === 'Object';\n\t\n\t // A Sugar namespace is also a chainable class: Sugar.Array, etc.\n\t var sugarNamespace = getNewChainableClass(name, true);\n\t\n\t /***\n\t * @method extend([options])\n\t * @returns Sugar\n\t * @global\n\t * @namespace\n\t * @short Extends Sugar defined methods onto natives.\n\t * @extra This method can be called on individual namespaces like\n\t * `Sugar.Array` or on the `Sugar` global itself, in which case\n\t * [options] will be forwarded to each `extend` call. For more,\n\t * see `extending`.\n\t *\n\t * @options\n\t *\n\t * methods An array of method names to explicitly extend.\n\t *\n\t * except An array of method names or global namespaces (`Array`,\n\t * `String`) to explicitly exclude. Namespaces should be the\n\t * actual global objects, not strings.\n\t *\n\t * namespaces An array of global namespaces (`Array`, `String`) to\n\t * explicitly extend. Namespaces should be the actual\n\t * global objects, not strings.\n\t *\n\t * enhance A shortcut to disallow all \"enhance\" flags at once\n\t * (flags listed below). For more, see `enhanced methods`.\n\t * Default is `true`.\n\t *\n\t * enhanceString A boolean allowing String enhancements. Default is `true`.\n\t *\n\t * enhanceArray A boolean allowing Array enhancements. Default is `true`.\n\t *\n\t * objectPrototype A boolean allowing Sugar to extend Object.prototype\n\t * with instance methods. This option is off by default\n\t * and should generally not be used except with caution.\n\t * For more, see `object methods`.\n\t *\n\t * @example\n\t *\n\t * Sugar.Array.extend();\n\t * Sugar.extend();\n\t *\n\t ***/\n\t var extend = function (opts) {\n\t\n\t var nativeClass = globalContext[name], nativeProto = nativeClass.prototype;\n\t var staticMethods = {}, instanceMethods = {}, methodsByName;\n\t\n\t function objectRestricted(name, target) {\n\t return isObject && target === nativeProto &&\n\t (!allowObjectPrototype || name === 'get' || name === 'set');\n\t }\n\t\n\t function arrayOptionExists(field, val) {\n\t var arr = opts[field];\n\t if (arr) {\n\t for (var i = 0, el; el = arr[i]; i++) {\n\t if (el === val) {\n\t return true;\n\t }\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t function arrayOptionExcludes(field, val) {\n\t return opts[field] && !arrayOptionExists(field, val);\n\t }\n\t\n\t function disallowedByFlags(methodName, target, flags) {\n\t // Disallowing methods by flag currently only applies if methods already\n\t // exist to avoid enhancing native methods, as aliases should still be\n\t // extended (i.e. Array#all should still be extended even if Array#every\n\t // is being disallowed by a flag).\n\t if (!target[methodName] || !flags) {\n\t return false;\n\t }\n\t for (var i = 0; i < flags.length; i++) {\n\t if (opts[flags[i]] === false) {\n\t return true;\n\t }\n\t }\n\t }\n\t\n\t function namespaceIsExcepted() {\n\t return arrayOptionExists('except', nativeClass) ||\n\t arrayOptionExcludes('namespaces', nativeClass);\n\t }\n\t\n\t function methodIsExcepted(methodName) {\n\t return arrayOptionExists('except', methodName);\n\t }\n\t\n\t function canExtend(methodName, method, target) {\n\t return !objectRestricted(methodName, target) &&\n\t !disallowedByFlags(methodName, target, method.flags) &&\n\t !methodIsExcepted(methodName);\n\t }\n\t\n\t opts = opts || {};\n\t methodsByName = opts.methods;\n\t\n\t if (namespaceIsExcepted()) {\n\t return;\n\t } else if (isObject && typeof opts.objectPrototype === 'boolean') {\n\t // Store \"objectPrototype\" flag for future reference.\n\t allowObjectPrototype = opts.objectPrototype;\n\t }\n\t\n\t forEachProperty(methodsByName || sugarNamespace, function(method, methodName) {\n\t if (methodsByName) {\n\t // If we have method names passed in an array,\n\t // then we need to flip the key and value here\n\t // and find the method in the Sugar namespace.\n\t methodName = method;\n\t method = sugarNamespace[methodName];\n\t }\n\t if (hasOwn(method, 'instance') && canExtend(methodName, method, nativeProto)) {\n\t instanceMethods[methodName] = method.instance;\n\t }\n\t if(hasOwn(method, 'static') && canExtend(methodName, method, nativeClass)) {\n\t staticMethods[methodName] = method;\n\t }\n\t });\n\t\n\t // Accessing the extend target each time instead of holding a reference as\n\t // it may have been overwritten (for example Date by Sinon). Also need to\n\t // access through the global to allow extension of user-defined namespaces.\n\t extendNative(nativeClass, staticMethods);\n\t extendNative(nativeProto, instanceMethods);\n\t\n\t if (!methodsByName) {\n\t // If there are no method names passed, then\n\t // all methods in the namespace will be extended\n\t // to the native. This includes all future defined\n\t // methods, so add a flag here to check later.\n\t setProperty(sugarNamespace, 'active', true);\n\t }\n\t return Sugar;\n\t };\n\t\n\t function defineWithOptionCollect(methodName, instance, args) {\n\t setProperty(sugarNamespace, methodName, function(arg1, arg2, arg3) {\n\t var opts = collectDefineOptions(arg1, arg2, arg3);\n\t defineMethods(sugarNamespace, opts.methods, instance, args, opts.last);\n\t return sugarNamespace;\n\t });\n\t }\n\t\n\t /***\n\t * @method defineStatic(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short Defines static methods on the namespace that can later be extended\n\t * onto the native globals.\n\t * @extra Accepts either a single object mapping names to functions, or name\n\t * and function as two arguments. If `extend` was previously called\n\t * with no arguments, the method will be immediately mapped to its\n\t * native when defined.\n\t *\n\t * @example\n\t *\n\t * Sugar.Number.defineStatic({\n\t * isOdd: function (num) {\n\t * return num % 2 === 1;\n\t * }\n\t * });\n\t *\n\t ***/\n\t defineWithOptionCollect('defineStatic', STATIC);\n\t\n\t /***\n\t * @method defineInstance(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short Defines methods on the namespace that can later be extended as\n\t * instance methods onto the native prototype.\n\t * @extra Accepts either a single object mapping names to functions, or name\n\t * and function as two arguments. All functions should accept the\n\t * native for which they are mapped as their first argument, and should\n\t * never refer to `this`. If `extend` was previously called with no\n\t * arguments, the method will be immediately mapped to its native when\n\t * defined.\n\t *\n\t * Methods cannot accept more than 4 arguments in addition to the\n\t * native (5 arguments total). Any additional arguments will not be\n\t * mapped. If the method needs to accept unlimited arguments, use\n\t * `defineInstanceWithArguments`. Otherwise if more options are\n\t * required, use an options object instead.\n\t *\n\t * @example\n\t *\n\t * Sugar.Number.defineInstance({\n\t * square: function (num) {\n\t * return num * num;\n\t * }\n\t * });\n\t *\n\t ***/\n\t defineWithOptionCollect('defineInstance', INSTANCE);\n\t\n\t /***\n\t * @method defineInstanceAndStatic(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short A shortcut to define both static and instance methods on the namespace.\n\t * @extra This method is intended for use with `Object` instance methods. Sugar\n\t * will not map any methods to `Object.prototype` by default, so defining\n\t * instance methods as static helps facilitate their proper use.\n\t *\n\t * @example\n\t *\n\t * Sugar.Object.defineInstanceAndStatic({\n\t * isAwesome: function (obj) {\n\t * // check if obj is awesome!\n\t * }\n\t * });\n\t *\n\t ***/\n\t defineWithOptionCollect('defineInstanceAndStatic', INSTANCE | STATIC);\n\t\n\t\n\t /***\n\t * @method defineStaticWithArguments(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short Defines static methods that collect arguments.\n\t * @extra This method is identical to `defineStatic`, except that when defined\n\t * methods are called, they will collect any arguments past `n - 1`,\n\t * where `n` is the number of arguments that the method accepts.\n\t * Collected arguments will be passed to the method in an array\n\t * as the last argument defined on the function.\n\t *\n\t * @example\n\t *\n\t * Sugar.Number.defineStaticWithArguments({\n\t * addAll: function (num, args) {\n\t * for (var i = 0; i < args.length; i++) {\n\t * num += args[i];\n\t * }\n\t * return num;\n\t * }\n\t * });\n\t *\n\t ***/\n\t defineWithOptionCollect('defineStaticWithArguments', STATIC, true);\n\t\n\t /***\n\t * @method defineInstanceWithArguments(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short Defines instance methods that collect arguments.\n\t * @extra This method is identical to `defineInstance`, except that when\n\t * defined methods are called, they will collect any arguments past\n\t * `n - 1`, where `n` is the number of arguments that the method\n\t * accepts. Collected arguments will be passed to the method as the\n\t * last argument defined on the function.\n\t *\n\t * @example\n\t *\n\t * Sugar.Number.defineInstanceWithArguments({\n\t * addAll: function (num, args) {\n\t * for (var i = 0; i < args.length; i++) {\n\t * num += args[i];\n\t * }\n\t * return num;\n\t * }\n\t * });\n\t *\n\t ***/\n\t defineWithOptionCollect('defineInstanceWithArguments', INSTANCE, true);\n\t\n\t /***\n\t * @method defineStaticPolyfill(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short Defines static methods that are mapped onto the native if they do\n\t * not already exist.\n\t * @extra Intended only for use creating polyfills that follow the ECMAScript\n\t * spec. Accepts either a single object mapping names to functions, or\n\t * name and function as two arguments.\n\t *\n\t * @example\n\t *\n\t * Sugar.Object.defineStaticPolyfill({\n\t * keys: function (obj) {\n\t * // get keys!\n\t * }\n\t * });\n\t *\n\t ***/\n\t setProperty(sugarNamespace, 'defineStaticPolyfill', function(arg1, arg2, arg3) {\n\t var opts = collectDefineOptions(arg1, arg2, arg3);\n\t extendNative(globalContext[name], opts.methods, true, opts.last);\n\t });\n\t\n\t /***\n\t * @method defineInstancePolyfill(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short Defines instance methods that are mapped onto the native prototype\n\t * if they do not already exist.\n\t * @extra Intended only for use creating polyfills that follow the ECMAScript\n\t * spec. Accepts either a single object mapping names to functions, or\n\t * name and function as two arguments. This method differs from\n\t * `defineInstance` as there is no static signature (as the method\n\t * is mapped as-is to the native), so it should refer to its `this`\n\t * object.\n\t *\n\t * @example\n\t *\n\t * Sugar.Array.defineInstancePolyfill({\n\t * indexOf: function (arr, el) {\n\t * // index finding code here!\n\t * }\n\t * });\n\t *\n\t ***/\n\t setProperty(sugarNamespace, 'defineInstancePolyfill', function(arg1, arg2, arg3) {\n\t var opts = collectDefineOptions(arg1, arg2, arg3);\n\t extendNative(globalContext[name].prototype, opts.methods, true, opts.last);\n\t // Map instance polyfills to chainable as well.\n\t forEachProperty(opts.methods, function(fn, methodName) {\n\t defineChainableMethod(sugarNamespace, methodName, fn);\n\t });\n\t });\n\t\n\t /***\n\t * @method alias(, )\n\t * @returns Namespace\n\t * @namespace\n\t * @short Aliases one Sugar method to another.\n\t *\n\t * @example\n\t *\n\t * Sugar.Array.alias('all', 'every');\n\t *\n\t ***/\n\t setProperty(sugarNamespace, 'alias', function(name, source) {\n\t var method = typeof source === 'string' ? sugarNamespace[source] : source;\n\t setMethod(sugarNamespace, name, method);\n\t });\n\t\n\t // Each namespace can extend only itself through its .extend method.\n\t setProperty(sugarNamespace, 'extend', extend);\n\t\n\t // Cache the class to namespace relationship for later use.\n\t namespacesByName[name] = sugarNamespace;\n\t namespacesByClassString['[object ' + name + ']'] = sugarNamespace;\n\t\n\t mapNativeToChainable(name);\n\t mapObjectChainablesToNamespace(sugarNamespace);\n\t\n\t\n\t // Export\n\t return Sugar[name] = sugarNamespace;\n\t }\n\t\n\t function setGlobalProperties() {\n\t setProperty(Sugar, 'extend', Sugar);\n\t setProperty(Sugar, 'toString', toString);\n\t setProperty(Sugar, 'createNamespace', createNamespace);\n\t\n\t setProperty(Sugar, 'util', {\n\t 'hasOwn': hasOwn,\n\t 'getOwn': getOwn,\n\t 'setProperty': setProperty,\n\t 'classToString': classToString,\n\t 'defineProperty': defineProperty,\n\t 'forEachProperty': forEachProperty,\n\t 'mapNativeToChainable': mapNativeToChainable\n\t });\n\t }\n\t\n\t function toString() {\n\t return SUGAR_GLOBAL;\n\t }\n\t\n\t\n\t // Defining Methods\n\t\n\t function defineMethods(sugarNamespace, methods, type, args, flags) {\n\t forEachProperty(methods, function(method, methodName) {\n\t var instanceMethod, staticMethod = method;\n\t if (args) {\n\t staticMethod = wrapMethodWithArguments(method);\n\t }\n\t if (flags) {\n\t staticMethod.flags = flags;\n\t }\n\t\n\t // A method may define its own custom implementation, so\n\t // make sure that's not the case before creating one.\n\t if (type & INSTANCE && !method.instance) {\n\t instanceMethod = wrapInstanceMethod(method, args);\n\t setProperty(staticMethod, 'instance', instanceMethod);\n\t }\n\t\n\t if (type & STATIC) {\n\t setProperty(staticMethod, 'static', true);\n\t }\n\t\n\t setMethod(sugarNamespace, methodName, staticMethod);\n\t\n\t if (sugarNamespace.active) {\n\t // If the namespace has been activated (.extend has been called),\n\t // then map this method as well.\n\t sugarNamespace.extend(methodName);\n\t }\n\t });\n\t }\n\t\n\t function collectDefineOptions(arg1, arg2, arg3) {\n\t var methods, last;\n\t if (typeof arg1 === 'string') {\n\t methods = {};\n\t methods[arg1] = arg2;\n\t last = arg3;\n\t } else {\n\t methods = arg1;\n\t last = arg2;\n\t }\n\t return {\n\t last: last,\n\t methods: methods\n\t };\n\t }\n\t\n\t function wrapInstanceMethod(fn, args) {\n\t return args ? wrapMethodWithArguments(fn, true) : wrapInstanceMethodFixed(fn);\n\t }\n\t\n\t function wrapMethodWithArguments(fn, instance) {\n\t // Functions accepting enumerated arguments will always have \"args\" as the\n\t // last argument, so subtract one from the function length to get the point\n\t // at which to start collecting arguments. If this is an instance method on\n\t // a prototype, then \"this\" will be pushed into the arguments array so start\n\t // collecting 1 argument earlier.\n\t var startCollect = fn.length - 1 - (instance ? 1 : 0);\n\t return function() {\n\t var args = [], collectedArgs = [], len;\n\t if (instance) {\n\t args.push(this);\n\t }\n\t len = Math.max(arguments.length, startCollect);\n\t // Optimized: no leaking arguments\n\t for (var i = 0; i < len; i++) {\n\t if (i < startCollect) {\n\t args.push(arguments[i]);\n\t } else {\n\t collectedArgs.push(arguments[i]);\n\t }\n\t }\n\t args.push(collectedArgs);\n\t return fn.apply(this, args);\n\t };\n\t }\n\t\n\t function wrapInstanceMethodFixed(fn) {\n\t switch(fn.length) {\n\t // Wrapped instance methods will always be passed the instance\n\t // as the first argument, but requiring the argument to be defined\n\t // may cause confusion here, so return the same wrapped function regardless.\n\t case 0:\n\t case 1:\n\t return function() {\n\t return fn(this);\n\t };\n\t case 2:\n\t return function(a) {\n\t return fn(this, a);\n\t };\n\t case 3:\n\t return function(a, b) {\n\t return fn(this, a, b);\n\t };\n\t case 4:\n\t return function(a, b, c) {\n\t return fn(this, a, b, c);\n\t };\n\t case 5:\n\t return function(a, b, c, d) {\n\t return fn(this, a, b, c, d);\n\t };\n\t }\n\t }\n\t\n\t // Method helpers\n\t\n\t function extendNative(target, source, polyfill, override) {\n\t forEachProperty(source, function(method, name) {\n\t if (polyfill && !override && target[name]) {\n\t // Method exists, so bail.\n\t return;\n\t }\n\t setProperty(target, name, method);\n\t });\n\t }\n\t\n\t function setMethod(sugarNamespace, methodName, method) {\n\t sugarNamespace[methodName] = method;\n\t if (method.instance) {\n\t defineChainableMethod(sugarNamespace, methodName, method.instance, true);\n\t }\n\t }\n\t\n\t\n\t // Chainables\n\t\n\t function getNewChainableClass(name) {\n\t var fn = function SugarChainable(obj, arg) {\n\t if (!(this instanceof fn)) {\n\t return new fn(obj, arg);\n\t }\n\t if (this.constructor !== fn) {\n\t // Allow modules to define their own constructors.\n\t obj = this.constructor.apply(obj, arguments);\n\t }\n\t this.raw = obj;\n\t };\n\t setProperty(fn, 'toString', function() {\n\t return SUGAR_GLOBAL + name;\n\t });\n\t setProperty(fn.prototype, 'valueOf', function() {\n\t return this.raw;\n\t });\n\t return fn;\n\t }\n\t\n\t function defineChainableMethod(sugarNamespace, methodName, fn) {\n\t var wrapped = wrapWithChainableResult(fn), existing, collision, dcp;\n\t dcp = DefaultChainable.prototype;\n\t existing = dcp[methodName];\n\t\n\t // If the method was previously defined on the default chainable, then a\n\t // collision exists, so set the method to a disambiguation function that will\n\t // lazily evaluate the object and find it's associated chainable. An extra\n\t // check is required to avoid false positives from Object inherited methods.\n\t collision = existing && existing !== Object.prototype[methodName];\n\t\n\t // The disambiguation function is only required once.\n\t if (!existing || !existing.disambiguate) {\n\t dcp[methodName] = collision ? disambiguateMethod(methodName) : wrapped;\n\t }\n\t\n\t // The target chainable always receives the wrapped method. Additionally,\n\t // if the target chainable is Sugar.Object, then map the wrapped method\n\t // to all other namespaces as well if they do not define their own method\n\t // of the same name. This way, a Sugar.Number will have methods like\n\t // isEqual that can be called on any object without having to traverse up\n\t // the prototype chain and perform disambiguation, which costs cycles.\n\t // Note that the \"if\" block below actually does nothing on init as Object\n\t // goes first and no other namespaces exist yet. However it needs to be\n\t // here as Object instance methods defined later also need to be mapped\n\t // back onto existing namespaces.\n\t sugarNamespace.prototype[methodName] = wrapped;\n\t if (sugarNamespace === Sugar.Object) {\n\t mapObjectChainableToAllNamespaces(methodName, wrapped);\n\t }\n\t }\n\t\n\t function mapObjectChainablesToNamespace(sugarNamespace) {\n\t forEachProperty(Sugar.Object && Sugar.Object.prototype, function(val, methodName) {\n\t if (typeof val === 'function') {\n\t setObjectChainableOnNamespace(sugarNamespace, methodName, val);\n\t }\n\t });\n\t }\n\t\n\t function mapObjectChainableToAllNamespaces(methodName, fn) {\n\t forEachProperty(namespacesByName, function(sugarNamespace) {\n\t setObjectChainableOnNamespace(sugarNamespace, methodName, fn);\n\t });\n\t }\n\t\n\t function setObjectChainableOnNamespace(sugarNamespace, methodName, fn) {\n\t var proto = sugarNamespace.prototype;\n\t if (!hasOwn(proto, methodName)) {\n\t proto[methodName] = fn;\n\t }\n\t }\n\t\n\t function wrapWithChainableResult(fn) {\n\t return function() {\n\t return new DefaultChainable(fn.apply(this.raw, arguments));\n\t };\n\t }\n\t\n\t function disambiguateMethod(methodName) {\n\t var fn = function() {\n\t var raw = this.raw, sugarNamespace, fn;\n\t if (raw != null) {\n\t // Find the Sugar namespace for this unknown.\n\t sugarNamespace = namespacesByClassString[classToString(raw)];\n\t }\n\t if (!sugarNamespace) {\n\t // If no sugarNamespace can be resolved, then default\n\t // back to Sugar.Object so that undefined and other\n\t // non-supported types can still have basic object\n\t // methods called on them, such as type checks.\n\t sugarNamespace = Sugar.Object;\n\t }\n\t\n\t fn = new sugarNamespace(raw)[methodName];\n\t\n\t if (fn.disambiguate) {\n\t // If the method about to be called on this chainable is\n\t // itself a disambiguation method, then throw an error to\n\t // prevent infinite recursion.\n\t throw new TypeError('Cannot resolve namespace for ' + raw);\n\t }\n\t\n\t return fn.apply(this, arguments);\n\t };\n\t fn.disambiguate = true;\n\t return fn;\n\t }\n\t\n\t function mapNativeToChainable(name, methodNames) {\n\t var sugarNamespace = namespacesByName[name],\n\t nativeProto = globalContext[name].prototype;\n\t\n\t if (!methodNames && ownPropertyNames) {\n\t methodNames = ownPropertyNames(nativeProto);\n\t }\n\t\n\t forEachProperty(methodNames, function(methodName) {\n\t if (nativeMethodProhibited(methodName)) {\n\t // Sugar chainables have their own constructors as well as \"valueOf\"\n\t // methods, so exclude them here. The __proto__ argument should be trapped\n\t // by the function check below, however simply accessing this property on\n\t // Object.prototype causes QML to segfault, so pre-emptively excluding it.\n\t return;\n\t }\n\t try {\n\t var fn = nativeProto[methodName];\n\t if (typeof fn !== 'function') {\n\t // Bail on anything not a function.\n\t return;\n\t }\n\t } catch (e) {\n\t // Function.prototype has properties that\n\t // will throw errors when accessed.\n\t return;\n\t }\n\t defineChainableMethod(sugarNamespace, methodName, fn);\n\t });\n\t }\n\t\n\t function nativeMethodProhibited(methodName) {\n\t return methodName === 'constructor' ||\n\t methodName === 'valueOf' ||\n\t methodName === '__proto__';\n\t }\n\t\n\t\n\t // Util\n\t\n\t // Internal references\n\t var ownPropertyNames = Object.getOwnPropertyNames,\n\t internalToString = Object.prototype.toString,\n\t internalHasOwnProperty = Object.prototype.hasOwnProperty;\n\t\n\t // Defining this as a variable here as the ES5 module\n\t // overwrites it to patch DONTENUM.\n\t var forEachProperty = function (obj, fn) {\n\t for(var key in obj) {\n\t if (!hasOwn(obj, key)) continue;\n\t if (fn.call(obj, obj[key], key, obj) === false) break;\n\t }\n\t };\n\t\n\t function definePropertyShim(obj, prop, descriptor) {\n\t obj[prop] = descriptor.value;\n\t }\n\t\n\t function setProperty(target, name, value, enumerable) {\n\t defineProperty(target, name, {\n\t value: value,\n\t enumerable: !!enumerable,\n\t configurable: true,\n\t writable: true\n\t });\n\t }\n\t\n\t // PERF: Attempts to speed this method up get very Heisenbergy. Quickly\n\t // returning based on typeof works for primitives, but slows down object\n\t // types. Even === checks on null and undefined (no typeof) will end up\n\t // basically breaking even. This seems to be as fast as it can go.\n\t function classToString(obj) {\n\t return internalToString.call(obj);\n\t }\n\t\n\t function hasOwn(obj, prop) {\n\t return !!obj && internalHasOwnProperty.call(obj, prop);\n\t }\n\t\n\t function getOwn(obj, prop) {\n\t if (hasOwn(obj, prop)) {\n\t return obj[prop];\n\t }\n\t }\n\t\n\t setupGlobal();\n\t\n\t}).call(this);\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 35 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LazyLoadedLocales = __webpack_require__(36),\n\t AmericanEnglishDefinition = __webpack_require__(43),\n\t getNewLocale = __webpack_require__(45);\n\t\n\tvar English, localeManager;\n\t\n\tfunction buildLocales() {\n\t\n\t function LocaleManager(loc) {\n\t this.locales = {};\n\t this.add(loc);\n\t }\n\t\n\t LocaleManager.prototype = {\n\t\n\t get: function(code, fallback) {\n\t var loc = this.locales[code];\n\t if (!loc && LazyLoadedLocales[code]) {\n\t loc = this.add(code, LazyLoadedLocales[code]);\n\t } else if (!loc && code) {\n\t loc = this.locales[code.slice(0, 2)];\n\t }\n\t return loc || fallback === false ? loc : this.current;\n\t },\n\t\n\t getAll: function() {\n\t return this.locales;\n\t },\n\t\n\t set: function(code) {\n\t var loc = this.get(code, false);\n\t if (!loc) {\n\t throw new TypeError('Invalid Locale: ' + code);\n\t }\n\t return this.current = loc;\n\t },\n\t\n\t add: function(code, def) {\n\t if (!def) {\n\t def = code;\n\t code = def.code;\n\t } else {\n\t def.code = code;\n\t }\n\t var loc = def.compiledFormats ? def : getNewLocale(def);\n\t this.locales[code] = loc;\n\t if (!this.current) {\n\t this.current = loc;\n\t }\n\t return loc;\n\t },\n\t\n\t remove: function(code) {\n\t if (this.current.code === code) {\n\t this.current = this.get('en');\n\t }\n\t return delete this.locales[code];\n\t }\n\t\n\t };\n\t\n\t // Sorry about this guys...\n\t English = getNewLocale(AmericanEnglishDefinition);\n\t localeManager = new LocaleManager(English);\n\t}\n\t\n\tbuildLocales();\n\t\n\tmodule.exports = {\n\t English: English,\n\t localeManager: localeManager\n\t};\n\n/***/ },\n/* 36 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar BritishEnglishDefinition = __webpack_require__(37),\n\t AmericanEnglishDefinition = __webpack_require__(43),\n\t CanadianEnglishDefinition = __webpack_require__(44);\n\t\n\tvar LazyLoadedLocales = {\n\t 'en-US': AmericanEnglishDefinition,\n\t 'en-GB': BritishEnglishDefinition,\n\t 'en-AU': BritishEnglishDefinition,\n\t 'en-CA': CanadianEnglishDefinition\n\t};\n\t\n\tmodule.exports = LazyLoadedLocales;\n\n/***/ },\n/* 37 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getEnglishVariant = __webpack_require__(38);\n\t\n\tvar BritishEnglishDefinition = getEnglishVariant({\n\t 'short': '{dd}/{MM}/{yyyy}',\n\t 'medium': '{d} {Month} {yyyy}',\n\t 'long': '{d} {Month} {yyyy} {H}:{mm}',\n\t 'full': '{Weekday}, {d} {Month}, {yyyy} {time}',\n\t 'stamp': '{Dow} {d} {Mon} {yyyy} {time}'\n\t});\n\t\n\tmodule.exports = BritishEnglishDefinition;\n\n/***/ },\n/* 38 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar EnglishLocaleBaseDefinition = __webpack_require__(39),\n\t simpleMerge = __webpack_require__(40),\n\t simpleClone = __webpack_require__(42);\n\t\n\tfunction getEnglishVariant(v) {\n\t return simpleMerge(simpleClone(EnglishLocaleBaseDefinition), v);\n\t}\n\t\n\tmodule.exports = getEnglishVariant;\n\n/***/ },\n/* 39 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar EnglishLocaleBaseDefinition = {\n\t 'code': 'en',\n\t 'plural': true,\n\t 'timeMarkers': 'at',\n\t 'ampm': 'AM|A.M.|a,PM|P.M.|p',\n\t 'units': 'millisecond:|s,second:|s,minute:|s,hour:|s,day:|s,week:|s,month:|s,year:|s',\n\t 'months': 'Jan:uary|,Feb:ruary|,Mar:ch|,Apr:il|,May,Jun:e|,Jul:y|,Aug:ust|,Sep:tember|t|,Oct:ober|,Nov:ember|,Dec:ember|',\n\t 'weekdays': 'Sun:day|,Mon:day|,Tue:sday|,Wed:nesday|,Thu:rsday|,Fri:day|,Sat:urday|+weekend',\n\t 'numerals': 'zero,one|first,two|second,three|third,four:|th,five|fifth,six:|th,seven:|th,eight:|h,nin:e|th,ten:|th',\n\t 'articles': 'a,an,the',\n\t 'tokens': 'the,st|nd|rd|th,of|in,a|an,on',\n\t 'time': '{H}:{mm}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{num} {unit} {sign}',\n\t 'duration': '{num} {unit}',\n\t 'modifiers': [\n\t { 'name': 'half', 'src': 'half', 'value': .5 },\n\t { 'name': 'midday', 'src': 'noon', 'value': 12 },\n\t { 'name': 'midday', 'src': 'midnight', 'value': 24 },\n\t { 'name': 'day', 'src': 'yesterday', 'value': -1 },\n\t { 'name': 'day', 'src': 'today|tonight', 'value': 0 },\n\t { 'name': 'day', 'src': 'tomorrow', 'value': 1 },\n\t { 'name': 'sign', 'src': 'ago|before', 'value': -1 },\n\t { 'name': 'sign', 'src': 'from now|after|from|in|later', 'value': 1 },\n\t { 'name': 'edge', 'src': 'first day|first|beginning', 'value': -2 },\n\t { 'name': 'edge', 'src': 'last day', 'value': 1 },\n\t { 'name': 'edge', 'src': 'end|last', 'value': 2 },\n\t { 'name': 'shift', 'src': 'last', 'value': -1 },\n\t { 'name': 'shift', 'src': 'the|this', 'value': 0 },\n\t { 'name': 'shift', 'src': 'next', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '(?:just)? now',\n\t '{shift} {unit:5-7}',\n\t \"{months?} (?:{year}|'{yy})\",\n\t '{midday} {4?} {day|weekday}',\n\t '{months},?(?:[-.\\\\/\\\\s]{year})?',\n\t '{edge} of (?:day)? {day|weekday}',\n\t '{0} {num}{1?} {weekday} {2} {months},? {year?}',\n\t '{shift?} {day?} {weekday?} {timeMarker?} {midday}',\n\t '{sign?} {3?} {half} {3?} {unit:3-4|unit:7} {sign?}',\n\t '{0?} {edge} {weekday?} {2} {shift?} {unit:4-7?} {months?},? {year?}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{shift} {unit:5?} {weekday}',\n\t '{0?} {date}{1?} {2?} {months?}',\n\t '{weekday} {2?} {shift} {unit:5}',\n\t '{0?} {num} {2?} {months}\\\\.?,? {year?}',\n\t '{num?} {unit:4-5} {sign} {day|weekday}',\n\t '{year}[-.\\\\/\\\\s]{months}[-.\\\\/\\\\s]{date}',\n\t '{0|months} {date?}{1?} of {shift} {unit:6-7}',\n\t '{0?} {num}{1?} {weekday} of {shift} {unit:6}',\n\t \"{date}[-.\\\\/\\\\s]{months}[-.\\\\/\\\\s](?:{year}|'?{yy})\",\n\t \"{weekday?}\\\\.?,? {months}\\\\.?,? {date}{1?},? (?:{year}|'{yy})?\"\n\t ],\n\t 'timeFrontParse': [\n\t '{sign} {num} {unit}',\n\t '{num} {unit} {sign}',\n\t '{4?} {day|weekday}'\n\t ]\n\t};\n\t\n\tmodule.exports = EnglishLocaleBaseDefinition;\n\n/***/ },\n/* 40 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar forEachProperty = coreUtilityAliases.forEachProperty;\n\t\n\tfunction simpleMerge(target, source) {\n\t forEachProperty(source, function(val, key) {\n\t target[key] = val;\n\t });\n\t return target;\n\t}\n\t\n\tmodule.exports = simpleMerge;\n\n/***/ },\n/* 41 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\tmodule.exports = {\n\t hasOwn: Sugar.util.hasOwn,\n\t getOwn: Sugar.util.getOwn,\n\t setProperty: Sugar.util.setProperty,\n\t classToString: Sugar.util.classToString,\n\t defineProperty: Sugar.util.defineProperty,\n\t forEachProperty: Sugar.util.forEachProperty,\n\t mapNativeToChainable: Sugar.util.mapNativeToChainable\n\t};\n\n/***/ },\n/* 42 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar simpleMerge = __webpack_require__(40);\n\t\n\tfunction simpleClone(obj) {\n\t return simpleMerge({}, obj);\n\t}\n\t\n\tmodule.exports = simpleClone;\n\n/***/ },\n/* 43 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getEnglishVariant = __webpack_require__(38);\n\t\n\tvar AmericanEnglishDefinition = getEnglishVariant({\n\t 'mdy': true,\n\t 'firstDayOfWeek': 0,\n\t 'firstDayOfWeekYear': 1,\n\t 'short': '{MM}/{dd}/{yyyy}',\n\t 'medium': '{Month} {d}, {yyyy}',\n\t 'long': '{Month} {d}, {yyyy} {time}',\n\t 'full': '{Weekday}, {Month} {d}, {yyyy} {time}',\n\t 'stamp': '{Dow} {Mon} {d} {yyyy} {time}',\n\t 'time': '{h}:{mm} {TT}'\n\t});\n\t\n\tmodule.exports = AmericanEnglishDefinition;\n\n/***/ },\n/* 44 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getEnglishVariant = __webpack_require__(38);\n\t\n\tvar CanadianEnglishDefinition = getEnglishVariant({\n\t 'short': '{yyyy}-{MM}-{dd}',\n\t 'medium': '{d} {Month}, {yyyy}',\n\t 'long': '{d} {Month}, {yyyy} {H}:{mm}',\n\t 'full': '{Weekday}, {d} {Month}, {yyyy} {time}',\n\t 'stamp': '{Dow} {d} {Mon} {yyyy} {time}'\n\t});\n\t\n\tmodule.exports = CanadianEnglishDefinition;\n\n/***/ },\n/* 45 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LOCALE_ARRAY_FIELDS = __webpack_require__(46),\n\t ISODefaults = __webpack_require__(47),\n\t ParsingTokens = __webpack_require__(48),\n\t CoreParsingFormats = __webpack_require__(49),\n\t LocalizedParsingTokens = __webpack_require__(50),\n\t map = __webpack_require__(51),\n\t filter = __webpack_require__(52),\n\t forEach = __webpack_require__(53),\n\t isDefined = __webpack_require__(57),\n\t commaSplit = __webpack_require__(58),\n\t classChecks = __webpack_require__(60),\n\t isUndefined = __webpack_require__(68),\n\t mathAliases = __webpack_require__(69),\n\t simpleMerge = __webpack_require__(40),\n\t getOrdinalSuffix = __webpack_require__(70),\n\t getRegNonCapturing = __webpack_require__(71),\n\t coreUtilityAliases = __webpack_require__(41),\n\t getArrayWithOffset = __webpack_require__(72),\n\t iterateOverDateUnits = __webpack_require__(73),\n\t arrayToRegAlternates = __webpack_require__(83),\n\t fullwidthNumberHelpers = __webpack_require__(85),\n\t getAdjustedUnitForNumber = __webpack_require__(88),\n\t getParsingTokenWithSuffix = __webpack_require__(92);\n\t\n\tvar getOwn = coreUtilityAliases.getOwn,\n\t forEachProperty = coreUtilityAliases.forEachProperty,\n\t fullWidthNumberMap = fullwidthNumberHelpers.fullWidthNumberMap,\n\t fullWidthNumbers = fullwidthNumberHelpers.fullWidthNumbers,\n\t pow = mathAliases.pow,\n\t max = mathAliases.max,\n\t ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,\n\t ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR,\n\t isString = classChecks.isString,\n\t isFunction = classChecks.isFunction;\n\t\n\tfunction getNewLocale(def) {\n\t\n\t function Locale(def) {\n\t this.init(def);\n\t }\n\t\n\t Locale.prototype = {\n\t\n\t getMonthName: function(n, alternate) {\n\t if (this.monthSuffix) {\n\t return (n + 1) + this.monthSuffix;\n\t }\n\t return getArrayWithOffset(this.months, n, alternate, 12);\n\t },\n\t\n\t getWeekdayName: function(n, alternate) {\n\t return getArrayWithOffset(this.weekdays, n, alternate, 7);\n\t },\n\t\n\t getTokenValue: function(field, str) {\n\t var map = this[field + 'Map'], val;\n\t if (map) {\n\t val = map[str];\n\t }\n\t if (isUndefined(val)) {\n\t val = this.getNumber(str);\n\t if (field === 'month') {\n\t // Months are the only numeric date field\n\t // whose value is not the same as its number.\n\t val -= 1;\n\t }\n\t }\n\t return val;\n\t },\n\t\n\t getNumber: function(str) {\n\t var num = this.numeralMap[str];\n\t if (isDefined(num)) {\n\t return num;\n\t }\n\t // The unary plus operator here show better performance and handles\n\t // every format that parseFloat does with the exception of trailing\n\t // characters, which are guaranteed not to be in our string at this point.\n\t num = +str.replace(/,/, '.');\n\t if (!isNaN(num)) {\n\t return num;\n\t }\n\t num = this.getNumeralValue(str);\n\t if (!isNaN(num)) {\n\t this.numeralMap[str] = num;\n\t return num;\n\t }\n\t return num;\n\t },\n\t\n\t getNumeralValue: function(str) {\n\t var place = 1, num = 0, lastWasPlace, isPlace, numeral, digit, arr;\n\t // Note that \"numerals\" that need to be converted through this method are\n\t // all considered to be single characters in order to handle CJK. This\n\t // method is by no means unique to CJK, but the complexity of handling\n\t // inflections in non-CJK languages adds too much overhead for not enough\n\t // value, so avoiding for now.\n\t arr = str.split('');\n\t for (var i = arr.length - 1; numeral = arr[i]; i--) {\n\t digit = getOwn(this.numeralMap, numeral);\n\t if (isUndefined(digit)) {\n\t digit = getOwn(fullWidthNumberMap, numeral) || 0;\n\t }\n\t isPlace = digit > 0 && digit % 10 === 0;\n\t if (isPlace) {\n\t if (lastWasPlace) {\n\t num += place;\n\t }\n\t if (i) {\n\t place = digit;\n\t } else {\n\t num += digit;\n\t }\n\t } else {\n\t num += digit * place;\n\t place *= 10;\n\t }\n\t lastWasPlace = isPlace;\n\t }\n\t return num;\n\t },\n\t\n\t getOrdinal: function(n) {\n\t var suffix = this.ordinalSuffix;\n\t return suffix || getOrdinalSuffix(n);\n\t },\n\t\n\t getRelativeFormat: function(adu, type) {\n\t return this.convertAdjustedToFormat(adu, type);\n\t },\n\t\n\t getDuration: function(ms) {\n\t return this.convertAdjustedToFormat(getAdjustedUnitForNumber(max(0, ms)), 'duration');\n\t },\n\t\n\t getFirstDayOfWeek: function() {\n\t var val = this.firstDayOfWeek;\n\t return isDefined(val) ? val : ISO_FIRST_DAY_OF_WEEK;\n\t },\n\t\n\t getFirstDayOfWeekYear: function() {\n\t return this.firstDayOfWeekYear || ISO_FIRST_DAY_OF_WEEK_YEAR;\n\t },\n\t\n\t convertAdjustedToFormat: function(adu, type) {\n\t var sign, unit, mult,\n\t num = adu[0],\n\t u = adu[1],\n\t ms = adu[2],\n\t format = this[type] || this.relative;\n\t if (isFunction(format)) {\n\t return format.call(this, num, u, ms, type);\n\t }\n\t mult = !this.plural || num === 1 ? 0 : 1;\n\t unit = this.units[mult * 8 + u] || this.units[u];\n\t sign = this[ms > 0 ? 'fromNow' : 'ago'];\n\t return format.replace(/\\{(.*?)\\}/g, function(full, match) {\n\t switch(match) {\n\t case 'num': return num;\n\t case 'unit': return unit;\n\t case 'sign': return sign;\n\t }\n\t });\n\t },\n\t\n\t cacheFormat: function(dif, i) {\n\t this.compiledFormats.splice(i, 1);\n\t this.compiledFormats.unshift(dif);\n\t },\n\t\n\t addFormat: function(src, to) {\n\t var loc = this;\n\t\n\t function getTokenSrc(str) {\n\t var suffix, src, val,\n\t opt = str.match(/\\?$/),\n\t nc = str.match(/^(\\d+)\\??$/),\n\t slice = str.match(/(\\d)(?:-(\\d))?/),\n\t key = str.replace(/[^a-z]+$/i, '');\n\t\n\t // Allowing alias tokens such as {time}\n\t if (val = getOwn(loc.parsingAliases, key)) {\n\t src = replaceParsingTokens(val);\n\t if (opt) {\n\t src = getRegNonCapturing(src, true);\n\t }\n\t return src;\n\t }\n\t\n\t if (nc) {\n\t src = loc.tokens[nc[1]];\n\t } else if (val = getOwn(ParsingTokens, key)) {\n\t src = val.src;\n\t } else {\n\t val = getOwn(loc.parsingTokens, key) || getOwn(loc, key);\n\t\n\t // Both the \"months\" array and the \"month\" parsing token can be accessed\n\t // by either {month} or {months}, falling back as necessary, however\n\t // regardless of whether or not a fallback occurs, the final field to\n\t // be passed to addRawFormat must be normalized as singular.\n\t key = key.replace(/s$/, '');\n\t\n\t if (!val) {\n\t val = getOwn(loc.parsingTokens, key) || getOwn(loc, key + 's');\n\t }\n\t\n\t if (isString(val)) {\n\t src = val;\n\t suffix = loc[key + 'Suffix'];\n\t } else {\n\t if (slice) {\n\t val = filter(val, function(m, i) {\n\t var mod = i % (loc.units ? 8 : val.length);\n\t return mod >= slice[1] && mod <= (slice[2] || slice[1]);\n\t });\n\t }\n\t src = arrayToRegAlternates(val);\n\t }\n\t }\n\t if (!src) {\n\t return '';\n\t }\n\t if (nc) {\n\t // Non-capturing tokens like {0}\n\t src = getRegNonCapturing(src);\n\t } else {\n\t // Capturing group and add to parsed tokens\n\t to.push(key);\n\t src = '(' + src + ')';\n\t }\n\t if (suffix) {\n\t // Date/time suffixes such as those in CJK\n\t src = getParsingTokenWithSuffix(key, src, suffix);\n\t }\n\t if (opt) {\n\t src += '?';\n\t }\n\t return src;\n\t }\n\t\n\t function replaceParsingTokens(str) {\n\t\n\t // Make spaces optional\n\t str = str.replace(/ /g, ' ?');\n\t\n\t return str.replace(/\\{([^,]+?)\\}/g, function(match, token) {\n\t var tokens = token.split('|'), src;\n\t if (tokens.length > 1) {\n\t src = getRegNonCapturing(map(tokens, getTokenSrc).join('|'));\n\t } else {\n\t src = getTokenSrc(token);\n\t }\n\t return src;\n\t });\n\t }\n\t\n\t if (!to) {\n\t to = [];\n\t src = replaceParsingTokens(src);\n\t }\n\t\n\t loc.addRawFormat(src, to);\n\t },\n\t\n\t addRawFormat: function(format, to) {\n\t this.compiledFormats.unshift({\n\t reg: RegExp('^ *' + format + ' *$', 'i'),\n\t to: to\n\t });\n\t },\n\t\n\t init: function(def) {\n\t var loc = this;\n\t\n\t // -- Initialization helpers\n\t\n\t function initFormats() {\n\t loc.compiledFormats = [];\n\t loc.parsingAliases = {};\n\t loc.parsingTokens = {};\n\t }\n\t\n\t function initDefinition() {\n\t simpleMerge(loc, def);\n\t }\n\t\n\t function initArrayFields() {\n\t forEach(LOCALE_ARRAY_FIELDS, function(name) {\n\t var val = loc[name];\n\t if (isString(val)) {\n\t loc[name] = commaSplit(val);\n\t } else if (!val) {\n\t loc[name] = [];\n\t }\n\t });\n\t }\n\t\n\t // -- Value array build helpers\n\t\n\t function buildValueArray(name, mod, map, fn) {\n\t var field = name, all = [], setMap;\n\t if (!loc[field]) {\n\t field += 's';\n\t }\n\t if (!map) {\n\t map = {};\n\t setMap = true;\n\t }\n\t forAllAlternates(field, function(alt, j, i) {\n\t var idx = j * mod + i, val;\n\t val = fn ? fn(i) : i;\n\t map[alt] = val;\n\t map[alt.toLowerCase()] = val;\n\t all[idx] = alt;\n\t });\n\t loc[field] = all;\n\t if (setMap) {\n\t loc[name + 'Map'] = map;\n\t }\n\t }\n\t\n\t function forAllAlternates(field, fn) {\n\t forEach(loc[field], function(str, i) {\n\t forEachAlternate(str, function(alt, j) {\n\t fn(alt, j, i);\n\t });\n\t });\n\t }\n\t\n\t function forEachAlternate(str, fn) {\n\t var arr = map(str.split('+'), function(split) {\n\t return split.replace(/(.+):(.+)$/, function(full, base, suffixes) {\n\t return map(suffixes.split('|'), function(suffix) {\n\t return base + suffix;\n\t }).join('|');\n\t });\n\t }).join('|');\n\t forEach(arr.split('|'), fn);\n\t }\n\t\n\t function buildNumerals() {\n\t var map = {};\n\t buildValueArray('numeral', 10, map);\n\t buildValueArray('article', 1, map, function() {\n\t return 1;\n\t });\n\t buildValueArray('placeholder', 4, map, function(n) {\n\t return pow(10, n + 1);\n\t });\n\t loc.numeralMap = map;\n\t }\n\t\n\t function buildTimeFormats() {\n\t loc.parsingAliases['time'] = getTimeFormat();\n\t loc.parsingAliases['tzOffset'] = getTZOffsetFormat();\n\t }\n\t\n\t function getTimeFormat() {\n\t var src;\n\t if (loc.ampmFront) {\n\t // \"ampmFront\" exists mostly for CJK locales, which also presume that\n\t // time suffixes exist, allowing this to be a simpler regex.\n\t src = '{ampm?} {hour} (?:{minute} (?::?{second})?)?';\n\t } else if(loc.ampm.length) {\n\t src = '{hour}(?:[.:]{minute}(?:[.:]{second})? {ampm?}| {ampm})';\n\t } else {\n\t src = '{hour}(?:[.:]{minute}(?:[.:]{second})?)';\n\t }\n\t return src;\n\t }\n\t\n\t function getTZOffsetFormat() {\n\t return '(?:{Z}|{GMT?}(?:{tzSign}{tzHour}(?::?{tzMinute}(?: \\\\([\\\\w\\\\s]+\\\\))?)?)?)?';\n\t }\n\t\n\t function buildParsingTokens() {\n\t forEachProperty(LocalizedParsingTokens, function(token, name) {\n\t var src, arr;\n\t src = token.base ? ParsingTokens[token.base].src : token.src;\n\t if (token.requiresNumerals || loc.numeralUnits) {\n\t src += getNumeralSrc();\n\t }\n\t arr = loc[name + 's'];\n\t if (arr && arr.length) {\n\t src += '|' + arrayToRegAlternates(arr);\n\t }\n\t loc.parsingTokens[name] = src;\n\t });\n\t }\n\t\n\t function getNumeralSrc() {\n\t var all, src = '';\n\t all = loc.numerals.concat(loc.placeholders).concat(loc.articles);\n\t if (loc.allowsFullWidth) {\n\t all = all.concat(fullWidthNumbers.split(''));\n\t }\n\t if (all.length) {\n\t src = '|(?:' + arrayToRegAlternates(all) + ')+';\n\t }\n\t return src;\n\t }\n\t\n\t function buildTimeSuffixes() {\n\t iterateOverDateUnits(function(unit, i) {\n\t var token = loc.timeSuffixes[i];\n\t if (token) {\n\t loc[(unit.alias || unit.name) + 'Suffix'] = token;\n\t }\n\t });\n\t }\n\t\n\t function buildModifiers() {\n\t forEach(loc.modifiers, function(modifier) {\n\t var name = modifier.name, mapKey = name + 'Map', map;\n\t map = loc[mapKey] || {};\n\t forEachAlternate(modifier.src, function(alt, j) {\n\t var token = getOwn(loc.parsingTokens, name), val = modifier.value;\n\t map[alt] = val;\n\t loc.parsingTokens[name] = token ? token + '|' + alt : alt;\n\t if (modifier.name === 'sign' && j === 0) {\n\t // Hooking in here to set the first \"fromNow\" or \"ago\" modifier\n\t // directly on the locale, so that it can be reused in the\n\t // relative format.\n\t loc[val === 1 ? 'fromNow' : 'ago'] = alt;\n\t }\n\t });\n\t loc[mapKey] = map;\n\t });\n\t }\n\t\n\t // -- Format adding helpers\n\t\n\t function addCoreFormats() {\n\t forEach(CoreParsingFormats, function(df) {\n\t var src = df.src;\n\t if (df.mdy && loc.mdy) {\n\t // Use the mm/dd/yyyy variant if it\n\t // exists and the locale requires it\n\t src = df.mdy;\n\t }\n\t if (df.time) {\n\t // Core formats that allow time require the time\n\t // reg on both sides, so add both versions here.\n\t loc.addFormat(getFormatWithTime(src, true));\n\t loc.addFormat(getFormatWithTime(src));\n\t } else {\n\t loc.addFormat(src);\n\t }\n\t });\n\t loc.addFormat('{time}');\n\t }\n\t\n\t function addLocaleFormats() {\n\t addFormatSet('parse');\n\t addFormatSet('timeParse', true);\n\t addFormatSet('timeFrontParse', true, true);\n\t }\n\t\n\t function addFormatSet(field, allowTime, timeFront) {\n\t forEach(loc[field], function(format) {\n\t if (allowTime) {\n\t format = getFormatWithTime(format, timeFront);\n\t }\n\t loc.addFormat(format);\n\t });\n\t }\n\t\n\t function getFormatWithTime(baseFormat, timeBefore) {\n\t if (timeBefore) {\n\t return getTimeBefore() + baseFormat;\n\t }\n\t return baseFormat + getTimeAfter();\n\t }\n\t\n\t function getTimeBefore() {\n\t return getRegNonCapturing('{time}[,\\\\s\\\\u3000]', true);\n\t }\n\t\n\t function getTimeAfter() {\n\t var markers = ',?[\\\\s\\\\u3000]', localized;\n\t localized = arrayToRegAlternates(loc.timeMarkers);\n\t if (localized) {\n\t markers += '| (?:' + localized + ') ';\n\t }\n\t markers = getRegNonCapturing(markers, loc.timeMarkerOptional);\n\t return getRegNonCapturing(markers + '{time}', true);\n\t }\n\t\n\t initFormats();\n\t initDefinition();\n\t initArrayFields();\n\t\n\t buildValueArray('month', 12);\n\t buildValueArray('weekday', 7);\n\t buildValueArray('unit', 8);\n\t buildValueArray('ampm', 2);\n\t\n\t buildNumerals();\n\t buildTimeFormats();\n\t buildParsingTokens();\n\t buildTimeSuffixes();\n\t buildModifiers();\n\t\n\t // The order of these formats is important. Order is reversed so formats\n\t // that are initialized later will take precedence. Generally, this means\n\t // that more specific formats should come later.\n\t addCoreFormats();\n\t addLocaleFormats();\n\t\n\t }\n\t\n\t };\n\t\n\t return new Locale(def);\n\t}\n\t\n\tmodule.exports = getNewLocale;\n\n/***/ },\n/* 46 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar LOCALE_ARRAY_FIELDS = [\n\t 'months', 'weekdays', 'units', 'numerals', 'placeholders',\n\t 'articles', 'tokens', 'timeMarkers', 'ampm', 'timeSuffixes',\n\t 'parse', 'timeParse', 'timeFrontParse', 'modifiers'\n\t];\n\t\n\tmodule.exports = LOCALE_ARRAY_FIELDS;\n\n/***/ },\n/* 47 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = {\n\t ISO_FIRST_DAY_OF_WEEK: 1,\n\t ISO_FIRST_DAY_OF_WEEK_YEAR: 4\n\t};\n\n/***/ },\n/* 48 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar ParsingTokens = {\n\t 'yyyy': {\n\t param: 'year',\n\t src: '\\\\d{4}'\n\t },\n\t 'MM': {\n\t param: 'month',\n\t src: '[01]?\\\\d'\n\t },\n\t 'dd': {\n\t param: 'date',\n\t src: '[0123]?\\\\d'\n\t },\n\t 'hh': {\n\t param: 'hour',\n\t src: '[0-2]?\\\\d'\n\t },\n\t 'mm': {\n\t param: 'minute',\n\t src: '[0-5]\\\\d'\n\t },\n\t 'ss': {\n\t param: 'second',\n\t src: '[0-5]\\\\d(?:[,.]\\\\d+)?'\n\t },\n\t 'yy': {\n\t param: 'year',\n\t src: '\\\\d{2}'\n\t },\n\t 'y': {\n\t param: 'year',\n\t src: '\\\\d'\n\t },\n\t 'yearSign': {\n\t src: '[+-]',\n\t sign: true\n\t },\n\t 'tzHour': {\n\t src: '[0-1]\\\\d'\n\t },\n\t 'tzMinute': {\n\t src: '[0-5]\\\\d'\n\t },\n\t 'tzSign': {\n\t src: '[+−-]',\n\t sign: true\n\t },\n\t 'ihh': {\n\t param: 'hour',\n\t src: '[0-2]?\\\\d(?:[,.]\\\\d+)?'\n\t },\n\t 'imm': {\n\t param: 'minute',\n\t src: '[0-5]\\\\d(?:[,.]\\\\d+)?'\n\t },\n\t 'GMT': {\n\t param: 'utc',\n\t src: 'GMT',\n\t val: 1\n\t },\n\t 'Z': {\n\t param: 'utc',\n\t src: 'Z',\n\t val: 1\n\t },\n\t 'timestamp': {\n\t src: '\\\\d+'\n\t }\n\t};\n\t\n\tmodule.exports = ParsingTokens;\n\n/***/ },\n/* 49 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar CoreParsingFormats = [\n\t {\n\t // 12-1978\n\t // 08-1978 (MDY)\n\t src: '{MM}[-.\\\\/]{yyyy}'\n\t },\n\t {\n\t // 12/08/1978\n\t // 08/12/1978 (MDY)\n\t time: true,\n\t src: '{dd}[-.\\\\/]{MM}(?:[-.\\\\/]{yyyy|yy|y})?',\n\t mdy: '{MM}[-.\\\\/]{dd}(?:[-.\\\\/]{yyyy|yy|y})?'\n\t },\n\t {\n\t // 1975-08-25\n\t time: true,\n\t src: '{yyyy}[-.\\\\/]{MM}(?:[-.\\\\/]{dd})?'\n\t },\n\t {\n\t // .NET JSON\n\t src: '\\\\\\\\/Date\\\\({timestamp}(?:[+-]\\\\d{4,4})?\\\\)\\\\\\\\/'\n\t },\n\t {\n\t // ISO-8601\n\t src: '{yearSign?}{yyyy}(?:-?{MM}(?:-?{dd}(?:T{ihh}(?::?{imm}(?::?{ss})?)?)?)?)?{tzOffset?}'\n\t }\n\t];\n\t\n\tmodule.exports = CoreParsingFormats;\n\n/***/ },\n/* 50 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar LocalizedParsingTokens = {\n\t 'year': {\n\t base: 'yyyy',\n\t requiresSuffix: true\n\t },\n\t 'month': {\n\t base: 'MM',\n\t requiresSuffix: true\n\t },\n\t 'date': {\n\t base: 'dd',\n\t requiresSuffix: true\n\t },\n\t 'hour': {\n\t base: 'hh',\n\t requiresSuffixOr: ':'\n\t },\n\t 'minute': {\n\t base: 'mm'\n\t },\n\t 'second': {\n\t base: 'ss'\n\t },\n\t 'num': {\n\t src: '\\\\d+',\n\t requiresNumerals: true\n\t }\n\t};\n\t\n\tmodule.exports = LocalizedParsingTokens;\n\n/***/ },\n/* 51 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction map(arr, fn) {\n\t // perf: Not using fixed array len here as it may be sparse.\n\t var result = [];\n\t for (var i = 0, len = arr.length; i < len; i++) {\n\t if (i in arr) {\n\t result.push(fn(arr[i], i));\n\t }\n\t }\n\t return result;\n\t}\n\t\n\tmodule.exports = map;\n\n/***/ },\n/* 52 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction filter(arr, fn) {\n\t var result = [];\n\t for (var i = 0, len = arr.length; i < len; i++) {\n\t var el = arr[i];\n\t if (i in arr && fn(el, i)) {\n\t result.push(el);\n\t }\n\t }\n\t return result;\n\t}\n\t\n\tmodule.exports = filter;\n\n/***/ },\n/* 53 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar iterateOverSparseArray = __webpack_require__(54);\n\t\n\tfunction forEach(arr, fn) {\n\t for (var i = 0, len = arr.length; i < len; i++) {\n\t if (!(i in arr)) {\n\t return iterateOverSparseArray(arr, fn, i);\n\t }\n\t fn(arr[i], i);\n\t }\n\t}\n\t\n\tmodule.exports = forEach;\n\n/***/ },\n/* 54 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getSparseArrayIndexes = __webpack_require__(55);\n\t\n\tfunction iterateOverSparseArray(arr, fn, fromIndex, loop) {\n\t var indexes = getSparseArrayIndexes(arr, fromIndex, loop), index;\n\t for (var i = 0, len = indexes.length; i < len; i++) {\n\t index = indexes[i];\n\t fn.call(arr, arr[index], index, arr);\n\t }\n\t return arr;\n\t}\n\t\n\tmodule.exports = iterateOverSparseArray;\n\n/***/ },\n/* 55 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar isArrayIndex = __webpack_require__(56);\n\t\n\tfunction getSparseArrayIndexes(arr, fromIndex, loop, fromRight) {\n\t var indexes = [], i;\n\t for (i in arr) {\n\t if (isArrayIndex(i) && (loop || (fromRight ? i <= fromIndex : i >= fromIndex))) {\n\t indexes.push(+i);\n\t }\n\t }\n\t indexes.sort(function(a, b) {\n\t var aLoop = a > fromIndex;\n\t var bLoop = b > fromIndex;\n\t if (aLoop !== bLoop) {\n\t return aLoop ? -1 : 1;\n\t }\n\t return a - b;\n\t });\n\t return indexes;\n\t}\n\t\n\tmodule.exports = getSparseArrayIndexes;\n\n/***/ },\n/* 56 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction isArrayIndex(n) {\n\t return n >>> 0 == n && n != 0xFFFFFFFF;\n\t}\n\t\n\tmodule.exports = isArrayIndex;\n\n/***/ },\n/* 57 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction isDefined(o) {\n\t return o !== undefined;\n\t}\n\t\n\tmodule.exports = isDefined;\n\n/***/ },\n/* 58 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar CommonChars = __webpack_require__(59);\n\t\n\tvar HALF_WIDTH_COMMA = CommonChars.HALF_WIDTH_COMMA;\n\t\n\tfunction commaSplit(str) {\n\t return str.split(HALF_WIDTH_COMMA);\n\t}\n\t\n\tmodule.exports = commaSplit;\n\n/***/ },\n/* 59 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = {\n\t HALF_WIDTH_ZERO: 0x30,\n\t FULL_WIDTH_ZERO: 0xff10,\n\t HALF_WIDTH_PERIOD: '.',\n\t FULL_WIDTH_PERIOD: '.',\n\t HALF_WIDTH_COMMA: ',',\n\t OPEN_BRACE: '{',\n\t CLOSE_BRACE: '}'\n\t};\n\n/***/ },\n/* 60 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar NATIVE_TYPES = __webpack_require__(61),\n\t forEach = __webpack_require__(53),\n\t isClass = __webpack_require__(62),\n\t spaceSplit = __webpack_require__(63),\n\t isPlainObject = __webpack_require__(64),\n\t coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar classToString = coreUtilityAliases.classToString;\n\t\n\tvar isSerializable,\n\t isBoolean, isNumber, isString,\n\t isDate, isRegExp, isFunction,\n\t isArray, isSet, isMap, isError;\n\t\n\tfunction buildClassChecks() {\n\t\n\t var knownTypes = {};\n\t\n\t function addCoreTypes() {\n\t\n\t var names = spaceSplit(NATIVE_TYPES);\n\t\n\t isBoolean = buildPrimitiveClassCheck(names[0]);\n\t isNumber = buildPrimitiveClassCheck(names[1]);\n\t isString = buildPrimitiveClassCheck(names[2]);\n\t\n\t isDate = buildClassCheck(names[3]);\n\t isRegExp = buildClassCheck(names[4]);\n\t\n\t // Wanted to enhance performance here by using simply \"typeof\"\n\t // but Firefox has two major issues that make this impossible,\n\t // one fixed, the other not, so perform a full class check here.\n\t //\n\t // 1. Regexes can be typeof \"function\" in FF < 3\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=61911 (fixed)\n\t //\n\t // 2. HTMLEmbedElement and HTMLObjectElement are be typeof \"function\"\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=268945 (won't fix)\n\t isFunction = buildClassCheck(names[5]);\n\t\n\t\n\t isArray = Array.isArray || buildClassCheck(names[6]);\n\t isError = buildClassCheck(names[7]);\n\t\n\t isSet = buildClassCheck(names[8], typeof Set !== 'undefined' && Set);\n\t isMap = buildClassCheck(names[9], typeof Map !== 'undefined' && Map);\n\t\n\t // Add core types as known so that they can be checked by value below,\n\t // notably excluding Functions and adding Arguments and Error.\n\t addKnownType('Arguments');\n\t addKnownType(names[0]);\n\t addKnownType(names[1]);\n\t addKnownType(names[2]);\n\t addKnownType(names[3]);\n\t addKnownType(names[4]);\n\t addKnownType(names[6]);\n\t\n\t }\n\t\n\t function addArrayTypes() {\n\t var types = 'Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64';\n\t forEach(spaceSplit(types), function(str) {\n\t addKnownType(str + 'Array');\n\t });\n\t }\n\t\n\t function addKnownType(className) {\n\t var str = '[object '+ className +']';\n\t knownTypes[str] = true;\n\t }\n\t\n\t function isKnownType(className) {\n\t return knownTypes[className];\n\t }\n\t\n\t function buildClassCheck(className, globalObject) {\n\t if (globalObject && isClass(new globalObject, 'Object')) {\n\t return getConstructorClassCheck(globalObject);\n\t } else {\n\t return getToStringClassCheck(className);\n\t }\n\t }\n\t\n\t function getConstructorClassCheck(obj) {\n\t var ctorStr = String(obj);\n\t return function(obj) {\n\t return String(obj.constructor) === ctorStr;\n\t };\n\t }\n\t\n\t function getToStringClassCheck(className) {\n\t return function(obj, str) {\n\t // perf: Returning up front on instanceof appears to be slower.\n\t return isClass(obj, className, str);\n\t };\n\t }\n\t\n\t function buildPrimitiveClassCheck(className) {\n\t var type = className.toLowerCase();\n\t return function(obj) {\n\t var t = typeof obj;\n\t return t === type || t === 'object' && isClass(obj, className);\n\t };\n\t }\n\t\n\t addCoreTypes();\n\t addArrayTypes();\n\t\n\t isSerializable = function(obj, className) {\n\t // Only known objects can be serialized. This notably excludes functions,\n\t // host objects, Symbols (which are matched by reference), and instances\n\t // of classes. The latter can arguably be matched by value, but\n\t // distinguishing between these and host objects -- which should never be\n\t // compared by value -- is very tricky so not dealing with it here.\n\t className = className || classToString(obj);\n\t return isKnownType(className) || isPlainObject(obj, className);\n\t };\n\t\n\t}\n\t\n\tbuildClassChecks();\n\t\n\tmodule.exports = {\n\t isSerializable: isSerializable,\n\t isBoolean: isBoolean,\n\t isNumber: isNumber,\n\t isString: isString,\n\t isDate: isDate,\n\t isRegExp: isRegExp,\n\t isFunction: isFunction,\n\t isArray: isArray,\n\t isSet: isSet,\n\t isMap: isMap,\n\t isError: isError\n\t};\n\n/***/ },\n/* 61 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = 'Boolean Number String Date RegExp Function Array Error Set Map';\n\n/***/ },\n/* 62 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar classToString = coreUtilityAliases.classToString;\n\t\n\tfunction isClass(obj, className, str) {\n\t if (!str) {\n\t str = classToString(obj);\n\t }\n\t return str === '[object '+ className +']';\n\t}\n\t\n\tmodule.exports = isClass;\n\n/***/ },\n/* 63 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction spaceSplit(str) {\n\t return str.split(' ');\n\t}\n\t\n\tmodule.exports = spaceSplit;\n\n/***/ },\n/* 64 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar isClass = __webpack_require__(62),\n\t isObjectType = __webpack_require__(65),\n\t hasOwnEnumeratedProperties = __webpack_require__(66),\n\t hasValidPlainObjectPrototype = __webpack_require__(67);\n\t\n\tfunction isPlainObject(obj, className) {\n\t return isObjectType(obj) &&\n\t isClass(obj, 'Object', className) &&\n\t hasValidPlainObjectPrototype(obj) &&\n\t hasOwnEnumeratedProperties(obj);\n\t}\n\t\n\tmodule.exports = isPlainObject;\n\n/***/ },\n/* 65 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction isObjectType(obj, type) {\n\t return !!obj && (type || typeof obj) === 'object';\n\t}\n\t\n\tmodule.exports = isObjectType;\n\n/***/ },\n/* 66 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar hasOwn = coreUtilityAliases.hasOwn;\n\t\n\tfunction hasOwnEnumeratedProperties(obj) {\n\t // Plain objects are generally defined as having enumerated properties\n\t // all their own, however in early IE environments without defineProperty,\n\t // there may also be enumerated methods in the prototype chain, so check\n\t // for both of these cases.\n\t var objectProto = Object.prototype;\n\t for (var key in obj) {\n\t var val = obj[key];\n\t if (!hasOwn(obj, key) && val !== objectProto[key]) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t}\n\t\n\tmodule.exports = hasOwnEnumeratedProperties;\n\n/***/ },\n/* 67 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar hasOwn = coreUtilityAliases.hasOwn;\n\t\n\tfunction hasValidPlainObjectPrototype(obj) {\n\t var hasToString = 'toString' in obj;\n\t var hasConstructor = 'constructor' in obj;\n\t // An object created with Object.create(null) has no methods in the\n\t // prototype chain, so check if any are missing. The additional hasToString\n\t // check is for false positives on some host objects in old IE which have\n\t // toString but no constructor. If the object has an inherited constructor,\n\t // then check if it is Object (the \"isPrototypeOf\" tapdance here is a more\n\t // robust way of ensuring this if the global has been hijacked). Note that\n\t // accessing the constructor directly (without \"in\" or \"hasOwnProperty\")\n\t // will throw a permissions error in IE8 on cross-domain windows.\n\t return (!hasConstructor && !hasToString) ||\n\t (hasConstructor && !hasOwn(obj, 'constructor') &&\n\t hasOwn(obj.constructor.prototype, 'isPrototypeOf'));\n\t}\n\t\n\tmodule.exports = hasValidPlainObjectPrototype;\n\n/***/ },\n/* 68 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction isUndefined(o) {\n\t return o === undefined;\n\t}\n\t\n\tmodule.exports = isUndefined;\n\n/***/ },\n/* 69 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = {\n\t abs: Math.abs,\n\t pow: Math.pow,\n\t min: Math.min,\n\t max: Math.max,\n\t ceil: Math.ceil,\n\t floor: Math.floor,\n\t round: Math.round\n\t};\n\n/***/ },\n/* 70 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction getOrdinalSuffix(num) {\n\t if (num >= 11 && num <= 13) {\n\t return 'th';\n\t } else {\n\t switch(num % 10) {\n\t case 1: return 'st';\n\t case 2: return 'nd';\n\t case 3: return 'rd';\n\t default: return 'th';\n\t }\n\t }\n\t}\n\t\n\tmodule.exports = getOrdinalSuffix;\n\n/***/ },\n/* 71 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction getRegNonCapturing(src, opt) {\n\t if (src.length > 1) {\n\t src = '(?:' + src + ')';\n\t }\n\t if (opt) {\n\t src += '?';\n\t }\n\t return src;\n\t}\n\t\n\tmodule.exports = getRegNonCapturing;\n\n/***/ },\n/* 72 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction getArrayWithOffset(arr, n, alternate, offset) {\n\t var val;\n\t if (alternate > 1) {\n\t val = arr[n + (alternate - 1) * offset];\n\t }\n\t return val || arr[n];\n\t}\n\t\n\tmodule.exports = getArrayWithOffset;\n\n/***/ },\n/* 73 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnits = __webpack_require__(74),\n\t DateUnitIndexes = __webpack_require__(82),\n\t isUndefined = __webpack_require__(68);\n\t\n\tvar YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\t\n\tfunction iterateOverDateUnits(fn, startIndex, endIndex) {\n\t endIndex = endIndex || 0;\n\t if (isUndefined(startIndex)) {\n\t startIndex = YEAR_INDEX;\n\t }\n\t for (var index = startIndex; index >= endIndex; index--) {\n\t if (fn(DateUnits[index], index) === false) {\n\t break;\n\t }\n\t }\n\t}\n\t\n\tmodule.exports = iterateOverDateUnits;\n\n/***/ },\n/* 74 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getDaysInMonth = __webpack_require__(75);\n\t\n\tvar DateUnits = [\n\t {\n\t name: 'millisecond',\n\t method: 'Milliseconds',\n\t multiplier: 1,\n\t start: 0,\n\t end: 999\n\t },\n\t {\n\t name: 'second',\n\t method: 'Seconds',\n\t multiplier: 1000,\n\t start: 0,\n\t end: 59\n\t },\n\t {\n\t name: 'minute',\n\t method: 'Minutes',\n\t multiplier: 60 * 1000,\n\t start: 0,\n\t end: 59\n\t },\n\t {\n\t name: 'hour',\n\t method: 'Hours',\n\t multiplier: 60 * 60 * 1000,\n\t start: 0,\n\t end: 23\n\t },\n\t {\n\t name: 'day',\n\t alias: 'date',\n\t method: 'Date',\n\t ambiguous: true,\n\t multiplier: 24 * 60 * 60 * 1000,\n\t start: 1,\n\t end: function(d) {\n\t return getDaysInMonth(d);\n\t }\n\t },\n\t {\n\t name: 'week',\n\t method: 'ISOWeek',\n\t ambiguous: true,\n\t multiplier: 7 * 24 * 60 * 60 * 1000\n\t },\n\t {\n\t name: 'month',\n\t method: 'Month',\n\t ambiguous: true,\n\t multiplier: 30.4375 * 24 * 60 * 60 * 1000,\n\t start: 0,\n\t end: 11\n\t },\n\t {\n\t name: 'year',\n\t method: 'FullYear',\n\t ambiguous: true,\n\t multiplier: 365.25 * 24 * 60 * 60 * 1000,\n\t start: 0\n\t }\n\t];\n\t\n\tmodule.exports = DateUnits;\n\n/***/ },\n/* 75 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getYear = __webpack_require__(76),\n\t getMonth = __webpack_require__(81),\n\t callDateGet = __webpack_require__(77);\n\t\n\tfunction getDaysInMonth(d) {\n\t return 32 - callDateGet(new Date(getYear(d), getMonth(d), 32), 'Date');\n\t}\n\t\n\tmodule.exports = getDaysInMonth;\n\n/***/ },\n/* 76 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateGet = __webpack_require__(77);\n\t\n\tfunction getYear(d) {\n\t return callDateGet(d, 'FullYear');\n\t}\n\t\n\tmodule.exports = getYear;\n\n/***/ },\n/* 77 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _utc = __webpack_require__(78);\n\t\n\tfunction callDateGet(d, method) {\n\t return d['get' + (_utc(d) ? 'UTC' : '') + method]();\n\t}\n\t\n\tmodule.exports = callDateGet;\n\n/***/ },\n/* 78 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar privatePropertyAccessor = __webpack_require__(79);\n\t\n\tmodule.exports = privatePropertyAccessor('utc');\n\n/***/ },\n/* 79 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar PRIVATE_PROP_PREFIX = __webpack_require__(80),\n\t coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar setProperty = coreUtilityAliases.setProperty;\n\t\n\tfunction privatePropertyAccessor(key) {\n\t var privateKey = PRIVATE_PROP_PREFIX + key;\n\t return function(obj, val) {\n\t if (arguments.length > 1) {\n\t setProperty(obj, privateKey, val);\n\t return obj;\n\t }\n\t return obj[privateKey];\n\t };\n\t}\n\t\n\tmodule.exports = privatePropertyAccessor;\n\n/***/ },\n/* 80 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = '_sugar_';\n\n/***/ },\n/* 81 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateGet = __webpack_require__(77);\n\t\n\tfunction getMonth(d) {\n\t return callDateGet(d, 'Month');\n\t}\n\t\n\tmodule.exports = getMonth;\n\n/***/ },\n/* 82 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = {\n\t HOURS_INDEX: 3,\n\t DAY_INDEX: 4,\n\t WEEK_INDEX: 5,\n\t MONTH_INDEX: 6,\n\t YEAR_INDEX: 7\n\t};\n\n/***/ },\n/* 83 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar map = __webpack_require__(51),\n\t escapeRegExp = __webpack_require__(84);\n\t\n\tfunction arrayToRegAlternates(arr) {\n\t var joined = arr.join('');\n\t if (!arr || !arr.length) {\n\t return '';\n\t }\n\t if (joined.length === arr.length) {\n\t return '[' + joined + ']';\n\t }\n\t // map handles sparse arrays so no need to compact the array here.\n\t return map(arr, escapeRegExp).join('|');\n\t}\n\t\n\tmodule.exports = arrayToRegAlternates;\n\n/***/ },\n/* 84 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60);\n\t\n\tvar isString = classChecks.isString;\n\t\n\tfunction escapeRegExp(str) {\n\t if (!isString(str)) str = String(str);\n\t return str.replace(/([\\\\\\/\\'*+?|()\\[\\]{}.^$-])/g,'\\\\$1');\n\t}\n\t\n\tmodule.exports = escapeRegExp;\n\n/***/ },\n/* 85 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar CommonChars = __webpack_require__(59),\n\t chr = __webpack_require__(86),\n\t allCharsReg = __webpack_require__(87);\n\t\n\tvar HALF_WIDTH_ZERO = CommonChars.HALF_WIDTH_ZERO,\n\t FULL_WIDTH_ZERO = CommonChars.FULL_WIDTH_ZERO,\n\t HALF_WIDTH_PERIOD = CommonChars.HALF_WIDTH_PERIOD,\n\t FULL_WIDTH_PERIOD = CommonChars.FULL_WIDTH_PERIOD,\n\t HALF_WIDTH_COMMA = CommonChars.HALF_WIDTH_COMMA;\n\t\n\tvar fullWidthNumberReg, fullWidthNumberMap, fullWidthNumbers;\n\t\n\tfunction buildFullWidthNumber() {\n\t var fwp = FULL_WIDTH_PERIOD, hwp = HALF_WIDTH_PERIOD, hwc = HALF_WIDTH_COMMA, fwn = '';\n\t fullWidthNumberMap = {};\n\t for (var i = 0, digit; i <= 9; i++) {\n\t digit = chr(i + FULL_WIDTH_ZERO);\n\t fwn += digit;\n\t fullWidthNumberMap[digit] = chr(i + HALF_WIDTH_ZERO);\n\t }\n\t fullWidthNumberMap[hwc] = '';\n\t fullWidthNumberMap[fwp] = hwp;\n\t // Mapping this to itself to capture it easily\n\t // in stringToNumber to detect decimals later.\n\t fullWidthNumberMap[hwp] = hwp;\n\t fullWidthNumberReg = allCharsReg(fwn + fwp + hwc + hwp);\n\t fullWidthNumbers = fwn;\n\t}\n\t\n\tbuildFullWidthNumber();\n\t\n\tmodule.exports = {\n\t fullWidthNumberReg: fullWidthNumberReg,\n\t fullWidthNumberMap: fullWidthNumberMap,\n\t fullWidthNumbers: fullWidthNumbers\n\t};\n\n/***/ },\n/* 86 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = String.fromCharCode;\n\n/***/ },\n/* 87 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction allCharsReg(src) {\n\t return RegExp('[' + src + ']', 'g');\n\t}\n\t\n\tmodule.exports = allCharsReg;\n\n/***/ },\n/* 88 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar trunc = __webpack_require__(89),\n\t withPrecision = __webpack_require__(90),\n\t getAdjustedUnit = __webpack_require__(91);\n\t\n\tfunction getAdjustedUnitForNumber(ms) {\n\t return getAdjustedUnit(ms, function(unit) {\n\t return trunc(withPrecision(ms / unit.multiplier, 1));\n\t });\n\t}\n\t\n\tmodule.exports = getAdjustedUnitForNumber;\n\n/***/ },\n/* 89 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar mathAliases = __webpack_require__(69);\n\t\n\tvar ceil = mathAliases.ceil,\n\t floor = mathAliases.floor;\n\t\n\tvar trunc = Math.trunc || function(n) {\n\t if (n === 0 || !isFinite(n)) return n;\n\t return n < 0 ? ceil(n) : floor(n);\n\t};\n\t\n\tmodule.exports = trunc;\n\n/***/ },\n/* 90 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar mathAliases = __webpack_require__(69);\n\t\n\tvar abs = mathAliases.abs,\n\t pow = mathAliases.pow,\n\t round = mathAliases.round;\n\t\n\tfunction withPrecision(val, precision, fn) {\n\t var multiplier = pow(10, abs(precision || 0));\n\t fn = fn || round;\n\t if (precision < 0) multiplier = 1 / multiplier;\n\t return fn(val * multiplier) / multiplier;\n\t}\n\t\n\tmodule.exports = withPrecision;\n\n/***/ },\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar mathAliases = __webpack_require__(69),\n\t iterateOverDateUnits = __webpack_require__(73);\n\t\n\tvar abs = mathAliases.abs;\n\t\n\tfunction getAdjustedUnit(ms, fn) {\n\t var unitIndex = 0, value = 0;\n\t iterateOverDateUnits(function(unit, i) {\n\t value = abs(fn(unit));\n\t if (value >= 1) {\n\t unitIndex = i;\n\t return false;\n\t }\n\t });\n\t return [value, unitIndex, ms];\n\t}\n\t\n\tmodule.exports = getAdjustedUnit;\n\n/***/ },\n/* 92 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocalizedParsingTokens = __webpack_require__(50),\n\t getRegNonCapturing = __webpack_require__(71);\n\t\n\tfunction getParsingTokenWithSuffix(field, src, suffix) {\n\t var token = LocalizedParsingTokens[field];\n\t if (token.requiresSuffix) {\n\t src = getRegNonCapturing(src + getRegNonCapturing(suffix));\n\t } else if (token.requiresSuffixOr) {\n\t src += getRegNonCapturing(token.requiresSuffixOr + '|' + suffix);\n\t } else {\n\t src += getRegNonCapturing(suffix, true);\n\t }\n\t return src;\n\t}\n\t\n\tmodule.exports = getParsingTokenWithSuffix;\n\n/***/ },\n/* 93 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t createDate = __webpack_require__(94);\n\t\n\t__webpack_require__(136);\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'create': function(d, options) {\n\t return createDate(d, options);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.create;\n\n/***/ },\n/* 94 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getExtendedDate = __webpack_require__(95);\n\t\n\tfunction createDate(d, options, forceClone) {\n\t return getExtendedDate(null, d, options, forceClone).date;\n\t}\n\t\n\tmodule.exports = createDate;\n\n/***/ },\n/* 95 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar MINUTES = __webpack_require__(96),\n\t ParsingTokens = __webpack_require__(48),\n\t LocaleHelpers = __webpack_require__(35),\n\t DateUnitIndexes = __webpack_require__(82),\n\t _utc = __webpack_require__(78),\n\t trunc = __webpack_require__(89),\n\t forEach = __webpack_require__(53),\n\t tzOffset = __webpack_require__(97),\n\t resetTime = __webpack_require__(98),\n\t isDefined = __webpack_require__(57),\n\t setWeekday = __webpack_require__(103),\n\t updateDate = __webpack_require__(107),\n\t getNewDate = __webpack_require__(108),\n\t isUndefined = __webpack_require__(68),\n\t classChecks = __webpack_require__(60),\n\t advanceDate = __webpack_require__(128),\n\t simpleClone = __webpack_require__(42),\n\t isObjectType = __webpack_require__(65),\n\t moveToEndOfUnit = __webpack_require__(129),\n\t deleteDateParam = __webpack_require__(131),\n\t coreUtilityAliases = __webpack_require__(41),\n\t getParsingTokenValue = __webpack_require__(132),\n\t moveToBeginningOfUnit = __webpack_require__(133),\n\t iterateOverDateParams = __webpack_require__(124),\n\t getYearFromAbbreviation = __webpack_require__(134),\n\t iterateOverHigherDateParams = __webpack_require__(135);\n\t\n\tvar isNumber = classChecks.isNumber,\n\t isString = classChecks.isString,\n\t isDate = classChecks.isDate,\n\t hasOwn = coreUtilityAliases.hasOwn,\n\t getOwn = coreUtilityAliases.getOwn,\n\t English = LocaleHelpers.English,\n\t localeManager = LocaleHelpers.localeManager,\n\t DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n\t WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n\t MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,\n\t YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\t\n\tfunction getExtendedDate(contextDate, d, opt, forceClone) {\n\t\n\t var date, set, loc, options, afterCallbacks, relative, weekdayDir;\n\t\n\t afterCallbacks = [];\n\t options = getDateOptions(opt);\n\t\n\t function getDateOptions(opt) {\n\t var options = isString(opt) ? { locale: opt } : opt || {};\n\t options.prefer = +!!getOwn(options, 'future') - +!!getOwn(options, 'past');\n\t return options;\n\t }\n\t\n\t function getFormatParams(match, dif) {\n\t var set = getOwn(options, 'params') || {};\n\t forEach(dif.to, function(field, i) {\n\t var str = match[i + 1], token, val;\n\t if (!str) return;\n\t if (field === 'yy' || field === 'y') {\n\t field = 'year';\n\t val = getYearFromAbbreviation(str, date, getOwn(options, 'prefer'));\n\t } else if (token = getOwn(ParsingTokens, field)) {\n\t field = token.param || field;\n\t val = getParsingTokenValue(token, str);\n\t } else {\n\t val = loc.getTokenValue(field, str);\n\t }\n\t set[field] = val;\n\t });\n\t return set;\n\t }\n\t\n\t // Clone date will set the utc flag, but it will\n\t // be overriden later, so set option flags instead.\n\t function cloneDateByFlag(d, clone) {\n\t if (_utc(d) && !isDefined(getOwn(options, 'fromUTC'))) {\n\t options.fromUTC = true;\n\t }\n\t if (_utc(d) && !isDefined(getOwn(options, 'setUTC'))) {\n\t options.setUTC = true;\n\t }\n\t if (clone) {\n\t d = new Date(d.getTime());\n\t }\n\t return d;\n\t }\n\t\n\t function afterDateSet(fn) {\n\t afterCallbacks.push(fn);\n\t }\n\t\n\t function fireCallbacks() {\n\t forEach(afterCallbacks, function(fn) {\n\t fn.call();\n\t });\n\t }\n\t\n\t function parseStringDate(str) {\n\t\n\t str = str.toLowerCase();\n\t\n\t // The act of getting the locale will initialize\n\t // if it is missing and add the required formats.\n\t loc = localeManager.get(getOwn(options, 'locale'));\n\t\n\t for (var i = 0, dif, match; dif = loc.compiledFormats[i]; i++) {\n\t match = str.match(dif.reg);\n\t if (match) {\n\t\n\t // Note that caching the format will modify the compiledFormats array\n\t // which is not a good idea to do inside its for loop, however we\n\t // know at this point that we have a matched format and that we will\n\t // break out below, so simpler to do it here.\n\t loc.cacheFormat(dif, i);\n\t\n\t set = getFormatParams(match, dif);\n\t\n\t if (isDefined(set.timestamp)) {\n\t str = set.timestamp;\n\t set = null;\n\t break;\n\t }\n\t\n\t if (isDefined(set.ampm)) {\n\t handleAmpm(set.ampm);\n\t }\n\t\n\t if (set.utc || isDefined(set.tzHour)) {\n\t handleTimezoneOffset(set.tzHour, set.tzMinute, set.tzSign);\n\t }\n\t\n\t if (isDefined(set.shift) && isUndefined(set.unit)) {\n\t // \"next january\", \"next monday\", etc\n\t handleUnitlessShift();\n\t }\n\t\n\t if (isDefined(set.num) && isUndefined(set.unit)) {\n\t // \"the second of January\", etc\n\t handleUnitlessNum(set.num);\n\t }\n\t\n\t if (set.midday) {\n\t // \"noon\" and \"midnight\"\n\t handleMidday(set.midday);\n\t }\n\t\n\t if (isDefined(set.day)) {\n\t // Relative day localizations such as \"today\" and \"tomorrow\".\n\t handleRelativeDay(set.day);\n\t }\n\t\n\t if (isDefined(set.unit)) {\n\t // \"3 days ago\", etc\n\t handleRelativeUnit(set.unit);\n\t }\n\t\n\t if (set.edge) {\n\t // \"the end of January\", etc\n\t handleEdge(set.edge, set);\n\t }\n\t\n\t if (set.yearSign) {\n\t set.year *= set.yearSign;\n\t }\n\t\n\t break;\n\t }\n\t }\n\t\n\t if (!set) {\n\t // Fall back to native parsing\n\t date = new Date(str);\n\t if (getOwn(options, 'fromUTC')) {\n\t // Falling back to system date here which cannot be parsed as UTC,\n\t // so if we're forcing UTC then simply add the offset.\n\t date.setTime(date.getTime() + (tzOffset(date) * MINUTES));\n\t }\n\t } else if (relative) {\n\t updateDate(date, set, false, 1);\n\t } else {\n\t if (_utc(date)) {\n\t // UTC times can traverse into other days or even months,\n\t // so preemtively reset the time here to prevent this.\n\t resetTime(date);\n\t }\n\t updateDate(date, set, true, 0, getOwn(options, 'prefer'), weekdayDir);\n\t }\n\t fireCallbacks();\n\t return date;\n\t }\n\t\n\t function handleAmpm(ampm) {\n\t if (ampm === 1 && set.hour < 12) {\n\t // If the time is 1pm-11pm advance the time by 12 hours.\n\t set.hour += 12;\n\t } else if (ampm === 0 && set.hour === 12) {\n\t // If it is 12:00am then set the hour to 0.\n\t set.hour = 0;\n\t }\n\t }\n\t\n\t function handleTimezoneOffset(tzHour, tzMinute, tzSign) {\n\t // Adjust for timezone offset\n\t _utc(date, true);\n\t var offset = (tzSign || 1) * ((tzHour || 0) * 60 + (tzMinute || 0));\n\t if (offset) {\n\t set.minute = (set.minute || 0) - offset;\n\t }\n\t }\n\t\n\t function handleUnitlessShift() {\n\t if (isDefined(set.month)) {\n\t // \"next January\"\n\t set.unit = YEAR_INDEX;\n\t } else if (isDefined(set.weekday)) {\n\t // \"next Monday\"\n\t set.unit = WEEK_INDEX;\n\t }\n\t }\n\t\n\t function handleUnitlessNum(num) {\n\t if (isDefined(set.weekday)) {\n\t // \"The second Tuesday of March\"\n\t setOrdinalWeekday(num);\n\t } else if (isDefined(set.month)) {\n\t // \"The second of March\"\n\t set.date = set.num;\n\t }\n\t }\n\t\n\t function handleMidday(hour) {\n\t set.hour = hour % 24;\n\t if (hour > 23) {\n\t // If the date has hours past 24, we need to prevent it from traversing\n\t // into a new day as that would make it being part of a new week in\n\t // ambiguous dates such as \"Monday\".\n\t afterDateSet(function() {\n\t advanceDate(date, 'date', trunc(hour / 24));\n\t });\n\t }\n\t }\n\t\n\t function handleRelativeDay() {\n\t resetTime(date);\n\t if (isUndefined(set.unit)) {\n\t set.unit = DAY_INDEX;\n\t set.num = set.day;\n\t delete set.day;\n\t }\n\t }\n\t\n\t function handleRelativeUnit(unitIndex) {\n\t var num = isDefined(set.num) ? set.num : 1;\n\t\n\t // If a weekday is defined, there are 3 possible formats being applied:\n\t //\n\t // 1. \"the day after monday\": unit is days\n\t // 2. \"next monday\": short for \"next week monday\", unit is weeks\n\t // 3. \"the 2nd monday of next month\": unit is months\n\t //\n\t // In the first case, we need to set the weekday up front, as the day is\n\t // relative to it. The second case also needs to be handled up front for\n\t // formats like \"next monday at midnight\" which will have its weekday reset\n\t // if not set up front. The last case will set up the params necessary to\n\t // shift the weekday and allow separateAbsoluteUnits below to handle setting\n\t // it after the date has been shifted.\n\t if(isDefined(set.weekday)) {\n\t if(unitIndex === MONTH_INDEX) {\n\t setOrdinalWeekday(num);\n\t num = 1;\n\t } else {\n\t updateDate(date, { weekday: set.weekday }, true);\n\t delete set.weekday;\n\t }\n\t }\n\t\n\t if (set.half) {\n\t // Allow localized \"half\" as a standalone colloquialism. Purposely avoiding\n\t // the locale number system to reduce complexity. The units \"month\" and\n\t // \"week\" are purposely excluded in the English date formats below, as\n\t // \"half a week\" and \"half a month\" are meaningless as exact dates.\n\t num *= set.half;\n\t }\n\t\n\t if (isDefined(set.shift)) {\n\t // Shift and unit, ie \"next month\", \"last week\", etc.\n\t num *= set.shift;\n\t } else if (set.sign) {\n\t // Unit and sign, ie \"months ago\", \"weeks from now\", etc.\n\t num *= set.sign;\n\t }\n\t\n\t if (isDefined(set.day)) {\n\t // \"the day after tomorrow\"\n\t num += set.day;\n\t delete set.day;\n\t }\n\t\n\t // Formats like \"the 15th of last month\" or \"6:30pm of next week\"\n\t // contain absolute units in addition to relative ones, so separate\n\t // them here, remove them from the params, and set up a callback to\n\t // set them after the relative ones have been set.\n\t separateAbsoluteUnits(unitIndex);\n\t\n\t // Finally shift the unit.\n\t set[English.units[unitIndex]] = num;\n\t relative = true;\n\t }\n\t\n\t function handleEdge(edge, params) {\n\t var edgeIndex = params.unit, weekdayOfMonth;\n\t if (!edgeIndex) {\n\t // If we have \"the end of January\", then we need to find the unit index.\n\t iterateOverHigherDateParams(params, function(unitName, val, unit, i) {\n\t if (unitName === 'weekday' && isDefined(params.month)) {\n\t // If both a month and weekday exist, then we have a format like\n\t // \"the last tuesday in November, 2012\", where the \"last\" is still\n\t // relative to the end of the month, so prevent the unit \"weekday\"\n\t // from taking over.\n\t return;\n\t }\n\t edgeIndex = i;\n\t });\n\t }\n\t if (edgeIndex === MONTH_INDEX && isDefined(params.weekday)) {\n\t // If a weekday in a month exists (as described above),\n\t // then set it up to be set after the date has been shifted.\n\t weekdayOfMonth = params.weekday;\n\t delete params.weekday;\n\t }\n\t afterDateSet(function() {\n\t var stopIndex;\n\t // \"edge\" values that are at the very edge are \"2\" so the beginning of the\n\t // year is -2 and the end of the year is 2. Conversely, the \"last day\" is\n\t // actually 00:00am so it is 1. -1 is reserved but unused for now.\n\t if (edge < 0) {\n\t moveToBeginningOfUnit(date, edgeIndex, getOwn(options, 'locale'));\n\t } else if (edge > 0) {\n\t if (edge === 1) {\n\t stopIndex = DAY_INDEX;\n\t moveToBeginningOfUnit(date, DAY_INDEX);\n\t }\n\t moveToEndOfUnit(date, edgeIndex, getOwn(options, 'locale'), stopIndex);\n\t }\n\t if (isDefined(weekdayOfMonth)) {\n\t setWeekday(date, weekdayOfMonth, -edge);\n\t resetTime(date);\n\t }\n\t });\n\t if (edgeIndex === MONTH_INDEX) {\n\t params.specificity = DAY_INDEX;\n\t } else {\n\t params.specificity = edgeIndex - 1;\n\t }\n\t }\n\t\n\t function setOrdinalWeekday(num) {\n\t // If we have \"the 2nd Tuesday of June\", then pass the \"weekdayDir\"\n\t // flag along to updateDate so that the date does not accidentally traverse\n\t // into the previous month. This needs to be independent of the \"prefer\"\n\t // flag because we are only ensuring that the weekday is in the future, not\n\t // the entire date.\n\t set.weekday = 7 * (num - 1) + set.weekday;\n\t set.date = 1;\n\t weekdayDir = 1;\n\t }\n\t\n\t function separateAbsoluteUnits(unitIndex) {\n\t var params;\n\t\n\t iterateOverDateParams(set, function(name, val, unit, i) {\n\t // If there is a time unit set that is more specific than\n\t // the matched unit we have a string like \"5:30am in 2 minutes\",\n\t // which is meaningless, so invalidate the date...\n\t if (i >= unitIndex) {\n\t date.setTime(NaN);\n\t return false;\n\t } else if (i < unitIndex) {\n\t // ...otherwise set the params to set the absolute date\n\t // as a callback after the relative date has been set.\n\t params = params || {};\n\t params[name] = val;\n\t deleteDateParam(set, name);\n\t }\n\t });\n\t if (params) {\n\t afterDateSet(function() {\n\t updateDate(date, params, true, false, getOwn(options, 'prefer'), weekdayDir);\n\t });\n\t if (set.edge) {\n\t // \"the end of March of next year\"\n\t handleEdge(set.edge, params);\n\t delete set.edge;\n\t }\n\t }\n\t }\n\t\n\t if (contextDate && d) {\n\t // If a context date is passed (\"get\" and \"unitsFromNow\"),\n\t // then use it as the starting point.\n\t date = cloneDateByFlag(contextDate, true);\n\t } else {\n\t date = getNewDate();\n\t }\n\t\n\t _utc(date, getOwn(options, 'fromUTC'));\n\t\n\t if (isString(d)) {\n\t date = parseStringDate(d);\n\t } else if (isDate(d)) {\n\t date = cloneDateByFlag(d, hasOwn(options, 'clone') || forceClone);\n\t } else if (isObjectType(d)) {\n\t set = simpleClone(d);\n\t updateDate(date, set, true);\n\t } else if (isNumber(d) || d === null) {\n\t date.setTime(d);\n\t }\n\t // A date created by parsing a string presumes that the format *itself* is\n\t // UTC, but not that the date, once created, should be manipulated as such. In\n\t // other words, if you are creating a date object from a server time\n\t // \"2012-11-15T12:00:00Z\", in the majority of cases you are using it to create\n\t // a date that will, after creation, be manipulated as local, so reset the utc\n\t // flag here unless \"setUTC\" is also set.\n\t _utc(date, !!getOwn(options, 'setUTC'));\n\t return {\n\t set: set,\n\t date: date\n\t };\n\t}\n\t\n\tmodule.exports = getExtendedDate;\n\n/***/ },\n/* 96 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = 60 * 1000;\n\n/***/ },\n/* 97 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction tzOffset(d) {\n\t return d.getTimezoneOffset();\n\t}\n\t\n\tmodule.exports = tzOffset;\n\n/***/ },\n/* 98 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82),\n\t setUnitAndLowerToEdge = __webpack_require__(99);\n\t\n\tvar HOURS_INDEX = DateUnitIndexes.HOURS_INDEX;\n\t\n\tfunction resetTime(d) {\n\t return setUnitAndLowerToEdge(d, HOURS_INDEX);\n\t}\n\t\n\tmodule.exports = resetTime;\n\n/***/ },\n/* 99 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar isDefined = __webpack_require__(57),\n\t classChecks = __webpack_require__(60),\n\t callDateSet = __webpack_require__(100),\n\t walkUnitDown = __webpack_require__(101);\n\t\n\tvar isFunction = classChecks.isFunction;\n\t\n\tfunction setUnitAndLowerToEdge(d, startIndex, stopIndex, end) {\n\t walkUnitDown(startIndex, function(unit, i) {\n\t var val = end ? unit.end : unit.start;\n\t if (isFunction(val)) {\n\t val = val(d);\n\t }\n\t callDateSet(d, unit.method, val);\n\t return !isDefined(stopIndex) || i > stopIndex;\n\t });\n\t return d;\n\t}\n\t\n\tmodule.exports = setUnitAndLowerToEdge;\n\n/***/ },\n/* 100 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _utc = __webpack_require__(78),\n\t callDateGet = __webpack_require__(77);\n\t\n\tfunction callDateSet(d, method, value, safe) {\n\t // \"Safe\" denotes not setting the date if the value is the same as what is\n\t // currently set. In theory this should be a noop, however it will cause\n\t // timezone shifts when in the middle of a DST fallback. This is unavoidable\n\t // as the notation itself is ambiguous (i.e. there are two \"1:00ams\" on\n\t // November 1st, 2015 in northern hemisphere timezones that follow DST),\n\t // however when advancing or rewinding dates this can throw off calculations\n\t // so avoiding this unintentional shifting on an opt-in basis.\n\t if (safe && value === callDateGet(d, method, value)) {\n\t return;\n\t }\n\t d['set' + (_utc(d) ? 'UTC' : '') + method](value);\n\t}\n\t\n\tmodule.exports = callDateSet;\n\n/***/ },\n/* 101 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnits = __webpack_require__(74),\n\t getLowerUnitIndex = __webpack_require__(102);\n\t\n\tfunction walkUnitDown(unitIndex, fn) {\n\t while (unitIndex >= 0) {\n\t if (fn(DateUnits[unitIndex], unitIndex) === false) {\n\t break;\n\t }\n\t unitIndex = getLowerUnitIndex(unitIndex);\n\t }\n\t}\n\t\n\tmodule.exports = walkUnitDown;\n\n/***/ },\n/* 102 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82);\n\t\n\tvar HOURS_INDEX = DateUnitIndexes.HOURS_INDEX,\n\t DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n\t WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n\t MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\t\n\tfunction getLowerUnitIndex(index) {\n\t if (index === MONTH_INDEX) {\n\t return DAY_INDEX;\n\t } else if (index === WEEK_INDEX) {\n\t return HOURS_INDEX;\n\t }\n\t return index - 1;\n\t}\n\t\n\tmodule.exports = getLowerUnitIndex;\n\n/***/ },\n/* 103 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar setDate = __webpack_require__(104),\n\t getDate = __webpack_require__(105),\n\t getWeekday = __webpack_require__(106),\n\t classChecks = __webpack_require__(60),\n\t mathAliases = __webpack_require__(69);\n\t\n\tvar isNumber = classChecks.isNumber,\n\t abs = mathAliases.abs;\n\t\n\tfunction setWeekday(d, dow, dir) {\n\t if (!isNumber(dow)) return;\n\t var currentWeekday = getWeekday(d);\n\t if (dir) {\n\t // Allow a \"direction\" parameter to determine whether a weekday can\n\t // be set beyond the current weekday in either direction.\n\t var ndir = dir > 0 ? 1 : -1;\n\t var offset = dow % 7 - currentWeekday;\n\t if (offset && offset / abs(offset) !== ndir) {\n\t dow += 7 * ndir;\n\t }\n\t }\n\t setDate(d, getDate(d) + dow - currentWeekday);\n\t return d.getTime();\n\t}\n\t\n\tmodule.exports = setWeekday;\n\n/***/ },\n/* 104 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateSet = __webpack_require__(100);\n\t\n\tfunction setDate(d, val) {\n\t callDateSet(d, 'Date', val);\n\t}\n\t\n\tmodule.exports = setDate;\n\n/***/ },\n/* 105 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateGet = __webpack_require__(77);\n\t\n\tfunction getDate(d) {\n\t return callDateGet(d, 'Date');\n\t}\n\t\n\tmodule.exports = getDate;\n\n/***/ },\n/* 106 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateGet = __webpack_require__(77);\n\t\n\tfunction getWeekday(d) {\n\t return callDateGet(d, 'Day');\n\t}\n\t\n\tmodule.exports = getWeekday;\n\n/***/ },\n/* 107 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnits = __webpack_require__(74),\n\t DateUnitIndexes = __webpack_require__(82),\n\t trunc = __webpack_require__(89),\n\t setDate = __webpack_require__(104),\n\t getDate = __webpack_require__(105),\n\t getMonth = __webpack_require__(81),\n\t getNewDate = __webpack_require__(108),\n\t setWeekday = __webpack_require__(103),\n\t mathAliases = __webpack_require__(69),\n\t callDateGet = __webpack_require__(77),\n\t classChecks = __webpack_require__(60),\n\t resetLowerUnits = __webpack_require__(115),\n\t getLowerUnitIndex = __webpack_require__(102),\n\t getHigherUnitIndex = __webpack_require__(116),\n\t callDateSetWithWeek = __webpack_require__(117),\n\t iterateOverDateParams = __webpack_require__(124);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n\t WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n\t MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,\n\t YEAR_INDEX = DateUnitIndexes.YEAR_INDEX,\n\t round = mathAliases.round,\n\t isNumber = classChecks.isNumber;\n\t\n\tfunction updateDate(d, params, reset, advance, prefer, weekdayDir) {\n\t var upperUnitIndex;\n\t\n\t function setUpperUnit(unitName, unitIndex) {\n\t if (prefer && !upperUnitIndex) {\n\t if (unitName === 'weekday') {\n\t upperUnitIndex = WEEK_INDEX;\n\t } else {\n\t upperUnitIndex = getHigherUnitIndex(unitIndex);\n\t }\n\t }\n\t }\n\t\n\t function setSpecificity(unitIndex) {\n\t // Other functions may preemptively set the specificity before arriving\n\t // here so concede to them if they have already set more specific units.\n\t if (unitIndex > params.specificity) {\n\t return;\n\t }\n\t params.specificity = unitIndex;\n\t }\n\t\n\t function canDisambiguate() {\n\t if (!upperUnitIndex || upperUnitIndex > YEAR_INDEX) {\n\t return;\n\t }\n\t switch(prefer) {\n\t case -1: return d > getNewDate();\n\t case 1: return d < getNewDate();\n\t }\n\t }\n\t\n\t function disambiguateHigherUnit() {\n\t var unit = DateUnits[upperUnitIndex];\n\t advance = prefer;\n\t setUnit(unit.name, 1, unit, upperUnitIndex);\n\t }\n\t\n\t function handleFraction(unit, unitIndex, fraction) {\n\t if (unitIndex) {\n\t var lowerUnit = DateUnits[getLowerUnitIndex(unitIndex)];\n\t var val = round(unit.multiplier / lowerUnit.multiplier * fraction);\n\t params[lowerUnit.name] = val;\n\t }\n\t }\n\t\n\t function monthHasShifted(d, targetMonth) {\n\t if (targetMonth < 0) {\n\t targetMonth = targetMonth % 12 + 12;\n\t }\n\t return targetMonth % 12 !== getMonth(d);\n\t }\n\t\n\t function setUnit(unitName, value, unit, unitIndex) {\n\t var method = unit.method, checkMonth, fraction;\n\t\n\t setUpperUnit(unitName, unitIndex);\n\t setSpecificity(unitIndex);\n\t\n\t fraction = value % 1;\n\t if (fraction) {\n\t handleFraction(unit, unitIndex, fraction);\n\t value = trunc(value);\n\t }\n\t\n\t if (unitName === 'weekday') {\n\t if (!advance) {\n\t // Weekdays are always considered absolute units so simply set them\n\t // here even if it is an \"advance\" operation. This is to help avoid\n\t // ambiguous meanings in \"advance\" as well as to neatly allow formats\n\t // like \"Wednesday of next week\" without more complex logic.\n\t setWeekday(d, value, weekdayDir);\n\t }\n\t return;\n\t }\n\t checkMonth = unitIndex === MONTH_INDEX && getDate(d) > 28;\n\t\n\t // If we are advancing or rewinding, then we need we need to set the\n\t // absolute time if the unit is \"hours\" or less. This is due to the fact\n\t // that setting by method is ambiguous during DST shifts. For example,\n\t // 1:00am on November 1st 2015 occurs twice in North American timezones\n\t // with DST, the second time being after the clocks are rolled back at\n\t // 2:00am. When springing forward this is automatically handled as there\n\t // is no 2:00am so the date automatically jumps to 3:00am. However, when\n\t // rolling back, setHours(2) will always choose the first \"2am\" even if\n\t // the date is currently set to the second, causing unintended jumps.\n\t // This ambiguity is unavoidable when setting dates as the notation is\n\t // ambiguous. However when advancing, we clearly want the resulting date\n\t // to be an acutal hour ahead, which can only be accomplished by setting\n\t // the absolute time. Conversely, any unit higher than \"hours\" MUST use\n\t // the internal set methods, as they are ambiguous as absolute units of\n\t // time. Years may be 365 or 366 days depending on leap years, months are\n\t // all over the place, and even days may be 23-25 hours depending on DST\n\t // shifts. Finally, note that the kind of jumping described above will\n\t // occur when calling ANY \"set\" method on the date and will occur even if\n\t // the value being set is identical to the one currently set (i.e.\n\t // setHours(2) on a date at 2am may not be a noop). This is precarious,\n\t // so avoiding this situation in callDateSet by checking up front that\n\t // the value is not the same before setting.\n\t if (advance && !unit.ambiguous) {\n\t d.setTime(d.getTime() + (value * advance * unit.multiplier));\n\t return;\n\t } else if (advance) {\n\t if (unitIndex === WEEK_INDEX) {\n\t value *= 7;\n\t method = DateUnits[DAY_INDEX].method;\n\t }\n\t value = (value * advance) + callDateGet(d, method);\n\t }\n\t callDateSetWithWeek(d, method, value, advance);\n\t if (checkMonth && monthHasShifted(d, value)) {\n\t // As we are setting the units in reverse order, there is a chance that\n\t // our date may accidentally traverse into a new month, such as setting\n\t // { month: 1, date 15 } on January 31st. Check for this here and reset\n\t // the date to the last day of the previous month if this has happened.\n\t setDate(d, 0);\n\t }\n\t }\n\t\n\t if (isNumber(params) && advance) {\n\t // If param is a number and advancing, the number is in milliseconds.\n\t params = { millisecond: params };\n\t } else if (isNumber(params)) {\n\t // Otherwise just set the timestamp and return.\n\t d.setTime(params);\n\t return d;\n\t }\n\t\n\t iterateOverDateParams(params, setUnit);\n\t\n\t if (reset && params.specificity) {\n\t resetLowerUnits(d, params.specificity);\n\t }\n\t\n\t // If past or future is preferred, then the process of \"disambiguation\" will\n\t // ensure that an ambiguous time/date (\"4pm\", \"thursday\", \"June\", etc.) will\n\t // be in the past or future. Weeks are only considered ambiguous if there is\n\t // a weekday, i.e. \"thursday\" is an ambiguous week, but \"the 4th\" is an\n\t // ambiguous month.\n\t if (canDisambiguate()) {\n\t disambiguateHigherUnit();\n\t }\n\t return d;\n\t}\n\t\n\tmodule.exports = updateDate;\n\n/***/ },\n/* 108 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _dateOptions = __webpack_require__(109);\n\t\n\tfunction getNewDate() {\n\t return _dateOptions('newDateInternal')();\n\t}\n\t\n\tmodule.exports = getNewDate;\n\n/***/ },\n/* 109 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DATE_OPTIONS = __webpack_require__(110),\n\t namespaceAliases = __webpack_require__(112),\n\t defineOptionsAccessor = __webpack_require__(113);\n\t\n\tvar sugarDate = namespaceAliases.sugarDate;\n\t\n\tmodule.exports = defineOptionsAccessor(sugarDate, DATE_OPTIONS);\n\n/***/ },\n/* 110 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar defaultNewDate = __webpack_require__(111);\n\t\n\tvar DATE_OPTIONS = {\n\t 'newDateInternal': defaultNewDate\n\t};\n\t\n\tmodule.exports = DATE_OPTIONS;\n\n/***/ },\n/* 111 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction defaultNewDate() {\n\t return new Date;\n\t}\n\t\n\tmodule.exports = defaultNewDate;\n\n/***/ },\n/* 112 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\tmodule.exports = {\n\t sugarObject: Sugar.Object,\n\t sugarArray: Sugar.Array,\n\t sugarDate: Sugar.Date,\n\t sugarString: Sugar.String,\n\t sugarNumber: Sugar.Number,\n\t sugarFunction: Sugar.Function,\n\t sugarRegExp: Sugar.RegExp\n\t};\n\n/***/ },\n/* 113 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar simpleClone = __webpack_require__(42),\n\t defineAccessor = __webpack_require__(114);\n\t\n\tfunction defineOptionsAccessor(namespace, defaults) {\n\t var obj = simpleClone(defaults);\n\t\n\t function getOption(name) {\n\t return obj[name];\n\t }\n\t\n\t function setOption(name, val) {\n\t if (val === null) {\n\t val = defaults[name];\n\t }\n\t obj[name] = val;\n\t }\n\t\n\t defineAccessor(namespace, 'getOption', getOption);\n\t defineAccessor(namespace, 'setOption', setOption);\n\t return getOption;\n\t}\n\t\n\tmodule.exports = defineOptionsAccessor;\n\n/***/ },\n/* 114 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar setProperty = coreUtilityAliases.setProperty;\n\t\n\tfunction defineAccessor(namespace, name, fn) {\n\t setProperty(namespace, name, fn);\n\t}\n\t\n\tmodule.exports = defineAccessor;\n\n/***/ },\n/* 115 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getLowerUnitIndex = __webpack_require__(102),\n\t setUnitAndLowerToEdge = __webpack_require__(99);\n\t\n\tfunction resetLowerUnits(d, unitIndex) {\n\t return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex));\n\t}\n\t\n\tmodule.exports = resetLowerUnits;\n\n/***/ },\n/* 116 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n\t MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\t\n\tfunction getHigherUnitIndex(index) {\n\t return index === DAY_INDEX ? MONTH_INDEX : index + 1;\n\t}\n\t\n\tmodule.exports = getHigherUnitIndex;\n\n/***/ },\n/* 117 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateSet = __webpack_require__(100),\n\t setISOWeekNumber = __webpack_require__(118);\n\t\n\tfunction callDateSetWithWeek(d, method, value, safe) {\n\t if (method === 'ISOWeek') {\n\t setISOWeekNumber(d, value);\n\t } else {\n\t callDateSet(d, method, value, safe);\n\t }\n\t}\n\t\n\tmodule.exports = callDateSetWithWeek;\n\n/***/ },\n/* 118 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar ISODefaults = __webpack_require__(47),\n\t getDate = __webpack_require__(105),\n\t setDate = __webpack_require__(104),\n\t setYear = __webpack_require__(119),\n\t getYear = __webpack_require__(76),\n\t getMonth = __webpack_require__(81),\n\t setMonth = __webpack_require__(120),\n\t cloneDate = __webpack_require__(121),\n\t getWeekday = __webpack_require__(106),\n\t setWeekday = __webpack_require__(103),\n\t classChecks = __webpack_require__(60),\n\t moveToFirstDayOfWeekYear = __webpack_require__(122);\n\t\n\tvar isNumber = classChecks.isNumber,\n\t ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,\n\t ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR;\n\t\n\tfunction setISOWeekNumber(d, num) {\n\t if (isNumber(num)) {\n\t // Intentionally avoiding updateDate here to prevent circular dependencies.\n\t var isoWeek = cloneDate(d), dow = getWeekday(d);\n\t moveToFirstDayOfWeekYear(isoWeek, ISO_FIRST_DAY_OF_WEEK, ISO_FIRST_DAY_OF_WEEK_YEAR);\n\t setDate(isoWeek, getDate(isoWeek) + 7 * (num - 1));\n\t setYear(d, getYear(isoWeek));\n\t setMonth(d, getMonth(isoWeek));\n\t setDate(d, getDate(isoWeek));\n\t setWeekday(d, dow || 7);\n\t }\n\t return d.getTime();\n\t}\n\t\n\tmodule.exports = setISOWeekNumber;\n\n/***/ },\n/* 119 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateSet = __webpack_require__(100);\n\t\n\tfunction setYear(d, val) {\n\t callDateSet(d, 'FullYear', val);\n\t}\n\t\n\tmodule.exports = setYear;\n\n/***/ },\n/* 120 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateSet = __webpack_require__(100);\n\t\n\tfunction setMonth(d, val) {\n\t callDateSet(d, 'Month', val);\n\t}\n\t\n\tmodule.exports = setMonth;\n\n/***/ },\n/* 121 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _utc = __webpack_require__(78);\n\t\n\tfunction cloneDate(d) {\n\t // Rhino environments have a bug where new Date(d) truncates\n\t // milliseconds so need to call getTime() here.\n\t var clone = new Date(d.getTime());\n\t _utc(clone, !!_utc(d));\n\t return clone;\n\t}\n\t\n\tmodule.exports = cloneDate;\n\n/***/ },\n/* 122 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82),\n\t setDate = __webpack_require__(104),\n\t setUnitAndLowerToEdge = __webpack_require__(99),\n\t moveToBeginningOfWeek = __webpack_require__(123);\n\t\n\tvar MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\t\n\tfunction moveToFirstDayOfWeekYear(d, firstDayOfWeek, firstDayOfWeekYear) {\n\t setUnitAndLowerToEdge(d, MONTH_INDEX);\n\t setDate(d, firstDayOfWeekYear);\n\t moveToBeginningOfWeek(d, firstDayOfWeek);\n\t}\n\t\n\tmodule.exports = moveToFirstDayOfWeekYear;\n\n/***/ },\n/* 123 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar setWeekday = __webpack_require__(103),\n\t getWeekday = __webpack_require__(106),\n\t mathAliases = __webpack_require__(69);\n\t\n\tvar floor = mathAliases.floor;\n\t\n\tfunction moveToBeginningOfWeek(d, firstDayOfWeek) {\n\t setWeekday(d, floor((getWeekday(d) - firstDayOfWeek) / 7) * 7 + firstDayOfWeek);\n\t return d;\n\t}\n\t\n\tmodule.exports = moveToBeginningOfWeek;\n\n/***/ },\n/* 124 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82),\n\t isDefined = __webpack_require__(57),\n\t getDateParam = __webpack_require__(125),\n\t iterateOverDateUnits = __webpack_require__(73);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\t\n\tfunction iterateOverDateParams(params, fn, startIndex, endIndex) {\n\t\n\t function run(name, unit, i) {\n\t var val = getDateParam(params, name);\n\t if (isDefined(val)) {\n\t fn(name, val, unit, i);\n\t }\n\t }\n\t\n\t iterateOverDateUnits(function (unit, i) {\n\t var result = run(unit.name, unit, i);\n\t if (result !== false && i === DAY_INDEX) {\n\t // Check for \"weekday\", which has a distinct meaning\n\t // in the context of setting a date, but has the same\n\t // meaning as \"day\" as a unit of time.\n\t result = run('weekday', unit, i);\n\t }\n\t return result;\n\t }, startIndex, endIndex);\n\t\n\t}\n\t\n\tmodule.exports = iterateOverDateParams;\n\n/***/ },\n/* 125 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getDateParamKey = __webpack_require__(126),\n\t coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar getOwn = coreUtilityAliases.getOwn;\n\t\n\tfunction getDateParam(params, key) {\n\t return getOwn(params, getDateParamKey(params, key));\n\t}\n\t\n\tmodule.exports = getDateParam;\n\n/***/ },\n/* 126 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getOwnKey = __webpack_require__(127);\n\t\n\tfunction getDateParamKey(params, key) {\n\t return getOwnKey(params, key) ||\n\t getOwnKey(params, key + 's') ||\n\t (key === 'day' && getOwnKey(params, 'date'));\n\t}\n\t\n\tmodule.exports = getDateParamKey;\n\n/***/ },\n/* 127 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar hasOwn = coreUtilityAliases.hasOwn;\n\t\n\tfunction getOwnKey(obj, key) {\n\t if (hasOwn(obj, key)) {\n\t return key;\n\t }\n\t}\n\t\n\tmodule.exports = getOwnKey;\n\n/***/ },\n/* 128 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar updateDate = __webpack_require__(107);\n\t\n\tfunction advanceDate(d, unit, num, reset) {\n\t var set = {};\n\t set[unit] = num;\n\t return updateDate(d, set, reset, 1);\n\t}\n\t\n\tmodule.exports = advanceDate;\n\n/***/ },\n/* 129 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t DateUnitIndexes = __webpack_require__(82),\n\t moveToEndOfWeek = __webpack_require__(130),\n\t getLowerUnitIndex = __webpack_require__(102),\n\t setUnitAndLowerToEdge = __webpack_require__(99);\n\t\n\tvar WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n\t localeManager = LocaleHelpers.localeManager;\n\t\n\tfunction moveToEndOfUnit(d, unitIndex, localeCode, stopIndex) {\n\t if (unitIndex === WEEK_INDEX) {\n\t moveToEndOfWeek(d, localeManager.get(localeCode).getFirstDayOfWeek());\n\t }\n\t return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex), stopIndex, true);\n\t}\n\t\n\tmodule.exports = moveToEndOfUnit;\n\n/***/ },\n/* 130 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar setWeekday = __webpack_require__(103),\n\t getWeekday = __webpack_require__(106),\n\t mathAliases = __webpack_require__(69);\n\t\n\tvar ceil = mathAliases.ceil;\n\t\n\tfunction moveToEndOfWeek(d, firstDayOfWeek) {\n\t var target = firstDayOfWeek - 1;\n\t setWeekday(d, ceil((getWeekday(d) - target) / 7) * 7 + target);\n\t return d;\n\t}\n\t\n\tmodule.exports = moveToEndOfWeek;\n\n/***/ },\n/* 131 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getDateParamKey = __webpack_require__(126);\n\t\n\tfunction deleteDateParam(params, key) {\n\t delete params[getDateParamKey(params, key)];\n\t}\n\t\n\tmodule.exports = deleteDateParam;\n\n/***/ },\n/* 132 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction getParsingTokenValue(token, str) {\n\t var val;\n\t if (token.val) {\n\t val = token.val;\n\t } else if (token.sign) {\n\t val = str === '+' ? 1 : -1;\n\t } else if (token.bool) {\n\t val = !!val;\n\t } else {\n\t val = +str.replace(/,/, '.');\n\t }\n\t if (token.param === 'month') {\n\t val -= 1;\n\t }\n\t return val;\n\t}\n\t\n\tmodule.exports = getParsingTokenValue;\n\n/***/ },\n/* 133 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t DateUnitIndexes = __webpack_require__(82),\n\t getLowerUnitIndex = __webpack_require__(102),\n\t moveToBeginningOfWeek = __webpack_require__(123),\n\t setUnitAndLowerToEdge = __webpack_require__(99);\n\t\n\tvar WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n\t localeManager = LocaleHelpers.localeManager;\n\t\n\tfunction moveToBeginningOfUnit(d, unitIndex, localeCode) {\n\t if (unitIndex === WEEK_INDEX) {\n\t moveToBeginningOfWeek(d, localeManager.get(localeCode).getFirstDayOfWeek());\n\t }\n\t return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex));\n\t}\n\t\n\tmodule.exports = moveToBeginningOfUnit;\n\n/***/ },\n/* 134 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getYear = __webpack_require__(76),\n\t mathAliases = __webpack_require__(69);\n\t\n\tvar abs = mathAliases.abs;\n\t\n\tfunction getYearFromAbbreviation(str, d, prefer) {\n\t // Following IETF here, adding 1900 or 2000 depending on the last two digits.\n\t // Note that this makes no accordance for what should happen after 2050, but\n\t // intentionally ignoring this for now. https://www.ietf.org/rfc/rfc2822.txt\n\t var val = +str, delta;\n\t val += val < 50 ? 2000 : 1900;\n\t if (prefer) {\n\t delta = val - getYear(d);\n\t if (delta / abs(delta) !== prefer) {\n\t val += prefer * 100;\n\t }\n\t }\n\t return val;\n\t}\n\t\n\tmodule.exports = getYearFromAbbreviation;\n\n/***/ },\n/* 135 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82),\n\t iterateOverDateParams = __webpack_require__(124);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n\t YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\t\n\tfunction iterateOverHigherDateParams(params, fn) {\n\t iterateOverDateParams(params, fn, YEAR_INDEX, DAY_INDEX);\n\t}\n\t\n\tmodule.exports = iterateOverHigherDateParams;\n\n/***/ },\n/* 136 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar setDateChainableConstructor = __webpack_require__(137);\n\t\n\tsetDateChainableConstructor();\n\n/***/ },\n/* 137 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar createDate = __webpack_require__(94),\n\t namespaceAliases = __webpack_require__(112),\n\t setChainableConstructor = __webpack_require__(138);\n\t\n\tvar sugarDate = namespaceAliases.sugarDate;\n\t\n\tfunction setDateChainableConstructor() {\n\t setChainableConstructor(sugarDate, createDate);\n\t}\n\t\n\tmodule.exports = setDateChainableConstructor;\n\n/***/ },\n/* 138 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction setChainableConstructor(sugarNamespace, createFn) {\n\t sugarNamespace.prototype.constructor = function() {\n\t return createFn.apply(this, arguments);\n\t };\n\t}\n\t\n\tmodule.exports = setChainableConstructor;\n\n/***/ },\n/* 139 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35),\n\t getKeys = __webpack_require__(140);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'getAllLocaleCodes': function() {\n\t return getKeys(localeManager.getAll());\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getAllLocaleCodes;\n\n/***/ },\n/* 140 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction getKeys(obj) {\n\t return Object.keys(obj);\n\t}\n\t\n\tmodule.exports = getKeys;\n\n/***/ },\n/* 141 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'getAllLocales': function() {\n\t return localeManager.getAll();\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getAllLocales;\n\n/***/ },\n/* 142 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'getLocale': function(code) {\n\t return localeManager.get(code, !code);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getLocale;\n\n/***/ },\n/* 143 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'removeLocale': function(code) {\n\t return localeManager.remove(code);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.removeLocale;\n\n/***/ },\n/* 144 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'setLocale': function(code) {\n\t return localeManager.set(code);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.setLocale;\n\n/***/ },\n/* 145 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.day;\n\n/***/ },\n/* 146 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar buildNumberUnitMethods = __webpack_require__(147);\n\t\n\tbuildNumberUnitMethods();\n\n/***/ },\n/* 147 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnits = __webpack_require__(74),\n\t createDate = __webpack_require__(94),\n\t mathAliases = __webpack_require__(69),\n\t advanceDate = __webpack_require__(128),\n\t namespaceAliases = __webpack_require__(112),\n\t defineInstanceSimilar = __webpack_require__(148);\n\t\n\tvar sugarNumber = namespaceAliases.sugarNumber,\n\t round = mathAliases.round;\n\t\n\tfunction buildNumberUnitMethods() {\n\t defineInstanceSimilar(sugarNumber, DateUnits, function(methods, unit) {\n\t var name = unit.name, base, after, before;\n\t base = function(n) {\n\t return round(n * unit.multiplier);\n\t };\n\t after = function(n, d, options) {\n\t return advanceDate(createDate(d, options, true), name, n);\n\t };\n\t before = function(n, d, options) {\n\t return advanceDate(createDate(d, options, true), name, -n);\n\t };\n\t methods[name] = base;\n\t methods[name + 's'] = base;\n\t methods[name + 'Before'] = before;\n\t methods[name + 'sBefore'] = before;\n\t methods[name + 'Ago'] = before;\n\t methods[name + 'sAgo'] = before;\n\t methods[name + 'After'] = after;\n\t methods[name + 'sAfter'] = after;\n\t methods[name + 'FromNow'] = after;\n\t methods[name + 'sFromNow'] = after;\n\t });\n\t}\n\t\n\tmodule.exports = buildNumberUnitMethods;\n\n/***/ },\n/* 148 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar methodDefineAliases = __webpack_require__(149),\n\t collectSimilarMethods = __webpack_require__(151);\n\t\n\tvar defineInstance = methodDefineAliases.defineInstance;\n\t\n\tfunction defineInstanceSimilar(sugarNamespace, set, fn, flags) {\n\t defineInstance(sugarNamespace, collectSimilarMethods(set, fn), flags);\n\t}\n\t\n\tmodule.exports = defineInstanceSimilar;\n\n/***/ },\n/* 149 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar wrapNamespace = __webpack_require__(150);\n\t\n\tmodule.exports = {\n\t alias: wrapNamespace('alias'),\n\t defineStatic: wrapNamespace('defineStatic'),\n\t defineInstance: wrapNamespace('defineInstance'),\n\t defineStaticPolyfill: wrapNamespace('defineStaticPolyfill'),\n\t defineInstancePolyfill: wrapNamespace('defineInstancePolyfill'),\n\t defineInstanceAndStatic: wrapNamespace('defineInstanceAndStatic'),\n\t defineInstanceWithArguments: wrapNamespace('defineInstanceWithArguments')\n\t};\n\n/***/ },\n/* 150 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction wrapNamespace(method) {\n\t return function(sugarNamespace, arg1, arg2) {\n\t sugarNamespace[method](arg1, arg2);\n\t };\n\t}\n\t\n\tmodule.exports = wrapNamespace;\n\n/***/ },\n/* 151 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar forEach = __webpack_require__(53),\n\t spaceSplit = __webpack_require__(63),\n\t classChecks = __webpack_require__(60);\n\t\n\tvar isString = classChecks.isString;\n\t\n\tfunction collectSimilarMethods(set, fn) {\n\t var methods = {};\n\t if (isString(set)) {\n\t set = spaceSplit(set);\n\t }\n\t forEach(set, function(el, i) {\n\t fn(methods, el, i);\n\t });\n\t return methods;\n\t}\n\t\n\tmodule.exports = collectSimilarMethods;\n\n/***/ },\n/* 152 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.dayAfter;\n\n/***/ },\n/* 153 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.dayAgo;\n\n/***/ },\n/* 154 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.dayBefore;\n\n/***/ },\n/* 155 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.dayFromNow;\n\n/***/ },\n/* 156 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.days;\n\n/***/ },\n/* 157 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.daysAfter;\n\n/***/ },\n/* 158 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.daysAgo;\n\n/***/ },\n/* 159 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.daysBefore;\n\n/***/ },\n/* 160 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.daysFromNow;\n\n/***/ },\n/* 161 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Number.defineInstance({\n\t\n\t 'duration': function(n, localeCode) {\n\t return localeManager.get(localeCode).getDuration(n);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Number.duration;\n\n/***/ },\n/* 162 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hour;\n\n/***/ },\n/* 163 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hourAfter;\n\n/***/ },\n/* 164 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hourAgo;\n\n/***/ },\n/* 165 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hourBefore;\n\n/***/ },\n/* 166 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hourFromNow;\n\n/***/ },\n/* 167 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hours;\n\n/***/ },\n/* 168 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hoursAfter;\n\n/***/ },\n/* 169 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hoursAgo;\n\n/***/ },\n/* 170 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hoursBefore;\n\n/***/ },\n/* 171 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hoursFromNow;\n\n/***/ },\n/* 172 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecond;\n\n/***/ },\n/* 173 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondAfter;\n\n/***/ },\n/* 174 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondAgo;\n\n/***/ },\n/* 175 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondBefore;\n\n/***/ },\n/* 176 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondFromNow;\n\n/***/ },\n/* 177 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.milliseconds;\n\n/***/ },\n/* 178 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondsAfter;\n\n/***/ },\n/* 179 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondsAgo;\n\n/***/ },\n/* 180 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondsBefore;\n\n/***/ },\n/* 181 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondsFromNow;\n\n/***/ },\n/* 182 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minute;\n\n/***/ },\n/* 183 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minuteAfter;\n\n/***/ },\n/* 184 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minuteAgo;\n\n/***/ },\n/* 185 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minuteBefore;\n\n/***/ },\n/* 186 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minuteFromNow;\n\n/***/ },\n/* 187 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minutes;\n\n/***/ },\n/* 188 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minutesAfter;\n\n/***/ },\n/* 189 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minutesAgo;\n\n/***/ },\n/* 190 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minutesBefore;\n\n/***/ },\n/* 191 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minutesFromNow;\n\n/***/ },\n/* 192 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.month;\n\n/***/ },\n/* 193 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthAfter;\n\n/***/ },\n/* 194 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthAgo;\n\n/***/ },\n/* 195 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthBefore;\n\n/***/ },\n/* 196 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthFromNow;\n\n/***/ },\n/* 197 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.months;\n\n/***/ },\n/* 198 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthsAfter;\n\n/***/ },\n/* 199 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthsAgo;\n\n/***/ },\n/* 200 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthsBefore;\n\n/***/ },\n/* 201 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthsFromNow;\n\n/***/ },\n/* 202 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.second;\n\n/***/ },\n/* 203 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondAfter;\n\n/***/ },\n/* 204 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondAgo;\n\n/***/ },\n/* 205 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondBefore;\n\n/***/ },\n/* 206 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondFromNow;\n\n/***/ },\n/* 207 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.seconds;\n\n/***/ },\n/* 208 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondsAfter;\n\n/***/ },\n/* 209 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondsAgo;\n\n/***/ },\n/* 210 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondsBefore;\n\n/***/ },\n/* 211 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondsFromNow;\n\n/***/ },\n/* 212 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.week;\n\n/***/ },\n/* 213 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weekAfter;\n\n/***/ },\n/* 214 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weekAgo;\n\n/***/ },\n/* 215 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weekBefore;\n\n/***/ },\n/* 216 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weekFromNow;\n\n/***/ },\n/* 217 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weeks;\n\n/***/ },\n/* 218 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weeksAfter;\n\n/***/ },\n/* 219 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weeksAgo;\n\n/***/ },\n/* 220 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weeksBefore;\n\n/***/ },\n/* 221 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weeksFromNow;\n\n/***/ },\n/* 222 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.year;\n\n/***/ },\n/* 223 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearAfter;\n\n/***/ },\n/* 224 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearAgo;\n\n/***/ },\n/* 225 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearBefore;\n\n/***/ },\n/* 226 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearFromNow;\n\n/***/ },\n/* 227 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.years;\n\n/***/ },\n/* 228 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearsAfter;\n\n/***/ },\n/* 229 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearsAgo;\n\n/***/ },\n/* 230 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearsBefore;\n\n/***/ },\n/* 231 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearsFromNow;\n\n/***/ },\n/* 232 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addDays;\n\n/***/ },\n/* 233 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar buildDateUnitMethods = __webpack_require__(234);\n\t\n\tbuildDateUnitMethods();\n\n/***/ },\n/* 234 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnits = __webpack_require__(74),\n\t DateUnitIndexes = __webpack_require__(82),\n\t forEach = __webpack_require__(53),\n\t compareDate = __webpack_require__(235),\n\t advanceDate = __webpack_require__(128),\n\t moveToEndOfUnit = __webpack_require__(129),\n\t simpleCapitalize = __webpack_require__(237),\n\t namespaceAliases = __webpack_require__(112),\n\t defineInstanceSimilar = __webpack_require__(148),\n\t moveToBeginningOfUnit = __webpack_require__(133),\n\t createDateWithContext = __webpack_require__(238),\n\t getTimeDistanceForUnit = __webpack_require__(239);\n\t\n\tvar sugarDate = namespaceAliases.sugarDate,\n\t HOURS_INDEX = DateUnitIndexes.HOURS_INDEX,\n\t DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\t\n\tfunction buildDateUnitMethods() {\n\t\n\t defineInstanceSimilar(sugarDate, DateUnits, function(methods, unit, index) {\n\t var name = unit.name, caps = simpleCapitalize(name);\n\t\n\t if (index > DAY_INDEX) {\n\t forEach(['Last','This','Next'], function(shift) {\n\t methods['is' + shift + caps] = function(d, localeCode) {\n\t return compareDate(d, shift + ' ' + name, 0, localeCode, { locale: 'en' });\n\t };\n\t });\n\t }\n\t if (index > HOURS_INDEX) {\n\t methods['beginningOf' + caps] = function(d, localeCode) {\n\t return moveToBeginningOfUnit(d, index, localeCode);\n\t };\n\t methods['endOf' + caps] = function(d, localeCode) {\n\t return moveToEndOfUnit(d, index, localeCode);\n\t };\n\t }\n\t\n\t methods['add' + caps + 's'] = function(d, num, reset) {\n\t return advanceDate(d, name, num, reset);\n\t };\n\t\n\t var since = function(date, d, options) {\n\t return getTimeDistanceForUnit(date, createDateWithContext(date, d, options, true), unit);\n\t };\n\t var until = function(date, d, options) {\n\t return getTimeDistanceForUnit(createDateWithContext(date, d, options, true), date, unit);\n\t };\n\t\n\t methods[name + 'sAgo'] = methods[name + 'sUntil'] = until;\n\t methods[name + 'sSince'] = methods[name + 'sFromNow'] = since;\n\t\n\t });\n\t\n\t}\n\t\n\tmodule.exports = buildDateUnitMethods;\n\n/***/ },\n/* 235 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar MINUTES = __webpack_require__(96),\n\t DateUnits = __webpack_require__(74),\n\t DateUnitIndexes = __webpack_require__(82),\n\t _utc = __webpack_require__(78),\n\t tzOffset = __webpack_require__(97),\n\t cloneDate = __webpack_require__(121),\n\t isDefined = __webpack_require__(57),\n\t advanceDate = __webpack_require__(128),\n\t dateIsValid = __webpack_require__(236),\n\t moveToEndOfUnit = __webpack_require__(129),\n\t getExtendedDate = __webpack_require__(95),\n\t moveToBeginningOfUnit = __webpack_require__(133);\n\t\n\tvar MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\t\n\tfunction compareDate(date, d, margin, localeCode, options) {\n\t var loMargin = 0, hiMargin = 0, timezoneShift, compareEdges, override, min, max, p, t;\n\t\n\t function getTimezoneShift() {\n\t // If there is any specificity in the date then we're implicitly not\n\t // checking absolute time, so ignore timezone shifts.\n\t if (p.set && p.set.specificity) {\n\t return 0;\n\t }\n\t return (tzOffset(p.date) - tzOffset(date)) * MINUTES;\n\t }\n\t\n\t function addSpecificUnit() {\n\t var unit = DateUnits[p.set.specificity];\n\t return advanceDate(cloneDate(p.date), unit.name, 1).getTime() - 1;\n\t }\n\t\n\t if (_utc(date)) {\n\t options = options || {};\n\t options.fromUTC = true;\n\t options.setUTC = true;\n\t }\n\t\n\t p = getExtendedDate(null, d, options, true);\n\t\n\t if (margin > 0) {\n\t loMargin = hiMargin = margin;\n\t override = true;\n\t }\n\t if (!dateIsValid(p.date)) return false;\n\t if (p.set && p.set.specificity) {\n\t if (isDefined(p.set.edge) || isDefined(p.set.shift)) {\n\t compareEdges = true;\n\t moveToBeginningOfUnit(p.date, p.set.specificity, localeCode);\n\t }\n\t if (compareEdges || p.set.specificity === MONTH_INDEX) {\n\t max = moveToEndOfUnit(cloneDate(p.date), p.set.specificity, localeCode).getTime();\n\t } else {\n\t max = addSpecificUnit();\n\t }\n\t if (!override && isDefined(p.set.sign) && p.set.specificity) {\n\t // If the time is relative, there can occasionally be an disparity between\n\t // the relative date and \"now\", which it is being compared to, so set an\n\t // extra margin to account for this.\n\t loMargin = 50;\n\t hiMargin = -50;\n\t }\n\t }\n\t t = date.getTime();\n\t min = p.date.getTime();\n\t max = max || min;\n\t timezoneShift = getTimezoneShift();\n\t if (timezoneShift) {\n\t min -= timezoneShift;\n\t max -= timezoneShift;\n\t }\n\t return t >= (min - loMargin) && t <= (max + hiMargin);\n\t}\n\t\n\tmodule.exports = compareDate;\n\n/***/ },\n/* 236 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction dateIsValid(d) {\n\t return !isNaN(d.getTime());\n\t}\n\t\n\tmodule.exports = dateIsValid;\n\n/***/ },\n/* 237 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction simpleCapitalize(str) {\n\t return str.charAt(0).toUpperCase() + str.slice(1);\n\t}\n\t\n\tmodule.exports = simpleCapitalize;\n\n/***/ },\n/* 238 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getExtendedDate = __webpack_require__(95);\n\t\n\tfunction createDateWithContext(contextDate, d, options, forceClone) {\n\t return getExtendedDate(contextDate, d, options, forceClone).date;\n\t}\n\t\n\tmodule.exports = createDateWithContext;\n\n/***/ },\n/* 239 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar trunc = __webpack_require__(89),\n\t cloneDate = __webpack_require__(121),\n\t advanceDate = __webpack_require__(128);\n\t\n\tfunction getTimeDistanceForUnit(d1, d2, unit) {\n\t var fwd = d2 > d1, num, tmp;\n\t if (!fwd) {\n\t tmp = d2;\n\t d2 = d1;\n\t d1 = tmp;\n\t }\n\t num = d2 - d1;\n\t if (unit.multiplier > 1) {\n\t num = trunc(num / unit.multiplier);\n\t }\n\t // For higher order with potential ambiguity, use the numeric calculation\n\t // as a starting point, then iterate until we pass the target date.\n\t if (unit.ambiguous) {\n\t d1 = cloneDate(d1);\n\t if (num) {\n\t advanceDate(d1, unit.name, num);\n\t }\n\t while (d1 < d2) {\n\t advanceDate(d1, unit.name, 1);\n\t if (d1 > d2) {\n\t break;\n\t }\n\t num += 1;\n\t }\n\t }\n\t return fwd ? -num : num;\n\t}\n\t\n\tmodule.exports = getTimeDistanceForUnit;\n\n/***/ },\n/* 240 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addHours;\n\n/***/ },\n/* 241 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addMilliseconds;\n\n/***/ },\n/* 242 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addMinutes;\n\n/***/ },\n/* 243 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addMonths;\n\n/***/ },\n/* 244 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addSeconds;\n\n/***/ },\n/* 245 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addWeeks;\n\n/***/ },\n/* 246 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addYears;\n\n/***/ },\n/* 247 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t advanceDateWithArgs = __webpack_require__(248);\n\t\n\tSugar.Date.defineInstanceWithArguments({\n\t\n\t 'advance': function(d, args) {\n\t return advanceDateWithArgs(d, args, 1);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.advance;\n\n/***/ },\n/* 248 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar updateDate = __webpack_require__(107),\n\t collectDateArguments = __webpack_require__(249);\n\t\n\tfunction advanceDateWithArgs(d, args, dir) {\n\t args = collectDateArguments(args, true);\n\t return updateDate(d, args[0], args[1], dir);\n\t}\n\t\n\tmodule.exports = advanceDateWithArgs;\n\n/***/ },\n/* 249 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60),\n\t simpleClone = __webpack_require__(42),\n\t isObjectType = __webpack_require__(65),\n\t getDateParamsFromString = __webpack_require__(250),\n\t collectDateParamsFromArguments = __webpack_require__(251);\n\t\n\tvar isNumber = classChecks.isNumber,\n\t isString = classChecks.isString;\n\t\n\tfunction collectDateArguments(args, allowDuration) {\n\t var arg1 = args[0], arg2 = args[1];\n\t if (allowDuration && isString(arg1)) {\n\t arg1 = getDateParamsFromString(arg1);\n\t } else if (isNumber(arg1) && isNumber(arg2)) {\n\t arg1 = collectDateParamsFromArguments(args);\n\t arg2 = null;\n\t } else {\n\t if (isObjectType(arg1)) {\n\t arg1 = simpleClone(arg1);\n\t }\n\t }\n\t return [arg1, arg2];\n\t}\n\t\n\tmodule.exports = collectDateArguments;\n\n/***/ },\n/* 250 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar isUndefined = __webpack_require__(68);\n\t\n\tfunction getDateParamsFromString(str) {\n\t var match, num, params = {};\n\t match = str.match(/^(-?\\d*[\\d.]\\d*)?\\s?(\\w+?)s?$/i);\n\t if (match) {\n\t if (isUndefined(num)) {\n\t num = +match[1];\n\t if (isNaN(num)) {\n\t num = 1;\n\t }\n\t }\n\t params[match[2].toLowerCase()] = num;\n\t }\n\t return params;\n\t}\n\t\n\tmodule.exports = getDateParamsFromString;\n\n/***/ },\n/* 251 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82),\n\t isDefined = __webpack_require__(57),\n\t walkUnitDown = __webpack_require__(101);\n\t\n\tvar YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\t\n\tfunction collectDateParamsFromArguments(args) {\n\t var params = {}, index = 0;\n\t walkUnitDown(YEAR_INDEX, function(unit) {\n\t var arg = args[index++];\n\t if (isDefined(arg)) {\n\t params[unit.name] = arg;\n\t }\n\t });\n\t return params;\n\t}\n\t\n\tmodule.exports = collectDateParamsFromArguments;\n\n/***/ },\n/* 252 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.beginningOfDay;\n\n/***/ },\n/* 253 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t resetTime = __webpack_require__(98),\n\t getWeekday = __webpack_require__(106),\n\t setWeekday = __webpack_require__(103);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'beginningOfISOWeek': function(date) {\n\t var day = getWeekday(date);\n\t if (day === 0) {\n\t day = -6;\n\t } else if (day !== 1) {\n\t day = 1;\n\t }\n\t setWeekday(date, day);\n\t return resetTime(date);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.beginningOfISOWeek;\n\n/***/ },\n/* 254 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.beginningOfMonth;\n\n/***/ },\n/* 255 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.beginningOfWeek;\n\n/***/ },\n/* 256 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.beginningOfYear;\n\n/***/ },\n/* 257 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t cloneDate = __webpack_require__(121);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'clone': function(date) {\n\t return cloneDate(date);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.clone;\n\n/***/ },\n/* 258 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.daysAgo;\n\n/***/ },\n/* 259 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.daysFromNow;\n\n/***/ },\n/* 260 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t getDaysInMonth = __webpack_require__(75);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'daysInMonth': function(date) {\n\t return getDaysInMonth(date);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.daysInMonth;\n\n/***/ },\n/* 261 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.daysSince;\n\n/***/ },\n/* 262 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.daysUntil;\n\n/***/ },\n/* 263 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.endOfDay;\n\n/***/ },\n/* 264 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t DateUnitIndexes = __webpack_require__(82),\n\t getWeekday = __webpack_require__(106),\n\t setWeekday = __webpack_require__(103),\n\t moveToEndOfUnit = __webpack_require__(129);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'endOfISOWeek': function(date) {\n\t if (getWeekday(date) !== 0) {\n\t setWeekday(date, 7);\n\t }\n\t return moveToEndOfUnit(date, DAY_INDEX);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.endOfISOWeek;\n\n/***/ },\n/* 265 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.endOfMonth;\n\n/***/ },\n/* 266 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.endOfWeek;\n\n/***/ },\n/* 267 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.endOfYear;\n\n/***/ },\n/* 268 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t dateFormat = __webpack_require__(269);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'format': function(date, f, localeCode) {\n\t return dateFormat(date, f, localeCode);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.format;\n\n/***/ },\n/* 269 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar CoreOutputFormats = __webpack_require__(270),\n\t formattingTokens = __webpack_require__(271),\n\t assertDateIsValid = __webpack_require__(286);\n\t\n\tvar dateFormatMatcher = formattingTokens.dateFormatMatcher;\n\t\n\tfunction dateFormat(d, format, localeCode) {\n\t assertDateIsValid(d);\n\t format = CoreOutputFormats[format] || format || '{long}';\n\t return dateFormatMatcher(format, d, localeCode);\n\t}\n\t\n\tmodule.exports = dateFormat;\n\n/***/ },\n/* 270 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar CoreOutputFormats = {\n\t 'ISO8601': '{yyyy}-{MM}-{dd}T{HH}:{mm}:{ss}.{SSS}{Z}',\n\t 'RFC1123': '{Dow}, {dd} {Mon} {yyyy} {HH}:{mm}:{ss} {ZZ}',\n\t 'RFC1036': '{Weekday}, {dd}-{Mon}-{yy} {HH}:{mm}:{ss} {ZZ}'\n\t};\n\t\n\tmodule.exports = CoreOutputFormats;\n\n/***/ },\n/* 271 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t FormatTokensBase = __webpack_require__(272),\n\t CoreOutputFormats = __webpack_require__(270),\n\t forEach = __webpack_require__(53),\n\t padNumber = __webpack_require__(275),\n\t spaceSplit = __webpack_require__(63),\n\t namespaceAliases = __webpack_require__(112),\n\t coreUtilityAliases = __webpack_require__(41),\n\t createFormatMatcher = __webpack_require__(282),\n\t defineInstanceSimilar = __webpack_require__(148);\n\t\n\tvar localeManager = LocaleHelpers.localeManager,\n\t hasOwn = coreUtilityAliases.hasOwn,\n\t getOwn = coreUtilityAliases.getOwn,\n\t forEachProperty = coreUtilityAliases.forEachProperty,\n\t sugarDate = namespaceAliases.sugarDate;\n\t\n\tvar ldmlTokens, strfTokens;\n\t\n\tfunction buildDateFormatTokens() {\n\t\n\t function addFormats(target, tokens, fn) {\n\t if (tokens) {\n\t forEach(spaceSplit(tokens), function(token) {\n\t target[token] = fn;\n\t });\n\t }\n\t }\n\t\n\t function buildLowercase(get) {\n\t return function(d, localeCode) {\n\t return get(d, localeCode).toLowerCase();\n\t };\n\t }\n\t\n\t function buildOrdinal(get) {\n\t return function(d, localeCode) {\n\t var n = get(d, localeCode);\n\t return n + localeManager.get(localeCode).getOrdinal(n);\n\t };\n\t }\n\t\n\t function buildPadded(get, padding) {\n\t return function(d, localeCode) {\n\t return padNumber(get(d, localeCode), padding);\n\t };\n\t }\n\t\n\t function buildTwoDigits(get) {\n\t return function(d, localeCode) {\n\t return get(d, localeCode) % 100;\n\t };\n\t }\n\t\n\t function buildAlias(alias) {\n\t return function(d, localeCode) {\n\t return dateFormatMatcher(alias, d, localeCode);\n\t };\n\t }\n\t\n\t function buildAlternates(f) {\n\t for (var n = 1; n <= 5; n++) {\n\t buildAlternate(f, n);\n\t }\n\t }\n\t\n\t function buildAlternate(f, n) {\n\t var alternate = function(d, localeCode) {\n\t return f.get(d, localeCode, n);\n\t };\n\t addFormats(ldmlTokens, f.ldml + n, alternate);\n\t if (f.lowerToken) {\n\t ldmlTokens[f.lowerToken + n] = buildLowercase(alternate);\n\t }\n\t }\n\t\n\t function getIdentityFormat(name) {\n\t return function(d, localeCode) {\n\t var loc = localeManager.get(localeCode);\n\t return dateFormatMatcher(loc[name], d, localeCode);\n\t };\n\t }\n\t\n\t ldmlTokens = {};\n\t strfTokens = {};\n\t\n\t forEach(FormatTokensBase, function(f) {\n\t var get = f.get, getPadded;\n\t if (f.lowerToken) {\n\t ldmlTokens[f.lowerToken] = buildLowercase(get);\n\t }\n\t if (f.ordinalToken) {\n\t ldmlTokens[f.ordinalToken] = buildOrdinal(get, f);\n\t }\n\t if (f.ldmlPaddedToken) {\n\t ldmlTokens[f.ldmlPaddedToken] = buildPadded(get, f.ldmlPaddedToken.length);\n\t }\n\t if (f.ldmlTwoDigitToken) {\n\t ldmlTokens[f.ldmlTwoDigitToken] = buildPadded(buildTwoDigits(get), 2);\n\t }\n\t if (f.strfTwoDigitToken) {\n\t strfTokens[f.strfTwoDigitToken] = buildPadded(buildTwoDigits(get), 2);\n\t }\n\t if (f.strfPadding) {\n\t getPadded = buildPadded(get, f.strfPadding);\n\t }\n\t if (f.alias) {\n\t get = buildAlias(f.alias);\n\t }\n\t if (f.allowAlternates) {\n\t buildAlternates(f);\n\t }\n\t addFormats(ldmlTokens, f.ldml, get);\n\t addFormats(strfTokens, f.strf, getPadded || get);\n\t });\n\t\n\t forEachProperty(CoreOutputFormats, function(src, name) {\n\t addFormats(ldmlTokens, name, buildAlias(src));\n\t });\n\t\n\t defineInstanceSimilar(sugarDate, 'short medium long full', function(methods, name) {\n\t var fn = getIdentityFormat(name);\n\t addFormats(ldmlTokens, name, fn);\n\t methods[name] = fn;\n\t });\n\t\n\t addFormats(ldmlTokens, 'time', getIdentityFormat('time'));\n\t addFormats(ldmlTokens, 'stamp', getIdentityFormat('stamp'));\n\t}\n\t\n\tvar dateFormatMatcher;\n\t\n\tfunction buildDateFormatMatcher() {\n\t\n\t function getLdml(d, token, localeCode) {\n\t return getOwn(ldmlTokens, token)(d, localeCode);\n\t }\n\t\n\t function getStrf(d, token, localeCode) {\n\t return getOwn(strfTokens, token)(d, localeCode);\n\t }\n\t\n\t function checkDateToken(ldml, strf) {\n\t return hasOwn(ldmlTokens, ldml) || hasOwn(strfTokens, strf);\n\t }\n\t\n\t // Format matcher for LDML or STRF tokens.\n\t dateFormatMatcher = createFormatMatcher(getLdml, getStrf, checkDateToken);\n\t}\n\t\n\tbuildDateFormatTokens();\n\t\n\tbuildDateFormatMatcher();\n\t\n\tmodule.exports = {\n\t ldmlTokens: ldmlTokens,\n\t strfTokens: strfTokens,\n\t dateFormatMatcher: dateFormatMatcher\n\t};\n\n/***/ },\n/* 272 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar TIMEZONE_ABBREVIATION_REG = __webpack_require__(273),\n\t LocaleHelpers = __webpack_require__(35),\n\t DateUnitIndexes = __webpack_require__(82),\n\t trunc = __webpack_require__(89),\n\t getDate = __webpack_require__(105),\n\t getYear = __webpack_require__(76),\n\t getHours = __webpack_require__(274),\n\t getMonth = __webpack_require__(81),\n\t cloneDate = __webpack_require__(121),\n\t padNumber = __webpack_require__(275),\n\t getWeekday = __webpack_require__(106),\n\t callDateGet = __webpack_require__(77),\n\t mathAliases = __webpack_require__(69),\n\t getWeekYear = __webpack_require__(277),\n\t getUTCOffset = __webpack_require__(279),\n\t getDaysSince = __webpack_require__(280),\n\t getWeekNumber = __webpack_require__(278),\n\t getMeridiemToken = __webpack_require__(281),\n\t setUnitAndLowerToEdge = __webpack_require__(99);\n\t\n\tvar localeManager = LocaleHelpers.localeManager,\n\t MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,\n\t ceil = mathAliases.ceil;\n\t\n\tvar FormatTokensBase = [\n\t {\n\t ldml: 'Dow',\n\t strf: 'a',\n\t lowerToken: 'dow',\n\t get: function(d, localeCode) {\n\t return localeManager.get(localeCode).getWeekdayName(getWeekday(d), 2);\n\t }\n\t },\n\t {\n\t ldml: 'Weekday',\n\t strf: 'A',\n\t lowerToken: 'weekday',\n\t allowAlternates: true,\n\t get: function(d, localeCode, alternate) {\n\t return localeManager.get(localeCode).getWeekdayName(getWeekday(d), alternate);\n\t }\n\t },\n\t {\n\t ldml: 'Mon',\n\t strf: 'b h',\n\t lowerToken: 'mon',\n\t get: function(d, localeCode) {\n\t return localeManager.get(localeCode).getMonthName(getMonth(d), 2);\n\t }\n\t },\n\t {\n\t ldml: 'Month',\n\t strf: 'B',\n\t lowerToken: 'month',\n\t allowAlternates: true,\n\t get: function(d, localeCode, alternate) {\n\t return localeManager.get(localeCode).getMonthName(getMonth(d), alternate);\n\t }\n\t },\n\t {\n\t strf: 'C',\n\t get: function(d) {\n\t return getYear(d).toString().slice(0, 2);\n\t }\n\t },\n\t {\n\t ldml: 'd date day',\n\t strf: 'd',\n\t strfPadding: 2,\n\t ldmlPaddedToken: 'dd',\n\t ordinalToken: 'do',\n\t get: function(d) {\n\t return getDate(d);\n\t }\n\t },\n\t {\n\t strf: 'e',\n\t get: function(d) {\n\t return padNumber(getDate(d), 2, false, 10, ' ');\n\t }\n\t },\n\t {\n\t ldml: 'H 24hr',\n\t strf: 'H',\n\t strfPadding: 2,\n\t ldmlPaddedToken: 'HH',\n\t get: function(d) {\n\t return getHours(d);\n\t }\n\t },\n\t {\n\t ldml: 'h hours 12hr',\n\t strf: 'I',\n\t strfPadding: 2,\n\t ldmlPaddedToken: 'hh',\n\t get: function(d) {\n\t return getHours(d) % 12 || 12;\n\t }\n\t },\n\t {\n\t ldml: 'D',\n\t strf: 'j',\n\t strfPadding: 3,\n\t ldmlPaddedToken: 'DDD',\n\t get: function(d) {\n\t var s = setUnitAndLowerToEdge(cloneDate(d), MONTH_INDEX);\n\t return getDaysSince(d, s) + 1;\n\t }\n\t },\n\t {\n\t ldml: 'M',\n\t strf: 'm',\n\t strfPadding: 2,\n\t ordinalToken: 'Mo',\n\t ldmlPaddedToken: 'MM',\n\t get: function(d) {\n\t return getMonth(d) + 1;\n\t }\n\t },\n\t {\n\t ldml: 'm minutes',\n\t strf: 'M',\n\t strfPadding: 2,\n\t ldmlPaddedToken: 'mm',\n\t get: function(d) {\n\t return callDateGet(d, 'Minutes');\n\t }\n\t },\n\t {\n\t ldml: 'Q',\n\t get: function(d) {\n\t return ceil((getMonth(d) + 1) / 3);\n\t }\n\t },\n\t {\n\t ldml: 'TT',\n\t strf: 'p',\n\t get: function(d, localeCode) {\n\t return getMeridiemToken(d, localeCode);\n\t }\n\t },\n\t {\n\t ldml: 'tt',\n\t strf: 'P',\n\t get: function(d, localeCode) {\n\t return getMeridiemToken(d, localeCode).toLowerCase();\n\t }\n\t },\n\t {\n\t ldml: 'T',\n\t lowerToken: 't',\n\t get: function(d, localeCode) {\n\t return getMeridiemToken(d, localeCode).charAt(0);\n\t }\n\t },\n\t {\n\t ldml: 's seconds',\n\t strf: 'S',\n\t strfPadding: 2,\n\t ldmlPaddedToken: 'ss',\n\t get: function(d) {\n\t return callDateGet(d, 'Seconds');\n\t }\n\t },\n\t {\n\t ldml: 'S ms',\n\t strfPadding: 3,\n\t ldmlPaddedToken: 'SSS',\n\t get: function(d) {\n\t return callDateGet(d, 'Milliseconds');\n\t }\n\t },\n\t {\n\t ldml: 'e',\n\t strf: 'u',\n\t ordinalToken: 'eo',\n\t get: function(d) {\n\t return getWeekday(d) || 7;\n\t }\n\t },\n\t {\n\t strf: 'U',\n\t strfPadding: 2,\n\t get: function(d) {\n\t // Sunday first, 0-53\n\t return getWeekNumber(d, false, 0);\n\t }\n\t },\n\t {\n\t ldml: 'W',\n\t strf: 'V',\n\t strfPadding: 2,\n\t ordinalToken: 'Wo',\n\t ldmlPaddedToken: 'WW',\n\t get: function(d) {\n\t // Monday first, 1-53 (ISO8601)\n\t return getWeekNumber(d, true);\n\t }\n\t },\n\t {\n\t strf: 'w',\n\t get: function(d) {\n\t return getWeekday(d);\n\t }\n\t },\n\t {\n\t ldml: 'w',\n\t ordinalToken: 'wo',\n\t ldmlPaddedToken: 'ww',\n\t get: function(d, localeCode) {\n\t // Locale dependent, 1-53\n\t var loc = localeManager.get(localeCode),\n\t dow = loc.getFirstDayOfWeek(localeCode),\n\t doy = loc.getFirstDayOfWeekYear(localeCode);\n\t return getWeekNumber(d, true, dow, doy);\n\t }\n\t },\n\t {\n\t strf: 'W',\n\t strfPadding: 2,\n\t get: function(d) {\n\t // Monday first, 0-53\n\t return getWeekNumber(d, false);\n\t }\n\t },\n\t {\n\t ldmlPaddedToken: 'gggg',\n\t ldmlTwoDigitToken: 'gg',\n\t get: function(d, localeCode) {\n\t return getWeekYear(d, localeCode);\n\t }\n\t },\n\t {\n\t strf: 'G',\n\t strfPadding: 4,\n\t strfTwoDigitToken: 'g',\n\t ldmlPaddedToken: 'GGGG',\n\t ldmlTwoDigitToken: 'GG',\n\t get: function(d, localeCode) {\n\t return getWeekYear(d, localeCode, true);\n\t }\n\t },\n\t {\n\t ldml: 'year',\n\t ldmlPaddedToken: 'yyyy',\n\t ldmlTwoDigitToken: 'yy',\n\t strf: 'Y',\n\t strfPadding: 4,\n\t strfTwoDigitToken: 'y',\n\t get: function(d) {\n\t return getYear(d);\n\t }\n\t },\n\t {\n\t ldml: 'ZZ',\n\t strf: 'z',\n\t get: function(d) {\n\t return getUTCOffset(d);\n\t }\n\t },\n\t {\n\t ldml: 'X',\n\t get: function(d) {\n\t return trunc(d.getTime() / 1000);\n\t }\n\t },\n\t {\n\t ldml: 'x',\n\t get: function(d) {\n\t return d.getTime();\n\t }\n\t },\n\t {\n\t ldml: 'Z',\n\t get: function(d) {\n\t return getUTCOffset(d, true);\n\t }\n\t },\n\t {\n\t ldml: 'z',\n\t strf: 'Z',\n\t get: function(d) {\n\t // Note that this is not accurate in all browsing environments!\n\t // https://github.com/moment/moment/issues/162\n\t // It will continue to be supported for Node and usage with the\n\t // understanding that it may be blank.\n\t var match = d.toString().match(TIMEZONE_ABBREVIATION_REG);\n\t return match ? match[1]: '';\n\t }\n\t },\n\t {\n\t strf: 'D',\n\t alias: '%m/%d/%y'\n\t },\n\t {\n\t strf: 'F',\n\t alias: '%Y-%m-%d'\n\t },\n\t {\n\t strf: 'r',\n\t alias: '%I:%M:%S %p'\n\t },\n\t {\n\t strf: 'R',\n\t alias: '%H:%M'\n\t },\n\t {\n\t strf: 'T',\n\t alias: '%H:%M:%S'\n\t },\n\t {\n\t strf: 'x',\n\t alias: '{short}'\n\t },\n\t {\n\t strf: 'X',\n\t alias: '{time}'\n\t },\n\t {\n\t strf: 'c',\n\t alias: '{stamp}'\n\t }\n\t];\n\t\n\tmodule.exports = FormatTokensBase;\n\n/***/ },\n/* 273 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = /(\\w{3})[()\\s\\d]*$/;\n\n/***/ },\n/* 274 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateGet = __webpack_require__(77);\n\t\n\tfunction getHours(d) {\n\t return callDateGet(d, 'Hours');\n\t}\n\t\n\tmodule.exports = getHours;\n\n/***/ },\n/* 275 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar mathAliases = __webpack_require__(69),\n\t repeatString = __webpack_require__(276);\n\t\n\tvar abs = mathAliases.abs;\n\t\n\tfunction padNumber(num, place, sign, base, replacement) {\n\t var str = abs(num).toString(base || 10);\n\t str = repeatString(replacement || '0', place - str.replace(/\\.\\d+/, '').length) + str;\n\t if (sign || num < 0) {\n\t str = (num < 0 ? '-' : '+') + str;\n\t }\n\t return str;\n\t}\n\t\n\tmodule.exports = padNumber;\n\n/***/ },\n/* 276 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction repeatString(str, num) {\n\t var result = '';\n\t str = str.toString();\n\t while (num > 0) {\n\t if (num & 1) {\n\t result += str;\n\t }\n\t if (num >>= 1) {\n\t str += str;\n\t }\n\t }\n\t return result;\n\t}\n\t\n\tmodule.exports = repeatString;\n\n/***/ },\n/* 277 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t getYear = __webpack_require__(76),\n\t getMonth = __webpack_require__(81),\n\t getWeekNumber = __webpack_require__(278);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tfunction getWeekYear(d, localeCode, iso) {\n\t var year, month, firstDayOfWeek, firstDayOfWeekYear, week, loc;\n\t year = getYear(d);\n\t month = getMonth(d);\n\t if (month === 0 || month === 11) {\n\t if (!iso) {\n\t loc = localeManager.get(localeCode);\n\t firstDayOfWeek = loc.getFirstDayOfWeek(localeCode);\n\t firstDayOfWeekYear = loc.getFirstDayOfWeekYear(localeCode);\n\t }\n\t week = getWeekNumber(d, false, firstDayOfWeek, firstDayOfWeekYear);\n\t if (month === 0 && week === 0) {\n\t year -= 1;\n\t } else if (month === 11 && week === 1) {\n\t year += 1;\n\t }\n\t }\n\t return year;\n\t}\n\t\n\tmodule.exports = getWeekYear;\n\n/***/ },\n/* 278 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar ISODefaults = __webpack_require__(47),\n\t setDate = __webpack_require__(104),\n\t getDate = __webpack_require__(105),\n\t cloneDate = __webpack_require__(121),\n\t isUndefined = __webpack_require__(68),\n\t moveToEndOfWeek = __webpack_require__(130),\n\t moveToBeginningOfWeek = __webpack_require__(123),\n\t moveToFirstDayOfWeekYear = __webpack_require__(122);\n\t\n\tvar ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,\n\t ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR;\n\t\n\tfunction getWeekNumber(d, allowPrevious, firstDayOfWeek, firstDayOfWeekYear) {\n\t var isoWeek, n = 0;\n\t if (isUndefined(firstDayOfWeek)) {\n\t firstDayOfWeek = ISO_FIRST_DAY_OF_WEEK;\n\t }\n\t if (isUndefined(firstDayOfWeekYear)) {\n\t firstDayOfWeekYear = ISO_FIRST_DAY_OF_WEEK_YEAR;\n\t }\n\t // Moving to the end of the week allows for forward year traversal, ie\n\t // Dec 29 2014 is actually week 01 of 2015.\n\t isoWeek = moveToEndOfWeek(cloneDate(d), firstDayOfWeek);\n\t moveToFirstDayOfWeekYear(isoWeek, firstDayOfWeek, firstDayOfWeekYear);\n\t if (allowPrevious && d < isoWeek) {\n\t // If the date is still before the start of the year, then it should be\n\t // the last week of the previous year, ie Jan 1 2016 is actually week 53\n\t // of 2015, so move to the beginning of the week to traverse the year.\n\t isoWeek = moveToBeginningOfWeek(cloneDate(d), firstDayOfWeek);\n\t moveToFirstDayOfWeekYear(isoWeek, firstDayOfWeek, firstDayOfWeekYear);\n\t }\n\t while (isoWeek <= d) {\n\t // Doing a very simple walk to get the week number.\n\t setDate(isoWeek, getDate(isoWeek) + 7);\n\t n++;\n\t }\n\t return n;\n\t}\n\t\n\tmodule.exports = getWeekNumber;\n\n/***/ },\n/* 279 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _utc = __webpack_require__(78),\n\t trunc = __webpack_require__(89),\n\t tzOffset = __webpack_require__(97),\n\t padNumber = __webpack_require__(275),\n\t mathAliases = __webpack_require__(69);\n\t\n\tvar abs = mathAliases.abs;\n\t\n\tfunction getUTCOffset(d, iso) {\n\t var offset = _utc(d) ? 0 : tzOffset(d), hours, mins, colon;\n\t colon = iso === true ? ':' : '';\n\t if (!offset && iso) return 'Z';\n\t hours = padNumber(trunc(-offset / 60), 2, true);\n\t mins = padNumber(abs(offset % 60), 2);\n\t return hours + colon + mins;\n\t}\n\t\n\tmodule.exports = getUTCOffset;\n\n/***/ },\n/* 280 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnits = __webpack_require__(74),\n\t DateUnitIndexes = __webpack_require__(82),\n\t getTimeDistanceForUnit = __webpack_require__(239);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\t\n\tfunction getDaysSince(d1, d2) {\n\t return getTimeDistanceForUnit(d1, d2, DateUnits[DAY_INDEX]);\n\t}\n\t\n\tmodule.exports = getDaysSince;\n\n/***/ },\n/* 281 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t trunc = __webpack_require__(89),\n\t getHours = __webpack_require__(274);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tfunction getMeridiemToken(d, localeCode) {\n\t var hours = getHours(d);\n\t return localeManager.get(localeCode).ampm[trunc(hours / 12)] || '';\n\t}\n\t\n\tmodule.exports = getMeridiemToken;\n\n/***/ },\n/* 282 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar STRING_FORMAT_REG = __webpack_require__(283),\n\t CommonChars = __webpack_require__(59),\n\t memoizeFunction = __webpack_require__(284);\n\t\n\tvar OPEN_BRACE = CommonChars.OPEN_BRACE,\n\t CLOSE_BRACE = CommonChars.CLOSE_BRACE;\n\t\n\tfunction createFormatMatcher(bracketMatcher, percentMatcher, precheck) {\n\t\n\t var reg = STRING_FORMAT_REG;\n\t var compileMemoized = memoizeFunction(compile);\n\t\n\t function getToken(format, match) {\n\t var get, token, literal, fn;\n\t var bKey = match[2];\n\t var pLit = match[3];\n\t var pKey = match[5];\n\t if (match[4] && percentMatcher) {\n\t token = pKey;\n\t get = percentMatcher;\n\t } else if (bKey) {\n\t token = bKey;\n\t get = bracketMatcher;\n\t } else if (pLit && percentMatcher) {\n\t literal = pLit;\n\t } else {\n\t literal = match[1] || match[0];\n\t }\n\t if (get) {\n\t assertPassesPrecheck(precheck, bKey, pKey);\n\t fn = function(obj, opt) {\n\t return get(obj, token, opt);\n\t };\n\t }\n\t format.push(fn || getLiteral(literal));\n\t }\n\t\n\t function getSubstring(format, str, start, end) {\n\t if (end > start) {\n\t var sub = str.slice(start, end);\n\t assertNoUnmatched(sub, OPEN_BRACE);\n\t assertNoUnmatched(sub, CLOSE_BRACE);\n\t format.push(function() {\n\t return sub;\n\t });\n\t }\n\t }\n\t\n\t function getLiteral(str) {\n\t return function() {\n\t return str;\n\t };\n\t }\n\t\n\t function assertPassesPrecheck(precheck, bt, pt) {\n\t if (precheck && !precheck(bt, pt)) {\n\t throw new TypeError('Invalid token '+ (bt || pt) +' in format string');\n\t }\n\t }\n\t\n\t function assertNoUnmatched(str, chr) {\n\t if (str.indexOf(chr) !== -1) {\n\t throw new TypeError('Unmatched '+ chr +' in format string');\n\t }\n\t }\n\t\n\t function compile(str) {\n\t var format = [], lastIndex = 0, match;\n\t reg.lastIndex = 0;\n\t while(match = reg.exec(str)) {\n\t getSubstring(format, str, lastIndex, match.index);\n\t getToken(format, match);\n\t lastIndex = reg.lastIndex;\n\t }\n\t getSubstring(format, str, lastIndex, str.length);\n\t return format;\n\t }\n\t\n\t return function(str, obj, opt) {\n\t var format = compileMemoized(str), result = '';\n\t for (var i = 0; i < format.length; i++) {\n\t result += format[i](obj, opt);\n\t }\n\t return result;\n\t };\n\t}\n\t\n\tmodule.exports = createFormatMatcher;\n\n/***/ },\n/* 283 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = /([{}])\\1|\\{([^}]*)\\}|(%)%|(%(\\w*))/g;\n\n/***/ },\n/* 284 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar INTERNAL_MEMOIZE_LIMIT = __webpack_require__(285),\n\t coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar hasOwn = coreUtilityAliases.hasOwn;\n\t\n\tfunction memoizeFunction(fn) {\n\t var memo = {}, counter = 0;\n\t\n\t return function(key) {\n\t if (hasOwn(memo, key)) {\n\t return memo[key];\n\t }\n\t if (counter === INTERNAL_MEMOIZE_LIMIT) {\n\t memo = {};\n\t counter = 0;\n\t }\n\t counter++;\n\t return memo[key] = fn(key);\n\t };\n\t}\n\t\n\tmodule.exports = memoizeFunction;\n\n/***/ },\n/* 285 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = 1000;\n\n/***/ },\n/* 286 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar dateIsValid = __webpack_require__(236);\n\t\n\tfunction assertDateIsValid(d) {\n\t if (!dateIsValid(d)) {\n\t throw new TypeError('Date is not valid');\n\t }\n\t}\n\t\n\tmodule.exports = assertDateIsValid;\n\n/***/ },\n/* 287 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t createDateWithContext = __webpack_require__(238);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'get': function(date, d, options) {\n\t return createDateWithContext(date, d, options);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.get;\n\n/***/ },\n/* 288 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t getWeekNumber = __webpack_require__(278);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'getISOWeek': function(date) {\n\t return getWeekNumber(date, true);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getISOWeek;\n\n/***/ },\n/* 289 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t getUTCOffset = __webpack_require__(279);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'getUTCOffset': function(date, iso) {\n\t return getUTCOffset(date, iso);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getUTCOffset;\n\n/***/ },\n/* 290 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'getUTCWeekday': function(date) {\n\t return date.getUTCDay();\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getUTCWeekday;\n\n/***/ },\n/* 291 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t getWeekday = __webpack_require__(106);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'getWeekday': function(date) {\n\t return getWeekday(date);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getWeekday;\n\n/***/ },\n/* 292 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.hoursAgo;\n\n/***/ },\n/* 293 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.hoursFromNow;\n\n/***/ },\n/* 294 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.hoursSince;\n\n/***/ },\n/* 295 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.hoursUntil;\n\n/***/ },\n/* 296 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t fullCompareDate = __webpack_require__(297);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'is': function(date, d, margin) {\n\t return fullCompareDate(date, d, margin);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.is;\n\n/***/ },\n/* 297 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t trim = __webpack_require__(298),\n\t getMonth = __webpack_require__(81),\n\t isDefined = __webpack_require__(57),\n\t getNewDate = __webpack_require__(108),\n\t compareDay = __webpack_require__(299),\n\t getWeekday = __webpack_require__(106),\n\t dateIsValid = __webpack_require__(236),\n\t classChecks = __webpack_require__(60),\n\t compareDate = __webpack_require__(235);\n\t\n\tvar isString = classChecks.isString,\n\t English = LocaleHelpers.English;\n\t\n\tfunction fullCompareDate(date, d, margin) {\n\t var tmp;\n\t if (!dateIsValid(date)) return;\n\t if (isString(d)) {\n\t d = trim(d).toLowerCase();\n\t switch(true) {\n\t case d === 'future': return date.getTime() > getNewDate().getTime();\n\t case d === 'past': return date.getTime() < getNewDate().getTime();\n\t case d === 'today': return compareDay(date);\n\t case d === 'tomorrow': return compareDay(date, 1);\n\t case d === 'yesterday': return compareDay(date, -1);\n\t case d === 'weekday': return getWeekday(date) > 0 && getWeekday(date) < 6;\n\t case d === 'weekend': return getWeekday(date) === 0 || getWeekday(date) === 6;\n\t\n\t case (isDefined(tmp = English.weekdayMap[d])):\n\t return getWeekday(date) === tmp;\n\t case (isDefined(tmp = English.monthMap[d])):\n\t return getMonth(date) === tmp;\n\t }\n\t }\n\t return compareDate(date, d, margin);\n\t}\n\t\n\tmodule.exports = fullCompareDate;\n\n/***/ },\n/* 298 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction trim(str) {\n\t return str.trim();\n\t}\n\t\n\tmodule.exports = trim;\n\n/***/ },\n/* 299 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar setDate = __webpack_require__(104),\n\t getDate = __webpack_require__(105),\n\t getYear = __webpack_require__(76),\n\t getMonth = __webpack_require__(81),\n\t getNewDate = __webpack_require__(108);\n\t\n\tfunction compareDay(d, shift) {\n\t var comp = getNewDate();\n\t if (shift) {\n\t setDate(comp, getDate(comp) + shift);\n\t }\n\t return getYear(d) === getYear(comp) &&\n\t getMonth(d) === getMonth(comp) &&\n\t getDate(d) === getDate(comp);\n\t}\n\t\n\tmodule.exports = compareDay;\n\n/***/ },\n/* 300 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t createDate = __webpack_require__(94);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'isAfter': function(date, d, margin) {\n\t return date.getTime() > createDate(d).getTime() - (margin || 0);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.isAfter;\n\n/***/ },\n/* 301 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t createDate = __webpack_require__(94);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'isBefore': function(date, d, margin) {\n\t return date.getTime() < createDate(d).getTime() + (margin || 0);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.isBefore;\n\n/***/ },\n/* 302 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t createDate = __webpack_require__(94),\n\t mathAliases = __webpack_require__(69);\n\t\n\tvar min = mathAliases.min,\n\t max = mathAliases.max;\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'isBetween': function(date, d1, d2, margin) {\n\t var t = date.getTime();\n\t var t1 = createDate(d1).getTime();\n\t var t2 = createDate(d2).getTime();\n\t var lo = min(t1, t2);\n\t var hi = max(t1, t2);\n\t margin = margin || 0;\n\t return (lo - margin <= t) && (hi + margin >= t);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.isBetween;\n\n/***/ },\n/* 303 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isFriday;\n\n/***/ },\n/* 304 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar buildRelativeAliases = __webpack_require__(305);\n\t\n\tbuildRelativeAliases();\n\n/***/ },\n/* 305 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t spaceSplit = __webpack_require__(63),\n\t fullCompareDate = __webpack_require__(297),\n\t namespaceAliases = __webpack_require__(112),\n\t defineInstanceSimilar = __webpack_require__(148);\n\t\n\tvar English = LocaleHelpers.English,\n\t sugarDate = namespaceAliases.sugarDate;\n\t\n\tfunction buildRelativeAliases() {\n\t var special = spaceSplit('Today Yesterday Tomorrow Weekday Weekend Future Past');\n\t var weekdays = English.weekdays.slice(0, 7);\n\t var months = English.months.slice(0, 12);\n\t var together = special.concat(weekdays).concat(months);\n\t defineInstanceSimilar(sugarDate, together, function(methods, name) {\n\t methods['is'+ name] = function(d) {\n\t return fullCompareDate(d, name);\n\t };\n\t });\n\t}\n\t\n\tmodule.exports = buildRelativeAliases;\n\n/***/ },\n/* 306 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isFuture;\n\n/***/ },\n/* 307 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isLastMonth;\n\n/***/ },\n/* 308 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isLastWeek;\n\n/***/ },\n/* 309 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isLastYear;\n\n/***/ },\n/* 310 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t getYear = __webpack_require__(76);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'isLeapYear': function(date) {\n\t var year = getYear(date);\n\t return (year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.isLeapYear;\n\n/***/ },\n/* 311 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isMonday;\n\n/***/ },\n/* 312 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isNextMonth;\n\n/***/ },\n/* 313 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isNextWeek;\n\n/***/ },\n/* 314 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isNextYear;\n\n/***/ },\n/* 315 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isPast;\n\n/***/ },\n/* 316 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isSaturday;\n\n/***/ },\n/* 317 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isSunday;\n\n/***/ },\n/* 318 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isThisMonth;\n\n/***/ },\n/* 319 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isThisWeek;\n\n/***/ },\n/* 320 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isThisYear;\n\n/***/ },\n/* 321 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isThursday;\n\n/***/ },\n/* 322 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isToday;\n\n/***/ },\n/* 323 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isTomorrow;\n\n/***/ },\n/* 324 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isTuesday;\n\n/***/ },\n/* 325 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t isUTC = __webpack_require__(326);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'isUTC': function(date) {\n\t return isUTC(date);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.isUTC;\n\n/***/ },\n/* 326 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _utc = __webpack_require__(78),\n\t tzOffset = __webpack_require__(97);\n\t\n\tfunction isUTC(d) {\n\t return !!_utc(d) || tzOffset(d) === 0;\n\t}\n\t\n\tmodule.exports = isUTC;\n\n/***/ },\n/* 327 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t dateIsValid = __webpack_require__(236);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'isValid': function(date) {\n\t return dateIsValid(date);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.isValid;\n\n/***/ },\n/* 328 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isWednesday;\n\n/***/ },\n/* 329 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isWeekday;\n\n/***/ },\n/* 330 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isWeekend;\n\n/***/ },\n/* 331 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isYesterday;\n\n/***/ },\n/* 332 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'iso': function(date) {\n\t return date.toISOString();\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.iso;\n\n/***/ },\n/* 333 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.millisecondsAgo;\n\n/***/ },\n/* 334 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.millisecondsFromNow;\n\n/***/ },\n/* 335 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.millisecondsSince;\n\n/***/ },\n/* 336 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.millisecondsUntil;\n\n/***/ },\n/* 337 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.minutesAgo;\n\n/***/ },\n/* 338 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.minutesFromNow;\n\n/***/ },\n/* 339 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.minutesSince;\n\n/***/ },\n/* 340 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.minutesUntil;\n\n/***/ },\n/* 341 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.monthsAgo;\n\n/***/ },\n/* 342 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.monthsFromNow;\n\n/***/ },\n/* 343 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.monthsSince;\n\n/***/ },\n/* 344 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.monthsUntil;\n\n/***/ },\n/* 345 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t dateRelative = __webpack_require__(346);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'relative': function(date, localeCode, fn) {\n\t return dateRelative(date, null, localeCode, fn);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.relative;\n\n/***/ },\n/* 346 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t dateFormat = __webpack_require__(269),\n\t classChecks = __webpack_require__(60),\n\t assertDateIsValid = __webpack_require__(286),\n\t getAdjustedUnitForDate = __webpack_require__(347);\n\t\n\tvar isFunction = classChecks.isFunction,\n\t localeManager = LocaleHelpers.localeManager;\n\t\n\tfunction dateRelative(d, dRelative, arg1, arg2) {\n\t var adu, format, type, localeCode, fn;\n\t assertDateIsValid(d);\n\t if (isFunction(arg1)) {\n\t fn = arg1;\n\t } else {\n\t localeCode = arg1;\n\t fn = arg2;\n\t }\n\t adu = getAdjustedUnitForDate(d, dRelative);\n\t if (fn) {\n\t format = fn.apply(d, adu.concat(localeManager.get(localeCode)));\n\t if (format) {\n\t return dateFormat(d, format, localeCode);\n\t }\n\t }\n\t // Adjust up if time is in ms, as this doesn't\n\t // look very good for a standard relative date.\n\t if (adu[1] === 0) {\n\t adu[1] = 1;\n\t adu[0] = 1;\n\t }\n\t if (dRelative) {\n\t type = 'duration';\n\t } else if (adu[2] > 0) {\n\t type = 'future';\n\t } else {\n\t type = 'past';\n\t }\n\t return localeManager.get(localeCode).getRelativeFormat(adu, type);\n\t}\n\t\n\tmodule.exports = dateRelative;\n\n/***/ },\n/* 347 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getNewDate = __webpack_require__(108),\n\t mathAliases = __webpack_require__(69),\n\t getAdjustedUnit = __webpack_require__(91),\n\t getTimeDistanceForUnit = __webpack_require__(239);\n\t\n\tvar abs = mathAliases.abs;\n\t\n\tfunction getAdjustedUnitForDate(d, dRelative) {\n\t var ms;\n\t if (!dRelative) {\n\t dRelative = getNewDate();\n\t if (d > dRelative) {\n\t // If our date is greater than the one that we got from getNewDate, it\n\t // means that we are finding the unit for a date that is in the future\n\t // relative to now. However, often the incoming date was created in\n\t // the same cycle as our comparison, but our \"now\" date will have been\n\t // created an instant after it, creating situations where \"5 minutes from\n\t // now\" becomes \"4 minutes from now\" in the same tick. To prevent this,\n\t // subtract a buffer of 10ms to compensate.\n\t dRelative = new Date(dRelative.getTime() - 10);\n\t }\n\t }\n\t ms = d - dRelative;\n\t return getAdjustedUnit(ms, function(u) {\n\t return abs(getTimeDistanceForUnit(d, dRelative, u));\n\t });\n\t}\n\t\n\tmodule.exports = getAdjustedUnitForDate;\n\n/***/ },\n/* 348 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t createDate = __webpack_require__(94),\n\t dateRelative = __webpack_require__(346);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'relativeTo': function(date, d, localeCode) {\n\t return dateRelative(date, createDate(d), localeCode);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.relativeTo;\n\n/***/ },\n/* 349 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t DateUnitIndexes = __webpack_require__(82),\n\t moveToBeginningOfUnit = __webpack_require__(133),\n\t getUnitIndexForParamName = __webpack_require__(350);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'reset': function(date, unit, localeCode) {\n\t var unitIndex = unit ? getUnitIndexForParamName(unit) : DAY_INDEX;\n\t moveToBeginningOfUnit(date, unitIndex, localeCode);\n\t return date;\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.reset;\n\n/***/ },\n/* 350 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar iterateOverDateParams = __webpack_require__(124);\n\t\n\tfunction getUnitIndexForParamName(name) {\n\t var params = {}, unitIndex;\n\t params[name] = 1;\n\t iterateOverDateParams(params, function(name, val, unit, i) {\n\t unitIndex = i;\n\t return false;\n\t });\n\t return unitIndex;\n\t}\n\t\n\tmodule.exports = getUnitIndexForParamName;\n\n/***/ },\n/* 351 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t advanceDateWithArgs = __webpack_require__(248);\n\t\n\tSugar.Date.defineInstanceWithArguments({\n\t\n\t 'rewind': function(d, args) {\n\t return advanceDateWithArgs(d, args, -1);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.rewind;\n\n/***/ },\n/* 352 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.secondsAgo;\n\n/***/ },\n/* 353 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.secondsFromNow;\n\n/***/ },\n/* 354 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.secondsSince;\n\n/***/ },\n/* 355 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.secondsUntil;\n\n/***/ },\n/* 356 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t updateDate = __webpack_require__(107),\n\t collectDateArguments = __webpack_require__(249);\n\t\n\tSugar.Date.defineInstanceWithArguments({\n\t\n\t 'set': function(d, args) {\n\t args = collectDateArguments(args);\n\t return updateDate(d, args[0], args[1]);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.set;\n\n/***/ },\n/* 357 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t setISOWeekNumber = __webpack_require__(118);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'setISOWeek': function(date, num) {\n\t return setISOWeekNumber(date, num);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.setISOWeek;\n\n/***/ },\n/* 358 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t _utc = __webpack_require__(78);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'setUTC': function(date, on) {\n\t return _utc(date, on);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.setUTC;\n\n/***/ },\n/* 359 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t setWeekday = __webpack_require__(103);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'setWeekday': function(date, dow) {\n\t return setWeekday(date, dow);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.setWeekday;\n\n/***/ },\n/* 360 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.weeksAgo;\n\n/***/ },\n/* 361 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.weeksFromNow;\n\n/***/ },\n/* 362 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.weeksSince;\n\n/***/ },\n/* 363 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.weeksUntil;\n\n/***/ },\n/* 364 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.yearsAgo;\n\n/***/ },\n/* 365 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.yearsFromNow;\n\n/***/ },\n/* 366 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.yearsSince;\n\n/***/ },\n/* 367 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.yearsUntil;\n\n/***/ },\n/* 368 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t _dateOptions = __webpack_require__(109);\n\t\n\tmodule.exports = Sugar.Date.getOption;\n\n/***/ },\n/* 369 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t _dateOptions = __webpack_require__(109);\n\t\n\tmodule.exports = Sugar.Date.setOption;\n\n/***/ },\n/* 370 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t// Static Methods\n\t__webpack_require__(371);\n\t\n\t// Prototype Methods\n\t__webpack_require__(385);\n\t__webpack_require__(388);\n\t__webpack_require__(389);\n\t__webpack_require__(390);\n\t__webpack_require__(402);\n\t__webpack_require__(403);\n\t__webpack_require__(404);\n\t__webpack_require__(405);\n\t__webpack_require__(406);\n\t__webpack_require__(407);\n\t__webpack_require__(408);\n\t__webpack_require__(409);\n\t__webpack_require__(410);\n\t__webpack_require__(412);\n\t__webpack_require__(413);\n\t__webpack_require__(414);\n\t__webpack_require__(415);\n\t__webpack_require__(416);\n\t\n\tmodule.exports = __webpack_require__(34);\n\n/***/ },\n/* 371 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t DateRangeConstructor = __webpack_require__(372);\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'range': DateRangeConstructor\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.range;\n\n/***/ },\n/* 372 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t classChecks = __webpack_require__(60),\n\t getDateForRange = __webpack_require__(376),\n\t createDateRangeFromString = __webpack_require__(377);\n\t\n\tvar isString = classChecks.isString;\n\t\n\tvar DateRangeConstructor = function(start, end) {\n\t if (arguments.length === 1 && isString(start)) {\n\t return createDateRangeFromString(start);\n\t }\n\t return new Range(getDateForRange(start), getDateForRange(end));\n\t};\n\t\n\tmodule.exports = DateRangeConstructor;\n\n/***/ },\n/* 373 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar cloneRangeMember = __webpack_require__(374);\n\t\n\tfunction Range(start, end) {\n\t this.start = cloneRangeMember(start);\n\t this.end = cloneRangeMember(end);\n\t}\n\t\n\tmodule.exports = Range;\n\n/***/ },\n/* 374 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60),\n\t getRangeMemberPrimitiveValue = __webpack_require__(375);\n\t\n\tvar isDate = classChecks.isDate;\n\t\n\tfunction cloneRangeMember(m) {\n\t if (isDate(m)) {\n\t return new Date(m.getTime());\n\t } else {\n\t return getRangeMemberPrimitiveValue(m);\n\t }\n\t}\n\t\n\tmodule.exports = cloneRangeMember;\n\n/***/ },\n/* 375 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60);\n\t\n\tvar isDate = classChecks.isDate;\n\t\n\tfunction getRangeMemberPrimitiveValue(m) {\n\t if (m == null) return m;\n\t return isDate(m) ? m.getTime() : m.valueOf();\n\t}\n\t\n\tmodule.exports = getRangeMemberPrimitiveValue;\n\n/***/ },\n/* 376 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60),\n\t namespaceAliases = __webpack_require__(112);\n\t\n\tvar isDate = classChecks.isDate,\n\t sugarDate = namespaceAliases.sugarDate;\n\t\n\tfunction getDateForRange(d) {\n\t if (isDate(d)) {\n\t return d;\n\t } else if (d == null) {\n\t return new Date();\n\t } else if (sugarDate.create) {\n\t return sugarDate.create(d);\n\t }\n\t return new Date(d);\n\t}\n\t\n\tmodule.exports = getDateForRange;\n\n/***/ },\n/* 377 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t DurationTextFormats = __webpack_require__(378),\n\t incrementDate = __webpack_require__(381),\n\t getDateForRange = __webpack_require__(376),\n\t namespaceAliases = __webpack_require__(112),\n\t getDateIncrementObject = __webpack_require__(383);\n\t\n\tvar sugarDate = namespaceAliases.sugarDate,\n\t RANGE_REG_FROM_TO = DurationTextFormats.RANGE_REG_FROM_TO,\n\t RANGE_REG_REAR_DURATION = DurationTextFormats.RANGE_REG_REAR_DURATION,\n\t RANGE_REG_FRONT_DURATION = DurationTextFormats.RANGE_REG_FRONT_DURATION;\n\t\n\tfunction createDateRangeFromString(str) {\n\t var match, datetime, duration, dio, start, end;\n\t if (sugarDate.get && (match = str.match(RANGE_REG_FROM_TO))) {\n\t start = getDateForRange(match[1].replace('from', 'at'));\n\t end = sugarDate.get(start, match[2]);\n\t return new Range(start, end);\n\t }\n\t if (match = str.match(RANGE_REG_FRONT_DURATION)) {\n\t duration = match[1];\n\t datetime = match[2];\n\t }\n\t if (match = str.match(RANGE_REG_REAR_DURATION)) {\n\t datetime = match[1];\n\t duration = match[2];\n\t }\n\t if (datetime && duration) {\n\t start = getDateForRange(datetime);\n\t dio = getDateIncrementObject(duration);\n\t end = incrementDate(start, dio[0], dio[1]);\n\t } else {\n\t start = str;\n\t }\n\t return new Range(getDateForRange(start), getDateForRange(end));\n\t}\n\t\n\tmodule.exports = createDateRangeFromString;\n\n/***/ },\n/* 378 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar FULL_CAPTURED_DURATION = __webpack_require__(379);\n\t\n\tmodule.exports = {\n\t RANGE_REG_FROM_TO: /(?:from)?\\s*(.+)\\s+(?:to|until)\\s+(.+)$/i,\n\t RANGE_REG_REAR_DURATION: RegExp('(.+)\\\\s*for\\\\s*' + FULL_CAPTURED_DURATION, 'i'),\n\t RANGE_REG_FRONT_DURATION: RegExp('(?:for)?\\\\s*'+ FULL_CAPTURED_DURATION +'\\\\s*(?:starting)?\\\\s*at\\\\s*(.+)', 'i')\n\t};\n\n/***/ },\n/* 379 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DURATION_UNITS = __webpack_require__(380);\n\t\n\tmodule.exports = '((?:\\\\d+)?\\\\s*(?:' + DURATION_UNITS + '))s?';\n\n/***/ },\n/* 380 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = 'year|month|week|day|hour|minute|second|millisecond';\n\n/***/ },\n/* 381 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar MULTIPLIERS = __webpack_require__(382),\n\t callDateSet = __webpack_require__(100),\n\t callDateGet = __webpack_require__(77);\n\t\n\tfunction incrementDate(src, amount, unit) {\n\t var mult = MULTIPLIERS[unit], d;\n\t if (mult) {\n\t d = new Date(src.getTime() + (amount * mult));\n\t } else {\n\t d = new Date(src);\n\t callDateSet(d, unit, callDateGet(src, unit) + amount);\n\t }\n\t return d;\n\t}\n\t\n\tmodule.exports = incrementDate;\n\n/***/ },\n/* 382 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar MULTIPLIERS = {\n\t 'Hours': 60 * 60 * 1000,\n\t 'Minutes': 60 * 1000,\n\t 'Seconds': 1000,\n\t 'Milliseconds': 1\n\t};\n\t\n\tmodule.exports = MULTIPLIERS;\n\n/***/ },\n/* 383 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DURATION_REG = __webpack_require__(384),\n\t classChecks = __webpack_require__(60),\n\t simpleCapitalize = __webpack_require__(237);\n\t\n\tvar isNumber = classChecks.isNumber;\n\t\n\tfunction getDateIncrementObject(amt) {\n\t var match, val, unit;\n\t if (isNumber(amt)) {\n\t return [amt, 'Milliseconds'];\n\t }\n\t match = amt.match(DURATION_REG);\n\t val = +match[1] || 1;\n\t unit = simpleCapitalize(match[2].toLowerCase());\n\t if (unit.match(/hour|minute|second/i)) {\n\t unit += 's';\n\t } else if (unit === 'Year') {\n\t unit = 'FullYear';\n\t } else if (unit === 'Week') {\n\t unit = 'Date';\n\t val *= 7;\n\t } else if (unit === 'Day') {\n\t unit = 'Date';\n\t }\n\t return [val, unit];\n\t}\n\t\n\tmodule.exports = getDateIncrementObject;\n\n/***/ },\n/* 384 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DURATION_UNITS = __webpack_require__(380);\n\t\n\tmodule.exports = RegExp('(\\\\d+)?\\\\s*('+ DURATION_UNITS +')s?', 'i');\n\n/***/ },\n/* 385 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t rangeClamp = __webpack_require__(386),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'clamp': function(obj) {\n\t return rangeClamp(this, obj);\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"clamp\" on Range.prototype.\n\n/***/ },\n/* 386 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar cloneRangeMember = __webpack_require__(374);\n\t\n\tfunction rangeClamp(range, obj) {\n\t var clamped,\n\t start = range.start,\n\t end = range.end,\n\t min = end < start ? end : start,\n\t max = start > end ? start : end;\n\t if (obj < min) {\n\t clamped = min;\n\t } else if (obj > max) {\n\t clamped = max;\n\t } else {\n\t clamped = obj;\n\t }\n\t return cloneRangeMember(clamped);\n\t}\n\t\n\tmodule.exports = rangeClamp;\n\n/***/ },\n/* 387 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar forEachProperty = coreUtilityAliases.forEachProperty;\n\t\n\tfunction defineOnPrototype(ctor, methods) {\n\t var proto = ctor.prototype;\n\t forEachProperty(methods, function(val, key) {\n\t proto[key] = val;\n\t });\n\t}\n\t\n\tmodule.exports = defineOnPrototype;\n\n/***/ },\n/* 388 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'clone': function() {\n\t return new Range(this.start, this.end);\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"clone\" on Range.prototype.\n\n/***/ },\n/* 389 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'contains': function(obj) {\n\t if (obj == null) return false;\n\t if (obj.start && obj.end) {\n\t return obj.start >= this.start && obj.start <= this.end &&\n\t obj.end >= this.start && obj.end <= this.end;\n\t } else {\n\t return obj >= this.start && obj <= this.end;\n\t }\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"contains\" on Range.prototype.\n\n/***/ },\n/* 390 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"days\" on Range.prototype.\n\n/***/ },\n/* 391 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar buildDateRangeUnits = __webpack_require__(392);\n\t\n\tbuildDateRangeUnits();\n\n/***/ },\n/* 392 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar MULTIPLIERS = __webpack_require__(382),\n\t DURATION_UNITS = __webpack_require__(380),\n\t Range = __webpack_require__(373),\n\t trunc = __webpack_require__(89),\n\t forEach = __webpack_require__(53),\n\t rangeEvery = __webpack_require__(393),\n\t simpleCapitalize = __webpack_require__(237),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tfunction buildDateRangeUnits() {\n\t var methods = {};\n\t forEach(DURATION_UNITS.split('|'), function(unit, i) {\n\t var name = unit + 's', mult, fn;\n\t if (i < 4) {\n\t fn = function() {\n\t return rangeEvery(this, unit, true);\n\t };\n\t } else {\n\t mult = MULTIPLIERS[simpleCapitalize(name)];\n\t fn = function() {\n\t return trunc((this.end - this.start) / mult);\n\t };\n\t }\n\t methods[name] = fn;\n\t });\n\t defineOnPrototype(Range, methods);\n\t}\n\t\n\tmodule.exports = buildDateRangeUnits;\n\n/***/ },\n/* 393 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60),\n\t rangeIsValid = __webpack_require__(394),\n\t incrementDate = __webpack_require__(381),\n\t incrementNumber = __webpack_require__(397),\n\t incrementString = __webpack_require__(398),\n\t getGreaterPrecision = __webpack_require__(399),\n\t getDateIncrementObject = __webpack_require__(383);\n\t\n\tvar isNumber = classChecks.isNumber,\n\t isString = classChecks.isString,\n\t isDate = classChecks.isDate,\n\t isFunction = classChecks.isFunction;\n\t\n\tfunction rangeEvery(range, step, countOnly, fn) {\n\t var increment,\n\t precision,\n\t dio,\n\t unit,\n\t start = range.start,\n\t end = range.end,\n\t inverse = end < start,\n\t current = start,\n\t index = 0,\n\t result = [];\n\t\n\t if (!rangeIsValid(range)) {\n\t return [];\n\t }\n\t if (isFunction(step)) {\n\t fn = step;\n\t step = null;\n\t }\n\t step = step || 1;\n\t if (isNumber(start)) {\n\t precision = getGreaterPrecision(start, step);\n\t increment = function() {\n\t return incrementNumber(current, step, precision);\n\t };\n\t } else if (isString(start)) {\n\t increment = function() {\n\t return incrementString(current, step);\n\t };\n\t } else if (isDate(start)) {\n\t dio = getDateIncrementObject(step);\n\t step = dio[0];\n\t unit = dio[1];\n\t increment = function() {\n\t return incrementDate(current, step, unit);\n\t };\n\t }\n\t // Avoiding infinite loops\n\t if (inverse && step > 0) {\n\t step *= -1;\n\t }\n\t while(inverse ? current >= end : current <= end) {\n\t if (!countOnly) {\n\t result.push(current);\n\t }\n\t if (fn) {\n\t fn(current, index, range);\n\t }\n\t current = increment();\n\t index++;\n\t }\n\t return countOnly ? index - 1 : result;\n\t}\n\t\n\tmodule.exports = rangeEvery;\n\n/***/ },\n/* 394 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar isValidRangeMember = __webpack_require__(395);\n\t\n\tfunction rangeIsValid(range) {\n\t return isValidRangeMember(range.start) &&\n\t isValidRangeMember(range.end) &&\n\t typeof range.start === typeof range.end;\n\t}\n\t\n\tmodule.exports = rangeIsValid;\n\n/***/ },\n/* 395 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar valueIsNotInfinite = __webpack_require__(396),\n\t getRangeMemberPrimitiveValue = __webpack_require__(375);\n\t\n\tfunction isValidRangeMember(m) {\n\t var val = getRangeMemberPrimitiveValue(m);\n\t return (!!val || val === 0) && valueIsNotInfinite(m);\n\t}\n\t\n\tmodule.exports = isValidRangeMember;\n\n/***/ },\n/* 396 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction valueIsNotInfinite(m) {\n\t return m !== -Infinity && m !== Infinity;\n\t}\n\t\n\tmodule.exports = valueIsNotInfinite;\n\n/***/ },\n/* 397 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar withPrecision = __webpack_require__(90);\n\t\n\tfunction incrementNumber(current, amount, precision) {\n\t return withPrecision(current + amount, precision);\n\t}\n\t\n\tmodule.exports = incrementNumber;\n\n/***/ },\n/* 398 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar chr = __webpack_require__(86);\n\t\n\tfunction incrementString(current, amount) {\n\t return chr(current.charCodeAt(0) + amount);\n\t}\n\t\n\tmodule.exports = incrementString;\n\n/***/ },\n/* 399 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar mathAliases = __webpack_require__(69),\n\t getPrecision = __webpack_require__(400);\n\t\n\tvar max = mathAliases.max;\n\t\n\tfunction getGreaterPrecision(n1, n2) {\n\t return max(getPrecision(n1), getPrecision(n2));\n\t}\n\t\n\tmodule.exports = getGreaterPrecision;\n\n/***/ },\n/* 400 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar periodSplit = __webpack_require__(401);\n\t\n\tfunction getPrecision(n) {\n\t var split = periodSplit(n.toString());\n\t return split[1] ? split[1].length : 0;\n\t}\n\t\n\tmodule.exports = getPrecision;\n\n/***/ },\n/* 401 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar CommonChars = __webpack_require__(59);\n\t\n\tvar HALF_WIDTH_PERIOD = CommonChars.HALF_WIDTH_PERIOD;\n\t\n\tfunction periodSplit(str) {\n\t return str.split(HALF_WIDTH_PERIOD);\n\t}\n\t\n\tmodule.exports = periodSplit;\n\n/***/ },\n/* 402 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t rangeEvery = __webpack_require__(393),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'every': function(amount, fn) {\n\t return rangeEvery(this, amount, false, fn);\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"every\" on Range.prototype.\n\n/***/ },\n/* 403 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"hours\" on Range.prototype.\n\n/***/ },\n/* 404 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'intersect': function(range) {\n\t if (range.start > this.end || range.end < this.start) {\n\t return new Range(NaN, NaN);\n\t }\n\t return new Range(\n\t this.start > range.start ? this.start : range.start,\n\t this.end < range.end ? this.end : range.end\n\t );\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"intersect\" on Range.prototype.\n\n/***/ },\n/* 405 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t rangeIsValid = __webpack_require__(394),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'isValid': function() {\n\t return rangeIsValid(this);\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"isValid\" on Range.prototype.\n\n/***/ },\n/* 406 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"milliseconds\" on Range.prototype.\n\n/***/ },\n/* 407 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"minutes\" on Range.prototype.\n\n/***/ },\n/* 408 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"months\" on Range.prototype.\n\n/***/ },\n/* 409 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"seconds\" on Range.prototype.\n\n/***/ },\n/* 410 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t mathAliases = __webpack_require__(69),\n\t rangeIsValid = __webpack_require__(394),\n\t defineOnPrototype = __webpack_require__(387),\n\t getRangeMemberNumericValue = __webpack_require__(411);\n\t\n\tvar abs = mathAliases.abs;\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'span': function() {\n\t var n = getRangeMemberNumericValue(this.end) - getRangeMemberNumericValue(this.start);\n\t return rangeIsValid(this) ? abs(n) + 1 : NaN;\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"span\" on Range.prototype.\n\n/***/ },\n/* 411 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60);\n\t\n\tvar isString = classChecks.isString;\n\t\n\tfunction getRangeMemberNumericValue(m) {\n\t return isString(m) ? m.charCodeAt(0) : m;\n\t}\n\t\n\tmodule.exports = getRangeMemberNumericValue;\n\n/***/ },\n/* 412 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t rangeEvery = __webpack_require__(393),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'toArray': function() {\n\t return rangeEvery(this);\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"toArray\" on Range.prototype.\n\n/***/ },\n/* 413 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t rangeIsValid = __webpack_require__(394),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'toString': function() {\n\t return rangeIsValid(this) ? this.start + '..' + this.end : 'Invalid Range';\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"toString\" on Range.prototype.\n\n/***/ },\n/* 414 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'union': function(range) {\n\t return new Range(\n\t this.start < range.start ? this.start : range.start,\n\t this.end > range.end ? this.end : range.end\n\t );\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"union\" on Range.prototype.\n\n/***/ },\n/* 415 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"weeks\" on Range.prototype.\n\n/***/ },\n/* 416 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"years\" on Range.prototype.\n\n/***/ },\n/* 417 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(418);\n\t__webpack_require__(419);\n\t__webpack_require__(420);\n\t__webpack_require__(421);\n\t__webpack_require__(422);\n\t__webpack_require__(423);\n\t__webpack_require__(424);\n\t__webpack_require__(425);\n\t__webpack_require__(426);\n\t__webpack_require__(427);\n\t__webpack_require__(428);\n\t__webpack_require__(429);\n\t__webpack_require__(430);\n\t__webpack_require__(431);\n\t__webpack_require__(432);\n\t__webpack_require__(433);\n\t__webpack_require__(434);\n\t\n\tmodule.exports = __webpack_require__(34);\n\n/***/ },\n/* 418 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Catalan locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('ca')\n\t *\n\t */\n\taddLocale('ca', {\n\t 'plural': true,\n\t 'units': 'milisegon:|s,segon:|s,minut:|s,hor:a|es,di:a|es,setman:a|es,mes:|os,any:|s',\n\t 'months': 'gen:er|,febr:er|,mar:ç|,abr:il|,mai:g|,jun:y|,jul:iol|,ag:ost|,set:embre|,oct:ubre|,nov:embre|,des:embre|',\n\t 'weekdays': 'diumenge|dg,dilluns|dl,dimarts|dt,dimecres|dc,dijous|dj,divendres|dv,dissabte|ds',\n\t 'numerals': 'zero,un,dos,tres,quatre,cinc,sis,set,vuit,nou,deu',\n\t 'tokens': 'el,la,de',\n\t 'short': '{dd}/{MM}/{yyyy}',\n\t 'medium': '{d} {month} {yyyy}',\n\t 'long': '{d} {month} {yyyy} {time}',\n\t 'full': '{weekday} {d} {month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{sign} {num} {unit}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': 'a las',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': \"abans d'ahir\", 'value': -2 },\n\t { 'name': 'day', 'src': 'ahir', 'value': -1 },\n\t { 'name': 'day', 'src': 'avui', 'value': 0 },\n\t { 'name': 'day', 'src': 'demà|dema', 'value': 1 },\n\t { 'name': 'sign', 'src': 'fa', 'value': -1 },\n\t { 'name': 'sign', 'src': 'en', 'value': 1 },\n\t { 'name': 'shift', 'src': 'passat', 'value': -1 },\n\t { 'name': 'shift', 'src': 'el proper|la propera', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{sign} {num} {unit}',\n\t '{num} {unit} {sign}',\n\t '{0?}{1?} {unit:5-7} {shift}',\n\t '{0?}{1?} {shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift} {weekday}',\n\t '{weekday} {shift}',\n\t '{date?} {2?} {months}\\\\.? {2?} {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"ca\" locale.\n\n/***/ },\n/* 419 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Danish locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('da')\n\t *\n\t */\n\taddLocale('da', {\n\t 'plural': true,\n\t 'units': 'millisekund:|er,sekund:|er,minut:|ter,tim:e|er,dag:|e,ug:e|er|en,måned:|er|en+maaned:|er|en,år:||et+aar:||et',\n\t 'months': 'jan:uar|,feb:ruar|,mar:ts|,apr:il|,maj,jun:i|,jul:i|,aug:ust|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',\n\t 'weekdays': 'søn:dag|+son:dag|,man:dag|,tir:sdag|,ons:dag|,tor:sdag|,fre:dag|,lør:dag|+lor:dag|',\n\t 'numerals': 'nul,en|et,to,tre,fire,fem,seks,syv,otte,ni,ti',\n\t 'tokens': 'den,for',\n\t 'articles': 'den',\n\t 'short': '{dd}-{MM}-{yyyy}',\n\t 'medium': '{d}. {month} {yyyy}',\n\t 'long': '{d}. {month} {yyyy} {time}',\n\t 'full': '{weekday} d. {d}. {month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'forgårs|i forgårs|forgaars|i forgaars', 'value': -2 },\n\t { 'name': 'day', 'src': 'i går|igår|i gaar|igaar', 'value': -1 },\n\t { 'name': 'day', 'src': 'i dag|idag', 'value': 0 },\n\t { 'name': 'day', 'src': 'i morgen|imorgen', 'value': 1 },\n\t { 'name': 'day', 'src': 'over morgon|overmorgen|i over morgen|i overmorgen|iovermorgen', 'value': 2 },\n\t { 'name': 'sign', 'src': 'siden', 'value': -1 },\n\t { 'name': 'sign', 'src': 'om', 'value': 1 },\n\t { 'name': 'shift', 'src': 'i sidste|sidste', 'value': -1 },\n\t { 'name': 'shift', 'src': 'denne', 'value': 0 },\n\t { 'name': 'shift', 'src': 'næste|naeste', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{num} {unit} {sign}',\n\t '{sign} {num} {unit}',\n\t '{1?} {num} {unit} {sign}',\n\t '{shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{date} {months?}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift} {weekday}',\n\t '{0?} {weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"da\" locale.\n\n/***/ },\n/* 420 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * German locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('de')\n\t *\n\t */\n\taddLocale('de', {\n\t 'plural': true,\n\t 'units': 'Millisekunde:|n,Sekunde:|n,Minute:|n,Stunde:|n,Tag:|en,Woche:|n,Monat:|en,Jahr:|en|e',\n\t 'months': 'Jan:uar|,Feb:ruar|,M:är|ärz|ar|arz,Apr:il|,Mai,Juni,Juli,Aug:ust|,Sept:ember|,Okt:ober|,Nov:ember|,Dez:ember|',\n\t 'weekdays': 'So:nntag|,Mo:ntag|,Di:enstag|,Mi:ttwoch|,Do:nnerstag|,Fr:eitag|,Sa:mstag|',\n\t 'numerals': 'null,ein:|e|er|en|em,zwei,drei,vier,fuenf,sechs,sieben,acht,neun,zehn',\n\t 'tokens': 'der',\n\t 'short': '{dd}.{MM}.{yyyy}',\n\t 'medium': '{d}. {Month} {yyyy}',\n\t 'long': '{d}. {Month} {yyyy} {time}',\n\t 'full': '{Weekday}, {d}. {Month} {yyyy} {time}',\n\t 'stamp': '{Dow} {d} {Mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{sign} {num} {unit}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': 'um',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'vorgestern', 'value': -2 },\n\t { 'name': 'day', 'src': 'gestern', 'value': -1 },\n\t { 'name': 'day', 'src': 'heute', 'value': 0 },\n\t { 'name': 'day', 'src': 'morgen', 'value': 1 },\n\t { 'name': 'day', 'src': 'übermorgen|ubermorgen|uebermorgen', 'value': 2 },\n\t { 'name': 'sign', 'src': 'vor:|her', 'value': -1 },\n\t { 'name': 'sign', 'src': 'in', 'value': 1 },\n\t { 'name': 'shift', 'src': 'letzte:|r|n|s', 'value': -1 },\n\t { 'name': 'shift', 'src': 'nächste:|r|n|s+nachste:|r|n|s+naechste:|r|n|s+kommende:n|r', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{sign} {num} {unit}',\n\t '{num} {unit} {sign}',\n\t '{shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift?} {day|weekday}',\n\t '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift} {weekday}',\n\t '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"de\" locale.\n\n/***/ },\n/* 421 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Spanish locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('es')\n\t *\n\t */\n\taddLocale('es', {\n\t 'plural': true,\n\t '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',\n\t '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|',\n\t 'weekdays': 'dom:ingo|,lun:es|,mar:tes|,mié:rcoles|+mie:rcoles|,jue:ves|,vie:rnes|,sáb:ado|+sab:ado|',\n\t 'numerals': 'cero,uno,dos,tres,cuatro,cinco,seis,siete,ocho,nueve,diez',\n\t 'tokens': 'el,la,de',\n\t 'short': '{dd}/{MM}/{yyyy}',\n\t 'medium': '{d} de {Month} de {yyyy}',\n\t 'long': '{d} de {Month} de {yyyy} {time}',\n\t 'full': '{weekday}, {d} de {month} de {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{sign} {num} {unit}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': 'a las',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'anteayer', 'value': -2 },\n\t { 'name': 'day', 'src': 'ayer', 'value': -1 },\n\t { 'name': 'day', 'src': 'hoy', 'value': 0 },\n\t { 'name': 'day', 'src': 'mañana|manana', 'value': 1 },\n\t { 'name': 'sign', 'src': 'hace', 'value': -1 },\n\t { 'name': 'sign', 'src': 'dentro de', 'value': 1 },\n\t { 'name': 'shift', 'src': 'pasad:o|a', 'value': -1 },\n\t { 'name': 'shift', 'src': 'próximo|próxima|proximo|proxima', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {2?} {year?}',\n\t '{sign} {num} {unit}',\n\t '{num} {unit} {sign}',\n\t '{0?}{1?} {unit:5-7} {shift}',\n\t '{0?}{1?} {shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift?} {day|weekday} {shift?}',\n\t '{date} {2?} {months?}\\\\.? {2?} {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift?} {weekday} {shift?}',\n\t '{date} {2?} {months?}\\\\.? {2?} {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"es\" locale.\n\n/***/ },\n/* 422 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Finnish locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('fi')\n\t *\n\t */\n\taddLocale('fi', {\n\t 'plural': true,\n\t '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',\n\t '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',\n\t 'weekdays': 'su:nnuntai||nnuntaina,ma:anantai||anantaina,ti:istai||istaina,ke:skiviikko||skiviikkona,to:rstai||rstaina,pe:rjantai||rjantaina,la:uantai||uantaina',\n\t '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',\n\t 'short': '{d}.{M}.{yyyy}',\n\t 'medium': '{d}. {month} {yyyy}',\n\t 'long': '{d}. {month} {yyyy} klo {time}',\n\t 'full': '{weekday} {d}. {month} {yyyy} klo {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}.{mm}',\n\t 'timeMarkers': 'klo,kello',\n\t 'ordinalSuffix': '.',\n\t 'relative': function(num, unit, ms, format) {\n\t var units = this['units'];\n\t function numberWithUnit(mult) {\n\t return num + ' ' + units[(8 * mult) + unit];\n\t }\n\t function baseUnit() {\n\t return numberWithUnit(num === 1 ? 0 : 1);\n\t }\n\t switch(format) {\n\t case 'duration': return baseUnit();\n\t case 'past': return baseUnit() + ' sitten';\n\t case 'future': return numberWithUnit(2) + ' kuluttua';\n\t }\n\t },\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'toissa päivänä', 'value': -2 },\n\t { 'name': 'day', 'src': 'eilen|eilistä', 'value': -1 },\n\t { 'name': 'day', 'src': 'tänään', 'value': 0 },\n\t { 'name': 'day', 'src': 'huomenna|huomista', 'value': 1 },\n\t { 'name': 'day', 'src': 'ylihuomenna|ylihuomista', 'value': 2 },\n\t { 'name': 'sign', 'src': 'sitten|aiemmin', 'value': -1 },\n\t { 'name': 'sign', 'src': 'päästä|kuluttua|myöhemmin', 'value': 1 },\n\t { 'name': 'edge', 'src': 'lopussa', 'value': 2 },\n\t { 'name': 'edge', 'src': 'ensimmäinen|ensimmäisenä', 'value': -2 },\n\t { 'name': 'shift', 'src': 'edel:linen|lisenä', 'value': -1 },\n\t { 'name': 'shift', 'src': 'viime', 'value': -1 },\n\t { 'name': 'shift', 'src': 'tä:llä|ssä|nä|mä', 'value': 0 },\n\t { 'name': 'shift', 'src': 'seuraava|seuraavana|tuleva|tulevana|ensi', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift?} {day|weekday}',\n\t '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift?} {day|weekday}',\n\t '{num?} {unit} {sign}',\n\t '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"fi\" locale.\n\n/***/ },\n/* 423 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * French locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('fr')\n\t *\n\t */\n\taddLocale('fr', {\n\t 'plural': true,\n\t 'units': 'milliseconde:|s,seconde:|s,minute:|s,heure:|s,jour:|s,semaine:|s,mois,an:|s|née|nee',\n\t '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|',\n\t 'weekdays': 'dim:anche|,lun:di|,mar:di|,mer:credi|,jeu:di|,ven:dredi|,sam:edi|',\n\t 'numerals': 'zéro,un:|e,deux,trois,quatre,cinq,six,sept,huit,neuf,dix',\n\t 'tokens': \"l'|la|le,er\",\n\t 'short': '{dd}/{MM}/{yyyy}',\n\t 'medium': '{d} {month} {yyyy}',\n\t 'long': '{d} {month} {yyyy} {time}',\n\t 'full': '{weekday} {d} {month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{sign} {num} {unit}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': 'à',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'hier', 'value': -1 },\n\t { 'name': 'day', 'src': \"aujourd'hui\", 'value': 0 },\n\t { 'name': 'day', 'src': 'demain', 'value': 1 },\n\t { 'name': 'sign', 'src': 'il y a', 'value': -1 },\n\t { 'name': 'sign', 'src': \"dans|d'ici\", 'value': 1 },\n\t { 'name': 'shift', 'src': 'derni:èr|er|ère|ere', 'value': -1 },\n\t { 'name': 'shift', 'src': 'prochain:|e', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{sign} {num} {unit}',\n\t '{0?} {unit:5-7} {shift}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday} {shift?}',\n\t '{weekday?},? {0?} {date}{1?} {months}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{0?} {weekday} {shift}',\n\t '{weekday?},? {0?} {date}{1?} {months}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"fr\" locale.\n\n/***/ },\n/* 424 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Italian locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('it')\n\t *\n\t */\n\taddLocale('it', {\n\t 'plural': true,\n\t 'units': 'millisecond:o|i,second:o|i,minut:o|i,or:a|e,giorn:o|i,settiman:a|e,mes:e|i,ann:o|i',\n\t 'months': 'gen:naio|,feb:braio|,mar:zo|,apr:ile|,mag:gio|,giu:gno|,lug:lio|,ago:sto|,set:tembre|,ott:obre|,nov:embre|,dic:embre|',\n\t 'weekdays': 'dom:enica|,lun:edì||edi,mar:tedì||tedi,mer:coledì||coledi,gio:vedì||vedi,ven:erdì||erdi,sab:ato|',\n\t 'numerals': \"zero,un:|a|o|',due,tre,quattro,cinque,sei,sette,otto,nove,dieci\",\n\t 'tokens': \"l'|la|il\",\n\t 'short': '{dd}/{MM}/{yyyy}',\n\t 'medium': '{d} {month} {yyyy}',\n\t 'long': '{d} {month} {yyyy} {time}',\n\t 'full': '{weekday}, {d} {month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{num} {unit} {sign}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': 'alle',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'ieri', 'value': -1 },\n\t { 'name': 'day', 'src': 'oggi', 'value': 0 },\n\t { 'name': 'day', 'src': 'domani', 'value': 1 },\n\t { 'name': 'day', 'src': 'dopodomani', 'value': 2 },\n\t { 'name': 'sign', 'src': 'fa', 'value': -1 },\n\t { 'name': 'sign', 'src': 'da adesso', 'value': 1 },\n\t { 'name': 'shift', 'src': 'scors:o|a', 'value': -1 },\n\t { 'name': 'shift', 'src': 'prossim:o|a', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{num} {unit} {sign}',\n\t '{0?} {unit:5-7} {shift}',\n\t '{0?} {shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift?} {day|weekday}',\n\t '{weekday?},? {date} {months?}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift?} {day|weekday}',\n\t '{weekday?},? {date} {months?}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"it\" locale.\n\n/***/ },\n/* 425 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Japanese locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('ja')\n\t *\n\t */\n\taddLocale('ja', {\n\t 'ampmFront': true,\n\t 'numeralUnits': true,\n\t 'allowsFullWidth': true,\n\t 'timeMarkerOptional': true,\n\t 'firstDayOfWeek': 0,\n\t 'firstDayOfWeekYear': 1,\n\t 'units': 'ミリ秒,秒,分,時間,日,週間|週,ヶ月|ヵ月|月,年|年度',\n\t 'weekdays': '日:曜日||曜,月:曜日||曜,火:曜日||曜,水:曜日||曜,木:曜日||曜,金:曜日||曜,土:曜日||曜',\n\t 'numerals': '〇,一,二,三,四,五,六,七,八,九',\n\t 'placeholders': '十,百,千,万',\n\t 'timeSuffixes': ',秒,分,時,日,,月,年度?',\n\t 'short': '{yyyy}/{MM}/{dd}',\n\t 'medium': '{yyyy}年{M}月{d}日',\n\t 'long': '{yyyy}年{M}月{d}日{time}',\n\t 'full': '{yyyy}年{M}月{d}日{time} {weekday}',\n\t 'stamp': '{yyyy}年{M}月{d}日 {H}:{mm} {dow}',\n\t 'time': '{tt}{h}時{mm}分',\n\t 'past': '{num}{unit}{sign}',\n\t 'future': '{num}{unit}{sign}',\n\t 'duration': '{num}{unit}',\n\t 'ampm': '午前,午後',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': '一昨々日|前々々日', 'value': -3 },\n\t { 'name': 'day', 'src': '一昨日|おととい|前々日', 'value': -2 },\n\t { 'name': 'day', 'src': '昨日|前日', 'value': -1 },\n\t { 'name': 'day', 'src': '今日|当日|本日', 'value': 0 },\n\t { 'name': 'day', 'src': '明日|翌日|次日', 'value': 1 },\n\t { 'name': 'day', 'src': '明後日|翌々日', 'value': 2 },\n\t { 'name': 'day', 'src': '明々後日|翌々々日', 'value': 3 },\n\t { 'name': 'sign', 'src': '前', 'value': -1 },\n\t { 'name': 'sign', 'src': '後', 'value': 1 },\n\t { 'name': 'edge', 'src': '始|初日|頭', 'value': -2 },\n\t { 'name': 'edge', 'src': '末|尻', 'value': 2 },\n\t { 'name': 'edge', 'src': '末日', 'value': 1 },\n\t { 'name': 'shift', 'src': '一昨々|前々々', 'value': -3 },\n\t { 'name': 'shift', 'src': '一昨|前々|先々', 'value': -2 },\n\t { 'name': 'shift', 'src': '先|昨|去|前', 'value': -1 },\n\t { 'name': 'shift', 'src': '今|本|当', 'value': 0 },\n\t { 'name': 'shift', 'src': '来|明|翌|次', 'value': 1 },\n\t { 'name': 'shift', 'src': '明後|翌々|次々|再来|さ来', 'value': 2 },\n\t { 'name': 'shift', 'src': '明々後|翌々々', 'value': 3 }\n\t ],\n\t 'parse': [\n\t '{month}{edge}',\n\t '{num}{unit}{sign}',\n\t '{year?}{month}',\n\t '{year}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{shift}{unit:5}{weekday?}',\n\t '{shift}{unit:7}{month}{edge}',\n\t '{shift}{unit:7}{month?}{date?}',\n\t '{shift}{unit:6}{edge?}{date?}',\n\t '{year?}{month?}{date}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"ja\" locale.\n\n/***/ },\n/* 426 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Korean locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('ko')\n\t *\n\t */\n\taddLocale('ko', {\n\t 'ampmFront': true,\n\t 'numeralUnits': true,\n\t 'units': '밀리초,초,분,시간,일,주,개월|달,년|해',\n\t 'weekdays': '일:요일|,월:요일|,화:요일|,수:요일|,목:요일|,금:요일|,토:요일|',\n\t 'numerals': '영|제로,일|한,이,삼,사,오,육,칠,팔,구,십',\n\t 'short': '{yyyy}.{MM}.{dd}',\n\t 'medium': '{yyyy}년 {M}월 {d}일',\n\t 'long': '{yyyy}년 {M}월 {d}일 {time}',\n\t 'full': '{yyyy}년 {M}월 {d}일 {weekday} {time}',\n\t 'stamp': '{yyyy}년 {M}월 {d}일 {H}:{mm} {dow}',\n\t 'time': '{tt} {h}시 {mm}분',\n\t 'past': '{num}{unit} {sign}',\n\t 'future': '{num}{unit} {sign}',\n\t 'duration': '{num}{unit}',\n\t 'timeSuffixes': ',초,분,시,일,,월,년',\n\t 'ampm': '오전,오후',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': '그저께', 'value': -2 },\n\t { 'name': 'day', 'src': '어제', 'value': -1 },\n\t { 'name': 'day', 'src': '오늘', 'value': 0 },\n\t { 'name': 'day', 'src': '내일', 'value': 1 },\n\t { 'name': 'day', 'src': '모레', 'value': 2 },\n\t { 'name': 'sign', 'src': '전', 'value': -1 },\n\t { 'name': 'sign', 'src': '후', 'value': 1 },\n\t { 'name': 'shift', 'src': '지난|작', 'value': -1 },\n\t { 'name': 'shift', 'src': '이번|올', 'value': 0 },\n\t { 'name': 'shift', 'src': '다음|내', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{num}{unit} {sign}',\n\t '{shift?} {unit:5-7}',\n\t '{year?} {month}',\n\t '{year}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{shift} {unit:5?} {weekday}',\n\t '{year?} {month?} {date} {weekday?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"ko\" locale.\n\n/***/ },\n/* 427 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Dutch locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('nl')\n\t *\n\t */\n\taddLocale('nl', {\n\t 'plural': true,\n\t 'units': 'milliseconde:|n,seconde:|n,minu:ut|ten,uur,dag:|en,we:ek|ken,maand:|en,jaar',\n\t 'months': 'jan:uari|,feb:ruari|,maart|mrt,apr:il|,mei,jun:i|,jul:i|,aug:ustus|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',\n\t 'weekdays': 'zondag|zo,maandag|ma,dinsdag|di,woensdag|wo|woe,donderdag|do,vrijdag|vr|vrij,zaterdag|za',\n\t 'numerals': 'nul,een,twee,drie,vier,vijf,zes,zeven,acht,negen,tien',\n\t 'short': '{dd}-{MM}-{yyyy}',\n\t 'medium': '{d} {month} {yyyy}',\n\t 'long': '{d} {Month} {yyyy} {time}',\n\t 'full': '{weekday} {d} {Month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {Mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{num} {unit} {sign}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': \"'s,om\",\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'gisteren', 'value': -1 },\n\t { 'name': 'day', 'src': 'vandaag', 'value': 0 },\n\t { 'name': 'day', 'src': 'morgen', 'value': 1 },\n\t { 'name': 'day', 'src': 'overmorgen', 'value': 2 },\n\t { 'name': 'sign', 'src': 'geleden', 'value': -1 },\n\t { 'name': 'sign', 'src': 'vanaf nu', 'value': 1 },\n\t { 'name': 'shift', 'src': 'laatste|vorige|afgelopen', 'value': -1 },\n\t { 'name': 'shift', 'src': 'volgend:|e', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{num} {unit} {sign}',\n\t '{0?} {unit:5-7} {shift}',\n\t '{0?} {shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift?} {day|weekday}',\n\t '{weekday?},? {date} {months?}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift?} {day|weekday}',\n\t '{weekday?},? {date} {months?}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"nl\" locale.\n\n/***/ },\n/* 428 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Norwegian locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('no')\n\t *\n\t */\n\taddLocale('no', {\n\t 'plural': true,\n\t 'units': 'millisekund:|er,sekund:|er,minutt:|er,tim:e|er,dag:|er,uk:e|er|en,måned:|er|en+maaned:|er|en,år:||et+aar:||et',\n\t 'months': 'januar,februar,mars,april,mai,juni,juli,august,september,oktober,november,desember',\n\t 'weekdays': 'søndag|sondag,mandag,tirsdag,onsdag,torsdag,fredag,lørdag|lordag',\n\t 'numerals': 'en|et,to,tre,fire,fem,seks,sju|syv,åtte,ni,ti',\n\t 'tokens': 'den,for',\n\t 'articles': 'den',\n\t 'short':'d. {d}. {month} {yyyy}',\n\t 'long': 'den {d}. {month} {yyyy} {H}:{mm}',\n\t 'full': '{Weekday} den {d}. {month} {yyyy} {H}:{mm}:{ss}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'forgårs|i forgårs|forgaars|i forgaars', 'value': -2 },\n\t { 'name': 'day', 'src': 'i går|igår|i gaar|igaar', 'value': -1 },\n\t { 'name': 'day', 'src': 'i dag|idag', 'value': 0 },\n\t { 'name': 'day', 'src': 'i morgen|imorgen', 'value': 1 },\n\t { 'name': 'day', 'src': 'overimorgen|overmorgen|over i morgen', 'value': 2 },\n\t { 'name': 'sign', 'src': 'siden', 'value': -1 },\n\t { 'name': 'sign', 'src': 'om', 'value': 1 },\n\t { 'name': 'shift', 'src': 'i siste|siste', 'value': -1 },\n\t { 'name': 'shift', 'src': 'denne', 'value': 0 },\n\t { 'name': 'shift', 'src': 'neste', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{num} {unit} {sign}',\n\t '{sign} {num} {unit}',\n\t '{1?} {num} {unit} {sign}',\n\t '{shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{date} {month}',\n\t '{shift} {weekday}',\n\t '{0?} {weekday?},? {date?} {month}\\\\.? {year}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"no\" locale.\n\n/***/ },\n/* 429 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Polish locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('pl')\n\t *\n\t */\n\taddLocale('pl', {\n\t 'plural': true,\n\t 'units': 'milisekund:a|y|,sekund:a|y|,minut:a|y|,godzin:a|y|,dzień|dni|dni,tydzień|tygodnie|tygodni,miesiąc|miesiące|miesięcy,rok|lata|lat',\n\t 'months': 'sty:cznia||czeń,lut:ego||y,mar:ca||zec,kwi:etnia||ecień,maj:a|,cze:rwca||rwiec,lip:ca||iec,sie:rpnia||rpień,wrz:eśnia||esień,paź:dziernika||dziernik,lis:topada||topad,gru:dnia||dzień',\n\t 'weekdays': 'nie:dziela||dzielę,pon:iedziałek|,wt:orek|,śr:oda||odę,czw:artek|,piątek|pt,sobota|sb|sobotę',\n\t 'numerals': 'zero,jeden|jedną,dwa|dwie,trzy,cztery,pięć,sześć,siedem,osiem,dziewięć,dziesięć',\n\t 'tokens': 'w|we,roku',\n\t 'short': '{dd}.{MM}.{yyyy}',\n\t 'medium': '{d} {month} {yyyy}',\n\t 'long': '{d} {month} {yyyy} {time}',\n\t 'full' : '{weekday}, {d} {month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'timeMarkers': 'o',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'przedwczoraj', 'value': -2 },\n\t { 'name': 'day', 'src': 'wczoraj', 'value': -1 },\n\t { 'name': 'day', 'src': 'dzisiaj|dziś', 'value': 0 },\n\t { 'name': 'day', 'src': 'jutro', 'value': 1 },\n\t { 'name': 'day', 'src': 'pojutrze', 'value': 2 },\n\t { 'name': 'sign', 'src': 'temu|przed', 'value': -1 },\n\t { 'name': 'sign', 'src': 'za', 'value': 1 },\n\t { 'name': 'shift', 'src': 'zeszły|zeszła|ostatni|ostatnia', 'value': -1 },\n\t { 'name': 'shift', 'src': 'następny|następna|następnego|przyszły|przyszła|przyszłego', 'value': 1 }\n\t ],\n\t 'relative': function (num, unit, ms, format) {\n\t // special cases for relative days\n\t var DAY = 4;\n\t if (unit === DAY) {\n\t if (num === 1 && format === 'past') return 'wczoraj';\n\t if (num === 1 && format === 'future') return 'jutro';\n\t if (num === 2 && format === 'past') return 'przedwczoraj';\n\t if (num === 2 && format === 'future') return 'pojutrze';\n\t }\n\t\n\t var mult;\n\t var last = +num.toFixed(0).slice(-1);\n\t var last2 = +num.toFixed(0).slice(-2);\n\t switch (true) {\n\t case num === 1: mult = 0; break;\n\t case last2 >= 12 && last2 <= 14: mult = 2; break;\n\t case last >= 2 && last <= 4: mult = 1; break;\n\t default: mult = 2;\n\t }\n\t var text = this['units'][(mult * 8) + unit];\n\t var prefix = num + ' ';\n\t\n\t // changing to accusative case for 'past' and 'future' formats\n\t // (only singular feminine unit words are different in accusative, each of which ends with 'a')\n\t if ((format === 'past' || format === 'future') && num === 1) {\n\t text = text.replace(/a$/, 'ę');\n\t }\n\t\n\t text = prefix + text;\n\t switch (format) {\n\t case 'duration': return text;\n\t case 'past': return text + ' temu';\n\t case 'future': return 'za ' + text;\n\t }\n\t },\n\t 'parse': [\n\t '{num} {unit} {sign}',\n\t '{sign} {num} {unit}',\n\t '{months} {year?}',\n\t '{shift} {unit:5-7}',\n\t '{0} {shift?} {weekday}'\n\t ],\n\t 'timeFrontParse': [\n\t '{day|weekday}',\n\t '{date} {months} {year?} {1?}',\n\t '{0?} {shift?} {weekday}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"pl\" locale.\n\n/***/ },\n/* 430 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Portuguese locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('pt')\n\t *\n\t */\n\taddLocale('pt', {\n\t 'plural': true,\n\t 'units': 'milisegundo:|s,segundo:|s,minuto:|s,hora:|s,dia:|s,semana:|s,mês|mêses|mes|meses,ano:|s',\n\t 'months': 'jan:eiro|,fev:ereiro|,mar:ço|,abr:il|,mai:o|,jun:ho|,jul:ho|,ago:sto|,set:embro|,out:ubro|,nov:embro|,dez:embro|',\n\t 'weekdays': 'dom:ingo|,seg:unda-feira|,ter:ça-feira|,qua:rta-feira|,qui:nta-feira|,sex:ta-feira|,sáb:ado||ado',\n\t 'numerals': 'zero,um:|a,dois|duas,três|tres,quatro,cinco,seis,sete,oito,nove,dez',\n\t 'tokens': 'a,de',\n\t 'short': '{dd}/{MM}/{yyyy}',\n\t 'medium': '{d} de {Month} de {yyyy}',\n\t 'long': '{d} de {Month} de {yyyy} {time}',\n\t 'full': '{Weekday}, {d} de {Month} de {yyyy} {time}',\n\t 'stamp': '{Dow} {d} {Mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': 'às',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'anteontem', 'value': -2 },\n\t { 'name': 'day', 'src': 'ontem', 'value': -1 },\n\t { 'name': 'day', 'src': 'hoje', 'value': 0 },\n\t { 'name': 'day', 'src': 'amanh:ã|a', 'value': 1 },\n\t { 'name': 'sign', 'src': 'atrás|atras|há|ha', 'value': -1 },\n\t { 'name': 'sign', 'src': 'daqui a', 'value': 1 },\n\t { 'name': 'shift', 'src': 'passad:o|a', 'value': -1 },\n\t { 'name': 'shift', 'src': 'próximo|próxima|proximo|proxima', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {1?} {year?}',\n\t '{num} {unit} {sign}',\n\t '{sign} {num} {unit}',\n\t '{0?} {unit:5-7} {shift}',\n\t '{0?} {shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift?} {day|weekday}',\n\t '{0?} {shift} {weekday}',\n\t '{date} {1?} {months?} {1?} {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift?} {day|weekday}',\n\t '{date} {1?} {months?} {1?} {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"pt\" locale.\n\n/***/ },\n/* 431 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Russian locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('ru')\n\t *\n\t */\n\taddLocale('ru', {\n\t 'firstDayOfWeekYear': 1,\n\t 'units': 'миллисекунд:а|у|ы|,секунд:а|у|ы|,минут:а|у|ы|,час:||а|ов,день|день|дня|дней,недел:я|ю|и|ь|е,месяц:||а|ев|е,год|год|года|лет|году',\n\t 'months': 'янв:аря||.|арь,фев:раля||р.|раль,мар:та||т,апр:еля||.|ель,мая|май,июн:я||ь,июл:я||ь,авг:уста||.|уст,сен:тября||т.|тябрь,окт:ября||.|ябрь,ноя:бря||брь,дек:абря||.|абрь',\n\t 'weekdays': 'воскресенье|вс,понедельник|пн,вторник|вт,среда|ср,четверг|чт,пятница|пт,суббота|сб',\n\t 'numerals': 'ноль,од:ин|ну,дв:а|е,три,четыре,пять,шесть,семь,восемь,девять,десять',\n\t 'tokens': 'в|на,г\\\\.?(?:ода)?',\n\t 'short': '{dd}.{MM}.{yyyy}',\n\t 'medium': '{d} {month} {yyyy} г.',\n\t 'long': '{d} {month} {yyyy} г., {time}',\n\t 'full': '{weekday}, {d} {month} {yyyy} г., {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'timeMarkers': 'в',\n\t 'ampm': ' утра, вечера',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'позавчера', 'value': -2 },\n\t { 'name': 'day', 'src': 'вчера', 'value': -1 },\n\t { 'name': 'day', 'src': 'сегодня', 'value': 0 },\n\t { 'name': 'day', 'src': 'завтра', 'value': 1 },\n\t { 'name': 'day', 'src': 'послезавтра', 'value': 2 },\n\t { 'name': 'sign', 'src': 'назад', 'value': -1 },\n\t { 'name': 'sign', 'src': 'через', 'value': 1 },\n\t { 'name': 'shift', 'src': 'прошл:ый|ой|ом', 'value': -1 },\n\t { 'name': 'shift', 'src': 'следующ:ий|ей|ем', 'value': 1 }\n\t ],\n\t 'relative': function(num, unit, ms, format) {\n\t var numberWithUnit, last = num.toString().slice(-1), mult;\n\t switch(true) {\n\t case num >= 11 && num <= 15: mult = 3; break;\n\t case last == 1: mult = 1; break;\n\t case last >= 2 && last <= 4: mult = 2; break;\n\t default: mult = 3;\n\t }\n\t numberWithUnit = num + ' ' + this['units'][(mult * 8) + unit];\n\t switch(format) {\n\t case 'duration': return numberWithUnit;\n\t case 'past': return numberWithUnit + ' назад';\n\t case 'future': return 'через ' + numberWithUnit;\n\t }\n\t },\n\t 'parse': [\n\t '{num} {unit} {sign}',\n\t '{sign} {num} {unit}',\n\t '{months} {year?}',\n\t '{0?} {shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{0?} {shift} {weekday}',\n\t '{date} {months?} {year?} {1?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{0?} {shift} {weekday}',\n\t '{date} {months?} {year?} {1?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"ru\" locale.\n\n/***/ },\n/* 432 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Swedish locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('sv')\n\t *\n\t */\n\taddLocale('sv', {\n\t 'plural': true,\n\t 'units': 'millisekund:|er,sekund:|er,minut:|er,timm:e|ar,dag:|ar,veck:a|or|an,månad:|er|en+manad:|er|en,år:||et+ar:||et',\n\t 'months': 'jan:uari|,feb:ruari|,mar:s|,apr:il|,maj,jun:i|,jul:i|,aug:usti|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',\n\t 'weekdays': 'sön:dag|+son:dag|,mån:dag||dagen+man:dag||dagen,tis:dag|,ons:dag|,tor:sdag|,fre:dag|,lör:dag||dag',\n\t 'numerals': 'noll,en|ett,två|tva,tre,fyra,fem,sex,sju,åtta|atta,nio,tio',\n\t 'tokens': 'den,för|for',\n\t 'articles': 'den',\n\t 'short': '{yyyy}-{MM}-{dd}',\n\t 'medium': '{d} {month} {yyyy}',\n\t 'long': '{d} {month} {yyyy} {time}',\n\t 'full': '{weekday} {d} {month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'förrgår|i förrgår|iförrgår|forrgar|i forrgar|iforrgar', 'value': -2 },\n\t { 'name': 'day', 'src': 'går|i går|igår|gar|i gar|igar', 'value': -1 },\n\t { 'name': 'day', 'src': 'dag|i dag|idag', 'value': 0 },\n\t { 'name': 'day', 'src': 'morgon|i morgon|imorgon', 'value': 1 },\n\t { 'name': 'day', 'src': 'över morgon|övermorgon|i över morgon|i övermorgon|iövermorgon|over morgon|overmorgon|i over morgon|i overmorgon|iovermorgon', 'value': 2 },\n\t { 'name': 'sign', 'src': 'sedan|sen', 'value': -1 },\n\t { 'name': 'sign', 'src': 'om', 'value': 1 },\n\t { 'name': 'shift', 'src': 'i förra|förra|i forra|forra', 'value': -1 },\n\t { 'name': 'shift', 'src': 'denna', 'value': 0 },\n\t { 'name': 'shift', 'src': 'nästa|nasta', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{num} {unit} {sign}',\n\t '{sign} {num} {unit}',\n\t '{1?} {num} {unit} {sign}',\n\t '{shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{shift} {weekday}',\n\t '{0?} {weekday?},? {date} {months?}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{day|weekday}',\n\t '{shift} {weekday}',\n\t '{0?} {weekday?},? {date} {months?}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"sv\" locale.\n\n/***/ },\n/* 433 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Simplified Chinese locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('zh-CN')\n\t *\n\t */\n\taddLocale('zh-CN', {\n\t 'ampmFront': true,\n\t 'numeralUnits': true,\n\t 'allowsFullWidth': true,\n\t 'timeMarkerOptional': true,\n\t 'units': '毫秒,秒钟,分钟,小时,天,个星期|周,个月,年',\n\t 'weekdays': '星期日|日|周日|星期天,星期一|一|周一,星期二|二|周二,星期三|三|周三,星期四|四|周四,星期五|五|周五,星期六|六|周六',\n\t 'numerals': '〇,一,二,三,四,五,六,七,八,九',\n\t 'placeholders': '十,百,千,万',\n\t 'short': '{yyyy}-{MM}-{dd}',\n\t 'medium': '{yyyy}年{M}月{d}日',\n\t 'long': '{yyyy}年{M}月{d}日{time}',\n\t 'full': '{yyyy}年{M}月{d}日{weekday}{time}',\n\t 'stamp': '{yyyy}年{M}月{d}日{H}:{mm}{dow}',\n\t 'time': '{tt}{h}点{mm}分',\n\t 'past': '{num}{unit}{sign}',\n\t 'future': '{num}{unit}{sign}',\n\t 'duration': '{num}{unit}',\n\t 'timeSuffixes': ',秒,分钟?,点|时,日|号,,月,年',\n\t 'ampm': '上午,下午',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': '大前天', 'value': -3 },\n\t { 'name': 'day', 'src': '前天', 'value': -2 },\n\t { 'name': 'day', 'src': '昨天', 'value': -1 },\n\t { 'name': 'day', 'src': '今天', 'value': 0 },\n\t { 'name': 'day', 'src': '明天', 'value': 1 },\n\t { 'name': 'day', 'src': '后天', 'value': 2 },\n\t { 'name': 'day', 'src': '大后天', 'value': 3 },\n\t { 'name': 'sign', 'src': '前', 'value': -1 },\n\t { 'name': 'sign', 'src': '后', 'value': 1 },\n\t { 'name': 'shift', 'src': '上|去', 'value': -1 },\n\t { 'name': 'shift', 'src': '这', 'value': 0 },\n\t { 'name': 'shift', 'src': '下|明', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{num}{unit}{sign}',\n\t '{shift}{unit:5-7}',\n\t '{year?}{month}',\n\t '{year}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{shift}{weekday}',\n\t '{year?}{month?}{date}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"zh-CN\" locale.\n\n/***/ },\n/* 434 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Traditional Chinese locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('zh-TW')\n\t *\n\t */\n\taddLocale('zh-TW', {\n\t 'ampmFront': true,\n\t 'numeralUnits': true,\n\t 'allowsFullWidth': true,\n\t 'timeMarkerOptional': true,\n\t 'units': '毫秒,秒鐘,分鐘,小時,天,個星期|週,個月,年',\n\t 'weekdays': '星期日|日|週日|星期天,星期一|一|週一,星期二|二|週二,星期三|三|週三,星期四|四|週四,星期五|五|週五,星期六|六|週六',\n\t 'numerals': '〇,一,二,三,四,五,六,七,八,九',\n\t 'placeholders': '十,百,千,万',\n\t 'short': '{yyyy}/{MM}/{dd}',\n\t 'medium': '{yyyy}年{M}月{d}日',\n\t 'long': '{yyyy}年{M}月{d}日{time}',\n\t 'full': '{yyyy}年{M}月{d}日{weekday}{time}',\n\t 'stamp': '{yyyy}年{M}月{d}日{H}:{mm}{dow}',\n\t 'time': '{tt}{h}點{mm}分',\n\t 'past': '{num}{unit}{sign}',\n\t 'future': '{num}{unit}{sign}',\n\t 'duration': '{num}{unit}',\n\t 'timeSuffixes': ',秒,分鐘?,點|時,日|號,,月,年',\n\t 'ampm': '上午,下午',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': '大前天', 'value': -3 },\n\t { 'name': 'day', 'src': '前天', 'value': -2 },\n\t { 'name': 'day', 'src': '昨天', 'value': -1 },\n\t { 'name': 'day', 'src': '今天', 'value': 0 },\n\t { 'name': 'day', 'src': '明天', 'value': 1 },\n\t { 'name': 'day', 'src': '後天', 'value': 2 },\n\t { 'name': 'day', 'src': '大後天', 'value': 3 },\n\t { 'name': 'sign', 'src': '前', 'value': -1 },\n\t { 'name': 'sign', 'src': '後', 'value': 1 },\n\t { 'name': 'shift', 'src': '上|去', 'value': -1 },\n\t { 'name': 'shift', 'src': '這', 'value': 0 },\n\t { 'name': 'shift', 'src': '下|明', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{num}{unit}{sign}',\n\t '{shift}{unit:5-7}',\n\t '{year?}{month}',\n\t '{year}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{shift}{weekday}',\n\t '{year?}{month?}{date}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"zh-TW\" locale.\n\n/***/ }\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// tablefilter.js"," \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId])\n \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n \t\twhile(callbacks.length)\n \t\t\tcallbacks.shift().call(null, __webpack_require__);\n\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// \"0\" means \"already loaded\"\n \t// Array means \"loading\", array contains callbacks\n \tvar installedChunks = {\n \t\t0:0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n \t\t// \"0\" is the signal for \"already loaded\"\n \t\tif(installedChunks[chunkId] === 0)\n \t\t\treturn callback.call(null, __webpack_require__);\n\n \t\t// an array means \"currently loading\".\n \t\tif(installedChunks[chunkId] !== undefined) {\n \t\t\tinstalledChunks[chunkId].push(callback);\n \t\t} else {\n \t\t\t// start chunk loading\n \t\t\tinstalledChunks[chunkId] = [callback];\n \t\t\tvar head = document.getElementsByTagName('head')[0];\n \t\t\tvar script = document.createElement('script');\n \t\t\tscript.type = 'text/javascript';\n \t\t\tscript.charset = 'utf-8';\n \t\t\tscript.async = true;\n\n \t\t\tscript.src = __webpack_require__.p + \"tf-\" + ({}[chunkId]||chunkId) + \"-\" + {\"1\":\"e02724480dc5dcee4468\"}[chunkId] + \".js\";\n \t\t\thead.appendChild(script);\n \t\t}\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 97ea3067f99e913fb2ad","import {addEvt, cancelEvt, stopEvt, targetEvt, keyCode} from './event';\nimport {\n addClass, createElm, createOpt, elm, getText, getFirstTextNode, hasClass,\n removeClass, removeElm, tag\n} from './dom';\nimport {contains, matchCase, rgxEsc, trim} from './string';\nimport {isEmpty as isEmptyString} from './string';\nimport {\n isArray, isEmpty, isFn, isNumber, isObj, isString, isUndef, EMPTY_FN\n} from './types';\nimport {parse as parseNb} from './number'\n\nimport {root} from './root';\nimport {Emitter} from './emitter';\nimport {GridLayout} from './modules/gridLayout';\nimport {Loader} from './modules/loader';\nimport {HighlightKeyword} from './modules/highlightKeywords';\nimport {PopupFilter} from './modules/popupFilter';\nimport {Dropdown} from './modules/dropdown';\nimport {CheckList} from './modules/checkList';\nimport {RowsCounter} from './modules/rowsCounter';\nimport {StatusBar} from './modules/statusBar';\nimport {Paging} from './modules/paging';\nimport {ClearButton} from './modules/clearButton';\nimport {Help} from './modules/help';\nimport {AlternateRows} from './modules/alternateRows';\nimport {NoResults} from './modules/noResults';\nimport {State} from './modules/state';\nimport {DateType} from './modules/dateType';\n\nimport {\n INPUT, SELECT, MULTIPLE, CHECKLIST, NONE,\n ENTER_KEY, TAB_KEY, ESC_KEY, UP_ARROW_KEY, DOWN_ARROW_KEY,\n CELL_TAG, AUTO_FILTER_DELAY, NUMBER, DATE, FORMATTED_NUMBER\n} from './const';\n\nlet doc = root.document;\n\n/**\n * Makes HTML tables filterable and a bit more :)\n *\n * @export\n * @class TableFilter\n */\nexport class TableFilter {\n\n /**\n * Creates an instance of TableFilter\n * requires `table` or `id` arguments, `row` and `configuration` optional\n * @param {DOMElement} table Table DOM element\n * @param {String} id Table id\n * @param {Number} row index indicating the 1st row\n * @param {Object} configuration object\n */\n constructor(...args) {\n /**\n * ID of current instance\n * @type {String}\n * @private\n */\n this.id = null;\n\n /**\n * Current version\n * @type {String}\n */\n this.version = '0.4.37';\n\n /**\n * Current year\n * @type {Number}\n * @private\n */\n this.year = new Date().getFullYear();\n\n /**\n * HTML Table DOM element\n * @type {DOMElement}\n */\n this.tbl = null;\n\n /**\n * Calculated row's index from which starts filtering once filters\n * are generated\n * @type {Number}\n */\n this.refRow = null;\n\n /**\n * Index of the headers row\n * @type {Number}\n * @private\n */\n this.headersRow = null;\n\n /**\n * Configuration object\n * @type {Object}\n * @private\n */\n this.cfg = {};\n\n /**\n * Number of rows that can be filtered\n * @type {Number}\n * @private\n */\n this.nbFilterableRows = 0;\n\n /**\n * Number of cells in the reference row\n * @type {Number}\n * @private\n */\n this.nbCells = null;\n\n let startRow;\n\n // TODO: use for-of\n args.forEach((arg) => {\n if (typeof arg === 'object' && arg.nodeName === 'TABLE') {\n this.tbl = arg;\n this.id = arg.id || `tf_${new Date().getTime()}_`;\n } else if (isString(arg)) {\n this.id = arg;\n this.tbl = elm(arg);\n } else if (isNumber(arg)) {\n startRow = arg;\n } else if (isObj(arg)) {\n this.cfg = arg;\n }\n });\n\n if (!this.tbl || this.tbl.nodeName !== 'TABLE') {\n throw new Error(`Could not instantiate TableFilter: HTML table\n DOM element not found.`);\n }\n\n if (this.getRowsNb() === 0) {\n throw new Error(`Could not instantiate TableFilter: HTML table\n requires at least 1 row.`);\n }\n\n // configuration object\n let f = this.cfg;\n\n /**\n * Event emitter instance\n * @type {Emitter}\n */\n this.emitter = new Emitter();\n\n //Start row et cols nb\n this.refRow = isUndef(startRow) ? 2 : (startRow + 1);\n\n /**\n * Base path for static assets\n * @type {String}\n */\n this.basePath = f.base_path || 'tablefilter/';\n\n /*** filters' grid properties ***/\n\n /**\n * Enable/disable filters\n * @type {Boolean}\n */\n this.fltGrid = f.grid === false ? false : true;\n\n /**\n * Enable/disable grid layout (fixed headers)\n * @type {Boolean}\n */\n this.gridLayout = Boolean(f.grid_layout);\n\n /**\n * Filters row index\n * @type {Number}\n */\n this.filtersRowIndex = isNaN(f.filters_row_index) ?\n 0 : f.filters_row_index;\n\n /**\n * Headers row index\n * @type {Number}\n */\n this.headersRow = isNaN(f.headers_row_index) ?\n (this.filtersRowIndex === 0 ? 1 : 0) : f.headers_row_index;\n\n /**\n * Define the type of cell containing a filter (td/th)\n * @type {String}\n */\n this.fltCellTag = isString(f.filters_cell_tag) ?\n f.filters_cell_tag : CELL_TAG;\n\n /**\n * List of filters IDs\n * @type {Array}\n * @private\n */\n this.fltIds = [];\n\n /**\n * List of valid rows indexes (rows visible upon filtering)\n * @type {Array}\n * @private\n */\n this.validRowsIndex = [];\n\n /**\n * Toolbar's container DOM element\n * @type {DOMElement}\n * @private\n */\n this.infDiv = null;\n\n /**\n * Left-side inner container DOM element (rows counter in toolbar)\n * @type {DOMElement}\n * @private\n */\n this.lDiv = null;\n\n /**\n * Right-side inner container DOM element (reset button,\n * page length selector in toolbar)\n * @type {DOMElement}\n * @private\n */\n this.rDiv = null;\n\n /**\n * Middle inner container DOM element (paging elements in toolbar)\n * @type {DOMElement}\n * @private\n */\n this.mDiv = null;\n\n /**\n * Css class for toolbar's container DOM element\n * @type {String}\n */\n this.infDivCssClass = f.inf_div_css_class || 'inf';\n\n /**\n * Css class for left-side inner container DOM element\n * @type {String}\n */\n this.lDivCssClass = f.left_div_css_class || 'ldiv';\n\n /**\n * Css class for right-side inner container DOM element\n * @type {String}\n */\n this.rDivCssClass = f.right_div_css_class || 'rdiv';\n\n /**\n * Css class for middle inner container DOM element\n * @type {String}\n */\n this.mDivCssClass = f.middle_div_css_class || 'mdiv';\n\n /*** filters' grid appearance ***/\n /**\n * Path for stylesheets\n * @type {String}\n */\n this.stylePath = f.style_path || this.basePath + 'style/';\n\n /**\n * Main stylesheet path\n * @type {String}\n */\n this.stylesheet = f.stylesheet || this.stylePath + 'tablefilter.css';\n\n /**\n * Main stylesheet ID\n * @type {String}\n * @private\n */\n this.stylesheetId = this.id + '_style';\n\n /**\n * Css class for the filters row\n * @type {String}\n */\n this.fltsRowCssClass = f.flts_row_css_class || 'fltrow';\n\n /**\n * Enable/disable icons (paging, reset button)\n * @type {Boolean}\n */\n this.enableIcons = f.enable_icons === false ? false : true;\n\n /**\n * Enable/disable alternating rows\n * @type {Boolean}\n */\n this.alternateRows = Boolean(f.alternate_rows);\n\n /**\n * Indicate whether columns widths are set\n * @type {Boolean}\n * @private\n */\n this.hasColWidths = isArray(f.col_widths);\n\n /**\n * Columns widths array\n * @type {Array}\n */\n this.colWidths = this.hasColWidths ? f.col_widths : [];\n\n /**\n * Css class for a filter element\n * @type {String}\n */\n this.fltCssClass = f.flt_css_class || 'flt';\n\n /**\n * Css class for multiple select filters\n * @type {String}\n */\n this.fltMultiCssClass = f.flt_multi_css_class || 'flt_multi';\n\n /**\n * Css class for small filter (when submit button is active)\n * @type {String}\n */\n this.fltSmallCssClass = f.flt_small_css_class || 'flt_s';\n\n /**\n * Css class for single filter type\n * @type {String}\n */\n this.singleFltCssClass = f.single_flt_css_class || 'single_flt';\n\n /*** filters' grid behaviours ***/\n\n /**\n * Enable/disable enter key for input type filters\n * @type {Boolean}\n */\n this.enterKey = f.enter_key === false ? false : true;\n\n /**\n * Callback fired before filtering process starts\n * @type {Function}\n */\n this.onBeforeFilter = isFn(f.on_before_filter) ?\n f.on_before_filter : EMPTY_FN;\n\n /**\n * Callback fired after filtering process is completed\n * @type {Function}\n */\n this.onAfterFilter = isFn(f.on_after_filter) ?\n f.on_after_filter : EMPTY_FN;\n\n /**\n * Enable/disable case sensitivity filtering\n * @type {Boolean}\n */\n this.caseSensitive = Boolean(f.case_sensitive);\n\n /**\n * Indicate whether exact match filtering is enabled on a per column\n * basis\n * @type {Boolean}\n * @private\n */\n this.hasExactMatchByCol = isArray(f.columns_exact_match);\n\n /**\n * Exact match filtering per column array\n * @type {Array}\n */\n this.exactMatchByCol = this.hasExactMatchByCol ?\n f.columns_exact_match : [];\n\n /**\n * Globally enable/disable exact match filtering\n * @type {Boolean}\n */\n this.exactMatch = Boolean(f.exact_match);\n\n /**\n * Ignore diacritics globally or on a column basis\n * @type {Boolean|Array}\n */\n this.ignoreDiacritics = f.ignore_diacritics;\n\n /**\n * Enable/disable linked filters filtering mode\n * @type {Boolean}\n */\n this.linkedFilters = Boolean(f.linked_filters);\n\n /**\n * Enable/disable readonly state for excluded options when\n * linked filters filtering mode is on\n * @type {Boolean}\n */\n this.disableExcludedOptions = Boolean(f.disable_excluded_options);\n\n /**\n * Active filter ID\n * @type {String}\n * @private\n */\n this.activeFilterId = null;\n\n /**\n * Enable/disable always visible rows, excluded from filtering\n * @type {Boolean}\n */\n this.hasVisibleRows = Boolean(f.rows_always_visible);\n\n /**\n * List of row indexes to be excluded from filtering\n * @type {Array}\n */\n this.visibleRows = this.hasVisibleRows ? f.rows_always_visible : [];\n\n /**\n * Enable/disable external filters generation\n * @type {Boolean}\n */\n this.isExternalFlt = Boolean(f.external_flt_grid);\n\n /**\n * List of containers IDs where external filters will be generated\n * @type {Array}\n */\n this.externalFltTgtIds = f.external_flt_grid_ids || [];\n\n /**\n * Callback fired after filters are generated\n * @type {Function}\n */\n this.onFiltersLoaded = isFn(f.on_filters_loaded) ?\n f.on_filters_loaded : EMPTY_FN;\n\n /**\n * Enable/disable single filter filtering all columns\n * @type {Boolean}\n */\n this.singleSearchFlt = Boolean(f.single_filter);\n\n /**\n * Callback fired after a row is validated during filtering\n * @type {Function}\n */\n this.onRowValidated = isFn(f.on_row_validated) ?\n f.on_row_validated : EMPTY_FN;\n\n /**\n * List of columns implementing custom filtering\n * @type {Array}\n */\n this.customCellDataCols = f.custom_cell_data_cols ?\n f.custom_cell_data_cols : [];\n\n /**\n * Delegate function for retrieving cell data with custom logic\n * @type {Function}\n */\n this.customCellData = isFn(f.custom_cell_data) ?\n f.custom_cell_data : EMPTY_FN;\n\n /**\n * Global watermark text for input filter type or watermark for each\n * filter if an array is supplied\n * @type {String|Array}\n */\n this.watermark = f.watermark || '';\n\n /**\n * Indicate whether watermark is on a per column basis\n * @type {Boolean}\n * @private\n */\n this.isWatermarkArray = isArray(this.watermark);\n\n /**\n * Toolbar's custom container ID\n * @type {String}\n */\n this.toolBarTgtId = f.toolbar_target_id || null;\n\n /**\n * Indicate whether help UI component is disabled\n * @type {Boolean}\n */\n this.help = isUndef(f.help_instructions) ?\n undefined : Boolean(f.help_instructions);\n\n /**\n * Indicate whether pop-up filters UI is enabled\n * @type {Boolean}\n */\n this.popupFilters = Boolean(f.popup_filters);\n\n /**\n * Indicate whether filtered (active) columns indicator is enabled\n * @type {Boolean}\n */\n this.markActiveColumns = Boolean(f.mark_active_columns);\n\n /**\n * Css class for filtered (active) columns\n * @type {String}\n */\n this.activeColumnsCssClass = f.active_columns_css_class ||\n 'activeHeader';\n\n /**\n * Callback fired before a column is marked as filtered\n * @type {Function}\n */\n this.onBeforeActiveColumn = isFn(f.on_before_active_column) ?\n f.on_before_active_column : EMPTY_FN;\n\n /**\n * Callback fired after a column is marked as filtered\n * @type {Function}\n */\n this.onAfterActiveColumn = isFn(f.on_after_active_column) ?\n f.on_after_active_column : EMPTY_FN;\n\n /*** select filter's customisation and behaviours ***/\n /**\n * Text for clear option in drop-down filter types (1st option)\n * @type {String|Array}\n */\n this.clearFilterText = f.clear_filter_text || 'Clear';\n\n /**\n * Indicate whether empty option is enabled in drop-down filter types\n * @type {Boolean}\n */\n this.enableEmptyOption = Boolean(f.enable_empty_option);\n\n /**\n * Text for empty option in drop-down filter types\n * @type {String}\n */\n this.emptyText = f.empty_text || '(Empty)';\n\n /**\n * Indicate whether non-empty option is enabled in drop-down filter\n * types\n * @type {Boolean}\n */\n this.enableNonEmptyOption = Boolean(f.enable_non_empty_option);\n\n /**\n * Text for non-empty option in drop-down filter types\n * @type {String}\n */\n this.nonEmptyText = f.non_empty_text || '(Non empty)';\n\n /**\n * Indicate whether drop-down filter types filter the table by default\n * on change event\n * @type {Boolean}\n */\n this.onSlcChange = f.on_change === false ? false : true;\n\n /**\n * Indicate whether options in drop-down filter types are sorted in a\n * alpha-numeric manner by default\n * @type {Boolean}\n */\n this.sortSlc = f.sort_select === false ? false : true;\n\n /**\n * Indicate whether options in drop-down filter types are sorted in a\n * ascending numeric manner\n * @type {Boolean}\n * @private\n */\n this.isSortNumAsc = Boolean(f.sort_num_asc);\n\n /**\n * List of columns implementing options sorting in a ascending numeric\n * manner\n * @type {Array}\n */\n this.sortNumAsc = this.isSortNumAsc ? f.sort_num_asc : [];\n\n /**\n * Indicate whether options in drop-down filter types are sorted in a\n * descending numeric manner\n * @type {Boolean}\n * @private\n */\n this.isSortNumDesc = Boolean(f.sort_num_desc);\n\n /**\n * List of columns implementing options sorting in a descending numeric\n * manner\n * @type {Array}\n */\n this.sortNumDesc = this.isSortNumDesc ? f.sort_num_desc : [];\n\n /**\n * Indicate whether drop-down filter types are populated on demand at\n * first usage\n * @type {Boolean}\n */\n this.loadFltOnDemand = Boolean(f.load_filters_on_demand);\n\n /**\n * Indicate whether custom drop-down filter options are implemented\n * @type {Boolean}\n */\n this.hasCustomOptions = isObj(f.custom_options);\n\n /**\n * Custom options definition of a per column basis, ie:\n *\tcustom_options: {\n * cols:[0, 1],\n * texts: [\n * ['a0', 'b0', 'c0'],\n * ['a1', 'b1', 'c1']\n * ],\n * values: [\n * ['a0', 'b0', 'c0'],\n * ['a1', 'b1', 'c1']\n * ],\n * sorts: [false, true]\n * }\n *\n * @type {Object}\n */\n this.customOptions = f.custom_options;\n\n /*** Filter operators ***/\n /**\n * Regular expression operator for input filter. Defaults to 'rgx:'\n * @type {String}\n */\n this.rgxOperator = f.regexp_operator || 'rgx:';\n\n /**\n * Empty cells operator for input filter. Defaults to '[empty]'\n * @type {String}\n */\n this.emOperator = f.empty_operator || '[empty]';\n\n /**\n * Non-empty cells operator for input filter. Defaults to '[nonempty]'\n * @type {String}\n */\n this.nmOperator = f.nonempty_operator || '[nonempty]';\n\n /**\n * Logical OR operator for input filter. Defaults to '||'\n * @type {String}\n */\n this.orOperator = f.or_operator || '||';\n\n /**\n * Logical AND operator for input filter. Defaults to '&&'\n * @type {String}\n */\n this.anOperator = f.and_operator || '&&';\n\n /**\n * Greater than operator for input filter. Defaults to '>'\n * @type {String}\n */\n this.grOperator = f.greater_operator || '>';\n\n /**\n * Lower than operator for input filter. Defaults to '<'\n * @type {String}\n */\n this.lwOperator = f.lower_operator || '<';\n\n /**\n * Lower than or equal operator for input filter. Defaults to '<='\n * @type {String}\n */\n this.leOperator = f.lower_equal_operator || '<=';\n\n /**\n * Greater than or equal operator for input filter. Defaults to '>='\n * @type {String}\n */\n this.geOperator = f.greater_equal_operator || '>=';\n\n /**\n * Inequality operator for input filter. Defaults to '!'\n * @type {String}\n */\n this.dfOperator = f.different_operator || '!';\n\n /**\n * Like operator for input filter. Defaults to '!'\n * @type {String}\n */\n this.lkOperator = f.like_operator || '*';\n\n /**\n * Strict equality operator for input filter. Defaults to '='\n * @type {String}\n */\n this.eqOperator = f.equal_operator || '=';\n\n /**\n * Starts with operator for input filter. Defaults to '='\n * @type {String}\n */\n this.stOperator = f.start_with_operator || '{';\n\n /**\n * Ends with operator for input filter. Defaults to '='\n * @type {String}\n */\n this.enOperator = f.end_with_operator || '}';\n\n // this.curExp = f.cur_exp || '^[¥£€$]';\n\n /**\n * Stored values separator\n * @type {String}\n */\n this.separator = f.separator || ',';\n\n /**\n * Enable rows counter UI component\n * @type {Boolean}\n */\n this.rowsCounter = Boolean(f.rows_counter);\n\n /**\n * Enable status bar UI component\n * @type {Boolean}\n */\n this.statusBar = Boolean(f.status_bar);\n\n /**\n * Enable activity/spinner indicator UI component\n * @type {Boolean}\n */\n this.loader = Boolean(f.loader);\n\n /*** validation - reset buttons/links ***/\n /**\n * Enable filters submission button\n * @type {Boolean}\n */\n this.displayBtn = Boolean(f.btn);\n\n /**\n * Define filters submission button text\n * @type {String}\n */\n this.btnText = f.btn_text || (!this.enableIcons ? 'Go' : '');\n\n /**\n * Css class for filters submission button\n * @type {String}\n */\n this.btnCssClass = f.btn_css_class ||\n (!this.enableIcons ? 'btnflt' : 'btnflt_icon');\n\n /**\n * Enable clear button\n * @type {Boolean}\n */\n this.btnReset = Boolean(f.btn_reset);\n\n /**\n * Callback fired before filters are cleared\n * @type {Function}\n */\n this.onBeforeReset = isFn(f.on_before_reset) ?\n f.on_before_reset : EMPTY_FN;\n\n /**\n * Callback fired after filters are cleared\n * @type {Function}\n */\n this.onAfterReset = isFn(f.on_after_reset) ?\n f.on_after_reset : EMPTY_FN;\n\n /**\n * Enable paging component\n * @type {Boolean}\n */\n this.paging = Boolean(f.paging);\n\n /**\n * Number of hidden rows\n * @type {Number}\n * @private\n */\n this.nbHiddenRows = 0;\n\n /**\n * Enable auto-filter behaviour, table is filtered when a user\n * stops typing\n * @type {Boolean}\n */\n this.autoFilter = Boolean(f.auto_filter);\n\n /**\n * Auto-filter delay in msecs\n * @type {Number}\n */\n this.autoFilterDelay = !isNaN(f.auto_filter_delay) ?\n f.auto_filter_delay : AUTO_FILTER_DELAY;\n\n /**\n * Indicate whether user is typing\n * @type {Boolean}\n * @private\n */\n this.isUserTyping = null;\n\n /**\n * Auto-filter interval ID\n * @type {String}\n * @private\n */\n this.autoFilterTimer = null;\n\n /**\n * Enable keyword highlighting behaviour\n * @type {Boolean}\n */\n this.highlightKeywords = Boolean(f.highlight_keywords);\n\n /**\n * Enable no results message UI component\n * @type {Boolean}\n */\n this.noResults = isObj(f.no_results_message) ||\n Boolean(f.no_results_message);\n\n /**\n * Enable state persistence\n * @type {Boolean}\n */\n this.state = isObj(f.state) || Boolean(f.state);\n\n /*** data types ***/\n\n /**\n * Define default locale, default to 'en' as per Sugar Date module:\n * https://sugarjs.com/docs/#/DateLocales\n * @type {String}\n */\n this.locale = f.locale || 'en';\n\n /**\n * Define thousands separator ',' or '.', defaults to ','\n * @type {String}\n */\n this.thousandsSeparator = f.thousands_separator || ',';\n\n /**\n * Define decimal separator ',' or '.', defaults to '.'\n * @type {String}\n */\n this.decimalSeparator = f.decimal_separator || '.';\n\n /**\n * Determine whether table has columns data types\n * @type {Boolean}\n * @private\n */\n this.hasColTypes = isArray(f.col_types);\n\n /**\n * Define data types on a column basis, possible values 'string',\n * 'number', 'formatted-number', 'date', 'ipaddress' ie:\n * col_types : [\n * 'string', 'date', 'number',\n * { type: 'formatted-number', decimal: ',', thousands: '.' },\n * { type: 'date', locale: 'en-gb' },\n * { type: 'date', format: ['{dd}-{months}-{yyyy|yy}'] }\n * ]\n *\n * Refer to https://sugarjs.com/docs/#/DateParsing for exhaustive\n * information on date parsing formats supported by Sugar Date\n * @type {Array}\n */\n this.colTypes = this.hasColTypes ? f.col_types : [];\n\n /*** ids prefixes ***/\n /**\n * Main prefix\n * @private\n */\n this.prfxTf = 'TF';\n\n /**\n * Filter's ID prefix (inputs - selects)\n * @private\n */\n this.prfxFlt = 'flt';\n\n /**\n * Button's ID prefix\n * @private\n */\n this.prfxValButton = 'btn';\n\n /**\n * Toolbar container ID prefix\n * @private\n */\n this.prfxInfDiv = 'inf_';\n\n /**\n * Toolbar left element ID prefix\n * @private\n */\n this.prfxLDiv = 'ldiv_';\n\n /**\n * Toolbar right element ID prefix\n * @private\n */\n this.prfxRDiv = 'rdiv_';\n\n /**\n * Toolbar middle element ID prefix\n * @private\n */\n this.prfxMDiv = 'mdiv_';\n\n /**\n * Responsive Css class\n * @private\n */\n this.prfxResponsive = 'resp';\n\n /*** extensions ***/\n /**\n * List of loaded extensions\n * @type {Array}\n * @private\n */\n this.extensions = f.extensions;\n\n /**\n * Determine whether extensions are loaded\n * @type {Boolean}\n * @private\n */\n this.hasExtensions = isArray(this.extensions);\n\n /*** themes ***/\n /**\n * Enable default theme\n * @type {Boolean}\n */\n this.enableDefaultTheme = Boolean(f.enable_default_theme);\n\n /**\n * Determine whether themes are enables\n * @type {Boolean}\n * @private\n */\n this.hasThemes = (this.enableDefaultTheme || isArray(f.themes));\n\n /**\n * List of themes, ie:\n * themes: [{ name: 'skyblue' }]\n * @type {Array}\n */\n this.themes = f.themes || [];\n\n /**\n * Define path to themes assets, defaults to\n * 'tablefilter/style/themes/'. Usage:\n * themes: [{ name: 'skyblue' }]\n * @type {Array}\n */\n this.themesPath = f.themes_path || this.stylePath + 'themes/';\n\n /**\n * Enable responsive layout\n * @type {Boolean}\n */\n this.responsive = Boolean(f.responsive);\n\n /**\n * Features registry\n * @private\n */\n this.Mod = {};\n\n /**\n * Extensions registry\n * @private\n */\n this.ExtRegistry = {};\n }\n\n /**\n * Initialise features and layout\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n this.nbCells = this.getCellsNb(this.refRow);\n let Mod = this.Mod;\n let n = this.singleSearchFlt ? 1 : this.nbCells;\n let inpclass;\n\n //loads stylesheet if not imported\n this.import(this.stylesheetId, this.stylesheet, null, 'link');\n\n //loads theme\n if (this.hasThemes) {\n this.loadThemes();\n }\n\n // Instanciate sugar date wrapper\n Mod.dateType = Mod.dateType || new DateType(this);\n Mod.dateType.init();\n\n // Instantiate help feature and initialise only if set true\n Mod.help = Mod.help || new Help(this);\n if (this.help) {\n Mod.help.init();\n }\n\n if (this.state) {\n Mod.state = Mod.state || new State(this);\n Mod.state.init();\n }\n\n if (this.gridLayout) {\n Mod.gridLayout = Mod.gridLayout || new GridLayout(this);\n Mod.gridLayout.init();\n }\n\n if (this.loader) {\n Mod.loader = Mod.loader || new Loader(this);\n Mod.loader.init();\n }\n\n if (this.highlightKeywords) {\n Mod.highlightKeyword = new HighlightKeyword(this);\n Mod.highlightKeyword.init();\n }\n\n if (this.popupFilters) {\n Mod.popupFilter = Mod.popupFilter || new PopupFilter(this);\n Mod.popupFilter.init();\n }\n\n //filters grid is not generated\n if (!this.fltGrid) {\n this._initNoFilters();\n } else {\n let fltrow = this._insertFiltersRow();\n\n this.nbFilterableRows = this.getRowsNb();\n\n // Generate filters\n for (let i = 0; i < n; i++) {\n this.emitter.emit('before-filter-init', this, i);\n\n let fltcell = createElm(this.fltCellTag),\n col = this.getFilterType(i);\n\n if (this.singleSearchFlt) {\n fltcell.colSpan = this.nbCells;\n }\n if (!this.gridLayout) {\n fltrow.appendChild(fltcell);\n }\n inpclass = (i === n - 1 && this.displayBtn) ?\n this.fltSmallCssClass : this.fltCssClass;\n\n //only 1 input for single search\n if (this.singleSearchFlt) {\n col = INPUT;\n inpclass = this.singleFltCssClass;\n }\n\n //drop-down filters\n if (col === SELECT || col === MULTIPLE) {\n if (!Mod.dropdown) {\n Mod.dropdown = new Dropdown(this);\n }\n Mod.dropdown.init(i, this.isExternalFlt, fltcell);\n }\n // checklist\n else if (col === CHECKLIST) {\n if (!Mod.checkList) {\n Mod.checkList = new CheckList(this);\n }\n Mod.checkList.init(i, this.isExternalFlt, fltcell);\n } else {\n this._buildInputFilter(i, inpclass, fltcell);\n }\n\n // this adds submit button\n if (i === n - 1 && this.displayBtn) {\n this._buildSubmitButton(i, fltcell);\n }\n\n this.emitter.emit('after-filter-init', this, i);\n }\n\n this.emitter.on(['filter-focus'],\n (tf, filter) => this.setActiveFilterId(filter.id));\n\n }//if this.fltGrid\n\n /* Features */\n if (this.hasVisibleRows) {\n this.emitter.on(['after-filtering'],\n () => this.enforceVisibility());\n this.enforceVisibility();\n }\n if (this.rowsCounter) {\n Mod.rowsCounter = new RowsCounter(this);\n Mod.rowsCounter.init();\n }\n if (this.statusBar) {\n Mod.statusBar = new StatusBar(this);\n Mod.statusBar.init();\n }\n if (this.paging) {\n if (!Mod.paging) {\n Mod.paging = new Paging(this);\n Mod.paging.init();\n } else {\n Mod.paging.reset();\n }\n }\n if (this.btnReset) {\n Mod.clearButton = new ClearButton(this);\n Mod.clearButton.init();\n }\n\n if (this.hasColWidths && !this.gridLayout) {\n this.setColWidths();\n }\n if (this.alternateRows) {\n Mod.alternateRows = new AlternateRows(this);\n Mod.alternateRows.init();\n }\n if (this.noResults) {\n Mod.noResults = Mod.noResults || new NoResults(this);\n Mod.noResults.init();\n }\n\n //TF css class is added to table\n if (!this.gridLayout) {\n addClass(this.tbl, this.prfxTf);\n if (this.responsive) {\n addClass(this.tbl, this.prfxResponsive);\n }\n }\n\n /* Loads extensions */\n if (this.hasExtensions) {\n this.initExtensions();\n }\n\n // Subscribe to events\n if (this.markActiveColumns) {\n this.emitter.on(['before-filtering'],\n () => this.clearActiveColumns());\n this.emitter.on(['cell-processed'],\n (tf, colIndex) => this.markActiveColumn(colIndex));\n }\n if (this.linkedFilters) {\n this.emitter.on(['after-filtering'], () => this.linkFilters());\n }\n\n /** @inherited */\n this.initialized = true;\n\n this.onFiltersLoaded(this);\n\n this.emitter.emit('initialized', this);\n }\n\n /**\n * Detect key\n * @param {Event} evt\n */\n detectKey(evt) {\n if (!this.enterKey) {\n return;\n }\n if (evt) {\n let key = keyCode(evt);\n if (key === ENTER_KEY) {\n this.filter();\n cancelEvt(evt);\n stopEvt(evt);\n } else {\n this.isUserTyping = true;\n root.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n }\n }\n }\n\n /**\n * Filter's keyup event: if auto-filter on, detect user is typing and filter\n * columns\n * @param {Event} evt\n */\n onKeyUp(evt) {\n if (!this.autoFilter) {\n return;\n }\n let key = keyCode(evt);\n this.isUserTyping = false;\n\n function filter() {\n root.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n if (!this.isUserTyping) {\n this.filter();\n this.isUserTyping = null;\n }\n }\n\n if (key !== ENTER_KEY && key !== TAB_KEY && key !== ESC_KEY &&\n key !== UP_ARROW_KEY && key !== DOWN_ARROW_KEY) {\n if (this.autoFilterTimer === null) {\n this.autoFilterTimer = root.setInterval(filter.bind(this),\n this.autoFilterDelay);\n }\n } else {\n root.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n }\n }\n\n /**\n * Filter's keydown event: if auto-filter on, detect user is typing\n */\n onKeyDown() {\n if (this.autoFilter) {\n this.isUserTyping = true;\n }\n }\n\n /**\n * Filter's focus event\n * @param {Event} evt\n */\n onInpFocus(evt) {\n let elm = targetEvt(evt);\n this.emitter.emit('filter-focus', this, elm);\n }\n\n /**\n * Filter's blur event: if auto-filter on, clear interval on filter blur\n */\n onInpBlur() {\n if (this.autoFilter) {\n this.isUserTyping = false;\n root.clearInterval(this.autoFilterTimer);\n }\n this.emitter.emit('filter-blur', this);\n }\n\n /**\n * Insert filters row at initialization\n */\n _insertFiltersRow() {\n // TODO: prevent filters row generation for popup filters too,\n // to reduce and simplify headers row index adjusting across lib modules\n // (GridLayout, PopupFilter etc)\n if (this.gridLayout) {\n return;\n }\n let fltrow;\n\n let thead = tag(this.tbl, 'thead');\n if (thead.length > 0) {\n fltrow = thead[0].insertRow(this.filtersRowIndex);\n } else {\n fltrow = this.tbl.insertRow(this.filtersRowIndex);\n }\n\n fltrow.className = this.fltsRowCssClass;\n\n if (this.isExternalFlt) {\n fltrow.style.display = NONE;\n }\n\n this.emitter.emit('filters-row-inserted', this, fltrow);\n return fltrow;\n }\n\n /**\n * Initialize filtersless table\n */\n _initNoFilters() {\n if (this.fltGrid) {\n return;\n }\n this.refRow = this.refRow > 0 ? this.refRow - 1 : 0;\n this.nbFilterableRows = this.getRowsNb();\n }\n\n /**\n * Build input filter type\n * @param {Number} colIndex Column index\n * @param {String} cssClass Css class applied to filter\n * @param {DOMElement} container Container DOM element\n */\n _buildInputFilter(colIndex, cssClass, container) {\n let col = this.getFilterType(colIndex);\n let externalFltTgtId = this.isExternalFlt ?\n this.externalFltTgtIds[colIndex] : null;\n let inpType = col === INPUT ? 'text' : 'hidden';\n let inp = createElm(INPUT,\n ['id', this.buildFilterId(colIndex)],\n ['type', inpType], ['ct', colIndex]);\n\n if (inpType !== 'hidden' && this.watermark) {\n inp.setAttribute('placeholder',\n this.isWatermarkArray ? (this.watermark[colIndex] || '') :\n this.watermark\n );\n }\n inp.className = cssClass || this.fltCssClass;\n addEvt(inp, 'focus', (evt) => this.onInpFocus(evt));\n\n //filter is appended in custom element\n if (externalFltTgtId) {\n elm(externalFltTgtId).appendChild(inp);\n } else {\n container.appendChild(inp);\n }\n\n this.fltIds.push(inp.id);\n\n addEvt(inp, 'keypress', (evt) => this.detectKey(evt));\n addEvt(inp, 'keydown', () => this.onKeyDown());\n addEvt(inp, 'keyup', (evt) => this.onKeyUp(evt));\n addEvt(inp, 'blur', () => this.onInpBlur());\n }\n\n /**\n * Build submit button\n * @param {Number} colIndex Column index\n * @param {DOMElement} container Container DOM element\n */\n _buildSubmitButton(colIndex, container) {\n let externalFltTgtId = this.isExternalFlt ?\n this.externalFltTgtIds[colIndex] : null;\n let btn = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnText]\n );\n btn.className = this.btnCssClass;\n\n //filter is appended in custom element\n if (externalFltTgtId) {\n elm(externalFltTgtId).appendChild(btn);\n } else {\n container.appendChild(btn);\n }\n\n addEvt(btn, 'click', () => this.filter());\n }\n\n /**\n * Return a feature instance for a given name\n * @param {String} name Name of the feature\n * @return {Object}\n */\n feature(name) {\n return this.Mod[name];\n }\n\n /**\n * Initialise all the extensions defined in the configuration object\n */\n initExtensions() {\n let exts = this.extensions;\n // Set config's publicPath dynamically for Webpack...\n __webpack_public_path__ = this.basePath;\n\n this.emitter.emit('before-loading-extensions', this);\n for (let i = 0, len = exts.length; i < len; i++) {\n let ext = exts[i];\n if (!this.ExtRegistry[ext.name]) {\n this.loadExtension(ext);\n }\n }\n this.emitter.emit('after-loading-extensions', this);\n }\n\n /**\n * Load an extension module\n * @param {Object} ext Extension config object\n */\n loadExtension(ext) {\n if (!ext || !ext.name) {\n return;\n }\n\n let name = ext.name;\n let path = ext.path;\n let modulePath;\n\n if (name && path) {\n modulePath = ext.path + name;\n } else {\n name = name.replace('.js', '');\n modulePath = 'extensions/{}/{}'.replace(/{}/g, name);\n }\n\n // Require pattern for Webpack\n require(['./' + modulePath], (mod) => {\n /* eslint-disable */\n let inst = new mod.default(this, ext);\n /* eslint-enable */\n inst.init();\n this.ExtRegistry[name] = inst;\n });\n }\n\n /**\n * Get an extension instance\n * @param {String} name Name of the extension\n * @return {Object} Extension instance\n */\n extension(name) {\n return this.ExtRegistry[name];\n }\n\n /**\n * Check passed extension name exists\n * @param {String} name Name of the extension\n * @return {Boolean}\n */\n hasExtension(name) {\n return !isEmpty(this.ExtRegistry[name]);\n }\n\n /**\n * Destroy all the extensions defined in the configuration object\n */\n destroyExtensions() {\n let exts = this.extensions;\n\n for (let i = 0, len = exts.length; i < len; i++) {\n let ext = exts[i];\n let extInstance = this.ExtRegistry[ext.name];\n if (extInstance) {\n extInstance.destroy();\n this.ExtRegistry[ext.name] = undefined;\n }\n }\n }\n\n /**\n * Load themes defined in the configuration object\n */\n loadThemes() {\n let themes = this.themes;\n this.emitter.emit('before-loading-themes', this);\n\n //Default theme config\n if (this.enableDefaultTheme) {\n let defaultTheme = { name: 'default' };\n this.themes.push(defaultTheme);\n }\n if (isArray(themes)) {\n for (let i = 0, len = themes.length; i < len; i++) {\n let theme = themes[i];\n let name = theme.name;\n let path = theme.path;\n let styleId = this.prfxTf + name;\n if (name && !path) {\n path = this.themesPath + name + '/' + name + '.css';\n }\n else if (!name && theme.path) {\n name = 'theme{0}'.replace('{0}', i);\n }\n\n if (!this.isImported(path, 'link')) {\n this.import(styleId, path, null, 'link');\n }\n }\n }\n\n // Enable loader indicator\n this.loader = true;\n\n this.emitter.emit('after-loading-themes', this);\n }\n\n /**\n * Return stylesheet DOM element for a given theme name\n * @return {DOMElement} stylesheet element\n */\n getStylesheet(name = 'default') {\n return elm(this.prfxTf + name);\n }\n\n /**\n * Destroy filter grid\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n let emitter = this.emitter;\n\n if (this.isExternalFlt && !this.popupFilters) {\n this.removeExternalFlts();\n }\n if (this.infDiv) {\n this.removeToolbar();\n }\n if (this.markActiveColumns) {\n this.clearActiveColumns();\n emitter.off(['before-filtering'], () => this.clearActiveColumns());\n emitter.off(['cell-processed'],\n (tf, colIndex) => this.markActiveColumn(colIndex));\n }\n if (this.hasExtensions) {\n this.destroyExtensions();\n }\n\n this.validateAllRows();\n\n if (this.fltGrid && !this.gridLayout) {\n this.tbl.deleteRow(this.filtersRowIndex);\n }\n\n // broadcast destroy event\n emitter.emit('destroy', this);\n\n // unsubscribe to events\n if (this.hasVisibleRows) {\n emitter.off(['after-filtering'], () => this.enforceVisibility());\n }\n if (this.linkedFilters) {\n emitter.off(['after-filtering'], () => this.linkFilters());\n }\n this.emitter.off(['filter-focus'],\n (tf, filter) => this.setActiveFilterId(filter.id));\n\n removeClass(this.tbl, this.prfxTf);\n removeClass(this.tbl, this.prfxResponsive);\n\n this.nbHiddenRows = 0;\n this.validRowsIndex = [];\n this.fltIds = [];\n this.initialized = false;\n }\n\n /**\n * Generate container element for paging, reset button, rows counter etc.\n */\n setToolbar() {\n if (this.infDiv) {\n return;\n }\n\n /*** container div ***/\n let infDiv = createElm('div');\n infDiv.className = this.infDivCssClass;\n\n //custom container\n if (this.toolBarTgtId) {\n elm(this.toolBarTgtId).appendChild(infDiv);\n }\n //grid-layout\n else if (this.gridLayout) {\n let gridLayout = this.Mod.gridLayout;\n gridLayout.tblMainCont.appendChild(infDiv);\n infDiv.className = gridLayout.infDivCssClass;\n }\n //default location: just above the table\n else {\n let cont = createElm('caption');\n cont.appendChild(infDiv);\n this.tbl.insertBefore(cont, this.tbl.firstChild);\n }\n this.infDiv = infDiv;\n\n /*** left div containing rows # displayer ***/\n let lDiv = createElm('div');\n lDiv.className = this.lDivCssClass;\n infDiv.appendChild(lDiv);\n this.lDiv = lDiv;\n\n /*** right div containing reset button\n + nb results per page select ***/\n let rDiv = createElm('div');\n rDiv.className = this.rDivCssClass;\n infDiv.appendChild(rDiv);\n this.rDiv = rDiv;\n\n /*** mid div containing paging elements ***/\n let mDiv = createElm('div');\n mDiv.className = this.mDivCssClass;\n infDiv.appendChild(mDiv);\n this.mDiv = mDiv;\n\n // emit help initialisation only if undefined\n if (isUndef(this.help)) {\n // explicitily set enabled field to true to initialise help by\n // default, only if setting is undefined\n this.Mod.help.enabled = true;\n this.emitter.emit('init-help', this);\n }\n }\n\n /**\n * Remove toolbar container element\n */\n removeToolbar() {\n if (!this.infDiv) {\n return;\n }\n removeElm(this.infDiv);\n this.infDiv = null;\n\n let tbl = this.tbl;\n let captions = tag(tbl, 'caption');\n if (captions.length > 0) {\n [].forEach.call(captions, (elm) => tbl.removeChild(elm));\n }\n }\n\n /**\n * Remove all the external column filters\n */\n removeExternalFlts() {\n if (!this.isExternalFlt) {\n return;\n }\n let ids = this.externalFltTgtIds,\n len = ids.length;\n for (let ct = 0; ct < len; ct++) {\n let externalFltTgtId = ids[ct],\n externalFlt = elm(externalFltTgtId);\n if (externalFlt) {\n externalFlt.innerHTML = '';\n }\n }\n }\n\n /**\n * Check if given column implements a filter with custom options\n * @param {Number} colIndex Column's index\n * @return {Boolean}\n */\n isCustomOptions(colIndex) {\n return this.hasCustomOptions &&\n this.customOptions.cols.indexOf(colIndex) !== -1;\n }\n\n /**\n * Returns an array [[value0, value1 ...],[text0, text1 ...]] with the\n * custom options values and texts\n * @param {Number} colIndex Column's index\n * @return {Array}\n */\n getCustomOptions(colIndex) {\n if (isEmpty(colIndex) || !this.isCustomOptions(colIndex)) {\n return;\n }\n\n let customOptions = this.customOptions;\n let cols = customOptions.cols;\n let optTxt = [], optArray = [];\n let index = cols.indexOf(colIndex);\n let slcValues = customOptions.values[index];\n let slcTexts = customOptions.texts[index];\n let slcSort = customOptions.sorts[index];\n\n for (let r = 0, len = slcValues.length; r < len; r++) {\n optArray.push(slcValues[r]);\n if (slcTexts[r]) {\n optTxt.push(slcTexts[r]);\n } else {\n optTxt.push(slcValues[r]);\n }\n }\n if (slcSort) {\n optArray.sort();\n optTxt.sort();\n }\n return [optArray, optTxt];\n }\n\n /**\n * Filter the table by retrieving the data from each cell in every single\n * row and comparing it to the search term for current column. A row is\n * hidden when all the search terms are not found in inspected row.\n */\n filter() {\n if (!this.fltGrid || !this.initialized) {\n return;\n }\n //fire onbefore callback\n this.onBeforeFilter(this);\n this.emitter.emit('before-filtering', this);\n\n let row = this.tbl.rows,\n nbRows = this.getRowsNb(true),\n hiddenRows = 0;\n\n this.validRowsIndex = [];\n // search args re-init\n let searchArgs = this.getFiltersValue();\n\n for (let k = this.refRow; k < nbRows; k++) {\n // already filtered rows display re-init\n row[k].style.display = '';\n\n let cells = row[k].cells;\n let nchilds = cells.length;\n\n // checks if row has exact cell #\n if (nchilds !== this.nbCells) {\n continue;\n }\n\n let occurence = [],\n isRowValid = true,\n //only for single filter search\n singleFltRowValid = false;\n\n // this loop retrieves cell data\n for (let j = 0; j < nchilds; j++) {\n //searched keyword\n let sA = searchArgs[this.singleSearchFlt ? 0 : j];\n\n if (sA === '') {\n continue;\n }\n\n let cellValue = matchCase(this.getCellValue(cells[j]),\n this.caseSensitive);\n\n //multiple search parameter operator ||\n let sAOrSplit = sA.toString().split(this.orOperator),\n //multiple search || parameter boolean\n hasMultiOrSA = sAOrSplit.length > 1,\n //multiple search parameter operator &&\n sAAndSplit = sA.toString().split(this.anOperator),\n //multiple search && parameter boolean\n hasMultiAndSA = sAAndSplit.length > 1;\n\n //detect operators or array query\n if (isArray(sA) || hasMultiOrSA || hasMultiAndSA) {\n let cS,\n s,\n occur = false;\n if (isArray(sA)) {\n s = sA;\n } else {\n s = hasMultiOrSA ? sAOrSplit : sAAndSplit;\n }\n // isolate search term and check occurence in cell data\n for (let w = 0, len = s.length; w < len; w++) {\n cS = trim(s[w]);\n occur = this._testTerm(cS, cellValue, j);\n\n if (occur) {\n this.emitter.emit('highlight-keyword', this,\n cells[j], cS);\n }\n if ((hasMultiOrSA && occur) ||\n (hasMultiAndSA && !occur)) {\n break;\n }\n if (isArray(sA) && occur) {\n break;\n }\n }\n occurence[j] = occur;\n\n }\n //single search parameter\n else {\n occurence[j] = this._testTerm(trim(sA), cellValue, j);\n if (occurence[j]) {\n this.emitter.emit('highlight-keyword', this, cells[j],\n sA);\n }\n }//else single param\n\n if (!occurence[j]) {\n isRowValid = false;\n }\n if (this.singleSearchFlt && occurence[j]) {\n singleFltRowValid = true;\n }\n\n this.emitter.emit('cell-processed', this, j, cells[j]);\n }//for j\n\n if (this.singleSearchFlt && singleFltRowValid) {\n isRowValid = true;\n }\n\n this.validateRow(k, isRowValid);\n if (!isRowValid) {\n hiddenRows++;\n }\n\n this.emitter.emit('row-processed', this, k,\n this.validRowsIndex.length, isRowValid);\n }// for k\n\n this.nbHiddenRows = hiddenRows;\n\n //fire onafterfilter callback\n this.onAfterFilter(this);\n\n this.emitter.emit('after-filtering', this, searchArgs);\n }\n\n /**\n * Test for a match of search term in cell data\n * @param {String} term Search term\n * @param {String} cellValue Cell data\n * @param {Number} colIdx Column index\n * @returns {Boolean}\n */\n _testTerm(term, cellValue, colIdx) {\n let numData;\n let decimal = this.decimalSeparator;\n let reLe = new RegExp(this.leOperator),\n reGe = new RegExp(this.geOperator),\n reL = new RegExp(this.lwOperator),\n reG = new RegExp(this.grOperator),\n reD = new RegExp(this.dfOperator),\n reLk = new RegExp(rgxEsc(this.lkOperator)),\n reEq = new RegExp(this.eqOperator),\n reSt = new RegExp(this.stOperator),\n reEn = new RegExp(this.enOperator),\n // re_an = new RegExp(this.anOperator),\n // re_cr = new RegExp(this.curExp),\n reEm = this.emOperator,\n reNm = this.nmOperator,\n reRe = new RegExp(rgxEsc(this.rgxOperator));\n\n term = matchCase(term, this.caseSensitive);\n\n let occurence = false;\n\n //Search arg operator tests\n let hasLO = reL.test(term),\n hasLE = reLe.test(term),\n hasGR = reG.test(term),\n hasGE = reGe.test(term),\n hasDF = reD.test(term),\n hasEQ = reEq.test(term),\n hasLK = reLk.test(term),\n // hatermN = re_an.test(term),\n hasST = reSt.test(term),\n hasEN = reEn.test(term),\n hasEM = (reEm === term),\n hasNM = (reNm === term),\n hasRE = reRe.test(term);\n\n // Check for dates or resolve date type\n if (this.hasType(colIdx, [DATE])) {\n let dte1, dte2;\n\n let dateType = this.Mod.dateType;\n let isValidDate = dateType.isValid.bind(dateType);\n let parseDate = dateType.parse.bind(dateType);\n let locale = dateType.getOptions(colIdx).locale || this.locale;\n\n // Search arg dates tests\n let isLDate = hasLO &&\n isValidDate(term.replace(reL, ''), locale);\n let isLEDate = hasLE &&\n isValidDate(term.replace(reLe, ''), locale);\n let isGDate = hasGR &&\n isValidDate(term.replace(reG, ''), locale);\n let isGEDate = hasGE &&\n isValidDate(term.replace(reGe, ''), locale);\n let isDFDate = hasDF &&\n isValidDate(term.replace(reD, ''), locale);\n let isEQDate = hasEQ &&\n isValidDate(term.replace(reEq, ''), locale);\n\n dte1 = parseDate(cellValue, locale);\n\n // lower equal date\n if (isLEDate) {\n dte2 = parseDate(term.replace(reLe, ''), locale);\n occurence = dte1 <= dte2;\n }\n // lower date\n else if (isLDate) {\n dte2 = parseDate(term.replace(reL, ''), locale);\n occurence = dte1 < dte2;\n }\n // greater equal date\n else if (isGEDate) {\n dte2 = parseDate(term.replace(reGe, ''), locale);\n occurence = dte1 >= dte2;\n }\n // greater date\n else if (isGDate) {\n dte2 = parseDate(term.replace(reG, ''), locale);\n occurence = dte1 > dte2;\n }\n // different date\n else if (isDFDate) {\n dte2 = parseDate(term.replace(reD, ''), locale);\n occurence = dte1.toString() !== dte2.toString();\n }\n // equal date\n else if (isEQDate) {\n dte2 = parseDate(term.replace(reEq, ''), locale);\n occurence = dte1.toString() === dte2.toString();\n }\n // searched keyword with * operator doesn't have to be a date\n else if (reLk.test(term)) {// like date\n occurence = contains(term.replace(reLk, ''), cellValue,\n false, this.caseSensitive);\n }\n else if (isValidDate(term)) {\n dte2 = parseDate(term, locale);\n occurence = dte1.toString() === dte2.toString();\n }\n //empty\n else if (hasEM) {\n occurence = isEmptyString(cellValue);\n }\n //non-empty\n else if (hasNM) {\n occurence = !isEmptyString(cellValue);\n } else {\n occurence = contains(term, cellValue,\n this.isExactMatch(colIdx), this.caseSensitive);\n }\n }\n\n else {\n if (this.hasType(colIdx, [FORMATTED_NUMBER])) {\n let colType = this.colTypes[colIdx];\n if (colType.hasOwnProperty('decimal')) {\n decimal = colType.decimal;\n }\n }\n // Convert to number anyways to auto-resolve type in case not\n // defined by configuration\n numData = Number(cellValue) || parseNb(cellValue, decimal);\n\n // first checks if there is any operator (<,>,<=,>=,!,*,=,{,},\n // rgx:)\n // lower equal\n if (hasLE) {\n occurence = numData <= parseNb(\n term.replace(reLe, ''),\n decimal\n );\n }\n //greater equal\n else if (hasGE) {\n occurence = numData >= parseNb(\n term.replace(reGe, ''),\n decimal\n );\n }\n //lower\n else if (hasLO) {\n occurence = numData < parseNb(\n term.replace(reL, ''),\n decimal\n );\n }\n //greater\n else if (hasGR) {\n occurence = numData > parseNb(\n term.replace(reG, ''),\n decimal\n );\n }\n //different\n else if (hasDF) {\n occurence = contains(term.replace(reD, ''), cellValue,\n false, this.caseSensitive) ? false : true;\n }\n //like\n else if (hasLK) {\n occurence = contains(term.replace(reLk, ''), cellValue,\n false, this.caseSensitive);\n }\n //equal\n else if (hasEQ) {\n occurence = contains(term.replace(reEq, ''), cellValue,\n true, this.caseSensitive);\n }\n //starts with\n else if (hasST) {\n occurence = cellValue.indexOf(term.replace(reSt, '')) === 0 ?\n true : false;\n }\n //ends with\n else if (hasEN) {\n let searchArg = term.replace(reEn, '');\n occurence =\n cellValue.lastIndexOf(searchArg, cellValue.length - 1) ===\n (cellValue.length - 1) - (searchArg.length - 1) &&\n cellValue.lastIndexOf(searchArg, cellValue.length - 1)\n > -1 ? true : false;\n }\n //empty\n else if (hasEM) {\n occurence = isEmptyString(cellValue);\n }\n //non-empty\n else if (hasNM) {\n occurence = !isEmptyString(cellValue);\n }\n //regexp\n else if (hasRE) {\n //in case regexp throws\n try {\n //operator is removed\n let srchArg = term.replace(reRe, '');\n let rgx = new RegExp(srchArg);\n occurence = rgx.test(cellValue);\n } catch (ex) {\n occurence = false;\n }\n } else {\n // If numeric type data, perform a strict equality test and\n // fallback to unformatted number string comparison\n if (numData &&\n this.hasType(colIdx, [NUMBER, FORMATTED_NUMBER]) &&\n !this.singleSearchFlt) {\n // parseNb can return 0 for strings which are not\n // formatted numbers, in that case return the original\n // string. TODO: handle this in parseNb\n term = parseNb(term, decimal) || term;\n occurence = numData === term ||\n contains(term.toString(), numData.toString(),\n this.isExactMatch(colIdx), this.caseSensitive);\n } else {\n // Finally test search term is contained in cell data\n occurence = contains(\n term,\n cellValue,\n this.isExactMatch(colIdx),\n this.caseSensitive,\n this.ignoresDiacritics(colIdx)\n );\n }\n }\n\n }//else\n\n return occurence;\n }\n\n /**\n * Return the data of a specified column\n * @param {Number} colIndex Column index\n * @param {Boolean} [includeHeaders=false] Include headers row\n * @param {Boolean} [typed=true] Return a typed value\n * @param {Array} [exclude=[]] List of row indexes to be excluded\n * @return {Array} Flat list of data for a column\n */\n getColValues(\n colIndex,\n includeHeaders = false,\n typed = false,\n exclude = []\n ) {\n let row = this.tbl.rows;\n let nbRows = this.getRowsNb(true);\n let colValues = [];\n let getContent = typed ? this.getCellData.bind(this) :\n this.getCellValue.bind(this);\n\n if (includeHeaders) {\n colValues.push(this.getHeadersText()[colIndex]);\n }\n\n for (let i = this.refRow; i < nbRows; i++) {\n let isExludedRow = false;\n // checks if current row index appears in exclude array\n if (exclude.length > 0) {\n isExludedRow = exclude.indexOf(i) !== -1;\n }\n let cell = row[i].cells,\n nchilds = cell.length;\n\n // checks if row has exact cell # and is not excluded\n if (nchilds === this.nbCells && !isExludedRow) {\n // this loop retrieves cell data\n for (let j = 0; j < nchilds; j++) {\n if (j !== colIndex) {\n continue;\n }\n let data = getContent(cell[j]);\n colValues.push(data);\n }\n }\n }\n return colValues;\n }\n\n /**\n * Return the filter's value of a specified column\n * @param {Number} index Column index\n * @return {String} Filter value\n */\n getFilterValue(index) {\n if (!this.fltGrid) {\n return;\n }\n let fltValue = '';\n let flt = this.getFilterElement(index);\n if (!flt) {\n return fltValue;\n }\n\n let fltColType = this.getFilterType(index);\n if (fltColType !== MULTIPLE && fltColType !== CHECKLIST) {\n fltValue = flt.value;\n }\n //mutiple select\n else if (fltColType === MULTIPLE) {\n fltValue = this.feature('dropdown').getValues(index);\n }\n //checklist\n else if (fltColType === CHECKLIST) {\n fltValue = this.feature('checkList').getValues(index);\n }\n //return an empty string if collection is empty or contains a single\n //empty string\n if (isArray(fltValue) && fltValue.length === 0 ||\n (fltValue.length === 1 && fltValue[0] === '')) {\n fltValue = '';\n }\n\n return fltValue;\n }\n\n /**\n * Return the filters' values\n * @return {Array} List of filters' values\n */\n getFiltersValue() {\n if (!this.fltGrid) {\n return;\n }\n let searchArgs = [];\n for (let i = 0, len = this.fltIds.length; i < len; i++) {\n let fltValue = this.getFilterValue(i);\n if (isArray(fltValue)) {\n searchArgs.push(fltValue);\n } else {\n searchArgs.push(trim(fltValue));\n }\n }\n return searchArgs;\n }\n\n /**\n * Return the ID of a specified column's filter\n * @param {Number} index Column's index\n * @return {String} ID of the filter element\n */\n getFilterId(index) {\n if (!this.fltGrid) {\n return;\n }\n return this.fltIds[index];\n }\n\n /**\n * Return the list of ids of filters matching a specified type.\n * Note: hidden filters are also returned\n *\n * @param {String} type Filter type string ('input', 'select', 'multiple',\n * 'checklist')\n * @param {Boolean} bool If true returns columns indexes instead of IDs\n * @return {[type]} List of element IDs or column indexes\n */\n getFiltersByType(type, bool) {\n if (!this.fltGrid) {\n return;\n }\n let arr = [];\n for (let i = 0, len = this.fltIds.length; i < len; i++) {\n let fltType = this.getFilterType(i);\n if (fltType === type.toLowerCase()) {\n let a = bool ? i : this.fltIds[i];\n arr.push(a);\n }\n }\n return arr;\n }\n\n /**\n * Return the filter's DOM element for a given column\n * @param {Number} index Column's index\n * @return {DOMElement}\n */\n getFilterElement(index) {\n let fltId = this.fltIds[index];\n return elm(fltId);\n }\n\n /**\n * Return the number of cells for a given row index\n * @param {Number} rowIndex Index of the row\n * @return {Number} Number of cells\n */\n getCellsNb(rowIndex = 0) {\n let tr = this.tbl.rows[rowIndex >= 0 ? rowIndex : 0];\n return tr ? tr.cells.length : 0;\n }\n\n /**\n * Return the number of filterable rows starting from reference row if\n * defined\n * @param {Boolean} includeHeaders Include the headers row\n * @return {Number} Number of filterable rows\n */\n getRowsNb(includeHeaders) {\n let s = isUndef(this.refRow) ? 0 : this.refRow;\n let ntrs = this.tbl.rows.length;\n if (includeHeaders) {\n s = 0;\n }\n return parseInt(ntrs - s, 10);\n }\n\n\n /**\n * Return the text content of a given cell\n * @param {DOMElement} Cell's DOM element\n * @returns {String}\n */\n getCellValue(cell) {\n let idx = cell.cellIndex;\n //CallcustomCellData callback\n if (this.customCellDataCols.indexOf(idx) !== -1) {\n return this.customCellData(this, cell, idx);\n } else {\n return getText(cell);\n }\n }\n\n /**\n * Return the typed data of a given cell based on the column type definition\n * @param {DOMElement} cell Cell's DOM element\n * @return {String|Number|Date}\n */\n getCellData(cell) {\n let colIndex = cell.cellIndex;\n let value = this.getCellValue(cell);\n\n if (this.hasType(colIndex, [FORMATTED_NUMBER])) {\n let decimal = this.decimalSeparator;\n let colType = this.colTypes[colIndex];\n if (colType.hasOwnProperty('decimal')) {\n decimal = colType.decimal;\n }\n return parseNb(value, decimal);\n }\n else if (this.hasType(colIndex, [NUMBER])) {\n return Number(value);\n }\n else if (this.hasType(colIndex, [DATE])){\n let dateType = this.Mod.dateType;\n let locale = dateType.getOptions(colIndex).locale || this.locale;\n return dateType.parse(value, locale);\n }\n\n return value;\n }\n\n /**\n * Return the table data with following format:\n * [\n * [rowIndex, [value0, value1...]],\n * [rowIndex, [value0, value1...]]\n * ]\n * @param {Boolean} [includeHeaders=false] Include headers row\n * @param {Boolean} [excludeHiddenCols=false] Exclude hidden columns\n * @param {Boolean} [typed=false] Return typed value\n * @return {Array}\n *\n * TODO: provide an API returning data in JSON format\n */\n getTableData(\n includeHeaders = false,\n excludeHiddenCols = false,\n typed = false\n ) {\n let rows = this.tbl.rows;\n let nbRows = this.getRowsNb(true);\n let tblData = [];\n let getContent = typed ? this.getCellData.bind(this) :\n this.getCellValue.bind(this);\n\n if (includeHeaders) {\n let headers = this.getHeadersText(excludeHiddenCols);\n tblData.push([this.getHeadersRowIndex(), headers]);\n }\n for (let k = this.refRow; k < nbRows; k++) {\n let rowData = [k, []];\n let cells = rows[k].cells;\n for (let j = 0, len = cells.length; j < len; j++) {\n if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n if (this.extension('colsVisibility').isColHidden(j)) {\n continue;\n }\n }\n let cellValue = getContent(cells[j]);\n rowData[1].push(cellValue);\n }\n tblData.push(rowData);\n }\n return tblData;\n }\n\n /**\n * Return the filtered data with following format:\n * [\n * [rowIndex, [value0, value1...]],\n * [rowIndex, [value0, value1...]]\n * ]\n * @param {Boolean} [includeHeaders=false] Include headers row\n * @param {Boolean} [excludeHiddenCols=false] Exclude hidden columns\n * @param {Boolean} [typed=false] Return typed value\n * @return {Array}\n *\n * TODO: provide an API returning data in JSON format\n */\n getFilteredData(\n includeHeaders = false,\n excludeHiddenCols = false,\n typed = false\n ) {\n if (!this.validRowsIndex) {\n return [];\n }\n let rows = this.tbl.rows,\n filteredData = [];\n let getContent = typed ? this.getCellData.bind(this) :\n this.getCellValue.bind(this);\n\n if (includeHeaders) {\n let headers = this.getHeadersText(excludeHiddenCols);\n filteredData.push([this.getHeadersRowIndex(), headers]);\n }\n\n let validRows = this.getValidRows(true);\n for (let i = 0; i < validRows.length; i++) {\n let rData = [this.validRowsIndex[i], []],\n cells = rows[this.validRowsIndex[i]].cells;\n for (let k = 0; k < cells.length; k++) {\n if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n if (this.extension('colsVisibility').isColHidden(k)) {\n continue;\n }\n }\n let cellValue = getContent(cells[k]);\n rData[1].push(cellValue);\n }\n filteredData.push(rData);\n }\n return filteredData;\n }\n\n /**\n * Return the filtered data for a given column index\n * @param {Number} colIndex Colmun's index\n * @param {Boolean} [includeHeaders=false] Include headers row\n * @param {Boolean} [typed=false] Return typed value\n * @param {Array} [exclude=[]] List of row indexes to be excluded\n * @param {Boolean} [visible=true] Return only filtered and visible data\n * (relevant for paging)\n * @return {Array} Flat list of values ['val0','val1','val2'...]\n *\n * TODO: provide an API returning data in JSON format\n */\n getFilteredDataCol(\n colIndex,\n includeHeaders = false,\n typed = false,\n exclude = [],\n visible = true\n ) {\n if (isUndef(colIndex)) {\n return [];\n }\n\n let rows = this.tbl.rows;\n let getContent = typed ? this.getCellData.bind(this) :\n this.getCellValue.bind(this);\n\n // ensure valid rows index do not contain excluded rows and row is\n // displayed\n let validRows = this.getValidRows(true).filter((rowIdx) => {\n return exclude.indexOf(rowIdx) === -1 &&\n (visible ?\n this.getRowDisplay(rows[rowIdx]) !== 'none' :\n true);\n });\n\n // convert column value to expected type if necessary\n let validColValues = validRows.map((rowIdx) => {\n return getContent(rows[rowIdx].cells[colIndex]);\n });\n\n if (includeHeaders) {\n validColValues.unshift(this.getHeadersText()[colIndex]);\n }\n\n return validColValues;\n }\n\n /**\n * Get the display value of a row\n * @param {HTMLTableRowElement} row DOM element of the row\n * @return {String} Usually 'none' or ''\n */\n getRowDisplay(row) {\n return row.style.display;\n }\n\n /**\n * Validate/invalidate row by setting the 'validRow' attribute on the row\n * @param {Number} rowIndex Index of the row\n * @param {Boolean} isValid\n */\n validateRow(rowIndex, isValid) {\n let row = this.tbl.rows[rowIndex];\n if (!row || typeof isValid !== 'boolean') {\n return;\n }\n\n // always visible rows are valid\n if (this.hasVisibleRows && this.visibleRows.indexOf(rowIndex) !== -1) {\n isValid = true;\n }\n\n let displayFlag = isValid ? '' : NONE,\n validFlag = isValid ? 'true' : 'false';\n row.style.display = displayFlag;\n\n if (this.paging) {\n row.setAttribute('validRow', validFlag);\n }\n\n if (isValid) {\n if (this.validRowsIndex.indexOf(rowIndex) === -1) {\n this.validRowsIndex.push(rowIndex);\n }\n\n this.onRowValidated(this, rowIndex);\n\n this.emitter.emit('row-validated', this, rowIndex);\n }\n }\n\n /**\n * Validate all filterable rows\n */\n validateAllRows() {\n if (!this.initialized) {\n return;\n }\n this.validRowsIndex = [];\n for (let k = this.refRow; k < this.nbFilterableRows; k++) {\n this.validateRow(k, true);\n }\n }\n\n /**\n * Set search value to a given filter\n * @param {Number} index Column's index\n * @param {String or Array} query searcharg Search term\n */\n setFilterValue(index, query = '') {\n if (!this.fltGrid) {\n return;\n }\n let slc = this.getFilterElement(index),\n fltColType = this.getFilterType(index);\n\n if (fltColType !== MULTIPLE && fltColType !== CHECKLIST) {\n if (this.loadFltOnDemand && !this.initialized) {\n this.emitter.emit('build-select-filter', this, index,\n this.linkedFilters, this.isExternalFlt);\n }\n slc.value = query;\n }\n //multiple selects\n else if (fltColType === MULTIPLE) {\n let values = isArray(query) ? query :\n query.split(' ' + this.orOperator + ' ');\n\n if (this.loadFltOnDemand && !this.initialized) {\n this.emitter.emit('build-select-filter', this, index,\n this.linkedFilters, this.isExternalFlt);\n }\n\n this.emitter.emit('select-options', this, index, values);\n }\n //checklist\n else if (fltColType === CHECKLIST) {\n let values = [];\n if (this.loadFltOnDemand && !this.initialized) {\n this.emitter.emit('build-checklist-filter', this, index,\n this.linkedFilters);\n }\n if (isArray(query)) {\n values = query;\n } else {\n query = matchCase(query, this.caseSensitive);\n values = query.split(' ' + this.orOperator + ' ');\n }\n\n this.emitter.emit('select-checklist-options', this, index, values);\n }\n }\n\n /**\n * Set them columns' widths as per configuration\n * @param {Element} tbl DOM element\n */\n setColWidths(tbl) {\n if (!this.hasColWidths) {\n return;\n }\n tbl = tbl || this.tbl;\n\n let nbCols = this.nbCells;\n let colWidths = this.colWidths;\n let colTags = tag(tbl, 'col');\n let tblHasColTag = colTags.length > 0;\n let frag = !tblHasColTag ? doc.createDocumentFragment() : null;\n for (let k = 0; k < nbCols; k++) {\n let col;\n if (tblHasColTag) {\n col = colTags[k];\n } else {\n col = createElm('col');\n frag.appendChild(col);\n }\n col.style.width = colWidths[k];\n }\n if (!tblHasColTag) {\n tbl.insertBefore(frag, tbl.firstChild);\n }\n }\n\n /**\n * Makes defined rows always visible\n */\n enforceVisibility() {\n if (!this.hasVisibleRows) {\n return;\n }\n let nbRows = this.getRowsNb(true);\n for (let i = 0, len = this.visibleRows.length; i < len; i++) {\n let row = this.visibleRows[i];\n //row index cannot be > nrows\n if (row <= nbRows) {\n this.validateRow(row, true);\n }\n }\n }\n\n /**\n * Clear all the filters' values\n */\n clearFilters() {\n if (!this.fltGrid) {\n return;\n }\n\n this.emitter.emit('before-clearing-filters', this);\n this.onBeforeReset(this, this.getFiltersValue());\n\n for (let i = 0, len = this.fltIds.length; i < len; i++) {\n this.setFilterValue(i, '');\n }\n\n this.filter();\n\n this.onAfterReset(this);\n this.emitter.emit('after-clearing-filters', this);\n }\n\n /**\n * Clears filtered columns visual indicator (background color)\n */\n clearActiveColumns() {\n for (let i = 0, len = this.getCellsNb(this.headersRow); i < len; i++) {\n removeClass(this.getHeaderElement(i), this.activeColumnsCssClass);\n }\n }\n\n /**\n * Mark currently filtered column\n * @param {Number} colIndex Column index\n */\n markActiveColumn(colIndex) {\n let header = this.getHeaderElement(colIndex);\n if (hasClass(header, this.activeColumnsCssClass)) {\n return;\n }\n this.onBeforeActiveColumn(this, colIndex);\n\n addClass(header, this.activeColumnsCssClass);\n\n this.onAfterActiveColumn(this, colIndex);\n }\n\n /**\n * Return the ID of the current active filter\n * @returns {String}\n */\n getActiveFilterId() {\n return this.activeFilterId;\n }\n\n /**\n * Set the ID of the current active filter\n * @param {String} filterId Element ID\n */\n setActiveFilterId(filterId) {\n this.activeFilterId = filterId;\n }\n\n /**\n * Return the column index for a given filter ID\n * @param {string} [filterId=''] Filter ID\n * @returns {Number} Column index\n */\n getColumnIndexFromFilterId(filterId = '') {\n let idx = filterId.split('_')[0];\n idx = idx.split(this.prfxFlt)[1];\n return parseInt(idx, 10);\n }\n\n /**\n * Builds filter element ID for a given column index\n * @param {any} colIndex\n * @returns {String} Filter element ID string\n * @private\n */\n buildFilterId(colIndex) {\n return `${this.prfxFlt}${colIndex}_${this.id}`;\n }\n\n /**\n * Make specified column's filter active\n * @param colIndex Index of a column\n */\n activateFilter(colIndex) {\n if (isUndef(colIndex)) {\n return;\n }\n this.setActiveFilterId(this.getFilterId(colIndex));\n }\n\n /**\n * Refresh the filters subject to linking ('select', 'multiple',\n * 'checklist' type)\n */\n linkFilters() {\n if (!this.linkedFilters || !this.activeFilterId) {\n return;\n }\n let slcA1 = this.getFiltersByType(SELECT, true),\n slcA2 = this.getFiltersByType(MULTIPLE, true),\n slcA3 = this.getFiltersByType(CHECKLIST, true),\n slcIndex = slcA1.concat(slcA2);\n slcIndex = slcIndex.concat(slcA3);\n\n let activeIdx = this.getColumnIndexFromFilterId(this.activeFilterId);\n\n for (let i = 0, len = slcIndex.length; i < len; i++) {\n let colIdx = slcIndex[i];\n let curSlc = elm(this.fltIds[colIdx]);\n let slcSelectedValue = this.getFilterValue(colIdx);\n\n // Welcome to cyclomatic complexity hell :)\n // TODO: simplify/refactor if statement\n if (activeIdx !== colIdx ||\n (this.paging && slcA1.indexOf(colIdx) !== -1 &&\n activeIdx === colIdx) ||\n (!this.paging && (slcA3.indexOf(colIdx) !== -1 ||\n slcA2.indexOf(colIdx) !== -1)) ||\n slcSelectedValue === this.getClearFilterText(colIdx)) {\n\n //1st option needs to be inserted\n if (this.loadFltOnDemand) {\n let opt0 = createOpt(this.getClearFilterText(colIdx), '');\n curSlc.innerHTML = '';\n curSlc.appendChild(opt0);\n }\n\n if (slcA3.indexOf(colIdx) !== -1) {\n this.emitter.emit('build-checklist-filter', this, colIdx,\n true);\n } else {\n this.emitter.emit('build-select-filter', this, colIdx,\n true);\n }\n\n this.setFilterValue(colIdx, slcSelectedValue);\n }\n }\n }\n\n /**\n * Determines if passed filter column implements exact query match\n * @param {Number} colIndex Column index\n * @return {Boolean}\n */\n isExactMatch(colIndex) {\n let fltType = this.getFilterType(colIndex);\n return this.exactMatchByCol[colIndex] || this.exactMatch ||\n fltType !== INPUT;\n }\n\n /**\n * Checks if passed row is valid\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n */\n isRowValid(rowIndex) {\n return this.getValidRows().indexOf(rowIndex) !== -1;\n }\n\n /**\n * Checks if passed row is visible\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n */\n isRowDisplayed(rowIndex) {\n let row = this.tbl.rows[rowIndex];\n return this.getRowDisplay(row) === '';\n }\n\n /**\n * Checks if specified column filter ignores diacritics.\n * Note this is only applicable to input filter types.\n * @param {Number} colIndex Column index\n * @returns {Boolean}\n */\n ignoresDiacritics(colIndex) {\n let ignoreDiac = this.ignoreDiacritics;\n if (isArray(ignoreDiac)) {\n return ignoreDiac[colIndex];\n }\n return Boolean(ignoreDiac);\n }\n\n /**\n * Returns clear all text for specified filter column\n * @param {Number} colIndex Column index\n * @returns {String}\n */\n getClearFilterText(colIndex) {\n let clearText = this.clearFilterText;\n if (isArray(clearText)) {\n return clearText[colIndex];\n }\n return clearText;\n }\n\n /**\n * Check if passed script or stylesheet is already imported\n * @param {String} filePath Ressource path\n * @param {String} type Possible values: 'script' or 'link'\n * @return {Boolean}\n */\n isImported(filePath, type = 'script') {\n let imported = false,\n attr = type === 'script' ? 'src' : 'href',\n files = tag(doc, type);\n for (let i = 0, len = files.length; i < len; i++) {\n if (isUndef(files[i][attr])) {\n continue;\n }\n if (files[i][attr].match(filePath)) {\n imported = true;\n break;\n }\n }\n return imported;\n }\n\n /**\n * Import script or stylesheet\n * @param {String} fileId Ressource ID\n * @param {String} filePath Ressource path\n * @param {Function} callback Callback\n * @param {String} type Possible values: 'script' or 'link'\n */\n import(fileId, filePath, callback, type = 'script') {\n if (this.isImported(filePath, type)) {\n return;\n }\n let o = this,\n isLoaded = false,\n file,\n head = tag(doc, 'head')[0];\n\n if (type.toLowerCase() === 'link') {\n file = createElm('link',\n ['id', fileId], ['type', 'text/css'],\n ['rel', 'stylesheet'], ['href', filePath]\n );\n } else {\n file = createElm('script',\n ['id', fileId],\n ['type', 'text/javascript'], ['src', filePath]\n );\n }\n\n //Browser <> IE onload event works only for scripts, not for stylesheets\n file.onload = file.onreadystatechange = () => {\n if (!isLoaded &&\n (!this.readyState || this.readyState === 'loaded' ||\n this.readyState === 'complete')) {\n isLoaded = true;\n if (typeof callback === 'function') {\n callback.call(null, o);\n }\n }\n };\n file.onerror = function () {\n throw new Error(`TableFilter could not load: ${filePath}`);\n };\n head.appendChild(file);\n }\n\n /**\n * Check if table has filters grid\n * @return {Boolean}\n */\n isInitialized() {\n return this.initialized;\n }\n\n /**\n * Get list of filter IDs\n * @return {[type]} [description]\n */\n getFiltersId() {\n return this.fltIds || [];\n }\n\n /**\n * Get filtered (valid) rows indexes\n * @param {Boolean} reCalc Force calculation of filtered rows list\n * @return {Array} List of row indexes\n */\n getValidRows(reCalc) {\n if (!reCalc) {\n return this.validRowsIndex;\n }\n\n let nbRows = this.getRowsNb(true);\n this.validRowsIndex = [];\n for (let k = this.refRow; k < nbRows; k++) {\n let r = this.tbl.rows[k];\n if (!this.paging) {\n if (this.getRowDisplay(r) !== NONE) {\n this.validRowsIndex.push(r.rowIndex);\n }\n } else {\n if (r.getAttribute('validRow') === 'true' ||\n r.getAttribute('validRow') === null) {\n this.validRowsIndex.push(r.rowIndex);\n }\n }\n }\n return this.validRowsIndex;\n }\n\n /**\n * Get the index of the row containing the filters\n * @return {Number}\n */\n getFiltersRowIndex() {\n return this.filtersRowIndex;\n }\n\n /**\n * Get the index of the headers row\n * @return {Number}\n */\n getHeadersRowIndex() {\n return this.headersRow;\n }\n\n /**\n * Get the row index from where the filtering process start (1st filterable\n * row)\n * @return {Number}\n */\n getStartRowIndex() {\n return this.refRow;\n }\n\n /**\n * Get the index of the last row\n * @return {Number}\n */\n getLastRowIndex() {\n let nbRows = this.getRowsNb(true);\n return (nbRows - 1);\n }\n\n /**\n * Determine whether the specified column has one of the passed types\n * @param {Number} colIndex Column index\n * @param {Array} [types=[]] List of column types\n * @returns {Boolean}\n */\n hasType(colIndex, types = []) {\n if (!this.hasColTypes) {\n return false;\n }\n let colType = this.colTypes[colIndex];\n if (isObj(colType)) {\n colType = colType.type;\n }\n return types.indexOf(colType) !== -1;\n }\n\n /**\n * Get the header DOM element for a given column index\n * @param {Number} colIndex Column index\n * @return {Element}\n */\n getHeaderElement(colIndex) {\n let table = this.gridLayout ? this.Mod.gridLayout.headTbl : this.tbl;\n let tHead = tag(table, 'thead');\n let headersRow = this.headersRow;\n let header;\n for (let i = 0; i < this.nbCells; i++) {\n if (i !== colIndex) {\n continue;\n }\n if (tHead.length === 0) {\n header = table.rows[headersRow].cells[i];\n }\n if (tHead.length === 1) {\n header = tHead[0].rows[headersRow].cells[i];\n }\n break;\n }\n return header;\n }\n\n /**\n * Return the list of headers' text\n * @param {Boolean} excludeHiddenCols Optional: exclude hidden columns\n * @return {Array} list of headers' text\n */\n getHeadersText(excludeHiddenCols = false) {\n let headers = [];\n for (let j = 0; j < this.nbCells; j++) {\n if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n if (this.extension('colsVisibility').isColHidden(j)) {\n continue;\n }\n }\n let header = this.getHeaderElement(j);\n let headerText = getFirstTextNode(header);\n headers.push(headerText);\n }\n return headers;\n }\n\n /**\n * Return the filter type for a specified column\n * @param {Number} colIndex Column's index\n * @return {String}\n */\n getFilterType(colIndex) {\n let colType = this.cfg['col_' + colIndex];\n return !colType ? INPUT : colType.toLowerCase();\n }\n\n /**\n * Get the total number of filterable rows\n * @return {Number}\n */\n getFilterableRowsNb() {\n return this.getRowsNb(false);\n }\n\n /**\n * Return the total number of valid rows\n * @param {Boolean} [reCalc=false] Forces calculation of filtered rows\n * @returns {Number}\n */\n getValidRowsNb(reCalc = false) {\n return this.getValidRows(reCalc).length;\n }\n\n /**\n * Get the configuration object (literal object)\n * @return {Object}\n */\n config() {\n return this.cfg;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/tablefilter.js","import {root} from './root';\r\n\r\n/**\r\n * DOM event utilities\r\n */\r\n\r\n/**\r\n * Add event handler for specified event on passed element\r\n *\r\n * @param {DOMElement} obj Element\r\n * @param {String} type Event type\r\n * @param {Function} Handler\r\n * @param {Boolean} capture Specifiy whether the event should be executed in\r\n * the capturing or in the bubbling phase\r\n */\r\nexport const addEvt = (obj, type, func, capture) => {\r\n if (obj.addEventListener) {\r\n obj.addEventListener(type, func, capture);\r\n }\r\n else if (obj.attachEvent) {\r\n obj.attachEvent('on' + type, func);\r\n } else {\r\n obj['on' + type] = func;\r\n }\r\n};\r\n\r\n/**\r\n * Remove event handler for specified event on passed element\r\n *\r\n * @param {DOMElement} obj Element\r\n * @param {String} type Event type\r\n * @param {Function} Handler\r\n * @param {Boolean} capture Specifiy whether the event should be executed in\r\n * the capturing or in the bubbling phase\r\n */\r\nexport const removeEvt = (obj, type, func, capture) => {\r\n if (obj.removeEventListener) {\r\n obj.removeEventListener(type, func, capture);\r\n } else if (obj.detachEvent) {\r\n obj.detachEvent('on' + type, func);\r\n } else {\r\n obj['on' + type] = null;\r\n }\r\n};\r\n\r\n/**\r\n * Prevents further propagation of the current event in the bubbling phase\r\n *\r\n * @param {Event} evt Event on the DOM\r\n */\r\nexport const stopEvt = (evt) => {\r\n if (!evt) {\r\n evt = root.event;\r\n }\r\n if (evt.stopPropagation) {\r\n evt.stopPropagation();\r\n } else {\r\n evt.cancelBubble = true;\r\n }\r\n};\r\n\r\n/**\r\n * Cancels the event if it is cancelable, without stopping further\r\n * propagation of the event.\r\n *\r\n * @param {Event} evt Event on the DOM\r\n */\r\nexport const cancelEvt = (evt) => {\r\n if (!evt) {\r\n evt = root.event;\r\n }\r\n if (evt.preventDefault) {\r\n evt.preventDefault();\r\n } else {\r\n evt.returnValue = false;\r\n }\r\n};\r\n\r\n/**\r\n * Reference to the object that dispatched the event\r\n *\r\n * @param {Event} evt Event on the DOM\r\n * @returns {DOMElement}\r\n */\r\nexport const targetEvt = (evt) => {\r\n if (!evt) {\r\n evt = root.event;\r\n }\r\n return evt.target || evt.srcElement;\r\n};\r\n\r\n/**\r\n * Returns the Unicode value of pressed key\r\n *\r\n * @param {Event} evt Event on the DOM\r\n * @returns {Number}\r\n */\r\nexport const keyCode = (evt) => {\r\n return evt.charCode ? evt.charCode :\r\n (evt.keyCode ? evt.keyCode : (evt.which ? evt.which : 0));\r\n};\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/event.js","/**\n * Export window or global object depending on the environment\n */\nexport const root = (typeof self === 'object' && self.self === self && self) ||\n (typeof global === 'object' && global.global === global && global) ||\n this;\n\n\n\n// WEBPACK FOOTER //\n// ./src/root.js","import {root} from './root';\nimport {isArray, isString, isUndef} from './types';\nimport {trim} from './string';\n\n/**\n * DOM utilities\n */\n\nconst doc = root.document;\n\n/**\n * Returns text + text of children of given node\n * @param {NodeElement} node\n * @return {String}\n */\nexport const getText = (node) => {\n if (isUndef(node.textContent)) {\n return trim(node.innerText);\n }\n return trim(node.textContent);\n}\n\n/**\n * Returns the first text node contained in the supplied node\n * @param {NodeElement} node node\n * @return {String}\n */\nexport const getFirstTextNode = (node) => {\n for (let i = 0; i < node.childNodes.length; i++) {\n let n = node.childNodes[i];\n if (n.nodeType === 3) {\n return n.data;\n }\n }\n}\n\n/**\n * Creates an html element with given collection of attributes\n * @param {String} tag a string of the html tag to create\n * @param {Array} an undetermined number of arrays containing the with 2\n * items, the attribute name and its value ['id','myId']\n * @return {Object} created element\n */\nexport const createElm = (...args) => {\n let tag = args[0];\n if (!isString(tag)) {\n return null;\n }\n\n let el = doc.createElement(tag);\n for (let i = 0; i < args.length; i++) {\n let arg = args[i];\n\n if (isArray(arg) && arg.length === 2) {\n el.setAttribute(arg[0], arg[1]);\n }\n }\n\n return el;\n}\n\n/**\n * Removes passed node from DOM\n * @param {DOMElement} node\n * @return {DOMElement} old node reference\n */\nexport const removeElm = (node) => node.parentNode.removeChild(node);\n\n/**\n * Returns a text node with given text\n * @param {String} txt\n * @return {Object}\n */\nexport const createText = (txt) => doc.createTextNode(txt);\n\n/**\n * Determine whether the passed elements is assigned the given class\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n * @returns {Boolean}\n */\nexport const hasClass = (ele, cls) => {\n if (isUndef(ele)) {\n return false;\n }\n\n if (supportsClassList()) {\n return ele.classList.contains(cls);\n }\n return ele.className.match(new RegExp('(\\\\s|^)' + cls + '(\\\\s|$)'));\n}\n\n/**\n * Adds the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n */\nexport const addClass = (ele, cls) => {\n if (isUndef(ele)) {\n return;\n }\n\n if (supportsClassList()) {\n ele.classList.add(cls);\n return;\n }\n\n if (ele.className === '') {\n ele.className = cls;\n }\n else if (!hasClass(ele, cls)) {\n ele.className += ' ' + cls;\n }\n}\n\n/**\n * Removes the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n */\nexport const removeClass = (ele, cls) => {\n if (isUndef(ele)) {\n return;\n }\n\n if (supportsClassList()) {\n ele.classList.remove(cls);\n return;\n }\n let reg = new RegExp('(\\\\s|^)' + cls + '(\\\\s|$)', 'g');\n ele.className = ele.className.replace(reg, '');\n}\n\n/**\n * Creates and returns an option element\n * @param {String} text option text\n * @param {String} value option value\n * @param {Boolean} isSel whether option is selected\n * @return {Object} option element\n */\nexport const createOpt = (text, value, isSel) => {\n let isSelected = isSel ? true : false;\n let opt = isSelected ?\n createElm('option', ['value', value], ['selected', 'true']) :\n createElm('option', ['value', value]);\n opt.appendChild(createText(text));\n return opt;\n}\n\n/**\n * Creates and returns a checklist item\n * @param {String} id index of check item\n * @param {String} chkValue check item value\n * @param {String} labelText check item label text\n * @return {Object} li DOM element\n */\nexport const createCheckItem = (id, chkValue, labelText) => {\n let li = createElm('li');\n let label = createElm('label', ['for', id]);\n let check = createElm('input',\n ['id', id],\n ['name', id],\n ['type', 'checkbox'],\n ['value', chkValue]\n );\n label.appendChild(check);\n label.appendChild(createText(labelText));\n li.appendChild(label);\n li.label = label;\n li.check = check;\n return li;\n}\n\n/**\n * Returns the element matching the supplied Id\n * @param {String} id Element identifier\n * @return {DOMElement}\n */\nexport const elm = (id) => doc.getElementById(id);\n\n/**\n * Returns list of element matching the supplied tag name\n * @param {String} tagname Tag name\n * @return {NodeList}\n */\nexport const tag = (o, tagname) => o.getElementsByTagName(tagname);\n\n// HTML5 classList API\nfunction supportsClassList() {\n return doc.documentElement.classList;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/dom.js","\r\n/**\r\n * Types utilities\r\n */\r\n\r\nconst UNDEFINED = void 0;\r\n\r\n/**\r\n * Return an empty function\r\n * @return {Function}\r\n */\r\nexport const EMPTY_FN = function() {};\r\n\r\n/**\r\n * Check passed argument is an object\r\n * @param {Object} obj\r\n * @return {Boolean}\r\n */\r\nexport const isObj =\r\n (obj) => Object.prototype.toString.call(obj) === '[object Object]';\r\n\r\n/**\r\n * Check passed argument is a function\r\n * @param {Function} obj\r\n * @return {Boolean}\r\n */\r\nexport const isFn =\r\n (obj) => Object.prototype.toString.call(obj) === '[object Function]';\r\n\r\n/**\r\n * Check passed argument is an array\r\n * @param {Array} obj\r\n * @return {Boolean}\r\n */\r\nexport const isArray =\r\n (obj) => Object.prototype.toString.call(obj) === '[object Array]';\r\n\r\n/**\r\n * Check passed argument is a string\r\n * @param {String} obj objue\r\n * @returns {Boolean}\r\n */\r\nexport const isString =\r\n (obj) => Object.prototype.toString.call(obj) === '[object String]';\r\n\r\n/**\r\n * Check passed argument is a number\r\n * @param {Number} obj\r\n * @returns {Boolean}\r\n */\r\nexport const isNumber =\r\n (obj) => Object.prototype.toString.call(obj) === '[object Number]';\r\n\r\n/**\r\n * Check passed argument is undefined\r\n * @param {Any} obj\r\n * @return {Boolean}\r\n */\r\nexport const isUndef = (obj) => obj === UNDEFINED;\r\n\r\n/**\r\n * Check passed argument is null\r\n * @param {Any} obj\r\n * @return {Boolean}\r\n */\r\nexport const isNull = (obj) => obj === null;\r\n\r\n/**\r\n * Check passed argument is empty (undefined, null or empty string)\r\n * @param {Any} obj\r\n * @return {Boolean}\r\n */\r\nexport const isEmpty = (obj) => isUndef(obj) || isNull(obj) || obj.length === 0;\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/types.js","import {remove as removeDiacritics} from 'diacritics';\n\n/**\n * String utilities\n */\n\n/**\n * Removes whitespace from both sides of passed string\n * @param {String} text\n * @return {String}\n */\nexport const trim = (text) => {\n if (text.trim) {\n return text.trim();\n }\n return text.replace(/^\\s*|\\s*$/g, '');\n}\n\n/**\n * Checks if passed string is empty\n * @param {String} text\n * @return {Boolean}\n */\nexport const isEmpty = (text) => trim(text) === '';\n\n/**\n * Makes regex safe string by escaping special characters from passed string\n * @param {String} text\n * @return {String} escaped string\n */\nexport const rgxEsc = (text) => {\n let chars = /[-\\/\\\\^$*+?.()|[\\]{}]/g;\n let escMatch = '\\\\$&';\n return String(text).replace(chars, escMatch);\n}\n\n/**\n * Returns passed string as lowercase if caseSensitive flag set false. By\n * default it returns the string with no casing changes.\n * @param {String} text\n * @return {String} string\n */\nexport const matchCase = (text, caseSensitive = false) => {\n if (!caseSensitive) {\n return text.toLowerCase();\n }\n return text;\n}\n\n/**\n * Checks if passed data contains the searched term\n * @param {String} term Searched term\n * @param {String} data Data string\n * @param {Boolean} exactMatch Exact match\n * @param {Boolean} caseSensitive Case sensitive\n * @param {Boolean} ignoreDiacritics Ignore diacritics\n * @return {Boolean}\n */\nexport const contains = (term, data, exactMatch = false, caseSensitive = false,\n ignoreDiacritics = false) => {\n // Improved by Cedric Wartel (cwl) automatic exact match for selects and\n // special characters are now filtered\n let regexp;\n let modifier = caseSensitive ? 'g' : 'gi';\n if (ignoreDiacritics) {\n term = removeDiacritics(term);\n data = removeDiacritics(data);\n }\n if (exactMatch) {\n regexp = new RegExp('(^\\\\s*)' + rgxEsc(term) + '(\\\\s*$)',\n modifier);\n } else {\n regexp = new RegExp(rgxEsc(term), modifier);\n }\n return regexp.test(data);\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/string.js","exports.remove = removeDiacritics;\n\nvar replacementList = [\n {\n base: ' ',\n chars: \"\\u00A0\",\n }, {\n base: '0',\n chars: \"\\u07C0\",\n }, {\n base: 'A',\n chars: \"\\u24B6\\uFF21\\u00C0\\u00C1\\u00C2\\u1EA6\\u1EA4\\u1EAA\\u1EA8\\u00C3\\u0100\\u0102\\u1EB0\\u1EAE\\u1EB4\\u1EB2\\u0226\\u01E0\\u00C4\\u01DE\\u1EA2\\u00C5\\u01FA\\u01CD\\u0200\\u0202\\u1EA0\\u1EAC\\u1EB6\\u1E00\\u0104\\u023A\\u2C6F\",\n }, {\n base: 'AA',\n chars: \"\\uA732\",\n }, {\n base: 'AE',\n chars: \"\\u00C6\\u01FC\\u01E2\",\n }, {\n base: 'AO',\n chars: \"\\uA734\",\n }, {\n base: 'AU',\n chars: \"\\uA736\",\n }, {\n base: 'AV',\n chars: \"\\uA738\\uA73A\",\n }, {\n base: 'AY',\n chars: \"\\uA73C\",\n }, {\n base: 'B',\n chars: \"\\u24B7\\uFF22\\u1E02\\u1E04\\u1E06\\u0243\\u0181\",\n }, {\n base: 'C',\n chars: \"\\u24b8\\uff23\\uA73E\\u1E08\\u0106\\u0043\\u0108\\u010A\\u010C\\u00C7\\u0187\\u023B\",\n }, {\n base: 'D',\n chars: \"\\u24B9\\uFF24\\u1E0A\\u010E\\u1E0C\\u1E10\\u1E12\\u1E0E\\u0110\\u018A\\u0189\\u1D05\\uA779\",\n }, {\n base: 'Dh',\n chars: \"\\u00D0\",\n }, {\n base: 'DZ',\n chars: \"\\u01F1\\u01C4\",\n }, {\n base: 'Dz',\n chars: \"\\u01F2\\u01C5\",\n }, {\n base: 'E',\n chars: \"\\u025B\\u24BA\\uFF25\\u00C8\\u00C9\\u00CA\\u1EC0\\u1EBE\\u1EC4\\u1EC2\\u1EBC\\u0112\\u1E14\\u1E16\\u0114\\u0116\\u00CB\\u1EBA\\u011A\\u0204\\u0206\\u1EB8\\u1EC6\\u0228\\u1E1C\\u0118\\u1E18\\u1E1A\\u0190\\u018E\\u1D07\",\n }, {\n base: 'F',\n chars: \"\\uA77C\\u24BB\\uFF26\\u1E1E\\u0191\\uA77B\",\n }, {\n base: 'G',\n chars: \"\\u24BC\\uFF27\\u01F4\\u011C\\u1E20\\u011E\\u0120\\u01E6\\u0122\\u01E4\\u0193\\uA7A0\\uA77D\\uA77E\\u0262\",\n }, {\n base: 'H',\n chars: \"\\u24BD\\uFF28\\u0124\\u1E22\\u1E26\\u021E\\u1E24\\u1E28\\u1E2A\\u0126\\u2C67\\u2C75\\uA78D\",\n }, {\n base: 'I',\n chars: \"\\u24BE\\uFF29\\xCC\\xCD\\xCE\\u0128\\u012A\\u012C\\u0130\\xCF\\u1E2E\\u1EC8\\u01CF\\u0208\\u020A\\u1ECA\\u012E\\u1E2C\\u0197\",\n }, {\n base: 'J',\n chars: \"\\u24BF\\uFF2A\\u0134\\u0248\\u0237\",\n }, {\n base: 'K',\n chars: \"\\u24C0\\uFF2B\\u1E30\\u01E8\\u1E32\\u0136\\u1E34\\u0198\\u2C69\\uA740\\uA742\\uA744\\uA7A2\",\n }, {\n base: 'L',\n chars: \"\\u24C1\\uFF2C\\u013F\\u0139\\u013D\\u1E36\\u1E38\\u013B\\u1E3C\\u1E3A\\u0141\\u023D\\u2C62\\u2C60\\uA748\\uA746\\uA780\",\n }, {\n base: 'LJ',\n chars: \"\\u01C7\",\n }, {\n base: 'Lj',\n chars: \"\\u01C8\",\n }, {\n base: 'M',\n chars: \"\\u24C2\\uFF2D\\u1E3E\\u1E40\\u1E42\\u2C6E\\u019C\\u03FB\",\n }, {\n base: 'N',\n chars: \"\\uA7A4\\u0220\\u24C3\\uFF2E\\u01F8\\u0143\\xD1\\u1E44\\u0147\\u1E46\\u0145\\u1E4A\\u1E48\\u019D\\uA790\\u1D0E\",\n }, {\n base: 'NJ',\n chars: \"\\u01CA\",\n }, {\n base: 'Nj',\n chars: \"\\u01CB\",\n }, {\n base: 'O',\n chars: \"\\u24C4\\uFF2F\\xD2\\xD3\\xD4\\u1ED2\\u1ED0\\u1ED6\\u1ED4\\xD5\\u1E4C\\u022C\\u1E4E\\u014C\\u1E50\\u1E52\\u014E\\u022E\\u0230\\xD6\\u022A\\u1ECE\\u0150\\u01D1\\u020C\\u020E\\u01A0\\u1EDC\\u1EDA\\u1EE0\\u1EDE\\u1EE2\\u1ECC\\u1ED8\\u01EA\\u01EC\\xD8\\u01FE\\u0186\\u019F\\uA74A\\uA74C\",\n }, {\n base: 'OE',\n chars: \"\\u0152\",\n }, {\n base: 'OI',\n chars: \"\\u01A2\",\n }, {\n base: 'OO',\n chars: \"\\uA74E\",\n }, {\n base: 'OU',\n chars: \"\\u0222\",\n }, {\n base: 'P',\n chars: \"\\u24C5\\uFF30\\u1E54\\u1E56\\u01A4\\u2C63\\uA750\\uA752\\uA754\",\n }, {\n base: 'Q',\n chars: \"\\u24C6\\uFF31\\uA756\\uA758\\u024A\",\n }, {\n base: 'R',\n chars: \"\\u24C7\\uFF32\\u0154\\u1E58\\u0158\\u0210\\u0212\\u1E5A\\u1E5C\\u0156\\u1E5E\\u024C\\u2C64\\uA75A\\uA7A6\\uA782\",\n }, {\n base: 'S',\n chars: \"\\u24C8\\uFF33\\u1E9E\\u015A\\u1E64\\u015C\\u1E60\\u0160\\u1E66\\u1E62\\u1E68\\u0218\\u015E\\u2C7E\\uA7A8\\uA784\",\n }, {\n base: 'T',\n chars: \"\\u24C9\\uFF34\\u1E6A\\u0164\\u1E6C\\u021A\\u0162\\u1E70\\u1E6E\\u0166\\u01AC\\u01AE\\u023E\\uA786\",\n }, {\n base: 'Th',\n chars: \"\\u00DE\",\n }, {\n base: 'TZ',\n chars: \"\\uA728\",\n }, {\n base: 'U',\n chars: \"\\u24CA\\uFF35\\xD9\\xDA\\xDB\\u0168\\u1E78\\u016A\\u1E7A\\u016C\\xDC\\u01DB\\u01D7\\u01D5\\u01D9\\u1EE6\\u016E\\u0170\\u01D3\\u0214\\u0216\\u01AF\\u1EEA\\u1EE8\\u1EEE\\u1EEC\\u1EF0\\u1EE4\\u1E72\\u0172\\u1E76\\u1E74\\u0244\",\n }, {\n base: 'V',\n chars: \"\\u24CB\\uFF36\\u1E7C\\u1E7E\\u01B2\\uA75E\\u0245\",\n }, {\n base: 'VY',\n chars: \"\\uA760\",\n }, {\n base: 'W',\n chars: \"\\u24CC\\uFF37\\u1E80\\u1E82\\u0174\\u1E86\\u1E84\\u1E88\\u2C72\",\n }, {\n base: 'X',\n chars: \"\\u24CD\\uFF38\\u1E8A\\u1E8C\",\n }, {\n base: 'Y',\n chars: \"\\u24CE\\uFF39\\u1EF2\\xDD\\u0176\\u1EF8\\u0232\\u1E8E\\u0178\\u1EF6\\u1EF4\\u01B3\\u024E\\u1EFE\",\n }, {\n base: 'Z',\n chars: \"\\u24CF\\uFF3A\\u0179\\u1E90\\u017B\\u017D\\u1E92\\u1E94\\u01B5\\u0224\\u2C7F\\u2C6B\\uA762\",\n }, {\n base: 'a',\n chars: \"\\u24D0\\uFF41\\u1E9A\\u00E0\\u00E1\\u00E2\\u1EA7\\u1EA5\\u1EAB\\u1EA9\\u00E3\\u0101\\u0103\\u1EB1\\u1EAF\\u1EB5\\u1EB3\\u0227\\u01E1\\u00E4\\u01DF\\u1EA3\\u00E5\\u01FB\\u01CE\\u0201\\u0203\\u1EA1\\u1EAD\\u1EB7\\u1E01\\u0105\\u2C65\\u0250\\u0251\",\n }, {\n base: 'aa',\n chars: \"\\uA733\",\n }, {\n base: 'ae',\n chars: \"\\u00E6\\u01FD\\u01E3\",\n }, {\n base: 'ao',\n chars: \"\\uA735\",\n }, {\n base: 'au',\n chars: \"\\uA737\",\n }, {\n base: 'av',\n chars: \"\\uA739\\uA73B\",\n }, {\n base: 'ay',\n chars: \"\\uA73D\",\n }, {\n base: 'b',\n chars: \"\\u24D1\\uFF42\\u1E03\\u1E05\\u1E07\\u0180\\u0183\\u0253\\u0182\",\n }, {\n base: 'c',\n chars: \"\\uFF43\\u24D2\\u0107\\u0109\\u010B\\u010D\\u00E7\\u1E09\\u0188\\u023C\\uA73F\\u2184\",\n }, {\n base: 'd',\n chars: \"\\u24D3\\uFF44\\u1E0B\\u010F\\u1E0D\\u1E11\\u1E13\\u1E0F\\u0111\\u018C\\u0256\\u0257\\u018B\\u13E7\\u0501\\uA7AA\",\n }, {\n base: 'dh',\n chars: \"\\u00F0\",\n }, {\n base: 'dz',\n chars: \"\\u01F3\\u01C6\",\n }, {\n base: 'e',\n chars: \"\\u24D4\\uFF45\\u00E8\\u00E9\\u00EA\\u1EC1\\u1EBF\\u1EC5\\u1EC3\\u1EBD\\u0113\\u1E15\\u1E17\\u0115\\u0117\\u00EB\\u1EBB\\u011B\\u0205\\u0207\\u1EB9\\u1EC7\\u0229\\u1E1D\\u0119\\u1E19\\u1E1B\\u0247\\u01DD\",\n }, {\n base: 'f',\n chars: \"\\u24D5\\uFF46\\u1E1F\\u0192\",\n }, {\n base: 'ff',\n chars: \"\\uFB00\",\n }, {\n base: 'fi',\n chars: \"\\uFB01\",\n }, {\n base: 'fl',\n chars: \"\\uFB02\",\n }, {\n base: 'ffi',\n chars: \"\\uFB03\",\n }, {\n base: 'ffl',\n chars: \"\\uFB04\",\n }, {\n base: 'g',\n chars: \"\\u24D6\\uFF47\\u01F5\\u011D\\u1E21\\u011F\\u0121\\u01E7\\u0123\\u01E5\\u0260\\uA7A1\\uA77F\\u1D79\",\n }, {\n base: 'h',\n chars: \"\\u24D7\\uFF48\\u0125\\u1E23\\u1E27\\u021F\\u1E25\\u1E29\\u1E2B\\u1E96\\u0127\\u2C68\\u2C76\\u0265\",\n }, {\n base: 'hv',\n chars: \"\\u0195\",\n }, {\n base: 'i',\n chars: \"\\u24D8\\uFF49\\xEC\\xED\\xEE\\u0129\\u012B\\u012D\\xEF\\u1E2F\\u1EC9\\u01D0\\u0209\\u020B\\u1ECB\\u012F\\u1E2D\\u0268\\u0131\",\n }, {\n base: 'j',\n chars: \"\\u24D9\\uFF4A\\u0135\\u01F0\\u0249\",\n }, {\n base: 'k',\n chars: \"\\u24DA\\uFF4B\\u1E31\\u01E9\\u1E33\\u0137\\u1E35\\u0199\\u2C6A\\uA741\\uA743\\uA745\\uA7A3\",\n }, {\n base: 'l',\n chars: \"\\u24DB\\uFF4C\\u0140\\u013A\\u013E\\u1E37\\u1E39\\u013C\\u1E3D\\u1E3B\\u017F\\u0142\\u019A\\u026B\\u2C61\\uA749\\uA781\\uA747\\u026D\",\n }, {\n base: 'lj',\n chars: \"\\u01C9\",\n }, {\n base: 'm',\n chars: \"\\u24DC\\uFF4D\\u1E3F\\u1E41\\u1E43\\u0271\\u026F\",\n }, {\n base: 'n',\n chars: \"\\u24DD\\uFF4E\\u01F9\\u0144\\xF1\\u1E45\\u0148\\u1E47\\u0146\\u1E4B\\u1E49\\u019E\\u0272\\u0149\\uA791\\uA7A5\\u043B\\u0509\",\n }, {\n base: 'nj',\n chars: \"\\u01CC\",\n }, {\n base: 'o',\n chars: \"\\u24DE\\uFF4F\\xF2\\xF3\\xF4\\u1ED3\\u1ED1\\u1ED7\\u1ED5\\xF5\\u1E4D\\u022D\\u1E4F\\u014D\\u1E51\\u1E53\\u014F\\u022F\\u0231\\xF6\\u022B\\u1ECF\\u0151\\u01D2\\u020D\\u020F\\u01A1\\u1EDD\\u1EDB\\u1EE1\\u1EDF\\u1EE3\\u1ECD\\u1ED9\\u01EB\\u01ED\\xF8\\u01FF\\uA74B\\uA74D\\u0275\\u0254\\u1D11\",\n }, {\n base: 'oe',\n chars: \"\\u0153\",\n }, {\n base: 'oi',\n chars: \"\\u01A3\",\n }, {\n base: 'oo',\n chars: \"\\uA74F\",\n }, {\n base: 'ou',\n chars: \"\\u0223\",\n }, {\n base: 'p',\n chars: \"\\u24DF\\uFF50\\u1E55\\u1E57\\u01A5\\u1D7D\\uA751\\uA753\\uA755\\u03C1\",\n }, {\n base: 'q',\n chars: \"\\u24E0\\uFF51\\u024B\\uA757\\uA759\",\n }, {\n base: 'r',\n chars: \"\\u24E1\\uFF52\\u0155\\u1E59\\u0159\\u0211\\u0213\\u1E5B\\u1E5D\\u0157\\u1E5F\\u024D\\u027D\\uA75B\\uA7A7\\uA783\",\n }, {\n base: 's',\n chars: \"\\u24E2\\uFF53\\u015B\\u1E65\\u015D\\u1E61\\u0161\\u1E67\\u1E63\\u1E69\\u0219\\u015F\\u023F\\uA7A9\\uA785\\u1E9B\\u0282\",\n }, {\n base: 'ss',\n chars: \"\\xDF\",\n }, {\n base: 't',\n chars: \"\\u24E3\\uFF54\\u1E6B\\u1E97\\u0165\\u1E6D\\u021B\\u0163\\u1E71\\u1E6F\\u0167\\u01AD\\u0288\\u2C66\\uA787\",\n }, {\n base: 'th',\n chars: \"\\u00FE\",\n }, {\n base: 'tz',\n chars: \"\\uA729\",\n }, {\n base: 'u',\n chars: \"\\u24E4\\uFF55\\xF9\\xFA\\xFB\\u0169\\u1E79\\u016B\\u1E7B\\u016D\\xFC\\u01DC\\u01D8\\u01D6\\u01DA\\u1EE7\\u016F\\u0171\\u01D4\\u0215\\u0217\\u01B0\\u1EEB\\u1EE9\\u1EEF\\u1EED\\u1EF1\\u1EE5\\u1E73\\u0173\\u1E77\\u1E75\\u0289\",\n }, {\n base: 'v',\n chars: \"\\u24E5\\uFF56\\u1E7D\\u1E7F\\u028B\\uA75F\\u028C\",\n }, {\n base: 'vy',\n chars: \"\\uA761\",\n }, {\n base: 'w',\n chars: \"\\u24E6\\uFF57\\u1E81\\u1E83\\u0175\\u1E87\\u1E85\\u1E98\\u1E89\\u2C73\",\n }, {\n base: 'x',\n chars: \"\\u24E7\\uFF58\\u1E8B\\u1E8D\",\n }, {\n base: 'y',\n chars: \"\\u24E8\\uFF59\\u1EF3\\xFD\\u0177\\u1EF9\\u0233\\u1E8F\\xFF\\u1EF7\\u1E99\\u1EF5\\u01B4\\u024F\\u1EFF\",\n }, {\n base: 'z',\n chars: \"\\u24E9\\uFF5A\\u017A\\u1E91\\u017C\\u017E\\u1E93\\u1E95\\u01B6\\u0225\\u0240\\u2C6C\\uA763\",\n }\n];\n\nvar diacriticsMap = {};\nfor (var i = 0; i < replacementList.length; i += 1) {\n var chars = replacementList[i].chars;\n for (var j = 0; j < chars.length; j += 1) {\n diacriticsMap[chars[j]] = replacementList[i].base;\n }\n}\n\nfunction removeDiacritics(str) {\n return str.replace(/[^\\u0000-\\u007e]/g, function(c) {\n return diacriticsMap[c] || c;\n });\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/diacritics/index.js\n// module id = 6\n// module chunks = 0","import {isNumber} from './types';\n\n/**\n * Takes a string, removes all formatting/cruft and returns the raw float value\n * @param {String} Formatted number\n * @param {String} Decimal type '.' or ','\n * @return {Number} Unformatted number\n *\n * https://github.com/openexchangerates/accounting.js/blob/master/accounting.js\n */\nexport const parse = (value, decimal = '.') => {\n // Return the value as-is if it's already a number\n if (isNumber(value)) {\n return value;\n }\n\n // Build regex to strip out everything except digits, decimal point and\n // minus sign\n let regex = new RegExp('[^0-9-' + decimal + ']', ['g']);\n let unformatted = parseFloat(\n ('' + value)\n .replace(/\\((.*)\\)/, '-$1') // replace bracketed values with negatives\n .replace(regex, '') // strip out any cruft\n .replace(decimal, '.') // make sure decimal point is standard\n );\n\n // This will fail silently\n return !isNaN(unformatted) ? unformatted : 0;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/number.js","/**\r\n * Event emitter class\r\n */\r\nexport class Emitter {\r\n /**\r\n * Creates an instance of Emitter.\r\n */\r\n constructor() {\r\n /**\r\n * Events object\r\n * @type {Object}\r\n */\r\n this.events = {};\r\n }\r\n\r\n /**\r\n * Subscribe to an event\r\n * @param {Array} evts Collection of event names\r\n * @param {Function} fn Function invoked when event is emitted\r\n */\r\n on(evts, fn) {\r\n evts.forEach((evt) => {\r\n this.events[evt] = this.events[evt] || [];\r\n this.events[evt].push(fn);\r\n });\r\n }\r\n\r\n /**\r\n * Unsubscribe to an event\r\n * @param {Array} evts Collection of event names\r\n * @param {Function} fn Function invoked when event is emitted\r\n */\r\n off(evts, fn) {\r\n evts.forEach((evt) => {\r\n if (evt in this.events) {\r\n this.events[evt].splice(this.events[evt].indexOf(fn), 1);\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Emit an event\r\n * @param {String} evt Event name followed by any other argument passed to\r\n * the invoked function\r\n */\r\n emit(evt /*, args...*/) {\r\n if (evt in this.events) {\r\n for (let i = 0; i < this.events[evt].length; i++) {\r\n this.events[evt][i].apply(this, [].slice.call(arguments, 1));\r\n }\r\n }\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/emitter.js","import {Feature} from '../feature';\nimport {createElm, removeElm, elm, tag} from '../dom';\nimport {addEvt, targetEvt} from '../event';\nimport {contains} from '../string';\nimport {NONE} from '../const';\n\n/**\n * Grid layout, table with fixed headers\n */\nexport class GridLayout extends Feature {\n\n /**\n * Creates an instance of GridLayout\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'gridLayout');\n\n let f = this.config;\n\n /**\n * Grid-layout container width as CSS string\n * @type {String}\n */\n this.width = f.grid_width || null;\n\n /**\n * Grid-layout container height as CSS string\n * @type {String}\n */\n this.height = f.grid_height || null;\n\n /**\n * Css class for main container element\n * @type {String}\n */\n this.mainContCssClass = f.grid_cont_css_class || 'grd_Cont';\n\n /**\n * Css class for body table container element\n * @type {String}\n */\n this.contCssClass = f.grid_tbl_cont_css_class || 'grd_tblCont';\n\n /**\n * Css class for headers table container element\n * @type {String}\n */\n this.headContCssClass = f.grid_tblHead_cont_css_class ||\n 'grd_headTblCont';\n\n /**\n * Css class for toolbar container element (rows counter, paging etc.)\n * @type {String}\n */\n this.infDivCssClass = f.grid_inf_grid_css_class || 'grd_inf';\n\n /**\n * Index of the headers row, default: 0\n * @type {Number}\n */\n this.headRowIndex = f.grid_headers_row_index || 0;\n\n /**\n * Collection of the header row indexes to be moved into headers table\n * @type {Array}\n */\n this.headRows = f.grid_headers_rows || [0];\n\n /**\n * Enable or disable column filters generation, default: true\n * @type {Boolean}\n */\n this.enableFilters = f.grid_enable_default_filters === false ?\n false : true;\n\n /**\n * Enable or disable column headers, default: false\n * @type {Boolean}\n */\n this.noHeaders = Boolean(f.grid_no_headers);\n\n /**\n * Grid-layout default column widht as CSS string\n * @type {String}\n */\n this.defaultColWidth = f.grid_default_col_width || '100px';\n\n /**\n * List of column elements\n * @type {Array}\n * @private\n */\n this.colElms = [];\n\n /**\n * Prefix for grid-layout filter's cell ID\n * @type {String}\n * @private\n */\n this.prfxGridFltTd = '_td_';\n\n /**\n * Prefix for grid-layout header's cell ID\n * @type {String}\n * @private\n */\n this.prfxGridTh = 'tblHeadTh_';\n\n /**\n * Mark-up of original HTML table\n * @type {String}\n * @private\n */\n this.sourceTblHtml = tf.tbl.outerHTML;\n\n /**\n * Indicates if working table has column elements\n * @type {Boolean}\n * @private\n */\n this.tblHasColTag = tag(tf.tbl, 'col').length > 0 ? true : false;\n\n /**\n * Main container element\n * @private\n */\n this.tblMainCont = null;\n\n /**\n * Table container element\n * @private\n */\n this.tblCont = null;\n\n /**\n * Headers' table container element\n * @private\n */\n this.headTblCont = null;\n\n /**\n * Headers' table element\n * @private\n */\n this.headTbl = null;\n\n // filters flag at TF level\n tf.fltGrid = this.enableFilters;\n }\n\n /**\n * Generates a grid with fixed headers\n * TODO: reduce size of init by extracting single purposed methods\n */\n init() {\n let tf = this.tf;\n let tbl = tf.tbl;\n\n if (this.initialized) {\n return;\n }\n\n // Override relevant TableFilter properties\n this.setOverrides();\n\n // Assign default column widths\n this.setDefaultColWidths();\n\n // Initial table width\n let tblW = this.initialTableWidth();\n\n //Main container: it will contain all the elements\n this.tblMainCont = this.createContainer(\n 'div', this.mainContCssClass);\n if (this.width) {\n this.tblMainCont.style.width = this.width;\n }\n tbl.parentNode.insertBefore(this.tblMainCont, tbl);\n\n //Table container: div wrapping content table\n this.tblCont = this.createContainer('div', this.contCssClass);\n this.setConfigWidth(this.tblCont);\n if (this.height) {\n this.tblCont.style.height = this.height;\n }\n tbl.parentNode.insertBefore(this.tblCont, tbl);\n let t = removeElm(tbl);\n this.tblCont.appendChild(t);\n\n //In case table width is expressed in %\n if (tbl.style.width === '') {\n tbl.style.width = (contains('%', tblW) ?\n tbl.clientWidth : tblW) + 'px';\n }\n\n let d = removeElm(this.tblCont);\n this.tblMainCont.appendChild(d);\n\n //Headers table container: div wrapping headers table\n this.headTblCont = this.createContainer(\n 'div', this.headContCssClass);\n this.setConfigWidth(this.headTblCont);\n\n //Headers table\n this.headTbl = createElm('table');\n let tH = createElm('tHead');\n\n //1st row should be headers row, ids are added if not set\n //Those ids are used by the sort feature\n let hRow = tbl.rows[this.headRowIndex];\n let sortTriggers = this.getSortTriggerIds(hRow);\n\n //Filters row is created\n let filtersRow = this.createFiltersRow();\n\n //Headers row are moved from content table to headers table\n this.setHeadersRow(tH);\n\n this.headTbl.appendChild(tH);\n if (tf.filtersRowIndex === 0) {\n tH.insertBefore(filtersRow, hRow);\n } else {\n tH.appendChild(filtersRow);\n }\n\n this.headTblCont.appendChild(this.headTbl);\n this.tblCont.parentNode.insertBefore(this.headTblCont, this.tblCont);\n\n //THead needs to be removed in content table for sort feature\n let thead = tag(tbl, 'thead');\n if (thead.length > 0) {\n tbl.removeChild(thead[0]);\n }\n\n //Headers table style\n this.headTbl.style.tableLayout = 'fixed';\n tbl.style.tableLayout = 'fixed';\n this.headTbl.cellPadding = tbl.cellPadding;\n this.headTbl.cellSpacing = tbl.cellSpacing;\n // this.headTbl.style.width = tbl.style.width;\n\n //content table without headers needs col widths to be reset\n tf.setColWidths(this.headTbl);\n\n //Headers container width\n // this.headTblCont.style.width = this.tblCont.clientWidth+'px';\n\n tbl.style.width = '';\n //\n this.headTbl.style.width = tbl.clientWidth + 'px';\n //\n\n //scroll synchronisation\n addEvt(this.tblCont, 'scroll', (evt) => {\n let elm = targetEvt(evt);\n let scrollLeft = elm.scrollLeft;\n this.headTblCont.scrollLeft = scrollLeft;\n //New pointerX calc taking into account scrollLeft\n // if(!o.isPointerXOverwritten){\n // try{\n // o.Evt.pointerX = function(evt){\n // let e = evt || global.event;\n // let bdScrollLeft = tf_StandardBody().scrollLeft +\n // scrollLeft;\n // return (e.pageX + scrollLeft) ||\n // (e.clientX + bdScrollLeft);\n // };\n // o.isPointerXOverwritten = true;\n // } catch(err) {\n // o.isPointerXOverwritten = false;\n // }\n // }\n });\n\n // TODO: Trigger a custom event handled by sort extension\n let sort = tf.extension('sort');\n if (sort) {\n sort.asyncSort = true;\n sort.triggerIds = sortTriggers;\n }\n\n //Col elements are enough to keep column widths after sorting and\n //filtering\n this.setColumnElements();\n\n if (tf.popupFilters) {\n filtersRow.style.display = NONE;\n }\n\n if (tbl.clientWidth !== this.headTbl.clientWidth) {\n tbl.style.width = this.headTbl.clientWidth + 'px';\n }\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Overrides TableFilter instance properties to adjust to grid layout mode\n * @private\n */\n setOverrides() {\n let tf = this.tf;\n tf.refRow = 0;\n tf.headersRow = 0;\n tf.filtersRowIndex = 1;\n tf.isExternalFlt = true;\n }\n\n /**\n * Set grid-layout default column widths if column widths are not defined\n * @private\n */\n setDefaultColWidths() {\n let tf = this.tf;\n if (tf.hasColWidths) {\n return;\n }\n for (let k = 0, len = tf.getCellsNb(); k < len; k++) {\n let colW;\n let cell = tf.tbl.rows[tf.getHeadersRowIndex()].cells[k];\n if (cell.width !== '') {\n colW = cell.width;\n } else if (cell.style.width !== '') {\n colW = parseInt(cell.style.width, 10);\n } else {\n colW = this.defaultColWidth;\n }\n tf.colWidths[k] = colW;\n }\n tf.hasColWidths = true;\n tf.setColWidths();\n }\n\n /**\n * Initial table width\n * @returns {Number}\n * @private\n */\n initialTableWidth() {\n let tbl = this.tf.tbl;\n let width; //initial table width\n\n if (tbl.width !== '') {\n width = tbl.width;\n }\n else if (tbl.style.width !== '') {\n width = tbl.style.width;\n } else {\n width = tbl.clientWidth;\n }\n return parseInt(width, 10);\n }\n\n /**\n * Creates container element\n * @param {String} tag Tag name\n * @param {String} className Css class to assign to element\n * @returns {DOMElement}\n * @private\n */\n createContainer(tag, className) {\n let element = createElm(tag);\n element.className = className;\n return element;\n }\n\n /**\n * Creates filters row with cells\n * @returns {HTMLTableRowElement}\n * @private\n */\n createFiltersRow() {\n let tf = this.tf;\n let filtersRow = createElm('tr');\n if (this.enableFilters && tf.fltGrid) {\n tf.externalFltTgtIds = [];\n for (let j = 0; j < tf.getCellsNb(); j++) {\n let fltTdId = `${tf.prfxFlt + j + this.prfxGridFltTd + tf.id}`;\n let cl = createElm(tf.fltCellTag, ['id', fltTdId]);\n filtersRow.appendChild(cl);\n tf.externalFltTgtIds[j] = fltTdId;\n }\n }\n return filtersRow;\n }\n\n /**\n * Generates column elements if necessary and assigns their widths\n * @private\n */\n setColumnElements() {\n let tf = this.tf;\n let cols = tag(tf.tbl, 'col');\n this.tblHasColTag = cols.length > 0;\n\n for (let k = (tf.nbCells - 1); k >= 0; k--) {\n let col;\n\n if (!this.tblHasColTag) {\n col = createElm('col');\n tf.tbl.insertBefore(col, tf.tbl.firstChild);\n } else {\n col = cols[k];\n }\n col.style.width = tf.colWidths[k];\n this.colElms[k] = col;\n }\n this.tblHasColTag = true;\n }\n\n /**\n * Sets headers row in headers table\n * @param {HTMLHeadElement} tableHead Table head element\n * @private\n */\n setHeadersRow(tableHead) {\n if (this.noHeaders) {\n // Handle table with no headers, assuming here headers do not\n // exist\n tableHead.appendChild(createElm('tr'));\n } else {\n // Headers row are moved from content table to headers table\n for (let i = 0; i < this.headRows.length; i++) {\n let row = this.tf.tbl.rows[this.headRows[i]];\n tableHead.appendChild(row);\n }\n }\n }\n\n /**\n * Sets width defined in configuration to passed element\n * @param {DOMElement} element DOM element\n * @private\n */\n setConfigWidth(element) {\n if (!this.width) {\n return;\n }\n if (this.width.indexOf('%') !== -1) {\n element.style.width = '100%';\n } else {\n element.style.width = this.width;\n }\n }\n\n /**\n * Returns a list of header IDs used for specifing external sort triggers\n * @param {HTMLTableRowElement} row DOM row element\n * @returns {Array} List of IDs\n * @private\n */\n getSortTriggerIds(row) {\n let tf = this.tf;\n let sortTriggers = [];\n for (let n = 0; n < tf.getCellsNb(); n++) {\n let c = row.cells[n];\n let thId = c.getAttribute('id');\n if (!thId || thId === '') {\n thId = `${this.prfxGridTh + n}_${tf.id}`;\n c.setAttribute('id', thId);\n }\n sortTriggers.push(thId);\n }\n return sortTriggers;\n }\n\n /**\n * Removes the grid layout\n */\n destroy() {\n let tf = this.tf;\n let tbl = tf.tbl;\n\n if (!this.initialized) {\n return;\n }\n let t = removeElm(tbl);\n this.tblMainCont.parentNode.insertBefore(t, this.tblMainCont);\n removeElm(this.tblMainCont);\n\n this.tblMainCont = null;\n this.headTblCont = null;\n this.headTbl = null;\n this.tblCont = null;\n\n tbl.outerHTML = this.sourceTblHtml;\n //needed to keep reference of table element for future usage\n this.tf.tbl = elm(tf.id);\n\n this.initialized = false;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/gridLayout.js","\nconst NOTIMPLEMENTED = 'Not implemented.';\n\n/**\n * Base class defining the interface of a TableFilter feature\n */\nexport class Feature {\n /**\n * Creates an instance of Feature\n * @param {Object} tf TableFilter instance\n * @param {String} feature Feature name known by TableFilter\n */\n constructor(tf, feature) {\n /**\n * TableFilter instance\n * @type {TableFilter}\n */\n this.tf = tf;\n\n /**\n * Feature name\n * @type {String}\n */\n this.feature = feature;\n\n /**\n * TableFilter feature setting\n * @type {Boolean}\n */\n this.enabled = tf[feature];\n\n /**\n * TableFilter configuration\n * @type {Object}\n */\n this.config = tf.config();\n\n /**\n * TableFilter emitter instance\n * @type {Emitter}\n */\n this.emitter = tf.emitter;\n\n /**\n * Field indicating whether Feature is initialized\n * @type {Boolean}\n */\n this.initialized = false;\n\n /** Subscribe to destroy event */\n this.emitter.on(['destroy'], () => this.destroy());\n }\n\n /**\n * Initialize the feature\n */\n init() {\n throw new Error(NOTIMPLEMENTED);\n }\n\n /**\n * Reset the feature after being disabled\n */\n reset() {\n this.enable();\n this.init();\n }\n\n /**\n * Destroy the feature\n */\n destroy() {\n throw new Error(NOTIMPLEMENTED);\n }\n\n /**\n * Enable the feature\n */\n enable() {\n this.enabled = true;\n }\n\n /**\n * Disable the feature\n */\n disable() {\n this.enabled = false;\n }\n\n /**\n * Indicate whether the feature is enabled or not\n * @returns {Boolean}\n */\n isEnabled() {\n return this.enabled;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/feature.js","/**\n * Filter types\n */\n\n/**\n * Input filter type\n * @type {String}\n */\nexport const INPUT = 'input';\n/**\n * Select filter type\n * @type {String}\n */\nexport const SELECT = 'select';\n/**\n * Multiple select filter type\n * @type {String}\n */\nexport const MULTIPLE = 'multiple';\n/**\n * Checklist filter type\n * @type {String}\n */\nexport const CHECKLIST = 'checklist';\n/**\n * None filter type\n * @type {String}\n */\nexport const NONE = 'none';\n\n/**\n * Key codes\n */\n\n/**\n * Enter key code\n * @type {Number}\n */\nexport const ENTER_KEY = 13;\n/**\n * Tab key code\n * @type {Number}\n */\nexport const TAB_KEY = 9;\n/**\n * Escape key code\n * @type {Number}\n */\nexport const ESC_KEY = 27;\n/**\n * Up arrow key code\n * @type {Number}\n */\nexport const UP_ARROW_KEY = 38;\n/**\n * Down arrow key code\n * @type {Number}\n */\nexport const DOWN_ARROW_KEY = 40;\n\n/**\n * HTML tags\n */\n\n/**\n * Header cell tag\n * @type {String}\n */\nexport const HEADER_TAG = 'TH';\n/**\n * Cell tag\n * @type {String}\n */\nexport const CELL_TAG = 'TD';\n\n/**\n * Data types\n */\n\n/**\n * String\n * @type {String}\n */\nexport const STRING = 'string';\n\n/**\n * Number\n * @type {String}\n */\nexport const NUMBER = 'number';\n\n/**\n * Formatted number\n * @type {String}\n */\nexport const FORMATTED_NUMBER = 'formatted-number';\n\n/**\n * Date\n * @type {String}\n */\nexport const DATE = 'date';\n\n/**\n * IP address\n * @type {String}\n */\nexport const IP_ADDRESS = 'ipaddress';\n\n/**\n * Default values\n */\n\n/**\n * Auto filter delay in milliseconds\n * @type {Number}\n */\nexport const AUTO_FILTER_DELAY = 750;\n\n\n\n// WEBPACK FOOTER //\n// ./src/const.js","import {Feature} from '../feature';\r\nimport {createElm, createText, elm, removeElm} from '../dom';\r\nimport {isFn, EMPTY_FN} from '../types';\r\nimport {root} from '../root';\r\nimport {NONE} from '../const';\r\n\r\nconst EVENTS = [\r\n 'before-filtering',\r\n 'before-populating-filter',\r\n 'before-page-change',\r\n 'before-clearing-filters',\r\n 'before-page-length-change',\r\n 'before-reset-page',\r\n 'before-reset-page-length',\r\n 'before-loading-extensions',\r\n 'before-loading-themes'\r\n];\r\n\r\n/**\r\n * Activity indicator\r\n *\r\n * @export\r\n * @class Loader\r\n * @extends {Feature}\r\n */\r\nexport class Loader extends Feature {\r\n\r\n /**\r\n * Creates an instance of Loader.\r\n *\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'loader');\r\n\r\n let f = this.config;\r\n\r\n /**\r\n * ID of custom container element\r\n * @type {String}\r\n */\r\n this.targetId = f.loader_target_id || null;\r\n\r\n /**\r\n * Loader container DOM element\r\n * @type {DOMElement}\r\n */\r\n this.cont = null;\r\n\r\n /**\r\n * Text displayed when indicator is visible\r\n * @type {String}\r\n */\r\n this.text = f.loader_text || 'Loading...';\r\n\r\n /**\r\n * Custom HTML injected in Loader's container element\r\n * @type {String}\r\n */\r\n this.html = f.loader_html || null;\r\n\r\n /**\r\n * Css class for Loader's container element\r\n * @type {String}\r\n */\r\n this.cssClass = f.loader_css_class || 'loader';\r\n\r\n /**\r\n * Close delay in milliseconds\r\n * @type {Number}\r\n */\r\n this.closeDelay = 250;\r\n\r\n /**\r\n * Callback fired when loader is displayed\r\n * @type {Function}\r\n */\r\n this.onShow = isFn(f.on_show_loader) ?\r\n f.on_show_loader : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired when loader is closed\r\n * @type {Function}\r\n */\r\n this.onHide = isFn(f.on_hide_loader) ? f.on_hide_loader : EMPTY_FN;\r\n }\r\n\r\n /**\r\n * Initializes Loader instance\r\n */\r\n init() {\r\n if (this.initialized) {\r\n return;\r\n }\r\n\r\n let tf = this.tf;\r\n let emitter = this.emitter;\r\n\r\n let containerDiv = createElm('div');\r\n containerDiv.className = this.cssClass;\r\n\r\n let targetEl = !this.targetId ?\r\n tf.tbl.parentNode : elm(this.targetId);\r\n if (!this.targetId) {\r\n targetEl.insertBefore(containerDiv, tf.tbl);\r\n } else {\r\n targetEl.appendChild(containerDiv);\r\n }\r\n this.cont = containerDiv;\r\n if (!this.html) {\r\n this.cont.appendChild(createText(this.text));\r\n } else {\r\n this.cont.innerHTML = this.html;\r\n }\r\n\r\n this.show(NONE);\r\n\r\n // Subscribe to events\r\n emitter.on(EVENTS, () => this.show(''));\r\n emitter.on(EVENTS, () => this.show(NONE));\r\n\r\n /**\r\n * @inherited\r\n */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Shows or hides activity indicator\r\n * @param {String} Two possible values: '' or 'none'\r\n */\r\n show(p) {\r\n if (!this.isEnabled()) {\r\n return;\r\n }\r\n\r\n let displayLoader = () => {\r\n if (!this.cont) {\r\n return;\r\n }\r\n if (p !== NONE) {\r\n this.onShow(this);\r\n }\r\n this.cont.style.display = p;\r\n if (p === NONE) {\r\n this.onHide(this);\r\n }\r\n };\r\n\r\n let t = p === NONE ? this.closeDelay : 1;\r\n root.setTimeout(displayLoader, t);\r\n }\r\n\r\n /**\r\n * Removes feature\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n\r\n let emitter = this.emitter;\r\n\r\n removeElm(this.cont);\r\n this.cont = null;\r\n\r\n // Unsubscribe to events\r\n emitter.off(EVENTS, () => this.show(''));\r\n emitter.off(EVENTS, () => this.show(NONE));\r\n\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/loader.js","import {createText, createElm, getText} from '../dom';\r\nimport {isArray} from '../types';\r\nimport {rgxEsc} from '../string';\r\n\r\n/**\r\n * Highlight matched keywords upon filtering\r\n *\r\n * @export\r\n * @class HighlightKeyword\r\n */\r\nexport class HighlightKeyword {\r\n\r\n /**\r\n * Creates an instance of HighlightKeyword\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n let f = tf.config();\r\n\r\n /**\r\n * Css class for highlighted term\r\n * @type {String}\r\n */\r\n this.highlightCssClass = f.highlight_css_class || 'keyword';\r\n\r\n /**\r\n * TableFilter instance\r\n * @type {TableFilter}\r\n */\r\n this.tf = tf;\r\n\r\n /**\r\n * TableFilter's emitter instance\r\n * @type {Emitter}\r\n */\r\n this.emitter = tf.emitter;\r\n }\r\n\r\n /**\r\n * Initializes HighlightKeyword instance\r\n */\r\n init() {\r\n this.emitter.on(\r\n ['before-filtering', 'destroy'],\r\n () => this.unhighlightAll()\r\n );\r\n this.emitter.on(\r\n ['highlight-keyword'],\r\n (tf, cell, term) => this._processTerm(cell, term)\r\n );\r\n }\r\n\r\n /**\r\n * Highlight occurences of searched term in passed node\r\n * @param {Node} node\r\n * @param {String} term Searched term\r\n * @param {String} cssClass Css class name\r\n *\r\n * TODO: refactor this method\r\n */\r\n highlight(node, term, cssClass) {\r\n // Iterate into this nodes childNodes\r\n if (node.hasChildNodes) {\r\n let children = node.childNodes;\r\n for (let i = 0; i < children.length; i++) {\r\n this.highlight(children[i], term, cssClass);\r\n }\r\n }\r\n\r\n if (node.nodeType === 3) {\r\n let nodeVal = node.nodeValue.toLowerCase();\r\n let termIdx = nodeVal.indexOf(term.toLowerCase());\r\n\r\n if (termIdx !== -1) {\r\n let pn = node.parentNode;\r\n if (pn && pn.className !== cssClass) {\r\n // term not highlighted yet\r\n let nv = node.nodeValue,\r\n // Create a load of replacement nodes\r\n before = createText(nv.substr(0, termIdx)),\r\n value = nv.substr(termIdx, term.length),\r\n after = createText(nv.substr(termIdx + term.length)),\r\n text = createText(value),\r\n container = createElm('span');\r\n container.className = cssClass;\r\n container.appendChild(text);\r\n pn.insertBefore(before, node);\r\n pn.insertBefore(container, node);\r\n pn.insertBefore(after, node);\r\n pn.removeChild(node);\r\n }\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Removes highlight to nodes matching passed string\r\n * @param {String} term\r\n * @param {String} cssClass Css class to remove\r\n */\r\n unhighlight(term, cssClass) {\r\n let highlightedNodes = this.tf.tbl.querySelectorAll(`.${cssClass}`);\r\n for (let i = 0; i < highlightedNodes.length; i++) {\r\n let n = highlightedNodes[i];\r\n let nodeVal = getText(n);\r\n\r\n if (nodeVal.toLowerCase().indexOf(term.toLowerCase()) !== -1) {\r\n let parentNode = n.parentNode;\r\n parentNode.replaceChild(createText(nodeVal), n);\r\n parentNode.normalize();\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Clear all occurrences of highlighted nodes\r\n */\r\n unhighlightAll() {\r\n if (!this.tf.highlightKeywords) {\r\n return;\r\n }\r\n // iterate filters values to unhighlight all values\r\n this.tf.getFiltersValue().forEach((val) => {\r\n if (isArray(val)) {\r\n val.forEach((item) =>\r\n this.unhighlight(item, this.highlightCssClass));\r\n } else {\r\n this.unhighlight(val, this.highlightCssClass);\r\n }\r\n });\r\n }\r\n\r\n /** Remove feature */\r\n destroy() {\r\n this.emitter.off(\r\n ['before-filtering', 'destroy'],\r\n () => this.unhighlightAll()\r\n );\r\n this.emitter.off(\r\n ['highlight-keyword'],\r\n (tf, cell, term) => this._processTerm(cell, term)\r\n );\r\n }\r\n\r\n /**\r\n * Ensure filtering operators are handled before highlighting any match\r\n * @param {any} Table cell to look searched term into\r\n * @param {any} Searched termIdx\r\n */\r\n _processTerm(cell, term) {\r\n let tf = this.tf;\r\n let reLk = new RegExp(rgxEsc(tf.lkOperator));\r\n let reEq = new RegExp(tf.eqOperator);\r\n let reSt = new RegExp(tf.stOperator);\r\n let reEn = new RegExp(tf.enOperator);\r\n let reLe = new RegExp(tf.leOperator);\r\n let reGe = new RegExp(tf.geOperator);\r\n let reL = new RegExp(tf.lwOperator);\r\n let reG = new RegExp(tf.grOperator);\r\n let reD = new RegExp(tf.dfOperator);\r\n\r\n term = term\r\n .replace(reLk, '')\r\n .replace(reEq, '')\r\n .replace(reSt, '')\r\n .replace(reEn, '');\r\n\r\n if (reLe.test(term) || reGe.test(term) || reL.test(term) ||\r\n reG.test(term) || reD.test(term)) {\r\n term = getText(cell);\r\n }\r\n\r\n if (term === '') {\r\n return;\r\n }\r\n\r\n this.highlight(cell, term, this.highlightCssClass);\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/highlightKeywords.js","import {Feature} from '../feature';\r\nimport {isFn, isUndef, EMPTY_FN} from '../types';\r\nimport {createElm, removeElm} from '../dom';\r\nimport {addEvt, cancelEvt, stopEvt, targetEvt, removeEvt} from '../event';\r\nimport {INPUT, NONE, CHECKLIST, MULTIPLE} from '../const';\r\nimport {root} from '../root';\r\n\r\n/**\r\n * Pop-up filter component\r\n * @export\r\n * @class PopupFilter\r\n * @extends {Feature}\r\n */\r\nexport class PopupFilter extends Feature {\r\n\r\n /**\r\n * Creates an instance of PopupFilter\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'popupFilters');\r\n\r\n // Configuration object\r\n let f = this.config;\r\n\r\n // Enable external filters\r\n tf.isExternalFlt = true;\r\n tf.externalFltTgtIds = [];\r\n\r\n /**\r\n * Close active popup filter upon filtering, enabled by default\r\n * @type {Boolean}\r\n */\r\n this.closeOnFiltering = f.popup_filters_close_on_filtering === false ?\r\n false : true;\r\n\r\n /**\r\n * Filter icon path\r\n * @type {String}\r\n */\r\n this.iconPath = f.popup_filters_image ||\r\n tf.themesPath + 'icn_filter.gif';\r\n\r\n /**\r\n * Active filter icon path\r\n * @type {string}\r\n */\r\n this.activeIconPath = f.popup_filters_image_active ||\r\n tf.themesPath + 'icn_filterActive.gif';\r\n\r\n /**\r\n * HTML for the filter icon\r\n * @type {string}\r\n */\r\n this.iconHtml = f.popup_filters_image_html ||\r\n '\"Column';\r\n\r\n /**\r\n * Css class assigned to filter container element\r\n * @type {String}\r\n */\r\n this.containerCssClass = f.popup_div_css_class || 'popUpFilter';\r\n\r\n /**\r\n * Ensure filter's container element width matches column width, enabled\r\n * by default\r\n * @type {Boolean}\r\n */\r\n this.adjustToContainer =\r\n f.popup_filters_adjust_to_container === false ? false : true;\r\n\r\n /**\r\n * Callback fired before a popup filter is opened\r\n * @type {Function}\r\n */\r\n this.onBeforeOpen = isFn(f.on_before_popup_filter_open) ?\r\n f.on_before_popup_filter_open : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired after a popup filter is opened\r\n * @type {Function}\r\n */\r\n this.onAfterOpen = isFn(f.on_after_popup_filter_open) ?\r\n f.on_after_popup_filter_open : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired before a popup filter is closed\r\n * @type {Function}\r\n */\r\n this.onBeforeClose = isFn(f.on_before_popup_filter_close) ?\r\n f.on_before_popup_filter_close : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired after a popup filter is closed\r\n * @type {Function}\r\n */\r\n this.onAfterClose = isFn(f.on_after_popup_filter_close) ?\r\n f.on_after_popup_filter_close : EMPTY_FN;\r\n\r\n /**\r\n * Collection of filters spans\r\n * @type {Array}\r\n * @private\r\n */\r\n this.fltSpans = [];\r\n\r\n /**\r\n * Collection of filters icons\r\n * @type {Array}\r\n * @private\r\n */\r\n this.fltIcons = [];\r\n\r\n /**\r\n * Collection of filters icons cached after pop-up filters are removed\r\n * @type {Array}\r\n * @private\r\n */\r\n this.filtersCache = null;\r\n\r\n /**\r\n * Collection of filters containers\r\n * @type {Array}\r\n * @private\r\n */\r\n this.fltElms = this.filtersCache || [];\r\n\r\n /**\r\n * Prefix for pop-up filter container ID\r\n * @type {String}\r\n * @private\r\n */\r\n this.prfxDiv = 'popup_';\r\n\r\n /**\r\n * Column index of popup filter currently active\r\n * @type {Number}\r\n * @private\r\n */\r\n this.activeFilterIdx = -1;\r\n }\r\n\r\n /**\r\n * Click event handler for pop-up filter icon\r\n * @private\r\n */\r\n onClick(evt) {\r\n let elm = targetEvt(evt).parentNode;\r\n let colIndex = parseInt(elm.getAttribute('ci'), 10);\r\n\r\n this.closeAll(colIndex);\r\n this.toggle(colIndex);\r\n\r\n if (this.adjustToContainer) {\r\n let cont = this.fltElms[colIndex],\r\n header = this.tf.getHeaderElement(colIndex),\r\n headerWidth = header.clientWidth * 0.95;\r\n cont.style.width = parseInt(headerWidth, 10) + 'px';\r\n }\r\n cancelEvt(evt);\r\n stopEvt(evt);\r\n }\r\n\r\n /**\r\n * Mouse-up event handler handling popup filter auto-close behaviour\r\n * @private\r\n */\r\n onMouseup(evt) {\r\n if (this.activeFilterIdx === -1) {\r\n return;\r\n }\r\n let targetElm = targetEvt(evt);\r\n let activeFlt = this.fltElms[this.activeFilterIdx];\r\n let icon = this.fltIcons[this.activeFilterIdx];\r\n\r\n if (icon === targetElm) {\r\n return;\r\n }\r\n\r\n while (targetElm && targetElm !== activeFlt) {\r\n targetElm = targetElm.parentNode;\r\n }\r\n\r\n if (targetElm !== activeFlt) {\r\n this.close(this.activeFilterIdx);\r\n }\r\n\r\n return;\r\n }\r\n\r\n /**\r\n * Initialize DOM elements\r\n */\r\n init() {\r\n if (this.initialized) {\r\n return;\r\n }\r\n\r\n let tf = this.tf;\r\n\r\n // Override headers row index if no grouped headers\r\n // TODO: Because of the filters row generation, headers row index needs\r\n // adjusting: prevent useless row generation\r\n if (tf.headersRow <= 1 && isNaN(tf.config().headers_row_index)) {\r\n tf.headersRow = 0;\r\n }\r\n\r\n // Adjust headers row index for grid-layout mode\r\n // TODO: Because of the filters row generation, headers row index needs\r\n // adjusting: prevent useless row generation\r\n if (tf.gridLayout) {\r\n tf.headersRow--;\r\n this.buildIcons();\r\n }\r\n\r\n // subscribe to events\r\n this.emitter.on(['before-filtering'], () => this.setIconsState());\r\n this.emitter.on(['after-filtering'], () => this.closeAll());\r\n this.emitter.on(['cell-processed'],\r\n (tf, cellIndex) => this.changeState(cellIndex, true));\r\n this.emitter.on(['filters-row-inserted'], () => this.buildIcons());\r\n this.emitter.on(['before-filter-init'],\r\n (tf, colIndex) => this.build(colIndex));\r\n\r\n /** @inherited */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Reset previously destroyed feature\r\n */\r\n reset() {\r\n this.enable();\r\n this.init();\r\n this.buildIcons();\r\n this.buildAll();\r\n }\r\n\r\n /**\r\n * Build all filters icons\r\n */\r\n buildIcons() {\r\n let tf = this.tf;\r\n\r\n // TODO: Because of the filters row generation, headers row index needs\r\n // adjusting: prevent useless row generation\r\n tf.headersRow++;\r\n\r\n for (let i = 0; i < tf.nbCells; i++) {\r\n if (tf.getFilterType(i) === NONE) {\r\n continue;\r\n }\r\n let icon = createElm('span', ['ci', i]);\r\n icon.innerHTML = this.iconHtml;\r\n let header = tf.getHeaderElement(i);\r\n header.appendChild(icon);\r\n addEvt(icon, 'click', (evt) => this.onClick(evt));\r\n this.fltSpans[i] = icon;\r\n this.fltIcons[i] = icon.firstChild;\r\n }\r\n }\r\n\r\n /**\r\n * Build all pop-up filters elements\r\n */\r\n buildAll() {\r\n for (let i = 0; i < this.filtersCache.length; i++) {\r\n this.build(i, this.filtersCache[i]);\r\n }\r\n }\r\n\r\n /**\r\n * Build a specified pop-up filter elements\r\n * @param {Number} colIndex Column index\r\n * @param {Object} div Optional container DOM element\r\n */\r\n build(colIndex, div) {\r\n let tf = this.tf;\r\n let contId = `${this.prfxDiv}${tf.id}_${colIndex}`;\r\n let cont = div || createElm('div', ['id', contId]);\r\n cont.className = this.containerCssClass;\r\n tf.externalFltTgtIds.push(cont.id);\r\n\r\n let header = tf.getHeaderElement(colIndex);\r\n header.insertBefore(cont, header.firstChild);\r\n addEvt(cont, 'click', (evt) => stopEvt(evt));\r\n this.fltElms[colIndex] = cont;\r\n }\r\n\r\n /**\r\n * Toggle visibility of specified filter\r\n * @param {Number} colIndex Column index\r\n */\r\n toggle(colIndex) {\r\n if (!this.isOpen(colIndex)) {\r\n this.open(colIndex);\r\n } else {\r\n this.close(colIndex);\r\n }\r\n }\r\n\r\n /**\r\n * Open popup filter of specified column\r\n * @param {Number} colIndex Column index\r\n */\r\n open(colIndex) {\r\n let tf = this.tf,\r\n container = this.fltElms[colIndex];\r\n\r\n this.onBeforeOpen(this, container, colIndex);\r\n\r\n container.style.display = 'block';\r\n this.activeFilterIdx = colIndex;\r\n addEvt(root, 'mouseup', (evt) => this.onMouseup(evt));\r\n\r\n if (tf.getFilterType(colIndex) === INPUT) {\r\n let flt = tf.getFilterElement(colIndex);\r\n if (flt) {\r\n flt.focus();\r\n }\r\n }\r\n\r\n this.onAfterOpen(this, container, colIndex);\r\n }\r\n\r\n /**\r\n * Close popup filter of specified column\r\n * @param {Number} colIndex Column index\r\n */\r\n close(colIndex) {\r\n let container = this.fltElms[colIndex];\r\n\r\n this.onBeforeClose(this, container, colIndex);\r\n\r\n container.style.display = NONE;\r\n if (this.activeFilterIdx === colIndex) {\r\n this.activeFilterIdx = -1;\r\n }\r\n removeEvt(root, 'mouseup', (evt) => this.onMouseup(evt));\r\n\r\n this.onAfterClose(this, container, colIndex);\r\n }\r\n\r\n /**\r\n * Check if popup filter for specified column is open\r\n * @param {Number} colIndex Column index\r\n * @returns {Boolean}\r\n */\r\n isOpen(colIndex) {\r\n return this.fltElms[colIndex].style.display === 'block';\r\n }\r\n\r\n /**\r\n * Close all filters excepted for the specified one if any\r\n * @param {Number} exceptIdx Column index of the filter to not close\r\n */\r\n closeAll(exceptIdx) {\r\n // Do not close filters only if argument is undefined and close on\r\n // filtering option is disabled\r\n if (isUndef(exceptIdx) && !this.closeOnFiltering) {\r\n return;\r\n }\r\n for (let i = 0; i < this.fltElms.length; i++) {\r\n if (i === exceptIdx) {\r\n continue;\r\n }\r\n let fltType = tf.getFilterType(i);\r\n let isMultipleFilter =\r\n (fltType === CHECKLIST || fltType === MULTIPLE);\r\n\r\n // Always hide all single selection filter types but hide multiple\r\n // selection filter types only if index set\r\n if (!isMultipleFilter || !isUndef(exceptIdx)) {\r\n this.close(i);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Build all the icons representing the pop-up filters\r\n */\r\n setIconsState() {\r\n for (let i = 0; i < this.fltIcons.length; i++) {\r\n this.changeState(i, false);\r\n }\r\n }\r\n\r\n /**\r\n * Apply specified icon state\r\n * @param {Number} colIndex Column index\r\n * @param {Boolean} active Apply active state\r\n */\r\n changeState(colIndex, active) {\r\n let icon = this.fltIcons[colIndex];\r\n if (icon) {\r\n icon.src = active ? this.activeIconPath : this.iconPath;\r\n }\r\n }\r\n\r\n /**\r\n * Remove pop-up filters\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n\r\n this.filtersCache = [];\r\n for (let i = 0; i < this.fltElms.length; i++) {\r\n let container = this.fltElms[i],\r\n icon = this.fltSpans[i],\r\n iconImg = this.fltIcons[i];\r\n if (container) {\r\n removeElm(container);\r\n this.filtersCache[i] = container;\r\n }\r\n container = null;\r\n if (icon) {\r\n removeElm(icon);\r\n }\r\n icon = null;\r\n if (iconImg) {\r\n removeElm(iconImg);\r\n }\r\n iconImg = null;\r\n }\r\n this.fltElms = [];\r\n this.fltSpans = [];\r\n this.fltIcons = [];\r\n\r\n // TODO: expose an API to handle external filter IDs\r\n tf.externalFltTgtIds = [];\r\n\r\n // unsubscribe to events\r\n this.emitter.off(['before-filtering'], () => this.setIconsState());\r\n this.emitter.off(['after-filtering'], () => this.closeAll());\r\n this.emitter.off(['cell-processed'],\r\n (tf, cellIndex) => this.changeState(cellIndex, true));\r\n this.emitter.off(['filters-row-inserted'], () => this.buildIcons());\r\n this.emitter.off(['before-filter-init'],\r\n (tf, colIndex) => this.build(colIndex));\r\n\r\n this.initialized = false;\r\n }\r\n\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/popupFilter.js","import {Feature} from '../feature';\r\nimport {createElm, createOpt, elm} from '../dom';\r\nimport {has} from '../array';\r\nimport {matchCase} from '../string';\r\nimport {ignoreCase, numSortAsc, numSortDesc} from '../sort';\r\nimport {addEvt, targetEvt} from '../event';\r\nimport {SELECT, MULTIPLE, NONE} from '../const';\r\n\r\nconst SORT_ERROR = 'Filter options for column {0} cannot be sorted in ' +\r\n '{1} manner.';\r\n\r\n/**\r\n * Dropdown filter UI component\r\n */\r\nexport class Dropdown extends Feature {\r\n\r\n /**\r\n * Creates an instance of Dropdown\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'dropdown');\r\n\r\n // Configuration object\r\n let f = this.config;\r\n\r\n /**\r\n * Enable the reset filter option as first item\r\n * @type {Boolean}\r\n */\r\n this.enableSlcResetFilter = f.enable_slc_reset_filter === false ?\r\n false : true;\r\n\r\n /**\r\n * Non empty option text\r\n * @type {String}\r\n */\r\n this.nonEmptyText = f.non_empty_text || '(Non empty)';\r\n\r\n /**\r\n * Tooltip text appearing on multiple select\r\n * @type {String}\r\n */\r\n this.multipleSlcTooltip = f.multiple_slc_tooltip ||\r\n 'Use Ctrl/Cmd key for multiple selections';\r\n\r\n /**\r\n * Indicates drop-down has custom options\r\n * @private\r\n */\r\n this.isCustom = null;\r\n\r\n /**\r\n * List of options values\r\n * @type {Array}\r\n * @private\r\n */\r\n this.opts = null;\r\n\r\n /**\r\n * List of options texts for custom values\r\n * @type {Array}\r\n * @private\r\n */\r\n this.optsTxt = null;\r\n }\r\n\r\n\r\n /**\r\n * Drop-down filter focus event handler\r\n * @param {Event} e DOM Event\r\n * @private\r\n */\r\n onSlcFocus(e) {\r\n let elm = targetEvt(e);\r\n let tf = this.tf;\r\n // select is populated when element has focus\r\n if (tf.loadFltOnDemand && elm.getAttribute('filled') === '0') {\r\n let ct = elm.getAttribute('ct');\r\n this.build(ct);\r\n }\r\n this.emitter.emit('filter-focus', tf, elm);\r\n }\r\n\r\n /**\r\n * Drop-down filter change event handler\r\n * @private\r\n */\r\n onSlcChange() {\r\n if (this.tf.onSlcChange) {\r\n this.tf.filter();\r\n }\r\n }\r\n\r\n /**\r\n * Refresh all drop-down filters\r\n */\r\n refreshAll() {\r\n let tf = this.tf;\r\n let selectFlts = tf.getFiltersByType(SELECT, true);\r\n let multipleFlts = tf.getFiltersByType(MULTIPLE, true);\r\n let flts = selectFlts.concat(multipleFlts);\r\n flts.forEach((colIdx) => {\r\n let values = this.getValues(colIdx);\r\n this.build(colIdx, tf.linkedFilters);\r\n this.selectOptions(colIdx, values);\r\n });\r\n }\r\n\r\n /**\r\n * Initialize drop-down filter\r\n * @param {Number} colIndex Column index\r\n * @param {Boolean} isExternal External filter flag\r\n * @param {DOMElement} container Dom element containing the filter\r\n */\r\n init(colIndex, isExternal, container) {\r\n let tf = this.tf;\r\n let col = tf.getFilterType(colIndex);\r\n let externalFltTgtId = isExternal ?\r\n tf.externalFltTgtIds[colIndex] : null;\r\n\r\n let slc = createElm(SELECT,\r\n ['id', tf.buildFilterId(colIndex)],\r\n ['ct', colIndex], ['filled', '0']\r\n );\r\n\r\n if (col === MULTIPLE) {\r\n slc.multiple = MULTIPLE;\r\n slc.title = this.multipleSlcTooltip;\r\n }\r\n slc.className = col.toLowerCase() === SELECT ?\r\n tf.fltCssClass : tf.fltMultiCssClass;\r\n\r\n //filter is appended in container element\r\n if (externalFltTgtId) {\r\n elm(externalFltTgtId).appendChild(slc);\r\n } else {\r\n container.appendChild(slc);\r\n }\r\n\r\n tf.fltIds.push(slc.id);\r\n\r\n if (!tf.loadFltOnDemand) {\r\n this.build(colIndex);\r\n } else {\r\n //1st option is created here since build isn't invoked\r\n let opt0 = createOpt(tf.getClearFilterText(colIndex), '');\r\n slc.appendChild(opt0);\r\n }\r\n\r\n addEvt(slc, 'change', () => this.onSlcChange());\r\n addEvt(slc, 'focus', (e) => this.onSlcFocus(e));\r\n\r\n this.emitter.on(\r\n ['build-select-filter'],\r\n (tf, colIndex, isLinked, isExternal) =>\r\n this.build(colIndex, isLinked, isExternal)\r\n );\r\n this.emitter.on(\r\n ['select-options'],\r\n (tf, colIndex, values) => this.selectOptions(colIndex, values)\r\n );\r\n this.emitter.on(['rows-changed'], () => this.refreshAll());\r\n\r\n /** @inherited */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Build drop-down filter UI\r\n * @param {Number} colIndex Column index\r\n * @param {Boolean} isLinked Enable linked filters behaviour\r\n */\r\n build(colIndex, isLinked = false) {\r\n let tf = this.tf;\r\n colIndex = parseInt(colIndex, 10);\r\n\r\n this.emitter.emit('before-populating-filter', tf, colIndex);\r\n\r\n this.opts = [];\r\n this.optsTxt = [];\r\n\r\n let slcId = tf.fltIds[colIndex];\r\n let slc = elm(slcId);\r\n let rows = tf.tbl.rows;\r\n let nbRows = tf.getRowsNb(true);\r\n\r\n //custom select test\r\n this.isCustom = tf.isCustomOptions(colIndex);\r\n\r\n //custom selects text\r\n let activeIdx;\r\n let activeFilterId = tf.getActiveFilterId();\r\n if (isLinked && activeFilterId) {\r\n activeIdx = tf.getColumnIndexFromFilterId(activeFilterId);\r\n }\r\n\r\n let excludedOpts = null,\r\n filteredDataCol = null;\r\n if (isLinked && tf.disableExcludedOptions) {\r\n excludedOpts = [];\r\n filteredDataCol = [];\r\n }\r\n\r\n for (let k = tf.refRow; k < nbRows; k++) {\r\n // always visible rows don't need to appear on selects as always\r\n // valid\r\n if (tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1) {\r\n continue;\r\n }\r\n\r\n let cell = rows[k].cells,\r\n nchilds = cell.length;\r\n\r\n // checks if row has exact cell #\r\n if (nchilds !== tf.nbCells || this.isCustom) {\r\n continue;\r\n }\r\n\r\n // this loop retrieves cell data\r\n for (let j = 0; j < nchilds; j++) {\r\n if (colIndex !== j) {\r\n continue;\r\n }\r\n if (isLinked && !tf.disableExcludedOptions &&\r\n (!tf.paging && !tf.isRowDisplayed(k)) ||\r\n (tf.paging && activeIdx && !tf.isRowValid(k))) {\r\n continue;\r\n }\r\n\r\n let cellValue = tf.getCellValue(cell[j]),\r\n //Vary Peter's patch\r\n cellString = matchCase(cellValue, tf.caseSensitive);\r\n\r\n // checks if celldata is already in array\r\n if (!has(this.opts, cellString, tf.caseSensitive)) {\r\n this.opts.push(cellValue);\r\n }\r\n\r\n if (isLinked && tf.disableExcludedOptions) {\r\n let filteredCol = filteredDataCol[j];\r\n if (!filteredCol) {\r\n filteredCol = tf.getFilteredDataCol(j);\r\n }\r\n if (!has(filteredCol, cellString, tf.caseSensitive) &&\r\n !has(excludedOpts, cellString, tf.caseSensitive)) {\r\n excludedOpts.push(cellValue);\r\n }\r\n }\r\n }//for j\r\n }//for k\r\n\r\n //Retrieves custom values\r\n if (this.isCustom) {\r\n let customValues = tf.getCustomOptions(colIndex);\r\n this.opts = customValues[0];\r\n this.optsTxt = customValues[1];\r\n }\r\n\r\n if (tf.sortSlc && !this.isCustom) {\r\n if (!tf.caseSensitive) {\r\n this.opts.sort(ignoreCase);\r\n if (excludedOpts) {\r\n excludedOpts.sort(ignoreCase);\r\n }\r\n } else {\r\n this.opts.sort();\r\n if (excludedOpts) { excludedOpts.sort(); }\r\n }\r\n }\r\n\r\n //asc sort\r\n if (tf.sortNumAsc.indexOf(colIndex) !== -1) {\r\n try {\r\n this.opts.sort(numSortAsc);\r\n if (excludedOpts) {\r\n excludedOpts.sort(numSortAsc);\r\n }\r\n if (this.isCustom) {\r\n this.optsTxt.sort(numSortAsc);\r\n }\r\n } catch (e) {\r\n throw new Error(SORT_ERROR.replace('{0}', colIndex)\r\n .replace('{1}', 'ascending'));\r\n }//in case there are alphanumeric values\r\n }\r\n //desc sort\r\n if (tf.sortNumDesc.indexOf(colIndex) !== -1) {\r\n try {\r\n this.opts.sort(numSortDesc);\r\n if (excludedOpts) {\r\n excludedOpts.sort(numSortDesc);\r\n }\r\n if (this.isCustom) {\r\n this.optsTxt.sort(numSortDesc);\r\n }\r\n } catch (e) {\r\n throw new Error(SORT_ERROR.replace('{0}', colIndex)\r\n .replace('{1}', 'ascending'));\r\n }//in case there are alphanumeric values\r\n }\r\n\r\n //populates drop-down\r\n this.addOptions(colIndex, slc, isLinked, excludedOpts);\r\n\r\n this.emitter.emit('after-populating-filter', tf, colIndex, slc);\r\n }\r\n\r\n /**\r\n * Add drop-down options\r\n * @param {Number} colIndex Column index\r\n * @param {Object} slc Select Dom element\r\n * @param {Boolean} isLinked Enable linked refresh behaviour\r\n * @param {Array} excludedOpts Array of excluded options\r\n */\r\n addOptions(colIndex, slc, isLinked, excludedOpts) {\r\n let tf = this.tf,\r\n slcValue = slc.value;\r\n\r\n slc.innerHTML = '';\r\n slc = this.addFirstOption(slc);\r\n\r\n for (let y = 0; y < this.opts.length; y++) {\r\n if (this.opts[y] === '') {\r\n continue;\r\n }\r\n let val = this.opts[y]; //option value\r\n let lbl = this.isCustom ? this.optsTxt[y] : val; //option text\r\n let isDisabled = false;\r\n if (isLinked && tf.disableExcludedOptions &&\r\n has(excludedOpts, matchCase(val, tf.caseSensitive),\r\n tf.caseSensitive)) {\r\n isDisabled = true;\r\n }\r\n\r\n let opt;\r\n //fill select on demand\r\n if (tf.loadFltOnDemand && slcValue === this.opts[y] &&\r\n tf.getFilterType(colIndex) === SELECT) {\r\n opt = createOpt(lbl, val, true);\r\n } else {\r\n opt = createOpt(lbl, val, false);\r\n }\r\n if (isDisabled) {\r\n opt.disabled = true;\r\n }\r\n slc.appendChild(opt);\r\n }// for y\r\n\r\n slc.setAttribute('filled', '1');\r\n }\r\n\r\n /**\r\n * Add drop-down header option\r\n * @param {Object} slc Select DOM element\r\n */\r\n addFirstOption(slc) {\r\n let tf = this.tf;\r\n let colIdx = tf.getColumnIndexFromFilterId(slc.id);\r\n let opt0 = createOpt((!this.enableSlcResetFilter ?\r\n '' : tf.getClearFilterText(colIdx)), '');\r\n if (!this.enableSlcResetFilter) {\r\n opt0.style.display = NONE;\r\n }\r\n slc.appendChild(opt0);\r\n if (tf.enableEmptyOption) {\r\n let opt1 = createOpt(tf.emptyText, tf.emOperator);\r\n slc.appendChild(opt1);\r\n }\r\n if (tf.enableNonEmptyOption) {\r\n let opt2 = createOpt(tf.nonEmptyText, tf.nmOperator);\r\n slc.appendChild(opt2);\r\n }\r\n return slc;\r\n }\r\n\r\n /**\r\n * Select filter options programmatically\r\n * @param {Number} colIndex Column index\r\n * @param {Array} values Array of option values to select\r\n */\r\n selectOptions(colIndex, values = []) {\r\n let tf = this.tf;\r\n if (values.length === 0) {\r\n return;\r\n }\r\n let slc = tf.getFilterElement(colIndex);\r\n [].forEach.call(slc.options, (option) => {\r\n // Empty value means clear all selections and first option is the\r\n // clear all option\r\n if (values[0] === '' || option.value === '') {\r\n option.selected = false;\r\n }\r\n\r\n if (option.value !== '' && has(values, option.value, true)) {\r\n option.selected = true;\r\n }//if\r\n });\r\n }\r\n\r\n /**\r\n * Get filter values for a given column index\r\n * @param {Number} colIndex Column index\r\n * @returns {Array} values Array of selected values\r\n */\r\n getValues(colIndex) {\r\n let tf = this.tf;\r\n let slc = tf.getFilterElement(colIndex);\r\n let values = [];\r\n\r\n // IE >= 9 does not support the selectedOptions property :(\r\n if (slc.selectedOptions) {\r\n [].forEach.call(slc.selectedOptions,\r\n option => values.push(option.value));\r\n } else {\r\n [].forEach.call(slc.options, (option) => {\r\n if (option.selected) {\r\n values.push(option.value);\r\n }\r\n });\r\n }\r\n\r\n return values;\r\n }\r\n\r\n /**\r\n * Destroy Dropdown instance\r\n */\r\n destroy() {\r\n this.emitter.off(\r\n ['build-select-filter'],\r\n (colIndex, isLinked, isExternal) =>\r\n this.build(colIndex, isLinked, isExternal)\r\n );\r\n this.emitter.off(\r\n ['select-options'],\r\n (tf, colIndex, values) => this.selectOptions(colIndex, values)\r\n );\r\n this.emitter.off(['rows-changed'], () => this.refreshAll());\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/dropdown.js","/**\r\n * Array utilities\r\n */\r\n\r\nimport {matchCase} from './string';\r\n\r\n/**\r\n * Checks if given item can be found in the passed collection\r\n * @param {Array} arr collection\r\n * @param {Any} val item to search\r\n * @param {Boolean} caseSensitive respects case if true\r\n * @return {Boolean}\r\n */\r\nexport const has = (arr, val, caseSensitive) => {\r\n let sCase = Boolean(caseSensitive);\r\n for (var i = 0, l = arr.length; i < l; i++) {\r\n if (matchCase(arr[i].toString(), sCase) === val) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/array.js","/**\r\n * Sorting utilities\r\n */\r\n\r\n/**\r\n * Case insensitive compare function for passed strings\r\n * @param {String} First string\r\n * @param {String} Second string\r\n * @return {Number} -1 if first string lower than second one\r\n * 0 if first string same order as second one\r\n * 1 if first string greater than second one\r\n */\r\nexport const ignoreCase = (a, b) => {\r\n let x = a.toLowerCase();\r\n let y = b.toLowerCase();\r\n return ((x < y) ? -1 : ((x > y) ? 1 : 0));\r\n}\r\n\r\n/**\r\n * Sorts passed numbers in a ascending manner\r\n * @param {Number} First number\r\n * @param {Number} Second number\r\n * @param {Number} Negative, zero or positive number\r\n */\r\nexport const numSortAsc = (a, b) => (a - b);\r\n\r\n/**\r\n * Sorts passed numbers in a descending manner\r\n * @param {Number} First number\r\n * @param {Number} Second number\r\n * @param {Number} Negative, zero or positive number\r\n */\r\nexport const numSortDesc = (a, b) => (b - a);\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/sort.js","import {Feature} from '../feature';\r\nimport {\r\n addClass, createCheckItem, createText, createElm, elm, getText,\r\n removeClass, tag\r\n} from '../dom';\r\nimport {has} from '../array';\r\nimport {matchCase, trim, rgxEsc} from '../string';\r\nimport {ignoreCase, numSortAsc, numSortDesc} from '../sort';\r\nimport {addEvt, removeEvt, targetEvt} from '../event';\r\nimport {isEmpty} from '../types';\r\nimport {CHECKLIST, NONE} from '../const';\r\n\r\nconst SORT_ERROR = 'Filter options for column {0} cannot be sorted in ' +\r\n '{1} manner.';\r\n\r\n/**\r\n * Checklist filter UI component\r\n */\r\nexport class CheckList extends Feature {\r\n\r\n /**\r\n * Creates an instance of CheckList\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'checkList');\r\n\r\n let f = this.config;\r\n\r\n /**\r\n * List of container DOM elements\r\n * @type {Array}\r\n */\r\n this.containers = [];\r\n\r\n /**\r\n * Css class for the container of the checklist filter (div)\r\n * @type {String}\r\n */\r\n this.containerCssClass = f.div_checklist_css_class || 'div_checklist';\r\n\r\n /**\r\n * Css class for the checklist filter element (ul)\r\n * @type {String}\r\n */\r\n this.filterCssClass = f.checklist_css_class || 'flt_checklist';\r\n\r\n /**\r\n * Css class for the item of a checklist (li)\r\n * @type {String}\r\n */\r\n this.itemCssClass = f.checklist_item_css_class || 'flt_checklist_item';\r\n\r\n /**\r\n * Css class for a selected item of a checklist (li)\r\n * @type {String}\r\n */\r\n this.selectedItemCssClass =\r\n f.checklist_selected_item_css_class || 'flt_checklist_slc_item';\r\n\r\n /**\r\n * Text placed in the filter's container when load filter on demand\r\n * feature is enabled\r\n * @type {String}\r\n */\r\n this.activateText =\r\n f.activate_checklist_text || 'Click to load filter data';\r\n\r\n /**\r\n * Css class for a disabled item of a checklist (li)\r\n * @type {String}\r\n */\r\n this.disabledItemCssClass = f.checklist_item_disabled_css_class ||\r\n 'flt_checklist_item_disabled';\r\n\r\n /**\r\n * Enable the reset filter option as first item\r\n * @type {Boolean}\r\n */\r\n this.enableResetOption = f.enable_checklist_reset_filter === false ?\r\n false : true;\r\n\r\n /**\r\n * Prefix for container element ID\r\n * @type {String}\r\n * @private\r\n */\r\n this.prfx = 'chkdiv_';\r\n\r\n /**\r\n * Has custom options\r\n * @type {Boolean}\r\n * @private\r\n */\r\n this.isCustom = false;\r\n\r\n /**\r\n * List of options values\r\n * @type {Array}\r\n * @private\r\n */\r\n this.opts = [];\r\n\r\n /**\r\n * List of options texts for custom values\r\n * @type {Array}\r\n * @private\r\n */\r\n this.optsTxt = [];\r\n\r\n /**\r\n * List of options to be excluded from the checklist filter\r\n * @type {Array}\r\n * @private\r\n */\r\n this.excludedOpts = [];\r\n }\r\n\r\n /**\r\n * Checklist option click event handler\r\n * @param {Event} evt\r\n * @private\r\n */\r\n optionClick(evt) {\r\n let elm = targetEvt(evt);\r\n let tf = this.tf;\r\n\r\n this.emitter.emit('filter-focus', tf, elm);\r\n this.setCheckListValues(elm);\r\n tf.filter();\r\n }\r\n\r\n /**\r\n * Checklist container click event handler for load-on-demand feature\r\n * @param {Event} evt\r\n * @private\r\n */\r\n onCheckListClick(evt) {\r\n let elm = targetEvt(evt);\r\n if (this.tf.loadFltOnDemand && elm.getAttribute('filled') === '0') {\r\n let ct = elm.getAttribute('ct');\r\n let div = this.containers[ct];\r\n this.build(ct);\r\n removeEvt(div, 'click', (evt) => this.onCheckListClick(evt));\r\n }\r\n }\r\n\r\n /**\r\n * Refresh all checklist filters\r\n */\r\n refreshAll() {\r\n let tf = this.tf;\r\n let fltsIdxs = tf.getFiltersByType(CHECKLIST, true);\r\n fltsIdxs.forEach((colIdx) => {\r\n let values = this.getValues(colIdx);\r\n this.build(colIdx, tf.linkedFilters);\r\n this.selectOptions(colIdx, values);\r\n });\r\n }\r\n\r\n /**\r\n * Initialize checklist filter\r\n * @param {Number} colIndex Column index\r\n * @param {Boolean} isExternal External filter flag\r\n * @param {DOMElement} container Dom element containing the filter\r\n */\r\n init(colIndex, isExternal, container) {\r\n let tf = this.tf;\r\n let externalFltTgtId = isExternal ?\r\n tf.externalFltTgtIds[colIndex] : null;\r\n\r\n let divCont = createElm('div',\r\n ['id', `${this.prfx}${colIndex}_${tf.id}`],\r\n ['ct', colIndex], ['filled', '0']);\r\n divCont.className = this.containerCssClass;\r\n\r\n //filter is appended in desired element\r\n if (externalFltTgtId) {\r\n elm(externalFltTgtId).appendChild(divCont);\r\n } else {\r\n container.appendChild(divCont);\r\n }\r\n\r\n this.containers[colIndex] = divCont;\r\n tf.fltIds.push(tf.buildFilterId(colIndex));\r\n\r\n if (!tf.loadFltOnDemand) {\r\n this.build(colIndex);\r\n } else {\r\n addEvt(divCont, 'click', (evt) => this.onCheckListClick(evt));\r\n divCont.appendChild(createText(this.activateText));\r\n }\r\n\r\n this.emitter.on(\r\n ['build-checklist-filter'],\r\n (tf, colIndex, isLinked) => this.build(colIndex, isLinked)\r\n );\r\n\r\n this.emitter.on(\r\n ['select-checklist-options'],\r\n (tf, colIndex, values) => this.selectOptions(colIndex, values)\r\n );\r\n\r\n this.emitter.on(['rows-changed'], () => this.refreshAll());\r\n\r\n /** @inherited */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Build checklist UI\r\n * @param {Number} colIndex Column index\r\n * @param {Boolean} isLinked Enable linked filters behaviour\r\n */\r\n build(colIndex, isLinked = false) {\r\n let tf = this.tf;\r\n colIndex = parseInt(colIndex, 10);\r\n\r\n this.emitter.emit('before-populating-filter', tf, colIndex);\r\n\r\n this.opts = [];\r\n this.optsTxt = [];\r\n\r\n let flt = this.containers[colIndex];\r\n let ul = createElm('ul',\r\n ['id', tf.fltIds[colIndex]],\r\n ['colIndex', colIndex]);\r\n ul.className = this.filterCssClass;\r\n\r\n let rows = tf.tbl.rows;\r\n let nbRows = tf.getRowsNb(true);\r\n let caseSensitive = tf.caseSensitive;\r\n this.isCustom = tf.isCustomOptions(colIndex);\r\n\r\n let activeIdx;\r\n let activeFilterId = tf.getActiveFilterId();\r\n if (isLinked && activeFilterId) {\r\n activeIdx = tf.getColumnIndexFromFilterId(activeFilterId);\r\n }\r\n\r\n let filteredDataCol = [];\r\n if (isLinked && tf.disableExcludedOptions) {\r\n this.excludedOpts = [];\r\n }\r\n\r\n flt.innerHTML = '';\r\n\r\n for (let k = tf.refRow; k < nbRows; k++) {\r\n // always visible rows don't need to appear on selects as always\r\n // valid\r\n if (tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1) {\r\n continue;\r\n }\r\n\r\n let cells = rows[k].cells;\r\n let ncells = cells.length;\r\n\r\n // checks if row has exact cell #\r\n if (ncells !== tf.nbCells || this.isCustom) {\r\n continue;\r\n }\r\n\r\n // this loop retrieves cell data\r\n for (let j = 0; j < ncells; j++) {\r\n if (colIndex !== j) {\r\n continue;\r\n }\r\n if (isLinked && !tf.disableExcludedOptions &&\r\n (!tf.paging && !tf.isRowDisplayed(k)) ||\r\n (tf.paging && activeIdx && !tf.isRowValid(k))) {\r\n continue;\r\n }\r\n\r\n let cellValue = tf.getCellValue(cells[j]);\r\n //Vary Peter's patch\r\n let cellString = matchCase(cellValue, caseSensitive);\r\n // checks if celldata is already in array\r\n if (!has(this.opts, cellString, caseSensitive)) {\r\n this.opts.push(cellValue);\r\n }\r\n let filteredCol = filteredDataCol[j];\r\n if (isLinked && tf.disableExcludedOptions) {\r\n if (!filteredCol) {\r\n filteredCol = tf.getFilteredDataCol(j);\r\n }\r\n if (!has(filteredCol, cellString, caseSensitive) &&\r\n !has(this.excludedOpts, cellString,\r\n caseSensitive)) {\r\n this.excludedOpts.push(cellValue);\r\n }\r\n }\r\n }\r\n }\r\n\r\n //Retrieves custom values\r\n if (this.isCustom) {\r\n let customValues = tf.getCustomOptions(colIndex);\r\n this.opts = customValues[0];\r\n this.optsTxt = customValues[1];\r\n }\r\n\r\n if (tf.sortSlc && !this.isCustom) {\r\n if (!caseSensitive) {\r\n this.opts.sort(ignoreCase);\r\n if (this.excludedOpts) {\r\n this.excludedOpts.sort(ignoreCase);\r\n }\r\n } else {\r\n this.opts.sort();\r\n if (this.excludedOpts) {\r\n this.excludedOpts.sort();\r\n }\r\n }\r\n }\r\n //asc sort\r\n if (tf.sortNumAsc.indexOf(colIndex) !== -1) {\r\n try {\r\n this.opts.sort(numSortAsc);\r\n if (this.excludedOpts) {\r\n this.excludedOpts.sort(numSortAsc);\r\n }\r\n if (this.isCustom) {\r\n this.optsTxt.sort(numSortAsc);\r\n }\r\n } catch (e) {\r\n throw new Error(SORT_ERROR.replace('{0}', colIndex)\r\n .replace('{1}', 'ascending'));\r\n }//in case there are alphanumeric values\r\n }\r\n //desc sort\r\n if (tf.sortNumDesc.indexOf(colIndex) !== -1) {\r\n try {\r\n this.opts.sort(numSortDesc);\r\n if (this.excludedOpts) {\r\n this.excludedOpts.sort(numSortDesc);\r\n }\r\n if (this.isCustom) {\r\n this.optsTxt.sort(numSortDesc);\r\n }\r\n } catch (e) {\r\n throw new Error(SORT_ERROR.replace('{0}', colIndex)\r\n .replace('{1}', 'descending'));\r\n }//in case there are alphanumeric values\r\n }\r\n\r\n this.addChecks(colIndex, ul);\r\n\r\n if (tf.loadFltOnDemand) {\r\n flt.innerHTML = '';\r\n }\r\n flt.appendChild(ul);\r\n flt.setAttribute('filled', '1');\r\n\r\n this.emitter.emit('after-populating-filter', tf, colIndex, flt);\r\n }\r\n\r\n /**\r\n * Add checklist options\r\n * @param {Number} colIndex Column index\r\n * @param {Object} ul Ul element\r\n * @private\r\n */\r\n addChecks(colIndex, ul) {\r\n let tf = this.tf;\r\n let chkCt = this.addTChecks(colIndex, ul);\r\n\r\n for (let y = 0; y < this.opts.length; y++) {\r\n let val = this.opts[y]; //item value\r\n let lbl = this.isCustom ? this.optsTxt[y] : val; //item text\r\n let fltId = tf.fltIds[colIndex];\r\n let li = createCheckItem(`${fltId}_${(y + chkCt)}`, val, lbl);\r\n li.className = this.itemCssClass;\r\n\r\n if (tf.linkedFilters && tf.disableExcludedOptions &&\r\n has(this.excludedOpts, matchCase(val, tf.caseSensitive),\r\n tf.caseSensitive)) {\r\n addClass(li, this.disabledItemCssClass);\r\n li.check.disabled = true;\r\n li.disabled = true;\r\n } else {\r\n addEvt(li.check, 'click', evt => this.optionClick(evt));\r\n }\r\n ul.appendChild(li);\r\n\r\n if (val === '') {\r\n //item is hidden\r\n li.style.display = NONE;\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Add checklist header option\r\n * @param {Number} colIndex Column index\r\n * @param {Object} ul Ul element\r\n * @private\r\n */\r\n addTChecks(colIndex, ul) {\r\n let tf = this.tf;\r\n let chkCt = 1;\r\n let fltId = tf.fltIds[colIndex];\r\n let li0 = createCheckItem(`${fltId}_0`, '',\r\n tf.getClearFilterText(colIndex));\r\n li0.className = this.itemCssClass;\r\n ul.appendChild(li0);\r\n\r\n addEvt(li0.check, 'click', evt => this.optionClick(evt));\r\n\r\n if (!this.enableResetOption) {\r\n li0.style.display = NONE;\r\n }\r\n\r\n if (tf.enableEmptyOption) {\r\n let li1 = createCheckItem(`${fltId}_1`, tf.emOperator,\r\n tf.emptyText);\r\n li1.className = this.itemCssClass;\r\n ul.appendChild(li1);\r\n addEvt(li1.check, 'click', evt => this.optionClick(evt));\r\n chkCt++;\r\n }\r\n\r\n if (tf.enableNonEmptyOption) {\r\n let li2 = createCheckItem(`${fltId}_2`, tf.nmOperator,\r\n tf.nonEmptyText);\r\n li2.className = this.itemCssClass;\r\n ul.appendChild(li2);\r\n addEvt(li2.check, 'click', evt => this.optionClick(evt));\r\n chkCt++;\r\n }\r\n return chkCt;\r\n }\r\n\r\n /**\r\n * Store checked options in DOM element attribute\r\n * @param {Object} o checklist option DOM element\r\n * @private\r\n */\r\n setCheckListValues(o) {\r\n if (!o) {\r\n return;\r\n }\r\n\r\n let tf = this.tf;\r\n let chkValue = o.value; //checked item value\r\n // TODO: provide helper to extract column index, ugly!\r\n let chkIndex = parseInt(o.id.split('_')[2], 10);\r\n let colIdx = tf.getColumnIndexFromFilterId(o.id);\r\n let itemTag = 'LI';\r\n\r\n let n = tf.getFilterElement(parseInt(colIdx, 10));\r\n let li = n.childNodes[chkIndex];\r\n let colIndex = n.getAttribute('colIndex');\r\n let fltValue = n.getAttribute('value'); //filter value (ul tag)\r\n let fltIndexes = n.getAttribute('indexes'); //selected items (ul tag)\r\n\r\n if (o.checked) {\r\n //show all item\r\n if (chkValue === '') {\r\n if ((fltIndexes && fltIndexes !== '')) {\r\n //items indexes\r\n let indSplit = fltIndexes.split(tf.separator);\r\n //checked items loop\r\n for (let u = 0; u < indSplit.length; u++) {\r\n //checked item\r\n let cChk = elm(tf.fltIds[colIndex] + '_' +\r\n indSplit[u]);\r\n if (cChk) {\r\n cChk.checked = false;\r\n removeClass(n.childNodes[indSplit[u]],\r\n this.selectedItemCssClass);\r\n }\r\n }\r\n }\r\n n.setAttribute('value', '');\r\n n.setAttribute('indexes', '');\r\n\r\n } else {\r\n fltValue = (fltValue) ? fltValue : '';\r\n chkValue = trim(fltValue + ' ' + chkValue + ' ' +\r\n tf.orOperator);\r\n chkIndex = fltIndexes + chkIndex + tf.separator;\r\n n.setAttribute('value', chkValue);\r\n n.setAttribute('indexes', chkIndex);\r\n //1st option unchecked\r\n if (elm(tf.fltIds[colIndex] + '_0')) {\r\n elm(tf.fltIds[colIndex] + '_0').checked = false;\r\n }\r\n }\r\n\r\n if (li.nodeName === itemTag) {\r\n removeClass(n.childNodes[0], this.selectedItemCssClass);\r\n addClass(li, this.selectedItemCssClass);\r\n }\r\n } else { //removes values and indexes\r\n if (chkValue !== '') {\r\n let replaceValue = new RegExp(\r\n rgxEsc(chkValue + ' ' + tf.orOperator));\r\n fltValue = fltValue.replace(replaceValue, '');\r\n n.setAttribute('value', trim(fltValue));\r\n\r\n let replaceIndex = new RegExp(\r\n rgxEsc(chkIndex + tf.separator));\r\n fltIndexes = fltIndexes.replace(replaceIndex, '');\r\n n.setAttribute('indexes', fltIndexes);\r\n }\r\n if (li.nodeName === itemTag) {\r\n removeClass(li, this.selectedItemCssClass);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Select filter options programmatically\r\n * @param {Number} colIndex Column index\r\n * @param {Array} values Array of option values to select\r\n */\r\n selectOptions(colIndex, values = []) {\r\n let tf = this.tf;\r\n let flt = tf.getFilterElement(colIndex);\r\n if (tf.getFilterType(colIndex) !== CHECKLIST || !flt ||\r\n values.length === 0) {\r\n return;\r\n }\r\n\r\n let lisNb = tag(flt, 'li').length;\r\n\r\n flt.setAttribute('value', '');\r\n flt.setAttribute('indexes', '');\r\n\r\n for (let k = 0; k < lisNb; k++) {\r\n let li = tag(flt, 'li')[k];\r\n let lbl = tag(li, 'label')[0];\r\n let chk = tag(li, 'input')[0];\r\n let lblTxt = matchCase(getText(lbl), tf.caseSensitive);\r\n\r\n if (lblTxt !== '' && has(values, lblTxt, tf.caseSensitive)) {\r\n chk.checked = true;\r\n } else {\r\n // Check non-empty-text or empty-text option\r\n if (values.indexOf(tf.nmOperator) !== -1 &&\r\n lblTxt === matchCase(tf.nonEmptyText, tf.caseSensitive)) {\r\n chk.checked = true;\r\n }\r\n else if (values.indexOf(tf.emOperator) !== -1 &&\r\n lblTxt === matchCase(tf.emptyText, tf.caseSensitive)) {\r\n chk.checked = true;\r\n } else {\r\n chk.checked = false;\r\n }\r\n }\r\n this.setCheckListValues(chk);\r\n }\r\n }\r\n\r\n /**\r\n * Get filter values for a given column index\r\n * @param {Number} colIndex Column index\r\n * @returns {Array} values Collection of selected values\r\n */\r\n getValues(colIndex) {\r\n let tf = this.tf;\r\n let flt = tf.getFilterElement(colIndex);\r\n let fltAttr = flt.getAttribute('value');\r\n let values = isEmpty(fltAttr) ? '' : fltAttr;\r\n\r\n //removes last operator ||\r\n values = values.substr(0, values.length - 3);\r\n //turn || separated values into array\r\n values = values.split(' ' + tf.orOperator + ' ');\r\n\r\n return values;\r\n }\r\n\r\n /**\r\n * Destroy CheckList instance\r\n */\r\n destroy() {\r\n this.emitter.off(\r\n ['build-checklist-filter'],\r\n (tf, colIndex, isLinked) => this.build(colIndex, isLinked)\r\n );\r\n this.emitter.off(\r\n ['select-checklist-options'],\r\n (tf, colIndex, values) => this.selectOptions(colIndex, values)\r\n );\r\n this.emitter.off(['rows-changed'], () => this.refreshAll());\r\n\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/checkList.js","import {Feature} from '../feature';\r\nimport {createElm, createText, elm, removeElm} from '../dom';\r\nimport {isFn, EMPTY_FN} from '../types';\r\n\r\n/**\r\n * Rows counter UI component\r\n * @export\r\n * @class RowsCounter\r\n * @extends {Feature}\r\n */\r\nexport class RowsCounter extends Feature {\r\n\r\n /**\r\n * Creates an instance of RowsCounter\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'rowsCounter');\r\n\r\n // TableFilter configuration\r\n let f = this.config;\r\n\r\n /**\r\n * ID of custom container element\r\n * @type {String}\r\n */\r\n this.targetId = f.rows_counter_target_id || null;\r\n\r\n /**\r\n * Container DOM element\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.container = null;\r\n\r\n /**\r\n * Container DOM element for label displaying the total number of rows\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.label = null;\r\n\r\n /**\r\n * Text preceding the total number of rows\r\n * @type {String}\r\n */\r\n this.text = f.rows_counter_text || 'Rows: ';\r\n\r\n /**\r\n * Separator symbol appearing between the first and last visible rows of\r\n * current page when paging is enabled. ie: Rows: 31-40 / 70\r\n * @type {String}\r\n */\r\n this.fromToTextSeparator = f.from_to_text_separator || '-';\r\n\r\n /**\r\n * Separator symbol appearing between the first and last visible rows of\r\n * current page and the total number of filterable rows when paging is\r\n * enabled. ie: Rows: 31-40 / 70\r\n * @type {String}\r\n */\r\n this.overText = f.over_text || ' / ';\r\n\r\n /**\r\n * Css class for container element\r\n * @type {String}\r\n */\r\n this.cssClass = f.tot_rows_css_class || 'tot';\r\n\r\n /**\r\n * Callback fired before the counter is refreshed\r\n * @type {Function}\r\n */\r\n this.onBeforeRefreshCounter = isFn(f.on_before_refresh_counter) ?\r\n f.on_before_refresh_counter : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired after the counter is refreshed\r\n * @type {Function}\r\n */\r\n this.onAfterRefreshCounter = isFn(f.on_after_refresh_counter) ?\r\n f.on_after_refresh_counter : EMPTY_FN;\r\n }\r\n\r\n /**\r\n * Initializes RowsCounter instance\r\n */\r\n init() {\r\n if (this.initialized) {\r\n return;\r\n }\r\n\r\n let tf = this.tf;\r\n\r\n //rows counter container\r\n let countDiv = createElm('div');\r\n countDiv.className = this.cssClass;\r\n //rows counter label\r\n let countSpan = createElm('span');\r\n let countText = createElm('span');\r\n countText.appendChild(createText(this.text));\r\n\r\n // counter is added to defined element\r\n if (!this.targetId) {\r\n tf.setToolbar();\r\n }\r\n let targetEl = !this.targetId ? tf.lDiv : elm(this.targetId);\r\n\r\n //default container: 'lDiv'\r\n if (!this.targetId) {\r\n countDiv.appendChild(countText);\r\n countDiv.appendChild(countSpan);\r\n targetEl.appendChild(countDiv);\r\n }\r\n else {\r\n //custom container, no need to append statusDiv\r\n targetEl.appendChild(countText);\r\n targetEl.appendChild(countSpan);\r\n }\r\n this.container = countDiv;\r\n this.label = countSpan;\r\n\r\n // subscribe to events\r\n this.emitter.on(['after-filtering', 'grouped-by-page'],\r\n () => this.refresh(tf.getValidRowsNb()));\r\n this.emitter.on(['rows-changed'], () => this.refresh());\r\n\r\n /** @inherited */\r\n this.initialized = true;\r\n this.refresh();\r\n }\r\n\r\n /**\r\n * Refreshes the rows counter\r\n * @param {Number} p Optional parameter the total number of rows to display\r\n * @returns\r\n */\r\n refresh(p) {\r\n if (!this.initialized || !this.isEnabled()) {\r\n return;\r\n }\r\n\r\n let tf = this.tf;\r\n\r\n this.onBeforeRefreshCounter(tf, this.label);\r\n\r\n let totTxt;\r\n if (!tf.paging) {\r\n if (p && p !== '') {\r\n totTxt = p;\r\n } else {\r\n totTxt = tf.getFilterableRowsNb() - tf.nbHiddenRows;\r\n }\r\n } else {\r\n let paging = tf.feature('paging');\r\n if (paging) {\r\n //paging start row\r\n let pagingStartRow = parseInt(paging.startPagingRow, 10) +\r\n ((tf.getValidRowsNb() > 0) ? 1 : 0);\r\n let pagingEndRow =\r\n (pagingStartRow + paging.pagingLength) - 1 <=\r\n tf.getValidRowsNb() ?\r\n pagingStartRow + paging.pagingLength - 1 :\r\n tf.getValidRowsNb();\r\n totTxt = pagingStartRow + this.fromToTextSeparator +\r\n pagingEndRow + this.overText + tf.getValidRowsNb();\r\n }\r\n }\r\n\r\n this.label.innerHTML = totTxt;\r\n this.onAfterRefreshCounter(tf, this.label, totTxt);\r\n }\r\n\r\n /**\r\n * Remove feature\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n\r\n if (!this.targetId && this.container) {\r\n removeElm(this.container);\r\n } else {\r\n elm(this.targetId).innerHTML = '';\r\n }\r\n this.label = null;\r\n this.container = null;\r\n\r\n // unsubscribe to events\r\n this.emitter.off(['after-filtering', 'grouped-by-page'],\r\n () => this.refresh(tf.getValidRowsNb()));\r\n this.emitter.off(['rows-changed'], () => this.refresh());\r\n\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/rowsCounter.js","import {Feature} from '../feature';\r\nimport {root} from '../root';\r\nimport {createElm, createText, elm, removeElm} from '../dom';\r\nimport {isFn, EMPTY_FN} from '../types';\r\n\r\nconst EVENTS = [\r\n 'after-filtering',\r\n 'after-populating-filter',\r\n 'after-page-change',\r\n 'after-clearing-filters',\r\n 'after-page-length-change',\r\n 'after-reset-page',\r\n 'after-reset-page-length',\r\n 'after-loading-extensions',\r\n 'after-loading-themes'\r\n];\r\n\r\n/**\r\n * Status bar UI component\r\n * @export\r\n * @class StatusBar\r\n * @extends {Feature}\r\n */\r\nexport class StatusBar extends Feature {\r\n\r\n /**\r\n * Creates an instance of StatusBar\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'statusBar');\r\n\r\n // Configuration object\r\n let f = this.config;\r\n\r\n /**\r\n * ID of custom container element\r\n * @type {String}\r\n */\r\n this.targetId = f.status_bar_target_id || null;\r\n\r\n /**\r\n * Container DOM element\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.container = null;\r\n\r\n /**\r\n * Message container DOM element\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.msgContainer = null;\r\n\r\n /**\r\n * Label container DOM element\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.labelContainer = null;\r\n\r\n /**\r\n * Text preceding status message\r\n * @type {String}\r\n */\r\n this.text = f.status_bar_text || '';\r\n\r\n /**\r\n * Css class for container element\r\n * @type {String}\r\n */\r\n this.cssClass = f.status_bar_css_class || 'status';\r\n\r\n /**\r\n * Message visibility duration in milliseconds\r\n * @type {Number}\r\n * @private\r\n */\r\n this.delay = 250;\r\n\r\n /**\r\n * Callback fired before the message is displayed\r\n * @type {Function}\r\n */\r\n this.onBeforeShowMsg = isFn(f.on_before_show_msg) ?\r\n f.on_before_show_msg : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired after the message is displayed\r\n * @type {Function}\r\n */\r\n this.onAfterShowMsg = isFn(f.on_after_show_msg) ?\r\n f.on_after_show_msg : EMPTY_FN;\r\n\r\n /**\r\n * Message appearing upon filtering\r\n * @type {String}\r\n */\r\n this.msgFilter = f.msg_filter || 'Filtering data...';\r\n\r\n /**\r\n * Message appearing when a drop-down filter is populated\r\n * @type {String}\r\n */\r\n this.msgPopulate = f.msg_populate || 'Populating filter...';\r\n\r\n /**\r\n * Message appearing when a checklist filter is populated\r\n * @type {String}\r\n */\r\n this.msgPopulateCheckList = f.msg_populate_checklist ||\r\n 'Populating list...';\r\n\r\n /**\r\n * Message appearing when a pagination page is changed\r\n * @type {String}\r\n */\r\n this.msgChangePage = f.msg_change_page || 'Collecting paging data...';\r\n\r\n /**\r\n * Message appearing when filters are cleared\r\n * @type {String}\r\n */\r\n this.msgClear = f.msg_clear || 'Clearing filters...';\r\n\r\n /**\r\n * Message appearing when the page length is changed\r\n * @type {String}\r\n */\r\n this.msgChangeResults = f.msg_change_results ||\r\n 'Changing results per page...';\r\n\r\n /**\r\n * Message appearing when the page is re-set\r\n * @type {String}\r\n */\r\n this.msgResetPage = f.msg_reset_page || 'Re-setting page...';\r\n\r\n /**\r\n * Message appearing when the page length is re-set\r\n * @type {String}\r\n */\r\n this.msgResetPageLength = f.msg_reset_page_length ||\r\n 'Re-setting page length...';\r\n\r\n /**\r\n * Message appearing upon column sorting\r\n * @type {String}\r\n */\r\n this.msgSort = f.msg_sort || 'Sorting data...';\r\n\r\n /**\r\n * Message appearing when extensions are loading\r\n * @type {String}\r\n */\r\n this.msgLoadExtensions = f.msg_load_extensions ||\r\n 'Loading extensions...';\r\n\r\n /**\r\n * Message appearing when themes are loading\r\n * @type {String}\r\n */\r\n this.msgLoadThemes = f.msg_load_themes || 'Loading theme(s)...';\r\n }\r\n\r\n /**\r\n * Initializes StatusBar instance\r\n */\r\n init() {\r\n if (this.initialized) {\r\n return;\r\n }\r\n\r\n let tf = this.tf;\r\n let emitter = this.emitter;\r\n\r\n //status bar container\r\n let statusDiv = createElm('div');\r\n statusDiv.className = this.cssClass;\r\n\r\n //status bar label\r\n let statusSpan = createElm('span');\r\n //preceding text\r\n let statusSpanText = createElm('span');\r\n statusSpanText.appendChild(createText(this.text));\r\n\r\n // target element container\r\n if (!this.targetId) {\r\n tf.setToolbar();\r\n }\r\n let targetEl = (!this.targetId) ? tf.lDiv : elm(this.targetId);\r\n\r\n //default container: 'lDiv'\r\n if (!this.targetId) {\r\n statusDiv.appendChild(statusSpanText);\r\n statusDiv.appendChild(statusSpan);\r\n targetEl.appendChild(statusDiv);\r\n } else {\r\n // custom container, no need to append statusDiv\r\n targetEl.appendChild(statusSpanText);\r\n targetEl.appendChild(statusSpan);\r\n }\r\n\r\n this.container = statusDiv;\r\n this.msgContainer = statusSpan;\r\n this.labelContainer = statusSpanText;\r\n\r\n // Subscribe to events\r\n emitter.on(['before-filtering'], () => this.message(this.msgFilter));\r\n emitter.on(['before-populating-filter'],\r\n () => this.message(this.msgPopulate));\r\n emitter.on(['before-page-change'],\r\n () => this.message(this.msgChangePage));\r\n emitter.on(['before-clearing-filters'], () =>\r\n this.message(this.msgClear));\r\n emitter.on(['before-page-length-change'],\r\n () => this.message(this.msgChangeResults));\r\n emitter.on(['before-reset-page'],\r\n () => this.message(this.msgResetPage));\r\n emitter.on(['before-reset-page-length'],\r\n () => this.message(this.msgResetPageLength));\r\n emitter.on(['before-loading-extensions'],\r\n () => this.message(this.msgLoadExtensions));\r\n emitter.on(['before-loading-themes'],\r\n () => this.message(this.msgLoadThemes));\r\n\r\n emitter.on(EVENTS, () => this.message(''));\r\n\r\n /**\r\n * @inherited\r\n */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Display status message\r\n * @param {String} [t=''] Message to be displayed\r\n */\r\n message(t = '') {\r\n if (!this.isEnabled()) {\r\n return;\r\n }\r\n\r\n this.onBeforeShowMsg(this.tf, t);\r\n\r\n let d = t === '' ? this.delay : 1;\r\n root.setTimeout(() => {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n this.msgContainer.innerHTML = t;\r\n\r\n this.onAfterShowMsg(this.tf, t);\r\n }, d);\r\n }\r\n\r\n /**\r\n * Destroy StatusBar instance\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n\r\n let emitter = this.emitter;\r\n\r\n this.container.innerHTML = '';\r\n if (!this.targetId) {\r\n removeElm(this.container);\r\n }\r\n this.labelContainer = null;\r\n this.msgContainer = null;\r\n this.container = null;\r\n\r\n // Unsubscribe to events\r\n emitter.off(['before-filtering'], () => this.message(this.msgFilter));\r\n emitter.off(['before-populating-filter'],\r\n () => this.message(this.msgPopulate));\r\n emitter.off(['before-page-change'],\r\n () => this.message(this.msgChangePage));\r\n emitter.off(['before-clearing-filters'],\r\n () => this.message(this.msgClear));\r\n emitter.off(['before-page-length-change'],\r\n () => this.message(this.msgChangeResults));\r\n emitter.off(['before-reset-page'], () =>\r\n this.message(this.msgResetPage));\r\n emitter.off(['before-reset-page-length'],\r\n () => this.message(this.msgResetPageLength));\r\n emitter.off(['before-loading-extensions'],\r\n () => this.message(this.msgLoadExtensions));\r\n emitter.off(['before-loading-themes'],\r\n () => this.message(this.msgLoadThemes));\r\n\r\n emitter.off(EVENTS, () => this.message(''));\r\n\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/statusBar.js","import {Feature} from '../feature';\nimport {createElm, createOpt, createText, elm, removeElm} from '../dom';\nimport {isArray, isFn, isNull, EMPTY_FN} from '../types';\nimport {addEvt, keyCode, removeEvt} from '../event';\nimport {INPUT, SELECT, NONE, ENTER_KEY} from '../const';\n\n/**\n * Paging UI component\n * @export\n * @class Paging\n * @extends {Feature}\n */\nexport class Paging extends Feature {\n\n /**\n * Creates an instance of Paging\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'paging');\n\n // Configuration object\n var f = this.config;\n\n /**\n * Css class for the paging buttons (previous, next, etc.)\n * @type {String}\n */\n this.btnPageCssClass = f.paging_btn_css_class || 'pgInp';\n\n /**\n * Main select DOM element\n * @type {DOMElement}\n */\n this.pagingSlc = null;\n\n /**\n * Results per page select DOM element\n * @type {DOMElement}\n */\n this.resultsPerPageSlc = null;\n\n /**\n * ID of custom container element\n * @type {String}\n */\n this.pagingTgtId = f.paging_target_id || null;\n\n /**\n * Number of rows contained in a page\n * @type {Number}\n */\n this.pagingLength = !isNaN(f.paging_length) ? f.paging_length : 10;\n\n /**\n * ID of custom container element for the results per page selector\n * @type {String}\n */\n this.resultsPerPageTgtId = f.results_per_page_target_id || null;\n\n /**\n * Css class for the paging select element\n * @type {String}\n */\n this.pgSlcCssClass = f.paging_slc_css_class || 'pgSlc';\n\n /**\n * Css class for the paging input element\n * @type {String}\n */\n this.pgInpCssClass = f.paging_inp_css_class || 'pgNbInp';\n\n /**\n * Label and values for the results per page select, example of usage:\n * ['Records: ', [10,25,50,100]]\n * @type {Array}\n */\n this.resultsPerPage = f.results_per_page || null;\n\n /**\n * Determines if results per page is configured\n * @type {Boolean}\n */\n this.hasResultsPerPage = isArray(this.resultsPerPage);\n\n /**\n * Css class for the results per page select\n * @type {String}\n */\n this.resultsSlcCssClass = f.results_slc_css_class || 'rspg';\n\n /**\n * Css class for the label preceding results per page select\n * @type {String}\n */\n this.resultsSpanCssClass = f.results_span_css_class || 'rspgSpan';\n\n /**\n * Index of the first row of current page\n * @type {Number}\n * @private\n */\n this.startPagingRow = 0;\n\n /**\n * Total number of pages\n * @type {Number}\n * @private\n */\n this.nbPages = 0;\n\n /**\n * Current page number\n * @type {Number}\n * @private\n */\n this.currentPageNb = 1;\n\n /**\n * Next page button text\n * @type {String}\n */\n this.btnNextPageText = f.btn_next_page_text || '>';\n\n /**\n * Previous page button text\n * @type {String}\n */\n this.btnPrevPageText = f.btn_prev_page_text || '<';\n\n /**\n * Last page button text\n * @type {String}\n */\n this.btnLastPageText = f.btn_last_page_text || '>|';\n\n /**\n * First page button text\n * @type {String}\n */\n this.btnFirstPageText = f.btn_first_page_text || '|<';\n\n /**\n * Next page button HTML\n * @type {String}\n */\n this.btnNextPageHtml = f.btn_next_page_html ||\n (!tf.enableIcons ? null :\n '');\n\n /**\n * Previous page button HTML\n * @type {String}\n */\n this.btnPrevPageHtml = f.btn_prev_page_html ||\n (!tf.enableIcons ? null :\n '');\n\n /**\n * First page button HTML\n * @type {String}\n */\n this.btnFirstPageHtml = f.btn_first_page_html ||\n (!tf.enableIcons ? null :\n '');\n\n /**\n * Last page button HTML\n * @type {String}\n */\n this.btnLastPageHtml = f.btn_last_page_html ||\n (!tf.enableIcons ? null :\n '');\n\n /**\n * Text preceeding page selector drop-down\n * @type {String}\n */\n this.pageText = f.page_text || ' Page ';\n\n /**\n * Text after page selector drop-down\n * @type {String}\n */\n this.ofText = f.of_text || ' of ';\n\n /**\n * Css class for the span containing total number of pages\n * @type {String}\n */\n this.nbPgSpanCssClass = f.nb_pages_css_class || 'nbpg';\n\n /**\n * Determines if paging buttons are enabled (default: true)\n * @type {Boolean}\n */\n this.hasPagingBtns = f.paging_btns === false ? false : true;\n\n /**\n * Defines page selector type, two possible values: 'select', 'input'\n * @type {String}\n */\n this.pageSelectorType = f.page_selector_type || SELECT;\n\n /**\n * Callback fired before the page is changed\n * @type {Function}\n */\n this.onBeforeChangePage = isFn(f.on_before_change_page) ?\n f.on_before_change_page : EMPTY_FN;\n\n /**\n * Callback fired after the page is changed\n * @type {Function}\n */\n this.onAfterChangePage = isFn(f.on_after_change_page) ?\n f.on_after_change_page : EMPTY_FN;\n\n /**\n * Label preciding results per page select\n * @type {DOMElement}\n * @private\n */\n this.slcResultsTxt = null;\n /**\n * Span containing next page button\n * @type {DOMElement}\n * @private\n */\n this.btnNextCont = null;\n /**\n * Span containing previous page button\n * @type {DOMElement}\n * @private\n */\n this.btnPrevCont = null;\n /**\n * Span containing last page button\n * @type {DOMElement}\n * @private\n */\n this.btnLastCont = null;\n /**\n * Span containing first page button\n * @type {DOMElement}\n * @private\n */\n this.btnFirstCont = null;\n /**\n * Span for tot nb pages\n * @type {DOMElement}\n * @private\n */\n this.pgCont = null;\n /**\n * Span preceding pages select (contains 'Page')\n * @type {DOMElement}\n * @private\n */\n this.pgBefore = null;\n /**\n * Span following pages select (contains ' of ')\n * @type {DOMElement}\n * @private\n */\n this.pgAfter = null;\n\n var start_row = tf.refRow;\n var nrows = tf.getRowsNb(true);\n //calculates page nb\n this.nbPages = Math.ceil((nrows - start_row) / this.pagingLength);\n\n var o = this;\n /**\n * Paging DOM events handlers\n * @type {String}\n * @private\n */\n this.evt = {\n slcIndex() {\n return (o.pageSelectorType === SELECT) ?\n o.pagingSlc.options.selectedIndex :\n parseInt(o.pagingSlc.value, 10) - 1;\n },\n nbOpts() {\n return (o.pageSelectorType === SELECT) ?\n parseInt(o.pagingSlc.options.length, 10) - 1 :\n (o.nbPages - 1);\n },\n next() {\n var nextIndex = o.evt.slcIndex() < o.evt.nbOpts() ?\n o.evt.slcIndex() + 1 : 0;\n o.changePage(nextIndex);\n },\n prev() {\n var prevIndex = o.evt.slcIndex() > 0 ?\n o.evt.slcIndex() - 1 : o.evt.nbOpts();\n o.changePage(prevIndex);\n },\n last() {\n o.changePage(o.evt.nbOpts());\n },\n first() {\n o.changePage(0);\n },\n _detectKey(e) {\n var key = keyCode(e);\n if (key === ENTER_KEY) {\n if (tf.sorted) {\n tf.filter();\n o.changePage(o.evt.slcIndex());\n } else {\n o.changePage();\n }\n this.blur();\n }\n },\n slcPagesChange: null,\n nextEvt: null,\n prevEvt: null,\n lastEvt: null,\n firstEvt: null\n };\n }\n\n /**\n * Initialize DOM elements\n */\n init() {\n var slcPages;\n var tf = this.tf;\n var evt = this.evt;\n\n if (this.initialized) {\n return;\n }\n\n // Check resultsPerPage is in expected format and initialise the\n // results per page component\n if (this.hasResultsPerPage) {\n if (this.resultsPerPage.length < 2) {\n this.hasResultsPerPage = false;\n } else {\n this.pagingLength = this.resultsPerPage[1][0];\n this.setResultsPerPage();\n }\n }\n\n evt.slcPagesChange = (event) => {\n var slc = event.target;\n this.changePage(slc.selectedIndex);\n };\n\n // Paging drop-down list selector\n if (this.pageSelectorType === SELECT) {\n slcPages = createElm(SELECT);\n slcPages.className = this.pgSlcCssClass;\n addEvt(slcPages, 'change', evt.slcPagesChange);\n }\n\n // Paging input selector\n if (this.pageSelectorType === INPUT) {\n slcPages = createElm(INPUT, ['value', this.currentPageNb]);\n slcPages.className = this.pgInpCssClass;\n addEvt(slcPages, 'keypress', evt._detectKey);\n }\n\n // btns containers\n var btnNextSpan = createElm('span');\n var btnPrevSpan = createElm('span');\n var btnLastSpan = createElm('span');\n var btnFirstSpan = createElm('span');\n\n if (this.hasPagingBtns) {\n // Next button\n if (!this.btnNextPageHtml) {\n var btnNext = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnNextPageText],\n ['title', 'Next']\n );\n btnNext.className = this.btnPageCssClass;\n addEvt(btnNext, 'click', evt.next);\n btnNextSpan.appendChild(btnNext);\n } else {\n btnNextSpan.innerHTML = this.btnNextPageHtml;\n addEvt(btnNextSpan, 'click', evt.next);\n }\n // Previous button\n if (!this.btnPrevPageHtml) {\n var btnPrev = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnPrevPageText],\n ['title', 'Previous']\n );\n btnPrev.className = this.btnPageCssClass;\n addEvt(btnPrev, 'click', evt.prev);\n btnPrevSpan.appendChild(btnPrev);\n } else {\n btnPrevSpan.innerHTML = this.btnPrevPageHtml;\n addEvt(btnPrevSpan, 'click', evt.prev);\n }\n // Last button\n if (!this.btnLastPageHtml) {\n var btnLast = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnLastPageText],\n ['title', 'Last']\n );\n btnLast.className = this.btnPageCssClass;\n addEvt(btnLast, 'click', evt.last);\n btnLastSpan.appendChild(btnLast);\n } else {\n btnLastSpan.innerHTML = this.btnLastPageHtml;\n addEvt(btnLastSpan, 'click', evt.last);\n }\n // First button\n if (!this.btnFirstPageHtml) {\n var btnFirst = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnFirstPageText],\n ['title', 'First']\n );\n btnFirst.className = this.btnPageCssClass;\n addEvt(btnFirst, 'click', evt.first);\n btnFirstSpan.appendChild(btnFirst);\n } else {\n btnFirstSpan.innerHTML = this.btnFirstPageHtml;\n addEvt(btnFirstSpan, 'click', evt.first);\n }\n }\n\n // paging elements (buttons+drop-down list) are added to defined element\n if (!this.pagingTgtId) {\n tf.setToolbar();\n }\n var targetEl = !this.pagingTgtId ? tf.mDiv : elm(this.pagingTgtId);\n targetEl.appendChild(btnFirstSpan);\n targetEl.appendChild(btnPrevSpan);\n\n var pgBeforeSpan = createElm('span');\n pgBeforeSpan.appendChild(createText(this.pageText));\n pgBeforeSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgBeforeSpan);\n targetEl.appendChild(slcPages);\n var pgAfterSpan = createElm('span');\n pgAfterSpan.appendChild(createText(this.ofText));\n pgAfterSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgAfterSpan);\n var pgSpan = createElm('span');\n pgSpan.className = this.nbPgSpanCssClass;\n pgSpan.appendChild(createText(' ' + this.nbPages + ' '));\n targetEl.appendChild(pgSpan);\n targetEl.appendChild(btnNextSpan);\n targetEl.appendChild(btnLastSpan);\n\n this.btnNextCont = btnNextSpan;\n this.btnPrevCont = btnPrevSpan;\n this.btnLastCont = btnLastSpan;\n this.btnFirstCont = btnFirstSpan;\n this.pgCont = pgSpan;\n this.pgBefore = pgBeforeSpan;\n this.pgAfter = pgAfterSpan;\n this.pagingSlc = slcPages;\n\n this.setPagingInfo();\n\n if (!tf.fltGrid) {\n tf.validateAllRows();\n this.setPagingInfo(tf.validRowsIndex);\n }\n\n this.emitter.on(['after-filtering'], () => this.resetPagingInfo());\n this.emitter.on(['change-page'],\n (tf, pageNumber) => this.setPage(pageNumber));\n this.emitter.on(['change-page-results'],\n (tf, pageLength) => this.changeResultsPerPage(pageLength));\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Reset paging when filters are already instantiated\n * @param {Boolean} filterTable Execute filtering once paging instanciated\n */\n reset(filterTable = false) {\n var tf = this.tf;\n if (this.isEnabled()) {\n return;\n }\n this.enable();\n this.init();\n\n if (filterTable) {\n tf.filter();\n }\n }\n\n /**\n * Reset paging info from scratch after a filtering process\n */\n resetPagingInfo() {\n this.startPagingRow = 0;\n this.currentPageNb = 1;\n this.setPagingInfo(this.tf.validRowsIndex);\n }\n\n /**\n * Calculate number of pages based on valid rows\n * Refresh paging select according to number of pages\n * @param {Array} validRows Collection of valid rows\n */\n setPagingInfo(validRows) {\n var tf = this.tf;\n var mdiv = !this.pagingTgtId ? tf.mDiv : elm(this.pagingTgtId);\n\n //store valid rows indexes\n tf.validRowsIndex = validRows || tf.getValidRows(true);\n\n //calculate nb of pages\n this.nbPages = Math.ceil(tf.validRowsIndex.length / this.pagingLength);\n //refresh page nb span\n this.pgCont.innerHTML = this.nbPages;\n //select clearing shortcut\n if (this.pageSelectorType === SELECT) {\n this.pagingSlc.innerHTML = '';\n }\n\n if (this.nbPages > 0) {\n mdiv.style.visibility = 'visible';\n if (this.pageSelectorType === SELECT) {\n for (var z = 0; z < this.nbPages; z++) {\n var opt = createOpt(z + 1, z * this.pagingLength, false);\n this.pagingSlc.options[z] = opt;\n }\n } else {\n //input type\n this.pagingSlc.value = this.currentPageNb;\n }\n\n } else {\n /*** if no results paging select and buttons are hidden ***/\n mdiv.style.visibility = 'hidden';\n }\n this.groupByPage(tf.validRowsIndex);\n }\n\n /**\n * Group table rows by page and display valid rows\n * @param {Array} validRows Collection of valid rows\n */\n groupByPage(validRows) {\n var tf = this.tf;\n var rows = tf.tbl.rows;\n var startPagingRow = parseInt(this.startPagingRow, 10);\n var endPagingRow = startPagingRow + parseInt(this.pagingLength, 10);\n\n //store valid rows indexes\n if (validRows) {\n tf.validRowsIndex = validRows;\n }\n\n //this loop shows valid rows of current page\n for (var h = 0, len = tf.getValidRowsNb(true); h < len; h++) {\n var validRowIdx = tf.validRowsIndex[h];\n var r = rows[validRowIdx];\n var isRowValid = r.getAttribute('validRow');\n var rowDisplayed = false;\n\n if (h >= startPagingRow && h < endPagingRow) {\n if (isNull(isRowValid) || Boolean(isRowValid === 'true')) {\n r.style.display = '';\n rowDisplayed = true;\n }\n } else {\n r.style.display = NONE;\n }\n this.emitter.emit('row-paged', tf, validRowIdx, h, rowDisplayed);\n }\n\n // broadcast grouping by page\n this.emitter.emit('grouped-by-page', tf, this);\n }\n\n /**\n * Return the current page number\n * @return {Number} Page number\n */\n getPage() {\n return this.currentPageNb;\n }\n\n /**\n * Show page defined by passed argument (string or number):\n * @param {String}/{Number} cmd possible string values: 'next',\n * 'previous', 'last', 'first' or page number as per param\n */\n setPage(cmd) {\n var tf = this.tf;\n if (!tf.isInitialized() || !this.isEnabled()) {\n return;\n }\n var btnEvt = this.evt,\n cmdtype = typeof cmd;\n if (cmdtype === 'string') {\n switch (cmd.toLowerCase()) {\n case 'next':\n btnEvt.next();\n break;\n case 'previous':\n btnEvt.prev();\n break;\n case 'last':\n btnEvt.last();\n break;\n case 'first':\n btnEvt.first();\n break;\n default:\n btnEvt.next();\n break;\n }\n }\n else if (cmdtype === 'number') {\n this.changePage(cmd - 1);\n }\n }\n\n /**\n * Generates UI elements for the number of results per page drop-down\n */\n setResultsPerPage() {\n var tf = this.tf;\n var evt = this.evt;\n\n if (this.resultsPerPageSlc || !this.resultsPerPage) {\n return;\n }\n\n evt.slcResultsChange = (ev) => {\n this.onChangeResultsPerPage();\n ev.target.blur();\n };\n\n var slcR = createElm(SELECT);\n slcR.className = this.resultsSlcCssClass;\n var slcRText = this.resultsPerPage[0],\n slcROpts = this.resultsPerPage[1];\n var slcRSpan = createElm('span');\n slcRSpan.className = this.resultsSpanCssClass;\n\n // results per page select is added to external element\n if (!this.resultsPerPageTgtId) {\n tf.setToolbar();\n }\n var targetEl = !this.resultsPerPageTgtId ?\n tf.rDiv : elm(this.resultsPerPageTgtId);\n slcRSpan.appendChild(createText(slcRText));\n\n var help = tf.feature('help');\n if (help && help.btn) {\n help.btn.parentNode.insertBefore(slcRSpan, help.btn);\n help.btn.parentNode.insertBefore(slcR, help.btn);\n } else {\n targetEl.appendChild(slcRSpan);\n targetEl.appendChild(slcR);\n }\n\n for (var r = 0; r < slcROpts.length; r++) {\n var currOpt = new Option(slcROpts[r], slcROpts[r], false, false);\n slcR.options[r] = currOpt;\n }\n addEvt(slcR, 'change', evt.slcResultsChange);\n this.slcResultsTxt = slcRSpan;\n this.resultsPerPageSlc = slcR;\n }\n\n /**\n * Remove number of results per page UI elements\n */\n removeResultsPerPage() {\n var tf = this.tf;\n if (!tf.isInitialized() || !this.resultsPerPageSlc ||\n !this.resultsPerPage) {\n return;\n }\n if (this.resultsPerPageSlc) {\n removeElm(this.resultsPerPageSlc);\n }\n if (this.slcResultsTxt) {\n removeElm(this.slcResultsTxt);\n }\n this.resultsPerPageSlc = null;\n this.slcResultsTxt = null;\n }\n\n /**\n * Change the page based on passed index\n * @param {Number} index Index of the page (0-n)\n */\n changePage(index) {\n var tf = this.tf;\n\n if (!this.isEnabled()) {\n return;\n }\n\n this.emitter.emit('before-page-change', tf, (index + 1));\n\n if (index === null) {\n index = this.pageSelectorType === SELECT ?\n this.pagingSlc.options.selectedIndex : this.pagingSlc.value - 1;\n }\n if (index >= 0 && index <= (this.nbPages - 1)) {\n this.onBeforeChangePage(this, (index + 1));\n\n this.currentPageNb = parseInt(index, 10) + 1;\n if (this.pageSelectorType === SELECT) {\n this.pagingSlc.options[index].selected = true;\n } else {\n this.pagingSlc.value = this.currentPageNb;\n }\n\n this.startPagingRow = (this.pageSelectorType === SELECT) ?\n this.pagingSlc.value : (index * this.pagingLength);\n\n this.groupByPage();\n\n this.onAfterChangePage(this, (index + 1));\n }\n\n this.emitter.emit('after-page-change', tf, (index + 1));\n }\n\n /**\n * Change the number of results per page based on passed value\n * @param {String} val The number of results per page\n */\n changeResultsPerPage(val) {\n if (!this.isEnabled() || isNaN(val)) {\n return;\n }\n\n this.resultsPerPageSlc.value = val;\n this.onChangeResultsPerPage();\n }\n\n /**\n * Change rows according to page results drop-down\n */\n onChangeResultsPerPage() {\n var tf = this.tf;\n\n if (!this.isEnabled()) {\n return;\n }\n\n this.emitter.emit('before-page-length-change', tf);\n\n var slcR = this.resultsPerPageSlc;\n var slcIndex = slcR.selectedIndex;\n var slcPagesSelIndex = (this.pageSelectorType === SELECT) ?\n this.pagingSlc.selectedIndex :\n parseInt(this.pagingSlc.value - 1, 10);\n this.pagingLength = parseInt(slcR.options[slcIndex].value, 10);\n this.startPagingRow = this.pagingLength * slcPagesSelIndex;\n\n if (!isNaN(this.pagingLength)) {\n if (this.startPagingRow >= tf.nbFilterableRows) {\n this.startPagingRow = (tf.nbFilterableRows - this.pagingLength);\n }\n this.setPagingInfo();\n\n if (this.pageSelectorType === SELECT) {\n var slcIdx =\n (this.pagingSlc.options.length - 1 <= slcPagesSelIndex) ?\n (this.pagingSlc.options.length - 1) : slcPagesSelIndex;\n this.pagingSlc.options[slcIdx].selected = true;\n }\n }\n\n this.emitter.emit('after-page-length-change', tf, this.pagingLength);\n }\n\n /**\n * Re-set page nb at page re-load\n */\n resetPage() {\n var tf = this.tf;\n if (!this.isEnabled()) {\n return;\n }\n this.emitter.emit('before-reset-page', tf);\n var pgNb = tf.feature('store').getPageNb();\n if (pgNb !== '') {\n this.changePage((pgNb - 1));\n }\n this.emitter.emit('after-reset-page', tf, pgNb);\n }\n\n /**\n * Re-set page length value at page re-load\n */\n resetPageLength() {\n var tf = this.tf;\n if (!this.isEnabled()) {\n return;\n }\n this.emitter.emit('before-reset-page-length', tf);\n var pglenIndex = tf.feature('store').getPageLength();\n\n if (pglenIndex !== '') {\n this.resultsPerPageSlc.options[pglenIndex].selected = true;\n this.changeResultsPerPage();\n }\n this.emitter.emit('after-reset-page-length', tf, pglenIndex);\n }\n\n /**\n * Remove paging feature\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n var evt = this.evt;\n\n if (this.pagingSlc) {\n if (this.pageSelectorType === SELECT) {\n removeEvt(this.pagingSlc, 'change', evt.slcPagesChange);\n }\n else if (this.pageSelectorType === INPUT) {\n removeEvt(this.pagingSlc, 'keypress', evt._detectKey);\n }\n removeElm(this.pagingSlc);\n }\n\n if (this.btnNextCont) {\n removeEvt(this.btnNextCont, 'click', evt.next);\n removeElm(this.btnNextCont);\n this.btnNextCont = null;\n }\n\n if (this.btnPrevCont) {\n removeEvt(this.btnPrevCont, 'click', evt.prev);\n removeElm(this.btnPrevCont);\n this.btnPrevCont = null;\n }\n\n if (this.btnLastCont) {\n removeEvt(this.btnLastCont, 'click', evt.last);\n removeElm(this.btnLastCont);\n this.btnLastCont = null;\n }\n\n if (this.btnFirstCont) {\n removeEvt(this.btnFirstCont, 'click', evt.first);\n removeElm(this.btnFirstCont);\n this.btnFirstCont = null;\n }\n\n if (this.pgBefore) {\n removeElm(this.pgBefore);\n this.pgBefore = null;\n }\n\n if (this.pgAfter) {\n removeElm(this.pgAfter);\n this.pgAfter = null;\n }\n\n if (this.pgCont) {\n removeElm(this.pgCont);\n this.pgCont = null;\n }\n\n if (this.hasResultsPerPage) {\n this.removeResultsPerPage();\n }\n\n this.emitter.off(['after-filtering'], () => this.resetPagingInfo());\n this.emitter.off(['change-page'],\n (tf, pageNumber) => this.setPage(pageNumber));\n this.emitter.off(['change-page-results'],\n (tf, pageLength) => this.changeResultsPerPage(pageLength));\n\n this.pagingSlc = null;\n this.nbPages = 0;\n this.disable();\n this.initialized = false;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/paging.js","import {Feature} from '../feature';\r\nimport {createElm, createText, elm, removeElm} from '../dom';\r\nimport {addEvt} from '../event';\r\n\r\n/**\r\n * Clear button UI component\r\n */\r\nexport class ClearButton extends Feature {\r\n\r\n /**\r\n * Creates an instance of ClearButton\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'btnReset');\r\n\r\n let f = this.config;\r\n\r\n /**\r\n * Container element ID\r\n * @type {String}\r\n */\r\n this.targetId = f.btn_reset_target_id || null;\r\n\r\n /**\r\n * Clear button container element\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.container = null;\r\n\r\n /**\r\n * Clear button element\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.element = null;\r\n\r\n /**\r\n * Text for the clear button\r\n * @type {String}\r\n */\r\n this.text = f.btn_reset_text || 'Reset';\r\n\r\n /**\r\n * Css class for reset button\r\n * @type {String}\r\n */\r\n this.cssClass = f.btn_reset_css_class || 'reset';\r\n\r\n /**\r\n * Tooltip text for the clear button\r\n * @type {String}\r\n */\r\n this.tooltip = f.btn_reset_tooltip || 'Clear filters';\r\n\r\n /**\r\n * Custom Html string for the clear button\r\n * @type {String}\r\n */\r\n this.html = f.btn_reset_html ||\r\n (!tf.enableIcons ? null :\r\n '');\r\n }\r\n\r\n /**\r\n * Click event handler for clear button\r\n * @private\r\n */\r\n onClick() {\r\n if (!this.isEnabled()) {\r\n return;\r\n }\r\n this.tf.clearFilters();\r\n }\r\n\r\n /**\r\n * Initialize clear button component\r\n */\r\n init() {\r\n let tf = this.tf;\r\n\r\n if (this.initialized) {\r\n return;\r\n }\r\n\r\n let cont = createElm('span');\r\n\r\n // reset button is added to defined element\r\n if (!this.targetId) {\r\n tf.setToolbar();\r\n }\r\n let targetEl = !this.targetId ? tf.rDiv : elm(this.targetId);\r\n targetEl.appendChild(cont);\r\n\r\n if (!this.html) {\r\n let fltReset = createElm('a', ['href', 'javascript:void(0);']);\r\n fltReset.className = this.cssClass;\r\n fltReset.appendChild(createText(this.text));\r\n cont.appendChild(fltReset);\r\n addEvt(fltReset, 'click', () => this.onClick());\r\n } else {\r\n cont.innerHTML = this.html;\r\n let resetEl = cont.firstChild;\r\n addEvt(resetEl, 'click', () => this.onClick());\r\n }\r\n this.element = cont.firstChild;\r\n this.container = cont;\r\n\r\n /** @inherited */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Destroy ClearButton instance\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n removeElm(this.element);\r\n removeElm(this.container);\r\n this.element = null;\r\n this.container = null;\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/clearButton.js","import {Feature} from '../feature';\nimport {createElm, createText, elm, removeElm} from '../dom';\nimport {addEvt, targetEvt, removeEvt} from '../event';\nimport {NONE} from '../const';\nimport {root} from '../root';\n\nconst WIKI_URL = 'https://github.com/koalyptus/TableFilter/wiki/' +\n '4.-Filter-operators';\nconst WEBSITE_URL = 'http://koalyptus.github.io/TableFilter/';\n\n/**\n * Help UI component\n */\nexport class Help extends Feature {\n\n /**\n * Creates an instance of Help\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'help');\n\n let f = this.config;\n\n /**\n * ID of main custom container element\n * @type {String}\n */\n this.tgtId = f.help_instructions_target_id || null;\n\n /**\n * ID of custom container element for instructions\n * @type {String}\n */\n this.contTgtId = f.help_instructions_container_target_id ||\n null;\n\n /**\n * Instructions text (accepts HTML)\n * @type {String}\n */\n this.instrText = f.help_instructions_text ?\n f.help_instructions_text :\n 'Use the filters above each column to filter and limit table ' +\n 'data. Advanced searches can be performed by using the following ' +\n 'operators:
<, <=, >, ' +\n '>=, =, *, !, {, }, ' +\n '||,&&, [empty], [nonempty], ' +\n 'rgx:
' +\n 'Learn more
';\n\n /**\n * Instructions HTML\n * @type {String}\n */\n this.instrHtml = f.help_instructions_html || null;\n\n /**\n * Help button text ('?')\n * @type {String}\n */\n this.btnText = f.help_instructions_btn_text || '?';\n\n /**\n * Custom help button HTML\n * @type {String}\n */\n this.btnHtml = f.help_instructions_btn_html || null;\n\n /**\n * Css class for help button\n * @type {String}\n */\n this.btnCssClass = f.help_instructions_btn_css_class || 'helpBtn';\n\n /**\n * Css class for help container element\n * @type {String}\n */\n this.contCssClass = f.help_instructions_container_css_class ||\n 'helpCont';\n\n /**\n * Button DOM element\n * @type {DOMElement}\n */\n this.btn = null;\n\n /**\n * Help container DOM element\n * @type {DOMElement}\n */\n this.cont = null;\n\n /**\n * Bound mouseup wrapper\n * @private\n */\n this.boundMouseup = null;\n\n /**\n * Default HTML appended to instructions text\n * @type {String}\n */\n this.defaultHtml = '

TableFilter ' +\n 'v' + tf.version + '

' + '' + WEBSITE_URL + '' +\n '
©2015-' + tf.year + ' Max Guglielmi' +\n '
' +\n 'Close
';\n\n this.emitter.on(['init-help'], () => this.init());\n }\n\n /**\n * Mouse-up event handler handling popup auto-close behaviour\n * @private\n */\n onMouseup(evt) {\n let targetElm = targetEvt(evt);\n\n while (targetElm && targetElm !== this.cont && targetElm !== this.btn) {\n targetElm = targetElm.parentNode;\n }\n\n if (targetElm !== this.cont && targetElm !== this.btn) {\n this.toggle();\n }\n\n return;\n }\n\n /**\n * Initialise Help instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n let tf = this.tf;\n\n let btn = createElm('span');\n let cont = createElm('div');\n\n this.boundMouseup = this.onMouseup.bind(this);\n\n //help button is added to defined element\n if (!this.tgtId) {\n tf.setToolbar();\n }\n let targetEl = !this.tgtId ? tf.rDiv : elm(this.tgtId);\n targetEl.appendChild(btn);\n\n let divContainer = !this.contTgtId ? btn : elm(this.contTgtId);\n\n if (!this.btnHtml) {\n divContainer.appendChild(cont);\n let helplink = createElm('a', ['href', 'javascript:void(0);']);\n helplink.className = this.btnCssClass;\n helplink.appendChild(createText(this.btnText));\n btn.appendChild(helplink);\n addEvt(helplink, 'click', () => this.toggle());\n } else {\n btn.innerHTML = this.btnHtml;\n let helpEl = btn.firstChild;\n addEvt(helpEl, 'click', () => this.toggle());\n divContainer.appendChild(cont);\n }\n\n if (!this.instrHtml) {\n cont.innerHTML = this.instrText;\n cont.className = this.contCssClass;\n } else {\n if (this.contTgtId) {\n divContainer.appendChild(cont);\n }\n cont.innerHTML = this.instrHtml;\n if (!this.contTgtId) {\n cont.className = this.contCssClass;\n }\n }\n cont.innerHTML += this.defaultHtml;\n addEvt(cont, 'click', () => this.toggle());\n\n this.cont = cont;\n this.btn = btn;\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Toggle help pop-up\n */\n toggle() {\n // check only if explicitily set to false as in this case undefined\n // signifies the help feature is enabled by default\n if (this.enabled === false) {\n return;\n }\n\n // ensure mouseup event handler is removed\n removeEvt(root, 'mouseup', this.boundMouseup);\n\n let divDisplay = this.cont.style.display;\n if (divDisplay === '' || divDisplay === NONE) {\n this.cont.style.display = 'inline';\n addEvt(root, 'mouseup', this.boundMouseup);\n } else {\n this.cont.style.display = NONE;\n }\n }\n\n /**\n * Remove help UI\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n removeElm(this.btn);\n this.btn = null;\n\n removeElm(this.cont);\n this.cont = null;\n\n this.boundMouseup = null;\n\n this.initialized = false;\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/help.js","import {Feature} from '../feature';\r\nimport {addClass, removeClass} from '../dom';\r\n\r\n/**\r\n * Rows with alternating background color for improved readability\r\n */\r\nexport class AlternateRows extends Feature {\r\n\r\n /**\r\n * Creates an instance of AlternateRows.\r\n *\r\n * @param {Object} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'alternateRows');\r\n\r\n let config = this.config;\r\n /**\r\n * Css class for even rows (default: 'even')\r\n * @type {String}\r\n */\r\n this.evenCss = config.even_row_css_class || 'even';\r\n\r\n /**\r\n * Css class for odd rows (default: 'odd')\r\n * @type {String}\r\n */\r\n this.oddCss = config.odd_row_css_class || 'odd';\r\n }\r\n\r\n /**\r\n * Sets alternating rows color\r\n */\r\n init() {\r\n if (this.initialized) {\r\n return;\r\n }\r\n\r\n this.processAll();\r\n\r\n // Subscribe to events\r\n this.emitter.on(['row-processed', 'row-paged'],\r\n (tf, rowIndex, arrIndex, isValid) =>\r\n this.processRow(rowIndex, arrIndex, isValid));\r\n this.emitter.on(['column-sorted'], () => this.processAll());\r\n this.emitter.on(['rows-changed'], () => this.processAll());\r\n\r\n /** @inherited */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Apply background to all valid rows\r\n */\r\n processAll() {\r\n if (!this.isEnabled()) {\r\n return;\r\n }\r\n let tf = this.tf;\r\n let validRowsIndex = tf.getValidRows(true);\r\n let indexLen = validRowsIndex.length;\r\n let idx = 0;\r\n\r\n //alternates bg color\r\n for (let j = 0; j < indexLen; j++) {\r\n let rowIdx = validRowsIndex[j];\r\n this.setRowBg(rowIdx, idx);\r\n idx++;\r\n }\r\n }\r\n\r\n /**\r\n * Set/remove row background based on row validation\r\n * @param {Number} rowIdx Row index\r\n * @param {Number} arrIdx Array index\r\n * @param {Boolean} isValid Valid row flag\r\n */\r\n processRow(rowIdx, arrIdx, isValid) {\r\n if (isValid) {\r\n this.setRowBg(rowIdx, arrIdx);\r\n } else {\r\n this.removeRowBg(rowIdx);\r\n }\r\n }\r\n\r\n /**\r\n * Sets row background color\r\n * @param {Number} rowIdx Row index\r\n * @param {Number} idx Valid rows collection index needed to calculate bg\r\n * color\r\n * @private\r\n */\r\n setRowBg(rowIdx, idx) {\r\n if (!this.isEnabled() || isNaN(rowIdx)) {\r\n return;\r\n }\r\n let rows = this.tf.tbl.rows;\r\n let i = isNaN(idx) ? rowIdx : idx;\r\n this.removeRowBg(rowIdx);\r\n\r\n addClass(rows[rowIdx], (i % 2) ? this.evenCss : this.oddCss);\r\n }\r\n\r\n /**\r\n * Removes row background color\r\n * @param {Number} idx Row index\r\n * @private\r\n */\r\n removeRowBg(idx) {\r\n if (isNaN(idx)) {\r\n return;\r\n }\r\n let rows = this.tf.tbl.rows;\r\n removeClass(rows[idx], this.oddCss);\r\n removeClass(rows[idx], this.evenCss);\r\n }\r\n\r\n /**\r\n * Removes all alternating backgrounds\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n let nbRows = this.tf.getRowsNb(true);\r\n for (let i = 0; i < nbRows; i++) {\r\n this.removeRowBg(i);\r\n }\r\n\r\n // Unsubscribe to events\r\n this.emitter.off(['row-processed', 'row-paged'],\r\n (tf, rowIndex, arrIndex, isValid) =>\r\n this.processRow(rowIndex, arrIndex, isValid));\r\n this.emitter.off(['column-sorted'], () => this.processAll());\r\n this.emitter.off(['rows-changed'], () => this.processAll());\r\n\r\n this.initialized = false;\r\n }\r\n\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/alternateRows.js","import {Feature} from '../feature';\r\nimport {createElm, elm, removeElm} from '../dom';\r\nimport {isEmpty, isFn, EMPTY_FN} from '../types';\r\nimport {NONE} from '../const';\r\n\r\n/**\r\n * UI when filtering yields no matches\r\n * @export\r\n * @class NoResults\r\n * @extends {Feature}\r\n */\r\nexport class NoResults extends Feature {\r\n\r\n /**\r\n * Creates an instance of NoResults\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'noResults');\r\n\r\n //configuration object\r\n let f = this.config.no_results_message;\r\n\r\n /**\r\n * Text (accepts HTML)\r\n * @type {String}\r\n */\r\n this.content = f.content || 'No results';\r\n\r\n /**\r\n * Custom container DOM element\r\n * @type {DOMElement}\r\n */\r\n this.customContainer = f.custom_container || null;\r\n\r\n /**\r\n * ID of custom container element\r\n * @type {String}\r\n */\r\n this.customContainerId = f.custom_container_id || null;\r\n\r\n /**\r\n * Indicates if UI is contained in a external element\r\n * @type {Boolean}\r\n * @private\r\n */\r\n this.isExternal = !isEmpty(this.customContainer) ||\r\n !isEmpty(this.customContainerId);\r\n\r\n /**\r\n * Css class assigned to container element\r\n * @type {String}\r\n */\r\n this.cssClass = f.css_class || 'no-results';\r\n\r\n /**\r\n * Stores container DOM element\r\n * @type {DOMElement}\r\n */\r\n this.cont = null;\r\n\r\n /**\r\n * Callback fired before the message is displayed\r\n * @type {Function}\r\n */\r\n this.onBeforeShow = isFn(f.on_before_show_msg) ?\r\n f.on_before_show_msg : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired after the message is displayed\r\n * @type {Function}\r\n */\r\n this.onAfterShow = isFn(f.on_after_show_msg) ?\r\n f.on_after_show_msg : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired before the message is hidden\r\n * @type {Function}\r\n */\r\n this.onBeforeHide = isFn(f.on_before_hide_msg) ?\r\n f.on_before_hide_msg : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired after the message is hidden\r\n * @type {Function}\r\n */\r\n this.onAfterHide = isFn(f.on_after_hide_msg) ?\r\n f.on_after_hide_msg : EMPTY_FN;\r\n }\r\n\r\n /**\r\n * Initializes NoResults instance\r\n */\r\n init() {\r\n if (this.initialized) {\r\n return;\r\n }\r\n let tf = this.tf;\r\n let target = this.customContainer || elm(this.customContainerId) ||\r\n tf.tbl;\r\n\r\n //container\r\n let cont = createElm('div');\r\n cont.className = this.cssClass;\r\n cont.innerHTML = this.content;\r\n\r\n if (this.isExternal) {\r\n target.appendChild(cont);\r\n } else {\r\n target.parentNode.insertBefore(cont, target.nextSibling);\r\n }\r\n\r\n this.cont = cont;\r\n\r\n // subscribe to after-filtering event\r\n this.emitter.on(['after-filtering'], () => this.toggle());\r\n\r\n /**\r\n * @inherited\r\n */\r\n this.initialized = true;\r\n\r\n this.hide();\r\n }\r\n\r\n /**\r\n * Toggle no results message\r\n */\r\n toggle() {\r\n if (this.tf.getValidRowsNb() > 0) {\r\n this.hide();\r\n } else {\r\n this.show();\r\n }\r\n }\r\n\r\n /**\r\n * Show no results message\r\n */\r\n show() {\r\n if (!this.initialized || !this.isEnabled()) {\r\n return;\r\n }\r\n this.onBeforeShow(this.tf, this);\r\n\r\n this.setWidth();\r\n this.cont.style.display = 'block';\r\n\r\n this.onAfterShow(this.tf, this);\r\n }\r\n\r\n /**\r\n * Hide no results message\r\n */\r\n hide() {\r\n if (!this.initialized || !this.isEnabled()) {\r\n return;\r\n }\r\n this.onBeforeHide(this.tf, this);\r\n\r\n this.cont.style.display = NONE;\r\n\r\n this.onAfterHide(this.tf, this);\r\n }\r\n\r\n /**\r\n * Sets no results container width\r\n * @private\r\n */\r\n setWidth() {\r\n if (!this.initialized || this.isExternal || !this.isEnabled()) {\r\n return;\r\n }\r\n let tf = this.tf;\r\n if (tf.gridLayout) {\r\n let gridLayout = tf.feature('gridLayout');\r\n this.cont.style.width = gridLayout.tblCont.clientWidth + 'px';\r\n } else {\r\n this.cont.style.width = (tf.tbl.tHead ? tf.tbl.tHead.clientWidth :\r\n tf.tbl.tBodies[0].clientWidth) + 'px';\r\n }\r\n }\r\n\r\n /**\r\n * Remove feature\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n removeElm(this.cont);\r\n this.cont = null;\r\n // unsubscribe to after-filtering event\r\n this.emitter.off(['after-filtering'], () => this.toggle());\r\n\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/noResults.js","import {Feature} from '../feature';\nimport {Hash} from './hash';\nimport {Storage} from './storage';\nimport {isEmpty} from '../string';\nimport {isArray, isNull, isString, isUndef} from '../types';\n\n/**\n * Features state object persistable with localStorage, cookie or URL hash\n *\n * @export\n * @class State\n * @extends {Feature}\n */\nexport class State extends Feature {\n\n /**\n * Creates an instance of State\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'state');\n\n let cfg = this.config.state;\n\n /**\n * Determines whether state is persisted with URL hash\n * @type {Boolean}\n */\n this.enableHash = cfg === true ||\n (isArray(cfg.types) && cfg.types.indexOf('hash') !== -1);\n\n /**\n * Determines whether state is persisted with localStorage\n * @type {Boolean}\n */\n this.enableLocalStorage = isArray(cfg.types) &&\n cfg.types.indexOf('local_storage') !== -1;\n\n /**\n * Determines whether state is persisted with localStorage\n * @type {Boolean}\n */\n this.enableCookie = isArray(cfg.types) &&\n cfg.types.indexOf('cookie') !== -1;\n\n /**\n * Persist filters values, enabled by default\n * @type {Boolean}\n */\n this.persistFilters = cfg.filters === false ? false : true;\n\n /**\n * Persist current page number when paging is enabled\n * @type {Boolean}\n */\n this.persistPageNumber = Boolean(cfg.page_number);\n\n /**\n * Persist page length when paging is enabled\n * @type {Boolean}\n */\n this.persistPageLength = Boolean(cfg.page_length);\n\n /**\n * Persist column sorting\n * @type {Boolean}\n */\n this.persistSort = Boolean(cfg.sort);\n\n /**\n * Persist columns visibility\n * @type {Boolean}\n */\n this.persistColsVisibility = Boolean(cfg.columns_visibility);\n\n /**\n * Persist filters row visibility\n * @type {Boolean}\n */\n this.persistFiltersVisibility = Boolean(cfg.filters_visibility);\n\n /**\n * Cookie duration in hours\n * @type {Boolean}\n */\n this.cookieDuration = !isNaN(cfg.cookie_duration) ?\n parseInt(cfg.cookie_duration, 10) : 87600;\n\n /**\n * Enable Storage if localStorage or cookie is required\n * @type {Boolean}\n * @private\n */\n this.enableStorage = this.enableLocalStorage || this.enableCookie;\n\n /**\n * Storage instance if storage is required\n * @type {Storage}\n * @private\n */\n this.storage = null;\n\n /**\n * Hash instance if URL hash is required\n * @type {Boolean}\n * @private\n */\n this.hash = null;\n\n /**\n * Current page number\n * @type {Number}\n * @private\n */\n this.pageNb = null;\n\n /**\n * Current page length\n * @type {Number}\n * @private\n */\n this.pageLength = null;\n\n /**\n * Current column sorting\n * @type {Object}\n * @private\n */\n this.sort = null;\n\n /**\n * Current hidden columns\n * @type {Object}\n * @private\n */\n this.hiddenCols = null;\n\n /**\n * Filters row visibility\n * @type {Boolean}\n * @private\n */\n this.filtersVisibility = null;\n\n /**\n * State object\n * @type {Object}\n * @private\n */\n this.state = {};\n\n /**\n * Prefix for column ID\n * @type {String}\n * @private\n */\n this.prfxCol = 'col_';\n\n /**\n * Prefix for page number ID\n * @type {String}\n * @private\n */\n this.pageNbKey = 'page';\n\n /**\n * Prefix for page length ID\n * @type {String}\n * @private\n */\n this.pageLengthKey = 'page_length';\n\n /**\n * Prefix for filters visibility ID\n * @type {String}\n * @private\n */\n this.filtersVisKey = 'filters_visibility';\n }\n\n /**\n * Initializes State instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n this.emitter.on(['after-filtering'], () => this.update());\n this.emitter.on(['after-page-change', 'after-clearing-filters'],\n (tf, pageNb) => this.updatePage(pageNb));\n this.emitter.on(['after-page-length-change'],\n (tf, pageLength) => this.updatePageLength(pageLength));\n this.emitter.on(['column-sorted'],\n (tf, index, descending) => this.updateSort(index, descending));\n this.emitter.on(['sort-initialized'], () => this._syncSort());\n this.emitter.on(['columns-visibility-initialized'],\n () => this._syncColsVisibility());\n this.emitter.on(['column-shown', 'column-hidden'], (tf, feature,\n colIndex, hiddenCols) => this.updateColsVisibility(hiddenCols));\n this.emitter.on(['filters-visibility-initialized'],\n () => this._syncFiltersVisibility());\n this.emitter.on(['filters-toggled'],\n (tf, extension, visible) => this.updateFiltersVisibility(visible));\n\n if (this.enableHash) {\n this.hash = new Hash(this);\n this.hash.init();\n }\n if (this.enableStorage) {\n this.storage = new Storage(this);\n this.storage.init();\n }\n\n /**\n * @inherited\n */\n this.initialized = true;\n }\n\n\n /**\n * Update state object based on current features state\n */\n update() {\n if (!this.isEnabled()) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n\n if (this.persistFilters) {\n let filterValues = tf.getFiltersValue();\n\n filterValues.forEach((val, idx) => {\n let key = `${this.prfxCol}${idx}`;\n\n if (isString(val) && isEmpty(val)) {\n if (state.hasOwnProperty(key)) {\n state[key].flt = undefined;\n }\n } else {\n state[key] = state[key] || {};\n state[key].flt = val;\n }\n });\n }\n\n if (this.persistPageNumber) {\n if (isNull(this.pageNb)) {\n state[this.pageNbKey] = undefined;\n } else {\n state[this.pageNbKey] = this.pageNb;\n }\n }\n\n if (this.persistPageLength) {\n if (isNull(this.pageLength)) {\n state[this.pageLengthKey] = undefined;\n } else {\n state[this.pageLengthKey] = this.pageLength;\n }\n }\n\n if (this.persistSort) {\n if (!isNull(this.sort)) {\n // Remove previuosly sorted column\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1 && state[key]) {\n state[key].sort = undefined;\n }\n });\n\n let key = `${this.prfxCol}${this.sort.column}`;\n state[key] = state[key] || {};\n state[key].sort = { descending: this.sort.descending };\n }\n }\n\n if (this.persistColsVisibility) {\n if (!isNull(this.hiddenCols)) {\n // Clear previuosly hidden columns\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1 && state[key]) {\n state[key].hidden = undefined;\n }\n });\n\n this.hiddenCols.forEach((colIdx) => {\n let key = `${this.prfxCol}${colIdx}`;\n state[key] = state[key] || {};\n state[key].hidden = true;\n });\n }\n }\n\n if (this.persistFiltersVisibility) {\n if (isNull(this.filtersVisibility)) {\n state[this.filtersVisKey] = undefined;\n } else {\n state[this.filtersVisKey] = this.filtersVisibility;\n }\n }\n\n this.emitter.emit('state-changed', tf, state);\n }\n\n /**\n * Refresh page number field on page number changes\n *\n * @param {Number} pageNb Current page number\n */\n updatePage(pageNb) {\n this.pageNb = pageNb;\n this.update();\n }\n\n /**\n * Refresh page length field on page length changes\n *\n * @param {Number} pageLength Current page length value\n */\n updatePageLength(pageLength) {\n this.pageLength = pageLength;\n this.update();\n }\n\n /**\n * Refresh column sorting information on sort changes\n *\n * @param index {Number} Column index\n * @param {Boolean} descending Descending manner\n */\n updateSort(index, descending) {\n this.sort = {\n column: index,\n descending: descending\n };\n this.update();\n }\n\n /**\n * Refresh hidden columns information on columns visibility changes\n *\n * @param {Array} hiddenCols Columns indexes\n */\n updateColsVisibility(hiddenCols) {\n this.hiddenCols = hiddenCols;\n this.update();\n }\n\n /**\n * Refresh filters visibility on filters visibility change\n *\n * @param {Boolean} visible Visibility flad\n */\n updateFiltersVisibility(visible) {\n this.filtersVisibility = visible;\n this.update();\n }\n\n /**\n * Override state field\n *\n * @param state State object\n */\n override(state) {\n this.state = state;\n }\n\n /**\n * Sync stored features state\n */\n sync() {\n let state = this.state;\n let tf = this.tf;\n\n this._syncFilters();\n\n if (this.persistPageNumber) {\n let pageNumber = state[this.pageNbKey];\n this.emitter.emit('change-page', tf, pageNumber);\n }\n\n if (this.persistPageLength) {\n let pageLength = state[this.pageLengthKey];\n this.emitter.emit('change-page-results', tf, pageLength);\n }\n\n this._syncSort();\n this._syncColsVisibility();\n this._syncFiltersVisibility();\n }\n\n /**\n * Override current state with passed one and sync features\n *\n * @param {Object} state State object\n */\n overrideAndSync(state) {\n // To prevent state to react to features changes, state is temporarily\n // disabled\n this.disable();\n // State is overriden with passed state object\n this.override(state);\n // New hash state is applied to features\n this.sync();\n // State is re-enabled\n this.enable();\n }\n\n /**\n * Sync filters with stored values and filter table\n *\n * @private\n */\n _syncFilters() {\n if (!this.persistFilters) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1) {\n let colIdx = parseInt(key.replace(this.prfxCol, ''), 10);\n let val = state[key].flt;\n tf.setFilterValue(colIdx, val);\n }\n });\n\n tf.filter();\n }\n\n /**\n * Sync sorted column with stored sorting information and sort table\n *\n * @private\n */\n _syncSort() {\n if (!this.persistSort) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1) {\n let colIdx = parseInt(key.replace(this.prfxCol, ''), 10);\n if (!isUndef(state[key].sort)) {\n let sort = state[key].sort;\n this.emitter.emit('sort', tf, colIdx, sort.descending);\n }\n }\n });\n }\n\n /**\n * Sync hidden columns with stored information\n *\n * @private\n */\n _syncColsVisibility() {\n if (!this.persistColsVisibility) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n let hiddenCols = [];\n\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1) {\n let colIdx = parseInt(key.replace(this.prfxCol, ''), 10);\n if (!isUndef(state[key].hidden)) {\n hiddenCols.push(colIdx);\n }\n }\n });\n\n hiddenCols.forEach((colIdx) => {\n this.emitter.emit('hide-column', tf, colIdx);\n });\n }\n\n /**\n * Sync filters visibility with stored information\n *\n * @private\n */\n _syncFiltersVisibility() {\n if (!this.persistFiltersVisibility) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n let filtersVisibility = state[this.filtersVisKey];\n\n this.filtersVisibility = filtersVisibility;\n this.emitter.emit('show-filters', tf, filtersVisibility);\n }\n\n /**\n * Destroy State instance\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n this.state = {};\n\n this.emitter.off(['after-filtering'], () => this.update());\n this.emitter.off(['after-page-change', 'after-clearing-filters'],\n (tf, pageNb) => this.updatePage(pageNb));\n this.emitter.off(['after-page-length-change'],\n (tf, index) => this.updatePageLength(index));\n this.emitter.off(['column-sorted'],\n (tf, index, descending) => this.updateSort(index, descending));\n this.emitter.off(['sort-initialized'], () => this._syncSort());\n this.emitter.off(['columns-visibility-initialized'],\n () => this._syncColsVisibility());\n this.emitter.off(['column-shown', 'column-hidden'], (tf, feature,\n colIndex, hiddenCols) => this.updateColsVisibility(hiddenCols));\n this.emitter.off(['filters-visibility-initialized'],\n () => this._syncFiltersVisibility());\n this.emitter.off(['filters-toggled'],\n (tf, extension, visible) => this.updateFiltersVisibility(visible));\n\n if (this.enableHash) {\n this.hash.destroy();\n this.hash = null;\n }\n\n if (this.enableStorage) {\n this.storage.destroy();\n this.storage = null;\n }\n\n this.initialized = false;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/state.js","import {addEvt, removeEvt} from '../event';\nimport {root} from '../root';\n\nconst JSON = root.JSON;\nconst location = root.location;\nconst decodeURIComponent = root.decodeURIComponent;\nconst encodeURIComponent = root.encodeURIComponent;\n\n/**\n * Checks if browser has onhashchange event\n */\nexport const hasHashChange = () => {\n let docMode = root.documentMode;\n return ('onhashchange' in root) && (docMode === undefined || docMode > 7);\n};\n\n/**\n * Manages state via URL hash changes\n *\n * @export\n * @class Hash\n */\nexport class Hash {\n\n /**\n * Creates an instance of Hash\n *\n * @param {State} state Instance of State\n */\n constructor(state) {\n /**\n * State object\n * @type {State}\n */\n this.state = state;\n\n /**\n * Cached URL hash\n * @type {String} Hash string\n * @private\n */\n this.lastHash = null;\n\n /**\n * Application event emitter instance\n * @type {Emitter}\n */\n this.emitter = state.emitter;\n\n /**\n * Bound sync wrapper for future use\n * @private\n */\n this.boundSync = null;\n }\n\n /**\n * Initializes the Hash object\n */\n init() {\n if (!hasHashChange()) {\n return;\n }\n\n this.lastHash = location.hash;\n //Store a bound sync wrapper\n this.boundSync = this.sync.bind(this);\n this.emitter.on(['state-changed'], (tf, state) => this.update(state));\n this.emitter.on(['initialized'], this.boundSync);\n addEvt(root, 'hashchange', this.boundSync);\n }\n\n /**\n * Updates the URL hash based on a state change\n *\n * @param {State} state Instance of State\n */\n update(state) {\n let hash = `#${encodeURIComponent(JSON.stringify(state))}`;\n if (this.lastHash === hash) {\n return;\n }\n\n location.hash = hash;\n this.lastHash = hash;\n }\n\n /**\n * Converts a URL hash into a state JSON object\n *\n * @param {String} hash URL hash fragment\n * @returns {Object} JSON object\n */\n parse(hash) {\n if (hash.indexOf('#') === -1) {\n return null;\n }\n hash = hash.substr(1);\n return JSON.parse(decodeURIComponent(hash));\n }\n\n /**\n * Applies current hash state to features\n */\n sync() {\n let state = this.parse(location.hash);\n if (!state) {\n return;\n }\n // override current state with persisted one and sync features\n this.state.overrideAndSync(state);\n }\n\n /**\n * Release Hash event subscriptions and clear fields\n */\n destroy() {\n this.emitter.off(['state-changed'], (tf, state) => this.update(state));\n this.emitter.off(['initialized'], this.boundSync);\n removeEvt(root, 'hashchange', this.boundSync);\n\n this.state = null;\n this.lastHash = null;\n this.emitter = null;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/hash.js","\nimport Cookie from '../cookie';\nimport {root} from '../root';\n\nconst JSON = root.JSON;\nconst localStorage = root.localStorage;\nconst location = root.location;\n\n/**\n * Checks if browser has Storage feature\n */\nexport const hasStorage = () => {\n return 'Storage' in root;\n};\n\n/**\n * Stores the features state in browser's local storage or cookie\n *\n * @export\n * @class Storage\n */\nexport class Storage {\n\n /**\n * Creates an instance of Storage\n *\n * @param {State} state Instance of State\n */\n constructor(state) {\n\n /**\n * State object\n * @type {State}\n * @private\n */\n this.state = state;\n\n /**\n * TableFilter object\n * @type {TableFilter}\n * @private\n */\n this.tf = state.tf;\n\n /**\n * Persist with local storage\n * @type {Boolean}\n * @private\n */\n this.enableLocalStorage = state.enableLocalStorage && hasStorage();\n\n /**\n * Persist with cookie\n * @type {Boolean}\n * @private\n */\n this.enableCookie = state.enableCookie && !this.enableLocalStorage;\n\n /**\n * Emitter object\n * @type {Emitter}\n * @private\n */\n this.emitter = state.emitter;\n\n /**\n * Cookie duration in hours from state object\n * @type {Number}\n * @private\n */\n this.duration = state.cookieDuration;\n }\n\n\n /**\n * Initializes the Storage object\n */\n init() {\n this.emitter.on(['state-changed'], (tf, state) => this.save(state));\n this.emitter.on(['initialized'], () => this.sync());\n }\n\n /**\n * Persists the features state on state changes\n *\n * @param {State} state Instance of State\n */\n save(state) {\n if (this.enableLocalStorage) {\n localStorage[this.getKey()] = JSON.stringify(state);\n } else {\n Cookie.write(this.getKey(), JSON.stringify(state), this.duration);\n }\n }\n\n /**\n * Turns stored string into a State JSON object\n *\n * @returns {Object} JSON object\n */\n retrieve() {\n let state = null;\n if (this.enableLocalStorage) {\n state = localStorage[this.getKey()];\n } else {\n state = Cookie.read(this.getKey());\n }\n\n if (!state) {\n return null;\n }\n return JSON.parse(state);\n }\n\n /**\n * Removes persisted state from storage\n */\n remove() {\n if (this.enableLocalStorage) {\n localStorage.removeItem(this.getKey());\n } else {\n Cookie.remove(this.getKey());\n }\n }\n\n /**\n * Applies persisted state to features\n */\n sync() {\n let state = this.retrieve();\n if (!state) {\n return;\n }\n // override current state with persisted one and sync features\n this.state.overrideAndSync(state);\n }\n\n /**\n * Returns the storage key\n *\n * @returns {String} Key\n */\n getKey() {\n return JSON.stringify({\n key: `${this.tf.prfxTf}_${this.tf.id}`,\n path: location.pathname\n });\n }\n\n /**\n * Release Storage event subscriptions and clear fields\n */\n destroy() {\n this.emitter.off(['state-changed'], (tf, state) => this.save(state));\n this.emitter.off(['initialized'], () => this.sync());\n\n this.remove();\n\n this.state = null;\n this.emitter = null;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/storage.js","import {root} from './root';\n\n/**\n * Cookie utilities\n */\n\nconst doc = root.document;\n\nexport default {\n\n /**\n * Write a cookie\n * @param {String} name Name of the cookie\n * @param {String} value Value of the cookie\n * @param {Number} hours Cookie duration in hours\n */\n write(name, value, hours) {\n let expire = '';\n if (hours) {\n expire = new Date((new Date()).getTime() + hours * 3600000);\n expire = '; expires=' + expire.toGMTString();\n }\n doc.cookie = name + '=' + escape(value) + expire;\n },\n\n /**\n * Read a cookie\n * @param {String} name Name of the cookie\n * @returns {String} Value of the cookie\n */\n read(name) {\n let cookieValue = '',\n search = name + '=';\n if (doc.cookie.length > 0) {\n let cookie = doc.cookie,\n offset = cookie.indexOf(search);\n if (offset !== -1) {\n offset += search.length;\n let end = cookie.indexOf(';', offset);\n if (end === -1) {\n end = cookie.length;\n }\n cookieValue = unescape(cookie.substring(offset, end));\n }\n }\n return cookieValue;\n },\n\n /**\n * Remove a cookie\n * @param {String} name Name of the cookie\n */\n remove(name) {\n this.write(name, '', -1);\n }\n\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/cookie.js","import {Date as SugarDate} from 'sugar-date';\nimport 'sugar-date/locales';\nimport {Feature} from '../feature';\nimport {isObj, isArray} from '../types';\nimport {DATE} from '../const';\nimport {root} from '../root';\n\n/**\n * Wrapper for Sugar Date module providing datetime helpers and locales\n * @export\n * @class DateType\n */\nexport class DateType extends Feature {\n\n /**\n * Creates an instance of DateType\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'dateType');\n\n /**\n * Global locale\n * @type {String}\n */\n this.locale = tf.locale;\n\n /**\n * Sugar Date instance\n * @type {Object}\n */\n this.datetime = SugarDate;\n\n this.enable();\n }\n\n /**\n * Initialize DateType instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n // Set global locale\n this.datetime.setLocale(this.locale);\n\n // Add formats from column types configuration if any\n this.addConfigFormats(this.tf.colTypes);\n\n this.emitter.on(\n ['add-date-type-formats'],\n (tf, types) => this.addConfigFormats(types)\n );\n\n // Broadcast date-type initialization\n this.emitter.emit('date-type-initialized', this.tf, this);\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Parse a string representation of a date for a specified locale and return\n * a date object\n * @param {String} dateStr String representation of a date\n * @param {String} localeCode Locale code (ie 'en-us')\n * @returns {Date}\n */\n parse(dateStr, localeCode) {\n return this.datetime.create(dateStr, localeCode);\n }\n\n /**\n * Check string representation of a date for a specified locale is valid\n * @param {any} dateStr String representation of a date\n * @param {any} localeCode Locale code (ie 'en-us')\n * @returns {Boolean}\n */\n isValid(dateStr, localeCode) {\n return this.datetime.isValid(this.parse(dateStr, localeCode));\n }\n\n /**\n * Return the type object of a specified column as per configuration or\n * passed collection\n * @param {Number} colIndex Column index\n * @param {Array} types Collection of column types, optional\n * @returns {Object}\n */\n getOptions(colIndex, types) {\n types = types || this.tf.colTypes;\n let colType = types[colIndex];\n return isObj(colType) ? colType : {};\n }\n\n /**\n * Add date time format(s) to a locale as specified by the passed\n * collection of column types, ie:\n * [\n * 'string',\n * 'number',\n * { type: 'date', locale: 'en', format: ['{dd}/{MM}/{yyyy}']}\n * ]\n *\n * @param {Array} [types=[]] Collection of column types\n */\n addConfigFormats(types=[]) {\n types.forEach((type, idx) => {\n let options = this.getOptions(idx, types);\n if (options.type === DATE && options.hasOwnProperty('format')) {\n let locale = this.datetime.getLocale(\n options.locale || this.locale\n );\n let formats = isArray(options.format) ?\n options.format : [options.format];\n\n // Sugar date module throws exceptions with locale.addFormat\n try {\n formats.forEach((format) => {\n locale.addFormat(format);\n });\n } catch (ex) {\n root.console.error(ex);\n }\n }\n });\n }\n\n /**\n * Remove DateType instance\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n // TODO: remove added formats\n\n this.emitter.off(\n ['add-date-type-formats'],\n (tf, types) => this.addConfigFormats(types)\n );\n\n this.initialized = false;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/dateType.js","'use strict';\n\nrequire('./date');\nrequire('./range');\n\nmodule.exports = require('sugar-core');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/index.js\n// module id = 31\n// module chunks = 0","'use strict';\n\n// Static Methods\nrequire('./addLocale');\nrequire('./create');\nrequire('./getAllLocaleCodes');\nrequire('./getAllLocales');\nrequire('./getLocale');\nrequire('./removeLocale');\nrequire('./setLocale');\n\n// Instance Methods\nrequire('../number/day');\nrequire('../number/dayAfter');\nrequire('../number/dayAgo');\nrequire('../number/dayBefore');\nrequire('../number/dayFromNow');\nrequire('../number/days');\nrequire('../number/daysAfter');\nrequire('../number/daysAgo');\nrequire('../number/daysBefore');\nrequire('../number/daysFromNow');\nrequire('../number/duration');\nrequire('../number/hour');\nrequire('../number/hourAfter');\nrequire('../number/hourAgo');\nrequire('../number/hourBefore');\nrequire('../number/hourFromNow');\nrequire('../number/hours');\nrequire('../number/hoursAfter');\nrequire('../number/hoursAgo');\nrequire('../number/hoursBefore');\nrequire('../number/hoursFromNow');\nrequire('../number/millisecond');\nrequire('../number/millisecondAfter');\nrequire('../number/millisecondAgo');\nrequire('../number/millisecondBefore');\nrequire('../number/millisecondFromNow');\nrequire('../number/milliseconds');\nrequire('../number/millisecondsAfter');\nrequire('../number/millisecondsAgo');\nrequire('../number/millisecondsBefore');\nrequire('../number/millisecondsFromNow');\nrequire('../number/minute');\nrequire('../number/minuteAfter');\nrequire('../number/minuteAgo');\nrequire('../number/minuteBefore');\nrequire('../number/minuteFromNow');\nrequire('../number/minutes');\nrequire('../number/minutesAfter');\nrequire('../number/minutesAgo');\nrequire('../number/minutesBefore');\nrequire('../number/minutesFromNow');\nrequire('../number/month');\nrequire('../number/monthAfter');\nrequire('../number/monthAgo');\nrequire('../number/monthBefore');\nrequire('../number/monthFromNow');\nrequire('../number/months');\nrequire('../number/monthsAfter');\nrequire('../number/monthsAgo');\nrequire('../number/monthsBefore');\nrequire('../number/monthsFromNow');\nrequire('../number/second');\nrequire('../number/secondAfter');\nrequire('../number/secondAgo');\nrequire('../number/secondBefore');\nrequire('../number/secondFromNow');\nrequire('../number/seconds');\nrequire('../number/secondsAfter');\nrequire('../number/secondsAgo');\nrequire('../number/secondsBefore');\nrequire('../number/secondsFromNow');\nrequire('../number/week');\nrequire('../number/weekAfter');\nrequire('../number/weekAgo');\nrequire('../number/weekBefore');\nrequire('../number/weekFromNow');\nrequire('../number/weeks');\nrequire('../number/weeksAfter');\nrequire('../number/weeksAgo');\nrequire('../number/weeksBefore');\nrequire('../number/weeksFromNow');\nrequire('../number/year');\nrequire('../number/yearAfter');\nrequire('../number/yearAgo');\nrequire('../number/yearBefore');\nrequire('../number/yearFromNow');\nrequire('../number/years');\nrequire('../number/yearsAfter');\nrequire('../number/yearsAgo');\nrequire('../number/yearsBefore');\nrequire('../number/yearsFromNow');\nrequire('./addDays');\nrequire('./addHours');\nrequire('./addMilliseconds');\nrequire('./addMinutes');\nrequire('./addMonths');\nrequire('./addSeconds');\nrequire('./addWeeks');\nrequire('./addYears');\nrequire('./advance');\nrequire('./beginningOfDay');\nrequire('./beginningOfISOWeek');\nrequire('./beginningOfMonth');\nrequire('./beginningOfWeek');\nrequire('./beginningOfYear');\nrequire('./clone');\nrequire('./daysAgo');\nrequire('./daysFromNow');\nrequire('./daysInMonth');\nrequire('./daysSince');\nrequire('./daysUntil');\nrequire('./endOfDay');\nrequire('./endOfISOWeek');\nrequire('./endOfMonth');\nrequire('./endOfWeek');\nrequire('./endOfYear');\nrequire('./format');\nrequire('./get');\nrequire('./getISOWeek');\nrequire('./getUTCOffset');\nrequire('./getUTCWeekday');\nrequire('./getWeekday');\nrequire('./hoursAgo');\nrequire('./hoursFromNow');\nrequire('./hoursSince');\nrequire('./hoursUntil');\nrequire('./is');\nrequire('./isAfter');\nrequire('./isBefore');\nrequire('./isBetween');\nrequire('./isFriday');\nrequire('./isFuture');\nrequire('./isLastMonth');\nrequire('./isLastWeek');\nrequire('./isLastYear');\nrequire('./isLeapYear');\nrequire('./isMonday');\nrequire('./isNextMonth');\nrequire('./isNextWeek');\nrequire('./isNextYear');\nrequire('./isPast');\nrequire('./isSaturday');\nrequire('./isSunday');\nrequire('./isThisMonth');\nrequire('./isThisWeek');\nrequire('./isThisYear');\nrequire('./isThursday');\nrequire('./isToday');\nrequire('./isTomorrow');\nrequire('./isTuesday');\nrequire('./isUTC');\nrequire('./isValid');\nrequire('./isWednesday');\nrequire('./isWeekday');\nrequire('./isWeekend');\nrequire('./isYesterday');\nrequire('./iso');\nrequire('./millisecondsAgo');\nrequire('./millisecondsFromNow');\nrequire('./millisecondsSince');\nrequire('./millisecondsUntil');\nrequire('./minutesAgo');\nrequire('./minutesFromNow');\nrequire('./minutesSince');\nrequire('./minutesUntil');\nrequire('./monthsAgo');\nrequire('./monthsFromNow');\nrequire('./monthsSince');\nrequire('./monthsUntil');\nrequire('./relative');\nrequire('./relativeTo');\nrequire('./reset');\nrequire('./rewind');\nrequire('./secondsAgo');\nrequire('./secondsFromNow');\nrequire('./secondsSince');\nrequire('./secondsUntil');\nrequire('./set');\nrequire('./setISOWeek');\nrequire('./setUTC');\nrequire('./setWeekday');\nrequire('./weeksAgo');\nrequire('./weeksFromNow');\nrequire('./weeksSince');\nrequire('./weeksUntil');\nrequire('./yearsAgo');\nrequire('./yearsFromNow');\nrequire('./yearsSince');\nrequire('./yearsUntil');\n\n// Accessors\nrequire('./getOption');\nrequire('./setOption');\n\nmodule.exports = require('sugar-core');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/index.js\n// module id = 32\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('./var/LocaleHelpers');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Date.defineStatic({\n\n 'addLocale': function(code, set) {\n return localeManager.add(code, set);\n }\n\n});\n\nmodule.exports = Sugar.Date.addLocale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addLocale.js\n// module id = 33\n// module chunks = 0","/*\n * Sugar v2.0.0\n *\n * Freely distributable and licensed under the MIT-style license.\n * Copyright (c) Andrew Plummer\n * https://sugarjs.com/\n *\n * ---------------------------- */\n(function() {\n 'use strict';\n\n /***\n * @module Core\n * @description Core functionality including the ability to define methods and\n * extend onto natives.\n *\n ***/\n\n // The global to export.\n var Sugar;\n\n // The name of Sugar in the global namespace.\n var SUGAR_GLOBAL = 'Sugar';\n\n // Natives available on initialization. Letting Object go first to ensure its\n // global is set by the time the rest are checking for chainable Object methods.\n var NATIVE_NAMES = 'Object Number String Array Date RegExp Function';\n\n // Static method flag\n var STATIC = 0x1;\n\n // Instance method flag\n var INSTANCE = 0x2;\n\n // IE8 has a broken defineProperty but no defineProperties so this saves a try/catch.\n var PROPERTY_DESCRIPTOR_SUPPORT = !!(Object.defineProperty && Object.defineProperties);\n\n // The global context. Rhino uses a different \"global\" keyword so\n // do an extra check to be sure that it's actually the global context.\n var globalContext = typeof global !== 'undefined' && global.Object === Object ? global : this;\n\n // Is the environment node?\n var hasExports = typeof module !== 'undefined' && module.exports;\n\n // Whether object instance methods can be mapped to the prototype.\n var allowObjectPrototype = false;\n\n // A map from Array to SugarArray.\n var namespacesByName = {};\n\n // A map from [object Object] to namespace.\n var namespacesByClassString = {};\n\n // Defining properties.\n var defineProperty = PROPERTY_DESCRIPTOR_SUPPORT ? Object.defineProperty : definePropertyShim;\n\n // A default chainable class for unknown types.\n var DefaultChainable = getNewChainableClass('Chainable');\n\n\n // Global methods\n\n function setupGlobal() {\n Sugar = globalContext[SUGAR_GLOBAL];\n if (Sugar) {\n // Reuse already defined Sugar global object.\n return;\n }\n Sugar = function(arg) {\n forEachProperty(Sugar, function(sugarNamespace, name) {\n // Although only the only enumerable properties on the global\n // object are Sugar namespaces, environments that can't set\n // non-enumerable properties will step through the utility methods\n // as well here, so use this check to only allow true namespaces.\n if (hasOwn(namespacesByName, name)) {\n sugarNamespace.extend(arg);\n }\n });\n return Sugar;\n };\n if (hasExports) {\n module.exports = Sugar;\n } else {\n try {\n globalContext[SUGAR_GLOBAL] = Sugar;\n } catch (e) {\n // Contexts such as QML have a read-only global context.\n }\n }\n forEachProperty(NATIVE_NAMES.split(' '), function(name) {\n createNamespace(name);\n });\n setGlobalProperties();\n }\n\n /***\n * @method createNamespace()\n * @returns Namespace\n * @global\n * @short Creates a new Sugar namespace.\n * @extra This method is for plugin developers who want to define methods to be\n * used with natives that Sugar does not handle by default. The new\n * namespace will appear on the `Sugar` global with all the methods of\n * normal namespaces, including the ability to define new methods. When\n * extended, any defined methods will be mapped to `name` in the global\n * context.\n *\n * @example\n *\n * Sugar.createNamespace('Boolean');\n *\n ***/\n function createNamespace(name) {\n\n // Is the current namespace Object?\n var isObject = name === 'Object';\n\n // A Sugar namespace is also a chainable class: Sugar.Array, etc.\n var sugarNamespace = getNewChainableClass(name, true);\n\n /***\n * @method extend([options])\n * @returns Sugar\n * @global\n * @namespace\n * @short Extends Sugar defined methods onto natives.\n * @extra This method can be called on individual namespaces like\n * `Sugar.Array` or on the `Sugar` global itself, in which case\n * [options] will be forwarded to each `extend` call. For more,\n * see `extending`.\n *\n * @options\n *\n * methods An array of method names to explicitly extend.\n *\n * except An array of method names or global namespaces (`Array`,\n * `String`) to explicitly exclude. Namespaces should be the\n * actual global objects, not strings.\n *\n * namespaces An array of global namespaces (`Array`, `String`) to\n * explicitly extend. Namespaces should be the actual\n * global objects, not strings.\n *\n * enhance A shortcut to disallow all \"enhance\" flags at once\n * (flags listed below). For more, see `enhanced methods`.\n * Default is `true`.\n *\n * enhanceString A boolean allowing String enhancements. Default is `true`.\n *\n * enhanceArray A boolean allowing Array enhancements. Default is `true`.\n *\n * objectPrototype A boolean allowing Sugar to extend Object.prototype\n * with instance methods. This option is off by default\n * and should generally not be used except with caution.\n * For more, see `object methods`.\n *\n * @example\n *\n * Sugar.Array.extend();\n * Sugar.extend();\n *\n ***/\n var extend = function (opts) {\n\n var nativeClass = globalContext[name], nativeProto = nativeClass.prototype;\n var staticMethods = {}, instanceMethods = {}, methodsByName;\n\n function objectRestricted(name, target) {\n return isObject && target === nativeProto &&\n (!allowObjectPrototype || name === 'get' || name === 'set');\n }\n\n function arrayOptionExists(field, val) {\n var arr = opts[field];\n if (arr) {\n for (var i = 0, el; el = arr[i]; i++) {\n if (el === val) {\n return true;\n }\n }\n }\n return false;\n }\n\n function arrayOptionExcludes(field, val) {\n return opts[field] && !arrayOptionExists(field, val);\n }\n\n function disallowedByFlags(methodName, target, flags) {\n // Disallowing methods by flag currently only applies if methods already\n // exist to avoid enhancing native methods, as aliases should still be\n // extended (i.e. Array#all should still be extended even if Array#every\n // is being disallowed by a flag).\n if (!target[methodName] || !flags) {\n return false;\n }\n for (var i = 0; i < flags.length; i++) {\n if (opts[flags[i]] === false) {\n return true;\n }\n }\n }\n\n function namespaceIsExcepted() {\n return arrayOptionExists('except', nativeClass) ||\n arrayOptionExcludes('namespaces', nativeClass);\n }\n\n function methodIsExcepted(methodName) {\n return arrayOptionExists('except', methodName);\n }\n\n function canExtend(methodName, method, target) {\n return !objectRestricted(methodName, target) &&\n !disallowedByFlags(methodName, target, method.flags) &&\n !methodIsExcepted(methodName);\n }\n\n opts = opts || {};\n methodsByName = opts.methods;\n\n if (namespaceIsExcepted()) {\n return;\n } else if (isObject && typeof opts.objectPrototype === 'boolean') {\n // Store \"objectPrototype\" flag for future reference.\n allowObjectPrototype = opts.objectPrototype;\n }\n\n forEachProperty(methodsByName || sugarNamespace, function(method, methodName) {\n if (methodsByName) {\n // If we have method names passed in an array,\n // then we need to flip the key and value here\n // and find the method in the Sugar namespace.\n methodName = method;\n method = sugarNamespace[methodName];\n }\n if (hasOwn(method, 'instance') && canExtend(methodName, method, nativeProto)) {\n instanceMethods[methodName] = method.instance;\n }\n if(hasOwn(method, 'static') && canExtend(methodName, method, nativeClass)) {\n staticMethods[methodName] = method;\n }\n });\n\n // Accessing the extend target each time instead of holding a reference as\n // it may have been overwritten (for example Date by Sinon). Also need to\n // access through the global to allow extension of user-defined namespaces.\n extendNative(nativeClass, staticMethods);\n extendNative(nativeProto, instanceMethods);\n\n if (!methodsByName) {\n // If there are no method names passed, then\n // all methods in the namespace will be extended\n // to the native. This includes all future defined\n // methods, so add a flag here to check later.\n setProperty(sugarNamespace, 'active', true);\n }\n return Sugar;\n };\n\n function defineWithOptionCollect(methodName, instance, args) {\n setProperty(sugarNamespace, methodName, function(arg1, arg2, arg3) {\n var opts = collectDefineOptions(arg1, arg2, arg3);\n defineMethods(sugarNamespace, opts.methods, instance, args, opts.last);\n return sugarNamespace;\n });\n }\n\n /***\n * @method defineStatic(...)\n * @returns Namespace\n * @namespace\n * @short Defines static methods on the namespace that can later be extended\n * onto the native globals.\n * @extra Accepts either a single object mapping names to functions, or name\n * and function as two arguments. If `extend` was previously called\n * with no arguments, the method will be immediately mapped to its\n * native when defined.\n *\n * @example\n *\n * Sugar.Number.defineStatic({\n * isOdd: function (num) {\n * return num % 2 === 1;\n * }\n * });\n *\n ***/\n defineWithOptionCollect('defineStatic', STATIC);\n\n /***\n * @method defineInstance(...)\n * @returns Namespace\n * @namespace\n * @short Defines methods on the namespace that can later be extended as\n * instance methods onto the native prototype.\n * @extra Accepts either a single object mapping names to functions, or name\n * and function as two arguments. All functions should accept the\n * native for which they are mapped as their first argument, and should\n * never refer to `this`. If `extend` was previously called with no\n * arguments, the method will be immediately mapped to its native when\n * defined.\n *\n * Methods cannot accept more than 4 arguments in addition to the\n * native (5 arguments total). Any additional arguments will not be\n * mapped. If the method needs to accept unlimited arguments, use\n * `defineInstanceWithArguments`. Otherwise if more options are\n * required, use an options object instead.\n *\n * @example\n *\n * Sugar.Number.defineInstance({\n * square: function (num) {\n * return num * num;\n * }\n * });\n *\n ***/\n defineWithOptionCollect('defineInstance', INSTANCE);\n\n /***\n * @method defineInstanceAndStatic(...)\n * @returns Namespace\n * @namespace\n * @short A shortcut to define both static and instance methods on the namespace.\n * @extra This method is intended for use with `Object` instance methods. Sugar\n * will not map any methods to `Object.prototype` by default, so defining\n * instance methods as static helps facilitate their proper use.\n *\n * @example\n *\n * Sugar.Object.defineInstanceAndStatic({\n * isAwesome: function (obj) {\n * // check if obj is awesome!\n * }\n * });\n *\n ***/\n defineWithOptionCollect('defineInstanceAndStatic', INSTANCE | STATIC);\n\n\n /***\n * @method defineStaticWithArguments(...)\n * @returns Namespace\n * @namespace\n * @short Defines static methods that collect arguments.\n * @extra This method is identical to `defineStatic`, except that when defined\n * methods are called, they will collect any arguments past `n - 1`,\n * where `n` is the number of arguments that the method accepts.\n * Collected arguments will be passed to the method in an array\n * as the last argument defined on the function.\n *\n * @example\n *\n * Sugar.Number.defineStaticWithArguments({\n * addAll: function (num, args) {\n * for (var i = 0; i < args.length; i++) {\n * num += args[i];\n * }\n * return num;\n * }\n * });\n *\n ***/\n defineWithOptionCollect('defineStaticWithArguments', STATIC, true);\n\n /***\n * @method defineInstanceWithArguments(...)\n * @returns Namespace\n * @namespace\n * @short Defines instance methods that collect arguments.\n * @extra This method is identical to `defineInstance`, except that when\n * defined methods are called, they will collect any arguments past\n * `n - 1`, where `n` is the number of arguments that the method\n * accepts. Collected arguments will be passed to the method as the\n * last argument defined on the function.\n *\n * @example\n *\n * Sugar.Number.defineInstanceWithArguments({\n * addAll: function (num, args) {\n * for (var i = 0; i < args.length; i++) {\n * num += args[i];\n * }\n * return num;\n * }\n * });\n *\n ***/\n defineWithOptionCollect('defineInstanceWithArguments', INSTANCE, true);\n\n /***\n * @method defineStaticPolyfill(...)\n * @returns Namespace\n * @namespace\n * @short Defines static methods that are mapped onto the native if they do\n * not already exist.\n * @extra Intended only for use creating polyfills that follow the ECMAScript\n * spec. Accepts either a single object mapping names to functions, or\n * name and function as two arguments.\n *\n * @example\n *\n * Sugar.Object.defineStaticPolyfill({\n * keys: function (obj) {\n * // get keys!\n * }\n * });\n *\n ***/\n setProperty(sugarNamespace, 'defineStaticPolyfill', function(arg1, arg2, arg3) {\n var opts = collectDefineOptions(arg1, arg2, arg3);\n extendNative(globalContext[name], opts.methods, true, opts.last);\n });\n\n /***\n * @method defineInstancePolyfill(...)\n * @returns Namespace\n * @namespace\n * @short Defines instance methods that are mapped onto the native prototype\n * if they do not already exist.\n * @extra Intended only for use creating polyfills that follow the ECMAScript\n * spec. Accepts either a single object mapping names to functions, or\n * name and function as two arguments. This method differs from\n * `defineInstance` as there is no static signature (as the method\n * is mapped as-is to the native), so it should refer to its `this`\n * object.\n *\n * @example\n *\n * Sugar.Array.defineInstancePolyfill({\n * indexOf: function (arr, el) {\n * // index finding code here!\n * }\n * });\n *\n ***/\n setProperty(sugarNamespace, 'defineInstancePolyfill', function(arg1, arg2, arg3) {\n var opts = collectDefineOptions(arg1, arg2, arg3);\n extendNative(globalContext[name].prototype, opts.methods, true, opts.last);\n // Map instance polyfills to chainable as well.\n forEachProperty(opts.methods, function(fn, methodName) {\n defineChainableMethod(sugarNamespace, methodName, fn);\n });\n });\n\n /***\n * @method alias(, )\n * @returns Namespace\n * @namespace\n * @short Aliases one Sugar method to another.\n *\n * @example\n *\n * Sugar.Array.alias('all', 'every');\n *\n ***/\n setProperty(sugarNamespace, 'alias', function(name, source) {\n var method = typeof source === 'string' ? sugarNamespace[source] : source;\n setMethod(sugarNamespace, name, method);\n });\n\n // Each namespace can extend only itself through its .extend method.\n setProperty(sugarNamespace, 'extend', extend);\n\n // Cache the class to namespace relationship for later use.\n namespacesByName[name] = sugarNamespace;\n namespacesByClassString['[object ' + name + ']'] = sugarNamespace;\n\n mapNativeToChainable(name);\n mapObjectChainablesToNamespace(sugarNamespace);\n\n\n // Export\n return Sugar[name] = sugarNamespace;\n }\n\n function setGlobalProperties() {\n setProperty(Sugar, 'extend', Sugar);\n setProperty(Sugar, 'toString', toString);\n setProperty(Sugar, 'createNamespace', createNamespace);\n\n setProperty(Sugar, 'util', {\n 'hasOwn': hasOwn,\n 'getOwn': getOwn,\n 'setProperty': setProperty,\n 'classToString': classToString,\n 'defineProperty': defineProperty,\n 'forEachProperty': forEachProperty,\n 'mapNativeToChainable': mapNativeToChainable\n });\n }\n\n function toString() {\n return SUGAR_GLOBAL;\n }\n\n\n // Defining Methods\n\n function defineMethods(sugarNamespace, methods, type, args, flags) {\n forEachProperty(methods, function(method, methodName) {\n var instanceMethod, staticMethod = method;\n if (args) {\n staticMethod = wrapMethodWithArguments(method);\n }\n if (flags) {\n staticMethod.flags = flags;\n }\n\n // A method may define its own custom implementation, so\n // make sure that's not the case before creating one.\n if (type & INSTANCE && !method.instance) {\n instanceMethod = wrapInstanceMethod(method, args);\n setProperty(staticMethod, 'instance', instanceMethod);\n }\n\n if (type & STATIC) {\n setProperty(staticMethod, 'static', true);\n }\n\n setMethod(sugarNamespace, methodName, staticMethod);\n\n if (sugarNamespace.active) {\n // If the namespace has been activated (.extend has been called),\n // then map this method as well.\n sugarNamespace.extend(methodName);\n }\n });\n }\n\n function collectDefineOptions(arg1, arg2, arg3) {\n var methods, last;\n if (typeof arg1 === 'string') {\n methods = {};\n methods[arg1] = arg2;\n last = arg3;\n } else {\n methods = arg1;\n last = arg2;\n }\n return {\n last: last,\n methods: methods\n };\n }\n\n function wrapInstanceMethod(fn, args) {\n return args ? wrapMethodWithArguments(fn, true) : wrapInstanceMethodFixed(fn);\n }\n\n function wrapMethodWithArguments(fn, instance) {\n // Functions accepting enumerated arguments will always have \"args\" as the\n // last argument, so subtract one from the function length to get the point\n // at which to start collecting arguments. If this is an instance method on\n // a prototype, then \"this\" will be pushed into the arguments array so start\n // collecting 1 argument earlier.\n var startCollect = fn.length - 1 - (instance ? 1 : 0);\n return function() {\n var args = [], collectedArgs = [], len;\n if (instance) {\n args.push(this);\n }\n len = Math.max(arguments.length, startCollect);\n // Optimized: no leaking arguments\n for (var i = 0; i < len; i++) {\n if (i < startCollect) {\n args.push(arguments[i]);\n } else {\n collectedArgs.push(arguments[i]);\n }\n }\n args.push(collectedArgs);\n return fn.apply(this, args);\n };\n }\n\n function wrapInstanceMethodFixed(fn) {\n switch(fn.length) {\n // Wrapped instance methods will always be passed the instance\n // as the first argument, but requiring the argument to be defined\n // may cause confusion here, so return the same wrapped function regardless.\n case 0:\n case 1:\n return function() {\n return fn(this);\n };\n case 2:\n return function(a) {\n return fn(this, a);\n };\n case 3:\n return function(a, b) {\n return fn(this, a, b);\n };\n case 4:\n return function(a, b, c) {\n return fn(this, a, b, c);\n };\n case 5:\n return function(a, b, c, d) {\n return fn(this, a, b, c, d);\n };\n }\n }\n\n // Method helpers\n\n function extendNative(target, source, polyfill, override) {\n forEachProperty(source, function(method, name) {\n if (polyfill && !override && target[name]) {\n // Method exists, so bail.\n return;\n }\n setProperty(target, name, method);\n });\n }\n\n function setMethod(sugarNamespace, methodName, method) {\n sugarNamespace[methodName] = method;\n if (method.instance) {\n defineChainableMethod(sugarNamespace, methodName, method.instance, true);\n }\n }\n\n\n // Chainables\n\n function getNewChainableClass(name) {\n var fn = function SugarChainable(obj, arg) {\n if (!(this instanceof fn)) {\n return new fn(obj, arg);\n }\n if (this.constructor !== fn) {\n // Allow modules to define their own constructors.\n obj = this.constructor.apply(obj, arguments);\n }\n this.raw = obj;\n };\n setProperty(fn, 'toString', function() {\n return SUGAR_GLOBAL + name;\n });\n setProperty(fn.prototype, 'valueOf', function() {\n return this.raw;\n });\n return fn;\n }\n\n function defineChainableMethod(sugarNamespace, methodName, fn) {\n var wrapped = wrapWithChainableResult(fn), existing, collision, dcp;\n dcp = DefaultChainable.prototype;\n existing = dcp[methodName];\n\n // If the method was previously defined on the default chainable, then a\n // collision exists, so set the method to a disambiguation function that will\n // lazily evaluate the object and find it's associated chainable. An extra\n // check is required to avoid false positives from Object inherited methods.\n collision = existing && existing !== Object.prototype[methodName];\n\n // The disambiguation function is only required once.\n if (!existing || !existing.disambiguate) {\n dcp[methodName] = collision ? disambiguateMethod(methodName) : wrapped;\n }\n\n // The target chainable always receives the wrapped method. Additionally,\n // if the target chainable is Sugar.Object, then map the wrapped method\n // to all other namespaces as well if they do not define their own method\n // of the same name. This way, a Sugar.Number will have methods like\n // isEqual that can be called on any object without having to traverse up\n // the prototype chain and perform disambiguation, which costs cycles.\n // Note that the \"if\" block below actually does nothing on init as Object\n // goes first and no other namespaces exist yet. However it needs to be\n // here as Object instance methods defined later also need to be mapped\n // back onto existing namespaces.\n sugarNamespace.prototype[methodName] = wrapped;\n if (sugarNamespace === Sugar.Object) {\n mapObjectChainableToAllNamespaces(methodName, wrapped);\n }\n }\n\n function mapObjectChainablesToNamespace(sugarNamespace) {\n forEachProperty(Sugar.Object && Sugar.Object.prototype, function(val, methodName) {\n if (typeof val === 'function') {\n setObjectChainableOnNamespace(sugarNamespace, methodName, val);\n }\n });\n }\n\n function mapObjectChainableToAllNamespaces(methodName, fn) {\n forEachProperty(namespacesByName, function(sugarNamespace) {\n setObjectChainableOnNamespace(sugarNamespace, methodName, fn);\n });\n }\n\n function setObjectChainableOnNamespace(sugarNamespace, methodName, fn) {\n var proto = sugarNamespace.prototype;\n if (!hasOwn(proto, methodName)) {\n proto[methodName] = fn;\n }\n }\n\n function wrapWithChainableResult(fn) {\n return function() {\n return new DefaultChainable(fn.apply(this.raw, arguments));\n };\n }\n\n function disambiguateMethod(methodName) {\n var fn = function() {\n var raw = this.raw, sugarNamespace, fn;\n if (raw != null) {\n // Find the Sugar namespace for this unknown.\n sugarNamespace = namespacesByClassString[classToString(raw)];\n }\n if (!sugarNamespace) {\n // If no sugarNamespace can be resolved, then default\n // back to Sugar.Object so that undefined and other\n // non-supported types can still have basic object\n // methods called on them, such as type checks.\n sugarNamespace = Sugar.Object;\n }\n\n fn = new sugarNamespace(raw)[methodName];\n\n if (fn.disambiguate) {\n // If the method about to be called on this chainable is\n // itself a disambiguation method, then throw an error to\n // prevent infinite recursion.\n throw new TypeError('Cannot resolve namespace for ' + raw);\n }\n\n return fn.apply(this, arguments);\n };\n fn.disambiguate = true;\n return fn;\n }\n\n function mapNativeToChainable(name, methodNames) {\n var sugarNamespace = namespacesByName[name],\n nativeProto = globalContext[name].prototype;\n\n if (!methodNames && ownPropertyNames) {\n methodNames = ownPropertyNames(nativeProto);\n }\n\n forEachProperty(methodNames, function(methodName) {\n if (nativeMethodProhibited(methodName)) {\n // Sugar chainables have their own constructors as well as \"valueOf\"\n // methods, so exclude them here. The __proto__ argument should be trapped\n // by the function check below, however simply accessing this property on\n // Object.prototype causes QML to segfault, so pre-emptively excluding it.\n return;\n }\n try {\n var fn = nativeProto[methodName];\n if (typeof fn !== 'function') {\n // Bail on anything not a function.\n return;\n }\n } catch (e) {\n // Function.prototype has properties that\n // will throw errors when accessed.\n return;\n }\n defineChainableMethod(sugarNamespace, methodName, fn);\n });\n }\n\n function nativeMethodProhibited(methodName) {\n return methodName === 'constructor' ||\n methodName === 'valueOf' ||\n methodName === '__proto__';\n }\n\n\n // Util\n\n // Internal references\n var ownPropertyNames = Object.getOwnPropertyNames,\n internalToString = Object.prototype.toString,\n internalHasOwnProperty = Object.prototype.hasOwnProperty;\n\n // Defining this as a variable here as the ES5 module\n // overwrites it to patch DONTENUM.\n var forEachProperty = function (obj, fn) {\n for(var key in obj) {\n if (!hasOwn(obj, key)) continue;\n if (fn.call(obj, obj[key], key, obj) === false) break;\n }\n };\n\n function definePropertyShim(obj, prop, descriptor) {\n obj[prop] = descriptor.value;\n }\n\n function setProperty(target, name, value, enumerable) {\n defineProperty(target, name, {\n value: value,\n enumerable: !!enumerable,\n configurable: true,\n writable: true\n });\n }\n\n // PERF: Attempts to speed this method up get very Heisenbergy. Quickly\n // returning based on typeof works for primitives, but slows down object\n // types. Even === checks on null and undefined (no typeof) will end up\n // basically breaking even. This seems to be as fast as it can go.\n function classToString(obj) {\n return internalToString.call(obj);\n }\n\n function hasOwn(obj, prop) {\n return !!obj && internalHasOwnProperty.call(obj, prop);\n }\n\n function getOwn(obj, prop) {\n if (hasOwn(obj, prop)) {\n return obj[prop];\n }\n }\n\n setupGlobal();\n\n}).call(this);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/~/sugar-core/sugar-core.js\n// module id = 34\n// module chunks = 0","'use strict';\n\nvar LazyLoadedLocales = require('./LazyLoadedLocales'),\n AmericanEnglishDefinition = require('./AmericanEnglishDefinition'),\n getNewLocale = require('../internal/getNewLocale');\n\nvar English, localeManager;\n\nfunction buildLocales() {\n\n function LocaleManager(loc) {\n this.locales = {};\n this.add(loc);\n }\n\n LocaleManager.prototype = {\n\n get: function(code, fallback) {\n var loc = this.locales[code];\n if (!loc && LazyLoadedLocales[code]) {\n loc = this.add(code, LazyLoadedLocales[code]);\n } else if (!loc && code) {\n loc = this.locales[code.slice(0, 2)];\n }\n return loc || fallback === false ? loc : this.current;\n },\n\n getAll: function() {\n return this.locales;\n },\n\n set: function(code) {\n var loc = this.get(code, false);\n if (!loc) {\n throw new TypeError('Invalid Locale: ' + code);\n }\n return this.current = loc;\n },\n\n add: function(code, def) {\n if (!def) {\n def = code;\n code = def.code;\n } else {\n def.code = code;\n }\n var loc = def.compiledFormats ? def : getNewLocale(def);\n this.locales[code] = loc;\n if (!this.current) {\n this.current = loc;\n }\n return loc;\n },\n\n remove: function(code) {\n if (this.current.code === code) {\n this.current = this.get('en');\n }\n return delete this.locales[code];\n }\n\n };\n\n // Sorry about this guys...\n English = getNewLocale(AmericanEnglishDefinition);\n localeManager = new LocaleManager(English);\n}\n\nbuildLocales();\n\nmodule.exports = {\n English: English,\n localeManager: localeManager\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/LocaleHelpers.js\n// module id = 35\n// module chunks = 0","'use strict';\n\nvar BritishEnglishDefinition = require('./BritishEnglishDefinition'),\n AmericanEnglishDefinition = require('./AmericanEnglishDefinition'),\n CanadianEnglishDefinition = require('./CanadianEnglishDefinition');\n\nvar LazyLoadedLocales = {\n 'en-US': AmericanEnglishDefinition,\n 'en-GB': BritishEnglishDefinition,\n 'en-AU': BritishEnglishDefinition,\n 'en-CA': CanadianEnglishDefinition\n};\n\nmodule.exports = LazyLoadedLocales;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/LazyLoadedLocales.js\n// module id = 36\n// module chunks = 0","'use strict';\n\nvar getEnglishVariant = require('../internal/getEnglishVariant');\n\nvar BritishEnglishDefinition = getEnglishVariant({\n 'short': '{dd}/{MM}/{yyyy}',\n 'medium': '{d} {Month} {yyyy}',\n 'long': '{d} {Month} {yyyy} {H}:{mm}',\n 'full': '{Weekday}, {d} {Month}, {yyyy} {time}',\n 'stamp': '{Dow} {d} {Mon} {yyyy} {time}'\n});\n\nmodule.exports = BritishEnglishDefinition;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/BritishEnglishDefinition.js\n// module id = 37\n// module chunks = 0","'use strict';\n\nvar EnglishLocaleBaseDefinition = require('../var/EnglishLocaleBaseDefinition'),\n simpleMerge = require('../../common/internal/simpleMerge'),\n simpleClone = require('../../common/internal/simpleClone');\n\nfunction getEnglishVariant(v) {\n return simpleMerge(simpleClone(EnglishLocaleBaseDefinition), v);\n}\n\nmodule.exports = getEnglishVariant;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getEnglishVariant.js\n// module id = 38\n// module chunks = 0","'use strict';\n\nvar EnglishLocaleBaseDefinition = {\n 'code': 'en',\n 'plural': true,\n 'timeMarkers': 'at',\n 'ampm': 'AM|A.M.|a,PM|P.M.|p',\n 'units': 'millisecond:|s,second:|s,minute:|s,hour:|s,day:|s,week:|s,month:|s,year:|s',\n 'months': 'Jan:uary|,Feb:ruary|,Mar:ch|,Apr:il|,May,Jun:e|,Jul:y|,Aug:ust|,Sep:tember|t|,Oct:ober|,Nov:ember|,Dec:ember|',\n 'weekdays': 'Sun:day|,Mon:day|,Tue:sday|,Wed:nesday|,Thu:rsday|,Fri:day|,Sat:urday|+weekend',\n 'numerals': 'zero,one|first,two|second,three|third,four:|th,five|fifth,six:|th,seven:|th,eight:|h,nin:e|th,ten:|th',\n 'articles': 'a,an,the',\n 'tokens': 'the,st|nd|rd|th,of|in,a|an,on',\n 'time': '{H}:{mm}',\n 'past': '{num} {unit} {sign}',\n 'future': '{num} {unit} {sign}',\n 'duration': '{num} {unit}',\n 'modifiers': [\n { 'name': 'half', 'src': 'half', 'value': .5 },\n { 'name': 'midday', 'src': 'noon', 'value': 12 },\n { 'name': 'midday', 'src': 'midnight', 'value': 24 },\n { 'name': 'day', 'src': 'yesterday', 'value': -1 },\n { 'name': 'day', 'src': 'today|tonight', 'value': 0 },\n { 'name': 'day', 'src': 'tomorrow', 'value': 1 },\n { 'name': 'sign', 'src': 'ago|before', 'value': -1 },\n { 'name': 'sign', 'src': 'from now|after|from|in|later', 'value': 1 },\n { 'name': 'edge', 'src': 'first day|first|beginning', 'value': -2 },\n { 'name': 'edge', 'src': 'last day', 'value': 1 },\n { 'name': 'edge', 'src': 'end|last', 'value': 2 },\n { 'name': 'shift', 'src': 'last', 'value': -1 },\n { 'name': 'shift', 'src': 'the|this', 'value': 0 },\n { 'name': 'shift', 'src': 'next', 'value': 1 }\n ],\n 'parse': [\n '(?:just)? now',\n '{shift} {unit:5-7}',\n \"{months?} (?:{year}|'{yy})\",\n '{midday} {4?} {day|weekday}',\n '{months},?(?:[-.\\\\/\\\\s]{year})?',\n '{edge} of (?:day)? {day|weekday}',\n '{0} {num}{1?} {weekday} {2} {months},? {year?}',\n '{shift?} {day?} {weekday?} {timeMarker?} {midday}',\n '{sign?} {3?} {half} {3?} {unit:3-4|unit:7} {sign?}',\n '{0?} {edge} {weekday?} {2} {shift?} {unit:4-7?} {months?},? {year?}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{shift} {unit:5?} {weekday}',\n '{0?} {date}{1?} {2?} {months?}',\n '{weekday} {2?} {shift} {unit:5}',\n '{0?} {num} {2?} {months}\\\\.?,? {year?}',\n '{num?} {unit:4-5} {sign} {day|weekday}',\n '{year}[-.\\\\/\\\\s]{months}[-.\\\\/\\\\s]{date}',\n '{0|months} {date?}{1?} of {shift} {unit:6-7}',\n '{0?} {num}{1?} {weekday} of {shift} {unit:6}',\n \"{date}[-.\\\\/\\\\s]{months}[-.\\\\/\\\\s](?:{year}|'?{yy})\",\n \"{weekday?}\\\\.?,? {months}\\\\.?,? {date}{1?},? (?:{year}|'{yy})?\"\n ],\n 'timeFrontParse': [\n '{sign} {num} {unit}',\n '{num} {unit} {sign}',\n '{4?} {day|weekday}'\n ]\n};\n\nmodule.exports = EnglishLocaleBaseDefinition;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/EnglishLocaleBaseDefinition.js\n// module id = 39\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar forEachProperty = coreUtilityAliases.forEachProperty;\n\nfunction simpleMerge(target, source) {\n forEachProperty(source, function(val, key) {\n target[key] = val;\n });\n return target;\n}\n\nmodule.exports = simpleMerge;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/simpleMerge.js\n// module id = 40\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nmodule.exports = {\n hasOwn: Sugar.util.hasOwn,\n getOwn: Sugar.util.getOwn,\n setProperty: Sugar.util.setProperty,\n classToString: Sugar.util.classToString,\n defineProperty: Sugar.util.defineProperty,\n forEachProperty: Sugar.util.forEachProperty,\n mapNativeToChainable: Sugar.util.mapNativeToChainable\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/coreUtilityAliases.js\n// module id = 41\n// module chunks = 0","'use strict';\n\nvar simpleMerge = require('./simpleMerge');\n\nfunction simpleClone(obj) {\n return simpleMerge({}, obj);\n}\n\nmodule.exports = simpleClone;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/simpleClone.js\n// module id = 42\n// module chunks = 0","'use strict';\n\nvar getEnglishVariant = require('../internal/getEnglishVariant');\n\nvar AmericanEnglishDefinition = getEnglishVariant({\n 'mdy': true,\n 'firstDayOfWeek': 0,\n 'firstDayOfWeekYear': 1,\n 'short': '{MM}/{dd}/{yyyy}',\n 'medium': '{Month} {d}, {yyyy}',\n 'long': '{Month} {d}, {yyyy} {time}',\n 'full': '{Weekday}, {Month} {d}, {yyyy} {time}',\n 'stamp': '{Dow} {Mon} {d} {yyyy} {time}',\n 'time': '{h}:{mm} {TT}'\n});\n\nmodule.exports = AmericanEnglishDefinition;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/AmericanEnglishDefinition.js\n// module id = 43\n// module chunks = 0","'use strict';\n\nvar getEnglishVariant = require('../internal/getEnglishVariant');\n\nvar CanadianEnglishDefinition = getEnglishVariant({\n 'short': '{yyyy}-{MM}-{dd}',\n 'medium': '{d} {Month}, {yyyy}',\n 'long': '{d} {Month}, {yyyy} {H}:{mm}',\n 'full': '{Weekday}, {d} {Month}, {yyyy} {time}',\n 'stamp': '{Dow} {d} {Mon} {yyyy} {time}'\n});\n\nmodule.exports = CanadianEnglishDefinition;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/CanadianEnglishDefinition.js\n// module id = 44\n// module chunks = 0","'use strict';\n\nvar LOCALE_ARRAY_FIELDS = require('../var/LOCALE_ARRAY_FIELDS'),\n ISODefaults = require('../var/ISODefaults'),\n ParsingTokens = require('../var/ParsingTokens'),\n CoreParsingFormats = require('../var/CoreParsingFormats'),\n LocalizedParsingTokens = require('../var/LocalizedParsingTokens'),\n map = require('../../common/internal/map'),\n filter = require('../../common/internal/filter'),\n forEach = require('../../common/internal/forEach'),\n isDefined = require('../../common/internal/isDefined'),\n commaSplit = require('../../common/internal/commaSplit'),\n classChecks = require('../../common/var/classChecks'),\n isUndefined = require('../../common/internal/isUndefined'),\n mathAliases = require('../../common/var/mathAliases'),\n simpleMerge = require('../../common/internal/simpleMerge'),\n getOrdinalSuffix = require('../../common/internal/getOrdinalSuffix'),\n getRegNonCapturing = require('./getRegNonCapturing'),\n coreUtilityAliases = require('../../common/var/coreUtilityAliases'),\n getArrayWithOffset = require('./getArrayWithOffset'),\n iterateOverDateUnits = require('./iterateOverDateUnits'),\n arrayToRegAlternates = require('./arrayToRegAlternates'),\n fullwidthNumberHelpers = require('../../common/var/fullwidthNumberHelpers'),\n getAdjustedUnitForNumber = require('./getAdjustedUnitForNumber'),\n getParsingTokenWithSuffix = require('./getParsingTokenWithSuffix');\n\nvar getOwn = coreUtilityAliases.getOwn,\n forEachProperty = coreUtilityAliases.forEachProperty,\n fullWidthNumberMap = fullwidthNumberHelpers.fullWidthNumberMap,\n fullWidthNumbers = fullwidthNumberHelpers.fullWidthNumbers,\n pow = mathAliases.pow,\n max = mathAliases.max,\n ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,\n ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR,\n isString = classChecks.isString,\n isFunction = classChecks.isFunction;\n\nfunction getNewLocale(def) {\n\n function Locale(def) {\n this.init(def);\n }\n\n Locale.prototype = {\n\n getMonthName: function(n, alternate) {\n if (this.monthSuffix) {\n return (n + 1) + this.monthSuffix;\n }\n return getArrayWithOffset(this.months, n, alternate, 12);\n },\n\n getWeekdayName: function(n, alternate) {\n return getArrayWithOffset(this.weekdays, n, alternate, 7);\n },\n\n getTokenValue: function(field, str) {\n var map = this[field + 'Map'], val;\n if (map) {\n val = map[str];\n }\n if (isUndefined(val)) {\n val = this.getNumber(str);\n if (field === 'month') {\n // Months are the only numeric date field\n // whose value is not the same as its number.\n val -= 1;\n }\n }\n return val;\n },\n\n getNumber: function(str) {\n var num = this.numeralMap[str];\n if (isDefined(num)) {\n return num;\n }\n // The unary plus operator here show better performance and handles\n // every format that parseFloat does with the exception of trailing\n // characters, which are guaranteed not to be in our string at this point.\n num = +str.replace(/,/, '.');\n if (!isNaN(num)) {\n return num;\n }\n num = this.getNumeralValue(str);\n if (!isNaN(num)) {\n this.numeralMap[str] = num;\n return num;\n }\n return num;\n },\n\n getNumeralValue: function(str) {\n var place = 1, num = 0, lastWasPlace, isPlace, numeral, digit, arr;\n // Note that \"numerals\" that need to be converted through this method are\n // all considered to be single characters in order to handle CJK. This\n // method is by no means unique to CJK, but the complexity of handling\n // inflections in non-CJK languages adds too much overhead for not enough\n // value, so avoiding for now.\n arr = str.split('');\n for (var i = arr.length - 1; numeral = arr[i]; i--) {\n digit = getOwn(this.numeralMap, numeral);\n if (isUndefined(digit)) {\n digit = getOwn(fullWidthNumberMap, numeral) || 0;\n }\n isPlace = digit > 0 && digit % 10 === 0;\n if (isPlace) {\n if (lastWasPlace) {\n num += place;\n }\n if (i) {\n place = digit;\n } else {\n num += digit;\n }\n } else {\n num += digit * place;\n place *= 10;\n }\n lastWasPlace = isPlace;\n }\n return num;\n },\n\n getOrdinal: function(n) {\n var suffix = this.ordinalSuffix;\n return suffix || getOrdinalSuffix(n);\n },\n\n getRelativeFormat: function(adu, type) {\n return this.convertAdjustedToFormat(adu, type);\n },\n\n getDuration: function(ms) {\n return this.convertAdjustedToFormat(getAdjustedUnitForNumber(max(0, ms)), 'duration');\n },\n\n getFirstDayOfWeek: function() {\n var val = this.firstDayOfWeek;\n return isDefined(val) ? val : ISO_FIRST_DAY_OF_WEEK;\n },\n\n getFirstDayOfWeekYear: function() {\n return this.firstDayOfWeekYear || ISO_FIRST_DAY_OF_WEEK_YEAR;\n },\n\n convertAdjustedToFormat: function(adu, type) {\n var sign, unit, mult,\n num = adu[0],\n u = adu[1],\n ms = adu[2],\n format = this[type] || this.relative;\n if (isFunction(format)) {\n return format.call(this, num, u, ms, type);\n }\n mult = !this.plural || num === 1 ? 0 : 1;\n unit = this.units[mult * 8 + u] || this.units[u];\n sign = this[ms > 0 ? 'fromNow' : 'ago'];\n return format.replace(/\\{(.*?)\\}/g, function(full, match) {\n switch(match) {\n case 'num': return num;\n case 'unit': return unit;\n case 'sign': return sign;\n }\n });\n },\n\n cacheFormat: function(dif, i) {\n this.compiledFormats.splice(i, 1);\n this.compiledFormats.unshift(dif);\n },\n\n addFormat: function(src, to) {\n var loc = this;\n\n function getTokenSrc(str) {\n var suffix, src, val,\n opt = str.match(/\\?$/),\n nc = str.match(/^(\\d+)\\??$/),\n slice = str.match(/(\\d)(?:-(\\d))?/),\n key = str.replace(/[^a-z]+$/i, '');\n\n // Allowing alias tokens such as {time}\n if (val = getOwn(loc.parsingAliases, key)) {\n src = replaceParsingTokens(val);\n if (opt) {\n src = getRegNonCapturing(src, true);\n }\n return src;\n }\n\n if (nc) {\n src = loc.tokens[nc[1]];\n } else if (val = getOwn(ParsingTokens, key)) {\n src = val.src;\n } else {\n val = getOwn(loc.parsingTokens, key) || getOwn(loc, key);\n\n // Both the \"months\" array and the \"month\" parsing token can be accessed\n // by either {month} or {months}, falling back as necessary, however\n // regardless of whether or not a fallback occurs, the final field to\n // be passed to addRawFormat must be normalized as singular.\n key = key.replace(/s$/, '');\n\n if (!val) {\n val = getOwn(loc.parsingTokens, key) || getOwn(loc, key + 's');\n }\n\n if (isString(val)) {\n src = val;\n suffix = loc[key + 'Suffix'];\n } else {\n if (slice) {\n val = filter(val, function(m, i) {\n var mod = i % (loc.units ? 8 : val.length);\n return mod >= slice[1] && mod <= (slice[2] || slice[1]);\n });\n }\n src = arrayToRegAlternates(val);\n }\n }\n if (!src) {\n return '';\n }\n if (nc) {\n // Non-capturing tokens like {0}\n src = getRegNonCapturing(src);\n } else {\n // Capturing group and add to parsed tokens\n to.push(key);\n src = '(' + src + ')';\n }\n if (suffix) {\n // Date/time suffixes such as those in CJK\n src = getParsingTokenWithSuffix(key, src, suffix);\n }\n if (opt) {\n src += '?';\n }\n return src;\n }\n\n function replaceParsingTokens(str) {\n\n // Make spaces optional\n str = str.replace(/ /g, ' ?');\n\n return str.replace(/\\{([^,]+?)\\}/g, function(match, token) {\n var tokens = token.split('|'), src;\n if (tokens.length > 1) {\n src = getRegNonCapturing(map(tokens, getTokenSrc).join('|'));\n } else {\n src = getTokenSrc(token);\n }\n return src;\n });\n }\n\n if (!to) {\n to = [];\n src = replaceParsingTokens(src);\n }\n\n loc.addRawFormat(src, to);\n },\n\n addRawFormat: function(format, to) {\n this.compiledFormats.unshift({\n reg: RegExp('^ *' + format + ' *$', 'i'),\n to: to\n });\n },\n\n init: function(def) {\n var loc = this;\n\n // -- Initialization helpers\n\n function initFormats() {\n loc.compiledFormats = [];\n loc.parsingAliases = {};\n loc.parsingTokens = {};\n }\n\n function initDefinition() {\n simpleMerge(loc, def);\n }\n\n function initArrayFields() {\n forEach(LOCALE_ARRAY_FIELDS, function(name) {\n var val = loc[name];\n if (isString(val)) {\n loc[name] = commaSplit(val);\n } else if (!val) {\n loc[name] = [];\n }\n });\n }\n\n // -- Value array build helpers\n\n function buildValueArray(name, mod, map, fn) {\n var field = name, all = [], setMap;\n if (!loc[field]) {\n field += 's';\n }\n if (!map) {\n map = {};\n setMap = true;\n }\n forAllAlternates(field, function(alt, j, i) {\n var idx = j * mod + i, val;\n val = fn ? fn(i) : i;\n map[alt] = val;\n map[alt.toLowerCase()] = val;\n all[idx] = alt;\n });\n loc[field] = all;\n if (setMap) {\n loc[name + 'Map'] = map;\n }\n }\n\n function forAllAlternates(field, fn) {\n forEach(loc[field], function(str, i) {\n forEachAlternate(str, function(alt, j) {\n fn(alt, j, i);\n });\n });\n }\n\n function forEachAlternate(str, fn) {\n var arr = map(str.split('+'), function(split) {\n return split.replace(/(.+):(.+)$/, function(full, base, suffixes) {\n return map(suffixes.split('|'), function(suffix) {\n return base + suffix;\n }).join('|');\n });\n }).join('|');\n forEach(arr.split('|'), fn);\n }\n\n function buildNumerals() {\n var map = {};\n buildValueArray('numeral', 10, map);\n buildValueArray('article', 1, map, function() {\n return 1;\n });\n buildValueArray('placeholder', 4, map, function(n) {\n return pow(10, n + 1);\n });\n loc.numeralMap = map;\n }\n\n function buildTimeFormats() {\n loc.parsingAliases['time'] = getTimeFormat();\n loc.parsingAliases['tzOffset'] = getTZOffsetFormat();\n }\n\n function getTimeFormat() {\n var src;\n if (loc.ampmFront) {\n // \"ampmFront\" exists mostly for CJK locales, which also presume that\n // time suffixes exist, allowing this to be a simpler regex.\n src = '{ampm?} {hour} (?:{minute} (?::?{second})?)?';\n } else if(loc.ampm.length) {\n src = '{hour}(?:[.:]{minute}(?:[.:]{second})? {ampm?}| {ampm})';\n } else {\n src = '{hour}(?:[.:]{minute}(?:[.:]{second})?)';\n }\n return src;\n }\n\n function getTZOffsetFormat() {\n return '(?:{Z}|{GMT?}(?:{tzSign}{tzHour}(?::?{tzMinute}(?: \\\\([\\\\w\\\\s]+\\\\))?)?)?)?';\n }\n\n function buildParsingTokens() {\n forEachProperty(LocalizedParsingTokens, function(token, name) {\n var src, arr;\n src = token.base ? ParsingTokens[token.base].src : token.src;\n if (token.requiresNumerals || loc.numeralUnits) {\n src += getNumeralSrc();\n }\n arr = loc[name + 's'];\n if (arr && arr.length) {\n src += '|' + arrayToRegAlternates(arr);\n }\n loc.parsingTokens[name] = src;\n });\n }\n\n function getNumeralSrc() {\n var all, src = '';\n all = loc.numerals.concat(loc.placeholders).concat(loc.articles);\n if (loc.allowsFullWidth) {\n all = all.concat(fullWidthNumbers.split(''));\n }\n if (all.length) {\n src = '|(?:' + arrayToRegAlternates(all) + ')+';\n }\n return src;\n }\n\n function buildTimeSuffixes() {\n iterateOverDateUnits(function(unit, i) {\n var token = loc.timeSuffixes[i];\n if (token) {\n loc[(unit.alias || unit.name) + 'Suffix'] = token;\n }\n });\n }\n\n function buildModifiers() {\n forEach(loc.modifiers, function(modifier) {\n var name = modifier.name, mapKey = name + 'Map', map;\n map = loc[mapKey] || {};\n forEachAlternate(modifier.src, function(alt, j) {\n var token = getOwn(loc.parsingTokens, name), val = modifier.value;\n map[alt] = val;\n loc.parsingTokens[name] = token ? token + '|' + alt : alt;\n if (modifier.name === 'sign' && j === 0) {\n // Hooking in here to set the first \"fromNow\" or \"ago\" modifier\n // directly on the locale, so that it can be reused in the\n // relative format.\n loc[val === 1 ? 'fromNow' : 'ago'] = alt;\n }\n });\n loc[mapKey] = map;\n });\n }\n\n // -- Format adding helpers\n\n function addCoreFormats() {\n forEach(CoreParsingFormats, function(df) {\n var src = df.src;\n if (df.mdy && loc.mdy) {\n // Use the mm/dd/yyyy variant if it\n // exists and the locale requires it\n src = df.mdy;\n }\n if (df.time) {\n // Core formats that allow time require the time\n // reg on both sides, so add both versions here.\n loc.addFormat(getFormatWithTime(src, true));\n loc.addFormat(getFormatWithTime(src));\n } else {\n loc.addFormat(src);\n }\n });\n loc.addFormat('{time}');\n }\n\n function addLocaleFormats() {\n addFormatSet('parse');\n addFormatSet('timeParse', true);\n addFormatSet('timeFrontParse', true, true);\n }\n\n function addFormatSet(field, allowTime, timeFront) {\n forEach(loc[field], function(format) {\n if (allowTime) {\n format = getFormatWithTime(format, timeFront);\n }\n loc.addFormat(format);\n });\n }\n\n function getFormatWithTime(baseFormat, timeBefore) {\n if (timeBefore) {\n return getTimeBefore() + baseFormat;\n }\n return baseFormat + getTimeAfter();\n }\n\n function getTimeBefore() {\n return getRegNonCapturing('{time}[,\\\\s\\\\u3000]', true);\n }\n\n function getTimeAfter() {\n var markers = ',?[\\\\s\\\\u3000]', localized;\n localized = arrayToRegAlternates(loc.timeMarkers);\n if (localized) {\n markers += '| (?:' + localized + ') ';\n }\n markers = getRegNonCapturing(markers, loc.timeMarkerOptional);\n return getRegNonCapturing(markers + '{time}', true);\n }\n\n initFormats();\n initDefinition();\n initArrayFields();\n\n buildValueArray('month', 12);\n buildValueArray('weekday', 7);\n buildValueArray('unit', 8);\n buildValueArray('ampm', 2);\n\n buildNumerals();\n buildTimeFormats();\n buildParsingTokens();\n buildTimeSuffixes();\n buildModifiers();\n\n // The order of these formats is important. Order is reversed so formats\n // that are initialized later will take precedence. Generally, this means\n // that more specific formats should come later.\n addCoreFormats();\n addLocaleFormats();\n\n }\n\n };\n\n return new Locale(def);\n}\n\nmodule.exports = getNewLocale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getNewLocale.js\n// module id = 45\n// module chunks = 0","'use strict';\n\nvar LOCALE_ARRAY_FIELDS = [\n 'months', 'weekdays', 'units', 'numerals', 'placeholders',\n 'articles', 'tokens', 'timeMarkers', 'ampm', 'timeSuffixes',\n 'parse', 'timeParse', 'timeFrontParse', 'modifiers'\n];\n\nmodule.exports = LOCALE_ARRAY_FIELDS;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/LOCALE_ARRAY_FIELDS.js\n// module id = 46\n// module chunks = 0","'use strict';\n\nmodule.exports = {\n ISO_FIRST_DAY_OF_WEEK: 1,\n ISO_FIRST_DAY_OF_WEEK_YEAR: 4\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/ISODefaults.js\n// module id = 47\n// module chunks = 0","'use strict';\n\nvar ParsingTokens = {\n 'yyyy': {\n param: 'year',\n src: '\\\\d{4}'\n },\n 'MM': {\n param: 'month',\n src: '[01]?\\\\d'\n },\n 'dd': {\n param: 'date',\n src: '[0123]?\\\\d'\n },\n 'hh': {\n param: 'hour',\n src: '[0-2]?\\\\d'\n },\n 'mm': {\n param: 'minute',\n src: '[0-5]\\\\d'\n },\n 'ss': {\n param: 'second',\n src: '[0-5]\\\\d(?:[,.]\\\\d+)?'\n },\n 'yy': {\n param: 'year',\n src: '\\\\d{2}'\n },\n 'y': {\n param: 'year',\n src: '\\\\d'\n },\n 'yearSign': {\n src: '[+-]',\n sign: true\n },\n 'tzHour': {\n src: '[0-1]\\\\d'\n },\n 'tzMinute': {\n src: '[0-5]\\\\d'\n },\n 'tzSign': {\n src: '[+−-]',\n sign: true\n },\n 'ihh': {\n param: 'hour',\n src: '[0-2]?\\\\d(?:[,.]\\\\d+)?'\n },\n 'imm': {\n param: 'minute',\n src: '[0-5]\\\\d(?:[,.]\\\\d+)?'\n },\n 'GMT': {\n param: 'utc',\n src: 'GMT',\n val: 1\n },\n 'Z': {\n param: 'utc',\n src: 'Z',\n val: 1\n },\n 'timestamp': {\n src: '\\\\d+'\n }\n};\n\nmodule.exports = ParsingTokens;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/ParsingTokens.js\n// module id = 48\n// module chunks = 0","'use strict';\n\nvar CoreParsingFormats = [\n {\n // 12-1978\n // 08-1978 (MDY)\n src: '{MM}[-.\\\\/]{yyyy}'\n },\n {\n // 12/08/1978\n // 08/12/1978 (MDY)\n time: true,\n src: '{dd}[-.\\\\/]{MM}(?:[-.\\\\/]{yyyy|yy|y})?',\n mdy: '{MM}[-.\\\\/]{dd}(?:[-.\\\\/]{yyyy|yy|y})?'\n },\n {\n // 1975-08-25\n time: true,\n src: '{yyyy}[-.\\\\/]{MM}(?:[-.\\\\/]{dd})?'\n },\n {\n // .NET JSON\n src: '\\\\\\\\/Date\\\\({timestamp}(?:[+-]\\\\d{4,4})?\\\\)\\\\\\\\/'\n },\n {\n // ISO-8601\n src: '{yearSign?}{yyyy}(?:-?{MM}(?:-?{dd}(?:T{ihh}(?::?{imm}(?::?{ss})?)?)?)?)?{tzOffset?}'\n }\n];\n\nmodule.exports = CoreParsingFormats;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/CoreParsingFormats.js\n// module id = 49\n// module chunks = 0","'use strict';\n\nvar LocalizedParsingTokens = {\n 'year': {\n base: 'yyyy',\n requiresSuffix: true\n },\n 'month': {\n base: 'MM',\n requiresSuffix: true\n },\n 'date': {\n base: 'dd',\n requiresSuffix: true\n },\n 'hour': {\n base: 'hh',\n requiresSuffixOr: ':'\n },\n 'minute': {\n base: 'mm'\n },\n 'second': {\n base: 'ss'\n },\n 'num': {\n src: '\\\\d+',\n requiresNumerals: true\n }\n};\n\nmodule.exports = LocalizedParsingTokens;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/LocalizedParsingTokens.js\n// module id = 50\n// module chunks = 0","'use strict';\n\nfunction map(arr, fn) {\n // perf: Not using fixed array len here as it may be sparse.\n var result = [];\n for (var i = 0, len = arr.length; i < len; i++) {\n if (i in arr) {\n result.push(fn(arr[i], i));\n }\n }\n return result;\n}\n\nmodule.exports = map;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/map.js\n// module id = 51\n// module chunks = 0","'use strict';\n\nfunction filter(arr, fn) {\n var result = [];\n for (var i = 0, len = arr.length; i < len; i++) {\n var el = arr[i];\n if (i in arr && fn(el, i)) {\n result.push(el);\n }\n }\n return result;\n}\n\nmodule.exports = filter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/filter.js\n// module id = 52\n// module chunks = 0","'use strict';\n\nvar iterateOverSparseArray = require('./iterateOverSparseArray');\n\nfunction forEach(arr, fn) {\n for (var i = 0, len = arr.length; i < len; i++) {\n if (!(i in arr)) {\n return iterateOverSparseArray(arr, fn, i);\n }\n fn(arr[i], i);\n }\n}\n\nmodule.exports = forEach;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/forEach.js\n// module id = 53\n// module chunks = 0","'use strict';\n\nvar getSparseArrayIndexes = require('./getSparseArrayIndexes');\n\nfunction iterateOverSparseArray(arr, fn, fromIndex, loop) {\n var indexes = getSparseArrayIndexes(arr, fromIndex, loop), index;\n for (var i = 0, len = indexes.length; i < len; i++) {\n index = indexes[i];\n fn.call(arr, arr[index], index, arr);\n }\n return arr;\n}\n\nmodule.exports = iterateOverSparseArray;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/iterateOverSparseArray.js\n// module id = 54\n// module chunks = 0","'use strict';\n\nvar isArrayIndex = require('./isArrayIndex');\n\nfunction getSparseArrayIndexes(arr, fromIndex, loop, fromRight) {\n var indexes = [], i;\n for (i in arr) {\n if (isArrayIndex(i) && (loop || (fromRight ? i <= fromIndex : i >= fromIndex))) {\n indexes.push(+i);\n }\n }\n indexes.sort(function(a, b) {\n var aLoop = a > fromIndex;\n var bLoop = b > fromIndex;\n if (aLoop !== bLoop) {\n return aLoop ? -1 : 1;\n }\n return a - b;\n });\n return indexes;\n}\n\nmodule.exports = getSparseArrayIndexes;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/getSparseArrayIndexes.js\n// module id = 55\n// module chunks = 0","'use strict';\n\nfunction isArrayIndex(n) {\n return n >>> 0 == n && n != 0xFFFFFFFF;\n}\n\nmodule.exports = isArrayIndex;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/isArrayIndex.js\n// module id = 56\n// module chunks = 0","'use strict';\n\nfunction isDefined(o) {\n return o !== undefined;\n}\n\nmodule.exports = isDefined;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/isDefined.js\n// module id = 57\n// module chunks = 0","'use strict';\n\nvar CommonChars = require('../var/CommonChars');\n\nvar HALF_WIDTH_COMMA = CommonChars.HALF_WIDTH_COMMA;\n\nfunction commaSplit(str) {\n return str.split(HALF_WIDTH_COMMA);\n}\n\nmodule.exports = commaSplit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/commaSplit.js\n// module id = 58\n// module chunks = 0","'use strict';\n\nmodule.exports = {\n HALF_WIDTH_ZERO: 0x30,\n FULL_WIDTH_ZERO: 0xff10,\n HALF_WIDTH_PERIOD: '.',\n FULL_WIDTH_PERIOD: '.',\n HALF_WIDTH_COMMA: ',',\n OPEN_BRACE: '{',\n CLOSE_BRACE: '}'\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/CommonChars.js\n// module id = 59\n// module chunks = 0","'use strict';\n\nvar NATIVE_TYPES = require('./NATIVE_TYPES'),\n forEach = require('../internal/forEach'),\n isClass = require('../internal/isClass'),\n spaceSplit = require('../internal/spaceSplit'),\n isPlainObject = require('../internal/isPlainObject'),\n coreUtilityAliases = require('./coreUtilityAliases');\n\nvar classToString = coreUtilityAliases.classToString;\n\nvar isSerializable,\n isBoolean, isNumber, isString,\n isDate, isRegExp, isFunction,\n isArray, isSet, isMap, isError;\n\nfunction buildClassChecks() {\n\n var knownTypes = {};\n\n function addCoreTypes() {\n\n var names = spaceSplit(NATIVE_TYPES);\n\n isBoolean = buildPrimitiveClassCheck(names[0]);\n isNumber = buildPrimitiveClassCheck(names[1]);\n isString = buildPrimitiveClassCheck(names[2]);\n\n isDate = buildClassCheck(names[3]);\n isRegExp = buildClassCheck(names[4]);\n\n // Wanted to enhance performance here by using simply \"typeof\"\n // but Firefox has two major issues that make this impossible,\n // one fixed, the other not, so perform a full class check here.\n //\n // 1. Regexes can be typeof \"function\" in FF < 3\n // https://bugzilla.mozilla.org/show_bug.cgi?id=61911 (fixed)\n //\n // 2. HTMLEmbedElement and HTMLObjectElement are be typeof \"function\"\n // https://bugzilla.mozilla.org/show_bug.cgi?id=268945 (won't fix)\n isFunction = buildClassCheck(names[5]);\n\n\n isArray = Array.isArray || buildClassCheck(names[6]);\n isError = buildClassCheck(names[7]);\n\n isSet = buildClassCheck(names[8], typeof Set !== 'undefined' && Set);\n isMap = buildClassCheck(names[9], typeof Map !== 'undefined' && Map);\n\n // Add core types as known so that they can be checked by value below,\n // notably excluding Functions and adding Arguments and Error.\n addKnownType('Arguments');\n addKnownType(names[0]);\n addKnownType(names[1]);\n addKnownType(names[2]);\n addKnownType(names[3]);\n addKnownType(names[4]);\n addKnownType(names[6]);\n\n }\n\n function addArrayTypes() {\n var types = 'Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64';\n forEach(spaceSplit(types), function(str) {\n addKnownType(str + 'Array');\n });\n }\n\n function addKnownType(className) {\n var str = '[object '+ className +']';\n knownTypes[str] = true;\n }\n\n function isKnownType(className) {\n return knownTypes[className];\n }\n\n function buildClassCheck(className, globalObject) {\n if (globalObject && isClass(new globalObject, 'Object')) {\n return getConstructorClassCheck(globalObject);\n } else {\n return getToStringClassCheck(className);\n }\n }\n\n function getConstructorClassCheck(obj) {\n var ctorStr = String(obj);\n return function(obj) {\n return String(obj.constructor) === ctorStr;\n };\n }\n\n function getToStringClassCheck(className) {\n return function(obj, str) {\n // perf: Returning up front on instanceof appears to be slower.\n return isClass(obj, className, str);\n };\n }\n\n function buildPrimitiveClassCheck(className) {\n var type = className.toLowerCase();\n return function(obj) {\n var t = typeof obj;\n return t === type || t === 'object' && isClass(obj, className);\n };\n }\n\n addCoreTypes();\n addArrayTypes();\n\n isSerializable = function(obj, className) {\n // Only known objects can be serialized. This notably excludes functions,\n // host objects, Symbols (which are matched by reference), and instances\n // of classes. The latter can arguably be matched by value, but\n // distinguishing between these and host objects -- which should never be\n // compared by value -- is very tricky so not dealing with it here.\n className = className || classToString(obj);\n return isKnownType(className) || isPlainObject(obj, className);\n };\n\n}\n\nbuildClassChecks();\n\nmodule.exports = {\n isSerializable: isSerializable,\n isBoolean: isBoolean,\n isNumber: isNumber,\n isString: isString,\n isDate: isDate,\n isRegExp: isRegExp,\n isFunction: isFunction,\n isArray: isArray,\n isSet: isSet,\n isMap: isMap,\n isError: isError\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/classChecks.js\n// module id = 60\n// module chunks = 0","'use strict';\n\nmodule.exports = 'Boolean Number String Date RegExp Function Array Error Set Map';\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/NATIVE_TYPES.js\n// module id = 61\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar classToString = coreUtilityAliases.classToString;\n\nfunction isClass(obj, className, str) {\n if (!str) {\n str = classToString(obj);\n }\n return str === '[object '+ className +']';\n}\n\nmodule.exports = isClass;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/isClass.js\n// module id = 62\n// module chunks = 0","'use strict';\n\nfunction spaceSplit(str) {\n return str.split(' ');\n}\n\nmodule.exports = spaceSplit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/spaceSplit.js\n// module id = 63\n// module chunks = 0","'use strict';\n\nvar isClass = require('./isClass'),\n isObjectType = require('./isObjectType'),\n hasOwnEnumeratedProperties = require('./hasOwnEnumeratedProperties'),\n hasValidPlainObjectPrototype = require('./hasValidPlainObjectPrototype');\n\nfunction isPlainObject(obj, className) {\n return isObjectType(obj) &&\n isClass(obj, 'Object', className) &&\n hasValidPlainObjectPrototype(obj) &&\n hasOwnEnumeratedProperties(obj);\n}\n\nmodule.exports = isPlainObject;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/isPlainObject.js\n// module id = 64\n// module chunks = 0","'use strict';\n\nfunction isObjectType(obj, type) {\n return !!obj && (type || typeof obj) === 'object';\n}\n\nmodule.exports = isObjectType;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/isObjectType.js\n// module id = 65\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar hasOwn = coreUtilityAliases.hasOwn;\n\nfunction hasOwnEnumeratedProperties(obj) {\n // Plain objects are generally defined as having enumerated properties\n // all their own, however in early IE environments without defineProperty,\n // there may also be enumerated methods in the prototype chain, so check\n // for both of these cases.\n var objectProto = Object.prototype;\n for (var key in obj) {\n var val = obj[key];\n if (!hasOwn(obj, key) && val !== objectProto[key]) {\n return false;\n }\n }\n return true;\n}\n\nmodule.exports = hasOwnEnumeratedProperties;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/hasOwnEnumeratedProperties.js\n// module id = 66\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar hasOwn = coreUtilityAliases.hasOwn;\n\nfunction hasValidPlainObjectPrototype(obj) {\n var hasToString = 'toString' in obj;\n var hasConstructor = 'constructor' in obj;\n // An object created with Object.create(null) has no methods in the\n // prototype chain, so check if any are missing. The additional hasToString\n // check is for false positives on some host objects in old IE which have\n // toString but no constructor. If the object has an inherited constructor,\n // then check if it is Object (the \"isPrototypeOf\" tapdance here is a more\n // robust way of ensuring this if the global has been hijacked). Note that\n // accessing the constructor directly (without \"in\" or \"hasOwnProperty\")\n // will throw a permissions error in IE8 on cross-domain windows.\n return (!hasConstructor && !hasToString) ||\n (hasConstructor && !hasOwn(obj, 'constructor') &&\n hasOwn(obj.constructor.prototype, 'isPrototypeOf'));\n}\n\nmodule.exports = hasValidPlainObjectPrototype;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/hasValidPlainObjectPrototype.js\n// module id = 67\n// module chunks = 0","'use strict';\n\nfunction isUndefined(o) {\n return o === undefined;\n}\n\nmodule.exports = isUndefined;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/isUndefined.js\n// module id = 68\n// module chunks = 0","'use strict';\n\nmodule.exports = {\n abs: Math.abs,\n pow: Math.pow,\n min: Math.min,\n max: Math.max,\n ceil: Math.ceil,\n floor: Math.floor,\n round: Math.round\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/mathAliases.js\n// module id = 69\n// module chunks = 0","'use strict';\n\nfunction getOrdinalSuffix(num) {\n if (num >= 11 && num <= 13) {\n return 'th';\n } else {\n switch(num % 10) {\n case 1: return 'st';\n case 2: return 'nd';\n case 3: return 'rd';\n default: return 'th';\n }\n }\n}\n\nmodule.exports = getOrdinalSuffix;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/getOrdinalSuffix.js\n// module id = 70\n// module chunks = 0","'use strict';\n\nfunction getRegNonCapturing(src, opt) {\n if (src.length > 1) {\n src = '(?:' + src + ')';\n }\n if (opt) {\n src += '?';\n }\n return src;\n}\n\nmodule.exports = getRegNonCapturing;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getRegNonCapturing.js\n// module id = 71\n// module chunks = 0","'use strict';\n\nfunction getArrayWithOffset(arr, n, alternate, offset) {\n var val;\n if (alternate > 1) {\n val = arr[n + (alternate - 1) * offset];\n }\n return val || arr[n];\n}\n\nmodule.exports = getArrayWithOffset;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getArrayWithOffset.js\n// module id = 72\n// module chunks = 0","'use strict';\n\nvar DateUnits = require('../var/DateUnits'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n isUndefined = require('../../common/internal/isUndefined');\n\nvar YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\nfunction iterateOverDateUnits(fn, startIndex, endIndex) {\n endIndex = endIndex || 0;\n if (isUndefined(startIndex)) {\n startIndex = YEAR_INDEX;\n }\n for (var index = startIndex; index >= endIndex; index--) {\n if (fn(DateUnits[index], index) === false) {\n break;\n }\n }\n}\n\nmodule.exports = iterateOverDateUnits;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/iterateOverDateUnits.js\n// module id = 73\n// module chunks = 0","'use strict';\n\nvar getDaysInMonth = require('../internal/getDaysInMonth');\n\nvar DateUnits = [\n {\n name: 'millisecond',\n method: 'Milliseconds',\n multiplier: 1,\n start: 0,\n end: 999\n },\n {\n name: 'second',\n method: 'Seconds',\n multiplier: 1000,\n start: 0,\n end: 59\n },\n {\n name: 'minute',\n method: 'Minutes',\n multiplier: 60 * 1000,\n start: 0,\n end: 59\n },\n {\n name: 'hour',\n method: 'Hours',\n multiplier: 60 * 60 * 1000,\n start: 0,\n end: 23\n },\n {\n name: 'day',\n alias: 'date',\n method: 'Date',\n ambiguous: true,\n multiplier: 24 * 60 * 60 * 1000,\n start: 1,\n end: function(d) {\n return getDaysInMonth(d);\n }\n },\n {\n name: 'week',\n method: 'ISOWeek',\n ambiguous: true,\n multiplier: 7 * 24 * 60 * 60 * 1000\n },\n {\n name: 'month',\n method: 'Month',\n ambiguous: true,\n multiplier: 30.4375 * 24 * 60 * 60 * 1000,\n start: 0,\n end: 11\n },\n {\n name: 'year',\n method: 'FullYear',\n ambiguous: true,\n multiplier: 365.25 * 24 * 60 * 60 * 1000,\n start: 0\n }\n];\n\nmodule.exports = DateUnits;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/DateUnits.js\n// module id = 74\n// module chunks = 0","'use strict';\n\nvar getYear = require('./getYear'),\n getMonth = require('./getMonth'),\n callDateGet = require('../../common/internal/callDateGet');\n\nfunction getDaysInMonth(d) {\n return 32 - callDateGet(new Date(getYear(d), getMonth(d), 32), 'Date');\n}\n\nmodule.exports = getDaysInMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getDaysInMonth.js\n// module id = 75\n// module chunks = 0","'use strict';\n\nvar callDateGet = require('../../common/internal/callDateGet');\n\nfunction getYear(d) {\n return callDateGet(d, 'FullYear');\n}\n\nmodule.exports = getYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getYear.js\n// module id = 76\n// module chunks = 0","'use strict';\n\nvar _utc = require('../var/_utc');\n\nfunction callDateGet(d, method) {\n return d['get' + (_utc(d) ? 'UTC' : '') + method]();\n}\n\nmodule.exports = callDateGet;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/callDateGet.js\n// module id = 77\n// module chunks = 0","'use strict';\n\nvar privatePropertyAccessor = require('../internal/privatePropertyAccessor');\n\nmodule.exports = privatePropertyAccessor('utc');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/_utc.js\n// module id = 78\n// module chunks = 0","'use strict';\n\nvar PRIVATE_PROP_PREFIX = require('../var/PRIVATE_PROP_PREFIX'),\n coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar setProperty = coreUtilityAliases.setProperty;\n\nfunction privatePropertyAccessor(key) {\n var privateKey = PRIVATE_PROP_PREFIX + key;\n return function(obj, val) {\n if (arguments.length > 1) {\n setProperty(obj, privateKey, val);\n return obj;\n }\n return obj[privateKey];\n };\n}\n\nmodule.exports = privatePropertyAccessor;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/privatePropertyAccessor.js\n// module id = 79\n// module chunks = 0","'use strict';\n\nmodule.exports = '_sugar_';\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/PRIVATE_PROP_PREFIX.js\n// module id = 80\n// module chunks = 0","'use strict';\n\nvar callDateGet = require('../../common/internal/callDateGet');\n\nfunction getMonth(d) {\n return callDateGet(d, 'Month');\n}\n\nmodule.exports = getMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getMonth.js\n// module id = 81\n// module chunks = 0","'use strict';\n\nmodule.exports = {\n HOURS_INDEX: 3,\n DAY_INDEX: 4,\n WEEK_INDEX: 5,\n MONTH_INDEX: 6,\n YEAR_INDEX: 7\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/DateUnitIndexes.js\n// module id = 82\n// module chunks = 0","'use strict';\n\nvar map = require('../../common/internal/map'),\n escapeRegExp = require('../../common/internal/escapeRegExp');\n\nfunction arrayToRegAlternates(arr) {\n var joined = arr.join('');\n if (!arr || !arr.length) {\n return '';\n }\n if (joined.length === arr.length) {\n return '[' + joined + ']';\n }\n // map handles sparse arrays so no need to compact the array here.\n return map(arr, escapeRegExp).join('|');\n}\n\nmodule.exports = arrayToRegAlternates;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/arrayToRegAlternates.js\n// module id = 83\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../var/classChecks');\n\nvar isString = classChecks.isString;\n\nfunction escapeRegExp(str) {\n if (!isString(str)) str = String(str);\n return str.replace(/([\\\\\\/\\'*+?|()\\[\\]{}.^$-])/g,'\\\\$1');\n}\n\nmodule.exports = escapeRegExp;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/escapeRegExp.js\n// module id = 84\n// module chunks = 0","'use strict';\n\nvar CommonChars = require('./CommonChars'),\n chr = require('./chr'),\n allCharsReg = require('../internal/allCharsReg');\n\nvar HALF_WIDTH_ZERO = CommonChars.HALF_WIDTH_ZERO,\n FULL_WIDTH_ZERO = CommonChars.FULL_WIDTH_ZERO,\n HALF_WIDTH_PERIOD = CommonChars.HALF_WIDTH_PERIOD,\n FULL_WIDTH_PERIOD = CommonChars.FULL_WIDTH_PERIOD,\n HALF_WIDTH_COMMA = CommonChars.HALF_WIDTH_COMMA;\n\nvar fullWidthNumberReg, fullWidthNumberMap, fullWidthNumbers;\n\nfunction buildFullWidthNumber() {\n var fwp = FULL_WIDTH_PERIOD, hwp = HALF_WIDTH_PERIOD, hwc = HALF_WIDTH_COMMA, fwn = '';\n fullWidthNumberMap = {};\n for (var i = 0, digit; i <= 9; i++) {\n digit = chr(i + FULL_WIDTH_ZERO);\n fwn += digit;\n fullWidthNumberMap[digit] = chr(i + HALF_WIDTH_ZERO);\n }\n fullWidthNumberMap[hwc] = '';\n fullWidthNumberMap[fwp] = hwp;\n // Mapping this to itself to capture it easily\n // in stringToNumber to detect decimals later.\n fullWidthNumberMap[hwp] = hwp;\n fullWidthNumberReg = allCharsReg(fwn + fwp + hwc + hwp);\n fullWidthNumbers = fwn;\n}\n\nbuildFullWidthNumber();\n\nmodule.exports = {\n fullWidthNumberReg: fullWidthNumberReg,\n fullWidthNumberMap: fullWidthNumberMap,\n fullWidthNumbers: fullWidthNumbers\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/fullwidthNumberHelpers.js\n// module id = 85\n// module chunks = 0","'use strict';\n\nmodule.exports = String.fromCharCode;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/chr.js\n// module id = 86\n// module chunks = 0","'use strict';\n\nfunction allCharsReg(src) {\n return RegExp('[' + src + ']', 'g');\n}\n\nmodule.exports = allCharsReg;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/allCharsReg.js\n// module id = 87\n// module chunks = 0","'use strict';\n\nvar trunc = require('../../common/var/trunc'),\n withPrecision = require('../../common/internal/withPrecision'),\n getAdjustedUnit = require('./getAdjustedUnit');\n\nfunction getAdjustedUnitForNumber(ms) {\n return getAdjustedUnit(ms, function(unit) {\n return trunc(withPrecision(ms / unit.multiplier, 1));\n });\n}\n\nmodule.exports = getAdjustedUnitForNumber;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getAdjustedUnitForNumber.js\n// module id = 88\n// module chunks = 0","'use strict';\n\nvar mathAliases = require('./mathAliases');\n\nvar ceil = mathAliases.ceil,\n floor = mathAliases.floor;\n\nvar trunc = Math.trunc || function(n) {\n if (n === 0 || !isFinite(n)) return n;\n return n < 0 ? ceil(n) : floor(n);\n};\n\nmodule.exports = trunc;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/trunc.js\n// module id = 89\n// module chunks = 0","'use strict';\n\nvar mathAliases = require('../var/mathAliases');\n\nvar abs = mathAliases.abs,\n pow = mathAliases.pow,\n round = mathAliases.round;\n\nfunction withPrecision(val, precision, fn) {\n var multiplier = pow(10, abs(precision || 0));\n fn = fn || round;\n if (precision < 0) multiplier = 1 / multiplier;\n return fn(val * multiplier) / multiplier;\n}\n\nmodule.exports = withPrecision;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/withPrecision.js\n// module id = 90\n// module chunks = 0","'use strict';\n\nvar mathAliases = require('../../common/var/mathAliases'),\n iterateOverDateUnits = require('./iterateOverDateUnits');\n\nvar abs = mathAliases.abs;\n\nfunction getAdjustedUnit(ms, fn) {\n var unitIndex = 0, value = 0;\n iterateOverDateUnits(function(unit, i) {\n value = abs(fn(unit));\n if (value >= 1) {\n unitIndex = i;\n return false;\n }\n });\n return [value, unitIndex, ms];\n}\n\nmodule.exports = getAdjustedUnit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getAdjustedUnit.js\n// module id = 91\n// module chunks = 0","'use strict';\n\nvar LocalizedParsingTokens = require('../var/LocalizedParsingTokens'),\n getRegNonCapturing = require('./getRegNonCapturing');\n\nfunction getParsingTokenWithSuffix(field, src, suffix) {\n var token = LocalizedParsingTokens[field];\n if (token.requiresSuffix) {\n src = getRegNonCapturing(src + getRegNonCapturing(suffix));\n } else if (token.requiresSuffixOr) {\n src += getRegNonCapturing(token.requiresSuffixOr + '|' + suffix);\n } else {\n src += getRegNonCapturing(suffix, true);\n }\n return src;\n}\n\nmodule.exports = getParsingTokenWithSuffix;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getParsingTokenWithSuffix.js\n// module id = 92\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n createDate = require('./internal/createDate');\n\nrequire('./build/setDateChainableConstructorCall');\n\nSugar.Date.defineStatic({\n\n 'create': function(d, options) {\n return createDate(d, options);\n }\n\n});\n\nmodule.exports = Sugar.Date.create;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/create.js\n// module id = 93\n// module chunks = 0","'use strict';\n\nvar getExtendedDate = require('./getExtendedDate');\n\nfunction createDate(d, options, forceClone) {\n return getExtendedDate(null, d, options, forceClone).date;\n}\n\nmodule.exports = createDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/createDate.js\n// module id = 94\n// module chunks = 0","'use strict';\n\nvar MINUTES = require('../var/MINUTES'),\n ParsingTokens = require('../var/ParsingTokens'),\n LocaleHelpers = require('../var/LocaleHelpers'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n _utc = require('../../common/var/_utc'),\n trunc = require('../../common/var/trunc'),\n forEach = require('../../common/internal/forEach'),\n tzOffset = require('./tzOffset'),\n resetTime = require('./resetTime'),\n isDefined = require('../../common/internal/isDefined'),\n setWeekday = require('./setWeekday'),\n updateDate = require('./updateDate'),\n getNewDate = require('./getNewDate'),\n isUndefined = require('../../common/internal/isUndefined'),\n classChecks = require('../../common/var/classChecks'),\n advanceDate = require('./advanceDate'),\n simpleClone = require('../../common/internal/simpleClone'),\n isObjectType = require('../../common/internal/isObjectType'),\n moveToEndOfUnit = require('./moveToEndOfUnit'),\n deleteDateParam = require('./deleteDateParam'),\n coreUtilityAliases = require('../../common/var/coreUtilityAliases'),\n getParsingTokenValue = require('./getParsingTokenValue'),\n moveToBeginningOfUnit = require('./moveToBeginningOfUnit'),\n iterateOverDateParams = require('./iterateOverDateParams'),\n getYearFromAbbreviation = require('./getYearFromAbbreviation'),\n iterateOverHigherDateParams = require('./iterateOverHigherDateParams');\n\nvar isNumber = classChecks.isNumber,\n isString = classChecks.isString,\n isDate = classChecks.isDate,\n hasOwn = coreUtilityAliases.hasOwn,\n getOwn = coreUtilityAliases.getOwn,\n English = LocaleHelpers.English,\n localeManager = LocaleHelpers.localeManager,\n DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,\n YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\nfunction getExtendedDate(contextDate, d, opt, forceClone) {\n\n var date, set, loc, options, afterCallbacks, relative, weekdayDir;\n\n afterCallbacks = [];\n options = getDateOptions(opt);\n\n function getDateOptions(opt) {\n var options = isString(opt) ? { locale: opt } : opt || {};\n options.prefer = +!!getOwn(options, 'future') - +!!getOwn(options, 'past');\n return options;\n }\n\n function getFormatParams(match, dif) {\n var set = getOwn(options, 'params') || {};\n forEach(dif.to, function(field, i) {\n var str = match[i + 1], token, val;\n if (!str) return;\n if (field === 'yy' || field === 'y') {\n field = 'year';\n val = getYearFromAbbreviation(str, date, getOwn(options, 'prefer'));\n } else if (token = getOwn(ParsingTokens, field)) {\n field = token.param || field;\n val = getParsingTokenValue(token, str);\n } else {\n val = loc.getTokenValue(field, str);\n }\n set[field] = val;\n });\n return set;\n }\n\n // Clone date will set the utc flag, but it will\n // be overriden later, so set option flags instead.\n function cloneDateByFlag(d, clone) {\n if (_utc(d) && !isDefined(getOwn(options, 'fromUTC'))) {\n options.fromUTC = true;\n }\n if (_utc(d) && !isDefined(getOwn(options, 'setUTC'))) {\n options.setUTC = true;\n }\n if (clone) {\n d = new Date(d.getTime());\n }\n return d;\n }\n\n function afterDateSet(fn) {\n afterCallbacks.push(fn);\n }\n\n function fireCallbacks() {\n forEach(afterCallbacks, function(fn) {\n fn.call();\n });\n }\n\n function parseStringDate(str) {\n\n str = str.toLowerCase();\n\n // The act of getting the locale will initialize\n // if it is missing and add the required formats.\n loc = localeManager.get(getOwn(options, 'locale'));\n\n for (var i = 0, dif, match; dif = loc.compiledFormats[i]; i++) {\n match = str.match(dif.reg);\n if (match) {\n\n // Note that caching the format will modify the compiledFormats array\n // which is not a good idea to do inside its for loop, however we\n // know at this point that we have a matched format and that we will\n // break out below, so simpler to do it here.\n loc.cacheFormat(dif, i);\n\n set = getFormatParams(match, dif);\n\n if (isDefined(set.timestamp)) {\n str = set.timestamp;\n set = null;\n break;\n }\n\n if (isDefined(set.ampm)) {\n handleAmpm(set.ampm);\n }\n\n if (set.utc || isDefined(set.tzHour)) {\n handleTimezoneOffset(set.tzHour, set.tzMinute, set.tzSign);\n }\n\n if (isDefined(set.shift) && isUndefined(set.unit)) {\n // \"next january\", \"next monday\", etc\n handleUnitlessShift();\n }\n\n if (isDefined(set.num) && isUndefined(set.unit)) {\n // \"the second of January\", etc\n handleUnitlessNum(set.num);\n }\n\n if (set.midday) {\n // \"noon\" and \"midnight\"\n handleMidday(set.midday);\n }\n\n if (isDefined(set.day)) {\n // Relative day localizations such as \"today\" and \"tomorrow\".\n handleRelativeDay(set.day);\n }\n\n if (isDefined(set.unit)) {\n // \"3 days ago\", etc\n handleRelativeUnit(set.unit);\n }\n\n if (set.edge) {\n // \"the end of January\", etc\n handleEdge(set.edge, set);\n }\n\n if (set.yearSign) {\n set.year *= set.yearSign;\n }\n\n break;\n }\n }\n\n if (!set) {\n // Fall back to native parsing\n date = new Date(str);\n if (getOwn(options, 'fromUTC')) {\n // Falling back to system date here which cannot be parsed as UTC,\n // so if we're forcing UTC then simply add the offset.\n date.setTime(date.getTime() + (tzOffset(date) * MINUTES));\n }\n } else if (relative) {\n updateDate(date, set, false, 1);\n } else {\n if (_utc(date)) {\n // UTC times can traverse into other days or even months,\n // so preemtively reset the time here to prevent this.\n resetTime(date);\n }\n updateDate(date, set, true, 0, getOwn(options, 'prefer'), weekdayDir);\n }\n fireCallbacks();\n return date;\n }\n\n function handleAmpm(ampm) {\n if (ampm === 1 && set.hour < 12) {\n // If the time is 1pm-11pm advance the time by 12 hours.\n set.hour += 12;\n } else if (ampm === 0 && set.hour === 12) {\n // If it is 12:00am then set the hour to 0.\n set.hour = 0;\n }\n }\n\n function handleTimezoneOffset(tzHour, tzMinute, tzSign) {\n // Adjust for timezone offset\n _utc(date, true);\n var offset = (tzSign || 1) * ((tzHour || 0) * 60 + (tzMinute || 0));\n if (offset) {\n set.minute = (set.minute || 0) - offset;\n }\n }\n\n function handleUnitlessShift() {\n if (isDefined(set.month)) {\n // \"next January\"\n set.unit = YEAR_INDEX;\n } else if (isDefined(set.weekday)) {\n // \"next Monday\"\n set.unit = WEEK_INDEX;\n }\n }\n\n function handleUnitlessNum(num) {\n if (isDefined(set.weekday)) {\n // \"The second Tuesday of March\"\n setOrdinalWeekday(num);\n } else if (isDefined(set.month)) {\n // \"The second of March\"\n set.date = set.num;\n }\n }\n\n function handleMidday(hour) {\n set.hour = hour % 24;\n if (hour > 23) {\n // If the date has hours past 24, we need to prevent it from traversing\n // into a new day as that would make it being part of a new week in\n // ambiguous dates such as \"Monday\".\n afterDateSet(function() {\n advanceDate(date, 'date', trunc(hour / 24));\n });\n }\n }\n\n function handleRelativeDay() {\n resetTime(date);\n if (isUndefined(set.unit)) {\n set.unit = DAY_INDEX;\n set.num = set.day;\n delete set.day;\n }\n }\n\n function handleRelativeUnit(unitIndex) {\n var num = isDefined(set.num) ? set.num : 1;\n\n // If a weekday is defined, there are 3 possible formats being applied:\n //\n // 1. \"the day after monday\": unit is days\n // 2. \"next monday\": short for \"next week monday\", unit is weeks\n // 3. \"the 2nd monday of next month\": unit is months\n //\n // In the first case, we need to set the weekday up front, as the day is\n // relative to it. The second case also needs to be handled up front for\n // formats like \"next monday at midnight\" which will have its weekday reset\n // if not set up front. The last case will set up the params necessary to\n // shift the weekday and allow separateAbsoluteUnits below to handle setting\n // it after the date has been shifted.\n if(isDefined(set.weekday)) {\n if(unitIndex === MONTH_INDEX) {\n setOrdinalWeekday(num);\n num = 1;\n } else {\n updateDate(date, { weekday: set.weekday }, true);\n delete set.weekday;\n }\n }\n\n if (set.half) {\n // Allow localized \"half\" as a standalone colloquialism. Purposely avoiding\n // the locale number system to reduce complexity. The units \"month\" and\n // \"week\" are purposely excluded in the English date formats below, as\n // \"half a week\" and \"half a month\" are meaningless as exact dates.\n num *= set.half;\n }\n\n if (isDefined(set.shift)) {\n // Shift and unit, ie \"next month\", \"last week\", etc.\n num *= set.shift;\n } else if (set.sign) {\n // Unit and sign, ie \"months ago\", \"weeks from now\", etc.\n num *= set.sign;\n }\n\n if (isDefined(set.day)) {\n // \"the day after tomorrow\"\n num += set.day;\n delete set.day;\n }\n\n // Formats like \"the 15th of last month\" or \"6:30pm of next week\"\n // contain absolute units in addition to relative ones, so separate\n // them here, remove them from the params, and set up a callback to\n // set them after the relative ones have been set.\n separateAbsoluteUnits(unitIndex);\n\n // Finally shift the unit.\n set[English.units[unitIndex]] = num;\n relative = true;\n }\n\n function handleEdge(edge, params) {\n var edgeIndex = params.unit, weekdayOfMonth;\n if (!edgeIndex) {\n // If we have \"the end of January\", then we need to find the unit index.\n iterateOverHigherDateParams(params, function(unitName, val, unit, i) {\n if (unitName === 'weekday' && isDefined(params.month)) {\n // If both a month and weekday exist, then we have a format like\n // \"the last tuesday in November, 2012\", where the \"last\" is still\n // relative to the end of the month, so prevent the unit \"weekday\"\n // from taking over.\n return;\n }\n edgeIndex = i;\n });\n }\n if (edgeIndex === MONTH_INDEX && isDefined(params.weekday)) {\n // If a weekday in a month exists (as described above),\n // then set it up to be set after the date has been shifted.\n weekdayOfMonth = params.weekday;\n delete params.weekday;\n }\n afterDateSet(function() {\n var stopIndex;\n // \"edge\" values that are at the very edge are \"2\" so the beginning of the\n // year is -2 and the end of the year is 2. Conversely, the \"last day\" is\n // actually 00:00am so it is 1. -1 is reserved but unused for now.\n if (edge < 0) {\n moveToBeginningOfUnit(date, edgeIndex, getOwn(options, 'locale'));\n } else if (edge > 0) {\n if (edge === 1) {\n stopIndex = DAY_INDEX;\n moveToBeginningOfUnit(date, DAY_INDEX);\n }\n moveToEndOfUnit(date, edgeIndex, getOwn(options, 'locale'), stopIndex);\n }\n if (isDefined(weekdayOfMonth)) {\n setWeekday(date, weekdayOfMonth, -edge);\n resetTime(date);\n }\n });\n if (edgeIndex === MONTH_INDEX) {\n params.specificity = DAY_INDEX;\n } else {\n params.specificity = edgeIndex - 1;\n }\n }\n\n function setOrdinalWeekday(num) {\n // If we have \"the 2nd Tuesday of June\", then pass the \"weekdayDir\"\n // flag along to updateDate so that the date does not accidentally traverse\n // into the previous month. This needs to be independent of the \"prefer\"\n // flag because we are only ensuring that the weekday is in the future, not\n // the entire date.\n set.weekday = 7 * (num - 1) + set.weekday;\n set.date = 1;\n weekdayDir = 1;\n }\n\n function separateAbsoluteUnits(unitIndex) {\n var params;\n\n iterateOverDateParams(set, function(name, val, unit, i) {\n // If there is a time unit set that is more specific than\n // the matched unit we have a string like \"5:30am in 2 minutes\",\n // which is meaningless, so invalidate the date...\n if (i >= unitIndex) {\n date.setTime(NaN);\n return false;\n } else if (i < unitIndex) {\n // ...otherwise set the params to set the absolute date\n // as a callback after the relative date has been set.\n params = params || {};\n params[name] = val;\n deleteDateParam(set, name);\n }\n });\n if (params) {\n afterDateSet(function() {\n updateDate(date, params, true, false, getOwn(options, 'prefer'), weekdayDir);\n });\n if (set.edge) {\n // \"the end of March of next year\"\n handleEdge(set.edge, params);\n delete set.edge;\n }\n }\n }\n\n if (contextDate && d) {\n // If a context date is passed (\"get\" and \"unitsFromNow\"),\n // then use it as the starting point.\n date = cloneDateByFlag(contextDate, true);\n } else {\n date = getNewDate();\n }\n\n _utc(date, getOwn(options, 'fromUTC'));\n\n if (isString(d)) {\n date = parseStringDate(d);\n } else if (isDate(d)) {\n date = cloneDateByFlag(d, hasOwn(options, 'clone') || forceClone);\n } else if (isObjectType(d)) {\n set = simpleClone(d);\n updateDate(date, set, true);\n } else if (isNumber(d) || d === null) {\n date.setTime(d);\n }\n // A date created by parsing a string presumes that the format *itself* is\n // UTC, but not that the date, once created, should be manipulated as such. In\n // other words, if you are creating a date object from a server time\n // \"2012-11-15T12:00:00Z\", in the majority of cases you are using it to create\n // a date that will, after creation, be manipulated as local, so reset the utc\n // flag here unless \"setUTC\" is also set.\n _utc(date, !!getOwn(options, 'setUTC'));\n return {\n set: set,\n date: date\n };\n}\n\nmodule.exports = getExtendedDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getExtendedDate.js\n// module id = 95\n// module chunks = 0","'use strict';\n\nmodule.exports = 60 * 1000;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/MINUTES.js\n// module id = 96\n// module chunks = 0","'use strict';\n\nfunction tzOffset(d) {\n return d.getTimezoneOffset();\n}\n\nmodule.exports = tzOffset;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/tzOffset.js\n// module id = 97\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes'),\n setUnitAndLowerToEdge = require('./setUnitAndLowerToEdge');\n\nvar HOURS_INDEX = DateUnitIndexes.HOURS_INDEX;\n\nfunction resetTime(d) {\n return setUnitAndLowerToEdge(d, HOURS_INDEX);\n}\n\nmodule.exports = resetTime;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/resetTime.js\n// module id = 98\n// module chunks = 0","'use strict';\n\nvar isDefined = require('../../common/internal/isDefined'),\n classChecks = require('../../common/var/classChecks'),\n callDateSet = require('../../common/internal/callDateSet'),\n walkUnitDown = require('./walkUnitDown');\n\nvar isFunction = classChecks.isFunction;\n\nfunction setUnitAndLowerToEdge(d, startIndex, stopIndex, end) {\n walkUnitDown(startIndex, function(unit, i) {\n var val = end ? unit.end : unit.start;\n if (isFunction(val)) {\n val = val(d);\n }\n callDateSet(d, unit.method, val);\n return !isDefined(stopIndex) || i > stopIndex;\n });\n return d;\n}\n\nmodule.exports = setUnitAndLowerToEdge;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setUnitAndLowerToEdge.js\n// module id = 99\n// module chunks = 0","'use strict';\n\nvar _utc = require('../var/_utc'),\n callDateGet = require('./callDateGet');\n\nfunction callDateSet(d, method, value, safe) {\n // \"Safe\" denotes not setting the date if the value is the same as what is\n // currently set. In theory this should be a noop, however it will cause\n // timezone shifts when in the middle of a DST fallback. This is unavoidable\n // as the notation itself is ambiguous (i.e. there are two \"1:00ams\" on\n // November 1st, 2015 in northern hemisphere timezones that follow DST),\n // however when advancing or rewinding dates this can throw off calculations\n // so avoiding this unintentional shifting on an opt-in basis.\n if (safe && value === callDateGet(d, method, value)) {\n return;\n }\n d['set' + (_utc(d) ? 'UTC' : '') + method](value);\n}\n\nmodule.exports = callDateSet;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/callDateSet.js\n// module id = 100\n// module chunks = 0","'use strict';\n\nvar DateUnits = require('../var/DateUnits'),\n getLowerUnitIndex = require('./getLowerUnitIndex');\n\nfunction walkUnitDown(unitIndex, fn) {\n while (unitIndex >= 0) {\n if (fn(DateUnits[unitIndex], unitIndex) === false) {\n break;\n }\n unitIndex = getLowerUnitIndex(unitIndex);\n }\n}\n\nmodule.exports = walkUnitDown;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/walkUnitDown.js\n// module id = 101\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes');\n\nvar HOURS_INDEX = DateUnitIndexes.HOURS_INDEX,\n DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\nfunction getLowerUnitIndex(index) {\n if (index === MONTH_INDEX) {\n return DAY_INDEX;\n } else if (index === WEEK_INDEX) {\n return HOURS_INDEX;\n }\n return index - 1;\n}\n\nmodule.exports = getLowerUnitIndex;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getLowerUnitIndex.js\n// module id = 102\n// module chunks = 0","'use strict';\n\nvar setDate = require('./setDate'),\n getDate = require('./getDate'),\n getWeekday = require('./getWeekday'),\n classChecks = require('../../common/var/classChecks'),\n mathAliases = require('../../common/var/mathAliases');\n\nvar isNumber = classChecks.isNumber,\n abs = mathAliases.abs;\n\nfunction setWeekday(d, dow, dir) {\n if (!isNumber(dow)) return;\n var currentWeekday = getWeekday(d);\n if (dir) {\n // Allow a \"direction\" parameter to determine whether a weekday can\n // be set beyond the current weekday in either direction.\n var ndir = dir > 0 ? 1 : -1;\n var offset = dow % 7 - currentWeekday;\n if (offset && offset / abs(offset) !== ndir) {\n dow += 7 * ndir;\n }\n }\n setDate(d, getDate(d) + dow - currentWeekday);\n return d.getTime();\n}\n\nmodule.exports = setWeekday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setWeekday.js\n// module id = 103\n// module chunks = 0","'use strict';\n\nvar callDateSet = require('../../common/internal/callDateSet');\n\nfunction setDate(d, val) {\n callDateSet(d, 'Date', val);\n}\n\nmodule.exports = setDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setDate.js\n// module id = 104\n// module chunks = 0","'use strict';\n\nvar callDateGet = require('../../common/internal/callDateGet');\n\nfunction getDate(d) {\n return callDateGet(d, 'Date');\n}\n\nmodule.exports = getDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getDate.js\n// module id = 105\n// module chunks = 0","'use strict';\n\nvar callDateGet = require('../../common/internal/callDateGet');\n\nfunction getWeekday(d) {\n return callDateGet(d, 'Day');\n}\n\nmodule.exports = getWeekday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getWeekday.js\n// module id = 106\n// module chunks = 0","'use strict';\n\nvar DateUnits = require('../var/DateUnits'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n trunc = require('../../common/var/trunc'),\n setDate = require('./setDate'),\n getDate = require('./getDate'),\n getMonth = require('./getMonth'),\n getNewDate = require('./getNewDate'),\n setWeekday = require('./setWeekday'),\n mathAliases = require('../../common/var/mathAliases'),\n callDateGet = require('../../common/internal/callDateGet'),\n classChecks = require('../../common/var/classChecks'),\n resetLowerUnits = require('./resetLowerUnits'),\n getLowerUnitIndex = require('./getLowerUnitIndex'),\n getHigherUnitIndex = require('./getHigherUnitIndex'),\n callDateSetWithWeek = require('./callDateSetWithWeek'),\n iterateOverDateParams = require('./iterateOverDateParams');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,\n YEAR_INDEX = DateUnitIndexes.YEAR_INDEX,\n round = mathAliases.round,\n isNumber = classChecks.isNumber;\n\nfunction updateDate(d, params, reset, advance, prefer, weekdayDir) {\n var upperUnitIndex;\n\n function setUpperUnit(unitName, unitIndex) {\n if (prefer && !upperUnitIndex) {\n if (unitName === 'weekday') {\n upperUnitIndex = WEEK_INDEX;\n } else {\n upperUnitIndex = getHigherUnitIndex(unitIndex);\n }\n }\n }\n\n function setSpecificity(unitIndex) {\n // Other functions may preemptively set the specificity before arriving\n // here so concede to them if they have already set more specific units.\n if (unitIndex > params.specificity) {\n return;\n }\n params.specificity = unitIndex;\n }\n\n function canDisambiguate() {\n if (!upperUnitIndex || upperUnitIndex > YEAR_INDEX) {\n return;\n }\n switch(prefer) {\n case -1: return d > getNewDate();\n case 1: return d < getNewDate();\n }\n }\n\n function disambiguateHigherUnit() {\n var unit = DateUnits[upperUnitIndex];\n advance = prefer;\n setUnit(unit.name, 1, unit, upperUnitIndex);\n }\n\n function handleFraction(unit, unitIndex, fraction) {\n if (unitIndex) {\n var lowerUnit = DateUnits[getLowerUnitIndex(unitIndex)];\n var val = round(unit.multiplier / lowerUnit.multiplier * fraction);\n params[lowerUnit.name] = val;\n }\n }\n\n function monthHasShifted(d, targetMonth) {\n if (targetMonth < 0) {\n targetMonth = targetMonth % 12 + 12;\n }\n return targetMonth % 12 !== getMonth(d);\n }\n\n function setUnit(unitName, value, unit, unitIndex) {\n var method = unit.method, checkMonth, fraction;\n\n setUpperUnit(unitName, unitIndex);\n setSpecificity(unitIndex);\n\n fraction = value % 1;\n if (fraction) {\n handleFraction(unit, unitIndex, fraction);\n value = trunc(value);\n }\n\n if (unitName === 'weekday') {\n if (!advance) {\n // Weekdays are always considered absolute units so simply set them\n // here even if it is an \"advance\" operation. This is to help avoid\n // ambiguous meanings in \"advance\" as well as to neatly allow formats\n // like \"Wednesday of next week\" without more complex logic.\n setWeekday(d, value, weekdayDir);\n }\n return;\n }\n checkMonth = unitIndex === MONTH_INDEX && getDate(d) > 28;\n\n // If we are advancing or rewinding, then we need we need to set the\n // absolute time if the unit is \"hours\" or less. This is due to the fact\n // that setting by method is ambiguous during DST shifts. For example,\n // 1:00am on November 1st 2015 occurs twice in North American timezones\n // with DST, the second time being after the clocks are rolled back at\n // 2:00am. When springing forward this is automatically handled as there\n // is no 2:00am so the date automatically jumps to 3:00am. However, when\n // rolling back, setHours(2) will always choose the first \"2am\" even if\n // the date is currently set to the second, causing unintended jumps.\n // This ambiguity is unavoidable when setting dates as the notation is\n // ambiguous. However when advancing, we clearly want the resulting date\n // to be an acutal hour ahead, which can only be accomplished by setting\n // the absolute time. Conversely, any unit higher than \"hours\" MUST use\n // the internal set methods, as they are ambiguous as absolute units of\n // time. Years may be 365 or 366 days depending on leap years, months are\n // all over the place, and even days may be 23-25 hours depending on DST\n // shifts. Finally, note that the kind of jumping described above will\n // occur when calling ANY \"set\" method on the date and will occur even if\n // the value being set is identical to the one currently set (i.e.\n // setHours(2) on a date at 2am may not be a noop). This is precarious,\n // so avoiding this situation in callDateSet by checking up front that\n // the value is not the same before setting.\n if (advance && !unit.ambiguous) {\n d.setTime(d.getTime() + (value * advance * unit.multiplier));\n return;\n } else if (advance) {\n if (unitIndex === WEEK_INDEX) {\n value *= 7;\n method = DateUnits[DAY_INDEX].method;\n }\n value = (value * advance) + callDateGet(d, method);\n }\n callDateSetWithWeek(d, method, value, advance);\n if (checkMonth && monthHasShifted(d, value)) {\n // As we are setting the units in reverse order, there is a chance that\n // our date may accidentally traverse into a new month, such as setting\n // { month: 1, date 15 } on January 31st. Check for this here and reset\n // the date to the last day of the previous month if this has happened.\n setDate(d, 0);\n }\n }\n\n if (isNumber(params) && advance) {\n // If param is a number and advancing, the number is in milliseconds.\n params = { millisecond: params };\n } else if (isNumber(params)) {\n // Otherwise just set the timestamp and return.\n d.setTime(params);\n return d;\n }\n\n iterateOverDateParams(params, setUnit);\n\n if (reset && params.specificity) {\n resetLowerUnits(d, params.specificity);\n }\n\n // If past or future is preferred, then the process of \"disambiguation\" will\n // ensure that an ambiguous time/date (\"4pm\", \"thursday\", \"June\", etc.) will\n // be in the past or future. Weeks are only considered ambiguous if there is\n // a weekday, i.e. \"thursday\" is an ambiguous week, but \"the 4th\" is an\n // ambiguous month.\n if (canDisambiguate()) {\n disambiguateHigherUnit();\n }\n return d;\n}\n\nmodule.exports = updateDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/updateDate.js\n// module id = 107\n// module chunks = 0","'use strict';\n\nvar _dateOptions = require('../var/_dateOptions');\n\nfunction getNewDate() {\n return _dateOptions('newDateInternal')();\n}\n\nmodule.exports = getNewDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getNewDate.js\n// module id = 108\n// module chunks = 0","'use strict';\n\nvar DATE_OPTIONS = require('./DATE_OPTIONS'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n defineOptionsAccessor = require('../../common/internal/defineOptionsAccessor');\n\nvar sugarDate = namespaceAliases.sugarDate;\n\nmodule.exports = defineOptionsAccessor(sugarDate, DATE_OPTIONS);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/_dateOptions.js\n// module id = 109\n// module chunks = 0","'use strict';\n\nvar defaultNewDate = require('../internal/defaultNewDate');\n\nvar DATE_OPTIONS = {\n 'newDateInternal': defaultNewDate\n};\n\nmodule.exports = DATE_OPTIONS;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/DATE_OPTIONS.js\n// module id = 110\n// module chunks = 0","'use strict';\n\nfunction defaultNewDate() {\n return new Date;\n}\n\nmodule.exports = defaultNewDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/defaultNewDate.js\n// module id = 111\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nmodule.exports = {\n sugarObject: Sugar.Object,\n sugarArray: Sugar.Array,\n sugarDate: Sugar.Date,\n sugarString: Sugar.String,\n sugarNumber: Sugar.Number,\n sugarFunction: Sugar.Function,\n sugarRegExp: Sugar.RegExp\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/namespaceAliases.js\n// module id = 112\n// module chunks = 0","'use strict';\n\nvar simpleClone = require('./simpleClone'),\n defineAccessor = require('./defineAccessor');\n\nfunction defineOptionsAccessor(namespace, defaults) {\n var obj = simpleClone(defaults);\n\n function getOption(name) {\n return obj[name];\n }\n\n function setOption(name, val) {\n if (val === null) {\n val = defaults[name];\n }\n obj[name] = val;\n }\n\n defineAccessor(namespace, 'getOption', getOption);\n defineAccessor(namespace, 'setOption', setOption);\n return getOption;\n}\n\nmodule.exports = defineOptionsAccessor;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/defineOptionsAccessor.js\n// module id = 113\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar setProperty = coreUtilityAliases.setProperty;\n\nfunction defineAccessor(namespace, name, fn) {\n setProperty(namespace, name, fn);\n}\n\nmodule.exports = defineAccessor;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/defineAccessor.js\n// module id = 114\n// module chunks = 0","'use strict';\n\nvar getLowerUnitIndex = require('./getLowerUnitIndex'),\n setUnitAndLowerToEdge = require('./setUnitAndLowerToEdge');\n\nfunction resetLowerUnits(d, unitIndex) {\n return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex));\n}\n\nmodule.exports = resetLowerUnits;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/resetLowerUnits.js\n// module id = 115\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\nfunction getHigherUnitIndex(index) {\n return index === DAY_INDEX ? MONTH_INDEX : index + 1;\n}\n\nmodule.exports = getHigherUnitIndex;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getHigherUnitIndex.js\n// module id = 116\n// module chunks = 0","'use strict';\n\nvar callDateSet = require('../../common/internal/callDateSet'),\n setISOWeekNumber = require('./setISOWeekNumber');\n\nfunction callDateSetWithWeek(d, method, value, safe) {\n if (method === 'ISOWeek') {\n setISOWeekNumber(d, value);\n } else {\n callDateSet(d, method, value, safe);\n }\n}\n\nmodule.exports = callDateSetWithWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/callDateSetWithWeek.js\n// module id = 117\n// module chunks = 0","'use strict';\n\nvar ISODefaults = require('../var/ISODefaults'),\n getDate = require('./getDate'),\n setDate = require('./setDate'),\n setYear = require('./setYear'),\n getYear = require('./getYear'),\n getMonth = require('./getMonth'),\n setMonth = require('./setMonth'),\n cloneDate = require('./cloneDate'),\n getWeekday = require('./getWeekday'),\n setWeekday = require('./setWeekday'),\n classChecks = require('../../common/var/classChecks'),\n moveToFirstDayOfWeekYear = require('./moveToFirstDayOfWeekYear');\n\nvar isNumber = classChecks.isNumber,\n ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,\n ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR;\n\nfunction setISOWeekNumber(d, num) {\n if (isNumber(num)) {\n // Intentionally avoiding updateDate here to prevent circular dependencies.\n var isoWeek = cloneDate(d), dow = getWeekday(d);\n moveToFirstDayOfWeekYear(isoWeek, ISO_FIRST_DAY_OF_WEEK, ISO_FIRST_DAY_OF_WEEK_YEAR);\n setDate(isoWeek, getDate(isoWeek) + 7 * (num - 1));\n setYear(d, getYear(isoWeek));\n setMonth(d, getMonth(isoWeek));\n setDate(d, getDate(isoWeek));\n setWeekday(d, dow || 7);\n }\n return d.getTime();\n}\n\nmodule.exports = setISOWeekNumber;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setISOWeekNumber.js\n// module id = 118\n// module chunks = 0","'use strict';\n\nvar callDateSet = require('../../common/internal/callDateSet');\n\nfunction setYear(d, val) {\n callDateSet(d, 'FullYear', val);\n}\n\nmodule.exports = setYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setYear.js\n// module id = 119\n// module chunks = 0","'use strict';\n\nvar callDateSet = require('../../common/internal/callDateSet');\n\nfunction setMonth(d, val) {\n callDateSet(d, 'Month', val);\n}\n\nmodule.exports = setMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setMonth.js\n// module id = 120\n// module chunks = 0","'use strict';\n\nvar _utc = require('../../common/var/_utc');\n\nfunction cloneDate(d) {\n // Rhino environments have a bug where new Date(d) truncates\n // milliseconds so need to call getTime() here.\n var clone = new Date(d.getTime());\n _utc(clone, !!_utc(d));\n return clone;\n}\n\nmodule.exports = cloneDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/cloneDate.js\n// module id = 121\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes'),\n setDate = require('./setDate'),\n setUnitAndLowerToEdge = require('./setUnitAndLowerToEdge'),\n moveToBeginningOfWeek = require('./moveToBeginningOfWeek');\n\nvar MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\nfunction moveToFirstDayOfWeekYear(d, firstDayOfWeek, firstDayOfWeekYear) {\n setUnitAndLowerToEdge(d, MONTH_INDEX);\n setDate(d, firstDayOfWeekYear);\n moveToBeginningOfWeek(d, firstDayOfWeek);\n}\n\nmodule.exports = moveToFirstDayOfWeekYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/moveToFirstDayOfWeekYear.js\n// module id = 122\n// module chunks = 0","'use strict';\n\nvar setWeekday = require('./setWeekday'),\n getWeekday = require('./getWeekday'),\n mathAliases = require('../../common/var/mathAliases');\n\nvar floor = mathAliases.floor;\n\nfunction moveToBeginningOfWeek(d, firstDayOfWeek) {\n setWeekday(d, floor((getWeekday(d) - firstDayOfWeek) / 7) * 7 + firstDayOfWeek);\n return d;\n}\n\nmodule.exports = moveToBeginningOfWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/moveToBeginningOfWeek.js\n// module id = 123\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes'),\n isDefined = require('../../common/internal/isDefined'),\n getDateParam = require('./getDateParam'),\n iterateOverDateUnits = require('./iterateOverDateUnits');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\nfunction iterateOverDateParams(params, fn, startIndex, endIndex) {\n\n function run(name, unit, i) {\n var val = getDateParam(params, name);\n if (isDefined(val)) {\n fn(name, val, unit, i);\n }\n }\n\n iterateOverDateUnits(function (unit, i) {\n var result = run(unit.name, unit, i);\n if (result !== false && i === DAY_INDEX) {\n // Check for \"weekday\", which has a distinct meaning\n // in the context of setting a date, but has the same\n // meaning as \"day\" as a unit of time.\n result = run('weekday', unit, i);\n }\n return result;\n }, startIndex, endIndex);\n\n}\n\nmodule.exports = iterateOverDateParams;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/iterateOverDateParams.js\n// module id = 124\n// module chunks = 0","'use strict';\n\nvar getDateParamKey = require('./getDateParamKey'),\n coreUtilityAliases = require('../../common/var/coreUtilityAliases');\n\nvar getOwn = coreUtilityAliases.getOwn;\n\nfunction getDateParam(params, key) {\n return getOwn(params, getDateParamKey(params, key));\n}\n\nmodule.exports = getDateParam;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getDateParam.js\n// module id = 125\n// module chunks = 0","'use strict';\n\nvar getOwnKey = require('../../common/internal/getOwnKey');\n\nfunction getDateParamKey(params, key) {\n return getOwnKey(params, key) ||\n getOwnKey(params, key + 's') ||\n (key === 'day' && getOwnKey(params, 'date'));\n}\n\nmodule.exports = getDateParamKey;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getDateParamKey.js\n// module id = 126\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar hasOwn = coreUtilityAliases.hasOwn;\n\nfunction getOwnKey(obj, key) {\n if (hasOwn(obj, key)) {\n return key;\n }\n}\n\nmodule.exports = getOwnKey;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/getOwnKey.js\n// module id = 127\n// module chunks = 0","'use strict';\n\nvar updateDate = require('./updateDate');\n\nfunction advanceDate(d, unit, num, reset) {\n var set = {};\n set[unit] = num;\n return updateDate(d, set, reset, 1);\n}\n\nmodule.exports = advanceDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/advanceDate.js\n// module id = 128\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n moveToEndOfWeek = require('./moveToEndOfWeek'),\n getLowerUnitIndex = require('./getLowerUnitIndex'),\n setUnitAndLowerToEdge = require('./setUnitAndLowerToEdge');\n\nvar WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n localeManager = LocaleHelpers.localeManager;\n\nfunction moveToEndOfUnit(d, unitIndex, localeCode, stopIndex) {\n if (unitIndex === WEEK_INDEX) {\n moveToEndOfWeek(d, localeManager.get(localeCode).getFirstDayOfWeek());\n }\n return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex), stopIndex, true);\n}\n\nmodule.exports = moveToEndOfUnit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/moveToEndOfUnit.js\n// module id = 129\n// module chunks = 0","'use strict';\n\nvar setWeekday = require('./setWeekday'),\n getWeekday = require('./getWeekday'),\n mathAliases = require('../../common/var/mathAliases');\n\nvar ceil = mathAliases.ceil;\n\nfunction moveToEndOfWeek(d, firstDayOfWeek) {\n var target = firstDayOfWeek - 1;\n setWeekday(d, ceil((getWeekday(d) - target) / 7) * 7 + target);\n return d;\n}\n\nmodule.exports = moveToEndOfWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/moveToEndOfWeek.js\n// module id = 130\n// module chunks = 0","'use strict';\n\nvar getDateParamKey = require('./getDateParamKey');\n\nfunction deleteDateParam(params, key) {\n delete params[getDateParamKey(params, key)];\n}\n\nmodule.exports = deleteDateParam;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/deleteDateParam.js\n// module id = 131\n// module chunks = 0","'use strict';\n\nfunction getParsingTokenValue(token, str) {\n var val;\n if (token.val) {\n val = token.val;\n } else if (token.sign) {\n val = str === '+' ? 1 : -1;\n } else if (token.bool) {\n val = !!val;\n } else {\n val = +str.replace(/,/, '.');\n }\n if (token.param === 'month') {\n val -= 1;\n }\n return val;\n}\n\nmodule.exports = getParsingTokenValue;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getParsingTokenValue.js\n// module id = 132\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n getLowerUnitIndex = require('./getLowerUnitIndex'),\n moveToBeginningOfWeek = require('./moveToBeginningOfWeek'),\n setUnitAndLowerToEdge = require('./setUnitAndLowerToEdge');\n\nvar WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n localeManager = LocaleHelpers.localeManager;\n\nfunction moveToBeginningOfUnit(d, unitIndex, localeCode) {\n if (unitIndex === WEEK_INDEX) {\n moveToBeginningOfWeek(d, localeManager.get(localeCode).getFirstDayOfWeek());\n }\n return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex));\n}\n\nmodule.exports = moveToBeginningOfUnit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/moveToBeginningOfUnit.js\n// module id = 133\n// module chunks = 0","'use strict';\n\nvar getYear = require('./getYear'),\n mathAliases = require('../../common/var/mathAliases');\n\nvar abs = mathAliases.abs;\n\nfunction getYearFromAbbreviation(str, d, prefer) {\n // Following IETF here, adding 1900 or 2000 depending on the last two digits.\n // Note that this makes no accordance for what should happen after 2050, but\n // intentionally ignoring this for now. https://www.ietf.org/rfc/rfc2822.txt\n var val = +str, delta;\n val += val < 50 ? 2000 : 1900;\n if (prefer) {\n delta = val - getYear(d);\n if (delta / abs(delta) !== prefer) {\n val += prefer * 100;\n }\n }\n return val;\n}\n\nmodule.exports = getYearFromAbbreviation;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getYearFromAbbreviation.js\n// module id = 134\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes'),\n iterateOverDateParams = require('./iterateOverDateParams');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\nfunction iterateOverHigherDateParams(params, fn) {\n iterateOverDateParams(params, fn, YEAR_INDEX, DAY_INDEX);\n}\n\nmodule.exports = iterateOverHigherDateParams;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/iterateOverHigherDateParams.js\n// module id = 135\n// module chunks = 0","'use strict';\n\nvar setDateChainableConstructor = require('../internal/setDateChainableConstructor');\n\nsetDateChainableConstructor();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/build/setDateChainableConstructorCall.js\n// module id = 136\n// module chunks = 0","'use strict';\n\nvar createDate = require('./createDate'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n setChainableConstructor = require('../../common/internal/setChainableConstructor');\n\nvar sugarDate = namespaceAliases.sugarDate;\n\nfunction setDateChainableConstructor() {\n setChainableConstructor(sugarDate, createDate);\n}\n\nmodule.exports = setDateChainableConstructor;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setDateChainableConstructor.js\n// module id = 137\n// module chunks = 0","'use strict';\n\nfunction setChainableConstructor(sugarNamespace, createFn) {\n sugarNamespace.prototype.constructor = function() {\n return createFn.apply(this, arguments);\n };\n}\n\nmodule.exports = setChainableConstructor;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/setChainableConstructor.js\n// module id = 138\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('./var/LocaleHelpers'),\n getKeys = require('../common/internal/getKeys');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Date.defineStatic({\n\n 'getAllLocaleCodes': function() {\n return getKeys(localeManager.getAll());\n }\n\n});\n\nmodule.exports = Sugar.Date.getAllLocaleCodes;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getAllLocaleCodes.js\n// module id = 139\n// module chunks = 0","'use strict';\n\nfunction getKeys(obj) {\n return Object.keys(obj);\n}\n\nmodule.exports = getKeys;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/getKeys.js\n// module id = 140\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('./var/LocaleHelpers');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Date.defineStatic({\n\n 'getAllLocales': function() {\n return localeManager.getAll();\n }\n\n});\n\nmodule.exports = Sugar.Date.getAllLocales;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getAllLocales.js\n// module id = 141\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('./var/LocaleHelpers');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Date.defineStatic({\n\n 'getLocale': function(code) {\n return localeManager.get(code, !code);\n }\n\n});\n\nmodule.exports = Sugar.Date.getLocale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getLocale.js\n// module id = 142\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('./var/LocaleHelpers');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Date.defineStatic({\n\n 'removeLocale': function(code) {\n return localeManager.remove(code);\n }\n\n});\n\nmodule.exports = Sugar.Date.removeLocale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/removeLocale.js\n// module id = 143\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('./var/LocaleHelpers');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Date.defineStatic({\n\n 'setLocale': function(code) {\n return localeManager.set(code);\n }\n\n});\n\nmodule.exports = Sugar.Date.setLocale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/setLocale.js\n// module id = 144\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.day;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/day.js\n// module id = 145\n// module chunks = 0","'use strict';\n\nvar buildNumberUnitMethods = require('../internal/buildNumberUnitMethods');\n\nbuildNumberUnitMethods();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/build/buildNumberUnitMethodsCall.js\n// module id = 146\n// module chunks = 0","'use strict';\n\nvar DateUnits = require('../var/DateUnits'),\n createDate = require('./createDate'),\n mathAliases = require('../../common/var/mathAliases'),\n advanceDate = require('./advanceDate'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n defineInstanceSimilar = require('../../common/internal/defineInstanceSimilar');\n\nvar sugarNumber = namespaceAliases.sugarNumber,\n round = mathAliases.round;\n\nfunction buildNumberUnitMethods() {\n defineInstanceSimilar(sugarNumber, DateUnits, function(methods, unit) {\n var name = unit.name, base, after, before;\n base = function(n) {\n return round(n * unit.multiplier);\n };\n after = function(n, d, options) {\n return advanceDate(createDate(d, options, true), name, n);\n };\n before = function(n, d, options) {\n return advanceDate(createDate(d, options, true), name, -n);\n };\n methods[name] = base;\n methods[name + 's'] = base;\n methods[name + 'Before'] = before;\n methods[name + 'sBefore'] = before;\n methods[name + 'Ago'] = before;\n methods[name + 'sAgo'] = before;\n methods[name + 'After'] = after;\n methods[name + 'sAfter'] = after;\n methods[name + 'FromNow'] = after;\n methods[name + 'sFromNow'] = after;\n });\n}\n\nmodule.exports = buildNumberUnitMethods;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/buildNumberUnitMethods.js\n// module id = 147\n// module chunks = 0","'use strict';\n\nvar methodDefineAliases = require('../var/methodDefineAliases'),\n collectSimilarMethods = require('./collectSimilarMethods');\n\nvar defineInstance = methodDefineAliases.defineInstance;\n\nfunction defineInstanceSimilar(sugarNamespace, set, fn, flags) {\n defineInstance(sugarNamespace, collectSimilarMethods(set, fn), flags);\n}\n\nmodule.exports = defineInstanceSimilar;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/defineInstanceSimilar.js\n// module id = 148\n// module chunks = 0","'use strict';\n\nvar wrapNamespace = require('../internal/wrapNamespace');\n\nmodule.exports = {\n alias: wrapNamespace('alias'),\n defineStatic: wrapNamespace('defineStatic'),\n defineInstance: wrapNamespace('defineInstance'),\n defineStaticPolyfill: wrapNamespace('defineStaticPolyfill'),\n defineInstancePolyfill: wrapNamespace('defineInstancePolyfill'),\n defineInstanceAndStatic: wrapNamespace('defineInstanceAndStatic'),\n defineInstanceWithArguments: wrapNamespace('defineInstanceWithArguments')\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/methodDefineAliases.js\n// module id = 149\n// module chunks = 0","'use strict';\n\nfunction wrapNamespace(method) {\n return function(sugarNamespace, arg1, arg2) {\n sugarNamespace[method](arg1, arg2);\n };\n}\n\nmodule.exports = wrapNamespace;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/wrapNamespace.js\n// module id = 150\n// module chunks = 0","'use strict';\n\nvar forEach = require('./forEach'),\n spaceSplit = require('./spaceSplit'),\n classChecks = require('../var/classChecks');\n\nvar isString = classChecks.isString;\n\nfunction collectSimilarMethods(set, fn) {\n var methods = {};\n if (isString(set)) {\n set = spaceSplit(set);\n }\n forEach(set, function(el, i) {\n fn(methods, el, i);\n });\n return methods;\n}\n\nmodule.exports = collectSimilarMethods;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/collectSimilarMethods.js\n// module id = 151\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.dayAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/dayAfter.js\n// module id = 152\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.dayAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/dayAgo.js\n// module id = 153\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.dayBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/dayBefore.js\n// module id = 154\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.dayFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/dayFromNow.js\n// module id = 155\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.days;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/days.js\n// module id = 156\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.daysAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/daysAfter.js\n// module id = 157\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.daysAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/daysAgo.js\n// module id = 158\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.daysBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/daysBefore.js\n// module id = 159\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.daysFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/daysFromNow.js\n// module id = 160\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('../date/var/LocaleHelpers');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Number.defineInstance({\n\n 'duration': function(n, localeCode) {\n return localeManager.get(localeCode).getDuration(n);\n }\n\n});\n\nmodule.exports = Sugar.Number.duration;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/duration.js\n// module id = 161\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hour;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hour.js\n// module id = 162\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hourAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hourAfter.js\n// module id = 163\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hourAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hourAgo.js\n// module id = 164\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hourBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hourBefore.js\n// module id = 165\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hourFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hourFromNow.js\n// module id = 166\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hours;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hours.js\n// module id = 167\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hoursAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hoursAfter.js\n// module id = 168\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hoursAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hoursAgo.js\n// module id = 169\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hoursBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hoursBefore.js\n// module id = 170\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hoursFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hoursFromNow.js\n// module id = 171\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecond;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecond.js\n// module id = 172\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondAfter.js\n// module id = 173\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondAgo.js\n// module id = 174\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondBefore.js\n// module id = 175\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondFromNow.js\n// module id = 176\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.milliseconds;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/milliseconds.js\n// module id = 177\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondsAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondsAfter.js\n// module id = 178\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondsAgo.js\n// module id = 179\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondsBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondsBefore.js\n// module id = 180\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondsFromNow.js\n// module id = 181\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minute;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minute.js\n// module id = 182\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minuteAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minuteAfter.js\n// module id = 183\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minuteAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minuteAgo.js\n// module id = 184\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minuteBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minuteBefore.js\n// module id = 185\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minuteFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minuteFromNow.js\n// module id = 186\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minutes;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minutes.js\n// module id = 187\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minutesAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minutesAfter.js\n// module id = 188\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minutesAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minutesAgo.js\n// module id = 189\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minutesBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minutesBefore.js\n// module id = 190\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minutesFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minutesFromNow.js\n// module id = 191\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.month;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/month.js\n// module id = 192\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthAfter.js\n// module id = 193\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthAgo.js\n// module id = 194\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthBefore.js\n// module id = 195\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthFromNow.js\n// module id = 196\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.months;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/months.js\n// module id = 197\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthsAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthsAfter.js\n// module id = 198\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthsAgo.js\n// module id = 199\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthsBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthsBefore.js\n// module id = 200\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthsFromNow.js\n// module id = 201\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.second;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/second.js\n// module id = 202\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondAfter.js\n// module id = 203\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondAgo.js\n// module id = 204\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondBefore.js\n// module id = 205\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondFromNow.js\n// module id = 206\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.seconds;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/seconds.js\n// module id = 207\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondsAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondsAfter.js\n// module id = 208\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondsAgo.js\n// module id = 209\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondsBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondsBefore.js\n// module id = 210\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondsFromNow.js\n// module id = 211\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.week;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/week.js\n// module id = 212\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weekAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weekAfter.js\n// module id = 213\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weekAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weekAgo.js\n// module id = 214\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weekBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weekBefore.js\n// module id = 215\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weekFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weekFromNow.js\n// module id = 216\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weeks;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weeks.js\n// module id = 217\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weeksAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weeksAfter.js\n// module id = 218\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weeksAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weeksAgo.js\n// module id = 219\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weeksBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weeksBefore.js\n// module id = 220\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weeksFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weeksFromNow.js\n// module id = 221\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.year;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/year.js\n// module id = 222\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearAfter.js\n// module id = 223\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearAgo.js\n// module id = 224\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearBefore.js\n// module id = 225\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearFromNow.js\n// module id = 226\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.years;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/years.js\n// module id = 227\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearsAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearsAfter.js\n// module id = 228\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearsAgo.js\n// module id = 229\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearsBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearsBefore.js\n// module id = 230\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearsFromNow.js\n// module id = 231\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addDays;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addDays.js\n// module id = 232\n// module chunks = 0","'use strict';\n\nvar buildDateUnitMethods = require('../internal/buildDateUnitMethods');\n\nbuildDateUnitMethods();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/build/buildDateUnitMethodsCall.js\n// module id = 233\n// module chunks = 0","'use strict';\n\nvar DateUnits = require('../var/DateUnits'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n forEach = require('../../common/internal/forEach'),\n compareDate = require('./compareDate'),\n advanceDate = require('./advanceDate'),\n moveToEndOfUnit = require('./moveToEndOfUnit'),\n simpleCapitalize = require('../../common/internal/simpleCapitalize'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n defineInstanceSimilar = require('../../common/internal/defineInstanceSimilar'),\n moveToBeginningOfUnit = require('./moveToBeginningOfUnit'),\n createDateWithContext = require('./createDateWithContext'),\n getTimeDistanceForUnit = require('./getTimeDistanceForUnit');\n\nvar sugarDate = namespaceAliases.sugarDate,\n HOURS_INDEX = DateUnitIndexes.HOURS_INDEX,\n DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\nfunction buildDateUnitMethods() {\n\n defineInstanceSimilar(sugarDate, DateUnits, function(methods, unit, index) {\n var name = unit.name, caps = simpleCapitalize(name);\n\n if (index > DAY_INDEX) {\n forEach(['Last','This','Next'], function(shift) {\n methods['is' + shift + caps] = function(d, localeCode) {\n return compareDate(d, shift + ' ' + name, 0, localeCode, { locale: 'en' });\n };\n });\n }\n if (index > HOURS_INDEX) {\n methods['beginningOf' + caps] = function(d, localeCode) {\n return moveToBeginningOfUnit(d, index, localeCode);\n };\n methods['endOf' + caps] = function(d, localeCode) {\n return moveToEndOfUnit(d, index, localeCode);\n };\n }\n\n methods['add' + caps + 's'] = function(d, num, reset) {\n return advanceDate(d, name, num, reset);\n };\n\n var since = function(date, d, options) {\n return getTimeDistanceForUnit(date, createDateWithContext(date, d, options, true), unit);\n };\n var until = function(date, d, options) {\n return getTimeDistanceForUnit(createDateWithContext(date, d, options, true), date, unit);\n };\n\n methods[name + 'sAgo'] = methods[name + 'sUntil'] = until;\n methods[name + 'sSince'] = methods[name + 'sFromNow'] = since;\n\n });\n\n}\n\nmodule.exports = buildDateUnitMethods;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/buildDateUnitMethods.js\n// module id = 234\n// module chunks = 0","'use strict';\n\nvar MINUTES = require('../var/MINUTES'),\n DateUnits = require('../var/DateUnits'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n _utc = require('../../common/var/_utc'),\n tzOffset = require('./tzOffset'),\n cloneDate = require('./cloneDate'),\n isDefined = require('../../common/internal/isDefined'),\n advanceDate = require('./advanceDate'),\n dateIsValid = require('./dateIsValid'),\n moveToEndOfUnit = require('./moveToEndOfUnit'),\n getExtendedDate = require('./getExtendedDate'),\n moveToBeginningOfUnit = require('./moveToBeginningOfUnit');\n\nvar MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\nfunction compareDate(date, d, margin, localeCode, options) {\n var loMargin = 0, hiMargin = 0, timezoneShift, compareEdges, override, min, max, p, t;\n\n function getTimezoneShift() {\n // If there is any specificity in the date then we're implicitly not\n // checking absolute time, so ignore timezone shifts.\n if (p.set && p.set.specificity) {\n return 0;\n }\n return (tzOffset(p.date) - tzOffset(date)) * MINUTES;\n }\n\n function addSpecificUnit() {\n var unit = DateUnits[p.set.specificity];\n return advanceDate(cloneDate(p.date), unit.name, 1).getTime() - 1;\n }\n\n if (_utc(date)) {\n options = options || {};\n options.fromUTC = true;\n options.setUTC = true;\n }\n\n p = getExtendedDate(null, d, options, true);\n\n if (margin > 0) {\n loMargin = hiMargin = margin;\n override = true;\n }\n if (!dateIsValid(p.date)) return false;\n if (p.set && p.set.specificity) {\n if (isDefined(p.set.edge) || isDefined(p.set.shift)) {\n compareEdges = true;\n moveToBeginningOfUnit(p.date, p.set.specificity, localeCode);\n }\n if (compareEdges || p.set.specificity === MONTH_INDEX) {\n max = moveToEndOfUnit(cloneDate(p.date), p.set.specificity, localeCode).getTime();\n } else {\n max = addSpecificUnit();\n }\n if (!override && isDefined(p.set.sign) && p.set.specificity) {\n // If the time is relative, there can occasionally be an disparity between\n // the relative date and \"now\", which it is being compared to, so set an\n // extra margin to account for this.\n loMargin = 50;\n hiMargin = -50;\n }\n }\n t = date.getTime();\n min = p.date.getTime();\n max = max || min;\n timezoneShift = getTimezoneShift();\n if (timezoneShift) {\n min -= timezoneShift;\n max -= timezoneShift;\n }\n return t >= (min - loMargin) && t <= (max + hiMargin);\n}\n\nmodule.exports = compareDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/compareDate.js\n// module id = 235\n// module chunks = 0","'use strict';\n\nfunction dateIsValid(d) {\n return !isNaN(d.getTime());\n}\n\nmodule.exports = dateIsValid;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/dateIsValid.js\n// module id = 236\n// module chunks = 0","'use strict';\n\nfunction simpleCapitalize(str) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n\nmodule.exports = simpleCapitalize;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/simpleCapitalize.js\n// module id = 237\n// module chunks = 0","'use strict';\n\nvar getExtendedDate = require('./getExtendedDate');\n\nfunction createDateWithContext(contextDate, d, options, forceClone) {\n return getExtendedDate(contextDate, d, options, forceClone).date;\n}\n\nmodule.exports = createDateWithContext;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/createDateWithContext.js\n// module id = 238\n// module chunks = 0","'use strict';\n\nvar trunc = require('../../common/var/trunc'),\n cloneDate = require('./cloneDate'),\n advanceDate = require('./advanceDate');\n\nfunction getTimeDistanceForUnit(d1, d2, unit) {\n var fwd = d2 > d1, num, tmp;\n if (!fwd) {\n tmp = d2;\n d2 = d1;\n d1 = tmp;\n }\n num = d2 - d1;\n if (unit.multiplier > 1) {\n num = trunc(num / unit.multiplier);\n }\n // For higher order with potential ambiguity, use the numeric calculation\n // as a starting point, then iterate until we pass the target date.\n if (unit.ambiguous) {\n d1 = cloneDate(d1);\n if (num) {\n advanceDate(d1, unit.name, num);\n }\n while (d1 < d2) {\n advanceDate(d1, unit.name, 1);\n if (d1 > d2) {\n break;\n }\n num += 1;\n }\n }\n return fwd ? -num : num;\n}\n\nmodule.exports = getTimeDistanceForUnit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getTimeDistanceForUnit.js\n// module id = 239\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addHours;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addHours.js\n// module id = 240\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addMilliseconds;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addMilliseconds.js\n// module id = 241\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addMinutes;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addMinutes.js\n// module id = 242\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addMonths;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addMonths.js\n// module id = 243\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addSeconds;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addSeconds.js\n// module id = 244\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addWeeks;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addWeeks.js\n// module id = 245\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addYears;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addYears.js\n// module id = 246\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n advanceDateWithArgs = require('./internal/advanceDateWithArgs');\n\nSugar.Date.defineInstanceWithArguments({\n\n 'advance': function(d, args) {\n return advanceDateWithArgs(d, args, 1);\n }\n\n});\n\nmodule.exports = Sugar.Date.advance;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/advance.js\n// module id = 247\n// module chunks = 0","'use strict';\n\nvar updateDate = require('./updateDate'),\n collectDateArguments = require('./collectDateArguments');\n\nfunction advanceDateWithArgs(d, args, dir) {\n args = collectDateArguments(args, true);\n return updateDate(d, args[0], args[1], dir);\n}\n\nmodule.exports = advanceDateWithArgs;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/advanceDateWithArgs.js\n// module id = 248\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../../common/var/classChecks'),\n simpleClone = require('../../common/internal/simpleClone'),\n isObjectType = require('../../common/internal/isObjectType'),\n getDateParamsFromString = require('./getDateParamsFromString'),\n collectDateParamsFromArguments = require('./collectDateParamsFromArguments');\n\nvar isNumber = classChecks.isNumber,\n isString = classChecks.isString;\n\nfunction collectDateArguments(args, allowDuration) {\n var arg1 = args[0], arg2 = args[1];\n if (allowDuration && isString(arg1)) {\n arg1 = getDateParamsFromString(arg1);\n } else if (isNumber(arg1) && isNumber(arg2)) {\n arg1 = collectDateParamsFromArguments(args);\n arg2 = null;\n } else {\n if (isObjectType(arg1)) {\n arg1 = simpleClone(arg1);\n }\n }\n return [arg1, arg2];\n}\n\nmodule.exports = collectDateArguments;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/collectDateArguments.js\n// module id = 249\n// module chunks = 0","'use strict';\n\nvar isUndefined = require('../../common/internal/isUndefined');\n\nfunction getDateParamsFromString(str) {\n var match, num, params = {};\n match = str.match(/^(-?\\d*[\\d.]\\d*)?\\s?(\\w+?)s?$/i);\n if (match) {\n if (isUndefined(num)) {\n num = +match[1];\n if (isNaN(num)) {\n num = 1;\n }\n }\n params[match[2].toLowerCase()] = num;\n }\n return params;\n}\n\nmodule.exports = getDateParamsFromString;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getDateParamsFromString.js\n// module id = 250\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes'),\n isDefined = require('../../common/internal/isDefined'),\n walkUnitDown = require('./walkUnitDown');\n\nvar YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\nfunction collectDateParamsFromArguments(args) {\n var params = {}, index = 0;\n walkUnitDown(YEAR_INDEX, function(unit) {\n var arg = args[index++];\n if (isDefined(arg)) {\n params[unit.name] = arg;\n }\n });\n return params;\n}\n\nmodule.exports = collectDateParamsFromArguments;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/collectDateParamsFromArguments.js\n// module id = 251\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.beginningOfDay;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/beginningOfDay.js\n// module id = 252\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n resetTime = require('./internal/resetTime'),\n getWeekday = require('./internal/getWeekday'),\n setWeekday = require('./internal/setWeekday');\n\nSugar.Date.defineInstance({\n\n 'beginningOfISOWeek': function(date) {\n var day = getWeekday(date);\n if (day === 0) {\n day = -6;\n } else if (day !== 1) {\n day = 1;\n }\n setWeekday(date, day);\n return resetTime(date);\n }\n\n});\n\nmodule.exports = Sugar.Date.beginningOfISOWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/beginningOfISOWeek.js\n// module id = 253\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.beginningOfMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/beginningOfMonth.js\n// module id = 254\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.beginningOfWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/beginningOfWeek.js\n// module id = 255\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.beginningOfYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/beginningOfYear.js\n// module id = 256\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n cloneDate = require('./internal/cloneDate');\n\nSugar.Date.defineInstance({\n\n 'clone': function(date) {\n return cloneDate(date);\n }\n\n});\n\nmodule.exports = Sugar.Date.clone;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/clone.js\n// module id = 257\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.daysAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/daysAgo.js\n// module id = 258\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.daysFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/daysFromNow.js\n// module id = 259\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n getDaysInMonth = require('./internal/getDaysInMonth');\n\nSugar.Date.defineInstance({\n\n 'daysInMonth': function(date) {\n return getDaysInMonth(date);\n }\n\n});\n\nmodule.exports = Sugar.Date.daysInMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/daysInMonth.js\n// module id = 260\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.daysSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/daysSince.js\n// module id = 261\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.daysUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/daysUntil.js\n// module id = 262\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.endOfDay;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/endOfDay.js\n// module id = 263\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n DateUnitIndexes = require('./var/DateUnitIndexes'),\n getWeekday = require('./internal/getWeekday'),\n setWeekday = require('./internal/setWeekday'),\n moveToEndOfUnit = require('./internal/moveToEndOfUnit');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\nSugar.Date.defineInstance({\n\n 'endOfISOWeek': function(date) {\n if (getWeekday(date) !== 0) {\n setWeekday(date, 7);\n }\n return moveToEndOfUnit(date, DAY_INDEX);\n }\n\n});\n\nmodule.exports = Sugar.Date.endOfISOWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/endOfISOWeek.js\n// module id = 264\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.endOfMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/endOfMonth.js\n// module id = 265\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.endOfWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/endOfWeek.js\n// module id = 266\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.endOfYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/endOfYear.js\n// module id = 267\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n dateFormat = require('./internal/dateFormat');\n\nSugar.Date.defineInstance({\n\n 'format': function(date, f, localeCode) {\n return dateFormat(date, f, localeCode);\n }\n\n});\n\nmodule.exports = Sugar.Date.format;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/format.js\n// module id = 268\n// module chunks = 0","'use strict';\n\nvar CoreOutputFormats = require('../var/CoreOutputFormats'),\n formattingTokens = require('../var/formattingTokens'),\n assertDateIsValid = require('./assertDateIsValid');\n\nvar dateFormatMatcher = formattingTokens.dateFormatMatcher;\n\nfunction dateFormat(d, format, localeCode) {\n assertDateIsValid(d);\n format = CoreOutputFormats[format] || format || '{long}';\n return dateFormatMatcher(format, d, localeCode);\n}\n\nmodule.exports = dateFormat;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/dateFormat.js\n// module id = 269\n// module chunks = 0","'use strict';\n\nvar CoreOutputFormats = {\n 'ISO8601': '{yyyy}-{MM}-{dd}T{HH}:{mm}:{ss}.{SSS}{Z}',\n 'RFC1123': '{Dow}, {dd} {Mon} {yyyy} {HH}:{mm}:{ss} {ZZ}',\n 'RFC1036': '{Weekday}, {dd}-{Mon}-{yy} {HH}:{mm}:{ss} {ZZ}'\n};\n\nmodule.exports = CoreOutputFormats;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/CoreOutputFormats.js\n// module id = 270\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('./LocaleHelpers'),\n FormatTokensBase = require('./FormatTokensBase'),\n CoreOutputFormats = require('./CoreOutputFormats'),\n forEach = require('../../common/internal/forEach'),\n padNumber = require('../../common/internal/padNumber'),\n spaceSplit = require('../../common/internal/spaceSplit'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n coreUtilityAliases = require('../../common/var/coreUtilityAliases'),\n createFormatMatcher = require('../../common/internal/createFormatMatcher'),\n defineInstanceSimilar = require('../../common/internal/defineInstanceSimilar');\n\nvar localeManager = LocaleHelpers.localeManager,\n hasOwn = coreUtilityAliases.hasOwn,\n getOwn = coreUtilityAliases.getOwn,\n forEachProperty = coreUtilityAliases.forEachProperty,\n sugarDate = namespaceAliases.sugarDate;\n\nvar ldmlTokens, strfTokens;\n\nfunction buildDateFormatTokens() {\n\n function addFormats(target, tokens, fn) {\n if (tokens) {\n forEach(spaceSplit(tokens), function(token) {\n target[token] = fn;\n });\n }\n }\n\n function buildLowercase(get) {\n return function(d, localeCode) {\n return get(d, localeCode).toLowerCase();\n };\n }\n\n function buildOrdinal(get) {\n return function(d, localeCode) {\n var n = get(d, localeCode);\n return n + localeManager.get(localeCode).getOrdinal(n);\n };\n }\n\n function buildPadded(get, padding) {\n return function(d, localeCode) {\n return padNumber(get(d, localeCode), padding);\n };\n }\n\n function buildTwoDigits(get) {\n return function(d, localeCode) {\n return get(d, localeCode) % 100;\n };\n }\n\n function buildAlias(alias) {\n return function(d, localeCode) {\n return dateFormatMatcher(alias, d, localeCode);\n };\n }\n\n function buildAlternates(f) {\n for (var n = 1; n <= 5; n++) {\n buildAlternate(f, n);\n }\n }\n\n function buildAlternate(f, n) {\n var alternate = function(d, localeCode) {\n return f.get(d, localeCode, n);\n };\n addFormats(ldmlTokens, f.ldml + n, alternate);\n if (f.lowerToken) {\n ldmlTokens[f.lowerToken + n] = buildLowercase(alternate);\n }\n }\n\n function getIdentityFormat(name) {\n return function(d, localeCode) {\n var loc = localeManager.get(localeCode);\n return dateFormatMatcher(loc[name], d, localeCode);\n };\n }\n\n ldmlTokens = {};\n strfTokens = {};\n\n forEach(FormatTokensBase, function(f) {\n var get = f.get, getPadded;\n if (f.lowerToken) {\n ldmlTokens[f.lowerToken] = buildLowercase(get);\n }\n if (f.ordinalToken) {\n ldmlTokens[f.ordinalToken] = buildOrdinal(get, f);\n }\n if (f.ldmlPaddedToken) {\n ldmlTokens[f.ldmlPaddedToken] = buildPadded(get, f.ldmlPaddedToken.length);\n }\n if (f.ldmlTwoDigitToken) {\n ldmlTokens[f.ldmlTwoDigitToken] = buildPadded(buildTwoDigits(get), 2);\n }\n if (f.strfTwoDigitToken) {\n strfTokens[f.strfTwoDigitToken] = buildPadded(buildTwoDigits(get), 2);\n }\n if (f.strfPadding) {\n getPadded = buildPadded(get, f.strfPadding);\n }\n if (f.alias) {\n get = buildAlias(f.alias);\n }\n if (f.allowAlternates) {\n buildAlternates(f);\n }\n addFormats(ldmlTokens, f.ldml, get);\n addFormats(strfTokens, f.strf, getPadded || get);\n });\n\n forEachProperty(CoreOutputFormats, function(src, name) {\n addFormats(ldmlTokens, name, buildAlias(src));\n });\n\n defineInstanceSimilar(sugarDate, 'short medium long full', function(methods, name) {\n var fn = getIdentityFormat(name);\n addFormats(ldmlTokens, name, fn);\n methods[name] = fn;\n });\n\n addFormats(ldmlTokens, 'time', getIdentityFormat('time'));\n addFormats(ldmlTokens, 'stamp', getIdentityFormat('stamp'));\n}\n\nvar dateFormatMatcher;\n\nfunction buildDateFormatMatcher() {\n\n function getLdml(d, token, localeCode) {\n return getOwn(ldmlTokens, token)(d, localeCode);\n }\n\n function getStrf(d, token, localeCode) {\n return getOwn(strfTokens, token)(d, localeCode);\n }\n\n function checkDateToken(ldml, strf) {\n return hasOwn(ldmlTokens, ldml) || hasOwn(strfTokens, strf);\n }\n\n // Format matcher for LDML or STRF tokens.\n dateFormatMatcher = createFormatMatcher(getLdml, getStrf, checkDateToken);\n}\n\nbuildDateFormatTokens();\n\nbuildDateFormatMatcher();\n\nmodule.exports = {\n ldmlTokens: ldmlTokens,\n strfTokens: strfTokens,\n dateFormatMatcher: dateFormatMatcher\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/formattingTokens.js\n// module id = 271\n// module chunks = 0","'use strict';\n\nvar TIMEZONE_ABBREVIATION_REG = require('./TIMEZONE_ABBREVIATION_REG'),\n LocaleHelpers = require('./LocaleHelpers'),\n DateUnitIndexes = require('./DateUnitIndexes'),\n trunc = require('../../common/var/trunc'),\n getDate = require('../internal/getDate'),\n getYear = require('../internal/getYear'),\n getHours = require('../internal/getHours'),\n getMonth = require('../internal/getMonth'),\n cloneDate = require('../internal/cloneDate'),\n padNumber = require('../../common/internal/padNumber'),\n getWeekday = require('../internal/getWeekday'),\n callDateGet = require('../../common/internal/callDateGet'),\n mathAliases = require('../../common/var/mathAliases'),\n getWeekYear = require('../internal/getWeekYear'),\n getUTCOffset = require('../internal/getUTCOffset'),\n getDaysSince = require('../internal/getDaysSince'),\n getWeekNumber = require('../internal/getWeekNumber'),\n getMeridiemToken = require('../internal/getMeridiemToken'),\n setUnitAndLowerToEdge = require('../internal/setUnitAndLowerToEdge');\n\nvar localeManager = LocaleHelpers.localeManager,\n MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,\n ceil = mathAliases.ceil;\n\nvar FormatTokensBase = [\n {\n ldml: 'Dow',\n strf: 'a',\n lowerToken: 'dow',\n get: function(d, localeCode) {\n return localeManager.get(localeCode).getWeekdayName(getWeekday(d), 2);\n }\n },\n {\n ldml: 'Weekday',\n strf: 'A',\n lowerToken: 'weekday',\n allowAlternates: true,\n get: function(d, localeCode, alternate) {\n return localeManager.get(localeCode).getWeekdayName(getWeekday(d), alternate);\n }\n },\n {\n ldml: 'Mon',\n strf: 'b h',\n lowerToken: 'mon',\n get: function(d, localeCode) {\n return localeManager.get(localeCode).getMonthName(getMonth(d), 2);\n }\n },\n {\n ldml: 'Month',\n strf: 'B',\n lowerToken: 'month',\n allowAlternates: true,\n get: function(d, localeCode, alternate) {\n return localeManager.get(localeCode).getMonthName(getMonth(d), alternate);\n }\n },\n {\n strf: 'C',\n get: function(d) {\n return getYear(d).toString().slice(0, 2);\n }\n },\n {\n ldml: 'd date day',\n strf: 'd',\n strfPadding: 2,\n ldmlPaddedToken: 'dd',\n ordinalToken: 'do',\n get: function(d) {\n return getDate(d);\n }\n },\n {\n strf: 'e',\n get: function(d) {\n return padNumber(getDate(d), 2, false, 10, ' ');\n }\n },\n {\n ldml: 'H 24hr',\n strf: 'H',\n strfPadding: 2,\n ldmlPaddedToken: 'HH',\n get: function(d) {\n return getHours(d);\n }\n },\n {\n ldml: 'h hours 12hr',\n strf: 'I',\n strfPadding: 2,\n ldmlPaddedToken: 'hh',\n get: function(d) {\n return getHours(d) % 12 || 12;\n }\n },\n {\n ldml: 'D',\n strf: 'j',\n strfPadding: 3,\n ldmlPaddedToken: 'DDD',\n get: function(d) {\n var s = setUnitAndLowerToEdge(cloneDate(d), MONTH_INDEX);\n return getDaysSince(d, s) + 1;\n }\n },\n {\n ldml: 'M',\n strf: 'm',\n strfPadding: 2,\n ordinalToken: 'Mo',\n ldmlPaddedToken: 'MM',\n get: function(d) {\n return getMonth(d) + 1;\n }\n },\n {\n ldml: 'm minutes',\n strf: 'M',\n strfPadding: 2,\n ldmlPaddedToken: 'mm',\n get: function(d) {\n return callDateGet(d, 'Minutes');\n }\n },\n {\n ldml: 'Q',\n get: function(d) {\n return ceil((getMonth(d) + 1) / 3);\n }\n },\n {\n ldml: 'TT',\n strf: 'p',\n get: function(d, localeCode) {\n return getMeridiemToken(d, localeCode);\n }\n },\n {\n ldml: 'tt',\n strf: 'P',\n get: function(d, localeCode) {\n return getMeridiemToken(d, localeCode).toLowerCase();\n }\n },\n {\n ldml: 'T',\n lowerToken: 't',\n get: function(d, localeCode) {\n return getMeridiemToken(d, localeCode).charAt(0);\n }\n },\n {\n ldml: 's seconds',\n strf: 'S',\n strfPadding: 2,\n ldmlPaddedToken: 'ss',\n get: function(d) {\n return callDateGet(d, 'Seconds');\n }\n },\n {\n ldml: 'S ms',\n strfPadding: 3,\n ldmlPaddedToken: 'SSS',\n get: function(d) {\n return callDateGet(d, 'Milliseconds');\n }\n },\n {\n ldml: 'e',\n strf: 'u',\n ordinalToken: 'eo',\n get: function(d) {\n return getWeekday(d) || 7;\n }\n },\n {\n strf: 'U',\n strfPadding: 2,\n get: function(d) {\n // Sunday first, 0-53\n return getWeekNumber(d, false, 0);\n }\n },\n {\n ldml: 'W',\n strf: 'V',\n strfPadding: 2,\n ordinalToken: 'Wo',\n ldmlPaddedToken: 'WW',\n get: function(d) {\n // Monday first, 1-53 (ISO8601)\n return getWeekNumber(d, true);\n }\n },\n {\n strf: 'w',\n get: function(d) {\n return getWeekday(d);\n }\n },\n {\n ldml: 'w',\n ordinalToken: 'wo',\n ldmlPaddedToken: 'ww',\n get: function(d, localeCode) {\n // Locale dependent, 1-53\n var loc = localeManager.get(localeCode),\n dow = loc.getFirstDayOfWeek(localeCode),\n doy = loc.getFirstDayOfWeekYear(localeCode);\n return getWeekNumber(d, true, dow, doy);\n }\n },\n {\n strf: 'W',\n strfPadding: 2,\n get: function(d) {\n // Monday first, 0-53\n return getWeekNumber(d, false);\n }\n },\n {\n ldmlPaddedToken: 'gggg',\n ldmlTwoDigitToken: 'gg',\n get: function(d, localeCode) {\n return getWeekYear(d, localeCode);\n }\n },\n {\n strf: 'G',\n strfPadding: 4,\n strfTwoDigitToken: 'g',\n ldmlPaddedToken: 'GGGG',\n ldmlTwoDigitToken: 'GG',\n get: function(d, localeCode) {\n return getWeekYear(d, localeCode, true);\n }\n },\n {\n ldml: 'year',\n ldmlPaddedToken: 'yyyy',\n ldmlTwoDigitToken: 'yy',\n strf: 'Y',\n strfPadding: 4,\n strfTwoDigitToken: 'y',\n get: function(d) {\n return getYear(d);\n }\n },\n {\n ldml: 'ZZ',\n strf: 'z',\n get: function(d) {\n return getUTCOffset(d);\n }\n },\n {\n ldml: 'X',\n get: function(d) {\n return trunc(d.getTime() / 1000);\n }\n },\n {\n ldml: 'x',\n get: function(d) {\n return d.getTime();\n }\n },\n {\n ldml: 'Z',\n get: function(d) {\n return getUTCOffset(d, true);\n }\n },\n {\n ldml: 'z',\n strf: 'Z',\n get: function(d) {\n // Note that this is not accurate in all browsing environments!\n // https://github.com/moment/moment/issues/162\n // It will continue to be supported for Node and usage with the\n // understanding that it may be blank.\n var match = d.toString().match(TIMEZONE_ABBREVIATION_REG);\n return match ? match[1]: '';\n }\n },\n {\n strf: 'D',\n alias: '%m/%d/%y'\n },\n {\n strf: 'F',\n alias: '%Y-%m-%d'\n },\n {\n strf: 'r',\n alias: '%I:%M:%S %p'\n },\n {\n strf: 'R',\n alias: '%H:%M'\n },\n {\n strf: 'T',\n alias: '%H:%M:%S'\n },\n {\n strf: 'x',\n alias: '{short}'\n },\n {\n strf: 'X',\n alias: '{time}'\n },\n {\n strf: 'c',\n alias: '{stamp}'\n }\n];\n\nmodule.exports = FormatTokensBase;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/FormatTokensBase.js\n// module id = 272\n// module chunks = 0","'use strict';\n\nmodule.exports = /(\\w{3})[()\\s\\d]*$/;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/TIMEZONE_ABBREVIATION_REG.js\n// module id = 273\n// module chunks = 0","'use strict';\n\nvar callDateGet = require('../../common/internal/callDateGet');\n\nfunction getHours(d) {\n return callDateGet(d, 'Hours');\n}\n\nmodule.exports = getHours;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getHours.js\n// module id = 274\n// module chunks = 0","'use strict';\n\nvar mathAliases = require('../var/mathAliases'),\n repeatString = require('./repeatString');\n\nvar abs = mathAliases.abs;\n\nfunction padNumber(num, place, sign, base, replacement) {\n var str = abs(num).toString(base || 10);\n str = repeatString(replacement || '0', place - str.replace(/\\.\\d+/, '').length) + str;\n if (sign || num < 0) {\n str = (num < 0 ? '-' : '+') + str;\n }\n return str;\n}\n\nmodule.exports = padNumber;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/padNumber.js\n// module id = 275\n// module chunks = 0","'use strict';\n\nfunction repeatString(str, num) {\n var result = '';\n str = str.toString();\n while (num > 0) {\n if (num & 1) {\n result += str;\n }\n if (num >>= 1) {\n str += str;\n }\n }\n return result;\n}\n\nmodule.exports = repeatString;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/repeatString.js\n// module id = 276\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n getYear = require('./getYear'),\n getMonth = require('./getMonth'),\n getWeekNumber = require('./getWeekNumber');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nfunction getWeekYear(d, localeCode, iso) {\n var year, month, firstDayOfWeek, firstDayOfWeekYear, week, loc;\n year = getYear(d);\n month = getMonth(d);\n if (month === 0 || month === 11) {\n if (!iso) {\n loc = localeManager.get(localeCode);\n firstDayOfWeek = loc.getFirstDayOfWeek(localeCode);\n firstDayOfWeekYear = loc.getFirstDayOfWeekYear(localeCode);\n }\n week = getWeekNumber(d, false, firstDayOfWeek, firstDayOfWeekYear);\n if (month === 0 && week === 0) {\n year -= 1;\n } else if (month === 11 && week === 1) {\n year += 1;\n }\n }\n return year;\n}\n\nmodule.exports = getWeekYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getWeekYear.js\n// module id = 277\n// module chunks = 0","'use strict';\n\nvar ISODefaults = require('../var/ISODefaults'),\n setDate = require('./setDate'),\n getDate = require('./getDate'),\n cloneDate = require('./cloneDate'),\n isUndefined = require('../../common/internal/isUndefined'),\n moveToEndOfWeek = require('./moveToEndOfWeek'),\n moveToBeginningOfWeek = require('./moveToBeginningOfWeek'),\n moveToFirstDayOfWeekYear = require('./moveToFirstDayOfWeekYear');\n\nvar ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,\n ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR;\n\nfunction getWeekNumber(d, allowPrevious, firstDayOfWeek, firstDayOfWeekYear) {\n var isoWeek, n = 0;\n if (isUndefined(firstDayOfWeek)) {\n firstDayOfWeek = ISO_FIRST_DAY_OF_WEEK;\n }\n if (isUndefined(firstDayOfWeekYear)) {\n firstDayOfWeekYear = ISO_FIRST_DAY_OF_WEEK_YEAR;\n }\n // Moving to the end of the week allows for forward year traversal, ie\n // Dec 29 2014 is actually week 01 of 2015.\n isoWeek = moveToEndOfWeek(cloneDate(d), firstDayOfWeek);\n moveToFirstDayOfWeekYear(isoWeek, firstDayOfWeek, firstDayOfWeekYear);\n if (allowPrevious && d < isoWeek) {\n // If the date is still before the start of the year, then it should be\n // the last week of the previous year, ie Jan 1 2016 is actually week 53\n // of 2015, so move to the beginning of the week to traverse the year.\n isoWeek = moveToBeginningOfWeek(cloneDate(d), firstDayOfWeek);\n moveToFirstDayOfWeekYear(isoWeek, firstDayOfWeek, firstDayOfWeekYear);\n }\n while (isoWeek <= d) {\n // Doing a very simple walk to get the week number.\n setDate(isoWeek, getDate(isoWeek) + 7);\n n++;\n }\n return n;\n}\n\nmodule.exports = getWeekNumber;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getWeekNumber.js\n// module id = 278\n// module chunks = 0","'use strict';\n\nvar _utc = require('../../common/var/_utc'),\n trunc = require('../../common/var/trunc'),\n tzOffset = require('./tzOffset'),\n padNumber = require('../../common/internal/padNumber'),\n mathAliases = require('../../common/var/mathAliases');\n\nvar abs = mathAliases.abs;\n\nfunction getUTCOffset(d, iso) {\n var offset = _utc(d) ? 0 : tzOffset(d), hours, mins, colon;\n colon = iso === true ? ':' : '';\n if (!offset && iso) return 'Z';\n hours = padNumber(trunc(-offset / 60), 2, true);\n mins = padNumber(abs(offset % 60), 2);\n return hours + colon + mins;\n}\n\nmodule.exports = getUTCOffset;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getUTCOffset.js\n// module id = 279\n// module chunks = 0","'use strict';\n\nvar DateUnits = require('../var/DateUnits'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n getTimeDistanceForUnit = require('./getTimeDistanceForUnit');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\nfunction getDaysSince(d1, d2) {\n return getTimeDistanceForUnit(d1, d2, DateUnits[DAY_INDEX]);\n}\n\nmodule.exports = getDaysSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getDaysSince.js\n// module id = 280\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n trunc = require('../../common/var/trunc'),\n getHours = require('./getHours');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nfunction getMeridiemToken(d, localeCode) {\n var hours = getHours(d);\n return localeManager.get(localeCode).ampm[trunc(hours / 12)] || '';\n}\n\nmodule.exports = getMeridiemToken;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getMeridiemToken.js\n// module id = 281\n// module chunks = 0","'use strict';\n\nvar STRING_FORMAT_REG = require('../var/STRING_FORMAT_REG'),\n CommonChars = require('../var/CommonChars'),\n memoizeFunction = require('./memoizeFunction');\n\nvar OPEN_BRACE = CommonChars.OPEN_BRACE,\n CLOSE_BRACE = CommonChars.CLOSE_BRACE;\n\nfunction createFormatMatcher(bracketMatcher, percentMatcher, precheck) {\n\n var reg = STRING_FORMAT_REG;\n var compileMemoized = memoizeFunction(compile);\n\n function getToken(format, match) {\n var get, token, literal, fn;\n var bKey = match[2];\n var pLit = match[3];\n var pKey = match[5];\n if (match[4] && percentMatcher) {\n token = pKey;\n get = percentMatcher;\n } else if (bKey) {\n token = bKey;\n get = bracketMatcher;\n } else if (pLit && percentMatcher) {\n literal = pLit;\n } else {\n literal = match[1] || match[0];\n }\n if (get) {\n assertPassesPrecheck(precheck, bKey, pKey);\n fn = function(obj, opt) {\n return get(obj, token, opt);\n };\n }\n format.push(fn || getLiteral(literal));\n }\n\n function getSubstring(format, str, start, end) {\n if (end > start) {\n var sub = str.slice(start, end);\n assertNoUnmatched(sub, OPEN_BRACE);\n assertNoUnmatched(sub, CLOSE_BRACE);\n format.push(function() {\n return sub;\n });\n }\n }\n\n function getLiteral(str) {\n return function() {\n return str;\n };\n }\n\n function assertPassesPrecheck(precheck, bt, pt) {\n if (precheck && !precheck(bt, pt)) {\n throw new TypeError('Invalid token '+ (bt || pt) +' in format string');\n }\n }\n\n function assertNoUnmatched(str, chr) {\n if (str.indexOf(chr) !== -1) {\n throw new TypeError('Unmatched '+ chr +' in format string');\n }\n }\n\n function compile(str) {\n var format = [], lastIndex = 0, match;\n reg.lastIndex = 0;\n while(match = reg.exec(str)) {\n getSubstring(format, str, lastIndex, match.index);\n getToken(format, match);\n lastIndex = reg.lastIndex;\n }\n getSubstring(format, str, lastIndex, str.length);\n return format;\n }\n\n return function(str, obj, opt) {\n var format = compileMemoized(str), result = '';\n for (var i = 0; i < format.length; i++) {\n result += format[i](obj, opt);\n }\n return result;\n };\n}\n\nmodule.exports = createFormatMatcher;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/createFormatMatcher.js\n// module id = 282\n// module chunks = 0","'use strict';\n\nmodule.exports = /([{}])\\1|\\{([^}]*)\\}|(%)%|(%(\\w*))/g;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/STRING_FORMAT_REG.js\n// module id = 283\n// module chunks = 0","'use strict';\n\nvar INTERNAL_MEMOIZE_LIMIT = require('../var/INTERNAL_MEMOIZE_LIMIT'),\n coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar hasOwn = coreUtilityAliases.hasOwn;\n\nfunction memoizeFunction(fn) {\n var memo = {}, counter = 0;\n\n return function(key) {\n if (hasOwn(memo, key)) {\n return memo[key];\n }\n if (counter === INTERNAL_MEMOIZE_LIMIT) {\n memo = {};\n counter = 0;\n }\n counter++;\n return memo[key] = fn(key);\n };\n}\n\nmodule.exports = memoizeFunction;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/memoizeFunction.js\n// module id = 284\n// module chunks = 0","'use strict';\n\nmodule.exports = 1000;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/INTERNAL_MEMOIZE_LIMIT.js\n// module id = 285\n// module chunks = 0","'use strict';\n\nvar dateIsValid = require('./dateIsValid');\n\nfunction assertDateIsValid(d) {\n if (!dateIsValid(d)) {\n throw new TypeError('Date is not valid');\n }\n}\n\nmodule.exports = assertDateIsValid;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/assertDateIsValid.js\n// module id = 286\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n createDateWithContext = require('./internal/createDateWithContext');\n\nSugar.Date.defineInstance({\n\n 'get': function(date, d, options) {\n return createDateWithContext(date, d, options);\n }\n\n});\n\nmodule.exports = Sugar.Date.get;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/get.js\n// module id = 287\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n getWeekNumber = require('./internal/getWeekNumber');\n\nSugar.Date.defineInstance({\n\n 'getISOWeek': function(date) {\n return getWeekNumber(date, true);\n }\n\n});\n\nmodule.exports = Sugar.Date.getISOWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getISOWeek.js\n// module id = 288\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n getUTCOffset = require('./internal/getUTCOffset');\n\nSugar.Date.defineInstance({\n\n 'getUTCOffset': function(date, iso) {\n return getUTCOffset(date, iso);\n }\n\n});\n\nmodule.exports = Sugar.Date.getUTCOffset;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getUTCOffset.js\n// module id = 289\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nSugar.Date.defineInstance({\n\n 'getUTCWeekday': function(date) {\n return date.getUTCDay();\n }\n\n});\n\nmodule.exports = Sugar.Date.getUTCWeekday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getUTCWeekday.js\n// module id = 290\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n getWeekday = require('./internal/getWeekday');\n\nSugar.Date.defineInstance({\n\n 'getWeekday': function(date) {\n return getWeekday(date);\n }\n\n});\n\nmodule.exports = Sugar.Date.getWeekday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getWeekday.js\n// module id = 291\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.hoursAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/hoursAgo.js\n// module id = 292\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.hoursFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/hoursFromNow.js\n// module id = 293\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.hoursSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/hoursSince.js\n// module id = 294\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.hoursUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/hoursUntil.js\n// module id = 295\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n fullCompareDate = require('./internal/fullCompareDate');\n\nSugar.Date.defineInstance({\n\n 'is': function(date, d, margin) {\n return fullCompareDate(date, d, margin);\n }\n\n});\n\nmodule.exports = Sugar.Date.is;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/is.js\n// module id = 296\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n trim = require('../../common/internal/trim'),\n getMonth = require('./getMonth'),\n isDefined = require('../../common/internal/isDefined'),\n getNewDate = require('./getNewDate'),\n compareDay = require('./compareDay'),\n getWeekday = require('./getWeekday'),\n dateIsValid = require('./dateIsValid'),\n classChecks = require('../../common/var/classChecks'),\n compareDate = require('./compareDate');\n\nvar isString = classChecks.isString,\n English = LocaleHelpers.English;\n\nfunction fullCompareDate(date, d, margin) {\n var tmp;\n if (!dateIsValid(date)) return;\n if (isString(d)) {\n d = trim(d).toLowerCase();\n switch(true) {\n case d === 'future': return date.getTime() > getNewDate().getTime();\n case d === 'past': return date.getTime() < getNewDate().getTime();\n case d === 'today': return compareDay(date);\n case d === 'tomorrow': return compareDay(date, 1);\n case d === 'yesterday': return compareDay(date, -1);\n case d === 'weekday': return getWeekday(date) > 0 && getWeekday(date) < 6;\n case d === 'weekend': return getWeekday(date) === 0 || getWeekday(date) === 6;\n\n case (isDefined(tmp = English.weekdayMap[d])):\n return getWeekday(date) === tmp;\n case (isDefined(tmp = English.monthMap[d])):\n return getMonth(date) === tmp;\n }\n }\n return compareDate(date, d, margin);\n}\n\nmodule.exports = fullCompareDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/fullCompareDate.js\n// module id = 297\n// module chunks = 0","'use strict';\n\nfunction trim(str) {\n return str.trim();\n}\n\nmodule.exports = trim;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/trim.js\n// module id = 298\n// module chunks = 0","'use strict';\n\nvar setDate = require('./setDate'),\n getDate = require('./getDate'),\n getYear = require('./getYear'),\n getMonth = require('./getMonth'),\n getNewDate = require('./getNewDate');\n\nfunction compareDay(d, shift) {\n var comp = getNewDate();\n if (shift) {\n setDate(comp, getDate(comp) + shift);\n }\n return getYear(d) === getYear(comp) &&\n getMonth(d) === getMonth(comp) &&\n getDate(d) === getDate(comp);\n}\n\nmodule.exports = compareDay;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/compareDay.js\n// module id = 299\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n createDate = require('./internal/createDate');\n\nSugar.Date.defineInstance({\n\n 'isAfter': function(date, d, margin) {\n return date.getTime() > createDate(d).getTime() - (margin || 0);\n }\n\n});\n\nmodule.exports = Sugar.Date.isAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isAfter.js\n// module id = 300\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n createDate = require('./internal/createDate');\n\nSugar.Date.defineInstance({\n\n 'isBefore': function(date, d, margin) {\n return date.getTime() < createDate(d).getTime() + (margin || 0);\n }\n\n});\n\nmodule.exports = Sugar.Date.isBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isBefore.js\n// module id = 301\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n createDate = require('./internal/createDate'),\n mathAliases = require('../common/var/mathAliases');\n\nvar min = mathAliases.min,\n max = mathAliases.max;\n\nSugar.Date.defineInstance({\n\n 'isBetween': function(date, d1, d2, margin) {\n var t = date.getTime();\n var t1 = createDate(d1).getTime();\n var t2 = createDate(d2).getTime();\n var lo = min(t1, t2);\n var hi = max(t1, t2);\n margin = margin || 0;\n return (lo - margin <= t) && (hi + margin >= t);\n }\n\n});\n\nmodule.exports = Sugar.Date.isBetween;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isBetween.js\n// module id = 302\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isFriday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isFriday.js\n// module id = 303\n// module chunks = 0","'use strict';\n\nvar buildRelativeAliases = require('../internal/buildRelativeAliases');\n\nbuildRelativeAliases();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/build/buildRelativeAliasesCall.js\n// module id = 304\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n spaceSplit = require('../../common/internal/spaceSplit'),\n fullCompareDate = require('./fullCompareDate'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n defineInstanceSimilar = require('../../common/internal/defineInstanceSimilar');\n\nvar English = LocaleHelpers.English,\n sugarDate = namespaceAliases.sugarDate;\n\nfunction buildRelativeAliases() {\n var special = spaceSplit('Today Yesterday Tomorrow Weekday Weekend Future Past');\n var weekdays = English.weekdays.slice(0, 7);\n var months = English.months.slice(0, 12);\n var together = special.concat(weekdays).concat(months);\n defineInstanceSimilar(sugarDate, together, function(methods, name) {\n methods['is'+ name] = function(d) {\n return fullCompareDate(d, name);\n };\n });\n}\n\nmodule.exports = buildRelativeAliases;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/buildRelativeAliases.js\n// module id = 305\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isFuture;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isFuture.js\n// module id = 306\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isLastMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isLastMonth.js\n// module id = 307\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isLastWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isLastWeek.js\n// module id = 308\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isLastYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isLastYear.js\n// module id = 309\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n getYear = require('./internal/getYear');\n\nSugar.Date.defineInstance({\n\n 'isLeapYear': function(date) {\n var year = getYear(date);\n return (year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0);\n }\n\n});\n\nmodule.exports = Sugar.Date.isLeapYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isLeapYear.js\n// module id = 310\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isMonday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isMonday.js\n// module id = 311\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isNextMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isNextMonth.js\n// module id = 312\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isNextWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isNextWeek.js\n// module id = 313\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isNextYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isNextYear.js\n// module id = 314\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isPast;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isPast.js\n// module id = 315\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isSaturday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isSaturday.js\n// module id = 316\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isSunday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isSunday.js\n// module id = 317\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isThisMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isThisMonth.js\n// module id = 318\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isThisWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isThisWeek.js\n// module id = 319\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isThisYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isThisYear.js\n// module id = 320\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isThursday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isThursday.js\n// module id = 321\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isToday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isToday.js\n// module id = 322\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isTomorrow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isTomorrow.js\n// module id = 323\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isTuesday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isTuesday.js\n// module id = 324\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n isUTC = require('./internal/isUTC');\n\nSugar.Date.defineInstance({\n\n 'isUTC': function(date) {\n return isUTC(date);\n }\n\n});\n\nmodule.exports = Sugar.Date.isUTC;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isUTC.js\n// module id = 325\n// module chunks = 0","'use strict';\n\nvar _utc = require('../../common/var/_utc'),\n tzOffset = require('./tzOffset');\n\nfunction isUTC(d) {\n return !!_utc(d) || tzOffset(d) === 0;\n}\n\nmodule.exports = isUTC;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/isUTC.js\n// module id = 326\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n dateIsValid = require('./internal/dateIsValid');\n\nSugar.Date.defineInstance({\n\n 'isValid': function(date) {\n return dateIsValid(date);\n }\n\n});\n\nmodule.exports = Sugar.Date.isValid;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isValid.js\n// module id = 327\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isWednesday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isWednesday.js\n// module id = 328\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isWeekday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isWeekday.js\n// module id = 329\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isWeekend;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isWeekend.js\n// module id = 330\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isYesterday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isYesterday.js\n// module id = 331\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nSugar.Date.defineInstance({\n\n 'iso': function(date) {\n return date.toISOString();\n }\n\n});\n\nmodule.exports = Sugar.Date.iso;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/iso.js\n// module id = 332\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.millisecondsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/millisecondsAgo.js\n// module id = 333\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.millisecondsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/millisecondsFromNow.js\n// module id = 334\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.millisecondsSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/millisecondsSince.js\n// module id = 335\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.millisecondsUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/millisecondsUntil.js\n// module id = 336\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.minutesAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/minutesAgo.js\n// module id = 337\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.minutesFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/minutesFromNow.js\n// module id = 338\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.minutesSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/minutesSince.js\n// module id = 339\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.minutesUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/minutesUntil.js\n// module id = 340\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.monthsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/monthsAgo.js\n// module id = 341\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.monthsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/monthsFromNow.js\n// module id = 342\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.monthsSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/monthsSince.js\n// module id = 343\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.monthsUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/monthsUntil.js\n// module id = 344\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n dateRelative = require('./internal/dateRelative');\n\nSugar.Date.defineInstance({\n\n 'relative': function(date, localeCode, fn) {\n return dateRelative(date, null, localeCode, fn);\n }\n\n});\n\nmodule.exports = Sugar.Date.relative;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/relative.js\n// module id = 345\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n dateFormat = require('./dateFormat'),\n classChecks = require('../../common/var/classChecks'),\n assertDateIsValid = require('./assertDateIsValid'),\n getAdjustedUnitForDate = require('./getAdjustedUnitForDate');\n\nvar isFunction = classChecks.isFunction,\n localeManager = LocaleHelpers.localeManager;\n\nfunction dateRelative(d, dRelative, arg1, arg2) {\n var adu, format, type, localeCode, fn;\n assertDateIsValid(d);\n if (isFunction(arg1)) {\n fn = arg1;\n } else {\n localeCode = arg1;\n fn = arg2;\n }\n adu = getAdjustedUnitForDate(d, dRelative);\n if (fn) {\n format = fn.apply(d, adu.concat(localeManager.get(localeCode)));\n if (format) {\n return dateFormat(d, format, localeCode);\n }\n }\n // Adjust up if time is in ms, as this doesn't\n // look very good for a standard relative date.\n if (adu[1] === 0) {\n adu[1] = 1;\n adu[0] = 1;\n }\n if (dRelative) {\n type = 'duration';\n } else if (adu[2] > 0) {\n type = 'future';\n } else {\n type = 'past';\n }\n return localeManager.get(localeCode).getRelativeFormat(adu, type);\n}\n\nmodule.exports = dateRelative;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/dateRelative.js\n// module id = 346\n// module chunks = 0","'use strict';\n\nvar getNewDate = require('./getNewDate'),\n mathAliases = require('../../common/var/mathAliases'),\n getAdjustedUnit = require('./getAdjustedUnit'),\n getTimeDistanceForUnit = require('./getTimeDistanceForUnit');\n\nvar abs = mathAliases.abs;\n\nfunction getAdjustedUnitForDate(d, dRelative) {\n var ms;\n if (!dRelative) {\n dRelative = getNewDate();\n if (d > dRelative) {\n // If our date is greater than the one that we got from getNewDate, it\n // means that we are finding the unit for a date that is in the future\n // relative to now. However, often the incoming date was created in\n // the same cycle as our comparison, but our \"now\" date will have been\n // created an instant after it, creating situations where \"5 minutes from\n // now\" becomes \"4 minutes from now\" in the same tick. To prevent this,\n // subtract a buffer of 10ms to compensate.\n dRelative = new Date(dRelative.getTime() - 10);\n }\n }\n ms = d - dRelative;\n return getAdjustedUnit(ms, function(u) {\n return abs(getTimeDistanceForUnit(d, dRelative, u));\n });\n}\n\nmodule.exports = getAdjustedUnitForDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getAdjustedUnitForDate.js\n// module id = 347\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n createDate = require('./internal/createDate'),\n dateRelative = require('./internal/dateRelative');\n\nSugar.Date.defineInstance({\n\n 'relativeTo': function(date, d, localeCode) {\n return dateRelative(date, createDate(d), localeCode);\n }\n\n});\n\nmodule.exports = Sugar.Date.relativeTo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/relativeTo.js\n// module id = 348\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n DateUnitIndexes = require('./var/DateUnitIndexes'),\n moveToBeginningOfUnit = require('./internal/moveToBeginningOfUnit'),\n getUnitIndexForParamName = require('./internal/getUnitIndexForParamName');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\nSugar.Date.defineInstance({\n\n 'reset': function(date, unit, localeCode) {\n var unitIndex = unit ? getUnitIndexForParamName(unit) : DAY_INDEX;\n moveToBeginningOfUnit(date, unitIndex, localeCode);\n return date;\n }\n\n});\n\nmodule.exports = Sugar.Date.reset;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/reset.js\n// module id = 349\n// module chunks = 0","'use strict';\n\nvar iterateOverDateParams = require('./iterateOverDateParams');\n\nfunction getUnitIndexForParamName(name) {\n var params = {}, unitIndex;\n params[name] = 1;\n iterateOverDateParams(params, function(name, val, unit, i) {\n unitIndex = i;\n return false;\n });\n return unitIndex;\n}\n\nmodule.exports = getUnitIndexForParamName;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getUnitIndexForParamName.js\n// module id = 350\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n advanceDateWithArgs = require('./internal/advanceDateWithArgs');\n\nSugar.Date.defineInstanceWithArguments({\n\n 'rewind': function(d, args) {\n return advanceDateWithArgs(d, args, -1);\n }\n\n});\n\nmodule.exports = Sugar.Date.rewind;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/rewind.js\n// module id = 351\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.secondsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/secondsAgo.js\n// module id = 352\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.secondsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/secondsFromNow.js\n// module id = 353\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.secondsSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/secondsSince.js\n// module id = 354\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.secondsUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/secondsUntil.js\n// module id = 355\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n updateDate = require('./internal/updateDate'),\n collectDateArguments = require('./internal/collectDateArguments');\n\nSugar.Date.defineInstanceWithArguments({\n\n 'set': function(d, args) {\n args = collectDateArguments(args);\n return updateDate(d, args[0], args[1]);\n }\n\n});\n\nmodule.exports = Sugar.Date.set;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/set.js\n// module id = 356\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n setISOWeekNumber = require('./internal/setISOWeekNumber');\n\nSugar.Date.defineInstance({\n\n 'setISOWeek': function(date, num) {\n return setISOWeekNumber(date, num);\n }\n\n});\n\nmodule.exports = Sugar.Date.setISOWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/setISOWeek.js\n// module id = 357\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n _utc = require('../common/var/_utc');\n\nSugar.Date.defineInstance({\n\n 'setUTC': function(date, on) {\n return _utc(date, on);\n }\n\n});\n\nmodule.exports = Sugar.Date.setUTC;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/setUTC.js\n// module id = 358\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n setWeekday = require('./internal/setWeekday');\n\nSugar.Date.defineInstance({\n\n 'setWeekday': function(date, dow) {\n return setWeekday(date, dow);\n }\n\n});\n\nmodule.exports = Sugar.Date.setWeekday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/setWeekday.js\n// module id = 359\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.weeksAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/weeksAgo.js\n// module id = 360\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.weeksFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/weeksFromNow.js\n// module id = 361\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.weeksSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/weeksSince.js\n// module id = 362\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.weeksUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/weeksUntil.js\n// module id = 363\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.yearsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/yearsAgo.js\n// module id = 364\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.yearsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/yearsFromNow.js\n// module id = 365\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.yearsSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/yearsSince.js\n// module id = 366\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.yearsUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/yearsUntil.js\n// module id = 367\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n _dateOptions = require('./var/_dateOptions');\n\nmodule.exports = Sugar.Date.getOption;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getOption.js\n// module id = 368\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n _dateOptions = require('./var/_dateOptions');\n\nmodule.exports = Sugar.Date.setOption;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/setOption.js\n// module id = 369\n// module chunks = 0","'use strict';\n\n// Static Methods\nrequire('../date/range');\n\n// Prototype Methods\nrequire('./clamp');\nrequire('./clone');\nrequire('./contains');\nrequire('./days');\nrequire('./every');\nrequire('./hours');\nrequire('./intersect');\nrequire('./isValid');\nrequire('./milliseconds');\nrequire('./minutes');\nrequire('./months');\nrequire('./seconds');\nrequire('./span');\nrequire('./toArray');\nrequire('./toString');\nrequire('./union');\nrequire('./weeks');\nrequire('./years');\n\nmodule.exports = require('sugar-core');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/index.js\n// module id = 370\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n DateRangeConstructor = require('../range/var/DateRangeConstructor');\n\nSugar.Date.defineStatic({\n\n 'range': DateRangeConstructor\n\n});\n\nmodule.exports = Sugar.Date.range;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/range.js\n// module id = 371\n// module chunks = 0","'use strict';\n\nvar Range = require('../internal/Range'),\n classChecks = require('../../common/var/classChecks'),\n getDateForRange = require('../internal/getDateForRange'),\n createDateRangeFromString = require('../internal/createDateRangeFromString');\n\nvar isString = classChecks.isString;\n\nvar DateRangeConstructor = function(start, end) {\n if (arguments.length === 1 && isString(start)) {\n return createDateRangeFromString(start);\n }\n return new Range(getDateForRange(start), getDateForRange(end));\n};\n\nmodule.exports = DateRangeConstructor;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/var/DateRangeConstructor.js\n// module id = 372\n// module chunks = 0","'use strict';\n\nvar cloneRangeMember = require('./cloneRangeMember');\n\nfunction Range(start, end) {\n this.start = cloneRangeMember(start);\n this.end = cloneRangeMember(end);\n}\n\nmodule.exports = Range;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/Range.js\n// module id = 373\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../../common/var/classChecks'),\n getRangeMemberPrimitiveValue = require('./getRangeMemberPrimitiveValue');\n\nvar isDate = classChecks.isDate;\n\nfunction cloneRangeMember(m) {\n if (isDate(m)) {\n return new Date(m.getTime());\n } else {\n return getRangeMemberPrimitiveValue(m);\n }\n}\n\nmodule.exports = cloneRangeMember;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/cloneRangeMember.js\n// module id = 374\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../../common/var/classChecks');\n\nvar isDate = classChecks.isDate;\n\nfunction getRangeMemberPrimitiveValue(m) {\n if (m == null) return m;\n return isDate(m) ? m.getTime() : m.valueOf();\n}\n\nmodule.exports = getRangeMemberPrimitiveValue;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/getRangeMemberPrimitiveValue.js\n// module id = 375\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../../common/var/classChecks'),\n namespaceAliases = require('../../common/var/namespaceAliases');\n\nvar isDate = classChecks.isDate,\n sugarDate = namespaceAliases.sugarDate;\n\nfunction getDateForRange(d) {\n if (isDate(d)) {\n return d;\n } else if (d == null) {\n return new Date();\n } else if (sugarDate.create) {\n return sugarDate.create(d);\n }\n return new Date(d);\n}\n\nmodule.exports = getDateForRange;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/getDateForRange.js\n// module id = 376\n// module chunks = 0","'use strict';\n\nvar Range = require('./Range'),\n DurationTextFormats = require('../var/DurationTextFormats'),\n incrementDate = require('./incrementDate'),\n getDateForRange = require('./getDateForRange'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n getDateIncrementObject = require('./getDateIncrementObject');\n\nvar sugarDate = namespaceAliases.sugarDate,\n RANGE_REG_FROM_TO = DurationTextFormats.RANGE_REG_FROM_TO,\n RANGE_REG_REAR_DURATION = DurationTextFormats.RANGE_REG_REAR_DURATION,\n RANGE_REG_FRONT_DURATION = DurationTextFormats.RANGE_REG_FRONT_DURATION;\n\nfunction createDateRangeFromString(str) {\n var match, datetime, duration, dio, start, end;\n if (sugarDate.get && (match = str.match(RANGE_REG_FROM_TO))) {\n start = getDateForRange(match[1].replace('from', 'at'));\n end = sugarDate.get(start, match[2]);\n return new Range(start, end);\n }\n if (match = str.match(RANGE_REG_FRONT_DURATION)) {\n duration = match[1];\n datetime = match[2];\n }\n if (match = str.match(RANGE_REG_REAR_DURATION)) {\n datetime = match[1];\n duration = match[2];\n }\n if (datetime && duration) {\n start = getDateForRange(datetime);\n dio = getDateIncrementObject(duration);\n end = incrementDate(start, dio[0], dio[1]);\n } else {\n start = str;\n }\n return new Range(getDateForRange(start), getDateForRange(end));\n}\n\nmodule.exports = createDateRangeFromString;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/createDateRangeFromString.js\n// module id = 377\n// module chunks = 0","'use strict';\n\nvar FULL_CAPTURED_DURATION = require('./FULL_CAPTURED_DURATION');\n\nmodule.exports = {\n RANGE_REG_FROM_TO: /(?:from)?\\s*(.+)\\s+(?:to|until)\\s+(.+)$/i,\n RANGE_REG_REAR_DURATION: RegExp('(.+)\\\\s*for\\\\s*' + FULL_CAPTURED_DURATION, 'i'),\n RANGE_REG_FRONT_DURATION: RegExp('(?:for)?\\\\s*'+ FULL_CAPTURED_DURATION +'\\\\s*(?:starting)?\\\\s*at\\\\s*(.+)', 'i')\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/var/DurationTextFormats.js\n// module id = 378\n// module chunks = 0","'use strict';\n\nvar DURATION_UNITS = require('./DURATION_UNITS');\n\nmodule.exports = '((?:\\\\d+)?\\\\s*(?:' + DURATION_UNITS + '))s?';\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/var/FULL_CAPTURED_DURATION.js\n// module id = 379\n// module chunks = 0","'use strict';\n\nmodule.exports = 'year|month|week|day|hour|minute|second|millisecond';\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/var/DURATION_UNITS.js\n// module id = 380\n// module chunks = 0","'use strict';\n\nvar MULTIPLIERS = require('../var/MULTIPLIERS'),\n callDateSet = require('../../common/internal/callDateSet'),\n callDateGet = require('../../common/internal/callDateGet');\n\nfunction incrementDate(src, amount, unit) {\n var mult = MULTIPLIERS[unit], d;\n if (mult) {\n d = new Date(src.getTime() + (amount * mult));\n } else {\n d = new Date(src);\n callDateSet(d, unit, callDateGet(src, unit) + amount);\n }\n return d;\n}\n\nmodule.exports = incrementDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/incrementDate.js\n// module id = 381\n// module chunks = 0","'use strict';\n\nvar MULTIPLIERS = {\n 'Hours': 60 * 60 * 1000,\n 'Minutes': 60 * 1000,\n 'Seconds': 1000,\n 'Milliseconds': 1\n};\n\nmodule.exports = MULTIPLIERS;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/var/MULTIPLIERS.js\n// module id = 382\n// module chunks = 0","'use strict';\n\nvar DURATION_REG = require('../var/DURATION_REG'),\n classChecks = require('../../common/var/classChecks'),\n simpleCapitalize = require('../../common/internal/simpleCapitalize');\n\nvar isNumber = classChecks.isNumber;\n\nfunction getDateIncrementObject(amt) {\n var match, val, unit;\n if (isNumber(amt)) {\n return [amt, 'Milliseconds'];\n }\n match = amt.match(DURATION_REG);\n val = +match[1] || 1;\n unit = simpleCapitalize(match[2].toLowerCase());\n if (unit.match(/hour|minute|second/i)) {\n unit += 's';\n } else if (unit === 'Year') {\n unit = 'FullYear';\n } else if (unit === 'Week') {\n unit = 'Date';\n val *= 7;\n } else if (unit === 'Day') {\n unit = 'Date';\n }\n return [val, unit];\n}\n\nmodule.exports = getDateIncrementObject;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/getDateIncrementObject.js\n// module id = 383\n// module chunks = 0","'use strict';\n\nvar DURATION_UNITS = require('./DURATION_UNITS');\n\nmodule.exports = RegExp('(\\\\d+)?\\\\s*('+ DURATION_UNITS +')s?', 'i');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/var/DURATION_REG.js\n// module id = 384\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n rangeClamp = require('./internal/rangeClamp'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'clamp': function(obj) {\n return rangeClamp(this, obj);\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"clamp\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/clamp.js\n// module id = 385\n// module chunks = 0","'use strict';\n\nvar cloneRangeMember = require('./cloneRangeMember');\n\nfunction rangeClamp(range, obj) {\n var clamped,\n start = range.start,\n end = range.end,\n min = end < start ? end : start,\n max = start > end ? start : end;\n if (obj < min) {\n clamped = min;\n } else if (obj > max) {\n clamped = max;\n } else {\n clamped = obj;\n }\n return cloneRangeMember(clamped);\n}\n\nmodule.exports = rangeClamp;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/rangeClamp.js\n// module id = 386\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar forEachProperty = coreUtilityAliases.forEachProperty;\n\nfunction defineOnPrototype(ctor, methods) {\n var proto = ctor.prototype;\n forEachProperty(methods, function(val, key) {\n proto[key] = val;\n });\n}\n\nmodule.exports = defineOnPrototype;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/defineOnPrototype.js\n// module id = 387\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'clone': function() {\n return new Range(this.start, this.end);\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"clone\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/clone.js\n// module id = 388\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'contains': function(obj) {\n if (obj == null) return false;\n if (obj.start && obj.end) {\n return obj.start >= this.start && obj.start <= this.end &&\n obj.end >= this.start && obj.end <= this.end;\n } else {\n return obj >= this.start && obj <= this.end;\n }\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"contains\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/contains.js\n// module id = 389\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"days\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/days.js\n// module id = 390\n// module chunks = 0","'use strict';\n\nvar buildDateRangeUnits = require('../internal/buildDateRangeUnits');\n\nbuildDateRangeUnits();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/build/buildDateRangeUnitsCall.js\n// module id = 391\n// module chunks = 0","'use strict';\n\nvar MULTIPLIERS = require('../var/MULTIPLIERS'),\n DURATION_UNITS = require('../var/DURATION_UNITS'),\n Range = require('./Range'),\n trunc = require('../../common/var/trunc'),\n forEach = require('../../common/internal/forEach'),\n rangeEvery = require('./rangeEvery'),\n simpleCapitalize = require('../../common/internal/simpleCapitalize'),\n defineOnPrototype = require('../../common/internal/defineOnPrototype');\n\nfunction buildDateRangeUnits() {\n var methods = {};\n forEach(DURATION_UNITS.split('|'), function(unit, i) {\n var name = unit + 's', mult, fn;\n if (i < 4) {\n fn = function() {\n return rangeEvery(this, unit, true);\n };\n } else {\n mult = MULTIPLIERS[simpleCapitalize(name)];\n fn = function() {\n return trunc((this.end - this.start) / mult);\n };\n }\n methods[name] = fn;\n });\n defineOnPrototype(Range, methods);\n}\n\nmodule.exports = buildDateRangeUnits;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/buildDateRangeUnits.js\n// module id = 392\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../../common/var/classChecks'),\n rangeIsValid = require('./rangeIsValid'),\n incrementDate = require('./incrementDate'),\n incrementNumber = require('./incrementNumber'),\n incrementString = require('./incrementString'),\n getGreaterPrecision = require('./getGreaterPrecision'),\n getDateIncrementObject = require('./getDateIncrementObject');\n\nvar isNumber = classChecks.isNumber,\n isString = classChecks.isString,\n isDate = classChecks.isDate,\n isFunction = classChecks.isFunction;\n\nfunction rangeEvery(range, step, countOnly, fn) {\n var increment,\n precision,\n dio,\n unit,\n start = range.start,\n end = range.end,\n inverse = end < start,\n current = start,\n index = 0,\n result = [];\n\n if (!rangeIsValid(range)) {\n return [];\n }\n if (isFunction(step)) {\n fn = step;\n step = null;\n }\n step = step || 1;\n if (isNumber(start)) {\n precision = getGreaterPrecision(start, step);\n increment = function() {\n return incrementNumber(current, step, precision);\n };\n } else if (isString(start)) {\n increment = function() {\n return incrementString(current, step);\n };\n } else if (isDate(start)) {\n dio = getDateIncrementObject(step);\n step = dio[0];\n unit = dio[1];\n increment = function() {\n return incrementDate(current, step, unit);\n };\n }\n // Avoiding infinite loops\n if (inverse && step > 0) {\n step *= -1;\n }\n while(inverse ? current >= end : current <= end) {\n if (!countOnly) {\n result.push(current);\n }\n if (fn) {\n fn(current, index, range);\n }\n current = increment();\n index++;\n }\n return countOnly ? index - 1 : result;\n}\n\nmodule.exports = rangeEvery;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/rangeEvery.js\n// module id = 393\n// module chunks = 0","'use strict';\n\nvar isValidRangeMember = require('./isValidRangeMember');\n\nfunction rangeIsValid(range) {\n return isValidRangeMember(range.start) &&\n isValidRangeMember(range.end) &&\n typeof range.start === typeof range.end;\n}\n\nmodule.exports = rangeIsValid;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/rangeIsValid.js\n// module id = 394\n// module chunks = 0","'use strict';\n\nvar valueIsNotInfinite = require('./valueIsNotInfinite'),\n getRangeMemberPrimitiveValue = require('./getRangeMemberPrimitiveValue');\n\nfunction isValidRangeMember(m) {\n var val = getRangeMemberPrimitiveValue(m);\n return (!!val || val === 0) && valueIsNotInfinite(m);\n}\n\nmodule.exports = isValidRangeMember;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/isValidRangeMember.js\n// module id = 395\n// module chunks = 0","'use strict';\n\nfunction valueIsNotInfinite(m) {\n return m !== -Infinity && m !== Infinity;\n}\n\nmodule.exports = valueIsNotInfinite;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/valueIsNotInfinite.js\n// module id = 396\n// module chunks = 0","'use strict';\n\nvar withPrecision = require('../../common/internal/withPrecision');\n\nfunction incrementNumber(current, amount, precision) {\n return withPrecision(current + amount, precision);\n}\n\nmodule.exports = incrementNumber;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/incrementNumber.js\n// module id = 397\n// module chunks = 0","'use strict';\n\nvar chr = require('../../common/var/chr');\n\nfunction incrementString(current, amount) {\n return chr(current.charCodeAt(0) + amount);\n}\n\nmodule.exports = incrementString;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/incrementString.js\n// module id = 398\n// module chunks = 0","'use strict';\n\nvar mathAliases = require('../../common/var/mathAliases'),\n getPrecision = require('./getPrecision');\n\nvar max = mathAliases.max;\n\nfunction getGreaterPrecision(n1, n2) {\n return max(getPrecision(n1), getPrecision(n2));\n}\n\nmodule.exports = getGreaterPrecision;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/getGreaterPrecision.js\n// module id = 399\n// module chunks = 0","'use strict';\n\nvar periodSplit = require('../../common/internal/periodSplit');\n\nfunction getPrecision(n) {\n var split = periodSplit(n.toString());\n return split[1] ? split[1].length : 0;\n}\n\nmodule.exports = getPrecision;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/getPrecision.js\n// module id = 400\n// module chunks = 0","'use strict';\n\nvar CommonChars = require('../var/CommonChars');\n\nvar HALF_WIDTH_PERIOD = CommonChars.HALF_WIDTH_PERIOD;\n\nfunction periodSplit(str) {\n return str.split(HALF_WIDTH_PERIOD);\n}\n\nmodule.exports = periodSplit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/periodSplit.js\n// module id = 401\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n rangeEvery = require('./internal/rangeEvery'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'every': function(amount, fn) {\n return rangeEvery(this, amount, false, fn);\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"every\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/every.js\n// module id = 402\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"hours\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/hours.js\n// module id = 403\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'intersect': function(range) {\n if (range.start > this.end || range.end < this.start) {\n return new Range(NaN, NaN);\n }\n return new Range(\n this.start > range.start ? this.start : range.start,\n this.end < range.end ? this.end : range.end\n );\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"intersect\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/intersect.js\n// module id = 404\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n rangeIsValid = require('./internal/rangeIsValid'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'isValid': function() {\n return rangeIsValid(this);\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"isValid\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/isValid.js\n// module id = 405\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"milliseconds\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/milliseconds.js\n// module id = 406\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"minutes\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/minutes.js\n// module id = 407\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"months\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/months.js\n// module id = 408\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"seconds\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/seconds.js\n// module id = 409\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n mathAliases = require('../common/var/mathAliases'),\n rangeIsValid = require('./internal/rangeIsValid'),\n defineOnPrototype = require('../common/internal/defineOnPrototype'),\n getRangeMemberNumericValue = require('./internal/getRangeMemberNumericValue');\n\nvar abs = mathAliases.abs;\n\ndefineOnPrototype(Range, {\n\n 'span': function() {\n var n = getRangeMemberNumericValue(this.end) - getRangeMemberNumericValue(this.start);\n return rangeIsValid(this) ? abs(n) + 1 : NaN;\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"span\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/span.js\n// module id = 410\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../../common/var/classChecks');\n\nvar isString = classChecks.isString;\n\nfunction getRangeMemberNumericValue(m) {\n return isString(m) ? m.charCodeAt(0) : m;\n}\n\nmodule.exports = getRangeMemberNumericValue;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/getRangeMemberNumericValue.js\n// module id = 411\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n rangeEvery = require('./internal/rangeEvery'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'toArray': function() {\n return rangeEvery(this);\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"toArray\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/toArray.js\n// module id = 412\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n rangeIsValid = require('./internal/rangeIsValid'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'toString': function() {\n return rangeIsValid(this) ? this.start + '..' + this.end : 'Invalid Range';\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"toString\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/toString.js\n// module id = 413\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'union': function(range) {\n return new Range(\n this.start < range.start ? this.start : range.start,\n this.end > range.end ? this.end : range.end\n );\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"union\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/union.js\n// module id = 414\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"weeks\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/weeks.js\n// module id = 415\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"years\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/years.js\n// module id = 416\n// module chunks = 0","'use strict';\n\nrequire('./ca');\nrequire('./da');\nrequire('./de');\nrequire('./es');\nrequire('./fi');\nrequire('./fr');\nrequire('./it');\nrequire('./ja');\nrequire('./ko');\nrequire('./nl');\nrequire('./no');\nrequire('./pl');\nrequire('./pt');\nrequire('./ru');\nrequire('./sv');\nrequire('./zh-CN');\nrequire('./zh-TW');\n\nmodule.exports = require('sugar-core');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/index.js\n// module id = 417\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Catalan locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('ca')\n *\n */\naddLocale('ca', {\n 'plural': true,\n 'units': 'milisegon:|s,segon:|s,minut:|s,hor:a|es,di:a|es,setman:a|es,mes:|os,any:|s',\n 'months': 'gen:er|,febr:er|,mar:ç|,abr:il|,mai:g|,jun:y|,jul:iol|,ag:ost|,set:embre|,oct:ubre|,nov:embre|,des:embre|',\n 'weekdays': 'diumenge|dg,dilluns|dl,dimarts|dt,dimecres|dc,dijous|dj,divendres|dv,dissabte|ds',\n 'numerals': 'zero,un,dos,tres,quatre,cinc,sis,set,vuit,nou,deu',\n 'tokens': 'el,la,de',\n 'short': '{dd}/{MM}/{yyyy}',\n 'medium': '{d} {month} {yyyy}',\n 'long': '{d} {month} {yyyy} {time}',\n 'full': '{weekday} {d} {month} {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{sign} {num} {unit}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'timeMarkers': 'a las',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': \"abans d'ahir\", 'value': -2 },\n { 'name': 'day', 'src': 'ahir', 'value': -1 },\n { 'name': 'day', 'src': 'avui', 'value': 0 },\n { 'name': 'day', 'src': 'demà|dema', 'value': 1 },\n { 'name': 'sign', 'src': 'fa', 'value': -1 },\n { 'name': 'sign', 'src': 'en', 'value': 1 },\n { 'name': 'shift', 'src': 'passat', 'value': -1 },\n { 'name': 'shift', 'src': 'el proper|la propera', 'value': 1 }\n ],\n 'parse': [\n '{sign} {num} {unit}',\n '{num} {unit} {sign}',\n '{0?}{1?} {unit:5-7} {shift}',\n '{0?}{1?} {shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift} {weekday}',\n '{weekday} {shift}',\n '{date?} {2?} {months}\\\\.? {2?} {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"ca\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/ca.js\n// module id = 418\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Danish locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('da')\n *\n */\naddLocale('da', {\n 'plural': true,\n 'units': 'millisekund:|er,sekund:|er,minut:|ter,tim:e|er,dag:|e,ug:e|er|en,måned:|er|en+maaned:|er|en,år:||et+aar:||et',\n 'months': 'jan:uar|,feb:ruar|,mar:ts|,apr:il|,maj,jun:i|,jul:i|,aug:ust|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',\n 'weekdays': 'søn:dag|+son:dag|,man:dag|,tir:sdag|,ons:dag|,tor:sdag|,fre:dag|,lør:dag|+lor:dag|',\n 'numerals': 'nul,en|et,to,tre,fire,fem,seks,syv,otte,ni,ti',\n 'tokens': 'den,for',\n 'articles': 'den',\n 'short': '{dd}-{MM}-{yyyy}',\n 'medium': '{d}. {month} {yyyy}',\n 'long': '{d}. {month} {yyyy} {time}',\n 'full': '{weekday} d. {d}. {month} {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{num} {unit} {sign}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'forgårs|i forgårs|forgaars|i forgaars', 'value': -2 },\n { 'name': 'day', 'src': 'i går|igår|i gaar|igaar', 'value': -1 },\n { 'name': 'day', 'src': 'i dag|idag', 'value': 0 },\n { 'name': 'day', 'src': 'i morgen|imorgen', 'value': 1 },\n { 'name': 'day', 'src': 'over morgon|overmorgen|i over morgen|i overmorgen|iovermorgen', 'value': 2 },\n { 'name': 'sign', 'src': 'siden', 'value': -1 },\n { 'name': 'sign', 'src': 'om', 'value': 1 },\n { 'name': 'shift', 'src': 'i sidste|sidste', 'value': -1 },\n { 'name': 'shift', 'src': 'denne', 'value': 0 },\n { 'name': 'shift', 'src': 'næste|naeste', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{num} {unit} {sign}',\n '{sign} {num} {unit}',\n '{1?} {num} {unit} {sign}',\n '{shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{date} {months?}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{shift} {weekday}',\n '{0?} {weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"da\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/da.js\n// module id = 419\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * German locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('de')\n *\n */\naddLocale('de', {\n 'plural': true,\n 'units': 'Millisekunde:|n,Sekunde:|n,Minute:|n,Stunde:|n,Tag:|en,Woche:|n,Monat:|en,Jahr:|en|e',\n 'months': 'Jan:uar|,Feb:ruar|,M:är|ärz|ar|arz,Apr:il|,Mai,Juni,Juli,Aug:ust|,Sept:ember|,Okt:ober|,Nov:ember|,Dez:ember|',\n 'weekdays': 'So:nntag|,Mo:ntag|,Di:enstag|,Mi:ttwoch|,Do:nnerstag|,Fr:eitag|,Sa:mstag|',\n 'numerals': 'null,ein:|e|er|en|em,zwei,drei,vier,fuenf,sechs,sieben,acht,neun,zehn',\n 'tokens': 'der',\n 'short': '{dd}.{MM}.{yyyy}',\n 'medium': '{d}. {Month} {yyyy}',\n 'long': '{d}. {Month} {yyyy} {time}',\n 'full': '{Weekday}, {d}. {Month} {yyyy} {time}',\n 'stamp': '{Dow} {d} {Mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{sign} {num} {unit}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'timeMarkers': 'um',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'vorgestern', 'value': -2 },\n { 'name': 'day', 'src': 'gestern', 'value': -1 },\n { 'name': 'day', 'src': 'heute', 'value': 0 },\n { 'name': 'day', 'src': 'morgen', 'value': 1 },\n { 'name': 'day', 'src': 'übermorgen|ubermorgen|uebermorgen', 'value': 2 },\n { 'name': 'sign', 'src': 'vor:|her', 'value': -1 },\n { 'name': 'sign', 'src': 'in', 'value': 1 },\n { 'name': 'shift', 'src': 'letzte:|r|n|s', 'value': -1 },\n { 'name': 'shift', 'src': 'nächste:|r|n|s+nachste:|r|n|s+naechste:|r|n|s+kommende:n|r', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{sign} {num} {unit}',\n '{num} {unit} {sign}',\n '{shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift?} {day|weekday}',\n '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{shift} {weekday}',\n '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"de\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/de.js\n// module id = 420\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Spanish locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('es')\n *\n */\naddLocale('es', {\n 'plural': true,\n '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',\n '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|',\n 'weekdays': 'dom:ingo|,lun:es|,mar:tes|,mié:rcoles|+mie:rcoles|,jue:ves|,vie:rnes|,sáb:ado|+sab:ado|',\n 'numerals': 'cero,uno,dos,tres,cuatro,cinco,seis,siete,ocho,nueve,diez',\n 'tokens': 'el,la,de',\n 'short': '{dd}/{MM}/{yyyy}',\n 'medium': '{d} de {Month} de {yyyy}',\n 'long': '{d} de {Month} de {yyyy} {time}',\n 'full': '{weekday}, {d} de {month} de {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{sign} {num} {unit}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'timeMarkers': 'a las',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'anteayer', 'value': -2 },\n { 'name': 'day', 'src': 'ayer', 'value': -1 },\n { 'name': 'day', 'src': 'hoy', 'value': 0 },\n { 'name': 'day', 'src': 'mañana|manana', 'value': 1 },\n { 'name': 'sign', 'src': 'hace', 'value': -1 },\n { 'name': 'sign', 'src': 'dentro de', 'value': 1 },\n { 'name': 'shift', 'src': 'pasad:o|a', 'value': -1 },\n { 'name': 'shift', 'src': 'próximo|próxima|proximo|proxima', 'value': 1 }\n ],\n 'parse': [\n '{months} {2?} {year?}',\n '{sign} {num} {unit}',\n '{num} {unit} {sign}',\n '{0?}{1?} {unit:5-7} {shift}',\n '{0?}{1?} {shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift?} {day|weekday} {shift?}',\n '{date} {2?} {months?}\\\\.? {2?} {year?}'\n ],\n 'timeFrontParse': [\n '{shift?} {weekday} {shift?}',\n '{date} {2?} {months?}\\\\.? {2?} {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"es\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/es.js\n// module id = 421\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Finnish locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('fi')\n *\n */\naddLocale('fi', {\n 'plural': true,\n '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',\n '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',\n 'weekdays': 'su:nnuntai||nnuntaina,ma:anantai||anantaina,ti:istai||istaina,ke:skiviikko||skiviikkona,to:rstai||rstaina,pe:rjantai||rjantaina,la:uantai||uantaina',\n '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',\n 'short': '{d}.{M}.{yyyy}',\n 'medium': '{d}. {month} {yyyy}',\n 'long': '{d}. {month} {yyyy} klo {time}',\n 'full': '{weekday} {d}. {month} {yyyy} klo {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}.{mm}',\n 'timeMarkers': 'klo,kello',\n 'ordinalSuffix': '.',\n 'relative': function(num, unit, ms, format) {\n var units = this['units'];\n function numberWithUnit(mult) {\n return num + ' ' + units[(8 * mult) + unit];\n }\n function baseUnit() {\n return numberWithUnit(num === 1 ? 0 : 1);\n }\n switch(format) {\n case 'duration': return baseUnit();\n case 'past': return baseUnit() + ' sitten';\n case 'future': return numberWithUnit(2) + ' kuluttua';\n }\n },\n 'modifiers': [\n { 'name': 'day', 'src': 'toissa päivänä', 'value': -2 },\n { 'name': 'day', 'src': 'eilen|eilistä', 'value': -1 },\n { 'name': 'day', 'src': 'tänään', 'value': 0 },\n { 'name': 'day', 'src': 'huomenna|huomista', 'value': 1 },\n { 'name': 'day', 'src': 'ylihuomenna|ylihuomista', 'value': 2 },\n { 'name': 'sign', 'src': 'sitten|aiemmin', 'value': -1 },\n { 'name': 'sign', 'src': 'päästä|kuluttua|myöhemmin', 'value': 1 },\n { 'name': 'edge', 'src': 'lopussa', 'value': 2 },\n { 'name': 'edge', 'src': 'ensimmäinen|ensimmäisenä', 'value': -2 },\n { 'name': 'shift', 'src': 'edel:linen|lisenä', 'value': -1 },\n { 'name': 'shift', 'src': 'viime', 'value': -1 },\n { 'name': 'shift', 'src': 'tä:llä|ssä|nä|mä', 'value': 0 },\n { 'name': 'shift', 'src': 'seuraava|seuraavana|tuleva|tulevana|ensi', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift?} {day|weekday}',\n '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{shift?} {day|weekday}',\n '{num?} {unit} {sign}',\n '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"fi\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/fi.js\n// module id = 422\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * French locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('fr')\n *\n */\naddLocale('fr', {\n 'plural': true,\n 'units': 'milliseconde:|s,seconde:|s,minute:|s,heure:|s,jour:|s,semaine:|s,mois,an:|s|née|nee',\n '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|',\n 'weekdays': 'dim:anche|,lun:di|,mar:di|,mer:credi|,jeu:di|,ven:dredi|,sam:edi|',\n 'numerals': 'zéro,un:|e,deux,trois,quatre,cinq,six,sept,huit,neuf,dix',\n 'tokens': \"l'|la|le,er\",\n 'short': '{dd}/{MM}/{yyyy}',\n 'medium': '{d} {month} {yyyy}',\n 'long': '{d} {month} {yyyy} {time}',\n 'full': '{weekday} {d} {month} {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{sign} {num} {unit}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'timeMarkers': 'à',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'hier', 'value': -1 },\n { 'name': 'day', 'src': \"aujourd'hui\", 'value': 0 },\n { 'name': 'day', 'src': 'demain', 'value': 1 },\n { 'name': 'sign', 'src': 'il y a', 'value': -1 },\n { 'name': 'sign', 'src': \"dans|d'ici\", 'value': 1 },\n { 'name': 'shift', 'src': 'derni:èr|er|ère|ere', 'value': -1 },\n { 'name': 'shift', 'src': 'prochain:|e', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{sign} {num} {unit}',\n '{0?} {unit:5-7} {shift}'\n ],\n 'timeParse': [\n '{day|weekday} {shift?}',\n '{weekday?},? {0?} {date}{1?} {months}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{0?} {weekday} {shift}',\n '{weekday?},? {0?} {date}{1?} {months}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"fr\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/fr.js\n// module id = 423\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Italian locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('it')\n *\n */\naddLocale('it', {\n 'plural': true,\n 'units': 'millisecond:o|i,second:o|i,minut:o|i,or:a|e,giorn:o|i,settiman:a|e,mes:e|i,ann:o|i',\n 'months': 'gen:naio|,feb:braio|,mar:zo|,apr:ile|,mag:gio|,giu:gno|,lug:lio|,ago:sto|,set:tembre|,ott:obre|,nov:embre|,dic:embre|',\n 'weekdays': 'dom:enica|,lun:edì||edi,mar:tedì||tedi,mer:coledì||coledi,gio:vedì||vedi,ven:erdì||erdi,sab:ato|',\n 'numerals': \"zero,un:|a|o|',due,tre,quattro,cinque,sei,sette,otto,nove,dieci\",\n 'tokens': \"l'|la|il\",\n 'short': '{dd}/{MM}/{yyyy}',\n 'medium': '{d} {month} {yyyy}',\n 'long': '{d} {month} {yyyy} {time}',\n 'full': '{weekday}, {d} {month} {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{num} {unit} {sign}',\n 'future': '{num} {unit} {sign}',\n 'duration': '{num} {unit}',\n 'timeMarkers': 'alle',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'ieri', 'value': -1 },\n { 'name': 'day', 'src': 'oggi', 'value': 0 },\n { 'name': 'day', 'src': 'domani', 'value': 1 },\n { 'name': 'day', 'src': 'dopodomani', 'value': 2 },\n { 'name': 'sign', 'src': 'fa', 'value': -1 },\n { 'name': 'sign', 'src': 'da adesso', 'value': 1 },\n { 'name': 'shift', 'src': 'scors:o|a', 'value': -1 },\n { 'name': 'shift', 'src': 'prossim:o|a', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{num} {unit} {sign}',\n '{0?} {unit:5-7} {shift}',\n '{0?} {shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift?} {day|weekday}',\n '{weekday?},? {date} {months?}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{shift?} {day|weekday}',\n '{weekday?},? {date} {months?}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"it\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/it.js\n// module id = 424\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Japanese locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('ja')\n *\n */\naddLocale('ja', {\n 'ampmFront': true,\n 'numeralUnits': true,\n 'allowsFullWidth': true,\n 'timeMarkerOptional': true,\n 'firstDayOfWeek': 0,\n 'firstDayOfWeekYear': 1,\n 'units': 'ミリ秒,秒,分,時間,日,週間|週,ヶ月|ヵ月|月,年|年度',\n 'weekdays': '日:曜日||曜,月:曜日||曜,火:曜日||曜,水:曜日||曜,木:曜日||曜,金:曜日||曜,土:曜日||曜',\n 'numerals': '〇,一,二,三,四,五,六,七,八,九',\n 'placeholders': '十,百,千,万',\n 'timeSuffixes': ',秒,分,時,日,,月,年度?',\n 'short': '{yyyy}/{MM}/{dd}',\n 'medium': '{yyyy}年{M}月{d}日',\n 'long': '{yyyy}年{M}月{d}日{time}',\n 'full': '{yyyy}年{M}月{d}日{time} {weekday}',\n 'stamp': '{yyyy}年{M}月{d}日 {H}:{mm} {dow}',\n 'time': '{tt}{h}時{mm}分',\n 'past': '{num}{unit}{sign}',\n 'future': '{num}{unit}{sign}',\n 'duration': '{num}{unit}',\n 'ampm': '午前,午後',\n 'modifiers': [\n { 'name': 'day', 'src': '一昨々日|前々々日', 'value': -3 },\n { 'name': 'day', 'src': '一昨日|おととい|前々日', 'value': -2 },\n { 'name': 'day', 'src': '昨日|前日', 'value': -1 },\n { 'name': 'day', 'src': '今日|当日|本日', 'value': 0 },\n { 'name': 'day', 'src': '明日|翌日|次日', 'value': 1 },\n { 'name': 'day', 'src': '明後日|翌々日', 'value': 2 },\n { 'name': 'day', 'src': '明々後日|翌々々日', 'value': 3 },\n { 'name': 'sign', 'src': '前', 'value': -1 },\n { 'name': 'sign', 'src': '後', 'value': 1 },\n { 'name': 'edge', 'src': '始|初日|頭', 'value': -2 },\n { 'name': 'edge', 'src': '末|尻', 'value': 2 },\n { 'name': 'edge', 'src': '末日', 'value': 1 },\n { 'name': 'shift', 'src': '一昨々|前々々', 'value': -3 },\n { 'name': 'shift', 'src': '一昨|前々|先々', 'value': -2 },\n { 'name': 'shift', 'src': '先|昨|去|前', 'value': -1 },\n { 'name': 'shift', 'src': '今|本|当', 'value': 0 },\n { 'name': 'shift', 'src': '来|明|翌|次', 'value': 1 },\n { 'name': 'shift', 'src': '明後|翌々|次々|再来|さ来', 'value': 2 },\n { 'name': 'shift', 'src': '明々後|翌々々', 'value': 3 }\n ],\n 'parse': [\n '{month}{edge}',\n '{num}{unit}{sign}',\n '{year?}{month}',\n '{year}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{shift}{unit:5}{weekday?}',\n '{shift}{unit:7}{month}{edge}',\n '{shift}{unit:7}{month?}{date?}',\n '{shift}{unit:6}{edge?}{date?}',\n '{year?}{month?}{date}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"ja\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/ja.js\n// module id = 425\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Korean locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('ko')\n *\n */\naddLocale('ko', {\n 'ampmFront': true,\n 'numeralUnits': true,\n 'units': '밀리초,초,분,시간,일,주,개월|달,년|해',\n 'weekdays': '일:요일|,월:요일|,화:요일|,수:요일|,목:요일|,금:요일|,토:요일|',\n 'numerals': '영|제로,일|한,이,삼,사,오,육,칠,팔,구,십',\n 'short': '{yyyy}.{MM}.{dd}',\n 'medium': '{yyyy}년 {M}월 {d}일',\n 'long': '{yyyy}년 {M}월 {d}일 {time}',\n 'full': '{yyyy}년 {M}월 {d}일 {weekday} {time}',\n 'stamp': '{yyyy}년 {M}월 {d}일 {H}:{mm} {dow}',\n 'time': '{tt} {h}시 {mm}분',\n 'past': '{num}{unit} {sign}',\n 'future': '{num}{unit} {sign}',\n 'duration': '{num}{unit}',\n 'timeSuffixes': ',초,분,시,일,,월,년',\n 'ampm': '오전,오후',\n 'modifiers': [\n { 'name': 'day', 'src': '그저께', 'value': -2 },\n { 'name': 'day', 'src': '어제', 'value': -1 },\n { 'name': 'day', 'src': '오늘', 'value': 0 },\n { 'name': 'day', 'src': '내일', 'value': 1 },\n { 'name': 'day', 'src': '모레', 'value': 2 },\n { 'name': 'sign', 'src': '전', 'value': -1 },\n { 'name': 'sign', 'src': '후', 'value': 1 },\n { 'name': 'shift', 'src': '지난|작', 'value': -1 },\n { 'name': 'shift', 'src': '이번|올', 'value': 0 },\n { 'name': 'shift', 'src': '다음|내', 'value': 1 }\n ],\n 'parse': [\n '{num}{unit} {sign}',\n '{shift?} {unit:5-7}',\n '{year?} {month}',\n '{year}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{shift} {unit:5?} {weekday}',\n '{year?} {month?} {date} {weekday?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"ko\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/ko.js\n// module id = 426\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Dutch locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('nl')\n *\n */\naddLocale('nl', {\n 'plural': true,\n 'units': 'milliseconde:|n,seconde:|n,minu:ut|ten,uur,dag:|en,we:ek|ken,maand:|en,jaar',\n 'months': 'jan:uari|,feb:ruari|,maart|mrt,apr:il|,mei,jun:i|,jul:i|,aug:ustus|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',\n 'weekdays': 'zondag|zo,maandag|ma,dinsdag|di,woensdag|wo|woe,donderdag|do,vrijdag|vr|vrij,zaterdag|za',\n 'numerals': 'nul,een,twee,drie,vier,vijf,zes,zeven,acht,negen,tien',\n 'short': '{dd}-{MM}-{yyyy}',\n 'medium': '{d} {month} {yyyy}',\n 'long': '{d} {Month} {yyyy} {time}',\n 'full': '{weekday} {d} {Month} {yyyy} {time}',\n 'stamp': '{dow} {d} {Mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{num} {unit} {sign}',\n 'future': '{num} {unit} {sign}',\n 'duration': '{num} {unit}',\n 'timeMarkers': \"'s,om\",\n 'modifiers': [\n { 'name': 'day', 'src': 'gisteren', 'value': -1 },\n { 'name': 'day', 'src': 'vandaag', 'value': 0 },\n { 'name': 'day', 'src': 'morgen', 'value': 1 },\n { 'name': 'day', 'src': 'overmorgen', 'value': 2 },\n { 'name': 'sign', 'src': 'geleden', 'value': -1 },\n { 'name': 'sign', 'src': 'vanaf nu', 'value': 1 },\n { 'name': 'shift', 'src': 'laatste|vorige|afgelopen', 'value': -1 },\n { 'name': 'shift', 'src': 'volgend:|e', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{num} {unit} {sign}',\n '{0?} {unit:5-7} {shift}',\n '{0?} {shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift?} {day|weekday}',\n '{weekday?},? {date} {months?}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{shift?} {day|weekday}',\n '{weekday?},? {date} {months?}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"nl\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/nl.js\n// module id = 427\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Norwegian locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('no')\n *\n */\naddLocale('no', {\n 'plural': true,\n 'units': 'millisekund:|er,sekund:|er,minutt:|er,tim:e|er,dag:|er,uk:e|er|en,måned:|er|en+maaned:|er|en,år:||et+aar:||et',\n 'months': 'januar,februar,mars,april,mai,juni,juli,august,september,oktober,november,desember',\n 'weekdays': 'søndag|sondag,mandag,tirsdag,onsdag,torsdag,fredag,lørdag|lordag',\n 'numerals': 'en|et,to,tre,fire,fem,seks,sju|syv,åtte,ni,ti',\n 'tokens': 'den,for',\n 'articles': 'den',\n 'short':'d. {d}. {month} {yyyy}',\n 'long': 'den {d}. {month} {yyyy} {H}:{mm}',\n 'full': '{Weekday} den {d}. {month} {yyyy} {H}:{mm}:{ss}',\n 'past': '{num} {unit} {sign}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'forgårs|i forgårs|forgaars|i forgaars', 'value': -2 },\n { 'name': 'day', 'src': 'i går|igår|i gaar|igaar', 'value': -1 },\n { 'name': 'day', 'src': 'i dag|idag', 'value': 0 },\n { 'name': 'day', 'src': 'i morgen|imorgen', 'value': 1 },\n { 'name': 'day', 'src': 'overimorgen|overmorgen|over i morgen', 'value': 2 },\n { 'name': 'sign', 'src': 'siden', 'value': -1 },\n { 'name': 'sign', 'src': 'om', 'value': 1 },\n { 'name': 'shift', 'src': 'i siste|siste', 'value': -1 },\n { 'name': 'shift', 'src': 'denne', 'value': 0 },\n { 'name': 'shift', 'src': 'neste', 'value': 1 }\n ],\n 'parse': [\n '{num} {unit} {sign}',\n '{sign} {num} {unit}',\n '{1?} {num} {unit} {sign}',\n '{shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{date} {month}',\n '{shift} {weekday}',\n '{0?} {weekday?},? {date?} {month}\\\\.? {year}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"no\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/no.js\n// module id = 428\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Polish locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('pl')\n *\n */\naddLocale('pl', {\n 'plural': true,\n 'units': 'milisekund:a|y|,sekund:a|y|,minut:a|y|,godzin:a|y|,dzień|dni|dni,tydzień|tygodnie|tygodni,miesiąc|miesiące|miesięcy,rok|lata|lat',\n 'months': 'sty:cznia||czeń,lut:ego||y,mar:ca||zec,kwi:etnia||ecień,maj:a|,cze:rwca||rwiec,lip:ca||iec,sie:rpnia||rpień,wrz:eśnia||esień,paź:dziernika||dziernik,lis:topada||topad,gru:dnia||dzień',\n 'weekdays': 'nie:dziela||dzielę,pon:iedziałek|,wt:orek|,śr:oda||odę,czw:artek|,piątek|pt,sobota|sb|sobotę',\n 'numerals': 'zero,jeden|jedną,dwa|dwie,trzy,cztery,pięć,sześć,siedem,osiem,dziewięć,dziesięć',\n 'tokens': 'w|we,roku',\n 'short': '{dd}.{MM}.{yyyy}',\n 'medium': '{d} {month} {yyyy}',\n 'long': '{d} {month} {yyyy} {time}',\n 'full' : '{weekday}, {d} {month} {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'timeMarkers': 'o',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'przedwczoraj', 'value': -2 },\n { 'name': 'day', 'src': 'wczoraj', 'value': -1 },\n { 'name': 'day', 'src': 'dzisiaj|dziś', 'value': 0 },\n { 'name': 'day', 'src': 'jutro', 'value': 1 },\n { 'name': 'day', 'src': 'pojutrze', 'value': 2 },\n { 'name': 'sign', 'src': 'temu|przed', 'value': -1 },\n { 'name': 'sign', 'src': 'za', 'value': 1 },\n { 'name': 'shift', 'src': 'zeszły|zeszła|ostatni|ostatnia', 'value': -1 },\n { 'name': 'shift', 'src': 'następny|następna|następnego|przyszły|przyszła|przyszłego', 'value': 1 }\n ],\n 'relative': function (num, unit, ms, format) {\n // special cases for relative days\n var DAY = 4;\n if (unit === DAY) {\n if (num === 1 && format === 'past') return 'wczoraj';\n if (num === 1 && format === 'future') return 'jutro';\n if (num === 2 && format === 'past') return 'przedwczoraj';\n if (num === 2 && format === 'future') return 'pojutrze';\n }\n\n var mult;\n var last = +num.toFixed(0).slice(-1);\n var last2 = +num.toFixed(0).slice(-2);\n switch (true) {\n case num === 1: mult = 0; break;\n case last2 >= 12 && last2 <= 14: mult = 2; break;\n case last >= 2 && last <= 4: mult = 1; break;\n default: mult = 2;\n }\n var text = this['units'][(mult * 8) + unit];\n var prefix = num + ' ';\n\n // changing to accusative case for 'past' and 'future' formats\n // (only singular feminine unit words are different in accusative, each of which ends with 'a')\n if ((format === 'past' || format === 'future') && num === 1) {\n text = text.replace(/a$/, 'ę');\n }\n\n text = prefix + text;\n switch (format) {\n case 'duration': return text;\n case 'past': return text + ' temu';\n case 'future': return 'za ' + text;\n }\n },\n 'parse': [\n '{num} {unit} {sign}',\n '{sign} {num} {unit}',\n '{months} {year?}',\n '{shift} {unit:5-7}',\n '{0} {shift?} {weekday}'\n ],\n 'timeFrontParse': [\n '{day|weekday}',\n '{date} {months} {year?} {1?}',\n '{0?} {shift?} {weekday}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"pl\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/pl.js\n// module id = 429\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Portuguese locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('pt')\n *\n */\naddLocale('pt', {\n 'plural': true,\n 'units': 'milisegundo:|s,segundo:|s,minuto:|s,hora:|s,dia:|s,semana:|s,mês|mêses|mes|meses,ano:|s',\n 'months': 'jan:eiro|,fev:ereiro|,mar:ço|,abr:il|,mai:o|,jun:ho|,jul:ho|,ago:sto|,set:embro|,out:ubro|,nov:embro|,dez:embro|',\n 'weekdays': 'dom:ingo|,seg:unda-feira|,ter:ça-feira|,qua:rta-feira|,qui:nta-feira|,sex:ta-feira|,sáb:ado||ado',\n 'numerals': 'zero,um:|a,dois|duas,três|tres,quatro,cinco,seis,sete,oito,nove,dez',\n 'tokens': 'a,de',\n 'short': '{dd}/{MM}/{yyyy}',\n 'medium': '{d} de {Month} de {yyyy}',\n 'long': '{d} de {Month} de {yyyy} {time}',\n 'full': '{Weekday}, {d} de {Month} de {yyyy} {time}',\n 'stamp': '{Dow} {d} {Mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{num} {unit} {sign}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'timeMarkers': 'às',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'anteontem', 'value': -2 },\n { 'name': 'day', 'src': 'ontem', 'value': -1 },\n { 'name': 'day', 'src': 'hoje', 'value': 0 },\n { 'name': 'day', 'src': 'amanh:ã|a', 'value': 1 },\n { 'name': 'sign', 'src': 'atrás|atras|há|ha', 'value': -1 },\n { 'name': 'sign', 'src': 'daqui a', 'value': 1 },\n { 'name': 'shift', 'src': 'passad:o|a', 'value': -1 },\n { 'name': 'shift', 'src': 'próximo|próxima|proximo|proxima', 'value': 1 }\n ],\n 'parse': [\n '{months} {1?} {year?}',\n '{num} {unit} {sign}',\n '{sign} {num} {unit}',\n '{0?} {unit:5-7} {shift}',\n '{0?} {shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift?} {day|weekday}',\n '{0?} {shift} {weekday}',\n '{date} {1?} {months?} {1?} {year?}'\n ],\n 'timeFrontParse': [\n '{shift?} {day|weekday}',\n '{date} {1?} {months?} {1?} {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"pt\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/pt.js\n// module id = 430\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Russian locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('ru')\n *\n */\naddLocale('ru', {\n 'firstDayOfWeekYear': 1,\n 'units': 'миллисекунд:а|у|ы|,секунд:а|у|ы|,минут:а|у|ы|,час:||а|ов,день|день|дня|дней,недел:я|ю|и|ь|е,месяц:||а|ев|е,год|год|года|лет|году',\n 'months': 'янв:аря||.|арь,фев:раля||р.|раль,мар:та||т,апр:еля||.|ель,мая|май,июн:я||ь,июл:я||ь,авг:уста||.|уст,сен:тября||т.|тябрь,окт:ября||.|ябрь,ноя:бря||брь,дек:абря||.|абрь',\n 'weekdays': 'воскресенье|вс,понедельник|пн,вторник|вт,среда|ср,четверг|чт,пятница|пт,суббота|сб',\n 'numerals': 'ноль,од:ин|ну,дв:а|е,три,четыре,пять,шесть,семь,восемь,девять,десять',\n 'tokens': 'в|на,г\\\\.?(?:ода)?',\n 'short': '{dd}.{MM}.{yyyy}',\n 'medium': '{d} {month} {yyyy} г.',\n 'long': '{d} {month} {yyyy} г., {time}',\n 'full': '{weekday}, {d} {month} {yyyy} г., {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'timeMarkers': 'в',\n 'ampm': ' утра, вечера',\n 'modifiers': [\n { 'name': 'day', 'src': 'позавчера', 'value': -2 },\n { 'name': 'day', 'src': 'вчера', 'value': -1 },\n { 'name': 'day', 'src': 'сегодня', 'value': 0 },\n { 'name': 'day', 'src': 'завтра', 'value': 1 },\n { 'name': 'day', 'src': 'послезавтра', 'value': 2 },\n { 'name': 'sign', 'src': 'назад', 'value': -1 },\n { 'name': 'sign', 'src': 'через', 'value': 1 },\n { 'name': 'shift', 'src': 'прошл:ый|ой|ом', 'value': -1 },\n { 'name': 'shift', 'src': 'следующ:ий|ей|ем', 'value': 1 }\n ],\n 'relative': function(num, unit, ms, format) {\n var numberWithUnit, last = num.toString().slice(-1), mult;\n switch(true) {\n case num >= 11 && num <= 15: mult = 3; break;\n case last == 1: mult = 1; break;\n case last >= 2 && last <= 4: mult = 2; break;\n default: mult = 3;\n }\n numberWithUnit = num + ' ' + this['units'][(mult * 8) + unit];\n switch(format) {\n case 'duration': return numberWithUnit;\n case 'past': return numberWithUnit + ' назад';\n case 'future': return 'через ' + numberWithUnit;\n }\n },\n 'parse': [\n '{num} {unit} {sign}',\n '{sign} {num} {unit}',\n '{months} {year?}',\n '{0?} {shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{0?} {shift} {weekday}',\n '{date} {months?} {year?} {1?}'\n ],\n 'timeFrontParse': [\n '{0?} {shift} {weekday}',\n '{date} {months?} {year?} {1?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"ru\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/ru.js\n// module id = 431\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Swedish locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('sv')\n *\n */\naddLocale('sv', {\n 'plural': true,\n 'units': 'millisekund:|er,sekund:|er,minut:|er,timm:e|ar,dag:|ar,veck:a|or|an,månad:|er|en+manad:|er|en,år:||et+ar:||et',\n 'months': 'jan:uari|,feb:ruari|,mar:s|,apr:il|,maj,jun:i|,jul:i|,aug:usti|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',\n 'weekdays': 'sön:dag|+son:dag|,mån:dag||dagen+man:dag||dagen,tis:dag|,ons:dag|,tor:sdag|,fre:dag|,lör:dag||dag',\n 'numerals': 'noll,en|ett,två|tva,tre,fyra,fem,sex,sju,åtta|atta,nio,tio',\n 'tokens': 'den,för|for',\n 'articles': 'den',\n 'short': '{yyyy}-{MM}-{dd}',\n 'medium': '{d} {month} {yyyy}',\n 'long': '{d} {month} {yyyy} {time}',\n 'full': '{weekday} {d} {month} {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{num} {unit} {sign}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'förrgår|i förrgår|iförrgår|forrgar|i forrgar|iforrgar', 'value': -2 },\n { 'name': 'day', 'src': 'går|i går|igår|gar|i gar|igar', 'value': -1 },\n { 'name': 'day', 'src': 'dag|i dag|idag', 'value': 0 },\n { 'name': 'day', 'src': 'morgon|i morgon|imorgon', 'value': 1 },\n { 'name': 'day', 'src': 'över morgon|övermorgon|i över morgon|i övermorgon|iövermorgon|over morgon|overmorgon|i over morgon|i overmorgon|iovermorgon', 'value': 2 },\n { 'name': 'sign', 'src': 'sedan|sen', 'value': -1 },\n { 'name': 'sign', 'src': 'om', 'value': 1 },\n { 'name': 'shift', 'src': 'i förra|förra|i forra|forra', 'value': -1 },\n { 'name': 'shift', 'src': 'denna', 'value': 0 },\n { 'name': 'shift', 'src': 'nästa|nasta', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{num} {unit} {sign}',\n '{sign} {num} {unit}',\n '{1?} {num} {unit} {sign}',\n '{shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{shift} {weekday}',\n '{0?} {weekday?},? {date} {months?}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{day|weekday}',\n '{shift} {weekday}',\n '{0?} {weekday?},? {date} {months?}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"sv\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/sv.js\n// module id = 432\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Simplified Chinese locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('zh-CN')\n *\n */\naddLocale('zh-CN', {\n 'ampmFront': true,\n 'numeralUnits': true,\n 'allowsFullWidth': true,\n 'timeMarkerOptional': true,\n 'units': '毫秒,秒钟,分钟,小时,天,个星期|周,个月,年',\n 'weekdays': '星期日|日|周日|星期天,星期一|一|周一,星期二|二|周二,星期三|三|周三,星期四|四|周四,星期五|五|周五,星期六|六|周六',\n 'numerals': '〇,一,二,三,四,五,六,七,八,九',\n 'placeholders': '十,百,千,万',\n 'short': '{yyyy}-{MM}-{dd}',\n 'medium': '{yyyy}年{M}月{d}日',\n 'long': '{yyyy}年{M}月{d}日{time}',\n 'full': '{yyyy}年{M}月{d}日{weekday}{time}',\n 'stamp': '{yyyy}年{M}月{d}日{H}:{mm}{dow}',\n 'time': '{tt}{h}点{mm}分',\n 'past': '{num}{unit}{sign}',\n 'future': '{num}{unit}{sign}',\n 'duration': '{num}{unit}',\n 'timeSuffixes': ',秒,分钟?,点|时,日|号,,月,年',\n 'ampm': '上午,下午',\n 'modifiers': [\n { 'name': 'day', 'src': '大前天', 'value': -3 },\n { 'name': 'day', 'src': '前天', 'value': -2 },\n { 'name': 'day', 'src': '昨天', 'value': -1 },\n { 'name': 'day', 'src': '今天', 'value': 0 },\n { 'name': 'day', 'src': '明天', 'value': 1 },\n { 'name': 'day', 'src': '后天', 'value': 2 },\n { 'name': 'day', 'src': '大后天', 'value': 3 },\n { 'name': 'sign', 'src': '前', 'value': -1 },\n { 'name': 'sign', 'src': '后', 'value': 1 },\n { 'name': 'shift', 'src': '上|去', 'value': -1 },\n { 'name': 'shift', 'src': '这', 'value': 0 },\n { 'name': 'shift', 'src': '下|明', 'value': 1 }\n ],\n 'parse': [\n '{num}{unit}{sign}',\n '{shift}{unit:5-7}',\n '{year?}{month}',\n '{year}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{shift}{weekday}',\n '{year?}{month?}{date}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"zh-CN\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/zh-CN.js\n// module id = 433\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Traditional Chinese locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('zh-TW')\n *\n */\naddLocale('zh-TW', {\n 'ampmFront': true,\n 'numeralUnits': true,\n 'allowsFullWidth': true,\n 'timeMarkerOptional': true,\n 'units': '毫秒,秒鐘,分鐘,小時,天,個星期|週,個月,年',\n 'weekdays': '星期日|日|週日|星期天,星期一|一|週一,星期二|二|週二,星期三|三|週三,星期四|四|週四,星期五|五|週五,星期六|六|週六',\n 'numerals': '〇,一,二,三,四,五,六,七,八,九',\n 'placeholders': '十,百,千,万',\n 'short': '{yyyy}/{MM}/{dd}',\n 'medium': '{yyyy}年{M}月{d}日',\n 'long': '{yyyy}年{M}月{d}日{time}',\n 'full': '{yyyy}年{M}月{d}日{weekday}{time}',\n 'stamp': '{yyyy}年{M}月{d}日{H}:{mm}{dow}',\n 'time': '{tt}{h}點{mm}分',\n 'past': '{num}{unit}{sign}',\n 'future': '{num}{unit}{sign}',\n 'duration': '{num}{unit}',\n 'timeSuffixes': ',秒,分鐘?,點|時,日|號,,月,年',\n 'ampm': '上午,下午',\n 'modifiers': [\n { 'name': 'day', 'src': '大前天', 'value': -3 },\n { 'name': 'day', 'src': '前天', 'value': -2 },\n { 'name': 'day', 'src': '昨天', 'value': -1 },\n { 'name': 'day', 'src': '今天', 'value': 0 },\n { 'name': 'day', 'src': '明天', 'value': 1 },\n { 'name': 'day', 'src': '後天', 'value': 2 },\n { 'name': 'day', 'src': '大後天', 'value': 3 },\n { 'name': 'sign', 'src': '前', 'value': -1 },\n { 'name': 'sign', 'src': '後', 'value': 1 },\n { 'name': 'shift', 'src': '上|去', 'value': -1 },\n { 'name': 'shift', 'src': '這', 'value': 0 },\n { 'name': 'shift', 'src': '下|明', 'value': 1 }\n ],\n 'parse': [\n '{num}{unit}{sign}',\n '{shift}{unit:5-7}',\n '{year?}{month}',\n '{year}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{shift}{weekday}',\n '{year?}{month?}{date}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"zh-TW\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/zh-TW.js\n// module id = 434\n// module chunks = 0"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///tablefilter.js","webpack:///webpack/bootstrap 646bbbb1d0863992cc61","webpack:///./src/tablefilter.js","webpack:///./src/event.js","webpack:///./src/root.js","webpack:///./src/dom.js","webpack:///./src/types.js","webpack:///./src/string.js","webpack:///./~/diacritics/index.js","webpack:///./src/number.js","webpack:///./src/emitter.js","webpack:///./src/modules/gridLayout.js","webpack:///./src/feature.js","webpack:///./src/const.js","webpack:///./src/modules/loader.js","webpack:///./src/modules/highlightKeywords.js","webpack:///./src/modules/popupFilter.js","webpack:///./src/modules/dropdown.js","webpack:///./src/array.js","webpack:///./src/sort.js","webpack:///./src/modules/checkList.js","webpack:///./src/modules/rowsCounter.js","webpack:///./src/modules/statusBar.js","webpack:///./src/modules/paging.js","webpack:///./src/modules/clearButton.js","webpack:///./src/modules/help.js","webpack:///./src/modules/alternateRows.js","webpack:///./src/modules/noResults.js","webpack:///./src/modules/state.js","webpack:///./src/modules/hash.js","webpack:///./src/modules/storage.js","webpack:///./src/cookie.js","webpack:///./src/modules/dateType.js","webpack:///./~/sugar-date/index.js","webpack:///./~/sugar-date/date/index.js","webpack:///./~/sugar-date/date/addLocale.js","webpack:///./~/sugar-date/~/sugar-core/sugar-core.js","webpack:///./~/sugar-date/date/var/LocaleHelpers.js","webpack:///./~/sugar-date/date/var/LazyLoadedLocales.js","webpack:///./~/sugar-date/date/var/BritishEnglishDefinition.js","webpack:///./~/sugar-date/date/internal/getEnglishVariant.js","webpack:///./~/sugar-date/date/var/EnglishLocaleBaseDefinition.js","webpack:///./~/sugar-date/common/internal/simpleMerge.js","webpack:///./~/sugar-date/common/var/coreUtilityAliases.js","webpack:///./~/sugar-date/common/internal/simpleClone.js","webpack:///./~/sugar-date/date/var/AmericanEnglishDefinition.js","webpack:///./~/sugar-date/date/var/CanadianEnglishDefinition.js","webpack:///./~/sugar-date/date/internal/getNewLocale.js","webpack:///./~/sugar-date/date/var/LOCALE_ARRAY_FIELDS.js","webpack:///./~/sugar-date/date/var/ISODefaults.js","webpack:///./~/sugar-date/date/var/ParsingTokens.js","webpack:///./~/sugar-date/date/var/CoreParsingFormats.js","webpack:///./~/sugar-date/date/var/LocalizedParsingTokens.js","webpack:///./~/sugar-date/common/internal/map.js","webpack:///./~/sugar-date/common/internal/filter.js","webpack:///./~/sugar-date/common/internal/forEach.js","webpack:///./~/sugar-date/common/internal/iterateOverSparseArray.js","webpack:///./~/sugar-date/common/internal/getSparseArrayIndexes.js","webpack:///./~/sugar-date/common/internal/isArrayIndex.js","webpack:///./~/sugar-date/common/internal/isDefined.js","webpack:///./~/sugar-date/common/internal/commaSplit.js","webpack:///./~/sugar-date/common/var/CommonChars.js","webpack:///./~/sugar-date/common/var/classChecks.js","webpack:///./~/sugar-date/common/var/NATIVE_TYPES.js","webpack:///./~/sugar-date/common/internal/isClass.js","webpack:///./~/sugar-date/common/internal/spaceSplit.js","webpack:///./~/sugar-date/common/internal/isPlainObject.js","webpack:///./~/sugar-date/common/internal/isObjectType.js","webpack:///./~/sugar-date/common/internal/hasOwnEnumeratedProperties.js","webpack:///./~/sugar-date/common/internal/hasValidPlainObjectPrototype.js","webpack:///./~/sugar-date/common/internal/isUndefined.js","webpack:///./~/sugar-date/common/var/mathAliases.js","webpack:///./~/sugar-date/common/internal/getOrdinalSuffix.js","webpack:///./~/sugar-date/date/internal/getRegNonCapturing.js","webpack:///./~/sugar-date/date/internal/getArrayWithOffset.js","webpack:///./~/sugar-date/date/internal/iterateOverDateUnits.js","webpack:///./~/sugar-date/date/var/DateUnits.js","webpack:///./~/sugar-date/date/internal/getDaysInMonth.js","webpack:///./~/sugar-date/date/internal/getYear.js","webpack:///./~/sugar-date/common/internal/callDateGet.js","webpack:///./~/sugar-date/common/var/_utc.js","webpack:///./~/sugar-date/common/internal/privatePropertyAccessor.js","webpack:///./~/sugar-date/common/var/PRIVATE_PROP_PREFIX.js","webpack:///./~/sugar-date/date/internal/getMonth.js","webpack:///./~/sugar-date/date/var/DateUnitIndexes.js","webpack:///./~/sugar-date/date/internal/arrayToRegAlternates.js","webpack:///./~/sugar-date/common/internal/escapeRegExp.js","webpack:///./~/sugar-date/common/var/fullwidthNumberHelpers.js","webpack:///./~/sugar-date/common/var/chr.js","webpack:///./~/sugar-date/common/internal/allCharsReg.js","webpack:///./~/sugar-date/date/internal/getAdjustedUnitForNumber.js","webpack:///./~/sugar-date/common/var/trunc.js","webpack:///./~/sugar-date/common/internal/withPrecision.js","webpack:///./~/sugar-date/date/internal/getAdjustedUnit.js","webpack:///./~/sugar-date/date/internal/getParsingTokenWithSuffix.js","webpack:///./~/sugar-date/date/create.js","webpack:///./~/sugar-date/date/internal/createDate.js","webpack:///./~/sugar-date/date/internal/getExtendedDate.js","webpack:///./~/sugar-date/date/var/MINUTES.js","webpack:///./~/sugar-date/date/internal/tzOffset.js","webpack:///./~/sugar-date/date/internal/resetTime.js","webpack:///./~/sugar-date/date/internal/setUnitAndLowerToEdge.js","webpack:///./~/sugar-date/common/internal/callDateSet.js","webpack:///./~/sugar-date/date/internal/walkUnitDown.js","webpack:///./~/sugar-date/date/internal/getLowerUnitIndex.js","webpack:///./~/sugar-date/date/internal/setWeekday.js","webpack:///./~/sugar-date/date/internal/setDate.js","webpack:///./~/sugar-date/date/internal/getDate.js","webpack:///./~/sugar-date/date/internal/getWeekday.js","webpack:///./~/sugar-date/date/internal/updateDate.js","webpack:///./~/sugar-date/date/internal/getNewDate.js","webpack:///./~/sugar-date/date/var/_dateOptions.js","webpack:///./~/sugar-date/date/var/DATE_OPTIONS.js","webpack:///./~/sugar-date/date/internal/defaultNewDate.js","webpack:///./~/sugar-date/common/var/namespaceAliases.js","webpack:///./~/sugar-date/common/internal/defineOptionsAccessor.js","webpack:///./~/sugar-date/common/internal/defineAccessor.js","webpack:///./~/sugar-date/date/internal/resetLowerUnits.js","webpack:///./~/sugar-date/date/internal/getHigherUnitIndex.js","webpack:///./~/sugar-date/date/internal/callDateSetWithWeek.js","webpack:///./~/sugar-date/date/internal/setISOWeekNumber.js","webpack:///./~/sugar-date/date/internal/setYear.js","webpack:///./~/sugar-date/date/internal/setMonth.js","webpack:///./~/sugar-date/date/internal/cloneDate.js","webpack:///./~/sugar-date/date/internal/moveToFirstDayOfWeekYear.js","webpack:///./~/sugar-date/date/internal/moveToBeginningOfWeek.js","webpack:///./~/sugar-date/date/internal/iterateOverDateParams.js","webpack:///./~/sugar-date/date/internal/getDateParam.js","webpack:///./~/sugar-date/date/internal/getDateParamKey.js","webpack:///./~/sugar-date/common/internal/getOwnKey.js","webpack:///./~/sugar-date/date/internal/advanceDate.js","webpack:///./~/sugar-date/date/internal/moveToEndOfUnit.js","webpack:///./~/sugar-date/date/internal/moveToEndOfWeek.js","webpack:///./~/sugar-date/date/internal/deleteDateParam.js","webpack:///./~/sugar-date/date/internal/getParsingTokenValue.js","webpack:///./~/sugar-date/date/internal/moveToBeginningOfUnit.js","webpack:///./~/sugar-date/date/internal/getYearFromAbbreviation.js","webpack:///./~/sugar-date/date/internal/iterateOverHigherDateParams.js","webpack:///./~/sugar-date/date/build/setDateChainableConstructorCall.js","webpack:///./~/sugar-date/date/internal/setDateChainableConstructor.js","webpack:///./~/sugar-date/common/internal/setChainableConstructor.js","webpack:///./~/sugar-date/date/getAllLocaleCodes.js","webpack:///./~/sugar-date/common/internal/getKeys.js","webpack:///./~/sugar-date/date/getAllLocales.js","webpack:///./~/sugar-date/date/getLocale.js","webpack:///./~/sugar-date/date/removeLocale.js","webpack:///./~/sugar-date/date/setLocale.js","webpack:///./~/sugar-date/number/day.js","webpack:///./~/sugar-date/date/build/buildNumberUnitMethodsCall.js","webpack:///./~/sugar-date/date/internal/buildNumberUnitMethods.js","webpack:///./~/sugar-date/common/internal/defineInstanceSimilar.js","webpack:///./~/sugar-date/common/var/methodDefineAliases.js","webpack:///./~/sugar-date/common/internal/wrapNamespace.js","webpack:///./~/sugar-date/common/internal/collectSimilarMethods.js","webpack:///./~/sugar-date/number/dayAfter.js","webpack:///./~/sugar-date/number/dayAgo.js","webpack:///./~/sugar-date/number/dayBefore.js","webpack:///./~/sugar-date/number/dayFromNow.js","webpack:///./~/sugar-date/number/days.js","webpack:///./~/sugar-date/number/daysAfter.js","webpack:///./~/sugar-date/number/daysAgo.js","webpack:///./~/sugar-date/number/daysBefore.js","webpack:///./~/sugar-date/number/daysFromNow.js","webpack:///./~/sugar-date/number/duration.js","webpack:///./~/sugar-date/number/hour.js","webpack:///./~/sugar-date/number/hourAfter.js","webpack:///./~/sugar-date/number/hourAgo.js","webpack:///./~/sugar-date/number/hourBefore.js","webpack:///./~/sugar-date/number/hourFromNow.js","webpack:///./~/sugar-date/number/hours.js","webpack:///./~/sugar-date/number/hoursAfter.js","webpack:///./~/sugar-date/number/hoursAgo.js","webpack:///./~/sugar-date/number/hoursBefore.js","webpack:///./~/sugar-date/number/hoursFromNow.js","webpack:///./~/sugar-date/number/millisecond.js","webpack:///./~/sugar-date/number/millisecondAfter.js","webpack:///./~/sugar-date/number/millisecondAgo.js","webpack:///./~/sugar-date/number/millisecondBefore.js","webpack:///./~/sugar-date/number/millisecondFromNow.js","webpack:///./~/sugar-date/number/milliseconds.js","webpack:///./~/sugar-date/number/millisecondsAfter.js","webpack:///./~/sugar-date/number/millisecondsAgo.js","webpack:///./~/sugar-date/number/millisecondsBefore.js","webpack:///./~/sugar-date/number/millisecondsFromNow.js","webpack:///./~/sugar-date/number/minute.js","webpack:///./~/sugar-date/number/minuteAfter.js","webpack:///./~/sugar-date/number/minuteAgo.js","webpack:///./~/sugar-date/number/minuteBefore.js","webpack:///./~/sugar-date/number/minuteFromNow.js","webpack:///./~/sugar-date/number/minutes.js","webpack:///./~/sugar-date/number/minutesAfter.js","webpack:///./~/sugar-date/number/minutesAgo.js","webpack:///./~/sugar-date/number/minutesBefore.js","webpack:///./~/sugar-date/number/minutesFromNow.js","webpack:///./~/sugar-date/number/month.js","webpack:///./~/sugar-date/number/monthAfter.js","webpack:///./~/sugar-date/number/monthAgo.js","webpack:///./~/sugar-date/number/monthBefore.js","webpack:///./~/sugar-date/number/monthFromNow.js","webpack:///./~/sugar-date/number/months.js","webpack:///./~/sugar-date/number/monthsAfter.js","webpack:///./~/sugar-date/number/monthsAgo.js","webpack:///./~/sugar-date/number/monthsBefore.js","webpack:///./~/sugar-date/number/monthsFromNow.js","webpack:///./~/sugar-date/number/second.js","webpack:///./~/sugar-date/number/secondAfter.js","webpack:///./~/sugar-date/number/secondAgo.js","webpack:///./~/sugar-date/number/secondBefore.js","webpack:///./~/sugar-date/number/secondFromNow.js","webpack:///./~/sugar-date/number/seconds.js","webpack:///./~/sugar-date/number/secondsAfter.js","webpack:///./~/sugar-date/number/secondsAgo.js","webpack:///./~/sugar-date/number/secondsBefore.js","webpack:///./~/sugar-date/number/secondsFromNow.js","webpack:///./~/sugar-date/number/week.js","webpack:///./~/sugar-date/number/weekAfter.js","webpack:///./~/sugar-date/number/weekAgo.js","webpack:///./~/sugar-date/number/weekBefore.js","webpack:///./~/sugar-date/number/weekFromNow.js","webpack:///./~/sugar-date/number/weeks.js","webpack:///./~/sugar-date/number/weeksAfter.js","webpack:///./~/sugar-date/number/weeksAgo.js","webpack:///./~/sugar-date/number/weeksBefore.js","webpack:///./~/sugar-date/number/weeksFromNow.js","webpack:///./~/sugar-date/number/year.js","webpack:///./~/sugar-date/number/yearAfter.js","webpack:///./~/sugar-date/number/yearAgo.js","webpack:///./~/sugar-date/number/yearBefore.js","webpack:///./~/sugar-date/number/yearFromNow.js","webpack:///./~/sugar-date/number/years.js","webpack:///./~/sugar-date/number/yearsAfter.js","webpack:///./~/sugar-date/number/yearsAgo.js","webpack:///./~/sugar-date/number/yearsBefore.js","webpack:///./~/sugar-date/number/yearsFromNow.js","webpack:///./~/sugar-date/date/addDays.js","webpack:///./~/sugar-date/date/build/buildDateUnitMethodsCall.js","webpack:///./~/sugar-date/date/internal/buildDateUnitMethods.js","webpack:///./~/sugar-date/date/internal/compareDate.js","webpack:///./~/sugar-date/date/internal/dateIsValid.js","webpack:///./~/sugar-date/common/internal/simpleCapitalize.js","webpack:///./~/sugar-date/date/internal/createDateWithContext.js","webpack:///./~/sugar-date/date/internal/getTimeDistanceForUnit.js","webpack:///./~/sugar-date/date/addHours.js","webpack:///./~/sugar-date/date/addMilliseconds.js","webpack:///./~/sugar-date/date/addMinutes.js","webpack:///./~/sugar-date/date/addMonths.js","webpack:///./~/sugar-date/date/addSeconds.js","webpack:///./~/sugar-date/date/addWeeks.js","webpack:///./~/sugar-date/date/addYears.js","webpack:///./~/sugar-date/date/advance.js","webpack:///./~/sugar-date/date/internal/advanceDateWithArgs.js","webpack:///./~/sugar-date/date/internal/collectDateArguments.js","webpack:///./~/sugar-date/date/internal/getDateParamsFromString.js","webpack:///./~/sugar-date/date/internal/collectDateParamsFromArguments.js","webpack:///./~/sugar-date/date/beginningOfDay.js","webpack:///./~/sugar-date/date/beginningOfISOWeek.js","webpack:///./~/sugar-date/date/beginningOfMonth.js","webpack:///./~/sugar-date/date/beginningOfWeek.js","webpack:///./~/sugar-date/date/beginningOfYear.js","webpack:///./~/sugar-date/date/clone.js","webpack:///./~/sugar-date/date/daysAgo.js","webpack:///./~/sugar-date/date/daysFromNow.js","webpack:///./~/sugar-date/date/daysInMonth.js","webpack:///./~/sugar-date/date/daysSince.js","webpack:///./~/sugar-date/date/daysUntil.js","webpack:///./~/sugar-date/date/endOfDay.js","webpack:///./~/sugar-date/date/endOfISOWeek.js","webpack:///./~/sugar-date/date/endOfMonth.js","webpack:///./~/sugar-date/date/endOfWeek.js","webpack:///./~/sugar-date/date/endOfYear.js","webpack:///./~/sugar-date/date/format.js","webpack:///./~/sugar-date/date/internal/dateFormat.js","webpack:///./~/sugar-date/date/var/CoreOutputFormats.js","webpack:///./~/sugar-date/date/var/formattingTokens.js","webpack:///./~/sugar-date/date/var/FormatTokensBase.js","webpack:///./~/sugar-date/date/var/TIMEZONE_ABBREVIATION_REG.js","webpack:///./~/sugar-date/date/internal/getHours.js","webpack:///./~/sugar-date/common/internal/padNumber.js","webpack:///./~/sugar-date/common/internal/repeatString.js","webpack:///./~/sugar-date/date/internal/getWeekYear.js","webpack:///./~/sugar-date/date/internal/getWeekNumber.js","webpack:///./~/sugar-date/date/internal/getUTCOffset.js","webpack:///./~/sugar-date/date/internal/getDaysSince.js","webpack:///./~/sugar-date/date/internal/getMeridiemToken.js","webpack:///./~/sugar-date/common/internal/createFormatMatcher.js","webpack:///./~/sugar-date/common/var/STRING_FORMAT_REG.js","webpack:///./~/sugar-date/common/internal/memoizeFunction.js","webpack:///./~/sugar-date/common/var/INTERNAL_MEMOIZE_LIMIT.js","webpack:///./~/sugar-date/date/internal/assertDateIsValid.js","webpack:///./~/sugar-date/date/get.js","webpack:///./~/sugar-date/date/getISOWeek.js","webpack:///./~/sugar-date/date/getUTCOffset.js","webpack:///./~/sugar-date/date/getUTCWeekday.js","webpack:///./~/sugar-date/date/getWeekday.js","webpack:///./~/sugar-date/date/hoursAgo.js","webpack:///./~/sugar-date/date/hoursFromNow.js","webpack:///./~/sugar-date/date/hoursSince.js","webpack:///./~/sugar-date/date/hoursUntil.js","webpack:///./~/sugar-date/date/is.js","webpack:///./~/sugar-date/date/internal/fullCompareDate.js","webpack:///./~/sugar-date/common/internal/trim.js","webpack:///./~/sugar-date/date/internal/compareDay.js","webpack:///./~/sugar-date/date/isAfter.js","webpack:///./~/sugar-date/date/isBefore.js","webpack:///./~/sugar-date/date/isBetween.js","webpack:///./~/sugar-date/date/isFriday.js","webpack:///./~/sugar-date/date/build/buildRelativeAliasesCall.js","webpack:///./~/sugar-date/date/internal/buildRelativeAliases.js","webpack:///./~/sugar-date/date/isFuture.js","webpack:///./~/sugar-date/date/isLastMonth.js","webpack:///./~/sugar-date/date/isLastWeek.js","webpack:///./~/sugar-date/date/isLastYear.js","webpack:///./~/sugar-date/date/isLeapYear.js","webpack:///./~/sugar-date/date/isMonday.js","webpack:///./~/sugar-date/date/isNextMonth.js","webpack:///./~/sugar-date/date/isNextWeek.js","webpack:///./~/sugar-date/date/isNextYear.js","webpack:///./~/sugar-date/date/isPast.js","webpack:///./~/sugar-date/date/isSaturday.js","webpack:///./~/sugar-date/date/isSunday.js","webpack:///./~/sugar-date/date/isThisMonth.js","webpack:///./~/sugar-date/date/isThisWeek.js","webpack:///./~/sugar-date/date/isThisYear.js","webpack:///./~/sugar-date/date/isThursday.js","webpack:///./~/sugar-date/date/isToday.js","webpack:///./~/sugar-date/date/isTomorrow.js","webpack:///./~/sugar-date/date/isTuesday.js","webpack:///./~/sugar-date/date/isUTC.js","webpack:///./~/sugar-date/date/internal/isUTC.js","webpack:///./~/sugar-date/date/isValid.js","webpack:///./~/sugar-date/date/isWednesday.js","webpack:///./~/sugar-date/date/isWeekday.js","webpack:///./~/sugar-date/date/isWeekend.js","webpack:///./~/sugar-date/date/isYesterday.js","webpack:///./~/sugar-date/date/iso.js","webpack:///./~/sugar-date/date/millisecondsAgo.js","webpack:///./~/sugar-date/date/millisecondsFromNow.js","webpack:///./~/sugar-date/date/millisecondsSince.js","webpack:///./~/sugar-date/date/millisecondsUntil.js","webpack:///./~/sugar-date/date/minutesAgo.js","webpack:///./~/sugar-date/date/minutesFromNow.js","webpack:///./~/sugar-date/date/minutesSince.js","webpack:///./~/sugar-date/date/minutesUntil.js","webpack:///./~/sugar-date/date/monthsAgo.js","webpack:///./~/sugar-date/date/monthsFromNow.js","webpack:///./~/sugar-date/date/monthsSince.js","webpack:///./~/sugar-date/date/monthsUntil.js","webpack:///./~/sugar-date/date/relative.js","webpack:///./~/sugar-date/date/internal/dateRelative.js","webpack:///./~/sugar-date/date/internal/getAdjustedUnitForDate.js","webpack:///./~/sugar-date/date/relativeTo.js","webpack:///./~/sugar-date/date/reset.js","webpack:///./~/sugar-date/date/internal/getUnitIndexForParamName.js","webpack:///./~/sugar-date/date/rewind.js","webpack:///./~/sugar-date/date/secondsAgo.js","webpack:///./~/sugar-date/date/secondsFromNow.js","webpack:///./~/sugar-date/date/secondsSince.js","webpack:///./~/sugar-date/date/secondsUntil.js","webpack:///./~/sugar-date/date/set.js","webpack:///./~/sugar-date/date/setISOWeek.js","webpack:///./~/sugar-date/date/setUTC.js","webpack:///./~/sugar-date/date/setWeekday.js","webpack:///./~/sugar-date/date/weeksAgo.js","webpack:///./~/sugar-date/date/weeksFromNow.js","webpack:///./~/sugar-date/date/weeksSince.js","webpack:///./~/sugar-date/date/weeksUntil.js","webpack:///./~/sugar-date/date/yearsAgo.js","webpack:///./~/sugar-date/date/yearsFromNow.js","webpack:///./~/sugar-date/date/yearsSince.js","webpack:///./~/sugar-date/date/yearsUntil.js","webpack:///./~/sugar-date/date/getOption.js","webpack:///./~/sugar-date/date/setOption.js","webpack:///./~/sugar-date/range/index.js","webpack:///./~/sugar-date/date/range.js","webpack:///./~/sugar-date/range/var/DateRangeConstructor.js","webpack:///./~/sugar-date/range/internal/Range.js","webpack:///./~/sugar-date/range/internal/cloneRangeMember.js","webpack:///./~/sugar-date/range/internal/getRangeMemberPrimitiveValue.js","webpack:///./~/sugar-date/range/internal/getDateForRange.js","webpack:///./~/sugar-date/range/internal/createDateRangeFromString.js","webpack:///./~/sugar-date/range/var/DurationTextFormats.js","webpack:///./~/sugar-date/range/var/FULL_CAPTURED_DURATION.js","webpack:///./~/sugar-date/range/var/DURATION_UNITS.js","webpack:///./~/sugar-date/range/internal/incrementDate.js","webpack:///./~/sugar-date/range/var/MULTIPLIERS.js","webpack:///./~/sugar-date/range/internal/getDateIncrementObject.js","webpack:///./~/sugar-date/range/var/DURATION_REG.js","webpack:///./~/sugar-date/range/clamp.js","webpack:///./~/sugar-date/range/internal/rangeClamp.js","webpack:///./~/sugar-date/common/internal/defineOnPrototype.js","webpack:///./~/sugar-date/range/clone.js","webpack:///./~/sugar-date/range/contains.js","webpack:///./~/sugar-date/range/days.js","webpack:///./~/sugar-date/range/build/buildDateRangeUnitsCall.js","webpack:///./~/sugar-date/range/internal/buildDateRangeUnits.js","webpack:///./~/sugar-date/range/internal/rangeEvery.js","webpack:///./~/sugar-date/range/internal/rangeIsValid.js","webpack:///./~/sugar-date/range/internal/isValidRangeMember.js","webpack:///./~/sugar-date/range/internal/valueIsNotInfinite.js","webpack:///./~/sugar-date/range/internal/incrementNumber.js","webpack:///./~/sugar-date/range/internal/incrementString.js","webpack:///./~/sugar-date/range/internal/getGreaterPrecision.js","webpack:///./~/sugar-date/range/internal/getPrecision.js","webpack:///./~/sugar-date/common/internal/periodSplit.js","webpack:///./~/sugar-date/range/every.js","webpack:///./~/sugar-date/range/hours.js","webpack:///./~/sugar-date/range/intersect.js","webpack:///./~/sugar-date/range/isValid.js","webpack:///./~/sugar-date/range/milliseconds.js","webpack:///./~/sugar-date/range/minutes.js","webpack:///./~/sugar-date/range/months.js","webpack:///./~/sugar-date/range/seconds.js","webpack:///./~/sugar-date/range/span.js","webpack:///./~/sugar-date/range/internal/getRangeMemberNumericValue.js","webpack:///./~/sugar-date/range/toArray.js","webpack:///./~/sugar-date/range/toString.js","webpack:///./~/sugar-date/range/union.js","webpack:///./~/sugar-date/range/weeks.js","webpack:///./~/sugar-date/range/years.js","webpack:///./~/sugar-date/locales/index.js","webpack:///./~/sugar-date/locales/ca.js","webpack:///./~/sugar-date/locales/da.js","webpack:///./~/sugar-date/locales/de.js","webpack:///./~/sugar-date/locales/es.js","webpack:///./~/sugar-date/locales/fi.js","webpack:///./~/sugar-date/locales/fr.js","webpack:///./~/sugar-date/locales/it.js","webpack:///./~/sugar-date/locales/ja.js","webpack:///./~/sugar-date/locales/ko.js","webpack:///./~/sugar-date/locales/nl.js","webpack:///./~/sugar-date/locales/no.js","webpack:///./~/sugar-date/locales/pl.js","webpack:///./~/sugar-date/locales/pt.js","webpack:///./~/sugar-date/locales/ru.js","webpack:///./~/sugar-date/locales/sv.js","webpack:///./~/sugar-date/locales/zh-CN.js","webpack:///./~/sugar-date/locales/zh-TW.js"],"names":["root","factory","exports","module","define","amd","a","i","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","parentJsonpFunction","window","chunkIds","moreModules","chunkId","callbacks","length","installedChunks","push","apply","shift","0","e","callback","undefined","head","document","getElementsByTagName","script","createElement","type","charset","async","src","p","1","appendChild","m","c","_classCallCheck","instance","Constructor","TypeError","Object","defineProperty","value","TableFilter","_typeof","Symbol","iterator","obj","constructor","prototype","_event","_dom","_string","_types","_number","_root","_emitter","_gridLayout","_loader","_highlightKeywords","_popupFilter","_dropdown","_checkList","_rowsCounter","_statusBar","_paging","_clearButton","_help","_alternateRows","_noResults","_state","_dateType","_const","doc","_this","version","year","Date","getFullYear","tbl","refRow","headersRow","cfg","nbFilterableRows","nbCells","startRow","_len","arguments","args","Array","_key","forEach","arg","nodeName","getTime","isString","elm","isNumber","isObj","Error","getRowsNb","f","emitter","Emitter","isUndef","basePath","base_path","fltGrid","grid","gridLayout","Boolean","grid_layout","filtersRowIndex","isNaN","filters_row_index","headers_row_index","fltCellTag","filters_cell_tag","CELL_TAG","fltIds","validRowsIndex","infDiv","lDiv","rDiv","mDiv","infDivCssClass","inf_div_css_class","lDivCssClass","left_div_css_class","rDivCssClass","right_div_css_class","mDivCssClass","middle_div_css_class","stylePath","style_path","stylesheet","stylesheetId","fltsRowCssClass","flts_row_css_class","enableIcons","enable_icons","alternateRows","alternate_rows","hasColWidths","isArray","col_widths","colWidths","fltCssClass","flt_css_class","fltMultiCssClass","flt_multi_css_class","fltSmallCssClass","flt_small_css_class","singleFltCssClass","single_flt_css_class","enterKey","enter_key","onBeforeFilter","isFn","on_before_filter","EMPTY_FN","onAfterFilter","on_after_filter","caseSensitive","case_sensitive","hasExactMatchByCol","columns_exact_match","exactMatchByCol","exactMatch","exact_match","ignoreDiacritics","ignore_diacritics","linkedFilters","linked_filters","disableExcludedOptions","disable_excluded_options","activeFilterId","hasVisibleRows","rows_always_visible","visibleRows","isExternalFlt","external_flt_grid","externalFltTgtIds","external_flt_grid_ids","onFiltersLoaded","on_filters_loaded","singleSearchFlt","single_filter","onRowValidated","on_row_validated","customCellDataCols","custom_cell_data_cols","customCellData","custom_cell_data","watermark","isWatermarkArray","toolBarTgtId","toolbar_target_id","help","help_instructions","popupFilters","popup_filters","markActiveColumns","mark_active_columns","activeColumnsCssClass","active_columns_css_class","onBeforeActiveColumn","on_before_active_column","onAfterActiveColumn","on_after_active_column","clearFilterText","clear_filter_text","enableEmptyOption","enable_empty_option","emptyText","empty_text","enableNonEmptyOption","enable_non_empty_option","nonEmptyText","non_empty_text","onSlcChange","on_change","sortSlc","sort_select","isSortNumAsc","sort_num_asc","sortNumAsc","isSortNumDesc","sort_num_desc","sortNumDesc","loadFltOnDemand","load_filters_on_demand","hasCustomOptions","custom_options","customOptions","rgxOperator","regexp_operator","emOperator","empty_operator","nmOperator","nonempty_operator","orOperator","or_operator","anOperator","and_operator","grOperator","greater_operator","lwOperator","lower_operator","leOperator","lower_equal_operator","geOperator","greater_equal_operator","dfOperator","different_operator","lkOperator","like_operator","eqOperator","equal_operator","stOperator","start_with_operator","enOperator","end_with_operator","separator","rowsCounter","rows_counter","statusBar","status_bar","loader","displayBtn","btn","btnText","btn_text","btnCssClass","btn_css_class","btnReset","btn_reset","onBeforeReset","on_before_reset","onAfterReset","on_after_reset","paging","nbHiddenRows","autoFilter","auto_filter","autoFilterDelay","auto_filter_delay","AUTO_FILTER_DELAY","isUserTyping","autoFilterTimer","highlightKeywords","highlight_keywords","noResults","no_results_message","state","locale","thousandsSeparator","thousands_separator","decimalSeparator","decimal_separator","hasColTypes","col_types","colTypes","prfxTf","prfxFlt","prfxValButton","prfxInfDiv","prfxLDiv","prfxRDiv","prfxMDiv","prfxResponsive","extensions","hasExtensions","enableDefaultTheme","enable_default_theme","hasThemes","themes","themesPath","themes_path","responsive","Mod","ExtRegistry","init","_this2","initialized","getCellsNb","n","inpclass","import","loadThemes","dateType","DateType","Help","State","GridLayout","Loader","highlightKeyword","HighlightKeyword","popupFilter","PopupFilter","fltrow","_insertFiltersRow","emit","fltcell","createElm","col","getFilterType","colSpan","dropdown","Dropdown","checkList","CheckList","_buildInputFilter","_buildSubmitButton","on","tf","filter","setActiveFilterId","_initNoFilters","enforceVisibility","RowsCounter","StatusBar","reset","Paging","clearButton","ClearButton","setColWidths","AlternateRows","NoResults","addClass","initExtensions","clearActiveColumns","colIndex","markActiveColumn","linkFilters","detectKey","evt","key","keyCode","cancelEvt","stopEvt","clearInterval","onKeyUp","setInterval","bind","onKeyDown","onInpFocus","targetEvt","onInpBlur","thead","tag","insertRow","className","style","display","NONE","cssClass","container","_this3","externalFltTgtId","inpType","inp","INPUT","buildFilterId","setAttribute","addEvt","_this4","feature","name","exts","len","ext","loadExtension","_this5","path","modulePath","replace","__WEBPACK_AMD_REQUIRE_ARRAY__","mod","inst","default","extension","hasExtension","isEmpty","destroyExtensions","extInstance","destroy","defaultTheme","theme","styleId","isImported","getStylesheet","_this6","removeExternalFlts","removeToolbar","off","validateAllRows","deleteRow","removeClass","setToolbar","tblMainCont","cont","insertBefore","firstChild","enabled","removeElm","captions","removeChild","ids","ct","externalFlt","innerHTML","isCustomOptions","cols","indexOf","getCustomOptions","optTxt","optArray","index","slcValues","values","slcTexts","texts","slcSort","sorts","r","sort","row","rows","nbRows","hiddenRows","searchArgs","getFiltersValue","k","cells","nchilds","occurence","isRowValid","singleFltRowValid","j","sA","cellValue","matchCase","getCellValue","sAOrSplit","toString","split","hasMultiOrSA","sAAndSplit","hasMultiAndSA","cS","s","occur","w","trim","_testTerm","validateRow","term","colIdx","numData","decimal","reLe","RegExp","reGe","reL","reG","reD","reLk","rgxEsc","reEq","reSt","reEn","reEm","reNm","reRe","hasLO","test","hasLE","hasGR","hasGE","hasDF","hasEQ","hasLK","hasST","hasEN","hasEM","hasNM","hasRE","hasType","DATE","dte1","dte2","isValidDate","isValid","parseDate","parse","getOptions","isLDate","isLEDate","isGDate","isGEDate","isDFDate","isEQDate","contains","isExactMatch","FORMATTED_NUMBER","colType","hasOwnProperty","Number","searchArg","lastIndexOf","srchArg","rgx","ex","NUMBER","ignoresDiacritics","getColValues","includeHeaders","typed","exclude","colValues","getContent","getCellData","getHeadersText","isExludedRow","cell","data","getFilterValue","fltValue","flt","getFilterElement","fltColType","getValues","getFilterId","getFiltersByType","bool","arr","fltType","toLowerCase","fltId","rowIndex","tr","ntrs","parseInt","idx","cellIndex","getText","getTableData","excludeHiddenCols","tblData","headers","getHeadersRowIndex","rowData","isColHidden","getFilteredData","filteredData","validRows","getValidRows","rData","getFilteredDataCol","_this7","visible","rowIdx","getRowDisplay","validColValues","map","unshift","displayFlag","validFlag","setFilterValue","query","slc","nbCols","colTags","tblHasColTag","frag","createDocumentFragment","width","clearFilters","getHeaderElement","header","hasClass","getActiveFilterId","filterId","getColumnIndexFromFilterId","activateFilter","slcA1","SELECT","slcA2","MULTIPLE","slcA3","CHECKLIST","slcIndex","concat","activeIdx","curSlc","slcSelectedValue","getClearFilterText","opt0","createOpt","isRowDisplayed","ignoreDiac","clearText","filePath","imported","attr","files","match","fileId","_this8","o","isLoaded","file","onload","onreadystatechange","readyState","onerror","isInitialized","getFiltersId","reCalc","getAttribute","getFiltersRowIndex","getStartRowIndex","getLastRowIndex","types","table","headTbl","tHead","headerText","getFirstTextNode","getFilterableRowsNb","getValidRowsNb","config","removeEvt","func","capture","addEventListener","attachEvent","removeEventListener","detachEvent","event","stopPropagation","cancelBubble","preventDefault","returnValue","target","srcElement","charCode","which","global","self","supportsClassList","documentElement","classList","createCheckItem","createText","node","textContent","innerText","childNodes","nodeType","el","parentNode","txt","createTextNode","ele","cls","add","remove","reg","text","isSel","isSelected","opt","chkValue","labelText","li","label","check","getElementById","tagname","UNDEFINED","isNull","_diacritics","chars","escMatch","String","regexp","modifier","removeDiacritics","str","diacriticsMap","replacementList","base","regex","unformatted","parseFloat","events","evts","fn","splice","slice","_possibleConstructorReturn","ReferenceError","_inherits","subClass","superClass","create","enumerable","writable","configurable","setPrototypeOf","__proto__","_feature","_Feature","grid_width","height","grid_height","mainContCssClass","grid_cont_css_class","contCssClass","grid_tbl_cont_css_class","headContCssClass","grid_tblHead_cont_css_class","grid_inf_grid_css_class","headRowIndex","grid_headers_row_index","headRows","grid_headers_rows","enableFilters","grid_enable_default_filters","noHeaders","grid_no_headers","defaultColWidth","grid_default_col_width","colElms","prfxGridFltTd","prfxGridTh","sourceTblHtml","outerHTML","tblCont","headTblCont","setOverrides","setDefaultColWidths","tblW","initialTableWidth","createContainer","setConfigWidth","t","clientWidth","d","tH","hRow","sortTriggers","getSortTriggerIds","filtersRow","createFiltersRow","setHeadersRow","tableLayout","cellPadding","cellSpacing","scrollLeft","asyncSort","triggerIds","setColumnElements","colW","element","fltTdId","cl","tableHead","thId","Feature","NOTIMPLEMENTED","enable","disable","isEnabled","ENTER_KEY","TAB_KEY","ESC_KEY","UP_ARROW_KEY","DOWN_ARROW_KEY","HEADER_TAG","STRING","IP_ADDRESS","EVENTS","targetId","loader_target_id","loader_text","html","loader_html","loader_css_class","closeDelay","onShow","on_show_loader","onHide","on_hide_loader","containerDiv","targetEl","show","displayLoader","setTimeout","highlightCssClass","highlight_css_class","unhighlightAll","_processTerm","highlight","hasChildNodes","children","nodeVal","nodeValue","termIdx","pn","nv","before","substr","after","unhighlight","highlightedNodes","querySelectorAll","replaceChild","normalize","val","item","closeOnFiltering","popup_filters_close_on_filtering","iconPath","popup_filters_image","activeIconPath","popup_filters_image_active","iconHtml","popup_filters_image_html","containerCssClass","popup_div_css_class","adjustToContainer","popup_filters_adjust_to_container","onBeforeOpen","on_before_popup_filter_open","onAfterOpen","on_after_popup_filter_open","onBeforeClose","on_before_popup_filter_close","onAfterClose","on_after_popup_filter_close","fltSpans","fltIcons","filtersCache","fltElms","prfxDiv","activeFilterIdx","onClick","closeAll","toggle","headerWidth","onMouseup","targetElm","activeFlt","icon","close","buildIcons","setIconsState","changeState","build","buildAll","div","contId","isOpen","open","focus","exceptIdx","isMultipleFilter","active","iconImg","_array","_sort","SORT_ERROR","enableSlcResetFilter","enable_slc_reset_filter","multipleSlcTooltip","multiple_slc_tooltip","isCustom","opts","optsTxt","onSlcFocus","refreshAll","selectFlts","multipleFlts","flts","selectOptions","isExternal","multiple","title","isLinked","slcId","excludedOpts","filteredDataCol","cellString","has","filteredCol","customValues","ignoreCase","numSortAsc","numSortDesc","addOptions","slcValue","addFirstOption","y","lbl","isDisabled","disabled","opt1","opt2","options","option","selected","selectedOptions","sCase","l","b","x","containers","div_checklist_css_class","filterCssClass","checklist_css_class","itemCssClass","checklist_item_css_class","selectedItemCssClass","checklist_selected_item_css_class","activateText","activate_checklist_text","disabledItemCssClass","checklist_item_disabled_css_class","enableResetOption","enable_checklist_reset_filter","prfx","optionClick","setCheckListValues","onCheckListClick","fltsIdxs","divCont","ul","ncells","addChecks","chkCt","addTChecks","li0","li1","li2","chkIndex","itemTag","fltIndexes","checked","indSplit","u","cChk","replaceValue","replaceIndex","lisNb","chk","lblTxt","fltAttr","rows_counter_target_id","rows_counter_text","fromToTextSeparator","from_to_text_separator","overText","over_text","tot_rows_css_class","onBeforeRefreshCounter","on_before_refresh_counter","onAfterRefreshCounter","on_after_refresh_counter","countDiv","countSpan","countText","refresh","totTxt","pagingStartRow","startPagingRow","pagingEndRow","pagingLength","status_bar_target_id","msgContainer","labelContainer","status_bar_text","status_bar_css_class","delay","onBeforeShowMsg","on_before_show_msg","onAfterShowMsg","on_after_show_msg","msgFilter","msg_filter","msgPopulate","msg_populate","msgPopulateCheckList","msg_populate_checklist","msgChangePage","msg_change_page","msgClear","msg_clear","msgChangeResults","msg_change_results","msgResetPage","msg_reset_page","msgResetPageLength","msg_reset_page_length","msgSort","msg_sort","msgLoadExtensions","msg_load_extensions","msgLoadThemes","msg_load_themes","statusDiv","statusSpan","statusSpanText","message","btnPageCssClass","paging_btn_css_class","pagingSlc","resultsPerPageSlc","pagingTgtId","paging_target_id","paging_length","resultsPerPageTgtId","results_per_page_target_id","pgSlcCssClass","paging_slc_css_class","pgInpCssClass","paging_inp_css_class","resultsPerPage","results_per_page","hasResultsPerPage","resultsSlcCssClass","results_slc_css_class","resultsSpanCssClass","results_span_css_class","nbPages","currentPageNb","btnNextPageText","btn_next_page_text","btnPrevPageText","btn_prev_page_text","btnLastPageText","btn_last_page_text","btnFirstPageText","btn_first_page_text","btnNextPageHtml","btn_next_page_html","btnPrevPageHtml","btn_prev_page_html","btnFirstPageHtml","btn_first_page_html","btnLastPageHtml","btn_last_page_html","pageText","page_text","ofText","of_text","nbPgSpanCssClass","nb_pages_css_class","hasPagingBtns","paging_btns","pageSelectorType","page_selector_type","onBeforeChangePage","on_before_change_page","onAfterChangePage","on_after_change_page","slcResultsTxt","btnNextCont","btnPrevCont","btnLastCont","btnFirstCont","pgCont","pgBefore","pgAfter","start_row","nrows","Math","ceil","selectedIndex","nbOpts","next","nextIndex","changePage","prev","prevIndex","last","first","_detectKey","sorted","blur","slcPagesChange","nextEvt","prevEvt","lastEvt","firstEvt","slcPages","setResultsPerPage","btnNextSpan","btnPrevSpan","btnLastSpan","btnFirstSpan","btnNext","btnPrev","btnLast","btnFirst","pgBeforeSpan","pgAfterSpan","pgSpan","setPagingInfo","resetPagingInfo","pageNumber","setPage","pageLength","changeResultsPerPage","filterTable","mdiv","visibility","z","groupByPage","endPagingRow","h","validRowIdx","rowDisplayed","getPage","cmd","btnEvt","cmdtype","slcResultsChange","ev","onChangeResultsPerPage","slcR","slcRText","slcROpts","slcRSpan","currOpt","Option","removeResultsPerPage","slcPagesSelIndex","slcIdx","resetPage","pgNb","getPageNb","resetPageLength","pglenIndex","getPageLength","btn_reset_target_id","btn_reset_text","btn_reset_css_class","tooltip","btn_reset_tooltip","btn_reset_html","resetEl","fltReset","WIKI_URL","WEBSITE_URL","tgtId","help_instructions_target_id","contTgtId","help_instructions_container_target_id","instrText","help_instructions_text","instrHtml","help_instructions_html","help_instructions_btn_text","btnHtml","help_instructions_btn_html","help_instructions_btn_css_class","help_instructions_container_css_class","boundMouseup","defaultHtml","divContainer","helpEl","helplink","divDisplay","evenCss","even_row_css_class","oddCss","odd_row_css_class","processAll","arrIndex","processRow","indexLen","setRowBg","arrIdx","removeRowBg","content","customContainer","custom_container","customContainerId","custom_container_id","css_class","onBeforeShow","onAfterShow","onBeforeHide","on_before_hide_msg","onAfterHide","on_after_hide_msg","nextSibling","hide","setWidth","tBodies","_hash","_storage","enableHash","enableLocalStorage","enableCookie","persistFilters","filters","persistPageNumber","page_number","persistPageLength","page_length","persistSort","persistColsVisibility","columns_visibility","persistFiltersVisibility","filters_visibility","cookieDuration","cookie_duration","enableStorage","storage","hash","pageNb","hiddenCols","filtersVisibility","prfxCol","pageNbKey","pageLengthKey","filtersVisKey","update","updatePage","updatePageLength","descending","updateSort","_syncSort","_syncColsVisibility","updateColsVisibility","_syncFiltersVisibility","updateFiltersVisibility","Hash","Storage","filterValues","keys","column","hidden","override","sync","_syncFilters","overrideAndSync","hasHashChange","JSON","location","decodeURIComponent","encodeURIComponent","docMode","documentMode","lastHash","boundSync","stringify","_interopRequireDefault","__esModule","hasStorage","_cookie","_cookie2","localStorage","duration","save","getKey","write","retrieve","read","removeItem","pathname","hours","expire","toGMTString","cookie","escape","cookieValue","search","offset","end","unescape","substring","_sugarDate","datetime","setLocale","addConfigFormats","dateStr","localeCode","getLocale","formats","format","addFormat","console","error","Sugar","LocaleHelpers","localeManager","defineStatic","addLocale","code","set","setupGlobal","globalContext","SUGAR_GLOBAL","forEachProperty","sugarNamespace","hasOwn","namespacesByName","extend","hasExports","NATIVE_NAMES","createNamespace","setGlobalProperties","defineWithOptionCollect","methodName","setProperty","arg1","arg2","arg3","collectDefineOptions","defineMethods","methods","isObject","getNewChainableClass","objectRestricted","nativeProto","allowObjectPrototype","arrayOptionExists","field","arrayOptionExcludes","disallowedByFlags","flags","namespaceIsExcepted","nativeClass","methodIsExcepted","canExtend","method","methodsByName","staticMethods","instanceMethods","objectPrototype","extendNative","STATIC","INSTANCE","defineChainableMethod","source","setMethod","namespacesByClassString","mapNativeToChainable","mapObjectChainablesToNamespace","getOwn","classToString","instanceMethod","staticMethod","wrapMethodWithArguments","wrapInstanceMethod","wrapInstanceMethodFixed","startCollect","collectedArgs","max","polyfill","raw","existing","collision","dcp","wrapped","wrapWithChainableResult","DefaultChainable","disambiguate","disambiguateMethod","mapObjectChainableToAllNamespaces","setObjectChainableOnNamespace","proto","methodNames","ownPropertyNames","nativeMethodProhibited","definePropertyShim","prop","descriptor","internalToString","internalHasOwnProperty","PROPERTY_DESCRIPTOR_SUPPORT","defineProperties","getOwnPropertyNames","buildLocales","LocaleManager","loc","locales","get","fallback","LazyLoadedLocales","current","getAll","def","compiledFormats","getNewLocale","English","AmericanEnglishDefinition","BritishEnglishDefinition","CanadianEnglishDefinition","en-US","en-GB","en-AU","en-CA","getEnglishVariant","short","medium","long","full","stamp","v","simpleMerge","simpleClone","EnglishLocaleBaseDefinition","plural","timeMarkers","ampm","units","months","weekdays","numerals","articles","tokens","time","past","future","modifiers","timeParse","timeFrontParse","coreUtilityAliases","util","mdy","firstDayOfWeek","firstDayOfWeekYear","Locale","getMonthName","alternate","monthSuffix","getArrayWithOffset","getWeekdayName","getTokenValue","isUndefined","getNumber","num","numeralMap","isDefined","getNumeralValue","lastWasPlace","isPlace","numeral","digit","place","fullWidthNumberMap","getOrdinal","suffix","ordinalSuffix","getOrdinalSuffix","getRelativeFormat","adu","convertAdjustedToFormat","getDuration","ms","getAdjustedUnitForNumber","getFirstDayOfWeek","ISO_FIRST_DAY_OF_WEEK","getFirstDayOfWeekYear","ISO_FIRST_DAY_OF_WEEK_YEAR","sign","unit","mult","relative","isFunction","cacheFormat","dif","to","getTokenSrc","nc","parsingAliases","replaceParsingTokens","getRegNonCapturing","ParsingTokens","parsingTokens","arrayToRegAlternates","getParsingTokenWithSuffix","token","join","addRawFormat","initFormats","initDefinition","initArrayFields","LOCALE_ARRAY_FIELDS","commaSplit","buildValueArray","setMap","all","forAllAlternates","alt","forEachAlternate","suffixes","buildNumerals","pow","buildTimeFormats","getTimeFormat","getTZOffsetFormat","ampmFront","buildParsingTokens","LocalizedParsingTokens","requiresNumerals","numeralUnits","getNumeralSrc","placeholders","allowsFullWidth","fullWidthNumbers","buildTimeSuffixes","iterateOverDateUnits","timeSuffixes","alias","buildModifiers","mapKey","addCoreFormats","CoreParsingFormats","df","getFormatWithTime","addLocaleFormats","addFormatSet","allowTime","timeFront","baseFormat","timeBefore","getTimeBefore","getTimeAfter","localized","markers","timeMarkerOptional","ISODefaults","classChecks","mathAliases","fullwidthNumberHelpers","yyyy","param","MM","dd","hh","mm","ss","yy","yearSign","tzHour","tzMinute","tzSign","ihh","imm","GMT","Z","timestamp","requiresSuffix","month","date","hour","requiresSuffixOr","minute","second","result","iterateOverSparseArray","fromIndex","loop","indexes","getSparseArrayIndexes","fromRight","isArrayIndex","aLoop","bLoop","HALF_WIDTH_COMMA","CommonChars","HALF_WIDTH_ZERO","FULL_WIDTH_ZERO","HALF_WIDTH_PERIOD","FULL_WIDTH_PERIOD","OPEN_BRACE","CLOSE_BRACE","buildClassChecks","addCoreTypes","names","spaceSplit","NATIVE_TYPES","isBoolean","buildPrimitiveClassCheck","isDate","buildClassCheck","isRegExp","isError","isSet","Set","isMap","Map","addKnownType","addArrayTypes","knownTypes","isKnownType","globalObject","isClass","getConstructorClassCheck","getToStringClassCheck","ctorStr","isSerializable","isPlainObject","isObjectType","hasValidPlainObjectPrototype","hasOwnEnumeratedProperties","objectProto","hasToString","hasConstructor","abs","min","floor","round","startIndex","endIndex","YEAR_INDEX","DateUnits","DateUnitIndexes","getDaysInMonth","multiplier","start","ambiguous","callDateGet","getYear","getMonth","_utc","privatePropertyAccessor","privateKey","PRIVATE_PROP_PREFIX","HOURS_INDEX","DAY_INDEX","WEEK_INDEX","MONTH_INDEX","joined","escapeRegExp","buildFullWidthNumber","fwp","hwp","hwc","fwn","chr","fullWidthNumberReg","allCharsReg","fromCharCode","getAdjustedUnit","trunc","withPrecision","isFinite","precision","unitIndex","createDate","forceClone","getExtendedDate","contextDate","getDateOptions","prefer","getFormatParams","getYearFromAbbreviation","getParsingTokenValue","cloneDateByFlag","clone","fromUTC","setUTC","afterDateSet","afterCallbacks","fireCallbacks","parseStringDate","handleAmpm","utc","handleTimezoneOffset","handleUnitlessShift","handleUnitlessNum","midday","handleMidday","day","handleRelativeDay","handleRelativeUnit","edge","handleEdge","updateDate","resetTime","weekdayDir","setTime","tzOffset","MINUTES","weekday","setOrdinalWeekday","advanceDate","half","separateAbsoluteUnits","params","weekdayOfMonth","edgeIndex","iterateOverHigherDateParams","unitName","stopIndex","moveToBeginningOfUnit","moveToEndOfUnit","setWeekday","specificity","iterateOverDateParams","NaN","deleteDateParam","getNewDate","getTimezoneOffset","setUnitAndLowerToEdge","walkUnitDown","callDateSet","safe","getLowerUnitIndex","dow","dir","currentWeekday","getWeekday","ndir","setDate","getDate","advance","setUpperUnit","upperUnitIndex","getHigherUnitIndex","setSpecificity","canDisambiguate","disambiguateHigherUnit","setUnit","handleFraction","fraction","lowerUnit","monthHasShifted","targetMonth","checkMonth","callDateSetWithWeek","millisecond","resetLowerUnits","_dateOptions","DATE_OPTIONS","namespaceAliases","defineOptionsAccessor","sugarDate","defaultNewDate","newDateInternal","sugarObject","sugarArray","sugarString","sugarNumber","sugarFunction","Function","sugarRegExp","namespace","defaults","getOption","setOption","defineAccessor","setISOWeekNumber","isoWeek","cloneDate","moveToFirstDayOfWeekYear","setYear","setMonth","moveToBeginningOfWeek","run","getDateParam","getDateParamKey","getOwnKey","moveToEndOfWeek","delta","setDateChainableConstructor","setChainableConstructor","createFn","getKeys","getAllLocaleCodes","getAllLocales","removeLocale","buildNumberUnitMethods","defineInstanceSimilar","defineInstance","collectSimilarMethods","methodDefineAliases","wrapNamespace","defineStaticPolyfill","defineInstancePolyfill","defineInstanceAndStatic","defineInstanceWithArguments","dayAfter","dayAgo","dayBefore","dayFromNow","days","daysAfter","daysAgo","daysBefore","daysFromNow","hourAfter","hourAgo","hourBefore","hourFromNow","hoursAfter","hoursAgo","hoursBefore","hoursFromNow","millisecondAfter","millisecondAgo","millisecondBefore","millisecondFromNow","milliseconds","millisecondsAfter","millisecondsAgo","millisecondsBefore","millisecondsFromNow","minuteAfter","minuteAgo","minuteBefore","minuteFromNow","minutes","minutesAfter","minutesAgo","minutesBefore","minutesFromNow","monthAfter","monthAgo","monthBefore","monthFromNow","monthsAfter","monthsAgo","monthsBefore","monthsFromNow","secondAfter","secondAgo","secondBefore","secondFromNow","seconds","secondsAfter","secondsAgo","secondsBefore","secondsFromNow","week","weekAfter","weekAgo","weekBefore","weekFromNow","weeks","weeksAfter","weeksAgo","weeksBefore","weeksFromNow","yearAfter","yearAgo","yearBefore","yearFromNow","years","yearsAfter","yearsAgo","yearsBefore","yearsFromNow","addDays","buildDateUnitMethods","caps","simpleCapitalize","compareDate","since","getTimeDistanceForUnit","createDateWithContext","until","margin","getTimezoneShift","addSpecificUnit","timezoneShift","compareEdges","loMargin","hiMargin","dateIsValid","charAt","toUpperCase","d1","d2","tmp","fwd","addHours","addMilliseconds","addMinutes","addMonths","addSeconds","addWeeks","addYears","advanceDateWithArgs","collectDateArguments","allowDuration","getDateParamsFromString","collectDateParamsFromArguments","beginningOfDay","beginningOfISOWeek","beginningOfMonth","beginningOfWeek","beginningOfYear","daysInMonth","daysSince","daysUntil","endOfDay","endOfISOWeek","endOfMonth","endOfWeek","endOfYear","dateFormat","assertDateIsValid","CoreOutputFormats","dateFormatMatcher","formattingTokens","ISO8601","RFC1123","RFC1036","buildDateFormatTokens","addFormats","buildLowercase","buildOrdinal","buildPadded","padding","padNumber","buildTwoDigits","buildAlias","buildAlternates","buildAlternate","ldmlTokens","ldml","lowerToken","getIdentityFormat","strfTokens","FormatTokensBase","getPadded","ordinalToken","ldmlPaddedToken","ldmlTwoDigitToken","strfTwoDigitToken","strfPadding","allowAlternates","strf","buildDateFormatMatcher","getLdml","getStrf","checkDateToken","createFormatMatcher","TIMEZONE_ABBREVIATION_REG","getHours","getWeekYear","getUTCOffset","getDaysSince","getWeekNumber","getMeridiemToken","doy","replacement","repeatString","iso","allowPrevious","mins","colon","bracketMatcher","percentMatcher","precheck","getToken","literal","bKey","pLit","pKey","assertPassesPrecheck","getLiteral","getSubstring","sub","assertNoUnmatched","bt","pt","compile","lastIndex","exec","STRING_FORMAT_REG","compileMemoized","memoizeFunction","memo","counter","INTERNAL_MEMOIZE_LIMIT","getISOWeek","getUTCWeekday","getUTCDay","hoursSince","hoursUntil","fullCompareDate","is","compareDay","weekdayMap","monthMap","comp","isAfter","isBefore","isBetween","t1","t2","lo","hi","isFriday","buildRelativeAliases","special","together","isFuture","isLastMonth","isLastWeek","isLastYear","isLeapYear","isMonday","isNextMonth","isNextWeek","isNextYear","isPast","isSaturday","isSunday","isThisMonth","isThisWeek","isThisYear","isThursday","isToday","isTomorrow","isTuesday","isUTC","isWednesday","isWeekday","isWeekend","isYesterday","toISOString","millisecondsSince","millisecondsUntil","minutesSince","minutesUntil","monthsSince","monthsUntil","dateRelative","dRelative","getAdjustedUnitForDate","relativeTo","getUnitIndexForParamName","rewind","secondsSince","secondsUntil","setISOWeek","weeksSince","weeksUntil","yearsSince","yearsUntil","DateRangeConstructor","range","Range","getDateForRange","createDateRangeFromString","cloneRangeMember","getRangeMemberPrimitiveValue","valueOf","dio","RANGE_REG_FROM_TO","RANGE_REG_FRONT_DURATION","RANGE_REG_REAR_DURATION","getDateIncrementObject","incrementDate","DurationTextFormats","FULL_CAPTURED_DURATION","DURATION_UNITS","amount","MULTIPLIERS","Hours","Minutes","Seconds","Milliseconds","amt","DURATION_REG","rangeClamp","defineOnPrototype","clamp","clamped","ctor","buildDateRangeUnits","rangeEvery","step","countOnly","increment","inverse","rangeIsValid","getGreaterPrecision","incrementNumber","incrementString","isValidRangeMember","valueIsNotInfinite","Infinity","charCodeAt","n1","n2","getPrecision","periodSplit","every","intersect","getRangeMemberNumericValue","span","toArray","union","numberWithUnit","baseUnit","DAY","toFixed","last2","prefix"],"mappings":";;;;;;CAAA,SAAAA,E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A,IAAAY,MAAA,IACA8W,KAAA,QAAA1X,IAAA,MAAAY,MAAA,IAEL6e,OACA,oBACA,oBACA,iBACA,UAEAw6B,WACA,gBACA,mBACA,4Bnbg4pBM,SAASr8C,EAAQD,EAASQ,Gobv7pBhC,YAEA,IAAA6zC,GAAA7zC,EAAA,GAUA6zC,GAAA,SACA8M,WAAA,EACAI,cAAA,EACAG,iBAAA,EACAsB,oBAAA,EACApH,MAAA,2BACAE,SAAA,qEACAC,SAAA,sBACA0F,aAAA,UACAzG,MAAA,mBACAC,OAAA,kBACAC,KAAA,wBACAC,KAAA,iCACAC,MAAA,+BACAc,KAAA,gBACAC,KAAA,oBACAC,OAAA,oBACAlK,SAAA,cACA4P,aAAA,sBACAnG,KAAA,QACAU,YACKtiC,KAAA,MAAA1X,IAAA,MAAAY,OAAA,IACA8W,KAAA,MAAA1X,IAAA,KAAAY,OAAA,IACA8W,KAAA,MAAA1X,IAAA,KAAAY,OAAA,IACA8W,KAAA,MAAA1X,IAAA,KAAAY,MAAA,IACA8W,KAAA,MAAA1X,IAAA,KAAAY,MAAA,IACA8W,KAAA,MAAA1X,IAAA,KAAAY,MAAA,IACA8W,KAAA,MAAA1X,IAAA,MAAAY,MAAA,IACA8W,KAAA,OAAA1X,IAAA,IAAAY,OAAA,IACA8W,KAAA,OAAA1X,IAAA,IAAAY,MAAA,IACA8W,KAAA,QAAA1X,IAAA,MAAAY,OAAA,IACA8W,KAAA,QAAA1X,IAAA,IAAAY,MAAA,IACA8W,KAAA,QAAA1X,IAAA,MAAAY,MAAA,IAEL6e,OACA,oBACA,oBACA,iBACA,UAEAw6B,WACA,gBACA,mBACA","file":"tablefilter.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse {\n\t\tvar a = factory();\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse {\n\t\tvar a = factory();\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// install a JSONP callback for chunk loading\n/******/ \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n/******/ \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n/******/ \t\t// add \"moreModules\" to the modules object,\n/******/ \t\t// then flag all \"chunkIds\" as loaded and fire callback\n/******/ \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n/******/ \t\tfor(;i < chunkIds.length; i++) {\n/******/ \t\t\tchunkId = chunkIds[i];\n/******/ \t\t\tif(installedChunks[chunkId])\n/******/ \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n/******/ \t\t\tinstalledChunks[chunkId] = 0;\n/******/ \t\t}\n/******/ \t\tfor(moduleId in moreModules) {\n/******/ \t\t\tmodules[moduleId] = moreModules[moduleId];\n/******/ \t\t}\n/******/ \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n/******/ \t\twhile(callbacks.length)\n/******/ \t\t\tcallbacks.shift().call(null, __webpack_require__);\n/******/\n/******/ \t};\n/******/\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// object to store loaded and loading chunks\n/******/ \t// \"0\" means \"already loaded\"\n/******/ \t// Array means \"loading\", array contains callbacks\n/******/ \tvar installedChunks = {\n/******/ \t\t0:0\n/******/ \t};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/ \t// This file contains only the entry chunk.\n/******/ \t// The chunk loading function for additional chunks\n/******/ \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n/******/ \t\t// \"0\" is the signal for \"already loaded\"\n/******/ \t\tif(installedChunks[chunkId] === 0)\n/******/ \t\t\treturn callback.call(null, __webpack_require__);\n/******/\n/******/ \t\t// an array means \"currently loading\".\n/******/ \t\tif(installedChunks[chunkId] !== undefined) {\n/******/ \t\t\tinstalledChunks[chunkId].push(callback);\n/******/ \t\t} else {\n/******/ \t\t\t// start chunk loading\n/******/ \t\t\tinstalledChunks[chunkId] = [callback];\n/******/ \t\t\tvar head = document.getElementsByTagName('head')[0];\n/******/ \t\t\tvar script = document.createElement('script');\n/******/ \t\t\tscript.type = 'text/javascript';\n/******/ \t\t\tscript.charset = 'utf-8';\n/******/ \t\t\tscript.async = true;\n/******/\n/******/ \t\t\tscript.src = __webpack_require__.p + \"tf-\" + ({}[chunkId]||chunkId) + \"-\" + {\"1\":\"e02724480dc5dcee4468\"}[chunkId] + \".js\";\n/******/ \t\t\thead.appendChild(script);\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.TableFilter = undefined;\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _number = __webpack_require__(7);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tvar _emitter = __webpack_require__(8);\n\t\n\tvar _gridLayout = __webpack_require__(9);\n\t\n\tvar _loader = __webpack_require__(12);\n\t\n\tvar _highlightKeywords = __webpack_require__(13);\n\t\n\tvar _popupFilter = __webpack_require__(14);\n\t\n\tvar _dropdown = __webpack_require__(15);\n\t\n\tvar _checkList = __webpack_require__(18);\n\t\n\tvar _rowsCounter = __webpack_require__(19);\n\t\n\tvar _statusBar = __webpack_require__(20);\n\t\n\tvar _paging = __webpack_require__(21);\n\t\n\tvar _clearButton = __webpack_require__(22);\n\t\n\tvar _help = __webpack_require__(23);\n\t\n\tvar _alternateRows = __webpack_require__(24);\n\t\n\tvar _noResults = __webpack_require__(25);\n\t\n\tvar _state = __webpack_require__(26);\n\t\n\tvar _dateType = __webpack_require__(30);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar doc = _root.root.document;\n\t\n\t/**\n\t * Makes HTML tables filterable and a bit more :)\n\t *\n\t * @export\n\t * @class TableFilter\n\t */\n\t\n\tvar TableFilter = exports.TableFilter = function () {\n\t\n\t /**\n\t * Creates an instance of TableFilter\n\t * requires `table` or `id` arguments, `row` and `configuration` optional\n\t * @param {DOMElement} table Table DOM element\n\t * @param {String} id Table id\n\t * @param {Number} row index indicating the 1st row\n\t * @param {Object} configuration object\n\t */\n\t function TableFilter() {\n\t var _this = this;\n\t\n\t _classCallCheck(this, TableFilter);\n\t\n\t /**\n\t * ID of current instance\n\t * @type {String}\n\t * @private\n\t */\n\t this.id = null;\n\t\n\t /**\n\t * Current version\n\t * @type {String}\n\t */\n\t this.version = '0.4.38';\n\t\n\t /**\n\t * Current year\n\t * @type {Number}\n\t * @private\n\t */\n\t this.year = new Date().getFullYear();\n\t\n\t /**\n\t * HTML Table DOM element\n\t * @type {DOMElement}\n\t */\n\t this.tbl = null;\n\t\n\t /**\n\t * Calculated row's index from which starts filtering once filters\n\t * are generated\n\t * @type {Number}\n\t */\n\t this.refRow = null;\n\t\n\t /**\n\t * Index of the headers row\n\t * @type {Number}\n\t * @private\n\t */\n\t this.headersRow = null;\n\t\n\t /**\n\t * Configuration object\n\t * @type {Object}\n\t * @private\n\t */\n\t this.cfg = {};\n\t\n\t /**\n\t * Number of rows that can be filtered\n\t * @type {Number}\n\t * @private\n\t */\n\t this.nbFilterableRows = 0;\n\t\n\t /**\n\t * Number of cells in the reference row\n\t * @type {Number}\n\t * @private\n\t */\n\t this.nbCells = null;\n\t\n\t var startRow = void 0;\n\t\n\t // TODO: use for-of\n\t\n\t for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n\t args[_key] = arguments[_key];\n\t }\n\t\n\t args.forEach(function (arg) {\n\t if ((typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object' && arg.nodeName === 'TABLE') {\n\t _this.tbl = arg;\n\t _this.id = arg.id || 'tf_' + new Date().getTime() + '_';\n\t } else if ((0, _types.isString)(arg)) {\n\t _this.id = arg;\n\t _this.tbl = (0, _dom.elm)(arg);\n\t } else if ((0, _types.isNumber)(arg)) {\n\t startRow = arg;\n\t } else if ((0, _types.isObj)(arg)) {\n\t _this.cfg = arg;\n\t }\n\t });\n\t\n\t if (!this.tbl || this.tbl.nodeName !== 'TABLE') {\n\t throw new Error('Could not instantiate TableFilter: HTML table\\n DOM element not found.');\n\t }\n\t\n\t if (this.getRowsNb() === 0) {\n\t throw new Error('Could not instantiate TableFilter: HTML table\\n requires at least 1 row.');\n\t }\n\t\n\t // configuration object\n\t var f = this.cfg;\n\t\n\t /**\n\t * Event emitter instance\n\t * @type {Emitter}\n\t */\n\t this.emitter = new _emitter.Emitter();\n\t\n\t //Start row et cols nb\n\t this.refRow = (0, _types.isUndef)(startRow) ? 2 : startRow + 1;\n\t\n\t /**\n\t * Base path for static assets\n\t * @type {String}\n\t */\n\t this.basePath = f.base_path || 'tablefilter/';\n\t\n\t /*** filters' grid properties ***/\n\t\n\t /**\n\t * Enable/disable filters\n\t * @type {Boolean}\n\t */\n\t this.fltGrid = f.grid === false ? false : true;\n\t\n\t /**\n\t * Enable/disable grid layout (fixed headers)\n\t * @type {Boolean}\n\t */\n\t this.gridLayout = Boolean(f.grid_layout);\n\t\n\t /**\n\t * Filters row index\n\t * @type {Number}\n\t */\n\t this.filtersRowIndex = isNaN(f.filters_row_index) ? 0 : f.filters_row_index;\n\t\n\t /**\n\t * Headers row index\n\t * @type {Number}\n\t */\n\t this.headersRow = isNaN(f.headers_row_index) ? this.filtersRowIndex === 0 ? 1 : 0 : f.headers_row_index;\n\t\n\t /**\n\t * Define the type of cell containing a filter (td/th)\n\t * @type {String}\n\t */\n\t this.fltCellTag = (0, _types.isString)(f.filters_cell_tag) ? f.filters_cell_tag : _const.CELL_TAG;\n\t\n\t /**\n\t * List of filters IDs\n\t * @type {Array}\n\t * @private\n\t */\n\t this.fltIds = [];\n\t\n\t /**\n\t * List of valid rows indexes (rows visible upon filtering)\n\t * @type {Array}\n\t * @private\n\t */\n\t this.validRowsIndex = [];\n\t\n\t /**\n\t * Toolbar's container DOM element\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t this.infDiv = null;\n\t\n\t /**\n\t * Left-side inner container DOM element (rows counter in toolbar)\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t this.lDiv = null;\n\t\n\t /**\n\t * Right-side inner container DOM element (reset button,\n\t * page length selector in toolbar)\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t this.rDiv = null;\n\t\n\t /**\n\t * Middle inner container DOM element (paging elements in toolbar)\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t this.mDiv = null;\n\t\n\t /**\n\t * Css class for toolbar's container DOM element\n\t * @type {String}\n\t */\n\t this.infDivCssClass = f.inf_div_css_class || 'inf';\n\t\n\t /**\n\t * Css class for left-side inner container DOM element\n\t * @type {String}\n\t */\n\t this.lDivCssClass = f.left_div_css_class || 'ldiv';\n\t\n\t /**\n\t * Css class for right-side inner container DOM element\n\t * @type {String}\n\t */\n\t this.rDivCssClass = f.right_div_css_class || 'rdiv';\n\t\n\t /**\n\t * Css class for middle inner container DOM element\n\t * @type {String}\n\t */\n\t this.mDivCssClass = f.middle_div_css_class || 'mdiv';\n\t\n\t /*** filters' grid appearance ***/\n\t /**\n\t * Path for stylesheets\n\t * @type {String}\n\t */\n\t this.stylePath = f.style_path || this.basePath + 'style/';\n\t\n\t /**\n\t * Main stylesheet path\n\t * @type {String}\n\t */\n\t this.stylesheet = f.stylesheet || this.stylePath + 'tablefilter.css';\n\t\n\t /**\n\t * Main stylesheet ID\n\t * @type {String}\n\t * @private\n\t */\n\t this.stylesheetId = this.id + '_style';\n\t\n\t /**\n\t * Css class for the filters row\n\t * @type {String}\n\t */\n\t this.fltsRowCssClass = f.flts_row_css_class || 'fltrow';\n\t\n\t /**\n\t * Enable/disable icons (paging, reset button)\n\t * @type {Boolean}\n\t */\n\t this.enableIcons = f.enable_icons === false ? false : true;\n\t\n\t /**\n\t * Enable/disable alternating rows\n\t * @type {Boolean}\n\t */\n\t this.alternateRows = Boolean(f.alternate_rows);\n\t\n\t /**\n\t * Indicate whether columns widths are set\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.hasColWidths = (0, _types.isArray)(f.col_widths);\n\t\n\t /**\n\t * Columns widths array\n\t * @type {Array}\n\t */\n\t this.colWidths = this.hasColWidths ? f.col_widths : [];\n\t\n\t /**\n\t * Css class for a filter element\n\t * @type {String}\n\t */\n\t this.fltCssClass = f.flt_css_class || 'flt';\n\t\n\t /**\n\t * Css class for multiple select filters\n\t * @type {String}\n\t */\n\t this.fltMultiCssClass = f.flt_multi_css_class || 'flt_multi';\n\t\n\t /**\n\t * Css class for small filter (when submit button is active)\n\t * @type {String}\n\t */\n\t this.fltSmallCssClass = f.flt_small_css_class || 'flt_s';\n\t\n\t /**\n\t * Css class for single filter type\n\t * @type {String}\n\t */\n\t this.singleFltCssClass = f.single_flt_css_class || 'single_flt';\n\t\n\t /*** filters' grid behaviours ***/\n\t\n\t /**\n\t * Enable/disable enter key for input type filters\n\t * @type {Boolean}\n\t */\n\t this.enterKey = f.enter_key === false ? false : true;\n\t\n\t /**\n\t * Callback fired before filtering process starts\n\t * @type {Function}\n\t */\n\t this.onBeforeFilter = (0, _types.isFn)(f.on_before_filter) ? f.on_before_filter : _types.EMPTY_FN;\n\t\n\t /**\n\t * Callback fired after filtering process is completed\n\t * @type {Function}\n\t */\n\t this.onAfterFilter = (0, _types.isFn)(f.on_after_filter) ? f.on_after_filter : _types.EMPTY_FN;\n\t\n\t /**\n\t * Enable/disable case sensitivity filtering\n\t * @type {Boolean}\n\t */\n\t this.caseSensitive = Boolean(f.case_sensitive);\n\t\n\t /**\n\t * Indicate whether exact match filtering is enabled on a per column\n\t * basis\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.hasExactMatchByCol = (0, _types.isArray)(f.columns_exact_match);\n\t\n\t /**\n\t * Exact match filtering per column array\n\t * @type {Array}\n\t */\n\t this.exactMatchByCol = this.hasExactMatchByCol ? f.columns_exact_match : [];\n\t\n\t /**\n\t * Globally enable/disable exact match filtering\n\t * @type {Boolean}\n\t */\n\t this.exactMatch = Boolean(f.exact_match);\n\t\n\t /**\n\t * Ignore diacritics globally or on a column basis\n\t * @type {Boolean|Array}\n\t */\n\t this.ignoreDiacritics = f.ignore_diacritics;\n\t\n\t /**\n\t * Enable/disable linked filters filtering mode\n\t * @type {Boolean}\n\t */\n\t this.linkedFilters = Boolean(f.linked_filters);\n\t\n\t /**\n\t * Enable/disable readonly state for excluded options when\n\t * linked filters filtering mode is on\n\t * @type {Boolean}\n\t */\n\t this.disableExcludedOptions = Boolean(f.disable_excluded_options);\n\t\n\t /**\n\t * Active filter ID\n\t * @type {String}\n\t * @private\n\t */\n\t this.activeFilterId = null;\n\t\n\t /**\n\t * Enable/disable always visible rows, excluded from filtering\n\t * @type {Boolean}\n\t */\n\t this.hasVisibleRows = Boolean(f.rows_always_visible);\n\t\n\t /**\n\t * List of row indexes to be excluded from filtering\n\t * @type {Array}\n\t */\n\t this.visibleRows = this.hasVisibleRows ? f.rows_always_visible : [];\n\t\n\t /**\n\t * Enable/disable external filters generation\n\t * @type {Boolean}\n\t */\n\t this.isExternalFlt = Boolean(f.external_flt_grid);\n\t\n\t /**\n\t * List of containers IDs where external filters will be generated\n\t * @type {Array}\n\t */\n\t this.externalFltTgtIds = f.external_flt_grid_ids || [];\n\t\n\t /**\n\t * Callback fired after filters are generated\n\t * @type {Function}\n\t */\n\t this.onFiltersLoaded = (0, _types.isFn)(f.on_filters_loaded) ? f.on_filters_loaded : _types.EMPTY_FN;\n\t\n\t /**\n\t * Enable/disable single filter filtering all columns\n\t * @type {Boolean}\n\t */\n\t this.singleSearchFlt = Boolean(f.single_filter);\n\t\n\t /**\n\t * Callback fired after a row is validated during filtering\n\t * @type {Function}\n\t */\n\t this.onRowValidated = (0, _types.isFn)(f.on_row_validated) ? f.on_row_validated : _types.EMPTY_FN;\n\t\n\t /**\n\t * List of columns implementing custom filtering\n\t * @type {Array}\n\t */\n\t this.customCellDataCols = f.custom_cell_data_cols ? f.custom_cell_data_cols : [];\n\t\n\t /**\n\t * Delegate function for retrieving cell data with custom logic\n\t * @type {Function}\n\t */\n\t this.customCellData = (0, _types.isFn)(f.custom_cell_data) ? f.custom_cell_data : _types.EMPTY_FN;\n\t\n\t /**\n\t * Global watermark text for input filter type or watermark for each\n\t * filter if an array is supplied\n\t * @type {String|Array}\n\t */\n\t this.watermark = f.watermark || '';\n\t\n\t /**\n\t * Indicate whether watermark is on a per column basis\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.isWatermarkArray = (0, _types.isArray)(this.watermark);\n\t\n\t /**\n\t * Toolbar's custom container ID\n\t * @type {String}\n\t */\n\t this.toolBarTgtId = f.toolbar_target_id || null;\n\t\n\t /**\n\t * Indicate whether help UI component is disabled\n\t * @type {Boolean}\n\t */\n\t this.help = (0, _types.isUndef)(f.help_instructions) ? undefined : Boolean(f.help_instructions);\n\t\n\t /**\n\t * Indicate whether pop-up filters UI is enabled\n\t * @type {Boolean}\n\t */\n\t this.popupFilters = Boolean(f.popup_filters);\n\t\n\t /**\n\t * Indicate whether filtered (active) columns indicator is enabled\n\t * @type {Boolean}\n\t */\n\t this.markActiveColumns = Boolean(f.mark_active_columns);\n\t\n\t /**\n\t * Css class for filtered (active) columns\n\t * @type {String}\n\t */\n\t this.activeColumnsCssClass = f.active_columns_css_class || 'activeHeader';\n\t\n\t /**\n\t * Callback fired before a column is marked as filtered\n\t * @type {Function}\n\t */\n\t this.onBeforeActiveColumn = (0, _types.isFn)(f.on_before_active_column) ? f.on_before_active_column : _types.EMPTY_FN;\n\t\n\t /**\n\t * Callback fired after a column is marked as filtered\n\t * @type {Function}\n\t */\n\t this.onAfterActiveColumn = (0, _types.isFn)(f.on_after_active_column) ? f.on_after_active_column : _types.EMPTY_FN;\n\t\n\t /*** select filter's customisation and behaviours ***/\n\t /**\n\t * Text for clear option in drop-down filter types (1st option)\n\t * @type {String|Array}\n\t */\n\t this.clearFilterText = f.clear_filter_text || 'Clear';\n\t\n\t /**\n\t * Indicate whether empty option is enabled in drop-down filter types\n\t * @type {Boolean}\n\t */\n\t this.enableEmptyOption = Boolean(f.enable_empty_option);\n\t\n\t /**\n\t * Text for empty option in drop-down filter types\n\t * @type {String}\n\t */\n\t this.emptyText = f.empty_text || '(Empty)';\n\t\n\t /**\n\t * Indicate whether non-empty option is enabled in drop-down filter\n\t * types\n\t * @type {Boolean}\n\t */\n\t this.enableNonEmptyOption = Boolean(f.enable_non_empty_option);\n\t\n\t /**\n\t * Text for non-empty option in drop-down filter types\n\t * @type {String}\n\t */\n\t this.nonEmptyText = f.non_empty_text || '(Non empty)';\n\t\n\t /**\n\t * Indicate whether drop-down filter types filter the table by default\n\t * on change event\n\t * @type {Boolean}\n\t */\n\t this.onSlcChange = f.on_change === false ? false : true;\n\t\n\t /**\n\t * Indicate whether options in drop-down filter types are sorted in a\n\t * alpha-numeric manner by default\n\t * @type {Boolean}\n\t */\n\t this.sortSlc = f.sort_select === false ? false : true;\n\t\n\t /**\n\t * Indicate whether options in drop-down filter types are sorted in a\n\t * ascending numeric manner\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.isSortNumAsc = Boolean(f.sort_num_asc);\n\t\n\t /**\n\t * List of columns implementing options sorting in a ascending numeric\n\t * manner\n\t * @type {Array}\n\t */\n\t this.sortNumAsc = this.isSortNumAsc ? f.sort_num_asc : [];\n\t\n\t /**\n\t * Indicate whether options in drop-down filter types are sorted in a\n\t * descending numeric manner\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.isSortNumDesc = Boolean(f.sort_num_desc);\n\t\n\t /**\n\t * List of columns implementing options sorting in a descending numeric\n\t * manner\n\t * @type {Array}\n\t */\n\t this.sortNumDesc = this.isSortNumDesc ? f.sort_num_desc : [];\n\t\n\t /**\n\t * Indicate whether drop-down filter types are populated on demand at\n\t * first usage\n\t * @type {Boolean}\n\t */\n\t this.loadFltOnDemand = Boolean(f.load_filters_on_demand);\n\t\n\t /**\n\t * Indicate whether custom drop-down filter options are implemented\n\t * @type {Boolean}\n\t */\n\t this.hasCustomOptions = (0, _types.isObj)(f.custom_options);\n\t\n\t /**\n\t * Custom options definition of a per column basis, ie:\n\t *\tcustom_options: {\n\t * cols:[0, 1],\n\t * texts: [\n\t * ['a0', 'b0', 'c0'],\n\t * ['a1', 'b1', 'c1']\n\t * ],\n\t * values: [\n\t * ['a0', 'b0', 'c0'],\n\t * ['a1', 'b1', 'c1']\n\t * ],\n\t * sorts: [false, true]\n\t * }\n\t *\n\t * @type {Object}\n\t */\n\t this.customOptions = f.custom_options;\n\t\n\t /*** Filter operators ***/\n\t /**\n\t * Regular expression operator for input filter. Defaults to 'rgx:'\n\t * @type {String}\n\t */\n\t this.rgxOperator = f.regexp_operator || 'rgx:';\n\t\n\t /**\n\t * Empty cells operator for input filter. Defaults to '[empty]'\n\t * @type {String}\n\t */\n\t this.emOperator = f.empty_operator || '[empty]';\n\t\n\t /**\n\t * Non-empty cells operator for input filter. Defaults to '[nonempty]'\n\t * @type {String}\n\t */\n\t this.nmOperator = f.nonempty_operator || '[nonempty]';\n\t\n\t /**\n\t * Logical OR operator for input filter. Defaults to '||'\n\t * @type {String}\n\t */\n\t this.orOperator = f.or_operator || '||';\n\t\n\t /**\n\t * Logical AND operator for input filter. Defaults to '&&'\n\t * @type {String}\n\t */\n\t this.anOperator = f.and_operator || '&&';\n\t\n\t /**\n\t * Greater than operator for input filter. Defaults to '>'\n\t * @type {String}\n\t */\n\t this.grOperator = f.greater_operator || '>';\n\t\n\t /**\n\t * Lower than operator for input filter. Defaults to '<'\n\t * @type {String}\n\t */\n\t this.lwOperator = f.lower_operator || '<';\n\t\n\t /**\n\t * Lower than or equal operator for input filter. Defaults to '<='\n\t * @type {String}\n\t */\n\t this.leOperator = f.lower_equal_operator || '<=';\n\t\n\t /**\n\t * Greater than or equal operator for input filter. Defaults to '>='\n\t * @type {String}\n\t */\n\t this.geOperator = f.greater_equal_operator || '>=';\n\t\n\t /**\n\t * Inequality operator for input filter. Defaults to '!'\n\t * @type {String}\n\t */\n\t this.dfOperator = f.different_operator || '!';\n\t\n\t /**\n\t * Like operator for input filter. Defaults to '!'\n\t * @type {String}\n\t */\n\t this.lkOperator = f.like_operator || '*';\n\t\n\t /**\n\t * Strict equality operator for input filter. Defaults to '='\n\t * @type {String}\n\t */\n\t this.eqOperator = f.equal_operator || '=';\n\t\n\t /**\n\t * Starts with operator for input filter. Defaults to '='\n\t * @type {String}\n\t */\n\t this.stOperator = f.start_with_operator || '{';\n\t\n\t /**\n\t * Ends with operator for input filter. Defaults to '='\n\t * @type {String}\n\t */\n\t this.enOperator = f.end_with_operator || '}';\n\t\n\t // this.curExp = f.cur_exp || '^[¥£€$]';\n\t\n\t /**\n\t * Stored values separator\n\t * @type {String}\n\t */\n\t this.separator = f.separator || ',';\n\t\n\t /**\n\t * Enable rows counter UI component\n\t * @type {Boolean}\n\t */\n\t this.rowsCounter = Boolean(f.rows_counter);\n\t\n\t /**\n\t * Enable status bar UI component\n\t * @type {Boolean}\n\t */\n\t this.statusBar = Boolean(f.status_bar);\n\t\n\t /**\n\t * Enable activity/spinner indicator UI component\n\t * @type {Boolean}\n\t */\n\t this.loader = Boolean(f.loader);\n\t\n\t /*** validation - reset buttons/links ***/\n\t /**\n\t * Enable filters submission button\n\t * @type {Boolean}\n\t */\n\t this.displayBtn = Boolean(f.btn);\n\t\n\t /**\n\t * Define filters submission button text\n\t * @type {String}\n\t */\n\t this.btnText = f.btn_text || (!this.enableIcons ? 'Go' : '');\n\t\n\t /**\n\t * Css class for filters submission button\n\t * @type {String}\n\t */\n\t this.btnCssClass = f.btn_css_class || (!this.enableIcons ? 'btnflt' : 'btnflt_icon');\n\t\n\t /**\n\t * Enable clear button\n\t * @type {Boolean}\n\t */\n\t this.btnReset = Boolean(f.btn_reset);\n\t\n\t /**\n\t * Callback fired before filters are cleared\n\t * @type {Function}\n\t */\n\t this.onBeforeReset = (0, _types.isFn)(f.on_before_reset) ? f.on_before_reset : _types.EMPTY_FN;\n\t\n\t /**\n\t * Callback fired after filters are cleared\n\t * @type {Function}\n\t */\n\t this.onAfterReset = (0, _types.isFn)(f.on_after_reset) ? f.on_after_reset : _types.EMPTY_FN;\n\t\n\t /**\n\t * Enable paging component\n\t * @type {Boolean}\n\t */\n\t this.paging = Boolean(f.paging);\n\t\n\t /**\n\t * Number of hidden rows\n\t * @type {Number}\n\t * @private\n\t */\n\t this.nbHiddenRows = 0;\n\t\n\t /**\n\t * Enable auto-filter behaviour, table is filtered when a user\n\t * stops typing\n\t * @type {Boolean}\n\t */\n\t this.autoFilter = Boolean(f.auto_filter);\n\t\n\t /**\n\t * Auto-filter delay in msecs\n\t * @type {Number}\n\t */\n\t this.autoFilterDelay = !isNaN(f.auto_filter_delay) ? f.auto_filter_delay : _const.AUTO_FILTER_DELAY;\n\t\n\t /**\n\t * Indicate whether user is typing\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.isUserTyping = null;\n\t\n\t /**\n\t * Auto-filter interval ID\n\t * @type {String}\n\t * @private\n\t */\n\t this.autoFilterTimer = null;\n\t\n\t /**\n\t * Enable keyword highlighting behaviour\n\t * @type {Boolean}\n\t */\n\t this.highlightKeywords = Boolean(f.highlight_keywords);\n\t\n\t /**\n\t * Enable no results message UI component\n\t * @type {Boolean}\n\t */\n\t this.noResults = (0, _types.isObj)(f.no_results_message) || Boolean(f.no_results_message);\n\t\n\t /**\n\t * Enable state persistence\n\t * @type {Boolean}\n\t */\n\t this.state = (0, _types.isObj)(f.state) || Boolean(f.state);\n\t\n\t /*** data types ***/\n\t\n\t /**\n\t * Define default locale, default to 'en' as per Sugar Date module:\n\t * https://sugarjs.com/docs/#/DateLocales\n\t * @type {String}\n\t */\n\t this.locale = f.locale || 'en';\n\t\n\t /**\n\t * Define thousands separator ',' or '.', defaults to ','\n\t * @type {String}\n\t */\n\t this.thousandsSeparator = f.thousands_separator || ',';\n\t\n\t /**\n\t * Define decimal separator ',' or '.', defaults to '.'\n\t * @type {String}\n\t */\n\t this.decimalSeparator = f.decimal_separator || '.';\n\t\n\t /**\n\t * Determine whether table has columns data types\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.hasColTypes = (0, _types.isArray)(f.col_types);\n\t\n\t /**\n\t * Define data types on a column basis, possible values 'string',\n\t * 'number', 'formatted-number', 'date', 'ipaddress' ie:\n\t * col_types : [\n\t * 'string', 'date', 'number',\n\t * { type: 'formatted-number', decimal: ',', thousands: '.' },\n\t * { type: 'date', locale: 'en-gb' },\n\t * { type: 'date', format: ['{dd}-{months}-{yyyy|yy}'] }\n\t * ]\n\t *\n\t * Refer to https://sugarjs.com/docs/#/DateParsing for exhaustive\n\t * information on date parsing formats supported by Sugar Date\n\t * @type {Array}\n\t */\n\t this.colTypes = this.hasColTypes ? f.col_types : [];\n\t\n\t /*** ids prefixes ***/\n\t /**\n\t * Main prefix\n\t * @private\n\t */\n\t this.prfxTf = 'TF';\n\t\n\t /**\n\t * Filter's ID prefix (inputs - selects)\n\t * @private\n\t */\n\t this.prfxFlt = 'flt';\n\t\n\t /**\n\t * Button's ID prefix\n\t * @private\n\t */\n\t this.prfxValButton = 'btn';\n\t\n\t /**\n\t * Toolbar container ID prefix\n\t * @private\n\t */\n\t this.prfxInfDiv = 'inf_';\n\t\n\t /**\n\t * Toolbar left element ID prefix\n\t * @private\n\t */\n\t this.prfxLDiv = 'ldiv_';\n\t\n\t /**\n\t * Toolbar right element ID prefix\n\t * @private\n\t */\n\t this.prfxRDiv = 'rdiv_';\n\t\n\t /**\n\t * Toolbar middle element ID prefix\n\t * @private\n\t */\n\t this.prfxMDiv = 'mdiv_';\n\t\n\t /**\n\t * Responsive Css class\n\t * @private\n\t */\n\t this.prfxResponsive = 'resp';\n\t\n\t /*** extensions ***/\n\t /**\n\t * List of loaded extensions\n\t * @type {Array}\n\t * @private\n\t */\n\t this.extensions = f.extensions;\n\t\n\t /**\n\t * Determine whether extensions are loaded\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.hasExtensions = (0, _types.isArray)(this.extensions);\n\t\n\t /*** themes ***/\n\t /**\n\t * Enable default theme\n\t * @type {Boolean}\n\t */\n\t this.enableDefaultTheme = Boolean(f.enable_default_theme);\n\t\n\t /**\n\t * Determine whether themes are enables\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.hasThemes = this.enableDefaultTheme || (0, _types.isArray)(f.themes);\n\t\n\t /**\n\t * List of themes, ie:\n\t * themes: [{ name: 'skyblue' }]\n\t * @type {Array}\n\t */\n\t this.themes = f.themes || [];\n\t\n\t /**\n\t * Define path to themes assets, defaults to\n\t * 'tablefilter/style/themes/'. Usage:\n\t * themes: [{ name: 'skyblue' }]\n\t * @type {Array}\n\t */\n\t this.themesPath = f.themes_path || this.stylePath + 'themes/';\n\t\n\t /**\n\t * Enable responsive layout\n\t * @type {Boolean}\n\t */\n\t this.responsive = Boolean(f.responsive);\n\t\n\t /**\n\t * Features registry\n\t * @private\n\t */\n\t this.Mod = {};\n\t\n\t /**\n\t * Extensions registry\n\t * @private\n\t */\n\t this.ExtRegistry = {};\n\t }\n\t\n\t /**\n\t * Initialise features and layout\n\t */\n\t\n\t\n\t TableFilter.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t this.nbCells = this.getCellsNb(this.refRow);\n\t var Mod = this.Mod;\n\t var n = this.singleSearchFlt ? 1 : this.nbCells;\n\t var inpclass = void 0;\n\t\n\t //loads stylesheet if not imported\n\t this.import(this.stylesheetId, this.stylesheet, null, 'link');\n\t\n\t //loads theme\n\t if (this.hasThemes) {\n\t this.loadThemes();\n\t }\n\t\n\t // Instanciate sugar date wrapper\n\t Mod.dateType = Mod.dateType || new _dateType.DateType(this);\n\t Mod.dateType.init();\n\t\n\t // Instantiate help feature and initialise only if set true\n\t Mod.help = Mod.help || new _help.Help(this);\n\t if (this.help) {\n\t Mod.help.init();\n\t }\n\t\n\t if (this.state) {\n\t Mod.state = Mod.state || new _state.State(this);\n\t Mod.state.init();\n\t }\n\t\n\t if (this.gridLayout) {\n\t Mod.gridLayout = Mod.gridLayout || new _gridLayout.GridLayout(this);\n\t Mod.gridLayout.init();\n\t }\n\t\n\t if (this.loader) {\n\t Mod.loader = Mod.loader || new _loader.Loader(this);\n\t Mod.loader.init();\n\t }\n\t\n\t if (this.highlightKeywords) {\n\t Mod.highlightKeyword = new _highlightKeywords.HighlightKeyword(this);\n\t Mod.highlightKeyword.init();\n\t }\n\t\n\t if (this.popupFilters) {\n\t Mod.popupFilter = Mod.popupFilter || new _popupFilter.PopupFilter(this);\n\t Mod.popupFilter.init();\n\t }\n\t\n\t //filters grid is not generated\n\t if (!this.fltGrid) {\n\t this._initNoFilters();\n\t } else {\n\t var fltrow = this._insertFiltersRow();\n\t\n\t this.nbFilterableRows = this.getRowsNb();\n\t\n\t // Generate filters\n\t for (var i = 0; i < n; i++) {\n\t this.emitter.emit('before-filter-init', this, i);\n\t\n\t var fltcell = (0, _dom.createElm)(this.fltCellTag),\n\t col = this.getFilterType(i);\n\t\n\t if (this.singleSearchFlt) {\n\t fltcell.colSpan = this.nbCells;\n\t }\n\t if (!this.gridLayout) {\n\t fltrow.appendChild(fltcell);\n\t }\n\t inpclass = i === n - 1 && this.displayBtn ? this.fltSmallCssClass : this.fltCssClass;\n\t\n\t //only 1 input for single search\n\t if (this.singleSearchFlt) {\n\t col = _const.INPUT;\n\t inpclass = this.singleFltCssClass;\n\t }\n\t\n\t //drop-down filters\n\t if (col === _const.SELECT || col === _const.MULTIPLE) {\n\t if (!Mod.dropdown) {\n\t Mod.dropdown = new _dropdown.Dropdown(this);\n\t }\n\t Mod.dropdown.init(i, this.isExternalFlt, fltcell);\n\t }\n\t // checklist\n\t else if (col === _const.CHECKLIST) {\n\t if (!Mod.checkList) {\n\t Mod.checkList = new _checkList.CheckList(this);\n\t }\n\t Mod.checkList.init(i, this.isExternalFlt, fltcell);\n\t } else {\n\t this._buildInputFilter(i, inpclass, fltcell);\n\t }\n\t\n\t // this adds submit button\n\t if (i === n - 1 && this.displayBtn) {\n\t this._buildSubmitButton(i, fltcell);\n\t }\n\t\n\t this.emitter.emit('after-filter-init', this, i);\n\t }\n\t\n\t this.emitter.on(['filter-focus'], function (tf, filter) {\n\t return _this2.setActiveFilterId(filter.id);\n\t });\n\t } //if this.fltGrid\n\t\n\t /* Features */\n\t if (this.hasVisibleRows) {\n\t this.emitter.on(['after-filtering'], function () {\n\t return _this2.enforceVisibility();\n\t });\n\t this.enforceVisibility();\n\t }\n\t if (this.rowsCounter) {\n\t Mod.rowsCounter = new _rowsCounter.RowsCounter(this);\n\t Mod.rowsCounter.init();\n\t }\n\t if (this.statusBar) {\n\t Mod.statusBar = new _statusBar.StatusBar(this);\n\t Mod.statusBar.init();\n\t }\n\t if (this.paging) {\n\t if (!Mod.paging) {\n\t Mod.paging = new _paging.Paging(this);\n\t Mod.paging.init();\n\t } else {\n\t Mod.paging.reset();\n\t }\n\t }\n\t if (this.btnReset) {\n\t Mod.clearButton = new _clearButton.ClearButton(this);\n\t Mod.clearButton.init();\n\t }\n\t\n\t if (this.hasColWidths && !this.gridLayout) {\n\t this.setColWidths();\n\t }\n\t if (this.alternateRows) {\n\t Mod.alternateRows = new _alternateRows.AlternateRows(this);\n\t Mod.alternateRows.init();\n\t }\n\t if (this.noResults) {\n\t Mod.noResults = Mod.noResults || new _noResults.NoResults(this);\n\t Mod.noResults.init();\n\t }\n\t\n\t //TF css class is added to table\n\t if (!this.gridLayout) {\n\t (0, _dom.addClass)(this.tbl, this.prfxTf);\n\t if (this.responsive) {\n\t (0, _dom.addClass)(this.tbl, this.prfxResponsive);\n\t }\n\t }\n\t\n\t /* Loads extensions */\n\t if (this.hasExtensions) {\n\t this.initExtensions();\n\t }\n\t\n\t // Subscribe to events\n\t if (this.markActiveColumns) {\n\t this.emitter.on(['before-filtering'], function () {\n\t return _this2.clearActiveColumns();\n\t });\n\t this.emitter.on(['cell-processed'], function (tf, colIndex) {\n\t return _this2.markActiveColumn(colIndex);\n\t });\n\t }\n\t if (this.linkedFilters) {\n\t this.emitter.on(['after-filtering'], function () {\n\t return _this2.linkFilters();\n\t });\n\t }\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t\n\t this.onFiltersLoaded(this);\n\t\n\t this.emitter.emit('initialized', this);\n\t };\n\t\n\t /**\n\t * Detect key\n\t * @param {Event} evt\n\t */\n\t\n\t\n\t TableFilter.prototype.detectKey = function detectKey(evt) {\n\t if (!this.enterKey) {\n\t return;\n\t }\n\t if (evt) {\n\t var key = (0, _event.keyCode)(evt);\n\t if (key === _const.ENTER_KEY) {\n\t this.filter();\n\t (0, _event.cancelEvt)(evt);\n\t (0, _event.stopEvt)(evt);\n\t } else {\n\t this.isUserTyping = true;\n\t _root.root.clearInterval(this.autoFilterTimer);\n\t this.autoFilterTimer = null;\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Filter's keyup event: if auto-filter on, detect user is typing and filter\n\t * columns\n\t * @param {Event} evt\n\t */\n\t\n\t\n\t TableFilter.prototype.onKeyUp = function onKeyUp(evt) {\n\t if (!this.autoFilter) {\n\t return;\n\t }\n\t var key = (0, _event.keyCode)(evt);\n\t this.isUserTyping = false;\n\t\n\t function filter() {\n\t _root.root.clearInterval(this.autoFilterTimer);\n\t this.autoFilterTimer = null;\n\t if (!this.isUserTyping) {\n\t this.filter();\n\t this.isUserTyping = null;\n\t }\n\t }\n\t\n\t if (key !== _const.ENTER_KEY && key !== _const.TAB_KEY && key !== _const.ESC_KEY && key !== _const.UP_ARROW_KEY && key !== _const.DOWN_ARROW_KEY) {\n\t if (this.autoFilterTimer === null) {\n\t this.autoFilterTimer = _root.root.setInterval(filter.bind(this), this.autoFilterDelay);\n\t }\n\t } else {\n\t _root.root.clearInterval(this.autoFilterTimer);\n\t this.autoFilterTimer = null;\n\t }\n\t };\n\t\n\t /**\n\t * Filter's keydown event: if auto-filter on, detect user is typing\n\t */\n\t\n\t\n\t TableFilter.prototype.onKeyDown = function onKeyDown() {\n\t if (this.autoFilter) {\n\t this.isUserTyping = true;\n\t }\n\t };\n\t\n\t /**\n\t * Filter's focus event\n\t * @param {Event} evt\n\t */\n\t\n\t\n\t TableFilter.prototype.onInpFocus = function onInpFocus(evt) {\n\t var elm = (0, _event.targetEvt)(evt);\n\t this.emitter.emit('filter-focus', this, elm);\n\t };\n\t\n\t /**\n\t * Filter's blur event: if auto-filter on, clear interval on filter blur\n\t */\n\t\n\t\n\t TableFilter.prototype.onInpBlur = function onInpBlur() {\n\t if (this.autoFilter) {\n\t this.isUserTyping = false;\n\t _root.root.clearInterval(this.autoFilterTimer);\n\t }\n\t this.emitter.emit('filter-blur', this);\n\t };\n\t\n\t /**\n\t * Insert filters row at initialization\n\t */\n\t\n\t\n\t TableFilter.prototype._insertFiltersRow = function _insertFiltersRow() {\n\t // TODO: prevent filters row generation for popup filters too,\n\t // to reduce and simplify headers row index adjusting across lib modules\n\t // (GridLayout, PopupFilter etc)\n\t if (this.gridLayout) {\n\t return;\n\t }\n\t var fltrow = void 0;\n\t\n\t var thead = (0, _dom.tag)(this.tbl, 'thead');\n\t if (thead.length > 0) {\n\t fltrow = thead[0].insertRow(this.filtersRowIndex);\n\t } else {\n\t fltrow = this.tbl.insertRow(this.filtersRowIndex);\n\t }\n\t\n\t fltrow.className = this.fltsRowCssClass;\n\t\n\t if (this.isExternalFlt) {\n\t fltrow.style.display = _const.NONE;\n\t }\n\t\n\t this.emitter.emit('filters-row-inserted', this, fltrow);\n\t return fltrow;\n\t };\n\t\n\t /**\n\t * Initialize filtersless table\n\t */\n\t\n\t\n\t TableFilter.prototype._initNoFilters = function _initNoFilters() {\n\t if (this.fltGrid) {\n\t return;\n\t }\n\t this.refRow = this.refRow > 0 ? this.refRow - 1 : 0;\n\t this.nbFilterableRows = this.getRowsNb();\n\t };\n\t\n\t /**\n\t * Build input filter type\n\t * @param {Number} colIndex Column index\n\t * @param {String} cssClass Css class applied to filter\n\t * @param {DOMElement} container Container DOM element\n\t */\n\t\n\t\n\t TableFilter.prototype._buildInputFilter = function _buildInputFilter(colIndex, cssClass, container) {\n\t var _this3 = this;\n\t\n\t var col = this.getFilterType(colIndex);\n\t var externalFltTgtId = this.isExternalFlt ? this.externalFltTgtIds[colIndex] : null;\n\t var inpType = col === _const.INPUT ? 'text' : 'hidden';\n\t var inp = (0, _dom.createElm)(_const.INPUT, ['id', this.buildFilterId(colIndex)], ['type', inpType], ['ct', colIndex]);\n\t\n\t if (inpType !== 'hidden' && this.watermark) {\n\t inp.setAttribute('placeholder', this.isWatermarkArray ? this.watermark[colIndex] || '' : this.watermark);\n\t }\n\t inp.className = cssClass || this.fltCssClass;\n\t (0, _event.addEvt)(inp, 'focus', function (evt) {\n\t return _this3.onInpFocus(evt);\n\t });\n\t\n\t //filter is appended in custom element\n\t if (externalFltTgtId) {\n\t (0, _dom.elm)(externalFltTgtId).appendChild(inp);\n\t } else {\n\t container.appendChild(inp);\n\t }\n\t\n\t this.fltIds.push(inp.id);\n\t\n\t (0, _event.addEvt)(inp, 'keypress', function (evt) {\n\t return _this3.detectKey(evt);\n\t });\n\t (0, _event.addEvt)(inp, 'keydown', function () {\n\t return _this3.onKeyDown();\n\t });\n\t (0, _event.addEvt)(inp, 'keyup', function (evt) {\n\t return _this3.onKeyUp(evt);\n\t });\n\t (0, _event.addEvt)(inp, 'blur', function () {\n\t return _this3.onInpBlur();\n\t });\n\t };\n\t\n\t /**\n\t * Build submit button\n\t * @param {Number} colIndex Column index\n\t * @param {DOMElement} container Container DOM element\n\t */\n\t\n\t\n\t TableFilter.prototype._buildSubmitButton = function _buildSubmitButton(colIndex, container) {\n\t var _this4 = this;\n\t\n\t var externalFltTgtId = this.isExternalFlt ? this.externalFltTgtIds[colIndex] : null;\n\t var btn = (0, _dom.createElm)(_const.INPUT, ['type', 'button'], ['value', this.btnText]);\n\t btn.className = this.btnCssClass;\n\t\n\t //filter is appended in custom element\n\t if (externalFltTgtId) {\n\t (0, _dom.elm)(externalFltTgtId).appendChild(btn);\n\t } else {\n\t container.appendChild(btn);\n\t }\n\t\n\t (0, _event.addEvt)(btn, 'click', function () {\n\t return _this4.filter();\n\t });\n\t };\n\t\n\t /**\n\t * Return a feature instance for a given name\n\t * @param {String} name Name of the feature\n\t * @return {Object}\n\t */\n\t\n\t\n\t TableFilter.prototype.feature = function feature(name) {\n\t return this.Mod[name];\n\t };\n\t\n\t /**\n\t * Initialise all the extensions defined in the configuration object\n\t */\n\t\n\t\n\t TableFilter.prototype.initExtensions = function initExtensions() {\n\t var exts = this.extensions;\n\t // Set config's publicPath dynamically for Webpack...\n\t __webpack_require__.p = this.basePath;\n\t\n\t this.emitter.emit('before-loading-extensions', this);\n\t for (var i = 0, len = exts.length; i < len; i++) {\n\t var ext = exts[i];\n\t if (!this.ExtRegistry[ext.name]) {\n\t this.loadExtension(ext);\n\t }\n\t }\n\t this.emitter.emit('after-loading-extensions', this);\n\t };\n\t\n\t /**\n\t * Load an extension module\n\t * @param {Object} ext Extension config object\n\t */\n\t\n\t\n\t TableFilter.prototype.loadExtension = function loadExtension(ext) {\n\t var _this5 = this;\n\t\n\t if (!ext || !ext.name) {\n\t return;\n\t }\n\t\n\t var name = ext.name;\n\t var path = ext.path;\n\t var modulePath = void 0;\n\t\n\t if (name && path) {\n\t modulePath = ext.path + name;\n\t } else {\n\t name = name.replace('.js', '');\n\t modulePath = 'extensions/{}/{}'.replace(/{}/g, name);\n\t }\n\t\n\t // Require pattern for Webpack\n\t __webpack_require__.e/* require */(1, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(435)(\"./\" + modulePath)]; (function (mod) {\n\t /* eslint-disable */\n\t var inst = new mod.default(_this5, ext);\n\t /* eslint-enable */\n\t inst.init();\n\t _this5.ExtRegistry[name] = inst;\n\t }.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});\n\t };\n\t\n\t /**\n\t * Get an extension instance\n\t * @param {String} name Name of the extension\n\t * @return {Object} Extension instance\n\t */\n\t\n\t\n\t TableFilter.prototype.extension = function extension(name) {\n\t return this.ExtRegistry[name];\n\t };\n\t\n\t /**\n\t * Check passed extension name exists\n\t * @param {String} name Name of the extension\n\t * @return {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.hasExtension = function hasExtension(name) {\n\t return !(0, _types.isEmpty)(this.ExtRegistry[name]);\n\t };\n\t\n\t /**\n\t * Destroy all the extensions defined in the configuration object\n\t */\n\t\n\t\n\t TableFilter.prototype.destroyExtensions = function destroyExtensions() {\n\t var exts = this.extensions;\n\t\n\t for (var i = 0, len = exts.length; i < len; i++) {\n\t var ext = exts[i];\n\t var extInstance = this.ExtRegistry[ext.name];\n\t if (extInstance) {\n\t extInstance.destroy();\n\t this.ExtRegistry[ext.name] = undefined;\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Load themes defined in the configuration object\n\t */\n\t\n\t\n\t TableFilter.prototype.loadThemes = function loadThemes() {\n\t var themes = this.themes;\n\t this.emitter.emit('before-loading-themes', this);\n\t\n\t //Default theme config\n\t if (this.enableDefaultTheme) {\n\t var defaultTheme = { name: 'default' };\n\t this.themes.push(defaultTheme);\n\t }\n\t if ((0, _types.isArray)(themes)) {\n\t for (var i = 0, len = themes.length; i < len; i++) {\n\t var theme = themes[i];\n\t var name = theme.name;\n\t var path = theme.path;\n\t var styleId = this.prfxTf + name;\n\t if (name && !path) {\n\t path = this.themesPath + name + '/' + name + '.css';\n\t } else if (!name && theme.path) {\n\t name = 'theme{0}'.replace('{0}', i);\n\t }\n\t\n\t if (!this.isImported(path, 'link')) {\n\t this.import(styleId, path, null, 'link');\n\t }\n\t }\n\t }\n\t\n\t // Enable loader indicator\n\t this.loader = true;\n\t\n\t this.emitter.emit('after-loading-themes', this);\n\t };\n\t\n\t /**\n\t * Return stylesheet DOM element for a given theme name\n\t * @return {DOMElement} stylesheet element\n\t */\n\t\n\t\n\t TableFilter.prototype.getStylesheet = function getStylesheet() {\n\t var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'default';\n\t\n\t return (0, _dom.elm)(this.prfxTf + name);\n\t };\n\t\n\t /**\n\t * Destroy filter grid\n\t */\n\t\n\t\n\t TableFilter.prototype.destroy = function destroy() {\n\t var _this6 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t var emitter = this.emitter;\n\t\n\t if (this.isExternalFlt && !this.popupFilters) {\n\t this.removeExternalFlts();\n\t }\n\t if (this.infDiv) {\n\t this.removeToolbar();\n\t }\n\t if (this.markActiveColumns) {\n\t this.clearActiveColumns();\n\t emitter.off(['before-filtering'], function () {\n\t return _this6.clearActiveColumns();\n\t });\n\t emitter.off(['cell-processed'], function (tf, colIndex) {\n\t return _this6.markActiveColumn(colIndex);\n\t });\n\t }\n\t if (this.hasExtensions) {\n\t this.destroyExtensions();\n\t }\n\t\n\t this.validateAllRows();\n\t\n\t if (this.fltGrid && !this.gridLayout) {\n\t this.tbl.deleteRow(this.filtersRowIndex);\n\t }\n\t\n\t // broadcast destroy event\n\t emitter.emit('destroy', this);\n\t\n\t // unsubscribe to events\n\t if (this.hasVisibleRows) {\n\t emitter.off(['after-filtering'], function () {\n\t return _this6.enforceVisibility();\n\t });\n\t }\n\t if (this.linkedFilters) {\n\t emitter.off(['after-filtering'], function () {\n\t return _this6.linkFilters();\n\t });\n\t }\n\t this.emitter.off(['filter-focus'], function (tf, filter) {\n\t return _this6.setActiveFilterId(filter.id);\n\t });\n\t\n\t (0, _dom.removeClass)(this.tbl, this.prfxTf);\n\t (0, _dom.removeClass)(this.tbl, this.prfxResponsive);\n\t\n\t this.nbHiddenRows = 0;\n\t this.validRowsIndex = [];\n\t this.fltIds = [];\n\t this.initialized = false;\n\t };\n\t\n\t /**\n\t * Generate container element for paging, reset button, rows counter etc.\n\t */\n\t\n\t\n\t TableFilter.prototype.setToolbar = function setToolbar() {\n\t if (this.infDiv) {\n\t return;\n\t }\n\t\n\t /*** container div ***/\n\t var infDiv = (0, _dom.createElm)('div');\n\t infDiv.className = this.infDivCssClass;\n\t\n\t //custom container\n\t if (this.toolBarTgtId) {\n\t (0, _dom.elm)(this.toolBarTgtId).appendChild(infDiv);\n\t }\n\t //grid-layout\n\t else if (this.gridLayout) {\n\t var gridLayout = this.Mod.gridLayout;\n\t gridLayout.tblMainCont.appendChild(infDiv);\n\t infDiv.className = gridLayout.infDivCssClass;\n\t }\n\t //default location: just above the table\n\t else {\n\t var cont = (0, _dom.createElm)('caption');\n\t cont.appendChild(infDiv);\n\t this.tbl.insertBefore(cont, this.tbl.firstChild);\n\t }\n\t this.infDiv = infDiv;\n\t\n\t /*** left div containing rows # displayer ***/\n\t var lDiv = (0, _dom.createElm)('div');\n\t lDiv.className = this.lDivCssClass;\n\t infDiv.appendChild(lDiv);\n\t this.lDiv = lDiv;\n\t\n\t /*** right div containing reset button\n\t + nb results per page select ***/\n\t var rDiv = (0, _dom.createElm)('div');\n\t rDiv.className = this.rDivCssClass;\n\t infDiv.appendChild(rDiv);\n\t this.rDiv = rDiv;\n\t\n\t /*** mid div containing paging elements ***/\n\t var mDiv = (0, _dom.createElm)('div');\n\t mDiv.className = this.mDivCssClass;\n\t infDiv.appendChild(mDiv);\n\t this.mDiv = mDiv;\n\t\n\t // emit help initialisation only if undefined\n\t if ((0, _types.isUndef)(this.help)) {\n\t // explicitily set enabled field to true to initialise help by\n\t // default, only if setting is undefined\n\t this.Mod.help.enabled = true;\n\t this.emitter.emit('init-help', this);\n\t }\n\t };\n\t\n\t /**\n\t * Remove toolbar container element\n\t */\n\t\n\t\n\t TableFilter.prototype.removeToolbar = function removeToolbar() {\n\t if (!this.infDiv) {\n\t return;\n\t }\n\t (0, _dom.removeElm)(this.infDiv);\n\t this.infDiv = null;\n\t\n\t var tbl = this.tbl;\n\t var captions = (0, _dom.tag)(tbl, 'caption');\n\t if (captions.length > 0) {\n\t [].forEach.call(captions, function (elm) {\n\t return tbl.removeChild(elm);\n\t });\n\t }\n\t };\n\t\n\t /**\n\t * Remove all the external column filters\n\t */\n\t\n\t\n\t TableFilter.prototype.removeExternalFlts = function removeExternalFlts() {\n\t if (!this.isExternalFlt) {\n\t return;\n\t }\n\t var ids = this.externalFltTgtIds,\n\t len = ids.length;\n\t for (var ct = 0; ct < len; ct++) {\n\t var externalFltTgtId = ids[ct],\n\t externalFlt = (0, _dom.elm)(externalFltTgtId);\n\t if (externalFlt) {\n\t externalFlt.innerHTML = '';\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Check if given column implements a filter with custom options\n\t * @param {Number} colIndex Column's index\n\t * @return {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.isCustomOptions = function isCustomOptions(colIndex) {\n\t return this.hasCustomOptions && this.customOptions.cols.indexOf(colIndex) !== -1;\n\t };\n\t\n\t /**\n\t * Returns an array [[value0, value1 ...],[text0, text1 ...]] with the\n\t * custom options values and texts\n\t * @param {Number} colIndex Column's index\n\t * @return {Array}\n\t */\n\t\n\t\n\t TableFilter.prototype.getCustomOptions = function getCustomOptions(colIndex) {\n\t if ((0, _types.isEmpty)(colIndex) || !this.isCustomOptions(colIndex)) {\n\t return;\n\t }\n\t\n\t var customOptions = this.customOptions;\n\t var cols = customOptions.cols;\n\t var optTxt = [],\n\t optArray = [];\n\t var index = cols.indexOf(colIndex);\n\t var slcValues = customOptions.values[index];\n\t var slcTexts = customOptions.texts[index];\n\t var slcSort = customOptions.sorts[index];\n\t\n\t for (var r = 0, len = slcValues.length; r < len; r++) {\n\t optArray.push(slcValues[r]);\n\t if (slcTexts[r]) {\n\t optTxt.push(slcTexts[r]);\n\t } else {\n\t optTxt.push(slcValues[r]);\n\t }\n\t }\n\t if (slcSort) {\n\t optArray.sort();\n\t optTxt.sort();\n\t }\n\t return [optArray, optTxt];\n\t };\n\t\n\t /**\n\t * Filter the table by retrieving the data from each cell in every single\n\t * row and comparing it to the search term for current column. A row is\n\t * hidden when all the search terms are not found in inspected row.\n\t */\n\t\n\t\n\t TableFilter.prototype.filter = function filter() {\n\t if (!this.fltGrid || !this.initialized) {\n\t return;\n\t }\n\t //fire onbefore callback\n\t this.onBeforeFilter(this);\n\t this.emitter.emit('before-filtering', this);\n\t\n\t var row = this.tbl.rows,\n\t nbRows = this.getRowsNb(true),\n\t hiddenRows = 0;\n\t\n\t this.validRowsIndex = [];\n\t // search args re-init\n\t var searchArgs = this.getFiltersValue();\n\t\n\t for (var k = this.refRow; k < nbRows; k++) {\n\t // already filtered rows display re-init\n\t row[k].style.display = '';\n\t\n\t var cells = row[k].cells;\n\t var nchilds = cells.length;\n\t\n\t // checks if row has exact cell #\n\t if (nchilds !== this.nbCells) {\n\t continue;\n\t }\n\t\n\t var occurence = [],\n\t isRowValid = true,\n\t\n\t //only for single filter search\n\t singleFltRowValid = false;\n\t\n\t // this loop retrieves cell data\n\t for (var j = 0; j < nchilds; j++) {\n\t //searched keyword\n\t var sA = searchArgs[this.singleSearchFlt ? 0 : j];\n\t\n\t if (sA === '') {\n\t continue;\n\t }\n\t\n\t var cellValue = (0, _string.matchCase)(this.getCellValue(cells[j]), this.caseSensitive);\n\t\n\t //multiple search parameter operator ||\n\t var sAOrSplit = sA.toString().split(this.orOperator),\n\t\n\t //multiple search || parameter boolean\n\t hasMultiOrSA = sAOrSplit.length > 1,\n\t\n\t //multiple search parameter operator &&\n\t sAAndSplit = sA.toString().split(this.anOperator),\n\t\n\t //multiple search && parameter boolean\n\t hasMultiAndSA = sAAndSplit.length > 1;\n\t\n\t //detect operators or array query\n\t if ((0, _types.isArray)(sA) || hasMultiOrSA || hasMultiAndSA) {\n\t var cS = void 0,\n\t s = void 0,\n\t occur = false;\n\t if ((0, _types.isArray)(sA)) {\n\t s = sA;\n\t } else {\n\t s = hasMultiOrSA ? sAOrSplit : sAAndSplit;\n\t }\n\t // isolate search term and check occurence in cell data\n\t for (var w = 0, len = s.length; w < len; w++) {\n\t cS = (0, _string.trim)(s[w]);\n\t occur = this._testTerm(cS, cellValue, j);\n\t\n\t if (occur) {\n\t this.emitter.emit('highlight-keyword', this, cells[j], cS);\n\t }\n\t if (hasMultiOrSA && occur || hasMultiAndSA && !occur) {\n\t break;\n\t }\n\t if ((0, _types.isArray)(sA) && occur) {\n\t break;\n\t }\n\t }\n\t occurence[j] = occur;\n\t }\n\t //single search parameter\n\t else {\n\t occurence[j] = this._testTerm((0, _string.trim)(sA), cellValue, j);\n\t if (occurence[j]) {\n\t this.emitter.emit('highlight-keyword', this, cells[j], sA);\n\t }\n\t } //else single param\n\t\n\t if (!occurence[j]) {\n\t isRowValid = false;\n\t }\n\t if (this.singleSearchFlt && occurence[j]) {\n\t singleFltRowValid = true;\n\t }\n\t\n\t this.emitter.emit('cell-processed', this, j, cells[j]);\n\t } //for j\n\t\n\t if (this.singleSearchFlt && singleFltRowValid) {\n\t isRowValid = true;\n\t }\n\t\n\t this.validateRow(k, isRowValid);\n\t if (!isRowValid) {\n\t hiddenRows++;\n\t }\n\t\n\t this.emitter.emit('row-processed', this, k, this.validRowsIndex.length, isRowValid);\n\t } // for k\n\t\n\t this.nbHiddenRows = hiddenRows;\n\t\n\t //fire onafterfilter callback\n\t this.onAfterFilter(this);\n\t\n\t this.emitter.emit('after-filtering', this, searchArgs);\n\t };\n\t\n\t /**\n\t * Test for a match of search term in cell data\n\t * @param {String} term Search term\n\t * @param {String} cellValue Cell data\n\t * @param {Number} colIdx Column index\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype._testTerm = function _testTerm(term, cellValue, colIdx) {\n\t var numData = void 0;\n\t var decimal = this.decimalSeparator;\n\t var reLe = new RegExp(this.leOperator),\n\t reGe = new RegExp(this.geOperator),\n\t reL = new RegExp(this.lwOperator),\n\t reG = new RegExp(this.grOperator),\n\t reD = new RegExp(this.dfOperator),\n\t reLk = new RegExp((0, _string.rgxEsc)(this.lkOperator)),\n\t reEq = new RegExp(this.eqOperator),\n\t reSt = new RegExp(this.stOperator),\n\t reEn = new RegExp(this.enOperator),\n\t\n\t // re_an = new RegExp(this.anOperator),\n\t // re_cr = new RegExp(this.curExp),\n\t reEm = this.emOperator,\n\t reNm = this.nmOperator,\n\t reRe = new RegExp((0, _string.rgxEsc)(this.rgxOperator));\n\t\n\t term = (0, _string.matchCase)(term, this.caseSensitive);\n\t\n\t var occurence = false;\n\t\n\t //Search arg operator tests\n\t var hasLO = reL.test(term),\n\t hasLE = reLe.test(term),\n\t hasGR = reG.test(term),\n\t hasGE = reGe.test(term),\n\t hasDF = reD.test(term),\n\t hasEQ = reEq.test(term),\n\t hasLK = reLk.test(term),\n\t\n\t // hatermN = re_an.test(term),\n\t hasST = reSt.test(term),\n\t hasEN = reEn.test(term),\n\t hasEM = reEm === term,\n\t hasNM = reNm === term,\n\t hasRE = reRe.test(term);\n\t\n\t // Check for dates or resolve date type\n\t if (this.hasType(colIdx, [_const.DATE])) {\n\t var dte1 = void 0,\n\t dte2 = void 0;\n\t\n\t var dateType = this.Mod.dateType;\n\t var isValidDate = dateType.isValid.bind(dateType);\n\t var parseDate = dateType.parse.bind(dateType);\n\t var locale = dateType.getOptions(colIdx).locale || this.locale;\n\t\n\t // Search arg dates tests\n\t var isLDate = hasLO && isValidDate(term.replace(reL, ''), locale);\n\t var isLEDate = hasLE && isValidDate(term.replace(reLe, ''), locale);\n\t var isGDate = hasGR && isValidDate(term.replace(reG, ''), locale);\n\t var isGEDate = hasGE && isValidDate(term.replace(reGe, ''), locale);\n\t var isDFDate = hasDF && isValidDate(term.replace(reD, ''), locale);\n\t var isEQDate = hasEQ && isValidDate(term.replace(reEq, ''), locale);\n\t\n\t dte1 = parseDate(cellValue, locale);\n\t\n\t // lower equal date\n\t if (isLEDate) {\n\t dte2 = parseDate(term.replace(reLe, ''), locale);\n\t occurence = dte1 <= dte2;\n\t }\n\t // lower date\n\t else if (isLDate) {\n\t dte2 = parseDate(term.replace(reL, ''), locale);\n\t occurence = dte1 < dte2;\n\t }\n\t // greater equal date\n\t else if (isGEDate) {\n\t dte2 = parseDate(term.replace(reGe, ''), locale);\n\t occurence = dte1 >= dte2;\n\t }\n\t // greater date\n\t else if (isGDate) {\n\t dte2 = parseDate(term.replace(reG, ''), locale);\n\t occurence = dte1 > dte2;\n\t }\n\t // different date\n\t else if (isDFDate) {\n\t dte2 = parseDate(term.replace(reD, ''), locale);\n\t occurence = dte1.toString() !== dte2.toString();\n\t }\n\t // equal date\n\t else if (isEQDate) {\n\t dte2 = parseDate(term.replace(reEq, ''), locale);\n\t occurence = dte1.toString() === dte2.toString();\n\t }\n\t // searched keyword with * operator doesn't have to be a date\n\t else if (reLk.test(term)) {\n\t // like date\n\t occurence = (0, _string.contains)(term.replace(reLk, ''), cellValue, false, this.caseSensitive);\n\t } else if (isValidDate(term)) {\n\t dte2 = parseDate(term, locale);\n\t occurence = dte1.toString() === dte2.toString();\n\t }\n\t //empty\n\t else if (hasEM) {\n\t occurence = (0, _string.isEmpty)(cellValue);\n\t }\n\t //non-empty\n\t else if (hasNM) {\n\t occurence = !(0, _string.isEmpty)(cellValue);\n\t } else {\n\t occurence = (0, _string.contains)(term, cellValue, this.isExactMatch(colIdx), this.caseSensitive);\n\t }\n\t } else {\n\t if (this.hasType(colIdx, [_const.FORMATTED_NUMBER])) {\n\t var colType = this.colTypes[colIdx];\n\t if (colType.hasOwnProperty('decimal')) {\n\t decimal = colType.decimal;\n\t }\n\t }\n\t // Convert to number anyways to auto-resolve type in case not\n\t // defined by configuration\n\t numData = Number(cellValue) || (0, _number.parse)(cellValue, decimal);\n\t\n\t // first checks if there is any operator (<,>,<=,>=,!,*,=,{,},\n\t // rgx:)\n\t // lower equal\n\t if (hasLE) {\n\t occurence = numData <= (0, _number.parse)(term.replace(reLe, ''), decimal);\n\t }\n\t //greater equal\n\t else if (hasGE) {\n\t occurence = numData >= (0, _number.parse)(term.replace(reGe, ''), decimal);\n\t }\n\t //lower\n\t else if (hasLO) {\n\t occurence = numData < (0, _number.parse)(term.replace(reL, ''), decimal);\n\t }\n\t //greater\n\t else if (hasGR) {\n\t occurence = numData > (0, _number.parse)(term.replace(reG, ''), decimal);\n\t }\n\t //different\n\t else if (hasDF) {\n\t occurence = (0, _string.contains)(term.replace(reD, ''), cellValue, false, this.caseSensitive) ? false : true;\n\t }\n\t //like\n\t else if (hasLK) {\n\t occurence = (0, _string.contains)(term.replace(reLk, ''), cellValue, false, this.caseSensitive);\n\t }\n\t //equal\n\t else if (hasEQ) {\n\t occurence = (0, _string.contains)(term.replace(reEq, ''), cellValue, true, this.caseSensitive);\n\t }\n\t //starts with\n\t else if (hasST) {\n\t occurence = cellValue.indexOf(term.replace(reSt, '')) === 0 ? true : false;\n\t }\n\t //ends with\n\t else if (hasEN) {\n\t var searchArg = term.replace(reEn, '');\n\t occurence = cellValue.lastIndexOf(searchArg, cellValue.length - 1) === cellValue.length - 1 - (searchArg.length - 1) && cellValue.lastIndexOf(searchArg, cellValue.length - 1) > -1 ? true : false;\n\t }\n\t //empty\n\t else if (hasEM) {\n\t occurence = (0, _string.isEmpty)(cellValue);\n\t }\n\t //non-empty\n\t else if (hasNM) {\n\t occurence = !(0, _string.isEmpty)(cellValue);\n\t }\n\t //regexp\n\t else if (hasRE) {\n\t //in case regexp throws\n\t try {\n\t //operator is removed\n\t var srchArg = term.replace(reRe, '');\n\t var rgx = new RegExp(srchArg);\n\t occurence = rgx.test(cellValue);\n\t } catch (ex) {\n\t occurence = false;\n\t }\n\t } else {\n\t // If numeric type data, perform a strict equality test and\n\t // fallback to unformatted number string comparison\n\t if (numData && this.hasType(colIdx, [_const.NUMBER, _const.FORMATTED_NUMBER]) && !this.singleSearchFlt) {\n\t // parseNb can return 0 for strings which are not\n\t // formatted numbers, in that case return the original\n\t // string. TODO: handle this in parseNb\n\t term = (0, _number.parse)(term, decimal) || term;\n\t occurence = numData === term || (0, _string.contains)(term.toString(), numData.toString(), this.isExactMatch(colIdx), this.caseSensitive);\n\t } else {\n\t // Finally test search term is contained in cell data\n\t occurence = (0, _string.contains)(term, cellValue, this.isExactMatch(colIdx), this.caseSensitive, this.ignoresDiacritics(colIdx));\n\t }\n\t }\n\t } //else\n\t\n\t return occurence;\n\t };\n\t\n\t /**\n\t * Return the data of a specified column\n\t * @param {Number} colIndex Column index\n\t * @param {Boolean} [includeHeaders=false] Include headers row\n\t * @param {Boolean} [typed=true] Return a typed value\n\t * @param {Array} [exclude=[]] List of row indexes to be excluded\n\t * @return {Array} Flat list of data for a column\n\t */\n\t\n\t\n\t TableFilter.prototype.getColValues = function getColValues(colIndex) {\n\t var includeHeaders = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t var typed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\t var exclude = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n\t\n\t var row = this.tbl.rows;\n\t var nbRows = this.getRowsNb(true);\n\t var colValues = [];\n\t var getContent = typed ? this.getCellData.bind(this) : this.getCellValue.bind(this);\n\t\n\t if (includeHeaders) {\n\t colValues.push(this.getHeadersText()[colIndex]);\n\t }\n\t\n\t for (var i = this.refRow; i < nbRows; i++) {\n\t var isExludedRow = false;\n\t // checks if current row index appears in exclude array\n\t if (exclude.length > 0) {\n\t isExludedRow = exclude.indexOf(i) !== -1;\n\t }\n\t var cell = row[i].cells,\n\t nchilds = cell.length;\n\t\n\t // checks if row has exact cell # and is not excluded\n\t if (nchilds === this.nbCells && !isExludedRow) {\n\t // this loop retrieves cell data\n\t for (var j = 0; j < nchilds; j++) {\n\t if (j !== colIndex) {\n\t continue;\n\t }\n\t var data = getContent(cell[j]);\n\t colValues.push(data);\n\t }\n\t }\n\t }\n\t return colValues;\n\t };\n\t\n\t /**\n\t * Return the filter's value of a specified column\n\t * @param {Number} index Column index\n\t * @return {String} Filter value\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilterValue = function getFilterValue(index) {\n\t if (!this.fltGrid) {\n\t return;\n\t }\n\t var fltValue = '';\n\t var flt = this.getFilterElement(index);\n\t if (!flt) {\n\t return fltValue;\n\t }\n\t\n\t var fltColType = this.getFilterType(index);\n\t if (fltColType !== _const.MULTIPLE && fltColType !== _const.CHECKLIST) {\n\t fltValue = flt.value;\n\t }\n\t //mutiple select\n\t else if (fltColType === _const.MULTIPLE) {\n\t fltValue = this.feature('dropdown').getValues(index);\n\t }\n\t //checklist\n\t else if (fltColType === _const.CHECKLIST) {\n\t fltValue = this.feature('checkList').getValues(index);\n\t }\n\t //return an empty string if collection is empty or contains a single\n\t //empty string\n\t if ((0, _types.isArray)(fltValue) && fltValue.length === 0 || fltValue.length === 1 && fltValue[0] === '') {\n\t fltValue = '';\n\t }\n\t\n\t return fltValue;\n\t };\n\t\n\t /**\n\t * Return the filters' values\n\t * @return {Array} List of filters' values\n\t */\n\t\n\t\n\t TableFilter.prototype.getFiltersValue = function getFiltersValue() {\n\t if (!this.fltGrid) {\n\t return;\n\t }\n\t var searchArgs = [];\n\t for (var i = 0, len = this.fltIds.length; i < len; i++) {\n\t var fltValue = this.getFilterValue(i);\n\t if ((0, _types.isArray)(fltValue)) {\n\t searchArgs.push(fltValue);\n\t } else {\n\t searchArgs.push((0, _string.trim)(fltValue));\n\t }\n\t }\n\t return searchArgs;\n\t };\n\t\n\t /**\n\t * Return the ID of a specified column's filter\n\t * @param {Number} index Column's index\n\t * @return {String} ID of the filter element\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilterId = function getFilterId(index) {\n\t if (!this.fltGrid) {\n\t return;\n\t }\n\t return this.fltIds[index];\n\t };\n\t\n\t /**\n\t * Return the list of ids of filters matching a specified type.\n\t * Note: hidden filters are also returned\n\t *\n\t * @param {String} type Filter type string ('input', 'select', 'multiple',\n\t * 'checklist')\n\t * @param {Boolean} bool If true returns columns indexes instead of IDs\n\t * @return {[type]} List of element IDs or column indexes\n\t */\n\t\n\t\n\t TableFilter.prototype.getFiltersByType = function getFiltersByType(type, bool) {\n\t if (!this.fltGrid) {\n\t return;\n\t }\n\t var arr = [];\n\t for (var i = 0, len = this.fltIds.length; i < len; i++) {\n\t var fltType = this.getFilterType(i);\n\t if (fltType === type.toLowerCase()) {\n\t var a = bool ? i : this.fltIds[i];\n\t arr.push(a);\n\t }\n\t }\n\t return arr;\n\t };\n\t\n\t /**\n\t * Return the filter's DOM element for a given column\n\t * @param {Number} index Column's index\n\t * @return {DOMElement}\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilterElement = function getFilterElement(index) {\n\t var fltId = this.fltIds[index];\n\t return (0, _dom.elm)(fltId);\n\t };\n\t\n\t /**\n\t * Return the number of cells for a given row index\n\t * @param {Number} rowIndex Index of the row\n\t * @return {Number} Number of cells\n\t */\n\t\n\t\n\t TableFilter.prototype.getCellsNb = function getCellsNb() {\n\t var rowIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n\t\n\t var tr = this.tbl.rows[rowIndex >= 0 ? rowIndex : 0];\n\t return tr ? tr.cells.length : 0;\n\t };\n\t\n\t /**\n\t * Return the number of filterable rows starting from reference row if\n\t * defined\n\t * @param {Boolean} includeHeaders Include the headers row\n\t * @return {Number} Number of filterable rows\n\t */\n\t\n\t\n\t TableFilter.prototype.getRowsNb = function getRowsNb(includeHeaders) {\n\t var s = (0, _types.isUndef)(this.refRow) ? 0 : this.refRow;\n\t var ntrs = this.tbl.rows.length;\n\t if (includeHeaders) {\n\t s = 0;\n\t }\n\t return parseInt(ntrs - s, 10);\n\t };\n\t\n\t /**\n\t * Return the text content of a given cell\n\t * @param {DOMElement} Cell's DOM element\n\t * @returns {String}\n\t */\n\t\n\t\n\t TableFilter.prototype.getCellValue = function getCellValue(cell) {\n\t var idx = cell.cellIndex;\n\t //CallcustomCellData callback\n\t if (this.customCellDataCols.indexOf(idx) !== -1) {\n\t return this.customCellData(this, cell, idx);\n\t } else {\n\t return (0, _dom.getText)(cell);\n\t }\n\t };\n\t\n\t /**\n\t * Return the typed data of a given cell based on the column type definition\n\t * @param {DOMElement} cell Cell's DOM element\n\t * @return {String|Number|Date}\n\t */\n\t\n\t\n\t TableFilter.prototype.getCellData = function getCellData(cell) {\n\t var colIndex = cell.cellIndex;\n\t var value = this.getCellValue(cell);\n\t\n\t if (this.hasType(colIndex, [_const.FORMATTED_NUMBER])) {\n\t var decimal = this.decimalSeparator;\n\t var colType = this.colTypes[colIndex];\n\t if (colType.hasOwnProperty('decimal')) {\n\t decimal = colType.decimal;\n\t }\n\t return (0, _number.parse)(value, decimal);\n\t } else if (this.hasType(colIndex, [_const.NUMBER])) {\n\t return Number(value);\n\t } else if (this.hasType(colIndex, [_const.DATE])) {\n\t var dateType = this.Mod.dateType;\n\t var locale = dateType.getOptions(colIndex).locale || this.locale;\n\t return dateType.parse(value, locale);\n\t }\n\t\n\t return value;\n\t };\n\t\n\t /**\n\t * Return the table data with following format:\n\t * [\n\t * [rowIndex, [value0, value1...]],\n\t * [rowIndex, [value0, value1...]]\n\t * ]\n\t * @param {Boolean} [includeHeaders=false] Include headers row\n\t * @param {Boolean} [excludeHiddenCols=false] Exclude hidden columns\n\t * @param {Boolean} [typed=false] Return typed value\n\t * @return {Array}\n\t *\n\t * TODO: provide an API returning data in JSON format\n\t */\n\t\n\t\n\t TableFilter.prototype.getTableData = function getTableData() {\n\t var includeHeaders = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\t var excludeHiddenCols = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t var typed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\t\n\t var rows = this.tbl.rows;\n\t var nbRows = this.getRowsNb(true);\n\t var tblData = [];\n\t var getContent = typed ? this.getCellData.bind(this) : this.getCellValue.bind(this);\n\t\n\t if (includeHeaders) {\n\t var headers = this.getHeadersText(excludeHiddenCols);\n\t tblData.push([this.getHeadersRowIndex(), headers]);\n\t }\n\t for (var k = this.refRow; k < nbRows; k++) {\n\t var rowData = [k, []];\n\t var cells = rows[k].cells;\n\t for (var j = 0, len = cells.length; j < len; j++) {\n\t if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n\t if (this.extension('colsVisibility').isColHidden(j)) {\n\t continue;\n\t }\n\t }\n\t var cellValue = getContent(cells[j]);\n\t rowData[1].push(cellValue);\n\t }\n\t tblData.push(rowData);\n\t }\n\t return tblData;\n\t };\n\t\n\t /**\n\t * Return the filtered data with following format:\n\t * [\n\t * [rowIndex, [value0, value1...]],\n\t * [rowIndex, [value0, value1...]]\n\t * ]\n\t * @param {Boolean} [includeHeaders=false] Include headers row\n\t * @param {Boolean} [excludeHiddenCols=false] Exclude hidden columns\n\t * @param {Boolean} [typed=false] Return typed value\n\t * @return {Array}\n\t *\n\t * TODO: provide an API returning data in JSON format\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilteredData = function getFilteredData() {\n\t var includeHeaders = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\t var excludeHiddenCols = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t var typed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\t\n\t if (!this.validRowsIndex) {\n\t return [];\n\t }\n\t var rows = this.tbl.rows,\n\t filteredData = [];\n\t var getContent = typed ? this.getCellData.bind(this) : this.getCellValue.bind(this);\n\t\n\t if (includeHeaders) {\n\t var headers = this.getHeadersText(excludeHiddenCols);\n\t filteredData.push([this.getHeadersRowIndex(), headers]);\n\t }\n\t\n\t var validRows = this.getValidRows(true);\n\t for (var i = 0; i < validRows.length; i++) {\n\t var rData = [this.validRowsIndex[i], []],\n\t cells = rows[this.validRowsIndex[i]].cells;\n\t for (var k = 0; k < cells.length; k++) {\n\t if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n\t if (this.extension('colsVisibility').isColHidden(k)) {\n\t continue;\n\t }\n\t }\n\t var cellValue = getContent(cells[k]);\n\t rData[1].push(cellValue);\n\t }\n\t filteredData.push(rData);\n\t }\n\t return filteredData;\n\t };\n\t\n\t /**\n\t * Return the filtered data for a given column index\n\t * @param {Number} colIndex Colmun's index\n\t * @param {Boolean} [includeHeaders=false] Include headers row\n\t * @param {Boolean} [typed=false] Return typed value\n\t * @param {Array} [exclude=[]] List of row indexes to be excluded\n\t * @param {Boolean} [visible=true] Return only filtered and visible data\n\t * (relevant for paging)\n\t * @return {Array} Flat list of values ['val0','val1','val2'...]\n\t *\n\t * TODO: provide an API returning data in JSON format\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilteredDataCol = function getFilteredDataCol(colIndex) {\n\t var includeHeaders = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t var typed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\t\n\t var _this7 = this;\n\t\n\t var exclude = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n\t var visible = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n\t\n\t if ((0, _types.isUndef)(colIndex)) {\n\t return [];\n\t }\n\t\n\t var rows = this.tbl.rows;\n\t var getContent = typed ? this.getCellData.bind(this) : this.getCellValue.bind(this);\n\t\n\t // ensure valid rows index do not contain excluded rows and row is\n\t // displayed\n\t var validRows = this.getValidRows(true).filter(function (rowIdx) {\n\t return exclude.indexOf(rowIdx) === -1 && (visible ? _this7.getRowDisplay(rows[rowIdx]) !== 'none' : true);\n\t });\n\t\n\t // convert column value to expected type if necessary\n\t var validColValues = validRows.map(function (rowIdx) {\n\t return getContent(rows[rowIdx].cells[colIndex]);\n\t });\n\t\n\t if (includeHeaders) {\n\t validColValues.unshift(this.getHeadersText()[colIndex]);\n\t }\n\t\n\t return validColValues;\n\t };\n\t\n\t /**\n\t * Get the display value of a row\n\t * @param {HTMLTableRowElement} row DOM element of the row\n\t * @return {String} Usually 'none' or ''\n\t */\n\t\n\t\n\t TableFilter.prototype.getRowDisplay = function getRowDisplay(row) {\n\t return row.style.display;\n\t };\n\t\n\t /**\n\t * Validate/invalidate row by setting the 'validRow' attribute on the row\n\t * @param {Number} rowIndex Index of the row\n\t * @param {Boolean} isValid\n\t */\n\t\n\t\n\t TableFilter.prototype.validateRow = function validateRow(rowIndex, isValid) {\n\t var row = this.tbl.rows[rowIndex];\n\t if (!row || typeof isValid !== 'boolean') {\n\t return;\n\t }\n\t\n\t // always visible rows are valid\n\t if (this.hasVisibleRows && this.visibleRows.indexOf(rowIndex) !== -1) {\n\t isValid = true;\n\t }\n\t\n\t var displayFlag = isValid ? '' : _const.NONE,\n\t validFlag = isValid ? 'true' : 'false';\n\t row.style.display = displayFlag;\n\t\n\t if (this.paging) {\n\t row.setAttribute('validRow', validFlag);\n\t }\n\t\n\t if (isValid) {\n\t if (this.validRowsIndex.indexOf(rowIndex) === -1) {\n\t this.validRowsIndex.push(rowIndex);\n\t }\n\t\n\t this.onRowValidated(this, rowIndex);\n\t\n\t this.emitter.emit('row-validated', this, rowIndex);\n\t }\n\t };\n\t\n\t /**\n\t * Validate all filterable rows\n\t */\n\t\n\t\n\t TableFilter.prototype.validateAllRows = function validateAllRows() {\n\t if (!this.initialized) {\n\t return;\n\t }\n\t this.validRowsIndex = [];\n\t for (var k = this.refRow; k < this.nbFilterableRows; k++) {\n\t this.validateRow(k, true);\n\t }\n\t };\n\t\n\t /**\n\t * Set search value to a given filter\n\t * @param {Number} index Column's index\n\t * @param {String or Array} query searcharg Search term\n\t */\n\t\n\t\n\t TableFilter.prototype.setFilterValue = function setFilterValue(index) {\n\t var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n\t\n\t if (!this.fltGrid) {\n\t return;\n\t }\n\t var slc = this.getFilterElement(index),\n\t fltColType = this.getFilterType(index);\n\t\n\t if (fltColType !== _const.MULTIPLE && fltColType !== _const.CHECKLIST) {\n\t if (this.loadFltOnDemand && !this.initialized) {\n\t this.emitter.emit('build-select-filter', this, index, this.linkedFilters, this.isExternalFlt);\n\t }\n\t slc.value = query;\n\t }\n\t //multiple selects\n\t else if (fltColType === _const.MULTIPLE) {\n\t var values = (0, _types.isArray)(query) ? query : query.split(' ' + this.orOperator + ' ');\n\t\n\t if (this.loadFltOnDemand && !this.initialized) {\n\t this.emitter.emit('build-select-filter', this, index, this.linkedFilters, this.isExternalFlt);\n\t }\n\t\n\t this.emitter.emit('select-options', this, index, values);\n\t }\n\t //checklist\n\t else if (fltColType === _const.CHECKLIST) {\n\t var _values = [];\n\t if (this.loadFltOnDemand && !this.initialized) {\n\t this.emitter.emit('build-checklist-filter', this, index, this.linkedFilters);\n\t }\n\t if ((0, _types.isArray)(query)) {\n\t _values = query;\n\t } else {\n\t query = (0, _string.matchCase)(query, this.caseSensitive);\n\t _values = query.split(' ' + this.orOperator + ' ');\n\t }\n\t\n\t this.emitter.emit('select-checklist-options', this, index, _values);\n\t }\n\t };\n\t\n\t /**\n\t * Set them columns' widths as per configuration\n\t * @param {Element} tbl DOM element\n\t */\n\t\n\t\n\t TableFilter.prototype.setColWidths = function setColWidths(tbl) {\n\t if (!this.hasColWidths) {\n\t return;\n\t }\n\t tbl = tbl || this.tbl;\n\t\n\t var nbCols = this.nbCells;\n\t var colWidths = this.colWidths;\n\t var colTags = (0, _dom.tag)(tbl, 'col');\n\t var tblHasColTag = colTags.length > 0;\n\t var frag = !tblHasColTag ? doc.createDocumentFragment() : null;\n\t for (var k = 0; k < nbCols; k++) {\n\t var col = void 0;\n\t if (tblHasColTag) {\n\t col = colTags[k];\n\t } else {\n\t col = (0, _dom.createElm)('col');\n\t frag.appendChild(col);\n\t }\n\t col.style.width = colWidths[k];\n\t }\n\t if (!tblHasColTag) {\n\t tbl.insertBefore(frag, tbl.firstChild);\n\t }\n\t };\n\t\n\t /**\n\t * Makes defined rows always visible\n\t */\n\t\n\t\n\t TableFilter.prototype.enforceVisibility = function enforceVisibility() {\n\t if (!this.hasVisibleRows) {\n\t return;\n\t }\n\t var nbRows = this.getRowsNb(true);\n\t for (var i = 0, len = this.visibleRows.length; i < len; i++) {\n\t var row = this.visibleRows[i];\n\t //row index cannot be > nrows\n\t if (row <= nbRows) {\n\t this.validateRow(row, true);\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Clear all the filters' values\n\t */\n\t\n\t\n\t TableFilter.prototype.clearFilters = function clearFilters() {\n\t if (!this.fltGrid) {\n\t return;\n\t }\n\t\n\t this.emitter.emit('before-clearing-filters', this);\n\t this.onBeforeReset(this, this.getFiltersValue());\n\t\n\t for (var i = 0, len = this.fltIds.length; i < len; i++) {\n\t this.setFilterValue(i, '');\n\t }\n\t\n\t this.filter();\n\t\n\t this.onAfterReset(this);\n\t this.emitter.emit('after-clearing-filters', this);\n\t };\n\t\n\t /**\n\t * Clears filtered columns visual indicator (background color)\n\t */\n\t\n\t\n\t TableFilter.prototype.clearActiveColumns = function clearActiveColumns() {\n\t for (var i = 0, len = this.getCellsNb(this.headersRow); i < len; i++) {\n\t (0, _dom.removeClass)(this.getHeaderElement(i), this.activeColumnsCssClass);\n\t }\n\t };\n\t\n\t /**\n\t * Mark currently filtered column\n\t * @param {Number} colIndex Column index\n\t */\n\t\n\t\n\t TableFilter.prototype.markActiveColumn = function markActiveColumn(colIndex) {\n\t var header = this.getHeaderElement(colIndex);\n\t if ((0, _dom.hasClass)(header, this.activeColumnsCssClass)) {\n\t return;\n\t }\n\t this.onBeforeActiveColumn(this, colIndex);\n\t\n\t (0, _dom.addClass)(header, this.activeColumnsCssClass);\n\t\n\t this.onAfterActiveColumn(this, colIndex);\n\t };\n\t\n\t /**\n\t * Return the ID of the current active filter\n\t * @returns {String}\n\t */\n\t\n\t\n\t TableFilter.prototype.getActiveFilterId = function getActiveFilterId() {\n\t return this.activeFilterId;\n\t };\n\t\n\t /**\n\t * Set the ID of the current active filter\n\t * @param {String} filterId Element ID\n\t */\n\t\n\t\n\t TableFilter.prototype.setActiveFilterId = function setActiveFilterId(filterId) {\n\t this.activeFilterId = filterId;\n\t };\n\t\n\t /**\n\t * Return the column index for a given filter ID\n\t * @param {string} [filterId=''] Filter ID\n\t * @returns {Number} Column index\n\t */\n\t\n\t\n\t TableFilter.prototype.getColumnIndexFromFilterId = function getColumnIndexFromFilterId() {\n\t var filterId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\t\n\t var idx = filterId.split('_')[0];\n\t idx = idx.split(this.prfxFlt)[1];\n\t return parseInt(idx, 10);\n\t };\n\t\n\t /**\n\t * Builds filter element ID for a given column index\n\t * @param {any} colIndex\n\t * @returns {String} Filter element ID string\n\t * @private\n\t */\n\t\n\t\n\t TableFilter.prototype.buildFilterId = function buildFilterId(colIndex) {\n\t return '' + this.prfxFlt + colIndex + '_' + this.id;\n\t };\n\t\n\t /**\n\t * Make specified column's filter active\n\t * @param colIndex Index of a column\n\t */\n\t\n\t\n\t TableFilter.prototype.activateFilter = function activateFilter(colIndex) {\n\t if ((0, _types.isUndef)(colIndex)) {\n\t return;\n\t }\n\t this.setActiveFilterId(this.getFilterId(colIndex));\n\t };\n\t\n\t /**\n\t * Refresh the filters subject to linking ('select', 'multiple',\n\t * 'checklist' type)\n\t */\n\t\n\t\n\t TableFilter.prototype.linkFilters = function linkFilters() {\n\t if (!this.linkedFilters || !this.activeFilterId) {\n\t return;\n\t }\n\t var slcA1 = this.getFiltersByType(_const.SELECT, true),\n\t slcA2 = this.getFiltersByType(_const.MULTIPLE, true),\n\t slcA3 = this.getFiltersByType(_const.CHECKLIST, true),\n\t slcIndex = slcA1.concat(slcA2);\n\t slcIndex = slcIndex.concat(slcA3);\n\t\n\t var activeIdx = this.getColumnIndexFromFilterId(this.activeFilterId);\n\t\n\t for (var i = 0, len = slcIndex.length; i < len; i++) {\n\t var colIdx = slcIndex[i];\n\t var curSlc = (0, _dom.elm)(this.fltIds[colIdx]);\n\t var slcSelectedValue = this.getFilterValue(colIdx);\n\t\n\t // Welcome to cyclomatic complexity hell :)\n\t // TODO: simplify/refactor if statement\n\t if (activeIdx !== colIdx || this.paging && slcA1.indexOf(colIdx) !== -1 && activeIdx === colIdx || !this.paging && (slcA3.indexOf(colIdx) !== -1 || slcA2.indexOf(colIdx) !== -1) || slcSelectedValue === this.getClearFilterText(colIdx)) {\n\t\n\t //1st option needs to be inserted\n\t if (this.loadFltOnDemand) {\n\t var opt0 = (0, _dom.createOpt)(this.getClearFilterText(colIdx), '');\n\t curSlc.innerHTML = '';\n\t curSlc.appendChild(opt0);\n\t }\n\t\n\t if (slcA3.indexOf(colIdx) !== -1) {\n\t this.emitter.emit('build-checklist-filter', this, colIdx, true);\n\t } else {\n\t this.emitter.emit('build-select-filter', this, colIdx, true);\n\t }\n\t\n\t this.setFilterValue(colIdx, slcSelectedValue);\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Determines if passed filter column implements exact query match\n\t * @param {Number} colIndex Column index\n\t * @return {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.isExactMatch = function isExactMatch(colIndex) {\n\t var fltType = this.getFilterType(colIndex);\n\t return this.exactMatchByCol[colIndex] || this.exactMatch || fltType !== _const.INPUT;\n\t };\n\t\n\t /**\n\t * Checks if passed row is valid\n\t * @param {Number} rowIndex Row index\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.isRowValid = function isRowValid(rowIndex) {\n\t return this.getValidRows().indexOf(rowIndex) !== -1;\n\t };\n\t\n\t /**\n\t * Checks if passed row is visible\n\t * @param {Number} rowIndex Row index\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.isRowDisplayed = function isRowDisplayed(rowIndex) {\n\t var row = this.tbl.rows[rowIndex];\n\t return this.getRowDisplay(row) === '';\n\t };\n\t\n\t /**\n\t * Checks if specified column filter ignores diacritics.\n\t * Note this is only applicable to input filter types.\n\t * @param {Number} colIndex Column index\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.ignoresDiacritics = function ignoresDiacritics(colIndex) {\n\t var ignoreDiac = this.ignoreDiacritics;\n\t if ((0, _types.isArray)(ignoreDiac)) {\n\t return ignoreDiac[colIndex];\n\t }\n\t return Boolean(ignoreDiac);\n\t };\n\t\n\t /**\n\t * Returns clear all text for specified filter column\n\t * @param {Number} colIndex Column index\n\t * @returns {String}\n\t */\n\t\n\t\n\t TableFilter.prototype.getClearFilterText = function getClearFilterText(colIndex) {\n\t var clearText = this.clearFilterText;\n\t if ((0, _types.isArray)(clearText)) {\n\t return clearText[colIndex];\n\t }\n\t return clearText;\n\t };\n\t\n\t /**\n\t * Check if passed script or stylesheet is already imported\n\t * @param {String} filePath Ressource path\n\t * @param {String} type Possible values: 'script' or 'link'\n\t * @return {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.isImported = function isImported(filePath) {\n\t var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'script';\n\t\n\t var imported = false,\n\t attr = type === 'script' ? 'src' : 'href',\n\t files = (0, _dom.tag)(doc, type);\n\t for (var i = 0, len = files.length; i < len; i++) {\n\t if ((0, _types.isUndef)(files[i][attr])) {\n\t continue;\n\t }\n\t if (files[i][attr].match(filePath)) {\n\t imported = true;\n\t break;\n\t }\n\t }\n\t return imported;\n\t };\n\t\n\t /**\n\t * Import script or stylesheet\n\t * @param {String} fileId Ressource ID\n\t * @param {String} filePath Ressource path\n\t * @param {Function} callback Callback\n\t * @param {String} type Possible values: 'script' or 'link'\n\t */\n\t\n\t\n\t TableFilter.prototype.import = function _import(fileId, filePath, callback) {\n\t var _this8 = this;\n\t\n\t var type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'script';\n\t\n\t if (this.isImported(filePath, type)) {\n\t return;\n\t }\n\t var o = this,\n\t isLoaded = false,\n\t file = void 0,\n\t head = (0, _dom.tag)(doc, 'head')[0];\n\t\n\t if (type.toLowerCase() === 'link') {\n\t file = (0, _dom.createElm)('link', ['id', fileId], ['type', 'text/css'], ['rel', 'stylesheet'], ['href', filePath]);\n\t } else {\n\t file = (0, _dom.createElm)('script', ['id', fileId], ['type', 'text/javascript'], ['src', filePath]);\n\t }\n\t\n\t //Browser <> IE onload event works only for scripts, not for stylesheets\n\t file.onload = file.onreadystatechange = function () {\n\t if (!isLoaded && (!_this8.readyState || _this8.readyState === 'loaded' || _this8.readyState === 'complete')) {\n\t isLoaded = true;\n\t if (typeof callback === 'function') {\n\t callback.call(null, o);\n\t }\n\t }\n\t };\n\t file.onerror = function () {\n\t throw new Error('TableFilter could not load: ' + filePath);\n\t };\n\t head.appendChild(file);\n\t };\n\t\n\t /**\n\t * Check if table has filters grid\n\t * @return {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.isInitialized = function isInitialized() {\n\t return this.initialized;\n\t };\n\t\n\t /**\n\t * Get list of filter IDs\n\t * @return {[type]} [description]\n\t */\n\t\n\t\n\t TableFilter.prototype.getFiltersId = function getFiltersId() {\n\t return this.fltIds || [];\n\t };\n\t\n\t /**\n\t * Get filtered (valid) rows indexes\n\t * @param {Boolean} reCalc Force calculation of filtered rows list\n\t * @return {Array} List of row indexes\n\t */\n\t\n\t\n\t TableFilter.prototype.getValidRows = function getValidRows(reCalc) {\n\t if (!reCalc) {\n\t return this.validRowsIndex;\n\t }\n\t\n\t var nbRows = this.getRowsNb(true);\n\t this.validRowsIndex = [];\n\t for (var k = this.refRow; k < nbRows; k++) {\n\t var r = this.tbl.rows[k];\n\t if (!this.paging) {\n\t if (this.getRowDisplay(r) !== _const.NONE) {\n\t this.validRowsIndex.push(r.rowIndex);\n\t }\n\t } else {\n\t if (r.getAttribute('validRow') === 'true' || r.getAttribute('validRow') === null) {\n\t this.validRowsIndex.push(r.rowIndex);\n\t }\n\t }\n\t }\n\t return this.validRowsIndex;\n\t };\n\t\n\t /**\n\t * Get the index of the row containing the filters\n\t * @return {Number}\n\t */\n\t\n\t\n\t TableFilter.prototype.getFiltersRowIndex = function getFiltersRowIndex() {\n\t return this.filtersRowIndex;\n\t };\n\t\n\t /**\n\t * Get the index of the headers row\n\t * @return {Number}\n\t */\n\t\n\t\n\t TableFilter.prototype.getHeadersRowIndex = function getHeadersRowIndex() {\n\t return this.headersRow;\n\t };\n\t\n\t /**\n\t * Get the row index from where the filtering process start (1st filterable\n\t * row)\n\t * @return {Number}\n\t */\n\t\n\t\n\t TableFilter.prototype.getStartRowIndex = function getStartRowIndex() {\n\t return this.refRow;\n\t };\n\t\n\t /**\n\t * Get the index of the last row\n\t * @return {Number}\n\t */\n\t\n\t\n\t TableFilter.prototype.getLastRowIndex = function getLastRowIndex() {\n\t var nbRows = this.getRowsNb(true);\n\t return nbRows - 1;\n\t };\n\t\n\t /**\n\t * Determine whether the specified column has one of the passed types\n\t * @param {Number} colIndex Column index\n\t * @param {Array} [types=[]] List of column types\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t TableFilter.prototype.hasType = function hasType(colIndex) {\n\t var types = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\t\n\t if (!this.hasColTypes) {\n\t return false;\n\t }\n\t var colType = this.colTypes[colIndex];\n\t if ((0, _types.isObj)(colType)) {\n\t colType = colType.type;\n\t }\n\t return types.indexOf(colType) !== -1;\n\t };\n\t\n\t /**\n\t * Get the header DOM element for a given column index\n\t * @param {Number} colIndex Column index\n\t * @return {Element}\n\t */\n\t\n\t\n\t TableFilter.prototype.getHeaderElement = function getHeaderElement(colIndex) {\n\t var table = this.gridLayout ? this.Mod.gridLayout.headTbl : this.tbl;\n\t var tHead = (0, _dom.tag)(table, 'thead');\n\t var headersRow = this.headersRow;\n\t var header = void 0;\n\t for (var i = 0; i < this.nbCells; i++) {\n\t if (i !== colIndex) {\n\t continue;\n\t }\n\t if (tHead.length === 0) {\n\t header = table.rows[headersRow].cells[i];\n\t }\n\t if (tHead.length === 1) {\n\t header = tHead[0].rows[headersRow].cells[i];\n\t }\n\t break;\n\t }\n\t return header;\n\t };\n\t\n\t /**\n\t * Return the list of headers' text\n\t * @param {Boolean} excludeHiddenCols Optional: exclude hidden columns\n\t * @return {Array} list of headers' text\n\t */\n\t\n\t\n\t TableFilter.prototype.getHeadersText = function getHeadersText() {\n\t var excludeHiddenCols = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\t\n\t var headers = [];\n\t for (var j = 0; j < this.nbCells; j++) {\n\t if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n\t if (this.extension('colsVisibility').isColHidden(j)) {\n\t continue;\n\t }\n\t }\n\t var header = this.getHeaderElement(j);\n\t var headerText = (0, _dom.getFirstTextNode)(header);\n\t headers.push(headerText);\n\t }\n\t return headers;\n\t };\n\t\n\t /**\n\t * Return the filter type for a specified column\n\t * @param {Number} colIndex Column's index\n\t * @return {String}\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilterType = function getFilterType(colIndex) {\n\t var colType = this.cfg['col_' + colIndex];\n\t return !colType ? _const.INPUT : colType.toLowerCase();\n\t };\n\t\n\t /**\n\t * Get the total number of filterable rows\n\t * @return {Number}\n\t */\n\t\n\t\n\t TableFilter.prototype.getFilterableRowsNb = function getFilterableRowsNb() {\n\t return this.getRowsNb(false);\n\t };\n\t\n\t /**\n\t * Return the total number of valid rows\n\t * @param {Boolean} [reCalc=false] Forces calculation of filtered rows\n\t * @returns {Number}\n\t */\n\t\n\t\n\t TableFilter.prototype.getValidRowsNb = function getValidRowsNb() {\n\t var reCalc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\t\n\t return this.getValidRows(reCalc).length;\n\t };\n\t\n\t /**\n\t * Get the configuration object (literal object)\n\t * @return {Object}\n\t */\n\t\n\t\n\t TableFilter.prototype.config = function config() {\n\t return this.cfg;\n\t };\n\t\n\t return TableFilter;\n\t}();\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.keyCode = exports.targetEvt = exports.cancelEvt = exports.stopEvt = exports.removeEvt = exports.addEvt = undefined;\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\t/**\r\n\t * DOM event utilities\r\n\t */\n\t\n\t/**\r\n\t * Add event handler for specified event on passed element\r\n\t *\r\n\t * @param {DOMElement} obj Element\r\n\t * @param {String} type Event type\r\n\t * @param {Function} Handler\r\n\t * @param {Boolean} capture Specifiy whether the event should be executed in\r\n\t * the capturing or in the bubbling phase\r\n\t */\n\tvar addEvt = exports.addEvt = function addEvt(obj, type, func, capture) {\n\t if (obj.addEventListener) {\n\t obj.addEventListener(type, func, capture);\n\t } else if (obj.attachEvent) {\n\t obj.attachEvent('on' + type, func);\n\t } else {\n\t obj['on' + type] = func;\n\t }\n\t};\n\t\n\t/**\r\n\t * Remove event handler for specified event on passed element\r\n\t *\r\n\t * @param {DOMElement} obj Element\r\n\t * @param {String} type Event type\r\n\t * @param {Function} Handler\r\n\t * @param {Boolean} capture Specifiy whether the event should be executed in\r\n\t * the capturing or in the bubbling phase\r\n\t */\n\tvar removeEvt = exports.removeEvt = function removeEvt(obj, type, func, capture) {\n\t if (obj.removeEventListener) {\n\t obj.removeEventListener(type, func, capture);\n\t } else if (obj.detachEvent) {\n\t obj.detachEvent('on' + type, func);\n\t } else {\n\t obj['on' + type] = null;\n\t }\n\t};\n\t\n\t/**\r\n\t * Prevents further propagation of the current event in the bubbling phase\r\n\t *\r\n\t * @param {Event} evt Event on the DOM\r\n\t */\n\tvar stopEvt = exports.stopEvt = function stopEvt(evt) {\n\t if (!evt) {\n\t evt = _root.root.event;\n\t }\n\t if (evt.stopPropagation) {\n\t evt.stopPropagation();\n\t } else {\n\t evt.cancelBubble = true;\n\t }\n\t};\n\t\n\t/**\r\n\t * Cancels the event if it is cancelable, without stopping further\r\n\t * propagation of the event.\r\n\t *\r\n\t * @param {Event} evt Event on the DOM\r\n\t */\n\tvar cancelEvt = exports.cancelEvt = function cancelEvt(evt) {\n\t if (!evt) {\n\t evt = _root.root.event;\n\t }\n\t if (evt.preventDefault) {\n\t evt.preventDefault();\n\t } else {\n\t evt.returnValue = false;\n\t }\n\t};\n\t\n\t/**\r\n\t * Reference to the object that dispatched the event\r\n\t *\r\n\t * @param {Event} evt Event on the DOM\r\n\t * @returns {DOMElement}\r\n\t */\n\tvar targetEvt = exports.targetEvt = function targetEvt(evt) {\n\t if (!evt) {\n\t evt = _root.root.event;\n\t }\n\t return evt.target || evt.srcElement;\n\t};\n\t\n\t/**\r\n\t * Returns the Unicode value of pressed key\r\n\t *\r\n\t * @param {Event} evt Event on the DOM\r\n\t * @returns {Number}\r\n\t */\n\tvar keyCode = exports.keyCode = function keyCode(evt) {\n\t return evt.charCode ? evt.charCode : evt.keyCode ? evt.keyCode : evt.which ? evt.which : 0;\n\t};\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\t\n\t/**\n\t * Export window or global object depending on the environment\n\t */\n\tvar root = exports.root = (typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object' && self.self === self && self || (typeof global === 'undefined' ? 'undefined' : _typeof(global)) === 'object' && global.global === global && global || undefined;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.tag = exports.elm = exports.createCheckItem = exports.createOpt = exports.removeClass = exports.addClass = exports.hasClass = exports.createText = exports.removeElm = exports.createElm = exports.getFirstTextNode = exports.getText = undefined;\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\t/**\n\t * DOM utilities\n\t */\n\t\n\tvar doc = _root.root.document;\n\t\n\t/**\n\t * Returns text + text of children of given node\n\t * @param {NodeElement} node\n\t * @return {String}\n\t */\n\tvar getText = exports.getText = function getText(node) {\n\t if ((0, _types.isUndef)(node.textContent)) {\n\t return (0, _string.trim)(node.innerText);\n\t }\n\t return (0, _string.trim)(node.textContent);\n\t};\n\t\n\t/**\n\t * Returns the first text node contained in the supplied node\n\t * @param {NodeElement} node node\n\t * @return {String}\n\t */\n\tvar getFirstTextNode = exports.getFirstTextNode = function getFirstTextNode(node) {\n\t for (var i = 0; i < node.childNodes.length; i++) {\n\t var n = node.childNodes[i];\n\t if (n.nodeType === 3) {\n\t return n.data;\n\t }\n\t }\n\t};\n\t\n\t/**\n\t * Creates an html element with given collection of attributes\n\t * @param {String} tag a string of the html tag to create\n\t * @param {Array} an undetermined number of arrays containing the with 2\n\t * items, the attribute name and its value ['id','myId']\n\t * @return {Object} created element\n\t */\n\tvar createElm = exports.createElm = function createElm() {\n\t for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n\t args[_key] = arguments[_key];\n\t }\n\t\n\t var tag = args[0];\n\t if (!(0, _types.isString)(tag)) {\n\t return null;\n\t }\n\t\n\t var el = doc.createElement(tag);\n\t for (var i = 0; i < args.length; i++) {\n\t var arg = args[i];\n\t\n\t if ((0, _types.isArray)(arg) && arg.length === 2) {\n\t el.setAttribute(arg[0], arg[1]);\n\t }\n\t }\n\t\n\t return el;\n\t};\n\t\n\t/**\n\t * Removes passed node from DOM\n\t * @param {DOMElement} node\n\t * @return {DOMElement} old node reference\n\t */\n\tvar removeElm = exports.removeElm = function removeElm(node) {\n\t return node.parentNode.removeChild(node);\n\t};\n\t\n\t/**\n\t * Returns a text node with given text\n\t * @param {String} txt\n\t * @return {Object}\n\t */\n\tvar createText = exports.createText = function createText(txt) {\n\t return doc.createTextNode(txt);\n\t};\n\t\n\t/**\n\t * Determine whether the passed elements is assigned the given class\n\t * @param {DOMElement} ele DOM element\n\t * @param {String} cls CSS class name\n\t * @returns {Boolean}\n\t */\n\tvar hasClass = exports.hasClass = function hasClass(ele, cls) {\n\t if ((0, _types.isUndef)(ele)) {\n\t return false;\n\t }\n\t\n\t if (supportsClassList()) {\n\t return ele.classList.contains(cls);\n\t }\n\t return ele.className.match(new RegExp('(\\\\s|^)' + cls + '(\\\\s|$)'));\n\t};\n\t\n\t/**\n\t * Adds the specified class to the passed element\n\t * @param {DOMElement} ele DOM element\n\t * @param {String} cls CSS class name\n\t */\n\tvar addClass = exports.addClass = function addClass(ele, cls) {\n\t if ((0, _types.isUndef)(ele)) {\n\t return;\n\t }\n\t\n\t if (supportsClassList()) {\n\t ele.classList.add(cls);\n\t return;\n\t }\n\t\n\t if (ele.className === '') {\n\t ele.className = cls;\n\t } else if (!hasClass(ele, cls)) {\n\t ele.className += ' ' + cls;\n\t }\n\t};\n\t\n\t/**\n\t * Removes the specified class to the passed element\n\t * @param {DOMElement} ele DOM element\n\t * @param {String} cls CSS class name\n\t */\n\tvar removeClass = exports.removeClass = function removeClass(ele, cls) {\n\t if ((0, _types.isUndef)(ele)) {\n\t return;\n\t }\n\t\n\t if (supportsClassList()) {\n\t ele.classList.remove(cls);\n\t return;\n\t }\n\t var reg = new RegExp('(\\\\s|^)' + cls + '(\\\\s|$)', 'g');\n\t ele.className = ele.className.replace(reg, '');\n\t};\n\t\n\t/**\n\t * Creates and returns an option element\n\t * @param {String} text option text\n\t * @param {String} value option value\n\t * @param {Boolean} isSel whether option is selected\n\t * @return {Object} option element\n\t */\n\tvar createOpt = exports.createOpt = function createOpt(text, value, isSel) {\n\t var isSelected = isSel ? true : false;\n\t var opt = isSelected ? createElm('option', ['value', value], ['selected', 'true']) : createElm('option', ['value', value]);\n\t opt.appendChild(createText(text));\n\t return opt;\n\t};\n\t\n\t/**\n\t * Creates and returns a checklist item\n\t * @param {String} id index of check item\n\t * @param {String} chkValue check item value\n\t * @param {String} labelText check item label text\n\t * @return {Object} li DOM element\n\t */\n\tvar createCheckItem = exports.createCheckItem = function createCheckItem(id, chkValue, labelText) {\n\t var li = createElm('li');\n\t var label = createElm('label', ['for', id]);\n\t var check = createElm('input', ['id', id], ['name', id], ['type', 'checkbox'], ['value', chkValue]);\n\t label.appendChild(check);\n\t label.appendChild(createText(labelText));\n\t li.appendChild(label);\n\t li.label = label;\n\t li.check = check;\n\t return li;\n\t};\n\t\n\t/**\n\t * Returns the element matching the supplied Id\n\t * @param {String} id Element identifier\n\t * @return {DOMElement}\n\t */\n\tvar elm = exports.elm = function elm(id) {\n\t return doc.getElementById(id);\n\t};\n\t\n\t/**\n\t * Returns list of element matching the supplied tag name\n\t * @param {String} tagname Tag name\n\t * @return {NodeList}\n\t */\n\tvar tag = exports.tag = function tag(o, tagname) {\n\t return o.getElementsByTagName(tagname);\n\t};\n\t\n\t// HTML5 classList API\n\tfunction supportsClassList() {\n\t return doc.documentElement.classList;\n\t}\n\n/***/ },\n/* 4 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\t/**\r\n\t * Types utilities\r\n\t */\n\t\n\tvar UNDEFINED = void 0;\n\t\n\t/**\r\n\t * Return an empty function\r\n\t * @return {Function}\r\n\t */\n\tvar EMPTY_FN = exports.EMPTY_FN = function EMPTY_FN() {};\n\t\n\t/**\r\n\t * Check passed argument is an object\r\n\t * @param {Object} obj\r\n\t * @return {Boolean}\r\n\t */\n\tvar isObj = exports.isObj = function isObj(obj) {\n\t return Object.prototype.toString.call(obj) === '[object Object]';\n\t};\n\t\n\t/**\r\n\t * Check passed argument is a function\r\n\t * @param {Function} obj\r\n\t * @return {Boolean}\r\n\t */\n\tvar isFn = exports.isFn = function isFn(obj) {\n\t return Object.prototype.toString.call(obj) === '[object Function]';\n\t};\n\t\n\t/**\r\n\t * Check passed argument is an array\r\n\t * @param {Array} obj\r\n\t * @return {Boolean}\r\n\t */\n\tvar isArray = exports.isArray = function isArray(obj) {\n\t return Object.prototype.toString.call(obj) === '[object Array]';\n\t};\n\t\n\t/**\r\n\t * Check passed argument is a string\r\n\t * @param {String} obj objue\r\n\t * @returns {Boolean}\r\n\t */\n\tvar isString = exports.isString = function isString(obj) {\n\t return Object.prototype.toString.call(obj) === '[object String]';\n\t};\n\t\n\t/**\r\n\t * Check passed argument is a number\r\n\t * @param {Number} obj\r\n\t * @returns {Boolean}\r\n\t */\n\tvar isNumber = exports.isNumber = function isNumber(obj) {\n\t return Object.prototype.toString.call(obj) === '[object Number]';\n\t};\n\t\n\t/**\r\n\t * Check passed argument is undefined\r\n\t * @param {Any} obj\r\n\t * @return {Boolean}\r\n\t */\n\tvar isUndef = exports.isUndef = function isUndef(obj) {\n\t return obj === UNDEFINED;\n\t};\n\t\n\t/**\r\n\t * Check passed argument is null\r\n\t * @param {Any} obj\r\n\t * @return {Boolean}\r\n\t */\n\tvar isNull = exports.isNull = function isNull(obj) {\n\t return obj === null;\n\t};\n\t\n\t/**\r\n\t * Check passed argument is empty (undefined, null or empty string)\r\n\t * @param {Any} obj\r\n\t * @return {Boolean}\r\n\t */\n\tvar isEmpty = exports.isEmpty = function isEmpty(obj) {\n\t return isUndef(obj) || isNull(obj) || obj.length === 0;\n\t};\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.contains = exports.matchCase = exports.rgxEsc = exports.isEmpty = exports.trim = undefined;\n\t\n\tvar _diacritics = __webpack_require__(6);\n\t\n\t/**\n\t * String utilities\n\t */\n\t\n\t/**\n\t * Removes whitespace from both sides of passed string\n\t * @param {String} text\n\t * @return {String}\n\t */\n\tvar trim = exports.trim = function trim(text) {\n\t if (text.trim) {\n\t return text.trim();\n\t }\n\t return text.replace(/^\\s*|\\s*$/g, '');\n\t};\n\t\n\t/**\n\t * Checks if passed string is empty\n\t * @param {String} text\n\t * @return {Boolean}\n\t */\n\tvar isEmpty = exports.isEmpty = function isEmpty(text) {\n\t return trim(text) === '';\n\t};\n\t\n\t/**\n\t * Makes regex safe string by escaping special characters from passed string\n\t * @param {String} text\n\t * @return {String} escaped string\n\t */\n\tvar rgxEsc = exports.rgxEsc = function rgxEsc(text) {\n\t var chars = /[-\\/\\\\^$*+?.()|[\\]{}]/g;\n\t var escMatch = '\\\\$&';\n\t return String(text).replace(chars, escMatch);\n\t};\n\t\n\t/**\n\t * Returns passed string as lowercase if caseSensitive flag set false. By\n\t * default it returns the string with no casing changes.\n\t * @param {String} text\n\t * @return {String} string\n\t */\n\tvar matchCase = exports.matchCase = function matchCase(text) {\n\t var caseSensitive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t\n\t if (!caseSensitive) {\n\t return text.toLowerCase();\n\t }\n\t return text;\n\t};\n\t\n\t/**\n\t * Checks if passed data contains the searched term\n\t * @param {String} term Searched term\n\t * @param {String} data Data string\n\t * @param {Boolean} exactMatch Exact match\n\t * @param {Boolean} caseSensitive Case sensitive\n\t * @param {Boolean} ignoreDiacritics Ignore diacritics\n\t * @return {Boolean}\n\t */\n\tvar contains = exports.contains = function contains(term, data) {\n\t var exactMatch = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\t var caseSensitive = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\t var ignoreDiacritics = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n\t\n\t // Improved by Cedric Wartel (cwl) automatic exact match for selects and\n\t // special characters are now filtered\n\t var regexp = void 0;\n\t var modifier = caseSensitive ? 'g' : 'gi';\n\t if (ignoreDiacritics) {\n\t term = (0, _diacritics.remove)(term);\n\t data = (0, _diacritics.remove)(data);\n\t }\n\t if (exactMatch) {\n\t regexp = new RegExp('(^\\\\s*)' + rgxEsc(term) + '(\\\\s*$)', modifier);\n\t } else {\n\t regexp = new RegExp(rgxEsc(term), modifier);\n\t }\n\t return regexp.test(data);\n\t};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports) {\n\n\texports.remove = removeDiacritics;\n\t\n\tvar replacementList = [\n\t {\n\t base: ' ',\n\t chars: \"\\u00A0\",\n\t }, {\n\t base: '0',\n\t chars: \"\\u07C0\",\n\t }, {\n\t base: 'A',\n\t chars: \"\\u24B6\\uFF21\\u00C0\\u00C1\\u00C2\\u1EA6\\u1EA4\\u1EAA\\u1EA8\\u00C3\\u0100\\u0102\\u1EB0\\u1EAE\\u1EB4\\u1EB2\\u0226\\u01E0\\u00C4\\u01DE\\u1EA2\\u00C5\\u01FA\\u01CD\\u0200\\u0202\\u1EA0\\u1EAC\\u1EB6\\u1E00\\u0104\\u023A\\u2C6F\",\n\t }, {\n\t base: 'AA',\n\t chars: \"\\uA732\",\n\t }, {\n\t base: 'AE',\n\t chars: \"\\u00C6\\u01FC\\u01E2\",\n\t }, {\n\t base: 'AO',\n\t chars: \"\\uA734\",\n\t }, {\n\t base: 'AU',\n\t chars: \"\\uA736\",\n\t }, {\n\t base: 'AV',\n\t chars: \"\\uA738\\uA73A\",\n\t }, {\n\t base: 'AY',\n\t chars: \"\\uA73C\",\n\t }, {\n\t base: 'B',\n\t chars: \"\\u24B7\\uFF22\\u1E02\\u1E04\\u1E06\\u0243\\u0181\",\n\t }, {\n\t base: 'C',\n\t chars: \"\\u24b8\\uff23\\uA73E\\u1E08\\u0106\\u0043\\u0108\\u010A\\u010C\\u00C7\\u0187\\u023B\",\n\t }, {\n\t base: 'D',\n\t chars: \"\\u24B9\\uFF24\\u1E0A\\u010E\\u1E0C\\u1E10\\u1E12\\u1E0E\\u0110\\u018A\\u0189\\u1D05\\uA779\",\n\t }, {\n\t base: 'Dh',\n\t chars: \"\\u00D0\",\n\t }, {\n\t base: 'DZ',\n\t chars: \"\\u01F1\\u01C4\",\n\t }, {\n\t base: 'Dz',\n\t chars: \"\\u01F2\\u01C5\",\n\t }, {\n\t base: 'E',\n\t chars: \"\\u025B\\u24BA\\uFF25\\u00C8\\u00C9\\u00CA\\u1EC0\\u1EBE\\u1EC4\\u1EC2\\u1EBC\\u0112\\u1E14\\u1E16\\u0114\\u0116\\u00CB\\u1EBA\\u011A\\u0204\\u0206\\u1EB8\\u1EC6\\u0228\\u1E1C\\u0118\\u1E18\\u1E1A\\u0190\\u018E\\u1D07\",\n\t }, {\n\t base: 'F',\n\t chars: \"\\uA77C\\u24BB\\uFF26\\u1E1E\\u0191\\uA77B\",\n\t }, {\n\t base: 'G',\n\t chars: \"\\u24BC\\uFF27\\u01F4\\u011C\\u1E20\\u011E\\u0120\\u01E6\\u0122\\u01E4\\u0193\\uA7A0\\uA77D\\uA77E\\u0262\",\n\t }, {\n\t base: 'H',\n\t chars: \"\\u24BD\\uFF28\\u0124\\u1E22\\u1E26\\u021E\\u1E24\\u1E28\\u1E2A\\u0126\\u2C67\\u2C75\\uA78D\",\n\t }, {\n\t base: 'I',\n\t chars: \"\\u24BE\\uFF29\\xCC\\xCD\\xCE\\u0128\\u012A\\u012C\\u0130\\xCF\\u1E2E\\u1EC8\\u01CF\\u0208\\u020A\\u1ECA\\u012E\\u1E2C\\u0197\",\n\t }, {\n\t base: 'J',\n\t chars: \"\\u24BF\\uFF2A\\u0134\\u0248\\u0237\",\n\t }, {\n\t base: 'K',\n\t chars: \"\\u24C0\\uFF2B\\u1E30\\u01E8\\u1E32\\u0136\\u1E34\\u0198\\u2C69\\uA740\\uA742\\uA744\\uA7A2\",\n\t }, {\n\t base: 'L',\n\t chars: \"\\u24C1\\uFF2C\\u013F\\u0139\\u013D\\u1E36\\u1E38\\u013B\\u1E3C\\u1E3A\\u0141\\u023D\\u2C62\\u2C60\\uA748\\uA746\\uA780\",\n\t }, {\n\t base: 'LJ',\n\t chars: \"\\u01C7\",\n\t }, {\n\t base: 'Lj',\n\t chars: \"\\u01C8\",\n\t }, {\n\t base: 'M',\n\t chars: \"\\u24C2\\uFF2D\\u1E3E\\u1E40\\u1E42\\u2C6E\\u019C\\u03FB\",\n\t }, {\n\t base: 'N',\n\t chars: \"\\uA7A4\\u0220\\u24C3\\uFF2E\\u01F8\\u0143\\xD1\\u1E44\\u0147\\u1E46\\u0145\\u1E4A\\u1E48\\u019D\\uA790\\u1D0E\",\n\t }, {\n\t base: 'NJ',\n\t chars: \"\\u01CA\",\n\t }, {\n\t base: 'Nj',\n\t chars: \"\\u01CB\",\n\t }, {\n\t base: 'O',\n\t chars: \"\\u24C4\\uFF2F\\xD2\\xD3\\xD4\\u1ED2\\u1ED0\\u1ED6\\u1ED4\\xD5\\u1E4C\\u022C\\u1E4E\\u014C\\u1E50\\u1E52\\u014E\\u022E\\u0230\\xD6\\u022A\\u1ECE\\u0150\\u01D1\\u020C\\u020E\\u01A0\\u1EDC\\u1EDA\\u1EE0\\u1EDE\\u1EE2\\u1ECC\\u1ED8\\u01EA\\u01EC\\xD8\\u01FE\\u0186\\u019F\\uA74A\\uA74C\",\n\t }, {\n\t base: 'OE',\n\t chars: \"\\u0152\",\n\t }, {\n\t base: 'OI',\n\t chars: \"\\u01A2\",\n\t }, {\n\t base: 'OO',\n\t chars: \"\\uA74E\",\n\t }, {\n\t base: 'OU',\n\t chars: \"\\u0222\",\n\t }, {\n\t base: 'P',\n\t chars: \"\\u24C5\\uFF30\\u1E54\\u1E56\\u01A4\\u2C63\\uA750\\uA752\\uA754\",\n\t }, {\n\t base: 'Q',\n\t chars: \"\\u24C6\\uFF31\\uA756\\uA758\\u024A\",\n\t }, {\n\t base: 'R',\n\t chars: \"\\u24C7\\uFF32\\u0154\\u1E58\\u0158\\u0210\\u0212\\u1E5A\\u1E5C\\u0156\\u1E5E\\u024C\\u2C64\\uA75A\\uA7A6\\uA782\",\n\t }, {\n\t base: 'S',\n\t chars: \"\\u24C8\\uFF33\\u1E9E\\u015A\\u1E64\\u015C\\u1E60\\u0160\\u1E66\\u1E62\\u1E68\\u0218\\u015E\\u2C7E\\uA7A8\\uA784\",\n\t }, {\n\t base: 'T',\n\t chars: \"\\u24C9\\uFF34\\u1E6A\\u0164\\u1E6C\\u021A\\u0162\\u1E70\\u1E6E\\u0166\\u01AC\\u01AE\\u023E\\uA786\",\n\t }, {\n\t base: 'Th',\n\t chars: \"\\u00DE\",\n\t }, {\n\t base: 'TZ',\n\t chars: \"\\uA728\",\n\t }, {\n\t base: 'U',\n\t chars: \"\\u24CA\\uFF35\\xD9\\xDA\\xDB\\u0168\\u1E78\\u016A\\u1E7A\\u016C\\xDC\\u01DB\\u01D7\\u01D5\\u01D9\\u1EE6\\u016E\\u0170\\u01D3\\u0214\\u0216\\u01AF\\u1EEA\\u1EE8\\u1EEE\\u1EEC\\u1EF0\\u1EE4\\u1E72\\u0172\\u1E76\\u1E74\\u0244\",\n\t }, {\n\t base: 'V',\n\t chars: \"\\u24CB\\uFF36\\u1E7C\\u1E7E\\u01B2\\uA75E\\u0245\",\n\t }, {\n\t base: 'VY',\n\t chars: \"\\uA760\",\n\t }, {\n\t base: 'W',\n\t chars: \"\\u24CC\\uFF37\\u1E80\\u1E82\\u0174\\u1E86\\u1E84\\u1E88\\u2C72\",\n\t }, {\n\t base: 'X',\n\t chars: \"\\u24CD\\uFF38\\u1E8A\\u1E8C\",\n\t }, {\n\t base: 'Y',\n\t chars: \"\\u24CE\\uFF39\\u1EF2\\xDD\\u0176\\u1EF8\\u0232\\u1E8E\\u0178\\u1EF6\\u1EF4\\u01B3\\u024E\\u1EFE\",\n\t }, {\n\t base: 'Z',\n\t chars: \"\\u24CF\\uFF3A\\u0179\\u1E90\\u017B\\u017D\\u1E92\\u1E94\\u01B5\\u0224\\u2C7F\\u2C6B\\uA762\",\n\t }, {\n\t base: 'a',\n\t chars: \"\\u24D0\\uFF41\\u1E9A\\u00E0\\u00E1\\u00E2\\u1EA7\\u1EA5\\u1EAB\\u1EA9\\u00E3\\u0101\\u0103\\u1EB1\\u1EAF\\u1EB5\\u1EB3\\u0227\\u01E1\\u00E4\\u01DF\\u1EA3\\u00E5\\u01FB\\u01CE\\u0201\\u0203\\u1EA1\\u1EAD\\u1EB7\\u1E01\\u0105\\u2C65\\u0250\\u0251\",\n\t }, {\n\t base: 'aa',\n\t chars: \"\\uA733\",\n\t }, {\n\t base: 'ae',\n\t chars: \"\\u00E6\\u01FD\\u01E3\",\n\t }, {\n\t base: 'ao',\n\t chars: \"\\uA735\",\n\t }, {\n\t base: 'au',\n\t chars: \"\\uA737\",\n\t }, {\n\t base: 'av',\n\t chars: \"\\uA739\\uA73B\",\n\t }, {\n\t base: 'ay',\n\t chars: \"\\uA73D\",\n\t }, {\n\t base: 'b',\n\t chars: \"\\u24D1\\uFF42\\u1E03\\u1E05\\u1E07\\u0180\\u0183\\u0253\\u0182\",\n\t }, {\n\t base: 'c',\n\t chars: \"\\uFF43\\u24D2\\u0107\\u0109\\u010B\\u010D\\u00E7\\u1E09\\u0188\\u023C\\uA73F\\u2184\",\n\t }, {\n\t base: 'd',\n\t chars: \"\\u24D3\\uFF44\\u1E0B\\u010F\\u1E0D\\u1E11\\u1E13\\u1E0F\\u0111\\u018C\\u0256\\u0257\\u018B\\u13E7\\u0501\\uA7AA\",\n\t }, {\n\t base: 'dh',\n\t chars: \"\\u00F0\",\n\t }, {\n\t base: 'dz',\n\t chars: \"\\u01F3\\u01C6\",\n\t }, {\n\t base: 'e',\n\t chars: \"\\u24D4\\uFF45\\u00E8\\u00E9\\u00EA\\u1EC1\\u1EBF\\u1EC5\\u1EC3\\u1EBD\\u0113\\u1E15\\u1E17\\u0115\\u0117\\u00EB\\u1EBB\\u011B\\u0205\\u0207\\u1EB9\\u1EC7\\u0229\\u1E1D\\u0119\\u1E19\\u1E1B\\u0247\\u01DD\",\n\t }, {\n\t base: 'f',\n\t chars: \"\\u24D5\\uFF46\\u1E1F\\u0192\",\n\t }, {\n\t base: 'ff',\n\t chars: \"\\uFB00\",\n\t }, {\n\t base: 'fi',\n\t chars: \"\\uFB01\",\n\t }, {\n\t base: 'fl',\n\t chars: \"\\uFB02\",\n\t }, {\n\t base: 'ffi',\n\t chars: \"\\uFB03\",\n\t }, {\n\t base: 'ffl',\n\t chars: \"\\uFB04\",\n\t }, {\n\t base: 'g',\n\t chars: \"\\u24D6\\uFF47\\u01F5\\u011D\\u1E21\\u011F\\u0121\\u01E7\\u0123\\u01E5\\u0260\\uA7A1\\uA77F\\u1D79\",\n\t }, {\n\t base: 'h',\n\t chars: \"\\u24D7\\uFF48\\u0125\\u1E23\\u1E27\\u021F\\u1E25\\u1E29\\u1E2B\\u1E96\\u0127\\u2C68\\u2C76\\u0265\",\n\t }, {\n\t base: 'hv',\n\t chars: \"\\u0195\",\n\t }, {\n\t base: 'i',\n\t chars: \"\\u24D8\\uFF49\\xEC\\xED\\xEE\\u0129\\u012B\\u012D\\xEF\\u1E2F\\u1EC9\\u01D0\\u0209\\u020B\\u1ECB\\u012F\\u1E2D\\u0268\\u0131\",\n\t }, {\n\t base: 'j',\n\t chars: \"\\u24D9\\uFF4A\\u0135\\u01F0\\u0249\",\n\t }, {\n\t base: 'k',\n\t chars: \"\\u24DA\\uFF4B\\u1E31\\u01E9\\u1E33\\u0137\\u1E35\\u0199\\u2C6A\\uA741\\uA743\\uA745\\uA7A3\",\n\t }, {\n\t base: 'l',\n\t chars: \"\\u24DB\\uFF4C\\u0140\\u013A\\u013E\\u1E37\\u1E39\\u013C\\u1E3D\\u1E3B\\u017F\\u0142\\u019A\\u026B\\u2C61\\uA749\\uA781\\uA747\\u026D\",\n\t }, {\n\t base: 'lj',\n\t chars: \"\\u01C9\",\n\t }, {\n\t base: 'm',\n\t chars: \"\\u24DC\\uFF4D\\u1E3F\\u1E41\\u1E43\\u0271\\u026F\",\n\t }, {\n\t base: 'n',\n\t chars: \"\\u24DD\\uFF4E\\u01F9\\u0144\\xF1\\u1E45\\u0148\\u1E47\\u0146\\u1E4B\\u1E49\\u019E\\u0272\\u0149\\uA791\\uA7A5\\u043B\\u0509\",\n\t }, {\n\t base: 'nj',\n\t chars: \"\\u01CC\",\n\t }, {\n\t base: 'o',\n\t chars: \"\\u24DE\\uFF4F\\xF2\\xF3\\xF4\\u1ED3\\u1ED1\\u1ED7\\u1ED5\\xF5\\u1E4D\\u022D\\u1E4F\\u014D\\u1E51\\u1E53\\u014F\\u022F\\u0231\\xF6\\u022B\\u1ECF\\u0151\\u01D2\\u020D\\u020F\\u01A1\\u1EDD\\u1EDB\\u1EE1\\u1EDF\\u1EE3\\u1ECD\\u1ED9\\u01EB\\u01ED\\xF8\\u01FF\\uA74B\\uA74D\\u0275\\u0254\\u1D11\",\n\t }, {\n\t base: 'oe',\n\t chars: \"\\u0153\",\n\t }, {\n\t base: 'oi',\n\t chars: \"\\u01A3\",\n\t }, {\n\t base: 'oo',\n\t chars: \"\\uA74F\",\n\t }, {\n\t base: 'ou',\n\t chars: \"\\u0223\",\n\t }, {\n\t base: 'p',\n\t chars: \"\\u24DF\\uFF50\\u1E55\\u1E57\\u01A5\\u1D7D\\uA751\\uA753\\uA755\\u03C1\",\n\t }, {\n\t base: 'q',\n\t chars: \"\\u24E0\\uFF51\\u024B\\uA757\\uA759\",\n\t }, {\n\t base: 'r',\n\t chars: \"\\u24E1\\uFF52\\u0155\\u1E59\\u0159\\u0211\\u0213\\u1E5B\\u1E5D\\u0157\\u1E5F\\u024D\\u027D\\uA75B\\uA7A7\\uA783\",\n\t }, {\n\t base: 's',\n\t chars: \"\\u24E2\\uFF53\\u015B\\u1E65\\u015D\\u1E61\\u0161\\u1E67\\u1E63\\u1E69\\u0219\\u015F\\u023F\\uA7A9\\uA785\\u1E9B\\u0282\",\n\t }, {\n\t base: 'ss',\n\t chars: \"\\xDF\",\n\t }, {\n\t base: 't',\n\t chars: \"\\u24E3\\uFF54\\u1E6B\\u1E97\\u0165\\u1E6D\\u021B\\u0163\\u1E71\\u1E6F\\u0167\\u01AD\\u0288\\u2C66\\uA787\",\n\t }, {\n\t base: 'th',\n\t chars: \"\\u00FE\",\n\t }, {\n\t base: 'tz',\n\t chars: \"\\uA729\",\n\t }, {\n\t base: 'u',\n\t chars: \"\\u24E4\\uFF55\\xF9\\xFA\\xFB\\u0169\\u1E79\\u016B\\u1E7B\\u016D\\xFC\\u01DC\\u01D8\\u01D6\\u01DA\\u1EE7\\u016F\\u0171\\u01D4\\u0215\\u0217\\u01B0\\u1EEB\\u1EE9\\u1EEF\\u1EED\\u1EF1\\u1EE5\\u1E73\\u0173\\u1E77\\u1E75\\u0289\",\n\t }, {\n\t base: 'v',\n\t chars: \"\\u24E5\\uFF56\\u1E7D\\u1E7F\\u028B\\uA75F\\u028C\",\n\t }, {\n\t base: 'vy',\n\t chars: \"\\uA761\",\n\t }, {\n\t base: 'w',\n\t chars: \"\\u24E6\\uFF57\\u1E81\\u1E83\\u0175\\u1E87\\u1E85\\u1E98\\u1E89\\u2C73\",\n\t }, {\n\t base: 'x',\n\t chars: \"\\u24E7\\uFF58\\u1E8B\\u1E8D\",\n\t }, {\n\t base: 'y',\n\t chars: \"\\u24E8\\uFF59\\u1EF3\\xFD\\u0177\\u1EF9\\u0233\\u1E8F\\xFF\\u1EF7\\u1E99\\u1EF5\\u01B4\\u024F\\u1EFF\",\n\t }, {\n\t base: 'z',\n\t chars: \"\\u24E9\\uFF5A\\u017A\\u1E91\\u017C\\u017E\\u1E93\\u1E95\\u01B6\\u0225\\u0240\\u2C6C\\uA763\",\n\t }\n\t];\n\t\n\tvar diacriticsMap = {};\n\tfor (var i = 0; i < replacementList.length; i += 1) {\n\t var chars = replacementList[i].chars;\n\t for (var j = 0; j < chars.length; j += 1) {\n\t diacriticsMap[chars[j]] = replacementList[i].base;\n\t }\n\t}\n\t\n\tfunction removeDiacritics(str) {\n\t return str.replace(/[^\\u0000-\\u007e]/g, function(c) {\n\t return diacriticsMap[c] || c;\n\t });\n\t}\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.parse = undefined;\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\t/**\n\t * Takes a string, removes all formatting/cruft and returns the raw float value\n\t * @param {String} Formatted number\n\t * @param {String} Decimal type '.' or ','\n\t * @return {Number} Unformatted number\n\t *\n\t * https://github.com/openexchangerates/accounting.js/blob/master/accounting.js\n\t */\n\tvar parse = exports.parse = function parse(value) {\n\t var decimal = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '.';\n\t\n\t // Return the value as-is if it's already a number\n\t if ((0, _types.isNumber)(value)) {\n\t return value;\n\t }\n\t\n\t // Build regex to strip out everything except digits, decimal point and\n\t // minus sign\n\t var regex = new RegExp('[^0-9-' + decimal + ']', ['g']);\n\t var unformatted = parseFloat(('' + value).replace(/\\((.*)\\)/, '-$1') // replace bracketed values with negatives\n\t .replace(regex, '') // strip out any cruft\n\t .replace(decimal, '.') // make sure decimal point is standard\n\t );\n\t\n\t // This will fail silently\n\t return !isNaN(unformatted) ? unformatted : 0;\n\t};\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/**\r\n\t * Event emitter class\r\n\t */\n\tvar Emitter = exports.Emitter = function () {\n\t /**\r\n\t * Creates an instance of Emitter.\r\n\t */\n\t function Emitter() {\n\t _classCallCheck(this, Emitter);\n\t\n\t /**\r\n\t * Events object\r\n\t * @type {Object}\r\n\t */\n\t this.events = {};\n\t }\n\t\n\t /**\r\n\t * Subscribe to an event\r\n\t * @param {Array} evts Collection of event names\r\n\t * @param {Function} fn Function invoked when event is emitted\r\n\t */\n\t\n\t\n\t Emitter.prototype.on = function on(evts, fn) {\n\t var _this = this;\n\t\n\t evts.forEach(function (evt) {\n\t _this.events[evt] = _this.events[evt] || [];\n\t _this.events[evt].push(fn);\n\t });\n\t };\n\t\n\t /**\r\n\t * Unsubscribe to an event\r\n\t * @param {Array} evts Collection of event names\r\n\t * @param {Function} fn Function invoked when event is emitted\r\n\t */\n\t\n\t\n\t Emitter.prototype.off = function off(evts, fn) {\n\t var _this2 = this;\n\t\n\t evts.forEach(function (evt) {\n\t if (evt in _this2.events) {\n\t _this2.events[evt].splice(_this2.events[evt].indexOf(fn), 1);\n\t }\n\t });\n\t };\n\t\n\t /**\r\n\t * Emit an event\r\n\t * @param {String} evt Event name followed by any other argument passed to\r\n\t * the invoked function\r\n\t */\n\t\n\t\n\t Emitter.prototype.emit = function emit(evt /*, args...*/) {\n\t if (evt in this.events) {\n\t for (var i = 0; i < this.events[evt].length; i++) {\n\t this.events[evt][i].apply(this, [].slice.call(arguments, 1));\n\t }\n\t }\n\t };\n\t\n\t return Emitter;\n\t}();\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.GridLayout = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\n\t * Grid layout, table with fixed headers\n\t */\n\tvar GridLayout = exports.GridLayout = function (_Feature) {\n\t _inherits(GridLayout, _Feature);\n\t\n\t /**\n\t * Creates an instance of GridLayout\n\t * @param {TableFilter} tf TableFilter instance\n\t */\n\t function GridLayout(tf) {\n\t _classCallCheck(this, GridLayout);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'gridLayout'));\n\t\n\t var f = _this.config;\n\t\n\t /**\n\t * Grid-layout container width as CSS string\n\t * @type {String}\n\t */\n\t _this.width = f.grid_width || null;\n\t\n\t /**\n\t * Grid-layout container height as CSS string\n\t * @type {String}\n\t */\n\t _this.height = f.grid_height || null;\n\t\n\t /**\n\t * Css class for main container element\n\t * @type {String}\n\t */\n\t _this.mainContCssClass = f.grid_cont_css_class || 'grd_Cont';\n\t\n\t /**\n\t * Css class for body table container element\n\t * @type {String}\n\t */\n\t _this.contCssClass = f.grid_tbl_cont_css_class || 'grd_tblCont';\n\t\n\t /**\n\t * Css class for headers table container element\n\t * @type {String}\n\t */\n\t _this.headContCssClass = f.grid_tblHead_cont_css_class || 'grd_headTblCont';\n\t\n\t /**\n\t * Css class for toolbar container element (rows counter, paging etc.)\n\t * @type {String}\n\t */\n\t _this.infDivCssClass = f.grid_inf_grid_css_class || 'grd_inf';\n\t\n\t /**\n\t * Index of the headers row, default: 0\n\t * @type {Number}\n\t */\n\t _this.headRowIndex = f.grid_headers_row_index || 0;\n\t\n\t /**\n\t * Collection of the header row indexes to be moved into headers table\n\t * @type {Array}\n\t */\n\t _this.headRows = f.grid_headers_rows || [0];\n\t\n\t /**\n\t * Enable or disable column filters generation, default: true\n\t * @type {Boolean}\n\t */\n\t _this.enableFilters = f.grid_enable_default_filters === false ? false : true;\n\t\n\t /**\n\t * Enable or disable column headers, default: false\n\t * @type {Boolean}\n\t */\n\t _this.noHeaders = Boolean(f.grid_no_headers);\n\t\n\t /**\n\t * Grid-layout default column widht as CSS string\n\t * @type {String}\n\t */\n\t _this.defaultColWidth = f.grid_default_col_width || '100px';\n\t\n\t /**\n\t * List of column elements\n\t * @type {Array}\n\t * @private\n\t */\n\t _this.colElms = [];\n\t\n\t /**\n\t * Prefix for grid-layout filter's cell ID\n\t * @type {String}\n\t * @private\n\t */\n\t _this.prfxGridFltTd = '_td_';\n\t\n\t /**\n\t * Prefix for grid-layout header's cell ID\n\t * @type {String}\n\t * @private\n\t */\n\t _this.prfxGridTh = 'tblHeadTh_';\n\t\n\t /**\n\t * Mark-up of original HTML table\n\t * @type {String}\n\t * @private\n\t */\n\t _this.sourceTblHtml = tf.tbl.outerHTML;\n\t\n\t /**\n\t * Indicates if working table has column elements\n\t * @type {Boolean}\n\t * @private\n\t */\n\t _this.tblHasColTag = (0, _dom.tag)(tf.tbl, 'col').length > 0 ? true : false;\n\t\n\t /**\n\t * Main container element\n\t * @private\n\t */\n\t _this.tblMainCont = null;\n\t\n\t /**\n\t * Table container element\n\t * @private\n\t */\n\t _this.tblCont = null;\n\t\n\t /**\n\t * Headers' table container element\n\t * @private\n\t */\n\t _this.headTblCont = null;\n\t\n\t /**\n\t * Headers' table element\n\t * @private\n\t */\n\t _this.headTbl = null;\n\t\n\t // filters flag at TF level\n\t tf.fltGrid = _this.enableFilters;\n\t return _this;\n\t }\n\t\n\t /**\n\t * Generates a grid with fixed headers\n\t * TODO: reduce size of init by extracting single purposed methods\n\t */\n\t\n\t\n\t GridLayout.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t var tf = this.tf;\n\t var tbl = tf.tbl;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t // Override relevant TableFilter properties\n\t this.setOverrides();\n\t\n\t // Assign default column widths\n\t this.setDefaultColWidths();\n\t\n\t // Initial table width\n\t var tblW = this.initialTableWidth();\n\t\n\t //Main container: it will contain all the elements\n\t this.tblMainCont = this.createContainer('div', this.mainContCssClass);\n\t if (this.width) {\n\t this.tblMainCont.style.width = this.width;\n\t }\n\t tbl.parentNode.insertBefore(this.tblMainCont, tbl);\n\t\n\t //Table container: div wrapping content table\n\t this.tblCont = this.createContainer('div', this.contCssClass);\n\t this.setConfigWidth(this.tblCont);\n\t if (this.height) {\n\t this.tblCont.style.height = this.height;\n\t }\n\t tbl.parentNode.insertBefore(this.tblCont, tbl);\n\t var t = (0, _dom.removeElm)(tbl);\n\t this.tblCont.appendChild(t);\n\t\n\t //In case table width is expressed in %\n\t if (tbl.style.width === '') {\n\t tbl.style.width = ((0, _string.contains)('%', tblW) ? tbl.clientWidth : tblW) + 'px';\n\t }\n\t\n\t var d = (0, _dom.removeElm)(this.tblCont);\n\t this.tblMainCont.appendChild(d);\n\t\n\t //Headers table container: div wrapping headers table\n\t this.headTblCont = this.createContainer('div', this.headContCssClass);\n\t this.setConfigWidth(this.headTblCont);\n\t\n\t //Headers table\n\t this.headTbl = (0, _dom.createElm)('table');\n\t var tH = (0, _dom.createElm)('tHead');\n\t\n\t //1st row should be headers row, ids are added if not set\n\t //Those ids are used by the sort feature\n\t var hRow = tbl.rows[this.headRowIndex];\n\t var sortTriggers = this.getSortTriggerIds(hRow);\n\t\n\t //Filters row is created\n\t var filtersRow = this.createFiltersRow();\n\t\n\t //Headers row are moved from content table to headers table\n\t this.setHeadersRow(tH);\n\t\n\t this.headTbl.appendChild(tH);\n\t if (tf.filtersRowIndex === 0) {\n\t tH.insertBefore(filtersRow, hRow);\n\t } else {\n\t tH.appendChild(filtersRow);\n\t }\n\t\n\t this.headTblCont.appendChild(this.headTbl);\n\t this.tblCont.parentNode.insertBefore(this.headTblCont, this.tblCont);\n\t\n\t //THead needs to be removed in content table for sort feature\n\t var thead = (0, _dom.tag)(tbl, 'thead');\n\t if (thead.length > 0) {\n\t tbl.removeChild(thead[0]);\n\t }\n\t\n\t //Headers table style\n\t this.headTbl.style.tableLayout = 'fixed';\n\t tbl.style.tableLayout = 'fixed';\n\t this.headTbl.cellPadding = tbl.cellPadding;\n\t this.headTbl.cellSpacing = tbl.cellSpacing;\n\t // this.headTbl.style.width = tbl.style.width;\n\t\n\t //content table without headers needs col widths to be reset\n\t tf.setColWidths(this.headTbl);\n\t\n\t //Headers container width\n\t // this.headTblCont.style.width = this.tblCont.clientWidth+'px';\n\t\n\t tbl.style.width = '';\n\t //\n\t this.headTbl.style.width = tbl.clientWidth + 'px';\n\t //\n\t\n\t //scroll synchronisation\n\t (0, _event.addEvt)(this.tblCont, 'scroll', function (evt) {\n\t var elm = (0, _event.targetEvt)(evt);\n\t var scrollLeft = elm.scrollLeft;\n\t _this2.headTblCont.scrollLeft = scrollLeft;\n\t //New pointerX calc taking into account scrollLeft\n\t // if(!o.isPointerXOverwritten){\n\t // try{\n\t // o.Evt.pointerX = function(evt){\n\t // let e = evt || global.event;\n\t // let bdScrollLeft = tf_StandardBody().scrollLeft +\n\t // scrollLeft;\n\t // return (e.pageX + scrollLeft) ||\n\t // (e.clientX + bdScrollLeft);\n\t // };\n\t // o.isPointerXOverwritten = true;\n\t // } catch(err) {\n\t // o.isPointerXOverwritten = false;\n\t // }\n\t // }\n\t });\n\t\n\t // TODO: Trigger a custom event handled by sort extension\n\t var sort = tf.extension('sort');\n\t if (sort) {\n\t sort.asyncSort = true;\n\t sort.triggerIds = sortTriggers;\n\t }\n\t\n\t //Col elements are enough to keep column widths after sorting and\n\t //filtering\n\t this.setColumnElements();\n\t\n\t if (tf.popupFilters) {\n\t filtersRow.style.display = _const.NONE;\n\t }\n\t\n\t if (tbl.clientWidth !== this.headTbl.clientWidth) {\n\t tbl.style.width = this.headTbl.clientWidth + 'px';\n\t }\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\n\t * Overrides TableFilter instance properties to adjust to grid layout mode\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.setOverrides = function setOverrides() {\n\t var tf = this.tf;\n\t tf.refRow = 0;\n\t tf.headersRow = 0;\n\t tf.filtersRowIndex = 1;\n\t tf.isExternalFlt = true;\n\t };\n\t\n\t /**\n\t * Set grid-layout default column widths if column widths are not defined\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.setDefaultColWidths = function setDefaultColWidths() {\n\t var tf = this.tf;\n\t if (tf.hasColWidths) {\n\t return;\n\t }\n\t for (var k = 0, len = tf.getCellsNb(); k < len; k++) {\n\t var colW = void 0;\n\t var cell = tf.tbl.rows[tf.getHeadersRowIndex()].cells[k];\n\t if (cell.width !== '') {\n\t colW = cell.width;\n\t } else if (cell.style.width !== '') {\n\t colW = parseInt(cell.style.width, 10);\n\t } else {\n\t colW = this.defaultColWidth;\n\t }\n\t tf.colWidths[k] = colW;\n\t }\n\t tf.hasColWidths = true;\n\t tf.setColWidths();\n\t };\n\t\n\t /**\n\t * Initial table width\n\t * @returns {Number}\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.initialTableWidth = function initialTableWidth() {\n\t var tbl = this.tf.tbl;\n\t var width = void 0; //initial table width\n\t\n\t if (tbl.width !== '') {\n\t width = tbl.width;\n\t } else if (tbl.style.width !== '') {\n\t width = tbl.style.width;\n\t } else {\n\t width = tbl.clientWidth;\n\t }\n\t return parseInt(width, 10);\n\t };\n\t\n\t /**\n\t * Creates container element\n\t * @param {String} tag Tag name\n\t * @param {String} className Css class to assign to element\n\t * @returns {DOMElement}\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.createContainer = function createContainer(tag, className) {\n\t var element = (0, _dom.createElm)(tag);\n\t element.className = className;\n\t return element;\n\t };\n\t\n\t /**\n\t * Creates filters row with cells\n\t * @returns {HTMLTableRowElement}\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.createFiltersRow = function createFiltersRow() {\n\t var tf = this.tf;\n\t var filtersRow = (0, _dom.createElm)('tr');\n\t if (this.enableFilters && tf.fltGrid) {\n\t tf.externalFltTgtIds = [];\n\t for (var j = 0; j < tf.getCellsNb(); j++) {\n\t var fltTdId = '' + (tf.prfxFlt + j + this.prfxGridFltTd + tf.id);\n\t var cl = (0, _dom.createElm)(tf.fltCellTag, ['id', fltTdId]);\n\t filtersRow.appendChild(cl);\n\t tf.externalFltTgtIds[j] = fltTdId;\n\t }\n\t }\n\t return filtersRow;\n\t };\n\t\n\t /**\n\t * Generates column elements if necessary and assigns their widths\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.setColumnElements = function setColumnElements() {\n\t var tf = this.tf;\n\t var cols = (0, _dom.tag)(tf.tbl, 'col');\n\t this.tblHasColTag = cols.length > 0;\n\t\n\t for (var k = tf.nbCells - 1; k >= 0; k--) {\n\t var col = void 0;\n\t\n\t if (!this.tblHasColTag) {\n\t col = (0, _dom.createElm)('col');\n\t tf.tbl.insertBefore(col, tf.tbl.firstChild);\n\t } else {\n\t col = cols[k];\n\t }\n\t col.style.width = tf.colWidths[k];\n\t this.colElms[k] = col;\n\t }\n\t this.tblHasColTag = true;\n\t };\n\t\n\t /**\n\t * Sets headers row in headers table\n\t * @param {HTMLHeadElement} tableHead Table head element\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.setHeadersRow = function setHeadersRow(tableHead) {\n\t if (this.noHeaders) {\n\t // Handle table with no headers, assuming here headers do not\n\t // exist\n\t tableHead.appendChild((0, _dom.createElm)('tr'));\n\t } else {\n\t // Headers row are moved from content table to headers table\n\t for (var i = 0; i < this.headRows.length; i++) {\n\t var row = this.tf.tbl.rows[this.headRows[i]];\n\t tableHead.appendChild(row);\n\t }\n\t }\n\t };\n\t\n\t /**\n\t * Sets width defined in configuration to passed element\n\t * @param {DOMElement} element DOM element\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.setConfigWidth = function setConfigWidth(element) {\n\t if (!this.width) {\n\t return;\n\t }\n\t if (this.width.indexOf('%') !== -1) {\n\t element.style.width = '100%';\n\t } else {\n\t element.style.width = this.width;\n\t }\n\t };\n\t\n\t /**\n\t * Returns a list of header IDs used for specifing external sort triggers\n\t * @param {HTMLTableRowElement} row DOM row element\n\t * @returns {Array} List of IDs\n\t * @private\n\t */\n\t\n\t\n\t GridLayout.prototype.getSortTriggerIds = function getSortTriggerIds(row) {\n\t var tf = this.tf;\n\t var sortTriggers = [];\n\t for (var n = 0; n < tf.getCellsNb(); n++) {\n\t var c = row.cells[n];\n\t var thId = c.getAttribute('id');\n\t if (!thId || thId === '') {\n\t thId = this.prfxGridTh + n + '_' + tf.id;\n\t c.setAttribute('id', thId);\n\t }\n\t sortTriggers.push(thId);\n\t }\n\t return sortTriggers;\n\t };\n\t\n\t /**\n\t * Removes the grid layout\n\t */\n\t\n\t\n\t GridLayout.prototype.destroy = function destroy() {\n\t var tf = this.tf;\n\t var tbl = tf.tbl;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t var t = (0, _dom.removeElm)(tbl);\n\t this.tblMainCont.parentNode.insertBefore(t, this.tblMainCont);\n\t (0, _dom.removeElm)(this.tblMainCont);\n\t\n\t this.tblMainCont = null;\n\t this.headTblCont = null;\n\t this.headTbl = null;\n\t this.tblCont = null;\n\t\n\t tbl.outerHTML = this.sourceTblHtml;\n\t //needed to keep reference of table element for future usage\n\t this.tf.tbl = (0, _dom.elm)(tf.id);\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return GridLayout;\n\t}(_feature.Feature);\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar NOTIMPLEMENTED = 'Not implemented.';\n\t\n\t/**\n\t * Base class defining the interface of a TableFilter feature\n\t */\n\t\n\tvar Feature = exports.Feature = function () {\n\t /**\n\t * Creates an instance of Feature\n\t * @param {Object} tf TableFilter instance\n\t * @param {String} feature Feature name known by TableFilter\n\t */\n\t function Feature(tf, feature) {\n\t var _this = this;\n\t\n\t _classCallCheck(this, Feature);\n\t\n\t /**\n\t * TableFilter instance\n\t * @type {TableFilter}\n\t */\n\t this.tf = tf;\n\t\n\t /**\n\t * Feature name\n\t * @type {String}\n\t */\n\t this.feature = feature;\n\t\n\t /**\n\t * TableFilter feature setting\n\t * @type {Boolean}\n\t */\n\t this.enabled = tf[feature];\n\t\n\t /**\n\t * TableFilter configuration\n\t * @type {Object}\n\t */\n\t this.config = tf.config();\n\t\n\t /**\n\t * TableFilter emitter instance\n\t * @type {Emitter}\n\t */\n\t this.emitter = tf.emitter;\n\t\n\t /**\n\t * Field indicating whether Feature is initialized\n\t * @type {Boolean}\n\t */\n\t this.initialized = false;\n\t\n\t /** Subscribe to destroy event */\n\t this.emitter.on(['destroy'], function () {\n\t return _this.destroy();\n\t });\n\t }\n\t\n\t /**\n\t * Initialize the feature\n\t */\n\t\n\t\n\t Feature.prototype.init = function init() {\n\t throw new Error(NOTIMPLEMENTED);\n\t };\n\t\n\t /**\n\t * Reset the feature after being disabled\n\t */\n\t\n\t\n\t Feature.prototype.reset = function reset() {\n\t this.enable();\n\t this.init();\n\t };\n\t\n\t /**\n\t * Destroy the feature\n\t */\n\t\n\t\n\t Feature.prototype.destroy = function destroy() {\n\t throw new Error(NOTIMPLEMENTED);\n\t };\n\t\n\t /**\n\t * Enable the feature\n\t */\n\t\n\t\n\t Feature.prototype.enable = function enable() {\n\t this.enabled = true;\n\t };\n\t\n\t /**\n\t * Disable the feature\n\t */\n\t\n\t\n\t Feature.prototype.disable = function disable() {\n\t this.enabled = false;\n\t };\n\t\n\t /**\n\t * Indicate whether the feature is enabled or not\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t Feature.prototype.isEnabled = function isEnabled() {\n\t return this.enabled;\n\t };\n\t\n\t return Feature;\n\t}();\n\n/***/ },\n/* 11 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t/**\n\t * Filter types\n\t */\n\t\n\t/**\n\t * Input filter type\n\t * @type {String}\n\t */\n\tvar INPUT = exports.INPUT = 'input';\n\t/**\n\t * Select filter type\n\t * @type {String}\n\t */\n\tvar SELECT = exports.SELECT = 'select';\n\t/**\n\t * Multiple select filter type\n\t * @type {String}\n\t */\n\tvar MULTIPLE = exports.MULTIPLE = 'multiple';\n\t/**\n\t * Checklist filter type\n\t * @type {String}\n\t */\n\tvar CHECKLIST = exports.CHECKLIST = 'checklist';\n\t/**\n\t * None filter type\n\t * @type {String}\n\t */\n\tvar NONE = exports.NONE = 'none';\n\t\n\t/**\n\t * Key codes\n\t */\n\t\n\t/**\n\t * Enter key code\n\t * @type {Number}\n\t */\n\tvar ENTER_KEY = exports.ENTER_KEY = 13;\n\t/**\n\t * Tab key code\n\t * @type {Number}\n\t */\n\tvar TAB_KEY = exports.TAB_KEY = 9;\n\t/**\n\t * Escape key code\n\t * @type {Number}\n\t */\n\tvar ESC_KEY = exports.ESC_KEY = 27;\n\t/**\n\t * Up arrow key code\n\t * @type {Number}\n\t */\n\tvar UP_ARROW_KEY = exports.UP_ARROW_KEY = 38;\n\t/**\n\t * Down arrow key code\n\t * @type {Number}\n\t */\n\tvar DOWN_ARROW_KEY = exports.DOWN_ARROW_KEY = 40;\n\t\n\t/**\n\t * HTML tags\n\t */\n\t\n\t/**\n\t * Header cell tag\n\t * @type {String}\n\t */\n\tvar HEADER_TAG = exports.HEADER_TAG = 'TH';\n\t/**\n\t * Cell tag\n\t * @type {String}\n\t */\n\tvar CELL_TAG = exports.CELL_TAG = 'TD';\n\t\n\t/**\n\t * Data types\n\t */\n\t\n\t/**\n\t * String\n\t * @type {String}\n\t */\n\tvar STRING = exports.STRING = 'string';\n\t\n\t/**\n\t * Number\n\t * @type {String}\n\t */\n\tvar NUMBER = exports.NUMBER = 'number';\n\t\n\t/**\n\t * Formatted number\n\t * @type {String}\n\t */\n\tvar FORMATTED_NUMBER = exports.FORMATTED_NUMBER = 'formatted-number';\n\t\n\t/**\n\t * Date\n\t * @type {String}\n\t */\n\tvar DATE = exports.DATE = 'date';\n\t\n\t/**\n\t * IP address\n\t * @type {String}\n\t */\n\tvar IP_ADDRESS = exports.IP_ADDRESS = 'ipaddress';\n\t\n\t/**\n\t * Default values\n\t */\n\t\n\t/**\n\t * Auto filter delay in milliseconds\n\t * @type {Number}\n\t */\n\tvar AUTO_FILTER_DELAY = exports.AUTO_FILTER_DELAY = 750;\n\n/***/ },\n/* 12 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Loader = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar EVENTS = ['before-filtering', 'before-populating-filter', 'before-page-change', 'before-clearing-filters', 'before-page-length-change', 'before-reset-page', 'before-reset-page-length', 'before-loading-extensions', 'before-loading-themes'];\n\t\n\t/**\r\n\t * Activity indicator\r\n\t *\r\n\t * @export\r\n\t * @class Loader\r\n\t * @extends {Feature}\r\n\t */\n\t\n\tvar Loader = exports.Loader = function (_Feature) {\n\t _inherits(Loader, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of Loader.\r\n\t *\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function Loader(tf) {\n\t _classCallCheck(this, Loader);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'loader'));\n\t\n\t var f = _this.config;\n\t\n\t /**\r\n\t * ID of custom container element\r\n\t * @type {String}\r\n\t */\n\t _this.targetId = f.loader_target_id || null;\n\t\n\t /**\r\n\t * Loader container DOM element\r\n\t * @type {DOMElement}\r\n\t */\n\t _this.cont = null;\n\t\n\t /**\r\n\t * Text displayed when indicator is visible\r\n\t * @type {String}\r\n\t */\n\t _this.text = f.loader_text || 'Loading...';\n\t\n\t /**\r\n\t * Custom HTML injected in Loader's container element\r\n\t * @type {String}\r\n\t */\n\t _this.html = f.loader_html || null;\n\t\n\t /**\r\n\t * Css class for Loader's container element\r\n\t * @type {String}\r\n\t */\n\t _this.cssClass = f.loader_css_class || 'loader';\n\t\n\t /**\r\n\t * Close delay in milliseconds\r\n\t * @type {Number}\r\n\t */\n\t _this.closeDelay = 250;\n\t\n\t /**\r\n\t * Callback fired when loader is displayed\r\n\t * @type {Function}\r\n\t */\n\t _this.onShow = (0, _types.isFn)(f.on_show_loader) ? f.on_show_loader : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired when loader is closed\r\n\t * @type {Function}\r\n\t */\n\t _this.onHide = (0, _types.isFn)(f.on_hide_loader) ? f.on_hide_loader : _types.EMPTY_FN;\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Initializes Loader instance\r\n\t */\n\t\n\t\n\t Loader.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t var emitter = this.emitter;\n\t\n\t var containerDiv = (0, _dom.createElm)('div');\n\t containerDiv.className = this.cssClass;\n\t\n\t var targetEl = !this.targetId ? tf.tbl.parentNode : (0, _dom.elm)(this.targetId);\n\t if (!this.targetId) {\n\t targetEl.insertBefore(containerDiv, tf.tbl);\n\t } else {\n\t targetEl.appendChild(containerDiv);\n\t }\n\t this.cont = containerDiv;\n\t if (!this.html) {\n\t this.cont.appendChild((0, _dom.createText)(this.text));\n\t } else {\n\t this.cont.innerHTML = this.html;\n\t }\n\t\n\t this.show(_const.NONE);\n\t\n\t // Subscribe to events\n\t emitter.on(EVENTS, function () {\n\t return _this2.show('');\n\t });\n\t emitter.on(EVENTS, function () {\n\t return _this2.show(_const.NONE);\n\t });\n\t\n\t /**\r\n\t * @inherited\r\n\t */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Shows or hides activity indicator\r\n\t * @param {String} Two possible values: '' or 'none'\r\n\t */\n\t\n\t\n\t Loader.prototype.show = function show(p) {\n\t var _this3 = this;\n\t\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t\n\t var displayLoader = function displayLoader() {\n\t if (!_this3.cont) {\n\t return;\n\t }\n\t if (p !== _const.NONE) {\n\t _this3.onShow(_this3);\n\t }\n\t _this3.cont.style.display = p;\n\t if (p === _const.NONE) {\n\t _this3.onHide(_this3);\n\t }\n\t };\n\t\n\t var t = p === _const.NONE ? this.closeDelay : 1;\n\t _root.root.setTimeout(displayLoader, t);\n\t };\n\t\n\t /**\r\n\t * Removes feature\r\n\t */\n\t\n\t\n\t Loader.prototype.destroy = function destroy() {\n\t var _this4 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t var emitter = this.emitter;\n\t\n\t (0, _dom.removeElm)(this.cont);\n\t this.cont = null;\n\t\n\t // Unsubscribe to events\n\t emitter.off(EVENTS, function () {\n\t return _this4.show('');\n\t });\n\t emitter.off(EVENTS, function () {\n\t return _this4.show(_const.NONE);\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return Loader;\n\t}(_feature.Feature);\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.HighlightKeyword = undefined;\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/**\r\n\t * Highlight matched keywords upon filtering\r\n\t *\r\n\t * @export\r\n\t * @class HighlightKeyword\r\n\t */\n\tvar HighlightKeyword = exports.HighlightKeyword = function () {\n\t\n\t /**\r\n\t * Creates an instance of HighlightKeyword\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function HighlightKeyword(tf) {\n\t _classCallCheck(this, HighlightKeyword);\n\t\n\t var f = tf.config();\n\t\n\t /**\r\n\t * Css class for highlighted term\r\n\t * @type {String}\r\n\t */\n\t this.highlightCssClass = f.highlight_css_class || 'keyword';\n\t\n\t /**\r\n\t * TableFilter instance\r\n\t * @type {TableFilter}\r\n\t */\n\t this.tf = tf;\n\t\n\t /**\r\n\t * TableFilter's emitter instance\r\n\t * @type {Emitter}\r\n\t */\n\t this.emitter = tf.emitter;\n\t }\n\t\n\t /**\r\n\t * Initializes HighlightKeyword instance\r\n\t */\n\t\n\t\n\t HighlightKeyword.prototype.init = function init() {\n\t var _this = this;\n\t\n\t this.emitter.on(['before-filtering', 'destroy'], function () {\n\t return _this.unhighlightAll();\n\t });\n\t this.emitter.on(['highlight-keyword'], function (tf, cell, term) {\n\t return _this._processTerm(cell, term);\n\t });\n\t };\n\t\n\t /**\r\n\t * Highlight occurences of searched term in passed node\r\n\t * @param {Node} node\r\n\t * @param {String} term Searched term\r\n\t * @param {String} cssClass Css class name\r\n\t *\r\n\t * TODO: refactor this method\r\n\t */\n\t\n\t\n\t HighlightKeyword.prototype.highlight = function highlight(node, term, cssClass) {\n\t // Iterate into this nodes childNodes\n\t if (node.hasChildNodes) {\n\t var children = node.childNodes;\n\t for (var i = 0; i < children.length; i++) {\n\t this.highlight(children[i], term, cssClass);\n\t }\n\t }\n\t\n\t if (node.nodeType === 3) {\n\t var nodeVal = node.nodeValue.toLowerCase();\n\t var termIdx = nodeVal.indexOf(term.toLowerCase());\n\t\n\t if (termIdx !== -1) {\n\t var pn = node.parentNode;\n\t if (pn && pn.className !== cssClass) {\n\t // term not highlighted yet\n\t var nv = node.nodeValue,\n\t\n\t // Create a load of replacement nodes\n\t before = (0, _dom.createText)(nv.substr(0, termIdx)),\n\t value = nv.substr(termIdx, term.length),\n\t after = (0, _dom.createText)(nv.substr(termIdx + term.length)),\n\t text = (0, _dom.createText)(value),\n\t container = (0, _dom.createElm)('span');\n\t container.className = cssClass;\n\t container.appendChild(text);\n\t pn.insertBefore(before, node);\n\t pn.insertBefore(container, node);\n\t pn.insertBefore(after, node);\n\t pn.removeChild(node);\n\t }\n\t }\n\t }\n\t };\n\t\n\t /**\r\n\t * Removes highlight to nodes matching passed string\r\n\t * @param {String} term\r\n\t * @param {String} cssClass Css class to remove\r\n\t */\n\t\n\t\n\t HighlightKeyword.prototype.unhighlight = function unhighlight(term, cssClass) {\n\t var highlightedNodes = this.tf.tbl.querySelectorAll('.' + cssClass);\n\t for (var i = 0; i < highlightedNodes.length; i++) {\n\t var n = highlightedNodes[i];\n\t var nodeVal = (0, _dom.getText)(n);\n\t\n\t if (nodeVal.toLowerCase().indexOf(term.toLowerCase()) !== -1) {\n\t var parentNode = n.parentNode;\n\t parentNode.replaceChild((0, _dom.createText)(nodeVal), n);\n\t parentNode.normalize();\n\t }\n\t }\n\t };\n\t\n\t /**\r\n\t * Clear all occurrences of highlighted nodes\r\n\t */\n\t\n\t\n\t HighlightKeyword.prototype.unhighlightAll = function unhighlightAll() {\n\t var _this2 = this;\n\t\n\t if (!this.tf.highlightKeywords) {\n\t return;\n\t }\n\t // iterate filters values to unhighlight all values\n\t this.tf.getFiltersValue().forEach(function (val) {\n\t if ((0, _types.isArray)(val)) {\n\t val.forEach(function (item) {\n\t return _this2.unhighlight(item, _this2.highlightCssClass);\n\t });\n\t } else {\n\t _this2.unhighlight(val, _this2.highlightCssClass);\n\t }\n\t });\n\t };\n\t\n\t /** Remove feature */\n\t\n\t\n\t HighlightKeyword.prototype.destroy = function destroy() {\n\t var _this3 = this;\n\t\n\t this.emitter.off(['before-filtering', 'destroy'], function () {\n\t return _this3.unhighlightAll();\n\t });\n\t this.emitter.off(['highlight-keyword'], function (tf, cell, term) {\n\t return _this3._processTerm(cell, term);\n\t });\n\t };\n\t\n\t /**\r\n\t * Ensure filtering operators are handled before highlighting any match\r\n\t * @param {any} Table cell to look searched term into\r\n\t * @param {any} Searched termIdx\r\n\t */\n\t\n\t\n\t HighlightKeyword.prototype._processTerm = function _processTerm(cell, term) {\n\t var tf = this.tf;\n\t var reLk = new RegExp((0, _string.rgxEsc)(tf.lkOperator));\n\t var reEq = new RegExp(tf.eqOperator);\n\t var reSt = new RegExp(tf.stOperator);\n\t var reEn = new RegExp(tf.enOperator);\n\t var reLe = new RegExp(tf.leOperator);\n\t var reGe = new RegExp(tf.geOperator);\n\t var reL = new RegExp(tf.lwOperator);\n\t var reG = new RegExp(tf.grOperator);\n\t var reD = new RegExp(tf.dfOperator);\n\t\n\t term = term.replace(reLk, '').replace(reEq, '').replace(reSt, '').replace(reEn, '');\n\t\n\t if (reLe.test(term) || reGe.test(term) || reL.test(term) || reG.test(term) || reD.test(term)) {\n\t term = (0, _dom.getText)(cell);\n\t }\n\t\n\t if (term === '') {\n\t return;\n\t }\n\t\n\t this.highlight(cell, term, this.highlightCssClass);\n\t };\n\t\n\t return HighlightKeyword;\n\t}();\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.PopupFilter = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\r\n\t * Pop-up filter component\r\n\t * @export\r\n\t * @class PopupFilter\r\n\t * @extends {Feature}\r\n\t */\n\tvar PopupFilter = exports.PopupFilter = function (_Feature) {\n\t _inherits(PopupFilter, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of PopupFilter\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function PopupFilter(tf) {\n\t _classCallCheck(this, PopupFilter);\n\t\n\t // Configuration object\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'popupFilters'));\n\t\n\t var f = _this.config;\n\t\n\t // Enable external filters\n\t tf.isExternalFlt = true;\n\t tf.externalFltTgtIds = [];\n\t\n\t /**\r\n\t * Close active popup filter upon filtering, enabled by default\r\n\t * @type {Boolean}\r\n\t */\n\t _this.closeOnFiltering = f.popup_filters_close_on_filtering === false ? false : true;\n\t\n\t /**\r\n\t * Filter icon path\r\n\t * @type {String}\r\n\t */\n\t _this.iconPath = f.popup_filters_image || tf.themesPath + 'icn_filter.gif';\n\t\n\t /**\r\n\t * Active filter icon path\r\n\t * @type {string}\r\n\t */\n\t _this.activeIconPath = f.popup_filters_image_active || tf.themesPath + 'icn_filterActive.gif';\n\t\n\t /**\r\n\t * HTML for the filter icon\r\n\t * @type {string}\r\n\t */\n\t _this.iconHtml = f.popup_filters_image_html || '\"Column';\n\t\n\t /**\r\n\t * Css class assigned to filter container element\r\n\t * @type {String}\r\n\t */\n\t _this.containerCssClass = f.popup_div_css_class || 'popUpFilter';\n\t\n\t /**\r\n\t * Ensure filter's container element width matches column width, enabled\r\n\t * by default\r\n\t * @type {Boolean}\r\n\t */\n\t _this.adjustToContainer = f.popup_filters_adjust_to_container === false ? false : true;\n\t\n\t /**\r\n\t * Callback fired before a popup filter is opened\r\n\t * @type {Function}\r\n\t */\n\t _this.onBeforeOpen = (0, _types.isFn)(f.on_before_popup_filter_open) ? f.on_before_popup_filter_open : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired after a popup filter is opened\r\n\t * @type {Function}\r\n\t */\n\t _this.onAfterOpen = (0, _types.isFn)(f.on_after_popup_filter_open) ? f.on_after_popup_filter_open : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired before a popup filter is closed\r\n\t * @type {Function}\r\n\t */\n\t _this.onBeforeClose = (0, _types.isFn)(f.on_before_popup_filter_close) ? f.on_before_popup_filter_close : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired after a popup filter is closed\r\n\t * @type {Function}\r\n\t */\n\t _this.onAfterClose = (0, _types.isFn)(f.on_after_popup_filter_close) ? f.on_after_popup_filter_close : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Collection of filters spans\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.fltSpans = [];\n\t\n\t /**\r\n\t * Collection of filters icons\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.fltIcons = [];\n\t\n\t /**\r\n\t * Collection of filters icons cached after pop-up filters are removed\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.filtersCache = null;\n\t\n\t /**\r\n\t * Collection of filters containers\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.fltElms = _this.filtersCache || [];\n\t\n\t /**\r\n\t * Prefix for pop-up filter container ID\r\n\t * @type {String}\r\n\t * @private\r\n\t */\n\t _this.prfxDiv = 'popup_';\n\t\n\t /**\r\n\t * Column index of popup filter currently active\r\n\t * @type {Number}\r\n\t * @private\r\n\t */\n\t _this.activeFilterIdx = -1;\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Click event handler for pop-up filter icon\r\n\t * @private\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.onClick = function onClick(evt) {\n\t var elm = (0, _event.targetEvt)(evt).parentNode;\n\t var colIndex = parseInt(elm.getAttribute('ci'), 10);\n\t\n\t this.closeAll(colIndex);\n\t this.toggle(colIndex);\n\t\n\t if (this.adjustToContainer) {\n\t var cont = this.fltElms[colIndex],\n\t header = this.tf.getHeaderElement(colIndex),\n\t headerWidth = header.clientWidth * 0.95;\n\t cont.style.width = parseInt(headerWidth, 10) + 'px';\n\t }\n\t (0, _event.cancelEvt)(evt);\n\t (0, _event.stopEvt)(evt);\n\t };\n\t\n\t /**\r\n\t * Mouse-up event handler handling popup filter auto-close behaviour\r\n\t * @private\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.onMouseup = function onMouseup(evt) {\n\t if (this.activeFilterIdx === -1) {\n\t return;\n\t }\n\t var targetElm = (0, _event.targetEvt)(evt);\n\t var activeFlt = this.fltElms[this.activeFilterIdx];\n\t var icon = this.fltIcons[this.activeFilterIdx];\n\t\n\t if (icon === targetElm) {\n\t return;\n\t }\n\t\n\t while (targetElm && targetElm !== activeFlt) {\n\t targetElm = targetElm.parentNode;\n\t }\n\t\n\t if (targetElm !== activeFlt) {\n\t this.close(this.activeFilterIdx);\n\t }\n\t\n\t return;\n\t };\n\t\n\t /**\r\n\t * Initialize DOM elements\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t\n\t // Override headers row index if no grouped headers\n\t // TODO: Because of the filters row generation, headers row index needs\n\t // adjusting: prevent useless row generation\n\t if (tf.headersRow <= 1 && isNaN(tf.config().headers_row_index)) {\n\t tf.headersRow = 0;\n\t }\n\t\n\t // Adjust headers row index for grid-layout mode\n\t // TODO: Because of the filters row generation, headers row index needs\n\t // adjusting: prevent useless row generation\n\t if (tf.gridLayout) {\n\t tf.headersRow--;\n\t this.buildIcons();\n\t }\n\t\n\t // subscribe to events\n\t this.emitter.on(['before-filtering'], function () {\n\t return _this2.setIconsState();\n\t });\n\t this.emitter.on(['after-filtering'], function () {\n\t return _this2.closeAll();\n\t });\n\t this.emitter.on(['cell-processed'], function (tf, cellIndex) {\n\t return _this2.changeState(cellIndex, true);\n\t });\n\t this.emitter.on(['filters-row-inserted'], function () {\n\t return _this2.buildIcons();\n\t });\n\t this.emitter.on(['before-filter-init'], function (tf, colIndex) {\n\t return _this2.build(colIndex);\n\t });\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Reset previously destroyed feature\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.reset = function reset() {\n\t this.enable();\n\t this.init();\n\t this.buildIcons();\n\t this.buildAll();\n\t };\n\t\n\t /**\r\n\t * Build all filters icons\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.buildIcons = function buildIcons() {\n\t var _this3 = this;\n\t\n\t var tf = this.tf;\n\t\n\t // TODO: Because of the filters row generation, headers row index needs\n\t // adjusting: prevent useless row generation\n\t tf.headersRow++;\n\t\n\t for (var i = 0; i < tf.nbCells; i++) {\n\t if (tf.getFilterType(i) === _const.NONE) {\n\t continue;\n\t }\n\t var icon = (0, _dom.createElm)('span', ['ci', i]);\n\t icon.innerHTML = this.iconHtml;\n\t var header = tf.getHeaderElement(i);\n\t header.appendChild(icon);\n\t (0, _event.addEvt)(icon, 'click', function (evt) {\n\t return _this3.onClick(evt);\n\t });\n\t this.fltSpans[i] = icon;\n\t this.fltIcons[i] = icon.firstChild;\n\t }\n\t };\n\t\n\t /**\r\n\t * Build all pop-up filters elements\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.buildAll = function buildAll() {\n\t for (var i = 0; i < this.filtersCache.length; i++) {\n\t this.build(i, this.filtersCache[i]);\n\t }\n\t };\n\t\n\t /**\r\n\t * Build a specified pop-up filter elements\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Object} div Optional container DOM element\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.build = function build(colIndex, div) {\n\t var tf = this.tf;\n\t var contId = '' + this.prfxDiv + tf.id + '_' + colIndex;\n\t var cont = div || (0, _dom.createElm)('div', ['id', contId]);\n\t cont.className = this.containerCssClass;\n\t tf.externalFltTgtIds.push(cont.id);\n\t\n\t var header = tf.getHeaderElement(colIndex);\n\t header.insertBefore(cont, header.firstChild);\n\t (0, _event.addEvt)(cont, 'click', function (evt) {\n\t return (0, _event.stopEvt)(evt);\n\t });\n\t this.fltElms[colIndex] = cont;\n\t };\n\t\n\t /**\r\n\t * Toggle visibility of specified filter\r\n\t * @param {Number} colIndex Column index\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.toggle = function toggle(colIndex) {\n\t if (!this.isOpen(colIndex)) {\n\t this.open(colIndex);\n\t } else {\n\t this.close(colIndex);\n\t }\n\t };\n\t\n\t /**\r\n\t * Open popup filter of specified column\r\n\t * @param {Number} colIndex Column index\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.open = function open(colIndex) {\n\t var _this4 = this;\n\t\n\t var tf = this.tf,\n\t container = this.fltElms[colIndex];\n\t\n\t this.onBeforeOpen(this, container, colIndex);\n\t\n\t container.style.display = 'block';\n\t this.activeFilterIdx = colIndex;\n\t (0, _event.addEvt)(_root.root, 'mouseup', function (evt) {\n\t return _this4.onMouseup(evt);\n\t });\n\t\n\t if (tf.getFilterType(colIndex) === _const.INPUT) {\n\t var flt = tf.getFilterElement(colIndex);\n\t if (flt) {\n\t flt.focus();\n\t }\n\t }\n\t\n\t this.onAfterOpen(this, container, colIndex);\n\t };\n\t\n\t /**\r\n\t * Close popup filter of specified column\r\n\t * @param {Number} colIndex Column index\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.close = function close(colIndex) {\n\t var _this5 = this;\n\t\n\t var container = this.fltElms[colIndex];\n\t\n\t this.onBeforeClose(this, container, colIndex);\n\t\n\t container.style.display = _const.NONE;\n\t if (this.activeFilterIdx === colIndex) {\n\t this.activeFilterIdx = -1;\n\t }\n\t (0, _event.removeEvt)(_root.root, 'mouseup', function (evt) {\n\t return _this5.onMouseup(evt);\n\t });\n\t\n\t this.onAfterClose(this, container, colIndex);\n\t };\n\t\n\t /**\r\n\t * Check if popup filter for specified column is open\r\n\t * @param {Number} colIndex Column index\r\n\t * @returns {Boolean}\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.isOpen = function isOpen(colIndex) {\n\t return this.fltElms[colIndex].style.display === 'block';\n\t };\n\t\n\t /**\r\n\t * Close all filters excepted for the specified one if any\r\n\t * @param {Number} exceptIdx Column index of the filter to not close\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.closeAll = function closeAll(exceptIdx) {\n\t // Do not close filters only if argument is undefined and close on\n\t // filtering option is disabled\n\t if ((0, _types.isUndef)(exceptIdx) && !this.closeOnFiltering) {\n\t return;\n\t }\n\t for (var i = 0; i < this.fltElms.length; i++) {\n\t if (i === exceptIdx) {\n\t continue;\n\t }\n\t var fltType = tf.getFilterType(i);\n\t var isMultipleFilter = fltType === _const.CHECKLIST || fltType === _const.MULTIPLE;\n\t\n\t // Always hide all single selection filter types but hide multiple\n\t // selection filter types only if index set\n\t if (!isMultipleFilter || !(0, _types.isUndef)(exceptIdx)) {\n\t this.close(i);\n\t }\n\t }\n\t };\n\t\n\t /**\r\n\t * Build all the icons representing the pop-up filters\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.setIconsState = function setIconsState() {\n\t for (var i = 0; i < this.fltIcons.length; i++) {\n\t this.changeState(i, false);\n\t }\n\t };\n\t\n\t /**\r\n\t * Apply specified icon state\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Boolean} active Apply active state\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.changeState = function changeState(colIndex, active) {\n\t var icon = this.fltIcons[colIndex];\n\t if (icon) {\n\t icon.src = active ? this.activeIconPath : this.iconPath;\n\t }\n\t };\n\t\n\t /**\r\n\t * Remove pop-up filters\r\n\t */\n\t\n\t\n\t PopupFilter.prototype.destroy = function destroy() {\n\t var _this6 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t this.filtersCache = [];\n\t for (var i = 0; i < this.fltElms.length; i++) {\n\t var container = this.fltElms[i],\n\t icon = this.fltSpans[i],\n\t iconImg = this.fltIcons[i];\n\t if (container) {\n\t (0, _dom.removeElm)(container);\n\t this.filtersCache[i] = container;\n\t }\n\t container = null;\n\t if (icon) {\n\t (0, _dom.removeElm)(icon);\n\t }\n\t icon = null;\n\t if (iconImg) {\n\t (0, _dom.removeElm)(iconImg);\n\t }\n\t iconImg = null;\n\t }\n\t this.fltElms = [];\n\t this.fltSpans = [];\n\t this.fltIcons = [];\n\t\n\t // TODO: expose an API to handle external filter IDs\n\t tf.externalFltTgtIds = [];\n\t\n\t // unsubscribe to events\n\t this.emitter.off(['before-filtering'], function () {\n\t return _this6.setIconsState();\n\t });\n\t this.emitter.off(['after-filtering'], function () {\n\t return _this6.closeAll();\n\t });\n\t this.emitter.off(['cell-processed'], function (tf, cellIndex) {\n\t return _this6.changeState(cellIndex, true);\n\t });\n\t this.emitter.off(['filters-row-inserted'], function () {\n\t return _this6.buildIcons();\n\t });\n\t this.emitter.off(['before-filter-init'], function (tf, colIndex) {\n\t return _this6.build(colIndex);\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return PopupFilter;\n\t}(_feature.Feature);\n\n/***/ },\n/* 15 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Dropdown = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _array = __webpack_require__(16);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\tvar _sort = __webpack_require__(17);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar SORT_ERROR = 'Filter options for column {0} cannot be sorted in ' + '{1} manner.';\n\t\n\t/**\r\n\t * Dropdown filter UI component\r\n\t */\n\t\n\tvar Dropdown = exports.Dropdown = function (_Feature) {\n\t _inherits(Dropdown, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of Dropdown\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function Dropdown(tf) {\n\t _classCallCheck(this, Dropdown);\n\t\n\t // Configuration object\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'dropdown'));\n\t\n\t var f = _this.config;\n\t\n\t /**\r\n\t * Enable the reset filter option as first item\r\n\t * @type {Boolean}\r\n\t */\n\t _this.enableSlcResetFilter = f.enable_slc_reset_filter === false ? false : true;\n\t\n\t /**\r\n\t * Non empty option text\r\n\t * @type {String}\r\n\t */\n\t _this.nonEmptyText = f.non_empty_text || '(Non empty)';\n\t\n\t /**\r\n\t * Tooltip text appearing on multiple select\r\n\t * @type {String}\r\n\t */\n\t _this.multipleSlcTooltip = f.multiple_slc_tooltip || 'Use Ctrl/Cmd key for multiple selections';\n\t\n\t /**\r\n\t * Indicates drop-down has custom options\r\n\t * @private\r\n\t */\n\t _this.isCustom = null;\n\t\n\t /**\r\n\t * List of options values\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.opts = null;\n\t\n\t /**\r\n\t * List of options texts for custom values\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.optsTxt = null;\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Drop-down filter focus event handler\r\n\t * @param {Event} e DOM Event\r\n\t * @private\r\n\t */\n\t\n\t\n\t Dropdown.prototype.onSlcFocus = function onSlcFocus(e) {\n\t var elm = (0, _event.targetEvt)(e);\n\t var tf = this.tf;\n\t // select is populated when element has focus\n\t if (tf.loadFltOnDemand && elm.getAttribute('filled') === '0') {\n\t var ct = elm.getAttribute('ct');\n\t this.build(ct);\n\t }\n\t this.emitter.emit('filter-focus', tf, elm);\n\t };\n\t\n\t /**\r\n\t * Drop-down filter change event handler\r\n\t * @private\r\n\t */\n\t\n\t\n\t Dropdown.prototype.onSlcChange = function onSlcChange() {\n\t if (this.tf.onSlcChange) {\n\t this.tf.filter();\n\t }\n\t };\n\t\n\t /**\r\n\t * Refresh all drop-down filters\r\n\t */\n\t\n\t\n\t Dropdown.prototype.refreshAll = function refreshAll() {\n\t var _this2 = this;\n\t\n\t var tf = this.tf;\n\t var selectFlts = tf.getFiltersByType(_const.SELECT, true);\n\t var multipleFlts = tf.getFiltersByType(_const.MULTIPLE, true);\n\t var flts = selectFlts.concat(multipleFlts);\n\t flts.forEach(function (colIdx) {\n\t var values = _this2.getValues(colIdx);\n\t _this2.build(colIdx, tf.linkedFilters);\n\t _this2.selectOptions(colIdx, values);\n\t });\n\t };\n\t\n\t /**\r\n\t * Initialize drop-down filter\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Boolean} isExternal External filter flag\r\n\t * @param {DOMElement} container Dom element containing the filter\r\n\t */\n\t\n\t\n\t Dropdown.prototype.init = function init(colIndex, isExternal, container) {\n\t var _this3 = this;\n\t\n\t var tf = this.tf;\n\t var col = tf.getFilterType(colIndex);\n\t var externalFltTgtId = isExternal ? tf.externalFltTgtIds[colIndex] : null;\n\t\n\t var slc = (0, _dom.createElm)(_const.SELECT, ['id', tf.buildFilterId(colIndex)], ['ct', colIndex], ['filled', '0']);\n\t\n\t if (col === _const.MULTIPLE) {\n\t slc.multiple = _const.MULTIPLE;\n\t slc.title = this.multipleSlcTooltip;\n\t }\n\t slc.className = col.toLowerCase() === _const.SELECT ? tf.fltCssClass : tf.fltMultiCssClass;\n\t\n\t //filter is appended in container element\n\t if (externalFltTgtId) {\n\t (0, _dom.elm)(externalFltTgtId).appendChild(slc);\n\t } else {\n\t container.appendChild(slc);\n\t }\n\t\n\t tf.fltIds.push(slc.id);\n\t\n\t if (!tf.loadFltOnDemand) {\n\t this.build(colIndex);\n\t } else {\n\t //1st option is created here since build isn't invoked\n\t var opt0 = (0, _dom.createOpt)(tf.getClearFilterText(colIndex), '');\n\t slc.appendChild(opt0);\n\t }\n\t\n\t (0, _event.addEvt)(slc, 'change', function () {\n\t return _this3.onSlcChange();\n\t });\n\t (0, _event.addEvt)(slc, 'focus', function (e) {\n\t return _this3.onSlcFocus(e);\n\t });\n\t\n\t this.emitter.on(['build-select-filter'], function (tf, colIndex, isLinked, isExternal) {\n\t return _this3.build(colIndex, isLinked, isExternal);\n\t });\n\t this.emitter.on(['select-options'], function (tf, colIndex, values) {\n\t return _this3.selectOptions(colIndex, values);\n\t });\n\t this.emitter.on(['rows-changed'], function () {\n\t return _this3.refreshAll();\n\t });\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Build drop-down filter UI\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Boolean} isLinked Enable linked filters behaviour\r\n\t */\n\t\n\t\n\t Dropdown.prototype.build = function build(colIndex) {\n\t var isLinked = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t\n\t var tf = this.tf;\n\t colIndex = parseInt(colIndex, 10);\n\t\n\t this.emitter.emit('before-populating-filter', tf, colIndex);\n\t\n\t this.opts = [];\n\t this.optsTxt = [];\n\t\n\t var slcId = tf.fltIds[colIndex];\n\t var slc = (0, _dom.elm)(slcId);\n\t var rows = tf.tbl.rows;\n\t var nbRows = tf.getRowsNb(true);\n\t\n\t //custom select test\n\t this.isCustom = tf.isCustomOptions(colIndex);\n\t\n\t //custom selects text\n\t var activeIdx = void 0;\n\t var activeFilterId = tf.getActiveFilterId();\n\t if (isLinked && activeFilterId) {\n\t activeIdx = tf.getColumnIndexFromFilterId(activeFilterId);\n\t }\n\t\n\t var excludedOpts = null,\n\t filteredDataCol = null;\n\t if (isLinked && tf.disableExcludedOptions) {\n\t excludedOpts = [];\n\t filteredDataCol = [];\n\t }\n\t\n\t for (var k = tf.refRow; k < nbRows; k++) {\n\t // always visible rows don't need to appear on selects as always\n\t // valid\n\t if (tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1) {\n\t continue;\n\t }\n\t\n\t var cell = rows[k].cells,\n\t nchilds = cell.length;\n\t\n\t // checks if row has exact cell #\n\t if (nchilds !== tf.nbCells || this.isCustom) {\n\t continue;\n\t }\n\t\n\t // this loop retrieves cell data\n\t for (var j = 0; j < nchilds; j++) {\n\t if (colIndex !== j) {\n\t continue;\n\t }\n\t if (isLinked && !tf.disableExcludedOptions && !tf.paging && !tf.isRowDisplayed(k) || tf.paging && activeIdx && !tf.isRowValid(k)) {\n\t continue;\n\t }\n\t\n\t var cellValue = tf.getCellValue(cell[j]),\n\t\n\t //Vary Peter's patch\n\t cellString = (0, _string.matchCase)(cellValue, tf.caseSensitive);\n\t\n\t // checks if celldata is already in array\n\t if (!(0, _array.has)(this.opts, cellString, tf.caseSensitive)) {\n\t this.opts.push(cellValue);\n\t }\n\t\n\t if (isLinked && tf.disableExcludedOptions) {\n\t var filteredCol = filteredDataCol[j];\n\t if (!filteredCol) {\n\t filteredCol = tf.getFilteredDataCol(j);\n\t }\n\t if (!(0, _array.has)(filteredCol, cellString, tf.caseSensitive) && !(0, _array.has)(excludedOpts, cellString, tf.caseSensitive)) {\n\t excludedOpts.push(cellValue);\n\t }\n\t }\n\t } //for j\n\t } //for k\n\t\n\t //Retrieves custom values\n\t if (this.isCustom) {\n\t var customValues = tf.getCustomOptions(colIndex);\n\t this.opts = customValues[0];\n\t this.optsTxt = customValues[1];\n\t }\n\t\n\t if (tf.sortSlc && !this.isCustom) {\n\t if (!tf.caseSensitive) {\n\t this.opts.sort(_sort.ignoreCase);\n\t if (excludedOpts) {\n\t excludedOpts.sort(_sort.ignoreCase);\n\t }\n\t } else {\n\t this.opts.sort();\n\t if (excludedOpts) {\n\t excludedOpts.sort();\n\t }\n\t }\n\t }\n\t\n\t //asc sort\n\t if (tf.sortNumAsc.indexOf(colIndex) !== -1) {\n\t try {\n\t this.opts.sort(_sort.numSortAsc);\n\t if (excludedOpts) {\n\t excludedOpts.sort(_sort.numSortAsc);\n\t }\n\t if (this.isCustom) {\n\t this.optsTxt.sort(_sort.numSortAsc);\n\t }\n\t } catch (e) {\n\t throw new Error(SORT_ERROR.replace('{0}', colIndex).replace('{1}', 'ascending'));\n\t } //in case there are alphanumeric values\n\t }\n\t //desc sort\n\t if (tf.sortNumDesc.indexOf(colIndex) !== -1) {\n\t try {\n\t this.opts.sort(_sort.numSortDesc);\n\t if (excludedOpts) {\n\t excludedOpts.sort(_sort.numSortDesc);\n\t }\n\t if (this.isCustom) {\n\t this.optsTxt.sort(_sort.numSortDesc);\n\t }\n\t } catch (e) {\n\t throw new Error(SORT_ERROR.replace('{0}', colIndex).replace('{1}', 'ascending'));\n\t } //in case there are alphanumeric values\n\t }\n\t\n\t //populates drop-down\n\t this.addOptions(colIndex, slc, isLinked, excludedOpts);\n\t\n\t this.emitter.emit('after-populating-filter', tf, colIndex, slc);\n\t };\n\t\n\t /**\r\n\t * Add drop-down options\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Object} slc Select Dom element\r\n\t * @param {Boolean} isLinked Enable linked refresh behaviour\r\n\t * @param {Array} excludedOpts Array of excluded options\r\n\t */\n\t\n\t\n\t Dropdown.prototype.addOptions = function addOptions(colIndex, slc, isLinked, excludedOpts) {\n\t var tf = this.tf,\n\t slcValue = slc.value;\n\t\n\t slc.innerHTML = '';\n\t slc = this.addFirstOption(slc);\n\t\n\t for (var y = 0; y < this.opts.length; y++) {\n\t if (this.opts[y] === '') {\n\t continue;\n\t }\n\t var val = this.opts[y]; //option value\n\t var lbl = this.isCustom ? this.optsTxt[y] : val; //option text\n\t var isDisabled = false;\n\t if (isLinked && tf.disableExcludedOptions && (0, _array.has)(excludedOpts, (0, _string.matchCase)(val, tf.caseSensitive), tf.caseSensitive)) {\n\t isDisabled = true;\n\t }\n\t\n\t var opt = void 0;\n\t //fill select on demand\n\t if (tf.loadFltOnDemand && slcValue === this.opts[y] && tf.getFilterType(colIndex) === _const.SELECT) {\n\t opt = (0, _dom.createOpt)(lbl, val, true);\n\t } else {\n\t opt = (0, _dom.createOpt)(lbl, val, false);\n\t }\n\t if (isDisabled) {\n\t opt.disabled = true;\n\t }\n\t slc.appendChild(opt);\n\t } // for y\n\t\n\t slc.setAttribute('filled', '1');\n\t };\n\t\n\t /**\r\n\t * Add drop-down header option\r\n\t * @param {Object} slc Select DOM element\r\n\t */\n\t\n\t\n\t Dropdown.prototype.addFirstOption = function addFirstOption(slc) {\n\t var tf = this.tf;\n\t var colIdx = tf.getColumnIndexFromFilterId(slc.id);\n\t var opt0 = (0, _dom.createOpt)(!this.enableSlcResetFilter ? '' : tf.getClearFilterText(colIdx), '');\n\t if (!this.enableSlcResetFilter) {\n\t opt0.style.display = _const.NONE;\n\t }\n\t slc.appendChild(opt0);\n\t if (tf.enableEmptyOption) {\n\t var opt1 = (0, _dom.createOpt)(tf.emptyText, tf.emOperator);\n\t slc.appendChild(opt1);\n\t }\n\t if (tf.enableNonEmptyOption) {\n\t var opt2 = (0, _dom.createOpt)(tf.nonEmptyText, tf.nmOperator);\n\t slc.appendChild(opt2);\n\t }\n\t return slc;\n\t };\n\t\n\t /**\r\n\t * Select filter options programmatically\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Array} values Array of option values to select\r\n\t */\n\t\n\t\n\t Dropdown.prototype.selectOptions = function selectOptions(colIndex) {\n\t var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\t\n\t var tf = this.tf;\n\t if (values.length === 0) {\n\t return;\n\t }\n\t var slc = tf.getFilterElement(colIndex);\n\t [].forEach.call(slc.options, function (option) {\n\t // Empty value means clear all selections and first option is the\n\t // clear all option\n\t if (values[0] === '' || option.value === '') {\n\t option.selected = false;\n\t }\n\t\n\t if (option.value !== '' && (0, _array.has)(values, option.value, true)) {\n\t option.selected = true;\n\t } //if\n\t });\n\t };\n\t\n\t /**\r\n\t * Get filter values for a given column index\r\n\t * @param {Number} colIndex Column index\r\n\t * @returns {Array} values Array of selected values\r\n\t */\n\t\n\t\n\t Dropdown.prototype.getValues = function getValues(colIndex) {\n\t var tf = this.tf;\n\t var slc = tf.getFilterElement(colIndex);\n\t var values = [];\n\t\n\t // IE >= 9 does not support the selectedOptions property :(\n\t if (slc.selectedOptions) {\n\t [].forEach.call(slc.selectedOptions, function (option) {\n\t return values.push(option.value);\n\t });\n\t } else {\n\t [].forEach.call(slc.options, function (option) {\n\t if (option.selected) {\n\t values.push(option.value);\n\t }\n\t });\n\t }\n\t\n\t return values;\n\t };\n\t\n\t /**\r\n\t * Destroy Dropdown instance\r\n\t */\n\t\n\t\n\t Dropdown.prototype.destroy = function destroy() {\n\t var _this4 = this;\n\t\n\t this.emitter.off(['build-select-filter'], function (colIndex, isLinked, isExternal) {\n\t return _this4.build(colIndex, isLinked, isExternal);\n\t });\n\t this.emitter.off(['select-options'], function (tf, colIndex, values) {\n\t return _this4.selectOptions(colIndex, values);\n\t });\n\t this.emitter.off(['rows-changed'], function () {\n\t return _this4.refreshAll();\n\t });\n\t this.initialized = false;\n\t };\n\t\n\t return Dropdown;\n\t}(_feature.Feature);\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.has = undefined;\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\t/**\r\n\t * Checks if given item can be found in the passed collection\r\n\t * @param {Array} arr collection\r\n\t * @param {Any} val item to search\r\n\t * @param {Boolean} caseSensitive respects case if true\r\n\t * @return {Boolean}\r\n\t */\n\tvar has = exports.has = function has(arr, val, caseSensitive) {\n\t var sCase = Boolean(caseSensitive);\n\t for (var i = 0, l = arr.length; i < l; i++) {\n\t if ((0, _string.matchCase)(arr[i].toString(), sCase) === val) {\n\t return true;\n\t }\n\t }\n\t return false;\n\t}; /**\r\n\t * Array utilities\r\n\t */\n\n/***/ },\n/* 17 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t/**\r\n\t * Sorting utilities\r\n\t */\n\t\n\t/**\r\n\t * Case insensitive compare function for passed strings\r\n\t * @param {String} First string\r\n\t * @param {String} Second string\r\n\t * @return {Number} -1 if first string lower than second one\r\n\t * 0 if first string same order as second one\r\n\t * 1 if first string greater than second one\r\n\t */\n\tvar ignoreCase = exports.ignoreCase = function ignoreCase(a, b) {\n\t var x = a.toLowerCase();\n\t var y = b.toLowerCase();\n\t return x < y ? -1 : x > y ? 1 : 0;\n\t};\n\t\n\t/**\r\n\t * Sorts passed numbers in a ascending manner\r\n\t * @param {Number} First number\r\n\t * @param {Number} Second number\r\n\t * @param {Number} Negative, zero or positive number\r\n\t */\n\tvar numSortAsc = exports.numSortAsc = function numSortAsc(a, b) {\n\t return a - b;\n\t};\n\t\n\t/**\r\n\t * Sorts passed numbers in a descending manner\r\n\t * @param {Number} First number\r\n\t * @param {Number} Second number\r\n\t * @param {Number} Negative, zero or positive number\r\n\t */\n\tvar numSortDesc = exports.numSortDesc = function numSortDesc(a, b) {\n\t return b - a;\n\t};\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.CheckList = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _array = __webpack_require__(16);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\tvar _sort = __webpack_require__(17);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar SORT_ERROR = 'Filter options for column {0} cannot be sorted in ' + '{1} manner.';\n\t\n\t/**\r\n\t * Checklist filter UI component\r\n\t */\n\t\n\tvar CheckList = exports.CheckList = function (_Feature) {\n\t _inherits(CheckList, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of CheckList\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function CheckList(tf) {\n\t _classCallCheck(this, CheckList);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'checkList'));\n\t\n\t var f = _this.config;\n\t\n\t /**\r\n\t * List of container DOM elements\r\n\t * @type {Array}\r\n\t */\n\t _this.containers = [];\n\t\n\t /**\r\n\t * Css class for the container of the checklist filter (div)\r\n\t * @type {String}\r\n\t */\n\t _this.containerCssClass = f.div_checklist_css_class || 'div_checklist';\n\t\n\t /**\r\n\t * Css class for the checklist filter element (ul)\r\n\t * @type {String}\r\n\t */\n\t _this.filterCssClass = f.checklist_css_class || 'flt_checklist';\n\t\n\t /**\r\n\t * Css class for the item of a checklist (li)\r\n\t * @type {String}\r\n\t */\n\t _this.itemCssClass = f.checklist_item_css_class || 'flt_checklist_item';\n\t\n\t /**\r\n\t * Css class for a selected item of a checklist (li)\r\n\t * @type {String}\r\n\t */\n\t _this.selectedItemCssClass = f.checklist_selected_item_css_class || 'flt_checklist_slc_item';\n\t\n\t /**\r\n\t * Text placed in the filter's container when load filter on demand\r\n\t * feature is enabled\r\n\t * @type {String}\r\n\t */\n\t _this.activateText = f.activate_checklist_text || 'Click to load filter data';\n\t\n\t /**\r\n\t * Css class for a disabled item of a checklist (li)\r\n\t * @type {String}\r\n\t */\n\t _this.disabledItemCssClass = f.checklist_item_disabled_css_class || 'flt_checklist_item_disabled';\n\t\n\t /**\r\n\t * Enable the reset filter option as first item\r\n\t * @type {Boolean}\r\n\t */\n\t _this.enableResetOption = f.enable_checklist_reset_filter === false ? false : true;\n\t\n\t /**\r\n\t * Prefix for container element ID\r\n\t * @type {String}\r\n\t * @private\r\n\t */\n\t _this.prfx = 'chkdiv_';\n\t\n\t /**\r\n\t * Has custom options\r\n\t * @type {Boolean}\r\n\t * @private\r\n\t */\n\t _this.isCustom = false;\n\t\n\t /**\r\n\t * List of options values\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.opts = [];\n\t\n\t /**\r\n\t * List of options texts for custom values\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.optsTxt = [];\n\t\n\t /**\r\n\t * List of options to be excluded from the checklist filter\r\n\t * @type {Array}\r\n\t * @private\r\n\t */\n\t _this.excludedOpts = [];\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Checklist option click event handler\r\n\t * @param {Event} evt\r\n\t * @private\r\n\t */\n\t\n\t\n\t CheckList.prototype.optionClick = function optionClick(evt) {\n\t var elm = (0, _event.targetEvt)(evt);\n\t var tf = this.tf;\n\t\n\t this.emitter.emit('filter-focus', tf, elm);\n\t this.setCheckListValues(elm);\n\t tf.filter();\n\t };\n\t\n\t /**\r\n\t * Checklist container click event handler for load-on-demand feature\r\n\t * @param {Event} evt\r\n\t * @private\r\n\t */\n\t\n\t\n\t CheckList.prototype.onCheckListClick = function onCheckListClick(evt) {\n\t var _this2 = this;\n\t\n\t var elm = (0, _event.targetEvt)(evt);\n\t if (this.tf.loadFltOnDemand && elm.getAttribute('filled') === '0') {\n\t var ct = elm.getAttribute('ct');\n\t var div = this.containers[ct];\n\t this.build(ct);\n\t (0, _event.removeEvt)(div, 'click', function (evt) {\n\t return _this2.onCheckListClick(evt);\n\t });\n\t }\n\t };\n\t\n\t /**\r\n\t * Refresh all checklist filters\r\n\t */\n\t\n\t\n\t CheckList.prototype.refreshAll = function refreshAll() {\n\t var _this3 = this;\n\t\n\t var tf = this.tf;\n\t var fltsIdxs = tf.getFiltersByType(_const.CHECKLIST, true);\n\t fltsIdxs.forEach(function (colIdx) {\n\t var values = _this3.getValues(colIdx);\n\t _this3.build(colIdx, tf.linkedFilters);\n\t _this3.selectOptions(colIdx, values);\n\t });\n\t };\n\t\n\t /**\r\n\t * Initialize checklist filter\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Boolean} isExternal External filter flag\r\n\t * @param {DOMElement} container Dom element containing the filter\r\n\t */\n\t\n\t\n\t CheckList.prototype.init = function init(colIndex, isExternal, container) {\n\t var _this4 = this;\n\t\n\t var tf = this.tf;\n\t var externalFltTgtId = isExternal ? tf.externalFltTgtIds[colIndex] : null;\n\t\n\t var divCont = (0, _dom.createElm)('div', ['id', '' + this.prfx + colIndex + '_' + tf.id], ['ct', colIndex], ['filled', '0']);\n\t divCont.className = this.containerCssClass;\n\t\n\t //filter is appended in desired element\n\t if (externalFltTgtId) {\n\t (0, _dom.elm)(externalFltTgtId).appendChild(divCont);\n\t } else {\n\t container.appendChild(divCont);\n\t }\n\t\n\t this.containers[colIndex] = divCont;\n\t tf.fltIds.push(tf.buildFilterId(colIndex));\n\t\n\t if (!tf.loadFltOnDemand) {\n\t this.build(colIndex);\n\t } else {\n\t (0, _event.addEvt)(divCont, 'click', function (evt) {\n\t return _this4.onCheckListClick(evt);\n\t });\n\t divCont.appendChild((0, _dom.createText)(this.activateText));\n\t }\n\t\n\t this.emitter.on(['build-checklist-filter'], function (tf, colIndex, isLinked) {\n\t return _this4.build(colIndex, isLinked);\n\t });\n\t\n\t this.emitter.on(['select-checklist-options'], function (tf, colIndex, values) {\n\t return _this4.selectOptions(colIndex, values);\n\t });\n\t\n\t this.emitter.on(['rows-changed'], function () {\n\t return _this4.refreshAll();\n\t });\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Build checklist UI\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Boolean} isLinked Enable linked filters behaviour\r\n\t */\n\t\n\t\n\t CheckList.prototype.build = function build(colIndex) {\n\t var isLinked = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t\n\t var tf = this.tf;\n\t colIndex = parseInt(colIndex, 10);\n\t\n\t this.emitter.emit('before-populating-filter', tf, colIndex);\n\t\n\t this.opts = [];\n\t this.optsTxt = [];\n\t\n\t var flt = this.containers[colIndex];\n\t var ul = (0, _dom.createElm)('ul', ['id', tf.fltIds[colIndex]], ['colIndex', colIndex]);\n\t ul.className = this.filterCssClass;\n\t\n\t var rows = tf.tbl.rows;\n\t var nbRows = tf.getRowsNb(true);\n\t var caseSensitive = tf.caseSensitive;\n\t this.isCustom = tf.isCustomOptions(colIndex);\n\t\n\t var activeIdx = void 0;\n\t var activeFilterId = tf.getActiveFilterId();\n\t if (isLinked && activeFilterId) {\n\t activeIdx = tf.getColumnIndexFromFilterId(activeFilterId);\n\t }\n\t\n\t var filteredDataCol = [];\n\t if (isLinked && tf.disableExcludedOptions) {\n\t this.excludedOpts = [];\n\t }\n\t\n\t flt.innerHTML = '';\n\t\n\t for (var k = tf.refRow; k < nbRows; k++) {\n\t // always visible rows don't need to appear on selects as always\n\t // valid\n\t if (tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1) {\n\t continue;\n\t }\n\t\n\t var cells = rows[k].cells;\n\t var ncells = cells.length;\n\t\n\t // checks if row has exact cell #\n\t if (ncells !== tf.nbCells || this.isCustom) {\n\t continue;\n\t }\n\t\n\t // this loop retrieves cell data\n\t for (var j = 0; j < ncells; j++) {\n\t if (colIndex !== j) {\n\t continue;\n\t }\n\t if (isLinked && !tf.disableExcludedOptions && !tf.paging && !tf.isRowDisplayed(k) || tf.paging && activeIdx && !tf.isRowValid(k)) {\n\t continue;\n\t }\n\t\n\t var cellValue = tf.getCellValue(cells[j]);\n\t //Vary Peter's patch\n\t var cellString = (0, _string.matchCase)(cellValue, caseSensitive);\n\t // checks if celldata is already in array\n\t if (!(0, _array.has)(this.opts, cellString, caseSensitive)) {\n\t this.opts.push(cellValue);\n\t }\n\t var filteredCol = filteredDataCol[j];\n\t if (isLinked && tf.disableExcludedOptions) {\n\t if (!filteredCol) {\n\t filteredCol = tf.getFilteredDataCol(j);\n\t }\n\t if (!(0, _array.has)(filteredCol, cellString, caseSensitive) && !(0, _array.has)(this.excludedOpts, cellString, caseSensitive)) {\n\t this.excludedOpts.push(cellValue);\n\t }\n\t }\n\t }\n\t }\n\t\n\t //Retrieves custom values\n\t if (this.isCustom) {\n\t var customValues = tf.getCustomOptions(colIndex);\n\t this.opts = customValues[0];\n\t this.optsTxt = customValues[1];\n\t }\n\t\n\t if (tf.sortSlc && !this.isCustom) {\n\t if (!caseSensitive) {\n\t this.opts.sort(_sort.ignoreCase);\n\t if (this.excludedOpts) {\n\t this.excludedOpts.sort(_sort.ignoreCase);\n\t }\n\t } else {\n\t this.opts.sort();\n\t if (this.excludedOpts) {\n\t this.excludedOpts.sort();\n\t }\n\t }\n\t }\n\t //asc sort\n\t if (tf.sortNumAsc.indexOf(colIndex) !== -1) {\n\t try {\n\t this.opts.sort(_sort.numSortAsc);\n\t if (this.excludedOpts) {\n\t this.excludedOpts.sort(_sort.numSortAsc);\n\t }\n\t if (this.isCustom) {\n\t this.optsTxt.sort(_sort.numSortAsc);\n\t }\n\t } catch (e) {\n\t throw new Error(SORT_ERROR.replace('{0}', colIndex).replace('{1}', 'ascending'));\n\t } //in case there are alphanumeric values\n\t }\n\t //desc sort\n\t if (tf.sortNumDesc.indexOf(colIndex) !== -1) {\n\t try {\n\t this.opts.sort(_sort.numSortDesc);\n\t if (this.excludedOpts) {\n\t this.excludedOpts.sort(_sort.numSortDesc);\n\t }\n\t if (this.isCustom) {\n\t this.optsTxt.sort(_sort.numSortDesc);\n\t }\n\t } catch (e) {\n\t throw new Error(SORT_ERROR.replace('{0}', colIndex).replace('{1}', 'descending'));\n\t } //in case there are alphanumeric values\n\t }\n\t\n\t this.addChecks(colIndex, ul);\n\t\n\t if (tf.loadFltOnDemand) {\n\t flt.innerHTML = '';\n\t }\n\t flt.appendChild(ul);\n\t flt.setAttribute('filled', '1');\n\t\n\t this.emitter.emit('after-populating-filter', tf, colIndex, flt);\n\t };\n\t\n\t /**\r\n\t * Add checklist options\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Object} ul Ul element\r\n\t * @private\r\n\t */\n\t\n\t\n\t CheckList.prototype.addChecks = function addChecks(colIndex, ul) {\n\t var _this5 = this;\n\t\n\t var tf = this.tf;\n\t var chkCt = this.addTChecks(colIndex, ul);\n\t\n\t for (var y = 0; y < this.opts.length; y++) {\n\t var val = this.opts[y]; //item value\n\t var lbl = this.isCustom ? this.optsTxt[y] : val; //item text\n\t var fltId = tf.fltIds[colIndex];\n\t var li = (0, _dom.createCheckItem)(fltId + '_' + (y + chkCt), val, lbl);\n\t li.className = this.itemCssClass;\n\t\n\t if (tf.linkedFilters && tf.disableExcludedOptions && (0, _array.has)(this.excludedOpts, (0, _string.matchCase)(val, tf.caseSensitive), tf.caseSensitive)) {\n\t (0, _dom.addClass)(li, this.disabledItemCssClass);\n\t li.check.disabled = true;\n\t li.disabled = true;\n\t } else {\n\t (0, _event.addEvt)(li.check, 'click', function (evt) {\n\t return _this5.optionClick(evt);\n\t });\n\t }\n\t ul.appendChild(li);\n\t\n\t if (val === '') {\n\t //item is hidden\n\t li.style.display = _const.NONE;\n\t }\n\t }\n\t };\n\t\n\t /**\r\n\t * Add checklist header option\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Object} ul Ul element\r\n\t * @private\r\n\t */\n\t\n\t\n\t CheckList.prototype.addTChecks = function addTChecks(colIndex, ul) {\n\t var _this6 = this;\n\t\n\t var tf = this.tf;\n\t var chkCt = 1;\n\t var fltId = tf.fltIds[colIndex];\n\t var li0 = (0, _dom.createCheckItem)(fltId + '_0', '', tf.getClearFilterText(colIndex));\n\t li0.className = this.itemCssClass;\n\t ul.appendChild(li0);\n\t\n\t (0, _event.addEvt)(li0.check, 'click', function (evt) {\n\t return _this6.optionClick(evt);\n\t });\n\t\n\t if (!this.enableResetOption) {\n\t li0.style.display = _const.NONE;\n\t }\n\t\n\t if (tf.enableEmptyOption) {\n\t var li1 = (0, _dom.createCheckItem)(fltId + '_1', tf.emOperator, tf.emptyText);\n\t li1.className = this.itemCssClass;\n\t ul.appendChild(li1);\n\t (0, _event.addEvt)(li1.check, 'click', function (evt) {\n\t return _this6.optionClick(evt);\n\t });\n\t chkCt++;\n\t }\n\t\n\t if (tf.enableNonEmptyOption) {\n\t var li2 = (0, _dom.createCheckItem)(fltId + '_2', tf.nmOperator, tf.nonEmptyText);\n\t li2.className = this.itemCssClass;\n\t ul.appendChild(li2);\n\t (0, _event.addEvt)(li2.check, 'click', function (evt) {\n\t return _this6.optionClick(evt);\n\t });\n\t chkCt++;\n\t }\n\t return chkCt;\n\t };\n\t\n\t /**\r\n\t * Store checked options in DOM element attribute\r\n\t * @param {Object} o checklist option DOM element\r\n\t * @private\r\n\t */\n\t\n\t\n\t CheckList.prototype.setCheckListValues = function setCheckListValues(o) {\n\t if (!o) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t var chkValue = o.value; //checked item value\n\t // TODO: provide helper to extract column index, ugly!\n\t var chkIndex = parseInt(o.id.split('_')[2], 10);\n\t var colIdx = tf.getColumnIndexFromFilterId(o.id);\n\t var itemTag = 'LI';\n\t\n\t var n = tf.getFilterElement(parseInt(colIdx, 10));\n\t var li = n.childNodes[chkIndex];\n\t var colIndex = n.getAttribute('colIndex');\n\t var fltValue = n.getAttribute('value'); //filter value (ul tag)\n\t var fltIndexes = n.getAttribute('indexes'); //selected items (ul tag)\n\t\n\t if (o.checked) {\n\t //show all item\n\t if (chkValue === '') {\n\t if (fltIndexes && fltIndexes !== '') {\n\t //items indexes\n\t var indSplit = fltIndexes.split(tf.separator);\n\t //checked items loop\n\t for (var u = 0; u < indSplit.length; u++) {\n\t //checked item\n\t var cChk = (0, _dom.elm)(tf.fltIds[colIndex] + '_' + indSplit[u]);\n\t if (cChk) {\n\t cChk.checked = false;\n\t (0, _dom.removeClass)(n.childNodes[indSplit[u]], this.selectedItemCssClass);\n\t }\n\t }\n\t }\n\t n.setAttribute('value', '');\n\t n.setAttribute('indexes', '');\n\t } else {\n\t fltValue = fltValue ? fltValue : '';\n\t chkValue = (0, _string.trim)(fltValue + ' ' + chkValue + ' ' + tf.orOperator);\n\t chkIndex = fltIndexes + chkIndex + tf.separator;\n\t n.setAttribute('value', chkValue);\n\t n.setAttribute('indexes', chkIndex);\n\t //1st option unchecked\n\t if ((0, _dom.elm)(tf.fltIds[colIndex] + '_0')) {\n\t (0, _dom.elm)(tf.fltIds[colIndex] + '_0').checked = false;\n\t }\n\t }\n\t\n\t if (li.nodeName === itemTag) {\n\t (0, _dom.removeClass)(n.childNodes[0], this.selectedItemCssClass);\n\t (0, _dom.addClass)(li, this.selectedItemCssClass);\n\t }\n\t } else {\n\t //removes values and indexes\n\t if (chkValue !== '') {\n\t var replaceValue = new RegExp((0, _string.rgxEsc)(chkValue + ' ' + tf.orOperator));\n\t fltValue = fltValue.replace(replaceValue, '');\n\t n.setAttribute('value', (0, _string.trim)(fltValue));\n\t\n\t var replaceIndex = new RegExp((0, _string.rgxEsc)(chkIndex + tf.separator));\n\t fltIndexes = fltIndexes.replace(replaceIndex, '');\n\t n.setAttribute('indexes', fltIndexes);\n\t }\n\t if (li.nodeName === itemTag) {\n\t (0, _dom.removeClass)(li, this.selectedItemCssClass);\n\t }\n\t }\n\t };\n\t\n\t /**\r\n\t * Select filter options programmatically\r\n\t * @param {Number} colIndex Column index\r\n\t * @param {Array} values Array of option values to select\r\n\t */\n\t\n\t\n\t CheckList.prototype.selectOptions = function selectOptions(colIndex) {\n\t var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\t\n\t var tf = this.tf;\n\t var flt = tf.getFilterElement(colIndex);\n\t if (tf.getFilterType(colIndex) !== _const.CHECKLIST || !flt || values.length === 0) {\n\t return;\n\t }\n\t\n\t var lisNb = (0, _dom.tag)(flt, 'li').length;\n\t\n\t flt.setAttribute('value', '');\n\t flt.setAttribute('indexes', '');\n\t\n\t for (var k = 0; k < lisNb; k++) {\n\t var li = (0, _dom.tag)(flt, 'li')[k];\n\t var lbl = (0, _dom.tag)(li, 'label')[0];\n\t var chk = (0, _dom.tag)(li, 'input')[0];\n\t var lblTxt = (0, _string.matchCase)((0, _dom.getText)(lbl), tf.caseSensitive);\n\t\n\t if (lblTxt !== '' && (0, _array.has)(values, lblTxt, tf.caseSensitive)) {\n\t chk.checked = true;\n\t } else {\n\t // Check non-empty-text or empty-text option\n\t if (values.indexOf(tf.nmOperator) !== -1 && lblTxt === (0, _string.matchCase)(tf.nonEmptyText, tf.caseSensitive)) {\n\t chk.checked = true;\n\t } else if (values.indexOf(tf.emOperator) !== -1 && lblTxt === (0, _string.matchCase)(tf.emptyText, tf.caseSensitive)) {\n\t chk.checked = true;\n\t } else {\n\t chk.checked = false;\n\t }\n\t }\n\t this.setCheckListValues(chk);\n\t }\n\t };\n\t\n\t /**\r\n\t * Get filter values for a given column index\r\n\t * @param {Number} colIndex Column index\r\n\t * @returns {Array} values Collection of selected values\r\n\t */\n\t\n\t\n\t CheckList.prototype.getValues = function getValues(colIndex) {\n\t var tf = this.tf;\n\t var flt = tf.getFilterElement(colIndex);\n\t var fltAttr = flt.getAttribute('value');\n\t var values = (0, _types.isEmpty)(fltAttr) ? '' : fltAttr;\n\t\n\t //removes last operator ||\n\t values = values.substr(0, values.length - 3);\n\t //turn || separated values into array\n\t values = values.split(' ' + tf.orOperator + ' ');\n\t\n\t return values;\n\t };\n\t\n\t /**\r\n\t * Destroy CheckList instance\r\n\t */\n\t\n\t\n\t CheckList.prototype.destroy = function destroy() {\n\t var _this7 = this;\n\t\n\t this.emitter.off(['build-checklist-filter'], function (tf, colIndex, isLinked) {\n\t return _this7.build(colIndex, isLinked);\n\t });\n\t this.emitter.off(['select-checklist-options'], function (tf, colIndex, values) {\n\t return _this7.selectOptions(colIndex, values);\n\t });\n\t this.emitter.off(['rows-changed'], function () {\n\t return _this7.refreshAll();\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return CheckList;\n\t}(_feature.Feature);\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.RowsCounter = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\r\n\t * Rows counter UI component\r\n\t * @export\r\n\t * @class RowsCounter\r\n\t * @extends {Feature}\r\n\t */\n\tvar RowsCounter = exports.RowsCounter = function (_Feature) {\n\t _inherits(RowsCounter, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of RowsCounter\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function RowsCounter(tf) {\n\t _classCallCheck(this, RowsCounter);\n\t\n\t // TableFilter configuration\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'rowsCounter'));\n\t\n\t var f = _this.config;\n\t\n\t /**\r\n\t * ID of custom container element\r\n\t * @type {String}\r\n\t */\n\t _this.targetId = f.rows_counter_target_id || null;\n\t\n\t /**\r\n\t * Container DOM element\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.container = null;\n\t\n\t /**\r\n\t * Container DOM element for label displaying the total number of rows\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.label = null;\n\t\n\t /**\r\n\t * Text preceding the total number of rows\r\n\t * @type {String}\r\n\t */\n\t _this.text = f.rows_counter_text || 'Rows: ';\n\t\n\t /**\r\n\t * Separator symbol appearing between the first and last visible rows of\r\n\t * current page when paging is enabled. ie: Rows: 31-40 / 70\r\n\t * @type {String}\r\n\t */\n\t _this.fromToTextSeparator = f.from_to_text_separator || '-';\n\t\n\t /**\r\n\t * Separator symbol appearing between the first and last visible rows of\r\n\t * current page and the total number of filterable rows when paging is\r\n\t * enabled. ie: Rows: 31-40 / 70\r\n\t * @type {String}\r\n\t */\n\t _this.overText = f.over_text || ' / ';\n\t\n\t /**\r\n\t * Css class for container element\r\n\t * @type {String}\r\n\t */\n\t _this.cssClass = f.tot_rows_css_class || 'tot';\n\t\n\t /**\r\n\t * Callback fired before the counter is refreshed\r\n\t * @type {Function}\r\n\t */\n\t _this.onBeforeRefreshCounter = (0, _types.isFn)(f.on_before_refresh_counter) ? f.on_before_refresh_counter : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired after the counter is refreshed\r\n\t * @type {Function}\r\n\t */\n\t _this.onAfterRefreshCounter = (0, _types.isFn)(f.on_after_refresh_counter) ? f.on_after_refresh_counter : _types.EMPTY_FN;\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Initializes RowsCounter instance\r\n\t */\n\t\n\t\n\t RowsCounter.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t\n\t //rows counter container\n\t var countDiv = (0, _dom.createElm)('div');\n\t countDiv.className = this.cssClass;\n\t //rows counter label\n\t var countSpan = (0, _dom.createElm)('span');\n\t var countText = (0, _dom.createElm)('span');\n\t countText.appendChild((0, _dom.createText)(this.text));\n\t\n\t // counter is added to defined element\n\t if (!this.targetId) {\n\t tf.setToolbar();\n\t }\n\t var targetEl = !this.targetId ? tf.lDiv : (0, _dom.elm)(this.targetId);\n\t\n\t //default container: 'lDiv'\n\t if (!this.targetId) {\n\t countDiv.appendChild(countText);\n\t countDiv.appendChild(countSpan);\n\t targetEl.appendChild(countDiv);\n\t } else {\n\t //custom container, no need to append statusDiv\n\t targetEl.appendChild(countText);\n\t targetEl.appendChild(countSpan);\n\t }\n\t this.container = countDiv;\n\t this.label = countSpan;\n\t\n\t // subscribe to events\n\t this.emitter.on(['after-filtering', 'grouped-by-page'], function () {\n\t return _this2.refresh(tf.getValidRowsNb());\n\t });\n\t this.emitter.on(['rows-changed'], function () {\n\t return _this2.refresh();\n\t });\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t this.refresh();\n\t };\n\t\n\t /**\r\n\t * Refreshes the rows counter\r\n\t * @param {Number} p Optional parameter the total number of rows to display\r\n\t * @returns\r\n\t */\n\t\n\t\n\t RowsCounter.prototype.refresh = function refresh(p) {\n\t if (!this.initialized || !this.isEnabled()) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t\n\t this.onBeforeRefreshCounter(tf, this.label);\n\t\n\t var totTxt = void 0;\n\t if (!tf.paging) {\n\t if (p && p !== '') {\n\t totTxt = p;\n\t } else {\n\t totTxt = tf.getFilterableRowsNb() - tf.nbHiddenRows;\n\t }\n\t } else {\n\t var paging = tf.feature('paging');\n\t if (paging) {\n\t //paging start row\n\t var pagingStartRow = parseInt(paging.startPagingRow, 10) + (tf.getValidRowsNb() > 0 ? 1 : 0);\n\t var pagingEndRow = pagingStartRow + paging.pagingLength - 1 <= tf.getValidRowsNb() ? pagingStartRow + paging.pagingLength - 1 : tf.getValidRowsNb();\n\t totTxt = pagingStartRow + this.fromToTextSeparator + pagingEndRow + this.overText + tf.getValidRowsNb();\n\t }\n\t }\n\t\n\t this.label.innerHTML = totTxt;\n\t this.onAfterRefreshCounter(tf, this.label, totTxt);\n\t };\n\t\n\t /**\r\n\t * Remove feature\r\n\t */\n\t\n\t\n\t RowsCounter.prototype.destroy = function destroy() {\n\t var _this3 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t if (!this.targetId && this.container) {\n\t (0, _dom.removeElm)(this.container);\n\t } else {\n\t (0, _dom.elm)(this.targetId).innerHTML = '';\n\t }\n\t this.label = null;\n\t this.container = null;\n\t\n\t // unsubscribe to events\n\t this.emitter.off(['after-filtering', 'grouped-by-page'], function () {\n\t return _this3.refresh(tf.getValidRowsNb());\n\t });\n\t this.emitter.off(['rows-changed'], function () {\n\t return _this3.refresh();\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return RowsCounter;\n\t}(_feature.Feature);\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.StatusBar = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar EVENTS = ['after-filtering', 'after-populating-filter', 'after-page-change', 'after-clearing-filters', 'after-page-length-change', 'after-reset-page', 'after-reset-page-length', 'after-loading-extensions', 'after-loading-themes'];\n\t\n\t/**\r\n\t * Status bar UI component\r\n\t * @export\r\n\t * @class StatusBar\r\n\t * @extends {Feature}\r\n\t */\n\t\n\tvar StatusBar = exports.StatusBar = function (_Feature) {\n\t _inherits(StatusBar, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of StatusBar\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function StatusBar(tf) {\n\t _classCallCheck(this, StatusBar);\n\t\n\t // Configuration object\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'statusBar'));\n\t\n\t var f = _this.config;\n\t\n\t /**\r\n\t * ID of custom container element\r\n\t * @type {String}\r\n\t */\n\t _this.targetId = f.status_bar_target_id || null;\n\t\n\t /**\r\n\t * Container DOM element\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.container = null;\n\t\n\t /**\r\n\t * Message container DOM element\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.msgContainer = null;\n\t\n\t /**\r\n\t * Label container DOM element\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.labelContainer = null;\n\t\n\t /**\r\n\t * Text preceding status message\r\n\t * @type {String}\r\n\t */\n\t _this.text = f.status_bar_text || '';\n\t\n\t /**\r\n\t * Css class for container element\r\n\t * @type {String}\r\n\t */\n\t _this.cssClass = f.status_bar_css_class || 'status';\n\t\n\t /**\r\n\t * Message visibility duration in milliseconds\r\n\t * @type {Number}\r\n\t * @private\r\n\t */\n\t _this.delay = 250;\n\t\n\t /**\r\n\t * Callback fired before the message is displayed\r\n\t * @type {Function}\r\n\t */\n\t _this.onBeforeShowMsg = (0, _types.isFn)(f.on_before_show_msg) ? f.on_before_show_msg : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired after the message is displayed\r\n\t * @type {Function}\r\n\t */\n\t _this.onAfterShowMsg = (0, _types.isFn)(f.on_after_show_msg) ? f.on_after_show_msg : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Message appearing upon filtering\r\n\t * @type {String}\r\n\t */\n\t _this.msgFilter = f.msg_filter || 'Filtering data...';\n\t\n\t /**\r\n\t * Message appearing when a drop-down filter is populated\r\n\t * @type {String}\r\n\t */\n\t _this.msgPopulate = f.msg_populate || 'Populating filter...';\n\t\n\t /**\r\n\t * Message appearing when a checklist filter is populated\r\n\t * @type {String}\r\n\t */\n\t _this.msgPopulateCheckList = f.msg_populate_checklist || 'Populating list...';\n\t\n\t /**\r\n\t * Message appearing when a pagination page is changed\r\n\t * @type {String}\r\n\t */\n\t _this.msgChangePage = f.msg_change_page || 'Collecting paging data...';\n\t\n\t /**\r\n\t * Message appearing when filters are cleared\r\n\t * @type {String}\r\n\t */\n\t _this.msgClear = f.msg_clear || 'Clearing filters...';\n\t\n\t /**\r\n\t * Message appearing when the page length is changed\r\n\t * @type {String}\r\n\t */\n\t _this.msgChangeResults = f.msg_change_results || 'Changing results per page...';\n\t\n\t /**\r\n\t * Message appearing when the page is re-set\r\n\t * @type {String}\r\n\t */\n\t _this.msgResetPage = f.msg_reset_page || 'Re-setting page...';\n\t\n\t /**\r\n\t * Message appearing when the page length is re-set\r\n\t * @type {String}\r\n\t */\n\t _this.msgResetPageLength = f.msg_reset_page_length || 'Re-setting page length...';\n\t\n\t /**\r\n\t * Message appearing upon column sorting\r\n\t * @type {String}\r\n\t */\n\t _this.msgSort = f.msg_sort || 'Sorting data...';\n\t\n\t /**\r\n\t * Message appearing when extensions are loading\r\n\t * @type {String}\r\n\t */\n\t _this.msgLoadExtensions = f.msg_load_extensions || 'Loading extensions...';\n\t\n\t /**\r\n\t * Message appearing when themes are loading\r\n\t * @type {String}\r\n\t */\n\t _this.msgLoadThemes = f.msg_load_themes || 'Loading theme(s)...';\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Initializes StatusBar instance\r\n\t */\n\t\n\t\n\t StatusBar.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t var emitter = this.emitter;\n\t\n\t //status bar container\n\t var statusDiv = (0, _dom.createElm)('div');\n\t statusDiv.className = this.cssClass;\n\t\n\t //status bar label\n\t var statusSpan = (0, _dom.createElm)('span');\n\t //preceding text\n\t var statusSpanText = (0, _dom.createElm)('span');\n\t statusSpanText.appendChild((0, _dom.createText)(this.text));\n\t\n\t // target element container\n\t if (!this.targetId) {\n\t tf.setToolbar();\n\t }\n\t var targetEl = !this.targetId ? tf.lDiv : (0, _dom.elm)(this.targetId);\n\t\n\t //default container: 'lDiv'\n\t if (!this.targetId) {\n\t statusDiv.appendChild(statusSpanText);\n\t statusDiv.appendChild(statusSpan);\n\t targetEl.appendChild(statusDiv);\n\t } else {\n\t // custom container, no need to append statusDiv\n\t targetEl.appendChild(statusSpanText);\n\t targetEl.appendChild(statusSpan);\n\t }\n\t\n\t this.container = statusDiv;\n\t this.msgContainer = statusSpan;\n\t this.labelContainer = statusSpanText;\n\t\n\t // Subscribe to events\n\t emitter.on(['before-filtering'], function () {\n\t return _this2.message(_this2.msgFilter);\n\t });\n\t emitter.on(['before-populating-filter'], function () {\n\t return _this2.message(_this2.msgPopulate);\n\t });\n\t emitter.on(['before-page-change'], function () {\n\t return _this2.message(_this2.msgChangePage);\n\t });\n\t emitter.on(['before-clearing-filters'], function () {\n\t return _this2.message(_this2.msgClear);\n\t });\n\t emitter.on(['before-page-length-change'], function () {\n\t return _this2.message(_this2.msgChangeResults);\n\t });\n\t emitter.on(['before-reset-page'], function () {\n\t return _this2.message(_this2.msgResetPage);\n\t });\n\t emitter.on(['before-reset-page-length'], function () {\n\t return _this2.message(_this2.msgResetPageLength);\n\t });\n\t emitter.on(['before-loading-extensions'], function () {\n\t return _this2.message(_this2.msgLoadExtensions);\n\t });\n\t emitter.on(['before-loading-themes'], function () {\n\t return _this2.message(_this2.msgLoadThemes);\n\t });\n\t\n\t emitter.on(EVENTS, function () {\n\t return _this2.message('');\n\t });\n\t\n\t /**\r\n\t * @inherited\r\n\t */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Display status message\r\n\t * @param {String} [t=''] Message to be displayed\r\n\t */\n\t\n\t\n\t StatusBar.prototype.message = function message() {\n\t var _this3 = this;\n\t\n\t var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\t\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t\n\t this.onBeforeShowMsg(this.tf, t);\n\t\n\t var d = t === '' ? this.delay : 1;\n\t _root.root.setTimeout(function () {\n\t if (!_this3.initialized) {\n\t return;\n\t }\n\t _this3.msgContainer.innerHTML = t;\n\t\n\t _this3.onAfterShowMsg(_this3.tf, t);\n\t }, d);\n\t };\n\t\n\t /**\r\n\t * Destroy StatusBar instance\r\n\t */\n\t\n\t\n\t StatusBar.prototype.destroy = function destroy() {\n\t var _this4 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t var emitter = this.emitter;\n\t\n\t this.container.innerHTML = '';\n\t if (!this.targetId) {\n\t (0, _dom.removeElm)(this.container);\n\t }\n\t this.labelContainer = null;\n\t this.msgContainer = null;\n\t this.container = null;\n\t\n\t // Unsubscribe to events\n\t emitter.off(['before-filtering'], function () {\n\t return _this4.message(_this4.msgFilter);\n\t });\n\t emitter.off(['before-populating-filter'], function () {\n\t return _this4.message(_this4.msgPopulate);\n\t });\n\t emitter.off(['before-page-change'], function () {\n\t return _this4.message(_this4.msgChangePage);\n\t });\n\t emitter.off(['before-clearing-filters'], function () {\n\t return _this4.message(_this4.msgClear);\n\t });\n\t emitter.off(['before-page-length-change'], function () {\n\t return _this4.message(_this4.msgChangeResults);\n\t });\n\t emitter.off(['before-reset-page'], function () {\n\t return _this4.message(_this4.msgResetPage);\n\t });\n\t emitter.off(['before-reset-page-length'], function () {\n\t return _this4.message(_this4.msgResetPageLength);\n\t });\n\t emitter.off(['before-loading-extensions'], function () {\n\t return _this4.message(_this4.msgLoadExtensions);\n\t });\n\t emitter.off(['before-loading-themes'], function () {\n\t return _this4.message(_this4.msgLoadThemes);\n\t });\n\t\n\t emitter.off(EVENTS, function () {\n\t return _this4.message('');\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return StatusBar;\n\t}(_feature.Feature);\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Paging = undefined;\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\n\t * Paging UI component\n\t * @export\n\t * @class Paging\n\t * @extends {Feature}\n\t */\n\tvar Paging = exports.Paging = function (_Feature) {\n\t _inherits(Paging, _Feature);\n\t\n\t /**\n\t * Creates an instance of Paging\n\t * @param {TableFilter} tf TableFilter instance\n\t */\n\t function Paging(tf) {\n\t _classCallCheck(this, Paging);\n\t\n\t // Configuration object\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'paging'));\n\t\n\t var f = _this.config;\n\t\n\t /**\n\t * Css class for the paging buttons (previous, next, etc.)\n\t * @type {String}\n\t */\n\t _this.btnPageCssClass = f.paging_btn_css_class || 'pgInp';\n\t\n\t /**\n\t * Main select DOM element\n\t * @type {DOMElement}\n\t */\n\t _this.pagingSlc = null;\n\t\n\t /**\n\t * Results per page select DOM element\n\t * @type {DOMElement}\n\t */\n\t _this.resultsPerPageSlc = null;\n\t\n\t /**\n\t * ID of custom container element\n\t * @type {String}\n\t */\n\t _this.pagingTgtId = f.paging_target_id || null;\n\t\n\t /**\n\t * Number of rows contained in a page\n\t * @type {Number}\n\t */\n\t _this.pagingLength = !isNaN(f.paging_length) ? f.paging_length : 10;\n\t\n\t /**\n\t * ID of custom container element for the results per page selector\n\t * @type {String}\n\t */\n\t _this.resultsPerPageTgtId = f.results_per_page_target_id || null;\n\t\n\t /**\n\t * Css class for the paging select element\n\t * @type {String}\n\t */\n\t _this.pgSlcCssClass = f.paging_slc_css_class || 'pgSlc';\n\t\n\t /**\n\t * Css class for the paging input element\n\t * @type {String}\n\t */\n\t _this.pgInpCssClass = f.paging_inp_css_class || 'pgNbInp';\n\t\n\t /**\n\t * Label and values for the results per page select, example of usage:\n\t * ['Records: ', [10,25,50,100]]\n\t * @type {Array}\n\t */\n\t _this.resultsPerPage = f.results_per_page || null;\n\t\n\t /**\n\t * Determines if results per page is configured\n\t * @type {Boolean}\n\t */\n\t _this.hasResultsPerPage = (0, _types.isArray)(_this.resultsPerPage);\n\t\n\t /**\n\t * Css class for the results per page select\n\t * @type {String}\n\t */\n\t _this.resultsSlcCssClass = f.results_slc_css_class || 'rspg';\n\t\n\t /**\n\t * Css class for the label preceding results per page select\n\t * @type {String}\n\t */\n\t _this.resultsSpanCssClass = f.results_span_css_class || 'rspgSpan';\n\t\n\t /**\n\t * Index of the first row of current page\n\t * @type {Number}\n\t * @private\n\t */\n\t _this.startPagingRow = 0;\n\t\n\t /**\n\t * Total number of pages\n\t * @type {Number}\n\t * @private\n\t */\n\t _this.nbPages = 0;\n\t\n\t /**\n\t * Current page number\n\t * @type {Number}\n\t * @private\n\t */\n\t _this.currentPageNb = 1;\n\t\n\t /**\n\t * Next page button text\n\t * @type {String}\n\t */\n\t _this.btnNextPageText = f.btn_next_page_text || '>';\n\t\n\t /**\n\t * Previous page button text\n\t * @type {String}\n\t */\n\t _this.btnPrevPageText = f.btn_prev_page_text || '<';\n\t\n\t /**\n\t * Last page button text\n\t * @type {String}\n\t */\n\t _this.btnLastPageText = f.btn_last_page_text || '>|';\n\t\n\t /**\n\t * First page button text\n\t * @type {String}\n\t */\n\t _this.btnFirstPageText = f.btn_first_page_text || '|<';\n\t\n\t /**\n\t * Next page button HTML\n\t * @type {String}\n\t */\n\t _this.btnNextPageHtml = f.btn_next_page_html || (!tf.enableIcons ? null : '');\n\t\n\t /**\n\t * Previous page button HTML\n\t * @type {String}\n\t */\n\t _this.btnPrevPageHtml = f.btn_prev_page_html || (!tf.enableIcons ? null : '');\n\t\n\t /**\n\t * First page button HTML\n\t * @type {String}\n\t */\n\t _this.btnFirstPageHtml = f.btn_first_page_html || (!tf.enableIcons ? null : '');\n\t\n\t /**\n\t * Last page button HTML\n\t * @type {String}\n\t */\n\t _this.btnLastPageHtml = f.btn_last_page_html || (!tf.enableIcons ? null : '');\n\t\n\t /**\n\t * Text preceeding page selector drop-down\n\t * @type {String}\n\t */\n\t _this.pageText = f.page_text || ' Page ';\n\t\n\t /**\n\t * Text after page selector drop-down\n\t * @type {String}\n\t */\n\t _this.ofText = f.of_text || ' of ';\n\t\n\t /**\n\t * Css class for the span containing total number of pages\n\t * @type {String}\n\t */\n\t _this.nbPgSpanCssClass = f.nb_pages_css_class || 'nbpg';\n\t\n\t /**\n\t * Determines if paging buttons are enabled (default: true)\n\t * @type {Boolean}\n\t */\n\t _this.hasPagingBtns = f.paging_btns === false ? false : true;\n\t\n\t /**\n\t * Defines page selector type, two possible values: 'select', 'input'\n\t * @type {String}\n\t */\n\t _this.pageSelectorType = f.page_selector_type || _const.SELECT;\n\t\n\t /**\n\t * Callback fired before the page is changed\n\t * @type {Function}\n\t */\n\t _this.onBeforeChangePage = (0, _types.isFn)(f.on_before_change_page) ? f.on_before_change_page : _types.EMPTY_FN;\n\t\n\t /**\n\t * Callback fired after the page is changed\n\t * @type {Function}\n\t */\n\t _this.onAfterChangePage = (0, _types.isFn)(f.on_after_change_page) ? f.on_after_change_page : _types.EMPTY_FN;\n\t\n\t /**\n\t * Label preciding results per page select\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.slcResultsTxt = null;\n\t /**\n\t * Span containing next page button\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.btnNextCont = null;\n\t /**\n\t * Span containing previous page button\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.btnPrevCont = null;\n\t /**\n\t * Span containing last page button\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.btnLastCont = null;\n\t /**\n\t * Span containing first page button\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.btnFirstCont = null;\n\t /**\n\t * Span for tot nb pages\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.pgCont = null;\n\t /**\n\t * Span preceding pages select (contains 'Page')\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.pgBefore = null;\n\t /**\n\t * Span following pages select (contains ' of ')\n\t * @type {DOMElement}\n\t * @private\n\t */\n\t _this.pgAfter = null;\n\t\n\t var start_row = tf.refRow;\n\t var nrows = tf.getRowsNb(true);\n\t //calculates page nb\n\t _this.nbPages = Math.ceil((nrows - start_row) / _this.pagingLength);\n\t\n\t var o = _this;\n\t /**\n\t * Paging DOM events handlers\n\t * @type {String}\n\t * @private\n\t */\n\t _this.evt = {\n\t slcIndex: function slcIndex() {\n\t return o.pageSelectorType === _const.SELECT ? o.pagingSlc.options.selectedIndex : parseInt(o.pagingSlc.value, 10) - 1;\n\t },\n\t nbOpts: function nbOpts() {\n\t return o.pageSelectorType === _const.SELECT ? parseInt(o.pagingSlc.options.length, 10) - 1 : o.nbPages - 1;\n\t },\n\t next: function next() {\n\t var nextIndex = o.evt.slcIndex() < o.evt.nbOpts() ? o.evt.slcIndex() + 1 : 0;\n\t o.changePage(nextIndex);\n\t },\n\t prev: function prev() {\n\t var prevIndex = o.evt.slcIndex() > 0 ? o.evt.slcIndex() - 1 : o.evt.nbOpts();\n\t o.changePage(prevIndex);\n\t },\n\t last: function last() {\n\t o.changePage(o.evt.nbOpts());\n\t },\n\t first: function first() {\n\t o.changePage(0);\n\t },\n\t _detectKey: function _detectKey(e) {\n\t var key = (0, _event.keyCode)(e);\n\t if (key === _const.ENTER_KEY) {\n\t if (tf.sorted) {\n\t tf.filter();\n\t o.changePage(o.evt.slcIndex());\n\t } else {\n\t o.changePage();\n\t }\n\t this.blur();\n\t }\n\t },\n\t\n\t slcPagesChange: null,\n\t nextEvt: null,\n\t prevEvt: null,\n\t lastEvt: null,\n\t firstEvt: null\n\t };\n\t return _this;\n\t }\n\t\n\t /**\n\t * Initialize DOM elements\n\t */\n\t\n\t\n\t Paging.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t var slcPages;\n\t var tf = this.tf;\n\t var evt = this.evt;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t // Check resultsPerPage is in expected format and initialise the\n\t // results per page component\n\t if (this.hasResultsPerPage) {\n\t if (this.resultsPerPage.length < 2) {\n\t this.hasResultsPerPage = false;\n\t } else {\n\t this.pagingLength = this.resultsPerPage[1][0];\n\t this.setResultsPerPage();\n\t }\n\t }\n\t\n\t evt.slcPagesChange = function (event) {\n\t var slc = event.target;\n\t _this2.changePage(slc.selectedIndex);\n\t };\n\t\n\t // Paging drop-down list selector\n\t if (this.pageSelectorType === _const.SELECT) {\n\t slcPages = (0, _dom.createElm)(_const.SELECT);\n\t slcPages.className = this.pgSlcCssClass;\n\t (0, _event.addEvt)(slcPages, 'change', evt.slcPagesChange);\n\t }\n\t\n\t // Paging input selector\n\t if (this.pageSelectorType === _const.INPUT) {\n\t slcPages = (0, _dom.createElm)(_const.INPUT, ['value', this.currentPageNb]);\n\t slcPages.className = this.pgInpCssClass;\n\t (0, _event.addEvt)(slcPages, 'keypress', evt._detectKey);\n\t }\n\t\n\t // btns containers\n\t var btnNextSpan = (0, _dom.createElm)('span');\n\t var btnPrevSpan = (0, _dom.createElm)('span');\n\t var btnLastSpan = (0, _dom.createElm)('span');\n\t var btnFirstSpan = (0, _dom.createElm)('span');\n\t\n\t if (this.hasPagingBtns) {\n\t // Next button\n\t if (!this.btnNextPageHtml) {\n\t var btnNext = (0, _dom.createElm)(_const.INPUT, ['type', 'button'], ['value', this.btnNextPageText], ['title', 'Next']);\n\t btnNext.className = this.btnPageCssClass;\n\t (0, _event.addEvt)(btnNext, 'click', evt.next);\n\t btnNextSpan.appendChild(btnNext);\n\t } else {\n\t btnNextSpan.innerHTML = this.btnNextPageHtml;\n\t (0, _event.addEvt)(btnNextSpan, 'click', evt.next);\n\t }\n\t // Previous button\n\t if (!this.btnPrevPageHtml) {\n\t var btnPrev = (0, _dom.createElm)(_const.INPUT, ['type', 'button'], ['value', this.btnPrevPageText], ['title', 'Previous']);\n\t btnPrev.className = this.btnPageCssClass;\n\t (0, _event.addEvt)(btnPrev, 'click', evt.prev);\n\t btnPrevSpan.appendChild(btnPrev);\n\t } else {\n\t btnPrevSpan.innerHTML = this.btnPrevPageHtml;\n\t (0, _event.addEvt)(btnPrevSpan, 'click', evt.prev);\n\t }\n\t // Last button\n\t if (!this.btnLastPageHtml) {\n\t var btnLast = (0, _dom.createElm)(_const.INPUT, ['type', 'button'], ['value', this.btnLastPageText], ['title', 'Last']);\n\t btnLast.className = this.btnPageCssClass;\n\t (0, _event.addEvt)(btnLast, 'click', evt.last);\n\t btnLastSpan.appendChild(btnLast);\n\t } else {\n\t btnLastSpan.innerHTML = this.btnLastPageHtml;\n\t (0, _event.addEvt)(btnLastSpan, 'click', evt.last);\n\t }\n\t // First button\n\t if (!this.btnFirstPageHtml) {\n\t var btnFirst = (0, _dom.createElm)(_const.INPUT, ['type', 'button'], ['value', this.btnFirstPageText], ['title', 'First']);\n\t btnFirst.className = this.btnPageCssClass;\n\t (0, _event.addEvt)(btnFirst, 'click', evt.first);\n\t btnFirstSpan.appendChild(btnFirst);\n\t } else {\n\t btnFirstSpan.innerHTML = this.btnFirstPageHtml;\n\t (0, _event.addEvt)(btnFirstSpan, 'click', evt.first);\n\t }\n\t }\n\t\n\t // paging elements (buttons+drop-down list) are added to defined element\n\t if (!this.pagingTgtId) {\n\t tf.setToolbar();\n\t }\n\t var targetEl = !this.pagingTgtId ? tf.mDiv : (0, _dom.elm)(this.pagingTgtId);\n\t targetEl.appendChild(btnFirstSpan);\n\t targetEl.appendChild(btnPrevSpan);\n\t\n\t var pgBeforeSpan = (0, _dom.createElm)('span');\n\t pgBeforeSpan.appendChild((0, _dom.createText)(this.pageText));\n\t pgBeforeSpan.className = this.nbPgSpanCssClass;\n\t targetEl.appendChild(pgBeforeSpan);\n\t targetEl.appendChild(slcPages);\n\t var pgAfterSpan = (0, _dom.createElm)('span');\n\t pgAfterSpan.appendChild((0, _dom.createText)(this.ofText));\n\t pgAfterSpan.className = this.nbPgSpanCssClass;\n\t targetEl.appendChild(pgAfterSpan);\n\t var pgSpan = (0, _dom.createElm)('span');\n\t pgSpan.className = this.nbPgSpanCssClass;\n\t pgSpan.appendChild((0, _dom.createText)(' ' + this.nbPages + ' '));\n\t targetEl.appendChild(pgSpan);\n\t targetEl.appendChild(btnNextSpan);\n\t targetEl.appendChild(btnLastSpan);\n\t\n\t this.btnNextCont = btnNextSpan;\n\t this.btnPrevCont = btnPrevSpan;\n\t this.btnLastCont = btnLastSpan;\n\t this.btnFirstCont = btnFirstSpan;\n\t this.pgCont = pgSpan;\n\t this.pgBefore = pgBeforeSpan;\n\t this.pgAfter = pgAfterSpan;\n\t this.pagingSlc = slcPages;\n\t\n\t this.setPagingInfo();\n\t\n\t if (!tf.fltGrid) {\n\t tf.validateAllRows();\n\t this.setPagingInfo(tf.validRowsIndex);\n\t }\n\t\n\t this.emitter.on(['after-filtering'], function () {\n\t return _this2.resetPagingInfo();\n\t });\n\t this.emitter.on(['change-page'], function (tf, pageNumber) {\n\t return _this2.setPage(pageNumber);\n\t });\n\t this.emitter.on(['change-page-results'], function (tf, pageLength) {\n\t return _this2.changeResultsPerPage(pageLength);\n\t });\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\n\t * Reset paging when filters are already instantiated\n\t * @param {Boolean} filterTable Execute filtering once paging instanciated\n\t */\n\t\n\t\n\t Paging.prototype.reset = function reset() {\n\t var filterTable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\t\n\t var tf = this.tf;\n\t if (this.isEnabled()) {\n\t return;\n\t }\n\t this.enable();\n\t this.init();\n\t\n\t if (filterTable) {\n\t tf.filter();\n\t }\n\t };\n\t\n\t /**\n\t * Reset paging info from scratch after a filtering process\n\t */\n\t\n\t\n\t Paging.prototype.resetPagingInfo = function resetPagingInfo() {\n\t this.startPagingRow = 0;\n\t this.currentPageNb = 1;\n\t this.setPagingInfo(this.tf.validRowsIndex);\n\t };\n\t\n\t /**\n\t * Calculate number of pages based on valid rows\n\t * Refresh paging select according to number of pages\n\t * @param {Array} validRows Collection of valid rows\n\t */\n\t\n\t\n\t Paging.prototype.setPagingInfo = function setPagingInfo(validRows) {\n\t var tf = this.tf;\n\t var mdiv = !this.pagingTgtId ? tf.mDiv : (0, _dom.elm)(this.pagingTgtId);\n\t\n\t //store valid rows indexes\n\t tf.validRowsIndex = validRows || tf.getValidRows(true);\n\t\n\t //calculate nb of pages\n\t this.nbPages = Math.ceil(tf.validRowsIndex.length / this.pagingLength);\n\t //refresh page nb span\n\t this.pgCont.innerHTML = this.nbPages;\n\t //select clearing shortcut\n\t if (this.pageSelectorType === _const.SELECT) {\n\t this.pagingSlc.innerHTML = '';\n\t }\n\t\n\t if (this.nbPages > 0) {\n\t mdiv.style.visibility = 'visible';\n\t if (this.pageSelectorType === _const.SELECT) {\n\t for (var z = 0; z < this.nbPages; z++) {\n\t var opt = (0, _dom.createOpt)(z + 1, z * this.pagingLength, false);\n\t this.pagingSlc.options[z] = opt;\n\t }\n\t } else {\n\t //input type\n\t this.pagingSlc.value = this.currentPageNb;\n\t }\n\t } else {\n\t /*** if no results paging select and buttons are hidden ***/\n\t mdiv.style.visibility = 'hidden';\n\t }\n\t this.groupByPage(tf.validRowsIndex);\n\t };\n\t\n\t /**\n\t * Group table rows by page and display valid rows\n\t * @param {Array} validRows Collection of valid rows\n\t */\n\t\n\t\n\t Paging.prototype.groupByPage = function groupByPage(validRows) {\n\t var tf = this.tf;\n\t var rows = tf.tbl.rows;\n\t var startPagingRow = parseInt(this.startPagingRow, 10);\n\t var endPagingRow = startPagingRow + parseInt(this.pagingLength, 10);\n\t\n\t //store valid rows indexes\n\t if (validRows) {\n\t tf.validRowsIndex = validRows;\n\t }\n\t\n\t //this loop shows valid rows of current page\n\t for (var h = 0, len = tf.getValidRowsNb(true); h < len; h++) {\n\t var validRowIdx = tf.validRowsIndex[h];\n\t var r = rows[validRowIdx];\n\t var isRowValid = r.getAttribute('validRow');\n\t var rowDisplayed = false;\n\t\n\t if (h >= startPagingRow && h < endPagingRow) {\n\t if ((0, _types.isNull)(isRowValid) || Boolean(isRowValid === 'true')) {\n\t r.style.display = '';\n\t rowDisplayed = true;\n\t }\n\t } else {\n\t r.style.display = _const.NONE;\n\t }\n\t this.emitter.emit('row-paged', tf, validRowIdx, h, rowDisplayed);\n\t }\n\t\n\t // broadcast grouping by page\n\t this.emitter.emit('grouped-by-page', tf, this);\n\t };\n\t\n\t /**\n\t * Return the current page number\n\t * @return {Number} Page number\n\t */\n\t\n\t\n\t Paging.prototype.getPage = function getPage() {\n\t return this.currentPageNb;\n\t };\n\t\n\t /**\n\t * Show page defined by passed argument (string or number):\n\t * @param {String}/{Number} cmd possible string values: 'next',\n\t * 'previous', 'last', 'first' or page number as per param\n\t */\n\t\n\t\n\t Paging.prototype.setPage = function setPage(cmd) {\n\t var tf = this.tf;\n\t if (!tf.isInitialized() || !this.isEnabled()) {\n\t return;\n\t }\n\t var btnEvt = this.evt,\n\t cmdtype = typeof cmd === 'undefined' ? 'undefined' : _typeof(cmd);\n\t if (cmdtype === 'string') {\n\t switch (cmd.toLowerCase()) {\n\t case 'next':\n\t btnEvt.next();\n\t break;\n\t case 'previous':\n\t btnEvt.prev();\n\t break;\n\t case 'last':\n\t btnEvt.last();\n\t break;\n\t case 'first':\n\t btnEvt.first();\n\t break;\n\t default:\n\t btnEvt.next();\n\t break;\n\t }\n\t } else if (cmdtype === 'number') {\n\t this.changePage(cmd - 1);\n\t }\n\t };\n\t\n\t /**\n\t * Generates UI elements for the number of results per page drop-down\n\t */\n\t\n\t\n\t Paging.prototype.setResultsPerPage = function setResultsPerPage() {\n\t var _this3 = this;\n\t\n\t var tf = this.tf;\n\t var evt = this.evt;\n\t\n\t if (this.resultsPerPageSlc || !this.resultsPerPage) {\n\t return;\n\t }\n\t\n\t evt.slcResultsChange = function (ev) {\n\t _this3.onChangeResultsPerPage();\n\t ev.target.blur();\n\t };\n\t\n\t var slcR = (0, _dom.createElm)(_const.SELECT);\n\t slcR.className = this.resultsSlcCssClass;\n\t var slcRText = this.resultsPerPage[0],\n\t slcROpts = this.resultsPerPage[1];\n\t var slcRSpan = (0, _dom.createElm)('span');\n\t slcRSpan.className = this.resultsSpanCssClass;\n\t\n\t // results per page select is added to external element\n\t if (!this.resultsPerPageTgtId) {\n\t tf.setToolbar();\n\t }\n\t var targetEl = !this.resultsPerPageTgtId ? tf.rDiv : (0, _dom.elm)(this.resultsPerPageTgtId);\n\t slcRSpan.appendChild((0, _dom.createText)(slcRText));\n\t\n\t var help = tf.feature('help');\n\t if (help && help.btn) {\n\t help.btn.parentNode.insertBefore(slcRSpan, help.btn);\n\t help.btn.parentNode.insertBefore(slcR, help.btn);\n\t } else {\n\t targetEl.appendChild(slcRSpan);\n\t targetEl.appendChild(slcR);\n\t }\n\t\n\t for (var r = 0; r < slcROpts.length; r++) {\n\t var currOpt = new Option(slcROpts[r], slcROpts[r], false, false);\n\t slcR.options[r] = currOpt;\n\t }\n\t (0, _event.addEvt)(slcR, 'change', evt.slcResultsChange);\n\t this.slcResultsTxt = slcRSpan;\n\t this.resultsPerPageSlc = slcR;\n\t };\n\t\n\t /**\n\t * Remove number of results per page UI elements\n\t */\n\t\n\t\n\t Paging.prototype.removeResultsPerPage = function removeResultsPerPage() {\n\t var tf = this.tf;\n\t if (!tf.isInitialized() || !this.resultsPerPageSlc || !this.resultsPerPage) {\n\t return;\n\t }\n\t if (this.resultsPerPageSlc) {\n\t (0, _dom.removeElm)(this.resultsPerPageSlc);\n\t }\n\t if (this.slcResultsTxt) {\n\t (0, _dom.removeElm)(this.slcResultsTxt);\n\t }\n\t this.resultsPerPageSlc = null;\n\t this.slcResultsTxt = null;\n\t };\n\t\n\t /**\n\t * Change the page based on passed index\n\t * @param {Number} index Index of the page (0-n)\n\t */\n\t\n\t\n\t Paging.prototype.changePage = function changePage(index) {\n\t var tf = this.tf;\n\t\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t\n\t this.emitter.emit('before-page-change', tf, index + 1);\n\t\n\t if (index === null) {\n\t index = this.pageSelectorType === _const.SELECT ? this.pagingSlc.options.selectedIndex : this.pagingSlc.value - 1;\n\t }\n\t if (index >= 0 && index <= this.nbPages - 1) {\n\t this.onBeforeChangePage(this, index + 1);\n\t\n\t this.currentPageNb = parseInt(index, 10) + 1;\n\t if (this.pageSelectorType === _const.SELECT) {\n\t this.pagingSlc.options[index].selected = true;\n\t } else {\n\t this.pagingSlc.value = this.currentPageNb;\n\t }\n\t\n\t this.startPagingRow = this.pageSelectorType === _const.SELECT ? this.pagingSlc.value : index * this.pagingLength;\n\t\n\t this.groupByPage();\n\t\n\t this.onAfterChangePage(this, index + 1);\n\t }\n\t\n\t this.emitter.emit('after-page-change', tf, index + 1);\n\t };\n\t\n\t /**\n\t * Change the number of results per page based on passed value\n\t * @param {String} val The number of results per page\n\t */\n\t\n\t\n\t Paging.prototype.changeResultsPerPage = function changeResultsPerPage(val) {\n\t if (!this.isEnabled() || isNaN(val)) {\n\t return;\n\t }\n\t\n\t this.resultsPerPageSlc.value = val;\n\t this.onChangeResultsPerPage();\n\t };\n\t\n\t /**\n\t * Change rows according to page results drop-down\n\t */\n\t\n\t\n\t Paging.prototype.onChangeResultsPerPage = function onChangeResultsPerPage() {\n\t var tf = this.tf;\n\t\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t\n\t this.emitter.emit('before-page-length-change', tf);\n\t\n\t var slcR = this.resultsPerPageSlc;\n\t var slcIndex = slcR.selectedIndex;\n\t var slcPagesSelIndex = this.pageSelectorType === _const.SELECT ? this.pagingSlc.selectedIndex : parseInt(this.pagingSlc.value - 1, 10);\n\t this.pagingLength = parseInt(slcR.options[slcIndex].value, 10);\n\t this.startPagingRow = this.pagingLength * slcPagesSelIndex;\n\t\n\t if (!isNaN(this.pagingLength)) {\n\t if (this.startPagingRow >= tf.nbFilterableRows) {\n\t this.startPagingRow = tf.nbFilterableRows - this.pagingLength;\n\t }\n\t this.setPagingInfo();\n\t\n\t if (this.pageSelectorType === _const.SELECT) {\n\t var slcIdx = this.pagingSlc.options.length - 1 <= slcPagesSelIndex ? this.pagingSlc.options.length - 1 : slcPagesSelIndex;\n\t this.pagingSlc.options[slcIdx].selected = true;\n\t }\n\t }\n\t\n\t this.emitter.emit('after-page-length-change', tf, this.pagingLength);\n\t };\n\t\n\t /**\n\t * Re-set page nb at page re-load\n\t */\n\t\n\t\n\t Paging.prototype.resetPage = function resetPage() {\n\t var tf = this.tf;\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t this.emitter.emit('before-reset-page', tf);\n\t var pgNb = tf.feature('store').getPageNb();\n\t if (pgNb !== '') {\n\t this.changePage(pgNb - 1);\n\t }\n\t this.emitter.emit('after-reset-page', tf, pgNb);\n\t };\n\t\n\t /**\n\t * Re-set page length value at page re-load\n\t */\n\t\n\t\n\t Paging.prototype.resetPageLength = function resetPageLength() {\n\t var tf = this.tf;\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t this.emitter.emit('before-reset-page-length', tf);\n\t var pglenIndex = tf.feature('store').getPageLength();\n\t\n\t if (pglenIndex !== '') {\n\t this.resultsPerPageSlc.options[pglenIndex].selected = true;\n\t this.changeResultsPerPage();\n\t }\n\t this.emitter.emit('after-reset-page-length', tf, pglenIndex);\n\t };\n\t\n\t /**\n\t * Remove paging feature\n\t */\n\t\n\t\n\t Paging.prototype.destroy = function destroy() {\n\t var _this4 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t var evt = this.evt;\n\t\n\t if (this.pagingSlc) {\n\t if (this.pageSelectorType === _const.SELECT) {\n\t (0, _event.removeEvt)(this.pagingSlc, 'change', evt.slcPagesChange);\n\t } else if (this.pageSelectorType === _const.INPUT) {\n\t (0, _event.removeEvt)(this.pagingSlc, 'keypress', evt._detectKey);\n\t }\n\t (0, _dom.removeElm)(this.pagingSlc);\n\t }\n\t\n\t if (this.btnNextCont) {\n\t (0, _event.removeEvt)(this.btnNextCont, 'click', evt.next);\n\t (0, _dom.removeElm)(this.btnNextCont);\n\t this.btnNextCont = null;\n\t }\n\t\n\t if (this.btnPrevCont) {\n\t (0, _event.removeEvt)(this.btnPrevCont, 'click', evt.prev);\n\t (0, _dom.removeElm)(this.btnPrevCont);\n\t this.btnPrevCont = null;\n\t }\n\t\n\t if (this.btnLastCont) {\n\t (0, _event.removeEvt)(this.btnLastCont, 'click', evt.last);\n\t (0, _dom.removeElm)(this.btnLastCont);\n\t this.btnLastCont = null;\n\t }\n\t\n\t if (this.btnFirstCont) {\n\t (0, _event.removeEvt)(this.btnFirstCont, 'click', evt.first);\n\t (0, _dom.removeElm)(this.btnFirstCont);\n\t this.btnFirstCont = null;\n\t }\n\t\n\t if (this.pgBefore) {\n\t (0, _dom.removeElm)(this.pgBefore);\n\t this.pgBefore = null;\n\t }\n\t\n\t if (this.pgAfter) {\n\t (0, _dom.removeElm)(this.pgAfter);\n\t this.pgAfter = null;\n\t }\n\t\n\t if (this.pgCont) {\n\t (0, _dom.removeElm)(this.pgCont);\n\t this.pgCont = null;\n\t }\n\t\n\t if (this.hasResultsPerPage) {\n\t this.removeResultsPerPage();\n\t }\n\t\n\t this.emitter.off(['after-filtering'], function () {\n\t return _this4.resetPagingInfo();\n\t });\n\t this.emitter.off(['change-page'], function (tf, pageNumber) {\n\t return _this4.setPage(pageNumber);\n\t });\n\t this.emitter.off(['change-page-results'], function (tf, pageLength) {\n\t return _this4.changeResultsPerPage(pageLength);\n\t });\n\t\n\t this.pagingSlc = null;\n\t this.nbPages = 0;\n\t this.disable();\n\t this.initialized = false;\n\t };\n\t\n\t return Paging;\n\t}(_feature.Feature);\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.ClearButton = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\r\n\t * Clear button UI component\r\n\t */\n\tvar ClearButton = exports.ClearButton = function (_Feature) {\n\t _inherits(ClearButton, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of ClearButton\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function ClearButton(tf) {\n\t _classCallCheck(this, ClearButton);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'btnReset'));\n\t\n\t var f = _this.config;\n\t\n\t /**\r\n\t * Container element ID\r\n\t * @type {String}\r\n\t */\n\t _this.targetId = f.btn_reset_target_id || null;\n\t\n\t /**\r\n\t * Clear button container element\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.container = null;\n\t\n\t /**\r\n\t * Clear button element\r\n\t * @type {DOMElement}\r\n\t * @private\r\n\t */\n\t _this.element = null;\n\t\n\t /**\r\n\t * Text for the clear button\r\n\t * @type {String}\r\n\t */\n\t _this.text = f.btn_reset_text || 'Reset';\n\t\n\t /**\r\n\t * Css class for reset button\r\n\t * @type {String}\r\n\t */\n\t _this.cssClass = f.btn_reset_css_class || 'reset';\n\t\n\t /**\r\n\t * Tooltip text for the clear button\r\n\t * @type {String}\r\n\t */\n\t _this.tooltip = f.btn_reset_tooltip || 'Clear filters';\n\t\n\t /**\r\n\t * Custom Html string for the clear button\r\n\t * @type {String}\r\n\t */\n\t _this.html = f.btn_reset_html || (!tf.enableIcons ? null : '');\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Click event handler for clear button\r\n\t * @private\r\n\t */\n\t\n\t\n\t ClearButton.prototype.onClick = function onClick() {\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t this.tf.clearFilters();\n\t };\n\t\n\t /**\r\n\t * Initialize clear button component\r\n\t */\n\t\n\t\n\t ClearButton.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t var tf = this.tf;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t var cont = (0, _dom.createElm)('span');\n\t\n\t // reset button is added to defined element\n\t if (!this.targetId) {\n\t tf.setToolbar();\n\t }\n\t var targetEl = !this.targetId ? tf.rDiv : (0, _dom.elm)(this.targetId);\n\t targetEl.appendChild(cont);\n\t\n\t if (!this.html) {\n\t var fltReset = (0, _dom.createElm)('a', ['href', 'javascript:void(0);']);\n\t fltReset.className = this.cssClass;\n\t fltReset.appendChild((0, _dom.createText)(this.text));\n\t cont.appendChild(fltReset);\n\t (0, _event.addEvt)(fltReset, 'click', function () {\n\t return _this2.onClick();\n\t });\n\t } else {\n\t cont.innerHTML = this.html;\n\t var resetEl = cont.firstChild;\n\t (0, _event.addEvt)(resetEl, 'click', function () {\n\t return _this2.onClick();\n\t });\n\t }\n\t this.element = cont.firstChild;\n\t this.container = cont;\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Destroy ClearButton instance\r\n\t */\n\t\n\t\n\t ClearButton.prototype.destroy = function destroy() {\n\t if (!this.initialized) {\n\t return;\n\t }\n\t (0, _dom.removeElm)(this.element);\n\t (0, _dom.removeElm)(this.container);\n\t this.element = null;\n\t this.container = null;\n\t this.initialized = false;\n\t };\n\t\n\t return ClearButton;\n\t}(_feature.Feature);\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Help = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar WIKI_URL = 'https://github.com/koalyptus/TableFilter/wiki/' + '4.-Filter-operators';\n\tvar WEBSITE_URL = 'http://koalyptus.github.io/TableFilter/';\n\t\n\t/**\n\t * Help UI component\n\t */\n\t\n\tvar Help = exports.Help = function (_Feature) {\n\t _inherits(Help, _Feature);\n\t\n\t /**\n\t * Creates an instance of Help\n\t * @param {TableFilter} tf TableFilter instance\n\t */\n\t function Help(tf) {\n\t _classCallCheck(this, Help);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'help'));\n\t\n\t var f = _this.config;\n\t\n\t /**\n\t * ID of main custom container element\n\t * @type {String}\n\t */\n\t _this.tgtId = f.help_instructions_target_id || null;\n\t\n\t /**\n\t * ID of custom container element for instructions\n\t * @type {String}\n\t */\n\t _this.contTgtId = f.help_instructions_container_target_id || null;\n\t\n\t /**\n\t * Instructions text (accepts HTML)\n\t * @type {String}\n\t */\n\t _this.instrText = f.help_instructions_text ? f.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:
<, <=, >, ' + '>=, =, *, !, {, }, ' + '||,&&, [empty], [nonempty], ' + 'rgx:
' + 'Learn more
';\n\t\n\t /**\n\t * Instructions HTML\n\t * @type {String}\n\t */\n\t _this.instrHtml = f.help_instructions_html || null;\n\t\n\t /**\n\t * Help button text ('?')\n\t * @type {String}\n\t */\n\t _this.btnText = f.help_instructions_btn_text || '?';\n\t\n\t /**\n\t * Custom help button HTML\n\t * @type {String}\n\t */\n\t _this.btnHtml = f.help_instructions_btn_html || null;\n\t\n\t /**\n\t * Css class for help button\n\t * @type {String}\n\t */\n\t _this.btnCssClass = f.help_instructions_btn_css_class || 'helpBtn';\n\t\n\t /**\n\t * Css class for help container element\n\t * @type {String}\n\t */\n\t _this.contCssClass = f.help_instructions_container_css_class || 'helpCont';\n\t\n\t /**\n\t * Button DOM element\n\t * @type {DOMElement}\n\t */\n\t _this.btn = null;\n\t\n\t /**\n\t * Help container DOM element\n\t * @type {DOMElement}\n\t */\n\t _this.cont = null;\n\t\n\t /**\n\t * Bound mouseup wrapper\n\t * @private\n\t */\n\t _this.boundMouseup = null;\n\t\n\t /**\n\t * Default HTML appended to instructions text\n\t * @type {String}\n\t */\n\t _this.defaultHtml = '

TableFilter ' + 'v' + tf.version + '

' + '' + WEBSITE_URL + '' + '
©2015-' + tf.year + ' Max Guglielmi' + '
' + 'Close
';\n\t\n\t _this.emitter.on(['init-help'], function () {\n\t return _this.init();\n\t });\n\t return _this;\n\t }\n\t\n\t /**\n\t * Mouse-up event handler handling popup auto-close behaviour\n\t * @private\n\t */\n\t\n\t\n\t Help.prototype.onMouseup = function onMouseup(evt) {\n\t var targetElm = (0, _event.targetEvt)(evt);\n\t\n\t while (targetElm && targetElm !== this.cont && targetElm !== this.btn) {\n\t targetElm = targetElm.parentNode;\n\t }\n\t\n\t if (targetElm !== this.cont && targetElm !== this.btn) {\n\t this.toggle();\n\t }\n\t\n\t return;\n\t };\n\t\n\t /**\n\t * Initialise Help instance\n\t */\n\t\n\t\n\t Help.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t var tf = this.tf;\n\t\n\t var btn = (0, _dom.createElm)('span');\n\t var cont = (0, _dom.createElm)('div');\n\t\n\t this.boundMouseup = this.onMouseup.bind(this);\n\t\n\t //help button is added to defined element\n\t if (!this.tgtId) {\n\t tf.setToolbar();\n\t }\n\t var targetEl = !this.tgtId ? tf.rDiv : (0, _dom.elm)(this.tgtId);\n\t targetEl.appendChild(btn);\n\t\n\t var divContainer = !this.contTgtId ? btn : (0, _dom.elm)(this.contTgtId);\n\t\n\t if (!this.btnHtml) {\n\t divContainer.appendChild(cont);\n\t var helplink = (0, _dom.createElm)('a', ['href', 'javascript:void(0);']);\n\t helplink.className = this.btnCssClass;\n\t helplink.appendChild((0, _dom.createText)(this.btnText));\n\t btn.appendChild(helplink);\n\t (0, _event.addEvt)(helplink, 'click', function () {\n\t return _this2.toggle();\n\t });\n\t } else {\n\t btn.innerHTML = this.btnHtml;\n\t var helpEl = btn.firstChild;\n\t (0, _event.addEvt)(helpEl, 'click', function () {\n\t return _this2.toggle();\n\t });\n\t divContainer.appendChild(cont);\n\t }\n\t\n\t if (!this.instrHtml) {\n\t cont.innerHTML = this.instrText;\n\t cont.className = this.contCssClass;\n\t } else {\n\t if (this.contTgtId) {\n\t divContainer.appendChild(cont);\n\t }\n\t cont.innerHTML = this.instrHtml;\n\t if (!this.contTgtId) {\n\t cont.className = this.contCssClass;\n\t }\n\t }\n\t cont.innerHTML += this.defaultHtml;\n\t (0, _event.addEvt)(cont, 'click', function () {\n\t return _this2.toggle();\n\t });\n\t\n\t this.cont = cont;\n\t this.btn = btn;\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\n\t * Toggle help pop-up\n\t */\n\t\n\t\n\t Help.prototype.toggle = function toggle() {\n\t // check only if explicitily set to false as in this case undefined\n\t // signifies the help feature is enabled by default\n\t if (this.enabled === false) {\n\t return;\n\t }\n\t\n\t // ensure mouseup event handler is removed\n\t (0, _event.removeEvt)(_root.root, 'mouseup', this.boundMouseup);\n\t\n\t var divDisplay = this.cont.style.display;\n\t if (divDisplay === '' || divDisplay === _const.NONE) {\n\t this.cont.style.display = 'inline';\n\t (0, _event.addEvt)(_root.root, 'mouseup', this.boundMouseup);\n\t } else {\n\t this.cont.style.display = _const.NONE;\n\t }\n\t };\n\t\n\t /**\n\t * Remove help UI\n\t */\n\t\n\t\n\t Help.prototype.destroy = function destroy() {\n\t if (!this.initialized) {\n\t return;\n\t }\n\t (0, _dom.removeElm)(this.btn);\n\t this.btn = null;\n\t\n\t (0, _dom.removeElm)(this.cont);\n\t this.cont = null;\n\t\n\t this.boundMouseup = null;\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return Help;\n\t}(_feature.Feature);\n\n/***/ },\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.AlternateRows = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\r\n\t * Rows with alternating background color for improved readability\r\n\t */\n\tvar AlternateRows = exports.AlternateRows = function (_Feature) {\n\t _inherits(AlternateRows, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of AlternateRows.\r\n\t *\r\n\t * @param {Object} tf TableFilter instance\r\n\t */\n\t function AlternateRows(tf) {\n\t _classCallCheck(this, AlternateRows);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'alternateRows'));\n\t\n\t var config = _this.config;\n\t /**\r\n\t * Css class for even rows (default: 'even')\r\n\t * @type {String}\r\n\t */\n\t _this.evenCss = config.even_row_css_class || 'even';\n\t\n\t /**\r\n\t * Css class for odd rows (default: 'odd')\r\n\t * @type {String}\r\n\t */\n\t _this.oddCss = config.odd_row_css_class || 'odd';\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Sets alternating rows color\r\n\t */\n\t\n\t\n\t AlternateRows.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t this.processAll();\n\t\n\t // Subscribe to events\n\t this.emitter.on(['row-processed', 'row-paged'], function (tf, rowIndex, arrIndex, isValid) {\n\t return _this2.processRow(rowIndex, arrIndex, isValid);\n\t });\n\t this.emitter.on(['column-sorted'], function () {\n\t return _this2.processAll();\n\t });\n\t this.emitter.on(['rows-changed'], function () {\n\t return _this2.processAll();\n\t });\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\r\n\t * Apply background to all valid rows\r\n\t */\n\t\n\t\n\t AlternateRows.prototype.processAll = function processAll() {\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t var tf = this.tf;\n\t var validRowsIndex = tf.getValidRows(true);\n\t var indexLen = validRowsIndex.length;\n\t var idx = 0;\n\t\n\t //alternates bg color\n\t for (var j = 0; j < indexLen; j++) {\n\t var rowIdx = validRowsIndex[j];\n\t this.setRowBg(rowIdx, idx);\n\t idx++;\n\t }\n\t };\n\t\n\t /**\r\n\t * Set/remove row background based on row validation\r\n\t * @param {Number} rowIdx Row index\r\n\t * @param {Number} arrIdx Array index\r\n\t * @param {Boolean} isValid Valid row flag\r\n\t */\n\t\n\t\n\t AlternateRows.prototype.processRow = function processRow(rowIdx, arrIdx, isValid) {\n\t if (isValid) {\n\t this.setRowBg(rowIdx, arrIdx);\n\t } else {\n\t this.removeRowBg(rowIdx);\n\t }\n\t };\n\t\n\t /**\r\n\t * Sets row background color\r\n\t * @param {Number} rowIdx Row index\r\n\t * @param {Number} idx Valid rows collection index needed to calculate bg\r\n\t * color\r\n\t * @private\r\n\t */\n\t\n\t\n\t AlternateRows.prototype.setRowBg = function setRowBg(rowIdx, idx) {\n\t if (!this.isEnabled() || isNaN(rowIdx)) {\n\t return;\n\t }\n\t var rows = this.tf.tbl.rows;\n\t var i = isNaN(idx) ? rowIdx : idx;\n\t this.removeRowBg(rowIdx);\n\t\n\t (0, _dom.addClass)(rows[rowIdx], i % 2 ? this.evenCss : this.oddCss);\n\t };\n\t\n\t /**\r\n\t * Removes row background color\r\n\t * @param {Number} idx Row index\r\n\t * @private\r\n\t */\n\t\n\t\n\t AlternateRows.prototype.removeRowBg = function removeRowBg(idx) {\n\t if (isNaN(idx)) {\n\t return;\n\t }\n\t var rows = this.tf.tbl.rows;\n\t (0, _dom.removeClass)(rows[idx], this.oddCss);\n\t (0, _dom.removeClass)(rows[idx], this.evenCss);\n\t };\n\t\n\t /**\r\n\t * Removes all alternating backgrounds\r\n\t */\n\t\n\t\n\t AlternateRows.prototype.destroy = function destroy() {\n\t var _this3 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t var nbRows = this.tf.getRowsNb(true);\n\t for (var i = 0; i < nbRows; i++) {\n\t this.removeRowBg(i);\n\t }\n\t\n\t // Unsubscribe to events\n\t this.emitter.off(['row-processed', 'row-paged'], function (tf, rowIndex, arrIndex, isValid) {\n\t return _this3.processRow(rowIndex, arrIndex, isValid);\n\t });\n\t this.emitter.off(['column-sorted'], function () {\n\t return _this3.processAll();\n\t });\n\t this.emitter.off(['rows-changed'], function () {\n\t return _this3.processAll();\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return AlternateRows;\n\t}(_feature.Feature);\n\n/***/ },\n/* 25 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.NoResults = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _dom = __webpack_require__(3);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\r\n\t * UI when filtering yields no matches\r\n\t * @export\r\n\t * @class NoResults\r\n\t * @extends {Feature}\r\n\t */\n\tvar NoResults = exports.NoResults = function (_Feature) {\n\t _inherits(NoResults, _Feature);\n\t\n\t /**\r\n\t * Creates an instance of NoResults\r\n\t * @param {TableFilter} tf TableFilter instance\r\n\t */\n\t function NoResults(tf) {\n\t _classCallCheck(this, NoResults);\n\t\n\t //configuration object\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'noResults'));\n\t\n\t var f = _this.config.no_results_message;\n\t\n\t /**\r\n\t * Text (accepts HTML)\r\n\t * @type {String}\r\n\t */\n\t _this.content = f.content || 'No results';\n\t\n\t /**\r\n\t * Custom container DOM element\r\n\t * @type {DOMElement}\r\n\t */\n\t _this.customContainer = f.custom_container || null;\n\t\n\t /**\r\n\t * ID of custom container element\r\n\t * @type {String}\r\n\t */\n\t _this.customContainerId = f.custom_container_id || null;\n\t\n\t /**\r\n\t * Indicates if UI is contained in a external element\r\n\t * @type {Boolean}\r\n\t * @private\r\n\t */\n\t _this.isExternal = !(0, _types.isEmpty)(_this.customContainer) || !(0, _types.isEmpty)(_this.customContainerId);\n\t\n\t /**\r\n\t * Css class assigned to container element\r\n\t * @type {String}\r\n\t */\n\t _this.cssClass = f.css_class || 'no-results';\n\t\n\t /**\r\n\t * Stores container DOM element\r\n\t * @type {DOMElement}\r\n\t */\n\t _this.cont = null;\n\t\n\t /**\r\n\t * Callback fired before the message is displayed\r\n\t * @type {Function}\r\n\t */\n\t _this.onBeforeShow = (0, _types.isFn)(f.on_before_show_msg) ? f.on_before_show_msg : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired after the message is displayed\r\n\t * @type {Function}\r\n\t */\n\t _this.onAfterShow = (0, _types.isFn)(f.on_after_show_msg) ? f.on_after_show_msg : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired before the message is hidden\r\n\t * @type {Function}\r\n\t */\n\t _this.onBeforeHide = (0, _types.isFn)(f.on_before_hide_msg) ? f.on_before_hide_msg : _types.EMPTY_FN;\n\t\n\t /**\r\n\t * Callback fired after the message is hidden\r\n\t * @type {Function}\r\n\t */\n\t _this.onAfterHide = (0, _types.isFn)(f.on_after_hide_msg) ? f.on_after_hide_msg : _types.EMPTY_FN;\n\t return _this;\n\t }\n\t\n\t /**\r\n\t * Initializes NoResults instance\r\n\t */\n\t\n\t\n\t NoResults.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t var tf = this.tf;\n\t var target = this.customContainer || (0, _dom.elm)(this.customContainerId) || tf.tbl;\n\t\n\t //container\n\t var cont = (0, _dom.createElm)('div');\n\t cont.className = this.cssClass;\n\t cont.innerHTML = this.content;\n\t\n\t if (this.isExternal) {\n\t target.appendChild(cont);\n\t } else {\n\t target.parentNode.insertBefore(cont, target.nextSibling);\n\t }\n\t\n\t this.cont = cont;\n\t\n\t // subscribe to after-filtering event\n\t this.emitter.on(['after-filtering'], function () {\n\t return _this2.toggle();\n\t });\n\t\n\t /**\r\n\t * @inherited\r\n\t */\n\t this.initialized = true;\n\t\n\t this.hide();\n\t };\n\t\n\t /**\r\n\t * Toggle no results message\r\n\t */\n\t\n\t\n\t NoResults.prototype.toggle = function toggle() {\n\t if (this.tf.getValidRowsNb() > 0) {\n\t this.hide();\n\t } else {\n\t this.show();\n\t }\n\t };\n\t\n\t /**\r\n\t * Show no results message\r\n\t */\n\t\n\t\n\t NoResults.prototype.show = function show() {\n\t if (!this.initialized || !this.isEnabled()) {\n\t return;\n\t }\n\t this.onBeforeShow(this.tf, this);\n\t\n\t this.setWidth();\n\t this.cont.style.display = 'block';\n\t\n\t this.onAfterShow(this.tf, this);\n\t };\n\t\n\t /**\r\n\t * Hide no results message\r\n\t */\n\t\n\t\n\t NoResults.prototype.hide = function hide() {\n\t if (!this.initialized || !this.isEnabled()) {\n\t return;\n\t }\n\t this.onBeforeHide(this.tf, this);\n\t\n\t this.cont.style.display = _const.NONE;\n\t\n\t this.onAfterHide(this.tf, this);\n\t };\n\t\n\t /**\r\n\t * Sets no results container width\r\n\t * @private\r\n\t */\n\t\n\t\n\t NoResults.prototype.setWidth = function setWidth() {\n\t if (!this.initialized || this.isExternal || !this.isEnabled()) {\n\t return;\n\t }\n\t var tf = this.tf;\n\t if (tf.gridLayout) {\n\t var gridLayout = tf.feature('gridLayout');\n\t this.cont.style.width = gridLayout.tblCont.clientWidth + 'px';\n\t } else {\n\t this.cont.style.width = (tf.tbl.tHead ? tf.tbl.tHead.clientWidth : tf.tbl.tBodies[0].clientWidth) + 'px';\n\t }\n\t };\n\t\n\t /**\r\n\t * Remove feature\r\n\t */\n\t\n\t\n\t NoResults.prototype.destroy = function destroy() {\n\t var _this3 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t (0, _dom.removeElm)(this.cont);\n\t this.cont = null;\n\t // unsubscribe to after-filtering event\n\t this.emitter.off(['after-filtering'], function () {\n\t return _this3.toggle();\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return NoResults;\n\t}(_feature.Feature);\n\n/***/ },\n/* 26 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.State = undefined;\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _hash = __webpack_require__(27);\n\t\n\tvar _storage = __webpack_require__(28);\n\t\n\tvar _string = __webpack_require__(5);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\n\t * Features state object persistable with localStorage, cookie or URL hash\n\t *\n\t * @export\n\t * @class State\n\t * @extends {Feature}\n\t */\n\tvar State = exports.State = function (_Feature) {\n\t _inherits(State, _Feature);\n\t\n\t /**\n\t * Creates an instance of State\n\t * @param {TableFilter} tf TableFilter instance\n\t */\n\t function State(tf) {\n\t _classCallCheck(this, State);\n\t\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'state'));\n\t\n\t var cfg = _this.config.state;\n\t\n\t /**\n\t * Determines whether state is persisted with URL hash\n\t * @type {Boolean}\n\t */\n\t _this.enableHash = cfg === true || (0, _types.isArray)(cfg.types) && cfg.types.indexOf('hash') !== -1;\n\t\n\t /**\n\t * Determines whether state is persisted with localStorage\n\t * @type {Boolean}\n\t */\n\t _this.enableLocalStorage = (0, _types.isArray)(cfg.types) && cfg.types.indexOf('local_storage') !== -1;\n\t\n\t /**\n\t * Determines whether state is persisted with localStorage\n\t * @type {Boolean}\n\t */\n\t _this.enableCookie = (0, _types.isArray)(cfg.types) && cfg.types.indexOf('cookie') !== -1;\n\t\n\t /**\n\t * Persist filters values, enabled by default\n\t * @type {Boolean}\n\t */\n\t _this.persistFilters = cfg.filters === false ? false : true;\n\t\n\t /**\n\t * Persist current page number when paging is enabled\n\t * @type {Boolean}\n\t */\n\t _this.persistPageNumber = Boolean(cfg.page_number);\n\t\n\t /**\n\t * Persist page length when paging is enabled\n\t * @type {Boolean}\n\t */\n\t _this.persistPageLength = Boolean(cfg.page_length);\n\t\n\t /**\n\t * Persist column sorting\n\t * @type {Boolean}\n\t */\n\t _this.persistSort = Boolean(cfg.sort);\n\t\n\t /**\n\t * Persist columns visibility\n\t * @type {Boolean}\n\t */\n\t _this.persistColsVisibility = Boolean(cfg.columns_visibility);\n\t\n\t /**\n\t * Persist filters row visibility\n\t * @type {Boolean}\n\t */\n\t _this.persistFiltersVisibility = Boolean(cfg.filters_visibility);\n\t\n\t /**\n\t * Cookie duration in hours\n\t * @type {Boolean}\n\t */\n\t _this.cookieDuration = !isNaN(cfg.cookie_duration) ? parseInt(cfg.cookie_duration, 10) : 87600;\n\t\n\t /**\n\t * Enable Storage if localStorage or cookie is required\n\t * @type {Boolean}\n\t * @private\n\t */\n\t _this.enableStorage = _this.enableLocalStorage || _this.enableCookie;\n\t\n\t /**\n\t * Storage instance if storage is required\n\t * @type {Storage}\n\t * @private\n\t */\n\t _this.storage = null;\n\t\n\t /**\n\t * Hash instance if URL hash is required\n\t * @type {Boolean}\n\t * @private\n\t */\n\t _this.hash = null;\n\t\n\t /**\n\t * Current page number\n\t * @type {Number}\n\t * @private\n\t */\n\t _this.pageNb = null;\n\t\n\t /**\n\t * Current page length\n\t * @type {Number}\n\t * @private\n\t */\n\t _this.pageLength = null;\n\t\n\t /**\n\t * Current column sorting\n\t * @type {Object}\n\t * @private\n\t */\n\t _this.sort = null;\n\t\n\t /**\n\t * Current hidden columns\n\t * @type {Object}\n\t * @private\n\t */\n\t _this.hiddenCols = null;\n\t\n\t /**\n\t * Filters row visibility\n\t * @type {Boolean}\n\t * @private\n\t */\n\t _this.filtersVisibility = null;\n\t\n\t /**\n\t * State object\n\t * @type {Object}\n\t * @private\n\t */\n\t _this.state = {};\n\t\n\t /**\n\t * Prefix for column ID\n\t * @type {String}\n\t * @private\n\t */\n\t _this.prfxCol = 'col_';\n\t\n\t /**\n\t * Prefix for page number ID\n\t * @type {String}\n\t * @private\n\t */\n\t _this.pageNbKey = 'page';\n\t\n\t /**\n\t * Prefix for page length ID\n\t * @type {String}\n\t * @private\n\t */\n\t _this.pageLengthKey = 'page_length';\n\t\n\t /**\n\t * Prefix for filters visibility ID\n\t * @type {String}\n\t * @private\n\t */\n\t _this.filtersVisKey = 'filters_visibility';\n\t return _this;\n\t }\n\t\n\t /**\n\t * Initializes State instance\n\t */\n\t\n\t\n\t State.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t this.emitter.on(['after-filtering'], function () {\n\t return _this2.update();\n\t });\n\t this.emitter.on(['after-page-change', 'after-clearing-filters'], function (tf, pageNb) {\n\t return _this2.updatePage(pageNb);\n\t });\n\t this.emitter.on(['after-page-length-change'], function (tf, pageLength) {\n\t return _this2.updatePageLength(pageLength);\n\t });\n\t this.emitter.on(['column-sorted'], function (tf, index, descending) {\n\t return _this2.updateSort(index, descending);\n\t });\n\t this.emitter.on(['sort-initialized'], function () {\n\t return _this2._syncSort();\n\t });\n\t this.emitter.on(['columns-visibility-initialized'], function () {\n\t return _this2._syncColsVisibility();\n\t });\n\t this.emitter.on(['column-shown', 'column-hidden'], function (tf, feature, colIndex, hiddenCols) {\n\t return _this2.updateColsVisibility(hiddenCols);\n\t });\n\t this.emitter.on(['filters-visibility-initialized'], function () {\n\t return _this2._syncFiltersVisibility();\n\t });\n\t this.emitter.on(['filters-toggled'], function (tf, extension, visible) {\n\t return _this2.updateFiltersVisibility(visible);\n\t });\n\t\n\t if (this.enableHash) {\n\t this.hash = new _hash.Hash(this);\n\t this.hash.init();\n\t }\n\t if (this.enableStorage) {\n\t this.storage = new _storage.Storage(this);\n\t this.storage.init();\n\t }\n\t\n\t /**\n\t * @inherited\n\t */\n\t this.initialized = true;\n\t };\n\t\n\t /**\n\t * Update state object based on current features state\n\t */\n\t\n\t\n\t State.prototype.update = function update() {\n\t var _this3 = this;\n\t\n\t if (!this.isEnabled()) {\n\t return;\n\t }\n\t var state = this.state;\n\t var tf = this.tf;\n\t\n\t if (this.persistFilters) {\n\t var filterValues = tf.getFiltersValue();\n\t\n\t filterValues.forEach(function (val, idx) {\n\t var key = '' + _this3.prfxCol + idx;\n\t\n\t if ((0, _types.isString)(val) && (0, _string.isEmpty)(val)) {\n\t if (state.hasOwnProperty(key)) {\n\t state[key].flt = undefined;\n\t }\n\t } else {\n\t state[key] = state[key] || {};\n\t state[key].flt = val;\n\t }\n\t });\n\t }\n\t\n\t if (this.persistPageNumber) {\n\t if ((0, _types.isNull)(this.pageNb)) {\n\t state[this.pageNbKey] = undefined;\n\t } else {\n\t state[this.pageNbKey] = this.pageNb;\n\t }\n\t }\n\t\n\t if (this.persistPageLength) {\n\t if ((0, _types.isNull)(this.pageLength)) {\n\t state[this.pageLengthKey] = undefined;\n\t } else {\n\t state[this.pageLengthKey] = this.pageLength;\n\t }\n\t }\n\t\n\t if (this.persistSort) {\n\t if (!(0, _types.isNull)(this.sort)) {\n\t // Remove previuosly sorted column\n\t Object.keys(state).forEach(function (key) {\n\t if (key.indexOf(_this3.prfxCol) !== -1 && state[key]) {\n\t state[key].sort = undefined;\n\t }\n\t });\n\t\n\t var key = '' + this.prfxCol + this.sort.column;\n\t state[key] = state[key] || {};\n\t state[key].sort = { descending: this.sort.descending };\n\t }\n\t }\n\t\n\t if (this.persistColsVisibility) {\n\t if (!(0, _types.isNull)(this.hiddenCols)) {\n\t // Clear previuosly hidden columns\n\t Object.keys(state).forEach(function (key) {\n\t if (key.indexOf(_this3.prfxCol) !== -1 && state[key]) {\n\t state[key].hidden = undefined;\n\t }\n\t });\n\t\n\t this.hiddenCols.forEach(function (colIdx) {\n\t var key = '' + _this3.prfxCol + colIdx;\n\t state[key] = state[key] || {};\n\t state[key].hidden = true;\n\t });\n\t }\n\t }\n\t\n\t if (this.persistFiltersVisibility) {\n\t if ((0, _types.isNull)(this.filtersVisibility)) {\n\t state[this.filtersVisKey] = undefined;\n\t } else {\n\t state[this.filtersVisKey] = this.filtersVisibility;\n\t }\n\t }\n\t\n\t this.emitter.emit('state-changed', tf, state);\n\t };\n\t\n\t /**\n\t * Refresh page number field on page number changes\n\t *\n\t * @param {Number} pageNb Current page number\n\t */\n\t\n\t\n\t State.prototype.updatePage = function updatePage(pageNb) {\n\t this.pageNb = pageNb;\n\t this.update();\n\t };\n\t\n\t /**\n\t * Refresh page length field on page length changes\n\t *\n\t * @param {Number} pageLength Current page length value\n\t */\n\t\n\t\n\t State.prototype.updatePageLength = function updatePageLength(pageLength) {\n\t this.pageLength = pageLength;\n\t this.update();\n\t };\n\t\n\t /**\n\t * Refresh column sorting information on sort changes\n\t *\n\t * @param index {Number} Column index\n\t * @param {Boolean} descending Descending manner\n\t */\n\t\n\t\n\t State.prototype.updateSort = function updateSort(index, descending) {\n\t this.sort = {\n\t column: index,\n\t descending: descending\n\t };\n\t this.update();\n\t };\n\t\n\t /**\n\t * Refresh hidden columns information on columns visibility changes\n\t *\n\t * @param {Array} hiddenCols Columns indexes\n\t */\n\t\n\t\n\t State.prototype.updateColsVisibility = function updateColsVisibility(hiddenCols) {\n\t this.hiddenCols = hiddenCols;\n\t this.update();\n\t };\n\t\n\t /**\n\t * Refresh filters visibility on filters visibility change\n\t *\n\t * @param {Boolean} visible Visibility flad\n\t */\n\t\n\t\n\t State.prototype.updateFiltersVisibility = function updateFiltersVisibility(visible) {\n\t this.filtersVisibility = visible;\n\t this.update();\n\t };\n\t\n\t /**\n\t * Override state field\n\t *\n\t * @param state State object\n\t */\n\t\n\t\n\t State.prototype.override = function override(state) {\n\t this.state = state;\n\t };\n\t\n\t /**\n\t * Sync stored features state\n\t */\n\t\n\t\n\t State.prototype.sync = function sync() {\n\t var state = this.state;\n\t var tf = this.tf;\n\t\n\t this._syncFilters();\n\t\n\t if (this.persistPageNumber) {\n\t var pageNumber = state[this.pageNbKey];\n\t this.emitter.emit('change-page', tf, pageNumber);\n\t }\n\t\n\t if (this.persistPageLength) {\n\t var pageLength = state[this.pageLengthKey];\n\t this.emitter.emit('change-page-results', tf, pageLength);\n\t }\n\t\n\t this._syncSort();\n\t this._syncColsVisibility();\n\t this._syncFiltersVisibility();\n\t };\n\t\n\t /**\n\t * Override current state with passed one and sync features\n\t *\n\t * @param {Object} state State object\n\t */\n\t\n\t\n\t State.prototype.overrideAndSync = function overrideAndSync(state) {\n\t // To prevent state to react to features changes, state is temporarily\n\t // disabled\n\t this.disable();\n\t // State is overriden with passed state object\n\t this.override(state);\n\t // New hash state is applied to features\n\t this.sync();\n\t // State is re-enabled\n\t this.enable();\n\t };\n\t\n\t /**\n\t * Sync filters with stored values and filter table\n\t *\n\t * @private\n\t */\n\t\n\t\n\t State.prototype._syncFilters = function _syncFilters() {\n\t var _this4 = this;\n\t\n\t if (!this.persistFilters) {\n\t return;\n\t }\n\t var state = this.state;\n\t var tf = this.tf;\n\t\n\t Object.keys(state).forEach(function (key) {\n\t if (key.indexOf(_this4.prfxCol) !== -1) {\n\t var colIdx = parseInt(key.replace(_this4.prfxCol, ''), 10);\n\t var val = state[key].flt;\n\t tf.setFilterValue(colIdx, val);\n\t }\n\t });\n\t\n\t tf.filter();\n\t };\n\t\n\t /**\n\t * Sync sorted column with stored sorting information and sort table\n\t *\n\t * @private\n\t */\n\t\n\t\n\t State.prototype._syncSort = function _syncSort() {\n\t var _this5 = this;\n\t\n\t if (!this.persistSort) {\n\t return;\n\t }\n\t var state = this.state;\n\t var tf = this.tf;\n\t\n\t Object.keys(state).forEach(function (key) {\n\t if (key.indexOf(_this5.prfxCol) !== -1) {\n\t var colIdx = parseInt(key.replace(_this5.prfxCol, ''), 10);\n\t if (!(0, _types.isUndef)(state[key].sort)) {\n\t var sort = state[key].sort;\n\t _this5.emitter.emit('sort', tf, colIdx, sort.descending);\n\t }\n\t }\n\t });\n\t };\n\t\n\t /**\n\t * Sync hidden columns with stored information\n\t *\n\t * @private\n\t */\n\t\n\t\n\t State.prototype._syncColsVisibility = function _syncColsVisibility() {\n\t var _this6 = this;\n\t\n\t if (!this.persistColsVisibility) {\n\t return;\n\t }\n\t var state = this.state;\n\t var tf = this.tf;\n\t var hiddenCols = [];\n\t\n\t Object.keys(state).forEach(function (key) {\n\t if (key.indexOf(_this6.prfxCol) !== -1) {\n\t var colIdx = parseInt(key.replace(_this6.prfxCol, ''), 10);\n\t if (!(0, _types.isUndef)(state[key].hidden)) {\n\t hiddenCols.push(colIdx);\n\t }\n\t }\n\t });\n\t\n\t hiddenCols.forEach(function (colIdx) {\n\t _this6.emitter.emit('hide-column', tf, colIdx);\n\t });\n\t };\n\t\n\t /**\n\t * Sync filters visibility with stored information\n\t *\n\t * @private\n\t */\n\t\n\t\n\t State.prototype._syncFiltersVisibility = function _syncFiltersVisibility() {\n\t if (!this.persistFiltersVisibility) {\n\t return;\n\t }\n\t var state = this.state;\n\t var tf = this.tf;\n\t var filtersVisibility = state[this.filtersVisKey];\n\t\n\t this.filtersVisibility = filtersVisibility;\n\t this.emitter.emit('show-filters', tf, filtersVisibility);\n\t };\n\t\n\t /**\n\t * Destroy State instance\n\t */\n\t\n\t\n\t State.prototype.destroy = function destroy() {\n\t var _this7 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t this.state = {};\n\t\n\t this.emitter.off(['after-filtering'], function () {\n\t return _this7.update();\n\t });\n\t this.emitter.off(['after-page-change', 'after-clearing-filters'], function (tf, pageNb) {\n\t return _this7.updatePage(pageNb);\n\t });\n\t this.emitter.off(['after-page-length-change'], function (tf, index) {\n\t return _this7.updatePageLength(index);\n\t });\n\t this.emitter.off(['column-sorted'], function (tf, index, descending) {\n\t return _this7.updateSort(index, descending);\n\t });\n\t this.emitter.off(['sort-initialized'], function () {\n\t return _this7._syncSort();\n\t });\n\t this.emitter.off(['columns-visibility-initialized'], function () {\n\t return _this7._syncColsVisibility();\n\t });\n\t this.emitter.off(['column-shown', 'column-hidden'], function (tf, feature, colIndex, hiddenCols) {\n\t return _this7.updateColsVisibility(hiddenCols);\n\t });\n\t this.emitter.off(['filters-visibility-initialized'], function () {\n\t return _this7._syncFiltersVisibility();\n\t });\n\t this.emitter.off(['filters-toggled'], function (tf, extension, visible) {\n\t return _this7.updateFiltersVisibility(visible);\n\t });\n\t\n\t if (this.enableHash) {\n\t this.hash.destroy();\n\t this.hash = null;\n\t }\n\t\n\t if (this.enableStorage) {\n\t this.storage.destroy();\n\t this.storage = null;\n\t }\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return State;\n\t}(_feature.Feature);\n\n/***/ },\n/* 27 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Hash = exports.hasHashChange = undefined;\n\t\n\tvar _event = __webpack_require__(1);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar JSON = _root.root.JSON;\n\tvar location = _root.root.location;\n\tvar decodeURIComponent = _root.root.decodeURIComponent;\n\tvar encodeURIComponent = _root.root.encodeURIComponent;\n\t\n\t/**\n\t * Checks if browser has onhashchange event\n\t */\n\tvar hasHashChange = exports.hasHashChange = function hasHashChange() {\n\t var docMode = _root.root.documentMode;\n\t return 'onhashchange' in _root.root && (docMode === undefined || docMode > 7);\n\t};\n\t\n\t/**\n\t * Manages state via URL hash changes\n\t *\n\t * @export\n\t * @class Hash\n\t */\n\t\n\tvar Hash = exports.Hash = function () {\n\t\n\t /**\n\t * Creates an instance of Hash\n\t *\n\t * @param {State} state Instance of State\n\t */\n\t function Hash(state) {\n\t _classCallCheck(this, Hash);\n\t\n\t /**\n\t * State object\n\t * @type {State}\n\t */\n\t this.state = state;\n\t\n\t /**\n\t * Cached URL hash\n\t * @type {String} Hash string\n\t * @private\n\t */\n\t this.lastHash = null;\n\t\n\t /**\n\t * Application event emitter instance\n\t * @type {Emitter}\n\t */\n\t this.emitter = state.emitter;\n\t\n\t /**\n\t * Bound sync wrapper for future use\n\t * @private\n\t */\n\t this.boundSync = null;\n\t }\n\t\n\t /**\n\t * Initializes the Hash object\n\t */\n\t\n\t\n\t Hash.prototype.init = function init() {\n\t var _this = this;\n\t\n\t if (!hasHashChange()) {\n\t return;\n\t }\n\t\n\t this.lastHash = location.hash;\n\t //Store a bound sync wrapper\n\t this.boundSync = this.sync.bind(this);\n\t this.emitter.on(['state-changed'], function (tf, state) {\n\t return _this.update(state);\n\t });\n\t this.emitter.on(['initialized'], this.boundSync);\n\t (0, _event.addEvt)(_root.root, 'hashchange', this.boundSync);\n\t };\n\t\n\t /**\n\t * Updates the URL hash based on a state change\n\t *\n\t * @param {State} state Instance of State\n\t */\n\t\n\t\n\t Hash.prototype.update = function update(state) {\n\t var hash = '#' + encodeURIComponent(JSON.stringify(state));\n\t if (this.lastHash === hash) {\n\t return;\n\t }\n\t\n\t location.hash = hash;\n\t this.lastHash = hash;\n\t };\n\t\n\t /**\n\t * Converts a URL hash into a state JSON object\n\t *\n\t * @param {String} hash URL hash fragment\n\t * @returns {Object} JSON object\n\t */\n\t\n\t\n\t Hash.prototype.parse = function parse(hash) {\n\t if (hash.indexOf('#') === -1) {\n\t return null;\n\t }\n\t hash = hash.substr(1);\n\t return JSON.parse(decodeURIComponent(hash));\n\t };\n\t\n\t /**\n\t * Applies current hash state to features\n\t */\n\t\n\t\n\t Hash.prototype.sync = function sync() {\n\t var state = this.parse(location.hash);\n\t if (!state) {\n\t return;\n\t }\n\t // override current state with persisted one and sync features\n\t this.state.overrideAndSync(state);\n\t };\n\t\n\t /**\n\t * Release Hash event subscriptions and clear fields\n\t */\n\t\n\t\n\t Hash.prototype.destroy = function destroy() {\n\t var _this2 = this;\n\t\n\t this.emitter.off(['state-changed'], function (tf, state) {\n\t return _this2.update(state);\n\t });\n\t this.emitter.off(['initialized'], this.boundSync);\n\t (0, _event.removeEvt)(_root.root, 'hashchange', this.boundSync);\n\t\n\t this.state = null;\n\t this.lastHash = null;\n\t this.emitter = null;\n\t };\n\t\n\t return Hash;\n\t}();\n\n/***/ },\n/* 28 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.Storage = exports.hasStorage = undefined;\n\t\n\tvar _cookie = __webpack_require__(29);\n\t\n\tvar _cookie2 = _interopRequireDefault(_cookie);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar JSON = _root.root.JSON;\n\tvar localStorage = _root.root.localStorage;\n\tvar location = _root.root.location;\n\t\n\t/**\n\t * Checks if browser has Storage feature\n\t */\n\tvar hasStorage = exports.hasStorage = function hasStorage() {\n\t return 'Storage' in _root.root;\n\t};\n\t\n\t/**\n\t * Stores the features state in browser's local storage or cookie\n\t *\n\t * @export\n\t * @class Storage\n\t */\n\t\n\tvar Storage = exports.Storage = function () {\n\t\n\t /**\n\t * Creates an instance of Storage\n\t *\n\t * @param {State} state Instance of State\n\t */\n\t function Storage(state) {\n\t _classCallCheck(this, Storage);\n\t\n\t /**\n\t * State object\n\t * @type {State}\n\t * @private\n\t */\n\t this.state = state;\n\t\n\t /**\n\t * TableFilter object\n\t * @type {TableFilter}\n\t * @private\n\t */\n\t this.tf = state.tf;\n\t\n\t /**\n\t * Persist with local storage\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.enableLocalStorage = state.enableLocalStorage && hasStorage();\n\t\n\t /**\n\t * Persist with cookie\n\t * @type {Boolean}\n\t * @private\n\t */\n\t this.enableCookie = state.enableCookie && !this.enableLocalStorage;\n\t\n\t /**\n\t * Emitter object\n\t * @type {Emitter}\n\t * @private\n\t */\n\t this.emitter = state.emitter;\n\t\n\t /**\n\t * Cookie duration in hours from state object\n\t * @type {Number}\n\t * @private\n\t */\n\t this.duration = state.cookieDuration;\n\t }\n\t\n\t /**\n\t * Initializes the Storage object\n\t */\n\t\n\t\n\t Storage.prototype.init = function init() {\n\t var _this = this;\n\t\n\t this.emitter.on(['state-changed'], function (tf, state) {\n\t return _this.save(state);\n\t });\n\t this.emitter.on(['initialized'], function () {\n\t return _this.sync();\n\t });\n\t };\n\t\n\t /**\n\t * Persists the features state on state changes\n\t *\n\t * @param {State} state Instance of State\n\t */\n\t\n\t\n\t Storage.prototype.save = function save(state) {\n\t if (this.enableLocalStorage) {\n\t localStorage[this.getKey()] = JSON.stringify(state);\n\t } else {\n\t _cookie2.default.write(this.getKey(), JSON.stringify(state), this.duration);\n\t }\n\t };\n\t\n\t /**\n\t * Turns stored string into a State JSON object\n\t *\n\t * @returns {Object} JSON object\n\t */\n\t\n\t\n\t Storage.prototype.retrieve = function retrieve() {\n\t var state = null;\n\t if (this.enableLocalStorage) {\n\t state = localStorage[this.getKey()];\n\t } else {\n\t state = _cookie2.default.read(this.getKey());\n\t }\n\t\n\t if (!state) {\n\t return null;\n\t }\n\t return JSON.parse(state);\n\t };\n\t\n\t /**\n\t * Removes persisted state from storage\n\t */\n\t\n\t\n\t Storage.prototype.remove = function remove() {\n\t if (this.enableLocalStorage) {\n\t localStorage.removeItem(this.getKey());\n\t } else {\n\t _cookie2.default.remove(this.getKey());\n\t }\n\t };\n\t\n\t /**\n\t * Applies persisted state to features\n\t */\n\t\n\t\n\t Storage.prototype.sync = function sync() {\n\t var state = this.retrieve();\n\t if (!state) {\n\t return;\n\t }\n\t // override current state with persisted one and sync features\n\t this.state.overrideAndSync(state);\n\t };\n\t\n\t /**\n\t * Returns the storage key\n\t *\n\t * @returns {String} Key\n\t */\n\t\n\t\n\t Storage.prototype.getKey = function getKey() {\n\t return JSON.stringify({\n\t key: this.tf.prfxTf + '_' + this.tf.id,\n\t path: location.pathname\n\t });\n\t };\n\t\n\t /**\n\t * Release Storage event subscriptions and clear fields\n\t */\n\t\n\t\n\t Storage.prototype.destroy = function destroy() {\n\t var _this2 = this;\n\t\n\t this.emitter.off(['state-changed'], function (tf, state) {\n\t return _this2.save(state);\n\t });\n\t this.emitter.off(['initialized'], function () {\n\t return _this2.sync();\n\t });\n\t\n\t this.remove();\n\t\n\t this.state = null;\n\t this.emitter = null;\n\t };\n\t\n\t return Storage;\n\t}();\n\n/***/ },\n/* 29 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\t/**\n\t * Cookie utilities\n\t */\n\t\n\tvar doc = _root.root.document;\n\t\n\texports.default = {\n\t\n\t /**\n\t * Write a cookie\n\t * @param {String} name Name of the cookie\n\t * @param {String} value Value of the cookie\n\t * @param {Number} hours Cookie duration in hours\n\t */\n\t write: function write(name, value, hours) {\n\t var expire = '';\n\t if (hours) {\n\t expire = new Date(new Date().getTime() + hours * 3600000);\n\t expire = '; expires=' + expire.toGMTString();\n\t }\n\t doc.cookie = name + '=' + escape(value) + expire;\n\t },\n\t\n\t\n\t /**\n\t * Read a cookie\n\t * @param {String} name Name of the cookie\n\t * @returns {String} Value of the cookie\n\t */\n\t read: function read(name) {\n\t var cookieValue = '',\n\t search = name + '=';\n\t if (doc.cookie.length > 0) {\n\t var cookie = doc.cookie,\n\t offset = cookie.indexOf(search);\n\t if (offset !== -1) {\n\t offset += search.length;\n\t var end = cookie.indexOf(';', offset);\n\t if (end === -1) {\n\t end = cookie.length;\n\t }\n\t cookieValue = unescape(cookie.substring(offset, end));\n\t }\n\t }\n\t return cookieValue;\n\t },\n\t\n\t\n\t /**\n\t * Remove a cookie\n\t * @param {String} name Name of the cookie\n\t */\n\t remove: function remove(name) {\n\t this.write(name, '', -1);\n\t }\n\t};\n\n/***/ },\n/* 30 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.DateType = undefined;\n\t\n\tvar _sugarDate = __webpack_require__(31);\n\t\n\t__webpack_require__(417);\n\t\n\tvar _feature = __webpack_require__(10);\n\t\n\tvar _types = __webpack_require__(4);\n\t\n\tvar _const = __webpack_require__(11);\n\t\n\tvar _root = __webpack_require__(2);\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\t/**\n\t * Wrapper for Sugar Date module providing datetime helpers and locales\n\t * @export\n\t * @class DateType\n\t */\n\tvar DateType = exports.DateType = function (_Feature) {\n\t _inherits(DateType, _Feature);\n\t\n\t /**\n\t * Creates an instance of DateType\n\t * @param {TableFilter} tf TableFilter instance\n\t */\n\t function DateType(tf) {\n\t _classCallCheck(this, DateType);\n\t\n\t /**\n\t * Global locale\n\t * @type {String}\n\t */\n\t var _this = _possibleConstructorReturn(this, _Feature.call(this, tf, 'dateType'));\n\t\n\t _this.locale = tf.locale;\n\t\n\t /**\n\t * Sugar Date instance\n\t * @type {Object}\n\t */\n\t _this.datetime = _sugarDate.Date;\n\t\n\t _this.enable();\n\t return _this;\n\t }\n\t\n\t /**\n\t * Initialize DateType instance\n\t */\n\t\n\t\n\t DateType.prototype.init = function init() {\n\t var _this2 = this;\n\t\n\t if (this.initialized) {\n\t return;\n\t }\n\t\n\t // Set global locale\n\t this.datetime.setLocale(this.locale);\n\t\n\t // Add formats from column types configuration if any\n\t this.addConfigFormats(this.tf.colTypes);\n\t\n\t this.emitter.on(['add-date-type-formats'], function (tf, types) {\n\t return _this2.addConfigFormats(types);\n\t });\n\t\n\t // Broadcast date-type initialization\n\t this.emitter.emit('date-type-initialized', this.tf, this);\n\t\n\t /** @inherited */\n\t this.initialized = true;\n\t };\n\t\n\t /**\n\t * Parse a string representation of a date for a specified locale and return\n\t * a date object\n\t * @param {String} dateStr String representation of a date\n\t * @param {String} localeCode Locale code (ie 'en-us')\n\t * @returns {Date}\n\t */\n\t\n\t\n\t DateType.prototype.parse = function parse(dateStr, localeCode) {\n\t return this.datetime.create(dateStr, localeCode);\n\t };\n\t\n\t /**\n\t * Check string representation of a date for a specified locale is valid\n\t * @param {any} dateStr String representation of a date\n\t * @param {any} localeCode Locale code (ie 'en-us')\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t DateType.prototype.isValid = function isValid(dateStr, localeCode) {\n\t return this.datetime.isValid(this.parse(dateStr, localeCode));\n\t };\n\t\n\t /**\n\t * Return the type object of a specified column as per configuration or\n\t * passed collection\n\t * @param {Number} colIndex Column index\n\t * @param {Array} types Collection of column types, optional\n\t * @returns {Object}\n\t */\n\t\n\t\n\t DateType.prototype.getOptions = function getOptions(colIndex, types) {\n\t types = types || this.tf.colTypes;\n\t var colType = types[colIndex];\n\t return (0, _types.isObj)(colType) ? colType : {};\n\t };\n\t\n\t /**\n\t * Add date time format(s) to a locale as specified by the passed\n\t * collection of column types, ie:\n\t * [\n\t * 'string',\n\t * 'number',\n\t * { type: 'date', locale: 'en', format: ['{dd}/{MM}/{yyyy}']}\n\t * ]\n\t *\n\t * @param {Array} [types=[]] Collection of column types\n\t */\n\t\n\t\n\t DateType.prototype.addConfigFormats = function addConfigFormats() {\n\t var _this3 = this;\n\t\n\t var types = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\t\n\t types.forEach(function (type, idx) {\n\t var options = _this3.getOptions(idx, types);\n\t if (options.type === _const.DATE && options.hasOwnProperty('format')) {\n\t (function () {\n\t var locale = _this3.datetime.getLocale(options.locale || _this3.locale);\n\t var formats = (0, _types.isArray)(options.format) ? options.format : [options.format];\n\t\n\t // Sugar date module throws exceptions with locale.addFormat\n\t try {\n\t formats.forEach(function (format) {\n\t locale.addFormat(format);\n\t });\n\t } catch (ex) {\n\t _root.root.console.error(ex);\n\t }\n\t })();\n\t }\n\t });\n\t };\n\t\n\t /**\n\t * Remove DateType instance\n\t */\n\t\n\t\n\t DateType.prototype.destroy = function destroy() {\n\t var _this4 = this;\n\t\n\t if (!this.initialized) {\n\t return;\n\t }\n\t\n\t // TODO: remove added formats\n\t\n\t this.emitter.off(['add-date-type-formats'], function (tf, types) {\n\t return _this4.addConfigFormats(types);\n\t });\n\t\n\t this.initialized = false;\n\t };\n\t\n\t return DateType;\n\t}(_feature.Feature);\n\n/***/ },\n/* 31 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(32);\n\t__webpack_require__(370);\n\t\n\tmodule.exports = __webpack_require__(34);\n\n/***/ },\n/* 32 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t// Static Methods\n\t__webpack_require__(33);\n\t__webpack_require__(93);\n\t__webpack_require__(139);\n\t__webpack_require__(141);\n\t__webpack_require__(142);\n\t__webpack_require__(143);\n\t__webpack_require__(144);\n\t\n\t// Instance Methods\n\t__webpack_require__(145);\n\t__webpack_require__(152);\n\t__webpack_require__(153);\n\t__webpack_require__(154);\n\t__webpack_require__(155);\n\t__webpack_require__(156);\n\t__webpack_require__(157);\n\t__webpack_require__(158);\n\t__webpack_require__(159);\n\t__webpack_require__(160);\n\t__webpack_require__(161);\n\t__webpack_require__(162);\n\t__webpack_require__(163);\n\t__webpack_require__(164);\n\t__webpack_require__(165);\n\t__webpack_require__(166);\n\t__webpack_require__(167);\n\t__webpack_require__(168);\n\t__webpack_require__(169);\n\t__webpack_require__(170);\n\t__webpack_require__(171);\n\t__webpack_require__(172);\n\t__webpack_require__(173);\n\t__webpack_require__(174);\n\t__webpack_require__(175);\n\t__webpack_require__(176);\n\t__webpack_require__(177);\n\t__webpack_require__(178);\n\t__webpack_require__(179);\n\t__webpack_require__(180);\n\t__webpack_require__(181);\n\t__webpack_require__(182);\n\t__webpack_require__(183);\n\t__webpack_require__(184);\n\t__webpack_require__(185);\n\t__webpack_require__(186);\n\t__webpack_require__(187);\n\t__webpack_require__(188);\n\t__webpack_require__(189);\n\t__webpack_require__(190);\n\t__webpack_require__(191);\n\t__webpack_require__(192);\n\t__webpack_require__(193);\n\t__webpack_require__(194);\n\t__webpack_require__(195);\n\t__webpack_require__(196);\n\t__webpack_require__(197);\n\t__webpack_require__(198);\n\t__webpack_require__(199);\n\t__webpack_require__(200);\n\t__webpack_require__(201);\n\t__webpack_require__(202);\n\t__webpack_require__(203);\n\t__webpack_require__(204);\n\t__webpack_require__(205);\n\t__webpack_require__(206);\n\t__webpack_require__(207);\n\t__webpack_require__(208);\n\t__webpack_require__(209);\n\t__webpack_require__(210);\n\t__webpack_require__(211);\n\t__webpack_require__(212);\n\t__webpack_require__(213);\n\t__webpack_require__(214);\n\t__webpack_require__(215);\n\t__webpack_require__(216);\n\t__webpack_require__(217);\n\t__webpack_require__(218);\n\t__webpack_require__(219);\n\t__webpack_require__(220);\n\t__webpack_require__(221);\n\t__webpack_require__(222);\n\t__webpack_require__(223);\n\t__webpack_require__(224);\n\t__webpack_require__(225);\n\t__webpack_require__(226);\n\t__webpack_require__(227);\n\t__webpack_require__(228);\n\t__webpack_require__(229);\n\t__webpack_require__(230);\n\t__webpack_require__(231);\n\t__webpack_require__(232);\n\t__webpack_require__(240);\n\t__webpack_require__(241);\n\t__webpack_require__(242);\n\t__webpack_require__(243);\n\t__webpack_require__(244);\n\t__webpack_require__(245);\n\t__webpack_require__(246);\n\t__webpack_require__(247);\n\t__webpack_require__(252);\n\t__webpack_require__(253);\n\t__webpack_require__(254);\n\t__webpack_require__(255);\n\t__webpack_require__(256);\n\t__webpack_require__(257);\n\t__webpack_require__(258);\n\t__webpack_require__(259);\n\t__webpack_require__(260);\n\t__webpack_require__(261);\n\t__webpack_require__(262);\n\t__webpack_require__(263);\n\t__webpack_require__(264);\n\t__webpack_require__(265);\n\t__webpack_require__(266);\n\t__webpack_require__(267);\n\t__webpack_require__(268);\n\t__webpack_require__(287);\n\t__webpack_require__(288);\n\t__webpack_require__(289);\n\t__webpack_require__(290);\n\t__webpack_require__(291);\n\t__webpack_require__(292);\n\t__webpack_require__(293);\n\t__webpack_require__(294);\n\t__webpack_require__(295);\n\t__webpack_require__(296);\n\t__webpack_require__(300);\n\t__webpack_require__(301);\n\t__webpack_require__(302);\n\t__webpack_require__(303);\n\t__webpack_require__(306);\n\t__webpack_require__(307);\n\t__webpack_require__(308);\n\t__webpack_require__(309);\n\t__webpack_require__(310);\n\t__webpack_require__(311);\n\t__webpack_require__(312);\n\t__webpack_require__(313);\n\t__webpack_require__(314);\n\t__webpack_require__(315);\n\t__webpack_require__(316);\n\t__webpack_require__(317);\n\t__webpack_require__(318);\n\t__webpack_require__(319);\n\t__webpack_require__(320);\n\t__webpack_require__(321);\n\t__webpack_require__(322);\n\t__webpack_require__(323);\n\t__webpack_require__(324);\n\t__webpack_require__(325);\n\t__webpack_require__(327);\n\t__webpack_require__(328);\n\t__webpack_require__(329);\n\t__webpack_require__(330);\n\t__webpack_require__(331);\n\t__webpack_require__(332);\n\t__webpack_require__(333);\n\t__webpack_require__(334);\n\t__webpack_require__(335);\n\t__webpack_require__(336);\n\t__webpack_require__(337);\n\t__webpack_require__(338);\n\t__webpack_require__(339);\n\t__webpack_require__(340);\n\t__webpack_require__(341);\n\t__webpack_require__(342);\n\t__webpack_require__(343);\n\t__webpack_require__(344);\n\t__webpack_require__(345);\n\t__webpack_require__(348);\n\t__webpack_require__(349);\n\t__webpack_require__(351);\n\t__webpack_require__(352);\n\t__webpack_require__(353);\n\t__webpack_require__(354);\n\t__webpack_require__(355);\n\t__webpack_require__(356);\n\t__webpack_require__(357);\n\t__webpack_require__(358);\n\t__webpack_require__(359);\n\t__webpack_require__(360);\n\t__webpack_require__(361);\n\t__webpack_require__(362);\n\t__webpack_require__(363);\n\t__webpack_require__(364);\n\t__webpack_require__(365);\n\t__webpack_require__(366);\n\t__webpack_require__(367);\n\t\n\t// Accessors\n\t__webpack_require__(368);\n\t__webpack_require__(369);\n\t\n\tmodule.exports = __webpack_require__(34);\n\n/***/ },\n/* 33 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'addLocale': function(code, set) {\n\t return localeManager.add(code, set);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.addLocale;\n\n/***/ },\n/* 34 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/*\n\t * Sugar v2.0.0\n\t *\n\t * Freely distributable and licensed under the MIT-style license.\n\t * Copyright (c) Andrew Plummer\n\t * https://sugarjs.com/\n\t *\n\t * ---------------------------- */\n\t(function() {\n\t 'use strict';\n\t\n\t /***\n\t * @module Core\n\t * @description Core functionality including the ability to define methods and\n\t * extend onto natives.\n\t *\n\t ***/\n\t\n\t // The global to export.\n\t var Sugar;\n\t\n\t // The name of Sugar in the global namespace.\n\t var SUGAR_GLOBAL = 'Sugar';\n\t\n\t // Natives available on initialization. Letting Object go first to ensure its\n\t // global is set by the time the rest are checking for chainable Object methods.\n\t var NATIVE_NAMES = 'Object Number String Array Date RegExp Function';\n\t\n\t // Static method flag\n\t var STATIC = 0x1;\n\t\n\t // Instance method flag\n\t var INSTANCE = 0x2;\n\t\n\t // IE8 has a broken defineProperty but no defineProperties so this saves a try/catch.\n\t var PROPERTY_DESCRIPTOR_SUPPORT = !!(Object.defineProperty && Object.defineProperties);\n\t\n\t // The global context. Rhino uses a different \"global\" keyword so\n\t // do an extra check to be sure that it's actually the global context.\n\t var globalContext = typeof global !== 'undefined' && global.Object === Object ? global : this;\n\t\n\t // Is the environment node?\n\t var hasExports = typeof module !== 'undefined' && module.exports;\n\t\n\t // Whether object instance methods can be mapped to the prototype.\n\t var allowObjectPrototype = false;\n\t\n\t // A map from Array to SugarArray.\n\t var namespacesByName = {};\n\t\n\t // A map from [object Object] to namespace.\n\t var namespacesByClassString = {};\n\t\n\t // Defining properties.\n\t var defineProperty = PROPERTY_DESCRIPTOR_SUPPORT ? Object.defineProperty : definePropertyShim;\n\t\n\t // A default chainable class for unknown types.\n\t var DefaultChainable = getNewChainableClass('Chainable');\n\t\n\t\n\t // Global methods\n\t\n\t function setupGlobal() {\n\t Sugar = globalContext[SUGAR_GLOBAL];\n\t if (Sugar) {\n\t // Reuse already defined Sugar global object.\n\t return;\n\t }\n\t Sugar = function(arg) {\n\t forEachProperty(Sugar, function(sugarNamespace, name) {\n\t // Although only the only enumerable properties on the global\n\t // object are Sugar namespaces, environments that can't set\n\t // non-enumerable properties will step through the utility methods\n\t // as well here, so use this check to only allow true namespaces.\n\t if (hasOwn(namespacesByName, name)) {\n\t sugarNamespace.extend(arg);\n\t }\n\t });\n\t return Sugar;\n\t };\n\t if (hasExports) {\n\t module.exports = Sugar;\n\t } else {\n\t try {\n\t globalContext[SUGAR_GLOBAL] = Sugar;\n\t } catch (e) {\n\t // Contexts such as QML have a read-only global context.\n\t }\n\t }\n\t forEachProperty(NATIVE_NAMES.split(' '), function(name) {\n\t createNamespace(name);\n\t });\n\t setGlobalProperties();\n\t }\n\t\n\t /***\n\t * @method createNamespace()\n\t * @returns Namespace\n\t * @global\n\t * @short Creates a new Sugar namespace.\n\t * @extra This method is for plugin developers who want to define methods to be\n\t * used with natives that Sugar does not handle by default. The new\n\t * namespace will appear on the `Sugar` global with all the methods of\n\t * normal namespaces, including the ability to define new methods. When\n\t * extended, any defined methods will be mapped to `name` in the global\n\t * context.\n\t *\n\t * @example\n\t *\n\t * Sugar.createNamespace('Boolean');\n\t *\n\t ***/\n\t function createNamespace(name) {\n\t\n\t // Is the current namespace Object?\n\t var isObject = name === 'Object';\n\t\n\t // A Sugar namespace is also a chainable class: Sugar.Array, etc.\n\t var sugarNamespace = getNewChainableClass(name, true);\n\t\n\t /***\n\t * @method extend([options])\n\t * @returns Sugar\n\t * @global\n\t * @namespace\n\t * @short Extends Sugar defined methods onto natives.\n\t * @extra This method can be called on individual namespaces like\n\t * `Sugar.Array` or on the `Sugar` global itself, in which case\n\t * [options] will be forwarded to each `extend` call. For more,\n\t * see `extending`.\n\t *\n\t * @options\n\t *\n\t * methods An array of method names to explicitly extend.\n\t *\n\t * except An array of method names or global namespaces (`Array`,\n\t * `String`) to explicitly exclude. Namespaces should be the\n\t * actual global objects, not strings.\n\t *\n\t * namespaces An array of global namespaces (`Array`, `String`) to\n\t * explicitly extend. Namespaces should be the actual\n\t * global objects, not strings.\n\t *\n\t * enhance A shortcut to disallow all \"enhance\" flags at once\n\t * (flags listed below). For more, see `enhanced methods`.\n\t * Default is `true`.\n\t *\n\t * enhanceString A boolean allowing String enhancements. Default is `true`.\n\t *\n\t * enhanceArray A boolean allowing Array enhancements. Default is `true`.\n\t *\n\t * objectPrototype A boolean allowing Sugar to extend Object.prototype\n\t * with instance methods. This option is off by default\n\t * and should generally not be used except with caution.\n\t * For more, see `object methods`.\n\t *\n\t * @example\n\t *\n\t * Sugar.Array.extend();\n\t * Sugar.extend();\n\t *\n\t ***/\n\t var extend = function (opts) {\n\t\n\t var nativeClass = globalContext[name], nativeProto = nativeClass.prototype;\n\t var staticMethods = {}, instanceMethods = {}, methodsByName;\n\t\n\t function objectRestricted(name, target) {\n\t return isObject && target === nativeProto &&\n\t (!allowObjectPrototype || name === 'get' || name === 'set');\n\t }\n\t\n\t function arrayOptionExists(field, val) {\n\t var arr = opts[field];\n\t if (arr) {\n\t for (var i = 0, el; el = arr[i]; i++) {\n\t if (el === val) {\n\t return true;\n\t }\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t function arrayOptionExcludes(field, val) {\n\t return opts[field] && !arrayOptionExists(field, val);\n\t }\n\t\n\t function disallowedByFlags(methodName, target, flags) {\n\t // Disallowing methods by flag currently only applies if methods already\n\t // exist to avoid enhancing native methods, as aliases should still be\n\t // extended (i.e. Array#all should still be extended even if Array#every\n\t // is being disallowed by a flag).\n\t if (!target[methodName] || !flags) {\n\t return false;\n\t }\n\t for (var i = 0; i < flags.length; i++) {\n\t if (opts[flags[i]] === false) {\n\t return true;\n\t }\n\t }\n\t }\n\t\n\t function namespaceIsExcepted() {\n\t return arrayOptionExists('except', nativeClass) ||\n\t arrayOptionExcludes('namespaces', nativeClass);\n\t }\n\t\n\t function methodIsExcepted(methodName) {\n\t return arrayOptionExists('except', methodName);\n\t }\n\t\n\t function canExtend(methodName, method, target) {\n\t return !objectRestricted(methodName, target) &&\n\t !disallowedByFlags(methodName, target, method.flags) &&\n\t !methodIsExcepted(methodName);\n\t }\n\t\n\t opts = opts || {};\n\t methodsByName = opts.methods;\n\t\n\t if (namespaceIsExcepted()) {\n\t return;\n\t } else if (isObject && typeof opts.objectPrototype === 'boolean') {\n\t // Store \"objectPrototype\" flag for future reference.\n\t allowObjectPrototype = opts.objectPrototype;\n\t }\n\t\n\t forEachProperty(methodsByName || sugarNamespace, function(method, methodName) {\n\t if (methodsByName) {\n\t // If we have method names passed in an array,\n\t // then we need to flip the key and value here\n\t // and find the method in the Sugar namespace.\n\t methodName = method;\n\t method = sugarNamespace[methodName];\n\t }\n\t if (hasOwn(method, 'instance') && canExtend(methodName, method, nativeProto)) {\n\t instanceMethods[methodName] = method.instance;\n\t }\n\t if(hasOwn(method, 'static') && canExtend(methodName, method, nativeClass)) {\n\t staticMethods[methodName] = method;\n\t }\n\t });\n\t\n\t // Accessing the extend target each time instead of holding a reference as\n\t // it may have been overwritten (for example Date by Sinon). Also need to\n\t // access through the global to allow extension of user-defined namespaces.\n\t extendNative(nativeClass, staticMethods);\n\t extendNative(nativeProto, instanceMethods);\n\t\n\t if (!methodsByName) {\n\t // If there are no method names passed, then\n\t // all methods in the namespace will be extended\n\t // to the native. This includes all future defined\n\t // methods, so add a flag here to check later.\n\t setProperty(sugarNamespace, 'active', true);\n\t }\n\t return Sugar;\n\t };\n\t\n\t function defineWithOptionCollect(methodName, instance, args) {\n\t setProperty(sugarNamespace, methodName, function(arg1, arg2, arg3) {\n\t var opts = collectDefineOptions(arg1, arg2, arg3);\n\t defineMethods(sugarNamespace, opts.methods, instance, args, opts.last);\n\t return sugarNamespace;\n\t });\n\t }\n\t\n\t /***\n\t * @method defineStatic(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short Defines static methods on the namespace that can later be extended\n\t * onto the native globals.\n\t * @extra Accepts either a single object mapping names to functions, or name\n\t * and function as two arguments. If `extend` was previously called\n\t * with no arguments, the method will be immediately mapped to its\n\t * native when defined.\n\t *\n\t * @example\n\t *\n\t * Sugar.Number.defineStatic({\n\t * isOdd: function (num) {\n\t * return num % 2 === 1;\n\t * }\n\t * });\n\t *\n\t ***/\n\t defineWithOptionCollect('defineStatic', STATIC);\n\t\n\t /***\n\t * @method defineInstance(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short Defines methods on the namespace that can later be extended as\n\t * instance methods onto the native prototype.\n\t * @extra Accepts either a single object mapping names to functions, or name\n\t * and function as two arguments. All functions should accept the\n\t * native for which they are mapped as their first argument, and should\n\t * never refer to `this`. If `extend` was previously called with no\n\t * arguments, the method will be immediately mapped to its native when\n\t * defined.\n\t *\n\t * Methods cannot accept more than 4 arguments in addition to the\n\t * native (5 arguments total). Any additional arguments will not be\n\t * mapped. If the method needs to accept unlimited arguments, use\n\t * `defineInstanceWithArguments`. Otherwise if more options are\n\t * required, use an options object instead.\n\t *\n\t * @example\n\t *\n\t * Sugar.Number.defineInstance({\n\t * square: function (num) {\n\t * return num * num;\n\t * }\n\t * });\n\t *\n\t ***/\n\t defineWithOptionCollect('defineInstance', INSTANCE);\n\t\n\t /***\n\t * @method defineInstanceAndStatic(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short A shortcut to define both static and instance methods on the namespace.\n\t * @extra This method is intended for use with `Object` instance methods. Sugar\n\t * will not map any methods to `Object.prototype` by default, so defining\n\t * instance methods as static helps facilitate their proper use.\n\t *\n\t * @example\n\t *\n\t * Sugar.Object.defineInstanceAndStatic({\n\t * isAwesome: function (obj) {\n\t * // check if obj is awesome!\n\t * }\n\t * });\n\t *\n\t ***/\n\t defineWithOptionCollect('defineInstanceAndStatic', INSTANCE | STATIC);\n\t\n\t\n\t /***\n\t * @method defineStaticWithArguments(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short Defines static methods that collect arguments.\n\t * @extra This method is identical to `defineStatic`, except that when defined\n\t * methods are called, they will collect any arguments past `n - 1`,\n\t * where `n` is the number of arguments that the method accepts.\n\t * Collected arguments will be passed to the method in an array\n\t * as the last argument defined on the function.\n\t *\n\t * @example\n\t *\n\t * Sugar.Number.defineStaticWithArguments({\n\t * addAll: function (num, args) {\n\t * for (var i = 0; i < args.length; i++) {\n\t * num += args[i];\n\t * }\n\t * return num;\n\t * }\n\t * });\n\t *\n\t ***/\n\t defineWithOptionCollect('defineStaticWithArguments', STATIC, true);\n\t\n\t /***\n\t * @method defineInstanceWithArguments(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short Defines instance methods that collect arguments.\n\t * @extra This method is identical to `defineInstance`, except that when\n\t * defined methods are called, they will collect any arguments past\n\t * `n - 1`, where `n` is the number of arguments that the method\n\t * accepts. Collected arguments will be passed to the method as the\n\t * last argument defined on the function.\n\t *\n\t * @example\n\t *\n\t * Sugar.Number.defineInstanceWithArguments({\n\t * addAll: function (num, args) {\n\t * for (var i = 0; i < args.length; i++) {\n\t * num += args[i];\n\t * }\n\t * return num;\n\t * }\n\t * });\n\t *\n\t ***/\n\t defineWithOptionCollect('defineInstanceWithArguments', INSTANCE, true);\n\t\n\t /***\n\t * @method defineStaticPolyfill(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short Defines static methods that are mapped onto the native if they do\n\t * not already exist.\n\t * @extra Intended only for use creating polyfills that follow the ECMAScript\n\t * spec. Accepts either a single object mapping names to functions, or\n\t * name and function as two arguments.\n\t *\n\t * @example\n\t *\n\t * Sugar.Object.defineStaticPolyfill({\n\t * keys: function (obj) {\n\t * // get keys!\n\t * }\n\t * });\n\t *\n\t ***/\n\t setProperty(sugarNamespace, 'defineStaticPolyfill', function(arg1, arg2, arg3) {\n\t var opts = collectDefineOptions(arg1, arg2, arg3);\n\t extendNative(globalContext[name], opts.methods, true, opts.last);\n\t });\n\t\n\t /***\n\t * @method defineInstancePolyfill(...)\n\t * @returns Namespace\n\t * @namespace\n\t * @short Defines instance methods that are mapped onto the native prototype\n\t * if they do not already exist.\n\t * @extra Intended only for use creating polyfills that follow the ECMAScript\n\t * spec. Accepts either a single object mapping names to functions, or\n\t * name and function as two arguments. This method differs from\n\t * `defineInstance` as there is no static signature (as the method\n\t * is mapped as-is to the native), so it should refer to its `this`\n\t * object.\n\t *\n\t * @example\n\t *\n\t * Sugar.Array.defineInstancePolyfill({\n\t * indexOf: function (arr, el) {\n\t * // index finding code here!\n\t * }\n\t * });\n\t *\n\t ***/\n\t setProperty(sugarNamespace, 'defineInstancePolyfill', function(arg1, arg2, arg3) {\n\t var opts = collectDefineOptions(arg1, arg2, arg3);\n\t extendNative(globalContext[name].prototype, opts.methods, true, opts.last);\n\t // Map instance polyfills to chainable as well.\n\t forEachProperty(opts.methods, function(fn, methodName) {\n\t defineChainableMethod(sugarNamespace, methodName, fn);\n\t });\n\t });\n\t\n\t /***\n\t * @method alias(, )\n\t * @returns Namespace\n\t * @namespace\n\t * @short Aliases one Sugar method to another.\n\t *\n\t * @example\n\t *\n\t * Sugar.Array.alias('all', 'every');\n\t *\n\t ***/\n\t setProperty(sugarNamespace, 'alias', function(name, source) {\n\t var method = typeof source === 'string' ? sugarNamespace[source] : source;\n\t setMethod(sugarNamespace, name, method);\n\t });\n\t\n\t // Each namespace can extend only itself through its .extend method.\n\t setProperty(sugarNamespace, 'extend', extend);\n\t\n\t // Cache the class to namespace relationship for later use.\n\t namespacesByName[name] = sugarNamespace;\n\t namespacesByClassString['[object ' + name + ']'] = sugarNamespace;\n\t\n\t mapNativeToChainable(name);\n\t mapObjectChainablesToNamespace(sugarNamespace);\n\t\n\t\n\t // Export\n\t return Sugar[name] = sugarNamespace;\n\t }\n\t\n\t function setGlobalProperties() {\n\t setProperty(Sugar, 'extend', Sugar);\n\t setProperty(Sugar, 'toString', toString);\n\t setProperty(Sugar, 'createNamespace', createNamespace);\n\t\n\t setProperty(Sugar, 'util', {\n\t 'hasOwn': hasOwn,\n\t 'getOwn': getOwn,\n\t 'setProperty': setProperty,\n\t 'classToString': classToString,\n\t 'defineProperty': defineProperty,\n\t 'forEachProperty': forEachProperty,\n\t 'mapNativeToChainable': mapNativeToChainable\n\t });\n\t }\n\t\n\t function toString() {\n\t return SUGAR_GLOBAL;\n\t }\n\t\n\t\n\t // Defining Methods\n\t\n\t function defineMethods(sugarNamespace, methods, type, args, flags) {\n\t forEachProperty(methods, function(method, methodName) {\n\t var instanceMethod, staticMethod = method;\n\t if (args) {\n\t staticMethod = wrapMethodWithArguments(method);\n\t }\n\t if (flags) {\n\t staticMethod.flags = flags;\n\t }\n\t\n\t // A method may define its own custom implementation, so\n\t // make sure that's not the case before creating one.\n\t if (type & INSTANCE && !method.instance) {\n\t instanceMethod = wrapInstanceMethod(method, args);\n\t setProperty(staticMethod, 'instance', instanceMethod);\n\t }\n\t\n\t if (type & STATIC) {\n\t setProperty(staticMethod, 'static', true);\n\t }\n\t\n\t setMethod(sugarNamespace, methodName, staticMethod);\n\t\n\t if (sugarNamespace.active) {\n\t // If the namespace has been activated (.extend has been called),\n\t // then map this method as well.\n\t sugarNamespace.extend(methodName);\n\t }\n\t });\n\t }\n\t\n\t function collectDefineOptions(arg1, arg2, arg3) {\n\t var methods, last;\n\t if (typeof arg1 === 'string') {\n\t methods = {};\n\t methods[arg1] = arg2;\n\t last = arg3;\n\t } else {\n\t methods = arg1;\n\t last = arg2;\n\t }\n\t return {\n\t last: last,\n\t methods: methods\n\t };\n\t }\n\t\n\t function wrapInstanceMethod(fn, args) {\n\t return args ? wrapMethodWithArguments(fn, true) : wrapInstanceMethodFixed(fn);\n\t }\n\t\n\t function wrapMethodWithArguments(fn, instance) {\n\t // Functions accepting enumerated arguments will always have \"args\" as the\n\t // last argument, so subtract one from the function length to get the point\n\t // at which to start collecting arguments. If this is an instance method on\n\t // a prototype, then \"this\" will be pushed into the arguments array so start\n\t // collecting 1 argument earlier.\n\t var startCollect = fn.length - 1 - (instance ? 1 : 0);\n\t return function() {\n\t var args = [], collectedArgs = [], len;\n\t if (instance) {\n\t args.push(this);\n\t }\n\t len = Math.max(arguments.length, startCollect);\n\t // Optimized: no leaking arguments\n\t for (var i = 0; i < len; i++) {\n\t if (i < startCollect) {\n\t args.push(arguments[i]);\n\t } else {\n\t collectedArgs.push(arguments[i]);\n\t }\n\t }\n\t args.push(collectedArgs);\n\t return fn.apply(this, args);\n\t };\n\t }\n\t\n\t function wrapInstanceMethodFixed(fn) {\n\t switch(fn.length) {\n\t // Wrapped instance methods will always be passed the instance\n\t // as the first argument, but requiring the argument to be defined\n\t // may cause confusion here, so return the same wrapped function regardless.\n\t case 0:\n\t case 1:\n\t return function() {\n\t return fn(this);\n\t };\n\t case 2:\n\t return function(a) {\n\t return fn(this, a);\n\t };\n\t case 3:\n\t return function(a, b) {\n\t return fn(this, a, b);\n\t };\n\t case 4:\n\t return function(a, b, c) {\n\t return fn(this, a, b, c);\n\t };\n\t case 5:\n\t return function(a, b, c, d) {\n\t return fn(this, a, b, c, d);\n\t };\n\t }\n\t }\n\t\n\t // Method helpers\n\t\n\t function extendNative(target, source, polyfill, override) {\n\t forEachProperty(source, function(method, name) {\n\t if (polyfill && !override && target[name]) {\n\t // Method exists, so bail.\n\t return;\n\t }\n\t setProperty(target, name, method);\n\t });\n\t }\n\t\n\t function setMethod(sugarNamespace, methodName, method) {\n\t sugarNamespace[methodName] = method;\n\t if (method.instance) {\n\t defineChainableMethod(sugarNamespace, methodName, method.instance, true);\n\t }\n\t }\n\t\n\t\n\t // Chainables\n\t\n\t function getNewChainableClass(name) {\n\t var fn = function SugarChainable(obj, arg) {\n\t if (!(this instanceof fn)) {\n\t return new fn(obj, arg);\n\t }\n\t if (this.constructor !== fn) {\n\t // Allow modules to define their own constructors.\n\t obj = this.constructor.apply(obj, arguments);\n\t }\n\t this.raw = obj;\n\t };\n\t setProperty(fn, 'toString', function() {\n\t return SUGAR_GLOBAL + name;\n\t });\n\t setProperty(fn.prototype, 'valueOf', function() {\n\t return this.raw;\n\t });\n\t return fn;\n\t }\n\t\n\t function defineChainableMethod(sugarNamespace, methodName, fn) {\n\t var wrapped = wrapWithChainableResult(fn), existing, collision, dcp;\n\t dcp = DefaultChainable.prototype;\n\t existing = dcp[methodName];\n\t\n\t // If the method was previously defined on the default chainable, then a\n\t // collision exists, so set the method to a disambiguation function that will\n\t // lazily evaluate the object and find it's associated chainable. An extra\n\t // check is required to avoid false positives from Object inherited methods.\n\t collision = existing && existing !== Object.prototype[methodName];\n\t\n\t // The disambiguation function is only required once.\n\t if (!existing || !existing.disambiguate) {\n\t dcp[methodName] = collision ? disambiguateMethod(methodName) : wrapped;\n\t }\n\t\n\t // The target chainable always receives the wrapped method. Additionally,\n\t // if the target chainable is Sugar.Object, then map the wrapped method\n\t // to all other namespaces as well if they do not define their own method\n\t // of the same name. This way, a Sugar.Number will have methods like\n\t // isEqual that can be called on any object without having to traverse up\n\t // the prototype chain and perform disambiguation, which costs cycles.\n\t // Note that the \"if\" block below actually does nothing on init as Object\n\t // goes first and no other namespaces exist yet. However it needs to be\n\t // here as Object instance methods defined later also need to be mapped\n\t // back onto existing namespaces.\n\t sugarNamespace.prototype[methodName] = wrapped;\n\t if (sugarNamespace === Sugar.Object) {\n\t mapObjectChainableToAllNamespaces(methodName, wrapped);\n\t }\n\t }\n\t\n\t function mapObjectChainablesToNamespace(sugarNamespace) {\n\t forEachProperty(Sugar.Object && Sugar.Object.prototype, function(val, methodName) {\n\t if (typeof val === 'function') {\n\t setObjectChainableOnNamespace(sugarNamespace, methodName, val);\n\t }\n\t });\n\t }\n\t\n\t function mapObjectChainableToAllNamespaces(methodName, fn) {\n\t forEachProperty(namespacesByName, function(sugarNamespace) {\n\t setObjectChainableOnNamespace(sugarNamespace, methodName, fn);\n\t });\n\t }\n\t\n\t function setObjectChainableOnNamespace(sugarNamespace, methodName, fn) {\n\t var proto = sugarNamespace.prototype;\n\t if (!hasOwn(proto, methodName)) {\n\t proto[methodName] = fn;\n\t }\n\t }\n\t\n\t function wrapWithChainableResult(fn) {\n\t return function() {\n\t return new DefaultChainable(fn.apply(this.raw, arguments));\n\t };\n\t }\n\t\n\t function disambiguateMethod(methodName) {\n\t var fn = function() {\n\t var raw = this.raw, sugarNamespace, fn;\n\t if (raw != null) {\n\t // Find the Sugar namespace for this unknown.\n\t sugarNamespace = namespacesByClassString[classToString(raw)];\n\t }\n\t if (!sugarNamespace) {\n\t // If no sugarNamespace can be resolved, then default\n\t // back to Sugar.Object so that undefined and other\n\t // non-supported types can still have basic object\n\t // methods called on them, such as type checks.\n\t sugarNamespace = Sugar.Object;\n\t }\n\t\n\t fn = new sugarNamespace(raw)[methodName];\n\t\n\t if (fn.disambiguate) {\n\t // If the method about to be called on this chainable is\n\t // itself a disambiguation method, then throw an error to\n\t // prevent infinite recursion.\n\t throw new TypeError('Cannot resolve namespace for ' + raw);\n\t }\n\t\n\t return fn.apply(this, arguments);\n\t };\n\t fn.disambiguate = true;\n\t return fn;\n\t }\n\t\n\t function mapNativeToChainable(name, methodNames) {\n\t var sugarNamespace = namespacesByName[name],\n\t nativeProto = globalContext[name].prototype;\n\t\n\t if (!methodNames && ownPropertyNames) {\n\t methodNames = ownPropertyNames(nativeProto);\n\t }\n\t\n\t forEachProperty(methodNames, function(methodName) {\n\t if (nativeMethodProhibited(methodName)) {\n\t // Sugar chainables have their own constructors as well as \"valueOf\"\n\t // methods, so exclude them here. The __proto__ argument should be trapped\n\t // by the function check below, however simply accessing this property on\n\t // Object.prototype causes QML to segfault, so pre-emptively excluding it.\n\t return;\n\t }\n\t try {\n\t var fn = nativeProto[methodName];\n\t if (typeof fn !== 'function') {\n\t // Bail on anything not a function.\n\t return;\n\t }\n\t } catch (e) {\n\t // Function.prototype has properties that\n\t // will throw errors when accessed.\n\t return;\n\t }\n\t defineChainableMethod(sugarNamespace, methodName, fn);\n\t });\n\t }\n\t\n\t function nativeMethodProhibited(methodName) {\n\t return methodName === 'constructor' ||\n\t methodName === 'valueOf' ||\n\t methodName === '__proto__';\n\t }\n\t\n\t\n\t // Util\n\t\n\t // Internal references\n\t var ownPropertyNames = Object.getOwnPropertyNames,\n\t internalToString = Object.prototype.toString,\n\t internalHasOwnProperty = Object.prototype.hasOwnProperty;\n\t\n\t // Defining this as a variable here as the ES5 module\n\t // overwrites it to patch DONTENUM.\n\t var forEachProperty = function (obj, fn) {\n\t for(var key in obj) {\n\t if (!hasOwn(obj, key)) continue;\n\t if (fn.call(obj, obj[key], key, obj) === false) break;\n\t }\n\t };\n\t\n\t function definePropertyShim(obj, prop, descriptor) {\n\t obj[prop] = descriptor.value;\n\t }\n\t\n\t function setProperty(target, name, value, enumerable) {\n\t defineProperty(target, name, {\n\t value: value,\n\t enumerable: !!enumerable,\n\t configurable: true,\n\t writable: true\n\t });\n\t }\n\t\n\t // PERF: Attempts to speed this method up get very Heisenbergy. Quickly\n\t // returning based on typeof works for primitives, but slows down object\n\t // types. Even === checks on null and undefined (no typeof) will end up\n\t // basically breaking even. This seems to be as fast as it can go.\n\t function classToString(obj) {\n\t return internalToString.call(obj);\n\t }\n\t\n\t function hasOwn(obj, prop) {\n\t return !!obj && internalHasOwnProperty.call(obj, prop);\n\t }\n\t\n\t function getOwn(obj, prop) {\n\t if (hasOwn(obj, prop)) {\n\t return obj[prop];\n\t }\n\t }\n\t\n\t setupGlobal();\n\t\n\t}).call(this);\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 35 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LazyLoadedLocales = __webpack_require__(36),\n\t AmericanEnglishDefinition = __webpack_require__(43),\n\t getNewLocale = __webpack_require__(45);\n\t\n\tvar English, localeManager;\n\t\n\tfunction buildLocales() {\n\t\n\t function LocaleManager(loc) {\n\t this.locales = {};\n\t this.add(loc);\n\t }\n\t\n\t LocaleManager.prototype = {\n\t\n\t get: function(code, fallback) {\n\t var loc = this.locales[code];\n\t if (!loc && LazyLoadedLocales[code]) {\n\t loc = this.add(code, LazyLoadedLocales[code]);\n\t } else if (!loc && code) {\n\t loc = this.locales[code.slice(0, 2)];\n\t }\n\t return loc || fallback === false ? loc : this.current;\n\t },\n\t\n\t getAll: function() {\n\t return this.locales;\n\t },\n\t\n\t set: function(code) {\n\t var loc = this.get(code, false);\n\t if (!loc) {\n\t throw new TypeError('Invalid Locale: ' + code);\n\t }\n\t return this.current = loc;\n\t },\n\t\n\t add: function(code, def) {\n\t if (!def) {\n\t def = code;\n\t code = def.code;\n\t } else {\n\t def.code = code;\n\t }\n\t var loc = def.compiledFormats ? def : getNewLocale(def);\n\t this.locales[code] = loc;\n\t if (!this.current) {\n\t this.current = loc;\n\t }\n\t return loc;\n\t },\n\t\n\t remove: function(code) {\n\t if (this.current.code === code) {\n\t this.current = this.get('en');\n\t }\n\t return delete this.locales[code];\n\t }\n\t\n\t };\n\t\n\t // Sorry about this guys...\n\t English = getNewLocale(AmericanEnglishDefinition);\n\t localeManager = new LocaleManager(English);\n\t}\n\t\n\tbuildLocales();\n\t\n\tmodule.exports = {\n\t English: English,\n\t localeManager: localeManager\n\t};\n\n/***/ },\n/* 36 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar BritishEnglishDefinition = __webpack_require__(37),\n\t AmericanEnglishDefinition = __webpack_require__(43),\n\t CanadianEnglishDefinition = __webpack_require__(44);\n\t\n\tvar LazyLoadedLocales = {\n\t 'en-US': AmericanEnglishDefinition,\n\t 'en-GB': BritishEnglishDefinition,\n\t 'en-AU': BritishEnglishDefinition,\n\t 'en-CA': CanadianEnglishDefinition\n\t};\n\t\n\tmodule.exports = LazyLoadedLocales;\n\n/***/ },\n/* 37 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getEnglishVariant = __webpack_require__(38);\n\t\n\tvar BritishEnglishDefinition = getEnglishVariant({\n\t 'short': '{dd}/{MM}/{yyyy}',\n\t 'medium': '{d} {Month} {yyyy}',\n\t 'long': '{d} {Month} {yyyy} {H}:{mm}',\n\t 'full': '{Weekday}, {d} {Month}, {yyyy} {time}',\n\t 'stamp': '{Dow} {d} {Mon} {yyyy} {time}'\n\t});\n\t\n\tmodule.exports = BritishEnglishDefinition;\n\n/***/ },\n/* 38 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar EnglishLocaleBaseDefinition = __webpack_require__(39),\n\t simpleMerge = __webpack_require__(40),\n\t simpleClone = __webpack_require__(42);\n\t\n\tfunction getEnglishVariant(v) {\n\t return simpleMerge(simpleClone(EnglishLocaleBaseDefinition), v);\n\t}\n\t\n\tmodule.exports = getEnglishVariant;\n\n/***/ },\n/* 39 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar EnglishLocaleBaseDefinition = {\n\t 'code': 'en',\n\t 'plural': true,\n\t 'timeMarkers': 'at',\n\t 'ampm': 'AM|A.M.|a,PM|P.M.|p',\n\t 'units': 'millisecond:|s,second:|s,minute:|s,hour:|s,day:|s,week:|s,month:|s,year:|s',\n\t 'months': 'Jan:uary|,Feb:ruary|,Mar:ch|,Apr:il|,May,Jun:e|,Jul:y|,Aug:ust|,Sep:tember|t|,Oct:ober|,Nov:ember|,Dec:ember|',\n\t 'weekdays': 'Sun:day|,Mon:day|,Tue:sday|,Wed:nesday|,Thu:rsday|,Fri:day|,Sat:urday|+weekend',\n\t 'numerals': 'zero,one|first,two|second,three|third,four:|th,five|fifth,six:|th,seven:|th,eight:|h,nin:e|th,ten:|th',\n\t 'articles': 'a,an,the',\n\t 'tokens': 'the,st|nd|rd|th,of|in,a|an,on',\n\t 'time': '{H}:{mm}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{num} {unit} {sign}',\n\t 'duration': '{num} {unit}',\n\t 'modifiers': [\n\t { 'name': 'half', 'src': 'half', 'value': .5 },\n\t { 'name': 'midday', 'src': 'noon', 'value': 12 },\n\t { 'name': 'midday', 'src': 'midnight', 'value': 24 },\n\t { 'name': 'day', 'src': 'yesterday', 'value': -1 },\n\t { 'name': 'day', 'src': 'today|tonight', 'value': 0 },\n\t { 'name': 'day', 'src': 'tomorrow', 'value': 1 },\n\t { 'name': 'sign', 'src': 'ago|before', 'value': -1 },\n\t { 'name': 'sign', 'src': 'from now|after|from|in|later', 'value': 1 },\n\t { 'name': 'edge', 'src': 'first day|first|beginning', 'value': -2 },\n\t { 'name': 'edge', 'src': 'last day', 'value': 1 },\n\t { 'name': 'edge', 'src': 'end|last', 'value': 2 },\n\t { 'name': 'shift', 'src': 'last', 'value': -1 },\n\t { 'name': 'shift', 'src': 'the|this', 'value': 0 },\n\t { 'name': 'shift', 'src': 'next', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '(?:just)? now',\n\t '{shift} {unit:5-7}',\n\t \"{months?} (?:{year}|'{yy})\",\n\t '{midday} {4?} {day|weekday}',\n\t '{months},?(?:[-.\\\\/\\\\s]{year})?',\n\t '{edge} of (?:day)? {day|weekday}',\n\t '{0} {num}{1?} {weekday} {2} {months},? {year?}',\n\t '{shift?} {day?} {weekday?} {timeMarker?} {midday}',\n\t '{sign?} {3?} {half} {3?} {unit:3-4|unit:7} {sign?}',\n\t '{0?} {edge} {weekday?} {2} {shift?} {unit:4-7?} {months?},? {year?}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{shift} {unit:5?} {weekday}',\n\t '{0?} {date}{1?} {2?} {months?}',\n\t '{weekday} {2?} {shift} {unit:5}',\n\t '{0?} {num} {2?} {months}\\\\.?,? {year?}',\n\t '{num?} {unit:4-5} {sign} {day|weekday}',\n\t '{year}[-.\\\\/\\\\s]{months}[-.\\\\/\\\\s]{date}',\n\t '{0|months} {date?}{1?} of {shift} {unit:6-7}',\n\t '{0?} {num}{1?} {weekday} of {shift} {unit:6}',\n\t \"{date}[-.\\\\/\\\\s]{months}[-.\\\\/\\\\s](?:{year}|'?{yy})\",\n\t \"{weekday?}\\\\.?,? {months}\\\\.?,? {date}{1?},? (?:{year}|'{yy})?\"\n\t ],\n\t 'timeFrontParse': [\n\t '{sign} {num} {unit}',\n\t '{num} {unit} {sign}',\n\t '{4?} {day|weekday}'\n\t ]\n\t};\n\t\n\tmodule.exports = EnglishLocaleBaseDefinition;\n\n/***/ },\n/* 40 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar forEachProperty = coreUtilityAliases.forEachProperty;\n\t\n\tfunction simpleMerge(target, source) {\n\t forEachProperty(source, function(val, key) {\n\t target[key] = val;\n\t });\n\t return target;\n\t}\n\t\n\tmodule.exports = simpleMerge;\n\n/***/ },\n/* 41 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\tmodule.exports = {\n\t hasOwn: Sugar.util.hasOwn,\n\t getOwn: Sugar.util.getOwn,\n\t setProperty: Sugar.util.setProperty,\n\t classToString: Sugar.util.classToString,\n\t defineProperty: Sugar.util.defineProperty,\n\t forEachProperty: Sugar.util.forEachProperty,\n\t mapNativeToChainable: Sugar.util.mapNativeToChainable\n\t};\n\n/***/ },\n/* 42 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar simpleMerge = __webpack_require__(40);\n\t\n\tfunction simpleClone(obj) {\n\t return simpleMerge({}, obj);\n\t}\n\t\n\tmodule.exports = simpleClone;\n\n/***/ },\n/* 43 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getEnglishVariant = __webpack_require__(38);\n\t\n\tvar AmericanEnglishDefinition = getEnglishVariant({\n\t 'mdy': true,\n\t 'firstDayOfWeek': 0,\n\t 'firstDayOfWeekYear': 1,\n\t 'short': '{MM}/{dd}/{yyyy}',\n\t 'medium': '{Month} {d}, {yyyy}',\n\t 'long': '{Month} {d}, {yyyy} {time}',\n\t 'full': '{Weekday}, {Month} {d}, {yyyy} {time}',\n\t 'stamp': '{Dow} {Mon} {d} {yyyy} {time}',\n\t 'time': '{h}:{mm} {TT}'\n\t});\n\t\n\tmodule.exports = AmericanEnglishDefinition;\n\n/***/ },\n/* 44 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getEnglishVariant = __webpack_require__(38);\n\t\n\tvar CanadianEnglishDefinition = getEnglishVariant({\n\t 'short': '{yyyy}-{MM}-{dd}',\n\t 'medium': '{d} {Month}, {yyyy}',\n\t 'long': '{d} {Month}, {yyyy} {H}:{mm}',\n\t 'full': '{Weekday}, {d} {Month}, {yyyy} {time}',\n\t 'stamp': '{Dow} {d} {Mon} {yyyy} {time}'\n\t});\n\t\n\tmodule.exports = CanadianEnglishDefinition;\n\n/***/ },\n/* 45 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LOCALE_ARRAY_FIELDS = __webpack_require__(46),\n\t ISODefaults = __webpack_require__(47),\n\t ParsingTokens = __webpack_require__(48),\n\t CoreParsingFormats = __webpack_require__(49),\n\t LocalizedParsingTokens = __webpack_require__(50),\n\t map = __webpack_require__(51),\n\t filter = __webpack_require__(52),\n\t forEach = __webpack_require__(53),\n\t isDefined = __webpack_require__(57),\n\t commaSplit = __webpack_require__(58),\n\t classChecks = __webpack_require__(60),\n\t isUndefined = __webpack_require__(68),\n\t mathAliases = __webpack_require__(69),\n\t simpleMerge = __webpack_require__(40),\n\t getOrdinalSuffix = __webpack_require__(70),\n\t getRegNonCapturing = __webpack_require__(71),\n\t coreUtilityAliases = __webpack_require__(41),\n\t getArrayWithOffset = __webpack_require__(72),\n\t iterateOverDateUnits = __webpack_require__(73),\n\t arrayToRegAlternates = __webpack_require__(83),\n\t fullwidthNumberHelpers = __webpack_require__(85),\n\t getAdjustedUnitForNumber = __webpack_require__(88),\n\t getParsingTokenWithSuffix = __webpack_require__(92);\n\t\n\tvar getOwn = coreUtilityAliases.getOwn,\n\t forEachProperty = coreUtilityAliases.forEachProperty,\n\t fullWidthNumberMap = fullwidthNumberHelpers.fullWidthNumberMap,\n\t fullWidthNumbers = fullwidthNumberHelpers.fullWidthNumbers,\n\t pow = mathAliases.pow,\n\t max = mathAliases.max,\n\t ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,\n\t ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR,\n\t isString = classChecks.isString,\n\t isFunction = classChecks.isFunction;\n\t\n\tfunction getNewLocale(def) {\n\t\n\t function Locale(def) {\n\t this.init(def);\n\t }\n\t\n\t Locale.prototype = {\n\t\n\t getMonthName: function(n, alternate) {\n\t if (this.monthSuffix) {\n\t return (n + 1) + this.monthSuffix;\n\t }\n\t return getArrayWithOffset(this.months, n, alternate, 12);\n\t },\n\t\n\t getWeekdayName: function(n, alternate) {\n\t return getArrayWithOffset(this.weekdays, n, alternate, 7);\n\t },\n\t\n\t getTokenValue: function(field, str) {\n\t var map = this[field + 'Map'], val;\n\t if (map) {\n\t val = map[str];\n\t }\n\t if (isUndefined(val)) {\n\t val = this.getNumber(str);\n\t if (field === 'month') {\n\t // Months are the only numeric date field\n\t // whose value is not the same as its number.\n\t val -= 1;\n\t }\n\t }\n\t return val;\n\t },\n\t\n\t getNumber: function(str) {\n\t var num = this.numeralMap[str];\n\t if (isDefined(num)) {\n\t return num;\n\t }\n\t // The unary plus operator here show better performance and handles\n\t // every format that parseFloat does with the exception of trailing\n\t // characters, which are guaranteed not to be in our string at this point.\n\t num = +str.replace(/,/, '.');\n\t if (!isNaN(num)) {\n\t return num;\n\t }\n\t num = this.getNumeralValue(str);\n\t if (!isNaN(num)) {\n\t this.numeralMap[str] = num;\n\t return num;\n\t }\n\t return num;\n\t },\n\t\n\t getNumeralValue: function(str) {\n\t var place = 1, num = 0, lastWasPlace, isPlace, numeral, digit, arr;\n\t // Note that \"numerals\" that need to be converted through this method are\n\t // all considered to be single characters in order to handle CJK. This\n\t // method is by no means unique to CJK, but the complexity of handling\n\t // inflections in non-CJK languages adds too much overhead for not enough\n\t // value, so avoiding for now.\n\t arr = str.split('');\n\t for (var i = arr.length - 1; numeral = arr[i]; i--) {\n\t digit = getOwn(this.numeralMap, numeral);\n\t if (isUndefined(digit)) {\n\t digit = getOwn(fullWidthNumberMap, numeral) || 0;\n\t }\n\t isPlace = digit > 0 && digit % 10 === 0;\n\t if (isPlace) {\n\t if (lastWasPlace) {\n\t num += place;\n\t }\n\t if (i) {\n\t place = digit;\n\t } else {\n\t num += digit;\n\t }\n\t } else {\n\t num += digit * place;\n\t place *= 10;\n\t }\n\t lastWasPlace = isPlace;\n\t }\n\t return num;\n\t },\n\t\n\t getOrdinal: function(n) {\n\t var suffix = this.ordinalSuffix;\n\t return suffix || getOrdinalSuffix(n);\n\t },\n\t\n\t getRelativeFormat: function(adu, type) {\n\t return this.convertAdjustedToFormat(adu, type);\n\t },\n\t\n\t getDuration: function(ms) {\n\t return this.convertAdjustedToFormat(getAdjustedUnitForNumber(max(0, ms)), 'duration');\n\t },\n\t\n\t getFirstDayOfWeek: function() {\n\t var val = this.firstDayOfWeek;\n\t return isDefined(val) ? val : ISO_FIRST_DAY_OF_WEEK;\n\t },\n\t\n\t getFirstDayOfWeekYear: function() {\n\t return this.firstDayOfWeekYear || ISO_FIRST_DAY_OF_WEEK_YEAR;\n\t },\n\t\n\t convertAdjustedToFormat: function(adu, type) {\n\t var sign, unit, mult,\n\t num = adu[0],\n\t u = adu[1],\n\t ms = adu[2],\n\t format = this[type] || this.relative;\n\t if (isFunction(format)) {\n\t return format.call(this, num, u, ms, type);\n\t }\n\t mult = !this.plural || num === 1 ? 0 : 1;\n\t unit = this.units[mult * 8 + u] || this.units[u];\n\t sign = this[ms > 0 ? 'fromNow' : 'ago'];\n\t return format.replace(/\\{(.*?)\\}/g, function(full, match) {\n\t switch(match) {\n\t case 'num': return num;\n\t case 'unit': return unit;\n\t case 'sign': return sign;\n\t }\n\t });\n\t },\n\t\n\t cacheFormat: function(dif, i) {\n\t this.compiledFormats.splice(i, 1);\n\t this.compiledFormats.unshift(dif);\n\t },\n\t\n\t addFormat: function(src, to) {\n\t var loc = this;\n\t\n\t function getTokenSrc(str) {\n\t var suffix, src, val,\n\t opt = str.match(/\\?$/),\n\t nc = str.match(/^(\\d+)\\??$/),\n\t slice = str.match(/(\\d)(?:-(\\d))?/),\n\t key = str.replace(/[^a-z]+$/i, '');\n\t\n\t // Allowing alias tokens such as {time}\n\t if (val = getOwn(loc.parsingAliases, key)) {\n\t src = replaceParsingTokens(val);\n\t if (opt) {\n\t src = getRegNonCapturing(src, true);\n\t }\n\t return src;\n\t }\n\t\n\t if (nc) {\n\t src = loc.tokens[nc[1]];\n\t } else if (val = getOwn(ParsingTokens, key)) {\n\t src = val.src;\n\t } else {\n\t val = getOwn(loc.parsingTokens, key) || getOwn(loc, key);\n\t\n\t // Both the \"months\" array and the \"month\" parsing token can be accessed\n\t // by either {month} or {months}, falling back as necessary, however\n\t // regardless of whether or not a fallback occurs, the final field to\n\t // be passed to addRawFormat must be normalized as singular.\n\t key = key.replace(/s$/, '');\n\t\n\t if (!val) {\n\t val = getOwn(loc.parsingTokens, key) || getOwn(loc, key + 's');\n\t }\n\t\n\t if (isString(val)) {\n\t src = val;\n\t suffix = loc[key + 'Suffix'];\n\t } else {\n\t if (slice) {\n\t val = filter(val, function(m, i) {\n\t var mod = i % (loc.units ? 8 : val.length);\n\t return mod >= slice[1] && mod <= (slice[2] || slice[1]);\n\t });\n\t }\n\t src = arrayToRegAlternates(val);\n\t }\n\t }\n\t if (!src) {\n\t return '';\n\t }\n\t if (nc) {\n\t // Non-capturing tokens like {0}\n\t src = getRegNonCapturing(src);\n\t } else {\n\t // Capturing group and add to parsed tokens\n\t to.push(key);\n\t src = '(' + src + ')';\n\t }\n\t if (suffix) {\n\t // Date/time suffixes such as those in CJK\n\t src = getParsingTokenWithSuffix(key, src, suffix);\n\t }\n\t if (opt) {\n\t src += '?';\n\t }\n\t return src;\n\t }\n\t\n\t function replaceParsingTokens(str) {\n\t\n\t // Make spaces optional\n\t str = str.replace(/ /g, ' ?');\n\t\n\t return str.replace(/\\{([^,]+?)\\}/g, function(match, token) {\n\t var tokens = token.split('|'), src;\n\t if (tokens.length > 1) {\n\t src = getRegNonCapturing(map(tokens, getTokenSrc).join('|'));\n\t } else {\n\t src = getTokenSrc(token);\n\t }\n\t return src;\n\t });\n\t }\n\t\n\t if (!to) {\n\t to = [];\n\t src = replaceParsingTokens(src);\n\t }\n\t\n\t loc.addRawFormat(src, to);\n\t },\n\t\n\t addRawFormat: function(format, to) {\n\t this.compiledFormats.unshift({\n\t reg: RegExp('^ *' + format + ' *$', 'i'),\n\t to: to\n\t });\n\t },\n\t\n\t init: function(def) {\n\t var loc = this;\n\t\n\t // -- Initialization helpers\n\t\n\t function initFormats() {\n\t loc.compiledFormats = [];\n\t loc.parsingAliases = {};\n\t loc.parsingTokens = {};\n\t }\n\t\n\t function initDefinition() {\n\t simpleMerge(loc, def);\n\t }\n\t\n\t function initArrayFields() {\n\t forEach(LOCALE_ARRAY_FIELDS, function(name) {\n\t var val = loc[name];\n\t if (isString(val)) {\n\t loc[name] = commaSplit(val);\n\t } else if (!val) {\n\t loc[name] = [];\n\t }\n\t });\n\t }\n\t\n\t // -- Value array build helpers\n\t\n\t function buildValueArray(name, mod, map, fn) {\n\t var field = name, all = [], setMap;\n\t if (!loc[field]) {\n\t field += 's';\n\t }\n\t if (!map) {\n\t map = {};\n\t setMap = true;\n\t }\n\t forAllAlternates(field, function(alt, j, i) {\n\t var idx = j * mod + i, val;\n\t val = fn ? fn(i) : i;\n\t map[alt] = val;\n\t map[alt.toLowerCase()] = val;\n\t all[idx] = alt;\n\t });\n\t loc[field] = all;\n\t if (setMap) {\n\t loc[name + 'Map'] = map;\n\t }\n\t }\n\t\n\t function forAllAlternates(field, fn) {\n\t forEach(loc[field], function(str, i) {\n\t forEachAlternate(str, function(alt, j) {\n\t fn(alt, j, i);\n\t });\n\t });\n\t }\n\t\n\t function forEachAlternate(str, fn) {\n\t var arr = map(str.split('+'), function(split) {\n\t return split.replace(/(.+):(.+)$/, function(full, base, suffixes) {\n\t return map(suffixes.split('|'), function(suffix) {\n\t return base + suffix;\n\t }).join('|');\n\t });\n\t }).join('|');\n\t forEach(arr.split('|'), fn);\n\t }\n\t\n\t function buildNumerals() {\n\t var map = {};\n\t buildValueArray('numeral', 10, map);\n\t buildValueArray('article', 1, map, function() {\n\t return 1;\n\t });\n\t buildValueArray('placeholder', 4, map, function(n) {\n\t return pow(10, n + 1);\n\t });\n\t loc.numeralMap = map;\n\t }\n\t\n\t function buildTimeFormats() {\n\t loc.parsingAliases['time'] = getTimeFormat();\n\t loc.parsingAliases['tzOffset'] = getTZOffsetFormat();\n\t }\n\t\n\t function getTimeFormat() {\n\t var src;\n\t if (loc.ampmFront) {\n\t // \"ampmFront\" exists mostly for CJK locales, which also presume that\n\t // time suffixes exist, allowing this to be a simpler regex.\n\t src = '{ampm?} {hour} (?:{minute} (?::?{second})?)?';\n\t } else if(loc.ampm.length) {\n\t src = '{hour}(?:[.:]{minute}(?:[.:]{second})? {ampm?}| {ampm})';\n\t } else {\n\t src = '{hour}(?:[.:]{minute}(?:[.:]{second})?)';\n\t }\n\t return src;\n\t }\n\t\n\t function getTZOffsetFormat() {\n\t return '(?:{Z}|{GMT?}(?:{tzSign}{tzHour}(?::?{tzMinute}(?: \\\\([\\\\w\\\\s]+\\\\))?)?)?)?';\n\t }\n\t\n\t function buildParsingTokens() {\n\t forEachProperty(LocalizedParsingTokens, function(token, name) {\n\t var src, arr;\n\t src = token.base ? ParsingTokens[token.base].src : token.src;\n\t if (token.requiresNumerals || loc.numeralUnits) {\n\t src += getNumeralSrc();\n\t }\n\t arr = loc[name + 's'];\n\t if (arr && arr.length) {\n\t src += '|' + arrayToRegAlternates(arr);\n\t }\n\t loc.parsingTokens[name] = src;\n\t });\n\t }\n\t\n\t function getNumeralSrc() {\n\t var all, src = '';\n\t all = loc.numerals.concat(loc.placeholders).concat(loc.articles);\n\t if (loc.allowsFullWidth) {\n\t all = all.concat(fullWidthNumbers.split(''));\n\t }\n\t if (all.length) {\n\t src = '|(?:' + arrayToRegAlternates(all) + ')+';\n\t }\n\t return src;\n\t }\n\t\n\t function buildTimeSuffixes() {\n\t iterateOverDateUnits(function(unit, i) {\n\t var token = loc.timeSuffixes[i];\n\t if (token) {\n\t loc[(unit.alias || unit.name) + 'Suffix'] = token;\n\t }\n\t });\n\t }\n\t\n\t function buildModifiers() {\n\t forEach(loc.modifiers, function(modifier) {\n\t var name = modifier.name, mapKey = name + 'Map', map;\n\t map = loc[mapKey] || {};\n\t forEachAlternate(modifier.src, function(alt, j) {\n\t var token = getOwn(loc.parsingTokens, name), val = modifier.value;\n\t map[alt] = val;\n\t loc.parsingTokens[name] = token ? token + '|' + alt : alt;\n\t if (modifier.name === 'sign' && j === 0) {\n\t // Hooking in here to set the first \"fromNow\" or \"ago\" modifier\n\t // directly on the locale, so that it can be reused in the\n\t // relative format.\n\t loc[val === 1 ? 'fromNow' : 'ago'] = alt;\n\t }\n\t });\n\t loc[mapKey] = map;\n\t });\n\t }\n\t\n\t // -- Format adding helpers\n\t\n\t function addCoreFormats() {\n\t forEach(CoreParsingFormats, function(df) {\n\t var src = df.src;\n\t if (df.mdy && loc.mdy) {\n\t // Use the mm/dd/yyyy variant if it\n\t // exists and the locale requires it\n\t src = df.mdy;\n\t }\n\t if (df.time) {\n\t // Core formats that allow time require the time\n\t // reg on both sides, so add both versions here.\n\t loc.addFormat(getFormatWithTime(src, true));\n\t loc.addFormat(getFormatWithTime(src));\n\t } else {\n\t loc.addFormat(src);\n\t }\n\t });\n\t loc.addFormat('{time}');\n\t }\n\t\n\t function addLocaleFormats() {\n\t addFormatSet('parse');\n\t addFormatSet('timeParse', true);\n\t addFormatSet('timeFrontParse', true, true);\n\t }\n\t\n\t function addFormatSet(field, allowTime, timeFront) {\n\t forEach(loc[field], function(format) {\n\t if (allowTime) {\n\t format = getFormatWithTime(format, timeFront);\n\t }\n\t loc.addFormat(format);\n\t });\n\t }\n\t\n\t function getFormatWithTime(baseFormat, timeBefore) {\n\t if (timeBefore) {\n\t return getTimeBefore() + baseFormat;\n\t }\n\t return baseFormat + getTimeAfter();\n\t }\n\t\n\t function getTimeBefore() {\n\t return getRegNonCapturing('{time}[,\\\\s\\\\u3000]', true);\n\t }\n\t\n\t function getTimeAfter() {\n\t var markers = ',?[\\\\s\\\\u3000]', localized;\n\t localized = arrayToRegAlternates(loc.timeMarkers);\n\t if (localized) {\n\t markers += '| (?:' + localized + ') ';\n\t }\n\t markers = getRegNonCapturing(markers, loc.timeMarkerOptional);\n\t return getRegNonCapturing(markers + '{time}', true);\n\t }\n\t\n\t initFormats();\n\t initDefinition();\n\t initArrayFields();\n\t\n\t buildValueArray('month', 12);\n\t buildValueArray('weekday', 7);\n\t buildValueArray('unit', 8);\n\t buildValueArray('ampm', 2);\n\t\n\t buildNumerals();\n\t buildTimeFormats();\n\t buildParsingTokens();\n\t buildTimeSuffixes();\n\t buildModifiers();\n\t\n\t // The order of these formats is important. Order is reversed so formats\n\t // that are initialized later will take precedence. Generally, this means\n\t // that more specific formats should come later.\n\t addCoreFormats();\n\t addLocaleFormats();\n\t\n\t }\n\t\n\t };\n\t\n\t return new Locale(def);\n\t}\n\t\n\tmodule.exports = getNewLocale;\n\n/***/ },\n/* 46 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar LOCALE_ARRAY_FIELDS = [\n\t 'months', 'weekdays', 'units', 'numerals', 'placeholders',\n\t 'articles', 'tokens', 'timeMarkers', 'ampm', 'timeSuffixes',\n\t 'parse', 'timeParse', 'timeFrontParse', 'modifiers'\n\t];\n\t\n\tmodule.exports = LOCALE_ARRAY_FIELDS;\n\n/***/ },\n/* 47 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = {\n\t ISO_FIRST_DAY_OF_WEEK: 1,\n\t ISO_FIRST_DAY_OF_WEEK_YEAR: 4\n\t};\n\n/***/ },\n/* 48 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar ParsingTokens = {\n\t 'yyyy': {\n\t param: 'year',\n\t src: '\\\\d{4}'\n\t },\n\t 'MM': {\n\t param: 'month',\n\t src: '[01]?\\\\d'\n\t },\n\t 'dd': {\n\t param: 'date',\n\t src: '[0123]?\\\\d'\n\t },\n\t 'hh': {\n\t param: 'hour',\n\t src: '[0-2]?\\\\d'\n\t },\n\t 'mm': {\n\t param: 'minute',\n\t src: '[0-5]\\\\d'\n\t },\n\t 'ss': {\n\t param: 'second',\n\t src: '[0-5]\\\\d(?:[,.]\\\\d+)?'\n\t },\n\t 'yy': {\n\t param: 'year',\n\t src: '\\\\d{2}'\n\t },\n\t 'y': {\n\t param: 'year',\n\t src: '\\\\d'\n\t },\n\t 'yearSign': {\n\t src: '[+-]',\n\t sign: true\n\t },\n\t 'tzHour': {\n\t src: '[0-1]\\\\d'\n\t },\n\t 'tzMinute': {\n\t src: '[0-5]\\\\d'\n\t },\n\t 'tzSign': {\n\t src: '[+−-]',\n\t sign: true\n\t },\n\t 'ihh': {\n\t param: 'hour',\n\t src: '[0-2]?\\\\d(?:[,.]\\\\d+)?'\n\t },\n\t 'imm': {\n\t param: 'minute',\n\t src: '[0-5]\\\\d(?:[,.]\\\\d+)?'\n\t },\n\t 'GMT': {\n\t param: 'utc',\n\t src: 'GMT',\n\t val: 1\n\t },\n\t 'Z': {\n\t param: 'utc',\n\t src: 'Z',\n\t val: 1\n\t },\n\t 'timestamp': {\n\t src: '\\\\d+'\n\t }\n\t};\n\t\n\tmodule.exports = ParsingTokens;\n\n/***/ },\n/* 49 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar CoreParsingFormats = [\n\t {\n\t // 12-1978\n\t // 08-1978 (MDY)\n\t src: '{MM}[-.\\\\/]{yyyy}'\n\t },\n\t {\n\t // 12/08/1978\n\t // 08/12/1978 (MDY)\n\t time: true,\n\t src: '{dd}[-.\\\\/]{MM}(?:[-.\\\\/]{yyyy|yy|y})?',\n\t mdy: '{MM}[-.\\\\/]{dd}(?:[-.\\\\/]{yyyy|yy|y})?'\n\t },\n\t {\n\t // 1975-08-25\n\t time: true,\n\t src: '{yyyy}[-.\\\\/]{MM}(?:[-.\\\\/]{dd})?'\n\t },\n\t {\n\t // .NET JSON\n\t src: '\\\\\\\\/Date\\\\({timestamp}(?:[+-]\\\\d{4,4})?\\\\)\\\\\\\\/'\n\t },\n\t {\n\t // ISO-8601\n\t src: '{yearSign?}{yyyy}(?:-?{MM}(?:-?{dd}(?:T{ihh}(?::?{imm}(?::?{ss})?)?)?)?)?{tzOffset?}'\n\t }\n\t];\n\t\n\tmodule.exports = CoreParsingFormats;\n\n/***/ },\n/* 50 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar LocalizedParsingTokens = {\n\t 'year': {\n\t base: 'yyyy',\n\t requiresSuffix: true\n\t },\n\t 'month': {\n\t base: 'MM',\n\t requiresSuffix: true\n\t },\n\t 'date': {\n\t base: 'dd',\n\t requiresSuffix: true\n\t },\n\t 'hour': {\n\t base: 'hh',\n\t requiresSuffixOr: ':'\n\t },\n\t 'minute': {\n\t base: 'mm'\n\t },\n\t 'second': {\n\t base: 'ss'\n\t },\n\t 'num': {\n\t src: '\\\\d+',\n\t requiresNumerals: true\n\t }\n\t};\n\t\n\tmodule.exports = LocalizedParsingTokens;\n\n/***/ },\n/* 51 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction map(arr, fn) {\n\t // perf: Not using fixed array len here as it may be sparse.\n\t var result = [];\n\t for (var i = 0, len = arr.length; i < len; i++) {\n\t if (i in arr) {\n\t result.push(fn(arr[i], i));\n\t }\n\t }\n\t return result;\n\t}\n\t\n\tmodule.exports = map;\n\n/***/ },\n/* 52 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction filter(arr, fn) {\n\t var result = [];\n\t for (var i = 0, len = arr.length; i < len; i++) {\n\t var el = arr[i];\n\t if (i in arr && fn(el, i)) {\n\t result.push(el);\n\t }\n\t }\n\t return result;\n\t}\n\t\n\tmodule.exports = filter;\n\n/***/ },\n/* 53 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar iterateOverSparseArray = __webpack_require__(54);\n\t\n\tfunction forEach(arr, fn) {\n\t for (var i = 0, len = arr.length; i < len; i++) {\n\t if (!(i in arr)) {\n\t return iterateOverSparseArray(arr, fn, i);\n\t }\n\t fn(arr[i], i);\n\t }\n\t}\n\t\n\tmodule.exports = forEach;\n\n/***/ },\n/* 54 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getSparseArrayIndexes = __webpack_require__(55);\n\t\n\tfunction iterateOverSparseArray(arr, fn, fromIndex, loop) {\n\t var indexes = getSparseArrayIndexes(arr, fromIndex, loop), index;\n\t for (var i = 0, len = indexes.length; i < len; i++) {\n\t index = indexes[i];\n\t fn.call(arr, arr[index], index, arr);\n\t }\n\t return arr;\n\t}\n\t\n\tmodule.exports = iterateOverSparseArray;\n\n/***/ },\n/* 55 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar isArrayIndex = __webpack_require__(56);\n\t\n\tfunction getSparseArrayIndexes(arr, fromIndex, loop, fromRight) {\n\t var indexes = [], i;\n\t for (i in arr) {\n\t if (isArrayIndex(i) && (loop || (fromRight ? i <= fromIndex : i >= fromIndex))) {\n\t indexes.push(+i);\n\t }\n\t }\n\t indexes.sort(function(a, b) {\n\t var aLoop = a > fromIndex;\n\t var bLoop = b > fromIndex;\n\t if (aLoop !== bLoop) {\n\t return aLoop ? -1 : 1;\n\t }\n\t return a - b;\n\t });\n\t return indexes;\n\t}\n\t\n\tmodule.exports = getSparseArrayIndexes;\n\n/***/ },\n/* 56 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction isArrayIndex(n) {\n\t return n >>> 0 == n && n != 0xFFFFFFFF;\n\t}\n\t\n\tmodule.exports = isArrayIndex;\n\n/***/ },\n/* 57 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction isDefined(o) {\n\t return o !== undefined;\n\t}\n\t\n\tmodule.exports = isDefined;\n\n/***/ },\n/* 58 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar CommonChars = __webpack_require__(59);\n\t\n\tvar HALF_WIDTH_COMMA = CommonChars.HALF_WIDTH_COMMA;\n\t\n\tfunction commaSplit(str) {\n\t return str.split(HALF_WIDTH_COMMA);\n\t}\n\t\n\tmodule.exports = commaSplit;\n\n/***/ },\n/* 59 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = {\n\t HALF_WIDTH_ZERO: 0x30,\n\t FULL_WIDTH_ZERO: 0xff10,\n\t HALF_WIDTH_PERIOD: '.',\n\t FULL_WIDTH_PERIOD: '.',\n\t HALF_WIDTH_COMMA: ',',\n\t OPEN_BRACE: '{',\n\t CLOSE_BRACE: '}'\n\t};\n\n/***/ },\n/* 60 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar NATIVE_TYPES = __webpack_require__(61),\n\t forEach = __webpack_require__(53),\n\t isClass = __webpack_require__(62),\n\t spaceSplit = __webpack_require__(63),\n\t isPlainObject = __webpack_require__(64),\n\t coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar classToString = coreUtilityAliases.classToString;\n\t\n\tvar isSerializable,\n\t isBoolean, isNumber, isString,\n\t isDate, isRegExp, isFunction,\n\t isArray, isSet, isMap, isError;\n\t\n\tfunction buildClassChecks() {\n\t\n\t var knownTypes = {};\n\t\n\t function addCoreTypes() {\n\t\n\t var names = spaceSplit(NATIVE_TYPES);\n\t\n\t isBoolean = buildPrimitiveClassCheck(names[0]);\n\t isNumber = buildPrimitiveClassCheck(names[1]);\n\t isString = buildPrimitiveClassCheck(names[2]);\n\t\n\t isDate = buildClassCheck(names[3]);\n\t isRegExp = buildClassCheck(names[4]);\n\t\n\t // Wanted to enhance performance here by using simply \"typeof\"\n\t // but Firefox has two major issues that make this impossible,\n\t // one fixed, the other not, so perform a full class check here.\n\t //\n\t // 1. Regexes can be typeof \"function\" in FF < 3\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=61911 (fixed)\n\t //\n\t // 2. HTMLEmbedElement and HTMLObjectElement are be typeof \"function\"\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=268945 (won't fix)\n\t isFunction = buildClassCheck(names[5]);\n\t\n\t\n\t isArray = Array.isArray || buildClassCheck(names[6]);\n\t isError = buildClassCheck(names[7]);\n\t\n\t isSet = buildClassCheck(names[8], typeof Set !== 'undefined' && Set);\n\t isMap = buildClassCheck(names[9], typeof Map !== 'undefined' && Map);\n\t\n\t // Add core types as known so that they can be checked by value below,\n\t // notably excluding Functions and adding Arguments and Error.\n\t addKnownType('Arguments');\n\t addKnownType(names[0]);\n\t addKnownType(names[1]);\n\t addKnownType(names[2]);\n\t addKnownType(names[3]);\n\t addKnownType(names[4]);\n\t addKnownType(names[6]);\n\t\n\t }\n\t\n\t function addArrayTypes() {\n\t var types = 'Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64';\n\t forEach(spaceSplit(types), function(str) {\n\t addKnownType(str + 'Array');\n\t });\n\t }\n\t\n\t function addKnownType(className) {\n\t var str = '[object '+ className +']';\n\t knownTypes[str] = true;\n\t }\n\t\n\t function isKnownType(className) {\n\t return knownTypes[className];\n\t }\n\t\n\t function buildClassCheck(className, globalObject) {\n\t if (globalObject && isClass(new globalObject, 'Object')) {\n\t return getConstructorClassCheck(globalObject);\n\t } else {\n\t return getToStringClassCheck(className);\n\t }\n\t }\n\t\n\t function getConstructorClassCheck(obj) {\n\t var ctorStr = String(obj);\n\t return function(obj) {\n\t return String(obj.constructor) === ctorStr;\n\t };\n\t }\n\t\n\t function getToStringClassCheck(className) {\n\t return function(obj, str) {\n\t // perf: Returning up front on instanceof appears to be slower.\n\t return isClass(obj, className, str);\n\t };\n\t }\n\t\n\t function buildPrimitiveClassCheck(className) {\n\t var type = className.toLowerCase();\n\t return function(obj) {\n\t var t = typeof obj;\n\t return t === type || t === 'object' && isClass(obj, className);\n\t };\n\t }\n\t\n\t addCoreTypes();\n\t addArrayTypes();\n\t\n\t isSerializable = function(obj, className) {\n\t // Only known objects can be serialized. This notably excludes functions,\n\t // host objects, Symbols (which are matched by reference), and instances\n\t // of classes. The latter can arguably be matched by value, but\n\t // distinguishing between these and host objects -- which should never be\n\t // compared by value -- is very tricky so not dealing with it here.\n\t className = className || classToString(obj);\n\t return isKnownType(className) || isPlainObject(obj, className);\n\t };\n\t\n\t}\n\t\n\tbuildClassChecks();\n\t\n\tmodule.exports = {\n\t isSerializable: isSerializable,\n\t isBoolean: isBoolean,\n\t isNumber: isNumber,\n\t isString: isString,\n\t isDate: isDate,\n\t isRegExp: isRegExp,\n\t isFunction: isFunction,\n\t isArray: isArray,\n\t isSet: isSet,\n\t isMap: isMap,\n\t isError: isError\n\t};\n\n/***/ },\n/* 61 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = 'Boolean Number String Date RegExp Function Array Error Set Map';\n\n/***/ },\n/* 62 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar classToString = coreUtilityAliases.classToString;\n\t\n\tfunction isClass(obj, className, str) {\n\t if (!str) {\n\t str = classToString(obj);\n\t }\n\t return str === '[object '+ className +']';\n\t}\n\t\n\tmodule.exports = isClass;\n\n/***/ },\n/* 63 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction spaceSplit(str) {\n\t return str.split(' ');\n\t}\n\t\n\tmodule.exports = spaceSplit;\n\n/***/ },\n/* 64 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar isClass = __webpack_require__(62),\n\t isObjectType = __webpack_require__(65),\n\t hasOwnEnumeratedProperties = __webpack_require__(66),\n\t hasValidPlainObjectPrototype = __webpack_require__(67);\n\t\n\tfunction isPlainObject(obj, className) {\n\t return isObjectType(obj) &&\n\t isClass(obj, 'Object', className) &&\n\t hasValidPlainObjectPrototype(obj) &&\n\t hasOwnEnumeratedProperties(obj);\n\t}\n\t\n\tmodule.exports = isPlainObject;\n\n/***/ },\n/* 65 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction isObjectType(obj, type) {\n\t return !!obj && (type || typeof obj) === 'object';\n\t}\n\t\n\tmodule.exports = isObjectType;\n\n/***/ },\n/* 66 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar hasOwn = coreUtilityAliases.hasOwn;\n\t\n\tfunction hasOwnEnumeratedProperties(obj) {\n\t // Plain objects are generally defined as having enumerated properties\n\t // all their own, however in early IE environments without defineProperty,\n\t // there may also be enumerated methods in the prototype chain, so check\n\t // for both of these cases.\n\t var objectProto = Object.prototype;\n\t for (var key in obj) {\n\t var val = obj[key];\n\t if (!hasOwn(obj, key) && val !== objectProto[key]) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t}\n\t\n\tmodule.exports = hasOwnEnumeratedProperties;\n\n/***/ },\n/* 67 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar hasOwn = coreUtilityAliases.hasOwn;\n\t\n\tfunction hasValidPlainObjectPrototype(obj) {\n\t var hasToString = 'toString' in obj;\n\t var hasConstructor = 'constructor' in obj;\n\t // An object created with Object.create(null) has no methods in the\n\t // prototype chain, so check if any are missing. The additional hasToString\n\t // check is for false positives on some host objects in old IE which have\n\t // toString but no constructor. If the object has an inherited constructor,\n\t // then check if it is Object (the \"isPrototypeOf\" tapdance here is a more\n\t // robust way of ensuring this if the global has been hijacked). Note that\n\t // accessing the constructor directly (without \"in\" or \"hasOwnProperty\")\n\t // will throw a permissions error in IE8 on cross-domain windows.\n\t return (!hasConstructor && !hasToString) ||\n\t (hasConstructor && !hasOwn(obj, 'constructor') &&\n\t hasOwn(obj.constructor.prototype, 'isPrototypeOf'));\n\t}\n\t\n\tmodule.exports = hasValidPlainObjectPrototype;\n\n/***/ },\n/* 68 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction isUndefined(o) {\n\t return o === undefined;\n\t}\n\t\n\tmodule.exports = isUndefined;\n\n/***/ },\n/* 69 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = {\n\t abs: Math.abs,\n\t pow: Math.pow,\n\t min: Math.min,\n\t max: Math.max,\n\t ceil: Math.ceil,\n\t floor: Math.floor,\n\t round: Math.round\n\t};\n\n/***/ },\n/* 70 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction getOrdinalSuffix(num) {\n\t if (num >= 11 && num <= 13) {\n\t return 'th';\n\t } else {\n\t switch(num % 10) {\n\t case 1: return 'st';\n\t case 2: return 'nd';\n\t case 3: return 'rd';\n\t default: return 'th';\n\t }\n\t }\n\t}\n\t\n\tmodule.exports = getOrdinalSuffix;\n\n/***/ },\n/* 71 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction getRegNonCapturing(src, opt) {\n\t if (src.length > 1) {\n\t src = '(?:' + src + ')';\n\t }\n\t if (opt) {\n\t src += '?';\n\t }\n\t return src;\n\t}\n\t\n\tmodule.exports = getRegNonCapturing;\n\n/***/ },\n/* 72 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction getArrayWithOffset(arr, n, alternate, offset) {\n\t var val;\n\t if (alternate > 1) {\n\t val = arr[n + (alternate - 1) * offset];\n\t }\n\t return val || arr[n];\n\t}\n\t\n\tmodule.exports = getArrayWithOffset;\n\n/***/ },\n/* 73 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnits = __webpack_require__(74),\n\t DateUnitIndexes = __webpack_require__(82),\n\t isUndefined = __webpack_require__(68);\n\t\n\tvar YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\t\n\tfunction iterateOverDateUnits(fn, startIndex, endIndex) {\n\t endIndex = endIndex || 0;\n\t if (isUndefined(startIndex)) {\n\t startIndex = YEAR_INDEX;\n\t }\n\t for (var index = startIndex; index >= endIndex; index--) {\n\t if (fn(DateUnits[index], index) === false) {\n\t break;\n\t }\n\t }\n\t}\n\t\n\tmodule.exports = iterateOverDateUnits;\n\n/***/ },\n/* 74 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getDaysInMonth = __webpack_require__(75);\n\t\n\tvar DateUnits = [\n\t {\n\t name: 'millisecond',\n\t method: 'Milliseconds',\n\t multiplier: 1,\n\t start: 0,\n\t end: 999\n\t },\n\t {\n\t name: 'second',\n\t method: 'Seconds',\n\t multiplier: 1000,\n\t start: 0,\n\t end: 59\n\t },\n\t {\n\t name: 'minute',\n\t method: 'Minutes',\n\t multiplier: 60 * 1000,\n\t start: 0,\n\t end: 59\n\t },\n\t {\n\t name: 'hour',\n\t method: 'Hours',\n\t multiplier: 60 * 60 * 1000,\n\t start: 0,\n\t end: 23\n\t },\n\t {\n\t name: 'day',\n\t alias: 'date',\n\t method: 'Date',\n\t ambiguous: true,\n\t multiplier: 24 * 60 * 60 * 1000,\n\t start: 1,\n\t end: function(d) {\n\t return getDaysInMonth(d);\n\t }\n\t },\n\t {\n\t name: 'week',\n\t method: 'ISOWeek',\n\t ambiguous: true,\n\t multiplier: 7 * 24 * 60 * 60 * 1000\n\t },\n\t {\n\t name: 'month',\n\t method: 'Month',\n\t ambiguous: true,\n\t multiplier: 30.4375 * 24 * 60 * 60 * 1000,\n\t start: 0,\n\t end: 11\n\t },\n\t {\n\t name: 'year',\n\t method: 'FullYear',\n\t ambiguous: true,\n\t multiplier: 365.25 * 24 * 60 * 60 * 1000,\n\t start: 0\n\t }\n\t];\n\t\n\tmodule.exports = DateUnits;\n\n/***/ },\n/* 75 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getYear = __webpack_require__(76),\n\t getMonth = __webpack_require__(81),\n\t callDateGet = __webpack_require__(77);\n\t\n\tfunction getDaysInMonth(d) {\n\t return 32 - callDateGet(new Date(getYear(d), getMonth(d), 32), 'Date');\n\t}\n\t\n\tmodule.exports = getDaysInMonth;\n\n/***/ },\n/* 76 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateGet = __webpack_require__(77);\n\t\n\tfunction getYear(d) {\n\t return callDateGet(d, 'FullYear');\n\t}\n\t\n\tmodule.exports = getYear;\n\n/***/ },\n/* 77 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _utc = __webpack_require__(78);\n\t\n\tfunction callDateGet(d, method) {\n\t return d['get' + (_utc(d) ? 'UTC' : '') + method]();\n\t}\n\t\n\tmodule.exports = callDateGet;\n\n/***/ },\n/* 78 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar privatePropertyAccessor = __webpack_require__(79);\n\t\n\tmodule.exports = privatePropertyAccessor('utc');\n\n/***/ },\n/* 79 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar PRIVATE_PROP_PREFIX = __webpack_require__(80),\n\t coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar setProperty = coreUtilityAliases.setProperty;\n\t\n\tfunction privatePropertyAccessor(key) {\n\t var privateKey = PRIVATE_PROP_PREFIX + key;\n\t return function(obj, val) {\n\t if (arguments.length > 1) {\n\t setProperty(obj, privateKey, val);\n\t return obj;\n\t }\n\t return obj[privateKey];\n\t };\n\t}\n\t\n\tmodule.exports = privatePropertyAccessor;\n\n/***/ },\n/* 80 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = '_sugar_';\n\n/***/ },\n/* 81 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateGet = __webpack_require__(77);\n\t\n\tfunction getMonth(d) {\n\t return callDateGet(d, 'Month');\n\t}\n\t\n\tmodule.exports = getMonth;\n\n/***/ },\n/* 82 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = {\n\t HOURS_INDEX: 3,\n\t DAY_INDEX: 4,\n\t WEEK_INDEX: 5,\n\t MONTH_INDEX: 6,\n\t YEAR_INDEX: 7\n\t};\n\n/***/ },\n/* 83 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar map = __webpack_require__(51),\n\t escapeRegExp = __webpack_require__(84);\n\t\n\tfunction arrayToRegAlternates(arr) {\n\t var joined = arr.join('');\n\t if (!arr || !arr.length) {\n\t return '';\n\t }\n\t if (joined.length === arr.length) {\n\t return '[' + joined + ']';\n\t }\n\t // map handles sparse arrays so no need to compact the array here.\n\t return map(arr, escapeRegExp).join('|');\n\t}\n\t\n\tmodule.exports = arrayToRegAlternates;\n\n/***/ },\n/* 84 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60);\n\t\n\tvar isString = classChecks.isString;\n\t\n\tfunction escapeRegExp(str) {\n\t if (!isString(str)) str = String(str);\n\t return str.replace(/([\\\\\\/\\'*+?|()\\[\\]{}.^$-])/g,'\\\\$1');\n\t}\n\t\n\tmodule.exports = escapeRegExp;\n\n/***/ },\n/* 85 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar CommonChars = __webpack_require__(59),\n\t chr = __webpack_require__(86),\n\t allCharsReg = __webpack_require__(87);\n\t\n\tvar HALF_WIDTH_ZERO = CommonChars.HALF_WIDTH_ZERO,\n\t FULL_WIDTH_ZERO = CommonChars.FULL_WIDTH_ZERO,\n\t HALF_WIDTH_PERIOD = CommonChars.HALF_WIDTH_PERIOD,\n\t FULL_WIDTH_PERIOD = CommonChars.FULL_WIDTH_PERIOD,\n\t HALF_WIDTH_COMMA = CommonChars.HALF_WIDTH_COMMA;\n\t\n\tvar fullWidthNumberReg, fullWidthNumberMap, fullWidthNumbers;\n\t\n\tfunction buildFullWidthNumber() {\n\t var fwp = FULL_WIDTH_PERIOD, hwp = HALF_WIDTH_PERIOD, hwc = HALF_WIDTH_COMMA, fwn = '';\n\t fullWidthNumberMap = {};\n\t for (var i = 0, digit; i <= 9; i++) {\n\t digit = chr(i + FULL_WIDTH_ZERO);\n\t fwn += digit;\n\t fullWidthNumberMap[digit] = chr(i + HALF_WIDTH_ZERO);\n\t }\n\t fullWidthNumberMap[hwc] = '';\n\t fullWidthNumberMap[fwp] = hwp;\n\t // Mapping this to itself to capture it easily\n\t // in stringToNumber to detect decimals later.\n\t fullWidthNumberMap[hwp] = hwp;\n\t fullWidthNumberReg = allCharsReg(fwn + fwp + hwc + hwp);\n\t fullWidthNumbers = fwn;\n\t}\n\t\n\tbuildFullWidthNumber();\n\t\n\tmodule.exports = {\n\t fullWidthNumberReg: fullWidthNumberReg,\n\t fullWidthNumberMap: fullWidthNumberMap,\n\t fullWidthNumbers: fullWidthNumbers\n\t};\n\n/***/ },\n/* 86 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = String.fromCharCode;\n\n/***/ },\n/* 87 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction allCharsReg(src) {\n\t return RegExp('[' + src + ']', 'g');\n\t}\n\t\n\tmodule.exports = allCharsReg;\n\n/***/ },\n/* 88 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar trunc = __webpack_require__(89),\n\t withPrecision = __webpack_require__(90),\n\t getAdjustedUnit = __webpack_require__(91);\n\t\n\tfunction getAdjustedUnitForNumber(ms) {\n\t return getAdjustedUnit(ms, function(unit) {\n\t return trunc(withPrecision(ms / unit.multiplier, 1));\n\t });\n\t}\n\t\n\tmodule.exports = getAdjustedUnitForNumber;\n\n/***/ },\n/* 89 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar mathAliases = __webpack_require__(69);\n\t\n\tvar ceil = mathAliases.ceil,\n\t floor = mathAliases.floor;\n\t\n\tvar trunc = Math.trunc || function(n) {\n\t if (n === 0 || !isFinite(n)) return n;\n\t return n < 0 ? ceil(n) : floor(n);\n\t};\n\t\n\tmodule.exports = trunc;\n\n/***/ },\n/* 90 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar mathAliases = __webpack_require__(69);\n\t\n\tvar abs = mathAliases.abs,\n\t pow = mathAliases.pow,\n\t round = mathAliases.round;\n\t\n\tfunction withPrecision(val, precision, fn) {\n\t var multiplier = pow(10, abs(precision || 0));\n\t fn = fn || round;\n\t if (precision < 0) multiplier = 1 / multiplier;\n\t return fn(val * multiplier) / multiplier;\n\t}\n\t\n\tmodule.exports = withPrecision;\n\n/***/ },\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar mathAliases = __webpack_require__(69),\n\t iterateOverDateUnits = __webpack_require__(73);\n\t\n\tvar abs = mathAliases.abs;\n\t\n\tfunction getAdjustedUnit(ms, fn) {\n\t var unitIndex = 0, value = 0;\n\t iterateOverDateUnits(function(unit, i) {\n\t value = abs(fn(unit));\n\t if (value >= 1) {\n\t unitIndex = i;\n\t return false;\n\t }\n\t });\n\t return [value, unitIndex, ms];\n\t}\n\t\n\tmodule.exports = getAdjustedUnit;\n\n/***/ },\n/* 92 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocalizedParsingTokens = __webpack_require__(50),\n\t getRegNonCapturing = __webpack_require__(71);\n\t\n\tfunction getParsingTokenWithSuffix(field, src, suffix) {\n\t var token = LocalizedParsingTokens[field];\n\t if (token.requiresSuffix) {\n\t src = getRegNonCapturing(src + getRegNonCapturing(suffix));\n\t } else if (token.requiresSuffixOr) {\n\t src += getRegNonCapturing(token.requiresSuffixOr + '|' + suffix);\n\t } else {\n\t src += getRegNonCapturing(suffix, true);\n\t }\n\t return src;\n\t}\n\t\n\tmodule.exports = getParsingTokenWithSuffix;\n\n/***/ },\n/* 93 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t createDate = __webpack_require__(94);\n\t\n\t__webpack_require__(136);\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'create': function(d, options) {\n\t return createDate(d, options);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.create;\n\n/***/ },\n/* 94 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getExtendedDate = __webpack_require__(95);\n\t\n\tfunction createDate(d, options, forceClone) {\n\t return getExtendedDate(null, d, options, forceClone).date;\n\t}\n\t\n\tmodule.exports = createDate;\n\n/***/ },\n/* 95 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar MINUTES = __webpack_require__(96),\n\t ParsingTokens = __webpack_require__(48),\n\t LocaleHelpers = __webpack_require__(35),\n\t DateUnitIndexes = __webpack_require__(82),\n\t _utc = __webpack_require__(78),\n\t trunc = __webpack_require__(89),\n\t forEach = __webpack_require__(53),\n\t tzOffset = __webpack_require__(97),\n\t resetTime = __webpack_require__(98),\n\t isDefined = __webpack_require__(57),\n\t setWeekday = __webpack_require__(103),\n\t updateDate = __webpack_require__(107),\n\t getNewDate = __webpack_require__(108),\n\t isUndefined = __webpack_require__(68),\n\t classChecks = __webpack_require__(60),\n\t advanceDate = __webpack_require__(128),\n\t simpleClone = __webpack_require__(42),\n\t isObjectType = __webpack_require__(65),\n\t moveToEndOfUnit = __webpack_require__(129),\n\t deleteDateParam = __webpack_require__(131),\n\t coreUtilityAliases = __webpack_require__(41),\n\t getParsingTokenValue = __webpack_require__(132),\n\t moveToBeginningOfUnit = __webpack_require__(133),\n\t iterateOverDateParams = __webpack_require__(124),\n\t getYearFromAbbreviation = __webpack_require__(134),\n\t iterateOverHigherDateParams = __webpack_require__(135);\n\t\n\tvar isNumber = classChecks.isNumber,\n\t isString = classChecks.isString,\n\t isDate = classChecks.isDate,\n\t hasOwn = coreUtilityAliases.hasOwn,\n\t getOwn = coreUtilityAliases.getOwn,\n\t English = LocaleHelpers.English,\n\t localeManager = LocaleHelpers.localeManager,\n\t DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n\t WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n\t MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,\n\t YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\t\n\tfunction getExtendedDate(contextDate, d, opt, forceClone) {\n\t\n\t var date, set, loc, options, afterCallbacks, relative, weekdayDir;\n\t\n\t afterCallbacks = [];\n\t options = getDateOptions(opt);\n\t\n\t function getDateOptions(opt) {\n\t var options = isString(opt) ? { locale: opt } : opt || {};\n\t options.prefer = +!!getOwn(options, 'future') - +!!getOwn(options, 'past');\n\t return options;\n\t }\n\t\n\t function getFormatParams(match, dif) {\n\t var set = getOwn(options, 'params') || {};\n\t forEach(dif.to, function(field, i) {\n\t var str = match[i + 1], token, val;\n\t if (!str) return;\n\t if (field === 'yy' || field === 'y') {\n\t field = 'year';\n\t val = getYearFromAbbreviation(str, date, getOwn(options, 'prefer'));\n\t } else if (token = getOwn(ParsingTokens, field)) {\n\t field = token.param || field;\n\t val = getParsingTokenValue(token, str);\n\t } else {\n\t val = loc.getTokenValue(field, str);\n\t }\n\t set[field] = val;\n\t });\n\t return set;\n\t }\n\t\n\t // Clone date will set the utc flag, but it will\n\t // be overriden later, so set option flags instead.\n\t function cloneDateByFlag(d, clone) {\n\t if (_utc(d) && !isDefined(getOwn(options, 'fromUTC'))) {\n\t options.fromUTC = true;\n\t }\n\t if (_utc(d) && !isDefined(getOwn(options, 'setUTC'))) {\n\t options.setUTC = true;\n\t }\n\t if (clone) {\n\t d = new Date(d.getTime());\n\t }\n\t return d;\n\t }\n\t\n\t function afterDateSet(fn) {\n\t afterCallbacks.push(fn);\n\t }\n\t\n\t function fireCallbacks() {\n\t forEach(afterCallbacks, function(fn) {\n\t fn.call();\n\t });\n\t }\n\t\n\t function parseStringDate(str) {\n\t\n\t str = str.toLowerCase();\n\t\n\t // The act of getting the locale will initialize\n\t // if it is missing and add the required formats.\n\t loc = localeManager.get(getOwn(options, 'locale'));\n\t\n\t for (var i = 0, dif, match; dif = loc.compiledFormats[i]; i++) {\n\t match = str.match(dif.reg);\n\t if (match) {\n\t\n\t // Note that caching the format will modify the compiledFormats array\n\t // which is not a good idea to do inside its for loop, however we\n\t // know at this point that we have a matched format and that we will\n\t // break out below, so simpler to do it here.\n\t loc.cacheFormat(dif, i);\n\t\n\t set = getFormatParams(match, dif);\n\t\n\t if (isDefined(set.timestamp)) {\n\t str = set.timestamp;\n\t set = null;\n\t break;\n\t }\n\t\n\t if (isDefined(set.ampm)) {\n\t handleAmpm(set.ampm);\n\t }\n\t\n\t if (set.utc || isDefined(set.tzHour)) {\n\t handleTimezoneOffset(set.tzHour, set.tzMinute, set.tzSign);\n\t }\n\t\n\t if (isDefined(set.shift) && isUndefined(set.unit)) {\n\t // \"next january\", \"next monday\", etc\n\t handleUnitlessShift();\n\t }\n\t\n\t if (isDefined(set.num) && isUndefined(set.unit)) {\n\t // \"the second of January\", etc\n\t handleUnitlessNum(set.num);\n\t }\n\t\n\t if (set.midday) {\n\t // \"noon\" and \"midnight\"\n\t handleMidday(set.midday);\n\t }\n\t\n\t if (isDefined(set.day)) {\n\t // Relative day localizations such as \"today\" and \"tomorrow\".\n\t handleRelativeDay(set.day);\n\t }\n\t\n\t if (isDefined(set.unit)) {\n\t // \"3 days ago\", etc\n\t handleRelativeUnit(set.unit);\n\t }\n\t\n\t if (set.edge) {\n\t // \"the end of January\", etc\n\t handleEdge(set.edge, set);\n\t }\n\t\n\t if (set.yearSign) {\n\t set.year *= set.yearSign;\n\t }\n\t\n\t break;\n\t }\n\t }\n\t\n\t if (!set) {\n\t // Fall back to native parsing\n\t date = new Date(str);\n\t if (getOwn(options, 'fromUTC')) {\n\t // Falling back to system date here which cannot be parsed as UTC,\n\t // so if we're forcing UTC then simply add the offset.\n\t date.setTime(date.getTime() + (tzOffset(date) * MINUTES));\n\t }\n\t } else if (relative) {\n\t updateDate(date, set, false, 1);\n\t } else {\n\t if (_utc(date)) {\n\t // UTC times can traverse into other days or even months,\n\t // so preemtively reset the time here to prevent this.\n\t resetTime(date);\n\t }\n\t updateDate(date, set, true, 0, getOwn(options, 'prefer'), weekdayDir);\n\t }\n\t fireCallbacks();\n\t return date;\n\t }\n\t\n\t function handleAmpm(ampm) {\n\t if (ampm === 1 && set.hour < 12) {\n\t // If the time is 1pm-11pm advance the time by 12 hours.\n\t set.hour += 12;\n\t } else if (ampm === 0 && set.hour === 12) {\n\t // If it is 12:00am then set the hour to 0.\n\t set.hour = 0;\n\t }\n\t }\n\t\n\t function handleTimezoneOffset(tzHour, tzMinute, tzSign) {\n\t // Adjust for timezone offset\n\t _utc(date, true);\n\t var offset = (tzSign || 1) * ((tzHour || 0) * 60 + (tzMinute || 0));\n\t if (offset) {\n\t set.minute = (set.minute || 0) - offset;\n\t }\n\t }\n\t\n\t function handleUnitlessShift() {\n\t if (isDefined(set.month)) {\n\t // \"next January\"\n\t set.unit = YEAR_INDEX;\n\t } else if (isDefined(set.weekday)) {\n\t // \"next Monday\"\n\t set.unit = WEEK_INDEX;\n\t }\n\t }\n\t\n\t function handleUnitlessNum(num) {\n\t if (isDefined(set.weekday)) {\n\t // \"The second Tuesday of March\"\n\t setOrdinalWeekday(num);\n\t } else if (isDefined(set.month)) {\n\t // \"The second of March\"\n\t set.date = set.num;\n\t }\n\t }\n\t\n\t function handleMidday(hour) {\n\t set.hour = hour % 24;\n\t if (hour > 23) {\n\t // If the date has hours past 24, we need to prevent it from traversing\n\t // into a new day as that would make it being part of a new week in\n\t // ambiguous dates such as \"Monday\".\n\t afterDateSet(function() {\n\t advanceDate(date, 'date', trunc(hour / 24));\n\t });\n\t }\n\t }\n\t\n\t function handleRelativeDay() {\n\t resetTime(date);\n\t if (isUndefined(set.unit)) {\n\t set.unit = DAY_INDEX;\n\t set.num = set.day;\n\t delete set.day;\n\t }\n\t }\n\t\n\t function handleRelativeUnit(unitIndex) {\n\t var num = isDefined(set.num) ? set.num : 1;\n\t\n\t // If a weekday is defined, there are 3 possible formats being applied:\n\t //\n\t // 1. \"the day after monday\": unit is days\n\t // 2. \"next monday\": short for \"next week monday\", unit is weeks\n\t // 3. \"the 2nd monday of next month\": unit is months\n\t //\n\t // In the first case, we need to set the weekday up front, as the day is\n\t // relative to it. The second case also needs to be handled up front for\n\t // formats like \"next monday at midnight\" which will have its weekday reset\n\t // if not set up front. The last case will set up the params necessary to\n\t // shift the weekday and allow separateAbsoluteUnits below to handle setting\n\t // it after the date has been shifted.\n\t if(isDefined(set.weekday)) {\n\t if(unitIndex === MONTH_INDEX) {\n\t setOrdinalWeekday(num);\n\t num = 1;\n\t } else {\n\t updateDate(date, { weekday: set.weekday }, true);\n\t delete set.weekday;\n\t }\n\t }\n\t\n\t if (set.half) {\n\t // Allow localized \"half\" as a standalone colloquialism. Purposely avoiding\n\t // the locale number system to reduce complexity. The units \"month\" and\n\t // \"week\" are purposely excluded in the English date formats below, as\n\t // \"half a week\" and \"half a month\" are meaningless as exact dates.\n\t num *= set.half;\n\t }\n\t\n\t if (isDefined(set.shift)) {\n\t // Shift and unit, ie \"next month\", \"last week\", etc.\n\t num *= set.shift;\n\t } else if (set.sign) {\n\t // Unit and sign, ie \"months ago\", \"weeks from now\", etc.\n\t num *= set.sign;\n\t }\n\t\n\t if (isDefined(set.day)) {\n\t // \"the day after tomorrow\"\n\t num += set.day;\n\t delete set.day;\n\t }\n\t\n\t // Formats like \"the 15th of last month\" or \"6:30pm of next week\"\n\t // contain absolute units in addition to relative ones, so separate\n\t // them here, remove them from the params, and set up a callback to\n\t // set them after the relative ones have been set.\n\t separateAbsoluteUnits(unitIndex);\n\t\n\t // Finally shift the unit.\n\t set[English.units[unitIndex]] = num;\n\t relative = true;\n\t }\n\t\n\t function handleEdge(edge, params) {\n\t var edgeIndex = params.unit, weekdayOfMonth;\n\t if (!edgeIndex) {\n\t // If we have \"the end of January\", then we need to find the unit index.\n\t iterateOverHigherDateParams(params, function(unitName, val, unit, i) {\n\t if (unitName === 'weekday' && isDefined(params.month)) {\n\t // If both a month and weekday exist, then we have a format like\n\t // \"the last tuesday in November, 2012\", where the \"last\" is still\n\t // relative to the end of the month, so prevent the unit \"weekday\"\n\t // from taking over.\n\t return;\n\t }\n\t edgeIndex = i;\n\t });\n\t }\n\t if (edgeIndex === MONTH_INDEX && isDefined(params.weekday)) {\n\t // If a weekday in a month exists (as described above),\n\t // then set it up to be set after the date has been shifted.\n\t weekdayOfMonth = params.weekday;\n\t delete params.weekday;\n\t }\n\t afterDateSet(function() {\n\t var stopIndex;\n\t // \"edge\" values that are at the very edge are \"2\" so the beginning of the\n\t // year is -2 and the end of the year is 2. Conversely, the \"last day\" is\n\t // actually 00:00am so it is 1. -1 is reserved but unused for now.\n\t if (edge < 0) {\n\t moveToBeginningOfUnit(date, edgeIndex, getOwn(options, 'locale'));\n\t } else if (edge > 0) {\n\t if (edge === 1) {\n\t stopIndex = DAY_INDEX;\n\t moveToBeginningOfUnit(date, DAY_INDEX);\n\t }\n\t moveToEndOfUnit(date, edgeIndex, getOwn(options, 'locale'), stopIndex);\n\t }\n\t if (isDefined(weekdayOfMonth)) {\n\t setWeekday(date, weekdayOfMonth, -edge);\n\t resetTime(date);\n\t }\n\t });\n\t if (edgeIndex === MONTH_INDEX) {\n\t params.specificity = DAY_INDEX;\n\t } else {\n\t params.specificity = edgeIndex - 1;\n\t }\n\t }\n\t\n\t function setOrdinalWeekday(num) {\n\t // If we have \"the 2nd Tuesday of June\", then pass the \"weekdayDir\"\n\t // flag along to updateDate so that the date does not accidentally traverse\n\t // into the previous month. This needs to be independent of the \"prefer\"\n\t // flag because we are only ensuring that the weekday is in the future, not\n\t // the entire date.\n\t set.weekday = 7 * (num - 1) + set.weekday;\n\t set.date = 1;\n\t weekdayDir = 1;\n\t }\n\t\n\t function separateAbsoluteUnits(unitIndex) {\n\t var params;\n\t\n\t iterateOverDateParams(set, function(name, val, unit, i) {\n\t // If there is a time unit set that is more specific than\n\t // the matched unit we have a string like \"5:30am in 2 minutes\",\n\t // which is meaningless, so invalidate the date...\n\t if (i >= unitIndex) {\n\t date.setTime(NaN);\n\t return false;\n\t } else if (i < unitIndex) {\n\t // ...otherwise set the params to set the absolute date\n\t // as a callback after the relative date has been set.\n\t params = params || {};\n\t params[name] = val;\n\t deleteDateParam(set, name);\n\t }\n\t });\n\t if (params) {\n\t afterDateSet(function() {\n\t updateDate(date, params, true, false, getOwn(options, 'prefer'), weekdayDir);\n\t });\n\t if (set.edge) {\n\t // \"the end of March of next year\"\n\t handleEdge(set.edge, params);\n\t delete set.edge;\n\t }\n\t }\n\t }\n\t\n\t if (contextDate && d) {\n\t // If a context date is passed (\"get\" and \"unitsFromNow\"),\n\t // then use it as the starting point.\n\t date = cloneDateByFlag(contextDate, true);\n\t } else {\n\t date = getNewDate();\n\t }\n\t\n\t _utc(date, getOwn(options, 'fromUTC'));\n\t\n\t if (isString(d)) {\n\t date = parseStringDate(d);\n\t } else if (isDate(d)) {\n\t date = cloneDateByFlag(d, hasOwn(options, 'clone') || forceClone);\n\t } else if (isObjectType(d)) {\n\t set = simpleClone(d);\n\t updateDate(date, set, true);\n\t } else if (isNumber(d) || d === null) {\n\t date.setTime(d);\n\t }\n\t // A date created by parsing a string presumes that the format *itself* is\n\t // UTC, but not that the date, once created, should be manipulated as such. In\n\t // other words, if you are creating a date object from a server time\n\t // \"2012-11-15T12:00:00Z\", in the majority of cases you are using it to create\n\t // a date that will, after creation, be manipulated as local, so reset the utc\n\t // flag here unless \"setUTC\" is also set.\n\t _utc(date, !!getOwn(options, 'setUTC'));\n\t return {\n\t set: set,\n\t date: date\n\t };\n\t}\n\t\n\tmodule.exports = getExtendedDate;\n\n/***/ },\n/* 96 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = 60 * 1000;\n\n/***/ },\n/* 97 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction tzOffset(d) {\n\t return d.getTimezoneOffset();\n\t}\n\t\n\tmodule.exports = tzOffset;\n\n/***/ },\n/* 98 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82),\n\t setUnitAndLowerToEdge = __webpack_require__(99);\n\t\n\tvar HOURS_INDEX = DateUnitIndexes.HOURS_INDEX;\n\t\n\tfunction resetTime(d) {\n\t return setUnitAndLowerToEdge(d, HOURS_INDEX);\n\t}\n\t\n\tmodule.exports = resetTime;\n\n/***/ },\n/* 99 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar isDefined = __webpack_require__(57),\n\t classChecks = __webpack_require__(60),\n\t callDateSet = __webpack_require__(100),\n\t walkUnitDown = __webpack_require__(101);\n\t\n\tvar isFunction = classChecks.isFunction;\n\t\n\tfunction setUnitAndLowerToEdge(d, startIndex, stopIndex, end) {\n\t walkUnitDown(startIndex, function(unit, i) {\n\t var val = end ? unit.end : unit.start;\n\t if (isFunction(val)) {\n\t val = val(d);\n\t }\n\t callDateSet(d, unit.method, val);\n\t return !isDefined(stopIndex) || i > stopIndex;\n\t });\n\t return d;\n\t}\n\t\n\tmodule.exports = setUnitAndLowerToEdge;\n\n/***/ },\n/* 100 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _utc = __webpack_require__(78),\n\t callDateGet = __webpack_require__(77);\n\t\n\tfunction callDateSet(d, method, value, safe) {\n\t // \"Safe\" denotes not setting the date if the value is the same as what is\n\t // currently set. In theory this should be a noop, however it will cause\n\t // timezone shifts when in the middle of a DST fallback. This is unavoidable\n\t // as the notation itself is ambiguous (i.e. there are two \"1:00ams\" on\n\t // November 1st, 2015 in northern hemisphere timezones that follow DST),\n\t // however when advancing or rewinding dates this can throw off calculations\n\t // so avoiding this unintentional shifting on an opt-in basis.\n\t if (safe && value === callDateGet(d, method, value)) {\n\t return;\n\t }\n\t d['set' + (_utc(d) ? 'UTC' : '') + method](value);\n\t}\n\t\n\tmodule.exports = callDateSet;\n\n/***/ },\n/* 101 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnits = __webpack_require__(74),\n\t getLowerUnitIndex = __webpack_require__(102);\n\t\n\tfunction walkUnitDown(unitIndex, fn) {\n\t while (unitIndex >= 0) {\n\t if (fn(DateUnits[unitIndex], unitIndex) === false) {\n\t break;\n\t }\n\t unitIndex = getLowerUnitIndex(unitIndex);\n\t }\n\t}\n\t\n\tmodule.exports = walkUnitDown;\n\n/***/ },\n/* 102 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82);\n\t\n\tvar HOURS_INDEX = DateUnitIndexes.HOURS_INDEX,\n\t DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n\t WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n\t MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\t\n\tfunction getLowerUnitIndex(index) {\n\t if (index === MONTH_INDEX) {\n\t return DAY_INDEX;\n\t } else if (index === WEEK_INDEX) {\n\t return HOURS_INDEX;\n\t }\n\t return index - 1;\n\t}\n\t\n\tmodule.exports = getLowerUnitIndex;\n\n/***/ },\n/* 103 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar setDate = __webpack_require__(104),\n\t getDate = __webpack_require__(105),\n\t getWeekday = __webpack_require__(106),\n\t classChecks = __webpack_require__(60),\n\t mathAliases = __webpack_require__(69);\n\t\n\tvar isNumber = classChecks.isNumber,\n\t abs = mathAliases.abs;\n\t\n\tfunction setWeekday(d, dow, dir) {\n\t if (!isNumber(dow)) return;\n\t var currentWeekday = getWeekday(d);\n\t if (dir) {\n\t // Allow a \"direction\" parameter to determine whether a weekday can\n\t // be set beyond the current weekday in either direction.\n\t var ndir = dir > 0 ? 1 : -1;\n\t var offset = dow % 7 - currentWeekday;\n\t if (offset && offset / abs(offset) !== ndir) {\n\t dow += 7 * ndir;\n\t }\n\t }\n\t setDate(d, getDate(d) + dow - currentWeekday);\n\t return d.getTime();\n\t}\n\t\n\tmodule.exports = setWeekday;\n\n/***/ },\n/* 104 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateSet = __webpack_require__(100);\n\t\n\tfunction setDate(d, val) {\n\t callDateSet(d, 'Date', val);\n\t}\n\t\n\tmodule.exports = setDate;\n\n/***/ },\n/* 105 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateGet = __webpack_require__(77);\n\t\n\tfunction getDate(d) {\n\t return callDateGet(d, 'Date');\n\t}\n\t\n\tmodule.exports = getDate;\n\n/***/ },\n/* 106 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateGet = __webpack_require__(77);\n\t\n\tfunction getWeekday(d) {\n\t return callDateGet(d, 'Day');\n\t}\n\t\n\tmodule.exports = getWeekday;\n\n/***/ },\n/* 107 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnits = __webpack_require__(74),\n\t DateUnitIndexes = __webpack_require__(82),\n\t trunc = __webpack_require__(89),\n\t setDate = __webpack_require__(104),\n\t getDate = __webpack_require__(105),\n\t getMonth = __webpack_require__(81),\n\t getNewDate = __webpack_require__(108),\n\t setWeekday = __webpack_require__(103),\n\t mathAliases = __webpack_require__(69),\n\t callDateGet = __webpack_require__(77),\n\t classChecks = __webpack_require__(60),\n\t resetLowerUnits = __webpack_require__(115),\n\t getLowerUnitIndex = __webpack_require__(102),\n\t getHigherUnitIndex = __webpack_require__(116),\n\t callDateSetWithWeek = __webpack_require__(117),\n\t iterateOverDateParams = __webpack_require__(124);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n\t WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n\t MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,\n\t YEAR_INDEX = DateUnitIndexes.YEAR_INDEX,\n\t round = mathAliases.round,\n\t isNumber = classChecks.isNumber;\n\t\n\tfunction updateDate(d, params, reset, advance, prefer, weekdayDir) {\n\t var upperUnitIndex;\n\t\n\t function setUpperUnit(unitName, unitIndex) {\n\t if (prefer && !upperUnitIndex) {\n\t if (unitName === 'weekday') {\n\t upperUnitIndex = WEEK_INDEX;\n\t } else {\n\t upperUnitIndex = getHigherUnitIndex(unitIndex);\n\t }\n\t }\n\t }\n\t\n\t function setSpecificity(unitIndex) {\n\t // Other functions may preemptively set the specificity before arriving\n\t // here so concede to them if they have already set more specific units.\n\t if (unitIndex > params.specificity) {\n\t return;\n\t }\n\t params.specificity = unitIndex;\n\t }\n\t\n\t function canDisambiguate() {\n\t if (!upperUnitIndex || upperUnitIndex > YEAR_INDEX) {\n\t return;\n\t }\n\t switch(prefer) {\n\t case -1: return d > getNewDate();\n\t case 1: return d < getNewDate();\n\t }\n\t }\n\t\n\t function disambiguateHigherUnit() {\n\t var unit = DateUnits[upperUnitIndex];\n\t advance = prefer;\n\t setUnit(unit.name, 1, unit, upperUnitIndex);\n\t }\n\t\n\t function handleFraction(unit, unitIndex, fraction) {\n\t if (unitIndex) {\n\t var lowerUnit = DateUnits[getLowerUnitIndex(unitIndex)];\n\t var val = round(unit.multiplier / lowerUnit.multiplier * fraction);\n\t params[lowerUnit.name] = val;\n\t }\n\t }\n\t\n\t function monthHasShifted(d, targetMonth) {\n\t if (targetMonth < 0) {\n\t targetMonth = targetMonth % 12 + 12;\n\t }\n\t return targetMonth % 12 !== getMonth(d);\n\t }\n\t\n\t function setUnit(unitName, value, unit, unitIndex) {\n\t var method = unit.method, checkMonth, fraction;\n\t\n\t setUpperUnit(unitName, unitIndex);\n\t setSpecificity(unitIndex);\n\t\n\t fraction = value % 1;\n\t if (fraction) {\n\t handleFraction(unit, unitIndex, fraction);\n\t value = trunc(value);\n\t }\n\t\n\t if (unitName === 'weekday') {\n\t if (!advance) {\n\t // Weekdays are always considered absolute units so simply set them\n\t // here even if it is an \"advance\" operation. This is to help avoid\n\t // ambiguous meanings in \"advance\" as well as to neatly allow formats\n\t // like \"Wednesday of next week\" without more complex logic.\n\t setWeekday(d, value, weekdayDir);\n\t }\n\t return;\n\t }\n\t checkMonth = unitIndex === MONTH_INDEX && getDate(d) > 28;\n\t\n\t // If we are advancing or rewinding, then we need we need to set the\n\t // absolute time if the unit is \"hours\" or less. This is due to the fact\n\t // that setting by method is ambiguous during DST shifts. For example,\n\t // 1:00am on November 1st 2015 occurs twice in North American timezones\n\t // with DST, the second time being after the clocks are rolled back at\n\t // 2:00am. When springing forward this is automatically handled as there\n\t // is no 2:00am so the date automatically jumps to 3:00am. However, when\n\t // rolling back, setHours(2) will always choose the first \"2am\" even if\n\t // the date is currently set to the second, causing unintended jumps.\n\t // This ambiguity is unavoidable when setting dates as the notation is\n\t // ambiguous. However when advancing, we clearly want the resulting date\n\t // to be an acutal hour ahead, which can only be accomplished by setting\n\t // the absolute time. Conversely, any unit higher than \"hours\" MUST use\n\t // the internal set methods, as they are ambiguous as absolute units of\n\t // time. Years may be 365 or 366 days depending on leap years, months are\n\t // all over the place, and even days may be 23-25 hours depending on DST\n\t // shifts. Finally, note that the kind of jumping described above will\n\t // occur when calling ANY \"set\" method on the date and will occur even if\n\t // the value being set is identical to the one currently set (i.e.\n\t // setHours(2) on a date at 2am may not be a noop). This is precarious,\n\t // so avoiding this situation in callDateSet by checking up front that\n\t // the value is not the same before setting.\n\t if (advance && !unit.ambiguous) {\n\t d.setTime(d.getTime() + (value * advance * unit.multiplier));\n\t return;\n\t } else if (advance) {\n\t if (unitIndex === WEEK_INDEX) {\n\t value *= 7;\n\t method = DateUnits[DAY_INDEX].method;\n\t }\n\t value = (value * advance) + callDateGet(d, method);\n\t }\n\t callDateSetWithWeek(d, method, value, advance);\n\t if (checkMonth && monthHasShifted(d, value)) {\n\t // As we are setting the units in reverse order, there is a chance that\n\t // our date may accidentally traverse into a new month, such as setting\n\t // { month: 1, date 15 } on January 31st. Check for this here and reset\n\t // the date to the last day of the previous month if this has happened.\n\t setDate(d, 0);\n\t }\n\t }\n\t\n\t if (isNumber(params) && advance) {\n\t // If param is a number and advancing, the number is in milliseconds.\n\t params = { millisecond: params };\n\t } else if (isNumber(params)) {\n\t // Otherwise just set the timestamp and return.\n\t d.setTime(params);\n\t return d;\n\t }\n\t\n\t iterateOverDateParams(params, setUnit);\n\t\n\t if (reset && params.specificity) {\n\t resetLowerUnits(d, params.specificity);\n\t }\n\t\n\t // If past or future is preferred, then the process of \"disambiguation\" will\n\t // ensure that an ambiguous time/date (\"4pm\", \"thursday\", \"June\", etc.) will\n\t // be in the past or future. Weeks are only considered ambiguous if there is\n\t // a weekday, i.e. \"thursday\" is an ambiguous week, but \"the 4th\" is an\n\t // ambiguous month.\n\t if (canDisambiguate()) {\n\t disambiguateHigherUnit();\n\t }\n\t return d;\n\t}\n\t\n\tmodule.exports = updateDate;\n\n/***/ },\n/* 108 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _dateOptions = __webpack_require__(109);\n\t\n\tfunction getNewDate() {\n\t return _dateOptions('newDateInternal')();\n\t}\n\t\n\tmodule.exports = getNewDate;\n\n/***/ },\n/* 109 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DATE_OPTIONS = __webpack_require__(110),\n\t namespaceAliases = __webpack_require__(112),\n\t defineOptionsAccessor = __webpack_require__(113);\n\t\n\tvar sugarDate = namespaceAliases.sugarDate;\n\t\n\tmodule.exports = defineOptionsAccessor(sugarDate, DATE_OPTIONS);\n\n/***/ },\n/* 110 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar defaultNewDate = __webpack_require__(111);\n\t\n\tvar DATE_OPTIONS = {\n\t 'newDateInternal': defaultNewDate\n\t};\n\t\n\tmodule.exports = DATE_OPTIONS;\n\n/***/ },\n/* 111 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction defaultNewDate() {\n\t return new Date;\n\t}\n\t\n\tmodule.exports = defaultNewDate;\n\n/***/ },\n/* 112 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\tmodule.exports = {\n\t sugarObject: Sugar.Object,\n\t sugarArray: Sugar.Array,\n\t sugarDate: Sugar.Date,\n\t sugarString: Sugar.String,\n\t sugarNumber: Sugar.Number,\n\t sugarFunction: Sugar.Function,\n\t sugarRegExp: Sugar.RegExp\n\t};\n\n/***/ },\n/* 113 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar simpleClone = __webpack_require__(42),\n\t defineAccessor = __webpack_require__(114);\n\t\n\tfunction defineOptionsAccessor(namespace, defaults) {\n\t var obj = simpleClone(defaults);\n\t\n\t function getOption(name) {\n\t return obj[name];\n\t }\n\t\n\t function setOption(name, val) {\n\t if (val === null) {\n\t val = defaults[name];\n\t }\n\t obj[name] = val;\n\t }\n\t\n\t defineAccessor(namespace, 'getOption', getOption);\n\t defineAccessor(namespace, 'setOption', setOption);\n\t return getOption;\n\t}\n\t\n\tmodule.exports = defineOptionsAccessor;\n\n/***/ },\n/* 114 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar setProperty = coreUtilityAliases.setProperty;\n\t\n\tfunction defineAccessor(namespace, name, fn) {\n\t setProperty(namespace, name, fn);\n\t}\n\t\n\tmodule.exports = defineAccessor;\n\n/***/ },\n/* 115 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getLowerUnitIndex = __webpack_require__(102),\n\t setUnitAndLowerToEdge = __webpack_require__(99);\n\t\n\tfunction resetLowerUnits(d, unitIndex) {\n\t return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex));\n\t}\n\t\n\tmodule.exports = resetLowerUnits;\n\n/***/ },\n/* 116 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n\t MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\t\n\tfunction getHigherUnitIndex(index) {\n\t return index === DAY_INDEX ? MONTH_INDEX : index + 1;\n\t}\n\t\n\tmodule.exports = getHigherUnitIndex;\n\n/***/ },\n/* 117 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateSet = __webpack_require__(100),\n\t setISOWeekNumber = __webpack_require__(118);\n\t\n\tfunction callDateSetWithWeek(d, method, value, safe) {\n\t if (method === 'ISOWeek') {\n\t setISOWeekNumber(d, value);\n\t } else {\n\t callDateSet(d, method, value, safe);\n\t }\n\t}\n\t\n\tmodule.exports = callDateSetWithWeek;\n\n/***/ },\n/* 118 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar ISODefaults = __webpack_require__(47),\n\t getDate = __webpack_require__(105),\n\t setDate = __webpack_require__(104),\n\t setYear = __webpack_require__(119),\n\t getYear = __webpack_require__(76),\n\t getMonth = __webpack_require__(81),\n\t setMonth = __webpack_require__(120),\n\t cloneDate = __webpack_require__(121),\n\t getWeekday = __webpack_require__(106),\n\t setWeekday = __webpack_require__(103),\n\t classChecks = __webpack_require__(60),\n\t moveToFirstDayOfWeekYear = __webpack_require__(122);\n\t\n\tvar isNumber = classChecks.isNumber,\n\t ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,\n\t ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR;\n\t\n\tfunction setISOWeekNumber(d, num) {\n\t if (isNumber(num)) {\n\t // Intentionally avoiding updateDate here to prevent circular dependencies.\n\t var isoWeek = cloneDate(d), dow = getWeekday(d);\n\t moveToFirstDayOfWeekYear(isoWeek, ISO_FIRST_DAY_OF_WEEK, ISO_FIRST_DAY_OF_WEEK_YEAR);\n\t setDate(isoWeek, getDate(isoWeek) + 7 * (num - 1));\n\t setYear(d, getYear(isoWeek));\n\t setMonth(d, getMonth(isoWeek));\n\t setDate(d, getDate(isoWeek));\n\t setWeekday(d, dow || 7);\n\t }\n\t return d.getTime();\n\t}\n\t\n\tmodule.exports = setISOWeekNumber;\n\n/***/ },\n/* 119 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateSet = __webpack_require__(100);\n\t\n\tfunction setYear(d, val) {\n\t callDateSet(d, 'FullYear', val);\n\t}\n\t\n\tmodule.exports = setYear;\n\n/***/ },\n/* 120 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateSet = __webpack_require__(100);\n\t\n\tfunction setMonth(d, val) {\n\t callDateSet(d, 'Month', val);\n\t}\n\t\n\tmodule.exports = setMonth;\n\n/***/ },\n/* 121 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _utc = __webpack_require__(78);\n\t\n\tfunction cloneDate(d) {\n\t // Rhino environments have a bug where new Date(d) truncates\n\t // milliseconds so need to call getTime() here.\n\t var clone = new Date(d.getTime());\n\t _utc(clone, !!_utc(d));\n\t return clone;\n\t}\n\t\n\tmodule.exports = cloneDate;\n\n/***/ },\n/* 122 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82),\n\t setDate = __webpack_require__(104),\n\t setUnitAndLowerToEdge = __webpack_require__(99),\n\t moveToBeginningOfWeek = __webpack_require__(123);\n\t\n\tvar MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\t\n\tfunction moveToFirstDayOfWeekYear(d, firstDayOfWeek, firstDayOfWeekYear) {\n\t setUnitAndLowerToEdge(d, MONTH_INDEX);\n\t setDate(d, firstDayOfWeekYear);\n\t moveToBeginningOfWeek(d, firstDayOfWeek);\n\t}\n\t\n\tmodule.exports = moveToFirstDayOfWeekYear;\n\n/***/ },\n/* 123 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar setWeekday = __webpack_require__(103),\n\t getWeekday = __webpack_require__(106),\n\t mathAliases = __webpack_require__(69);\n\t\n\tvar floor = mathAliases.floor;\n\t\n\tfunction moveToBeginningOfWeek(d, firstDayOfWeek) {\n\t setWeekday(d, floor((getWeekday(d) - firstDayOfWeek) / 7) * 7 + firstDayOfWeek);\n\t return d;\n\t}\n\t\n\tmodule.exports = moveToBeginningOfWeek;\n\n/***/ },\n/* 124 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82),\n\t isDefined = __webpack_require__(57),\n\t getDateParam = __webpack_require__(125),\n\t iterateOverDateUnits = __webpack_require__(73);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\t\n\tfunction iterateOverDateParams(params, fn, startIndex, endIndex) {\n\t\n\t function run(name, unit, i) {\n\t var val = getDateParam(params, name);\n\t if (isDefined(val)) {\n\t fn(name, val, unit, i);\n\t }\n\t }\n\t\n\t iterateOverDateUnits(function (unit, i) {\n\t var result = run(unit.name, unit, i);\n\t if (result !== false && i === DAY_INDEX) {\n\t // Check for \"weekday\", which has a distinct meaning\n\t // in the context of setting a date, but has the same\n\t // meaning as \"day\" as a unit of time.\n\t result = run('weekday', unit, i);\n\t }\n\t return result;\n\t }, startIndex, endIndex);\n\t\n\t}\n\t\n\tmodule.exports = iterateOverDateParams;\n\n/***/ },\n/* 125 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getDateParamKey = __webpack_require__(126),\n\t coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar getOwn = coreUtilityAliases.getOwn;\n\t\n\tfunction getDateParam(params, key) {\n\t return getOwn(params, getDateParamKey(params, key));\n\t}\n\t\n\tmodule.exports = getDateParam;\n\n/***/ },\n/* 126 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getOwnKey = __webpack_require__(127);\n\t\n\tfunction getDateParamKey(params, key) {\n\t return getOwnKey(params, key) ||\n\t getOwnKey(params, key + 's') ||\n\t (key === 'day' && getOwnKey(params, 'date'));\n\t}\n\t\n\tmodule.exports = getDateParamKey;\n\n/***/ },\n/* 127 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar hasOwn = coreUtilityAliases.hasOwn;\n\t\n\tfunction getOwnKey(obj, key) {\n\t if (hasOwn(obj, key)) {\n\t return key;\n\t }\n\t}\n\t\n\tmodule.exports = getOwnKey;\n\n/***/ },\n/* 128 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar updateDate = __webpack_require__(107);\n\t\n\tfunction advanceDate(d, unit, num, reset) {\n\t var set = {};\n\t set[unit] = num;\n\t return updateDate(d, set, reset, 1);\n\t}\n\t\n\tmodule.exports = advanceDate;\n\n/***/ },\n/* 129 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t DateUnitIndexes = __webpack_require__(82),\n\t moveToEndOfWeek = __webpack_require__(130),\n\t getLowerUnitIndex = __webpack_require__(102),\n\t setUnitAndLowerToEdge = __webpack_require__(99);\n\t\n\tvar WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n\t localeManager = LocaleHelpers.localeManager;\n\t\n\tfunction moveToEndOfUnit(d, unitIndex, localeCode, stopIndex) {\n\t if (unitIndex === WEEK_INDEX) {\n\t moveToEndOfWeek(d, localeManager.get(localeCode).getFirstDayOfWeek());\n\t }\n\t return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex), stopIndex, true);\n\t}\n\t\n\tmodule.exports = moveToEndOfUnit;\n\n/***/ },\n/* 130 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar setWeekday = __webpack_require__(103),\n\t getWeekday = __webpack_require__(106),\n\t mathAliases = __webpack_require__(69);\n\t\n\tvar ceil = mathAliases.ceil;\n\t\n\tfunction moveToEndOfWeek(d, firstDayOfWeek) {\n\t var target = firstDayOfWeek - 1;\n\t setWeekday(d, ceil((getWeekday(d) - target) / 7) * 7 + target);\n\t return d;\n\t}\n\t\n\tmodule.exports = moveToEndOfWeek;\n\n/***/ },\n/* 131 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getDateParamKey = __webpack_require__(126);\n\t\n\tfunction deleteDateParam(params, key) {\n\t delete params[getDateParamKey(params, key)];\n\t}\n\t\n\tmodule.exports = deleteDateParam;\n\n/***/ },\n/* 132 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction getParsingTokenValue(token, str) {\n\t var val;\n\t if (token.val) {\n\t val = token.val;\n\t } else if (token.sign) {\n\t val = str === '+' ? 1 : -1;\n\t } else if (token.bool) {\n\t val = !!val;\n\t } else {\n\t val = +str.replace(/,/, '.');\n\t }\n\t if (token.param === 'month') {\n\t val -= 1;\n\t }\n\t return val;\n\t}\n\t\n\tmodule.exports = getParsingTokenValue;\n\n/***/ },\n/* 133 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t DateUnitIndexes = __webpack_require__(82),\n\t getLowerUnitIndex = __webpack_require__(102),\n\t moveToBeginningOfWeek = __webpack_require__(123),\n\t setUnitAndLowerToEdge = __webpack_require__(99);\n\t\n\tvar WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n\t localeManager = LocaleHelpers.localeManager;\n\t\n\tfunction moveToBeginningOfUnit(d, unitIndex, localeCode) {\n\t if (unitIndex === WEEK_INDEX) {\n\t moveToBeginningOfWeek(d, localeManager.get(localeCode).getFirstDayOfWeek());\n\t }\n\t return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex));\n\t}\n\t\n\tmodule.exports = moveToBeginningOfUnit;\n\n/***/ },\n/* 134 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getYear = __webpack_require__(76),\n\t mathAliases = __webpack_require__(69);\n\t\n\tvar abs = mathAliases.abs;\n\t\n\tfunction getYearFromAbbreviation(str, d, prefer) {\n\t // Following IETF here, adding 1900 or 2000 depending on the last two digits.\n\t // Note that this makes no accordance for what should happen after 2050, but\n\t // intentionally ignoring this for now. https://www.ietf.org/rfc/rfc2822.txt\n\t var val = +str, delta;\n\t val += val < 50 ? 2000 : 1900;\n\t if (prefer) {\n\t delta = val - getYear(d);\n\t if (delta / abs(delta) !== prefer) {\n\t val += prefer * 100;\n\t }\n\t }\n\t return val;\n\t}\n\t\n\tmodule.exports = getYearFromAbbreviation;\n\n/***/ },\n/* 135 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82),\n\t iterateOverDateParams = __webpack_require__(124);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n\t YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\t\n\tfunction iterateOverHigherDateParams(params, fn) {\n\t iterateOverDateParams(params, fn, YEAR_INDEX, DAY_INDEX);\n\t}\n\t\n\tmodule.exports = iterateOverHigherDateParams;\n\n/***/ },\n/* 136 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar setDateChainableConstructor = __webpack_require__(137);\n\t\n\tsetDateChainableConstructor();\n\n/***/ },\n/* 137 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar createDate = __webpack_require__(94),\n\t namespaceAliases = __webpack_require__(112),\n\t setChainableConstructor = __webpack_require__(138);\n\t\n\tvar sugarDate = namespaceAliases.sugarDate;\n\t\n\tfunction setDateChainableConstructor() {\n\t setChainableConstructor(sugarDate, createDate);\n\t}\n\t\n\tmodule.exports = setDateChainableConstructor;\n\n/***/ },\n/* 138 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction setChainableConstructor(sugarNamespace, createFn) {\n\t sugarNamespace.prototype.constructor = function() {\n\t return createFn.apply(this, arguments);\n\t };\n\t}\n\t\n\tmodule.exports = setChainableConstructor;\n\n/***/ },\n/* 139 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35),\n\t getKeys = __webpack_require__(140);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'getAllLocaleCodes': function() {\n\t return getKeys(localeManager.getAll());\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getAllLocaleCodes;\n\n/***/ },\n/* 140 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction getKeys(obj) {\n\t return Object.keys(obj);\n\t}\n\t\n\tmodule.exports = getKeys;\n\n/***/ },\n/* 141 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'getAllLocales': function() {\n\t return localeManager.getAll();\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getAllLocales;\n\n/***/ },\n/* 142 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'getLocale': function(code) {\n\t return localeManager.get(code, !code);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getLocale;\n\n/***/ },\n/* 143 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'removeLocale': function(code) {\n\t return localeManager.remove(code);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.removeLocale;\n\n/***/ },\n/* 144 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'setLocale': function(code) {\n\t return localeManager.set(code);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.setLocale;\n\n/***/ },\n/* 145 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.day;\n\n/***/ },\n/* 146 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar buildNumberUnitMethods = __webpack_require__(147);\n\t\n\tbuildNumberUnitMethods();\n\n/***/ },\n/* 147 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnits = __webpack_require__(74),\n\t createDate = __webpack_require__(94),\n\t mathAliases = __webpack_require__(69),\n\t advanceDate = __webpack_require__(128),\n\t namespaceAliases = __webpack_require__(112),\n\t defineInstanceSimilar = __webpack_require__(148);\n\t\n\tvar sugarNumber = namespaceAliases.sugarNumber,\n\t round = mathAliases.round;\n\t\n\tfunction buildNumberUnitMethods() {\n\t defineInstanceSimilar(sugarNumber, DateUnits, function(methods, unit) {\n\t var name = unit.name, base, after, before;\n\t base = function(n) {\n\t return round(n * unit.multiplier);\n\t };\n\t after = function(n, d, options) {\n\t return advanceDate(createDate(d, options, true), name, n);\n\t };\n\t before = function(n, d, options) {\n\t return advanceDate(createDate(d, options, true), name, -n);\n\t };\n\t methods[name] = base;\n\t methods[name + 's'] = base;\n\t methods[name + 'Before'] = before;\n\t methods[name + 'sBefore'] = before;\n\t methods[name + 'Ago'] = before;\n\t methods[name + 'sAgo'] = before;\n\t methods[name + 'After'] = after;\n\t methods[name + 'sAfter'] = after;\n\t methods[name + 'FromNow'] = after;\n\t methods[name + 'sFromNow'] = after;\n\t });\n\t}\n\t\n\tmodule.exports = buildNumberUnitMethods;\n\n/***/ },\n/* 148 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar methodDefineAliases = __webpack_require__(149),\n\t collectSimilarMethods = __webpack_require__(151);\n\t\n\tvar defineInstance = methodDefineAliases.defineInstance;\n\t\n\tfunction defineInstanceSimilar(sugarNamespace, set, fn, flags) {\n\t defineInstance(sugarNamespace, collectSimilarMethods(set, fn), flags);\n\t}\n\t\n\tmodule.exports = defineInstanceSimilar;\n\n/***/ },\n/* 149 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar wrapNamespace = __webpack_require__(150);\n\t\n\tmodule.exports = {\n\t alias: wrapNamespace('alias'),\n\t defineStatic: wrapNamespace('defineStatic'),\n\t defineInstance: wrapNamespace('defineInstance'),\n\t defineStaticPolyfill: wrapNamespace('defineStaticPolyfill'),\n\t defineInstancePolyfill: wrapNamespace('defineInstancePolyfill'),\n\t defineInstanceAndStatic: wrapNamespace('defineInstanceAndStatic'),\n\t defineInstanceWithArguments: wrapNamespace('defineInstanceWithArguments')\n\t};\n\n/***/ },\n/* 150 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction wrapNamespace(method) {\n\t return function(sugarNamespace, arg1, arg2) {\n\t sugarNamespace[method](arg1, arg2);\n\t };\n\t}\n\t\n\tmodule.exports = wrapNamespace;\n\n/***/ },\n/* 151 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar forEach = __webpack_require__(53),\n\t spaceSplit = __webpack_require__(63),\n\t classChecks = __webpack_require__(60);\n\t\n\tvar isString = classChecks.isString;\n\t\n\tfunction collectSimilarMethods(set, fn) {\n\t var methods = {};\n\t if (isString(set)) {\n\t set = spaceSplit(set);\n\t }\n\t forEach(set, function(el, i) {\n\t fn(methods, el, i);\n\t });\n\t return methods;\n\t}\n\t\n\tmodule.exports = collectSimilarMethods;\n\n/***/ },\n/* 152 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.dayAfter;\n\n/***/ },\n/* 153 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.dayAgo;\n\n/***/ },\n/* 154 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.dayBefore;\n\n/***/ },\n/* 155 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.dayFromNow;\n\n/***/ },\n/* 156 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.days;\n\n/***/ },\n/* 157 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.daysAfter;\n\n/***/ },\n/* 158 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.daysAgo;\n\n/***/ },\n/* 159 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.daysBefore;\n\n/***/ },\n/* 160 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.daysFromNow;\n\n/***/ },\n/* 161 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t LocaleHelpers = __webpack_require__(35);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tSugar.Number.defineInstance({\n\t\n\t 'duration': function(n, localeCode) {\n\t return localeManager.get(localeCode).getDuration(n);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Number.duration;\n\n/***/ },\n/* 162 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hour;\n\n/***/ },\n/* 163 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hourAfter;\n\n/***/ },\n/* 164 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hourAgo;\n\n/***/ },\n/* 165 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hourBefore;\n\n/***/ },\n/* 166 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hourFromNow;\n\n/***/ },\n/* 167 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hours;\n\n/***/ },\n/* 168 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hoursAfter;\n\n/***/ },\n/* 169 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hoursAgo;\n\n/***/ },\n/* 170 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hoursBefore;\n\n/***/ },\n/* 171 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.hoursFromNow;\n\n/***/ },\n/* 172 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecond;\n\n/***/ },\n/* 173 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondAfter;\n\n/***/ },\n/* 174 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondAgo;\n\n/***/ },\n/* 175 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondBefore;\n\n/***/ },\n/* 176 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondFromNow;\n\n/***/ },\n/* 177 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.milliseconds;\n\n/***/ },\n/* 178 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondsAfter;\n\n/***/ },\n/* 179 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondsAgo;\n\n/***/ },\n/* 180 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondsBefore;\n\n/***/ },\n/* 181 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.millisecondsFromNow;\n\n/***/ },\n/* 182 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minute;\n\n/***/ },\n/* 183 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minuteAfter;\n\n/***/ },\n/* 184 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minuteAgo;\n\n/***/ },\n/* 185 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minuteBefore;\n\n/***/ },\n/* 186 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minuteFromNow;\n\n/***/ },\n/* 187 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minutes;\n\n/***/ },\n/* 188 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minutesAfter;\n\n/***/ },\n/* 189 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minutesAgo;\n\n/***/ },\n/* 190 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minutesBefore;\n\n/***/ },\n/* 191 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.minutesFromNow;\n\n/***/ },\n/* 192 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.month;\n\n/***/ },\n/* 193 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthAfter;\n\n/***/ },\n/* 194 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthAgo;\n\n/***/ },\n/* 195 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthBefore;\n\n/***/ },\n/* 196 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthFromNow;\n\n/***/ },\n/* 197 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.months;\n\n/***/ },\n/* 198 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthsAfter;\n\n/***/ },\n/* 199 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthsAgo;\n\n/***/ },\n/* 200 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthsBefore;\n\n/***/ },\n/* 201 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.monthsFromNow;\n\n/***/ },\n/* 202 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.second;\n\n/***/ },\n/* 203 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondAfter;\n\n/***/ },\n/* 204 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondAgo;\n\n/***/ },\n/* 205 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondBefore;\n\n/***/ },\n/* 206 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondFromNow;\n\n/***/ },\n/* 207 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.seconds;\n\n/***/ },\n/* 208 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondsAfter;\n\n/***/ },\n/* 209 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondsAgo;\n\n/***/ },\n/* 210 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondsBefore;\n\n/***/ },\n/* 211 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.secondsFromNow;\n\n/***/ },\n/* 212 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.week;\n\n/***/ },\n/* 213 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weekAfter;\n\n/***/ },\n/* 214 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weekAgo;\n\n/***/ },\n/* 215 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weekBefore;\n\n/***/ },\n/* 216 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weekFromNow;\n\n/***/ },\n/* 217 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weeks;\n\n/***/ },\n/* 218 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weeksAfter;\n\n/***/ },\n/* 219 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weeksAgo;\n\n/***/ },\n/* 220 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weeksBefore;\n\n/***/ },\n/* 221 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.weeksFromNow;\n\n/***/ },\n/* 222 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.year;\n\n/***/ },\n/* 223 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearAfter;\n\n/***/ },\n/* 224 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearAgo;\n\n/***/ },\n/* 225 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearBefore;\n\n/***/ },\n/* 226 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearFromNow;\n\n/***/ },\n/* 227 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.years;\n\n/***/ },\n/* 228 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearsAfter;\n\n/***/ },\n/* 229 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearsAgo;\n\n/***/ },\n/* 230 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearsBefore;\n\n/***/ },\n/* 231 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(146);\n\t\n\tmodule.exports = Sugar.Number.yearsFromNow;\n\n/***/ },\n/* 232 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addDays;\n\n/***/ },\n/* 233 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar buildDateUnitMethods = __webpack_require__(234);\n\t\n\tbuildDateUnitMethods();\n\n/***/ },\n/* 234 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnits = __webpack_require__(74),\n\t DateUnitIndexes = __webpack_require__(82),\n\t forEach = __webpack_require__(53),\n\t compareDate = __webpack_require__(235),\n\t advanceDate = __webpack_require__(128),\n\t moveToEndOfUnit = __webpack_require__(129),\n\t simpleCapitalize = __webpack_require__(237),\n\t namespaceAliases = __webpack_require__(112),\n\t defineInstanceSimilar = __webpack_require__(148),\n\t moveToBeginningOfUnit = __webpack_require__(133),\n\t createDateWithContext = __webpack_require__(238),\n\t getTimeDistanceForUnit = __webpack_require__(239);\n\t\n\tvar sugarDate = namespaceAliases.sugarDate,\n\t HOURS_INDEX = DateUnitIndexes.HOURS_INDEX,\n\t DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\t\n\tfunction buildDateUnitMethods() {\n\t\n\t defineInstanceSimilar(sugarDate, DateUnits, function(methods, unit, index) {\n\t var name = unit.name, caps = simpleCapitalize(name);\n\t\n\t if (index > DAY_INDEX) {\n\t forEach(['Last','This','Next'], function(shift) {\n\t methods['is' + shift + caps] = function(d, localeCode) {\n\t return compareDate(d, shift + ' ' + name, 0, localeCode, { locale: 'en' });\n\t };\n\t });\n\t }\n\t if (index > HOURS_INDEX) {\n\t methods['beginningOf' + caps] = function(d, localeCode) {\n\t return moveToBeginningOfUnit(d, index, localeCode);\n\t };\n\t methods['endOf' + caps] = function(d, localeCode) {\n\t return moveToEndOfUnit(d, index, localeCode);\n\t };\n\t }\n\t\n\t methods['add' + caps + 's'] = function(d, num, reset) {\n\t return advanceDate(d, name, num, reset);\n\t };\n\t\n\t var since = function(date, d, options) {\n\t return getTimeDistanceForUnit(date, createDateWithContext(date, d, options, true), unit);\n\t };\n\t var until = function(date, d, options) {\n\t return getTimeDistanceForUnit(createDateWithContext(date, d, options, true), date, unit);\n\t };\n\t\n\t methods[name + 'sAgo'] = methods[name + 'sUntil'] = until;\n\t methods[name + 'sSince'] = methods[name + 'sFromNow'] = since;\n\t\n\t });\n\t\n\t}\n\t\n\tmodule.exports = buildDateUnitMethods;\n\n/***/ },\n/* 235 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar MINUTES = __webpack_require__(96),\n\t DateUnits = __webpack_require__(74),\n\t DateUnitIndexes = __webpack_require__(82),\n\t _utc = __webpack_require__(78),\n\t tzOffset = __webpack_require__(97),\n\t cloneDate = __webpack_require__(121),\n\t isDefined = __webpack_require__(57),\n\t advanceDate = __webpack_require__(128),\n\t dateIsValid = __webpack_require__(236),\n\t moveToEndOfUnit = __webpack_require__(129),\n\t getExtendedDate = __webpack_require__(95),\n\t moveToBeginningOfUnit = __webpack_require__(133);\n\t\n\tvar MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\t\n\tfunction compareDate(date, d, margin, localeCode, options) {\n\t var loMargin = 0, hiMargin = 0, timezoneShift, compareEdges, override, min, max, p, t;\n\t\n\t function getTimezoneShift() {\n\t // If there is any specificity in the date then we're implicitly not\n\t // checking absolute time, so ignore timezone shifts.\n\t if (p.set && p.set.specificity) {\n\t return 0;\n\t }\n\t return (tzOffset(p.date) - tzOffset(date)) * MINUTES;\n\t }\n\t\n\t function addSpecificUnit() {\n\t var unit = DateUnits[p.set.specificity];\n\t return advanceDate(cloneDate(p.date), unit.name, 1).getTime() - 1;\n\t }\n\t\n\t if (_utc(date)) {\n\t options = options || {};\n\t options.fromUTC = true;\n\t options.setUTC = true;\n\t }\n\t\n\t p = getExtendedDate(null, d, options, true);\n\t\n\t if (margin > 0) {\n\t loMargin = hiMargin = margin;\n\t override = true;\n\t }\n\t if (!dateIsValid(p.date)) return false;\n\t if (p.set && p.set.specificity) {\n\t if (isDefined(p.set.edge) || isDefined(p.set.shift)) {\n\t compareEdges = true;\n\t moveToBeginningOfUnit(p.date, p.set.specificity, localeCode);\n\t }\n\t if (compareEdges || p.set.specificity === MONTH_INDEX) {\n\t max = moveToEndOfUnit(cloneDate(p.date), p.set.specificity, localeCode).getTime();\n\t } else {\n\t max = addSpecificUnit();\n\t }\n\t if (!override && isDefined(p.set.sign) && p.set.specificity) {\n\t // If the time is relative, there can occasionally be an disparity between\n\t // the relative date and \"now\", which it is being compared to, so set an\n\t // extra margin to account for this.\n\t loMargin = 50;\n\t hiMargin = -50;\n\t }\n\t }\n\t t = date.getTime();\n\t min = p.date.getTime();\n\t max = max || min;\n\t timezoneShift = getTimezoneShift();\n\t if (timezoneShift) {\n\t min -= timezoneShift;\n\t max -= timezoneShift;\n\t }\n\t return t >= (min - loMargin) && t <= (max + hiMargin);\n\t}\n\t\n\tmodule.exports = compareDate;\n\n/***/ },\n/* 236 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction dateIsValid(d) {\n\t return !isNaN(d.getTime());\n\t}\n\t\n\tmodule.exports = dateIsValid;\n\n/***/ },\n/* 237 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction simpleCapitalize(str) {\n\t return str.charAt(0).toUpperCase() + str.slice(1);\n\t}\n\t\n\tmodule.exports = simpleCapitalize;\n\n/***/ },\n/* 238 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getExtendedDate = __webpack_require__(95);\n\t\n\tfunction createDateWithContext(contextDate, d, options, forceClone) {\n\t return getExtendedDate(contextDate, d, options, forceClone).date;\n\t}\n\t\n\tmodule.exports = createDateWithContext;\n\n/***/ },\n/* 239 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar trunc = __webpack_require__(89),\n\t cloneDate = __webpack_require__(121),\n\t advanceDate = __webpack_require__(128);\n\t\n\tfunction getTimeDistanceForUnit(d1, d2, unit) {\n\t var fwd = d2 > d1, num, tmp;\n\t if (!fwd) {\n\t tmp = d2;\n\t d2 = d1;\n\t d1 = tmp;\n\t }\n\t num = d2 - d1;\n\t if (unit.multiplier > 1) {\n\t num = trunc(num / unit.multiplier);\n\t }\n\t // For higher order with potential ambiguity, use the numeric calculation\n\t // as a starting point, then iterate until we pass the target date.\n\t if (unit.ambiguous) {\n\t d1 = cloneDate(d1);\n\t if (num) {\n\t advanceDate(d1, unit.name, num);\n\t }\n\t while (d1 < d2) {\n\t advanceDate(d1, unit.name, 1);\n\t if (d1 > d2) {\n\t break;\n\t }\n\t num += 1;\n\t }\n\t }\n\t return fwd ? -num : num;\n\t}\n\t\n\tmodule.exports = getTimeDistanceForUnit;\n\n/***/ },\n/* 240 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addHours;\n\n/***/ },\n/* 241 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addMilliseconds;\n\n/***/ },\n/* 242 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addMinutes;\n\n/***/ },\n/* 243 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addMonths;\n\n/***/ },\n/* 244 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addSeconds;\n\n/***/ },\n/* 245 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addWeeks;\n\n/***/ },\n/* 246 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.addYears;\n\n/***/ },\n/* 247 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t advanceDateWithArgs = __webpack_require__(248);\n\t\n\tSugar.Date.defineInstanceWithArguments({\n\t\n\t 'advance': function(d, args) {\n\t return advanceDateWithArgs(d, args, 1);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.advance;\n\n/***/ },\n/* 248 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar updateDate = __webpack_require__(107),\n\t collectDateArguments = __webpack_require__(249);\n\t\n\tfunction advanceDateWithArgs(d, args, dir) {\n\t args = collectDateArguments(args, true);\n\t return updateDate(d, args[0], args[1], dir);\n\t}\n\t\n\tmodule.exports = advanceDateWithArgs;\n\n/***/ },\n/* 249 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60),\n\t simpleClone = __webpack_require__(42),\n\t isObjectType = __webpack_require__(65),\n\t getDateParamsFromString = __webpack_require__(250),\n\t collectDateParamsFromArguments = __webpack_require__(251);\n\t\n\tvar isNumber = classChecks.isNumber,\n\t isString = classChecks.isString;\n\t\n\tfunction collectDateArguments(args, allowDuration) {\n\t var arg1 = args[0], arg2 = args[1];\n\t if (allowDuration && isString(arg1)) {\n\t arg1 = getDateParamsFromString(arg1);\n\t } else if (isNumber(arg1) && isNumber(arg2)) {\n\t arg1 = collectDateParamsFromArguments(args);\n\t arg2 = null;\n\t } else {\n\t if (isObjectType(arg1)) {\n\t arg1 = simpleClone(arg1);\n\t }\n\t }\n\t return [arg1, arg2];\n\t}\n\t\n\tmodule.exports = collectDateArguments;\n\n/***/ },\n/* 250 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar isUndefined = __webpack_require__(68);\n\t\n\tfunction getDateParamsFromString(str) {\n\t var match, num, params = {};\n\t match = str.match(/^(-?\\d*[\\d.]\\d*)?\\s?(\\w+?)s?$/i);\n\t if (match) {\n\t if (isUndefined(num)) {\n\t num = +match[1];\n\t if (isNaN(num)) {\n\t num = 1;\n\t }\n\t }\n\t params[match[2].toLowerCase()] = num;\n\t }\n\t return params;\n\t}\n\t\n\tmodule.exports = getDateParamsFromString;\n\n/***/ },\n/* 251 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnitIndexes = __webpack_require__(82),\n\t isDefined = __webpack_require__(57),\n\t walkUnitDown = __webpack_require__(101);\n\t\n\tvar YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\t\n\tfunction collectDateParamsFromArguments(args) {\n\t var params = {}, index = 0;\n\t walkUnitDown(YEAR_INDEX, function(unit) {\n\t var arg = args[index++];\n\t if (isDefined(arg)) {\n\t params[unit.name] = arg;\n\t }\n\t });\n\t return params;\n\t}\n\t\n\tmodule.exports = collectDateParamsFromArguments;\n\n/***/ },\n/* 252 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.beginningOfDay;\n\n/***/ },\n/* 253 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t resetTime = __webpack_require__(98),\n\t getWeekday = __webpack_require__(106),\n\t setWeekday = __webpack_require__(103);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'beginningOfISOWeek': function(date) {\n\t var day = getWeekday(date);\n\t if (day === 0) {\n\t day = -6;\n\t } else if (day !== 1) {\n\t day = 1;\n\t }\n\t setWeekday(date, day);\n\t return resetTime(date);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.beginningOfISOWeek;\n\n/***/ },\n/* 254 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.beginningOfMonth;\n\n/***/ },\n/* 255 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.beginningOfWeek;\n\n/***/ },\n/* 256 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.beginningOfYear;\n\n/***/ },\n/* 257 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t cloneDate = __webpack_require__(121);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'clone': function(date) {\n\t return cloneDate(date);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.clone;\n\n/***/ },\n/* 258 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.daysAgo;\n\n/***/ },\n/* 259 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.daysFromNow;\n\n/***/ },\n/* 260 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t getDaysInMonth = __webpack_require__(75);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'daysInMonth': function(date) {\n\t return getDaysInMonth(date);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.daysInMonth;\n\n/***/ },\n/* 261 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.daysSince;\n\n/***/ },\n/* 262 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.daysUntil;\n\n/***/ },\n/* 263 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.endOfDay;\n\n/***/ },\n/* 264 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t DateUnitIndexes = __webpack_require__(82),\n\t getWeekday = __webpack_require__(106),\n\t setWeekday = __webpack_require__(103),\n\t moveToEndOfUnit = __webpack_require__(129);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'endOfISOWeek': function(date) {\n\t if (getWeekday(date) !== 0) {\n\t setWeekday(date, 7);\n\t }\n\t return moveToEndOfUnit(date, DAY_INDEX);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.endOfISOWeek;\n\n/***/ },\n/* 265 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.endOfMonth;\n\n/***/ },\n/* 266 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.endOfWeek;\n\n/***/ },\n/* 267 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.endOfYear;\n\n/***/ },\n/* 268 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t dateFormat = __webpack_require__(269);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'format': function(date, f, localeCode) {\n\t return dateFormat(date, f, localeCode);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.format;\n\n/***/ },\n/* 269 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar CoreOutputFormats = __webpack_require__(270),\n\t formattingTokens = __webpack_require__(271),\n\t assertDateIsValid = __webpack_require__(286);\n\t\n\tvar dateFormatMatcher = formattingTokens.dateFormatMatcher;\n\t\n\tfunction dateFormat(d, format, localeCode) {\n\t assertDateIsValid(d);\n\t format = CoreOutputFormats[format] || format || '{long}';\n\t return dateFormatMatcher(format, d, localeCode);\n\t}\n\t\n\tmodule.exports = dateFormat;\n\n/***/ },\n/* 270 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar CoreOutputFormats = {\n\t 'ISO8601': '{yyyy}-{MM}-{dd}T{HH}:{mm}:{ss}.{SSS}{Z}',\n\t 'RFC1123': '{Dow}, {dd} {Mon} {yyyy} {HH}:{mm}:{ss} {ZZ}',\n\t 'RFC1036': '{Weekday}, {dd}-{Mon}-{yy} {HH}:{mm}:{ss} {ZZ}'\n\t};\n\t\n\tmodule.exports = CoreOutputFormats;\n\n/***/ },\n/* 271 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t FormatTokensBase = __webpack_require__(272),\n\t CoreOutputFormats = __webpack_require__(270),\n\t forEach = __webpack_require__(53),\n\t padNumber = __webpack_require__(275),\n\t spaceSplit = __webpack_require__(63),\n\t namespaceAliases = __webpack_require__(112),\n\t coreUtilityAliases = __webpack_require__(41),\n\t createFormatMatcher = __webpack_require__(282),\n\t defineInstanceSimilar = __webpack_require__(148);\n\t\n\tvar localeManager = LocaleHelpers.localeManager,\n\t hasOwn = coreUtilityAliases.hasOwn,\n\t getOwn = coreUtilityAliases.getOwn,\n\t forEachProperty = coreUtilityAliases.forEachProperty,\n\t sugarDate = namespaceAliases.sugarDate;\n\t\n\tvar ldmlTokens, strfTokens;\n\t\n\tfunction buildDateFormatTokens() {\n\t\n\t function addFormats(target, tokens, fn) {\n\t if (tokens) {\n\t forEach(spaceSplit(tokens), function(token) {\n\t target[token] = fn;\n\t });\n\t }\n\t }\n\t\n\t function buildLowercase(get) {\n\t return function(d, localeCode) {\n\t return get(d, localeCode).toLowerCase();\n\t };\n\t }\n\t\n\t function buildOrdinal(get) {\n\t return function(d, localeCode) {\n\t var n = get(d, localeCode);\n\t return n + localeManager.get(localeCode).getOrdinal(n);\n\t };\n\t }\n\t\n\t function buildPadded(get, padding) {\n\t return function(d, localeCode) {\n\t return padNumber(get(d, localeCode), padding);\n\t };\n\t }\n\t\n\t function buildTwoDigits(get) {\n\t return function(d, localeCode) {\n\t return get(d, localeCode) % 100;\n\t };\n\t }\n\t\n\t function buildAlias(alias) {\n\t return function(d, localeCode) {\n\t return dateFormatMatcher(alias, d, localeCode);\n\t };\n\t }\n\t\n\t function buildAlternates(f) {\n\t for (var n = 1; n <= 5; n++) {\n\t buildAlternate(f, n);\n\t }\n\t }\n\t\n\t function buildAlternate(f, n) {\n\t var alternate = function(d, localeCode) {\n\t return f.get(d, localeCode, n);\n\t };\n\t addFormats(ldmlTokens, f.ldml + n, alternate);\n\t if (f.lowerToken) {\n\t ldmlTokens[f.lowerToken + n] = buildLowercase(alternate);\n\t }\n\t }\n\t\n\t function getIdentityFormat(name) {\n\t return function(d, localeCode) {\n\t var loc = localeManager.get(localeCode);\n\t return dateFormatMatcher(loc[name], d, localeCode);\n\t };\n\t }\n\t\n\t ldmlTokens = {};\n\t strfTokens = {};\n\t\n\t forEach(FormatTokensBase, function(f) {\n\t var get = f.get, getPadded;\n\t if (f.lowerToken) {\n\t ldmlTokens[f.lowerToken] = buildLowercase(get);\n\t }\n\t if (f.ordinalToken) {\n\t ldmlTokens[f.ordinalToken] = buildOrdinal(get, f);\n\t }\n\t if (f.ldmlPaddedToken) {\n\t ldmlTokens[f.ldmlPaddedToken] = buildPadded(get, f.ldmlPaddedToken.length);\n\t }\n\t if (f.ldmlTwoDigitToken) {\n\t ldmlTokens[f.ldmlTwoDigitToken] = buildPadded(buildTwoDigits(get), 2);\n\t }\n\t if (f.strfTwoDigitToken) {\n\t strfTokens[f.strfTwoDigitToken] = buildPadded(buildTwoDigits(get), 2);\n\t }\n\t if (f.strfPadding) {\n\t getPadded = buildPadded(get, f.strfPadding);\n\t }\n\t if (f.alias) {\n\t get = buildAlias(f.alias);\n\t }\n\t if (f.allowAlternates) {\n\t buildAlternates(f);\n\t }\n\t addFormats(ldmlTokens, f.ldml, get);\n\t addFormats(strfTokens, f.strf, getPadded || get);\n\t });\n\t\n\t forEachProperty(CoreOutputFormats, function(src, name) {\n\t addFormats(ldmlTokens, name, buildAlias(src));\n\t });\n\t\n\t defineInstanceSimilar(sugarDate, 'short medium long full', function(methods, name) {\n\t var fn = getIdentityFormat(name);\n\t addFormats(ldmlTokens, name, fn);\n\t methods[name] = fn;\n\t });\n\t\n\t addFormats(ldmlTokens, 'time', getIdentityFormat('time'));\n\t addFormats(ldmlTokens, 'stamp', getIdentityFormat('stamp'));\n\t}\n\t\n\tvar dateFormatMatcher;\n\t\n\tfunction buildDateFormatMatcher() {\n\t\n\t function getLdml(d, token, localeCode) {\n\t return getOwn(ldmlTokens, token)(d, localeCode);\n\t }\n\t\n\t function getStrf(d, token, localeCode) {\n\t return getOwn(strfTokens, token)(d, localeCode);\n\t }\n\t\n\t function checkDateToken(ldml, strf) {\n\t return hasOwn(ldmlTokens, ldml) || hasOwn(strfTokens, strf);\n\t }\n\t\n\t // Format matcher for LDML or STRF tokens.\n\t dateFormatMatcher = createFormatMatcher(getLdml, getStrf, checkDateToken);\n\t}\n\t\n\tbuildDateFormatTokens();\n\t\n\tbuildDateFormatMatcher();\n\t\n\tmodule.exports = {\n\t ldmlTokens: ldmlTokens,\n\t strfTokens: strfTokens,\n\t dateFormatMatcher: dateFormatMatcher\n\t};\n\n/***/ },\n/* 272 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar TIMEZONE_ABBREVIATION_REG = __webpack_require__(273),\n\t LocaleHelpers = __webpack_require__(35),\n\t DateUnitIndexes = __webpack_require__(82),\n\t trunc = __webpack_require__(89),\n\t getDate = __webpack_require__(105),\n\t getYear = __webpack_require__(76),\n\t getHours = __webpack_require__(274),\n\t getMonth = __webpack_require__(81),\n\t cloneDate = __webpack_require__(121),\n\t padNumber = __webpack_require__(275),\n\t getWeekday = __webpack_require__(106),\n\t callDateGet = __webpack_require__(77),\n\t mathAliases = __webpack_require__(69),\n\t getWeekYear = __webpack_require__(277),\n\t getUTCOffset = __webpack_require__(279),\n\t getDaysSince = __webpack_require__(280),\n\t getWeekNumber = __webpack_require__(278),\n\t getMeridiemToken = __webpack_require__(281),\n\t setUnitAndLowerToEdge = __webpack_require__(99);\n\t\n\tvar localeManager = LocaleHelpers.localeManager,\n\t MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,\n\t ceil = mathAliases.ceil;\n\t\n\tvar FormatTokensBase = [\n\t {\n\t ldml: 'Dow',\n\t strf: 'a',\n\t lowerToken: 'dow',\n\t get: function(d, localeCode) {\n\t return localeManager.get(localeCode).getWeekdayName(getWeekday(d), 2);\n\t }\n\t },\n\t {\n\t ldml: 'Weekday',\n\t strf: 'A',\n\t lowerToken: 'weekday',\n\t allowAlternates: true,\n\t get: function(d, localeCode, alternate) {\n\t return localeManager.get(localeCode).getWeekdayName(getWeekday(d), alternate);\n\t }\n\t },\n\t {\n\t ldml: 'Mon',\n\t strf: 'b h',\n\t lowerToken: 'mon',\n\t get: function(d, localeCode) {\n\t return localeManager.get(localeCode).getMonthName(getMonth(d), 2);\n\t }\n\t },\n\t {\n\t ldml: 'Month',\n\t strf: 'B',\n\t lowerToken: 'month',\n\t allowAlternates: true,\n\t get: function(d, localeCode, alternate) {\n\t return localeManager.get(localeCode).getMonthName(getMonth(d), alternate);\n\t }\n\t },\n\t {\n\t strf: 'C',\n\t get: function(d) {\n\t return getYear(d).toString().slice(0, 2);\n\t }\n\t },\n\t {\n\t ldml: 'd date day',\n\t strf: 'd',\n\t strfPadding: 2,\n\t ldmlPaddedToken: 'dd',\n\t ordinalToken: 'do',\n\t get: function(d) {\n\t return getDate(d);\n\t }\n\t },\n\t {\n\t strf: 'e',\n\t get: function(d) {\n\t return padNumber(getDate(d), 2, false, 10, ' ');\n\t }\n\t },\n\t {\n\t ldml: 'H 24hr',\n\t strf: 'H',\n\t strfPadding: 2,\n\t ldmlPaddedToken: 'HH',\n\t get: function(d) {\n\t return getHours(d);\n\t }\n\t },\n\t {\n\t ldml: 'h hours 12hr',\n\t strf: 'I',\n\t strfPadding: 2,\n\t ldmlPaddedToken: 'hh',\n\t get: function(d) {\n\t return getHours(d) % 12 || 12;\n\t }\n\t },\n\t {\n\t ldml: 'D',\n\t strf: 'j',\n\t strfPadding: 3,\n\t ldmlPaddedToken: 'DDD',\n\t get: function(d) {\n\t var s = setUnitAndLowerToEdge(cloneDate(d), MONTH_INDEX);\n\t return getDaysSince(d, s) + 1;\n\t }\n\t },\n\t {\n\t ldml: 'M',\n\t strf: 'm',\n\t strfPadding: 2,\n\t ordinalToken: 'Mo',\n\t ldmlPaddedToken: 'MM',\n\t get: function(d) {\n\t return getMonth(d) + 1;\n\t }\n\t },\n\t {\n\t ldml: 'm minutes',\n\t strf: 'M',\n\t strfPadding: 2,\n\t ldmlPaddedToken: 'mm',\n\t get: function(d) {\n\t return callDateGet(d, 'Minutes');\n\t }\n\t },\n\t {\n\t ldml: 'Q',\n\t get: function(d) {\n\t return ceil((getMonth(d) + 1) / 3);\n\t }\n\t },\n\t {\n\t ldml: 'TT',\n\t strf: 'p',\n\t get: function(d, localeCode) {\n\t return getMeridiemToken(d, localeCode);\n\t }\n\t },\n\t {\n\t ldml: 'tt',\n\t strf: 'P',\n\t get: function(d, localeCode) {\n\t return getMeridiemToken(d, localeCode).toLowerCase();\n\t }\n\t },\n\t {\n\t ldml: 'T',\n\t lowerToken: 't',\n\t get: function(d, localeCode) {\n\t return getMeridiemToken(d, localeCode).charAt(0);\n\t }\n\t },\n\t {\n\t ldml: 's seconds',\n\t strf: 'S',\n\t strfPadding: 2,\n\t ldmlPaddedToken: 'ss',\n\t get: function(d) {\n\t return callDateGet(d, 'Seconds');\n\t }\n\t },\n\t {\n\t ldml: 'S ms',\n\t strfPadding: 3,\n\t ldmlPaddedToken: 'SSS',\n\t get: function(d) {\n\t return callDateGet(d, 'Milliseconds');\n\t }\n\t },\n\t {\n\t ldml: 'e',\n\t strf: 'u',\n\t ordinalToken: 'eo',\n\t get: function(d) {\n\t return getWeekday(d) || 7;\n\t }\n\t },\n\t {\n\t strf: 'U',\n\t strfPadding: 2,\n\t get: function(d) {\n\t // Sunday first, 0-53\n\t return getWeekNumber(d, false, 0);\n\t }\n\t },\n\t {\n\t ldml: 'W',\n\t strf: 'V',\n\t strfPadding: 2,\n\t ordinalToken: 'Wo',\n\t ldmlPaddedToken: 'WW',\n\t get: function(d) {\n\t // Monday first, 1-53 (ISO8601)\n\t return getWeekNumber(d, true);\n\t }\n\t },\n\t {\n\t strf: 'w',\n\t get: function(d) {\n\t return getWeekday(d);\n\t }\n\t },\n\t {\n\t ldml: 'w',\n\t ordinalToken: 'wo',\n\t ldmlPaddedToken: 'ww',\n\t get: function(d, localeCode) {\n\t // Locale dependent, 1-53\n\t var loc = localeManager.get(localeCode),\n\t dow = loc.getFirstDayOfWeek(localeCode),\n\t doy = loc.getFirstDayOfWeekYear(localeCode);\n\t return getWeekNumber(d, true, dow, doy);\n\t }\n\t },\n\t {\n\t strf: 'W',\n\t strfPadding: 2,\n\t get: function(d) {\n\t // Monday first, 0-53\n\t return getWeekNumber(d, false);\n\t }\n\t },\n\t {\n\t ldmlPaddedToken: 'gggg',\n\t ldmlTwoDigitToken: 'gg',\n\t get: function(d, localeCode) {\n\t return getWeekYear(d, localeCode);\n\t }\n\t },\n\t {\n\t strf: 'G',\n\t strfPadding: 4,\n\t strfTwoDigitToken: 'g',\n\t ldmlPaddedToken: 'GGGG',\n\t ldmlTwoDigitToken: 'GG',\n\t get: function(d, localeCode) {\n\t return getWeekYear(d, localeCode, true);\n\t }\n\t },\n\t {\n\t ldml: 'year',\n\t ldmlPaddedToken: 'yyyy',\n\t ldmlTwoDigitToken: 'yy',\n\t strf: 'Y',\n\t strfPadding: 4,\n\t strfTwoDigitToken: 'y',\n\t get: function(d) {\n\t return getYear(d);\n\t }\n\t },\n\t {\n\t ldml: 'ZZ',\n\t strf: 'z',\n\t get: function(d) {\n\t return getUTCOffset(d);\n\t }\n\t },\n\t {\n\t ldml: 'X',\n\t get: function(d) {\n\t return trunc(d.getTime() / 1000);\n\t }\n\t },\n\t {\n\t ldml: 'x',\n\t get: function(d) {\n\t return d.getTime();\n\t }\n\t },\n\t {\n\t ldml: 'Z',\n\t get: function(d) {\n\t return getUTCOffset(d, true);\n\t }\n\t },\n\t {\n\t ldml: 'z',\n\t strf: 'Z',\n\t get: function(d) {\n\t // Note that this is not accurate in all browsing environments!\n\t // https://github.com/moment/moment/issues/162\n\t // It will continue to be supported for Node and usage with the\n\t // understanding that it may be blank.\n\t var match = d.toString().match(TIMEZONE_ABBREVIATION_REG);\n\t return match ? match[1]: '';\n\t }\n\t },\n\t {\n\t strf: 'D',\n\t alias: '%m/%d/%y'\n\t },\n\t {\n\t strf: 'F',\n\t alias: '%Y-%m-%d'\n\t },\n\t {\n\t strf: 'r',\n\t alias: '%I:%M:%S %p'\n\t },\n\t {\n\t strf: 'R',\n\t alias: '%H:%M'\n\t },\n\t {\n\t strf: 'T',\n\t alias: '%H:%M:%S'\n\t },\n\t {\n\t strf: 'x',\n\t alias: '{short}'\n\t },\n\t {\n\t strf: 'X',\n\t alias: '{time}'\n\t },\n\t {\n\t strf: 'c',\n\t alias: '{stamp}'\n\t }\n\t];\n\t\n\tmodule.exports = FormatTokensBase;\n\n/***/ },\n/* 273 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = /(\\w{3})[()\\s\\d]*$/;\n\n/***/ },\n/* 274 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar callDateGet = __webpack_require__(77);\n\t\n\tfunction getHours(d) {\n\t return callDateGet(d, 'Hours');\n\t}\n\t\n\tmodule.exports = getHours;\n\n/***/ },\n/* 275 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar mathAliases = __webpack_require__(69),\n\t repeatString = __webpack_require__(276);\n\t\n\tvar abs = mathAliases.abs;\n\t\n\tfunction padNumber(num, place, sign, base, replacement) {\n\t var str = abs(num).toString(base || 10);\n\t str = repeatString(replacement || '0', place - str.replace(/\\.\\d+/, '').length) + str;\n\t if (sign || num < 0) {\n\t str = (num < 0 ? '-' : '+') + str;\n\t }\n\t return str;\n\t}\n\t\n\tmodule.exports = padNumber;\n\n/***/ },\n/* 276 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction repeatString(str, num) {\n\t var result = '';\n\t str = str.toString();\n\t while (num > 0) {\n\t if (num & 1) {\n\t result += str;\n\t }\n\t if (num >>= 1) {\n\t str += str;\n\t }\n\t }\n\t return result;\n\t}\n\t\n\tmodule.exports = repeatString;\n\n/***/ },\n/* 277 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t getYear = __webpack_require__(76),\n\t getMonth = __webpack_require__(81),\n\t getWeekNumber = __webpack_require__(278);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tfunction getWeekYear(d, localeCode, iso) {\n\t var year, month, firstDayOfWeek, firstDayOfWeekYear, week, loc;\n\t year = getYear(d);\n\t month = getMonth(d);\n\t if (month === 0 || month === 11) {\n\t if (!iso) {\n\t loc = localeManager.get(localeCode);\n\t firstDayOfWeek = loc.getFirstDayOfWeek(localeCode);\n\t firstDayOfWeekYear = loc.getFirstDayOfWeekYear(localeCode);\n\t }\n\t week = getWeekNumber(d, false, firstDayOfWeek, firstDayOfWeekYear);\n\t if (month === 0 && week === 0) {\n\t year -= 1;\n\t } else if (month === 11 && week === 1) {\n\t year += 1;\n\t }\n\t }\n\t return year;\n\t}\n\t\n\tmodule.exports = getWeekYear;\n\n/***/ },\n/* 278 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar ISODefaults = __webpack_require__(47),\n\t setDate = __webpack_require__(104),\n\t getDate = __webpack_require__(105),\n\t cloneDate = __webpack_require__(121),\n\t isUndefined = __webpack_require__(68),\n\t moveToEndOfWeek = __webpack_require__(130),\n\t moveToBeginningOfWeek = __webpack_require__(123),\n\t moveToFirstDayOfWeekYear = __webpack_require__(122);\n\t\n\tvar ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,\n\t ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR;\n\t\n\tfunction getWeekNumber(d, allowPrevious, firstDayOfWeek, firstDayOfWeekYear) {\n\t var isoWeek, n = 0;\n\t if (isUndefined(firstDayOfWeek)) {\n\t firstDayOfWeek = ISO_FIRST_DAY_OF_WEEK;\n\t }\n\t if (isUndefined(firstDayOfWeekYear)) {\n\t firstDayOfWeekYear = ISO_FIRST_DAY_OF_WEEK_YEAR;\n\t }\n\t // Moving to the end of the week allows for forward year traversal, ie\n\t // Dec 29 2014 is actually week 01 of 2015.\n\t isoWeek = moveToEndOfWeek(cloneDate(d), firstDayOfWeek);\n\t moveToFirstDayOfWeekYear(isoWeek, firstDayOfWeek, firstDayOfWeekYear);\n\t if (allowPrevious && d < isoWeek) {\n\t // If the date is still before the start of the year, then it should be\n\t // the last week of the previous year, ie Jan 1 2016 is actually week 53\n\t // of 2015, so move to the beginning of the week to traverse the year.\n\t isoWeek = moveToBeginningOfWeek(cloneDate(d), firstDayOfWeek);\n\t moveToFirstDayOfWeekYear(isoWeek, firstDayOfWeek, firstDayOfWeekYear);\n\t }\n\t while (isoWeek <= d) {\n\t // Doing a very simple walk to get the week number.\n\t setDate(isoWeek, getDate(isoWeek) + 7);\n\t n++;\n\t }\n\t return n;\n\t}\n\t\n\tmodule.exports = getWeekNumber;\n\n/***/ },\n/* 279 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _utc = __webpack_require__(78),\n\t trunc = __webpack_require__(89),\n\t tzOffset = __webpack_require__(97),\n\t padNumber = __webpack_require__(275),\n\t mathAliases = __webpack_require__(69);\n\t\n\tvar abs = mathAliases.abs;\n\t\n\tfunction getUTCOffset(d, iso) {\n\t var offset = _utc(d) ? 0 : tzOffset(d), hours, mins, colon;\n\t colon = iso === true ? ':' : '';\n\t if (!offset && iso) return 'Z';\n\t hours = padNumber(trunc(-offset / 60), 2, true);\n\t mins = padNumber(abs(offset % 60), 2);\n\t return hours + colon + mins;\n\t}\n\t\n\tmodule.exports = getUTCOffset;\n\n/***/ },\n/* 280 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DateUnits = __webpack_require__(74),\n\t DateUnitIndexes = __webpack_require__(82),\n\t getTimeDistanceForUnit = __webpack_require__(239);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\t\n\tfunction getDaysSince(d1, d2) {\n\t return getTimeDistanceForUnit(d1, d2, DateUnits[DAY_INDEX]);\n\t}\n\t\n\tmodule.exports = getDaysSince;\n\n/***/ },\n/* 281 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t trunc = __webpack_require__(89),\n\t getHours = __webpack_require__(274);\n\t\n\tvar localeManager = LocaleHelpers.localeManager;\n\t\n\tfunction getMeridiemToken(d, localeCode) {\n\t var hours = getHours(d);\n\t return localeManager.get(localeCode).ampm[trunc(hours / 12)] || '';\n\t}\n\t\n\tmodule.exports = getMeridiemToken;\n\n/***/ },\n/* 282 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar STRING_FORMAT_REG = __webpack_require__(283),\n\t CommonChars = __webpack_require__(59),\n\t memoizeFunction = __webpack_require__(284);\n\t\n\tvar OPEN_BRACE = CommonChars.OPEN_BRACE,\n\t CLOSE_BRACE = CommonChars.CLOSE_BRACE;\n\t\n\tfunction createFormatMatcher(bracketMatcher, percentMatcher, precheck) {\n\t\n\t var reg = STRING_FORMAT_REG;\n\t var compileMemoized = memoizeFunction(compile);\n\t\n\t function getToken(format, match) {\n\t var get, token, literal, fn;\n\t var bKey = match[2];\n\t var pLit = match[3];\n\t var pKey = match[5];\n\t if (match[4] && percentMatcher) {\n\t token = pKey;\n\t get = percentMatcher;\n\t } else if (bKey) {\n\t token = bKey;\n\t get = bracketMatcher;\n\t } else if (pLit && percentMatcher) {\n\t literal = pLit;\n\t } else {\n\t literal = match[1] || match[0];\n\t }\n\t if (get) {\n\t assertPassesPrecheck(precheck, bKey, pKey);\n\t fn = function(obj, opt) {\n\t return get(obj, token, opt);\n\t };\n\t }\n\t format.push(fn || getLiteral(literal));\n\t }\n\t\n\t function getSubstring(format, str, start, end) {\n\t if (end > start) {\n\t var sub = str.slice(start, end);\n\t assertNoUnmatched(sub, OPEN_BRACE);\n\t assertNoUnmatched(sub, CLOSE_BRACE);\n\t format.push(function() {\n\t return sub;\n\t });\n\t }\n\t }\n\t\n\t function getLiteral(str) {\n\t return function() {\n\t return str;\n\t };\n\t }\n\t\n\t function assertPassesPrecheck(precheck, bt, pt) {\n\t if (precheck && !precheck(bt, pt)) {\n\t throw new TypeError('Invalid token '+ (bt || pt) +' in format string');\n\t }\n\t }\n\t\n\t function assertNoUnmatched(str, chr) {\n\t if (str.indexOf(chr) !== -1) {\n\t throw new TypeError('Unmatched '+ chr +' in format string');\n\t }\n\t }\n\t\n\t function compile(str) {\n\t var format = [], lastIndex = 0, match;\n\t reg.lastIndex = 0;\n\t while(match = reg.exec(str)) {\n\t getSubstring(format, str, lastIndex, match.index);\n\t getToken(format, match);\n\t lastIndex = reg.lastIndex;\n\t }\n\t getSubstring(format, str, lastIndex, str.length);\n\t return format;\n\t }\n\t\n\t return function(str, obj, opt) {\n\t var format = compileMemoized(str), result = '';\n\t for (var i = 0; i < format.length; i++) {\n\t result += format[i](obj, opt);\n\t }\n\t return result;\n\t };\n\t}\n\t\n\tmodule.exports = createFormatMatcher;\n\n/***/ },\n/* 283 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = /([{}])\\1|\\{([^}]*)\\}|(%)%|(%(\\w*))/g;\n\n/***/ },\n/* 284 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar INTERNAL_MEMOIZE_LIMIT = __webpack_require__(285),\n\t coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar hasOwn = coreUtilityAliases.hasOwn;\n\t\n\tfunction memoizeFunction(fn) {\n\t var memo = {}, counter = 0;\n\t\n\t return function(key) {\n\t if (hasOwn(memo, key)) {\n\t return memo[key];\n\t }\n\t if (counter === INTERNAL_MEMOIZE_LIMIT) {\n\t memo = {};\n\t counter = 0;\n\t }\n\t counter++;\n\t return memo[key] = fn(key);\n\t };\n\t}\n\t\n\tmodule.exports = memoizeFunction;\n\n/***/ },\n/* 285 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = 1000;\n\n/***/ },\n/* 286 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar dateIsValid = __webpack_require__(236);\n\t\n\tfunction assertDateIsValid(d) {\n\t if (!dateIsValid(d)) {\n\t throw new TypeError('Date is not valid');\n\t }\n\t}\n\t\n\tmodule.exports = assertDateIsValid;\n\n/***/ },\n/* 287 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t createDateWithContext = __webpack_require__(238);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'get': function(date, d, options) {\n\t return createDateWithContext(date, d, options);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.get;\n\n/***/ },\n/* 288 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t getWeekNumber = __webpack_require__(278);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'getISOWeek': function(date) {\n\t return getWeekNumber(date, true);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getISOWeek;\n\n/***/ },\n/* 289 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t getUTCOffset = __webpack_require__(279);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'getUTCOffset': function(date, iso) {\n\t return getUTCOffset(date, iso);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getUTCOffset;\n\n/***/ },\n/* 290 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'getUTCWeekday': function(date) {\n\t return date.getUTCDay();\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getUTCWeekday;\n\n/***/ },\n/* 291 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t getWeekday = __webpack_require__(106);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'getWeekday': function(date) {\n\t return getWeekday(date);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.getWeekday;\n\n/***/ },\n/* 292 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.hoursAgo;\n\n/***/ },\n/* 293 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.hoursFromNow;\n\n/***/ },\n/* 294 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.hoursSince;\n\n/***/ },\n/* 295 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.hoursUntil;\n\n/***/ },\n/* 296 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t fullCompareDate = __webpack_require__(297);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'is': function(date, d, margin) {\n\t return fullCompareDate(date, d, margin);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.is;\n\n/***/ },\n/* 297 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t trim = __webpack_require__(298),\n\t getMonth = __webpack_require__(81),\n\t isDefined = __webpack_require__(57),\n\t getNewDate = __webpack_require__(108),\n\t compareDay = __webpack_require__(299),\n\t getWeekday = __webpack_require__(106),\n\t dateIsValid = __webpack_require__(236),\n\t classChecks = __webpack_require__(60),\n\t compareDate = __webpack_require__(235);\n\t\n\tvar isString = classChecks.isString,\n\t English = LocaleHelpers.English;\n\t\n\tfunction fullCompareDate(date, d, margin) {\n\t var tmp;\n\t if (!dateIsValid(date)) return;\n\t if (isString(d)) {\n\t d = trim(d).toLowerCase();\n\t switch(true) {\n\t case d === 'future': return date.getTime() > getNewDate().getTime();\n\t case d === 'past': return date.getTime() < getNewDate().getTime();\n\t case d === 'today': return compareDay(date);\n\t case d === 'tomorrow': return compareDay(date, 1);\n\t case d === 'yesterday': return compareDay(date, -1);\n\t case d === 'weekday': return getWeekday(date) > 0 && getWeekday(date) < 6;\n\t case d === 'weekend': return getWeekday(date) === 0 || getWeekday(date) === 6;\n\t\n\t case (isDefined(tmp = English.weekdayMap[d])):\n\t return getWeekday(date) === tmp;\n\t case (isDefined(tmp = English.monthMap[d])):\n\t return getMonth(date) === tmp;\n\t }\n\t }\n\t return compareDate(date, d, margin);\n\t}\n\t\n\tmodule.exports = fullCompareDate;\n\n/***/ },\n/* 298 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction trim(str) {\n\t return str.trim();\n\t}\n\t\n\tmodule.exports = trim;\n\n/***/ },\n/* 299 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar setDate = __webpack_require__(104),\n\t getDate = __webpack_require__(105),\n\t getYear = __webpack_require__(76),\n\t getMonth = __webpack_require__(81),\n\t getNewDate = __webpack_require__(108);\n\t\n\tfunction compareDay(d, shift) {\n\t var comp = getNewDate();\n\t if (shift) {\n\t setDate(comp, getDate(comp) + shift);\n\t }\n\t return getYear(d) === getYear(comp) &&\n\t getMonth(d) === getMonth(comp) &&\n\t getDate(d) === getDate(comp);\n\t}\n\t\n\tmodule.exports = compareDay;\n\n/***/ },\n/* 300 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t createDate = __webpack_require__(94);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'isAfter': function(date, d, margin) {\n\t return date.getTime() > createDate(d).getTime() - (margin || 0);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.isAfter;\n\n/***/ },\n/* 301 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t createDate = __webpack_require__(94);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'isBefore': function(date, d, margin) {\n\t return date.getTime() < createDate(d).getTime() + (margin || 0);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.isBefore;\n\n/***/ },\n/* 302 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t createDate = __webpack_require__(94),\n\t mathAliases = __webpack_require__(69);\n\t\n\tvar min = mathAliases.min,\n\t max = mathAliases.max;\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'isBetween': function(date, d1, d2, margin) {\n\t var t = date.getTime();\n\t var t1 = createDate(d1).getTime();\n\t var t2 = createDate(d2).getTime();\n\t var lo = min(t1, t2);\n\t var hi = max(t1, t2);\n\t margin = margin || 0;\n\t return (lo - margin <= t) && (hi + margin >= t);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.isBetween;\n\n/***/ },\n/* 303 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isFriday;\n\n/***/ },\n/* 304 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar buildRelativeAliases = __webpack_require__(305);\n\t\n\tbuildRelativeAliases();\n\n/***/ },\n/* 305 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t spaceSplit = __webpack_require__(63),\n\t fullCompareDate = __webpack_require__(297),\n\t namespaceAliases = __webpack_require__(112),\n\t defineInstanceSimilar = __webpack_require__(148);\n\t\n\tvar English = LocaleHelpers.English,\n\t sugarDate = namespaceAliases.sugarDate;\n\t\n\tfunction buildRelativeAliases() {\n\t var special = spaceSplit('Today Yesterday Tomorrow Weekday Weekend Future Past');\n\t var weekdays = English.weekdays.slice(0, 7);\n\t var months = English.months.slice(0, 12);\n\t var together = special.concat(weekdays).concat(months);\n\t defineInstanceSimilar(sugarDate, together, function(methods, name) {\n\t methods['is'+ name] = function(d) {\n\t return fullCompareDate(d, name);\n\t };\n\t });\n\t}\n\t\n\tmodule.exports = buildRelativeAliases;\n\n/***/ },\n/* 306 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isFuture;\n\n/***/ },\n/* 307 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isLastMonth;\n\n/***/ },\n/* 308 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isLastWeek;\n\n/***/ },\n/* 309 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isLastYear;\n\n/***/ },\n/* 310 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t getYear = __webpack_require__(76);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'isLeapYear': function(date) {\n\t var year = getYear(date);\n\t return (year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.isLeapYear;\n\n/***/ },\n/* 311 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isMonday;\n\n/***/ },\n/* 312 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isNextMonth;\n\n/***/ },\n/* 313 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isNextWeek;\n\n/***/ },\n/* 314 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isNextYear;\n\n/***/ },\n/* 315 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isPast;\n\n/***/ },\n/* 316 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isSaturday;\n\n/***/ },\n/* 317 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isSunday;\n\n/***/ },\n/* 318 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isThisMonth;\n\n/***/ },\n/* 319 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isThisWeek;\n\n/***/ },\n/* 320 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.isThisYear;\n\n/***/ },\n/* 321 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isThursday;\n\n/***/ },\n/* 322 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isToday;\n\n/***/ },\n/* 323 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isTomorrow;\n\n/***/ },\n/* 324 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isTuesday;\n\n/***/ },\n/* 325 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t isUTC = __webpack_require__(326);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'isUTC': function(date) {\n\t return isUTC(date);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.isUTC;\n\n/***/ },\n/* 326 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _utc = __webpack_require__(78),\n\t tzOffset = __webpack_require__(97);\n\t\n\tfunction isUTC(d) {\n\t return !!_utc(d) || tzOffset(d) === 0;\n\t}\n\t\n\tmodule.exports = isUTC;\n\n/***/ },\n/* 327 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t dateIsValid = __webpack_require__(236);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'isValid': function(date) {\n\t return dateIsValid(date);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.isValid;\n\n/***/ },\n/* 328 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isWednesday;\n\n/***/ },\n/* 329 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isWeekday;\n\n/***/ },\n/* 330 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isWeekend;\n\n/***/ },\n/* 331 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(304);\n\t\n\tmodule.exports = Sugar.Date.isYesterday;\n\n/***/ },\n/* 332 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'iso': function(date) {\n\t return date.toISOString();\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.iso;\n\n/***/ },\n/* 333 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.millisecondsAgo;\n\n/***/ },\n/* 334 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.millisecondsFromNow;\n\n/***/ },\n/* 335 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.millisecondsSince;\n\n/***/ },\n/* 336 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.millisecondsUntil;\n\n/***/ },\n/* 337 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.minutesAgo;\n\n/***/ },\n/* 338 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.minutesFromNow;\n\n/***/ },\n/* 339 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.minutesSince;\n\n/***/ },\n/* 340 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.minutesUntil;\n\n/***/ },\n/* 341 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.monthsAgo;\n\n/***/ },\n/* 342 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.monthsFromNow;\n\n/***/ },\n/* 343 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.monthsSince;\n\n/***/ },\n/* 344 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.monthsUntil;\n\n/***/ },\n/* 345 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t dateRelative = __webpack_require__(346);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'relative': function(date, localeCode, fn) {\n\t return dateRelative(date, null, localeCode, fn);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.relative;\n\n/***/ },\n/* 346 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar LocaleHelpers = __webpack_require__(35),\n\t dateFormat = __webpack_require__(269),\n\t classChecks = __webpack_require__(60),\n\t assertDateIsValid = __webpack_require__(286),\n\t getAdjustedUnitForDate = __webpack_require__(347);\n\t\n\tvar isFunction = classChecks.isFunction,\n\t localeManager = LocaleHelpers.localeManager;\n\t\n\tfunction dateRelative(d, dRelative, arg1, arg2) {\n\t var adu, format, type, localeCode, fn;\n\t assertDateIsValid(d);\n\t if (isFunction(arg1)) {\n\t fn = arg1;\n\t } else {\n\t localeCode = arg1;\n\t fn = arg2;\n\t }\n\t adu = getAdjustedUnitForDate(d, dRelative);\n\t if (fn) {\n\t format = fn.apply(d, adu.concat(localeManager.get(localeCode)));\n\t if (format) {\n\t return dateFormat(d, format, localeCode);\n\t }\n\t }\n\t // Adjust up if time is in ms, as this doesn't\n\t // look very good for a standard relative date.\n\t if (adu[1] === 0) {\n\t adu[1] = 1;\n\t adu[0] = 1;\n\t }\n\t if (dRelative) {\n\t type = 'duration';\n\t } else if (adu[2] > 0) {\n\t type = 'future';\n\t } else {\n\t type = 'past';\n\t }\n\t return localeManager.get(localeCode).getRelativeFormat(adu, type);\n\t}\n\t\n\tmodule.exports = dateRelative;\n\n/***/ },\n/* 347 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar getNewDate = __webpack_require__(108),\n\t mathAliases = __webpack_require__(69),\n\t getAdjustedUnit = __webpack_require__(91),\n\t getTimeDistanceForUnit = __webpack_require__(239);\n\t\n\tvar abs = mathAliases.abs;\n\t\n\tfunction getAdjustedUnitForDate(d, dRelative) {\n\t var ms;\n\t if (!dRelative) {\n\t dRelative = getNewDate();\n\t if (d > dRelative) {\n\t // If our date is greater than the one that we got from getNewDate, it\n\t // means that we are finding the unit for a date that is in the future\n\t // relative to now. However, often the incoming date was created in\n\t // the same cycle as our comparison, but our \"now\" date will have been\n\t // created an instant after it, creating situations where \"5 minutes from\n\t // now\" becomes \"4 minutes from now\" in the same tick. To prevent this,\n\t // subtract a buffer of 10ms to compensate.\n\t dRelative = new Date(dRelative.getTime() - 10);\n\t }\n\t }\n\t ms = d - dRelative;\n\t return getAdjustedUnit(ms, function(u) {\n\t return abs(getTimeDistanceForUnit(d, dRelative, u));\n\t });\n\t}\n\t\n\tmodule.exports = getAdjustedUnitForDate;\n\n/***/ },\n/* 348 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t createDate = __webpack_require__(94),\n\t dateRelative = __webpack_require__(346);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'relativeTo': function(date, d, localeCode) {\n\t return dateRelative(date, createDate(d), localeCode);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.relativeTo;\n\n/***/ },\n/* 349 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t DateUnitIndexes = __webpack_require__(82),\n\t moveToBeginningOfUnit = __webpack_require__(133),\n\t getUnitIndexForParamName = __webpack_require__(350);\n\t\n\tvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'reset': function(date, unit, localeCode) {\n\t var unitIndex = unit ? getUnitIndexForParamName(unit) : DAY_INDEX;\n\t moveToBeginningOfUnit(date, unitIndex, localeCode);\n\t return date;\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.reset;\n\n/***/ },\n/* 350 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar iterateOverDateParams = __webpack_require__(124);\n\t\n\tfunction getUnitIndexForParamName(name) {\n\t var params = {}, unitIndex;\n\t params[name] = 1;\n\t iterateOverDateParams(params, function(name, val, unit, i) {\n\t unitIndex = i;\n\t return false;\n\t });\n\t return unitIndex;\n\t}\n\t\n\tmodule.exports = getUnitIndexForParamName;\n\n/***/ },\n/* 351 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t advanceDateWithArgs = __webpack_require__(248);\n\t\n\tSugar.Date.defineInstanceWithArguments({\n\t\n\t 'rewind': function(d, args) {\n\t return advanceDateWithArgs(d, args, -1);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.rewind;\n\n/***/ },\n/* 352 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.secondsAgo;\n\n/***/ },\n/* 353 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.secondsFromNow;\n\n/***/ },\n/* 354 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.secondsSince;\n\n/***/ },\n/* 355 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.secondsUntil;\n\n/***/ },\n/* 356 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t updateDate = __webpack_require__(107),\n\t collectDateArguments = __webpack_require__(249);\n\t\n\tSugar.Date.defineInstanceWithArguments({\n\t\n\t 'set': function(d, args) {\n\t args = collectDateArguments(args);\n\t return updateDate(d, args[0], args[1]);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.set;\n\n/***/ },\n/* 357 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t setISOWeekNumber = __webpack_require__(118);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'setISOWeek': function(date, num) {\n\t return setISOWeekNumber(date, num);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.setISOWeek;\n\n/***/ },\n/* 358 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t _utc = __webpack_require__(78);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'setUTC': function(date, on) {\n\t return _utc(date, on);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.setUTC;\n\n/***/ },\n/* 359 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t setWeekday = __webpack_require__(103);\n\t\n\tSugar.Date.defineInstance({\n\t\n\t 'setWeekday': function(date, dow) {\n\t return setWeekday(date, dow);\n\t }\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.setWeekday;\n\n/***/ },\n/* 360 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.weeksAgo;\n\n/***/ },\n/* 361 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.weeksFromNow;\n\n/***/ },\n/* 362 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.weeksSince;\n\n/***/ },\n/* 363 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.weeksUntil;\n\n/***/ },\n/* 364 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.yearsAgo;\n\n/***/ },\n/* 365 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.yearsFromNow;\n\n/***/ },\n/* 366 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.yearsSince;\n\n/***/ },\n/* 367 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34);\n\t\n\t__webpack_require__(233);\n\t\n\tmodule.exports = Sugar.Date.yearsUntil;\n\n/***/ },\n/* 368 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t _dateOptions = __webpack_require__(109);\n\t\n\tmodule.exports = Sugar.Date.getOption;\n\n/***/ },\n/* 369 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t _dateOptions = __webpack_require__(109);\n\t\n\tmodule.exports = Sugar.Date.setOption;\n\n/***/ },\n/* 370 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t// Static Methods\n\t__webpack_require__(371);\n\t\n\t// Prototype Methods\n\t__webpack_require__(385);\n\t__webpack_require__(388);\n\t__webpack_require__(389);\n\t__webpack_require__(390);\n\t__webpack_require__(402);\n\t__webpack_require__(403);\n\t__webpack_require__(404);\n\t__webpack_require__(405);\n\t__webpack_require__(406);\n\t__webpack_require__(407);\n\t__webpack_require__(408);\n\t__webpack_require__(409);\n\t__webpack_require__(410);\n\t__webpack_require__(412);\n\t__webpack_require__(413);\n\t__webpack_require__(414);\n\t__webpack_require__(415);\n\t__webpack_require__(416);\n\t\n\tmodule.exports = __webpack_require__(34);\n\n/***/ },\n/* 371 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Sugar = __webpack_require__(34),\n\t DateRangeConstructor = __webpack_require__(372);\n\t\n\tSugar.Date.defineStatic({\n\t\n\t 'range': DateRangeConstructor\n\t\n\t});\n\t\n\tmodule.exports = Sugar.Date.range;\n\n/***/ },\n/* 372 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t classChecks = __webpack_require__(60),\n\t getDateForRange = __webpack_require__(376),\n\t createDateRangeFromString = __webpack_require__(377);\n\t\n\tvar isString = classChecks.isString;\n\t\n\tvar DateRangeConstructor = function(start, end) {\n\t if (arguments.length === 1 && isString(start)) {\n\t return createDateRangeFromString(start);\n\t }\n\t return new Range(getDateForRange(start), getDateForRange(end));\n\t};\n\t\n\tmodule.exports = DateRangeConstructor;\n\n/***/ },\n/* 373 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar cloneRangeMember = __webpack_require__(374);\n\t\n\tfunction Range(start, end) {\n\t this.start = cloneRangeMember(start);\n\t this.end = cloneRangeMember(end);\n\t}\n\t\n\tmodule.exports = Range;\n\n/***/ },\n/* 374 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60),\n\t getRangeMemberPrimitiveValue = __webpack_require__(375);\n\t\n\tvar isDate = classChecks.isDate;\n\t\n\tfunction cloneRangeMember(m) {\n\t if (isDate(m)) {\n\t return new Date(m.getTime());\n\t } else {\n\t return getRangeMemberPrimitiveValue(m);\n\t }\n\t}\n\t\n\tmodule.exports = cloneRangeMember;\n\n/***/ },\n/* 375 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60);\n\t\n\tvar isDate = classChecks.isDate;\n\t\n\tfunction getRangeMemberPrimitiveValue(m) {\n\t if (m == null) return m;\n\t return isDate(m) ? m.getTime() : m.valueOf();\n\t}\n\t\n\tmodule.exports = getRangeMemberPrimitiveValue;\n\n/***/ },\n/* 376 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60),\n\t namespaceAliases = __webpack_require__(112);\n\t\n\tvar isDate = classChecks.isDate,\n\t sugarDate = namespaceAliases.sugarDate;\n\t\n\tfunction getDateForRange(d) {\n\t if (isDate(d)) {\n\t return d;\n\t } else if (d == null) {\n\t return new Date();\n\t } else if (sugarDate.create) {\n\t return sugarDate.create(d);\n\t }\n\t return new Date(d);\n\t}\n\t\n\tmodule.exports = getDateForRange;\n\n/***/ },\n/* 377 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t DurationTextFormats = __webpack_require__(378),\n\t incrementDate = __webpack_require__(381),\n\t getDateForRange = __webpack_require__(376),\n\t namespaceAliases = __webpack_require__(112),\n\t getDateIncrementObject = __webpack_require__(383);\n\t\n\tvar sugarDate = namespaceAliases.sugarDate,\n\t RANGE_REG_FROM_TO = DurationTextFormats.RANGE_REG_FROM_TO,\n\t RANGE_REG_REAR_DURATION = DurationTextFormats.RANGE_REG_REAR_DURATION,\n\t RANGE_REG_FRONT_DURATION = DurationTextFormats.RANGE_REG_FRONT_DURATION;\n\t\n\tfunction createDateRangeFromString(str) {\n\t var match, datetime, duration, dio, start, end;\n\t if (sugarDate.get && (match = str.match(RANGE_REG_FROM_TO))) {\n\t start = getDateForRange(match[1].replace('from', 'at'));\n\t end = sugarDate.get(start, match[2]);\n\t return new Range(start, end);\n\t }\n\t if (match = str.match(RANGE_REG_FRONT_DURATION)) {\n\t duration = match[1];\n\t datetime = match[2];\n\t }\n\t if (match = str.match(RANGE_REG_REAR_DURATION)) {\n\t datetime = match[1];\n\t duration = match[2];\n\t }\n\t if (datetime && duration) {\n\t start = getDateForRange(datetime);\n\t dio = getDateIncrementObject(duration);\n\t end = incrementDate(start, dio[0], dio[1]);\n\t } else {\n\t start = str;\n\t }\n\t return new Range(getDateForRange(start), getDateForRange(end));\n\t}\n\t\n\tmodule.exports = createDateRangeFromString;\n\n/***/ },\n/* 378 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar FULL_CAPTURED_DURATION = __webpack_require__(379);\n\t\n\tmodule.exports = {\n\t RANGE_REG_FROM_TO: /(?:from)?\\s*(.+)\\s+(?:to|until)\\s+(.+)$/i,\n\t RANGE_REG_REAR_DURATION: RegExp('(.+)\\\\s*for\\\\s*' + FULL_CAPTURED_DURATION, 'i'),\n\t RANGE_REG_FRONT_DURATION: RegExp('(?:for)?\\\\s*'+ FULL_CAPTURED_DURATION +'\\\\s*(?:starting)?\\\\s*at\\\\s*(.+)', 'i')\n\t};\n\n/***/ },\n/* 379 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DURATION_UNITS = __webpack_require__(380);\n\t\n\tmodule.exports = '((?:\\\\d+)?\\\\s*(?:' + DURATION_UNITS + '))s?';\n\n/***/ },\n/* 380 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tmodule.exports = 'year|month|week|day|hour|minute|second|millisecond';\n\n/***/ },\n/* 381 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar MULTIPLIERS = __webpack_require__(382),\n\t callDateSet = __webpack_require__(100),\n\t callDateGet = __webpack_require__(77);\n\t\n\tfunction incrementDate(src, amount, unit) {\n\t var mult = MULTIPLIERS[unit], d;\n\t if (mult) {\n\t d = new Date(src.getTime() + (amount * mult));\n\t } else {\n\t d = new Date(src);\n\t callDateSet(d, unit, callDateGet(src, unit) + amount);\n\t }\n\t return d;\n\t}\n\t\n\tmodule.exports = incrementDate;\n\n/***/ },\n/* 382 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tvar MULTIPLIERS = {\n\t 'Hours': 60 * 60 * 1000,\n\t 'Minutes': 60 * 1000,\n\t 'Seconds': 1000,\n\t 'Milliseconds': 1\n\t};\n\t\n\tmodule.exports = MULTIPLIERS;\n\n/***/ },\n/* 383 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DURATION_REG = __webpack_require__(384),\n\t classChecks = __webpack_require__(60),\n\t simpleCapitalize = __webpack_require__(237);\n\t\n\tvar isNumber = classChecks.isNumber;\n\t\n\tfunction getDateIncrementObject(amt) {\n\t var match, val, unit;\n\t if (isNumber(amt)) {\n\t return [amt, 'Milliseconds'];\n\t }\n\t match = amt.match(DURATION_REG);\n\t val = +match[1] || 1;\n\t unit = simpleCapitalize(match[2].toLowerCase());\n\t if (unit.match(/hour|minute|second/i)) {\n\t unit += 's';\n\t } else if (unit === 'Year') {\n\t unit = 'FullYear';\n\t } else if (unit === 'Week') {\n\t unit = 'Date';\n\t val *= 7;\n\t } else if (unit === 'Day') {\n\t unit = 'Date';\n\t }\n\t return [val, unit];\n\t}\n\t\n\tmodule.exports = getDateIncrementObject;\n\n/***/ },\n/* 384 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar DURATION_UNITS = __webpack_require__(380);\n\t\n\tmodule.exports = RegExp('(\\\\d+)?\\\\s*('+ DURATION_UNITS +')s?', 'i');\n\n/***/ },\n/* 385 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t rangeClamp = __webpack_require__(386),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'clamp': function(obj) {\n\t return rangeClamp(this, obj);\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"clamp\" on Range.prototype.\n\n/***/ },\n/* 386 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar cloneRangeMember = __webpack_require__(374);\n\t\n\tfunction rangeClamp(range, obj) {\n\t var clamped,\n\t start = range.start,\n\t end = range.end,\n\t min = end < start ? end : start,\n\t max = start > end ? start : end;\n\t if (obj < min) {\n\t clamped = min;\n\t } else if (obj > max) {\n\t clamped = max;\n\t } else {\n\t clamped = obj;\n\t }\n\t return cloneRangeMember(clamped);\n\t}\n\t\n\tmodule.exports = rangeClamp;\n\n/***/ },\n/* 387 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar coreUtilityAliases = __webpack_require__(41);\n\t\n\tvar forEachProperty = coreUtilityAliases.forEachProperty;\n\t\n\tfunction defineOnPrototype(ctor, methods) {\n\t var proto = ctor.prototype;\n\t forEachProperty(methods, function(val, key) {\n\t proto[key] = val;\n\t });\n\t}\n\t\n\tmodule.exports = defineOnPrototype;\n\n/***/ },\n/* 388 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'clone': function() {\n\t return new Range(this.start, this.end);\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"clone\" on Range.prototype.\n\n/***/ },\n/* 389 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'contains': function(obj) {\n\t if (obj == null) return false;\n\t if (obj.start && obj.end) {\n\t return obj.start >= this.start && obj.start <= this.end &&\n\t obj.end >= this.start && obj.end <= this.end;\n\t } else {\n\t return obj >= this.start && obj <= this.end;\n\t }\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"contains\" on Range.prototype.\n\n/***/ },\n/* 390 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"days\" on Range.prototype.\n\n/***/ },\n/* 391 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar buildDateRangeUnits = __webpack_require__(392);\n\t\n\tbuildDateRangeUnits();\n\n/***/ },\n/* 392 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar MULTIPLIERS = __webpack_require__(382),\n\t DURATION_UNITS = __webpack_require__(380),\n\t Range = __webpack_require__(373),\n\t trunc = __webpack_require__(89),\n\t forEach = __webpack_require__(53),\n\t rangeEvery = __webpack_require__(393),\n\t simpleCapitalize = __webpack_require__(237),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tfunction buildDateRangeUnits() {\n\t var methods = {};\n\t forEach(DURATION_UNITS.split('|'), function(unit, i) {\n\t var name = unit + 's', mult, fn;\n\t if (i < 4) {\n\t fn = function() {\n\t return rangeEvery(this, unit, true);\n\t };\n\t } else {\n\t mult = MULTIPLIERS[simpleCapitalize(name)];\n\t fn = function() {\n\t return trunc((this.end - this.start) / mult);\n\t };\n\t }\n\t methods[name] = fn;\n\t });\n\t defineOnPrototype(Range, methods);\n\t}\n\t\n\tmodule.exports = buildDateRangeUnits;\n\n/***/ },\n/* 393 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60),\n\t rangeIsValid = __webpack_require__(394),\n\t incrementDate = __webpack_require__(381),\n\t incrementNumber = __webpack_require__(397),\n\t incrementString = __webpack_require__(398),\n\t getGreaterPrecision = __webpack_require__(399),\n\t getDateIncrementObject = __webpack_require__(383);\n\t\n\tvar isNumber = classChecks.isNumber,\n\t isString = classChecks.isString,\n\t isDate = classChecks.isDate,\n\t isFunction = classChecks.isFunction;\n\t\n\tfunction rangeEvery(range, step, countOnly, fn) {\n\t var increment,\n\t precision,\n\t dio,\n\t unit,\n\t start = range.start,\n\t end = range.end,\n\t inverse = end < start,\n\t current = start,\n\t index = 0,\n\t result = [];\n\t\n\t if (!rangeIsValid(range)) {\n\t return [];\n\t }\n\t if (isFunction(step)) {\n\t fn = step;\n\t step = null;\n\t }\n\t step = step || 1;\n\t if (isNumber(start)) {\n\t precision = getGreaterPrecision(start, step);\n\t increment = function() {\n\t return incrementNumber(current, step, precision);\n\t };\n\t } else if (isString(start)) {\n\t increment = function() {\n\t return incrementString(current, step);\n\t };\n\t } else if (isDate(start)) {\n\t dio = getDateIncrementObject(step);\n\t step = dio[0];\n\t unit = dio[1];\n\t increment = function() {\n\t return incrementDate(current, step, unit);\n\t };\n\t }\n\t // Avoiding infinite loops\n\t if (inverse && step > 0) {\n\t step *= -1;\n\t }\n\t while(inverse ? current >= end : current <= end) {\n\t if (!countOnly) {\n\t result.push(current);\n\t }\n\t if (fn) {\n\t fn(current, index, range);\n\t }\n\t current = increment();\n\t index++;\n\t }\n\t return countOnly ? index - 1 : result;\n\t}\n\t\n\tmodule.exports = rangeEvery;\n\n/***/ },\n/* 394 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar isValidRangeMember = __webpack_require__(395);\n\t\n\tfunction rangeIsValid(range) {\n\t return isValidRangeMember(range.start) &&\n\t isValidRangeMember(range.end) &&\n\t typeof range.start === typeof range.end;\n\t}\n\t\n\tmodule.exports = rangeIsValid;\n\n/***/ },\n/* 395 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar valueIsNotInfinite = __webpack_require__(396),\n\t getRangeMemberPrimitiveValue = __webpack_require__(375);\n\t\n\tfunction isValidRangeMember(m) {\n\t var val = getRangeMemberPrimitiveValue(m);\n\t return (!!val || val === 0) && valueIsNotInfinite(m);\n\t}\n\t\n\tmodule.exports = isValidRangeMember;\n\n/***/ },\n/* 396 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tfunction valueIsNotInfinite(m) {\n\t return m !== -Infinity && m !== Infinity;\n\t}\n\t\n\tmodule.exports = valueIsNotInfinite;\n\n/***/ },\n/* 397 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar withPrecision = __webpack_require__(90);\n\t\n\tfunction incrementNumber(current, amount, precision) {\n\t return withPrecision(current + amount, precision);\n\t}\n\t\n\tmodule.exports = incrementNumber;\n\n/***/ },\n/* 398 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar chr = __webpack_require__(86);\n\t\n\tfunction incrementString(current, amount) {\n\t return chr(current.charCodeAt(0) + amount);\n\t}\n\t\n\tmodule.exports = incrementString;\n\n/***/ },\n/* 399 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar mathAliases = __webpack_require__(69),\n\t getPrecision = __webpack_require__(400);\n\t\n\tvar max = mathAliases.max;\n\t\n\tfunction getGreaterPrecision(n1, n2) {\n\t return max(getPrecision(n1), getPrecision(n2));\n\t}\n\t\n\tmodule.exports = getGreaterPrecision;\n\n/***/ },\n/* 400 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar periodSplit = __webpack_require__(401);\n\t\n\tfunction getPrecision(n) {\n\t var split = periodSplit(n.toString());\n\t return split[1] ? split[1].length : 0;\n\t}\n\t\n\tmodule.exports = getPrecision;\n\n/***/ },\n/* 401 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar CommonChars = __webpack_require__(59);\n\t\n\tvar HALF_WIDTH_PERIOD = CommonChars.HALF_WIDTH_PERIOD;\n\t\n\tfunction periodSplit(str) {\n\t return str.split(HALF_WIDTH_PERIOD);\n\t}\n\t\n\tmodule.exports = periodSplit;\n\n/***/ },\n/* 402 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t rangeEvery = __webpack_require__(393),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'every': function(amount, fn) {\n\t return rangeEvery(this, amount, false, fn);\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"every\" on Range.prototype.\n\n/***/ },\n/* 403 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"hours\" on Range.prototype.\n\n/***/ },\n/* 404 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'intersect': function(range) {\n\t if (range.start > this.end || range.end < this.start) {\n\t return new Range(NaN, NaN);\n\t }\n\t return new Range(\n\t this.start > range.start ? this.start : range.start,\n\t this.end < range.end ? this.end : range.end\n\t );\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"intersect\" on Range.prototype.\n\n/***/ },\n/* 405 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t rangeIsValid = __webpack_require__(394),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'isValid': function() {\n\t return rangeIsValid(this);\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"isValid\" on Range.prototype.\n\n/***/ },\n/* 406 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"milliseconds\" on Range.prototype.\n\n/***/ },\n/* 407 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"minutes\" on Range.prototype.\n\n/***/ },\n/* 408 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"months\" on Range.prototype.\n\n/***/ },\n/* 409 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"seconds\" on Range.prototype.\n\n/***/ },\n/* 410 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t mathAliases = __webpack_require__(69),\n\t rangeIsValid = __webpack_require__(394),\n\t defineOnPrototype = __webpack_require__(387),\n\t getRangeMemberNumericValue = __webpack_require__(411);\n\t\n\tvar abs = mathAliases.abs;\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'span': function() {\n\t var n = getRangeMemberNumericValue(this.end) - getRangeMemberNumericValue(this.start);\n\t return rangeIsValid(this) ? abs(n) + 1 : NaN;\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"span\" on Range.prototype.\n\n/***/ },\n/* 411 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar classChecks = __webpack_require__(60);\n\t\n\tvar isString = classChecks.isString;\n\t\n\tfunction getRangeMemberNumericValue(m) {\n\t return isString(m) ? m.charCodeAt(0) : m;\n\t}\n\t\n\tmodule.exports = getRangeMemberNumericValue;\n\n/***/ },\n/* 412 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t rangeEvery = __webpack_require__(393),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'toArray': function() {\n\t return rangeEvery(this);\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"toArray\" on Range.prototype.\n\n/***/ },\n/* 413 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t rangeIsValid = __webpack_require__(394),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'toString': function() {\n\t return rangeIsValid(this) ? this.start + '..' + this.end : 'Invalid Range';\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"toString\" on Range.prototype.\n\n/***/ },\n/* 414 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar Range = __webpack_require__(373),\n\t defineOnPrototype = __webpack_require__(387);\n\t\n\tdefineOnPrototype(Range, {\n\t\n\t 'union': function(range) {\n\t return new Range(\n\t this.start < range.start ? this.start : range.start,\n\t this.end > range.end ? this.end : range.end\n\t );\n\t }\n\t\n\t});\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"union\" on Range.prototype.\n\n/***/ },\n/* 415 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"weeks\" on Range.prototype.\n\n/***/ },\n/* 416 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(391);\n\t\n\t// This package does not export anything as it is\n\t// simply defining \"years\" on Range.prototype.\n\n/***/ },\n/* 417 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\t__webpack_require__(418);\n\t__webpack_require__(419);\n\t__webpack_require__(420);\n\t__webpack_require__(421);\n\t__webpack_require__(422);\n\t__webpack_require__(423);\n\t__webpack_require__(424);\n\t__webpack_require__(425);\n\t__webpack_require__(426);\n\t__webpack_require__(427);\n\t__webpack_require__(428);\n\t__webpack_require__(429);\n\t__webpack_require__(430);\n\t__webpack_require__(431);\n\t__webpack_require__(432);\n\t__webpack_require__(433);\n\t__webpack_require__(434);\n\t\n\tmodule.exports = __webpack_require__(34);\n\n/***/ },\n/* 418 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Catalan locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('ca')\n\t *\n\t */\n\taddLocale('ca', {\n\t 'plural': true,\n\t 'units': 'milisegon:|s,segon:|s,minut:|s,hor:a|es,di:a|es,setman:a|es,mes:|os,any:|s',\n\t 'months': 'gen:er|,febr:er|,mar:ç|,abr:il|,mai:g|,jun:y|,jul:iol|,ag:ost|,set:embre|,oct:ubre|,nov:embre|,des:embre|',\n\t 'weekdays': 'diumenge|dg,dilluns|dl,dimarts|dt,dimecres|dc,dijous|dj,divendres|dv,dissabte|ds',\n\t 'numerals': 'zero,un,dos,tres,quatre,cinc,sis,set,vuit,nou,deu',\n\t 'tokens': 'el,la,de',\n\t 'short': '{dd}/{MM}/{yyyy}',\n\t 'medium': '{d} {month} {yyyy}',\n\t 'long': '{d} {month} {yyyy} {time}',\n\t 'full': '{weekday} {d} {month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{sign} {num} {unit}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': 'a las',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': \"abans d'ahir\", 'value': -2 },\n\t { 'name': 'day', 'src': 'ahir', 'value': -1 },\n\t { 'name': 'day', 'src': 'avui', 'value': 0 },\n\t { 'name': 'day', 'src': 'demà|dema', 'value': 1 },\n\t { 'name': 'sign', 'src': 'fa', 'value': -1 },\n\t { 'name': 'sign', 'src': 'en', 'value': 1 },\n\t { 'name': 'shift', 'src': 'passat', 'value': -1 },\n\t { 'name': 'shift', 'src': 'el proper|la propera', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{sign} {num} {unit}',\n\t '{num} {unit} {sign}',\n\t '{0?}{1?} {unit:5-7} {shift}',\n\t '{0?}{1?} {shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift} {weekday}',\n\t '{weekday} {shift}',\n\t '{date?} {2?} {months}\\\\.? {2?} {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"ca\" locale.\n\n/***/ },\n/* 419 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Danish locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('da')\n\t *\n\t */\n\taddLocale('da', {\n\t 'plural': true,\n\t 'units': 'millisekund:|er,sekund:|er,minut:|ter,tim:e|er,dag:|e,ug:e|er|en,måned:|er|en+maaned:|er|en,år:||et+aar:||et',\n\t 'months': 'jan:uar|,feb:ruar|,mar:ts|,apr:il|,maj,jun:i|,jul:i|,aug:ust|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',\n\t 'weekdays': 'søn:dag|+son:dag|,man:dag|,tir:sdag|,ons:dag|,tor:sdag|,fre:dag|,lør:dag|+lor:dag|',\n\t 'numerals': 'nul,en|et,to,tre,fire,fem,seks,syv,otte,ni,ti',\n\t 'tokens': 'den,for',\n\t 'articles': 'den',\n\t 'short': '{dd}-{MM}-{yyyy}',\n\t 'medium': '{d}. {month} {yyyy}',\n\t 'long': '{d}. {month} {yyyy} {time}',\n\t 'full': '{weekday} d. {d}. {month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'forgårs|i forgårs|forgaars|i forgaars', 'value': -2 },\n\t { 'name': 'day', 'src': 'i går|igår|i gaar|igaar', 'value': -1 },\n\t { 'name': 'day', 'src': 'i dag|idag', 'value': 0 },\n\t { 'name': 'day', 'src': 'i morgen|imorgen', 'value': 1 },\n\t { 'name': 'day', 'src': 'over morgon|overmorgen|i over morgen|i overmorgen|iovermorgen', 'value': 2 },\n\t { 'name': 'sign', 'src': 'siden', 'value': -1 },\n\t { 'name': 'sign', 'src': 'om', 'value': 1 },\n\t { 'name': 'shift', 'src': 'i sidste|sidste', 'value': -1 },\n\t { 'name': 'shift', 'src': 'denne', 'value': 0 },\n\t { 'name': 'shift', 'src': 'næste|naeste', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{num} {unit} {sign}',\n\t '{sign} {num} {unit}',\n\t '{1?} {num} {unit} {sign}',\n\t '{shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{date} {months?}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift} {weekday}',\n\t '{0?} {weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"da\" locale.\n\n/***/ },\n/* 420 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * German locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('de')\n\t *\n\t */\n\taddLocale('de', {\n\t 'plural': true,\n\t 'units': 'Millisekunde:|n,Sekunde:|n,Minute:|n,Stunde:|n,Tag:|en,Woche:|n,Monat:|en,Jahr:|en|e',\n\t 'months': 'Jan:uar|,Feb:ruar|,M:är|ärz|ar|arz,Apr:il|,Mai,Juni,Juli,Aug:ust|,Sept:ember|,Okt:ober|,Nov:ember|,Dez:ember|',\n\t 'weekdays': 'So:nntag|,Mo:ntag|,Di:enstag|,Mi:ttwoch|,Do:nnerstag|,Fr:eitag|,Sa:mstag|',\n\t 'numerals': 'null,ein:|e|er|en|em,zwei,drei,vier,fuenf,sechs,sieben,acht,neun,zehn',\n\t 'tokens': 'der',\n\t 'short': '{dd}.{MM}.{yyyy}',\n\t 'medium': '{d}. {Month} {yyyy}',\n\t 'long': '{d}. {Month} {yyyy} {time}',\n\t 'full': '{Weekday}, {d}. {Month} {yyyy} {time}',\n\t 'stamp': '{Dow} {d} {Mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{sign} {num} {unit}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': 'um',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'vorgestern', 'value': -2 },\n\t { 'name': 'day', 'src': 'gestern', 'value': -1 },\n\t { 'name': 'day', 'src': 'heute', 'value': 0 },\n\t { 'name': 'day', 'src': 'morgen', 'value': 1 },\n\t { 'name': 'day', 'src': 'übermorgen|ubermorgen|uebermorgen', 'value': 2 },\n\t { 'name': 'sign', 'src': 'vor:|her', 'value': -1 },\n\t { 'name': 'sign', 'src': 'in', 'value': 1 },\n\t { 'name': 'shift', 'src': 'letzte:|r|n|s', 'value': -1 },\n\t { 'name': 'shift', 'src': 'nächste:|r|n|s+nachste:|r|n|s+naechste:|r|n|s+kommende:n|r', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{sign} {num} {unit}',\n\t '{num} {unit} {sign}',\n\t '{shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift?} {day|weekday}',\n\t '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift} {weekday}',\n\t '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"de\" locale.\n\n/***/ },\n/* 421 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Spanish locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('es')\n\t *\n\t */\n\taddLocale('es', {\n\t 'plural': true,\n\t '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',\n\t '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|',\n\t 'weekdays': 'dom:ingo|,lun:es|,mar:tes|,mié:rcoles|+mie:rcoles|,jue:ves|,vie:rnes|,sáb:ado|+sab:ado|',\n\t 'numerals': 'cero,uno,dos,tres,cuatro,cinco,seis,siete,ocho,nueve,diez',\n\t 'tokens': 'el,la,de',\n\t 'short': '{dd}/{MM}/{yyyy}',\n\t 'medium': '{d} de {Month} de {yyyy}',\n\t 'long': '{d} de {Month} de {yyyy} {time}',\n\t 'full': '{weekday}, {d} de {month} de {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{sign} {num} {unit}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': 'a las',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'anteayer', 'value': -2 },\n\t { 'name': 'day', 'src': 'ayer', 'value': -1 },\n\t { 'name': 'day', 'src': 'hoy', 'value': 0 },\n\t { 'name': 'day', 'src': 'mañana|manana', 'value': 1 },\n\t { 'name': 'sign', 'src': 'hace', 'value': -1 },\n\t { 'name': 'sign', 'src': 'dentro de', 'value': 1 },\n\t { 'name': 'shift', 'src': 'pasad:o|a', 'value': -1 },\n\t { 'name': 'shift', 'src': 'próximo|próxima|proximo|proxima', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {2?} {year?}',\n\t '{sign} {num} {unit}',\n\t '{num} {unit} {sign}',\n\t '{0?}{1?} {unit:5-7} {shift}',\n\t '{0?}{1?} {shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift?} {day|weekday} {shift?}',\n\t '{date} {2?} {months?}\\\\.? {2?} {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift?} {weekday} {shift?}',\n\t '{date} {2?} {months?}\\\\.? {2?} {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"es\" locale.\n\n/***/ },\n/* 422 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Finnish locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('fi')\n\t *\n\t */\n\taddLocale('fi', {\n\t 'plural': true,\n\t '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',\n\t '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',\n\t 'weekdays': 'su:nnuntai||nnuntaina,ma:anantai||anantaina,ti:istai||istaina,ke:skiviikko||skiviikkona,to:rstai||rstaina,pe:rjantai||rjantaina,la:uantai||uantaina',\n\t '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',\n\t 'short': '{d}.{M}.{yyyy}',\n\t 'medium': '{d}. {month} {yyyy}',\n\t 'long': '{d}. {month} {yyyy} klo {time}',\n\t 'full': '{weekday} {d}. {month} {yyyy} klo {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}.{mm}',\n\t 'timeMarkers': 'klo,kello',\n\t 'ordinalSuffix': '.',\n\t 'relative': function(num, unit, ms, format) {\n\t var units = this['units'];\n\t function numberWithUnit(mult) {\n\t return num + ' ' + units[(8 * mult) + unit];\n\t }\n\t function baseUnit() {\n\t return numberWithUnit(num === 1 ? 0 : 1);\n\t }\n\t switch(format) {\n\t case 'duration': return baseUnit();\n\t case 'past': return baseUnit() + ' sitten';\n\t case 'future': return numberWithUnit(2) + ' kuluttua';\n\t }\n\t },\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'toissa päivänä', 'value': -2 },\n\t { 'name': 'day', 'src': 'eilen|eilistä', 'value': -1 },\n\t { 'name': 'day', 'src': 'tänään', 'value': 0 },\n\t { 'name': 'day', 'src': 'huomenna|huomista', 'value': 1 },\n\t { 'name': 'day', 'src': 'ylihuomenna|ylihuomista', 'value': 2 },\n\t { 'name': 'sign', 'src': 'sitten|aiemmin', 'value': -1 },\n\t { 'name': 'sign', 'src': 'päästä|kuluttua|myöhemmin', 'value': 1 },\n\t { 'name': 'edge', 'src': 'lopussa', 'value': 2 },\n\t { 'name': 'edge', 'src': 'ensimmäinen|ensimmäisenä', 'value': -2 },\n\t { 'name': 'shift', 'src': 'edel:linen|lisenä', 'value': -1 },\n\t { 'name': 'shift', 'src': 'viime', 'value': -1 },\n\t { 'name': 'shift', 'src': 'tä:llä|ssä|nä|mä', 'value': 0 },\n\t { 'name': 'shift', 'src': 'seuraava|seuraavana|tuleva|tulevana|ensi', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift?} {day|weekday}',\n\t '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift?} {day|weekday}',\n\t '{num?} {unit} {sign}',\n\t '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"fi\" locale.\n\n/***/ },\n/* 423 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * French locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('fr')\n\t *\n\t */\n\taddLocale('fr', {\n\t 'plural': true,\n\t 'units': 'milliseconde:|s,seconde:|s,minute:|s,heure:|s,jour:|s,semaine:|s,mois,an:|s|née|nee',\n\t '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|',\n\t 'weekdays': 'dim:anche|,lun:di|,mar:di|,mer:credi|,jeu:di|,ven:dredi|,sam:edi|',\n\t 'numerals': 'zéro,un:|e,deux,trois,quatre,cinq,six,sept,huit,neuf,dix',\n\t 'tokens': \"l'|la|le,er\",\n\t 'short': '{dd}/{MM}/{yyyy}',\n\t 'medium': '{d} {month} {yyyy}',\n\t 'long': '{d} {month} {yyyy} {time}',\n\t 'full': '{weekday} {d} {month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{sign} {num} {unit}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': 'à',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'hier', 'value': -1 },\n\t { 'name': 'day', 'src': \"aujourd'hui\", 'value': 0 },\n\t { 'name': 'day', 'src': 'demain', 'value': 1 },\n\t { 'name': 'sign', 'src': 'il y a', 'value': -1 },\n\t { 'name': 'sign', 'src': \"dans|d'ici\", 'value': 1 },\n\t { 'name': 'shift', 'src': 'derni:èr|er|ère|ere', 'value': -1 },\n\t { 'name': 'shift', 'src': 'prochain:|e', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{sign} {num} {unit}',\n\t '{0?} {unit:5-7} {shift}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday} {shift?}',\n\t '{weekday?},? {0?} {date}{1?} {months}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{0?} {weekday} {shift}',\n\t '{weekday?},? {0?} {date}{1?} {months}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"fr\" locale.\n\n/***/ },\n/* 424 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Italian locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('it')\n\t *\n\t */\n\taddLocale('it', {\n\t 'plural': true,\n\t 'units': 'millisecond:o|i,second:o|i,minut:o|i,or:a|e,giorn:o|i,settiman:a|e,mes:e|i,ann:o|i',\n\t 'months': 'gen:naio|,feb:braio|,mar:zo|,apr:ile|,mag:gio|,giu:gno|,lug:lio|,ago:sto|,set:tembre|,ott:obre|,nov:embre|,dic:embre|',\n\t 'weekdays': 'dom:enica|,lun:edì||edi,mar:tedì||tedi,mer:coledì||coledi,gio:vedì||vedi,ven:erdì||erdi,sab:ato|',\n\t 'numerals': \"zero,un:|a|o|',due,tre,quattro,cinque,sei,sette,otto,nove,dieci\",\n\t 'tokens': \"l'|la|il\",\n\t 'short': '{dd}/{MM}/{yyyy}',\n\t 'medium': '{d} {month} {yyyy}',\n\t 'long': '{d} {month} {yyyy} {time}',\n\t 'full': '{weekday}, {d} {month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{num} {unit} {sign}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': 'alle',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'ieri', 'value': -1 },\n\t { 'name': 'day', 'src': 'oggi', 'value': 0 },\n\t { 'name': 'day', 'src': 'domani', 'value': 1 },\n\t { 'name': 'day', 'src': 'dopodomani', 'value': 2 },\n\t { 'name': 'sign', 'src': 'fa', 'value': -1 },\n\t { 'name': 'sign', 'src': 'da adesso', 'value': 1 },\n\t { 'name': 'shift', 'src': 'scors:o|a', 'value': -1 },\n\t { 'name': 'shift', 'src': 'prossim:o|a', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{num} {unit} {sign}',\n\t '{0?} {unit:5-7} {shift}',\n\t '{0?} {shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift?} {day|weekday}',\n\t '{weekday?},? {date} {months?}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift?} {day|weekday}',\n\t '{weekday?},? {date} {months?}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"it\" locale.\n\n/***/ },\n/* 425 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Japanese locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('ja')\n\t *\n\t */\n\taddLocale('ja', {\n\t 'ampmFront': true,\n\t 'numeralUnits': true,\n\t 'allowsFullWidth': true,\n\t 'timeMarkerOptional': true,\n\t 'firstDayOfWeek': 0,\n\t 'firstDayOfWeekYear': 1,\n\t 'units': 'ミリ秒,秒,分,時間,日,週間|週,ヶ月|ヵ月|月,年|年度',\n\t 'weekdays': '日:曜日||曜,月:曜日||曜,火:曜日||曜,水:曜日||曜,木:曜日||曜,金:曜日||曜,土:曜日||曜',\n\t 'numerals': '〇,一,二,三,四,五,六,七,八,九',\n\t 'placeholders': '十,百,千,万',\n\t 'timeSuffixes': ',秒,分,時,日,,月,年度?',\n\t 'short': '{yyyy}/{MM}/{dd}',\n\t 'medium': '{yyyy}年{M}月{d}日',\n\t 'long': '{yyyy}年{M}月{d}日{time}',\n\t 'full': '{yyyy}年{M}月{d}日{time} {weekday}',\n\t 'stamp': '{yyyy}年{M}月{d}日 {H}:{mm} {dow}',\n\t 'time': '{tt}{h}時{mm}分',\n\t 'past': '{num}{unit}{sign}',\n\t 'future': '{num}{unit}{sign}',\n\t 'duration': '{num}{unit}',\n\t 'ampm': '午前,午後',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': '一昨々日|前々々日', 'value': -3 },\n\t { 'name': 'day', 'src': '一昨日|おととい|前々日', 'value': -2 },\n\t { 'name': 'day', 'src': '昨日|前日', 'value': -1 },\n\t { 'name': 'day', 'src': '今日|当日|本日', 'value': 0 },\n\t { 'name': 'day', 'src': '明日|翌日|次日', 'value': 1 },\n\t { 'name': 'day', 'src': '明後日|翌々日', 'value': 2 },\n\t { 'name': 'day', 'src': '明々後日|翌々々日', 'value': 3 },\n\t { 'name': 'sign', 'src': '前', 'value': -1 },\n\t { 'name': 'sign', 'src': '後', 'value': 1 },\n\t { 'name': 'edge', 'src': '始|初日|頭', 'value': -2 },\n\t { 'name': 'edge', 'src': '末|尻', 'value': 2 },\n\t { 'name': 'edge', 'src': '末日', 'value': 1 },\n\t { 'name': 'shift', 'src': '一昨々|前々々', 'value': -3 },\n\t { 'name': 'shift', 'src': '一昨|前々|先々', 'value': -2 },\n\t { 'name': 'shift', 'src': '先|昨|去|前', 'value': -1 },\n\t { 'name': 'shift', 'src': '今|本|当', 'value': 0 },\n\t { 'name': 'shift', 'src': '来|明|翌|次', 'value': 1 },\n\t { 'name': 'shift', 'src': '明後|翌々|次々|再来|さ来', 'value': 2 },\n\t { 'name': 'shift', 'src': '明々後|翌々々', 'value': 3 }\n\t ],\n\t 'parse': [\n\t '{month}{edge}',\n\t '{num}{unit}{sign}',\n\t '{year?}{month}',\n\t '{year}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{shift}{unit:5}{weekday?}',\n\t '{shift}{unit:7}{month}{edge}',\n\t '{shift}{unit:7}{month?}{date?}',\n\t '{shift}{unit:6}{edge?}{date?}',\n\t '{year?}{month?}{date}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"ja\" locale.\n\n/***/ },\n/* 426 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Korean locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('ko')\n\t *\n\t */\n\taddLocale('ko', {\n\t 'ampmFront': true,\n\t 'numeralUnits': true,\n\t 'units': '밀리초,초,분,시간,일,주,개월|달,년|해',\n\t 'weekdays': '일:요일|,월:요일|,화:요일|,수:요일|,목:요일|,금:요일|,토:요일|',\n\t 'numerals': '영|제로,일|한,이,삼,사,오,육,칠,팔,구,십',\n\t 'short': '{yyyy}.{MM}.{dd}',\n\t 'medium': '{yyyy}년 {M}월 {d}일',\n\t 'long': '{yyyy}년 {M}월 {d}일 {time}',\n\t 'full': '{yyyy}년 {M}월 {d}일 {weekday} {time}',\n\t 'stamp': '{yyyy}년 {M}월 {d}일 {H}:{mm} {dow}',\n\t 'time': '{tt} {h}시 {mm}분',\n\t 'past': '{num}{unit} {sign}',\n\t 'future': '{num}{unit} {sign}',\n\t 'duration': '{num}{unit}',\n\t 'timeSuffixes': ',초,분,시,일,,월,년',\n\t 'ampm': '오전,오후',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': '그저께', 'value': -2 },\n\t { 'name': 'day', 'src': '어제', 'value': -1 },\n\t { 'name': 'day', 'src': '오늘', 'value': 0 },\n\t { 'name': 'day', 'src': '내일', 'value': 1 },\n\t { 'name': 'day', 'src': '모레', 'value': 2 },\n\t { 'name': 'sign', 'src': '전', 'value': -1 },\n\t { 'name': 'sign', 'src': '후', 'value': 1 },\n\t { 'name': 'shift', 'src': '지난|작', 'value': -1 },\n\t { 'name': 'shift', 'src': '이번|올', 'value': 0 },\n\t { 'name': 'shift', 'src': '다음|내', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{num}{unit} {sign}',\n\t '{shift?} {unit:5-7}',\n\t '{year?} {month}',\n\t '{year}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{shift} {unit:5?} {weekday}',\n\t '{year?} {month?} {date} {weekday?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"ko\" locale.\n\n/***/ },\n/* 427 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Dutch locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('nl')\n\t *\n\t */\n\taddLocale('nl', {\n\t 'plural': true,\n\t 'units': 'milliseconde:|n,seconde:|n,minu:ut|ten,uur,dag:|en,we:ek|ken,maand:|en,jaar',\n\t 'months': 'jan:uari|,feb:ruari|,maart|mrt,apr:il|,mei,jun:i|,jul:i|,aug:ustus|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',\n\t 'weekdays': 'zondag|zo,maandag|ma,dinsdag|di,woensdag|wo|woe,donderdag|do,vrijdag|vr|vrij,zaterdag|za',\n\t 'numerals': 'nul,een,twee,drie,vier,vijf,zes,zeven,acht,negen,tien',\n\t 'short': '{dd}-{MM}-{yyyy}',\n\t 'medium': '{d} {month} {yyyy}',\n\t 'long': '{d} {Month} {yyyy} {time}',\n\t 'full': '{weekday} {d} {Month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {Mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{num} {unit} {sign}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': \"'s,om\",\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'gisteren', 'value': -1 },\n\t { 'name': 'day', 'src': 'vandaag', 'value': 0 },\n\t { 'name': 'day', 'src': 'morgen', 'value': 1 },\n\t { 'name': 'day', 'src': 'overmorgen', 'value': 2 },\n\t { 'name': 'sign', 'src': 'geleden', 'value': -1 },\n\t { 'name': 'sign', 'src': 'vanaf nu', 'value': 1 },\n\t { 'name': 'shift', 'src': 'laatste|vorige|afgelopen', 'value': -1 },\n\t { 'name': 'shift', 'src': 'volgend:|e', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{num} {unit} {sign}',\n\t '{0?} {unit:5-7} {shift}',\n\t '{0?} {shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift?} {day|weekday}',\n\t '{weekday?},? {date} {months?}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift?} {day|weekday}',\n\t '{weekday?},? {date} {months?}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"nl\" locale.\n\n/***/ },\n/* 428 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Norwegian locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('no')\n\t *\n\t */\n\taddLocale('no', {\n\t 'plural': true,\n\t 'units': 'millisekund:|er,sekund:|er,minutt:|er,tim:e|er,dag:|er,uk:e|er|en,måned:|er|en+maaned:|er|en,år:||et+aar:||et',\n\t 'months': 'januar,februar,mars,april,mai,juni,juli,august,september,oktober,november,desember',\n\t 'weekdays': 'søndag|sondag,mandag,tirsdag,onsdag,torsdag,fredag,lørdag|lordag',\n\t 'numerals': 'en|et,to,tre,fire,fem,seks,sju|syv,åtte,ni,ti',\n\t 'tokens': 'den,for',\n\t 'articles': 'den',\n\t 'short':'d. {d}. {month} {yyyy}',\n\t 'long': 'den {d}. {month} {yyyy} {H}:{mm}',\n\t 'full': '{Weekday} den {d}. {month} {yyyy} {H}:{mm}:{ss}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'forgårs|i forgårs|forgaars|i forgaars', 'value': -2 },\n\t { 'name': 'day', 'src': 'i går|igår|i gaar|igaar', 'value': -1 },\n\t { 'name': 'day', 'src': 'i dag|idag', 'value': 0 },\n\t { 'name': 'day', 'src': 'i morgen|imorgen', 'value': 1 },\n\t { 'name': 'day', 'src': 'overimorgen|overmorgen|over i morgen', 'value': 2 },\n\t { 'name': 'sign', 'src': 'siden', 'value': -1 },\n\t { 'name': 'sign', 'src': 'om', 'value': 1 },\n\t { 'name': 'shift', 'src': 'i siste|siste', 'value': -1 },\n\t { 'name': 'shift', 'src': 'denne', 'value': 0 },\n\t { 'name': 'shift', 'src': 'neste', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{num} {unit} {sign}',\n\t '{sign} {num} {unit}',\n\t '{1?} {num} {unit} {sign}',\n\t '{shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{date} {month}',\n\t '{shift} {weekday}',\n\t '{0?} {weekday?},? {date?} {month}\\\\.? {year}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"no\" locale.\n\n/***/ },\n/* 429 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Polish locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('pl')\n\t *\n\t */\n\taddLocale('pl', {\n\t 'plural': true,\n\t 'units': 'milisekund:a|y|,sekund:a|y|,minut:a|y|,godzin:a|y|,dzień|dni|dni,tydzień|tygodnie|tygodni,miesiąc|miesiące|miesięcy,rok|lata|lat',\n\t 'months': 'sty:cznia||czeń,lut:ego||y,mar:ca||zec,kwi:etnia||ecień,maj:a|,cze:rwca||rwiec,lip:ca||iec,sie:rpnia||rpień,wrz:eśnia||esień,paź:dziernika||dziernik,lis:topada||topad,gru:dnia||dzień',\n\t 'weekdays': 'nie:dziela||dzielę,pon:iedziałek|,wt:orek|,śr:oda||odę,czw:artek|,piątek|pt,sobota|sb|sobotę',\n\t 'numerals': 'zero,jeden|jedną,dwa|dwie,trzy,cztery,pięć,sześć,siedem,osiem,dziewięć,dziesięć',\n\t 'tokens': 'w|we,roku',\n\t 'short': '{dd}.{MM}.{yyyy}',\n\t 'medium': '{d} {month} {yyyy}',\n\t 'long': '{d} {month} {yyyy} {time}',\n\t 'full' : '{weekday}, {d} {month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'timeMarkers': 'o',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'przedwczoraj', 'value': -2 },\n\t { 'name': 'day', 'src': 'wczoraj', 'value': -1 },\n\t { 'name': 'day', 'src': 'dzisiaj|dziś', 'value': 0 },\n\t { 'name': 'day', 'src': 'jutro', 'value': 1 },\n\t { 'name': 'day', 'src': 'pojutrze', 'value': 2 },\n\t { 'name': 'sign', 'src': 'temu|przed', 'value': -1 },\n\t { 'name': 'sign', 'src': 'za', 'value': 1 },\n\t { 'name': 'shift', 'src': 'zeszły|zeszła|ostatni|ostatnia', 'value': -1 },\n\t { 'name': 'shift', 'src': 'następny|następna|następnego|przyszły|przyszła|przyszłego', 'value': 1 }\n\t ],\n\t 'relative': function (num, unit, ms, format) {\n\t // special cases for relative days\n\t var DAY = 4;\n\t if (unit === DAY) {\n\t if (num === 1 && format === 'past') return 'wczoraj';\n\t if (num === 1 && format === 'future') return 'jutro';\n\t if (num === 2 && format === 'past') return 'przedwczoraj';\n\t if (num === 2 && format === 'future') return 'pojutrze';\n\t }\n\t\n\t var mult;\n\t var last = +num.toFixed(0).slice(-1);\n\t var last2 = +num.toFixed(0).slice(-2);\n\t switch (true) {\n\t case num === 1: mult = 0; break;\n\t case last2 >= 12 && last2 <= 14: mult = 2; break;\n\t case last >= 2 && last <= 4: mult = 1; break;\n\t default: mult = 2;\n\t }\n\t var text = this['units'][(mult * 8) + unit];\n\t var prefix = num + ' ';\n\t\n\t // changing to accusative case for 'past' and 'future' formats\n\t // (only singular feminine unit words are different in accusative, each of which ends with 'a')\n\t if ((format === 'past' || format === 'future') && num === 1) {\n\t text = text.replace(/a$/, 'ę');\n\t }\n\t\n\t text = prefix + text;\n\t switch (format) {\n\t case 'duration': return text;\n\t case 'past': return text + ' temu';\n\t case 'future': return 'za ' + text;\n\t }\n\t },\n\t 'parse': [\n\t '{num} {unit} {sign}',\n\t '{sign} {num} {unit}',\n\t '{months} {year?}',\n\t '{shift} {unit:5-7}',\n\t '{0} {shift?} {weekday}'\n\t ],\n\t 'timeFrontParse': [\n\t '{day|weekday}',\n\t '{date} {months} {year?} {1?}',\n\t '{0?} {shift?} {weekday}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"pl\" locale.\n\n/***/ },\n/* 430 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Portuguese locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('pt')\n\t *\n\t */\n\taddLocale('pt', {\n\t 'plural': true,\n\t 'units': 'milisegundo:|s,segundo:|s,minuto:|s,hora:|s,dia:|s,semana:|s,mês|mêses|mes|meses,ano:|s',\n\t 'months': 'jan:eiro|,fev:ereiro|,mar:ço|,abr:il|,mai:o|,jun:ho|,jul:ho|,ago:sto|,set:embro|,out:ubro|,nov:embro|,dez:embro|',\n\t 'weekdays': 'dom:ingo|,seg:unda-feira|,ter:ça-feira|,qua:rta-feira|,qui:nta-feira|,sex:ta-feira|,sáb:ado||ado',\n\t 'numerals': 'zero,um:|a,dois|duas,três|tres,quatro,cinco,seis,sete,oito,nove,dez',\n\t 'tokens': 'a,de',\n\t 'short': '{dd}/{MM}/{yyyy}',\n\t 'medium': '{d} de {Month} de {yyyy}',\n\t 'long': '{d} de {Month} de {yyyy} {time}',\n\t 'full': '{Weekday}, {d} de {Month} de {yyyy} {time}',\n\t 'stamp': '{Dow} {d} {Mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'timeMarkers': 'às',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'anteontem', 'value': -2 },\n\t { 'name': 'day', 'src': 'ontem', 'value': -1 },\n\t { 'name': 'day', 'src': 'hoje', 'value': 0 },\n\t { 'name': 'day', 'src': 'amanh:ã|a', 'value': 1 },\n\t { 'name': 'sign', 'src': 'atrás|atras|há|ha', 'value': -1 },\n\t { 'name': 'sign', 'src': 'daqui a', 'value': 1 },\n\t { 'name': 'shift', 'src': 'passad:o|a', 'value': -1 },\n\t { 'name': 'shift', 'src': 'próximo|próxima|proximo|proxima', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {1?} {year?}',\n\t '{num} {unit} {sign}',\n\t '{sign} {num} {unit}',\n\t '{0?} {unit:5-7} {shift}',\n\t '{0?} {shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{shift?} {day|weekday}',\n\t '{0?} {shift} {weekday}',\n\t '{date} {1?} {months?} {1?} {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{shift?} {day|weekday}',\n\t '{date} {1?} {months?} {1?} {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"pt\" locale.\n\n/***/ },\n/* 431 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Russian locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('ru')\n\t *\n\t */\n\taddLocale('ru', {\n\t 'firstDayOfWeekYear': 1,\n\t 'units': 'миллисекунд:а|у|ы|,секунд:а|у|ы|,минут:а|у|ы|,час:||а|ов,день|день|дня|дней,недел:я|ю|и|ь|е,месяц:||а|ев|е,год|год|года|лет|году',\n\t 'months': 'янв:аря||.|арь,фев:раля||р.|раль,мар:та||т,апр:еля||.|ель,мая|май,июн:я||ь,июл:я||ь,авг:уста||.|уст,сен:тября||т.|тябрь,окт:ября||.|ябрь,ноя:бря||брь,дек:абря||.|абрь',\n\t 'weekdays': 'воскресенье|вс,понедельник|пн,вторник|вт,среда|ср,четверг|чт,пятница|пт,суббота|сб',\n\t 'numerals': 'ноль,од:ин|ну,дв:а|е,три,четыре,пять,шесть,семь,восемь,девять,десять',\n\t 'tokens': 'в|на,г\\\\.?(?:ода)?',\n\t 'short': '{dd}.{MM}.{yyyy}',\n\t 'medium': '{d} {month} {yyyy} г.',\n\t 'long': '{d} {month} {yyyy} г., {time}',\n\t 'full': '{weekday}, {d} {month} {yyyy} г., {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'timeMarkers': 'в',\n\t 'ampm': ' утра, вечера',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'позавчера', 'value': -2 },\n\t { 'name': 'day', 'src': 'вчера', 'value': -1 },\n\t { 'name': 'day', 'src': 'сегодня', 'value': 0 },\n\t { 'name': 'day', 'src': 'завтра', 'value': 1 },\n\t { 'name': 'day', 'src': 'послезавтра', 'value': 2 },\n\t { 'name': 'sign', 'src': 'назад', 'value': -1 },\n\t { 'name': 'sign', 'src': 'через', 'value': 1 },\n\t { 'name': 'shift', 'src': 'прошл:ый|ой|ом', 'value': -1 },\n\t { 'name': 'shift', 'src': 'следующ:ий|ей|ем', 'value': 1 }\n\t ],\n\t 'relative': function(num, unit, ms, format) {\n\t var numberWithUnit, last = num.toString().slice(-1), mult;\n\t switch(true) {\n\t case num >= 11 && num <= 15: mult = 3; break;\n\t case last == 1: mult = 1; break;\n\t case last >= 2 && last <= 4: mult = 2; break;\n\t default: mult = 3;\n\t }\n\t numberWithUnit = num + ' ' + this['units'][(mult * 8) + unit];\n\t switch(format) {\n\t case 'duration': return numberWithUnit;\n\t case 'past': return numberWithUnit + ' назад';\n\t case 'future': return 'через ' + numberWithUnit;\n\t }\n\t },\n\t 'parse': [\n\t '{num} {unit} {sign}',\n\t '{sign} {num} {unit}',\n\t '{months} {year?}',\n\t '{0?} {shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{0?} {shift} {weekday}',\n\t '{date} {months?} {year?} {1?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{0?} {shift} {weekday}',\n\t '{date} {months?} {year?} {1?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"ru\" locale.\n\n/***/ },\n/* 432 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Swedish locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('sv')\n\t *\n\t */\n\taddLocale('sv', {\n\t 'plural': true,\n\t 'units': 'millisekund:|er,sekund:|er,minut:|er,timm:e|ar,dag:|ar,veck:a|or|an,månad:|er|en+manad:|er|en,år:||et+ar:||et',\n\t 'months': 'jan:uari|,feb:ruari|,mar:s|,apr:il|,maj,jun:i|,jul:i|,aug:usti|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',\n\t 'weekdays': 'sön:dag|+son:dag|,mån:dag||dagen+man:dag||dagen,tis:dag|,ons:dag|,tor:sdag|,fre:dag|,lör:dag||dag',\n\t 'numerals': 'noll,en|ett,två|tva,tre,fyra,fem,sex,sju,åtta|atta,nio,tio',\n\t 'tokens': 'den,för|for',\n\t 'articles': 'den',\n\t 'short': '{yyyy}-{MM}-{dd}',\n\t 'medium': '{d} {month} {yyyy}',\n\t 'long': '{d} {month} {yyyy} {time}',\n\t 'full': '{weekday} {d} {month} {yyyy} {time}',\n\t 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n\t 'time': '{H}:{mm}',\n\t 'past': '{num} {unit} {sign}',\n\t 'future': '{sign} {num} {unit}',\n\t 'duration': '{num} {unit}',\n\t 'ampm': 'am,pm',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': 'förrgår|i förrgår|iförrgår|forrgar|i forrgar|iforrgar', 'value': -2 },\n\t { 'name': 'day', 'src': 'går|i går|igår|gar|i gar|igar', 'value': -1 },\n\t { 'name': 'day', 'src': 'dag|i dag|idag', 'value': 0 },\n\t { 'name': 'day', 'src': 'morgon|i morgon|imorgon', 'value': 1 },\n\t { 'name': 'day', 'src': 'över morgon|övermorgon|i över morgon|i övermorgon|iövermorgon|over morgon|overmorgon|i over morgon|i overmorgon|iovermorgon', 'value': 2 },\n\t { 'name': 'sign', 'src': 'sedan|sen', 'value': -1 },\n\t { 'name': 'sign', 'src': 'om', 'value': 1 },\n\t { 'name': 'shift', 'src': 'i förra|förra|i forra|forra', 'value': -1 },\n\t { 'name': 'shift', 'src': 'denna', 'value': 0 },\n\t { 'name': 'shift', 'src': 'nästa|nasta', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{months} {year?}',\n\t '{num} {unit} {sign}',\n\t '{sign} {num} {unit}',\n\t '{1?} {num} {unit} {sign}',\n\t '{shift} {unit:5-7}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{shift} {weekday}',\n\t '{0?} {weekday?},? {date} {months?}\\\\.? {year?}'\n\t ],\n\t 'timeFrontParse': [\n\t '{day|weekday}',\n\t '{shift} {weekday}',\n\t '{0?} {weekday?},? {date} {months?}\\\\.? {year?}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"sv\" locale.\n\n/***/ },\n/* 433 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Simplified Chinese locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('zh-CN')\n\t *\n\t */\n\taddLocale('zh-CN', {\n\t 'ampmFront': true,\n\t 'numeralUnits': true,\n\t 'allowsFullWidth': true,\n\t 'timeMarkerOptional': true,\n\t 'units': '毫秒,秒钟,分钟,小时,天,个星期|周,个月,年',\n\t 'weekdays': '星期日|日|周日|星期天,星期一|一|周一,星期二|二|周二,星期三|三|周三,星期四|四|周四,星期五|五|周五,星期六|六|周六',\n\t 'numerals': '〇,一,二,三,四,五,六,七,八,九',\n\t 'placeholders': '十,百,千,万',\n\t 'short': '{yyyy}-{MM}-{dd}',\n\t 'medium': '{yyyy}年{M}月{d}日',\n\t 'long': '{yyyy}年{M}月{d}日{time}',\n\t 'full': '{yyyy}年{M}月{d}日{weekday}{time}',\n\t 'stamp': '{yyyy}年{M}月{d}日{H}:{mm}{dow}',\n\t 'time': '{tt}{h}点{mm}分',\n\t 'past': '{num}{unit}{sign}',\n\t 'future': '{num}{unit}{sign}',\n\t 'duration': '{num}{unit}',\n\t 'timeSuffixes': ',秒,分钟?,点|时,日|号,,月,年',\n\t 'ampm': '上午,下午',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': '大前天', 'value': -3 },\n\t { 'name': 'day', 'src': '前天', 'value': -2 },\n\t { 'name': 'day', 'src': '昨天', 'value': -1 },\n\t { 'name': 'day', 'src': '今天', 'value': 0 },\n\t { 'name': 'day', 'src': '明天', 'value': 1 },\n\t { 'name': 'day', 'src': '后天', 'value': 2 },\n\t { 'name': 'day', 'src': '大后天', 'value': 3 },\n\t { 'name': 'sign', 'src': '前', 'value': -1 },\n\t { 'name': 'sign', 'src': '后', 'value': 1 },\n\t { 'name': 'shift', 'src': '上|去', 'value': -1 },\n\t { 'name': 'shift', 'src': '这', 'value': 0 },\n\t { 'name': 'shift', 'src': '下|明', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{num}{unit}{sign}',\n\t '{shift}{unit:5-7}',\n\t '{year?}{month}',\n\t '{year}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{shift}{weekday}',\n\t '{year?}{month?}{date}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"zh-CN\" locale.\n\n/***/ },\n/* 434 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar addLocale = __webpack_require__(33);\n\t\n\t/*\n\t * Traditional Chinese locale definition.\n\t * See the readme for customization and more information.\n\t * To set this locale globally:\n\t *\n\t * Sugar.Date.setLocale('zh-TW')\n\t *\n\t */\n\taddLocale('zh-TW', {\n\t 'ampmFront': true,\n\t 'numeralUnits': true,\n\t 'allowsFullWidth': true,\n\t 'timeMarkerOptional': true,\n\t 'units': '毫秒,秒鐘,分鐘,小時,天,個星期|週,個月,年',\n\t 'weekdays': '星期日|日|週日|星期天,星期一|一|週一,星期二|二|週二,星期三|三|週三,星期四|四|週四,星期五|五|週五,星期六|六|週六',\n\t 'numerals': '〇,一,二,三,四,五,六,七,八,九',\n\t 'placeholders': '十,百,千,万',\n\t 'short': '{yyyy}/{MM}/{dd}',\n\t 'medium': '{yyyy}年{M}月{d}日',\n\t 'long': '{yyyy}年{M}月{d}日{time}',\n\t 'full': '{yyyy}年{M}月{d}日{weekday}{time}',\n\t 'stamp': '{yyyy}年{M}月{d}日{H}:{mm}{dow}',\n\t 'time': '{tt}{h}點{mm}分',\n\t 'past': '{num}{unit}{sign}',\n\t 'future': '{num}{unit}{sign}',\n\t 'duration': '{num}{unit}',\n\t 'timeSuffixes': ',秒,分鐘?,點|時,日|號,,月,年',\n\t 'ampm': '上午,下午',\n\t 'modifiers': [\n\t { 'name': 'day', 'src': '大前天', 'value': -3 },\n\t { 'name': 'day', 'src': '前天', 'value': -2 },\n\t { 'name': 'day', 'src': '昨天', 'value': -1 },\n\t { 'name': 'day', 'src': '今天', 'value': 0 },\n\t { 'name': 'day', 'src': '明天', 'value': 1 },\n\t { 'name': 'day', 'src': '後天', 'value': 2 },\n\t { 'name': 'day', 'src': '大後天', 'value': 3 },\n\t { 'name': 'sign', 'src': '前', 'value': -1 },\n\t { 'name': 'sign', 'src': '後', 'value': 1 },\n\t { 'name': 'shift', 'src': '上|去', 'value': -1 },\n\t { 'name': 'shift', 'src': '這', 'value': 0 },\n\t { 'name': 'shift', 'src': '下|明', 'value': 1 }\n\t ],\n\t 'parse': [\n\t '{num}{unit}{sign}',\n\t '{shift}{unit:5-7}',\n\t '{year?}{month}',\n\t '{year}'\n\t ],\n\t 'timeParse': [\n\t '{day|weekday}',\n\t '{shift}{weekday}',\n\t '{year?}{month?}{date}'\n\t ]\n\t});\n\t\n\t\n\t// This package does not export anything as it is\n\t// simply registering the \"zh-TW\" locale.\n\n/***/ }\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// tablefilter.js"," \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId])\n \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n \t\twhile(callbacks.length)\n \t\t\tcallbacks.shift().call(null, __webpack_require__);\n\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// \"0\" means \"already loaded\"\n \t// Array means \"loading\", array contains callbacks\n \tvar installedChunks = {\n \t\t0:0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n \t\t// \"0\" is the signal for \"already loaded\"\n \t\tif(installedChunks[chunkId] === 0)\n \t\t\treturn callback.call(null, __webpack_require__);\n\n \t\t// an array means \"currently loading\".\n \t\tif(installedChunks[chunkId] !== undefined) {\n \t\t\tinstalledChunks[chunkId].push(callback);\n \t\t} else {\n \t\t\t// start chunk loading\n \t\t\tinstalledChunks[chunkId] = [callback];\n \t\t\tvar head = document.getElementsByTagName('head')[0];\n \t\t\tvar script = document.createElement('script');\n \t\t\tscript.type = 'text/javascript';\n \t\t\tscript.charset = 'utf-8';\n \t\t\tscript.async = true;\n\n \t\t\tscript.src = __webpack_require__.p + \"tf-\" + ({}[chunkId]||chunkId) + \"-\" + {\"1\":\"e02724480dc5dcee4468\"}[chunkId] + \".js\";\n \t\t\thead.appendChild(script);\n \t\t}\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 646bbbb1d0863992cc61","import {addEvt, cancelEvt, stopEvt, targetEvt, keyCode} from './event';\nimport {\n addClass, createElm, createOpt, elm, getText, getFirstTextNode, hasClass,\n removeClass, removeElm, tag\n} from './dom';\nimport {contains, matchCase, rgxEsc, trim} from './string';\nimport {isEmpty as isEmptyString} from './string';\nimport {\n isArray, isEmpty, isFn, isNumber, isObj, isString, isUndef, EMPTY_FN\n} from './types';\nimport {parse as parseNb} from './number'\n\nimport {root} from './root';\nimport {Emitter} from './emitter';\nimport {GridLayout} from './modules/gridLayout';\nimport {Loader} from './modules/loader';\nimport {HighlightKeyword} from './modules/highlightKeywords';\nimport {PopupFilter} from './modules/popupFilter';\nimport {Dropdown} from './modules/dropdown';\nimport {CheckList} from './modules/checkList';\nimport {RowsCounter} from './modules/rowsCounter';\nimport {StatusBar} from './modules/statusBar';\nimport {Paging} from './modules/paging';\nimport {ClearButton} from './modules/clearButton';\nimport {Help} from './modules/help';\nimport {AlternateRows} from './modules/alternateRows';\nimport {NoResults} from './modules/noResults';\nimport {State} from './modules/state';\nimport {DateType} from './modules/dateType';\n\nimport {\n INPUT, SELECT, MULTIPLE, CHECKLIST, NONE,\n ENTER_KEY, TAB_KEY, ESC_KEY, UP_ARROW_KEY, DOWN_ARROW_KEY,\n CELL_TAG, AUTO_FILTER_DELAY, NUMBER, DATE, FORMATTED_NUMBER\n} from './const';\n\nlet doc = root.document;\n\n/**\n * Makes HTML tables filterable and a bit more :)\n *\n * @export\n * @class TableFilter\n */\nexport class TableFilter {\n\n /**\n * Creates an instance of TableFilter\n * requires `table` or `id` arguments, `row` and `configuration` optional\n * @param {DOMElement} table Table DOM element\n * @param {String} id Table id\n * @param {Number} row index indicating the 1st row\n * @param {Object} configuration object\n */\n constructor(...args) {\n /**\n * ID of current instance\n * @type {String}\n * @private\n */\n this.id = null;\n\n /**\n * Current version\n * @type {String}\n */\n this.version = '0.4.38';\n\n /**\n * Current year\n * @type {Number}\n * @private\n */\n this.year = new Date().getFullYear();\n\n /**\n * HTML Table DOM element\n * @type {DOMElement}\n */\n this.tbl = null;\n\n /**\n * Calculated row's index from which starts filtering once filters\n * are generated\n * @type {Number}\n */\n this.refRow = null;\n\n /**\n * Index of the headers row\n * @type {Number}\n * @private\n */\n this.headersRow = null;\n\n /**\n * Configuration object\n * @type {Object}\n * @private\n */\n this.cfg = {};\n\n /**\n * Number of rows that can be filtered\n * @type {Number}\n * @private\n */\n this.nbFilterableRows = 0;\n\n /**\n * Number of cells in the reference row\n * @type {Number}\n * @private\n */\n this.nbCells = null;\n\n let startRow;\n\n // TODO: use for-of\n args.forEach((arg) => {\n if (typeof arg === 'object' && arg.nodeName === 'TABLE') {\n this.tbl = arg;\n this.id = arg.id || `tf_${new Date().getTime()}_`;\n } else if (isString(arg)) {\n this.id = arg;\n this.tbl = elm(arg);\n } else if (isNumber(arg)) {\n startRow = arg;\n } else if (isObj(arg)) {\n this.cfg = arg;\n }\n });\n\n if (!this.tbl || this.tbl.nodeName !== 'TABLE') {\n throw new Error(`Could not instantiate TableFilter: HTML table\n DOM element not found.`);\n }\n\n if (this.getRowsNb() === 0) {\n throw new Error(`Could not instantiate TableFilter: HTML table\n requires at least 1 row.`);\n }\n\n // configuration object\n let f = this.cfg;\n\n /**\n * Event emitter instance\n * @type {Emitter}\n */\n this.emitter = new Emitter();\n\n //Start row et cols nb\n this.refRow = isUndef(startRow) ? 2 : (startRow + 1);\n\n /**\n * Base path for static assets\n * @type {String}\n */\n this.basePath = f.base_path || 'tablefilter/';\n\n /*** filters' grid properties ***/\n\n /**\n * Enable/disable filters\n * @type {Boolean}\n */\n this.fltGrid = f.grid === false ? false : true;\n\n /**\n * Enable/disable grid layout (fixed headers)\n * @type {Boolean}\n */\n this.gridLayout = Boolean(f.grid_layout);\n\n /**\n * Filters row index\n * @type {Number}\n */\n this.filtersRowIndex = isNaN(f.filters_row_index) ?\n 0 : f.filters_row_index;\n\n /**\n * Headers row index\n * @type {Number}\n */\n this.headersRow = isNaN(f.headers_row_index) ?\n (this.filtersRowIndex === 0 ? 1 : 0) : f.headers_row_index;\n\n /**\n * Define the type of cell containing a filter (td/th)\n * @type {String}\n */\n this.fltCellTag = isString(f.filters_cell_tag) ?\n f.filters_cell_tag : CELL_TAG;\n\n /**\n * List of filters IDs\n * @type {Array}\n * @private\n */\n this.fltIds = [];\n\n /**\n * List of valid rows indexes (rows visible upon filtering)\n * @type {Array}\n * @private\n */\n this.validRowsIndex = [];\n\n /**\n * Toolbar's container DOM element\n * @type {DOMElement}\n * @private\n */\n this.infDiv = null;\n\n /**\n * Left-side inner container DOM element (rows counter in toolbar)\n * @type {DOMElement}\n * @private\n */\n this.lDiv = null;\n\n /**\n * Right-side inner container DOM element (reset button,\n * page length selector in toolbar)\n * @type {DOMElement}\n * @private\n */\n this.rDiv = null;\n\n /**\n * Middle inner container DOM element (paging elements in toolbar)\n * @type {DOMElement}\n * @private\n */\n this.mDiv = null;\n\n /**\n * Css class for toolbar's container DOM element\n * @type {String}\n */\n this.infDivCssClass = f.inf_div_css_class || 'inf';\n\n /**\n * Css class for left-side inner container DOM element\n * @type {String}\n */\n this.lDivCssClass = f.left_div_css_class || 'ldiv';\n\n /**\n * Css class for right-side inner container DOM element\n * @type {String}\n */\n this.rDivCssClass = f.right_div_css_class || 'rdiv';\n\n /**\n * Css class for middle inner container DOM element\n * @type {String}\n */\n this.mDivCssClass = f.middle_div_css_class || 'mdiv';\n\n /*** filters' grid appearance ***/\n /**\n * Path for stylesheets\n * @type {String}\n */\n this.stylePath = f.style_path || this.basePath + 'style/';\n\n /**\n * Main stylesheet path\n * @type {String}\n */\n this.stylesheet = f.stylesheet || this.stylePath + 'tablefilter.css';\n\n /**\n * Main stylesheet ID\n * @type {String}\n * @private\n */\n this.stylesheetId = this.id + '_style';\n\n /**\n * Css class for the filters row\n * @type {String}\n */\n this.fltsRowCssClass = f.flts_row_css_class || 'fltrow';\n\n /**\n * Enable/disable icons (paging, reset button)\n * @type {Boolean}\n */\n this.enableIcons = f.enable_icons === false ? false : true;\n\n /**\n * Enable/disable alternating rows\n * @type {Boolean}\n */\n this.alternateRows = Boolean(f.alternate_rows);\n\n /**\n * Indicate whether columns widths are set\n * @type {Boolean}\n * @private\n */\n this.hasColWidths = isArray(f.col_widths);\n\n /**\n * Columns widths array\n * @type {Array}\n */\n this.colWidths = this.hasColWidths ? f.col_widths : [];\n\n /**\n * Css class for a filter element\n * @type {String}\n */\n this.fltCssClass = f.flt_css_class || 'flt';\n\n /**\n * Css class for multiple select filters\n * @type {String}\n */\n this.fltMultiCssClass = f.flt_multi_css_class || 'flt_multi';\n\n /**\n * Css class for small filter (when submit button is active)\n * @type {String}\n */\n this.fltSmallCssClass = f.flt_small_css_class || 'flt_s';\n\n /**\n * Css class for single filter type\n * @type {String}\n */\n this.singleFltCssClass = f.single_flt_css_class || 'single_flt';\n\n /*** filters' grid behaviours ***/\n\n /**\n * Enable/disable enter key for input type filters\n * @type {Boolean}\n */\n this.enterKey = f.enter_key === false ? false : true;\n\n /**\n * Callback fired before filtering process starts\n * @type {Function}\n */\n this.onBeforeFilter = isFn(f.on_before_filter) ?\n f.on_before_filter : EMPTY_FN;\n\n /**\n * Callback fired after filtering process is completed\n * @type {Function}\n */\n this.onAfterFilter = isFn(f.on_after_filter) ?\n f.on_after_filter : EMPTY_FN;\n\n /**\n * Enable/disable case sensitivity filtering\n * @type {Boolean}\n */\n this.caseSensitive = Boolean(f.case_sensitive);\n\n /**\n * Indicate whether exact match filtering is enabled on a per column\n * basis\n * @type {Boolean}\n * @private\n */\n this.hasExactMatchByCol = isArray(f.columns_exact_match);\n\n /**\n * Exact match filtering per column array\n * @type {Array}\n */\n this.exactMatchByCol = this.hasExactMatchByCol ?\n f.columns_exact_match : [];\n\n /**\n * Globally enable/disable exact match filtering\n * @type {Boolean}\n */\n this.exactMatch = Boolean(f.exact_match);\n\n /**\n * Ignore diacritics globally or on a column basis\n * @type {Boolean|Array}\n */\n this.ignoreDiacritics = f.ignore_diacritics;\n\n /**\n * Enable/disable linked filters filtering mode\n * @type {Boolean}\n */\n this.linkedFilters = Boolean(f.linked_filters);\n\n /**\n * Enable/disable readonly state for excluded options when\n * linked filters filtering mode is on\n * @type {Boolean}\n */\n this.disableExcludedOptions = Boolean(f.disable_excluded_options);\n\n /**\n * Active filter ID\n * @type {String}\n * @private\n */\n this.activeFilterId = null;\n\n /**\n * Enable/disable always visible rows, excluded from filtering\n * @type {Boolean}\n */\n this.hasVisibleRows = Boolean(f.rows_always_visible);\n\n /**\n * List of row indexes to be excluded from filtering\n * @type {Array}\n */\n this.visibleRows = this.hasVisibleRows ? f.rows_always_visible : [];\n\n /**\n * Enable/disable external filters generation\n * @type {Boolean}\n */\n this.isExternalFlt = Boolean(f.external_flt_grid);\n\n /**\n * List of containers IDs where external filters will be generated\n * @type {Array}\n */\n this.externalFltTgtIds = f.external_flt_grid_ids || [];\n\n /**\n * Callback fired after filters are generated\n * @type {Function}\n */\n this.onFiltersLoaded = isFn(f.on_filters_loaded) ?\n f.on_filters_loaded : EMPTY_FN;\n\n /**\n * Enable/disable single filter filtering all columns\n * @type {Boolean}\n */\n this.singleSearchFlt = Boolean(f.single_filter);\n\n /**\n * Callback fired after a row is validated during filtering\n * @type {Function}\n */\n this.onRowValidated = isFn(f.on_row_validated) ?\n f.on_row_validated : EMPTY_FN;\n\n /**\n * List of columns implementing custom filtering\n * @type {Array}\n */\n this.customCellDataCols = f.custom_cell_data_cols ?\n f.custom_cell_data_cols : [];\n\n /**\n * Delegate function for retrieving cell data with custom logic\n * @type {Function}\n */\n this.customCellData = isFn(f.custom_cell_data) ?\n f.custom_cell_data : EMPTY_FN;\n\n /**\n * Global watermark text for input filter type or watermark for each\n * filter if an array is supplied\n * @type {String|Array}\n */\n this.watermark = f.watermark || '';\n\n /**\n * Indicate whether watermark is on a per column basis\n * @type {Boolean}\n * @private\n */\n this.isWatermarkArray = isArray(this.watermark);\n\n /**\n * Toolbar's custom container ID\n * @type {String}\n */\n this.toolBarTgtId = f.toolbar_target_id || null;\n\n /**\n * Indicate whether help UI component is disabled\n * @type {Boolean}\n */\n this.help = isUndef(f.help_instructions) ?\n undefined : Boolean(f.help_instructions);\n\n /**\n * Indicate whether pop-up filters UI is enabled\n * @type {Boolean}\n */\n this.popupFilters = Boolean(f.popup_filters);\n\n /**\n * Indicate whether filtered (active) columns indicator is enabled\n * @type {Boolean}\n */\n this.markActiveColumns = Boolean(f.mark_active_columns);\n\n /**\n * Css class for filtered (active) columns\n * @type {String}\n */\n this.activeColumnsCssClass = f.active_columns_css_class ||\n 'activeHeader';\n\n /**\n * Callback fired before a column is marked as filtered\n * @type {Function}\n */\n this.onBeforeActiveColumn = isFn(f.on_before_active_column) ?\n f.on_before_active_column : EMPTY_FN;\n\n /**\n * Callback fired after a column is marked as filtered\n * @type {Function}\n */\n this.onAfterActiveColumn = isFn(f.on_after_active_column) ?\n f.on_after_active_column : EMPTY_FN;\n\n /*** select filter's customisation and behaviours ***/\n /**\n * Text for clear option in drop-down filter types (1st option)\n * @type {String|Array}\n */\n this.clearFilterText = f.clear_filter_text || 'Clear';\n\n /**\n * Indicate whether empty option is enabled in drop-down filter types\n * @type {Boolean}\n */\n this.enableEmptyOption = Boolean(f.enable_empty_option);\n\n /**\n * Text for empty option in drop-down filter types\n * @type {String}\n */\n this.emptyText = f.empty_text || '(Empty)';\n\n /**\n * Indicate whether non-empty option is enabled in drop-down filter\n * types\n * @type {Boolean}\n */\n this.enableNonEmptyOption = Boolean(f.enable_non_empty_option);\n\n /**\n * Text for non-empty option in drop-down filter types\n * @type {String}\n */\n this.nonEmptyText = f.non_empty_text || '(Non empty)';\n\n /**\n * Indicate whether drop-down filter types filter the table by default\n * on change event\n * @type {Boolean}\n */\n this.onSlcChange = f.on_change === false ? false : true;\n\n /**\n * Indicate whether options in drop-down filter types are sorted in a\n * alpha-numeric manner by default\n * @type {Boolean}\n */\n this.sortSlc = f.sort_select === false ? false : true;\n\n /**\n * Indicate whether options in drop-down filter types are sorted in a\n * ascending numeric manner\n * @type {Boolean}\n * @private\n */\n this.isSortNumAsc = Boolean(f.sort_num_asc);\n\n /**\n * List of columns implementing options sorting in a ascending numeric\n * manner\n * @type {Array}\n */\n this.sortNumAsc = this.isSortNumAsc ? f.sort_num_asc : [];\n\n /**\n * Indicate whether options in drop-down filter types are sorted in a\n * descending numeric manner\n * @type {Boolean}\n * @private\n */\n this.isSortNumDesc = Boolean(f.sort_num_desc);\n\n /**\n * List of columns implementing options sorting in a descending numeric\n * manner\n * @type {Array}\n */\n this.sortNumDesc = this.isSortNumDesc ? f.sort_num_desc : [];\n\n /**\n * Indicate whether drop-down filter types are populated on demand at\n * first usage\n * @type {Boolean}\n */\n this.loadFltOnDemand = Boolean(f.load_filters_on_demand);\n\n /**\n * Indicate whether custom drop-down filter options are implemented\n * @type {Boolean}\n */\n this.hasCustomOptions = isObj(f.custom_options);\n\n /**\n * Custom options definition of a per column basis, ie:\n *\tcustom_options: {\n * cols:[0, 1],\n * texts: [\n * ['a0', 'b0', 'c0'],\n * ['a1', 'b1', 'c1']\n * ],\n * values: [\n * ['a0', 'b0', 'c0'],\n * ['a1', 'b1', 'c1']\n * ],\n * sorts: [false, true]\n * }\n *\n * @type {Object}\n */\n this.customOptions = f.custom_options;\n\n /*** Filter operators ***/\n /**\n * Regular expression operator for input filter. Defaults to 'rgx:'\n * @type {String}\n */\n this.rgxOperator = f.regexp_operator || 'rgx:';\n\n /**\n * Empty cells operator for input filter. Defaults to '[empty]'\n * @type {String}\n */\n this.emOperator = f.empty_operator || '[empty]';\n\n /**\n * Non-empty cells operator for input filter. Defaults to '[nonempty]'\n * @type {String}\n */\n this.nmOperator = f.nonempty_operator || '[nonempty]';\n\n /**\n * Logical OR operator for input filter. Defaults to '||'\n * @type {String}\n */\n this.orOperator = f.or_operator || '||';\n\n /**\n * Logical AND operator for input filter. Defaults to '&&'\n * @type {String}\n */\n this.anOperator = f.and_operator || '&&';\n\n /**\n * Greater than operator for input filter. Defaults to '>'\n * @type {String}\n */\n this.grOperator = f.greater_operator || '>';\n\n /**\n * Lower than operator for input filter. Defaults to '<'\n * @type {String}\n */\n this.lwOperator = f.lower_operator || '<';\n\n /**\n * Lower than or equal operator for input filter. Defaults to '<='\n * @type {String}\n */\n this.leOperator = f.lower_equal_operator || '<=';\n\n /**\n * Greater than or equal operator for input filter. Defaults to '>='\n * @type {String}\n */\n this.geOperator = f.greater_equal_operator || '>=';\n\n /**\n * Inequality operator for input filter. Defaults to '!'\n * @type {String}\n */\n this.dfOperator = f.different_operator || '!';\n\n /**\n * Like operator for input filter. Defaults to '!'\n * @type {String}\n */\n this.lkOperator = f.like_operator || '*';\n\n /**\n * Strict equality operator for input filter. Defaults to '='\n * @type {String}\n */\n this.eqOperator = f.equal_operator || '=';\n\n /**\n * Starts with operator for input filter. Defaults to '='\n * @type {String}\n */\n this.stOperator = f.start_with_operator || '{';\n\n /**\n * Ends with operator for input filter. Defaults to '='\n * @type {String}\n */\n this.enOperator = f.end_with_operator || '}';\n\n // this.curExp = f.cur_exp || '^[¥£€$]';\n\n /**\n * Stored values separator\n * @type {String}\n */\n this.separator = f.separator || ',';\n\n /**\n * Enable rows counter UI component\n * @type {Boolean}\n */\n this.rowsCounter = Boolean(f.rows_counter);\n\n /**\n * Enable status bar UI component\n * @type {Boolean}\n */\n this.statusBar = Boolean(f.status_bar);\n\n /**\n * Enable activity/spinner indicator UI component\n * @type {Boolean}\n */\n this.loader = Boolean(f.loader);\n\n /*** validation - reset buttons/links ***/\n /**\n * Enable filters submission button\n * @type {Boolean}\n */\n this.displayBtn = Boolean(f.btn);\n\n /**\n * Define filters submission button text\n * @type {String}\n */\n this.btnText = f.btn_text || (!this.enableIcons ? 'Go' : '');\n\n /**\n * Css class for filters submission button\n * @type {String}\n */\n this.btnCssClass = f.btn_css_class ||\n (!this.enableIcons ? 'btnflt' : 'btnflt_icon');\n\n /**\n * Enable clear button\n * @type {Boolean}\n */\n this.btnReset = Boolean(f.btn_reset);\n\n /**\n * Callback fired before filters are cleared\n * @type {Function}\n */\n this.onBeforeReset = isFn(f.on_before_reset) ?\n f.on_before_reset : EMPTY_FN;\n\n /**\n * Callback fired after filters are cleared\n * @type {Function}\n */\n this.onAfterReset = isFn(f.on_after_reset) ?\n f.on_after_reset : EMPTY_FN;\n\n /**\n * Enable paging component\n * @type {Boolean}\n */\n this.paging = Boolean(f.paging);\n\n /**\n * Number of hidden rows\n * @type {Number}\n * @private\n */\n this.nbHiddenRows = 0;\n\n /**\n * Enable auto-filter behaviour, table is filtered when a user\n * stops typing\n * @type {Boolean}\n */\n this.autoFilter = Boolean(f.auto_filter);\n\n /**\n * Auto-filter delay in msecs\n * @type {Number}\n */\n this.autoFilterDelay = !isNaN(f.auto_filter_delay) ?\n f.auto_filter_delay : AUTO_FILTER_DELAY;\n\n /**\n * Indicate whether user is typing\n * @type {Boolean}\n * @private\n */\n this.isUserTyping = null;\n\n /**\n * Auto-filter interval ID\n * @type {String}\n * @private\n */\n this.autoFilterTimer = null;\n\n /**\n * Enable keyword highlighting behaviour\n * @type {Boolean}\n */\n this.highlightKeywords = Boolean(f.highlight_keywords);\n\n /**\n * Enable no results message UI component\n * @type {Boolean}\n */\n this.noResults = isObj(f.no_results_message) ||\n Boolean(f.no_results_message);\n\n /**\n * Enable state persistence\n * @type {Boolean}\n */\n this.state = isObj(f.state) || Boolean(f.state);\n\n /*** data types ***/\n\n /**\n * Define default locale, default to 'en' as per Sugar Date module:\n * https://sugarjs.com/docs/#/DateLocales\n * @type {String}\n */\n this.locale = f.locale || 'en';\n\n /**\n * Define thousands separator ',' or '.', defaults to ','\n * @type {String}\n */\n this.thousandsSeparator = f.thousands_separator || ',';\n\n /**\n * Define decimal separator ',' or '.', defaults to '.'\n * @type {String}\n */\n this.decimalSeparator = f.decimal_separator || '.';\n\n /**\n * Determine whether table has columns data types\n * @type {Boolean}\n * @private\n */\n this.hasColTypes = isArray(f.col_types);\n\n /**\n * Define data types on a column basis, possible values 'string',\n * 'number', 'formatted-number', 'date', 'ipaddress' ie:\n * col_types : [\n * 'string', 'date', 'number',\n * { type: 'formatted-number', decimal: ',', thousands: '.' },\n * { type: 'date', locale: 'en-gb' },\n * { type: 'date', format: ['{dd}-{months}-{yyyy|yy}'] }\n * ]\n *\n * Refer to https://sugarjs.com/docs/#/DateParsing for exhaustive\n * information on date parsing formats supported by Sugar Date\n * @type {Array}\n */\n this.colTypes = this.hasColTypes ? f.col_types : [];\n\n /*** ids prefixes ***/\n /**\n * Main prefix\n * @private\n */\n this.prfxTf = 'TF';\n\n /**\n * Filter's ID prefix (inputs - selects)\n * @private\n */\n this.prfxFlt = 'flt';\n\n /**\n * Button's ID prefix\n * @private\n */\n this.prfxValButton = 'btn';\n\n /**\n * Toolbar container ID prefix\n * @private\n */\n this.prfxInfDiv = 'inf_';\n\n /**\n * Toolbar left element ID prefix\n * @private\n */\n this.prfxLDiv = 'ldiv_';\n\n /**\n * Toolbar right element ID prefix\n * @private\n */\n this.prfxRDiv = 'rdiv_';\n\n /**\n * Toolbar middle element ID prefix\n * @private\n */\n this.prfxMDiv = 'mdiv_';\n\n /**\n * Responsive Css class\n * @private\n */\n this.prfxResponsive = 'resp';\n\n /*** extensions ***/\n /**\n * List of loaded extensions\n * @type {Array}\n * @private\n */\n this.extensions = f.extensions;\n\n /**\n * Determine whether extensions are loaded\n * @type {Boolean}\n * @private\n */\n this.hasExtensions = isArray(this.extensions);\n\n /*** themes ***/\n /**\n * Enable default theme\n * @type {Boolean}\n */\n this.enableDefaultTheme = Boolean(f.enable_default_theme);\n\n /**\n * Determine whether themes are enables\n * @type {Boolean}\n * @private\n */\n this.hasThemes = (this.enableDefaultTheme || isArray(f.themes));\n\n /**\n * List of themes, ie:\n * themes: [{ name: 'skyblue' }]\n * @type {Array}\n */\n this.themes = f.themes || [];\n\n /**\n * Define path to themes assets, defaults to\n * 'tablefilter/style/themes/'. Usage:\n * themes: [{ name: 'skyblue' }]\n * @type {Array}\n */\n this.themesPath = f.themes_path || this.stylePath + 'themes/';\n\n /**\n * Enable responsive layout\n * @type {Boolean}\n */\n this.responsive = Boolean(f.responsive);\n\n /**\n * Features registry\n * @private\n */\n this.Mod = {};\n\n /**\n * Extensions registry\n * @private\n */\n this.ExtRegistry = {};\n }\n\n /**\n * Initialise features and layout\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n this.nbCells = this.getCellsNb(this.refRow);\n let Mod = this.Mod;\n let n = this.singleSearchFlt ? 1 : this.nbCells;\n let inpclass;\n\n //loads stylesheet if not imported\n this.import(this.stylesheetId, this.stylesheet, null, 'link');\n\n //loads theme\n if (this.hasThemes) {\n this.loadThemes();\n }\n\n // Instanciate sugar date wrapper\n Mod.dateType = Mod.dateType || new DateType(this);\n Mod.dateType.init();\n\n // Instantiate help feature and initialise only if set true\n Mod.help = Mod.help || new Help(this);\n if (this.help) {\n Mod.help.init();\n }\n\n if (this.state) {\n Mod.state = Mod.state || new State(this);\n Mod.state.init();\n }\n\n if (this.gridLayout) {\n Mod.gridLayout = Mod.gridLayout || new GridLayout(this);\n Mod.gridLayout.init();\n }\n\n if (this.loader) {\n Mod.loader = Mod.loader || new Loader(this);\n Mod.loader.init();\n }\n\n if (this.highlightKeywords) {\n Mod.highlightKeyword = new HighlightKeyword(this);\n Mod.highlightKeyword.init();\n }\n\n if (this.popupFilters) {\n Mod.popupFilter = Mod.popupFilter || new PopupFilter(this);\n Mod.popupFilter.init();\n }\n\n //filters grid is not generated\n if (!this.fltGrid) {\n this._initNoFilters();\n } else {\n let fltrow = this._insertFiltersRow();\n\n this.nbFilterableRows = this.getRowsNb();\n\n // Generate filters\n for (let i = 0; i < n; i++) {\n this.emitter.emit('before-filter-init', this, i);\n\n let fltcell = createElm(this.fltCellTag),\n col = this.getFilterType(i);\n\n if (this.singleSearchFlt) {\n fltcell.colSpan = this.nbCells;\n }\n if (!this.gridLayout) {\n fltrow.appendChild(fltcell);\n }\n inpclass = (i === n - 1 && this.displayBtn) ?\n this.fltSmallCssClass : this.fltCssClass;\n\n //only 1 input for single search\n if (this.singleSearchFlt) {\n col = INPUT;\n inpclass = this.singleFltCssClass;\n }\n\n //drop-down filters\n if (col === SELECT || col === MULTIPLE) {\n if (!Mod.dropdown) {\n Mod.dropdown = new Dropdown(this);\n }\n Mod.dropdown.init(i, this.isExternalFlt, fltcell);\n }\n // checklist\n else if (col === CHECKLIST) {\n if (!Mod.checkList) {\n Mod.checkList = new CheckList(this);\n }\n Mod.checkList.init(i, this.isExternalFlt, fltcell);\n } else {\n this._buildInputFilter(i, inpclass, fltcell);\n }\n\n // this adds submit button\n if (i === n - 1 && this.displayBtn) {\n this._buildSubmitButton(i, fltcell);\n }\n\n this.emitter.emit('after-filter-init', this, i);\n }\n\n this.emitter.on(['filter-focus'],\n (tf, filter) => this.setActiveFilterId(filter.id));\n\n }//if this.fltGrid\n\n /* Features */\n if (this.hasVisibleRows) {\n this.emitter.on(['after-filtering'],\n () => this.enforceVisibility());\n this.enforceVisibility();\n }\n if (this.rowsCounter) {\n Mod.rowsCounter = new RowsCounter(this);\n Mod.rowsCounter.init();\n }\n if (this.statusBar) {\n Mod.statusBar = new StatusBar(this);\n Mod.statusBar.init();\n }\n if (this.paging) {\n if (!Mod.paging) {\n Mod.paging = new Paging(this);\n Mod.paging.init();\n } else {\n Mod.paging.reset();\n }\n }\n if (this.btnReset) {\n Mod.clearButton = new ClearButton(this);\n Mod.clearButton.init();\n }\n\n if (this.hasColWidths && !this.gridLayout) {\n this.setColWidths();\n }\n if (this.alternateRows) {\n Mod.alternateRows = new AlternateRows(this);\n Mod.alternateRows.init();\n }\n if (this.noResults) {\n Mod.noResults = Mod.noResults || new NoResults(this);\n Mod.noResults.init();\n }\n\n //TF css class is added to table\n if (!this.gridLayout) {\n addClass(this.tbl, this.prfxTf);\n if (this.responsive) {\n addClass(this.tbl, this.prfxResponsive);\n }\n }\n\n /* Loads extensions */\n if (this.hasExtensions) {\n this.initExtensions();\n }\n\n // Subscribe to events\n if (this.markActiveColumns) {\n this.emitter.on(['before-filtering'],\n () => this.clearActiveColumns());\n this.emitter.on(['cell-processed'],\n (tf, colIndex) => this.markActiveColumn(colIndex));\n }\n if (this.linkedFilters) {\n this.emitter.on(['after-filtering'], () => this.linkFilters());\n }\n\n /** @inherited */\n this.initialized = true;\n\n this.onFiltersLoaded(this);\n\n this.emitter.emit('initialized', this);\n }\n\n /**\n * Detect key\n * @param {Event} evt\n */\n detectKey(evt) {\n if (!this.enterKey) {\n return;\n }\n if (evt) {\n let key = keyCode(evt);\n if (key === ENTER_KEY) {\n this.filter();\n cancelEvt(evt);\n stopEvt(evt);\n } else {\n this.isUserTyping = true;\n root.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n }\n }\n }\n\n /**\n * Filter's keyup event: if auto-filter on, detect user is typing and filter\n * columns\n * @param {Event} evt\n */\n onKeyUp(evt) {\n if (!this.autoFilter) {\n return;\n }\n let key = keyCode(evt);\n this.isUserTyping = false;\n\n function filter() {\n root.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n if (!this.isUserTyping) {\n this.filter();\n this.isUserTyping = null;\n }\n }\n\n if (key !== ENTER_KEY && key !== TAB_KEY && key !== ESC_KEY &&\n key !== UP_ARROW_KEY && key !== DOWN_ARROW_KEY) {\n if (this.autoFilterTimer === null) {\n this.autoFilterTimer = root.setInterval(filter.bind(this),\n this.autoFilterDelay);\n }\n } else {\n root.clearInterval(this.autoFilterTimer);\n this.autoFilterTimer = null;\n }\n }\n\n /**\n * Filter's keydown event: if auto-filter on, detect user is typing\n */\n onKeyDown() {\n if (this.autoFilter) {\n this.isUserTyping = true;\n }\n }\n\n /**\n * Filter's focus event\n * @param {Event} evt\n */\n onInpFocus(evt) {\n let elm = targetEvt(evt);\n this.emitter.emit('filter-focus', this, elm);\n }\n\n /**\n * Filter's blur event: if auto-filter on, clear interval on filter blur\n */\n onInpBlur() {\n if (this.autoFilter) {\n this.isUserTyping = false;\n root.clearInterval(this.autoFilterTimer);\n }\n this.emitter.emit('filter-blur', this);\n }\n\n /**\n * Insert filters row at initialization\n */\n _insertFiltersRow() {\n // TODO: prevent filters row generation for popup filters too,\n // to reduce and simplify headers row index adjusting across lib modules\n // (GridLayout, PopupFilter etc)\n if (this.gridLayout) {\n return;\n }\n let fltrow;\n\n let thead = tag(this.tbl, 'thead');\n if (thead.length > 0) {\n fltrow = thead[0].insertRow(this.filtersRowIndex);\n } else {\n fltrow = this.tbl.insertRow(this.filtersRowIndex);\n }\n\n fltrow.className = this.fltsRowCssClass;\n\n if (this.isExternalFlt) {\n fltrow.style.display = NONE;\n }\n\n this.emitter.emit('filters-row-inserted', this, fltrow);\n return fltrow;\n }\n\n /**\n * Initialize filtersless table\n */\n _initNoFilters() {\n if (this.fltGrid) {\n return;\n }\n this.refRow = this.refRow > 0 ? this.refRow - 1 : 0;\n this.nbFilterableRows = this.getRowsNb();\n }\n\n /**\n * Build input filter type\n * @param {Number} colIndex Column index\n * @param {String} cssClass Css class applied to filter\n * @param {DOMElement} container Container DOM element\n */\n _buildInputFilter(colIndex, cssClass, container) {\n let col = this.getFilterType(colIndex);\n let externalFltTgtId = this.isExternalFlt ?\n this.externalFltTgtIds[colIndex] : null;\n let inpType = col === INPUT ? 'text' : 'hidden';\n let inp = createElm(INPUT,\n ['id', this.buildFilterId(colIndex)],\n ['type', inpType], ['ct', colIndex]);\n\n if (inpType !== 'hidden' && this.watermark) {\n inp.setAttribute('placeholder',\n this.isWatermarkArray ? (this.watermark[colIndex] || '') :\n this.watermark\n );\n }\n inp.className = cssClass || this.fltCssClass;\n addEvt(inp, 'focus', (evt) => this.onInpFocus(evt));\n\n //filter is appended in custom element\n if (externalFltTgtId) {\n elm(externalFltTgtId).appendChild(inp);\n } else {\n container.appendChild(inp);\n }\n\n this.fltIds.push(inp.id);\n\n addEvt(inp, 'keypress', (evt) => this.detectKey(evt));\n addEvt(inp, 'keydown', () => this.onKeyDown());\n addEvt(inp, 'keyup', (evt) => this.onKeyUp(evt));\n addEvt(inp, 'blur', () => this.onInpBlur());\n }\n\n /**\n * Build submit button\n * @param {Number} colIndex Column index\n * @param {DOMElement} container Container DOM element\n */\n _buildSubmitButton(colIndex, container) {\n let externalFltTgtId = this.isExternalFlt ?\n this.externalFltTgtIds[colIndex] : null;\n let btn = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnText]\n );\n btn.className = this.btnCssClass;\n\n //filter is appended in custom element\n if (externalFltTgtId) {\n elm(externalFltTgtId).appendChild(btn);\n } else {\n container.appendChild(btn);\n }\n\n addEvt(btn, 'click', () => this.filter());\n }\n\n /**\n * Return a feature instance for a given name\n * @param {String} name Name of the feature\n * @return {Object}\n */\n feature(name) {\n return this.Mod[name];\n }\n\n /**\n * Initialise all the extensions defined in the configuration object\n */\n initExtensions() {\n let exts = this.extensions;\n // Set config's publicPath dynamically for Webpack...\n __webpack_public_path__ = this.basePath;\n\n this.emitter.emit('before-loading-extensions', this);\n for (let i = 0, len = exts.length; i < len; i++) {\n let ext = exts[i];\n if (!this.ExtRegistry[ext.name]) {\n this.loadExtension(ext);\n }\n }\n this.emitter.emit('after-loading-extensions', this);\n }\n\n /**\n * Load an extension module\n * @param {Object} ext Extension config object\n */\n loadExtension(ext) {\n if (!ext || !ext.name) {\n return;\n }\n\n let name = ext.name;\n let path = ext.path;\n let modulePath;\n\n if (name && path) {\n modulePath = ext.path + name;\n } else {\n name = name.replace('.js', '');\n modulePath = 'extensions/{}/{}'.replace(/{}/g, name);\n }\n\n // Require pattern for Webpack\n require(['./' + modulePath], (mod) => {\n /* eslint-disable */\n let inst = new mod.default(this, ext);\n /* eslint-enable */\n inst.init();\n this.ExtRegistry[name] = inst;\n });\n }\n\n /**\n * Get an extension instance\n * @param {String} name Name of the extension\n * @return {Object} Extension instance\n */\n extension(name) {\n return this.ExtRegistry[name];\n }\n\n /**\n * Check passed extension name exists\n * @param {String} name Name of the extension\n * @return {Boolean}\n */\n hasExtension(name) {\n return !isEmpty(this.ExtRegistry[name]);\n }\n\n /**\n * Destroy all the extensions defined in the configuration object\n */\n destroyExtensions() {\n let exts = this.extensions;\n\n for (let i = 0, len = exts.length; i < len; i++) {\n let ext = exts[i];\n let extInstance = this.ExtRegistry[ext.name];\n if (extInstance) {\n extInstance.destroy();\n this.ExtRegistry[ext.name] = undefined;\n }\n }\n }\n\n /**\n * Load themes defined in the configuration object\n */\n loadThemes() {\n let themes = this.themes;\n this.emitter.emit('before-loading-themes', this);\n\n //Default theme config\n if (this.enableDefaultTheme) {\n let defaultTheme = { name: 'default' };\n this.themes.push(defaultTheme);\n }\n if (isArray(themes)) {\n for (let i = 0, len = themes.length; i < len; i++) {\n let theme = themes[i];\n let name = theme.name;\n let path = theme.path;\n let styleId = this.prfxTf + name;\n if (name && !path) {\n path = this.themesPath + name + '/' + name + '.css';\n }\n else if (!name && theme.path) {\n name = 'theme{0}'.replace('{0}', i);\n }\n\n if (!this.isImported(path, 'link')) {\n this.import(styleId, path, null, 'link');\n }\n }\n }\n\n // Enable loader indicator\n this.loader = true;\n\n this.emitter.emit('after-loading-themes', this);\n }\n\n /**\n * Return stylesheet DOM element for a given theme name\n * @return {DOMElement} stylesheet element\n */\n getStylesheet(name = 'default') {\n return elm(this.prfxTf + name);\n }\n\n /**\n * Destroy filter grid\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n let emitter = this.emitter;\n\n if (this.isExternalFlt && !this.popupFilters) {\n this.removeExternalFlts();\n }\n if (this.infDiv) {\n this.removeToolbar();\n }\n if (this.markActiveColumns) {\n this.clearActiveColumns();\n emitter.off(['before-filtering'], () => this.clearActiveColumns());\n emitter.off(['cell-processed'],\n (tf, colIndex) => this.markActiveColumn(colIndex));\n }\n if (this.hasExtensions) {\n this.destroyExtensions();\n }\n\n this.validateAllRows();\n\n if (this.fltGrid && !this.gridLayout) {\n this.tbl.deleteRow(this.filtersRowIndex);\n }\n\n // broadcast destroy event\n emitter.emit('destroy', this);\n\n // unsubscribe to events\n if (this.hasVisibleRows) {\n emitter.off(['after-filtering'], () => this.enforceVisibility());\n }\n if (this.linkedFilters) {\n emitter.off(['after-filtering'], () => this.linkFilters());\n }\n this.emitter.off(['filter-focus'],\n (tf, filter) => this.setActiveFilterId(filter.id));\n\n removeClass(this.tbl, this.prfxTf);\n removeClass(this.tbl, this.prfxResponsive);\n\n this.nbHiddenRows = 0;\n this.validRowsIndex = [];\n this.fltIds = [];\n this.initialized = false;\n }\n\n /**\n * Generate container element for paging, reset button, rows counter etc.\n */\n setToolbar() {\n if (this.infDiv) {\n return;\n }\n\n /*** container div ***/\n let infDiv = createElm('div');\n infDiv.className = this.infDivCssClass;\n\n //custom container\n if (this.toolBarTgtId) {\n elm(this.toolBarTgtId).appendChild(infDiv);\n }\n //grid-layout\n else if (this.gridLayout) {\n let gridLayout = this.Mod.gridLayout;\n gridLayout.tblMainCont.appendChild(infDiv);\n infDiv.className = gridLayout.infDivCssClass;\n }\n //default location: just above the table\n else {\n let cont = createElm('caption');\n cont.appendChild(infDiv);\n this.tbl.insertBefore(cont, this.tbl.firstChild);\n }\n this.infDiv = infDiv;\n\n /*** left div containing rows # displayer ***/\n let lDiv = createElm('div');\n lDiv.className = this.lDivCssClass;\n infDiv.appendChild(lDiv);\n this.lDiv = lDiv;\n\n /*** right div containing reset button\n + nb results per page select ***/\n let rDiv = createElm('div');\n rDiv.className = this.rDivCssClass;\n infDiv.appendChild(rDiv);\n this.rDiv = rDiv;\n\n /*** mid div containing paging elements ***/\n let mDiv = createElm('div');\n mDiv.className = this.mDivCssClass;\n infDiv.appendChild(mDiv);\n this.mDiv = mDiv;\n\n // emit help initialisation only if undefined\n if (isUndef(this.help)) {\n // explicitily set enabled field to true to initialise help by\n // default, only if setting is undefined\n this.Mod.help.enabled = true;\n this.emitter.emit('init-help', this);\n }\n }\n\n /**\n * Remove toolbar container element\n */\n removeToolbar() {\n if (!this.infDiv) {\n return;\n }\n removeElm(this.infDiv);\n this.infDiv = null;\n\n let tbl = this.tbl;\n let captions = tag(tbl, 'caption');\n if (captions.length > 0) {\n [].forEach.call(captions, (elm) => tbl.removeChild(elm));\n }\n }\n\n /**\n * Remove all the external column filters\n */\n removeExternalFlts() {\n if (!this.isExternalFlt) {\n return;\n }\n let ids = this.externalFltTgtIds,\n len = ids.length;\n for (let ct = 0; ct < len; ct++) {\n let externalFltTgtId = ids[ct],\n externalFlt = elm(externalFltTgtId);\n if (externalFlt) {\n externalFlt.innerHTML = '';\n }\n }\n }\n\n /**\n * Check if given column implements a filter with custom options\n * @param {Number} colIndex Column's index\n * @return {Boolean}\n */\n isCustomOptions(colIndex) {\n return this.hasCustomOptions &&\n this.customOptions.cols.indexOf(colIndex) !== -1;\n }\n\n /**\n * Returns an array [[value0, value1 ...],[text0, text1 ...]] with the\n * custom options values and texts\n * @param {Number} colIndex Column's index\n * @return {Array}\n */\n getCustomOptions(colIndex) {\n if (isEmpty(colIndex) || !this.isCustomOptions(colIndex)) {\n return;\n }\n\n let customOptions = this.customOptions;\n let cols = customOptions.cols;\n let optTxt = [], optArray = [];\n let index = cols.indexOf(colIndex);\n let slcValues = customOptions.values[index];\n let slcTexts = customOptions.texts[index];\n let slcSort = customOptions.sorts[index];\n\n for (let r = 0, len = slcValues.length; r < len; r++) {\n optArray.push(slcValues[r]);\n if (slcTexts[r]) {\n optTxt.push(slcTexts[r]);\n } else {\n optTxt.push(slcValues[r]);\n }\n }\n if (slcSort) {\n optArray.sort();\n optTxt.sort();\n }\n return [optArray, optTxt];\n }\n\n /**\n * Filter the table by retrieving the data from each cell in every single\n * row and comparing it to the search term for current column. A row is\n * hidden when all the search terms are not found in inspected row.\n */\n filter() {\n if (!this.fltGrid || !this.initialized) {\n return;\n }\n //fire onbefore callback\n this.onBeforeFilter(this);\n this.emitter.emit('before-filtering', this);\n\n let row = this.tbl.rows,\n nbRows = this.getRowsNb(true),\n hiddenRows = 0;\n\n this.validRowsIndex = [];\n // search args re-init\n let searchArgs = this.getFiltersValue();\n\n for (let k = this.refRow; k < nbRows; k++) {\n // already filtered rows display re-init\n row[k].style.display = '';\n\n let cells = row[k].cells;\n let nchilds = cells.length;\n\n // checks if row has exact cell #\n if (nchilds !== this.nbCells) {\n continue;\n }\n\n let occurence = [],\n isRowValid = true,\n //only for single filter search\n singleFltRowValid = false;\n\n // this loop retrieves cell data\n for (let j = 0; j < nchilds; j++) {\n //searched keyword\n let sA = searchArgs[this.singleSearchFlt ? 0 : j];\n\n if (sA === '') {\n continue;\n }\n\n let cellValue = matchCase(this.getCellValue(cells[j]),\n this.caseSensitive);\n\n //multiple search parameter operator ||\n let sAOrSplit = sA.toString().split(this.orOperator),\n //multiple search || parameter boolean\n hasMultiOrSA = sAOrSplit.length > 1,\n //multiple search parameter operator &&\n sAAndSplit = sA.toString().split(this.anOperator),\n //multiple search && parameter boolean\n hasMultiAndSA = sAAndSplit.length > 1;\n\n //detect operators or array query\n if (isArray(sA) || hasMultiOrSA || hasMultiAndSA) {\n let cS,\n s,\n occur = false;\n if (isArray(sA)) {\n s = sA;\n } else {\n s = hasMultiOrSA ? sAOrSplit : sAAndSplit;\n }\n // isolate search term and check occurence in cell data\n for (let w = 0, len = s.length; w < len; w++) {\n cS = trim(s[w]);\n occur = this._testTerm(cS, cellValue, j);\n\n if (occur) {\n this.emitter.emit('highlight-keyword', this,\n cells[j], cS);\n }\n if ((hasMultiOrSA && occur) ||\n (hasMultiAndSA && !occur)) {\n break;\n }\n if (isArray(sA) && occur) {\n break;\n }\n }\n occurence[j] = occur;\n\n }\n //single search parameter\n else {\n occurence[j] = this._testTerm(trim(sA), cellValue, j);\n if (occurence[j]) {\n this.emitter.emit('highlight-keyword', this, cells[j],\n sA);\n }\n }//else single param\n\n if (!occurence[j]) {\n isRowValid = false;\n }\n if (this.singleSearchFlt && occurence[j]) {\n singleFltRowValid = true;\n }\n\n this.emitter.emit('cell-processed', this, j, cells[j]);\n }//for j\n\n if (this.singleSearchFlt && singleFltRowValid) {\n isRowValid = true;\n }\n\n this.validateRow(k, isRowValid);\n if (!isRowValid) {\n hiddenRows++;\n }\n\n this.emitter.emit('row-processed', this, k,\n this.validRowsIndex.length, isRowValid);\n }// for k\n\n this.nbHiddenRows = hiddenRows;\n\n //fire onafterfilter callback\n this.onAfterFilter(this);\n\n this.emitter.emit('after-filtering', this, searchArgs);\n }\n\n /**\n * Test for a match of search term in cell data\n * @param {String} term Search term\n * @param {String} cellValue Cell data\n * @param {Number} colIdx Column index\n * @returns {Boolean}\n */\n _testTerm(term, cellValue, colIdx) {\n let numData;\n let decimal = this.decimalSeparator;\n let reLe = new RegExp(this.leOperator),\n reGe = new RegExp(this.geOperator),\n reL = new RegExp(this.lwOperator),\n reG = new RegExp(this.grOperator),\n reD = new RegExp(this.dfOperator),\n reLk = new RegExp(rgxEsc(this.lkOperator)),\n reEq = new RegExp(this.eqOperator),\n reSt = new RegExp(this.stOperator),\n reEn = new RegExp(this.enOperator),\n // re_an = new RegExp(this.anOperator),\n // re_cr = new RegExp(this.curExp),\n reEm = this.emOperator,\n reNm = this.nmOperator,\n reRe = new RegExp(rgxEsc(this.rgxOperator));\n\n term = matchCase(term, this.caseSensitive);\n\n let occurence = false;\n\n //Search arg operator tests\n let hasLO = reL.test(term),\n hasLE = reLe.test(term),\n hasGR = reG.test(term),\n hasGE = reGe.test(term),\n hasDF = reD.test(term),\n hasEQ = reEq.test(term),\n hasLK = reLk.test(term),\n // hatermN = re_an.test(term),\n hasST = reSt.test(term),\n hasEN = reEn.test(term),\n hasEM = (reEm === term),\n hasNM = (reNm === term),\n hasRE = reRe.test(term);\n\n // Check for dates or resolve date type\n if (this.hasType(colIdx, [DATE])) {\n let dte1, dte2;\n\n let dateType = this.Mod.dateType;\n let isValidDate = dateType.isValid.bind(dateType);\n let parseDate = dateType.parse.bind(dateType);\n let locale = dateType.getOptions(colIdx).locale || this.locale;\n\n // Search arg dates tests\n let isLDate = hasLO &&\n isValidDate(term.replace(reL, ''), locale);\n let isLEDate = hasLE &&\n isValidDate(term.replace(reLe, ''), locale);\n let isGDate = hasGR &&\n isValidDate(term.replace(reG, ''), locale);\n let isGEDate = hasGE &&\n isValidDate(term.replace(reGe, ''), locale);\n let isDFDate = hasDF &&\n isValidDate(term.replace(reD, ''), locale);\n let isEQDate = hasEQ &&\n isValidDate(term.replace(reEq, ''), locale);\n\n dte1 = parseDate(cellValue, locale);\n\n // lower equal date\n if (isLEDate) {\n dte2 = parseDate(term.replace(reLe, ''), locale);\n occurence = dte1 <= dte2;\n }\n // lower date\n else if (isLDate) {\n dte2 = parseDate(term.replace(reL, ''), locale);\n occurence = dte1 < dte2;\n }\n // greater equal date\n else if (isGEDate) {\n dte2 = parseDate(term.replace(reGe, ''), locale);\n occurence = dte1 >= dte2;\n }\n // greater date\n else if (isGDate) {\n dte2 = parseDate(term.replace(reG, ''), locale);\n occurence = dte1 > dte2;\n }\n // different date\n else if (isDFDate) {\n dte2 = parseDate(term.replace(reD, ''), locale);\n occurence = dte1.toString() !== dte2.toString();\n }\n // equal date\n else if (isEQDate) {\n dte2 = parseDate(term.replace(reEq, ''), locale);\n occurence = dte1.toString() === dte2.toString();\n }\n // searched keyword with * operator doesn't have to be a date\n else if (reLk.test(term)) {// like date\n occurence = contains(term.replace(reLk, ''), cellValue,\n false, this.caseSensitive);\n }\n else if (isValidDate(term)) {\n dte2 = parseDate(term, locale);\n occurence = dte1.toString() === dte2.toString();\n }\n //empty\n else if (hasEM) {\n occurence = isEmptyString(cellValue);\n }\n //non-empty\n else if (hasNM) {\n occurence = !isEmptyString(cellValue);\n } else {\n occurence = contains(term, cellValue,\n this.isExactMatch(colIdx), this.caseSensitive);\n }\n }\n\n else {\n if (this.hasType(colIdx, [FORMATTED_NUMBER])) {\n let colType = this.colTypes[colIdx];\n if (colType.hasOwnProperty('decimal')) {\n decimal = colType.decimal;\n }\n }\n // Convert to number anyways to auto-resolve type in case not\n // defined by configuration\n numData = Number(cellValue) || parseNb(cellValue, decimal);\n\n // first checks if there is any operator (<,>,<=,>=,!,*,=,{,},\n // rgx:)\n // lower equal\n if (hasLE) {\n occurence = numData <= parseNb(\n term.replace(reLe, ''),\n decimal\n );\n }\n //greater equal\n else if (hasGE) {\n occurence = numData >= parseNb(\n term.replace(reGe, ''),\n decimal\n );\n }\n //lower\n else if (hasLO) {\n occurence = numData < parseNb(\n term.replace(reL, ''),\n decimal\n );\n }\n //greater\n else if (hasGR) {\n occurence = numData > parseNb(\n term.replace(reG, ''),\n decimal\n );\n }\n //different\n else if (hasDF) {\n occurence = contains(term.replace(reD, ''), cellValue,\n false, this.caseSensitive) ? false : true;\n }\n //like\n else if (hasLK) {\n occurence = contains(term.replace(reLk, ''), cellValue,\n false, this.caseSensitive);\n }\n //equal\n else if (hasEQ) {\n occurence = contains(term.replace(reEq, ''), cellValue,\n true, this.caseSensitive);\n }\n //starts with\n else if (hasST) {\n occurence = cellValue.indexOf(term.replace(reSt, '')) === 0 ?\n true : false;\n }\n //ends with\n else if (hasEN) {\n let searchArg = term.replace(reEn, '');\n occurence =\n cellValue.lastIndexOf(searchArg, cellValue.length - 1) ===\n (cellValue.length - 1) - (searchArg.length - 1) &&\n cellValue.lastIndexOf(searchArg, cellValue.length - 1)\n > -1 ? true : false;\n }\n //empty\n else if (hasEM) {\n occurence = isEmptyString(cellValue);\n }\n //non-empty\n else if (hasNM) {\n occurence = !isEmptyString(cellValue);\n }\n //regexp\n else if (hasRE) {\n //in case regexp throws\n try {\n //operator is removed\n let srchArg = term.replace(reRe, '');\n let rgx = new RegExp(srchArg);\n occurence = rgx.test(cellValue);\n } catch (ex) {\n occurence = false;\n }\n } else {\n // If numeric type data, perform a strict equality test and\n // fallback to unformatted number string comparison\n if (numData &&\n this.hasType(colIdx, [NUMBER, FORMATTED_NUMBER]) &&\n !this.singleSearchFlt) {\n // parseNb can return 0 for strings which are not\n // formatted numbers, in that case return the original\n // string. TODO: handle this in parseNb\n term = parseNb(term, decimal) || term;\n occurence = numData === term ||\n contains(term.toString(), numData.toString(),\n this.isExactMatch(colIdx), this.caseSensitive);\n } else {\n // Finally test search term is contained in cell data\n occurence = contains(\n term,\n cellValue,\n this.isExactMatch(colIdx),\n this.caseSensitive,\n this.ignoresDiacritics(colIdx)\n );\n }\n }\n\n }//else\n\n return occurence;\n }\n\n /**\n * Return the data of a specified column\n * @param {Number} colIndex Column index\n * @param {Boolean} [includeHeaders=false] Include headers row\n * @param {Boolean} [typed=true] Return a typed value\n * @param {Array} [exclude=[]] List of row indexes to be excluded\n * @return {Array} Flat list of data for a column\n */\n getColValues(\n colIndex,\n includeHeaders = false,\n typed = false,\n exclude = []\n ) {\n let row = this.tbl.rows;\n let nbRows = this.getRowsNb(true);\n let colValues = [];\n let getContent = typed ? this.getCellData.bind(this) :\n this.getCellValue.bind(this);\n\n if (includeHeaders) {\n colValues.push(this.getHeadersText()[colIndex]);\n }\n\n for (let i = this.refRow; i < nbRows; i++) {\n let isExludedRow = false;\n // checks if current row index appears in exclude array\n if (exclude.length > 0) {\n isExludedRow = exclude.indexOf(i) !== -1;\n }\n let cell = row[i].cells,\n nchilds = cell.length;\n\n // checks if row has exact cell # and is not excluded\n if (nchilds === this.nbCells && !isExludedRow) {\n // this loop retrieves cell data\n for (let j = 0; j < nchilds; j++) {\n if (j !== colIndex) {\n continue;\n }\n let data = getContent(cell[j]);\n colValues.push(data);\n }\n }\n }\n return colValues;\n }\n\n /**\n * Return the filter's value of a specified column\n * @param {Number} index Column index\n * @return {String} Filter value\n */\n getFilterValue(index) {\n if (!this.fltGrid) {\n return;\n }\n let fltValue = '';\n let flt = this.getFilterElement(index);\n if (!flt) {\n return fltValue;\n }\n\n let fltColType = this.getFilterType(index);\n if (fltColType !== MULTIPLE && fltColType !== CHECKLIST) {\n fltValue = flt.value;\n }\n //mutiple select\n else if (fltColType === MULTIPLE) {\n fltValue = this.feature('dropdown').getValues(index);\n }\n //checklist\n else if (fltColType === CHECKLIST) {\n fltValue = this.feature('checkList').getValues(index);\n }\n //return an empty string if collection is empty or contains a single\n //empty string\n if (isArray(fltValue) && fltValue.length === 0 ||\n (fltValue.length === 1 && fltValue[0] === '')) {\n fltValue = '';\n }\n\n return fltValue;\n }\n\n /**\n * Return the filters' values\n * @return {Array} List of filters' values\n */\n getFiltersValue() {\n if (!this.fltGrid) {\n return;\n }\n let searchArgs = [];\n for (let i = 0, len = this.fltIds.length; i < len; i++) {\n let fltValue = this.getFilterValue(i);\n if (isArray(fltValue)) {\n searchArgs.push(fltValue);\n } else {\n searchArgs.push(trim(fltValue));\n }\n }\n return searchArgs;\n }\n\n /**\n * Return the ID of a specified column's filter\n * @param {Number} index Column's index\n * @return {String} ID of the filter element\n */\n getFilterId(index) {\n if (!this.fltGrid) {\n return;\n }\n return this.fltIds[index];\n }\n\n /**\n * Return the list of ids of filters matching a specified type.\n * Note: hidden filters are also returned\n *\n * @param {String} type Filter type string ('input', 'select', 'multiple',\n * 'checklist')\n * @param {Boolean} bool If true returns columns indexes instead of IDs\n * @return {[type]} List of element IDs or column indexes\n */\n getFiltersByType(type, bool) {\n if (!this.fltGrid) {\n return;\n }\n let arr = [];\n for (let i = 0, len = this.fltIds.length; i < len; i++) {\n let fltType = this.getFilterType(i);\n if (fltType === type.toLowerCase()) {\n let a = bool ? i : this.fltIds[i];\n arr.push(a);\n }\n }\n return arr;\n }\n\n /**\n * Return the filter's DOM element for a given column\n * @param {Number} index Column's index\n * @return {DOMElement}\n */\n getFilterElement(index) {\n let fltId = this.fltIds[index];\n return elm(fltId);\n }\n\n /**\n * Return the number of cells for a given row index\n * @param {Number} rowIndex Index of the row\n * @return {Number} Number of cells\n */\n getCellsNb(rowIndex = 0) {\n let tr = this.tbl.rows[rowIndex >= 0 ? rowIndex : 0];\n return tr ? tr.cells.length : 0;\n }\n\n /**\n * Return the number of filterable rows starting from reference row if\n * defined\n * @param {Boolean} includeHeaders Include the headers row\n * @return {Number} Number of filterable rows\n */\n getRowsNb(includeHeaders) {\n let s = isUndef(this.refRow) ? 0 : this.refRow;\n let ntrs = this.tbl.rows.length;\n if (includeHeaders) {\n s = 0;\n }\n return parseInt(ntrs - s, 10);\n }\n\n\n /**\n * Return the text content of a given cell\n * @param {DOMElement} Cell's DOM element\n * @returns {String}\n */\n getCellValue(cell) {\n let idx = cell.cellIndex;\n //CallcustomCellData callback\n if (this.customCellDataCols.indexOf(idx) !== -1) {\n return this.customCellData(this, cell, idx);\n } else {\n return getText(cell);\n }\n }\n\n /**\n * Return the typed data of a given cell based on the column type definition\n * @param {DOMElement} cell Cell's DOM element\n * @return {String|Number|Date}\n */\n getCellData(cell) {\n let colIndex = cell.cellIndex;\n let value = this.getCellValue(cell);\n\n if (this.hasType(colIndex, [FORMATTED_NUMBER])) {\n let decimal = this.decimalSeparator;\n let colType = this.colTypes[colIndex];\n if (colType.hasOwnProperty('decimal')) {\n decimal = colType.decimal;\n }\n return parseNb(value, decimal);\n }\n else if (this.hasType(colIndex, [NUMBER])) {\n return Number(value);\n }\n else if (this.hasType(colIndex, [DATE])){\n let dateType = this.Mod.dateType;\n let locale = dateType.getOptions(colIndex).locale || this.locale;\n return dateType.parse(value, locale);\n }\n\n return value;\n }\n\n /**\n * Return the table data with following format:\n * [\n * [rowIndex, [value0, value1...]],\n * [rowIndex, [value0, value1...]]\n * ]\n * @param {Boolean} [includeHeaders=false] Include headers row\n * @param {Boolean} [excludeHiddenCols=false] Exclude hidden columns\n * @param {Boolean} [typed=false] Return typed value\n * @return {Array}\n *\n * TODO: provide an API returning data in JSON format\n */\n getTableData(\n includeHeaders = false,\n excludeHiddenCols = false,\n typed = false\n ) {\n let rows = this.tbl.rows;\n let nbRows = this.getRowsNb(true);\n let tblData = [];\n let getContent = typed ? this.getCellData.bind(this) :\n this.getCellValue.bind(this);\n\n if (includeHeaders) {\n let headers = this.getHeadersText(excludeHiddenCols);\n tblData.push([this.getHeadersRowIndex(), headers]);\n }\n for (let k = this.refRow; k < nbRows; k++) {\n let rowData = [k, []];\n let cells = rows[k].cells;\n for (let j = 0, len = cells.length; j < len; j++) {\n if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n if (this.extension('colsVisibility').isColHidden(j)) {\n continue;\n }\n }\n let cellValue = getContent(cells[j]);\n rowData[1].push(cellValue);\n }\n tblData.push(rowData);\n }\n return tblData;\n }\n\n /**\n * Return the filtered data with following format:\n * [\n * [rowIndex, [value0, value1...]],\n * [rowIndex, [value0, value1...]]\n * ]\n * @param {Boolean} [includeHeaders=false] Include headers row\n * @param {Boolean} [excludeHiddenCols=false] Exclude hidden columns\n * @param {Boolean} [typed=false] Return typed value\n * @return {Array}\n *\n * TODO: provide an API returning data in JSON format\n */\n getFilteredData(\n includeHeaders = false,\n excludeHiddenCols = false,\n typed = false\n ) {\n if (!this.validRowsIndex) {\n return [];\n }\n let rows = this.tbl.rows,\n filteredData = [];\n let getContent = typed ? this.getCellData.bind(this) :\n this.getCellValue.bind(this);\n\n if (includeHeaders) {\n let headers = this.getHeadersText(excludeHiddenCols);\n filteredData.push([this.getHeadersRowIndex(), headers]);\n }\n\n let validRows = this.getValidRows(true);\n for (let i = 0; i < validRows.length; i++) {\n let rData = [this.validRowsIndex[i], []],\n cells = rows[this.validRowsIndex[i]].cells;\n for (let k = 0; k < cells.length; k++) {\n if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n if (this.extension('colsVisibility').isColHidden(k)) {\n continue;\n }\n }\n let cellValue = getContent(cells[k]);\n rData[1].push(cellValue);\n }\n filteredData.push(rData);\n }\n return filteredData;\n }\n\n /**\n * Return the filtered data for a given column index\n * @param {Number} colIndex Colmun's index\n * @param {Boolean} [includeHeaders=false] Include headers row\n * @param {Boolean} [typed=false] Return typed value\n * @param {Array} [exclude=[]] List of row indexes to be excluded\n * @param {Boolean} [visible=true] Return only filtered and visible data\n * (relevant for paging)\n * @return {Array} Flat list of values ['val0','val1','val2'...]\n *\n * TODO: provide an API returning data in JSON format\n */\n getFilteredDataCol(\n colIndex,\n includeHeaders = false,\n typed = false,\n exclude = [],\n visible = true\n ) {\n if (isUndef(colIndex)) {\n return [];\n }\n\n let rows = this.tbl.rows;\n let getContent = typed ? this.getCellData.bind(this) :\n this.getCellValue.bind(this);\n\n // ensure valid rows index do not contain excluded rows and row is\n // displayed\n let validRows = this.getValidRows(true).filter((rowIdx) => {\n return exclude.indexOf(rowIdx) === -1 &&\n (visible ?\n this.getRowDisplay(rows[rowIdx]) !== 'none' :\n true);\n });\n\n // convert column value to expected type if necessary\n let validColValues = validRows.map((rowIdx) => {\n return getContent(rows[rowIdx].cells[colIndex]);\n });\n\n if (includeHeaders) {\n validColValues.unshift(this.getHeadersText()[colIndex]);\n }\n\n return validColValues;\n }\n\n /**\n * Get the display value of a row\n * @param {HTMLTableRowElement} row DOM element of the row\n * @return {String} Usually 'none' or ''\n */\n getRowDisplay(row) {\n return row.style.display;\n }\n\n /**\n * Validate/invalidate row by setting the 'validRow' attribute on the row\n * @param {Number} rowIndex Index of the row\n * @param {Boolean} isValid\n */\n validateRow(rowIndex, isValid) {\n let row = this.tbl.rows[rowIndex];\n if (!row || typeof isValid !== 'boolean') {\n return;\n }\n\n // always visible rows are valid\n if (this.hasVisibleRows && this.visibleRows.indexOf(rowIndex) !== -1) {\n isValid = true;\n }\n\n let displayFlag = isValid ? '' : NONE,\n validFlag = isValid ? 'true' : 'false';\n row.style.display = displayFlag;\n\n if (this.paging) {\n row.setAttribute('validRow', validFlag);\n }\n\n if (isValid) {\n if (this.validRowsIndex.indexOf(rowIndex) === -1) {\n this.validRowsIndex.push(rowIndex);\n }\n\n this.onRowValidated(this, rowIndex);\n\n this.emitter.emit('row-validated', this, rowIndex);\n }\n }\n\n /**\n * Validate all filterable rows\n */\n validateAllRows() {\n if (!this.initialized) {\n return;\n }\n this.validRowsIndex = [];\n for (let k = this.refRow; k < this.nbFilterableRows; k++) {\n this.validateRow(k, true);\n }\n }\n\n /**\n * Set search value to a given filter\n * @param {Number} index Column's index\n * @param {String or Array} query searcharg Search term\n */\n setFilterValue(index, query = '') {\n if (!this.fltGrid) {\n return;\n }\n let slc = this.getFilterElement(index),\n fltColType = this.getFilterType(index);\n\n if (fltColType !== MULTIPLE && fltColType !== CHECKLIST) {\n if (this.loadFltOnDemand && !this.initialized) {\n this.emitter.emit('build-select-filter', this, index,\n this.linkedFilters, this.isExternalFlt);\n }\n slc.value = query;\n }\n //multiple selects\n else if (fltColType === MULTIPLE) {\n let values = isArray(query) ? query :\n query.split(' ' + this.orOperator + ' ');\n\n if (this.loadFltOnDemand && !this.initialized) {\n this.emitter.emit('build-select-filter', this, index,\n this.linkedFilters, this.isExternalFlt);\n }\n\n this.emitter.emit('select-options', this, index, values);\n }\n //checklist\n else if (fltColType === CHECKLIST) {\n let values = [];\n if (this.loadFltOnDemand && !this.initialized) {\n this.emitter.emit('build-checklist-filter', this, index,\n this.linkedFilters);\n }\n if (isArray(query)) {\n values = query;\n } else {\n query = matchCase(query, this.caseSensitive);\n values = query.split(' ' + this.orOperator + ' ');\n }\n\n this.emitter.emit('select-checklist-options', this, index, values);\n }\n }\n\n /**\n * Set them columns' widths as per configuration\n * @param {Element} tbl DOM element\n */\n setColWidths(tbl) {\n if (!this.hasColWidths) {\n return;\n }\n tbl = tbl || this.tbl;\n\n let nbCols = this.nbCells;\n let colWidths = this.colWidths;\n let colTags = tag(tbl, 'col');\n let tblHasColTag = colTags.length > 0;\n let frag = !tblHasColTag ? doc.createDocumentFragment() : null;\n for (let k = 0; k < nbCols; k++) {\n let col;\n if (tblHasColTag) {\n col = colTags[k];\n } else {\n col = createElm('col');\n frag.appendChild(col);\n }\n col.style.width = colWidths[k];\n }\n if (!tblHasColTag) {\n tbl.insertBefore(frag, tbl.firstChild);\n }\n }\n\n /**\n * Makes defined rows always visible\n */\n enforceVisibility() {\n if (!this.hasVisibleRows) {\n return;\n }\n let nbRows = this.getRowsNb(true);\n for (let i = 0, len = this.visibleRows.length; i < len; i++) {\n let row = this.visibleRows[i];\n //row index cannot be > nrows\n if (row <= nbRows) {\n this.validateRow(row, true);\n }\n }\n }\n\n /**\n * Clear all the filters' values\n */\n clearFilters() {\n if (!this.fltGrid) {\n return;\n }\n\n this.emitter.emit('before-clearing-filters', this);\n this.onBeforeReset(this, this.getFiltersValue());\n\n for (let i = 0, len = this.fltIds.length; i < len; i++) {\n this.setFilterValue(i, '');\n }\n\n this.filter();\n\n this.onAfterReset(this);\n this.emitter.emit('after-clearing-filters', this);\n }\n\n /**\n * Clears filtered columns visual indicator (background color)\n */\n clearActiveColumns() {\n for (let i = 0, len = this.getCellsNb(this.headersRow); i < len; i++) {\n removeClass(this.getHeaderElement(i), this.activeColumnsCssClass);\n }\n }\n\n /**\n * Mark currently filtered column\n * @param {Number} colIndex Column index\n */\n markActiveColumn(colIndex) {\n let header = this.getHeaderElement(colIndex);\n if (hasClass(header, this.activeColumnsCssClass)) {\n return;\n }\n this.onBeforeActiveColumn(this, colIndex);\n\n addClass(header, this.activeColumnsCssClass);\n\n this.onAfterActiveColumn(this, colIndex);\n }\n\n /**\n * Return the ID of the current active filter\n * @returns {String}\n */\n getActiveFilterId() {\n return this.activeFilterId;\n }\n\n /**\n * Set the ID of the current active filter\n * @param {String} filterId Element ID\n */\n setActiveFilterId(filterId) {\n this.activeFilterId = filterId;\n }\n\n /**\n * Return the column index for a given filter ID\n * @param {string} [filterId=''] Filter ID\n * @returns {Number} Column index\n */\n getColumnIndexFromFilterId(filterId = '') {\n let idx = filterId.split('_')[0];\n idx = idx.split(this.prfxFlt)[1];\n return parseInt(idx, 10);\n }\n\n /**\n * Builds filter element ID for a given column index\n * @param {any} colIndex\n * @returns {String} Filter element ID string\n * @private\n */\n buildFilterId(colIndex) {\n return `${this.prfxFlt}${colIndex}_${this.id}`;\n }\n\n /**\n * Make specified column's filter active\n * @param colIndex Index of a column\n */\n activateFilter(colIndex) {\n if (isUndef(colIndex)) {\n return;\n }\n this.setActiveFilterId(this.getFilterId(colIndex));\n }\n\n /**\n * Refresh the filters subject to linking ('select', 'multiple',\n * 'checklist' type)\n */\n linkFilters() {\n if (!this.linkedFilters || !this.activeFilterId) {\n return;\n }\n let slcA1 = this.getFiltersByType(SELECT, true),\n slcA2 = this.getFiltersByType(MULTIPLE, true),\n slcA3 = this.getFiltersByType(CHECKLIST, true),\n slcIndex = slcA1.concat(slcA2);\n slcIndex = slcIndex.concat(slcA3);\n\n let activeIdx = this.getColumnIndexFromFilterId(this.activeFilterId);\n\n for (let i = 0, len = slcIndex.length; i < len; i++) {\n let colIdx = slcIndex[i];\n let curSlc = elm(this.fltIds[colIdx]);\n let slcSelectedValue = this.getFilterValue(colIdx);\n\n // Welcome to cyclomatic complexity hell :)\n // TODO: simplify/refactor if statement\n if (activeIdx !== colIdx ||\n (this.paging && slcA1.indexOf(colIdx) !== -1 &&\n activeIdx === colIdx) ||\n (!this.paging && (slcA3.indexOf(colIdx) !== -1 ||\n slcA2.indexOf(colIdx) !== -1)) ||\n slcSelectedValue === this.getClearFilterText(colIdx)) {\n\n //1st option needs to be inserted\n if (this.loadFltOnDemand) {\n let opt0 = createOpt(this.getClearFilterText(colIdx), '');\n curSlc.innerHTML = '';\n curSlc.appendChild(opt0);\n }\n\n if (slcA3.indexOf(colIdx) !== -1) {\n this.emitter.emit('build-checklist-filter', this, colIdx,\n true);\n } else {\n this.emitter.emit('build-select-filter', this, colIdx,\n true);\n }\n\n this.setFilterValue(colIdx, slcSelectedValue);\n }\n }\n }\n\n /**\n * Determines if passed filter column implements exact query match\n * @param {Number} colIndex Column index\n * @return {Boolean}\n */\n isExactMatch(colIndex) {\n let fltType = this.getFilterType(colIndex);\n return this.exactMatchByCol[colIndex] || this.exactMatch ||\n fltType !== INPUT;\n }\n\n /**\n * Checks if passed row is valid\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n */\n isRowValid(rowIndex) {\n return this.getValidRows().indexOf(rowIndex) !== -1;\n }\n\n /**\n * Checks if passed row is visible\n * @param {Number} rowIndex Row index\n * @returns {Boolean}\n */\n isRowDisplayed(rowIndex) {\n let row = this.tbl.rows[rowIndex];\n return this.getRowDisplay(row) === '';\n }\n\n /**\n * Checks if specified column filter ignores diacritics.\n * Note this is only applicable to input filter types.\n * @param {Number} colIndex Column index\n * @returns {Boolean}\n */\n ignoresDiacritics(colIndex) {\n let ignoreDiac = this.ignoreDiacritics;\n if (isArray(ignoreDiac)) {\n return ignoreDiac[colIndex];\n }\n return Boolean(ignoreDiac);\n }\n\n /**\n * Returns clear all text for specified filter column\n * @param {Number} colIndex Column index\n * @returns {String}\n */\n getClearFilterText(colIndex) {\n let clearText = this.clearFilterText;\n if (isArray(clearText)) {\n return clearText[colIndex];\n }\n return clearText;\n }\n\n /**\n * Check if passed script or stylesheet is already imported\n * @param {String} filePath Ressource path\n * @param {String} type Possible values: 'script' or 'link'\n * @return {Boolean}\n */\n isImported(filePath, type = 'script') {\n let imported = false,\n attr = type === 'script' ? 'src' : 'href',\n files = tag(doc, type);\n for (let i = 0, len = files.length; i < len; i++) {\n if (isUndef(files[i][attr])) {\n continue;\n }\n if (files[i][attr].match(filePath)) {\n imported = true;\n break;\n }\n }\n return imported;\n }\n\n /**\n * Import script or stylesheet\n * @param {String} fileId Ressource ID\n * @param {String} filePath Ressource path\n * @param {Function} callback Callback\n * @param {String} type Possible values: 'script' or 'link'\n */\n import(fileId, filePath, callback, type = 'script') {\n if (this.isImported(filePath, type)) {\n return;\n }\n let o = this,\n isLoaded = false,\n file,\n head = tag(doc, 'head')[0];\n\n if (type.toLowerCase() === 'link') {\n file = createElm('link',\n ['id', fileId], ['type', 'text/css'],\n ['rel', 'stylesheet'], ['href', filePath]\n );\n } else {\n file = createElm('script',\n ['id', fileId],\n ['type', 'text/javascript'], ['src', filePath]\n );\n }\n\n //Browser <> IE onload event works only for scripts, not for stylesheets\n file.onload = file.onreadystatechange = () => {\n if (!isLoaded &&\n (!this.readyState || this.readyState === 'loaded' ||\n this.readyState === 'complete')) {\n isLoaded = true;\n if (typeof callback === 'function') {\n callback.call(null, o);\n }\n }\n };\n file.onerror = function () {\n throw new Error(`TableFilter could not load: ${filePath}`);\n };\n head.appendChild(file);\n }\n\n /**\n * Check if table has filters grid\n * @return {Boolean}\n */\n isInitialized() {\n return this.initialized;\n }\n\n /**\n * Get list of filter IDs\n * @return {[type]} [description]\n */\n getFiltersId() {\n return this.fltIds || [];\n }\n\n /**\n * Get filtered (valid) rows indexes\n * @param {Boolean} reCalc Force calculation of filtered rows list\n * @return {Array} List of row indexes\n */\n getValidRows(reCalc) {\n if (!reCalc) {\n return this.validRowsIndex;\n }\n\n let nbRows = this.getRowsNb(true);\n this.validRowsIndex = [];\n for (let k = this.refRow; k < nbRows; k++) {\n let r = this.tbl.rows[k];\n if (!this.paging) {\n if (this.getRowDisplay(r) !== NONE) {\n this.validRowsIndex.push(r.rowIndex);\n }\n } else {\n if (r.getAttribute('validRow') === 'true' ||\n r.getAttribute('validRow') === null) {\n this.validRowsIndex.push(r.rowIndex);\n }\n }\n }\n return this.validRowsIndex;\n }\n\n /**\n * Get the index of the row containing the filters\n * @return {Number}\n */\n getFiltersRowIndex() {\n return this.filtersRowIndex;\n }\n\n /**\n * Get the index of the headers row\n * @return {Number}\n */\n getHeadersRowIndex() {\n return this.headersRow;\n }\n\n /**\n * Get the row index from where the filtering process start (1st filterable\n * row)\n * @return {Number}\n */\n getStartRowIndex() {\n return this.refRow;\n }\n\n /**\n * Get the index of the last row\n * @return {Number}\n */\n getLastRowIndex() {\n let nbRows = this.getRowsNb(true);\n return (nbRows - 1);\n }\n\n /**\n * Determine whether the specified column has one of the passed types\n * @param {Number} colIndex Column index\n * @param {Array} [types=[]] List of column types\n * @returns {Boolean}\n */\n hasType(colIndex, types = []) {\n if (!this.hasColTypes) {\n return false;\n }\n let colType = this.colTypes[colIndex];\n if (isObj(colType)) {\n colType = colType.type;\n }\n return types.indexOf(colType) !== -1;\n }\n\n /**\n * Get the header DOM element for a given column index\n * @param {Number} colIndex Column index\n * @return {Element}\n */\n getHeaderElement(colIndex) {\n let table = this.gridLayout ? this.Mod.gridLayout.headTbl : this.tbl;\n let tHead = tag(table, 'thead');\n let headersRow = this.headersRow;\n let header;\n for (let i = 0; i < this.nbCells; i++) {\n if (i !== colIndex) {\n continue;\n }\n if (tHead.length === 0) {\n header = table.rows[headersRow].cells[i];\n }\n if (tHead.length === 1) {\n header = tHead[0].rows[headersRow].cells[i];\n }\n break;\n }\n return header;\n }\n\n /**\n * Return the list of headers' text\n * @param {Boolean} excludeHiddenCols Optional: exclude hidden columns\n * @return {Array} list of headers' text\n */\n getHeadersText(excludeHiddenCols = false) {\n let headers = [];\n for (let j = 0; j < this.nbCells; j++) {\n if (excludeHiddenCols && this.hasExtension('colsVisibility')) {\n if (this.extension('colsVisibility').isColHidden(j)) {\n continue;\n }\n }\n let header = this.getHeaderElement(j);\n let headerText = getFirstTextNode(header);\n headers.push(headerText);\n }\n return headers;\n }\n\n /**\n * Return the filter type for a specified column\n * @param {Number} colIndex Column's index\n * @return {String}\n */\n getFilterType(colIndex) {\n let colType = this.cfg['col_' + colIndex];\n return !colType ? INPUT : colType.toLowerCase();\n }\n\n /**\n * Get the total number of filterable rows\n * @return {Number}\n */\n getFilterableRowsNb() {\n return this.getRowsNb(false);\n }\n\n /**\n * Return the total number of valid rows\n * @param {Boolean} [reCalc=false] Forces calculation of filtered rows\n * @returns {Number}\n */\n getValidRowsNb(reCalc = false) {\n return this.getValidRows(reCalc).length;\n }\n\n /**\n * Get the configuration object (literal object)\n * @return {Object}\n */\n config() {\n return this.cfg;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/tablefilter.js","import {root} from './root';\r\n\r\n/**\r\n * DOM event utilities\r\n */\r\n\r\n/**\r\n * Add event handler for specified event on passed element\r\n *\r\n * @param {DOMElement} obj Element\r\n * @param {String} type Event type\r\n * @param {Function} Handler\r\n * @param {Boolean} capture Specifiy whether the event should be executed in\r\n * the capturing or in the bubbling phase\r\n */\r\nexport const addEvt = (obj, type, func, capture) => {\r\n if (obj.addEventListener) {\r\n obj.addEventListener(type, func, capture);\r\n }\r\n else if (obj.attachEvent) {\r\n obj.attachEvent('on' + type, func);\r\n } else {\r\n obj['on' + type] = func;\r\n }\r\n};\r\n\r\n/**\r\n * Remove event handler for specified event on passed element\r\n *\r\n * @param {DOMElement} obj Element\r\n * @param {String} type Event type\r\n * @param {Function} Handler\r\n * @param {Boolean} capture Specifiy whether the event should be executed in\r\n * the capturing or in the bubbling phase\r\n */\r\nexport const removeEvt = (obj, type, func, capture) => {\r\n if (obj.removeEventListener) {\r\n obj.removeEventListener(type, func, capture);\r\n } else if (obj.detachEvent) {\r\n obj.detachEvent('on' + type, func);\r\n } else {\r\n obj['on' + type] = null;\r\n }\r\n};\r\n\r\n/**\r\n * Prevents further propagation of the current event in the bubbling phase\r\n *\r\n * @param {Event} evt Event on the DOM\r\n */\r\nexport const stopEvt = (evt) => {\r\n if (!evt) {\r\n evt = root.event;\r\n }\r\n if (evt.stopPropagation) {\r\n evt.stopPropagation();\r\n } else {\r\n evt.cancelBubble = true;\r\n }\r\n};\r\n\r\n/**\r\n * Cancels the event if it is cancelable, without stopping further\r\n * propagation of the event.\r\n *\r\n * @param {Event} evt Event on the DOM\r\n */\r\nexport const cancelEvt = (evt) => {\r\n if (!evt) {\r\n evt = root.event;\r\n }\r\n if (evt.preventDefault) {\r\n evt.preventDefault();\r\n } else {\r\n evt.returnValue = false;\r\n }\r\n};\r\n\r\n/**\r\n * Reference to the object that dispatched the event\r\n *\r\n * @param {Event} evt Event on the DOM\r\n * @returns {DOMElement}\r\n */\r\nexport const targetEvt = (evt) => {\r\n if (!evt) {\r\n evt = root.event;\r\n }\r\n return evt.target || evt.srcElement;\r\n};\r\n\r\n/**\r\n * Returns the Unicode value of pressed key\r\n *\r\n * @param {Event} evt Event on the DOM\r\n * @returns {Number}\r\n */\r\nexport const keyCode = (evt) => {\r\n return evt.charCode ? evt.charCode :\r\n (evt.keyCode ? evt.keyCode : (evt.which ? evt.which : 0));\r\n};\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/event.js","/**\n * Export window or global object depending on the environment\n */\nexport const root = (typeof self === 'object' && self.self === self && self) ||\n (typeof global === 'object' && global.global === global && global) ||\n this;\n\n\n\n// WEBPACK FOOTER //\n// ./src/root.js","import {root} from './root';\nimport {isArray, isString, isUndef} from './types';\nimport {trim} from './string';\n\n/**\n * DOM utilities\n */\n\nconst doc = root.document;\n\n/**\n * Returns text + text of children of given node\n * @param {NodeElement} node\n * @return {String}\n */\nexport const getText = (node) => {\n if (isUndef(node.textContent)) {\n return trim(node.innerText);\n }\n return trim(node.textContent);\n}\n\n/**\n * Returns the first text node contained in the supplied node\n * @param {NodeElement} node node\n * @return {String}\n */\nexport const getFirstTextNode = (node) => {\n for (let i = 0; i < node.childNodes.length; i++) {\n let n = node.childNodes[i];\n if (n.nodeType === 3) {\n return n.data;\n }\n }\n}\n\n/**\n * Creates an html element with given collection of attributes\n * @param {String} tag a string of the html tag to create\n * @param {Array} an undetermined number of arrays containing the with 2\n * items, the attribute name and its value ['id','myId']\n * @return {Object} created element\n */\nexport const createElm = (...args) => {\n let tag = args[0];\n if (!isString(tag)) {\n return null;\n }\n\n let el = doc.createElement(tag);\n for (let i = 0; i < args.length; i++) {\n let arg = args[i];\n\n if (isArray(arg) && arg.length === 2) {\n el.setAttribute(arg[0], arg[1]);\n }\n }\n\n return el;\n}\n\n/**\n * Removes passed node from DOM\n * @param {DOMElement} node\n * @return {DOMElement} old node reference\n */\nexport const removeElm = (node) => node.parentNode.removeChild(node);\n\n/**\n * Returns a text node with given text\n * @param {String} txt\n * @return {Object}\n */\nexport const createText = (txt) => doc.createTextNode(txt);\n\n/**\n * Determine whether the passed elements is assigned the given class\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n * @returns {Boolean}\n */\nexport const hasClass = (ele, cls) => {\n if (isUndef(ele)) {\n return false;\n }\n\n if (supportsClassList()) {\n return ele.classList.contains(cls);\n }\n return ele.className.match(new RegExp('(\\\\s|^)' + cls + '(\\\\s|$)'));\n}\n\n/**\n * Adds the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n */\nexport const addClass = (ele, cls) => {\n if (isUndef(ele)) {\n return;\n }\n\n if (supportsClassList()) {\n ele.classList.add(cls);\n return;\n }\n\n if (ele.className === '') {\n ele.className = cls;\n }\n else if (!hasClass(ele, cls)) {\n ele.className += ' ' + cls;\n }\n}\n\n/**\n * Removes the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n */\nexport const removeClass = (ele, cls) => {\n if (isUndef(ele)) {\n return;\n }\n\n if (supportsClassList()) {\n ele.classList.remove(cls);\n return;\n }\n let reg = new RegExp('(\\\\s|^)' + cls + '(\\\\s|$)', 'g');\n ele.className = ele.className.replace(reg, '');\n}\n\n/**\n * Creates and returns an option element\n * @param {String} text option text\n * @param {String} value option value\n * @param {Boolean} isSel whether option is selected\n * @return {Object} option element\n */\nexport const createOpt = (text, value, isSel) => {\n let isSelected = isSel ? true : false;\n let opt = isSelected ?\n createElm('option', ['value', value], ['selected', 'true']) :\n createElm('option', ['value', value]);\n opt.appendChild(createText(text));\n return opt;\n}\n\n/**\n * Creates and returns a checklist item\n * @param {String} id index of check item\n * @param {String} chkValue check item value\n * @param {String} labelText check item label text\n * @return {Object} li DOM element\n */\nexport const createCheckItem = (id, chkValue, labelText) => {\n let li = createElm('li');\n let label = createElm('label', ['for', id]);\n let check = createElm('input',\n ['id', id],\n ['name', id],\n ['type', 'checkbox'],\n ['value', chkValue]\n );\n label.appendChild(check);\n label.appendChild(createText(labelText));\n li.appendChild(label);\n li.label = label;\n li.check = check;\n return li;\n}\n\n/**\n * Returns the element matching the supplied Id\n * @param {String} id Element identifier\n * @return {DOMElement}\n */\nexport const elm = (id) => doc.getElementById(id);\n\n/**\n * Returns list of element matching the supplied tag name\n * @param {String} tagname Tag name\n * @return {NodeList}\n */\nexport const tag = (o, tagname) => o.getElementsByTagName(tagname);\n\n// HTML5 classList API\nfunction supportsClassList() {\n return doc.documentElement.classList;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/dom.js","\r\n/**\r\n * Types utilities\r\n */\r\n\r\nconst UNDEFINED = void 0;\r\n\r\n/**\r\n * Return an empty function\r\n * @return {Function}\r\n */\r\nexport const EMPTY_FN = function() {};\r\n\r\n/**\r\n * Check passed argument is an object\r\n * @param {Object} obj\r\n * @return {Boolean}\r\n */\r\nexport const isObj =\r\n (obj) => Object.prototype.toString.call(obj) === '[object Object]';\r\n\r\n/**\r\n * Check passed argument is a function\r\n * @param {Function} obj\r\n * @return {Boolean}\r\n */\r\nexport const isFn =\r\n (obj) => Object.prototype.toString.call(obj) === '[object Function]';\r\n\r\n/**\r\n * Check passed argument is an array\r\n * @param {Array} obj\r\n * @return {Boolean}\r\n */\r\nexport const isArray =\r\n (obj) => Object.prototype.toString.call(obj) === '[object Array]';\r\n\r\n/**\r\n * Check passed argument is a string\r\n * @param {String} obj objue\r\n * @returns {Boolean}\r\n */\r\nexport const isString =\r\n (obj) => Object.prototype.toString.call(obj) === '[object String]';\r\n\r\n/**\r\n * Check passed argument is a number\r\n * @param {Number} obj\r\n * @returns {Boolean}\r\n */\r\nexport const isNumber =\r\n (obj) => Object.prototype.toString.call(obj) === '[object Number]';\r\n\r\n/**\r\n * Check passed argument is undefined\r\n * @param {Any} obj\r\n * @return {Boolean}\r\n */\r\nexport const isUndef = (obj) => obj === UNDEFINED;\r\n\r\n/**\r\n * Check passed argument is null\r\n * @param {Any} obj\r\n * @return {Boolean}\r\n */\r\nexport const isNull = (obj) => obj === null;\r\n\r\n/**\r\n * Check passed argument is empty (undefined, null or empty string)\r\n * @param {Any} obj\r\n * @return {Boolean}\r\n */\r\nexport const isEmpty = (obj) => isUndef(obj) || isNull(obj) || obj.length === 0;\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/types.js","import {remove as removeDiacritics} from 'diacritics';\n\n/**\n * String utilities\n */\n\n/**\n * Removes whitespace from both sides of passed string\n * @param {String} text\n * @return {String}\n */\nexport const trim = (text) => {\n if (text.trim) {\n return text.trim();\n }\n return text.replace(/^\\s*|\\s*$/g, '');\n}\n\n/**\n * Checks if passed string is empty\n * @param {String} text\n * @return {Boolean}\n */\nexport const isEmpty = (text) => trim(text) === '';\n\n/**\n * Makes regex safe string by escaping special characters from passed string\n * @param {String} text\n * @return {String} escaped string\n */\nexport const rgxEsc = (text) => {\n let chars = /[-\\/\\\\^$*+?.()|[\\]{}]/g;\n let escMatch = '\\\\$&';\n return String(text).replace(chars, escMatch);\n}\n\n/**\n * Returns passed string as lowercase if caseSensitive flag set false. By\n * default it returns the string with no casing changes.\n * @param {String} text\n * @return {String} string\n */\nexport const matchCase = (text, caseSensitive = false) => {\n if (!caseSensitive) {\n return text.toLowerCase();\n }\n return text;\n}\n\n/**\n * Checks if passed data contains the searched term\n * @param {String} term Searched term\n * @param {String} data Data string\n * @param {Boolean} exactMatch Exact match\n * @param {Boolean} caseSensitive Case sensitive\n * @param {Boolean} ignoreDiacritics Ignore diacritics\n * @return {Boolean}\n */\nexport const contains = (term, data, exactMatch = false, caseSensitive = false,\n ignoreDiacritics = false) => {\n // Improved by Cedric Wartel (cwl) automatic exact match for selects and\n // special characters are now filtered\n let regexp;\n let modifier = caseSensitive ? 'g' : 'gi';\n if (ignoreDiacritics) {\n term = removeDiacritics(term);\n data = removeDiacritics(data);\n }\n if (exactMatch) {\n regexp = new RegExp('(^\\\\s*)' + rgxEsc(term) + '(\\\\s*$)',\n modifier);\n } else {\n regexp = new RegExp(rgxEsc(term), modifier);\n }\n return regexp.test(data);\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/string.js","exports.remove = removeDiacritics;\n\nvar replacementList = [\n {\n base: ' ',\n chars: \"\\u00A0\",\n }, {\n base: '0',\n chars: \"\\u07C0\",\n }, {\n base: 'A',\n chars: \"\\u24B6\\uFF21\\u00C0\\u00C1\\u00C2\\u1EA6\\u1EA4\\u1EAA\\u1EA8\\u00C3\\u0100\\u0102\\u1EB0\\u1EAE\\u1EB4\\u1EB2\\u0226\\u01E0\\u00C4\\u01DE\\u1EA2\\u00C5\\u01FA\\u01CD\\u0200\\u0202\\u1EA0\\u1EAC\\u1EB6\\u1E00\\u0104\\u023A\\u2C6F\",\n }, {\n base: 'AA',\n chars: \"\\uA732\",\n }, {\n base: 'AE',\n chars: \"\\u00C6\\u01FC\\u01E2\",\n }, {\n base: 'AO',\n chars: \"\\uA734\",\n }, {\n base: 'AU',\n chars: \"\\uA736\",\n }, {\n base: 'AV',\n chars: \"\\uA738\\uA73A\",\n }, {\n base: 'AY',\n chars: \"\\uA73C\",\n }, {\n base: 'B',\n chars: \"\\u24B7\\uFF22\\u1E02\\u1E04\\u1E06\\u0243\\u0181\",\n }, {\n base: 'C',\n chars: \"\\u24b8\\uff23\\uA73E\\u1E08\\u0106\\u0043\\u0108\\u010A\\u010C\\u00C7\\u0187\\u023B\",\n }, {\n base: 'D',\n chars: \"\\u24B9\\uFF24\\u1E0A\\u010E\\u1E0C\\u1E10\\u1E12\\u1E0E\\u0110\\u018A\\u0189\\u1D05\\uA779\",\n }, {\n base: 'Dh',\n chars: \"\\u00D0\",\n }, {\n base: 'DZ',\n chars: \"\\u01F1\\u01C4\",\n }, {\n base: 'Dz',\n chars: \"\\u01F2\\u01C5\",\n }, {\n base: 'E',\n chars: \"\\u025B\\u24BA\\uFF25\\u00C8\\u00C9\\u00CA\\u1EC0\\u1EBE\\u1EC4\\u1EC2\\u1EBC\\u0112\\u1E14\\u1E16\\u0114\\u0116\\u00CB\\u1EBA\\u011A\\u0204\\u0206\\u1EB8\\u1EC6\\u0228\\u1E1C\\u0118\\u1E18\\u1E1A\\u0190\\u018E\\u1D07\",\n }, {\n base: 'F',\n chars: \"\\uA77C\\u24BB\\uFF26\\u1E1E\\u0191\\uA77B\",\n }, {\n base: 'G',\n chars: \"\\u24BC\\uFF27\\u01F4\\u011C\\u1E20\\u011E\\u0120\\u01E6\\u0122\\u01E4\\u0193\\uA7A0\\uA77D\\uA77E\\u0262\",\n }, {\n base: 'H',\n chars: \"\\u24BD\\uFF28\\u0124\\u1E22\\u1E26\\u021E\\u1E24\\u1E28\\u1E2A\\u0126\\u2C67\\u2C75\\uA78D\",\n }, {\n base: 'I',\n chars: \"\\u24BE\\uFF29\\xCC\\xCD\\xCE\\u0128\\u012A\\u012C\\u0130\\xCF\\u1E2E\\u1EC8\\u01CF\\u0208\\u020A\\u1ECA\\u012E\\u1E2C\\u0197\",\n }, {\n base: 'J',\n chars: \"\\u24BF\\uFF2A\\u0134\\u0248\\u0237\",\n }, {\n base: 'K',\n chars: \"\\u24C0\\uFF2B\\u1E30\\u01E8\\u1E32\\u0136\\u1E34\\u0198\\u2C69\\uA740\\uA742\\uA744\\uA7A2\",\n }, {\n base: 'L',\n chars: \"\\u24C1\\uFF2C\\u013F\\u0139\\u013D\\u1E36\\u1E38\\u013B\\u1E3C\\u1E3A\\u0141\\u023D\\u2C62\\u2C60\\uA748\\uA746\\uA780\",\n }, {\n base: 'LJ',\n chars: \"\\u01C7\",\n }, {\n base: 'Lj',\n chars: \"\\u01C8\",\n }, {\n base: 'M',\n chars: \"\\u24C2\\uFF2D\\u1E3E\\u1E40\\u1E42\\u2C6E\\u019C\\u03FB\",\n }, {\n base: 'N',\n chars: \"\\uA7A4\\u0220\\u24C3\\uFF2E\\u01F8\\u0143\\xD1\\u1E44\\u0147\\u1E46\\u0145\\u1E4A\\u1E48\\u019D\\uA790\\u1D0E\",\n }, {\n base: 'NJ',\n chars: \"\\u01CA\",\n }, {\n base: 'Nj',\n chars: \"\\u01CB\",\n }, {\n base: 'O',\n chars: \"\\u24C4\\uFF2F\\xD2\\xD3\\xD4\\u1ED2\\u1ED0\\u1ED6\\u1ED4\\xD5\\u1E4C\\u022C\\u1E4E\\u014C\\u1E50\\u1E52\\u014E\\u022E\\u0230\\xD6\\u022A\\u1ECE\\u0150\\u01D1\\u020C\\u020E\\u01A0\\u1EDC\\u1EDA\\u1EE0\\u1EDE\\u1EE2\\u1ECC\\u1ED8\\u01EA\\u01EC\\xD8\\u01FE\\u0186\\u019F\\uA74A\\uA74C\",\n }, {\n base: 'OE',\n chars: \"\\u0152\",\n }, {\n base: 'OI',\n chars: \"\\u01A2\",\n }, {\n base: 'OO',\n chars: \"\\uA74E\",\n }, {\n base: 'OU',\n chars: \"\\u0222\",\n }, {\n base: 'P',\n chars: \"\\u24C5\\uFF30\\u1E54\\u1E56\\u01A4\\u2C63\\uA750\\uA752\\uA754\",\n }, {\n base: 'Q',\n chars: \"\\u24C6\\uFF31\\uA756\\uA758\\u024A\",\n }, {\n base: 'R',\n chars: \"\\u24C7\\uFF32\\u0154\\u1E58\\u0158\\u0210\\u0212\\u1E5A\\u1E5C\\u0156\\u1E5E\\u024C\\u2C64\\uA75A\\uA7A6\\uA782\",\n }, {\n base: 'S',\n chars: \"\\u24C8\\uFF33\\u1E9E\\u015A\\u1E64\\u015C\\u1E60\\u0160\\u1E66\\u1E62\\u1E68\\u0218\\u015E\\u2C7E\\uA7A8\\uA784\",\n }, {\n base: 'T',\n chars: \"\\u24C9\\uFF34\\u1E6A\\u0164\\u1E6C\\u021A\\u0162\\u1E70\\u1E6E\\u0166\\u01AC\\u01AE\\u023E\\uA786\",\n }, {\n base: 'Th',\n chars: \"\\u00DE\",\n }, {\n base: 'TZ',\n chars: \"\\uA728\",\n }, {\n base: 'U',\n chars: \"\\u24CA\\uFF35\\xD9\\xDA\\xDB\\u0168\\u1E78\\u016A\\u1E7A\\u016C\\xDC\\u01DB\\u01D7\\u01D5\\u01D9\\u1EE6\\u016E\\u0170\\u01D3\\u0214\\u0216\\u01AF\\u1EEA\\u1EE8\\u1EEE\\u1EEC\\u1EF0\\u1EE4\\u1E72\\u0172\\u1E76\\u1E74\\u0244\",\n }, {\n base: 'V',\n chars: \"\\u24CB\\uFF36\\u1E7C\\u1E7E\\u01B2\\uA75E\\u0245\",\n }, {\n base: 'VY',\n chars: \"\\uA760\",\n }, {\n base: 'W',\n chars: \"\\u24CC\\uFF37\\u1E80\\u1E82\\u0174\\u1E86\\u1E84\\u1E88\\u2C72\",\n }, {\n base: 'X',\n chars: \"\\u24CD\\uFF38\\u1E8A\\u1E8C\",\n }, {\n base: 'Y',\n chars: \"\\u24CE\\uFF39\\u1EF2\\xDD\\u0176\\u1EF8\\u0232\\u1E8E\\u0178\\u1EF6\\u1EF4\\u01B3\\u024E\\u1EFE\",\n }, {\n base: 'Z',\n chars: \"\\u24CF\\uFF3A\\u0179\\u1E90\\u017B\\u017D\\u1E92\\u1E94\\u01B5\\u0224\\u2C7F\\u2C6B\\uA762\",\n }, {\n base: 'a',\n chars: \"\\u24D0\\uFF41\\u1E9A\\u00E0\\u00E1\\u00E2\\u1EA7\\u1EA5\\u1EAB\\u1EA9\\u00E3\\u0101\\u0103\\u1EB1\\u1EAF\\u1EB5\\u1EB3\\u0227\\u01E1\\u00E4\\u01DF\\u1EA3\\u00E5\\u01FB\\u01CE\\u0201\\u0203\\u1EA1\\u1EAD\\u1EB7\\u1E01\\u0105\\u2C65\\u0250\\u0251\",\n }, {\n base: 'aa',\n chars: \"\\uA733\",\n }, {\n base: 'ae',\n chars: \"\\u00E6\\u01FD\\u01E3\",\n }, {\n base: 'ao',\n chars: \"\\uA735\",\n }, {\n base: 'au',\n chars: \"\\uA737\",\n }, {\n base: 'av',\n chars: \"\\uA739\\uA73B\",\n }, {\n base: 'ay',\n chars: \"\\uA73D\",\n }, {\n base: 'b',\n chars: \"\\u24D1\\uFF42\\u1E03\\u1E05\\u1E07\\u0180\\u0183\\u0253\\u0182\",\n }, {\n base: 'c',\n chars: \"\\uFF43\\u24D2\\u0107\\u0109\\u010B\\u010D\\u00E7\\u1E09\\u0188\\u023C\\uA73F\\u2184\",\n }, {\n base: 'd',\n chars: \"\\u24D3\\uFF44\\u1E0B\\u010F\\u1E0D\\u1E11\\u1E13\\u1E0F\\u0111\\u018C\\u0256\\u0257\\u018B\\u13E7\\u0501\\uA7AA\",\n }, {\n base: 'dh',\n chars: \"\\u00F0\",\n }, {\n base: 'dz',\n chars: \"\\u01F3\\u01C6\",\n }, {\n base: 'e',\n chars: \"\\u24D4\\uFF45\\u00E8\\u00E9\\u00EA\\u1EC1\\u1EBF\\u1EC5\\u1EC3\\u1EBD\\u0113\\u1E15\\u1E17\\u0115\\u0117\\u00EB\\u1EBB\\u011B\\u0205\\u0207\\u1EB9\\u1EC7\\u0229\\u1E1D\\u0119\\u1E19\\u1E1B\\u0247\\u01DD\",\n }, {\n base: 'f',\n chars: \"\\u24D5\\uFF46\\u1E1F\\u0192\",\n }, {\n base: 'ff',\n chars: \"\\uFB00\",\n }, {\n base: 'fi',\n chars: \"\\uFB01\",\n }, {\n base: 'fl',\n chars: \"\\uFB02\",\n }, {\n base: 'ffi',\n chars: \"\\uFB03\",\n }, {\n base: 'ffl',\n chars: \"\\uFB04\",\n }, {\n base: 'g',\n chars: \"\\u24D6\\uFF47\\u01F5\\u011D\\u1E21\\u011F\\u0121\\u01E7\\u0123\\u01E5\\u0260\\uA7A1\\uA77F\\u1D79\",\n }, {\n base: 'h',\n chars: \"\\u24D7\\uFF48\\u0125\\u1E23\\u1E27\\u021F\\u1E25\\u1E29\\u1E2B\\u1E96\\u0127\\u2C68\\u2C76\\u0265\",\n }, {\n base: 'hv',\n chars: \"\\u0195\",\n }, {\n base: 'i',\n chars: \"\\u24D8\\uFF49\\xEC\\xED\\xEE\\u0129\\u012B\\u012D\\xEF\\u1E2F\\u1EC9\\u01D0\\u0209\\u020B\\u1ECB\\u012F\\u1E2D\\u0268\\u0131\",\n }, {\n base: 'j',\n chars: \"\\u24D9\\uFF4A\\u0135\\u01F0\\u0249\",\n }, {\n base: 'k',\n chars: \"\\u24DA\\uFF4B\\u1E31\\u01E9\\u1E33\\u0137\\u1E35\\u0199\\u2C6A\\uA741\\uA743\\uA745\\uA7A3\",\n }, {\n base: 'l',\n chars: \"\\u24DB\\uFF4C\\u0140\\u013A\\u013E\\u1E37\\u1E39\\u013C\\u1E3D\\u1E3B\\u017F\\u0142\\u019A\\u026B\\u2C61\\uA749\\uA781\\uA747\\u026D\",\n }, {\n base: 'lj',\n chars: \"\\u01C9\",\n }, {\n base: 'm',\n chars: \"\\u24DC\\uFF4D\\u1E3F\\u1E41\\u1E43\\u0271\\u026F\",\n }, {\n base: 'n',\n chars: \"\\u24DD\\uFF4E\\u01F9\\u0144\\xF1\\u1E45\\u0148\\u1E47\\u0146\\u1E4B\\u1E49\\u019E\\u0272\\u0149\\uA791\\uA7A5\\u043B\\u0509\",\n }, {\n base: 'nj',\n chars: \"\\u01CC\",\n }, {\n base: 'o',\n chars: \"\\u24DE\\uFF4F\\xF2\\xF3\\xF4\\u1ED3\\u1ED1\\u1ED7\\u1ED5\\xF5\\u1E4D\\u022D\\u1E4F\\u014D\\u1E51\\u1E53\\u014F\\u022F\\u0231\\xF6\\u022B\\u1ECF\\u0151\\u01D2\\u020D\\u020F\\u01A1\\u1EDD\\u1EDB\\u1EE1\\u1EDF\\u1EE3\\u1ECD\\u1ED9\\u01EB\\u01ED\\xF8\\u01FF\\uA74B\\uA74D\\u0275\\u0254\\u1D11\",\n }, {\n base: 'oe',\n chars: \"\\u0153\",\n }, {\n base: 'oi',\n chars: \"\\u01A3\",\n }, {\n base: 'oo',\n chars: \"\\uA74F\",\n }, {\n base: 'ou',\n chars: \"\\u0223\",\n }, {\n base: 'p',\n chars: \"\\u24DF\\uFF50\\u1E55\\u1E57\\u01A5\\u1D7D\\uA751\\uA753\\uA755\\u03C1\",\n }, {\n base: 'q',\n chars: \"\\u24E0\\uFF51\\u024B\\uA757\\uA759\",\n }, {\n base: 'r',\n chars: \"\\u24E1\\uFF52\\u0155\\u1E59\\u0159\\u0211\\u0213\\u1E5B\\u1E5D\\u0157\\u1E5F\\u024D\\u027D\\uA75B\\uA7A7\\uA783\",\n }, {\n base: 's',\n chars: \"\\u24E2\\uFF53\\u015B\\u1E65\\u015D\\u1E61\\u0161\\u1E67\\u1E63\\u1E69\\u0219\\u015F\\u023F\\uA7A9\\uA785\\u1E9B\\u0282\",\n }, {\n base: 'ss',\n chars: \"\\xDF\",\n }, {\n base: 't',\n chars: \"\\u24E3\\uFF54\\u1E6B\\u1E97\\u0165\\u1E6D\\u021B\\u0163\\u1E71\\u1E6F\\u0167\\u01AD\\u0288\\u2C66\\uA787\",\n }, {\n base: 'th',\n chars: \"\\u00FE\",\n }, {\n base: 'tz',\n chars: \"\\uA729\",\n }, {\n base: 'u',\n chars: \"\\u24E4\\uFF55\\xF9\\xFA\\xFB\\u0169\\u1E79\\u016B\\u1E7B\\u016D\\xFC\\u01DC\\u01D8\\u01D6\\u01DA\\u1EE7\\u016F\\u0171\\u01D4\\u0215\\u0217\\u01B0\\u1EEB\\u1EE9\\u1EEF\\u1EED\\u1EF1\\u1EE5\\u1E73\\u0173\\u1E77\\u1E75\\u0289\",\n }, {\n base: 'v',\n chars: \"\\u24E5\\uFF56\\u1E7D\\u1E7F\\u028B\\uA75F\\u028C\",\n }, {\n base: 'vy',\n chars: \"\\uA761\",\n }, {\n base: 'w',\n chars: \"\\u24E6\\uFF57\\u1E81\\u1E83\\u0175\\u1E87\\u1E85\\u1E98\\u1E89\\u2C73\",\n }, {\n base: 'x',\n chars: \"\\u24E7\\uFF58\\u1E8B\\u1E8D\",\n }, {\n base: 'y',\n chars: \"\\u24E8\\uFF59\\u1EF3\\xFD\\u0177\\u1EF9\\u0233\\u1E8F\\xFF\\u1EF7\\u1E99\\u1EF5\\u01B4\\u024F\\u1EFF\",\n }, {\n base: 'z',\n chars: \"\\u24E9\\uFF5A\\u017A\\u1E91\\u017C\\u017E\\u1E93\\u1E95\\u01B6\\u0225\\u0240\\u2C6C\\uA763\",\n }\n];\n\nvar diacriticsMap = {};\nfor (var i = 0; i < replacementList.length; i += 1) {\n var chars = replacementList[i].chars;\n for (var j = 0; j < chars.length; j += 1) {\n diacriticsMap[chars[j]] = replacementList[i].base;\n }\n}\n\nfunction removeDiacritics(str) {\n return str.replace(/[^\\u0000-\\u007e]/g, function(c) {\n return diacriticsMap[c] || c;\n });\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/diacritics/index.js\n// module id = 6\n// module chunks = 0","import {isNumber} from './types';\n\n/**\n * Takes a string, removes all formatting/cruft and returns the raw float value\n * @param {String} Formatted number\n * @param {String} Decimal type '.' or ','\n * @return {Number} Unformatted number\n *\n * https://github.com/openexchangerates/accounting.js/blob/master/accounting.js\n */\nexport const parse = (value, decimal = '.') => {\n // Return the value as-is if it's already a number\n if (isNumber(value)) {\n return value;\n }\n\n // Build regex to strip out everything except digits, decimal point and\n // minus sign\n let regex = new RegExp('[^0-9-' + decimal + ']', ['g']);\n let unformatted = parseFloat(\n ('' + value)\n .replace(/\\((.*)\\)/, '-$1') // replace bracketed values with negatives\n .replace(regex, '') // strip out any cruft\n .replace(decimal, '.') // make sure decimal point is standard\n );\n\n // This will fail silently\n return !isNaN(unformatted) ? unformatted : 0;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/number.js","/**\r\n * Event emitter class\r\n */\r\nexport class Emitter {\r\n /**\r\n * Creates an instance of Emitter.\r\n */\r\n constructor() {\r\n /**\r\n * Events object\r\n * @type {Object}\r\n */\r\n this.events = {};\r\n }\r\n\r\n /**\r\n * Subscribe to an event\r\n * @param {Array} evts Collection of event names\r\n * @param {Function} fn Function invoked when event is emitted\r\n */\r\n on(evts, fn) {\r\n evts.forEach((evt) => {\r\n this.events[evt] = this.events[evt] || [];\r\n this.events[evt].push(fn);\r\n });\r\n }\r\n\r\n /**\r\n * Unsubscribe to an event\r\n * @param {Array} evts Collection of event names\r\n * @param {Function} fn Function invoked when event is emitted\r\n */\r\n off(evts, fn) {\r\n evts.forEach((evt) => {\r\n if (evt in this.events) {\r\n this.events[evt].splice(this.events[evt].indexOf(fn), 1);\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Emit an event\r\n * @param {String} evt Event name followed by any other argument passed to\r\n * the invoked function\r\n */\r\n emit(evt /*, args...*/) {\r\n if (evt in this.events) {\r\n for (let i = 0; i < this.events[evt].length; i++) {\r\n this.events[evt][i].apply(this, [].slice.call(arguments, 1));\r\n }\r\n }\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/emitter.js","import {Feature} from '../feature';\nimport {createElm, removeElm, elm, tag} from '../dom';\nimport {addEvt, targetEvt} from '../event';\nimport {contains} from '../string';\nimport {NONE} from '../const';\n\n/**\n * Grid layout, table with fixed headers\n */\nexport class GridLayout extends Feature {\n\n /**\n * Creates an instance of GridLayout\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'gridLayout');\n\n let f = this.config;\n\n /**\n * Grid-layout container width as CSS string\n * @type {String}\n */\n this.width = f.grid_width || null;\n\n /**\n * Grid-layout container height as CSS string\n * @type {String}\n */\n this.height = f.grid_height || null;\n\n /**\n * Css class for main container element\n * @type {String}\n */\n this.mainContCssClass = f.grid_cont_css_class || 'grd_Cont';\n\n /**\n * Css class for body table container element\n * @type {String}\n */\n this.contCssClass = f.grid_tbl_cont_css_class || 'grd_tblCont';\n\n /**\n * Css class for headers table container element\n * @type {String}\n */\n this.headContCssClass = f.grid_tblHead_cont_css_class ||\n 'grd_headTblCont';\n\n /**\n * Css class for toolbar container element (rows counter, paging etc.)\n * @type {String}\n */\n this.infDivCssClass = f.grid_inf_grid_css_class || 'grd_inf';\n\n /**\n * Index of the headers row, default: 0\n * @type {Number}\n */\n this.headRowIndex = f.grid_headers_row_index || 0;\n\n /**\n * Collection of the header row indexes to be moved into headers table\n * @type {Array}\n */\n this.headRows = f.grid_headers_rows || [0];\n\n /**\n * Enable or disable column filters generation, default: true\n * @type {Boolean}\n */\n this.enableFilters = f.grid_enable_default_filters === false ?\n false : true;\n\n /**\n * Enable or disable column headers, default: false\n * @type {Boolean}\n */\n this.noHeaders = Boolean(f.grid_no_headers);\n\n /**\n * Grid-layout default column widht as CSS string\n * @type {String}\n */\n this.defaultColWidth = f.grid_default_col_width || '100px';\n\n /**\n * List of column elements\n * @type {Array}\n * @private\n */\n this.colElms = [];\n\n /**\n * Prefix for grid-layout filter's cell ID\n * @type {String}\n * @private\n */\n this.prfxGridFltTd = '_td_';\n\n /**\n * Prefix for grid-layout header's cell ID\n * @type {String}\n * @private\n */\n this.prfxGridTh = 'tblHeadTh_';\n\n /**\n * Mark-up of original HTML table\n * @type {String}\n * @private\n */\n this.sourceTblHtml = tf.tbl.outerHTML;\n\n /**\n * Indicates if working table has column elements\n * @type {Boolean}\n * @private\n */\n this.tblHasColTag = tag(tf.tbl, 'col').length > 0 ? true : false;\n\n /**\n * Main container element\n * @private\n */\n this.tblMainCont = null;\n\n /**\n * Table container element\n * @private\n */\n this.tblCont = null;\n\n /**\n * Headers' table container element\n * @private\n */\n this.headTblCont = null;\n\n /**\n * Headers' table element\n * @private\n */\n this.headTbl = null;\n\n // filters flag at TF level\n tf.fltGrid = this.enableFilters;\n }\n\n /**\n * Generates a grid with fixed headers\n * TODO: reduce size of init by extracting single purposed methods\n */\n init() {\n let tf = this.tf;\n let tbl = tf.tbl;\n\n if (this.initialized) {\n return;\n }\n\n // Override relevant TableFilter properties\n this.setOverrides();\n\n // Assign default column widths\n this.setDefaultColWidths();\n\n // Initial table width\n let tblW = this.initialTableWidth();\n\n //Main container: it will contain all the elements\n this.tblMainCont = this.createContainer(\n 'div', this.mainContCssClass);\n if (this.width) {\n this.tblMainCont.style.width = this.width;\n }\n tbl.parentNode.insertBefore(this.tblMainCont, tbl);\n\n //Table container: div wrapping content table\n this.tblCont = this.createContainer('div', this.contCssClass);\n this.setConfigWidth(this.tblCont);\n if (this.height) {\n this.tblCont.style.height = this.height;\n }\n tbl.parentNode.insertBefore(this.tblCont, tbl);\n let t = removeElm(tbl);\n this.tblCont.appendChild(t);\n\n //In case table width is expressed in %\n if (tbl.style.width === '') {\n tbl.style.width = (contains('%', tblW) ?\n tbl.clientWidth : tblW) + 'px';\n }\n\n let d = removeElm(this.tblCont);\n this.tblMainCont.appendChild(d);\n\n //Headers table container: div wrapping headers table\n this.headTblCont = this.createContainer(\n 'div', this.headContCssClass);\n this.setConfigWidth(this.headTblCont);\n\n //Headers table\n this.headTbl = createElm('table');\n let tH = createElm('tHead');\n\n //1st row should be headers row, ids are added if not set\n //Those ids are used by the sort feature\n let hRow = tbl.rows[this.headRowIndex];\n let sortTriggers = this.getSortTriggerIds(hRow);\n\n //Filters row is created\n let filtersRow = this.createFiltersRow();\n\n //Headers row are moved from content table to headers table\n this.setHeadersRow(tH);\n\n this.headTbl.appendChild(tH);\n if (tf.filtersRowIndex === 0) {\n tH.insertBefore(filtersRow, hRow);\n } else {\n tH.appendChild(filtersRow);\n }\n\n this.headTblCont.appendChild(this.headTbl);\n this.tblCont.parentNode.insertBefore(this.headTblCont, this.tblCont);\n\n //THead needs to be removed in content table for sort feature\n let thead = tag(tbl, 'thead');\n if (thead.length > 0) {\n tbl.removeChild(thead[0]);\n }\n\n //Headers table style\n this.headTbl.style.tableLayout = 'fixed';\n tbl.style.tableLayout = 'fixed';\n this.headTbl.cellPadding = tbl.cellPadding;\n this.headTbl.cellSpacing = tbl.cellSpacing;\n // this.headTbl.style.width = tbl.style.width;\n\n //content table without headers needs col widths to be reset\n tf.setColWidths(this.headTbl);\n\n //Headers container width\n // this.headTblCont.style.width = this.tblCont.clientWidth+'px';\n\n tbl.style.width = '';\n //\n this.headTbl.style.width = tbl.clientWidth + 'px';\n //\n\n //scroll synchronisation\n addEvt(this.tblCont, 'scroll', (evt) => {\n let elm = targetEvt(evt);\n let scrollLeft = elm.scrollLeft;\n this.headTblCont.scrollLeft = scrollLeft;\n //New pointerX calc taking into account scrollLeft\n // if(!o.isPointerXOverwritten){\n // try{\n // o.Evt.pointerX = function(evt){\n // let e = evt || global.event;\n // let bdScrollLeft = tf_StandardBody().scrollLeft +\n // scrollLeft;\n // return (e.pageX + scrollLeft) ||\n // (e.clientX + bdScrollLeft);\n // };\n // o.isPointerXOverwritten = true;\n // } catch(err) {\n // o.isPointerXOverwritten = false;\n // }\n // }\n });\n\n // TODO: Trigger a custom event handled by sort extension\n let sort = tf.extension('sort');\n if (sort) {\n sort.asyncSort = true;\n sort.triggerIds = sortTriggers;\n }\n\n //Col elements are enough to keep column widths after sorting and\n //filtering\n this.setColumnElements();\n\n if (tf.popupFilters) {\n filtersRow.style.display = NONE;\n }\n\n if (tbl.clientWidth !== this.headTbl.clientWidth) {\n tbl.style.width = this.headTbl.clientWidth + 'px';\n }\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Overrides TableFilter instance properties to adjust to grid layout mode\n * @private\n */\n setOverrides() {\n let tf = this.tf;\n tf.refRow = 0;\n tf.headersRow = 0;\n tf.filtersRowIndex = 1;\n tf.isExternalFlt = true;\n }\n\n /**\n * Set grid-layout default column widths if column widths are not defined\n * @private\n */\n setDefaultColWidths() {\n let tf = this.tf;\n if (tf.hasColWidths) {\n return;\n }\n for (let k = 0, len = tf.getCellsNb(); k < len; k++) {\n let colW;\n let cell = tf.tbl.rows[tf.getHeadersRowIndex()].cells[k];\n if (cell.width !== '') {\n colW = cell.width;\n } else if (cell.style.width !== '') {\n colW = parseInt(cell.style.width, 10);\n } else {\n colW = this.defaultColWidth;\n }\n tf.colWidths[k] = colW;\n }\n tf.hasColWidths = true;\n tf.setColWidths();\n }\n\n /**\n * Initial table width\n * @returns {Number}\n * @private\n */\n initialTableWidth() {\n let tbl = this.tf.tbl;\n let width; //initial table width\n\n if (tbl.width !== '') {\n width = tbl.width;\n }\n else if (tbl.style.width !== '') {\n width = tbl.style.width;\n } else {\n width = tbl.clientWidth;\n }\n return parseInt(width, 10);\n }\n\n /**\n * Creates container element\n * @param {String} tag Tag name\n * @param {String} className Css class to assign to element\n * @returns {DOMElement}\n * @private\n */\n createContainer(tag, className) {\n let element = createElm(tag);\n element.className = className;\n return element;\n }\n\n /**\n * Creates filters row with cells\n * @returns {HTMLTableRowElement}\n * @private\n */\n createFiltersRow() {\n let tf = this.tf;\n let filtersRow = createElm('tr');\n if (this.enableFilters && tf.fltGrid) {\n tf.externalFltTgtIds = [];\n for (let j = 0; j < tf.getCellsNb(); j++) {\n let fltTdId = `${tf.prfxFlt + j + this.prfxGridFltTd + tf.id}`;\n let cl = createElm(tf.fltCellTag, ['id', fltTdId]);\n filtersRow.appendChild(cl);\n tf.externalFltTgtIds[j] = fltTdId;\n }\n }\n return filtersRow;\n }\n\n /**\n * Generates column elements if necessary and assigns their widths\n * @private\n */\n setColumnElements() {\n let tf = this.tf;\n let cols = tag(tf.tbl, 'col');\n this.tblHasColTag = cols.length > 0;\n\n for (let k = (tf.nbCells - 1); k >= 0; k--) {\n let col;\n\n if (!this.tblHasColTag) {\n col = createElm('col');\n tf.tbl.insertBefore(col, tf.tbl.firstChild);\n } else {\n col = cols[k];\n }\n col.style.width = tf.colWidths[k];\n this.colElms[k] = col;\n }\n this.tblHasColTag = true;\n }\n\n /**\n * Sets headers row in headers table\n * @param {HTMLHeadElement} tableHead Table head element\n * @private\n */\n setHeadersRow(tableHead) {\n if (this.noHeaders) {\n // Handle table with no headers, assuming here headers do not\n // exist\n tableHead.appendChild(createElm('tr'));\n } else {\n // Headers row are moved from content table to headers table\n for (let i = 0; i < this.headRows.length; i++) {\n let row = this.tf.tbl.rows[this.headRows[i]];\n tableHead.appendChild(row);\n }\n }\n }\n\n /**\n * Sets width defined in configuration to passed element\n * @param {DOMElement} element DOM element\n * @private\n */\n setConfigWidth(element) {\n if (!this.width) {\n return;\n }\n if (this.width.indexOf('%') !== -1) {\n element.style.width = '100%';\n } else {\n element.style.width = this.width;\n }\n }\n\n /**\n * Returns a list of header IDs used for specifing external sort triggers\n * @param {HTMLTableRowElement} row DOM row element\n * @returns {Array} List of IDs\n * @private\n */\n getSortTriggerIds(row) {\n let tf = this.tf;\n let sortTriggers = [];\n for (let n = 0; n < tf.getCellsNb(); n++) {\n let c = row.cells[n];\n let thId = c.getAttribute('id');\n if (!thId || thId === '') {\n thId = `${this.prfxGridTh + n}_${tf.id}`;\n c.setAttribute('id', thId);\n }\n sortTriggers.push(thId);\n }\n return sortTriggers;\n }\n\n /**\n * Removes the grid layout\n */\n destroy() {\n let tf = this.tf;\n let tbl = tf.tbl;\n\n if (!this.initialized) {\n return;\n }\n let t = removeElm(tbl);\n this.tblMainCont.parentNode.insertBefore(t, this.tblMainCont);\n removeElm(this.tblMainCont);\n\n this.tblMainCont = null;\n this.headTblCont = null;\n this.headTbl = null;\n this.tblCont = null;\n\n tbl.outerHTML = this.sourceTblHtml;\n //needed to keep reference of table element for future usage\n this.tf.tbl = elm(tf.id);\n\n this.initialized = false;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/gridLayout.js","\nconst NOTIMPLEMENTED = 'Not implemented.';\n\n/**\n * Base class defining the interface of a TableFilter feature\n */\nexport class Feature {\n /**\n * Creates an instance of Feature\n * @param {Object} tf TableFilter instance\n * @param {String} feature Feature name known by TableFilter\n */\n constructor(tf, feature) {\n /**\n * TableFilter instance\n * @type {TableFilter}\n */\n this.tf = tf;\n\n /**\n * Feature name\n * @type {String}\n */\n this.feature = feature;\n\n /**\n * TableFilter feature setting\n * @type {Boolean}\n */\n this.enabled = tf[feature];\n\n /**\n * TableFilter configuration\n * @type {Object}\n */\n this.config = tf.config();\n\n /**\n * TableFilter emitter instance\n * @type {Emitter}\n */\n this.emitter = tf.emitter;\n\n /**\n * Field indicating whether Feature is initialized\n * @type {Boolean}\n */\n this.initialized = false;\n\n /** Subscribe to destroy event */\n this.emitter.on(['destroy'], () => this.destroy());\n }\n\n /**\n * Initialize the feature\n */\n init() {\n throw new Error(NOTIMPLEMENTED);\n }\n\n /**\n * Reset the feature after being disabled\n */\n reset() {\n this.enable();\n this.init();\n }\n\n /**\n * Destroy the feature\n */\n destroy() {\n throw new Error(NOTIMPLEMENTED);\n }\n\n /**\n * Enable the feature\n */\n enable() {\n this.enabled = true;\n }\n\n /**\n * Disable the feature\n */\n disable() {\n this.enabled = false;\n }\n\n /**\n * Indicate whether the feature is enabled or not\n * @returns {Boolean}\n */\n isEnabled() {\n return this.enabled;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/feature.js","/**\n * Filter types\n */\n\n/**\n * Input filter type\n * @type {String}\n */\nexport const INPUT = 'input';\n/**\n * Select filter type\n * @type {String}\n */\nexport const SELECT = 'select';\n/**\n * Multiple select filter type\n * @type {String}\n */\nexport const MULTIPLE = 'multiple';\n/**\n * Checklist filter type\n * @type {String}\n */\nexport const CHECKLIST = 'checklist';\n/**\n * None filter type\n * @type {String}\n */\nexport const NONE = 'none';\n\n/**\n * Key codes\n */\n\n/**\n * Enter key code\n * @type {Number}\n */\nexport const ENTER_KEY = 13;\n/**\n * Tab key code\n * @type {Number}\n */\nexport const TAB_KEY = 9;\n/**\n * Escape key code\n * @type {Number}\n */\nexport const ESC_KEY = 27;\n/**\n * Up arrow key code\n * @type {Number}\n */\nexport const UP_ARROW_KEY = 38;\n/**\n * Down arrow key code\n * @type {Number}\n */\nexport const DOWN_ARROW_KEY = 40;\n\n/**\n * HTML tags\n */\n\n/**\n * Header cell tag\n * @type {String}\n */\nexport const HEADER_TAG = 'TH';\n/**\n * Cell tag\n * @type {String}\n */\nexport const CELL_TAG = 'TD';\n\n/**\n * Data types\n */\n\n/**\n * String\n * @type {String}\n */\nexport const STRING = 'string';\n\n/**\n * Number\n * @type {String}\n */\nexport const NUMBER = 'number';\n\n/**\n * Formatted number\n * @type {String}\n */\nexport const FORMATTED_NUMBER = 'formatted-number';\n\n/**\n * Date\n * @type {String}\n */\nexport const DATE = 'date';\n\n/**\n * IP address\n * @type {String}\n */\nexport const IP_ADDRESS = 'ipaddress';\n\n/**\n * Default values\n */\n\n/**\n * Auto filter delay in milliseconds\n * @type {Number}\n */\nexport const AUTO_FILTER_DELAY = 750;\n\n\n\n// WEBPACK FOOTER //\n// ./src/const.js","import {Feature} from '../feature';\r\nimport {createElm, createText, elm, removeElm} from '../dom';\r\nimport {isFn, EMPTY_FN} from '../types';\r\nimport {root} from '../root';\r\nimport {NONE} from '../const';\r\n\r\nconst EVENTS = [\r\n 'before-filtering',\r\n 'before-populating-filter',\r\n 'before-page-change',\r\n 'before-clearing-filters',\r\n 'before-page-length-change',\r\n 'before-reset-page',\r\n 'before-reset-page-length',\r\n 'before-loading-extensions',\r\n 'before-loading-themes'\r\n];\r\n\r\n/**\r\n * Activity indicator\r\n *\r\n * @export\r\n * @class Loader\r\n * @extends {Feature}\r\n */\r\nexport class Loader extends Feature {\r\n\r\n /**\r\n * Creates an instance of Loader.\r\n *\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'loader');\r\n\r\n let f = this.config;\r\n\r\n /**\r\n * ID of custom container element\r\n * @type {String}\r\n */\r\n this.targetId = f.loader_target_id || null;\r\n\r\n /**\r\n * Loader container DOM element\r\n * @type {DOMElement}\r\n */\r\n this.cont = null;\r\n\r\n /**\r\n * Text displayed when indicator is visible\r\n * @type {String}\r\n */\r\n this.text = f.loader_text || 'Loading...';\r\n\r\n /**\r\n * Custom HTML injected in Loader's container element\r\n * @type {String}\r\n */\r\n this.html = f.loader_html || null;\r\n\r\n /**\r\n * Css class for Loader's container element\r\n * @type {String}\r\n */\r\n this.cssClass = f.loader_css_class || 'loader';\r\n\r\n /**\r\n * Close delay in milliseconds\r\n * @type {Number}\r\n */\r\n this.closeDelay = 250;\r\n\r\n /**\r\n * Callback fired when loader is displayed\r\n * @type {Function}\r\n */\r\n this.onShow = isFn(f.on_show_loader) ?\r\n f.on_show_loader : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired when loader is closed\r\n * @type {Function}\r\n */\r\n this.onHide = isFn(f.on_hide_loader) ? f.on_hide_loader : EMPTY_FN;\r\n }\r\n\r\n /**\r\n * Initializes Loader instance\r\n */\r\n init() {\r\n if (this.initialized) {\r\n return;\r\n }\r\n\r\n let tf = this.tf;\r\n let emitter = this.emitter;\r\n\r\n let containerDiv = createElm('div');\r\n containerDiv.className = this.cssClass;\r\n\r\n let targetEl = !this.targetId ?\r\n tf.tbl.parentNode : elm(this.targetId);\r\n if (!this.targetId) {\r\n targetEl.insertBefore(containerDiv, tf.tbl);\r\n } else {\r\n targetEl.appendChild(containerDiv);\r\n }\r\n this.cont = containerDiv;\r\n if (!this.html) {\r\n this.cont.appendChild(createText(this.text));\r\n } else {\r\n this.cont.innerHTML = this.html;\r\n }\r\n\r\n this.show(NONE);\r\n\r\n // Subscribe to events\r\n emitter.on(EVENTS, () => this.show(''));\r\n emitter.on(EVENTS, () => this.show(NONE));\r\n\r\n /**\r\n * @inherited\r\n */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Shows or hides activity indicator\r\n * @param {String} Two possible values: '' or 'none'\r\n */\r\n show(p) {\r\n if (!this.isEnabled()) {\r\n return;\r\n }\r\n\r\n let displayLoader = () => {\r\n if (!this.cont) {\r\n return;\r\n }\r\n if (p !== NONE) {\r\n this.onShow(this);\r\n }\r\n this.cont.style.display = p;\r\n if (p === NONE) {\r\n this.onHide(this);\r\n }\r\n };\r\n\r\n let t = p === NONE ? this.closeDelay : 1;\r\n root.setTimeout(displayLoader, t);\r\n }\r\n\r\n /**\r\n * Removes feature\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n\r\n let emitter = this.emitter;\r\n\r\n removeElm(this.cont);\r\n this.cont = null;\r\n\r\n // Unsubscribe to events\r\n emitter.off(EVENTS, () => this.show(''));\r\n emitter.off(EVENTS, () => this.show(NONE));\r\n\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/loader.js","import {createText, createElm, getText} from '../dom';\r\nimport {isArray} from '../types';\r\nimport {rgxEsc} from '../string';\r\n\r\n/**\r\n * Highlight matched keywords upon filtering\r\n *\r\n * @export\r\n * @class HighlightKeyword\r\n */\r\nexport class HighlightKeyword {\r\n\r\n /**\r\n * Creates an instance of HighlightKeyword\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n let f = tf.config();\r\n\r\n /**\r\n * Css class for highlighted term\r\n * @type {String}\r\n */\r\n this.highlightCssClass = f.highlight_css_class || 'keyword';\r\n\r\n /**\r\n * TableFilter instance\r\n * @type {TableFilter}\r\n */\r\n this.tf = tf;\r\n\r\n /**\r\n * TableFilter's emitter instance\r\n * @type {Emitter}\r\n */\r\n this.emitter = tf.emitter;\r\n }\r\n\r\n /**\r\n * Initializes HighlightKeyword instance\r\n */\r\n init() {\r\n this.emitter.on(\r\n ['before-filtering', 'destroy'],\r\n () => this.unhighlightAll()\r\n );\r\n this.emitter.on(\r\n ['highlight-keyword'],\r\n (tf, cell, term) => this._processTerm(cell, term)\r\n );\r\n }\r\n\r\n /**\r\n * Highlight occurences of searched term in passed node\r\n * @param {Node} node\r\n * @param {String} term Searched term\r\n * @param {String} cssClass Css class name\r\n *\r\n * TODO: refactor this method\r\n */\r\n highlight(node, term, cssClass) {\r\n // Iterate into this nodes childNodes\r\n if (node.hasChildNodes) {\r\n let children = node.childNodes;\r\n for (let i = 0; i < children.length; i++) {\r\n this.highlight(children[i], term, cssClass);\r\n }\r\n }\r\n\r\n if (node.nodeType === 3) {\r\n let nodeVal = node.nodeValue.toLowerCase();\r\n let termIdx = nodeVal.indexOf(term.toLowerCase());\r\n\r\n if (termIdx !== -1) {\r\n let pn = node.parentNode;\r\n if (pn && pn.className !== cssClass) {\r\n // term not highlighted yet\r\n let nv = node.nodeValue,\r\n // Create a load of replacement nodes\r\n before = createText(nv.substr(0, termIdx)),\r\n value = nv.substr(termIdx, term.length),\r\n after = createText(nv.substr(termIdx + term.length)),\r\n text = createText(value),\r\n container = createElm('span');\r\n container.className = cssClass;\r\n container.appendChild(text);\r\n pn.insertBefore(before, node);\r\n pn.insertBefore(container, node);\r\n pn.insertBefore(after, node);\r\n pn.removeChild(node);\r\n }\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Removes highlight to nodes matching passed string\r\n * @param {String} term\r\n * @param {String} cssClass Css class to remove\r\n */\r\n unhighlight(term, cssClass) {\r\n let highlightedNodes = this.tf.tbl.querySelectorAll(`.${cssClass}`);\r\n for (let i = 0; i < highlightedNodes.length; i++) {\r\n let n = highlightedNodes[i];\r\n let nodeVal = getText(n);\r\n\r\n if (nodeVal.toLowerCase().indexOf(term.toLowerCase()) !== -1) {\r\n let parentNode = n.parentNode;\r\n parentNode.replaceChild(createText(nodeVal), n);\r\n parentNode.normalize();\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Clear all occurrences of highlighted nodes\r\n */\r\n unhighlightAll() {\r\n if (!this.tf.highlightKeywords) {\r\n return;\r\n }\r\n // iterate filters values to unhighlight all values\r\n this.tf.getFiltersValue().forEach((val) => {\r\n if (isArray(val)) {\r\n val.forEach((item) =>\r\n this.unhighlight(item, this.highlightCssClass));\r\n } else {\r\n this.unhighlight(val, this.highlightCssClass);\r\n }\r\n });\r\n }\r\n\r\n /** Remove feature */\r\n destroy() {\r\n this.emitter.off(\r\n ['before-filtering', 'destroy'],\r\n () => this.unhighlightAll()\r\n );\r\n this.emitter.off(\r\n ['highlight-keyword'],\r\n (tf, cell, term) => this._processTerm(cell, term)\r\n );\r\n }\r\n\r\n /**\r\n * Ensure filtering operators are handled before highlighting any match\r\n * @param {any} Table cell to look searched term into\r\n * @param {any} Searched termIdx\r\n */\r\n _processTerm(cell, term) {\r\n let tf = this.tf;\r\n let reLk = new RegExp(rgxEsc(tf.lkOperator));\r\n let reEq = new RegExp(tf.eqOperator);\r\n let reSt = new RegExp(tf.stOperator);\r\n let reEn = new RegExp(tf.enOperator);\r\n let reLe = new RegExp(tf.leOperator);\r\n let reGe = new RegExp(tf.geOperator);\r\n let reL = new RegExp(tf.lwOperator);\r\n let reG = new RegExp(tf.grOperator);\r\n let reD = new RegExp(tf.dfOperator);\r\n\r\n term = term\r\n .replace(reLk, '')\r\n .replace(reEq, '')\r\n .replace(reSt, '')\r\n .replace(reEn, '');\r\n\r\n if (reLe.test(term) || reGe.test(term) || reL.test(term) ||\r\n reG.test(term) || reD.test(term)) {\r\n term = getText(cell);\r\n }\r\n\r\n if (term === '') {\r\n return;\r\n }\r\n\r\n this.highlight(cell, term, this.highlightCssClass);\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/highlightKeywords.js","import {Feature} from '../feature';\r\nimport {isFn, isUndef, EMPTY_FN} from '../types';\r\nimport {createElm, removeElm} from '../dom';\r\nimport {addEvt, cancelEvt, stopEvt, targetEvt, removeEvt} from '../event';\r\nimport {INPUT, NONE, CHECKLIST, MULTIPLE} from '../const';\r\nimport {root} from '../root';\r\n\r\n/**\r\n * Pop-up filter component\r\n * @export\r\n * @class PopupFilter\r\n * @extends {Feature}\r\n */\r\nexport class PopupFilter extends Feature {\r\n\r\n /**\r\n * Creates an instance of PopupFilter\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'popupFilters');\r\n\r\n // Configuration object\r\n let f = this.config;\r\n\r\n // Enable external filters\r\n tf.isExternalFlt = true;\r\n tf.externalFltTgtIds = [];\r\n\r\n /**\r\n * Close active popup filter upon filtering, enabled by default\r\n * @type {Boolean}\r\n */\r\n this.closeOnFiltering = f.popup_filters_close_on_filtering === false ?\r\n false : true;\r\n\r\n /**\r\n * Filter icon path\r\n * @type {String}\r\n */\r\n this.iconPath = f.popup_filters_image ||\r\n tf.themesPath + 'icn_filter.gif';\r\n\r\n /**\r\n * Active filter icon path\r\n * @type {string}\r\n */\r\n this.activeIconPath = f.popup_filters_image_active ||\r\n tf.themesPath + 'icn_filterActive.gif';\r\n\r\n /**\r\n * HTML for the filter icon\r\n * @type {string}\r\n */\r\n this.iconHtml = f.popup_filters_image_html ||\r\n '\"Column';\r\n\r\n /**\r\n * Css class assigned to filter container element\r\n * @type {String}\r\n */\r\n this.containerCssClass = f.popup_div_css_class || 'popUpFilter';\r\n\r\n /**\r\n * Ensure filter's container element width matches column width, enabled\r\n * by default\r\n * @type {Boolean}\r\n */\r\n this.adjustToContainer =\r\n f.popup_filters_adjust_to_container === false ? false : true;\r\n\r\n /**\r\n * Callback fired before a popup filter is opened\r\n * @type {Function}\r\n */\r\n this.onBeforeOpen = isFn(f.on_before_popup_filter_open) ?\r\n f.on_before_popup_filter_open : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired after a popup filter is opened\r\n * @type {Function}\r\n */\r\n this.onAfterOpen = isFn(f.on_after_popup_filter_open) ?\r\n f.on_after_popup_filter_open : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired before a popup filter is closed\r\n * @type {Function}\r\n */\r\n this.onBeforeClose = isFn(f.on_before_popup_filter_close) ?\r\n f.on_before_popup_filter_close : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired after a popup filter is closed\r\n * @type {Function}\r\n */\r\n this.onAfterClose = isFn(f.on_after_popup_filter_close) ?\r\n f.on_after_popup_filter_close : EMPTY_FN;\r\n\r\n /**\r\n * Collection of filters spans\r\n * @type {Array}\r\n * @private\r\n */\r\n this.fltSpans = [];\r\n\r\n /**\r\n * Collection of filters icons\r\n * @type {Array}\r\n * @private\r\n */\r\n this.fltIcons = [];\r\n\r\n /**\r\n * Collection of filters icons cached after pop-up filters are removed\r\n * @type {Array}\r\n * @private\r\n */\r\n this.filtersCache = null;\r\n\r\n /**\r\n * Collection of filters containers\r\n * @type {Array}\r\n * @private\r\n */\r\n this.fltElms = this.filtersCache || [];\r\n\r\n /**\r\n * Prefix for pop-up filter container ID\r\n * @type {String}\r\n * @private\r\n */\r\n this.prfxDiv = 'popup_';\r\n\r\n /**\r\n * Column index of popup filter currently active\r\n * @type {Number}\r\n * @private\r\n */\r\n this.activeFilterIdx = -1;\r\n }\r\n\r\n /**\r\n * Click event handler for pop-up filter icon\r\n * @private\r\n */\r\n onClick(evt) {\r\n let elm = targetEvt(evt).parentNode;\r\n let colIndex = parseInt(elm.getAttribute('ci'), 10);\r\n\r\n this.closeAll(colIndex);\r\n this.toggle(colIndex);\r\n\r\n if (this.adjustToContainer) {\r\n let cont = this.fltElms[colIndex],\r\n header = this.tf.getHeaderElement(colIndex),\r\n headerWidth = header.clientWidth * 0.95;\r\n cont.style.width = parseInt(headerWidth, 10) + 'px';\r\n }\r\n cancelEvt(evt);\r\n stopEvt(evt);\r\n }\r\n\r\n /**\r\n * Mouse-up event handler handling popup filter auto-close behaviour\r\n * @private\r\n */\r\n onMouseup(evt) {\r\n if (this.activeFilterIdx === -1) {\r\n return;\r\n }\r\n let targetElm = targetEvt(evt);\r\n let activeFlt = this.fltElms[this.activeFilterIdx];\r\n let icon = this.fltIcons[this.activeFilterIdx];\r\n\r\n if (icon === targetElm) {\r\n return;\r\n }\r\n\r\n while (targetElm && targetElm !== activeFlt) {\r\n targetElm = targetElm.parentNode;\r\n }\r\n\r\n if (targetElm !== activeFlt) {\r\n this.close(this.activeFilterIdx);\r\n }\r\n\r\n return;\r\n }\r\n\r\n /**\r\n * Initialize DOM elements\r\n */\r\n init() {\r\n if (this.initialized) {\r\n return;\r\n }\r\n\r\n let tf = this.tf;\r\n\r\n // Override headers row index if no grouped headers\r\n // TODO: Because of the filters row generation, headers row index needs\r\n // adjusting: prevent useless row generation\r\n if (tf.headersRow <= 1 && isNaN(tf.config().headers_row_index)) {\r\n tf.headersRow = 0;\r\n }\r\n\r\n // Adjust headers row index for grid-layout mode\r\n // TODO: Because of the filters row generation, headers row index needs\r\n // adjusting: prevent useless row generation\r\n if (tf.gridLayout) {\r\n tf.headersRow--;\r\n this.buildIcons();\r\n }\r\n\r\n // subscribe to events\r\n this.emitter.on(['before-filtering'], () => this.setIconsState());\r\n this.emitter.on(['after-filtering'], () => this.closeAll());\r\n this.emitter.on(['cell-processed'],\r\n (tf, cellIndex) => this.changeState(cellIndex, true));\r\n this.emitter.on(['filters-row-inserted'], () => this.buildIcons());\r\n this.emitter.on(['before-filter-init'],\r\n (tf, colIndex) => this.build(colIndex));\r\n\r\n /** @inherited */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Reset previously destroyed feature\r\n */\r\n reset() {\r\n this.enable();\r\n this.init();\r\n this.buildIcons();\r\n this.buildAll();\r\n }\r\n\r\n /**\r\n * Build all filters icons\r\n */\r\n buildIcons() {\r\n let tf = this.tf;\r\n\r\n // TODO: Because of the filters row generation, headers row index needs\r\n // adjusting: prevent useless row generation\r\n tf.headersRow++;\r\n\r\n for (let i = 0; i < tf.nbCells; i++) {\r\n if (tf.getFilterType(i) === NONE) {\r\n continue;\r\n }\r\n let icon = createElm('span', ['ci', i]);\r\n icon.innerHTML = this.iconHtml;\r\n let header = tf.getHeaderElement(i);\r\n header.appendChild(icon);\r\n addEvt(icon, 'click', (evt) => this.onClick(evt));\r\n this.fltSpans[i] = icon;\r\n this.fltIcons[i] = icon.firstChild;\r\n }\r\n }\r\n\r\n /**\r\n * Build all pop-up filters elements\r\n */\r\n buildAll() {\r\n for (let i = 0; i < this.filtersCache.length; i++) {\r\n this.build(i, this.filtersCache[i]);\r\n }\r\n }\r\n\r\n /**\r\n * Build a specified pop-up filter elements\r\n * @param {Number} colIndex Column index\r\n * @param {Object} div Optional container DOM element\r\n */\r\n build(colIndex, div) {\r\n let tf = this.tf;\r\n let contId = `${this.prfxDiv}${tf.id}_${colIndex}`;\r\n let cont = div || createElm('div', ['id', contId]);\r\n cont.className = this.containerCssClass;\r\n tf.externalFltTgtIds.push(cont.id);\r\n\r\n let header = tf.getHeaderElement(colIndex);\r\n header.insertBefore(cont, header.firstChild);\r\n addEvt(cont, 'click', (evt) => stopEvt(evt));\r\n this.fltElms[colIndex] = cont;\r\n }\r\n\r\n /**\r\n * Toggle visibility of specified filter\r\n * @param {Number} colIndex Column index\r\n */\r\n toggle(colIndex) {\r\n if (!this.isOpen(colIndex)) {\r\n this.open(colIndex);\r\n } else {\r\n this.close(colIndex);\r\n }\r\n }\r\n\r\n /**\r\n * Open popup filter of specified column\r\n * @param {Number} colIndex Column index\r\n */\r\n open(colIndex) {\r\n let tf = this.tf,\r\n container = this.fltElms[colIndex];\r\n\r\n this.onBeforeOpen(this, container, colIndex);\r\n\r\n container.style.display = 'block';\r\n this.activeFilterIdx = colIndex;\r\n addEvt(root, 'mouseup', (evt) => this.onMouseup(evt));\r\n\r\n if (tf.getFilterType(colIndex) === INPUT) {\r\n let flt = tf.getFilterElement(colIndex);\r\n if (flt) {\r\n flt.focus();\r\n }\r\n }\r\n\r\n this.onAfterOpen(this, container, colIndex);\r\n }\r\n\r\n /**\r\n * Close popup filter of specified column\r\n * @param {Number} colIndex Column index\r\n */\r\n close(colIndex) {\r\n let container = this.fltElms[colIndex];\r\n\r\n this.onBeforeClose(this, container, colIndex);\r\n\r\n container.style.display = NONE;\r\n if (this.activeFilterIdx === colIndex) {\r\n this.activeFilterIdx = -1;\r\n }\r\n removeEvt(root, 'mouseup', (evt) => this.onMouseup(evt));\r\n\r\n this.onAfterClose(this, container, colIndex);\r\n }\r\n\r\n /**\r\n * Check if popup filter for specified column is open\r\n * @param {Number} colIndex Column index\r\n * @returns {Boolean}\r\n */\r\n isOpen(colIndex) {\r\n return this.fltElms[colIndex].style.display === 'block';\r\n }\r\n\r\n /**\r\n * Close all filters excepted for the specified one if any\r\n * @param {Number} exceptIdx Column index of the filter to not close\r\n */\r\n closeAll(exceptIdx) {\r\n // Do not close filters only if argument is undefined and close on\r\n // filtering option is disabled\r\n if (isUndef(exceptIdx) && !this.closeOnFiltering) {\r\n return;\r\n }\r\n for (let i = 0; i < this.fltElms.length; i++) {\r\n if (i === exceptIdx) {\r\n continue;\r\n }\r\n let fltType = tf.getFilterType(i);\r\n let isMultipleFilter =\r\n (fltType === CHECKLIST || fltType === MULTIPLE);\r\n\r\n // Always hide all single selection filter types but hide multiple\r\n // selection filter types only if index set\r\n if (!isMultipleFilter || !isUndef(exceptIdx)) {\r\n this.close(i);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Build all the icons representing the pop-up filters\r\n */\r\n setIconsState() {\r\n for (let i = 0; i < this.fltIcons.length; i++) {\r\n this.changeState(i, false);\r\n }\r\n }\r\n\r\n /**\r\n * Apply specified icon state\r\n * @param {Number} colIndex Column index\r\n * @param {Boolean} active Apply active state\r\n */\r\n changeState(colIndex, active) {\r\n let icon = this.fltIcons[colIndex];\r\n if (icon) {\r\n icon.src = active ? this.activeIconPath : this.iconPath;\r\n }\r\n }\r\n\r\n /**\r\n * Remove pop-up filters\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n\r\n this.filtersCache = [];\r\n for (let i = 0; i < this.fltElms.length; i++) {\r\n let container = this.fltElms[i],\r\n icon = this.fltSpans[i],\r\n iconImg = this.fltIcons[i];\r\n if (container) {\r\n removeElm(container);\r\n this.filtersCache[i] = container;\r\n }\r\n container = null;\r\n if (icon) {\r\n removeElm(icon);\r\n }\r\n icon = null;\r\n if (iconImg) {\r\n removeElm(iconImg);\r\n }\r\n iconImg = null;\r\n }\r\n this.fltElms = [];\r\n this.fltSpans = [];\r\n this.fltIcons = [];\r\n\r\n // TODO: expose an API to handle external filter IDs\r\n tf.externalFltTgtIds = [];\r\n\r\n // unsubscribe to events\r\n this.emitter.off(['before-filtering'], () => this.setIconsState());\r\n this.emitter.off(['after-filtering'], () => this.closeAll());\r\n this.emitter.off(['cell-processed'],\r\n (tf, cellIndex) => this.changeState(cellIndex, true));\r\n this.emitter.off(['filters-row-inserted'], () => this.buildIcons());\r\n this.emitter.off(['before-filter-init'],\r\n (tf, colIndex) => this.build(colIndex));\r\n\r\n this.initialized = false;\r\n }\r\n\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/popupFilter.js","import {Feature} from '../feature';\r\nimport {createElm, createOpt, elm} from '../dom';\r\nimport {has} from '../array';\r\nimport {matchCase} from '../string';\r\nimport {ignoreCase, numSortAsc, numSortDesc} from '../sort';\r\nimport {addEvt, targetEvt} from '../event';\r\nimport {SELECT, MULTIPLE, NONE} from '../const';\r\n\r\nconst SORT_ERROR = 'Filter options for column {0} cannot be sorted in ' +\r\n '{1} manner.';\r\n\r\n/**\r\n * Dropdown filter UI component\r\n */\r\nexport class Dropdown extends Feature {\r\n\r\n /**\r\n * Creates an instance of Dropdown\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'dropdown');\r\n\r\n // Configuration object\r\n let f = this.config;\r\n\r\n /**\r\n * Enable the reset filter option as first item\r\n * @type {Boolean}\r\n */\r\n this.enableSlcResetFilter = f.enable_slc_reset_filter === false ?\r\n false : true;\r\n\r\n /**\r\n * Non empty option text\r\n * @type {String}\r\n */\r\n this.nonEmptyText = f.non_empty_text || '(Non empty)';\r\n\r\n /**\r\n * Tooltip text appearing on multiple select\r\n * @type {String}\r\n */\r\n this.multipleSlcTooltip = f.multiple_slc_tooltip ||\r\n 'Use Ctrl/Cmd key for multiple selections';\r\n\r\n /**\r\n * Indicates drop-down has custom options\r\n * @private\r\n */\r\n this.isCustom = null;\r\n\r\n /**\r\n * List of options values\r\n * @type {Array}\r\n * @private\r\n */\r\n this.opts = null;\r\n\r\n /**\r\n * List of options texts for custom values\r\n * @type {Array}\r\n * @private\r\n */\r\n this.optsTxt = null;\r\n }\r\n\r\n\r\n /**\r\n * Drop-down filter focus event handler\r\n * @param {Event} e DOM Event\r\n * @private\r\n */\r\n onSlcFocus(e) {\r\n let elm = targetEvt(e);\r\n let tf = this.tf;\r\n // select is populated when element has focus\r\n if (tf.loadFltOnDemand && elm.getAttribute('filled') === '0') {\r\n let ct = elm.getAttribute('ct');\r\n this.build(ct);\r\n }\r\n this.emitter.emit('filter-focus', tf, elm);\r\n }\r\n\r\n /**\r\n * Drop-down filter change event handler\r\n * @private\r\n */\r\n onSlcChange() {\r\n if (this.tf.onSlcChange) {\r\n this.tf.filter();\r\n }\r\n }\r\n\r\n /**\r\n * Refresh all drop-down filters\r\n */\r\n refreshAll() {\r\n let tf = this.tf;\r\n let selectFlts = tf.getFiltersByType(SELECT, true);\r\n let multipleFlts = tf.getFiltersByType(MULTIPLE, true);\r\n let flts = selectFlts.concat(multipleFlts);\r\n flts.forEach((colIdx) => {\r\n let values = this.getValues(colIdx);\r\n this.build(colIdx, tf.linkedFilters);\r\n this.selectOptions(colIdx, values);\r\n });\r\n }\r\n\r\n /**\r\n * Initialize drop-down filter\r\n * @param {Number} colIndex Column index\r\n * @param {Boolean} isExternal External filter flag\r\n * @param {DOMElement} container Dom element containing the filter\r\n */\r\n init(colIndex, isExternal, container) {\r\n let tf = this.tf;\r\n let col = tf.getFilterType(colIndex);\r\n let externalFltTgtId = isExternal ?\r\n tf.externalFltTgtIds[colIndex] : null;\r\n\r\n let slc = createElm(SELECT,\r\n ['id', tf.buildFilterId(colIndex)],\r\n ['ct', colIndex], ['filled', '0']\r\n );\r\n\r\n if (col === MULTIPLE) {\r\n slc.multiple = MULTIPLE;\r\n slc.title = this.multipleSlcTooltip;\r\n }\r\n slc.className = col.toLowerCase() === SELECT ?\r\n tf.fltCssClass : tf.fltMultiCssClass;\r\n\r\n //filter is appended in container element\r\n if (externalFltTgtId) {\r\n elm(externalFltTgtId).appendChild(slc);\r\n } else {\r\n container.appendChild(slc);\r\n }\r\n\r\n tf.fltIds.push(slc.id);\r\n\r\n if (!tf.loadFltOnDemand) {\r\n this.build(colIndex);\r\n } else {\r\n //1st option is created here since build isn't invoked\r\n let opt0 = createOpt(tf.getClearFilterText(colIndex), '');\r\n slc.appendChild(opt0);\r\n }\r\n\r\n addEvt(slc, 'change', () => this.onSlcChange());\r\n addEvt(slc, 'focus', (e) => this.onSlcFocus(e));\r\n\r\n this.emitter.on(\r\n ['build-select-filter'],\r\n (tf, colIndex, isLinked, isExternal) =>\r\n this.build(colIndex, isLinked, isExternal)\r\n );\r\n this.emitter.on(\r\n ['select-options'],\r\n (tf, colIndex, values) => this.selectOptions(colIndex, values)\r\n );\r\n this.emitter.on(['rows-changed'], () => this.refreshAll());\r\n\r\n /** @inherited */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Build drop-down filter UI\r\n * @param {Number} colIndex Column index\r\n * @param {Boolean} isLinked Enable linked filters behaviour\r\n */\r\n build(colIndex, isLinked = false) {\r\n let tf = this.tf;\r\n colIndex = parseInt(colIndex, 10);\r\n\r\n this.emitter.emit('before-populating-filter', tf, colIndex);\r\n\r\n this.opts = [];\r\n this.optsTxt = [];\r\n\r\n let slcId = tf.fltIds[colIndex];\r\n let slc = elm(slcId);\r\n let rows = tf.tbl.rows;\r\n let nbRows = tf.getRowsNb(true);\r\n\r\n //custom select test\r\n this.isCustom = tf.isCustomOptions(colIndex);\r\n\r\n //custom selects text\r\n let activeIdx;\r\n let activeFilterId = tf.getActiveFilterId();\r\n if (isLinked && activeFilterId) {\r\n activeIdx = tf.getColumnIndexFromFilterId(activeFilterId);\r\n }\r\n\r\n let excludedOpts = null,\r\n filteredDataCol = null;\r\n if (isLinked && tf.disableExcludedOptions) {\r\n excludedOpts = [];\r\n filteredDataCol = [];\r\n }\r\n\r\n for (let k = tf.refRow; k < nbRows; k++) {\r\n // always visible rows don't need to appear on selects as always\r\n // valid\r\n if (tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1) {\r\n continue;\r\n }\r\n\r\n let cell = rows[k].cells,\r\n nchilds = cell.length;\r\n\r\n // checks if row has exact cell #\r\n if (nchilds !== tf.nbCells || this.isCustom) {\r\n continue;\r\n }\r\n\r\n // this loop retrieves cell data\r\n for (let j = 0; j < nchilds; j++) {\r\n if (colIndex !== j) {\r\n continue;\r\n }\r\n if (isLinked && !tf.disableExcludedOptions &&\r\n (!tf.paging && !tf.isRowDisplayed(k)) ||\r\n (tf.paging && activeIdx && !tf.isRowValid(k))) {\r\n continue;\r\n }\r\n\r\n let cellValue = tf.getCellValue(cell[j]),\r\n //Vary Peter's patch\r\n cellString = matchCase(cellValue, tf.caseSensitive);\r\n\r\n // checks if celldata is already in array\r\n if (!has(this.opts, cellString, tf.caseSensitive)) {\r\n this.opts.push(cellValue);\r\n }\r\n\r\n if (isLinked && tf.disableExcludedOptions) {\r\n let filteredCol = filteredDataCol[j];\r\n if (!filteredCol) {\r\n filteredCol = tf.getFilteredDataCol(j);\r\n }\r\n if (!has(filteredCol, cellString, tf.caseSensitive) &&\r\n !has(excludedOpts, cellString, tf.caseSensitive)) {\r\n excludedOpts.push(cellValue);\r\n }\r\n }\r\n }//for j\r\n }//for k\r\n\r\n //Retrieves custom values\r\n if (this.isCustom) {\r\n let customValues = tf.getCustomOptions(colIndex);\r\n this.opts = customValues[0];\r\n this.optsTxt = customValues[1];\r\n }\r\n\r\n if (tf.sortSlc && !this.isCustom) {\r\n if (!tf.caseSensitive) {\r\n this.opts.sort(ignoreCase);\r\n if (excludedOpts) {\r\n excludedOpts.sort(ignoreCase);\r\n }\r\n } else {\r\n this.opts.sort();\r\n if (excludedOpts) { excludedOpts.sort(); }\r\n }\r\n }\r\n\r\n //asc sort\r\n if (tf.sortNumAsc.indexOf(colIndex) !== -1) {\r\n try {\r\n this.opts.sort(numSortAsc);\r\n if (excludedOpts) {\r\n excludedOpts.sort(numSortAsc);\r\n }\r\n if (this.isCustom) {\r\n this.optsTxt.sort(numSortAsc);\r\n }\r\n } catch (e) {\r\n throw new Error(SORT_ERROR.replace('{0}', colIndex)\r\n .replace('{1}', 'ascending'));\r\n }//in case there are alphanumeric values\r\n }\r\n //desc sort\r\n if (tf.sortNumDesc.indexOf(colIndex) !== -1) {\r\n try {\r\n this.opts.sort(numSortDesc);\r\n if (excludedOpts) {\r\n excludedOpts.sort(numSortDesc);\r\n }\r\n if (this.isCustom) {\r\n this.optsTxt.sort(numSortDesc);\r\n }\r\n } catch (e) {\r\n throw new Error(SORT_ERROR.replace('{0}', colIndex)\r\n .replace('{1}', 'ascending'));\r\n }//in case there are alphanumeric values\r\n }\r\n\r\n //populates drop-down\r\n this.addOptions(colIndex, slc, isLinked, excludedOpts);\r\n\r\n this.emitter.emit('after-populating-filter', tf, colIndex, slc);\r\n }\r\n\r\n /**\r\n * Add drop-down options\r\n * @param {Number} colIndex Column index\r\n * @param {Object} slc Select Dom element\r\n * @param {Boolean} isLinked Enable linked refresh behaviour\r\n * @param {Array} excludedOpts Array of excluded options\r\n */\r\n addOptions(colIndex, slc, isLinked, excludedOpts) {\r\n let tf = this.tf,\r\n slcValue = slc.value;\r\n\r\n slc.innerHTML = '';\r\n slc = this.addFirstOption(slc);\r\n\r\n for (let y = 0; y < this.opts.length; y++) {\r\n if (this.opts[y] === '') {\r\n continue;\r\n }\r\n let val = this.opts[y]; //option value\r\n let lbl = this.isCustom ? this.optsTxt[y] : val; //option text\r\n let isDisabled = false;\r\n if (isLinked && tf.disableExcludedOptions &&\r\n has(excludedOpts, matchCase(val, tf.caseSensitive),\r\n tf.caseSensitive)) {\r\n isDisabled = true;\r\n }\r\n\r\n let opt;\r\n //fill select on demand\r\n if (tf.loadFltOnDemand && slcValue === this.opts[y] &&\r\n tf.getFilterType(colIndex) === SELECT) {\r\n opt = createOpt(lbl, val, true);\r\n } else {\r\n opt = createOpt(lbl, val, false);\r\n }\r\n if (isDisabled) {\r\n opt.disabled = true;\r\n }\r\n slc.appendChild(opt);\r\n }// for y\r\n\r\n slc.setAttribute('filled', '1');\r\n }\r\n\r\n /**\r\n * Add drop-down header option\r\n * @param {Object} slc Select DOM element\r\n */\r\n addFirstOption(slc) {\r\n let tf = this.tf;\r\n let colIdx = tf.getColumnIndexFromFilterId(slc.id);\r\n let opt0 = createOpt((!this.enableSlcResetFilter ?\r\n '' : tf.getClearFilterText(colIdx)), '');\r\n if (!this.enableSlcResetFilter) {\r\n opt0.style.display = NONE;\r\n }\r\n slc.appendChild(opt0);\r\n if (tf.enableEmptyOption) {\r\n let opt1 = createOpt(tf.emptyText, tf.emOperator);\r\n slc.appendChild(opt1);\r\n }\r\n if (tf.enableNonEmptyOption) {\r\n let opt2 = createOpt(tf.nonEmptyText, tf.nmOperator);\r\n slc.appendChild(opt2);\r\n }\r\n return slc;\r\n }\r\n\r\n /**\r\n * Select filter options programmatically\r\n * @param {Number} colIndex Column index\r\n * @param {Array} values Array of option values to select\r\n */\r\n selectOptions(colIndex, values = []) {\r\n let tf = this.tf;\r\n if (values.length === 0) {\r\n return;\r\n }\r\n let slc = tf.getFilterElement(colIndex);\r\n [].forEach.call(slc.options, (option) => {\r\n // Empty value means clear all selections and first option is the\r\n // clear all option\r\n if (values[0] === '' || option.value === '') {\r\n option.selected = false;\r\n }\r\n\r\n if (option.value !== '' && has(values, option.value, true)) {\r\n option.selected = true;\r\n }//if\r\n });\r\n }\r\n\r\n /**\r\n * Get filter values for a given column index\r\n * @param {Number} colIndex Column index\r\n * @returns {Array} values Array of selected values\r\n */\r\n getValues(colIndex) {\r\n let tf = this.tf;\r\n let slc = tf.getFilterElement(colIndex);\r\n let values = [];\r\n\r\n // IE >= 9 does not support the selectedOptions property :(\r\n if (slc.selectedOptions) {\r\n [].forEach.call(slc.selectedOptions,\r\n option => values.push(option.value));\r\n } else {\r\n [].forEach.call(slc.options, (option) => {\r\n if (option.selected) {\r\n values.push(option.value);\r\n }\r\n });\r\n }\r\n\r\n return values;\r\n }\r\n\r\n /**\r\n * Destroy Dropdown instance\r\n */\r\n destroy() {\r\n this.emitter.off(\r\n ['build-select-filter'],\r\n (colIndex, isLinked, isExternal) =>\r\n this.build(colIndex, isLinked, isExternal)\r\n );\r\n this.emitter.off(\r\n ['select-options'],\r\n (tf, colIndex, values) => this.selectOptions(colIndex, values)\r\n );\r\n this.emitter.off(['rows-changed'], () => this.refreshAll());\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/dropdown.js","/**\r\n * Array utilities\r\n */\r\n\r\nimport {matchCase} from './string';\r\n\r\n/**\r\n * Checks if given item can be found in the passed collection\r\n * @param {Array} arr collection\r\n * @param {Any} val item to search\r\n * @param {Boolean} caseSensitive respects case if true\r\n * @return {Boolean}\r\n */\r\nexport const has = (arr, val, caseSensitive) => {\r\n let sCase = Boolean(caseSensitive);\r\n for (var i = 0, l = arr.length; i < l; i++) {\r\n if (matchCase(arr[i].toString(), sCase) === val) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/array.js","/**\r\n * Sorting utilities\r\n */\r\n\r\n/**\r\n * Case insensitive compare function for passed strings\r\n * @param {String} First string\r\n * @param {String} Second string\r\n * @return {Number} -1 if first string lower than second one\r\n * 0 if first string same order as second one\r\n * 1 if first string greater than second one\r\n */\r\nexport const ignoreCase = (a, b) => {\r\n let x = a.toLowerCase();\r\n let y = b.toLowerCase();\r\n return ((x < y) ? -1 : ((x > y) ? 1 : 0));\r\n}\r\n\r\n/**\r\n * Sorts passed numbers in a ascending manner\r\n * @param {Number} First number\r\n * @param {Number} Second number\r\n * @param {Number} Negative, zero or positive number\r\n */\r\nexport const numSortAsc = (a, b) => (a - b);\r\n\r\n/**\r\n * Sorts passed numbers in a descending manner\r\n * @param {Number} First number\r\n * @param {Number} Second number\r\n * @param {Number} Negative, zero or positive number\r\n */\r\nexport const numSortDesc = (a, b) => (b - a);\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/sort.js","import {Feature} from '../feature';\r\nimport {\r\n addClass, createCheckItem, createText, createElm, elm, getText,\r\n removeClass, tag\r\n} from '../dom';\r\nimport {has} from '../array';\r\nimport {matchCase, trim, rgxEsc} from '../string';\r\nimport {ignoreCase, numSortAsc, numSortDesc} from '../sort';\r\nimport {addEvt, removeEvt, targetEvt} from '../event';\r\nimport {isEmpty} from '../types';\r\nimport {CHECKLIST, NONE} from '../const';\r\n\r\nconst SORT_ERROR = 'Filter options for column {0} cannot be sorted in ' +\r\n '{1} manner.';\r\n\r\n/**\r\n * Checklist filter UI component\r\n */\r\nexport class CheckList extends Feature {\r\n\r\n /**\r\n * Creates an instance of CheckList\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'checkList');\r\n\r\n let f = this.config;\r\n\r\n /**\r\n * List of container DOM elements\r\n * @type {Array}\r\n */\r\n this.containers = [];\r\n\r\n /**\r\n * Css class for the container of the checklist filter (div)\r\n * @type {String}\r\n */\r\n this.containerCssClass = f.div_checklist_css_class || 'div_checklist';\r\n\r\n /**\r\n * Css class for the checklist filter element (ul)\r\n * @type {String}\r\n */\r\n this.filterCssClass = f.checklist_css_class || 'flt_checklist';\r\n\r\n /**\r\n * Css class for the item of a checklist (li)\r\n * @type {String}\r\n */\r\n this.itemCssClass = f.checklist_item_css_class || 'flt_checklist_item';\r\n\r\n /**\r\n * Css class for a selected item of a checklist (li)\r\n * @type {String}\r\n */\r\n this.selectedItemCssClass =\r\n f.checklist_selected_item_css_class || 'flt_checklist_slc_item';\r\n\r\n /**\r\n * Text placed in the filter's container when load filter on demand\r\n * feature is enabled\r\n * @type {String}\r\n */\r\n this.activateText =\r\n f.activate_checklist_text || 'Click to load filter data';\r\n\r\n /**\r\n * Css class for a disabled item of a checklist (li)\r\n * @type {String}\r\n */\r\n this.disabledItemCssClass = f.checklist_item_disabled_css_class ||\r\n 'flt_checklist_item_disabled';\r\n\r\n /**\r\n * Enable the reset filter option as first item\r\n * @type {Boolean}\r\n */\r\n this.enableResetOption = f.enable_checklist_reset_filter === false ?\r\n false : true;\r\n\r\n /**\r\n * Prefix for container element ID\r\n * @type {String}\r\n * @private\r\n */\r\n this.prfx = 'chkdiv_';\r\n\r\n /**\r\n * Has custom options\r\n * @type {Boolean}\r\n * @private\r\n */\r\n this.isCustom = false;\r\n\r\n /**\r\n * List of options values\r\n * @type {Array}\r\n * @private\r\n */\r\n this.opts = [];\r\n\r\n /**\r\n * List of options texts for custom values\r\n * @type {Array}\r\n * @private\r\n */\r\n this.optsTxt = [];\r\n\r\n /**\r\n * List of options to be excluded from the checklist filter\r\n * @type {Array}\r\n * @private\r\n */\r\n this.excludedOpts = [];\r\n }\r\n\r\n /**\r\n * Checklist option click event handler\r\n * @param {Event} evt\r\n * @private\r\n */\r\n optionClick(evt) {\r\n let elm = targetEvt(evt);\r\n let tf = this.tf;\r\n\r\n this.emitter.emit('filter-focus', tf, elm);\r\n this.setCheckListValues(elm);\r\n tf.filter();\r\n }\r\n\r\n /**\r\n * Checklist container click event handler for load-on-demand feature\r\n * @param {Event} evt\r\n * @private\r\n */\r\n onCheckListClick(evt) {\r\n let elm = targetEvt(evt);\r\n if (this.tf.loadFltOnDemand && elm.getAttribute('filled') === '0') {\r\n let ct = elm.getAttribute('ct');\r\n let div = this.containers[ct];\r\n this.build(ct);\r\n removeEvt(div, 'click', (evt) => this.onCheckListClick(evt));\r\n }\r\n }\r\n\r\n /**\r\n * Refresh all checklist filters\r\n */\r\n refreshAll() {\r\n let tf = this.tf;\r\n let fltsIdxs = tf.getFiltersByType(CHECKLIST, true);\r\n fltsIdxs.forEach((colIdx) => {\r\n let values = this.getValues(colIdx);\r\n this.build(colIdx, tf.linkedFilters);\r\n this.selectOptions(colIdx, values);\r\n });\r\n }\r\n\r\n /**\r\n * Initialize checklist filter\r\n * @param {Number} colIndex Column index\r\n * @param {Boolean} isExternal External filter flag\r\n * @param {DOMElement} container Dom element containing the filter\r\n */\r\n init(colIndex, isExternal, container) {\r\n let tf = this.tf;\r\n let externalFltTgtId = isExternal ?\r\n tf.externalFltTgtIds[colIndex] : null;\r\n\r\n let divCont = createElm('div',\r\n ['id', `${this.prfx}${colIndex}_${tf.id}`],\r\n ['ct', colIndex], ['filled', '0']);\r\n divCont.className = this.containerCssClass;\r\n\r\n //filter is appended in desired element\r\n if (externalFltTgtId) {\r\n elm(externalFltTgtId).appendChild(divCont);\r\n } else {\r\n container.appendChild(divCont);\r\n }\r\n\r\n this.containers[colIndex] = divCont;\r\n tf.fltIds.push(tf.buildFilterId(colIndex));\r\n\r\n if (!tf.loadFltOnDemand) {\r\n this.build(colIndex);\r\n } else {\r\n addEvt(divCont, 'click', (evt) => this.onCheckListClick(evt));\r\n divCont.appendChild(createText(this.activateText));\r\n }\r\n\r\n this.emitter.on(\r\n ['build-checklist-filter'],\r\n (tf, colIndex, isLinked) => this.build(colIndex, isLinked)\r\n );\r\n\r\n this.emitter.on(\r\n ['select-checklist-options'],\r\n (tf, colIndex, values) => this.selectOptions(colIndex, values)\r\n );\r\n\r\n this.emitter.on(['rows-changed'], () => this.refreshAll());\r\n\r\n /** @inherited */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Build checklist UI\r\n * @param {Number} colIndex Column index\r\n * @param {Boolean} isLinked Enable linked filters behaviour\r\n */\r\n build(colIndex, isLinked = false) {\r\n let tf = this.tf;\r\n colIndex = parseInt(colIndex, 10);\r\n\r\n this.emitter.emit('before-populating-filter', tf, colIndex);\r\n\r\n this.opts = [];\r\n this.optsTxt = [];\r\n\r\n let flt = this.containers[colIndex];\r\n let ul = createElm('ul',\r\n ['id', tf.fltIds[colIndex]],\r\n ['colIndex', colIndex]);\r\n ul.className = this.filterCssClass;\r\n\r\n let rows = tf.tbl.rows;\r\n let nbRows = tf.getRowsNb(true);\r\n let caseSensitive = tf.caseSensitive;\r\n this.isCustom = tf.isCustomOptions(colIndex);\r\n\r\n let activeIdx;\r\n let activeFilterId = tf.getActiveFilterId();\r\n if (isLinked && activeFilterId) {\r\n activeIdx = tf.getColumnIndexFromFilterId(activeFilterId);\r\n }\r\n\r\n let filteredDataCol = [];\r\n if (isLinked && tf.disableExcludedOptions) {\r\n this.excludedOpts = [];\r\n }\r\n\r\n flt.innerHTML = '';\r\n\r\n for (let k = tf.refRow; k < nbRows; k++) {\r\n // always visible rows don't need to appear on selects as always\r\n // valid\r\n if (tf.hasVisibleRows && tf.visibleRows.indexOf(k) !== -1) {\r\n continue;\r\n }\r\n\r\n let cells = rows[k].cells;\r\n let ncells = cells.length;\r\n\r\n // checks if row has exact cell #\r\n if (ncells !== tf.nbCells || this.isCustom) {\r\n continue;\r\n }\r\n\r\n // this loop retrieves cell data\r\n for (let j = 0; j < ncells; j++) {\r\n if (colIndex !== j) {\r\n continue;\r\n }\r\n if (isLinked && !tf.disableExcludedOptions &&\r\n (!tf.paging && !tf.isRowDisplayed(k)) ||\r\n (tf.paging && activeIdx && !tf.isRowValid(k))) {\r\n continue;\r\n }\r\n\r\n let cellValue = tf.getCellValue(cells[j]);\r\n //Vary Peter's patch\r\n let cellString = matchCase(cellValue, caseSensitive);\r\n // checks if celldata is already in array\r\n if (!has(this.opts, cellString, caseSensitive)) {\r\n this.opts.push(cellValue);\r\n }\r\n let filteredCol = filteredDataCol[j];\r\n if (isLinked && tf.disableExcludedOptions) {\r\n if (!filteredCol) {\r\n filteredCol = tf.getFilteredDataCol(j);\r\n }\r\n if (!has(filteredCol, cellString, caseSensitive) &&\r\n !has(this.excludedOpts, cellString,\r\n caseSensitive)) {\r\n this.excludedOpts.push(cellValue);\r\n }\r\n }\r\n }\r\n }\r\n\r\n //Retrieves custom values\r\n if (this.isCustom) {\r\n let customValues = tf.getCustomOptions(colIndex);\r\n this.opts = customValues[0];\r\n this.optsTxt = customValues[1];\r\n }\r\n\r\n if (tf.sortSlc && !this.isCustom) {\r\n if (!caseSensitive) {\r\n this.opts.sort(ignoreCase);\r\n if (this.excludedOpts) {\r\n this.excludedOpts.sort(ignoreCase);\r\n }\r\n } else {\r\n this.opts.sort();\r\n if (this.excludedOpts) {\r\n this.excludedOpts.sort();\r\n }\r\n }\r\n }\r\n //asc sort\r\n if (tf.sortNumAsc.indexOf(colIndex) !== -1) {\r\n try {\r\n this.opts.sort(numSortAsc);\r\n if (this.excludedOpts) {\r\n this.excludedOpts.sort(numSortAsc);\r\n }\r\n if (this.isCustom) {\r\n this.optsTxt.sort(numSortAsc);\r\n }\r\n } catch (e) {\r\n throw new Error(SORT_ERROR.replace('{0}', colIndex)\r\n .replace('{1}', 'ascending'));\r\n }//in case there are alphanumeric values\r\n }\r\n //desc sort\r\n if (tf.sortNumDesc.indexOf(colIndex) !== -1) {\r\n try {\r\n this.opts.sort(numSortDesc);\r\n if (this.excludedOpts) {\r\n this.excludedOpts.sort(numSortDesc);\r\n }\r\n if (this.isCustom) {\r\n this.optsTxt.sort(numSortDesc);\r\n }\r\n } catch (e) {\r\n throw new Error(SORT_ERROR.replace('{0}', colIndex)\r\n .replace('{1}', 'descending'));\r\n }//in case there are alphanumeric values\r\n }\r\n\r\n this.addChecks(colIndex, ul);\r\n\r\n if (tf.loadFltOnDemand) {\r\n flt.innerHTML = '';\r\n }\r\n flt.appendChild(ul);\r\n flt.setAttribute('filled', '1');\r\n\r\n this.emitter.emit('after-populating-filter', tf, colIndex, flt);\r\n }\r\n\r\n /**\r\n * Add checklist options\r\n * @param {Number} colIndex Column index\r\n * @param {Object} ul Ul element\r\n * @private\r\n */\r\n addChecks(colIndex, ul) {\r\n let tf = this.tf;\r\n let chkCt = this.addTChecks(colIndex, ul);\r\n\r\n for (let y = 0; y < this.opts.length; y++) {\r\n let val = this.opts[y]; //item value\r\n let lbl = this.isCustom ? this.optsTxt[y] : val; //item text\r\n let fltId = tf.fltIds[colIndex];\r\n let li = createCheckItem(`${fltId}_${(y + chkCt)}`, val, lbl);\r\n li.className = this.itemCssClass;\r\n\r\n if (tf.linkedFilters && tf.disableExcludedOptions &&\r\n has(this.excludedOpts, matchCase(val, tf.caseSensitive),\r\n tf.caseSensitive)) {\r\n addClass(li, this.disabledItemCssClass);\r\n li.check.disabled = true;\r\n li.disabled = true;\r\n } else {\r\n addEvt(li.check, 'click', evt => this.optionClick(evt));\r\n }\r\n ul.appendChild(li);\r\n\r\n if (val === '') {\r\n //item is hidden\r\n li.style.display = NONE;\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Add checklist header option\r\n * @param {Number} colIndex Column index\r\n * @param {Object} ul Ul element\r\n * @private\r\n */\r\n addTChecks(colIndex, ul) {\r\n let tf = this.tf;\r\n let chkCt = 1;\r\n let fltId = tf.fltIds[colIndex];\r\n let li0 = createCheckItem(`${fltId}_0`, '',\r\n tf.getClearFilterText(colIndex));\r\n li0.className = this.itemCssClass;\r\n ul.appendChild(li0);\r\n\r\n addEvt(li0.check, 'click', evt => this.optionClick(evt));\r\n\r\n if (!this.enableResetOption) {\r\n li0.style.display = NONE;\r\n }\r\n\r\n if (tf.enableEmptyOption) {\r\n let li1 = createCheckItem(`${fltId}_1`, tf.emOperator,\r\n tf.emptyText);\r\n li1.className = this.itemCssClass;\r\n ul.appendChild(li1);\r\n addEvt(li1.check, 'click', evt => this.optionClick(evt));\r\n chkCt++;\r\n }\r\n\r\n if (tf.enableNonEmptyOption) {\r\n let li2 = createCheckItem(`${fltId}_2`, tf.nmOperator,\r\n tf.nonEmptyText);\r\n li2.className = this.itemCssClass;\r\n ul.appendChild(li2);\r\n addEvt(li2.check, 'click', evt => this.optionClick(evt));\r\n chkCt++;\r\n }\r\n return chkCt;\r\n }\r\n\r\n /**\r\n * Store checked options in DOM element attribute\r\n * @param {Object} o checklist option DOM element\r\n * @private\r\n */\r\n setCheckListValues(o) {\r\n if (!o) {\r\n return;\r\n }\r\n\r\n let tf = this.tf;\r\n let chkValue = o.value; //checked item value\r\n // TODO: provide helper to extract column index, ugly!\r\n let chkIndex = parseInt(o.id.split('_')[2], 10);\r\n let colIdx = tf.getColumnIndexFromFilterId(o.id);\r\n let itemTag = 'LI';\r\n\r\n let n = tf.getFilterElement(parseInt(colIdx, 10));\r\n let li = n.childNodes[chkIndex];\r\n let colIndex = n.getAttribute('colIndex');\r\n let fltValue = n.getAttribute('value'); //filter value (ul tag)\r\n let fltIndexes = n.getAttribute('indexes'); //selected items (ul tag)\r\n\r\n if (o.checked) {\r\n //show all item\r\n if (chkValue === '') {\r\n if ((fltIndexes && fltIndexes !== '')) {\r\n //items indexes\r\n let indSplit = fltIndexes.split(tf.separator);\r\n //checked items loop\r\n for (let u = 0; u < indSplit.length; u++) {\r\n //checked item\r\n let cChk = elm(tf.fltIds[colIndex] + '_' +\r\n indSplit[u]);\r\n if (cChk) {\r\n cChk.checked = false;\r\n removeClass(n.childNodes[indSplit[u]],\r\n this.selectedItemCssClass);\r\n }\r\n }\r\n }\r\n n.setAttribute('value', '');\r\n n.setAttribute('indexes', '');\r\n\r\n } else {\r\n fltValue = (fltValue) ? fltValue : '';\r\n chkValue = trim(fltValue + ' ' + chkValue + ' ' +\r\n tf.orOperator);\r\n chkIndex = fltIndexes + chkIndex + tf.separator;\r\n n.setAttribute('value', chkValue);\r\n n.setAttribute('indexes', chkIndex);\r\n //1st option unchecked\r\n if (elm(tf.fltIds[colIndex] + '_0')) {\r\n elm(tf.fltIds[colIndex] + '_0').checked = false;\r\n }\r\n }\r\n\r\n if (li.nodeName === itemTag) {\r\n removeClass(n.childNodes[0], this.selectedItemCssClass);\r\n addClass(li, this.selectedItemCssClass);\r\n }\r\n } else { //removes values and indexes\r\n if (chkValue !== '') {\r\n let replaceValue = new RegExp(\r\n rgxEsc(chkValue + ' ' + tf.orOperator));\r\n fltValue = fltValue.replace(replaceValue, '');\r\n n.setAttribute('value', trim(fltValue));\r\n\r\n let replaceIndex = new RegExp(\r\n rgxEsc(chkIndex + tf.separator));\r\n fltIndexes = fltIndexes.replace(replaceIndex, '');\r\n n.setAttribute('indexes', fltIndexes);\r\n }\r\n if (li.nodeName === itemTag) {\r\n removeClass(li, this.selectedItemCssClass);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Select filter options programmatically\r\n * @param {Number} colIndex Column index\r\n * @param {Array} values Array of option values to select\r\n */\r\n selectOptions(colIndex, values = []) {\r\n let tf = this.tf;\r\n let flt = tf.getFilterElement(colIndex);\r\n if (tf.getFilterType(colIndex) !== CHECKLIST || !flt ||\r\n values.length === 0) {\r\n return;\r\n }\r\n\r\n let lisNb = tag(flt, 'li').length;\r\n\r\n flt.setAttribute('value', '');\r\n flt.setAttribute('indexes', '');\r\n\r\n for (let k = 0; k < lisNb; k++) {\r\n let li = tag(flt, 'li')[k];\r\n let lbl = tag(li, 'label')[0];\r\n let chk = tag(li, 'input')[0];\r\n let lblTxt = matchCase(getText(lbl), tf.caseSensitive);\r\n\r\n if (lblTxt !== '' && has(values, lblTxt, tf.caseSensitive)) {\r\n chk.checked = true;\r\n } else {\r\n // Check non-empty-text or empty-text option\r\n if (values.indexOf(tf.nmOperator) !== -1 &&\r\n lblTxt === matchCase(tf.nonEmptyText, tf.caseSensitive)) {\r\n chk.checked = true;\r\n }\r\n else if (values.indexOf(tf.emOperator) !== -1 &&\r\n lblTxt === matchCase(tf.emptyText, tf.caseSensitive)) {\r\n chk.checked = true;\r\n } else {\r\n chk.checked = false;\r\n }\r\n }\r\n this.setCheckListValues(chk);\r\n }\r\n }\r\n\r\n /**\r\n * Get filter values for a given column index\r\n * @param {Number} colIndex Column index\r\n * @returns {Array} values Collection of selected values\r\n */\r\n getValues(colIndex) {\r\n let tf = this.tf;\r\n let flt = tf.getFilterElement(colIndex);\r\n let fltAttr = flt.getAttribute('value');\r\n let values = isEmpty(fltAttr) ? '' : fltAttr;\r\n\r\n //removes last operator ||\r\n values = values.substr(0, values.length - 3);\r\n //turn || separated values into array\r\n values = values.split(' ' + tf.orOperator + ' ');\r\n\r\n return values;\r\n }\r\n\r\n /**\r\n * Destroy CheckList instance\r\n */\r\n destroy() {\r\n this.emitter.off(\r\n ['build-checklist-filter'],\r\n (tf, colIndex, isLinked) => this.build(colIndex, isLinked)\r\n );\r\n this.emitter.off(\r\n ['select-checklist-options'],\r\n (tf, colIndex, values) => this.selectOptions(colIndex, values)\r\n );\r\n this.emitter.off(['rows-changed'], () => this.refreshAll());\r\n\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/checkList.js","import {Feature} from '../feature';\r\nimport {createElm, createText, elm, removeElm} from '../dom';\r\nimport {isFn, EMPTY_FN} from '../types';\r\n\r\n/**\r\n * Rows counter UI component\r\n * @export\r\n * @class RowsCounter\r\n * @extends {Feature}\r\n */\r\nexport class RowsCounter extends Feature {\r\n\r\n /**\r\n * Creates an instance of RowsCounter\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'rowsCounter');\r\n\r\n // TableFilter configuration\r\n let f = this.config;\r\n\r\n /**\r\n * ID of custom container element\r\n * @type {String}\r\n */\r\n this.targetId = f.rows_counter_target_id || null;\r\n\r\n /**\r\n * Container DOM element\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.container = null;\r\n\r\n /**\r\n * Container DOM element for label displaying the total number of rows\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.label = null;\r\n\r\n /**\r\n * Text preceding the total number of rows\r\n * @type {String}\r\n */\r\n this.text = f.rows_counter_text || 'Rows: ';\r\n\r\n /**\r\n * Separator symbol appearing between the first and last visible rows of\r\n * current page when paging is enabled. ie: Rows: 31-40 / 70\r\n * @type {String}\r\n */\r\n this.fromToTextSeparator = f.from_to_text_separator || '-';\r\n\r\n /**\r\n * Separator symbol appearing between the first and last visible rows of\r\n * current page and the total number of filterable rows when paging is\r\n * enabled. ie: Rows: 31-40 / 70\r\n * @type {String}\r\n */\r\n this.overText = f.over_text || ' / ';\r\n\r\n /**\r\n * Css class for container element\r\n * @type {String}\r\n */\r\n this.cssClass = f.tot_rows_css_class || 'tot';\r\n\r\n /**\r\n * Callback fired before the counter is refreshed\r\n * @type {Function}\r\n */\r\n this.onBeforeRefreshCounter = isFn(f.on_before_refresh_counter) ?\r\n f.on_before_refresh_counter : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired after the counter is refreshed\r\n * @type {Function}\r\n */\r\n this.onAfterRefreshCounter = isFn(f.on_after_refresh_counter) ?\r\n f.on_after_refresh_counter : EMPTY_FN;\r\n }\r\n\r\n /**\r\n * Initializes RowsCounter instance\r\n */\r\n init() {\r\n if (this.initialized) {\r\n return;\r\n }\r\n\r\n let tf = this.tf;\r\n\r\n //rows counter container\r\n let countDiv = createElm('div');\r\n countDiv.className = this.cssClass;\r\n //rows counter label\r\n let countSpan = createElm('span');\r\n let countText = createElm('span');\r\n countText.appendChild(createText(this.text));\r\n\r\n // counter is added to defined element\r\n if (!this.targetId) {\r\n tf.setToolbar();\r\n }\r\n let targetEl = !this.targetId ? tf.lDiv : elm(this.targetId);\r\n\r\n //default container: 'lDiv'\r\n if (!this.targetId) {\r\n countDiv.appendChild(countText);\r\n countDiv.appendChild(countSpan);\r\n targetEl.appendChild(countDiv);\r\n }\r\n else {\r\n //custom container, no need to append statusDiv\r\n targetEl.appendChild(countText);\r\n targetEl.appendChild(countSpan);\r\n }\r\n this.container = countDiv;\r\n this.label = countSpan;\r\n\r\n // subscribe to events\r\n this.emitter.on(['after-filtering', 'grouped-by-page'],\r\n () => this.refresh(tf.getValidRowsNb()));\r\n this.emitter.on(['rows-changed'], () => this.refresh());\r\n\r\n /** @inherited */\r\n this.initialized = true;\r\n this.refresh();\r\n }\r\n\r\n /**\r\n * Refreshes the rows counter\r\n * @param {Number} p Optional parameter the total number of rows to display\r\n * @returns\r\n */\r\n refresh(p) {\r\n if (!this.initialized || !this.isEnabled()) {\r\n return;\r\n }\r\n\r\n let tf = this.tf;\r\n\r\n this.onBeforeRefreshCounter(tf, this.label);\r\n\r\n let totTxt;\r\n if (!tf.paging) {\r\n if (p && p !== '') {\r\n totTxt = p;\r\n } else {\r\n totTxt = tf.getFilterableRowsNb() - tf.nbHiddenRows;\r\n }\r\n } else {\r\n let paging = tf.feature('paging');\r\n if (paging) {\r\n //paging start row\r\n let pagingStartRow = parseInt(paging.startPagingRow, 10) +\r\n ((tf.getValidRowsNb() > 0) ? 1 : 0);\r\n let pagingEndRow =\r\n (pagingStartRow + paging.pagingLength) - 1 <=\r\n tf.getValidRowsNb() ?\r\n pagingStartRow + paging.pagingLength - 1 :\r\n tf.getValidRowsNb();\r\n totTxt = pagingStartRow + this.fromToTextSeparator +\r\n pagingEndRow + this.overText + tf.getValidRowsNb();\r\n }\r\n }\r\n\r\n this.label.innerHTML = totTxt;\r\n this.onAfterRefreshCounter(tf, this.label, totTxt);\r\n }\r\n\r\n /**\r\n * Remove feature\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n\r\n if (!this.targetId && this.container) {\r\n removeElm(this.container);\r\n } else {\r\n elm(this.targetId).innerHTML = '';\r\n }\r\n this.label = null;\r\n this.container = null;\r\n\r\n // unsubscribe to events\r\n this.emitter.off(['after-filtering', 'grouped-by-page'],\r\n () => this.refresh(tf.getValidRowsNb()));\r\n this.emitter.off(['rows-changed'], () => this.refresh());\r\n\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/rowsCounter.js","import {Feature} from '../feature';\r\nimport {root} from '../root';\r\nimport {createElm, createText, elm, removeElm} from '../dom';\r\nimport {isFn, EMPTY_FN} from '../types';\r\n\r\nconst EVENTS = [\r\n 'after-filtering',\r\n 'after-populating-filter',\r\n 'after-page-change',\r\n 'after-clearing-filters',\r\n 'after-page-length-change',\r\n 'after-reset-page',\r\n 'after-reset-page-length',\r\n 'after-loading-extensions',\r\n 'after-loading-themes'\r\n];\r\n\r\n/**\r\n * Status bar UI component\r\n * @export\r\n * @class StatusBar\r\n * @extends {Feature}\r\n */\r\nexport class StatusBar extends Feature {\r\n\r\n /**\r\n * Creates an instance of StatusBar\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'statusBar');\r\n\r\n // Configuration object\r\n let f = this.config;\r\n\r\n /**\r\n * ID of custom container element\r\n * @type {String}\r\n */\r\n this.targetId = f.status_bar_target_id || null;\r\n\r\n /**\r\n * Container DOM element\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.container = null;\r\n\r\n /**\r\n * Message container DOM element\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.msgContainer = null;\r\n\r\n /**\r\n * Label container DOM element\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.labelContainer = null;\r\n\r\n /**\r\n * Text preceding status message\r\n * @type {String}\r\n */\r\n this.text = f.status_bar_text || '';\r\n\r\n /**\r\n * Css class for container element\r\n * @type {String}\r\n */\r\n this.cssClass = f.status_bar_css_class || 'status';\r\n\r\n /**\r\n * Message visibility duration in milliseconds\r\n * @type {Number}\r\n * @private\r\n */\r\n this.delay = 250;\r\n\r\n /**\r\n * Callback fired before the message is displayed\r\n * @type {Function}\r\n */\r\n this.onBeforeShowMsg = isFn(f.on_before_show_msg) ?\r\n f.on_before_show_msg : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired after the message is displayed\r\n * @type {Function}\r\n */\r\n this.onAfterShowMsg = isFn(f.on_after_show_msg) ?\r\n f.on_after_show_msg : EMPTY_FN;\r\n\r\n /**\r\n * Message appearing upon filtering\r\n * @type {String}\r\n */\r\n this.msgFilter = f.msg_filter || 'Filtering data...';\r\n\r\n /**\r\n * Message appearing when a drop-down filter is populated\r\n * @type {String}\r\n */\r\n this.msgPopulate = f.msg_populate || 'Populating filter...';\r\n\r\n /**\r\n * Message appearing when a checklist filter is populated\r\n * @type {String}\r\n */\r\n this.msgPopulateCheckList = f.msg_populate_checklist ||\r\n 'Populating list...';\r\n\r\n /**\r\n * Message appearing when a pagination page is changed\r\n * @type {String}\r\n */\r\n this.msgChangePage = f.msg_change_page || 'Collecting paging data...';\r\n\r\n /**\r\n * Message appearing when filters are cleared\r\n * @type {String}\r\n */\r\n this.msgClear = f.msg_clear || 'Clearing filters...';\r\n\r\n /**\r\n * Message appearing when the page length is changed\r\n * @type {String}\r\n */\r\n this.msgChangeResults = f.msg_change_results ||\r\n 'Changing results per page...';\r\n\r\n /**\r\n * Message appearing when the page is re-set\r\n * @type {String}\r\n */\r\n this.msgResetPage = f.msg_reset_page || 'Re-setting page...';\r\n\r\n /**\r\n * Message appearing when the page length is re-set\r\n * @type {String}\r\n */\r\n this.msgResetPageLength = f.msg_reset_page_length ||\r\n 'Re-setting page length...';\r\n\r\n /**\r\n * Message appearing upon column sorting\r\n * @type {String}\r\n */\r\n this.msgSort = f.msg_sort || 'Sorting data...';\r\n\r\n /**\r\n * Message appearing when extensions are loading\r\n * @type {String}\r\n */\r\n this.msgLoadExtensions = f.msg_load_extensions ||\r\n 'Loading extensions...';\r\n\r\n /**\r\n * Message appearing when themes are loading\r\n * @type {String}\r\n */\r\n this.msgLoadThemes = f.msg_load_themes || 'Loading theme(s)...';\r\n }\r\n\r\n /**\r\n * Initializes StatusBar instance\r\n */\r\n init() {\r\n if (this.initialized) {\r\n return;\r\n }\r\n\r\n let tf = this.tf;\r\n let emitter = this.emitter;\r\n\r\n //status bar container\r\n let statusDiv = createElm('div');\r\n statusDiv.className = this.cssClass;\r\n\r\n //status bar label\r\n let statusSpan = createElm('span');\r\n //preceding text\r\n let statusSpanText = createElm('span');\r\n statusSpanText.appendChild(createText(this.text));\r\n\r\n // target element container\r\n if (!this.targetId) {\r\n tf.setToolbar();\r\n }\r\n let targetEl = (!this.targetId) ? tf.lDiv : elm(this.targetId);\r\n\r\n //default container: 'lDiv'\r\n if (!this.targetId) {\r\n statusDiv.appendChild(statusSpanText);\r\n statusDiv.appendChild(statusSpan);\r\n targetEl.appendChild(statusDiv);\r\n } else {\r\n // custom container, no need to append statusDiv\r\n targetEl.appendChild(statusSpanText);\r\n targetEl.appendChild(statusSpan);\r\n }\r\n\r\n this.container = statusDiv;\r\n this.msgContainer = statusSpan;\r\n this.labelContainer = statusSpanText;\r\n\r\n // Subscribe to events\r\n emitter.on(['before-filtering'], () => this.message(this.msgFilter));\r\n emitter.on(['before-populating-filter'],\r\n () => this.message(this.msgPopulate));\r\n emitter.on(['before-page-change'],\r\n () => this.message(this.msgChangePage));\r\n emitter.on(['before-clearing-filters'], () =>\r\n this.message(this.msgClear));\r\n emitter.on(['before-page-length-change'],\r\n () => this.message(this.msgChangeResults));\r\n emitter.on(['before-reset-page'],\r\n () => this.message(this.msgResetPage));\r\n emitter.on(['before-reset-page-length'],\r\n () => this.message(this.msgResetPageLength));\r\n emitter.on(['before-loading-extensions'],\r\n () => this.message(this.msgLoadExtensions));\r\n emitter.on(['before-loading-themes'],\r\n () => this.message(this.msgLoadThemes));\r\n\r\n emitter.on(EVENTS, () => this.message(''));\r\n\r\n /**\r\n * @inherited\r\n */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Display status message\r\n * @param {String} [t=''] Message to be displayed\r\n */\r\n message(t = '') {\r\n if (!this.isEnabled()) {\r\n return;\r\n }\r\n\r\n this.onBeforeShowMsg(this.tf, t);\r\n\r\n let d = t === '' ? this.delay : 1;\r\n root.setTimeout(() => {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n this.msgContainer.innerHTML = t;\r\n\r\n this.onAfterShowMsg(this.tf, t);\r\n }, d);\r\n }\r\n\r\n /**\r\n * Destroy StatusBar instance\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n\r\n let emitter = this.emitter;\r\n\r\n this.container.innerHTML = '';\r\n if (!this.targetId) {\r\n removeElm(this.container);\r\n }\r\n this.labelContainer = null;\r\n this.msgContainer = null;\r\n this.container = null;\r\n\r\n // Unsubscribe to events\r\n emitter.off(['before-filtering'], () => this.message(this.msgFilter));\r\n emitter.off(['before-populating-filter'],\r\n () => this.message(this.msgPopulate));\r\n emitter.off(['before-page-change'],\r\n () => this.message(this.msgChangePage));\r\n emitter.off(['before-clearing-filters'],\r\n () => this.message(this.msgClear));\r\n emitter.off(['before-page-length-change'],\r\n () => this.message(this.msgChangeResults));\r\n emitter.off(['before-reset-page'], () =>\r\n this.message(this.msgResetPage));\r\n emitter.off(['before-reset-page-length'],\r\n () => this.message(this.msgResetPageLength));\r\n emitter.off(['before-loading-extensions'],\r\n () => this.message(this.msgLoadExtensions));\r\n emitter.off(['before-loading-themes'],\r\n () => this.message(this.msgLoadThemes));\r\n\r\n emitter.off(EVENTS, () => this.message(''));\r\n\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/statusBar.js","import {Feature} from '../feature';\nimport {createElm, createOpt, createText, elm, removeElm} from '../dom';\nimport {isArray, isFn, isNull, EMPTY_FN} from '../types';\nimport {addEvt, keyCode, removeEvt} from '../event';\nimport {INPUT, SELECT, NONE, ENTER_KEY} from '../const';\n\n/**\n * Paging UI component\n * @export\n * @class Paging\n * @extends {Feature}\n */\nexport class Paging extends Feature {\n\n /**\n * Creates an instance of Paging\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'paging');\n\n // Configuration object\n var f = this.config;\n\n /**\n * Css class for the paging buttons (previous, next, etc.)\n * @type {String}\n */\n this.btnPageCssClass = f.paging_btn_css_class || 'pgInp';\n\n /**\n * Main select DOM element\n * @type {DOMElement}\n */\n this.pagingSlc = null;\n\n /**\n * Results per page select DOM element\n * @type {DOMElement}\n */\n this.resultsPerPageSlc = null;\n\n /**\n * ID of custom container element\n * @type {String}\n */\n this.pagingTgtId = f.paging_target_id || null;\n\n /**\n * Number of rows contained in a page\n * @type {Number}\n */\n this.pagingLength = !isNaN(f.paging_length) ? f.paging_length : 10;\n\n /**\n * ID of custom container element for the results per page selector\n * @type {String}\n */\n this.resultsPerPageTgtId = f.results_per_page_target_id || null;\n\n /**\n * Css class for the paging select element\n * @type {String}\n */\n this.pgSlcCssClass = f.paging_slc_css_class || 'pgSlc';\n\n /**\n * Css class for the paging input element\n * @type {String}\n */\n this.pgInpCssClass = f.paging_inp_css_class || 'pgNbInp';\n\n /**\n * Label and values for the results per page select, example of usage:\n * ['Records: ', [10,25,50,100]]\n * @type {Array}\n */\n this.resultsPerPage = f.results_per_page || null;\n\n /**\n * Determines if results per page is configured\n * @type {Boolean}\n */\n this.hasResultsPerPage = isArray(this.resultsPerPage);\n\n /**\n * Css class for the results per page select\n * @type {String}\n */\n this.resultsSlcCssClass = f.results_slc_css_class || 'rspg';\n\n /**\n * Css class for the label preceding results per page select\n * @type {String}\n */\n this.resultsSpanCssClass = f.results_span_css_class || 'rspgSpan';\n\n /**\n * Index of the first row of current page\n * @type {Number}\n * @private\n */\n this.startPagingRow = 0;\n\n /**\n * Total number of pages\n * @type {Number}\n * @private\n */\n this.nbPages = 0;\n\n /**\n * Current page number\n * @type {Number}\n * @private\n */\n this.currentPageNb = 1;\n\n /**\n * Next page button text\n * @type {String}\n */\n this.btnNextPageText = f.btn_next_page_text || '>';\n\n /**\n * Previous page button text\n * @type {String}\n */\n this.btnPrevPageText = f.btn_prev_page_text || '<';\n\n /**\n * Last page button text\n * @type {String}\n */\n this.btnLastPageText = f.btn_last_page_text || '>|';\n\n /**\n * First page button text\n * @type {String}\n */\n this.btnFirstPageText = f.btn_first_page_text || '|<';\n\n /**\n * Next page button HTML\n * @type {String}\n */\n this.btnNextPageHtml = f.btn_next_page_html ||\n (!tf.enableIcons ? null :\n '');\n\n /**\n * Previous page button HTML\n * @type {String}\n */\n this.btnPrevPageHtml = f.btn_prev_page_html ||\n (!tf.enableIcons ? null :\n '');\n\n /**\n * First page button HTML\n * @type {String}\n */\n this.btnFirstPageHtml = f.btn_first_page_html ||\n (!tf.enableIcons ? null :\n '');\n\n /**\n * Last page button HTML\n * @type {String}\n */\n this.btnLastPageHtml = f.btn_last_page_html ||\n (!tf.enableIcons ? null :\n '');\n\n /**\n * Text preceeding page selector drop-down\n * @type {String}\n */\n this.pageText = f.page_text || ' Page ';\n\n /**\n * Text after page selector drop-down\n * @type {String}\n */\n this.ofText = f.of_text || ' of ';\n\n /**\n * Css class for the span containing total number of pages\n * @type {String}\n */\n this.nbPgSpanCssClass = f.nb_pages_css_class || 'nbpg';\n\n /**\n * Determines if paging buttons are enabled (default: true)\n * @type {Boolean}\n */\n this.hasPagingBtns = f.paging_btns === false ? false : true;\n\n /**\n * Defines page selector type, two possible values: 'select', 'input'\n * @type {String}\n */\n this.pageSelectorType = f.page_selector_type || SELECT;\n\n /**\n * Callback fired before the page is changed\n * @type {Function}\n */\n this.onBeforeChangePage = isFn(f.on_before_change_page) ?\n f.on_before_change_page : EMPTY_FN;\n\n /**\n * Callback fired after the page is changed\n * @type {Function}\n */\n this.onAfterChangePage = isFn(f.on_after_change_page) ?\n f.on_after_change_page : EMPTY_FN;\n\n /**\n * Label preciding results per page select\n * @type {DOMElement}\n * @private\n */\n this.slcResultsTxt = null;\n /**\n * Span containing next page button\n * @type {DOMElement}\n * @private\n */\n this.btnNextCont = null;\n /**\n * Span containing previous page button\n * @type {DOMElement}\n * @private\n */\n this.btnPrevCont = null;\n /**\n * Span containing last page button\n * @type {DOMElement}\n * @private\n */\n this.btnLastCont = null;\n /**\n * Span containing first page button\n * @type {DOMElement}\n * @private\n */\n this.btnFirstCont = null;\n /**\n * Span for tot nb pages\n * @type {DOMElement}\n * @private\n */\n this.pgCont = null;\n /**\n * Span preceding pages select (contains 'Page')\n * @type {DOMElement}\n * @private\n */\n this.pgBefore = null;\n /**\n * Span following pages select (contains ' of ')\n * @type {DOMElement}\n * @private\n */\n this.pgAfter = null;\n\n var start_row = tf.refRow;\n var nrows = tf.getRowsNb(true);\n //calculates page nb\n this.nbPages = Math.ceil((nrows - start_row) / this.pagingLength);\n\n var o = this;\n /**\n * Paging DOM events handlers\n * @type {String}\n * @private\n */\n this.evt = {\n slcIndex() {\n return (o.pageSelectorType === SELECT) ?\n o.pagingSlc.options.selectedIndex :\n parseInt(o.pagingSlc.value, 10) - 1;\n },\n nbOpts() {\n return (o.pageSelectorType === SELECT) ?\n parseInt(o.pagingSlc.options.length, 10) - 1 :\n (o.nbPages - 1);\n },\n next() {\n var nextIndex = o.evt.slcIndex() < o.evt.nbOpts() ?\n o.evt.slcIndex() + 1 : 0;\n o.changePage(nextIndex);\n },\n prev() {\n var prevIndex = o.evt.slcIndex() > 0 ?\n o.evt.slcIndex() - 1 : o.evt.nbOpts();\n o.changePage(prevIndex);\n },\n last() {\n o.changePage(o.evt.nbOpts());\n },\n first() {\n o.changePage(0);\n },\n _detectKey(e) {\n var key = keyCode(e);\n if (key === ENTER_KEY) {\n if (tf.sorted) {\n tf.filter();\n o.changePage(o.evt.slcIndex());\n } else {\n o.changePage();\n }\n this.blur();\n }\n },\n slcPagesChange: null,\n nextEvt: null,\n prevEvt: null,\n lastEvt: null,\n firstEvt: null\n };\n }\n\n /**\n * Initialize DOM elements\n */\n init() {\n var slcPages;\n var tf = this.tf;\n var evt = this.evt;\n\n if (this.initialized) {\n return;\n }\n\n // Check resultsPerPage is in expected format and initialise the\n // results per page component\n if (this.hasResultsPerPage) {\n if (this.resultsPerPage.length < 2) {\n this.hasResultsPerPage = false;\n } else {\n this.pagingLength = this.resultsPerPage[1][0];\n this.setResultsPerPage();\n }\n }\n\n evt.slcPagesChange = (event) => {\n var slc = event.target;\n this.changePage(slc.selectedIndex);\n };\n\n // Paging drop-down list selector\n if (this.pageSelectorType === SELECT) {\n slcPages = createElm(SELECT);\n slcPages.className = this.pgSlcCssClass;\n addEvt(slcPages, 'change', evt.slcPagesChange);\n }\n\n // Paging input selector\n if (this.pageSelectorType === INPUT) {\n slcPages = createElm(INPUT, ['value', this.currentPageNb]);\n slcPages.className = this.pgInpCssClass;\n addEvt(slcPages, 'keypress', evt._detectKey);\n }\n\n // btns containers\n var btnNextSpan = createElm('span');\n var btnPrevSpan = createElm('span');\n var btnLastSpan = createElm('span');\n var btnFirstSpan = createElm('span');\n\n if (this.hasPagingBtns) {\n // Next button\n if (!this.btnNextPageHtml) {\n var btnNext = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnNextPageText],\n ['title', 'Next']\n );\n btnNext.className = this.btnPageCssClass;\n addEvt(btnNext, 'click', evt.next);\n btnNextSpan.appendChild(btnNext);\n } else {\n btnNextSpan.innerHTML = this.btnNextPageHtml;\n addEvt(btnNextSpan, 'click', evt.next);\n }\n // Previous button\n if (!this.btnPrevPageHtml) {\n var btnPrev = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnPrevPageText],\n ['title', 'Previous']\n );\n btnPrev.className = this.btnPageCssClass;\n addEvt(btnPrev, 'click', evt.prev);\n btnPrevSpan.appendChild(btnPrev);\n } else {\n btnPrevSpan.innerHTML = this.btnPrevPageHtml;\n addEvt(btnPrevSpan, 'click', evt.prev);\n }\n // Last button\n if (!this.btnLastPageHtml) {\n var btnLast = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnLastPageText],\n ['title', 'Last']\n );\n btnLast.className = this.btnPageCssClass;\n addEvt(btnLast, 'click', evt.last);\n btnLastSpan.appendChild(btnLast);\n } else {\n btnLastSpan.innerHTML = this.btnLastPageHtml;\n addEvt(btnLastSpan, 'click', evt.last);\n }\n // First button\n if (!this.btnFirstPageHtml) {\n var btnFirst = createElm(INPUT,\n ['type', 'button'],\n ['value', this.btnFirstPageText],\n ['title', 'First']\n );\n btnFirst.className = this.btnPageCssClass;\n addEvt(btnFirst, 'click', evt.first);\n btnFirstSpan.appendChild(btnFirst);\n } else {\n btnFirstSpan.innerHTML = this.btnFirstPageHtml;\n addEvt(btnFirstSpan, 'click', evt.first);\n }\n }\n\n // paging elements (buttons+drop-down list) are added to defined element\n if (!this.pagingTgtId) {\n tf.setToolbar();\n }\n var targetEl = !this.pagingTgtId ? tf.mDiv : elm(this.pagingTgtId);\n targetEl.appendChild(btnFirstSpan);\n targetEl.appendChild(btnPrevSpan);\n\n var pgBeforeSpan = createElm('span');\n pgBeforeSpan.appendChild(createText(this.pageText));\n pgBeforeSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgBeforeSpan);\n targetEl.appendChild(slcPages);\n var pgAfterSpan = createElm('span');\n pgAfterSpan.appendChild(createText(this.ofText));\n pgAfterSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgAfterSpan);\n var pgSpan = createElm('span');\n pgSpan.className = this.nbPgSpanCssClass;\n pgSpan.appendChild(createText(' ' + this.nbPages + ' '));\n targetEl.appendChild(pgSpan);\n targetEl.appendChild(btnNextSpan);\n targetEl.appendChild(btnLastSpan);\n\n this.btnNextCont = btnNextSpan;\n this.btnPrevCont = btnPrevSpan;\n this.btnLastCont = btnLastSpan;\n this.btnFirstCont = btnFirstSpan;\n this.pgCont = pgSpan;\n this.pgBefore = pgBeforeSpan;\n this.pgAfter = pgAfterSpan;\n this.pagingSlc = slcPages;\n\n this.setPagingInfo();\n\n if (!tf.fltGrid) {\n tf.validateAllRows();\n this.setPagingInfo(tf.validRowsIndex);\n }\n\n this.emitter.on(['after-filtering'], () => this.resetPagingInfo());\n this.emitter.on(['change-page'],\n (tf, pageNumber) => this.setPage(pageNumber));\n this.emitter.on(['change-page-results'],\n (tf, pageLength) => this.changeResultsPerPage(pageLength));\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Reset paging when filters are already instantiated\n * @param {Boolean} filterTable Execute filtering once paging instanciated\n */\n reset(filterTable = false) {\n var tf = this.tf;\n if (this.isEnabled()) {\n return;\n }\n this.enable();\n this.init();\n\n if (filterTable) {\n tf.filter();\n }\n }\n\n /**\n * Reset paging info from scratch after a filtering process\n */\n resetPagingInfo() {\n this.startPagingRow = 0;\n this.currentPageNb = 1;\n this.setPagingInfo(this.tf.validRowsIndex);\n }\n\n /**\n * Calculate number of pages based on valid rows\n * Refresh paging select according to number of pages\n * @param {Array} validRows Collection of valid rows\n */\n setPagingInfo(validRows) {\n var tf = this.tf;\n var mdiv = !this.pagingTgtId ? tf.mDiv : elm(this.pagingTgtId);\n\n //store valid rows indexes\n tf.validRowsIndex = validRows || tf.getValidRows(true);\n\n //calculate nb of pages\n this.nbPages = Math.ceil(tf.validRowsIndex.length / this.pagingLength);\n //refresh page nb span\n this.pgCont.innerHTML = this.nbPages;\n //select clearing shortcut\n if (this.pageSelectorType === SELECT) {\n this.pagingSlc.innerHTML = '';\n }\n\n if (this.nbPages > 0) {\n mdiv.style.visibility = 'visible';\n if (this.pageSelectorType === SELECT) {\n for (var z = 0; z < this.nbPages; z++) {\n var opt = createOpt(z + 1, z * this.pagingLength, false);\n this.pagingSlc.options[z] = opt;\n }\n } else {\n //input type\n this.pagingSlc.value = this.currentPageNb;\n }\n\n } else {\n /*** if no results paging select and buttons are hidden ***/\n mdiv.style.visibility = 'hidden';\n }\n this.groupByPage(tf.validRowsIndex);\n }\n\n /**\n * Group table rows by page and display valid rows\n * @param {Array} validRows Collection of valid rows\n */\n groupByPage(validRows) {\n var tf = this.tf;\n var rows = tf.tbl.rows;\n var startPagingRow = parseInt(this.startPagingRow, 10);\n var endPagingRow = startPagingRow + parseInt(this.pagingLength, 10);\n\n //store valid rows indexes\n if (validRows) {\n tf.validRowsIndex = validRows;\n }\n\n //this loop shows valid rows of current page\n for (var h = 0, len = tf.getValidRowsNb(true); h < len; h++) {\n var validRowIdx = tf.validRowsIndex[h];\n var r = rows[validRowIdx];\n var isRowValid = r.getAttribute('validRow');\n var rowDisplayed = false;\n\n if (h >= startPagingRow && h < endPagingRow) {\n if (isNull(isRowValid) || Boolean(isRowValid === 'true')) {\n r.style.display = '';\n rowDisplayed = true;\n }\n } else {\n r.style.display = NONE;\n }\n this.emitter.emit('row-paged', tf, validRowIdx, h, rowDisplayed);\n }\n\n // broadcast grouping by page\n this.emitter.emit('grouped-by-page', tf, this);\n }\n\n /**\n * Return the current page number\n * @return {Number} Page number\n */\n getPage() {\n return this.currentPageNb;\n }\n\n /**\n * Show page defined by passed argument (string or number):\n * @param {String}/{Number} cmd possible string values: 'next',\n * 'previous', 'last', 'first' or page number as per param\n */\n setPage(cmd) {\n var tf = this.tf;\n if (!tf.isInitialized() || !this.isEnabled()) {\n return;\n }\n var btnEvt = this.evt,\n cmdtype = typeof cmd;\n if (cmdtype === 'string') {\n switch (cmd.toLowerCase()) {\n case 'next':\n btnEvt.next();\n break;\n case 'previous':\n btnEvt.prev();\n break;\n case 'last':\n btnEvt.last();\n break;\n case 'first':\n btnEvt.first();\n break;\n default:\n btnEvt.next();\n break;\n }\n }\n else if (cmdtype === 'number') {\n this.changePage(cmd - 1);\n }\n }\n\n /**\n * Generates UI elements for the number of results per page drop-down\n */\n setResultsPerPage() {\n var tf = this.tf;\n var evt = this.evt;\n\n if (this.resultsPerPageSlc || !this.resultsPerPage) {\n return;\n }\n\n evt.slcResultsChange = (ev) => {\n this.onChangeResultsPerPage();\n ev.target.blur();\n };\n\n var slcR = createElm(SELECT);\n slcR.className = this.resultsSlcCssClass;\n var slcRText = this.resultsPerPage[0],\n slcROpts = this.resultsPerPage[1];\n var slcRSpan = createElm('span');\n slcRSpan.className = this.resultsSpanCssClass;\n\n // results per page select is added to external element\n if (!this.resultsPerPageTgtId) {\n tf.setToolbar();\n }\n var targetEl = !this.resultsPerPageTgtId ?\n tf.rDiv : elm(this.resultsPerPageTgtId);\n slcRSpan.appendChild(createText(slcRText));\n\n var help = tf.feature('help');\n if (help && help.btn) {\n help.btn.parentNode.insertBefore(slcRSpan, help.btn);\n help.btn.parentNode.insertBefore(slcR, help.btn);\n } else {\n targetEl.appendChild(slcRSpan);\n targetEl.appendChild(slcR);\n }\n\n for (var r = 0; r < slcROpts.length; r++) {\n var currOpt = new Option(slcROpts[r], slcROpts[r], false, false);\n slcR.options[r] = currOpt;\n }\n addEvt(slcR, 'change', evt.slcResultsChange);\n this.slcResultsTxt = slcRSpan;\n this.resultsPerPageSlc = slcR;\n }\n\n /**\n * Remove number of results per page UI elements\n */\n removeResultsPerPage() {\n var tf = this.tf;\n if (!tf.isInitialized() || !this.resultsPerPageSlc ||\n !this.resultsPerPage) {\n return;\n }\n if (this.resultsPerPageSlc) {\n removeElm(this.resultsPerPageSlc);\n }\n if (this.slcResultsTxt) {\n removeElm(this.slcResultsTxt);\n }\n this.resultsPerPageSlc = null;\n this.slcResultsTxt = null;\n }\n\n /**\n * Change the page based on passed index\n * @param {Number} index Index of the page (0-n)\n */\n changePage(index) {\n var tf = this.tf;\n\n if (!this.isEnabled()) {\n return;\n }\n\n this.emitter.emit('before-page-change', tf, (index + 1));\n\n if (index === null) {\n index = this.pageSelectorType === SELECT ?\n this.pagingSlc.options.selectedIndex : this.pagingSlc.value - 1;\n }\n if (index >= 0 && index <= (this.nbPages - 1)) {\n this.onBeforeChangePage(this, (index + 1));\n\n this.currentPageNb = parseInt(index, 10) + 1;\n if (this.pageSelectorType === SELECT) {\n this.pagingSlc.options[index].selected = true;\n } else {\n this.pagingSlc.value = this.currentPageNb;\n }\n\n this.startPagingRow = (this.pageSelectorType === SELECT) ?\n this.pagingSlc.value : (index * this.pagingLength);\n\n this.groupByPage();\n\n this.onAfterChangePage(this, (index + 1));\n }\n\n this.emitter.emit('after-page-change', tf, (index + 1));\n }\n\n /**\n * Change the number of results per page based on passed value\n * @param {String} val The number of results per page\n */\n changeResultsPerPage(val) {\n if (!this.isEnabled() || isNaN(val)) {\n return;\n }\n\n this.resultsPerPageSlc.value = val;\n this.onChangeResultsPerPage();\n }\n\n /**\n * Change rows according to page results drop-down\n */\n onChangeResultsPerPage() {\n var tf = this.tf;\n\n if (!this.isEnabled()) {\n return;\n }\n\n this.emitter.emit('before-page-length-change', tf);\n\n var slcR = this.resultsPerPageSlc;\n var slcIndex = slcR.selectedIndex;\n var slcPagesSelIndex = (this.pageSelectorType === SELECT) ?\n this.pagingSlc.selectedIndex :\n parseInt(this.pagingSlc.value - 1, 10);\n this.pagingLength = parseInt(slcR.options[slcIndex].value, 10);\n this.startPagingRow = this.pagingLength * slcPagesSelIndex;\n\n if (!isNaN(this.pagingLength)) {\n if (this.startPagingRow >= tf.nbFilterableRows) {\n this.startPagingRow = (tf.nbFilterableRows - this.pagingLength);\n }\n this.setPagingInfo();\n\n if (this.pageSelectorType === SELECT) {\n var slcIdx =\n (this.pagingSlc.options.length - 1 <= slcPagesSelIndex) ?\n (this.pagingSlc.options.length - 1) : slcPagesSelIndex;\n this.pagingSlc.options[slcIdx].selected = true;\n }\n }\n\n this.emitter.emit('after-page-length-change', tf, this.pagingLength);\n }\n\n /**\n * Re-set page nb at page re-load\n */\n resetPage() {\n var tf = this.tf;\n if (!this.isEnabled()) {\n return;\n }\n this.emitter.emit('before-reset-page', tf);\n var pgNb = tf.feature('store').getPageNb();\n if (pgNb !== '') {\n this.changePage((pgNb - 1));\n }\n this.emitter.emit('after-reset-page', tf, pgNb);\n }\n\n /**\n * Re-set page length value at page re-load\n */\n resetPageLength() {\n var tf = this.tf;\n if (!this.isEnabled()) {\n return;\n }\n this.emitter.emit('before-reset-page-length', tf);\n var pglenIndex = tf.feature('store').getPageLength();\n\n if (pglenIndex !== '') {\n this.resultsPerPageSlc.options[pglenIndex].selected = true;\n this.changeResultsPerPage();\n }\n this.emitter.emit('after-reset-page-length', tf, pglenIndex);\n }\n\n /**\n * Remove paging feature\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n var evt = this.evt;\n\n if (this.pagingSlc) {\n if (this.pageSelectorType === SELECT) {\n removeEvt(this.pagingSlc, 'change', evt.slcPagesChange);\n }\n else if (this.pageSelectorType === INPUT) {\n removeEvt(this.pagingSlc, 'keypress', evt._detectKey);\n }\n removeElm(this.pagingSlc);\n }\n\n if (this.btnNextCont) {\n removeEvt(this.btnNextCont, 'click', evt.next);\n removeElm(this.btnNextCont);\n this.btnNextCont = null;\n }\n\n if (this.btnPrevCont) {\n removeEvt(this.btnPrevCont, 'click', evt.prev);\n removeElm(this.btnPrevCont);\n this.btnPrevCont = null;\n }\n\n if (this.btnLastCont) {\n removeEvt(this.btnLastCont, 'click', evt.last);\n removeElm(this.btnLastCont);\n this.btnLastCont = null;\n }\n\n if (this.btnFirstCont) {\n removeEvt(this.btnFirstCont, 'click', evt.first);\n removeElm(this.btnFirstCont);\n this.btnFirstCont = null;\n }\n\n if (this.pgBefore) {\n removeElm(this.pgBefore);\n this.pgBefore = null;\n }\n\n if (this.pgAfter) {\n removeElm(this.pgAfter);\n this.pgAfter = null;\n }\n\n if (this.pgCont) {\n removeElm(this.pgCont);\n this.pgCont = null;\n }\n\n if (this.hasResultsPerPage) {\n this.removeResultsPerPage();\n }\n\n this.emitter.off(['after-filtering'], () => this.resetPagingInfo());\n this.emitter.off(['change-page'],\n (tf, pageNumber) => this.setPage(pageNumber));\n this.emitter.off(['change-page-results'],\n (tf, pageLength) => this.changeResultsPerPage(pageLength));\n\n this.pagingSlc = null;\n this.nbPages = 0;\n this.disable();\n this.initialized = false;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/paging.js","import {Feature} from '../feature';\r\nimport {createElm, createText, elm, removeElm} from '../dom';\r\nimport {addEvt} from '../event';\r\n\r\n/**\r\n * Clear button UI component\r\n */\r\nexport class ClearButton extends Feature {\r\n\r\n /**\r\n * Creates an instance of ClearButton\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'btnReset');\r\n\r\n let f = this.config;\r\n\r\n /**\r\n * Container element ID\r\n * @type {String}\r\n */\r\n this.targetId = f.btn_reset_target_id || null;\r\n\r\n /**\r\n * Clear button container element\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.container = null;\r\n\r\n /**\r\n * Clear button element\r\n * @type {DOMElement}\r\n * @private\r\n */\r\n this.element = null;\r\n\r\n /**\r\n * Text for the clear button\r\n * @type {String}\r\n */\r\n this.text = f.btn_reset_text || 'Reset';\r\n\r\n /**\r\n * Css class for reset button\r\n * @type {String}\r\n */\r\n this.cssClass = f.btn_reset_css_class || 'reset';\r\n\r\n /**\r\n * Tooltip text for the clear button\r\n * @type {String}\r\n */\r\n this.tooltip = f.btn_reset_tooltip || 'Clear filters';\r\n\r\n /**\r\n * Custom Html string for the clear button\r\n * @type {String}\r\n */\r\n this.html = f.btn_reset_html ||\r\n (!tf.enableIcons ? null :\r\n '');\r\n }\r\n\r\n /**\r\n * Click event handler for clear button\r\n * @private\r\n */\r\n onClick() {\r\n if (!this.isEnabled()) {\r\n return;\r\n }\r\n this.tf.clearFilters();\r\n }\r\n\r\n /**\r\n * Initialize clear button component\r\n */\r\n init() {\r\n let tf = this.tf;\r\n\r\n if (this.initialized) {\r\n return;\r\n }\r\n\r\n let cont = createElm('span');\r\n\r\n // reset button is added to defined element\r\n if (!this.targetId) {\r\n tf.setToolbar();\r\n }\r\n let targetEl = !this.targetId ? tf.rDiv : elm(this.targetId);\r\n targetEl.appendChild(cont);\r\n\r\n if (!this.html) {\r\n let fltReset = createElm('a', ['href', 'javascript:void(0);']);\r\n fltReset.className = this.cssClass;\r\n fltReset.appendChild(createText(this.text));\r\n cont.appendChild(fltReset);\r\n addEvt(fltReset, 'click', () => this.onClick());\r\n } else {\r\n cont.innerHTML = this.html;\r\n let resetEl = cont.firstChild;\r\n addEvt(resetEl, 'click', () => this.onClick());\r\n }\r\n this.element = cont.firstChild;\r\n this.container = cont;\r\n\r\n /** @inherited */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Destroy ClearButton instance\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n removeElm(this.element);\r\n removeElm(this.container);\r\n this.element = null;\r\n this.container = null;\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/clearButton.js","import {Feature} from '../feature';\nimport {createElm, createText, elm, removeElm} from '../dom';\nimport {addEvt, targetEvt, removeEvt} from '../event';\nimport {NONE} from '../const';\nimport {root} from '../root';\n\nconst WIKI_URL = 'https://github.com/koalyptus/TableFilter/wiki/' +\n '4.-Filter-operators';\nconst WEBSITE_URL = 'http://koalyptus.github.io/TableFilter/';\n\n/**\n * Help UI component\n */\nexport class Help extends Feature {\n\n /**\n * Creates an instance of Help\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'help');\n\n let f = this.config;\n\n /**\n * ID of main custom container element\n * @type {String}\n */\n this.tgtId = f.help_instructions_target_id || null;\n\n /**\n * ID of custom container element for instructions\n * @type {String}\n */\n this.contTgtId = f.help_instructions_container_target_id ||\n null;\n\n /**\n * Instructions text (accepts HTML)\n * @type {String}\n */\n this.instrText = f.help_instructions_text ?\n f.help_instructions_text :\n 'Use the filters above each column to filter and limit table ' +\n 'data. Advanced searches can be performed by using the following ' +\n 'operators:
<, <=, >, ' +\n '>=, =, *, !, {, }, ' +\n '||,&&, [empty], [nonempty], ' +\n 'rgx:
' +\n 'Learn more
';\n\n /**\n * Instructions HTML\n * @type {String}\n */\n this.instrHtml = f.help_instructions_html || null;\n\n /**\n * Help button text ('?')\n * @type {String}\n */\n this.btnText = f.help_instructions_btn_text || '?';\n\n /**\n * Custom help button HTML\n * @type {String}\n */\n this.btnHtml = f.help_instructions_btn_html || null;\n\n /**\n * Css class for help button\n * @type {String}\n */\n this.btnCssClass = f.help_instructions_btn_css_class || 'helpBtn';\n\n /**\n * Css class for help container element\n * @type {String}\n */\n this.contCssClass = f.help_instructions_container_css_class ||\n 'helpCont';\n\n /**\n * Button DOM element\n * @type {DOMElement}\n */\n this.btn = null;\n\n /**\n * Help container DOM element\n * @type {DOMElement}\n */\n this.cont = null;\n\n /**\n * Bound mouseup wrapper\n * @private\n */\n this.boundMouseup = null;\n\n /**\n * Default HTML appended to instructions text\n * @type {String}\n */\n this.defaultHtml = '

TableFilter ' +\n 'v' + tf.version + '

' + '' + WEBSITE_URL + '' +\n '
©2015-' + tf.year + ' Max Guglielmi' +\n '
' +\n 'Close
';\n\n this.emitter.on(['init-help'], () => this.init());\n }\n\n /**\n * Mouse-up event handler handling popup auto-close behaviour\n * @private\n */\n onMouseup(evt) {\n let targetElm = targetEvt(evt);\n\n while (targetElm && targetElm !== this.cont && targetElm !== this.btn) {\n targetElm = targetElm.parentNode;\n }\n\n if (targetElm !== this.cont && targetElm !== this.btn) {\n this.toggle();\n }\n\n return;\n }\n\n /**\n * Initialise Help instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n let tf = this.tf;\n\n let btn = createElm('span');\n let cont = createElm('div');\n\n this.boundMouseup = this.onMouseup.bind(this);\n\n //help button is added to defined element\n if (!this.tgtId) {\n tf.setToolbar();\n }\n let targetEl = !this.tgtId ? tf.rDiv : elm(this.tgtId);\n targetEl.appendChild(btn);\n\n let divContainer = !this.contTgtId ? btn : elm(this.contTgtId);\n\n if (!this.btnHtml) {\n divContainer.appendChild(cont);\n let helplink = createElm('a', ['href', 'javascript:void(0);']);\n helplink.className = this.btnCssClass;\n helplink.appendChild(createText(this.btnText));\n btn.appendChild(helplink);\n addEvt(helplink, 'click', () => this.toggle());\n } else {\n btn.innerHTML = this.btnHtml;\n let helpEl = btn.firstChild;\n addEvt(helpEl, 'click', () => this.toggle());\n divContainer.appendChild(cont);\n }\n\n if (!this.instrHtml) {\n cont.innerHTML = this.instrText;\n cont.className = this.contCssClass;\n } else {\n if (this.contTgtId) {\n divContainer.appendChild(cont);\n }\n cont.innerHTML = this.instrHtml;\n if (!this.contTgtId) {\n cont.className = this.contCssClass;\n }\n }\n cont.innerHTML += this.defaultHtml;\n addEvt(cont, 'click', () => this.toggle());\n\n this.cont = cont;\n this.btn = btn;\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Toggle help pop-up\n */\n toggle() {\n // check only if explicitily set to false as in this case undefined\n // signifies the help feature is enabled by default\n if (this.enabled === false) {\n return;\n }\n\n // ensure mouseup event handler is removed\n removeEvt(root, 'mouseup', this.boundMouseup);\n\n let divDisplay = this.cont.style.display;\n if (divDisplay === '' || divDisplay === NONE) {\n this.cont.style.display = 'inline';\n addEvt(root, 'mouseup', this.boundMouseup);\n } else {\n this.cont.style.display = NONE;\n }\n }\n\n /**\n * Remove help UI\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n removeElm(this.btn);\n this.btn = null;\n\n removeElm(this.cont);\n this.cont = null;\n\n this.boundMouseup = null;\n\n this.initialized = false;\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/help.js","import {Feature} from '../feature';\r\nimport {addClass, removeClass} from '../dom';\r\n\r\n/**\r\n * Rows with alternating background color for improved readability\r\n */\r\nexport class AlternateRows extends Feature {\r\n\r\n /**\r\n * Creates an instance of AlternateRows.\r\n *\r\n * @param {Object} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'alternateRows');\r\n\r\n let config = this.config;\r\n /**\r\n * Css class for even rows (default: 'even')\r\n * @type {String}\r\n */\r\n this.evenCss = config.even_row_css_class || 'even';\r\n\r\n /**\r\n * Css class for odd rows (default: 'odd')\r\n * @type {String}\r\n */\r\n this.oddCss = config.odd_row_css_class || 'odd';\r\n }\r\n\r\n /**\r\n * Sets alternating rows color\r\n */\r\n init() {\r\n if (this.initialized) {\r\n return;\r\n }\r\n\r\n this.processAll();\r\n\r\n // Subscribe to events\r\n this.emitter.on(['row-processed', 'row-paged'],\r\n (tf, rowIndex, arrIndex, isValid) =>\r\n this.processRow(rowIndex, arrIndex, isValid));\r\n this.emitter.on(['column-sorted'], () => this.processAll());\r\n this.emitter.on(['rows-changed'], () => this.processAll());\r\n\r\n /** @inherited */\r\n this.initialized = true;\r\n }\r\n\r\n /**\r\n * Apply background to all valid rows\r\n */\r\n processAll() {\r\n if (!this.isEnabled()) {\r\n return;\r\n }\r\n let tf = this.tf;\r\n let validRowsIndex = tf.getValidRows(true);\r\n let indexLen = validRowsIndex.length;\r\n let idx = 0;\r\n\r\n //alternates bg color\r\n for (let j = 0; j < indexLen; j++) {\r\n let rowIdx = validRowsIndex[j];\r\n this.setRowBg(rowIdx, idx);\r\n idx++;\r\n }\r\n }\r\n\r\n /**\r\n * Set/remove row background based on row validation\r\n * @param {Number} rowIdx Row index\r\n * @param {Number} arrIdx Array index\r\n * @param {Boolean} isValid Valid row flag\r\n */\r\n processRow(rowIdx, arrIdx, isValid) {\r\n if (isValid) {\r\n this.setRowBg(rowIdx, arrIdx);\r\n } else {\r\n this.removeRowBg(rowIdx);\r\n }\r\n }\r\n\r\n /**\r\n * Sets row background color\r\n * @param {Number} rowIdx Row index\r\n * @param {Number} idx Valid rows collection index needed to calculate bg\r\n * color\r\n * @private\r\n */\r\n setRowBg(rowIdx, idx) {\r\n if (!this.isEnabled() || isNaN(rowIdx)) {\r\n return;\r\n }\r\n let rows = this.tf.tbl.rows;\r\n let i = isNaN(idx) ? rowIdx : idx;\r\n this.removeRowBg(rowIdx);\r\n\r\n addClass(rows[rowIdx], (i % 2) ? this.evenCss : this.oddCss);\r\n }\r\n\r\n /**\r\n * Removes row background color\r\n * @param {Number} idx Row index\r\n * @private\r\n */\r\n removeRowBg(idx) {\r\n if (isNaN(idx)) {\r\n return;\r\n }\r\n let rows = this.tf.tbl.rows;\r\n removeClass(rows[idx], this.oddCss);\r\n removeClass(rows[idx], this.evenCss);\r\n }\r\n\r\n /**\r\n * Removes all alternating backgrounds\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n let nbRows = this.tf.getRowsNb(true);\r\n for (let i = 0; i < nbRows; i++) {\r\n this.removeRowBg(i);\r\n }\r\n\r\n // Unsubscribe to events\r\n this.emitter.off(['row-processed', 'row-paged'],\r\n (tf, rowIndex, arrIndex, isValid) =>\r\n this.processRow(rowIndex, arrIndex, isValid));\r\n this.emitter.off(['column-sorted'], () => this.processAll());\r\n this.emitter.off(['rows-changed'], () => this.processAll());\r\n\r\n this.initialized = false;\r\n }\r\n\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/alternateRows.js","import {Feature} from '../feature';\r\nimport {createElm, elm, removeElm} from '../dom';\r\nimport {isEmpty, isFn, EMPTY_FN} from '../types';\r\nimport {NONE} from '../const';\r\n\r\n/**\r\n * UI when filtering yields no matches\r\n * @export\r\n * @class NoResults\r\n * @extends {Feature}\r\n */\r\nexport class NoResults extends Feature {\r\n\r\n /**\r\n * Creates an instance of NoResults\r\n * @param {TableFilter} tf TableFilter instance\r\n */\r\n constructor(tf) {\r\n super(tf, 'noResults');\r\n\r\n //configuration object\r\n let f = this.config.no_results_message;\r\n\r\n /**\r\n * Text (accepts HTML)\r\n * @type {String}\r\n */\r\n this.content = f.content || 'No results';\r\n\r\n /**\r\n * Custom container DOM element\r\n * @type {DOMElement}\r\n */\r\n this.customContainer = f.custom_container || null;\r\n\r\n /**\r\n * ID of custom container element\r\n * @type {String}\r\n */\r\n this.customContainerId = f.custom_container_id || null;\r\n\r\n /**\r\n * Indicates if UI is contained in a external element\r\n * @type {Boolean}\r\n * @private\r\n */\r\n this.isExternal = !isEmpty(this.customContainer) ||\r\n !isEmpty(this.customContainerId);\r\n\r\n /**\r\n * Css class assigned to container element\r\n * @type {String}\r\n */\r\n this.cssClass = f.css_class || 'no-results';\r\n\r\n /**\r\n * Stores container DOM element\r\n * @type {DOMElement}\r\n */\r\n this.cont = null;\r\n\r\n /**\r\n * Callback fired before the message is displayed\r\n * @type {Function}\r\n */\r\n this.onBeforeShow = isFn(f.on_before_show_msg) ?\r\n f.on_before_show_msg : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired after the message is displayed\r\n * @type {Function}\r\n */\r\n this.onAfterShow = isFn(f.on_after_show_msg) ?\r\n f.on_after_show_msg : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired before the message is hidden\r\n * @type {Function}\r\n */\r\n this.onBeforeHide = isFn(f.on_before_hide_msg) ?\r\n f.on_before_hide_msg : EMPTY_FN;\r\n\r\n /**\r\n * Callback fired after the message is hidden\r\n * @type {Function}\r\n */\r\n this.onAfterHide = isFn(f.on_after_hide_msg) ?\r\n f.on_after_hide_msg : EMPTY_FN;\r\n }\r\n\r\n /**\r\n * Initializes NoResults instance\r\n */\r\n init() {\r\n if (this.initialized) {\r\n return;\r\n }\r\n let tf = this.tf;\r\n let target = this.customContainer || elm(this.customContainerId) ||\r\n tf.tbl;\r\n\r\n //container\r\n let cont = createElm('div');\r\n cont.className = this.cssClass;\r\n cont.innerHTML = this.content;\r\n\r\n if (this.isExternal) {\r\n target.appendChild(cont);\r\n } else {\r\n target.parentNode.insertBefore(cont, target.nextSibling);\r\n }\r\n\r\n this.cont = cont;\r\n\r\n // subscribe to after-filtering event\r\n this.emitter.on(['after-filtering'], () => this.toggle());\r\n\r\n /**\r\n * @inherited\r\n */\r\n this.initialized = true;\r\n\r\n this.hide();\r\n }\r\n\r\n /**\r\n * Toggle no results message\r\n */\r\n toggle() {\r\n if (this.tf.getValidRowsNb() > 0) {\r\n this.hide();\r\n } else {\r\n this.show();\r\n }\r\n }\r\n\r\n /**\r\n * Show no results message\r\n */\r\n show() {\r\n if (!this.initialized || !this.isEnabled()) {\r\n return;\r\n }\r\n this.onBeforeShow(this.tf, this);\r\n\r\n this.setWidth();\r\n this.cont.style.display = 'block';\r\n\r\n this.onAfterShow(this.tf, this);\r\n }\r\n\r\n /**\r\n * Hide no results message\r\n */\r\n hide() {\r\n if (!this.initialized || !this.isEnabled()) {\r\n return;\r\n }\r\n this.onBeforeHide(this.tf, this);\r\n\r\n this.cont.style.display = NONE;\r\n\r\n this.onAfterHide(this.tf, this);\r\n }\r\n\r\n /**\r\n * Sets no results container width\r\n * @private\r\n */\r\n setWidth() {\r\n if (!this.initialized || this.isExternal || !this.isEnabled()) {\r\n return;\r\n }\r\n let tf = this.tf;\r\n if (tf.gridLayout) {\r\n let gridLayout = tf.feature('gridLayout');\r\n this.cont.style.width = gridLayout.tblCont.clientWidth + 'px';\r\n } else {\r\n this.cont.style.width = (tf.tbl.tHead ? tf.tbl.tHead.clientWidth :\r\n tf.tbl.tBodies[0].clientWidth) + 'px';\r\n }\r\n }\r\n\r\n /**\r\n * Remove feature\r\n */\r\n destroy() {\r\n if (!this.initialized) {\r\n return;\r\n }\r\n removeElm(this.cont);\r\n this.cont = null;\r\n // unsubscribe to after-filtering event\r\n this.emitter.off(['after-filtering'], () => this.toggle());\r\n\r\n this.initialized = false;\r\n }\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/noResults.js","import {Feature} from '../feature';\nimport {Hash} from './hash';\nimport {Storage} from './storage';\nimport {isEmpty} from '../string';\nimport {isArray, isNull, isString, isUndef} from '../types';\n\n/**\n * Features state object persistable with localStorage, cookie or URL hash\n *\n * @export\n * @class State\n * @extends {Feature}\n */\nexport class State extends Feature {\n\n /**\n * Creates an instance of State\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'state');\n\n let cfg = this.config.state;\n\n /**\n * Determines whether state is persisted with URL hash\n * @type {Boolean}\n */\n this.enableHash = cfg === true ||\n (isArray(cfg.types) && cfg.types.indexOf('hash') !== -1);\n\n /**\n * Determines whether state is persisted with localStorage\n * @type {Boolean}\n */\n this.enableLocalStorage = isArray(cfg.types) &&\n cfg.types.indexOf('local_storage') !== -1;\n\n /**\n * Determines whether state is persisted with localStorage\n * @type {Boolean}\n */\n this.enableCookie = isArray(cfg.types) &&\n cfg.types.indexOf('cookie') !== -1;\n\n /**\n * Persist filters values, enabled by default\n * @type {Boolean}\n */\n this.persistFilters = cfg.filters === false ? false : true;\n\n /**\n * Persist current page number when paging is enabled\n * @type {Boolean}\n */\n this.persistPageNumber = Boolean(cfg.page_number);\n\n /**\n * Persist page length when paging is enabled\n * @type {Boolean}\n */\n this.persistPageLength = Boolean(cfg.page_length);\n\n /**\n * Persist column sorting\n * @type {Boolean}\n */\n this.persistSort = Boolean(cfg.sort);\n\n /**\n * Persist columns visibility\n * @type {Boolean}\n */\n this.persistColsVisibility = Boolean(cfg.columns_visibility);\n\n /**\n * Persist filters row visibility\n * @type {Boolean}\n */\n this.persistFiltersVisibility = Boolean(cfg.filters_visibility);\n\n /**\n * Cookie duration in hours\n * @type {Boolean}\n */\n this.cookieDuration = !isNaN(cfg.cookie_duration) ?\n parseInt(cfg.cookie_duration, 10) : 87600;\n\n /**\n * Enable Storage if localStorage or cookie is required\n * @type {Boolean}\n * @private\n */\n this.enableStorage = this.enableLocalStorage || this.enableCookie;\n\n /**\n * Storage instance if storage is required\n * @type {Storage}\n * @private\n */\n this.storage = null;\n\n /**\n * Hash instance if URL hash is required\n * @type {Boolean}\n * @private\n */\n this.hash = null;\n\n /**\n * Current page number\n * @type {Number}\n * @private\n */\n this.pageNb = null;\n\n /**\n * Current page length\n * @type {Number}\n * @private\n */\n this.pageLength = null;\n\n /**\n * Current column sorting\n * @type {Object}\n * @private\n */\n this.sort = null;\n\n /**\n * Current hidden columns\n * @type {Object}\n * @private\n */\n this.hiddenCols = null;\n\n /**\n * Filters row visibility\n * @type {Boolean}\n * @private\n */\n this.filtersVisibility = null;\n\n /**\n * State object\n * @type {Object}\n * @private\n */\n this.state = {};\n\n /**\n * Prefix for column ID\n * @type {String}\n * @private\n */\n this.prfxCol = 'col_';\n\n /**\n * Prefix for page number ID\n * @type {String}\n * @private\n */\n this.pageNbKey = 'page';\n\n /**\n * Prefix for page length ID\n * @type {String}\n * @private\n */\n this.pageLengthKey = 'page_length';\n\n /**\n * Prefix for filters visibility ID\n * @type {String}\n * @private\n */\n this.filtersVisKey = 'filters_visibility';\n }\n\n /**\n * Initializes State instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n this.emitter.on(['after-filtering'], () => this.update());\n this.emitter.on(['after-page-change', 'after-clearing-filters'],\n (tf, pageNb) => this.updatePage(pageNb));\n this.emitter.on(['after-page-length-change'],\n (tf, pageLength) => this.updatePageLength(pageLength));\n this.emitter.on(['column-sorted'],\n (tf, index, descending) => this.updateSort(index, descending));\n this.emitter.on(['sort-initialized'], () => this._syncSort());\n this.emitter.on(['columns-visibility-initialized'],\n () => this._syncColsVisibility());\n this.emitter.on(['column-shown', 'column-hidden'], (tf, feature,\n colIndex, hiddenCols) => this.updateColsVisibility(hiddenCols));\n this.emitter.on(['filters-visibility-initialized'],\n () => this._syncFiltersVisibility());\n this.emitter.on(['filters-toggled'],\n (tf, extension, visible) => this.updateFiltersVisibility(visible));\n\n if (this.enableHash) {\n this.hash = new Hash(this);\n this.hash.init();\n }\n if (this.enableStorage) {\n this.storage = new Storage(this);\n this.storage.init();\n }\n\n /**\n * @inherited\n */\n this.initialized = true;\n }\n\n\n /**\n * Update state object based on current features state\n */\n update() {\n if (!this.isEnabled()) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n\n if (this.persistFilters) {\n let filterValues = tf.getFiltersValue();\n\n filterValues.forEach((val, idx) => {\n let key = `${this.prfxCol}${idx}`;\n\n if (isString(val) && isEmpty(val)) {\n if (state.hasOwnProperty(key)) {\n state[key].flt = undefined;\n }\n } else {\n state[key] = state[key] || {};\n state[key].flt = val;\n }\n });\n }\n\n if (this.persistPageNumber) {\n if (isNull(this.pageNb)) {\n state[this.pageNbKey] = undefined;\n } else {\n state[this.pageNbKey] = this.pageNb;\n }\n }\n\n if (this.persistPageLength) {\n if (isNull(this.pageLength)) {\n state[this.pageLengthKey] = undefined;\n } else {\n state[this.pageLengthKey] = this.pageLength;\n }\n }\n\n if (this.persistSort) {\n if (!isNull(this.sort)) {\n // Remove previuosly sorted column\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1 && state[key]) {\n state[key].sort = undefined;\n }\n });\n\n let key = `${this.prfxCol}${this.sort.column}`;\n state[key] = state[key] || {};\n state[key].sort = { descending: this.sort.descending };\n }\n }\n\n if (this.persistColsVisibility) {\n if (!isNull(this.hiddenCols)) {\n // Clear previuosly hidden columns\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1 && state[key]) {\n state[key].hidden = undefined;\n }\n });\n\n this.hiddenCols.forEach((colIdx) => {\n let key = `${this.prfxCol}${colIdx}`;\n state[key] = state[key] || {};\n state[key].hidden = true;\n });\n }\n }\n\n if (this.persistFiltersVisibility) {\n if (isNull(this.filtersVisibility)) {\n state[this.filtersVisKey] = undefined;\n } else {\n state[this.filtersVisKey] = this.filtersVisibility;\n }\n }\n\n this.emitter.emit('state-changed', tf, state);\n }\n\n /**\n * Refresh page number field on page number changes\n *\n * @param {Number} pageNb Current page number\n */\n updatePage(pageNb) {\n this.pageNb = pageNb;\n this.update();\n }\n\n /**\n * Refresh page length field on page length changes\n *\n * @param {Number} pageLength Current page length value\n */\n updatePageLength(pageLength) {\n this.pageLength = pageLength;\n this.update();\n }\n\n /**\n * Refresh column sorting information on sort changes\n *\n * @param index {Number} Column index\n * @param {Boolean} descending Descending manner\n */\n updateSort(index, descending) {\n this.sort = {\n column: index,\n descending: descending\n };\n this.update();\n }\n\n /**\n * Refresh hidden columns information on columns visibility changes\n *\n * @param {Array} hiddenCols Columns indexes\n */\n updateColsVisibility(hiddenCols) {\n this.hiddenCols = hiddenCols;\n this.update();\n }\n\n /**\n * Refresh filters visibility on filters visibility change\n *\n * @param {Boolean} visible Visibility flad\n */\n updateFiltersVisibility(visible) {\n this.filtersVisibility = visible;\n this.update();\n }\n\n /**\n * Override state field\n *\n * @param state State object\n */\n override(state) {\n this.state = state;\n }\n\n /**\n * Sync stored features state\n */\n sync() {\n let state = this.state;\n let tf = this.tf;\n\n this._syncFilters();\n\n if (this.persistPageNumber) {\n let pageNumber = state[this.pageNbKey];\n this.emitter.emit('change-page', tf, pageNumber);\n }\n\n if (this.persistPageLength) {\n let pageLength = state[this.pageLengthKey];\n this.emitter.emit('change-page-results', tf, pageLength);\n }\n\n this._syncSort();\n this._syncColsVisibility();\n this._syncFiltersVisibility();\n }\n\n /**\n * Override current state with passed one and sync features\n *\n * @param {Object} state State object\n */\n overrideAndSync(state) {\n // To prevent state to react to features changes, state is temporarily\n // disabled\n this.disable();\n // State is overriden with passed state object\n this.override(state);\n // New hash state is applied to features\n this.sync();\n // State is re-enabled\n this.enable();\n }\n\n /**\n * Sync filters with stored values and filter table\n *\n * @private\n */\n _syncFilters() {\n if (!this.persistFilters) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1) {\n let colIdx = parseInt(key.replace(this.prfxCol, ''), 10);\n let val = state[key].flt;\n tf.setFilterValue(colIdx, val);\n }\n });\n\n tf.filter();\n }\n\n /**\n * Sync sorted column with stored sorting information and sort table\n *\n * @private\n */\n _syncSort() {\n if (!this.persistSort) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1) {\n let colIdx = parseInt(key.replace(this.prfxCol, ''), 10);\n if (!isUndef(state[key].sort)) {\n let sort = state[key].sort;\n this.emitter.emit('sort', tf, colIdx, sort.descending);\n }\n }\n });\n }\n\n /**\n * Sync hidden columns with stored information\n *\n * @private\n */\n _syncColsVisibility() {\n if (!this.persistColsVisibility) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n let hiddenCols = [];\n\n Object.keys(state).forEach((key) => {\n if (key.indexOf(this.prfxCol) !== -1) {\n let colIdx = parseInt(key.replace(this.prfxCol, ''), 10);\n if (!isUndef(state[key].hidden)) {\n hiddenCols.push(colIdx);\n }\n }\n });\n\n hiddenCols.forEach((colIdx) => {\n this.emitter.emit('hide-column', tf, colIdx);\n });\n }\n\n /**\n * Sync filters visibility with stored information\n *\n * @private\n */\n _syncFiltersVisibility() {\n if (!this.persistFiltersVisibility) {\n return;\n }\n let state = this.state;\n let tf = this.tf;\n let filtersVisibility = state[this.filtersVisKey];\n\n this.filtersVisibility = filtersVisibility;\n this.emitter.emit('show-filters', tf, filtersVisibility);\n }\n\n /**\n * Destroy State instance\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n this.state = {};\n\n this.emitter.off(['after-filtering'], () => this.update());\n this.emitter.off(['after-page-change', 'after-clearing-filters'],\n (tf, pageNb) => this.updatePage(pageNb));\n this.emitter.off(['after-page-length-change'],\n (tf, index) => this.updatePageLength(index));\n this.emitter.off(['column-sorted'],\n (tf, index, descending) => this.updateSort(index, descending));\n this.emitter.off(['sort-initialized'], () => this._syncSort());\n this.emitter.off(['columns-visibility-initialized'],\n () => this._syncColsVisibility());\n this.emitter.off(['column-shown', 'column-hidden'], (tf, feature,\n colIndex, hiddenCols) => this.updateColsVisibility(hiddenCols));\n this.emitter.off(['filters-visibility-initialized'],\n () => this._syncFiltersVisibility());\n this.emitter.off(['filters-toggled'],\n (tf, extension, visible) => this.updateFiltersVisibility(visible));\n\n if (this.enableHash) {\n this.hash.destroy();\n this.hash = null;\n }\n\n if (this.enableStorage) {\n this.storage.destroy();\n this.storage = null;\n }\n\n this.initialized = false;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/state.js","import {addEvt, removeEvt} from '../event';\nimport {root} from '../root';\n\nconst JSON = root.JSON;\nconst location = root.location;\nconst decodeURIComponent = root.decodeURIComponent;\nconst encodeURIComponent = root.encodeURIComponent;\n\n/**\n * Checks if browser has onhashchange event\n */\nexport const hasHashChange = () => {\n let docMode = root.documentMode;\n return ('onhashchange' in root) && (docMode === undefined || docMode > 7);\n};\n\n/**\n * Manages state via URL hash changes\n *\n * @export\n * @class Hash\n */\nexport class Hash {\n\n /**\n * Creates an instance of Hash\n *\n * @param {State} state Instance of State\n */\n constructor(state) {\n /**\n * State object\n * @type {State}\n */\n this.state = state;\n\n /**\n * Cached URL hash\n * @type {String} Hash string\n * @private\n */\n this.lastHash = null;\n\n /**\n * Application event emitter instance\n * @type {Emitter}\n */\n this.emitter = state.emitter;\n\n /**\n * Bound sync wrapper for future use\n * @private\n */\n this.boundSync = null;\n }\n\n /**\n * Initializes the Hash object\n */\n init() {\n if (!hasHashChange()) {\n return;\n }\n\n this.lastHash = location.hash;\n //Store a bound sync wrapper\n this.boundSync = this.sync.bind(this);\n this.emitter.on(['state-changed'], (tf, state) => this.update(state));\n this.emitter.on(['initialized'], this.boundSync);\n addEvt(root, 'hashchange', this.boundSync);\n }\n\n /**\n * Updates the URL hash based on a state change\n *\n * @param {State} state Instance of State\n */\n update(state) {\n let hash = `#${encodeURIComponent(JSON.stringify(state))}`;\n if (this.lastHash === hash) {\n return;\n }\n\n location.hash = hash;\n this.lastHash = hash;\n }\n\n /**\n * Converts a URL hash into a state JSON object\n *\n * @param {String} hash URL hash fragment\n * @returns {Object} JSON object\n */\n parse(hash) {\n if (hash.indexOf('#') === -1) {\n return null;\n }\n hash = hash.substr(1);\n return JSON.parse(decodeURIComponent(hash));\n }\n\n /**\n * Applies current hash state to features\n */\n sync() {\n let state = this.parse(location.hash);\n if (!state) {\n return;\n }\n // override current state with persisted one and sync features\n this.state.overrideAndSync(state);\n }\n\n /**\n * Release Hash event subscriptions and clear fields\n */\n destroy() {\n this.emitter.off(['state-changed'], (tf, state) => this.update(state));\n this.emitter.off(['initialized'], this.boundSync);\n removeEvt(root, 'hashchange', this.boundSync);\n\n this.state = null;\n this.lastHash = null;\n this.emitter = null;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/hash.js","\nimport Cookie from '../cookie';\nimport {root} from '../root';\n\nconst JSON = root.JSON;\nconst localStorage = root.localStorage;\nconst location = root.location;\n\n/**\n * Checks if browser has Storage feature\n */\nexport const hasStorage = () => {\n return 'Storage' in root;\n};\n\n/**\n * Stores the features state in browser's local storage or cookie\n *\n * @export\n * @class Storage\n */\nexport class Storage {\n\n /**\n * Creates an instance of Storage\n *\n * @param {State} state Instance of State\n */\n constructor(state) {\n\n /**\n * State object\n * @type {State}\n * @private\n */\n this.state = state;\n\n /**\n * TableFilter object\n * @type {TableFilter}\n * @private\n */\n this.tf = state.tf;\n\n /**\n * Persist with local storage\n * @type {Boolean}\n * @private\n */\n this.enableLocalStorage = state.enableLocalStorage && hasStorage();\n\n /**\n * Persist with cookie\n * @type {Boolean}\n * @private\n */\n this.enableCookie = state.enableCookie && !this.enableLocalStorage;\n\n /**\n * Emitter object\n * @type {Emitter}\n * @private\n */\n this.emitter = state.emitter;\n\n /**\n * Cookie duration in hours from state object\n * @type {Number}\n * @private\n */\n this.duration = state.cookieDuration;\n }\n\n\n /**\n * Initializes the Storage object\n */\n init() {\n this.emitter.on(['state-changed'], (tf, state) => this.save(state));\n this.emitter.on(['initialized'], () => this.sync());\n }\n\n /**\n * Persists the features state on state changes\n *\n * @param {State} state Instance of State\n */\n save(state) {\n if (this.enableLocalStorage) {\n localStorage[this.getKey()] = JSON.stringify(state);\n } else {\n Cookie.write(this.getKey(), JSON.stringify(state), this.duration);\n }\n }\n\n /**\n * Turns stored string into a State JSON object\n *\n * @returns {Object} JSON object\n */\n retrieve() {\n let state = null;\n if (this.enableLocalStorage) {\n state = localStorage[this.getKey()];\n } else {\n state = Cookie.read(this.getKey());\n }\n\n if (!state) {\n return null;\n }\n return JSON.parse(state);\n }\n\n /**\n * Removes persisted state from storage\n */\n remove() {\n if (this.enableLocalStorage) {\n localStorage.removeItem(this.getKey());\n } else {\n Cookie.remove(this.getKey());\n }\n }\n\n /**\n * Applies persisted state to features\n */\n sync() {\n let state = this.retrieve();\n if (!state) {\n return;\n }\n // override current state with persisted one and sync features\n this.state.overrideAndSync(state);\n }\n\n /**\n * Returns the storage key\n *\n * @returns {String} Key\n */\n getKey() {\n return JSON.stringify({\n key: `${this.tf.prfxTf}_${this.tf.id}`,\n path: location.pathname\n });\n }\n\n /**\n * Release Storage event subscriptions and clear fields\n */\n destroy() {\n this.emitter.off(['state-changed'], (tf, state) => this.save(state));\n this.emitter.off(['initialized'], () => this.sync());\n\n this.remove();\n\n this.state = null;\n this.emitter = null;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/storage.js","import {root} from './root';\n\n/**\n * Cookie utilities\n */\n\nconst doc = root.document;\n\nexport default {\n\n /**\n * Write a cookie\n * @param {String} name Name of the cookie\n * @param {String} value Value of the cookie\n * @param {Number} hours Cookie duration in hours\n */\n write(name, value, hours) {\n let expire = '';\n if (hours) {\n expire = new Date((new Date()).getTime() + hours * 3600000);\n expire = '; expires=' + expire.toGMTString();\n }\n doc.cookie = name + '=' + escape(value) + expire;\n },\n\n /**\n * Read a cookie\n * @param {String} name Name of the cookie\n * @returns {String} Value of the cookie\n */\n read(name) {\n let cookieValue = '',\n search = name + '=';\n if (doc.cookie.length > 0) {\n let cookie = doc.cookie,\n offset = cookie.indexOf(search);\n if (offset !== -1) {\n offset += search.length;\n let end = cookie.indexOf(';', offset);\n if (end === -1) {\n end = cookie.length;\n }\n cookieValue = unescape(cookie.substring(offset, end));\n }\n }\n return cookieValue;\n },\n\n /**\n * Remove a cookie\n * @param {String} name Name of the cookie\n */\n remove(name) {\n this.write(name, '', -1);\n }\n\n};\n\n\n\n// WEBPACK FOOTER //\n// ./src/cookie.js","import {Date as SugarDate} from 'sugar-date';\nimport 'sugar-date/locales';\nimport {Feature} from '../feature';\nimport {isObj, isArray} from '../types';\nimport {DATE} from '../const';\nimport {root} from '../root';\n\n/**\n * Wrapper for Sugar Date module providing datetime helpers and locales\n * @export\n * @class DateType\n */\nexport class DateType extends Feature {\n\n /**\n * Creates an instance of DateType\n * @param {TableFilter} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'dateType');\n\n /**\n * Global locale\n * @type {String}\n */\n this.locale = tf.locale;\n\n /**\n * Sugar Date instance\n * @type {Object}\n */\n this.datetime = SugarDate;\n\n this.enable();\n }\n\n /**\n * Initialize DateType instance\n */\n init() {\n if (this.initialized) {\n return;\n }\n\n // Set global locale\n this.datetime.setLocale(this.locale);\n\n // Add formats from column types configuration if any\n this.addConfigFormats(this.tf.colTypes);\n\n this.emitter.on(\n ['add-date-type-formats'],\n (tf, types) => this.addConfigFormats(types)\n );\n\n // Broadcast date-type initialization\n this.emitter.emit('date-type-initialized', this.tf, this);\n\n /** @inherited */\n this.initialized = true;\n }\n\n /**\n * Parse a string representation of a date for a specified locale and return\n * a date object\n * @param {String} dateStr String representation of a date\n * @param {String} localeCode Locale code (ie 'en-us')\n * @returns {Date}\n */\n parse(dateStr, localeCode) {\n return this.datetime.create(dateStr, localeCode);\n }\n\n /**\n * Check string representation of a date for a specified locale is valid\n * @param {any} dateStr String representation of a date\n * @param {any} localeCode Locale code (ie 'en-us')\n * @returns {Boolean}\n */\n isValid(dateStr, localeCode) {\n return this.datetime.isValid(this.parse(dateStr, localeCode));\n }\n\n /**\n * Return the type object of a specified column as per configuration or\n * passed collection\n * @param {Number} colIndex Column index\n * @param {Array} types Collection of column types, optional\n * @returns {Object}\n */\n getOptions(colIndex, types) {\n types = types || this.tf.colTypes;\n let colType = types[colIndex];\n return isObj(colType) ? colType : {};\n }\n\n /**\n * Add date time format(s) to a locale as specified by the passed\n * collection of column types, ie:\n * [\n * 'string',\n * 'number',\n * { type: 'date', locale: 'en', format: ['{dd}/{MM}/{yyyy}']}\n * ]\n *\n * @param {Array} [types=[]] Collection of column types\n */\n addConfigFormats(types=[]) {\n types.forEach((type, idx) => {\n let options = this.getOptions(idx, types);\n if (options.type === DATE && options.hasOwnProperty('format')) {\n let locale = this.datetime.getLocale(\n options.locale || this.locale\n );\n let formats = isArray(options.format) ?\n options.format : [options.format];\n\n // Sugar date module throws exceptions with locale.addFormat\n try {\n formats.forEach((format) => {\n locale.addFormat(format);\n });\n } catch (ex) {\n root.console.error(ex);\n }\n }\n });\n }\n\n /**\n * Remove DateType instance\n */\n destroy() {\n if (!this.initialized) {\n return;\n }\n\n // TODO: remove added formats\n\n this.emitter.off(\n ['add-date-type-formats'],\n (tf, types) => this.addConfigFormats(types)\n );\n\n this.initialized = false;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/dateType.js","'use strict';\n\nrequire('./date');\nrequire('./range');\n\nmodule.exports = require('sugar-core');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/index.js\n// module id = 31\n// module chunks = 0","'use strict';\n\n// Static Methods\nrequire('./addLocale');\nrequire('./create');\nrequire('./getAllLocaleCodes');\nrequire('./getAllLocales');\nrequire('./getLocale');\nrequire('./removeLocale');\nrequire('./setLocale');\n\n// Instance Methods\nrequire('../number/day');\nrequire('../number/dayAfter');\nrequire('../number/dayAgo');\nrequire('../number/dayBefore');\nrequire('../number/dayFromNow');\nrequire('../number/days');\nrequire('../number/daysAfter');\nrequire('../number/daysAgo');\nrequire('../number/daysBefore');\nrequire('../number/daysFromNow');\nrequire('../number/duration');\nrequire('../number/hour');\nrequire('../number/hourAfter');\nrequire('../number/hourAgo');\nrequire('../number/hourBefore');\nrequire('../number/hourFromNow');\nrequire('../number/hours');\nrequire('../number/hoursAfter');\nrequire('../number/hoursAgo');\nrequire('../number/hoursBefore');\nrequire('../number/hoursFromNow');\nrequire('../number/millisecond');\nrequire('../number/millisecondAfter');\nrequire('../number/millisecondAgo');\nrequire('../number/millisecondBefore');\nrequire('../number/millisecondFromNow');\nrequire('../number/milliseconds');\nrequire('../number/millisecondsAfter');\nrequire('../number/millisecondsAgo');\nrequire('../number/millisecondsBefore');\nrequire('../number/millisecondsFromNow');\nrequire('../number/minute');\nrequire('../number/minuteAfter');\nrequire('../number/minuteAgo');\nrequire('../number/minuteBefore');\nrequire('../number/minuteFromNow');\nrequire('../number/minutes');\nrequire('../number/minutesAfter');\nrequire('../number/minutesAgo');\nrequire('../number/minutesBefore');\nrequire('../number/minutesFromNow');\nrequire('../number/month');\nrequire('../number/monthAfter');\nrequire('../number/monthAgo');\nrequire('../number/monthBefore');\nrequire('../number/monthFromNow');\nrequire('../number/months');\nrequire('../number/monthsAfter');\nrequire('../number/monthsAgo');\nrequire('../number/monthsBefore');\nrequire('../number/monthsFromNow');\nrequire('../number/second');\nrequire('../number/secondAfter');\nrequire('../number/secondAgo');\nrequire('../number/secondBefore');\nrequire('../number/secondFromNow');\nrequire('../number/seconds');\nrequire('../number/secondsAfter');\nrequire('../number/secondsAgo');\nrequire('../number/secondsBefore');\nrequire('../number/secondsFromNow');\nrequire('../number/week');\nrequire('../number/weekAfter');\nrequire('../number/weekAgo');\nrequire('../number/weekBefore');\nrequire('../number/weekFromNow');\nrequire('../number/weeks');\nrequire('../number/weeksAfter');\nrequire('../number/weeksAgo');\nrequire('../number/weeksBefore');\nrequire('../number/weeksFromNow');\nrequire('../number/year');\nrequire('../number/yearAfter');\nrequire('../number/yearAgo');\nrequire('../number/yearBefore');\nrequire('../number/yearFromNow');\nrequire('../number/years');\nrequire('../number/yearsAfter');\nrequire('../number/yearsAgo');\nrequire('../number/yearsBefore');\nrequire('../number/yearsFromNow');\nrequire('./addDays');\nrequire('./addHours');\nrequire('./addMilliseconds');\nrequire('./addMinutes');\nrequire('./addMonths');\nrequire('./addSeconds');\nrequire('./addWeeks');\nrequire('./addYears');\nrequire('./advance');\nrequire('./beginningOfDay');\nrequire('./beginningOfISOWeek');\nrequire('./beginningOfMonth');\nrequire('./beginningOfWeek');\nrequire('./beginningOfYear');\nrequire('./clone');\nrequire('./daysAgo');\nrequire('./daysFromNow');\nrequire('./daysInMonth');\nrequire('./daysSince');\nrequire('./daysUntil');\nrequire('./endOfDay');\nrequire('./endOfISOWeek');\nrequire('./endOfMonth');\nrequire('./endOfWeek');\nrequire('./endOfYear');\nrequire('./format');\nrequire('./get');\nrequire('./getISOWeek');\nrequire('./getUTCOffset');\nrequire('./getUTCWeekday');\nrequire('./getWeekday');\nrequire('./hoursAgo');\nrequire('./hoursFromNow');\nrequire('./hoursSince');\nrequire('./hoursUntil');\nrequire('./is');\nrequire('./isAfter');\nrequire('./isBefore');\nrequire('./isBetween');\nrequire('./isFriday');\nrequire('./isFuture');\nrequire('./isLastMonth');\nrequire('./isLastWeek');\nrequire('./isLastYear');\nrequire('./isLeapYear');\nrequire('./isMonday');\nrequire('./isNextMonth');\nrequire('./isNextWeek');\nrequire('./isNextYear');\nrequire('./isPast');\nrequire('./isSaturday');\nrequire('./isSunday');\nrequire('./isThisMonth');\nrequire('./isThisWeek');\nrequire('./isThisYear');\nrequire('./isThursday');\nrequire('./isToday');\nrequire('./isTomorrow');\nrequire('./isTuesday');\nrequire('./isUTC');\nrequire('./isValid');\nrequire('./isWednesday');\nrequire('./isWeekday');\nrequire('./isWeekend');\nrequire('./isYesterday');\nrequire('./iso');\nrequire('./millisecondsAgo');\nrequire('./millisecondsFromNow');\nrequire('./millisecondsSince');\nrequire('./millisecondsUntil');\nrequire('./minutesAgo');\nrequire('./minutesFromNow');\nrequire('./minutesSince');\nrequire('./minutesUntil');\nrequire('./monthsAgo');\nrequire('./monthsFromNow');\nrequire('./monthsSince');\nrequire('./monthsUntil');\nrequire('./relative');\nrequire('./relativeTo');\nrequire('./reset');\nrequire('./rewind');\nrequire('./secondsAgo');\nrequire('./secondsFromNow');\nrequire('./secondsSince');\nrequire('./secondsUntil');\nrequire('./set');\nrequire('./setISOWeek');\nrequire('./setUTC');\nrequire('./setWeekday');\nrequire('./weeksAgo');\nrequire('./weeksFromNow');\nrequire('./weeksSince');\nrequire('./weeksUntil');\nrequire('./yearsAgo');\nrequire('./yearsFromNow');\nrequire('./yearsSince');\nrequire('./yearsUntil');\n\n// Accessors\nrequire('./getOption');\nrequire('./setOption');\n\nmodule.exports = require('sugar-core');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/index.js\n// module id = 32\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('./var/LocaleHelpers');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Date.defineStatic({\n\n 'addLocale': function(code, set) {\n return localeManager.add(code, set);\n }\n\n});\n\nmodule.exports = Sugar.Date.addLocale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addLocale.js\n// module id = 33\n// module chunks = 0","/*\n * Sugar v2.0.0\n *\n * Freely distributable and licensed under the MIT-style license.\n * Copyright (c) Andrew Plummer\n * https://sugarjs.com/\n *\n * ---------------------------- */\n(function() {\n 'use strict';\n\n /***\n * @module Core\n * @description Core functionality including the ability to define methods and\n * extend onto natives.\n *\n ***/\n\n // The global to export.\n var Sugar;\n\n // The name of Sugar in the global namespace.\n var SUGAR_GLOBAL = 'Sugar';\n\n // Natives available on initialization. Letting Object go first to ensure its\n // global is set by the time the rest are checking for chainable Object methods.\n var NATIVE_NAMES = 'Object Number String Array Date RegExp Function';\n\n // Static method flag\n var STATIC = 0x1;\n\n // Instance method flag\n var INSTANCE = 0x2;\n\n // IE8 has a broken defineProperty but no defineProperties so this saves a try/catch.\n var PROPERTY_DESCRIPTOR_SUPPORT = !!(Object.defineProperty && Object.defineProperties);\n\n // The global context. Rhino uses a different \"global\" keyword so\n // do an extra check to be sure that it's actually the global context.\n var globalContext = typeof global !== 'undefined' && global.Object === Object ? global : this;\n\n // Is the environment node?\n var hasExports = typeof module !== 'undefined' && module.exports;\n\n // Whether object instance methods can be mapped to the prototype.\n var allowObjectPrototype = false;\n\n // A map from Array to SugarArray.\n var namespacesByName = {};\n\n // A map from [object Object] to namespace.\n var namespacesByClassString = {};\n\n // Defining properties.\n var defineProperty = PROPERTY_DESCRIPTOR_SUPPORT ? Object.defineProperty : definePropertyShim;\n\n // A default chainable class for unknown types.\n var DefaultChainable = getNewChainableClass('Chainable');\n\n\n // Global methods\n\n function setupGlobal() {\n Sugar = globalContext[SUGAR_GLOBAL];\n if (Sugar) {\n // Reuse already defined Sugar global object.\n return;\n }\n Sugar = function(arg) {\n forEachProperty(Sugar, function(sugarNamespace, name) {\n // Although only the only enumerable properties on the global\n // object are Sugar namespaces, environments that can't set\n // non-enumerable properties will step through the utility methods\n // as well here, so use this check to only allow true namespaces.\n if (hasOwn(namespacesByName, name)) {\n sugarNamespace.extend(arg);\n }\n });\n return Sugar;\n };\n if (hasExports) {\n module.exports = Sugar;\n } else {\n try {\n globalContext[SUGAR_GLOBAL] = Sugar;\n } catch (e) {\n // Contexts such as QML have a read-only global context.\n }\n }\n forEachProperty(NATIVE_NAMES.split(' '), function(name) {\n createNamespace(name);\n });\n setGlobalProperties();\n }\n\n /***\n * @method createNamespace()\n * @returns Namespace\n * @global\n * @short Creates a new Sugar namespace.\n * @extra This method is for plugin developers who want to define methods to be\n * used with natives that Sugar does not handle by default. The new\n * namespace will appear on the `Sugar` global with all the methods of\n * normal namespaces, including the ability to define new methods. When\n * extended, any defined methods will be mapped to `name` in the global\n * context.\n *\n * @example\n *\n * Sugar.createNamespace('Boolean');\n *\n ***/\n function createNamespace(name) {\n\n // Is the current namespace Object?\n var isObject = name === 'Object';\n\n // A Sugar namespace is also a chainable class: Sugar.Array, etc.\n var sugarNamespace = getNewChainableClass(name, true);\n\n /***\n * @method extend([options])\n * @returns Sugar\n * @global\n * @namespace\n * @short Extends Sugar defined methods onto natives.\n * @extra This method can be called on individual namespaces like\n * `Sugar.Array` or on the `Sugar` global itself, in which case\n * [options] will be forwarded to each `extend` call. For more,\n * see `extending`.\n *\n * @options\n *\n * methods An array of method names to explicitly extend.\n *\n * except An array of method names or global namespaces (`Array`,\n * `String`) to explicitly exclude. Namespaces should be the\n * actual global objects, not strings.\n *\n * namespaces An array of global namespaces (`Array`, `String`) to\n * explicitly extend. Namespaces should be the actual\n * global objects, not strings.\n *\n * enhance A shortcut to disallow all \"enhance\" flags at once\n * (flags listed below). For more, see `enhanced methods`.\n * Default is `true`.\n *\n * enhanceString A boolean allowing String enhancements. Default is `true`.\n *\n * enhanceArray A boolean allowing Array enhancements. Default is `true`.\n *\n * objectPrototype A boolean allowing Sugar to extend Object.prototype\n * with instance methods. This option is off by default\n * and should generally not be used except with caution.\n * For more, see `object methods`.\n *\n * @example\n *\n * Sugar.Array.extend();\n * Sugar.extend();\n *\n ***/\n var extend = function (opts) {\n\n var nativeClass = globalContext[name], nativeProto = nativeClass.prototype;\n var staticMethods = {}, instanceMethods = {}, methodsByName;\n\n function objectRestricted(name, target) {\n return isObject && target === nativeProto &&\n (!allowObjectPrototype || name === 'get' || name === 'set');\n }\n\n function arrayOptionExists(field, val) {\n var arr = opts[field];\n if (arr) {\n for (var i = 0, el; el = arr[i]; i++) {\n if (el === val) {\n return true;\n }\n }\n }\n return false;\n }\n\n function arrayOptionExcludes(field, val) {\n return opts[field] && !arrayOptionExists(field, val);\n }\n\n function disallowedByFlags(methodName, target, flags) {\n // Disallowing methods by flag currently only applies if methods already\n // exist to avoid enhancing native methods, as aliases should still be\n // extended (i.e. Array#all should still be extended even if Array#every\n // is being disallowed by a flag).\n if (!target[methodName] || !flags) {\n return false;\n }\n for (var i = 0; i < flags.length; i++) {\n if (opts[flags[i]] === false) {\n return true;\n }\n }\n }\n\n function namespaceIsExcepted() {\n return arrayOptionExists('except', nativeClass) ||\n arrayOptionExcludes('namespaces', nativeClass);\n }\n\n function methodIsExcepted(methodName) {\n return arrayOptionExists('except', methodName);\n }\n\n function canExtend(methodName, method, target) {\n return !objectRestricted(methodName, target) &&\n !disallowedByFlags(methodName, target, method.flags) &&\n !methodIsExcepted(methodName);\n }\n\n opts = opts || {};\n methodsByName = opts.methods;\n\n if (namespaceIsExcepted()) {\n return;\n } else if (isObject && typeof opts.objectPrototype === 'boolean') {\n // Store \"objectPrototype\" flag for future reference.\n allowObjectPrototype = opts.objectPrototype;\n }\n\n forEachProperty(methodsByName || sugarNamespace, function(method, methodName) {\n if (methodsByName) {\n // If we have method names passed in an array,\n // then we need to flip the key and value here\n // and find the method in the Sugar namespace.\n methodName = method;\n method = sugarNamespace[methodName];\n }\n if (hasOwn(method, 'instance') && canExtend(methodName, method, nativeProto)) {\n instanceMethods[methodName] = method.instance;\n }\n if(hasOwn(method, 'static') && canExtend(methodName, method, nativeClass)) {\n staticMethods[methodName] = method;\n }\n });\n\n // Accessing the extend target each time instead of holding a reference as\n // it may have been overwritten (for example Date by Sinon). Also need to\n // access through the global to allow extension of user-defined namespaces.\n extendNative(nativeClass, staticMethods);\n extendNative(nativeProto, instanceMethods);\n\n if (!methodsByName) {\n // If there are no method names passed, then\n // all methods in the namespace will be extended\n // to the native. This includes all future defined\n // methods, so add a flag here to check later.\n setProperty(sugarNamespace, 'active', true);\n }\n return Sugar;\n };\n\n function defineWithOptionCollect(methodName, instance, args) {\n setProperty(sugarNamespace, methodName, function(arg1, arg2, arg3) {\n var opts = collectDefineOptions(arg1, arg2, arg3);\n defineMethods(sugarNamespace, opts.methods, instance, args, opts.last);\n return sugarNamespace;\n });\n }\n\n /***\n * @method defineStatic(...)\n * @returns Namespace\n * @namespace\n * @short Defines static methods on the namespace that can later be extended\n * onto the native globals.\n * @extra Accepts either a single object mapping names to functions, or name\n * and function as two arguments. If `extend` was previously called\n * with no arguments, the method will be immediately mapped to its\n * native when defined.\n *\n * @example\n *\n * Sugar.Number.defineStatic({\n * isOdd: function (num) {\n * return num % 2 === 1;\n * }\n * });\n *\n ***/\n defineWithOptionCollect('defineStatic', STATIC);\n\n /***\n * @method defineInstance(...)\n * @returns Namespace\n * @namespace\n * @short Defines methods on the namespace that can later be extended as\n * instance methods onto the native prototype.\n * @extra Accepts either a single object mapping names to functions, or name\n * and function as two arguments. All functions should accept the\n * native for which they are mapped as their first argument, and should\n * never refer to `this`. If `extend` was previously called with no\n * arguments, the method will be immediately mapped to its native when\n * defined.\n *\n * Methods cannot accept more than 4 arguments in addition to the\n * native (5 arguments total). Any additional arguments will not be\n * mapped. If the method needs to accept unlimited arguments, use\n * `defineInstanceWithArguments`. Otherwise if more options are\n * required, use an options object instead.\n *\n * @example\n *\n * Sugar.Number.defineInstance({\n * square: function (num) {\n * return num * num;\n * }\n * });\n *\n ***/\n defineWithOptionCollect('defineInstance', INSTANCE);\n\n /***\n * @method defineInstanceAndStatic(...)\n * @returns Namespace\n * @namespace\n * @short A shortcut to define both static and instance methods on the namespace.\n * @extra This method is intended for use with `Object` instance methods. Sugar\n * will not map any methods to `Object.prototype` by default, so defining\n * instance methods as static helps facilitate their proper use.\n *\n * @example\n *\n * Sugar.Object.defineInstanceAndStatic({\n * isAwesome: function (obj) {\n * // check if obj is awesome!\n * }\n * });\n *\n ***/\n defineWithOptionCollect('defineInstanceAndStatic', INSTANCE | STATIC);\n\n\n /***\n * @method defineStaticWithArguments(...)\n * @returns Namespace\n * @namespace\n * @short Defines static methods that collect arguments.\n * @extra This method is identical to `defineStatic`, except that when defined\n * methods are called, they will collect any arguments past `n - 1`,\n * where `n` is the number of arguments that the method accepts.\n * Collected arguments will be passed to the method in an array\n * as the last argument defined on the function.\n *\n * @example\n *\n * Sugar.Number.defineStaticWithArguments({\n * addAll: function (num, args) {\n * for (var i = 0; i < args.length; i++) {\n * num += args[i];\n * }\n * return num;\n * }\n * });\n *\n ***/\n defineWithOptionCollect('defineStaticWithArguments', STATIC, true);\n\n /***\n * @method defineInstanceWithArguments(...)\n * @returns Namespace\n * @namespace\n * @short Defines instance methods that collect arguments.\n * @extra This method is identical to `defineInstance`, except that when\n * defined methods are called, they will collect any arguments past\n * `n - 1`, where `n` is the number of arguments that the method\n * accepts. Collected arguments will be passed to the method as the\n * last argument defined on the function.\n *\n * @example\n *\n * Sugar.Number.defineInstanceWithArguments({\n * addAll: function (num, args) {\n * for (var i = 0; i < args.length; i++) {\n * num += args[i];\n * }\n * return num;\n * }\n * });\n *\n ***/\n defineWithOptionCollect('defineInstanceWithArguments', INSTANCE, true);\n\n /***\n * @method defineStaticPolyfill(...)\n * @returns Namespace\n * @namespace\n * @short Defines static methods that are mapped onto the native if they do\n * not already exist.\n * @extra Intended only for use creating polyfills that follow the ECMAScript\n * spec. Accepts either a single object mapping names to functions, or\n * name and function as two arguments.\n *\n * @example\n *\n * Sugar.Object.defineStaticPolyfill({\n * keys: function (obj) {\n * // get keys!\n * }\n * });\n *\n ***/\n setProperty(sugarNamespace, 'defineStaticPolyfill', function(arg1, arg2, arg3) {\n var opts = collectDefineOptions(arg1, arg2, arg3);\n extendNative(globalContext[name], opts.methods, true, opts.last);\n });\n\n /***\n * @method defineInstancePolyfill(...)\n * @returns Namespace\n * @namespace\n * @short Defines instance methods that are mapped onto the native prototype\n * if they do not already exist.\n * @extra Intended only for use creating polyfills that follow the ECMAScript\n * spec. Accepts either a single object mapping names to functions, or\n * name and function as two arguments. This method differs from\n * `defineInstance` as there is no static signature (as the method\n * is mapped as-is to the native), so it should refer to its `this`\n * object.\n *\n * @example\n *\n * Sugar.Array.defineInstancePolyfill({\n * indexOf: function (arr, el) {\n * // index finding code here!\n * }\n * });\n *\n ***/\n setProperty(sugarNamespace, 'defineInstancePolyfill', function(arg1, arg2, arg3) {\n var opts = collectDefineOptions(arg1, arg2, arg3);\n extendNative(globalContext[name].prototype, opts.methods, true, opts.last);\n // Map instance polyfills to chainable as well.\n forEachProperty(opts.methods, function(fn, methodName) {\n defineChainableMethod(sugarNamespace, methodName, fn);\n });\n });\n\n /***\n * @method alias(, )\n * @returns Namespace\n * @namespace\n * @short Aliases one Sugar method to another.\n *\n * @example\n *\n * Sugar.Array.alias('all', 'every');\n *\n ***/\n setProperty(sugarNamespace, 'alias', function(name, source) {\n var method = typeof source === 'string' ? sugarNamespace[source] : source;\n setMethod(sugarNamespace, name, method);\n });\n\n // Each namespace can extend only itself through its .extend method.\n setProperty(sugarNamespace, 'extend', extend);\n\n // Cache the class to namespace relationship for later use.\n namespacesByName[name] = sugarNamespace;\n namespacesByClassString['[object ' + name + ']'] = sugarNamespace;\n\n mapNativeToChainable(name);\n mapObjectChainablesToNamespace(sugarNamespace);\n\n\n // Export\n return Sugar[name] = sugarNamespace;\n }\n\n function setGlobalProperties() {\n setProperty(Sugar, 'extend', Sugar);\n setProperty(Sugar, 'toString', toString);\n setProperty(Sugar, 'createNamespace', createNamespace);\n\n setProperty(Sugar, 'util', {\n 'hasOwn': hasOwn,\n 'getOwn': getOwn,\n 'setProperty': setProperty,\n 'classToString': classToString,\n 'defineProperty': defineProperty,\n 'forEachProperty': forEachProperty,\n 'mapNativeToChainable': mapNativeToChainable\n });\n }\n\n function toString() {\n return SUGAR_GLOBAL;\n }\n\n\n // Defining Methods\n\n function defineMethods(sugarNamespace, methods, type, args, flags) {\n forEachProperty(methods, function(method, methodName) {\n var instanceMethod, staticMethod = method;\n if (args) {\n staticMethod = wrapMethodWithArguments(method);\n }\n if (flags) {\n staticMethod.flags = flags;\n }\n\n // A method may define its own custom implementation, so\n // make sure that's not the case before creating one.\n if (type & INSTANCE && !method.instance) {\n instanceMethod = wrapInstanceMethod(method, args);\n setProperty(staticMethod, 'instance', instanceMethod);\n }\n\n if (type & STATIC) {\n setProperty(staticMethod, 'static', true);\n }\n\n setMethod(sugarNamespace, methodName, staticMethod);\n\n if (sugarNamespace.active) {\n // If the namespace has been activated (.extend has been called),\n // then map this method as well.\n sugarNamespace.extend(methodName);\n }\n });\n }\n\n function collectDefineOptions(arg1, arg2, arg3) {\n var methods, last;\n if (typeof arg1 === 'string') {\n methods = {};\n methods[arg1] = arg2;\n last = arg3;\n } else {\n methods = arg1;\n last = arg2;\n }\n return {\n last: last,\n methods: methods\n };\n }\n\n function wrapInstanceMethod(fn, args) {\n return args ? wrapMethodWithArguments(fn, true) : wrapInstanceMethodFixed(fn);\n }\n\n function wrapMethodWithArguments(fn, instance) {\n // Functions accepting enumerated arguments will always have \"args\" as the\n // last argument, so subtract one from the function length to get the point\n // at which to start collecting arguments. If this is an instance method on\n // a prototype, then \"this\" will be pushed into the arguments array so start\n // collecting 1 argument earlier.\n var startCollect = fn.length - 1 - (instance ? 1 : 0);\n return function() {\n var args = [], collectedArgs = [], len;\n if (instance) {\n args.push(this);\n }\n len = Math.max(arguments.length, startCollect);\n // Optimized: no leaking arguments\n for (var i = 0; i < len; i++) {\n if (i < startCollect) {\n args.push(arguments[i]);\n } else {\n collectedArgs.push(arguments[i]);\n }\n }\n args.push(collectedArgs);\n return fn.apply(this, args);\n };\n }\n\n function wrapInstanceMethodFixed(fn) {\n switch(fn.length) {\n // Wrapped instance methods will always be passed the instance\n // as the first argument, but requiring the argument to be defined\n // may cause confusion here, so return the same wrapped function regardless.\n case 0:\n case 1:\n return function() {\n return fn(this);\n };\n case 2:\n return function(a) {\n return fn(this, a);\n };\n case 3:\n return function(a, b) {\n return fn(this, a, b);\n };\n case 4:\n return function(a, b, c) {\n return fn(this, a, b, c);\n };\n case 5:\n return function(a, b, c, d) {\n return fn(this, a, b, c, d);\n };\n }\n }\n\n // Method helpers\n\n function extendNative(target, source, polyfill, override) {\n forEachProperty(source, function(method, name) {\n if (polyfill && !override && target[name]) {\n // Method exists, so bail.\n return;\n }\n setProperty(target, name, method);\n });\n }\n\n function setMethod(sugarNamespace, methodName, method) {\n sugarNamespace[methodName] = method;\n if (method.instance) {\n defineChainableMethod(sugarNamespace, methodName, method.instance, true);\n }\n }\n\n\n // Chainables\n\n function getNewChainableClass(name) {\n var fn = function SugarChainable(obj, arg) {\n if (!(this instanceof fn)) {\n return new fn(obj, arg);\n }\n if (this.constructor !== fn) {\n // Allow modules to define their own constructors.\n obj = this.constructor.apply(obj, arguments);\n }\n this.raw = obj;\n };\n setProperty(fn, 'toString', function() {\n return SUGAR_GLOBAL + name;\n });\n setProperty(fn.prototype, 'valueOf', function() {\n return this.raw;\n });\n return fn;\n }\n\n function defineChainableMethod(sugarNamespace, methodName, fn) {\n var wrapped = wrapWithChainableResult(fn), existing, collision, dcp;\n dcp = DefaultChainable.prototype;\n existing = dcp[methodName];\n\n // If the method was previously defined on the default chainable, then a\n // collision exists, so set the method to a disambiguation function that will\n // lazily evaluate the object and find it's associated chainable. An extra\n // check is required to avoid false positives from Object inherited methods.\n collision = existing && existing !== Object.prototype[methodName];\n\n // The disambiguation function is only required once.\n if (!existing || !existing.disambiguate) {\n dcp[methodName] = collision ? disambiguateMethod(methodName) : wrapped;\n }\n\n // The target chainable always receives the wrapped method. Additionally,\n // if the target chainable is Sugar.Object, then map the wrapped method\n // to all other namespaces as well if they do not define their own method\n // of the same name. This way, a Sugar.Number will have methods like\n // isEqual that can be called on any object without having to traverse up\n // the prototype chain and perform disambiguation, which costs cycles.\n // Note that the \"if\" block below actually does nothing on init as Object\n // goes first and no other namespaces exist yet. However it needs to be\n // here as Object instance methods defined later also need to be mapped\n // back onto existing namespaces.\n sugarNamespace.prototype[methodName] = wrapped;\n if (sugarNamespace === Sugar.Object) {\n mapObjectChainableToAllNamespaces(methodName, wrapped);\n }\n }\n\n function mapObjectChainablesToNamespace(sugarNamespace) {\n forEachProperty(Sugar.Object && Sugar.Object.prototype, function(val, methodName) {\n if (typeof val === 'function') {\n setObjectChainableOnNamespace(sugarNamespace, methodName, val);\n }\n });\n }\n\n function mapObjectChainableToAllNamespaces(methodName, fn) {\n forEachProperty(namespacesByName, function(sugarNamespace) {\n setObjectChainableOnNamespace(sugarNamespace, methodName, fn);\n });\n }\n\n function setObjectChainableOnNamespace(sugarNamespace, methodName, fn) {\n var proto = sugarNamespace.prototype;\n if (!hasOwn(proto, methodName)) {\n proto[methodName] = fn;\n }\n }\n\n function wrapWithChainableResult(fn) {\n return function() {\n return new DefaultChainable(fn.apply(this.raw, arguments));\n };\n }\n\n function disambiguateMethod(methodName) {\n var fn = function() {\n var raw = this.raw, sugarNamespace, fn;\n if (raw != null) {\n // Find the Sugar namespace for this unknown.\n sugarNamespace = namespacesByClassString[classToString(raw)];\n }\n if (!sugarNamespace) {\n // If no sugarNamespace can be resolved, then default\n // back to Sugar.Object so that undefined and other\n // non-supported types can still have basic object\n // methods called on them, such as type checks.\n sugarNamespace = Sugar.Object;\n }\n\n fn = new sugarNamespace(raw)[methodName];\n\n if (fn.disambiguate) {\n // If the method about to be called on this chainable is\n // itself a disambiguation method, then throw an error to\n // prevent infinite recursion.\n throw new TypeError('Cannot resolve namespace for ' + raw);\n }\n\n return fn.apply(this, arguments);\n };\n fn.disambiguate = true;\n return fn;\n }\n\n function mapNativeToChainable(name, methodNames) {\n var sugarNamespace = namespacesByName[name],\n nativeProto = globalContext[name].prototype;\n\n if (!methodNames && ownPropertyNames) {\n methodNames = ownPropertyNames(nativeProto);\n }\n\n forEachProperty(methodNames, function(methodName) {\n if (nativeMethodProhibited(methodName)) {\n // Sugar chainables have their own constructors as well as \"valueOf\"\n // methods, so exclude them here. The __proto__ argument should be trapped\n // by the function check below, however simply accessing this property on\n // Object.prototype causes QML to segfault, so pre-emptively excluding it.\n return;\n }\n try {\n var fn = nativeProto[methodName];\n if (typeof fn !== 'function') {\n // Bail on anything not a function.\n return;\n }\n } catch (e) {\n // Function.prototype has properties that\n // will throw errors when accessed.\n return;\n }\n defineChainableMethod(sugarNamespace, methodName, fn);\n });\n }\n\n function nativeMethodProhibited(methodName) {\n return methodName === 'constructor' ||\n methodName === 'valueOf' ||\n methodName === '__proto__';\n }\n\n\n // Util\n\n // Internal references\n var ownPropertyNames = Object.getOwnPropertyNames,\n internalToString = Object.prototype.toString,\n internalHasOwnProperty = Object.prototype.hasOwnProperty;\n\n // Defining this as a variable here as the ES5 module\n // overwrites it to patch DONTENUM.\n var forEachProperty = function (obj, fn) {\n for(var key in obj) {\n if (!hasOwn(obj, key)) continue;\n if (fn.call(obj, obj[key], key, obj) === false) break;\n }\n };\n\n function definePropertyShim(obj, prop, descriptor) {\n obj[prop] = descriptor.value;\n }\n\n function setProperty(target, name, value, enumerable) {\n defineProperty(target, name, {\n value: value,\n enumerable: !!enumerable,\n configurable: true,\n writable: true\n });\n }\n\n // PERF: Attempts to speed this method up get very Heisenbergy. Quickly\n // returning based on typeof works for primitives, but slows down object\n // types. Even === checks on null and undefined (no typeof) will end up\n // basically breaking even. This seems to be as fast as it can go.\n function classToString(obj) {\n return internalToString.call(obj);\n }\n\n function hasOwn(obj, prop) {\n return !!obj && internalHasOwnProperty.call(obj, prop);\n }\n\n function getOwn(obj, prop) {\n if (hasOwn(obj, prop)) {\n return obj[prop];\n }\n }\n\n setupGlobal();\n\n}).call(this);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/~/sugar-core/sugar-core.js\n// module id = 34\n// module chunks = 0","'use strict';\n\nvar LazyLoadedLocales = require('./LazyLoadedLocales'),\n AmericanEnglishDefinition = require('./AmericanEnglishDefinition'),\n getNewLocale = require('../internal/getNewLocale');\n\nvar English, localeManager;\n\nfunction buildLocales() {\n\n function LocaleManager(loc) {\n this.locales = {};\n this.add(loc);\n }\n\n LocaleManager.prototype = {\n\n get: function(code, fallback) {\n var loc = this.locales[code];\n if (!loc && LazyLoadedLocales[code]) {\n loc = this.add(code, LazyLoadedLocales[code]);\n } else if (!loc && code) {\n loc = this.locales[code.slice(0, 2)];\n }\n return loc || fallback === false ? loc : this.current;\n },\n\n getAll: function() {\n return this.locales;\n },\n\n set: function(code) {\n var loc = this.get(code, false);\n if (!loc) {\n throw new TypeError('Invalid Locale: ' + code);\n }\n return this.current = loc;\n },\n\n add: function(code, def) {\n if (!def) {\n def = code;\n code = def.code;\n } else {\n def.code = code;\n }\n var loc = def.compiledFormats ? def : getNewLocale(def);\n this.locales[code] = loc;\n if (!this.current) {\n this.current = loc;\n }\n return loc;\n },\n\n remove: function(code) {\n if (this.current.code === code) {\n this.current = this.get('en');\n }\n return delete this.locales[code];\n }\n\n };\n\n // Sorry about this guys...\n English = getNewLocale(AmericanEnglishDefinition);\n localeManager = new LocaleManager(English);\n}\n\nbuildLocales();\n\nmodule.exports = {\n English: English,\n localeManager: localeManager\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/LocaleHelpers.js\n// module id = 35\n// module chunks = 0","'use strict';\n\nvar BritishEnglishDefinition = require('./BritishEnglishDefinition'),\n AmericanEnglishDefinition = require('./AmericanEnglishDefinition'),\n CanadianEnglishDefinition = require('./CanadianEnglishDefinition');\n\nvar LazyLoadedLocales = {\n 'en-US': AmericanEnglishDefinition,\n 'en-GB': BritishEnglishDefinition,\n 'en-AU': BritishEnglishDefinition,\n 'en-CA': CanadianEnglishDefinition\n};\n\nmodule.exports = LazyLoadedLocales;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/LazyLoadedLocales.js\n// module id = 36\n// module chunks = 0","'use strict';\n\nvar getEnglishVariant = require('../internal/getEnglishVariant');\n\nvar BritishEnglishDefinition = getEnglishVariant({\n 'short': '{dd}/{MM}/{yyyy}',\n 'medium': '{d} {Month} {yyyy}',\n 'long': '{d} {Month} {yyyy} {H}:{mm}',\n 'full': '{Weekday}, {d} {Month}, {yyyy} {time}',\n 'stamp': '{Dow} {d} {Mon} {yyyy} {time}'\n});\n\nmodule.exports = BritishEnglishDefinition;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/BritishEnglishDefinition.js\n// module id = 37\n// module chunks = 0","'use strict';\n\nvar EnglishLocaleBaseDefinition = require('../var/EnglishLocaleBaseDefinition'),\n simpleMerge = require('../../common/internal/simpleMerge'),\n simpleClone = require('../../common/internal/simpleClone');\n\nfunction getEnglishVariant(v) {\n return simpleMerge(simpleClone(EnglishLocaleBaseDefinition), v);\n}\n\nmodule.exports = getEnglishVariant;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getEnglishVariant.js\n// module id = 38\n// module chunks = 0","'use strict';\n\nvar EnglishLocaleBaseDefinition = {\n 'code': 'en',\n 'plural': true,\n 'timeMarkers': 'at',\n 'ampm': 'AM|A.M.|a,PM|P.M.|p',\n 'units': 'millisecond:|s,second:|s,minute:|s,hour:|s,day:|s,week:|s,month:|s,year:|s',\n 'months': 'Jan:uary|,Feb:ruary|,Mar:ch|,Apr:il|,May,Jun:e|,Jul:y|,Aug:ust|,Sep:tember|t|,Oct:ober|,Nov:ember|,Dec:ember|',\n 'weekdays': 'Sun:day|,Mon:day|,Tue:sday|,Wed:nesday|,Thu:rsday|,Fri:day|,Sat:urday|+weekend',\n 'numerals': 'zero,one|first,two|second,three|third,four:|th,five|fifth,six:|th,seven:|th,eight:|h,nin:e|th,ten:|th',\n 'articles': 'a,an,the',\n 'tokens': 'the,st|nd|rd|th,of|in,a|an,on',\n 'time': '{H}:{mm}',\n 'past': '{num} {unit} {sign}',\n 'future': '{num} {unit} {sign}',\n 'duration': '{num} {unit}',\n 'modifiers': [\n { 'name': 'half', 'src': 'half', 'value': .5 },\n { 'name': 'midday', 'src': 'noon', 'value': 12 },\n { 'name': 'midday', 'src': 'midnight', 'value': 24 },\n { 'name': 'day', 'src': 'yesterday', 'value': -1 },\n { 'name': 'day', 'src': 'today|tonight', 'value': 0 },\n { 'name': 'day', 'src': 'tomorrow', 'value': 1 },\n { 'name': 'sign', 'src': 'ago|before', 'value': -1 },\n { 'name': 'sign', 'src': 'from now|after|from|in|later', 'value': 1 },\n { 'name': 'edge', 'src': 'first day|first|beginning', 'value': -2 },\n { 'name': 'edge', 'src': 'last day', 'value': 1 },\n { 'name': 'edge', 'src': 'end|last', 'value': 2 },\n { 'name': 'shift', 'src': 'last', 'value': -1 },\n { 'name': 'shift', 'src': 'the|this', 'value': 0 },\n { 'name': 'shift', 'src': 'next', 'value': 1 }\n ],\n 'parse': [\n '(?:just)? now',\n '{shift} {unit:5-7}',\n \"{months?} (?:{year}|'{yy})\",\n '{midday} {4?} {day|weekday}',\n '{months},?(?:[-.\\\\/\\\\s]{year})?',\n '{edge} of (?:day)? {day|weekday}',\n '{0} {num}{1?} {weekday} {2} {months},? {year?}',\n '{shift?} {day?} {weekday?} {timeMarker?} {midday}',\n '{sign?} {3?} {half} {3?} {unit:3-4|unit:7} {sign?}',\n '{0?} {edge} {weekday?} {2} {shift?} {unit:4-7?} {months?},? {year?}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{shift} {unit:5?} {weekday}',\n '{0?} {date}{1?} {2?} {months?}',\n '{weekday} {2?} {shift} {unit:5}',\n '{0?} {num} {2?} {months}\\\\.?,? {year?}',\n '{num?} {unit:4-5} {sign} {day|weekday}',\n '{year}[-.\\\\/\\\\s]{months}[-.\\\\/\\\\s]{date}',\n '{0|months} {date?}{1?} of {shift} {unit:6-7}',\n '{0?} {num}{1?} {weekday} of {shift} {unit:6}',\n \"{date}[-.\\\\/\\\\s]{months}[-.\\\\/\\\\s](?:{year}|'?{yy})\",\n \"{weekday?}\\\\.?,? {months}\\\\.?,? {date}{1?},? (?:{year}|'{yy})?\"\n ],\n 'timeFrontParse': [\n '{sign} {num} {unit}',\n '{num} {unit} {sign}',\n '{4?} {day|weekday}'\n ]\n};\n\nmodule.exports = EnglishLocaleBaseDefinition;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/EnglishLocaleBaseDefinition.js\n// module id = 39\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar forEachProperty = coreUtilityAliases.forEachProperty;\n\nfunction simpleMerge(target, source) {\n forEachProperty(source, function(val, key) {\n target[key] = val;\n });\n return target;\n}\n\nmodule.exports = simpleMerge;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/simpleMerge.js\n// module id = 40\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nmodule.exports = {\n hasOwn: Sugar.util.hasOwn,\n getOwn: Sugar.util.getOwn,\n setProperty: Sugar.util.setProperty,\n classToString: Sugar.util.classToString,\n defineProperty: Sugar.util.defineProperty,\n forEachProperty: Sugar.util.forEachProperty,\n mapNativeToChainable: Sugar.util.mapNativeToChainable\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/coreUtilityAliases.js\n// module id = 41\n// module chunks = 0","'use strict';\n\nvar simpleMerge = require('./simpleMerge');\n\nfunction simpleClone(obj) {\n return simpleMerge({}, obj);\n}\n\nmodule.exports = simpleClone;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/simpleClone.js\n// module id = 42\n// module chunks = 0","'use strict';\n\nvar getEnglishVariant = require('../internal/getEnglishVariant');\n\nvar AmericanEnglishDefinition = getEnglishVariant({\n 'mdy': true,\n 'firstDayOfWeek': 0,\n 'firstDayOfWeekYear': 1,\n 'short': '{MM}/{dd}/{yyyy}',\n 'medium': '{Month} {d}, {yyyy}',\n 'long': '{Month} {d}, {yyyy} {time}',\n 'full': '{Weekday}, {Month} {d}, {yyyy} {time}',\n 'stamp': '{Dow} {Mon} {d} {yyyy} {time}',\n 'time': '{h}:{mm} {TT}'\n});\n\nmodule.exports = AmericanEnglishDefinition;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/AmericanEnglishDefinition.js\n// module id = 43\n// module chunks = 0","'use strict';\n\nvar getEnglishVariant = require('../internal/getEnglishVariant');\n\nvar CanadianEnglishDefinition = getEnglishVariant({\n 'short': '{yyyy}-{MM}-{dd}',\n 'medium': '{d} {Month}, {yyyy}',\n 'long': '{d} {Month}, {yyyy} {H}:{mm}',\n 'full': '{Weekday}, {d} {Month}, {yyyy} {time}',\n 'stamp': '{Dow} {d} {Mon} {yyyy} {time}'\n});\n\nmodule.exports = CanadianEnglishDefinition;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/CanadianEnglishDefinition.js\n// module id = 44\n// module chunks = 0","'use strict';\n\nvar LOCALE_ARRAY_FIELDS = require('../var/LOCALE_ARRAY_FIELDS'),\n ISODefaults = require('../var/ISODefaults'),\n ParsingTokens = require('../var/ParsingTokens'),\n CoreParsingFormats = require('../var/CoreParsingFormats'),\n LocalizedParsingTokens = require('../var/LocalizedParsingTokens'),\n map = require('../../common/internal/map'),\n filter = require('../../common/internal/filter'),\n forEach = require('../../common/internal/forEach'),\n isDefined = require('../../common/internal/isDefined'),\n commaSplit = require('../../common/internal/commaSplit'),\n classChecks = require('../../common/var/classChecks'),\n isUndefined = require('../../common/internal/isUndefined'),\n mathAliases = require('../../common/var/mathAliases'),\n simpleMerge = require('../../common/internal/simpleMerge'),\n getOrdinalSuffix = require('../../common/internal/getOrdinalSuffix'),\n getRegNonCapturing = require('./getRegNonCapturing'),\n coreUtilityAliases = require('../../common/var/coreUtilityAliases'),\n getArrayWithOffset = require('./getArrayWithOffset'),\n iterateOverDateUnits = require('./iterateOverDateUnits'),\n arrayToRegAlternates = require('./arrayToRegAlternates'),\n fullwidthNumberHelpers = require('../../common/var/fullwidthNumberHelpers'),\n getAdjustedUnitForNumber = require('./getAdjustedUnitForNumber'),\n getParsingTokenWithSuffix = require('./getParsingTokenWithSuffix');\n\nvar getOwn = coreUtilityAliases.getOwn,\n forEachProperty = coreUtilityAliases.forEachProperty,\n fullWidthNumberMap = fullwidthNumberHelpers.fullWidthNumberMap,\n fullWidthNumbers = fullwidthNumberHelpers.fullWidthNumbers,\n pow = mathAliases.pow,\n max = mathAliases.max,\n ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,\n ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR,\n isString = classChecks.isString,\n isFunction = classChecks.isFunction;\n\nfunction getNewLocale(def) {\n\n function Locale(def) {\n this.init(def);\n }\n\n Locale.prototype = {\n\n getMonthName: function(n, alternate) {\n if (this.monthSuffix) {\n return (n + 1) + this.monthSuffix;\n }\n return getArrayWithOffset(this.months, n, alternate, 12);\n },\n\n getWeekdayName: function(n, alternate) {\n return getArrayWithOffset(this.weekdays, n, alternate, 7);\n },\n\n getTokenValue: function(field, str) {\n var map = this[field + 'Map'], val;\n if (map) {\n val = map[str];\n }\n if (isUndefined(val)) {\n val = this.getNumber(str);\n if (field === 'month') {\n // Months are the only numeric date field\n // whose value is not the same as its number.\n val -= 1;\n }\n }\n return val;\n },\n\n getNumber: function(str) {\n var num = this.numeralMap[str];\n if (isDefined(num)) {\n return num;\n }\n // The unary plus operator here show better performance and handles\n // every format that parseFloat does with the exception of trailing\n // characters, which are guaranteed not to be in our string at this point.\n num = +str.replace(/,/, '.');\n if (!isNaN(num)) {\n return num;\n }\n num = this.getNumeralValue(str);\n if (!isNaN(num)) {\n this.numeralMap[str] = num;\n return num;\n }\n return num;\n },\n\n getNumeralValue: function(str) {\n var place = 1, num = 0, lastWasPlace, isPlace, numeral, digit, arr;\n // Note that \"numerals\" that need to be converted through this method are\n // all considered to be single characters in order to handle CJK. This\n // method is by no means unique to CJK, but the complexity of handling\n // inflections in non-CJK languages adds too much overhead for not enough\n // value, so avoiding for now.\n arr = str.split('');\n for (var i = arr.length - 1; numeral = arr[i]; i--) {\n digit = getOwn(this.numeralMap, numeral);\n if (isUndefined(digit)) {\n digit = getOwn(fullWidthNumberMap, numeral) || 0;\n }\n isPlace = digit > 0 && digit % 10 === 0;\n if (isPlace) {\n if (lastWasPlace) {\n num += place;\n }\n if (i) {\n place = digit;\n } else {\n num += digit;\n }\n } else {\n num += digit * place;\n place *= 10;\n }\n lastWasPlace = isPlace;\n }\n return num;\n },\n\n getOrdinal: function(n) {\n var suffix = this.ordinalSuffix;\n return suffix || getOrdinalSuffix(n);\n },\n\n getRelativeFormat: function(adu, type) {\n return this.convertAdjustedToFormat(adu, type);\n },\n\n getDuration: function(ms) {\n return this.convertAdjustedToFormat(getAdjustedUnitForNumber(max(0, ms)), 'duration');\n },\n\n getFirstDayOfWeek: function() {\n var val = this.firstDayOfWeek;\n return isDefined(val) ? val : ISO_FIRST_DAY_OF_WEEK;\n },\n\n getFirstDayOfWeekYear: function() {\n return this.firstDayOfWeekYear || ISO_FIRST_DAY_OF_WEEK_YEAR;\n },\n\n convertAdjustedToFormat: function(adu, type) {\n var sign, unit, mult,\n num = adu[0],\n u = adu[1],\n ms = adu[2],\n format = this[type] || this.relative;\n if (isFunction(format)) {\n return format.call(this, num, u, ms, type);\n }\n mult = !this.plural || num === 1 ? 0 : 1;\n unit = this.units[mult * 8 + u] || this.units[u];\n sign = this[ms > 0 ? 'fromNow' : 'ago'];\n return format.replace(/\\{(.*?)\\}/g, function(full, match) {\n switch(match) {\n case 'num': return num;\n case 'unit': return unit;\n case 'sign': return sign;\n }\n });\n },\n\n cacheFormat: function(dif, i) {\n this.compiledFormats.splice(i, 1);\n this.compiledFormats.unshift(dif);\n },\n\n addFormat: function(src, to) {\n var loc = this;\n\n function getTokenSrc(str) {\n var suffix, src, val,\n opt = str.match(/\\?$/),\n nc = str.match(/^(\\d+)\\??$/),\n slice = str.match(/(\\d)(?:-(\\d))?/),\n key = str.replace(/[^a-z]+$/i, '');\n\n // Allowing alias tokens such as {time}\n if (val = getOwn(loc.parsingAliases, key)) {\n src = replaceParsingTokens(val);\n if (opt) {\n src = getRegNonCapturing(src, true);\n }\n return src;\n }\n\n if (nc) {\n src = loc.tokens[nc[1]];\n } else if (val = getOwn(ParsingTokens, key)) {\n src = val.src;\n } else {\n val = getOwn(loc.parsingTokens, key) || getOwn(loc, key);\n\n // Both the \"months\" array and the \"month\" parsing token can be accessed\n // by either {month} or {months}, falling back as necessary, however\n // regardless of whether or not a fallback occurs, the final field to\n // be passed to addRawFormat must be normalized as singular.\n key = key.replace(/s$/, '');\n\n if (!val) {\n val = getOwn(loc.parsingTokens, key) || getOwn(loc, key + 's');\n }\n\n if (isString(val)) {\n src = val;\n suffix = loc[key + 'Suffix'];\n } else {\n if (slice) {\n val = filter(val, function(m, i) {\n var mod = i % (loc.units ? 8 : val.length);\n return mod >= slice[1] && mod <= (slice[2] || slice[1]);\n });\n }\n src = arrayToRegAlternates(val);\n }\n }\n if (!src) {\n return '';\n }\n if (nc) {\n // Non-capturing tokens like {0}\n src = getRegNonCapturing(src);\n } else {\n // Capturing group and add to parsed tokens\n to.push(key);\n src = '(' + src + ')';\n }\n if (suffix) {\n // Date/time suffixes such as those in CJK\n src = getParsingTokenWithSuffix(key, src, suffix);\n }\n if (opt) {\n src += '?';\n }\n return src;\n }\n\n function replaceParsingTokens(str) {\n\n // Make spaces optional\n str = str.replace(/ /g, ' ?');\n\n return str.replace(/\\{([^,]+?)\\}/g, function(match, token) {\n var tokens = token.split('|'), src;\n if (tokens.length > 1) {\n src = getRegNonCapturing(map(tokens, getTokenSrc).join('|'));\n } else {\n src = getTokenSrc(token);\n }\n return src;\n });\n }\n\n if (!to) {\n to = [];\n src = replaceParsingTokens(src);\n }\n\n loc.addRawFormat(src, to);\n },\n\n addRawFormat: function(format, to) {\n this.compiledFormats.unshift({\n reg: RegExp('^ *' + format + ' *$', 'i'),\n to: to\n });\n },\n\n init: function(def) {\n var loc = this;\n\n // -- Initialization helpers\n\n function initFormats() {\n loc.compiledFormats = [];\n loc.parsingAliases = {};\n loc.parsingTokens = {};\n }\n\n function initDefinition() {\n simpleMerge(loc, def);\n }\n\n function initArrayFields() {\n forEach(LOCALE_ARRAY_FIELDS, function(name) {\n var val = loc[name];\n if (isString(val)) {\n loc[name] = commaSplit(val);\n } else if (!val) {\n loc[name] = [];\n }\n });\n }\n\n // -- Value array build helpers\n\n function buildValueArray(name, mod, map, fn) {\n var field = name, all = [], setMap;\n if (!loc[field]) {\n field += 's';\n }\n if (!map) {\n map = {};\n setMap = true;\n }\n forAllAlternates(field, function(alt, j, i) {\n var idx = j * mod + i, val;\n val = fn ? fn(i) : i;\n map[alt] = val;\n map[alt.toLowerCase()] = val;\n all[idx] = alt;\n });\n loc[field] = all;\n if (setMap) {\n loc[name + 'Map'] = map;\n }\n }\n\n function forAllAlternates(field, fn) {\n forEach(loc[field], function(str, i) {\n forEachAlternate(str, function(alt, j) {\n fn(alt, j, i);\n });\n });\n }\n\n function forEachAlternate(str, fn) {\n var arr = map(str.split('+'), function(split) {\n return split.replace(/(.+):(.+)$/, function(full, base, suffixes) {\n return map(suffixes.split('|'), function(suffix) {\n return base + suffix;\n }).join('|');\n });\n }).join('|');\n forEach(arr.split('|'), fn);\n }\n\n function buildNumerals() {\n var map = {};\n buildValueArray('numeral', 10, map);\n buildValueArray('article', 1, map, function() {\n return 1;\n });\n buildValueArray('placeholder', 4, map, function(n) {\n return pow(10, n + 1);\n });\n loc.numeralMap = map;\n }\n\n function buildTimeFormats() {\n loc.parsingAliases['time'] = getTimeFormat();\n loc.parsingAliases['tzOffset'] = getTZOffsetFormat();\n }\n\n function getTimeFormat() {\n var src;\n if (loc.ampmFront) {\n // \"ampmFront\" exists mostly for CJK locales, which also presume that\n // time suffixes exist, allowing this to be a simpler regex.\n src = '{ampm?} {hour} (?:{minute} (?::?{second})?)?';\n } else if(loc.ampm.length) {\n src = '{hour}(?:[.:]{minute}(?:[.:]{second})? {ampm?}| {ampm})';\n } else {\n src = '{hour}(?:[.:]{minute}(?:[.:]{second})?)';\n }\n return src;\n }\n\n function getTZOffsetFormat() {\n return '(?:{Z}|{GMT?}(?:{tzSign}{tzHour}(?::?{tzMinute}(?: \\\\([\\\\w\\\\s]+\\\\))?)?)?)?';\n }\n\n function buildParsingTokens() {\n forEachProperty(LocalizedParsingTokens, function(token, name) {\n var src, arr;\n src = token.base ? ParsingTokens[token.base].src : token.src;\n if (token.requiresNumerals || loc.numeralUnits) {\n src += getNumeralSrc();\n }\n arr = loc[name + 's'];\n if (arr && arr.length) {\n src += '|' + arrayToRegAlternates(arr);\n }\n loc.parsingTokens[name] = src;\n });\n }\n\n function getNumeralSrc() {\n var all, src = '';\n all = loc.numerals.concat(loc.placeholders).concat(loc.articles);\n if (loc.allowsFullWidth) {\n all = all.concat(fullWidthNumbers.split(''));\n }\n if (all.length) {\n src = '|(?:' + arrayToRegAlternates(all) + ')+';\n }\n return src;\n }\n\n function buildTimeSuffixes() {\n iterateOverDateUnits(function(unit, i) {\n var token = loc.timeSuffixes[i];\n if (token) {\n loc[(unit.alias || unit.name) + 'Suffix'] = token;\n }\n });\n }\n\n function buildModifiers() {\n forEach(loc.modifiers, function(modifier) {\n var name = modifier.name, mapKey = name + 'Map', map;\n map = loc[mapKey] || {};\n forEachAlternate(modifier.src, function(alt, j) {\n var token = getOwn(loc.parsingTokens, name), val = modifier.value;\n map[alt] = val;\n loc.parsingTokens[name] = token ? token + '|' + alt : alt;\n if (modifier.name === 'sign' && j === 0) {\n // Hooking in here to set the first \"fromNow\" or \"ago\" modifier\n // directly on the locale, so that it can be reused in the\n // relative format.\n loc[val === 1 ? 'fromNow' : 'ago'] = alt;\n }\n });\n loc[mapKey] = map;\n });\n }\n\n // -- Format adding helpers\n\n function addCoreFormats() {\n forEach(CoreParsingFormats, function(df) {\n var src = df.src;\n if (df.mdy && loc.mdy) {\n // Use the mm/dd/yyyy variant if it\n // exists and the locale requires it\n src = df.mdy;\n }\n if (df.time) {\n // Core formats that allow time require the time\n // reg on both sides, so add both versions here.\n loc.addFormat(getFormatWithTime(src, true));\n loc.addFormat(getFormatWithTime(src));\n } else {\n loc.addFormat(src);\n }\n });\n loc.addFormat('{time}');\n }\n\n function addLocaleFormats() {\n addFormatSet('parse');\n addFormatSet('timeParse', true);\n addFormatSet('timeFrontParse', true, true);\n }\n\n function addFormatSet(field, allowTime, timeFront) {\n forEach(loc[field], function(format) {\n if (allowTime) {\n format = getFormatWithTime(format, timeFront);\n }\n loc.addFormat(format);\n });\n }\n\n function getFormatWithTime(baseFormat, timeBefore) {\n if (timeBefore) {\n return getTimeBefore() + baseFormat;\n }\n return baseFormat + getTimeAfter();\n }\n\n function getTimeBefore() {\n return getRegNonCapturing('{time}[,\\\\s\\\\u3000]', true);\n }\n\n function getTimeAfter() {\n var markers = ',?[\\\\s\\\\u3000]', localized;\n localized = arrayToRegAlternates(loc.timeMarkers);\n if (localized) {\n markers += '| (?:' + localized + ') ';\n }\n markers = getRegNonCapturing(markers, loc.timeMarkerOptional);\n return getRegNonCapturing(markers + '{time}', true);\n }\n\n initFormats();\n initDefinition();\n initArrayFields();\n\n buildValueArray('month', 12);\n buildValueArray('weekday', 7);\n buildValueArray('unit', 8);\n buildValueArray('ampm', 2);\n\n buildNumerals();\n buildTimeFormats();\n buildParsingTokens();\n buildTimeSuffixes();\n buildModifiers();\n\n // The order of these formats is important. Order is reversed so formats\n // that are initialized later will take precedence. Generally, this means\n // that more specific formats should come later.\n addCoreFormats();\n addLocaleFormats();\n\n }\n\n };\n\n return new Locale(def);\n}\n\nmodule.exports = getNewLocale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getNewLocale.js\n// module id = 45\n// module chunks = 0","'use strict';\n\nvar LOCALE_ARRAY_FIELDS = [\n 'months', 'weekdays', 'units', 'numerals', 'placeholders',\n 'articles', 'tokens', 'timeMarkers', 'ampm', 'timeSuffixes',\n 'parse', 'timeParse', 'timeFrontParse', 'modifiers'\n];\n\nmodule.exports = LOCALE_ARRAY_FIELDS;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/LOCALE_ARRAY_FIELDS.js\n// module id = 46\n// module chunks = 0","'use strict';\n\nmodule.exports = {\n ISO_FIRST_DAY_OF_WEEK: 1,\n ISO_FIRST_DAY_OF_WEEK_YEAR: 4\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/ISODefaults.js\n// module id = 47\n// module chunks = 0","'use strict';\n\nvar ParsingTokens = {\n 'yyyy': {\n param: 'year',\n src: '\\\\d{4}'\n },\n 'MM': {\n param: 'month',\n src: '[01]?\\\\d'\n },\n 'dd': {\n param: 'date',\n src: '[0123]?\\\\d'\n },\n 'hh': {\n param: 'hour',\n src: '[0-2]?\\\\d'\n },\n 'mm': {\n param: 'minute',\n src: '[0-5]\\\\d'\n },\n 'ss': {\n param: 'second',\n src: '[0-5]\\\\d(?:[,.]\\\\d+)?'\n },\n 'yy': {\n param: 'year',\n src: '\\\\d{2}'\n },\n 'y': {\n param: 'year',\n src: '\\\\d'\n },\n 'yearSign': {\n src: '[+-]',\n sign: true\n },\n 'tzHour': {\n src: '[0-1]\\\\d'\n },\n 'tzMinute': {\n src: '[0-5]\\\\d'\n },\n 'tzSign': {\n src: '[+−-]',\n sign: true\n },\n 'ihh': {\n param: 'hour',\n src: '[0-2]?\\\\d(?:[,.]\\\\d+)?'\n },\n 'imm': {\n param: 'minute',\n src: '[0-5]\\\\d(?:[,.]\\\\d+)?'\n },\n 'GMT': {\n param: 'utc',\n src: 'GMT',\n val: 1\n },\n 'Z': {\n param: 'utc',\n src: 'Z',\n val: 1\n },\n 'timestamp': {\n src: '\\\\d+'\n }\n};\n\nmodule.exports = ParsingTokens;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/ParsingTokens.js\n// module id = 48\n// module chunks = 0","'use strict';\n\nvar CoreParsingFormats = [\n {\n // 12-1978\n // 08-1978 (MDY)\n src: '{MM}[-.\\\\/]{yyyy}'\n },\n {\n // 12/08/1978\n // 08/12/1978 (MDY)\n time: true,\n src: '{dd}[-.\\\\/]{MM}(?:[-.\\\\/]{yyyy|yy|y})?',\n mdy: '{MM}[-.\\\\/]{dd}(?:[-.\\\\/]{yyyy|yy|y})?'\n },\n {\n // 1975-08-25\n time: true,\n src: '{yyyy}[-.\\\\/]{MM}(?:[-.\\\\/]{dd})?'\n },\n {\n // .NET JSON\n src: '\\\\\\\\/Date\\\\({timestamp}(?:[+-]\\\\d{4,4})?\\\\)\\\\\\\\/'\n },\n {\n // ISO-8601\n src: '{yearSign?}{yyyy}(?:-?{MM}(?:-?{dd}(?:T{ihh}(?::?{imm}(?::?{ss})?)?)?)?)?{tzOffset?}'\n }\n];\n\nmodule.exports = CoreParsingFormats;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/CoreParsingFormats.js\n// module id = 49\n// module chunks = 0","'use strict';\n\nvar LocalizedParsingTokens = {\n 'year': {\n base: 'yyyy',\n requiresSuffix: true\n },\n 'month': {\n base: 'MM',\n requiresSuffix: true\n },\n 'date': {\n base: 'dd',\n requiresSuffix: true\n },\n 'hour': {\n base: 'hh',\n requiresSuffixOr: ':'\n },\n 'minute': {\n base: 'mm'\n },\n 'second': {\n base: 'ss'\n },\n 'num': {\n src: '\\\\d+',\n requiresNumerals: true\n }\n};\n\nmodule.exports = LocalizedParsingTokens;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/LocalizedParsingTokens.js\n// module id = 50\n// module chunks = 0","'use strict';\n\nfunction map(arr, fn) {\n // perf: Not using fixed array len here as it may be sparse.\n var result = [];\n for (var i = 0, len = arr.length; i < len; i++) {\n if (i in arr) {\n result.push(fn(arr[i], i));\n }\n }\n return result;\n}\n\nmodule.exports = map;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/map.js\n// module id = 51\n// module chunks = 0","'use strict';\n\nfunction filter(arr, fn) {\n var result = [];\n for (var i = 0, len = arr.length; i < len; i++) {\n var el = arr[i];\n if (i in arr && fn(el, i)) {\n result.push(el);\n }\n }\n return result;\n}\n\nmodule.exports = filter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/filter.js\n// module id = 52\n// module chunks = 0","'use strict';\n\nvar iterateOverSparseArray = require('./iterateOverSparseArray');\n\nfunction forEach(arr, fn) {\n for (var i = 0, len = arr.length; i < len; i++) {\n if (!(i in arr)) {\n return iterateOverSparseArray(arr, fn, i);\n }\n fn(arr[i], i);\n }\n}\n\nmodule.exports = forEach;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/forEach.js\n// module id = 53\n// module chunks = 0","'use strict';\n\nvar getSparseArrayIndexes = require('./getSparseArrayIndexes');\n\nfunction iterateOverSparseArray(arr, fn, fromIndex, loop) {\n var indexes = getSparseArrayIndexes(arr, fromIndex, loop), index;\n for (var i = 0, len = indexes.length; i < len; i++) {\n index = indexes[i];\n fn.call(arr, arr[index], index, arr);\n }\n return arr;\n}\n\nmodule.exports = iterateOverSparseArray;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/iterateOverSparseArray.js\n// module id = 54\n// module chunks = 0","'use strict';\n\nvar isArrayIndex = require('./isArrayIndex');\n\nfunction getSparseArrayIndexes(arr, fromIndex, loop, fromRight) {\n var indexes = [], i;\n for (i in arr) {\n if (isArrayIndex(i) && (loop || (fromRight ? i <= fromIndex : i >= fromIndex))) {\n indexes.push(+i);\n }\n }\n indexes.sort(function(a, b) {\n var aLoop = a > fromIndex;\n var bLoop = b > fromIndex;\n if (aLoop !== bLoop) {\n return aLoop ? -1 : 1;\n }\n return a - b;\n });\n return indexes;\n}\n\nmodule.exports = getSparseArrayIndexes;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/getSparseArrayIndexes.js\n// module id = 55\n// module chunks = 0","'use strict';\n\nfunction isArrayIndex(n) {\n return n >>> 0 == n && n != 0xFFFFFFFF;\n}\n\nmodule.exports = isArrayIndex;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/isArrayIndex.js\n// module id = 56\n// module chunks = 0","'use strict';\n\nfunction isDefined(o) {\n return o !== undefined;\n}\n\nmodule.exports = isDefined;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/isDefined.js\n// module id = 57\n// module chunks = 0","'use strict';\n\nvar CommonChars = require('../var/CommonChars');\n\nvar HALF_WIDTH_COMMA = CommonChars.HALF_WIDTH_COMMA;\n\nfunction commaSplit(str) {\n return str.split(HALF_WIDTH_COMMA);\n}\n\nmodule.exports = commaSplit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/commaSplit.js\n// module id = 58\n// module chunks = 0","'use strict';\n\nmodule.exports = {\n HALF_WIDTH_ZERO: 0x30,\n FULL_WIDTH_ZERO: 0xff10,\n HALF_WIDTH_PERIOD: '.',\n FULL_WIDTH_PERIOD: '.',\n HALF_WIDTH_COMMA: ',',\n OPEN_BRACE: '{',\n CLOSE_BRACE: '}'\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/CommonChars.js\n// module id = 59\n// module chunks = 0","'use strict';\n\nvar NATIVE_TYPES = require('./NATIVE_TYPES'),\n forEach = require('../internal/forEach'),\n isClass = require('../internal/isClass'),\n spaceSplit = require('../internal/spaceSplit'),\n isPlainObject = require('../internal/isPlainObject'),\n coreUtilityAliases = require('./coreUtilityAliases');\n\nvar classToString = coreUtilityAliases.classToString;\n\nvar isSerializable,\n isBoolean, isNumber, isString,\n isDate, isRegExp, isFunction,\n isArray, isSet, isMap, isError;\n\nfunction buildClassChecks() {\n\n var knownTypes = {};\n\n function addCoreTypes() {\n\n var names = spaceSplit(NATIVE_TYPES);\n\n isBoolean = buildPrimitiveClassCheck(names[0]);\n isNumber = buildPrimitiveClassCheck(names[1]);\n isString = buildPrimitiveClassCheck(names[2]);\n\n isDate = buildClassCheck(names[3]);\n isRegExp = buildClassCheck(names[4]);\n\n // Wanted to enhance performance here by using simply \"typeof\"\n // but Firefox has two major issues that make this impossible,\n // one fixed, the other not, so perform a full class check here.\n //\n // 1. Regexes can be typeof \"function\" in FF < 3\n // https://bugzilla.mozilla.org/show_bug.cgi?id=61911 (fixed)\n //\n // 2. HTMLEmbedElement and HTMLObjectElement are be typeof \"function\"\n // https://bugzilla.mozilla.org/show_bug.cgi?id=268945 (won't fix)\n isFunction = buildClassCheck(names[5]);\n\n\n isArray = Array.isArray || buildClassCheck(names[6]);\n isError = buildClassCheck(names[7]);\n\n isSet = buildClassCheck(names[8], typeof Set !== 'undefined' && Set);\n isMap = buildClassCheck(names[9], typeof Map !== 'undefined' && Map);\n\n // Add core types as known so that they can be checked by value below,\n // notably excluding Functions and adding Arguments and Error.\n addKnownType('Arguments');\n addKnownType(names[0]);\n addKnownType(names[1]);\n addKnownType(names[2]);\n addKnownType(names[3]);\n addKnownType(names[4]);\n addKnownType(names[6]);\n\n }\n\n function addArrayTypes() {\n var types = 'Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64';\n forEach(spaceSplit(types), function(str) {\n addKnownType(str + 'Array');\n });\n }\n\n function addKnownType(className) {\n var str = '[object '+ className +']';\n knownTypes[str] = true;\n }\n\n function isKnownType(className) {\n return knownTypes[className];\n }\n\n function buildClassCheck(className, globalObject) {\n if (globalObject && isClass(new globalObject, 'Object')) {\n return getConstructorClassCheck(globalObject);\n } else {\n return getToStringClassCheck(className);\n }\n }\n\n function getConstructorClassCheck(obj) {\n var ctorStr = String(obj);\n return function(obj) {\n return String(obj.constructor) === ctorStr;\n };\n }\n\n function getToStringClassCheck(className) {\n return function(obj, str) {\n // perf: Returning up front on instanceof appears to be slower.\n return isClass(obj, className, str);\n };\n }\n\n function buildPrimitiveClassCheck(className) {\n var type = className.toLowerCase();\n return function(obj) {\n var t = typeof obj;\n return t === type || t === 'object' && isClass(obj, className);\n };\n }\n\n addCoreTypes();\n addArrayTypes();\n\n isSerializable = function(obj, className) {\n // Only known objects can be serialized. This notably excludes functions,\n // host objects, Symbols (which are matched by reference), and instances\n // of classes. The latter can arguably be matched by value, but\n // distinguishing between these and host objects -- which should never be\n // compared by value -- is very tricky so not dealing with it here.\n className = className || classToString(obj);\n return isKnownType(className) || isPlainObject(obj, className);\n };\n\n}\n\nbuildClassChecks();\n\nmodule.exports = {\n isSerializable: isSerializable,\n isBoolean: isBoolean,\n isNumber: isNumber,\n isString: isString,\n isDate: isDate,\n isRegExp: isRegExp,\n isFunction: isFunction,\n isArray: isArray,\n isSet: isSet,\n isMap: isMap,\n isError: isError\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/classChecks.js\n// module id = 60\n// module chunks = 0","'use strict';\n\nmodule.exports = 'Boolean Number String Date RegExp Function Array Error Set Map';\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/NATIVE_TYPES.js\n// module id = 61\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar classToString = coreUtilityAliases.classToString;\n\nfunction isClass(obj, className, str) {\n if (!str) {\n str = classToString(obj);\n }\n return str === '[object '+ className +']';\n}\n\nmodule.exports = isClass;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/isClass.js\n// module id = 62\n// module chunks = 0","'use strict';\n\nfunction spaceSplit(str) {\n return str.split(' ');\n}\n\nmodule.exports = spaceSplit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/spaceSplit.js\n// module id = 63\n// module chunks = 0","'use strict';\n\nvar isClass = require('./isClass'),\n isObjectType = require('./isObjectType'),\n hasOwnEnumeratedProperties = require('./hasOwnEnumeratedProperties'),\n hasValidPlainObjectPrototype = require('./hasValidPlainObjectPrototype');\n\nfunction isPlainObject(obj, className) {\n return isObjectType(obj) &&\n isClass(obj, 'Object', className) &&\n hasValidPlainObjectPrototype(obj) &&\n hasOwnEnumeratedProperties(obj);\n}\n\nmodule.exports = isPlainObject;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/isPlainObject.js\n// module id = 64\n// module chunks = 0","'use strict';\n\nfunction isObjectType(obj, type) {\n return !!obj && (type || typeof obj) === 'object';\n}\n\nmodule.exports = isObjectType;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/isObjectType.js\n// module id = 65\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar hasOwn = coreUtilityAliases.hasOwn;\n\nfunction hasOwnEnumeratedProperties(obj) {\n // Plain objects are generally defined as having enumerated properties\n // all their own, however in early IE environments without defineProperty,\n // there may also be enumerated methods in the prototype chain, so check\n // for both of these cases.\n var objectProto = Object.prototype;\n for (var key in obj) {\n var val = obj[key];\n if (!hasOwn(obj, key) && val !== objectProto[key]) {\n return false;\n }\n }\n return true;\n}\n\nmodule.exports = hasOwnEnumeratedProperties;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/hasOwnEnumeratedProperties.js\n// module id = 66\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar hasOwn = coreUtilityAliases.hasOwn;\n\nfunction hasValidPlainObjectPrototype(obj) {\n var hasToString = 'toString' in obj;\n var hasConstructor = 'constructor' in obj;\n // An object created with Object.create(null) has no methods in the\n // prototype chain, so check if any are missing. The additional hasToString\n // check is for false positives on some host objects in old IE which have\n // toString but no constructor. If the object has an inherited constructor,\n // then check if it is Object (the \"isPrototypeOf\" tapdance here is a more\n // robust way of ensuring this if the global has been hijacked). Note that\n // accessing the constructor directly (without \"in\" or \"hasOwnProperty\")\n // will throw a permissions error in IE8 on cross-domain windows.\n return (!hasConstructor && !hasToString) ||\n (hasConstructor && !hasOwn(obj, 'constructor') &&\n hasOwn(obj.constructor.prototype, 'isPrototypeOf'));\n}\n\nmodule.exports = hasValidPlainObjectPrototype;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/hasValidPlainObjectPrototype.js\n// module id = 67\n// module chunks = 0","'use strict';\n\nfunction isUndefined(o) {\n return o === undefined;\n}\n\nmodule.exports = isUndefined;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/isUndefined.js\n// module id = 68\n// module chunks = 0","'use strict';\n\nmodule.exports = {\n abs: Math.abs,\n pow: Math.pow,\n min: Math.min,\n max: Math.max,\n ceil: Math.ceil,\n floor: Math.floor,\n round: Math.round\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/mathAliases.js\n// module id = 69\n// module chunks = 0","'use strict';\n\nfunction getOrdinalSuffix(num) {\n if (num >= 11 && num <= 13) {\n return 'th';\n } else {\n switch(num % 10) {\n case 1: return 'st';\n case 2: return 'nd';\n case 3: return 'rd';\n default: return 'th';\n }\n }\n}\n\nmodule.exports = getOrdinalSuffix;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/getOrdinalSuffix.js\n// module id = 70\n// module chunks = 0","'use strict';\n\nfunction getRegNonCapturing(src, opt) {\n if (src.length > 1) {\n src = '(?:' + src + ')';\n }\n if (opt) {\n src += '?';\n }\n return src;\n}\n\nmodule.exports = getRegNonCapturing;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getRegNonCapturing.js\n// module id = 71\n// module chunks = 0","'use strict';\n\nfunction getArrayWithOffset(arr, n, alternate, offset) {\n var val;\n if (alternate > 1) {\n val = arr[n + (alternate - 1) * offset];\n }\n return val || arr[n];\n}\n\nmodule.exports = getArrayWithOffset;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getArrayWithOffset.js\n// module id = 72\n// module chunks = 0","'use strict';\n\nvar DateUnits = require('../var/DateUnits'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n isUndefined = require('../../common/internal/isUndefined');\n\nvar YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\nfunction iterateOverDateUnits(fn, startIndex, endIndex) {\n endIndex = endIndex || 0;\n if (isUndefined(startIndex)) {\n startIndex = YEAR_INDEX;\n }\n for (var index = startIndex; index >= endIndex; index--) {\n if (fn(DateUnits[index], index) === false) {\n break;\n }\n }\n}\n\nmodule.exports = iterateOverDateUnits;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/iterateOverDateUnits.js\n// module id = 73\n// module chunks = 0","'use strict';\n\nvar getDaysInMonth = require('../internal/getDaysInMonth');\n\nvar DateUnits = [\n {\n name: 'millisecond',\n method: 'Milliseconds',\n multiplier: 1,\n start: 0,\n end: 999\n },\n {\n name: 'second',\n method: 'Seconds',\n multiplier: 1000,\n start: 0,\n end: 59\n },\n {\n name: 'minute',\n method: 'Minutes',\n multiplier: 60 * 1000,\n start: 0,\n end: 59\n },\n {\n name: 'hour',\n method: 'Hours',\n multiplier: 60 * 60 * 1000,\n start: 0,\n end: 23\n },\n {\n name: 'day',\n alias: 'date',\n method: 'Date',\n ambiguous: true,\n multiplier: 24 * 60 * 60 * 1000,\n start: 1,\n end: function(d) {\n return getDaysInMonth(d);\n }\n },\n {\n name: 'week',\n method: 'ISOWeek',\n ambiguous: true,\n multiplier: 7 * 24 * 60 * 60 * 1000\n },\n {\n name: 'month',\n method: 'Month',\n ambiguous: true,\n multiplier: 30.4375 * 24 * 60 * 60 * 1000,\n start: 0,\n end: 11\n },\n {\n name: 'year',\n method: 'FullYear',\n ambiguous: true,\n multiplier: 365.25 * 24 * 60 * 60 * 1000,\n start: 0\n }\n];\n\nmodule.exports = DateUnits;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/DateUnits.js\n// module id = 74\n// module chunks = 0","'use strict';\n\nvar getYear = require('./getYear'),\n getMonth = require('./getMonth'),\n callDateGet = require('../../common/internal/callDateGet');\n\nfunction getDaysInMonth(d) {\n return 32 - callDateGet(new Date(getYear(d), getMonth(d), 32), 'Date');\n}\n\nmodule.exports = getDaysInMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getDaysInMonth.js\n// module id = 75\n// module chunks = 0","'use strict';\n\nvar callDateGet = require('../../common/internal/callDateGet');\n\nfunction getYear(d) {\n return callDateGet(d, 'FullYear');\n}\n\nmodule.exports = getYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getYear.js\n// module id = 76\n// module chunks = 0","'use strict';\n\nvar _utc = require('../var/_utc');\n\nfunction callDateGet(d, method) {\n return d['get' + (_utc(d) ? 'UTC' : '') + method]();\n}\n\nmodule.exports = callDateGet;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/callDateGet.js\n// module id = 77\n// module chunks = 0","'use strict';\n\nvar privatePropertyAccessor = require('../internal/privatePropertyAccessor');\n\nmodule.exports = privatePropertyAccessor('utc');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/_utc.js\n// module id = 78\n// module chunks = 0","'use strict';\n\nvar PRIVATE_PROP_PREFIX = require('../var/PRIVATE_PROP_PREFIX'),\n coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar setProperty = coreUtilityAliases.setProperty;\n\nfunction privatePropertyAccessor(key) {\n var privateKey = PRIVATE_PROP_PREFIX + key;\n return function(obj, val) {\n if (arguments.length > 1) {\n setProperty(obj, privateKey, val);\n return obj;\n }\n return obj[privateKey];\n };\n}\n\nmodule.exports = privatePropertyAccessor;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/privatePropertyAccessor.js\n// module id = 79\n// module chunks = 0","'use strict';\n\nmodule.exports = '_sugar_';\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/PRIVATE_PROP_PREFIX.js\n// module id = 80\n// module chunks = 0","'use strict';\n\nvar callDateGet = require('../../common/internal/callDateGet');\n\nfunction getMonth(d) {\n return callDateGet(d, 'Month');\n}\n\nmodule.exports = getMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getMonth.js\n// module id = 81\n// module chunks = 0","'use strict';\n\nmodule.exports = {\n HOURS_INDEX: 3,\n DAY_INDEX: 4,\n WEEK_INDEX: 5,\n MONTH_INDEX: 6,\n YEAR_INDEX: 7\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/DateUnitIndexes.js\n// module id = 82\n// module chunks = 0","'use strict';\n\nvar map = require('../../common/internal/map'),\n escapeRegExp = require('../../common/internal/escapeRegExp');\n\nfunction arrayToRegAlternates(arr) {\n var joined = arr.join('');\n if (!arr || !arr.length) {\n return '';\n }\n if (joined.length === arr.length) {\n return '[' + joined + ']';\n }\n // map handles sparse arrays so no need to compact the array here.\n return map(arr, escapeRegExp).join('|');\n}\n\nmodule.exports = arrayToRegAlternates;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/arrayToRegAlternates.js\n// module id = 83\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../var/classChecks');\n\nvar isString = classChecks.isString;\n\nfunction escapeRegExp(str) {\n if (!isString(str)) str = String(str);\n return str.replace(/([\\\\\\/\\'*+?|()\\[\\]{}.^$-])/g,'\\\\$1');\n}\n\nmodule.exports = escapeRegExp;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/escapeRegExp.js\n// module id = 84\n// module chunks = 0","'use strict';\n\nvar CommonChars = require('./CommonChars'),\n chr = require('./chr'),\n allCharsReg = require('../internal/allCharsReg');\n\nvar HALF_WIDTH_ZERO = CommonChars.HALF_WIDTH_ZERO,\n FULL_WIDTH_ZERO = CommonChars.FULL_WIDTH_ZERO,\n HALF_WIDTH_PERIOD = CommonChars.HALF_WIDTH_PERIOD,\n FULL_WIDTH_PERIOD = CommonChars.FULL_WIDTH_PERIOD,\n HALF_WIDTH_COMMA = CommonChars.HALF_WIDTH_COMMA;\n\nvar fullWidthNumberReg, fullWidthNumberMap, fullWidthNumbers;\n\nfunction buildFullWidthNumber() {\n var fwp = FULL_WIDTH_PERIOD, hwp = HALF_WIDTH_PERIOD, hwc = HALF_WIDTH_COMMA, fwn = '';\n fullWidthNumberMap = {};\n for (var i = 0, digit; i <= 9; i++) {\n digit = chr(i + FULL_WIDTH_ZERO);\n fwn += digit;\n fullWidthNumberMap[digit] = chr(i + HALF_WIDTH_ZERO);\n }\n fullWidthNumberMap[hwc] = '';\n fullWidthNumberMap[fwp] = hwp;\n // Mapping this to itself to capture it easily\n // in stringToNumber to detect decimals later.\n fullWidthNumberMap[hwp] = hwp;\n fullWidthNumberReg = allCharsReg(fwn + fwp + hwc + hwp);\n fullWidthNumbers = fwn;\n}\n\nbuildFullWidthNumber();\n\nmodule.exports = {\n fullWidthNumberReg: fullWidthNumberReg,\n fullWidthNumberMap: fullWidthNumberMap,\n fullWidthNumbers: fullWidthNumbers\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/fullwidthNumberHelpers.js\n// module id = 85\n// module chunks = 0","'use strict';\n\nmodule.exports = String.fromCharCode;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/chr.js\n// module id = 86\n// module chunks = 0","'use strict';\n\nfunction allCharsReg(src) {\n return RegExp('[' + src + ']', 'g');\n}\n\nmodule.exports = allCharsReg;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/allCharsReg.js\n// module id = 87\n// module chunks = 0","'use strict';\n\nvar trunc = require('../../common/var/trunc'),\n withPrecision = require('../../common/internal/withPrecision'),\n getAdjustedUnit = require('./getAdjustedUnit');\n\nfunction getAdjustedUnitForNumber(ms) {\n return getAdjustedUnit(ms, function(unit) {\n return trunc(withPrecision(ms / unit.multiplier, 1));\n });\n}\n\nmodule.exports = getAdjustedUnitForNumber;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getAdjustedUnitForNumber.js\n// module id = 88\n// module chunks = 0","'use strict';\n\nvar mathAliases = require('./mathAliases');\n\nvar ceil = mathAliases.ceil,\n floor = mathAliases.floor;\n\nvar trunc = Math.trunc || function(n) {\n if (n === 0 || !isFinite(n)) return n;\n return n < 0 ? ceil(n) : floor(n);\n};\n\nmodule.exports = trunc;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/trunc.js\n// module id = 89\n// module chunks = 0","'use strict';\n\nvar mathAliases = require('../var/mathAliases');\n\nvar abs = mathAliases.abs,\n pow = mathAliases.pow,\n round = mathAliases.round;\n\nfunction withPrecision(val, precision, fn) {\n var multiplier = pow(10, abs(precision || 0));\n fn = fn || round;\n if (precision < 0) multiplier = 1 / multiplier;\n return fn(val * multiplier) / multiplier;\n}\n\nmodule.exports = withPrecision;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/withPrecision.js\n// module id = 90\n// module chunks = 0","'use strict';\n\nvar mathAliases = require('../../common/var/mathAliases'),\n iterateOverDateUnits = require('./iterateOverDateUnits');\n\nvar abs = mathAliases.abs;\n\nfunction getAdjustedUnit(ms, fn) {\n var unitIndex = 0, value = 0;\n iterateOverDateUnits(function(unit, i) {\n value = abs(fn(unit));\n if (value >= 1) {\n unitIndex = i;\n return false;\n }\n });\n return [value, unitIndex, ms];\n}\n\nmodule.exports = getAdjustedUnit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getAdjustedUnit.js\n// module id = 91\n// module chunks = 0","'use strict';\n\nvar LocalizedParsingTokens = require('../var/LocalizedParsingTokens'),\n getRegNonCapturing = require('./getRegNonCapturing');\n\nfunction getParsingTokenWithSuffix(field, src, suffix) {\n var token = LocalizedParsingTokens[field];\n if (token.requiresSuffix) {\n src = getRegNonCapturing(src + getRegNonCapturing(suffix));\n } else if (token.requiresSuffixOr) {\n src += getRegNonCapturing(token.requiresSuffixOr + '|' + suffix);\n } else {\n src += getRegNonCapturing(suffix, true);\n }\n return src;\n}\n\nmodule.exports = getParsingTokenWithSuffix;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getParsingTokenWithSuffix.js\n// module id = 92\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n createDate = require('./internal/createDate');\n\nrequire('./build/setDateChainableConstructorCall');\n\nSugar.Date.defineStatic({\n\n 'create': function(d, options) {\n return createDate(d, options);\n }\n\n});\n\nmodule.exports = Sugar.Date.create;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/create.js\n// module id = 93\n// module chunks = 0","'use strict';\n\nvar getExtendedDate = require('./getExtendedDate');\n\nfunction createDate(d, options, forceClone) {\n return getExtendedDate(null, d, options, forceClone).date;\n}\n\nmodule.exports = createDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/createDate.js\n// module id = 94\n// module chunks = 0","'use strict';\n\nvar MINUTES = require('../var/MINUTES'),\n ParsingTokens = require('../var/ParsingTokens'),\n LocaleHelpers = require('../var/LocaleHelpers'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n _utc = require('../../common/var/_utc'),\n trunc = require('../../common/var/trunc'),\n forEach = require('../../common/internal/forEach'),\n tzOffset = require('./tzOffset'),\n resetTime = require('./resetTime'),\n isDefined = require('../../common/internal/isDefined'),\n setWeekday = require('./setWeekday'),\n updateDate = require('./updateDate'),\n getNewDate = require('./getNewDate'),\n isUndefined = require('../../common/internal/isUndefined'),\n classChecks = require('../../common/var/classChecks'),\n advanceDate = require('./advanceDate'),\n simpleClone = require('../../common/internal/simpleClone'),\n isObjectType = require('../../common/internal/isObjectType'),\n moveToEndOfUnit = require('./moveToEndOfUnit'),\n deleteDateParam = require('./deleteDateParam'),\n coreUtilityAliases = require('../../common/var/coreUtilityAliases'),\n getParsingTokenValue = require('./getParsingTokenValue'),\n moveToBeginningOfUnit = require('./moveToBeginningOfUnit'),\n iterateOverDateParams = require('./iterateOverDateParams'),\n getYearFromAbbreviation = require('./getYearFromAbbreviation'),\n iterateOverHigherDateParams = require('./iterateOverHigherDateParams');\n\nvar isNumber = classChecks.isNumber,\n isString = classChecks.isString,\n isDate = classChecks.isDate,\n hasOwn = coreUtilityAliases.hasOwn,\n getOwn = coreUtilityAliases.getOwn,\n English = LocaleHelpers.English,\n localeManager = LocaleHelpers.localeManager,\n DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,\n YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\nfunction getExtendedDate(contextDate, d, opt, forceClone) {\n\n var date, set, loc, options, afterCallbacks, relative, weekdayDir;\n\n afterCallbacks = [];\n options = getDateOptions(opt);\n\n function getDateOptions(opt) {\n var options = isString(opt) ? { locale: opt } : opt || {};\n options.prefer = +!!getOwn(options, 'future') - +!!getOwn(options, 'past');\n return options;\n }\n\n function getFormatParams(match, dif) {\n var set = getOwn(options, 'params') || {};\n forEach(dif.to, function(field, i) {\n var str = match[i + 1], token, val;\n if (!str) return;\n if (field === 'yy' || field === 'y') {\n field = 'year';\n val = getYearFromAbbreviation(str, date, getOwn(options, 'prefer'));\n } else if (token = getOwn(ParsingTokens, field)) {\n field = token.param || field;\n val = getParsingTokenValue(token, str);\n } else {\n val = loc.getTokenValue(field, str);\n }\n set[field] = val;\n });\n return set;\n }\n\n // Clone date will set the utc flag, but it will\n // be overriden later, so set option flags instead.\n function cloneDateByFlag(d, clone) {\n if (_utc(d) && !isDefined(getOwn(options, 'fromUTC'))) {\n options.fromUTC = true;\n }\n if (_utc(d) && !isDefined(getOwn(options, 'setUTC'))) {\n options.setUTC = true;\n }\n if (clone) {\n d = new Date(d.getTime());\n }\n return d;\n }\n\n function afterDateSet(fn) {\n afterCallbacks.push(fn);\n }\n\n function fireCallbacks() {\n forEach(afterCallbacks, function(fn) {\n fn.call();\n });\n }\n\n function parseStringDate(str) {\n\n str = str.toLowerCase();\n\n // The act of getting the locale will initialize\n // if it is missing and add the required formats.\n loc = localeManager.get(getOwn(options, 'locale'));\n\n for (var i = 0, dif, match; dif = loc.compiledFormats[i]; i++) {\n match = str.match(dif.reg);\n if (match) {\n\n // Note that caching the format will modify the compiledFormats array\n // which is not a good idea to do inside its for loop, however we\n // know at this point that we have a matched format and that we will\n // break out below, so simpler to do it here.\n loc.cacheFormat(dif, i);\n\n set = getFormatParams(match, dif);\n\n if (isDefined(set.timestamp)) {\n str = set.timestamp;\n set = null;\n break;\n }\n\n if (isDefined(set.ampm)) {\n handleAmpm(set.ampm);\n }\n\n if (set.utc || isDefined(set.tzHour)) {\n handleTimezoneOffset(set.tzHour, set.tzMinute, set.tzSign);\n }\n\n if (isDefined(set.shift) && isUndefined(set.unit)) {\n // \"next january\", \"next monday\", etc\n handleUnitlessShift();\n }\n\n if (isDefined(set.num) && isUndefined(set.unit)) {\n // \"the second of January\", etc\n handleUnitlessNum(set.num);\n }\n\n if (set.midday) {\n // \"noon\" and \"midnight\"\n handleMidday(set.midday);\n }\n\n if (isDefined(set.day)) {\n // Relative day localizations such as \"today\" and \"tomorrow\".\n handleRelativeDay(set.day);\n }\n\n if (isDefined(set.unit)) {\n // \"3 days ago\", etc\n handleRelativeUnit(set.unit);\n }\n\n if (set.edge) {\n // \"the end of January\", etc\n handleEdge(set.edge, set);\n }\n\n if (set.yearSign) {\n set.year *= set.yearSign;\n }\n\n break;\n }\n }\n\n if (!set) {\n // Fall back to native parsing\n date = new Date(str);\n if (getOwn(options, 'fromUTC')) {\n // Falling back to system date here which cannot be parsed as UTC,\n // so if we're forcing UTC then simply add the offset.\n date.setTime(date.getTime() + (tzOffset(date) * MINUTES));\n }\n } else if (relative) {\n updateDate(date, set, false, 1);\n } else {\n if (_utc(date)) {\n // UTC times can traverse into other days or even months,\n // so preemtively reset the time here to prevent this.\n resetTime(date);\n }\n updateDate(date, set, true, 0, getOwn(options, 'prefer'), weekdayDir);\n }\n fireCallbacks();\n return date;\n }\n\n function handleAmpm(ampm) {\n if (ampm === 1 && set.hour < 12) {\n // If the time is 1pm-11pm advance the time by 12 hours.\n set.hour += 12;\n } else if (ampm === 0 && set.hour === 12) {\n // If it is 12:00am then set the hour to 0.\n set.hour = 0;\n }\n }\n\n function handleTimezoneOffset(tzHour, tzMinute, tzSign) {\n // Adjust for timezone offset\n _utc(date, true);\n var offset = (tzSign || 1) * ((tzHour || 0) * 60 + (tzMinute || 0));\n if (offset) {\n set.minute = (set.minute || 0) - offset;\n }\n }\n\n function handleUnitlessShift() {\n if (isDefined(set.month)) {\n // \"next January\"\n set.unit = YEAR_INDEX;\n } else if (isDefined(set.weekday)) {\n // \"next Monday\"\n set.unit = WEEK_INDEX;\n }\n }\n\n function handleUnitlessNum(num) {\n if (isDefined(set.weekday)) {\n // \"The second Tuesday of March\"\n setOrdinalWeekday(num);\n } else if (isDefined(set.month)) {\n // \"The second of March\"\n set.date = set.num;\n }\n }\n\n function handleMidday(hour) {\n set.hour = hour % 24;\n if (hour > 23) {\n // If the date has hours past 24, we need to prevent it from traversing\n // into a new day as that would make it being part of a new week in\n // ambiguous dates such as \"Monday\".\n afterDateSet(function() {\n advanceDate(date, 'date', trunc(hour / 24));\n });\n }\n }\n\n function handleRelativeDay() {\n resetTime(date);\n if (isUndefined(set.unit)) {\n set.unit = DAY_INDEX;\n set.num = set.day;\n delete set.day;\n }\n }\n\n function handleRelativeUnit(unitIndex) {\n var num = isDefined(set.num) ? set.num : 1;\n\n // If a weekday is defined, there are 3 possible formats being applied:\n //\n // 1. \"the day after monday\": unit is days\n // 2. \"next monday\": short for \"next week monday\", unit is weeks\n // 3. \"the 2nd monday of next month\": unit is months\n //\n // In the first case, we need to set the weekday up front, as the day is\n // relative to it. The second case also needs to be handled up front for\n // formats like \"next monday at midnight\" which will have its weekday reset\n // if not set up front. The last case will set up the params necessary to\n // shift the weekday and allow separateAbsoluteUnits below to handle setting\n // it after the date has been shifted.\n if(isDefined(set.weekday)) {\n if(unitIndex === MONTH_INDEX) {\n setOrdinalWeekday(num);\n num = 1;\n } else {\n updateDate(date, { weekday: set.weekday }, true);\n delete set.weekday;\n }\n }\n\n if (set.half) {\n // Allow localized \"half\" as a standalone colloquialism. Purposely avoiding\n // the locale number system to reduce complexity. The units \"month\" and\n // \"week\" are purposely excluded in the English date formats below, as\n // \"half a week\" and \"half a month\" are meaningless as exact dates.\n num *= set.half;\n }\n\n if (isDefined(set.shift)) {\n // Shift and unit, ie \"next month\", \"last week\", etc.\n num *= set.shift;\n } else if (set.sign) {\n // Unit and sign, ie \"months ago\", \"weeks from now\", etc.\n num *= set.sign;\n }\n\n if (isDefined(set.day)) {\n // \"the day after tomorrow\"\n num += set.day;\n delete set.day;\n }\n\n // Formats like \"the 15th of last month\" or \"6:30pm of next week\"\n // contain absolute units in addition to relative ones, so separate\n // them here, remove them from the params, and set up a callback to\n // set them after the relative ones have been set.\n separateAbsoluteUnits(unitIndex);\n\n // Finally shift the unit.\n set[English.units[unitIndex]] = num;\n relative = true;\n }\n\n function handleEdge(edge, params) {\n var edgeIndex = params.unit, weekdayOfMonth;\n if (!edgeIndex) {\n // If we have \"the end of January\", then we need to find the unit index.\n iterateOverHigherDateParams(params, function(unitName, val, unit, i) {\n if (unitName === 'weekday' && isDefined(params.month)) {\n // If both a month and weekday exist, then we have a format like\n // \"the last tuesday in November, 2012\", where the \"last\" is still\n // relative to the end of the month, so prevent the unit \"weekday\"\n // from taking over.\n return;\n }\n edgeIndex = i;\n });\n }\n if (edgeIndex === MONTH_INDEX && isDefined(params.weekday)) {\n // If a weekday in a month exists (as described above),\n // then set it up to be set after the date has been shifted.\n weekdayOfMonth = params.weekday;\n delete params.weekday;\n }\n afterDateSet(function() {\n var stopIndex;\n // \"edge\" values that are at the very edge are \"2\" so the beginning of the\n // year is -2 and the end of the year is 2. Conversely, the \"last day\" is\n // actually 00:00am so it is 1. -1 is reserved but unused for now.\n if (edge < 0) {\n moveToBeginningOfUnit(date, edgeIndex, getOwn(options, 'locale'));\n } else if (edge > 0) {\n if (edge === 1) {\n stopIndex = DAY_INDEX;\n moveToBeginningOfUnit(date, DAY_INDEX);\n }\n moveToEndOfUnit(date, edgeIndex, getOwn(options, 'locale'), stopIndex);\n }\n if (isDefined(weekdayOfMonth)) {\n setWeekday(date, weekdayOfMonth, -edge);\n resetTime(date);\n }\n });\n if (edgeIndex === MONTH_INDEX) {\n params.specificity = DAY_INDEX;\n } else {\n params.specificity = edgeIndex - 1;\n }\n }\n\n function setOrdinalWeekday(num) {\n // If we have \"the 2nd Tuesday of June\", then pass the \"weekdayDir\"\n // flag along to updateDate so that the date does not accidentally traverse\n // into the previous month. This needs to be independent of the \"prefer\"\n // flag because we are only ensuring that the weekday is in the future, not\n // the entire date.\n set.weekday = 7 * (num - 1) + set.weekday;\n set.date = 1;\n weekdayDir = 1;\n }\n\n function separateAbsoluteUnits(unitIndex) {\n var params;\n\n iterateOverDateParams(set, function(name, val, unit, i) {\n // If there is a time unit set that is more specific than\n // the matched unit we have a string like \"5:30am in 2 minutes\",\n // which is meaningless, so invalidate the date...\n if (i >= unitIndex) {\n date.setTime(NaN);\n return false;\n } else if (i < unitIndex) {\n // ...otherwise set the params to set the absolute date\n // as a callback after the relative date has been set.\n params = params || {};\n params[name] = val;\n deleteDateParam(set, name);\n }\n });\n if (params) {\n afterDateSet(function() {\n updateDate(date, params, true, false, getOwn(options, 'prefer'), weekdayDir);\n });\n if (set.edge) {\n // \"the end of March of next year\"\n handleEdge(set.edge, params);\n delete set.edge;\n }\n }\n }\n\n if (contextDate && d) {\n // If a context date is passed (\"get\" and \"unitsFromNow\"),\n // then use it as the starting point.\n date = cloneDateByFlag(contextDate, true);\n } else {\n date = getNewDate();\n }\n\n _utc(date, getOwn(options, 'fromUTC'));\n\n if (isString(d)) {\n date = parseStringDate(d);\n } else if (isDate(d)) {\n date = cloneDateByFlag(d, hasOwn(options, 'clone') || forceClone);\n } else if (isObjectType(d)) {\n set = simpleClone(d);\n updateDate(date, set, true);\n } else if (isNumber(d) || d === null) {\n date.setTime(d);\n }\n // A date created by parsing a string presumes that the format *itself* is\n // UTC, but not that the date, once created, should be manipulated as such. In\n // other words, if you are creating a date object from a server time\n // \"2012-11-15T12:00:00Z\", in the majority of cases you are using it to create\n // a date that will, after creation, be manipulated as local, so reset the utc\n // flag here unless \"setUTC\" is also set.\n _utc(date, !!getOwn(options, 'setUTC'));\n return {\n set: set,\n date: date\n };\n}\n\nmodule.exports = getExtendedDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getExtendedDate.js\n// module id = 95\n// module chunks = 0","'use strict';\n\nmodule.exports = 60 * 1000;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/MINUTES.js\n// module id = 96\n// module chunks = 0","'use strict';\n\nfunction tzOffset(d) {\n return d.getTimezoneOffset();\n}\n\nmodule.exports = tzOffset;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/tzOffset.js\n// module id = 97\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes'),\n setUnitAndLowerToEdge = require('./setUnitAndLowerToEdge');\n\nvar HOURS_INDEX = DateUnitIndexes.HOURS_INDEX;\n\nfunction resetTime(d) {\n return setUnitAndLowerToEdge(d, HOURS_INDEX);\n}\n\nmodule.exports = resetTime;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/resetTime.js\n// module id = 98\n// module chunks = 0","'use strict';\n\nvar isDefined = require('../../common/internal/isDefined'),\n classChecks = require('../../common/var/classChecks'),\n callDateSet = require('../../common/internal/callDateSet'),\n walkUnitDown = require('./walkUnitDown');\n\nvar isFunction = classChecks.isFunction;\n\nfunction setUnitAndLowerToEdge(d, startIndex, stopIndex, end) {\n walkUnitDown(startIndex, function(unit, i) {\n var val = end ? unit.end : unit.start;\n if (isFunction(val)) {\n val = val(d);\n }\n callDateSet(d, unit.method, val);\n return !isDefined(stopIndex) || i > stopIndex;\n });\n return d;\n}\n\nmodule.exports = setUnitAndLowerToEdge;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setUnitAndLowerToEdge.js\n// module id = 99\n// module chunks = 0","'use strict';\n\nvar _utc = require('../var/_utc'),\n callDateGet = require('./callDateGet');\n\nfunction callDateSet(d, method, value, safe) {\n // \"Safe\" denotes not setting the date if the value is the same as what is\n // currently set. In theory this should be a noop, however it will cause\n // timezone shifts when in the middle of a DST fallback. This is unavoidable\n // as the notation itself is ambiguous (i.e. there are two \"1:00ams\" on\n // November 1st, 2015 in northern hemisphere timezones that follow DST),\n // however when advancing or rewinding dates this can throw off calculations\n // so avoiding this unintentional shifting on an opt-in basis.\n if (safe && value === callDateGet(d, method, value)) {\n return;\n }\n d['set' + (_utc(d) ? 'UTC' : '') + method](value);\n}\n\nmodule.exports = callDateSet;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/callDateSet.js\n// module id = 100\n// module chunks = 0","'use strict';\n\nvar DateUnits = require('../var/DateUnits'),\n getLowerUnitIndex = require('./getLowerUnitIndex');\n\nfunction walkUnitDown(unitIndex, fn) {\n while (unitIndex >= 0) {\n if (fn(DateUnits[unitIndex], unitIndex) === false) {\n break;\n }\n unitIndex = getLowerUnitIndex(unitIndex);\n }\n}\n\nmodule.exports = walkUnitDown;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/walkUnitDown.js\n// module id = 101\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes');\n\nvar HOURS_INDEX = DateUnitIndexes.HOURS_INDEX,\n DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\nfunction getLowerUnitIndex(index) {\n if (index === MONTH_INDEX) {\n return DAY_INDEX;\n } else if (index === WEEK_INDEX) {\n return HOURS_INDEX;\n }\n return index - 1;\n}\n\nmodule.exports = getLowerUnitIndex;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getLowerUnitIndex.js\n// module id = 102\n// module chunks = 0","'use strict';\n\nvar setDate = require('./setDate'),\n getDate = require('./getDate'),\n getWeekday = require('./getWeekday'),\n classChecks = require('../../common/var/classChecks'),\n mathAliases = require('../../common/var/mathAliases');\n\nvar isNumber = classChecks.isNumber,\n abs = mathAliases.abs;\n\nfunction setWeekday(d, dow, dir) {\n if (!isNumber(dow)) return;\n var currentWeekday = getWeekday(d);\n if (dir) {\n // Allow a \"direction\" parameter to determine whether a weekday can\n // be set beyond the current weekday in either direction.\n var ndir = dir > 0 ? 1 : -1;\n var offset = dow % 7 - currentWeekday;\n if (offset && offset / abs(offset) !== ndir) {\n dow += 7 * ndir;\n }\n }\n setDate(d, getDate(d) + dow - currentWeekday);\n return d.getTime();\n}\n\nmodule.exports = setWeekday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setWeekday.js\n// module id = 103\n// module chunks = 0","'use strict';\n\nvar callDateSet = require('../../common/internal/callDateSet');\n\nfunction setDate(d, val) {\n callDateSet(d, 'Date', val);\n}\n\nmodule.exports = setDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setDate.js\n// module id = 104\n// module chunks = 0","'use strict';\n\nvar callDateGet = require('../../common/internal/callDateGet');\n\nfunction getDate(d) {\n return callDateGet(d, 'Date');\n}\n\nmodule.exports = getDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getDate.js\n// module id = 105\n// module chunks = 0","'use strict';\n\nvar callDateGet = require('../../common/internal/callDateGet');\n\nfunction getWeekday(d) {\n return callDateGet(d, 'Day');\n}\n\nmodule.exports = getWeekday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getWeekday.js\n// module id = 106\n// module chunks = 0","'use strict';\n\nvar DateUnits = require('../var/DateUnits'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n trunc = require('../../common/var/trunc'),\n setDate = require('./setDate'),\n getDate = require('./getDate'),\n getMonth = require('./getMonth'),\n getNewDate = require('./getNewDate'),\n setWeekday = require('./setWeekday'),\n mathAliases = require('../../common/var/mathAliases'),\n callDateGet = require('../../common/internal/callDateGet'),\n classChecks = require('../../common/var/classChecks'),\n resetLowerUnits = require('./resetLowerUnits'),\n getLowerUnitIndex = require('./getLowerUnitIndex'),\n getHigherUnitIndex = require('./getHigherUnitIndex'),\n callDateSetWithWeek = require('./callDateSetWithWeek'),\n iterateOverDateParams = require('./iterateOverDateParams');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,\n YEAR_INDEX = DateUnitIndexes.YEAR_INDEX,\n round = mathAliases.round,\n isNumber = classChecks.isNumber;\n\nfunction updateDate(d, params, reset, advance, prefer, weekdayDir) {\n var upperUnitIndex;\n\n function setUpperUnit(unitName, unitIndex) {\n if (prefer && !upperUnitIndex) {\n if (unitName === 'weekday') {\n upperUnitIndex = WEEK_INDEX;\n } else {\n upperUnitIndex = getHigherUnitIndex(unitIndex);\n }\n }\n }\n\n function setSpecificity(unitIndex) {\n // Other functions may preemptively set the specificity before arriving\n // here so concede to them if they have already set more specific units.\n if (unitIndex > params.specificity) {\n return;\n }\n params.specificity = unitIndex;\n }\n\n function canDisambiguate() {\n if (!upperUnitIndex || upperUnitIndex > YEAR_INDEX) {\n return;\n }\n switch(prefer) {\n case -1: return d > getNewDate();\n case 1: return d < getNewDate();\n }\n }\n\n function disambiguateHigherUnit() {\n var unit = DateUnits[upperUnitIndex];\n advance = prefer;\n setUnit(unit.name, 1, unit, upperUnitIndex);\n }\n\n function handleFraction(unit, unitIndex, fraction) {\n if (unitIndex) {\n var lowerUnit = DateUnits[getLowerUnitIndex(unitIndex)];\n var val = round(unit.multiplier / lowerUnit.multiplier * fraction);\n params[lowerUnit.name] = val;\n }\n }\n\n function monthHasShifted(d, targetMonth) {\n if (targetMonth < 0) {\n targetMonth = targetMonth % 12 + 12;\n }\n return targetMonth % 12 !== getMonth(d);\n }\n\n function setUnit(unitName, value, unit, unitIndex) {\n var method = unit.method, checkMonth, fraction;\n\n setUpperUnit(unitName, unitIndex);\n setSpecificity(unitIndex);\n\n fraction = value % 1;\n if (fraction) {\n handleFraction(unit, unitIndex, fraction);\n value = trunc(value);\n }\n\n if (unitName === 'weekday') {\n if (!advance) {\n // Weekdays are always considered absolute units so simply set them\n // here even if it is an \"advance\" operation. This is to help avoid\n // ambiguous meanings in \"advance\" as well as to neatly allow formats\n // like \"Wednesday of next week\" without more complex logic.\n setWeekday(d, value, weekdayDir);\n }\n return;\n }\n checkMonth = unitIndex === MONTH_INDEX && getDate(d) > 28;\n\n // If we are advancing or rewinding, then we need we need to set the\n // absolute time if the unit is \"hours\" or less. This is due to the fact\n // that setting by method is ambiguous during DST shifts. For example,\n // 1:00am on November 1st 2015 occurs twice in North American timezones\n // with DST, the second time being after the clocks are rolled back at\n // 2:00am. When springing forward this is automatically handled as there\n // is no 2:00am so the date automatically jumps to 3:00am. However, when\n // rolling back, setHours(2) will always choose the first \"2am\" even if\n // the date is currently set to the second, causing unintended jumps.\n // This ambiguity is unavoidable when setting dates as the notation is\n // ambiguous. However when advancing, we clearly want the resulting date\n // to be an acutal hour ahead, which can only be accomplished by setting\n // the absolute time. Conversely, any unit higher than \"hours\" MUST use\n // the internal set methods, as they are ambiguous as absolute units of\n // time. Years may be 365 or 366 days depending on leap years, months are\n // all over the place, and even days may be 23-25 hours depending on DST\n // shifts. Finally, note that the kind of jumping described above will\n // occur when calling ANY \"set\" method on the date and will occur even if\n // the value being set is identical to the one currently set (i.e.\n // setHours(2) on a date at 2am may not be a noop). This is precarious,\n // so avoiding this situation in callDateSet by checking up front that\n // the value is not the same before setting.\n if (advance && !unit.ambiguous) {\n d.setTime(d.getTime() + (value * advance * unit.multiplier));\n return;\n } else if (advance) {\n if (unitIndex === WEEK_INDEX) {\n value *= 7;\n method = DateUnits[DAY_INDEX].method;\n }\n value = (value * advance) + callDateGet(d, method);\n }\n callDateSetWithWeek(d, method, value, advance);\n if (checkMonth && monthHasShifted(d, value)) {\n // As we are setting the units in reverse order, there is a chance that\n // our date may accidentally traverse into a new month, such as setting\n // { month: 1, date 15 } on January 31st. Check for this here and reset\n // the date to the last day of the previous month if this has happened.\n setDate(d, 0);\n }\n }\n\n if (isNumber(params) && advance) {\n // If param is a number and advancing, the number is in milliseconds.\n params = { millisecond: params };\n } else if (isNumber(params)) {\n // Otherwise just set the timestamp and return.\n d.setTime(params);\n return d;\n }\n\n iterateOverDateParams(params, setUnit);\n\n if (reset && params.specificity) {\n resetLowerUnits(d, params.specificity);\n }\n\n // If past or future is preferred, then the process of \"disambiguation\" will\n // ensure that an ambiguous time/date (\"4pm\", \"thursday\", \"June\", etc.) will\n // be in the past or future. Weeks are only considered ambiguous if there is\n // a weekday, i.e. \"thursday\" is an ambiguous week, but \"the 4th\" is an\n // ambiguous month.\n if (canDisambiguate()) {\n disambiguateHigherUnit();\n }\n return d;\n}\n\nmodule.exports = updateDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/updateDate.js\n// module id = 107\n// module chunks = 0","'use strict';\n\nvar _dateOptions = require('../var/_dateOptions');\n\nfunction getNewDate() {\n return _dateOptions('newDateInternal')();\n}\n\nmodule.exports = getNewDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getNewDate.js\n// module id = 108\n// module chunks = 0","'use strict';\n\nvar DATE_OPTIONS = require('./DATE_OPTIONS'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n defineOptionsAccessor = require('../../common/internal/defineOptionsAccessor');\n\nvar sugarDate = namespaceAliases.sugarDate;\n\nmodule.exports = defineOptionsAccessor(sugarDate, DATE_OPTIONS);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/_dateOptions.js\n// module id = 109\n// module chunks = 0","'use strict';\n\nvar defaultNewDate = require('../internal/defaultNewDate');\n\nvar DATE_OPTIONS = {\n 'newDateInternal': defaultNewDate\n};\n\nmodule.exports = DATE_OPTIONS;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/DATE_OPTIONS.js\n// module id = 110\n// module chunks = 0","'use strict';\n\nfunction defaultNewDate() {\n return new Date;\n}\n\nmodule.exports = defaultNewDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/defaultNewDate.js\n// module id = 111\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nmodule.exports = {\n sugarObject: Sugar.Object,\n sugarArray: Sugar.Array,\n sugarDate: Sugar.Date,\n sugarString: Sugar.String,\n sugarNumber: Sugar.Number,\n sugarFunction: Sugar.Function,\n sugarRegExp: Sugar.RegExp\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/namespaceAliases.js\n// module id = 112\n// module chunks = 0","'use strict';\n\nvar simpleClone = require('./simpleClone'),\n defineAccessor = require('./defineAccessor');\n\nfunction defineOptionsAccessor(namespace, defaults) {\n var obj = simpleClone(defaults);\n\n function getOption(name) {\n return obj[name];\n }\n\n function setOption(name, val) {\n if (val === null) {\n val = defaults[name];\n }\n obj[name] = val;\n }\n\n defineAccessor(namespace, 'getOption', getOption);\n defineAccessor(namespace, 'setOption', setOption);\n return getOption;\n}\n\nmodule.exports = defineOptionsAccessor;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/defineOptionsAccessor.js\n// module id = 113\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar setProperty = coreUtilityAliases.setProperty;\n\nfunction defineAccessor(namespace, name, fn) {\n setProperty(namespace, name, fn);\n}\n\nmodule.exports = defineAccessor;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/defineAccessor.js\n// module id = 114\n// module chunks = 0","'use strict';\n\nvar getLowerUnitIndex = require('./getLowerUnitIndex'),\n setUnitAndLowerToEdge = require('./setUnitAndLowerToEdge');\n\nfunction resetLowerUnits(d, unitIndex) {\n return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex));\n}\n\nmodule.exports = resetLowerUnits;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/resetLowerUnits.js\n// module id = 115\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\nfunction getHigherUnitIndex(index) {\n return index === DAY_INDEX ? MONTH_INDEX : index + 1;\n}\n\nmodule.exports = getHigherUnitIndex;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getHigherUnitIndex.js\n// module id = 116\n// module chunks = 0","'use strict';\n\nvar callDateSet = require('../../common/internal/callDateSet'),\n setISOWeekNumber = require('./setISOWeekNumber');\n\nfunction callDateSetWithWeek(d, method, value, safe) {\n if (method === 'ISOWeek') {\n setISOWeekNumber(d, value);\n } else {\n callDateSet(d, method, value, safe);\n }\n}\n\nmodule.exports = callDateSetWithWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/callDateSetWithWeek.js\n// module id = 117\n// module chunks = 0","'use strict';\n\nvar ISODefaults = require('../var/ISODefaults'),\n getDate = require('./getDate'),\n setDate = require('./setDate'),\n setYear = require('./setYear'),\n getYear = require('./getYear'),\n getMonth = require('./getMonth'),\n setMonth = require('./setMonth'),\n cloneDate = require('./cloneDate'),\n getWeekday = require('./getWeekday'),\n setWeekday = require('./setWeekday'),\n classChecks = require('../../common/var/classChecks'),\n moveToFirstDayOfWeekYear = require('./moveToFirstDayOfWeekYear');\n\nvar isNumber = classChecks.isNumber,\n ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,\n ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR;\n\nfunction setISOWeekNumber(d, num) {\n if (isNumber(num)) {\n // Intentionally avoiding updateDate here to prevent circular dependencies.\n var isoWeek = cloneDate(d), dow = getWeekday(d);\n moveToFirstDayOfWeekYear(isoWeek, ISO_FIRST_DAY_OF_WEEK, ISO_FIRST_DAY_OF_WEEK_YEAR);\n setDate(isoWeek, getDate(isoWeek) + 7 * (num - 1));\n setYear(d, getYear(isoWeek));\n setMonth(d, getMonth(isoWeek));\n setDate(d, getDate(isoWeek));\n setWeekday(d, dow || 7);\n }\n return d.getTime();\n}\n\nmodule.exports = setISOWeekNumber;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setISOWeekNumber.js\n// module id = 118\n// module chunks = 0","'use strict';\n\nvar callDateSet = require('../../common/internal/callDateSet');\n\nfunction setYear(d, val) {\n callDateSet(d, 'FullYear', val);\n}\n\nmodule.exports = setYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setYear.js\n// module id = 119\n// module chunks = 0","'use strict';\n\nvar callDateSet = require('../../common/internal/callDateSet');\n\nfunction setMonth(d, val) {\n callDateSet(d, 'Month', val);\n}\n\nmodule.exports = setMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setMonth.js\n// module id = 120\n// module chunks = 0","'use strict';\n\nvar _utc = require('../../common/var/_utc');\n\nfunction cloneDate(d) {\n // Rhino environments have a bug where new Date(d) truncates\n // milliseconds so need to call getTime() here.\n var clone = new Date(d.getTime());\n _utc(clone, !!_utc(d));\n return clone;\n}\n\nmodule.exports = cloneDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/cloneDate.js\n// module id = 121\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes'),\n setDate = require('./setDate'),\n setUnitAndLowerToEdge = require('./setUnitAndLowerToEdge'),\n moveToBeginningOfWeek = require('./moveToBeginningOfWeek');\n\nvar MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\nfunction moveToFirstDayOfWeekYear(d, firstDayOfWeek, firstDayOfWeekYear) {\n setUnitAndLowerToEdge(d, MONTH_INDEX);\n setDate(d, firstDayOfWeekYear);\n moveToBeginningOfWeek(d, firstDayOfWeek);\n}\n\nmodule.exports = moveToFirstDayOfWeekYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/moveToFirstDayOfWeekYear.js\n// module id = 122\n// module chunks = 0","'use strict';\n\nvar setWeekday = require('./setWeekday'),\n getWeekday = require('./getWeekday'),\n mathAliases = require('../../common/var/mathAliases');\n\nvar floor = mathAliases.floor;\n\nfunction moveToBeginningOfWeek(d, firstDayOfWeek) {\n setWeekday(d, floor((getWeekday(d) - firstDayOfWeek) / 7) * 7 + firstDayOfWeek);\n return d;\n}\n\nmodule.exports = moveToBeginningOfWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/moveToBeginningOfWeek.js\n// module id = 123\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes'),\n isDefined = require('../../common/internal/isDefined'),\n getDateParam = require('./getDateParam'),\n iterateOverDateUnits = require('./iterateOverDateUnits');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\nfunction iterateOverDateParams(params, fn, startIndex, endIndex) {\n\n function run(name, unit, i) {\n var val = getDateParam(params, name);\n if (isDefined(val)) {\n fn(name, val, unit, i);\n }\n }\n\n iterateOverDateUnits(function (unit, i) {\n var result = run(unit.name, unit, i);\n if (result !== false && i === DAY_INDEX) {\n // Check for \"weekday\", which has a distinct meaning\n // in the context of setting a date, but has the same\n // meaning as \"day\" as a unit of time.\n result = run('weekday', unit, i);\n }\n return result;\n }, startIndex, endIndex);\n\n}\n\nmodule.exports = iterateOverDateParams;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/iterateOverDateParams.js\n// module id = 124\n// module chunks = 0","'use strict';\n\nvar getDateParamKey = require('./getDateParamKey'),\n coreUtilityAliases = require('../../common/var/coreUtilityAliases');\n\nvar getOwn = coreUtilityAliases.getOwn;\n\nfunction getDateParam(params, key) {\n return getOwn(params, getDateParamKey(params, key));\n}\n\nmodule.exports = getDateParam;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getDateParam.js\n// module id = 125\n// module chunks = 0","'use strict';\n\nvar getOwnKey = require('../../common/internal/getOwnKey');\n\nfunction getDateParamKey(params, key) {\n return getOwnKey(params, key) ||\n getOwnKey(params, key + 's') ||\n (key === 'day' && getOwnKey(params, 'date'));\n}\n\nmodule.exports = getDateParamKey;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getDateParamKey.js\n// module id = 126\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar hasOwn = coreUtilityAliases.hasOwn;\n\nfunction getOwnKey(obj, key) {\n if (hasOwn(obj, key)) {\n return key;\n }\n}\n\nmodule.exports = getOwnKey;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/getOwnKey.js\n// module id = 127\n// module chunks = 0","'use strict';\n\nvar updateDate = require('./updateDate');\n\nfunction advanceDate(d, unit, num, reset) {\n var set = {};\n set[unit] = num;\n return updateDate(d, set, reset, 1);\n}\n\nmodule.exports = advanceDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/advanceDate.js\n// module id = 128\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n moveToEndOfWeek = require('./moveToEndOfWeek'),\n getLowerUnitIndex = require('./getLowerUnitIndex'),\n setUnitAndLowerToEdge = require('./setUnitAndLowerToEdge');\n\nvar WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n localeManager = LocaleHelpers.localeManager;\n\nfunction moveToEndOfUnit(d, unitIndex, localeCode, stopIndex) {\n if (unitIndex === WEEK_INDEX) {\n moveToEndOfWeek(d, localeManager.get(localeCode).getFirstDayOfWeek());\n }\n return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex), stopIndex, true);\n}\n\nmodule.exports = moveToEndOfUnit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/moveToEndOfUnit.js\n// module id = 129\n// module chunks = 0","'use strict';\n\nvar setWeekday = require('./setWeekday'),\n getWeekday = require('./getWeekday'),\n mathAliases = require('../../common/var/mathAliases');\n\nvar ceil = mathAliases.ceil;\n\nfunction moveToEndOfWeek(d, firstDayOfWeek) {\n var target = firstDayOfWeek - 1;\n setWeekday(d, ceil((getWeekday(d) - target) / 7) * 7 + target);\n return d;\n}\n\nmodule.exports = moveToEndOfWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/moveToEndOfWeek.js\n// module id = 130\n// module chunks = 0","'use strict';\n\nvar getDateParamKey = require('./getDateParamKey');\n\nfunction deleteDateParam(params, key) {\n delete params[getDateParamKey(params, key)];\n}\n\nmodule.exports = deleteDateParam;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/deleteDateParam.js\n// module id = 131\n// module chunks = 0","'use strict';\n\nfunction getParsingTokenValue(token, str) {\n var val;\n if (token.val) {\n val = token.val;\n } else if (token.sign) {\n val = str === '+' ? 1 : -1;\n } else if (token.bool) {\n val = !!val;\n } else {\n val = +str.replace(/,/, '.');\n }\n if (token.param === 'month') {\n val -= 1;\n }\n return val;\n}\n\nmodule.exports = getParsingTokenValue;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getParsingTokenValue.js\n// module id = 132\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n getLowerUnitIndex = require('./getLowerUnitIndex'),\n moveToBeginningOfWeek = require('./moveToBeginningOfWeek'),\n setUnitAndLowerToEdge = require('./setUnitAndLowerToEdge');\n\nvar WEEK_INDEX = DateUnitIndexes.WEEK_INDEX,\n localeManager = LocaleHelpers.localeManager;\n\nfunction moveToBeginningOfUnit(d, unitIndex, localeCode) {\n if (unitIndex === WEEK_INDEX) {\n moveToBeginningOfWeek(d, localeManager.get(localeCode).getFirstDayOfWeek());\n }\n return setUnitAndLowerToEdge(d, getLowerUnitIndex(unitIndex));\n}\n\nmodule.exports = moveToBeginningOfUnit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/moveToBeginningOfUnit.js\n// module id = 133\n// module chunks = 0","'use strict';\n\nvar getYear = require('./getYear'),\n mathAliases = require('../../common/var/mathAliases');\n\nvar abs = mathAliases.abs;\n\nfunction getYearFromAbbreviation(str, d, prefer) {\n // Following IETF here, adding 1900 or 2000 depending on the last two digits.\n // Note that this makes no accordance for what should happen after 2050, but\n // intentionally ignoring this for now. https://www.ietf.org/rfc/rfc2822.txt\n var val = +str, delta;\n val += val < 50 ? 2000 : 1900;\n if (prefer) {\n delta = val - getYear(d);\n if (delta / abs(delta) !== prefer) {\n val += prefer * 100;\n }\n }\n return val;\n}\n\nmodule.exports = getYearFromAbbreviation;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getYearFromAbbreviation.js\n// module id = 134\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes'),\n iterateOverDateParams = require('./iterateOverDateParams');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX,\n YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\nfunction iterateOverHigherDateParams(params, fn) {\n iterateOverDateParams(params, fn, YEAR_INDEX, DAY_INDEX);\n}\n\nmodule.exports = iterateOverHigherDateParams;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/iterateOverHigherDateParams.js\n// module id = 135\n// module chunks = 0","'use strict';\n\nvar setDateChainableConstructor = require('../internal/setDateChainableConstructor');\n\nsetDateChainableConstructor();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/build/setDateChainableConstructorCall.js\n// module id = 136\n// module chunks = 0","'use strict';\n\nvar createDate = require('./createDate'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n setChainableConstructor = require('../../common/internal/setChainableConstructor');\n\nvar sugarDate = namespaceAliases.sugarDate;\n\nfunction setDateChainableConstructor() {\n setChainableConstructor(sugarDate, createDate);\n}\n\nmodule.exports = setDateChainableConstructor;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/setDateChainableConstructor.js\n// module id = 137\n// module chunks = 0","'use strict';\n\nfunction setChainableConstructor(sugarNamespace, createFn) {\n sugarNamespace.prototype.constructor = function() {\n return createFn.apply(this, arguments);\n };\n}\n\nmodule.exports = setChainableConstructor;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/setChainableConstructor.js\n// module id = 138\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('./var/LocaleHelpers'),\n getKeys = require('../common/internal/getKeys');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Date.defineStatic({\n\n 'getAllLocaleCodes': function() {\n return getKeys(localeManager.getAll());\n }\n\n});\n\nmodule.exports = Sugar.Date.getAllLocaleCodes;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getAllLocaleCodes.js\n// module id = 139\n// module chunks = 0","'use strict';\n\nfunction getKeys(obj) {\n return Object.keys(obj);\n}\n\nmodule.exports = getKeys;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/getKeys.js\n// module id = 140\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('./var/LocaleHelpers');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Date.defineStatic({\n\n 'getAllLocales': function() {\n return localeManager.getAll();\n }\n\n});\n\nmodule.exports = Sugar.Date.getAllLocales;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getAllLocales.js\n// module id = 141\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('./var/LocaleHelpers');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Date.defineStatic({\n\n 'getLocale': function(code) {\n return localeManager.get(code, !code);\n }\n\n});\n\nmodule.exports = Sugar.Date.getLocale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getLocale.js\n// module id = 142\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('./var/LocaleHelpers');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Date.defineStatic({\n\n 'removeLocale': function(code) {\n return localeManager.remove(code);\n }\n\n});\n\nmodule.exports = Sugar.Date.removeLocale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/removeLocale.js\n// module id = 143\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('./var/LocaleHelpers');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Date.defineStatic({\n\n 'setLocale': function(code) {\n return localeManager.set(code);\n }\n\n});\n\nmodule.exports = Sugar.Date.setLocale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/setLocale.js\n// module id = 144\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.day;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/day.js\n// module id = 145\n// module chunks = 0","'use strict';\n\nvar buildNumberUnitMethods = require('../internal/buildNumberUnitMethods');\n\nbuildNumberUnitMethods();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/build/buildNumberUnitMethodsCall.js\n// module id = 146\n// module chunks = 0","'use strict';\n\nvar DateUnits = require('../var/DateUnits'),\n createDate = require('./createDate'),\n mathAliases = require('../../common/var/mathAliases'),\n advanceDate = require('./advanceDate'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n defineInstanceSimilar = require('../../common/internal/defineInstanceSimilar');\n\nvar sugarNumber = namespaceAliases.sugarNumber,\n round = mathAliases.round;\n\nfunction buildNumberUnitMethods() {\n defineInstanceSimilar(sugarNumber, DateUnits, function(methods, unit) {\n var name = unit.name, base, after, before;\n base = function(n) {\n return round(n * unit.multiplier);\n };\n after = function(n, d, options) {\n return advanceDate(createDate(d, options, true), name, n);\n };\n before = function(n, d, options) {\n return advanceDate(createDate(d, options, true), name, -n);\n };\n methods[name] = base;\n methods[name + 's'] = base;\n methods[name + 'Before'] = before;\n methods[name + 'sBefore'] = before;\n methods[name + 'Ago'] = before;\n methods[name + 'sAgo'] = before;\n methods[name + 'After'] = after;\n methods[name + 'sAfter'] = after;\n methods[name + 'FromNow'] = after;\n methods[name + 'sFromNow'] = after;\n });\n}\n\nmodule.exports = buildNumberUnitMethods;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/buildNumberUnitMethods.js\n// module id = 147\n// module chunks = 0","'use strict';\n\nvar methodDefineAliases = require('../var/methodDefineAliases'),\n collectSimilarMethods = require('./collectSimilarMethods');\n\nvar defineInstance = methodDefineAliases.defineInstance;\n\nfunction defineInstanceSimilar(sugarNamespace, set, fn, flags) {\n defineInstance(sugarNamespace, collectSimilarMethods(set, fn), flags);\n}\n\nmodule.exports = defineInstanceSimilar;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/defineInstanceSimilar.js\n// module id = 148\n// module chunks = 0","'use strict';\n\nvar wrapNamespace = require('../internal/wrapNamespace');\n\nmodule.exports = {\n alias: wrapNamespace('alias'),\n defineStatic: wrapNamespace('defineStatic'),\n defineInstance: wrapNamespace('defineInstance'),\n defineStaticPolyfill: wrapNamespace('defineStaticPolyfill'),\n defineInstancePolyfill: wrapNamespace('defineInstancePolyfill'),\n defineInstanceAndStatic: wrapNamespace('defineInstanceAndStatic'),\n defineInstanceWithArguments: wrapNamespace('defineInstanceWithArguments')\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/methodDefineAliases.js\n// module id = 149\n// module chunks = 0","'use strict';\n\nfunction wrapNamespace(method) {\n return function(sugarNamespace, arg1, arg2) {\n sugarNamespace[method](arg1, arg2);\n };\n}\n\nmodule.exports = wrapNamespace;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/wrapNamespace.js\n// module id = 150\n// module chunks = 0","'use strict';\n\nvar forEach = require('./forEach'),\n spaceSplit = require('./spaceSplit'),\n classChecks = require('../var/classChecks');\n\nvar isString = classChecks.isString;\n\nfunction collectSimilarMethods(set, fn) {\n var methods = {};\n if (isString(set)) {\n set = spaceSplit(set);\n }\n forEach(set, function(el, i) {\n fn(methods, el, i);\n });\n return methods;\n}\n\nmodule.exports = collectSimilarMethods;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/collectSimilarMethods.js\n// module id = 151\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.dayAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/dayAfter.js\n// module id = 152\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.dayAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/dayAgo.js\n// module id = 153\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.dayBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/dayBefore.js\n// module id = 154\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.dayFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/dayFromNow.js\n// module id = 155\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.days;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/days.js\n// module id = 156\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.daysAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/daysAfter.js\n// module id = 157\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.daysAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/daysAgo.js\n// module id = 158\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.daysBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/daysBefore.js\n// module id = 159\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.daysFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/daysFromNow.js\n// module id = 160\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n LocaleHelpers = require('../date/var/LocaleHelpers');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nSugar.Number.defineInstance({\n\n 'duration': function(n, localeCode) {\n return localeManager.get(localeCode).getDuration(n);\n }\n\n});\n\nmodule.exports = Sugar.Number.duration;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/duration.js\n// module id = 161\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hour;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hour.js\n// module id = 162\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hourAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hourAfter.js\n// module id = 163\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hourAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hourAgo.js\n// module id = 164\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hourBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hourBefore.js\n// module id = 165\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hourFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hourFromNow.js\n// module id = 166\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hours;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hours.js\n// module id = 167\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hoursAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hoursAfter.js\n// module id = 168\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hoursAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hoursAgo.js\n// module id = 169\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hoursBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hoursBefore.js\n// module id = 170\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.hoursFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/hoursFromNow.js\n// module id = 171\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecond;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecond.js\n// module id = 172\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondAfter.js\n// module id = 173\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondAgo.js\n// module id = 174\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondBefore.js\n// module id = 175\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondFromNow.js\n// module id = 176\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.milliseconds;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/milliseconds.js\n// module id = 177\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondsAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondsAfter.js\n// module id = 178\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondsAgo.js\n// module id = 179\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondsBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondsBefore.js\n// module id = 180\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.millisecondsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/millisecondsFromNow.js\n// module id = 181\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minute;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minute.js\n// module id = 182\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minuteAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minuteAfter.js\n// module id = 183\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minuteAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minuteAgo.js\n// module id = 184\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minuteBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minuteBefore.js\n// module id = 185\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minuteFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minuteFromNow.js\n// module id = 186\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minutes;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minutes.js\n// module id = 187\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minutesAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minutesAfter.js\n// module id = 188\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minutesAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minutesAgo.js\n// module id = 189\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minutesBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minutesBefore.js\n// module id = 190\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.minutesFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/minutesFromNow.js\n// module id = 191\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.month;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/month.js\n// module id = 192\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthAfter.js\n// module id = 193\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthAgo.js\n// module id = 194\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthBefore.js\n// module id = 195\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthFromNow.js\n// module id = 196\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.months;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/months.js\n// module id = 197\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthsAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthsAfter.js\n// module id = 198\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthsAgo.js\n// module id = 199\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthsBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthsBefore.js\n// module id = 200\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.monthsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/monthsFromNow.js\n// module id = 201\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.second;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/second.js\n// module id = 202\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondAfter.js\n// module id = 203\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondAgo.js\n// module id = 204\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondBefore.js\n// module id = 205\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondFromNow.js\n// module id = 206\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.seconds;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/seconds.js\n// module id = 207\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondsAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondsAfter.js\n// module id = 208\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondsAgo.js\n// module id = 209\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondsBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondsBefore.js\n// module id = 210\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.secondsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/secondsFromNow.js\n// module id = 211\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.week;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/week.js\n// module id = 212\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weekAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weekAfter.js\n// module id = 213\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weekAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weekAgo.js\n// module id = 214\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weekBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weekBefore.js\n// module id = 215\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weekFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weekFromNow.js\n// module id = 216\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weeks;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weeks.js\n// module id = 217\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weeksAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weeksAfter.js\n// module id = 218\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weeksAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weeksAgo.js\n// module id = 219\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weeksBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weeksBefore.js\n// module id = 220\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.weeksFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/weeksFromNow.js\n// module id = 221\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.year;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/year.js\n// module id = 222\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearAfter.js\n// module id = 223\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearAgo.js\n// module id = 224\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearBefore.js\n// module id = 225\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearFromNow.js\n// module id = 226\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.years;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/years.js\n// module id = 227\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearsAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearsAfter.js\n// module id = 228\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearsAgo.js\n// module id = 229\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearsBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearsBefore.js\n// module id = 230\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('../date/build/buildNumberUnitMethodsCall');\n\nmodule.exports = Sugar.Number.yearsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/number/yearsFromNow.js\n// module id = 231\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addDays;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addDays.js\n// module id = 232\n// module chunks = 0","'use strict';\n\nvar buildDateUnitMethods = require('../internal/buildDateUnitMethods');\n\nbuildDateUnitMethods();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/build/buildDateUnitMethodsCall.js\n// module id = 233\n// module chunks = 0","'use strict';\n\nvar DateUnits = require('../var/DateUnits'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n forEach = require('../../common/internal/forEach'),\n compareDate = require('./compareDate'),\n advanceDate = require('./advanceDate'),\n moveToEndOfUnit = require('./moveToEndOfUnit'),\n simpleCapitalize = require('../../common/internal/simpleCapitalize'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n defineInstanceSimilar = require('../../common/internal/defineInstanceSimilar'),\n moveToBeginningOfUnit = require('./moveToBeginningOfUnit'),\n createDateWithContext = require('./createDateWithContext'),\n getTimeDistanceForUnit = require('./getTimeDistanceForUnit');\n\nvar sugarDate = namespaceAliases.sugarDate,\n HOURS_INDEX = DateUnitIndexes.HOURS_INDEX,\n DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\nfunction buildDateUnitMethods() {\n\n defineInstanceSimilar(sugarDate, DateUnits, function(methods, unit, index) {\n var name = unit.name, caps = simpleCapitalize(name);\n\n if (index > DAY_INDEX) {\n forEach(['Last','This','Next'], function(shift) {\n methods['is' + shift + caps] = function(d, localeCode) {\n return compareDate(d, shift + ' ' + name, 0, localeCode, { locale: 'en' });\n };\n });\n }\n if (index > HOURS_INDEX) {\n methods['beginningOf' + caps] = function(d, localeCode) {\n return moveToBeginningOfUnit(d, index, localeCode);\n };\n methods['endOf' + caps] = function(d, localeCode) {\n return moveToEndOfUnit(d, index, localeCode);\n };\n }\n\n methods['add' + caps + 's'] = function(d, num, reset) {\n return advanceDate(d, name, num, reset);\n };\n\n var since = function(date, d, options) {\n return getTimeDistanceForUnit(date, createDateWithContext(date, d, options, true), unit);\n };\n var until = function(date, d, options) {\n return getTimeDistanceForUnit(createDateWithContext(date, d, options, true), date, unit);\n };\n\n methods[name + 'sAgo'] = methods[name + 'sUntil'] = until;\n methods[name + 'sSince'] = methods[name + 'sFromNow'] = since;\n\n });\n\n}\n\nmodule.exports = buildDateUnitMethods;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/buildDateUnitMethods.js\n// module id = 234\n// module chunks = 0","'use strict';\n\nvar MINUTES = require('../var/MINUTES'),\n DateUnits = require('../var/DateUnits'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n _utc = require('../../common/var/_utc'),\n tzOffset = require('./tzOffset'),\n cloneDate = require('./cloneDate'),\n isDefined = require('../../common/internal/isDefined'),\n advanceDate = require('./advanceDate'),\n dateIsValid = require('./dateIsValid'),\n moveToEndOfUnit = require('./moveToEndOfUnit'),\n getExtendedDate = require('./getExtendedDate'),\n moveToBeginningOfUnit = require('./moveToBeginningOfUnit');\n\nvar MONTH_INDEX = DateUnitIndexes.MONTH_INDEX;\n\nfunction compareDate(date, d, margin, localeCode, options) {\n var loMargin = 0, hiMargin = 0, timezoneShift, compareEdges, override, min, max, p, t;\n\n function getTimezoneShift() {\n // If there is any specificity in the date then we're implicitly not\n // checking absolute time, so ignore timezone shifts.\n if (p.set && p.set.specificity) {\n return 0;\n }\n return (tzOffset(p.date) - tzOffset(date)) * MINUTES;\n }\n\n function addSpecificUnit() {\n var unit = DateUnits[p.set.specificity];\n return advanceDate(cloneDate(p.date), unit.name, 1).getTime() - 1;\n }\n\n if (_utc(date)) {\n options = options || {};\n options.fromUTC = true;\n options.setUTC = true;\n }\n\n p = getExtendedDate(null, d, options, true);\n\n if (margin > 0) {\n loMargin = hiMargin = margin;\n override = true;\n }\n if (!dateIsValid(p.date)) return false;\n if (p.set && p.set.specificity) {\n if (isDefined(p.set.edge) || isDefined(p.set.shift)) {\n compareEdges = true;\n moveToBeginningOfUnit(p.date, p.set.specificity, localeCode);\n }\n if (compareEdges || p.set.specificity === MONTH_INDEX) {\n max = moveToEndOfUnit(cloneDate(p.date), p.set.specificity, localeCode).getTime();\n } else {\n max = addSpecificUnit();\n }\n if (!override && isDefined(p.set.sign) && p.set.specificity) {\n // If the time is relative, there can occasionally be an disparity between\n // the relative date and \"now\", which it is being compared to, so set an\n // extra margin to account for this.\n loMargin = 50;\n hiMargin = -50;\n }\n }\n t = date.getTime();\n min = p.date.getTime();\n max = max || min;\n timezoneShift = getTimezoneShift();\n if (timezoneShift) {\n min -= timezoneShift;\n max -= timezoneShift;\n }\n return t >= (min - loMargin) && t <= (max + hiMargin);\n}\n\nmodule.exports = compareDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/compareDate.js\n// module id = 235\n// module chunks = 0","'use strict';\n\nfunction dateIsValid(d) {\n return !isNaN(d.getTime());\n}\n\nmodule.exports = dateIsValid;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/dateIsValid.js\n// module id = 236\n// module chunks = 0","'use strict';\n\nfunction simpleCapitalize(str) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n\nmodule.exports = simpleCapitalize;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/simpleCapitalize.js\n// module id = 237\n// module chunks = 0","'use strict';\n\nvar getExtendedDate = require('./getExtendedDate');\n\nfunction createDateWithContext(contextDate, d, options, forceClone) {\n return getExtendedDate(contextDate, d, options, forceClone).date;\n}\n\nmodule.exports = createDateWithContext;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/createDateWithContext.js\n// module id = 238\n// module chunks = 0","'use strict';\n\nvar trunc = require('../../common/var/trunc'),\n cloneDate = require('./cloneDate'),\n advanceDate = require('./advanceDate');\n\nfunction getTimeDistanceForUnit(d1, d2, unit) {\n var fwd = d2 > d1, num, tmp;\n if (!fwd) {\n tmp = d2;\n d2 = d1;\n d1 = tmp;\n }\n num = d2 - d1;\n if (unit.multiplier > 1) {\n num = trunc(num / unit.multiplier);\n }\n // For higher order with potential ambiguity, use the numeric calculation\n // as a starting point, then iterate until we pass the target date.\n if (unit.ambiguous) {\n d1 = cloneDate(d1);\n if (num) {\n advanceDate(d1, unit.name, num);\n }\n while (d1 < d2) {\n advanceDate(d1, unit.name, 1);\n if (d1 > d2) {\n break;\n }\n num += 1;\n }\n }\n return fwd ? -num : num;\n}\n\nmodule.exports = getTimeDistanceForUnit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getTimeDistanceForUnit.js\n// module id = 239\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addHours;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addHours.js\n// module id = 240\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addMilliseconds;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addMilliseconds.js\n// module id = 241\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addMinutes;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addMinutes.js\n// module id = 242\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addMonths;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addMonths.js\n// module id = 243\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addSeconds;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addSeconds.js\n// module id = 244\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addWeeks;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addWeeks.js\n// module id = 245\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.addYears;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/addYears.js\n// module id = 246\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n advanceDateWithArgs = require('./internal/advanceDateWithArgs');\n\nSugar.Date.defineInstanceWithArguments({\n\n 'advance': function(d, args) {\n return advanceDateWithArgs(d, args, 1);\n }\n\n});\n\nmodule.exports = Sugar.Date.advance;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/advance.js\n// module id = 247\n// module chunks = 0","'use strict';\n\nvar updateDate = require('./updateDate'),\n collectDateArguments = require('./collectDateArguments');\n\nfunction advanceDateWithArgs(d, args, dir) {\n args = collectDateArguments(args, true);\n return updateDate(d, args[0], args[1], dir);\n}\n\nmodule.exports = advanceDateWithArgs;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/advanceDateWithArgs.js\n// module id = 248\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../../common/var/classChecks'),\n simpleClone = require('../../common/internal/simpleClone'),\n isObjectType = require('../../common/internal/isObjectType'),\n getDateParamsFromString = require('./getDateParamsFromString'),\n collectDateParamsFromArguments = require('./collectDateParamsFromArguments');\n\nvar isNumber = classChecks.isNumber,\n isString = classChecks.isString;\n\nfunction collectDateArguments(args, allowDuration) {\n var arg1 = args[0], arg2 = args[1];\n if (allowDuration && isString(arg1)) {\n arg1 = getDateParamsFromString(arg1);\n } else if (isNumber(arg1) && isNumber(arg2)) {\n arg1 = collectDateParamsFromArguments(args);\n arg2 = null;\n } else {\n if (isObjectType(arg1)) {\n arg1 = simpleClone(arg1);\n }\n }\n return [arg1, arg2];\n}\n\nmodule.exports = collectDateArguments;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/collectDateArguments.js\n// module id = 249\n// module chunks = 0","'use strict';\n\nvar isUndefined = require('../../common/internal/isUndefined');\n\nfunction getDateParamsFromString(str) {\n var match, num, params = {};\n match = str.match(/^(-?\\d*[\\d.]\\d*)?\\s?(\\w+?)s?$/i);\n if (match) {\n if (isUndefined(num)) {\n num = +match[1];\n if (isNaN(num)) {\n num = 1;\n }\n }\n params[match[2].toLowerCase()] = num;\n }\n return params;\n}\n\nmodule.exports = getDateParamsFromString;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getDateParamsFromString.js\n// module id = 250\n// module chunks = 0","'use strict';\n\nvar DateUnitIndexes = require('../var/DateUnitIndexes'),\n isDefined = require('../../common/internal/isDefined'),\n walkUnitDown = require('./walkUnitDown');\n\nvar YEAR_INDEX = DateUnitIndexes.YEAR_INDEX;\n\nfunction collectDateParamsFromArguments(args) {\n var params = {}, index = 0;\n walkUnitDown(YEAR_INDEX, function(unit) {\n var arg = args[index++];\n if (isDefined(arg)) {\n params[unit.name] = arg;\n }\n });\n return params;\n}\n\nmodule.exports = collectDateParamsFromArguments;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/collectDateParamsFromArguments.js\n// module id = 251\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.beginningOfDay;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/beginningOfDay.js\n// module id = 252\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n resetTime = require('./internal/resetTime'),\n getWeekday = require('./internal/getWeekday'),\n setWeekday = require('./internal/setWeekday');\n\nSugar.Date.defineInstance({\n\n 'beginningOfISOWeek': function(date) {\n var day = getWeekday(date);\n if (day === 0) {\n day = -6;\n } else if (day !== 1) {\n day = 1;\n }\n setWeekday(date, day);\n return resetTime(date);\n }\n\n});\n\nmodule.exports = Sugar.Date.beginningOfISOWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/beginningOfISOWeek.js\n// module id = 253\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.beginningOfMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/beginningOfMonth.js\n// module id = 254\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.beginningOfWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/beginningOfWeek.js\n// module id = 255\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.beginningOfYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/beginningOfYear.js\n// module id = 256\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n cloneDate = require('./internal/cloneDate');\n\nSugar.Date.defineInstance({\n\n 'clone': function(date) {\n return cloneDate(date);\n }\n\n});\n\nmodule.exports = Sugar.Date.clone;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/clone.js\n// module id = 257\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.daysAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/daysAgo.js\n// module id = 258\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.daysFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/daysFromNow.js\n// module id = 259\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n getDaysInMonth = require('./internal/getDaysInMonth');\n\nSugar.Date.defineInstance({\n\n 'daysInMonth': function(date) {\n return getDaysInMonth(date);\n }\n\n});\n\nmodule.exports = Sugar.Date.daysInMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/daysInMonth.js\n// module id = 260\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.daysSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/daysSince.js\n// module id = 261\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.daysUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/daysUntil.js\n// module id = 262\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.endOfDay;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/endOfDay.js\n// module id = 263\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n DateUnitIndexes = require('./var/DateUnitIndexes'),\n getWeekday = require('./internal/getWeekday'),\n setWeekday = require('./internal/setWeekday'),\n moveToEndOfUnit = require('./internal/moveToEndOfUnit');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\nSugar.Date.defineInstance({\n\n 'endOfISOWeek': function(date) {\n if (getWeekday(date) !== 0) {\n setWeekday(date, 7);\n }\n return moveToEndOfUnit(date, DAY_INDEX);\n }\n\n});\n\nmodule.exports = Sugar.Date.endOfISOWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/endOfISOWeek.js\n// module id = 264\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.endOfMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/endOfMonth.js\n// module id = 265\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.endOfWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/endOfWeek.js\n// module id = 266\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.endOfYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/endOfYear.js\n// module id = 267\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n dateFormat = require('./internal/dateFormat');\n\nSugar.Date.defineInstance({\n\n 'format': function(date, f, localeCode) {\n return dateFormat(date, f, localeCode);\n }\n\n});\n\nmodule.exports = Sugar.Date.format;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/format.js\n// module id = 268\n// module chunks = 0","'use strict';\n\nvar CoreOutputFormats = require('../var/CoreOutputFormats'),\n formattingTokens = require('../var/formattingTokens'),\n assertDateIsValid = require('./assertDateIsValid');\n\nvar dateFormatMatcher = formattingTokens.dateFormatMatcher;\n\nfunction dateFormat(d, format, localeCode) {\n assertDateIsValid(d);\n format = CoreOutputFormats[format] || format || '{long}';\n return dateFormatMatcher(format, d, localeCode);\n}\n\nmodule.exports = dateFormat;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/dateFormat.js\n// module id = 269\n// module chunks = 0","'use strict';\n\nvar CoreOutputFormats = {\n 'ISO8601': '{yyyy}-{MM}-{dd}T{HH}:{mm}:{ss}.{SSS}{Z}',\n 'RFC1123': '{Dow}, {dd} {Mon} {yyyy} {HH}:{mm}:{ss} {ZZ}',\n 'RFC1036': '{Weekday}, {dd}-{Mon}-{yy} {HH}:{mm}:{ss} {ZZ}'\n};\n\nmodule.exports = CoreOutputFormats;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/CoreOutputFormats.js\n// module id = 270\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('./LocaleHelpers'),\n FormatTokensBase = require('./FormatTokensBase'),\n CoreOutputFormats = require('./CoreOutputFormats'),\n forEach = require('../../common/internal/forEach'),\n padNumber = require('../../common/internal/padNumber'),\n spaceSplit = require('../../common/internal/spaceSplit'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n coreUtilityAliases = require('../../common/var/coreUtilityAliases'),\n createFormatMatcher = require('../../common/internal/createFormatMatcher'),\n defineInstanceSimilar = require('../../common/internal/defineInstanceSimilar');\n\nvar localeManager = LocaleHelpers.localeManager,\n hasOwn = coreUtilityAliases.hasOwn,\n getOwn = coreUtilityAliases.getOwn,\n forEachProperty = coreUtilityAliases.forEachProperty,\n sugarDate = namespaceAliases.sugarDate;\n\nvar ldmlTokens, strfTokens;\n\nfunction buildDateFormatTokens() {\n\n function addFormats(target, tokens, fn) {\n if (tokens) {\n forEach(spaceSplit(tokens), function(token) {\n target[token] = fn;\n });\n }\n }\n\n function buildLowercase(get) {\n return function(d, localeCode) {\n return get(d, localeCode).toLowerCase();\n };\n }\n\n function buildOrdinal(get) {\n return function(d, localeCode) {\n var n = get(d, localeCode);\n return n + localeManager.get(localeCode).getOrdinal(n);\n };\n }\n\n function buildPadded(get, padding) {\n return function(d, localeCode) {\n return padNumber(get(d, localeCode), padding);\n };\n }\n\n function buildTwoDigits(get) {\n return function(d, localeCode) {\n return get(d, localeCode) % 100;\n };\n }\n\n function buildAlias(alias) {\n return function(d, localeCode) {\n return dateFormatMatcher(alias, d, localeCode);\n };\n }\n\n function buildAlternates(f) {\n for (var n = 1; n <= 5; n++) {\n buildAlternate(f, n);\n }\n }\n\n function buildAlternate(f, n) {\n var alternate = function(d, localeCode) {\n return f.get(d, localeCode, n);\n };\n addFormats(ldmlTokens, f.ldml + n, alternate);\n if (f.lowerToken) {\n ldmlTokens[f.lowerToken + n] = buildLowercase(alternate);\n }\n }\n\n function getIdentityFormat(name) {\n return function(d, localeCode) {\n var loc = localeManager.get(localeCode);\n return dateFormatMatcher(loc[name], d, localeCode);\n };\n }\n\n ldmlTokens = {};\n strfTokens = {};\n\n forEach(FormatTokensBase, function(f) {\n var get = f.get, getPadded;\n if (f.lowerToken) {\n ldmlTokens[f.lowerToken] = buildLowercase(get);\n }\n if (f.ordinalToken) {\n ldmlTokens[f.ordinalToken] = buildOrdinal(get, f);\n }\n if (f.ldmlPaddedToken) {\n ldmlTokens[f.ldmlPaddedToken] = buildPadded(get, f.ldmlPaddedToken.length);\n }\n if (f.ldmlTwoDigitToken) {\n ldmlTokens[f.ldmlTwoDigitToken] = buildPadded(buildTwoDigits(get), 2);\n }\n if (f.strfTwoDigitToken) {\n strfTokens[f.strfTwoDigitToken] = buildPadded(buildTwoDigits(get), 2);\n }\n if (f.strfPadding) {\n getPadded = buildPadded(get, f.strfPadding);\n }\n if (f.alias) {\n get = buildAlias(f.alias);\n }\n if (f.allowAlternates) {\n buildAlternates(f);\n }\n addFormats(ldmlTokens, f.ldml, get);\n addFormats(strfTokens, f.strf, getPadded || get);\n });\n\n forEachProperty(CoreOutputFormats, function(src, name) {\n addFormats(ldmlTokens, name, buildAlias(src));\n });\n\n defineInstanceSimilar(sugarDate, 'short medium long full', function(methods, name) {\n var fn = getIdentityFormat(name);\n addFormats(ldmlTokens, name, fn);\n methods[name] = fn;\n });\n\n addFormats(ldmlTokens, 'time', getIdentityFormat('time'));\n addFormats(ldmlTokens, 'stamp', getIdentityFormat('stamp'));\n}\n\nvar dateFormatMatcher;\n\nfunction buildDateFormatMatcher() {\n\n function getLdml(d, token, localeCode) {\n return getOwn(ldmlTokens, token)(d, localeCode);\n }\n\n function getStrf(d, token, localeCode) {\n return getOwn(strfTokens, token)(d, localeCode);\n }\n\n function checkDateToken(ldml, strf) {\n return hasOwn(ldmlTokens, ldml) || hasOwn(strfTokens, strf);\n }\n\n // Format matcher for LDML or STRF tokens.\n dateFormatMatcher = createFormatMatcher(getLdml, getStrf, checkDateToken);\n}\n\nbuildDateFormatTokens();\n\nbuildDateFormatMatcher();\n\nmodule.exports = {\n ldmlTokens: ldmlTokens,\n strfTokens: strfTokens,\n dateFormatMatcher: dateFormatMatcher\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/formattingTokens.js\n// module id = 271\n// module chunks = 0","'use strict';\n\nvar TIMEZONE_ABBREVIATION_REG = require('./TIMEZONE_ABBREVIATION_REG'),\n LocaleHelpers = require('./LocaleHelpers'),\n DateUnitIndexes = require('./DateUnitIndexes'),\n trunc = require('../../common/var/trunc'),\n getDate = require('../internal/getDate'),\n getYear = require('../internal/getYear'),\n getHours = require('../internal/getHours'),\n getMonth = require('../internal/getMonth'),\n cloneDate = require('../internal/cloneDate'),\n padNumber = require('../../common/internal/padNumber'),\n getWeekday = require('../internal/getWeekday'),\n callDateGet = require('../../common/internal/callDateGet'),\n mathAliases = require('../../common/var/mathAliases'),\n getWeekYear = require('../internal/getWeekYear'),\n getUTCOffset = require('../internal/getUTCOffset'),\n getDaysSince = require('../internal/getDaysSince'),\n getWeekNumber = require('../internal/getWeekNumber'),\n getMeridiemToken = require('../internal/getMeridiemToken'),\n setUnitAndLowerToEdge = require('../internal/setUnitAndLowerToEdge');\n\nvar localeManager = LocaleHelpers.localeManager,\n MONTH_INDEX = DateUnitIndexes.MONTH_INDEX,\n ceil = mathAliases.ceil;\n\nvar FormatTokensBase = [\n {\n ldml: 'Dow',\n strf: 'a',\n lowerToken: 'dow',\n get: function(d, localeCode) {\n return localeManager.get(localeCode).getWeekdayName(getWeekday(d), 2);\n }\n },\n {\n ldml: 'Weekday',\n strf: 'A',\n lowerToken: 'weekday',\n allowAlternates: true,\n get: function(d, localeCode, alternate) {\n return localeManager.get(localeCode).getWeekdayName(getWeekday(d), alternate);\n }\n },\n {\n ldml: 'Mon',\n strf: 'b h',\n lowerToken: 'mon',\n get: function(d, localeCode) {\n return localeManager.get(localeCode).getMonthName(getMonth(d), 2);\n }\n },\n {\n ldml: 'Month',\n strf: 'B',\n lowerToken: 'month',\n allowAlternates: true,\n get: function(d, localeCode, alternate) {\n return localeManager.get(localeCode).getMonthName(getMonth(d), alternate);\n }\n },\n {\n strf: 'C',\n get: function(d) {\n return getYear(d).toString().slice(0, 2);\n }\n },\n {\n ldml: 'd date day',\n strf: 'd',\n strfPadding: 2,\n ldmlPaddedToken: 'dd',\n ordinalToken: 'do',\n get: function(d) {\n return getDate(d);\n }\n },\n {\n strf: 'e',\n get: function(d) {\n return padNumber(getDate(d), 2, false, 10, ' ');\n }\n },\n {\n ldml: 'H 24hr',\n strf: 'H',\n strfPadding: 2,\n ldmlPaddedToken: 'HH',\n get: function(d) {\n return getHours(d);\n }\n },\n {\n ldml: 'h hours 12hr',\n strf: 'I',\n strfPadding: 2,\n ldmlPaddedToken: 'hh',\n get: function(d) {\n return getHours(d) % 12 || 12;\n }\n },\n {\n ldml: 'D',\n strf: 'j',\n strfPadding: 3,\n ldmlPaddedToken: 'DDD',\n get: function(d) {\n var s = setUnitAndLowerToEdge(cloneDate(d), MONTH_INDEX);\n return getDaysSince(d, s) + 1;\n }\n },\n {\n ldml: 'M',\n strf: 'm',\n strfPadding: 2,\n ordinalToken: 'Mo',\n ldmlPaddedToken: 'MM',\n get: function(d) {\n return getMonth(d) + 1;\n }\n },\n {\n ldml: 'm minutes',\n strf: 'M',\n strfPadding: 2,\n ldmlPaddedToken: 'mm',\n get: function(d) {\n return callDateGet(d, 'Minutes');\n }\n },\n {\n ldml: 'Q',\n get: function(d) {\n return ceil((getMonth(d) + 1) / 3);\n }\n },\n {\n ldml: 'TT',\n strf: 'p',\n get: function(d, localeCode) {\n return getMeridiemToken(d, localeCode);\n }\n },\n {\n ldml: 'tt',\n strf: 'P',\n get: function(d, localeCode) {\n return getMeridiemToken(d, localeCode).toLowerCase();\n }\n },\n {\n ldml: 'T',\n lowerToken: 't',\n get: function(d, localeCode) {\n return getMeridiemToken(d, localeCode).charAt(0);\n }\n },\n {\n ldml: 's seconds',\n strf: 'S',\n strfPadding: 2,\n ldmlPaddedToken: 'ss',\n get: function(d) {\n return callDateGet(d, 'Seconds');\n }\n },\n {\n ldml: 'S ms',\n strfPadding: 3,\n ldmlPaddedToken: 'SSS',\n get: function(d) {\n return callDateGet(d, 'Milliseconds');\n }\n },\n {\n ldml: 'e',\n strf: 'u',\n ordinalToken: 'eo',\n get: function(d) {\n return getWeekday(d) || 7;\n }\n },\n {\n strf: 'U',\n strfPadding: 2,\n get: function(d) {\n // Sunday first, 0-53\n return getWeekNumber(d, false, 0);\n }\n },\n {\n ldml: 'W',\n strf: 'V',\n strfPadding: 2,\n ordinalToken: 'Wo',\n ldmlPaddedToken: 'WW',\n get: function(d) {\n // Monday first, 1-53 (ISO8601)\n return getWeekNumber(d, true);\n }\n },\n {\n strf: 'w',\n get: function(d) {\n return getWeekday(d);\n }\n },\n {\n ldml: 'w',\n ordinalToken: 'wo',\n ldmlPaddedToken: 'ww',\n get: function(d, localeCode) {\n // Locale dependent, 1-53\n var loc = localeManager.get(localeCode),\n dow = loc.getFirstDayOfWeek(localeCode),\n doy = loc.getFirstDayOfWeekYear(localeCode);\n return getWeekNumber(d, true, dow, doy);\n }\n },\n {\n strf: 'W',\n strfPadding: 2,\n get: function(d) {\n // Monday first, 0-53\n return getWeekNumber(d, false);\n }\n },\n {\n ldmlPaddedToken: 'gggg',\n ldmlTwoDigitToken: 'gg',\n get: function(d, localeCode) {\n return getWeekYear(d, localeCode);\n }\n },\n {\n strf: 'G',\n strfPadding: 4,\n strfTwoDigitToken: 'g',\n ldmlPaddedToken: 'GGGG',\n ldmlTwoDigitToken: 'GG',\n get: function(d, localeCode) {\n return getWeekYear(d, localeCode, true);\n }\n },\n {\n ldml: 'year',\n ldmlPaddedToken: 'yyyy',\n ldmlTwoDigitToken: 'yy',\n strf: 'Y',\n strfPadding: 4,\n strfTwoDigitToken: 'y',\n get: function(d) {\n return getYear(d);\n }\n },\n {\n ldml: 'ZZ',\n strf: 'z',\n get: function(d) {\n return getUTCOffset(d);\n }\n },\n {\n ldml: 'X',\n get: function(d) {\n return trunc(d.getTime() / 1000);\n }\n },\n {\n ldml: 'x',\n get: function(d) {\n return d.getTime();\n }\n },\n {\n ldml: 'Z',\n get: function(d) {\n return getUTCOffset(d, true);\n }\n },\n {\n ldml: 'z',\n strf: 'Z',\n get: function(d) {\n // Note that this is not accurate in all browsing environments!\n // https://github.com/moment/moment/issues/162\n // It will continue to be supported for Node and usage with the\n // understanding that it may be blank.\n var match = d.toString().match(TIMEZONE_ABBREVIATION_REG);\n return match ? match[1]: '';\n }\n },\n {\n strf: 'D',\n alias: '%m/%d/%y'\n },\n {\n strf: 'F',\n alias: '%Y-%m-%d'\n },\n {\n strf: 'r',\n alias: '%I:%M:%S %p'\n },\n {\n strf: 'R',\n alias: '%H:%M'\n },\n {\n strf: 'T',\n alias: '%H:%M:%S'\n },\n {\n strf: 'x',\n alias: '{short}'\n },\n {\n strf: 'X',\n alias: '{time}'\n },\n {\n strf: 'c',\n alias: '{stamp}'\n }\n];\n\nmodule.exports = FormatTokensBase;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/FormatTokensBase.js\n// module id = 272\n// module chunks = 0","'use strict';\n\nmodule.exports = /(\\w{3})[()\\s\\d]*$/;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/var/TIMEZONE_ABBREVIATION_REG.js\n// module id = 273\n// module chunks = 0","'use strict';\n\nvar callDateGet = require('../../common/internal/callDateGet');\n\nfunction getHours(d) {\n return callDateGet(d, 'Hours');\n}\n\nmodule.exports = getHours;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getHours.js\n// module id = 274\n// module chunks = 0","'use strict';\n\nvar mathAliases = require('../var/mathAliases'),\n repeatString = require('./repeatString');\n\nvar abs = mathAliases.abs;\n\nfunction padNumber(num, place, sign, base, replacement) {\n var str = abs(num).toString(base || 10);\n str = repeatString(replacement || '0', place - str.replace(/\\.\\d+/, '').length) + str;\n if (sign || num < 0) {\n str = (num < 0 ? '-' : '+') + str;\n }\n return str;\n}\n\nmodule.exports = padNumber;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/padNumber.js\n// module id = 275\n// module chunks = 0","'use strict';\n\nfunction repeatString(str, num) {\n var result = '';\n str = str.toString();\n while (num > 0) {\n if (num & 1) {\n result += str;\n }\n if (num >>= 1) {\n str += str;\n }\n }\n return result;\n}\n\nmodule.exports = repeatString;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/repeatString.js\n// module id = 276\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n getYear = require('./getYear'),\n getMonth = require('./getMonth'),\n getWeekNumber = require('./getWeekNumber');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nfunction getWeekYear(d, localeCode, iso) {\n var year, month, firstDayOfWeek, firstDayOfWeekYear, week, loc;\n year = getYear(d);\n month = getMonth(d);\n if (month === 0 || month === 11) {\n if (!iso) {\n loc = localeManager.get(localeCode);\n firstDayOfWeek = loc.getFirstDayOfWeek(localeCode);\n firstDayOfWeekYear = loc.getFirstDayOfWeekYear(localeCode);\n }\n week = getWeekNumber(d, false, firstDayOfWeek, firstDayOfWeekYear);\n if (month === 0 && week === 0) {\n year -= 1;\n } else if (month === 11 && week === 1) {\n year += 1;\n }\n }\n return year;\n}\n\nmodule.exports = getWeekYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getWeekYear.js\n// module id = 277\n// module chunks = 0","'use strict';\n\nvar ISODefaults = require('../var/ISODefaults'),\n setDate = require('./setDate'),\n getDate = require('./getDate'),\n cloneDate = require('./cloneDate'),\n isUndefined = require('../../common/internal/isUndefined'),\n moveToEndOfWeek = require('./moveToEndOfWeek'),\n moveToBeginningOfWeek = require('./moveToBeginningOfWeek'),\n moveToFirstDayOfWeekYear = require('./moveToFirstDayOfWeekYear');\n\nvar ISO_FIRST_DAY_OF_WEEK = ISODefaults.ISO_FIRST_DAY_OF_WEEK,\n ISO_FIRST_DAY_OF_WEEK_YEAR = ISODefaults.ISO_FIRST_DAY_OF_WEEK_YEAR;\n\nfunction getWeekNumber(d, allowPrevious, firstDayOfWeek, firstDayOfWeekYear) {\n var isoWeek, n = 0;\n if (isUndefined(firstDayOfWeek)) {\n firstDayOfWeek = ISO_FIRST_DAY_OF_WEEK;\n }\n if (isUndefined(firstDayOfWeekYear)) {\n firstDayOfWeekYear = ISO_FIRST_DAY_OF_WEEK_YEAR;\n }\n // Moving to the end of the week allows for forward year traversal, ie\n // Dec 29 2014 is actually week 01 of 2015.\n isoWeek = moveToEndOfWeek(cloneDate(d), firstDayOfWeek);\n moveToFirstDayOfWeekYear(isoWeek, firstDayOfWeek, firstDayOfWeekYear);\n if (allowPrevious && d < isoWeek) {\n // If the date is still before the start of the year, then it should be\n // the last week of the previous year, ie Jan 1 2016 is actually week 53\n // of 2015, so move to the beginning of the week to traverse the year.\n isoWeek = moveToBeginningOfWeek(cloneDate(d), firstDayOfWeek);\n moveToFirstDayOfWeekYear(isoWeek, firstDayOfWeek, firstDayOfWeekYear);\n }\n while (isoWeek <= d) {\n // Doing a very simple walk to get the week number.\n setDate(isoWeek, getDate(isoWeek) + 7);\n n++;\n }\n return n;\n}\n\nmodule.exports = getWeekNumber;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getWeekNumber.js\n// module id = 278\n// module chunks = 0","'use strict';\n\nvar _utc = require('../../common/var/_utc'),\n trunc = require('../../common/var/trunc'),\n tzOffset = require('./tzOffset'),\n padNumber = require('../../common/internal/padNumber'),\n mathAliases = require('../../common/var/mathAliases');\n\nvar abs = mathAliases.abs;\n\nfunction getUTCOffset(d, iso) {\n var offset = _utc(d) ? 0 : tzOffset(d), hours, mins, colon;\n colon = iso === true ? ':' : '';\n if (!offset && iso) return 'Z';\n hours = padNumber(trunc(-offset / 60), 2, true);\n mins = padNumber(abs(offset % 60), 2);\n return hours + colon + mins;\n}\n\nmodule.exports = getUTCOffset;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getUTCOffset.js\n// module id = 279\n// module chunks = 0","'use strict';\n\nvar DateUnits = require('../var/DateUnits'),\n DateUnitIndexes = require('../var/DateUnitIndexes'),\n getTimeDistanceForUnit = require('./getTimeDistanceForUnit');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\nfunction getDaysSince(d1, d2) {\n return getTimeDistanceForUnit(d1, d2, DateUnits[DAY_INDEX]);\n}\n\nmodule.exports = getDaysSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getDaysSince.js\n// module id = 280\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n trunc = require('../../common/var/trunc'),\n getHours = require('./getHours');\n\nvar localeManager = LocaleHelpers.localeManager;\n\nfunction getMeridiemToken(d, localeCode) {\n var hours = getHours(d);\n return localeManager.get(localeCode).ampm[trunc(hours / 12)] || '';\n}\n\nmodule.exports = getMeridiemToken;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getMeridiemToken.js\n// module id = 281\n// module chunks = 0","'use strict';\n\nvar STRING_FORMAT_REG = require('../var/STRING_FORMAT_REG'),\n CommonChars = require('../var/CommonChars'),\n memoizeFunction = require('./memoizeFunction');\n\nvar OPEN_BRACE = CommonChars.OPEN_BRACE,\n CLOSE_BRACE = CommonChars.CLOSE_BRACE;\n\nfunction createFormatMatcher(bracketMatcher, percentMatcher, precheck) {\n\n var reg = STRING_FORMAT_REG;\n var compileMemoized = memoizeFunction(compile);\n\n function getToken(format, match) {\n var get, token, literal, fn;\n var bKey = match[2];\n var pLit = match[3];\n var pKey = match[5];\n if (match[4] && percentMatcher) {\n token = pKey;\n get = percentMatcher;\n } else if (bKey) {\n token = bKey;\n get = bracketMatcher;\n } else if (pLit && percentMatcher) {\n literal = pLit;\n } else {\n literal = match[1] || match[0];\n }\n if (get) {\n assertPassesPrecheck(precheck, bKey, pKey);\n fn = function(obj, opt) {\n return get(obj, token, opt);\n };\n }\n format.push(fn || getLiteral(literal));\n }\n\n function getSubstring(format, str, start, end) {\n if (end > start) {\n var sub = str.slice(start, end);\n assertNoUnmatched(sub, OPEN_BRACE);\n assertNoUnmatched(sub, CLOSE_BRACE);\n format.push(function() {\n return sub;\n });\n }\n }\n\n function getLiteral(str) {\n return function() {\n return str;\n };\n }\n\n function assertPassesPrecheck(precheck, bt, pt) {\n if (precheck && !precheck(bt, pt)) {\n throw new TypeError('Invalid token '+ (bt || pt) +' in format string');\n }\n }\n\n function assertNoUnmatched(str, chr) {\n if (str.indexOf(chr) !== -1) {\n throw new TypeError('Unmatched '+ chr +' in format string');\n }\n }\n\n function compile(str) {\n var format = [], lastIndex = 0, match;\n reg.lastIndex = 0;\n while(match = reg.exec(str)) {\n getSubstring(format, str, lastIndex, match.index);\n getToken(format, match);\n lastIndex = reg.lastIndex;\n }\n getSubstring(format, str, lastIndex, str.length);\n return format;\n }\n\n return function(str, obj, opt) {\n var format = compileMemoized(str), result = '';\n for (var i = 0; i < format.length; i++) {\n result += format[i](obj, opt);\n }\n return result;\n };\n}\n\nmodule.exports = createFormatMatcher;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/createFormatMatcher.js\n// module id = 282\n// module chunks = 0","'use strict';\n\nmodule.exports = /([{}])\\1|\\{([^}]*)\\}|(%)%|(%(\\w*))/g;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/STRING_FORMAT_REG.js\n// module id = 283\n// module chunks = 0","'use strict';\n\nvar INTERNAL_MEMOIZE_LIMIT = require('../var/INTERNAL_MEMOIZE_LIMIT'),\n coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar hasOwn = coreUtilityAliases.hasOwn;\n\nfunction memoizeFunction(fn) {\n var memo = {}, counter = 0;\n\n return function(key) {\n if (hasOwn(memo, key)) {\n return memo[key];\n }\n if (counter === INTERNAL_MEMOIZE_LIMIT) {\n memo = {};\n counter = 0;\n }\n counter++;\n return memo[key] = fn(key);\n };\n}\n\nmodule.exports = memoizeFunction;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/memoizeFunction.js\n// module id = 284\n// module chunks = 0","'use strict';\n\nmodule.exports = 1000;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/var/INTERNAL_MEMOIZE_LIMIT.js\n// module id = 285\n// module chunks = 0","'use strict';\n\nvar dateIsValid = require('./dateIsValid');\n\nfunction assertDateIsValid(d) {\n if (!dateIsValid(d)) {\n throw new TypeError('Date is not valid');\n }\n}\n\nmodule.exports = assertDateIsValid;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/assertDateIsValid.js\n// module id = 286\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n createDateWithContext = require('./internal/createDateWithContext');\n\nSugar.Date.defineInstance({\n\n 'get': function(date, d, options) {\n return createDateWithContext(date, d, options);\n }\n\n});\n\nmodule.exports = Sugar.Date.get;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/get.js\n// module id = 287\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n getWeekNumber = require('./internal/getWeekNumber');\n\nSugar.Date.defineInstance({\n\n 'getISOWeek': function(date) {\n return getWeekNumber(date, true);\n }\n\n});\n\nmodule.exports = Sugar.Date.getISOWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getISOWeek.js\n// module id = 288\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n getUTCOffset = require('./internal/getUTCOffset');\n\nSugar.Date.defineInstance({\n\n 'getUTCOffset': function(date, iso) {\n return getUTCOffset(date, iso);\n }\n\n});\n\nmodule.exports = Sugar.Date.getUTCOffset;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getUTCOffset.js\n// module id = 289\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nSugar.Date.defineInstance({\n\n 'getUTCWeekday': function(date) {\n return date.getUTCDay();\n }\n\n});\n\nmodule.exports = Sugar.Date.getUTCWeekday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getUTCWeekday.js\n// module id = 290\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n getWeekday = require('./internal/getWeekday');\n\nSugar.Date.defineInstance({\n\n 'getWeekday': function(date) {\n return getWeekday(date);\n }\n\n});\n\nmodule.exports = Sugar.Date.getWeekday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getWeekday.js\n// module id = 291\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.hoursAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/hoursAgo.js\n// module id = 292\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.hoursFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/hoursFromNow.js\n// module id = 293\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.hoursSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/hoursSince.js\n// module id = 294\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.hoursUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/hoursUntil.js\n// module id = 295\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n fullCompareDate = require('./internal/fullCompareDate');\n\nSugar.Date.defineInstance({\n\n 'is': function(date, d, margin) {\n return fullCompareDate(date, d, margin);\n }\n\n});\n\nmodule.exports = Sugar.Date.is;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/is.js\n// module id = 296\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n trim = require('../../common/internal/trim'),\n getMonth = require('./getMonth'),\n isDefined = require('../../common/internal/isDefined'),\n getNewDate = require('./getNewDate'),\n compareDay = require('./compareDay'),\n getWeekday = require('./getWeekday'),\n dateIsValid = require('./dateIsValid'),\n classChecks = require('../../common/var/classChecks'),\n compareDate = require('./compareDate');\n\nvar isString = classChecks.isString,\n English = LocaleHelpers.English;\n\nfunction fullCompareDate(date, d, margin) {\n var tmp;\n if (!dateIsValid(date)) return;\n if (isString(d)) {\n d = trim(d).toLowerCase();\n switch(true) {\n case d === 'future': return date.getTime() > getNewDate().getTime();\n case d === 'past': return date.getTime() < getNewDate().getTime();\n case d === 'today': return compareDay(date);\n case d === 'tomorrow': return compareDay(date, 1);\n case d === 'yesterday': return compareDay(date, -1);\n case d === 'weekday': return getWeekday(date) > 0 && getWeekday(date) < 6;\n case d === 'weekend': return getWeekday(date) === 0 || getWeekday(date) === 6;\n\n case (isDefined(tmp = English.weekdayMap[d])):\n return getWeekday(date) === tmp;\n case (isDefined(tmp = English.monthMap[d])):\n return getMonth(date) === tmp;\n }\n }\n return compareDate(date, d, margin);\n}\n\nmodule.exports = fullCompareDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/fullCompareDate.js\n// module id = 297\n// module chunks = 0","'use strict';\n\nfunction trim(str) {\n return str.trim();\n}\n\nmodule.exports = trim;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/trim.js\n// module id = 298\n// module chunks = 0","'use strict';\n\nvar setDate = require('./setDate'),\n getDate = require('./getDate'),\n getYear = require('./getYear'),\n getMonth = require('./getMonth'),\n getNewDate = require('./getNewDate');\n\nfunction compareDay(d, shift) {\n var comp = getNewDate();\n if (shift) {\n setDate(comp, getDate(comp) + shift);\n }\n return getYear(d) === getYear(comp) &&\n getMonth(d) === getMonth(comp) &&\n getDate(d) === getDate(comp);\n}\n\nmodule.exports = compareDay;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/compareDay.js\n// module id = 299\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n createDate = require('./internal/createDate');\n\nSugar.Date.defineInstance({\n\n 'isAfter': function(date, d, margin) {\n return date.getTime() > createDate(d).getTime() - (margin || 0);\n }\n\n});\n\nmodule.exports = Sugar.Date.isAfter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isAfter.js\n// module id = 300\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n createDate = require('./internal/createDate');\n\nSugar.Date.defineInstance({\n\n 'isBefore': function(date, d, margin) {\n return date.getTime() < createDate(d).getTime() + (margin || 0);\n }\n\n});\n\nmodule.exports = Sugar.Date.isBefore;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isBefore.js\n// module id = 301\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n createDate = require('./internal/createDate'),\n mathAliases = require('../common/var/mathAliases');\n\nvar min = mathAliases.min,\n max = mathAliases.max;\n\nSugar.Date.defineInstance({\n\n 'isBetween': function(date, d1, d2, margin) {\n var t = date.getTime();\n var t1 = createDate(d1).getTime();\n var t2 = createDate(d2).getTime();\n var lo = min(t1, t2);\n var hi = max(t1, t2);\n margin = margin || 0;\n return (lo - margin <= t) && (hi + margin >= t);\n }\n\n});\n\nmodule.exports = Sugar.Date.isBetween;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isBetween.js\n// module id = 302\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isFriday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isFriday.js\n// module id = 303\n// module chunks = 0","'use strict';\n\nvar buildRelativeAliases = require('../internal/buildRelativeAliases');\n\nbuildRelativeAliases();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/build/buildRelativeAliasesCall.js\n// module id = 304\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n spaceSplit = require('../../common/internal/spaceSplit'),\n fullCompareDate = require('./fullCompareDate'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n defineInstanceSimilar = require('../../common/internal/defineInstanceSimilar');\n\nvar English = LocaleHelpers.English,\n sugarDate = namespaceAliases.sugarDate;\n\nfunction buildRelativeAliases() {\n var special = spaceSplit('Today Yesterday Tomorrow Weekday Weekend Future Past');\n var weekdays = English.weekdays.slice(0, 7);\n var months = English.months.slice(0, 12);\n var together = special.concat(weekdays).concat(months);\n defineInstanceSimilar(sugarDate, together, function(methods, name) {\n methods['is'+ name] = function(d) {\n return fullCompareDate(d, name);\n };\n });\n}\n\nmodule.exports = buildRelativeAliases;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/buildRelativeAliases.js\n// module id = 305\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isFuture;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isFuture.js\n// module id = 306\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isLastMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isLastMonth.js\n// module id = 307\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isLastWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isLastWeek.js\n// module id = 308\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isLastYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isLastYear.js\n// module id = 309\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n getYear = require('./internal/getYear');\n\nSugar.Date.defineInstance({\n\n 'isLeapYear': function(date) {\n var year = getYear(date);\n return (year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0);\n }\n\n});\n\nmodule.exports = Sugar.Date.isLeapYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isLeapYear.js\n// module id = 310\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isMonday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isMonday.js\n// module id = 311\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isNextMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isNextMonth.js\n// module id = 312\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isNextWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isNextWeek.js\n// module id = 313\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isNextYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isNextYear.js\n// module id = 314\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isPast;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isPast.js\n// module id = 315\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isSaturday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isSaturday.js\n// module id = 316\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isSunday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isSunday.js\n// module id = 317\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isThisMonth;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isThisMonth.js\n// module id = 318\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isThisWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isThisWeek.js\n// module id = 319\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.isThisYear;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isThisYear.js\n// module id = 320\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isThursday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isThursday.js\n// module id = 321\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isToday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isToday.js\n// module id = 322\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isTomorrow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isTomorrow.js\n// module id = 323\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isTuesday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isTuesday.js\n// module id = 324\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n isUTC = require('./internal/isUTC');\n\nSugar.Date.defineInstance({\n\n 'isUTC': function(date) {\n return isUTC(date);\n }\n\n});\n\nmodule.exports = Sugar.Date.isUTC;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isUTC.js\n// module id = 325\n// module chunks = 0","'use strict';\n\nvar _utc = require('../../common/var/_utc'),\n tzOffset = require('./tzOffset');\n\nfunction isUTC(d) {\n return !!_utc(d) || tzOffset(d) === 0;\n}\n\nmodule.exports = isUTC;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/isUTC.js\n// module id = 326\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n dateIsValid = require('./internal/dateIsValid');\n\nSugar.Date.defineInstance({\n\n 'isValid': function(date) {\n return dateIsValid(date);\n }\n\n});\n\nmodule.exports = Sugar.Date.isValid;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isValid.js\n// module id = 327\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isWednesday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isWednesday.js\n// module id = 328\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isWeekday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isWeekday.js\n// module id = 329\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isWeekend;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isWeekend.js\n// module id = 330\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildRelativeAliasesCall');\n\nmodule.exports = Sugar.Date.isYesterday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/isYesterday.js\n// module id = 331\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nSugar.Date.defineInstance({\n\n 'iso': function(date) {\n return date.toISOString();\n }\n\n});\n\nmodule.exports = Sugar.Date.iso;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/iso.js\n// module id = 332\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.millisecondsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/millisecondsAgo.js\n// module id = 333\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.millisecondsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/millisecondsFromNow.js\n// module id = 334\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.millisecondsSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/millisecondsSince.js\n// module id = 335\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.millisecondsUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/millisecondsUntil.js\n// module id = 336\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.minutesAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/minutesAgo.js\n// module id = 337\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.minutesFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/minutesFromNow.js\n// module id = 338\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.minutesSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/minutesSince.js\n// module id = 339\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.minutesUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/minutesUntil.js\n// module id = 340\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.monthsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/monthsAgo.js\n// module id = 341\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.monthsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/monthsFromNow.js\n// module id = 342\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.monthsSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/monthsSince.js\n// module id = 343\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.monthsUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/monthsUntil.js\n// module id = 344\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n dateRelative = require('./internal/dateRelative');\n\nSugar.Date.defineInstance({\n\n 'relative': function(date, localeCode, fn) {\n return dateRelative(date, null, localeCode, fn);\n }\n\n});\n\nmodule.exports = Sugar.Date.relative;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/relative.js\n// module id = 345\n// module chunks = 0","'use strict';\n\nvar LocaleHelpers = require('../var/LocaleHelpers'),\n dateFormat = require('./dateFormat'),\n classChecks = require('../../common/var/classChecks'),\n assertDateIsValid = require('./assertDateIsValid'),\n getAdjustedUnitForDate = require('./getAdjustedUnitForDate');\n\nvar isFunction = classChecks.isFunction,\n localeManager = LocaleHelpers.localeManager;\n\nfunction dateRelative(d, dRelative, arg1, arg2) {\n var adu, format, type, localeCode, fn;\n assertDateIsValid(d);\n if (isFunction(arg1)) {\n fn = arg1;\n } else {\n localeCode = arg1;\n fn = arg2;\n }\n adu = getAdjustedUnitForDate(d, dRelative);\n if (fn) {\n format = fn.apply(d, adu.concat(localeManager.get(localeCode)));\n if (format) {\n return dateFormat(d, format, localeCode);\n }\n }\n // Adjust up if time is in ms, as this doesn't\n // look very good for a standard relative date.\n if (adu[1] === 0) {\n adu[1] = 1;\n adu[0] = 1;\n }\n if (dRelative) {\n type = 'duration';\n } else if (adu[2] > 0) {\n type = 'future';\n } else {\n type = 'past';\n }\n return localeManager.get(localeCode).getRelativeFormat(adu, type);\n}\n\nmodule.exports = dateRelative;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/dateRelative.js\n// module id = 346\n// module chunks = 0","'use strict';\n\nvar getNewDate = require('./getNewDate'),\n mathAliases = require('../../common/var/mathAliases'),\n getAdjustedUnit = require('./getAdjustedUnit'),\n getTimeDistanceForUnit = require('./getTimeDistanceForUnit');\n\nvar abs = mathAliases.abs;\n\nfunction getAdjustedUnitForDate(d, dRelative) {\n var ms;\n if (!dRelative) {\n dRelative = getNewDate();\n if (d > dRelative) {\n // If our date is greater than the one that we got from getNewDate, it\n // means that we are finding the unit for a date that is in the future\n // relative to now. However, often the incoming date was created in\n // the same cycle as our comparison, but our \"now\" date will have been\n // created an instant after it, creating situations where \"5 minutes from\n // now\" becomes \"4 minutes from now\" in the same tick. To prevent this,\n // subtract a buffer of 10ms to compensate.\n dRelative = new Date(dRelative.getTime() - 10);\n }\n }\n ms = d - dRelative;\n return getAdjustedUnit(ms, function(u) {\n return abs(getTimeDistanceForUnit(d, dRelative, u));\n });\n}\n\nmodule.exports = getAdjustedUnitForDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getAdjustedUnitForDate.js\n// module id = 347\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n createDate = require('./internal/createDate'),\n dateRelative = require('./internal/dateRelative');\n\nSugar.Date.defineInstance({\n\n 'relativeTo': function(date, d, localeCode) {\n return dateRelative(date, createDate(d), localeCode);\n }\n\n});\n\nmodule.exports = Sugar.Date.relativeTo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/relativeTo.js\n// module id = 348\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n DateUnitIndexes = require('./var/DateUnitIndexes'),\n moveToBeginningOfUnit = require('./internal/moveToBeginningOfUnit'),\n getUnitIndexForParamName = require('./internal/getUnitIndexForParamName');\n\nvar DAY_INDEX = DateUnitIndexes.DAY_INDEX;\n\nSugar.Date.defineInstance({\n\n 'reset': function(date, unit, localeCode) {\n var unitIndex = unit ? getUnitIndexForParamName(unit) : DAY_INDEX;\n moveToBeginningOfUnit(date, unitIndex, localeCode);\n return date;\n }\n\n});\n\nmodule.exports = Sugar.Date.reset;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/reset.js\n// module id = 349\n// module chunks = 0","'use strict';\n\nvar iterateOverDateParams = require('./iterateOverDateParams');\n\nfunction getUnitIndexForParamName(name) {\n var params = {}, unitIndex;\n params[name] = 1;\n iterateOverDateParams(params, function(name, val, unit, i) {\n unitIndex = i;\n return false;\n });\n return unitIndex;\n}\n\nmodule.exports = getUnitIndexForParamName;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/internal/getUnitIndexForParamName.js\n// module id = 350\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n advanceDateWithArgs = require('./internal/advanceDateWithArgs');\n\nSugar.Date.defineInstanceWithArguments({\n\n 'rewind': function(d, args) {\n return advanceDateWithArgs(d, args, -1);\n }\n\n});\n\nmodule.exports = Sugar.Date.rewind;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/rewind.js\n// module id = 351\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.secondsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/secondsAgo.js\n// module id = 352\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.secondsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/secondsFromNow.js\n// module id = 353\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.secondsSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/secondsSince.js\n// module id = 354\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.secondsUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/secondsUntil.js\n// module id = 355\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n updateDate = require('./internal/updateDate'),\n collectDateArguments = require('./internal/collectDateArguments');\n\nSugar.Date.defineInstanceWithArguments({\n\n 'set': function(d, args) {\n args = collectDateArguments(args);\n return updateDate(d, args[0], args[1]);\n }\n\n});\n\nmodule.exports = Sugar.Date.set;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/set.js\n// module id = 356\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n setISOWeekNumber = require('./internal/setISOWeekNumber');\n\nSugar.Date.defineInstance({\n\n 'setISOWeek': function(date, num) {\n return setISOWeekNumber(date, num);\n }\n\n});\n\nmodule.exports = Sugar.Date.setISOWeek;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/setISOWeek.js\n// module id = 357\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n _utc = require('../common/var/_utc');\n\nSugar.Date.defineInstance({\n\n 'setUTC': function(date, on) {\n return _utc(date, on);\n }\n\n});\n\nmodule.exports = Sugar.Date.setUTC;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/setUTC.js\n// module id = 358\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n setWeekday = require('./internal/setWeekday');\n\nSugar.Date.defineInstance({\n\n 'setWeekday': function(date, dow) {\n return setWeekday(date, dow);\n }\n\n});\n\nmodule.exports = Sugar.Date.setWeekday;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/setWeekday.js\n// module id = 359\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.weeksAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/weeksAgo.js\n// module id = 360\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.weeksFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/weeksFromNow.js\n// module id = 361\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.weeksSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/weeksSince.js\n// module id = 362\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.weeksUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/weeksUntil.js\n// module id = 363\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.yearsAgo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/yearsAgo.js\n// module id = 364\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.yearsFromNow;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/yearsFromNow.js\n// module id = 365\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.yearsSince;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/yearsSince.js\n// module id = 366\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core');\n\nrequire('./build/buildDateUnitMethodsCall');\n\nmodule.exports = Sugar.Date.yearsUntil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/yearsUntil.js\n// module id = 367\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n _dateOptions = require('./var/_dateOptions');\n\nmodule.exports = Sugar.Date.getOption;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/getOption.js\n// module id = 368\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n _dateOptions = require('./var/_dateOptions');\n\nmodule.exports = Sugar.Date.setOption;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/setOption.js\n// module id = 369\n// module chunks = 0","'use strict';\n\n// Static Methods\nrequire('../date/range');\n\n// Prototype Methods\nrequire('./clamp');\nrequire('./clone');\nrequire('./contains');\nrequire('./days');\nrequire('./every');\nrequire('./hours');\nrequire('./intersect');\nrequire('./isValid');\nrequire('./milliseconds');\nrequire('./minutes');\nrequire('./months');\nrequire('./seconds');\nrequire('./span');\nrequire('./toArray');\nrequire('./toString');\nrequire('./union');\nrequire('./weeks');\nrequire('./years');\n\nmodule.exports = require('sugar-core');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/index.js\n// module id = 370\n// module chunks = 0","'use strict';\n\nvar Sugar = require('sugar-core'),\n DateRangeConstructor = require('../range/var/DateRangeConstructor');\n\nSugar.Date.defineStatic({\n\n 'range': DateRangeConstructor\n\n});\n\nmodule.exports = Sugar.Date.range;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/date/range.js\n// module id = 371\n// module chunks = 0","'use strict';\n\nvar Range = require('../internal/Range'),\n classChecks = require('../../common/var/classChecks'),\n getDateForRange = require('../internal/getDateForRange'),\n createDateRangeFromString = require('../internal/createDateRangeFromString');\n\nvar isString = classChecks.isString;\n\nvar DateRangeConstructor = function(start, end) {\n if (arguments.length === 1 && isString(start)) {\n return createDateRangeFromString(start);\n }\n return new Range(getDateForRange(start), getDateForRange(end));\n};\n\nmodule.exports = DateRangeConstructor;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/var/DateRangeConstructor.js\n// module id = 372\n// module chunks = 0","'use strict';\n\nvar cloneRangeMember = require('./cloneRangeMember');\n\nfunction Range(start, end) {\n this.start = cloneRangeMember(start);\n this.end = cloneRangeMember(end);\n}\n\nmodule.exports = Range;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/Range.js\n// module id = 373\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../../common/var/classChecks'),\n getRangeMemberPrimitiveValue = require('./getRangeMemberPrimitiveValue');\n\nvar isDate = classChecks.isDate;\n\nfunction cloneRangeMember(m) {\n if (isDate(m)) {\n return new Date(m.getTime());\n } else {\n return getRangeMemberPrimitiveValue(m);\n }\n}\n\nmodule.exports = cloneRangeMember;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/cloneRangeMember.js\n// module id = 374\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../../common/var/classChecks');\n\nvar isDate = classChecks.isDate;\n\nfunction getRangeMemberPrimitiveValue(m) {\n if (m == null) return m;\n return isDate(m) ? m.getTime() : m.valueOf();\n}\n\nmodule.exports = getRangeMemberPrimitiveValue;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/getRangeMemberPrimitiveValue.js\n// module id = 375\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../../common/var/classChecks'),\n namespaceAliases = require('../../common/var/namespaceAliases');\n\nvar isDate = classChecks.isDate,\n sugarDate = namespaceAliases.sugarDate;\n\nfunction getDateForRange(d) {\n if (isDate(d)) {\n return d;\n } else if (d == null) {\n return new Date();\n } else if (sugarDate.create) {\n return sugarDate.create(d);\n }\n return new Date(d);\n}\n\nmodule.exports = getDateForRange;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/getDateForRange.js\n// module id = 376\n// module chunks = 0","'use strict';\n\nvar Range = require('./Range'),\n DurationTextFormats = require('../var/DurationTextFormats'),\n incrementDate = require('./incrementDate'),\n getDateForRange = require('./getDateForRange'),\n namespaceAliases = require('../../common/var/namespaceAliases'),\n getDateIncrementObject = require('./getDateIncrementObject');\n\nvar sugarDate = namespaceAliases.sugarDate,\n RANGE_REG_FROM_TO = DurationTextFormats.RANGE_REG_FROM_TO,\n RANGE_REG_REAR_DURATION = DurationTextFormats.RANGE_REG_REAR_DURATION,\n RANGE_REG_FRONT_DURATION = DurationTextFormats.RANGE_REG_FRONT_DURATION;\n\nfunction createDateRangeFromString(str) {\n var match, datetime, duration, dio, start, end;\n if (sugarDate.get && (match = str.match(RANGE_REG_FROM_TO))) {\n start = getDateForRange(match[1].replace('from', 'at'));\n end = sugarDate.get(start, match[2]);\n return new Range(start, end);\n }\n if (match = str.match(RANGE_REG_FRONT_DURATION)) {\n duration = match[1];\n datetime = match[2];\n }\n if (match = str.match(RANGE_REG_REAR_DURATION)) {\n datetime = match[1];\n duration = match[2];\n }\n if (datetime && duration) {\n start = getDateForRange(datetime);\n dio = getDateIncrementObject(duration);\n end = incrementDate(start, dio[0], dio[1]);\n } else {\n start = str;\n }\n return new Range(getDateForRange(start), getDateForRange(end));\n}\n\nmodule.exports = createDateRangeFromString;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/createDateRangeFromString.js\n// module id = 377\n// module chunks = 0","'use strict';\n\nvar FULL_CAPTURED_DURATION = require('./FULL_CAPTURED_DURATION');\n\nmodule.exports = {\n RANGE_REG_FROM_TO: /(?:from)?\\s*(.+)\\s+(?:to|until)\\s+(.+)$/i,\n RANGE_REG_REAR_DURATION: RegExp('(.+)\\\\s*for\\\\s*' + FULL_CAPTURED_DURATION, 'i'),\n RANGE_REG_FRONT_DURATION: RegExp('(?:for)?\\\\s*'+ FULL_CAPTURED_DURATION +'\\\\s*(?:starting)?\\\\s*at\\\\s*(.+)', 'i')\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/var/DurationTextFormats.js\n// module id = 378\n// module chunks = 0","'use strict';\n\nvar DURATION_UNITS = require('./DURATION_UNITS');\n\nmodule.exports = '((?:\\\\d+)?\\\\s*(?:' + DURATION_UNITS + '))s?';\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/var/FULL_CAPTURED_DURATION.js\n// module id = 379\n// module chunks = 0","'use strict';\n\nmodule.exports = 'year|month|week|day|hour|minute|second|millisecond';\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/var/DURATION_UNITS.js\n// module id = 380\n// module chunks = 0","'use strict';\n\nvar MULTIPLIERS = require('../var/MULTIPLIERS'),\n callDateSet = require('../../common/internal/callDateSet'),\n callDateGet = require('../../common/internal/callDateGet');\n\nfunction incrementDate(src, amount, unit) {\n var mult = MULTIPLIERS[unit], d;\n if (mult) {\n d = new Date(src.getTime() + (amount * mult));\n } else {\n d = new Date(src);\n callDateSet(d, unit, callDateGet(src, unit) + amount);\n }\n return d;\n}\n\nmodule.exports = incrementDate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/incrementDate.js\n// module id = 381\n// module chunks = 0","'use strict';\n\nvar MULTIPLIERS = {\n 'Hours': 60 * 60 * 1000,\n 'Minutes': 60 * 1000,\n 'Seconds': 1000,\n 'Milliseconds': 1\n};\n\nmodule.exports = MULTIPLIERS;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/var/MULTIPLIERS.js\n// module id = 382\n// module chunks = 0","'use strict';\n\nvar DURATION_REG = require('../var/DURATION_REG'),\n classChecks = require('../../common/var/classChecks'),\n simpleCapitalize = require('../../common/internal/simpleCapitalize');\n\nvar isNumber = classChecks.isNumber;\n\nfunction getDateIncrementObject(amt) {\n var match, val, unit;\n if (isNumber(amt)) {\n return [amt, 'Milliseconds'];\n }\n match = amt.match(DURATION_REG);\n val = +match[1] || 1;\n unit = simpleCapitalize(match[2].toLowerCase());\n if (unit.match(/hour|minute|second/i)) {\n unit += 's';\n } else if (unit === 'Year') {\n unit = 'FullYear';\n } else if (unit === 'Week') {\n unit = 'Date';\n val *= 7;\n } else if (unit === 'Day') {\n unit = 'Date';\n }\n return [val, unit];\n}\n\nmodule.exports = getDateIncrementObject;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/getDateIncrementObject.js\n// module id = 383\n// module chunks = 0","'use strict';\n\nvar DURATION_UNITS = require('./DURATION_UNITS');\n\nmodule.exports = RegExp('(\\\\d+)?\\\\s*('+ DURATION_UNITS +')s?', 'i');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/var/DURATION_REG.js\n// module id = 384\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n rangeClamp = require('./internal/rangeClamp'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'clamp': function(obj) {\n return rangeClamp(this, obj);\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"clamp\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/clamp.js\n// module id = 385\n// module chunks = 0","'use strict';\n\nvar cloneRangeMember = require('./cloneRangeMember');\n\nfunction rangeClamp(range, obj) {\n var clamped,\n start = range.start,\n end = range.end,\n min = end < start ? end : start,\n max = start > end ? start : end;\n if (obj < min) {\n clamped = min;\n } else if (obj > max) {\n clamped = max;\n } else {\n clamped = obj;\n }\n return cloneRangeMember(clamped);\n}\n\nmodule.exports = rangeClamp;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/rangeClamp.js\n// module id = 386\n// module chunks = 0","'use strict';\n\nvar coreUtilityAliases = require('../var/coreUtilityAliases');\n\nvar forEachProperty = coreUtilityAliases.forEachProperty;\n\nfunction defineOnPrototype(ctor, methods) {\n var proto = ctor.prototype;\n forEachProperty(methods, function(val, key) {\n proto[key] = val;\n });\n}\n\nmodule.exports = defineOnPrototype;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/defineOnPrototype.js\n// module id = 387\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'clone': function() {\n return new Range(this.start, this.end);\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"clone\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/clone.js\n// module id = 388\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'contains': function(obj) {\n if (obj == null) return false;\n if (obj.start && obj.end) {\n return obj.start >= this.start && obj.start <= this.end &&\n obj.end >= this.start && obj.end <= this.end;\n } else {\n return obj >= this.start && obj <= this.end;\n }\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"contains\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/contains.js\n// module id = 389\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"days\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/days.js\n// module id = 390\n// module chunks = 0","'use strict';\n\nvar buildDateRangeUnits = require('../internal/buildDateRangeUnits');\n\nbuildDateRangeUnits();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/build/buildDateRangeUnitsCall.js\n// module id = 391\n// module chunks = 0","'use strict';\n\nvar MULTIPLIERS = require('../var/MULTIPLIERS'),\n DURATION_UNITS = require('../var/DURATION_UNITS'),\n Range = require('./Range'),\n trunc = require('../../common/var/trunc'),\n forEach = require('../../common/internal/forEach'),\n rangeEvery = require('./rangeEvery'),\n simpleCapitalize = require('../../common/internal/simpleCapitalize'),\n defineOnPrototype = require('../../common/internal/defineOnPrototype');\n\nfunction buildDateRangeUnits() {\n var methods = {};\n forEach(DURATION_UNITS.split('|'), function(unit, i) {\n var name = unit + 's', mult, fn;\n if (i < 4) {\n fn = function() {\n return rangeEvery(this, unit, true);\n };\n } else {\n mult = MULTIPLIERS[simpleCapitalize(name)];\n fn = function() {\n return trunc((this.end - this.start) / mult);\n };\n }\n methods[name] = fn;\n });\n defineOnPrototype(Range, methods);\n}\n\nmodule.exports = buildDateRangeUnits;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/buildDateRangeUnits.js\n// module id = 392\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../../common/var/classChecks'),\n rangeIsValid = require('./rangeIsValid'),\n incrementDate = require('./incrementDate'),\n incrementNumber = require('./incrementNumber'),\n incrementString = require('./incrementString'),\n getGreaterPrecision = require('./getGreaterPrecision'),\n getDateIncrementObject = require('./getDateIncrementObject');\n\nvar isNumber = classChecks.isNumber,\n isString = classChecks.isString,\n isDate = classChecks.isDate,\n isFunction = classChecks.isFunction;\n\nfunction rangeEvery(range, step, countOnly, fn) {\n var increment,\n precision,\n dio,\n unit,\n start = range.start,\n end = range.end,\n inverse = end < start,\n current = start,\n index = 0,\n result = [];\n\n if (!rangeIsValid(range)) {\n return [];\n }\n if (isFunction(step)) {\n fn = step;\n step = null;\n }\n step = step || 1;\n if (isNumber(start)) {\n precision = getGreaterPrecision(start, step);\n increment = function() {\n return incrementNumber(current, step, precision);\n };\n } else if (isString(start)) {\n increment = function() {\n return incrementString(current, step);\n };\n } else if (isDate(start)) {\n dio = getDateIncrementObject(step);\n step = dio[0];\n unit = dio[1];\n increment = function() {\n return incrementDate(current, step, unit);\n };\n }\n // Avoiding infinite loops\n if (inverse && step > 0) {\n step *= -1;\n }\n while(inverse ? current >= end : current <= end) {\n if (!countOnly) {\n result.push(current);\n }\n if (fn) {\n fn(current, index, range);\n }\n current = increment();\n index++;\n }\n return countOnly ? index - 1 : result;\n}\n\nmodule.exports = rangeEvery;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/rangeEvery.js\n// module id = 393\n// module chunks = 0","'use strict';\n\nvar isValidRangeMember = require('./isValidRangeMember');\n\nfunction rangeIsValid(range) {\n return isValidRangeMember(range.start) &&\n isValidRangeMember(range.end) &&\n typeof range.start === typeof range.end;\n}\n\nmodule.exports = rangeIsValid;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/rangeIsValid.js\n// module id = 394\n// module chunks = 0","'use strict';\n\nvar valueIsNotInfinite = require('./valueIsNotInfinite'),\n getRangeMemberPrimitiveValue = require('./getRangeMemberPrimitiveValue');\n\nfunction isValidRangeMember(m) {\n var val = getRangeMemberPrimitiveValue(m);\n return (!!val || val === 0) && valueIsNotInfinite(m);\n}\n\nmodule.exports = isValidRangeMember;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/isValidRangeMember.js\n// module id = 395\n// module chunks = 0","'use strict';\n\nfunction valueIsNotInfinite(m) {\n return m !== -Infinity && m !== Infinity;\n}\n\nmodule.exports = valueIsNotInfinite;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/valueIsNotInfinite.js\n// module id = 396\n// module chunks = 0","'use strict';\n\nvar withPrecision = require('../../common/internal/withPrecision');\n\nfunction incrementNumber(current, amount, precision) {\n return withPrecision(current + amount, precision);\n}\n\nmodule.exports = incrementNumber;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/incrementNumber.js\n// module id = 397\n// module chunks = 0","'use strict';\n\nvar chr = require('../../common/var/chr');\n\nfunction incrementString(current, amount) {\n return chr(current.charCodeAt(0) + amount);\n}\n\nmodule.exports = incrementString;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/incrementString.js\n// module id = 398\n// module chunks = 0","'use strict';\n\nvar mathAliases = require('../../common/var/mathAliases'),\n getPrecision = require('./getPrecision');\n\nvar max = mathAliases.max;\n\nfunction getGreaterPrecision(n1, n2) {\n return max(getPrecision(n1), getPrecision(n2));\n}\n\nmodule.exports = getGreaterPrecision;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/getGreaterPrecision.js\n// module id = 399\n// module chunks = 0","'use strict';\n\nvar periodSplit = require('../../common/internal/periodSplit');\n\nfunction getPrecision(n) {\n var split = periodSplit(n.toString());\n return split[1] ? split[1].length : 0;\n}\n\nmodule.exports = getPrecision;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/getPrecision.js\n// module id = 400\n// module chunks = 0","'use strict';\n\nvar CommonChars = require('../var/CommonChars');\n\nvar HALF_WIDTH_PERIOD = CommonChars.HALF_WIDTH_PERIOD;\n\nfunction periodSplit(str) {\n return str.split(HALF_WIDTH_PERIOD);\n}\n\nmodule.exports = periodSplit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/common/internal/periodSplit.js\n// module id = 401\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n rangeEvery = require('./internal/rangeEvery'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'every': function(amount, fn) {\n return rangeEvery(this, amount, false, fn);\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"every\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/every.js\n// module id = 402\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"hours\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/hours.js\n// module id = 403\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'intersect': function(range) {\n if (range.start > this.end || range.end < this.start) {\n return new Range(NaN, NaN);\n }\n return new Range(\n this.start > range.start ? this.start : range.start,\n this.end < range.end ? this.end : range.end\n );\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"intersect\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/intersect.js\n// module id = 404\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n rangeIsValid = require('./internal/rangeIsValid'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'isValid': function() {\n return rangeIsValid(this);\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"isValid\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/isValid.js\n// module id = 405\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"milliseconds\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/milliseconds.js\n// module id = 406\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"minutes\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/minutes.js\n// module id = 407\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"months\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/months.js\n// module id = 408\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"seconds\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/seconds.js\n// module id = 409\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n mathAliases = require('../common/var/mathAliases'),\n rangeIsValid = require('./internal/rangeIsValid'),\n defineOnPrototype = require('../common/internal/defineOnPrototype'),\n getRangeMemberNumericValue = require('./internal/getRangeMemberNumericValue');\n\nvar abs = mathAliases.abs;\n\ndefineOnPrototype(Range, {\n\n 'span': function() {\n var n = getRangeMemberNumericValue(this.end) - getRangeMemberNumericValue(this.start);\n return rangeIsValid(this) ? abs(n) + 1 : NaN;\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"span\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/span.js\n// module id = 410\n// module chunks = 0","'use strict';\n\nvar classChecks = require('../../common/var/classChecks');\n\nvar isString = classChecks.isString;\n\nfunction getRangeMemberNumericValue(m) {\n return isString(m) ? m.charCodeAt(0) : m;\n}\n\nmodule.exports = getRangeMemberNumericValue;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/internal/getRangeMemberNumericValue.js\n// module id = 411\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n rangeEvery = require('./internal/rangeEvery'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'toArray': function() {\n return rangeEvery(this);\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"toArray\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/toArray.js\n// module id = 412\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n rangeIsValid = require('./internal/rangeIsValid'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'toString': function() {\n return rangeIsValid(this) ? this.start + '..' + this.end : 'Invalid Range';\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"toString\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/toString.js\n// module id = 413\n// module chunks = 0","'use strict';\n\nvar Range = require('./internal/Range'),\n defineOnPrototype = require('../common/internal/defineOnPrototype');\n\ndefineOnPrototype(Range, {\n\n 'union': function(range) {\n return new Range(\n this.start < range.start ? this.start : range.start,\n this.end > range.end ? this.end : range.end\n );\n }\n\n});\n\n// This package does not export anything as it is\n// simply defining \"union\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/union.js\n// module id = 414\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"weeks\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/weeks.js\n// module id = 415\n// module chunks = 0","'use strict';\n\nrequire('./build/buildDateRangeUnitsCall');\n\n// This package does not export anything as it is\n// simply defining \"years\" on Range.prototype.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/range/years.js\n// module id = 416\n// module chunks = 0","'use strict';\n\nrequire('./ca');\nrequire('./da');\nrequire('./de');\nrequire('./es');\nrequire('./fi');\nrequire('./fr');\nrequire('./it');\nrequire('./ja');\nrequire('./ko');\nrequire('./nl');\nrequire('./no');\nrequire('./pl');\nrequire('./pt');\nrequire('./ru');\nrequire('./sv');\nrequire('./zh-CN');\nrequire('./zh-TW');\n\nmodule.exports = require('sugar-core');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/index.js\n// module id = 417\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Catalan locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('ca')\n *\n */\naddLocale('ca', {\n 'plural': true,\n 'units': 'milisegon:|s,segon:|s,minut:|s,hor:a|es,di:a|es,setman:a|es,mes:|os,any:|s',\n 'months': 'gen:er|,febr:er|,mar:ç|,abr:il|,mai:g|,jun:y|,jul:iol|,ag:ost|,set:embre|,oct:ubre|,nov:embre|,des:embre|',\n 'weekdays': 'diumenge|dg,dilluns|dl,dimarts|dt,dimecres|dc,dijous|dj,divendres|dv,dissabte|ds',\n 'numerals': 'zero,un,dos,tres,quatre,cinc,sis,set,vuit,nou,deu',\n 'tokens': 'el,la,de',\n 'short': '{dd}/{MM}/{yyyy}',\n 'medium': '{d} {month} {yyyy}',\n 'long': '{d} {month} {yyyy} {time}',\n 'full': '{weekday} {d} {month} {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{sign} {num} {unit}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'timeMarkers': 'a las',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': \"abans d'ahir\", 'value': -2 },\n { 'name': 'day', 'src': 'ahir', 'value': -1 },\n { 'name': 'day', 'src': 'avui', 'value': 0 },\n { 'name': 'day', 'src': 'demà|dema', 'value': 1 },\n { 'name': 'sign', 'src': 'fa', 'value': -1 },\n { 'name': 'sign', 'src': 'en', 'value': 1 },\n { 'name': 'shift', 'src': 'passat', 'value': -1 },\n { 'name': 'shift', 'src': 'el proper|la propera', 'value': 1 }\n ],\n 'parse': [\n '{sign} {num} {unit}',\n '{num} {unit} {sign}',\n '{0?}{1?} {unit:5-7} {shift}',\n '{0?}{1?} {shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift} {weekday}',\n '{weekday} {shift}',\n '{date?} {2?} {months}\\\\.? {2?} {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"ca\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/ca.js\n// module id = 418\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Danish locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('da')\n *\n */\naddLocale('da', {\n 'plural': true,\n 'units': 'millisekund:|er,sekund:|er,minut:|ter,tim:e|er,dag:|e,ug:e|er|en,måned:|er|en+maaned:|er|en,år:||et+aar:||et',\n 'months': 'jan:uar|,feb:ruar|,mar:ts|,apr:il|,maj,jun:i|,jul:i|,aug:ust|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',\n 'weekdays': 'søn:dag|+son:dag|,man:dag|,tir:sdag|,ons:dag|,tor:sdag|,fre:dag|,lør:dag|+lor:dag|',\n 'numerals': 'nul,en|et,to,tre,fire,fem,seks,syv,otte,ni,ti',\n 'tokens': 'den,for',\n 'articles': 'den',\n 'short': '{dd}-{MM}-{yyyy}',\n 'medium': '{d}. {month} {yyyy}',\n 'long': '{d}. {month} {yyyy} {time}',\n 'full': '{weekday} d. {d}. {month} {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{num} {unit} {sign}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'forgårs|i forgårs|forgaars|i forgaars', 'value': -2 },\n { 'name': 'day', 'src': 'i går|igår|i gaar|igaar', 'value': -1 },\n { 'name': 'day', 'src': 'i dag|idag', 'value': 0 },\n { 'name': 'day', 'src': 'i morgen|imorgen', 'value': 1 },\n { 'name': 'day', 'src': 'over morgon|overmorgen|i over morgen|i overmorgen|iovermorgen', 'value': 2 },\n { 'name': 'sign', 'src': 'siden', 'value': -1 },\n { 'name': 'sign', 'src': 'om', 'value': 1 },\n { 'name': 'shift', 'src': 'i sidste|sidste', 'value': -1 },\n { 'name': 'shift', 'src': 'denne', 'value': 0 },\n { 'name': 'shift', 'src': 'næste|naeste', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{num} {unit} {sign}',\n '{sign} {num} {unit}',\n '{1?} {num} {unit} {sign}',\n '{shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{date} {months?}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{shift} {weekday}',\n '{0?} {weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"da\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/da.js\n// module id = 419\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * German locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('de')\n *\n */\naddLocale('de', {\n 'plural': true,\n 'units': 'Millisekunde:|n,Sekunde:|n,Minute:|n,Stunde:|n,Tag:|en,Woche:|n,Monat:|en,Jahr:|en|e',\n 'months': 'Jan:uar|,Feb:ruar|,M:är|ärz|ar|arz,Apr:il|,Mai,Juni,Juli,Aug:ust|,Sept:ember|,Okt:ober|,Nov:ember|,Dez:ember|',\n 'weekdays': 'So:nntag|,Mo:ntag|,Di:enstag|,Mi:ttwoch|,Do:nnerstag|,Fr:eitag|,Sa:mstag|',\n 'numerals': 'null,ein:|e|er|en|em,zwei,drei,vier,fuenf,sechs,sieben,acht,neun,zehn',\n 'tokens': 'der',\n 'short': '{dd}.{MM}.{yyyy}',\n 'medium': '{d}. {Month} {yyyy}',\n 'long': '{d}. {Month} {yyyy} {time}',\n 'full': '{Weekday}, {d}. {Month} {yyyy} {time}',\n 'stamp': '{Dow} {d} {Mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{sign} {num} {unit}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'timeMarkers': 'um',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'vorgestern', 'value': -2 },\n { 'name': 'day', 'src': 'gestern', 'value': -1 },\n { 'name': 'day', 'src': 'heute', 'value': 0 },\n { 'name': 'day', 'src': 'morgen', 'value': 1 },\n { 'name': 'day', 'src': 'übermorgen|ubermorgen|uebermorgen', 'value': 2 },\n { 'name': 'sign', 'src': 'vor:|her', 'value': -1 },\n { 'name': 'sign', 'src': 'in', 'value': 1 },\n { 'name': 'shift', 'src': 'letzte:|r|n|s', 'value': -1 },\n { 'name': 'shift', 'src': 'nächste:|r|n|s+nachste:|r|n|s+naechste:|r|n|s+kommende:n|r', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{sign} {num} {unit}',\n '{num} {unit} {sign}',\n '{shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift?} {day|weekday}',\n '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{shift} {weekday}',\n '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"de\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/de.js\n// module id = 420\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Spanish locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('es')\n *\n */\naddLocale('es', {\n 'plural': true,\n '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',\n '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|',\n 'weekdays': 'dom:ingo|,lun:es|,mar:tes|,mié:rcoles|+mie:rcoles|,jue:ves|,vie:rnes|,sáb:ado|+sab:ado|',\n 'numerals': 'cero,uno,dos,tres,cuatro,cinco,seis,siete,ocho,nueve,diez',\n 'tokens': 'el,la,de',\n 'short': '{dd}/{MM}/{yyyy}',\n 'medium': '{d} de {Month} de {yyyy}',\n 'long': '{d} de {Month} de {yyyy} {time}',\n 'full': '{weekday}, {d} de {month} de {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{sign} {num} {unit}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'timeMarkers': 'a las',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'anteayer', 'value': -2 },\n { 'name': 'day', 'src': 'ayer', 'value': -1 },\n { 'name': 'day', 'src': 'hoy', 'value': 0 },\n { 'name': 'day', 'src': 'mañana|manana', 'value': 1 },\n { 'name': 'sign', 'src': 'hace', 'value': -1 },\n { 'name': 'sign', 'src': 'dentro de', 'value': 1 },\n { 'name': 'shift', 'src': 'pasad:o|a', 'value': -1 },\n { 'name': 'shift', 'src': 'próximo|próxima|proximo|proxima', 'value': 1 }\n ],\n 'parse': [\n '{months} {2?} {year?}',\n '{sign} {num} {unit}',\n '{num} {unit} {sign}',\n '{0?}{1?} {unit:5-7} {shift}',\n '{0?}{1?} {shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift?} {day|weekday} {shift?}',\n '{date} {2?} {months?}\\\\.? {2?} {year?}'\n ],\n 'timeFrontParse': [\n '{shift?} {weekday} {shift?}',\n '{date} {2?} {months?}\\\\.? {2?} {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"es\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/es.js\n// module id = 421\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Finnish locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('fi')\n *\n */\naddLocale('fi', {\n 'plural': true,\n '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',\n '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',\n 'weekdays': 'su:nnuntai||nnuntaina,ma:anantai||anantaina,ti:istai||istaina,ke:skiviikko||skiviikkona,to:rstai||rstaina,pe:rjantai||rjantaina,la:uantai||uantaina',\n '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',\n 'short': '{d}.{M}.{yyyy}',\n 'medium': '{d}. {month} {yyyy}',\n 'long': '{d}. {month} {yyyy} klo {time}',\n 'full': '{weekday} {d}. {month} {yyyy} klo {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}.{mm}',\n 'timeMarkers': 'klo,kello',\n 'ordinalSuffix': '.',\n 'relative': function(num, unit, ms, format) {\n var units = this['units'];\n function numberWithUnit(mult) {\n return num + ' ' + units[(8 * mult) + unit];\n }\n function baseUnit() {\n return numberWithUnit(num === 1 ? 0 : 1);\n }\n switch(format) {\n case 'duration': return baseUnit();\n case 'past': return baseUnit() + ' sitten';\n case 'future': return numberWithUnit(2) + ' kuluttua';\n }\n },\n 'modifiers': [\n { 'name': 'day', 'src': 'toissa päivänä', 'value': -2 },\n { 'name': 'day', 'src': 'eilen|eilistä', 'value': -1 },\n { 'name': 'day', 'src': 'tänään', 'value': 0 },\n { 'name': 'day', 'src': 'huomenna|huomista', 'value': 1 },\n { 'name': 'day', 'src': 'ylihuomenna|ylihuomista', 'value': 2 },\n { 'name': 'sign', 'src': 'sitten|aiemmin', 'value': -1 },\n { 'name': 'sign', 'src': 'päästä|kuluttua|myöhemmin', 'value': 1 },\n { 'name': 'edge', 'src': 'lopussa', 'value': 2 },\n { 'name': 'edge', 'src': 'ensimmäinen|ensimmäisenä', 'value': -2 },\n { 'name': 'shift', 'src': 'edel:linen|lisenä', 'value': -1 },\n { 'name': 'shift', 'src': 'viime', 'value': -1 },\n { 'name': 'shift', 'src': 'tä:llä|ssä|nä|mä', 'value': 0 },\n { 'name': 'shift', 'src': 'seuraava|seuraavana|tuleva|tulevana|ensi', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift?} {day|weekday}',\n '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{shift?} {day|weekday}',\n '{num?} {unit} {sign}',\n '{weekday?},? {date}\\\\.? {months?}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"fi\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/fi.js\n// module id = 422\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * French locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('fr')\n *\n */\naddLocale('fr', {\n 'plural': true,\n 'units': 'milliseconde:|s,seconde:|s,minute:|s,heure:|s,jour:|s,semaine:|s,mois,an:|s|née|nee',\n '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|',\n 'weekdays': 'dim:anche|,lun:di|,mar:di|,mer:credi|,jeu:di|,ven:dredi|,sam:edi|',\n 'numerals': 'zéro,un:|e,deux,trois,quatre,cinq,six,sept,huit,neuf,dix',\n 'tokens': \"l'|la|le,er\",\n 'short': '{dd}/{MM}/{yyyy}',\n 'medium': '{d} {month} {yyyy}',\n 'long': '{d} {month} {yyyy} {time}',\n 'full': '{weekday} {d} {month} {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{sign} {num} {unit}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'timeMarkers': 'à',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'hier', 'value': -1 },\n { 'name': 'day', 'src': \"aujourd'hui\", 'value': 0 },\n { 'name': 'day', 'src': 'demain', 'value': 1 },\n { 'name': 'sign', 'src': 'il y a', 'value': -1 },\n { 'name': 'sign', 'src': \"dans|d'ici\", 'value': 1 },\n { 'name': 'shift', 'src': 'derni:èr|er|ère|ere', 'value': -1 },\n { 'name': 'shift', 'src': 'prochain:|e', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{sign} {num} {unit}',\n '{0?} {unit:5-7} {shift}'\n ],\n 'timeParse': [\n '{day|weekday} {shift?}',\n '{weekday?},? {0?} {date}{1?} {months}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{0?} {weekday} {shift}',\n '{weekday?},? {0?} {date}{1?} {months}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"fr\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/fr.js\n// module id = 423\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Italian locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('it')\n *\n */\naddLocale('it', {\n 'plural': true,\n 'units': 'millisecond:o|i,second:o|i,minut:o|i,or:a|e,giorn:o|i,settiman:a|e,mes:e|i,ann:o|i',\n 'months': 'gen:naio|,feb:braio|,mar:zo|,apr:ile|,mag:gio|,giu:gno|,lug:lio|,ago:sto|,set:tembre|,ott:obre|,nov:embre|,dic:embre|',\n 'weekdays': 'dom:enica|,lun:edì||edi,mar:tedì||tedi,mer:coledì||coledi,gio:vedì||vedi,ven:erdì||erdi,sab:ato|',\n 'numerals': \"zero,un:|a|o|',due,tre,quattro,cinque,sei,sette,otto,nove,dieci\",\n 'tokens': \"l'|la|il\",\n 'short': '{dd}/{MM}/{yyyy}',\n 'medium': '{d} {month} {yyyy}',\n 'long': '{d} {month} {yyyy} {time}',\n 'full': '{weekday}, {d} {month} {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{num} {unit} {sign}',\n 'future': '{num} {unit} {sign}',\n 'duration': '{num} {unit}',\n 'timeMarkers': 'alle',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'ieri', 'value': -1 },\n { 'name': 'day', 'src': 'oggi', 'value': 0 },\n { 'name': 'day', 'src': 'domani', 'value': 1 },\n { 'name': 'day', 'src': 'dopodomani', 'value': 2 },\n { 'name': 'sign', 'src': 'fa', 'value': -1 },\n { 'name': 'sign', 'src': 'da adesso', 'value': 1 },\n { 'name': 'shift', 'src': 'scors:o|a', 'value': -1 },\n { 'name': 'shift', 'src': 'prossim:o|a', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{num} {unit} {sign}',\n '{0?} {unit:5-7} {shift}',\n '{0?} {shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift?} {day|weekday}',\n '{weekday?},? {date} {months?}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{shift?} {day|weekday}',\n '{weekday?},? {date} {months?}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"it\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/it.js\n// module id = 424\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Japanese locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('ja')\n *\n */\naddLocale('ja', {\n 'ampmFront': true,\n 'numeralUnits': true,\n 'allowsFullWidth': true,\n 'timeMarkerOptional': true,\n 'firstDayOfWeek': 0,\n 'firstDayOfWeekYear': 1,\n 'units': 'ミリ秒,秒,分,時間,日,週間|週,ヶ月|ヵ月|月,年|年度',\n 'weekdays': '日:曜日||曜,月:曜日||曜,火:曜日||曜,水:曜日||曜,木:曜日||曜,金:曜日||曜,土:曜日||曜',\n 'numerals': '〇,一,二,三,四,五,六,七,八,九',\n 'placeholders': '十,百,千,万',\n 'timeSuffixes': ',秒,分,時,日,,月,年度?',\n 'short': '{yyyy}/{MM}/{dd}',\n 'medium': '{yyyy}年{M}月{d}日',\n 'long': '{yyyy}年{M}月{d}日{time}',\n 'full': '{yyyy}年{M}月{d}日{time} {weekday}',\n 'stamp': '{yyyy}年{M}月{d}日 {H}:{mm} {dow}',\n 'time': '{tt}{h}時{mm}分',\n 'past': '{num}{unit}{sign}',\n 'future': '{num}{unit}{sign}',\n 'duration': '{num}{unit}',\n 'ampm': '午前,午後',\n 'modifiers': [\n { 'name': 'day', 'src': '一昨々日|前々々日', 'value': -3 },\n { 'name': 'day', 'src': '一昨日|おととい|前々日', 'value': -2 },\n { 'name': 'day', 'src': '昨日|前日', 'value': -1 },\n { 'name': 'day', 'src': '今日|当日|本日', 'value': 0 },\n { 'name': 'day', 'src': '明日|翌日|次日', 'value': 1 },\n { 'name': 'day', 'src': '明後日|翌々日', 'value': 2 },\n { 'name': 'day', 'src': '明々後日|翌々々日', 'value': 3 },\n { 'name': 'sign', 'src': '前', 'value': -1 },\n { 'name': 'sign', 'src': '後', 'value': 1 },\n { 'name': 'edge', 'src': '始|初日|頭', 'value': -2 },\n { 'name': 'edge', 'src': '末|尻', 'value': 2 },\n { 'name': 'edge', 'src': '末日', 'value': 1 },\n { 'name': 'shift', 'src': '一昨々|前々々', 'value': -3 },\n { 'name': 'shift', 'src': '一昨|前々|先々', 'value': -2 },\n { 'name': 'shift', 'src': '先|昨|去|前', 'value': -1 },\n { 'name': 'shift', 'src': '今|本|当', 'value': 0 },\n { 'name': 'shift', 'src': '来|明|翌|次', 'value': 1 },\n { 'name': 'shift', 'src': '明後|翌々|次々|再来|さ来', 'value': 2 },\n { 'name': 'shift', 'src': '明々後|翌々々', 'value': 3 }\n ],\n 'parse': [\n '{month}{edge}',\n '{num}{unit}{sign}',\n '{year?}{month}',\n '{year}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{shift}{unit:5}{weekday?}',\n '{shift}{unit:7}{month}{edge}',\n '{shift}{unit:7}{month?}{date?}',\n '{shift}{unit:6}{edge?}{date?}',\n '{year?}{month?}{date}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"ja\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/ja.js\n// module id = 425\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Korean locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('ko')\n *\n */\naddLocale('ko', {\n 'ampmFront': true,\n 'numeralUnits': true,\n 'units': '밀리초,초,분,시간,일,주,개월|달,년|해',\n 'weekdays': '일:요일|,월:요일|,화:요일|,수:요일|,목:요일|,금:요일|,토:요일|',\n 'numerals': '영|제로,일|한,이,삼,사,오,육,칠,팔,구,십',\n 'short': '{yyyy}.{MM}.{dd}',\n 'medium': '{yyyy}년 {M}월 {d}일',\n 'long': '{yyyy}년 {M}월 {d}일 {time}',\n 'full': '{yyyy}년 {M}월 {d}일 {weekday} {time}',\n 'stamp': '{yyyy}년 {M}월 {d}일 {H}:{mm} {dow}',\n 'time': '{tt} {h}시 {mm}분',\n 'past': '{num}{unit} {sign}',\n 'future': '{num}{unit} {sign}',\n 'duration': '{num}{unit}',\n 'timeSuffixes': ',초,분,시,일,,월,년',\n 'ampm': '오전,오후',\n 'modifiers': [\n { 'name': 'day', 'src': '그저께', 'value': -2 },\n { 'name': 'day', 'src': '어제', 'value': -1 },\n { 'name': 'day', 'src': '오늘', 'value': 0 },\n { 'name': 'day', 'src': '내일', 'value': 1 },\n { 'name': 'day', 'src': '모레', 'value': 2 },\n { 'name': 'sign', 'src': '전', 'value': -1 },\n { 'name': 'sign', 'src': '후', 'value': 1 },\n { 'name': 'shift', 'src': '지난|작', 'value': -1 },\n { 'name': 'shift', 'src': '이번|올', 'value': 0 },\n { 'name': 'shift', 'src': '다음|내', 'value': 1 }\n ],\n 'parse': [\n '{num}{unit} {sign}',\n '{shift?} {unit:5-7}',\n '{year?} {month}',\n '{year}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{shift} {unit:5?} {weekday}',\n '{year?} {month?} {date} {weekday?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"ko\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/ko.js\n// module id = 426\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Dutch locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('nl')\n *\n */\naddLocale('nl', {\n 'plural': true,\n 'units': 'milliseconde:|n,seconde:|n,minu:ut|ten,uur,dag:|en,we:ek|ken,maand:|en,jaar',\n 'months': 'jan:uari|,feb:ruari|,maart|mrt,apr:il|,mei,jun:i|,jul:i|,aug:ustus|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',\n 'weekdays': 'zondag|zo,maandag|ma,dinsdag|di,woensdag|wo|woe,donderdag|do,vrijdag|vr|vrij,zaterdag|za',\n 'numerals': 'nul,een,twee,drie,vier,vijf,zes,zeven,acht,negen,tien',\n 'short': '{dd}-{MM}-{yyyy}',\n 'medium': '{d} {month} {yyyy}',\n 'long': '{d} {Month} {yyyy} {time}',\n 'full': '{weekday} {d} {Month} {yyyy} {time}',\n 'stamp': '{dow} {d} {Mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{num} {unit} {sign}',\n 'future': '{num} {unit} {sign}',\n 'duration': '{num} {unit}',\n 'timeMarkers': \"'s,om\",\n 'modifiers': [\n { 'name': 'day', 'src': 'gisteren', 'value': -1 },\n { 'name': 'day', 'src': 'vandaag', 'value': 0 },\n { 'name': 'day', 'src': 'morgen', 'value': 1 },\n { 'name': 'day', 'src': 'overmorgen', 'value': 2 },\n { 'name': 'sign', 'src': 'geleden', 'value': -1 },\n { 'name': 'sign', 'src': 'vanaf nu', 'value': 1 },\n { 'name': 'shift', 'src': 'laatste|vorige|afgelopen', 'value': -1 },\n { 'name': 'shift', 'src': 'volgend:|e', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{num} {unit} {sign}',\n '{0?} {unit:5-7} {shift}',\n '{0?} {shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift?} {day|weekday}',\n '{weekday?},? {date} {months?}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{shift?} {day|weekday}',\n '{weekday?},? {date} {months?}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"nl\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/nl.js\n// module id = 427\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Norwegian locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('no')\n *\n */\naddLocale('no', {\n 'plural': true,\n 'units': 'millisekund:|er,sekund:|er,minutt:|er,tim:e|er,dag:|er,uk:e|er|en,måned:|er|en+maaned:|er|en,år:||et+aar:||et',\n 'months': 'januar,februar,mars,april,mai,juni,juli,august,september,oktober,november,desember',\n 'weekdays': 'søndag|sondag,mandag,tirsdag,onsdag,torsdag,fredag,lørdag|lordag',\n 'numerals': 'en|et,to,tre,fire,fem,seks,sju|syv,åtte,ni,ti',\n 'tokens': 'den,for',\n 'articles': 'den',\n 'short':'d. {d}. {month} {yyyy}',\n 'long': 'den {d}. {month} {yyyy} {H}:{mm}',\n 'full': '{Weekday} den {d}. {month} {yyyy} {H}:{mm}:{ss}',\n 'past': '{num} {unit} {sign}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'forgårs|i forgårs|forgaars|i forgaars', 'value': -2 },\n { 'name': 'day', 'src': 'i går|igår|i gaar|igaar', 'value': -1 },\n { 'name': 'day', 'src': 'i dag|idag', 'value': 0 },\n { 'name': 'day', 'src': 'i morgen|imorgen', 'value': 1 },\n { 'name': 'day', 'src': 'overimorgen|overmorgen|over i morgen', 'value': 2 },\n { 'name': 'sign', 'src': 'siden', 'value': -1 },\n { 'name': 'sign', 'src': 'om', 'value': 1 },\n { 'name': 'shift', 'src': 'i siste|siste', 'value': -1 },\n { 'name': 'shift', 'src': 'denne', 'value': 0 },\n { 'name': 'shift', 'src': 'neste', 'value': 1 }\n ],\n 'parse': [\n '{num} {unit} {sign}',\n '{sign} {num} {unit}',\n '{1?} {num} {unit} {sign}',\n '{shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{date} {month}',\n '{shift} {weekday}',\n '{0?} {weekday?},? {date?} {month}\\\\.? {year}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"no\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/no.js\n// module id = 428\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Polish locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('pl')\n *\n */\naddLocale('pl', {\n 'plural': true,\n 'units': 'milisekund:a|y|,sekund:a|y|,minut:a|y|,godzin:a|y|,dzień|dni|dni,tydzień|tygodnie|tygodni,miesiąc|miesiące|miesięcy,rok|lata|lat',\n 'months': 'sty:cznia||czeń,lut:ego||y,mar:ca||zec,kwi:etnia||ecień,maj:a|,cze:rwca||rwiec,lip:ca||iec,sie:rpnia||rpień,wrz:eśnia||esień,paź:dziernika||dziernik,lis:topada||topad,gru:dnia||dzień',\n 'weekdays': 'nie:dziela||dzielę,pon:iedziałek|,wt:orek|,śr:oda||odę,czw:artek|,piątek|pt,sobota|sb|sobotę',\n 'numerals': 'zero,jeden|jedną,dwa|dwie,trzy,cztery,pięć,sześć,siedem,osiem,dziewięć,dziesięć',\n 'tokens': 'w|we,roku',\n 'short': '{dd}.{MM}.{yyyy}',\n 'medium': '{d} {month} {yyyy}',\n 'long': '{d} {month} {yyyy} {time}',\n 'full' : '{weekday}, {d} {month} {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'timeMarkers': 'o',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'przedwczoraj', 'value': -2 },\n { 'name': 'day', 'src': 'wczoraj', 'value': -1 },\n { 'name': 'day', 'src': 'dzisiaj|dziś', 'value': 0 },\n { 'name': 'day', 'src': 'jutro', 'value': 1 },\n { 'name': 'day', 'src': 'pojutrze', 'value': 2 },\n { 'name': 'sign', 'src': 'temu|przed', 'value': -1 },\n { 'name': 'sign', 'src': 'za', 'value': 1 },\n { 'name': 'shift', 'src': 'zeszły|zeszła|ostatni|ostatnia', 'value': -1 },\n { 'name': 'shift', 'src': 'następny|następna|następnego|przyszły|przyszła|przyszłego', 'value': 1 }\n ],\n 'relative': function (num, unit, ms, format) {\n // special cases for relative days\n var DAY = 4;\n if (unit === DAY) {\n if (num === 1 && format === 'past') return 'wczoraj';\n if (num === 1 && format === 'future') return 'jutro';\n if (num === 2 && format === 'past') return 'przedwczoraj';\n if (num === 2 && format === 'future') return 'pojutrze';\n }\n\n var mult;\n var last = +num.toFixed(0).slice(-1);\n var last2 = +num.toFixed(0).slice(-2);\n switch (true) {\n case num === 1: mult = 0; break;\n case last2 >= 12 && last2 <= 14: mult = 2; break;\n case last >= 2 && last <= 4: mult = 1; break;\n default: mult = 2;\n }\n var text = this['units'][(mult * 8) + unit];\n var prefix = num + ' ';\n\n // changing to accusative case for 'past' and 'future' formats\n // (only singular feminine unit words are different in accusative, each of which ends with 'a')\n if ((format === 'past' || format === 'future') && num === 1) {\n text = text.replace(/a$/, 'ę');\n }\n\n text = prefix + text;\n switch (format) {\n case 'duration': return text;\n case 'past': return text + ' temu';\n case 'future': return 'za ' + text;\n }\n },\n 'parse': [\n '{num} {unit} {sign}',\n '{sign} {num} {unit}',\n '{months} {year?}',\n '{shift} {unit:5-7}',\n '{0} {shift?} {weekday}'\n ],\n 'timeFrontParse': [\n '{day|weekday}',\n '{date} {months} {year?} {1?}',\n '{0?} {shift?} {weekday}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"pl\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/pl.js\n// module id = 429\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Portuguese locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('pt')\n *\n */\naddLocale('pt', {\n 'plural': true,\n 'units': 'milisegundo:|s,segundo:|s,minuto:|s,hora:|s,dia:|s,semana:|s,mês|mêses|mes|meses,ano:|s',\n 'months': 'jan:eiro|,fev:ereiro|,mar:ço|,abr:il|,mai:o|,jun:ho|,jul:ho|,ago:sto|,set:embro|,out:ubro|,nov:embro|,dez:embro|',\n 'weekdays': 'dom:ingo|,seg:unda-feira|,ter:ça-feira|,qua:rta-feira|,qui:nta-feira|,sex:ta-feira|,sáb:ado||ado',\n 'numerals': 'zero,um:|a,dois|duas,três|tres,quatro,cinco,seis,sete,oito,nove,dez',\n 'tokens': 'a,de',\n 'short': '{dd}/{MM}/{yyyy}',\n 'medium': '{d} de {Month} de {yyyy}',\n 'long': '{d} de {Month} de {yyyy} {time}',\n 'full': '{Weekday}, {d} de {Month} de {yyyy} {time}',\n 'stamp': '{Dow} {d} {Mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{num} {unit} {sign}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'timeMarkers': 'às',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'anteontem', 'value': -2 },\n { 'name': 'day', 'src': 'ontem', 'value': -1 },\n { 'name': 'day', 'src': 'hoje', 'value': 0 },\n { 'name': 'day', 'src': 'amanh:ã|a', 'value': 1 },\n { 'name': 'sign', 'src': 'atrás|atras|há|ha', 'value': -1 },\n { 'name': 'sign', 'src': 'daqui a', 'value': 1 },\n { 'name': 'shift', 'src': 'passad:o|a', 'value': -1 },\n { 'name': 'shift', 'src': 'próximo|próxima|proximo|proxima', 'value': 1 }\n ],\n 'parse': [\n '{months} {1?} {year?}',\n '{num} {unit} {sign}',\n '{sign} {num} {unit}',\n '{0?} {unit:5-7} {shift}',\n '{0?} {shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{shift?} {day|weekday}',\n '{0?} {shift} {weekday}',\n '{date} {1?} {months?} {1?} {year?}'\n ],\n 'timeFrontParse': [\n '{shift?} {day|weekday}',\n '{date} {1?} {months?} {1?} {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"pt\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/pt.js\n// module id = 430\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Russian locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('ru')\n *\n */\naddLocale('ru', {\n 'firstDayOfWeekYear': 1,\n 'units': 'миллисекунд:а|у|ы|,секунд:а|у|ы|,минут:а|у|ы|,час:||а|ов,день|день|дня|дней,недел:я|ю|и|ь|е,месяц:||а|ев|е,год|год|года|лет|году',\n 'months': 'янв:аря||.|арь,фев:раля||р.|раль,мар:та||т,апр:еля||.|ель,мая|май,июн:я||ь,июл:я||ь,авг:уста||.|уст,сен:тября||т.|тябрь,окт:ября||.|ябрь,ноя:бря||брь,дек:абря||.|абрь',\n 'weekdays': 'воскресенье|вс,понедельник|пн,вторник|вт,среда|ср,четверг|чт,пятница|пт,суббота|сб',\n 'numerals': 'ноль,од:ин|ну,дв:а|е,три,четыре,пять,шесть,семь,восемь,девять,десять',\n 'tokens': 'в|на,г\\\\.?(?:ода)?',\n 'short': '{dd}.{MM}.{yyyy}',\n 'medium': '{d} {month} {yyyy} г.',\n 'long': '{d} {month} {yyyy} г., {time}',\n 'full': '{weekday}, {d} {month} {yyyy} г., {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'timeMarkers': 'в',\n 'ampm': ' утра, вечера',\n 'modifiers': [\n { 'name': 'day', 'src': 'позавчера', 'value': -2 },\n { 'name': 'day', 'src': 'вчера', 'value': -1 },\n { 'name': 'day', 'src': 'сегодня', 'value': 0 },\n { 'name': 'day', 'src': 'завтра', 'value': 1 },\n { 'name': 'day', 'src': 'послезавтра', 'value': 2 },\n { 'name': 'sign', 'src': 'назад', 'value': -1 },\n { 'name': 'sign', 'src': 'через', 'value': 1 },\n { 'name': 'shift', 'src': 'прошл:ый|ой|ом', 'value': -1 },\n { 'name': 'shift', 'src': 'следующ:ий|ей|ем', 'value': 1 }\n ],\n 'relative': function(num, unit, ms, format) {\n var numberWithUnit, last = num.toString().slice(-1), mult;\n switch(true) {\n case num >= 11 && num <= 15: mult = 3; break;\n case last == 1: mult = 1; break;\n case last >= 2 && last <= 4: mult = 2; break;\n default: mult = 3;\n }\n numberWithUnit = num + ' ' + this['units'][(mult * 8) + unit];\n switch(format) {\n case 'duration': return numberWithUnit;\n case 'past': return numberWithUnit + ' назад';\n case 'future': return 'через ' + numberWithUnit;\n }\n },\n 'parse': [\n '{num} {unit} {sign}',\n '{sign} {num} {unit}',\n '{months} {year?}',\n '{0?} {shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{0?} {shift} {weekday}',\n '{date} {months?} {year?} {1?}'\n ],\n 'timeFrontParse': [\n '{0?} {shift} {weekday}',\n '{date} {months?} {year?} {1?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"ru\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/ru.js\n// module id = 431\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Swedish locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('sv')\n *\n */\naddLocale('sv', {\n 'plural': true,\n 'units': 'millisekund:|er,sekund:|er,minut:|er,timm:e|ar,dag:|ar,veck:a|or|an,månad:|er|en+manad:|er|en,år:||et+ar:||et',\n 'months': 'jan:uari|,feb:ruari|,mar:s|,apr:il|,maj,jun:i|,jul:i|,aug:usti|,sep:tember|,okt:ober|,nov:ember|,dec:ember|',\n 'weekdays': 'sön:dag|+son:dag|,mån:dag||dagen+man:dag||dagen,tis:dag|,ons:dag|,tor:sdag|,fre:dag|,lör:dag||dag',\n 'numerals': 'noll,en|ett,två|tva,tre,fyra,fem,sex,sju,åtta|atta,nio,tio',\n 'tokens': 'den,för|for',\n 'articles': 'den',\n 'short': '{yyyy}-{MM}-{dd}',\n 'medium': '{d} {month} {yyyy}',\n 'long': '{d} {month} {yyyy} {time}',\n 'full': '{weekday} {d} {month} {yyyy} {time}',\n 'stamp': '{dow} {d} {mon} {yyyy} {time}',\n 'time': '{H}:{mm}',\n 'past': '{num} {unit} {sign}',\n 'future': '{sign} {num} {unit}',\n 'duration': '{num} {unit}',\n 'ampm': 'am,pm',\n 'modifiers': [\n { 'name': 'day', 'src': 'förrgår|i förrgår|iförrgår|forrgar|i forrgar|iforrgar', 'value': -2 },\n { 'name': 'day', 'src': 'går|i går|igår|gar|i gar|igar', 'value': -1 },\n { 'name': 'day', 'src': 'dag|i dag|idag', 'value': 0 },\n { 'name': 'day', 'src': 'morgon|i morgon|imorgon', 'value': 1 },\n { 'name': 'day', 'src': 'över morgon|övermorgon|i över morgon|i övermorgon|iövermorgon|over morgon|overmorgon|i over morgon|i overmorgon|iovermorgon', 'value': 2 },\n { 'name': 'sign', 'src': 'sedan|sen', 'value': -1 },\n { 'name': 'sign', 'src': 'om', 'value': 1 },\n { 'name': 'shift', 'src': 'i förra|förra|i forra|forra', 'value': -1 },\n { 'name': 'shift', 'src': 'denna', 'value': 0 },\n { 'name': 'shift', 'src': 'nästa|nasta', 'value': 1 }\n ],\n 'parse': [\n '{months} {year?}',\n '{num} {unit} {sign}',\n '{sign} {num} {unit}',\n '{1?} {num} {unit} {sign}',\n '{shift} {unit:5-7}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{shift} {weekday}',\n '{0?} {weekday?},? {date} {months?}\\\\.? {year?}'\n ],\n 'timeFrontParse': [\n '{day|weekday}',\n '{shift} {weekday}',\n '{0?} {weekday?},? {date} {months?}\\\\.? {year?}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"sv\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/sv.js\n// module id = 432\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Simplified Chinese locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('zh-CN')\n *\n */\naddLocale('zh-CN', {\n 'ampmFront': true,\n 'numeralUnits': true,\n 'allowsFullWidth': true,\n 'timeMarkerOptional': true,\n 'units': '毫秒,秒钟,分钟,小时,天,个星期|周,个月,年',\n 'weekdays': '星期日|日|周日|星期天,星期一|一|周一,星期二|二|周二,星期三|三|周三,星期四|四|周四,星期五|五|周五,星期六|六|周六',\n 'numerals': '〇,一,二,三,四,五,六,七,八,九',\n 'placeholders': '十,百,千,万',\n 'short': '{yyyy}-{MM}-{dd}',\n 'medium': '{yyyy}年{M}月{d}日',\n 'long': '{yyyy}年{M}月{d}日{time}',\n 'full': '{yyyy}年{M}月{d}日{weekday}{time}',\n 'stamp': '{yyyy}年{M}月{d}日{H}:{mm}{dow}',\n 'time': '{tt}{h}点{mm}分',\n 'past': '{num}{unit}{sign}',\n 'future': '{num}{unit}{sign}',\n 'duration': '{num}{unit}',\n 'timeSuffixes': ',秒,分钟?,点|时,日|号,,月,年',\n 'ampm': '上午,下午',\n 'modifiers': [\n { 'name': 'day', 'src': '大前天', 'value': -3 },\n { 'name': 'day', 'src': '前天', 'value': -2 },\n { 'name': 'day', 'src': '昨天', 'value': -1 },\n { 'name': 'day', 'src': '今天', 'value': 0 },\n { 'name': 'day', 'src': '明天', 'value': 1 },\n { 'name': 'day', 'src': '后天', 'value': 2 },\n { 'name': 'day', 'src': '大后天', 'value': 3 },\n { 'name': 'sign', 'src': '前', 'value': -1 },\n { 'name': 'sign', 'src': '后', 'value': 1 },\n { 'name': 'shift', 'src': '上|去', 'value': -1 },\n { 'name': 'shift', 'src': '这', 'value': 0 },\n { 'name': 'shift', 'src': '下|明', 'value': 1 }\n ],\n 'parse': [\n '{num}{unit}{sign}',\n '{shift}{unit:5-7}',\n '{year?}{month}',\n '{year}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{shift}{weekday}',\n '{year?}{month?}{date}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"zh-CN\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/zh-CN.js\n// module id = 433\n// module chunks = 0","'use strict';\n\nvar addLocale = require('../date/addLocale');\n\n/*\n * Traditional Chinese locale definition.\n * See the readme for customization and more information.\n * To set this locale globally:\n *\n * Sugar.Date.setLocale('zh-TW')\n *\n */\naddLocale('zh-TW', {\n 'ampmFront': true,\n 'numeralUnits': true,\n 'allowsFullWidth': true,\n 'timeMarkerOptional': true,\n 'units': '毫秒,秒鐘,分鐘,小時,天,個星期|週,個月,年',\n 'weekdays': '星期日|日|週日|星期天,星期一|一|週一,星期二|二|週二,星期三|三|週三,星期四|四|週四,星期五|五|週五,星期六|六|週六',\n 'numerals': '〇,一,二,三,四,五,六,七,八,九',\n 'placeholders': '十,百,千,万',\n 'short': '{yyyy}/{MM}/{dd}',\n 'medium': '{yyyy}年{M}月{d}日',\n 'long': '{yyyy}年{M}月{d}日{time}',\n 'full': '{yyyy}年{M}月{d}日{weekday}{time}',\n 'stamp': '{yyyy}年{M}月{d}日{H}:{mm}{dow}',\n 'time': '{tt}{h}點{mm}分',\n 'past': '{num}{unit}{sign}',\n 'future': '{num}{unit}{sign}',\n 'duration': '{num}{unit}',\n 'timeSuffixes': ',秒,分鐘?,點|時,日|號,,月,年',\n 'ampm': '上午,下午',\n 'modifiers': [\n { 'name': 'day', 'src': '大前天', 'value': -3 },\n { 'name': 'day', 'src': '前天', 'value': -2 },\n { 'name': 'day', 'src': '昨天', 'value': -1 },\n { 'name': 'day', 'src': '今天', 'value': 0 },\n { 'name': 'day', 'src': '明天', 'value': 1 },\n { 'name': 'day', 'src': '後天', 'value': 2 },\n { 'name': 'day', 'src': '大後天', 'value': 3 },\n { 'name': 'sign', 'src': '前', 'value': -1 },\n { 'name': 'sign', 'src': '後', 'value': 1 },\n { 'name': 'shift', 'src': '上|去', 'value': -1 },\n { 'name': 'shift', 'src': '這', 'value': 0 },\n { 'name': 'shift', 'src': '下|明', 'value': 1 }\n ],\n 'parse': [\n '{num}{unit}{sign}',\n '{shift}{unit:5-7}',\n '{year?}{month}',\n '{year}'\n ],\n 'timeParse': [\n '{day|weekday}',\n '{shift}{weekday}',\n '{year?}{month?}{date}'\n ]\n});\n\n\n// This package does not export anything as it is\n// simply registering the \"zh-TW\" locale.\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/sugar-date/locales/zh-TW.js\n// module id = 434\n// module chunks = 0"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/tablefilter/tf-1-e02724480dc5dcee4468.js b/dist/tablefilter/tf-1-e02724480dc5dcee4468.js index cc758cfa..5b70290b 100644 --- a/dist/tablefilter/tf-1-e02724480dc5dcee4468.js +++ b/dist/tablefilter/tf-1-e02724480dc5dcee4468.js @@ -1,6 +1,6 @@ /** - * tablefilter v0.4.37 by Max Guglielmi - * build date: 2017-01-23T02:49:38.416Z + * tablefilter v0.4.38 by Max Guglielmi + * build date: 2017-01-26T09:00:02.893Z * MIT License */