From 41454f642f891c9977fb5fe7ab47aa25fbafa8d5 Mon Sep 17 00:00:00 2001 From: Adam Kasprowicz Date: Mon, 10 Jun 2019 17:33:26 +0200 Subject: [PATCH] 6.0.6 --- dist/keen-explorer.bundle.js | 2 +- dist/keen-explorer.bundle.min.js | 2 +- dist/keen-explorer.css | 20 ++++++++++---------- dist/keen-explorer.min.css | 2 +- dist/keen-explorer.umd.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/dist/keen-explorer.bundle.js b/dist/keen-explorer.bundle.js index 42085ac54..007d45081 100644 --- a/dist/keen-explorer.bundle.js +++ b/dist/keen-explorer.bundle.js @@ -62954,7 +62954,7 @@ module.exports = __webpack_require__(23); /* 417 */ /***/ (function(module) { -module.exports = {"a":"6.0.5"}; +module.exports = {"a":"6.0.6"}; /***/ }), /* 418 */ diff --git a/dist/keen-explorer.bundle.min.js b/dist/keen-explorer.bundle.min.js index bd6ef0412..e7c6a2787 100644 --- a/dist/keen-explorer.bundle.min.js +++ b/dist/keen-explorer.bundle.min.js @@ -33,7 +33,7 @@ object-assign * * http://api.jqueryui.com/category/ui-core/ */ -var r=/input|select|textarea|button|object/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow"):"none"==n.getPropertyValue("display")}function i(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(o(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=c,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);c(n,t),t="length"in n?n[0]:n}return s=t||s},t.validateElement=u,t.hide=function(e){u(e)&&(e||s).setAttribute("aria-hidden","true")},t.show=function(e){u(e)&&(e||s).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){s=null},t.resetForTesting=function(){s=null};var r,o=n(614),i=(r=o)&&r.__esModule?r:{default:r},a=n(161);var s=null;function c(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){return!(!e&&!s)||((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(t,r){var o=n(117);e.exports=v;var i,a=n(347);v.ReadableState=g;n(163).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=n(349),u=n(118).Buffer,l=t.Uint8Array||function(){};var d=n(91);d.inherits=n(72);var f=n(621),p=void 0;p=f&&f.debuglog?f.debuglog("stream"):function(){};var h,m=n(622),b=n(350);d.inherits(v,c);var y=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var r=t instanceof(i=i||n(58));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(351).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function v(e){if(i=i||n(58),!(this instanceof v))return new v(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function _(e,t,n,r,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,k(e)}(e,a)):(o||(i=function(e,t){var n;r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):M(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?M(e,a,t,!1):S(e,a)):M(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=w?e=w:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(A,e):A(e))}function A(e){p("emit readable"),e.emit("readable"),E(e)}function S(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(O,e,t))}function O(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function z(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):k(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,o=t.needReadable;return p("need readable",o),(0===t.length||t.length-e0?D(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,p("pipe count=%d opts=%j",i.pipesCount,t);var c=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:v;function u(t,r){p("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",d),e.removeListener("error",b),e.removeListener("unpipe",u),n.removeListener("end",l),n.removeListener("end",v),n.removeListener("data",m),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function l(){p("onend"),e.end()}i.endEmitted?o.nextTick(c):n.once("end",c),e.on("unpipe",u);var d=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,E(e))}}(n);e.on("drain",d);var f=!1;var h=!1;function m(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==z(i.pipes,e))&&!f&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function b(t){p("onerror",t),v(),e.removeListener("error",b),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",g),v()}function g(){p("onfinish"),e.removeListener("close",y),v()}function v(){p("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",b),e.once("close",y),e.once("finish",g),e.emit("pipe",n),i.flowing||(p("pipe resume"),n.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return o>0&&(e.lastNeed=o-1),o;if(--r=0)return o>0&&(e.lastNeed=o-2),o;if(--r=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var r=n(58),o=n(91);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function p(){}f.contextTypes={transitionGroup:r.object},f.childContextTypes={transitionGroup:function(){}},f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},f.UNMOUNTED=0,f.EXITED=1,f.ENTERING=2,f.ENTERED=3,f.EXITING=4;var h=(0,a.polyfill)(f);t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(1))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(1)),o=s(n(0)),i=n(162),a=n(640);function s(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var f=(0,i.polyfill)(d);t.default=f,e.exports=t.default},function(e,t,n){n(641)},function(e,t,n){"use strict";var r=n(650),o=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;e.exports=function(){var e=r.ToObject(this),t=r.ToLength(r.Get(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=r.ToInteger(arguments[0]));var i=r.ArraySpeciesCreate(e,0);return function e(t,n,i,a,s){for(var c=a,u=0;u0&&(f=r.IsArray(d)),f)c=e(t,d,r.ToLength(r.Get(d,"length")),c,s-1);else{if(c>=o)throw new TypeError("index too large");r.CreateDataPropertyOrThrow(t,r.ToString(c),d),c+=1}}u+=1}return c}(i,e,t,0,n),i}},function(e,t,n){"use strict";var r=n(651),o=n(167),i=o(o({},r),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=i},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=Object.prototype.toString;if("function"==typeof Symbol&&"symbol"==typeof Symbol()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";var r=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=Object.getPrototypeOf||function(e){return e.__proto__},a=void 0,s="undefined"==typeof Uint8Array?void 0:i(Uint8Array),c={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?i([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":a&&o&&Symbol.asyncIterator?a[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?i((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?i((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:void 0,"$ %SymbolPrototype%":o?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":r,"$ %TypedArray%":s,"$ %TypedArrayPrototype%":s?s.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in c))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===c[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return c[n]}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var n=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(357);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function i(e,t){var n=t(e(o));return function(){return n}}function a(e){return i(e,r.createLTR||r.create)}function s(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom",a=!n||r?window.getComputedStyle(e):null,s=e.offsetWidth,c=e.offsetHeight,u="width"===t?s:c;n||(u-=parseFloat(a["padding".concat(o)])+parseFloat(a["padding".concat(i)])+parseFloat(a["border".concat(o,"Width")])+parseFloat(a["border".concat(i,"Width")]));r&&(u+=parseFloat(a["margin".concat(o)])+parseFloat(a["margin".concat(i)]));return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(26)),o=g(n(0)),i=(g(n(1)),g(n(36)),n(12),n(27)),a=g(n(2)),s=n(122),c=n(20),u=(g(n(21)),g(n(46))),l=g(n(370)),d=g(n(677)),f=g(n(678)),p=g(n(373)),h=g(n(123)),m=g(n(679)),b=g(n(680)),y=(g(n(120)),g(n(75)),g(n(59)),n(5));function g(e){return e&&e.__esModule?e:{default:e}}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(){return(_=Object.assign||function(e){for(var t=1;t=r&&f1&&void 0!==arguments[1]?arguments[1]:0;return 7*e+2*t+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!o.default.isMoment(e)||!o.default.isMoment(t))&&e.month()===t.month()&&e.year()===t.year()};var r,o=(r=n(2))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(683),o=n(119),i=n(93).call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(e){var t=r.RequireObjectCoercible(e),n=[];for(var a in t)o(t,a)&&i(t,a)&&n.push(t[a]);return n}},function(e,t,n){"use strict";var r=n(375);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(1)),o=b(n(36)),i=n(12),a=n(20),s=b(n(21)),c=b(n(378)),u=b(n(77)),l=b(n(379)),d=b(n(94)),f=b(n(380)),p=b(n(60)),h=b(n(59)),m=b(n(95));function b(e){return e&&e.__esModule?e:{default:e}}var y={startDate:o.default.momentObj,endDate:o.default.momentObj,onDatesChange:r.default.func.isRequired,focusedInput:c.default,onFocusChange:r.default.func.isRequired,onClose:r.default.func,startDateId:r.default.string.isRequired,startDatePlaceholderText:r.default.string,startDateOffset:r.default.func,endDateOffset:r.default.func,endDateId:r.default.string.isRequired,endDatePlaceholderText:r.default.string,disabled:d.default,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDates:r.default.bool,showDefaultInputIcon:r.default.bool,inputIconPosition:u.default,customInputIcon:r.default.node,customArrowIcon:r.default.node,customCloseIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,keepFocusOnInput:r.default.bool,renderMonthText:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:l.default,anchorDirection:f.default,openDirection:p.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,daySize:i.nonNegativeInteger,isRTL:r.default.bool,firstDayOfWeek:h.default,initialVisibleMonth:r.default.func,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDates:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:m.default,hideKeyboardShortcutsPanel:r.default.bool,verticalHeight:i.nonNegativeInteger,transitionDuration:i.nonNegativeInteger,verticalSpacing:i.nonNegativeInteger,horizontalMonthPadding:i.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,minimumNights:r.default.number,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(a.DateRangePickerPhrases)),dayAriaLabelFormat:r.default.string};t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(1))&&r.__esModule?r:{default:r},i=n(5);var a=o.default.oneOf([i.START_DATE,i.END_DATE]);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(1))&&r.__esModule?r:{default:r},i=n(5);var a=o.default.oneOf([i.HORIZONTAL_ORIENTATION,i.VERTICAL_ORIENTATION]);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(1))&&r.__esModule?r:{default:r},i=n(5);var a=o.default.oneOf([i.ANCHOR_LEFT,i.ANCHOR_RIGHT]);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){var i="undefined"!=typeof window?window.innerWidth:0,a=e===r.ANCHOR_LEFT?i-n:n,s=o||0;return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},e,Math.min(t+a-s,0))};var r=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=n.getBoundingClientRect(),i=o.left,a=o.top;e===r.OPEN_UP&&(a=-(window.innerHeight-o.bottom));t===r.ANCHOR_RIGHT&&(i=-(window.innerWidth-o.right));return{transform:"translate3d(".concat(Math.round(i),"px, ").concat(Math.round(a),"px, 0)")}};var r=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getScrollParent=o,t.getScrollAncestorsOverflowY=i,t.default=function(e){var t=i(e),n=function(e){return t.forEach(function(t,n){n.style.setProperty("overflow-y",e?"hidden":t)})};return n(!0),function(){return n(!1)}};var r=function(){return document.scrollingElement||document.documentElement};function o(e){var t=e.parentElement;if(null==t)return r();var n=window.getComputedStyle(t).overflowY;return"visible"!==n&&"hidden"!==n&&t.scrollHeight>t.clientHeight?t:o(t)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=r(),a=o(e);return t.set(a,a.style.overflowY),a===n?t:i(a,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(26)),o=p(n(0)),i=(p(n(1)),p(n(2))),a=(p(n(36)),n(12),p(n(60)),n(20)),s=(p(n(21)),p(n(385))),c=(p(n(77)),p(n(94)),p(n(74))),u=p(n(173)),l=p(n(78)),d=p(n(96)),f=n(5);function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(){return function(e){return e.__proto__||Object.getPrototypeOf(e)}}())(e)}function b(e,t){for(var n=0;n0&&(I||j||s!==M)){var V=y||this.today;W=this.deleteModifierFromRange(W,V,V.clone().add(M,"days"),"blocked-minimum-nights"),W=this.deleteModifierFromRange(W,V,V.clone().add(M,"days"),"blocked")}(I||N)&&(0,a.default)(E).forEach(function(e){Object.keys(e).forEach(function(e){var n=(0,i.default)(e),r=!1;(I||D)&&(c(n)?(W=t.addModifier(W,n,"blocked-out-of-range"),r=!0):W=t.deleteModifier(W,n,"blocked-out-of-range")),(I||C)&&(u(n)?(W=t.addModifier(W,n,"blocked-calendar"),r=!0):W=t.deleteModifier(W,n,"blocked-calendar")),W=r?t.addModifier(W,n,"blocked"):t.deleteModifier(W,n,"blocked"),(I||z)&&(W=l(n)?t.addModifier(W,n,"highlighted-calendar"):t.deleteModifier(W,n,"highlighted-calendar"))})}),s>0&&n&&o===v.END_DATE&&(W=this.addModifierToRange(W,n,n.clone().add(s,"days"),"blocked-minimum-nights"),W=this.addModifierToRange(W,n,n.clone().add(s,"days"),"blocked"));var U=(0,i.default)();if((0,d.default)(this.today,U)||(W=this.deleteModifier(W,this.today,"today"),W=this.addModifier(W,U,"today"),this.today=U),Object.keys(W).length>0&&this.setState({visibleDays:k({},E,W)}),I||f!==S){var G=P(f,o);this.setState({phrases:k({},f,{chooseAvailableDate:G})})}}}()},{key:"onDayClick",value:function(){return function(e,t){var n=this.props,r=n.keepOpenOnDateSelect,o=n.minimumNights,i=n.onBlur,a=n.focusedInput,s=n.onFocusChange,c=n.onClose,l=n.onDatesChange,d=n.startDateOffset,h=n.endDateOffset,m=n.disabled;if(t&&t.preventDefault(),!this.isBlocked(e)){var y=this.props,g=y.startDate,_=y.endDate;if(d||h){if(g=(0,b.default)(d,e),_=(0,b.default)(h,e),this.isBlocked(g)||this.isBlocked(_))return;l({startDate:g,endDate:_}),r||(s(null),c({startDate:g,endDate:_}))}else if(a===v.START_DATE){var M=_&&_.clone().subtract(o,"days"),w=(0,p.default)(M,e)||(0,f.default)(g,_),x=m===v.END_DATE;x&&w||(g=e,w&&(_=null)),l({startDate:g,endDate:_}),x&&!w?(s(null),c({startDate:g,endDate:_})):x||s(v.END_DATE)}else if(a===v.END_DATE){var k=g&&g.clone().add(o,"days");g?(0,u.default)(e,k)?(l({startDate:g,endDate:_=e}),r||(s(null),c({startDate:g,endDate:_}))):m!==v.START_DATE?l({startDate:g=e,endDate:_=null}):l({startDate:g,endDate:_}):(l({startDate:g,endDate:_=e}),s(v.START_DATE))}else l({startDate:g,endDate:_});i()}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,r=t.endDate,o=t.focusedInput,i=t.minimumNights,a=t.startDateOffset,s=t.endDateOffset,c=this.state,u=c.hoverDate,l=c.visibleDays,h=c.dateOffset,m=null;if(o){var y=a||s,g={};if(y){var _=(0,b.default)(a,e),M=(0,b.default)(s,e,function(e){return e.add(1,"day")});m={start:_,end:M},h&&h.start&&h.end&&(g=this.deleteModifierFromRange(g,h.start,h.end,"hovered-offset")),g=this.addModifierToRange(g,_,M,"hovered-offset")}if(!y){if(g=this.deleteModifier(g,u,"hovered"),g=this.addModifier(g,e,"hovered"),n&&!r&&o===v.END_DATE){if((0,f.default)(u,n)){var w=u.clone().add(1,"day");g=this.deleteModifierFromRange(g,n,w,"hovered-span")}if(!this.isBlocked(e)&&(0,f.default)(e,n)){var x=e.clone().add(1,"day");g=this.addModifierToRange(g,n,x,"hovered-span")}}if(!n&&r&&o===v.START_DATE&&((0,p.default)(u,r)&&(g=this.deleteModifierFromRange(g,u,r,"hovered-span")),!this.isBlocked(e)&&(0,p.default)(e,r)&&(g=this.addModifierToRange(g,e,r,"hovered-span"))),n){var A=n.clone().add(1,"day"),S=n.clone().add(i+1,"days");if(g=this.deleteModifierFromRange(g,A,S,"after-hovered-start"),(0,d.default)(e,n)){var O=n.clone().add(1,"day"),L=n.clone().add(i+1,"days");g=this.addModifierToRange(g,O,L,"after-hovered-start")}}}this.setState({hoverDate:e,dateOffset:m,visibleDays:k({},l,g)})}}}}()},{key:"onDayMouseLeave",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,i=this.state,a=i.hoverDate,s=i.visibleDays,c=i.dateOffset;if(!this.isTouchDevice&&a){var u={};if(u=this.deleteModifier(u,a,"hovered"),c&&(u=this.deleteModifierFromRange(u,c.start,c.end,"hovered-offset")),n&&!r&&(0,f.default)(a,n)){var l=a.clone().add(1,"day");u=this.deleteModifierFromRange(u,n,l,"hovered-span")}if(!n&&r&&(0,f.default)(r,a)&&(u=this.deleteModifierFromRange(u,a,r,"hovered-span")),n&&(0,d.default)(e,n)){var p=n.clone().add(1,"day"),h=n.clone().add(o+1,"days");u=this.deleteModifierFromRange(u,p,h,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:k({},s,u)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.enableOutsideDays,n=e.maxDate,r=e.minDate,o=e.numberOfMonths,i=e.onPrevMonthClick,a=this.state,s=a.currentMonth,c=a.visibleDays,u={};Object.keys(c).sort().slice(0,o+1).forEach(function(e){u[e]=c[e]});var l=s.clone().subtract(2,"months"),d=(0,h.default)(l,1,t,!0),f=s.clone().subtract(1,"month");this.setState({currentMonth:f,disablePrev:this.shouldDisableMonthNavigation(r,f),disableNext:this.shouldDisableMonthNavigation(n,f),visibleDays:k({},u,this.getModifiers(d))},function(){i(f.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.enableOutsideDays,n=e.maxDate,r=e.minDate,o=e.numberOfMonths,i=e.onNextMonthClick,a=this.state,s=a.currentMonth,c=a.visibleDays,u={};Object.keys(c).sort().slice(1).forEach(function(e){u[e]=c[e]});var l=s.clone().add(o+1,"month"),d=(0,h.default)(l,1,t,!0),f=s.clone().add(1,"month");this.setState({currentMonth:f,disablePrev:this.shouldDisableMonthNavigation(r,f),disableNext:this.shouldDisableMonthNavigation(n,f),visibleDays:k({},u,this.getModifiers(d))},function(){i(f.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===v.VERTICAL_SCROLLABLE,i=(0,h.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===v.VERTICAL_SCROLLABLE,i=(0,h.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onMultiplyScrollableMonths",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,r=this.state,o=r.currentMonth,i=r.visibleDays,a=Object.keys(i).length,s=o.clone().add(a,"month"),c=(0,h.default)(s,t,n,!0);this.setState({visibleDays:k({},i,this.getModifiers(c))})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,r=n.startDate,o=n.endDate,i=n.focusedInput,a=n.minimumNights,s=n.numberOfMonths,c=e.clone().startOf("month");if(i===v.START_DATE&&r?c=r.clone():i===v.END_DATE&&!o&&r?c=r.clone().add(a,"days"):i===v.END_DATE&&o&&(c=o.clone()),this.isBlocked(c)){for(var u=[],l=e.clone().add(s-1,"months").endOf("month"),d=c.clone();!(0,f.default)(d,l);)d=d.clone().add(1,"day"),u.push(d);var p=u.filter(function(e){return!t.isBlocked(e)});p.length>0&&(c=x(p,1)[0])}return c}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,y.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,r=e.numberOfMonths,o=e.enableOutsideDays,i=e.orientation,a=e.startDate,s=(n||(a?function(){return a}:function(){return t.today}))(),c=i===v.VERTICAL_SCROLLABLE;return{currentMonth:s,visibleDays:this.getModifiers((0,h.default)(s,r,o,c))}}}()},{key:"shouldDisableMonthNavigation",value:function(){return function(e,t){if(!e)return!1;var n=this.props,r=n.numberOfMonths,o=n.enableOutsideDays;return(0,m.default)(e,t,r,o)}}()},{key:"addModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,a=r.orientation,s=this.state,c=s.currentMonth,u=s.visibleDays,l=c,d=o;if(a===v.VERTICAL_SCROLLABLE?d=Object.keys(u).length:(l=l.clone().subtract(1,"month"),d+=2),!t||!(0,m.default)(t,l,d,i))return e;var f=(0,y.default)(t),p=k({},e);if(i)p=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(f)>-1}).reduce(function(t,r){var o=e[r]||u[r],i=new Set(o[f]);return i.add(n),k({},t,A({},r,k({},o,A({},f,i))))},p);else{var h=(0,g.default)(t),b=e[h]||u[h],_=new Set(b[f]);_.add(n),p=k({},p,A({},h,k({},b,A({},f,_))))}return p}}()},{key:"addModifierToRange",value:function(){return function(e,t,n,r){for(var o=e,i=t.clone();(0,p.default)(i,n);)o=this.addModifier(o,i,r),i=i.clone().add(1,"day");return o}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,a=r.orientation,s=this.state,c=s.currentMonth,u=s.visibleDays,l=c,d=o;if(a===v.VERTICAL_SCROLLABLE?d=Object.keys(u).length:(l=l.clone().subtract(1,"month"),d+=2),!t||!(0,m.default)(t,l,d,i))return e;var f=(0,y.default)(t),p=k({},e);if(i)p=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(f)>-1}).reduce(function(t,r){var o=e[r]||u[r],i=new Set(o[f]);return i.delete(n),k({},t,A({},r,k({},o,A({},f,i))))},p);else{var h=(0,g.default)(t),b=e[h]||u[h],_=new Set(b[f]);_.delete(n),p=k({},p,A({},h,k({},b,A({},f,_))))}return p}}()},{key:"deleteModifierFromRange",value:function(){return function(e,t,n,r){for(var o=e,i=t.clone();(0,p.default)(i,n);)o=this.deleteModifier(o,i,r),i=i.clone().add(1,"day");return o}}()},{key:"doesNotMeetMinimumNights",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.isOutsideRange,o=t.focusedInput,a=t.minimumNights;if(o!==v.END_DATE)return!1;if(n){var s=e.diff(n.clone().startOf("day").hour(12),"days");return s=0}return r((0,i.default)(e).subtract(a,"days"))}}()},{key:"isDayAfterHoveredStartDate",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,i=(this.state||{}).hoverDate;return!!n&&!r&&!this.isBlocked(e)&&(0,l.default)(i,e)&&o>0&&(0,d.default)(i,n)}}()},{key:"isEndDate",value:function(){return function(e){var t=this.props.endDate;return(0,d.default)(e,t)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return!!this.props.focusedInput&&(0,d.default)(e,t)}}()},{key:"isInHoveredSpan",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=(this.state||{}).hoverDate,i=!!n&&!r&&(e.isBetween(n,o)||(0,d.default)(o,e)),a=!!r&&!n&&(e.isBetween(o,r)||(0,d.default)(o,e)),s=o&&!this.isBlocked(o);return(i||a)&&s}}()},{key:"isInSelectedSpan",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate;return e.isBetween(n,r)}}()},{key:"isLastInRange",value:function(){return function(e){var t=this.props.endDate;return this.isInSelectedSpan(e)&&(0,l.default)(e,t)}}()},{key:"isStartDate",value:function(){return function(e){var t=this.props.startDate;return(0,d.default)(e,t)}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)||this.doesNotMeetMinimumNights(e)}}()},{key:"isToday",value:function(){return function(e){return(0,d.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||i.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||i.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,i=e.renderMonthText,a=e.navPrev,s=e.navNext,c=e.noNavButtons,u=e.onOutsideClick,l=e.withPortal,d=e.enableOutsideDays,f=e.firstDayOfWeek,p=e.hideKeyboardShortcutsPanel,h=e.daySize,m=e.focusedInput,b=e.renderCalendarDay,y=e.renderDayContents,g=e.renderCalendarInfo,v=e.renderMonthElement,M=e.calendarInfoPosition,w=e.onBlur,x=e.onShiftTab,k=e.onTab,A=e.isFocused,S=e.showKeyboardShortcuts,O=e.isRTL,L=e.weekDayFormat,T=e.dayAriaLabelFormat,E=e.verticalHeight,D=e.noBorder,P=e.transitionDuration,C=e.verticalBorderSpacing,z=e.horizontalMonthPadding,N=this.state,j=N.currentMonth,R=N.phrases,I=N.visibleDays,Y=N.disablePrev,F=N.disableNext;return o.default.createElement(_.default,{orientation:n,enableOutsideDays:d,modifiers:I,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onTab:k,onShiftTab:x,onYearChange:this.onYearChange,onMultiplyScrollableMonths:this.onMultiplyScrollableMonths,monthFormat:r,renderMonthText:i,withPortal:l,hidden:!m,initialVisibleMonth:function(){return j},daySize:h,onOutsideClick:u,disablePrev:Y,disableNext:F,navPrev:a,navNext:s,noNavButtons:c,renderCalendarDay:b,renderDayContents:y,renderCalendarInfo:g,renderMonthElement:v,calendarInfoPosition:M,firstDayOfWeek:f,hideKeyboardShortcutsPanel:p,isFocused:A,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:w,showKeyboardShortcuts:S,phrases:R,isRTL:O,weekDayFormat:L,dayAriaLabelFormat:T,verticalHeight:E,verticalBorderSpacing:C,noBorder:D,transitionDuration:P,horizontalMonthPadding:z})}}()}]),t}();t.default=C,C.propTypes={},C.defaultProps=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!r.default.isMoment(e)||!r.default.isMoment(t))return!1;var n=(0,r.default)(e).add(1,"day");return(0,o.default)(n,t)};var r=i(n(2)),o=i(n(73));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){if(!r.default.isMoment(e))return{};for(var a={},s=i?e.clone():e.clone().subtract(1,"month"),c=0;c<(i?t:t+2);c+=1){var u=[],l=s.clone(),d=l.clone().startOf("month").hour(12),f=l.clone().endOf("month").hour(12),p=d.clone();if(n)for(var h=0;h0&&this.setState({visibleDays:_({},x,D)})}}()},{key:"componentWillUpdate",value:function(){return function(){this.today=(0,i.default)()}}()},{key:"onDayClick",value:function(){return function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,i=n.onFocusChange,a=n.onClose;r(e),o||(i({focused:!1}),a({date:e}))}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:_({},r,o)})}}}()},{key:"onDayMouseLeave",value:function(){return function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:_({},n,r)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,a=o.visibleDays,s={};Object.keys(a).sort().slice(0,n+1).forEach(function(e){s[e]=a[e]});var c=i.clone().subtract(1,"month"),u=(0,d.default)(c,1,r);this.setState({currentMonth:c,visibleDays:_({},s,this.getModifiers(u))},function(){t(c.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,a=o.visibleDays,s={};Object.keys(a).sort().slice(1).forEach(function(e){s[e]=a[e]});var c=i.clone().add(n,"month"),u=(0,d.default)(c,1,r),l=i.clone().add(1,"month");this.setState({currentMonth:l,visibleDays:_({},s,this.getModifiers(u))},function(){t(l.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===m.VERTICAL_SCROLLABLE,i=(0,d.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===m.VERTICAL_SCROLLABLE,i=(0,d.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,r=n.date,o=n.numberOfMonths,i=e.clone().startOf("month");if(r&&(i=r.clone()),this.isBlocked(i)){for(var a=[],s=e.clone().add(o-1,"months").endOf("month"),c=i.clone();!(0,l.default)(c,s);)c=c.clone().add(1,"day"),a.push(c);var u=a.filter(function(e){return!t.isBlocked(e)&&(0,l.default)(e,i)});if(u.length>0){var d=v(u,1);i=d[0]}}return i}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,p.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,i=e.enableOutsideDays,a=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:a,visibleDays:this.getModifiers((0,d.default)(a,o,i))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,a=r.orientation,s=this.state,c=s.currentMonth,u=s.visibleDays,l=c,d=o;if(a===m.VERTICAL_SCROLLABLE?d=Object.keys(u).length:(l=l.clone().subtract(1,"month"),d+=2),!t||!(0,f.default)(t,l,d,i))return e;var b=(0,p.default)(t),y=_({},e);if(i)y=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(b)>-1}).reduce(function(t,r){var o=e[r]||u[r],i=new Set(o[b]);return i.add(n),_({},t,M({},r,_({},o,M({},b,i))))},y);else{var g=(0,h.default)(t),v=e[g]||u[g],w=new Set(v[b]);w.add(n),y=_({},y,M({},g,_({},v,M({},b,w))))}return y}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,a=r.orientation,s=this.state,c=s.currentMonth,u=s.visibleDays,l=c,d=o;if(a===m.VERTICAL_SCROLLABLE?d=Object.keys(u).length:(l=l.clone().subtract(1,"month"),d+=2),!t||!(0,f.default)(t,l,d,i))return e;var b=(0,p.default)(t),y=_({},e);if(i)y=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(b)>-1}).reduce(function(t,r){var o=e[r]||u[r],i=new Set(o[b]);return i.delete(n),_({},t,M({},r,_({},o,M({},b,i))))},y);else{var g=(0,h.default)(t),v=e[g]||u[g],w=new Set(v[b]);w.delete(n),y=_({},y,M({},g,_({},v,M({},b,w))))}return y}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return(0,u.default)(e,t)}}()},{key:"isSelected",value:function(){return function(e){var t=this.props.date;return(0,u.default)(e,t)}}()},{key:"isToday",value:function(){return function(e){return(0,u.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||i.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||i.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,i=e.renderMonthText,a=e.navPrev,s=e.navNext,c=e.onOutsideClick,u=e.onShiftTab,l=e.onTab,d=e.withPortal,f=e.focused,p=e.enableOutsideDays,h=e.hideKeyboardShortcutsPanel,m=e.daySize,y=e.firstDayOfWeek,g=e.renderCalendarDay,v=e.renderDayContents,_=e.renderCalendarInfo,M=e.renderMonthElement,w=e.calendarInfoPosition,x=e.isFocused,k=e.isRTL,A=e.phrases,S=e.dayAriaLabelFormat,O=e.onBlur,L=e.showKeyboardShortcuts,T=e.weekDayFormat,E=e.verticalHeight,D=e.noBorder,P=e.transitionDuration,C=e.verticalBorderSpacing,z=e.horizontalMonthPadding,N=this.state,j=N.currentMonth,R=N.visibleDays;return o.default.createElement(b.default,{orientation:n,enableOutsideDays:p,modifiers:R,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:d,hidden:!f,hideKeyboardShortcutsPanel:h,initialVisibleMonth:function(){return j},firstDayOfWeek:y,onOutsideClick:c,navPrev:a,navNext:s,renderMonthText:i,renderCalendarDay:g,renderDayContents:v,renderCalendarInfo:_,renderMonthElement:M,calendarInfoPosition:w,isFocused:x,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:O,onTab:l,onShiftTab:u,phrases:A,daySize:m,isRTL:k,showKeyboardShortcuts:L,weekDayFormat:T,dayAriaLabelFormat:S,verticalHeight:E,noBorder:D,transitionDuration:P,verticalBorderSpacing:C,horizontalMonthPadding:z})}}()}]),t}();t.default=L,L.propTypes={},L.defaultProps=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(1)),o=h(n(36)),i=n(12),a=n(20),s=h(n(21)),c=h(n(77)),u=h(n(379)),l=h(n(380)),d=h(n(60)),f=h(n(59)),p=h(n(95));function h(e){return e&&e.__esModule?e:{default:e}}var m={date:o.default.momentObj,onDateChange:r.default.func.isRequired,focused:r.default.bool,onFocusChange:r.default.func.isRequired,id:r.default.string.isRequired,placeholder:r.default.string,disabled:r.default.bool,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDate:r.default.bool,customCloseIcon:r.default.node,showDefaultInputIcon:r.default.bool,inputIconPosition:c.default,customInputIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,verticalSpacing:i.nonNegativeInteger,keepFocusOnInput:r.default.bool,renderMonthText:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:u.default,anchorDirection:l.default,openDirection:d.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,initialVisibleMonth:r.default.func,firstDayOfWeek:f.default,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDate:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:p.default,hideKeyboardShortcutsPanel:r.default.bool,daySize:i.nonNegativeInteger,isRTL:r.default.bool,verticalHeight:i.nonNegativeInteger,transitionDuration:i.nonNegativeInteger,horizontalMonthPadding:i.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,onClose:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(a.SingleDatePickerPhrases)),dayAriaLabelFormat:r.default.string};t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(0)),o=(d(n(1)),n(12),n(27)),i=n(20),a=(d(n(21)),d(n(46))),s=d(n(386)),c=(d(n(77)),d(n(97))),u=d(n(392)),l=(d(n(60)),n(5));function d(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;tc;)r(s,n=t[c++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var r=n(404);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(177);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";var r=n(127),o=n(79),i=n(407),a=n(80),s=n(183),c=n(717),u=n(185),l=n(720),d=n(83)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,h,m,b,y){c(n,t,h);var g,v,_,M=function(e){if(!f&&e in A)return A[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",x="values"==m,k=!1,A=e.prototype,S=A[d]||A["@@iterator"]||m&&A[m],O=S||M(m),L=m?x?M("entries"):O:void 0,T="Array"==t&&A.entries||S;if(T&&(_=l(T.call(new e)))!==Object.prototype&&_.next&&(u(_,w,!0),r||"function"==typeof _[d]||a(_,d,p)),x&&S&&"values"!==S.name&&(k=!0,O=function(){return S.call(this)}),r&&!y||!f&&!k&&A[d]||a(A,d,O),s[t]=O,s[w]=p,m)if(g={values:x?O:M("values"),keys:b?O:M("keys"),entries:L},y)for(v in g)v in A||i(A,v,g[v]);else o(o.P+o.F*(f||k),t,g);return g}},function(e,t,n){e.exports=n(80)},function(e,t,n){var r=n(402),o=n(181).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(129),o=n(125),i=n(82),a=n(176),s=n(63),c=n(400),u=Object.getOwnPropertyDescriptor;t.f=n(62)?u:function(e,t){if(e=i(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){e.exports={default:n(744),__esModule:!0}},function(e,t){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;nt?1:e>=t?0:NaN},o=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var i=o(r),a=i.right,s=i.left,c=a,u=function(e,t){null==t&&(t=l);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);ne?1:t>=e?0:NaN},p=function(e){return null===e?NaN:+e},h=function(e,t){var n,r,o=e.length,i=0,a=-1,s=0,c=0;if(null==t)for(;++a1)return c/(i-1)},m=function(e,t){var n=h(e,t);return n?Math.sqrt(n):n},b=function(e,t){var n,r,o,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=o=n;++an&&(r=n),o=n)for(r=o=n;++an&&(r=n),o0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++s=0?(i>=x?10:i>=k?5:i>=A?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=x?10:i>=k?5:i>=A?2:1)}function L(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=x?o*=10:i>=k?o*=5:i>=A&&(o*=2),td;)f.pop(),--p;var h,m=new Array(p+1);for(o=0;o<=p;++o)(h=m[o]=[]).x0=o>0?f[o-1]:l,h.x1=o=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}},P=function(e,t,n){return e=v.call(e,p).sort(r),Math.ceil((n-t)/(2*(D(e,.75)-D(e,.25))*Math.pow(e.length,-1/3)))},C=function(e,t,n){return Math.ceil((n-t)/(3.5*m(e)*Math.pow(e.length,-1/3)))},z=function(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i=n)for(r=n;++ir&&(r=n)}else for(;++i=n)for(r=n;++ir&&(r=n);return r},N=function(e,t){var n,r=e.length,o=r,i=-1,a=0;if(null==t)for(;++i=0;)for(t=(r=e[o]).length;--t>=0;)n[--a]=r[t];return n},I=function(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i=n)for(r=n;++in&&(r=n)}else for(;++i=n)for(r=n;++in&&(r=n);return r},Y=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},F=function(e,t){if(n=e.length){var n,o,i=0,a=0,s=e[a];for(null==t&&(t=r);++i=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),a=-1,s=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a0)for(var n,r,o=new Array(n),i=0;i=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),he.hasOwnProperty(t)?{space:he[t],local:e}:e};var be=function(e){var t=me(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===pe&&t.documentElement.namespaceURI===pe?t.createElement(e):t.createElementNS(n,e)}})(t)};function ye(){}var ge=function(e){return null==e?ye:function(){return this.querySelector(e)}};function ve(){return[]}var _e=function(e){return null==e?ve:function(){return this.querySelectorAll(e)}},Me=function(e){return function(){return this.matches(e)}},we=function(e){return new Array(e.length)};function xe(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}xe.prototype={constructor:xe,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var ke="$";function Ae(e,t,n,r,o,i){for(var a,s=0,c=t.length,u=i.length;st?1:e>=t?0:NaN}var Le=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function Te(e,t){return e.style.getPropertyValue(t)||Le(e).getComputedStyle(e,null).getPropertyValue(t)}function Ee(e){return e.trim().split(/^|\s+/)}function De(e){return e.classList||new Pe(e)}function Pe(e){this._node=e,this._names=Ee(e.getAttribute("class")||"")}function Ce(e,t){for(var n=De(e),r=-1,o=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ne(){this.textContent=""}function je(){this.innerHTML=""}function Re(){this.nextSibling&&this.parentNode.appendChild(this)}function Ie(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ye(){return null}function Fe(){var e=this.parentNode;e&&e.removeChild(this)}function We(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function qe(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var Be={},He=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Be={mouseenter:"mouseover",mouseleave:"mouseout"}));function Xe(e,t,n){return e=Ve(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Ve(e,t,n){return function(r){var o=He;He=r;try{e.call(this,this.__data__,t,n)}finally{He=o}}}function Ue(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r=M&&(M=_+1);!(v=y[M])&&++M=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Oe);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):Te(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=Ee(e+"");if(arguments.length<2){for(var r=De(this.node()),o=-1,i=n.length;++o=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?Ge:Ue,null==n&&(n=!1),r=0;rd}c.mouse("drag")}function m(){tt(He.view).on("mousemove.drag mouseup.drag",null),mt(He.view,n),pt(),c.mouse("end")}function b(){if(o.apply(this,arguments)){var e,t,n=He.changedTouches,r=i.apply(this,arguments),a=n.length;for(e=0;e>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Et.exec(e))?Yt(parseInt(t[1],16)):(t=Dt.exec(e))?new Bt(t[1],t[2],t[3],1):(t=Pt.exec(e))?new Bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ct.exec(e))?Ft(t[1],t[2],t[3],t[4]):(t=zt.exec(e))?Ft(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Nt.exec(e))?Xt(t[1],t[2]/100,t[3]/100,1):(t=jt.exec(e))?Xt(t[1],t[2]/100,t[3]/100,t[4]):Rt.hasOwnProperty(e)?Yt(Rt[e]):"transparent"===e?new Bt(NaN,NaN,NaN,0):null}function Yt(e){return new Bt(e>>16&255,e>>8&255,255&e,1)}function Ft(e,t,n,r){return r<=0&&(e=t=n=NaN),new Bt(e,t,n,r)}function Wt(e){return e instanceof At||(e=It(e)),e?new Bt((e=e.rgb()).r,e.g,e.b,e.opacity):new Bt}function qt(e,t,n,r){return 1===arguments.length?Wt(e):new Bt(e,t,n,null==r?1:r)}function Bt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ht(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Xt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ut(e,t,n,r)}function Vt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ut)return new Ut(e.h,e.s,e.l,e.opacity);if(e instanceof At||(e=It(e)),!e)return new Ut;if(e instanceof Ut)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n0&&c<1?0:a,new Ut(a,s,c,e.opacity)}(e):new Ut(e,t,n,null==r?1:r)}function Ut(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Gt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}xt(At,It,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),xt(Bt,qt,kt(At,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Ht(this.r)+Ht(this.g)+Ht(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),xt(Ut,Vt,kt(At,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ut(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ut(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Bt(Gt(e>=240?e-240:e+120,o,r),Gt(e,o,r),Gt(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Kt=Math.PI/180,Jt=180/Math.PI,Qt=.96422,$t=1,Zt=.82521,en=4/29,tn=6/29,nn=3*tn*tn,rn=tn*tn*tn;function on(e){if(e instanceof cn)return new cn(e.l,e.a,e.b,e.opacity);if(e instanceof bn){if(isNaN(e.h))return new cn(e.l,0,0,e.opacity);var t=e.h*Kt;return new cn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Bt||(e=Wt(e));var n,r,o=fn(e.r),i=fn(e.g),a=fn(e.b),s=un((.2225045*o+.7168786*i+.0606169*a)/$t);return o===i&&i===a?n=r=s:(n=un((.4360747*o+.3850649*i+.1430804*a)/Qt),r=un((.0139322*o+.0971045*i+.7141733*a)/Zt)),new cn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function an(e,t){return new cn(e,0,0,null==t?1:t)}function sn(e,t,n,r){return 1===arguments.length?on(e):new cn(e,t,n,null==r?1:r)}function cn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function un(e){return e>rn?Math.pow(e,1/3):e/nn+en}function ln(e){return e>tn?e*e*e:nn*(e-en)}function dn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pn(e){if(e instanceof bn)return new bn(e.h,e.c,e.l,e.opacity);if(e instanceof cn||(e=on(e)),0===e.a&&0===e.b)return new bn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Jt;return new bn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function hn(e,t,n,r){return 1===arguments.length?pn(e):new bn(n,t,e,null==r?1:r)}function mn(e,t,n,r){return 1===arguments.length?pn(e):new bn(e,t,n,null==r?1:r)}function bn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}xt(cn,sn,kt(At,{brighter:function(e){return new cn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new cn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Bt(dn(3.1338561*(t=Qt*ln(t))-1.6168667*(e=$t*ln(e))-.4906146*(n=Zt*ln(n))),dn(-.9787684*t+1.9161415*e+.033454*n),dn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),xt(bn,mn,kt(At,{brighter:function(e){return new bn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new bn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return on(this).rgb()}}));var yn=-.29227,gn=-.90649,vn=1.97294,_n=vn*gn,Mn=1.78277*vn,wn=1.78277*yn- -.14861*gn;function xn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof kn)return new kn(e.h,e.s,e.l,e.opacity);e instanceof Bt||(e=Wt(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(wn*r+_n*t-Mn*n)/(wn+_n-Mn),i=r-o,a=(vn*(n-o)-yn*i)/gn,s=Math.sqrt(a*a+i*i)/(vn*o*(1-o)),c=s?Math.atan2(a,i)*Jt-120:NaN;return new kn(c<0?c+360:c,s,o,e.opacity)}(e):new kn(e,t,n,null==r?1:r)}function kn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function An(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}xt(kn,xn,kt(At,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new kn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new kn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Kt,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new Bt(255*(t+n*(-.14861*r+1.78277*o)),255*(t+n*(yn*r+gn*o)),255*(t+n*(vn*r)),this.opacity)}}));var Sn=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r180||n<-180?n-360*Math.round(n/360):n):Ln(isNaN(e)?t:e)}function Dn(e){return 1==(e=+e)?Pn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ln(isNaN(t)?n:t)}}function Pn(e,t){var n=t-e;return n?Tn(e,n):Ln(isNaN(e)?t:e)}var Cn=function e(t){var n=Dn(t);function r(e,t){var r=n((e=qt(e)).r,(t=qt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Pn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function zn(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;ni&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:Yn(n,r)})),i=qn.lastIndex;return i180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Yn(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,c),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Yn(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,c),function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:Yn(e,n)},{i:s-2,x:Yn(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,c),i=a=null,function(e){for(var t,n=-1,r=c.length;++n=0&&t._call.call(null,e),t=t._next;--Mr}function Nr(){Sr=(Ar=Lr.now())+Or,Mr=wr=0;try{zr()}finally{Mr=0,function(){var e,t,n=gr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:gr=t);vr=e,Rr(r)}(),Sr=0}}function jr(){var e=Lr.now(),t=e-Ar;t>kr&&(Or-=t,Ar=e)}function Rr(e){Mr||(wr&&(wr=clearTimeout(wr)),e-Sr>24?(e<1/0&&(wr=setTimeout(Nr,e-Lr.now()-Or)),xr&&(xr=clearInterval(xr))):(xr||(Ar=Lr.now(),xr=setInterval(jr,kr)),Mr=1,Tr(Nr)))}Pr.prototype=Cr.prototype={constructor:Pr,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Er():+n)+(null==t?0:+t),this._next||vr===this||(vr?vr._next=this:gr=this,vr=this),this._call=e,this._time=n,Rr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rr())}};var Ir=function(e,t,n){var r=new Pr;return t=null==t?0:+t,r.restart(function(n){r.stop(),e(n+t)},t,n),r},Yr=function(e,t,n){var r=new Pr,o=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?Er():+n,r.restart(function i(a){a+=o,r.restart(i,o+=t,n),e(a)},t,n),r)},Fr=fe("start","end","cancel","interrupt"),Wr=[],qr=0,Br=1,Hr=2,Xr=3,Vr=4,Ur=5,Gr=6,Kr=function(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(c){var u,l,d,f;if(n.state!==Br)return s();for(u in o)if((f=o[u]).name===n.name){if(f.state===Xr)return Ir(i);f.state===Vr?(f.state=Gr,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[u]):+uqr)throw new Error("too late; already scheduled");return n}function Qr(e,t){var n=$r(e,t);if(n.state>Xr)throw new Error("too late; already running");return n}function $r(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var Zr=function(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>Hr&&n.state=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?Jr:Qr;return function(){var a=i(this,e),s=a.on;s!==r&&(o=(r=s).copy()).on(t,n),a.on=o}}(n,e,t))},attr:function(e,t){var n=me(e),r="transform"===n?rr:to;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,o,i;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttributeNS(e.space,e.local))===(s=c+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,c));this.removeAttributeNS(e.space,e.local)}}:function(e,t,n){var r,o,i;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttribute(e))===(s=c+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,c));this.removeAttribute(e)}})(n,r,eo(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}:function(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=me(e);return this.tween(n,(r.local?function(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t(n))}}(e,o)),n}return o._value=t,o}:function(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttribute(e,t(n))}}(e,o)),n}return o._value=t,o})(r,t))},style:function(e,t,n){var r="transform"==(e+="")?nr:to;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=Te(this,e),a=(this.style.removeProperty(e),Te(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,ro(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,o,i;return function(){var a=Te(this,e),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(e),c=s=Te(this,e)),a===c?null:a===r&&c===o?i:(o=c,i=t(r=a,s))}}(e,r,eo(this,"style."+e,t))).each(function(e,t){var n,r,o,i,a="style."+t,s="end."+a;return function(){var c=Qr(this,e),u=c.on,l=null==c.value[a]?i||(i=ro(t)):void 0;u===n&&o===l||(r=(n=u).copy()).on(s,o=l),c.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,i=n+"";return function(){var a=Te(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&function(e,t,n){return function(r){this.style.setProperty(e,t(r),n)}}(e,i,n)),r}return i._value=t,i}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(eo(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}));var e},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=$r(this.node(),n).tween,i=0,a=o.length;iBr&&n.name===t)return new io([[e]],Zo,t,+r);return null},ti=function(e){return function(){return e}},ni=function(e,t,n){this.target=e,this.type=t,this.selection=n};function ri(){He.stopImmediatePropagation()}var oi=function(){He.preventDefault(),He.stopImmediatePropagation()},ii={name:"drag"},ai={name:"space"},si={name:"handle"},ci={name:"center"},ui={name:"x",handles:["e","w"].map(yi),input:function(e,t){return e&&[[e[0],t[0][1]],[e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},li={name:"y",handles:["n","s"].map(yi),input:function(e,t){return e&&[[t[0][0],e[0]],[t[1][0],e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},di={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(yi),input:function(e){return e},output:function(e){return e}},fi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},pi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},hi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},mi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},bi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function yi(e){return{type:e}}function gi(){return!He.button}function vi(){var e=this.ownerSVGElement||this;return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function _i(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Mi(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function wi(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function xi(){return Si(ui)}function ki(){return Si(li)}var Ai=function(){return Si(di)};function Si(e){var t,n=vi,r=gi,o=fe(a,"start","brush","end"),i=6;function a(t){var n=t.property("__brush",d).selectAll(".overlay").data([yi("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",fi.overlay).merge(n).each(function(){var e=_i(this).extent;tt(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])}),t.selectAll(".selection").data([yi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",fi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,function(e){return e.type});r.exit().remove(),r.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return fi[e.type]}),t.each(s).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",l)}function s(){var e=tt(this),t=_i(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",function(e){return"e"===e.type[e.type.length-1]?t[1][0]-i/2:t[0][0]-i/2}).attr("y",function(e){return"s"===e.type[0]?t[1][1]-i/2:t[0][1]-i/2}).attr("width",function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+i:i}).attr("height",function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+i:i})):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(e,t){return e.__brush.emitter||new u(e,t)}function u(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function l(){if(He.touches){if(He.changedTouches.length0&&(n=o-p),w<0?d=f-h:w>0&&(i=a-h),_=ai,N.attr("cursor",fi.selection),I());break;default:return}oi()},!0).on("keyup.brush",function(){switch(He.keyCode){case 16:E&&(b=y=E=!1,I());break;case 18:_===ci&&(M<0?u=l:M>0&&(n=o),w<0?d=f:w>0&&(i=a),_=si,I());break;case 32:_===ai&&(He.altKey?(M&&(u=l-p*M,n=o+p*M),w&&(d=f-h*w,i=a+h*w),_=ci):(M<0?u=l:M>0&&(n=o),w<0?d=f:w>0&&(i=a),_=si),N.attr("cursor",fi[v]),I());break;default:return}oi()},!0).on("mousemove.brush",R,!0).on("mouseup.brush",Y,!0);ht(He.view)}ri(),Zr(g),s.call(g),C.start()}function R(){var e=ct(g);!E||b||y||(Math.abs(e[0]-P[0])>Math.abs(e[1]-P[1])?y=!0:b=!0),P=e,m=!0,oi(),I()}function I(){var e;switch(p=P[0]-D[0],h=P[1]-D[1],_){case ai:case ii:M&&(p=Math.max(S-n,Math.min(L-u,p)),o=n+p,l=u+p),w&&(h=Math.max(O-i,Math.min(T-d,h)),a=i+h,f=d+h);break;case si:M<0?(p=Math.max(S-n,Math.min(L-n,p)),o=n+p,l=u):M>0&&(p=Math.max(S-u,Math.min(L-u,p)),o=n,l=u+p),w<0?(h=Math.max(O-i,Math.min(T-i,h)),a=i+h,f=d):w>0&&(h=Math.max(O-d,Math.min(T-d,h)),a=i,f=d+h);break;case ci:M&&(o=Math.max(S,Math.min(L,n-p*M)),l=Math.max(S,Math.min(L,u+p*M))),w&&(a=Math.max(O,Math.min(T,i-h*w)),f=Math.max(O,Math.min(T,d+h*w)))}l1e-6)if(Math.abs(l*s-c*u)>1e-6&&o){var f=n-i,p=r-a,h=s*s+c*c,m=f*f+p*p,b=Math.sqrt(h),y=Math.sqrt(d),g=o*Math.tan((ji-Math.acos((h+d-m)/(2*b*y)))/2),v=g/y,_=g/b;Math.abs(v-1)>1e-6&&(this._+="L"+(e+v*u)+","+(t+v*l)),this._+="A"+o+","+o+",0,0,"+ +(l*f>u*p)+","+(this._x1=e+_*s)+","+(this._y1=t+_*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=e+a,u=t+s,l=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+c+","+u),n&&(d<0&&(d=d%Ri+Ri),d>Ii?this._+="A"+n+","+n+",0,1,"+l+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=ji)+","+l+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Wi=Fi;function qi(e){return e.source}function Bi(e){return e.target}function Hi(e){return e.radius}function Xi(e){return e.startAngle}function Vi(e){return e.endAngle}var Ui=function(){var e=qi,t=Bi,n=Hi,r=Xi,o=Vi,i=null;function a(){var a,s=zi.call(arguments),c=e.apply(this,s),u=t.apply(this,s),l=+n.apply(this,(s[0]=c,s)),d=r.apply(this,s)-Ei,f=o.apply(this,s)-Ei,p=l*Oi(d),h=l*Li(d),m=+n.apply(this,(s[0]=u,s)),b=r.apply(this,s)-Ei,y=o.apply(this,s)-Ei;if(i||(i=a=Wi()),i.moveTo(p,h),i.arc(0,0,l,d,f),d===b&&f===y||(i.quadraticCurveTo(0,0,m*Oi(b),m*Li(b)),i.arc(0,0,m,b,y)),i.quadraticCurveTo(0,0,p,h),i.closePath(),a)return i=null,a+""||null}return a.radius=function(e){return arguments.length?(n="function"==typeof e?e:Ni(+e),a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Ni(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Ni(+e),a):o},a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(e){return arguments.length?(t=e,a):t},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a};function Gi(){}function Ki(e,t){var n=new Gi;if(e instanceof Gi)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var c,u,l,d=-1,f=n.length,p=r[o++],h=Ji(),m=a();++dr.length)return n;var a,s=o[i-1];return null!=t&&i>=r.length?a=n.entries():(a=[],n.each(function(t,n){a.push({key:n,values:e(t,i)})})),null!=s?a.sort(function(e,t){return s(e.key,t.key)}):a}(i(e,0,ea,ta),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return o[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function $i(){return{}}function Zi(e,t,n){e[t]=n}function ea(){return Ji()}function ta(e,t,n){e.set(t,n)}function na(){}var ra=Ji.prototype;function oa(e,t){var n=new na;if(e instanceof na)e.each(function(e){n.add(e)});else if(e){var r=-1,o=e.length;if(null==t)for(;++rr!=p>r&&n<(f-u)*(r-l)/(p-l)+u&&(o=-o)}return o}function ma(e,t,n){var r,o,i,a;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(o=e[r=+(e[0]===t[0])],i=n[r],a=t[r],o<=i&&i<=a||a<=i&&i<=o)}var ba=function(){},ya=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],ga=function(){var e=1,t=1,n=T,r=s;function o(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(la);else{var r=b(e),o=r[0],a=r[1];t=L(o,a,t),t=w(Math.floor(o/t)*t,Math.floor(a/t)*t,t)}return t.map(function(t){return i(e,t)})}function i(n,o){var i=[],s=[];return function(n,r,o){var i,s,c,u,l,d,f=new Array,p=new Array;i=s=-1,u=n[0]>=r,ya[u<<1].forEach(h);for(;++i=r,ya[c|u<<1].forEach(h);ya[u<<0].forEach(h);for(;++s=r,l=n[s*e]>=r,ya[u<<1|l<<2].forEach(h);++i=r,d=l,l=n[s*e+i+1]>=r,ya[c|u<<1|l<<2|d<<3].forEach(h);ya[u|l<<3].forEach(h)}i=-1,l=n[s*e]>=r,ya[l<<2].forEach(h);for(;++i=r,ya[l<<2|d<<3].forEach(h);function h(e){var t,n,r=[e[0][0]+i,e[0][1]+s],c=[e[1][0]+i,e[1][1]+s],u=a(r),l=a(c);(t=p[u])?(n=f[l])?(delete p[t.end],delete f[n.start],t===n?(t.ring.push(c),o(t.ring)):f[t.start]=p[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete p[t.end],t.ring.push(c),p[t.end=l]=t):(t=f[l])?(n=p[u])?(delete f[t.start],delete p[n.end],t===n?(t.ring.push(c),o(t.ring)):f[n.start]=p[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete f[t.start],t.ring.unshift(r),f[t.start=u]=t):f[u]=p[l]={start:u,end:l,ring:[r,c]}}ya[l<<3].forEach(h)}(n,o,function(e){r(e,n,o),da(e)>0?i.push([e]):s.push(e)}),s.forEach(function(e){for(var t,n=0,r=i.length;n0&&a0&&s0&&i>0))throw new Error("invalid size");return e=r,t=i,o},o.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?fa(ua.call(e)):fa(e),o):n},o.smooth=function(e){return arguments.length?(r=e?s:ba,o):r===s},o};function va(e,t,n){for(var r=e.width,o=e.height,i=1+(n<<1),a=0;a=n&&(s>=i&&(c-=e.data[s-i+a*r]),t.data[s-n+a*r]=c/Math.min(s+1,r-1+i-s,i))}function _a(e,t,n){for(var r=e.width,o=e.height,i=1+(n<<1),a=0;a=n&&(s>=i&&(c-=e.data[a+(s-i)*r]),t.data[a+(s-n)*r]=c/Math.min(s+1,o-1+i-s,i))}function Ma(e){return e[0]}function wa(e){return e[1]}function xa(){return 1}var ka=function(){var e=Ma,t=wa,n=xa,r=960,o=500,i=20,a=2,s=3*i,c=r+2*s>>a,u=o+2*s>>a,l=fa(20);function d(r){var o=new Float32Array(c*u),d=new Float32Array(c*u);r.forEach(function(r,i,l){var d=+e(r,i,l)+s>>a,f=+t(r,i,l)+s>>a,p=+n(r,i,l);d>=0&&d=0&&f>a),_a({width:c,height:u,data:d},{width:c,height:u,data:o},i>>a),va({width:c,height:u,data:o},{width:c,height:u,data:d},i>>a),_a({width:c,height:u,data:d},{width:c,height:u,data:o},i>>a),va({width:c,height:u,data:o},{width:c,height:u,data:d},i>>a),_a({width:c,height:u,data:d},{width:c,height:u,data:o},i>>a);var p=l(o);if(!Array.isArray(p)){var h=z(o);p=L(0,h,p),(p=w(0,Math.floor(h/p)*p,p)).shift()}return ga().thresholds(p).size([c,u])(o).map(f)}function f(e){return e.value*=Math.pow(2,-2*a),e.coordinates.forEach(p),e}function p(e){e.forEach(h)}function h(e){e.forEach(m)}function m(e){e[0]=e[0]*Math.pow(2,a)-s,e[1]=e[1]*Math.pow(2,a)-s}function b(){return c=r+2*(s=3*i)>>a,u=o+2*s>>a,d}return d.x=function(t){return arguments.length?(e="function"==typeof t?t:fa(+t),d):e},d.y=function(e){return arguments.length?(t="function"==typeof e?e:fa(+e),d):t},d.weight=function(e){return arguments.length?(n="function"==typeof e?e:fa(+e),d):n},d.size=function(e){if(!arguments.length)return[r,o];var t=Math.ceil(e[0]),n=Math.ceil(e[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return r=t,o=n,b()},d.cellSize=function(e){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(e)/Math.LN2),b()},d.thresholds=function(e){return arguments.length?(l="function"==typeof e?e:Array.isArray(e)?fa(ua.call(e)):fa(e),d):l},d.bandwidth=function(e){if(!arguments.length)return Math.sqrt(i*(i+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return i=Math.round((Math.sqrt(4*e*e+1)-1)/2),b()},d},Aa={},Sa={},Oa=34,La=10,Ta=13;function Ea(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}")}function Da(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),n}function Pa(e,t){var n=e+"",r=n.length;return r9999?"+"+Pa(t,6):Pa(t,4))+"-"+Pa(e.getUTCMonth()+1,2)+"-"+Pa(e.getUTCDate(),2)+(i?"T"+Pa(n,2)+":"+Pa(r,2)+":"+Pa(o,2)+"."+Pa(i,3)+"Z":o?"T"+Pa(n,2)+":"+Pa(r,2)+":"+Pa(o,2)+"Z":r||n?"T"+Pa(n,2)+":"+Pa(r,2)+"Z":"")}var za=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,o=[],i=e.length,a=0,s=0,c=i<=0,u=!1;function l(){if(c)return Sa;if(u)return u=!1,Aa;var t,r,o=a;if(e.charCodeAt(o)===Oa){for(;a++=i?c=!0:(r=e.charCodeAt(a++))===La?u=!0:r===Ta&&(u=!0,e.charCodeAt(a)===La&&++a),e.slice(o+1,t-1).replace(/""/g,'"')}for(;a=(i=(m+y)/2))?m=i:y=i,(l=n>=(a=(b+g)/2))?b=a:g=a,o=p,!(p=p[d=l<<1|u]))return o[d]=h,e;if(s=+e._x.call(null,p.data),c=+e._y.call(null,p.data),t===s&&n===c)return h.next=p,o?o[d]=h:e._root=h,e;do{o=o?o[d]=new Array(4):e._root=new Array(4),(u=t>=(i=(m+y)/2))?m=i:y=i,(l=n>=(a=(b+g)/2))?b=a:g=a}while((d=l<<1|u)==(f=(c>=a)<<1|s>=i));return o[f]=p,o[d]=h,e}var ms=function(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o};function bs(e){return e[0]}function ys(e){return e[1]}function gs(e,t,n){var r=new vs(null==t?bs:t,null==n?ys:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function vs(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function _s(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Ms=gs.prototype=vs.prototype;function ws(e){return e.x+e.vx}function xs(e){return e.y+e.vy}Ms.copy=function(){var e,t,n=new vs(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=_s(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(4)}):r.target[o]=_s(t));return n},Ms.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return hs(this.cover(t,n),t,n,e)},Ms.addAll=function(e){var t,n,r,o,i=e.length,a=new Array(i),s=new Array(i),c=1/0,u=1/0,l=-1/0,d=-1/0;for(n=0;nl&&(l=r),od&&(d=o));if(c>l||u>d)return this;for(this.cover(c,u).cover(l,d),n=0;ne||e>=o||r>t||t>=i;)switch(s=(tf||(i=c.y0)>p||(a=c.x1)=y)<<1|e>=b)&&(c=h[h.length-1],h[h.length-1]=h[h.length-1-u],h[h.length-1-u]=c)}else{var g=e-+this._x.call(null,m.data),v=t-+this._y.call(null,m.data),_=g*g+v*v;if(_=(s=(h+b)/2))?h=s:b=s,(l=a>=(c=(m+y)/2))?m=c:y=c,t=p,!(p=p[d=l<<1|u]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,f=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):t?(o?t[d]=o:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[f]=p:this._root=p),this):(this._root=o,this)},Ms.removeAll=function(e){for(var t=0,n=e.length;tc+p||ou+p||is.index){var h=c-a.x-a.vx,m=u-a.y-a.vy,b=h*h+m*m;be.r&&(e.r=e[t].r)}function s(){if(t){var r,o,i=t.length;for(n=new Array(i),r=0;r1?(null==n?s.remove(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,r){var o,i,a,s,c,u=0,l=e.length;for(null==r?r=1/0:r*=r,u=0;u1?(u.on(e,n),t):u.on(e)}}},Cs=function(){var e,t,n,r,o=fs(-30),i=1,a=1/0,s=.81;function c(r){var o,i=e.length,a=gs(e,Ls,Ts).visitAfter(l);for(n=r,o=0;o=a)){(e.data!==t||e.next)&&(0===l&&(p+=(l=ps())*l),0===d&&(p+=(d=ps())*d),p1?r[0]+r.slice(2):r,+e.slice(n+1)]},Is=function(e){return(e=Rs(Math.abs(e)))?e[1]:NaN},Ys=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fs(e){return new Ws(e)}function Ws(e){if(!(t=Ys.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}Fs.prototype=Ws.prototype,Ws.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var qs,Bs,Hs,Xs,Vs=function(e){e:for(var t,n=e.length,r=1,o=-1;r0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e},Us=function(e,t){var n=Rs(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},Gs={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Us(100*e,t)},r:Us,s:function(e,t){var n=Rs(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(qs=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Rs(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Ks=function(e){return e},Js=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Qs=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(e.substring(o-=s,o+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}):Ks,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):Ks,s=e.percent||"%";function c(e){var t=(e=Fs(e)).fill,n=e.align,c=e.sign,u=e.symbol,l=e.zero,d=e.width,f=e.comma,p=e.precision,h=e.trim,m=e.type;"n"===m?(f=!0,m="g"):Gs[m]||(null==p&&(p=12),h=!0,m="g"),(l||"0"===t&&"="===n)&&(l=!0,t="0",n="=");var b="$"===u?o[0]:"#"===u&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",y="$"===u?o[1]:/[%p]/.test(m)?s:"",g=Gs[m],v=/[defgprs%]/.test(m);function _(e){var o,s,u,_=b,M=y;if("c"===m)M=g(e)+M,e="";else{var w=(e=+e)<0;if(e=g(Math.abs(e),p),h&&(e=Vs(e)),w&&0==+e&&(w=!1),_=(w?"("===c?c:"-":"-"===c||"("===c?"":c)+_,M=("s"===m?Js[8+qs/3]:"")+M+(w&&"("===c?")":""),v)for(o=-1,s=e.length;++o(u=e.charCodeAt(o))||u>57){M=(46===u?i+e.slice(o+1):e.slice(o))+M,e=e.slice(0,o);break}}f&&!l&&(e=r(e,1/0));var x=_.length+e.length+M.length,k=x>1)+_+e+M+k.slice(x);break;default:e=k+_+e+M}return a(e)}return p=null==p?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),_.toString=function(){return e+""},_}return{format:c,formatPrefix:function(e,t){var n=c(((e=Fs(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Is(t)/3))),o=Math.pow(10,-r),i=Js[8+r/3];return function(e){return n(o*e)+i}}}};function $s(e){return Bs=Qs(e),Hs=Bs.format,Xs=Bs.formatPrefix,Bs}$s({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Zs=function(e){return Math.max(0,-Is(Math.abs(e)))},ec=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Is(t)/3)))-Is(Math.abs(e)))},tc=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Is(t)-Is(e))+1},nc=function(){return new rc};function rc(){this.reset()}rc.prototype={constructor:rc,reset:function(){this.s=this.t=0},add:function(e){ic(oc,e,this.t),ic(this,oc.s,this.s),this.s?this.t+=oc.t:this.s=oc.t},valueOf:function(){return this.s}};var oc=new rc;function ic(e,t,n){var r=e.s=t+n,o=r-t,i=r-o;e.t=t-i+(n-o)}var ac=1e-6,sc=Math.PI,cc=sc/2,uc=sc/4,lc=2*sc,dc=180/sc,fc=sc/180,pc=Math.abs,hc=Math.atan,mc=Math.atan2,bc=Math.cos,yc=Math.ceil,gc=Math.exp,vc=(Math.floor,Math.log),_c=Math.pow,Mc=Math.sin,wc=Math.sign||function(e){return e>0?1:e<0?-1:0},xc=Math.sqrt,kc=Math.tan;function Ac(e){return e>1?0:e<-1?sc:Math.acos(e)}function Sc(e){return e>1?cc:e<-1?-cc:Math.asin(e)}function Oc(e){return(e=Mc(e/2))*e}function Lc(){}function Tc(e,t){e&&Dc.hasOwnProperty(e.type)&&Dc[e.type](e,t)}var Ec={Feature:function(e,t){Tc(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r=0?1:-1,o=r*n,i=bc(t=(t*=fc)/2+uc),a=Mc(t),s=Ic*a,c=Rc*i+s*bc(o),u=s*r*Mc(o);Fc.add(mc(u,c)),jc=e,Rc=i,Ic=a}var Uc=function(e){return Wc.reset(),Yc(e,qc),2*Wc};function Gc(e){return[mc(e[1],e[0]),Sc(e[2])]}function Kc(e){var t=e[0],n=e[1],r=bc(n);return[r*bc(t),r*Mc(t),Mc(n)]}function Jc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Qc(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function $c(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Zc(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function eu(e){var t=xc(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var tu,nu,ru,ou,iu,au,su,cu,uu,lu,du=nc(),fu={point:pu,lineStart:mu,lineEnd:bu,polygonStart:function(){fu.point=yu,fu.lineStart=gu,fu.lineEnd=vu,du.reset(),qc.polygonStart()},polygonEnd:function(){qc.polygonEnd(),fu.point=pu,fu.lineStart=mu,fu.lineEnd=bu,Fc<0?(tu=-(ru=180),nu=-(ou=90)):du>ac?ou=90:du<-ac&&(nu=-90),lu[0]=tu,lu[1]=ru}};function pu(e,t){uu.push(lu=[tu=e,ru=e]),tou&&(ou=t)}function hu(e,t){var n=Kc([e*fc,t*fc]);if(cu){var r=Qc(cu,n),o=Qc([r[1],-r[0],0],r);eu(o),o=Gc(o);var i,a=e-iu,s=a>0?1:-1,c=o[0]*dc*s,u=pc(a)>180;u^(s*iuou&&(ou=i):u^(s*iu<(c=(c+360)%360-180)&&cou&&(ou=t)),u?e_u(tu,ru)&&(ru=e):_u(e,ru)>_u(tu,ru)&&(tu=e):ru>=tu?(eru&&(ru=e)):e>iu?_u(tu,e)>_u(tu,ru)&&(ru=e):_u(e,ru)>_u(tu,ru)&&(tu=e)}else uu.push(lu=[tu=e,ru=e]);tou&&(ou=t),cu=n,iu=e}function mu(){fu.point=hu}function bu(){lu[0]=tu,lu[1]=ru,fu.point=pu,cu=null}function yu(e,t){if(cu){var n=e-iu;du.add(pc(n)>180?n+(n>0?360:-360):n)}else au=e,su=t;qc.point(e,t),hu(e,t)}function gu(){qc.lineStart()}function vu(){yu(au,su),qc.lineEnd(),pc(du)>ac&&(tu=-(ru=180)),lu[0]=tu,lu[1]=ru,cu=null}function _u(e,t){return(t-=e)<0?t+360:t}function Mu(e,t){return e[0]-t[0]}function wu(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t_u(r[0],r[1])&&(r[1]=o[1]),_u(o[0],r[1])>_u(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,t=0,r=i[n=i.length-1];t<=n;r=o,++t)o=i[t],(s=_u(r[1],o[0]))>a&&(a=s,tu=o[0],ru=r[1])}return uu=lu=null,tu===1/0||nu===1/0?[[NaN,NaN],[NaN,NaN]]:[[tu,nu],[ru,ou]]},Fu={sphere:Lc,point:Wu,lineStart:Bu,lineEnd:Vu,polygonStart:function(){Fu.lineStart=Uu,Fu.lineEnd=Gu},polygonEnd:function(){Fu.lineStart=Bu,Fu.lineEnd=Vu}};function Wu(e,t){e*=fc;var n=bc(t*=fc);qu(n*bc(e),n*Mc(e),Mc(t))}function qu(e,t,n){Au+=(e-Au)/++xu,Su+=(t-Su)/xu,Ou+=(n-Ou)/xu}function Bu(){Fu.point=Hu}function Hu(e,t){e*=fc;var n=bc(t*=fc);ju=n*bc(e),Ru=n*Mc(e),Iu=Mc(t),Fu.point=Xu,qu(ju,Ru,Iu)}function Xu(e,t){e*=fc;var n=bc(t*=fc),r=n*bc(e),o=n*Mc(e),i=Mc(t),a=mc(xc((a=Ru*i-Iu*o)*a+(a=Iu*r-ju*i)*a+(a=ju*o-Ru*r)*a),ju*r+Ru*o+Iu*i);ku+=a,Lu+=a*(ju+(ju=r)),Tu+=a*(Ru+(Ru=o)),Eu+=a*(Iu+(Iu=i)),qu(ju,Ru,Iu)}function Vu(){Fu.point=Wu}function Uu(){Fu.point=Ku}function Gu(){Ju(zu,Nu),Fu.point=Wu}function Ku(e,t){zu=e,Nu=t,e*=fc,t*=fc,Fu.point=Ju;var n=bc(t);ju=n*bc(e),Ru=n*Mc(e),Iu=Mc(t),qu(ju,Ru,Iu)}function Ju(e,t){e*=fc;var n=bc(t*=fc),r=n*bc(e),o=n*Mc(e),i=Mc(t),a=Ru*i-Iu*o,s=Iu*r-ju*i,c=ju*o-Ru*r,u=xc(a*a+s*s+c*c),l=Sc(u),d=u&&-l/u;Du+=d*a,Pu+=d*s,Cu+=d*c,ku+=l,Lu+=l*(ju+(ju=r)),Tu+=l*(Ru+(Ru=o)),Eu+=l*(Iu+(Iu=i)),qu(ju,Ru,Iu)}var Qu=function(e){xu=ku=Au=Su=Ou=Lu=Tu=Eu=Du=Pu=Cu=0,Yc(e,Fu);var t=Du,n=Pu,r=Cu,o=t*t+n*n+r*r;return o<1e-12&&(t=Lu,n=Tu,r=Eu,kusc?e+Math.round(-e/lc)*lc:e,t]}function tl(e,t,n){return(e%=lc)?t||n?Zu(rl(e),ol(t,n)):rl(e):t||n?ol(t,n):el}function nl(e){return function(t,n){return[(t+=e)>sc?t-lc:t<-sc?t+lc:t,n]}}function rl(e){var t=nl(e);return t.invert=nl(-e),t}function ol(e,t){var n=bc(e),r=Mc(e),o=bc(t),i=Mc(t);function a(e,t){var a=bc(t),s=bc(e)*a,c=Mc(e)*a,u=Mc(t),l=u*n+s*r;return[mc(c*o-l*i,s*n-u*r),Sc(l*o+c*i)]}return a.invert=function(e,t){var a=bc(t),s=bc(e)*a,c=Mc(e)*a,u=Mc(t),l=u*o-c*i;return[mc(c*o+u*i,s*n+l*r),Sc(l*n-s*r)]},a}el.invert=el;var il=function(e){function t(t){return(t=e(t[0]*fc,t[1]*fc))[0]*=dc,t[1]*=dc,t}return e=tl(e[0]*fc,e[1]*fc,e.length>2?e[2]*fc:0),t.invert=function(t){return(t=e.invert(t[0]*fc,t[1]*fc))[0]*=dc,t[1]*=dc,t},t};function al(e,t,n,r,o,i){if(n){var a=bc(t),s=Mc(t),c=r*n;null==o?(o=t+r*lc,i=t-c/2):(o=sl(a,o),i=sl(a,i),(r>0?oi)&&(o+=r*lc));for(var u,l=o;r>0?l>i:l1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},ll=function(e,t){return pc(e[0]-t[0])=0;--i)o.point((l=u[i])[0],l[1]);else r(f.x,f.p.x,-1,o);f=f.p}u=(f=f.o).z,p=!p}while(!f.v);o.lineEnd()}}};function pl(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r=0?1:-1,A=k*x,S=A>sc,O=m*M;if(hl.add(mc(O*k*Mc(A),b*w+O*bc(A))),a+=S?x+k*lc:x,S^p>=n^v>=n){var L=Qc(Kc(f),Kc(g));eu(L);var T=Qc(i,L);eu(T);var E=(S^x>=0?-1:1)*Sc(T[2]);(r>E||r===E&&(L[0]||L[1]))&&(s+=S^x>=0?1:-1)}}return(a<-ac||a0){for(d||(o.polygonStart(),d=!0),o.lineStart(),e=0;e1&&2&c&&f.push(f.pop().concat(f.shift())),a.push(f.filter(yl))}return f}};function yl(e){return e.length>1}function gl(e,t){return((e=e.x)[0]<0?e[1]-cc-ac:cc-e[1])-((t=t.x)[0]<0?t[1]-cc-ac:cc-t[1])}var vl=bl(function(){return!0},function(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var s=i>0?sc:-sc,c=pc(i-n);pc(c-sc)0?cc:-cc),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(i,r),t=0):o!==s&&c>=sc&&(pc(n-o)ac?hc((Mc(t)*(i=bc(r))*Mc(n)-Mc(r)*(o=bc(t))*Mc(e))/(o*i*a)):(t+r)/2}(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=i,r=a),o=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var o;if(null==e)o=n*cc,r.point(-sc,o),r.point(0,o),r.point(sc,o),r.point(sc,0),r.point(sc,-o),r.point(0,-o),r.point(-sc,-o),r.point(-sc,0),r.point(-sc,o);else if(pc(e[0]-t[0])>ac){var i=e[0]0,o=pc(t)>ac;function i(e,n){return bc(e)*bc(n)>t}function a(e,n,r){var o=[1,0,0],i=Qc(Kc(e),Kc(n)),a=Jc(i,i),s=i[0],c=a-s*s;if(!c)return!r&&e;var u=t*a/c,l=-t*s/c,d=Qc(o,i),f=Zc(o,u);$c(f,Zc(i,l));var p=d,h=Jc(f,p),m=Jc(p,p),b=h*h-m*(Jc(f,f)-1);if(!(b<0)){var y=xc(b),g=Zc(p,(-h-y)/m);if($c(g,f),g=Gc(g),!r)return g;var v,_=e[0],M=n[0],w=e[1],x=n[1];M<_&&(v=_,_=M,M=v);var k=M-_,A=pc(k-sc)0^g[1]<(pc(g[0]-_)sc^(_<=g[0]&&g[0]<=M)){var S=Zc(p,(-h+y)/m);return $c(S,f),[g,Gc(S)]}}}function s(t,n){var o=r?e:sc-e,i=0;return t<-o?i|=1:t>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return bl(i,function(e){var t,n,c,u,l;return{lineStart:function(){u=c=!1,l=1},point:function(d,f){var p,h=[d,f],m=i(d,f),b=r?m?0:s(d,f):m?s(d+(d<0?sc:-sc),f):0;if(!t&&(u=c=m)&&e.lineStart(),m!==c&&(!(p=a(t,h))||ll(t,p)||ll(h,p))&&(h[0]+=ac,h[1]+=ac,m=i(h[0],h[1])),m!==c)l=0,m?(e.lineStart(),p=a(h,t),e.point(p[0],p[1])):(p=a(t,h),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(o&&t&&r^m){var y;b&n||!(y=a(h,t,!0))||(l=0,r?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!m||t&&ll(t,h)||e.point(h[0],h[1]),t=h,c=m,n=b},lineEnd:function(){c&&e.lineEnd(),t=null},clean:function(){return l|(u&&c)<<1}}},function(t,r,o,i){al(i,e,n,o,t,r)},r?[0,-e]:[-sc,e-sc])},Ml=function(e,t,n,r,o,i){var a,s=e[0],c=e[1],u=0,l=1,d=t[0]-s,f=t[1]-c;if(a=n-s,d||!(a>0)){if(a/=d,d<0){if(a0){if(a>l)return;a>u&&(u=a)}if(a=o-s,d||!(a<0)){if(a/=d,d<0){if(a>l)return;a>u&&(u=a)}else if(d>0){if(a0)){if(a/=f,f<0){if(a0){if(a>l)return;a>u&&(u=a)}if(a=i-c,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>u&&(u=a)}else if(f>0){if(a0&&(e[0]=s+u*d,e[1]=c+u*f),l<1&&(t[0]=s+l*d,t[1]=c+l*f),!0}}}}},wl=1e9,xl=-wl;function kl(e,t,n,r){function o(o,i){return e<=o&&o<=n&&t<=i&&i<=r}function i(o,i,s,u){var l=0,d=0;if(null==o||(l=a(o,s))!==(d=a(i,s))||c(o,i)<0^s>0)do{u.point(0===l||3===l?e:n,l>1?r:t)}while((l=(l+s+4)%4)!==d);else u.point(i[0],i[1])}function a(r,o){return pc(r[0]-e)0?0:3:pc(r[0]-n)0?2:1:pc(r[1]-t)0?1:0:o>0?3:2}function s(e,t){return c(e.x,t.x)}function c(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var c,u,l,d,f,p,h,m,b,y,g,v=a,_=ul(),M={point:w,lineStart:function(){M.point=x,u&&u.push(l=[]);y=!0,b=!1,h=m=NaN},lineEnd:function(){c&&(x(d,f),p&&b&&_.rejoin(),c.push(_.result()));M.point=w,b&&v.lineEnd()},polygonStart:function(){v=_,c=[],u=[],g=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,o=u.length;nr&&(f-i)*(r-a)>(p-a)*(e-i)&&++t:p<=r&&(f-i)*(r-a)<(p-a)*(e-i)&&--t;return t}(),n=g&&t,o=(c=R(c)).length;(n||o)&&(a.polygonStart(),n&&(a.lineStart(),i(null,null,1,a),a.lineEnd()),o&&fl(c,s,t,i,a),a.polygonEnd());v=a,c=u=l=null}};function w(e,t){o(e,t)&&v.point(e,t)}function x(i,a){var s=o(i,a);if(u&&l.push([i,a]),y)d=i,f=a,p=s,y=!1,s&&(v.lineStart(),v.point(i,a));else if(s&&b)v.point(i,a);else{var c=[h=Math.max(xl,Math.min(wl,h)),m=Math.max(xl,Math.min(wl,m))],_=[i=Math.max(xl,Math.min(wl,i)),a=Math.max(xl,Math.min(wl,a))];Ml(c,_,e,t,n,r)?(b||(v.lineStart(),v.point(c[0],c[1])),v.point(_[0],_[1]),s||v.lineEnd(),g=!1):s&&(v.lineStart(),v.point(i,a),g=!1)}h=i,m=a,b=s}return M}}var Al,Sl,Ol,Ll=function(){var e,t,n,r=0,o=0,i=960,a=500;return n={stream:function(n){return e&&t===n?e:e=kl(r,o,i,a)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],o=+s[0][1],i=+s[1][0],a=+s[1][1],e=t=null,n):[[r,o],[i,a]]}}},Tl=nc(),El={sphere:Lc,point:Lc,lineStart:function(){El.point=Pl,El.lineEnd=Dl},lineEnd:Lc,polygonStart:Lc,polygonEnd:Lc};function Dl(){El.point=El.lineEnd=Lc}function Pl(e,t){Al=e*=fc,Sl=Mc(t*=fc),Ol=bc(t),El.point=Cl}function Cl(e,t){e*=fc;var n=Mc(t*=fc),r=bc(t),o=pc(e-Al),i=bc(o),a=r*Mc(o),s=Ol*n-Sl*r*i,c=Sl*n+Ol*r*i;Tl.add(mc(xc(a*a+s*s),c)),Al=e,Sl=n,Ol=r}var zl=function(e){return Tl.reset(),Yc(e,El),+Tl},Nl=[null,null],jl={type:"LineString",coordinates:Nl},Rl=function(e,t){return Nl[0]=e,Nl[1]=t,zl(jl)},Il={Feature:function(e,t){return Fl(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++rac}).map(c)).concat(w(yc(i/p)*p,o,p).filter(function(e){return pc(e%m)>ac}).map(u))}return y.lines=function(){return g().map(function(e){return{type:"LineString",coordinates:e}})},y.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(d(a).slice(1),l(n).reverse().slice(1),d(s).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.extentMajor(e).extentMinor(e):y.extentMinor()},y.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),y.precision(b)):[[r,s],[n,a]]},y.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],i=+n[0][1],o=+n[1][1],t>e&&(n=t,t=e,e=n),i>o&&(n=i,i=o,o=n),y.precision(b)):[[t,i],[e,o]]},y.step=function(e){return arguments.length?y.stepMajor(e).stepMinor(e):y.stepMinor()},y.stepMajor=function(e){return arguments.length?(h=+e[0],m=+e[1],y):[h,m]},y.stepMinor=function(e){return arguments.length?(f=+e[0],p=+e[1],y):[f,p]},y.precision=function(f){return arguments.length?(b=+f,c=Ul(i,o,90),u=Gl(t,e,b),l=Ul(s,a,90),d=Gl(r,n,b),y):b},y.extentMajor([[-180,-90+ac],[180,90-ac]]).extentMinor([[-180,-80-ac],[180,80+ac]])}function Jl(){return Kl()()}var Ql,$l,Zl,ed,td=function(e,t){var n=e[0]*fc,r=e[1]*fc,o=t[0]*fc,i=t[1]*fc,a=bc(r),s=Mc(r),c=bc(i),u=Mc(i),l=a*bc(n),d=a*Mc(n),f=c*bc(o),p=c*Mc(o),h=2*Sc(xc(Oc(i-r)+a*c*Oc(o-n))),m=Mc(h),b=h?function(e){var t=Mc(e*=h)/m,n=Mc(h-e)/m,r=n*l+t*f,o=n*d+t*p,i=n*s+t*u;return[mc(o,r)*dc,mc(i,xc(r*r+o*o))*dc]}:function(){return[n*dc,r*dc]};return b.distance=h,b},nd=function(e){return e},rd=nc(),od=nc(),id={point:Lc,lineStart:Lc,lineEnd:Lc,polygonStart:function(){id.lineStart=ad,id.lineEnd=ud},polygonEnd:function(){id.lineStart=id.lineEnd=id.point=Lc,rd.add(pc(od)),od.reset()},result:function(){var e=rd/2;return rd.reset(),e}};function ad(){id.point=sd}function sd(e,t){id.point=cd,Ql=Zl=e,$l=ed=t}function cd(e,t){od.add(ed*e-Zl*t),Zl=e,ed=t}function ud(){cd(Ql,$l)}var ld=id,dd=1/0,fd=dd,pd=-dd,hd=pd;var md,bd,yd,gd,vd={point:function(e,t){epd&&(pd=e);thd&&(hd=t)},lineStart:Lc,lineEnd:Lc,polygonStart:Lc,polygonEnd:Lc,result:function(){var e=[[dd,fd],[pd,hd]];return pd=hd=-(fd=dd=1/0),e}},_d=0,Md=0,wd=0,xd=0,kd=0,Ad=0,Sd=0,Od=0,Ld=0,Td={point:Ed,lineStart:Dd,lineEnd:zd,polygonStart:function(){Td.lineStart=Nd,Td.lineEnd=jd},polygonEnd:function(){Td.point=Ed,Td.lineStart=Dd,Td.lineEnd=zd},result:function(){var e=Ld?[Sd/Ld,Od/Ld]:Ad?[xd/Ad,kd/Ad]:wd?[_d/wd,Md/wd]:[NaN,NaN];return _d=Md=wd=xd=kd=Ad=Sd=Od=Ld=0,e}};function Ed(e,t){_d+=e,Md+=t,++wd}function Dd(){Td.point=Pd}function Pd(e,t){Td.point=Cd,Ed(yd=e,gd=t)}function Cd(e,t){var n=e-yd,r=t-gd,o=xc(n*n+r*r);xd+=o*(yd+e)/2,kd+=o*(gd+t)/2,Ad+=o,Ed(yd=e,gd=t)}function zd(){Td.point=Ed}function Nd(){Td.point=Rd}function jd(){Id(md,bd)}function Rd(e,t){Td.point=Id,Ed(md=yd=e,bd=gd=t)}function Id(e,t){var n=e-yd,r=t-gd,o=xc(n*n+r*r);xd+=o*(yd+e)/2,kd+=o*(gd+t)/2,Ad+=o,Sd+=(o=gd*e-yd*t)*(yd+e),Od+=o*(gd+t),Ld+=3*o,Ed(yd=e,gd=t)}var Yd=Td;function Fd(e){this._context=e}Fd.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,lc)}},result:Lc};var Wd,qd,Bd,Hd,Xd,Vd=nc(),Ud={point:Lc,lineStart:function(){Ud.point=Gd},lineEnd:function(){Wd&&Kd(qd,Bd),Ud.point=Lc},polygonStart:function(){Wd=!0},polygonEnd:function(){Wd=null},result:function(){var e=+Vd;return Vd.reset(),e}};function Gd(e,t){Ud.point=Kd,qd=Hd=e,Bd=Xd=t}function Kd(e,t){Hd-=e,Xd-=t,Vd.add(xc(Hd*Hd+Xd*Xd)),Hd=e,Xd=t}var Jd=Ud;function Qd(){this._string=[]}function $d(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Qd.prototype={_radius:4.5,_circle:$d(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=$d(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var Zd=function(e,t){var n,r,o=4.5;function i(e){return e&&("function"==typeof o&&r.pointRadius(+o.apply(this,arguments)),Yc(e,n(r))),r.result()}return i.area=function(e){return Yc(e,n(ld)),ld.result()},i.measure=function(e){return Yc(e,n(Jd)),Jd.result()},i.bounds=function(e){return Yc(e,n(vd)),vd.result()},i.centroid=function(e){return Yc(e,n(Yd)),Yd.result()},i.projection=function(t){return arguments.length?(n=null==t?(e=null,nd):(e=t).stream,i):e},i.context=function(e){return arguments.length?(r=null==e?(t=null,new Qd):new Fd(t=e),"function"!=typeof o&&r.pointRadius(o),i):t},i.pointRadius=function(e){return arguments.length?(o="function"==typeof e?e:(r.pointRadius(+e),+e),i):o},i.projection(e).context(t)},ef=function(e){return{stream:tf(e)}};function tf(e){return function(t){var n=new nf;for(var r in e)n[r]=e[r];return n.stream=t,n}}function nf(){}function rf(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Yc(n,e.stream(vd)),t(vd.result()),null!=r&&e.clipExtent(r),e}function of(e,t,n){return rf(e,function(n){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],i=Math.min(r/(n[1][0]-n[0][0]),o/(n[1][1]-n[0][1])),a=+t[0][0]+(r-i*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(o-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,s])},n)}function af(e,t,n){return of(e,[[0,0],t],n)}function sf(e,t,n){return rf(e,function(n){var r=+t,o=r/(n[1][0]-n[0][0]),i=(r-o*(n[1][0]+n[0][0]))/2,a=-o*n[0][1];e.scale(150*o).translate([i,a])},n)}function cf(e,t,n){return rf(e,function(n){var r=+t,o=r/(n[1][1]-n[0][1]),i=-o*n[0][0],a=(r-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([i,a])},n)}nf.prototype={constructor:nf,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var uf=16,lf=bc(30*fc),df=function(e,t){return+t?function(e,t){function n(r,o,i,a,s,c,u,l,d,f,p,h,m,b){var y=u-r,g=l-o,v=y*y+g*g;if(v>4*t&&m--){var _=a+f,M=s+p,w=c+h,x=xc(_*_+M*M+w*w),k=Sc(w/=x),A=pc(pc(w)-1)t||pc((y*T+g*E)/v-.5)>.3||a*f+s*p+c*h2?e[2]%360*fc:0,O()):[b*dc,y*dc,g*dc]},A.angle=function(e){return arguments.length?(v=e%360*fc,O()):v*dc},A.precision=function(e){return arguments.length?(a=df(s,k=e*e),L()):xc(k)},A.fitExtent=function(e,t){return of(A,e,t)},A.fitSize=function(e,t){return af(A,e,t)},A.fitWidth=function(e,t){return sf(A,e,t)},A.fitHeight=function(e,t){return cf(A,e,t)},function(){return t=e.apply(this,arguments),A.invert=t.invert&&S,O()}}function bf(e){var t=0,n=sc/3,r=mf(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*fc,n=e[1]*fc):[t*dc,n*dc]},o}function yf(e,t){var n=Mc(e),r=(n+Mc(t))/2;if(pc(r)=.12&&o<.234&&r>=-.425&&r<-.214?s:o>=.166&&o<.234&&r>=-.214&&r<-.115?c:a).invert(e)},l.stream=function(n){return e&&t===n?e:(r=[a.stream(t=n),s.stream(n),c.stream(n)],o=r.length,e={point:function(e,t){for(var n=-1;++n0?t<-cc+ac&&(t=-cc+ac):t>cc-ac&&(t=cc-ac);var n=o/_c(Ef(t),r);return[n*Mc(r*e),o-n*bc(r*e)]}return i.invert=function(e,t){var n=o-t,i=wc(r)*xc(e*e+n*n);return[mc(e,pc(n))/r*wc(n),2*hc(_c(o/i,1/r))-cc]},i}var Pf=function(){return bf(Df).scale(109.5).parallels([30,30])};function Cf(e,t){return[e,t]}Cf.invert=Cf;var zf=function(){return hf(Cf).scale(152.63)};function Nf(e,t){var n=bc(e),r=e===t?Mc(e):(n-bc(t))/(t-e),o=n/r+e;if(pc(r)ac&&--o>0);return[e/(.8707+(i=r*r)*(i*(i*i*i*(.003971-.001529*i)-.013791)-.131979)),r]};var Kf=function(){return hf(Gf).scale(175.295)};function Jf(e,t){return[bc(t)*Mc(e),Mc(t)]}Jf.invert=wf(Sc);var Qf=function(){return hf(Jf).scale(249.5).clipAngle(90+ac)};function $f(e,t){var n=bc(t),r=1+bc(e)*n;return[n*Mc(e)/r,Mc(t)/r]}$f.invert=wf(function(e){return 2*hc(e)});var Zf=function(){return hf($f).scale(250).clipAngle(142)};function ep(e,t){return[vc(kc((cc+t)/2)),-e]}ep.invert=function(e,t){return[-t,2*hc(gc(e))-cc]};var tp=function(){var e=Tf(ep),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)};function np(e,t){return e.parent===t.parent?1:2}function rp(e,t){return e+t.x}function op(e,t){return Math.max(e,t.y)}var ip=function(){var e=np,t=1,n=1,r=!1;function o(o){var i,a=0;o.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(rp,0)/e.length}(n),t.y=function(e){return 1+e.reduce(op,0)}(n)):(t.x=i?a+=e(t,i):0,t.y=0,i=t)});var s=function(e){for(var t;t=e.children;)e=t[0];return e}(o),c=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(o),u=s.x-e(s,c)/2,l=c.x+e(c,s)/2;return o.eachAfter(r?function(e){e.x=(e.x-o.x)*t,e.y=(o.y-e.y)*n}:function(e){e.x=(e.x-u)/(l-u)*t,e.y=(1-(o.y?e.y/o.y:1))*n})}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o};function ap(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function sp(e,t){var n,r,o,i,a,s=new dp(e),c=+e.value&&(s.value=e.value),u=[s];for(null==t&&(t=cp);n=u.pop();)if(c&&(n.value=+n.data.value),(o=t(n.data))&&(a=o.length))for(n.children=new Array(a),i=a-1;i>=0;--i)u.push(r=n.children[i]=new dp(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(lp)}function cp(e){return e.children}function up(e){e.data=e.data.data}function lp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function dp(e){this.data=e,this.depth=this.height=0,this.parent=null}dp.prototype=sp.prototype={constructor:dp,count:function(){return this.eachAfter(ap)},each:function(e){var t,n,r,o,i=this,a=[i];do{for(t=a.reverse(),a=[];i=t.pop();)if(e(i),n=i.children)for(r=0,o=n.length;r=0;--n)o.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return sp(this).eachBefore(up)}};var fp=Array.prototype.slice;var pp=function(e){for(var t,n,r=0,o=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(fp.call(e))).length,i=[];r0&&n*n>r*r+o*o}function yp(e,t){for(var n=0;n(a*=a)?(r=(u+a-o)/(2*u),i=Math.sqrt(Math.max(0,a/u-r*r)),n.x=e.x-r*s-i*c,n.y=e.y-r*c+i*s):(r=(u+o-a)/(2*u),i=Math.sqrt(Math.max(0,o/u-r*r)),n.x=t.x+r*s-i*c,n.y=t.y+r*c+i*s)):(n.x=t.x+n.r,n.y=t.y)}function wp(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,o=t.y-e.y;return n>0&&n*n>r*r+o*o}function xp(e){var t=e._,n=e.next._,r=t.r+n.r,o=(t.x*n.r+n.x*t.r)/r,i=(t.y*n.r+n.y*t.r)/r;return o*o+i*i}function kp(e){this._=e,this.next=null,this.previous=null}function Ap(e){if(!(o=e.length))return 0;var t,n,r,o,i,a,s,c,u,l,d;if((t=e[0]).x=0,t.y=0,!(o>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(o>2))return t.r+n.r;Mp(n,t,r=e[2]),t=new kp(t),n=new kp(n),r=new kp(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s0)throw new Error("cycle");return i}return n.id=function(t){return arguments.length?(e=Op(t),n):e},n.parentId=function(e){return arguments.length?(t=Op(e),n):t},n};function Hp(e,t){return e.parent===t.parent?1:2}function Xp(e){var t=e.children;return t?t[0]:e.t}function Vp(e){var t=e.children;return t?t[t.length-1]:e.t}function Up(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Gp(e,t,n){return e.a.parent===t.parent?e.a:n}function Kp(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Kp.prototype=Object.create(dp.prototype);var Jp=function(){var e=Hp,t=1,n=1,r=null;function o(o){var c=function(e){for(var t,n,r,o,i,a=new Kp(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(i=r.length),o=i-1;o>=0;--o)s.push(n=t.children[o]=new Kp(r[o],o)),n.parent=t;return(a.parent=new Kp(null,0)).children=[a],a}(o);if(c.eachAfter(i),c.parent.m=-c.z,c.eachBefore(a),r)o.eachBefore(s);else{var u=o,l=o,d=o;o.eachBefore(function(e){e.xl.x&&(l=e),e.depth>d.depth&&(d=e)});var f=u===l?1:e(u,l)/2,p=f-u.x,h=t/(l.x+f+p),m=n/(d.depth||1);o.eachBefore(function(e){e.x=(e.x+p)*h,e.y=e.depth*m})}return o}function i(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)(t=o[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var i=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-i):t.z=i}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,i=t,a=t,s=n,c=i.parent.children[0],u=i.m,l=a.m,d=s.m,f=c.m;s=Vp(s),i=Xp(i),s&&i;)c=Xp(c),(a=Vp(a)).a=t,(o=s.z+d-i.z-u+e(s._,i._))>0&&(Up(Gp(s,t,r),t,o),u+=o,l+=o),d+=s.m,u+=i.m,f+=c.m,l+=a.m;s&&!Vp(a)&&(a.t=s,a.m+=d-l),i&&!Xp(c)&&(c.t=i,c.m+=u-f,r=t)}return r}(t,o,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o},Qp=function(e,t,n,r,o){for(var i,a=e.children,s=-1,c=a.length,u=e.value&&(o-n)/e.value;++sf&&(f=s),b=l*l*m,(p=Math.max(f/b,b/d))>h){l-=s;break}h=p}y.push(a={value:l,dice:c1?t:1)},n}($p),th=function(){var e=eh,t=!1,n=1,r=1,o=[0],i=Lp,a=Lp,s=Lp,c=Lp,u=Lp;function l(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),o=[0],t&&e.eachBefore(Np),e}function d(t){var n=o[t.depth],r=t.x0+n,l=t.y0+n,d=t.x1-n,f=t.y1-n;d=n-1){var l=s[t];return l.x0=o,l.y0=i,l.x1=a,void(l.y1=c)}var d=u[t],f=r/2+d,p=t+1,h=n-1;for(;p>>1;u[m]c-i){var g=(o*y+a*b)/r;e(t,p,b,o,i,g,c),e(p,n,y,g,i,a,c)}else{var v=(i*y+c*b)/r;e(t,p,b,o,i,a,v),e(p,n,y,o,v,a,c)}}(0,c,e.value,t,n,r,o)},rh=function(e,t,n,r,o){(1&e.depth?Qp:jp)(e,t,n,r,o)},oh=function e(t){function n(e,n,r,o,i){if((a=e._squarify)&&a.ratio===t)for(var a,s,c,u,l,d=-1,f=a.length,p=e.value;++d1?t:1)},n}($p),ih=function(e){for(var t,n=-1,r=e.length,o=e[r-1],i=0;++n1&&sh(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}var lh=function(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),o=new Array(n);for(t=0;t=0;--t)u.push(e[r[i[t]][2]]);for(t=+s;ts!=u>s&&a<(c-n)*(s-r)/(u-r)+n&&(l=!l),c=n,u=r;return l},fh=function(e){for(var t,n,r=-1,o=e.length,i=e[o-1],a=i[0],s=i[1],c=0;++r1);return e+n*i*Math.sqrt(-2*Math.log(o)/o)}}return n.source=e,n}(ph),bh=function e(t){function n(){var e=mh.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(ph),yh=function e(t){function n(e){return function(){for(var n=0,r=0;rr&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Nh(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?jh:Nh,o=i=null,d}function d(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(u(t)))}return d.invert=function(n){return u(t((i||(i=r(s,a.map(e),Yn)))(n)))},d.domain=function(e){return arguments.length?(a=xh.call(e,Eh),u===Ph||(u=zh(a)),l()):a.slice()},d.range=function(e){return arguments.length?(s=kh.call(e),l()):s.slice()},d.rangeRound=function(e){return s=kh.call(e),c=Qn,l()},d.clamp=function(e){return arguments.length?(u=e?zh(a):Ph,d):u!==Ph},d.interpolate=function(e){return arguments.length?(c=e,l()):c},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,l()}}function Yh(e,t){return Ih()(e,t)}var Fh=function(e,t,n,r){var o,i=L(e,t,n);switch((r=Fs(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=ec(i,a))||(r.precision=o),Xs(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=tc(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Zs(i))||(r.precision=o-2*("%"===r.type))}return Hs(r)};function Wh(e){var t=e.domain;return e.ticks=function(e){var n=t();return S(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Fh(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],c=o[a];return c0?r=O(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=O(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(c/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(c*r)/r,t(o)),e},e}function qh(){var e=Yh(Ph,Ph);return e.copy=function(){return Rh(e,qh())},_h.apply(e,arguments),Wh(e)}function Bh(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=xh.call(t,Eh),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Bh(e).unknown(t)},e=arguments.length?xh.call(e,Eh):[0,1],Wh(n)}var Hh=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;fc)break;m.push(d)}}else for(;f=1;--l)if(!((d=u*l)c)break;m.push(d)}}else m=S(f,p,Math.min(p-f,h)).map(n);return r?m.reverse():m},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=Hs(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i0?o[r-1]:t[0],r=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return lm().domain([t,n]).range(i).unknown(e)},_h.apply(Wh(a),arguments)}function dm(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[c(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=kh.call(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=kh.call(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return dm().domain(t).range(n).unknown(e)},_h.apply(o,arguments)}var fm=new Date,pm=new Date;function hm(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(o.count=function(t,r){return fm.setTime(+t),pm.setTime(+r),e(fm),e(pm),Math.floor(n(fm,pm))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var mm=hm(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});mm.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?hm(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):mm:null};var bm=mm,ym=mm.range,gm=6e4,vm=6048e5,_m=hm(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),Mm=_m,wm=_m.range,xm=hm(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+t*gm)},function(e,t){return(t-e)/gm},function(e){return e.getMinutes()}),km=xm,Am=xm.range,Sm=hm(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*gm)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()}),Om=Sm,Lm=Sm.range,Tm=hm(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*gm)/864e5},function(e){return e.getDate()-1}),Em=Tm,Dm=Tm.range;function Pm(e){return hm(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*gm)/vm})}var Cm=Pm(0),zm=Pm(1),Nm=Pm(2),jm=Pm(3),Rm=Pm(4),Im=Pm(5),Ym=Pm(6),Fm=Cm.range,Wm=zm.range,qm=Nm.range,Bm=jm.range,Hm=Rm.range,Xm=Im.range,Vm=Ym.range,Um=hm(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),Gm=Um,Km=Um.range,Jm=hm(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Jm.every=function(e){return isFinite(e=Math.floor(e))&&e>0?hm(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var Qm=Jm,$m=Jm.range,Zm=hm(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*gm)},function(e,t){return(t-e)/gm},function(e){return e.getUTCMinutes()}),eb=Zm,tb=Zm.range,nb=hm(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),rb=nb,ob=nb.range,ib=hm(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}),ab=ib,sb=ib.range;function cb(e){return hm(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/vm})}var ub=cb(0),lb=cb(1),db=cb(2),fb=cb(3),pb=cb(4),hb=cb(5),mb=cb(6),bb=ub.range,yb=lb.range,gb=db.range,vb=fb.range,_b=pb.range,Mb=hb.range,wb=mb.range,xb=hm(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),kb=xb,Ab=xb.range,Sb=hm(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Sb.every=function(e){return isFinite(e=Math.floor(e))&&e>0?hm(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var Ob=Sb,Lb=Sb.range;function Tb(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Eb(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Db(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function Pb(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=Hb(o),l=Xb(o),d=Hb(i),f=Xb(i),p=Hb(a),h=Xb(a),m=Hb(s),b=Xb(s),y=Hb(c),g=Xb(c),v={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:dy,e:dy,f:by,H:fy,I:py,j:hy,L:my,m:yy,M:gy,p:function(e){return o[+(e.getHours()>=12)]},Q:Vy,s:Uy,S:vy,u:_y,U:My,V:wy,w:xy,W:ky,x:null,X:null,y:Ay,Y:Sy,Z:Oy,"%":Xy},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Ly,e:Ly,f:Cy,H:Ty,I:Ey,j:Dy,L:Py,m:zy,M:Ny,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Vy,s:Uy,S:jy,u:Ry,U:Iy,V:Yy,w:Fy,W:Wy,x:null,X:null,y:qy,Y:By,Z:Hy,"%":Xy},M={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=b[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:ty,e:ty,f:sy,H:ry,I:ry,j:ny,L:ay,m:ey,M:oy,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=l[r[0].toLowerCase()],n+r[0].length):-1},Q:uy,s:ly,S:iy,u:Ub,U:Gb,V:Kb,w:Vb,W:Jb,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:$b,Y:Qb,Z:Zb,"%":cy};function w(e,t){return function(n){var r,o,i,a=[],s=-1,c=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Eb(Db(i.y))).getUTCDay(),r=o>4||0===o?lb.ceil(r):lb(r),r=ab.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(Db(i.y))).getDay(),r=o>4||0===o?zm.ceil(r):zm(r),r=Em.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Eb(Db(i.y)).getUTCDay():t(Db(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Eb(i)):t(i)}}function k(e,t,n,r){for(var o,i,a=0,s=t.length,c=n.length;a=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=M[o in Ib?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return v.x=w(n,v),v.X=w(r,v),v.c=w(t,v),_.x=w(n,_),_.X=w(r,_),_.c=w(t,_),{format:function(e){var t=w(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",Tb);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e,Eb);return t.toString=function(){return e},t}}}var Cb,zb,Nb,jb,Rb,Ib={"-":"",_:" ",0:"0"},Yb=/^\s*\d+/,Fb=/^%/,Wb=/[\\^$*+?|[\]().{}]/g;function qb(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function Zb(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ey(e,t,n){var r=Yb.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ty(e,t,n){var r=Yb.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ny(e,t,n){var r=Yb.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ry(e,t,n){var r=Yb.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function oy(e,t,n){var r=Yb.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function iy(e,t,n){var r=Yb.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ay(e,t,n){var r=Yb.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function sy(e,t,n){var r=Yb.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function cy(e,t,n){var r=Fb.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function uy(e,t,n){var r=Yb.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ly(e,t,n){var r=Yb.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function dy(e,t){return qb(e.getDate(),t,2)}function fy(e,t){return qb(e.getHours(),t,2)}function py(e,t){return qb(e.getHours()%12||12,t,2)}function hy(e,t){return qb(1+Em.count(Qm(e),e),t,3)}function my(e,t){return qb(e.getMilliseconds(),t,3)}function by(e,t){return my(e,t)+"000"}function yy(e,t){return qb(e.getMonth()+1,t,2)}function gy(e,t){return qb(e.getMinutes(),t,2)}function vy(e,t){return qb(e.getSeconds(),t,2)}function _y(e){var t=e.getDay();return 0===t?7:t}function My(e,t){return qb(Cm.count(Qm(e),e),t,2)}function wy(e,t){var n=e.getDay();return e=n>=4||0===n?Rm(e):Rm.ceil(e),qb(Rm.count(Qm(e),e)+(4===Qm(e).getDay()),t,2)}function xy(e){return e.getDay()}function ky(e,t){return qb(zm.count(Qm(e),e),t,2)}function Ay(e,t){return qb(e.getFullYear()%100,t,2)}function Sy(e,t){return qb(e.getFullYear()%1e4,t,4)}function Oy(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+qb(t/60|0,"0",2)+qb(t%60,"0",2)}function Ly(e,t){return qb(e.getUTCDate(),t,2)}function Ty(e,t){return qb(e.getUTCHours(),t,2)}function Ey(e,t){return qb(e.getUTCHours()%12||12,t,2)}function Dy(e,t){return qb(1+ab.count(Ob(e),e),t,3)}function Py(e,t){return qb(e.getUTCMilliseconds(),t,3)}function Cy(e,t){return Py(e,t)+"000"}function zy(e,t){return qb(e.getUTCMonth()+1,t,2)}function Ny(e,t){return qb(e.getUTCMinutes(),t,2)}function jy(e,t){return qb(e.getUTCSeconds(),t,2)}function Ry(e){var t=e.getUTCDay();return 0===t?7:t}function Iy(e,t){return qb(ub.count(Ob(e),e),t,2)}function Yy(e,t){var n=e.getUTCDay();return e=n>=4||0===n?pb(e):pb.ceil(e),qb(pb.count(Ob(e),e)+(4===Ob(e).getUTCDay()),t,2)}function Fy(e){return e.getUTCDay()}function Wy(e,t){return qb(lb.count(Ob(e),e),t,2)}function qy(e,t){return qb(e.getUTCFullYear()%100,t,2)}function By(e,t){return qb(e.getUTCFullYear()%1e4,t,4)}function Hy(){return"+0000"}function Xy(){return"%"}function Vy(e){return+e}function Uy(e){return Math.floor(+e/1e3)}function Gy(e){return Cb=Pb(e),zb=Cb.format,Nb=Cb.parse,jb=Cb.utcFormat,Rb=Cb.utcParse,Cb}Gy({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ky=Date.prototype.toISOString?function(e){return e.toISOString()}:jb("%Y-%m-%dT%H:%M:%S.%LZ");var Jy=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:Rb("%Y-%m-%dT%H:%M:%S.%LZ"),Qy=1e3,$y=60*Qy,Zy=60*$y,eg=24*Zy,tg=7*eg,ng=30*eg,rg=365*eg;function og(e){return new Date(e)}function ig(e){return e instanceof Date?+e:+new Date(+e)}function ag(e,t,n,r,i,a,s,c,u){var l=Yh(Ph,Ph),d=l.invert,f=l.domain,p=u(".%L"),h=u(":%S"),m=u("%I:%M"),b=u("%I %p"),y=u("%a %d"),g=u("%b %d"),v=u("%B"),_=u("%Y"),M=[[s,1,Qy],[s,5,5*Qy],[s,15,15*Qy],[s,30,30*Qy],[a,1,$y],[a,5,5*$y],[a,15,15*$y],[a,30,30*$y],[i,1,Zy],[i,3,3*Zy],[i,6,6*Zy],[i,12,12*Zy],[r,1,eg],[r,2,2*eg],[n,1,tg],[t,1,ng],[t,3,3*ng],[e,1,rg]];function w(o){return(s(o)1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Rv.h=360*e-100,Rv.s=1.5-1.5*t,Rv.l=.8-.9*t,Rv+""},Yv=qt(),Fv=Math.PI/3,Wv=2*Math.PI/3,qv=function(e){var t;return e=(.5-e)*Math.PI,Yv.r=255*(t=Math.sin(e))*t,Yv.g=255*(t=Math.sin(e+Fv))*t,Yv.b=255*(t=Math.sin(e+Wv))*t,Yv+""};function Bv(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var Hv=Bv(xg("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Xv=Bv(xg("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Vv=Bv(xg("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Uv=Bv(xg("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Gv=function(e){return function(){return e}},Kv=Math.abs,Jv=Math.atan2,Qv=Math.cos,$v=Math.max,Zv=Math.min,e_=Math.sin,t_=Math.sqrt,n_=1e-12,r_=Math.PI,o_=r_/2,i_=2*r_;function a_(e){return e>=1?o_:e<=-1?-o_:Math.asin(e)}function s_(e){return e.innerRadius}function c_(e){return e.outerRadius}function u_(e){return e.startAngle}function l_(e){return e.endAngle}function d_(e){return e&&e.padAngle}function f_(e,t,n,r,o,i,a){var s=e-n,c=t-r,u=(a?i:-i)/t_(s*s+c*c),l=u*c,d=-u*s,f=e+l,p=t+d,h=n+l,m=r+d,b=(f+h)/2,y=(p+m)/2,g=h-f,v=m-p,_=g*g+v*v,M=o-i,w=f*m-h*p,x=(v<0?-1:1)*t_($v(0,M*M*_-w*w)),k=(w*v-g*x)/_,A=(-w*g-v*x)/_,S=(w*v+g*x)/_,O=(-w*g+v*x)/_,L=k-b,T=A-y,E=S-b,D=O-y;return L*L+T*T>E*E+D*D&&(k=S,A=O),{cx:k,cy:A,x01:-l,y01:-d,x11:k*(o/M-1),y11:A*(o/M-1)}}var p_=function(){var e=s_,t=c_,n=Gv(0),r=null,o=u_,i=l_,a=d_,s=null;function c(){var c,u,l,d=+e.apply(this,arguments),f=+t.apply(this,arguments),p=o.apply(this,arguments)-o_,h=i.apply(this,arguments)-o_,m=Kv(h-p),b=h>p;if(s||(s=c=Wi()),fn_)if(m>i_-n_)s.moveTo(f*Qv(p),f*e_(p)),s.arc(0,0,f,p,h,!b),d>n_&&(s.moveTo(d*Qv(h),d*e_(h)),s.arc(0,0,d,h,p,b));else{var y,g,v=p,_=h,M=p,w=h,x=m,k=m,A=a.apply(this,arguments)/2,S=A>n_&&(r?+r.apply(this,arguments):t_(d*d+f*f)),O=Zv(Kv(f-d)/2,+n.apply(this,arguments)),L=O,T=O;if(S>n_){var E=a_(S/d*e_(A)),D=a_(S/f*e_(A));(x-=2*E)>n_?(M+=E*=b?1:-1,w-=E):(x=0,M=w=(p+h)/2),(k-=2*D)>n_?(v+=D*=b?1:-1,_-=D):(k=0,v=_=(p+h)/2)}var P=f*Qv(v),C=f*e_(v),z=d*Qv(w),N=d*e_(w);if(O>n_){var j,R=f*Qv(_),I=f*e_(_),Y=d*Qv(M),F=d*e_(M);if(m1?0:l<-1?r_:Math.acos(l))/2),V=t_(j[0]*j[0]+j[1]*j[1]);L=Zv(O,(d-V)/(X-1)),T=Zv(O,(f-V)/(X+1))}}k>n_?T>n_?(y=f_(Y,F,P,C,f,T,b),g=f_(R,I,z,N,f,T,b),s.moveTo(y.cx+y.x01,y.cy+y.y01),Tn_&&x>n_?L>n_?(y=f_(z,N,R,I,d,-L,b),g=f_(P,C,Y,F,d,-L,b),s.lineTo(y.cx+y.x01,y.cy+y.y01),L=l;--d)s.point(b[d],y[d]);s.lineEnd(),s.areaEnd()}m&&(b[u]=+e(f,u,c),y[u]=+n(f,u,c),s.point(t?+t(f,u,c):b[u],r?+r(f,u,c):y[u]))}if(p)return s=null,p+""||null}function u(){return g_().defined(o).curve(a).context(i)}return c.x=function(n){return arguments.length?(e="function"==typeof n?n:Gv(+n),t=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Gv(+t),c):e},c.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Gv(+e),c):t},c.y=function(e){return arguments.length?(n="function"==typeof e?e:Gv(+e),r=null,c):n},c.y0=function(e){return arguments.length?(n="function"==typeof e?e:Gv(+e),c):n},c.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Gv(+e),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(n)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(t).y(n)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:Gv(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),c):i},c},__=function(e,t){return te?1:t>=e?0:NaN},M_=function(e){return e},w_=function(){var e=M_,t=__,n=null,r=Gv(0),o=Gv(i_),i=Gv(0);function a(a){var s,c,u,l,d,f=a.length,p=0,h=new Array(f),m=new Array(f),b=+r.apply(this,arguments),y=Math.min(i_,Math.max(-i_,o.apply(this,arguments)-b)),g=Math.min(Math.abs(y)/f,i.apply(this,arguments)),v=g*(y<0?-1:1);for(s=0;s0&&(p+=d);for(null!=t?h.sort(function(e,n){return t(m[e],m[n])}):null!=n&&h.sort(function(e,t){return n(a[e],a[t])}),s=0,u=p?(y-f*v)/p:0;s0?d*u:0)+v,m[c]={data:a[c],index:s,value:d,startAngle:b,endAngle:l,padAngle:g};return m}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:Gv(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Gv(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Gv(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:Gv(+e),a):i},a},x_=A_(m_);function k_(e){this._curve=e}function A_(e){function t(t){return new k_(e(t))}return t._curve=e,t}function S_(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(A_(e)):t()._curve},e}k_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var O_=function(){return S_(g_().curve(x_))},L_=function(){var e=v_().curve(x_),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return S_(n())},delete e.lineX0,e.lineEndAngle=function(){return S_(r())},delete e.lineX1,e.lineInnerRadius=function(){return S_(o())},delete e.lineY0,e.lineOuterRadius=function(){return S_(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(A_(e)):t()._curve},e},T_=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},E_=Array.prototype.slice;function D_(e){return e.source}function P_(e){return e.target}function C_(e){var t=D_,n=P_,r=b_,o=y_,i=null;function a(){var a,s=E_.call(arguments),c=t.apply(this,s),u=n.apply(this,s);if(i||(i=a=Wi()),e(i,+r.apply(this,(s[0]=c,s)),+o.apply(this,s),+r.apply(this,(s[0]=u,s)),+o.apply(this,s)),a)return i=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:Gv(+e),a):r},a.y=function(e){return arguments.length?(o="function"==typeof e?e:Gv(+e),a):o},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a}function z_(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function N_(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function j_(e,t,n,r,o){var i=T_(t,n),a=T_(t,n=(n+o)/2),s=T_(r,n),c=T_(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],c[0],c[1])}function R_(){return C_(z_)}function I_(){return C_(N_)}function Y_(){var e=C_(j_);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var F_={draw:function(e,t){var n=Math.sqrt(t/r_);e.moveTo(n,0),e.arc(0,0,n,0,i_)}},W_={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},q_=Math.sqrt(1/3),B_=2*q_,H_={draw:function(e,t){var n=Math.sqrt(t/B_),r=n*q_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},X_=Math.sin(r_/10)/Math.sin(7*r_/10),V_=Math.sin(i_/10)*X_,U_=-Math.cos(i_/10)*X_,G_={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=V_*n,o=U_*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=i_*i/5,s=Math.cos(a),c=Math.sin(a);e.lineTo(c*n,-s*n),e.lineTo(s*r-c*o,c*r+s*o)}e.closePath()}},K_={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},J_=Math.sqrt(3),Q_={draw:function(e,t){var n=-Math.sqrt(t/(3*J_));e.moveTo(0,2*n),e.lineTo(-J_*n,-n),e.lineTo(J_*n,-n),e.closePath()}},$_=Math.sqrt(3)/2,Z_=1/Math.sqrt(12),eM=3*(Z_/2+1),tM={draw:function(e,t){var n=Math.sqrt(t/eM),r=n/2,o=n*Z_,i=r,a=n*Z_+n,s=-i,c=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,c),e.lineTo(-.5*r-$_*o,$_*r+-.5*o),e.lineTo(-.5*i-$_*a,$_*i+-.5*a),e.lineTo(-.5*s-$_*c,$_*s+-.5*c),e.lineTo(-.5*r+$_*o,-.5*o-$_*r),e.lineTo(-.5*i+$_*a,-.5*a-$_*i),e.lineTo(-.5*s+$_*c,-.5*c-$_*s),e.closePath()}},nM=[F_,W_,H_,K_,G_,Q_,tM],rM=function(){var e=Gv(F_),t=Gv(64),n=null;function r(){var r;if(n||(n=r=Wi()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:Gv(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Gv(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},oM=function(){};function iM(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function aM(e){this._context=e}aM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:iM(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:iM(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var sM=function(e){return new aM(e)};function cM(e){this._context=e}cM.prototype={areaStart:oM,areaEnd:oM,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:iM(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var uM=function(e){return new cM(e)};function lM(e){this._context=e}lM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:iM(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var dM=function(e){return new lM(e)};function fM(e,t){this._basis=new aM(e),this._beta=t}fM.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,s=t[n]-i,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*e[c]+(1-this._beta)*(o+r*a),this._beta*t[c]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var pM=function e(t){function n(e){return 1===t?new aM(e):new fM(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function hM(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function mM(e,t){this._context=e,this._k=(1-t)/6}mM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:hM(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:hM(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var bM=function e(t){function n(e){return new mM(e,t)}return n.tension=function(t){return e(+t)},n}(0);function yM(e,t){this._context=e,this._k=(1-t)/6}yM.prototype={areaStart:oM,areaEnd:oM,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:hM(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var gM=function e(t){function n(e){return new yM(e,t)}return n.tension=function(t){return e(+t)},n}(0);function vM(e,t){this._context=e,this._k=(1-t)/6}vM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:hM(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var _M=function e(t){function n(e){return new vM(e,t)}return n.tension=function(t){return e(+t)},n}(0);function MM(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>n_){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>n_){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/l,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function wM(e,t){this._context=e,this._alpha=t}wM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:MM(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var xM=function e(t){function n(e){return t?new wM(e,t):new mM(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function kM(e,t){this._context=e,this._alpha=t}kM.prototype={areaStart:oM,areaEnd:oM,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:MM(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var AM=function e(t){function n(e){return t?new kM(e,t):new yM(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function SM(e,t){this._context=e,this._alpha=t}SM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:MM(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var OM=function e(t){function n(e){return t?new SM(e,t):new vM(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function LM(e){this._context=e}LM.prototype={areaStart:oM,areaEnd:oM,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var TM=function(e){return new LM(e)};function EM(e){return e<0?-1:1}function DM(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(EM(i)+EM(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function PM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function CM(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function zM(e){this._context=e}function NM(e){this._context=new jM(e)}function jM(e){this._context=e}function RM(e){return new zM(e)}function IM(e){return new NM(e)}function YM(e){this._context=e}function FM(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var BM=function(e){return new qM(e,.5)};function HM(e){return new qM(e,0)}function XM(e){return new qM(e,1)}var VM=function(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i=0;)n[t]=t;return n};function GM(e,t){return e[t]}var KM=function(){var e=Gv([]),t=UM,n=VM,r=GM;function o(o){var i,a,s=e.apply(this,arguments),c=o.length,u=s.length,l=new Array(u);for(i=0;i0){for(var n,r,o,i=0,a=e[0].length;i0)for(var n,r,o,i,a,s,c=0,u=e[t[0]].length;c=0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):r[0]=i},$M=function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;ai&&(i=t,r=n);return r}var nw=function(e){var t=e.map(rw);return UM(e).sort(function(e,n){return t[e]-t[n]})};function rw(e){for(var t,n=0,r=-1,o=e.length;++r0)){if(i/=f,f<0){if(i0){if(i>d)return;i>l&&(l=i)}if(i=r-c,f||!(i<0)){if(i/=f,f<0){if(i>d)return;i>l&&(l=i)}else if(f>0){if(i0)){if(i/=p,p<0){if(i0){if(i>d)return;i>l&&(l=i)}if(i=o-u,p||!(i<0)){if(i/=p,p<0){if(i>d)return;i>l&&(l=i)}else if(p>0){if(i0||d<1)||(l>0&&(e[0]=[c+l*f,u+l*p]),d<1&&(e[1]=[c+d*f,u+d*p]),!0)}}}}}function _w(e,t,n,r,o){var i=e[1];if(i)return!0;var a,s,c=e[0],u=e.left,l=e.right,d=u[0],f=u[1],p=l[0],h=l[1],m=(d+p)/2,b=(f+h)/2;if(h===f){if(m=r)return;if(d>p){if(c){if(c[1]>=o)return}else c=[m,n];i=[m,o]}else{if(c){if(c[1]1)if(d>p){if(c){if(c[1]>=o)return}else c=[(n-s)/a,n];i=[(o-s)/a,o]}else{if(c){if(c[1]=r)return}else c=[t,a*t+s];i=[r,a*r+s]}else{if(c){if(c[0]=-qw)){var p=c*c+u*u,h=l*l+d*d,m=(d*p-u*h)/f,b=(c*h-l*p)/f,y=Aw.pop()||new Sw;y.arc=e,y.site=o,y.x=m+a,y.y=(y.cy=b+s)+Math.sqrt(m*m+b*b),e.circle=y;for(var g=null,v=Yw._;v;)if(y.yWw)s=s.L;else{if(!((o=i-jw(s,a))>Ww)){r>-Ww?(t=s.P,n=s):o>-Ww?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){Iw[e.index]={site:e,halfedges:[]}}(e);var c=Dw(e);if(Rw.insert(t,c),t||n){if(t===n)return Lw(t),n=Dw(t.site),Rw.insert(c,n),c.edge=n.edge=bw(t.site,c.site),Ow(t),void Ow(n);if(n){Lw(t),Lw(n);var u=t.site,l=u[0],d=u[1],f=e[0]-l,p=e[1]-d,h=n.site,m=h[0]-l,b=h[1]-d,y=2*(f*b-p*m),g=f*f+p*p,v=m*m+b*b,_=[(b*g-p*v)/y+l,(f*v-m*g)/y+d];gw(n.edge,u,h,_),c.edge=bw(u,e,null,_),n.edge=bw(e,h,null,_),Ow(t),Ow(n)}else c.edge=bw(t.site,c.site)}}function Nw(e,t){var n=e.site,r=n[0],o=n[1],i=o-t;if(!i)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],c=n[1],u=c-t;if(!u)return s;var l=s-r,d=1/i-1/u,f=l/u;return d?(-f+Math.sqrt(f*f-2*d*(l*l/(-2*u)-c+u/2+o-i/2)))/d+r:(r+s)/2}function jw(e,t){var n=e.N;if(n)return Nw(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var Rw,Iw,Yw,Fw,Ww=1e-6,qw=1e-12;function Bw(e,t){return t[1]-e[1]||t[0]-e[0]}function Hw(e,t){var n,r,o,i=e.sort(Bw).pop();for(Fw=[],Iw=new Array(e.length),Rw=new mw,Yw=new mw;;)if(o=kw,i&&(!o||i[1]Ww||Math.abs(o[0][1]-o[1][1])>Ww)||delete Fw[i]}(a,s,c,u),function(e,t,n,r){var o,i,a,s,c,u,l,d,f,p,h,m,b=Iw.length,y=!0;for(o=0;oWw||Math.abs(m-f)>Ww)&&(c.splice(s,0,Fw.push(yw(a,p,Math.abs(h-e)Ww?[e,Math.abs(d-e)Ww?[Math.abs(f-r)Ww?[n,Math.abs(d-n)Ww?[Math.abs(f-t)=s)return null;var c=e-o.site[0],u=t-o.site[1],l=c*c+u*u;do{o=i.cells[r=a],a=null,o.halfedges.forEach(function(n){var r=i.edges[n],s=r.left;if(s!==o.site&&s||(s=r.right)){var c=e-s[0],u=t-s[1],d=c*c+u*u;dr?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}var ix=function(){var e,t,n=Zw,r=ex,o=ox,i=nx,a=rx,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,l=ar,d=[],f=fe("start","zoom","end"),p=500,h=150,m=0;function b(e){e.property("__zoom",tx).on("wheel.zoom",x).on("mousedown.zoom",k).on("dblclick.zoom",A).filter(a).on("touchstart.zoom",S).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(e,t){return(t=Math.max(s[0],Math.min(s[1],t)))===e.k?e:new Gw(t,e.x,e.y)}function g(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new Gw(e.k,r,o)}function v(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function _(e,t,n){e.on("start.zoom",function(){M(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){M(this,arguments).end()}).tween("zoom",function(){var e=arguments,o=M(this,e),i=r.apply(this,e),a=n||v(i),s=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),c=this.__zoom,u="function"==typeof t?t.apply(this,e):t,d=l(c.invert(a).concat(s/c.k),u.invert(a).concat(s/u.k));return function(e){if(1===e)e=u;else{var t=d(e),n=s/t[2];e=new Gw(n,a[0]-t[0]*n,a[1]-t[1]*n)}o.zoom(null,e)}})}function M(e,t){for(var n,r=0,o=d.length;rm}e.zoom("mouse",o(g(e.that.__zoom,e.mouse[0]=ct(e.that),e.mouse[1]),e.extent,c))},!0).on("mouseup.zoom",function(){r.on("mousemove.zoom mouseup.zoom",null),mt(He.view,e.moved),$w(),e.end()},!0),i=ct(this),a=He.clientX,s=He.clientY;ht(He.view),Qw(),e.mouse=[i,this.__zoom.invert(i)],Zr(this),e.start()}}function A(){if(n.apply(this,arguments)){var e=this.__zoom,t=ct(this),i=e.invert(t),a=e.k*(He.shiftKey?.5:2),s=o(g(y(e,a),t,i),r.apply(this,arguments),c);$w(),u>0?tt(this).transition().duration(u).call(_,s,t):tt(this).call(b.transform,s)}}function S(){if(n.apply(this,arguments)){var t,r,o,i,a=M(this,arguments),s=He.changedTouches,c=s.length;for(Qw(),r=0;r-1};l.prototype.append=function(e,t){e=s(e),t=c(t);var n=this.map[e];this.map[e]=n?n+","+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=c(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var i=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var a=[301,302,303,307,308];g.redirect=function(e,t){if(-1===a.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},e.Headers=l,e.Request=b,e.Response=g,e.fetch=function(e,n){return new Promise(function(r,o){var i=new b(e,n),a=new XMLHttpRequest;a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;r(new g(o,n))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),i.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0}function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&r(e))this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!o(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=h(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function g(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e){e.exports={name:"keen-analysis",version:"3.4.1",description:"A JavaScript client for Keen.IO",main:"dist/node/keen-analysis.js",browser:"dist/keen-analysis.js",scripts:{start:"NODE_ENV=development webpack-dev-server",test:"NODE_ENV=test jest && npm run test:node","test:node":"NODE_ENV=test TEST_ENV=node jest","test:watch":"NODE_ENV=test jest --watch","test:node:watch":"NODE_ENV=test TEST_ENV=node jest --watch",build:"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:node && npm run build:modules && npm run build:modules:node","build:node":"TARGET=node NODE_ENV=production webpack -p","build:modules":"NODE_ENV=production webpack -p --config webpack.modules.config.js","build:modules:node":"NODE_ENV=production TARGET=node webpack -p --config webpack.modules.config.js",profile:"webpack --profile --json > stats.json",analyze:"webpack-bundle-analyzer stats.json /dist",preversion:"npm run build:node && npm run test",version:"npm run build && git add .",postversion:"git push && git push --tags && npm publish",demo:"npm run build:node && node ./test/demo/index.node.js"},repository:{type:"git",url:"git+https://github.com/keen/keen-analysis.js.git"},author:"Keen IO ",homepage:"https://keen.io",contributors:["Dustin Larimer (https://github.com/dustinlarimer)","Adam Kasprowicz (https://github.com/adamkasprowicz)","Dariusz Łacheta (https://github.com/dariuszlacheta)"],keywords:["Analytics","Analysis","Conversion","Query","Stats","Client","Min","Max","Count","Percentile","Average","Median","Keen","Keen Query"],license:"MIT",bugs:{url:"https://github.com/keen/keen-analysis.js/issues"},dependencies:{crossfilter2:"^1.4.6",csvtojson:"^2.0.8","keen-core":"^0.2.0",moment:"^2.22.2","promise-polyfill":"^8.0.0","whatwg-fetch":"^2.0.4"},devDependencies:{"abortcontroller-polyfill":"^1.1.9","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0",del:"^2.1.0",eslint:"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","fake-indexeddb":"^2.0.4","html-loader":"^0.5.5","html-webpack-plugin":"^3.2.0",jest:"^22.4.3","jest-fetch-mock":"^1.6.5",merge:"^1.2.1",nock:"^9.2.6","regenerator-runtime":"^0.11.1",requirejs:"^2.1.22",through2:"^2.0.0","url-parse":"^1.4.3",webpack:"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.14","xhr-mock":"^2.3.2"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.mapKeysToUnderscore=function e(t){var n=["cache"];if(!t||"object"!==(void 0===t?"undefined":r(t)))return t;var o=Object.keys(t)||[];var i={};o.forEach(function(o){var a=t[o];return n.includes(o)?i[o]=a:(o.match(new RegExp("[A-Z]"))&&(o=o.replace(/[A-Z]/g,function(e){return"_"+e.toLowerCase()})),Array.isArray(a)?i[o]=a.map(function(t){return e(t)}):"object"===(void 0===a?"undefined":r(a))?i[o]=e(a):void(i[o]=a))});return i}},function(e,t,n){var r=n(0);n(2);e.exports=function(e){var t=[];return r(e,function(e,n){"string"!=typeof e&&(e=JSON.stringify(e)),t.push(n+"="+encodeURIComponent(e))}),t.join("&")}},function(e,t,n){"use strict";(function(e){var r=n(4),o=setTimeout;function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void u(t.promise,e)}c(t.promise,r)}else(1===e._state?c:u)(t.promise,e._value)})):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void f((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){u(e,t)}var r,o}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t>>4&15)+n.charAt(15&t);return r}(function(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}(function(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,l=271733878,d=0;d>2),n=0;n>5]|=(255&e.charCodeAt(n/8))<>>32-t}(u(u(t,e),u(r,i)),o),n)}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function c(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}function u(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFromCache=t.saveToCache=void 0;var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return u?Promise.resolve():c?(l=r({},l,e),new Promise(function(e,t){var n=self.indexedDB.open(l.dbName);n.onerror=function(t){c=!1,e()},n.onupgradeneeded=function(e){var t=e.target.result.createObjectStore(l.dbCollectionName,{keyPath:l.dbCollectionKey});t.createIndex(l.dbCollectionKey,l.dbCollectionKey,{unique:!0}),t.createIndex("expiryTime","expiryTime",{unique:!1})},n.onsuccess=function(t){(u=t.target.result).onerror=function(e){c=!1},e(u)}})):Promise.resolve()}var f=function(e,t){return(0,a.default)(e+"&body="+JSON.stringify(t.body))};t.saveToCache=function(e,t,n){return d().then(function(){var r=u.transaction(l.dbCollectionName,"readwrite").objectStore(l.dbCollectionName).add({url:f(e,t),expiryTime:Date.now()+l.maxAge,responseJson:n});r.onsuccess=function(e){},r.onerror=function(e){c=!1}})},t.getFromCache=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d(r.cache).then(function(){return new Promise(function(o,i){if(!c)return o(null);var a=u.transaction(l.dbCollectionName,"readwrite").objectStore(l.dbCollectionName).index("expiryTime"),s=IDBKeyRange.upperBound(Date.now(),!0);a.openCursor(s).onsuccess=function(e){var t=e.target.result;if(t){u.transaction(l.dbCollectionName,"readwrite").objectStore(l.dbCollectionName).delete(e.target.result.value[l.dbCollectionKey]);t.continue()}};var d=u.transaction(l.dbCollectionName,"readwrite").objectStore(l.dbCollectionName).index(l.dbCollectionKey).get(f(t,n));d.onsuccess=function(i){if(!i.target.result||i.target.result.expiryTime2&&void 0!==arguments[2]?arguments[2]:{},c={},u=n.url;"GET"!==t&&"DELETE"!==t||(-1===u.indexOf("?")?u+="?":u+="&",n.api_key&&(u+="api_key="+n.api_key+"&"),n.params&&(u+=(0,i.default)(n.params))),(0,o.default)(n.headers,function(e,t){"string"==typeof e&&(c[t]=e)});var l={method:t,body:"GET"!==t&&n.params?JSON.stringify(n.params):void 0,mode:"cors",headers:c};if(n.cache&&"DELETE"!==t&&"PUT"!==t&&!s.notFoundInCache)return(0,a.getFromCache)(u,l,n).then(function(o){if(o)return s.resolve(o);e(t,n,r({},s,{notFoundInCache:!0}))});var d=void 0;fetch(u,r({},l,{signal:s.signal})).catch(function(e){s.reject(e)}).then(function(e){if(e)return d=e,e.ok&&"DELETE"===t?{}:e.json()}).then(function(e){if(e){if(e.error_code||!d.ok)return s.reject({ok:!1,error_code:e.error_code,body:e.message,status:d.status,statusText:d.statusText});n.cache&&"DELETE"!==t&&"PUT"!==t&&(0,a.saveToCache)(u,l,e),s.resolve(e)}})},u=function(){var e=window||void 0;if(e.XMLHttpRequest&&(!e.ActiveXObject||e.location&&e.location.protocol&&"file:"!==e.location.protocol))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=u(),a=n.callback,s=t.url;return r.onreadystatechange=function(){var e=void 0;if(4==r.readyState)if(r.status>=200&&r.status<300)if(204===r.status)a&&a(null,r);else try{e=JSON.parse(r.responseText),a&&e&&a(null,e)}catch(e){a&&a(r,null)}else try{e=JSON.parse(r.responseText),a&&e&&a(e,null)}catch(e){a&&a(r,null)}},"GET"!==e?(r.open(e,s,!0),(0,o.default)(t.headers,function(e,t){"string"==typeof e&&r.setRequestHeader(t,e)}),t.params?r.send(JSON.stringify(t.params)):r.send()):(s+="?",t.api_key&&(s+="api_key="+t.api_key+"&"),t.params&&(s+=(0,i.default)(t.params)),r.open(e,s,!0),(0,o.default)(t.headers,function(e,t){"string"==typeof e&&r.setRequestHeader(t,e)}),r.send()),r};t.GET=function(e,t){return"undefined"!=typeof fetch?c("GET",e,t):u()?l("GET",e,t):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.url,r=t.callback,o=(new Date).getTime(),a=document.createElement("script"),s=document.getElementsByTagName("head")[0],c="keenJSONPCallback",u=!1;for(c+=o;c in window;)c+="a";window[c]=function(e){!0!==u&&l(null,e)},e.params&&(n+=(0,i.default)(e.params)),a.onreadystatechange=function(){!1===u&&"loaded"===this.readyState&&l("An error occurred",null)},a.onerror=function(){!1===u&&l("An error occurred",null)},a.src=n+"&jsonp="+c,s.appendChild(a);var l=function(e,t){u=!0,r&&"function"==typeof r&&(r(e,t),r=void 0),window[c]=void 0;try{delete window[c]}catch(e){}s.removeChild(a)}}(e,t)},t.POST=function(e,t){return"undefined"!=typeof fetch?c("POST",e,t):u()?l("POST",e,t):void t.reject("XHR POST not supported")},t.PUT=function(e,t){return"undefined"!=typeof fetch?c("PUT",e,t):u()?l("PUT",e,t):void t.reject("XHR PUT not supported")},t.DEL=function(e,t){return"undefined"!=typeof fetch?c("DELETE",e,t):u()?l("DELETE",e,t):void t.reject("XHR DELETE not supported")}},function(e,t,n){(function(e){(function(){"use strict";var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t?(this.config=o({api_key:void 0,method:e,params:{},url:t,headers:{Authorization:"","Content-type":"application/json","keen-sdk":"javascript-"+c.version}},n),this):(this.config=o({api_key:void 0,params:{},method:e,headers:{Authorization:t.api_key,"Content-type":"application/json","keen-sdk":"javascript-"+c.version}},t,n),this.send())}.bind(this)}l.prototype.auth=function(e){return"string"==typeof e&&(this.config.api_key="string"==typeof e?e:void 0,this.headers({Authorization:e})),this},l.prototype.headers=function(e){return"object"===(void 0===e?"undefined":r(e))&&(0,i.default)(e,function(e,t){this.config.headers[t]=e}.bind(this)),this},l.prototype.timeout=function(e){return this.config.timeout="number"==typeof e?e:3e5,this},l.prototype.send=function(e){var t=this;if(this.config&&!this.config.api_key)throw new Error("Please provide valid API key");e&&(this.config.params=e&&"object"===(void 0===e?"undefined":r(e))?(0,s.mapKeysToUnderscore)(e):{});var n=this.config.method;"DELETE"===n&&(n="DEL");var o=this.httpHandlers[n],i=(0,a.default)({},this.config);"DELETE"!==this.config.method&&void 0===i.params.analysis_type&&i.url.indexOf("/queries/")>-1&&i.url.indexOf("/saved/")<0&&(i.params.analysis_type=i.url.split("/queries/").pop());var c=void 0;"undefined"!=typeof AbortController&&(c=new AbortController);var u=void 0,l=new Promise(function(e,t){var n={};return c&&(n.signal=c.signal),n.resolve=e,n.reject=t,u=o(i,n)}).then(function(e){return Array.isArray(e.result)?t.config.params.interval?t.config.params.group_by?e.result.forEach(function(e){e.value.forEach(function(e){isNaN(Number(e.result))||(e.result=Number(e.result))})}):e.result.forEach(function(e){isNaN(Number(e.value))||(e.value=Number(e.value))}):e.result.forEach(function(e){isNaN(Number(e.result))||(e.result=Number(e.result))}):isNaN(Number(e.result))||(e.result=Number(e.result)),t.config.resultParsers&&(Array.isArray(e.result)?t.config.params.interval?t.config.params.group_by?e.result.forEach(function(e){e.value.forEach(function(e){t.config.resultParsers.forEach(function(t){e.result=t(e.result)})})}):e.result.forEach(function(e){t.config.resultParsers.forEach(function(t){e.value=t(e.value)})}):e.result.forEach(function(e){t.config.resultParsers.forEach(function(t){e.result=t(e.result)})}):t.config.resultParsers.forEach(function(t){e.result=t(e.result)})),i.params&&void 0!==i.params.event_collection&&void 0===e.query?(0,a.default)({query:i.params},e):e});return l.abort=function(){if(c)return c.abort();u.emit("abort")},l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.validateAuthCredentials=function(e){if("object"!==(void 0===e?"undefined":r(e)))return;if(!e.projectId)throw new Error("Please provide valid project ID");if(!e.masterKey&&!e.readKey)throw new Error("Please provide valid API key");return!0}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o-1&&(t.protocol=document.location.protocol.replace(":","")),t.host&&t.host.replace(/.*?:\/\//g,""),i(this.config,t),this},u.prototype.masterKey=function(e){return arguments.length?(this.config.masterKey=e?String(e):null,this):this.config.masterKey},u.prototype.projectId=function(e){return arguments.length?(this.config.projectId=e?String(e):null,this):this.config.projectId},u.prototype.resources=function(e){if(!arguments.length)return this.config.resources;var t=this;return"object"==typeof e&&o(e,function(e,n){t.config.resources[n]=e||null}),t},u.prototype.url=function(e){var t,n=Array.prototype.slice.call(arguments,1),r=this.config.resources.base||"{protocol}://{host}";return t=e&&"string"==typeof e?this.config.resources[e]?this.config.resources[e]:r+e:r,o(this.config,function(e,n){"object"!=typeof e&&(t=t.replace("{"+n+"}",e))}),o(n,function(e,n){"string"==typeof e?t+="/"+e:"object"==typeof e&&(t+="?",o(e,function(e,n){t+=n+"="+e+"&"}),t=t.slice(0,-1))}),t},function(e){if(u.loaded||"undefined"==typeof document)return void e();null==document.readyState&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e,!1),document.readyState="complete"},!1),document.readyState="loading");!function e(t){/in/.test(document.readyState)?setTimeout(function(){e(t)},9):t()}(e)}(function(){u.loaded=!0,u.emit("ready")}),e.exports=u}).call(this,"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{})}).call(this,n(1))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,d=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&p())}function p(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(20),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeenAnalysis=void 0;var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.analysis=e,this.params={},this.set(t),this.options=r({},n)}i.default.prototype.readKey=function(e){return arguments.length?(this.config.readKey=e?String(e):null,this):this.config.readKey},i.default.prototype.query=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,c.validateAuthCredentials)(this.config);var i={a:(0,u.mapKeysToUnderscore)(e),b:(0,u.mapKeysToUnderscore)(t)},a=i.a,l=i.b;if("object"===(void 0===e?"undefined":o(e))&&!t){var d=i.a,f=d.analysis_type,p=d.cache;a=f,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(d,["analysis_type","cache"]);var h=this.config.cache;void 0!==p&&(h=p),n.cache=h}if(n.resultParsers=this.config.resultParsers,void 0===n.cache&&this.config.cache&&(n.cache=r({},this.config.cache)),a&&l&&"string"==typeof l)return l.indexOf("/result")<0&&(l+="/result"),this.get({url:this.url("queries",a,l),api_key:this.config.readKey||this.config.masterKey},n);if(l&&l.saved_query_name){var m=l.saved_query_name.indexOf("/result")>-1?l.saved_query_name:l.saved_query_name+"/result";return this.get({url:this.url("queries","saved",m),api_key:this.config.readKey||this.config.masterKey},n)}if("dataset"===a&&"object"===(void 0===l?"undefined":o(l)))return this.get({url:this.url("datasets",l.name,"results"),api_key:this.config.readKey||this.config.masterKey,params:l},n);if(l&&l.dataset_name)return this.get({url:this.url("datasets",l.dataset_name,"results"),api_key:this.config.readKey||this.config.masterKey,params:l},n);if(a&&l&&"object"===(void 0===l?"undefined":o(l))){var b=(0,s.default)({analysis_type:a},l);return b.timezone||(b.timezone=-60*(new Date).getTimezoneOffset()),this.post({url:this.url("queries",a),api_key:this.config.readKey||this.config.masterKey,params:b},n)}return a&&"string"==typeof a&&!l?Promise.reject({error_code:"SDKError",message:".query() called with incorrect arguments"}):void 0},i.default.Query=f,i.default.prototype.run=function(e,t){var n=this,r=t,o=void 0,c=e instanceof Array?e:[e],u=[];return(0,a.default)(c,function(e,t){var r=void 0;r="string"==typeof e?n.query("saved",e+"/result"):e instanceof i.default.Query?n.query(e.analysis,(0,s.default)({analysis_type:e.analysis},e.params),e.options):e,u.push(r)}),o=u.length>1?Promise.all(u):u[0],r&&(o.then(function(e){r(null,e)}),o.catch(function(e){r(e,null)})),o},f.prototype.set=function(e){var t=this;return(0,a.default)(e,function(e,n){var r=n,i=e;n.match(new RegExp("[A-Z]"))&&(r=n.replace(/([A-Z])/g,function(e){return"_"+e.toLowerCase()})),t.params[r]=i,i instanceof Array&&(0,a.default)(i,function(e,n){e instanceof Array==0&&"object"===(void 0===e?"undefined":o(e))&&(0,a.default)(e,function(e,o){if(o.match(new RegExp("[A-Z]"))){var i=o.replace(/([A-Z])/g,function(e){return"_"+e.toLowerCase()});delete t.params[r][n][o],t.params[r][n][i]=e}})})}),t},f.prototype.get=function(e){var t=e;if(t.match(new RegExp("[A-Z]"))&&(t=t.replace(/([A-Z])/g,function(e){return"_"+e.toLowerCase()})),this.params)return this.params[t]||null},f.prototype.addFilter=function(e,t,n){return this.params.filters=this.params.filters||[],this.params.filters.push({property_name:e,operator:t,property_value:n}),this},i.default.version=l.default.version;var p=t.KeenAnalysis=i.default;t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeenAnalysis=t.Keen=t.keenGlobals=void 0;a(n(2));var r=a(n(22)),o=a(n(14)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(12));function a(e){return e&&e.__esModule?e:{default:e}}r.default.prototype.get=new o.default("GET",i),r.default.prototype.post=new o.default("POST",i),r.default.prototype.put=new o.default("PUT",i),r.default.prototype.del=new o.default("DELETE",i);t.keenGlobals=void 0;"undefined"!=typeof webpackKeenGlobals&&(t.keenGlobals=webpackKeenGlobals);var s=t.Keen=r.default.extendLibrary(r.default);t.KeenAnalysis=s;t.default=s},function(e,t,n){e.exports=n(23)}])},e.exports=r()},function(e){e.exports={a:"6.0.5"}},function(e,t,n){"use strict";(function(t){var r=n(619);e.exports=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e=t.from(e));var o=n&&n.objname?{}:[],i=new r.Parser(n);i.push=function(e){void 0===n.objname?o.push(e):o[e[0]]=e[1]};var a=i.__parse(e,!1);if(void 0!==a)throw a;var s=i.__parse(void 0,!0);if(void 0!==s)throw s;return o}}).call(this,n(89).Buffer)},function(e,t,n){(function(t){for(var r=n(633),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],c=o["cancel"+a]||o["cancelRequest"+a],u=0;!s&&u=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){l.forEach(function(t){return delete e[t]})}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}();h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){function o(t){var r=new i.default(t);n.call(e,r)}if(e.addEventListener){var a=(s=!1,"object"==typeof r?s=r.capture||!1:"boolean"==typeof r&&(s=r),e.addEventListener(t,o,r||!1),{v:{remove:function(){e.removeEventListener(t,o,s)}}});if("object"==typeof a)return a.v}else if(e.attachEvent)return e.attachEvent("on"+t,o),{remove:function(){e.detachEvent("on"+t,o)}};var s};var r,o=n(742),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){var r; +var r=/input|select|textarea|button|object/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow"):"none"==n.getPropertyValue("display")}function i(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(o(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=c,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);c(n,t),t="length"in n?n[0]:n}return s=t||s},t.validateElement=u,t.hide=function(e){u(e)&&(e||s).setAttribute("aria-hidden","true")},t.show=function(e){u(e)&&(e||s).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){s=null},t.resetForTesting=function(){s=null};var r,o=n(614),i=(r=o)&&r.__esModule?r:{default:r},a=n(161);var s=null;function c(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){return!(!e&&!s)||((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(t,r){var o=n(117);e.exports=v;var i,a=n(347);v.ReadableState=g;n(163).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=n(349),u=n(118).Buffer,l=t.Uint8Array||function(){};var d=n(91);d.inherits=n(72);var f=n(621),p=void 0;p=f&&f.debuglog?f.debuglog("stream"):function(){};var h,m=n(622),b=n(350);d.inherits(v,c);var y=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var r=t instanceof(i=i||n(58));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(351).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function v(e){if(i=i||n(58),!(this instanceof v))return new v(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function _(e,t,n,r,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,k(e)}(e,a)):(o||(i=function(e,t){var n;r=t,u.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):M(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?M(e,a,t,!1):S(e,a)):M(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=w?e=w:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(A,e):A(e))}function A(e){p("emit readable"),e.emit("readable"),E(e)}function S(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(O,e,t))}function O(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=u.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function z(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):k(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,o=t.needReadable;return p("need readable",o),(0===t.length||t.length-e0?D(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,p("pipe count=%d opts=%j",i.pipesCount,t);var c=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:v;function u(t,r){p("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",d),e.removeListener("error",b),e.removeListener("unpipe",u),n.removeListener("end",l),n.removeListener("end",v),n.removeListener("data",m),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function l(){p("onend"),e.end()}i.endEmitted?o.nextTick(c):n.once("end",c),e.on("unpipe",u);var d=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,E(e))}}(n);e.on("drain",d);var f=!1;var h=!1;function m(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==z(i.pipes,e))&&!f&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function b(t){p("onerror",t),v(),e.removeListener("error",b),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",g),v()}function g(){p("onfinish"),e.removeListener("close",y),v()}function v(){p("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",b),e.once("close",y),e.once("finish",g),e.emit("pipe",n),i.flowing||(p("pipe resume"),n.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return o>0&&(e.lastNeed=o-1),o;if(--r=0)return o>0&&(e.lastNeed=o-2),o;if(--r=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var r=n(58),o=n(91);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function p(){}f.contextTypes={transitionGroup:r.object},f.childContextTypes={transitionGroup:function(){}},f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},f.UNMOUNTED=0,f.EXITED=1,f.ENTERING=2,f.ENTERED=3,f.EXITING=4;var h=(0,a.polyfill)(f);t.default=h},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(1))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(1)),o=s(n(0)),i=n(162),a=n(640);function s(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var f=(0,i.polyfill)(d);t.default=f,e.exports=t.default},function(e,t,n){n(641)},function(e,t,n){"use strict";var r=n(650),o=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;e.exports=function(){var e=r.ToObject(this),t=r.ToLength(r.Get(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=r.ToInteger(arguments[0]));var i=r.ArraySpeciesCreate(e,0);return function e(t,n,i,a,s){for(var c=a,u=0;u0&&(f=r.IsArray(d)),f)c=e(t,d,r.ToLength(r.Get(d,"length")),c,s-1);else{if(c>=o)throw new TypeError("index too large");r.CreateDataPropertyOrThrow(t,r.ToString(c),d),c+=1}}u+=1}return c}(i,e,t,0,n),i}},function(e,t,n){"use strict";var r=n(651),o=n(167),i=o(o({},r),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=i},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=Object.prototype.toString;if("function"==typeof Symbol&&"symbol"==typeof Symbol()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,n){"use strict";var r=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=Object.getPrototypeOf||function(e){return e.__proto__},a=void 0,s="undefined"==typeof Uint8Array?void 0:i(Uint8Array),c={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?i([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":a&&o&&Symbol.asyncIterator?a[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?i((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?i((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:void 0,"$ %SymbolPrototype%":o?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":r,"$ %TypedArray%":s,"$ %TypedArrayPrototype%":s?s.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in c))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===c[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return c[n]}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var n=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(357);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function i(e,t){var n=t(e(o));return function(){return n}}function a(e){return i(e,r.createLTR||r.create)}function s(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom",a=!n||r?window.getComputedStyle(e):null,s=e.offsetWidth,c=e.offsetHeight,u="width"===t?s:c;n||(u-=parseFloat(a["padding".concat(o)])+parseFloat(a["padding".concat(i)])+parseFloat(a["border".concat(o,"Width")])+parseFloat(a["border".concat(i,"Width")]));r&&(u+=parseFloat(a["margin".concat(o)])+parseFloat(a["margin".concat(i)]));return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(26)),o=g(n(0)),i=(g(n(1)),g(n(36)),n(12),n(27)),a=g(n(2)),s=n(122),c=n(20),u=(g(n(21)),g(n(46))),l=g(n(370)),d=g(n(677)),f=g(n(678)),p=g(n(373)),h=g(n(123)),m=g(n(679)),b=g(n(680)),y=(g(n(120)),g(n(75)),g(n(59)),n(5));function g(e){return e&&e.__esModule?e:{default:e}}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(){return(_=Object.assign||function(e){for(var t=1;t=r&&f1&&void 0!==arguments[1]?arguments[1]:0;return 7*e+2*t+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!o.default.isMoment(e)||!o.default.isMoment(t))&&e.month()===t.month()&&e.year()===t.year()};var r,o=(r=n(2))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(683),o=n(119),i=n(93).call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(e){var t=r.RequireObjectCoercible(e),n=[];for(var a in t)o(t,a)&&i(t,a)&&n.push(t[a]);return n}},function(e,t,n){"use strict";var r=n(375);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(1)),o=b(n(36)),i=n(12),a=n(20),s=b(n(21)),c=b(n(378)),u=b(n(77)),l=b(n(379)),d=b(n(94)),f=b(n(380)),p=b(n(60)),h=b(n(59)),m=b(n(95));function b(e){return e&&e.__esModule?e:{default:e}}var y={startDate:o.default.momentObj,endDate:o.default.momentObj,onDatesChange:r.default.func.isRequired,focusedInput:c.default,onFocusChange:r.default.func.isRequired,onClose:r.default.func,startDateId:r.default.string.isRequired,startDatePlaceholderText:r.default.string,startDateOffset:r.default.func,endDateOffset:r.default.func,endDateId:r.default.string.isRequired,endDatePlaceholderText:r.default.string,disabled:d.default,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDates:r.default.bool,showDefaultInputIcon:r.default.bool,inputIconPosition:u.default,customInputIcon:r.default.node,customArrowIcon:r.default.node,customCloseIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,keepFocusOnInput:r.default.bool,renderMonthText:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:l.default,anchorDirection:f.default,openDirection:p.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,daySize:i.nonNegativeInteger,isRTL:r.default.bool,firstDayOfWeek:h.default,initialVisibleMonth:r.default.func,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDates:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:m.default,hideKeyboardShortcutsPanel:r.default.bool,verticalHeight:i.nonNegativeInteger,transitionDuration:i.nonNegativeInteger,verticalSpacing:i.nonNegativeInteger,horizontalMonthPadding:i.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,minimumNights:r.default.number,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(a.DateRangePickerPhrases)),dayAriaLabelFormat:r.default.string};t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(1))&&r.__esModule?r:{default:r},i=n(5);var a=o.default.oneOf([i.START_DATE,i.END_DATE]);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(1))&&r.__esModule?r:{default:r},i=n(5);var a=o.default.oneOf([i.HORIZONTAL_ORIENTATION,i.VERTICAL_ORIENTATION]);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(1))&&r.__esModule?r:{default:r},i=n(5);var a=o.default.oneOf([i.ANCHOR_LEFT,i.ANCHOR_RIGHT]);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){var i="undefined"!=typeof window?window.innerWidth:0,a=e===r.ANCHOR_LEFT?i-n:n,s=o||0;return function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},e,Math.min(t+a-s,0))};var r=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=n.getBoundingClientRect(),i=o.left,a=o.top;e===r.OPEN_UP&&(a=-(window.innerHeight-o.bottom));t===r.ANCHOR_RIGHT&&(i=-(window.innerWidth-o.right));return{transform:"translate3d(".concat(Math.round(i),"px, ").concat(Math.round(a),"px, 0)")}};var r=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getScrollParent=o,t.getScrollAncestorsOverflowY=i,t.default=function(e){var t=i(e),n=function(e){return t.forEach(function(t,n){n.style.setProperty("overflow-y",e?"hidden":t)})};return n(!0),function(){return n(!1)}};var r=function(){return document.scrollingElement||document.documentElement};function o(e){var t=e.parentElement;if(null==t)return r();var n=window.getComputedStyle(t).overflowY;return"visible"!==n&&"hidden"!==n&&t.scrollHeight>t.clientHeight?t:o(t)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=r(),a=o(e);return t.set(a,a.style.overflowY),a===n?t:i(a,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(26)),o=p(n(0)),i=(p(n(1)),p(n(2))),a=(p(n(36)),n(12),p(n(60)),n(20)),s=(p(n(21)),p(n(385))),c=(p(n(77)),p(n(94)),p(n(74))),u=p(n(173)),l=p(n(78)),d=p(n(96)),f=n(5);function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(){return function(e){return e.__proto__||Object.getPrototypeOf(e)}}())(e)}function b(e,t){for(var n=0;n0&&(I||j||s!==M)){var V=y||this.today;W=this.deleteModifierFromRange(W,V,V.clone().add(M,"days"),"blocked-minimum-nights"),W=this.deleteModifierFromRange(W,V,V.clone().add(M,"days"),"blocked")}(I||N)&&(0,a.default)(E).forEach(function(e){Object.keys(e).forEach(function(e){var n=(0,i.default)(e),r=!1;(I||D)&&(c(n)?(W=t.addModifier(W,n,"blocked-out-of-range"),r=!0):W=t.deleteModifier(W,n,"blocked-out-of-range")),(I||C)&&(u(n)?(W=t.addModifier(W,n,"blocked-calendar"),r=!0):W=t.deleteModifier(W,n,"blocked-calendar")),W=r?t.addModifier(W,n,"blocked"):t.deleteModifier(W,n,"blocked"),(I||z)&&(W=l(n)?t.addModifier(W,n,"highlighted-calendar"):t.deleteModifier(W,n,"highlighted-calendar"))})}),s>0&&n&&o===v.END_DATE&&(W=this.addModifierToRange(W,n,n.clone().add(s,"days"),"blocked-minimum-nights"),W=this.addModifierToRange(W,n,n.clone().add(s,"days"),"blocked"));var U=(0,i.default)();if((0,d.default)(this.today,U)||(W=this.deleteModifier(W,this.today,"today"),W=this.addModifier(W,U,"today"),this.today=U),Object.keys(W).length>0&&this.setState({visibleDays:k({},E,W)}),I||f!==S){var G=P(f,o);this.setState({phrases:k({},f,{chooseAvailableDate:G})})}}}()},{key:"onDayClick",value:function(){return function(e,t){var n=this.props,r=n.keepOpenOnDateSelect,o=n.minimumNights,i=n.onBlur,a=n.focusedInput,s=n.onFocusChange,c=n.onClose,l=n.onDatesChange,d=n.startDateOffset,h=n.endDateOffset,m=n.disabled;if(t&&t.preventDefault(),!this.isBlocked(e)){var y=this.props,g=y.startDate,_=y.endDate;if(d||h){if(g=(0,b.default)(d,e),_=(0,b.default)(h,e),this.isBlocked(g)||this.isBlocked(_))return;l({startDate:g,endDate:_}),r||(s(null),c({startDate:g,endDate:_}))}else if(a===v.START_DATE){var M=_&&_.clone().subtract(o,"days"),w=(0,p.default)(M,e)||(0,f.default)(g,_),x=m===v.END_DATE;x&&w||(g=e,w&&(_=null)),l({startDate:g,endDate:_}),x&&!w?(s(null),c({startDate:g,endDate:_})):x||s(v.END_DATE)}else if(a===v.END_DATE){var k=g&&g.clone().add(o,"days");g?(0,u.default)(e,k)?(l({startDate:g,endDate:_=e}),r||(s(null),c({startDate:g,endDate:_}))):m!==v.START_DATE?l({startDate:g=e,endDate:_=null}):l({startDate:g,endDate:_}):(l({startDate:g,endDate:_=e}),s(v.START_DATE))}else l({startDate:g,endDate:_});i()}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.props,n=t.startDate,r=t.endDate,o=t.focusedInput,i=t.minimumNights,a=t.startDateOffset,s=t.endDateOffset,c=this.state,u=c.hoverDate,l=c.visibleDays,h=c.dateOffset,m=null;if(o){var y=a||s,g={};if(y){var _=(0,b.default)(a,e),M=(0,b.default)(s,e,function(e){return e.add(1,"day")});m={start:_,end:M},h&&h.start&&h.end&&(g=this.deleteModifierFromRange(g,h.start,h.end,"hovered-offset")),g=this.addModifierToRange(g,_,M,"hovered-offset")}if(!y){if(g=this.deleteModifier(g,u,"hovered"),g=this.addModifier(g,e,"hovered"),n&&!r&&o===v.END_DATE){if((0,f.default)(u,n)){var w=u.clone().add(1,"day");g=this.deleteModifierFromRange(g,n,w,"hovered-span")}if(!this.isBlocked(e)&&(0,f.default)(e,n)){var x=e.clone().add(1,"day");g=this.addModifierToRange(g,n,x,"hovered-span")}}if(!n&&r&&o===v.START_DATE&&((0,p.default)(u,r)&&(g=this.deleteModifierFromRange(g,u,r,"hovered-span")),!this.isBlocked(e)&&(0,p.default)(e,r)&&(g=this.addModifierToRange(g,e,r,"hovered-span"))),n){var A=n.clone().add(1,"day"),S=n.clone().add(i+1,"days");if(g=this.deleteModifierFromRange(g,A,S,"after-hovered-start"),(0,d.default)(e,n)){var O=n.clone().add(1,"day"),L=n.clone().add(i+1,"days");g=this.addModifierToRange(g,O,L,"after-hovered-start")}}}this.setState({hoverDate:e,dateOffset:m,visibleDays:k({},l,g)})}}}}()},{key:"onDayMouseLeave",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,i=this.state,a=i.hoverDate,s=i.visibleDays,c=i.dateOffset;if(!this.isTouchDevice&&a){var u={};if(u=this.deleteModifier(u,a,"hovered"),c&&(u=this.deleteModifierFromRange(u,c.start,c.end,"hovered-offset")),n&&!r&&(0,f.default)(a,n)){var l=a.clone().add(1,"day");u=this.deleteModifierFromRange(u,n,l,"hovered-span")}if(!n&&r&&(0,f.default)(r,a)&&(u=this.deleteModifierFromRange(u,a,r,"hovered-span")),n&&(0,d.default)(e,n)){var p=n.clone().add(1,"day"),h=n.clone().add(o+1,"days");u=this.deleteModifierFromRange(u,p,h,"after-hovered-start")}this.setState({hoverDate:null,visibleDays:k({},s,u)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.enableOutsideDays,n=e.maxDate,r=e.minDate,o=e.numberOfMonths,i=e.onPrevMonthClick,a=this.state,s=a.currentMonth,c=a.visibleDays,u={};Object.keys(c).sort().slice(0,o+1).forEach(function(e){u[e]=c[e]});var l=s.clone().subtract(2,"months"),d=(0,h.default)(l,1,t,!0),f=s.clone().subtract(1,"month");this.setState({currentMonth:f,disablePrev:this.shouldDisableMonthNavigation(r,f),disableNext:this.shouldDisableMonthNavigation(n,f),visibleDays:k({},u,this.getModifiers(d))},function(){i(f.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.enableOutsideDays,n=e.maxDate,r=e.minDate,o=e.numberOfMonths,i=e.onNextMonthClick,a=this.state,s=a.currentMonth,c=a.visibleDays,u={};Object.keys(c).sort().slice(1).forEach(function(e){u[e]=c[e]});var l=s.clone().add(o+1,"month"),d=(0,h.default)(l,1,t,!0),f=s.clone().add(1,"month");this.setState({currentMonth:f,disablePrev:this.shouldDisableMonthNavigation(r,f),disableNext:this.shouldDisableMonthNavigation(n,f),visibleDays:k({},u,this.getModifiers(d))},function(){i(f.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===v.VERTICAL_SCROLLABLE,i=(0,h.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===v.VERTICAL_SCROLLABLE,i=(0,h.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onMultiplyScrollableMonths",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.enableOutsideDays,r=this.state,o=r.currentMonth,i=r.visibleDays,a=Object.keys(i).length,s=o.clone().add(a,"month"),c=(0,h.default)(s,t,n,!0);this.setState({visibleDays:k({},i,this.getModifiers(c))})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,r=n.startDate,o=n.endDate,i=n.focusedInput,a=n.minimumNights,s=n.numberOfMonths,c=e.clone().startOf("month");if(i===v.START_DATE&&r?c=r.clone():i===v.END_DATE&&!o&&r?c=r.clone().add(a,"days"):i===v.END_DATE&&o&&(c=o.clone()),this.isBlocked(c)){for(var u=[],l=e.clone().add(s-1,"months").endOf("month"),d=c.clone();!(0,f.default)(d,l);)d=d.clone().add(1,"day"),u.push(d);var p=u.filter(function(e){return!t.isBlocked(e)});p.length>0&&(c=x(p,1)[0])}return c}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,y.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,r=e.numberOfMonths,o=e.enableOutsideDays,i=e.orientation,a=e.startDate,s=(n||(a?function(){return a}:function(){return t.today}))(),c=i===v.VERTICAL_SCROLLABLE;return{currentMonth:s,visibleDays:this.getModifiers((0,h.default)(s,r,o,c))}}}()},{key:"shouldDisableMonthNavigation",value:function(){return function(e,t){if(!e)return!1;var n=this.props,r=n.numberOfMonths,o=n.enableOutsideDays;return(0,m.default)(e,t,r,o)}}()},{key:"addModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,a=r.orientation,s=this.state,c=s.currentMonth,u=s.visibleDays,l=c,d=o;if(a===v.VERTICAL_SCROLLABLE?d=Object.keys(u).length:(l=l.clone().subtract(1,"month"),d+=2),!t||!(0,m.default)(t,l,d,i))return e;var f=(0,y.default)(t),p=k({},e);if(i)p=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(f)>-1}).reduce(function(t,r){var o=e[r]||u[r],i=new Set(o[f]);return i.add(n),k({},t,A({},r,k({},o,A({},f,i))))},p);else{var h=(0,g.default)(t),b=e[h]||u[h],_=new Set(b[f]);_.add(n),p=k({},p,A({},h,k({},b,A({},f,_))))}return p}}()},{key:"addModifierToRange",value:function(){return function(e,t,n,r){for(var o=e,i=t.clone();(0,p.default)(i,n);)o=this.addModifier(o,i,r),i=i.clone().add(1,"day");return o}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,a=r.orientation,s=this.state,c=s.currentMonth,u=s.visibleDays,l=c,d=o;if(a===v.VERTICAL_SCROLLABLE?d=Object.keys(u).length:(l=l.clone().subtract(1,"month"),d+=2),!t||!(0,m.default)(t,l,d,i))return e;var f=(0,y.default)(t),p=k({},e);if(i)p=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(f)>-1}).reduce(function(t,r){var o=e[r]||u[r],i=new Set(o[f]);return i.delete(n),k({},t,A({},r,k({},o,A({},f,i))))},p);else{var h=(0,g.default)(t),b=e[h]||u[h],_=new Set(b[f]);_.delete(n),p=k({},p,A({},h,k({},b,A({},f,_))))}return p}}()},{key:"deleteModifierFromRange",value:function(){return function(e,t,n,r){for(var o=e,i=t.clone();(0,p.default)(i,n);)o=this.deleteModifier(o,i,r),i=i.clone().add(1,"day");return o}}()},{key:"doesNotMeetMinimumNights",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.isOutsideRange,o=t.focusedInput,a=t.minimumNights;if(o!==v.END_DATE)return!1;if(n){var s=e.diff(n.clone().startOf("day").hour(12),"days");return s=0}return r((0,i.default)(e).subtract(a,"days"))}}()},{key:"isDayAfterHoveredStartDate",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=t.minimumNights,i=(this.state||{}).hoverDate;return!!n&&!r&&!this.isBlocked(e)&&(0,l.default)(i,e)&&o>0&&(0,d.default)(i,n)}}()},{key:"isEndDate",value:function(){return function(e){var t=this.props.endDate;return(0,d.default)(e,t)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return!!this.props.focusedInput&&(0,d.default)(e,t)}}()},{key:"isInHoveredSpan",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate,o=(this.state||{}).hoverDate,i=!!n&&!r&&(e.isBetween(n,o)||(0,d.default)(o,e)),a=!!r&&!n&&(e.isBetween(o,r)||(0,d.default)(o,e)),s=o&&!this.isBlocked(o);return(i||a)&&s}}()},{key:"isInSelectedSpan",value:function(){return function(e){var t=this.props,n=t.startDate,r=t.endDate;return e.isBetween(n,r)}}()},{key:"isLastInRange",value:function(){return function(e){var t=this.props.endDate;return this.isInSelectedSpan(e)&&(0,l.default)(e,t)}}()},{key:"isStartDate",value:function(){return function(e){var t=this.props.startDate;return(0,d.default)(e,t)}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)||this.doesNotMeetMinimumNights(e)}}()},{key:"isToday",value:function(){return function(e){return(0,d.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||i.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||i.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,i=e.renderMonthText,a=e.navPrev,s=e.navNext,c=e.noNavButtons,u=e.onOutsideClick,l=e.withPortal,d=e.enableOutsideDays,f=e.firstDayOfWeek,p=e.hideKeyboardShortcutsPanel,h=e.daySize,m=e.focusedInput,b=e.renderCalendarDay,y=e.renderDayContents,g=e.renderCalendarInfo,v=e.renderMonthElement,M=e.calendarInfoPosition,w=e.onBlur,x=e.onShiftTab,k=e.onTab,A=e.isFocused,S=e.showKeyboardShortcuts,O=e.isRTL,L=e.weekDayFormat,T=e.dayAriaLabelFormat,E=e.verticalHeight,D=e.noBorder,P=e.transitionDuration,C=e.verticalBorderSpacing,z=e.horizontalMonthPadding,N=this.state,j=N.currentMonth,R=N.phrases,I=N.visibleDays,Y=N.disablePrev,F=N.disableNext;return o.default.createElement(_.default,{orientation:n,enableOutsideDays:d,modifiers:I,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onTab:k,onShiftTab:x,onYearChange:this.onYearChange,onMultiplyScrollableMonths:this.onMultiplyScrollableMonths,monthFormat:r,renderMonthText:i,withPortal:l,hidden:!m,initialVisibleMonth:function(){return j},daySize:h,onOutsideClick:u,disablePrev:Y,disableNext:F,navPrev:a,navNext:s,noNavButtons:c,renderCalendarDay:b,renderDayContents:y,renderCalendarInfo:g,renderMonthElement:v,calendarInfoPosition:M,firstDayOfWeek:f,hideKeyboardShortcutsPanel:p,isFocused:A,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:w,showKeyboardShortcuts:S,phrases:R,isRTL:O,weekDayFormat:L,dayAriaLabelFormat:T,verticalHeight:E,verticalBorderSpacing:C,noBorder:D,transitionDuration:P,horizontalMonthPadding:z})}}()}]),t}();t.default=C,C.propTypes={},C.defaultProps=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!r.default.isMoment(e)||!r.default.isMoment(t))return!1;var n=(0,r.default)(e).add(1,"day");return(0,o.default)(n,t)};var r=i(n(2)),o=i(n(73));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){if(!r.default.isMoment(e))return{};for(var a={},s=i?e.clone():e.clone().subtract(1,"month"),c=0;c<(i?t:t+2);c+=1){var u=[],l=s.clone(),d=l.clone().startOf("month").hour(12),f=l.clone().endOf("month").hour(12),p=d.clone();if(n)for(var h=0;h0&&this.setState({visibleDays:_({},x,D)})}}()},{key:"componentWillUpdate",value:function(){return function(){this.today=(0,i.default)()}}()},{key:"onDayClick",value:function(){return function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,i=n.onFocusChange,a=n.onClose;r(e),o||(i({focused:!1}),a({date:e}))}}}()},{key:"onDayMouseEnter",value:function(){return function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:_({},r,o)})}}}()},{key:"onDayMouseLeave",value:function(){return function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:_({},n,r)})}}}()},{key:"onPrevMonthClick",value:function(){return function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,a=o.visibleDays,s={};Object.keys(a).sort().slice(0,n+1).forEach(function(e){s[e]=a[e]});var c=i.clone().subtract(1,"month"),u=(0,d.default)(c,1,r);this.setState({currentMonth:c,visibleDays:_({},s,this.getModifiers(u))},function(){t(c.clone())})}}()},{key:"onNextMonthClick",value:function(){return function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,a=o.visibleDays,s={};Object.keys(a).sort().slice(1).forEach(function(e){s[e]=a[e]});var c=i.clone().add(n,"month"),u=(0,d.default)(c,1,r),l=i.clone().add(1,"month");this.setState({currentMonth:l,visibleDays:_({},s,this.getModifiers(u))},function(){t(l.clone())})}}()},{key:"onMonthChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===m.VERTICAL_SCROLLABLE,i=(0,d.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"onYearChange",value:function(){return function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===m.VERTICAL_SCROLLABLE,i=(0,d.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}}()},{key:"getFirstFocusableDay",value:function(){return function(e){var t=this,n=this.props,r=n.date,o=n.numberOfMonths,i=e.clone().startOf("month");if(r&&(i=r.clone()),this.isBlocked(i)){for(var a=[],s=e.clone().add(o-1,"months").endOf("month"),c=i.clone();!(0,l.default)(c,s);)c=c.clone().add(1,"day"),a.push(c);var u=a.filter(function(e){return!t.isBlocked(e)&&(0,l.default)(e,i)});if(u.length>0){var d=v(u,1);i=d[0]}}return i}}()},{key:"getModifiers",value:function(){return function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]={},e[r].forEach(function(e){n[r][(0,p.default)(e)]=t.getModifiersForDay(e)})}),n}}()},{key:"getModifiersForDay",value:function(){return function(e){var t=this;return new Set(Object.keys(this.modifiers).filter(function(n){return t.modifiers[n](e)}))}}()},{key:"getStateForNewMonth",value:function(){return function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,i=e.enableOutsideDays,a=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:a,visibleDays:this.getModifiers((0,d.default)(a,o,i))}}}()},{key:"addModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,a=r.orientation,s=this.state,c=s.currentMonth,u=s.visibleDays,l=c,d=o;if(a===m.VERTICAL_SCROLLABLE?d=Object.keys(u).length:(l=l.clone().subtract(1,"month"),d+=2),!t||!(0,f.default)(t,l,d,i))return e;var b=(0,p.default)(t),y=_({},e);if(i)y=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(b)>-1}).reduce(function(t,r){var o=e[r]||u[r],i=new Set(o[b]);return i.add(n),_({},t,M({},r,_({},o,M({},b,i))))},y);else{var g=(0,h.default)(t),v=e[g]||u[g],w=new Set(v[b]);w.add(n),y=_({},y,M({},g,_({},v,M({},b,w))))}return y}}()},{key:"deleteModifier",value:function(){return function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,a=r.orientation,s=this.state,c=s.currentMonth,u=s.visibleDays,l=c,d=o;if(a===m.VERTICAL_SCROLLABLE?d=Object.keys(u).length:(l=l.clone().subtract(1,"month"),d+=2),!t||!(0,f.default)(t,l,d,i))return e;var b=(0,p.default)(t),y=_({},e);if(i)y=Object.keys(u).filter(function(e){return Object.keys(u[e]).indexOf(b)>-1}).reduce(function(t,r){var o=e[r]||u[r],i=new Set(o[b]);return i.delete(n),_({},t,M({},r,_({},o,M({},b,i))))},y);else{var g=(0,h.default)(t),v=e[g]||u[g],w=new Set(v[b]);w.delete(n),y=_({},y,M({},g,_({},v,M({},b,w))))}return y}}()},{key:"isBlocked",value:function(){return function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}}()},{key:"isHovered",value:function(){return function(e){var t=(this.state||{}).hoverDate;return(0,u.default)(e,t)}}()},{key:"isSelected",value:function(){return function(e){var t=this.props.date;return(0,u.default)(e,t)}}()},{key:"isToday",value:function(){return function(e){return(0,u.default)(e,this.today)}}()},{key:"isFirstDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||i.default.localeData().firstDayOfWeek())}}()},{key:"isLastDayOfWeek",value:function(){return function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||i.default.localeData().firstDayOfWeek())+6)%7}}()},{key:"render",value:function(){return function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,i=e.renderMonthText,a=e.navPrev,s=e.navNext,c=e.onOutsideClick,u=e.onShiftTab,l=e.onTab,d=e.withPortal,f=e.focused,p=e.enableOutsideDays,h=e.hideKeyboardShortcutsPanel,m=e.daySize,y=e.firstDayOfWeek,g=e.renderCalendarDay,v=e.renderDayContents,_=e.renderCalendarInfo,M=e.renderMonthElement,w=e.calendarInfoPosition,x=e.isFocused,k=e.isRTL,A=e.phrases,S=e.dayAriaLabelFormat,O=e.onBlur,L=e.showKeyboardShortcuts,T=e.weekDayFormat,E=e.verticalHeight,D=e.noBorder,P=e.transitionDuration,C=e.verticalBorderSpacing,z=e.horizontalMonthPadding,N=this.state,j=N.currentMonth,R=N.visibleDays;return o.default.createElement(b.default,{orientation:n,enableOutsideDays:p,modifiers:R,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:d,hidden:!f,hideKeyboardShortcutsPanel:h,initialVisibleMonth:function(){return j},firstDayOfWeek:y,onOutsideClick:c,navPrev:a,navNext:s,renderMonthText:i,renderCalendarDay:g,renderDayContents:v,renderCalendarInfo:_,renderMonthElement:M,calendarInfoPosition:w,isFocused:x,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:O,onTab:l,onShiftTab:u,phrases:A,daySize:m,isRTL:k,showKeyboardShortcuts:L,weekDayFormat:T,dayAriaLabelFormat:S,verticalHeight:E,noBorder:D,transitionDuration:P,verticalBorderSpacing:C,horizontalMonthPadding:z})}}()}]),t}();t.default=L,L.propTypes={},L.defaultProps=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(1)),o=h(n(36)),i=n(12),a=n(20),s=h(n(21)),c=h(n(77)),u=h(n(379)),l=h(n(380)),d=h(n(60)),f=h(n(59)),p=h(n(95));function h(e){return e&&e.__esModule?e:{default:e}}var m={date:o.default.momentObj,onDateChange:r.default.func.isRequired,focused:r.default.bool,onFocusChange:r.default.func.isRequired,id:r.default.string.isRequired,placeholder:r.default.string,disabled:r.default.bool,required:r.default.bool,readOnly:r.default.bool,screenReaderInputMessage:r.default.string,showClearDate:r.default.bool,customCloseIcon:r.default.node,showDefaultInputIcon:r.default.bool,inputIconPosition:c.default,customInputIcon:r.default.node,noBorder:r.default.bool,block:r.default.bool,small:r.default.bool,regular:r.default.bool,verticalSpacing:i.nonNegativeInteger,keepFocusOnInput:r.default.bool,renderMonthText:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),renderMonthElement:(0,i.mutuallyExclusiveProps)(r.default.func,"renderMonthText","renderMonthElement"),orientation:u.default,anchorDirection:l.default,openDirection:d.default,horizontalMargin:r.default.number,withPortal:r.default.bool,withFullScreenPortal:r.default.bool,appendToBody:r.default.bool,disableScroll:r.default.bool,initialVisibleMonth:r.default.func,firstDayOfWeek:f.default,numberOfMonths:r.default.number,keepOpenOnDateSelect:r.default.bool,reopenPickerOnClearDate:r.default.bool,renderCalendarInfo:r.default.func,calendarInfoPosition:p.default,hideKeyboardShortcutsPanel:r.default.bool,daySize:i.nonNegativeInteger,isRTL:r.default.bool,verticalHeight:i.nonNegativeInteger,transitionDuration:i.nonNegativeInteger,horizontalMonthPadding:i.nonNegativeInteger,navPrev:r.default.node,navNext:r.default.node,onPrevMonthClick:r.default.func,onNextMonthClick:r.default.func,onClose:r.default.func,renderCalendarDay:r.default.func,renderDayContents:r.default.func,enableOutsideDays:r.default.bool,isDayBlocked:r.default.func,isOutsideRange:r.default.func,isDayHighlighted:r.default.func,displayFormat:r.default.oneOfType([r.default.string,r.default.func]),monthFormat:r.default.string,weekDayFormat:r.default.string,phrases:r.default.shape((0,s.default)(a.SingleDatePickerPhrases)),dayAriaLabelFormat:r.default.string};t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(0)),o=(d(n(1)),n(12),n(27)),i=n(20),a=(d(n(21)),d(n(46))),s=d(n(386)),c=(d(n(77)),d(n(97))),u=d(n(392)),l=(d(n(60)),n(5));function d(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;tc;)r(s,n=t[c++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var r=n(404);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(177);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";var r=n(127),o=n(79),i=n(407),a=n(80),s=n(183),c=n(717),u=n(185),l=n(720),d=n(83)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,h,m,b,y){c(n,t,h);var g,v,_,M=function(e){if(!f&&e in A)return A[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",x="values"==m,k=!1,A=e.prototype,S=A[d]||A["@@iterator"]||m&&A[m],O=S||M(m),L=m?x?M("entries"):O:void 0,T="Array"==t&&A.entries||S;if(T&&(_=l(T.call(new e)))!==Object.prototype&&_.next&&(u(_,w,!0),r||"function"==typeof _[d]||a(_,d,p)),x&&S&&"values"!==S.name&&(k=!0,O=function(){return S.call(this)}),r&&!y||!f&&!k&&A[d]||a(A,d,O),s[t]=O,s[w]=p,m)if(g={values:x?O:M("values"),keys:b?O:M("keys"),entries:L},y)for(v in g)v in A||i(A,v,g[v]);else o(o.P+o.F*(f||k),t,g);return g}},function(e,t,n){e.exports=n(80)},function(e,t,n){var r=n(402),o=n(181).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(129),o=n(125),i=n(82),a=n(176),s=n(63),c=n(400),u=Object.getOwnPropertyDescriptor;t.f=n(62)?u:function(e,t){if(e=i(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){e.exports={default:n(744),__esModule:!0}},function(e,t){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;nt?1:e>=t?0:NaN},o=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var i=o(r),a=i.right,s=i.left,c=a,u=function(e,t){null==t&&(t=l);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);ne?1:t>=e?0:NaN},p=function(e){return null===e?NaN:+e},h=function(e,t){var n,r,o=e.length,i=0,a=-1,s=0,c=0;if(null==t)for(;++a1)return c/(i-1)},m=function(e,t){var n=h(e,t);return n?Math.sqrt(n):n},b=function(e,t){var n,r,o,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=o=n;++an&&(r=n),o=n)for(r=o=n;++an&&(r=n),o0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++s=0?(i>=x?10:i>=k?5:i>=A?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=x?10:i>=k?5:i>=A?2:1)}function L(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=x?o*=10:i>=k?o*=5:i>=A&&(o*=2),td;)f.pop(),--p;var h,m=new Array(p+1);for(o=0;o<=p;++o)(h=m[o]=[]).x0=o>0?f[o-1]:l,h.x1=o=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}},P=function(e,t,n){return e=v.call(e,p).sort(r),Math.ceil((n-t)/(2*(D(e,.75)-D(e,.25))*Math.pow(e.length,-1/3)))},C=function(e,t,n){return Math.ceil((n-t)/(3.5*m(e)*Math.pow(e.length,-1/3)))},z=function(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i=n)for(r=n;++ir&&(r=n)}else for(;++i=n)for(r=n;++ir&&(r=n);return r},N=function(e,t){var n,r=e.length,o=r,i=-1,a=0;if(null==t)for(;++i=0;)for(t=(r=e[o]).length;--t>=0;)n[--a]=r[t];return n},I=function(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i=n)for(r=n;++in&&(r=n)}else for(;++i=n)for(r=n;++in&&(r=n);return r},Y=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},F=function(e,t){if(n=e.length){var n,o,i=0,a=0,s=e[a];for(null==t&&(t=r);++i=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),a=-1,s=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a0)for(var n,r,o=new Array(n),i=0;i=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),he.hasOwnProperty(t)?{space:he[t],local:e}:e};var be=function(e){var t=me(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===pe&&t.documentElement.namespaceURI===pe?t.createElement(e):t.createElementNS(n,e)}})(t)};function ye(){}var ge=function(e){return null==e?ye:function(){return this.querySelector(e)}};function ve(){return[]}var _e=function(e){return null==e?ve:function(){return this.querySelectorAll(e)}},Me=function(e){return function(){return this.matches(e)}},we=function(e){return new Array(e.length)};function xe(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}xe.prototype={constructor:xe,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var ke="$";function Ae(e,t,n,r,o,i){for(var a,s=0,c=t.length,u=i.length;st?1:e>=t?0:NaN}var Le=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function Te(e,t){return e.style.getPropertyValue(t)||Le(e).getComputedStyle(e,null).getPropertyValue(t)}function Ee(e){return e.trim().split(/^|\s+/)}function De(e){return e.classList||new Pe(e)}function Pe(e){this._node=e,this._names=Ee(e.getAttribute("class")||"")}function Ce(e,t){for(var n=De(e),r=-1,o=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ne(){this.textContent=""}function je(){this.innerHTML=""}function Re(){this.nextSibling&&this.parentNode.appendChild(this)}function Ie(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ye(){return null}function Fe(){var e=this.parentNode;e&&e.removeChild(this)}function We(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function qe(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var Be={},He=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Be={mouseenter:"mouseover",mouseleave:"mouseout"}));function Xe(e,t,n){return e=Ve(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Ve(e,t,n){return function(r){var o=He;He=r;try{e.call(this,this.__data__,t,n)}finally{He=o}}}function Ue(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r=M&&(M=_+1);!(v=y[M])&&++M=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Oe);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):Te(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=Ee(e+"");if(arguments.length<2){for(var r=De(this.node()),o=-1,i=n.length;++o=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?Ge:Ue,null==n&&(n=!1),r=0;rd}c.mouse("drag")}function m(){tt(He.view).on("mousemove.drag mouseup.drag",null),mt(He.view,n),pt(),c.mouse("end")}function b(){if(o.apply(this,arguments)){var e,t,n=He.changedTouches,r=i.apply(this,arguments),a=n.length;for(e=0;e>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Et.exec(e))?Yt(parseInt(t[1],16)):(t=Dt.exec(e))?new Bt(t[1],t[2],t[3],1):(t=Pt.exec(e))?new Bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ct.exec(e))?Ft(t[1],t[2],t[3],t[4]):(t=zt.exec(e))?Ft(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Nt.exec(e))?Xt(t[1],t[2]/100,t[3]/100,1):(t=jt.exec(e))?Xt(t[1],t[2]/100,t[3]/100,t[4]):Rt.hasOwnProperty(e)?Yt(Rt[e]):"transparent"===e?new Bt(NaN,NaN,NaN,0):null}function Yt(e){return new Bt(e>>16&255,e>>8&255,255&e,1)}function Ft(e,t,n,r){return r<=0&&(e=t=n=NaN),new Bt(e,t,n,r)}function Wt(e){return e instanceof At||(e=It(e)),e?new Bt((e=e.rgb()).r,e.g,e.b,e.opacity):new Bt}function qt(e,t,n,r){return 1===arguments.length?Wt(e):new Bt(e,t,n,null==r?1:r)}function Bt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ht(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Xt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ut(e,t,n,r)}function Vt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ut)return new Ut(e.h,e.s,e.l,e.opacity);if(e instanceof At||(e=It(e)),!e)return new Ut;if(e instanceof Ut)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n0&&c<1?0:a,new Ut(a,s,c,e.opacity)}(e):new Ut(e,t,n,null==r?1:r)}function Ut(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Gt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}xt(At,It,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),xt(Bt,qt,kt(At,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Ht(this.r)+Ht(this.g)+Ht(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),xt(Ut,Vt,kt(At,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ut(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ut(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Bt(Gt(e>=240?e-240:e+120,o,r),Gt(e,o,r),Gt(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Kt=Math.PI/180,Jt=180/Math.PI,Qt=.96422,$t=1,Zt=.82521,en=4/29,tn=6/29,nn=3*tn*tn,rn=tn*tn*tn;function on(e){if(e instanceof cn)return new cn(e.l,e.a,e.b,e.opacity);if(e instanceof bn){if(isNaN(e.h))return new cn(e.l,0,0,e.opacity);var t=e.h*Kt;return new cn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Bt||(e=Wt(e));var n,r,o=fn(e.r),i=fn(e.g),a=fn(e.b),s=un((.2225045*o+.7168786*i+.0606169*a)/$t);return o===i&&i===a?n=r=s:(n=un((.4360747*o+.3850649*i+.1430804*a)/Qt),r=un((.0139322*o+.0971045*i+.7141733*a)/Zt)),new cn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function an(e,t){return new cn(e,0,0,null==t?1:t)}function sn(e,t,n,r){return 1===arguments.length?on(e):new cn(e,t,n,null==r?1:r)}function cn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function un(e){return e>rn?Math.pow(e,1/3):e/nn+en}function ln(e){return e>tn?e*e*e:nn*(e-en)}function dn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pn(e){if(e instanceof bn)return new bn(e.h,e.c,e.l,e.opacity);if(e instanceof cn||(e=on(e)),0===e.a&&0===e.b)return new bn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Jt;return new bn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function hn(e,t,n,r){return 1===arguments.length?pn(e):new bn(n,t,e,null==r?1:r)}function mn(e,t,n,r){return 1===arguments.length?pn(e):new bn(e,t,n,null==r?1:r)}function bn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}xt(cn,sn,kt(At,{brighter:function(e){return new cn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new cn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Bt(dn(3.1338561*(t=Qt*ln(t))-1.6168667*(e=$t*ln(e))-.4906146*(n=Zt*ln(n))),dn(-.9787684*t+1.9161415*e+.033454*n),dn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),xt(bn,mn,kt(At,{brighter:function(e){return new bn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new bn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return on(this).rgb()}}));var yn=-.29227,gn=-.90649,vn=1.97294,_n=vn*gn,Mn=1.78277*vn,wn=1.78277*yn- -.14861*gn;function xn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof kn)return new kn(e.h,e.s,e.l,e.opacity);e instanceof Bt||(e=Wt(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(wn*r+_n*t-Mn*n)/(wn+_n-Mn),i=r-o,a=(vn*(n-o)-yn*i)/gn,s=Math.sqrt(a*a+i*i)/(vn*o*(1-o)),c=s?Math.atan2(a,i)*Jt-120:NaN;return new kn(c<0?c+360:c,s,o,e.opacity)}(e):new kn(e,t,n,null==r?1:r)}function kn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function An(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}xt(kn,xn,kt(At,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new kn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new kn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Kt,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new Bt(255*(t+n*(-.14861*r+1.78277*o)),255*(t+n*(yn*r+gn*o)),255*(t+n*(vn*r)),this.opacity)}}));var Sn=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r180||n<-180?n-360*Math.round(n/360):n):Ln(isNaN(e)?t:e)}function Dn(e){return 1==(e=+e)?Pn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ln(isNaN(t)?n:t)}}function Pn(e,t){var n=t-e;return n?Tn(e,n):Ln(isNaN(e)?t:e)}var Cn=function e(t){var n=Dn(t);function r(e,t){var r=n((e=qt(e)).r,(t=qt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Pn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function zn(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;ni&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:Yn(n,r)})),i=qn.lastIndex;return i180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Yn(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,c),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Yn(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,c),function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:Yn(e,n)},{i:s-2,x:Yn(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,c),i=a=null,function(e){for(var t,n=-1,r=c.length;++n=0&&t._call.call(null,e),t=t._next;--Mr}function Nr(){Sr=(Ar=Lr.now())+Or,Mr=wr=0;try{zr()}finally{Mr=0,function(){var e,t,n=gr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:gr=t);vr=e,Rr(r)}(),Sr=0}}function jr(){var e=Lr.now(),t=e-Ar;t>kr&&(Or-=t,Ar=e)}function Rr(e){Mr||(wr&&(wr=clearTimeout(wr)),e-Sr>24?(e<1/0&&(wr=setTimeout(Nr,e-Lr.now()-Or)),xr&&(xr=clearInterval(xr))):(xr||(Ar=Lr.now(),xr=setInterval(jr,kr)),Mr=1,Tr(Nr)))}Pr.prototype=Cr.prototype={constructor:Pr,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Er():+n)+(null==t?0:+t),this._next||vr===this||(vr?vr._next=this:gr=this,vr=this),this._call=e,this._time=n,Rr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rr())}};var Ir=function(e,t,n){var r=new Pr;return t=null==t?0:+t,r.restart(function(n){r.stop(),e(n+t)},t,n),r},Yr=function(e,t,n){var r=new Pr,o=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?Er():+n,r.restart(function i(a){a+=o,r.restart(i,o+=t,n),e(a)},t,n),r)},Fr=fe("start","end","cancel","interrupt"),Wr=[],qr=0,Br=1,Hr=2,Xr=3,Vr=4,Ur=5,Gr=6,Kr=function(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(c){var u,l,d,f;if(n.state!==Br)return s();for(u in o)if((f=o[u]).name===n.name){if(f.state===Xr)return Ir(i);f.state===Vr?(f.state=Gr,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[u]):+uqr)throw new Error("too late; already scheduled");return n}function Qr(e,t){var n=$r(e,t);if(n.state>Xr)throw new Error("too late; already running");return n}function $r(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var Zr=function(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>Hr&&n.state=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?Jr:Qr;return function(){var a=i(this,e),s=a.on;s!==r&&(o=(r=s).copy()).on(t,n),a.on=o}}(n,e,t))},attr:function(e,t){var n=me(e),r="transform"===n?rr:to;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,o,i;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttributeNS(e.space,e.local))===(s=c+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,c));this.removeAttributeNS(e.space,e.local)}}:function(e,t,n){var r,o,i;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttribute(e))===(s=c+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,c));this.removeAttribute(e)}})(n,r,eo(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}:function(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=me(e);return this.tween(n,(r.local?function(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t(n))}}(e,o)),n}return o._value=t,o}:function(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttribute(e,t(n))}}(e,o)),n}return o._value=t,o})(r,t))},style:function(e,t,n){var r="transform"==(e+="")?nr:to;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=Te(this,e),a=(this.style.removeProperty(e),Te(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,ro(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,o,i;return function(){var a=Te(this,e),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(e),c=s=Te(this,e)),a===c?null:a===r&&c===o?i:(o=c,i=t(r=a,s))}}(e,r,eo(this,"style."+e,t))).each(function(e,t){var n,r,o,i,a="style."+t,s="end."+a;return function(){var c=Qr(this,e),u=c.on,l=null==c.value[a]?i||(i=ro(t)):void 0;u===n&&o===l||(r=(n=u).copy()).on(s,o=l),c.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,i=n+"";return function(){var a=Te(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&function(e,t,n){return function(r){this.style.setProperty(e,t(r),n)}}(e,i,n)),r}return i._value=t,i}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(eo(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}));var e},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=$r(this.node(),n).tween,i=0,a=o.length;iBr&&n.name===t)return new io([[e]],Zo,t,+r);return null},ti=function(e){return function(){return e}},ni=function(e,t,n){this.target=e,this.type=t,this.selection=n};function ri(){He.stopImmediatePropagation()}var oi=function(){He.preventDefault(),He.stopImmediatePropagation()},ii={name:"drag"},ai={name:"space"},si={name:"handle"},ci={name:"center"},ui={name:"x",handles:["e","w"].map(yi),input:function(e,t){return e&&[[e[0],t[0][1]],[e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},li={name:"y",handles:["n","s"].map(yi),input:function(e,t){return e&&[[t[0][0],e[0]],[t[1][0],e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},di={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(yi),input:function(e){return e},output:function(e){return e}},fi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},pi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},hi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},mi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},bi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function yi(e){return{type:e}}function gi(){return!He.button}function vi(){var e=this.ownerSVGElement||this;return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function _i(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Mi(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function wi(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function xi(){return Si(ui)}function ki(){return Si(li)}var Ai=function(){return Si(di)};function Si(e){var t,n=vi,r=gi,o=fe(a,"start","brush","end"),i=6;function a(t){var n=t.property("__brush",d).selectAll(".overlay").data([yi("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",fi.overlay).merge(n).each(function(){var e=_i(this).extent;tt(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])}),t.selectAll(".selection").data([yi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",fi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,function(e){return e.type});r.exit().remove(),r.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return fi[e.type]}),t.each(s).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",l)}function s(){var e=tt(this),t=_i(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",function(e){return"e"===e.type[e.type.length-1]?t[1][0]-i/2:t[0][0]-i/2}).attr("y",function(e){return"s"===e.type[0]?t[1][1]-i/2:t[0][1]-i/2}).attr("width",function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+i:i}).attr("height",function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+i:i})):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(e,t){return e.__brush.emitter||new u(e,t)}function u(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function l(){if(He.touches){if(He.changedTouches.length0&&(n=o-p),w<0?d=f-h:w>0&&(i=a-h),_=ai,N.attr("cursor",fi.selection),I());break;default:return}oi()},!0).on("keyup.brush",function(){switch(He.keyCode){case 16:E&&(b=y=E=!1,I());break;case 18:_===ci&&(M<0?u=l:M>0&&(n=o),w<0?d=f:w>0&&(i=a),_=si,I());break;case 32:_===ai&&(He.altKey?(M&&(u=l-p*M,n=o+p*M),w&&(d=f-h*w,i=a+h*w),_=ci):(M<0?u=l:M>0&&(n=o),w<0?d=f:w>0&&(i=a),_=si),N.attr("cursor",fi[v]),I());break;default:return}oi()},!0).on("mousemove.brush",R,!0).on("mouseup.brush",Y,!0);ht(He.view)}ri(),Zr(g),s.call(g),C.start()}function R(){var e=ct(g);!E||b||y||(Math.abs(e[0]-P[0])>Math.abs(e[1]-P[1])?y=!0:b=!0),P=e,m=!0,oi(),I()}function I(){var e;switch(p=P[0]-D[0],h=P[1]-D[1],_){case ai:case ii:M&&(p=Math.max(S-n,Math.min(L-u,p)),o=n+p,l=u+p),w&&(h=Math.max(O-i,Math.min(T-d,h)),a=i+h,f=d+h);break;case si:M<0?(p=Math.max(S-n,Math.min(L-n,p)),o=n+p,l=u):M>0&&(p=Math.max(S-u,Math.min(L-u,p)),o=n,l=u+p),w<0?(h=Math.max(O-i,Math.min(T-i,h)),a=i+h,f=d):w>0&&(h=Math.max(O-d,Math.min(T-d,h)),a=i,f=d+h);break;case ci:M&&(o=Math.max(S,Math.min(L,n-p*M)),l=Math.max(S,Math.min(L,u+p*M))),w&&(a=Math.max(O,Math.min(T,i-h*w)),f=Math.max(O,Math.min(T,d+h*w)))}l1e-6)if(Math.abs(l*s-c*u)>1e-6&&o){var f=n-i,p=r-a,h=s*s+c*c,m=f*f+p*p,b=Math.sqrt(h),y=Math.sqrt(d),g=o*Math.tan((ji-Math.acos((h+d-m)/(2*b*y)))/2),v=g/y,_=g/b;Math.abs(v-1)>1e-6&&(this._+="L"+(e+v*u)+","+(t+v*l)),this._+="A"+o+","+o+",0,0,"+ +(l*f>u*p)+","+(this._x1=e+_*s)+","+(this._y1=t+_*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=e+a,u=t+s,l=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+c+","+u),n&&(d<0&&(d=d%Ri+Ri),d>Ii?this._+="A"+n+","+n+",0,1,"+l+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=ji)+","+l+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Wi=Fi;function qi(e){return e.source}function Bi(e){return e.target}function Hi(e){return e.radius}function Xi(e){return e.startAngle}function Vi(e){return e.endAngle}var Ui=function(){var e=qi,t=Bi,n=Hi,r=Xi,o=Vi,i=null;function a(){var a,s=zi.call(arguments),c=e.apply(this,s),u=t.apply(this,s),l=+n.apply(this,(s[0]=c,s)),d=r.apply(this,s)-Ei,f=o.apply(this,s)-Ei,p=l*Oi(d),h=l*Li(d),m=+n.apply(this,(s[0]=u,s)),b=r.apply(this,s)-Ei,y=o.apply(this,s)-Ei;if(i||(i=a=Wi()),i.moveTo(p,h),i.arc(0,0,l,d,f),d===b&&f===y||(i.quadraticCurveTo(0,0,m*Oi(b),m*Li(b)),i.arc(0,0,m,b,y)),i.quadraticCurveTo(0,0,p,h),i.closePath(),a)return i=null,a+""||null}return a.radius=function(e){return arguments.length?(n="function"==typeof e?e:Ni(+e),a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Ni(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Ni(+e),a):o},a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(e){return arguments.length?(t=e,a):t},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a};function Gi(){}function Ki(e,t){var n=new Gi;if(e instanceof Gi)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var c,u,l,d=-1,f=n.length,p=r[o++],h=Ji(),m=a();++dr.length)return n;var a,s=o[i-1];return null!=t&&i>=r.length?a=n.entries():(a=[],n.each(function(t,n){a.push({key:n,values:e(t,i)})})),null!=s?a.sort(function(e,t){return s(e.key,t.key)}):a}(i(e,0,ea,ta),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return o[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function $i(){return{}}function Zi(e,t,n){e[t]=n}function ea(){return Ji()}function ta(e,t,n){e.set(t,n)}function na(){}var ra=Ji.prototype;function oa(e,t){var n=new na;if(e instanceof na)e.each(function(e){n.add(e)});else if(e){var r=-1,o=e.length;if(null==t)for(;++rr!=p>r&&n<(f-u)*(r-l)/(p-l)+u&&(o=-o)}return o}function ma(e,t,n){var r,o,i,a;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(o=e[r=+(e[0]===t[0])],i=n[r],a=t[r],o<=i&&i<=a||a<=i&&i<=o)}var ba=function(){},ya=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],ga=function(){var e=1,t=1,n=T,r=s;function o(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(la);else{var r=b(e),o=r[0],a=r[1];t=L(o,a,t),t=w(Math.floor(o/t)*t,Math.floor(a/t)*t,t)}return t.map(function(t){return i(e,t)})}function i(n,o){var i=[],s=[];return function(n,r,o){var i,s,c,u,l,d,f=new Array,p=new Array;i=s=-1,u=n[0]>=r,ya[u<<1].forEach(h);for(;++i=r,ya[c|u<<1].forEach(h);ya[u<<0].forEach(h);for(;++s=r,l=n[s*e]>=r,ya[u<<1|l<<2].forEach(h);++i=r,d=l,l=n[s*e+i+1]>=r,ya[c|u<<1|l<<2|d<<3].forEach(h);ya[u|l<<3].forEach(h)}i=-1,l=n[s*e]>=r,ya[l<<2].forEach(h);for(;++i=r,ya[l<<2|d<<3].forEach(h);function h(e){var t,n,r=[e[0][0]+i,e[0][1]+s],c=[e[1][0]+i,e[1][1]+s],u=a(r),l=a(c);(t=p[u])?(n=f[l])?(delete p[t.end],delete f[n.start],t===n?(t.ring.push(c),o(t.ring)):f[t.start]=p[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete p[t.end],t.ring.push(c),p[t.end=l]=t):(t=f[l])?(n=p[u])?(delete f[t.start],delete p[n.end],t===n?(t.ring.push(c),o(t.ring)):f[n.start]=p[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete f[t.start],t.ring.unshift(r),f[t.start=u]=t):f[u]=p[l]={start:u,end:l,ring:[r,c]}}ya[l<<3].forEach(h)}(n,o,function(e){r(e,n,o),da(e)>0?i.push([e]):s.push(e)}),s.forEach(function(e){for(var t,n=0,r=i.length;n0&&a0&&s0&&i>0))throw new Error("invalid size");return e=r,t=i,o},o.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?fa(ua.call(e)):fa(e),o):n},o.smooth=function(e){return arguments.length?(r=e?s:ba,o):r===s},o};function va(e,t,n){for(var r=e.width,o=e.height,i=1+(n<<1),a=0;a=n&&(s>=i&&(c-=e.data[s-i+a*r]),t.data[s-n+a*r]=c/Math.min(s+1,r-1+i-s,i))}function _a(e,t,n){for(var r=e.width,o=e.height,i=1+(n<<1),a=0;a=n&&(s>=i&&(c-=e.data[a+(s-i)*r]),t.data[a+(s-n)*r]=c/Math.min(s+1,o-1+i-s,i))}function Ma(e){return e[0]}function wa(e){return e[1]}function xa(){return 1}var ka=function(){var e=Ma,t=wa,n=xa,r=960,o=500,i=20,a=2,s=3*i,c=r+2*s>>a,u=o+2*s>>a,l=fa(20);function d(r){var o=new Float32Array(c*u),d=new Float32Array(c*u);r.forEach(function(r,i,l){var d=+e(r,i,l)+s>>a,f=+t(r,i,l)+s>>a,p=+n(r,i,l);d>=0&&d=0&&f>a),_a({width:c,height:u,data:d},{width:c,height:u,data:o},i>>a),va({width:c,height:u,data:o},{width:c,height:u,data:d},i>>a),_a({width:c,height:u,data:d},{width:c,height:u,data:o},i>>a),va({width:c,height:u,data:o},{width:c,height:u,data:d},i>>a),_a({width:c,height:u,data:d},{width:c,height:u,data:o},i>>a);var p=l(o);if(!Array.isArray(p)){var h=z(o);p=L(0,h,p),(p=w(0,Math.floor(h/p)*p,p)).shift()}return ga().thresholds(p).size([c,u])(o).map(f)}function f(e){return e.value*=Math.pow(2,-2*a),e.coordinates.forEach(p),e}function p(e){e.forEach(h)}function h(e){e.forEach(m)}function m(e){e[0]=e[0]*Math.pow(2,a)-s,e[1]=e[1]*Math.pow(2,a)-s}function b(){return c=r+2*(s=3*i)>>a,u=o+2*s>>a,d}return d.x=function(t){return arguments.length?(e="function"==typeof t?t:fa(+t),d):e},d.y=function(e){return arguments.length?(t="function"==typeof e?e:fa(+e),d):t},d.weight=function(e){return arguments.length?(n="function"==typeof e?e:fa(+e),d):n},d.size=function(e){if(!arguments.length)return[r,o];var t=Math.ceil(e[0]),n=Math.ceil(e[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return r=t,o=n,b()},d.cellSize=function(e){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(e)/Math.LN2),b()},d.thresholds=function(e){return arguments.length?(l="function"==typeof e?e:Array.isArray(e)?fa(ua.call(e)):fa(e),d):l},d.bandwidth=function(e){if(!arguments.length)return Math.sqrt(i*(i+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return i=Math.round((Math.sqrt(4*e*e+1)-1)/2),b()},d},Aa={},Sa={},Oa=34,La=10,Ta=13;function Ea(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}")}function Da(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),n}function Pa(e,t){var n=e+"",r=n.length;return r9999?"+"+Pa(t,6):Pa(t,4))+"-"+Pa(e.getUTCMonth()+1,2)+"-"+Pa(e.getUTCDate(),2)+(i?"T"+Pa(n,2)+":"+Pa(r,2)+":"+Pa(o,2)+"."+Pa(i,3)+"Z":o?"T"+Pa(n,2)+":"+Pa(r,2)+":"+Pa(o,2)+"Z":r||n?"T"+Pa(n,2)+":"+Pa(r,2)+"Z":"")}var za=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,o=[],i=e.length,a=0,s=0,c=i<=0,u=!1;function l(){if(c)return Sa;if(u)return u=!1,Aa;var t,r,o=a;if(e.charCodeAt(o)===Oa){for(;a++=i?c=!0:(r=e.charCodeAt(a++))===La?u=!0:r===Ta&&(u=!0,e.charCodeAt(a)===La&&++a),e.slice(o+1,t-1).replace(/""/g,'"')}for(;a=(i=(m+y)/2))?m=i:y=i,(l=n>=(a=(b+g)/2))?b=a:g=a,o=p,!(p=p[d=l<<1|u]))return o[d]=h,e;if(s=+e._x.call(null,p.data),c=+e._y.call(null,p.data),t===s&&n===c)return h.next=p,o?o[d]=h:e._root=h,e;do{o=o?o[d]=new Array(4):e._root=new Array(4),(u=t>=(i=(m+y)/2))?m=i:y=i,(l=n>=(a=(b+g)/2))?b=a:g=a}while((d=l<<1|u)==(f=(c>=a)<<1|s>=i));return o[f]=p,o[d]=h,e}var ms=function(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o};function bs(e){return e[0]}function ys(e){return e[1]}function gs(e,t,n){var r=new vs(null==t?bs:t,null==n?ys:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function vs(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function _s(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Ms=gs.prototype=vs.prototype;function ws(e){return e.x+e.vx}function xs(e){return e.y+e.vy}Ms.copy=function(){var e,t,n=new vs(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=_s(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(4)}):r.target[o]=_s(t));return n},Ms.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return hs(this.cover(t,n),t,n,e)},Ms.addAll=function(e){var t,n,r,o,i=e.length,a=new Array(i),s=new Array(i),c=1/0,u=1/0,l=-1/0,d=-1/0;for(n=0;nl&&(l=r),od&&(d=o));if(c>l||u>d)return this;for(this.cover(c,u).cover(l,d),n=0;ne||e>=o||r>t||t>=i;)switch(s=(tf||(i=c.y0)>p||(a=c.x1)=y)<<1|e>=b)&&(c=h[h.length-1],h[h.length-1]=h[h.length-1-u],h[h.length-1-u]=c)}else{var g=e-+this._x.call(null,m.data),v=t-+this._y.call(null,m.data),_=g*g+v*v;if(_=(s=(h+b)/2))?h=s:b=s,(l=a>=(c=(m+y)/2))?m=c:y=c,t=p,!(p=p[d=l<<1|u]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,f=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):t?(o?t[d]=o:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[f]=p:this._root=p),this):(this._root=o,this)},Ms.removeAll=function(e){for(var t=0,n=e.length;tc+p||ou+p||is.index){var h=c-a.x-a.vx,m=u-a.y-a.vy,b=h*h+m*m;be.r&&(e.r=e[t].r)}function s(){if(t){var r,o,i=t.length;for(n=new Array(i),r=0;r1?(null==n?s.remove(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,r){var o,i,a,s,c,u=0,l=e.length;for(null==r?r=1/0:r*=r,u=0;u1?(u.on(e,n),t):u.on(e)}}},Cs=function(){var e,t,n,r,o=fs(-30),i=1,a=1/0,s=.81;function c(r){var o,i=e.length,a=gs(e,Ls,Ts).visitAfter(l);for(n=r,o=0;o=a)){(e.data!==t||e.next)&&(0===l&&(p+=(l=ps())*l),0===d&&(p+=(d=ps())*d),p1?r[0]+r.slice(2):r,+e.slice(n+1)]},Is=function(e){return(e=Rs(Math.abs(e)))?e[1]:NaN},Ys=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fs(e){return new Ws(e)}function Ws(e){if(!(t=Ys.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}Fs.prototype=Ws.prototype,Ws.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var qs,Bs,Hs,Xs,Vs=function(e){e:for(var t,n=e.length,r=1,o=-1;r0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e},Us=function(e,t){var n=Rs(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},Gs={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Us(100*e,t)},r:Us,s:function(e,t){var n=Rs(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(qs=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Rs(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Ks=function(e){return e},Js=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Qs=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(e.substring(o-=s,o+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}):Ks,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):Ks,s=e.percent||"%";function c(e){var t=(e=Fs(e)).fill,n=e.align,c=e.sign,u=e.symbol,l=e.zero,d=e.width,f=e.comma,p=e.precision,h=e.trim,m=e.type;"n"===m?(f=!0,m="g"):Gs[m]||(null==p&&(p=12),h=!0,m="g"),(l||"0"===t&&"="===n)&&(l=!0,t="0",n="=");var b="$"===u?o[0]:"#"===u&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",y="$"===u?o[1]:/[%p]/.test(m)?s:"",g=Gs[m],v=/[defgprs%]/.test(m);function _(e){var o,s,u,_=b,M=y;if("c"===m)M=g(e)+M,e="";else{var w=(e=+e)<0;if(e=g(Math.abs(e),p),h&&(e=Vs(e)),w&&0==+e&&(w=!1),_=(w?"("===c?c:"-":"-"===c||"("===c?"":c)+_,M=("s"===m?Js[8+qs/3]:"")+M+(w&&"("===c?")":""),v)for(o=-1,s=e.length;++o(u=e.charCodeAt(o))||u>57){M=(46===u?i+e.slice(o+1):e.slice(o))+M,e=e.slice(0,o);break}}f&&!l&&(e=r(e,1/0));var x=_.length+e.length+M.length,k=x>1)+_+e+M+k.slice(x);break;default:e=k+_+e+M}return a(e)}return p=null==p?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),_.toString=function(){return e+""},_}return{format:c,formatPrefix:function(e,t){var n=c(((e=Fs(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Is(t)/3))),o=Math.pow(10,-r),i=Js[8+r/3];return function(e){return n(o*e)+i}}}};function $s(e){return Bs=Qs(e),Hs=Bs.format,Xs=Bs.formatPrefix,Bs}$s({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Zs=function(e){return Math.max(0,-Is(Math.abs(e)))},ec=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Is(t)/3)))-Is(Math.abs(e)))},tc=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Is(t)-Is(e))+1},nc=function(){return new rc};function rc(){this.reset()}rc.prototype={constructor:rc,reset:function(){this.s=this.t=0},add:function(e){ic(oc,e,this.t),ic(this,oc.s,this.s),this.s?this.t+=oc.t:this.s=oc.t},valueOf:function(){return this.s}};var oc=new rc;function ic(e,t,n){var r=e.s=t+n,o=r-t,i=r-o;e.t=t-i+(n-o)}var ac=1e-6,sc=Math.PI,cc=sc/2,uc=sc/4,lc=2*sc,dc=180/sc,fc=sc/180,pc=Math.abs,hc=Math.atan,mc=Math.atan2,bc=Math.cos,yc=Math.ceil,gc=Math.exp,vc=(Math.floor,Math.log),_c=Math.pow,Mc=Math.sin,wc=Math.sign||function(e){return e>0?1:e<0?-1:0},xc=Math.sqrt,kc=Math.tan;function Ac(e){return e>1?0:e<-1?sc:Math.acos(e)}function Sc(e){return e>1?cc:e<-1?-cc:Math.asin(e)}function Oc(e){return(e=Mc(e/2))*e}function Lc(){}function Tc(e,t){e&&Dc.hasOwnProperty(e.type)&&Dc[e.type](e,t)}var Ec={Feature:function(e,t){Tc(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r=0?1:-1,o=r*n,i=bc(t=(t*=fc)/2+uc),a=Mc(t),s=Ic*a,c=Rc*i+s*bc(o),u=s*r*Mc(o);Fc.add(mc(u,c)),jc=e,Rc=i,Ic=a}var Uc=function(e){return Wc.reset(),Yc(e,qc),2*Wc};function Gc(e){return[mc(e[1],e[0]),Sc(e[2])]}function Kc(e){var t=e[0],n=e[1],r=bc(n);return[r*bc(t),r*Mc(t),Mc(n)]}function Jc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Qc(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function $c(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Zc(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function eu(e){var t=xc(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var tu,nu,ru,ou,iu,au,su,cu,uu,lu,du=nc(),fu={point:pu,lineStart:mu,lineEnd:bu,polygonStart:function(){fu.point=yu,fu.lineStart=gu,fu.lineEnd=vu,du.reset(),qc.polygonStart()},polygonEnd:function(){qc.polygonEnd(),fu.point=pu,fu.lineStart=mu,fu.lineEnd=bu,Fc<0?(tu=-(ru=180),nu=-(ou=90)):du>ac?ou=90:du<-ac&&(nu=-90),lu[0]=tu,lu[1]=ru}};function pu(e,t){uu.push(lu=[tu=e,ru=e]),tou&&(ou=t)}function hu(e,t){var n=Kc([e*fc,t*fc]);if(cu){var r=Qc(cu,n),o=Qc([r[1],-r[0],0],r);eu(o),o=Gc(o);var i,a=e-iu,s=a>0?1:-1,c=o[0]*dc*s,u=pc(a)>180;u^(s*iuou&&(ou=i):u^(s*iu<(c=(c+360)%360-180)&&cou&&(ou=t)),u?e_u(tu,ru)&&(ru=e):_u(e,ru)>_u(tu,ru)&&(tu=e):ru>=tu?(eru&&(ru=e)):e>iu?_u(tu,e)>_u(tu,ru)&&(ru=e):_u(e,ru)>_u(tu,ru)&&(tu=e)}else uu.push(lu=[tu=e,ru=e]);tou&&(ou=t),cu=n,iu=e}function mu(){fu.point=hu}function bu(){lu[0]=tu,lu[1]=ru,fu.point=pu,cu=null}function yu(e,t){if(cu){var n=e-iu;du.add(pc(n)>180?n+(n>0?360:-360):n)}else au=e,su=t;qc.point(e,t),hu(e,t)}function gu(){qc.lineStart()}function vu(){yu(au,su),qc.lineEnd(),pc(du)>ac&&(tu=-(ru=180)),lu[0]=tu,lu[1]=ru,cu=null}function _u(e,t){return(t-=e)<0?t+360:t}function Mu(e,t){return e[0]-t[0]}function wu(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t_u(r[0],r[1])&&(r[1]=o[1]),_u(o[0],r[1])>_u(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,t=0,r=i[n=i.length-1];t<=n;r=o,++t)o=i[t],(s=_u(r[1],o[0]))>a&&(a=s,tu=o[0],ru=r[1])}return uu=lu=null,tu===1/0||nu===1/0?[[NaN,NaN],[NaN,NaN]]:[[tu,nu],[ru,ou]]},Fu={sphere:Lc,point:Wu,lineStart:Bu,lineEnd:Vu,polygonStart:function(){Fu.lineStart=Uu,Fu.lineEnd=Gu},polygonEnd:function(){Fu.lineStart=Bu,Fu.lineEnd=Vu}};function Wu(e,t){e*=fc;var n=bc(t*=fc);qu(n*bc(e),n*Mc(e),Mc(t))}function qu(e,t,n){Au+=(e-Au)/++xu,Su+=(t-Su)/xu,Ou+=(n-Ou)/xu}function Bu(){Fu.point=Hu}function Hu(e,t){e*=fc;var n=bc(t*=fc);ju=n*bc(e),Ru=n*Mc(e),Iu=Mc(t),Fu.point=Xu,qu(ju,Ru,Iu)}function Xu(e,t){e*=fc;var n=bc(t*=fc),r=n*bc(e),o=n*Mc(e),i=Mc(t),a=mc(xc((a=Ru*i-Iu*o)*a+(a=Iu*r-ju*i)*a+(a=ju*o-Ru*r)*a),ju*r+Ru*o+Iu*i);ku+=a,Lu+=a*(ju+(ju=r)),Tu+=a*(Ru+(Ru=o)),Eu+=a*(Iu+(Iu=i)),qu(ju,Ru,Iu)}function Vu(){Fu.point=Wu}function Uu(){Fu.point=Ku}function Gu(){Ju(zu,Nu),Fu.point=Wu}function Ku(e,t){zu=e,Nu=t,e*=fc,t*=fc,Fu.point=Ju;var n=bc(t);ju=n*bc(e),Ru=n*Mc(e),Iu=Mc(t),qu(ju,Ru,Iu)}function Ju(e,t){e*=fc;var n=bc(t*=fc),r=n*bc(e),o=n*Mc(e),i=Mc(t),a=Ru*i-Iu*o,s=Iu*r-ju*i,c=ju*o-Ru*r,u=xc(a*a+s*s+c*c),l=Sc(u),d=u&&-l/u;Du+=d*a,Pu+=d*s,Cu+=d*c,ku+=l,Lu+=l*(ju+(ju=r)),Tu+=l*(Ru+(Ru=o)),Eu+=l*(Iu+(Iu=i)),qu(ju,Ru,Iu)}var Qu=function(e){xu=ku=Au=Su=Ou=Lu=Tu=Eu=Du=Pu=Cu=0,Yc(e,Fu);var t=Du,n=Pu,r=Cu,o=t*t+n*n+r*r;return o<1e-12&&(t=Lu,n=Tu,r=Eu,kusc?e+Math.round(-e/lc)*lc:e,t]}function tl(e,t,n){return(e%=lc)?t||n?Zu(rl(e),ol(t,n)):rl(e):t||n?ol(t,n):el}function nl(e){return function(t,n){return[(t+=e)>sc?t-lc:t<-sc?t+lc:t,n]}}function rl(e){var t=nl(e);return t.invert=nl(-e),t}function ol(e,t){var n=bc(e),r=Mc(e),o=bc(t),i=Mc(t);function a(e,t){var a=bc(t),s=bc(e)*a,c=Mc(e)*a,u=Mc(t),l=u*n+s*r;return[mc(c*o-l*i,s*n-u*r),Sc(l*o+c*i)]}return a.invert=function(e,t){var a=bc(t),s=bc(e)*a,c=Mc(e)*a,u=Mc(t),l=u*o-c*i;return[mc(c*o+u*i,s*n+l*r),Sc(l*n-s*r)]},a}el.invert=el;var il=function(e){function t(t){return(t=e(t[0]*fc,t[1]*fc))[0]*=dc,t[1]*=dc,t}return e=tl(e[0]*fc,e[1]*fc,e.length>2?e[2]*fc:0),t.invert=function(t){return(t=e.invert(t[0]*fc,t[1]*fc))[0]*=dc,t[1]*=dc,t},t};function al(e,t,n,r,o,i){if(n){var a=bc(t),s=Mc(t),c=r*n;null==o?(o=t+r*lc,i=t-c/2):(o=sl(a,o),i=sl(a,i),(r>0?oi)&&(o+=r*lc));for(var u,l=o;r>0?l>i:l1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},ll=function(e,t){return pc(e[0]-t[0])=0;--i)o.point((l=u[i])[0],l[1]);else r(f.x,f.p.x,-1,o);f=f.p}u=(f=f.o).z,p=!p}while(!f.v);o.lineEnd()}}};function pl(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r=0?1:-1,A=k*x,S=A>sc,O=m*M;if(hl.add(mc(O*k*Mc(A),b*w+O*bc(A))),a+=S?x+k*lc:x,S^p>=n^v>=n){var L=Qc(Kc(f),Kc(g));eu(L);var T=Qc(i,L);eu(T);var E=(S^x>=0?-1:1)*Sc(T[2]);(r>E||r===E&&(L[0]||L[1]))&&(s+=S^x>=0?1:-1)}}return(a<-ac||a0){for(d||(o.polygonStart(),d=!0),o.lineStart(),e=0;e1&&2&c&&f.push(f.pop().concat(f.shift())),a.push(f.filter(yl))}return f}};function yl(e){return e.length>1}function gl(e,t){return((e=e.x)[0]<0?e[1]-cc-ac:cc-e[1])-((t=t.x)[0]<0?t[1]-cc-ac:cc-t[1])}var vl=bl(function(){return!0},function(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var s=i>0?sc:-sc,c=pc(i-n);pc(c-sc)0?cc:-cc),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(i,r),t=0):o!==s&&c>=sc&&(pc(n-o)ac?hc((Mc(t)*(i=bc(r))*Mc(n)-Mc(r)*(o=bc(t))*Mc(e))/(o*i*a)):(t+r)/2}(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=i,r=a),o=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var o;if(null==e)o=n*cc,r.point(-sc,o),r.point(0,o),r.point(sc,o),r.point(sc,0),r.point(sc,-o),r.point(0,-o),r.point(-sc,-o),r.point(-sc,0),r.point(-sc,o);else if(pc(e[0]-t[0])>ac){var i=e[0]0,o=pc(t)>ac;function i(e,n){return bc(e)*bc(n)>t}function a(e,n,r){var o=[1,0,0],i=Qc(Kc(e),Kc(n)),a=Jc(i,i),s=i[0],c=a-s*s;if(!c)return!r&&e;var u=t*a/c,l=-t*s/c,d=Qc(o,i),f=Zc(o,u);$c(f,Zc(i,l));var p=d,h=Jc(f,p),m=Jc(p,p),b=h*h-m*(Jc(f,f)-1);if(!(b<0)){var y=xc(b),g=Zc(p,(-h-y)/m);if($c(g,f),g=Gc(g),!r)return g;var v,_=e[0],M=n[0],w=e[1],x=n[1];M<_&&(v=_,_=M,M=v);var k=M-_,A=pc(k-sc)0^g[1]<(pc(g[0]-_)sc^(_<=g[0]&&g[0]<=M)){var S=Zc(p,(-h+y)/m);return $c(S,f),[g,Gc(S)]}}}function s(t,n){var o=r?e:sc-e,i=0;return t<-o?i|=1:t>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return bl(i,function(e){var t,n,c,u,l;return{lineStart:function(){u=c=!1,l=1},point:function(d,f){var p,h=[d,f],m=i(d,f),b=r?m?0:s(d,f):m?s(d+(d<0?sc:-sc),f):0;if(!t&&(u=c=m)&&e.lineStart(),m!==c&&(!(p=a(t,h))||ll(t,p)||ll(h,p))&&(h[0]+=ac,h[1]+=ac,m=i(h[0],h[1])),m!==c)l=0,m?(e.lineStart(),p=a(h,t),e.point(p[0],p[1])):(p=a(t,h),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(o&&t&&r^m){var y;b&n||!(y=a(h,t,!0))||(l=0,r?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!m||t&&ll(t,h)||e.point(h[0],h[1]),t=h,c=m,n=b},lineEnd:function(){c&&e.lineEnd(),t=null},clean:function(){return l|(u&&c)<<1}}},function(t,r,o,i){al(i,e,n,o,t,r)},r?[0,-e]:[-sc,e-sc])},Ml=function(e,t,n,r,o,i){var a,s=e[0],c=e[1],u=0,l=1,d=t[0]-s,f=t[1]-c;if(a=n-s,d||!(a>0)){if(a/=d,d<0){if(a0){if(a>l)return;a>u&&(u=a)}if(a=o-s,d||!(a<0)){if(a/=d,d<0){if(a>l)return;a>u&&(u=a)}else if(d>0){if(a0)){if(a/=f,f<0){if(a0){if(a>l)return;a>u&&(u=a)}if(a=i-c,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>u&&(u=a)}else if(f>0){if(a0&&(e[0]=s+u*d,e[1]=c+u*f),l<1&&(t[0]=s+l*d,t[1]=c+l*f),!0}}}}},wl=1e9,xl=-wl;function kl(e,t,n,r){function o(o,i){return e<=o&&o<=n&&t<=i&&i<=r}function i(o,i,s,u){var l=0,d=0;if(null==o||(l=a(o,s))!==(d=a(i,s))||c(o,i)<0^s>0)do{u.point(0===l||3===l?e:n,l>1?r:t)}while((l=(l+s+4)%4)!==d);else u.point(i[0],i[1])}function a(r,o){return pc(r[0]-e)0?0:3:pc(r[0]-n)0?2:1:pc(r[1]-t)0?1:0:o>0?3:2}function s(e,t){return c(e.x,t.x)}function c(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var c,u,l,d,f,p,h,m,b,y,g,v=a,_=ul(),M={point:w,lineStart:function(){M.point=x,u&&u.push(l=[]);y=!0,b=!1,h=m=NaN},lineEnd:function(){c&&(x(d,f),p&&b&&_.rejoin(),c.push(_.result()));M.point=w,b&&v.lineEnd()},polygonStart:function(){v=_,c=[],u=[],g=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,o=u.length;nr&&(f-i)*(r-a)>(p-a)*(e-i)&&++t:p<=r&&(f-i)*(r-a)<(p-a)*(e-i)&&--t;return t}(),n=g&&t,o=(c=R(c)).length;(n||o)&&(a.polygonStart(),n&&(a.lineStart(),i(null,null,1,a),a.lineEnd()),o&&fl(c,s,t,i,a),a.polygonEnd());v=a,c=u=l=null}};function w(e,t){o(e,t)&&v.point(e,t)}function x(i,a){var s=o(i,a);if(u&&l.push([i,a]),y)d=i,f=a,p=s,y=!1,s&&(v.lineStart(),v.point(i,a));else if(s&&b)v.point(i,a);else{var c=[h=Math.max(xl,Math.min(wl,h)),m=Math.max(xl,Math.min(wl,m))],_=[i=Math.max(xl,Math.min(wl,i)),a=Math.max(xl,Math.min(wl,a))];Ml(c,_,e,t,n,r)?(b||(v.lineStart(),v.point(c[0],c[1])),v.point(_[0],_[1]),s||v.lineEnd(),g=!1):s&&(v.lineStart(),v.point(i,a),g=!1)}h=i,m=a,b=s}return M}}var Al,Sl,Ol,Ll=function(){var e,t,n,r=0,o=0,i=960,a=500;return n={stream:function(n){return e&&t===n?e:e=kl(r,o,i,a)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],o=+s[0][1],i=+s[1][0],a=+s[1][1],e=t=null,n):[[r,o],[i,a]]}}},Tl=nc(),El={sphere:Lc,point:Lc,lineStart:function(){El.point=Pl,El.lineEnd=Dl},lineEnd:Lc,polygonStart:Lc,polygonEnd:Lc};function Dl(){El.point=El.lineEnd=Lc}function Pl(e,t){Al=e*=fc,Sl=Mc(t*=fc),Ol=bc(t),El.point=Cl}function Cl(e,t){e*=fc;var n=Mc(t*=fc),r=bc(t),o=pc(e-Al),i=bc(o),a=r*Mc(o),s=Ol*n-Sl*r*i,c=Sl*n+Ol*r*i;Tl.add(mc(xc(a*a+s*s),c)),Al=e,Sl=n,Ol=r}var zl=function(e){return Tl.reset(),Yc(e,El),+Tl},Nl=[null,null],jl={type:"LineString",coordinates:Nl},Rl=function(e,t){return Nl[0]=e,Nl[1]=t,zl(jl)},Il={Feature:function(e,t){return Fl(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++rac}).map(c)).concat(w(yc(i/p)*p,o,p).filter(function(e){return pc(e%m)>ac}).map(u))}return y.lines=function(){return g().map(function(e){return{type:"LineString",coordinates:e}})},y.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(d(a).slice(1),l(n).reverse().slice(1),d(s).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.extentMajor(e).extentMinor(e):y.extentMinor()},y.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),y.precision(b)):[[r,s],[n,a]]},y.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],i=+n[0][1],o=+n[1][1],t>e&&(n=t,t=e,e=n),i>o&&(n=i,i=o,o=n),y.precision(b)):[[t,i],[e,o]]},y.step=function(e){return arguments.length?y.stepMajor(e).stepMinor(e):y.stepMinor()},y.stepMajor=function(e){return arguments.length?(h=+e[0],m=+e[1],y):[h,m]},y.stepMinor=function(e){return arguments.length?(f=+e[0],p=+e[1],y):[f,p]},y.precision=function(f){return arguments.length?(b=+f,c=Ul(i,o,90),u=Gl(t,e,b),l=Ul(s,a,90),d=Gl(r,n,b),y):b},y.extentMajor([[-180,-90+ac],[180,90-ac]]).extentMinor([[-180,-80-ac],[180,80+ac]])}function Jl(){return Kl()()}var Ql,$l,Zl,ed,td=function(e,t){var n=e[0]*fc,r=e[1]*fc,o=t[0]*fc,i=t[1]*fc,a=bc(r),s=Mc(r),c=bc(i),u=Mc(i),l=a*bc(n),d=a*Mc(n),f=c*bc(o),p=c*Mc(o),h=2*Sc(xc(Oc(i-r)+a*c*Oc(o-n))),m=Mc(h),b=h?function(e){var t=Mc(e*=h)/m,n=Mc(h-e)/m,r=n*l+t*f,o=n*d+t*p,i=n*s+t*u;return[mc(o,r)*dc,mc(i,xc(r*r+o*o))*dc]}:function(){return[n*dc,r*dc]};return b.distance=h,b},nd=function(e){return e},rd=nc(),od=nc(),id={point:Lc,lineStart:Lc,lineEnd:Lc,polygonStart:function(){id.lineStart=ad,id.lineEnd=ud},polygonEnd:function(){id.lineStart=id.lineEnd=id.point=Lc,rd.add(pc(od)),od.reset()},result:function(){var e=rd/2;return rd.reset(),e}};function ad(){id.point=sd}function sd(e,t){id.point=cd,Ql=Zl=e,$l=ed=t}function cd(e,t){od.add(ed*e-Zl*t),Zl=e,ed=t}function ud(){cd(Ql,$l)}var ld=id,dd=1/0,fd=dd,pd=-dd,hd=pd;var md,bd,yd,gd,vd={point:function(e,t){epd&&(pd=e);thd&&(hd=t)},lineStart:Lc,lineEnd:Lc,polygonStart:Lc,polygonEnd:Lc,result:function(){var e=[[dd,fd],[pd,hd]];return pd=hd=-(fd=dd=1/0),e}},_d=0,Md=0,wd=0,xd=0,kd=0,Ad=0,Sd=0,Od=0,Ld=0,Td={point:Ed,lineStart:Dd,lineEnd:zd,polygonStart:function(){Td.lineStart=Nd,Td.lineEnd=jd},polygonEnd:function(){Td.point=Ed,Td.lineStart=Dd,Td.lineEnd=zd},result:function(){var e=Ld?[Sd/Ld,Od/Ld]:Ad?[xd/Ad,kd/Ad]:wd?[_d/wd,Md/wd]:[NaN,NaN];return _d=Md=wd=xd=kd=Ad=Sd=Od=Ld=0,e}};function Ed(e,t){_d+=e,Md+=t,++wd}function Dd(){Td.point=Pd}function Pd(e,t){Td.point=Cd,Ed(yd=e,gd=t)}function Cd(e,t){var n=e-yd,r=t-gd,o=xc(n*n+r*r);xd+=o*(yd+e)/2,kd+=o*(gd+t)/2,Ad+=o,Ed(yd=e,gd=t)}function zd(){Td.point=Ed}function Nd(){Td.point=Rd}function jd(){Id(md,bd)}function Rd(e,t){Td.point=Id,Ed(md=yd=e,bd=gd=t)}function Id(e,t){var n=e-yd,r=t-gd,o=xc(n*n+r*r);xd+=o*(yd+e)/2,kd+=o*(gd+t)/2,Ad+=o,Sd+=(o=gd*e-yd*t)*(yd+e),Od+=o*(gd+t),Ld+=3*o,Ed(yd=e,gd=t)}var Yd=Td;function Fd(e){this._context=e}Fd.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,lc)}},result:Lc};var Wd,qd,Bd,Hd,Xd,Vd=nc(),Ud={point:Lc,lineStart:function(){Ud.point=Gd},lineEnd:function(){Wd&&Kd(qd,Bd),Ud.point=Lc},polygonStart:function(){Wd=!0},polygonEnd:function(){Wd=null},result:function(){var e=+Vd;return Vd.reset(),e}};function Gd(e,t){Ud.point=Kd,qd=Hd=e,Bd=Xd=t}function Kd(e,t){Hd-=e,Xd-=t,Vd.add(xc(Hd*Hd+Xd*Xd)),Hd=e,Xd=t}var Jd=Ud;function Qd(){this._string=[]}function $d(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Qd.prototype={_radius:4.5,_circle:$d(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=$d(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var Zd=function(e,t){var n,r,o=4.5;function i(e){return e&&("function"==typeof o&&r.pointRadius(+o.apply(this,arguments)),Yc(e,n(r))),r.result()}return i.area=function(e){return Yc(e,n(ld)),ld.result()},i.measure=function(e){return Yc(e,n(Jd)),Jd.result()},i.bounds=function(e){return Yc(e,n(vd)),vd.result()},i.centroid=function(e){return Yc(e,n(Yd)),Yd.result()},i.projection=function(t){return arguments.length?(n=null==t?(e=null,nd):(e=t).stream,i):e},i.context=function(e){return arguments.length?(r=null==e?(t=null,new Qd):new Fd(t=e),"function"!=typeof o&&r.pointRadius(o),i):t},i.pointRadius=function(e){return arguments.length?(o="function"==typeof e?e:(r.pointRadius(+e),+e),i):o},i.projection(e).context(t)},ef=function(e){return{stream:tf(e)}};function tf(e){return function(t){var n=new nf;for(var r in e)n[r]=e[r];return n.stream=t,n}}function nf(){}function rf(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Yc(n,e.stream(vd)),t(vd.result()),null!=r&&e.clipExtent(r),e}function of(e,t,n){return rf(e,function(n){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],i=Math.min(r/(n[1][0]-n[0][0]),o/(n[1][1]-n[0][1])),a=+t[0][0]+(r-i*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(o-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,s])},n)}function af(e,t,n){return of(e,[[0,0],t],n)}function sf(e,t,n){return rf(e,function(n){var r=+t,o=r/(n[1][0]-n[0][0]),i=(r-o*(n[1][0]+n[0][0]))/2,a=-o*n[0][1];e.scale(150*o).translate([i,a])},n)}function cf(e,t,n){return rf(e,function(n){var r=+t,o=r/(n[1][1]-n[0][1]),i=-o*n[0][0],a=(r-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([i,a])},n)}nf.prototype={constructor:nf,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var uf=16,lf=bc(30*fc),df=function(e,t){return+t?function(e,t){function n(r,o,i,a,s,c,u,l,d,f,p,h,m,b){var y=u-r,g=l-o,v=y*y+g*g;if(v>4*t&&m--){var _=a+f,M=s+p,w=c+h,x=xc(_*_+M*M+w*w),k=Sc(w/=x),A=pc(pc(w)-1)t||pc((y*T+g*E)/v-.5)>.3||a*f+s*p+c*h2?e[2]%360*fc:0,O()):[b*dc,y*dc,g*dc]},A.angle=function(e){return arguments.length?(v=e%360*fc,O()):v*dc},A.precision=function(e){return arguments.length?(a=df(s,k=e*e),L()):xc(k)},A.fitExtent=function(e,t){return of(A,e,t)},A.fitSize=function(e,t){return af(A,e,t)},A.fitWidth=function(e,t){return sf(A,e,t)},A.fitHeight=function(e,t){return cf(A,e,t)},function(){return t=e.apply(this,arguments),A.invert=t.invert&&S,O()}}function bf(e){var t=0,n=sc/3,r=mf(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*fc,n=e[1]*fc):[t*dc,n*dc]},o}function yf(e,t){var n=Mc(e),r=(n+Mc(t))/2;if(pc(r)=.12&&o<.234&&r>=-.425&&r<-.214?s:o>=.166&&o<.234&&r>=-.214&&r<-.115?c:a).invert(e)},l.stream=function(n){return e&&t===n?e:(r=[a.stream(t=n),s.stream(n),c.stream(n)],o=r.length,e={point:function(e,t){for(var n=-1;++n0?t<-cc+ac&&(t=-cc+ac):t>cc-ac&&(t=cc-ac);var n=o/_c(Ef(t),r);return[n*Mc(r*e),o-n*bc(r*e)]}return i.invert=function(e,t){var n=o-t,i=wc(r)*xc(e*e+n*n);return[mc(e,pc(n))/r*wc(n),2*hc(_c(o/i,1/r))-cc]},i}var Pf=function(){return bf(Df).scale(109.5).parallels([30,30])};function Cf(e,t){return[e,t]}Cf.invert=Cf;var zf=function(){return hf(Cf).scale(152.63)};function Nf(e,t){var n=bc(e),r=e===t?Mc(e):(n-bc(t))/(t-e),o=n/r+e;if(pc(r)ac&&--o>0);return[e/(.8707+(i=r*r)*(i*(i*i*i*(.003971-.001529*i)-.013791)-.131979)),r]};var Kf=function(){return hf(Gf).scale(175.295)};function Jf(e,t){return[bc(t)*Mc(e),Mc(t)]}Jf.invert=wf(Sc);var Qf=function(){return hf(Jf).scale(249.5).clipAngle(90+ac)};function $f(e,t){var n=bc(t),r=1+bc(e)*n;return[n*Mc(e)/r,Mc(t)/r]}$f.invert=wf(function(e){return 2*hc(e)});var Zf=function(){return hf($f).scale(250).clipAngle(142)};function ep(e,t){return[vc(kc((cc+t)/2)),-e]}ep.invert=function(e,t){return[-t,2*hc(gc(e))-cc]};var tp=function(){var e=Tf(ep),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)};function np(e,t){return e.parent===t.parent?1:2}function rp(e,t){return e+t.x}function op(e,t){return Math.max(e,t.y)}var ip=function(){var e=np,t=1,n=1,r=!1;function o(o){var i,a=0;o.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(rp,0)/e.length}(n),t.y=function(e){return 1+e.reduce(op,0)}(n)):(t.x=i?a+=e(t,i):0,t.y=0,i=t)});var s=function(e){for(var t;t=e.children;)e=t[0];return e}(o),c=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(o),u=s.x-e(s,c)/2,l=c.x+e(c,s)/2;return o.eachAfter(r?function(e){e.x=(e.x-o.x)*t,e.y=(o.y-e.y)*n}:function(e){e.x=(e.x-u)/(l-u)*t,e.y=(1-(o.y?e.y/o.y:1))*n})}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o};function ap(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function sp(e,t){var n,r,o,i,a,s=new dp(e),c=+e.value&&(s.value=e.value),u=[s];for(null==t&&(t=cp);n=u.pop();)if(c&&(n.value=+n.data.value),(o=t(n.data))&&(a=o.length))for(n.children=new Array(a),i=a-1;i>=0;--i)u.push(r=n.children[i]=new dp(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(lp)}function cp(e){return e.children}function up(e){e.data=e.data.data}function lp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function dp(e){this.data=e,this.depth=this.height=0,this.parent=null}dp.prototype=sp.prototype={constructor:dp,count:function(){return this.eachAfter(ap)},each:function(e){var t,n,r,o,i=this,a=[i];do{for(t=a.reverse(),a=[];i=t.pop();)if(e(i),n=i.children)for(r=0,o=n.length;r=0;--n)o.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return sp(this).eachBefore(up)}};var fp=Array.prototype.slice;var pp=function(e){for(var t,n,r=0,o=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(fp.call(e))).length,i=[];r0&&n*n>r*r+o*o}function yp(e,t){for(var n=0;n(a*=a)?(r=(u+a-o)/(2*u),i=Math.sqrt(Math.max(0,a/u-r*r)),n.x=e.x-r*s-i*c,n.y=e.y-r*c+i*s):(r=(u+o-a)/(2*u),i=Math.sqrt(Math.max(0,o/u-r*r)),n.x=t.x+r*s-i*c,n.y=t.y+r*c+i*s)):(n.x=t.x+n.r,n.y=t.y)}function wp(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,o=t.y-e.y;return n>0&&n*n>r*r+o*o}function xp(e){var t=e._,n=e.next._,r=t.r+n.r,o=(t.x*n.r+n.x*t.r)/r,i=(t.y*n.r+n.y*t.r)/r;return o*o+i*i}function kp(e){this._=e,this.next=null,this.previous=null}function Ap(e){if(!(o=e.length))return 0;var t,n,r,o,i,a,s,c,u,l,d;if((t=e[0]).x=0,t.y=0,!(o>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(o>2))return t.r+n.r;Mp(n,t,r=e[2]),t=new kp(t),n=new kp(n),r=new kp(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s0)throw new Error("cycle");return i}return n.id=function(t){return arguments.length?(e=Op(t),n):e},n.parentId=function(e){return arguments.length?(t=Op(e),n):t},n};function Hp(e,t){return e.parent===t.parent?1:2}function Xp(e){var t=e.children;return t?t[0]:e.t}function Vp(e){var t=e.children;return t?t[t.length-1]:e.t}function Up(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Gp(e,t,n){return e.a.parent===t.parent?e.a:n}function Kp(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Kp.prototype=Object.create(dp.prototype);var Jp=function(){var e=Hp,t=1,n=1,r=null;function o(o){var c=function(e){for(var t,n,r,o,i,a=new Kp(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(i=r.length),o=i-1;o>=0;--o)s.push(n=t.children[o]=new Kp(r[o],o)),n.parent=t;return(a.parent=new Kp(null,0)).children=[a],a}(o);if(c.eachAfter(i),c.parent.m=-c.z,c.eachBefore(a),r)o.eachBefore(s);else{var u=o,l=o,d=o;o.eachBefore(function(e){e.xl.x&&(l=e),e.depth>d.depth&&(d=e)});var f=u===l?1:e(u,l)/2,p=f-u.x,h=t/(l.x+f+p),m=n/(d.depth||1);o.eachBefore(function(e){e.x=(e.x+p)*h,e.y=e.depth*m})}return o}function i(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)(t=o[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var i=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-i):t.z=i}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,i=t,a=t,s=n,c=i.parent.children[0],u=i.m,l=a.m,d=s.m,f=c.m;s=Vp(s),i=Xp(i),s&&i;)c=Xp(c),(a=Vp(a)).a=t,(o=s.z+d-i.z-u+e(s._,i._))>0&&(Up(Gp(s,t,r),t,o),u+=o,l+=o),d+=s.m,u+=i.m,f+=c.m,l+=a.m;s&&!Vp(a)&&(a.t=s,a.m+=d-l),i&&!Xp(c)&&(c.t=i,c.m+=u-f,r=t)}return r}(t,o,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o},Qp=function(e,t,n,r,o){for(var i,a=e.children,s=-1,c=a.length,u=e.value&&(o-n)/e.value;++sf&&(f=s),b=l*l*m,(p=Math.max(f/b,b/d))>h){l-=s;break}h=p}y.push(a={value:l,dice:c1?t:1)},n}($p),th=function(){var e=eh,t=!1,n=1,r=1,o=[0],i=Lp,a=Lp,s=Lp,c=Lp,u=Lp;function l(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),o=[0],t&&e.eachBefore(Np),e}function d(t){var n=o[t.depth],r=t.x0+n,l=t.y0+n,d=t.x1-n,f=t.y1-n;d=n-1){var l=s[t];return l.x0=o,l.y0=i,l.x1=a,void(l.y1=c)}var d=u[t],f=r/2+d,p=t+1,h=n-1;for(;p>>1;u[m]c-i){var g=(o*y+a*b)/r;e(t,p,b,o,i,g,c),e(p,n,y,g,i,a,c)}else{var v=(i*y+c*b)/r;e(t,p,b,o,i,a,v),e(p,n,y,o,v,a,c)}}(0,c,e.value,t,n,r,o)},rh=function(e,t,n,r,o){(1&e.depth?Qp:jp)(e,t,n,r,o)},oh=function e(t){function n(e,n,r,o,i){if((a=e._squarify)&&a.ratio===t)for(var a,s,c,u,l,d=-1,f=a.length,p=e.value;++d1?t:1)},n}($p),ih=function(e){for(var t,n=-1,r=e.length,o=e[r-1],i=0;++n1&&sh(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}var lh=function(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),o=new Array(n);for(t=0;t=0;--t)u.push(e[r[i[t]][2]]);for(t=+s;ts!=u>s&&a<(c-n)*(s-r)/(u-r)+n&&(l=!l),c=n,u=r;return l},fh=function(e){for(var t,n,r=-1,o=e.length,i=e[o-1],a=i[0],s=i[1],c=0;++r1);return e+n*i*Math.sqrt(-2*Math.log(o)/o)}}return n.source=e,n}(ph),bh=function e(t){function n(){var e=mh.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(ph),yh=function e(t){function n(e){return function(){for(var n=0,r=0;rr&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Nh(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?jh:Nh,o=i=null,d}function d(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(u(t)))}return d.invert=function(n){return u(t((i||(i=r(s,a.map(e),Yn)))(n)))},d.domain=function(e){return arguments.length?(a=xh.call(e,Eh),u===Ph||(u=zh(a)),l()):a.slice()},d.range=function(e){return arguments.length?(s=kh.call(e),l()):s.slice()},d.rangeRound=function(e){return s=kh.call(e),c=Qn,l()},d.clamp=function(e){return arguments.length?(u=e?zh(a):Ph,d):u!==Ph},d.interpolate=function(e){return arguments.length?(c=e,l()):c},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,l()}}function Yh(e,t){return Ih()(e,t)}var Fh=function(e,t,n,r){var o,i=L(e,t,n);switch((r=Fs(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=ec(i,a))||(r.precision=o),Xs(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=tc(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Zs(i))||(r.precision=o-2*("%"===r.type))}return Hs(r)};function Wh(e){var t=e.domain;return e.ticks=function(e){var n=t();return S(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Fh(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],c=o[a];return c0?r=O(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=O(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(c/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(c*r)/r,t(o)),e},e}function qh(){var e=Yh(Ph,Ph);return e.copy=function(){return Rh(e,qh())},_h.apply(e,arguments),Wh(e)}function Bh(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=xh.call(t,Eh),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Bh(e).unknown(t)},e=arguments.length?xh.call(e,Eh):[0,1],Wh(n)}var Hh=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;fc)break;m.push(d)}}else for(;f=1;--l)if(!((d=u*l)c)break;m.push(d)}}else m=S(f,p,Math.min(p-f,h)).map(n);return r?m.reverse():m},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=Hs(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i0?o[r-1]:t[0],r=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return lm().domain([t,n]).range(i).unknown(e)},_h.apply(Wh(a),arguments)}function dm(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[c(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=kh.call(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=kh.call(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return dm().domain(t).range(n).unknown(e)},_h.apply(o,arguments)}var fm=new Date,pm=new Date;function hm(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(o.count=function(t,r){return fm.setTime(+t),pm.setTime(+r),e(fm),e(pm),Math.floor(n(fm,pm))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var mm=hm(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});mm.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?hm(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):mm:null};var bm=mm,ym=mm.range,gm=6e4,vm=6048e5,_m=hm(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),Mm=_m,wm=_m.range,xm=hm(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+t*gm)},function(e,t){return(t-e)/gm},function(e){return e.getMinutes()}),km=xm,Am=xm.range,Sm=hm(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*gm)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()}),Om=Sm,Lm=Sm.range,Tm=hm(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*gm)/864e5},function(e){return e.getDate()-1}),Em=Tm,Dm=Tm.range;function Pm(e){return hm(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*gm)/vm})}var Cm=Pm(0),zm=Pm(1),Nm=Pm(2),jm=Pm(3),Rm=Pm(4),Im=Pm(5),Ym=Pm(6),Fm=Cm.range,Wm=zm.range,qm=Nm.range,Bm=jm.range,Hm=Rm.range,Xm=Im.range,Vm=Ym.range,Um=hm(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),Gm=Um,Km=Um.range,Jm=hm(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Jm.every=function(e){return isFinite(e=Math.floor(e))&&e>0?hm(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var Qm=Jm,$m=Jm.range,Zm=hm(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*gm)},function(e,t){return(t-e)/gm},function(e){return e.getUTCMinutes()}),eb=Zm,tb=Zm.range,nb=hm(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),rb=nb,ob=nb.range,ib=hm(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}),ab=ib,sb=ib.range;function cb(e){return hm(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/vm})}var ub=cb(0),lb=cb(1),db=cb(2),fb=cb(3),pb=cb(4),hb=cb(5),mb=cb(6),bb=ub.range,yb=lb.range,gb=db.range,vb=fb.range,_b=pb.range,Mb=hb.range,wb=mb.range,xb=hm(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),kb=xb,Ab=xb.range,Sb=hm(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Sb.every=function(e){return isFinite(e=Math.floor(e))&&e>0?hm(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var Ob=Sb,Lb=Sb.range;function Tb(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Eb(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Db(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function Pb(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=Hb(o),l=Xb(o),d=Hb(i),f=Xb(i),p=Hb(a),h=Xb(a),m=Hb(s),b=Xb(s),y=Hb(c),g=Xb(c),v={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:dy,e:dy,f:by,H:fy,I:py,j:hy,L:my,m:yy,M:gy,p:function(e){return o[+(e.getHours()>=12)]},Q:Vy,s:Uy,S:vy,u:_y,U:My,V:wy,w:xy,W:ky,x:null,X:null,y:Ay,Y:Sy,Z:Oy,"%":Xy},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Ly,e:Ly,f:Cy,H:Ty,I:Ey,j:Dy,L:Py,m:zy,M:Ny,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Vy,s:Uy,S:jy,u:Ry,U:Iy,V:Yy,w:Fy,W:Wy,x:null,X:null,y:qy,Y:By,Z:Hy,"%":Xy},M={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=b[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:ty,e:ty,f:sy,H:ry,I:ry,j:ny,L:ay,m:ey,M:oy,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=l[r[0].toLowerCase()],n+r[0].length):-1},Q:uy,s:ly,S:iy,u:Ub,U:Gb,V:Kb,w:Vb,W:Jb,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:$b,Y:Qb,Z:Zb,"%":cy};function w(e,t){return function(n){var r,o,i,a=[],s=-1,c=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Eb(Db(i.y))).getUTCDay(),r=o>4||0===o?lb.ceil(r):lb(r),r=ab.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(Db(i.y))).getDay(),r=o>4||0===o?zm.ceil(r):zm(r),r=Em.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Eb(Db(i.y)).getUTCDay():t(Db(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Eb(i)):t(i)}}function k(e,t,n,r){for(var o,i,a=0,s=t.length,c=n.length;a=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=M[o in Ib?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return v.x=w(n,v),v.X=w(r,v),v.c=w(t,v),_.x=w(n,_),_.X=w(r,_),_.c=w(t,_),{format:function(e){var t=w(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",Tb);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e,Eb);return t.toString=function(){return e},t}}}var Cb,zb,Nb,jb,Rb,Ib={"-":"",_:" ",0:"0"},Yb=/^\s*\d+/,Fb=/^%/,Wb=/[\\^$*+?|[\]().{}]/g;function qb(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function Zb(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ey(e,t,n){var r=Yb.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ty(e,t,n){var r=Yb.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ny(e,t,n){var r=Yb.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ry(e,t,n){var r=Yb.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function oy(e,t,n){var r=Yb.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function iy(e,t,n){var r=Yb.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ay(e,t,n){var r=Yb.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function sy(e,t,n){var r=Yb.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function cy(e,t,n){var r=Fb.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function uy(e,t,n){var r=Yb.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ly(e,t,n){var r=Yb.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function dy(e,t){return qb(e.getDate(),t,2)}function fy(e,t){return qb(e.getHours(),t,2)}function py(e,t){return qb(e.getHours()%12||12,t,2)}function hy(e,t){return qb(1+Em.count(Qm(e),e),t,3)}function my(e,t){return qb(e.getMilliseconds(),t,3)}function by(e,t){return my(e,t)+"000"}function yy(e,t){return qb(e.getMonth()+1,t,2)}function gy(e,t){return qb(e.getMinutes(),t,2)}function vy(e,t){return qb(e.getSeconds(),t,2)}function _y(e){var t=e.getDay();return 0===t?7:t}function My(e,t){return qb(Cm.count(Qm(e),e),t,2)}function wy(e,t){var n=e.getDay();return e=n>=4||0===n?Rm(e):Rm.ceil(e),qb(Rm.count(Qm(e),e)+(4===Qm(e).getDay()),t,2)}function xy(e){return e.getDay()}function ky(e,t){return qb(zm.count(Qm(e),e),t,2)}function Ay(e,t){return qb(e.getFullYear()%100,t,2)}function Sy(e,t){return qb(e.getFullYear()%1e4,t,4)}function Oy(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+qb(t/60|0,"0",2)+qb(t%60,"0",2)}function Ly(e,t){return qb(e.getUTCDate(),t,2)}function Ty(e,t){return qb(e.getUTCHours(),t,2)}function Ey(e,t){return qb(e.getUTCHours()%12||12,t,2)}function Dy(e,t){return qb(1+ab.count(Ob(e),e),t,3)}function Py(e,t){return qb(e.getUTCMilliseconds(),t,3)}function Cy(e,t){return Py(e,t)+"000"}function zy(e,t){return qb(e.getUTCMonth()+1,t,2)}function Ny(e,t){return qb(e.getUTCMinutes(),t,2)}function jy(e,t){return qb(e.getUTCSeconds(),t,2)}function Ry(e){var t=e.getUTCDay();return 0===t?7:t}function Iy(e,t){return qb(ub.count(Ob(e),e),t,2)}function Yy(e,t){var n=e.getUTCDay();return e=n>=4||0===n?pb(e):pb.ceil(e),qb(pb.count(Ob(e),e)+(4===Ob(e).getUTCDay()),t,2)}function Fy(e){return e.getUTCDay()}function Wy(e,t){return qb(lb.count(Ob(e),e),t,2)}function qy(e,t){return qb(e.getUTCFullYear()%100,t,2)}function By(e,t){return qb(e.getUTCFullYear()%1e4,t,4)}function Hy(){return"+0000"}function Xy(){return"%"}function Vy(e){return+e}function Uy(e){return Math.floor(+e/1e3)}function Gy(e){return Cb=Pb(e),zb=Cb.format,Nb=Cb.parse,jb=Cb.utcFormat,Rb=Cb.utcParse,Cb}Gy({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ky=Date.prototype.toISOString?function(e){return e.toISOString()}:jb("%Y-%m-%dT%H:%M:%S.%LZ");var Jy=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:Rb("%Y-%m-%dT%H:%M:%S.%LZ"),Qy=1e3,$y=60*Qy,Zy=60*$y,eg=24*Zy,tg=7*eg,ng=30*eg,rg=365*eg;function og(e){return new Date(e)}function ig(e){return e instanceof Date?+e:+new Date(+e)}function ag(e,t,n,r,i,a,s,c,u){var l=Yh(Ph,Ph),d=l.invert,f=l.domain,p=u(".%L"),h=u(":%S"),m=u("%I:%M"),b=u("%I %p"),y=u("%a %d"),g=u("%b %d"),v=u("%B"),_=u("%Y"),M=[[s,1,Qy],[s,5,5*Qy],[s,15,15*Qy],[s,30,30*Qy],[a,1,$y],[a,5,5*$y],[a,15,15*$y],[a,30,30*$y],[i,1,Zy],[i,3,3*Zy],[i,6,6*Zy],[i,12,12*Zy],[r,1,eg],[r,2,2*eg],[n,1,tg],[t,1,ng],[t,3,3*ng],[e,1,rg]];function w(o){return(s(o)1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Rv.h=360*e-100,Rv.s=1.5-1.5*t,Rv.l=.8-.9*t,Rv+""},Yv=qt(),Fv=Math.PI/3,Wv=2*Math.PI/3,qv=function(e){var t;return e=(.5-e)*Math.PI,Yv.r=255*(t=Math.sin(e))*t,Yv.g=255*(t=Math.sin(e+Fv))*t,Yv.b=255*(t=Math.sin(e+Wv))*t,Yv+""};function Bv(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var Hv=Bv(xg("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Xv=Bv(xg("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Vv=Bv(xg("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Uv=Bv(xg("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Gv=function(e){return function(){return e}},Kv=Math.abs,Jv=Math.atan2,Qv=Math.cos,$v=Math.max,Zv=Math.min,e_=Math.sin,t_=Math.sqrt,n_=1e-12,r_=Math.PI,o_=r_/2,i_=2*r_;function a_(e){return e>=1?o_:e<=-1?-o_:Math.asin(e)}function s_(e){return e.innerRadius}function c_(e){return e.outerRadius}function u_(e){return e.startAngle}function l_(e){return e.endAngle}function d_(e){return e&&e.padAngle}function f_(e,t,n,r,o,i,a){var s=e-n,c=t-r,u=(a?i:-i)/t_(s*s+c*c),l=u*c,d=-u*s,f=e+l,p=t+d,h=n+l,m=r+d,b=(f+h)/2,y=(p+m)/2,g=h-f,v=m-p,_=g*g+v*v,M=o-i,w=f*m-h*p,x=(v<0?-1:1)*t_($v(0,M*M*_-w*w)),k=(w*v-g*x)/_,A=(-w*g-v*x)/_,S=(w*v+g*x)/_,O=(-w*g+v*x)/_,L=k-b,T=A-y,E=S-b,D=O-y;return L*L+T*T>E*E+D*D&&(k=S,A=O),{cx:k,cy:A,x01:-l,y01:-d,x11:k*(o/M-1),y11:A*(o/M-1)}}var p_=function(){var e=s_,t=c_,n=Gv(0),r=null,o=u_,i=l_,a=d_,s=null;function c(){var c,u,l,d=+e.apply(this,arguments),f=+t.apply(this,arguments),p=o.apply(this,arguments)-o_,h=i.apply(this,arguments)-o_,m=Kv(h-p),b=h>p;if(s||(s=c=Wi()),fn_)if(m>i_-n_)s.moveTo(f*Qv(p),f*e_(p)),s.arc(0,0,f,p,h,!b),d>n_&&(s.moveTo(d*Qv(h),d*e_(h)),s.arc(0,0,d,h,p,b));else{var y,g,v=p,_=h,M=p,w=h,x=m,k=m,A=a.apply(this,arguments)/2,S=A>n_&&(r?+r.apply(this,arguments):t_(d*d+f*f)),O=Zv(Kv(f-d)/2,+n.apply(this,arguments)),L=O,T=O;if(S>n_){var E=a_(S/d*e_(A)),D=a_(S/f*e_(A));(x-=2*E)>n_?(M+=E*=b?1:-1,w-=E):(x=0,M=w=(p+h)/2),(k-=2*D)>n_?(v+=D*=b?1:-1,_-=D):(k=0,v=_=(p+h)/2)}var P=f*Qv(v),C=f*e_(v),z=d*Qv(w),N=d*e_(w);if(O>n_){var j,R=f*Qv(_),I=f*e_(_),Y=d*Qv(M),F=d*e_(M);if(m1?0:l<-1?r_:Math.acos(l))/2),V=t_(j[0]*j[0]+j[1]*j[1]);L=Zv(O,(d-V)/(X-1)),T=Zv(O,(f-V)/(X+1))}}k>n_?T>n_?(y=f_(Y,F,P,C,f,T,b),g=f_(R,I,z,N,f,T,b),s.moveTo(y.cx+y.x01,y.cy+y.y01),Tn_&&x>n_?L>n_?(y=f_(z,N,R,I,d,-L,b),g=f_(P,C,Y,F,d,-L,b),s.lineTo(y.cx+y.x01,y.cy+y.y01),L=l;--d)s.point(b[d],y[d]);s.lineEnd(),s.areaEnd()}m&&(b[u]=+e(f,u,c),y[u]=+n(f,u,c),s.point(t?+t(f,u,c):b[u],r?+r(f,u,c):y[u]))}if(p)return s=null,p+""||null}function u(){return g_().defined(o).curve(a).context(i)}return c.x=function(n){return arguments.length?(e="function"==typeof n?n:Gv(+n),t=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Gv(+t),c):e},c.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Gv(+e),c):t},c.y=function(e){return arguments.length?(n="function"==typeof e?e:Gv(+e),r=null,c):n},c.y0=function(e){return arguments.length?(n="function"==typeof e?e:Gv(+e),c):n},c.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Gv(+e),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(n)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(t).y(n)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:Gv(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),c):i},c},__=function(e,t){return te?1:t>=e?0:NaN},M_=function(e){return e},w_=function(){var e=M_,t=__,n=null,r=Gv(0),o=Gv(i_),i=Gv(0);function a(a){var s,c,u,l,d,f=a.length,p=0,h=new Array(f),m=new Array(f),b=+r.apply(this,arguments),y=Math.min(i_,Math.max(-i_,o.apply(this,arguments)-b)),g=Math.min(Math.abs(y)/f,i.apply(this,arguments)),v=g*(y<0?-1:1);for(s=0;s0&&(p+=d);for(null!=t?h.sort(function(e,n){return t(m[e],m[n])}):null!=n&&h.sort(function(e,t){return n(a[e],a[t])}),s=0,u=p?(y-f*v)/p:0;s0?d*u:0)+v,m[c]={data:a[c],index:s,value:d,startAngle:b,endAngle:l,padAngle:g};return m}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:Gv(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Gv(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Gv(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:Gv(+e),a):i},a},x_=A_(m_);function k_(e){this._curve=e}function A_(e){function t(t){return new k_(e(t))}return t._curve=e,t}function S_(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(A_(e)):t()._curve},e}k_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var O_=function(){return S_(g_().curve(x_))},L_=function(){var e=v_().curve(x_),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return S_(n())},delete e.lineX0,e.lineEndAngle=function(){return S_(r())},delete e.lineX1,e.lineInnerRadius=function(){return S_(o())},delete e.lineY0,e.lineOuterRadius=function(){return S_(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(A_(e)):t()._curve},e},T_=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},E_=Array.prototype.slice;function D_(e){return e.source}function P_(e){return e.target}function C_(e){var t=D_,n=P_,r=b_,o=y_,i=null;function a(){var a,s=E_.call(arguments),c=t.apply(this,s),u=n.apply(this,s);if(i||(i=a=Wi()),e(i,+r.apply(this,(s[0]=c,s)),+o.apply(this,s),+r.apply(this,(s[0]=u,s)),+o.apply(this,s)),a)return i=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:Gv(+e),a):r},a.y=function(e){return arguments.length?(o="function"==typeof e?e:Gv(+e),a):o},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a}function z_(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function N_(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function j_(e,t,n,r,o){var i=T_(t,n),a=T_(t,n=(n+o)/2),s=T_(r,n),c=T_(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],c[0],c[1])}function R_(){return C_(z_)}function I_(){return C_(N_)}function Y_(){var e=C_(j_);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var F_={draw:function(e,t){var n=Math.sqrt(t/r_);e.moveTo(n,0),e.arc(0,0,n,0,i_)}},W_={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},q_=Math.sqrt(1/3),B_=2*q_,H_={draw:function(e,t){var n=Math.sqrt(t/B_),r=n*q_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},X_=Math.sin(r_/10)/Math.sin(7*r_/10),V_=Math.sin(i_/10)*X_,U_=-Math.cos(i_/10)*X_,G_={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=V_*n,o=U_*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=i_*i/5,s=Math.cos(a),c=Math.sin(a);e.lineTo(c*n,-s*n),e.lineTo(s*r-c*o,c*r+s*o)}e.closePath()}},K_={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},J_=Math.sqrt(3),Q_={draw:function(e,t){var n=-Math.sqrt(t/(3*J_));e.moveTo(0,2*n),e.lineTo(-J_*n,-n),e.lineTo(J_*n,-n),e.closePath()}},$_=Math.sqrt(3)/2,Z_=1/Math.sqrt(12),eM=3*(Z_/2+1),tM={draw:function(e,t){var n=Math.sqrt(t/eM),r=n/2,o=n*Z_,i=r,a=n*Z_+n,s=-i,c=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,c),e.lineTo(-.5*r-$_*o,$_*r+-.5*o),e.lineTo(-.5*i-$_*a,$_*i+-.5*a),e.lineTo(-.5*s-$_*c,$_*s+-.5*c),e.lineTo(-.5*r+$_*o,-.5*o-$_*r),e.lineTo(-.5*i+$_*a,-.5*a-$_*i),e.lineTo(-.5*s+$_*c,-.5*c-$_*s),e.closePath()}},nM=[F_,W_,H_,K_,G_,Q_,tM],rM=function(){var e=Gv(F_),t=Gv(64),n=null;function r(){var r;if(n||(n=r=Wi()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:Gv(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Gv(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},oM=function(){};function iM(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function aM(e){this._context=e}aM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:iM(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:iM(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var sM=function(e){return new aM(e)};function cM(e){this._context=e}cM.prototype={areaStart:oM,areaEnd:oM,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:iM(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var uM=function(e){return new cM(e)};function lM(e){this._context=e}lM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:iM(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var dM=function(e){return new lM(e)};function fM(e,t){this._basis=new aM(e),this._beta=t}fM.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,s=t[n]-i,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*e[c]+(1-this._beta)*(o+r*a),this._beta*t[c]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var pM=function e(t){function n(e){return 1===t?new aM(e):new fM(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function hM(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function mM(e,t){this._context=e,this._k=(1-t)/6}mM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:hM(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:hM(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var bM=function e(t){function n(e){return new mM(e,t)}return n.tension=function(t){return e(+t)},n}(0);function yM(e,t){this._context=e,this._k=(1-t)/6}yM.prototype={areaStart:oM,areaEnd:oM,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:hM(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var gM=function e(t){function n(e){return new yM(e,t)}return n.tension=function(t){return e(+t)},n}(0);function vM(e,t){this._context=e,this._k=(1-t)/6}vM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:hM(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var _M=function e(t){function n(e){return new vM(e,t)}return n.tension=function(t){return e(+t)},n}(0);function MM(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>n_){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>n_){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/l,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function wM(e,t){this._context=e,this._alpha=t}wM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:MM(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var xM=function e(t){function n(e){return t?new wM(e,t):new mM(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function kM(e,t){this._context=e,this._alpha=t}kM.prototype={areaStart:oM,areaEnd:oM,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:MM(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var AM=function e(t){function n(e){return t?new kM(e,t):new yM(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function SM(e,t){this._context=e,this._alpha=t}SM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:MM(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var OM=function e(t){function n(e){return t?new SM(e,t):new vM(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function LM(e){this._context=e}LM.prototype={areaStart:oM,areaEnd:oM,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var TM=function(e){return new LM(e)};function EM(e){return e<0?-1:1}function DM(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(EM(i)+EM(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function PM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function CM(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function zM(e){this._context=e}function NM(e){this._context=new jM(e)}function jM(e){this._context=e}function RM(e){return new zM(e)}function IM(e){return new NM(e)}function YM(e){this._context=e}function FM(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var BM=function(e){return new qM(e,.5)};function HM(e){return new qM(e,0)}function XM(e){return new qM(e,1)}var VM=function(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i=0;)n[t]=t;return n};function GM(e,t){return e[t]}var KM=function(){var e=Gv([]),t=UM,n=VM,r=GM;function o(o){var i,a,s=e.apply(this,arguments),c=o.length,u=s.length,l=new Array(u);for(i=0;i0){for(var n,r,o,i=0,a=e[0].length;i0)for(var n,r,o,i,a,s,c=0,u=e[t[0]].length;c=0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):r[0]=i},$M=function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;ai&&(i=t,r=n);return r}var nw=function(e){var t=e.map(rw);return UM(e).sort(function(e,n){return t[e]-t[n]})};function rw(e){for(var t,n=0,r=-1,o=e.length;++r0)){if(i/=f,f<0){if(i0){if(i>d)return;i>l&&(l=i)}if(i=r-c,f||!(i<0)){if(i/=f,f<0){if(i>d)return;i>l&&(l=i)}else if(f>0){if(i0)){if(i/=p,p<0){if(i0){if(i>d)return;i>l&&(l=i)}if(i=o-u,p||!(i<0)){if(i/=p,p<0){if(i>d)return;i>l&&(l=i)}else if(p>0){if(i0||d<1)||(l>0&&(e[0]=[c+l*f,u+l*p]),d<1&&(e[1]=[c+d*f,u+d*p]),!0)}}}}}function _w(e,t,n,r,o){var i=e[1];if(i)return!0;var a,s,c=e[0],u=e.left,l=e.right,d=u[0],f=u[1],p=l[0],h=l[1],m=(d+p)/2,b=(f+h)/2;if(h===f){if(m=r)return;if(d>p){if(c){if(c[1]>=o)return}else c=[m,n];i=[m,o]}else{if(c){if(c[1]1)if(d>p){if(c){if(c[1]>=o)return}else c=[(n-s)/a,n];i=[(o-s)/a,o]}else{if(c){if(c[1]=r)return}else c=[t,a*t+s];i=[r,a*r+s]}else{if(c){if(c[0]=-qw)){var p=c*c+u*u,h=l*l+d*d,m=(d*p-u*h)/f,b=(c*h-l*p)/f,y=Aw.pop()||new Sw;y.arc=e,y.site=o,y.x=m+a,y.y=(y.cy=b+s)+Math.sqrt(m*m+b*b),e.circle=y;for(var g=null,v=Yw._;v;)if(y.yWw)s=s.L;else{if(!((o=i-jw(s,a))>Ww)){r>-Ww?(t=s.P,n=s):o>-Ww?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){Iw[e.index]={site:e,halfedges:[]}}(e);var c=Dw(e);if(Rw.insert(t,c),t||n){if(t===n)return Lw(t),n=Dw(t.site),Rw.insert(c,n),c.edge=n.edge=bw(t.site,c.site),Ow(t),void Ow(n);if(n){Lw(t),Lw(n);var u=t.site,l=u[0],d=u[1],f=e[0]-l,p=e[1]-d,h=n.site,m=h[0]-l,b=h[1]-d,y=2*(f*b-p*m),g=f*f+p*p,v=m*m+b*b,_=[(b*g-p*v)/y+l,(f*v-m*g)/y+d];gw(n.edge,u,h,_),c.edge=bw(u,e,null,_),n.edge=bw(e,h,null,_),Ow(t),Ow(n)}else c.edge=bw(t.site,c.site)}}function Nw(e,t){var n=e.site,r=n[0],o=n[1],i=o-t;if(!i)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],c=n[1],u=c-t;if(!u)return s;var l=s-r,d=1/i-1/u,f=l/u;return d?(-f+Math.sqrt(f*f-2*d*(l*l/(-2*u)-c+u/2+o-i/2)))/d+r:(r+s)/2}function jw(e,t){var n=e.N;if(n)return Nw(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var Rw,Iw,Yw,Fw,Ww=1e-6,qw=1e-12;function Bw(e,t){return t[1]-e[1]||t[0]-e[0]}function Hw(e,t){var n,r,o,i=e.sort(Bw).pop();for(Fw=[],Iw=new Array(e.length),Rw=new mw,Yw=new mw;;)if(o=kw,i&&(!o||i[1]Ww||Math.abs(o[0][1]-o[1][1])>Ww)||delete Fw[i]}(a,s,c,u),function(e,t,n,r){var o,i,a,s,c,u,l,d,f,p,h,m,b=Iw.length,y=!0;for(o=0;oWw||Math.abs(m-f)>Ww)&&(c.splice(s,0,Fw.push(yw(a,p,Math.abs(h-e)Ww?[e,Math.abs(d-e)Ww?[Math.abs(f-r)Ww?[n,Math.abs(d-n)Ww?[Math.abs(f-t)=s)return null;var c=e-o.site[0],u=t-o.site[1],l=c*c+u*u;do{o=i.cells[r=a],a=null,o.halfedges.forEach(function(n){var r=i.edges[n],s=r.left;if(s!==o.site&&s||(s=r.right)){var c=e-s[0],u=t-s[1],d=c*c+u*u;dr?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}var ix=function(){var e,t,n=Zw,r=ex,o=ox,i=nx,a=rx,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,l=ar,d=[],f=fe("start","zoom","end"),p=500,h=150,m=0;function b(e){e.property("__zoom",tx).on("wheel.zoom",x).on("mousedown.zoom",k).on("dblclick.zoom",A).filter(a).on("touchstart.zoom",S).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(e,t){return(t=Math.max(s[0],Math.min(s[1],t)))===e.k?e:new Gw(t,e.x,e.y)}function g(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new Gw(e.k,r,o)}function v(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function _(e,t,n){e.on("start.zoom",function(){M(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){M(this,arguments).end()}).tween("zoom",function(){var e=arguments,o=M(this,e),i=r.apply(this,e),a=n||v(i),s=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),c=this.__zoom,u="function"==typeof t?t.apply(this,e):t,d=l(c.invert(a).concat(s/c.k),u.invert(a).concat(s/u.k));return function(e){if(1===e)e=u;else{var t=d(e),n=s/t[2];e=new Gw(n,a[0]-t[0]*n,a[1]-t[1]*n)}o.zoom(null,e)}})}function M(e,t){for(var n,r=0,o=d.length;rm}e.zoom("mouse",o(g(e.that.__zoom,e.mouse[0]=ct(e.that),e.mouse[1]),e.extent,c))},!0).on("mouseup.zoom",function(){r.on("mousemove.zoom mouseup.zoom",null),mt(He.view,e.moved),$w(),e.end()},!0),i=ct(this),a=He.clientX,s=He.clientY;ht(He.view),Qw(),e.mouse=[i,this.__zoom.invert(i)],Zr(this),e.start()}}function A(){if(n.apply(this,arguments)){var e=this.__zoom,t=ct(this),i=e.invert(t),a=e.k*(He.shiftKey?.5:2),s=o(g(y(e,a),t,i),r.apply(this,arguments),c);$w(),u>0?tt(this).transition().duration(u).call(_,s,t):tt(this).call(b.transform,s)}}function S(){if(n.apply(this,arguments)){var t,r,o,i,a=M(this,arguments),s=He.changedTouches,c=s.length;for(Qw(),r=0;r-1};l.prototype.append=function(e,t){e=s(e),t=c(t);var n=this.map[e];this.map[e]=n?n+","+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=c(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var i=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var a=[301,302,303,307,308];g.redirect=function(e,t){if(-1===a.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},e.Headers=l,e.Request=b,e.Response=g,e.fetch=function(e,n){return new Promise(function(r,o){var i=new b(e,n),a=new XMLHttpRequest;a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;r(new g(o,n))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),i.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0}function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&r(e))this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!o(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=h(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function g(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e){e.exports={name:"keen-analysis",version:"3.4.1",description:"A JavaScript client for Keen.IO",main:"dist/node/keen-analysis.js",browser:"dist/keen-analysis.js",scripts:{start:"NODE_ENV=development webpack-dev-server",test:"NODE_ENV=test jest && npm run test:node","test:node":"NODE_ENV=test TEST_ENV=node jest","test:watch":"NODE_ENV=test jest --watch","test:node:watch":"NODE_ENV=test TEST_ENV=node jest --watch",build:"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:node && npm run build:modules && npm run build:modules:node","build:node":"TARGET=node NODE_ENV=production webpack -p","build:modules":"NODE_ENV=production webpack -p --config webpack.modules.config.js","build:modules:node":"NODE_ENV=production TARGET=node webpack -p --config webpack.modules.config.js",profile:"webpack --profile --json > stats.json",analyze:"webpack-bundle-analyzer stats.json /dist",preversion:"npm run build:node && npm run test",version:"npm run build && git add .",postversion:"git push && git push --tags && npm publish",demo:"npm run build:node && node ./test/demo/index.node.js"},repository:{type:"git",url:"git+https://github.com/keen/keen-analysis.js.git"},author:"Keen IO ",homepage:"https://keen.io",contributors:["Dustin Larimer (https://github.com/dustinlarimer)","Adam Kasprowicz (https://github.com/adamkasprowicz)","Dariusz Łacheta (https://github.com/dariuszlacheta)"],keywords:["Analytics","Analysis","Conversion","Query","Stats","Client","Min","Max","Count","Percentile","Average","Median","Keen","Keen Query"],license:"MIT",bugs:{url:"https://github.com/keen/keen-analysis.js/issues"},dependencies:{crossfilter2:"^1.4.6",csvtojson:"^2.0.8","keen-core":"^0.2.0",moment:"^2.22.2","promise-polyfill":"^8.0.0","whatwg-fetch":"^2.0.4"},devDependencies:{"abortcontroller-polyfill":"^1.1.9","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0",del:"^2.1.0",eslint:"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","fake-indexeddb":"^2.0.4","html-loader":"^0.5.5","html-webpack-plugin":"^3.2.0",jest:"^22.4.3","jest-fetch-mock":"^1.6.5",merge:"^1.2.1",nock:"^9.2.6","regenerator-runtime":"^0.11.1",requirejs:"^2.1.22",through2:"^2.0.0","url-parse":"^1.4.3",webpack:"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.14","xhr-mock":"^2.3.2"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.mapKeysToUnderscore=function e(t){var n=["cache"];if(!t||"object"!==(void 0===t?"undefined":r(t)))return t;var o=Object.keys(t)||[];var i={};o.forEach(function(o){var a=t[o];return n.includes(o)?i[o]=a:(o.match(new RegExp("[A-Z]"))&&(o=o.replace(/[A-Z]/g,function(e){return"_"+e.toLowerCase()})),Array.isArray(a)?i[o]=a.map(function(t){return e(t)}):"object"===(void 0===a?"undefined":r(a))?i[o]=e(a):void(i[o]=a))});return i}},function(e,t,n){var r=n(0);n(2);e.exports=function(e){var t=[];return r(e,function(e,n){"string"!=typeof e&&(e=JSON.stringify(e)),t.push(n+"="+encodeURIComponent(e))}),t.join("&")}},function(e,t,n){"use strict";(function(e){var r=n(4),o=setTimeout;function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void u(t.promise,e)}c(t.promise,r)}else(1===e._state?c:u)(t.promise,e._value)})):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void f((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){u(e,t)}var r,o}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t>>4&15)+n.charAt(15&t);return r}(function(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}(function(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,l=271733878,d=0;d>2),n=0;n>5]|=(255&e.charCodeAt(n/8))<>>32-t}(u(u(t,e),u(r,i)),o),n)}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function c(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}function u(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFromCache=t.saveToCache=void 0;var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return u?Promise.resolve():c?(l=r({},l,e),new Promise(function(e,t){var n=self.indexedDB.open(l.dbName);n.onerror=function(t){c=!1,e()},n.onupgradeneeded=function(e){var t=e.target.result.createObjectStore(l.dbCollectionName,{keyPath:l.dbCollectionKey});t.createIndex(l.dbCollectionKey,l.dbCollectionKey,{unique:!0}),t.createIndex("expiryTime","expiryTime",{unique:!1})},n.onsuccess=function(t){(u=t.target.result).onerror=function(e){c=!1},e(u)}})):Promise.resolve()}var f=function(e,t){return(0,a.default)(e+"&body="+JSON.stringify(t.body))};t.saveToCache=function(e,t,n){return d().then(function(){var r=u.transaction(l.dbCollectionName,"readwrite").objectStore(l.dbCollectionName).add({url:f(e,t),expiryTime:Date.now()+l.maxAge,responseJson:n});r.onsuccess=function(e){},r.onerror=function(e){c=!1}})},t.getFromCache=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d(r.cache).then(function(){return new Promise(function(o,i){if(!c)return o(null);var a=u.transaction(l.dbCollectionName,"readwrite").objectStore(l.dbCollectionName).index("expiryTime"),s=IDBKeyRange.upperBound(Date.now(),!0);a.openCursor(s).onsuccess=function(e){var t=e.target.result;if(t){u.transaction(l.dbCollectionName,"readwrite").objectStore(l.dbCollectionName).delete(e.target.result.value[l.dbCollectionKey]);t.continue()}};var d=u.transaction(l.dbCollectionName,"readwrite").objectStore(l.dbCollectionName).index(l.dbCollectionKey).get(f(t,n));d.onsuccess=function(i){if(!i.target.result||i.target.result.expiryTime2&&void 0!==arguments[2]?arguments[2]:{},c={},u=n.url;"GET"!==t&&"DELETE"!==t||(-1===u.indexOf("?")?u+="?":u+="&",n.api_key&&(u+="api_key="+n.api_key+"&"),n.params&&(u+=(0,i.default)(n.params))),(0,o.default)(n.headers,function(e,t){"string"==typeof e&&(c[t]=e)});var l={method:t,body:"GET"!==t&&n.params?JSON.stringify(n.params):void 0,mode:"cors",headers:c};if(n.cache&&"DELETE"!==t&&"PUT"!==t&&!s.notFoundInCache)return(0,a.getFromCache)(u,l,n).then(function(o){if(o)return s.resolve(o);e(t,n,r({},s,{notFoundInCache:!0}))});var d=void 0;fetch(u,r({},l,{signal:s.signal})).catch(function(e){s.reject(e)}).then(function(e){if(e)return d=e,e.ok&&"DELETE"===t?{}:e.json()}).then(function(e){if(e){if(e.error_code||!d.ok)return s.reject({ok:!1,error_code:e.error_code,body:e.message,status:d.status,statusText:d.statusText});n.cache&&"DELETE"!==t&&"PUT"!==t&&(0,a.saveToCache)(u,l,e),s.resolve(e)}})},u=function(){var e=window||void 0;if(e.XMLHttpRequest&&(!e.ActiveXObject||e.location&&e.location.protocol&&"file:"!==e.location.protocol))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=u(),a=n.callback,s=t.url;return r.onreadystatechange=function(){var e=void 0;if(4==r.readyState)if(r.status>=200&&r.status<300)if(204===r.status)a&&a(null,r);else try{e=JSON.parse(r.responseText),a&&e&&a(null,e)}catch(e){a&&a(r,null)}else try{e=JSON.parse(r.responseText),a&&e&&a(e,null)}catch(e){a&&a(r,null)}},"GET"!==e?(r.open(e,s,!0),(0,o.default)(t.headers,function(e,t){"string"==typeof e&&r.setRequestHeader(t,e)}),t.params?r.send(JSON.stringify(t.params)):r.send()):(s+="?",t.api_key&&(s+="api_key="+t.api_key+"&"),t.params&&(s+=(0,i.default)(t.params)),r.open(e,s,!0),(0,o.default)(t.headers,function(e,t){"string"==typeof e&&r.setRequestHeader(t,e)}),r.send()),r};t.GET=function(e,t){return"undefined"!=typeof fetch?c("GET",e,t):u()?l("GET",e,t):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.url,r=t.callback,o=(new Date).getTime(),a=document.createElement("script"),s=document.getElementsByTagName("head")[0],c="keenJSONPCallback",u=!1;for(c+=o;c in window;)c+="a";window[c]=function(e){!0!==u&&l(null,e)},e.params&&(n+=(0,i.default)(e.params)),a.onreadystatechange=function(){!1===u&&"loaded"===this.readyState&&l("An error occurred",null)},a.onerror=function(){!1===u&&l("An error occurred",null)},a.src=n+"&jsonp="+c,s.appendChild(a);var l=function(e,t){u=!0,r&&"function"==typeof r&&(r(e,t),r=void 0),window[c]=void 0;try{delete window[c]}catch(e){}s.removeChild(a)}}(e,t)},t.POST=function(e,t){return"undefined"!=typeof fetch?c("POST",e,t):u()?l("POST",e,t):void t.reject("XHR POST not supported")},t.PUT=function(e,t){return"undefined"!=typeof fetch?c("PUT",e,t):u()?l("PUT",e,t):void t.reject("XHR PUT not supported")},t.DEL=function(e,t){return"undefined"!=typeof fetch?c("DELETE",e,t):u()?l("DELETE",e,t):void t.reject("XHR DELETE not supported")}},function(e,t,n){(function(e){(function(){"use strict";var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t?(this.config=o({api_key:void 0,method:e,params:{},url:t,headers:{Authorization:"","Content-type":"application/json","keen-sdk":"javascript-"+c.version}},n),this):(this.config=o({api_key:void 0,params:{},method:e,headers:{Authorization:t.api_key,"Content-type":"application/json","keen-sdk":"javascript-"+c.version}},t,n),this.send())}.bind(this)}l.prototype.auth=function(e){return"string"==typeof e&&(this.config.api_key="string"==typeof e?e:void 0,this.headers({Authorization:e})),this},l.prototype.headers=function(e){return"object"===(void 0===e?"undefined":r(e))&&(0,i.default)(e,function(e,t){this.config.headers[t]=e}.bind(this)),this},l.prototype.timeout=function(e){return this.config.timeout="number"==typeof e?e:3e5,this},l.prototype.send=function(e){var t=this;if(this.config&&!this.config.api_key)throw new Error("Please provide valid API key");e&&(this.config.params=e&&"object"===(void 0===e?"undefined":r(e))?(0,s.mapKeysToUnderscore)(e):{});var n=this.config.method;"DELETE"===n&&(n="DEL");var o=this.httpHandlers[n],i=(0,a.default)({},this.config);"DELETE"!==this.config.method&&void 0===i.params.analysis_type&&i.url.indexOf("/queries/")>-1&&i.url.indexOf("/saved/")<0&&(i.params.analysis_type=i.url.split("/queries/").pop());var c=void 0;"undefined"!=typeof AbortController&&(c=new AbortController);var u=void 0,l=new Promise(function(e,t){var n={};return c&&(n.signal=c.signal),n.resolve=e,n.reject=t,u=o(i,n)}).then(function(e){return Array.isArray(e.result)?t.config.params.interval?t.config.params.group_by?e.result.forEach(function(e){e.value.forEach(function(e){isNaN(Number(e.result))||(e.result=Number(e.result))})}):e.result.forEach(function(e){isNaN(Number(e.value))||(e.value=Number(e.value))}):e.result.forEach(function(e){isNaN(Number(e.result))||(e.result=Number(e.result))}):isNaN(Number(e.result))||(e.result=Number(e.result)),t.config.resultParsers&&(Array.isArray(e.result)?t.config.params.interval?t.config.params.group_by?e.result.forEach(function(e){e.value.forEach(function(e){t.config.resultParsers.forEach(function(t){e.result=t(e.result)})})}):e.result.forEach(function(e){t.config.resultParsers.forEach(function(t){e.value=t(e.value)})}):e.result.forEach(function(e){t.config.resultParsers.forEach(function(t){e.result=t(e.result)})}):t.config.resultParsers.forEach(function(t){e.result=t(e.result)})),i.params&&void 0!==i.params.event_collection&&void 0===e.query?(0,a.default)({query:i.params},e):e});return l.abort=function(){if(c)return c.abort();u.emit("abort")},l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.validateAuthCredentials=function(e){if("object"!==(void 0===e?"undefined":r(e)))return;if(!e.projectId)throw new Error("Please provide valid project ID");if(!e.masterKey&&!e.readKey)throw new Error("Please provide valid API key");return!0}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o-1&&(t.protocol=document.location.protocol.replace(":","")),t.host&&t.host.replace(/.*?:\/\//g,""),i(this.config,t),this},u.prototype.masterKey=function(e){return arguments.length?(this.config.masterKey=e?String(e):null,this):this.config.masterKey},u.prototype.projectId=function(e){return arguments.length?(this.config.projectId=e?String(e):null,this):this.config.projectId},u.prototype.resources=function(e){if(!arguments.length)return this.config.resources;var t=this;return"object"==typeof e&&o(e,function(e,n){t.config.resources[n]=e||null}),t},u.prototype.url=function(e){var t,n=Array.prototype.slice.call(arguments,1),r=this.config.resources.base||"{protocol}://{host}";return t=e&&"string"==typeof e?this.config.resources[e]?this.config.resources[e]:r+e:r,o(this.config,function(e,n){"object"!=typeof e&&(t=t.replace("{"+n+"}",e))}),o(n,function(e,n){"string"==typeof e?t+="/"+e:"object"==typeof e&&(t+="?",o(e,function(e,n){t+=n+"="+e+"&"}),t=t.slice(0,-1))}),t},function(e){if(u.loaded||"undefined"==typeof document)return void e();null==document.readyState&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e,!1),document.readyState="complete"},!1),document.readyState="loading");!function e(t){/in/.test(document.readyState)?setTimeout(function(){e(t)},9):t()}(e)}(function(){u.loaded=!0,u.emit("ready")}),e.exports=u}).call(this,"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{})}).call(this,n(1))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,d=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&p())}function p(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(20),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeenAnalysis=void 0;var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.analysis=e,this.params={},this.set(t),this.options=r({},n)}i.default.prototype.readKey=function(e){return arguments.length?(this.config.readKey=e?String(e):null,this):this.config.readKey},i.default.prototype.query=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,c.validateAuthCredentials)(this.config);var i={a:(0,u.mapKeysToUnderscore)(e),b:(0,u.mapKeysToUnderscore)(t)},a=i.a,l=i.b;if("object"===(void 0===e?"undefined":o(e))&&!t){var d=i.a,f=d.analysis_type,p=d.cache;a=f,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(d,["analysis_type","cache"]);var h=this.config.cache;void 0!==p&&(h=p),n.cache=h}if(n.resultParsers=this.config.resultParsers,void 0===n.cache&&this.config.cache&&(n.cache=r({},this.config.cache)),a&&l&&"string"==typeof l)return l.indexOf("/result")<0&&(l+="/result"),this.get({url:this.url("queries",a,l),api_key:this.config.readKey||this.config.masterKey},n);if(l&&l.saved_query_name){var m=l.saved_query_name.indexOf("/result")>-1?l.saved_query_name:l.saved_query_name+"/result";return this.get({url:this.url("queries","saved",m),api_key:this.config.readKey||this.config.masterKey},n)}if("dataset"===a&&"object"===(void 0===l?"undefined":o(l)))return this.get({url:this.url("datasets",l.name,"results"),api_key:this.config.readKey||this.config.masterKey,params:l},n);if(l&&l.dataset_name)return this.get({url:this.url("datasets",l.dataset_name,"results"),api_key:this.config.readKey||this.config.masterKey,params:l},n);if(a&&l&&"object"===(void 0===l?"undefined":o(l))){var b=(0,s.default)({analysis_type:a},l);return b.timezone||(b.timezone=-60*(new Date).getTimezoneOffset()),this.post({url:this.url("queries",a),api_key:this.config.readKey||this.config.masterKey,params:b},n)}return a&&"string"==typeof a&&!l?Promise.reject({error_code:"SDKError",message:".query() called with incorrect arguments"}):void 0},i.default.Query=f,i.default.prototype.run=function(e,t){var n=this,r=t,o=void 0,c=e instanceof Array?e:[e],u=[];return(0,a.default)(c,function(e,t){var r=void 0;r="string"==typeof e?n.query("saved",e+"/result"):e instanceof i.default.Query?n.query(e.analysis,(0,s.default)({analysis_type:e.analysis},e.params),e.options):e,u.push(r)}),o=u.length>1?Promise.all(u):u[0],r&&(o.then(function(e){r(null,e)}),o.catch(function(e){r(e,null)})),o},f.prototype.set=function(e){var t=this;return(0,a.default)(e,function(e,n){var r=n,i=e;n.match(new RegExp("[A-Z]"))&&(r=n.replace(/([A-Z])/g,function(e){return"_"+e.toLowerCase()})),t.params[r]=i,i instanceof Array&&(0,a.default)(i,function(e,n){e instanceof Array==0&&"object"===(void 0===e?"undefined":o(e))&&(0,a.default)(e,function(e,o){if(o.match(new RegExp("[A-Z]"))){var i=o.replace(/([A-Z])/g,function(e){return"_"+e.toLowerCase()});delete t.params[r][n][o],t.params[r][n][i]=e}})})}),t},f.prototype.get=function(e){var t=e;if(t.match(new RegExp("[A-Z]"))&&(t=t.replace(/([A-Z])/g,function(e){return"_"+e.toLowerCase()})),this.params)return this.params[t]||null},f.prototype.addFilter=function(e,t,n){return this.params.filters=this.params.filters||[],this.params.filters.push({property_name:e,operator:t,property_value:n}),this},i.default.version=l.default.version;var p=t.KeenAnalysis=i.default;t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeenAnalysis=t.Keen=t.keenGlobals=void 0;a(n(2));var r=a(n(22)),o=a(n(14)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(12));function a(e){return e&&e.__esModule?e:{default:e}}r.default.prototype.get=new o.default("GET",i),r.default.prototype.post=new o.default("POST",i),r.default.prototype.put=new o.default("PUT",i),r.default.prototype.del=new o.default("DELETE",i);t.keenGlobals=void 0;"undefined"!=typeof webpackKeenGlobals&&(t.keenGlobals=webpackKeenGlobals);var s=t.Keen=r.default.extendLibrary(r.default);t.KeenAnalysis=s;t.default=s},function(e,t,n){e.exports=n(23)}])},e.exports=r()},function(e){e.exports={a:"6.0.6"}},function(e,t,n){"use strict";(function(t){var r=n(619);e.exports=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e=t.from(e));var o=n&&n.objname?{}:[],i=new r.Parser(n);i.push=function(e){void 0===n.objname?o.push(e):o[e[0]]=e[1]};var a=i.__parse(e,!1);if(void 0!==a)throw a;var s=i.__parse(void 0,!0);if(void 0!==s)throw s;return o}}).call(this,n(89).Buffer)},function(e,t,n){(function(t){for(var r=n(633),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],c=o["cancel"+a]||o["cancelRequest"+a],u=0;!s&&u=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){l.forEach(function(t){return delete e[t]})}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}();h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){function o(t){var r=new i.default(t);n.call(e,r)}if(e.addEventListener){var a=(s=!1,"object"==typeof r?s=r.capture||!1:"boolean"==typeof r&&(s=r),e.addEventListener(t,o,r||!1),{v:{remove:function(){e.removeEventListener(t,o,s)}}});if("object"==typeof a)return a.v}else if(e.attachEvent)return e.attachEvent("on"+t,o),{remove:function(){e.detachEvent("on"+t,o)}};var s};var r,o=n(742),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see diff --git a/dist/keen-explorer.css b/dist/keen-explorer.css index 08a2a4fe1..58fb4b10f 100644 --- a/dist/keen-explorer.css +++ b/dist/keen-explorer.css @@ -2883,44 +2883,44 @@ li.rc-time-picker-panel-select-option-disabled:hover { } @media screen and (max-width: 1000px) { - .keenExplorer{ + .keen-explorer{ -ms-flex-direction: column; flex-direction: column; } - .keenExplorer .panel{ + .keen-explorer .panel{ -webkit-box-shadow: none; box-shadow: none; min-width: none; } - .keenExplorer .panel .panel-content{ + .keen-explorer .panel .panel-content{ padding: 0 1rem; } - .keenExplorer .result{ + .keen-explorer .result{ display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; } - .keenExplorer .result .preview, .keenExplorer .result .lets-go{ + .keen-explorer .result .preview, .keen-explorer .result .lets-go{ -ms-flex-order: 1; order: 1; } - .keenExplorer .result .error{ + .keen-explorer .result .error{ margin-bottom: 0; } - .keenExplorer .result .button-run-query{ + .keen-explorer .result .button-run-query{ -ms-flex-order: 0; order: 0; } - .keenExplorer .result .button-toggle { + .keen-explorer .result .button-toggle { -ms-flex-order: 3; order: 3; } - .keenExplorer .result .saved-query{ + .keen-explorer .result .saved-query{ -ms-flex-order: 3; order: 3; } - .keenExplorer .result .action-buttons{ + .keen-explorer .result .action-buttons{ margin-bottom: 1rem; } .filters-container .delete{ diff --git a/dist/keen-explorer.min.css b/dist/keen-explorer.min.css index f0cc3c6a3..798b5172b 100644 --- a/dist/keen-explorer.min.css +++ b/dist/keen-explorer.min.css @@ -1 +1 @@ -.dev-body{margin:2rem auto;width:100%;max-width:1500px}.dev-reload-button{position:absolute;left:1rem;top:1rem;color:#ccc}.keen-explorer-template{margin:0 auto;width:100%;max-width:1500px}.keen-explorer-template #keen-explorer-container{padding:1rem}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:darken(#cacccd,10%);text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:33px;height:26px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show:before{content:"";display:block;position:absolute}.DayPickerKeyboardShortcuts_show__bottomRight{bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:before{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover:before{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:before{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover:before{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:before{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover:before{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:5px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:5px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:5px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px;text-align:left}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px solid #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px double #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px double #33dacd;color:#fff}.CalendarDay__last_in_range,.CalendarDay__last_in_range:hover{border-style:solid}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px double #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px double #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px double #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__disabled{cursor:default;border:1px solid #f2f2f2}.DayPickerNavigation_button__disabled:focus,.DayPickerNavigation_button__disabled:hover{border:1px solid #f2f2f2}.DayPickerNavigation_button__disabled:active{background:0 0}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;text-align:center;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848}.DayPickerNavigation_svg__disabled{fill:#f2f2f2}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-top:0;border-right:0;border-bottom:2px solid transparent;border-left:0;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-top:0;border-right:0;border-bottom:2px solid #008489;border-left:0}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:darken(#cacccd,10%);text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.rc-time-picker{display:inline-block;position:relative}.rc-time-picker,.rc-time-picker *{box-sizing:border-box}.rc-time-picker-clear{position:absolute;right:6px;cursor:pointer;overflow:hidden;width:20px;height:20px;text-align:center;line-height:20px;top:3px;margin:0}.rc-time-picker-clear-icon:after{content:"x";font-size:12px;font-style:normal;color:#aaa;display:inline-block;line-height:1;height:20px;width:20px;transition:color .3s ease}.rc-time-picker-clear-icon:hover:after{color:#666}.rc-time-picker-input{width:100%;position:relative;display:inline-block;padding:4px 7px;height:28px;cursor:text;font-size:12px;line-height:1.5;color:#666;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:4px;transition:border .2s cubic-bezier(.645,.045,.355,1),background .2s cubic-bezier(.645,.045,.355,1),box-shadow .2s cubic-bezier(.645,.045,.355,1)}.rc-time-picker-input[disabled]{color:#ccc;background:#f7f7f7;cursor:not-allowed}.rc-time-picker-panel{z-index:1070;width:170px;position:absolute;box-sizing:border-box}.rc-time-picker-panel-inner{display:inline-block;position:relative;outline:none;list-style:none;font-size:12px;text-align:left;background-color:#fff;border-radius:4px;box-shadow:0 1px 5px #ccc;background-clip:padding-box;border:1px solid #ccc;line-height:1.5}.rc-time-picker-panel-narrow{max-width:113px}.rc-time-picker-panel-input{margin:0;padding:0;width:100%;cursor:auto;line-height:1.5;outline:0;border:1px solid transparent}.rc-time-picker-panel-input-wrap{box-sizing:border-box;position:relative;padding:6px;border-bottom:1px solid #e9e9e9}.rc-time-picker-panel-input-invalid{border-color:red}.rc-time-picker-panel-select{float:left;font-size:12px;border:1px solid #e9e9e9;border-width:0 1px;margin-left:-1px;box-sizing:border-box;width:56px;max-height:144px;overflow-y:auto;position:relative}.rc-time-picker-panel-select-active{overflow-y:auto}.rc-time-picker-panel-select:first-child{border-left:0;margin-left:0}.rc-time-picker-panel-select:last-child{border-right:0}.rc-time-picker-panel-select ul{list-style:none;box-sizing:border-box;margin:0;padding:0;width:100%}.rc-time-picker-panel-select li{list-style:none;margin:0;padding:0 0 0 16px;width:100%;height:24px;line-height:24px;text-align:left;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rc-time-picker-panel-select li:hover{background:#edfaff}li.rc-time-picker-panel-select-option-selected{background:#f7f7f7;font-weight:700}li.rc-time-picker-panel-select-option-disabled{color:#ccc}li.rc-time-picker-panel-select-option-disabled:hover{background:transparent;cursor:not-allowed}.keen-explorer,.rc-time-picker-panel,.ReactModalPortal{font-family:Montserrat,Tahoma,Arial;font-size:.88rem;color:#000;display:flex}.keen-explorer .extraction,.rc-time-picker-panel .extraction,.ReactModalPortal .extraction{margin-top:1rem}.keen-explorer .extraction .first-label,.rc-time-picker-panel .extraction .first-label,.ReactModalPortal .extraction .first-label{padding-top:0}.keen-explorer .extraction .input-text,.keen-explorer .percentile .input-text,.rc-time-picker-panel .extraction .input-text,.rc-time-picker-panel .percentile .input-text,.ReactModalPortal .extraction .input-text,.ReactModalPortal .percentile .input-text{width:100%}.keen-explorer .filters-container .list,.rc-time-picker-panel .filters-container .list,.ReactModalPortal .filters-container .list{margin:2rem 0;width:100%}.keen-explorer .filters-container .list .row,.rc-time-picker-panel .filters-container .list .row,.ReactModalPortal .filters-container .list .row{display:flex;width:100%;margin:0 0 1rem}.keen-explorer .filters-container .list .row .row-part,.rc-time-picker-panel .filters-container .list .row .row-part,.ReactModalPortal .filters-container .list .row .row-part{flex:1;padding:0 .5rem}.keen-explorer .filters-container .list .row .row-part input,.rc-time-picker-panel .filters-container .list .row .row-part input,.ReactModalPortal .filters-container .list .row .row-part input{padding:.55rem .7rem;font-size:.88rem;border-radius:4px;border:1px solid #ccc;width:100%}.keen-explorer .filters-container .list .row .row-part .datetime-pickers,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers{display:flex}.keen-explorer .filters-container .list .row .row-part .datetime-pickers .DateInput,.keen-explorer .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .DateInput,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .DateInput,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput{width:100%}.keen-explorer .filters-container .list .row .row-part .datetime-pickers .SingleDatePicker,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .SingleDatePicker,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .SingleDatePicker{flex:1;margin-right:.1rem}.keen-explorer .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput__withBorder,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput__withBorder,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput__withBorder{border:0}.keen-explorer .filters-container .list .row .row-part .datetime-pickers input.DateInput_input,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers input.DateInput_input,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers input.DateInput_input{padding:.333rem;text-align:center;height:2.3rem}.keen-explorer .filters-container .list .row .row-part .datetime-pickers .rc-time-picker,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .rc-time-picker,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .rc-time-picker{flex:1}.keen-explorer .filters-container .list .row .row-part .datetime-pickers input.rc-time-picker-input,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers input.rc-time-picker-input,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers input.rc-time-picker-input{padding:.3rem;text-align:center;height:auto;line-height:auto;height:2.3rem}.keen-explorer .filters-container .list .row .row-part .within-inputs input,.rc-time-picker-panel .filters-container .list .row .row-part .within-inputs input,.ReactModalPortal .filters-container .list .row .row-part .within-inputs input{margin-bottom:.2rem}.keen-explorer .filters-container .list .row .row-part .delete,.rc-time-picker-panel .filters-container .list .row .row-part .delete,.ReactModalPortal .filters-container .list .row .row-part .delete{cursor:pointer;display:flex;align-items:center;height:100%}.keen-explorer .filters-container .list .row .row-part .delete i,.rc-time-picker-panel .filters-container .list .row .row-part .delete i,.ReactModalPortal .filters-container .list .row .row-part .delete i{color:#ea7373;font-size:1rem;padding:.5rem}.keen-explorer .filters-container .list .row .no-flex,.rc-time-picker-panel .filters-container .list .row .no-flex,.ReactModalPortal .filters-container .list .row .no-flex{flex:0}.keen-explorer .filters-container .action-buttons,.rc-time-picker-panel .filters-container .action-buttons,.ReactModalPortal .filters-container .action-buttons{display:flex;align-items:center;justify-content:flex-end;margin-top:0}.keen-explorer .filters-container .action-buttons .button-add-filter,.rc-time-picker-panel .filters-container .action-buttons .button-add-filter,.ReactModalPortal .filters-container .action-buttons .button-add-filter{margin-right:1rem;cursor:pointer;text-transform:uppercase;padding:1rem 2rem;background:#eee;border-radius:.3rem}.keen-explorer .filters-container .action-buttons .button-add-filter i,.rc-time-picker-panel .filters-container .action-buttons .button-add-filter i,.ReactModalPortal .filters-container .action-buttons .button-add-filter i{margin-right:1rem}.keen-explorer .filters-container .action-buttons .button-done,.rc-time-picker-panel .filters-container .action-buttons .button-done,.ReactModalPortal .filters-container .action-buttons .button-done{cursor:pointer;color:#fff;background:#45b2e8;text-transform:uppercase;width:10rem;padding:1rem;text-align:center;border-radius:.3rem}.keen-explorer .filters-container .action-buttons .button-done i,.rc-time-picker-panel .filters-container .action-buttons .button-done i,.ReactModalPortal .filters-container .action-buttons .button-done i{margin-right:1rem}@media screen and (max-width:1000px){.keen-explorer .filters-container .list .row,.rc-time-picker-panel .filters-container .list .row,.ReactModalPortal .filters-container .list .row{flex-direction:column}.keen-explorer .filters-container .list .row .row-part,.rc-time-picker-panel .filters-container .list .row .row-part,.ReactModalPortal .filters-container .list .row .row-part{margin-bottom:.3rem}.keen-explorer .filters-container .list .row .delete,.rc-time-picker-panel .filters-container .list .row .delete,.ReactModalPortal .filters-container .list .row .delete{float:right;padding-right:1rem}}.keen-explorer .modal-main,.rc-time-picker-panel .modal-main,.ReactModalPortal .modal-main{display:flex;flex-direction:column;height:100%;width:100%}.keen-explorer .modal-main .header,.rc-time-picker-panel .modal-main .header,.ReactModalPortal .modal-main .header{flex:0;border-bottom:1px solid #eee;padding-bottom:1rem}.keen-explorer .modal-main .header .title,.rc-time-picker-panel .modal-main .header .title,.ReactModalPortal .modal-main .header .title{float:left}.keen-explorer .modal-main .header .x,.rc-time-picker-panel .modal-main .header .x,.ReactModalPortal .modal-main .header .x{color:#565656;float:right;font-weight:700;cursor:pointer;padding:1rem;margin:-2rem -1rem;font-size:2rem}.keen-explorer .modal-main .container,.rc-time-picker-panel .modal-main .container,.ReactModalPortal .modal-main .container{flex:1;padding:1rem 0;clear:both;width:100%;overflow-y:scroll;white-space:pre-wrap}.keen-explorer .modal-main .button-copy,.rc-time-picker-panel .modal-main .button-copy,.ReactModalPortal .modal-main .button-copy{padding:1rem;width:10rem;text-align:center;cursor:pointer;background:#1e93d8;color:#fff;border-radius:.5rem;margin-top:1rem}.keen-explorer .modal-main .button-copy:active,.rc-time-picker-panel .modal-main .button-copy:active,.ReactModalPortal .modal-main .button-copy:active{background:#30a1e4}.keen-explorer .ReactModal__Overlay,.rc-time-picker-panel .ReactModal__Overlay,.ReactModalPortal .ReactModal__Overlay{z-index:9999}.keen-explorer .saved-query,.rc-time-picker-panel .saved-query,.ReactModalPortal .saved-query{margin:1rem 0;border:1px solid #e8e8e8;background:#fcfcfc;padding:1rem;border-radius:.3rem}.keen-explorer .saved-query .input-name,.rc-time-picker-panel .saved-query .input-name,.ReactModalPortal .saved-query .input-name{font-size:.88rem;padding:1rem;border-radius:.3rem;border:1px solid #e8e8e8;width:100%}.keen-explorer .saved-query .resource-name,.rc-time-picker-panel .saved-query .resource-name,.ReactModalPortal .saved-query .resource-name{padding:1rem .2rem 0;display:flex;overflow:hidden;font-size:.8rem}.keen-explorer .saved-query .resource-name .line,.rc-time-picker-panel .saved-query .resource-name .line,.ReactModalPortal .saved-query .resource-name .line{flex:1;white-space:nowrap}.keen-explorer .saved-query .resource-name .line span,.rc-time-picker-panel .saved-query .resource-name .line span,.ReactModalPortal .saved-query .resource-name .line span{white-space:nowrap;overflow:hidden;flex:1}.keen-explorer .saved-query .resource-name .line i,.rc-time-picker-panel .saved-query .resource-name .line i,.ReactModalPortal .saved-query .resource-name .line i{flex:0}.keen-explorer .saved-query .resource-name .line-label,.rc-time-picker-panel .saved-query .resource-name .line-label,.ReactModalPortal .saved-query .resource-name .line-label{flex:0;margin-right:.5rem}.keen-explorer .saved-query .cache,.rc-time-picker-panel .saved-query .cache,.ReactModalPortal .saved-query .cache{padding:1rem 0 0;max-width:12rem}.keen-explorer .saved-query .cache .line-checkbox,.rc-time-picker-panel .saved-query .cache .line-checkbox,.ReactModalPortal .saved-query .cache .line-checkbox{display:flex}.keen-explorer .saved-query .cache .line-checkbox input,.rc-time-picker-panel .saved-query .cache .line-checkbox input,.ReactModalPortal .saved-query .cache .line-checkbox input{margin-right:.5rem;outline:none}.keen-explorer .saved-query .cache .line-checkbox label,.rc-time-picker-panel .saved-query .cache .line-checkbox label,.ReactModalPortal .saved-query .cache .line-checkbox label{cursor:pointer}.keen-explorer .saved-query .cache .cache-toggle,.rc-time-picker-panel .saved-query .cache .cache-toggle,.ReactModalPortal .saved-query .cache .cache-toggle{display:flex;align-items:center;cursor:pointer;color:#128296}.keen-explorer .saved-query .cache i,.rc-time-picker-panel .saved-query .cache i,.ReactModalPortal .saved-query .cache i{font-size:1.3rem;margin-right:.6rem}.keen-explorer .saved-query .cache .fa-toggle-off,.rc-time-picker-panel .saved-query .cache .fa-toggle-off,.ReactModalPortal .saved-query .cache .fa-toggle-off{color:#7b7b7b}.keen-explorer .saved-query .button-copy,.rc-time-picker-panel .saved-query .button-copy,.ReactModalPortal .saved-query .button-copy{padding:.7rem;right:0;bottom:0;border:0;cursor:pointer;display:inline}.keen-explorer .saved-query .buttons *,.rc-time-picker-panel .saved-query .buttons *,.ReactModalPortal .saved-query .buttons *{margin-top:1rem;padding:.88rem 1.76rem;border-radius:.3rem;font-size:.88rem;cursor:pointer;text-transform:uppercase;border:0;font-weight:600}.keen-explorer .saved-query .buttons .button-save,.rc-time-picker-panel .saved-query .buttons .button-save,.ReactModalPortal .saved-query .buttons .button-save{color:#fff;background:#45b2e8}.keen-explorer .saved-query .buttons .button-clone,.rc-time-picker-panel .saved-query .buttons .button-clone,.ReactModalPortal .saved-query .buttons .button-clone{margin-left:1rem;color:#45b2e8;background:transparent;border:1px solid #eee}.keen-explorer .saved-query .buttons .button-delete,.rc-time-picker-panel .saved-query .buttons .button-delete,.ReactModalPortal .saved-query .buttons .button-delete{float:right;color:#6f6c6c;background:transparent;border:1px solid #eee}.keen-explorer .saved-query .button-copy:active,.rc-time-picker-panel .saved-query .button-copy:active,.ReactModalPortal .saved-query .button-copy:active{background:#fff}.keen-explorer .saved-queries,.rc-time-picker-panel .saved-queries,.ReactModalPortal .saved-queries{overflow:scroll;min-height:100%;max-height:44rem}.keen-explorer .saved-queries .input-filter,.rc-time-picker-panel .saved-queries .input-filter,.ReactModalPortal .saved-queries .input-filter{width:100%;padding:.6rem;font-size:.9rem;border:1px solid #ccc;margin:.5rem 0;border-radius:.3rem}.keen-explorer .saved-queries .item,.rc-time-picker-panel .saved-queries .item,.ReactModalPortal .saved-queries .item{padding:1rem;cursor:pointer;overflow:auto;border-bottom:1px solid #f3f3f3}.keen-explorer .saved-queries .item .name,.rc-time-picker-panel .saved-queries .item .name,.ReactModalPortal .saved-queries .item .name{margin:0 0 .5rem}.keen-explorer .saved-queries .item .cached,.rc-time-picker-panel .saved-queries .item .cached,.ReactModalPortal .saved-queries .item .cached{float:left}.keen-explorer .saved-queries .item .cached *,.rc-time-picker-panel .saved-queries .item .cached *,.ReactModalPortal .saved-queries .item .cached *{font-size:.6rem;text-transform:uppercase}.keen-explorer .saved-queries .item .data,.rc-time-picker-panel .saved-queries .item .data,.ReactModalPortal .saved-queries .item .data{float:right;font-size:.7rem}.keen-explorer .saved-queries .active,.rc-time-picker-panel .saved-queries .active,.ReactModalPortal .saved-queries .active{background:#f7f7f7}.keen-explorer .funnel .content,.rc-time-picker-panel .funnel .content,.ReactModalPortal .funnel .content{padding:.3rem .5rem}.keen-explorer .funnel .input-text,.rc-time-picker-panel .funnel .input-text,.ReactModalPortal .funnel .input-text{width:100%}.keen-explorer .funnel .button,.rc-time-picker-panel .funnel .button,.ReactModalPortal .funnel .button{cursor:pointer}.keen-explorer .funnel .button-delete,.rc-time-picker-panel .funnel .button-delete,.ReactModalPortal .funnel .button-delete{color:#797979}.keen-explorer .funnel .button-add,.rc-time-picker-panel .funnel .button-add,.ReactModalPortal .funnel .button-add{margin-top:1rem;padding:.7rem;background:#fdfdfd;border:1px solid #e8e8e8;border-radius:5px;display:inline-block}.keen-explorer .funnel .button-add i,.rc-time-picker-panel .funnel .button-add i,.ReactModalPortal .funnel .button-add i{margin-right:.3rem}.keen-explorer .funnel .line-options,.rc-time-picker-panel .funnel .line-options,.ReactModalPortal .funnel .line-options{margin:1rem 0 0}.keen-explorer .funnel .line-checkbox,.rc-time-picker-panel .funnel .line-checkbox,.ReactModalPortal .funnel .line-checkbox{margin:.5rem 0 0}.keen-explorer .funnel .line-checkbox input,.rc-time-picker-panel .funnel .line-checkbox input,.ReactModalPortal .funnel .line-checkbox input{margin-right:.5rem}.keen-explorer .funnel .line-checkbox label,.rc-time-picker-panel .funnel .line-checkbox label,.ReactModalPortal .funnel .line-checkbox label{cursor:pointer}.keen-explorer .funnel .step-switch-position-buttons,.rc-time-picker-panel .funnel .step-switch-position-buttons,.ReactModalPortal .funnel .step-switch-position-buttons{float:left;margin:-.5rem .8rem 0 0;color:#797979}.keen-explorer .funnel .step-switch-position-buttons .move-up,.rc-time-picker-panel .funnel .step-switch-position-buttons .move-up,.ReactModalPortal .funnel .step-switch-position-buttons .move-up{margin-top:.1rem}.keen-explorer .funnel .step-switch-position-buttons .move-down,.rc-time-picker-panel .funnel .step-switch-position-buttons .move-down,.ReactModalPortal .funnel .step-switch-position-buttons .move-down{margin-top:-.3rem}.keen-explorer .keen-dataviz,.rc-time-picker-panel .keen-dataviz,.ReactModalPortal .keen-dataviz{font-family:inherit!important}.keen-explorer .keen-dataviz .keen-c3-legend .legend-item-text,.rc-time-picker-panel .keen-dataviz .keen-c3-legend .legend-item-text,.ReactModalPortal .keen-dataviz .keen-c3-legend .legend-item-text{font-size:1em}.keen-explorer .keen-dataviz-container,.rc-time-picker-panel .keen-dataviz-container,.ReactModalPortal .keen-dataviz-container{height:calc(100% - 3rem);overflow:hidden}.keen-explorer .keen-dataviz-metric-value,.rc-time-picker-panel .keen-dataviz-metric-value,.ReactModalPortal .keen-dataviz-metric-value{font-size:4rem!important}.keen-explorer .keen-dataviz .c3 svg g text tspan,.rc-time-picker-panel .keen-dataviz .c3 svg g text tspan,.ReactModalPortal .keen-dataviz .c3 svg g text tspan{font-size:10px!important}.keen-explorer .a-preview-collection,.rc-time-picker-panel .a-preview-collection,.ReactModalPortal .a-preview-collection{padding:.5rem;margin:0 0 1rem;cursor:pointer;background:#fafafa;border-radius:.3rem}.keen-explorer .a-preview-collection i,.rc-time-picker-panel .a-preview-collection i,.ReactModalPortal .a-preview-collection i{font-size:.8em;margin-right:.2rem}.keen-explorer .preview-collection-content,.rc-time-picker-panel .preview-collection-content,.ReactModalPortal .preview-collection-content{display:flex;flex-direction:row}.keen-explorer .preview-collection-content .input-filter,.rc-time-picker-panel .preview-collection-content .input-filter,.ReactModalPortal .preview-collection-content .input-filter{width:100%;padding:.6rem;font-size:.9rem;border:1px solid #ccc;margin:.5rem 0;border-radius:.3rem}.keen-explorer .preview-collection-content .list,.rc-time-picker-panel .preview-collection-content .list,.ReactModalPortal .preview-collection-content .list{height:100%;overflow-y:scroll;flex:1}.keen-explorer .preview-collection-content .list .item,.rc-time-picker-panel .preview-collection-content .list .item,.ReactModalPortal .preview-collection-content .list .item{cursor:pointer;padding:1rem;overflow:auto;border-bottom:1px solid #f3f3f3}.keen-explorer .preview-collection-content .list .active,.rc-time-picker-panel .preview-collection-content .list .active,.ReactModalPortal .preview-collection-content .list .active{background:#f7f7f7}.keen-explorer .preview-collection-content .content,.rc-time-picker-panel .preview-collection-content .content,.ReactModalPortal .preview-collection-content .content{flex:3;height:100%;padding:.5rem 0 .5rem 1rem}.keen-explorer .preview-collection-content .content .tabs .tab,.rc-time-picker-panel .preview-collection-content .content .tabs .tab,.ReactModalPortal .preview-collection-content .content .tabs .tab{flex:none;padding:1rem 1.5rem}.keen-explorer .preview-collection-content .content .tabs .tab-placeholder,.rc-time-picker-panel .preview-collection-content .content .tabs .tab-placeholder,.ReactModalPortal .preview-collection-content .content .tabs .tab-placeholder{flex:1;border-bottom:1px solid #e8e8e8}.keen-explorer .preview-collection-content .content .tab-content,.rc-time-picker-panel .preview-collection-content .content .tab-content,.ReactModalPortal .preview-collection-content .content .tab-content{height:100%;width:100%;overflow:scroll;padding-bottom:4rem}@media screen and (max-width:900px){.keen-explorer .preview-collection-content,.rc-time-picker-panel .preview-collection-content,.ReactModalPortal .preview-collection-content{flex-direction:column}.keen-explorer .preview-collection-content .content,.keen-explorer .preview-collection-content .list,.rc-time-picker-panel .preview-collection-content .content,.rc-time-picker-panel .preview-collection-content .list,.ReactModalPortal .preview-collection-content .content,.ReactModalPortal .preview-collection-content .list{height:auto;overflow-y:visible;padding:0}.keen-explorer .preview-collection-content .content,.rc-time-picker-panel .preview-collection-content .content,.ReactModalPortal .preview-collection-content .content{padding-top:2rem}}.keen-explorer .preview .download-toggle-label,.rc-time-picker-panel .preview .download-toggle-label,.ReactModalPortal .preview .download-toggle-label{padding:1rem;cursor:pointer}.keen-explorer .preview .download-toggle-label i,.rc-time-picker-panel .preview .download-toggle-label i,.ReactModalPortal .preview .download-toggle-label i{margin-right:.5rem}.keen-explorer .preview .download-buttons,.rc-time-picker-panel .preview .download-buttons,.ReactModalPortal .preview .download-buttons{position:absolute;background:#fafafa;display:flex;flex-direction:column;box-shadow:2px 3px 4px rgba(0,0,0,.05);margin-top:-2px}.keen-explorer .preview .download-buttons .button-download,.rc-time-picker-panel .preview .download-buttons .button-download,.ReactModalPortal .preview .download-buttons .button-download{padding:1rem 3rem}.keen-explorer *,.rc-time-picker-panel *,.ReactModalPortal *{box-sizing:border-box;font-size:.88rem}.keen-explorer button,.rc-time-picker-panel button,.ReactModalPortal button{margin:2rem 0 0;padding:1rem}.keen-explorer .label-main,.rc-time-picker-panel .label-main,.ReactModalPortal .label-main{padding:1rem 0 .3rem}.keen-explorer .hide,.rc-time-picker-panel .hide,.ReactModalPortal .hide{display:none}.keen-explorer input:focus,.rc-time-picker-panel input:focus,.ReactModalPortal input:focus{outline:2px solid #00bbde}.keen-explorer .panel-main,.rc-time-picker-panel .panel-main,.ReactModalPortal .panel-main{flex:1;min-width:26rem;box-shadow:-3px 7px 11px rgba(0,0,0,.1);border-radius:.3rem}.keen-explorer .panel-main .panel-buttons .button-new-query,.rc-time-picker-panel .panel-main .panel-buttons .button-new-query,.ReactModalPortal .panel-main .panel-buttons .button-new-query{flex:none;cursor:pointer}.keen-explorer .panel-main .panel-content,.rc-time-picker-panel .panel-main .panel-content,.ReactModalPortal .panel-main .panel-content{padding:1rem}.keen-explorer .panel-main .panel-content .label-analysis-type,.rc-time-picker-panel .panel-main .panel-content .label-analysis-type,.ReactModalPortal .panel-main .panel-content .label-analysis-type{padding-top:0}.keen-explorer .result,.rc-time-picker-panel .result,.ReactModalPortal .result{flex:3;padding:0 1.5rem;overflow:hidden}.keen-explorer .foldable,.rc-time-picker-panel .foldable,.ReactModalPortal .foldable{margin-top:.5rem;border:1px solid #e8e8e8;background:#fdfdfd;padding:.5rem;cursor:pointer;border-radius:5px}.keen-explorer .foldable-active,.rc-time-picker-panel .foldable-active,.ReactModalPortal .foldable-active{background:none}.keen-explorer .foldable .title,.rc-time-picker-panel .foldable .title,.ReactModalPortal .foldable .title{padding:.5rem}.keen-explorer .foldable .title .foldable-icon,.rc-time-picker-panel .foldable .title .foldable-icon,.ReactModalPortal .foldable .title .foldable-icon{float:right}.keen-explorer .foldable .content,.rc-time-picker-panel .foldable .content,.ReactModalPortal .foldable .content{margin-top:.5rem;padding:0}.keen-explorer .foldable .tab-content,.rc-time-picker-panel .foldable .tab-content,.ReactModalPortal .foldable .tab-content{border:0}.keen-explorer .filters,.rc-time-picker-panel .filters,.ReactModalPortal .filters{display:flex}.keen-explorer .filters .title,.rc-time-picker-panel .filters .title,.ReactModalPortal .filters .title{flex:1}.keen-explorer .filters .count,.rc-time-picker-panel .filters .count,.ReactModalPortal .filters .count{align-self:center;text-align:right;padding:0 .5rem 0 0}.keen-explorer .optional,.rc-time-picker-panel .optional,.ReactModalPortal .optional{margin-left:1em;font-size:.7em;color:#ddd;color:#737373}.keen-explorer .group-by .label-main,.rc-time-picker-panel .group-by .label-main,.ReactModalPortal .group-by .label-main{padding:0 0 .5rem}.keen-explorer .group-by .btn-minus,.keen-explorer .group-by .btn-plus,.rc-time-picker-panel .group-by .btn-minus,.rc-time-picker-panel .group-by .btn-plus,.ReactModalPortal .group-by .btn-minus,.ReactModalPortal .group-by .btn-plus{margin-top:1rem;padding:.7rem;background:#fdfdfd;border:1px solid #e8e8e8;border-radius:5px;display:inline-block}.keen-explorer .group-by .options,.rc-time-picker-panel .group-by .options,.ReactModalPortal .group-by .options{margin-top:1rem;display:flex}.keen-explorer .group-by .options .order-by,.rc-time-picker-panel .group-by .options .order-by,.ReactModalPortal .group-by .options .order-by{width:8em;padding-right:1rem}.keen-explorer .group-by .options .order-by .select,.rc-time-picker-panel .group-by .options .order-by .select,.ReactModalPortal .group-by .options .order-by .select{width:100%}.keen-explorer .group-by .options .limit,.rc-time-picker-panel .group-by .options .limit,.ReactModalPortal .group-by .options .limit{width:8em}.keen-explorer .group-by .options .limit .input,.rc-time-picker-panel .group-by .options .limit .input,.ReactModalPortal .group-by .options .limit .input{width:100%}.keen-explorer .group-by .additional-target-property,.rc-time-picker-panel .group-by .additional-target-property,.ReactModalPortal .group-by .additional-target-property{margin-top:1rem;padding-top:1rem;border-top:1px solid #f1f1f1}.keen-explorer .lets-go,.rc-time-picker-panel .lets-go,.ReactModalPortal .lets-go{display:flex;width:100%;height:390px;justify-content:center;align-items:center;color:#9b9b9b;background:#fafafa}.keen-explorer .tabs,.rc-time-picker-panel .tabs,.ReactModalPortal .tabs{display:flex}.keen-explorer .tabs .tab,.rc-time-picker-panel .tabs .tab,.ReactModalPortal .tabs .tab{flex:1;padding:1rem;background:#fafafa;cursor:pointer;border:1px solid #e8e8e8;border-radius:5px 5px 0 0}.keen-explorer .tabs .active,.rc-time-picker-panel .tabs .active,.ReactModalPortal .tabs .active{background:#fff;border-bottom:1px solid #fff}.keen-explorer .panel-buttons .active,.rc-time-picker-panel .panel-buttons .active,.ReactModalPortal .panel-buttons .active{border-right:0}.keen-explorer .tab-content,.rc-time-picker-panel .tab-content,.ReactModalPortal .tab-content{padding:1rem;border:1px solid #e8e8e8;border-top:none}.keen-explorer .input-number,.keen-explorer .input-text,.rc-time-picker-panel .input-number,.rc-time-picker-panel .input-text,.ReactModalPortal .input-number,.ReactModalPortal .input-text{font-size:.88rem;padding:.5rem .6rem;border-radius:5px;border:1px solid #ccc;font-weight:400;line-height:normal}.keen-explorer .interval .standard-units,.rc-time-picker-panel .interval .standard-units,.ReactModalPortal .interval .standard-units{width:10rem}.keen-explorer .interval .line,.rc-time-picker-panel .interval .line,.ReactModalPortal .interval .line{display:flex;align-items:center}.keen-explorer .interval .line .title,.rc-time-picker-panel .interval .line .title,.ReactModalPortal .interval .line .title{margin-right:1rem}.keen-explorer .interval .line .input-number,.rc-time-picker-panel .interval .line .input-number,.ReactModalPortal .interval .line .input-number{width:4rem;margin-right:.5rem}.keen-explorer .interval .line .time-units,.rc-time-picker-panel .interval .line .time-units,.ReactModalPortal .interval .line .time-units{width:10rem}.keen-explorer .timeframe,.rc-time-picker-panel .timeframe,.ReactModalPortal .timeframe{margin-bottom:.5rem}.keen-explorer .timeframe .relative,.rc-time-picker-panel .timeframe .relative,.ReactModalPortal .timeframe .relative{display:flex}.keen-explorer .timeframe .relative .input-number,.keen-explorer .timeframe .relative .relativity,.rc-time-picker-panel .timeframe .relative .input-number,.rc-time-picker-panel .timeframe .relative .relativity,.ReactModalPortal .timeframe .relative .input-number,.ReactModalPortal .timeframe .relative .relativity{margin-right:.5rem}.keen-explorer .timeframe .relative .relativity,.keen-explorer .timeframe .relative .units,.rc-time-picker-panel .timeframe .relative .relativity,.rc-time-picker-panel .timeframe .relative .units,.ReactModalPortal .timeframe .relative .relativity,.ReactModalPortal .timeframe .relative .units{flex:0;max-width:12rem;min-width:6rem}.keen-explorer .timeframe .relative .input-number,.rc-time-picker-panel .timeframe .relative .input-number,.ReactModalPortal .timeframe .relative .input-number{flex:1;min-width:6rem}.keen-explorer .timeframe .description,.rc-time-picker-panel .timeframe .description,.ReactModalPortal .timeframe .description{margin-top:.5rem;padding:1rem;background:#fafafa}.keen-explorer .timeframe .tabAbsolute .DateRangePickerInput_arrow,.rc-time-picker-panel .timeframe .tabAbsolute .DateRangePickerInput_arrow,.ReactModalPortal .timeframe .tabAbsolute .DateRangePickerInput_arrow{display:none}.keen-explorer .timeframe .tabAbsolute .DateInput,.rc-time-picker-panel .timeframe .tabAbsolute .DateInput,.ReactModalPortal .timeframe .tabAbsolute .DateInput{width:8rem;background:none}.keen-explorer .timeframe .tabAbsolute .DateInput_input,.rc-time-picker-panel .timeframe .tabAbsolute .DateInput_input,.ReactModalPortal .timeframe .tabAbsolute .DateInput_input{padding:.5rem;font-size:.88rem;line-height:normal;color:#000;font-weight:400;border-radius:5px}.keen-explorer .timeframe .tabAbsolute .rc-time-picker-input,.rc-time-picker-panel .timeframe .tabAbsolute .rc-time-picker-input,.ReactModalPortal .timeframe .tabAbsolute .rc-time-picker-input{font-size:.88rem;line-height:normal;font-weight:400;color:#000;height:2.4rem;width:7rem;border-radius:5px}.keen-explorer .timeframe .tabAbsolute .line,.rc-time-picker-panel .timeframe .tabAbsolute .line,.ReactModalPortal .timeframe .tabAbsolute .line{display:flex;align-items:center;margin:.5rem}.keen-explorer .timeframe .tabAbsolute .line .title,.rc-time-picker-panel .timeframe .tabAbsolute .line .title,.ReactModalPortal .timeframe .tabAbsolute .line .title{width:4rem}.keen-explorer .timeframe .tabAbsolute .line .SingleDatePicker,.rc-time-picker-panel .timeframe .tabAbsolute .line .SingleDatePicker,.ReactModalPortal .timeframe .tabAbsolute .line .SingleDatePicker{margin-right:.5rem}.keen-explorer .timeframe .tabAbsolute .line .SingleDatePickerInput__withBorder,.rc-time-picker-panel .timeframe .tabAbsolute .line .SingleDatePickerInput__withBorder,.ReactModalPortal .timeframe .tabAbsolute .line .SingleDatePickerInput__withBorder{border-radius:5px;border:1px solid #dbdbdb}.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-inner,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-inner,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-inner{box-shadow:none;border-radius:5px}.keen-explorer .rc-time-picker-panel .rc-time-picker-input,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-input,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-input{font-size:.88rem;line-height:normal;font-weight:400;color:#000;height:2.4rem;width:8rem;border-radius:5px}.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-select,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-select,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-select{font-size:.88rem}.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-select li,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-select li,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-select li{height:2rem;line-height:2rem}.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-input,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-input,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-input{font-size:.88rem}.keen-explorer .apiQueryUrl,.rc-time-picker-panel .apiQueryUrl,.ReactModalPortal .apiQueryUrl{cursor:pointer;padding:1rem;display:flex;align-items:center;width:100%;font-size:.8rem}.keen-explorer .apiQueryUrl input,.rc-time-picker-panel .apiQueryUrl input,.ReactModalPortal .apiQueryUrl input{flex:1;margin:0 1rem}.keen-explorer .fa-copy:active,.rc-time-picker-panel .fa-copy:active,.ReactModalPortal .fa-copy:active{color:#00bbde}.keen-explorer .button-run-query,.rc-time-picker-panel .button-run-query,.ReactModalPortal .button-run-query{font-size:.88rem;text-transform:uppercase;border-radius:.3rem;background:#3ecf8e;color:#fff;font-weight:600;border:0;padding:.88rem 1.76rem;cursor:pointer;margin:0}.keen-explorer .button-with-loading-spinner .loading-spinner,.rc-time-picker-panel .button-with-loading-spinner .loading-spinner,.ReactModalPortal .button-with-loading-spinner .loading-spinner{display:inline-block;margin:0 .5rem 0 -.5rem;padding:0}.keen-explorer .button-with-loading-spinner .loading-spinner i,.rc-time-picker-panel .button-with-loading-spinner .loading-spinner i,.ReactModalPortal .button-with-loading-spinner .loading-spinner i{margin:0;padding:0;font-size:1rem}.keen-explorer .error,.rc-time-picker-panel .error,.ReactModalPortal .error{padding:1rem;background:#ffe5e5;margin:1rem 0}.keen-explorer .box-info,.rc-time-picker-panel .box-info,.ReactModalPortal .box-info{padding:1rem;background:#f1faff}.keen-explorer .tab-content .box-info,.rc-time-picker-panel .tab-content .box-info,.ReactModalPortal .tab-content .box-info{margin:-1rem}.keen-explorer .preview,.rc-time-picker-panel .preview,.ReactModalPortal .preview{display:flex;flex-direction:row;flex-wrap:wrap;background:#fafafa}.keen-explorer .preview .loader,.rc-time-picker-panel .preview .loader,.ReactModalPortal .preview .loader{width:100%;height:340px;display:flex;align-items:center;justify-content:center;font-size:5rem;color:#eee}.keen-explorer .preview .keen-dataviz-container,.keen-explorer .preview .react-json-view,.rc-time-picker-panel .preview .keen-dataviz-container,.rc-time-picker-panel .preview .react-json-view,.ReactModalPortal .preview .keen-dataviz-container,.ReactModalPortal .preview .react-json-view{width:100%;height:340px;background:#fff;overflow-y:scroll}.keen-explorer .preview .react-json-view,.rc-time-picker-panel .preview .react-json-view,.ReactModalPortal .preview .react-json-view{padding:1rem}.keen-explorer .preview .select-chart-type-container,.rc-time-picker-panel .preview .select-chart-type-container,.ReactModalPortal .preview .select-chart-type-container{flex:1;order:1;display:flex;align-self:center;flex-direction:column;justify-content:flex-end;margin:.3rem}.keen-explorer .preview .select-chart-type,.rc-time-picker-panel .preview .select-chart-type,.ReactModalPortal .preview .select-chart-type{flex:1;width:20rem;align-self:flex-end}.keen-explorer .preview .chart-not-supported-note,.rc-time-picker-panel .preview .chart-not-supported-note,.ReactModalPortal .preview .chart-not-supported-note{float:right;text-align:right;padding:.5rem}.keen-explorer .preview .button-download,.rc-time-picker-panel .preview .button-download,.ReactModalPortal .preview .button-download{order:0;background:transparent;border:0;margin:0;cursor:pointer;font-size:.8rem}.keen-explorer .preview .button-download i,.rc-time-picker-panel .preview .button-download i,.ReactModalPortal .preview .button-download i{margin-right:.5rem}.keen-explorer .action-buttons,.keen-explorer .chartType,.rc-time-picker-panel .action-buttons,.rc-time-picker-panel .chartType,.ReactModalPortal .action-buttons,.ReactModalPortal .chartType{margin-top:1rem}.keen-explorer .button-toggle,.rc-time-picker-panel .button-toggle,.ReactModalPortal .button-toggle{margin-left:1rem;display:inline;cursor:pointer;border-radius:.3rem;font-size:.88rem;font-weight:600;text-transform:uppercase;color:#3ecf8e;color:#45b2e8;background:#fcfcfc;border:1px solid #efefef;padding:.88rem 1.76rem}.keen-explorer .button-toggle i,.rc-time-picker-panel .button-toggle i,.ReactModalPortal .button-toggle i{margin-left:1rem}.keen-explorer .button-toggle-active,.rc-time-picker-panel .button-toggle-active,.ReactModalPortal .button-toggle-active{background:#fff}.keen-explorer .result-string,.rc-time-picker-panel .result-string,.ReactModalPortal .result-string{display:flex;justify-content:center;align-items:center}.keen-explorer .CalendarDay__selected,.keen-explorer .CalendarDay__selected:active,.keen-explorer .CalendarDay__selected:hover,.rc-time-picker-panel .CalendarDay__selected,.rc-time-picker-panel .CalendarDay__selected:active,.rc-time-picker-panel .CalendarDay__selected:hover,.ReactModalPortal .CalendarDay__selected,.ReactModalPortal .CalendarDay__selected:active,.ReactModalPortal .CalendarDay__selected:hover{background:#00bbde;border:1px double #00bbde}.keen-explorer .DayPickerKeyboardShortcuts_show__bottomRight:before,.rc-time-picker-panel .DayPickerKeyboardShortcuts_show__bottomRight:before,.ReactModalPortal .DayPickerKeyboardShortcuts_show__bottomRight:before{border-right:33px solid #00bbde}.keen-explorer .DateInput_input__focused,.rc-time-picker-panel .DateInput_input__focused,.ReactModalPortal .DateInput_input__focused{border-bottom:2px solid #00bbde}.keen-explorer .loading-spinner i,.rc-time-picker-panel .loading-spinner i,.ReactModalPortal .loading-spinner i{font-size:1.5rem}.keen-explorer .fa-spin,.rc-time-picker-panel .fa-spin,.ReactModalPortal .fa-spin{animation:fa-spin 1s infinite linear}.keen-explorer .react-select-option,.rc-time-picker-panel .react-select-option,.ReactModalPortal .react-select-option{padding:.7rem 1rem}.keen-explorer .react-json-view .string-value,.rc-time-picker-panel .react-json-view .string-value,.ReactModalPortal .react-json-view .string-value{word-break:break-word}@media screen and (max-width:1000px){.keenExplorer{flex-direction:column}.keenExplorer .panel{box-shadow:none;min-width:none}.keenExplorer .panel .panel-content{padding:0 1rem}.keenExplorer .result{display:flex;flex-direction:column}.keenExplorer .result .lets-go,.keenExplorer .result .preview{order:1}.keenExplorer .result .error{margin-bottom:0}.keenExplorer .result .button-run-query{order:0}.keenExplorer .result .button-toggle,.keenExplorer .result .saved-query{order:3}.keenExplorer .result .action-buttons{margin-bottom:1rem}.filters-container .delete{margin-top:.5rem}} \ No newline at end of file +.dev-body{margin:2rem auto;width:100%;max-width:1500px}.dev-reload-button{position:absolute;left:1rem;top:1rem;color:#ccc}.keen-explorer-template{margin:0 auto;width:100%;max-width:1500px}.keen-explorer-template #keen-explorer-container{padding:1rem}.PresetDateRangePicker_panel{padding:0 22px 11px}.PresetDateRangePicker_button{position:relative;height:100%;text-align:center;background:0 0;border:2px solid #00a699;color:#00a699;padding:4px 12px;margin-right:8px;font:inherit;font-weight:700;line-height:normal;overflow:visible;box-sizing:border-box;cursor:pointer}.PresetDateRangePicker_button:active{outline:0}.PresetDateRangePicker_button__selected{color:#fff;background:#00a699}.SingleDatePickerInput{display:inline-block;background-color:#fff}.SingleDatePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.SingleDatePickerInput__rtl{direction:rtl}.SingleDatePickerInput__disabled{background-color:#f2f2f2}.SingleDatePickerInput__block{display:block}.SingleDatePickerInput__showClearDate{padding-right:30px}.SingleDatePickerInput_clearDate{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.SingleDatePickerInput_clearDate__default:focus,.SingleDatePickerInput_clearDate__default:hover{background:#dbdbdb;border-radius:50%}.SingleDatePickerInput_clearDate__small{padding:6px}.SingleDatePickerInput_clearDate__hide{visibility:hidden}.SingleDatePickerInput_clearDate_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.SingleDatePickerInput_clearDate_svg__small{height:9px}.SingleDatePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.SingleDatePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.SingleDatePicker{position:relative;display:inline-block}.SingleDatePicker__block{display:block}.SingleDatePicker_picker{z-index:1;background-color:#fff;position:absolute}.SingleDatePicker_picker__rtl{direction:rtl}.SingleDatePicker_picker__directionLeft{left:0}.SingleDatePicker_picker__directionRight{right:0}.SingleDatePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.SingleDatePicker_picker__fullScreenPortal{background-color:#fff}.SingleDatePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.SingleDatePicker_closeButton:focus,.SingleDatePicker_closeButton:hover{color:darken(#cacccd,10%);text-decoration:none}.SingleDatePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_buttonReset{background:0 0;border:0;border-radius:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;cursor:pointer;font-size:14px}.DayPickerKeyboardShortcuts_buttonReset:active{outline:0}.DayPickerKeyboardShortcuts_show{width:33px;height:26px;position:absolute;z-index:2}.DayPickerKeyboardShortcuts_show:before{content:"";display:block;position:absolute}.DayPickerKeyboardShortcuts_show__bottomRight{bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:before{border-top:26px solid transparent;border-right:33px solid #00a699;bottom:0;right:0}.DayPickerKeyboardShortcuts_show__bottomRight:hover:before{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topRight{top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:before{border-bottom:26px solid transparent;border-right:33px solid #00a699;top:0;right:0}.DayPickerKeyboardShortcuts_show__topRight:hover:before{border-right:33px solid #008489}.DayPickerKeyboardShortcuts_show__topLeft{top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:before{border-bottom:26px solid transparent;border-left:33px solid #00a699;top:0;left:0}.DayPickerKeyboardShortcuts_show__topLeft:hover:before{border-left:33px solid #008489}.DayPickerKeyboardShortcuts_showSpan{color:#fff;position:absolute}.DayPickerKeyboardShortcuts_showSpan__bottomRight{bottom:0;right:5px}.DayPickerKeyboardShortcuts_showSpan__topRight{top:1px;right:5px}.DayPickerKeyboardShortcuts_showSpan__topLeft{top:1px;left:5px}.DayPickerKeyboardShortcuts_panel{overflow:auto;background:#fff;border:1px solid #dbdbdb;border-radius:2px;position:absolute;top:0;bottom:0;right:0;left:0;z-index:2;padding:22px;margin:33px;text-align:left}.DayPickerKeyboardShortcuts_title{font-size:16px;font-weight:700;margin:0}.DayPickerKeyboardShortcuts_list{list-style:none;padding:0;font-size:14px}.DayPickerKeyboardShortcuts_close{position:absolute;right:22px;top:22px;z-index:2}.DayPickerKeyboardShortcuts_close:active{outline:0}.DayPickerKeyboardShortcuts_closeSvg{height:15px;width:15px;fill:#cacccd}.DayPickerKeyboardShortcuts_closeSvg:focus,.DayPickerKeyboardShortcuts_closeSvg:hover{fill:#82888a}.CalendarDay{box-sizing:border-box;cursor:pointer;font-size:14px;text-align:center}.CalendarDay:active{outline:0}.CalendarDay__defaultCursor{cursor:default}.CalendarDay__default{border:1px solid #e4e7e7;color:#484848;background:#fff}.CalendarDay__default:hover{background:#e4e7e7;border:1px solid #e4e7e7;color:inherit}.CalendarDay__hovered_offset{background:#f4f5f5;border:1px double #e4e7e7;color:inherit}.CalendarDay__outside{border:0;background:#fff;color:#484848}.CalendarDay__outside:hover{border:0}.CalendarDay__blocked_minimum_nights{background:#fff;border:1px solid #eceeee;color:#cacccd}.CalendarDay__blocked_minimum_nights:active,.CalendarDay__blocked_minimum_nights:hover{background:#fff;color:#cacccd}.CalendarDay__highlighted_calendar{background:#ffe8bc;color:#484848}.CalendarDay__highlighted_calendar:active,.CalendarDay__highlighted_calendar:hover{background:#ffce71;color:#484848}.CalendarDay__selected_span{background:#66e2da;border:1px double #33dacd;color:#fff}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:#33dacd;border:1px double #33dacd;color:#fff}.CalendarDay__last_in_range,.CalendarDay__last_in_range:hover{border-style:solid}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:#00a699;border:1px double #00a699;color:#fff}.CalendarDay__hovered_span,.CalendarDay__hovered_span:hover{background:#b2f1ec;border:1px double #80e8e0;color:#007a87}.CalendarDay__hovered_span:active{background:#80e8e0;border:1px double #80e8e0;color:#007a87}.CalendarDay__blocked_calendar,.CalendarDay__blocked_calendar:active,.CalendarDay__blocked_calendar:hover{background:#cacccd;border:1px solid #cacccd;color:#82888a}.CalendarDay__blocked_out_of_range,.CalendarDay__blocked_out_of_range:active,.CalendarDay__blocked_out_of_range:hover{background:#fff;border:1px solid #e4e7e7;color:#cacccd}.CalendarMonth{background:#fff;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CalendarMonth_table{border-collapse:collapse;border-spacing:0}.CalendarMonth_verticalSpacing{border-collapse:separate}.CalendarMonth_caption{color:#484848;font-size:18px;text-align:center;padding-top:22px;padding-bottom:37px;caption-side:top}.CalendarMonth_caption__verticalScrollable{padding-top:12px;padding-bottom:7px}.CalendarMonthGrid{background:#fff;text-align:left;z-index:0}.CalendarMonthGrid__animating{z-index:1}.CalendarMonthGrid__horizontal{position:absolute;left:9px}.CalendarMonthGrid__vertical{margin:0 auto}.CalendarMonthGrid__vertical_scrollable{margin:0 auto;overflow-y:scroll}.CalendarMonthGrid_month__horizontal{display:inline-block;vertical-align:top;min-height:100%}.CalendarMonthGrid_month__hideForAnimation{position:absolute;z-index:-1;opacity:0;pointer-events:none}.CalendarMonthGrid_month__hidden{visibility:hidden}.DayPickerNavigation{position:relative;z-index:2}.DayPickerNavigation__horizontal{height:0}.DayPickerNavigation__verticalDefault{position:absolute;width:100%;height:52px;bottom:0;left:0}.DayPickerNavigation__verticalScrollableDefault{position:relative}.DayPickerNavigation_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;padding:0;margin:0}.DayPickerNavigation_button__default{border:1px solid #e4e7e7;background-color:#fff;color:#757575}.DayPickerNavigation_button__default:focus,.DayPickerNavigation_button__default:hover{border:1px solid #c4c4c4}.DayPickerNavigation_button__default:active{background:#f2f2f2}.DayPickerNavigation_button__disabled{cursor:default;border:1px solid #f2f2f2}.DayPickerNavigation_button__disabled:focus,.DayPickerNavigation_button__disabled:hover{border:1px solid #f2f2f2}.DayPickerNavigation_button__disabled:active{background:0 0}.DayPickerNavigation_button__horizontalDefault{position:absolute;top:18px;line-height:.78;border-radius:3px;padding:6px 9px}.DayPickerNavigation_leftButton__horizontalDefault{left:22px}.DayPickerNavigation_rightButton__horizontalDefault{right:22px}.DayPickerNavigation_button__verticalDefault{padding:5px;background:#fff;box-shadow:0 0 5px 2px rgba(0,0,0,.1);position:relative;display:inline-block;text-align:center;height:100%;width:50%}.DayPickerNavigation_nextButton__verticalDefault{border-left:0}.DayPickerNavigation_nextButton__verticalScrollableDefault{width:100%}.DayPickerNavigation_svg__horizontal{height:19px;width:19px;fill:#82888a;display:block}.DayPickerNavigation_svg__vertical{height:42px;width:42px;fill:#484848}.DayPickerNavigation_svg__disabled{fill:#f2f2f2}.DayPicker{position:relative;text-align:left}.DayPicker,.DayPicker__horizontal{background:#fff}.DayPicker__verticalScrollable{height:100%}.DayPicker__hidden{visibility:hidden}.DayPicker__withBorder{box-shadow:0 2px 6px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.07);border-radius:3px}.DayPicker_portal__horizontal{box-shadow:none;position:absolute;left:50%;top:50%}.DayPicker_portal__vertical{position:static}.DayPicker_focusRegion{outline:0}.DayPicker_calendarInfo__horizontal,.DayPicker_wrapper__horizontal{display:inline-block;vertical-align:top}.DayPicker_weekHeaders{position:relative}.DayPicker_weekHeaders__horizontal{margin-left:9px}.DayPicker_weekHeader{color:#757575;position:absolute;top:62px;z-index:2;text-align:left}.DayPicker_weekHeader__vertical{left:50%}.DayPicker_weekHeader__verticalScrollable{top:0;display:table-row;border-bottom:1px solid #dbdbdb;background:#fff;margin-left:0;left:0;width:100%;text-align:center}.DayPicker_weekHeader_ul{list-style:none;margin:1px 0;padding-left:0;padding-right:0;font-size:14px}.DayPicker_weekHeader_li{display:inline-block;text-align:center}.DayPicker_transitionContainer{position:relative;overflow:hidden;border-radius:3px}.DayPicker_transitionContainer__horizontal{transition:height .2s ease-in-out}.DayPicker_transitionContainer__vertical{width:100%}.DayPicker_transitionContainer__verticalScrollable{padding-top:20px;height:100%;position:absolute;top:0;bottom:0;right:0;left:0;overflow-y:scroll}.DateInput{margin:0;padding:0;background:#fff;position:relative;display:inline-block;width:130px;vertical-align:middle}.DateInput__small{width:97px}.DateInput__block{width:100%}.DateInput__disabled{background:#f2f2f2;color:#dbdbdb}.DateInput_input{font-weight:200;font-size:19px;line-height:24px;color:#484848;background-color:#fff;width:100%;padding:11px 11px 9px;border:0;border-top:0;border-right:0;border-bottom:2px solid transparent;border-left:0;border-radius:0}.DateInput_input__small{font-size:15px;line-height:18px;letter-spacing:.2px;padding:7px 7px 5px}.DateInput_input__regular{font-weight:auto}.DateInput_input__readOnly{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateInput_input__focused{outline:0;background:#fff;border:0;border-top:0;border-right:0;border-bottom:2px solid #008489;border-left:0}.DateInput_input__disabled{background:#f2f2f2;font-style:italic}.DateInput_screenReaderMessage{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.DateInput_fang{position:absolute;width:20px;height:10px;left:22px;z-index:2}.DateInput_fangShape{fill:#fff}.DateInput_fangStroke{stroke:#dbdbdb;fill:transparent}.DateRangePickerInput{background-color:#fff;display:inline-block}.DateRangePickerInput__disabled{background:#f2f2f2}.DateRangePickerInput__withBorder{border-radius:2px;border:1px solid #dbdbdb}.DateRangePickerInput__rtl{direction:rtl}.DateRangePickerInput__block{display:block}.DateRangePickerInput__showClearDates{padding-right:30px}.DateRangePickerInput_arrow{display:inline-block;vertical-align:middle;color:#484848}.DateRangePickerInput_arrow_svg{vertical-align:middle;fill:#484848;height:24px;width:24px}.DateRangePickerInput_clearDates{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;padding:10px;margin:0 10px 0 5px;position:absolute;right:0;top:50%;transform:translateY(-50%)}.DateRangePickerInput_clearDates__small{padding:6px}.DateRangePickerInput_clearDates_default:focus,.DateRangePickerInput_clearDates_default:hover{background:#dbdbdb;border-radius:50%}.DateRangePickerInput_clearDates__hide{visibility:hidden}.DateRangePickerInput_clearDates_svg{fill:#82888a;height:12px;width:15px;vertical-align:middle}.DateRangePickerInput_clearDates_svg__small{height:9px}.DateRangePickerInput_calendarIcon{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;display:inline-block;vertical-align:middle;padding:10px;margin:0 5px 0 10px}.DateRangePickerInput_calendarIcon_svg{fill:#82888a;height:15px;width:14px;vertical-align:middle}.DateRangePicker{position:relative;display:inline-block}.DateRangePicker__block{display:block}.DateRangePicker_picker{z-index:1;background-color:#fff;position:absolute}.DateRangePicker_picker__rtl{direction:rtl}.DateRangePicker_picker__directionLeft{left:0}.DateRangePicker_picker__directionRight{right:0}.DateRangePicker_picker__portal{background-color:rgba(0,0,0,.3);position:fixed;top:0;left:0;height:100%;width:100%}.DateRangePicker_picker__fullScreenPortal{background-color:#fff}.DateRangePicker_closeButton{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;cursor:pointer;position:absolute;top:0;right:0;padding:15px;z-index:2}.DateRangePicker_closeButton:focus,.DateRangePicker_closeButton:hover{color:darken(#cacccd,10%);text-decoration:none}.DateRangePicker_closeButton_svg{height:15px;width:15px;fill:#cacccd}.rc-time-picker{display:inline-block;position:relative}.rc-time-picker,.rc-time-picker *{box-sizing:border-box}.rc-time-picker-clear{position:absolute;right:6px;cursor:pointer;overflow:hidden;width:20px;height:20px;text-align:center;line-height:20px;top:3px;margin:0}.rc-time-picker-clear-icon:after{content:"x";font-size:12px;font-style:normal;color:#aaa;display:inline-block;line-height:1;height:20px;width:20px;transition:color .3s ease}.rc-time-picker-clear-icon:hover:after{color:#666}.rc-time-picker-input{width:100%;position:relative;display:inline-block;padding:4px 7px;height:28px;cursor:text;font-size:12px;line-height:1.5;color:#666;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:4px;transition:border .2s cubic-bezier(.645,.045,.355,1),background .2s cubic-bezier(.645,.045,.355,1),box-shadow .2s cubic-bezier(.645,.045,.355,1)}.rc-time-picker-input[disabled]{color:#ccc;background:#f7f7f7;cursor:not-allowed}.rc-time-picker-panel{z-index:1070;width:170px;position:absolute;box-sizing:border-box}.rc-time-picker-panel-inner{display:inline-block;position:relative;outline:none;list-style:none;font-size:12px;text-align:left;background-color:#fff;border-radius:4px;box-shadow:0 1px 5px #ccc;background-clip:padding-box;border:1px solid #ccc;line-height:1.5}.rc-time-picker-panel-narrow{max-width:113px}.rc-time-picker-panel-input{margin:0;padding:0;width:100%;cursor:auto;line-height:1.5;outline:0;border:1px solid transparent}.rc-time-picker-panel-input-wrap{box-sizing:border-box;position:relative;padding:6px;border-bottom:1px solid #e9e9e9}.rc-time-picker-panel-input-invalid{border-color:red}.rc-time-picker-panel-select{float:left;font-size:12px;border:1px solid #e9e9e9;border-width:0 1px;margin-left:-1px;box-sizing:border-box;width:56px;max-height:144px;overflow-y:auto;position:relative}.rc-time-picker-panel-select-active{overflow-y:auto}.rc-time-picker-panel-select:first-child{border-left:0;margin-left:0}.rc-time-picker-panel-select:last-child{border-right:0}.rc-time-picker-panel-select ul{list-style:none;box-sizing:border-box;margin:0;padding:0;width:100%}.rc-time-picker-panel-select li{list-style:none;margin:0;padding:0 0 0 16px;width:100%;height:24px;line-height:24px;text-align:left;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rc-time-picker-panel-select li:hover{background:#edfaff}li.rc-time-picker-panel-select-option-selected{background:#f7f7f7;font-weight:700}li.rc-time-picker-panel-select-option-disabled{color:#ccc}li.rc-time-picker-panel-select-option-disabled:hover{background:transparent;cursor:not-allowed}.keen-explorer,.rc-time-picker-panel,.ReactModalPortal{font-family:Montserrat,Tahoma,Arial;font-size:.88rem;color:#000;display:flex}.keen-explorer .extraction,.rc-time-picker-panel .extraction,.ReactModalPortal .extraction{margin-top:1rem}.keen-explorer .extraction .first-label,.rc-time-picker-panel .extraction .first-label,.ReactModalPortal .extraction .first-label{padding-top:0}.keen-explorer .extraction .input-text,.keen-explorer .percentile .input-text,.rc-time-picker-panel .extraction .input-text,.rc-time-picker-panel .percentile .input-text,.ReactModalPortal .extraction .input-text,.ReactModalPortal .percentile .input-text{width:100%}.keen-explorer .filters-container .list,.rc-time-picker-panel .filters-container .list,.ReactModalPortal .filters-container .list{margin:2rem 0;width:100%}.keen-explorer .filters-container .list .row,.rc-time-picker-panel .filters-container .list .row,.ReactModalPortal .filters-container .list .row{display:flex;width:100%;margin:0 0 1rem}.keen-explorer .filters-container .list .row .row-part,.rc-time-picker-panel .filters-container .list .row .row-part,.ReactModalPortal .filters-container .list .row .row-part{flex:1;padding:0 .5rem}.keen-explorer .filters-container .list .row .row-part input,.rc-time-picker-panel .filters-container .list .row .row-part input,.ReactModalPortal .filters-container .list .row .row-part input{padding:.55rem .7rem;font-size:.88rem;border-radius:4px;border:1px solid #ccc;width:100%}.keen-explorer .filters-container .list .row .row-part .datetime-pickers,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers{display:flex}.keen-explorer .filters-container .list .row .row-part .datetime-pickers .DateInput,.keen-explorer .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .DateInput,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .DateInput,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput{width:100%}.keen-explorer .filters-container .list .row .row-part .datetime-pickers .SingleDatePicker,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .SingleDatePicker,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .SingleDatePicker{flex:1;margin-right:.1rem}.keen-explorer .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput__withBorder,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput__withBorder,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .SingleDatePickerInput__withBorder{border:0}.keen-explorer .filters-container .list .row .row-part .datetime-pickers input.DateInput_input,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers input.DateInput_input,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers input.DateInput_input{padding:.333rem;text-align:center;height:2.3rem}.keen-explorer .filters-container .list .row .row-part .datetime-pickers .rc-time-picker,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers .rc-time-picker,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers .rc-time-picker{flex:1}.keen-explorer .filters-container .list .row .row-part .datetime-pickers input.rc-time-picker-input,.rc-time-picker-panel .filters-container .list .row .row-part .datetime-pickers input.rc-time-picker-input,.ReactModalPortal .filters-container .list .row .row-part .datetime-pickers input.rc-time-picker-input{padding:.3rem;text-align:center;height:auto;line-height:auto;height:2.3rem}.keen-explorer .filters-container .list .row .row-part .within-inputs input,.rc-time-picker-panel .filters-container .list .row .row-part .within-inputs input,.ReactModalPortal .filters-container .list .row .row-part .within-inputs input{margin-bottom:.2rem}.keen-explorer .filters-container .list .row .row-part .delete,.rc-time-picker-panel .filters-container .list .row .row-part .delete,.ReactModalPortal .filters-container .list .row .row-part .delete{cursor:pointer;display:flex;align-items:center;height:100%}.keen-explorer .filters-container .list .row .row-part .delete i,.rc-time-picker-panel .filters-container .list .row .row-part .delete i,.ReactModalPortal .filters-container .list .row .row-part .delete i{color:#ea7373;font-size:1rem;padding:.5rem}.keen-explorer .filters-container .list .row .no-flex,.rc-time-picker-panel .filters-container .list .row .no-flex,.ReactModalPortal .filters-container .list .row .no-flex{flex:0}.keen-explorer .filters-container .action-buttons,.rc-time-picker-panel .filters-container .action-buttons,.ReactModalPortal .filters-container .action-buttons{display:flex;align-items:center;justify-content:flex-end;margin-top:0}.keen-explorer .filters-container .action-buttons .button-add-filter,.rc-time-picker-panel .filters-container .action-buttons .button-add-filter,.ReactModalPortal .filters-container .action-buttons .button-add-filter{margin-right:1rem;cursor:pointer;text-transform:uppercase;padding:1rem 2rem;background:#eee;border-radius:.3rem}.keen-explorer .filters-container .action-buttons .button-add-filter i,.rc-time-picker-panel .filters-container .action-buttons .button-add-filter i,.ReactModalPortal .filters-container .action-buttons .button-add-filter i{margin-right:1rem}.keen-explorer .filters-container .action-buttons .button-done,.rc-time-picker-panel .filters-container .action-buttons .button-done,.ReactModalPortal .filters-container .action-buttons .button-done{cursor:pointer;color:#fff;background:#45b2e8;text-transform:uppercase;width:10rem;padding:1rem;text-align:center;border-radius:.3rem}.keen-explorer .filters-container .action-buttons .button-done i,.rc-time-picker-panel .filters-container .action-buttons .button-done i,.ReactModalPortal .filters-container .action-buttons .button-done i{margin-right:1rem}@media screen and (max-width:1000px){.keen-explorer .filters-container .list .row,.rc-time-picker-panel .filters-container .list .row,.ReactModalPortal .filters-container .list .row{flex-direction:column}.keen-explorer .filters-container .list .row .row-part,.rc-time-picker-panel .filters-container .list .row .row-part,.ReactModalPortal .filters-container .list .row .row-part{margin-bottom:.3rem}.keen-explorer .filters-container .list .row .delete,.rc-time-picker-panel .filters-container .list .row .delete,.ReactModalPortal .filters-container .list .row .delete{float:right;padding-right:1rem}}.keen-explorer .modal-main,.rc-time-picker-panel .modal-main,.ReactModalPortal .modal-main{display:flex;flex-direction:column;height:100%;width:100%}.keen-explorer .modal-main .header,.rc-time-picker-panel .modal-main .header,.ReactModalPortal .modal-main .header{flex:0;border-bottom:1px solid #eee;padding-bottom:1rem}.keen-explorer .modal-main .header .title,.rc-time-picker-panel .modal-main .header .title,.ReactModalPortal .modal-main .header .title{float:left}.keen-explorer .modal-main .header .x,.rc-time-picker-panel .modal-main .header .x,.ReactModalPortal .modal-main .header .x{color:#565656;float:right;font-weight:700;cursor:pointer;padding:1rem;margin:-2rem -1rem;font-size:2rem}.keen-explorer .modal-main .container,.rc-time-picker-panel .modal-main .container,.ReactModalPortal .modal-main .container{flex:1;padding:1rem 0;clear:both;width:100%;overflow-y:scroll;white-space:pre-wrap}.keen-explorer .modal-main .button-copy,.rc-time-picker-panel .modal-main .button-copy,.ReactModalPortal .modal-main .button-copy{padding:1rem;width:10rem;text-align:center;cursor:pointer;background:#1e93d8;color:#fff;border-radius:.5rem;margin-top:1rem}.keen-explorer .modal-main .button-copy:active,.rc-time-picker-panel .modal-main .button-copy:active,.ReactModalPortal .modal-main .button-copy:active{background:#30a1e4}.keen-explorer .ReactModal__Overlay,.rc-time-picker-panel .ReactModal__Overlay,.ReactModalPortal .ReactModal__Overlay{z-index:9999}.keen-explorer .saved-query,.rc-time-picker-panel .saved-query,.ReactModalPortal .saved-query{margin:1rem 0;border:1px solid #e8e8e8;background:#fcfcfc;padding:1rem;border-radius:.3rem}.keen-explorer .saved-query .input-name,.rc-time-picker-panel .saved-query .input-name,.ReactModalPortal .saved-query .input-name{font-size:.88rem;padding:1rem;border-radius:.3rem;border:1px solid #e8e8e8;width:100%}.keen-explorer .saved-query .resource-name,.rc-time-picker-panel .saved-query .resource-name,.ReactModalPortal .saved-query .resource-name{padding:1rem .2rem 0;display:flex;overflow:hidden;font-size:.8rem}.keen-explorer .saved-query .resource-name .line,.rc-time-picker-panel .saved-query .resource-name .line,.ReactModalPortal .saved-query .resource-name .line{flex:1;white-space:nowrap}.keen-explorer .saved-query .resource-name .line span,.rc-time-picker-panel .saved-query .resource-name .line span,.ReactModalPortal .saved-query .resource-name .line span{white-space:nowrap;overflow:hidden;flex:1}.keen-explorer .saved-query .resource-name .line i,.rc-time-picker-panel .saved-query .resource-name .line i,.ReactModalPortal .saved-query .resource-name .line i{flex:0}.keen-explorer .saved-query .resource-name .line-label,.rc-time-picker-panel .saved-query .resource-name .line-label,.ReactModalPortal .saved-query .resource-name .line-label{flex:0;margin-right:.5rem}.keen-explorer .saved-query .cache,.rc-time-picker-panel .saved-query .cache,.ReactModalPortal .saved-query .cache{padding:1rem 0 0;max-width:12rem}.keen-explorer .saved-query .cache .line-checkbox,.rc-time-picker-panel .saved-query .cache .line-checkbox,.ReactModalPortal .saved-query .cache .line-checkbox{display:flex}.keen-explorer .saved-query .cache .line-checkbox input,.rc-time-picker-panel .saved-query .cache .line-checkbox input,.ReactModalPortal .saved-query .cache .line-checkbox input{margin-right:.5rem;outline:none}.keen-explorer .saved-query .cache .line-checkbox label,.rc-time-picker-panel .saved-query .cache .line-checkbox label,.ReactModalPortal .saved-query .cache .line-checkbox label{cursor:pointer}.keen-explorer .saved-query .cache .cache-toggle,.rc-time-picker-panel .saved-query .cache .cache-toggle,.ReactModalPortal .saved-query .cache .cache-toggle{display:flex;align-items:center;cursor:pointer;color:#128296}.keen-explorer .saved-query .cache i,.rc-time-picker-panel .saved-query .cache i,.ReactModalPortal .saved-query .cache i{font-size:1.3rem;margin-right:.6rem}.keen-explorer .saved-query .cache .fa-toggle-off,.rc-time-picker-panel .saved-query .cache .fa-toggle-off,.ReactModalPortal .saved-query .cache .fa-toggle-off{color:#7b7b7b}.keen-explorer .saved-query .button-copy,.rc-time-picker-panel .saved-query .button-copy,.ReactModalPortal .saved-query .button-copy{padding:.7rem;right:0;bottom:0;border:0;cursor:pointer;display:inline}.keen-explorer .saved-query .buttons *,.rc-time-picker-panel .saved-query .buttons *,.ReactModalPortal .saved-query .buttons *{margin-top:1rem;padding:.88rem 1.76rem;border-radius:.3rem;font-size:.88rem;cursor:pointer;text-transform:uppercase;border:0;font-weight:600}.keen-explorer .saved-query .buttons .button-save,.rc-time-picker-panel .saved-query .buttons .button-save,.ReactModalPortal .saved-query .buttons .button-save{color:#fff;background:#45b2e8}.keen-explorer .saved-query .buttons .button-clone,.rc-time-picker-panel .saved-query .buttons .button-clone,.ReactModalPortal .saved-query .buttons .button-clone{margin-left:1rem;color:#45b2e8;background:transparent;border:1px solid #eee}.keen-explorer .saved-query .buttons .button-delete,.rc-time-picker-panel .saved-query .buttons .button-delete,.ReactModalPortal .saved-query .buttons .button-delete{float:right;color:#6f6c6c;background:transparent;border:1px solid #eee}.keen-explorer .saved-query .button-copy:active,.rc-time-picker-panel .saved-query .button-copy:active,.ReactModalPortal .saved-query .button-copy:active{background:#fff}.keen-explorer .saved-queries,.rc-time-picker-panel .saved-queries,.ReactModalPortal .saved-queries{overflow:scroll;min-height:100%;max-height:44rem}.keen-explorer .saved-queries .input-filter,.rc-time-picker-panel .saved-queries .input-filter,.ReactModalPortal .saved-queries .input-filter{width:100%;padding:.6rem;font-size:.9rem;border:1px solid #ccc;margin:.5rem 0;border-radius:.3rem}.keen-explorer .saved-queries .item,.rc-time-picker-panel .saved-queries .item,.ReactModalPortal .saved-queries .item{padding:1rem;cursor:pointer;overflow:auto;border-bottom:1px solid #f3f3f3}.keen-explorer .saved-queries .item .name,.rc-time-picker-panel .saved-queries .item .name,.ReactModalPortal .saved-queries .item .name{margin:0 0 .5rem}.keen-explorer .saved-queries .item .cached,.rc-time-picker-panel .saved-queries .item .cached,.ReactModalPortal .saved-queries .item .cached{float:left}.keen-explorer .saved-queries .item .cached *,.rc-time-picker-panel .saved-queries .item .cached *,.ReactModalPortal .saved-queries .item .cached *{font-size:.6rem;text-transform:uppercase}.keen-explorer .saved-queries .item .data,.rc-time-picker-panel .saved-queries .item .data,.ReactModalPortal .saved-queries .item .data{float:right;font-size:.7rem}.keen-explorer .saved-queries .active,.rc-time-picker-panel .saved-queries .active,.ReactModalPortal .saved-queries .active{background:#f7f7f7}.keen-explorer .funnel .content,.rc-time-picker-panel .funnel .content,.ReactModalPortal .funnel .content{padding:.3rem .5rem}.keen-explorer .funnel .input-text,.rc-time-picker-panel .funnel .input-text,.ReactModalPortal .funnel .input-text{width:100%}.keen-explorer .funnel .button,.rc-time-picker-panel .funnel .button,.ReactModalPortal .funnel .button{cursor:pointer}.keen-explorer .funnel .button-delete,.rc-time-picker-panel .funnel .button-delete,.ReactModalPortal .funnel .button-delete{color:#797979}.keen-explorer .funnel .button-add,.rc-time-picker-panel .funnel .button-add,.ReactModalPortal .funnel .button-add{margin-top:1rem;padding:.7rem;background:#fdfdfd;border:1px solid #e8e8e8;border-radius:5px;display:inline-block}.keen-explorer .funnel .button-add i,.rc-time-picker-panel .funnel .button-add i,.ReactModalPortal .funnel .button-add i{margin-right:.3rem}.keen-explorer .funnel .line-options,.rc-time-picker-panel .funnel .line-options,.ReactModalPortal .funnel .line-options{margin:1rem 0 0}.keen-explorer .funnel .line-checkbox,.rc-time-picker-panel .funnel .line-checkbox,.ReactModalPortal .funnel .line-checkbox{margin:.5rem 0 0}.keen-explorer .funnel .line-checkbox input,.rc-time-picker-panel .funnel .line-checkbox input,.ReactModalPortal .funnel .line-checkbox input{margin-right:.5rem}.keen-explorer .funnel .line-checkbox label,.rc-time-picker-panel .funnel .line-checkbox label,.ReactModalPortal .funnel .line-checkbox label{cursor:pointer}.keen-explorer .funnel .step-switch-position-buttons,.rc-time-picker-panel .funnel .step-switch-position-buttons,.ReactModalPortal .funnel .step-switch-position-buttons{float:left;margin:-.5rem .8rem 0 0;color:#797979}.keen-explorer .funnel .step-switch-position-buttons .move-up,.rc-time-picker-panel .funnel .step-switch-position-buttons .move-up,.ReactModalPortal .funnel .step-switch-position-buttons .move-up{margin-top:.1rem}.keen-explorer .funnel .step-switch-position-buttons .move-down,.rc-time-picker-panel .funnel .step-switch-position-buttons .move-down,.ReactModalPortal .funnel .step-switch-position-buttons .move-down{margin-top:-.3rem}.keen-explorer .keen-dataviz,.rc-time-picker-panel .keen-dataviz,.ReactModalPortal .keen-dataviz{font-family:inherit!important}.keen-explorer .keen-dataviz .keen-c3-legend .legend-item-text,.rc-time-picker-panel .keen-dataviz .keen-c3-legend .legend-item-text,.ReactModalPortal .keen-dataviz .keen-c3-legend .legend-item-text{font-size:1em}.keen-explorer .keen-dataviz-container,.rc-time-picker-panel .keen-dataviz-container,.ReactModalPortal .keen-dataviz-container{height:calc(100% - 3rem);overflow:hidden}.keen-explorer .keen-dataviz-metric-value,.rc-time-picker-panel .keen-dataviz-metric-value,.ReactModalPortal .keen-dataviz-metric-value{font-size:4rem!important}.keen-explorer .keen-dataviz .c3 svg g text tspan,.rc-time-picker-panel .keen-dataviz .c3 svg g text tspan,.ReactModalPortal .keen-dataviz .c3 svg g text tspan{font-size:10px!important}.keen-explorer .a-preview-collection,.rc-time-picker-panel .a-preview-collection,.ReactModalPortal .a-preview-collection{padding:.5rem;margin:0 0 1rem;cursor:pointer;background:#fafafa;border-radius:.3rem}.keen-explorer .a-preview-collection i,.rc-time-picker-panel .a-preview-collection i,.ReactModalPortal .a-preview-collection i{font-size:.8em;margin-right:.2rem}.keen-explorer .preview-collection-content,.rc-time-picker-panel .preview-collection-content,.ReactModalPortal .preview-collection-content{display:flex;flex-direction:row}.keen-explorer .preview-collection-content .input-filter,.rc-time-picker-panel .preview-collection-content .input-filter,.ReactModalPortal .preview-collection-content .input-filter{width:100%;padding:.6rem;font-size:.9rem;border:1px solid #ccc;margin:.5rem 0;border-radius:.3rem}.keen-explorer .preview-collection-content .list,.rc-time-picker-panel .preview-collection-content .list,.ReactModalPortal .preview-collection-content .list{height:100%;overflow-y:scroll;flex:1}.keen-explorer .preview-collection-content .list .item,.rc-time-picker-panel .preview-collection-content .list .item,.ReactModalPortal .preview-collection-content .list .item{cursor:pointer;padding:1rem;overflow:auto;border-bottom:1px solid #f3f3f3}.keen-explorer .preview-collection-content .list .active,.rc-time-picker-panel .preview-collection-content .list .active,.ReactModalPortal .preview-collection-content .list .active{background:#f7f7f7}.keen-explorer .preview-collection-content .content,.rc-time-picker-panel .preview-collection-content .content,.ReactModalPortal .preview-collection-content .content{flex:3;height:100%;padding:.5rem 0 .5rem 1rem}.keen-explorer .preview-collection-content .content .tabs .tab,.rc-time-picker-panel .preview-collection-content .content .tabs .tab,.ReactModalPortal .preview-collection-content .content .tabs .tab{flex:none;padding:1rem 1.5rem}.keen-explorer .preview-collection-content .content .tabs .tab-placeholder,.rc-time-picker-panel .preview-collection-content .content .tabs .tab-placeholder,.ReactModalPortal .preview-collection-content .content .tabs .tab-placeholder{flex:1;border-bottom:1px solid #e8e8e8}.keen-explorer .preview-collection-content .content .tab-content,.rc-time-picker-panel .preview-collection-content .content .tab-content,.ReactModalPortal .preview-collection-content .content .tab-content{height:100%;width:100%;overflow:scroll;padding-bottom:4rem}@media screen and (max-width:900px){.keen-explorer .preview-collection-content,.rc-time-picker-panel .preview-collection-content,.ReactModalPortal .preview-collection-content{flex-direction:column}.keen-explorer .preview-collection-content .content,.keen-explorer .preview-collection-content .list,.rc-time-picker-panel .preview-collection-content .content,.rc-time-picker-panel .preview-collection-content .list,.ReactModalPortal .preview-collection-content .content,.ReactModalPortal .preview-collection-content .list{height:auto;overflow-y:visible;padding:0}.keen-explorer .preview-collection-content .content,.rc-time-picker-panel .preview-collection-content .content,.ReactModalPortal .preview-collection-content .content{padding-top:2rem}}.keen-explorer .preview .download-toggle-label,.rc-time-picker-panel .preview .download-toggle-label,.ReactModalPortal .preview .download-toggle-label{padding:1rem;cursor:pointer}.keen-explorer .preview .download-toggle-label i,.rc-time-picker-panel .preview .download-toggle-label i,.ReactModalPortal .preview .download-toggle-label i{margin-right:.5rem}.keen-explorer .preview .download-buttons,.rc-time-picker-panel .preview .download-buttons,.ReactModalPortal .preview .download-buttons{position:absolute;background:#fafafa;display:flex;flex-direction:column;box-shadow:2px 3px 4px rgba(0,0,0,.05);margin-top:-2px}.keen-explorer .preview .download-buttons .button-download,.rc-time-picker-panel .preview .download-buttons .button-download,.ReactModalPortal .preview .download-buttons .button-download{padding:1rem 3rem}.keen-explorer *,.rc-time-picker-panel *,.ReactModalPortal *{box-sizing:border-box;font-size:.88rem}.keen-explorer button,.rc-time-picker-panel button,.ReactModalPortal button{margin:2rem 0 0;padding:1rem}.keen-explorer .label-main,.rc-time-picker-panel .label-main,.ReactModalPortal .label-main{padding:1rem 0 .3rem}.keen-explorer .hide,.rc-time-picker-panel .hide,.ReactModalPortal .hide{display:none}.keen-explorer input:focus,.rc-time-picker-panel input:focus,.ReactModalPortal input:focus{outline:2px solid #00bbde}.keen-explorer .panel-main,.rc-time-picker-panel .panel-main,.ReactModalPortal .panel-main{flex:1;min-width:26rem;box-shadow:-3px 7px 11px rgba(0,0,0,.1);border-radius:.3rem}.keen-explorer .panel-main .panel-buttons .button-new-query,.rc-time-picker-panel .panel-main .panel-buttons .button-new-query,.ReactModalPortal .panel-main .panel-buttons .button-new-query{flex:none;cursor:pointer}.keen-explorer .panel-main .panel-content,.rc-time-picker-panel .panel-main .panel-content,.ReactModalPortal .panel-main .panel-content{padding:1rem}.keen-explorer .panel-main .panel-content .label-analysis-type,.rc-time-picker-panel .panel-main .panel-content .label-analysis-type,.ReactModalPortal .panel-main .panel-content .label-analysis-type{padding-top:0}.keen-explorer .result,.rc-time-picker-panel .result,.ReactModalPortal .result{flex:3;padding:0 1.5rem;overflow:hidden}.keen-explorer .foldable,.rc-time-picker-panel .foldable,.ReactModalPortal .foldable{margin-top:.5rem;border:1px solid #e8e8e8;background:#fdfdfd;padding:.5rem;cursor:pointer;border-radius:5px}.keen-explorer .foldable-active,.rc-time-picker-panel .foldable-active,.ReactModalPortal .foldable-active{background:none}.keen-explorer .foldable .title,.rc-time-picker-panel .foldable .title,.ReactModalPortal .foldable .title{padding:.5rem}.keen-explorer .foldable .title .foldable-icon,.rc-time-picker-panel .foldable .title .foldable-icon,.ReactModalPortal .foldable .title .foldable-icon{float:right}.keen-explorer .foldable .content,.rc-time-picker-panel .foldable .content,.ReactModalPortal .foldable .content{margin-top:.5rem;padding:0}.keen-explorer .foldable .tab-content,.rc-time-picker-panel .foldable .tab-content,.ReactModalPortal .foldable .tab-content{border:0}.keen-explorer .filters,.rc-time-picker-panel .filters,.ReactModalPortal .filters{display:flex}.keen-explorer .filters .title,.rc-time-picker-panel .filters .title,.ReactModalPortal .filters .title{flex:1}.keen-explorer .filters .count,.rc-time-picker-panel .filters .count,.ReactModalPortal .filters .count{align-self:center;text-align:right;padding:0 .5rem 0 0}.keen-explorer .optional,.rc-time-picker-panel .optional,.ReactModalPortal .optional{margin-left:1em;font-size:.7em;color:#ddd;color:#737373}.keen-explorer .group-by .label-main,.rc-time-picker-panel .group-by .label-main,.ReactModalPortal .group-by .label-main{padding:0 0 .5rem}.keen-explorer .group-by .btn-minus,.keen-explorer .group-by .btn-plus,.rc-time-picker-panel .group-by .btn-minus,.rc-time-picker-panel .group-by .btn-plus,.ReactModalPortal .group-by .btn-minus,.ReactModalPortal .group-by .btn-plus{margin-top:1rem;padding:.7rem;background:#fdfdfd;border:1px solid #e8e8e8;border-radius:5px;display:inline-block}.keen-explorer .group-by .options,.rc-time-picker-panel .group-by .options,.ReactModalPortal .group-by .options{margin-top:1rem;display:flex}.keen-explorer .group-by .options .order-by,.rc-time-picker-panel .group-by .options .order-by,.ReactModalPortal .group-by .options .order-by{width:8em;padding-right:1rem}.keen-explorer .group-by .options .order-by .select,.rc-time-picker-panel .group-by .options .order-by .select,.ReactModalPortal .group-by .options .order-by .select{width:100%}.keen-explorer .group-by .options .limit,.rc-time-picker-panel .group-by .options .limit,.ReactModalPortal .group-by .options .limit{width:8em}.keen-explorer .group-by .options .limit .input,.rc-time-picker-panel .group-by .options .limit .input,.ReactModalPortal .group-by .options .limit .input{width:100%}.keen-explorer .group-by .additional-target-property,.rc-time-picker-panel .group-by .additional-target-property,.ReactModalPortal .group-by .additional-target-property{margin-top:1rem;padding-top:1rem;border-top:1px solid #f1f1f1}.keen-explorer .lets-go,.rc-time-picker-panel .lets-go,.ReactModalPortal .lets-go{display:flex;width:100%;height:390px;justify-content:center;align-items:center;color:#9b9b9b;background:#fafafa}.keen-explorer .tabs,.rc-time-picker-panel .tabs,.ReactModalPortal .tabs{display:flex}.keen-explorer .tabs .tab,.rc-time-picker-panel .tabs .tab,.ReactModalPortal .tabs .tab{flex:1;padding:1rem;background:#fafafa;cursor:pointer;border:1px solid #e8e8e8;border-radius:5px 5px 0 0}.keen-explorer .tabs .active,.rc-time-picker-panel .tabs .active,.ReactModalPortal .tabs .active{background:#fff;border-bottom:1px solid #fff}.keen-explorer .panel-buttons .active,.rc-time-picker-panel .panel-buttons .active,.ReactModalPortal .panel-buttons .active{border-right:0}.keen-explorer .tab-content,.rc-time-picker-panel .tab-content,.ReactModalPortal .tab-content{padding:1rem;border:1px solid #e8e8e8;border-top:none}.keen-explorer .input-number,.keen-explorer .input-text,.rc-time-picker-panel .input-number,.rc-time-picker-panel .input-text,.ReactModalPortal .input-number,.ReactModalPortal .input-text{font-size:.88rem;padding:.5rem .6rem;border-radius:5px;border:1px solid #ccc;font-weight:400;line-height:normal}.keen-explorer .interval .standard-units,.rc-time-picker-panel .interval .standard-units,.ReactModalPortal .interval .standard-units{width:10rem}.keen-explorer .interval .line,.rc-time-picker-panel .interval .line,.ReactModalPortal .interval .line{display:flex;align-items:center}.keen-explorer .interval .line .title,.rc-time-picker-panel .interval .line .title,.ReactModalPortal .interval .line .title{margin-right:1rem}.keen-explorer .interval .line .input-number,.rc-time-picker-panel .interval .line .input-number,.ReactModalPortal .interval .line .input-number{width:4rem;margin-right:.5rem}.keen-explorer .interval .line .time-units,.rc-time-picker-panel .interval .line .time-units,.ReactModalPortal .interval .line .time-units{width:10rem}.keen-explorer .timeframe,.rc-time-picker-panel .timeframe,.ReactModalPortal .timeframe{margin-bottom:.5rem}.keen-explorer .timeframe .relative,.rc-time-picker-panel .timeframe .relative,.ReactModalPortal .timeframe .relative{display:flex}.keen-explorer .timeframe .relative .input-number,.keen-explorer .timeframe .relative .relativity,.rc-time-picker-panel .timeframe .relative .input-number,.rc-time-picker-panel .timeframe .relative .relativity,.ReactModalPortal .timeframe .relative .input-number,.ReactModalPortal .timeframe .relative .relativity{margin-right:.5rem}.keen-explorer .timeframe .relative .relativity,.keen-explorer .timeframe .relative .units,.rc-time-picker-panel .timeframe .relative .relativity,.rc-time-picker-panel .timeframe .relative .units,.ReactModalPortal .timeframe .relative .relativity,.ReactModalPortal .timeframe .relative .units{flex:0;max-width:12rem;min-width:6rem}.keen-explorer .timeframe .relative .input-number,.rc-time-picker-panel .timeframe .relative .input-number,.ReactModalPortal .timeframe .relative .input-number{flex:1;min-width:6rem}.keen-explorer .timeframe .description,.rc-time-picker-panel .timeframe .description,.ReactModalPortal .timeframe .description{margin-top:.5rem;padding:1rem;background:#fafafa}.keen-explorer .timeframe .tabAbsolute .DateRangePickerInput_arrow,.rc-time-picker-panel .timeframe .tabAbsolute .DateRangePickerInput_arrow,.ReactModalPortal .timeframe .tabAbsolute .DateRangePickerInput_arrow{display:none}.keen-explorer .timeframe .tabAbsolute .DateInput,.rc-time-picker-panel .timeframe .tabAbsolute .DateInput,.ReactModalPortal .timeframe .tabAbsolute .DateInput{width:8rem;background:none}.keen-explorer .timeframe .tabAbsolute .DateInput_input,.rc-time-picker-panel .timeframe .tabAbsolute .DateInput_input,.ReactModalPortal .timeframe .tabAbsolute .DateInput_input{padding:.5rem;font-size:.88rem;line-height:normal;color:#000;font-weight:400;border-radius:5px}.keen-explorer .timeframe .tabAbsolute .rc-time-picker-input,.rc-time-picker-panel .timeframe .tabAbsolute .rc-time-picker-input,.ReactModalPortal .timeframe .tabAbsolute .rc-time-picker-input{font-size:.88rem;line-height:normal;font-weight:400;color:#000;height:2.4rem;width:7rem;border-radius:5px}.keen-explorer .timeframe .tabAbsolute .line,.rc-time-picker-panel .timeframe .tabAbsolute .line,.ReactModalPortal .timeframe .tabAbsolute .line{display:flex;align-items:center;margin:.5rem}.keen-explorer .timeframe .tabAbsolute .line .title,.rc-time-picker-panel .timeframe .tabAbsolute .line .title,.ReactModalPortal .timeframe .tabAbsolute .line .title{width:4rem}.keen-explorer .timeframe .tabAbsolute .line .SingleDatePicker,.rc-time-picker-panel .timeframe .tabAbsolute .line .SingleDatePicker,.ReactModalPortal .timeframe .tabAbsolute .line .SingleDatePicker{margin-right:.5rem}.keen-explorer .timeframe .tabAbsolute .line .SingleDatePickerInput__withBorder,.rc-time-picker-panel .timeframe .tabAbsolute .line .SingleDatePickerInput__withBorder,.ReactModalPortal .timeframe .tabAbsolute .line .SingleDatePickerInput__withBorder{border-radius:5px;border:1px solid #dbdbdb}.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-inner,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-inner,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-inner{box-shadow:none;border-radius:5px}.keen-explorer .rc-time-picker-panel .rc-time-picker-input,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-input,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-input{font-size:.88rem;line-height:normal;font-weight:400;color:#000;height:2.4rem;width:8rem;border-radius:5px}.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-select,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-select,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-select{font-size:.88rem}.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-select li,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-select li,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-select li{height:2rem;line-height:2rem}.keen-explorer .rc-time-picker-panel .rc-time-picker-panel-input,.rc-time-picker-panel .rc-time-picker-panel .rc-time-picker-panel-input,.ReactModalPortal .rc-time-picker-panel .rc-time-picker-panel-input{font-size:.88rem}.keen-explorer .apiQueryUrl,.rc-time-picker-panel .apiQueryUrl,.ReactModalPortal .apiQueryUrl{cursor:pointer;padding:1rem;display:flex;align-items:center;width:100%;font-size:.8rem}.keen-explorer .apiQueryUrl input,.rc-time-picker-panel .apiQueryUrl input,.ReactModalPortal .apiQueryUrl input{flex:1;margin:0 1rem}.keen-explorer .fa-copy:active,.rc-time-picker-panel .fa-copy:active,.ReactModalPortal .fa-copy:active{color:#00bbde}.keen-explorer .button-run-query,.rc-time-picker-panel .button-run-query,.ReactModalPortal .button-run-query{font-size:.88rem;text-transform:uppercase;border-radius:.3rem;background:#3ecf8e;color:#fff;font-weight:600;border:0;padding:.88rem 1.76rem;cursor:pointer;margin:0}.keen-explorer .button-with-loading-spinner .loading-spinner,.rc-time-picker-panel .button-with-loading-spinner .loading-spinner,.ReactModalPortal .button-with-loading-spinner .loading-spinner{display:inline-block;margin:0 .5rem 0 -.5rem;padding:0}.keen-explorer .button-with-loading-spinner .loading-spinner i,.rc-time-picker-panel .button-with-loading-spinner .loading-spinner i,.ReactModalPortal .button-with-loading-spinner .loading-spinner i{margin:0;padding:0;font-size:1rem}.keen-explorer .error,.rc-time-picker-panel .error,.ReactModalPortal .error{padding:1rem;background:#ffe5e5;margin:1rem 0}.keen-explorer .box-info,.rc-time-picker-panel .box-info,.ReactModalPortal .box-info{padding:1rem;background:#f1faff}.keen-explorer .tab-content .box-info,.rc-time-picker-panel .tab-content .box-info,.ReactModalPortal .tab-content .box-info{margin:-1rem}.keen-explorer .preview,.rc-time-picker-panel .preview,.ReactModalPortal .preview{display:flex;flex-direction:row;flex-wrap:wrap;background:#fafafa}.keen-explorer .preview .loader,.rc-time-picker-panel .preview .loader,.ReactModalPortal .preview .loader{width:100%;height:340px;display:flex;align-items:center;justify-content:center;font-size:5rem;color:#eee}.keen-explorer .preview .keen-dataviz-container,.keen-explorer .preview .react-json-view,.rc-time-picker-panel .preview .keen-dataviz-container,.rc-time-picker-panel .preview .react-json-view,.ReactModalPortal .preview .keen-dataviz-container,.ReactModalPortal .preview .react-json-view{width:100%;height:340px;background:#fff;overflow-y:scroll}.keen-explorer .preview .react-json-view,.rc-time-picker-panel .preview .react-json-view,.ReactModalPortal .preview .react-json-view{padding:1rem}.keen-explorer .preview .select-chart-type-container,.rc-time-picker-panel .preview .select-chart-type-container,.ReactModalPortal .preview .select-chart-type-container{flex:1;order:1;display:flex;align-self:center;flex-direction:column;justify-content:flex-end;margin:.3rem}.keen-explorer .preview .select-chart-type,.rc-time-picker-panel .preview .select-chart-type,.ReactModalPortal .preview .select-chart-type{flex:1;width:20rem;align-self:flex-end}.keen-explorer .preview .chart-not-supported-note,.rc-time-picker-panel .preview .chart-not-supported-note,.ReactModalPortal .preview .chart-not-supported-note{float:right;text-align:right;padding:.5rem}.keen-explorer .preview .button-download,.rc-time-picker-panel .preview .button-download,.ReactModalPortal .preview .button-download{order:0;background:transparent;border:0;margin:0;cursor:pointer;font-size:.8rem}.keen-explorer .preview .button-download i,.rc-time-picker-panel .preview .button-download i,.ReactModalPortal .preview .button-download i{margin-right:.5rem}.keen-explorer .action-buttons,.keen-explorer .chartType,.rc-time-picker-panel .action-buttons,.rc-time-picker-panel .chartType,.ReactModalPortal .action-buttons,.ReactModalPortal .chartType{margin-top:1rem}.keen-explorer .button-toggle,.rc-time-picker-panel .button-toggle,.ReactModalPortal .button-toggle{margin-left:1rem;display:inline;cursor:pointer;border-radius:.3rem;font-size:.88rem;font-weight:600;text-transform:uppercase;color:#3ecf8e;color:#45b2e8;background:#fcfcfc;border:1px solid #efefef;padding:.88rem 1.76rem}.keen-explorer .button-toggle i,.rc-time-picker-panel .button-toggle i,.ReactModalPortal .button-toggle i{margin-left:1rem}.keen-explorer .button-toggle-active,.rc-time-picker-panel .button-toggle-active,.ReactModalPortal .button-toggle-active{background:#fff}.keen-explorer .result-string,.rc-time-picker-panel .result-string,.ReactModalPortal .result-string{display:flex;justify-content:center;align-items:center}.keen-explorer .CalendarDay__selected,.keen-explorer .CalendarDay__selected:active,.keen-explorer .CalendarDay__selected:hover,.rc-time-picker-panel .CalendarDay__selected,.rc-time-picker-panel .CalendarDay__selected:active,.rc-time-picker-panel .CalendarDay__selected:hover,.ReactModalPortal .CalendarDay__selected,.ReactModalPortal .CalendarDay__selected:active,.ReactModalPortal .CalendarDay__selected:hover{background:#00bbde;border:1px double #00bbde}.keen-explorer .DayPickerKeyboardShortcuts_show__bottomRight:before,.rc-time-picker-panel .DayPickerKeyboardShortcuts_show__bottomRight:before,.ReactModalPortal .DayPickerKeyboardShortcuts_show__bottomRight:before{border-right:33px solid #00bbde}.keen-explorer .DateInput_input__focused,.rc-time-picker-panel .DateInput_input__focused,.ReactModalPortal .DateInput_input__focused{border-bottom:2px solid #00bbde}.keen-explorer .loading-spinner i,.rc-time-picker-panel .loading-spinner i,.ReactModalPortal .loading-spinner i{font-size:1.5rem}.keen-explorer .fa-spin,.rc-time-picker-panel .fa-spin,.ReactModalPortal .fa-spin{animation:fa-spin 1s infinite linear}.keen-explorer .react-select-option,.rc-time-picker-panel .react-select-option,.ReactModalPortal .react-select-option{padding:.7rem 1rem}.keen-explorer .react-json-view .string-value,.rc-time-picker-panel .react-json-view .string-value,.ReactModalPortal .react-json-view .string-value{word-break:break-word}@media screen and (max-width:1000px){.keen-explorer{flex-direction:column}.keen-explorer .panel{box-shadow:none;min-width:none}.keen-explorer .panel .panel-content{padding:0 1rem}.keen-explorer .result{display:flex;flex-direction:column}.keen-explorer .result .lets-go,.keen-explorer .result .preview{order:1}.keen-explorer .result .error{margin-bottom:0}.keen-explorer .result .button-run-query{order:0}.keen-explorer .result .button-toggle,.keen-explorer .result .saved-query{order:3}.keen-explorer .result .action-buttons{margin-bottom:1rem}.filters-container .delete{margin-top:.5rem}} \ No newline at end of file diff --git a/dist/keen-explorer.umd.js b/dist/keen-explorer.umd.js index c7baf0588..6131dc860 100644 --- a/dist/keen-explorer.umd.js +++ b/dist/keen-explorer.umd.js @@ -10454,7 +10454,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__163__; /* 164 */ /***/ (function(module) { -module.exports = {"a":"6.0.5"}; +module.exports = {"a":"6.0.6"}; /***/ }), /* 165 */ diff --git a/package-lock.json b/package-lock.json index 94f4c4799..7077aca2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "keen-explorer", - "version": "6.0.5", + "version": "6.0.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index bb9e4d485..c80963ca4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "keen-explorer", "description": "Data Explorer by Keen IO", - "version": "6.0.5", + "version": "6.0.6", "license": "MIT", "bucket-name": "keen-js", "main": "dist/keen-explorer.umd.js",