17 lines
213 KiB
JavaScript
17 lines
213 KiB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(this,function(e,t){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(131)},,function(t,r){t.exports=e},function(e,t,r){e.exports=r(148)()},,,function(e,t,r){var n,o;/*!
|
|
Copyright (c) 2016 Jed Watson.
|
|
Licensed under the MIT License (MIT), see
|
|
http://jedwatson.github.io/classnames
|
|
*/
|
|
!function(){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n))e.push(r.apply(null,n));else if("object"===o)for(var a in n)i.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=r:(n=[],o=function(){return r}.apply(t,n),!(void 0!==o&&(e.exports=o)))}()},function(e,t){"use strict";e.exports={getColumn:function(e,t){return Array.isArray(e)?e[t]:"undefined"!=typeof Immutable?e.get(t):void 0},spliceColumn:function(e,t,r){return Array.isArray(e.columns)?e.columns.splice(t,1,r):"undefined"!=typeof Immutable&&(e.columns=e.columns.splice(t,1,r)),e},getSize:function(e){return Array.isArray(e)?e.length:"undefined"!=typeof Immutable?e.size:void 0},canEdit:function(e,t,r){return!!e&&(null!=e.editable&&"function"==typeof e.editable?r===!0&&e.editable(t):!(r!==!0||!e.editor&&!e.editable))},getValue:function(e,t){var r=void 0;return r=e.toJSON&&e.get?e.get(t):e[t]}}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},function(e,t,r){function n(e,t){for(var r=0;r<e.length;r++){var n=e[r],o=f[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(u(n.parts[i],t))}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(u(n.parts[i],t));f[n.id]={id:n.id,refs:1,parts:a}}}}function o(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n],i=o[0],a=o[1],s=o[2],l=o[3],u={css:a,media:s,sourceMap:l};r[i]?r[i].parts.push(u):t.push(r[i]={id:i,parts:[u]})}return t}function i(e,t){var r=v(),n=m[m.length-1];if("top"===e.insertAt)n?n.nextSibling?r.insertBefore(t,n.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),m.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=m.indexOf(e);t>=0&&m.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var r,n,o;if(t.singleton){var i=w++;r=y||(y=s(t)),n=c.bind(null,r,i,!1),o=c.bind(null,r,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=l(t),n=d.bind(null,r),o=function(){a(r),r.href&&URL.revokeObjectURL(r.href)}):(r=s(t),n=p.bind(null,r),o=function(){a(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}function c(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t){var r=t.css,n=t.media;if(n&&e.setAttribute("media",n),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function d(e,t){var r=t.css,n=t.sourceMap;n&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var o=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var f={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},g=h(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,w=0,m=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=g()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var r=o(e);return n(r,t),function(e){for(var i=[],a=0;a<r.length;a++){var s=r[a],l=f[s.id];l.refs--,i.push(l)}if(e){var u=o(e);n(u,t)}for(var a=0;a<i.length;a++){var l=i[a];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete f[l.id]}}}};var b=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,r){e.exports=t},,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var o=r(3),i=n(o);e.exports={selected:i.default.object.isRequired,copied:i.default.object,dragged:i.default.object,onCellClick:i.default.func.isRequired,onCellDoubleClick:i.default.func.isRequired,onCommit:i.default.func.isRequired,onCommitCancel:i.default.func.isRequired,handleDragEnterRow:i.default.func.isRequired,handleTerminateDrag:i.default.func.isRequired,getCellActions:i.default.func}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var o=r(3),i=n(o),a={name:i.default.node.isRequired,key:i.default.string.isRequired,width:i.default.number.isRequired,filterable:i.default.bool};e.exports=a},,function(e,t){"use strict";function r(e,t){for(var r={},n=t,o=Array.isArray(n),i=0,n=o?n:n[Symbol.iterator]();;){var a;if(o){if(i>=n.length)break;a=n[i++]}else{if(i=n.next(),i.done)break;a=i.value}var s=a;s in e&&(r[s]=e[s])}return r}e.exports=r},function(e,t,r){var n=r(142);"string"==typeof n&&(n=[[e.id,n,""]]);r(9)(n,{});n.locals&&(e.exports=n.locals)},,,function(e,t,r){!function(t,r){e.exports=r()}(this,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return i(e)?e:O(e)}function r(e){return a(e)?e:M(e)}function n(e){return s(e)?e:k(e)}function o(e){return i(e)&&!l(e)?e:A(e)}function i(e){return!(!e||!e[lr])}function a(e){return!(!e||!e[ur])}function s(e){return!(!e||!e[cr])}function l(e){return a(e)||s(e)}function u(e){return!(!e||!e[pr])}function c(e){return e.value=!1,e}function p(e){e&&(e.value=!0)}function d(){}function f(e,t){t=t||0;for(var r=Math.max(0,e.length-t),n=new Array(r),o=0;o<r;o++)n[o]=e[o+t];return n}function h(e){return void 0===e.size&&(e.size=e.__iterate(v)),e.size}function g(e,t){if("number"!=typeof t){var r=t>>>0;if(""+r!==t||4294967295===r)return NaN;t=r}return t<0?h(e)+t:t}function v(){return!0}function y(e,t,r){return(0===e||void 0!==r&&e<=-r)&&(void 0===t||void 0!==r&&t>=r)}function w(e,t){return b(e,t,0)}function m(e,t){return b(e,t,t)}function b(e,t,r){return void 0===e?r:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function _(e){this.next=e}function C(e,t,r,n){var o=0===e?t:1===e?r:[t,r];return n?n.value=o:n={value:o,done:!1},n}function x(){return{value:void 0,done:!0}}function S(e){return!!D(e)}function R(e){return e&&"function"==typeof e.next}function I(e){var t=D(e);return t&&t.call(e)}function D(e){var t=e&&(Cr&&e[Cr]||e[xr]);if("function"==typeof t)return t}function E(e){return e&&"number"==typeof e.length}function O(e){return null===e||void 0===e?q():i(e)?e.toSeq():K(e)}function M(e){return null===e||void 0===e?q().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():H(e)}function k(e){return null===e||void 0===e?q():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():L(e)}function A(e){return(null===e||void 0===e?q():i(e)?a(e)?e.entrySeq():e:L(e)).toSetSeq()}function T(e){this._array=e,this.size=e.length}function j(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function z(e){this._iterable=e,this.size=e.length||e.size}function N(e){this._iterator=e,this._iteratorCache=[]}function P(e){return!(!e||!e[Rr])}function q(){return Ir||(Ir=new T([]))}function H(e){var t=Array.isArray(e)?new T(e).fromEntrySeq():R(e)?new N(e).fromEntrySeq():S(e)?new z(e).fromEntrySeq():"object"==typeof e?new j(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function L(e){var t=U(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function K(e){var t=U(e)||"object"==typeof e&&new j(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function U(e){return E(e)?new T(e):R(e)?new N(e):S(e)?new z(e):void 0}function G(e,t,r,n){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[r?i-a:a];if(t(s[1],n?s[0]:a,e)===!1)return a+1}return a}return e.__iterateUncached(t,r)}function W(e,t,r,n){var o=e._cache;if(o){var i=o.length-1,a=0;return new _(function(){var e=o[r?i-a:a];return a++>i?x():C(t,n?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,r)}function F(e,t){return t?V(t,e,"",{"":e}):B(e)}function V(e,t,r,n){return Array.isArray(t)?e.call(n,r,k(t).map(function(r,n){return V(e,r,n,t)})):J(t)?e.call(n,r,M(t).map(function(r,n){return V(e,r,n,t)})):t}function B(e){return Array.isArray(e)?k(e).map(B).toList():J(e)?M(e).map(B).toMap():e}function J(e){return e&&(e.constructor===Object||void 0===e.constructor)}function Y(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 X(e,t){if(e===t)return!0;if(!i(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 r=!l(e);if(u(e)){var n=e.entries();return t.every(function(e,t){var o=n.next().value;return o&&Y(o[1],e)&&(r||Y(o[0],t))})&&n.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var c=e;e=t,t=c}var p=!0,d=t.__iterate(function(t,n){if(r?!e.has(t):o?!Y(t,e.get(n,vr)):!Y(e.get(n,vr),t))return p=!1,!1});return p&&e.size===d}function Z(e,t){if(!(this instanceof Z))return new Z(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Dr)return Dr;Dr=this}}function Q(e,t){if(!e)throw new Error(t)}function $(e,t,r){if(!(this instanceof $))return new $(e,t,r);if(Q(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),r=void 0===r?1:Math.abs(r),t<e&&(r=-r),this._start=e,this._end=t,this._step=r,this.size=Math.max(0,Math.ceil((t-e)/r-1)+1),0===this.size){if(Er)return Er;Er=this}}function ee(){throw TypeError("Abstract")}function te(){}function re(){}function ne(){}function oe(e){return e>>>1&1073741824|3221225471&e}function ie(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 r=0|e;for(r!==e&&(r^=4294967295*e);e>4294967295;)e/=4294967295,r^=e;return oe(r)}if("string"===t)return e.length>Nr?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=Hr[e];return void 0===t&&(t=se(e),qr===Pr&&(qr=0,Hr={}),qr++,Hr[e]=t),t}function se(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return oe(t)}function le(e){var t;if(Tr&&(t=Or.get(e),void 0!==t))return t;if(t=e[zr],void 0!==t)return t;if(!Ar){if(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[zr],void 0!==t)return t;if(t=ue(e),void 0!==t)return t}if(t=++jr,1073741824&jr&&(jr=0),Tr)Or.set(e,t);else{if(void 0!==kr&&kr(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Ar)Object.defineProperty(e,zr,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[zr]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[zr]=t}}return t}function ue(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ce(e){Q(e!==1/0,"Cannot perform this action with an infinite size.")}function pe(e){return null===e||void 0===e?Ce():de(e)&&!u(e)?e:Ce().withMutations(function(t){var n=r(e);ce(n.size),n.forEach(function(e,r){return t.set(r,e)})})}function de(e){return!(!e||!e[Lr])}function fe(e,t){this.ownerID=e,this.entries=t}function he(e,t,r){this.ownerID=e,this.bitmap=t,this.nodes=r}function ge(e,t,r){this.ownerID=e,this.count=t,this.nodes=r}function ve(e,t,r){this.ownerID=e,this.keyHash=t,this.entries=r}function ye(e,t,r){this.ownerID=e,this.keyHash=t,this.entry=r}function we(e,t,r){this._type=t,this._reverse=r,this._stack=e._root&&be(e._root)}function me(e,t){return C(e,t[0],t[1])}function be(e,t){return{node:e,index:0,__prev:t}}function _e(e,t,r,n){var o=Object.create(Kr);return o.size=e,o._root=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function Ce(){return Ur||(Ur=_e(0))}function xe(e,t,r){var n,o;if(e._root){var i=c(yr),a=c(wr);if(n=Se(e._root,e.__ownerID,0,void 0,t,r,i,a),!a.value)return e;o=e.size+(i.value?r===vr?-1:1:0)}else{if(r===vr)return e;o=1,n=new fe(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=o,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?_e(o,n):Ce()}function Se(e,t,r,n,o,i,a,s){return e?e.update(t,r,n,o,i,a,s):i===vr?e:(p(s),p(a),new ye(t,n,[o,i]))}function Re(e){return e.constructor===ye||e.constructor===ve}function Ie(e,t,r,n,o){if(e.keyHash===n)return new ve(t,n,[e.entry,o]);var i,a=(0===r?e.keyHash:e.keyHash>>>r)&gr,s=(0===r?n:n>>>r)&gr,l=a===s?[Ie(e,t,r+fr,n,o)]:(i=new ye(t,n,o),a<s?[e,i]:[i,e]);return new he(t,1<<a|1<<s,l)}function De(e,t,r,n){e||(e=new d);for(var o=new ye(e,ie(r),[r,n]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function Ee(e,t,r,n){for(var o=0,i=0,a=new Array(r),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==n&&(o|=l,a[i++]=c)}return new he(e,o,a)}function Oe(e,t,r,n,o){for(var i=0,a=new Array(hr),s=0;0!==r;s++,r>>>=1)a[s]=1&r?t[i++]:void 0;return a[n]=o,new ge(e,i+1,a)}function Me(e,t,n){for(var o=[],a=0;a<n.length;a++){var s=n[a],l=r(s);i(s)||(l=l.map(function(e){return F(e)})),o.push(l)}return Te(e,t,o)}function ke(e,t,r){return e&&e.mergeDeep&&i(t)?e.mergeDeep(t):Y(e,t)?e:t}function Ae(e){return function(t,r,n){if(t&&t.mergeDeepWith&&i(r))return t.mergeDeepWith(e,r);var o=e(t,r,n);return Y(t,o)?t:o}}function Te(e,t,r){return r=r.filter(function(e){return 0!==e.size}),0===r.length?e:0!==e.size||e.__ownerID||1!==r.length?e.withMutations(function(e){for(var n=t?function(r,n){e.update(n,vr,function(e){return e===vr?r:t(e,r,n)})}:function(t,r){e.set(r,t)},o=0;o<r.length;o++)r[o].forEach(n)}):e.constructor(r[0])}function je(e,t,r,n){var o=e===vr,i=t.next();if(i.done){var a=o?r:e,s=n(a);return s===a?e:s}Q(o||e&&e.set,"invalid keyPath");var l=i.value,u=o?vr:e.get(l,vr),c=je(u,t,r,n);return c===u?e:c===vr?e.remove(l):(o?Ce():e).set(l,c)}function ze(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function Ne(e,t,r,n){var o=n?e:f(e);return o[t]=r,o}function Pe(e,t,r,n){var o=e.length+1;if(n&&t+1===o)return e[t]=r,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=r,a=-1):i[s]=e[s+a];return i}function qe(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var o=new Array(n),i=0,a=0;a<n;a++)a===t&&(i=1),o[a]=e[a+i];return o}function He(e){var t=We();if(null===e||void 0===e)return t;if(Le(e))return e;var r=n(e),o=r.size;return 0===o?t:(ce(o),o>0&&o<hr?Ge(0,o,fr,null,new Ke(r.toArray())):t.withMutations(function(e){e.setSize(o),r.forEach(function(t,r){return e.set(r,t)})}))}function Le(e){return!(!e||!e[Vr])}function Ke(e,t){this.array=e,this.ownerID=t}function Ue(e,t){function r(e,t,r){return 0===t?n(e,r):o(e,t,r)}function n(e,r){var n=r===s?l&&l.array:e&&e.array,o=r>i?0:i-r,u=a-r;return u>hr&&(u=hr),function(){if(o===u)return Yr;var e=t?--u:o++;return n&&n[e]}}function o(e,n,o){var s,l=e&&e.array,u=o>i?0:i-o>>n,c=(a-o>>n)+1;return c>hr&&(c=hr),function(){for(;;){if(s){var e=s();if(e!==Yr)return e;s=null}if(u===c)return Yr;var i=t?--c:u++;s=r(l&&l[i],n-fr,o+(i<<n))}}}var i=e._origin,a=e._capacity,s=Ze(a),l=e._tail;return r(e._root,e._level,0)}function Ge(e,t,r,n,o,i,a){var s=Object.create(Br);return s.size=t-e,s._origin=e,s._capacity=t,s._level=r,s._root=n,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function We(){return Jr||(Jr=Ge(0,0,fr))}function Fe(e,t,r){if(t=g(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Ye(e,t).set(0,r):Ye(e,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,o=e._root,i=c(wr);return t>=Ze(e._capacity)?n=Ve(n,e.__ownerID,0,t,r,i):o=Ve(o,e.__ownerID,e._level,t,r,i),i.value?e.__ownerID?(e._root=o,e._tail=n,e.__hash=void 0,e.__altered=!0,e):Ge(e._origin,e._capacity,e._level,o,n):e}function Ve(e,t,r,n,o,i){var a=n>>>r&gr,s=e&&a<e.array.length;if(!s&&void 0===o)return e;var l;if(r>0){var u=e&&e.array[a],c=Ve(u,t,r-fr,n,o,i);return c===u?e:(l=Be(e,t),l.array[a]=c,l)}return s&&e.array[a]===o?e:(p(i),l=Be(e,t),void 0===o&&a===l.array.length-1?l.array.pop():l.array[a]=o,l)}function Be(e,t){return t&&e&&t===e.ownerID?e:new Ke(e?e.array.slice():[],t)}function Je(e,t){if(t>=Ze(e._capacity))return e._tail;if(t<1<<e._level+fr){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&gr],n-=fr;return r}}function Ye(e,t,r){void 0!==t&&(t|=0),void 0!==r&&(r|=0);var n=e.__ownerID||new d,o=e._origin,i=e._capacity,a=o+t,s=void 0===r?i:r<0?i+r:o+r;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new Ke(u&&u.array.length?[void 0,u]:[],n),l+=fr,c+=1<<l;c&&(a+=c,o+=c,s+=c,i+=c);for(var p=Ze(i),f=Ze(s);f>=1<<l+fr;)u=new Ke(u&&u.array.length?[u]:[],n),l+=fr;var h=e._tail,g=f<p?Je(e,s-1):f>p?new Ke([],n):h;if(h&&f>p&&a<i&&h.array.length){u=Be(u,n);for(var v=u,y=l;y>fr;y-=fr){var w=p>>>y&gr;v=v.array[w]=Be(v.array[w],n)}v.array[p>>>fr&gr]=h}if(s<i&&(g=g&&g.removeAfter(n,0,s)),a>=f)a-=f,s-=f,l=fr,u=null,g=g&&g.removeBefore(n,0,a);else if(a>o||f<p){for(c=0;u;){var m=a>>>l&gr;if(m!==f>>>l&gr)break;m&&(c+=(1<<l)*m),l-=fr,u=u.array[m]}u&&a>o&&(u=u.removeBefore(n,l,a-c)),u&&f<p&&(u=u.removeAfter(n,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=g,e.__hash=void 0,e.__altered=!0,e):Ge(a,s,l,u,g)}function Xe(e,t,r){for(var o=[],a=0,s=0;s<r.length;s++){var l=r[s],u=n(l);u.size>a&&(a=u.size),i(l)||(u=u.map(function(e){return F(e)})),o.push(u)}return a>e.size&&(e=e.setSize(a)),Te(e,t,o)}function Ze(e){return e<hr?0:e-1>>>fr<<fr}function Qe(e){return null===e||void 0===e?tt():$e(e)?e:tt().withMutations(function(t){var n=r(e);ce(n.size),n.forEach(function(e,r){return t.set(r,e)})})}function $e(e){return de(e)&&u(e)}function et(e,t,r,n){var o=Object.create(Qe.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=r,o.__hash=n,o}function tt(){return Xr||(Xr=et(Ce(),We()))}function rt(e,t,r){var n,o,i=e._map,a=e._list,s=i.get(t),l=void 0!==s;if(r===vr){if(!l)return e;a.size>=hr&&a.size>=2*i.size?(o=a.filter(function(e,t){return void 0!==e&&s!==t}),n=o.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(n.__ownerID=o.__ownerID=e.__ownerID)):(n=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(r===a.get(s)[1])return e;n=i,o=a.set(s,[t,r])}else n=i.set(t,a.size),o=a.set(a.size,[t,r]);return e.__ownerID?(e.size=n.size,e._map=n,e._list=o,e.__hash=void 0,e):et(n,o)}function nt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function st(e){var t=Et(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=Ot,t.__iterateUncached=function(t,r){var n=this;return e.__iterate(function(e,r){return t(r,e,n)!==!1},r)},t.__iteratorUncached=function(t,r){if(t===_r){var n=e.__iterator(t,r);return new _(function(){var e=n.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===br?mr:br,r)},t}function lt(e,t,r){var n=Et(e);return n.size=e.size,n.has=function(t){return e.has(t)},n.get=function(n,o){var i=e.get(n,vr);return i===vr?o:t.call(r,i,n,e)},n.__iterateUncached=function(n,o){var i=this;return e.__iterate(function(e,o,a){return n(t.call(r,e,o,a),o,i)!==!1},o)},n.__iteratorUncached=function(n,o){var i=e.__iterator(_r,o);return new _(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return C(n,s,t.call(r,a[1],s,e),o)})},n}function ut(e,t){var r=Et(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=st(e);return t.reverse=function(){return e.flip()},t}),r.get=function(r,n){return e.get(t?r:-1-r,n)},r.has=function(r){return e.has(t?r:-1-r)},r.includes=function(t){return e.includes(t)},r.cacheResult=Ot,r.__iterate=function(t,r){var n=this;return e.__iterate(function(e,r){return t(e,r,n)},!r)},r.__iterator=function(t,r){return e.__iterator(t,!r)},r}function ct(e,t,r,n){var o=Et(e);return n&&(o.has=function(n){var o=e.get(n,vr);return o!==vr&&!!t.call(r,o,n,e)},o.get=function(n,o){var i=e.get(n,vr);return i!==vr&&t.call(r,i,n,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,l){if(t.call(r,e,i,l))return s++,o(e,n?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(_r,i),s=0;return new _(function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,u=l[0],c=l[1];if(t.call(r,c,u,e))return C(o,n?u:s++,c,i)}})},o}function pt(e,t,r){var n=pe().asMutable();return e.__iterate(function(o,i){n.update(t.call(r,o,i,e),0,function(e){return e+1})}),n.asImmutable()}function dt(e,t,r){var n=a(e),o=(u(e)?Qe():pe()).asMutable();e.__iterate(function(i,a){o.update(t.call(r,i,a,e),function(e){return e=e||[],e.push(n?[a,i]:i),e})});var i=Dt(e);return o.map(function(t){return St(e,i(t))})}function ft(e,t,r,n){var o=e.size;if(void 0!==t&&(t|=0),void 0!==r&&(r===1/0?r=o:r|=0),y(t,r,o))return e;var i=w(t,o),a=m(r,o);if(i!==i||a!==a)return ft(e.toSeq().cacheResult(),t,r,n);var s,l=a-i;l===l&&(s=l<0?0:l);var u=Et(e);return u.size=0===s?s:e.size&&s||void 0,!n&&P(e)&&s>=0&&(u.get=function(t,r){return t=g(this,t),t>=0&&t<s?e.get(t+i,r):r}),u.__iterateUncached=function(t,r){var o=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(t,r);var a=0,l=!0,u=0;return e.__iterate(function(e,r){if(!l||!(l=a++<i))return u++,t(e,n?r:u-1,o)!==!1&&u!==s}),u},u.__iteratorUncached=function(t,r){if(0!==s&&r)return this.cacheResult().__iterator(t,r);var o=0!==s&&e.__iterator(t,r),a=0,l=0;return new _(function(){for(;a++<i;)o.next();if(++l>s)return x();var e=o.next();return n||t===br?e:t===mr?C(t,l-1,void 0,e):C(t,l-1,e.value[1],e)})},u}function ht(e,t,r){var n=Et(e);return n.__iterateUncached=function(n,o){var i=this;if(o)return this.cacheResult().__iterate(n,o);var a=0;return e.__iterate(function(e,o,s){return t.call(r,e,o,s)&&++a&&n(e,o,i)}),a},n.__iteratorUncached=function(n,o){var i=this;if(o)return this.cacheResult().__iterator(n,o);var a=e.__iterator(_r,o),s=!0;return new _(function(){if(!s)return x();var e=a.next();if(e.done)return e;var o=e.value,l=o[0],u=o[1];return t.call(r,u,l,i)?n===_r?e:C(n,l,u,e):(s=!1,x())})},n}function gt(e,t,r,n){var o=Et(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate(function(e,i,u){if(!s||!(s=t.call(r,e,i,u)))return l++,o(e,n?i:l-1,a)}),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(_r,i),l=!0,u=0;return new _(function(){var e,i,c;do{if(e=s.next(),e.done)return n||o===br?e:o===mr?C(o,u++,void 0,e):C(o,u++,e.value[1],e);var p=e.value;i=p[0],c=p[1],l&&(l=t.call(r,c,i,a))}while(l);return o===_r?e:C(o,i,c,e)})},o}function vt(e,t){var n=a(e),o=[e].concat(t).map(function(e){return i(e)?n&&(e=r(e)):e=n?H(e):L(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var l=o[0];if(l===e||n&&a(l)||s(e)&&s(l))return l}var u=new T(o);return n?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),u=u.flatten(!0),u.size=o.reduce(function(e,t){if(void 0!==e){var r=t.size;if(void 0!==r)return e+r}},0),u}function yt(e,t,r){var n=Et(e);return n.__iterateUncached=function(n,o){function a(e,u){var c=this;e.__iterate(function(e,o){return(!t||u<t)&&i(e)?a(e,u+1):n(e,r?o:s++,c)===!1&&(l=!0),!l},o)}var s=0,l=!1;return a(e,0),s},n.__iteratorUncached=function(n,o){var a=e.__iterator(n,o),s=[],l=0;return new _(function(){for(;a;){var e=a.next();if(e.done===!1){var u=e.value;if(n===_r&&(u=u[1]),t&&!(s.length<t)||!i(u))return r?e:C(n,l++,u,e);s.push(a),a=u.__iterator(n,o)}else a=s.pop()}return x()})},n}function wt(e,t,r){var n=Dt(e);return e.toSeq().map(function(o,i){return n(t.call(r,o,i,e))}).flatten(!0)}function mt(e,t){var r=Et(e);return r.size=e.size&&2*e.size-1,r.__iterateUncached=function(r,n){var o=this,i=0;return e.__iterate(function(e,n){return(!i||r(t,i++,o)!==!1)&&r(e,i++,o)!==!1},n),i},r.__iteratorUncached=function(r,n){var o,i=e.__iterator(br,n),a=0;return new _(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?C(r,a++,t):C(r,a++,o.value,o)})},r}function bt(e,t,r){t||(t=Mt);var n=a(e),o=0,i=e.toSeq().map(function(t,n){return[n,t,o++,r?r(t,n,e):t]}).toArray();return i.sort(function(e,r){return t(e[3],r[3])||e[2]-r[2]}).forEach(n?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),n?M(i):s(e)?k(i):A(i)}function _t(e,t,r){if(t||(t=Mt),r){var n=e.toSeq().map(function(t,n){return[t,r(t,n,e)]}).reduce(function(e,r){return Ct(t,e[1],r[1])?r:e});return n&&n[0]}return e.reduce(function(e,r){return Ct(t,e,r)?r:e})}function Ct(e,t,r){var n=e(r,t);return 0===n&&r!==t&&(void 0===r||null===r||r!==r)||n>0}function xt(e,r,n){var o=Et(e);return o.size=new T(n).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var r,n=this.__iterator(br,t),o=0;!(r=n.next()).done&&e(r.value,o++,this)!==!1;);return o},o.__iteratorUncached=function(e,o){var i=n.map(function(e){return e=t(e),I(o?e.reverse():e)}),a=0,s=!1;return new _(function(){var t;return s||(t=i.map(function(e){return e.next()}),s=t.some(function(e){return e.done})),s?x():C(e,a++,r.apply(null,t.map(function(e){return e.value})))})},o}function St(e,t){return P(e)?t:e.constructor(t)}function Rt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function It(e){return ce(e.size),h(e)}function Dt(e){return a(e)?r:s(e)?n:o}function Et(e){return Object.create((a(e)?M:s(e)?k:A).prototype)}function Ot(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):O.prototype.cacheResult.call(this)}function Mt(e,t){return e>t?1:e<t?-1:0}function kt(e){var r=I(e);if(!r){if(!E(e))throw new TypeError("Expected iterable or array-like: "+e);r=I(t(e))}return r}function At(e,t){var r,n=function(i){if(i instanceof n)return i;if(!(this instanceof n))return new n(i);if(!r){r=!0;var a=Object.keys(e);zt(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=pe(i)},o=n.prototype=Object.create(Zr);return o.constructor=n,n}function Tt(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._map=t,n.__ownerID=r,n}function jt(e){return e._name||e.constructor.name||"Record"}function zt(e,t){try{t.forEach(Nt.bind(void 0,e))}catch(e){}}function Nt(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Q(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Pt(e){return null===e||void 0===e?Kt():qt(e)&&!u(e)?e:Kt().withMutations(function(t){var r=o(e);ce(r.size),r.forEach(function(e){return t.add(e)})})}function qt(e){return!(!e||!e[Qr])}function Ht(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 Lt(e,t){var r=Object.create($r);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function Kt(){return en||(en=Lt(Ce()))}function Ut(e){return null===e||void 0===e?Ft():Gt(e)?e:Ft().withMutations(function(t){var r=o(e);ce(r.size),r.forEach(function(e){return t.add(e)})})}function Gt(e){return qt(e)&&u(e)}function Wt(e,t){var r=Object.create(tn);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function Ft(){return rn||(rn=Wt(tt()))}function Vt(e){return null===e||void 0===e?Yt():Bt(e)?e:Yt().unshiftAll(e)}function Bt(e){return!(!e||!e[nn])}function Jt(e,t,r,n){var o=Object.create(on);return o.size=e,o._head=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function Yt(){return an||(an=Jt(0))}function Xt(e,t){var r=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}function Zt(e,t){return t}function Qt(e,t){return[t,e]}function $t(e){return function(){return!e.apply(this,arguments)}}function er(e){return function(){return-e.apply(this,arguments)}}function tr(e){return"string"==typeof e?JSON.stringify(e):String(e)}function rr(){return f(arguments)}function nr(e,t){return e<t?1:e>t?-1:0}function or(e){if(e.size===1/0)return 0;var t=u(e),r=a(e),n=t?1:0,o=e.__iterate(r?t?function(e,t){n=31*n+ar(ie(e),ie(t))|0}:function(e,t){n=n+ar(ie(e),ie(t))|0}:t?function(e){n=31*n+ie(e)|0}:function(e){n=n+ie(e)|0});return ir(o,n)}function ir(e,t){return t=Mr(t,3432918353),t=Mr(t<<15|t>>>-15,461845907),t=Mr(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Mr(t^t>>>16,2246822507),t=Mr(t^t>>>13,3266489909),t=oe(t^t>>>16)}function ar(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var sr=Array.prototype.slice;e(r,t),e(n,t),e(o,t),t.isIterable=i,t.isKeyed=a,t.isIndexed=s,t.isAssociative=l,t.isOrdered=u,t.Keyed=r,t.Indexed=n,t.Set=o;var lr="@@__IMMUTABLE_ITERABLE__@@",ur="@@__IMMUTABLE_KEYED__@@",cr="@@__IMMUTABLE_INDEXED__@@",pr="@@__IMMUTABLE_ORDERED__@@",dr="delete",fr=5,hr=1<<fr,gr=hr-1,vr={},yr={value:!1},wr={value:!1},mr=0,br=1,_r=2,Cr="function"==typeof Symbol&&Symbol.iterator,xr="@@iterator",Sr=Cr||xr;_.prototype.toString=function(){return"[Iterator]"},_.KEYS=mr,_.VALUES=br,_.ENTRIES=_r,_.prototype.inspect=_.prototype.toSource=function(){return this.toString()},_.prototype[Sr]=function(){return this},e(O,t),O.of=function(){return O(arguments)},O.prototype.toSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq {","}")},O.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},O.prototype.__iterate=function(e,t){return G(this,e,t,!0)},O.prototype.__iterator=function(e,t){return W(this,e,t,!0)},e(M,O),M.prototype.toKeyedSeq=function(){return this},e(k,O),k.of=function(){return k(arguments)},k.prototype.toIndexedSeq=function(){return this},k.prototype.toString=function(){return this.__toString("Seq [","]")},k.prototype.__iterate=function(e,t){return G(this,e,t,!1)},k.prototype.__iterator=function(e,t){return W(this,e,t,!1)},e(A,O),A.of=function(){return A(arguments)},A.prototype.toSetSeq=function(){return this},O.isSeq=P,O.Keyed=M,O.Set=A,O.Indexed=k;var Rr="@@__IMMUTABLE_SEQ__@@";O.prototype[Rr]=!0,e(T,k),T.prototype.get=function(e,t){return this.has(e)?this._array[g(this,e)]:t},T.prototype.__iterate=function(e,t){for(var r=this._array,n=r.length-1,o=0;o<=n;o++)if(e(r[t?n-o:o],o,this)===!1)return o+1;return o},T.prototype.__iterator=function(e,t){var r=this._array,n=r.length-1,o=0;return new _(function(){return o>n?x():C(e,o,r[t?n-o++:o++])})},e(j,M),j.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},j.prototype.has=function(e){return this._object.hasOwnProperty(e);
|
|
},j.prototype.__iterate=function(e,t){for(var r=this._object,n=this._keys,o=n.length-1,i=0;i<=o;i++){var a=n[t?o-i:i];if(e(r[a],a,this)===!1)return i+1}return i},j.prototype.__iterator=function(e,t){var r=this._object,n=this._keys,o=n.length-1,i=0;return new _(function(){var a=n[t?o-i:i];return i++>o?x():C(e,a,r[a])})},j.prototype[pr]=!0,e(z,k),z.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var r=this._iterable,n=I(r),o=0;if(R(n))for(var i;!(i=n.next()).done&&e(i.value,o++,this)!==!1;);return o},z.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterable,n=I(r);if(!R(n))return new _(x);var o=0;return new _(function(){var t=n.next();return t.done?t:C(e,o++,t.value)})},e(N,k),N.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var r=this._iterator,n=this._iteratorCache,o=0;o<n.length;)if(e(n[o],o++,this)===!1)return o;for(var i;!(i=r.next()).done;){var a=i.value;if(n[o]=a,e(a,o++,this)===!1)break}return o},N.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterator,n=this._iteratorCache,o=0;return new _(function(){if(o>=n.length){var t=r.next();if(t.done)return t;n[o]=t.value}return C(e,o,n[o++])})};var Ir;e(Z,k),Z.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Z.prototype.get=function(e,t){return this.has(e)?this._value:t},Z.prototype.includes=function(e){return Y(this._value,e)},Z.prototype.slice=function(e,t){var r=this.size;return y(e,t,r)?this:new Z(this._value,m(t,r)-w(e,r))},Z.prototype.reverse=function(){return this},Z.prototype.indexOf=function(e){return Y(this._value,e)?0:-1},Z.prototype.lastIndexOf=function(e){return Y(this._value,e)?this.size:-1},Z.prototype.__iterate=function(e,t){for(var r=0;r<this.size;r++)if(e(this._value,r,this)===!1)return r+1;return r},Z.prototype.__iterator=function(e,t){var r=this,n=0;return new _(function(){return n<r.size?C(e,n++,r._value):x()})},Z.prototype.equals=function(e){return e instanceof Z?Y(this._value,e._value):X(e)};var Dr;e($,k),$.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},$.prototype.get=function(e,t){return this.has(e)?this._start+g(this,e)*this._step:t},$.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},$.prototype.slice=function(e,t){return y(e,t,this.size)?this:(e=w(e,this.size),t=m(t,this.size),t<=e?new $(0,0):new $(this.get(e,this._end),this.get(t,this._end),this._step))},$.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var r=t/this._step;if(r>=0&&r<this.size)return r}return-1},$.prototype.lastIndexOf=function(e){return this.indexOf(e)},$.prototype.__iterate=function(e,t){for(var r=this.size-1,n=this._step,o=t?this._start+r*n:this._start,i=0;i<=r;i++){if(e(o,i,this)===!1)return i+1;o+=t?-n:n}return i},$.prototype.__iterator=function(e,t){var r=this.size-1,n=this._step,o=t?this._start+r*n:this._start,i=0;return new _(function(){var a=o;return o+=t?-n:n,i>r?x():C(e,i++,a)})},$.prototype.equals=function(e){return e instanceof $?this._start===e._start&&this._end===e._end&&this._step===e._step:X(this,e)};var Er;e(ee,t),e(te,ee),e(re,ee),e(ne,ee),ee.Keyed=te,ee.Indexed=re,ee.Set=ne;var Or,Mr="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(e,t){e|=0,t|=0;var r=65535&e,n=65535&t;return r*n+((e>>>16)*n+r*(t>>>16)<<16>>>0)|0},kr=Object.isExtensible,Ar=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Tr="function"==typeof WeakMap;Tr&&(Or=new WeakMap);var jr=0,zr="__immutablehash__";"function"==typeof Symbol&&(zr=Symbol(zr));var Nr=16,Pr=255,qr=0,Hr={};e(pe,te),pe.of=function(){var e=sr.call(arguments,0);return Ce().withMutations(function(t){for(var r=0;r<e.length;r+=2){if(r+1>=e.length)throw new Error("Missing value for key: "+e[r]);t.set(e[r],e[r+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 xe(this,e,t)},pe.prototype.setIn=function(e,t){return this.updateIn(e,vr,function(){return t})},pe.prototype.remove=function(e){return xe(this,e,vr)},pe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return vr})},pe.prototype.update=function(e,t,r){return 1===arguments.length?e(this):this.updateIn([e],t,r)},pe.prototype.updateIn=function(e,t,r){r||(r=t,t=void 0);var n=je(this,kt(e),t,r);return n===vr?void 0:n},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):Ce()},pe.prototype.merge=function(){return Me(this,void 0,arguments)},pe.prototype.mergeWith=function(e){var t=sr.call(arguments,1);return Me(this,e,t)},pe.prototype.mergeIn=function(e){var t=sr.call(arguments,1);return this.updateIn(e,Ce(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},pe.prototype.mergeDeep=function(){return Me(this,ke,arguments)},pe.prototype.mergeDeepWith=function(e){var t=sr.call(arguments,1);return Me(this,Ae(e),t)},pe.prototype.mergeDeepIn=function(e){var t=sr.call(arguments,1);return this.updateIn(e,Ce(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},pe.prototype.sort=function(e){return Qe(bt(this,e))},pe.prototype.sortBy=function(e,t){return Qe(bt(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 we(this,e,t)},pe.prototype.__iterate=function(e,t){var r=this,n=0;return this._root&&this._root.iterate(function(t){return n++,e(t[1],t[0],r)},t),n},pe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_e(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},pe.isMap=de;var Lr="@@__IMMUTABLE_MAP__@@",Kr=pe.prototype;Kr[Lr]=!0,Kr[dr]=Kr.remove,Kr.removeIn=Kr.deleteIn,fe.prototype.get=function(e,t,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(Y(r,o[i][0]))return o[i][1];return n},fe.prototype.update=function(e,t,r,n,o,i,a){for(var s=o===vr,l=this.entries,u=0,c=l.length;u<c&&!Y(n,l[u][0]);u++);var d=u<c;if(d?l[u][1]===o:s)return this;if(p(a),(s||!d)&&p(i),!s||1!==l.length){if(!d&&!s&&l.length>=Gr)return De(e,l,n,o);var h=e&&e===this.ownerID,g=h?l:f(l);return d?s?u===c-1?g.pop():g[u]=g.pop():g[u]=[n,o]:g.push([n,o]),h?(this.entries=g,this):new fe(e,g)}},he.prototype.get=function(e,t,r,n){void 0===t&&(t=ie(r));var o=1<<((0===e?t:t>>>e)&gr),i=this.bitmap;return 0===(i&o)?n:this.nodes[ze(i&o-1)].get(e+fr,t,r,n)},he.prototype.update=function(e,t,r,n,o,i,a){void 0===r&&(r=ie(n));var s=(0===t?r:r>>>t)&gr,l=1<<s,u=this.bitmap,c=0!==(u&l);if(!c&&o===vr)return this;var p=ze(u&l-1),d=this.nodes,f=c?d[p]:void 0,h=Se(f,e,t+fr,r,n,o,i,a);if(h===f)return this;if(!c&&h&&d.length>=Wr)return Oe(e,d,u,s,h);if(c&&!h&&2===d.length&&Re(d[1^p]))return d[1^p];if(c&&h&&1===d.length&&Re(h))return h;var g=e&&e===this.ownerID,v=c?h?u:u^l:u|l,y=c?h?Ne(d,p,h,g):qe(d,p,g):Pe(d,p,h,g);return g?(this.bitmap=v,this.nodes=y,this):new he(e,v,y)},ge.prototype.get=function(e,t,r,n){void 0===t&&(t=ie(r));var o=(0===e?t:t>>>e)&gr,i=this.nodes[o];return i?i.get(e+fr,t,r,n):n},ge.prototype.update=function(e,t,r,n,o,i,a){void 0===r&&(r=ie(n));var s=(0===t?r:r>>>t)&gr,l=o===vr,u=this.nodes,c=u[s];if(l&&!c)return this;var p=Se(c,e,t+fr,r,n,o,i,a);if(p===c)return this;var d=this.count;if(c){if(!p&&(d--,d<Fr))return Ee(e,u,d,s)}else d++;var f=e&&e===this.ownerID,h=Ne(u,s,p,f);return f?(this.count=d,this.nodes=h,this):new ge(e,d,h)},ve.prototype.get=function(e,t,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(Y(r,o[i][0]))return o[i][1];return n},ve.prototype.update=function(e,t,r,n,o,i,a){void 0===r&&(r=ie(n));var s=o===vr;if(r!==this.keyHash)return s?this:(p(a),p(i),Ie(this,e,t,r,[n,o]));for(var l=this.entries,u=0,c=l.length;u<c&&!Y(n,l[u][0]);u++);var d=u<c;if(d?l[u][1]===o:s)return this;if(p(a),(s||!d)&&p(i),s&&2===c)return new ye(e,this.keyHash,l[1^u]);var h=e&&e===this.ownerID,g=h?l:f(l);return d?s?u===c-1?g.pop():g[u]=g.pop():g[u]=[n,o]:g.push([n,o]),h?(this.entries=g,this):new ve(e,this.keyHash,g)},ye.prototype.get=function(e,t,r,n){return Y(r,this.entry[0])?this.entry[1]:n},ye.prototype.update=function(e,t,r,n,o,i,a){var s=o===vr,l=Y(n,this.entry[0]);return(l?o===this.entry[1]:s)?this:(p(a),s?void p(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new ye(e,this.keyHash,[n,o]):(p(i),Ie(this,e,t,ie(n),[n,o])))},fe.prototype.iterate=ve.prototype.iterate=function(e,t){for(var r=this.entries,n=0,o=r.length-1;n<=o;n++)if(e(r[t?o-n:n])===!1)return!1},he.prototype.iterate=ge.prototype.iterate=function(e,t){for(var r=this.nodes,n=0,o=r.length-1;n<=o;n++){var i=r[t?o-n:n];if(i&&i.iterate(e,t)===!1)return!1}},ye.prototype.iterate=function(e,t){return e(this.entry)},e(we,_),we.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var r,n=t.node,o=t.index++;if(n.entry){if(0===o)return me(e,n.entry)}else if(n.entries){if(r=n.entries.length-1,o<=r)return me(e,n.entries[this._reverse?r-o:o])}else if(r=n.nodes.length-1,o<=r){var i=n.nodes[this._reverse?r-o:o];if(i){if(i.entry)return me(e,i.entry);t=this._stack=be(i,t)}continue}t=this._stack=this._stack.__prev}return x()};var Ur,Gr=hr/4,Wr=hr/2,Fr=hr/4;e(He,re),He.of=function(){return this(arguments)},He.prototype.toString=function(){return this.__toString("List [","]")},He.prototype.get=function(e,t){if(e=g(this,e),e>=0&&e<this.size){e+=this._origin;var r=Je(this,e);return r&&r.array[e&gr]}return t},He.prototype.set=function(e,t){return Fe(this,e,t)},He.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},He.prototype.insert=function(e,t){return this.splice(e,0,t)},He.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=fr,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):We()},He.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(r){Ye(r,0,t+e.length);for(var n=0;n<e.length;n++)r.set(t+n,e[n])})},He.prototype.pop=function(){return Ye(this,0,-1)},He.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Ye(t,-e.length);for(var r=0;r<e.length;r++)t.set(r,e[r])})},He.prototype.shift=function(){return Ye(this,1)},He.prototype.merge=function(){return Xe(this,void 0,arguments)},He.prototype.mergeWith=function(e){var t=sr.call(arguments,1);return Xe(this,e,t)},He.prototype.mergeDeep=function(){return Xe(this,ke,arguments)},He.prototype.mergeDeepWith=function(e){var t=sr.call(arguments,1);return Xe(this,Ae(e),t)},He.prototype.setSize=function(e){return Ye(this,0,e)},He.prototype.slice=function(e,t){var r=this.size;return y(e,t,r)?this:Ye(this,w(e,r),m(t,r))},He.prototype.__iterator=function(e,t){var r=0,n=Ue(this,t);return new _(function(){var t=n();return t===Yr?x():C(e,r++,t)})},He.prototype.__iterate=function(e,t){for(var r,n=0,o=Ue(this,t);(r=o())!==Yr&&e(r,n++,this)!==!1;);return n},He.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ge(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},He.isList=Le;var Vr="@@__IMMUTABLE_LIST__@@",Br=He.prototype;Br[Vr]=!0,Br[dr]=Br.remove,Br.setIn=Kr.setIn,Br.deleteIn=Br.removeIn=Kr.removeIn,Br.update=Kr.update,Br.updateIn=Kr.updateIn,Br.mergeIn=Kr.mergeIn,Br.mergeDeepIn=Kr.mergeDeepIn,Br.withMutations=Kr.withMutations,Br.asMutable=Kr.asMutable,Br.asImmutable=Kr.asImmutable,Br.wasAltered=Kr.wasAltered,Ke.prototype.removeBefore=function(e,t,r){if(r===t?1<<t:0===this.array.length)return this;var n=r>>>t&gr;if(n>=this.array.length)return new Ke([],e);var o,i=0===n;if(t>0){var a=this.array[n];if(o=a&&a.removeBefore(e,t-fr,r),o===a&&i)return this}if(i&&!o)return this;var s=Be(this,e);if(!i)for(var l=0;l<n;l++)s.array[l]=void 0;return o&&(s.array[n]=o),s},Ke.prototype.removeAfter=function(e,t,r){if(r===(t?1<<t:0)||0===this.array.length)return this;var n=r-1>>>t&gr;if(n>=this.array.length)return this;var o;if(t>0){var i=this.array[n];if(o=i&&i.removeAfter(e,t-fr,r),o===i&&n===this.array.length-1)return this}var a=Be(this,e);return a.array.splice(n+1),o&&(a.array[n]=o),a};var Jr,Yr={};e(Qe,pe),Qe.of=function(){return this(arguments)},Qe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qe.prototype.get=function(e,t){var r=this._map.get(e);return void 0!==r?this._list.get(r)[1]:t},Qe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Qe.prototype.set=function(e,t){return rt(this,e,t)},Qe.prototype.remove=function(e){return rt(this,e,vr)},Qe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qe.prototype.__iterate=function(e,t){var r=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],r)},t)},Qe.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Qe.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),r=this._list.__ensureOwner(e);return e?et(t,r,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=r,this)},Qe.isOrderedMap=$e,Qe.prototype[pr]=!0,Qe.prototype[dr]=Qe.prototype.remove;var Xr;e(nt,M),nt.prototype.get=function(e,t){return this._iter.get(e,t)},nt.prototype.has=function(e){return this._iter.has(e)},nt.prototype.valueSeq=function(){return this._iter.valueSeq()},nt.prototype.reverse=function(){var e=this,t=ut(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},nt.prototype.map=function(e,t){var r=this,n=lt(this,e,t);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(e,t)}),n},nt.prototype.__iterate=function(e,t){var r,n=this;return this._iter.__iterate(this._useKeys?function(t,r){return e(t,r,n)}:(r=t?It(this):0,function(o){return e(o,t?--r:r++,n)}),t)},nt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var r=this._iter.__iterator(br,t),n=t?It(this):0;return new _(function(){var o=r.next();return o.done?o:C(e,t?--n:n++,o.value,o)})},nt.prototype[pr]=!0,e(ot,k),ot.prototype.includes=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var r=this,n=0;return this._iter.__iterate(function(t){return e(t,n++,r)},t)},ot.prototype.__iterator=function(e,t){var r=this._iter.__iterator(br,t),n=0;return new _(function(){var t=r.next();return t.done?t:C(e,n++,t.value,t)})},e(it,A),it.prototype.has=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate(function(t){return e(t,t,r)},t)},it.prototype.__iterator=function(e,t){var r=this._iter.__iterator(br,t);return new _(function(){var t=r.next();return t.done?t:C(e,t.value,t.value,t)})},e(at,M),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate(function(t){if(t){Rt(t);var n=i(t);return e(n?t.get(1):t[1],n?t.get(0):t[0],r)}},t)},at.prototype.__iterator=function(e,t){var r=this._iter.__iterator(br,t);return new _(function(){for(;;){var t=r.next();if(t.done)return t;var n=t.value;if(n){Rt(n);var o=i(n);return C(e,o?n.get(0):n[0],o?n.get(1):n[1],t)}}})},ot.prototype.cacheResult=nt.prototype.cacheResult=it.prototype.cacheResult=at.prototype.cacheResult=Ot,e(At,te),At.prototype.toString=function(){return this.__toString(jt(this)+" {","}")},At.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},At.prototype.get=function(e,t){if(!this.has(e))return t;var r=this._defaultValues[e];return this._map?this._map.get(e,r):r},At.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Tt(this,Ce()))},At.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+jt(this));if(this._map&&!this._map.has(e)){var r=this._defaultValues[e];if(t===r)return this}var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Tt(this,n)},At.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:Tt(this,t)},At.prototype.wasAltered=function(){return this._map.wasAltered()},At.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},At.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},At.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Tt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Zr=At.prototype;Zr[dr]=Zr.remove,Zr.deleteIn=Zr.removeIn=Kr.removeIn,Zr.merge=Kr.merge,Zr.mergeWith=Kr.mergeWith,Zr.mergeIn=Kr.mergeIn,Zr.mergeDeep=Kr.mergeDeep,Zr.mergeDeepWith=Kr.mergeDeepWith,Zr.mergeDeepIn=Kr.mergeDeepIn,Zr.setIn=Kr.setIn,Zr.update=Kr.update,Zr.updateIn=Kr.updateIn,Zr.withMutations=Kr.withMutations,Zr.asMutable=Kr.asMutable,Zr.asImmutable=Kr.asImmutable,e(Pt,ne),Pt.of=function(){return this(arguments)},Pt.fromKeys=function(e){return this(r(e).keySeq())},Pt.prototype.toString=function(){return this.__toString("Set {","}")},Pt.prototype.has=function(e){return this._map.has(e)},Pt.prototype.add=function(e){return Ht(this,this._map.set(e,!0))},Pt.prototype.remove=function(e){return Ht(this,this._map.remove(e))},Pt.prototype.clear=function(){return Ht(this,this._map.clear())},Pt.prototype.union=function(){var e=sr.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 r=0;r<e.length;r++)o(e[r]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},Pt.prototype.intersect=function(){var e=sr.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return o(e)});var t=this;return this.withMutations(function(r){t.forEach(function(t){e.every(function(e){return e.includes(t)})||r.remove(t)})})},Pt.prototype.subtract=function(){var e=sr.call(arguments,0);if(0===e.length)return this;e=e.map(function(e){return o(e)});var t=this;return this.withMutations(function(r){t.forEach(function(t){e.some(function(e){return e.includes(t)})&&r.remove(t)})})},Pt.prototype.merge=function(){return this.union.apply(this,arguments)},Pt.prototype.mergeWith=function(e){var t=sr.call(arguments,1);return this.union.apply(this,t)},Pt.prototype.sort=function(e){return Ut(bt(this,e))},Pt.prototype.sortBy=function(e,t){return Ut(bt(this,t,e))},Pt.prototype.wasAltered=function(){return this._map.wasAltered()},Pt.prototype.__iterate=function(e,t){var r=this;return this._map.__iterate(function(t,n){return e(n,n,r)},t)},Pt.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},Pt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Pt.isSet=qt;var Qr="@@__IMMUTABLE_SET__@@",$r=Pt.prototype;$r[Qr]=!0,$r[dr]=$r.remove,$r.mergeDeep=$r.merge,$r.mergeDeepWith=$r.mergeWith,$r.withMutations=Kr.withMutations,$r.asMutable=Kr.asMutable,$r.asImmutable=Kr.asImmutable,$r.__empty=Kt,$r.__make=Lt;var en;e(Ut,Pt),Ut.of=function(){return this(arguments)},Ut.fromKeys=function(e){return this(r(e).keySeq())},Ut.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ut.isOrderedSet=Gt;var tn=Ut.prototype;tn[pr]=!0,tn.__empty=Ft,tn.__make=Wt;var rn;e(Vt,re),Vt.of=function(){return this(arguments)},Vt.prototype.toString=function(){return this.__toString("Stack [","]")},Vt.prototype.get=function(e,t){var r=this._head;for(e=g(this,e);r&&e--;)r=r.next;return r?r.value:t},Vt.prototype.peek=function(){return this._head&&this._head.value},Vt.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,r=arguments.length-1;r>=0;r--)t={value:arguments[r],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Jt(e,t)},Vt.prototype.pushAll=function(e){if(e=n(e),0===e.size)return this;ce(e.size);var t=this.size,r=this._head;return e.reverse().forEach(function(e){t++,r={value:e,next:r}}),this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):Jt(t,r)},Vt.prototype.pop=function(){return this.slice(1)},Vt.prototype.unshift=function(){return this.push.apply(this,arguments)},Vt.prototype.unshiftAll=function(e){return this.pushAll(e)},Vt.prototype.shift=function(){return this.pop.apply(this,arguments)},Vt.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):Yt()},Vt.prototype.slice=function(e,t){if(y(e,t,this.size))return this;var r=w(e,this.size),n=m(t,this.size);if(n!==this.size)return re.prototype.slice.call(this,e,t);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Jt(o,i)},Vt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Jt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Vt.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var r=0,n=this._head;n&&e(n.value,r++,this)!==!1;)n=n.next;return r},Vt.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var r=0,n=this._head;return new _(function(){if(n){var t=n.value;return n=n.next,C(e,r++,t)}return x()})},Vt.isStack=Bt;var nn="@@__IMMUTABLE_STACK__@@",on=Vt.prototype;on[nn]=!0,on.withMutations=Kr.withMutations,on.asMutable=Kr.asMutable,on.asImmutable=Kr.asImmutable,on.wasAltered=Kr.wasAltered;var an;t.Iterator=_,Xt(t,{toArray:function(){ce(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,r){e[r]=t}),e},toIndexedSeq:function(){return new ot(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 nt(this,!0)},toMap:function(){return pe(this.toKeyedSeq())},toObject:function(){ce(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e},toOrderedMap:function(){return Qe(this.toKeyedSeq())},toOrderedSet:function(){return Ut(a(this)?this.valueSeq():this)},toSet:function(){return Pt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new it(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Vt(a(this)?this.valueSeq():this)},toList:function(){return He(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=sr.call(arguments,0);return St(this,vt(this,e))},includes:function(e){return this.some(function(t){return Y(t,e)})},entries:function(){return this.__iterator(_r)},every:function(e,t){ce(this.size);var r=!0;return this.__iterate(function(n,o,i){if(!e.call(t,n,o,i))return r=!1,!1}),r},filter:function(e,t){return St(this,ct(this,e,t,!0))},find:function(e,t,r){var n=this.findEntry(e,t);return n?n[1]:r},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="",r=!0;return this.__iterate(function(n){r?r=!1:t+=e,t+=null!==n&&void 0!==n?n.toString():""}),t},keys:function(){return this.__iterator(mr)},map:function(e,t){return St(this,lt(this,e,t))},reduce:function(e,t,r){ce(this.size);var n,o;return arguments.length<2?o=!0:n=t,this.__iterate(function(t,i,a){o?(o=!1,n=t):n=e.call(r,n,t,i,a)}),n},reduceRight:function(e,t,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return St(this,ut(this,!0))},slice:function(e,t){return St(this,ft(this,e,t,!0))},some:function(e,t){return!this.every($t(e),t)},sort:function(e){return St(this,bt(this,e))},values:function(){return this.__iterator(br)},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 X(this,e)},entrySeq:function(){var e=this;if(e._cache)return new T(e._cache);var t=e.toSeq().map(Qt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter($t(e),t)},findEntry:function(e,t,r){var n=r;return this.__iterate(function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1}),n},findKey:function(e,t){var r=this.findEntry(e,t);return r&&r[0]},findLast:function(e,t,r){return this.toKeyedSeq().reverse().find(e,t,r)},findLastEntry:function(e,t,r){return this.toKeyedSeq().reverse().findEntry(e,t,r)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(v)},flatMap:function(e,t){return St(this,wt(this,e,t))},flatten:function(e){return St(this,yt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,r){return Y(r,e)},void 0,t)},getIn:function(e,t){for(var r,n=this,o=kt(e);!(r=o.next()).done;){var i=r.value;if(n=n&&n.get?n.get(i,vr):vr,n===vr)return t}return n},groupBy:function(e,t){return dt(this,e,t)},has:function(e){return this.get(e,vr)!==vr},hasIn:function(e){return this.getIn(e,vr)!==vr},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 Y(t,e)})},keySeq:function(){return this.toSeq().map(Zt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return _t(this,e)},maxBy:function(e,t){return _t(this,t,e)},min:function(e){return _t(this,e?er(e):nr)},minBy:function(e,t){return _t(this,t?er(t):nr,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return St(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return St(this,gt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile($t(e),t)},sortBy:function(e,t){return St(this,bt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return St(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return St(this,ht(this,e,t))},takeUntil:function(e,t){return this.takeWhile($t(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=or(this))}});var sn=t.prototype;sn[lr]=!0,sn[Sr]=sn.values,sn.__toJS=sn.toArray,sn.__toStringMapper=tr,sn.inspect=sn.toSource=function(){return this.toString()},sn.chain=sn.flatMap,sn.contains=sn.includes,Xt(r,{flip:function(){return St(this,st(this))},mapEntries:function(e,t){var r=this,n=0;return St(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],n++,r)}).fromEntrySeq())},mapKeys:function(e,t){var r=this;return St(this,this.toSeq().flip().map(function(n,o){return e.call(t,n,o,r)}).flip())}});var ln=r.prototype;ln[ur]=!0,ln[Sr]=sn.entries,ln.__toJS=sn.toObject,ln.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tr(e)},Xt(n,{toKeyedSeq:function(){return new nt(this,!1)},filter:function(e,t){return St(this,ct(this,e,t,!1))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[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 St(this,ut(this,!1))},slice:function(e,t){return St(this,ft(this,e,t,!1))},splice:function(e,t){var r=arguments.length;if(t=Math.max(0|t,0),0===r||2===r&&!t)return this;e=w(e,e<0?this.count():this.size);var n=this.slice(0,e);return St(this,1===r?n:n.concat(f(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.findLastEntry(e,t);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(e){return St(this,yt(this,e,!1))},get:function(e,t){return e=g(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,r){return r===e},void 0,t)},has:function(e){return e=g(this,e),e>=0&&(void 0!==this.size?this.size===1/0||e<this.size:this.indexOf(e)!==-1)},interpose:function(e){return St(this,mt(this,e))},interleave:function(){var e=[this].concat(f(arguments)),t=xt(this.toSeq(),k.of,e),r=t.flatten(!0);return t.size&&(r.size=t.size*e.length),St(this,r)},keySeq:function(){return $(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return St(this,gt(this,e,t,!1))},zip:function(){var e=[this].concat(f(arguments));return St(this,xt(this,rr,e))},zipWith:function(e){var t=f(arguments);return t[0]=this,St(this,xt(this,e,t))}}),n.prototype[cr]=!0,n.prototype[pr]=!0,Xt(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=sn.includes,o.prototype.contains=o.prototype.includes,Xt(M,r.prototype),Xt(k,n.prototype),Xt(A,o.prototype),Xt(te,r.prototype),Xt(re,n.prototype),Xt(ne,o.prototype);var un={Iterable:t,Seq:O,Collection:ee,Map:pe,OrderedMap:Qe,List:He,Stack:Vt,Set:Pt,OrderedSet:Ut,Record:At,Range:$,Repeat:Z,is:Y,fromJS:F};return un})},function(e,t){"use strict";var r=function(e){var t={};return e&&"[object Function]"===t.toString.call(e)};e.exports=r},function(e,t,r){var n=r(141);"string"==typeof n&&(n=[[e.id,n,""]]);r(9)(n,{});n.locals&&(e.exports=n.locals)},,,,,,,,,function(e,t,r){var n=r(143);"string"==typeof n&&(n=[[e.id,n,""]]);r(9)(n,{});n.locals&&(e.exports=n.locals)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var o=r(144),i=n(o),a={UpdateActions:(0,i.default)({CELL_UPDATE:null,COLUMN_FILL:null,COPY_PASTE:null,CELL_DRAG:null}),DragItemTypes:{Column:"column"},CellExpand:{DOWN_TRIANGLE:String.fromCharCode("9660"),RIGHT_TRIANGLE:String.fromCharCode("9654")}};e.exports=a},function(e,t,r){"use strict";function n(e,t){return e.map(function(e){var r=Object.assign({},e);return e.width&&/^([0-9]+)%$/.exec(e.width.toString())&&(r.width=Math.floor(e.width/100*t)),r})}function o(e,t,r){var n=e.filter(function(e){return!e.width});return e.map(function(e){if(!e.width&&0!==e.width)if(t<=0)e.width=r;else{var o=Math.floor(t/f.getSize(n));o<r?e.width=r:e.width=o}return e})}function i(e){var t=0;return e.map(function(e){return e.left=t,t+=e.width,e})}function a(e){var t=n(e.columns,e.totalWidth),r=t.filter(function(e){return e.width}).reduce(function(e,t){return e-t.width},e.totalWidth);r-=h();var a=t.filter(function(e){return e.width}).reduce(function(e,t){return e+t.width},0);return t=o(t,r,e.minColumnWidth),t=i(t),{columns:t,width:a,totalWidth:e.totalWidth,minColumnWidth:e.minColumnWidth}}function s(e,t,r){var n=f.getColumn(e.columns,t),o=p(e);o.columns=e.columns.slice(0);var i=p(n);return i.width=Math.max(r,o.minColumnWidth),o=f.spliceColumn(o,t,i),a(o)}function l(e,t){return g(e)&&g(t)}function u(e,t,r){var n=void 0,o=void 0,i=void 0,a={},s={};
|
|
if(f.getSize(e)!==f.getSize(t))return!1;for(n=0,o=f.getSize(e);n<o;n++)i=e[n],a[i.key]=i;for(n=0,o=f.getSize(t);n<o;n++){i=t[n],s[i.key]=i;var l=a[i.key];if(void 0===l||!r(l,i))return!1}for(n=0,o=f.getSize(e);n<o;n++){i=e[n];var u=s[i.key];if(void 0===u)return!1}return!0}function c(e,t,r){return l(e,t)?e===t:u(e,t,r)}var p=r(53),d=r(109),f=r(7),h=r(33),g=r(55);e.exports={recalculate:a,resizeColumn:s,sameColumn:d,sameColumns:c}},function(e,t){"use strict";function r(){if(void 0===n){var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.position="absolute",e.style.top="-200px",e.style.left="-200px";var t=document.createElement("div");t.style.height="100px",t.style.width="100%",e.appendChild(t),document.body.appendChild(e);var r=e.clientWidth;e.style.overflowY="scroll";var o=t.clientWidth;document.body.removeChild(e),n=r-o}return n}var n=void 0;e.exports=r},,,,,function(e,t,r){var n=r(139);"string"==typeof n&&(n=[[e.id,n,""]]);r(9)(n,{});n.locals&&(e.exports=n.locals)},,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=r(79),u=n(l),c=r(3),p=n(c),d=r(106),f=n(d),h=r(107),g=n(h),v=r(108),y=n(v),w=r(2),m=r(6),b=r(125),_=r(13),C=r(20),x=r(12),S=r(52),R=r(7),I=r(15);r(38);var D=["height","tabIndex","value"],E=function(e){function t(){var r,n,a;o(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return r=n=i(this,e.call.apply(e,[this].concat(l))),n.state={isCellValueChanging:!1,isLockChanging:!1},n.onCellClick=function(e){var t=n.props.cellMetaData;null!=t&&t.onCellClick&&"function"==typeof t.onCellClick&&t.onCellClick({rowIdx:n.props.rowIdx,idx:n.props.idx},e)},n.onCellFocus=function(){var e=n.props.cellMetaData;null!=e&&e.onCellFocus&&"function"==typeof e.onCellFocus&&e.onCellFocus({rowIdx:n.props.rowIdx,idx:n.props.idx})},n.onCellContextMenu=function(){var e=n.props.cellMetaData;null!=e&&e.onCellContextMenu&&"function"==typeof e.onCellContextMenu&&e.onCellContextMenu({rowIdx:n.props.rowIdx,idx:n.props.idx})},n.onCellDoubleClick=function(e){var t=n.props.cellMetaData;null!=t&&t.onCellDoubleClick&&"function"==typeof t.onCellDoubleClick&&t.onCellDoubleClick({rowIdx:n.props.rowIdx,idx:n.props.idx},e)},n.onCellExpand=function(e){e.stopPropagation();var t=n.props.cellMetaData;null!=t&&null!=t.onCellExpand&&t.onCellExpand({rowIdx:n.props.rowIdx,idx:n.props.idx,rowData:n.props.rowData,expandArgs:n.props.expandableOptions})},n.onCellKeyDown=function(e){n.canExpand()&&"Enter"===e.key&&n.onCellExpand(e)},n.onDeleteSubRow=function(){var e=n.props.cellMetaData;null!=e&&null!=e.onDeleteSubRow&&e.onDeleteSubRow({rowIdx:n.props.rowIdx,idx:n.props.idx,rowData:n.props.rowData,expandArgs:n.props.expandableOptions})},n.onDragHandleDoubleClick=function(e){e.stopPropagation();var t=n.props.cellMetaData;null!=t&&t.onDragHandleDoubleClick&&"function"==typeof t.onDragHandleDoubleClick&&t.onDragHandleDoubleClick({rowIdx:n.props.rowIdx,idx:n.props.idx,rowData:n.getRowData(),e:e})},n.onDragOver=function(e){e.preventDefault()},n.getStyle=function(){var e={position:"absolute",width:n.props.column.width,height:n.props.height,left:n.props.column.left,contain:"layout"};return e},n.getFormatter=function(){var e=n.props.column;return n.isActive()?w.createElement(b,{rowData:n.getRowData(),rowIdx:n.props.rowIdx,value:n.props.value,idx:n.props.idx,cellMetaData:n.props.cellMetaData,column:e,height:n.props.height}):n.props.column.formatter},n.getRowData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props;return e.rowData.toJSON?e.rowData.toJSON():e.rowData},n.getFormatterDependencies=function(){if("function"==typeof n.props.column.getRowMetaData)return n.props.column.getRowMetaData(n.getRowData(),n.props.column)},n.getCellClass=function(){var e=m(n.props.column.cellClass,"react-grid-Cell",n.props.className,n.props.column.locked?"react-grid-Cell--locked":null),t=m({"row-selected":n.props.isRowSelected,editing:n.isActive(),copied:n.isCopied()||n.wasDraggedOver()||n.isDraggedOverUpwards()||n.isDraggedOverDownwards(),"is-dragged-over-up":n.isDraggedOverUpwards(),"is-dragged-over-down":n.isDraggedOverDownwards(),"was-dragged-over":n.wasDraggedOver(),"cell-tooltip":!!n.props.tooltip,"rdg-child-cell":n.props.expandableOptions&&n.props.expandableOptions.subRowDetails&&n.props.expandableOptions.treeDepth>0,"last-column":n.props.column.isLastColumn});return m(e,t)},n.getUpdateCellClass=function(){return n.props.column.getUpdateCellClass?n.props.column.getUpdateCellClass(n.props.selectedColumn,n.props.column,n.state.isCellValueChanging):""},n.isColumnSelected=function(){var e=n.props.cellMetaData;return null!=e&&(e.selected&&e.selected.idx===n.props.idx)},n.isSelected=function(){var e=n.props.cellMetaData;return null!=e&&(e.selected&&e.selected.rowIdx===n.props.rowIdx&&e.selected.idx===n.props.idx)},n.isActive=function(){var e=n.props.cellMetaData;return null!=e&&(n.isSelected()&&e.selected.active===!0)},n.isCellSelectionChanging=function(e){var t=n.props.cellMetaData;if(null==t)return!1;var r=e.cellMetaData.selected;return!t.selected||!r||(n.props.idx===r.idx||n.props.idx===t.selected.idx)},n.isCellSelectEnabled=function(){var e=n.props.cellMetaData;return null!=e&&e.enableCellSelect},n.hasChangedDependentValues=function(e){var t=n.props.column,r=!1;if(t.getRowMetaData){var o=t.getRowMetaData(n.getRowData(),t),i=e.column,a=i.getRowMetaData(n.getRowData(e),i);r=!u.default.isEqual(o,a)}return r},n.applyUpdateClass=function(){var e=n.getUpdateCellClass();if(null!=e&&""!==e){var t=n.node;t.classList?(t.classList.remove(e),t.classList.add(e)):t.className.indexOf(e)===-1&&(t.className=t.className+" "+e)}},n.setScrollLeft=function(e){var t=n.node;if(t){var r="translate3d("+e+"px, 0px, 0px)";t.style.webkitTransform=r,t.style.transform=r}},n.removeScroll=function(){var e=n.node;e&&(e.style.webkitTransform=null,e.style.transform=null)},n.isCopied=function(){var e=n.props.cellMetaData.copied;return e&&e.rowIdx===n.props.rowIdx&&e.idx===n.props.idx},n.isDraggedOver=function(){var e=n.props.cellMetaData.dragged;return e&&e.overRowIdx===n.props.rowIdx&&e.idx===n.props.idx},n.wasDraggedOver=function(){var e=n.props.cellMetaData.dragged;return e&&(e.overRowIdx<n.props.rowIdx&&n.props.rowIdx<e.rowIdx||e.overRowIdx>n.props.rowIdx&&n.props.rowIdx>e.rowIdx)&&e.idx===n.props.idx},n.isDraggedCellChanging=function(e){var t=void 0,r=n.props.cellMetaData.dragged,o=e.cellMetaData.dragged;return!!r&&(t=o&&n.props.idx===o.idx||r&&n.props.idx===r.idx)},n.isCopyCellChanging=function(e){var t=void 0,r=n.props.cellMetaData.copied,o=e.cellMetaData.copied;return!!r&&(t=o&&n.props.idx===o.idx||r&&n.props.idx===r.idx)},n.isDraggedOverUpwards=function(){var e=n.props.cellMetaData.dragged;return!n.isSelected()&&n.isDraggedOver()&&n.props.rowIdx<e.rowIdx},n.isDraggedOverDownwards=function(){var e=n.props.cellMetaData.dragged;return!n.isSelected()&&n.isDraggedOver()&&n.props.rowIdx>e.rowIdx},n.isFocusedOnBody=function(){return null==document.activeElement||document.activeElement.nodeName&&"string"==typeof document.activeElement.nodeName&&"body"===document.activeElement.nodeName.toLowerCase()},n.isFocusedOnCell=function(){return document.activeElement&&document.activeElement.className.indexOf("react-grid-Cell")!==-1},n.checkFocus=function(){if(n.isSelected()&&!n.isActive()){if(n.props.isScrolling&&!n.props.cellMetaData.isScrollingVerticallyWithKeyboard&&!n.props.cellMetaData.isScrollingHorizontallyWithKeyboard)return;var e=n.props.cellMetaData&&n.props.cellMetaData.enableCellAutoFocus,t=n.props.cellMetaData&&n.props.cellMetaData.getDataGridDOMNode?n.props.cellMetaData.getDataGridDOMNode():null;if(n.isFocusedOnCell()||e&&n.isFocusedOnBody()||t&&t.contains(document.activeElement)){var r=n.node;r&&r.focus()}}},n.canEdit=function(){return null!=n.props.column.editor||n.props.column.editable},n.canExpand=function(){return n.props.expandableOptions&&n.props.expandableOptions.canExpand},n.createColumEventCallBack=function(e,t){return function(r){e(r,t)}},n.createCellEventCallBack=function(e,t){return function(r){e(r),t(r)}},n.createEventDTO=function(e,t,r){var o=Object.assign({},e);for(var i in t)if(t.hasOwnProperty(i)){var a=t[a],s={idx:n.props.idx,rowIdx:n.props.rowIdx,rowId:n.props.rowData[n.props.cellMetaData.rowKey],name:i},l=n.createColumEventCallBack(r,s);if(o.hasOwnProperty(i)){var u=o[i];o[i]=n.createCellEventCallBack(u,l)}else o[i]=l}return o},n.getEvents=function(){var e=n.props.column?Object.assign({},n.props.column.events):void 0,t=n.props.cellMetaData?n.props.cellMetaData.onColumnEvent:void 0,r={onClick:n.onCellClick,onFocus:n.onCellFocus,onDoubleClick:n.onCellDoubleClick,onContextMenu:n.onCellContextMenu,onDragOver:n.onDragOver};return e&&t?n.createEventDTO(r,e,t):r},n.getKnownDivProps=function(){return I(n.props,D)},n.renderCellContent=function(e){var t=void 0,r=n.getFormatter();w.isValidElement(r)?(e.dependentValues=n.getFormatterDependencies(),t=w.cloneElement(r,e)):t=C(r)?w.createElement(r,{value:n.props.value,dependentValues:n.getFormatterDependencies()}):w.createElement(S,{value:n.props.value});var o=!!n.props.expandableOptions&&n.props.expandableOptions.field===n.props.column.key,i=n.props.expandableOptions?n.props.expandableOptions.treeDepth:0,a=n.props.expandableOptions&&o?30*n.props.expandableOptions.treeDepth:0,s=void 0,l=void 0;n.canExpand()&&(s=w.createElement(g.default,{expandableOptions:n.props.expandableOptions,onCellExpand:n.onCellExpand}));var u=!!n.props.cellMetaData.onDeleteSubRow;return i>0&&o&&(l=w.createElement(y.default,{treeDepth:i,cellHeight:n.props.height,siblingIndex:n.props.expandableOptions.subRowDetails.siblingIndex,numberSiblings:n.props.expandableOptions.subRowDetails.numberSiblings,onDeleteSubRow:n.onDeleteSubRow,isDeleteSubRowEnabled:u})),w.createElement("div",{className:"react-grid-Cell__value"},l,w.createElement("div",{style:{marginLeft:a}},w.createElement("span",null,t)," ",n.props.cellControls," ",s))},a=r,i(n,a)}return a(t,e),t.prototype.componentDidMount=function(){this.checkFocus()},t.prototype.componentWillReceiveProps=function(e){this.setState({isCellValueChanging:this.props.isCellValueChanging(this.props.value,e.value),isLockChanging:this.props.column.locked!==e.column.locked})},t.prototype.componentDidUpdate=function(){this.checkFocus();var e=this.props.cellMetaData.dragged;e&&e.complete===!0&&this.props.cellMetaData.handleTerminateDrag(),this.state.isCellValueChanging&&null!=this.props.selectedColumn&&this.applyUpdateClass(),this.state.isLockChanging&&!this.props.column.locked&&this.removeScroll()},t.prototype.shouldComponentUpdate=function(e){var t=this.props.column.width!==e.column.width||this.props.column.left!==e.column.left||this.props.column.cellClass!==e.column.cellClass||this.props.height!==e.height||this.props.rowIdx!==e.rowIdx||this.isCellSelectionChanging(e)||this.isDraggedCellChanging(e)||this.isCopyCellChanging(e)||this.props.isRowSelected!==e.isRowSelected||this.isSelected()||this.props.isCellValueChanging(this.props.value,e.value)||this.props.forceUpdate===!0||this.props.className!==e.className||this.props.expandableOptions!==e.expandableOptions||this.hasChangedDependentValues(e)||this.props.column.locked!==e.column.locked;return t},t.prototype.getCellActions=function(){var e=this.props,t=e.cellMetaData,r=e.column,n=e.rowData;if(t&&t.getCellActions){var o=t.getCellActions(r,n);return o&&o.length?o.map(function(e,t){return w.createElement(f.default,{key:t,action:e,isFirst:0===t})}):null}return null},t.prototype.render=function(){var e=this;if(this.props.column.hidden)return null;var t=this.getStyle(),r=this.getCellClass(),n=this.getCellActions(),o=this.props.children||this.renderCellContent({value:this.props.value,column:this.props.column,rowIdx:this.props.rowIdx,isExpanded:this.props.isExpanded}),i=!this.isActive()&&R.canEdit(this.props.column,this.props.rowData,this.props.cellMetaData.enableCellSelect)?w.createElement("div",{className:"drag-handle",draggable:"true",onDoubleClick:this.onDragHandleDoubleClick},w.createElement("span",{style:{display:"none"}})):null,a=this.getEvents(),l=this.props.tooltip?w.createElement("span",{className:"cell-tooltip-text"},this.props.tooltip):null;return w.createElement("div",s({},this.getKnownDivProps(),{className:r,style:t},a,{ref:function(t){e.node=t}}),n,o,i,l)},t}(w.Component);E.propTypes={rowIdx:p.default.number.isRequired,idx:p.default.number.isRequired,selected:p.default.shape({idx:p.default.number.isRequired}),selectedColumn:p.default.object,height:p.default.number,tabIndex:p.default.number,column:p.default.shape(_).isRequired,value:p.default.oneOfType([p.default.string,p.default.number,p.default.object,p.default.bool]),isExpanded:p.default.bool,isRowSelected:p.default.bool,cellMetaData:p.default.shape(x).isRequired,handleDragStart:p.default.func,className:p.default.string,cellControls:p.default.any,rowData:p.default.object.isRequired,forceUpdate:p.default.bool,expandableOptions:p.default.object.isRequired,isScrolling:p.default.bool.isRequired,tooltip:p.default.string,isCellValueChanging:p.default.func,children:p.default.oneOfType([p.default.arrayOf(p.default.node),p.default.node])},E.defaultProps={tabIndex:0,isExpanded:!1,value:"",isCellValueChanging:function(e,t){return e!==t}},e.exports=E},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}function s(e){var t="header"===e.column.rowType?e.column.name:"";return c.createElement("div",{className:"widget-HeaderCell__value"},t)}var l=r(3),u=n(l),c=r(2),p=r(10),d=r(6),f=r(13),h=r(121);r(16);var g=function(e){function t(){var r,n,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=i(this,e.call.apply(e,[this].concat(l))),n.state={resizing:!1},n.onDragStart=function(e){n.setState({resizing:!0}),e&&e.dataTransfer&&e.dataTransfer.setData&&e.dataTransfer.setData("text/plain","dummy")},n.onDrag=function(e){var t=n.props.onResize||null;if(t){var r=n.getWidthFromMouseEvent(e);r>0&&t(n.props.column,r)}},n.onDragEnd=function(e){var t=n.getWidthFromMouseEvent(e);n.props.onResizeEnd(n.props.column,t),n.setState({resizing:!1})},n.getWidthFromMouseEvent=function(e){var t=e.pageX||e.touches&&e.touches[0]&&e.touches[0].pageX||e.changedTouches&&e.changedTouches[e.changedTouches.length-1].pageX,r=p.findDOMNode(n).getBoundingClientRect().left;return t-r},n.getCell=function(){return c.isValidElement(n.props.renderer)?"string"==typeof n.props.renderer.type?c.cloneElement(n.props.renderer,{height:n.props.height}):c.cloneElement(n.props.renderer,{column:n.props.column,height:n.props.height}):n.props.renderer({column:n.props.column})},n.getStyle=function(){return{width:n.props.column.width,left:n.props.column.left,display:"inline-block",position:"absolute",height:n.props.height,margin:0,textOverflow:"ellipsis",whiteSpace:"nowrap"}},n.setScrollLeft=function(e){var t=p.findDOMNode(n);t.style.webkitTransform="translate3d("+e+"px, 0px, 0px)",t.style.transform="translate3d("+e+"px, 0px, 0px)"},n.removeScroll=function(){var e=p.findDOMNode(n);if(e){var t="none";e.style.webkitTransform=t,e.style.transform=t}},a=r,i(n,a)}return a(t,e),t.prototype.render=function(){var e=void 0;this.props.column.resizable&&(e=c.createElement(h,{onDrag:this.onDrag,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd}));var t=d({"react-grid-HeaderCell":!0,"react-grid-HeaderCell--resizing":this.state.resizing,"react-grid-HeaderCell--locked":this.props.column.locked});t=d(t,this.props.className,this.props.column.cellClass);var r=this.getCell();return c.createElement("div",{className:t,style:this.getStyle()},r,e)},t}(c.Component);g.propTypes={renderer:u.default.oneOfType([u.default.func,u.default.element]).isRequired,column:u.default.shape(f).isRequired,onResize:u.default.func.isRequired,height:u.default.number.isRequired,onResizeEnd:u.default.func.isRequired,className:u.default.string},g.defaultProps={renderer:s},e.exports=g},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=r(117),u=n(l),c=r(44),p=n(c),d=r(3),f=n(d),h=r(2),g=r(6),v=r(41),y=r(7),w=r(12),m=r(15);r(30);var b=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return h.createElement(v,this.props)},t}(h.Component),_=["height"],C=function(e){function t(){var r,n,a;o(this,t);for(var l=arguments.length,c=Array(l),p=0;p<l;p++)c[p]=arguments[p];return r=n=i(this,e.call.apply(e,[this].concat(c))),n.handleDragEnter=function(){var e=n.props.cellMetaData.handleDragEnterRow;e&&e(n.props.idx)},n.getSelectedColumn=function(){if(n.props.cellMetaData){var e=n.props.cellMetaData.selected;if(e&&e.idx)return y.getColumn(n.props.columns,e.idx)}},n.getCellRenderer=function(e){var t=n.props.cellRenderer;return n.props.subRowDetails&&n.props.subRowDetails.field===e?b:t},n.getCell=function(e,t,r){var o=n.props.cellRenderer,i=n.props,a=i.colVisibleStart,l=i.colVisibleEnd,c=i.idx,p=i.cellMetaData,d=e.key,f=e.formatter,g=e.locked,v={key:d+"-"+c,idx:t,rowIdx:c,height:n.getRowHeight(),column:e,cellMetaData:p};if((t<a||t>l)&&!g)return h.createElement(u.default,s({ref:function(e){return n[d]=e}},v));var y=n.props,w=y.row,m=y.isSelected,b={ref:function(e){return n[d]=e},value:n.getCellValue(d||t),rowData:w,isRowSelected:m,expandableOptions:n.getExpandableOptions(d),selectedColumn:r,formatter:f,isScrolling:n.props.isScrolling};return h.createElement(o,s({},v,b))},n.getCells=function(){var e=[],t=[],r=n.getSelectedColumn(),o=n.props.columns.size-1;return n.props.columns&&n.props.columns.forEach(function(i,a){a===o&&(i.isLastColumn=!0);var s=n.getCell(i,a,r);i.locked?t.push(s):e.push(s)}),e.concat(t)},n.getRowHeight=function(){var e=n.props.expandedRows||null;if(e&&n.props.idx){var t=e[n.props.idx]||null;if(t)return t.height}return n.props.height},n.getCellValue=function(e){var t=void 0;return"select-row"===e?n.props.isSelected:t="function"==typeof n.props.row.get?n.props.row.get(e):n.props.row[e]},n.isContextMenuDisplayed=function(){if(n.props.cellMetaData){var e=n.props.cellMetaData.selected;if(e&&e.contextMenuDisplayed&&e.rowIdx===n.props.idx)return!0}return!1},n.getExpandableOptions=function(e){var t=n.props.subRowDetails;return t?{canExpand:t&&t.field===e&&(t.children&&t.children.length>0||t.group===!0),field:t.field,expanded:t&&t.expanded,children:t&&t.children,treeDepth:t?t.treeDepth:0,subRowDetails:t}:{}},n.setScrollLeft=function(e){n.props.columns.forEach(function(t){if(t.locked){if(!n[t.key])return;n[t.key].setScrollLeft(e)}})},n.getKnownDivProps=function(){return m(n.props,_)},n.renderCell=function(e){return"function"==typeof n.props.cellRenderer&&n.props.cellRenderer.call(n,e),h.isValidElement(n.props.cellRenderer)?h.cloneElement(n.props.cellRenderer,e):n.props.cellRenderer(e)},a=r,i(n,a)}return a(t,e),t.prototype.shouldComponentUpdate=function(e){return(0,p.default)(e,this.props)},t.prototype.render=function(){var e=g("react-grid-Row","react-grid-Row--"+(this.props.idx%2===0?"even":"odd"),{"row-selected":this.props.isSelected,"row-context-menu":this.isContextMenuDisplayed()},this.props.extraClasses),t={height:this.getRowHeight(this.props),overflow:"hidden",contain:"layout"},r=this.getCells();return h.createElement("div",s({},this.getKnownDivProps(),{className:e,style:t,onDragEnter:this.handleDragEnter}),h.isValidElement(this.props.row)?this.props.row:r)},t}(h.Component);C.displayName="Row",C.propTypes={height:f.default.number.isRequired,columns:f.default.oneOfType([f.default.object,f.default.array]).isRequired,row:f.default.any.isRequired,cellRenderer:f.default.func,cellMetaData:f.default.shape(w),isSelected:f.default.bool,idx:f.default.number.isRequired,expandedRows:f.default.arrayOf(f.default.object),extraClasses:f.default.string,forceUpdate:f.default.bool,subRowDetails:f.default.object,isRowHovered:f.default.bool,colVisibleStart:f.default.number.isRequired,colVisibleEnd:f.default.number.isRequired,colDisplayStart:f.default.number.isRequired,colDisplayEnd:f.default.number.isRequired,isScrolling:f.default.bool.isRequired},C.defaultProps={cellRenderer:v,isSelected:!1,height:35},e.exports=C},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.cellMetaData.selected;return!(!t||t.rowIdx!==e.idx)}function i(e){var t=e.cellMetaData.dragged;return null!=t&&(t.rowIdx>=0||t.complete===!0)}function a(e){var t=e.cellMetaData.copied;return null!=t&&t.rowIdx===e.idx}t.__esModule=!0,t.shouldRowUpdate=void 0;var s=r(32),l=n(s),u=t.shouldRowUpdate=function(e,t){return!l.default.sameColumns(t.columns,e.columns,l.default.sameColumn)||o(t)||o(e)||i(e)||e.row!==t.row||t.colDisplayStart!==e.colDisplayStart||t.colDisplayEnd!==e.colDisplayEnd||t.colVisibleStart!==e.colVisibleStart||t.colVisibleEnd!==e.colVisibleEnd||a(t)||t.isSelected!==e.isSelected||e.height!==t.height||t.isOver!==e.isOver||t.expandedRows!==e.expandedRows||t.canDrop!==e.canDrop||t.forceUpdate===!0||t.extraClasses!==e.extraClasses};t.default=u},function(e,t){"use strict";var r={get:function(e,t){return"function"==typeof e.get?e.get(t):e[t]},isRowSelected:function(e,t,r,n,o){return t&&"[object Array]"===Object.prototype.toString.call(t)?t.indexOf(o)>-1:e&&e.rowKey&&e.values&&"[object Array]"===Object.prototype.toString.call(e.values)?e.values.indexOf(n[e.rowKey])>-1:!(!r||!n||"string"!=typeof r)&&n[r]}};e.exports=r},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}t.__esModule=!0,t.SimpleRowsContainer=t.getNewContextMenuProps=t.DEFAULT_CONTEXT_MENU_ID=void 0;var s=r(2),l=n(s),u=r(3),c=n(u),p=t.DEFAULT_CONTEXT_MENU_ID="rgdContextMenu",d=function(e){return l.default.createElement("div",{key:"rows-container"},e.rows)};d.propTypes={width:c.default.number,rows:c.default.array};var f=t.getNewContextMenuProps=function(e){var t=e.contextMenu,r=e.rowIdx,n=e.idx;return{rowIdx:r,idx:n,id:t.props.id||p}},h=function(e){function t(r){o(this,t);var n=i(this,e.call(this,r));return n.plugins=r.window?r.window.ReactDataGridPlugins:window.ReactDataGridPlugins,n}return a(t,e),t.prototype.validatePlugin=function(){if(!this.plugins)throw new Error("You need to include ReactDataGrid UiPlugins in order to initialise context menu")},t.prototype.hasContextMenu=function(){return this.props.contextMenu&&l.default.isValidElement(this.props.contextMenu)},t.prototype.renderRowsWithContextMenu=function(){var e=this.plugins.Menu.ContextMenuTrigger,t=f(this.props),r=l.default.cloneElement(this.props.contextMenu,t);return l.default.createElement("div",null,l.default.createElement(e,{id:t.id},l.default.createElement(d,this.props)),r)},t.prototype.render=function(){return this.hasContextMenu()?(this.validatePlugin(),this.renderRowsWithContextMenu()):l.default.createElement(d,this.props)},t}(l.default.Component);h.propTypes={contextMenu:c.default.element,rowIdx:c.default.number,idx:c.default.number,window:c.default.object},t.default=h,t.SimpleRowsContainer=d},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=r(3),l=n(s),u=r(2),c=r(6),p={ASC:"ASC",DESC:"DESC",NONE:"NONE"},d=function(e){function t(){var r,n,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=i(this,e.call.apply(e,[this].concat(l))),n.onClick=function(){var e=void 0,t=n.props,r=t.sortDirection,o=t.sortDescendingFirst;switch(r){default:case null:case void 0:case p.NONE:e=o?p.DESC:p.ASC;break;case p.ASC:e=o?p.NONE:p.DESC;break;case p.DESC:e=o?p.ASC:p.NONE}n.props.onSort(n.props.columnKey,e)},n.getSortByText=function(){var e={ASC:"9650",DESC:"9660"};return"NONE"===n.props.sortDirection?"":String.fromCharCode(e[n.props.sortDirection])},a=r,i(n,a)}return a(t,e),t.prototype.render=function(){var e=c({"react-grid-HeaderCell-sortable":!0,"react-grid-HeaderCell-sortable--ascending":"ASC"===this.props.sortDirection,"react-grid-HeaderCell-sortable--descending":"DESC"===this.props.sortDirection}),t=this.props.headerRenderer?this.props.headerRenderer:this.props.column.name;return u.createElement("div",{className:e,onClick:this.onClick,style:{cursor:"pointer"}},u.createElement("span",{className:"pull-right"},this.getSortByText()),t)},t}(u.Component);d.propTypes={columnKey:l.default.string.isRequired,column:l.default.shape({name:l.default.node}),onSort:l.default.func.isRequired,sortDirection:l.default.oneOf(Object.keys(p)),headerRenderer:l.default.node,sortDescendingFirst:l.default.bool},e.exports=d,e.exports.DEFINE_SORT=p},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=r(3),l=n(s),u=r(2);r(71);var c=function(e){function t(){var r,n,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=i(this,e.call.apply(e,[this].concat(l))),n.handleChange=function(e){n.props.column.onCellChange(n.props.rowIdx,n.props.column.key,n.props.dependentValues,e)},a=r,i(n,a)}return a(t,e),t.prototype.render=function(){var e=null!=this.props.value&&this.props.value,t="checkbox"+this.props.rowIdx;return u.createElement("div",{className:"react-grid-checkbox-container checkbox-align",onClick:this.handleChange},u.createElement("input",{className:"react-grid-checkbox",type:"checkbox",name:t,checked:e}),u.createElement("label",{htmlFor:t,className:"react-grid-checkbox-label"}))},t}(u.Component);c.propTypes={value:l.default.bool,rowIdx:l.default.number,column:l.default.shape({key:l.default.string,onCellChange:l.default.func}),dependentValues:l.default.object},e.exports=c},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=r(3),l=n(s),u=r(2),c=r(10),p=r(13),d=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.getStyle=function(){return{width:"100%"}},t.prototype.getValue=function(){var e={};return e[this.props.column.key]=this.getInputNode().value,e},t.prototype.getInputNode=function(){var e=c.findDOMNode(this);return"INPUT"===e.tagName?e:e.querySelector("input:not([type=hidden])")},t.prototype.inheritContainerStyles=function(){return!0},t}(u.Component);d.propTypes={onKeyDown:l.default.func.isRequired,value:l.default.any.isRequired,onBlur:l.default.func.isRequired,column:l.default.shape(p).isRequired,commit:l.default.func.isRequired},e.exports=d},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}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 a=r(2),s=r(49),l=function(e){function t(){return n(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this;return a.createElement("input",{ref:function(t){return e.input=t},type:"text",onBlur:this.props.onBlur,className:"form-control",defaultValue:this.props.value})},t}(s);e.exports=l},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(2),i=n(o),a=r(3),s=n(a),l=function(e){return i.default.createElement("div",{className:"react-grid-checkbox-container checkbox-align"},i.default.createElement("input",{className:"react-grid-checkbox",type:"checkbox",name:"select-all-checkbox",id:"select-all-checkbox",ref:e.inputRef,onChange:e.onChange}),i.default.createElement("label",{htmlFor:"select-all-checkbox",className:"react-grid-checkbox-label"
|
|
}))};l.propTypes={onChange:s.default.func,inputRef:s.default.func},t.default=l},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=r(3),l=n(s),u=r(2),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.shouldComponentUpdate=function(e){return e.value!==this.props.value},t.prototype.render=function(){return u.createElement("div",{title:this.props.value},this.props.value)},t}(u.Component);c.propTypes={value:l.default.oneOfType([l.default.string,l.default.number,l.default.object,l.default.bool]).isRequired},e.exports=c},function(e,t){"use strict";function r(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}e.exports=r},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r(19);e.exports={isEmptyArray:r(132),isEmptyObject:r(133),isFunction:r(20),isImmutableCollection:r(134),getMixedTypeValueRetriever:r(136),isColumnsImmutable:r(55),isImmutableMap:r(135),last:function(e){if(null==e)throw new Error("arrayOrCollection is null");if(o.List.isList(e))return e.last();if(Array.isArray(e))return e[e.length-1];throw new Error("Cant get last of: "+("undefined"==typeof e?"undefined":n(e)))}}},function(e,t){"use strict";e.exports=function(e){return"undefined"!=typeof Immutable&&e instanceof Immutable.List}},function(e,t){"use strict";function r(e){var t=e>47&&e<58||32===e||13===e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223;return t}function n(e){return(e.ctrlKey===!0||e.metaKey===!0)&&"Control"!==e.key}t.__esModule=!0,t.isKeyPrintable=r,t.isCtrlKeyHeldDown=n},,,,,,,,,,,,,,function(e,t){e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],p=t[u];if(o=r?r.call(n,c,p,u):void 0,o===!1||void 0===o&&c!==p)return!1}return!0}},function(e,t,r){var n=r(140);"string"==typeof n&&(n=[[e.id,n,""]]);r(9)(n,{});n.locals&&(e.exports=n.locals)},,,,,,,,function(e,t,r){var n,o;(function(){function r(e){function t(t,r,n,o,i,a){for(;i>=0&&i<a;i+=e){var s=o?o[i]:i;n=r(n,t[s],s,t)}return n}return function(r,n,o,i){n=x(n,i,4);var a=!M(r)&&C.keys(r),s=(a||r).length,l=e>0?0:s-1;return arguments.length<3&&(o=r[a?a[l]:l],l+=e),t(r,n,o,a,l,s)}}function i(e){return function(t,r,n){r=S(r,n);for(var o=O(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(r(t[i],i,t))return i;return-1}}function a(e,t,r){return function(n,o,i){var a=0,s=O(n);if("number"==typeof i)e>0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(r&&i&&s)return i=r(n,o),n[i]===o?i:-1;if(o!==o)return i=t(h.call(n,a,s),C.isNaN),i>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i<s;i+=e)if(n[i]===o)return i;return-1}}function s(e,t){var r=z.length,n=e.constructor,o=C.isFunction(n)&&n.prototype||p,i="constructor";for(C.has(e,i)&&!C.contains(t,i)&&t.push(i);r--;)i=z[r],i in e&&e[i]!==o[i]&&!C.contains(t,i)&&t.push(i)}var l=this,u=l._,c=Array.prototype,p=Object.prototype,d=Function.prototype,f=c.push,h=c.slice,g=p.toString,v=p.hasOwnProperty,y=Array.isArray,w=Object.keys,m=d.bind,b=Object.create,_=function(){},C=function(e){return e instanceof C?e:this instanceof C?void(this._wrapped=e):new C(e)};"undefined"!=typeof e&&e.exports&&(t=e.exports=C),t._=C,C.VERSION="1.8.3";var x=function(e,t,r){if(void 0===t)return e;switch(null==r?3:r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)};case 4:return function(r,n,o,i){return e.call(t,r,n,o,i)}}return function(){return e.apply(t,arguments)}},S=function(e,t,r){return null==e?C.identity:C.isFunction(e)?x(e,t,r):C.isObject(e)?C.matcher(e):C.property(e)};C.iteratee=function(e,t){return S(e,t,1/0)};var R=function(e,t){return function(r){var n=arguments.length;if(n<2||null==r)return r;for(var o=1;o<n;o++)for(var i=arguments[o],a=e(i),s=a.length,l=0;l<s;l++){var u=a[l];t&&void 0!==r[u]||(r[u]=i[u])}return r}},I=function(e){if(!C.isObject(e))return{};if(b)return b(e);_.prototype=e;var t=new _;return _.prototype=null,t},D=function(e){return function(t){return null==t?void 0:t[e]}},E=Math.pow(2,53)-1,O=D("length"),M=function(e){var t=O(e);return"number"==typeof t&&t>=0&&t<=E};C.each=C.forEach=function(e,t,r){t=x(t,r);var n,o;if(M(e))for(n=0,o=e.length;n<o;n++)t(e[n],n,e);else{var i=C.keys(e);for(n=0,o=i.length;n<o;n++)t(e[i[n]],i[n],e)}return e},C.map=C.collect=function(e,t,r){t=S(t,r);for(var n=!M(e)&&C.keys(e),o=(n||e).length,i=Array(o),a=0;a<o;a++){var s=n?n[a]:a;i[a]=t(e[s],s,e)}return i},C.reduce=C.foldl=C.inject=r(1),C.reduceRight=C.foldr=r(-1),C.find=C.detect=function(e,t,r){var n;if(n=M(e)?C.findIndex(e,t,r):C.findKey(e,t,r),void 0!==n&&n!==-1)return e[n]},C.filter=C.select=function(e,t,r){var n=[];return t=S(t,r),C.each(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n},C.reject=function(e,t,r){return C.filter(e,C.negate(S(t)),r)},C.every=C.all=function(e,t,r){t=S(t,r);for(var n=!M(e)&&C.keys(e),o=(n||e).length,i=0;i<o;i++){var a=n?n[i]:i;if(!t(e[a],a,e))return!1}return!0},C.some=C.any=function(e,t,r){t=S(t,r);for(var n=!M(e)&&C.keys(e),o=(n||e).length,i=0;i<o;i++){var a=n?n[i]:i;if(t(e[a],a,e))return!0}return!1},C.contains=C.includes=C.include=function(e,t,r,n){return M(e)||(e=C.values(e)),("number"!=typeof r||n)&&(r=0),C.indexOf(e,t,r)>=0},C.invoke=function(e,t){var r=h.call(arguments,2),n=C.isFunction(t);return C.map(e,function(e){var o=n?t:e[t];return null==o?o:o.apply(e,r)})},C.pluck=function(e,t){return C.map(e,C.property(t))},C.where=function(e,t){return C.filter(e,C.matcher(t))},C.findWhere=function(e,t){return C.find(e,C.matcher(t))},C.max=function(e,t,r){var n,o,i=-(1/0),a=-(1/0);if(null==t&&null!=e){e=M(e)?e:C.values(e);for(var s=0,l=e.length;s<l;s++)n=e[s],n>i&&(i=n)}else t=S(t,r),C.each(e,function(e,r,n){o=t(e,r,n),(o>a||o===-(1/0)&&i===-(1/0))&&(i=e,a=o)});return i},C.min=function(e,t,r){var n,o,i=1/0,a=1/0;if(null==t&&null!=e){e=M(e)?e:C.values(e);for(var s=0,l=e.length;s<l;s++)n=e[s],n<i&&(i=n)}else t=S(t,r),C.each(e,function(e,r,n){o=t(e,r,n),(o<a||o===1/0&&i===1/0)&&(i=e,a=o)});return i},C.shuffle=function(e){for(var t,r=M(e)?e:C.values(e),n=r.length,o=Array(n),i=0;i<n;i++)t=C.random(0,i),t!==i&&(o[i]=o[t]),o[t]=r[i];return o},C.sample=function(e,t,r){return null==t||r?(M(e)||(e=C.values(e)),e[C.random(e.length-1)]):C.shuffle(e).slice(0,Math.max(0,t))},C.sortBy=function(e,t,r){return t=S(t,r),C.pluck(C.map(e,function(e,r,n){return{value:e,index:r,criteria:t(e,r,n)}}).sort(function(e,t){var r=e.criteria,n=t.criteria;if(r!==n){if(r>n||void 0===r)return 1;if(r<n||void 0===n)return-1}return e.index-t.index}),"value")};var k=function(e){return function(t,r,n){var o={};return r=S(r,n),C.each(t,function(n,i){var a=r(n,i,t);e(o,n,a)}),o}};C.groupBy=k(function(e,t,r){C.has(e,r)?e[r].push(t):e[r]=[t]}),C.indexBy=k(function(e,t,r){e[r]=t}),C.countBy=k(function(e,t,r){C.has(e,r)?e[r]++:e[r]=1}),C.toArray=function(e){return e?C.isArray(e)?h.call(e):M(e)?C.map(e,C.identity):C.values(e):[]},C.size=function(e){return null==e?0:M(e)?e.length:C.keys(e).length},C.partition=function(e,t,r){t=S(t,r);var n=[],o=[];return C.each(e,function(e,r,i){(t(e,r,i)?n:o).push(e)}),[n,o]},C.first=C.head=C.take=function(e,t,r){if(null!=e)return null==t||r?e[0]:C.initial(e,e.length-t)},C.initial=function(e,t,r){return h.call(e,0,Math.max(0,e.length-(null==t||r?1:t)))},C.last=function(e,t,r){if(null!=e)return null==t||r?e[e.length-1]:C.rest(e,Math.max(0,e.length-t))},C.rest=C.tail=C.drop=function(e,t,r){return h.call(e,null==t||r?1:t)},C.compact=function(e){return C.filter(e,C.identity)};var A=function(e,t,r,n){for(var o=[],i=0,a=n||0,s=O(e);a<s;a++){var l=e[a];if(M(l)&&(C.isArray(l)||C.isArguments(l))){t||(l=A(l,t,r));var u=0,c=l.length;for(o.length+=c;u<c;)o[i++]=l[u++]}else r||(o[i++]=l)}return o};C.flatten=function(e,t){return A(e,t,!1)},C.without=function(e){return C.difference(e,h.call(arguments,1))},C.uniq=C.unique=function(e,t,r,n){C.isBoolean(t)||(n=r,r=t,t=!1),null!=r&&(r=S(r,n));for(var o=[],i=[],a=0,s=O(e);a<s;a++){var l=e[a],u=r?r(l,a,e):l;t?(a&&i===u||o.push(l),i=u):r?C.contains(i,u)||(i.push(u),o.push(l)):C.contains(o,l)||o.push(l)}return o},C.union=function(){return C.uniq(A(arguments,!0,!0))},C.intersection=function(e){for(var t=[],r=arguments.length,n=0,o=O(e);n<o;n++){var i=e[n];if(!C.contains(t,i)){for(var a=1;a<r&&C.contains(arguments[a],i);a++);a===r&&t.push(i)}}return t},C.difference=function(e){var t=A(arguments,!0,!0,1);return C.filter(e,function(e){return!C.contains(t,e)})},C.zip=function(){return C.unzip(arguments)},C.unzip=function(e){for(var t=e&&C.max(e,O).length||0,r=Array(t),n=0;n<t;n++)r[n]=C.pluck(e,n);return r},C.object=function(e,t){for(var r={},n=0,o=O(e);n<o;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r},C.findIndex=i(1),C.findLastIndex=i(-1),C.sortedIndex=function(e,t,r,n){r=S(r,n,1);for(var o=r(t),i=0,a=O(e);i<a;){var s=Math.floor((i+a)/2);r(e[s])<o?i=s+1:a=s}return i},C.indexOf=a(1,C.findIndex,C.sortedIndex),C.lastIndexOf=a(-1,C.findLastIndex),C.range=function(e,t,r){null==t&&(t=e||0,e=0),r=r||1;for(var n=Math.max(Math.ceil((t-e)/r),0),o=Array(n),i=0;i<n;i++,e+=r)o[i]=e;return o};var T=function(e,t,r,n,o){if(!(n instanceof t))return e.apply(r,o);var i=I(e.prototype),a=e.apply(i,o);return C.isObject(a)?a:i};C.bind=function(e,t){if(m&&e.bind===m)return m.apply(e,h.call(arguments,1));if(!C.isFunction(e))throw new TypeError("Bind must be called on a function");var r=h.call(arguments,2),n=function(){return T(e,n,t,this,r.concat(h.call(arguments)))};return n},C.partial=function(e){var t=h.call(arguments,1),r=function(){for(var n=0,o=t.length,i=Array(o),a=0;a<o;a++)i[a]=t[a]===C?arguments[n++]:t[a];for(;n<arguments.length;)i.push(arguments[n++]);return T(e,r,this,this,i)};return r},C.bindAll=function(e){var t,r,n=arguments.length;if(n<=1)throw new Error("bindAll must be passed function names");for(t=1;t<n;t++)r=arguments[t],e[r]=C.bind(e[r],e);return e},C.memoize=function(e,t){var r=function(n){var o=r.cache,i=""+(t?t.apply(this,arguments):n);return C.has(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return r.cache={},r},C.delay=function(e,t){var r=h.call(arguments,2);return setTimeout(function(){return e.apply(null,r)},t)},C.defer=C.partial(C.delay,C,1),C.throttle=function(e,t,r){var n,o,i,a=null,s=0;r||(r={});var l=function(){s=r.leading===!1?0:C.now(),a=null,i=e.apply(n,o),a||(n=o=null)};return function(){var u=C.now();s||r.leading!==!1||(s=u);var c=t-(u-s);return n=this,o=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),s=u,i=e.apply(n,o),a||(n=o=null)):a||r.trailing===!1||(a=setTimeout(l,c)),i}},C.debounce=function(e,t,r){var n,o,i,a,s,l=function(){var u=C.now()-a;u<t&&u>=0?n=setTimeout(l,t-u):(n=null,r||(s=e.apply(i,o),n||(i=o=null)))};return function(){i=this,o=arguments,a=C.now();var u=r&&!n;return n||(n=setTimeout(l,t)),u&&(s=e.apply(i,o),i=o=null),s}},C.wrap=function(e,t){return C.partial(t,e)},C.negate=function(e){return function(){return!e.apply(this,arguments)}},C.compose=function(){var e=arguments,t=e.length-1;return function(){for(var r=t,n=e[t].apply(this,arguments);r--;)n=e[r].call(this,n);return n}},C.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},C.before=function(e,t){var r;return function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}},C.once=C.partial(C.before,2);var j=!{toString:null}.propertyIsEnumerable("toString"),z=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];C.keys=function(e){if(!C.isObject(e))return[];if(w)return w(e);var t=[];for(var r in e)C.has(e,r)&&t.push(r);return j&&s(e,t),t},C.allKeys=function(e){if(!C.isObject(e))return[];var t=[];for(var r in e)t.push(r);return j&&s(e,t),t},C.values=function(e){for(var t=C.keys(e),r=t.length,n=Array(r),o=0;o<r;o++)n[o]=e[t[o]];return n},C.mapObject=function(e,t,r){t=S(t,r);for(var n,o=C.keys(e),i=o.length,a={},s=0;s<i;s++)n=o[s],a[n]=t(e[n],n,e);return a},C.pairs=function(e){for(var t=C.keys(e),r=t.length,n=Array(r),o=0;o<r;o++)n[o]=[t[o],e[t[o]]];return n},C.invert=function(e){for(var t={},r=C.keys(e),n=0,o=r.length;n<o;n++)t[e[r[n]]]=r[n];return t},C.functions=C.methods=function(e){var t=[];for(var r in e)C.isFunction(e[r])&&t.push(r);return t.sort()},C.extend=R(C.allKeys),C.extendOwn=C.assign=R(C.keys),C.findKey=function(e,t,r){t=S(t,r);for(var n,o=C.keys(e),i=0,a=o.length;i<a;i++)if(n=o[i],t(e[n],n,e))return n},C.pick=function(e,t,r){var n,o,i={},a=e;if(null==a)return i;C.isFunction(t)?(o=C.allKeys(a),n=x(t,r)):(o=A(arguments,!1,!1,1),n=function(e,t,r){return t in r},a=Object(a));for(var s=0,l=o.length;s<l;s++){var u=o[s],c=a[u];n(c,u,a)&&(i[u]=c)}return i},C.omit=function(e,t,r){if(C.isFunction(t))t=C.negate(t);else{var n=C.map(A(arguments,!1,!1,1),String);t=function(e,t){return!C.contains(n,t)}}return C.pick(e,t,r)},C.defaults=R(C.allKeys,!0),C.create=function(e,t){var r=I(e);return t&&C.extendOwn(r,t),r},C.clone=function(e){return C.isObject(e)?C.isArray(e)?e.slice():C.extend({},e):e},C.tap=function(e,t){return t(e),e},C.isMatch=function(e,t){var r=C.keys(t),n=r.length;if(null==e)return!n;for(var o=Object(e),i=0;i<n;i++){var a=r[i];if(t[a]!==o[a]||!(a in o))return!1}return!0};var N=function(e,t,r,n){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;e instanceof C&&(e=e._wrapped),t instanceof C&&(t=t._wrapped);var o=g.call(e);if(o!==g.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}var i="[object Array]"===o;if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(C.isFunction(a)&&a instanceof a&&C.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[],n=n||[];for(var l=r.length;l--;)if(r[l]===e)return n[l]===t;if(r.push(e),n.push(t),i){if(l=e.length,l!==t.length)return!1;for(;l--;)if(!N(e[l],t[l],r,n))return!1}else{var u,c=C.keys(e);if(l=c.length,C.keys(t).length!==l)return!1;for(;l--;)if(u=c[l],!C.has(t,u)||!N(e[u],t[u],r,n))return!1}return r.pop(),n.pop(),!0};C.isEqual=function(e,t){return N(e,t)},C.isEmpty=function(e){return null==e||(M(e)&&(C.isArray(e)||C.isString(e)||C.isArguments(e))?0===e.length:0===C.keys(e).length)},C.isElement=function(e){return!(!e||1!==e.nodeType)},C.isArray=y||function(e){return"[object Array]"===g.call(e)},C.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},C.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){C["is"+e]=function(t){return g.call(t)==="[object "+e+"]"}}),C.isArguments(arguments)||(C.isArguments=function(e){return C.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(C.isFunction=function(e){return"function"==typeof e||!1}),C.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},C.isNaN=function(e){return C.isNumber(e)&&e!==+e},C.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"===g.call(e)},C.isNull=function(e){return null===e},C.isUndefined=function(e){return void 0===e},C.has=function(e,t){return null!=e&&v.call(e,t)},C.noConflict=function(){return l._=u,this},C.identity=function(e){return e},C.constant=function(e){return function(){return e}},C.noop=function(){},C.property=D,C.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},C.matcher=C.matches=function(e){return e=C.extendOwn({},e),function(t){return C.isMatch(t,e)}},C.times=function(e,t,r){var n=Array(Math.max(0,e));t=x(t,r,1);for(var o=0;o<e;o++)n[o]=t(o);return n},C.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},C.now=Date.now||function(){return(new Date).getTime()};var P={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},q=C.invert(P),H=function(e){var t=function(t){return e[t]},r="(?:"+C.keys(e).join("|")+")",n=RegExp(r),o=RegExp(r,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(o,t):e}};C.escape=H(P),C.unescape=H(q),C.result=function(e,t,r){var n=null==e?void 0:e[t];return void 0===n&&(n=r),C.isFunction(n)?n.call(e):n};var L=0;C.uniqueId=function(e){var t=++L+"";return e?e+t:t},C.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},G=/\\|'|\r|\n|\u2028|\u2029/g,W=function(e){return"\\"+U[e]};C.template=function(e,t,r){!t&&r&&(t=r),t=C.defaults({},t,C.templateSettings);var n=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(n,function(t,r,n,a,s){return i+=e.slice(o,s).replace(G,W),o=s+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":n?i+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var a=new Function(t.variable||"obj","_",i)}catch(e){throw e.source=i,e}var s=function(e){return a.call(this,e,C)},l=t.variable||"obj";return s.source="function("+l+"){\n"+i+"}",s},C.chain=function(e){var t=C(e);return t._chain=!0,t};var F=function(e,t){return e._chain?C(t).chain():t};C.mixin=function(e){C.each(C.functions(e),function(t){var r=C[t]=e[t];C.prototype[t]=function(){var e=[this._wrapped];return f.apply(e,arguments),F(this,r.apply(C,e))}})},C.mixin(C),C.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=c[e];C.prototype[e]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==e&&"splice"!==e||0!==r.length||delete r[0],F(this,r)}}),C.each(["concat","join","slice"],function(e){var t=c[e];C.prototype[e]=function(){return F(this,t.apply(this._wrapped,arguments))}}),C.prototype.value=function(){return this._wrapped},C.prototype.valueOf=C.prototype.toJSON=C.prototype.value,C.prototype.toString=function(){return""+this._wrapped},n=[],o=function(){return C}.apply(t,n),!(void 0!==o&&(e.exports=o))}).call(this)},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=r(3),u=n(l),c=r(137),p=r(70),d=n(p),f=r(46),h=n(f),g=r(122),v=n(g),y=r(2),w=r(6),m=r(43),b=r(12),_=r(45);r(21);var C=function(e){function t(){var r,n,a;o(this,t);for(var l=arguments.length,u=Array(l),p=0;p<l;p++)u[p]=arguments[p];return r=n=i(this,e.call.apply(e,[this].concat(u))),n.state={displayStart:n.props.displayStart,displayEnd:n.props.displayEnd,scrollingTimeout:null},n._currentRowsLength=0,n._currentRowsRange={start:0,end:0},n._scroll={scrollTop:0,scrollLeft:0},n.appendScrollShim=function(){if(!n._scrollShim){var e=n._scrollShimSize(),t=(0,c.createScrollShim)(e);n.canvas.appendChild(t),n._scrollShim=t}n._scheduleRemoveScrollShim()},n._scrollShimSize=function(){return{width:n.props.width,height:n.props.length*n.props.rowHeight}},n._scheduleRemoveScrollShim=function(){n._scheduleRemoveScrollShimTimer&&clearTimeout(n._scheduleRemoveScrollShimTimer),n._scheduleRemoveScrollShimTimer=setTimeout(n._removeScrollShim,200)},n._removeScrollShim=function(){n._scrollShim&&(n._scrollShim.parentNode.removeChild(n._scrollShim),n._scrollShim=void 0)},n.onRows=function(){n._currentRowsRange!=={start:0,end:0}&&(n.props.onRows(n._currentRowsRange),n._currentRowsRange={start:0,end:0})},n.onScroll=function(e){if(n.canvas===e.target){n.appendScrollShim();var t=e.target.scrollLeft,r=e.target.scrollTop,o={scrollTop:r,scrollLeft:t};n._scroll=o,n.props.onScroll(o)}},n.getRows=function(e,t){if(n._currentRowsRange={start:e,end:t},Array.isArray(n.props.rowGetter))return n.props.rowGetter.slice(e,t);for(var r=[],o=e;o<t;){var i=n.props.rowGetter(o),a={};n.props.getSubRowDetails&&(a=n.props.getSubRowDetails(i)),r.push({row:i,subRowDetails:a}),o++}return r},n.getScrollbarWidth=function(){var e=n.canvas.offsetWidth-n.canvas.clientWidth;return e},n.getScroll=function(){var e=n.canvas,t=e.scrollTop,r=e.scrollLeft;return{scrollTop:t,scrollLeft:r}},n.isRowSelected=function(e,t){if(null!==n.props.selectedRows){var r=n.props.selectedRows.filter(function(e){var r=t.get?t.get(n.props.rowKey):t[n.props.rowKey];return e[n.props.rowKey]===r});return r.length>0&&r[0].isSelected}if(n.props.rowSelection){var o=n.props.rowSelection,i=o.keys,a=o.indexes,s=o.isSelectedKey;return _.isRowSelected(i,a,s,t,e)}return!1},n.setScrollLeft=function(e){if(0!==n._currentRowsLength){if(!n.rows)return;for(var t=0,r=n._currentRowsLength;t<r;t++)if(n.rows[t]){var o=n.getRowByRef(t);o&&o.setScrollLeft&&o.setScrollLeft(e)}}},n.getRowByRef=function(e){var t=n.rows[e].getDecoratedComponentInstance?n.rows[e].getDecoratedComponentInstance(e):null;return t?t.row:n.rows[e]},n.renderRow=function(e){var t=e.row;if(t.__metaData&&t.__metaData.getRowRenderer)return t.__metaData.getRowRenderer(n.props,e.idx);if(t.__metaData&&t.__metaData.isGroup)return y.createElement(v.default,s({},e,t.__metaData,{name:t.name,renderer:n.props.rowGroupRenderer}));var r=n.props.rowRenderer;return"function"==typeof r?y.createElement(r,e):y.isValidElement(n.props.rowRenderer)?y.cloneElement(n.props.rowRenderer,e):void 0},n.renderPlaceholder=function(e,t){return y.createElement("div",{key:e,style:{height:t}},n.props.columns.map(function(e,t){return y.createElement("div",{style:{width:e.width},key:t})}))},a=r,i(n,a)}return a(t,e),t.prototype.componentWillMount=function(){this.rows=[],this._currentRowsLength=0,this._currentRowsRange={start:0,end:0},this._scroll={scrollTop:0,scrollLeft:0}},t.prototype.componentDidMount=function(){this.onRows()},t.prototype.componentWillReceiveProps=function(e){e.displayStart===this.state.displayStart&&e.displayEnd===this.state.displayEnd||this.setState({displayStart:e.displayStart,displayEnd:e.displayEnd})},t.prototype.shouldComponentUpdate=function(e,t){var r=t.displayStart!==this.state.displayStart||t.displayEnd!==this.state.displayEnd||t.scrollingTimeout!==this.state.scrollingTimeout||this.props.scrollToRowIndex!==e.scrollToRowIndex||e.rowsCount!==this.props.rowsCount||e.rowHeight!==this.props.rowHeight||e.columns!==this.props.columns||e.width!==this.props.width||e.height!==this.props.height||e.cellMetaData!==this.props.cellMetaData||this.props.colDisplayStart!==e.colDisplayStart||this.props.colDisplayEnd!==e.colDisplayEnd||this.props.colVisibleStart!==e.colVisibleStart||this.props.colVisibleEnd!==e.colVisibleEnd||!(0,d.default)(e.style,this.props.style)||this.props.isScrolling!==e.isScrolling;return r},t.prototype.componentWillUnmount=function(){this._currentRowsLength=0,this._currentRowsRange={start:0,end:0},this._scroll={scrollTop:0,scrollLeft:0}},t.prototype.componentDidUpdate=function(){0!==this._scroll.scrollTop&&0!==this._scroll.scrollLeft&&this.setScrollLeft(this._scroll.scrollLeft),0!==this.props.scrollToRowIndex&&(this.canvas.scrollTop=Math.min(this.props.scrollToRowIndex*this.props.rowHeight,this.props.rowsCount*this.props.rowHeight-this.props.height)),this.onRows()},t.prototype.render=function(){var e=this,t=this.state,r=t.displayStart,n=t.displayEnd,o=this.props,i=o.rowHeight,a=o.rowsCount,s=this.getRows(r,n).map(function(t,o){return e.renderRow({key:"row-"+(r+o),ref:function(t){return e.rows[o]=t},idx:r+o,visibleStart:e.props.visibleStart,visibleEnd:e.props.visibleEnd,row:t.row,height:i,onMouseOver:e.onMouseOver,columns:e.props.columns,isSelected:e.isRowSelected(r+o,t.row,r,n),expandedRows:e.props.expandedRows,cellMetaData:e.props.cellMetaData,subRowDetails:t.subRowDetails,colVisibleStart:e.props.colVisibleStart,colVisibleEnd:e.props.colVisibleEnd,colDisplayStart:e.props.colDisplayStart,colDisplayEnd:e.props.colDisplayEnd,isScrolling:e.props.isScrolling})});this._currentRowsLength=s.length,r>0&&s.unshift(this.renderPlaceholder("top",r*i)),a-n>0&&s.push(this.renderPlaceholder("bottom",(a-n)*i));var l={position:"absolute",top:0,left:0,overflowX:"auto",overflowY:"scroll",width:this.props.totalWidth,height:this.props.height};return y.createElement("div",{ref:function(t){e.canvas=t},style:l,onScroll:this.onScroll,className:w("react-grid-Canvas",this.props.className,{opaque:this.props.cellMetaData.selected&&this.props.cellMetaData.selected.active})},y.createElement(h.default,{width:this.props.width,rows:s,contextMenu:this.props.contextMenu,rowIdx:this.props.cellMetaData.selected.rowIdx,idx:this.props.cellMetaData.selected.idx}))},t}(y.Component);C.displayName="Canvas",C.propTypes={rowRenderer:u.default.oneOfType([u.default.func,u.default.element]),rowHeight:u.default.number.isRequired,height:u.default.number.isRequired,width:u.default.number,totalWidth:u.default.oneOfType([u.default.number,u.default.string]),style:u.default.string,className:u.default.string,displayStart:u.default.number.isRequired,displayEnd:u.default.number.isRequired,visibleStart:u.default.number.isRequired,visibleEnd:u.default.number.isRequired,colVisibleStart:u.default.number.isRequired,colVisibleEnd:u.default.number.isRequired,colDisplayStart:u.default.number.isRequired,colDisplayEnd:u.default.number.isRequired,rowsCount:u.default.number.isRequired,rowGetter:u.default.oneOfType([u.default.func.isRequired,u.default.array.isRequired]),expandedRows:u.default.array,onRows:u.default.func,onScroll:u.default.func,columns:u.default.oneOfType([u.default.object,u.default.array]).isRequired,cellMetaData:u.default.shape(b).isRequired,selectedRows:u.default.array,rowKey:u.default.string,rowScrollTimeout:u.default.number,scrollToRowIndex:u.default.number,contextMenu:u.default.element,getSubRowDetails:u.default.func,rowSelection:u.default.oneOfType([u.default.shape({indexes:u.default.arrayOf(u.default.number).isRequired}),u.default.shape({isSelectedKey:u.default.string.isRequired}),u.default.shape({keys:u.default.shape({values:u.default.array.isRequired,rowKey:u.default.string.isRequired}).isRequired})]),rowGroupRenderer:u.default.func,isScrolling:u.default.bool,length:u.default.number},C.defaultProps={rowRenderer:m,onRows:function(){},selectedRows:[],rowScrollTimeout:0},e.exports=C},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}t.__esModule=!0;var s=r(6),l=n(s),u=r(2),c=n(u),p=r(3),d=n(p),f=r(118),h=n(f),g=function(e){function t(){var r,n,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=i(this,e.call.apply(e,[this].concat(l))),n.state={isMenuOpen:!1},n.onToggleMenu=function(){n.setState(function(e){return{isMenuOpen:!e.isMenuOpen}})},n.onHideMenu=function(){n.setState({isMenuOpen:!1})},n.onGetMenuOptions=function(){return n.props.action.actions.map(function(e,t){return c.default.createElement("span",{key:t,onClick:e.callback},e.text)})},n.isActionMenu=function(){return!n.props.action.callback&&n.props.action.actions&&n.props.action.actions.length},n.onActionButtonBlur=function(){n.isActionMenu()&&n.onHideMenu()},n.onActionIconClick=function(){n.isActionMenu()?n.props.action.actions&&n.props.action.actions.length&&n.onToggleMenu():n.props.action.callback()},a=r,i(n,a)}return a(t,e),t.prototype.render=function(){var e=this.isActionMenu(),t=(0,l.default)("rdg-cell-action",{"rdg-cell-action-last":this.props.isFirst}),r=(0,l.default)("rdg-cell-action-button",{"rdg-cell-action-button-toggled":this.state.isMenuOpen});return c.default.createElement("div",{className:t,onMouseLeave:this.onActionButtonBlur},c.default.createElement("div",{className:r,onClick:this.onActionIconClick},c.default.createElement("span",{className:this.props.action.icon})),e&&this.state.isMenuOpen&&c.default.createElement("div",{className:"rdg-cell-action-menu"},this.onGetMenuOptions()))},t}(c.default.Component);g.propTypes={action:d.default.shape(h.default).isRequired,isFirst:d.default.bool.isRequired},t.default=g},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}t.__esModule=!0;var s=r(2),l=n(s),u=r(3),c=n(u),p=r(31),d=n(p),f=function(e){function t(r){o(this,t);var n=i(this,e.call(this,r));n.onCellExpand=function(e){n.setState({expanded:!n.state.expanded}),n.props.onCellExpand(e)};var a=r.expandableOptions&&r.expandableOptions.expanded;return n.state={expanded:a},n}return a(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.expandableOptions&&e.expandableOptions.expanded;this.state.expanded!==t&&this.setState({expanded:t})},t.prototype.render=function(){return l.default.createElement("span",{className:"rdg-cell-expand",onClick:this.onCellExpand},this.state.expanded?d.default.CellExpand.DOWN_TRIANGLE:d.default.CellExpand.RIGHT_TRIANGLE)},t}(l.default.Component);f.propTypes={expandableOptions:c.default.object.isRequired,onCellExpand:c.default.func.isRequired},t.default=f},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(2),i=n(o),a=r(6),s=n(a),l=function(e){var t=e.treeDepth,r=e.cellHeight,n=e.siblingIndex,o=e.numberSiblings,a=e.onDeleteSubRow,l=e.isDeleteSubRowEnabled,u=e.allowAddChildRow,c=void 0===u||u,p=n===o-1,d=(0,s.default)({"rdg-child-row-action-cross":c===!0||!p},{"rdg-child-row-action-cross-last":c===!1&&(p||1===o)}),f=12,h=12,g=15*t,v=(r-12)/2;return i.default.createElement("div",null,i.default.createElement("div",{
|
|
className:d}),l&&i.default.createElement("div",{style:{left:g,top:v,width:h,height:f},className:"rdg-child-row-btn",onClick:a},i.default.createElement("div",{className:"glyphicon glyphicon-remove-sign"})))};t.default=l},function(e,t,r){"use strict";var n=r(2).isValidElement;e.exports=function(e,t){var r=void 0;for(r in e)if(e.hasOwnProperty(r)){if("function"==typeof e[r]&&"function"==typeof t[r]||n(e[r])&&n(t[r]))continue;if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}for(r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=r(3),u=n(l),c=r(2),p=r(15);r(16);var d=["onDragStart","onDragEnd","onDrag","style"],f=function(e){function t(){var r,n,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=i(this,e.call.apply(e,[this].concat(l))),n.state={drag:null},n.onMouseDown=function(e){var t=n.props.onDragStart(e);e.preventDefault&&e.preventDefault(),null===t&&0!==e.button||(window.addEventListener("mouseup",n.onMouseUp),window.addEventListener("mousemove",n.onMouseMove),window.addEventListener("touchend",n.onMouseUp),window.addEventListener("touchmove",n.onMouseMove),n.setState({drag:t}))},n.onMouseMove=function(e){null!==n.state.drag&&(e.preventDefault&&e.preventDefault(),n.props.onDrag(e))},n.onMouseUp=function(e){n.cleanUp(),n.props.onDragEnd(e,n.state.drag),n.setState({drag:null})},n.cleanUp=function(){window.removeEventListener("mouseup",n.onMouseUp),window.removeEventListener("mousemove",n.onMouseMove),window.removeEventListener("touchend",n.onMouseUp),window.removeEventListener("touchmove",n.onMouseMove)},n.getKnownDivProps=function(){return p(n.props,d)},a=r,i(n,a)}return a(t,e),t.prototype.componentWillUnmount=function(){this.cleanUp()},t.prototype.render=function(){return c.createElement("div",s({},this.getKnownDivProps(),{onMouseDown:this.onMouseDown,onTouchStart:this.onMouseDown,className:"react-grid-HeaderCell__draggable"}))},t}(c.Component);f.propTypes={onDragStart:u.default.func,onDragEnd:u.default.func,onDrag:u.default.func,component:u.default.oneOfType([u.default.func,u.default.constructor]),style:u.default.object},f.defaultProps={onDragStart:function(){return!0},onDragEnd:function(){},onDrag:function(){}},e.exports=f},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}t.__esModule=!0;var s=r(2),l=n(s),u=r(3),c=n(u),p=r(7),d=n(p),f=function(e){function t(){o(this,t);var r=i(this,e.call(this));return r.onAddSubRow=r.onAddSubRow.bind(r),r}return a(t,e),t.prototype.onAddSubRow=function(){this.props.onAddSubRow(this.props.parentRowId)},t.prototype.getFixedColumnsWidth=function(){for(var e=0,t=d.default.getSize(this.props.columns),r=0;r<t;r++){var n=d.default.getColumn(this.props.columns,r);n&&d.default.getValue(n,"locked")&&(e+=d.default.getValue(n,"width"))}return e},t.prototype.render=function(){var e=this,t=this.props,r=t.cellHeight,n=t.treeDepth,o=12,i=12,a=15*n,s=(r-12)/2,u={height:r,borderBottom:"1px solid #dddddd"},c=d.default.getColumn(this.props.columns.filter(function(t){return t.key===e.props.expandColumnKey}),0),p=c?c.left:0;return l.default.createElement("div",{className:"react-grid-Row rdg-add-child-row-container",style:u},l.default.createElement("div",{className:"react-grid-Cell",style:{position:"absolute",height:r,width:"100%",left:p}},l.default.createElement("div",{className:"rdg-empty-child-row",style:{marginLeft:"30px",lineHeight:r+"px"}},l.default.createElement("div",{className:"'rdg-child-row-action-cross rdg-child-row-action-cross-last"}),l.default.createElement("div",{style:{left:a,top:s,width:i,height:o},className:"rdg-child-row-btn",onClick:this.onAddSubRow},l.default.createElement("div",{className:"glyphicon glyphicon-plus-sign"})))))},t}(l.default.Component);f.propTypes={treeDepth:c.default.number.isRequired,cellHeight:c.default.number.isRequired,onAddSubRow:c.default.func.isRequired,parentRowId:c.default.number,columns:c.default.array.isRequired,expandColumnKey:c.default.string.isRequired},t.default=f},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=r(3),l=n(s),u=r(2),c=r(10),p=r(113),d=r(123),f=r(12);r(21);var h=function(e){function t(){var r,n,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=i(this,e.call.apply(e,[this].concat(l))),n.getStyle=function(){return{overflow:"hidden",outline:0,position:"relative",minHeight:n.props.minHeight}},n._onScroll=function(){void 0!==n._scrollLeft&&(n.header.setScrollLeft(n._scrollLeft),n.viewport&&n.viewport.setScrollLeft(n._scrollLeft))},n.onScroll=function(e){n._scrollLeft!==e.scrollLeft&&(n._scrollLeft=e.scrollLeft,n._onScroll())},n.onHeaderScroll=function(e){var t=e.target.scrollLeft;if(n._scrollLeft!==t){n._scrollLeft=t,n.header.setScrollLeft(t);var r=c.findDOMNode(n.viewport.canvas);r.scrollLeft=t,n.viewport.canvas.setScrollLeft(t)}},a=r,i(n,a)}return a(t,e),t.prototype.componentDidMount=function(){this._scrollLeft=this.viewport?this.viewport.getScroll().scrollLeft:0,this._onScroll()},t.prototype.componentDidUpdate=function(){this._onScroll()},t.prototype.componentWillMount=function(){this._scrollLeft=void 0},t.prototype.componentWillUnmount=function(){this._scrollLeft=void 0},t.prototype.render=function(){var e=this,t=this.props.headerRows||[{ref:function(t){return e.row=t}}],r=this.props.emptyRowsView;return u.createElement("div",{style:this.getStyle(),className:"react-grid-Grid"},u.createElement(p,{ref:function(t){e.header=t},columnMetrics:this.props.columnMetrics,onColumnResize:this.props.onColumnResize,height:this.props.rowHeight,totalWidth:this.props.totalWidth,headerRows:t,sortColumn:this.props.sortColumn,sortDirection:this.props.sortDirection,draggableHeaderCell:this.props.draggableHeaderCell,onSort:this.props.onSort,onHeaderDrop:this.props.onHeaderDrop,onScroll:this.onHeaderScroll,getValidFilterValues:this.props.getValidFilterValues,cellMetaData:this.props.cellMetaData}),this.props.rowsCount>=1||0===this.props.rowsCount&&!this.props.emptyRowsView?u.createElement("div",{ref:function(t){e.viewPortContainer=t},tabIndex:this.props.tabIndex,onKeyDown:this.props.onViewportKeydown,onKeyUp:this.props.onViewportKeyup,onClick:this.props.onViewportClick,onDoubleClick:this.props.onViewportDoubleClick,onDragStart:this.props.onViewportDragStart,onDragEnd:this.props.onViewportDragEnd},u.createElement(d,{ref:function(t){e.viewport=t},rowKey:this.props.rowKey,width:this.props.columnMetrics.width,rowHeight:this.props.rowHeight,rowRenderer:this.props.rowRenderer,rowGetter:this.props.rowGetter,rowsCount:this.props.rowsCount,selectedRows:this.props.selectedRows,expandedRows:this.props.expandedRows,columnMetrics:this.props.columnMetrics,totalWidth:this.props.totalWidth,onScroll:this.onScroll,onRows:this.props.onRows,cellMetaData:this.props.cellMetaData,rowOffsetHeight:this.props.rowOffsetHeight||this.props.rowHeight*t.length,minHeight:this.props.minHeight,rowScrollTimeout:this.props.rowScrollTimeout,scrollToRowIndex:this.props.scrollToRowIndex,contextMenu:this.props.contextMenu,rowSelection:this.props.rowSelection,getSubRowDetails:this.props.getSubRowDetails,rowGroupRenderer:this.props.rowGroupRenderer,overScan:this.props.overScan})):u.createElement("div",{ref:function(t){e.emptyView=t},className:"react-grid-Empty"},u.createElement(r,null)))},t}(u.Component);h.displayName="Grid",h.propTypes={rowGetter:l.default.oneOfType([l.default.array,l.default.func]).isRequired,columns:l.default.oneOfType([l.default.array,l.default.object]),tabIndex:l.default.number,columnMetrics:l.default.object,minHeight:l.default.number,totalWidth:l.default.oneOfType([l.default.number,l.default.string]),headerRows:l.default.oneOfType([l.default.array,l.default.func]),rowHeight:l.default.number,rowRenderer:l.default.oneOfType([l.default.element,l.default.func]),emptyRowsView:l.default.func,expandedRows:l.default.oneOfType([l.default.array,l.default.func]),selectedRows:l.default.oneOfType([l.default.array,l.default.func]),rowSelection:l.default.oneOfType([l.default.shape({indexes:l.default.arrayOf(l.default.number).isRequired}),l.default.shape({isSelectedKey:l.default.string.isRequired}),l.default.shape({keys:l.default.shape({values:l.default.array.isRequired,rowKey:l.default.string.isRequired}).isRequired})]),rowsCount:l.default.number,onRows:l.default.func,sortColumn:l.default.string,sortDirection:l.default.oneOf(["ASC","DESC","NONE"]),rowOffsetHeight:l.default.number.isRequired,onViewportKeydown:l.default.func.isRequired,onViewportKeyup:l.default.func,onViewportDragStart:l.default.func.isRequired,onViewportDragEnd:l.default.func.isRequired,onViewportClick:l.default.func.isRequired,onViewportDoubleClick:l.default.func.isRequired,onColumnResize:l.default.func,onSort:l.default.func,onHeaderDrop:l.default.func,cellMetaData:l.default.shape(f),rowKey:l.default.string.isRequired,rowScrollTimeout:l.default.number,scrollToRowIndex:l.default.number,contextMenu:l.default.element,getSubRowDetails:l.default.func,draggableHeaderCell:l.default.func,getValidFilterValues:l.default.func,rowGroupRenderer:l.default.func,overScan:l.default.object},h.defaultProps={rowHeight:35,minHeight:350,tabIndex:0},e.exports=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=r(3),u=n(l),c=r(2),p=r(10),d=r(6),f=r(53),h=r(32),g=r(7),v=r(115),y=r(33),w=r(15),m=r(12);r(16);var b=["height","onScroll"],_=function(e){function t(){var r,n,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=i(this,e.call.apply(e,[this].concat(l))),n.state={resizing:null},n.onColumnResize=function(e,t){var r=n.state.resizing||n.props,o=n.getColumnPosition(e);if(null!=o){var i={columnMetrics:f(r.columnMetrics)};i.columnMetrics=h.resizeColumn(i.columnMetrics,o,t),i.columnMetrics.totalWidth<r.columnMetrics.totalWidth&&(i.columnMetrics.totalWidth=r.columnMetrics.totalWidth),i.column=g.getColumn(i.columnMetrics.columns,o),n.setState({resizing:i})}},n.onColumnResizeEnd=function(e,t){var r=n.getColumnPosition(e);null!==r&&n.props.onColumnResize&&n.props.onColumnResize(r,t||e.width)},n.getHeaderRows=function(){var e=n.getColumnMetrics(),t=void 0;n.state.resizing&&(t=n.state.resizing.column);var r=[];return n.props.headerRows.forEach(function(o,i){var a="auto";"filter"===o.rowType&&(a="500px");var s=y()>0?y():0,l=isNaN(n.props.totalWidth-s)?n.props.totalWidth:n.props.totalWidth-s,u={position:"absolute",top:n.getCombinedHeaderHeights(i),left:0,width:l,overflowX:"hidden",minHeight:a};r.push(c.createElement(v,{key:o.ref,ref:function(e){return"filter"===o.rowType?n.filterRow=e:n.row=e},rowType:o.rowType,style:u,onColumnResize:n.onColumnResize,onColumnResizeEnd:n.onColumnResizeEnd,width:e.width,height:o.height||n.props.height,columns:e.columns,resizing:t,draggableHeaderCell:n.props.draggableHeaderCell,filterable:o.filterable,onFilterChange:o.onFilterChange,onHeaderDrop:n.props.onHeaderDrop,sortColumn:n.props.sortColumn,sortDirection:n.props.sortDirection,onSort:n.props.onSort,onScroll:n.props.onScroll,getValidFilterValues:n.props.getValidFilterValues}))}),r},n.getColumnMetrics=function(){var e=void 0;return e=n.state.resizing?n.state.resizing.columnMetrics:n.props.columnMetrics},n.getColumnPosition=function(e){var t=n.getColumnMetrics(),r=-1;return t.columns.forEach(function(t,n){t.key===e.key&&(r=n)}),r===-1?null:r},n.getCombinedHeaderHeights=function(e){var t=n.props.headerRows.length;"undefined"!=typeof e&&(t=e);for(var r=0,o=0;o<t;o++)r+=n.props.headerRows[o].height||n.props.height;return r},n.getStyle=function(){return{position:"relative",height:n.getCombinedHeaderHeights()}},n.setScrollLeft=function(e){var t=p.findDOMNode(n.row);if(t.scrollLeft=e,n.row.setScrollLeft(e),n.filterRow){var r=p.findDOMNode(n.filterRow);r.scrollLeft=e,n.filterRow.setScrollLeft(e)}},n.getKnownDivProps=function(){return w(n.props,b)},n.onHeaderClick=function(){n.props.cellMetaData.onCellClick({rowIdx:-1,idx:-1})},a=r,i(n,a)}return a(t,e),t.prototype.componentWillReceiveProps=function(){this.setState({resizing:null})},t.prototype.shouldComponentUpdate=function(e,t){var r=!h.sameColumns(this.props.columnMetrics.columns,e.columnMetrics.columns,h.sameColumn)||this.props.totalWidth!==e.totalWidth||this.props.headerRows.length!==e.headerRows.length||this.state.resizing!==t.resizing||this.props.sortColumn!==e.sortColumn||this.props.sortDirection!==e.sortDirection;return r},t.prototype.render=function(){var e=d({"react-grid-Header":!0,"react-grid-Header--resizing":!!this.state.resizing}),t=this.getHeaderRows();return c.createElement("div",s({},this.getKnownDivProps(),{style:this.getStyle(),className:e,onClick:this.onHeaderClick}),t)},t}(c.Component);_.propTypes={columnMetrics:u.default.shape({width:u.default.number.isRequired,columns:u.default.any}).isRequired,totalWidth:u.default.oneOfType([u.default.number,u.default.string]),height:u.default.number.isRequired,headerRows:u.default.array.isRequired,sortColumn:u.default.string,sortDirection:u.default.oneOf(["ASC","DESC","NONE"]),onSort:u.default.func,onColumnResize:u.default.func,onScroll:u.default.func,onHeaderDrop:u.default.func,draggableHeaderCell:u.default.func,getValidFilterValues:u.default.func,cellMetaData:u.default.shape(m)},e.exports=_},function(e,t){"use strict";var r={SORTABLE:0,FILTERABLE:1,NONE:2,CHECKBOX:3};e.exports=r},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=r(3),u=n(l),c=r(2),p=r(70),d=r(42),f=r(33),h=(r(13),r(7)),g=r(47),v=r(124),y=r(114),w=r(15);r(16);var m={overflow:u.default.string,width:u.default.oneOfType([u.default.number,u.default.string]),height:u.default.number,position:u.default.string},b=["width","height","style","onScroll"],_=function(e){function t(){var r,n,a;o(this,t);for(var l=arguments.length,u=Array(l),p=0;p<l;p++)u[p]=arguments[p];return r=n=i(this,e.call.apply(e,[this].concat(u))),n.getHeaderCellType=function(e){return e.filterable&&n.props.filterable?y.FILTERABLE:e.sortable&&"filter"!==e.rowType?y.SORTABLE:y.NONE},n.getFilterableHeaderCell=function(e){var t=v;return void 0!==e.filterRenderer&&(t=e.filterRenderer),c.createElement(t,s({},n.props,{onChange:n.props.onFilterChange}))},n.getSortableHeaderCell=function(e){var t=n.props.sortColumn===e.key?n.props.sortDirection:g.DEFINE_SORT.NONE,r=void 0!==e.sortDescendingFirst&&e.sortDescendingFirst;return c.createElement(g,{columnKey:e.key,onSort:n.props.onSort,sortDirection:t,sortDescendingFirst:r,headerRenderer:e.headerRenderer})},n.getHeaderRenderer=function(e){var t=void 0;if(!e.headerRenderer||e.sortable||n.props.filterable){var r=n.getHeaderCellType(e);switch(r){case y.SORTABLE:t=n.getSortableHeaderCell(e);break;case y.FILTERABLE:t=n.getFilterableHeaderCell(e)}}else t=e.headerRenderer;return t},n.getStyle=function(){return{overflow:"hidden",width:"100%",height:n.props.height,position:"absolute"}},n.getCells=function(){for(var e=[],t=[],r=function(r,o){var i=Object.assign({rowType:n.props.rowType},h.getColumn(n.props.columns,r)),a=n.getHeaderRenderer(i);"select-row"===i.key&&"filter"===n.props.rowType&&(a=c.createElement("div",null));var s=i.draggable?n.props.draggableHeaderCell:d,l=c.createElement(s,{ref:function(e){return n.cells[r]=e},key:r,height:n.props.height,column:i,renderer:a,resizing:n.props.resizing===i,onResize:n.props.onColumnResize,onResizeEnd:n.props.onColumnResizeEnd,onHeaderDrop:n.props.onHeaderDrop});i.locked?t.push(l):e.push(l)},o=0,i=h.getSize(n.props.columns);o<i;o++)r(o,i);return e.concat(t)},n.setScrollLeft=function(e){n.props.columns.forEach(function(t,r){t.locked?n.cells[r].setScrollLeft(e):n.cells[r]&&n.cells[r].removeScroll&&n.cells[r].removeScroll()})},n.getKnownDivProps=function(){return w(n.props,b)},a=r,i(n,a)}return a(t,e),t.prototype.componentWillMount=function(){this.cells=[]},t.prototype.shouldComponentUpdate=function(e){return e.width!==this.props.width||e.height!==this.props.height||e.columns!==this.props.columns||!p(e.style,this.props.style)||this.props.sortColumn!==e.sortColumn||this.props.sortDirection!==e.sortDirection},t.prototype.render=function(){var e={width:this.props.width?this.props.width+f():"100%",height:this.props.height,whiteSpace:"nowrap",overflowX:"hidden",overflowY:"hidden"},t=this.getCells();return c.createElement("div",s({},this.getKnownDivProps(),{className:"react-grid-HeaderRow"}),c.createElement("div",{style:e},t))},t}(c.Component);_.displayName="HeaderRow",_.propTypes={width:u.default.oneOfType([u.default.number,u.default.string]),height:u.default.number.isRequired,columns:u.default.oneOfType([u.default.array,u.default.object]).isRequired,onColumnResize:u.default.func,onSort:u.default.func.isRequired,onColumnResizeEnd:u.default.func,style:u.default.shape(m),sortColumn:u.default.string,sortDirection:u.default.oneOf(Object.keys(g.DEFINE_SORT)),cellRenderer:u.default.func,headerCellRenderer:u.default.func,filterable:u.default.bool,onFilterChange:u.default.func,resizing:u.default.object,onScroll:u.default.func,rowType:u.default.string,draggableHeaderCell:u.default.func,onHeaderDrop:u.default.func},e.exports=_},function(e,t){"use strict";e.exports={Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,PauseBreak:19,CapsLock:20,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,LeftWindowKey:91,RightWindowKey:92,SelectKey:93,NumPad0:96,NumPad1:97,NumPad2:98,NumPad3:99,NumPad4:100,NumPad5:101,NumPad6:102,NumPad7:103,NumPad8:104,NumPad9:105,Multiply:106,Add:107,Subtract:109,DecimalPoint:110,Divide:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F12:123,NumLock:144,ScrollLock:145,SemiColon:186,EqualSign:187,Comma:188,Dash:189,Period:190,ForwardSlash:191,GraveAccent:192,OpenBracket:219,BackSlash:220,CloseBracket:221,SingleQuote:222}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}t.__esModule=!0,t.OverflowCellComponent=void 0;var s=r(2),l=n(s),u=r(3),c=n(u),p=r(127),d=n(p);r(38);var f=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.getStyle=function(){var e={position:"absolute",width:this.props.column.width,height:this.props.height,left:this.props.column.left,border:"1px solid #eee"};return e},t.prototype.render=function(){return l.default.createElement("div",{tabIndex:"-1",style:this.getStyle(),width:"100%",className:"react-grid-Cell"})},t}(l.default.Component);f.isSelected=function(e){var t=e.cellMetaData,r=e.rowIdx,n=e.idx;if(null==t)return!1;var o=t.selected;return o&&o.rowIdx===r&&o.idx===n},f.isScrolling=function(e){return e.cellMetaData.isScrollingHorizontallyWithKeyboard},f.propTypes={rowIdx:c.default.number,idx:c.default.number,height:c.default.number,column:c.default.object,cellMetaData:c.default.object},f.displayName="Cell";var h=f;t.default=(0,d.default)(f),t.OverflowCellComponent=h},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(3),i=n(o),a={icon:i.default.string.isRequired,callback:i.default.func,actions:i.default.arrayOf(i.default.shape({text:i.default.string,callback:i.default.func}))};t.default=a},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(13),i=n(o);t.default={ExcelColumn:i.default}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=r(3),u=n(l),c=r(51),p=n(c),d=r(31),f=n(d),h=r(47),g=r(56),v=r(2),y=r(112),w=r(48),m=r(45),b=r(7),_=r(116),C=r(20),x=r(32);r(21),r(71),Object.assign||(Object.assign=r(147));var S=function(e){function t(r,n){o(this,t);var a=i(this,e.call(this,r,n));R.call(a);var s=a.createColumnMetrics(),l={columnMetrics:s,selectedRows:[],copied:null,expandedRows:[],canFilter:!1,columnFilters:{},sortDirection:null,sortColumn:null,dragged:null,scrollOffset:0,lastRowIdxUiSelected:-1};return r.enableCellSelect?l.selected={rowIdx:0,idx:0}:l.selected={rowIdx:-1,idx:-1},a.props.sortColumn&&a.props.sortDirection&&(l.sortColumn=a.props.sortColumn,l.sortDirection=a.props.sortDirection),a.state=l,a}return a(t,e),t.prototype.componentWillMount=function(){this._mounted=!0},t.prototype.componentDidMount=function(){window.addEventListener?window.addEventListener("resize",this.metricsUpdated):window.attachEvent("resize",this.metricsUpdated),this.metricsUpdated()},t.prototype.componentWillUnmount=function(){this._mounted=!1,window.removeEventListener("resize",this.metricsUpdated)},t.prototype.componentWillReceiveProps=function(e){if(e.columns&&(!x.sameColumns(this.props.columns,e.columns,this.props.columnEquality)||e.minWidth!==this.props.minWidth)){var t=this.createColumnMetrics(e);this.setState({columnMetrics:t})}},t.prototype.render=function(){var e=this,t={rowKey:this.props.rowKey,selected:this.state.selected,dragged:this.state.dragged,hoveredRowIdx:this.state.hoveredRowIdx,onCellClick:this.onCellClick,onCellFocus:this.onCellFocus,onCellContextMenu:this.onCellContextMenu,onCellDoubleClick:this.onCellDoubleClick,onCommit:this.onCellCommit,onCommitCancel:this.setInactive,copied:this.state.copied,handleDragEnterRow:this.handleDragEnter,handleTerminateDrag:this.handleTerminateDrag,enableCellSelect:this.props.enableCellSelect,onColumnEvent:this.onColumnEvent,openCellEditor:this.openCellEditor,onDragHandleDoubleClick:this.onDragHandleDoubleClick,onCellExpand:this.onCellExpand,onRowExpandToggle:this.onRowExpandToggle,onRowHover:this.onRowHover,getDataGridDOMNode:this.getDataGridDOMNode,getCellActions:this.props.getCellActions,onDeleteSubRow:this.props.onDeleteSubRow,onAddSubRow:this.props.onAddSubRow,isScrollingVerticallyWithKeyboard:this.isKeyDown(_.DownArrow)||this.isKeyDown(_.UpArrow),isScrollingHorizontallyWithKeyboard:this.isKeyDown(_.LeftArrow)||this.isKeyDown(_.RightArrow)||this.isKeyDown(_.Tab),enableCellAutoFocus:this.props.enableCellAutoFocus},r=this.renderToolbar(),n=this.props.minWidth||this.gridWidth(),o=n-this.state.scrollOffset;return("undefined"==typeof n||isNaN(n)||0===n)&&(n="100%"),("undefined"==typeof o||isNaN(o)||0===o)&&(o="100%"),v.createElement("div",{className:"react-grid-Container",style:{width:n},ref:function(t){e.grid=t}},r,v.createElement("div",{className:"react-grid-Main"},v.createElement(y,s({ref:function(t){return e.base=t}},this.props,{rowKey:this.props.rowKey,headerRows:this.getHeaderRows(),columnMetrics:this.state.columnMetrics,rowGetter:this.props.rowGetter,rowsCount:this.props.rowsCount,rowHeight:this.props.rowHeight,cellMetaData:t,selectedRows:this.getSelectedRows(),rowSelection:this.getRowSelectionProps(),expandedRows:this.state.expandedRows,rowOffsetHeight:this.getRowOffsetHeight(),sortColumn:this.state.sortColumn,sortDirection:this.state.sortDirection,onSort:this.handleSort,minHeight:this.props.minHeight,totalWidth:o,onViewportKeydown:this.onKeyDown,onViewportKeyup:this.onKeyUp,onViewportDragStart:this.onDragStart,onViewportDragEnd:this.handleDragEnd,onViewportClick:this.deselect,onViewportDoubleClick:this.deselect,onColumnResize:this.onColumnResize,rowScrollTimeout:this.props.rowScrollTimeout,scrollToRowIndex:this.props.scrollToRowIndex,contextMenu:this.props.contextMenu,overScan:this.props.overScan}))))},t}(v.Component);S.displayName="ReactDataGrid",S.propTypes={rowHeight:u.default.number.isRequired,headerRowHeight:u.default.number,headerFiltersHeight:u.default.number,minHeight:u.default.number.isRequired,minWidth:u.default.number,enableRowSelect:u.default.oneOfType([u.default.bool,u.default.string]),onRowUpdated:u.default.func,rowGetter:u.default.func.isRequired,rowsCount:u.default.number.isRequired,toolbar:u.default.element,enableCellSelect:u.default.bool,columns:u.default.oneOfType([u.default.object,u.default.array]).isRequired,onFilter:u.default.func,onCellCopyPaste:u.default.func,onCellsDragged:u.default.func,getCellActions:u.default.func,onAddFilter:u.default.func,onGridSort:u.default.func,sortColumn:u.default.string,sortDirection:u.default.oneOf(Object.keys(h.DEFINE_SORT)),onDragHandleDoubleClick:u.default.func,onGridRowsUpdated:u.default.func,onRowSelect:u.default.func,rowKey:u.default.string,rowScrollTimeout:u.default.number,scrollToRowIndex:u.default.number,onClearFilters:u.default.func,contextMenu:u.default.element,cellNavigationMode:u.default.oneOf(["none","loopOverRow","changeRow"]),onCellSelected:u.default.func,onCellDeSelected:u.default.func,onCellExpand:u.default.func,enableDragAndDrop:u.default.bool,tabIndex:u.default.number,onRowExpandToggle:u.default.func,draggableHeaderCell:u.default.func,getValidFilterValues:u.default.func,rowSelection:u.default.shape({enableShiftSelect:u.default.bool,onRowsSelected:u.default.func,onRowsDeselected:u.default.func,showCheckbox:u.default.bool,selectBy:u.default.oneOfType([u.default.shape({indexes:u.default.arrayOf(u.default.number).isRequired}),u.default.shape({isSelectedKey:u.default.string.isRequired}),u.default.shape({keys:u.default.shape({values:u.default.array.isRequired,rowKey:u.default.string.isRequired}).isRequired})]).isRequired}),onRowClick:u.default.func,onRowDoubleClick:u.default.func,onGridKeyUp:u.default.func,onGridKeyDown:u.default.func,rowGroupRenderer:u.default.func,rowActionsCell:u.default.func,onCheckCellIsEditable:u.default.func,overScan:u.default.object,onDeleteSubRow:u.default.func,onAddSubRow:u.default.func,enableCellAutoFocus:u.default.bool,onBeforeEdit:u.default.func,selectAllRenderer:u.default.object,minColumnWidth:u.default.number,columnEquality:u.default.func,onColumnResize:u.default.func},S.defaultProps={enableCellSelect:!1,tabIndex:-1,rowHeight:35,headerFiltersHeight:45,enableRowSelect:!1,minHeight:350,rowKey:"id",rowScrollTimeout:0,scrollToRowIndex:0,cellNavigationMode:"none",overScan:{colsStart:5,colsEnd:5,rowsStart:5,rowsEnd:5},enableCellAutoFocus:!0,onBeforeEdit:function(){},minColumnWidth:80,columnEquality:x.sameColumn};var R=function(){var e=this;this.gridWidth=function(){return e.grid?e.grid.parentElement.offsetWidth:0},this.getTotalWidth=function(){var t=0;return t=e._mounted?e.gridWidth():b.getSize(e.props.columns)*e.props.minColumnWidth},this.getColumnMetricsType=function(t){var r=t.totalWidth||e.getTotalWidth(),n={columns:t.columns,totalWidth:r,minColumnWidth:t.minColumnWidth},o=x.recalculate(n);return o},this.getColumn=function(t){var r=e.state.columnMetrics.columns;return Array.isArray(r)?r[t]:"undefined"!=typeof Immutable?r.get(t):void 0},this.getSize=function(){var t=e.state.columnMetrics.columns;return Array.isArray(t)?t.length:"undefined"!=typeof Immutable?t.size:void 0},this.metricsUpdated=function(){var t=e.createColumnMetrics();e.setState({columnMetrics:t})},this.createColumnMetrics=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props,r=e.setupGridColumns(t);return e.getColumnMetricsType({columns:r,minColumnWidth:e.props.minColumnWidth,totalWidth:t.minWidth})},this.onColumnResize=function(t,r){var n=x.resizeColumn(e.state.columnMetrics,t,r);e.setState({columnMetrics:n}),e.props.onColumnResize&&e.props.onColumnResize(t,r)},this.onKeyDown=function(t){if((0,g.isCtrlKeyHeldDown)(t))e.checkAndCall("onPressKeyWithCtrl",t);else if(e.isKeyExplicitlyHandled(t.key)){
|
|
var r="onPress"+t.key;e.checkAndCall(r,t)}else(0,g.isKeyPrintable)(t.keyCode)&&e.checkAndCall("onPressChar",t);e._keysDown=e._keysDown||{},e._keysDown[t.keyCode]=!0,C(e.props.onGridKeyDown)&&e.props.onGridKeyDown(t)},this.onKeyUp=function(t){e._keysDown=e._keysDown||{},delete e._keysDown[t.keyCode],C(e.props.onGridKeyUp)&&e.props.onGridKeyUp(t)},this.isKeyDown=function(t){return!!e._keysDown&&t in e._keysDown},this.isSingleKeyDown=function(t){return!!e._keysDown&&(t in e._keysDown&&1===Object.keys(e._keysDown).length)},this.checkAndCall=function(t,r){"function"==typeof e[t]&&e[t](r)},this.isKeyExplicitlyHandled=function(t){return"function"==typeof e["onPress"+t]},this.hasSelectedCellChanged=function(t){var r=Object.assign({},e.state.selected);return r.rowIdx!==t.rowIdx||r.idx!==t.idx||r.active===!1},this.onContextMenuHide=function(){document.removeEventListener("click",e.onContextMenuHide);var t=Object.assign({},e.state.selected,{contextMenuDisplayed:!1});e.setState({selected:t})},this.onColumnEvent=function(t,r){var n=r.idx,o=r.name;if(o&&"undefined"!=typeof n){var i=e.getColumn(n);if(i&&i.events&&i.events[o]&&"function"==typeof i.events[o]){var a={idx:n,rowIdx:r.rowIdx,rowId:r.rowId,column:i};i.events[o](t,a)}}},this.onSelect=function(t){if(e.state.selected.rowIdx!==t.rowIdx||e.state.selected.idx!==t.idx||e.state.selected.active===!1){var r=t.idx,n=t.rowIdx;if(e.isCellWithinBounds(t)){var o=e.state.selected;e.setState({selected:t},function(){"function"==typeof e.props.onCellDeSelected&&e.props.onCellDeSelected(o),"function"==typeof e.props.onCellSelected&&e.props.onCellSelected(t)})}else n===-1&&r===-1&&e.setState({selected:{idx:r,rowIdx:n}})}},this.onCellClick=function(t,r){e.onSelect({rowIdx:t.rowIdx,idx:t.idx}),e.props.onRowClick&&"function"==typeof e.props.onRowClick&&e.props.onRowClick(t.rowIdx,e.props.rowGetter(t.rowIdx),e.getColumn(t.idx)),r&&r.stopPropagation()},this.onCellFocus=function(t){e.onSelect(t)},this.onCellContextMenu=function(t){e.onSelect({rowIdx:t.rowIdx,idx:t.idx,contextMenuDisplayed:e.props.contextMenu}),e.props.contextMenu&&document.addEventListener("click",e.onContextMenuHide)},this.onCellDoubleClick=function(t,r){e.onSelect({rowIdx:t.rowIdx,idx:t.idx}),e.props.onRowDoubleClick&&"function"==typeof e.props.onRowDoubleClick&&e.props.onRowDoubleClick(t.rowIdx,e.props.rowGetter(t.rowIdx),e.getColumn(t.idx)),e.setActive(),r&&r.stopPropagation()},this.onPressArrowUp=function(t){e.moveSelectedCell(t,-1,0)},this.onPressArrowDown=function(t){e.moveSelectedCell(t,1,0)},this.onPressArrowLeft=function(t){e.moveSelectedCell(t,0,-1)},this.onPressArrowRight=function(t){e.moveSelectedCell(t,0,1)},this.isFocusedOnCell=function(){return document.activeElement&&document.activeElement.classList&&document.activeElement.classList.contains("react-grid-Cell")},this.isFocusedOnTable=function(){var t=e.getDataGridDOMNode();return t&&t.contains(document.activeElement)},this.exitGrid=function(t,r){e.setState({selected:r},function(){"function"==typeof e.props.onCellDeSelected&&e.props.onCellDeSelected(t)})},this.enterGrid=function(t){e.setState({selected:t},function(){"function"==typeof e.props.onCellSelected&&e.props.onCellSelected(t)})},this.onPressTab=function(t){if(0!==e.props.rowsCount){var r=e.state.selected.idx,n=e.state.selected.rowIdx;if(e.state.selected.active===!0)return e.canExitGrid(t)?void e.moveSelectedCell(t,0,0):void e.moveSelectedCell(t,0,t.shiftKey?-1:1);var o=t.shiftKey===!0;if(e.canExitGrid(t)&&e.isFocusedOnCell()){if(o&&r>=0)return void e.exitGrid({idx:r,rowIdx:n},{idx:-1,rowIdx:n,exitedLeft:!0});if(!o&&r>=0)return void e.exitGrid({idx:r,rowIdx:n},{idx:-1,rowIdx:n})}return e.isFocusedOnTable()&&!e.isFocusedOnCell()&&o&&e.state.selected.exitedLeft?void e.enterGrid({idx:r,rowIdx:n}):e.isFocusedOnCell()?void e.moveSelectedCell(t,0,t.shiftKey?-1:1):r===-1?void e.moveSelectedCell(t,n===-1?1:0,o?e.getNbrColumns():1):(e.enterGrid({idx:r,rowIdx:n,changeSomething:!0}),void t.preventDefault())}},this.onPressEnter=function(t){e.setActive(t.key)},this.onPressDelete=function(t){e.setActive(t.key)},this.onPressEscape=function(t){e.setInactive(t.key),e.handleCancelCopy()},this.onPressBackspace=function(t){e.setActive(t.key)},this.onPressChar=function(t){(0,g.isKeyPrintable)(t.keyCode)&&e.setActive(t.keyCode)},this.onPressKeyWithCtrl=function(t){var r={KeyCode_c:99,KeyCode_C:67,KeyCode_V:86,KeyCode_v:118},n=e.state.selected.rowIdx,o=e.props.rowGetter(n),i=e.state.selected.idx,a=e.getColumn(i);if(b.canEdit(a,o,e.props.enableCellSelect))if(t.keyCode===r.KeyCode_c||t.keyCode===r.KeyCode_C){var s=e.getSelectedValue();e.handleCopy({value:s})}else t.keyCode!==r.KeyCode_v&&t.keyCode!==r.KeyCode_V||e.handlePaste()},this.onGridRowsUpdated=function(t,r,n,o,i,a){for(var s=[],l=r;l<=n;l++)s.push(e.props.rowGetter(l)[e.props.rowKey]);var u=e.props.rowGetter("COPY_PASTE"===i?a:r),c=u[e.props.rowKey],p=e.props.rowGetter(n)[e.props.rowKey];e.props.onGridRowsUpdated({cellKey:t,fromRow:r,toRow:n,fromRowId:c,toRowId:p,rowIds:s,updated:o,action:i,fromRowData:u})},this.onCellCommit=function(t){var r=Object.assign({},e.state.selected);r.active=!1;var n=e.state.expandedRows;e.setState({selected:r,expandedRows:n}),e.props.onRowUpdated&&e.props.onRowUpdated(t);var o=t.rowIdx;e.props.onGridRowsUpdated&&e.onGridRowsUpdated(t.cellKey,o,o,t.updated,f.default.UpdateActions.CELL_UPDATE)},this.onDragStart=function(t){var r=e.state.selected.idx,n=t&&t.target&&t.target.className;if(r>-1&&n){var o=e.getSelectedValue();e.handleDragStart({idx:e.state.selected.idx,rowIdx:e.state.selected.rowIdx,value:o}),t&&t.dataTransfer&&t.dataTransfer.setData&&(t.dataTransfer.dropEffect="move",t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",""))}},this.onToggleFilter=function(){e.setState({canFilter:!e.state.canFilter},function(){e.state.canFilter===!1&&e.props.onClearFilters&&e.props.onClearFilters()})},this.onDragHandleDoubleClick=function(t){if(e.props.onDragHandleDoubleClick&&e.props.onDragHandleDoubleClick(t),e.props.onGridRowsUpdated){var r,n=e.getColumn(t.idx).key;e.onGridRowsUpdated(n,t.rowIdx,e.props.rowsCount-1,(r={},r[n]=t.rowData[n],r),f.default.UpdateActions.COLUMN_FILL)}},this.onCellExpand=function(t){e.props.onCellExpand&&e.props.onCellExpand(t)},this.onRowExpandToggle=function(t){"function"==typeof e.props.onRowExpandToggle&&e.props.onRowExpandToggle(t)},this.isCellWithinBounds=function(t){var r=t.idx,n=t.rowIdx;return r>=0&&n>=0&&r<b.getSize(e.state.columnMetrics.columns)&&n<e.props.rowsCount},this.handleDragStart=function(t){e.dragEnabled()&&e.isCellWithinBounds(t)&&e.setState({dragged:t})},this.handleDragEnd=function(){if(e.dragEnabled()){var t=e.state,r=t.selected,n=t.dragged,o=e.getColumn(e.state.selected.idx);if(r&&n&&o){var i=o.key,a=r.rowIdx<n.overRowIdx?r.rowIdx:n.overRowIdx,s=r.rowIdx>n.overRowIdx?r.rowIdx:n.overRowIdx;if(e.props.onCellsDragged&&e.props.onCellsDragged({cellKey:i,fromRow:a,toRow:s,value:n.value}),e.props.onGridRowsUpdated){var l;e.onGridRowsUpdated(i,a,s,(l={},l[i]=n.value,l),f.default.UpdateActions.CELL_DRAG)}}e.setState({dragged:{complete:!0}})}},this.handleDragEnter=function(t){if(e.dragEnabled()&&null!=e.state.dragged){var r=e.state.dragged;r.overRowIdx=t,e.setState({dragged:r})}},this.handleTerminateDrag=function(){e.dragEnabled()&&e.setState({dragged:null})},this.handlePaste=function(){if(e.copyPasteEnabled()&&e.state.copied){var t=e.state.selected,r=e.getColumn(e.state.selected.idx).key,n=e.state.textToCopy,o=e.state.copied.rowIdx,i=t.rowIdx;if(e.props.onCellCopyPaste&&e.props.onCellCopyPaste({cellKey:r,rowIdx:i,value:n,fromRow:o,toRow:i}),e.props.onGridRowsUpdated){var a;e.onGridRowsUpdated(r,i,i,(a={},a[r]=n,a),f.default.UpdateActions.COPY_PASTE,o)}}},this.handleCancelCopy=function(){e.setState({copied:null})},this.handleCopy=function(t){if(e.copyPasteEnabled()){var r=t.value,n=e.state.selected,o={idx:n.idx,rowIdx:n.rowIdx};e.setState({textToCopy:r,copied:o})}},this.handleSort=function(t,r){e.setState({sortDirection:r,sortColumn:t},function(){this.props.onGridSort(t,r)})},this.getSelectedRow=function(t,r){var n=t.filter(function(t){return t[e.props.rowKey]===r});if(n.length>0)return n[0]},this.useNewRowSelection=function(){return e.props.rowSelection&&e.props.rowSelection.selectBy},this.handleShiftSelect=function(t){if(e.state.lastRowIdxUiSelected>-1&&e.isSingleKeyDown(_.Shift)){var r=e.props.rowSelection.selectBy,n=r.keys,o=r.indexes,i=r.isSelectedKey,a=m.isRowSelected(n,o,i,e.props.rowGetter(t),t);if(a)return!1;var s=!1;if(t>e.state.lastRowIdxUiSelected){for(var l=[],u=e.state.lastRowIdxUiSelected+1;u<=t;u++)l.push({rowIdx:u,row:e.props.rowGetter(u)});"function"==typeof e.props.rowSelection.onRowsSelected&&e.props.rowSelection.onRowsSelected(l),s=!0}else if(t<e.state.lastRowIdxUiSelected){for(var c=[],p=t;p<=e.state.lastRowIdxUiSelected-1;p++)c.push({rowIdx:p,row:e.props.rowGetter(p)});"function"==typeof e.props.rowSelection.onRowsSelected&&e.props.rowSelection.onRowsSelected(c),s=!0}return s&&e.setState({lastRowIdxUiSelected:t}),s}return!1},this.handleNewRowSelect=function(t,r){e.selectAllCheckbox&&e.selectAllCheckbox.checked===!0&&(e.selectAllCheckbox.checked=!1);var n=e.props.rowSelection.selectBy,o=n.keys,i=n.indexes,a=n.isSelectedKey,s=m.isRowSelected(o,i,a,r,t);e.setState({lastRowIdxUiSelected:s?-1:t,selected:{rowIdx:t,idx:0}}),s&&"function"==typeof e.props.rowSelection.onRowsDeselected?e.props.rowSelection.onRowsDeselected([{rowIdx:t,row:r}]):s||"function"!=typeof e.props.rowSelection.onRowsSelected||e.props.rowSelection.onRowsSelected([{rowIdx:t,row:r}])},this.handleRowSelect=function(t,r,n,o){if(o.stopPropagation(),e.useNewRowSelection())e.props.rowSelection.enableShiftSelect===!0?e.handleShiftSelect(t)||e.handleNewRowSelect(t,n):e.handleNewRowSelect(t,n);else{var i="single"===e.props.enableRowSelect?[]:e.state.selectedRows.slice(0),a=e.getSelectedRow(i,n[e.props.rowKey]);a?a.isSelected=!a.isSelected:(n.isSelected=!0,i.push(n)),e.setState({selectedRows:i,selected:{rowIdx:t,idx:0}}),e.props.onRowSelect&&e.props.onRowSelect(i.filter(function(e){return e.isSelected===!0}))}},this.handleCheckboxChange=function(t){var r=void 0;if(r=t.currentTarget instanceof HTMLInputElement&&t.currentTarget.checked===!0,e.useNewRowSelection()){var n=e.props.rowSelection.selectBy,o=n.keys,i=n.indexes,a=n.isSelectedKey;if(r&&"function"==typeof e.props.rowSelection.onRowsSelected){for(var s=[],l=0;l<e.props.rowsCount;l++){var u=e.props.rowGetter(l);m.isRowSelected(o,i,a,u,l)||s.push({rowIdx:l,row:u})}s.length>0&&e.props.rowSelection.onRowsSelected(s)}else if(!r&&"function"==typeof e.props.rowSelection.onRowsDeselected){for(var c=[],p=0;p<e.props.rowsCount;p++){var d=e.props.rowGetter(p);m.isRowSelected(o,i,a,d,p)&&c.push({rowIdx:p,row:d})}c.length>0&&e.props.rowSelection.onRowsDeselected(c)}}else{for(var f=[],h=0;h<e.props.rowsCount;h++){var g=Object.assign({},e.props.rowGetter(h),{isSelected:r});f.push(g)}e.setState({selectedRows:f}),"function"==typeof e.props.onRowSelect&&e.props.onRowSelect(f.filter(function(e){return e.isSelected===!0}))}},this.getScrollOffSet=function(){var t=0;if(e.grid){var r=e.grid.querySelector(".react-grid-Canvas");r&&(t=r.offsetWidth-r.clientWidth)}e.setState({scrollOffset:t})},this.getRowOffsetHeight=function(){var t=0;return e.getHeaderRows().forEach(function(e){return t+=parseFloat(e.height,10)}),t},this.getHeaderRows=function(){var t=[{ref:function(t){return e.row=t},height:e.props.headerRowHeight||e.props.rowHeight,rowType:"header"}];return e.state.canFilter===!0&&t.push({ref:function(t){return e.filterRow=t},filterable:!0,onFilterChange:e.props.onAddFilter,height:e.props.headerFiltersHeight,rowType:"filter"}),t},this.getInitialSelectedRows=function(){for(var t=[],r=0;r<e.props.rowsCount;r++)t.push(!1);return t},this.getRowSelectionProps=function(){return e.props.rowSelection?e.props.rowSelection.selectBy:null},this.getSelectedRows=function(){return e.props.rowSelection?null:e.state.selectedRows.filter(function(e){return e.isSelected===!0})},this.getSelectedValue=function(){var t=e.state.selected.rowIdx,r=e.state.selected.idx,n=e.getColumn(r).key,o=e.props.rowGetter(t);return m.get(o,n)},this.canExitGrid=function(t){var r=e.isAtLastCellInRow(e.getNbrColumns()),n=e.isAtFirstCellInRow(),o=e.isAtLastRow(),i=e.isAtFirstRow(),a=t.shiftKey===!0,s=e.props.cellNavigationMode;if(a){if("none"===s){if(n)return!0}else if("changeRow"===s&&n&&i)return!0}else if("none"===s){if(r)return!0}else if("changeRow"===s&&r&&o)return!0;return!1},this.moveSelectedCell=function(t,r,n){t.preventDefault();var o=void 0,i=void 0,a=e.props.cellNavigationMode;if("none"!==a){var s=e.calculateNextSelectionPosition(a,n,r);i=s.idx,o=s.rowIdx}else o=e.state.selected.rowIdx+r,i=e.state.selected.idx+n;e.scrollToColumn(i),e.onSelect({idx:i,rowIdx:o})},this.getNbrColumns=function(){var t=e.props,r=t.columns,n=t.enableRowSelect;return n?r.length+1:r.length},this.getDataGridDOMNode=function(){return e.grid},this.calculateNextSelectionPosition=function(t,r,n){var o=n,i=e.state.selected.idx+r,a=e.getNbrColumns();r>0?e.isAtLastCellInRow(a)&&("changeRow"===t?(o=e.isAtLastRow()?n:n+1,i=e.isAtLastRow()?i:0):i=0):r<0&&e.isAtFirstCellInRow()&&("changeRow"===t?(o=e.isAtFirstRow()?n:n-1,i=e.isAtFirstRow()?0:a-1):i=a-1);var s=e.state.selected.rowIdx+o;return{idx:i,rowIdx:s}},this.isAtLastCellInRow=function(t){return e.state.selected.idx===t-1},this.isAtLastRow=function(){return e.state.selected.rowIdx===e.props.rowsCount-1},this.isAtFirstCellInRow=function(){return 0===e.state.selected.idx},this.isAtFirstRow=function(){return 0===e.state.selected.rowIdx},this.openCellEditor=function(t,r){var n=e.props.rowGetter(t),o=e.getColumn(r);if(b.canEdit(o,n,e.props.enableCellSelect)){var i={rowIdx:t,idx:r};e.hasSelectedCellChanged(i)?e.setState({selected:i},function(){e.setActive("Enter")}):e.setActive("Enter")}},this.scrollToColumn=function(t){if(e.grid){var r=e.grid.querySelector(".react-grid-Canvas");if(r){for(var n=0,o=0,i=0;i<t;i++){var a=e.getColumn(i);a&&(a.width&&(n+=a.width),a.locked&&(o+=a.width))}var s=e.getColumn(t);if(s){var l=n-o-r.scrollLeft,u=n+s.width-r.scrollLeft;if(l<0)r.scrollLeft+=l;else if(u>r.clientWidth){var c=u-r.clientWidth;r.scrollLeft+=c}}}}},this.deselect=function(){var t={rowIdx:-1,idx:-1};e.setState({selected:t})},this.setActive=function(t){var r=e.state.selected.rowIdx,n=e.props.rowGetter(r),o=e.state.selected.idx,i=e.getColumn(o);if(b.canEdit(i,n,e.props.enableCellSelect)&&!e.isActive()){var a=Object.assign({},e.state.selected,{idx:o,rowIdx:r,active:!0,initialKeyCode:t}),s=!0;if("function"==typeof e.props.onCheckCellIsEditable){var l=Object.assign({},{row:n,column:i},a);s=e.props.onCheckCellIsEditable(l)}s!==!1&&(i.locked?e.setState({selected:a}):e.setState({selected:a},function(){e.scrollToColumn(o)}),e.props.onBeforeEdit(),e.handleCancelCopy())}},this.setInactive=function(){var t=e.state.selected.rowIdx,r=e.props.rowGetter(t),n=e.state.selected.idx,o=e.getColumn(n);if(b.canEdit(o,r,e.props.enableCellSelect)&&e.isActive()){var i=Object.assign({},e.state.selected,{idx:n,rowIdx:t,active:!1});e.setState({selected:i})}},this.isActive=function(){return e.state.selected.active===!0},this.setupGridColumns=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props,r=t.columns;if(e._cachedColumns===r)return e._cachedComputedColumns;e._cachedColumns=r;var n=r.slice(0),o={};if(e.props.rowActionsCell||t.enableRowSelect&&!e.props.rowSelection||t.rowSelection&&t.rowSelection.showCheckbox!==!1){var i=e.props.selectAllRenderer||p.default,a=v.createElement(i,{onChange:e.handleCheckboxChange,inputRef:function(t){return e.selectAllCheckbox=t}}),s="single"===t.enableRowSelect?null:a,l=e.props.rowActionsCell?e.props.rowActionsCell:w,u={key:"select-row",name:"",formatter:v.createElement(l,{rowSelection:e.props.rowSelection}),onCellChange:e.handleRowSelect,filterable:!1,headerRenderer:s,width:60,locked:!0,getRowMetaData:function(e){return e},cellClass:e.props.rowActionsCell?"rdg-row-actions-cell":""};o=n.unshift(u),n=o>0?n:o}return e._cachedComputedColumns=n,e._cachedComputedColumns},this.copyPasteEnabled=function(){return null!==e.props.onCellCopyPaste},this.dragEnabled=function(){return void 0!==e.props.onGridRowsUpdated||void 0!==e.props.onCellsDragged},this.renderToolbar=function(){var t=e.props.toolbar,r={columns:e.props.columns,onToggleFilter:e.onToggleFilter,numberOfRows:e.props.rowsCount};return v.isValidElement(t)?v.cloneElement(t,r):C(t)?v.createElement(t,r):void 0}};e.exports=S},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}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 a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s=r(2),l=r(110);r(16);var u={position:"absolute",top:0,right:0,width:6,height:"100%"},c=function(e){function t(){return n(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return s.createElement(l,a({},this.props,{className:"react-grid-HeaderCell__resizeHandle",style:u}))},t}(s.Component);e.exports=c},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=r(2),u=n(l),c=r(3),p=n(c),d=r(54),f=n(d);r(30);var h=r(12),g=function(e){function t(r){o(this,t);var n=i(this,e.call(this,r));return n.onRowExpandToggle=n.onRowExpandToggle.bind(n),n.onRowExpandClick=n.onRowExpandClick.bind(n),n.setScrollLeft=n.setScrollLeft.bind(n),n}return a(t,e),t.prototype.onRowExpandToggle=function(e){var t=null==e?!this.props.isExpanded:e,r=this.props.cellMetaData;null!=r&&r.onRowExpandToggle&&"function"==typeof r.onRowExpandToggle&&r.onRowExpandToggle({rowIdx:this.props.idx,shouldExpand:t,columnGroupName:this.props.columnGroupName,name:this.props.name})},t.prototype.onRowExpandClick=function(){this.onRowExpandToggle(!this.props.isExpanded)},t.prototype.setScrollLeft=function(e){this.rowGroupRenderer&&(this.rowGroupRenderer.setScrollLeft?this.rowGroupRenderer.setScrollLeft(e):null)},t.prototype.render=function(){var e=this,t=f.default.last(this.props.columns),r={width:t.left+t.width};return u.default.createElement("div",{style:r,className:"react-grid-row-group"},u.default.createElement(this.props.renderer,s({ref:function(t){e.rowGroupRenderer=t}},this.props,{onRowExpandClick:this.onRowExpandClick,onRowExpandToggle:this.onRowExpandToggle})))},t}(l.Component);g.propTypes={height:p.default.number.isRequired,columns:p.default.oneOfType([p.default.object,p.default.array]).isRequired,row:p.default.any.isRequired,cellRenderer:p.default.func,cellMetaData:p.default.shape(h),isSelected:p.default.bool,idx:p.default.number.isRequired,expandedRows:p.default.arrayOf(p.default.object),extraClasses:p.default.string,forceUpdate:p.default.bool,subRowDetails:p.default.object,isRowHovered:p.default.bool,colVisibleStart:p.default.number.isRequired,colVisibleEnd:p.default.number.isRequired,colDisplayStart:p.default.number.isRequired,colDisplayEnd:p.default.number.isRequired,isScrolling:p.default.bool.isRequired,columnGroupName:p.default.string.isRequired,isExpanded:p.default.bool.isRequired,treeDepth:p.default.number.isRequired,name:p.default.string.isRequired,renderer:p.default.func};var v=function(e){var t=e.treeDepth||0,r=20*t,n={height:"50px",border:"1px solid #dddddd",paddingTop:"15px",paddingLeft:"5px"},o=function(t){"ArrowLeft"===t.key&&e.onRowExpandToggle(!1),"ArrowRight"===t.key&&e.onRowExpandToggle(!0),"Enter"===t.key&&e.onRowExpandToggle(!e.isExpanded)};return u.default.createElement("div",{style:n,onKeyDown:o,tabIndex:0},u.default.createElement("span",{className:"row-expand-icon",style:{float:"left",marginLeft:r,cursor:"pointer"},onClick:e.onRowExpandClick},e.isExpanded?String.fromCharCode("9660"):String.fromCharCode("9658")),u.default.createElement("strong",null,e.columnGroupName,": ",e.name))};v.propTypes={onRowExpandClick:p.default.func.isRequired,onRowExpandToggle:p.default.func.isRequired,isExpanded:p.default.bool.isRequired,treeDepth:p.default.number.isRequired,name:p.default.string.isRequired,columnGroupName:p.default.string.isRequired,hideColumnName:p.default.bool},g.defaultProps={renderer:v},t.default=g},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=r(3),l=n(s),u=r(7),c=n(u),p=r(138),d=r(2),f=r(105),h=r(12),g=function(e){function t(){var r,n,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=i(this,e.call.apply(e,[this].concat(l))),n.state=(0,p.getGridState)(n.props),n.onScroll=function(e){n.updateScroll(e.scrollTop,e.scrollLeft,n.state.height,n.props.rowHeight,n.props.rowsCount),n.props.onScroll&&n.props.onScroll({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft})},n.getScroll=function(){return n.canvas.getScroll()},n.setScrollLeft=function(e){n.canvas.setScrollLeft(e)},n.getDOMNodeOffsetWidth=function(){return n.viewport?n.viewport.offsetWidth:0},n.clearScrollTimer=function(){n.resetScrollStateTimeoutId&&clearTimeout(n.resetScrollStateTimeoutId)},n.resetScrollStateAfterDelay=function(){n.clearScrollTimer(),n.resetScrollStateTimeoutId=setTimeout(n.resetScrollStateAfterDelayCallback,500)},n.resetScrollStateAfterDelayCallback=function(){n.resetScrollStateTimeoutId=null,n.setState({isScrolling:!1})},n.updateScroll=function(e,t,r,o,i,a){n.resetScrollStateAfterDelay();var s=(0,p.getNextScrollState)(n.props,n.getDOMNodeOffsetWidth,e,t,r,o,i,a);n.setState(s)},n.metricsUpdated=function(){var e=n.viewportHeight(),t=n.viewportWidth();e&&n.updateScroll(n.state.scrollTop,n.state.scrollLeft,e,n.props.rowHeight,n.props.rowsCount,t)},n.viewportHeight=function(){return n.viewport?n.viewport.offsetHeight:0},n.viewportWidth=function(){return n.viewport?n.viewport.offsetWidth:0},a=r,i(n,a)}return a(t,e),t.prototype.componentWillReceiveProps=function(e){if(this.props.rowHeight!==e.rowHeight||this.props.minHeight!==e.minHeight){var t=(0,p.getGridState)(e);this.updateScroll(t.scrollTop,t.scrollLeft,t.height,e.rowHeight,e.rowsCount)}else if(c.default.getSize(this.props.columnMetrics.columns)!==c.default.getSize(e.columnMetrics.columns))this.setState((0,p.getGridState)(e));else if(this.props.rowsCount!==e.rowsCount)this.updateScroll(this.state.scrollTop,this.state.scrollLeft,this.state.height,e.rowHeight,e.rowsCount);else if(this.props.rowOffsetHeight!==e.rowOffsetHeight){var r=this.props.rowOffsetHeight-e.rowOffsetHeight;this.updateScroll(this.state.scrollTop,this.state.scrollLeft,this.state.height+r,e.rowHeight,e.rowsCount)}},t.prototype.componentDidMount=function(){window.addEventListener?window.addEventListener("resize",this.metricsUpdated):window.attachEvent("resize",this.metricsUpdated),this.metricsUpdated()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.metricsUpdated),this.clearScrollTimer()},t.prototype.render=function(){var e=this,t={padding:0,bottom:0,left:0,right:0,overflow:"hidden",position:"absolute",top:this.props.rowOffsetHeight};return d.createElement("div",{className:"react-grid-Viewport",style:t,ref:function(t){e.viewport=t}},d.createElement(f,{ref:function(t){return e.canvas=t},rowKey:this.props.rowKey,totalWidth:this.props.totalWidth,width:this.props.columnMetrics.width,rowGetter:this.props.rowGetter,rowsCount:this.props.rowsCount,selectedRows:this.props.selectedRows,expandedRows:this.props.expandedRows,columns:this.props.columnMetrics.columns,rowRenderer:this.props.rowRenderer,displayStart:this.state.displayStart,displayEnd:this.state.displayEnd,visibleStart:this.state.visibleStart,visibleEnd:this.state.visibleEnd,colVisibleStart:this.state.colVisibleStart,colVisibleEnd:this.state.colVisibleEnd,colDisplayStart:this.state.colDisplayStart,colDisplayEnd:this.state.colDisplayEnd,cellMetaData:this.props.cellMetaData,height:this.state.height,rowHeight:this.props.rowHeight,onScroll:this.onScroll,onRows:this.props.onRows,rowScrollTimeout:this.props.rowScrollTimeout,scrollToRowIndex:this.props.scrollToRowIndex,contextMenu:this.props.contextMenu,rowSelection:this.props.rowSelection,getSubRowDetails:this.props.getSubRowDetails,rowGroupRenderer:this.props.rowGroupRenderer,isScrolling:this.state.isScrolling||!1}))},t}(d.Component);g.displayName="Viewport",g.propTypes={rowOffsetHeight:l.default.number.isRequired,totalWidth:l.default.oneOfType([l.default.number,l.default.string]).isRequired,columnMetrics:l.default.object.isRequired,rowGetter:l.default.oneOfType([l.default.array,l.default.func]).isRequired,selectedRows:l.default.array,rowSelection:l.default.oneOfType([l.default.shape({indexes:l.default.arrayOf(l.default.number).isRequired}),l.default.shape({isSelectedKey:l.default.string.isRequired}),l.default.shape({keys:l.default.shape({values:l.default.array.isRequired,rowKey:l.default.string.isRequired}).isRequired})]),expandedRows:l.default.array,rowRenderer:l.default.oneOfType([l.default.element,l.default.func]),rowsCount:l.default.number.isRequired,rowHeight:l.default.number.isRequired,onRows:l.default.func,onScroll:l.default.func,minHeight:l.default.number,cellMetaData:l.default.shape(h),rowKey:l.default.string.isRequired,rowScrollTimeout:l.default.number,scrollToRowIndex:l.default.number,contextMenu:l.default.element,getSubRowDetails:l.default.func,rowGroupRenderer:l.default.func},g.defaultProps={rowHeight:30},e.exports=g},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=r(3),l=n(s),u=r(2),c=r(13),p=function(e){function t(){var r,n,a;o(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return r=n=i(this,e.call.apply(e,[this].concat(l))),n.state={filterTerm:""},n.handleChange=function(e){var t=e.target.value;n.setState({filterTerm:t}),n.props.onChange({filterTerm:t,column:n.props.column})},n.renderInput=function(){if(n.props.column.filterable===!1)return u.createElement("span",null);var e="header-filter-"+n.props.column.key;return u.createElement("input",{key:e,type:"text",className:"form-control input-sm",placeholder:"Search",value:n.state.filterTerm,onChange:n.handleChange})},a=r,i(n,a)}return a(t,e),t.prototype.render=function(){return u.createElement("div",null,u.createElement("div",{className:"form-group"},this.renderInput()))},t}(u.Component);p.propTypes={onChange:l.default.func.isRequired,column:l.default.shape(c)},e.exports=p},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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 s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=r(3),u=n(l),c=r(56),p=r(2),d=r(6),f=r(50),h=r(20);r(21);var g=function(e){function t(){var r,n,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return r=n=i(this,e.call.apply(e,[this].concat(l))),v.call(n),a=r,i(n,a)}return a(t,e),t.prototype.componentDidMount=function(){var e=this.getInputNode();void 0!==e&&(this.setTextInputFocus(),this.getEditor().disableContainerStyles||(e.className+=" editor-main",e.style.height=this.props.height-1+"px"))},t.prototype.componentWillUnmount=function(){this.changeCommitted||this.changeCanceled||this.commit({key:"Enter"})},t.prototype.render=function(){return p.createElement("div",{className:this.getContainerClass(),onBlur:this.handleBlur,onKeyDown:this.onKeyDown,onContextMenu:this.handleRightClick},this.createEditor(),this.renderStatusIcon())},t}(p.Component);g.displayName="EditorContainer",g.propTypes={rowIdx:u.default.number,rowData:u.default.object.isRequired,value:u.default.oneOfType([u.default.string,u.default.number,u.default.object,u.default.bool]).isRequired,cellMetaData:u.default.shape({selected:u.default.object.isRequired,copied:u.default.object,dragged:u.default.object,onCellClick:u.default.func,onCellDoubleClick:u.default.func,onCommitCancel:u.default.func,onCommit:u.default.func}).isRequired,column:u.default.object.isRequired,height:u.default.number.isRequired,onGridKeyDown:u.default.func};var v=function(){var e=this;this.state={isInvalid:!1},this.changeCommitted=!1,this.changeCanceled=!1,this.isKeyExplicitlyHandled=function(t){return h(e["onPress"+t])},this.checkAndCall=function(t,r){h(e[t])&&e[t](r)},this.onKeyDown=function(t){if((0,c.isCtrlKeyHeldDown)(t))e.checkAndCall("onPressKeyWithCtrl",t);else if(e.isKeyExplicitlyHandled(t.key)){var r="onPress"+t.key;e.checkAndCall(r,t)}else(0,c.isKeyPrintable)(t.keyCode)&&e.checkAndCall("onPressChar",t);e._keysDown=e._keysDown||{},e._keysDown[t.keyCode]=!0,h(e.props.onGridKeyDown)&&e.props.onGridKeyDown(t)},this.createEditorRef=function(t){e.editor=t},this.createEditor=function(){var t={ref:e.createEditorRef,column:e.props.column,value:e.getInitialValue(),onCommit:e.commit,onCommitCancel:e.commitCancel,rowMetaData:e.getRowMetaData(),rowData:e.props.rowData,height:e.props.height,onBlur:e.commit,onOverrideKeyDown:e.onKeyDown},r=e.props.column.editor;return p.isValidElement(r)?p.cloneElement(r,t):h(r)?p.createElement(r,s({ref:e.createEditorRef},t)):p.createElement(f,{ref:e.createEditorRef,column:e.props.column,
|
|
value:e.getInitialValue(),onBlur:e.commit,rowMetaData:e.getRowMetaData(),onKeyDown:function(){},commit:function(){}})},this.onPressEnter=function(){e.commit({key:"Enter"})},this.onPressTab=function(){e.commit({key:"Tab"})},this.onPressEscape=function(t){e.editorIsSelectOpen()?t.stopPropagation():e.commitCancel()},this.onPressArrowDown=function(t){e.editorHasResults()?t.stopPropagation():e.commit(t)},this.onPressArrowUp=function(t){e.editorHasResults()?t.stopPropagation():e.commit(t)},this.onPressArrowLeft=function(t){e.isCaretAtBeginningOfInput()?e.commit(t):t.stopPropagation()},this.onPressArrowRight=function(t){e.isCaretAtEndOfInput()?e.commit(t):t.stopPropagation()},this.editorHasResults=function(){return!!h(e.getEditor().hasResults)&&e.getEditor().hasResults()},this.editorIsSelectOpen=function(){return!!h(e.getEditor().isSelectOpen)&&e.getEditor().isSelectOpen()},this.getRowMetaData=function(){if("function"==typeof e.props.column.getRowMetaData)return e.props.column.getRowMetaData(e.props.rowData,e.props.column)},this.getEditor=function(){return e.editor},this.getInputNode=function(){return e.getEditor().getInputNode()},this.getInitialValue=function(){var t=e.props.cellMetaData.selected,r=t.initialKeyCode;if("Delete"===r||"Backspace"===r)return"";if("Enter"===r)return e.props.value;var n=r?String.fromCharCode(r):e.props.value;return n},this.getContainerClass=function(){return d({"has-error":e.state.isInvalid===!0})},this.commit=function(t){var r=t||{},n=e.getEditor().getValue();if(e.isNewValueValid(n)){e.changeCommitted=!0;var o=e.props.column.key;e.props.cellMetaData.onCommit({cellKey:o,rowIdx:e.props.rowIdx,updated:n,key:r.key})}},this.commitCancel=function(){e.changeCanceled=!0,e.props.cellMetaData.onCommitCancel()},this.isNewValueValid=function(t){if(h(e.getEditor().validate)){var r=e.getEditor().validate(t);return e.setState({isInvalid:!r}),r}return!0},this.setCaretAtEndOfInput=function(){var t=e.getInputNode(),r=t.value.length;if(t.setSelectionRange)t.setSelectionRange(r,r);else if(t.createTextRange){var n=t.createTextRange();n.moveStart("character",r),n.collapse(),n.select()}},this.isCaretAtBeginningOfInput=function(){var t=e.getInputNode();return t.selectionStart===t.selectionEnd&&0===t.selectionStart},this.isCaretAtEndOfInput=function(){var t=e.getInputNode();return t.selectionStart===t.value.length},this.isBodyClicked=function(t){var r=e.getRelatedTarget(t);return null===r},this.isViewportClicked=function(t){var r=e.getRelatedTarget(t);return r.className.indexOf("react-grid-Viewport")>-1},this.isClickInsideEditor=function(t){var r=e.getRelatedTarget(t);return t.currentTarget.contains(r)||r.className.indexOf("editing")>-1||r.className.indexOf("react-grid-Cell")>-1},this.getRelatedTarget=function(e){return e.relatedTarget||e.explicitOriginalTarget||document.activeElement},this.handleRightClick=function(e){e.stopPropagation()},this.handleBlur=function(t){t.stopPropagation(),e.isBodyClicked(t)&&e.commit(t),e.isBodyClicked(t)||!e.isViewportClicked(t)&&e.isClickInsideEditor(t)||e.commit(t)},this.setTextInputFocus=function(){var t=e.props.cellMetaData.selected,r=t.initialKeyCode,n=e.getInputNode();n.focus(),"INPUT"===n.tagName&&((0,c.isKeyPrintable)(r)?n.select():(n.focus(),n.select()))},this.renderStatusIcon=function(){if(e.state.isInvalid===!0)return p.createElement("span",{className:"glyphicon glyphicon-remove form-control-feedback"})}};e.exports=g},function(e,t,r){"use strict";e.exports={CheckboxEditor:r(48),EditorBase:r(49),SimpleTextEditor:r(50)}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=r(2),u=n(l),c=r(10),p=n(c),d=function(e){return function(t){function r(){o(this,r);var e=i(this,t.call(this));return e.checkFocus=e.checkFocus.bind(e),e.state={isScrolling:!1},e}return a(r,t),r.prototype.shouldComponentUpdate=function(t){return e.isSelected(this.props)!==e.isSelected(t)},r.prototype.componentWillReceiveProps=function(t){var r=e.isScrolling(t);r&&!this.state.isScrolling&&this.setState({isScrolling:r})},r.prototype.componentDidMount=function(){this.checkFocus()},r.prototype.componentDidUpdate=function(){this.checkFocus()},r.prototype.checkFocus=function(){e.isSelected(this.props)&&this.state.isScrolling&&(this.focus(),this.setState({isScrolling:!1}))},r.prototype.focus=function(){p.default.findDOMNode(this).focus()},r.prototype.render=function(){return u.default.createElement(e,s({},this.props,this.state))},r}(l.Component)};t.default=d},function(e,t,r){"use strict";e.exports={SimpleCellFormatter:r(52),SelectAll:r(51)}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var o=r(130),i=n(o);e.exports={test:{GridPropHelpers:i.default}}},function(e,t){"use strict";for(var r=[],n=0;n<1e3;n++)r.push({id:n,title:"Title "+n,count:1e3*n});e.exports={columns:[{key:"id",name:"ID",width:100},{key:"title",name:"Title",width:100},{key:"count",name:"Count",width:100}],rowGetter:function(e){return r[e]},rowsCount:function(){return r.length},cellMetaData:{selected:{idx:2,rowIdx:3},dragged:null,copied:null}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var o=r(44),i=n(o),a=r(46),s=n(a),l=r(120);e.exports=l,e.exports.Row=r(43),e.exports.Cell=r(41),e.exports.HeaderCell=r(42),e.exports.RowComparer=i.default,e.exports.EmptyChildRow=r(111),e.exports.RowsContainer=s.default,e.exports.editors=r(126),e.exports.formatters=r(128),e.exports.utils=r(54),e.exports.shapes=r(119),e.exports._constants=r(31),e.exports._helpers=r(129)},function(e,t){"use strict";var r=function(e){return Array.isArray(e)&&0===e.length};e.exports=r},function(e,t){"use strict";function r(e){return 0===Object.keys(e).length&&e.constructor===Object}e.exports=r},function(e,t,r){"use strict";var n=r(19),o=function(e){return n.Iterable.isIterable(e)};e.exports=o},function(e,t,r){"use strict";var n=r(19);e.exports=n.Map.isMap},function(e,t){"use strict";var r=function(e){var t={},r=function(e,t){return e[t]},n=function(e,t){return e.get(t)};return t.getValue=e?n:r,t};e.exports=r},function(e,t){"use strict";function r(e){var t=document.createElement("div");return t.classList?t.classList.add("react-grid-ScrollShim"):t.className+=" react-grid-ScrollShim",t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.width=e.width+"px",t.style.height=e.height+"px",t}t.__esModule=!0,t.createScrollShim=r},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=u.default.getSize(e.columnMetrics.columns),r=e.minHeight-e.rowOffsetHeight,n=f((e.minHeight-e.rowHeight)/e.rowHeight),o=c(4*n,e.rowsCount);return{displayStart:0,displayEnd:o,visibleStart:0,visibleEnd:o,height:r,scrollTop:0,scrollLeft:0,colVisibleStart:0,colVisibleEnd:t,colDisplayStart:0,colDisplayEnd:t}}function i(e,t,r,n){var o=n&&n>0?n:e.columnMetrics.totalWidth;0===o&&(o=t());for(var i=r,a=0;o>0;){var s=u.default.getColumn(e.columnMetrics.columns,i);if(!s)break;a++,i++,o-=s.width}return a}function a(e,t){for(var r=t,n=-1;r>=0;)n++,r-=u.default.getColumn(e.columnMetrics.columns,n).width;return n}function s(e,t,r,n,o,s,l,h){var g=!0,v=f(o/s),y=p(0,d(r/s)),w=c(y+v,l),m=p(0,y-e.overScan.rowsStart),b=c(w+e.overScan.rowsEnd,l),_=u.default.getSize(e.columnMetrics.columns),C=_>0?p(0,a(e,n)):0,x=i(e,t,C,h),S=0!==x?C+x:_,R=p(0,C-e.overScan.colsStart),I=c(S+e.overScan.colsEnd,_),D={visibleStart:y,visibleEnd:w,displayStart:m,displayEnd:b,height:o,scrollTop:r,scrollLeft:n,colVisibleStart:C,colVisibleEnd:S,colDisplayStart:R,colDisplayEnd:I,isScrolling:g};return D}t.__esModule=!0,t.getRenderedColumnCount=t.getNextScrollState=t.getGridState=void 0;var l=r(7),u=n(l),c=Math.min,p=Math.max,d=Math.floor,f=Math.ceil;t.getGridState=o,t.getNextScrollState=s,t.getRenderedColumnCount=i},function(e,t,r){t=e.exports=r(8)(),t.push([e.id,'.react-grid-Cell{background-color:#fff;padding-left:8px;padding-right:8px;border-right:1px solid #eee;border-bottom:1px solid #ddd}.react-grid-Cell:focus{outline:2px solid #66afe9;outline-offset:-2px}.react-grid-Cell--locked:focus{z-index:100}.react-grid-Cell:focus .drag-handle{position:absolute;bottom:-5px;right:-4px;background:#66afe9;width:8px;height:8px;border:1px solid #fff;border-right:0;border-bottom:0;z-index:8;cursor:crosshair;cursor:-webkit-grab}.react-grid-Cell:not(.editing) .react-grid-Cell__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.react-grid-Cell:not(.editing):not(.rdg-child-cell) .react-grid-Cell__value{position:relative;top:50%;transform:translateY(-50%)}.rdg-child-cell .react-grid-Cell__value{line-height:35px}.react-grid-Cell.readonly{background-color:#000}.react-grid-Cell.copied{background:rgba(0,0,255,.2)!important}.react-grid-Cell--locked:last-of-type{border-right:1px solid #ddd;box-shadow:none}.react-grid-Cell:hover:focus .drag-handle .glyphicon-arrow-down{display:"block"}.react-grid-Cell.is-dragged-over-down{border-right:1px dashed #000;border-left:1px dashed #000;border-bottom:1px dashed #000}.react-grid-Cell.is-dragged-over-up{border-right:1px dashed #000;border-left:1px dashed #000;border-top:1px dashed #000}.react-grid-Cell.is-dragged-over-up .drag-handle{top:-5px}.react-grid-Cell:hover{background:#eee}.react-grid-cell .form-control-feedback{color:#a94442;position:absolute;top:0;right:10px;z-index:1000000;display:block;width:34px;height:34px}.react-grid-Cell.was-dragged-over{border-right:1px dashed #000;border-left:1px dashed #000}.react-grid-Cell:hover:focus .drag-handle{position:absolute;bottom:-8px;right:-7px;background:#fff;width:16px;height:16px;border:1px solid #66afe9;z-index:8;cursor:crosshair;cursor:-webkit-grab}.react-grid-Row.row-selected .react-grid-Cell{background-color:#dbecfa}.react-grid-Cell.editing{padding:0;overflow:visible!important}.react-grid-Cell--locked.editing{z-index:100}.react-grid-Cell.editing .has-error input{border:2px solid red!important;border-radius:2px!important}.react-grid-Cell__value ul{margin-top:0;margin-bottom:0;display:inline-block}.react-grid-Cell__value .btn-sm{padding:0}.cell-tooltip{position:relative;display:inline-block}.cell-tooltip:hover{z-index:101}.cell-tooltip .cell-tooltip-text{visibility:hidden;width:150px;background-color:#000;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:-150%;left:50%;margin-left:-60px;opacity:1s}.cell-tooltip:hover .cell-tooltip-text{visibility:visible;opacity:.8}.cell-tooltip .cell-tooltip-text:after{content:" ";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000}.react-grid-Canvas.opaque .react-grid-Cell.cell-tooltip:hover .cell-tooltip-text{visibility:hidden}.rdg-cell-expand{top:0;right:20px;position:absolute;cursor:pointer}.rdg-child-row-action-cross-last:before,.rdg-child-row-action-cross:before,rdg-child-row-action-cross-last:after,rdg-child-row-action-cross:after{content:"";position:absolute;background:grey;height:50%}.rdg-child-row-action-cross:before{left:21px;width:1px;height:35px}.rdg-child-row-action-cross-last:before{left:21px;width:1px}.rdg-child-row-action-cross-last:after,.rdg-child-row-action-cross:after{top:50%;left:20px;height:1px;width:15px;content:"";position:absolute;background:grey}.rdg-child-row-action-cross:hover{background:red}.rdg-child-row-btn{position:absolute;cursor:pointer;border:1px solid grey;border-radius:14px;z-index:3;background:#fff}.rdg-child-row-btn div{font-size:12px;text-align:center;line-height:19px;color:grey;height:20px;width:20px;position:absolute;top:60%;left:53%;margin-top:-10px;margin-left:-10px}.rdg-empty-child-row:hover .glyphicon-plus-sign,.rdg-empty-child-row:hover a{color:green}.rdg-child-row-btn .glyphicon-remove-sign:hover{color:red}.last-column .cell-tooltip-text{right:100%;left:0!important}.rdg-cell-action{float:right;height:100%}.rdg-cell-action-last{margin-right:-8px}.rdg-cell-action-button{width:35px;height:100%;text-align:center;position:relative;display:table}.rdg-cell-action-button>span{display:table-cell;vertical-align:middle}.rdg-cell-action-button:hover{background-color:#fff}.rdg-cell-action-button-toggled{background-color:#fff;border-right:1px solid #ccc;border-left:1px solid #ccc}.rdg-cell-action-button-toggled:after{content:"";height:1px;position:absolute;bottom:-1px;left:0;right:0;background:inherit;z-index:10001}.rdg-cell-action-menu{position:absolute;top:100%;right:0;z-index:1000;float:left;min-width:160px;padding:5px 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc}.rdg-cell-action-menu>span{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.rdg-cell-action-menu>span:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}',""])},function(e,t,r){t=e.exports=r(8)(),t.push([e.id,'.radio-custom,.react-grid-checkbox{opacity:0;position:absolute}.radio-custom,.radio-custom-label,.react-grid-checkbox,.react-grid-checkbox-label{display:inline-block;vertical-align:middle;cursor:pointer}.radio-custom-label,.react-grid-checkbox-label{position:relative}.radio-custom+.radio-custom-label:before,.react-grid-checkbox+.react-grid-checkbox-label:before{content:"";background:#fff;border:2px solid #ddd;display:inline-block;vertical-align:middle;width:20px;height:20px;text-align:center}.react-grid-checkbox:checked+.react-grid-checkbox-label:before{background:#005295;box-shadow:inset 0 0 0 4px #fff}.radio-custom:focus+.radio-custom-label,.react-grid-checkbox:focus+.react-grid-checkbox-label{outline:1px solid #ddd}.react-grid-HeaderCell input[type=checkbox]{z-index:99999}.react-grid-HeaderCell>.react-grid-checkbox-container{padding:0 10px;height:100%}.react-grid-HeaderCell>.react-grid-checkbox-container>.react-grid-checkbox-label{margin:0;position:relative;top:50%;transform:translateY(-50%)}.radio-custom+.radio-custom-label:before{border-radius:50%}.radio-custom:checked+.radio-custom-label:before{background:#ccc;box-shadow:inset 0 0 0 4px #fff}.checkbox-align{text-align:center}',""])},function(e,t,r){t=e.exports=r(8)(),t.push([e.id,".react-grid-Container{clear:both;margin-top:0;padding:0}.react-grid-Main{background-color:#fff;color:inherit;padding:0;outline:1px solid #e7eaec;clear:both}.react-grid-Grid{border:1px solid #ddd}.react-grid-Canvas,.react-grid-Grid{background-color:#fff}.react-grid-Cell input.editor-main,select.editor-main{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}input.editor-main:focus,select.editor-main:focus{border-color:#66afe9;border:2px solid #66afe9;background:#eee;border-radius:4px}.react-grid-Cell input.editor-main::-moz-placeholder,select.editor-main::-moz-placeholder{color:#999;opacity:1}.react-grid-Cell input.editor-main:-ms-input-placeholder,select.editor-main:-ms-input-placeholder{color:#999}.react-grid-Cell input.editor-main::-webkit-input-placeholder,select.editor-main::-webkit-input-placeholder{color:#999}.react-grid-Cell input.editor-main[disabled],.react-grid-Cell input.editor-main[readonly],fieldset[disabled] .react-grid-Cell input.editor-main,fieldset[disabled] select.editor-main,select.editor-main[disabled],select.editor-main[readonly]{cursor:not-allowed;background-color:#eee;opacity:1}textarea.react-grid-Cell input.editor-main,textareaselect.editor-main{height:auto}.react-grid-ScrollShim{z-index:10002}",""])},function(e,t,r){t=e.exports=r(8)(),t.push([e.id,".react-grid-Header{box-shadow:0 0 4px 0 #ddd;background:#f9f9f9}.react-grid-Header--resizing{cursor:ew-resize}.react-grid-HeaderCell,.react-grid-HeaderRow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-grid-HeaderCell{background:#f9f9f9;padding:8px;font-weight:700;border-right:1px solid #ddd;border-bottom:1px solid #ddd}.react-grid-HeaderCell__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;position:relative;top:50%;transform:translateY(-50%)}.react-grid-HeaderCell__resizeHandle:hover{cursor:ew-resize;background:#ddd}.react-grid-HeaderCell--locked:last-of-type{box-shadow:none}.react-grid-HeaderCell--resizing .react-grid-HeaderCell__resizeHandle{background:#ddd}.react-grid-HeaderCell__draggable{cursor:col-resize}.rdg-can-drop>.react-grid-HeaderCell{background:#ececec}.react-grid-HeaderCell .Select{max-height:30px;font-size:12px;font-weight:400}.react-grid-HeaderCell .Select-control{max-height:30px;border:1px solid #ccc;color:#555;border-radius:3px}.react-grid-HeaderCell .is-focused:not(.is-open)>.Select-control{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.react-grid-HeaderCell .Select-control .Select-placeholder{line-height:20px;color:#999;padding:4px}.react-grid-HeaderCell .Select-control .Select-input{max-height:28px;padding:4px;margin-left:0}.react-grid-HeaderCell .Select-control .Select-input input{padding:0;height:100%}.react-grid-HeaderCell .Select-control .Select-arrow-zone .Select-arrow{border-color:gray transparent transparent;border-width:4px 4px 2.5px}.react-grid-HeaderCell .Select-control .Select-value{padding:4px;line-height:20px!important}.react-grid-HeaderCell .Select--multi .Select-control .Select-value{padding:0;line-height:16px!important;max-height:20px}.react-grid-HeaderCell .Select--multi .Select-control .Select-value .Select-value-icon,.react-grid-HeaderCell .Select--multi .Select-control .Select-value .Select-value-label{max-height:20px}.react-grid-HeaderCell .Select-control .Select-value .Select-value-label{color:#555!important}.react-grid-HeaderCell .Select-menu-outer .Select-option{padding:4px;line-height:20px}.react-grid-HeaderCell .Select-menu-outer .Select-menu .Select-option.is-focused,.react-grid-HeaderCell .Select-menu-outer .Select-menu .Select-option.is-selected{color:#555}",""])},function(e,t,r){t=e.exports=r(8)(),t.push([e.id,'.react-grid-Row.row-context-menu .react-grid-Cell,.react-grid-Row:hover .react-grid-Cell{background-color:#f9f9f9}.react-grid-Row:hover .rdg-row-index{display:none}.react-grid-Row:hover .rdg-actions-checkbox{display:block}.react-grid-Row:hover .rdg-drag-row-handle{cursor:move;cursor:grab;cursor:-moz-grab;cursor:-webkit-grab;width:12px;height:30px;margin-left:0;background-image:url("data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjlweCIgaGVpZ2h0PSIyOXB4IiB2aWV3Qm94PSIwIDAgOSAyOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggMzkgKDMxNjY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5kcmFnIGljb248L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iQWN0dWFsaXNhdGlvbi12MiIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkRlc2t0b3AiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNS4wMDAwMDAsIC0yNjIuMDAwMDAwKSIgZmlsbD0iI0Q4RDhEOCI+CiAgICAgICAgICAgIDxnIGlkPSJJbnRlcmFjdGlvbnMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE1LjAwMDAwMCwgMjU4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9IlJvdy1Db250cm9scyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9ImRyYWctaWNvbiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMTIiIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iNyIgY3k9IjEyIiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0zMCIgY3g9IjIiIGN5PSIxNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iMTciIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iMiIgY3k9IjIyIiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0zMCIgY3g9IjciIGN5PSIyMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMjciIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iNyIgY3k9IjI3IiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==");background-repeat:no-repeat}.react-grid-Row.row-selected,.react-grid-Row .row-selected{background-color:#dbecfa}.react-grid-row-group .row-expand-icon:hover{color:#777}.react-grid-row-index{padding:0 18px}.rdg-row-index{display:block;text-align:center}.rdg-row-actions-cell{padding:0}.rdg-actions-checkbox{display:none;text-align:center}.rdg-actions-checkbox.selected{display:block}.rdg-dragging{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.rdg-dragged-row{border-bottom:1px solid #000}',""])},function(e,t){"use strict";var r=function(e){var t,r={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(r[t]=t);return r};e.exports=r},function(e,t){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,r){"use strict";function n(e,t,r,n,i,a,s,l){if(o(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,a,s,l],p=0;u=new Error(t.replace(/%s/g,function(){return c[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var o=function(e){};e.exports=n},function(e,t){/*
|
|
object-assign
|
|
(c) Sindre Sorhus
|
|
@license MIT
|
|
*/
|
|
"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 n(){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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=n()?Object.assign:function(e,t){for(var n,s,l=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)i.call(n,c)&&(l[c]=n[c]);if(o){s=o(n);for(var p=0;p<s.length;p++)a.call(n,s[p])&&(l[s[p]]=n[s[p]])}}return l}},function(e,t,r){"use strict";var n=r(145),o=r(146),i=r(149);e.exports=function(){function e(e,t,r,n,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r}])}); |