From 049bd3345de436e9b5c28bdaecf6b4d6a900ca3c Mon Sep 17 00:00:00 2001 From: Kevin Hill Date: Mon, 29 May 2017 16:51:07 -0400 Subject: [PATCH] adding third event parameter to the callback for the datatable. --- javascript/dist/lava.js | 2 +- javascript/src/lava/Lava.js | 6 +++--- src/Javascript/ChartJsFactory.php | 5 ++++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/javascript/dist/lava.js b/javascript/dist/lava.js index 85dae369..1fc2ce17 100644 --- a/javascript/dist/lava.js +++ b/javascript/dist/lava.js @@ -1,4 +1,4 @@ !function t(n,e,r){function i(u,a){if(!e[u]){if(!n[u]){var f="function"==typeof require&&require;if(!a&&f)return f(u,!0);if(o)return o(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var s=e[u]={exports:{}};n[u][0].call(s.exports,function(t){var e=n[u][1][t];return i(e?e:t)},s,s.exports,t,n,e,r)}return e[u].exports}for(var o="function"==typeof require&&require,u=0;u1)for(var e=1;e0&&this._events[t].length>e&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,n){function e(){this.removeListener(t,e),r||(r=!0,n.apply(this,arguments))}if(!i(n))throw TypeError("listener must be a function");var r=!1;return e.listener=n,this.on(t,e),this},r.prototype.removeListener=function(t,n){var e,r,o,a;if(!i(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(e=this._events[t],o=e.length,r=-1,e===n||i(e.listener)&&e.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(u(e)){for(a=o;a-- >0;)if(e[a]===n||e[a].listener&&e[a].listener===n){r=a;break}if(r<0)return this;1===e.length?(e.length=0,delete this._events[t]):e.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},r.prototype.removeAllListeners=function(t){var n,e;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(e=this._events[t],i(e))this.removeListener(t,e);else if(e)for(;e.length;)this.removeListener(t,e[e.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){var n;return n=this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.prototype.listenerCount=function(t){if(this._events){var n=this._events[t];if(i(n))return 1;if(n)return n.length}return 0},r.listenerCount=function(t,n){return t.listenerCount(n)}},{}],5:[function(t,n,e){(function(e){var r="undefined"!=typeof e?e:"undefined"!=typeof window?window:{},i=t("min-document");if("undefined"!=typeof document)n.exports=document;else{var o=r["__GLOBAL_DOCUMENT_CACHE@4"];o||(o=r["__GLOBAL_DOCUMENT_CACHE@4"]=i),n.exports=o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":1}],6:[function(t,n,e){(function(t){(function(){function r(t,n){return t.set(n[0],n[1]),t}function i(t,n){return t.add(n),t}function o(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function u(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i-1}function p(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function U(t,n){for(var e=t.length;e--&&x(n,t[e],0)>-1;);return e}function B(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}function F(t){return"\\"+tr[t]}function M(t,n){return null==t?et:t[n]}function W(t){return Ge.test(t)}function $(t){return He.test(t)}function P(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}function q(t){var n=-1,e=Array(t.size);return t.forEach(function(t,r){e[++n]=[r,t]}),e}function G(t,n){return function(e){return t(n(e))}}function H(t,n){for(var e=-1,r=t.length,i=0,o=[];++e>>1,Ft=[["ary",xt],["bind",dt],["bindKey",yt],["curry",gt],["curryRight",mt],["flip",kt],["partial",wt],["partialRight",bt],["rearg",jt]],Mt="[object Arguments]",Wt="[object Array]",$t="[object AsyncFunction]",Pt="[object Boolean]",qt="[object Date]",Gt="[object DOMException]",Ht="[object Error]",Jt="[object Function]",Zt="[object GeneratorFunction]",Qt="[object Map]",Vt="[object Number]",Kt="[object Null]",Yt="[object Object]",Xt="[object Promise]",tn="[object Proxy]",nn="[object RegExp]",en="[object Set]",rn="[object String]",on="[object Symbol]",un="[object Undefined]",an="[object WeakMap]",fn="[object WeakSet]",cn="[object ArrayBuffer]",sn="[object DataView]",ln="[object Float32Array]",pn="[object Float64Array]",hn="[object Int8Array]",vn="[object Int16Array]",dn="[object Int32Array]",yn="[object Uint8Array]",_n="[object Uint8ClampedArray]",gn="[object Uint16Array]",mn="[object Uint32Array]",wn=/\b__p \+= '';/g,bn=/\b(__p \+=) '' \+/g,xn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jn=/&(?:amp|lt|gt|quot|#39);/g,kn=/[&<>"']/g,En=RegExp(jn.source),On=RegExp(kn.source),An=/<%-([\s\S]+?)%>/g,Ln=/<%([\s\S]+?)%>/g,Rn=/<%=([\s\S]+?)%>/g,Cn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/,In=/^\./,Sn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zn=/[\\^$.*+?()[\]{}|]/g,Dn=RegExp(zn.source),Nn=/^\s+|\s+$/g,Un=/^\s+/,Bn=/\s+$/,Fn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Mn=/\{\n\/\* \[wrapped with (.+)\] \*/,Wn=/,? & /,$n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pn=/\\(\\)?/g,qn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gn=/\w*$/,Hn=/^[-+]0x[0-9a-f]+$/i,Jn=/^0b[01]+$/i,Zn=/^\[object .+?Constructor\]$/,Qn=/^0o[0-7]+$/i,Vn=/^(?:0|[1-9]\d*)$/,Kn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yn=/($^)/,Xn=/['\n\r\u2028\u2029\\]/g,te="\\ud800-\\udfff",ne="\\u0300-\\u036f",ee="\\ufe20-\\ufe2f",re="\\u20d0-\\u20ff",ie=ne+ee+re,oe="\\u2700-\\u27bf",ue="a-z\\xdf-\\xf6\\xf8-\\xff",ae="\\xac\\xb1\\xd7\\xf7",fe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ce="\\u2000-\\u206f",se=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",le="A-Z\\xc0-\\xd6\\xd8-\\xde",pe="\\ufe0e\\ufe0f",he=ae+fe+ce+se,ve="['’]",de="["+te+"]",ye="["+he+"]",_e="["+ie+"]",ge="\\d+",me="["+oe+"]",we="["+ue+"]",be="[^"+te+he+ge+oe+ue+le+"]",xe="\\ud83c[\\udffb-\\udfff]",je="(?:"+_e+"|"+xe+")",ke="[^"+te+"]",Ee="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ae="["+le+"]",Le="\\u200d",Re="(?:"+we+"|"+be+")",Ce="(?:"+Ae+"|"+be+")",Te="(?:"+ve+"(?:d|ll|m|re|s|t|ve))?",Ie="(?:"+ve+"(?:D|LL|M|RE|S|T|VE))?",Se=je+"?",ze="["+pe+"]?",De="(?:"+Le+"(?:"+[ke,Ee,Oe].join("|")+")"+ze+Se+")*",Ne="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",Ue="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",Be=ze+Se+De,Fe="(?:"+[me,Ee,Oe].join("|")+")"+Be,Me="(?:"+[ke+_e+"?",_e,Ee,Oe,de].join("|")+")",We=RegExp(ve,"g"),$e=RegExp(_e,"g"),Pe=RegExp(xe+"(?="+xe+")|"+Me+Be,"g"),qe=RegExp([Ae+"?"+we+"+"+Te+"(?="+[ye,Ae,"$"].join("|")+")",Ce+"+"+Ie+"(?="+[ye,Ae+Re,"$"].join("|")+")",Ae+"?"+Re+"+"+Te,Ae+"+"+Ie,Ue,Ne,ge,Fe].join("|"),"g"),Ge=RegExp("["+Le+te+ie+pe+"]"),He=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Je=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ze=-1,Qe={};Qe[ln]=Qe[pn]=Qe[hn]=Qe[vn]=Qe[dn]=Qe[yn]=Qe[_n]=Qe[gn]=Qe[mn]=!0,Qe[Mt]=Qe[Wt]=Qe[cn]=Qe[Pt]=Qe[sn]=Qe[qt]=Qe[Ht]=Qe[Jt]=Qe[Qt]=Qe[Vt]=Qe[Yt]=Qe[nn]=Qe[en]=Qe[rn]=Qe[an]=!1;var Ve={};Ve[Mt]=Ve[Wt]=Ve[cn]=Ve[sn]=Ve[Pt]=Ve[qt]=Ve[ln]=Ve[pn]=Ve[hn]=Ve[vn]=Ve[dn]=Ve[Qt]=Ve[Vt]=Ve[Yt]=Ve[nn]=Ve[en]=Ve[rn]=Ve[on]=Ve[yn]=Ve[_n]=Ve[gn]=Ve[mn]=!0,Ve[Ht]=Ve[Jt]=Ve[an]=!1;var Ke={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Ye={"&":"&","<":"<",">":">",'"':""","'":"'"},Xe={"&":"&","<":"<",">":">",""":'"',"'":"'"},tr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nr=parseFloat,er=parseInt,rr="object"==typeof t&&t&&t.Object===Object&&t,ir="object"==typeof self&&self&&self.Object===Object&&self,or=rr||ir||Function("return this")(),ur="object"==typeof e&&e&&!e.nodeType&&e,ar=ur&&"object"==typeof n&&n&&!n.nodeType&&n,fr=ar&&ar.exports===ur,cr=fr&&rr.process,sr=function(){try{return cr&&cr.binding&&cr.binding("util")}catch(t){}}(),lr=sr&&sr.isArrayBuffer,pr=sr&&sr.isDate,hr=sr&&sr.isMap,vr=sr&&sr.isRegExp,dr=sr&&sr.isSet,yr=sr&&sr.isTypedArray,_r=O("length"),gr=A(Ke),mr=A(Ye),wr=A(Xe),br=function jr(t){function n(t){if(sf(t)&&!bp(t)&&!(t instanceof A)){if(t instanceof g)return t;if(bs.call(t,"__wrapped__"))return uu(t)}return new g(t)}function e(){}function g(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=et}function A(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Nt,this.__views__=[]}function Q(){var t=new A(this.__wrapped__);return t.__actions__=Mi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mi(this.__views__),t}function X(){if(this.__filtered__){var t=new A(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function tt(){var t=this.__wrapped__.value(),n=this.__dir__,e=bp(t),r=n<0,i=e?t.length:0,o=Co(0,i,this.__views__),u=o.start,a=o.end,f=a-u,c=r?a:u-1,s=this.__iteratees__,l=s.length,p=0,h=Ks(f,this.__takeCount__);if(!e||!r&&i==f&&h==f)return bi(t,this.__actions__);var v=[];t:for(;f--&&p-1}function se(t,n){var e=this.__data__,r=Ie(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this}function le(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function Fe(t,n,e,r,i,o){var u,f=n&st,c=n<,s=n&pt;if(e&&(u=i?e(t,r,i,o):e(t)),u!==et)return u;if(!cf(t))return t;var l=bp(t);if(l){if(u=So(t),!f)return Mi(t,u)}else{var p=Tl(t),h=p==Jt||p==Zt;if(jp(t))return Li(t,f);if(p==Yt||p==Mt||h&&!i){if(u=c||h?{}:zo(t),!f)return c?Pi(t,De(u,t)):$i(t,ze(u,t))}else{if(!Ve[p])return i?t:{};u=Do(t,p,Fe,f)}}o||(o=new we);var v=o.get(t);if(v)return v;o.set(t,u);var d=s?c?xo:bo:c?Hf:Gf,y=l?et:d(t);return a(y||t,function(r,i){y&&(i=r,r=t[i]),Te(u,i,Fe(r,n,e,i,t,o))}),u}function Me(t){var n=Gf(t);return function(e){return Pe(e,t,n)}}function Pe(t,n,e){var r=e.length;if(null==t)return!r;for(t=ps(t);r--;){var i=e[r],o=n[i],u=t[i];if(u===et&&!(i in t)||!o(u))return!1}return!0}function qe(t,n,e){if("function"!=typeof t)throw new ds(ut);return zl(function(){t.apply(et,e)},n)}function Ge(t,n,e,r){var i=-1,o=l,u=!0,a=t.length,f=[],c=n.length;if(!a)return f;e&&(n=h(n,S(e))),r?(o=p,u=!1):n.length>=it&&(o=D,u=!1,n=new _e(n));t:for(;++ii?0:i+e),r=r===et||r>i?i:Af(r),r<0&&(r+=i),r=e>r?0:Lf(r);e0&&e(a)?n>1?tr(a,n-1,e,r,i):v(i,a):r||(i[i.length]=a)}return i}function rr(t,n){return t&&bl(t,n,Gf)}function ir(t,n){return t&&xl(t,n,Gf)}function ur(t,n){return s(n,function(n){return uf(t[n])})}function ar(t,n){n=Oi(n,t);for(var e=0,r=n.length;null!=t&&en}function br(t,n){return null!=t&&bs.call(t,n)}function kr(t,n){return null!=t&&n in ps(t)}function Er(t,n,e){return t>=Ks(n,e)&&t=120&&s.length>=120)?new _e(u&&s):et}s=t[0];var v=-1,d=a[0];t:for(;++v-1;)a!==t&&Ds.call(a,f,1),Ds.call(t,f,1);return t}function ni(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==o){var o=i;Bo(i)?Ds.call(t,i,1):gi(t,i)}}return t}function ei(t,n){return t+qs(tl()*(n-t+1))}function ri(t,n,e,r){for(var i=-1,o=Vs(Ps((n-t)/(e||1)),0),u=as(o);o--;)u[r?o:++i]=t,t+=e;return u}function ii(t,n){var e="";if(!t||n<1||n>St)return e;do n%2&&(e+=t),n=qs(n/2),n&&(t+=t);while(n);return e}function oi(t,n){return Dl(Ko(t,n,Dc),t+"")}function ui(t){return Ae(ic(t))}function ai(t,n){var e=ic(t);return eu(e,Be(n,0,e.length))}function fi(t,n,e,r){if(!cf(t))return t;n=Oi(n,t);for(var i=-1,o=n.length,u=o-1,a=t;null!=a&&++ii?0:i+n),e=e>i?i:e,e<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var o=as(i);++r>>1,u=t[o];null!==u&&!bf(u)&&(e?u<=n:u=it){var c=n?null:Al(t);if(c)return J(c);u=!1,i=D,f=new _e}else f=n?[]:a;t:for(;++r=r?t:si(t,n,e)}function Li(t,n){if(n)return t.slice();var e=t.length,r=Ts?Ts(e):new t.constructor(e);return t.copy(r),r}function Ri(t){var n=new t.constructor(t.byteLength);return new Cs(n).set(new Cs(t)),n}function Ci(t,n){var e=n?Ri(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}function Ti(t,n,e){var i=n?e(q(t),st):q(t);return d(i,r,new t.constructor)}function Ii(t){var n=new t.constructor(t.source,Gn.exec(t));return n.lastIndex=t.lastIndex,n}function Si(t,n,e){var r=n?e(J(t),st):J(t);return d(r,i,new t.constructor)}function zi(t){return yl?ps(yl.call(t)):{}}function Di(t,n){var e=n?Ri(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Ni(t,n){if(t!==n){var e=t!==et,r=null===t,i=t===t,o=bf(t),u=n!==et,a=null===n,f=n===n,c=bf(n);if(!a&&!c&&!o&&t>n||o&&u&&f&&!a&&!c||r&&u&&f||!e&&f||!i)return 1;if(!r&&!o&&!c&&t=a)return f;var c=e[r];return f*("desc"==c?-1:1)}}return t.index-n.index}function Bi(t,n,e,r){for(var i=-1,o=t.length,u=e.length,a=-1,f=n.length,c=Vs(o-u,0),s=as(f+c),l=!r;++a1?e[i-1]:et,u=i>2?e[2]:et;for(o=t.length>3&&"function"==typeof o?(i--, o):et,u&&Fo(e[0],e[1],u)&&(o=i<3?et:o,i=1),n=ps(n);++r-1?i[o?n[u]:u]:et}}function to(t){return wo(function(n){var e=n.length,r=e,i=g.prototype.thru;for(t&&n.reverse();r--;){var o=n[r];if("function"!=typeof o)throw new ds(ut);if(i&&!u&&"wrapper"==jo(o))var u=new g([],(!0))}for(r=u?r:e;++r1&&g.reverse(),l&&f<_&&(g.length=f),this&&this!==or&&this instanceof s&&(k=y||Ki(k)),k.apply(j,g)}var l=n&xt,p=n&dt,h=n&yt,v=n&(gt|mt),d=n&kt,y=h?et:Ki(t);return s}function eo(t,n){return function(e,r){return Ar(e,t,n(r),{})}}function ro(t,n){return function(e,r){var i;if(e===et&&r===et)return n;if(e!==et&&(i=e),r!==et){if(i===et)return r;"string"==typeof e||"string"==typeof r?(e=yi(e),r=yi(r)):(e=di(e),r=di(r)),i=t(e,r)}return i}}function io(t){return wo(function(n){return n=h(n,S(Eo())),oi(function(e){var r=this;return t(n,function(t){return o(t,r,e)})})})}function oo(t,n){n=n===et?" ":yi(n);var e=n.length;if(e<2)return e?ii(n,t):n;var r=ii(n,Ps(t/K(n)));return W(n)?Ai(Y(r),0,t).join(""):r.slice(0,t)}function uo(t,n,e,r){function i(){for(var n=-1,f=arguments.length,c=-1,s=r.length,l=as(s+f),p=this&&this!==or&&this instanceof i?a:t;++ca))return!1;var c=o.get(t);if(c&&o.get(n))return c==n;var s=-1,l=!0,p=e&vt?new _e:et;for(o.set(t,n),o.set(n,t);++s1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(Fn,"{\n/* [wrapped with "+n+"] */\n")}function Uo(t){return bp(t)||wp(t)||!!(Ns&&t&&t[Ns])}function Bo(t,n){return n=null==n?St:n,!!n&&("number"==typeof t||Vn.test(t))&&t>-1&&t%1==0&&t0){if(++n>=At)return arguments[0]}else n=0;return t.apply(et,arguments)}}function eu(t,n){var e=-1,r=t.length,i=r-1;for(n=n===et?r:n;++e=this.__values__.length,n=t?et:this.__values__[this.__index__++];return{done:t,value:n}}function ua(){return this}function aa(t){for(var n,r=this;r instanceof e;){var i=uu(r);i.__index__=0,i.__values__=et,n?o.__wrapped__=i:n=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,n}function fa(){var t=this.__wrapped__;if(t instanceof A){var n=t;return this.__actions__.length&&(n=new A(this)),n=n.reverse(),n.__actions__.push({func:ea,args:[Iu],thisArg:et}),new g(n,this.__chain__)}return this.thru(Iu)}function ca(){return bi(this.__wrapped__,this.__actions__)}function sa(t,n,e){var r=bp(t)?c:He;return e&&Fo(t,n,e)&&(n=et),r(t,Eo(n,3))}function la(t,n){var e=bp(t)?s:Xe;return e(t,Eo(n,3))}function pa(t,n){return tr(ga(t,n),1)}function ha(t,n){return tr(ga(t,n),It)}function va(t,n,e){return e=e===et?1:Af(e),tr(ga(t,n),e)}function da(t,n){var e=bp(t)?a:ml;return e(t,Eo(n,3))}function ya(t,n){var e=bp(t)?f:wl;return e(t,Eo(n,3))}function _a(t,n,e,r){t=Va(t)?t:ic(t),e=e&&!r?Af(e):0;var i=t.length;return e<0&&(e=Vs(i+e,0)),wf(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&x(t,n,e)>-1}function ga(t,n){var e=bp(t)?h:qr;return e(t,Eo(n,3))}function ma(t,n,e,r){return null==t?[]:(bp(n)||(n=null==n?[]:[n]),e=r?et:e,bp(e)||(e=null==e?[]:[e]),Vr(t,n,e))}function wa(t,n,e){var r=bp(t)?d:L,i=arguments.length<3;return r(t,Eo(n,4),e,i,ml)}function ba(t,n,e){var r=bp(t)?y:L,i=arguments.length<3;return r(t,Eo(n,4),e,i,wl)}function xa(t,n){var e=bp(t)?s:Xe;return e(t,Na(Eo(n,3)))}function ja(t){var n=bp(t)?Ae:ui;return n(t)}function ka(t,n,e){n=(e?Fo(t,n,e):n===et)?1:Af(n);var r=bp(t)?Le:ai;return r(t,n)}function Ea(t){var n=bp(t)?Re:ci;return n(t)}function Oa(t){if(null==t)return 0;if(Va(t))return wf(t)?K(t):t.length;var n=Tl(t);return n==Qt||n==en?t.size:Wr(t).length}function Aa(t,n,e){var r=bp(t)?_:li;return e&&Fo(t,n,e)&&(n=et),r(t,Eo(n,3))}function La(t,n){if("function"!=typeof n)throw new ds(ut);return t=Af(t),function(){if(--t<1)return n.apply(this,arguments)}}function Ra(t,n,e){return n=e?et:n,n=t&&null==n?t.length:n,po(t,xt,et,et,et,et,n)}function Ca(t,n){var e;if("function"!=typeof n)throw new ds(ut);return t=Af(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=et),e}}function Ta(t,n,e){n=e?et:n;var r=po(t,gt,et,et,et,et,et,n);return r.placeholder=Ta.placeholder,r}function Ia(t,n,e){n=e?et:n;var r=po(t,mt,et,et,et,et,et,n);return r.placeholder=Ia.placeholder,r}function Sa(t,n,e){function r(n){var e=p,r=h;return p=h=et,g=n,d=t.apply(r,e)}function i(t){return g=t,y=zl(a,n),m?r(t):d}function o(t){var e=t-_,r=t-g,i=n-e;return w?Ks(i,v-r):i}function u(t){var e=t-_,r=t-g;return _===et||e>=n||e<0||w&&r>=v}function a(){var t=cp();return u(t)?f(t):void(y=zl(a,o(t)))}function f(t){return y=et,b&&p?r(t):(p=h=et,d)}function c(){y!==et&&Ol(y),g=0,p=_=h=y=et}function s(){return y===et?d:f(cp())}function l(){var t=cp(),e=u(t);if(p=arguments,h=this,_=t,e){if(y===et)return i(_);if(w)return y=zl(a,n),r(_)}return y===et&&(y=zl(a,n)),d}var p,h,v,d,y,_,g=0,m=!1,w=!1,b=!0;if("function"!=typeof t)throw new ds(ut);return n=Rf(n)||0,cf(e)&&(m=!!e.leading,w="maxWait"in e,v=w?Vs(Rf(e.maxWait)||0,n):v,b="trailing"in e?!!e.trailing:b),l.cancel=c,l.flush=s,l}function za(t){return po(t,kt)}function Da(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new ds(ut);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return e.cache=o.set(i,u)||o,u};return e.cache=new(Da.Cache||le),e}function Na(t){if("function"!=typeof t)throw new ds(ut);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function Ua(t){return Ca(2,t)}function Ba(t,n){if("function"!=typeof t)throw new ds(ut);return n=n===et?n:Af(n),oi(t,n)}function Fa(t,n){if("function"!=typeof t)throw new ds(ut);return n=null==n?0:Vs(Af(n),0),oi(function(e){var r=e[n],i=Ai(e,0,n);return r&&v(i,r),o(t,this,i)})}function Ma(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new ds(ut);return cf(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Sa(t,n,{leading:r,maxWait:n,trailing:i})}function Wa(t){return Ra(t,1)}function $a(t,n){return dp(Ei(n),t)}function Pa(){if(!arguments.length)return[];var t=arguments[0];return bp(t)?t:[t]}function qa(t){return Fe(t,pt)}function Ga(t,n){return n="function"==typeof n?n:et,Fe(t,pt,n)}function Ha(t){return Fe(t,st|pt)}function Ja(t,n){return n="function"==typeof n?n:et,Fe(t,st|pt,n)}function Za(t,n){return null==n||Pe(t,n,Gf(n))}function Qa(t,n){return t===n||t!==t&&n!==n}function Va(t){return null!=t&&ff(t.length)&&!uf(t)}function Ka(t){return sf(t)&&Va(t)}function Ya(t){return t===!0||t===!1||sf(t)&&sr(t)==Pt}function Xa(t){return sf(t)&&1===t.nodeType&&!gf(t)}function tf(t){if(null==t)return!0;if(Va(t)&&(bp(t)||"string"==typeof t||"function"==typeof t.splice||jp(t)||Lp(t)||wp(t)))return!t.length;var n=Tl(t);if(n==Qt||n==en)return!t.size;if(qo(t))return!Wr(t).length;for(var e in t)if(bs.call(t,e))return!1;return!0}function nf(t,n){return Ir(t,n)}function ef(t,n,e){e="function"==typeof e?e:et;var r=e?e(t,n):et;return r===et?Ir(t,n,et,e):!!r}function rf(t){if(!sf(t))return!1;var n=sr(t);return n==Ht||n==Gt||"string"==typeof t.message&&"string"==typeof t.name&&!gf(t)}function of(t){return"number"==typeof t&&Js(t)}function uf(t){if(!cf(t))return!1;var n=sr(t);return n==Jt||n==Zt||n==$t||n==tn}function af(t){return"number"==typeof t&&t==Af(t)}function ff(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=St}function cf(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function sf(t){return null!=t&&"object"==typeof t}function lf(t,n){return t===n||Dr(t,n,Ao(n))}function pf(t,n,e){return e="function"==typeof e?e:et,Dr(t,n,Ao(n),e)}function hf(t){return _f(t)&&t!=+t}function vf(t){if(Il(t))throw new cs(ot);return Nr(t)}function df(t){return null===t}function yf(t){return null==t}function _f(t){return"number"==typeof t||sf(t)&&sr(t)==Vt}function gf(t){if(!sf(t)||sr(t)!=Yt)return!1;var n=Is(t);if(null===n)return!0;var e=bs.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&ws.call(e)==Es}function mf(t){return af(t)&&t>=-St&&t<=St}function wf(t){return"string"==typeof t||!bp(t)&&sf(t)&&sr(t)==rn}function bf(t){return"symbol"==typeof t||sf(t)&&sr(t)==on}function xf(t){return t===et}function jf(t){return sf(t)&&Tl(t)==an}function kf(t){return sf(t)&&sr(t)==fn}function Ef(t){if(!t)return[];if(Va(t))return wf(t)?Y(t):Mi(t);if(Us&&t[Us])return P(t[Us]());var n=Tl(t),e=n==Qt?q:n==en?J:ic;return e(t)}function Of(t){if(!t)return 0===t?t:0;if(t=Rf(t),t===It||t===-It){var n=t<0?-1:1;return n*zt}return t===t?t:0}function Af(t){var n=Of(t),e=n%1;return n===n?e?n-e:n:0}function Lf(t){return t?Be(Af(t),0,Nt):0}function Rf(t){if("number"==typeof t)return t;if(bf(t))return Dt;if(cf(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=cf(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Nn,"");var e=Jn.test(t);return e||Qn.test(t)?er(t.slice(2),e?2:8):Hn.test(t)?Dt:+t}function Cf(t){return Wi(t,Hf(t))}function Tf(t){return t?Be(Af(t),-St,St):0===t?t:0}function If(t){return null==t?"":yi(t)}function Sf(t,n){var e=gl(t);return null==n?e:ze(e,n)}function zf(t,n){return w(t,Eo(n,3),rr)}function Df(t,n){return w(t,Eo(n,3),ir)}function Nf(t,n){return null==t?t:bl(t,Eo(n,3),Hf)}function Uf(t,n){return null==t?t:xl(t,Eo(n,3),Hf)}function Bf(t,n){return t&&rr(t,Eo(n,3))}function Ff(t,n){return t&&ir(t,Eo(n,3))}function Mf(t){return null==t?[]:ur(t,Gf(t))}function Wf(t){return null==t?[]:ur(t,Hf(t))}function $f(t,n,e){var r=null==t?et:ar(t,n);return r===et?e:r}function Pf(t,n){return null!=t&&Io(t,n,br)}function qf(t,n){return null!=t&&Io(t,n,kr)}function Gf(t){return Va(t)?Oe(t):Wr(t)}function Hf(t){return Va(t)?Oe(t,!0):$r(t)}function Jf(t,n){var e={};return n=Eo(n,3),rr(t,function(t,r,i){Ne(e,n(t,r,i),t)}),e}function Zf(t,n){var e={};return n=Eo(n,3),rr(t,function(t,r,i){Ne(e,r,n(t,r,i))}),e}function Qf(t,n){return Vf(t,Na(Eo(n)))}function Vf(t,n){if(null==t)return{};var e=h(xo(t),function(t){return[t]});return n=Eo(n),Yr(t,e,function(t,e){return n(t,e[0])})}function Kf(t,n,e){n=Oi(n,t);var r=-1,i=n.length;for(i||(i=1,t=et);++rn){var r=t;t=n,n=r}if(e||t%1||n%1){var i=tl();return Ks(t+i*(n-t+nr("1e-"+((i+"").length-1))),n)}return ei(t,n)}function cc(t){return th(If(t).toLowerCase())}function sc(t){return t=If(t),t&&t.replace(Kn,gr).replace($e,"")}function lc(t,n,e){t=If(t),n=yi(n);var r=t.length;e=e===et?r:Be(Af(e),0,r);var i=e;return e-=n.length,e>=0&&t.slice(e,i)==n}function pc(t){return t=If(t),t&&On.test(t)?t.replace(kn,mr):t}function hc(t){return t=If(t),t&&Dn.test(t)?t.replace(zn,"\\$&"):t}function vc(t,n,e){t=If(t),n=Af(n);var r=n?K(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return oo(qs(i),e)+t+oo(Ps(i),e)}function dc(t,n,e){t=If(t),n=Af(n);var r=n?K(t):0;return n&&r>>0)?(t=If(t),t&&("string"==typeof n||null!=n&&!Op(n))&&(n=yi(n),!n&&W(t))?Ai(Y(t),0,e):t.split(n,e)):[]}function bc(t,n,e){return t=If(t),e=null==e?0:Be(Af(e),0,t.length),n=yi(n),t.slice(e,e+n.length)==n}function xc(t,e,r){var i=n.templateSettings;r&&Fo(t,e,r)&&(e=et),t=If(t),e=Sp({},e,i,ho);var o,u,a=Sp({},e.imports,i.imports,ho),f=Gf(a),c=z(a,f),s=0,l=e.interpolate||Yn,p="__p += '",h=hs((e.escape||Yn).source+"|"+l.source+"|"+(l===Rn?qn:Yn).source+"|"+(e.evaluate||Yn).source+"|$","g"),v="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Ze+"]")+"\n";t.replace(h,function(n,e,r,i,a,f){return r||(r=i),p+=t.slice(s,f).replace(Xn,F),e&&(o=!0,p+="' +\n__e("+e+") +\n'"),a&&(u=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=f+n.length,n}),p+="';\n";var d=e.variable;d||(p="with (obj) {\n"+p+"\n}\n"),p=(u?p.replace(wn,""):p).replace(bn,"$1").replace(xn,"$1;"),p="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=nh(function(){return ss(f,v+"return "+p).apply(et,c)});if(y.source=p,rf(y))throw y;return y}function jc(t){return If(t).toLowerCase()}function kc(t){return If(t).toUpperCase()}function Ec(t,n,e){if(t=If(t),t&&(e||n===et))return t.replace(Nn,"");if(!t||!(n=yi(n)))return t;var r=Y(t),i=Y(n),o=N(r,i),u=U(r,i)+1;return Ai(r,o,u).join("")}function Oc(t,n,e){if(t=If(t),t&&(e||n===et))return t.replace(Bn,"");if(!t||!(n=yi(n)))return t;var r=Y(t),i=U(r,Y(n))+1;return Ai(r,0,i).join("")}function Ac(t,n,e){if(t=If(t),t&&(e||n===et))return t.replace(Un,"");if(!t||!(n=yi(n)))return t;var r=Y(t),i=N(r,Y(n));return Ai(r,i).join("")}function Lc(t,n){var e=Et,r=Ot;if(cf(n)){var i="separator"in n?n.separator:i;e="length"in n?Af(n.length):e,r="omission"in n?yi(n.omission):r}t=If(t);var o=t.length;if(W(t)){var u=Y(t);o=u.length}if(e>=o)return t;var a=e-K(r);if(a<1)return r;var f=u?Ai(u,0,a).join(""):t.slice(0,a);if(i===et)return f+r;if(u&&(a+=f.length-a),Op(i)){if(t.slice(a).search(i)){var c,s=f;for(i.global||(i=hs(i.source,If(Gn.exec(i))+"g")),i.lastIndex=0;c=i.exec(s);)var l=c.index;f=f.slice(0,l===et?a:l)}}else if(t.indexOf(yi(i),a)!=a){var p=f.lastIndexOf(i);p>-1&&(f=f.slice(0,p))}return f+r}function Rc(t){return t=If(t),t&&En.test(t)?t.replace(jn,wr):t}function Cc(t,n,e){return t=If(t),n=e?et:n,n===et?$(t)?nt(t):m(t):t.match(n)||[]}function Tc(t){var n=null==t?0:t.length,e=Eo();return t=n?h(t,function(t){if("function"!=typeof t[1])throw new ds(ut);return[e(t[0]),t[1]]}):[],oi(function(e){for(var r=-1;++rSt)return[];var e=Nt,r=Ks(t,Nt);n=Eo(n),t-=Nt;for(var i=T(r,n);++e1?t[n-1]:et;return e="function"==typeof e?(t.pop(),e):et,Ku(t,e)}),tp=wo(function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return Ue(n,t)};return!(n>1||this.__actions__.length)&&r instanceof A&&Bo(e)?(r=r.slice(e,+e+(n?1:0)),r.__actions__.push({func:ea,args:[i],thisArg:et}),new g(r,this.__chain__).thru(function(t){return n&&!t.length&&t.push(et),t})):this.thru(i)}),np=qi(function(t,n,e){bs.call(t,e)?++t[e]:Ne(t,e,1)}),ep=Xi(du),rp=Xi(yu),ip=qi(function(t,n,e){bs.call(t,e)?t[e].push(n):Ne(t,e,[n])}),op=oi(function(t,n,e){var r=-1,i="function"==typeof n,u=Va(t)?as(t.length):[];return ml(t,function(t){u[++r]=i?o(n,t,e):Lr(t,n,e)}),u}),up=qi(function(t,n,e){Ne(t,e,n)}),ap=qi(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]}),fp=oi(function(t,n){if(null==t)return[];var e=n.length;return e>1&&Fo(t,n[0],n[1])?n=[]:e>2&&Fo(n[0],n[1],n[2])&&(n=[n[0]]),Vr(t,tr(n,1),[])}),cp=Ws||function(){return or.Date.now()},sp=oi(function(t,n,e){var r=dt;if(e.length){var i=H(e,ko(sp));r|=wt}return po(t,r,n,e,i)}),lp=oi(function(t,n,e){var r=dt|yt;if(e.length){var i=H(e,ko(lp));r|=wt}return po(n,r,t,e,i)}),pp=oi(function(t,n){return qe(t,1,n)}),hp=oi(function(t,n,e){return qe(t,Rf(n)||0,e)});Da.Cache=le;var vp=El(function(t,n){n=1==n.length&&bp(n[0])?h(n[0],S(Eo())):h(tr(n,1),S(Eo()));var e=n.length;return oi(function(r){for(var i=-1,u=Ks(r.length,e);++i=n}),wp=Rr(function(){return arguments}())?Rr:function(t){return sf(t)&&bs.call(t,"callee")&&!zs.call(t,"callee")},bp=as.isArray,xp=lr?S(lr):Cr,jp=Hs||Hc,kp=pr?S(pr):Tr,Ep=hr?S(hr):zr,Op=vr?S(vr):Ur,Ap=dr?S(dr):Br,Lp=yr?S(yr):Fr,Rp=fo(Pr),Cp=fo(function(t,n){return t<=n}),Tp=Gi(function(t,n){if(qo(n)||Va(n))return void Wi(n,Gf(n),t);for(var e in n)bs.call(n,e)&&Te(t,e,n[e])}),Ip=Gi(function(t,n){Wi(n,Hf(n),t)}),Sp=Gi(function(t,n,e,r){Wi(n,Hf(n),t,r)}),zp=Gi(function(t,n,e,r){Wi(n,Gf(n),t,r)}),Dp=wo(Ue),Np=oi(function(t){return t.push(et,ho),o(Sp,et,t)}),Up=oi(function(t){return t.push(et,vo),o($p,et,t)}),Bp=eo(function(t,n,e){t[n]=e},Sc(Dc)),Fp=eo(function(t,n,e){bs.call(t,n)?t[n].push(e):t[n]=[e]},Eo),Mp=oi(Lr),Wp=Gi(function(t,n,e){Jr(t,n,e)}),$p=Gi(function(t,n,e,r){Jr(t,n,e,r)}),Pp=wo(function(t,n){var e={};if(null==t)return e;var r=!1;n=h(n,function(n){return n=Oi(n,t),r||(r=n.length>1),n}),Wi(t,xo(t),e),r&&(e=Fe(e,st|lt|pt,yo));for(var i=n.length;i--;)gi(e,n[i]);return e}),qp=wo(function(t,n){return null==t?{}:Kr(t,n)}),Gp=lo(Gf),Hp=lo(Hf),Jp=Vi(function(t,n,e){return n=n.toLowerCase(),t+(e?cc(n):n)}),Zp=Vi(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),Qp=Vi(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),Vp=Qi("toLowerCase"),Kp=Vi(function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}),Yp=Vi(function(t,n,e){return t+(e?" ":"")+th(n)}),Xp=Vi(function(t,n,e){return t+(e?" ":"")+n.toUpperCase()}),th=Qi("toUpperCase"),nh=oi(function(t,n){try{return o(t,et,n)}catch(e){return rf(e)?e:new cs(e)}}),eh=wo(function(t,n){return a(n,function(n){n=ru(n),Ne(t,n,sp(t[n],t))}),t}),rh=to(),ih=to(!0),oh=oi(function(t,n){return function(e){return Lr(e,t,n)}}),uh=oi(function(t,n){return function(e){return Lr(t,e,n)}}),ah=io(h),fh=io(c),ch=io(_),sh=ao(),lh=ao(!0),ph=ro(function(t,n){return t+n},0),hh=so("ceil"),vh=ro(function(t,n){return t/n},1),dh=so("floor"),yh=ro(function(t,n){return t*n},1),_h=so("round"),gh=ro(function(t,n){return t-n},0);return n.after=La,n.ary=Ra,n.assign=Tp,n.assignIn=Ip,n.assignInWith=Sp,n.assignWith=zp,n.at=Dp,n.before=Ca,n.bind=sp,n.bindAll=eh,n.bindKey=lp,n.castArray=Pa,n.chain=ta,n.chunk=au,n.compact=fu,n.concat=cu,n.cond=Tc,n.conforms=Ic,n.constant=Sc,n.countBy=np,n.create=Sf,n.curry=Ta,n.curryRight=Ia,n.debounce=Sa,n.defaults=Np,n.defaultsDeep=Up,n.defer=pp,n.delay=hp,n.difference=Ul,n.differenceBy=Bl,n.differenceWith=Fl,n.drop=su,n.dropRight=lu,n.dropRightWhile=pu,n.dropWhile=hu,n.fill=vu,n.filter=la,n.flatMap=pa,n.flatMapDeep=ha,n.flatMapDepth=va,n.flatten=_u,n.flattenDeep=gu,n.flattenDepth=mu,n.flip=za,n.flow=rh,n.flowRight=ih,n.fromPairs=wu,n.functions=Mf,n.functionsIn=Wf,n.groupBy=ip,n.initial=ju,n.intersection=Ml,n.intersectionBy=Wl,n.intersectionWith=$l,n.invert=Bp,n.invertBy=Fp,n.invokeMap=op,n.iteratee=Nc,n.keyBy=up,n.keys=Gf,n.keysIn=Hf,n.map=ga,n.mapKeys=Jf,n.mapValues=Zf,n.matches=Uc,n.matchesProperty=Bc,n.memoize=Da,n.merge=Wp,n.mergeWith=$p,n.method=oh,n.methodOf=uh,n.mixin=Fc,n.negate=Na,n.nthArg=$c,n.omit=Pp,n.omitBy=Qf,n.once=Ua,n.orderBy=ma,n.over=ah,n.overArgs=vp,n.overEvery=fh,n.overSome=ch,n.partial=dp,n.partialRight=yp,n.partition=ap,n.pick=qp,n.pickBy=Vf,n.property=Pc,n.propertyOf=qc,n.pull=Pl,n.pullAll=Lu,n.pullAllBy=Ru,n.pullAllWith=Cu,n.pullAt=ql,n.range=sh,n.rangeRight=lh,n.rearg=_p,n.reject=xa,n.remove=Tu,n.rest=Ba,n.reverse=Iu,n.sampleSize=ka,n.set=Yf,n.setWith=Xf,n.shuffle=Ea,n.slice=Su,n.sortBy=fp,n.sortedUniq=Mu,n.sortedUniqBy=Wu,n.split=wc,n.spread=Fa,n.tail=$u,n.take=Pu,n.takeRight=qu,n.takeRightWhile=Gu,n.takeWhile=Hu,n.tap=na,n.throttle=Ma,n.thru=ea,n.toArray=Ef,n.toPairs=Gp,n.toPairsIn=Hp,n.toPath=Kc,n.toPlainObject=Cf,n.transform=tc,n.unary=Wa,n.union=Gl,n.unionBy=Hl,n.unionWith=Jl,n.uniq=Ju,n.uniqBy=Zu,n.uniqWith=Qu,n.unset=nc,n.unzip=Vu,n.unzipWith=Ku,n.update=ec,n.updateWith=rc,n.values=ic,n.valuesIn=oc,n.without=Zl,n.words=Cc,n.wrap=$a,n.xor=Ql,n.xorBy=Vl,n.xorWith=Kl,n.zip=Yl,n.zipObject=Yu,n.zipObjectDeep=Xu,n.zipWith=Xl,n.entries=Gp,n.entriesIn=Hp,n.extend=Ip,n.extendWith=Sp,Fc(n,n),n.add=ph,n.attempt=nh,n.camelCase=Jp,n.capitalize=cc,n.ceil=hh,n.clamp=uc,n.clone=qa,n.cloneDeep=Ha,n.cloneDeepWith=Ja,n.cloneWith=Ga,n.conformsTo=Za,n.deburr=sc,n.defaultTo=zc,n.divide=vh,n.endsWith=lc,n.eq=Qa,n.escape=pc,n.escapeRegExp=hc,n.every=sa,n.find=ep,n.findIndex=du,n.findKey=zf,n.findLast=rp,n.findLastIndex=yu,n.findLastKey=Df,n.floor=dh,n.forEach=da,n.forEachRight=ya,n.forIn=Nf,n.forInRight=Uf,n.forOwn=Bf,n.forOwnRight=Ff,n.get=$f,n.gt=gp,n.gte=mp,n.has=Pf,n.hasIn=qf,n.head=bu,n.identity=Dc,n.includes=_a,n.indexOf=xu,n.inRange=ac,n.invoke=Mp,n.isArguments=wp,n.isArray=bp,n.isArrayBuffer=xp,n.isArrayLike=Va,n.isArrayLikeObject=Ka,n.isBoolean=Ya,n.isBuffer=jp,n.isDate=kp,n.isElement=Xa,n.isEmpty=tf,n.isEqual=nf,n.isEqualWith=ef,n.isError=rf,n.isFinite=of,n.isFunction=uf,n.isInteger=af,n.isLength=ff,n.isMap=Ep,n.isMatch=lf,n.isMatchWith=pf,n.isNaN=hf,n.isNative=vf,n.isNil=yf,n.isNull=df,n.isNumber=_f,n.isObject=cf,n.isObjectLike=sf,n.isPlainObject=gf,n.isRegExp=Op,n.isSafeInteger=mf,n.isSet=Ap,n.isString=wf,n.isSymbol=bf,n.isTypedArray=Lp,n.isUndefined=xf,n.isWeakMap=jf,n.isWeakSet=kf,n.join=ku,n.kebabCase=Zp,n.last=Eu,n.lastIndexOf=Ou,n.lowerCase=Qp,n.lowerFirst=Vp,n.lt=Rp,n.lte=Cp,n.max=Xc,n.maxBy=ts,n.mean=ns,n.meanBy=es,n.min=rs,n.minBy=is,n.stubArray=Gc,n.stubFalse=Hc,n.stubObject=Jc,n.stubString=Zc,n.stubTrue=Qc,n.multiply=yh,n.nth=Au,n.noConflict=Mc,n.noop=Wc,n.now=cp,n.pad=vc,n.padEnd=dc,n.padStart=yc,n.parseInt=_c,n.random=fc,n.reduce=wa,n.reduceRight=ba,n.repeat=gc,n.replace=mc,n.result=Kf,n.round=_h,n.runInContext=jr,n.sample=ja,n.size=Oa,n.snakeCase=Kp,n.some=Aa,n.sortedIndex=zu,n.sortedIndexBy=Du,n.sortedIndexOf=Nu,n.sortedLastIndex=Uu,n.sortedLastIndexBy=Bu,n.sortedLastIndexOf=Fu,n.startCase=Yp,n.startsWith=bc,n.subtract=gh,n.sum=os,n.sumBy=us,n.template=xc,n.times=Vc,n.toFinite=Of,n.toInteger=Af,n.toLength=Lf,n.toLower=jc,n.toNumber=Rf,n.toSafeInteger=Tf,n.toString=If,n.toUpper=kc,n.trim=Ec,n.trimEnd=Oc,n.trimStart=Ac,n.truncate=Lc,n.unescape=Rc,n.uniqueId=Yc,n.upperCase=Xp,n.upperFirst=th,n.each=da,n.eachRight=ya,n.first=bu,Fc(n,function(){var t={};return rr(n,function(e,r){bs.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION=rt,a(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),a(["drop","take"],function(t,n){A.prototype[t]=function(e){e=e===et?1:Vs(Af(e),0);var r=this.__filtered__&&!n?new A(this):this.clone();return r.__filtered__?r.__takeCount__=Ks(e,r.__takeCount__):r.__views__.push({size:Ks(e,Nt),type:t+(r.__dir__<0?"Right":"")}),r},A.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),a(["filter","map","takeWhile"],function(t,n){var e=n+1,r=e==Rt||e==Tt;A.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Eo(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}}),a(["head","last"],function(t,n){var e="take"+(n?"Right":"");A.prototype[t]=function(){return this[e](1).value()[0]}}),a(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");A.prototype[t]=function(){return this.__filtered__?new A(this):this[e](1)}}),A.prototype.compact=function(){return this.filter(Dc)},A.prototype.find=function(t){return this.filter(t).head()},A.prototype.findLast=function(t){return this.reverse().find(t)},A.prototype.invokeMap=oi(function(t,n){return"function"==typeof t?new A(this):this.map(function(e){return Lr(e,t,n)})}),A.prototype.reject=function(t){return this.filter(Na(Eo(t)))},A.prototype.slice=function(t,n){t=Af(t);var e=this;return e.__filtered__&&(t>0||n<0)?new A(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==et&&(n=Af(n),e=n<0?e.dropRight(-n):e.take(n-t)),e)},A.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},A.prototype.toArray=function(){return this.take(Nt)},rr(A.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=n[i?"take"+("last"==e?"Right":""):e],u=i||/^find/.test(e);o&&(n.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,f=e instanceof A,c=a[0],s=f||bp(e),l=function(t){var e=o.apply(n,v([t],a));return i&&p?e[0]:e};s&&r&&"function"==typeof c&&1!=c.length&&(f=s=!1);var p=this.__chain__,h=!!this.__actions__.length,d=u&&!p,y=f&&!h;if(!u&&s){e=y?e:new A(this);var _=t.apply(e,a);return _.__actions__.push({func:ea,args:[l],thisArg:et}),new g(_,p)}return d&&y?t.apply(this,a):(_=this.thru(l),d?i?_.value()[0]:_.value():_)})}),a(["pop","push","shift","sort","splice","unshift"],function(t){var e=ys[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var n=this.value();return e.apply(bp(n)?n:[],t)}return this[r](function(n){return e.apply(bp(n)?n:[],t)})}}),rr(A.prototype,function(t,e){var r=n[e];if(r){var i=r.name+"",o=cl[i]||(cl[i]=[]);o.push({name:e,func:r})}}),cl[no(et,yt).name]=[{name:"wrapper",func:et}],A.prototype.clone=Q,A.prototype.reverse=X,A.prototype.value=tt,n.prototype.at=tp,n.prototype.chain=ra,n.prototype.commit=ia,n.prototype.next=oa,n.prototype.plant=aa,n.prototype.reverse=fa,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=ca,n.prototype.first=n.prototype.head,Us&&(n.prototype[Us]=ua),n},xr=br();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(or._=xr,define(function(){return xr})):ar?((ar.exports=xr)._=xr,ur._=xr):or._=xr}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(t,n,e){(function(t){!function(t){"use strict";if("function"==typeof bootstrap)bootstrap("promise",t);else if("object"==typeof e&&"object"==typeof n)n.exports=t();else if("function"==typeof define&&define.amd)define(t);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeQ=t}else{if("undefined"==typeof window&&"undefined"==typeof self)throw new Error("This environment was not anticipated by Q. Please file a bug.");var r="undefined"!=typeof window?window:self,i=r.Q;r.Q=t(),r.Q.noConflict=function(){return r.Q=i,this}}}(function(){"use strict";function n(t){return function(){return Q.apply(t,arguments)}}function e(t){return t===Object(t)}function r(t){return"[object StopIteration]"===rt(t)||t instanceof G}function i(t,n){if($&&n.stack&&"object"==typeof t&&null!==t&&t.stack&&t.stack.indexOf(it)===-1){for(var e=[],r=n;r;r=r.source)r.stack&&e.unshift(r.stack);e.unshift(t.stack);var i=e.join("\n"+it+"\n");t.stack=o(i)}}function o(t){for(var n=t.split("\n"),e=[],r=0;r=H&&r<=ct}function c(){if($)try{throw new Error}catch(t){var n=t.stack.split("\n"),e=n[0].indexOf("@")>0?n[1]:n[2],r=a(e);if(!r)return;return q=r[0],r[1]}}function s(t,n,e){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(n+" is deprecated, use "+e+" instead.",new Error("").stack),t.apply(t,arguments)}}function l(t){return t instanceof d?t:m(t)?L(t):A(t)}function p(){function t(t){n=t,o.source=t,K(e,function(n,e){l.nextTick(function(){t.promiseDispatch.apply(t,e)})},void 0),e=void 0,r=void 0}var n,e=[],r=[],i=tt(p.prototype),o=tt(d.prototype);if(o.promiseDispatch=function(t,i,o){var u=V(arguments);e?(e.push(u),"when"===i&&o[1]&&r.push(o[1])):l.nextTick(function(){n.promiseDispatch.apply(n,u)})},o.valueOf=function(){if(e)return o;var t=_(n);return g(t)&&(n=t),t},o.inspect=function(){return n?n.inspect():{state:"pending"}},l.longStackSupport&&$)try{throw new Error}catch(u){o.stack=u.stack.substring(u.stack.indexOf("\n")+1)}return i.promise=o,i.resolve=function(e){n||t(l(e))},i.fulfill=function(e){n||t(A(e))},i.reject=function(e){n||t(O(e))},i.notify=function(t){n||K(r,function(n,e){l.nextTick(function(){e(t)})},void 0)},i}function h(t){if("function"!=typeof t)throw new TypeError("resolver must be a function.");var n=p();try{t(n.resolve,n.reject,n.notify)}catch(e){n.reject(e)}return n.promise}function v(t){return h(function(n,e){for(var r=0,i=t.length;r=r)throw new TypeError}for(;e2?t.resolve(V(arguments,1)):t.resolve(e)}},l.Promise=h,l.promise=h,h.race=v,h.all=N,h.reject=O,h.resolve=l,l.passByCopy=function(t){return t},d.prototype.passByCopy=function(){return this},l.join=function(t,n){return l(t).join(n)},d.prototype.join=function(t){return l([this,t]).spread(function(t,n){if(t===n)return t;throw new Error("Can't join: not the same: "+t+" "+n)})},l.race=v,d.prototype.race=function(){return this.then(l.race)},l.makePromise=d,d.prototype.toString=function(){return"[object Promise]"},d.prototype.then=function(t,n,e){function r(n){try{return"function"==typeof t?t(n):n}catch(e){return O(e)}}function o(t){if("function"==typeof n){i(t,a);try{return n(t)}catch(e){return O(e)}}return O(t)}function u(t){return"function"==typeof e?e(t):t}var a=this,f=p(),c=!1;return l.nextTick(function(){a.promiseDispatch(function(t){c||(c=!0,f.resolve(r(t)))},"when",[function(t){c||(c=!0,f.resolve(o(t)))}])}),a.promiseDispatch(void 0,"when",[void 0,function(t){var n,e=!1;try{n=u(t)}catch(r){if(e=!0,!l.onerror)throw r;l.onerror(r)}e||f.notify(n)}]),f.promise},l.tap=function(t,n){return l(t).tap(n)},d.prototype.tap=function(t){return t=l(t),this.then(function(n){return t.fcall(n).thenResolve(n)})},l.when=y,d.prototype.thenResolve=function(t){return this.then(function(){return t})},l.thenResolve=function(t,n){return l(t).thenResolve(n)},d.prototype.thenReject=function(t){return this.then(function(){throw t})},l.thenReject=function(t,n){return l(t).thenReject(n)},l.nearer=_,l.isPromise=g,l.isPromiseAlike=m,l.isPending=w,d.prototype.isPending=function(){return"pending"===this.inspect().state},l.isFulfilled=b,d.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},l.isRejected=x,d.prototype.isRejected=function(){return"rejected"===this.inspect().state};var ot=[],ut=[],at=[],ft=!0;l.resetUnhandledRejections=j,l.getUnhandledReasons=function(){return ot.slice()},l.stopUnhandledRejectionTracking=function(){j(),ft=!1},j(),l.reject=O,l.fulfill=A,l.master=R,l.spread=C,d.prototype.spread=function(t,n){return this.all().then(function(n){return t.apply(void 0,n)},n)},l.async=T,l.spawn=I,l["return"]=S,l.promised=z,l.dispatch=D,d.prototype.dispatch=function(t,n){var e=this,r=p();return l.nextTick(function(){e.promiseDispatch(r.resolve,t,n)}),r.promise},l.get=function(t,n){return l(t).dispatch("get",[n])},d.prototype.get=function(t){return this.dispatch("get",[t])},l.set=function(t,n,e){return l(t).dispatch("set",[n,e])},d.prototype.set=function(t,n){return this.dispatch("set",[t,n])},l.del=l["delete"]=function(t,n){return l(t).dispatch("delete",[n])},d.prototype.del=d.prototype["delete"]=function(t){return this.dispatch("delete",[t])},l.mapply=l.post=function(t,n,e){return l(t).dispatch("post",[n,e])},d.prototype.mapply=d.prototype.post=function(t,n){return this.dispatch("post",[t,n])},l.send=l.mcall=l.invoke=function(t,n){return l(t).dispatch("post",[n,V(arguments,2)])},d.prototype.send=d.prototype.mcall=d.prototype.invoke=function(t){return this.dispatch("post",[t,V(arguments,1)])},l.fapply=function(t,n){return l(t).dispatch("apply",[void 0,n])},d.prototype.fapply=function(t){return this.dispatch("apply",[void 0,t])},l["try"]=l.fcall=function(t){return l(t).dispatch("apply",[void 0,V(arguments,1)])},d.prototype.fcall=function(){return this.dispatch("apply",[void 0,V(arguments)])},l.fbind=function(t){var n=l(t),e=V(arguments,1);return function(){return n.dispatch("apply",[this,e.concat(V(arguments))])}},d.prototype.fbind=function(){var t=this,n=V(arguments);return function(){return t.dispatch("apply",[this,n.concat(V(arguments))])}},l.keys=function(t){return l(t).dispatch("keys",[])},d.prototype.keys=function(){return this.dispatch("keys",[])},l.all=N,d.prototype.all=function(){return N(this)},l.any=U,d.prototype.any=function(){return U(this)},l.allResolved=s(B,"allResolved","allSettled"),d.prototype.allResolved=function(){return B(this)},l.allSettled=F,d.prototype.allSettled=function(){return this.then(function(t){return N(X(t,function(t){function n(){return t.inspect()}return t=l(t),t.then(n,n)}))})},l.fail=l["catch"]=function(t,n){return l(t).then(void 0,n)},d.prototype.fail=d.prototype["catch"]=function(t){return this.then(void 0,t)},l.progress=M,d.prototype.progress=function(t){return this.then(void 0,void 0,t)},l.fin=l["finally"]=function(t,n){return l(t)["finally"](n)},d.prototype.fin=d.prototype["finally"]=function(t){return t=l(t),this.then(function(n){return t.fcall().then(function(){return n})},function(n){return t.fcall().then(function(){throw n})})},l.done=function(t,n,e,r){return l(t).done(n,e,r)},d.prototype.done=function(n,e,r){var o=function(t){l.nextTick(function(){if(i(t,u),!l.onerror)throw t;l.onerror(t)})},u=n||e||r?this.then(n,e,r):this;"object"==typeof t&&t&&t.domain&&(o=t.domain.bind(o)),u.then(void 0,o)},l.timeout=function(t,n,e){return l(t).timeout(n,e)},d.prototype.timeout=function(t,n){var e=p(),r=setTimeout(function(){n&&"string"!=typeof n||(n=new Error(n||"Timed out after "+t+" ms"),n.code="ETIMEDOUT"),e.reject(n)},t);return this.then(function(t){clearTimeout(r),e.resolve(t)},function(t){clearTimeout(r),e.reject(t)},e.notify),e.promise},l.delay=function(t,n){return void 0===n&&(n=t,t=void 0),l(t).delay(n)},d.prototype.delay=function(t){return this.then(function(n){var e=p();return setTimeout(function(){e.resolve(n)},t),e.promise})},l.nfapply=function(t,n){return l(t).nfapply(n)},d.prototype.nfapply=function(t){var n=p(),e=V(t);return e.push(n.makeNodeResolver()),this.fapply(e).fail(n.reject),n.promise},l.nfcall=function(t){var n=V(arguments,1);return l(t).nfapply(n)},d.prototype.nfcall=function(){var t=V(arguments),n=p();return t.push(n.makeNodeResolver()),this.fapply(t).fail(n.reject),n.promise},l.nfbind=l.denodeify=function(t){var n=V(arguments,1);return function(){var e=n.concat(V(arguments)),r=p();return e.push(r.makeNodeResolver()),l(t).fapply(e).fail(r.reject),r.promise}},d.prototype.nfbind=d.prototype.denodeify=function(){var t=V(arguments);return t.unshift(this),l.denodeify.apply(void 0,t)},l.nbind=function(t,n){var e=V(arguments,2);return function(){function r(){return t.apply(n,arguments)}var i=e.concat(V(arguments)),o=p();return i.push(o.makeNodeResolver()),l(r).fapply(i).fail(o.reject),o.promise}},d.prototype.nbind=function(){var t=V(arguments,0);return t.unshift(this),l.nbind.apply(void 0,t)},l.nmapply=l.npost=function(t,n,e){return l(t).npost(n,e)},d.prototype.nmapply=d.prototype.npost=function(t,n){var e=V(n||[]),r=p();return e.push(r.makeNodeResolver()),this.dispatch("post",[t,e]).fail(r.reject),r.promise},l.nsend=l.nmcall=l.ninvoke=function(t,n){var e=V(arguments,2),r=p();return e.push(r.makeNodeResolver()),l(t).dispatch("post",[n,e]).fail(r.reject),r.promise},d.prototype.nsend=d.prototype.nmcall=d.prototype.ninvoke=function(t){var n=V(arguments,1),e=p();return n.push(e.makeNodeResolver()),this.dispatch("post",[t,n]).fail(e.reject),e.promise},l.nodeify=W,d.prototype.nodeify=function(t){return t?void this.then(function(n){l.nextTick(function(){t(null,n)})},function(n){l.nextTick(function(){t(n)})}):this},l.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var ct=c();return l})}).call(this,t("_process"))},{_process:2}],8:[function(t,n,e){"function"==typeof Object.create?n.exports=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:n.exports=function(t,n){t.super_=n;var e=function(){};e.prototype=n.prototype,t.prototype=new e,t.prototype.constructor=t}},{}],9:[function(t,n,e){n.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],10:[function(t,n,e){(function(n,r){function i(t,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(n)?r.showHidden=n:n&&e._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),f(r,t,r.depth)}function o(t,n){var e=i.styles[n];return e?"["+i.colors[e][0]+"m"+t+"["+i.colors[e][1]+"m":t}function u(t,n){return t}function a(t){var n={};return t.forEach(function(t,e){n[t]=!0}),n}function f(t,n,r){if(t.customInspect&&n&&O(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return m(i)||(i=f(t,i,r)),i}var o=c(t,n);if(o)return o;var u=Object.keys(n),d=a(u);if(t.showHidden&&(u=Object.getOwnPropertyNames(n)),E(n)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return s(n);if(0===u.length){if(O(n)){var y=n.name?": "+n.name:"";return t.stylize("[Function"+y+"]","special")}if(x(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return t.stylize(Date.prototype.toString.call(n),"date");if(E(n))return s(n)}var _="",g=!1,w=["{","}"];if(v(n)&&(g=!0,w=["[","]"]),O(n)){var b=n.name?": "+n.name:"";_=" [Function"+b+"]"}if(x(n)&&(_=" "+RegExp.prototype.toString.call(n)),k(n)&&(_=" "+Date.prototype.toUTCString.call(n)),E(n)&&(_=" "+s(n)),0===u.length&&(!g||0==n.length))return w[0]+_+w[1];if(r<0)return x(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var j;return j=g?l(t,n,r,d,u):u.map(function(e){return p(t,n,r,d,e,g)}),t.seen.pop(),h(j,_,w)}function c(t,n){if(b(n))return t.stylize("undefined","undefined");if(m(n)){var e="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(e,"string")}return g(n)?t.stylize(""+n,"number"):d(n)?t.stylize(""+n,"boolean"):y(n)?t.stylize("null","null"):void 0; -}function s(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,n,e,r,i){for(var o=[],u=0,a=n.length;u-1&&(a=o?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n"))):a=t.stylize("[Circular]","special")),b(u)){if(o&&i.match(/^\d+$/))return a;u=JSON.stringify(""+i),u.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=t.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=t.stylize(u,"string"))}return u+": "+a}function h(t,n,e){var r=0,i=t.reduce(function(t,n){return r++,n.indexOf("\n")>=0&&r++,t+n.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?e[0]+(""===n?"":n+"\n ")+" "+t.join(",\n ")+" "+e[1]:e[0]+n+" "+t.join(", ")+" "+e[1]}function v(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function y(t){return null===t}function _(t){return null==t}function g(t){return"number"==typeof t}function m(t){return"string"==typeof t}function w(t){return"symbol"==typeof t}function b(t){return void 0===t}function x(t){return j(t)&&"[object RegExp]"===L(t)}function j(t){return"object"==typeof t&&null!==t}function k(t){return j(t)&&"[object Date]"===L(t)}function E(t){return j(t)&&("[object Error]"===L(t)||t instanceof Error)}function O(t){return"function"==typeof t}function A(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function L(t){return Object.prototype.toString.call(t)}function R(t){return t<10?"0"+t.toString(10):t.toString(10)}function C(){var t=new Date,n=[R(t.getHours()),R(t.getMinutes()),R(t.getSeconds())].join(":");return[t.getDate(),D[t.getMonth()],n].join(" ")}function T(t,n){return Object.prototype.hasOwnProperty.call(t,n)}var I=/%[sdj%]/g;e.format=function(t){if(!m(t)){for(var n=[],e=0;e=o)return t;switch(t){case"%s":return String(r[e++]);case"%d":return Number(r[e++]);case"%j":try{return JSON.stringify(r[e++])}catch(n){return"[Circular]"}default:return t}}),a=r[e];e-1&&(a=o?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n"))):a=t.stylize("[Circular]","special")),b(u)){if(o&&i.match(/^\d+$/))return a;u=JSON.stringify(""+i),u.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=t.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=t.stylize(u,"string"))}return u+": "+a}function h(t,n,e){var r=0,i=t.reduce(function(t,n){return r++,n.indexOf("\n")>=0&&r++,t+n.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?e[0]+(""===n?"":n+"\n ")+" "+t.join(",\n ")+" "+e[1]:e[0]+n+" "+t.join(", ")+" "+e[1]}function v(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function y(t){return null===t}function _(t){return null==t}function g(t){return"number"==typeof t}function m(t){return"string"==typeof t}function w(t){return"symbol"==typeof t}function b(t){return void 0===t}function x(t){return j(t)&&"[object RegExp]"===L(t)}function j(t){return"object"==typeof t&&null!==t}function k(t){return j(t)&&"[object Date]"===L(t)}function E(t){return j(t)&&("[object Error]"===L(t)||t instanceof Error)}function O(t){return"function"==typeof t}function A(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function L(t){return Object.prototype.toString.call(t)}function R(t){return t<10?"0"+t.toString(10):t.toString(10)}function C(){var t=new Date,n=[R(t.getHours()),R(t.getMinutes()),R(t.getSeconds())].join(":");return[t.getDate(),D[t.getMonth()],n].join(" ")}function T(t,n){return Object.prototype.hasOwnProperty.call(t,n)}var I=/%[sdj%]/g;e.format=function(t){if(!m(t)){for(var n=[],e=0;e=o)return t;switch(t){case"%s":return String(r[e++]);case"%d":return Number(r[e++]);case"%j":try{return JSON.stringify(r[e++])}catch(n){return"[Circular]"}default:return t}}),a=r[e];echart = $chart; + /** + * In the scope of the events and formats, "this" is a reference to the lavachart class in question. + */ $this->eventTemplate = 'google.visualization.events.addListener(this.chart, "%s", function (event) {'.PHP_EOL. - 'return lava.event(event, this.chart, %s);'.PHP_EOL. + 'return lava.event(event, this, %s);'.PHP_EOL. '}.bind(this));'.PHP_EOL; $this->formatTemplate =