!function(a,b){"object"==typeofmodule&&"object"==typeofmodule.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)thrownewError("jQuery requires a window with a document");returnb(a)}:b(a)}("undefined"!=typeofwindow?window:this,function(a,b){varc=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){returnnewm.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){returnb.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){returnd.call(this)},get:function(a){returnnull!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){varb=m.merge(this.constructor(),a);returnb.prevObject=this,b.context=this.context,b},each:function(a,b){returnm.each(this,a,b)},map:function(a){returnthis.pushStack(m.map(this,function(b,c){returna.call(b,c,b)}))},slice:function(){returnthis.pushStack(d.apply(this,arguments))},first:function(){returnthis.eq(0)},last:function(){returnthis.eq(-1)},eq:function(a){varb=this.length,c=+a+(0>a?b:0);returnthis.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){returnthis.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){vara,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeofg&&(j=g,g=arguments[h]||{},h++),"object"==typeofg||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(dine)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void0!==c&&(g[d]=c));returng},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){thrownewError(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){returnnull!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){varb;for(bina)return!1;return!0},isPlainObject:function(a){varb;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(bina)returnj.call(a,b);for(bina);returnvoid0===b||j.call(a,b)},type:function(a){returnnull==a?a+"":"object"==typeofa||"function"==typeofa?h[i.call(a)]||"object":typeofa},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){returna.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){returna.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){vard,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}elsefor(eina)if(d=b.apply(a[e],c),d===!1)break}elseif(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}elsefor(eina)if(d=b.call(a[e],e,a[e]),d===!1)break;returna},trim:function(a){returnnull==a?"":(a+"").replace(n,"")},makeArray:function(a,b){varc=b||[];returnnull!=a&&(r(Object(a))?m.merge(c,"string"==typeofa?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){vard;if(b){if(g)returng.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(cinb&&b[c]===a)returnc}return-1},merge:function(a,b){varc=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void0!==b[d])a[e++]=b[d++];returna.length=e,a},grep:function(a,b,c){for(vard,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);returne},map:function(a,b,c){vard,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);elsefor(fina)d=b(a[f],f,c),null!=d&&i.push(d);returne.apply([],i)},guid:1,proxy:function(a,b){varc,e,f;return"string"==typeofb&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){returna.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void0},now:function(){return+newDate},support:k}),m.each(
},reset:function(a){this.offset=0,this.total=0,this.last.scrollTop=0,this.last.scrollLeft=0,this.last.selection.indexes=[],this.last.selection.columns={},this.last.range_start=null,this.last.range_end=null,this.last.xhr_offset=0,this.searchReset(a),null!=this.last.sortData&&(this.sortData=this.last.sortData),this.set({expanded:!1},!0),a||this.refresh()},skip:function(a){varb="object"!=typeofthis.url?this.url:this.url.get;b?(this.offset=parseInt(a),this.offset>this.total&&(this.offset=this.total-this.limit),(this.offset<0||!w2utils.isInt(this.offset))&&(this.offset=0),this.records=[],this.last.xhr_offset=0,this.last.pull_more=!0,this.last.scrollTop=0,this.last.scrollLeft=0,$("#grid_"+this.name+"_records").prop("scrollTop",0),this.reload()):console.log("ERROR: grid.skip() can only be called when you have remote data source.")},load:function(a,b){return"undefined"==typeofa?voidconsole.log('ERROR: You need to provide url argument when calling .load() method of "'+this.name+'" object.'):voidthis.request("get-records",{},a,b)},reload:function(a){varb="object"!=typeofthis.url?this.url:this.url.get;b?(this.clear(!0),this.request("get-records",{},null,a)):(this.last.scrollTop=0,this.last.scrollLeft=0,this.last.range_start=null,this.last.range_end=null,this.localSearch(),this.refresh(),"function"==typeofa&&a({status:"success"}))},request:function(a,b,c,d){if("undefined"==typeofb&&(b={}),("undefined"==typeofc||""==c||null==c)&&(c=this.url),""!=c&&null!=c){vare={};if(w2utils.isInt(this.offset)||(this.offset=0),w2utils.isInt(this.last.xhr_offset)||(this.last.xhr_offset=0),e.cmd=a,e.selected=this.getSelection(),e.limit=this.limit,e.offset=parseInt(this.offset)+this.last.xhr_offset,e.search=this.searchData,e.searchLogic=this.last.logic,e.sort=this.sortData,0==this.searchData.length&&(deletee.search,deletee.searchLogic),0==this.sortData.length&&deletee.sort,$.extend(e,this.postData),$.extend(e,b),"get-records"==a){varf=this.trigger({phase:"before",type:"request",target:this.name,url:c,postData:e});if(f.isCancelled===!0)returnvoid("function"==typeofd&&d({status:"error",message:"Request aborted."}))}elsevarf={url:c,postData:e};varg=this;if(0==this.last.xhr_offset)this.lock(this.msgRefresh,!0);else{varh=$("#grid_"+this.name+"_rec_more");this.autoLoad===!0?h.show().find("td").html('<div><div style="width: 20px; height: 20px;" class="w2ui-spinner"></div></div>'):h.find("td").html("<div>"+w2utils.lang("Load")+" "+g.limit+" "+w2utils.lang("More")+"...</div>")}if(this.last.xhr)try{this.last.xhr.abort()}catch(i){}varc="object"!=typeoff.url?f.url:f.url.get;if("save-records"==e.cmd&&"object"==typeoff.url&&(c=f.url.save),"delete-records"==e.cmd&&"object"==typeoff.url&&(c=f.url.remove),!$.isEmptyObject(g.routeData)){varj=w2utils.parseRoute(c);if(j.keys.length>0)for(vark=0;k<j.keys.length;k++)null!=g.routeData[j.keys[k].name]&&(c=c.replace(newRegExp(":"+j.keys[k].name,"g"),g.routeData[j.keys[k].name]))}varl={type:"POST",url:c,data:f.postData,dataType:"text"};"HTTP"==w2utils.settings.dataType&&(l.data="object"==typeofl.data?String($.param(l.data,!1)).replace(/%5B/g,"[").replace(/%5D/g,"]"):l.data),"RESTFULL"==w2utils.settings.dataType&&(l.type="GET","save-records"==e.cmd&&(l.type="PUT"),"delete-records"==e.cmd&&(l.type="DELETE"),l.data="object"==typeofl.data?String($.param(l.data,!1)).replace(/%5B/g,"[").replace(/%5D/g,"]"):l.data),"JSON"==w2utils.settings.dataType&&(l.type="POST",l.data=JSON.stringify(l.data),l.contentType="application/json"),this.method&&(l.type=this.method),this.last.xhr_cmd=e.cmd,this.last.xhr_start=(newDate).getTime(),this.last.xhr=$.ajax(l).done(function(b,c){g.requestComplete(c,a,d)}).fail(function(b,c,e){varf={status:c,error:e,rawResponseText:b.responseText},h=g.trigger({phase:"before",type:"error",error:f,xhr:b});if(h.isCancelled!==!0){if("abort"!=c){vari;try{i=$.parseJSON(b.responseText)}catch(j){}console.log("ERROR: Server communication failed.","\n EXPECTED:",{status:"success",total:5,records:[{recid:1,field:"value"}]},"\n OR:",{status:"error",message:"error message"},"\nRECE
}if(""!=c&&(b[b.length-1]+="\n </div>"),this.tabs.tabs)for(varh=0;h<this.tabs.tabs.length;h++)"undefined"==typeofb[h]&&(b[h]="");for(variinb)b[i]='<div class="w2ui-page page-'+i+'">'+b[i]+"\n</div>";varj="";if(!$.isEmptyObject(this.actions)){vark="";j+='\n<div class="w2ui-buttons">';for(varlinthis.actions)k=-1!=["save","update","create"].indexOf(l.toLowerCase())?"btn-green":"",j+='\n <button name="'+l+'" class="btn '+k+'">'+w2utils.lang(l)+"</button>";j+="\n</div>"}returnb.join("")+j},action:function(a,b){varc=this.trigger({phase:"before",target:a,type:"action",originalEvent:b});c.isCancelled!==!0&&("function"==typeofthis.actions[a]&&this.actions[a].call(this,b),this.trigger($.extend(c,{phase:"after"})))},resize:function(){functiona(){d.width($(b.box).width()).height($(b.box).height()),f.css("top",""!=b.header?w2utils.getSize(e,"height"):0),g.css("top",(""!=b.header?w2utils.getSize(e,"height"):0)+("object"==typeofb.toolbar&&$.isArray(b.toolbar.items)&&b.toolbar.items.length>0?w2utils.getSize(f,"height"):0)),h.css("top",(""!=b.header?w2utils.getSize(e,"height"):0)+("object"==typeofb.toolbar&&$.isArray(b.toolbar.items)&&b.toolbar.items.length>0?w2utils.getSize(f,"height")+5:0)+("object"==typeofb.tabs&&$.isArray(b.tabs.tabs)&&b.tabs.tabs.length>0?w2utils.getSize(g,"height")+5:0)),h.css("bottom",k.length>0?w2utils.getSize(k,"height"):0)}varb=this,c=this.trigger({phase:"before",target:this.name,type:"resize"});if(c.isCancelled!==!0){vard=$(this.box).find("> div"),e=$(this.box).find("> div .w2ui-form-header"),f=$(this.box).find("> div .w2ui-form-toolbar"),g=$(this.box).find("> div .w2ui-form-tabs"),h=$(this.box).find("> div .w2ui-page"),i=$(this.box).find("> div .w2ui-page.page-"+this.page),j=$(this.box).find("> div .w2ui-page.page-"+this.page+" > div"),k=$(this.box).find("> div .w2ui-buttons");a(),(0==parseInt($(this.box).height())||$(this.box).data("auto-size")===!0)&&($(this.box).height((e.length>0?w2utils.getSize(e,"height"):0)+("object"==typeofthis.tabs&&$.isArray(this.tabs.tabs)&&this.tabs.tabs.length>0?w2utils.getSize(g,"height"):0)+("object"==typeofthis.toolbar&&$.isArray(this.toolbar.items)&&this.toolbar.items.length>0?w2utils.getSize(f,"height"):0)+(h.length>0?w2utils.getSize(j,"height")+w2utils.getSize(i,"+height")+12:0)+(k.length>0?w2utils.getSize(k,"height"):0)),$(this.box).data("auto-size",!0)),a(),b.trigger($.extend(c,{phase:"after"}))}},refresh:function(){vara=(newDate).getTime(),b=this;if(this.box&&this.isGenerated&&"undefined"!=typeof$(this.box).html()){$(this.box).find("input, textarea, select").each(function(a,c){vard=$(c).attr("undefined"!=typeof$(c).attr("name")?"name":"id"),e=b.get(d);if(e){varf=$(c).parents(".w2ui-page");if(f.length>0)for(varg=0;100>g;g++)if(f.hasClass("page-"+g)){e.page=g;break}}});varc=this.trigger({phase:"before",target:this.name,type:"refresh",page:this.page});if(c.isCancelled!==!0){$(this.box).find(".w2ui-page").hide(),$(this.box).find(".w2ui-page.page-"+this.page).show(),$(this.box).find(".w2ui-form-header").html(this.header),"object"==typeofthis.tabs&&$.isArray(this.tabs.tabs)&&this.tabs.tabs.length>0?($("#form_"+this.name+"_tabs").show(),this.tabs.active=this.tabs.tabs[this.page].id,this.tabs.refresh()):$("#form_"+this.name+"_tabs").hide(),"object"==typeofthis.toolbar&&$.isArray(this.toolbar.items)&&this.toolbar.items.length>0?($("#form_"+this.name+"_toolbar").show(),this.toolbar.refresh()):$("#form_"+this.name+"_toolbar").hide();for(vardinthis.fields){vare=this.fields[d];"undefined"==typeofe.name&&"undefined"!=typeofe.field&&(e.name=e.field),"undefined"==typeofe.field&&"undefined"!=typeofe.name&&(e.field=e.name),e.$el=$(this.box).find('[name="'+String(e.name).replace(/\\/g,"\\\\")+'"]'),e.el=e.$el[0],"undefined"==typeofe.el&&console.log('ERROR: Cannot associate field "'+e.name+'" with html control. Make sure html control exists with the same name.'),e.el&&(e.el.id=e.name);varf=$(e).data("w2field");f&&f.clear(),$(e.$el).off("change").on("change",function(){vara=this.value,c=b.record[this.name]?b.record[this.name]:"",d=b.get(this.na
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
!function(a,b){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=b():"function"==typeofdefine&&define.amd?define(b):a.moment=b()}(this,function(){"use strict";functiona(){returnZc.apply(null,arguments)}functionb(a){Zc=a}functionc(a){returnainstanceofArray||"[object Array]"===Object.prototype.toString.call(a)}functiond(a){returnainstanceofDate||"[object Date]"===Object.prototype.toString.call(a)}functione(a,b){varc,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));returnd}functionf(a,b){returnObject.prototype.hasOwnProperty.call(a,b)}functiong(a,b){for(varcinb)f(b,c)&&(a[c]=b[c]);returnf(b,"toString")&&(a.toString=b.toString),f(b,"valueOf")&&(a.valueOf=b.valueOf),a}functionh(a,b,c,d){returnIa(a,b,c,d,!0).utc()}functioni(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}functionj(a){returnnull==a._pf&&(a._pf=i()),a._pf}functionk(a){if(null==a._isValid){varb=j(a);a._isValid=!(isNaN(a._d.getTime())||!(b.overflow<0)||b.empty||b.invalidMonth||b.invalidWeekday||b.nullInput||b.invalidFormat||b.userInvalidated),a._strict&&(a._isValid=a._isValid&&0===b.charsLeftOver&&0===b.unusedTokens.length&&void0===b.bigHour)}returna._isValid}functionl(a){varb=h(NaN);returnnull!=a?g(j(b),a):j(b).userInvalidated=!0,b}functionm(a){returnvoid0===a}functionn(a,b){varc,d,e;if(m(b._isAMomentObject)||(a._isAMomentObject=b._isAMomentObject),m(b._i)||(a._i=b._i),m(b._f)||(a._f=b._f),m(b._l)||(a._l=b._l),m(b._strict)||(a._strict=b._strict),m(b._tzm)||(a._tzm=b._tzm),m(b._isUTC)||(a._isUTC=b._isUTC),m(b._offset)||(a._offset=b._offset),m(b._pf)||(a._pf=j(b)),m(b._locale)||(a._locale=b._locale),$c.length>0)for(cin$c)d=$c[c],e=b[d],m(e)||(a[d]=e);returna}functiono(b){n(this,b),this._d=newDate(null!=b._d?b._d.getTime():NaN),_c===!1&&(_c=!0,a.updateOffset(this),_c=!1)}functionp(a){returnainstanceofo||null!=a&&null!=a._isAMomentObject}functionq(a){return0>a?Math.ceil(a):Math.floor(a)}functionr(a){varb=+a,c=0;return0!==b&&isFinite(b)&&(c=q(b)),c}functions(a,b,c){vard,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&r(a[d])!==r(b[d]))&&g++;returng+f}functiont(b){a.suppressDeprecationWarnings===!1&&"undefined"!=typeofconsole&&console.warn&&console.warn("Deprecation warning: "+b)}functionu(a,b){varc=!0;returng(function(){returnc&&(t(a+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(newError).stack),c=!1),b.apply(this,arguments)},b)}functionv(a,b){ad[a]||(t(b),ad[a]=!0)}functionw(a){returnainstanceofFunction||"[object Function]"===Object.prototype.toString.call(a)}functionx(a){return"[object Object]"===Object.prototype.toString.call(a)}functiony(a){varb,c;for(cina)b=a[c],w(b)?this[c]=b:this["_"+c]=b;this._config=a,this._ordinalParseLenient=newRegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}functionz(a,b){varc,d=g({},a);for(cinb)f(b,c)&&(x(a[c])&&x(b[c])?(d[c]={},g(d[c],a[c]),g(d[c],b[c])):null!=b[c]?d[c]=b[c]:deleted[c]);returnd}functionA(a){null!=a&&this.set(a)}functionB(a){returna?a.toLowerCase().replace("_","-"):a}functionC(a){for(varb,c,d,e,f=0;f<a.length;){for(e=B(a[f]).split("-"),b=e.length,c=B(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=D(e.slice(0,b).join("-")))returnd;if(c&&c.length>=b&&s(e,c,!0)>=b-1)break;b--}f++}returnnull}functionD(a){varb=null;if(!cd[a]&&"undefined"!=typeofmodule&&module&&module.exports)try{b=bd._abbr,require("./locale/"+a),E(b)}catch(c){}returncd[a]}functionE(a,b){varc;returna&&(c=m(b)?H(a):F(a,b),c&&(bd=c)),bd._abbr}functionF(a,b){returnnull!==b?(b.abbr=a,null!=cd[a]?(v("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),b=z(cd[a]._config,b)):null!=b.parentLocale&&(null!=cd[b.parentLocale]?b=z(cd[b.parentLocale]._config,b):v("parentLocaleUndefined","specified parentLocale is not defined yet")),cd[a]=newA(b),E(a),cd
}),$("YY",function(b,c){c[Bd]=a.parseTwoDigitYear(b)}),$("Y",function(a,b){b[Bd]=parseInt(a,10)}),a.parseTwoDigitYear=function(a){returnr(a)+(r(a)>68?1900:2e3)};varVd=M("FullYear",!1);a.ISO_8601=function(){};varWd=u("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){vara=Ja.apply(null,arguments);returnthis.isValid()&&a.isValid()?this>a?this:a:l()}),Xd=u("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){vara=Ja.apply(null,arguments);returnthis.isValid()&&a.isValid()?a>this?this:a:l()}),Yd=function(){returnDate.now?Date.now():+newDate};Pa("Z",":"),Pa("ZZ",""),W("Z",wd),W("ZZ",wd),$(["Z","ZZ"],function(a,b,c){c._useUTC=!0,c._tzm=Qa(wd,a)});varZd=/([\+\-]|\d\d)/gi;a.updateOffset=function(){};var$d=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,_d=/^(-)?P(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)W)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?$/;cb.fn=Na.prototype;varae=hb(1,"add"),be=hb(-1,"subtract");a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";varce=u("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){returnvoid0===a?this.localeData():this.locale(a)});R(0,["gg",2],0,function(){returnthis.weekYear()%100}),R(0,["GG",2],0,function(){returnthis.isoWeekYear()%100}),Ob("gggg","weekYear"),Ob("ggggg","weekYear"),Ob("GGGG","isoWeekYear"),Ob("GGGGG","isoWeekYear"),J("weekYear","gg"),J("isoWeekYear","GG"),W("G",ud),W("g",ud),W("GG",nd,jd),W("gg",nd,jd),W("GGGG",rd,ld),W("gggg",rd,ld),W("GGGGG",sd,md),W("ggggg",sd,md),_(["gggg","ggggg","GGGG","GGGGG"],function(a,b,c,d){b[d.substr(0,2)]=r(a)}),_(["gg","GG"],function(b,c,d,e){c[e]=a.parseTwoDigitYear(b)}),R("Q",0,"Qo","quarter"),J("quarter","Q"),W("Q",id),$("Q",function(a,b){b[Cd]=3*(r(a)-1)}),R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),J("week","w"),J("isoWeek","W"),W("w",nd),W("ww",nd,jd),W("W",nd),W("WW",nd,jd),_(["w","ww","W","WW"],function(a,b,c,d){b[d.substr(0,1)]=r(a)});varde={dow:0,doy:6};R("D",["DD",2],"Do","date"),J("date","D"),W("D",nd),W("DD",nd,jd),W("Do",function(a,b){returna?b._ordinalParse:b._ordinalParseLenient}),$(["D","DD"],Dd),$("Do",function(a,b){b[Dd]=r(a.match(nd)[0],10)});varee=M("Date",!0);R("d",0,"do","day"),R("dd",0,0,function(a){returnthis.localeData().weekdaysMin(this,a)}),R("ddd",0,0,function(a){returnthis.localeData().weekdaysShort(this,a)}),R("dddd",0,0,function(a){returnthis.localeData().weekdays(this,a)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),J("day","d"),J("weekday","e"),J("isoWeekday","E"),W("d",nd),W("e",nd),W("E",nd),W("dd",yd),W("ddd",yd),W("dddd",yd),_(["dd","ddd","dddd"],function(a,b,c,d){vare=c._locale.weekdaysParse(a,d,c._strict);null!=e?b.d=e:j(c).invalidWeekday=a}),_(["d","e","E"],function(a,b,c,d){b[d]=r(a)});varfe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),he="Su_Mo_Tu_We_Th_Fr_Sa".split("_");R("DDD",["DDDD",3],"DDDo","dayOfYear"),J("dayOfYear","DDD"),W("DDD",qd),W("DDDD",kd),$(["DDD","DDDD"],function(a,b,c){c._dayOfYear=r(a)}),R("H",["HH",2],0,"hour"),R("h",["hh",2],0,ic),R("hmm",0,0,function(){return""+ic.apply(this)+Q(this.minutes(),2)}),R("hmmss",0,0,function(){return""+ic.apply(this)+Q(this.minutes(),2)+Q(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+Q(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+Q(this.minutes(),2)+Q(this.seconds(),2)}),jc("a",!0),jc("A",!1),J("hour","h"),W("a",kc),W("A",kc),W("H",nd),W("h",nd),W("HH",nd,jd),W("hh",nd,jd),W("hmm",od),W("hmmss",pd),W("Hmm",od),W("Hmmss",pd),$(["H","HH"],Ed),$(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),$(["h","hh"],function(a,b,c){b[Ed]=r(a),j(c).bigHour=!0}),$("hmm",function(a,b,c){vard=a.length-2;b[Ed]=r(a.substr(0,d)),b[Fd]=r(a.substr(d)),j(c).bigHour=!0}),$("hmmss",function(a,b,c){vard=a.length-4,e=a.length-2;b[Ed]=r(a.substr(0,d)),b[Fd]=r(a
(function(){vara,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za=[].slice;ua=function(){vara,b,c,d,e;for(a={},e="Boolean Number String Function Array Date RegExp Undefined Null".split(" "),d=0,b=e.length;b>d;d++)c=e[d],a["[object "+c+"]"]=c.toLowerCase();returnfunction(b){varc;returnc=Object.prototype.toString.call(b),a[c]||"object"}}(),S=function(a,b,c){returnnull==b&&(b=0),null==c&&(c=1),b>a&&(a=b),a>c&&(a=c),a},va=function(a){returna.length>=3?[].slice.call(a):a[0]},t=function(a){varb;for(bina)3>b?(a[b]<0&&(a[b]=0),a[b]>255&&(a[b]=255)):3===b&&(a[b]<0&&(a[b]=0),a[b]>1&&(a[b]=1));returna},d=Math.PI,pa=Math.round,w=Math.cos,B=Math.floor,_=Math.pow,T=Math.log,ra=Math.sin,sa=Math.sqrt,m=Math.atan2,W=Math.max,l=Math.abs,g=2*d,e=d/3,b=d/180,f=180/d,s=function(){returnarguments[0]instanceofa?arguments[0]:function(a,b,c){c.prototype=a.prototype;vard=newc,e=a.apply(d,b);returnObject(e)===e?e:d}(a,arguments,function(){})},k=[],"undefined"!=typeofmodule&&null!==module&&null!=module.exports&&(module.exports=s),"function"==typeofdefine&&define.amd?define([],function(){returns}):(oa="undefined"!=typeofexports&&null!==exports?exports:this,oa.chroma=s),s.version="1.1.1",j={},h=[],i=!1,a=function(){functiona(){vara,b,c,d,e,f,g,k,l;for(f=this,b=[],k=0,d=arguments.length;d>k;k++)a=arguments[k],null!=a&&b.push(a);if(g=b[b.length-1],null!=j[g])f._rgb=t(j[g](va(b.slice(0,-1))));else{for(i||(h=h.sort(function(a,b){returnb.p-a.p}),i=!0),l=0,e=h.length;e>l&&(c=h[l],!(g=c.test.apply(c,b)));l++);g&&(f._rgb=t(j[g].apply(j,b)))}null==f._rgb&&console.warn("unknown format: "+b),null==f._rgb&&(f._rgb=[0,0,0]),3===f._rgb.length&&f._rgb.push(1)}returna.prototype.alpha=function(a){returnarguments.length?(this._rgb[3]=a,this):this._rgb[3]},a.prototype.toString=function(){returnthis.name()},a}(),s._input=j,s.brewer=q={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#05306