!function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n?n:e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},n.__esModule=!0},{}],26:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/get-iterator")["default"],i=e("babel-runtime/core-js/is-iterable")["default"];n["default"]=function(){function e(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var s,l=r(e);!(i=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(u){o=!0,a=u}finally{try{!i&&l["return"]&&l["return"]()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(i(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n.__esModule=!0},{"babel-runtime/core-js/get-iterator":2,"babel-runtime/core-js/is-iterable":3}],27:[function(e,t,n){"use strict";var r=e("babel-runtime/core-js/array/from")["default"];n["default"]=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&n[1]||""}function r(t){var n=e.match(t);return n&&n.length>1&&n[2]||""}var i,o=n(/(ipod|iphone|ipad)/i).toLowerCase(),a=/like android/i.test(e),s=!a&&/android/i.test(e),l=n(/edge\/(\d+(\.\d+)?)/i),u=n(/version\/(\d+(\.\d+)?)/i),c=/tablet/i.test(e),p=!c&&/[^-]mobi/i.test(e);/opera|opr/i.test(e)?i={name:"Opera",opera:t,version:u||n(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(e)?(i={name:"Windows Phone",windowsphone:t},l?(i.msedge=t,i.version=l):(i.msie=t,i.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?i={name:"Internet Explorer",msie:t,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(e)?i={name:"Microsoft Edge",msedge:t,version:l}:/chrome|crios|crmo/i.test(e)?i={name:"Chrome",chrome:t,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:o?(i={name:"iphone"==o?"iPhone":"ipad"==o?"iPad":"iPod"},u&&(i.version=u)):/sailfish/i.test(e)?i={name:"Sailfish",sailfish:t,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?i={name:"SeaMonkey",seamonkey:t,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(e)?(i={name:"Firefox",firefox:t,version:n(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(i.firefoxos=t)):/silk/i.test(e)?i={name:"Amazon Silk",silk:t,version:n(/silk\/(\d+(\.\d+)?)/i)}:s?i={name:"Android",version:u}:/phantom/i.test(e)?i={name:"PhantomJS",phantom:t,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?i={name:"BlackBerry",blackberry:t,version:u||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(e)?(i={name:"WebOS",webos:t,version:u||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(i.touchpad=t)):i=/bada/i.test(e)?{name:"Bada",bada:t,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(e)?{name:"Tizen",tizen:t,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||u}:/safari/i.test(e)?{name:"Safari",safari:t,version:u}:{name:n(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(e)?(i.name=i.name||"Webkit",i.webkit=t,!i.version&&u&&(i.version=u)):!i.opera&&/gecko\//i.test(e)&&(i.name=i.name||"Gecko",i.gecko=t,i.version=i.version||n(/gecko\/(\d+(\.\d+)?)/i)),i.msedge||!s&&!i.silk?o&&(i[o]=t,i.ios=t):i.android=t;var d="";i.windowsphone?d=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):o?(d=n(/os (\d+([_\s]\d+)*) like mac os x/i),d=d.replace(/[_\s]/g,".")):s?d=n(/android[ \/-](\d+(\.\d+)*)/i):i.webos?d=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?d=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?d=n(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(d=n(/tizen[\/\s](\d+(\.\d+)*)/i)),d&&(i.osversion=d);var f=d.split(".")[0];return c||"ipad"==o||s&&(3==f||4==f&&!p)||i.silk?i.tablet=t:(p||"iphone"==o||"ipod"==o||s||i.blackberry||i.webos||i.bada)&&(i.mobile=t),i.msedge||i.msie&&i.version>=10||i.chrome&&i.version>=20||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1?i.a=t:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6?i.c=t:i.x=t,i}var t=!0,n=e("undefined"!=typeof navigator?navigator.userAgent:"");return n.test=function(e){for(var t=0;ta;a++)o[a]=n.charCodeAt(a);return new Blob([o],{type:t})},t.exports.supported="undefined"!=typeof window.HTMLCanvasElement&&"undefined"!=typeof window.atob&&"undefined"!=typeof window.Blob&&"undefined"!=typeof window.ArrayBuffer&&"undefined"!=typeof window.Uint8Array,t.exports.init=function(){if(t.exports.supported){var e=window.HTMLCanvasElement.prototype;!e.toBlob&&e.toDataURL&&(e.toBlob=function(e,n,r){e(t.exports(this.toDataURL(n,r)))})}}},{}],31:[function(e,t,n){!function(){"use strict";function e(){for(var t=[],r=0;r1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!T(this,e)}}),b&&r.setDesc(c.prototype,"size",{get:function(){return l(this[v])}}),c},def:function(e,t,n){var r,i,o=T(e,t);return o?o.v=n:(e._l=o={i:i=_(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:T,setStrong:function(e,t,n){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?p(0,n.k):"values"==t?p(0,n.v):p(0,[n.k,n.v]):(e._t=void 0,p(1))},n?"entries":"values",!n,!0),m(t)}}},{"./$":81,"./$.ctx":57,"./$.defined":58,"./$.descriptors":59,"./$.for-of":64,"./$.has":67,"./$.hide":68,"./$.is-object":74,"./$.iter-define":77,"./$.iter-step":79,"./$.redefine-all":88,"./$.set-species":92,"./$.strict-new":96,"./$.uid":103}],54:[function(e,t,n){var r=e("./$.for-of"),i=e("./$.classof");t.exports=function(e){return function(){if(i(this)!=e)throw TypeError(e+"#toJSON isn't generic");var t=[];return r(this,!1,t.push,t),t}}},{"./$.classof":51,"./$.for-of":64}],55:[function(e,t,n){"use strict";var r=e("./$"),i=e("./$.global"),o=e("./$.export"),a=e("./$.fails"),s=e("./$.hide"),l=e("./$.redefine-all"),u=e("./$.for-of"),c=e("./$.strict-new"),p=e("./$.is-object"),d=e("./$.set-to-string-tag"),f=e("./$.descriptors");t.exports=function(e,t,n,h,m,b){var y=i[e],v=y,g=m?"set":"add",_=v&&v.prototype,T={};return f&&"function"==typeof v&&(b||_.forEach&&!a(function(){(new v).entries().next()}))?(v=t(function(t,n){c(t,v,e),t._c=new y,void 0!=n&&u(n,m,t[g],t)}),r.each.call("add,clear,delete,forEach,get,has,set,keys,values,entries".split(","),function(e){var t="add"==e||"set"==e;e in _&&(!b||"clear"!=e)&&s(v.prototype,e,function(n,r){if(!t&&b&&!p(n))return"get"==e?void 0:!1;var i=this._c[e](0===n?0:n,r);return t?this:i})}),"size"in _&&r.setDesc(v.prototype,"size",{get:function(){return this._c.size}})):(v=h.getConstructor(t,e,m,g),l(v.prototype,n)),d(v,e),T[e]=v,o(o.G+o.W+o.F,T),b||h.setStrong(v,e,m),v}},{"./$":81,"./$.descriptors":59,"./$.export":62,"./$.fails":63,"./$.for-of":64,"./$.global":66,"./$.hide":68,"./$.is-object":74,"./$.redefine-all":88,"./$.set-to-string-tag":93,"./$.strict-new":96}],56:[function(e,t,n){var r=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=r)},{}],57:[function(e,t,n){var r=e("./$.a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},{"./$.a-function":48}],58:[function(e,t,n){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],59:[function(e,t,n){t.exports=!e("./$.fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./$.fails":63}],60:[function(e,t,n){var r=e("./$.is-object"),i=e("./$.global").document,o=r(i)&&r(i.createElement);t.exports=function(e){return o?i.createElement(e):{}}},{"./$.global":66,"./$.is-object":74}],61:[function(e,t,n){var r=e("./$");t.exports=function(e){var t=r.getKeys(e),n=r.getSymbols;if(n)for(var i,o=n(e),a=r.isEnum,s=0;o.length>s;)a.call(e,i=o[s++])&&t.push(i);return t}},{"./$":81}],62:[function(e,t,n){var r=e("./$.global"),i=e("./$.core"),o=e("./$.ctx"),a="prototype",s=function(e,t,n){var l,u,c,p=e&s.F,d=e&s.G,f=e&s.S,h=e&s.P,m=e&s.B,b=e&s.W,y=d?i:i[t]||(i[t]={}),v=d?r:f?r[t]:(r[t]||{})[a];d&&(n=t);for(l in n)u=!p&&v&&l in v,u&&l in y||(c=u?v[l]:n[l],y[l]=d&&"function"!=typeof v[l]?n[l]:m&&u?o(c,r):b&&v[l]==c?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[a]=e[a],t}(c):h&&"function"==typeof c?o(Function.call,c):c,h&&((y[a]||(y[a]={}))[l]=c))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,t.exports=s},{"./$.core":56,"./$.ctx":57,"./$.global":66}],63:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],64:[function(e,t,n){var r=e("./$.ctx"),i=e("./$.iter-call"),o=e("./$.is-array-iter"),a=e("./$.an-object"),s=e("./$.to-length"),l=e("./core.get-iterator-method");t.exports=function(e,t,n,u){var c,p,d,f=l(e),h=r(n,u,t?2:1),m=0;if("function"!=typeof f)throw TypeError(e+" is not iterable!");if(o(f))for(c=s(e.length);c>m;m++)t?h(a(p=e[m])[0],p[1]):h(e[m]);else for(d=f.call(e);!(p=d.next()).done;)i(d,h,p.value,t)}},{"./$.an-object":50,"./$.ctx":57,"./$.is-array-iter":72,"./$.iter-call":75,"./$.to-length":101,"./core.get-iterator-method":105}],65:[function(e,t,n){var r=e("./$.to-iobject"),i=e("./$").getNames,o={}.toString,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};t.exports.get=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},{"./$":81,"./$.to-iobject":100}],66:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],67:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],68:[function(e,t,n){var r=e("./$"),i=e("./$.property-desc");t.exports=e("./$.descriptors")?function(e,t,n){return r.setDesc(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},{"./$":81,"./$.descriptors":59,"./$.property-desc":87}],69:[function(e,t,n){t.exports=e("./$.global").document&&document.documentElement},{"./$.global":66}],70:[function(e,t,n){t.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],71:[function(e,t,n){var r=e("./$.cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./$.cof":52}],72:[function(e,t,n){var r=e("./$.iterators"),i=e("./$.wks")("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},{"./$.iterators":80,"./$.wks":104}],73:[function(e,t,n){var r=e("./$.cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./$.cof":52}],74:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],75:[function(e,t,n){var r=e("./$.an-object");t.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(o){var a=e["return"];throw void 0!==a&&r(a.call(e)),o}}},{"./$.an-object":50}],76:[function(e,t,n){"use strict";var r=e("./$"),i=e("./$.property-desc"),o=e("./$.set-to-string-tag"),a={};e("./$.hide")(a,e("./$.wks")("iterator"),function(){return this}),t.exports=function(e,t,n){e.prototype=r.create(a,{next:i(1,n)}),o(e,t+" Iterator")}},{"./$":81,"./$.hide":68,"./$.property-desc":87,"./$.set-to-string-tag":93,"./$.wks":104}],77:[function(e,t,n){"use strict";var r=e("./$.library"),i=e("./$.export"),o=e("./$.redefine"),a=e("./$.hide"),s=e("./$.has"),l=e("./$.iterators"),u=e("./$.iter-create"),c=e("./$.set-to-string-tag"),p=e("./$").getProto,d=e("./$.wks")("iterator"),f=!([].keys&&"next"in[].keys()),h="@@iterator",m="keys",b="values",y=function(){return this};t.exports=function(e,t,n,v,g,_,T){u(n,t,v);var E,w,C=function(e){if(!f&&e in x)return x[e];switch(e){case m:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",P=g==b,M=!1,x=e.prototype,k=x[d]||x[h]||g&&x[g],A=k||C(g);if(k){var O=p(A.call(new e));c(O,S,!0),!r&&s(x,h)&&a(O,d,y),P&&k.name!==b&&(M=!0,A=function(){return k.call(this)})}if(r&&!T||!f&&!M&&x[d]||a(x,d,A),l[t]=A,l[S]=y,g)if(E={values:P?A:C(b),keys:_?A:C(m),entries:P?C("entries"):A},T)for(w in E)w in x||o(x,w,E[w]);else i(i.P+i.F*(f||M),t,E);return E}},{"./$":81,"./$.export":62,"./$.has":67,"./$.hide":68,"./$.iter-create":76,"./$.iterators":80,"./$.library":83,"./$.redefine":89,"./$.set-to-string-tag":93,"./$.wks":104}],78:[function(e,t,n){var r=e("./$.wks")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(s){}return n}},{"./$.wks":104}],79:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],80:[function(e,t,n){t.exports={}},{}],81:[function(e,t,n){var r=Object;t.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},{}],82:[function(e,t,n){var r=e("./$"),i=e("./$.to-iobject");t.exports=function(e,t){for(var n,o=i(e),a=r.getKeys(o),s=a.length,l=0;s>l;)if(o[n=a[l++]]===t)return n}},{"./$":81,"./$.to-iobject":100}],83:[function(e,t,n){t.exports=!0},{}],84:[function(e,t,n){var r,i,o,a=e("./$.global"),s=e("./$.task").set,l=a.MutationObserver||a.WebKitMutationObserver,u=a.process,c=a.Promise,p="process"==e("./$.cof")(u),d=function(){var e,t,n;for(p&&(e=u.domain)&&(u.domain=null,e.exit());r;)t=r.domain,n=r.fn,t&&t.enter(),n(),t&&t.exit(),r=r.next;i=void 0,e&&e.enter()};if(p)o=function(){u.nextTick(d)};else if(l){var f=1,h=document.createTextNode("");new l(d).observe(h,{characterData:!0}),o=function(){h.data=f=-f}}else o=c&&c.resolve?function(){c.resolve().then(d)}:function(){s.call(a,d)};t.exports=function(e){var t={fn:e,next:void 0,domain:p&&u.domain};i&&(i.next=t),r||(r=t,o()),i=t}},{"./$.cof":52,"./$.global":66,"./$.task":98}],85:[function(e,t,n){var r=e("./$"),i=e("./$.to-object"),o=e("./$.iobject");t.exports=e("./$.fails")(function(){var e=Object.assign,t={},n={},r=Symbol(),i="abcdefghijklmnopqrst";return t[r]=7,i.split("").forEach(function(e){n[e]=e}),7!=e({},t)[r]||Object.keys(e({},n)).join("")!=i})?function(e,t){for(var n=i(e),a=arguments,s=a.length,l=1,u=r.getKeys,c=r.getSymbols,p=r.isEnum;s>l;)for(var d,f=o(a[l++]),h=c?u(f).concat(c(f)):u(f),m=h.length,b=0;m>b;)p.call(f,d=h[b++])&&(n[d]=f[d]);return n}:Object.assign},{"./$":81,"./$.fails":63,"./$.iobject":71,"./$.to-object":102}],86:[function(e,t,n){var r=e("./$.export"),i=e("./$.core"),o=e("./$.fails");t.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},{"./$.core":56,"./$.export":62,"./$.fails":63}],87:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],88:[function(e,t,n){var r=e("./$.redefine");t.exports=function(e,t){for(var n in t)r(e,n,t[n]);return e}},{"./$.redefine":89}],89:[function(e,t,n){t.exports=e("./$.hide")},{"./$.hide":68}],90:[function(e,t,n){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},{}],91:[function(e,t,n){var r=e("./$").getDesc,i=e("./$.is-object"),o=e("./$.an-object"),a=function(e,t){if(o(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{i=e("./$.ctx")(Function.call,r(Object.prototype,"__proto__").set,2),i(t,[]),n=!(t instanceof Array)}catch(o){n=!0}return function(e,t){return a(e,t),n?e.__proto__=t:i(e,t),e}}({},!1):void 0),check:a}},{"./$":81,"./$.an-object":50,"./$.ctx":57,"./$.is-object":74}],92:[function(e,t,n){"use strict";var r=e("./$.core"),i=e("./$"),o=e("./$.descriptors"),a=e("./$.wks")("species");t.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.setDesc(t,a,{configurable:!0,get:function(){return this}})}},{"./$":81,"./$.core":56,"./$.descriptors":59,"./$.wks":104}],93:[function(e,t,n){var r=e("./$").setDesc,i=e("./$.has"),o=e("./$.wks")("toStringTag");t.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},{"./$":81,"./$.has":67,"./$.wks":104}],94:[function(e,t,n){var r=e("./$.global"),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(e){return o[e]||(o[e]={})}},{"./$.global":66}],95:[function(e,t,n){var r=e("./$.an-object"),i=e("./$.a-function"),o=e("./$.wks")("species");t.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},{"./$.a-function":48,"./$.an-object":50,"./$.wks":104}],96:[function(e,t,n){t.exports=function(e,t,n){if(!(e instanceof t))throw TypeError(n+": use the 'new' operator!");return e}},{}],97:[function(e,t,n){var r=e("./$.to-integer"),i=e("./$.defined");t.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return 0>l||l>=u?e?"":void 0:(o=s.charCodeAt(l),55296>o||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):(o-55296<<10)+(a-56320)+65536)}}},{"./$.defined":58,"./$.to-integer":99}],98:[function(e,t,n){var r,i,o,a=e("./$.ctx"),s=e("./$.invoke"),l=e("./$.html"),u=e("./$.dom-create"),c=e("./$.global"),p=c.process,d=c.setImmediate,f=c.clearImmediate,h=c.MessageChannel,m=0,b={},y="onreadystatechange",v=function(){var e=+this;if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},g=function(e){v.call(e.data)};d&&f||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},f=function(e){delete b[e]},"process"==e("./$.cof")(p)?r=function(e){p.nextTick(a(v,e,1))}:h?(i=new h,o=i.port2,i.port1.onmessage=g,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",g,!1)):r=y in u("script")?function(e){l.appendChild(u("script"))[y]=function(){l.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),t.exports={set:d,clear:f}},{"./$.cof":52,"./$.ctx":57,"./$.dom-create":60,"./$.global":66,"./$.html":69,"./$.invoke":70}],99:[function(e,t,n){var r=Math.ceil,i=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?i:r)(e)}},{}],100:[function(e,t,n){var r=e("./$.iobject"),i=e("./$.defined");t.exports=function(e){return r(i(e))}},{"./$.defined":58,"./$.iobject":71}],101:[function(e,t,n){var r=e("./$.to-integer"),i=Math.min;t.exports=function(e){return e>0?i(r(e),9007199254740991):0}},{"./$.to-integer":99}],102:[function(e,t,n){var r=e("./$.defined");t.exports=function(e){return Object(r(e))}},{"./$.defined":58}],103:[function(e,t,n){var r=0,i=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+i).toString(36))}},{}],104:[function(e,t,n){var r=e("./$.shared")("wks"),i=e("./$.uid"),o=e("./$.global").Symbol;t.exports=function(e){return r[e]||(r[e]=o&&o[e]||(o||i)("Symbol."+e))}},{"./$.global":66,"./$.shared":94,"./$.uid":103}],105:[function(e,t,n){var r=e("./$.classof"),i=e("./$.wks")("iterator"),o=e("./$.iterators");t.exports=e("./$.core").getIteratorMethod=function(e){return void 0!=e?e[i]||e["@@iterator"]||o[r(e)]:void 0}},{"./$.classof":51,"./$.core":56,"./$.iterators":80,"./$.wks":104}],106:[function(e,t,n){var r=e("./$.an-object"),i=e("./core.get-iterator-method");t.exports=e("./$.core").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},{"./$.an-object":50,"./$.core":56,"./core.get-iterator-method":105}],107:[function(e,t,n){var r=e("./$.classof"),i=e("./$.wks")("iterator"),o=e("./$.iterators");t.exports=e("./$.core").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},{"./$.classof":51,"./$.core":56,"./$.iterators":80,"./$.wks":104}],108:[function(e,t,n){"use strict"; var r=e("./$.ctx"),i=e("./$.export"),o=e("./$.to-object"),a=e("./$.iter-call"),s=e("./$.is-array-iter"),l=e("./$.to-length"),u=e("./core.get-iterator-method");i(i.S+i.F*!e("./$.iter-detect")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,c,p=o(e),d="function"==typeof this?this:Array,f=arguments,h=f.length,m=h>1?f[1]:void 0,b=void 0!==m,y=0,v=u(p);if(b&&(m=r(m,h>2?f[2]:void 0,2)),void 0==v||d==Array&&s(v))for(t=l(p.length),n=new d(t);t>y;y++)n[y]=b?m(p[y],y):p[y];else for(c=v.call(p),n=new d;!(i=c.next()).done;y++)n[y]=b?a(c,m,[i.value,y],!0):i.value;return n.length=y,n}})},{"./$.ctx":57,"./$.export":62,"./$.is-array-iter":72,"./$.iter-call":75,"./$.iter-detect":78,"./$.to-length":101,"./$.to-object":102,"./core.get-iterator-method":105}],109:[function(e,t,n){"use strict";var r=e("./$.add-to-unscopables"),i=e("./$.iter-step"),o=e("./$.iterators"),a=e("./$.to-iobject");t.exports=e("./$.iter-define")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},{"./$.add-to-unscopables":49,"./$.iter-define":77,"./$.iter-step":79,"./$.iterators":80,"./$.to-iobject":100}],110:[function(e,t,n){"use strict";var r=e("./$.collection-strong");e("./$.collection")("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(this,e);return t&&t.v},set:function(e,t){return r.def(this,0===e?0:e,t)}},r,!0)},{"./$.collection":55,"./$.collection-strong":53}],111:[function(e,t,n){var r=e("./$.export");r(r.S,"Number",{isNaN:function(e){return e!=e}})},{"./$.export":62}],112:[function(e,t,n){var r=e("./$.export");r(r.S,"Number",{parseFloat:parseFloat})},{"./$.export":62}],113:[function(e,t,n){var r=e("./$.export");r(r.S,"Number",{parseInt:parseInt})},{"./$.export":62}],114:[function(e,t,n){var r=e("./$.export");r(r.S+r.F,"Object",{assign:e("./$.object-assign")})},{"./$.export":62,"./$.object-assign":85}],115:[function(e,t,n){var r=e("./$.to-iobject");e("./$.object-sap")("getOwnPropertyDescriptor",function(e){return function(t,n){return e(r(t),n)}})},{"./$.object-sap":86,"./$.to-iobject":100}],116:[function(e,t,n){var r=e("./$.to-object");e("./$.object-sap")("keys",function(e){return function(t){return e(r(t))}})},{"./$.object-sap":86,"./$.to-object":102}],117:[function(e,t,n){var r=e("./$.export");r(r.S,"Object",{setPrototypeOf:e("./$.set-proto").set})},{"./$.export":62,"./$.set-proto":91}],118:[function(e,t,n){arguments[4][29][0].apply(n,arguments)},{dup:29}],119:[function(e,t,n){"use strict";var r,i=e("./$"),o=e("./$.library"),a=e("./$.global"),s=e("./$.ctx"),l=e("./$.classof"),u=e("./$.export"),c=e("./$.is-object"),p=e("./$.an-object"),d=e("./$.a-function"),f=e("./$.strict-new"),h=e("./$.for-of"),m=e("./$.set-proto").set,b=e("./$.same-value"),y=e("./$.wks")("species"),v=e("./$.species-constructor"),g=e("./$.microtask"),_="Promise",T=a.process,E="process"==l(T),w=a[_],C=function(){},S=function(e){var t,n=new w(C);return e&&(n.constructor=function(e){e(C,C)}),(t=w.resolve(n))["catch"](C),t===n},P=function(){function t(e){var n=new w(e);return m(n,t.prototype),n}var n=!1;try{if(n=w&&w.resolve&&S(),m(t,w),t.prototype=i.create(w.prototype,{constructor:{value:t}}),t.resolve(5).then(function(){})instanceof t||(n=!1),n&&e("./$.descriptors")){var r=!1;w.resolve(i.setDesc({},"then",{get:function(){r=!0}})),n=r}}catch(o){n=!1}return n}(),M=function(e,t){return o&&e===w&&t===r?!0:b(e,t)},x=function(e){var t=p(e)[y];return void 0!=t?t:e},k=function(e){var t;return c(e)&&"function"==typeof(t=e.then)?t:!1},A=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=d(t),this.reject=d(n)},O=function(e){try{e()}catch(t){return{error:t}}},N=function(e,t){if(!e.n){e.n=!0;var n=e.c;g(function(){for(var r=e.v,i=1==e.s,o=0,s=function(t){var n,o,a=i?t.ok:t.fail,s=t.resolve,l=t.reject;try{a?(i||(e.h=!0),n=a===!0?r:a(r),n===t.promise?l(TypeError("Promise-chain cycle")):(o=k(n))?o.call(n,s,l):s(n)):l(r)}catch(u){l(u)}};n.length>o;)s(n[o++]);n.length=0,e.n=!1,t&&setTimeout(function(){var t,n,i=e.p;R(i)&&(E?T.emit("unhandledRejection",r,i):(t=a.onunhandledrejection)?t({promise:i,reason:r}):(n=a.console)&&n.error&&n.error("Unhandled promise rejection",r)),e.a=void 0},1)})}},R=function(e){var t,n=e._d,r=n.a||n.c,i=0;if(n.h)return!1;for(;r.length>i;)if(t=r[i++],t.fail||!R(t.promise))return!1;return!0},I=function(e){var t=this;t.d||(t.d=!0,t=t.r||t,t.v=e,t.s=2,t.a=t.c.slice(),N(t,!0))},D=function(e){var t,n=this;if(!n.d){n.d=!0,n=n.r||n;try{if(n.p===e)throw TypeError("Promise can't be resolved itself");(t=k(e))?g(function(){var r={r:n,d:!1};try{t.call(e,s(D,r,1),s(I,r,1))}catch(i){I.call(r,i)}}):(n.v=e,n.s=1,N(n,!1))}catch(r){I.call({r:n,d:!1},r)}}};P||(w=function(e){d(e);var t=this._d={p:f(this,w,_),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};try{e(s(D,t,1),s(I,t,1))}catch(n){I.call(t,n)}},e("./$.redefine-all")(w.prototype,{then:function(e,t){var n=new A(v(this,w)),r=n.promise,i=this._d;return n.ok="function"==typeof e?e:!0,n.fail="function"==typeof t&&t,i.c.push(n),i.a&&i.a.push(n),i.s&&N(i,!1),r},"catch":function(e){return this.then(void 0,e)}})),u(u.G+u.W+u.F*!P,{Promise:w}),e("./$.set-to-string-tag")(w,_),e("./$.set-species")(_),r=e("./$.core")[_],u(u.S+u.F*!P,_,{reject:function(e){var t=new A(this),n=t.reject;return n(e),t.promise}}),u(u.S+u.F*(!P||S(!0)),_,{resolve:function(e){if(e instanceof w&&M(e.constructor,this))return e;var t=new A(this),n=t.resolve;return n(e),t.promise}}),u(u.S+u.F*!(P&&e("./$.iter-detect")(function(e){w.all(e)["catch"](function(){})})),_,{all:function(e){var t=x(this),n=new A(t),r=n.resolve,o=n.reject,a=[],s=O(function(){h(e,!1,a.push,a);var n=a.length,s=Array(n);n?i.each.call(a,function(e,i){var a=!1;t.resolve(e).then(function(e){a||(a=!0,s[i]=e,--n||r(s))},o)}):r(s)});return s&&o(s.error),n.promise},race:function(e){var t=x(this),n=new A(t),r=n.reject,i=O(function(){h(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},{"./$":81,"./$.a-function":48,"./$.an-object":50,"./$.classof":51,"./$.core":56,"./$.ctx":57,"./$.descriptors":59,"./$.export":62,"./$.for-of":64,"./$.global":66,"./$.is-object":74,"./$.iter-detect":78,"./$.library":83,"./$.microtask":84,"./$.redefine-all":88,"./$.same-value":90,"./$.set-proto":91,"./$.set-species":92,"./$.set-to-string-tag":93,"./$.species-constructor":95,"./$.strict-new":96,"./$.wks":104}],120:[function(e,t,n){"use strict";var r=e("./$.string-at")(!0);e("./$.iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},{"./$.iter-define":77,"./$.string-at":97}],121:[function(e,t,n){"use strict";var r=e("./$"),i=e("./$.global"),o=e("./$.has"),a=e("./$.descriptors"),s=e("./$.export"),l=e("./$.redefine"),u=e("./$.fails"),c=e("./$.shared"),p=e("./$.set-to-string-tag"),d=e("./$.uid"),f=e("./$.wks"),h=e("./$.keyof"),m=e("./$.get-names"),b=e("./$.enum-keys"),y=e("./$.is-array"),v=e("./$.an-object"),g=e("./$.to-iobject"),_=e("./$.property-desc"),T=r.getDesc,E=r.setDesc,w=r.create,C=m.get,S=i.Symbol,P=i.JSON,M=P&&P.stringify,x=!1,k=f("_hidden"),A=r.isEnum,O=c("symbol-registry"),N=c("symbols"),R="function"==typeof S,I=Object.prototype,D=a&&u(function(){return 7!=w(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=T(I,t);r&&delete I[t],E(e,t,n),r&&e!==I&&E(I,t,r)}:E,L=function(e){var t=N[e]=w(S.prototype);return t._k=e,a&&x&&D(I,e,{configurable:!0,set:function(t){o(this,k)&&o(this[k],e)&&(this[k][e]=!1),D(this,e,_(1,t))}}),t},j=function(e){return"symbol"==typeof e},F=function(e,t,n){return n&&o(N,t)?(n.enumerable?(o(e,k)&&e[k][t]&&(e[k][t]=!1),n=w(n,{enumerable:_(0,!1)})):(o(e,k)||E(e,k,_(1,{})),e[k][t]=!0),D(e,t,n)):E(e,t,n)},U=function(e,t){v(e);for(var n,r=b(t=g(t)),i=0,o=r.length;o>i;)F(e,n=r[i++],t[n]);return e},B=function(e,t){return void 0===t?w(e):U(w(e),t)},H=function(e){var t=A.call(this,e);return t||!o(this,e)||!o(N,e)||o(this,k)&&this[k][e]?t:!0},G=function(e,t){var n=T(e=g(e),t);return!n||!o(N,t)||o(e,k)&&e[k][t]||(n.enumerable=!0),n},K=function(e){for(var t,n=C(g(e)),r=[],i=0;n.length>i;)o(N,t=n[i++])||t==k||r.push(t);return r},q=function(e){for(var t,n=C(g(e)),r=[],i=0;n.length>i;)o(N,t=n[i++])&&r.push(N[t]);return r},V=function(e){if(void 0!==e&&!j(e)){for(var t,n,r=[e],i=1,o=arguments;o.length>i;)r.push(o[i++]);return t=r[1],"function"==typeof t&&(n=t),!n&&y(t)||(t=function(e,t){return n&&(t=n.call(this,e,t)),j(t)?void 0:t}),r[1]=t,M.apply(P,r)}},z=u(function(){var e=S();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))});R||(S=function(){if(j(this))throw TypeError("Symbol is not a constructor");return L(d(arguments.length>0?arguments[0]:void 0))},l(S.prototype,"toString",function(){return this._k}),j=function(e){return e instanceof S},r.create=B,r.isEnum=H,r.getDesc=G,r.setDesc=F,r.setDescs=U,r.getNames=m.get=K,r.getSymbols=q,a&&!e("./$.library")&&l(I,"propertyIsEnumerable",H,!0));var X={"for":function(e){return o(O,e+="")?O[e]:O[e]=S(e)},keyFor:function(e){return h(O,e)},useSetter:function(){x=!0},useSimple:function(){x=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(e){var t=f(e);X[e]=R?t:L(t)}),x=!0,s(s.G+s.W,{Symbol:S}),s(s.S,"Symbol",X),s(s.S+s.F*!R,"Object",{create:B,defineProperty:F,defineProperties:U,getOwnPropertyDescriptor:G,getOwnPropertyNames:K,getOwnPropertySymbols:q}),P&&s(s.S+s.F*(!R||z),"JSON",{stringify:V}),p(S,"Symbol"),p(Math,"Math",!0),p(i.JSON,"JSON",!0)},{"./$":81,"./$.an-object":50,"./$.descriptors":59,"./$.enum-keys":61,"./$.export":62,"./$.fails":63,"./$.get-names":65,"./$.global":66,"./$.has":67,"./$.is-array":73,"./$.keyof":82,"./$.library":83,"./$.property-desc":87,"./$.redefine":89,"./$.set-to-string-tag":93,"./$.shared":94,"./$.to-iobject":100,"./$.uid":103,"./$.wks":104}],122:[function(e,t,n){var r=e("./$.export");r(r.P,"Map",{toJSON:e("./$.collection-to-json")("Map")})},{"./$.collection-to-json":54,"./$.export":62}],123:[function(e,t,n){e("./es6.array.iterator");var r=e("./$.iterators");r.NodeList=r.HTMLCollection=r.Array},{"./$.iterators":80,"./es6.array.iterator":109}],124:[function(e,t,n){!function(){function e(e){return e&&(e.ownerDocument||e.document||e).documentElement}function n(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}function r(e,t){return t>e?-1:e>t?1:e>=t?0:NaN}function i(e){return null===e?NaN:+e}function o(e){return!isNaN(e)}function a(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}function s(e){return e.length}function l(e){for(var t=1;e*t%1;)t*=10;return t}function u(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function c(){this._=Object.create(null)}function p(e){return(e+="")===Ea||e[0]===wa?wa+e:e}function d(e){return(e+="")[0]===wa?e.slice(1):e}function f(e){return p(e)in this._}function h(e){return(e=p(e))in this._&&delete this._[e]}function m(){var e=[];for(var t in this._)e.push(d(t));return e}function b(){var e=0;for(var t in this._)++e;return e}function y(){for(var e in this._)return!1;return!0}function v(){this._=Object.create(null)}function g(e){return e}function _(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function T(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=Ca.length;r>n;++n){var i=Ca[n]+t;if(i in e)return i}}function E(){}function w(){}function C(e){function t(){for(var t,r=n,i=-1,o=r.length;++in;n++)for(var i,o=e[n],a=0,s=o.length;s>a;a++)(i=o[a])&&t(i,a,n);return e}function V(e){return Pa(e,Ra),e}function z(e){var t,n;return function(r,i,o){var a,s=e[o].update,l=s.length;for(o!=n&&(n=o,t=0),i>=t&&(t=i+1);!(a=s[t])&&++t0&&(e=e.slice(0,s));var u=Ia.get(e);return u&&(e=u,l=$),s?t?i:r:t?E:o}function W(e,t){return function(n){var r=ua.event;ua.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{ua.event=r}}}function $(e,t){var n=W(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}function Q(t){var r=".dragsuppress-"+ ++La,i="click"+r,o=ua.select(n(t)).on("touchmove"+r,S).on("dragstart"+r,S).on("selectstart"+r,S);if(null==Da&&(Da="onselectstart"in t?!1:T(t.style,"userSelect")),Da){var a=e(t).style,s=a[Da];a[Da]="none"}return function(e){if(o.on(r,null),Da&&(a[Da]=s),e){var t=function(){o.on(i,null)};o.on(i,function(){S(),t()},!0),setTimeout(t,0)}}}function Y(e,t){t.changedTouches&&(t=t.changedTouches[0]);var r=e.ownerSVGElement||e;if(r.createSVGPoint){var i=r.createSVGPoint();if(0>ja){var o=n(e);if(o.scrollX||o.scrollY){r=ua.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=r[0][0].getScreenCTM();ja=!(a.f||a.e),r.remove()}}return ja?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}var s=e.getBoundingClientRect();return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}function Z(){return ua.event.changedTouches[0].identifier}function J(e){return e>0?1:0>e?-1:0}function ee(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function te(e){return e>1?0:-1>e?Ba:Math.acos(e)}function ne(e){return e>1?Ka:-1>e?-Ka:Math.asin(e)}function re(e){return((e=Math.exp(e))-1/e)/2}function ie(e){return((e=Math.exp(e))+1/e)/2}function oe(e){return((e=Math.exp(2*e))-1)/(e+1)}function ae(e){return(e=Math.sin(e/2))*e}function se(){}function le(e,t,n){return this instanceof le?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof le?new le(e.h,e.s,e.l):Ee(""+e,we,le):new le(e,t,n)}function ue(e,t,n){function r(e){return e>360?e-=360:0>e&&(e+=360),60>e?o+(a-o)*e/60:180>e?a:240>e?o+(a-o)*(240-e)/60:o}function i(e){return Math.round(255*r(e))}var o,a;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:0>t?0:t>1?1:t,n=0>n?0:n>1?1:n,a=.5>=n?n*(1+t):n+t-n*t,o=2*n-a,new ve(i(e+120),i(e),i(e-120))}function ce(e,t,n){return this instanceof ce?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof ce?new ce(e.h,e.c,e.l):e instanceof de?he(e.l,e.a,e.b):he((e=Ce((e=ua.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new ce(e,t,n)}function pe(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new de(n,Math.cos(e*=qa)*t,Math.sin(e)*t)}function de(e,t,n){return this instanceof de?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof de?new de(e.l,e.a,e.b):e instanceof ce?pe(e.h,e.c,e.l):Ce((e=ve(e)).r,e.g,e.b):new de(e,t,n)}function fe(e,t,n){var r=(e+16)/116,i=r+t/500,o=r-n/200;return i=me(i)*ts,r=me(r)*ns,o=me(o)*rs,new ve(ye(3.2404542*i-1.5371385*r-.4985314*o),ye(-.969266*i+1.8760108*r+.041556*o),ye(.0556434*i-.2040259*r+1.0572252*o))}function he(e,t,n){return e>0?new ce(Math.atan2(n,t)*Va,Math.sqrt(t*t+n*n),e):new ce(NaN,NaN,e)}function me(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function be(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function ye(e){return Math.round(255*(.00304>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function ve(e,t,n){return this instanceof ve?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof ve?new ve(e.r,e.g,e.b):Ee(""+e,ve,ue):new ve(e,t,n)}function ge(e){return new ve(e>>16,e>>8&255,255&e)}function _e(e){return ge(e)+""}function Te(e){return 16>e?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function Ee(e,t,n){var r,i,o,a=0,s=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(Pe(i[0]),Pe(i[1]),Pe(i[2]))}return(o=as.get(e))?t(o.r,o.g,o.b):(null==e||"#"!==e.charAt(0)||isNaN(o=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&o)>>4,a=a>>4|a,s=240&o,s=s>>4|s,l=15&o,l=l<<4|l):7===e.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,l=255&o)),t(a,s,l))}function we(e,t,n){var r,i,o=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-o,l=(a+o)/2;return s?(i=.5>l?s/(a+o):s/(2-a-o),r=e==a?(t-n)/s+(n>t?6:0):t==a?(n-e)/s+2:(e-t)/s+4,r*=60):(r=NaN,i=l>0&&1>l?0:r),new le(r,i,l)}function Ce(e,t,n){e=Se(e),t=Se(t),n=Se(n);var r=be((.4124564*e+.3575761*t+.1804375*n)/ts),i=be((.2126729*e+.7151522*t+.072175*n)/ns),o=be((.0193339*e+.119192*t+.9503041*n)/rs);return de(116*i-16,500*(r-i),200*(i-o))}function Se(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Pe(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function Me(e){return"function"==typeof e?e:function(){return e}}function xe(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),ke(t,n,e,r)}}function ke(e,t,n,r){function i(){var e,t=l.status;if(!t&&Oe(l)||t>=200&&300>t||304===t){try{e=n.call(o,l)}catch(r){return void a.error.call(o,r)}a.load.call(o,e)}else a.error.call(o,l)}var o={},a=ua.dispatch("beforesend","progress","load","error"),s={},l=new XMLHttpRequest,u=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(e)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=i:l.onreadystatechange=function(){l.readyState>3&&i()},l.onprogress=function(e){var t=ua.event;ua.event=e;try{a.progress.call(o,l)}finally{ua.event=t}},o.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",o)},o.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",o):t},o.responseType=function(e){return arguments.length?(u=e,o):u},o.response=function(e){return n=e,o},["get","post"].forEach(function(e){o[e]=function(){return o.send.apply(o,[e].concat(pa(arguments)))}}),o.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),l.open(n,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),l.setRequestHeader)for(var c in s)l.setRequestHeader(c,s[c]);return null!=t&&l.overrideMimeType&&l.overrideMimeType(t),null!=u&&(l.responseType=u),null!=i&&o.on("error",i).on("load",function(e){i(null,e)}),a.beforesend.call(o,l),l.send(null==r?null:r),o},o.abort=function(){return l.abort(),o},ua.rebind(o,a,"on"),null==r?o:o.get(Ae(r))}function Ae(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function Oe(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}function Ne(e,t,n){var r=arguments.length;2>r&&(t=0),3>r&&(n=Date.now());var i=n+t,o={c:e,t:i,n:null};return ls?ls.n=o:ss=o,ls=o,us||(cs=clearTimeout(cs),us=1,ps(Re)),o}function Re(){var e=Ie(),t=De()-e;t>24?(isFinite(t)&&(clearTimeout(cs),cs=setTimeout(Re,t)),us=0):(us=1,ps(Re))}function Ie(){for(var e=Date.now(),t=ss;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function De(){for(var e,t=ss,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}}function Fe(e){var t=e.decimal,n=e.thousands,r=e.grouping,i=e.currency,o=r&&n?function(e,t){for(var i=e.length,o=[],a=0,s=r[0],l=0;i>0&&s>0&&(l+s+1>t&&(s=Math.max(1,t-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>t));)s=r[a=(a+1)%r.length];return o.reverse().join(n)}:g;return function(e){var n=fs.exec(e),r=n[1]||" ",a=n[2]||">",s=n[3]||"-",l=n[4]||"",u=n[5],c=+n[6],p=n[7],d=n[8],f=n[9],h=1,m="",b="",y=!1,v=!0;switch(d&&(d=+d.substring(1)),(u||"0"===r&&"="===a)&&(u=r="0",a="="),f){case"n":p=!0,f="g";break;case"%":h=100,b="%",f="f";break;case"p":h=100,b="%",f="r";break;case"b":case"o":case"x":case"X":"#"===l&&(m="0"+f.toLowerCase());case"c":v=!1;case"d":y=!0,d=0;break;case"s":h=-1,f="r"}"$"===l&&(m=i[0],b=i[1]),"r"!=f||d||(f="g"),null!=d&&("g"==f?d=Math.max(1,Math.min(21,d)):"e"!=f&&"f"!=f||(d=Math.max(0,Math.min(20,d)))),f=hs.get(f)||Ue;var g=u&&p;return function(e){var n=b;if(y&&e%1)return"";var i=0>e||0===e&&0>1/e?(e=-e,"-"):"-"===s?"":s;if(0>h){var l=ua.formatPrefix(e,d);e=l.scale(e),n=l.symbol+b}else e*=h;e=f(e,d);var _,T,E=e.lastIndexOf(".");if(0>E){var w=v?e.lastIndexOf("e"):-1;0>w?(_=e,T=""):(_=e.substring(0,w),T=e.substring(w))}else _=e.substring(0,E),T=t+e.substring(E+1);!u&&p&&(_=o(_,1/0));var C=m.length+_.length+T.length+(g?0:i.length),S=c>C?new Array(C=c-C+1).join(r):"";return g&&(_=o(S+_,S.length?c-T.length:1/0)),i+=m,e=_+T,("<"===a?i+e+S:">"===a?S+i+e:"^"===a?S.substring(0,C>>=1)+i+e+S.substring(C):i+(g?e:S+e))+n}}}function Ue(e){return e+""}function Be(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function He(e,t,n){function r(t){var n=e(t),r=o(n,1);return r-t>t-n?n:r}function i(n){return t(n=e(new bs(n-1)),1),n}function o(e,n){return t(e=new bs(+e),n),e}function a(e,r,o){var a=i(e),s=[];if(o>1)for(;r>a;)n(a)%o||s.push(new Date(+a)),t(a,1);else for(;r>a;)s.push(new Date(+a)),t(a,1);return s}function s(e,t,n){try{bs=Be;var r=new Be;return r._=e,a(r,t,n)}finally{bs=Date}}e.floor=e,e.round=r,e.ceil=i,e.offset=o,e.range=a;var l=e.utc=Ge(e);return l.floor=l,l.round=Ge(r),l.ceil=Ge(i),l.offset=Ge(o),l.range=s,e}function Ge(e){return function(t,n){try{bs=Be;var r=new Be;return r._=t,e(r,n)._}finally{bs=Date}}}function Ke(e){function t(e){function t(t){for(var n,i,o,a=[],s=-1,l=0;++ss;){if(r>=u)return-1;if(i=t.charCodeAt(s++),37===i){if(a=t.charAt(s++),o=k[a in vs?t.charAt(s++):a],!o||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function r(e,t,n){E.lastIndex=0;var r=E.exec(t.slice(n));return r?(e.w=w.get(r[0].toLowerCase()),n+r[0].length):-1}function i(e,t,n){_.lastIndex=0;var r=_.exec(t.slice(n));return r?(e.w=T.get(r[0].toLowerCase()),n+r[0].length):-1}function o(e,t,n){P.lastIndex=0;var r=P.exec(t.slice(n));return r?(e.m=M.get(r[0].toLowerCase()),n+r[0].length):-1}function a(e,t,n){C.lastIndex=0;var r=C.exec(t.slice(n));return r?(e.m=S.get(r[0].toLowerCase()),n+r[0].length):-1}function s(e,t,r){return n(e,x.c.toString(),t,r)}function l(e,t,r){return n(e,x.x.toString(),t,r)}function u(e,t,r){return n(e,x.X.toString(),t,r)}function c(e,t,n){var r=g.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}var p=e.dateTime,d=e.date,f=e.time,h=e.periods,m=e.days,b=e.shortDays,y=e.months,v=e.shortMonths;t.utc=function(e){function n(e){try{bs=Be;var t=new bs;return t._=e,r(t)}finally{bs=Date}}var r=t(e);return n.parse=function(e){try{bs=Be;var t=r.parse(e);return t&&t._}finally{bs=Date}},n.toString=r.toString,n},t.multi=t.utc.multi=ut;var g=ua.map(),_=Ve(m),T=ze(m),E=Ve(b),w=ze(b),C=Ve(y),S=ze(y),P=Ve(v),M=ze(v);h.forEach(function(e,t){g.set(e.toLowerCase(),t)});var x={a:function(e){return b[e.getDay()]},A:function(e){return m[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return y[e.getMonth()]},c:t(p),d:function(e,t){return qe(e.getDate(),t,2)},e:function(e,t){return qe(e.getDate(),t,2)},H:function(e,t){return qe(e.getHours(),t,2)},I:function(e,t){return qe(e.getHours()%12||12,t,2)},j:function(e,t){return qe(1+ms.dayOfYear(e),t,3)},L:function(e,t){return qe(e.getMilliseconds(),t,3)},m:function(e,t){return qe(e.getMonth()+1,t,2)},M:function(e,t){return qe(e.getMinutes(),t,2)},p:function(e){return h[+(e.getHours()>=12)]},S:function(e,t){return qe(e.getSeconds(),t,2)},U:function(e,t){return qe(ms.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return qe(ms.mondayOfYear(e),t,2)},x:t(d),X:t(f),y:function(e,t){return qe(e.getFullYear()%100,t,2)},Y:function(e,t){return qe(e.getFullYear()%1e4,t,4)},Z:st,"%":function(){return"%"}},k={a:r,A:i,b:o,B:a,c:s,d:tt,e:tt,H:rt,I:rt,j:nt,L:at,m:et,M:it,p:c,S:ot,U:We,w:Xe,W:$e,x:l,X:u,y:Ye,Y:Qe,Z:Ze,"%":lt};return t}function qe(e,t,n){var r=0>e?"-":"",i=(r?-e:e)+"",o=i.length;return r+(n>o?new Array(n-o+1).join(t)+i:i)}function Ve(e){return new RegExp("^(?:"+e.map(ua.requote).join("|")+")","i")}function ze(e){for(var t=new c,n=-1,r=e.length;++n68?1900:2e3)}function et(e,t,n){gs.lastIndex=0;var r=gs.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function tt(e,t,n){gs.lastIndex=0;var r=gs.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function nt(e,t,n){gs.lastIndex=0;var r=gs.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function rt(e,t,n){gs.lastIndex=0;var r=gs.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function it(e,t,n){gs.lastIndex=0;var r=gs.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ot(e,t,n){gs.lastIndex=0;var r=gs.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function at(e,t,n){gs.lastIndex=0;var r=gs.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function st(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=Ta(t)/60|0,i=Ta(t)%60;return n+qe(r,"0",2)+qe(i,"0",2)}function lt(e,t,n){_s.lastIndex=0;var r=_s.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ut(e){for(var t=e.length,n=-1;++n=0?1:-1,s=a*n,l=Math.cos(t),u=Math.sin(t),c=o*u,p=i*l+c*Math.cos(s),d=c*a*Math.sin(s);Ps.add(Math.atan2(d,p)),r=e,i=l,o=u}var t,n,r,i,o;Ms.point=function(a,s){Ms.point=e,r=(t=a)*qa,i=Math.cos(s=(n=s)*qa/2+Ba/4),o=Math.sin(s)},Ms.lineEnd=function(){e(t,n)}}function bt(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function yt(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function vt(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 gt(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function _t(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Tt(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Et(e){return[Math.atan2(e[1],e[0]),ne(e[2])]}function wt(e,t){return Ta(e[0]-t[0])s;++s)i.point((n=e[s])[0],n[1]);return void i.lineEnd()}var l=new Rt(n,e,null,!0),u=new Rt(n,null,l,!1);l.o=u,o.push(l),a.push(u),l=new Rt(r,e,null,!1),u=new Rt(r,null,l,!0),l.o=u,o.push(l),a.push(u)}}),a.sort(t),Nt(o),Nt(a),o.length){for(var s=0,l=n,u=a.length;u>s;++s)a[s].e=l=!l;for(var c,p,d=o[0];;){for(var f=d,h=!0;f.v;)if((f=f.n)===d)return;c=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(h)for(var s=0,u=c.length;u>s;++s)i.point((p=c[s])[0],p[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(h){c=f.p.z;for(var s=c.length-1;s>=0;--s)i.point((p=c[s])[0],p[1])}else r(f.x,f.p.x,-1,i);f=f.p}f=f.o,c=f.z,h=!h}while(!f.v);i.lineEnd()}}}function Nt(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r0){for(T||(o.polygonStart(),T=!0),o.lineStart();++a1&&2&t&&n.push(n.pop().concat(n.shift())),f.push(n.filter(Dt))}var f,h,m,b=t(o),y=i.invert(r[0],r[1]),v={point:a,lineStart:l,lineEnd:u,polygonStart:function(){v.point=c,v.lineStart=p,v.lineEnd=d,f=[],h=[]},polygonEnd:function(){v.point=a,v.lineStart=l,v.lineEnd=u,f=ua.merge(f);var e=Ht(y,h);f.length?(T||(o.polygonStart(),T=!0),Ot(f,jt,e,n,o)):e&&(T||(o.polygonStart(),T=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),T&&(o.polygonEnd(),T=!1),f=h=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}},g=Lt(),_=t(g),T=!1;return v}}function Dt(e){return e.length>1}function Lt(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:E,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function jt(e,t){return((e=e.x)[0]<0?e[1]-Ka-Fa:Ka-e[1])-((t=t.x)[0]<0?t[1]-Ka-Fa:Ka-t[1])}function Ft(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?Ba:-Ba,l=Ta(o-n);Ta(l-Ba)0?Ka:-Ka),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&l>=Ba&&(Ta(n-i)Fa?Math.atan((Math.sin(t)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*o*a)):(t+r)/2}function Bt(e,t,n,r){var i;if(null==e)i=n*Ka,r.point(-Ba,i),r.point(0,i),r.point(Ba,i),r.point(Ba,0),r.point(Ba,-i),r.point(0,-i),r.point(-Ba,-i),r.point(-Ba,0),r.point(-Ba,i);else if(Ta(e[0]-t[0])>Fa){var o=e[0]s;++s){var u=t[s],c=u.length;if(c)for(var p=u[0],d=p[0],f=p[1]/2+Ba/4,h=Math.sin(f),m=Math.cos(f),b=1;;){b===c&&(b=0),e=u[b];var y=e[0],v=e[1]/2+Ba/4,g=Math.sin(v),_=Math.cos(v),T=y-d,E=T>=0?1:-1,w=E*T,C=w>Ba,S=h*g;if(Ps.add(Math.atan2(S*E*Math.sin(w),m*_+S*Math.cos(w))),o+=C?T+E*Ha:T,C^d>=n^y>=n){var P=vt(bt(p),bt(e));Tt(P);var M=vt(i,P);Tt(M);var x=(C^T>=0?-1:1)*ne(M[2]);(r>x||r===x&&(P[0]||P[1]))&&(a+=C^T>=0?1:-1)}if(!b++)break;d=y,h=g,m=_,p=e}}return(-Fa>o||Fa>o&&0>Ps)^1&a}function Gt(e){function t(e,t){return Math.cos(e)*Math.cos(t)>o}function n(e){var n,o,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(p,d){var f,h=[p,d],m=t(p,d),b=a?m?0:i(p,d):m?i(p+(0>p?Ba:-Ba),d):0;if(!n&&(u=l=m)&&e.lineStart(),m!==l&&(f=r(n,h),(wt(n,f)||wt(h,f))&&(h[0]+=Fa,h[1]+=Fa,m=t(h[0],h[1]))),m!==l)c=0,m?(e.lineStart(),f=r(h,n),e.point(f[0],f[1])):(f=r(n,h),e.point(f[0],f[1]),e.lineEnd()),n=f;else if(s&&n&&a^m){var y;b&o||!(y=r(h,n,!0))||(c=0,a?(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||n&&wt(n,h)||e.point(h[0],h[1]),n=h,l=m,o=b},lineEnd:function(){l&&e.lineEnd(),n=null},clean:function(){return c|(u&&l)<<1}}}function r(e,t,n){var r=bt(e),i=bt(t),a=[1,0,0],s=vt(r,i),l=yt(s,s),u=s[0],c=l-u*u;if(!c)return!n&&e;var p=o*l/c,d=-o*u/c,f=vt(a,s),h=_t(a,p),m=_t(s,d);gt(h,m);var b=f,y=yt(h,b),v=yt(b,b),g=y*y-v*(yt(h,h)-1);if(!(0>g)){var _=Math.sqrt(g),T=_t(b,(-y-_)/v);if(gt(T,h),T=Et(T),!n)return T;var E,w=e[0],C=t[0],S=e[1],P=t[1];w>C&&(E=w,w=C,C=E);var M=C-w,x=Ta(M-Ba)M;if(!x&&S>P&&(E=S,S=P,P=E),k?x?S+P>0^T[1]<(Ta(T[0]-w)Ba^(w<=T[0]&&T[0]<=C)){var A=_t(b,(-y+_)/v);return gt(A,h),[T,Et(A)]}}}function i(t,n){var r=a?e:Ba-e,i=0;return-r>t?i|=1:t>r&&(i|=2),-r>n?i|=4:n>r&&(i|=8),i}var o=Math.cos(e),a=o>0,s=Ta(o)>Fa,l=bn(e,6*qa);return It(t,n,l,a?[0,-e]:[-Ba,e-Ba])}function Kt(e,t,n,r){return function(i){var o,a=i.a,s=i.b,l=a.x,u=a.y,c=s.x,p=s.y,d=0,f=1,h=c-l,m=p-u;if(o=e-l,h||!(o>0)){if(o/=h,0>h){if(d>o)return;f>o&&(f=o)}else if(h>0){if(o>f)return;o>d&&(d=o)}if(o=n-l,h||!(0>o)){if(o/=h,0>h){if(o>f)return;o>d&&(d=o)}else if(h>0){if(d>o)return;f>o&&(f=o)}if(o=t-u,m||!(o>0)){if(o/=m,0>m){if(d>o)return;f>o&&(f=o)}else if(m>0){if(o>f)return;o>d&&(d=o)}if(o=r-u,m||!(0>o)){if(o/=m,0>m){if(o>f)return;o>d&&(d=o)}else if(m>0){if(d>o)return;f>o&&(f=o)}return d>0&&(i.a={x:l+d*h,y:u+d*m}),1>f&&(i.b={x:l+f*h,y:u+f*m}),i}}}}}}function qt(e,t,n,r){function i(r,i){return Ta(r[0]-e)0?0:3:Ta(r[0]-n)0?2:1:Ta(r[1]-t)0?1:0:i>0?3:2}function o(e,t){return a(e.x,t.x)}function a(e,t){var n=i(e,1),r=i(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(s){function l(e){for(var t=0,n=b.length,r=e[1],i=0;n>i;++i)for(var o,a=1,s=b[i],l=s.length,u=s[0];l>a;++a)o=s[a],u[1]<=r?o[1]>r&&ee(u,o,e)>0&&++t:o[1]<=r&&ee(u,o,e)<0&&--t,u=o;return 0!==t}function u(o,s,l,u){var c=0,p=0;if(null==o||(c=i(o,l))!==(p=i(s,l))||a(o,s)<0^l>0){do u.point(0===c||3===c?e:n,c>1?r:t);while((c=(c+l+4)%4)!==p)}else u.point(s[0],s[1])}function c(i,o){return i>=e&&n>=i&&o>=t&&r>=o}function p(e,t){c(e,t)&&s.point(e,t)}function d(){k.point=h,b&&b.push(y=[]),C=!0,w=!1,T=E=NaN}function f(){m&&(h(v,g),_&&w&&M.rejoin(),m.push(M.buffer())),k.point=p,w&&s.lineEnd()}function h(e,t){e=Math.max(-Hs,Math.min(Hs,e)),t=Math.max(-Hs,Math.min(Hs,t));var n=c(e,t);if(b&&y.push([e,t]),C)v=e,g=t,_=n,C=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&w)s.point(e,t);else{var r={a:{x:T,y:E},b:{x:e,y:t}};x(r)?(w||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),S=!1):n&&(s.lineStart(),s.point(e,t),S=!1)}T=e,E=t,w=n}var m,b,y,v,g,_,T,E,w,C,S,P=s,M=Lt(),x=Kt(e,t,n,r),k={point:p,lineStart:d,lineEnd:f,polygonStart:function(){s=M,m=[],b=[],S=!0},polygonEnd:function(){s=P,m=ua.merge(m);var t=l([e,r]),n=S&&t,i=m.length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),u(null,null,1,s),s.lineEnd()),i&&Ot(m,o,t,u,s),s.polygonEnd()),m=b=y=null}};return k}}function Vt(e){var t=0,n=Ba/3,r=ln(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Ba/180,n=e[1]*Ba/180):[t/Ba*180,n/Ba*180]},i}function zt(e,t){function n(e,t){var n=Math.sqrt(o-2*i*Math.sin(t))/i;return[n*Math.sin(e*=i),a-n*Math.cos(e)]}var r=Math.sin(e),i=(r+Math.sin(t))/2,o=1+r*(2*i-r),a=Math.sqrt(o)/i;return n.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/i,ne((o-(e*e+n*n)*i*i)/(2*i))]},n}function Xt(){function e(e,t){Ks+=i*e-r*t,r=e,i=t}var t,n,r,i;Ws.point=function(o,a){Ws.point=e,t=r=o,n=i=a},Ws.lineEnd=function(){e(t,n)}}function Wt(e,t){qs>e&&(qs=e),e>zs&&(zs=e),Vs>t&&(Vs=t),t>Xs&&(Xs=t)}function $t(){function e(e,t){a.push("M",e,",",t,o)}function t(e,t){a.push("M",e,",",t),s.point=n}function n(e,t){a.push("L",e,",",t)}function r(){s.point=e}function i(){a.push("Z")}var o=Qt(4.5),a=[],s={point:e,lineStart:function(){s.point=t},lineEnd:r,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=r,s.point=e},pointRadius:function(e){return o=Qt(e),s},result:function(){if(a.length){var e=a.join("");return a=[],e}}};return s}function Qt(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function Yt(e,t){As+=e,Os+=t,++Ns}function Zt(){function e(e,r){var i=e-t,o=r-n,a=Math.sqrt(i*i+o*o);Rs+=a*(t+e)/2,Is+=a*(n+r)/2,Ds+=a,Yt(t=e,n=r)}var t,n;Qs.point=function(r,i){Qs.point=e,Yt(t=r,n=i)}}function Jt(){Qs.point=Yt}function en(){function e(e,t){var n=e-r,o=t-i,a=Math.sqrt(n*n+o*o);Rs+=a*(r+e)/2,Is+=a*(i+t)/2,Ds+=a,a=i*e-r*t,Ls+=a*(r+e),js+=a*(i+t),Fs+=3*a,Yt(r=e,i=t)}var t,n,r,i;Qs.point=function(o,a){Qs.point=e,Yt(t=r=o,n=i=a)},Qs.lineEnd=function(){e(t,n)}}function tn(e){function t(t,n){e.moveTo(t+a,n),e.arc(t,n,a,0,Ha)}function n(t,n){e.moveTo(t,n),s.point=r}function r(t,n){e.lineTo(t,n)}function i(){s.point=t}function o(){e.closePath()}var a=4.5,s={point:t,lineStart:function(){s.point=n},lineEnd:i,polygonStart:function(){s.lineEnd=o},polygonEnd:function(){s.lineEnd=i,s.point=t},pointRadius:function(e){return a=e,s},result:E};return s}function nn(e){function t(e){return(s?r:n)(e)}function n(t){return an(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})}function r(t){function n(n,r){n=e(n,r),t.point(n[0],n[1])}function r(){g=NaN,C.point=o,t.lineStart()}function o(n,r){var o=bt([n,r]),a=e(n,r);i(g,_,v,T,E,w,g=a[0],_=a[1],v=n,T=o[0],E=o[1],w=o[2],s,t),t.point(g,_)}function a(){C.point=n,t.lineEnd()}function l(){r(),C.point=u,C.lineEnd=c}function u(e,t){o(p=e,d=t),f=g,h=_,m=T,b=E,y=w,C.point=o}function c(){i(g,_,v,T,E,w,f,h,p,m,b,y,s,t),C.lineEnd=a,a()}var p,d,f,h,m,b,y,v,g,_,T,E,w,C={point:n,lineStart:r,lineEnd:a,polygonStart:function(){t.polygonStart(),C.lineStart=l},polygonEnd:function(){t.polygonEnd(),C.lineStart=r}};return C}function i(t,n,r,s,l,u,c,p,d,f,h,m,b,y){var v=c-t,g=p-n,_=v*v+g*g;if(_>4*o&&b--){var T=s+f,E=l+h,w=u+m,C=Math.sqrt(T*T+E*E+w*w),S=Math.asin(w/=C),P=Ta(Ta(w)-1)o||Ta((v*A+g*O)/_-.5)>.3||a>s*f+l*h+u*m)&&(i(t,n,r,s,l,u,x,k,P,T/=C,E/=C,w,b,y),y.point(x,k),i(x,k,P,T,E,w,c,p,d,f,h,m,b,y))}}var o=.5,a=Math.cos(30*qa),s=16;return t.precision=function(e){return arguments.length?(s=(o=e*e)>0&&16,t):Math.sqrt(o)},t}function rn(e){var t=nn(function(t,n){return e([t*Va,n*Va])});return function(e){return un(t(e))}}function on(e){this.stream=e}function an(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function sn(e){return ln(function(){return e})()}function ln(e){function t(e){return e=s(e[0]*qa,e[1]*qa),[e[0]*d+l,u-e[1]*d]}function n(e){return e=s.invert((e[0]-l)/d,(u-e[1])/d),e&&[e[0]*Va,e[1]*Va]}function r(){s=kt(a=dn(y,v,_),o);var e=o(m,b);return l=f-e[0]*d,u=h+e[1]*d,i()}function i(){return c&&(c.valid=!1,c=null),t}var o,a,s,l,u,c,p=nn(function(e,t){return e=o(e,t),[e[0]*d+l,u-e[1]*d]}),d=150,f=480,h=250,m=0,b=0,y=0,v=0,_=0,T=Bs,E=g,w=null,C=null;return t.stream=function(e){return c&&(c.valid=!1),c=un(T(a,p(E(e)))),c.valid=!0,c},t.clipAngle=function(e){return arguments.length?(T=null==e?(w=e,Bs):Gt((w=+e)*qa),i()):w},t.clipExtent=function(e){return arguments.length?(C=e,E=e?qt(e[0][0],e[0][1],e[1][0],e[1][1]):g,i()):C},t.scale=function(e){return arguments.length?(d=+e,r()):d},t.translate=function(e){return arguments.length?(f=+e[0],h=+e[1],r()):[f,h]},t.center=function(e){return arguments.length?(m=e[0]%360*qa,b=e[1]%360*qa,r()):[m*Va,b*Va]},t.rotate=function(e){return arguments.length?(y=e[0]%360*qa,v=e[1]%360*qa,_=e.length>2?e[2]%360*qa:0,r()):[y*Va,v*Va,_*Va]},ua.rebind(t,p,"precision"),function(){return o=e.apply(this,arguments),t.invert=o.invert&&n,r()}}function un(e){return an(e,function(t,n){e.point(t*qa,n*qa)})}function cn(e,t){return[e,t]}function pn(e,t){return[e>Ba?e-Ha:-Ba>e?e+Ha:e,t]}function dn(e,t,n){return e?t||n?kt(hn(e),mn(t,n)):hn(e):t||n?mn(t,n):pn}function fn(e){return function(t,n){return t+=e,[t>Ba?t-Ha:-Ba>t?t+Ha:t,n]}}function hn(e){var t=fn(e);return t.invert=fn(-e),t}function mn(e,t){function n(e,t){var n=Math.cos(t),s=Math.cos(e)*n,l=Math.sin(e)*n,u=Math.sin(t),c=u*r+s*i;return[Math.atan2(l*o-c*a,s*r-u*i),ne(c*o+l*a)]}var r=Math.cos(e),i=Math.sin(e),o=Math.cos(t),a=Math.sin(t);return n.invert=function(e,t){var n=Math.cos(t),s=Math.cos(e)*n,l=Math.sin(e)*n,u=Math.sin(t),c=u*o-l*a;return[Math.atan2(l*o+u*a,s*r+c*i),ne(c*r-s*i)]},n}function bn(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,o,a,s){var l=a*t;null!=i?(i=yn(n,i),o=yn(n,o),(a>0?o>i:i>o)&&(i+=a*Ha)):(i=e+a*Ha,o=e-.5*l);for(var u,c=i;a>0?c>o:o>c;c-=l)s.point((u=Et([n,-r*Math.cos(c),-r*Math.sin(c)]))[0],u[1])}}function yn(e,t){var n=bt(t);n[0]-=e,Tt(n);var r=te(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Fa)%(2*Math.PI)}function vn(e,t,n){var r=ua.range(e,t-Fa,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function gn(e,t,n){var r=ua.range(e,t-Fa,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function _n(e){return e.source}function Tn(e){return e.target}function En(e,t,n,r){var i=Math.cos(t),o=Math.sin(t),a=Math.cos(r),s=Math.sin(r),l=i*Math.cos(e),u=i*Math.sin(e),c=a*Math.cos(n),p=a*Math.sin(n),d=2*Math.asin(Math.sqrt(ae(r-t)+i*a*ae(n-e))),f=1/Math.sin(d),h=d?function(e){var t=Math.sin(e*=d)*f,n=Math.sin(d-e)*f,r=n*l+t*c,i=n*u+t*p,a=n*o+t*s;return[Math.atan2(i,r)*Va,Math.atan2(a,Math.sqrt(r*r+i*i))*Va]}:function(){return[e*Va,t*Va]};return h.distance=d,h}function wn(){function e(e,i){var o=Math.sin(i*=qa),a=Math.cos(i),s=Ta((e*=qa)-t),l=Math.cos(s);Ys+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=r*o-n*a*l)*s),n*o+r*a*l),t=e,n=o,r=a}var t,n,r;Zs.point=function(i,o){t=i*qa,n=Math.sin(o*=qa),r=Math.cos(o),Zs.point=e},Zs.lineEnd=function(){Zs.point=Zs.lineEnd=E}}function Cn(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),o=e(r*i);return[o*i*Math.sin(t),o*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(e*o,r*a),Math.asin(r&&n*o/r)]},n}function Sn(e,t){function n(e,t){a>0?-Ka+Fa>t&&(t=-Ka+Fa):t>Ka-Fa&&(t=Ka-Fa);var n=a/Math.pow(i(t),o);return[n*Math.sin(o*e),a-n*Math.cos(o*e)]}var r=Math.cos(e),i=function(e){return Math.tan(Ba/4+e/2)},o=e===t?Math.sin(e):Math.log(r/Math.cos(t))/Math.log(i(t)/i(e)),a=r*Math.pow(i(e),o)/o;return o?(n.invert=function(e,t){var n=a-t,r=J(o)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/o,2*Math.atan(Math.pow(a/r,1/o))-Ka]},n):Mn}function Pn(e,t){function n(e,t){var n=o-t;return[n*Math.sin(i*e),o-n*Math.cos(i*e)]}var r=Math.cos(e),i=e===t?Math.sin(e):(r-Math.cos(t))/(t-e),o=r/i+e;return Ta(i)i;i++){for(;r>1&&ee(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Rn(e,t){return e[0]-t[0]||e[1]-t[1]}function In(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function Dn(e,t,n,r){var i=e[0],o=n[0],a=t[0]-i,s=r[0]-o,l=e[1],u=n[1],c=t[1]-l,p=r[1]-u,d=(s*(l-u)-p*(i-o))/(p*a-s*c);return[i+d*a,l+d*c]}function Ln(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}function jn(){ir(this),this.edge=this.site=this.circle=null}function Fn(e){var t=cl.pop()||new jn;return t.site=e,t}function Un(e){$n(e),sl.remove(e),cl.push(e),ir(e)}function Bn(e){var t=e.circle,n=t.x,r=t.cy,i={x:n,y:r},o=e.P,a=e.N,s=[e];Un(e);for(var l=o;l.circle&&Ta(n-l.circle.x)c;++c)u=s[c],l=s[c-1],tr(u.edge,l.site,u.site,i);l=s[0],u=s[p-1],u.edge=Jn(l.site,u.site,null,i),Wn(l),Wn(u)}function Hn(e){for(var t,n,r,i,o=e.x,a=e.y,s=sl._;s;)if(r=Gn(s,a)-o,r>Fa)s=s.L;else{if(i=o-Kn(s,a),!(i>Fa)){r>-Fa?(t=s.P,n=s):i>-Fa?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var l=Fn(e);if(sl.insert(t,l),t||n){if(t===n)return $n(t),n=Fn(t.site),sl.insert(l,n),l.edge=n.edge=Jn(t.site,l.site),Wn(t),void Wn(n);if(!n)return void(l.edge=Jn(t.site,l.site));$n(t),$n(n);var u=t.site,c=u.x,p=u.y,d=e.x-c,f=e.y-p,h=n.site,m=h.x-c,b=h.y-p,y=2*(d*b-f*m),v=d*d+f*f,g=m*m+b*b,_={x:(b*v-f*g)/y+c,y:(d*g-m*v)/y+p};tr(n.edge,u,h,_),l.edge=Jn(u,e,null,_),n.edge=Jn(e,h,null,_),Wn(t),Wn(n)}}function Gn(e,t){var n=e.site,r=n.x,i=n.y,o=i-t;if(!o)return r;var a=e.P;if(!a)return-(1/0);n=a.site;var s=n.x,l=n.y,u=l-t;if(!u)return s;var c=s-r,p=1/o-1/u,d=c/u;return p?(-d+Math.sqrt(d*d-2*p*(c*c/(-2*u)-l+u/2+i-o/2)))/p+r:(r+s)/2}function Kn(e,t){var n=e.N;if(n)return Gn(n,t);var r=e.site;return r.y===t?r.x:1/0}function qn(e){this.site=e,this.edges=[]}function Vn(e){for(var t,n,r,i,o,a,s,l,u,c,p=e[0][0],d=e[1][0],f=e[0][1],h=e[1][1],m=al,b=m.length;b--;)if(o=m[b],o&&o.prepare())for(s=o.edges,l=s.length,a=0;l>a;)c=s[a].end(),r=c.x,i=c.y,u=s[++a%l].start(),t=u.x,n=u.y,(Ta(r-t)>Fa||Ta(i-n)>Fa)&&(s.splice(a,0,new nr(er(o.site,c,Ta(r-p)Fa?{x:p,y:Ta(t-p)Fa?{x:Ta(n-h)Fa?{x:d,y:Ta(t-d)Fa?{x:Ta(n-f)=-Ua)){var f=l*l+u*u,h=c*c+p*p,m=(p*f-u*h)/d,b=(l*h-c*f)/d,p=b+s,y=pl.pop()||new Xn;y.arc=e,y.site=i,y.x=m+a,y.y=p+Math.sqrt(m*m+b*b),y.cy=p,e.circle=y;for(var v=null,g=ul._;g;)if(y.yb||b>=s)return;if(d>h){if(o){if(o.y>=u)return}else o={x:b,y:l};n={x:b,y:u}}else{if(o){if(o.yr||r>1)if(d>h){if(o){if(o.y>=u)return}else o={x:(l-i)/r,y:l};n={x:(u-i)/r,y:u}}else{if(o){if(o.yf){if(o){if(o.x>=s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}else{if(o){if(o.xo||p>a||r>d||i>f)){if(h=e.point){var h,m=t-e.x,b=n-e.y,y=m*m+b*b;if(l>y){var v=Math.sqrt(l=y);r=t-v,i=n-v,o=t+v,a=n+v,s=h}}for(var g=e.nodes,_=.5*(c+d),T=.5*(p+f),E=t>=_,w=n>=T,C=w<<1|E,S=C+4;S>C;++C)if(e=g[3&C])switch(3&C){case 0:u(e,c,p,_,T);break;case 1:u(e,_,p,d,T);break;case 2:u(e,c,T,_,f);break;case 3:u(e,_,T,d,f)}}}(e,r,i,o,a),s}function br(e,t){e=ua.rgb(e),t=ua.rgb(t);var n=e.r,r=e.g,i=e.b,o=t.r-n,a=t.g-r,s=t.b-i;return function(e){return"#"+Te(Math.round(n+o*e))+Te(Math.round(r+a*e))+Te(Math.round(i+s*e))}}function yr(e,t){var n,r={},i={};for(n in e)n in t?r[n]=_r(e[n],t[n]):i[n]=e[n];for(n in t)n in e||(i[n]=t[n]);return function(e){for(n in r)i[n]=r[n](e);return i}}function vr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function gr(e,t){var n,r,i,o=fl.lastIndex=hl.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=fl.exec(e))&&(r=hl.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:vr(n,r)})),o=hl.lastIndex;return or;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function _r(e,t){for(var n,r=ua.interpolators.length;--r>=0&&!(n=ua.interpolators[r](e,t)););return n}function Tr(e,t){var n,r=[],i=[],o=e.length,a=t.length,s=Math.min(e.length,t.length);for(n=0;s>n;++n)r.push(_r(e[n],t[n]));for(;o>n;++n)i[n]=e[n];for(;a>n;++n)i[n]=t[n];return function(e){for(n=0;s>n;++n)i[n]=r[n](e);return i}}function Er(e){return function(t){return 0>=t?0:t>=1?1:e(t)}}function wr(e){return function(t){return 1-e(1-t)}}function Cr(e){return function(t){return.5*(.5>t?e(2*t):2-e(2-2*t))}}function Sr(e){return e*e}function Pr(e){return e*e*e}function Mr(e){if(0>=e)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(.5>e?n:3*(e-t)+n-.75)}function xr(e){return function(t){return Math.pow(t,e)}}function kr(e){return 1-Math.cos(e*Ka)}function Ar(e){return Math.pow(2,10*(e-1))}function Or(e){return 1-Math.sqrt(1-e*e)}function Nr(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Ha*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Ha/t)}}function Rr(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function Ir(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Dr(e,t){e=ua.hcl(e),t=ua.hcl(t);var n=e.h,r=e.c,i=e.l,o=t.h-n,a=t.c-r,s=t.l-i;return isNaN(a)&&(a=0,r=isNaN(r)?t.c:r),isNaN(o)?(o=0,n=isNaN(n)?t.h:n):o>180?o-=360:-180>o&&(o+=360),function(e){return pe(n+o*e,r+a*e,i+s*e)+""}}function Lr(e,t){e=ua.hsl(e),t=ua.hsl(t);var n=e.h,r=e.s,i=e.l,o=t.h-n,a=t.s-r,s=t.l-i;return isNaN(a)&&(a=0,r=isNaN(r)?t.s:r),isNaN(o)?(o=0,n=isNaN(n)?t.h:n):o>180?o-=360:-180>o&&(o+=360),function(e){return ue(n+o*e,r+a*e,i+s*e)+""}}function jr(e,t){e=ua.lab(e),t=ua.lab(t);var n=e.l,r=e.a,i=e.b,o=t.l-n,a=t.a-r,s=t.b-i;return function(e){return fe(n+o*e,r+a*e,i+s*e)+""}}function Fr(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Ur(e){var t=[e.a,e.b],n=[e.c,e.d],r=Hr(t),i=Br(t,n),o=Hr(Gr(n,t,-i))||0;t[0]*n[1]180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(Kr(n)+"rotate(",null,")")-2,x:vr(e,t)})):t&&n.push(Kr(n)+"rotate("+t+")")}function zr(e,t,n,r){e!==t?r.push({i:n.push(Kr(n)+"skewX(",null,")")-2,x:vr(e,t)}):t&&n.push(Kr(n)+"skewX("+t+")")}function Xr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push(Kr(n)+"scale(",null,",",null,")");r.push({i:i-4,x:vr(e[0],t[0])},{i:i-2,x:vr(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(Kr(n)+"scale("+t+")")}function Wr(e,t){var n=[],r=[];return e=ua.transform(e),t=ua.transform(t),qr(e.translate,t.translate,n,r),Vr(e.rotate,t.rotate,n,r),zr(e.skew,t.skew,n,r),Xr(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,i=-1,o=r.length;++i=0;)n.push(i[r])}function si(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(o=e.children)&&(i=o.length))for(var i,o,a=-1;++an;++n)(t=e[n][1])>i&&(r=n,i=t);return r}function vi(e){return e.reduce(gi,0)}function gi(e,t){return e+t[1]}function _i(e,t){return Ti(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Ti(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,o=[];++n<=t;)o[n]=i*n+r;return o}function Ei(e){return[ua.min(e),ua.max(e)]}function wi(e,t){return e.value-t.value}function Ci(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Si(e,t){e._pack_next=t,t._pack_prev=e}function Pi(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function Mi(e){function t(e){c=Math.min(e.x-e.r,c),p=Math.max(e.x+e.r,p),d=Math.min(e.y-e.r,d),f=Math.max(e.y+e.r,f)}if((n=e.children)&&(u=n.length)){var n,r,i,o,a,s,l,u,c=1/0,p=-(1/0),d=1/0,f=-(1/0);if(n.forEach(xi),r=n[0],r.x=-r.r,r.y=0,t(r),u>1&&(i=n[1],i.x=i.r,i.y=0,t(i),u>2))for(o=n[2],Oi(r,i,o),t(o),Ci(r,o),r._pack_prev=o,Ci(o,i),i=r._pack_next,a=3;u>a;a++){Oi(r,i,o=n[a]);var h=0,m=1,b=1;for(s=i._pack_next;s!==i;s=s._pack_next,m++)if(Pi(s,o)){h=1;break}if(1==h)for(l=r._pack_prev;l!==s._pack_prev&&!Pi(l,o);l=l._pack_prev,b++);h?(b>m||m==b&&i.ra;a++)o=n[a],o.x-=y,o.y-=v,g=Math.max(g,o.r+Math.sqrt(o.x*o.x+o.y*o.y));e.r=g,n.forEach(ki)}}function xi(e){e._pack_next=e._pack_prev=e}function ki(e){delete e._pack_next,delete e._pack_prev}function Ai(e,t,n,r){var i=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,i)for(var o=-1,a=i.length;++o=0;)t=i[o],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function ji(e,t,n){return e.a.parent===t.parent?e.a:n}function Fi(e){return 1+ua.max(e,function(e){return e.y})}function Ui(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}function Bi(e){var t=e.children;return t&&t.length?Bi(t[0]):e}function Hi(e){var t,n=e.children;return n&&(t=n.length)?Hi(n[t-1]):e}function Gi(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function Ki(e,t){var n=e.x+t[3],r=e.y+t[0],i=e.dx-t[1]-t[3],o=e.dy-t[0]-t[2];return 0>i&&(n+=i/2,i=0),0>o&&(r+=o/2,o=0),{x:n,y:r,dx:i,dy:o}}function qi(e){var t=e[0],n=e[e.length-1];return n>t?[t,n]:[n,t]}function Vi(e){return e.rangeExtent?e.rangeExtent():qi(e.range())}function zi(e,t,n,r){var i=n(e[0],e[1]),o=r(t[0],t[1]);return function(e){return o(i(e))}}function Xi(e,t){var n,r=0,i=e.length-1,o=e[r],a=e[i];return o>a&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function Wi(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Sl}function $i(e,t,n,r){var i=[],o=[],a=0,s=Math.min(e.length,t.length)-1;for(e[s]2?$i:zi,l=r?Qr:$r;return a=i(e,t,l,n),s=i(t,e,l,_r),o}function o(e){return a(e)}var a,s;return o.invert=function(e){return s(e)},o.domain=function(t){return arguments.length?(e=t.map(Number),i()):e; },o.range=function(e){return arguments.length?(t=e,i()):t},o.rangeRound=function(e){return o.range(e).interpolate(Fr)},o.clamp=function(e){return arguments.length?(r=e,i()):r},o.interpolate=function(e){return arguments.length?(n=e,i()):n},o.ticks=function(t){return eo(e,t)},o.tickFormat=function(t,n){return to(e,t,n)},o.nice=function(t){return Zi(e,t),i()},o.copy=function(){return Qi(e,t,n,r)},i()}function Yi(e,t){return ua.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Zi(e,t){return Xi(e,Wi(Ji(e,t)[2])),Xi(e,Wi(Ji(e,t)[2])),e}function Ji(e,t){null==t&&(t=10);var n=qi(e),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),o=t/r*i;return.15>=o?i*=10:.35>=o?i*=5:.75>=o&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function eo(e,t){return ua.range.apply(ua,Ji(e,t))}function to(e,t,n){var r=Ji(e,t);if(n){var i=fs.exec(n);if(i.shift(),"s"===i[8]){var o=ua.formatPrefix(Math.max(Ta(r[0]),Ta(r[1])));return i[7]||(i[7]="."+no(o.scale(r[2]))),i[8]="f",n=ua.format(i.join("")),function(e){return n(o.scale(e))+o.symbol}}i[7]||(i[7]="."+ro(i[8],r)),n=i.join("")}else n=",."+no(r[2])+"f";return ua.format(n)}function no(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function ro(e,t){var n=no(t[2]);return e in Pl?Math.abs(n-no(Math.max(Ta(t[0]),Ta(t[1]))))+ +("e"!==e):n-2*("%"===e)}function io(e,t,n,r){function i(e){return(n?Math.log(0>e?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function o(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function a(t){return e(i(t))}return a.invert=function(t){return o(e.invert(t))},a.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(i)),a):r},a.base=function(n){return arguments.length?(t=+n,e.domain(r.map(i)),a):t},a.nice=function(){var t=Xi(r.map(i),n?Math:xl);return e.domain(t),r=t.map(o),a},a.ticks=function(){var e=qi(r),a=[],s=e[0],l=e[1],u=Math.floor(i(s)),c=Math.ceil(i(l)),p=t%1?2:t;if(isFinite(c-u)){if(n){for(;c>u;u++)for(var d=1;p>d;d++)a.push(o(u)*d);a.push(o(u))}else for(a.push(o(u));u++0;d--)a.push(o(u)*d);for(u=0;a[u]l;c--);a=a.slice(u,c)}return a},a.tickFormat=function(e,n){if(!arguments.length)return Ml;arguments.length<2?n=Ml:"function"!=typeof n&&(n=ua.format(n));var r=Math.max(1,t*e/a.ticks().length);return function(e){var a=e/o(Math.round(i(e)));return t-.5>a*t&&(a*=t),r>=a?n(e):""}},a.copy=function(){return io(e.copy(),t,n,r)},Yi(a,e)}function oo(e,t,n){function r(t){return e(i(t))}var i=ao(t),o=ao(1/t);return r.invert=function(t){return o(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),r):n},r.ticks=function(e){return eo(n,e)},r.tickFormat=function(e,t){return to(n,e,t)},r.nice=function(e){return r.domain(Zi(n,e))},r.exponent=function(a){return arguments.length?(i=ao(t=a),o=ao(1/t),e.domain(n.map(i)),r):t},r.copy=function(){return oo(e.copy(),t,n)},Yi(r,e)}function ao(e){return function(t){return 0>t?-Math.pow(-t,e):Math.pow(t,e)}}function so(e,t){function n(n){return o[((i.get(n)||("range"===t.t?i.set(n,e.push(n)):NaN))-1)%o.length]}function r(t,n){return ua.range(e.length).map(function(e){return t+n*e})}var i,o,a;return n.domain=function(r){if(!arguments.length)return e;e=[],i=new c;for(var o,a=-1,s=r.length;++an?[NaN,NaN]:[n>0?s[n-1]:e[0],nt?NaN:t/o+e,[t,t+1/o]},r.copy=function(){return uo(e,t,n)},i()}function co(e,t){function n(n){return n>=n?t[ua.bisect(e,n)]:void 0}return n.domain=function(t){return arguments.length?(e=t,n):e},n.range=function(e){return arguments.length?(t=e,n):t},n.invertExtent=function(n){return n=t.indexOf(n),[e[n-1],e[n]]},n.copy=function(){return co(e,t)},n}function po(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return eo(e,t)},t.tickFormat=function(t,n){return to(e,t,n)},t.copy=function(){return po(e)},t}function fo(){return 0}function ho(e){return e.innerRadius}function mo(e){return e.outerRadius}function bo(e){return e.startAngle}function yo(e){return e.endAngle}function vo(e){return e&&e.padAngle}function go(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function _o(e,t,n,r,i){var o=e[0]-t[0],a=e[1]-t[1],s=(i?r:-r)/Math.sqrt(o*o+a*a),l=s*a,u=-s*o,c=e[0]+l,p=e[1]+u,d=t[0]+l,f=t[1]+u,h=(c+d)/2,m=(p+f)/2,b=d-c,y=f-p,v=b*b+y*y,g=n-r,_=c*f-d*p,T=(0>y?-1:1)*Math.sqrt(Math.max(0,g*g*v-_*_)),E=(_*y-b*T)/v,w=(-_*b-y*T)/v,C=(_*y+b*T)/v,S=(-_*b+y*T)/v,P=E-h,M=w-m,x=C-h,k=S-m;return P*P+M*M>x*x+k*k&&(E=C,w=S),[[E-l,w-u],[E*n/g,w*n/g]]}function To(e){function t(t){function a(){u.push("M",o(e(c),s))}for(var l,u=[],c=[],p=-1,d=t.length,f=Me(n),h=Me(r);++p1?e.join("L"):e+"Z"}function wo(e){return e.join("L")+"Z"}function Co(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t1&&i.push("H",r[0]),i.join("")}function So(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t1){s=t[1],o=e[l],l++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1];for(var u=2;u9&&(i=3*t/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r));for(s=-1;++s<=l;)i=(e[Math.min(l,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}function Ho(e){return e.length<3?Eo(e):e[0]+Ao(e,Bo(e))}function Go(e){for(var t,n,r,i=-1,o=e.length;++i=t?a(e-t):void(u.c=a)}function a(n){var i=h.active,o=h[i];o&&(o.timer.c=null,o.timer.t=NaN,--h.count,delete h[i],o.event&&o.event.interrupt.call(e,e.__data__,o.index));for(var a in h)if(r>+a){var c=h[a];c.timer.c=null,c.timer.t=NaN,--h.count,delete h[a]}u.c=s,Ne(function(){return u.c&&s(n||1)&&(u.c=null,u.t=NaN),1},0,l),h.active=r,m.event&&m.event.start.call(e,e.__data__,t),f=[],m.tween.forEach(function(n,r){(r=r.call(e,e.__data__,t))&&f.push(r)}),d=m.ease,p=m.duration}function s(i){for(var o=i/p,a=d(o),s=f.length;s>0;)f[--s].call(e,a);return o>=1?(m.event&&m.event.end.call(e,e.__data__,t),--h.count?delete h[r]:delete e[n],1):void 0}var l,u,p,d,f,h=e[n]||(e[n]={active:0,count:0}),m=h[r];m||(l=i.time,u=Ne(o,0,l),m=h[r]={tween:new c,time:l,timer:u,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++h.count)}function na(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"})}function ra(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"})}function ia(e){return e.toISOString()}function oa(e,t,n){function r(t){return e(t)}function i(e,n){var r=e[1]-e[0],i=r/n,o=ua.bisect(Jl,i);return o==Jl.length?[t.year,Ji(e.map(function(e){return e/31536e6}),n)[2]]:o?t[i/Jl[o-1]1?{floor:function(t){for(;n(t=e.floor(t));)t=aa(t-1);return t},ceil:function(t){for(;n(t=e.ceil(t));)t=aa(+t+1);return t}}:e))},r.ticks=function(e,t){var n=qi(r.domain()),o=null==e?i(n,10):"number"==typeof e?i(n,e):!e.range&&[{range:e},t];return o&&(e=o[0],t=o[1]),e.range(n[0],aa(+n[1]+1),1>t?1:t)},r.tickFormat=function(){return n},r.copy=function(){return oa(e.copy(),t,n)},Yi(r,e)}function aa(e){return new Date(e)}function sa(e){return JSON.parse(e.responseText)}function la(e){var t=da.createRange();return t.selectNode(da.body),t.createContextualFragment(e.responseText)}var ua={version:"3.5.16"},ca=[].slice,pa=function(e){return ca.call(e)},da=this.document;if(da)try{pa(da.documentElement.childNodes)[0].nodeType}catch(fa){pa=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),da)try{da.createElement("DIV").style.setProperty("opacity",0,"")}catch(ha){var ma=this.Element.prototype,ba=ma.setAttribute,ya=ma.setAttributeNS,va=this.CSSStyleDeclaration.prototype,ga=va.setProperty;ma.setAttribute=function(e,t){ba.call(this,e,t+"")},ma.setAttributeNS=function(e,t,n){ya.call(this,e,t,n+"")},va.setProperty=function(e,t,n){ga.call(this,e,t+"",n)}}ua.ascending=r,ua.descending=function(e,t){return e>t?-1:t>e?1:t>=e?0:NaN},ua.min=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},ua.max=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},ua.extent=function(e,t){var n,r,i,o=-1,a=e.length;if(1===arguments.length){for(;++o=r){n=i=r;break}for(;++or&&(n=r),r>i&&(i=r))}else{for(;++o=r){n=i=r;break}for(;++or&&(n=r),r>i&&(i=r))}return[n,i]},ua.sum=function(e,t){var n,r=0,i=e.length,a=-1;if(1===arguments.length)for(;++a1?l/(c-1):void 0},ua.deviation=function(){var e=ua.variance.apply(this,arguments);return e?Math.sqrt(e):e};var _a=a(r);ua.bisectLeft=_a.left,ua.bisect=ua.bisectRight=_a.right,ua.bisector=function(e){return a(1===e.length?function(t,n){return r(e(t),n)}:e)},ua.shuffle=function(e,t,n){(o=arguments.length)<3&&(n=e.length,2>o&&(t=0));for(var r,i,o=n-t;o;)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e},ua.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},ua.pairs=function(e){for(var t,n=0,r=e.length-1,i=e[0],o=new Array(0>r?0:r);r>n;)o[n]=[t=i,i=e[++n]];return o},ua.transpose=function(e){if(!(i=e.length))return[];for(var t=-1,n=ua.min(e,s),r=new Array(n);++t=0;)for(r=e[i],t=r.length;--t>=0;)n[--a]=r[t];return n};var Ta=Math.abs;ua.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,i=[],o=l(Ta(n)),a=-1;if(e*=o,t*=o,n*=o,0>n)for(;(r=e+n*++a)>t;)i.push(r/o);else for(;(r=e+n*++a)=o.length)return r?r.call(i,a):n?a.sort(n):a;for(var l,u,p,d,f=-1,h=a.length,m=o[s++],b=new c;++f=o.length)return e;var r=[],i=a[n++];return e.forEach(function(e,i){r.push({key:e,values:t(i,n)})}),i?r.sort(function(e,t){return i(e.key,t.key)}):r}var n,r,i={},o=[],a=[];return i.map=function(t,n){return e(n,t,0)},i.entries=function(n){return t(e(ua.map,n,0),0)},i.key=function(e){return o.push(e),i},i.sortKeys=function(e){return a[o.length-1]=e,i},i.sortValues=function(e){return n=e,i},i.rollup=function(e){return r=e,i},i},ua.set=function(e){var t=new v;if(e)for(var n=0,r=e.length;r>n;++n)t.add(e[n]);return t},u(v,{has:f,add:function(e){return this._[p(e+="")]=!0,e},remove:h,values:m,size:b,empty:y,forEach:function(e){for(var t in this._)e.call(this,d(t))}}),ua.behavior={},ua.rebind=function(e,t){for(var n,r=1,i=arguments.length;++r=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},ua.event=null,ua.requote=function(e){return e.replace(Sa,"\\$&")};var Sa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Pa={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]},Ma=function(e,t){return t.querySelector(e)},xa=function(e,t){return t.querySelectorAll(e)},ka=function(e,t){var n=e.matches||e[T(e,"matchesSelector")];return(ka=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(Ma=function(e,t){return Sizzle(e,t)[0]||null},xa=Sizzle,ka=Sizzle.matchesSelector),ua.selection=function(){return ua.select(da.documentElement)};var Aa=ua.selection.prototype=[];Aa.select=function(e){var t,n,r,i,o=[];e=k(e);for(var a=-1,s=this.length;++a=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),Na.hasOwnProperty(n)?{space:Na[n],local:e}:e}},Aa.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return e=ua.ns.qualify(e),e.local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(O(t,e[t]));return this}return this.each(O(e,t))},Aa.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=I(e)).length,i=-1;if(t=n.classList){for(;++ii){if("string"!=typeof e){2>i&&(t="");for(r in e)this.each(j(r,e[r],t));return this}if(2>i){var o=this.node();return n(o).getComputedStyle(o,null).getPropertyValue(e)}r=""}return this.each(j(e,t,r))},Aa.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(F(t,e[t]));return this}return this.each(F(e,t))},Aa.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},Aa.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},Aa.append=function(e){return e=U(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},Aa.insert=function(e,t){return e=U(e),t=k(t),this.select(function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)})},Aa.remove=function(){return this.each(B)},Aa.data=function(e,t){function n(e,n){var r,i,o,a=e.length,p=n.length,d=Math.min(a,p),f=new Array(p),h=new Array(p),m=new Array(a);if(t){var b,y=new c,v=new Array(a);for(r=-1;++rr;++r)h[r]=H(n[r]);for(;a>r;++r)m[r]=e[r]}h.update=f,h.parentNode=f.parentNode=m.parentNode=e.parentNode,s.push(h),l.push(f),u.push(m)}var r,i,o=-1,a=this.length;if(!arguments.length){for(e=new Array(a=(r=this[0]).length);++oo;o++){i.push(t=[]),t.parentNode=(n=this[o]).parentNode;for(var s=0,l=n.length;l>s;s++)(r=n[s])&&e.call(r,r.__data__,s,o)&&t.push(r)}return x(i)},Aa.order=function(){for(var e=-1,t=this.length;++e=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},Aa.sort=function(e){e=K.apply(this,arguments);for(var t=-1,n=this.length;++te;e++)for(var n=this[e],r=0,i=n.length;i>r;r++){var o=n[r];if(o)return o}return null},Aa.size=function(){var e=0;return q(this,function(){++e}),e};var Ra=[];ua.selection.enter=V,ua.selection.enter.prototype=Ra,Ra.append=Aa.append,Ra.empty=Aa.empty,Ra.node=Aa.node,Ra.call=Aa.call,Ra.size=Aa.size,Ra.select=function(e){for(var t,n,r,i,o,a=[],s=-1,l=this.length;++sr){if("string"!=typeof e){2>r&&(t=!1);for(n in e)this.each(X(n,e[n],t));return this}if(2>r)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(X(e,t,n))};var Ia=ua.map({mouseenter:"mouseover",mouseleave:"mouseout"});da&&Ia.forEach(function(e){"on"+e in da&&Ia.remove(e)});var Da,La=0;ua.mouse=function(e){return Y(e,P())};var ja=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;ua.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=P().changedTouches),t)for(var r,i=0,o=t.length;o>i;++i)if((r=t[i]).identifier===n)return Y(e,r)},ua.behavior.drag=function(){function e(){this.on("mousedown.drag",o).on("touchstart.drag",a)}function t(e,t,n,o,a){return function(){function s(){var e,n,r=t(d,m);r&&(e=r[0]-g[0],n=r[1]-g[1],h|=e|n,g=r,f({type:"drag",x:r[0]+u[0],y:r[1]+u[1],dx:e,dy:n}))}function l(){t(d,m)&&(y.on(o+b,null).on(a+b,null),v(h),f({type:"dragend"}))}var u,c=this,p=ua.event.target.correspondingElement||ua.event.target,d=c.parentNode,f=r.of(c,arguments),h=0,m=e(),b=".drag"+(null==m?"":"-"+m),y=ua.select(n(p)).on(o+b,s).on(a+b,l),v=Q(p),g=t(d,m);i?(u=i.apply(c,arguments),u=[u.x-g[0],u.y-g[1]]):u=[0,0],f({type:"dragstart"})}}var r=M(e,"drag","dragstart","dragend"),i=null,o=t(E,ua.mouse,n,"mousemove","mouseup"),a=t(Z,ua.touch,g,"touchmove","touchend");return e.origin=function(t){return arguments.length?(i=t,e):i},ua.rebind(e,r,"on")},ua.touches=function(e,t){return arguments.length<2&&(t=P().touches),t?pa(t).map(function(t){var n=Y(e,t);return n.identifier=t.identifier,n}):[]};var Fa=1e-6,Ua=Fa*Fa,Ba=Math.PI,Ha=2*Ba,Ga=Ha-Fa,Ka=Ba/2,qa=Ba/180,Va=180/Ba,za=Math.SQRT2,Xa=2,Wa=4;ua.interpolateZoom=function(e,t){var n,r,i=e[0],o=e[1],a=e[2],s=t[0],l=t[1],u=t[2],c=s-i,p=l-o,d=c*c+p*p;if(Ua>d)r=Math.log(u/a)/za,n=function(e){return[i+e*c,o+e*p,a*Math.exp(za*e*r)]};else{var f=Math.sqrt(d),h=(u*u-a*a+Wa*d)/(2*a*Xa*f),m=(u*u-a*a-Wa*d)/(2*u*Xa*f),b=Math.log(Math.sqrt(h*h+1)-h),y=Math.log(Math.sqrt(m*m+1)-m);r=(y-b)/za,n=function(e){var t=e*r,n=ie(b),s=a/(Xa*f)*(n*oe(za*t+b)-re(b));return[i+s*c,o+s*p,a*n/ie(za*t+b)]}}return n.duration=1e3*r,n},ua.behavior.zoom=function(){function e(e){e.on(O,p).on(Qa+".zoom",f).on("dblclick.zoom",h).on(I,d)}function t(e){return[(e[0]-C.x)/C.k,(e[1]-C.y)/C.k]}function r(e){return[e[0]*C.k+C.x,e[1]*C.k+C.y]}function i(e){C.k=Math.max(x[0],Math.min(x[1],e))}function o(e,t){t=r(t),C.x+=e[0]-t[0],C.y+=e[1]-t[1]}function a(t,n,r,a){t.__chart__={x:C.x,y:C.y,k:C.k},i(Math.pow(2,a)),o(b=n,r),t=ua.select(t),k>0&&(t=t.transition().duration(k)),t.call(e.event)}function s(){T&&T.domain(_.range().map(function(e){return(e-C.x)/C.k}).map(_.invert)),w&&w.domain(E.range().map(function(e){return(e-C.y)/C.k}).map(E.invert))}function l(e){A++||e({type:"zoomstart"})}function u(e){s(),e({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function c(e){--A||(e({type:"zoomend"}),b=null)}function p(){function e(){s=1,o(ua.mouse(i),d),u(a)}function r(){p.on(N,null).on(R,null),f(s),c(a)}var i=this,a=D.of(i,arguments),s=0,p=ua.select(n(i)).on(N,e).on(R,r),d=t(ua.mouse(i)),f=Q(i);Kl.call(i),l(a)}function d(){function e(){var e=ua.touches(h);return f=C.k,e.forEach(function(e){e.identifier in b&&(b[e.identifier]=t(e))}),e}function n(){var t=ua.event.target;ua.select(t).on(_,r).on(T,s),E.push(t);for(var n=ua.event.changedTouches,i=0,o=n.length;o>i;++i)b[n[i].identifier]=null;var l=e(),u=Date.now();if(1===l.length){if(500>u-g){var c=l[0];a(h,c,b[c.identifier],Math.floor(Math.log(C.k)/Math.LN2)+1),S()}g=u}else if(l.length>1){var c=l[0],p=l[1],d=c[0]-p[0],f=c[1]-p[1];y=d*d+f*f}}function r(){var e,t,n,r,a=ua.touches(h);Kl.call(h);for(var s=0,l=a.length;l>s;++s,r=null)if(n=a[s],r=b[n.identifier]){if(t)break;e=n,t=r}if(r){var c=(c=n[0]-e[0])*c+(c=n[1]-e[1])*c,p=y&&Math.sqrt(c/y);e=[(e[0]+n[0])/2,(e[1]+n[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],i(p*f)}g=null,o(e,t),u(m)}function s(){if(ua.event.touches.length){for(var t=ua.event.changedTouches,n=0,r=t.length;r>n;++n)delete b[t[n].identifier];for(var i in b)return void e()}ua.selectAll(E).on(v,null),w.on(O,p).on(I,d),P(),c(m)}var f,h=this,m=D.of(h,arguments),b={},y=0,v=".zoom-"+ua.event.changedTouches[0].identifier,_="touchmove"+v,T="touchend"+v,E=[],w=ua.select(h),P=Q(h);n(),l(m),w.on(O,null).on(I,n)}function f(){var e=D.of(this,arguments);v?clearTimeout(v):(Kl.call(this),m=t(b=y||ua.mouse(this)),l(e)),v=setTimeout(function(){v=null,c(e)},50),S(),i(Math.pow(2,.002*$a())*C.k),o(b,m),u(e)}function h(){var e=ua.mouse(this),n=Math.log(C.k)/Math.LN2;a(this,e,t(e),ua.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}var m,b,y,v,g,_,T,E,w,C={x:0,y:0,k:1},P=[960,500],x=Ya,k=250,A=0,O="mousedown.zoom",N="mousemove.zoom",R="mouseup.zoom",I="touchstart.zoom",D=M(e,"zoomstart","zoom","zoomend");return Qa||(Qa="onwheel"in da?($a=function(){return-ua.event.deltaY*(ua.event.deltaMode?120:1)},"wheel"):"onmousewheel"in da?($a=function(){return ua.event.wheelDelta},"mousewheel"):($a=function(){return-ua.event.detail},"MozMousePixelScroll")),e.event=function(e){e.each(function(){var e=D.of(this,arguments),t=C;Hl?ua.select(this).transition().each("start.zoom",function(){C=this.__chart__||{x:0,y:0,k:1},l(e)}).tween("zoom:zoom",function(){var n=P[0],r=P[1],i=b?b[0]:n/2,o=b?b[1]:r/2,a=ua.interpolateZoom([(i-C.x)/C.k,(o-C.y)/C.k,n/C.k],[(i-t.x)/t.k,(o-t.y)/t.k,n/t.k]); return function(t){var r=a(t),s=n/r[2];this.__chart__=C={x:i-r[0]*s,y:o-r[1]*s,k:s},u(e)}}).each("interrupt.zoom",function(){c(e)}).each("end.zoom",function(){c(e)}):(this.__chart__=C,l(e),u(e),c(e))})},e.translate=function(t){return arguments.length?(C={x:+t[0],y:+t[1],k:C.k},s(),e):[C.x,C.y]},e.scale=function(t){return arguments.length?(C={x:C.x,y:C.y,k:null},i(+t),s(),e):C.k},e.scaleExtent=function(t){return arguments.length?(x=null==t?Ya:[+t[0],+t[1]],e):x},e.center=function(t){return arguments.length?(y=t&&[+t[0],+t[1]],e):y},e.size=function(t){return arguments.length?(P=t&&[+t[0],+t[1]],e):P},e.duration=function(t){return arguments.length?(k=+t,e):k},e.x=function(t){return arguments.length?(T=t,_=t.copy(),C={x:0,y:0,k:1},e):T},e.y=function(t){return arguments.length?(w=t,E=t.copy(),C={x:0,y:0,k:1},e):w},ua.rebind(e,D,"on")};var $a,Qa,Ya=[0,1/0];ua.color=se,se.prototype.toString=function(){return this.rgb()+""},ua.hsl=le;var Za=le.prototype=new se;Za.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new le(this.h,this.s,this.l/e)},Za.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new le(this.h,this.s,e*this.l)},Za.rgb=function(){return ue(this.h,this.s,this.l)},ua.hcl=ce;var Ja=ce.prototype=new se;Ja.brighter=function(e){return new ce(this.h,this.c,Math.min(100,this.l+es*(arguments.length?e:1)))},Ja.darker=function(e){return new ce(this.h,this.c,Math.max(0,this.l-es*(arguments.length?e:1)))},Ja.rgb=function(){return pe(this.h,this.c,this.l).rgb()},ua.lab=de;var es=18,ts=.95047,ns=1,rs=1.08883,is=de.prototype=new se;is.brighter=function(e){return new de(Math.min(100,this.l+es*(arguments.length?e:1)),this.a,this.b)},is.darker=function(e){return new de(Math.max(0,this.l-es*(arguments.length?e:1)),this.a,this.b)},is.rgb=function(){return fe(this.l,this.a,this.b)},ua.rgb=ve;var os=ve.prototype=new se;os.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&i>t&&(t=i),n&&i>n&&(n=i),r&&i>r&&(r=i),new ve(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new ve(i,i,i)},os.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new ve(e*this.r,e*this.g,e*this.b)},os.hsl=function(){return we(this.r,this.g,this.b)},os.toString=function(){return"#"+Te(this.r)+Te(this.g)+Te(this.b)};var as=ua.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});as.forEach(function(e,t){as.set(e,ge(t))}),ua.functor=Me,ua.xhr=xe(g),ua.dsv=function(e,t){function n(e,n,o){arguments.length<3&&(o=n,n=null);var a=ke(e,t,null==n?r:i(n),o);return a.row=function(e){return arguments.length?a.response(null==(n=e)?r:i(e)):n},a}function r(e){return n.parse(e.responseText)}function i(e){return function(t){return n.parse(t.responseText,e)}}function o(t){return t.map(a).join(e)}function a(e){return s.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}var s=new RegExp('["'+e+"\n]"),l=e.charCodeAt(0);return n.parse=function(e,t){var r;return n.parseRows(e,function(e,n){if(r)return r(e,n-1);var i=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");r=t?function(e,n){return t(i(e),n)}:i})},n.parseRows=function(e,t){function n(){if(c>=u)return a;if(i)return i=!1,o;var t=c;if(34===e.charCodeAt(t)){for(var n=t;n++c;){var r=e.charCodeAt(c++),s=1;if(10===r)i=!0;else if(13===r)i=!0,10===e.charCodeAt(c)&&(++c,++s);else if(r!==l)continue;return e.slice(t,c-s)}return e.slice(t)}for(var r,i,o={},a={},s=[],u=e.length,c=0,p=0;(r=n())!==a;){for(var d=[];r!==o&&r!==a;)d.push(r),r=n();t&&null==(d=t(d,p++))||s.push(d)}return s},n.format=function(t){if(Array.isArray(t[0]))return n.formatRows(t);var r=new v,i=[];return t.forEach(function(e){for(var t in e)r.has(t)||i.push(r.add(t))}),[i.map(a).join(e)].concat(t.map(function(t){return i.map(function(e){return a(t[e])}).join(e)})).join("\n")},n.formatRows=function(e){return e.map(o).join("\n")},n},ua.csv=ua.dsv(",","text/csv"),ua.tsv=ua.dsv(" ","text/tab-separated-values");var ss,ls,us,cs,ps=this[T(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};ua.timer=function(){Ne.apply(this,arguments)},ua.timer.flush=function(){Ie(),De()},ua.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var ds=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(je);ua.formatPrefix=function(e,t){var n=0;return(e=+e)&&(0>e&&(e*=-1),t&&(e=ua.round(e,Le(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),ds[8+n/3]};var fs=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,hs=ua.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=ua.round(e,Le(e,t))).toFixed(Math.max(0,Math.min(20,Le(e*(1+1e-15),t))))}}),ms=ua.time={},bs=Date;Be.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){ys.setUTCDate.apply(this._,arguments)},setDay:function(){ys.setUTCDay.apply(this._,arguments)},setFullYear:function(){ys.setUTCFullYear.apply(this._,arguments)},setHours:function(){ys.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ys.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ys.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ys.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ys.setUTCSeconds.apply(this._,arguments)},setTime:function(){ys.setTime.apply(this._,arguments)}};var ys=Date.prototype;ms.year=He(function(e){return e=ms.day(e),e.setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),ms.years=ms.year.range,ms.years.utc=ms.year.utc.range,ms.day=He(function(e){var t=new bs(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),ms.days=ms.day.range,ms.days.utc=ms.day.utc.range,ms.dayOfYear=function(e){var t=ms.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=ms[e]=He(function(e){return(e=ms.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=ms.year(e).getDay();return Math.floor((ms.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});ms[e+"s"]=n.range,ms[e+"s"].utc=n.utc.range,ms[e+"OfYear"]=function(e){var n=ms.year(e).getDay();return Math.floor((ms.dayOfYear(e)+(n+t)%7)/7)}}),ms.week=ms.sunday,ms.weeks=ms.sunday.range,ms.weeks.utc=ms.sunday.utc.range,ms.weekOfYear=ms.sundayOfYear;var vs={"-":"",_:" ",0:"0"},gs=/^\s*\d+/,_s=/^%/;ua.locale=function(e){return{numberFormat:Fe(e),timeFormat:Ke(e)}};var Ts=ua.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",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"]});ua.format=Ts.numberFormat,ua.geo={},ct.prototype={s:0,t:0,add:function(e){pt(e,this.t,Es),pt(Es.s,this.s,this),this.s?this.t+=Es.t:this.s=Es.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Es=new ct;ua.geo.stream=function(e,t){e&&ws.hasOwnProperty(e.type)?ws[e.type](e,t):dt(e,t)};var ws={Feature:function(e,t){dt(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++re?4*Ba+e:e,Ms.lineStart=Ms.lineEnd=Ms.point=E}};ua.geo.bounds=function(){function e(e,t){g.push(_=[c=e,d=e]),p>t&&(p=t),t>f&&(f=t)}function t(t,n){var r=bt([t*qa,n*qa]);if(y){var i=vt(y,r),o=[i[1],-i[0],0],a=vt(o,i);Tt(a),a=Et(a);var l=t-h,u=l>0?1:-1,m=a[0]*Va*u,b=Ta(l)>180;if(b^(m>u*h&&u*t>m)){var v=a[1]*Va;v>f&&(f=v)}else if(m=(m+360)%360-180,b^(m>u*h&&u*t>m)){var v=-a[1]*Va;p>v&&(p=v)}else p>n&&(p=n),n>f&&(f=n);b?h>t?s(c,t)>s(c,d)&&(d=t):s(t,d)>s(c,d)&&(c=t):d>=c?(c>t&&(c=t),t>d&&(d=t)):t>h?s(c,t)>s(c,d)&&(d=t):s(t,d)>s(c,d)&&(c=t)}else e(t,n);y=r,h=t}function n(){T.point=t}function r(){_[0]=c,_[1]=d,T.point=e,y=null}function i(e,n){if(y){var r=e-h;v+=Ta(r)>180?r+(r>0?360:-360):r}else m=e,b=n;Ms.point(e,n),t(e,n)}function o(){Ms.lineStart()}function a(){i(m,b),Ms.lineEnd(),Ta(v)>Fa&&(c=-(d=180)),_[0]=c,_[1]=d,y=null}function s(e,t){return(t-=e)<0?t+360:t}function l(e,t){return e[0]-t[0]}function u(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:ePs?(c=-(d=180),p=-(f=90)):v>Fa?f=90:-Fa>v&&(p=-90),_[0]=c,_[1]=d}};return function(e){f=d=-(c=p=1/0),g=[],ua.geo.stream(e,T);var t=g.length;if(t){g.sort(l);for(var n,r=1,i=g[0],o=[i];t>r;++r)n=g[r],u(n[0],i)||u(n[1],i)?(s(i[0],n[1])>s(i[0],i[1])&&(i[1]=n[1]),s(n[0],i[1])>s(i[0],i[1])&&(i[0]=n[0])):o.push(i=n);for(var a,n,h=-(1/0),t=o.length-1,r=0,i=o[t];t>=r;i=n,++r)n=o[r],(a=s(i[1],n[0]))>h&&(h=a,c=n[0],d=i[1])}return g=_=null,c===1/0||p===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,p],[d,f]]}}(),ua.geo.centroid=function(e){xs=ks=As=Os=Ns=Rs=Is=Ds=Ls=js=Fs=0,ua.geo.stream(e,Us);var t=Ls,n=js,r=Fs,i=t*t+n*n+r*r;return Ua>i&&(t=Rs,n=Is,r=Ds,Fa>ks&&(t=As,n=Os,r=Ns),i=t*t+n*n+r*r,Ua>i)?[NaN,NaN]:[Math.atan2(n,t)*Va,ne(r/Math.sqrt(i))*Va]};var xs,ks,As,Os,Ns,Rs,Is,Ds,Ls,js,Fs,Us={sphere:E,point:Ct,lineStart:Pt,lineEnd:Mt,polygonStart:function(){Us.lineStart=xt},polygonEnd:function(){Us.lineStart=Pt}},Bs=It(At,Ft,Bt,[-Ba,-Ba/2]),Hs=1e9;ua.geo.clipExtent=function(){var e,t,n,r,i,o,a={stream:function(e){return i&&(i.valid=!1),i=o(e),i.valid=!0,i},extent:function(s){return arguments.length?(o=qt(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),a):[[e,t],[n,r]]}};return a.extent([[0,0],[960,500]])},(ua.geo.conicEqualArea=function(){return Vt(zt)}).raw=zt,ua.geo.albers=function(){return ua.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ua.geo.albersUsa=function(){function e(e){var o=e[0],a=e[1];return t=null,n(o,a),t||(r(o,a),t)||i(o,a),t}var t,n,r,i,o=ua.geo.albers(),a=ua.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=ua.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(e,n){t=[e,n]}};return e.invert=function(e){var t=o.scale(),n=o.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?a:i>=.166&&.234>i&&r>=-.214&&-.115>r?s:o).invert(e)},e.stream=function(e){var t=o.stream(e),n=a.stream(e),r=s.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},e.precision=function(t){return arguments.length?(o.precision(t),a.precision(t),s.precision(t),e):o.precision()},e.scale=function(t){return arguments.length?(o.scale(t),a.scale(.35*t),s.scale(t),e.translate(o.translate())):o.scale()},e.translate=function(t){if(!arguments.length)return o.translate();var u=o.scale(),c=+t[0],p=+t[1];return n=o.translate(t).clipExtent([[c-.455*u,p-.238*u],[c+.455*u,p+.238*u]]).stream(l).point,r=a.translate([c-.307*u,p+.201*u]).clipExtent([[c-.425*u+Fa,p+.12*u+Fa],[c-.214*u-Fa,p+.234*u-Fa]]).stream(l).point,i=s.translate([c-.205*u,p+.212*u]).clipExtent([[c-.214*u+Fa,p+.166*u+Fa],[c-.115*u-Fa,p+.234*u-Fa]]).stream(l).point,e},e.scale(1070)};var Gs,Ks,qs,Vs,zs,Xs,Ws={point:E,lineStart:E,lineEnd:E,polygonStart:function(){Ks=0,Ws.lineStart=Xt},polygonEnd:function(){Ws.lineStart=Ws.lineEnd=Ws.point=E,Gs+=Ta(Ks/2)}},$s={point:Wt,lineStart:E,lineEnd:E,polygonStart:E,polygonEnd:E},Qs={point:Yt,lineStart:Zt,lineEnd:Jt,polygonStart:function(){Qs.lineStart=en},polygonEnd:function(){Qs.point=Yt,Qs.lineStart=Zt,Qs.lineEnd=Jt}};ua.geo.path=function(){function e(e){return e&&("function"==typeof s&&o.pointRadius(+s.apply(this,arguments)),a&&a.valid||(a=i(o)),ua.geo.stream(e,a)),o.result()}function t(){return a=null,e}var n,r,i,o,a,s=4.5;return e.area=function(e){return Gs=0,ua.geo.stream(e,i(Ws)),Gs},e.centroid=function(e){return As=Os=Ns=Rs=Is=Ds=Ls=js=Fs=0,ua.geo.stream(e,i(Qs)),Fs?[Ls/Fs,js/Fs]:Ds?[Rs/Ds,Is/Ds]:Ns?[As/Ns,Os/Ns]:[NaN,NaN]},e.bounds=function(e){return zs=Xs=-(qs=Vs=1/0),ua.geo.stream(e,i($s)),[[qs,Vs],[zs,Xs]]},e.projection=function(e){return arguments.length?(i=(n=e)?e.stream||rn(e):g,t()):n},e.context=function(e){return arguments.length?(o=null==(r=e)?new $t:new tn(e),"function"!=typeof s&&o.pointRadius(s),t()):r},e.pointRadius=function(t){return arguments.length?(s="function"==typeof t?t:(o.pointRadius(+t),+t),e):s},e.projection(ua.geo.albersUsa()).context(null)},ua.geo.transform=function(e){return{stream:function(t){var n=new on(t);for(var r in e)n[r]=e[r];return n}}},on.prototype={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()}},ua.geo.projection=sn,ua.geo.projectionMutator=ln,(ua.geo.equirectangular=function(){return sn(cn)}).raw=cn.invert=cn,ua.geo.rotation=function(e){function t(t){return t=e(t[0]*qa,t[1]*qa),t[0]*=Va,t[1]*=Va,t}return e=dn(e[0]%360*qa,e[1]*qa,e.length>2?e[2]*qa:0),t.invert=function(t){return t=e.invert(t[0]*qa,t[1]*qa),t[0]*=Va,t[1]*=Va,t},t},pn.invert=cn,ua.geo.circle=function(){function e(){var e="function"==typeof r?r.apply(this,arguments):r,t=dn(-e[0]*qa,-e[1]*qa,0).invert,i=[];return n(null,null,1,{point:function(e,n){i.push(e=t(e,n)),e[0]*=Va,e[1]*=Va}}),{type:"Polygon",coordinates:[i]}}var t,n,r=[0,0],i=6;return e.origin=function(t){return arguments.length?(r=t,e):r},e.angle=function(r){return arguments.length?(n=bn((t=+r)*qa,i*qa),e):t},e.precision=function(r){return arguments.length?(n=bn(t*qa,(i=+r)*qa),e):i},e.angle(90)},ua.geo.distance=function(e,t){var n,r=(t[0]-e[0])*qa,i=e[1]*qa,o=t[1]*qa,a=Math.sin(r),s=Math.cos(r),l=Math.sin(i),u=Math.cos(i),c=Math.sin(o),p=Math.cos(o);return Math.atan2(Math.sqrt((n=p*a)*n+(n=u*c-l*p*s)*n),l*c+u*p*s)},ua.geo.graticule=function(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return ua.range(Math.ceil(o/b)*b,i,b).map(d).concat(ua.range(Math.ceil(u/y)*y,l,y).map(f)).concat(ua.range(Math.ceil(r/h)*h,n,h).filter(function(e){return Ta(e%b)>Fa}).map(c)).concat(ua.range(Math.ceil(s/m)*m,a,m).filter(function(e){return Ta(e%y)>Fa}).map(p))}var n,r,i,o,a,s,l,u,c,p,d,f,h=10,m=h,b=90,y=360,v=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[d(o).concat(f(l).slice(1),d(i).reverse().slice(1),f(u).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(o=+t[0][0],i=+t[1][0],u=+t[0][1],l=+t[1][1],o>i&&(t=o,o=i,i=t),u>l&&(t=u,u=l,l=t),e.precision(v)):[[o,u],[i,l]]},e.minorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),s>a&&(t=s,s=a,a=t),e.precision(v)):[[r,s],[n,a]]},e.step=function(t){return arguments.length?e.majorStep(t).minorStep(t):e.minorStep()},e.majorStep=function(t){return arguments.length?(b=+t[0],y=+t[1],e):[b,y]},e.minorStep=function(t){return arguments.length?(h=+t[0],m=+t[1],e):[h,m]},e.precision=function(t){return arguments.length?(v=+t,c=vn(s,a,90),p=gn(r,n,v),d=vn(u,l,90),f=gn(o,i,v),e):v},e.majorExtent([[-180,-90+Fa],[180,90-Fa]]).minorExtent([[-180,-80-Fa],[180,80+Fa]])},ua.geo.greatArc=function(){function e(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||i.apply(this,arguments)]}}var t,n,r=_n,i=Tn;return e.distance=function(){return ua.geo.distance(t||r.apply(this,arguments),n||i.apply(this,arguments))},e.source=function(n){return arguments.length?(r=n,t="function"==typeof n?null:n,e):r},e.target=function(t){return arguments.length?(i=t,n="function"==typeof t?null:t,e):i},e.precision=function(){return arguments.length?e:0},e},ua.geo.interpolate=function(e,t){return En(e[0]*qa,e[1]*qa,t[0]*qa,t[1]*qa)},ua.geo.length=function(e){return Ys=0,ua.geo.stream(e,Zs),Ys};var Ys,Zs={sphere:E,point:E,lineStart:wn,lineEnd:E,polygonStart:E,polygonEnd:E},Js=Cn(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(ua.geo.azimuthalEqualArea=function(){return sn(Js)}).raw=Js;var el=Cn(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},g);(ua.geo.azimuthalEquidistant=function(){return sn(el)}).raw=el,(ua.geo.conicConformal=function(){return Vt(Sn)}).raw=Sn,(ua.geo.conicEquidistant=function(){return Vt(Pn)}).raw=Pn;var tl=Cn(function(e){return 1/e},Math.atan);(ua.geo.gnomonic=function(){return sn(tl)}).raw=tl,Mn.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-Ka]},(ua.geo.mercator=function(){return xn(Mn)}).raw=Mn;var nl=Cn(function(){return 1},Math.asin);(ua.geo.orthographic=function(){return sn(nl)}).raw=nl;var rl=Cn(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(ua.geo.stereographic=function(){return sn(rl)}).raw=rl,kn.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Ka]},(ua.geo.transverseMercator=function(){var e=xn(kn),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=kn,ua.geom={},ua.geom.hull=function(e){function t(e){if(e.length<3)return[];var t,i=Me(n),o=Me(r),a=e.length,s=[],l=[];for(t=0;a>t;t++)s.push([+i.call(this,e[t],t),+o.call(this,e[t],t),t]);for(s.sort(Rn),t=0;a>t;t++)l.push([s[t][0],-s[t][1]]);var u=Nn(s),c=Nn(l),p=c[0]===u[0],d=c[c.length-1]===u[u.length-1],f=[];for(t=u.length-1;t>=0;--t)f.push(e[s[u[t]][2]]);for(t=+p;t=r&&u.x<=o&&u.y>=i&&u.y<=a?[[r,a],[o,a],[o,i],[r,i]]:[];c.point=e[s]}),t}function n(e){return e.map(function(e,t){return{x:Math.round(o(e,t)/Fa)*Fa,y:Math.round(a(e,t)/Fa)*Fa,i:t}})}var r=An,i=On,o=r,a=i,s=dl;return e?t(e):(t.links=function(e){return lr(n(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},t.triangles=function(e){var t=[];return lr(n(e)).cells.forEach(function(n,r){for(var i,o,a=n.site,s=n.edges.sort(zn),l=-1,u=s.length,c=s[u-1].edge,p=c.l===a?c.r:c.l;++l=u,d=r>=c,f=d<<1|p;e.leaf=!1,e=e.nodes[f]||(e.nodes[f]=fr()),p?i=u:s=u,d?a=c:l=c,o(e,t,n,r,i,a,s,l)}var c,p,d,f,h,m,b,y,v,g=Me(s),_=Me(l);if(null!=t)m=t,b=n,y=r,v=i;else if(y=v=-(m=b=1/0),p=[],d=[],h=e.length,a)for(f=0;h>f;++f)c=e[f],c.xy&&(y=c.x),c.y>v&&(v=c.y),p.push(c.x),d.push(c.y);else for(f=0;h>f;++f){var T=+g(c=e[f],f),E=+_(c,f);m>T&&(m=T),b>E&&(b=E),T>y&&(y=T),E>v&&(v=E),p.push(T),d.push(E)}var w=y-m,C=v-b;w>C?v=b+w:y=m+C;var S=fr();if(S.add=function(e){o(S,e,+g(e,++f),+_(e,f),m,b,y,v)},S.visit=function(e){hr(e,S,m,b,y,v)},S.find=function(e){return mr(S,e[0],e[1],m,b,y,v)},f=-1,null==t){for(;++f=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=bl.get(n)||ml,r=yl.get(r)||g,Er(r(n.apply(null,ca.call(arguments,1))))},ua.interpolateHcl=Dr,ua.interpolateHsl=Lr,ua.interpolateLab=jr,ua.interpolateRound=Fr,ua.transform=function(e){var t=da.createElementNS(ua.ns.prefix.svg,"g");return(ua.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new Ur(n?n.matrix:vl)})(e)},Ur.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var vl={a:1,b:0,c:0,d:1,e:0,f:0};ua.interpolateTransform=Wr,ua.layout={},ua.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++ns*s/y){if(m>l){var u=t.charge/l;e.px-=o*u,e.py-=a*u}return!0}if(t.point&&l&&m>l){var u=t.pointCharge/l;e.px-=o*u,e.py-=a*u}}return!t.charge}}function t(e){e.px=ua.event.x,e.py=ua.event.y,l.resume()}var n,r,i,o,a,s,l={},u=ua.dispatch("start","tick","end"),c=[1,1],p=.9,d=gl,f=_l,h=-30,m=Tl,b=.1,y=.64,v=[],_=[];return l.tick=function(){if((i*=.99)<.005)return n=null,u.end({type:"end",alpha:i=0}),!0;var t,r,l,d,f,m,y,g,T,E=v.length,w=_.length;for(r=0;w>r;++r)l=_[r],d=l.source,f=l.target,g=f.x-d.x,T=f.y-d.y,(m=g*g+T*T)&&(m=i*a[r]*((m=Math.sqrt(m))-o[r])/m,g*=m,T*=m,f.x-=g*(y=d.weight+f.weight?d.weight/(d.weight+f.weight):.5),f.y-=T*y,d.x+=g*(y=1-y),d.y+=T*y);if((y=i*b)&&(g=c[0]/2,T=c[1]/2,r=-1,y))for(;++r0?i=e:(n.c=null,n.t=NaN,n=null,u.end({type:"end",alpha:i=0})):e>0&&(u.start({type:"start",alpha:i=e}),n=Ne(l.tick)),l):i},l.start=function(){function e(e,r){if(!n){for(n=new Array(i),l=0;i>l;++l)n[l]=[];for(l=0;u>l;++l){var o=_[l];n[o.source.index].push(o.target),n[o.target.index].push(o.source)}}for(var a,s=n[t],l=-1,c=s.length;++lt;++t)(r=v[t]).index=t,r.weight=0;for(t=0;u>t;++t)r=_[t],"number"==typeof r.source&&(r.source=v[r.source]),"number"==typeof r.target&&(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;i>t;++t)r=v[t],isNaN(r.x)&&(r.x=e("x",p)),isNaN(r.y)&&(r.y=e("y",m)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(o=[],"function"==typeof d)for(t=0;u>t;++t)o[t]=+d.call(this,_[t],t);else for(t=0;u>t;++t)o[t]=d;if(a=[],"function"==typeof f)for(t=0;u>t;++t)a[t]=+f.call(this,_[t],t);else for(t=0;u>t;++t)a[t]=f;if(s=[],"function"==typeof h)for(t=0;i>t;++t)s[t]=+h.call(this,v[t],t);else for(t=0;i>t;++t)s[t]=h;return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){return r||(r=ua.behavior.drag().origin(g).on("dragstart.force",ei).on("drag.force",t).on("dragend.force",ti)),arguments.length?void this.on("mouseover.force",ni).on("mouseout.force",ri).call(r):r},ua.rebind(l,u,"on")};var gl=20,_l=1,Tl=1/0;ua.layout.hierarchy=function(){function e(i){var o,a=[i],s=[];for(i.depth=0;null!=(o=a.pop());)if(s.push(o),(u=n.call(e,o,o.depth))&&(l=u.length)){for(var l,u,c;--l>=0;)a.push(c=u[l]),c.parent=o,c.depth=o.depth+1;r&&(o.value=0),o.children=u}else r&&(o.value=+r.call(e,o,o.depth)||0),delete o.children;return si(i,function(e){var n,i;t&&(n=e.children)&&n.sort(t),r&&(i=e.parent)&&(i.value+=e.value)}),s}var t=ci,n=li,r=ui;return e.sort=function(n){return arguments.length?(t=n,e):t},e.children=function(t){return arguments.length?(n=t,e):n},e.value=function(t){return arguments.length?(r=t,e):r},e.revalue=function(t){return r&&(ai(t,function(e){e.children&&(e.value=0)}),si(t,function(t){var n;t.children||(t.value=+r.call(e,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)})),t},e},ua.layout.partition=function(){function e(t,n,r,i){var o=t.children;if(t.x=n,t.y=t.depth*i,t.dx=r,t.dy=i,o&&(a=o.length)){var a,s,l,u=-1;for(r=t.value?r/t.value:0;++up?-1:1),h=ua.sum(u),m=h?(p-l*f)/h:0,b=ua.range(l),y=[];return null!=n&&b.sort(n===El?function(e,t){return u[t]-u[e]}:function(e,t){return n(a[e],a[t])}),b.forEach(function(e){y[e]={data:a[e],value:s=u[e],startAngle:c,endAngle:c+=s*m+f,padAngle:d}}),y}var t=Number,n=El,r=0,i=Ha,o=0;return e.value=function(n){return arguments.length?(t=n,e):t},e.sort=function(t){return arguments.length?(n=t,e):n},e.startAngle=function(t){return arguments.length?(r=t,e):r},e.endAngle=function(t){return arguments.length?(i=t,e):i},e.padAngle=function(t){return arguments.length?(o=t,e):o},e};var El={};ua.layout.stack=function(){function e(s,l){if(!(d=s.length))return s;var u=s.map(function(n,r){return t.call(e,n,r)}),c=u.map(function(t){return t.map(function(t,n){return[o.call(e,t,n),a.call(e,t,n)]})}),p=n.call(e,c,l);u=ua.permute(u,p),c=ua.permute(c,p);var d,f,h,m,b=r.call(e,c,l),y=u[0].length;for(h=0;y>h;++h)for(i.call(e,u[0][h],m=b[h],c[0][h][1]),f=1;d>f;++f)i.call(e,u[f][h],m+=c[f-1][h][1],c[f][h][1]);return s}var t=g,n=mi,r=bi,i=hi,o=di,a=fi;return e.values=function(n){return arguments.length?(t=n,e):t},e.order=function(t){return arguments.length?(n="function"==typeof t?t:wl.get(t)||mi,e):n},e.offset=function(t){return arguments.length?(r="function"==typeof t?t:Cl.get(t)||bi,e):r},e.x=function(t){return arguments.length?(o=t,e):o},e.y=function(t){return arguments.length?(a=t,e):a},e.out=function(t){return arguments.length?(i=t,e):i},e};var wl=ua.map({"inside-out":function(e){var t,n,r=e.length,i=e.map(yi),o=e.map(vi),a=ua.range(r).sort(function(e,t){return i[e]-i[t]}),s=0,l=0,u=[],c=[];for(t=0;r>t;++t)n=a[t],l>s?(s+=o[n],u.push(n)):(l+=o[n],c.push(n));return c.reverse().concat(u)},reverse:function(e){return ua.range(e.length).reverse()},"default":mi}),Cl=ua.map({silhouette:function(e){var t,n,r,i=e.length,o=e[0].length,a=[],s=0,l=[];for(n=0;o>n;++n){for(t=0,r=0;i>t;t++)r+=e[t][n][1];r>s&&(s=r),a.push(r)}for(n=0;o>n;++n)l[n]=(s-a[n])/2;return l},wiggle:function(e){var t,n,r,i,o,a,s,l,u,c=e.length,p=e[0],d=p.length,f=[];for(f[0]=l=u=0,n=1;d>n;++n){for(t=0,i=0;c>t;++t)i+=e[t][n][1];for(t=0,o=0,s=p[n][0]-p[n-1][0];c>t;++t){for(r=0,a=(e[t][n][1]-e[t][n-1][1])/(2*s);t>r;++r)a+=(e[r][n][1]-e[r][n-1][1])/s;o+=a*e[t][n][1]}f[n]=l-=i?o/i*s:0,u>l&&(u=l)}for(n=0;d>n;++n)f[n]-=u;return f},expand:function(e){var t,n,r,i=e.length,o=e[0].length,a=1/i,s=[];for(n=0;o>n;++n){for(t=0,r=0;i>t;t++)r+=e[t][n][1];if(r)for(t=0;i>t;t++)e[t][n][1]/=r;else for(t=0;i>t;t++)e[t][n][1]=a}for(n=0;o>n;++n)s[n]=0;return s},zero:bi});ua.layout.histogram=function(){function e(e,o){for(var a,s,l=[],u=e.map(n,this),c=r.call(this,u,o),p=i.call(this,c,u,o),o=-1,d=u.length,f=p.length-1,h=t?1:1/d;++o0)for(o=-1;++o=c[0]&&s<=c[1]&&(a=l[ua.bisect(p,s,1,f)-1],a.y+=h,a.push(e[o]));return l}var t=!0,n=Number,r=Ei,i=_i;return e.value=function(t){return arguments.length?(n=t,e):n},e.range=function(t){return arguments.length?(r=Me(t),e):r},e.bins=function(t){return arguments.length?(i="number"==typeof t?function(e){return Ti(e,t)}:Me(t),e):i},e.frequency=function(n){return arguments.length?(t=!!n,e):t},e},ua.layout.pack=function(){function e(e,o){var a=n.call(this,e,o),s=a[0],l=i[0],u=i[1],c=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,si(s,function(e){e.r=+c(e.value)}),si(s,Mi),r){var p=r*(t?1:Math.max(2*s.r/l,2*s.r/u))/2;si(s,function(e){e.r+=p}),si(s,Mi),si(s,function(e){e.r-=p})}return Ai(s,l/2,u/2,t?1:1/Math.max(2*s.r/l,2*s.r/u)),a}var t,n=ua.layout.hierarchy().sort(wi),r=0,i=[1,1];return e.size=function(t){return arguments.length?(i=t,e):i},e.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,e):t},e.padding=function(t){return arguments.length?(r=+t,e):r},oi(e,n)},ua.layout.tree=function(){function e(e,i){var c=a.call(this,e,i),p=c[0],d=t(p);if(si(d,n),d.parent.m=-d.z,ai(d,r),u)ai(p,o);else{var f=p,h=p,m=p;ai(p,function(e){e.xh.x&&(h=e),e.depth>m.depth&&(m=e)});var b=s(f,h)/2-f.x,y=l[0]/(h.x+s(h,f)/2+b),v=l[1]/(m.depth||1);ai(p,function(e){e.x=(e.x+b)*y,e.y=e.depth*v})}return c}function t(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var i,o=t.children,a=0,s=o.length;s>a;++a)r.push((o[a]=i={_:o[a],parent:t,children:(i=o[a].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=i);return n.children[0]}function n(e){var t=e.children,n=e.parent.children,r=e.i?n[e.i-1]:null;if(t.length){Li(e);var o=(t[0].z+t[t.length-1].z)/2;r?(e.z=r.z+s(e._,r._),e.m=e.z-o):e.z=o}else r&&(e.z=r.z+s(e._,r._));e.parent.A=i(e,r,e.parent.A||n[0])}function r(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function i(e,t,n){if(t){for(var r,i=e,o=e,a=t,l=i.parent.children[0],u=i.m,c=o.m,p=a.m,d=l.m;a=Ii(a),i=Ri(i),a&&i;)l=Ri(l),o=Ii(o),o.a=e,r=a.z+p-i.z-u+s(a._,i._),r>0&&(Di(ji(a,e,n),e,r),u+=r,c+=r),p+=a.m,u+=i.m,d+=l.m,c+=o.m;a&&!Ii(o)&&(o.t=a,o.m+=p-c),i&&!Ri(l)&&(l.t=i,l.m+=u-d,n=e)}return n}function o(e){e.x*=l[0],e.y=e.depth*l[1]}var a=ua.layout.hierarchy().sort(null).value(null),s=Ni,l=[1,1],u=null;return e.separation=function(t){return arguments.length?(s=t,e):s},e.size=function(t){return arguments.length?(u=null==(l=t)?o:null,e):u?null:l},e.nodeSize=function(t){return arguments.length?(u=null==(l=t)?null:o,e):u?l:null},oi(e,a)},ua.layout.cluster=function(){function e(e,o){var a,s=t.call(this,e,o),l=s[0],u=0;si(l,function(e){var t=e.children;t&&t.length?(e.x=Ui(t),e.y=Fi(t)):(e.x=a?u+=n(e,a):0,e.y=0,a=e)});var c=Bi(l),p=Hi(l),d=c.x-n(c,p)/2,f=p.x+n(p,c)/2;return si(l,i?function(e){e.x=(e.x-l.x)*r[0],e.y=(l.y-e.y)*r[1]}:function(e){e.x=(e.x-d)/(f-d)*r[0],e.y=(1-(l.y?e.y/l.y:1))*r[1]}),s}var t=ua.layout.hierarchy().sort(null).value(null),n=Ni,r=[1,1],i=!1;return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(t){return arguments.length?(i=null==(r=t),e):i?null:r},e.nodeSize=function(t){return arguments.length?(i=null!=(r=t),e):i?r:null},oi(e,t)},ua.layout.treemap=function(){function e(e,t){for(var n,r,i=-1,o=e.length;++it?0:t),n.area=isNaN(r)||0>=r?0:r}function t(n){var o=n.children;if(o&&o.length){var a,s,l,u=p(n),c=[],d=o.slice(),h=1/0,m="slice"===f?u.dx:"dice"===f?u.dy:"slice-dice"===f?1&n.depth?u.dy:u.dx:Math.min(u.dx,u.dy);for(e(d,u.dx*u.dy/n.value),c.area=0;(l=d.length)>0;)c.push(a=d[l-1]),c.area+=a.area,"squarify"!==f||(s=r(c,m))<=h?(d.pop(),h=s):(c.area-=c.pop().area,i(c,m,u,!1),m=Math.min(u.dx,u.dy),c.length=c.area=0,h=1/0);c.length&&(i(c,m,u,!0),c.length=c.area=0),o.forEach(t)}}function n(t){var r=t.children;if(r&&r.length){var o,a=p(t),s=r.slice(),l=[];for(e(s,a.dx*a.dy/t.value),l.area=0;o=s.pop();)l.push(o),l.area+=o.area,null!=o.z&&(i(l,o.z?a.dx:a.dy,a,!s.length),l.length=l.area=0);r.forEach(n)}}function r(e,t){for(var n,r=e.area,i=0,o=1/0,a=-1,s=e.length;++an&&(o=n),n>i&&(i=n));return r*=r,t*=t,r?Math.max(t*i*h/r,r/(t*o*h)):1/0}function i(e,t,n,r){var i,o=-1,a=e.length,s=n.x,u=n.y,c=t?l(e.area/t):0;if(t==n.dx){for((r||c>n.dy)&&(c=n.dy);++on.dx)&&(c=n.dx);++on&&(t=1),1>n&&(e=0),function(){var n,r,i;do n=2*Math.random()-1,r=2*Math.random()-1,i=n*n+r*r;while(!i||i>1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=ua.random.normal.apply(ua,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=ua.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;e>n;n++)t+=Math.random();return t}}},ua.scale={};var Sl={floor:g,ceil:g};ua.scale.linear=function(){return Qi([0,1],[0,1],_r,!1)};var Pl={s:1,g:1,p:1,r:1,e:1};ua.scale.log=function(){return io(ua.scale.linear().domain([0,1]),10,!0,[1,10])};var Ml=ua.format(".0e"),xl={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};ua.scale.pow=function(){return oo(ua.scale.linear(),1,[0,1])},ua.scale.sqrt=function(){return ua.scale.pow().exponent(.5)},ua.scale.ordinal=function(){return so([],{t:"range",a:[[]]})},ua.scale.category10=function(){return ua.scale.ordinal().range(kl)},ua.scale.category20=function(){return ua.scale.ordinal().range(Al)},ua.scale.category20b=function(){return ua.scale.ordinal().range(Ol)},ua.scale.category20c=function(){return ua.scale.ordinal().range(Nl)};var kl=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(_e),Al=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(_e),Ol=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(_e),Nl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(_e);ua.scale.quantile=function(){return lo([],[])},ua.scale.quantize=function(){return uo(0,1,[0,1])},ua.scale.threshold=function(){return co([.5],[0,1])},ua.scale.identity=function(){return po([0,1])},ua.svg={},ua.svg.arc=function(){function e(){var e=Math.max(0,+n.apply(this,arguments)),u=Math.max(0,+r.apply(this,arguments)),c=a.apply(this,arguments)-Ka,p=s.apply(this,arguments)-Ka,d=Math.abs(p-c),f=c>p?0:1;if(e>u&&(h=u,u=e,e=h),d>=Ga)return t(u,f)+(e?t(e,1-f):"")+"Z";var h,m,b,y,v,g,_,T,E,w,C,S,P=0,M=0,x=[];if((y=(+l.apply(this,arguments)||0)/2)&&(b=o===Rl?Math.sqrt(e*e+u*u):+o.apply(this,arguments),f||(M*=-1),u&&(M=ne(b/u*Math.sin(y))),e&&(P=ne(b/e*Math.sin(y)))),u){v=u*Math.cos(c+M),g=u*Math.sin(c+M),_=u*Math.cos(p-M),T=u*Math.sin(p-M);var k=Math.abs(p-c-2*M)<=Ba?0:1;if(M&&go(v,g,_,T)===f^k){var A=(c+p)/2;v=u*Math.cos(A),g=u*Math.sin(A),_=T=null}}else v=g=0;if(e){E=e*Math.cos(p-P),w=e*Math.sin(p-P),C=e*Math.cos(c+P),S=e*Math.sin(c+P);var O=Math.abs(c-p+2*P)<=Ba?0:1;if(P&&go(E,w,C,S)===1-f^O){var N=(c+p)/2;E=e*Math.cos(N),w=e*Math.sin(N),C=S=null}}else E=w=0;if(d>Fa&&(h=Math.min(Math.abs(u-e)/2,+i.apply(this,arguments)))>.001){m=u>e^f?0:1;var R=h,I=h;if(Ba>d){var D=null==C?[E,w]:null==_?[v,g]:Dn([v,g],[C,S],[_,T],[E,w]),L=v-D[0],j=g-D[1],F=_-D[0],U=T-D[1],B=1/Math.sin(Math.acos((L*F+j*U)/(Math.sqrt(L*L+j*j)*Math.sqrt(F*F+U*U)))/2),H=Math.sqrt(D[0]*D[0]+D[1]*D[1]);I=Math.min(h,(e-H)/(B-1)),R=Math.min(h,(u-H)/(B+1))}if(null!=_){var G=_o(null==C?[E,w]:[C,S],[v,g],u,R,f),K=_o([_,T],[E,w],u,R,f);h===R?x.push("M",G[0],"A",R,",",R," 0 0,",m," ",G[1],"A",u,",",u," 0 ",1-f^go(G[1][0],G[1][1],K[1][0],K[1][1]),",",f," ",K[1],"A",R,",",R," 0 0,",m," ",K[0]):x.push("M",G[0],"A",R,",",R," 0 1,",m," ",K[0])}else x.push("M",v,",",g);if(null!=C){var q=_o([v,g],[C,S],e,-I,f),V=_o([E,w],null==_?[v,g]:[_,T],e,-I,f);h===I?x.push("L",V[0],"A",I,",",I," 0 0,",m," ",V[1],"A",e,",",e," 0 ",f^go(V[1][0],V[1][1],q[1][0],q[1][1]),",",1-f," ",q[1],"A",I,",",I," 0 0,",m," ",q[0]):x.push("L",V[0],"A",I,",",I," 0 0,",m," ",q[0])}else x.push("L",E,",",w)}else x.push("M",v,",",g),null!=_&&x.push("A",u,",",u," 0 ",k,",",f," ",_,",",T),x.push("L",E,",",w),null!=C&&x.push("A",e,",",e," 0 ",O,",",1-f," ",C,",",S);return x.push("Z"),x.join("")}function t(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}var n=ho,r=mo,i=fo,o=Rl,a=bo,s=yo,l=vo;return e.innerRadius=function(t){return arguments.length?(n=Me(t),e):n},e.outerRadius=function(t){return arguments.length?(r=Me(t),e):r},e.cornerRadius=function(t){return arguments.length?(i=Me(t),e):i},e.padRadius=function(t){return arguments.length?(o=t==Rl?Rl:Me(t),e):o},e.startAngle=function(t){return arguments.length?(a=Me(t),e):a},e.endAngle=function(t){return arguments.length?(s=Me(t),e):s},e.padAngle=function(t){return arguments.length?(l=Me(t),e):l},e.centroid=function(){var e=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-Ka;return[Math.cos(t)*e,Math.sin(t)*e]},e};var Rl="auto";ua.svg.line=function(){return To(g)};var Il=ua.map({linear:Eo,"linear-closed":wo,step:Co,"step-before":So,"step-after":Po,basis:No,"basis-open":Ro,"basis-closed":Io,bundle:Do,cardinal:ko,"cardinal-open":Mo,"cardinal-closed":xo,monotone:Ho});Il.forEach(function(e,t){t.key=e,t.closed=/-closed$/.test(e)});var Dl=[0,2/3,1/3,0],Ll=[0,1/3,2/3,0],jl=[0,1/6,2/3,1/6];ua.svg.line.radial=function(){var e=To(Go);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},So.reverse=Po,Po.reverse=So,ua.svg.area=function(){return Ko(g)},ua.svg.area.radial=function(){var e=Ko(Go);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},ua.svg.chord=function(){function e(e,s){var l=t(this,o,e,s),u=t(this,a,e,s);return"M"+l.p0+r(l.r,l.p1,l.a1-l.a0)+(n(l,u)?i(l.r,l.p1,l.r,l.p0):i(l.r,l.p1,u.r,u.p0)+r(u.r,u.p1,u.a1-u.a0)+i(u.r,u.p1,l.r,l.p0))+"Z"}function t(e,t,n,r){var i=t.call(e,n,r),o=s.call(e,i,r),a=l.call(e,i,r)-Ka,c=u.call(e,i,r)-Ka;return{r:o,a0:a,a1:c,p0:[o*Math.cos(a),o*Math.sin(a)],p1:[o*Math.cos(c),o*Math.sin(c)]}}function n(e,t){return e.a0==t.a0&&e.a1==t.a1}function r(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Ba)+",1 "+t}function i(e,t,n,r){return"Q 0,0 "+r}var o=_n,a=Tn,s=qo,l=bo,u=yo;return e.radius=function(t){return arguments.length?(s=Me(t),e):s},e.source=function(t){return arguments.length?(o=Me(t),e):o},e.target=function(t){return arguments.length?(a=Me(t),e):a},e.startAngle=function(t){return arguments.length?(l=Me(t),e):l},e.endAngle=function(t){return arguments.length?(u=Me(t),e):u},e},ua.svg.diagonal=function(){function e(e,i){var o=t.call(this,e,i),a=n.call(this,e,i),s=(o.y+a.y)/2,l=[o,{x:o.x,y:s},{x:a.x,y:s},a];return l=l.map(r),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var t=_n,n=Tn,r=Vo;return e.source=function(n){return arguments.length?(t=Me(n),e):t},e.target=function(t){return arguments.length?(n=Me(t),e):n},e.projection=function(t){return arguments.length?(r=t,e):r},e},ua.svg.diagonal.radial=function(){var e=ua.svg.diagonal(),t=Vo,n=e.projection;return e.projection=function(e){return arguments.length?n(zo(t=e)):t},e},ua.svg.symbol=function(){function e(e,r){return(Fl.get(t.call(this,e,r))||$o)(n.call(this,e,r))}var t=Wo,n=Xo;return e.type=function(n){return arguments.length?(t=Me(n),e):t},e.size=function(t){return arguments.length?(n=Me(t),e):n},e};var Fl=ua.map({circle:$o,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Bl)),n=t*Bl;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Ul),n=t*Ul/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Ul),n=t*Ul/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});ua.svg.symbolTypes=Fl.keys();var Ul=Math.sqrt(3),Bl=Math.tan(30*qa);Aa.transition=function(e){for(var t,n,r=Hl||++Vl,i=ea(e),o=[],a=Gl||{time:Date.now(),ease:Mr,delay:0,duration:250},s=-1,l=this.length;++so;o++){i.push(t=[]);for(var n=this[o],s=0,l=n.length;l>s;s++)(r=n[s])&&e.call(r,r.__data__,s,o)&&t.push(r)}return Yo(i,this.namespace,this.id)},ql.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):q(this,null==t?function(t){t[r][n].tween.remove(e)}:function(i){i[r][n].tween.set(e,t)})},ql.attr=function(e,t){function n(){this.removeAttribute(s)}function r(){this.removeAttributeNS(s.space,s.local)}function i(e){return null==e?n:(e+="",function(){var t,n=this.getAttribute(s);return n!==e&&(t=a(n,e),function(e){this.setAttribute(s,t(e))})})}function o(e){return null==e?r:(e+="",function(){var t,n=this.getAttributeNS(s.space,s.local);return n!==e&&(t=a(n,e),function(e){this.setAttributeNS(s.space,s.local,t(e))})})}if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var a="transform"==e?Wr:_r,s=ua.ns.qualify(e);return Zo(this,"attr."+e,t,s.local?o:i)},ql.attrTween=function(e,t){function n(e,n){var r=t.call(this,e,n,this.getAttribute(i));return r&&function(e){this.setAttribute(i,r(e))}}function r(e,n){var r=t.call(this,e,n,this.getAttributeNS(i.space,i.local));return r&&function(e){this.setAttributeNS(i.space,i.local,r(e))}}var i=ua.ns.qualify(e);return this.tween("attr."+e,i.local?r:n)},ql.style=function(e,t,r){function i(){this.style.removeProperty(e)}function o(t){return null==t?i:(t+="",function(){var i,o=n(this).getComputedStyle(this,null).getPropertyValue(e);return o!==t&&(i=_r(o,t),function(t){this.style.setProperty(e,i(t),r)})})}var a=arguments.length;if(3>a){if("string"!=typeof e){2>a&&(t="");for(r in e)this.style(r,e[r],t);return this}r=""}return Zo(this,"style."+e,t,o)},ql.styleTween=function(e,t,r){function i(i,o){var a=t.call(this,i,o,n(this).getComputedStyle(this,null).getPropertyValue(e));return a&&function(t){this.style.setProperty(e,a(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+e,i)},ql.text=function(e){return Zo(this,"text",e,Jo)},ql.remove=function(){var e=this.namespace;return this.each("end.transition",function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)})},ql.ease=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].ease:("function"!=typeof e&&(e=ua.ease.apply(ua,arguments)),q(this,function(r){r[n][t].ease=e}))},ql.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:q(this,"function"==typeof e?function(r,i,o){r[n][t].delay=+e.call(r,r.__data__,i,o)}:(e=+e,function(r){r[n][t].delay=e}))},ql.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:q(this,"function"==typeof e?function(r,i,o){r[n][t].duration=Math.max(1,e.call(r,r.__data__,i,o))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},ql.each=function(e,t){var n=this.id,r=this.namespace;if(arguments.length<2){var i=Gl,o=Hl;try{Hl=n,q(this,function(t,i,o){Gl=t[r][n],e.call(t,t.__data__,i,o)})}finally{Gl=i,Hl=o}}else q(this,function(i){var o=i[r][n];(o.event||(o.event=ua.dispatch("start","end","interrupt"))).on(e,t)});return this},ql.transition=function(){for(var e,t,n,r,i=this.id,o=++Vl,a=this.namespace,s=[],l=0,u=this.length;u>l;l++){s.push(e=[]);for(var t=this[l],c=0,p=t.length;p>c;c++)(n=t[c])&&(r=n[a][i],ta(n,c,a,o,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),e.push(n)}return Yo(s,a,o)},ua.svg.axis=function(){function e(e){e.each(function(){var e,u=ua.select(this),c=this.__chart__||n,p=this.__chart__=n.copy(),d=null==l?p.ticks?p.ticks.apply(p,s):p.domain():l,f=null==t?p.tickFormat?p.tickFormat.apply(p,s):g:t,h=u.selectAll(".tick").data(d,p),m=h.enter().insert("g",".domain").attr("class","tick").style("opacity",Fa),b=ua.transition(h.exit()).style("opacity",Fa).remove(),y=ua.transition(h.order()).style("opacity",1),v=Math.max(i,0)+a,_=Vi(p),T=u.selectAll(".domain").data([0]),E=(T.enter().append("path").attr("class","domain"),ua.transition(T));m.append("line"),m.append("text");var w,C,S,P,M=m.select("line"),x=y.select("line"),k=h.select("text").text(f),A=m.select("text"),O=y.select("text"),N="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(e=na,w="x",S="y",C="x2",P="y2",k.attr("dy",0>N?"0em":".71em").style("text-anchor","middle"),E.attr("d","M"+_[0]+","+N*o+"V0H"+_[1]+"V"+N*o)):(e=ra,w="y",S="x",C="y2",P="x2",k.attr("dy",".32em").style("text-anchor",0>N?"end":"start"),E.attr("d","M"+N*o+","+_[0]+"H0V"+_[1]+"H"+N*o)),M.attr(P,N*i),A.attr(S,N*v),x.attr(C,0).attr(P,N*i),O.attr(w,0).attr(S,N*v),p.rangeBand){var R=p,I=R.rangeBand()/2;c=p=function(e){return R(e)+I}}else c.rangeBand?c=p:b.call(e,p,c);m.call(e,c,p),y.call(e,p,p)})}var t,n=ua.scale.linear(),r=zl,i=6,o=6,a=3,s=[10],l=null;return e.scale=function(t){return arguments.length?(n=t,e):n},e.orient=function(t){return arguments.length?(r=t in Xl?t+"":zl,e):r},e.ticks=function(){return arguments.length?(s=pa(arguments),e):s},e.tickValues=function(t){return arguments.length?(l=t,e):l},e.tickFormat=function(n){return arguments.length?(t=n,e):t},e.tickSize=function(t){var n=arguments.length;return n?(i=+t,o=+arguments[n-1],e):i},e.innerTickSize=function(t){return arguments.length?(i=+t,e):i},e.outerTickSize=function(t){return arguments.length?(o=+t,e):o},e.tickPadding=function(t){return arguments.length?(a=+t,e):a},e.tickSubdivide=function(){return arguments.length&&e},e};var zl="bottom",Xl={top:1,right:1,bottom:1,left:1};ua.svg.brush=function(){function e(n){n.each(function(){var n=ua.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",o).on("touchstart.brush",o),a=n.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),n.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var s=n.selectAll(".resize").data(m,g);s.exit().remove(),s.enter().append("g").attr("class",function(e){return"resize "+e}).style("cursor",function(e){return Wl[e]}).append("rect").attr("x",function(e){return/[ew]$/.test(e)?-3:null}).attr("y",function(e){return/^[ns]/.test(e)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),s.style("display",e.empty()?"none":null);var l,p=ua.transition(n),d=ua.transition(a);u&&(l=Vi(u),d.attr("x",l[0]).attr("width",l[1]-l[0]),r(p)),c&&(l=Vi(c),d.attr("y",l[0]).attr("height",l[1]-l[0]),i(p)),t(p)})}function t(e){e.selectAll(".resize").attr("transform",function(e){return"translate("+p[+/e$/.test(e)]+","+d[+/^s/.test(e)]+")"})}function r(e){e.select(".extent").attr("x",p[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",p[1]-p[0])}function i(e){e.select(".extent").attr("y",d[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",d[1]-d[0])}function o(){function o(){32==ua.event.keyCode&&(k||(g=null,O[0]-=p[1],O[1]-=d[1],k=2),S())}function m(){32==ua.event.keyCode&&2==k&&(O[0]+=p[1],O[1]+=d[1],k=0,S())}function b(){var e=ua.mouse(T),n=!1;_&&(e[0]+=_[0],e[1]+=_[1]),k||(ua.event.altKey?(g||(g=[(p[0]+p[1])/2,(d[0]+d[1])/2]),O[0]=p[+(e[0]c?(i=r,r=c):i=c),m[0]!=r||m[1]!=i?(n?s=null:a=null,m[0]=r,m[1]=i,!0):void 0}function v(){b(),C.style("pointer-events","all").selectAll(".resize").style("display",e.empty()?"none":null),ua.select("body").style("cursor",null),N.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),A(),w({type:"brushend"})}var g,_,T=this,E=ua.select(ua.event.target),w=l.of(T,arguments),C=ua.select(T),P=E.datum(),M=!/^(n|s)$/.test(P)&&u,x=!/^(e|w)$/.test(P)&&c,k=E.classed("extent"),A=Q(T),O=ua.mouse(T),N=ua.select(n(T)).on("keydown.brush",o).on("keyup.brush",m);if(ua.event.changedTouches?N.on("touchmove.brush",b).on("touchend.brush",v):N.on("mousemove.brush",b).on("mouseup.brush",v),C.interrupt().selectAll("*").interrupt(),k)O[0]=p[0]-O[0],O[1]=d[0]-O[1];else if(P){var R=+/w$/.test(P),I=+/^n/.test(P);_=[p[1-R]-O[0],d[1-I]-O[1]],O[0]=p[R],O[1]=d[I]}else ua.event.altKey&&(g=O.slice());C.style("pointer-events","none").selectAll(".resize").style("display",null),ua.select("body").style("cursor",E.style("cursor")),w({type:"brushstart"}),b()}var a,s,l=M(e,"brushstart","brush","brushend"),u=null,c=null,p=[0,0],d=[0,0],f=!0,h=!0,m=$l[0];return e.event=function(e){e.each(function(){var e=l.of(this,arguments),t={x:p,y:d,i:a,j:s},n=this.__chart__||t;this.__chart__=t,Hl?ua.select(this).transition().each("start.brush",function(){a=n.i,s=n.j,p=n.x,d=n.y,e({type:"brushstart"})}).tween("brush:brush",function(){var n=Tr(p,t.x),r=Tr(d,t.y);return a=s=null,function(i){p=t.x=n(i),d=t.y=r(i),e({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=t.i,s=t.j,e({type:"brush",mode:"resize"}),e({type:"brushend"})}):(e({type:"brushstart"}),e({type:"brush",mode:"resize"}),e({type:"brushend"}))})},e.x=function(t){return arguments.length?(u=t,m=$l[!u<<1|!c],e):u},e.y=function(t){return arguments.length?(c=t,m=$l[!u<<1|!c],e):c},e.clamp=function(t){return arguments.length?(u&&c?(f=!!t[0],h=!!t[1]):u?f=!!t:c&&(h=!!t),e):u&&c?[f,h]:u?f:c?h:null},e.extent=function(t){var n,r,i,o,l;return arguments.length?(u&&(n=t[0],r=t[1],c&&(n=n[0],r=r[0]),a=[n,r],u.invert&&(n=u(n),r=u(r)),n>r&&(l=n,n=r,r=l),n==p[0]&&r==p[1]||(p=[n,r])),c&&(i=t[0],o=t[1],u&&(i=i[1],o=o[1]),s=[i,o],c.invert&&(i=c(i),o=c(o)),i>o&&(l=i,i=o,o=l),i==d[0]&&o==d[1]||(d=[i,o])),e):(u&&(a?(n=a[0],r=a[1]):(n=p[0],r=p[1],u.invert&&(n=u.invert(n),r=u.invert(r)),n>r&&(l=n,n=r,r=l))),c&&(s?(i=s[0],o=s[1]):(i=d[0],o=d[1],c.invert&&(i=c.invert(i),o=c.invert(o)),i>o&&(l=i,i=o,o=l))),u&&c?[[n,i],[r,o]]:u?[n,r]:c&&[i,o])},e.clear=function(){return e.empty()||(p=[0,0],d=[0,0],a=s=null),e},e.empty=function(){return!!u&&p[0]==p[1]||!!c&&d[0]==d[1]},ua.rebind(e,l,"on")};var Wl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},$l=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Ql=ms.format=Ts.timeFormat,Yl=Ql.utc,Zl=Yl("%Y-%m-%dT%H:%M:%S.%LZ");Ql.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?ia:Zl,ia.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},ia.toString=Zl.toString,ms.second=He(function(e){return new bs(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),ms.seconds=ms.second.range,ms.seconds.utc=ms.second.utc.range,ms.minute=He(function(e){return new bs(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),ms.minutes=ms.minute.range,ms.minutes.utc=ms.minute.utc.range,ms.hour=He(function(e){var t=e.getTimezoneOffset()/60; return new bs(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),ms.hours=ms.hour.range,ms.hours.utc=ms.hour.utc.range,ms.month=He(function(e){return e=ms.day(e),e.setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),ms.months=ms.month.range,ms.months.utc=ms.month.utc.range;var Jl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],eu=[[ms.second,1],[ms.second,5],[ms.second,15],[ms.second,30],[ms.minute,1],[ms.minute,5],[ms.minute,15],[ms.minute,30],[ms.hour,1],[ms.hour,3],[ms.hour,6],[ms.hour,12],[ms.day,1],[ms.day,2],[ms.week,1],[ms.month,1],[ms.month,3],[ms.year,1]],tu=Ql.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",At]]),nu={range:function(e,t,n){return ua.range(Math.ceil(e/n)*n,+t,n).map(aa)},floor:g,ceil:g};eu.year=ms.year,ms.scale=function(){return oa(ua.scale.linear(),eu,tu)};var ru=eu.map(function(e){return[e[0].utc,e[1]]}),iu=Yl.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",At]]);ru.year=ms.year.utc,ms.scale.utc=function(){return oa(ua.scale.linear(),ru,iu)},ua.text=xe(function(e){return e.responseText}),ua.json=function(e,t){return ke(e,"application/json",sa,t)},ua.html=function(e,t){return ke(e,"text/html",la,t)},ua.xml=xe(function(e){return e.responseXML}),"function"==typeof define&&define.amd?(this.d3=ua,define(ua)):"object"==typeof t&&t.exports?t.exports=ua:this.d3=ua}()},{}],125:[function(e,t,n){(function(r){function i(){return"undefined"!=typeof window&&window&&"undefined"!=typeof window.process&&"renderer"===window.process.type?!0:"undefined"!=typeof document&&document&&"WebkitAppearance"in document.documentElement.style||"undefined"!=typeof window&&window&&window.console&&(console.firebug||console.exception&&console.table)||"undefined"!=typeof navigator&&navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(t){}}function l(){try{return n.storage.debug}catch(e){}return"undefined"!=typeof r&&"env"in r?r.env.DEBUG:void 0}function u(){try{return window.localStorage}catch(e){}}n=t.exports=e("./debug"),n.log=a,n.formatArgs=o,n.save=s,n.load=l,n.useColors=i,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},n.enable(l())}).call(this,e("_process"))},{"./debug":126,_process:295}],126:[function(e,t,n){function r(e){var t,r=0;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return n.colors[Math.abs(r)%n.colors.length]}function i(e){function t(){if(t.enabled){var e=t,r=+new Date,i=r-(u||r);e.diff=i,e.prev=u,e.curr=r,u=r;for(var o=new Array(arguments.length),a=0;ai;i++)t[i]&&(e=t[i].replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))}function a(){n.enable("")}function s(e){var t,r;for(t=0,r=n.skips.length;r>t;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;r>t;t++)if(n.names[t].test(e))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}n=t.exports=i.debug=i["default"]=i,n.coerce=l,n.disable=a,n.enable=o,n.enabled=s,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var u},{ms:280}],127:[function(e,t,n){"use strict";function r(){var e=void 0===arguments[0]?document:arguments[0];try{return e.activeElement}catch(t){}}var i=e("./util/babelHelpers.js");n.__esModule=!0,n["default"]=r;var o=e("./ownerDocument");i.interopRequireDefault(o);t.exports=n["default"]},{"./ownerDocument":136,"./util/babelHelpers.js":149}],128:[function(e,t,n){"use strict";var r=e("./hasClass");t.exports=function(e,t){e.classList?e.classList.add(t):r(e)||(e.className=e.className+" "+t)}},{"./hasClass":129}],129:[function(e,t,n){"use strict";t.exports=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+e.className+" ").indexOf(" "+t+" ")}},{}],130:[function(e,t,n){"use strict";t.exports={addClass:e("./addClass"),removeClass:e("./removeClass"),hasClass:e("./hasClass")}},{"./addClass":128,"./hasClass":129,"./removeClass":131}],131:[function(e,t,n){"use strict";t.exports=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}},{}],132:[function(e,t,n){"use strict";var r=e("../query/contains"),i=e("../query/querySelectorAll");t.exports=function(e,t){return function(n){var o=n.currentTarget,a=n.target,s=i(o,e);s.some(function(e){return r(e,a)})&&t.call(this,n)}}},{"../query/contains":137,"../query/querySelectorAll":142}],133:[function(e,t,n){"use strict";var r=e("./on"),i=e("./off"),o=e("./filter");t.exports={on:r,off:i,filter:o}},{"./filter":132,"./off":134,"./on":135}],134:[function(e,t,n){"use strict";var r=e("../util/inDOM"),i=function(){};r&&(i=function(){return document.addEventListener?function(e,t,n,r){return e.removeEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.detachEvent("on"+t,n)}:void 0}()),t.exports=i},{"../util/inDOM":154}],135:[function(e,t,n){"use strict";var r=e("../util/inDOM"),i=function(){};r&&(i=function(){return document.addEventListener?function(e,t,n,r){return e.addEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.attachEvent("on"+t,n)}:void 0}()),t.exports=i},{"../util/inDOM":154}],136:[function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.__esModule=!0,n["default"]=r,t.exports=n["default"]},{}],137:[function(e,t,n){"use strict";var r=e("../util/inDOM"),i=function(){var e=r&&document.documentElement;return e&&e.contains?function(e,t){return e.contains(t)}:e&&e.compareDocumentPosition?function(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}:function(e,t){if(t)do if(t===e)return!0;while(t=t.parentNode);return!1}}();t.exports=i},{"../util/inDOM":154}],138:[function(e,t,n){"use strict";t.exports=function(e){return e===e.window?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}},{}],139:[function(e,t,n){"use strict";var r=e("./contains"),i=e("./isWindow"),o=e("../ownerDocument");t.exports=function(e){var t=o(e),n=i(t),a=t&&t.documentElement,s={top:0,left:0,height:0,width:0};if(t)return r(a,e)?(void 0!==e.getBoundingClientRect&&(s=e.getBoundingClientRect()),(s.width||s.height)&&(s={top:s.top+(n.pageYOffset||a.scrollTop)-(a.clientTop||0),left:s.left+(n.pageXOffset||a.scrollLeft)-(a.clientLeft||0),width:(null==s.width?e.offsetWidth:s.width)||0,height:(null==s.height?e.offsetHeight:s.height)||0}),s):s}},{"../ownerDocument":136,"./contains":137,"./isWindow":138}],140:[function(e,t,n){"use strict";function r(e){return e.nodeName&&e.nodeName.toLowerCase()}function i(e){for(var t=(0,s["default"])(e),n=e&&e.offsetParent;n&&"html"!==r(e)&&"static"===(0,u["default"])(n,"position");)n=n.offsetParent;return n||t.documentElement}var o=e("../util/babelHelpers.js");n.__esModule=!0,n["default"]=i;var a=e("../ownerDocument"),s=o.interopRequireDefault(a),l=e("../style"),u=o.interopRequireDefault(l);t.exports=n["default"]},{"../ownerDocument":136,"../style":146,"../util/babelHelpers.js":149}],141:[function(e,t,n){"use strict";function r(e){return e.nodeName&&e.nodeName.toLowerCase()}function i(e,t){var n,i={top:0,left:0};return"fixed"===(0,m["default"])(e,"position")?n=e.getBoundingClientRect():(t=t||(0,u["default"])(e),n=(0,s["default"])(e),"html"!==r(t)&&(i=(0,s["default"])(t)),i.top+=parseInt((0,m["default"])(t,"borderTopWidth"),10)-(0,p["default"])(t)||0,i.left+=parseInt((0,m["default"])(t,"borderLeftWidth"),10)-(0,f["default"])(t)||0),o._extends({},n,{top:n.top-i.top-(parseInt((0,m["default"])(e,"marginTop"),10)||0),left:n.left-i.left-(parseInt((0,m["default"])(e,"marginLeft"),10)||0)})}var o=e("../util/babelHelpers.js");n.__esModule=!0,n["default"]=i;var a=e("./offset"),s=o.interopRequireDefault(a),l=e("./offsetParent"),u=o.interopRequireDefault(l),c=e("./scrollTop"),p=o.interopRequireDefault(c),d=e("./scrollLeft"),f=o.interopRequireDefault(d),h=e("../style"),m=o.interopRequireDefault(h);t.exports=n["default"]},{"../style":146,"../util/babelHelpers.js":149,"./offset":139,"./offsetParent":140,"./scrollLeft":143,"./scrollTop":144}],142:[function(e,t,n){"use strict";var r=/^[\w-]*$/,i=Function.prototype.bind.call(Function.prototype.call,[].slice);t.exports=function(e,t){var n,o="#"===t[0],a="."===t[0],s=o||a?t.slice(1):t,l=r.test(s);return l?o?(e=e.getElementById?e:document,(n=e.getElementById(s))?[n]:[]):i(e.getElementsByClassName&&a?e.getElementsByClassName(s):e.getElementsByTagName(t)):i(e.querySelectorAll(t))}},{}],143:[function(e,t,n){"use strict";var r=e("./isWindow");t.exports=function(e,t){var n=r(e);return void 0===t?n?"pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft:e.scrollLeft:void(n?n.scrollTo(t,"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop):e.scrollLeft=t)}},{"./isWindow":138}],144:[function(e,t,n){"use strict";var r=e("./isWindow");t.exports=function(e,t){var n=r(e);return void 0===t?n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop:void(n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t)}},{"./isWindow":138}],145:[function(e,t,n){"use strict";var r=e("../util/babelHelpers.js"),i=e("../util/camelizeStyle"),o=r.interopRequireDefault(i),a=/^(top|right|bottom|left)$/,s=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;t.exports=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;t=(0,o["default"])(t),"float"==t&&(t="styleFloat");var r=e.currentStyle[t]||null;if(null==r&&n&&n[t]&&(r=n[t]),s.test(r)&&!a.test(t)){var i=n.left,l=e.runtimeStyle,u=l&&l.left;u&&(l.left=e.currentStyle.left),n.left="fontSize"===t?"1em":r,r=n.pixelLeft+"px",n.left=i,u&&(l.left=u)}return r}}}},{"../util/babelHelpers.js":149,"../util/camelizeStyle":151}],146:[function(e,t,n){"use strict";var r=e("../util/camelizeStyle"),i=e("../util/hyphenateStyle"),o=e("./getComputedStyle"),a=e("./removeStyle"),s=Object.prototype.hasOwnProperty;t.exports=function(e,t,n){var l="",u=t;if("string"==typeof t){if(void 0===n)return e.style[r(t)]||o(e).getPropertyValue(i(t));(u={})[t]=n}for(var c in u)s.call(u,c)&&(u[c]||0===u[c]?l+=i(c)+":"+u[c]+";":a(e,i(c)));e.style.cssText+=";"+l}},{"../util/camelizeStyle":151,"../util/hyphenateStyle":153,"./getComputedStyle":145,"./removeStyle":147}],147:[function(e,t,n){"use strict";t.exports=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)}},{}],148:[function(e,t,n){"use strict";function r(){var e,t="",n={O:"otransitionend",Moz:"transitionend",Webkit:"webkitTransitionEnd",ms:"MSTransitionEnd"},r=document.createElement("div");for(var i in n)if(u.call(n,i)&&void 0!==r.style[i+"TransitionProperty"]){t="-"+i.toLowerCase()+"-",e=n[i];break}return e||void 0===r.style.transitionProperty||(e="transitionend"),{end:e,prefix:t}}var i,o,a,s,l=e("../util/inDOM"),u=Object.prototype.hasOwnProperty,c="transform",p={};l&&(p=r(),c=p.prefix+c,a=p.prefix+"transition-property",o=p.prefix+"transition-duration",s=p.prefix+"transition-delay",i=p.prefix+"transition-timing-function"),t.exports={transform:c,end:p.end,property:a,timing:i,delay:s,duration:o}},{"../util/inDOM":154}],149:[function(e,t,n){!function(e,t){"function"==typeof define&&define.amd?define(["exports"],t):t("object"==typeof n?n:e.babelHelpers={})}(this,function(e){var t=e;t.interopRequireDefault=function(e){return e&&e.__esModule?e:{"default":e}},t._extends=Object.assign||function(e){for(var t=1;te||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,o,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],s(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),l=1;r>l;l++)o[l-1]=arguments[l];n.apply(this,o)}else if(a(n)){for(r=arguments.length,o=new Array(r-1),l=1;r>l;l++)o[l-1]=arguments[l];for(u=n.slice(),r=u.length,l=0;r>l;l++)u[l].apply(this,o)}return!0},r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned){var n;n=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners,n&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())}return this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,o,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=o;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(0>r)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.listenerCount=function(e,t){var n;return n=e._events&&e._events[t]?i(e._events[t])?1:e._events[t].length:0}},{}],157:[function(e,t,n){var r={EventEmitter:e("./lib/BaseEventEmitter"),EmitterSubscription:e("./lib/EmitterSubscription")};t.exports=r},{"./lib/BaseEventEmitter":158,"./lib/EmitterSubscription":159}],158:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=e("./EmitterSubscription"),o=e("./EventSubscriptionVendor"),a=e("fbjs/lib/emptyFunction"),s=e("fbjs/lib/invariant"),l=function(){function e(){r(this,e),this._subscriber=new o,this._currentSubscription=null}return e.prototype.addListener=function(e,t,n){return this._subscriber.addSubscription(e,new i(this._subscriber,t,n))},e.prototype.once=function(e,t,n){var r=this;return this.addListener(e,function(){r.removeCurrentListener(),t.apply(n,arguments)})},e.prototype.removeAllListeners=function(e){this._subscriber.removeAllSubscriptions(e)},e.prototype.removeCurrentListener=function(){this._currentSubscription?void 0:"production"!==n.env.NODE_ENV?s(!1,"Not in an emitting cycle; there is no current subscription"):s(!1),this._subscriber.removeSubscription(this._currentSubscription)},e.prototype.listeners=function(e){var t=this._subscriber.getSubscriptionsForType(e);return t?t.filter(a.thatReturnsTrue).map(function(e){return e.listener}):[]},e.prototype.emit=function(e){var t=this._subscriber.getSubscriptionsForType(e);if(t){for(var n=Object.keys(t),r=0;r=e.length)break;i=e[r++]}else{if(r=e.next(),r.done)break;i=r.value}var o=i;o.remove()}this._fluxContainerSubscriptions=[]},o}(e),c=n.pure?a(o):o,f=e.displayName||e.name;return c.displayName="FluxContainer("+f+")",c}function a(e){var t=function(e){function t(){r(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!p(this.props,e)||!p(this.state,t)},t}(e);return t}function s(e){e.getStores?void 0:"production"!==n.env.NODE_ENV?c(!1,"Components that use FluxContainer must implement `static getStores()`"):c(!1),e.calculateState?void 0:"production"!==n.env.NODE_ENV?c(!1,"Components that use FluxContainer must implement `static calculateState()`"):c(!1)}var l=Object.assign||function(e){for(var t=1;t=t.length)break;s=t[a++]}else{if(a=t.next(),a.done)break;s=a.value}var l=s,u=l[0];r.has(u)&&n.has(u)||e["delete"](u)}for(var c=r,p=Array.isArray(c),d=0,c=p?c:c[Symbol.iterator]();;){var f;if(p){if(d>=c.length)break;f=c[d++]}else{if(d=c.next(),d.done)break;f=d.value}var h=f;n.has(h)&&e.set(h,n.at(h))}})},t}(o);t.exports=l}).call(this,e("_process"))},{"./FluxReduceStore":172,_process:295,"fbjs/lib/invariant":164,immutable:179}],171:[function(e,t,n){(function(n){"use strict";function r(e){return{getInitialState:function(){return i(this),this.constructor.calculateState(null)},componentDidMount:function(){var t=this,n=!1,r=function(){n=!0};this._fluxMixinSubscriptions=e.map(function(e){return e.addListener(r)});var i=function(){n&&t.setState(function(e){return t.constructor.calculateState(t.state)}),n=!1};this._fluxMixinStoreGroup=new o(e,i)},componentWillUnmount:function(){this._fluxMixinStoreGroup.release();for(var e=this._fluxMixinSubscriptions,t=Array.isArray(e),n=0,e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var i=r;i.remove()}this._fluxMixinSubscriptions=[]}}}function i(e){e.constructor.calculateState?void 0:"production"!==n.env.NODE_ENV?a(!1,"Components that use FluxMixinLegacy must implement `calculateState()` on the statics object"):a(!1)}var o=e("./FluxStoreGroup"),a=e("fbjs/lib/invariant");t.exports=r}).call(this,e("_process"))},{"./FluxStoreGroup":174,_process:295,"fbjs/lib/invariant":164}],172:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=e("./FluxStore"),a=e("./abstractMethod"),s=e("fbjs/lib/invariant"),l=function(e){function t(n){r(this,t),e.call(this,n),this._state=this.getInitialState()}return i(t,e),t.prototype.getState=function(){return this._state},t.prototype.getInitialState=function(){return a("FluxReduceStore","getInitialState")},t.prototype.reduce=function(e,t){return a("FluxReduceStore","reduce")},t.prototype.areEqual=function(e,t){return e===t},t.prototype.__invokeOnDispatch=function(e){this.__changed=!1;var t=this._state,r=this.reduce(t,e);void 0===r?"production"!==n.env.NODE_ENV?s(!1,"%s returned undefined from reduce(...), did you forget to return state in the default case? (use null if this was intentional)",this.constructor.name):s(!1):void 0,this.areEqual(t,r)||(this._state=r,this.__emitChange()),this.__changed&&this.__emitter.emit(this.__changeEvent)},t}(o);t.exports=l}).call(this,e("_process"))},{"./FluxStore":173,"./abstractMethod":175,_process:295,"fbjs/lib/invariant":164}],173:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=e("fbemitter"),o=i.EventEmitter,a=e("fbjs/lib/invariant"),s=function(){function e(t){var n=this;r(this,e),this.__className=this.constructor.name,this.__changed=!1,this.__changeEvent="change",this.__dispatcher=t,this.__emitter=new o,this._dispatchToken=t.register(function(e){n.__invokeOnDispatch(e)})}return e.prototype.addListener=function(e){return this.__emitter.addListener(this.__changeEvent,e)},e.prototype.getDispatcher=function(){return this.__dispatcher},e.prototype.getDispatchToken=function(){return this._dispatchToken},e.prototype.hasChanged=function(){return this.__dispatcher.isDispatching()?void 0:"production"!==n.env.NODE_ENV?a(!1,"%s.hasChanged(): Must be invoked while dispatching.",this.__className):a(!1),this.__changed},e.prototype.__emitChange=function(){this.__dispatcher.isDispatching()?void 0:"production"!==n.env.NODE_ENV?a(!1,"%s.__emitChange(): Must be invoked while dispatching.",this.__className):a(!1),this.__changed=!0},e.prototype.__invokeOnDispatch=function(e){this.__changed=!1,this.__onDispatch(e),this.__changed&&this.__emitter.emit(this.__changeEvent)},e.prototype.__onDispatch=function(e){"production"!==n.env.NODE_ENV?a(!1,"%s has not overridden FluxStore.__onDispatch(), which is required",this.__className):a(!1)},e}();t.exports=s}).call(this,e("_process"))},{_process:295,fbemitter:157,"fbjs/lib/invariant":164}],174:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){e&&e.length?void 0:"production"!==n.env.NODE_ENV?o(!1,"Must provide at least one store to FluxStoreGroup"):o(!1);var t=e[0].getDispatcher();if("production"!==n.env.NODE_ENV)for(var r=e,i=Array.isArray(r),a=0,r=i?r:r[Symbol.iterator]();;){var s;if(i){if(a>=r.length)break;s=r[a++]}else{if(a=r.next(),a.done)break;s=a.value}var l=s;l.getDispatcher()!==t?"production"!==n.env.NODE_ENV?o(!1,"All stores in a FluxStoreGroup must use the same dispatcher"):o(!1):void 0}return t}var o=e("fbjs/lib/invariant"),a=function(){function e(t,n){var o=this;r(this,e),this._dispatcher=i(t);var a=t.map(function(e){return e.getDispatchToken()});this._dispatchToken=this._dispatcher.register(function(e){o._dispatcher.waitFor(a),n()})}return e.prototype.release=function(){this._dispatcher.unregister(this._dispatchToken)},e}();t.exports=a}).call(this,e("_process"))},{_process:295,"fbjs/lib/invariant":164}],175:[function(e,t,n){(function(n){"use strict";function r(e,t){"production"!==n.env.NODE_ENV?i(!1,"Subclasses of %s must override %s() with their own implementation.",e,t):i(!1)}var i=e("fbjs/lib/invariant");t.exports=r}).call(this,e("_process"))},{_process:295,"fbjs/lib/invariant":164}],176:[function(e,t,n){t.exports.Container=e("./lib/FluxContainer"),t.exports.MapStore=e("./lib/FluxMapStore"),t.exports.Mixin=e("./lib/FluxMixinLegacy"),t.exports.ReduceStore=e("./lib/FluxReduceStore"),t.exports.Store=e("./lib/FluxStore")},{"./lib/FluxContainer":169,"./lib/FluxMapStore":170,"./lib/FluxMixinLegacy":171,"./lib/FluxReduceStore":172,"./lib/FluxStore":173}],177:[function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},o="function"==typeof Object.getOwnPropertySymbols;t.exports=function(e,t,n){if("string"!=typeof t){var a=Object.getOwnPropertyNames(t);o&&(a=a.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s1&&(n=n.charAt(0)):n=" ",r=void 0===r?"left":"right","right"===r)for(;e.length4&&21>e?"th":{1:"st",2:"nd",3:"rd"}[e%10]||"th"},w:function(){return n.getDay()},z:function(){return(c.L()?a[c.n()]:o[c.n()])+c.j()-1},W:function(){var e=c.z()-c.N()+1.5;return i.pad(1+Math.floor(Math.abs(e)/7)+(e%7>3.5?1:0),2,"0")},F:function(){return u[n.getMonth()]},m:function(){return i.pad(c.n(),2,"0")},M:function(){return c.F().slice(0,3)},n:function(){return n.getMonth()+1},t:function(){return new Date(c.Y(),c.n(),0).getDate()},L:function(){return 1===new Date(c.Y(),1,29).getMonth()?1:0},o:function(){var e=c.n(),t=c.W();return c.Y()+(12===e&&9>t?-1:1===e&&t>9)},Y:function(){return n.getFullYear()},y:function(){return String(c.Y()).slice(-2)},a:function(){return n.getHours()>11?"pm":"am"},A:function(){return c.a().toUpperCase()},B:function(){var e=n.getTime()/1e3,t=e%86400+3600;0>t&&(t+=86400);var r=t/86.4%1e3;return 0>e?Math.ceil(r):Math.floor(r)},g:function(){return c.G()%12||12},G:function(){return n.getHours()},h:function(){return i.pad(c.g(),2,"0")},H:function(){return i.pad(c.G(),2,"0")},i:function(){return i.pad(n.getMinutes(),2,"0")},s:function(){return i.pad(n.getSeconds(),2,"0")},u:function(){return i.pad(1e3*n.getMilliseconds(),6,"0")},O:function(){var e=n.getTimezoneOffset(),t=Math.abs(e);return(e>0?"-":"+")+i.pad(100*Math.floor(t/60)+t%60,4,"0")},P:function(){var e=c.O();return e.substr(0,3)+":"+e.substr(3,2)},Z:function(){return 60*-n.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(r,s)},r:function(){return"D, d M Y H:i:s O".replace(r,s)},U:function(){return n.getTime()/1e3||0}};return e.replace(r,s)},i.numberFormat=function(e,t,n,r){t=isNaN(t)?2:Math.abs(t),n=void 0===n?".":n,r=void 0===r?",":r;var i=0>e?"-":"";e=Math.abs(+e||0);var o=parseInt(e.toFixed(t),10)+"",a=o.length>3?o.length%3:0;return i+(a?o.substr(0,a)+r:"")+o.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-o).toFixed(t).slice(2):"")},i.naturalDay=function(e,t){e=void 0===e?i.time():e,t=void 0===t?"Y-m-d":t;var n=86400,r=new Date,o=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime()/1e3;return o>e&&e>=o-n?"yesterday":e>=o&&o+n>e?"today":e>=o+n&&o+2*n>e?"tomorrow":i.date(t,e)},i.relativeTime=function(e){e=void 0===e?i.time():e;var t=i.time(),n=t-e;if(2>n&&n>-2)return(n>=0?"just ":"")+"now";if(60>n&&n>-60)return n>=0?Math.floor(n)+" seconds ago":"in "+Math.floor(-n)+" seconds";if(120>n&&n>-120)return n>=0?"about a minute ago":"in about a minute";if(3600>n&&n>-3600)return n>=0?Math.floor(n/60)+" minutes ago":"in "+Math.floor(-n/60)+" minutes";if(7200>n&&n>-7200)return n>=0?"about an hour ago":"in about an hour";if(86400>n&&n>-86400)return n>=0?Math.floor(n/3600)+" hours ago":"in "+Math.floor(-n/3600)+" hours";var r=172800;if(r>n&&n>-r)return n>=0?"1 day ago":"in 1 day";var o=2505600;if(o>n&&n>-o)return n>=0?Math.floor(n/86400)+" days ago":"in "+Math.floor(-n/86400)+" days";var a=5184e3;if(a>n&&n>-a)return n>=0?"about a month ago":"in about a month";var s=parseInt(i.date("Y",t),10),l=parseInt(i.date("Y",e),10),u=12*s+parseInt(i.date("n",t),10),c=12*l+parseInt(i.date("n",e),10),p=u-c;if(12>p&&p>-12)return p>=0?p+" months ago":"in "+-p+" months";var d=s-l;return 2>d&&d>-2?d>=0?"a year ago":"in a year":d>=0?d+" years ago":"in "+-d+" years"},i.ordinal=function(e){e=parseInt(e,10),e=isNaN(e)?0:e;var t=0>e?"-":"";e=Math.abs(e);var n=e%100;return t+e+(n>4&&21>n?"th":{1:"st",2:"nd",3:"rd"}[e%10]||"th")},i.filesize=function(e,t,n,r,o,a){return t=void 0===t?1024:t,0>=e?"0 bytes":(t>e&&void 0===n&&(n=0),void 0===a&&(a=" "),i.intword(e,["bytes","KB","MB","GB","TB","PB"],t,n,r,o,a))},i.intword=function(e,t,n,r,o,a,s){var l,u;t=t||["","K","M","B","T"],u=t.length-1,n=n||1e3,r=isNaN(r)?2:Math.abs(r),o=o||".",a=a||",",s=s||"";for(var c=0;c

"),e=e.replace(/\n/g,"
"),"

"+e+"

"},i.nl2br=function(e){return e.replace(/(\r\n|\n|\r)/g,"
")},i.truncatechars=function(e,t){return e.length<=t?e:e.substr(0,t)+"…"},i.truncatewords=function(e,t){var n=e.split(" ");return n.lengthi;i++)r[i]=e[i+t];return r}function h(e){return void 0===e.size&&(e.size=e.__iterate(b)),e.size}function m(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return 0>t?h(e)+t:t}function b(){return!0}function y(e,t,n){return(0===e||void 0!==n&&-n>=e)&&(void 0===t||void 0!==n&&t>=n)}function v(e,t){return _(e,t,0)}function g(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:0>e?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function T(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function w(){return{value:void 0,done:!0}}function C(e){return!!M(e)}function S(e){return e&&"function"==typeof e.next}function P(e){var t=M(e);return t&&t.call(e)}function M(e){var t=e&&(wn&&e[wn]||e[Cn]);return"function"==typeof t?t:void 0}function x(e){return e&&"number"==typeof e.length}function k(e){return null===e||void 0===e?F():o(e)?e.toSeq():H(e)}function A(e){return null===e||void 0===e?F().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():U(e)}function O(e){return null===e||void 0===e?F():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():B(e)}function N(e){return(null===e||void 0===e?F():o(e)?a(e)?e.entrySeq():e:B(e)).toSetSeq()}function R(e){this._array=e,this.size=e.length}function I(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function D(e){this._iterable=e,this.size=e.length||e.size}function L(e){this._iterator=e,this._iteratorCache=[]}function j(e){return!(!e||!e[Pn])}function F(){return Mn||(Mn=new R([]))}function U(e){var t=Array.isArray(e)?new R(e).fromEntrySeq():S(e)?new L(e).fromEntrySeq():C(e)?new D(e).fromEntrySeq():"object"==typeof e?new I(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function B(e){var t=G(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function H(e){var t=G(e)||"object"==typeof e&&new I(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function G(e){return x(e)?new R(e):S(e)?new L(e):C(e)?new D(e):void 0}function K(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;o>=a;a++){var s=i[n?o-a:a];if(t(s[1],r?s[0]:a,e)===!1)return a+1}return a}return e.__iterateUncached(t,n)}function q(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new T(function(){var e=i[n?o-a:a];return a++>o?w():E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function V(e,t){return t?z(t,e,"",{"":e}):X(e)}function z(e,t,n,r){return Array.isArray(t)?e.call(r,n,O(t).map(function(n,r){return z(e,n,r,t)})):W(t)?e.call(r,n,A(t).map(function(n,r){return z(e,n,r,t)})):t}function X(e){return Array.isArray(e)?O(e).map(X).toList():W(e)?A(e).map(X).toMap():e}function W(e){return e&&(e.constructor===Object||void 0===e.constructor)}function $(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Q(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&$(i[1],e)&&(n||$(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var c=e;e=t,t=c}var p=!0,d=t.__iterate(function(t,r){return(n?e.has(t):i?$(t,e.get(r,yn)):$(e.get(r,yn),t))?void 0:(p=!1,!1)});return p&&e.size===d}function Y(e,t){if(!(this instanceof Y))return new Y(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(xn)return xn;xn=this}}function Z(e,t){if(!e)throw new Error(t)}function J(e,t,n){if(!(this instanceof J))return new J(e,t,n);if(Z(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),e>t&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(kn)return kn;kn=this}}function ee(){throw TypeError("Abstract")}function te(){}function ne(){}function re(){}function ie(e){return e>>>1&1073741824|3221225471&e}function oe(e){if(e===!1||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(e=e.valueOf(),e===!1||null===e||void 0===e))return 0;if(e===!0)return 1;var t=typeof e;if("number"===t){if(e!==e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return ie(n)}if("string"===t)return e.length>jn?ae(e):se(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return le(e);if("function"==typeof e.toString)return se(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Bn[e];return void 0===t&&(t=se(e),Un===Fn&&(Un=0,Bn={}),Un++,Bn[e]=t),t}function se(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){Z(e!==1/0,"Cannot perform this action with an infinite size.")}function pe(e){return null===e||void 0===e?Ee():de(e)&&!u(e)?e:Ee().withMutations(function(t){var r=n(e);ce(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function de(e){return!(!e||!e[Hn])}function fe(e,t){this.ownerID=e,this.entries=t}function he(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function me(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function be(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ve(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&_e(e._root)}function ge(e,t){return E(e,t[0],t[1])}function _e(e,t){return{node:e,index:0,__prev:t}}function Te(e,t,n,r){var i=Object.create(Gn);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Ee(){return Kn||(Kn=Te(0))}function we(e,t,n){var r,i;if(e._root){var o=c(vn),a=c(gn);if(r=Ce(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===yn?-1:1:0)}else{if(n===yn)return e;i=1,r=new fe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Te(i,r):Ee()}function Ce(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===yn?e:(p(s),p(a),new ye(t,r,[i,o]))}function Se(e){return e.constructor===ye||e.constructor===be}function Pe(e,t,n,r,i){if(e.keyHash===r)return new be(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&bn,s=(0===n?r:r>>>n)&bn,l=a===s?[Pe(e,t,n+hn,r,i)]:(o=new ye(t,r,i),s>a?[e,o]:[o,e]);return new he(t,1<s;s++,l<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=l,a[o++]=c)}return new he(e,i,a)}function ke(e,t,n,r,i){for(var o=0,a=new Array(mn),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new me(e,o+1,a)}function Ae(e,t,r){for(var i=[],a=0;a>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function Le(e,t,n,r){var i=r?e:f(e);return i[t]=n,i}function je(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;i>s;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}function Fe(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;r>a;a++)a===t&&(o=1),i[a]=e[a+o];return i}function Ue(e){var t=qe();if(null===e||void 0===e)return t;if(Be(e))return e;var n=r(e),i=n.size;return 0===i?t:(ce(i),i>0&&mn>i?Ke(0,i,hn,null,new He(n.toArray())):t.withMutations(function(e){e.setSize(i),n.forEach(function(t,n){return e.set(n,t)})}))}function Be(e){return!(!e||!e[Xn])}function He(e,t){this.array=e,this.ownerID=t}function Ge(e,t){function n(e,t,n){return 0===t?r(e,n):i(e,t,n)}function r(e,n){var r=n===s?l&&l.array:e&&e.array,i=n>o?0:o-n,u=a-n;return u>mn&&(u=mn),function(){if(i===u)return Qn;var e=t?--u:i++;return r&&r[e]}}function i(e,r,i){var s,l=e&&e.array,u=i>o?0:o-i>>r,c=(a-i>>r)+1;return c>mn&&(c=mn),function(){for(;;){if(s){var e=s();if(e!==Qn)return e;s=null}if(u===c)return Qn;var o=t?--c:u++;s=n(l&&l[o],r-hn,i+(o<=e.size||0>t)return e.withMutations(function(e){0>t?$e(e,t).set(0,n):$e(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=c(gn);return t>=Ye(e._capacity)?r=ze(r,e.__ownerID,0,t,n,o):i=ze(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ke(e._origin,e._capacity,e._level,i,r):e}function ze(e,t,n,r,i,o){var a=r>>>n&bn,s=e&&a0){var u=e&&e.array[a],c=ze(u,t,n-hn,r,i,o);return c===u?e:(l=Xe(e,t),l.array[a]=c,l)}return s&&e.array[a]===i?e:(p(o),l=Xe(e,t),void 0===i&&a===l.array.length-1?l.array.pop():l.array[a]=i,l)}function Xe(e,t){return t&&e&&t===e.ownerID?e:new He(e?e.array.slice():[],t)}function We(e,t){if(t>=Ye(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&bn],r-=hn;return n}}function $e(e,t,n){void 0!==t&&(t=0|t),void 0!==n&&(n=0|n);var r=e.__ownerID||new d,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:0>n?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;0>a+c;)u=new He(u&&u.array.length?[void 0,u]:[],r),l+=hn,c+=1<=1<f?We(e,s-1):f>p?new He([],r):h;if(h&&f>p&&o>a&&h.array.length){u=Xe(u,r);for(var b=u,y=l;y>hn;y-=hn){var v=p>>>y&bn;b=b.array[v]=Xe(b.array[v],r)}b.array[p>>>hn&bn]=h}if(o>s&&(m=m&&m.removeAfter(r,0,s)),a>=f)a-=f,s-=f,l=hn,u=null,m=m&&m.removeBefore(r,0,a);else if(a>i||p>f){for(c=0;u;){var g=a>>>l&bn;if(g!==f>>>l&bn)break;g&&(c+=(1<i&&(u=u.removeBefore(r,l,a-c)),u&&p>f&&(u=u.removeAfter(r,l,f-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=u,e._tail=m,e.__hash=void 0,e.__altered=!0,e):Ke(a,s,l,u,m)}function Qe(e,t,n){for(var i=[],a=0,s=0;sa&&(a=u.size),o(l)||(u=u.map(function(e){return V(e)})),i.push(u)}return a>e.size&&(e=e.setSize(a)),Re(e,t,i)}function Ye(e){return mn>e?0:e-1>>>hn<=mn&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):et(r,i)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function st(e){var t=xt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=kt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===En){var r=e.__iterator(t,n);return new T(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Tn?_n:Tn,n)},t}function lt(e,t,n){var r=xt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,yn);return o===yn?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return r(t.call(n,e,i,a),i,o)!==!1},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(En,i);return new T(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return E(r,s,t.call(n,a[1],s,e),i)})},r}function ut(e,t){var n=xt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=st(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=kt,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ct(e,t,n,r){var i=xt(e);return r&&(i.has=function(r){var i=e.get(r,yn);return i!==yn&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,yn);return o!==yn&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,l){return t.call(n,e,o,l)?(s++,i(e,r?o:s-1,a)):void 0},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(En,o),s=0;return new T(function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return E(i,r?u:s++,c,o)}})},i}function pt(e,t,n){var r=pe().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}function dt(e,t,n){var r=a(e),i=(u(e)?Ze():pe()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return e=e||[],e.push(r?[a,o]:o),e})});var o=Mt(e);return i.map(function(t){return Ct(e,o(t))})}function ft(e,t,n,r){var i=e.size;if(void 0!==t&&(t=0|t),void 0!==n&&(n=n===1/0?i:0|n),y(t,n,i))return e;var o=v(t,i),a=g(n,i);if(o!==o||a!==a)return ft(e.toSeq().cacheResult(),t,n,r);var s,l=a-o;l===l&&(s=0>l?0:l);var u=xt(e);return u.size=0===s?s:e.size&&s||void 0,!r&&j(e)&&s>=0&&(u.get=function(t,n){return t=m(this,t),t>=0&&s>t?e.get(t+o,n):n}),u.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,u=0;return e.__iterate(function(e,n){return l&&(l=a++s)return w();var e=i.next();return r||t===Tn?e:t===_n?E(t,l-1,void 0,e):E(t,l-1,e.value[1],e)})},u}function ht(e,t,n){var r=xt(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(En,i),s=!0;return new T(function(){if(!s)return w();var e=a.next();if(e.done)return e;var i=e.value,l=i[0],u=i[1];return t.call(n,u,l,o)?r===En?e:E(r,l,u,e):(s=!1,w())})},r}function mt(e,t,n,r){var i=xt(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate(function(e,o,u){return s&&(s=t.call(n,e,o,u))?void 0:(l++,i(e,r?o:l-1,a))}),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(En,o),l=!0,u=0;return new T(function(){var e,o,c;do{if(e=s.next(),e.done)return r||i===Tn?e:i===_n?E(i,u++,void 0,e):E(i,u++,e.value[1],e);var p=e.value;o=p[0],c=p[1],l&&(l=t.call(n,c,o,a))}while(l);return i===En?e:E(i,o,c,e)})},i}function bt(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?U(e):B(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var l=i[0];if(l===e||r&&a(l)||s(e)&&s(l))return l}var u=new R(i);return r?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),u=u.flatten(!0),u.size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),u}function yt(e,t,n){var r=xt(e);return r.__iterateUncached=function(r,i){ function a(e,u){var c=this;e.__iterate(function(e,i){return(!t||t>u)&&o(e)?a(e,u+1):r(e,n?i:s++,c)===!1&&(l=!0),!l},i)}var s=0,l=!1;return a(e,0),s},r.__iteratorUncached=function(r,i){var a=e.__iterator(r,i),s=[],l=0;return new T(function(){for(;a;){var e=a.next();if(e.done===!1){var u=e.value;if(r===En&&(u=u[1]),t&&!(s.length0}function wt(e,n,r){var i=xt(e);return i.size=new R(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(Tn,t),i=0;!(n=r.next()).done&&e(n.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),P(i?e.reverse():e)}),a=0,s=!1;return new T(function(){var t;return s||(t=o.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?w():E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function Ct(e,t){return j(e)?t:e.constructor(t)}function St(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Pt(e){return ce(e.size),h(e)}function Mt(e){return a(e)?n:s(e)?r:i}function xt(e){return Object.create((a(e)?A:s(e)?O:N).prototype)}function kt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):k.prototype.cacheResult.call(this)}function At(e,t){return e>t?1:t>e?-1:0}function Ot(e){var n=P(e);if(!n){if(!x(e))throw new TypeError("Expected iterable or array-like: "+e);n=P(t(e))}return n}function Nt(e,t){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(e);Dt(i,a),i.size=a.length,i._name=t,i._keys=a,i._defaultValues=e}this._map=pe(o)},i=r.prototype=Object.create(Zn);return i.constructor=r,r}function Rt(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function It(e){return e._name||e.constructor.name||"Record"}function Dt(e,t){try{t.forEach(Lt.bind(void 0,e))}catch(n){}}function Lt(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Z(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function jt(e){return null===e||void 0===e?Ht():Ft(e)&&!u(e)?e:Ht().withMutations(function(t){var n=i(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Ft(e){return!(!e||!e[Jn])}function Ut(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Bt(e,t){var n=Object.create(er);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ht(){return tr||(tr=Bt(Ee()))}function Gt(e){return null===e||void 0===e?Vt():Kt(e)?e:Vt().withMutations(function(t){var n=i(e);ce(n.size),n.forEach(function(e){return t.add(e)})})}function Kt(e){return Ft(e)&&u(e)}function qt(e,t){var n=Object.create(nr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vt(){return rr||(rr=qt(tt()))}function zt(e){return null===e||void 0===e?$t():Xt(e)?e:$t().unshiftAll(e)}function Xt(e){return!(!e||!e[ir])}function Wt(e,t,n,r){var i=Object.create(or);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function $t(){return ar||(ar=Wt(0))}function Qt(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Yt(e,t){return t}function Zt(e,t){return[t,e]}function Jt(e){return function(){return!e.apply(this,arguments)}}function en(e){return function(){return-e.apply(this,arguments)}}function tn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function nn(){return f(arguments)}function rn(e,t){return t>e?1:e>t?-1:0}function on(e){if(e.size===1/0)return 0;var t=u(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+sn(oe(e),oe(t))|0}:function(e,t){r=r+sn(oe(e),oe(t))|0}:t?function(e){r=31*r+oe(e)|0}:function(e){r=r+oe(e)|0});return an(i,r)}function an(e,t){return t=On(t,3432918353),t=On(t<<15|t>>>-15,461845907),t=On(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=On(t^t>>>16,2246822507),t=On(t^t>>>13,3266489909),t=ie(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var ln=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=l,t.isOrdered=u,t.Keyed=n,t.Indexed=r,t.Set=i;var un="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",pn="@@__IMMUTABLE_INDEXED__@@",dn="@@__IMMUTABLE_ORDERED__@@",fn="delete",hn=5,mn=1<=i;i++)if(e(n[t?r-i:i],i,this)===!1)return i+1;return i},R.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new T(function(){return i>r?w():E(e,i,n[t?r-i++:i++])})},e(I,A),I.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},I.prototype.has=function(e){return this._object.hasOwnProperty(e)},I.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;i>=o;o++){var a=r[t?i-o:o];if(e(n[a],a,this)===!1)return o+1}return o},I.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new T(function(){var a=r[t?i-o:o];return o++>i?w():E(e,a,n[a])})},I.prototype[dn]=!0,e(D,O),D.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=P(n),i=0;if(S(r))for(var o;!(o=r.next()).done&&e(o.value,i++,this)!==!1;);return i},D.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=P(n);if(!S(r))return new T(w);var i=0;return new T(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(L,O),L.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})};var Mn;e(Y,O),Y.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Y.prototype.get=function(e,t){return this.has(e)?this._value:t},Y.prototype.includes=function(e){return $(this._value,e)},Y.prototype.slice=function(e,t){var n=this.size;return y(e,t,n)?this:new Y(this._value,g(t,n)-v(e,n))},Y.prototype.reverse=function(){return this},Y.prototype.indexOf=function(e){return $(this._value,e)?0:-1},Y.prototype.lastIndexOf=function(e){return $(this._value,e)?this.size:-1},Y.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=t?new J(0,0):new J(this.get(e,this._end),this.get(t,this._end),this._step))},J.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n=o;o++){if(e(i,o,this)===!1)return o+1;i+=t?-r:r}return o},J.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;return new T(function(){var a=i;return i+=t?-r:r,o>n?w():E(e,o++,a)})},J.prototype.equals=function(e){return e instanceof J?this._start===e._start&&this._end===e._end&&this._step===e._step:Q(this,e)};var kn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var An,On="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){e=0|e,t=0|t;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Nn=Object.isExtensible,Rn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),In="function"==typeof WeakMap;In&&(An=new WeakMap);var Dn=0,Ln="__immutablehash__";"function"==typeof Symbol&&(Ln=Symbol(Ln));var jn=16,Fn=255,Un=0,Bn={};e(pe,te),pe.of=function(){var e=ln.call(arguments,0);return Ee().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},pe.prototype.toString=function(){return this.__toString("Map {","}")},pe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},pe.prototype.set=function(e,t){return we(this,e,t)},pe.prototype.setIn=function(e,t){return this.updateIn(e,yn,function(){return t})},pe.prototype.remove=function(e){return we(this,e,yn)},pe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return yn})},pe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},pe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Ie(this,Ot(e),t,n);return r===yn?void 0:r},pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ee()},pe.prototype.merge=function(){return Ae(this,void 0,arguments)},pe.prototype.mergeWith=function(e){var t=ln.call(arguments,1);return Ae(this,e,t)},pe.prototype.mergeIn=function(e){var t=ln.call(arguments,1);return this.updateIn(e,Ee(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},pe.prototype.mergeDeep=function(){return Ae(this,Oe,arguments)},pe.prototype.mergeDeepWith=function(e){var t=ln.call(arguments,1);return Ae(this,Ne(e),t)},pe.prototype.mergeDeepIn=function(e){var t=ln.call(arguments,1);return this.updateIn(e,Ee(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},pe.prototype.sort=function(e){return Ze(_t(this,e))},pe.prototype.sortBy=function(e,t){return Ze(_t(this,t,e))},pe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},pe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},pe.prototype.asImmutable=function(){return this.__ensureOwner()},pe.prototype.wasAltered=function(){return this.__altered},pe.prototype.__iterator=function(e,t){return new ve(this,e,t)},pe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},pe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Te(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},pe.isMap=de;var Hn="@@__IMMUTABLE_MAP__@@",Gn=pe.prototype;Gn[Hn]=!0,Gn[fn]=Gn.remove,Gn.removeIn=Gn.deleteIn,fe.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;a>o;o++)if($(n,i[o][0]))return i[o][1];return r},fe.prototype.update=function(e,t,n,r,i,o,a){for(var s=i===yn,l=this.entries,u=0,c=l.length;c>u&&!$(r,l[u][0]);u++);var d=c>u;if(d?l[u][1]===i:s)return this;if(p(a),(s||!d)&&p(o),!s||1!==l.length){if(!d&&!s&&l.length>=qn)return Me(e,l,r,i);var h=e&&e===this.ownerID,m=h?l:f(l);return d?s?u===c-1?m.pop():m[u]=m.pop():m[u]=[r,i]:m.push([r,i]),h?(this.entries=m,this):new fe(e,m)}},he.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=1<<((0===e?t:t>>>e)&bn),o=this.bitmap;return 0===(o&i)?r:this.nodes[De(o&i-1)].get(e+hn,t,n,r)},he.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=(0===t?n:n>>>t)&bn,l=1<=Vn)return ke(e,d,u,s,h);if(c&&!h&&2===d.length&&Se(d[1^p]))return d[1^p];if(c&&h&&1===d.length&&Se(h))return h;var m=e&&e===this.ownerID,b=c?h?u:u^l:u|l,y=c?h?Le(d,p,h,m):Fe(d,p,m):je(d,p,h,m);return m?(this.bitmap=b,this.nodes=y,this):new he(e,b,y)},me.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=(0===e?t:t>>>e)&bn,o=this.nodes[i];return o?o.get(e+hn,t,n,r):r},me.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=(0===t?n:n>>>t)&bn,l=i===yn,u=this.nodes,c=u[s];if(l&&!c)return this;var p=Ce(c,e,t+hn,n,r,i,o,a);if(p===c)return this;var d=this.count;if(c){if(!p&&(d--,zn>d))return xe(e,u,d,s)}else d++;var f=e&&e===this.ownerID,h=Le(u,s,p,f);return f?(this.count=d,this.nodes=h,this):new me(e,d,h)},be.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;a>o;o++)if($(n,i[o][0]))return i[o][1];return r},be.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var s=i===yn;if(n!==this.keyHash)return s?this:(p(a),p(o),Pe(this,e,t,n,[r,i]));for(var l=this.entries,u=0,c=l.length;c>u&&!$(r,l[u][0]);u++);var d=c>u;if(d?l[u][1]===i:s)return this;if(p(a),(s||!d)&&p(o),s&&2===c)return new ye(e,this.keyHash,l[1^u]);var h=e&&e===this.ownerID,m=h?l:f(l);return d?s?u===c-1?m.pop():m[u]=m.pop():m[u]=[r,i]:m.push([r,i]),h?(this.entries=m,this):new be(e,this.keyHash,m)},ye.prototype.get=function(e,t,n,r){return $(n,this.entry[0])?this.entry[1]:r},ye.prototype.update=function(e,t,n,r,i,o,a){var s=i===yn,l=$(r,this.entry[0]);return(l?i===this.entry[1]:s)?this:(p(a),s?void p(o):l?e&&e===this.ownerID?(this.entry[1]=i,this):new ye(e,this.keyHash,[r,i]):(p(o),Pe(this,e,t,oe(r),[r,i])))},fe.prototype.iterate=be.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;i>=r;r++)if(e(n[t?i-r:r])===!1)return!1},he.prototype.iterate=me.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;i>=r;r++){var o=n[t?i-r:r];if(o&&o.iterate(e,t)===!1)return!1}},ye.prototype.iterate=function(e,t){return e(this.entry)},e(ve,T),ve.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,i=t.index++;if(r.entry){if(0===i)return ge(e,r.entry)}else if(r.entries){if(n=r.entries.length-1,n>=i)return ge(e,r.entries[this._reverse?n-i:i])}else if(n=r.nodes.length-1,n>=i){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return ge(e,o.entry);t=this._stack=_e(o,t)}continue}t=this._stack=this._stack.__prev}return w()};var Kn,qn=mn/4,Vn=mn/2,zn=mn/4;e(Ue,ne),Ue.of=function(){return this(arguments)},Ue.prototype.toString=function(){return this.__toString("List [","]")},Ue.prototype.get=function(e,t){if(e=m(this,e),e>=0&&e>>t&bn;if(r>=this.array.length)return new He([],e);var i,o=0===r;if(t>0){var a=this.array[r];if(i=a&&a.removeBefore(e,t-hn,n),i===a&&o)return this}if(o&&!i)return this;var s=Xe(this,e);if(!o)for(var l=0;r>l;l++)s.array[l]=void 0;return i&&(s.array[r]=i),s},He.prototype.removeAfter=function(e,t,n){if(n===(t?1<>>t&bn;if(r>=this.array.length)return this;var i;if(t>0){var o=this.array[r];if(i=o&&o.removeAfter(e,t-hn,n),i===o&&r===this.array.length-1)return this}var a=Xe(this,e);return a.array.splice(r+1),i&&(a.array[r]=i),a};var $n,Qn={};e(Ze,pe),Ze.of=function(){return this(arguments)},Ze.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ze.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ze.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Ze.prototype.set=function(e,t){return nt(this,e,t)},Ze.prototype.remove=function(e){return nt(this,e,yn)},Ze.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ze.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ze.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ze.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ze.isOrderedMap=Je,Ze.prototype[dn]=!0,Ze.prototype[fn]=Ze.prototype.remove;var Yn;e(rt,A),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=ut(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=lt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Pt(this):0,function(i){return e(i,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(Tn,t),r=t?Pt(this):0;return new T(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},rt.prototype[dn]=!0,e(it,O),it.prototype.includes=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Tn,t),r=0;return new T(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(ot,N),ot.prototype.has=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Tn,t);return new T(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(at,A),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){St(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Tn,t);return new T(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){St(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},it.prototype.cacheResult=rt.prototype.cacheResult=ot.prototype.cacheResult=at.prototype.cacheResult=kt,e(Nt,te),Nt.prototype.toString=function(){return this.__toString(It(this)+" {","}")},Nt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Nt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Nt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Rt(this,Ee()))},Nt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+It(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:Rt(this,r)},Nt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Rt(this,t)},Nt.prototype.wasAltered=function(){return this._map.wasAltered()},Nt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},Nt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},Nt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Rt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Zn=Nt.prototype;Zn[fn]=Zn.remove,Zn.deleteIn=Zn.removeIn=Gn.removeIn,Zn.merge=Gn.merge,Zn.mergeWith=Gn.mergeWith,Zn.mergeIn=Gn.mergeIn,Zn.mergeDeep=Gn.mergeDeep,Zn.mergeDeepWith=Gn.mergeDeepWith,Zn.mergeDeepIn=Gn.mergeDeepIn,Zn.setIn=Gn.setIn,Zn.update=Gn.update,Zn.updateIn=Gn.updateIn,Zn.withMutations=Gn.withMutations,Zn.asMutable=Gn.asMutable,Zn.asImmutable=Gn.asImmutable,e(jt,re),jt.of=function(){return this(arguments)},jt.fromKeys=function(e){return this(n(e).keySeq())},jt.prototype.toString=function(){return this.__toString("Set {","}")},jt.prototype.has=function(e){return this._map.has(e)},jt.prototype.add=function(e){return Ut(this,this._map.set(e,!0))},jt.prototype.remove=function(e){return Ut(this,this._map.remove(e))},jt.prototype.clear=function(){return Ut(this,this._map.clear())},jt.prototype.union=function(){var e=ln.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Wt(e,t)},zt.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;ce(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Wt(t,n)},zt.prototype.pop=function(){return this.slice(1)},zt.prototype.unshift=function(){return this.push.apply(this,arguments)},zt.prototype.unshiftAll=function(e){return this.pushAll(e)},zt.prototype.shift=function(){return this.pop.apply(this,arguments)},zt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):$t()},zt.prototype.slice=function(e,t){if(y(e,t,this.size))return this;var n=v(e,this.size),r=g(t,this.size);if(r!==this.size)return ne.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Wt(i,o)},zt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Wt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},zt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&e(r.value,n++,this)!==!1;)r=r.next;return n},zt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new T(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return w()})},zt.isStack=Xt;var ir="@@__IMMUTABLE_STACK__@@",or=zt.prototype;or[ir]=!0,or.withMutations=Gn.withMutations,or.asMutable=Gn.asMutable,or.asImmutable=Gn.asImmutable,or.wasAltered=Gn.wasAltered;var ar;t.Iterator=T,Qt(t,{toArray:function(){ce(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new it(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return pe(this.toKeyedSeq())},toObject:function(){ce(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ze(this.toKeyedSeq())},toOrderedSet:function(){return Gt(a(this)?this.valueSeq():this)},toSet:function(){return jt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new ot(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return zt(a(this)?this.valueSeq():this)},toList:function(){return Ue(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=ln.call(arguments,0);return Ct(this,bt(this,e))},includes:function(e){return this.some(function(t){return $(t,e)})},entries:function(){return this.__iterator(En)},every:function(e,t){ce(this.size);var n=!0;return this.__iterate(function(r,i,o){return e.call(t,r,i,o)?void 0:(n=!1,!1)}),n},filter:function(e,t){return Ct(this,ct(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ce(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ce(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(_n)},map:function(e,t){return Ct(this,lt(this,e,t))},reduce:function(e,t,n){ce(this.size);var r,i;return arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ct(this,ut(this,!0))},slice:function(e,t){return Ct(this,ft(this,e,t,!0))},some:function(e,t){return!this.every(Jt(e),t)},sort:function(e){return Ct(this,_t(this,e)); },values:function(){return this.__iterator(Tn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return h(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return pt(this,e,t)},equals:function(e){return Q(this,e)},entrySeq:function(){var e=this;if(e._cache)return new R(e._cache);var t=e.toSeq().map(Zt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Jt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){return e.call(t,n,i,o)?(r=[i,n],!1):void 0}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(b)},flatMap:function(e,t){return Ct(this,vt(this,e,t))},flatten:function(e){return Ct(this,yt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,n){return $(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=Ot(e);!(n=i.next()).done;){var o=n.value;if(r=r&&r.get?r.get(o,yn):yn,r===yn)return t}return r},groupBy:function(e,t){return dt(this,e,t)},has:function(e){return this.get(e,yn)!==yn},hasIn:function(e){return this.getIn(e,yn)!==yn},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"==typeof e.isSubset?e:t(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return $(t,e)})},keySeq:function(){return this.toSeq().map(Yt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Tt(this,e)},maxBy:function(e,t){return Tt(this,t,e)},min:function(e){return Tt(this,e?en(e):rn)},minBy:function(e,t){return Tt(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Ct(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Ct(this,mt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Jt(e),t)},sortBy:function(e,t){return Ct(this,_t(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Ct(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Ct(this,ht(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Jt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var sr=t.prototype;sr[un]=!0,sr[Sn]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=tn,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,Qt(n,{flip:function(){return Ct(this,st(this))},mapEntries:function(e,t){var n=this,r=0;return Ct(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ct(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var lr=n.prototype;lr[cn]=!0,lr[Sn]=sr.entries,lr.__toJS=sr.toObject,lr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Qt(r,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return Ct(this,ct(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Ct(this,ut(this,!1))},slice:function(e,t){return Ct(this,ft(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=v(e,0>e?this.count():this.size);var r=this.slice(0,e);return Ct(this,1===n?r:r.concat(f(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Ct(this,yt(this,e,!1))},get:function(e,t){return e=m(this,e),0>e||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=m(this,e),e>=0&&(void 0!==this.size?this.size===1/0||et;t+=1)r=e[t],r&&"object"==typeof r?i.push(o(r)):i.push(r);return JSON.stringify(i)}}function o(e){var t,n,r,i,o=[],a=[];for(t in e)e.hasOwnProperty(t)&&a.push(t);var s=a.sort();for(n=0,r=s.length;r>n;n+=1)t=s[n],i={},i[t]=e[t],o[n]=i;return o}var a=e("./es5");n["default"]=r},{"./es5":181}],183:[function(e,t,n){"use strict";n=t.exports=e("./lib/parser")["default"],n["default"]=n},{"./lib/parser":184}],184:[function(e,t,n){"use strict";n["default"]=function(){function e(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function t(e,t,n,r,i,o){this.message=e,this.expected=t,this.found=n,this.offset=r,this.line=i,this.column=o,this.name="SyntaxError"}function n(e){function n(t){function n(t,n,r){var i,o;for(i=n;r>i;i++)o=e.charAt(i),"\n"===o?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):"\r"===o||"\u2028"===o||"\u2029"===o?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}return $e!==t&&($e>t&&($e=0,Qe={line:1,column:1,seenCR:!1}),n(Qe,$e,t),$e=t),Qe}function r(e){Ye>Xe||(Xe>Ye&&(Ye=Xe,Ze=[]),Ze.push(e))}function i(r,i,o){function a(e){var t=1;for(e.sort(function(e,t){return e.descriptiont.description?1:0});t1?a.slice(0,-1).join(", ")+" or "+a[e.length-1]:a[0],i=t?'"'+n(t)+'"':"end of input","Expected "+r+" but "+i+" found."}var l=n(o),u=o1?arguments[1]:{},A={},O={start:o},N=o,R=function(e){return{type:"messageFormatPattern",elements:e}},I=A,D=function(e){var t,n,r,i,o,a="";for(t=0,r=e.length;r>t;t+=1)for(i=e[t],n=0,o=i.length;o>n;n+=1)a+=i[n];return a},L=function(e){return{type:"messageTextElement",value:e}},j=/^[^ \t\n\r,.+={}#]/,F={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},U="{",B={type:"literal",value:"{",description:'"{"'},H=null,G=",",K={type:"literal",value:",",description:'","'},q="}",V={type:"literal",value:"}",description:'"}"'},z=function(e,t){return{type:"argumentElement",id:e,format:t&&t[2]}},X="number",W={type:"literal",value:"number",description:'"number"'},$="date",Q={type:"literal",value:"date",description:'"date"'},Y="time",Z={type:"literal",value:"time",description:'"time"'},J=function(e,t){return{type:e+"Format",style:t&&t[2]}},ee="plural",te={type:"literal",value:"plural",description:'"plural"'},ne=function(e){return{type:e.type,ordinal:!1,offset:e.offset||0,options:e.options}},re="selectordinal",ie={type:"literal",value:"selectordinal",description:'"selectordinal"'},oe=function(e){return{type:e.type,ordinal:!0,offset:e.offset||0,options:e.options}},ae="select",se={type:"literal",value:"select",description:'"select"'},le=function(e){return{type:"selectFormat",options:e}},ue="=",ce={type:"literal",value:"=",description:'"="'},pe=function(e,t){return{type:"optionalFormatPattern",selector:e,value:t}},de="offset:",fe={type:"literal",value:"offset:",description:'"offset:"'},he=function(e){return e},me=function(e,t){return{type:"pluralFormat",offset:e,options:t}},be={type:"other",description:"whitespace"},ye=/^[ \t\n\r]/,ve={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},ge={type:"other",description:"optionalWhitespace"},_e=/^[0-9]/,Te={type:"class",value:"[0-9]",description:"[0-9]"},Ee=/^[0-9a-f]/i,we={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},Ce="0",Se={type:"literal",value:"0",description:'"0"'},Pe=/^[1-9]/,Me={type:"class",value:"[1-9]",description:"[1-9]"},xe=function(e){return parseInt(e,10)},ke=/^[^{}\\\0-\x1F \t\n\r]/,Ae={type:"class",value:"[^{}\\\\\\0-\\x1F \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F \\t\\n\\r]"},Oe="\\\\",Ne={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},Re=function(){return"\\"},Ie="\\#",De={type:"literal",value:"\\#",description:'"\\\\#"'},Le=function(){return"\\#"},je="\\{",Fe={type:"literal",value:"\\{",description:'"\\\\{"'},Ue=function(){return"{"},Be="\\}",He={type:"literal",value:"\\}",description:'"\\\\}"'},Ge=function(){return"}"},Ke="\\u",qe={type:"literal",value:"\\u",description:'"\\\\u"'},Ve=function(e){return String.fromCharCode(parseInt(e,16))},ze=function(e){return e.join("")},Xe=0,We=0,$e=0,Qe={line:1,column:1,seenCR:!1},Ye=0,Ze=[],Je=0;if("startRule"in k){if(!(k.startRule in O))throw new Error("Can't start parsing from rule \""+k.startRule+'".');N=O[k.startRule]}if(x=N(),x!==A&&Xe===e.length)return x;throw x!==A&&Xet;t+=1)switch(r=i[t],r.type){case"messageTextElement":o.push(this.compileMessageText(r));break;case"argumentElement":o.push(this.compileArgument(r));break;default:throw new Error("Message element does not have a valid type")}return o},r.prototype.compileMessageText=function(e){return this.currentPlural&&/(^|[^\\])#/g.test(e.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new a(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,e.value)):e.value.replace(/\\#/g,"#")},r.prototype.compileArgument=function(e){var t=e.format;if(!t)return new i(e.id);var n,r=this.formats,a=this.locales,l=this.pluralFn;switch(t.type){case"numberFormat":return n=r.number[t.style],{id:e.id,format:new Intl.NumberFormat(a,n).format};case"dateFormat":return n=r.date[t.style],{id:e.id,format:new Intl.DateTimeFormat(a,n).format};case"timeFormat":return n=r.time[t.style],{id:e.id,format:new Intl.DateTimeFormat(a,n).format};case"pluralFormat":return n=this.compileOptions(e),new o(e.id,t.ordinal,t.offset,n,l);case"selectFormat":return n=this.compileOptions(e),new s(e.id,n);default:throw new Error("Message element does not have a valid format type")}},r.prototype.compileOptions=function(e){var t=e.format,n=t.options,r={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===t.type?e:null;var i,o,a;for(i=0,o=n.length;o>i;i+=1)a=n[i],r[a.selector]=this.compileMessage(a.value);return this.currentPlural=this.pluralStack.pop(),r},i.prototype.format=function(e){return e?"string"==typeof e?e:String(e):""},o.prototype.getOption=function(e){var t=this.options,n=t["="+e]||t[this.pluralFn(e-this.offset,this.useOrdinal)];return n||t.other},a.prototype.format=function(e){var t=this.numberFormat.format(e-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+t).replace(/\\#/g,"#")},s.prototype.getOption=function(e){var t=this.options;return t[e]||t.other}},{}],187:[function(e,t,n){"use strict";function r(e,t,n){var i="string"==typeof e?r.__parse(e):e;if(!i||"messageFormatPattern"!==i.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(r.formats,n),o.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var a=this._findPluralRuleFunction(this._locale),s=this._compilePattern(i,t,n,a),l=this;this.format=function(e){return l._format(s,e)}}var i=e("./utils"),o=e("./es5"),a=e("./compiler"),s=e("intl-messageformat-parser");n["default"]=r,o.defineProperty(r,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{"short":{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},"long":{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{"short":{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},"long":{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),o.defineProperty(r,"__localeData__",{value:o.objCreate(null)}),o.defineProperty(r,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");r.__localeData__[e.locale.toLowerCase()]=e}}),o.defineProperty(r,"__parse",{value:s["default"].parse}),o.defineProperty(r,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),r.prototype.resolvedOptions=function(){return{locale:this._locale}},r.prototype._compilePattern=function(e,t,n,r){var i=new a["default"](t,n,r);return i.compile(e)},r.prototype._findPluralRuleFunction=function(e){for(var t=r.__localeData__,n=t[e.toLowerCase()];n;){if(n.pluralRuleFunction)return n.pluralRuleFunction;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+e)},r.prototype._format=function(e,t){var n,r,o,a,s,l="";for(n=0,r=e.length;r>n;n+=1)if(o=e[n],"string"!=typeof o){if(a=o.id,!t||!i.hop.call(t,a))throw new Error("A value must be provided for: "+a);s=t[a],l+=o.options?this._format(o.getOption(s),t):o.format(s)}else l+=o;return l},r.prototype._mergeFormats=function(e,t){var n,r,a={};for(n in e)i.hop.call(e,n)&&(a[n]=r=o.objCreate(e[n]),t&&i.hop.call(t,n)&&i.extend(r,t[n]));return a},r.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(r.defaultLocale);var t,n,i,o,a=r.__localeData__;for(t=0,n=e.length;n>t;t+=1)for(i=e[t].toLowerCase().split("-");i.length;){if(o=a[i.join("-")])return o.locale;i.pop()}var s=e.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+e.join(", ")+", or the default locale: "+s)}},{"./compiler":186,"./es5":189,"./utils":191,"intl-messageformat-parser":183}],188:[function(e,t,n){"use strict";n["default"]={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&r?"one":"other"}}},{}],189:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),o=(!i&&!Object.prototype.__defineGetter__,i?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!r.hop.call(e,t)||"value"in n)&&(e[t]=n.value)}),a=Object.create||function(e,t){function n(){}var i,a;n.prototype=e,i=new n;for(a in t)r.hop.call(t,a)&&o(i,a,t[a]);return i};n.defineProperty=o,n.objCreate=a},{"./utils":191}],190:[function(e,t,n){"use strict";var r=e("./core"),i=e("./en");r["default"].__addLocaleData(i["default"]),r["default"].defaultLocale="en",n["default"]=r["default"]},{"./core":187,"./en":188}],191:[function(e,t,n){"use strict";function r(e){var t,n,r,o,a=Array.prototype.slice.call(arguments,1);for(t=0,n=a.length;n>t;t+=1)if(r=a[t])for(o in r)i.call(r,o)&&(e[o]=r[o]);return e}n.extend=r;var i=Object.prototype.hasOwnProperty;n.hop=i},{}],192:[function(e,t,n){"use strict";var r=e("./lib/main")["default"];e("./lib/locales"),n=t.exports=r,n["default"]=n},{"./lib/locales":29,"./lib/main":197}],193:[function(e,t,n){"use strict";function r(e,t){t=t||{},a.isArray(e)&&(e=e.concat()),a.defineProperty(this,"_locale",{value:this._resolveLocale(e)}),a.defineProperty(this,"_options",{value:{style:this._resolveStyle(t.style),units:this._isValidUnits(t.units)&&t.units}}),a.defineProperty(this,"_locales",{value:e}),a.defineProperty(this,"_fields",{value:this._findFields(this._locale)}),a.defineProperty(this,"_messages",{value:a.objCreate(null)});var n=this;this.format=function(e,t){return n._format(e,t)}}var i=e("intl-messageformat"),o=e("./diff"),a=e("./es5");n["default"]=r;var s=["second","minute","hour","day","month","year"],l=["best fit","numeric"];a.defineProperty(r,"__localeData__",{value:a.objCreate(null)}),a.defineProperty(r,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlRelativeFormat is missing a `locale` property value");r.__localeData__[e.locale.toLowerCase()]=e,i["default"].__addLocaleData(e)}}),a.defineProperty(r,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),a.defineProperty(r,"thresholds",{enumerable:!0,value:{second:45,minute:45,hour:22,day:26,month:11}}),r.prototype.resolvedOptions=function(){return{locale:this._locale,style:this._options.style,units:this._options.units}},r.prototype._compileMessage=function(e){var t,n=this._locales,r=(this._locale,this._fields[e]),o=r.relativeTime,a="",s="";for(t in o.future)o.future.hasOwnProperty(t)&&(a+=" "+t+" {"+o.future[t].replace("{0}","#")+"}");for(t in o.past)o.past.hasOwnProperty(t)&&(s+=" "+t+" {"+o.past[t].replace("{0}","#")+"}");var l="{when, select, future {{0, plural, "+a+"}}past {{0, plural, "+s+"}}}";return new i["default"](l,n)},r.prototype._getMessage=function(e){var t=this._messages;return t[e]||(t[e]=this._compileMessage(e)),t[e]},r.prototype._getRelativeUnits=function(e,t){var n=this._fields[t];return n.relative?n.relative[e]:void 0},r.prototype._findFields=function(e){for(var t=r.__localeData__,n=t[e.toLowerCase()];n;){if(n.fields)return n.fields;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlRelativeFormat is missing `fields` for :"+e)},r.prototype._format=function(e,t){var n=t&&void 0!==t.now?t.now:a.dateNow();if(void 0===e&&(e=n),!isFinite(n))throw new RangeError("The `now` option provided to IntlRelativeFormat#format() is not in valid range.");if(!isFinite(e))throw new RangeError("The date value provided to IntlRelativeFormat#format() is not in valid range.");var r=o["default"](n,e),i=this._options.units||this._selectUnits(r),s=r[i];if("numeric"!==this._options.style){var l=this._getRelativeUnits(s,i);if(l)return l}return this._getMessage(i).format({0:Math.abs(s),when:0>s?"past":"future"})},r.prototype._isValidUnits=function(e){if(!e||a.arrIndexOf.call(s,e)>=0)return!0;if("string"==typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&a.arrIndexOf.call(s,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+s.join('", "')+'"')},r.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(r.defaultLocale);var t,n,i,o,a=r.__localeData__;for(t=0,n=e.length;n>t;t+=1)for(i=e[t].toLowerCase().split("-");i.length;){if(o=a[i.join("-")])return o.locale;i.pop()}var s=e.pop();throw new Error("No locale data has been added to IntlRelativeFormat for: "+e.join(", ")+", or the default locale: "+s)},r.prototype._resolveStyle=function(e){if(!e)return l[0];if(a.arrIndexOf.call(l,e)>=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+l.join('", "')+'"')},r.prototype._selectUnits=function(e){var t,n,i;for(t=0,n=s.length;n>t&&(i=s[t],!(Math.abs(e[i])r;r++)if(n[r]===e)return r;return-1},u=Array.isArray||function(e){return"[object Array]"===i.call(e)},c=Date.now||function(){return(new Date).getTime()};n.defineProperty=a,n.objCreate=s,n.arrIndexOf=l,n.isArray=u,n.dateNow=c},{}],197:[function(e,t,n){arguments[4][190][0].apply(n,arguments)},{"./core":193,"./en":195,dup:190}],198:[function(e,t,n){"use strict";var r=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};t.exports=r},{}],199:[function(e,t,n){n=t.exports=function(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var n=String(e),o=r[n.toLowerCase()];if(o)return o;var o=i[n.toLowerCase()];return o?o:1===n.length?n.charCodeAt(0):void 0};var r=n.code=n.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,"delete":46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145, "my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=n.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,"break":19,caps:20,"return":13,escape:27,spc:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(o=97;123>o;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;58>o;o++)r[o-48]=o;for(o=1;13>o;o++)r["f"+o]=o+111;for(o=0;10>o;o++)r["numpad "+o]=o+96;var a=n.names=n.title={};for(o in r)a[r[o]]=o;for(var s in i)r[s]=i[s]},{}],200:[function(e,t,n){function r(e){var t=e?e.length:0;return t?e[t-1]:void 0}t.exports=r},{}],201:[function(e,t,n){var r=e("../internal/baseEach"),i=e("../internal/createFind"),o=i(r);t.exports=o},{"../internal/baseEach":210,"../internal/createFind":234}],202:[function(e,t,n){function r(e,t){if("function"!=typeof e)throw new TypeError(i);return t=o(void 0===t?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,i=o(n.length-t,0),a=Array(i);++r=s?a(t):null,d=t.length;p&&(u=o,c=!1,t=p);e:for(;++lr;)e=i(e)[t[r++]];return r&&r==o?e:void 0}}var i=e("./toObject");t.exports=r},{"./toObject":252}],218:[function(e,t,n){function r(e,t,n){if(t!==t)return i(e,n);for(var r=n-1,o=e.length;++rt&&(t=-t>i?0:i+t),n=void 0===n||n>i?i:+n||0,0>n&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r-1?n[u]:void 0}return o(n,r,e)}}var i=e("./baseCallback"),o=e("./baseFind"),a=e("./baseFindIndex"),s=e("../lang/isArray");t.exports=r},{"../lang/isArray":255,"./baseCallback":208,"./baseFind":211,"./baseFindIndex":212}],235:[function(e,t,n){function r(e,t,n,r,o,a,s){var l=-1,u=e.length,c=t.length;if(u!=c&&!(o&&c>u))return!1;for(;++l-1&&e%1==0&&t>e}var i=/^\d+$/,o=9007199254740991;t.exports=r},{}],245:[function(e,t,n){function r(e,t){var n=typeof e;if("string"==n&&s.test(e)||"number"==n)return!0;if(i(e))return!1;var r=!a.test(e);return r||null!=t&&e in o(t)}var i=e("../lang/isArray"),o=e("./toObject"),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=r},{"../lang/isArray":255,"./toObject":252}],246:[function(e,t,n){function r(e){return"number"==typeof e&&e>-1&&e%1==0&&i>=e}var i=9007199254740991;t.exports=r},{}],247:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}t.exports=r},{}],248:[function(e,t,n){function r(e){return e===e&&!i(e)}var i=e("../lang/isObject");t.exports=r},{"../lang/isObject":258}],249:[function(e,t,n){function r(e,t){e=i(e);for(var n=-1,r=t.length,o={};++n0,y=d.enumErrorProps&&(e===w||e instanceof Error),v=d.enumPrototypes&&s(e);++rr;++r)if(n===e[r].toLowerCase())return!0;return!1}function r(e){for(var t in e)s.call(e,t)&&(e[t]=new RegExp(e[t],"i"))}function i(e,t){this.ua=e||"",this._cache={},this.maxPhoneWidth=t||600}var o={};o.mobileDetectRules={phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6",Dell:"Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b",Samsung:"Samsung|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323)",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",Asus:"Asus.*Galaxy|PadFone.*Mobile",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q", Alcatel:"Alcatel",Nintendo:"Nintendo 3DS",Amoi:"Amoi",INQ:"INQ",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI)\\b",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K017 |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris E10)|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9",JXDTablet:"Android.*\\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bJolla\\b|\\bTP750\\b"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+|Coast/[0-9.]+",Skyfire:"Skyfire",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",Tizen:"Tizen",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Puffin:"Puffin",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:"Firefox/[VER]",Fennec:"Fennec/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]","UC Browser":"UC Browser[VER]",MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},o.detectMobileBrowsers={fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i};var a,s=Object.prototype.hasOwnProperty;return o.FALLBACK_PHONE="UnknownPhone",o.FALLBACK_TABLET="UnknownTablet",o.FALLBACK_MOBILE="UnknownMobile",a="isArray"in Array?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},function(){var e,t,n,i,l,u,c=o.mobileDetectRules;for(e in c.props)if(s.call(c.props,e)){for(t=c.props[e],a(t)||(t=[t]),l=t.length,i=0;l>i;++i)n=t[i],u=n.indexOf("[VER]"),u>=0&&(n=n.substring(0,u)+"([\\w._\\+]+)"+n.substring(u+5)),t[i]=new RegExp(n,"i");c.props[e]=t}r(c.oss),r(c.phones),r(c.tablets),r(c.uas),r(c.utils),c.oss0={WindowsPhoneOS:c.oss.WindowsPhoneOS,WindowsMobileOS:c.oss.WindowsMobileOS}}(),o.findMatch=function(e,t){for(var n in e)if(s.call(e,n)&&e[n].test(t))return n;return null},o.findMatches=function(e,t){var n=[];for(var r in e)s.call(e,r)&&e[r].test(t)&&n.push(r);return n},o.getVersionStr=function(e,t){var n,r,i,a,l=o.mobileDetectRules.props;if(s.call(l,e))for(n=l[e],i=n.length,r=0;i>r;++r)if(a=n[r].exec(t),null!==a)return a[1];return null},o.getVersion=function(e,t){var n=o.getVersionStr(e,t);return n?o.prepareVersionNo(n):NaN},o.prepareVersionNo=function(e){var t;return t=e.split(/[a-z._ \/\-]/i),1===t.length&&(e=t[0]),t.length>1&&(e=t[0]+".",t.shift(),e+=t.join("")),Number(e)},o.isMobileFallback=function(e){return o.detectMobileBrowsers.fullPattern.test(e)||o.detectMobileBrowsers.shortPattern.test(e.substr(0,4))},o.isTabletFallback=function(e){return o.detectMobileBrowsers.tabletPattern.test(e)},o.prepareDetectionCache=function(e,n,r){if(e.mobile===t){var a,s,l;return(s=o.findMatch(o.mobileDetectRules.tablets,n))?(e.mobile=e.tablet=s,void(e.phone=null)):(a=o.findMatch(o.mobileDetectRules.phones,n))?(e.mobile=e.phone=a,void(e.tablet=null)):void(o.isMobileFallback(n)?(l=i.isPhoneSized(r),l===t?(e.mobile=o.FALLBACK_MOBILE,e.tablet=e.phone=null):l?(e.mobile=e.phone=o.FALLBACK_PHONE,e.tablet=null):(e.mobile=e.tablet=o.FALLBACK_TABLET,e.phone=null)):o.isTabletFallback(n)?(e.mobile=e.tablet=o.FALLBACK_TABLET,e.phone=null):e.mobile=e.tablet=e.phone=null)}},o.mobileGrade=function(e){var t=null!==e.mobile();return e.os("iOS")&&e.version("iPad")>=4.3||e.os("iOS")&&e.version("iPhone")>=3.1||e.os("iOS")&&e.version("iPod")>=3.1||e.version("Android")>2.1&&e.is("Webkit")||e.version("Windows Phone OS")>=7||e.is("BlackBerry")&&e.version("BlackBerry")>=6||e.match("Playbook.*Tablet")||e.version("webOS")>=1.4&&e.match("Palm|Pre|Pixi")||e.match("hp.*TouchPad")||e.is("Firefox")&&e.version("Firefox")>=12||e.is("Chrome")&&e.is("AndroidOS")&&e.version("Android")>=4||e.is("Skyfire")&&e.version("Skyfire")>=4.1&&e.is("AndroidOS")&&e.version("Android")>=2.3||e.is("Opera")&&e.version("Opera Mobi")>11&&e.is("AndroidOS")||e.is("MeeGoOS")||e.is("Tizen")||e.is("Dolfin")&&e.version("Bada")>=2||(e.is("UC Browser")||e.is("Dolfin"))&&e.version("Android")>=2.3||e.match("Kindle Fire")||e.is("Kindle")&&e.version("Kindle")>=3||e.is("AndroidOS")&&e.is("NookTablet")||e.version("Chrome")>=11&&!t||e.version("Safari")>=5&&!t||e.version("Firefox")>=4&&!t||e.version("MSIE")>=7&&!t||e.version("Opera")>=10&&!t?"A":e.os("iOS")&&e.version("iPad")<4.3||e.os("iOS")&&e.version("iPhone")<3.1||e.os("iOS")&&e.version("iPod")<3.1||e.is("Blackberry")&&e.version("BlackBerry")>=5&&e.version("BlackBerry")<6||e.version("Opera Mini")>=5&&e.version("Opera Mini")<=6.5&&(e.version("Android")>=2.3||e.is("iOS"))||e.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||e.version("Opera Mobi")>=11&&e.is("SymbianOS")?"B":(e.version("BlackBerry")<5||e.match("MSIEMobile|Windows CE.*Mobile")||e.version("Windows Mobile")<=5.2,"C")},o.detectOS=function(e){return o.findMatch(o.mobileDetectRules.oss0,e)||o.findMatch(o.mobileDetectRules.oss,e)},o.getDeviceSmallerSide=function(){return window.screen.widthe?t:o.getDeviceSmallerSide()<=e}:i.isPhoneSized=function(){},i._impl=o,i})}(function(e){if("undefined"!=typeof t&&t.exports)return function(e){t.exports=e()};if("function"==typeof define&&define.amd)return define;if("undefined"!=typeof window)return function(e){window.MobileDetect=e()};throw new Error("unknown environment")}())},{}],280:[function(e,t,n){function r(e){if(e=String(e),!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*p;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*l;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function i(e){return e>=c?Math.round(e/c)+"d":e>=u?Math.round(e/u)+"h":e>=l?Math.round(e/l)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function o(e){return a(e,c,"day")||a(e,u,"hour")||a(e,l,"minute")||a(e,s,"second")||e+" ms"}function a(e,t,n){return t>e?void 0:1.5*t>e?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,l=60*s,u=60*l,c=24*u,p=365.25*c;t.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return r(e);if("number"===n&&isNaN(e)===!1)return t["long"]?o(e):i(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],281:[function(e,t,n){var r=e("./lib/util"),i=e("./lib/keys"),o=e("./lib/kbdutil"),a=e("./lib/input"),s=e("./lib/websock"),l=e("./lib/base64"),u=e("./lib/des"),c=e("./lib/tinf"),p=e("./lib/display"),d=e("./lib/rfb"),f={Util:r,Keys:i,KbdUtil:o,Input:a,Websock:s,Base64:l,DES:u,TINF:c,Display:p,RFB:d};t.exports=f},{"./lib/base64":282,"./lib/des":283,"./lib/display":284,"./lib/input":285,"./lib/kbdutil":286,"./lib/keys":287,"./lib/rfb":288,"./lib/tinf":289,"./lib/util":290,"./lib/websock":291}],282:[function(e,t,n){var r=e("debug")("noVNC:ERROR:Base64");r.log=console.warn.bind(console);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),o="=",a=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1];t.exports={encode:function(e){for(var t="",n=e.length,r=n%3,o=0;n-2>o;o+=3)t+=i[e[o]>>2],t+=i[((3&e[o])<<4)+(e[o+1]>>4)],t+=i[((15&e[o+1])<<2)+(e[o+2]>>6)],t+=i[63&e[o+2]];var a=0;return 2===r?(a=n-r,t+=i[e[a]>>2],t+=i[((3&e[a])<<4)+(e[a+1]>>4)],t+=i[(15&e[a+1])<<2],t+=i[64]):1===r&&(a=n-r,t+=i[e[a]>>2],t+=i[(3&e[a])<<4],t+=i[64],t+=i[64]),t},decode:function(e,t){t="undefined"!=typeof t?t:0;var n,i,s=0,l=0,u=e.indexOf("=")-t;0>u&&(u=e.length-t),i=3*(u>>2)+Math.floor(u%4/1.5),n=new Array(i);for(var c=0,p=t;p=8&&(s-=8,f||(n[c++]=l>>s&255),l&=(1<n;++n,r-=8)r+=-5>r?65:-3>r?31:-1>r?63:27===r?35:0,i=7&r,p[n]=0!==(e[r>>>3]&1<t;++t){for(i=t<<1,o=i+1,f[i]=f[o]=0,a=28;59>a;a+=28)for(n=a-28;a>n;++n)r=n+T[t],a>r?d[n]=p[r]:d[n]=p[r-28];for(n=0;24>n;++n)0!==d[_[n]]&&(f[i]|=1<<23-n),0!==d[_[n+24]]&&(f[o]|=1<<23-n)}for(t=0,u=0,c=0;16>t;++t)s=f[u++],l=f[u++],w[c]=(16515072&s)<<6,w[c]|=(4032&s)<<10,w[c]|=(16515072&l)>>>10,w[c]|=(4032&l)>>>6,++c,w[c]=(258048&s)<<12,w[c]|=(63&s)<<16,w[c]|=(258048&l)>>>4,w[c]|=63&l,++c}function i(e){var t,n,r,i,o=0,a=e.slice(),s=0;for(n=a[o++]<<24|a[o++]<<16|a[o++]<<8|a[o++],r=a[o++]<<24|a[o++]<<16|a[o++]<<8|a[o++],i=252645135&(n>>>4^r),r^=i,n^=i<<4,i=65535&(n>>>16^r),r^=i,n^=i<<16,i=858993459&(r>>>2^n),n^=i,r^=i<<2,i=16711935&(r>>>8^n),n^=i,r^=i<<8,r=r<<1|r>>>31&1,i=2863311530&(n^r),n^=i,r^=i,n=n<<1|n>>>31&1,o=0;8>o;++o)i=r<<28|r>>>4,i^=w[s++],t=v[63&i],t|=b[i>>>8&63],t|=h[i>>>16&63],t|=d[i>>>24&63],i=r^w[s++],t|=g[63&i],t|=y[i>>>8&63],t|=m[i>>>16&63],t|=f[i>>>24&63],n^=t,i=n<<28|n>>>4,i^=w[s++],t=v[63&i],t|=b[i>>>8&63],t|=h[i>>>16&63],t|=d[i>>>24&63],i=n^w[s++],t|=g[63&i],t|=y[i>>>8&63],t|=m[i>>>16&63],t|=f[i>>>24&63],r^=t;for(r=r<<31|r>>>1,i=2863311530&(n^r),n^=i,r^=i,n=n<<31|n>>>1,i=16711935&(n>>>8^r),r^=i,n^=i<<8,i=858993459&(n>>>2^r), r^=i,n^=i<<2,i=65535&(r>>>16^n),n^=i,r^=i<<16,i=252645135&(r>>>4^n),n^=i,r^=i<<4,i=[r,n],o=0;8>o;o++)a[o]=(i[o>>>2]>>>8*(3-o%4))%256,a[o]<0&&(a[o]+=256);return a}function o(e){return i(e.slice(0,8)).concat(i(e.slice(8,16)))}var a,s,l,u,c,p,d,f,h,m,b,y,v,g,_=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],T=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],E=0,w=[];a=65536,s=1<<24,l=a|s,u=4,c=1024,p=u|c,d=[l|c,E|E,a|E,l|p,l|u,a|p,E|u,a|E,E|c,l|c,l|p,E|c,s|p,l|u,s|E,E|u,E|p,s|c,s|c,a|c,a|c,l|E,l|E,s|p,a|u,s|u,s|u,a|u,E|E,E|p,a|p,s|E,a|E,l|p,E|u,l|E,l|c,s|E,s|E,E|c,l|u,a|E,a|c,s|u,E|c,E|u,s|p,a|p,l|p,a|u,l|E,s|p,s|u,E|p,a|p,l|c,E|p,s|c,s|c,E|E,a|u,a|c,E|E,l|u],a=1<<20,s=1<<31,l=a|s,u=32,c=32768,p=u|c,f=[l|p,s|c,E|c,a|p,a|E,E|u,l|u,s|p,s|u,l|p,l|c,s|E,s|c,a|E,E|u,l|u,a|c,a|u,s|p,E|E,s|E,E|c,a|p,l|E,a|u,s|u,E|E,a|c,E|p,l|c,l|E,E|p,E|E,a|p,l|u,a|E,s|p,l|E,l|c,E|c,l|E,s|c,E|u,l|p,a|p,E|u,E|c,s|E,E|p,l|c,a|E,s|u,a|u,s|p,s|u,a|u,a|c,E|E,s|c,E|p,s|E,l|u,l|p,a|c],a=1<<17,s=1<<27,l=a|s,u=8,c=512,p=u|c,h=[E|p,l|c,E|E,l|u,s|c,E|E,a|p,s|c,a|u,s|u,s|u,a|E,l|p,a|u,l|E,E|p,s|E,E|u,l|c,E|c,a|c,l|E,l|u,a|p,s|p,a|c,a|E,s|p,E|u,l|p,E|c,s|E,l|c,s|E,a|u,E|p,a|E,l|c,s|c,E|E,E|c,a|u,l|p,s|c,s|u,E|c,E|E,l|u,s|p,a|E,s|E,l|p,E|u,a|p,a|c,s|u,l|E,s|p,E|p,l|E,a|p,E|u,l|u,a|c],a=8192,s=1<<23,l=a|s,u=1,c=128,p=u|c,m=[l|u,a|p,a|p,E|c,l|c,s|p,s|u,a|u,E|E,l|E,l|E,l|p,E|p,E|E,s|c,s|u,E|u,a|E,s|E,l|u,E|c,s|E,a|u,a|c,s|p,E|u,a|c,s|c,a|E,l|c,l|p,E|p,s|c,s|u,l|E,l|p,E|p,E|E,E|E,l|E,a|c,s|c,s|p,E|u,l|u,a|p,a|p,E|c,l|p,E|p,E|u,a|E,s|u,a|u,l|c,s|p,a|u,a|c,s|E,l|u,E|c,s|E,a|E,l|c],a=1<<25,s=1<<30,l=a|s,u=256,c=1<<19,p=u|c,b=[E|u,a|p,a|c,l|u,E|c,E|u,s|E,a|c,s|p,E|c,a|u,s|p,l|u,l|c,E|p,s|E,a|E,s|c,s|c,E|E,s|u,l|p,l|p,a|u,l|c,s|u,E|E,l|E,a|p,a|E,l|E,E|p,E|c,l|u,E|u,a|E,s|E,a|c,l|u,s|p,a|u,s|E,l|c,a|p,s|p,E|u,a|E,l|c,l|p,E|p,l|E,l|p,a|c,E|E,s|c,l|E,E|p,a|u,s|u,E|c,E|E,s|c,a|p,s|u],a=1<<22,s=1<<29,l=a|s,u=16,c=16384,p=u|c,y=[s|u,l|E,E|c,l|p,l|E,E|u,l|p,a|E,s|c,a|p,a|E,s|u,a|u,s|c,s|E,E|p,E|E,a|u,s|p,E|c,a|c,s|p,E|u,l|u,l|u,E|E,a|p,l|c,E|p,a|c,l|c,s|E,s|c,E|u,l|u,a|c,l|p,a|E,E|p,s|u,a|E,s|c,s|E,E|p,s|u,l|p,a|c,l|E,a|p,l|c,E|E,l|u,E|u,E|c,l|E,a|p,E|c,a|u,s|p,E|E,l|c,s|E,a|u,s|p],a=1<<21,s=1<<26,l=a|s,u=2,c=2048,p=u|c,v=[a|E,l|u,s|p,E|E,E|c,s|p,a|p,l|c,l|p,a|E,E|E,s|u,E|u,s|E,l|u,E|p,s|c,a|p,a|u,s|c,s|u,l|E,l|c,a|u,l|E,E|c,E|p,l|p,a|c,E|u,s|E,a|c,s|E,a|c,a|E,s|p,s|p,l|u,l|u,E|u,a|u,s|E,s|c,a|E,l|c,E|p,a|p,l|c,E|p,s|u,l|p,l|E,a|c,E|E,E|u,l|p,E|E,a|p,l|E,E|c,s|u,s|c,E|c,a|u],a=1<<18,s=1<<28,l=a|s,u=64,c=4096,p=u|c,g=[s|p,E|c,a|E,l|p,s|E,s|p,E|u,s|E,a|u,l|E,l|p,a|c,l|c,a|p,E|c,E|u,l|E,s|u,s|c,E|p,a|c,a|u,l|u,l|c,E|p,E|E,E|E,l|u,s|u,s|c,a|p,a|E,a|p,a|E,l|c,E|c,E|u,l|u,E|c,a|p,s|c,E|u,s|u,l|E,l|u,s|E,a|E,s|p,E|E,l|p,a|u,s|u,l|E,s|c,s|p,E|E,l|p,a|c,a|c,E|p,E|p,a|u,s|E,l|c],t.exports=function(e){return r(e),{encrypt:o}}},{}],284:[function(e,t,n){function r(e){if(i("new()"),this._drawCtx=null,this._c_forceCanvas=!1,this._renderQ=[],this._fb_width=0,this._fb_height=0,this._maxWidth=0,this._maxHeight=0,this._viewportLoc={x:0,y:0,w:0,h:0},this._cleanRect={x1:0,y1:0,x2:-1,y2:-1},this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tile_x=0,this._tile_y=0,s.set_defaults(this,e,{true_color:!0,colourMap:[],scale:1,viewport:!1,render_mode:""}),!this._target)throw new Error("Target must be set");if("string"==typeof this._target)throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._drawCtx||(this._drawCtx=this._target.getContext("2d")),this.clear(),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._render_mode="canvas rendering",null===this._prefer_js&&(this._prefer_js=!0),(this._cursor_uri||null===this._cursor_uri||void 0===this._cursor_uri)&&(this._cursor_uri=s.browserSupportsCursorURIs())}t.exports=r;var i=e("debug")("noVNC:Display"),o=e("debug")("noVNC:ERROR:Display");o.log=console.warn.bind(console);var a=e("bowser").browser,s=e("./util"),l=e("./base64");r.prototype={viewportChangePos:function(e,t){var n=this._viewportLoc;this._viewport||(e=-n.w,t=-n.h);var r=n.x+n.w-1,o=n.y+n.h-1;if(0>e&&n.x+e<0&&(e=-n.x),r+e>=this._fb_width&&(e-=r+e-this._fb_width+1),n.y+t<0&&(t=-n.y),o+t>=this._fb_height&&(t-=o+t-this._fb_height+1),0!==e||0!==t){i("viewportChangePos() | deltaX: "+e+", deltaY: "+t),n.x+=e,r+=e,n.y+=t,o+=t;var a=this._cleanRect;n.x>a.x1&&(a.x1=n.x),ra.y1&&(a.y1=n.y),oe?(s=0,l=-e):(s=n.w-e,l=e);var u,c;0>t?(u=0,c=-t):(u=n.h-t,c=t);var p=this._drawCtx.fillStyle,d=this._target;this._drawCtx.fillStyle="rgb(255,255,255)",0!==e&&(this._drawCtx.drawImage(d,0,0,n.w,n.h,-e,0,n.w,n.h),this._drawCtx.fillRect(s,0,l,n.h)),0!==t&&(this._drawCtx.drawImage(d,0,0,n.w,n.h,0,-t,n.w,n.h),this._drawCtx.fillRect(0,u,n.w,c)),this._drawCtx.fillStyle=p}},viewportChangeSize:function(e,t){"undefined"!=typeof e&&"undefined"!=typeof t||(i("viewportChangeSize() | setting viewport to full display region"),e=this._fb_width,t=this._fb_height);var n=this._viewportLoc;if(n.w!==e||n.h!==t){this._viewport&&(0!==this._maxWidth&&e>this._maxWidth&&(e=this._maxWidth),0!==this._maxHeight&&t>this._maxHeight&&(t=this._maxHeight));var r=this._cleanRect;en.x+e-1&&(r.x2=n.x+e-1),tn.y+t-1&&(r.y2=n.y+t-1),n.w=e,n.h=t;var o=this._target;if(o.width!==e||o.height!==t){var a=null;if(n.w>0&&n.h>0&&o.width>0&&o.height>0){var s=o.width=t.x2||t.y1>=t.y2)r.push({x:e.x,y:e.y,w:e.w,h:e.h});else{var i=e.x+e.w-1,o=e.y+e.h-1;e.xt.x2&&r.push({x:t.x2+1,y:e.y,w:i-t.x2,h:e.h}),e.yt.y2&&r.push({x:t.x1,y:t.y2+1,w:t.x2-t.x1+1,h:o-t.y2})}return this._cleanRect={x1:e.x,y1:e.y,x2:e.x+e.w-1,y2:e.y+e.h-1},{cleanBox:n,dirtyBoxes:r}},absX:function(e){return e+this._viewportLoc.x},absY:function(e){return e+this._viewportLoc.y},resize:function(e,t){this._prevDrawStyle="",this._fb_width=e,this._fb_height=t,this._rescale(this._scale),this.viewportChangeSize()},clear:function(){this._logo?(this.resize(this._logo.width,this._logo.height),this.blitStringImage(this._logo.data,0,0)):(a.msie&&10===parseInt(a.version)&&this._drawCtx.clearRect(0,0,this._viewportLoc.w,this._viewportLoc.h),this.resize(240,20),this._drawCtx.clearRect(0,0,this._viewportLoc.w,this._viewportLoc.h)),this._renderQ=[]},fillRect:function(e,t,n,r,i){this._setFillColor(i),this._drawCtx.fillRect(e-this._viewportLoc.x,t-this._viewportLoc.y,n,r)},copyImage:function(e,t,n,r,i,o){var a=e-this._viewportLoc.x,s=t-this._viewportLoc.y,l=n-this._viewportLoc.x,u=r-this._viewportLoc.y;this._drawCtx.drawImage(this._target,a,s,i,o,l,u,i,o)},startTile:function(e,t,n,r,i){if(this._tile_x=e,this._tile_y=t,16===n&&16===r?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(n,r),this._prefer_js){var o;o=this._true_color?i:this._colourMap[i[0]];for(var a=o[2],s=o[1],l=o[0],u=this._tile.data,c=0;n*r*4>c;c+=4)u[c]=a,u[c+1]=s,u[c+2]=l,u[c+3]=255}else this.fillRect(e,t,n,r,i)},subTile:function(e,t,n,r,i){if(this._prefer_js){var o;o=this._true_color?i:this._colourMap[i[0]];for(var a=o[2],s=o[1],l=o[0],u=e+n,c=t+r,p=this._tile.data,d=this._tile.width,f=t;c>f;f++)for(var h=e;u>h;h++){var m=4*(h+f*d);p[m]=a,p[m+1]=s,p[m+2]=l,p[m+3]=255}}else this.fillRect(this._tile_x+e,this._tile_y+t,n,r,i)},finishTile:function(){this._prefer_js&&this._drawCtx.putImageData(this._tile,this._tile_x-this._viewportLoc.x,this._tile_y-this._viewportLoc.y)},blitImage:function(e,t,n,r,i,o){this._true_color?this._bgrxImageData(e,t,this._viewportLoc.x,this._viewportLoc.y,n,r,i,o):this._cmapImageData(e,t,this._viewportLoc.x,this._viewportLoc.y,n,r,i,o)},blitRgbImage:function(e,t,n,r,i,o){this._true_color?this._rgbImageData(e,t,this._viewportLoc.x,this._viewportLoc.y,n,r,i,o):this._cmapImageData(e,t,this._viewportLoc.x,this._viewportLoc.y,n,r,i,o)},blitStringImage:function(e,t,n){var r=new Image;return r.onload=function(){this._drawCtx.drawImage(r,t-this._viewportLoc.x,n-this._viewportLoc.y)}.bind(this),r.src=e,r},drawImage:function(e,t,n){this._drawCtx.drawImage(e,t-this._viewportLoc.x,n-this._viewportLoc.y)},renderQ_push:function(e){this._renderQ.push(e),1===this._renderQ.length&&this._scan_renderQ()},changeCursor:function(e,t,n,i,a,s){return this._cursor_uri===!1?void o("changeCursor() | called but no cursor data URI support"):void(this._true_color?r.changeCursor(this._target,e,t,n,i,a,s):r.changeCursor(this._target,e,t,n,i,a,s,this._colourMap))},defaultCursor:function(){this._target.style.cursor="default"},disableLocalCursor:function(){this._target.style.cursor="none"},clippingDisplay:function(){var e=this._viewportLoc,t=this._fb_width>e.w||this._fb_height>e.h,n=0!==this._maxWidth&&0!==this._maxHeight,r=!1;return n&&(r=e.w>this._maxWidth||e.h>this._maxHeight),t||n&&r},get_context:function(){return this._drawCtx},set_scale:function(e){this._rescale(e)},set_width:function(e){this._fb_width=e},get_width:function(){return this._fb_width},set_height:function(e){this._fb_height=e},get_height:function(){return this._fb_height},autoscale:function(e,t,n){var r,i=e/t,o=this._fb_width/this._fb_height;r=o>=i?e/this._fb_width:t/this._fb_height;var a,s;return r>1&&n?(a=this._fb_width,s=this._fb_height,r=1):o>=i?(a=e,s=Math.round(e/o)):(a=Math.round(t*o),s=t),this._target.style.width=a+"px",this._target.style.height=s+"px",this._scale=r,r},_rescale:function(e){this._scale=e;var t,n;this._viewport&&0!==this._maxWidth&&0!==this._maxHeight?(t=Math.min(this._fb_width,this._maxWidth),n=Math.min(this._fb_height,this._maxHeight)):(t=this._fb_width,n=this._fb_height),this._target.style.width=Math.round(e*t)+"px",this._target.style.height=Math.round(e*n)+"px"},_setFillColor:function(e){var t;t=this._true_color?e:this._colourMap[e[0]];var n="rgb("+t[2]+","+t[1]+","+t[0]+")";n!==this._prevDrawStyle&&(this._drawCtx.fillStyle=n,this._prevDrawStyle=n)},_rgbImageData:function(e,t,n,r,i,o,a,s){for(var l=this._drawCtx.createImageData(i,o),u=l.data,c=0,p=s;i*o*4>c;c+=4,p+=3)u[c]=a[p],u[c+1]=a[p+1],u[c+2]=a[p+2],u[c+3]=255;this._drawCtx.putImageData(l,e-n,t-r)},_bgrxImageData:function(e,t,n,r,i,o,a,s){for(var l=this._drawCtx.createImageData(i,o),u=l.data,c=0,p=s;i*o*4>c;c+=4,p+=4)u[c]=a[p+2],u[c+1]=a[p+1],u[c+2]=a[p],u[c+3]=255;this._drawCtx.putImageData(l,e-n,t-r)},_cmapImageData:function(e,t,n,r,i,o,a,s){for(var l=this._drawCtx.createImageData(i,o),u=l.data,c=this._colourMap,p=0,d=s;i*o*4>p;p+=4,d++){var f=c[a[d]];u[p]=f[2],u[p+1]=f[1],u[p+2]=f[0],u[p+3]=255}this._drawCtx.putImageData(l,e-n,t-r)},_scan_renderQ:function(){for(var e=!0;e&&this._renderQ.length>0;){var t=this._renderQ[0];switch(t.type){case"copy":this.copyImage(t.old_x,t.old_y,t.x,t.y,t.width,t.height);break;case"fill":this.fillRect(t.x,t.y,t.width,t.height,t.color);break;case"blit":this.blitImage(t.x,t.y,t.width,t.height,t.data,0);break;case"blitRgb":this.blitRgbImage(t.x,t.y,t.width,t.height,t.data,0);break;case"img":t.img.complete?this.drawImage(t.img,t.x,t.y):e=!1}e&&this._renderQ.shift()}this._renderQ.length>0&&s.requestAnimationFrame(this._scan_renderQ.bind(this))}},s.make_properties(r,[["target","wo","dom"],["context","ro","raw"],["logo","rw","raw"],["true_color","rw","bool"],["colourMap","rw","arr"],["scale","rw","float"],["viewport","rw","bool"],["width","rw","int"],["height","rw","int"],["maxWidth","rw","int"],["maxHeight","rw","int"],["render_mode","ro","str"],["prefer_js","rw","str"],["cursor_uri","rw","raw"]]),r.changeCursor=function(e,t,n,r,i,o,a,s){var u=o,c=a;u>c?c=u:u=c;var p=[];p.push16le=function(e){this.push(255&e,e>>8&255)},p.push32le=function(e){this.push(255&e,e>>8&255,e>>16&255,e>>24&255)};var d=40,f=u*c*4,h=Math.ceil(u*c/8),m=Math.ceil(u*c/8);p.push16le(0),p.push16le(2),p.push16le(1),p.push(u),p.push(c),p.push(0),p.push(0),p.push16le(r),p.push16le(i),p.push32le(d+f+h+m),p.push32le(22),p.push32le(d),p.push32le(u),p.push32le(2*c),p.push16le(1),p.push16le(32),p.push32le(0),p.push32le(h+m),p.push32le(0),p.push32le(0),p.push32le(0),p.push32le(0);var b,y;for(b=c-1;b>=0;b--)for(y=0;u>y;y++)if(y>=o||b>=a)p.push(0),p.push(0),p.push(0),p.push(0);else{var v=b*Math.ceil(o/8)+Math.floor(y/8),g=n[v]<b;b++)for(y=0;yb;b++)for(y=0;y0?8:16,this._onMouseButton&&(this._onMouseButton(i.x,i.y,1,t),this._onMouseButton(i.x,i.y,0,t)),u.stopEvent(e),!1},_handleMouseMove:function(e){if(!this._focused)return!0;this._notify&&this._notify(e);var t=u.getEventPosition(e,this._target,this._scale,this._zoom);return this._onMouseMove&&this._onMouseMove(t.x,t.y),u.stopEvent(e),!1},_handleMouseDisable:function(e){if(!this._focused)return!0;var t=u.getEventPosition(e,this._target,this._scale,this._zoom);return t.realx>=0&&t.realy>=0&&t.realxe.length:i>0},hasCharModifier:function(e,t){if(0===e.length)return!1;for(var n=0;n=48&&57>=e)return e;if(e>=65&&90>=e)return t?e:e+32;if(e>=96&&105>=e)return s.XK_KP_0+(e-96);switch(e){case 32:return s.XK_space;case 106:return s.XK_KP_Multiply;case 107:return s.XK_KP_Add;case 108:return s.XK_KP_Separator;case 109:return s.XK_KP_Subtract;case 110:return s.XK_KP_Decimal;case 111:return s.XK_KP_Divide;case 187:return s.XK_plus;case 188:return s.XK_comma;case 189:return s.XK_minus;case 190:return s.XK_period}return l.nonCharacterKey({keyCode:e})},nonCharacterKey:function(e){if(!e.keyCode)return null;var t=e.keyCode;if(t>=112&&135>=t)return s.XK_F1+t-112;switch(t){case 8:return s.XK_BackSpace;case 13:return s.XK_Return;case 9:return s.XK_Tab;case 27:return s.XK_Escape;case 46:return s.XK_Delete;case 36:return s.XK_Home;case 35:return s.XK_End;case 33:return s.XK_Page_Up;case 34:return s.XK_Page_Down;case 45:return s.XK_Insert;case 37:return s.XK_Left;case 38:return s.XK_Up;case 39:return s.XK_Right;case 40:return s.XK_Down;case 16:return s.XK_Shift_L;case 17:return s.XK_Control_L;case 18:return s.XK_Alt_L;case 224:return s.XK_Meta_L;case 225:return s.XK_ISO_Level3_Shift;case 91:return s.XK_Super_L;case 92:return s.XK_Super_R;case 93:return s.XK_Menu;default:return null}},substituteCodepoint:function(e){var t={536:350,537:351,538:354,539:355},n=t[e];return n?n:e},KeyEventDecoder:function(e,t){function n(e){for(var n=0;ne;e++)this._FBU.zlibs[e]=new b,this._FBU.zlibs[e].init()},_print_stats:function(){o("_print_stats() | encoding stats for this connection:");var e,t;for(e=0;e0&&o("_print_stats() | "+this._encodings[e][0]+": "+t[0]+" rects");for(o("_print_stats() | encoding stats since page load:"),e=0;e0&&(null===this._msgTimer?(o("_handle_message() | more data to process, creating timer"),this._msgTimer=setTimeout(function(){this._msgTimer=null,this._handle_message()}.bind(this),10)):o("_handle_message() | more data to process, existing timer"));break;default:this._init_msg()}},_checkEvents:function(){"normal"===this._rfb_state&&!this._viewportDragging&&this._mouse_arr.length>0&&(this._sock.send(this._mouse_arr),this._mouse_arr=[])},_handleKeyPress:function(e,t){this._view_only||this._sock.send(r.messages.keyEvent(e,t))},_handleMouseButton:function(e,t,n,i){if(n?this._mouse_buttonMask|=i:this._mouse_buttonMask^=i,this._viewportDrag){if(n&&!this._viewportDragging)return this._viewportDragging=!0,void(this._viewportDragPos={x:e,y:t});this._viewportDragging=!1}this._view_only||(this._mouse_arr=this._mouse_arr.concat(r.messages.pointerEvent(this._display.absX(e),this._display.absY(t),this._mouse_buttonMask)),this._sock.send(this._mouse_arr),this._mouse_arr=[])},_handleMouseMove:function(e,t){if(this._viewportDragging){var n=this._viewportDragPos.x-e,i=this._viewportDragPos.y-t;return this._viewportDragPos={x:e,y:t},void this._display.viewportChangePos(n,i)}this._view_only||(this._mouse_arr=this._mouse_arr.concat(r.messages.pointerEvent(this._display.absX(e),this._display.absY(t),this._mouse_buttonMask)),this._checkEvents())},_negotiate_protocol_version:function(){if(this._sock.rQlen()<12)return this._fail("Incomplete protocol version");var e=this._sock.rQshiftStr(12).substr(4,7);o("_negotiate_protocol_version() | server ProtocolVersion: "+e);var t=0;switch(e){case"000.000":t=1;break;case"003.003":case"003.006":case"003.889":this._rfb_version=3.3;break;case"003.007":this._rfb_version=3.7;break;case"003.008":case"004.000":case"004.001":this._rfb_version=3.8;break;default:return this._fail("Invalid server version "+e)}if(t){for(var n=this._repeaterID;n.length<250;)n+="\x00";return this._sock.send_string(n),!0}this._rfb_version>this._rfb_max_version&&(this._rfb_version=this._rfb_max_version),this._sendTimer=setInterval(this._sock.flush.bind(this._sock),50);var r="00"+parseInt(this._rfb_version,10)+".00"+10*this._rfb_version%10;this._sock.send_string("RFB "+r+"\n"),this._updateState("Security","Sent ProtocolVersion: "+r)},_negotiate_security:function(){if(this._rfb_version>=3.7){var e=this._sock.rQshift8();if(this._sock.rQwait("security type",e,1))return!1;if(0===e){var t=this._sock.rQshift32(),n=this._sock.rQshiftStr(t);return this._fail("Security failure: "+n)}this._rfb_auth_scheme=0;var r=this._sock.rQshiftBytes(e);if(o("_negotiate_security() | server security types: "+r),this._forceAuthScheme)this._rfb_auth_scheme=this._forceAuthScheme;else for(var i=0;ithis._rfb_auth_scheme&&(r[i]<=16||22===r[i])&&(this._rfb_auth_scheme=r[i]);if(0===this._rfb_auth_scheme)return this._fail("Unsupported security types: "+r);this._sock.send([this._rfb_auth_scheme])}else{if(this._sock.rQwait("security scheme",4))return!1;this._rfb_auth_scheme=this._sock.rQshift32()}return this._updateState("Authentication","Authenticating using scheme: "+this._rfb_auth_scheme),this._init_msg()},_negotiate_xvp_auth:function(){var e=this._xvp_password_sep,t=this._rfb_password.split(e);if(t.length<3)return this._updateState("password","XVP credentials required (user"+e+"target"+e+"password) -- got only "+this._rfb_password),this._onPasswordRequired(this),!1;var n=String.fromCharCode(t[0].length)+String.fromCharCode(t[1].length)+t[0]+t[1];return this._sock.send_string(n),this._rfb_password=t.slice(2).join(e),this._rfb_auth_scheme=2,this._negotiate_authentication()},_negotiate_std_vnc_auth:function(){if(0===this._rfb_password.length&&(this._updateState("password","Password Required"),this._onPasswordRequired(this)),this._sock.rQwait("auth challenge",16))return!1;var e=this._sock.rQshiftBytes(16),t=r.genDES(this._rfb_password,e);return this._sock.send(t),this._updateState("SecurityResult"),!0},_negotiate_tight_tunnels:function(e){for(var t={0:{vendor:"TGHT",signature:"NOTUNNEL"}},n={},r=0;e>r;r++){var i=this._sock.rQshift32(),o=this._sock.rQshiftStr(4),a=this._sock.rQshiftStr(8);n[i]={vendor:o,signature:a}}return n[0]?n[0].vendor!==t[0].vendor||n[0].signature!==t[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")},_negotiate_tight_auth:function(){if(!this._rfb_tightvnc){if(this._sock.rQwait("num tunnels",4))return!1;var e=this._sock.rQshift32();if(e>0&&this._sock.rQwait("tunnel capabilities",16*e,4))return!1;if(this._rfb_tightvnc=!0,e>0)return this._negotiate_tight_tunnels(e),!1}if(this._sock.rQwait("sub auth count",4))return!1;var t=this._sock.rQshift32();if(this._sock.rQwait("sub auth capabilities",16*t,4))return!1;for(var n={STDVNOAUTH__:1,STDVVNCAUTH_:2},r=[],i=0;t>i;i++){var a=this._sock.rQshiftStr(12);r.push(a)}o("_negotiate_tight_auth() | clientSupportedTypes: %o",n),o("_negotiate_tight_auth() | serverSupportedTypes: %o",r);for(var s in n)if(-1!==r.indexOf(s))switch(this._sock.send([0,0,0,n[s]]),s){case"STDVNOAUTH__":return this._updateState("SecurityResult"),!0;case"STDVVNCAUTH_":return this._rfb_auth_scheme=2,this._init_msg();default:return this._fail("Unsupported tiny auth scheme: "+s)}this._fail("No supported sub-auth types!")},_negotiate_authentication:function(){switch(this._rfb_auth_scheme){case 0:if(this._sock.rQwait("auth reason",4))return!1;var e=this._sock.rQshift32(),t=this._sock.rQshiftStr(e);return this._fail("Auth failure: "+t);case 1:return this._rfb_version>=3.8?(this._updateState("SecurityResult"),!0):(this._updateState("ClientInitialisation","No auth required"),this._init_msg());case 22:return this._negotiate_xvp_auth();case 2:return this._negotiate_std_vnc_auth();case 16:return this._negotiate_tight_auth();default:return this._fail("Unsupported auth scheme: "+this._rfb_auth_scheme)}},_handle_security_result:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;switch(this._sock.rQshift32()){case 0:return this._updateState("ClientInitialisation","Authentication OK"),this._init_msg();case 1:if(this._rfb_version>=3.8){var e=this._sock.rQshift32();if(this._sock.rQwait("SecurityResult reason",e,8))return!1;var t=this._sock.rQshiftStr(e);return this._fail(t)}return this._fail("Authentication failure");case 2:return this._fail("Too many auth attempts")}},_negotiate_server_init:function(){if(this._sock.rQwait("server initialization",24))return!1;this._fb_width=this._sock.rQshift16(),this._fb_height=this._sock.rQshift16();var e=this._sock.rQshift8(),t=this._sock.rQshift8(),n=this._sock.rQshift8(),i=this._sock.rQshift8(),l=this._sock.rQshift16(),u=this._sock.rQshift16(),c=this._sock.rQshift16(),p=this._sock.rQshift8(),d=this._sock.rQshift8(),f=this._sock.rQshift8();this._sock.rQskipBytes(3);var h=this._sock.rQshift32();if(this._sock.rQwait("server init name",h,24))return!1; if(this._fb_name=s.decodeUTF8(this._sock.rQshiftStr(h)),this._rfb_tightvnc){if(this._sock.rQwait("TightVNC extended server init header",8,24+h))return!1;var m=this._sock.rQshift16(),b=this._sock.rQshift16(),y=this._sock.rQshift16();this._sock.rQskipBytes(2);var v=16*(m+b+y);if(this._sock.rQwait("TightVNC extended server init header",v,32+h))return!1;var g;for(g=0;m>g;g++)this._sock.rQshiftStr(16);for(g=0;b>g;g++)this._sock.rQshiftStr(16);for(g=0;y>g;g++)this._sock.rQshiftStr(16)}o("_negotiate_server_init() | screen: "+this._fb_width+"x"+this._fb_height+", bpp: "+e+", depth: "+t+", big_endian: "+n+", true_color: "+i+", red_max: "+l+", green_max: "+u+", blue_max: "+c+", red_shift: "+p+", green_shift: "+d+", blue_shift: "+f),0!==n&&a("_negotiate_server_init() | server native endian is not little endian"),16!==p&&a("_negotiate_server_init() | server native red-shift is not 16"),0!==f&&a("_negotiate_server_init() | server native blue-shift is not 0"),this._onDesktopName(this,this._fb_name),this._true_color&&"Intel(r) AMT KVM"===this._fb_name&&(a("_negotiate_server_init() | Intel AMT KVM only supports 8/16 bit depths, disabling true color"),this._true_color=!1),this._display.set_true_color(this._true_color),this._display.resize(this._fb_width,this._fb_height),this._onFBResize(this,this._fb_width,this._fb_height),this._keyboard.grab(),this._mouse.grab(),this._true_color?(this._fb_Bpp=4,this._fb_depth=3):(this._fb_Bpp=1,this._fb_depth=1);var _=r.messages.pixelFormat(this._fb_Bpp,this._fb_depth,this._true_color);_=_.concat(r.messages.clientEncodings(this._encodings,this._local_cursor,this._true_color)),_=_.concat(r.messages.fbUpdateRequests(this._display.getCleanDirtyReset(),this._fb_width,this._fb_height)),this._timing.fbu_rt_start=(new Date).getTime(),this._timing.pixels=0,this._sock.send(_),this._checkEvents(),this._updateState("normal","Connected to: "+this._fb_name)},_init_msg:function(){switch(this._rfb_state){case"ProtocolVersion":return this._negotiate_protocol_version();case"Security":return this._negotiate_security();case"Authentication":return this._negotiate_authentication();case"SecurityResult":return this._handle_security_result();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._updateState("ServerInitialisation","Authentication OK"),!0;case"ServerInitialisation":return this._negotiate_server_init()}},_handle_set_colour_map_msg:function(){o("_handle_set_colour_map_msg()"),this._sock.rQskip8();var e=this._sock.rQshift16(),t=this._sock.rQshift16();if(this._sock.rQwait("SetColorMapEntries",6*t,6))return!1;for(var n=0;t>n;n++){var r=parseInt(this._sock.rQshift16()/256,10),i=parseInt(this._sock.rQshift16()/256,10),a=parseInt(this._sock.rQshift16()/256,10);this._display.set_colourMap([a,i,r],e+n)}return o("_handle_set_colour_map_msg() | colourMap: "+this._display.get_colourMap()),o("_handle_set_colour_map_msg() | registered "+t+" colourMap entries"),!0},_handle_server_cut_text:function(){if(o("_handle_server_cut_text()"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var e=this._sock.rQshift32();if(this._sock.rQwait("ServerCutText",e,8))return!1;var t=this._sock.rQshiftStr(e);return this._onClipboard(this,t),!0},_handle_xvp_msg:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskip8();var e=this._sock.rQshift8(),t=this._sock.rQshift8();switch(t){case 0:this._updateState(this._rfb_state,"Operation Failed");break;case 1:this._rfb_xvp_ver=e,o("_handle_xvp_msg() | XVP extensions enabled (version "+this._rfb_xvp_ver+")"),this._onXvpInit(this._rfb_xvp_ver);break;default:this._fail("Disconnected: illegal server XVP message "+t)}return!0},_normal_msg:function(){var e;switch(e=this._FBU.rects>0?0:this._sock.rQshift8()){case 0:var t=this._framebufferUpdate();return t&&this._sock.send(r.messages.fbUpdateRequests(this._display.getCleanDirtyReset(),this._fb_width,this._fb_height)),t;case 1:return this._handle_set_colour_map_msg();case 2:return o("_normal_msg() | bell"),this._onBell(this),!0;case 3:return this._handle_server_cut_text();case 250:return this._handle_xvp_msg();default:if(!this._onUnknownMessageType)return this._fail("Disconnected: illegal server message type "+e),a("_normal_msg() | sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0;o("_normal_msg() | passing unknown message type "+e+" to the onUnknownMessageType listener");try{return this._onUnknownMessageType(e,this._sock)}catch(n){return a("_normal_msg() | error catched during onUnknownMessageType: %o",n),this._fail("Disconnected: invalid custom server message type "+e),a("_normal_msg() | sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}},_framebufferUpdate:function(){var e,t=!0;if(0===this._FBU.rects){if(this._sock.rQwait("FBU header",3,1))return!1;this._sock.rQskip8(),this._FBU.rects=this._sock.rQshift16(),this._FBU.bytes=0,this._timing.cur_fbu=0,this._timing.fbu_rt_start>0&&(e=(new Date).getTime(),o("_framebufferUpdate() | first FBU latency: "+(e-this._timing.fbu_rt_start)))}for(;this._FBU.rects>0;){if("normal"!==this._rfb_state)return!1;if(this._sock.rQwait("FBU",this._FBU.bytes))return!1;if(0===this._FBU.bytes){if(this._sock.rQwait("rect header",12))return!1;var n=this._sock.rQshiftBytes(12);if(this._FBU.x=(n[0]<<8)+n[1],this._FBU.y=(n[2]<<8)+n[3],this._FBU.width=(n[4]<<8)+n[5],this._FBU.height=(n[6]<<8)+n[7],this._FBU.encoding=parseInt((n[8]<<24)+(n[9]<<16)+(n[10]<<8)+n[11],10),this._onFBUReceive(this,{x:this._FBU.x,y:this._FBU.y,width:this._FBU.width,height:this._FBU.height,encoding:this._FBU.encoding,encodingName:this._encNames[this._FBU.encoding]}),!this._encNames[this._FBU.encoding])return this._fail("Disconnected: unsupported encoding "+this._FBU.encoding),!1}if(this._timing.last_fbu=(new Date).getTime(),t=this._encHandlers[this._FBU.encoding](),e=(new Date).getTime(),this._timing.cur_fbu+=e-this._timing.last_fbu,t&&(this._encStats[this._FBU.encoding][0]++,this._encStats[this._FBU.encoding][1]++,this._timing.pixels+=this._FBU.width*this._FBU.height),this._timing.pixels>=this._fb_width*this._fb_height&&((this._FBU.width===this._fb_width&&this._FBU.height===this._fb_height||this._timing.fbu_rt_start>0)&&(this._timing.full_fbu_total+=this._timing.cur_fbu,this._timing.full_fbu_cnt++,o("_framebufferUpdate() | timing of full FBU, curr: "+this._timing.cur_fbu+", total: "+this._timing.full_fbu_total+", cnt: "+this._timing.full_fbu_cnt+", avg: "+this._timing.full_fbu_total/this._timing.full_fbu_cnt)),this._timing.fbu_rt_start>0)){var r=e-this._timing.fbu_rt_start;this._timing.fbu_rt_total+=r,this._timing.fbu_rt_cnt++,o("_framebufferUpdate() | full FBU round-trip, cur: "+r+", total: "+this._timing.fbu_rt_total+", cnt: "+this._timing.fbu_rt_cnt+", avg: "+this._timing.fbu_rt_total/this._timing.fbu_rt_cnt),this._timing.fbu_rt_start=0}if(!t)return t}return this._onFBUComplete(this,{x:this._FBU.x,y:this._FBU.y,width:this._FBU.width,height:this._FBU.height,encoding:this._FBU.encoding,encodingName:this._encNames[this._FBU.encoding]}),!0}},s.make_properties(r,[["target","wo","dom"],["focusContainer","wo","dom"],["encrypt","rw","bool"],["true_color","rw","bool"],["local_cursor","rw","bool"],["shared","rw","bool"],["view_only","rw","bool"],["xvp_password_sep","rw","str"],["disconnectTimeout","rw","int"],["wsProtocols","rw","arr"],["repeaterID","rw","str"],["viewportDrag","rw","bool"],["forceAuthScheme","rw","int"],["enableMouseAndTouch","rw","bool"],["onUpdateState","rw","func"],["onPasswordRequired","rw","func"],["onClipboard","rw","func"],["onBell","rw","func"],["onFBUReceive","rw","func"],["onFBUComplete","rw","func"],["onFBResize","rw","func"],["onDesktopName","rw","func"],["onXvpInit","rw","func"],["onUnknownMessageType","rw","func"]]),r.prototype.set_local_cursor=function(e){!e||e in{0:1,no:1,"false":1}?(this._local_cursor=!1,this._display.disableLocalCursor()):this._display.get_cursor_uri()?this._local_cursor=!0:(o("browser does not support local cursor"),this._display.disableLocalCursor())},r.prototype.get_display=function(){return this._display},r.prototype.get_keyboard=function(){return this._keyboard},r.prototype.get_mouse=function(){return this._mouse},r.messages={keyEvent:function(e,t){var n=[4];return s.push8(n,t),s.push16(n,0),s.push32(n,e),n},pointerEvent:function(e,t,n){var r=[5];return s.push8(r,n),s.push16(r,e),s.push16(r,t),r},clientCutText:function(e){var t=[6];s.push8(t,0),s.push8(t,0),s.push8(t,0),s.push32(t,e.length);for(var n=e.length,r=0;n>r;r++)t.push(e.charCodeAt(r));return t},pixelFormat:function(e,t,n){var r=[0];return s.push8(r,0),s.push8(r,0),s.push8(r,0),s.push8(r,8*e),s.push8(r,8*t),s.push8(r,0),s.push8(r,n?1:0),s.push16(r,255),s.push16(r,255),s.push16(r,255),s.push8(r,16),s.push8(r,8),s.push8(r,0),s.push8(r,0),s.push8(r,0),s.push8(r,0),r},clientEncodings:function(e,t,n){var r,i=[];for(r=0;r0&&s.h>0&&(i="undefined"==typeof s.w?t:s.w,o="undefined"==typeof s.h?n:s.h,a=a.concat(r.messages.fbUpdateRequest(1,s.x,s.y,i,o)));for(var l=0;l0?this._FBU.bytes=this._FBU.width*this._fb_Bpp:(this._FBU.rects--,this._FBU.bytes=0),!0},COPYRECT:function(){return this._FBU.bytes=4,this._sock.rQwait("COPYRECT",4)?!1:(this._display.renderQ_push({type:"copy",old_x:this._sock.rQshift16(),old_y:this._sock.rQshift16(),x:this._FBU.x,y:this._FBU.y,width:this._FBU.width,height:this._FBU.height}),this._FBU.rects--,this._FBU.bytes=0,!0)},RRE:function(){var e;if(0===this._FBU.subrects){if(this._FBU.bytes=4+this._fb_Bpp,this._sock.rQwait("RRE",4+this._fb_Bpp))return!1;this._FBU.subrects=this._sock.rQshift32(),e=this._sock.rQshiftBytes(this._fb_Bpp),this._display.fillRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,e)}for(;this._FBU.subrects>0&&this._sock.rQlen()>=this._fb_Bpp+8;){e=this._sock.rQshiftBytes(this._fb_Bpp);var t=this._sock.rQshift16(),n=this._sock.rQshift16(),r=this._sock.rQshift16(),i=this._sock.rQshift16();this._display.fillRect(this._FBU.x+t,this._FBU.y+n,r,i,e),this._FBU.subrects--}if(this._FBU.subrects>0){var o=Math.min(this._rre_chunk_sz,this._FBU.subrects);this._FBU.bytes=(this._fb_Bpp+8)*o}else this._FBU.rects--,this._FBU.bytes=0;return!0},HEXTILE:function(){var e=this._sock.get_rQ(),t=this._sock.get_rQi();for(0===this._FBU.tiles&&(this._FBU.tiles_x=Math.ceil(this._FBU.width/16),this._FBU.tiles_y=Math.ceil(this._FBU.height/16),this._FBU.total_tiles=this._FBU.tiles_x*this._FBU.tiles_y,this._FBU.tiles=this._FBU.total_tiles);this._FBU.tiles>0;){if(this._FBU.bytes=1,this._sock.rQwait("HEXTILE subencoding",this._FBU.bytes))return!1;var n=e[t];if(n>30)return this._fail("Disconnected: illegal hextile subencoding "+n),!1;var r=0,i=this._FBU.total_tiles-this._FBU.tiles,a=i%this._FBU.tiles_x,s=Math.floor(i/this._FBU.tiles_x),l=this._FBU.x+16*a,u=this._FBU.y+16*s,c=Math.min(16,this._FBU.x+this._FBU.width-l),p=Math.min(16,this._FBU.y+this._FBU.height-u);if(1&n)this._FBU.bytes+=c*p*this._fb_Bpp;else if(2&n&&(this._FBU.bytes+=this._fb_Bpp),4&n&&(this._FBU.bytes+=this._fb_Bpp),8&n){if(this._FBU.bytes++,this._sock.rQwait("hextile subrects header",this._FBU.bytes))return!1;r=e[t+this._FBU.bytes-1],16&n?this._FBU.bytes+=r*(this._fb_Bpp+2):this._FBU.bytes+=2*r}if(this._sock.rQwait("hextile",this._FBU.bytes))return!1;if(this._FBU.subencoding=e[t],t++,0===this._FBU.subencoding)1&this._FBU.lastsubencoding?o("HEXTILE() | ignoring blank after RAW"):this._display.fillRect(l,u,c,p,this._FBU.background);else if(1&this._FBU.subencoding)this._display.blitImage(l,u,c,p,e,t),t+=this._FBU.bytes-1;else{if(2&this._FBU.subencoding&&(this._FBU.background=e.slice(t,t+this._fb_Bpp),t+=this._fb_Bpp),4&this._FBU.subencoding&&(this._FBU.foreground=e.slice(t,t+this._fb_Bpp),t+=this._fb_Bpp),this._display.startTile(l,u,c,p,this._FBU.background),8&this._FBU.subencoding){r=e[t],t++;for(var d=0;r>d;d++){var f;16&this._FBU.subencoding?(f=e.slice(t,t+this._fb_Bpp),t+=this._fb_Bpp):f=this._FBU.foreground;var h=e[t];t++;var m=h>>4,b=15&h,y=e[t];t++;var v=(y>>4)+1,g=(15&y)+1;this._display.subTile(m,b,v,g,f)}}this._display.finishTile()}this._sock.set_rQi(t),this._FBU.lastsubencoding=this._FBU.subencoding,this._FBU.bytes=0,this._FBU.tiles--}return 0===this._FBU.tiles&&this._FBU.rects--,!0},getTightCLength:function(e){var t=1,n=0;return n+=127&e[0],128&e[0]&&(t++,n+=(127&e[1])<<7,128&e[1]&&(t++,n+=e[2]<<14)),[t,n]},display_tight:function(e){if(1===this._fb_depth&&this._fail("Tight protocol handler only implements true color mode"),this._FBU.bytes=1,this._sock.rQwait("TIGHT compression-control",this._FBU.bytes))return!1;var t,n,s,l=0,u=-1,c=function(e){for(var t=0;4>t;t++)l>>t&1&&(this._FBU.zlibs[t].reset(),o("display_tight() | reset zlib stream "+t));var n=this._FBU.zlibs[u].uncompress(e,0);return 0!==n.status&&a("display_tight() | invalid data in zlib stream"),n.data}.bind(this),p=function(e,t,n,r,i){var o,a,s,l,u=[];if(2===t){var c=Math.floor((r+7)/8),p=Math.floor(r/8);for(a=0;i>a;a++){var d;for(o=0;p>o;o++)for(d=7;d>=0;d--)s=3*(a*r+8*o+7-d),l=3*(e[a*c+o]>>d&1),u[s]=n[l],u[s+1]=n[l+1],u[s+2]=n[l+2];for(d=7;d>=8-r%8;d--)s=3*(a*r+8*o+7-d),l=3*(e[a*c+o]>>d&1),u[s]=n[l],u[s+1]=n[l+1],u[s+2]=n[l+2]}}else for(a=0;i>a;a++)for(o=0;r>o;o++)s=3*(a*r+o),l=3*e[a*r+o],u[s]=n[l],u[s+1]=n[l+1],u[s+2]=n[l+2];return u}.bind(this),d=this._sock.get_rQ(),f=this._sock.get_rQi(),h=function(){var e=d[f+2]+1,i=e*this._fb_depth;if(this._FBU.bytes+=i,this._sock.rQwait("TIGHT palette "+t,this._FBU.bytes))return!1;var o=2>=e?1:8,a=Math.floor((this._FBU.width*o+7)/8),l=!1;if(a*this._FBU.height<12?(l=!0,n=[0,a*this._FBU.height]):n=r.encodingHandlers.getTightCLength(this._sock.rQslice(3+i,3+i+3)),this._FBU.bytes+=n[0]+n[1],this._sock.rQwait("TIGHT "+t,this._FBU.bytes))return!1;this._sock.rQskipBytes(3);var u=this._sock.rQshiftBytes(i);this._sock.rQskipBytes(n[0]),s=l?this._sock.rQshiftBytes(n[1]):c(this._sock.rQshiftBytes(n[1]));var h=p(s,e,u,this._FBU.width,this._FBU.height);return this._display.renderQ_push({type:"blitRgb",data:h,x:this._FBU.x,y:this._FBU.y,width:this._FBU.width,height:this._FBU.height}),!0}.bind(this),m=function(){var e=!1,i=this._FBU.width*this._FBU.height*this._fb_depth;return 12>i?(e=!0,n=[0,i]):n=r.encodingHandlers.getTightCLength(this._sock.rQslice(1,4)),this._FBU.bytes=1+n[0]+n[1],this._sock.rQwait("TIGHT "+t,this._FBU.bytes)?!1:(this._sock.rQshiftBytes(1+n[0]),s=e?this._sock.rQshiftBytes(n[1]):c(this._sock.rQshiftBytes(n[1])),this._display.renderQ_push({type:"blitRgb",data:s,x:this._FBU.x,y:this._FBU.y,width:this._FBU.width,height:this._FBU.height}),!0)}.bind(this),b=this._sock.rQpeek8();if(l=15&b,b>>=4,u=3&b,8===b)t="fill";else if(9===b)t="jpeg";else if(10===b)t="png";else if(4&b)t="filter";else{if(!(4>b))return this._fail("Illegal tight compression received, ctl: "+b);t="copy"}if(e&&("filter"===t||"copy"===t))return this._fail("filter/copy received in tightPNG mode");switch(t){case"fill":this._FBU.bytes+=this._fb_depth;break;case"jpeg":this._FBU.bytes+=3;break;case"png":this._FBU.bytes+=3;break;case"filter":this._FBU.bytes+=2;break;case"copy":}if(this._sock.rQwait("TIGHT "+t,this._FBU.bytes))return!1;switch(t){case"fill":this._sock.rQskip8();var y=this._sock.rQshiftBytes(this._fb_depth);this._display.renderQ_push({type:"fill",x:this._FBU.x,y:this._FBU.y,width:this._FBU.width,height:this._FBU.height,color:[y[2],y[1],y[0]]});break;case"png":case"jpeg":if(n=r.encodingHandlers.getTightCLength(this._sock.rQslice(1,4)),this._FBU.bytes=1+n[0]+n[1],this._sock.rQwait("TIGHT "+t,this._FBU.bytes))return!1;this._sock.rQskipBytes(1+n[0]);var v=new Image;v.src="data: image/"+t+i(this._sock.rQshiftBytes(n[1])),this._display.renderQ_push({type:"img",img:v,x:this._FBU.x,y:this._FBU.y}),v=null;break;case"filter":var g=d[f+1];if(1!==g)throw new Error("Unsupported tight subencoding received, filter: "+g);if(!h())return!1;break;case"copy":if(!m())return!1}return this._FBU.bytes=0,this._FBU.rects--,!0},TIGHT:function(){return this._encHandlers.display_tight(!1)},TIGHT_PNG:function(){return this._encHandlers.display_tight(!0)},last_rect:function(){return this._FBU.rects=0,!0},handle_FB_resize:function(){return this._fb_width=this._FBU.width,this._fb_height=this._FBU.height,this._display.resize(this._fb_width,this._fb_height),this._onFBResize(this,this._fb_width,this._fb_height),this._timing.fbu_rt_start=(new Date).getTime(),this._FBU.bytes=0,this._FBU.rects-=1,!0},ExtendedDesktopSize:function(){if(this._FBU.bytes=1,this._sock.rQwait("ExtendedDesktopSize",this._FBU.bytes))return!1;this._supportsSetDesktopSize=!0;var e=this._sock.rQpeek8();if(this._FBU.bytes=4+16*e,this._sock.rQwait("ExtendedDesktopSize",this._FBU.bytes))return!1;this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var t=0;e>t;t+=1)0===t?(this._screen_id=this._sock.rQshiftBytes(4),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._screen_flags=this._sock.rQshiftBytes(4)):this._sock.rQskipBytes(16);if(1===this._FBU.x&&0!==this._FBU.y){var n="";switch(this._FBU.y){case 1:n="resize is administratively prohibited";break;case 2:n="out of resources";break;case 3:n="invalid screen layout";break;default:n="unknown reason"}return o("ExtendedDesktopSize() | server did not accept the resize request: %s",n),!0}return this._encHandlers.handle_FB_resize(),!0},DesktopSize:function(){return o("DesktopSize()"),this._encHandlers.handle_FB_resize(),!0},Cursor:function(){o("Cursor()");var e=this._FBU.x,t=this._FBU.y,n=this._FBU.width,r=this._FBU.height,i=n*r*this._fb_Bpp,a=Math.floor((n+7)/8)*r;return this._FBU.bytes=i+a,this._sock.rQwait("cursor encoding",this._FBU.bytes)?!1:(this._display.changeCursor(this._sock.rQshiftBytes(i),this._sock.rQshiftBytes(a),e,t,n,r),this._FBU.bytes=0,this._FBU.rects--,!0)},JPEG_quality_lo:function(){a("JPEG_quality_lo() | server sent jpeg_quality pseudo-encoding")},compress_lo:function(){a("compress_lo() | server sent compress level pseudo-encoding")}}},{"./base64":282,"./des":283,"./display":284,"./input":285,"./keys":287,"./tinf":289,"./util":290,"./websock":291,debug:125}],289:[function(e,t,n){function r(){this.OK=0,this.DATA_ERROR=-3,this.WINDOW_SIZE=32768,this.TREE=function(){this.table=new Array(16),this.trans=new Array(288)},this.DATA=function(e){this.source="",this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=[],this.history=[],this.ltree=new e.TREE,this.dtree=new e.TREE},this.sltree=new this.TREE,this.sdtree=new this.TREE,this.length_bits=new Array(30),this.length_base=new Array(30),this.dist_bits=new Array(30),this.dist_base=new Array(30),this.clcidx=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],this.build_bits_base=function(e,t,n,r){var i,o;for(i=0;n>i;++i)e[i]=0;for(i=0;30-n>i;++i)e[i+n]=Math.floor(i/n);for(o=r,i=0;30>i;++i)t[i]=o,o+=1<n;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;24>n;++n)e.trans[n]=256+n;for(n=0;144>n;++n)e.trans[24+n]=n;for(n=0;8>n;++n)e.trans[168+n]=280+n;for(n=0;112>n;++n)e.trans[176+n]=144+n;for(n=0;5>n;++n)t.table[n]=0;for(t.table[5]=32,n=0;32>n;++n)t.trans[n]=n},this.build_tree=function(e,t,n,r){var i,o,a=new Array(16);for(i=0;16>i;++i)e.table[i]=0;for(i=0;r>i;++i)e.table[t[n+i]]++;for(e.table[0]=0,o=0,i=0;16>i;++i)a[i]=o,o+=e.table[i];for(i=0;r>i;++i)t[n+i]&&(e.trans[a[t[n+i]]++]=i)},this.getbit=function(e){var t;return e.bitcount--||(e.tag=255&e.source[e.sourceIndex++],e.bitcount=7),t=1&e.tag,e.tag>>=1,t},this.read_bits=function(e,t,n){if(!t)return n;var r=i(e.source,e.bitcount,e.tag,e.sourceIndex,t);return e.bitcount=r[0],e.tag=r[1],e.sourceIndex=r[2],r[3]+n},this.decode_symbol=function(e,t){for(;e.bitcount<16;)e.tag=e.tag|(255&e.source[e.sourceIndex++])<>i),++i,n+=t.table[i],r-=t.table[i];while(r>=0);return e.tag>>=i,e.bitcount-=i,t.trans[n+r]},this.decode_trees=function(e,t,n){var r,i,o,a,s,l,u=new this.TREE,c=new Array(320);for(r=this.read_bits(e,5,257),i=this.read_bits(e,5,1),o=this.read_bits(e,4,4),a=0;19>a;++a)c[a]=0;for(a=0;o>a;++a){var p=this.read_bits(e,3,0);c[this.clcidx[a]]=p}for(this.build_tree(u,c,0,19),s=0;r+i>s;){var d=this.decode_symbol(e,u);switch(d){case 16:var f=c[s-1];for(l=this.read_bits(e,2,3);l;--l)c[s++]=f;break;case 17:for(l=this.read_bits(e,3,3);l;--l)c[s++]=0;break;case 18:for(l=this.read_bits(e,7,11);l;--l)c[s++]=0;break;default:c[s++]=d}}this.build_tree(t,c,0,r),this.build_tree(n,c,r,i)},this.inflate_block_data=function(e,t,n){for(var r=e.dest,i=r.length;;){var o=this.decode_symbol(e,t);if(256===o)return this.OK;if(256>o)r[i++]=o,e.history.push(o);else{var a,s,l,u;if(o-=257,a=this.read_bits(e,this.length_bits[o],this.length_base[o]),s=this.decode_symbol(e,n),l=e.history.length-this.read_bits(e,this.dist_bits[s],this.dist_base[s]),0>l)throw new Error("Invalid zlib offset "+l);for(u=l;l+a>u;++u)r[i++]=e.history[u],e.history.push(e.history[u])}}},this.inflate_uncompressed_block=function(e){var t,n,r;if(e.bitcount>7){var i=Math.floor(e.bitcount/8);e.sourceIndex-=i,e.bitcount=0,e.tag=0}if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],n=e.source[e.sourceIndex+3],n=256*n+e.source[e.sourceIndex+2],t!==(65535&~n))return this.DATA_ERROR;for(e.sourceIndex+=4,r=t;r;--r)e.history.push(e.source[e.sourceIndex]),e.dest[e.dest.length]=e.source[e.sourceIndex++];return e.bitcount=0,this.OK},this.inflate_fixed_block=function(e){return this.inflate_block_data(e,this.sltree,this.sdtree)},this.inflate_dynamic_block=function(e){return this.decode_trees(e,e.ltree,e.dtree),this.inflate_block_data(e,e.ltree,e.dtree)},this.init=function(){this.build_fixed_trees(this.sltree,this.sdtree),this.build_bits_base(this.length_bits,this.length_base,4,3),this.build_bits_base(this.dist_bits,this.dist_base,2,1),this.length_bits[28]=0,this.length_base[28]=258,this.reset()},this.reset=function(){this.d=new this.DATA(this),delete this.header},this.uncompress=function(e,t){var n,r=this.d;r.source=e,r.sourceIndex=t,r.bitcount=0,r.dest=[],"undefined"==typeof this.header&&(this.header=this.read_bits(r,16,0));var i=0;do{var o,a;switch(n=this.getbit(r),o=this.read_bits(r,2,0)){case 0:a=this.inflate_uncompressed_block(r);break;case 1:a=this.inflate_fixed_block(r);break;case 2:a=this.inflate_dynamic_block(r);break;default:return{status:this.DATA_ERROR}}if(a!==this.OK)return{status:this.DATA_ERROR};i++}while(!n&&r.sourceIndext;)n|=(255&e[r++])<>16-i,n>>=i,t-=i,[t,n,r,o]}t.exports=r},{}],290:[function(e,t,n){(function(n){function r(e,t,n,r){function i(e){return e?function(n,r){"undefined"!=typeof r?this["_"+t][r]=e(n):this["_"+t]=e(n)}:function(e,n){"undefined"!=typeof n?this["_"+t][n]=e:this["_"+t]=e}}var o;o="arr"===r?function(e){return"undefined"!=typeof e?this["_"+t][e]:this["_"+t]}:function(){return this["_"+t]};var a;if("bool"===r)a=i(function(e){return e&&!(e in{0:1,no:1,"false":1})});else if("int"===r)a=i(function(e){return parseInt(e,10)});else if("float"===r)a=i(parseFloat);else if("str"===r)a=i(String);else if("func"===r)a=i(function(e){return e?e:function(){}});else{if("arr"!==r&&"dom"!==r&&"raw"!==r)throw new Error("unknown property type "+r);a=i()}"undefined"==typeof e["get_"+t]&&(e["get_"+t]=o),"undefined"==typeof e["set_"+t]&&("rw"===n?e["set_"+t]=a:"wo"===n&&(e["set_"+t]=function(e,n){if("undefined"!=typeof this["_"+t])throw new Error(t+" can only be set once");a.call(this,e,n)})),e["_raw_set_"+t]=function(e,t){a.call(this,e,t)}}var i=e("debug")("noVNC:Util"),o=e("debug")("noVNC:ERROR:Util");o.log=console.warn.bind(console);var a=null,s=t.exports={push8:function(e,t){e.push(255&t)},push16:function(e,t){e.push(t>>8&255,255&t)},push32:function(e,t){e.push(t>>24&255,t>>16&255,t>>8&255,255&t)},requestAnimationFrame:function(){return n.requestAnimationFrame?n.requestAnimationFrame.bind(n):n.webkitRequestAnimationFrame?n.webkitRequestAnimationFrame.bind(n):n.mozRequestAnimationFrame?n.mozRequestAnimationFrame.bind(n):n.oRequestAnimationFrame?n.oRequestAnimationFrame.bind(n):n.msRequestAnimationFrame?n.msRequestAnimationFrame.bind(n):function(e){setTimeout(e,1e3/60)}}(),make_properties:function(e,t){for(var n=0;nr){if(n){if(this._rQi0&&(this._websocket.send(this._encode_message()),this._sQ=[]),!0):(i("flush() | delaying send"),!1)},send:function(e){return this._sQ=this._sQ.concat(e),this.flush()},send_string:function(e){this.send(e.split("").map(function(e){return e.charCodeAt(0)}))},on:function(e,t){this._eventHandlers[e]=t},off:function(e){this._eventHandlers[e]=function(){}},init:function(e){this._rQ=[],this._rQi=0,this._sQ=[],this._websocket=null;var t=!1;"Uint8Array"in n&&"set"in Uint8Array.prototype&&(t=!0);var r=!1;if(n.WebSocket&&(a.safari&&Number(a.version)>0&&Number(a.version)<7?i("init() | Safari %d does not support binary WebSocket",Number(a.version)):r=!0),"undefined"==typeof e&&(e=r?["binary","base64"]:"base64"),!r){if("binary"===e)throw new Error("WebSocket binary sub-protocol requested but not supported");if("object"==typeof e){for(var s=[],l=0;l0))throw new Error("only WebSocket binary sub-protocol was requested and is not supported");e=s}}return e},open:function(e,t){var r=this;t=this.init(t),n.NativeWebSocket?(i("open() | using NativeWebSocket"),this._websocket=new n.NativeWebSocket(e,t)):(i("open() | not using NativeWebSocket"),this._websocket=new WebSocket(e,t)),t.indexOf("binary")>=0&&(this._websocket.binaryType="arraybuffer"),this._websocket.onmessage=function(e){r._recv_message(e)},this._websocket.onopen=function(){r._websocket.protocol?(i('onopen: server choose "%s" sub-protocol',r._websocket.protocol),r._mode=r._websocket.protocol,r._eventHandlers.open()):(o('onopen: server choose no sub-protocol, using "base64"'),r._mode="base64",r._eventHandlers.open())},this._websocket.onclose=function(e){i("onclose: %o",e),r._eventHandlers.close(e)},this._websocket.onerror=function(e){o("onerror: %o",e),r._eventHandlers.error(e)}},close:function(){this._websocket&&(this._websocket.readyState!==this._websocket.OPEN&&this._websocket.readyState!==this._websocket.CONNECTING||(i("close()"),this._websocket.close()),this._websocket.onmessage=function(){}); },_encode_message:function(){return"binary"===this._mode?new Uint8Array(this._sQ).buffer:s.encode(this._sQ)},_decode_message:function(e){if("binary"===this._mode)for(var t=new Uint8Array(e),n=0;n0?(this._eventHandlers.message(),this._rQ.length>this._rQmax&&(this._rQ=this._rQ.slice(this._rQi),this._rQi=0)):i("_recv_message() | ignoring empty message")}catch(t){o("_recv_message() | error: %o",t),"undefined"!=typeof t.name?this._eventHandlers.error(t.name+": "+t.message):this._eventHandlers.error(t)}}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./base64":282,bowser:28,debug:125}],292:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;10>n;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(o){return!1}}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=i()?Object.assign:function(e,t){for(var n,i,l=r(e),u=1;u=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,i="/"===a.charAt(0))}return n=t(r(n.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(e){var i=n.isAbsolute(e),o="/"===a(e,-1);return e=t(r(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),o=r(t.split("/")),a=Math.min(i.length,o.length),s=a,l=0;a>l;l++)if(i[l]!==o[l]){s=l;break}for(var u=[],l=s;lt&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:295}],294:[function(e,t,n){(function(e){"use strict";function n(e){var t=o.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",i=a.exec(r),s=i[1],l=i[2],u=i[3];return[n,s,l,u]}function r(e){return l.exec(e).slice(1)}var i="win32"===e.platform,o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,s={};s.parse=function(e){if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=n(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}};var l=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u={};u.parse=function(e){if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=r(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},i?t.exports=s.parse:t.exports=u.parse,t.exports.posix=u.parse,t.exports.win32=s.parse}).call(this,e("_process"))},{_process:295}],295:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(p===setTimeout)return setTimeout(e,0);if((p===r||!p)&&setTimeout)return p=setTimeout,setTimeout(e,0);try{return p(e,0)}catch(t){try{return p.call(null,e,0)}catch(t){return p.call(this,e,0)}}}function a(e){if(d===clearTimeout)return clearTimeout(e);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function s(){b&&h&&(b=!1,h.length?m=h.concat(m):y=-1,m.length&&l())}function l(){if(!b){var e=o(s);b=!0;for(var t=m.length;t;){for(h=m,m=[];++y1)for(var n=1;n1&&(r=n[0]+"@",e=n[1]),e=e.replace(N,".");var i=e.split("."),a=o(i,t).join(".");return r+a}function s(e){for(var t,n,r=[],i=0,o=e.length;o>i;)t=e.charCodeAt(i++),t>=55296&&56319>=t&&o>i?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function l(e){return o(e,function(e){var t="";return e>65535&&(e-=65536,t+=L(e>>>10&1023|55296),e=56320|1023&e),t+=L(e)}).join("")}function u(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:E}function c(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function p(e,t,n){var r=0;for(e=n?D(e/P):e>>1,e+=D(e/t);e>I*C>>1;r+=E)e=D(e/I);return D(r+(I+1)*e/(e+S))}function d(e){var t,n,r,o,a,s,c,d,f,h,m=[],b=e.length,y=0,v=x,g=M;for(n=e.lastIndexOf(k),0>n&&(n=0),r=0;n>r;++r)e.charCodeAt(r)>=128&&i("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;b>o;){for(a=y,s=1,c=E;o>=b&&i("invalid-input"),d=u(e.charCodeAt(o++)),(d>=E||d>D((T-y)/s))&&i("overflow"),y+=d*s,f=g>=c?w:c>=g+C?C:c-g,!(f>d);c+=E)h=E-f,s>D(T/h)&&i("overflow"),s*=h;t=m.length+1,g=p(y-a,t,0==a),D(y/t)>T-v&&i("overflow"),v+=D(y/t),y%=t,m.splice(y++,0,v)}return l(m)}function f(e){var t,n,r,o,a,l,u,d,f,h,m,b,y,v,g,_=[];for(e=s(e),b=e.length,t=x,n=0,a=M,l=0;b>l;++l)m=e[l],128>m&&_.push(L(m));for(r=o=_.length,o&&_.push(k);b>r;){for(u=T,l=0;b>l;++l)m=e[l],m>=t&&u>m&&(u=m);for(y=r+1,u-t>D((T-n)/y)&&i("overflow"),n+=(u-t)*y,t=u,l=0;b>l;++l)if(m=e[l],t>m&&++n>T&&i("overflow"),m==t){for(d=n,f=E;h=a>=f?w:f>=a+C?C:f-a,!(h>d);f+=E)g=d-h,v=E-h,_.push(L(c(h+g%v,0))),d=D(g/v);_.push(L(c(d,0))),a=p(n,y,r==o),n=0,++r}++n,++t}return _.join("")}function h(e){return a(e,function(e){return A.test(e)?d(e.slice(4).toLowerCase()):e})}function m(e){return a(e,function(e){return O.test(e)?"xn--"+f(e):e})}var b="object"==typeof n&&n&&!n.nodeType&&n,y="object"==typeof t&&t&&!t.nodeType&&t,v="object"==typeof e&&e;v.global!==v&&v.window!==v&&v.self!==v||(r=v);var g,_,T=2147483647,E=36,w=1,C=26,S=38,P=700,M=72,x=128,k="-",A=/^xn--/,O=/[^\x20-\x7E]/,N=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=E-w,D=Math.floor,L=String.fromCharCode;if(g={version:"1.4.1",ucs2:{decode:s,encode:l},decode:d,encode:f,toASCII:m,toUnicode:h},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return g});else if(b&&y)if(t.exports==b)y.exports=g;else for(_ in g)g.hasOwnProperty(_)&&(b[_]=g[_]);else r.punycode=g}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],297:[function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;u>c;++c){var p,d,f,h,m=e[c].replace(s,"%20"),b=m.indexOf(n);b>=0?(p=m.substr(0,b),d=m.substr(b+1)):(p=m,d=""),f=decodeURIComponent(p),h=decodeURIComponent(d),r(a,f)?i(a[f])?a[f].push(h):a[f]=[a[f],h]:a[f]=h}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],298:[function(e,t,n){"use strict";function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r0||l["default"].Children.count(e)>1||"string"==typeof e||"number"==typeof e},render:function(){var e,t=(e={"pull-right":this.props.pullRight},e[u.prefix(this.props)]=this.hasContent(),e);return l["default"].createElement("span",r({},this.props,{className:a["default"](this.props.className,t)}),this.props.children)}});n["default"]=d,t.exports=n["default"]},{"./utils/ValidComponentChildren":395,"./utils/bootstrapUtils":396,"babel-runtime/helpers/extends":20,"babel-runtime/helpers/interop-require-default":23,classnames:31,react:599}],303:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("react"),s=o(a),l=e("classnames"),u=o(l),c=e("./utils/ValidComponentChildren"),p=o(c),d=e("./BreadcrumbItem"),f=o(d),h=s["default"].createClass({displayName:"Breadcrumb",propTypes:{bsClass:s["default"].PropTypes.string},getDefaultProps:function(){return{bsClass:"breadcrumb"}},render:function(){var e=this.props,t=e.className,n=r(e,["className"]);return s["default"].createElement("ol",i({},n,{role:"navigation","aria-label":"breadcrumbs",className:u["default"](t,this.props.bsClass)}),p["default"].map(this.props.children,this.renderBreadcrumbItem))},renderBreadcrumbItem:function(e,t){return a.cloneElement(e,{key:e.key||t})}});h.Item=f["default"],n["default"]=h,t.exports=n["default"]},{"./BreadcrumbItem":304,"./utils/ValidComponentChildren":395,"babel-runtime/helpers/extends":20,"babel-runtime/helpers/interop-require-default":23,"babel-runtime/helpers/object-without-properties":25,classnames:31,react:599}],304:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/object-without-properties")["default"],i=e("babel-runtime/helpers/extends")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var a=e("classnames"),s=o(a),l=e("react"),u=o(l),c=e("./SafeAnchor"),p=o(c),d=u["default"].createClass({displayName:"BreadcrumbItem",propTypes:{active:u["default"].PropTypes.bool,id:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number]),linkId:u["default"].PropTypes.oneOfType([u["default"].PropTypes.string,u["default"].PropTypes.number]),href:u["default"].PropTypes.string,title:u["default"].PropTypes.node,target:u["default"].PropTypes.string},getDefaultProps:function(){return{active:!1}},render:function(){var e=this.props,t=e.active,n=e.className,o=e.id,a=e.linkId,l=e.children,c=e.href,d=e.title,f=e.target,h=r(e,["active","className","id","linkId","children","href","title","target"]),m={href:c,title:d,target:f,id:a};return u["default"].createElement("li",{id:o,className:s["default"](n,{active:t})},t?u["default"].createElement("span",h,l):u["default"].createElement(p["default"],i({},h,m),l))}});n["default"]=d,t.exports=n["default"]},{"./SafeAnchor":379,"babel-runtime/helpers/extends":20,"babel-runtime/helpers/interop-require-default":23,"babel-runtime/helpers/object-without-properties":25,classnames:31,react:599}],305:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/extends")["default"],a=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var s=e("classnames"),l=a(s),u=e("react"),c=a(u),p=e("react-prop-types/lib/elementType"),d=a(p),f=e("./styleMaps"),h=e("./utils/bootstrapUtils"),m=e("./SafeAnchor"),b=a(m),y=f.State.values().concat(f.DEFAULT,f.PRIMARY,f.LINK),v=["button","reset","submit"],g=function(e){function t(n,r){i(this,t),e.call(this,n,r)}return r(t,e),t.prototype.render=function(){var e,t=this.props.navDropdown?{}:h.getClassSet(this.props),n=void 0,r=h.prefix(this.props,"block");return t=o((e={active:this.props.active},e[r]=this.props.block,e),t),this.props.navItem?this.renderNavItem(t):(n=this.props.href||this.props.target||this.props.navDropdown?"renderAnchor":"renderButton",this[n](t))},t.prototype.renderAnchor=function(e){var t=this.props,n=t.disabled,r=t.href;return e.disabled=n,c["default"].createElement(b["default"],o({},this.props,{href:r||"#",className:l["default"](this.props.className,e)}),this.props.children)},t.prototype.renderButton=function(e){var t=this.props.componentClass||"button";return c["default"].createElement(t,o({},this.props,{type:this.props.type||"button",className:l["default"](this.props.className,e)}),this.props.children)},t.prototype.renderNavItem=function(e){var t={active:this.props.active};return c["default"].createElement("li",{className:l["default"](t)},this.renderAnchor(e))},t}(c["default"].Component);g.propTypes={active:c["default"].PropTypes.bool,disabled:c["default"].PropTypes.bool,block:c["default"].PropTypes.bool,navItem:c["default"].PropTypes.bool,navDropdown:c["default"].PropTypes.bool,onClick:c["default"].PropTypes.func,componentClass:d["default"],href:c["default"].PropTypes.string,target:c["default"].PropTypes.string,type:c["default"].PropTypes.oneOf(v)},g.defaultProps={active:!1,block:!1,disabled:!1,navItem:!1,navDropdown:!1},g.types=v,n["default"]=h.bsStyles(y,f.DEFAULT,h.bsSizes([f.Sizes.LARGE,f.Sizes.SMALL,f.Sizes.XSMALL],h.bsClass("btn",g))),t.exports=n["default"]},{"./SafeAnchor":379,"./styleMaps":392,"./utils/bootstrapUtils":396,"babel-runtime/helpers/class-call-check":17,"babel-runtime/helpers/extends":20,"babel-runtime/helpers/inherits":22,"babel-runtime/helpers/interop-require-default":23,classnames:31,react:599,"react-prop-types/lib/elementType":428}],306:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/extends")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var o=e("classnames"),a=i(o),s=e("react"),l=i(s),u=e("react-prop-types/lib/all"),c=i(u),p=e("./utils/bootstrapUtils"),d=e("./Button"),f=i(d),h=l["default"].createClass({displayName:"ButtonGroup",propTypes:{vertical:l["default"].PropTypes.bool,justified:l["default"].PropTypes.bool,block:c["default"](l["default"].PropTypes.bool,function(e){return e.block&&!e.vertical?new Error("The block property requires the vertical property to be set to have any effect"):void 0})},getDefaultProps:function(){return{block:!1,justified:!1,vertical:!1}},render:function(){var e=p.getClassSet(this.props);return e[p.prefix(this.props)]=!this.props.vertical,e[p.prefix(this.props,"vertical")]=this.props.vertical,e[p.prefix(this.props,"justified")]=this.props.justified,e[p.prefix(f["default"].defaultProps,"block")]=this.props.block,l["default"].createElement("div",r({},this.props,{className:a["default"](this.props.className,e)}),this.props.children)}});n["default"]=p.bsClass("btn-group",h),t.exports=n["default"]},{"./Button":305,"./utils/bootstrapUtils":396,"babel-runtime/helpers/extends":20,"babel-runtime/helpers/interop-require-default":23,classnames:31,react:599,"react-prop-types/lib/all":425}],307:[function(e,t,n){"use strict";var r=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/object-without-properties")["default"],a=e("babel-runtime/helpers/extends")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];n.__esModule=!0;var l=e("react"),u=s(l),c=e("./Button"),p=s(c),d=e("./FormGroup"),f=s(d),h=e("./InputBase"),m=s(h),b=e("./utils/childrenValueInputValidation"),y=s(b),v=e("./utils/deprecationWarning"),g=s(v),_=function(e){function t(){i(this,t),e.apply(this,arguments)}return r(t,e),t.prototype.renderFormGroup=function(e){var t=this.props,n=(t.bsStyle,t.value,o(t,["bsStyle","value"]));return u["default"].createElement(f["default"],n,e)},t.prototype.renderInput=function(){var e=this.props,t=e.children,n=e.value,r=o(e,["children","value"]),i=t?t:n;return u["default"].createElement(p["default"],a({},r,{componentClass:"input",ref:"input",key:"input",value:i}))},t}(m["default"]);_.types=p["default"].types,_.defaultProps={type:"button"},_.propTypes={type:u["default"].PropTypes.oneOf(_.types),bsStyle:function(){return null},children:y["default"],value:y["default"]},n["default"]=g["default"].wrapper(_,"``","`